eddyter 1.3.62 → 1.3.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/LICENSE +24 -24
  2. package/README.md +493 -493
  3. package/dist/ImageResizer-CbtUYHip.js +199 -0
  4. package/dist/api/auth.d.ts +4 -2
  5. package/dist/assets/style.css +1 -0
  6. package/dist/{babel-B9hn44Wo.js → babel-CCPWkrf4.js} +1302 -726
  7. package/dist/components/LockedFeature/LockedFeature.d.ts +23 -0
  8. package/dist/components/LockedFeature/index.d.ts +2 -0
  9. package/dist/components/UnifiedColorPicker/UnifiedColorPicker.d.ts +14 -0
  10. package/dist/components/VideoView/index.d.ts +13 -0
  11. package/dist/constants.d.ts +3 -1
  12. package/dist/editorConfig.d.ts +2 -3
  13. package/dist/{estree-CocPn_Md.js → estree-CxUPh9wa.js} +917 -529
  14. package/dist/{html-CxCicOef.js → html-CmniStvG.js} +589 -350
  15. package/dist/{html2pdf.bundle-DNyY_rJA.js → html2pdf.bundle-C1B1lr_T.js} +3796 -2777
  16. package/dist/{html2pdf.bundle.min-GfQzEXnM.js → html2pdf.bundle.min-kPviTsNx.js} +5223 -3407
  17. package/dist/index-BL8HWCRw.js +816 -0
  18. package/dist/index-BpsoOKOs.js +274 -0
  19. package/dist/{index-YHNm3bIK.js → index-DHKx5grA.js} +4 -4
  20. package/dist/{index-CIBuU2Zv.js → index-FZVNbwSO.js} +12356 -11290
  21. package/dist/index.js +3 -3
  22. package/dist/{markdown-BUjgWFLu.js → markdown-B0mEGGfQ.js} +1015 -578
  23. package/dist/nodes/UploadingVideoNode.d.ts +30 -0
  24. package/dist/nodes/VideoNode.d.ts +47 -0
  25. package/dist/plugins/CustomHorizontalRulePlugin/HorizontalRuleCustomizationDialog.d.ts +2 -1
  26. package/dist/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +1 -1
  27. package/dist/plugins/VideoPlugin.d.ts +17 -0
  28. package/dist/{postcss-CGIcwj_g.js → postcss-B0bxXf7u.js} +1065 -615
  29. package/dist/{standalone-C0qguT38.js → standalone-DmuJV5rn.js} +596 -350
  30. package/dist/types.d.ts +4 -6
  31. package/dist/{typescript-BM7wk6k-.js → typescript-DZlC_9M8.js} +1805 -1113
  32. package/dist/ui/Icons.d.ts +2 -1
  33. package/dist/utils/uploadManager.d.ts +17 -0
  34. package/package.json +151 -151
  35. package/dist/assets/index.css +0 -1
  36. package/dist/index-BoOSmKss.js +0 -985
@@ -1,17 +1,23 @@
1
1
  var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDescriptor, $r = Object.getOwnPropertyNames, qr = Object.getPrototypeOf, Kr = Object.prototype.hasOwnProperty, Jr = (h, c) => () => (c || h((c = { exports: {} }).exports, c), c.exports), rt = (h, c) => {
2
- for (var m in c) st(h, m, { get: c[m], enumerable: !0 });
2
+ for (var m in c)
3
+ st(h, m, { get: c[m], enumerable: !0 });
3
4
  }, Wr = (h, c, m, f) => {
4
- if (c && typeof c == "object" || typeof c == "function") for (let x of $r(c)) !Kr.call(h, x) && x !== m && st(h, x, { get: () => c[x], enumerable: !(f = Vr(c, x)) || f.enumerable });
5
+ if (c && typeof c == "object" || typeof c == "function")
6
+ for (let x of $r(c))
7
+ !Kr.call(h, x) && x !== m && st(h, x, { get: () => c[x], enumerable: !(f = Vr(c, x)) || f.enumerable });
5
8
  return h;
6
9
  }, Xt = (h, c, m) => (m = h != null ? zr(qr(h)) : {}, Wr(st(m, "default", { value: h, enumerable: !0 }), h)), Gt = Jr((h) => {
7
10
  Object.defineProperty(h, "__esModule", { value: !0 });
8
11
  function c(t, e) {
9
- if (t == null) return {};
12
+ if (t == null)
13
+ return {};
10
14
  var s = {};
11
- for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
12
- if (e.indexOf(r) !== -1) continue;
13
- s[r] = t[r];
14
- }
15
+ for (var r in t)
16
+ if ({}.hasOwnProperty.call(t, r)) {
17
+ if (e.indexOf(r) !== -1)
18
+ continue;
19
+ s[r] = t[r];
20
+ }
15
21
  return s;
16
22
  }
17
23
  var m = class {
@@ -54,7 +60,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
54
60
  };
55
61
  }
56
62
  function $(t, e) {
57
- if (Array.isArray(t)) return (r) => $(r, t[0]);
63
+ if (Array.isArray(t))
64
+ return (r) => $(r, t[0]);
58
65
  let s = {};
59
66
  for (let r of Object.keys(t)) {
60
67
  let i = t[r], a = typeof i == "string" ? { message: () => i } : typeof i == "function" ? { message: i } : i, { message: n } = a, o = c(a, fs), p = typeof n == "string" ? () => n : n;
@@ -68,11 +75,16 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
68
75
  }
69
76
  function Ps(t) {
70
77
  let e = xs();
71
- if (t == null) return e;
72
- if (t.annexB != null && t.annexB !== !1) throw new Error("The `annexB` option can only be set to `false`.");
73
- for (let s of Object.keys(e)) t[s] != null && (e[s] = t[s]);
74
- if (e.startLine === 1) t.startIndex == null && e.startColumn > 0 ? e.startIndex = e.startColumn : t.startColumn == null && e.startIndex > 0 && (e.startColumn = e.startIndex);
75
- else if ((t.startColumn == null || t.startIndex == null) && t.startIndex != null) throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");
78
+ if (t == null)
79
+ return e;
80
+ if (t.annexB != null && t.annexB !== !1)
81
+ throw new Error("The `annexB` option can only be set to `false`.");
82
+ for (let s of Object.keys(e))
83
+ t[s] != null && (e[s] = t[s]);
84
+ if (e.startLine === 1)
85
+ t.startIndex == null && e.startColumn > 0 ? e.startIndex = e.startColumn : t.startColumn == null && e.startIndex > 0 && (e.startColumn = e.startIndex);
86
+ else if ((t.startColumn == null || t.startIndex == null) && t.startIndex != null)
87
+ throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");
76
88
  return e;
77
89
  }
78
90
  var { defineProperty: As } = Object, ot = (t, e) => {
@@ -219,7 +231,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
219
231
  if (e != null && this.isObjectProperty(e)) {
220
232
  let { key: r, value: i } = e;
221
233
  this.isPrivateName(r) && this.classScope.usePrivateName(this.getPrivateNameSV(r), r.loc.start), this.toAssignable(i, s);
222
- } else super.toAssignable(e, s);
234
+ } else
235
+ super.toAssignable(e, s);
223
236
  }
224
237
  toAssignableObjectExpressionProp(e, s, r) {
225
238
  e.type === "Property" && (e.kind === "get" || e.kind === "set") ? this.raise(u.PatternHasAccessor, e.key) : e.type === "Property" && e.method ? this.raise(u.PatternHasMethod, e.key) : super.toAssignableObjectExpressionProp(e, s, r);
@@ -229,7 +242,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
229
242
  if (r.callee.type === "Import") {
230
243
  var i, a;
231
244
  this.castNodeTo(r, "ImportExpression"), r.source = r.arguments[0], r.options = (i = r.arguments[1]) != null ? i : null, r.attributes = (a = r.arguments[1]) != null ? a : null, delete r.arguments, delete r.callee;
232
- } else r.type === "OptionalCallExpression" ? this.castNodeTo(r, "CallExpression") : r.optional = !1;
245
+ } else
246
+ r.type === "OptionalCallExpression" ? this.castNodeTo(r, "CallExpression") : r.optional = !1;
233
247
  return r;
234
248
  }
235
249
  toReferencedArguments(e) {
@@ -401,8 +415,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
401
415
  function _e(t, e) {
402
416
  let s = 65536;
403
417
  for (let r = 0, i = e.length; r < i; r += 2) {
404
- if (s += e[r], s > t) return !1;
405
- if (s += e[r + 1], s >= t) return !0;
418
+ if (s += e[r], s > t)
419
+ return !1;
420
+ if (s += e[r + 1], s >= t)
421
+ return !0;
406
422
  }
407
423
  return !1;
408
424
  }
@@ -468,8 +484,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
468
484
  get inStaticBlock() {
469
485
  for (let t = this.scopeStack.length - 1; ; t--) {
470
486
  let { flags: e } = this.scopeStack[t];
471
- if (e & 128) return !0;
472
- if (e & 1731) return !1;
487
+ if (e & 128)
488
+ return !0;
489
+ if (e & 1731)
490
+ return !1;
473
491
  }
474
492
  }
475
493
  get inNonArrowFunction() {
@@ -499,7 +517,9 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
499
517
  this.checkRedeclarationInScope(r, t, e, s);
500
518
  let i = r.names.get(t) || 0;
501
519
  e & 16 ? i = i | 4 : (r.firstLexicalName || (r.firstLexicalName = t), i = i | 2), r.names.set(t, i), e & 8 && this.maybeExportDefined(r, t);
502
- } else if (e & 4) for (let i = this.scopeStack.length - 1; i >= 0 && (r = this.scopeStack[i], this.checkRedeclarationInScope(r, t, e, s), r.names.set(t, (r.names.get(t) || 0) | 1), this.maybeExportDefined(r, t), !(r.flags & 1667)); --i) ;
520
+ } else if (e & 4)
521
+ for (let i = this.scopeStack.length - 1; i >= 0 && (r = this.scopeStack[i], this.checkRedeclarationInScope(r, t, e, s), r.names.set(t, (r.names.get(t) || 0) | 1), this.maybeExportDefined(r, t), !(r.flags & 1667)); --i)
522
+ ;
503
523
  this.parser.inModule && r.flags & 1 && this.undefinedExports.delete(t);
504
524
  }
505
525
  maybeExportDefined(t, e) {
@@ -509,8 +529,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
509
529
  this.isRedeclaredInScope(t, e, s) && this.parser.raise(u.VarRedeclaration, r, { identifierName: e });
510
530
  }
511
531
  isRedeclaredInScope(t, e, s) {
512
- if (!(s & 1)) return !1;
513
- if (s & 8) return t.names.has(e);
532
+ if (!(s & 1))
533
+ return !1;
534
+ if (s & 8)
535
+ return t.names.has(e);
514
536
  let r = t.names.get(e);
515
537
  return s & 16 ? (r & 2) > 0 || !this.treatFunctionsAsVarInScope(t) && (r & 1) > 0 : (r & 2) > 0 && !(t.flags & 8 && t.firstLexicalName === e) || !this.treatFunctionsAsVarInScope(t) && (r & 4) > 0;
516
538
  }
@@ -524,13 +546,15 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
524
546
  currentVarScopeFlags() {
525
547
  for (let t = this.scopeStack.length - 1; ; t--) {
526
548
  let { flags: e } = this.scopeStack[t];
527
- if (e & 1667) return e;
549
+ if (e & 1667)
550
+ return e;
528
551
  }
529
552
  }
530
553
  currentThisScopeFlags() {
531
554
  for (let t = this.scopeStack.length - 1; ; t--) {
532
555
  let { flags: e } = this.scopeStack[t];
533
- if (e & 1731 && !(e & 4)) return e;
556
+ if (e & 1731 && !(e & 4))
557
+ return e;
534
558
  }
535
559
  }
536
560
  }, Vs = class extends ze {
@@ -550,7 +574,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
550
574
  super.declareName(t, e, s);
551
575
  }
552
576
  isRedeclaredInScope(t, e, s) {
553
- if (super.isRedeclaredInScope(t, e, s)) return !0;
577
+ if (super.isRedeclaredInScope(t, e, s))
578
+ return !0;
554
579
  if (s & 2048 && !t.declareFunctions.has(e)) {
555
580
  let r = t.names.get(e);
556
581
  return (r & 4) > 0 || (r & 2) > 0;
@@ -570,7 +595,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
570
595
  var Js = { const: "declare export var", let: "declare export var", type: "export type", interface: "export interface" };
571
596
  function Ws(t, e) {
572
597
  let s = [], r = [];
573
- for (let i = 0; i < t.length; i++) (e(t[i], i, t) ? s : r).push(t[i]);
598
+ for (let i = 0; i < t.length; i++)
599
+ (e(t[i], i, t) ? s : r).push(t[i]);
574
600
  return [s, r];
575
601
  }
576
602
  var Xs = /\*?\s*@((?:no)?flow)\b/, Gs = (t) => class extends t {
@@ -589,9 +615,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
589
615
  addComment(e) {
590
616
  if (this.flowPragma === void 0) {
591
617
  let s = Xs.exec(e.value);
592
- if (s) if (s[1] === "flow") this.flowPragma = "flow";
593
- else if (s[1] === "noflow") this.flowPragma = "noflow";
594
- else throw new Error("Unexpected flow pragma");
618
+ if (s)
619
+ if (s[1] === "flow")
620
+ this.flowPragma = "flow";
621
+ else if (s[1] === "noflow")
622
+ this.flowPragma = "noflow";
623
+ else
624
+ throw new Error("Unexpected flow pragma");
595
625
  }
596
626
  super.addComment(e);
597
627
  }
@@ -622,14 +652,22 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
622
652
  return r.params = a.params, r.rest = a.rest, r.this = a._this, this.expect(11), [r.returnType, e.predicate] = this.flowParseTypeAndPredicateInitialiser(), i.typeAnnotation = this.finishNode(r, "FunctionTypeAnnotation"), s.typeAnnotation = this.finishNode(i, "TypeAnnotation"), this.resetEndLocation(s), this.semicolon(), this.scope.declareName(e.id.name, 2048, e.id.loc.start), this.finishNode(e, "DeclareFunction");
623
653
  }
624
654
  flowParseDeclare(e, s) {
625
- if (this.match(80)) return this.flowParseDeclareClass(e);
626
- if (this.match(68)) return this.flowParseDeclareFunction(e);
627
- if (this.match(74)) return this.flowParseDeclareVariable(e);
628
- if (this.eatContextual(127)) return this.match(16) ? this.flowParseDeclareModuleExports(e) : (s && this.raise(E.NestedDeclareModule, this.state.lastTokStartLoc), this.flowParseDeclareModule(e));
629
- if (this.isContextual(130)) return this.flowParseDeclareTypeAlias(e);
630
- if (this.isContextual(131)) return this.flowParseDeclareOpaqueType(e);
631
- if (this.isContextual(129)) return this.flowParseDeclareInterface(e);
632
- if (this.match(82)) return this.flowParseDeclareExportDeclaration(e, s);
655
+ if (this.match(80))
656
+ return this.flowParseDeclareClass(e);
657
+ if (this.match(68))
658
+ return this.flowParseDeclareFunction(e);
659
+ if (this.match(74))
660
+ return this.flowParseDeclareVariable(e);
661
+ if (this.eatContextual(127))
662
+ return this.match(16) ? this.flowParseDeclareModuleExports(e) : (s && this.raise(E.NestedDeclareModule, this.state.lastTokStartLoc), this.flowParseDeclareModule(e));
663
+ if (this.isContextual(130))
664
+ return this.flowParseDeclareTypeAlias(e);
665
+ if (this.isContextual(131))
666
+ return this.flowParseDeclareOpaqueType(e);
667
+ if (this.isContextual(129))
668
+ return this.flowParseDeclareInterface(e);
669
+ if (this.match(82))
670
+ return this.flowParseDeclareExportDeclaration(e, s);
633
671
  this.unexpected();
634
672
  }
635
673
  flowParseDeclareVariable(e) {
@@ -649,13 +687,16 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
649
687
  }), e.kind = i || "CommonJS", this.finishNode(e, "DeclareModule");
650
688
  }
651
689
  flowParseDeclareExportDeclaration(e, s) {
652
- if (this.expect(82), this.eat(65)) return this.match(68) || this.match(80) ? e.declaration = this.flowParseDeclare(this.startNode()) : (e.declaration = this.flowParseType(), this.semicolon()), e.default = !0, this.finishNode(e, "DeclareExportDeclaration");
690
+ if (this.expect(82), this.eat(65))
691
+ return this.match(68) || this.match(80) ? e.declaration = this.flowParseDeclare(this.startNode()) : (e.declaration = this.flowParseType(), this.semicolon()), e.default = !0, this.finishNode(e, "DeclareExportDeclaration");
653
692
  if (this.match(75) || this.isLet() || (this.isContextual(130) || this.isContextual(129)) && !s) {
654
693
  let r = this.state.value;
655
694
  throw this.raise(E.UnsupportedDeclareExportKind, this.state.startLoc, { unsupportedExportKind: r, suggestion: Js[r] });
656
695
  }
657
- if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(131)) return e.declaration = this.flowParseDeclare(this.startNode()), e.default = !1, this.finishNode(e, "DeclareExportDeclaration");
658
- if (this.match(55) || this.match(5) || this.isContextual(129) || this.isContextual(130) || this.isContextual(131)) return e = this.parseExport(e, null), e.type === "ExportNamedDeclaration" ? (e.default = !1, delete e.exportKind, this.castNodeTo(e, "DeclareExportDeclaration")) : this.castNodeTo(e, "DeclareExportAllDeclaration");
696
+ if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(131))
697
+ return e.declaration = this.flowParseDeclare(this.startNode()), e.default = !1, this.finishNode(e, "DeclareExportDeclaration");
698
+ if (this.match(55) || this.match(5) || this.isContextual(129) || this.isContextual(130) || this.isContextual(131))
699
+ return e = this.parseExport(e, null), e.type === "ExportNamedDeclaration" ? (e.default = !1, delete e.exportKind, this.castNodeTo(e, "DeclareExportDeclaration")) : this.castNodeTo(e, "DeclareExportAllDeclaration");
659
700
  this.unexpected();
660
701
  }
661
702
  flowParseDeclareModuleExports(e) {
@@ -675,16 +716,19 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
675
716
  return this.next(), this.flowParseInterfaceish(e, !1), this.finishNode(e, "DeclareInterface");
676
717
  }
677
718
  flowParseInterfaceish(e, s) {
678
- if (e.id = this.flowParseRestrictedIdentifier(!s, !0), this.scope.declareName(e.id.name, s ? 17 : 8201, e.id.loc.start), this.match(47) ? e.typeParameters = this.flowParseTypeParameterDeclaration() : e.typeParameters = null, e.extends = [], this.eat(81)) do
679
- e.extends.push(this.flowParseInterfaceExtends());
680
- while (!s && this.eat(12));
719
+ if (e.id = this.flowParseRestrictedIdentifier(!s, !0), this.scope.declareName(e.id.name, s ? 17 : 8201, e.id.loc.start), this.match(47) ? e.typeParameters = this.flowParseTypeParameterDeclaration() : e.typeParameters = null, e.extends = [], this.eat(81))
720
+ do
721
+ e.extends.push(this.flowParseInterfaceExtends());
722
+ while (!s && this.eat(12));
681
723
  if (s) {
682
- if (e.implements = [], e.mixins = [], this.eatContextual(117)) do
683
- e.mixins.push(this.flowParseInterfaceExtends());
684
- while (this.eat(12));
685
- if (this.eatContextual(113)) do
686
- e.implements.push(this.flowParseInterfaceExtends());
687
- while (this.eat(12));
724
+ if (e.implements = [], e.mixins = [], this.eatContextual(117))
725
+ do
726
+ e.mixins.push(this.flowParseInterfaceExtends());
727
+ while (this.eat(12));
728
+ if (this.eatContextual(113))
729
+ do
730
+ e.implements.push(this.flowParseInterfaceExtends());
731
+ while (this.eat(12));
688
732
  }
689
733
  e.body = this.flowParseObjectType({ allowStatic: s, allowExact: !1, allowSpread: !1, allowProto: s, allowInexact: !1 });
690
734
  }
@@ -733,31 +777,37 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
733
777
  } finally {
734
778
  this.state.context = s;
735
779
  }
736
- } else return e();
780
+ } else
781
+ return e();
737
782
  }
738
783
  flowParseTypeParameterInstantiationInExpression() {
739
- if (this.reScan_lt() === 47) return this.flowParseTypeParameterInstantiation();
784
+ if (this.reScan_lt() === 47)
785
+ return this.flowParseTypeParameterInstantiation();
740
786
  }
741
787
  flowParseTypeParameterInstantiation() {
742
788
  let e = this.startNode(), s = this.state.inType;
743
789
  return this.state.inType = !0, e.params = [], this.flowInTopLevelContext(() => {
744
790
  this.expect(47);
745
791
  let r = this.state.noAnonFunctionType;
746
- for (this.state.noAnonFunctionType = !1; !this.match(48); ) e.params.push(this.flowParseType()), this.match(48) || this.expect(12);
792
+ for (this.state.noAnonFunctionType = !1; !this.match(48); )
793
+ e.params.push(this.flowParseType()), this.match(48) || this.expect(12);
747
794
  this.state.noAnonFunctionType = r;
748
795
  }), this.state.inType = s, !this.state.inType && this.curContext() === D.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(e, "TypeParameterInstantiation");
749
796
  }
750
797
  flowParseTypeParameterInstantiationCallOrNew() {
751
- if (this.reScan_lt() !== 47) return;
798
+ if (this.reScan_lt() !== 47)
799
+ return;
752
800
  let e = this.startNode(), s = this.state.inType;
753
- for (e.params = [], this.state.inType = !0, this.expect(47); !this.match(48); ) e.params.push(this.flowParseTypeOrImplicitInstantiation()), this.match(48) || this.expect(12);
801
+ for (e.params = [], this.state.inType = !0, this.expect(47); !this.match(48); )
802
+ e.params.push(this.flowParseTypeOrImplicitInstantiation()), this.match(48) || this.expect(12);
754
803
  return this.expect(48), this.state.inType = s, this.finishNode(e, "TypeParameterInstantiation");
755
804
  }
756
805
  flowParseInterfaceType() {
757
806
  let e = this.startNode();
758
- if (this.expectContextual(129), e.extends = [], this.eat(81)) do
759
- e.extends.push(this.flowParseInterfaceExtends());
760
- while (this.eat(12));
807
+ if (this.expectContextual(129), e.extends = [], this.eat(81))
808
+ do
809
+ e.extends.push(this.flowParseInterfaceExtends());
810
+ while (this.eat(12));
761
811
  return e.body = this.flowParseObjectType({ allowStatic: !1, allowExact: !1, allowSpread: !1, allowProto: !1, allowInexact: !1 }), this.finishNode(e, "InterfaceTypeAnnotation");
762
812
  }
763
813
  flowParseObjectPropertyKey() {
@@ -770,7 +820,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
770
820
  return e.static = s, e.id = this.flowParseObjectPropertyKey(), this.expect(3), this.expect(3), this.match(47) || this.match(10) ? (e.method = !0, e.optional = !1, e.value = this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))) : (e.method = !1, this.eat(17) && (e.optional = !0), e.value = this.flowParseTypeInitialiser()), this.finishNode(e, "ObjectTypeInternalSlot");
771
821
  }
772
822
  flowParseObjectTypeMethodish(e) {
773
- for (e.params = [], e.rest = null, e.typeParameters = null, e.this = null, this.match(47) && (e.typeParameters = this.flowParseTypeParameterDeclaration()), this.expect(10), this.match(78) && (e.this = this.flowParseFunctionTypeParam(!0), e.this.name = null, this.match(11) || this.expect(12)); !this.match(11) && !this.match(21); ) e.params.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12);
823
+ for (e.params = [], e.rest = null, e.typeParameters = null, e.this = null, this.match(47) && (e.typeParameters = this.flowParseTypeParameterDeclaration()), this.expect(10), this.match(78) && (e.this = this.flowParseFunctionTypeParam(!0), e.this.name = null, this.match(11) || this.expect(12)); !this.match(11) && !this.match(21); )
824
+ e.params.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12);
774
825
  return this.eat(21) && (e.rest = this.flowParseFunctionTypeParam(!1)), this.expect(11), e.returnType = this.flowParseTypeInitialiser(), this.finishNode(e, "FunctionTypeAnnotation");
775
826
  }
776
827
  flowParseObjectTypeCallProperty(e, s) {
@@ -794,8 +845,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
794
845
  U.type !== 14 && U.type !== 17 && (this.next(), A = !0);
795
846
  }
796
847
  let L = this.flowParseVariance();
797
- if (this.eat(0)) T != null && this.unexpected(T), this.eat(0) ? (L && this.unexpected(L.loc.start), o.internalSlots.push(this.flowParseObjectTypeInternalSlot(R, A))) : o.indexers.push(this.flowParseObjectTypeIndexer(R, A, L));
798
- else if (this.match(10) || this.match(47)) T != null && this.unexpected(T), L && this.unexpected(L.loc.start), o.callProperties.push(this.flowParseObjectTypeCallProperty(R, A));
848
+ if (this.eat(0))
849
+ T != null && this.unexpected(T), this.eat(0) ? (L && this.unexpected(L.loc.start), o.internalSlots.push(this.flowParseObjectTypeInternalSlot(R, A))) : o.indexers.push(this.flowParseObjectTypeIndexer(R, A, L));
850
+ else if (this.match(10) || this.match(47))
851
+ T != null && this.unexpected(T), L && this.unexpected(L.loc.start), o.callProperties.push(this.flowParseObjectTypeCallProperty(R, A));
799
852
  else {
800
853
  let U = "init";
801
854
  if (this.isContextual(99) || this.isContextual(104)) {
@@ -812,7 +865,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
812
865
  return this.state.inType = n, y;
813
866
  }
814
867
  flowParseObjectTypeProperty(e, s, r, i, a, n, o) {
815
- if (this.eat(21)) return this.match(12) || this.match(13) || this.match(8) || this.match(9) ? (n ? o || this.raise(E.InexactInsideExact, this.state.lastTokStartLoc) : this.raise(E.InexactInsideNonObject, this.state.lastTokStartLoc), i && this.raise(E.InexactVariance, i), null) : (n || this.raise(E.UnexpectedSpreadType, this.state.lastTokStartLoc), r != null && this.unexpected(r), i && this.raise(E.SpreadVariance, i), e.argument = this.flowParseType(), this.finishNode(e, "ObjectTypeSpreadProperty"));
868
+ if (this.eat(21))
869
+ return this.match(12) || this.match(13) || this.match(8) || this.match(9) ? (n ? o || this.raise(E.InexactInsideExact, this.state.lastTokStartLoc) : this.raise(E.InexactInsideNonObject, this.state.lastTokStartLoc), i && this.raise(E.InexactVariance, i), null) : (n || this.raise(E.UnexpectedSpreadType, this.state.lastTokStartLoc), r != null && this.unexpected(r), i && this.raise(E.SpreadVariance, i), e.argument = this.flowParseType(), this.finishNode(e, "ObjectTypeSpreadProperty"));
816
870
  {
817
871
  e.key = this.flowParseObjectPropertyKey(), e.static = s, e.proto = r != null, e.kind = a;
818
872
  let p = !1;
@@ -845,7 +899,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
845
899
  }
846
900
  flowParseTupleType() {
847
901
  let e = this.startNode();
848
- for (e.types = [], this.expect(0); this.state.pos < this.length && !this.match(3) && (e.types.push(this.flowParseType()), !this.match(3)); ) this.expect(12);
902
+ for (e.types = [], this.expect(0); this.state.pos < this.length && !this.match(3) && (e.types.push(this.flowParseType()), !this.match(3)); )
903
+ this.expect(12);
849
904
  return this.expect(3), this.finishNode(e, "TupleTypeAnnotation");
850
905
  }
851
906
  flowParseFunctionTypeParam(e) {
@@ -858,7 +913,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
858
913
  }
859
914
  flowParseFunctionTypeParams(e = []) {
860
915
  let s = null, r = null;
861
- for (this.match(78) && (r = this.flowParseFunctionTypeParam(!0), r.name = null, this.match(11) || this.expect(12)); !this.match(11) && !this.match(21); ) e.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12);
916
+ for (this.match(78) && (r = this.flowParseFunctionTypeParam(!0), r.name = null, this.match(11) || this.expect(12)); !this.match(11) && !this.match(21); )
917
+ e.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12);
862
918
  return this.eat(21) && (s = this.flowParseFunctionTypeParam(!1)), { params: e, rest: s, _this: r };
863
919
  }
864
920
  flowIdentToTypeAnnotation(e, s, r) {
@@ -897,12 +953,15 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
897
953
  }
898
954
  case 10: {
899
955
  let o = this.startNode();
900
- if (this.next(), !this.match(11) && !this.match(21)) if (F(this.state.type) || this.match(78)) {
901
- let p = this.lookahead().type;
902
- a = p !== 17 && p !== 14;
903
- } else a = !0;
956
+ if (this.next(), !this.match(11) && !this.match(21))
957
+ if (F(this.state.type) || this.match(78)) {
958
+ let p = this.lookahead().type;
959
+ a = p !== 17 && p !== 14;
960
+ } else
961
+ a = !0;
904
962
  if (a) {
905
- if (this.state.noAnonFunctionType = !1, i = this.flowParseType(), this.state.noAnonFunctionType = n, this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19)) return this.expect(11), i;
963
+ if (this.state.noAnonFunctionType = !1, i = this.flowParseType(), this.state.noAnonFunctionType = n, this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19))
964
+ return this.expect(11), i;
906
965
  this.eat(12);
907
966
  }
908
967
  return i ? r = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(i)]) : r = this.flowParseFunctionTypeParams(), o.params = r.params, o.rest = r.rest, o.this = r._this, this.expect(11), this.expect(19), o.returnType = this.flowParseType(), o.typeParameters = null, this.finishNode(o, "FunctionTypeAnnotation");
@@ -914,8 +973,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
914
973
  return s.value = this.match(85), this.next(), this.finishNode(s, "BooleanLiteralTypeAnnotation");
915
974
  case 53:
916
975
  if (this.state.value === "-") {
917
- if (this.next(), this.match(135)) return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", s);
918
- if (this.match(136)) return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", s);
976
+ if (this.next(), this.match(135))
977
+ return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", s);
978
+ if (this.match(136))
979
+ return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", s);
919
980
  throw this.raise(E.UnexpectedSubtractionOperand, this.state.startLoc);
920
981
  }
921
982
  this.unexpected();
@@ -938,7 +999,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
938
999
  if (Ue(this.state.type)) {
939
1000
  let o = Y(this.state.type);
940
1001
  return this.next(), super.createIdentifier(s, o);
941
- } else if (F(this.state.type)) return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(e, s, this.parseIdentifier());
1002
+ } else if (F(this.state.type))
1003
+ return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(e, s, this.parseIdentifier());
942
1004
  }
943
1005
  this.unexpected();
944
1006
  }
@@ -966,14 +1028,16 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
966
1028
  let e = this.startNode();
967
1029
  this.eat(45);
968
1030
  let s = this.flowParseAnonFunctionWithoutParens();
969
- for (e.types = [s]; this.eat(45); ) e.types.push(this.flowParseAnonFunctionWithoutParens());
1031
+ for (e.types = [s]; this.eat(45); )
1032
+ e.types.push(this.flowParseAnonFunctionWithoutParens());
970
1033
  return e.types.length === 1 ? s : this.finishNode(e, "IntersectionTypeAnnotation");
971
1034
  }
972
1035
  flowParseUnionType() {
973
1036
  let e = this.startNode();
974
1037
  this.eat(43);
975
1038
  let s = this.flowParseIntersectionType();
976
- for (e.types = [s]; this.eat(43); ) e.types.push(this.flowParseIntersectionType());
1039
+ for (e.types = [s]; this.eat(43); )
1040
+ e.types.push(this.flowParseIntersectionType());
977
1041
  return e.types.length === 1 ? s : this.finishNode(e, "UnionTypeAnnotation");
978
1042
  }
979
1043
  flowParseType() {
@@ -986,7 +1050,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
986
1050
  if (this.state.type === 132 && this.state.value === "_") {
987
1051
  let e = this.state.startLoc, s = this.parseIdentifier();
988
1052
  return this.flowParseGenericType(e, s);
989
- } else return this.flowParseType();
1053
+ } else
1054
+ return this.flowParseType();
990
1055
  }
991
1056
  flowParseTypeAnnotation() {
992
1057
  let e = this.startNode();
@@ -1034,11 +1099,15 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1034
1099
  parseExpressionStatement(e, s, r) {
1035
1100
  if (s.type === "Identifier") {
1036
1101
  if (s.name === "declare") {
1037
- if (this.match(80) || F(this.state.type) || this.match(68) || this.match(74) || this.match(82)) return this.flowParseDeclare(e);
1102
+ if (this.match(80) || F(this.state.type) || this.match(68) || this.match(74) || this.match(82))
1103
+ return this.flowParseDeclare(e);
1038
1104
  } else if (F(this.state.type)) {
1039
- if (s.name === "interface") return this.flowParseInterface(e);
1040
- if (s.name === "type") return this.flowParseTypeAlias(e);
1041
- if (s.name === "opaque") return this.flowParseOpaqueType(e, !1);
1105
+ if (s.name === "interface")
1106
+ return this.flowParseInterface(e);
1107
+ if (s.name === "type")
1108
+ return this.flowParseTypeAlias(e);
1109
+ if (s.name === "opaque")
1110
+ return this.flowParseOpaqueType(e, !1);
1042
1111
  }
1043
1112
  }
1044
1113
  return super.parseExpressionStatement(e, s, r);
@@ -1059,10 +1128,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1059
1128
  return super.parseExportDefaultExpression();
1060
1129
  }
1061
1130
  parseConditional(e, s, r) {
1062
- if (!this.match(17)) return e;
1131
+ if (!this.match(17))
1132
+ return e;
1063
1133
  if (this.state.maybeInArrowParameters) {
1064
1134
  let y = this.lookaheadCharCode();
1065
- if (y === 44 || y === 61 || y === 58 || y === 41) return this.setOptionalParametersError(r), e;
1135
+ if (y === 44 || y === 61 || y === 58 || y === 41)
1136
+ return this.setOptionalParametersError(r), e;
1066
1137
  }
1067
1138
  this.expect(17);
1068
1139
  let i = this.state.clone(), a = this.state.noArrowAt, n = this.startNodeAt(s), { consequent: o, failed: p } = this.tryParseConditionalConsequent(), [l, d] = this.getArrowLikeExpressions(o);
@@ -1070,7 +1141,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1070
1141
  let y = [...a];
1071
1142
  if (d.length > 0) {
1072
1143
  this.state = i, this.state.noArrowAt = y;
1073
- for (let A = 0; A < d.length; A++) y.push(d[A].start);
1144
+ for (let A = 0; A < d.length; A++)
1145
+ y.push(d[A].start);
1074
1146
  ({ consequent: o, failed: p } = this.tryParseConditionalConsequent()), [l, d] = this.getArrowLikeExpressions(o);
1075
1147
  }
1076
1148
  p && l.length > 1 && this.raise(E.AmbiguousConditionalArrow, i.startLoc), p && l.length === 1 && (this.state = i, y.push(l[0].start), this.state.noArrowAt = y, { consequent: o, failed: p } = this.tryParseConditionalConsequent());
@@ -1126,7 +1198,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1126
1198
  e.exportKind = "value";
1127
1199
  let s = this.startNode();
1128
1200
  return this.next(), this.flowParseEnumDeclaration(s);
1129
- } else return super.parseExportDeclaration(e);
1201
+ } else
1202
+ return super.parseExportDeclaration(e);
1130
1203
  }
1131
1204
  eatExportStar(e) {
1132
1205
  return super.eatExportStar(e) ? !0 : this.isContextual(130) && this.lookahead().type === 55 ? (e.exportKind = "type", this.next(), this.next(), !0) : !1;
@@ -1141,7 +1214,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1141
1214
  parseClassMember(e, s, r) {
1142
1215
  let { startLoc: i } = this.state;
1143
1216
  if (this.isContextual(125)) {
1144
- if (super.parseClassMemberFromModifier(e, s)) return;
1217
+ if (super.parseClassMemberFromModifier(e, s))
1218
+ return;
1145
1219
  s.declare = !0;
1146
1220
  }
1147
1221
  super.parseClassMember(e, s, r), s.declare && (s.type !== "ClassProperty" && s.type !== "ClassPrivateProperty" && s.type !== "PropertyDefinition" ? this.raise(E.DeclareClassElement, i) : s.value && this.raise(E.DeclareClassFieldInitializer, s.value));
@@ -1254,9 +1328,11 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1254
1328
  s.local = xt(e) ? this.flowParseRestrictedIdentifier(!0, !0) : this.parseIdentifier(), e.specifiers.push(this.finishImportSpecifier(s, r));
1255
1329
  }
1256
1330
  isPotentialImportPhase(e) {
1257
- if (super.isPotentialImportPhase(e)) return !0;
1331
+ if (super.isPotentialImportPhase(e))
1332
+ return !0;
1258
1333
  if (this.isContextual(130)) {
1259
- if (!e) return !0;
1334
+ if (!e)
1335
+ return !0;
1260
1336
  let s = this.lookaheadCharCode();
1261
1337
  return s === 123 || s === 42;
1262
1338
  }
@@ -1264,9 +1340,11 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1264
1340
  }
1265
1341
  applyImportPhase(e, s, r, i) {
1266
1342
  if (super.applyImportPhase(e, s, r, i), s) {
1267
- if (!r && this.match(65)) return;
1343
+ if (!r && this.match(65))
1344
+ return;
1268
1345
  e.exportKind = r === "type" ? r : "value";
1269
- } else r === "type" && this.match(55) && this.unexpected(), e.importKind = r === "type" || r === "typeof" ? r : "value";
1346
+ } else
1347
+ r === "type" && this.match(55) && this.unexpected(), e.importKind = r === "type" || r === "typeof" ? r : "value";
1270
1348
  }
1271
1349
  parseImportSpecifier(e, s, r, i, a) {
1272
1350
  let n = e.imported, o = null;
@@ -1276,9 +1354,11 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1276
1354
  let d = this.parseIdentifier(!0);
1277
1355
  o !== null && !V(this.state.type) ? (e.imported = d, e.importKind = o, e.local = this.cloneIdentifier(d)) : (e.imported = n, e.importKind = null, e.local = this.parseIdentifier());
1278
1356
  } else {
1279
- if (o !== null && V(this.state.type)) e.imported = this.parseIdentifier(!0), e.importKind = o;
1357
+ if (o !== null && V(this.state.type))
1358
+ e.imported = this.parseIdentifier(!0), e.importKind = o;
1280
1359
  else {
1281
- if (s) throw this.raise(u.ImportBindingIsString, e, { importName: n.value });
1360
+ if (s)
1361
+ throw this.raise(u.ImportBindingIsString, e, { importName: n.value });
1282
1362
  e.imported = n, e.importKind = null;
1283
1363
  }
1284
1364
  this.eatContextual(93) ? e.local = this.parseIdentifier() : (p = !0, e.local = this.cloneIdentifier(e.imported));
@@ -1287,7 +1367,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1287
1367
  return r && l && this.raise(E.ImportTypeShorthandOnlyInPureImport, e), (r || l) && this.checkReservedType(e.local.name, e.local.loc.start, !0), p && !r && !l && this.checkReservedWord(e.local.name, e.loc.start, !0, !0), this.finishImportSpecifier(e, "ImportSpecifier");
1288
1368
  }
1289
1369
  parseBindingAtom() {
1290
- return this.state.type === 78 ? this.parseIdentifier(!0) : super.parseBindingAtom();
1370
+ switch (this.state.type) {
1371
+ case 78:
1372
+ return this.parseIdentifier(!0);
1373
+ default:
1374
+ return super.parseBindingAtom();
1375
+ }
1291
1376
  }
1292
1377
  parseFunctionParams(e, s) {
1293
1378
  let r = e.kind;
@@ -1310,7 +1395,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1310
1395
  var r;
1311
1396
  let i = null, a;
1312
1397
  if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
1313
- if (i = this.state.clone(), a = this.tryParse(() => super.parseMaybeAssign(e, s), i), !a.error) return a.node;
1398
+ if (i = this.state.clone(), a = this.tryParse(() => super.parseMaybeAssign(e, s), i), !a.error)
1399
+ return a.node;
1314
1400
  let { context: p } = this.state, l = p[p.length - 1];
1315
1401
  (l === D.j_oTag || l === D.j_expr) && p.pop();
1316
1402
  }
@@ -1329,11 +1415,14 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1329
1415
  return N.type !== "ArrowFunctionExpression" && y(), N.typeParameters = p, this.resetStartLocationFromNode(N, p), T;
1330
1416
  }, i), d = null;
1331
1417
  if (l.node && this.maybeUnwrapTypeCastExpression(l.node).type === "ArrowFunctionExpression") {
1332
- if (!l.error && !l.aborted) return l.node.async && this.raise(E.UnexpectedTypeParameterBeforeAsyncArrowFunction, p), l.node;
1418
+ if (!l.error && !l.aborted)
1419
+ return l.node.async && this.raise(E.UnexpectedTypeParameterBeforeAsyncArrowFunction, p), l.node;
1333
1420
  d = l.node;
1334
1421
  }
1335
- if ((n = a) != null && n.node) return this.state = a.failState, a.node;
1336
- if (d) return this.state = l.failState, d;
1422
+ if ((n = a) != null && n.node)
1423
+ return this.state = a.failState, a.node;
1424
+ if (d)
1425
+ return this.state = l.failState, d;
1337
1426
  throw (o = a) != null && o.thrown ? a.error : l.thrown ? l.error : this.raise(E.UnexpectedTokenAfterTypeParameter, p);
1338
1427
  }
1339
1428
  return super.parseMaybeAssign(e, s);
@@ -1346,7 +1435,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1346
1435
  let i = this.startNode();
1347
1436
  return [i.typeAnnotation, e.predicate] = this.flowParseTypeAndPredicateInitialiser(), this.state.noAnonFunctionType = r, this.canInsertSemicolon() && this.unexpected(), this.match(19) || this.unexpected(), i;
1348
1437
  });
1349
- if (s.thrown) return null;
1438
+ if (s.thrown)
1439
+ return null;
1350
1440
  s.error && (this.state = s.failState), e.returnType = s.node.typeAnnotation ? this.finishNode(s.node, "TypeAnnotation") : null;
1351
1441
  }
1352
1442
  return super.parseArrow(e);
@@ -1359,7 +1449,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1359
1449
  }
1360
1450
  checkParams(e, s, r, i = !0) {
1361
1451
  if (!(r && this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))) {
1362
- for (let a = 0; a < e.params.length; a++) this.isThisParam(e.params[a]) && a > 0 && this.raise(E.ThisParamMustBeFirst, e.params[a]);
1452
+ for (let a = 0; a < e.params.length; a++)
1453
+ this.isThisParam(e.params[a]) && a > 0 && this.raise(E.ThisParamMustBeFirst, e.params[a]);
1363
1454
  super.checkParams(e, s, r, i);
1364
1455
  }
1365
1456
  }
@@ -1373,18 +1464,23 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1373
1464
  i.callee = e, i.arguments = super.parseCallExpressionArguments(11), e = this.finishNode(i, "CallExpression");
1374
1465
  } else if (e.type === "Identifier" && e.name === "async" && this.match(47)) {
1375
1466
  let i = this.state.clone(), a = this.tryParse((o) => this.parseAsyncArrowWithTypeParameters(s) || o(), i);
1376
- if (!a.error && !a.aborted) return a.node;
1467
+ if (!a.error && !a.aborted)
1468
+ return a.node;
1377
1469
  let n = this.tryParse(() => super.parseSubscripts(e, s, r), i);
1378
- if (n.node && !n.error) return n.node;
1379
- if (a.node) return this.state = a.failState, a.node;
1380
- if (n.node) return this.state = n.failState, n.node;
1470
+ if (n.node && !n.error)
1471
+ return n.node;
1472
+ if (a.node)
1473
+ return this.state = a.failState, a.node;
1474
+ if (n.node)
1475
+ return this.state = n.failState, n.node;
1381
1476
  throw a.error || n.error;
1382
1477
  }
1383
1478
  return super.parseSubscripts(e, s, r);
1384
1479
  }
1385
1480
  parseSubscript(e, s, r, i) {
1386
1481
  if (this.match(18) && this.isLookaheadToken_lt()) {
1387
- if (i.optionalChainMember = !0, r) return i.stop = !0, e;
1482
+ if (i.optionalChainMember = !0, r)
1483
+ return i.stop = !0, e;
1388
1484
  this.next();
1389
1485
  let a = this.startNodeAt(s);
1390
1486
  return a.callee = e, a.typeArguments = this.flowParseTypeParameterInstantiationInExpression(), this.expect(10), a.arguments = this.parseCallExpressionArguments(11), a.optional = !0, this.finishCallExpression(a, !0);
@@ -1392,7 +1488,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1392
1488
  let a = this.startNodeAt(s);
1393
1489
  a.callee = e;
1394
1490
  let n = this.tryParse(() => (a.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(), this.expect(10), a.arguments = super.parseCallExpressionArguments(11), i.optionalChainMember && (a.optional = !1), this.finishCallExpression(a, i.optionalChainMember)));
1395
- if (n.node) return n.error && (this.state = n.failState), n.node;
1491
+ if (n.node)
1492
+ return n.error && (this.state = n.failState), n.node;
1396
1493
  }
1397
1494
  return super.parseSubscript(e, s, r, i);
1398
1495
  }
@@ -1403,7 +1500,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1403
1500
  }
1404
1501
  parseAsyncArrowWithTypeParameters(e) {
1405
1502
  let s = this.startNodeAt(e);
1406
- if (this.parseFunctionParams(s, !1), !!this.parseArrow(s)) return super.parseArrowExpression(s, void 0, !0);
1503
+ if (this.parseFunctionParams(s, !1), !!this.parseArrow(s))
1504
+ return super.parseArrowExpression(s, void 0, !0);
1407
1505
  }
1408
1506
  readToken_mult_modulo(e) {
1409
1507
  let s = this.input.charCodeAt(this.state.pos + 1);
@@ -1427,7 +1525,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1427
1525
  }
1428
1526
  skipBlockComment() {
1429
1527
  if (this.hasPlugin("flowComments") && this.skipFlowComment()) {
1430
- if (this.state.hasFlowComment) throw this.raise(E.NestedFlowComment, this.state.startLoc);
1528
+ if (this.state.hasFlowComment)
1529
+ throw this.raise(E.NestedFlowComment, this.state.startLoc);
1431
1530
  this.hasFlowCommentCompletion();
1432
1531
  let e = this.skipFlowComment();
1433
1532
  e && (this.state.pos += e, this.state.hasFlowComment = !0);
@@ -1437,12 +1536,14 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1437
1536
  }
1438
1537
  skipFlowComment() {
1439
1538
  let { pos: e } = this.state, s = 2;
1440
- for (; [32, 9].includes(this.input.charCodeAt(e + s)); ) s++;
1539
+ for (; [32, 9].includes(this.input.charCodeAt(e + s)); )
1540
+ s++;
1441
1541
  let r = this.input.charCodeAt(s + e), i = this.input.charCodeAt(s + e + 1);
1442
1542
  return r === 58 && i === 58 ? s + 2 : this.input.slice(s + e, s + e + 12) === "flow-include" ? s + 12 : r === 58 && i !== 58 ? s : !1;
1443
1543
  }
1444
1544
  hasFlowCommentCompletion() {
1445
- if (this.input.indexOf("*/", this.state.pos) === -1) throw this.raise(u.UnterminatedComment, this.state.curPosition());
1545
+ if (this.input.indexOf("*/", this.state.pos) === -1)
1546
+ throw this.raise(u.UnterminatedComment, this.state.curPosition());
1446
1547
  }
1447
1548
  flowEnumErrorBooleanMemberNotInitialized(e, { enumName: s, memberName: r }) {
1448
1549
  this.raise(E.EnumBooleanMemberNotInitialized, e, { memberName: r, enumName: s });
@@ -1492,7 +1593,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1492
1593
  break;
1493
1594
  }
1494
1595
  let n = this.startNode(), { id: o, init: p } = this.flowEnumMemberRaw(), l = o.name;
1495
- if (l === "") continue;
1596
+ if (l === "")
1597
+ continue;
1496
1598
  /^[a-z]/.test(l) && this.raise(E.EnumInvalidMemberName, o, { memberName: l, suggestion: l[0].toUpperCase() + l.slice(1), enumName: e }), r.has(l) && this.raise(E.EnumDuplicateMemberName, o, { memberName: l, enumName: e }), r.add(l);
1497
1599
  let d = { enumName: e, explicitType: s, memberName: l };
1498
1600
  switch (n.id = o, p.type) {
@@ -1527,19 +1629,25 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1527
1629
  return { members: i, hasUnknownMembers: a };
1528
1630
  }
1529
1631
  flowEnumStringMembers(e, s, { enumName: r }) {
1530
- if (e.length === 0) return s;
1531
- if (s.length === 0) return e;
1632
+ if (e.length === 0)
1633
+ return s;
1634
+ if (s.length === 0)
1635
+ return e;
1532
1636
  if (s.length > e.length) {
1533
- for (let i of e) this.flowEnumErrorStringMemberInconsistentlyInitialized(i, { enumName: r });
1637
+ for (let i of e)
1638
+ this.flowEnumErrorStringMemberInconsistentlyInitialized(i, { enumName: r });
1534
1639
  return s;
1535
1640
  } else {
1536
- for (let i of s) this.flowEnumErrorStringMemberInconsistentlyInitialized(i, { enumName: r });
1641
+ for (let i of s)
1642
+ this.flowEnumErrorStringMemberInconsistentlyInitialized(i, { enumName: r });
1537
1643
  return e;
1538
1644
  }
1539
1645
  }
1540
1646
  flowEnumParseExplicitType({ enumName: e }) {
1541
- if (!this.eatContextual(102)) return null;
1542
- if (!F(this.state.type)) throw this.raise(E.EnumInvalidExplicitTypeUnknownSupplied, this.state.startLoc, { enumName: e });
1647
+ if (!this.eatContextual(102))
1648
+ return null;
1649
+ if (!F(this.state.type))
1650
+ throw this.raise(E.EnumInvalidExplicitTypeUnknownSupplied, this.state.startLoc, { enumName: e });
1543
1651
  let { value: s } = this.state;
1544
1652
  return this.next(), s !== "boolean" && s !== "number" && s !== "string" && s !== "symbol" && this.raise(E.EnumInvalidExplicitType, this.state.startLoc, { enumName: e, invalidEnumType: s }), s;
1545
1653
  }
@@ -1560,15 +1668,20 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1560
1668
  let p = () => (e.members = [], this.expect(8), this.finishNode(e, "EnumStringBody"));
1561
1669
  e.explicitType = !1;
1562
1670
  let l = n.booleanMembers.length, d = n.numberMembers.length, y = n.stringMembers.length, A = n.defaultedMembers.length;
1563
- if (!l && !d && !y && !A) return p();
1564
- if (!l && !d) return e.members = this.flowEnumStringMembers(n.stringMembers, n.defaultedMembers, { enumName: r }), this.expect(8), this.finishNode(e, "EnumStringBody");
1671
+ if (!l && !d && !y && !A)
1672
+ return p();
1673
+ if (!l && !d)
1674
+ return e.members = this.flowEnumStringMembers(n.stringMembers, n.defaultedMembers, { enumName: r }), this.expect(8), this.finishNode(e, "EnumStringBody");
1565
1675
  if (!d && !y && l >= A) {
1566
- for (let T of n.defaultedMembers) this.flowEnumErrorBooleanMemberNotInitialized(T.loc.start, { enumName: r, memberName: T.id.name });
1676
+ for (let T of n.defaultedMembers)
1677
+ this.flowEnumErrorBooleanMemberNotInitialized(T.loc.start, { enumName: r, memberName: T.id.name });
1567
1678
  return e.members = n.booleanMembers, this.expect(8), this.finishNode(e, "EnumBooleanBody");
1568
1679
  } else if (!l && !y && d >= A) {
1569
- for (let T of n.defaultedMembers) this.flowEnumErrorNumberMemberNotInitialized(T.loc.start, { enumName: r, memberName: T.id.name });
1680
+ for (let T of n.defaultedMembers)
1681
+ this.flowEnumErrorNumberMemberNotInitialized(T.loc.start, { enumName: r, memberName: T.id.name });
1570
1682
  return e.members = n.numberMembers, this.expect(8), this.finishNode(e, "EnumNumberBody");
1571
- } else return this.raise(E.EnumInconsistentMemberValues, i, { enumName: r }), p();
1683
+ } else
1684
+ return this.raise(E.EnumInconsistentMemberValues, i, { enumName: r }), p();
1572
1685
  }
1573
1686
  }
1574
1687
  }
@@ -1611,7 +1724,9 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1611
1724
  }
1612
1725
  }
1613
1726
  function Pt(t, e, s) {
1614
- for (let r = e; r < s; r++) if (ne(t.charCodeAt(r))) return !0;
1727
+ for (let r = e; r < s; r++)
1728
+ if (ne(t.charCodeAt(r)))
1729
+ return !0;
1615
1730
  return !1;
1616
1731
  }
1617
1732
  var $e = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, qe = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;
@@ -1648,16 +1763,20 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1648
1763
  return t ? t.type === "JSXOpeningFragment" || t.type === "JSXClosingFragment" : !1;
1649
1764
  }
1650
1765
  function oe(t) {
1651
- if (t.type === "JSXIdentifier") return t.name;
1652
- if (t.type === "JSXNamespacedName") return t.namespace.name + ":" + t.name.name;
1653
- if (t.type === "JSXMemberExpression") return oe(t.object) + "." + oe(t.property);
1766
+ if (t.type === "JSXIdentifier")
1767
+ return t.name;
1768
+ if (t.type === "JSXNamespacedName")
1769
+ return t.namespace.name + ":" + t.name.name;
1770
+ if (t.type === "JSXMemberExpression")
1771
+ return oe(t.object) + "." + oe(t.property);
1654
1772
  throw new Error("Node had unexpected type: " + t.type);
1655
1773
  }
1656
1774
  var Zs = (t) => class extends t {
1657
1775
  jsxReadToken() {
1658
1776
  let e = "", s = this.state.pos;
1659
1777
  for (; ; ) {
1660
- if (this.state.pos >= this.length) throw this.raise(se.UnterminatedJsxContent, this.state.startLoc);
1778
+ if (this.state.pos >= this.length)
1779
+ throw this.raise(se.UnterminatedJsxContent, this.state.startLoc);
1661
1780
  let r = this.input.charCodeAt(this.state.pos);
1662
1781
  switch (r) {
1663
1782
  case 60:
@@ -1671,6 +1790,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1671
1790
  case 38:
1672
1791
  e += this.input.slice(s, this.state.pos), e += this.jsxReadEntity(), s = this.state.pos;
1673
1792
  break;
1793
+ case 62:
1794
+ case 125:
1674
1795
  default:
1675
1796
  ne(r) ? (e += this.input.slice(s, this.state.pos), e += this.jsxReadNewLine(!0), s = this.state.pos) : ++this.state.pos;
1676
1797
  }
@@ -1685,9 +1806,11 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1685
1806
  jsxReadString(e) {
1686
1807
  let s = "", r = ++this.state.pos;
1687
1808
  for (; ; ) {
1688
- if (this.state.pos >= this.length) throw this.raise(u.UnterminatedString, this.state.startLoc);
1809
+ if (this.state.pos >= this.length)
1810
+ throw this.raise(u.UnterminatedString, this.state.startLoc);
1689
1811
  let i = this.input.charCodeAt(this.state.pos);
1690
- if (i === e) break;
1812
+ if (i === e)
1813
+ break;
1691
1814
  i === 38 ? (s += this.input.slice(r, this.state.pos), s += this.jsxReadEntity(), r = this.state.pos) : ne(i) ? (s += this.input.slice(r, this.state.pos), s += this.jsxReadNewLine(!1), r = this.state.pos) : ++this.state.pos;
1692
1815
  }
1693
1816
  s += this.input.slice(r, this.state.pos++), this.finishToken(134, s);
@@ -1699,10 +1822,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1699
1822
  let s = 10;
1700
1823
  this.codePointAtPos(this.state.pos) === 120 && (s = 16, ++this.state.pos);
1701
1824
  let r = this.readInt(s, void 0, !1, "bail");
1702
- if (r !== null && this.codePointAtPos(this.state.pos) === 59) return ++this.state.pos, String.fromCodePoint(r);
1825
+ if (r !== null && this.codePointAtPos(this.state.pos) === 59)
1826
+ return ++this.state.pos, String.fromCodePoint(r);
1703
1827
  } else {
1704
1828
  let s = 0, r = !1;
1705
- for (; s++ < 10 && this.state.pos < this.length && !(r = this.codePointAtPos(this.state.pos) === 59); ) ++this.state.pos;
1829
+ for (; s++ < 10 && this.state.pos < this.length && !(r = this.codePointAtPos(this.state.pos) === 59); )
1830
+ ++this.state.pos;
1706
1831
  if (r) {
1707
1832
  this.input.slice(e, this.state.pos);
1708
1833
  let i;
@@ -1724,13 +1849,15 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1724
1849
  }
1725
1850
  jsxParseNamespacedName() {
1726
1851
  let e = this.state.startLoc, s = this.jsxParseIdentifier();
1727
- if (!this.eat(14)) return s;
1852
+ if (!this.eat(14))
1853
+ return s;
1728
1854
  let r = this.startNodeAt(e);
1729
1855
  return r.namespace = s, r.name = this.jsxParseIdentifier(), this.finishNode(r, "JSXNamespacedName");
1730
1856
  }
1731
1857
  jsxParseElementName() {
1732
1858
  let e = this.state.startLoc, s = this.jsxParseNamespacedName();
1733
- if (s.type === "JSXNamespacedName") return s;
1859
+ if (s.type === "JSXNamespacedName")
1860
+ return s;
1734
1861
  for (; this.eat(16); ) {
1735
1862
  let r = this.startNodeAt(e);
1736
1863
  r.object = s, r.property = this.jsxParseIdentifier(), s = this.finishNode(r, "JSXMemberExpression");
@@ -1757,7 +1884,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1757
1884
  return this.next(), e.expression = this.parseExpression(), this.setContext(D.j_expr), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(e, "JSXSpreadChild");
1758
1885
  }
1759
1886
  jsxParseExpressionContainer(e, s) {
1760
- if (this.match(8)) e.expression = this.jsxParseEmptyExpression();
1887
+ if (this.match(8))
1888
+ e.expression = this.jsxParseEmptyExpression();
1761
1889
  else {
1762
1890
  let r = this.parseExpression();
1763
1891
  e.expression = r;
@@ -1774,7 +1902,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1774
1902
  }
1775
1903
  jsxParseOpeningElementAfterName(e) {
1776
1904
  let s = [];
1777
- for (; !this.match(56) && !this.match(144); ) s.push(this.jsxParseAttribute());
1905
+ for (; !this.match(56) && !this.match(144); )
1906
+ s.push(this.jsxParseAttribute());
1778
1907
  return e.attributes = s, e.selfClosing = this.eat(56), this.expect(144), this.finishNode(e, "JSXOpeningElement");
1779
1908
  }
1780
1909
  jsxParseClosingElementAt(e) {
@@ -1784,28 +1913,31 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1784
1913
  jsxParseElementAt(e) {
1785
1914
  let s = this.startNodeAt(e), r = [], i = this.jsxParseOpeningElementAt(e), a = null;
1786
1915
  if (!i.selfClosing) {
1787
- e: for (; ; ) switch (this.state.type) {
1788
- case 143:
1789
- if (e = this.state.startLoc, this.next(), this.eat(56)) {
1790
- a = this.jsxParseClosingElementAt(e);
1791
- break e;
1916
+ e:
1917
+ for (; ; )
1918
+ switch (this.state.type) {
1919
+ case 143:
1920
+ if (e = this.state.startLoc, this.next(), this.eat(56)) {
1921
+ a = this.jsxParseClosingElementAt(e);
1922
+ break e;
1923
+ }
1924
+ r.push(this.jsxParseElementAt(e));
1925
+ break;
1926
+ case 142:
1927
+ r.push(this.parseLiteral(this.state.value, "JSXText"));
1928
+ break;
1929
+ case 5: {
1930
+ let n = this.startNode();
1931
+ this.setContext(D.brace), this.next(), this.match(21) ? r.push(this.jsxParseSpreadChild(n)) : r.push(this.jsxParseExpressionContainer(n, D.j_expr));
1932
+ break;
1933
+ }
1934
+ default:
1935
+ this.unexpected();
1792
1936
  }
1793
- r.push(this.jsxParseElementAt(e));
1794
- break;
1795
- case 142:
1796
- r.push(this.parseLiteral(this.state.value, "JSXText"));
1797
- break;
1798
- case 5: {
1799
- let n = this.startNode();
1800
- this.setContext(D.brace), this.next(), this.match(21) ? r.push(this.jsxParseSpreadChild(n)) : r.push(this.jsxParseExpressionContainer(n, D.j_expr));
1801
- break;
1802
- }
1803
- default:
1804
- this.unexpected();
1805
- }
1806
1937
  Q(i) && !Q(a) && a !== null ? this.raise(se.MissingClosingTagFragment, a) : !Q(i) && Q(a) ? this.raise(se.MissingClosingTagElement, a, { openingTagName: oe(i.name) }) : !Q(i) && !Q(a) && oe(a.name) !== oe(i.name) && this.raise(se.MissingClosingTagElement, a, { openingTagName: oe(i.name) });
1807
1938
  }
1808
- if (Q(i) ? (s.openingFragment = i, s.closingFragment = a) : (s.openingElement = i, s.closingElement = a), s.children = r, this.match(47)) throw this.raise(se.UnwrappedAdjacentJSXElements, this.state.startLoc);
1939
+ if (Q(i) ? (s.openingFragment = i, s.closingFragment = a) : (s.openingElement = i, s.closingElement = a), s.children = r, this.match(47))
1940
+ throw this.raise(se.UnwrappedAdjacentJSXElements, this.state.startLoc);
1809
1941
  return Q(i) ? this.finishNode(s, "JSXFragment") : this.finishNode(s, "JSXElement");
1810
1942
  }
1811
1943
  jsxParseElement() {
@@ -1850,12 +1982,15 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1850
1982
  }
1851
1983
  updateContext(e) {
1852
1984
  let { context: s, type: r } = this.state;
1853
- if (r === 56 && e === 143) s.splice(-2, 2, D.j_cTag), this.state.canStartJSXElement = !1;
1854
- else if (r === 143) s.push(D.j_oTag);
1985
+ if (r === 56 && e === 143)
1986
+ s.splice(-2, 2, D.j_cTag), this.state.canStartJSXElement = !1;
1987
+ else if (r === 143)
1988
+ s.push(D.j_oTag);
1855
1989
  else if (r === 144) {
1856
1990
  let i = s[s.length - 1];
1857
1991
  i === D.j_oTag && e === 56 || i === D.j_cTag ? (s.pop(), this.state.canStartJSXElement = s[s.length - 1] === D.j_expr) : (this.setContext(D.j_expr), this.state.canStartJSXElement = !0);
1858
- } else this.state.canStartJSXElement = Cs(r);
1992
+ } else
1993
+ this.state.canStartJSXElement = Cs(r);
1859
1994
  }
1860
1995
  }, er = class extends ze {
1861
1996
  constructor(...t) {
@@ -1877,9 +2012,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1877
2012
  }
1878
2013
  hasImport(t, e) {
1879
2014
  let s = this.importsStack.length;
1880
- if (this.importsStack[s - 1].has(t)) return !0;
2015
+ if (this.importsStack[s - 1].has(t))
2016
+ return !0;
1881
2017
  if (!e && s > 1) {
1882
- for (let r = 0; r < s - 1; r++) if (this.importsStack[r].has(t)) return !0;
2018
+ for (let r = 0; r < s - 1; r++)
2019
+ if (this.importsStack[r].has(t))
2020
+ return !0;
1883
2021
  }
1884
2022
  return !1;
1885
2023
  }
@@ -1908,11 +2046,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1908
2046
  }
1909
2047
  checkLocalExport(t) {
1910
2048
  let { name: e } = t;
1911
- if (this.hasImport(e)) return;
2049
+ if (this.hasImport(e))
2050
+ return;
1912
2051
  let s = this.scopeStack.length;
1913
2052
  for (let r = s - 1; r >= 0; r--) {
1914
2053
  let i = this.scopeStack[r].tsNames.get(e);
1915
- if ((i & 1) > 0 || (i & 16) > 0) return;
2054
+ if ((i & 1) > 0 || (i & 16) > 0)
2055
+ return;
1916
2056
  }
1917
2057
  super.checkLocalExport(t);
1918
2058
  }
@@ -1956,12 +2096,16 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1956
2096
  return t - this.startIndex;
1957
2097
  }
1958
2098
  hasPlugin(t) {
1959
- if (typeof t == "string") return this.plugins.has(t);
2099
+ if (typeof t == "string")
2100
+ return this.plugins.has(t);
1960
2101
  {
1961
2102
  let [e, s] = t;
1962
- if (!this.hasPlugin(e)) return !1;
2103
+ if (!this.hasPlugin(e))
2104
+ return !1;
1963
2105
  let r = this.plugins.get(e);
1964
- for (let i of Object.keys(s)) if (r?.[i] !== s[i]) return !1;
2106
+ for (let i of Object.keys(s))
2107
+ if (r?.[i] !== s[i])
2108
+ return !1;
1965
2109
  return !0;
1966
2110
  }
1967
2111
  }
@@ -1981,7 +2125,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1981
2125
  }
1982
2126
  function Z(t, e, s) {
1983
2127
  let r = null, i = e.length;
1984
- for (; r === null && i > 0; ) r = e[--i];
2128
+ for (; r === null && i > 0; )
2129
+ r = e[--i];
1985
2130
  r === null || r.start > s.start ? fe(t, s.comments) : At(r, s.comments);
1986
2131
  }
1987
2132
  var ar = class extends rr {
@@ -1992,13 +2137,15 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
1992
2137
  }
1993
2138
  processComment(t) {
1994
2139
  let { commentStack: e } = this.state, s = e.length;
1995
- if (s === 0) return;
2140
+ if (s === 0)
2141
+ return;
1996
2142
  let r = s - 1, i = e[r];
1997
2143
  i.start === t.end && (i.leadingNode = t, r--);
1998
2144
  let { start: a } = t;
1999
2145
  for (; r >= 0; r--) {
2000
2146
  let n = e[r], o = n.end;
2001
- if (o > a) n.containingNode = t, this.finalizeComment(n), e.splice(r, 1);
2147
+ if (o > a)
2148
+ n.containingNode = t, this.finalizeComment(n), e.splice(r, 1);
2002
2149
  else {
2003
2150
  o === a && (n.trailingNode = t);
2004
2151
  break;
@@ -2008,71 +2155,80 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2008
2155
  finalizeComment(t) {
2009
2156
  var e;
2010
2157
  let { comments: s } = t;
2011
- if (t.leadingNode !== null || t.trailingNode !== null) t.leadingNode !== null && At(t.leadingNode, s), t.trailingNode !== null && ir(t.trailingNode, s);
2158
+ if (t.leadingNode !== null || t.trailingNode !== null)
2159
+ t.leadingNode !== null && At(t.leadingNode, s), t.trailingNode !== null && ir(t.trailingNode, s);
2012
2160
  else {
2013
2161
  let { containingNode: r, start: i } = t;
2014
- if (this.input.charCodeAt(this.offsetToSourcePos(i) - 1) === 44) switch (r.type) {
2015
- case "ObjectExpression":
2016
- case "ObjectPattern":
2017
- case "RecordExpression":
2018
- Z(r, r.properties, t);
2019
- break;
2020
- case "CallExpression":
2021
- case "OptionalCallExpression":
2022
- Z(r, r.arguments, t);
2023
- break;
2024
- case "ImportExpression":
2025
- Z(r, [r.source, (e = r.options) != null ? e : null], t);
2026
- break;
2027
- case "FunctionDeclaration":
2028
- case "FunctionExpression":
2029
- case "ArrowFunctionExpression":
2030
- case "ObjectMethod":
2031
- case "ClassMethod":
2032
- case "ClassPrivateMethod":
2033
- Z(r, r.params, t);
2034
- break;
2035
- case "ArrayExpression":
2036
- case "ArrayPattern":
2037
- case "TupleExpression":
2038
- Z(r, r.elements, t);
2039
- break;
2040
- case "ExportNamedDeclaration":
2041
- case "ImportDeclaration":
2042
- Z(r, r.specifiers, t);
2043
- break;
2044
- case "TSEnumDeclaration":
2045
- Z(r, r.members, t);
2046
- break;
2047
- case "TSEnumBody":
2048
- Z(r, r.members, t);
2049
- break;
2050
- default:
2051
- fe(r, s);
2052
- }
2053
- else fe(r, s);
2162
+ if (this.input.charCodeAt(this.offsetToSourcePos(i) - 1) === 44)
2163
+ switch (r.type) {
2164
+ case "ObjectExpression":
2165
+ case "ObjectPattern":
2166
+ case "RecordExpression":
2167
+ Z(r, r.properties, t);
2168
+ break;
2169
+ case "CallExpression":
2170
+ case "OptionalCallExpression":
2171
+ Z(r, r.arguments, t);
2172
+ break;
2173
+ case "ImportExpression":
2174
+ Z(r, [r.source, (e = r.options) != null ? e : null], t);
2175
+ break;
2176
+ case "FunctionDeclaration":
2177
+ case "FunctionExpression":
2178
+ case "ArrowFunctionExpression":
2179
+ case "ObjectMethod":
2180
+ case "ClassMethod":
2181
+ case "ClassPrivateMethod":
2182
+ Z(r, r.params, t);
2183
+ break;
2184
+ case "ArrayExpression":
2185
+ case "ArrayPattern":
2186
+ case "TupleExpression":
2187
+ Z(r, r.elements, t);
2188
+ break;
2189
+ case "ExportNamedDeclaration":
2190
+ case "ImportDeclaration":
2191
+ Z(r, r.specifiers, t);
2192
+ break;
2193
+ case "TSEnumDeclaration":
2194
+ Z(r, r.members, t);
2195
+ break;
2196
+ case "TSEnumBody":
2197
+ Z(r, r.members, t);
2198
+ break;
2199
+ default:
2200
+ fe(r, s);
2201
+ }
2202
+ else
2203
+ fe(r, s);
2054
2204
  }
2055
2205
  }
2056
2206
  finalizeRemainingComments() {
2057
2207
  let { commentStack: t } = this.state;
2058
- for (let e = t.length - 1; e >= 0; e--) this.finalizeComment(t[e]);
2208
+ for (let e = t.length - 1; e >= 0; e--)
2209
+ this.finalizeComment(t[e]);
2059
2210
  this.state.commentStack = [];
2060
2211
  }
2061
2212
  resetPreviousNodeTrailingComments(t) {
2062
2213
  let { commentStack: e } = this.state, { length: s } = e;
2063
- if (s === 0) return;
2214
+ if (s === 0)
2215
+ return;
2064
2216
  let r = e[s - 1];
2065
2217
  r.leadingNode === t && (r.leadingNode = null);
2066
2218
  }
2067
2219
  takeSurroundingComments(t, e, s) {
2068
2220
  let { commentStack: r } = this.state, i = r.length;
2069
- if (i === 0) return;
2221
+ if (i === 0)
2222
+ return;
2070
2223
  let a = i - 1;
2071
2224
  for (; a >= 0; a--) {
2072
2225
  let n = r[a], o = n.end;
2073
- if (n.start === s) n.leadingNode = t;
2074
- else if (o === e) n.trailingNode = t;
2075
- else if (o < e) break;
2226
+ if (n.start === s)
2227
+ n.leadingNode = t;
2228
+ else if (o === e)
2229
+ n.trailingNode = t;
2230
+ else if (o < e)
2231
+ break;
2076
2232
  }
2077
2233
  }
2078
2234
  }, nr = class Yt {
@@ -2186,7 +2342,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2186
2342
  l += e.slice(y, s);
2187
2343
  let N = hr(e, s, r, i, t === "template", a);
2188
2344
  N.ch === null && !d ? d = { pos: s, lineStart: r, curLine: i } : l += N.ch, { pos: s, lineStart: r, curLine: i } = N, y = s;
2189
- } else T === 8232 || T === 8233 ? (++s, ++i, r = s) : T === 10 || T === 13 ? t === "template" ? (l += e.slice(y, s) + `
2345
+ } else
2346
+ T === 8232 || T === 8233 ? (++s, ++i, r = s) : T === 10 || T === 13 ? t === "template" ? (l += e.slice(y, s) + `
2190
2347
  `, ++s, T === 13 && e.charCodeAt(s) === 10 && ++s, ++i, y = r = s) : a.unterminated(n, o, p) : ++s;
2191
2348
  }
2192
2349
  return { pos: s, str: l, firstInvalidLoc: d, lineStart: r, curLine: i, containsInvalid: !!d };
@@ -2229,7 +2386,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2229
2386
  return o("");
2230
2387
  case 56:
2231
2388
  case 57:
2232
- if (i) return o(null);
2389
+ if (i)
2390
+ return o(null);
2233
2391
  a.strictNumericEscape(e - 1, s, r);
2234
2392
  default:
2235
2393
  if (p >= 48 && p <= 55) {
@@ -2237,7 +2395,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2237
2395
  y > 255 && (d = d.slice(0, -1), y = parseInt(d, 8)), e += d.length - 1;
2238
2396
  let A = t.charCodeAt(e);
2239
2397
  if (d !== "0" || A === 56 || A === 57) {
2240
- if (i) return o(null);
2398
+ if (i)
2399
+ return o(null);
2241
2400
  a.strictNumericEscape(l, s, r);
2242
2401
  }
2243
2402
  return o(String.fromCharCode(y));
@@ -2257,21 +2416,27 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2257
2416
  let Ge = t.charCodeAt(e - 1), Ye = t.charCodeAt(e + 1);
2258
2417
  if (o) {
2259
2418
  if (Number.isNaN(Ye) || !A(Ye) || y.has(Ge) || y.has(Ye)) {
2260
- if (l) return { n: null, pos: e };
2419
+ if (l)
2420
+ return { n: null, pos: e };
2261
2421
  p.unexpectedNumericSeparator(e, s, r);
2262
2422
  }
2263
2423
  } else {
2264
- if (l) return { n: null, pos: e };
2424
+ if (l)
2425
+ return { n: null, pos: e };
2265
2426
  p.numericSeparatorInEscapeSequence(e, s, r);
2266
2427
  }
2267
2428
  ++e;
2268
2429
  continue;
2269
2430
  }
2270
2431
  if (U >= 97 ? H = U - 97 + 10 : U >= 65 ? H = U - 65 + 10 : or(U) ? H = U - 48 : H = 1 / 0, H >= i) {
2271
- if (H <= 9 && l) return { n: null, pos: e };
2272
- if (H <= 9 && p.invalidDigit(e, s, r, i)) H = 0;
2273
- else if (n) H = 0, T = !0;
2274
- else break;
2432
+ if (H <= 9 && l)
2433
+ return { n: null, pos: e };
2434
+ if (H <= 9 && p.invalidDigit(e, s, r, i))
2435
+ H = 0;
2436
+ else if (n)
2437
+ H = 0, T = !0;
2438
+ else
2439
+ break;
2275
2440
  }
2276
2441
  ++e, N = N * i + H;
2277
2442
  }
@@ -2280,9 +2445,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2280
2445
  function Et(t, e, s, r, i, a) {
2281
2446
  let n = t.charCodeAt(e), o;
2282
2447
  if (n === 123) {
2283
- if (++e, { code: o, pos: e } = Ke(t, e, s, r, t.indexOf("}", e) - e, !0, i, a), ++e, o !== null && o > 1114111) if (i) a.invalidCodePoint(e, s, r);
2284
- else return { code: null, pos: e };
2285
- } else ({ code: o, pos: e } = Ke(t, e, s, r, 4, !1, i, a));
2448
+ if (++e, { code: o, pos: e } = Ke(t, e, s, r, t.indexOf("}", e) - e, !0, i, a), ++e, o !== null && o > 1114111)
2449
+ if (i)
2450
+ a.invalidCodePoint(e, s, r);
2451
+ else
2452
+ return { code: null, pos: e };
2453
+ } else
2454
+ ({ code: o, pos: e } = Ke(t, e, s, r, 4, !1, i, a));
2286
2455
  return { code: o, pos: e };
2287
2456
  }
2288
2457
  function ye(t, e, s) {
@@ -2370,9 +2539,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2370
2539
  let e;
2371
2540
  this.isLookahead || (e = this.state.curPosition());
2372
2541
  let s = this.state.pos, r = this.input.indexOf(t, s + 2);
2373
- if (r === -1) throw this.raise(u.UnterminatedComment, this.state.curPosition());
2374
- for (this.state.pos = r + t.length, Ee.lastIndex = s + 2; Ee.test(this.input) && Ee.lastIndex <= r; ) ++this.state.curLine, this.state.lineStart = Ee.lastIndex;
2375
- if (this.isLookahead) return;
2542
+ if (r === -1)
2543
+ throw this.raise(u.UnterminatedComment, this.state.curPosition());
2544
+ for (this.state.pos = r + t.length, Ee.lastIndex = s + 2; Ee.test(this.input) && Ee.lastIndex <= r; )
2545
+ ++this.state.curLine, this.state.lineStart = Ee.lastIndex;
2546
+ if (this.isLookahead)
2547
+ return;
2376
2548
  let i = { type: "CommentBlock", value: this.input.slice(s + 2, r), start: this.sourceToOffsetPos(s), end: this.sourceToOffsetPos(r + t.length), loc: new f(e, this.state.curPosition()) };
2377
2549
  return this.optionFlags & 256 && this.pushToken(i), i;
2378
2550
  }
@@ -2380,61 +2552,69 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2380
2552
  let e = this.state.pos, s;
2381
2553
  this.isLookahead || (s = this.state.curPosition());
2382
2554
  let r = this.input.charCodeAt(this.state.pos += t);
2383
- if (this.state.pos < this.length) for (; !ne(r) && ++this.state.pos < this.length; ) r = this.input.charCodeAt(this.state.pos);
2384
- if (this.isLookahead) return;
2555
+ if (this.state.pos < this.length)
2556
+ for (; !ne(r) && ++this.state.pos < this.length; )
2557
+ r = this.input.charCodeAt(this.state.pos);
2558
+ if (this.isLookahead)
2559
+ return;
2385
2560
  let i = this.state.pos, a = { type: "CommentLine", value: this.input.slice(e + t, i), start: this.sourceToOffsetPos(e), end: this.sourceToOffsetPos(i), loc: new f(s, this.state.curPosition()) };
2386
2561
  return this.optionFlags & 256 && this.pushToken(a), a;
2387
2562
  }
2388
2563
  skipSpace() {
2389
2564
  let t = this.state.pos, e = this.optionFlags & 4096 ? [] : null;
2390
- e: for (; this.state.pos < this.length; ) {
2391
- let s = this.input.charCodeAt(this.state.pos);
2392
- switch (s) {
2393
- case 32:
2394
- case 160:
2395
- case 9:
2396
- ++this.state.pos;
2397
- break;
2398
- case 13:
2399
- this.input.charCodeAt(this.state.pos + 1) === 10 && ++this.state.pos;
2400
- case 10:
2401
- case 8232:
2402
- case 8233:
2403
- ++this.state.pos, ++this.state.curLine, this.state.lineStart = this.state.pos;
2404
- break;
2405
- case 47:
2406
- switch (this.input.charCodeAt(this.state.pos + 1)) {
2407
- case 42: {
2408
- let r = this.skipBlockComment("*/");
2409
- r !== void 0 && (this.addComment(r), e?.push(r));
2410
- break;
2411
- }
2412
- case 47: {
2413
- let r = this.skipLineComment(2);
2414
- r !== void 0 && (this.addComment(r), e?.push(r));
2415
- break;
2565
+ e:
2566
+ for (; this.state.pos < this.length; ) {
2567
+ let s = this.input.charCodeAt(this.state.pos);
2568
+ switch (s) {
2569
+ case 32:
2570
+ case 160:
2571
+ case 9:
2572
+ ++this.state.pos;
2573
+ break;
2574
+ case 13:
2575
+ this.input.charCodeAt(this.state.pos + 1) === 10 && ++this.state.pos;
2576
+ case 10:
2577
+ case 8232:
2578
+ case 8233:
2579
+ ++this.state.pos, ++this.state.curLine, this.state.lineStart = this.state.pos;
2580
+ break;
2581
+ case 47:
2582
+ switch (this.input.charCodeAt(this.state.pos + 1)) {
2583
+ case 42: {
2584
+ let r = this.skipBlockComment("*/");
2585
+ r !== void 0 && (this.addComment(r), e?.push(r));
2586
+ break;
2587
+ }
2588
+ case 47: {
2589
+ let r = this.skipLineComment(2);
2590
+ r !== void 0 && (this.addComment(r), e?.push(r));
2591
+ break;
2592
+ }
2593
+ default:
2594
+ break e;
2416
2595
  }
2417
- default:
2596
+ break;
2597
+ default:
2598
+ if (Qs(s))
2599
+ ++this.state.pos;
2600
+ else if (s === 45 && !this.inModule && this.optionFlags & 8192) {
2601
+ let r = this.state.pos;
2602
+ if (this.input.charCodeAt(r + 1) === 45 && this.input.charCodeAt(r + 2) === 62 && (t === 0 || this.state.lineStart > t)) {
2603
+ let i = this.skipLineComment(3);
2604
+ i !== void 0 && (this.addComment(i), e?.push(i));
2605
+ } else
2606
+ break e;
2607
+ } else if (s === 60 && !this.inModule && this.optionFlags & 8192) {
2608
+ let r = this.state.pos;
2609
+ if (this.input.charCodeAt(r + 1) === 33 && this.input.charCodeAt(r + 2) === 45 && this.input.charCodeAt(r + 3) === 45) {
2610
+ let i = this.skipLineComment(4);
2611
+ i !== void 0 && (this.addComment(i), e?.push(i));
2612
+ } else
2613
+ break e;
2614
+ } else
2418
2615
  break e;
2419
- }
2420
- break;
2421
- default:
2422
- if (Qs(s)) ++this.state.pos;
2423
- else if (s === 45 && !this.inModule && this.optionFlags & 8192) {
2424
- let r = this.state.pos;
2425
- if (this.input.charCodeAt(r + 1) === 45 && this.input.charCodeAt(r + 2) === 62 && (t === 0 || this.state.lineStart > t)) {
2426
- let i = this.skipLineComment(3);
2427
- i !== void 0 && (this.addComment(i), e?.push(i));
2428
- } else break e;
2429
- } else if (s === 60 && !this.inModule && this.optionFlags & 8192) {
2430
- let r = this.state.pos;
2431
- if (this.input.charCodeAt(r + 1) === 33 && this.input.charCodeAt(r + 2) === 45 && this.input.charCodeAt(r + 3) === 45) {
2432
- let i = this.skipLineComment(4);
2433
- i !== void 0 && (this.addComment(i), e?.push(i));
2434
- } else break e;
2435
- } else break e;
2616
+ }
2436
2617
  }
2437
- }
2438
2618
  if (e?.length > 0) {
2439
2619
  let s = this.state.pos, r = { start: this.sourceToOffsetPos(t), end: this.sourceToOffsetPos(s), comments: e, leadingNode: null, trailingNode: null, containingNode: null };
2440
2620
  this.state.commentStack.push(r);
@@ -2449,13 +2629,17 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2449
2629
  this.state.type = t, this.updateContext();
2450
2630
  }
2451
2631
  readToken_numberSign() {
2452
- if (this.state.pos === 0 && this.readToken_interpreter()) return;
2632
+ if (this.state.pos === 0 && this.readToken_interpreter())
2633
+ return;
2453
2634
  let t = this.state.pos + 1, e = this.codePointAtPos(t);
2454
- if (e >= 48 && e <= 57) throw this.raise(u.UnexpectedDigitAfterHash, this.state.curPosition());
2635
+ if (e >= 48 && e <= 57)
2636
+ throw this.raise(u.UnexpectedDigitAfterHash, this.state.curPosition());
2455
2637
  if (e === 123 || e === 91 && this.hasPlugin("recordAndTuple")) {
2456
- if (this.expectPlugin("recordAndTuple"), this.getPluginOption("recordAndTuple", "syntaxType") === "bar") throw this.raise(e === 123 ? u.RecordExpressionHashIncorrectStartSyntaxType : u.TupleExpressionHashIncorrectStartSyntaxType, this.state.curPosition());
2638
+ if (this.expectPlugin("recordAndTuple"), this.getPluginOption("recordAndTuple", "syntaxType") === "bar")
2639
+ throw this.raise(e === 123 ? u.RecordExpressionHashIncorrectStartSyntaxType : u.TupleExpressionHashIncorrectStartSyntaxType, this.state.curPosition());
2457
2640
  this.state.pos += 2, e === 123 ? this.finishToken(7) : this.finishToken(1);
2458
- } else J(e) ? (++this.state.pos, this.finishToken(139, this.readWord1(e))) : e === 92 ? (++this.state.pos, this.finishToken(139, this.readWord1())) : this.finishOp(27, 1);
2641
+ } else
2642
+ J(e) ? (++this.state.pos, this.finishToken(139, this.readWord1(e))) : e === 92 ? (++this.state.pos, this.finishToken(139, this.readWord1())) : this.finishOp(27, 1);
2459
2643
  }
2460
2644
  readToken_dot() {
2461
2645
  let t = this.input.charCodeAt(this.state.pos + 1);
@@ -2469,11 +2653,14 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2469
2653
  this.input.charCodeAt(this.state.pos + 1) === 61 ? this.finishOp(31, 2) : this.finishOp(56, 1);
2470
2654
  }
2471
2655
  readToken_interpreter() {
2472
- if (this.state.pos !== 0 || this.length < 2) return !1;
2656
+ if (this.state.pos !== 0 || this.length < 2)
2657
+ return !1;
2473
2658
  let t = this.input.charCodeAt(this.state.pos + 1);
2474
- if (t !== 33) return !1;
2659
+ if (t !== 33)
2660
+ return !1;
2475
2661
  let e = this.state.pos;
2476
- for (this.state.pos += 1; !ne(t) && ++this.state.pos < this.length; ) t = this.input.charCodeAt(this.state.pos);
2662
+ for (this.state.pos += 1; !ne(t) && ++this.state.pos < this.length; )
2663
+ t = this.input.charCodeAt(this.state.pos);
2477
2664
  let s = this.input.slice(e + 2, this.state.pos);
2478
2665
  return this.finishToken(28, s), !0;
2479
2666
  }
@@ -2493,12 +2680,14 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2493
2680
  return;
2494
2681
  }
2495
2682
  if (this.hasPlugin("recordAndTuple") && e === 125) {
2496
- if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(u.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
2683
+ if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar")
2684
+ throw this.raise(u.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
2497
2685
  this.state.pos += 2, this.finishToken(9);
2498
2686
  return;
2499
2687
  }
2500
2688
  if (this.hasPlugin("recordAndTuple") && e === 93) {
2501
- if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(u.TupleExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
2689
+ if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar")
2690
+ throw this.raise(u.TupleExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
2502
2691
  this.state.pos += 2, this.finishToken(4);
2503
2692
  return;
2504
2693
  }
@@ -2592,18 +2781,22 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2592
2781
  return;
2593
2782
  case 91:
2594
2783
  if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) {
2595
- if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(u.TupleExpressionBarIncorrectStartSyntaxType, this.state.curPosition());
2784
+ if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar")
2785
+ throw this.raise(u.TupleExpressionBarIncorrectStartSyntaxType, this.state.curPosition());
2596
2786
  this.state.pos += 2, this.finishToken(2);
2597
- } else ++this.state.pos, this.finishToken(0);
2787
+ } else
2788
+ ++this.state.pos, this.finishToken(0);
2598
2789
  return;
2599
2790
  case 93:
2600
2791
  ++this.state.pos, this.finishToken(3);
2601
2792
  return;
2602
2793
  case 123:
2603
2794
  if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) {
2604
- if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(u.RecordExpressionBarIncorrectStartSyntaxType, this.state.curPosition());
2795
+ if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar")
2796
+ throw this.raise(u.RecordExpressionBarIncorrectStartSyntaxType, this.state.curPosition());
2605
2797
  this.state.pos += 2, this.finishToken(6);
2606
- } else ++this.state.pos, this.finishToken(5);
2798
+ } else
2799
+ ++this.state.pos, this.finishToken(5);
2607
2800
  return;
2608
2801
  case 125:
2609
2802
  ++this.state.pos, this.finishToken(8);
@@ -2702,14 +2895,20 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2702
2895
  readRegexp() {
2703
2896
  let t = this.state.startLoc, e = this.state.start + 1, s, r, { pos: i } = this.state;
2704
2897
  for (; ; ++i) {
2705
- if (i >= this.length) throw this.raise(u.UnterminatedRegExp, x(t, 1));
2898
+ if (i >= this.length)
2899
+ throw this.raise(u.UnterminatedRegExp, x(t, 1));
2706
2900
  let p = this.input.charCodeAt(i);
2707
- if (ne(p)) throw this.raise(u.UnterminatedRegExp, x(t, 1));
2708
- if (s) s = !1;
2901
+ if (ne(p))
2902
+ throw this.raise(u.UnterminatedRegExp, x(t, 1));
2903
+ if (s)
2904
+ s = !1;
2709
2905
  else {
2710
- if (p === 91) r = !0;
2711
- else if (p === 93 && r) r = !1;
2712
- else if (p === 47 && !r) break;
2906
+ if (p === 91)
2907
+ r = !0;
2908
+ else if (p === 93 && r)
2909
+ r = !1;
2910
+ else if (p === 47 && !r)
2911
+ break;
2713
2912
  s = p === 92;
2714
2913
  }
2715
2914
  }
@@ -2718,9 +2917,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2718
2917
  let n = "", o = () => x(t, i + 2 - e);
2719
2918
  for (; i < this.length; ) {
2720
2919
  let p = this.codePointAtPos(i), l = String.fromCharCode(p);
2721
- if (pr.has(p)) p === 118 ? n.includes("u") && this.raise(u.IncompatibleRegExpUVFlags, o()) : p === 117 && n.includes("v") && this.raise(u.IncompatibleRegExpUVFlags, o()), n.includes(l) && this.raise(u.DuplicateRegExpFlags, o());
2722
- else if (ae(p) || p === 92) this.raise(u.MalformedRegExpFlags, o());
2723
- else break;
2920
+ if (pr.has(p))
2921
+ p === 118 ? n.includes("u") && this.raise(u.IncompatibleRegExpUVFlags, o()) : p === 117 && n.includes("v") && this.raise(u.IncompatibleRegExpUVFlags, o()), n.includes(l) && this.raise(u.DuplicateRegExpFlags, o());
2922
+ else if (ae(p) || p === 92)
2923
+ this.raise(u.MalformedRegExpFlags, o());
2924
+ else
2925
+ break;
2724
2926
  ++i, n += l;
2725
2927
  }
2726
2928
  this.state.pos = i, this.finishToken(138, { pattern: a, flags: n });
@@ -2735,9 +2937,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2735
2937
  let i = this.readInt(t);
2736
2938
  i == null && this.raise(u.InvalidDigit, x(s, 2), { radix: t });
2737
2939
  let a = this.input.charCodeAt(this.state.pos);
2738
- if (a === 110) ++this.state.pos, r = !0;
2739
- else if (a === 109) throw this.raise(u.InvalidDecimal, s);
2740
- if (J(this.codePointAtPos(this.state.pos))) throw this.raise(u.NumberIdentifier, this.state.curPosition());
2940
+ if (a === 110)
2941
+ ++this.state.pos, r = !0;
2942
+ else if (a === 109)
2943
+ throw this.raise(u.InvalidDecimal, s);
2944
+ if (J(this.codePointAtPos(this.state.pos)))
2945
+ throw this.raise(u.NumberIdentifier, this.state.curPosition());
2741
2946
  if (r) {
2742
2947
  let n = this.input.slice(e, this.state.pos).replace(/[_n]/g, "");
2743
2948
  this.finishToken(136, n);
@@ -2762,7 +2967,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2762
2967
  this.expectPlugin("decimal", this.state.curPosition()), (a || o) && this.raise(u.InvalidDecimal, s), ++this.state.pos;
2763
2968
  var l = !0;
2764
2969
  }
2765
- if (J(this.codePointAtPos(this.state.pos))) throw this.raise(u.NumberIdentifier, this.state.curPosition());
2970
+ if (J(this.codePointAtPos(this.state.pos)))
2971
+ throw this.raise(u.NumberIdentifier, this.state.curPosition());
2766
2972
  let d = this.input.slice(e, this.state.pos).replace(/[_mn]/g, "");
2767
2973
  if (i) {
2768
2974
  this.finishToken(136, d);
@@ -2799,7 +3005,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2799
3005
  let e = "", s = this.state.pos, r = this.state.pos;
2800
3006
  for (t !== void 0 && (this.state.pos += t <= 65535 ? 1 : 2); this.state.pos < this.length; ) {
2801
3007
  let i = this.codePointAtPos(this.state.pos);
2802
- if (ae(i)) this.state.pos += i <= 65535 ? 1 : 2;
3008
+ if (ae(i))
3009
+ this.state.pos += i <= 65535 ? 1 : 2;
2803
3010
  else if (i === 92) {
2804
3011
  this.state.containsEsc = !0, e += this.input.slice(r, this.state.pos);
2805
3012
  let a = this.state.curPosition(), n = this.state.pos === s ? J : ae;
@@ -2810,7 +3017,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2810
3017
  ++this.state.pos;
2811
3018
  let o = this.readCodePoint(!0);
2812
3019
  o !== null && (n(o) || this.raise(u.EscapedCharNotAnIdentifier, a), e += String.fromCodePoint(o)), r = this.state.pos;
2813
- } else break;
3020
+ } else
3021
+ break;
2814
3022
  }
2815
3023
  return e + this.input.slice(r, this.state.pos);
2816
3024
  }
@@ -2824,15 +3032,18 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2824
3032
  }
2825
3033
  raise(t, e, s = {}) {
2826
3034
  let r = e instanceof m ? e : e.loc.start, i = t(r, s);
2827
- if (!(this.optionFlags & 2048)) throw i;
3035
+ if (!(this.optionFlags & 2048))
3036
+ throw i;
2828
3037
  return this.isLookahead || this.state.errors.push(i), i;
2829
3038
  }
2830
3039
  raiseOverwrite(t, e, s = {}) {
2831
3040
  let r = e instanceof m ? e : e.loc.start, i = r.index, a = this.state.errors;
2832
3041
  for (let n = a.length - 1; n >= 0; n--) {
2833
3042
  let o = a[n];
2834
- if (o.loc.index === i) return a[n] = t(r, s);
2835
- if (o.loc.index < i) break;
3043
+ if (o.loc.index === i)
3044
+ return a[n] = t(r, s);
3045
+ if (o.loc.index < i)
3046
+ break;
2836
3047
  }
2837
3048
  return this.raise(t, e, s);
2838
3049
  }
@@ -2842,11 +3053,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2842
3053
  throw this.raise(u.UnexpectedToken, t ?? this.state.startLoc, { expected: e ? Y(e) : null });
2843
3054
  }
2844
3055
  expectPlugin(t, e) {
2845
- if (this.hasPlugin(t)) return !0;
3056
+ if (this.hasPlugin(t))
3057
+ return !0;
2846
3058
  throw this.raise(u.MissingPlugin, e ?? this.state.startLoc, { missingPlugin: [t] });
2847
3059
  }
2848
3060
  expectOnePlugin(t) {
2849
- if (!t.some((e) => this.hasPlugin(e))) throw this.raise(u.MissingOneOfPlugins, this.state.startLoc, { missingPlugin: t });
3061
+ if (!t.some((e) => this.hasPlugin(e)))
3062
+ throw this.raise(u.MissingOneOfPlugins, this.state.startLoc, { missingPlugin: t });
2850
3063
  }
2851
3064
  errorBuilder(t) {
2852
3065
  return (e, s, r) => {
@@ -2869,7 +3082,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2869
3082
  }
2870
3083
  exit() {
2871
3084
  let t = this.stack.pop(), e = this.current();
2872
- for (let [s, r] of Array.from(t.undefinedPrivateNames)) e ? e.undefinedPrivateNames.has(s) || e.undefinedPrivateNames.set(s, r) : this.parser.raise(u.InvalidPrivateFieldResolution, r, { identifierName: s });
3085
+ for (let [s, r] of Array.from(t.undefinedPrivateNames))
3086
+ e ? e.undefinedPrivateNames.has(s) || e.undefinedPrivateNames.set(s, r) : this.parser.raise(u.InvalidPrivateFieldResolution, r, { identifierName: s });
2873
3087
  }
2874
3088
  declarePrivateName(t, e, s) {
2875
3089
  let { privateNames: r, loneAccessors: i, undefinedPrivateNames: a } = this.current(), n = r.has(t);
@@ -2878,13 +3092,16 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2878
3092
  if (o) {
2879
3093
  let p = o & 4, l = e & 4, d = o & 3, y = e & 3;
2880
3094
  n = d === y || p !== l, n || i.delete(t);
2881
- } else n || i.set(t, e);
3095
+ } else
3096
+ n || i.set(t, e);
2882
3097
  }
2883
3098
  n && this.parser.raise(u.PrivateNameRedeclaration, s, { identifierName: t }), r.add(t), a.delete(t);
2884
3099
  }
2885
3100
  usePrivateName(t, e) {
2886
3101
  let s;
2887
- for (s of this.stack) if (s.privateNames.has(t)) return;
3102
+ for (s of this.stack)
3103
+ if (s.privateNames.has(t))
3104
+ return;
2888
3105
  s ? s.undefinedPrivateNames.set(t, e) : this.parser.raise(u.InvalidPrivateFieldResolution, e, { identifierName: t });
2889
3106
  }
2890
3107
  }, we = class {
@@ -2924,28 +3141,35 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2924
3141
  recordParameterInitializerError(t, e) {
2925
3142
  let s = e.loc.start, { stack: r } = this, i = r.length - 1, a = r[i];
2926
3143
  for (; !a.isCertainlyParameterDeclaration(); ) {
2927
- if (a.canBeArrowParameterDeclaration()) a.recordDeclarationError(t, s);
2928
- else return;
3144
+ if (a.canBeArrowParameterDeclaration())
3145
+ a.recordDeclarationError(t, s);
3146
+ else
3147
+ return;
2929
3148
  a = r[--i];
2930
3149
  }
2931
3150
  this.parser.raise(t, s);
2932
3151
  }
2933
3152
  recordArrowParameterBindingError(t, e) {
2934
3153
  let { stack: s } = this, r = s[s.length - 1], i = e.loc.start;
2935
- if (r.isCertainlyParameterDeclaration()) this.parser.raise(t, i);
2936
- else if (r.canBeArrowParameterDeclaration()) r.recordDeclarationError(t, i);
2937
- else return;
3154
+ if (r.isCertainlyParameterDeclaration())
3155
+ this.parser.raise(t, i);
3156
+ else if (r.canBeArrowParameterDeclaration())
3157
+ r.recordDeclarationError(t, i);
3158
+ else
3159
+ return;
2938
3160
  }
2939
3161
  recordAsyncArrowParametersError(t) {
2940
3162
  let { stack: e } = this, s = e.length - 1, r = e[s];
2941
- for (; r.canBeArrowParameterDeclaration(); ) r.type === 2 && r.recordDeclarationError(u.AwaitBindingIdentifier, t), r = e[--s];
3163
+ for (; r.canBeArrowParameterDeclaration(); )
3164
+ r.type === 2 && r.recordDeclarationError(u.AwaitBindingIdentifier, t), r = e[--s];
2942
3165
  }
2943
3166
  validateAsPattern() {
2944
3167
  let { stack: t } = this, e = t[t.length - 1];
2945
3168
  e.canBeArrowParameterDeclaration() && e.iterateErrors(([s, r]) => {
2946
3169
  this.parser.raise(s, r);
2947
3170
  let i = t.length - 2, a = t[i];
2948
- for (; a.canBeArrowParameterDeclaration(); ) a.clearDeclarationError(r.index), a = t[--i];
3171
+ for (; a.canBeArrowParameterDeclaration(); )
3172
+ a.clearDeclarationError(r.index), a = t[--i];
2949
3173
  });
2950
3174
  }
2951
3175
  };
@@ -2963,7 +3187,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2963
3187
  }
2964
3188
  var Pr = class extends ur {
2965
3189
  addExtra(t, e, s, r = !0) {
2966
- if (!t) return;
3190
+ if (!t)
3191
+ return;
2967
3192
  let { extra: i } = t;
2968
3193
  i == null && (i = {}, t.extra = i), r ? i[e] = s : Object.defineProperty(i, e, { enumerable: r, value: s });
2969
3194
  }
@@ -2986,7 +3211,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
2986
3211
  }
2987
3212
  expectContextual(t, e) {
2988
3213
  if (!this.eatContextual(t)) {
2989
- if (e != null) throw this.raise(e, this.state.startLoc);
3214
+ if (e != null)
3215
+ throw this.raise(e, this.state.startLoc);
2990
3216
  this.unexpected(null, t);
2991
3217
  }
2992
3218
  }
@@ -3021,15 +3247,19 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3021
3247
  return { node: r, error: null, thrown: !1, aborted: !1, failState: null };
3022
3248
  } catch (r) {
3023
3249
  let i = this.state;
3024
- if (this.state = e, r instanceof SyntaxError) return { node: null, error: r, thrown: !0, aborted: !1, failState: i };
3025
- if (r === s) return { node: s.node, error: null, thrown: !1, aborted: !0, failState: i };
3250
+ if (this.state = e, r instanceof SyntaxError)
3251
+ return { node: null, error: r, thrown: !0, aborted: !1, failState: i };
3252
+ if (r === s)
3253
+ return { node: s.node, error: null, thrown: !1, aborted: !0, failState: i };
3026
3254
  throw r;
3027
3255
  }
3028
3256
  }
3029
3257
  checkExpressionErrors(t, e) {
3030
- if (!t) return !1;
3258
+ if (!t)
3259
+ return !1;
3031
3260
  let { shorthandAssignLoc: s, doubleProtoLoc: r, privateKeyLoc: i, optionalParametersLoc: a } = t, n = !!s || !!r || !!a || !!i;
3032
- if (!e) return n;
3261
+ if (!e)
3262
+ return n;
3033
3263
  s != null && this.raise(u.InvalidCoverInitializedName, s), r != null && this.raise(u.DuplicateProto, r), i != null && this.raise(u.UnexpectedPrivateField, i), a != null && this.unexpected(a);
3034
3264
  }
3035
3265
  isLiteralPropertyName() {
@@ -3170,12 +3400,14 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3170
3400
  }
3171
3401
  }
3172
3402
  toAssignableObjectExpressionProp(t, e, s) {
3173
- if (t.type === "ObjectMethod") this.raise(t.kind === "get" || t.kind === "set" ? u.PatternHasAccessor : u.PatternHasMethod, t.key);
3403
+ if (t.type === "ObjectMethod")
3404
+ this.raise(t.kind === "get" || t.kind === "set" ? u.PatternHasAccessor : u.PatternHasMethod, t.key);
3174
3405
  else if (t.type === "SpreadElement") {
3175
3406
  this.castNodeTo(t, "RestElement");
3176
3407
  let r = t.argument;
3177
3408
  this.checkToRestConversion(r, !1), this.toAssignable(r, s), e || this.raise(u.RestTrailingComma, t);
3178
- } else this.toAssignable(t, s);
3409
+ } else
3410
+ this.toAssignable(t, s);
3179
3411
  }
3180
3412
  toAssignableList(t, e, s) {
3181
3413
  let r = t.length - 1;
@@ -3190,7 +3422,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3190
3422
  this.castNodeTo(r, "RestElement");
3191
3423
  let i = r.argument;
3192
3424
  this.checkToRestConversion(i, !0), this.toAssignable(i, s);
3193
- } else this.toAssignable(r, s);
3425
+ } else
3426
+ this.toAssignable(r, s);
3194
3427
  }
3195
3428
  isAssignable(t, e) {
3196
3429
  switch (t.type) {
@@ -3226,7 +3459,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3226
3459
  }
3227
3460
  toReferencedListDeep(t, e) {
3228
3461
  this.toReferencedList(t, e);
3229
- for (let s of t) s?.type === "ArrayExpression" && this.toReferencedListDeep(s.elements);
3462
+ for (let s of t)
3463
+ s?.type === "ArrayExpression" && this.toReferencedListDeep(s.elements);
3230
3464
  }
3231
3465
  parseSpread(t) {
3232
3466
  let e = this.startNode();
@@ -3249,21 +3483,26 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3249
3483
  }
3250
3484
  parseBindingList(t, e, s) {
3251
3485
  let r = s & 1, i = [], a = !0;
3252
- for (; !this.eat(t); ) if (a ? a = !1 : this.expect(12), r && this.match(12)) i.push(null);
3253
- else {
3254
- if (this.eat(t)) break;
3255
- if (this.match(21)) {
3256
- let n = this.parseRestBinding();
3257
- if ((this.hasPlugin("flow") || s & 2) && (n = this.parseFunctionParamType(n)), i.push(n), !this.checkCommaAfterRest(e)) {
3258
- this.expect(t);
3486
+ for (; !this.eat(t); )
3487
+ if (a ? a = !1 : this.expect(12), r && this.match(12))
3488
+ i.push(null);
3489
+ else {
3490
+ if (this.eat(t))
3259
3491
  break;
3492
+ if (this.match(21)) {
3493
+ let n = this.parseRestBinding();
3494
+ if ((this.hasPlugin("flow") || s & 2) && (n = this.parseFunctionParamType(n)), i.push(n), !this.checkCommaAfterRest(e)) {
3495
+ this.expect(t);
3496
+ break;
3497
+ }
3498
+ } else {
3499
+ let n = [];
3500
+ if (s & 2)
3501
+ for (this.match(26) && this.hasPlugin("decorators") && this.raise(u.UnsupportedParameterDecorator, this.state.startLoc); this.match(26); )
3502
+ n.push(this.parseDecorator());
3503
+ i.push(this.parseBindingElement(s, n));
3260
3504
  }
3261
- } else {
3262
- let n = [];
3263
- if (s & 2) for (this.match(26) && this.hasPlugin("decorators") && this.raise(u.UnsupportedParameterDecorator, this.state.startLoc); this.match(26); ) n.push(this.parseDecorator());
3264
- i.push(this.parseBindingElement(s, n));
3265
3505
  }
3266
- }
3267
3506
  return i;
3268
3507
  }
3269
3508
  parseBindingRestProperty(t) {
@@ -3271,7 +3510,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3271
3510
  }
3272
3511
  parseBindingProperty() {
3273
3512
  let { type: t, startLoc: e } = this.state;
3274
- if (t === 21) return this.parseBindingRestProperty(this.startNode());
3513
+ if (t === 21)
3514
+ return this.parseBindingRestProperty(this.startNode());
3275
3515
  let s = this.startNode();
3276
3516
  return t === 139 ? (this.expectPlugin("destructuringPrivate", e), this.classScope.usePrivateName(this.state.value, e), s.key = this.parsePrivateName()) : this.parsePropertyName(s), s.method = !1, this.parseObjPropValue(s, e, !1, !1, !0, !1);
3277
3517
  }
@@ -3283,7 +3523,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3283
3523
  return t;
3284
3524
  }
3285
3525
  parseMaybeDefault(t, e) {
3286
- if (t ?? (t = this.state.startLoc), e = e ?? this.parseBindingAtom(), !this.eat(29)) return e;
3526
+ if (t ?? (t = this.state.startLoc), e = e ?? this.parseBindingAtom(), !this.eat(29))
3527
+ return e;
3287
3528
  let s = this.startNodeAt(t);
3288
3529
  return s.left = e, s.right = this.parseMaybeAssignAllowIn(), this.finishNode(s, "AssignmentPattern");
3289
3530
  }
@@ -3310,7 +3551,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3310
3551
  checkLVal(t, e, s = 64, r = !1, i = !1, a = !1) {
3311
3552
  var n;
3312
3553
  let o = t.type;
3313
- if (this.isObjectMethod(t)) return;
3554
+ if (this.isObjectMethod(t))
3555
+ return;
3314
3556
  let p = this.isOptionalMemberExpression(t);
3315
3557
  if (p || o === "MemberExpression") {
3316
3558
  p && (this.expectPlugin("optionalChainingAssign", t.loc.start), e.type !== "AssignmentExpression" && this.raise(u.InvalidLhsOptionalChaining, t, { ancestor: e })), s !== 64 && this.raise(u.InvalidPropertyBindingPattern, t);
@@ -3323,7 +3565,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3323
3565
  return;
3324
3566
  }
3325
3567
  let l = this.isValidLVal(o, !(a || (n = t.extra) != null && n.parenthesized) && e.type === "AssignmentExpression", s);
3326
- if (l === !0) return;
3568
+ if (l === !0)
3569
+ return;
3327
3570
  if (l === !1) {
3328
3571
  let N = s === 64 ? u.InvalidLhs : u.InvalidLhsBinding;
3329
3572
  this.raise(N, t, { ancestor: e });
@@ -3332,8 +3575,11 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3332
3575
  let d, y;
3333
3576
  typeof l == "string" ? (d = l, y = o === "ParenthesizedExpression") : [d, y] = l;
3334
3577
  let A = o === "ArrayPattern" || o === "ObjectPattern" ? { type: o } : e, T = t[d];
3335
- if (Array.isArray(T)) for (let N of T) N && this.checkLVal(N, A, s, r, i, y);
3336
- else T && this.checkLVal(T, A, s, r, i, y);
3578
+ if (Array.isArray(T))
3579
+ for (let N of T)
3580
+ N && this.checkLVal(N, A, s, r, i, y);
3581
+ else
3582
+ T && this.checkLVal(T, A, s, r, i, y);
3337
3583
  }
3338
3584
  checkIdentifier(t, e, s = !1) {
3339
3585
  this.state.strict && (s ? yt(t.name, this.inModule) : ft(t.name)) && (e === 64 ? this.raise(u.StrictEvalArguments, t, { referenceName: t.name }) : this.raise(u.StrictEvalArgumentsBinding, t, { bindingName: t.name })), e & 8192 && t.name === "let" && this.raise(u.LetInLexicalBinding, t), e & 64 || this.declareNameFromIdentifier(t, e);
@@ -3351,7 +3597,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3351
3597
  break;
3352
3598
  case "ArrayExpression":
3353
3599
  case "ObjectExpression":
3354
- if (e) break;
3600
+ if (e)
3601
+ break;
3355
3602
  default:
3356
3603
  this.raise(u.InvalidRestAssignmentPattern, t);
3357
3604
  }
@@ -3361,11 +3608,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3361
3608
  }
3362
3609
  };
3363
3610
  function Tr(t) {
3364
- if (t == null) throw new Error(`Unexpected ${t} value.`);
3611
+ if (t == null)
3612
+ throw new Error(`Unexpected ${t} value.`);
3365
3613
  return t;
3366
3614
  }
3367
3615
  function It(t) {
3368
- if (!t) throw new Error("Assert fail");
3616
+ if (!t)
3617
+ throw new Error("Assert fail");
3369
3618
  }
3370
3619
  var g = $`typescript`({ AbstractMethodHasImplementation: ({ methodName: t }) => `Method '${t}' cannot have an implementation because it is marked abstract.`, AbstractPropertyHasInitializer: ({ propertyName: t }) => `Property '${t}' cannot have an initializer because it is marked abstract.`, AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.", AccessorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.", AccessorCannotHaveTypeParameters: "An accessor cannot have type parameters.", ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.", ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.", ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.", ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.", DeclareAccessor: ({ kind: t }) => `'declare' is not allowed in ${t}ters.`, DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.", DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.", DuplicateAccessibilityModifier: ({ modifier: t }) => `Accessibility modifier already seen: '${t}'.`, DuplicateModifier: ({ modifier: t }) => `Duplicate modifier: '${t}'.`, EmptyHeritageClauseType: ({ token: t }) => `'${t}' list cannot be empty.`, EmptyTypeArguments: "Type argument list cannot be empty.", EmptyTypeParameters: "Type parameter list cannot be empty.", ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.", ImportAliasHasImportType: "An import alias can not use 'import type'.", ImportReflectionHasImportType: "An `import module` declaration can not use `type` modifier", IncompatibleModifiers: ({ modifiers: t }) => `'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`, IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.", IndexSignatureHasAccessibility: ({ modifier: t }) => `Index signatures cannot have an accessibility modifier ('${t}').`, IndexSignatureHasDeclare: "Index signatures cannot have the 'declare' modifier.", IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.", IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.", InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.", InvalidHeritageClauseType: ({ token: t }) => `'${t}' list can only include identifiers or qualified-names with optional type arguments.`, InvalidModifierOnAwaitUsingDeclaration: (t) => `'${t}' modifier cannot appear on an await using declaration.`, InvalidModifierOnTypeMember: ({ modifier: t }) => `'${t}' modifier cannot appear on a type member.`, InvalidModifierOnTypeParameter: ({ modifier: t }) => `'${t}' modifier cannot appear on a type parameter.`, InvalidModifierOnTypeParameterPositions: ({ modifier: t }) => `'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`, InvalidModifierOnUsingDeclaration: (t) => `'${t}' modifier cannot appear on a using declaration.`, InvalidModifiersOrder: ({ orderedModifiers: t }) => `'${t[0]}' modifier must precede '${t[1]}' modifier.`, InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.", InvalidTupleMemberLabel: "Tuple members must be labeled with a simple identifier.", MissingInterfaceName: "'interface' declarations must be followed by an identifier.", NonAbstractClassHasAbstractMethod: "Abstract methods can only appear within an abstract class.", NonClassMethodPropertyHasAbstractModifier: "'abstract' modifier can only appear on a class, method, or property declaration.", OptionalTypeBeforeRequired: "A required element cannot follow an optional element.", OverrideNotInSubClass: "This member cannot have an 'override' modifier because its containing class does not extend another class.", PatternIsOptional: "A binding pattern parameter cannot be optional in an implementation signature.", PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.", PrivateElementHasAccessibility: ({ modifier: t }) => `Private elements cannot have an accessibility modifier ('${t}').`, ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.", ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.", ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.", SetAccessorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.", SetAccessorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.", SetAccessorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.", SingleTypeParameterWithoutTrailingComma: ({ typeParameterName: t }) => `Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`, StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", TupleOptionalAfterType: "A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).", TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.", TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.", UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", UnexpectedTypeAnnotation: "Did not expect a type annotation here.", UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", UnsupportedSignatureParameterKind: ({ type: t }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`, UsingDeclarationInAmbientContext: (t) => `'${t}' declarations are not allowed in ambient contexts.` });
3371
3620
  function br(t) {
@@ -3420,11 +3669,14 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3420
3669
  return this.match(106) ? (this.next(), this.tsTokenCanFollowModifier()) : this.tsNextTokenOnSameLineAndCanFollowModifier();
3421
3670
  }
3422
3671
  tsParseModifier(e, s, r) {
3423
- if (!F(this.state.type) && this.state.type !== 58 && this.state.type !== 75) return;
3672
+ if (!F(this.state.type) && this.state.type !== 58 && this.state.type !== 75)
3673
+ return;
3424
3674
  let i = this.state.value;
3425
3675
  if (e.includes(i)) {
3426
- if (r && this.match(106) || s && this.tsIsStartOfStaticBlocks()) return;
3427
- if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) return i;
3676
+ if (r && this.match(106) || s && this.tsIsStartOfStaticBlocks())
3677
+ return;
3678
+ if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))
3679
+ return i;
3428
3680
  }
3429
3681
  }
3430
3682
  tsParseModifiers({ allowedModifiers: e, disallowedModifiers: s, stopOnStartOfClassStaticBlock: r, errorTemplate: i = g.InvalidModifierOnTypeMember }, a) {
@@ -3435,7 +3687,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3435
3687
  };
3436
3688
  for (; ; ) {
3437
3689
  let { startLoc: p } = this.state, l = this.tsParseModifier(e.concat(s ?? []), r, a.static);
3438
- if (!l) break;
3690
+ if (!l)
3691
+ break;
3439
3692
  Nt(l) ? a.accessibility ? this.raise(g.DuplicateAccessibilityModifier, p, { modifier: l }) : (n(p, l, l, "override"), n(p, l, l, "static"), n(p, l, l, "readonly"), a.accessibility = l) : Er(l) ? (a[l] && this.raise(g.DuplicateModifier, p, { modifier: l }), a[l] = !0, n(p, l, "in", "out")) : (hasOwnProperty.call(a, l) ? this.raise(g.DuplicateModifier, p, { modifier: l }) : (n(p, l, "static", "readonly"), n(p, l, "static", "override"), n(p, l, "override", "readonly"), n(p, l, "abstract", "override"), o(p, l, "declare", "override"), o(p, l, "static", "abstract")), a[l] = !0), s != null && s.includes(l) && this.raise(i, p, { modifier: l });
3440
3693
  }
3441
3694
  }
@@ -3454,7 +3707,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3454
3707
  }
3455
3708
  tsParseList(e, s) {
3456
3709
  let r = [];
3457
- for (; !this.tsIsListTerminator(e); ) r.push(s());
3710
+ for (; !this.tsIsListTerminator(e); )
3711
+ r.push(s());
3458
3712
  return r;
3459
3713
  }
3460
3714
  tsParseDelimitedList(e, s, r) {
@@ -3465,12 +3719,14 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3465
3719
  for (; !this.tsIsListTerminator(e); ) {
3466
3720
  n = -1;
3467
3721
  let o = s();
3468
- if (o == null) return;
3722
+ if (o == null)
3723
+ return;
3469
3724
  if (a.push(o), this.eat(12)) {
3470
3725
  n = this.state.lastTokStartLoc.index;
3471
3726
  continue;
3472
3727
  }
3473
- if (this.tsIsListTerminator(e)) break;
3728
+ if (this.tsIsListTerminator(e))
3729
+ break;
3474
3730
  r && this.expect(12);
3475
3731
  return;
3476
3732
  }
@@ -3501,12 +3757,15 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3501
3757
  }
3502
3758
  tsParseEntityName(e) {
3503
3759
  let s;
3504
- if (e & 1 && this.match(78)) if (e & 2) s = this.parseIdentifier(!0);
3505
- else {
3506
- let r = this.startNode();
3507
- this.next(), s = this.finishNode(r, "ThisExpression");
3508
- }
3509
- else s = this.parseIdentifier(!!(e & 1));
3760
+ if (e & 1 && this.match(78))
3761
+ if (e & 2)
3762
+ s = this.parseIdentifier(!0);
3763
+ else {
3764
+ let r = this.startNode();
3765
+ this.next(), s = this.finishNode(r, "ThisExpression");
3766
+ }
3767
+ else
3768
+ s = this.parseIdentifier(!!(e & 1));
3510
3769
  for (; this.eat(16); ) {
3511
3770
  let r = this.startNodeAtNode(s);
3512
3771
  r.left = s, r.right = this.parseIdentifier(!!(e & 1)), s = this.finishNode(r, "TSQualifiedName");
@@ -3535,7 +3794,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3535
3794
  return e(s), s.name = this.tsParseTypeParameterName(), s.constraint = this.tsEatThenParseType(81), s.default = this.tsEatThenParseType(29), this.finishNode(s, "TSTypeParameter");
3536
3795
  }
3537
3796
  tsTryParseTypeParameters(e) {
3538
- if (this.match(47)) return this.tsParseTypeParameters(e);
3797
+ if (this.match(47))
3798
+ return this.tsParseTypeParameters(e);
3539
3799
  }
3540
3800
  tsParseTypeParameters(e) {
3541
3801
  let s = this.startNode();
@@ -3565,7 +3825,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3565
3825
  return this.next(), F(this.state.type) ? (this.next(), this.match(14)) : !1;
3566
3826
  }
3567
3827
  tsTryParseIndexSignature(e) {
3568
- if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))) return;
3828
+ if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))
3829
+ return;
3569
3830
  this.expect(0);
3570
3831
  let s = this.parseIdentifier();
3571
3832
  s.typeAnnotation = this.tsParseTypeAnnotation(), this.resetEndLocation(s), this.expect(3), e.parameters = [s];
@@ -3578,15 +3839,18 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3578
3839
  let r = e;
3579
3840
  r.kind && this.match(47) && this.raise(g.AccessorCannotHaveTypeParameters, this.state.curPosition()), this.tsFillSignature(14, r), this.tsParseTypeMemberSemicolon();
3580
3841
  let i = "parameters", a = "typeAnnotation";
3581
- if (r.kind === "get") r[i].length > 0 && (this.raise(u.BadGetterArity, this.state.curPosition()), this.isThisParam(r[i][0]) && this.raise(g.AccessorCannotDeclareThisParameter, this.state.curPosition()));
3842
+ if (r.kind === "get")
3843
+ r[i].length > 0 && (this.raise(u.BadGetterArity, this.state.curPosition()), this.isThisParam(r[i][0]) && this.raise(g.AccessorCannotDeclareThisParameter, this.state.curPosition()));
3582
3844
  else if (r.kind === "set") {
3583
- if (r[i].length !== 1) this.raise(u.BadSetterArity, this.state.curPosition());
3845
+ if (r[i].length !== 1)
3846
+ this.raise(u.BadSetterArity, this.state.curPosition());
3584
3847
  else {
3585
3848
  let n = r[i][0];
3586
3849
  this.isThisParam(n) && this.raise(g.AccessorCannotDeclareThisParameter, this.state.curPosition()), n.type === "Identifier" && n.optional && this.raise(g.SetAccessorCannotHaveOptionalParameter, this.state.curPosition()), n.type === "RestElement" && this.raise(g.SetAccessorCannotHaveRestParameter, this.state.curPosition());
3587
3850
  }
3588
3851
  r[a] && this.raise(g.SetAccessorCannotHaveReturnType, r[a]);
3589
- } else r.kind = "method";
3852
+ } else
3853
+ r.kind = "method";
3590
3854
  return this.finishNode(r, "TSMethodSignature");
3591
3855
  } else {
3592
3856
  let r = e;
@@ -3597,7 +3861,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3597
3861
  }
3598
3862
  tsParseTypeMember() {
3599
3863
  let e = this.startNode();
3600
- if (this.match(10) || this.match(47)) return this.tsParseSignatureMember("TSCallSignatureDeclaration", e);
3864
+ if (this.match(10) || this.match(47))
3865
+ return this.tsParseSignatureMember("TSCallSignatureDeclaration", e);
3601
3866
  if (this.match(77)) {
3602
3867
  let r = this.startNode();
3603
3868
  return this.next(), this.match(10) || this.match(47) ? this.tsParseSignatureMember("TSConstructSignatureDeclaration", e) : (e.key = this.createIdentifier(r, "new"), this.tsParsePropertyOrMethodSignature(e, !1));
@@ -3636,12 +3901,14 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3636
3901
  }
3637
3902
  tsParseTupleElementType() {
3638
3903
  let e = this.state.startLoc, s = this.eat(21), { startLoc: r } = this.state, i, a, n, o, p = V(this.state.type) ? this.lookaheadCharCode() : null;
3639
- if (p === 58) i = !0, n = !1, a = this.parseIdentifier(!0), this.expect(14), o = this.tsParseType();
3904
+ if (p === 58)
3905
+ i = !0, n = !1, a = this.parseIdentifier(!0), this.expect(14), o = this.tsParseType();
3640
3906
  else if (p === 63) {
3641
3907
  n = !0;
3642
3908
  let l = this.state.value, d = this.tsParseNonArrayType();
3643
3909
  this.lookaheadCharCode() === 58 ? (i = !0, a = this.createIdentifier(this.startNodeAt(r), l), this.expect(17), this.expect(14), o = this.tsParseType()) : (i = !1, o = d, this.expect(17));
3644
- } else o = this.tsParseType(), n = this.eat(17), i = this.eat(14);
3910
+ } else
3911
+ o = this.tsParseType(), n = this.eat(17), i = this.eat(14);
3645
3912
  if (i) {
3646
3913
  let l;
3647
3914
  a ? (l = this.startNodeAt(r), l.optional = n, l.label = a, l.elementType = o, this.eat(17) && (l.optional = !0, this.raise(g.TupleOptionalAfterType, this.state.lastTokStartLoc))) : (l = this.startNodeAt(r), l.optional = n, this.raise(g.InvalidTupleMemberLabel, o), l.label = o, l.elementType = this.tsParseType()), o = this.finishNode(l, "TSNamedTupleMember");
@@ -3736,13 +4003,14 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3736
4003
  }
3737
4004
  tsParseArrayTypeOrHigher() {
3738
4005
  let { startLoc: e } = this.state, s = this.tsParseNonArrayType();
3739
- for (; !this.hasPrecedingLineBreak() && this.eat(0); ) if (this.match(3)) {
3740
- let r = this.startNodeAt(e);
3741
- r.elementType = s, this.expect(3), s = this.finishNode(r, "TSArrayType");
3742
- } else {
3743
- let r = this.startNodeAt(e);
3744
- r.objectType = s, r.indexType = this.tsParseType(), this.expect(3), s = this.finishNode(r, "TSIndexedAccessType");
3745
- }
4006
+ for (; !this.hasPrecedingLineBreak() && this.eat(0); )
4007
+ if (this.match(3)) {
4008
+ let r = this.startNodeAt(e);
4009
+ r.elementType = s, this.expect(3), s = this.finishNode(r, "TSArrayType");
4010
+ } else {
4011
+ let r = this.startNodeAt(e);
4012
+ r.objectType = s, r.indexType = this.tsParseType(), this.expect(3), s = this.finishNode(r, "TSIndexedAccessType");
4013
+ }
3746
4014
  return s;
3747
4015
  }
3748
4016
  tsParseTypeOperator() {
@@ -3767,7 +4035,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3767
4035
  tsParseConstraintForInferType() {
3768
4036
  if (this.eat(81)) {
3769
4037
  let e = this.tsInDisallowConditionalTypesContext(() => this.tsParseType());
3770
- if (this.state.inDisallowConditionalTypesContext || !this.match(17)) return e;
4038
+ if (this.state.inDisallowConditionalTypesContext || !this.match(17))
4039
+ return e;
3771
4040
  }
3772
4041
  }
3773
4042
  tsParseTypeOperatorOrHigher() {
@@ -3790,7 +4059,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3790
4059
  return this.match(47) ? !0 : this.match(10) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this));
3791
4060
  }
3792
4061
  tsSkipParameterStart() {
3793
- if (F(this.state.type) || this.match(78)) return this.next(), !0;
4062
+ if (F(this.state.type) || this.match(78))
4063
+ return this.next(), !0;
3794
4064
  if (this.match(5)) {
3795
4065
  let { errors: e } = this.state, s = e.length;
3796
4066
  try {
@@ -3823,26 +4093,31 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3823
4093
  return o.type === "TSThisType" ? (r.parameterName = o, r.asserts = !0, r.typeAnnotation = null, o = this.finishNode(r, "TSTypePredicate")) : (this.resetStartLocationFromNode(o, r), o.asserts = !0), s.typeAnnotation = o, this.finishNode(s, "TSTypeAnnotation");
3824
4094
  }
3825
4095
  let a = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));
3826
- if (!a) return i ? (r.parameterName = this.parseIdentifier(), r.asserts = i, r.typeAnnotation = null, s.typeAnnotation = this.finishNode(r, "TSTypePredicate"), this.finishNode(s, "TSTypeAnnotation")) : this.tsParseTypeAnnotation(!1, s);
4096
+ if (!a)
4097
+ return i ? (r.parameterName = this.parseIdentifier(), r.asserts = i, r.typeAnnotation = null, s.typeAnnotation = this.finishNode(r, "TSTypePredicate"), this.finishNode(s, "TSTypeAnnotation")) : this.tsParseTypeAnnotation(!1, s);
3827
4098
  let n = this.tsParseTypeAnnotation(!1);
3828
4099
  return r.parameterName = a, r.typeAnnotation = n, r.asserts = i, s.typeAnnotation = this.finishNode(r, "TSTypePredicate"), this.finishNode(s, "TSTypeAnnotation");
3829
4100
  });
3830
4101
  }
3831
4102
  tsTryParseTypeOrTypePredicateAnnotation() {
3832
- if (this.match(14)) return this.tsParseTypeOrTypePredicateAnnotation(14);
4103
+ if (this.match(14))
4104
+ return this.tsParseTypeOrTypePredicateAnnotation(14);
3833
4105
  }
3834
4106
  tsTryParseTypeAnnotation() {
3835
- if (this.match(14)) return this.tsParseTypeAnnotation();
4107
+ if (this.match(14))
4108
+ return this.tsParseTypeAnnotation();
3836
4109
  }
3837
4110
  tsTryParseType() {
3838
4111
  return this.tsEatThenParseType(14);
3839
4112
  }
3840
4113
  tsParseTypePredicatePrefix() {
3841
4114
  let e = this.parseIdentifier();
3842
- if (this.isContextual(116) && !this.hasPrecedingLineBreak()) return this.next(), e;
4115
+ if (this.isContextual(116) && !this.hasPrecedingLineBreak())
4116
+ return this.next(), e;
3843
4117
  }
3844
4118
  tsParseTypePredicateAsserts() {
3845
- if (this.state.type !== 109) return !1;
4119
+ if (this.state.type !== 109)
4120
+ return !1;
3846
4121
  let e = this.state.containsEsc;
3847
4122
  return this.next(), !F(this.state.type) && !this.match(78) ? !1 : (e && this.raise(u.InvalidEscapedReservedWord, this.state.lastTokStartLoc, { reservedWord: "asserts" }), !0);
3848
4123
  }
@@ -3854,7 +4129,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3854
4129
  tsParseType() {
3855
4130
  It(this.state.inType);
3856
4131
  let e = this.tsParseNonConditionalType();
3857
- if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81)) return e;
4132
+ if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81))
4133
+ return e;
3858
4134
  let s = this.startNodeAtNode(e);
3859
4135
  return s.checkType = e, s.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType()), this.expect(17), s.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()), this.expect(14), s.falseType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()), this.finishNode(s, "TSConditionalType");
3860
4136
  }
@@ -3879,7 +4155,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3879
4155
  return r.length || this.raise(g.EmptyHeritageClauseType, s, { token: e }), r;
3880
4156
  }
3881
4157
  tsParseInterfaceDeclaration(e, s = {}) {
3882
- if (this.hasFollowingLineBreak()) return null;
4158
+ if (this.hasFollowingLineBreak())
4159
+ return null;
3883
4160
  this.expectContextual(129), s.declare && (e.declare = !0), F(this.state.type) ? (e.id = this.parseIdentifier(), this.checkIdentifier(e.id, 130)) : (e.id = null, this.raise(g.MissingInterfaceName, this.state.startLoc)), e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers), this.eat(81) && (e.extends = this.tsParseHeritageClause("extends"));
3884
4161
  let r = this.startNode();
3885
4162
  return r.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), e.body = this.finishNode(r, "TSInterfaceBody"), this.finishNode(e, "TSInterfaceDeclaration");
@@ -3902,7 +4179,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3902
4179
  } finally {
3903
4180
  this.state.context = s;
3904
4181
  }
3905
- } else return e();
4182
+ } else
4183
+ return e();
3906
4184
  }
3907
4185
  tsInType(e) {
3908
4186
  let s = this.state.inType;
@@ -3932,7 +4210,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3932
4210
  }
3933
4211
  }
3934
4212
  tsEatThenParseType(e) {
3935
- if (this.match(e)) return this.tsNextThenParseType();
4213
+ if (this.match(e))
4214
+ return this.tsNextThenParseType();
3936
4215
  }
3937
4216
  tsExpectThenParseType(e) {
3938
4217
  return this.tsInType(() => (this.expect(e), this.tsParseType()));
@@ -3959,7 +4238,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3959
4238
  if (e.id = this.parseIdentifier(), s || this.checkIdentifier(e.id, 1024), this.eat(16)) {
3960
4239
  let r = this.startNode();
3961
4240
  this.tsParseModuleOrNamespaceDeclaration(r, !0), e.body = r;
3962
- } else this.scope.enter(1024), this.prodParam.enter(0), e.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit();
4241
+ } else
4242
+ this.scope.enter(1024), this.prodParam.enter(0), e.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit();
3963
4243
  return this.finishNode(e, "TSModuleDeclaration");
3964
4244
  }
3965
4245
  tsParseAmbientExternalModuleDeclaration(e) {
@@ -3986,15 +4266,18 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
3986
4266
  }
3987
4267
  tsTryParseAndCatch(e) {
3988
4268
  let s = this.tryParse((r) => e() || r());
3989
- if (!(s.aborted || !s.node)) return s.error && (this.state = s.failState), s.node;
4269
+ if (!(s.aborted || !s.node))
4270
+ return s.error && (this.state = s.failState), s.node;
3990
4271
  }
3991
4272
  tsTryParse(e) {
3992
4273
  let s = this.state.clone(), r = e();
3993
- if (r !== void 0 && r !== !1) return r;
4274
+ if (r !== void 0 && r !== !1)
4275
+ return r;
3994
4276
  this.state = s;
3995
4277
  }
3996
4278
  tsTryParseDeclare(e) {
3997
- if (this.isLineTerminator()) return;
4279
+ if (this.isLineTerminator())
4280
+ return;
3998
4281
  let s = this.state.type;
3999
4282
  return this.tsInAmbientContext(() => {
4000
4283
  switch (s) {
@@ -4007,22 +4290,27 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4007
4290
  case 112:
4008
4291
  return this.tsParseAmbientExternalModuleDeclaration(e);
4009
4292
  case 100:
4010
- if (this.state.containsEsc) return;
4293
+ if (this.state.containsEsc)
4294
+ return;
4011
4295
  case 75:
4012
4296
  case 74:
4013
4297
  return !this.match(75) || !this.isLookaheadContextual("enum") ? (e.declare = !0, this.parseVarStatement(e, this.state.value, !0)) : (this.expect(75), this.tsParseEnumDeclaration(e, { const: !0, declare: !0 }));
4014
4298
  case 107:
4015
- if (this.hasPlugin("explicitResourceManagement") && this.isUsing()) return this.raise(g.InvalidModifierOnUsingDeclaration, this.state.startLoc, "declare"), e.declare = !0, this.parseVarStatement(e, "using", !0);
4299
+ if (this.hasPlugin("explicitResourceManagement") && this.isUsing())
4300
+ return this.raise(g.InvalidModifierOnUsingDeclaration, this.state.startLoc, "declare"), e.declare = !0, this.parseVarStatement(e, "using", !0);
4016
4301
  break;
4017
4302
  case 96:
4018
- if (this.hasPlugin("explicitResourceManagement") && this.isAwaitUsing()) return this.raise(g.InvalidModifierOnAwaitUsingDeclaration, this.state.startLoc, "declare"), e.declare = !0, this.next(), this.parseVarStatement(e, "await using", !0);
4303
+ if (this.hasPlugin("explicitResourceManagement") && this.isAwaitUsing())
4304
+ return this.raise(g.InvalidModifierOnAwaitUsingDeclaration, this.state.startLoc, "declare"), e.declare = !0, this.next(), this.parseVarStatement(e, "await using", !0);
4019
4305
  break;
4020
4306
  case 129: {
4021
4307
  let r = this.tsParseInterfaceDeclaration(e, { declare: !0 });
4022
- if (r) return r;
4308
+ if (r)
4309
+ return r;
4023
4310
  }
4024
4311
  default:
4025
- if (F(s)) return this.tsParseDeclaration(e, this.state.value, !0, null);
4312
+ if (F(s))
4313
+ return this.tsParseDeclaration(e, this.state.value, !0, null);
4026
4314
  }
4027
4315
  });
4028
4316
  }
@@ -4049,19 +4337,24 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4049
4337
  tsParseDeclaration(e, s, r, i) {
4050
4338
  switch (s) {
4051
4339
  case "abstract":
4052
- if (this.tsCheckLineTerminator(r) && (this.match(80) || F(this.state.type))) return this.tsParseAbstractDeclaration(e, i);
4340
+ if (this.tsCheckLineTerminator(r) && (this.match(80) || F(this.state.type)))
4341
+ return this.tsParseAbstractDeclaration(e, i);
4053
4342
  break;
4054
4343
  case "module":
4055
4344
  if (this.tsCheckLineTerminator(r)) {
4056
- if (this.match(134)) return this.tsParseAmbientExternalModuleDeclaration(e);
4057
- if (F(this.state.type)) return e.kind = "module", this.tsParseModuleOrNamespaceDeclaration(e);
4345
+ if (this.match(134))
4346
+ return this.tsParseAmbientExternalModuleDeclaration(e);
4347
+ if (F(this.state.type))
4348
+ return e.kind = "module", this.tsParseModuleOrNamespaceDeclaration(e);
4058
4349
  }
4059
4350
  break;
4060
4351
  case "namespace":
4061
- if (this.tsCheckLineTerminator(r) && F(this.state.type)) return e.kind = "namespace", this.tsParseModuleOrNamespaceDeclaration(e);
4352
+ if (this.tsCheckLineTerminator(r) && F(this.state.type))
4353
+ return e.kind = "namespace", this.tsParseModuleOrNamespaceDeclaration(e);
4062
4354
  break;
4063
4355
  case "type":
4064
- if (this.tsCheckLineTerminator(r) && F(this.state.type)) return this.tsParseTypeAliasDeclaration(e);
4356
+ if (this.tsCheckLineTerminator(r) && F(this.state.type))
4357
+ return this.tsParseTypeAliasDeclaration(e);
4065
4358
  break;
4066
4359
  }
4067
4360
  }
@@ -4069,17 +4362,20 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4069
4362
  return e ? this.hasFollowingLineBreak() ? !1 : (this.next(), !0) : !this.isLineTerminator();
4070
4363
  }
4071
4364
  tsTryParseGenericAsyncArrowFunction(e) {
4072
- if (!this.match(47)) return;
4365
+ if (!this.match(47))
4366
+ return;
4073
4367
  let s = this.state.maybeInArrowParameters;
4074
4368
  this.state.maybeInArrowParameters = !0;
4075
4369
  let r = this.tsTryParseAndCatch(() => {
4076
4370
  let i = this.startNodeAt(e);
4077
4371
  return i.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier), super.parseFunctionParams(i), i.returnType = this.tsTryParseTypeOrTypePredicateAnnotation(), this.expect(19), i;
4078
4372
  });
4079
- if (this.state.maybeInArrowParameters = s, !!r) return super.parseArrowExpression(r, null, !0);
4373
+ if (this.state.maybeInArrowParameters = s, !!r)
4374
+ return super.parseArrowExpression(r, null, !0);
4080
4375
  }
4081
4376
  tsParseTypeArgumentsInExpression() {
4082
- if (this.reScan_lt() === 47) return this.tsParseTypeArguments();
4377
+ if (this.reScan_lt() === 47)
4378
+ return this.tsParseTypeArguments();
4083
4379
  }
4084
4380
  tsParseTypeArguments() {
4085
4381
  let e = this.startNode();
@@ -4109,7 +4405,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4109
4405
  return e.type === "TSParameterProperty" && super.isSimpleParameter(e.parameter) || super.isSimpleParameter(e);
4110
4406
  }
4111
4407
  tsDisallowOptionalPattern(e) {
4112
- for (let s of e.params) s.type !== "Identifier" && s.optional && !this.state.isAmbientContext && this.raise(g.PatternIsOptional, s);
4408
+ for (let s of e.params)
4409
+ s.type !== "Identifier" && s.optional && !this.state.isAmbientContext && this.raise(g.PatternIsOptional, s);
4113
4410
  }
4114
4411
  setArrowFunctionParameters(e, s, r) {
4115
4412
  super.setArrowFunctionParameters(e, s, r), this.tsDisallowOptionalPattern(e);
@@ -4142,17 +4439,20 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4142
4439
  }
4143
4440
  let a = !1;
4144
4441
  if (this.match(18) && this.lookaheadCharCode() === 60) {
4145
- if (r) return i.stop = !0, e;
4442
+ if (r)
4443
+ return i.stop = !0, e;
4146
4444
  i.optionalChainMember = a = !0, this.next();
4147
4445
  }
4148
4446
  if (this.match(47) || this.match(51)) {
4149
4447
  let n, o = this.tsTryParseAndCatch(() => {
4150
4448
  if (!r && this.atPossibleAsyncArrow(e)) {
4151
4449
  let y = this.tsTryParseGenericAsyncArrowFunction(s);
4152
- if (y) return y;
4450
+ if (y)
4451
+ return y;
4153
4452
  }
4154
4453
  let p = this.tsParseTypeArgumentsInExpression();
4155
- if (!p) return;
4454
+ if (!p)
4455
+ return;
4156
4456
  if (a && !this.match(10)) {
4157
4457
  n = this.state.curPosition();
4158
4458
  return;
@@ -4166,11 +4466,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4166
4466
  return y.callee = e, y.arguments = this.parseCallExpressionArguments(11), this.tsCheckForInvalidTypeCasts(y.arguments), y.typeParameters = p, i.optionalChainMember && (y.optional = a), this.finishCallExpression(y, i.optionalChainMember);
4167
4467
  }
4168
4468
  let l = this.state.type;
4169
- if (l === 48 || l === 52 || l !== 10 && me(l) && !this.hasPrecedingLineBreak()) return;
4469
+ if (l === 48 || l === 52 || l !== 10 && me(l) && !this.hasPrecedingLineBreak())
4470
+ return;
4170
4471
  let d = this.startNodeAt(s);
4171
4472
  return d.expression = e, d.typeParameters = p, this.finishNode(d, "TSInstantiationExpression");
4172
4473
  });
4173
- if (n && this.unexpected(n, 10), o) return o.type === "TSInstantiationExpression" && ((this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40) && this.raise(g.InvalidPropertyAccessAfterInstantiationExpression, this.state.startLoc), !this.match(16) && !this.match(18) && (o.expression = super.stopParseSubscript(e, i))), o;
4474
+ if (n && this.unexpected(n, 10), o)
4475
+ return o.type === "TSInstantiationExpression" && ((this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40) && this.raise(g.InvalidPropertyAccessAfterInstantiationExpression, this.state.startLoc), !this.match(16) && !this.match(18) && (o.expression = super.stopParseSubscript(e, i))), o;
4174
4476
  }
4175
4477
  return super.parseSubscript(e, s, r, i);
4176
4478
  }
@@ -4197,7 +4499,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4197
4499
  checkDuplicateExports() {
4198
4500
  }
4199
4501
  isPotentialImportPhase(e) {
4200
- if (super.isPotentialImportPhase(e)) return !0;
4502
+ if (super.isPotentialImportPhase(e))
4503
+ return !0;
4201
4504
  if (this.isContextual(130)) {
4202
4505
  let s = this.lookaheadCharCode();
4203
4506
  return e ? s === 123 || s === 42 : s !== 61;
@@ -4208,14 +4511,18 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4208
4511
  super.applyImportPhase(e, s, r, i), s ? e.exportKind = r === "type" ? "type" : "value" : e.importKind = r === "type" || r === "typeof" ? r : "value";
4209
4512
  }
4210
4513
  parseImport(e) {
4211
- if (this.match(134)) return e.importKind = "value", super.parseImport(e);
4514
+ if (this.match(134))
4515
+ return e.importKind = "value", super.parseImport(e);
4212
4516
  let s;
4213
- if (F(this.state.type) && this.lookaheadCharCode() === 61) return e.importKind = "value", this.tsParseImportEqualsDeclaration(e);
4517
+ if (F(this.state.type) && this.lookaheadCharCode() === 61)
4518
+ return e.importKind = "value", this.tsParseImportEqualsDeclaration(e);
4214
4519
  if (this.isContextual(130)) {
4215
4520
  let r = this.parseMaybeImportPhase(e, !1);
4216
- if (this.lookaheadCharCode() === 61) return this.tsParseImportEqualsDeclaration(e, r);
4521
+ if (this.lookaheadCharCode() === 61)
4522
+ return this.tsParseImportEqualsDeclaration(e, r);
4217
4523
  s = super.parseImportSpecifiersAndAfter(e, r);
4218
- } else s = super.parseImport(e);
4524
+ } else
4525
+ s = super.parseImport(e);
4219
4526
  return s.importKind === "type" && s.specifiers.length > 1 && s.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(g.TypeImportCannotSpecifyDefaultAndNamed, s), s;
4220
4527
  }
4221
4528
  parseExport(e, s) {
@@ -4230,7 +4537,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4230
4537
  } else if (this.eatContextual(93)) {
4231
4538
  let r = e;
4232
4539
  return this.expectContextual(128), r.id = this.parseIdentifier(), this.semicolon(), this.finishNode(r, "TSNamespaceExportDeclaration");
4233
- } else return super.parseExport(e, s);
4540
+ } else
4541
+ return super.parseExport(e, s);
4234
4542
  }
4235
4543
  isAbstractClass() {
4236
4544
  return this.isContextual(124) && this.isLookaheadContextual("class");
@@ -4242,15 +4550,19 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4242
4550
  }
4243
4551
  if (this.match(129)) {
4244
4552
  let e = this.tsParseInterfaceDeclaration(this.startNode());
4245
- if (e) return e;
4553
+ if (e)
4554
+ return e;
4246
4555
  }
4247
4556
  return super.parseExportDefaultExpression();
4248
4557
  }
4249
4558
  parseVarStatement(e, s, r = !1) {
4250
4559
  let { isAmbientContext: i } = this.state, a = super.parseVarStatement(e, s, r || i);
4251
- if (!i) return a;
4252
- if (!e.declare && (s === "using" || s === "await using")) return this.raiseOverwrite(g.UsingDeclarationInAmbientContext, e, s), a;
4253
- for (let { id: n, init: o } of a.declarations) o && (s === "var" || s === "let" || n.typeAnnotation ? this.raise(g.InitializerNotAllowedInAmbientContext, o) : wr(o, this.hasPlugin("estree")) || this.raise(g.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, o));
4560
+ if (!i)
4561
+ return a;
4562
+ if (!e.declare && (s === "using" || s === "await using"))
4563
+ return this.raiseOverwrite(g.UsingDeclarationInAmbientContext, e, s), a;
4564
+ for (let { id: n, init: o } of a.declarations)
4565
+ o && (s === "var" || s === "let" || n.typeAnnotation ? this.raise(g.InitializerNotAllowedInAmbientContext, o) : wr(o, this.hasPlugin("estree")) || this.raise(g.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, o));
4254
4566
  return a;
4255
4567
  }
4256
4568
  parseStatementContent(e, s) {
@@ -4258,10 +4570,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4258
4570
  let r = this.startNode();
4259
4571
  return this.expect(75), this.tsParseEnumDeclaration(r, { const: !0 });
4260
4572
  }
4261
- if (this.isContextual(126)) return this.tsParseEnumDeclaration(this.startNode());
4573
+ if (this.isContextual(126))
4574
+ return this.tsParseEnumDeclaration(this.startNode());
4262
4575
  if (this.isContextual(129)) {
4263
4576
  let r = this.tsParseInterfaceDeclaration(this.startNode());
4264
- if (r) return r;
4577
+ if (r)
4578
+ return r;
4265
4579
  }
4266
4580
  return super.parseStatementContent(e, s);
4267
4581
  }
@@ -4300,10 +4614,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4300
4614
  return this.tsIsDeclarationStart() ? !0 : super.shouldParseExportDeclaration();
4301
4615
  }
4302
4616
  parseConditional(e, s, r) {
4303
- if (!this.match(17)) return e;
4617
+ if (!this.match(17))
4618
+ return e;
4304
4619
  if (this.state.maybeInArrowParameters) {
4305
4620
  let i = this.lookaheadCharCode();
4306
- if (i === 44 || i === 61 || i === 58 || i === 41) return this.setOptionalParametersError(r), e;
4621
+ if (i === 44 || i === 61 || i === 58 || i === 41)
4622
+ return this.setOptionalParametersError(r), e;
4307
4623
  }
4308
4624
  return super.parseConditional(e, s, r);
4309
4625
  }
@@ -4316,14 +4632,17 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4316
4632
  return e;
4317
4633
  }
4318
4634
  parseExportDeclaration(e) {
4319
- if (!this.state.isAmbientContext && this.isContextual(125)) return this.tsInAmbientContext(() => this.parseExportDeclaration(e));
4635
+ if (!this.state.isAmbientContext && this.isContextual(125))
4636
+ return this.tsInAmbientContext(() => this.parseExportDeclaration(e));
4320
4637
  let s = this.state.startLoc, r = this.eatContextual(125);
4321
- if (r && (this.isContextual(125) || !this.shouldParseExportDeclaration())) throw this.raise(g.ExpectedAmbientAfterExportDeclare, this.state.startLoc);
4638
+ if (r && (this.isContextual(125) || !this.shouldParseExportDeclaration()))
4639
+ throw this.raise(g.ExpectedAmbientAfterExportDeclare, this.state.startLoc);
4322
4640
  let i = F(this.state.type) && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(e);
4323
4641
  return i ? ((i.type === "TSInterfaceDeclaration" || i.type === "TSTypeAliasDeclaration" || r) && (e.exportKind = "type"), r && i.type !== "TSImportEqualsDeclaration" && (this.resetStartLocation(i, s), i.declare = !0), i) : null;
4324
4642
  }
4325
4643
  parseClassId(e, s, r, i) {
4326
- if ((!s || r) && this.isContextual(113)) return;
4644
+ if ((!s || r) && this.isContextual(113))
4645
+ return;
4327
4646
  super.parseClassId(e, s, r, e.declare ? 1024 : 8331);
4328
4647
  let a = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);
4329
4648
  a && (e.typeParameters = a);
@@ -4382,11 +4701,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4382
4701
  var r, i, a, n, o;
4383
4702
  let p, l, d;
4384
4703
  if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
4385
- if (p = this.state.clone(), l = this.tryParse(() => super.parseMaybeAssign(e, s), p), !l.error) return l.node;
4704
+ if (p = this.state.clone(), l = this.tryParse(() => super.parseMaybeAssign(e, s), p), !l.error)
4705
+ return l.node;
4386
4706
  let { context: T } = this.state, N = T[T.length - 1];
4387
4707
  (N === D.j_oTag || N === D.j_expr) && T.pop();
4388
4708
  }
4389
- if (!((r = l) != null && r.error) && !this.match(47)) return super.parseMaybeAssign(e, s);
4709
+ if (!((r = l) != null && r.error) && !this.match(47))
4710
+ return super.parseMaybeAssign(e, s);
4390
4711
  (!p || p === this.state) && (p = this.state.clone());
4391
4712
  let y, A = this.tryParse((T) => {
4392
4713
  var N, R;
@@ -4394,11 +4715,16 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4394
4715
  let L = super.parseMaybeAssign(e, s);
4395
4716
  return (L.type !== "ArrowFunctionExpression" || (N = L.extra) != null && N.parenthesized) && T(), ((R = y) == null ? void 0 : R.params.length) !== 0 && this.resetStartLocationFromNode(L, y), L.typeParameters = y, L;
4396
4717
  }, p);
4397
- if (!A.error && !A.aborted) return y && this.reportReservedArrowTypeParam(y), A.node;
4398
- if (!l && (It(!this.hasPlugin("jsx")), d = this.tryParse(() => super.parseMaybeAssign(e, s), p), !d.error)) return d.node;
4399
- if ((i = l) != null && i.node) return this.state = l.failState, l.node;
4400
- if (A.node) return this.state = A.failState, y && this.reportReservedArrowTypeParam(y), A.node;
4401
- if ((a = d) != null && a.node) return this.state = d.failState, d.node;
4718
+ if (!A.error && !A.aborted)
4719
+ return y && this.reportReservedArrowTypeParam(y), A.node;
4720
+ if (!l && (It(!this.hasPlugin("jsx")), d = this.tryParse(() => super.parseMaybeAssign(e, s), p), !d.error))
4721
+ return d.node;
4722
+ if ((i = l) != null && i.node)
4723
+ return this.state = l.failState, l.node;
4724
+ if (A.node)
4725
+ return this.state = A.failState, y && this.reportReservedArrowTypeParam(y), A.node;
4726
+ if ((a = d) != null && a.node)
4727
+ return this.state = d.failState, d.node;
4402
4728
  throw ((n = l) == null ? void 0 : n.error) || A.error || ((o = d) == null ? void 0 : o.error);
4403
4729
  }
4404
4730
  reportReservedArrowTypeParam(e) {
@@ -4414,7 +4740,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4414
4740
  let i = this.tsParseTypeOrTypePredicateAnnotation(14);
4415
4741
  return (this.canInsertSemicolon() || !this.match(19)) && r(), i;
4416
4742
  });
4417
- if (s.aborted) return;
4743
+ if (s.aborted)
4744
+ return;
4418
4745
  s.thrown || (s.error && (this.state = s.failState), e.returnType = s.node);
4419
4746
  }
4420
4747
  return super.parseArrow(e);
@@ -4590,10 +4917,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4590
4917
  }
4591
4918
  }
4592
4919
  tsParseAbstractDeclaration(e, s) {
4593
- if (this.match(80)) return e.abstract = !0, this.maybeTakeDecorators(s, this.parseClass(e, !0, !1));
4920
+ if (this.match(80))
4921
+ return e.abstract = !0, this.maybeTakeDecorators(s, this.parseClass(e, !0, !1));
4594
4922
  if (this.isContextual(129)) {
4595
- if (!this.hasFollowingLineBreak()) return e.abstract = !0, this.raise(g.NonClassMethodPropertyHasAbstractModifier, e), this.tsParseInterfaceDeclaration(e);
4596
- } else this.unexpected(null, 80);
4923
+ if (!this.hasFollowingLineBreak())
4924
+ return e.abstract = !0, this.raise(g.NonClassMethodPropertyHasAbstractModifier, e), this.tsParseInterfaceDeclaration(e);
4925
+ } else
4926
+ this.unexpected(null, 80);
4597
4927
  }
4598
4928
  parseMethod(e, s, r, i, a, n, o) {
4599
4929
  let p = super.parseMethod(e, s, r, i, a, n, o);
@@ -4628,8 +4958,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4628
4958
  if (this.isContextual(93)) {
4629
4959
  let T = this.parseIdentifier();
4630
4960
  V(this.state.type) ? (p = !0, n = A, o = s ? this.parseIdentifier() : this.parseModuleExportName(), l = !1) : (o = T, l = !1);
4631
- } else V(this.state.type) ? (l = !1, o = s ? this.parseIdentifier() : this.parseModuleExportName()) : (p = !0, n = A);
4632
- } else V(this.state.type) && (p = !0, s ? (n = this.parseIdentifier(!0), this.isContextual(93) || this.checkReservedWord(n.name, n.loc.start, !0, !0)) : n = this.parseModuleExportName());
4961
+ } else
4962
+ V(this.state.type) ? (l = !1, o = s ? this.parseIdentifier() : this.parseModuleExportName()) : (p = !0, n = A);
4963
+ } else
4964
+ V(this.state.type) && (p = !0, s ? (n = this.parseIdentifier(!0), this.isContextual(93) || this.checkReservedWord(n.name, n.loc.start, !0, !0)) : n = this.parseModuleExportName());
4633
4965
  p && r && this.raise(s ? g.TypeModifierIsUsedInTypeImports : g.TypeModifierIsUsedInTypeExports, d), e[i] = n, e[a] = o;
4634
4966
  let y = s ? "importKind" : "exportKind";
4635
4967
  e[y] = p ? "type" : "value", l && this.eatContextual(93) && (e[a] = s ? this.parseIdentifier() : this.parseModuleExportName()), e[a] || (e[a] = this.cloneIdentifier(e[i])), s && this.checkIdentifier(e[a], p ? 4098 : 4096);
@@ -4711,20 +5043,24 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4711
5043
  }
4712
5044
  };
4713
5045
  function Sr(t) {
4714
- if (t.type !== "MemberExpression") return !1;
5046
+ if (t.type !== "MemberExpression")
5047
+ return !1;
4715
5048
  let { computed: e, property: s } = t;
4716
5049
  return e && s.type !== "StringLiteral" && (s.type !== "TemplateLiteral" || s.expressions.length > 0) ? !1 : kt(t.object);
4717
5050
  }
4718
5051
  function wr(t, e) {
4719
5052
  var s;
4720
5053
  let { type: r } = t;
4721
- if ((s = t.extra) != null && s.parenthesized) return !1;
5054
+ if ((s = t.extra) != null && s.parenthesized)
5055
+ return !1;
4722
5056
  if (e) {
4723
5057
  if (r === "Literal") {
4724
5058
  let { value: i } = t;
4725
- if (typeof i == "string" || typeof i == "boolean") return !0;
5059
+ if (typeof i == "string" || typeof i == "boolean")
5060
+ return !0;
4726
5061
  }
4727
- } else if (r === "StringLiteral" || r === "BooleanLiteral") return !0;
5062
+ } else if (r === "StringLiteral" || r === "BooleanLiteral")
5063
+ return !0;
4728
5064
  return !!(vt(t, e) || Ir(t, e) || r === "TemplateLiteral" && t.expressions.length === 0 || Sr(t));
4729
5065
  }
4730
5066
  function vt(t, e) {
@@ -4733,7 +5069,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4733
5069
  function Ir(t, e) {
4734
5070
  if (t.type === "UnaryExpression") {
4735
5071
  let { operator: s, argument: r } = t;
4736
- if (s === "-" && vt(r, e)) return !0;
5072
+ if (s === "-" && vt(r, e))
5073
+ return !0;
4737
5074
  }
4738
5075
  return !1;
4739
5076
  }
@@ -4780,7 +5117,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4780
5117
  e && e.type === "Placeholder" && e.expectedNode === "Expression" ? e.expectedNode = "Pattern" : super.toAssignable(e, s);
4781
5118
  }
4782
5119
  chStartsBindingIdentifier(e, s) {
4783
- if (super.chStartsBindingIdentifier(e, s)) return !0;
5120
+ if (super.chStartsBindingIdentifier(e, s))
5121
+ return !0;
4784
5122
  let r = this.nextTokenStart();
4785
5123
  return this.input.charCodeAt(r) === 37 && this.input.charCodeAt(r + 1) === 37;
4786
5124
  }
@@ -4789,7 +5127,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4789
5127
  }
4790
5128
  parseExpressionStatement(e, s) {
4791
5129
  var r;
4792
- if (s.type !== "Placeholder" || (r = s.extra) != null && r.parenthesized) return super.parseExpressionStatement(e, s);
5130
+ if (s.type !== "Placeholder" || (r = s.extra) != null && r.parenthesized)
5131
+ return super.parseExpressionStatement(e, s);
4793
5132
  if (this.match(14)) {
4794
5133
  let a = e;
4795
5134
  return a.label = this.finishPlaceholder(s, "Identifier"), this.next(), a.body = super.parseStatementOrSloppyAnnexBFunctionDeclaration(), this.finishNode(a, "LabeledStatement");
@@ -4808,19 +5147,25 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4808
5147
  let i = s ? "ClassDeclaration" : "ClassExpression";
4809
5148
  this.next();
4810
5149
  let a = this.state.strict, n = this.parsePlaceholder("Identifier");
4811
- if (n) if (this.match(81) || this.match(133) || this.match(5)) e.id = n;
4812
- else {
4813
- if (r || !s) return e.id = null, e.body = this.finishPlaceholder(n, "ClassBody"), this.finishNode(e, i);
4814
- throw this.raise(Dt.ClassNameIsRequired, this.state.startLoc);
4815
- }
4816
- else this.parseClassId(e, s, r);
5150
+ if (n)
5151
+ if (this.match(81) || this.match(133) || this.match(5))
5152
+ e.id = n;
5153
+ else {
5154
+ if (r || !s)
5155
+ return e.id = null, e.body = this.finishPlaceholder(n, "ClassBody"), this.finishNode(e, i);
5156
+ throw this.raise(Dt.ClassNameIsRequired, this.state.startLoc);
5157
+ }
5158
+ else
5159
+ this.parseClassId(e, s, r);
4817
5160
  return super.parseClassSuper(e), e.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!e.superClass, a), this.finishNode(e, i);
4818
5161
  }
4819
5162
  parseExport(e, s) {
4820
5163
  let r = this.parsePlaceholder("Identifier");
4821
- if (!r) return super.parseExport(e, s);
5164
+ if (!r)
5165
+ return super.parseExport(e, s);
4822
5166
  let i = e;
4823
- if (!this.isContextual(98) && !this.match(12)) return i.specifiers = [], i.source = null, i.declaration = this.finishPlaceholder(r, "Declaration"), this.finishNode(i, "ExportNamedDeclaration");
5167
+ if (!this.isContextual(98) && !this.match(12))
5168
+ return i.specifiers = [], i.source = null, i.declaration = this.finishPlaceholder(r, "Declaration"), this.finishNode(i, "ExportNamedDeclaration");
4824
5169
  this.expectPlugin("exportDefaultFrom");
4825
5170
  let a = this.startNode();
4826
5171
  return a.exported = r, i.specifiers = [this.finishNode(a, "ExportDefaultSpecifier")], super.parseExport(i, s);
@@ -4828,7 +5173,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4828
5173
  isExportDefaultSpecifier() {
4829
5174
  if (this.match(65)) {
4830
5175
  let e = this.nextTokenStart();
4831
- if (this.isUnparsedContextual(e, "from") && this.input.startsWith(Y(133), this.nextTokenStartSince(e + 4))) return !0;
5176
+ if (this.isUnparsedContextual(e, "from") && this.input.startsWith(Y(133), this.nextTokenStartSince(e + 4)))
5177
+ return !0;
4832
5178
  }
4833
5179
  return super.isExportDefaultSpecifier();
4834
5180
  }
@@ -4842,8 +5188,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4842
5188
  }
4843
5189
  parseImport(e) {
4844
5190
  let s = this.parsePlaceholder("Identifier");
4845
- if (!s) return super.parseImport(e);
4846
- if (e.specifiers = [], !this.isContextual(98) && !this.match(12)) return e.source = this.finishPlaceholder(s, "StringLiteral"), this.semicolon(), this.finishNode(e, "ImportDeclaration");
5191
+ if (!s)
5192
+ return super.parseImport(e);
5193
+ if (e.specifiers = [], !this.isContextual(98) && !this.match(12))
5194
+ return e.source = this.finishPlaceholder(s, "StringLiteral"), this.semicolon(), this.finishNode(e, "ImportDeclaration");
4847
5195
  let r = this.startNodeAtNode(s);
4848
5196
  return r.local = s, e.specifiers.push(this.finishNode(r, "ImportDefaultSpecifier")), this.eat(12) && (this.maybeParseStarImportSpecifier(e) || this.parseNamedImportSpecifiers(e)), this.expectContextual(98), e.source = this.parseImportSource(), this.semicolon(), this.finishNode(e, "ImportDeclaration");
4849
5197
  }
@@ -4859,7 +5207,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4859
5207
  let e = this.state.startLoc, s = this.startNode();
4860
5208
  if (this.next(), F(this.state.type)) {
4861
5209
  let r = this.parseIdentifierName(), i = this.createIdentifier(s, r);
4862
- if (this.castNodeTo(i, "V8IntrinsicIdentifier"), this.match(10)) return i;
5210
+ if (this.castNodeTo(i, "V8IntrinsicIdentifier"), this.match(10))
5211
+ return i;
4863
5212
  }
4864
5213
  this.unexpected(e);
4865
5214
  }
@@ -4870,14 +5219,19 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4870
5219
  }, Ft = ["minimal", "fsharp", "hack", "smart"], Lt = ["^^", "@@", "^", "%", "#"];
4871
5220
  function kr(t) {
4872
5221
  if (t.has("decorators")) {
4873
- if (t.has("decorators-legacy")) throw new Error("Cannot use the decorators and decorators-legacy plugin together");
5222
+ if (t.has("decorators-legacy"))
5223
+ throw new Error("Cannot use the decorators and decorators-legacy plugin together");
4874
5224
  let r = t.get("decorators").decoratorsBeforeExport;
4875
- if (r != null && typeof r != "boolean") throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");
5225
+ if (r != null && typeof r != "boolean")
5226
+ throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");
4876
5227
  let i = t.get("decorators").allowCallParenthesized;
4877
- if (i != null && typeof i != "boolean") throw new Error("'allowCallParenthesized' must be a boolean.");
5228
+ if (i != null && typeof i != "boolean")
5229
+ throw new Error("'allowCallParenthesized' must be a boolean.");
4878
5230
  }
4879
- if (t.has("flow") && t.has("typescript")) throw new Error("Cannot combine flow and typescript plugins.");
4880
- if (t.has("placeholders") && t.has("v8intrinsic")) throw new Error("Cannot combine placeholders and v8intrinsic plugins.");
5231
+ if (t.has("flow") && t.has("typescript"))
5232
+ throw new Error("Cannot combine flow and typescript plugins.");
5233
+ if (t.has("placeholders") && t.has("v8intrinsic"))
5234
+ throw new Error("Cannot combine placeholders and v8intrinsic plugins.");
4881
5235
  if (t.has("pipelineOperator")) {
4882
5236
  var e;
4883
5237
  let r = t.get("pipelineOperator").proposal;
@@ -4886,8 +5240,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4886
5240
  throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`);
4887
5241
  }
4888
5242
  if (r === "hack") {
4889
- if (t.has("placeholders")) throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");
4890
- if (t.has("v8intrinsic")) throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");
5243
+ if (t.has("placeholders"))
5244
+ throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");
5245
+ if (t.has("v8intrinsic"))
5246
+ throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");
4891
5247
  let i = t.get("pipelineOperator").topicToken;
4892
5248
  if (!Lt.includes(i)) {
4893
5249
  let a = Lt.map((n) => `"${n}"`).join(", ");
@@ -4895,31 +5251,39 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4895
5251
  }
4896
5252
  {
4897
5253
  var s;
4898
- if (i === "#" && ((s = t.get("recordAndTuple")) == null ? void 0 : s.syntaxType) === "hash") throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple", t.get("recordAndTuple")])}\`.`);
5254
+ if (i === "#" && ((s = t.get("recordAndTuple")) == null ? void 0 : s.syntaxType) === "hash")
5255
+ throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple", t.get("recordAndTuple")])}\`.`);
4899
5256
  }
4900
- } else if (r === "smart" && ((e = t.get("recordAndTuple")) == null ? void 0 : e.syntaxType) === "hash") throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple", t.get("recordAndTuple")])}\`.`);
5257
+ } else if (r === "smart" && ((e = t.get("recordAndTuple")) == null ? void 0 : e.syntaxType) === "hash")
5258
+ throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple", t.get("recordAndTuple")])}\`.`);
4901
5259
  }
4902
5260
  if (t.has("moduleAttributes")) {
4903
- if (t.has("deprecatedImportAssert") || t.has("importAssertions")) throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");
4904
- if (t.get("moduleAttributes").version !== "may-2020") throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.");
5261
+ if (t.has("deprecatedImportAssert") || t.has("importAssertions"))
5262
+ throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");
5263
+ if (t.get("moduleAttributes").version !== "may-2020")
5264
+ throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.");
4905
5265
  }
4906
- if (t.has("importAssertions") && t.has("deprecatedImportAssert")) throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");
5266
+ if (t.has("importAssertions") && t.has("deprecatedImportAssert"))
5267
+ throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");
4907
5268
  if (!t.has("deprecatedImportAssert") && t.has("importAttributes") && t.get("importAttributes").deprecatedAssertSyntax && t.set("deprecatedImportAssert", {}), t.has("recordAndTuple")) {
4908
5269
  let r = t.get("recordAndTuple").syntaxType;
4909
5270
  if (r != null) {
4910
5271
  let i = ["hash", "bar"];
4911
- if (!i.includes(r)) throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + i.map((a) => `'${a}'`).join(", "));
5272
+ if (!i.includes(r))
5273
+ throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + i.map((a) => `'${a}'`).join(", "));
4912
5274
  }
4913
5275
  }
4914
5276
  if (t.has("asyncDoExpressions") && !t.has("doExpressions")) {
4915
5277
  let r = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");
4916
5278
  throw r.missingPlugins = "doExpressions", r;
4917
5279
  }
4918
- if (t.has("optionalChainingAssign") && t.get("optionalChainingAssign").version !== "2023-07") throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");
5280
+ if (t.has("optionalChainingAssign") && t.get("optionalChainingAssign").version !== "2023-07")
5281
+ throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");
4919
5282
  }
4920
5283
  var Mt = { estree: gs, jsx: Zs, flow: Gs, typescript: Cr, v8intrinsic: vr, placeholders: Nr }, Dr = Object.keys(Mt), Fr = class extends gr {
4921
5284
  checkProto(t, e, s, r) {
4922
- if (t.type === "SpreadElement" || this.isObjectMethod(t) || t.computed || t.shorthand) return s;
5285
+ if (t.type === "SpreadElement" || this.isObjectMethod(t) || t.computed || t.shorthand)
5286
+ return s;
4923
5287
  let i = t.key;
4924
5288
  return (i.type === "Identifier" ? i.name : i.value) === "__proto__" ? e ? (this.raise(u.RecordNoProto, i), !0) : (s && (r ? r.doubleProtoLoc === null && (r.doubleProtoLoc = i.loc.start) : this.raise(u.DuplicateProto, i)), !0) : s;
4925
5289
  }
@@ -4927,9 +5291,11 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4927
5291
  return t.type === "ArrowFunctionExpression" && this.offsetToSourcePos(t.start) === e;
4928
5292
  }
4929
5293
  getExpression() {
4930
- if (this.enterInitialScopes(), this.nextToken(), this.match(140)) throw this.raise(u.ParseExpressionEmptyInput, this.state.startLoc);
5294
+ if (this.enterInitialScopes(), this.nextToken(), this.match(140))
5295
+ throw this.raise(u.ParseExpressionEmptyInput, this.state.startLoc);
4931
5296
  let t = this.parseExpression();
4932
- if (!this.match(140)) throw this.raise(u.ParseExpressionExpectsEOF, this.state.startLoc, { unexpected: this.input.codePointAt(this.state.start) });
5297
+ if (!this.match(140))
5298
+ throw this.raise(u.ParseExpressionExpectsEOF, this.state.startLoc, { unexpected: this.input.codePointAt(this.state.start) });
4933
5299
  return this.finalizeRemainingComments(), t.comments = this.comments, t.errors = this.state.errors, this.optionFlags & 256 && (t.tokens = this.tokens), t;
4934
5300
  }
4935
5301
  parseExpression(t, e) {
@@ -4939,7 +5305,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4939
5305
  let e = this.state.startLoc, s = this.parseMaybeAssign(t);
4940
5306
  if (this.match(12)) {
4941
5307
  let r = this.startNodeAt(e);
4942
- for (r.expressions = [s]; this.eat(12); ) r.expressions.push(this.parseMaybeAssign(t));
5308
+ for (r.expressions = [s]; this.eat(12); )
5309
+ r.expressions.push(this.parseMaybeAssign(t));
4943
5310
  return this.toReferencedList(r.expressions), this.finishNode(r, "SequenceExpression");
4944
5311
  }
4945
5312
  return s;
@@ -4971,12 +5338,15 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
4971
5338
  this.toAssignable(n, !0), o.left = n;
4972
5339
  let l = s.index;
4973
5340
  t.doubleProtoLoc != null && t.doubleProtoLoc.index >= l && (t.doubleProtoLoc = null), t.shorthandAssignLoc != null && t.shorthandAssignLoc.index >= l && (t.shorthandAssignLoc = null), t.privateKeyLoc != null && t.privateKeyLoc.index >= l && (this.checkDestructuringPrivate(t), t.privateKeyLoc = null);
4974
- } else o.left = n;
5341
+ } else
5342
+ o.left = n;
4975
5343
  return this.next(), o.right = this.parseMaybeAssign(), this.checkLVal(n, this.finishNode(o, "AssignmentExpression")), o;
4976
- } else i && this.checkExpressionErrors(t, !0);
5344
+ } else
5345
+ i && this.checkExpressionErrors(t, !0);
4977
5346
  if (r) {
4978
5347
  let { type: o } = this.state;
4979
- if ((this.hasPlugin("v8intrinsic") ? me(o) : me(o) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(u.YieldNotInGeneratorFunction, s), this.parseYield(s);
5348
+ if ((this.hasPlugin("v8intrinsic") ? me(o) : me(o) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
5349
+ return this.raiseOverwrite(u.YieldNotInGeneratorFunction, s), this.parseYield(s);
4980
5350
  }
4981
5351
  return n;
4982
5352
  }
@@ -5008,16 +5378,19 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5008
5378
  let i = Te(r);
5009
5379
  if (i > s) {
5010
5380
  if (r === 39) {
5011
- if (this.expectPlugin("pipelineOperator"), this.state.inFSharpPipelineDirectBody) return t;
5381
+ if (this.expectPlugin("pipelineOperator"), this.state.inFSharpPipelineDirectBody)
5382
+ return t;
5012
5383
  this.checkPipelineAtInfixOperator(t, e);
5013
5384
  }
5014
5385
  let a = this.startNodeAt(e);
5015
5386
  a.left = t, a.operator = this.state.value;
5016
5387
  let n = r === 41 || r === 42, o = r === 40;
5017
- if (o && (i = Te(42)), this.next(), r === 39 && this.hasPlugin(["pipelineOperator", { proposal: "minimal" }]) && this.state.type === 96 && this.prodParam.hasAwait) throw this.raise(u.UnexpectedAwaitAfterPipelineBody, this.state.startLoc);
5388
+ if (o && (i = Te(42)), this.next(), r === 39 && this.hasPlugin(["pipelineOperator", { proposal: "minimal" }]) && this.state.type === 96 && this.prodParam.hasAwait)
5389
+ throw this.raise(u.UnexpectedAwaitAfterPipelineBody, this.state.startLoc);
5018
5390
  a.right = this.parseExprOpRightExpr(r, i);
5019
5391
  let p = this.finishNode(a, n || o ? "LogicalExpression" : "BinaryExpression"), l = this.state.type;
5020
- if (o && (l === 41 || l === 42) || n && l === 40) throw this.raise(u.MixingCoalesceWithLogical, this.state.startLoc);
5392
+ if (o && (l === 41 || l === 42) || n && l === 40)
5393
+ throw this.raise(u.MixingCoalesceWithLogical, this.state.startLoc);
5021
5394
  return this.parseExprOp(p, e, s);
5022
5395
  }
5023
5396
  }
@@ -5033,10 +5406,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5033
5406
  case "fsharp":
5034
5407
  return this.withSoloAwaitPermittingContext(() => this.parseFSharpPipelineBody(e));
5035
5408
  }
5036
- if (this.getPluginOption("pipelineOperator", "proposal") === "smart") return this.withTopicBindingContext(() => {
5037
- if (this.prodParam.hasYield && this.isContextual(108)) throw this.raise(u.PipeBodyIsTighter, this.state.startLoc);
5038
- return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t, e), s);
5039
- });
5409
+ if (this.getPluginOption("pipelineOperator", "proposal") === "smart")
5410
+ return this.withTopicBindingContext(() => {
5411
+ if (this.prodParam.hasYield && this.isContextual(108))
5412
+ throw this.raise(u.PipeBodyIsTighter, this.state.startLoc);
5413
+ return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t, e), s);
5414
+ });
5040
5415
  default:
5041
5416
  return this.parseExprOpBaseRightExpr(t, e);
5042
5417
  }
@@ -5068,12 +5443,14 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5068
5443
  let p = a.argument;
5069
5444
  p.type === "Identifier" ? this.raise(u.StrictDelete, a) : this.hasPropertyAsPrivateName(p) && this.raise(u.DeletePrivateField, a);
5070
5445
  }
5071
- if (!i) return e || this.checkExponentialAfterUnary(a), this.finishNode(a, "UnaryExpression");
5446
+ if (!i)
5447
+ return e || this.checkExponentialAfterUnary(a), this.finishNode(a, "UnaryExpression");
5072
5448
  }
5073
5449
  let n = this.parseUpdate(a, i, t);
5074
5450
  if (r) {
5075
5451
  let { type: o } = this.state;
5076
- if ((this.hasPlugin("v8intrinsic") ? me(o) : me(o) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(u.AwaitNotInAsyncContext, s), this.parseAwait(s);
5452
+ if ((this.hasPlugin("v8intrinsic") ? me(o) : me(o) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
5453
+ return this.raiseOverwrite(u.AwaitNotInAsyncContext, s), this.parseAwait(s);
5077
5454
  }
5078
5455
  return n;
5079
5456
  }
@@ -5083,7 +5460,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5083
5460
  return this.checkLVal(a.argument, this.finishNode(a, "UpdateExpression")), t;
5084
5461
  }
5085
5462
  let r = this.state.startLoc, i = this.parseExprSubscripts(s);
5086
- if (this.checkExpressionErrors(s, !1)) return i;
5463
+ if (this.checkExpressionErrors(s, !1))
5464
+ return i;
5087
5465
  for (; Ns(this.state.type) && !this.canInsertSemicolon(); ) {
5088
5466
  let a = this.startNodeAt(r);
5089
5467
  a.operator = this.state.value, a.prefix = !1, a.argument = i, this.next(), this.checkLVal(i, i = this.finishNode(a, "UpdateExpression"));
@@ -5103,14 +5481,18 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5103
5481
  }
5104
5482
  parseSubscript(t, e, s, r) {
5105
5483
  let { type: i } = this.state;
5106
- if (!s && i === 15) return this.parseBind(t, e, s, r);
5107
- if (be(i)) return this.parseTaggedTemplateExpression(t, e, r);
5484
+ if (!s && i === 15)
5485
+ return this.parseBind(t, e, s, r);
5486
+ if (be(i))
5487
+ return this.parseTaggedTemplateExpression(t, e, r);
5108
5488
  let a = !1;
5109
5489
  if (i === 18) {
5110
- if (s && (this.raise(u.OptionalChainingNoNew, this.state.startLoc), this.lookaheadCharCode() === 40)) return this.stopParseSubscript(t, r);
5490
+ if (s && (this.raise(u.OptionalChainingNoNew, this.state.startLoc), this.lookaheadCharCode() === 40))
5491
+ return this.stopParseSubscript(t, r);
5111
5492
  r.optionalChainMember = a = !0, this.next();
5112
5493
  }
5113
- if (!s && this.match(10)) return this.parseCoverCallAndAsyncArrowHead(t, e, r, a);
5494
+ if (!s && this.match(10))
5495
+ return this.parseCoverCallAndAsyncArrowHead(t, e, r, a);
5114
5496
  {
5115
5497
  let n = this.eat(0);
5116
5498
  return n || a || this.eat(16) ? this.parseMember(t, e, r, n, a) : this.stopParseSubscript(t, r);
@@ -5148,14 +5530,19 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5148
5530
  return t.type === "Identifier" && t.name === "async" && this.state.lastTokEndLoc.index === t.end && !this.canInsertSemicolon() && t.end - t.start === 5 && this.offsetToSourcePos(t.start) === this.state.potentialArrowAt;
5149
5531
  }
5150
5532
  finishCallExpression(t, e) {
5151
- if (t.callee.type === "Import") if (t.arguments.length === 0 || t.arguments.length > 2) this.raise(u.ImportCallArity, t);
5152
- else for (let s of t.arguments) s.type === "SpreadElement" && this.raise(u.ImportCallSpreadArgument, s);
5533
+ if (t.callee.type === "Import")
5534
+ if (t.arguments.length === 0 || t.arguments.length > 2)
5535
+ this.raise(u.ImportCallArity, t);
5536
+ else
5537
+ for (let s of t.arguments)
5538
+ s.type === "SpreadElement" && this.raise(u.ImportCallSpreadArgument, s);
5153
5539
  return this.finishNode(t, e ? "OptionalCallExpression" : "CallExpression");
5154
5540
  }
5155
5541
  parseCallExpressionArguments(t, e, s, r) {
5156
5542
  let i = [], a = !0, n = this.state.inFSharpPipelineDirectBody;
5157
5543
  for (this.state.inFSharpPipelineDirectBody = !1; !this.eat(t); ) {
5158
- if (a) a = !1;
5544
+ if (a)
5545
+ a = !1;
5159
5546
  else if (this.expect(12), this.match(t)) {
5160
5547
  s && this.addTrailingCommaExtraToNode(s), this.next();
5161
5548
  break;
@@ -5223,7 +5610,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5223
5610
  case 15: {
5224
5611
  e = this.startNode(), this.next(), e.object = null;
5225
5612
  let i = e.callee = this.parseNoCallExpr();
5226
- if (i.type === "MemberExpression") return this.finishNode(e, "BindExpression");
5613
+ if (i.type === "MemberExpression")
5614
+ return this.finishNode(e, "BindExpression");
5227
5615
  throw this.raise(u.UnsupportedBind, i);
5228
5616
  }
5229
5617
  case 139:
@@ -5239,7 +5627,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5239
5627
  case 54:
5240
5628
  case 27: {
5241
5629
  let i = this.getPluginOption("pipelineOperator", "proposal");
5242
- if (i) return this.parseTopicReference(i);
5630
+ if (i)
5631
+ return this.parseTopicReference(i);
5243
5632
  this.unexpected();
5244
5633
  break;
5245
5634
  }
@@ -5250,26 +5639,35 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5250
5639
  }
5251
5640
  default:
5252
5641
  {
5253
- if (r === 137) return this.parseDecimalLiteral(this.state.value);
5254
- if (r === 2 || r === 1) return this.parseArrayLike(this.state.type === 2 ? 4 : 3, !1, !0);
5255
- if (r === 6 || r === 7) return this.parseObjectLike(this.state.type === 6 ? 9 : 8, !1, !0);
5642
+ if (r === 137)
5643
+ return this.parseDecimalLiteral(this.state.value);
5644
+ if (r === 2 || r === 1)
5645
+ return this.parseArrayLike(this.state.type === 2 ? 4 : 3, !1, !0);
5646
+ if (r === 6 || r === 7)
5647
+ return this.parseObjectLike(this.state.type === 6 ? 9 : 8, !1, !0);
5256
5648
  }
5257
5649
  if (F(r)) {
5258
- if (this.isContextual(127) && this.lookaheadInLineCharCode() === 123) return this.parseModuleExpression();
5650
+ if (this.isContextual(127) && this.lookaheadInLineCharCode() === 123)
5651
+ return this.parseModuleExpression();
5259
5652
  let i = this.state.potentialArrowAt === this.state.start, a = this.state.containsEsc, n = this.parseIdentifier();
5260
5653
  if (!a && n.name === "async" && !this.canInsertSemicolon()) {
5261
5654
  let { type: o } = this.state;
5262
- if (o === 68) return this.resetPreviousNodeTrailingComments(n), this.next(), this.parseAsyncFunctionExpression(this.startNodeAtNode(n));
5263
- if (F(o)) return this.lookaheadCharCode() === 61 ? this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)) : n;
5264
- if (o === 90) return this.resetPreviousNodeTrailingComments(n), this.parseDo(this.startNodeAtNode(n), !0);
5655
+ if (o === 68)
5656
+ return this.resetPreviousNodeTrailingComments(n), this.next(), this.parseAsyncFunctionExpression(this.startNodeAtNode(n));
5657
+ if (F(o))
5658
+ return this.lookaheadCharCode() === 61 ? this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)) : n;
5659
+ if (o === 90)
5660
+ return this.resetPreviousNodeTrailingComments(n), this.parseDo(this.startNodeAtNode(n), !0);
5265
5661
  }
5266
5662
  return i && this.match(19) && !this.canInsertSemicolon() ? (this.next(), this.parseArrowExpression(this.startNodeAtNode(n), [n], !1)) : n;
5267
- } else this.unexpected();
5663
+ } else
5664
+ this.unexpected();
5268
5665
  }
5269
5666
  }
5270
5667
  parseTopicReferenceThenEqualsSign(t, e) {
5271
5668
  let s = this.getPluginOption("pipelineOperator", "proposal");
5272
- if (s) return this.state.type = t, this.state.value = e, this.state.pos--, this.state.end--, this.state.endLoc = x(this.state.endLoc, -1), this.parseTopicReference(s);
5669
+ if (s)
5670
+ return this.state.type = t, this.state.value = e, this.state.pos--, this.state.end--, this.state.endLoc = x(this.state.endLoc, -1), this.parseTopicReference(s);
5273
5671
  this.unexpected();
5274
5672
  }
5275
5673
  parseTopicReference(t) {
@@ -5277,7 +5675,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5277
5675
  return this.next(), this.finishTopicReference(e, s, t, r);
5278
5676
  }
5279
5677
  finishTopicReference(t, e, s, r) {
5280
- if (this.testTopicReferenceConfiguration(s, e, r)) return s === "hack" ? (this.topicReferenceIsAllowedInCurrentContext() || this.raise(u.PipeTopicUnbound, e), this.registerTopicReference(), this.finishNode(t, "TopicReference")) : (this.topicReferenceIsAllowedInCurrentContext() || this.raise(u.PrimaryTopicNotAllowed, e), this.registerTopicReference(), this.finishNode(t, "PipelinePrimaryTopicReference"));
5678
+ if (this.testTopicReferenceConfiguration(s, e, r))
5679
+ return s === "hack" ? (this.topicReferenceIsAllowedInCurrentContext() || this.raise(u.PipeTopicUnbound, e), this.registerTopicReference(), this.finishNode(t, "TopicReference")) : (this.topicReferenceIsAllowedInCurrentContext() || this.raise(u.PrimaryTopicNotAllowed, e), this.registerTopicReference(), this.finishNode(t, "PipelinePrimaryTopicReference"));
5281
5680
  throw this.raise(u.PipeTopicUnconfiguredToken, e, { token: Y(r) });
5282
5681
  }
5283
5682
  testTopicReferenceConfiguration(t, e, s) {
@@ -5368,15 +5767,18 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5368
5767
  this.state.maybeInArrowParameters = !0, this.state.inFSharpPipelineDirectBody = !1;
5369
5768
  let a = this.state.startLoc, n = [], o = new Ie(), p = !0, l, d;
5370
5769
  for (; !this.match(11); ) {
5371
- if (p) p = !1;
5770
+ if (p)
5771
+ p = !1;
5372
5772
  else if (this.expect(12, o.optionalParametersLoc === null ? null : o.optionalParametersLoc), this.match(11)) {
5373
5773
  d = this.state.startLoc;
5374
5774
  break;
5375
5775
  }
5376
5776
  if (this.match(21)) {
5377
5777
  let T = this.state.startLoc;
5378
- if (l = this.state.startLoc, n.push(this.parseParenItem(this.parseRestBinding(), T)), !this.checkCommaAfterRest(41)) break;
5379
- } else n.push(this.parseMaybeAssignAllowIn(o, this.parseParenItem));
5778
+ if (l = this.state.startLoc, n.push(this.parseParenItem(this.parseRestBinding(), T)), !this.checkCommaAfterRest(41))
5779
+ break;
5780
+ } else
5781
+ n.push(this.parseMaybeAssignAllowIn(o, this.parseParenItem));
5380
5782
  }
5381
5783
  let y = this.state.lastTokEndLoc;
5382
5784
  this.expect(11), this.state.maybeInArrowParameters = r, this.state.inFSharpPipelineDirectBody = i;
@@ -5384,7 +5786,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5384
5786
  return t && this.shouldParseArrow(n) && (A = this.parseArrow(A)) ? (this.checkDestructuringPrivate(o), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), this.parseArrowExpression(A, n, !1), A) : (this.expressionScope.exit(), n.length || this.unexpected(this.state.lastTokStartLoc), d && this.unexpected(d), l && this.unexpected(l), this.checkExpressionErrors(o, !0), this.toReferencedListDeep(n, !0), n.length > 1 ? (s = this.startNodeAt(a), s.expressions = n, this.finishNode(s, "SequenceExpression"), this.resetEndLocation(s, y)) : s = n[0], this.wrapParenthesis(e, s));
5385
5787
  }
5386
5788
  wrapParenthesis(t, e) {
5387
- if (!(this.optionFlags & 1024)) return this.addExtra(e, "parenthesized", !0), this.addExtra(e, "parenStart", t.index), this.takeSurroundingComments(e, t.index, this.state.lastTokEndLoc.index), e;
5789
+ if (!(this.optionFlags & 1024))
5790
+ return this.addExtra(e, "parenthesized", !0), this.addExtra(e, "parenStart", t.index), this.takeSurroundingComments(e, t.index, this.state.lastTokEndLoc.index), e;
5388
5791
  let s = this.startNodeAt(t);
5389
5792
  return s.expression = e, this.finishNode(s, "ParenthesizedExpression");
5390
5793
  }
@@ -5392,7 +5795,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5392
5795
  return !this.canInsertSemicolon();
5393
5796
  }
5394
5797
  parseArrow(t) {
5395
- if (this.eat(19)) return t;
5798
+ if (this.eat(19))
5799
+ return t;
5396
5800
  }
5397
5801
  parseParenItem(t, e) {
5398
5802
  return t;
@@ -5411,7 +5815,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5411
5815
  if (this.parseNewCallee(t), this.eat(10)) {
5412
5816
  let e = this.parseExprList(11);
5413
5817
  this.toReferencedList(e), t.arguments = e;
5414
- } else t.arguments = [];
5818
+ } else
5819
+ t.arguments = [];
5415
5820
  return this.finishNode(t, "NewExpression");
5416
5821
  }
5417
5822
  parseNewCallee(t) {
@@ -5429,7 +5834,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5429
5834
  }
5430
5835
  parseTemplate(t) {
5431
5836
  let e = this.startNode(), s = this.parseTemplateElement(t), r = [s], i = [];
5432
- for (; !s.tail; ) i.push(this.parseTemplateSubstitution()), this.readTemplateContinuation(), r.push(s = this.parseTemplateElement(t));
5837
+ for (; !s.tail; )
5838
+ i.push(this.parseTemplateSubstitution()), this.readTemplateContinuation(), r.push(s = this.parseTemplateElement(t));
5433
5839
  return e.expressions = i, e.quasis = r, this.finishNode(e, "TemplateLiteral");
5434
5840
  }
5435
5841
  parseTemplateSubstitution() {
@@ -5441,7 +5847,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5441
5847
  this.state.inFSharpPipelineDirectBody = !1;
5442
5848
  let a = !1, n = !0, o = this.startNode();
5443
5849
  for (o.properties = [], this.next(); !this.match(t); ) {
5444
- if (n) n = !1;
5850
+ if (n)
5851
+ n = !1;
5445
5852
  else if (this.expect(12), this.match(t)) {
5446
5853
  this.addTrailingCommaExtraToNode(o);
5447
5854
  break;
@@ -5461,9 +5868,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5461
5868
  }
5462
5869
  parsePropertyDefinition(t) {
5463
5870
  let e = [];
5464
- if (this.match(26)) for (this.hasPlugin("decorators") && this.raise(u.UnsupportedPropertyDecorator, this.state.startLoc); this.match(26); ) e.push(this.parseDecorator());
5871
+ if (this.match(26))
5872
+ for (this.hasPlugin("decorators") && this.raise(u.UnsupportedPropertyDecorator, this.state.startLoc); this.match(26); )
5873
+ e.push(this.parseDecorator());
5465
5874
  let s = this.startNode(), r = !1, i = !1, a;
5466
- if (this.match(21)) return e.length && this.unexpected(), this.parseSpread();
5875
+ if (this.match(21))
5876
+ return e.length && this.unexpected(), this.parseSpread();
5467
5877
  e.length && (s.decorators = e, e = []), s.method = !1, t && (a = this.state.startLoc);
5468
5878
  let n = this.eat(55);
5469
5879
  this.parsePropertyNamePrefixOperator(s);
@@ -5490,16 +5900,20 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5490
5900
  let a = this.parseMethod(t, e, !1, !1, !1, "ObjectMethod");
5491
5901
  return this.checkGetterSetterParams(a), a;
5492
5902
  }
5493
- if (s || e || this.match(10)) return r && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, e, s, !1, !1, "ObjectMethod");
5903
+ if (s || e || this.match(10))
5904
+ return r && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, e, s, !1, !1, "ObjectMethod");
5494
5905
  }
5495
5906
  parseObjectProperty(t, e, s, r) {
5496
- if (t.shorthand = !1, this.eat(14)) return t.value = s ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowIn(r), this.finishObjectProperty(t);
5907
+ if (t.shorthand = !1, this.eat(14))
5908
+ return t.value = s ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowIn(r), this.finishObjectProperty(t);
5497
5909
  if (!t.computed && t.key.type === "Identifier") {
5498
- if (this.checkReservedWord(t.key.name, t.key.loc.start, !0, !1), s) t.value = this.parseMaybeDefault(e, this.cloneIdentifier(t.key));
5910
+ if (this.checkReservedWord(t.key.name, t.key.loc.start, !0, !1), s)
5911
+ t.value = this.parseMaybeDefault(e, this.cloneIdentifier(t.key));
5499
5912
  else if (this.match(29)) {
5500
5913
  let i = this.state.startLoc;
5501
5914
  r != null ? r.shorthandAssignLoc === null && (r.shorthandAssignLoc = i) : this.raise(u.InvalidCoverInitializedName, i), t.value = this.parseMaybeDefault(e, this.cloneIdentifier(t.key));
5502
- } else t.value = this.cloneIdentifier(t.key);
5915
+ } else
5916
+ t.value = this.cloneIdentifier(t.key);
5503
5917
  return t.shorthand = !0, this.finishObjectProperty(t);
5504
5918
  }
5505
5919
  }
@@ -5511,32 +5925,35 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5511
5925
  return o || this.unexpected(), o;
5512
5926
  }
5513
5927
  parsePropertyName(t, e) {
5514
- if (this.eat(0)) t.computed = !0, t.key = this.parseMaybeAssignAllowIn(), this.expect(3);
5928
+ if (this.eat(0))
5929
+ t.computed = !0, t.key = this.parseMaybeAssignAllowIn(), this.expect(3);
5515
5930
  else {
5516
5931
  let { type: s, value: r } = this.state, i;
5517
- if (V(s)) i = this.parseIdentifier(!0);
5518
- else switch (s) {
5519
- case 135:
5520
- i = this.parseNumericLiteral(r);
5521
- break;
5522
- case 134:
5523
- i = this.parseStringLiteral(r);
5524
- break;
5525
- case 136:
5526
- i = this.parseBigIntLiteral(r);
5527
- break;
5528
- case 139: {
5529
- let a = this.state.startLoc;
5530
- e != null ? e.privateKeyLoc === null && (e.privateKeyLoc = a) : this.raise(u.UnexpectedPrivateField, a), i = this.parsePrivateName();
5531
- break;
5532
- }
5533
- default:
5534
- if (s === 137) {
5535
- i = this.parseDecimalLiteral(r);
5932
+ if (V(s))
5933
+ i = this.parseIdentifier(!0);
5934
+ else
5935
+ switch (s) {
5936
+ case 135:
5937
+ i = this.parseNumericLiteral(r);
5938
+ break;
5939
+ case 134:
5940
+ i = this.parseStringLiteral(r);
5941
+ break;
5942
+ case 136:
5943
+ i = this.parseBigIntLiteral(r);
5944
+ break;
5945
+ case 139: {
5946
+ let a = this.state.startLoc;
5947
+ e != null ? e.privateKeyLoc === null && (e.privateKeyLoc = a) : this.raise(u.UnexpectedPrivateField, a), i = this.parsePrivateName();
5536
5948
  break;
5537
5949
  }
5538
- this.unexpected();
5539
- }
5950
+ default:
5951
+ if (s === 137) {
5952
+ i = this.parseDecimalLiteral(r);
5953
+ break;
5954
+ }
5955
+ this.unexpected();
5956
+ }
5540
5957
  t.key = i, s !== 139 && (t.computed = !1);
5541
5958
  }
5542
5959
  }
@@ -5570,7 +5987,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5570
5987
  }
5571
5988
  parseFunctionBody(t, e, s = !1) {
5572
5989
  let r = e && !this.match(5);
5573
- if (this.expressionScope.enter(St()), r) t.body = this.parseMaybeAssign(), this.checkParams(t, !1, e, !1);
5990
+ if (this.expressionScope.enter(St()), r)
5991
+ t.body = this.parseMaybeAssign(), this.checkParams(t, !1, e, !1);
5574
5992
  else {
5575
5993
  let i = this.state.strict, a = this.state.labels;
5576
5994
  this.state.labels = [], this.prodParam.enter(this.prodParam.currentFlags() | 4), t.body = this.parseBlock(!0, !1, (n) => {
@@ -5586,17 +6004,21 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5586
6004
  return t.type === "Identifier";
5587
6005
  }
5588
6006
  isSimpleParamList(t) {
5589
- for (let e = 0, s = t.length; e < s; e++) if (!this.isSimpleParameter(t[e])) return !1;
6007
+ for (let e = 0, s = t.length; e < s; e++)
6008
+ if (!this.isSimpleParameter(t[e]))
6009
+ return !1;
5590
6010
  return !0;
5591
6011
  }
5592
6012
  checkParams(t, e, s, r = !0) {
5593
6013
  let i = !e && /* @__PURE__ */ new Set(), a = { type: "FormalParameters" };
5594
- for (let n of t.params) this.checkLVal(n, a, 5, i, r);
6014
+ for (let n of t.params)
6015
+ this.checkLVal(n, a, 5, i, r);
5595
6016
  }
5596
6017
  parseExprList(t, e, s, r) {
5597
6018
  let i = [], a = !0;
5598
6019
  for (; !this.eat(t); ) {
5599
- if (a) a = !1;
6020
+ if (a)
6021
+ a = !1;
5600
6022
  else if (this.expect(12), this.match(t)) {
5601
6023
  r && this.addTrailingCommaExtraToNode(r), this.next();
5602
6024
  break;
@@ -5607,7 +6029,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5607
6029
  }
5608
6030
  parseExprListItem(t, e, s) {
5609
6031
  let r;
5610
- if (this.match(12)) t || this.raise(u.UnexpectedToken, this.state.curPosition(), { unexpected: "," }), r = null;
6032
+ if (this.match(12))
6033
+ t || this.raise(u.UnexpectedToken, this.state.curPosition(), { unexpected: "," }), r = null;
5611
6034
  else if (this.match(21)) {
5612
6035
  let i = this.state.startLoc;
5613
6036
  r = this.parseParenItem(this.parseSpread(e), i);
@@ -5615,7 +6038,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5615
6038
  this.expectPlugin("partialApplication"), s || this.raise(u.UnexpectedArgumentPlaceholder, this.state.startLoc);
5616
6039
  let i = this.startNode();
5617
6040
  this.next(), r = this.finishNode(i, "ArgumentPlaceholder");
5618
- } else r = this.parseMaybeAssignAllowIn(e, this.parseParenItem);
6041
+ } else
6042
+ r = this.parseMaybeAssignAllowIn(e, this.parseParenItem);
5619
6043
  return r;
5620
6044
  }
5621
6045
  parseIdentifier(t) {
@@ -5673,7 +6097,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5673
6097
  return this.expressionScope.recordParameterInitializerError(u.AwaitExpressionFormalParameter, e), this.eat(55) && this.raise(u.ObsoleteAwaitStar, e), !this.scope.inFunction && !(this.optionFlags & 1) && (this.isAmbiguousPrefixOrIdentifier() ? this.ambiguousScriptDifferentAst = !0 : this.sawUnambiguousESM = !0), this.state.soloAwait || (e.argument = this.parseMaybeUnary(null, !0)), this.finishNode(e, "AwaitExpression");
5674
6098
  }
5675
6099
  isAmbiguousPrefixOrIdentifier() {
5676
- if (this.hasPrecedingLineBreak()) return !0;
6100
+ if (this.hasPrecedingLineBreak())
6101
+ return !0;
5677
6102
  let { type: t } = this.state;
5678
6103
  return t === 53 || t === 10 || t === 0 || be(t) || t === 102 && !this.state.containsEsc || t === 138 || t === 56 || this.hasPlugin("v8intrinsic") && t === 54;
5679
6104
  }
@@ -5681,24 +6106,27 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5681
6106
  let e = this.startNodeAt(t);
5682
6107
  this.expressionScope.recordParameterInitializerError(u.YieldInParameter, e);
5683
6108
  let s = !1, r = null;
5684
- if (!this.hasPrecedingLineBreak()) switch (s = this.eat(55), this.state.type) {
5685
- case 13:
5686
- case 140:
5687
- case 8:
5688
- case 11:
5689
- case 3:
5690
- case 9:
5691
- case 14:
5692
- case 12:
5693
- if (!s) break;
5694
- default:
5695
- r = this.parseMaybeAssign();
5696
- }
6109
+ if (!this.hasPrecedingLineBreak())
6110
+ switch (s = this.eat(55), this.state.type) {
6111
+ case 13:
6112
+ case 140:
6113
+ case 8:
6114
+ case 11:
6115
+ case 3:
6116
+ case 9:
6117
+ case 14:
6118
+ case 12:
6119
+ if (!s)
6120
+ break;
6121
+ default:
6122
+ r = this.parseMaybeAssign();
6123
+ }
5697
6124
  return e.delegate = s, e.argument = r, this.finishNode(e, "YieldExpression");
5698
6125
  }
5699
6126
  parseImportCall(t) {
5700
6127
  if (this.next(), t.source = this.parseMaybeAssignAllowIn(), t.options = null, this.eat(12)) {
5701
- if (this.match(11)) this.addTrailingCommaExtraToNode(t.source);
6128
+ if (this.match(11))
6129
+ this.addTrailingCommaExtraToNode(t.source);
5702
6130
  else if (t.options = this.parseMaybeAssignAllowIn(), this.eat(12) && (this.addTrailingCommaExtraToNode(t.options), !this.match(11))) {
5703
6131
  do
5704
6132
  this.parseMaybeAssignAllowIn();
@@ -5731,7 +6159,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5731
6159
  }
5732
6160
  }
5733
6161
  checkSmartPipeTopicBodyEarlyErrors(t) {
5734
- if (this.match(19)) throw this.raise(u.PipelineBodyNoArrow, this.state.startLoc);
6162
+ if (this.match(19))
6163
+ throw this.raise(u.PipelineBodyNoArrow, this.state.startLoc);
5735
6164
  this.topicReferenceWasUsedInCurrentContext() || this.raise(u.PipelineTopicUnused, t);
5736
6165
  }
5737
6166
  withTopicBindingContext(t) {
@@ -5752,7 +6181,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5752
6181
  } finally {
5753
6182
  this.state.topicContext = e;
5754
6183
  }
5755
- } else return t();
6184
+ } else
6185
+ return t();
5756
6186
  }
5757
6187
  withSoloAwaitPermittingContext(t) {
5758
6188
  let e = this.state.soloAwait;
@@ -5851,7 +6281,9 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5851
6281
  }
5852
6282
  parseProgram(t, e = 140, s = this.options.sourceType) {
5853
6283
  if (t.sourceType = s, t.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(t, !0, !0, e), this.inModule) {
5854
- if (!(this.optionFlags & 64) && this.scope.undefinedExports.size > 0) for (let [i, a] of Array.from(this.scope.undefinedExports)) this.raise(u.ModuleExportUndefined, a, { localName: i });
6284
+ if (!(this.optionFlags & 64) && this.scope.undefinedExports.size > 0)
6285
+ for (let [i, a] of Array.from(this.scope.undefinedExports))
6286
+ this.raise(u.ModuleExportUndefined, a, { localName: i });
5855
6287
  this.addExtra(t, "topLevelAwait", this.state.hasTopLevelAwait);
5856
6288
  }
5857
6289
  let r;
@@ -5862,7 +6294,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5862
6294
  return this.addExtra(s, "raw", i), this.addExtra(s, "rawValue", a), this.addExtra(s, "expressionValue", r), e.value = s, delete t.expression, e;
5863
6295
  }
5864
6296
  parseInterpreterDirective() {
5865
- if (!this.match(28)) return null;
6297
+ if (!this.match(28))
6298
+ return null;
5866
6299
  let t = this.startNode();
5867
6300
  return t.value = this.state.value, this.next(), this.finishNode(t, "InterpreterDirective");
5868
6301
  }
@@ -5870,26 +6303,31 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5870
6303
  return this.isContextual(100) ? this.hasFollowingBindingAtom() : !1;
5871
6304
  }
5872
6305
  isUsing() {
5873
- if (!this.isContextual(107)) return !1;
6306
+ if (!this.isContextual(107))
6307
+ return !1;
5874
6308
  let t = this.nextTokenInLineStart(), e = this.codePointAtPos(t);
5875
6309
  return this.chStartsBindingIdentifier(e, t);
5876
6310
  }
5877
6311
  isForUsing() {
5878
- if (!this.isContextual(107)) return !1;
6312
+ if (!this.isContextual(107))
6313
+ return !1;
5879
6314
  let t = this.nextTokenInLineStart(), e = this.codePointAtPos(t);
5880
6315
  if (this.isUnparsedContextual(t, "of")) {
5881
6316
  let s = this.lookaheadCharCodeSince(t + 2);
5882
- if (s !== 61 && s !== 58 && s !== 59) return !1;
6317
+ if (s !== 61 && s !== 58 && s !== 59)
6318
+ return !1;
5883
6319
  }
5884
6320
  return this.chStartsBindingIdentifier(e, t) ? (this.expectPlugin("explicitResourceManagement"), !0) : !1;
5885
6321
  }
5886
6322
  isAwaitUsing() {
5887
- if (!this.isContextual(96)) return !1;
6323
+ if (!this.isContextual(96))
6324
+ return !1;
5888
6325
  let t = this.nextTokenInLineStart();
5889
6326
  if (this.isUnparsedContextual(t, "using")) {
5890
6327
  t = this.nextTokenInLineStartSince(t + 5);
5891
6328
  let e = this.codePointAtPos(t);
5892
- if (this.chStartsBindingIdentifier(e, t)) return this.expectPlugin("explicitResourceManagement"), !0;
6329
+ if (this.chStartsBindingIdentifier(e, t))
6330
+ return this.expectPlugin("explicitResourceManagement"), !0;
5893
6331
  }
5894
6332
  return !1;
5895
6333
  }
@@ -5897,10 +6335,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5897
6335
  if (J(t)) {
5898
6336
  if (Xe.lastIndex = e, Xe.test(this.input)) {
5899
6337
  let s = this.codePointAtPos(Xe.lastIndex);
5900
- if (!ae(s) && s !== 92) return !1;
6338
+ if (!ae(s) && s !== 92)
6339
+ return !1;
5901
6340
  }
5902
6341
  return !0;
5903
- } else return t === 92;
6342
+ } else
6343
+ return t === 92;
5904
6344
  }
5905
6345
  chStartsBindingPattern(t) {
5906
6346
  return t === 91 || t === 123;
@@ -5947,7 +6387,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5947
6387
  case 91:
5948
6388
  return this.parseForStatement(r);
5949
6389
  case 68:
5950
- if (this.lookaheadCharCode() === 46) break;
6390
+ if (this.lookaheadCharCode() === 46)
6391
+ break;
5951
6392
  return a || this.raise(this.state.strict ? u.StrictFunction : this.options.annexB ? u.SloppyFunctionAnnexB : u.SloppyFunction, this.state.startLoc), this.parseFunctionStatement(r, !1, !i && a);
5952
6393
  case 80:
5953
6394
  return i || this.unexpected(), this.parseClass(this.maybeTakeDecorators(e, r), !0);
@@ -5962,15 +6403,19 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5962
6403
  case 73:
5963
6404
  return this.parseTryStatement(r);
5964
6405
  case 96:
5965
- if (this.isAwaitUsing()) return this.allowsUsing() ? i ? this.recordAwaitIfAllowed() || this.raise(u.AwaitUsingNotInAsyncContext, r) : this.raise(u.UnexpectedLexicalDeclaration, r) : this.raise(u.UnexpectedUsingDeclaration, r), this.next(), this.parseVarStatement(r, "await using");
6406
+ if (this.isAwaitUsing())
6407
+ return this.allowsUsing() ? i ? this.recordAwaitIfAllowed() || this.raise(u.AwaitUsingNotInAsyncContext, r) : this.raise(u.UnexpectedLexicalDeclaration, r) : this.raise(u.UnexpectedUsingDeclaration, r), this.next(), this.parseVarStatement(r, "await using");
5966
6408
  break;
5967
6409
  case 107:
5968
- if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace()) break;
6410
+ if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace())
6411
+ break;
5969
6412
  return this.expectPlugin("explicitResourceManagement"), this.allowsUsing() ? i || this.raise(u.UnexpectedLexicalDeclaration, this.state.startLoc) : this.raise(u.UnexpectedUsingDeclaration, this.state.startLoc), this.parseVarStatement(r, "using");
5970
6413
  case 100: {
5971
- if (this.state.containsEsc) break;
6414
+ if (this.state.containsEsc)
6415
+ break;
5972
6416
  let l = this.nextTokenStart(), d = this.codePointAtPos(l);
5973
- if (d !== 91 && (!i && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(d, l) && d !== 123)) break;
6417
+ if (d !== 91 && (!i && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(d, l) && d !== 123))
6418
+ break;
5974
6419
  }
5975
6420
  case 75:
5976
6421
  i || this.raise(u.UnexpectedLexicalDeclaration, this.state.startLoc);
@@ -5988,7 +6433,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5988
6433
  return this.parseEmptyStatement(r);
5989
6434
  case 83: {
5990
6435
  let l = this.lookaheadCharCode();
5991
- if (l === 40 || l === 46) break;
6436
+ if (l === 40 || l === 46)
6437
+ break;
5992
6438
  }
5993
6439
  case 82: {
5994
6440
  !(this.optionFlags & 8) && !n && this.raise(u.UnexpectedImportExport, this.state.startLoc), this.next();
@@ -5996,7 +6442,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
5996
6442
  return s === 83 ? l = this.parseImport(r) : l = this.parseExport(r, e), this.assertModuleNodeAllowed(l), l;
5997
6443
  }
5998
6444
  default:
5999
- if (this.isAsyncFunction()) return i || this.raise(u.AsyncFunctionInSingleStatementContext, this.state.startLoc), this.next(), this.parseFunctionStatement(r, !0, !i && a);
6445
+ if (this.isAsyncFunction())
6446
+ return i || this.raise(u.AsyncFunctionInSingleStatementContext, this.state.startLoc), this.next(), this.parseFunctionStatement(r, !0, !i && a);
6000
6447
  }
6001
6448
  let o = this.state.value, p = this.parseExpression();
6002
6449
  return F(s) && p.type === "Identifier" && this.eat(14) ? this.parseLabeledStatement(r, o, p, t) : this.parseExpressionStatement(r, p, e);
@@ -6022,8 +6469,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6022
6469
  do
6023
6470
  e.push(this.parseDecorator());
6024
6471
  while (this.match(26));
6025
- if (this.match(82)) t || this.unexpected(), this.decoratorsEnabledBeforeExport() || this.raise(u.DecoratorExportClass, this.state.startLoc);
6026
- else if (!this.canHaveLeadingDecorator()) throw this.raise(u.UnexpectedLeadingDecorator, this.state.startLoc);
6472
+ if (this.match(82))
6473
+ t || this.unexpected(), this.decoratorsEnabledBeforeExport() || this.raise(u.DecoratorExportClass, this.state.startLoc);
6474
+ else if (!this.canHaveLeadingDecorator())
6475
+ throw this.raise(u.UnexpectedLeadingDecorator, this.state.startLoc);
6027
6476
  return e;
6028
6477
  }
6029
6478
  parseDecorator() {
@@ -6043,7 +6492,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6043
6492
  }
6044
6493
  t.expression = this.parseMaybeDecoratorArguments(s, e);
6045
6494
  }
6046
- } else t.expression = this.parseExprSubscripts();
6495
+ } else
6496
+ t.expression = this.parseExprSubscripts();
6047
6497
  return this.finishNode(t, "Decorator");
6048
6498
  }
6049
6499
  parseMaybeDecoratorArguments(t, e) {
@@ -6060,7 +6510,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6060
6510
  let s;
6061
6511
  for (s = 0; s < this.state.labels.length; ++s) {
6062
6512
  let r = this.state.labels[s];
6063
- if ((t.label == null || r.name === t.label.name) && (r.kind != null && (e || r.kind === 1) || t.label && e)) break;
6513
+ if ((t.label == null || r.name === t.label.name) && (r.kind != null && (e || r.kind === 1) || t.label && e))
6514
+ break;
6064
6515
  }
6065
6516
  if (s === this.state.labels.length) {
6066
6517
  let r = e ? "BreakStatement" : "ContinueStatement";
@@ -6081,7 +6532,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6081
6532
  parseForStatement(t) {
6082
6533
  this.next(), this.state.labels.push(We);
6083
6534
  let e = null;
6084
- if (this.isContextual(96) && this.recordAwaitIfAllowed() && (e = this.state.startLoc, this.next()), this.scope.enter(0), this.expect(10), this.match(13)) return e !== null && this.unexpected(e), this.parseFor(t, null);
6535
+ if (this.isContextual(96) && this.recordAwaitIfAllowed() && (e = this.state.startLoc, this.next()), this.scope.enter(0), this.expect(10), this.match(13))
6536
+ return e !== null && this.unexpected(e), this.parseFor(t, null);
6085
6537
  let s = this.isContextual(100);
6086
6538
  {
6087
6539
  let o = this.isAwaitUsing(), p = o || this.isForUsing(), l = s && this.hasFollowingBindingAtom() || p;
@@ -6097,7 +6549,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6097
6549
  this.checkDestructuringPrivate(i), this.toAssignable(a, !0);
6098
6550
  let o = n ? "ForOfStatement" : "ForInStatement";
6099
6551
  return this.checkLVal(a, { type: o }), this.parseForIn(t, a, e);
6100
- } else this.checkExpressionErrors(i, !0);
6552
+ } else
6553
+ this.checkExpressionErrors(i, !0);
6101
6554
  return e !== null && this.unexpected(e), this.parseFor(t, a);
6102
6555
  }
6103
6556
  parseFunctionStatement(t, e, s) {
@@ -6114,10 +6567,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6114
6567
  let e = t.cases = [];
6115
6568
  this.expect(5), this.state.labels.push(Lr), this.scope.enter(256);
6116
6569
  let s;
6117
- for (let r; !this.match(8); ) if (this.match(61) || this.match(65)) {
6118
- let i = this.match(61);
6119
- s && this.finishNode(s, "SwitchCase"), e.push(s = this.startNode()), s.consequent = [], this.next(), i ? s.test = this.parseExpression() : (r && this.raise(u.MultipleDefaultsInSwitch, this.state.lastTokStartLoc), r = !0, s.test = null), this.expect(14);
6120
- } else s ? s.consequent.push(this.parseStatementListItem()) : this.unexpected();
6570
+ for (let r; !this.match(8); )
6571
+ if (this.match(61) || this.match(65)) {
6572
+ let i = this.match(61);
6573
+ s && this.finishNode(s, "SwitchCase"), e.push(s = this.startNode()), s.consequent = [], this.next(), i ? s.test = this.parseExpression() : (r && this.raise(u.MultipleDefaultsInSwitch, this.state.lastTokStartLoc), r = !0, s.test = null), this.expect(14);
6574
+ } else
6575
+ s ? s.consequent.push(this.parseStatementListItem()) : this.unexpected();
6121
6576
  return this.scope.exit(), s && this.finishNode(s, "SwitchCase"), this.next(), this.state.labels.pop(), this.finishNode(t, "SwitchStatement");
6122
6577
  }
6123
6578
  parseThrowStatement(t) {
@@ -6147,12 +6602,15 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6147
6602
  return this.next(), this.finishNode(t, "EmptyStatement");
6148
6603
  }
6149
6604
  parseLabeledStatement(t, e, s, r) {
6150
- for (let a of this.state.labels) a.name === e && this.raise(u.LabelRedeclaration, s, { labelName: e });
6605
+ for (let a of this.state.labels)
6606
+ a.name === e && this.raise(u.LabelRedeclaration, s, { labelName: e });
6151
6607
  let i = ws(this.state.type) ? 1 : this.match(71) ? 2 : null;
6152
6608
  for (let a = this.state.labels.length - 1; a >= 0; a--) {
6153
6609
  let n = this.state.labels[a];
6154
- if (n.statementStart === t.start) n.statementStart = this.sourceToOffsetPos(this.state.start), n.kind = i;
6155
- else break;
6610
+ if (n.statementStart === t.start)
6611
+ n.statementStart = this.sourceToOffsetPos(this.state.start), n.kind = i;
6612
+ else
6613
+ break;
6156
6614
  }
6157
6615
  return this.state.labels.push({ name: e, kind: i, statementStart: this.sourceToOffsetPos(this.state.start) }), t.body = r & 8 ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0) : this.parseStatement(), this.state.labels.pop(), t.label = s, this.finishNode(t, "LabeledStatement");
6158
6616
  }
@@ -6197,7 +6655,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6197
6655
  let i = t.declarations = [];
6198
6656
  for (t.kind = s; ; ) {
6199
6657
  let a = this.startNode();
6200
- if (this.parseVarId(a, s), a.init = this.eat(29) ? e ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null, a.init === null && !r && (a.id.type !== "Identifier" && !(e && (this.match(58) || this.isContextual(102))) ? this.raise(u.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: "destructuring" }) : (s === "const" || s === "using" || s === "await using") && !(this.match(58) || this.isContextual(102)) && this.raise(u.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: s })), i.push(this.finishNode(a, "VariableDeclarator")), !this.eat(12)) break;
6658
+ if (this.parseVarId(a, s), a.init = this.eat(29) ? e ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null, a.init === null && !r && (a.id.type !== "Identifier" && !(e && (this.match(58) || this.isContextual(102))) ? this.raise(u.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: "destructuring" }) : (s === "const" || s === "using" || s === "await using") && !(this.match(58) || this.isContextual(102)) && this.raise(u.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: s })), i.push(this.finishNode(a, "VariableDeclarator")), !this.eat(12))
6659
+ break;
6201
6660
  }
6202
6661
  return t;
6203
6662
  }
@@ -6248,7 +6707,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6248
6707
  if (i.body = [], this.expect(5), this.withSmartMixTopicForbiddingContext(() => {
6249
6708
  for (; !this.match(8); ) {
6250
6709
  if (this.eat(13)) {
6251
- if (r.length > 0) throw this.raise(u.DecoratorSemicolon, this.state.lastTokEndLoc);
6710
+ if (r.length > 0)
6711
+ throw this.raise(u.DecoratorSemicolon, this.state.lastTokEndLoc);
6252
6712
  continue;
6253
6713
  }
6254
6714
  if (this.match(26)) {
@@ -6258,7 +6718,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6258
6718
  let a = this.startNode();
6259
6719
  r.length && (a.decorators = r, this.resetStartLocationFromNode(a, r[0]), r = []), this.parseClassMember(i, a, s), a.kind === "constructor" && a.decorators && a.decorators.length > 0 && this.raise(u.DecoratorConstructor, a);
6260
6720
  }
6261
- }), this.state.strict = e, this.next(), r.length) throw this.raise(u.TrailingDecorator, this.state.startLoc);
6721
+ }), this.state.strict = e, this.next(), r.length)
6722
+ throw this.raise(u.TrailingDecorator, this.state.startLoc);
6262
6723
  return this.classScope.exit(), this.finishNode(i, "ClassBody");
6263
6724
  }
6264
6725
  parseClassMemberFromModifier(t, e) {
@@ -6275,7 +6736,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6275
6736
  parseClassMember(t, e, s) {
6276
6737
  let r = this.isContextual(106);
6277
6738
  if (r) {
6278
- if (this.parseClassMemberFromModifier(t, e)) return;
6739
+ if (this.parseClassMemberFromModifier(t, e))
6740
+ return;
6279
6741
  if (this.eat(5)) {
6280
6742
  this.parseClassStaticBlock(t, e);
6281
6743
  return;
@@ -6303,7 +6765,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6303
6765
  }
6304
6766
  let L = this.isNonstaticConstructor(i), U = !1;
6305
6767
  L && (i.kind = "constructor", s.hadConstructor && !this.hasPlugin("typescript") && this.raise(u.DuplicateConstructor, A), L && this.hasPlugin("typescript") && e.override && this.raise(u.OverrideOnConstructor, A), s.hadConstructor = !0, U = s.hadSuperClass), this.pushClassMethod(t, i, !1, !1, L, U);
6306
- } else if (this.isClassProperty()) N ? this.pushClassPrivateProperty(t, o) : this.pushClassProperty(t, n);
6768
+ } else if (this.isClassProperty())
6769
+ N ? this.pushClassPrivateProperty(t, o) : this.pushClassProperty(t, n);
6307
6770
  else if (T === "async" && !this.isLineTerminator()) {
6308
6771
  this.resetPreviousNodeTrailingComments(A);
6309
6772
  let L = this.eat(55);
@@ -6318,7 +6781,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6318
6781
  this.expectPlugin("decoratorAutoAccessors"), this.resetPreviousNodeTrailingComments(A);
6319
6782
  let L = this.match(139);
6320
6783
  this.parseClassElementName(n), this.pushClassAccessorProperty(t, p, L);
6321
- } else this.isLineTerminator() ? N ? this.pushClassPrivateProperty(t, o) : this.pushClassProperty(t, n) : this.unexpected();
6784
+ } else
6785
+ this.isLineTerminator() ? N ? this.pushClassPrivateProperty(t, o) : this.pushClassProperty(t, n) : this.unexpected();
6322
6786
  }
6323
6787
  parseClassElementName(t) {
6324
6788
  let { type: e, value: s } = this.state;
@@ -6376,9 +6840,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6376
6840
  this.scope.enter(592), this.expressionScope.enter(St()), this.prodParam.enter(0), t.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null, this.expressionScope.exit(), this.prodParam.exit(), this.scope.exit();
6377
6841
  }
6378
6842
  parseClassId(t, e, s, r = 8331) {
6379
- if (F(this.state.type)) t.id = this.parseIdentifier(), e && this.declareNameFromIdentifier(t.id, r);
6380
- else if (s || !e) t.id = null;
6381
- else throw this.raise(u.MissingClassName, this.state.startLoc);
6843
+ if (F(this.state.type))
6844
+ t.id = this.parseIdentifier(), e && this.declareNameFromIdentifier(t.id, r);
6845
+ else if (s || !e)
6846
+ t.id = null;
6847
+ else
6848
+ throw this.raise(u.MissingClassName, this.state.startLoc);
6382
6849
  }
6383
6850
  parseClassSuper(t) {
6384
6851
  t.superClass = this.eat(81) ? this.parseExprSubscripts() : null;
@@ -6386,27 +6853,34 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6386
6853
  parseExport(t, e) {
6387
6854
  let s = this.parseMaybeImportPhase(t, !0), r = this.maybeParseExportDefaultSpecifier(t, s), i = !r || this.eat(12), a = i && this.eatExportStar(t), n = a && this.maybeParseExportNamespaceSpecifier(t), o = i && (!n || this.eat(12)), p = r || a;
6388
6855
  if (a && !n) {
6389
- if (r && this.unexpected(), e) throw this.raise(u.UnsupportedDecoratorExport, t);
6856
+ if (r && this.unexpected(), e)
6857
+ throw this.raise(u.UnsupportedDecoratorExport, t);
6390
6858
  return this.parseExportFrom(t, !0), this.sawUnambiguousESM = !0, this.finishNode(t, "ExportAllDeclaration");
6391
6859
  }
6392
6860
  let l = this.maybeParseExportNamedSpecifiers(t);
6393
6861
  r && i && !a && !l && this.unexpected(null, 5), n && o && this.unexpected(null, 98);
6394
6862
  let d;
6395
6863
  if (p || l) {
6396
- if (d = !1, e) throw this.raise(u.UnsupportedDecoratorExport, t);
6864
+ if (d = !1, e)
6865
+ throw this.raise(u.UnsupportedDecoratorExport, t);
6397
6866
  this.parseExportFrom(t, p);
6398
- } else d = this.maybeParseExportDeclaration(t);
6867
+ } else
6868
+ d = this.maybeParseExportDeclaration(t);
6399
6869
  if (p || l || d) {
6400
6870
  var y;
6401
6871
  let A = t;
6402
- if (this.checkExport(A, !0, !1, !!A.source), ((y = A.declaration) == null ? void 0 : y.type) === "ClassDeclaration") this.maybeTakeDecorators(e, A.declaration, A);
6403
- else if (e) throw this.raise(u.UnsupportedDecoratorExport, t);
6872
+ if (this.checkExport(A, !0, !1, !!A.source), ((y = A.declaration) == null ? void 0 : y.type) === "ClassDeclaration")
6873
+ this.maybeTakeDecorators(e, A.declaration, A);
6874
+ else if (e)
6875
+ throw this.raise(u.UnsupportedDecoratorExport, t);
6404
6876
  return this.sawUnambiguousESM = !0, this.finishNode(A, "ExportNamedDeclaration");
6405
6877
  }
6406
6878
  if (this.eat(65)) {
6407
6879
  let A = t, T = this.parseExportDefaultExpression();
6408
- if (A.declaration = T, T.type === "ClassDeclaration") this.maybeTakeDecorators(e, T, A);
6409
- else if (e) throw this.raise(u.UnsupportedDecoratorExport, t);
6880
+ if (A.declaration = T, T.type === "ClassDeclaration")
6881
+ this.maybeTakeDecorators(e, T, A);
6882
+ else if (e)
6883
+ throw this.raise(u.UnsupportedDecoratorExport, t);
6410
6884
  return this.checkExport(A, !0, !0), this.sawUnambiguousESM = !0, this.finishNode(A, "ExportDefaultDeclaration");
6411
6885
  }
6412
6886
  this.unexpected(null, 5);
@@ -6444,17 +6918,23 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6444
6918
  return this.shouldParseExportDeclaration() ? (t.specifiers = [], t.source = null, this.hasPlugin("importAssertions") ? t.assertions = [] : t.attributes = [], t.declaration = this.parseExportDeclaration(t), !0) : !1;
6445
6919
  }
6446
6920
  isAsyncFunction() {
6447
- if (!this.isContextual(95)) return !1;
6921
+ if (!this.isContextual(95))
6922
+ return !1;
6448
6923
  let t = this.nextTokenInLineStart();
6449
6924
  return this.isUnparsedContextual(t, "function");
6450
6925
  }
6451
6926
  parseExportDefaultExpression() {
6452
6927
  let t = this.startNode();
6453
- if (this.match(68)) return this.next(), this.parseFunction(t, 5);
6454
- if (this.isAsyncFunction()) return this.next(), this.next(), this.parseFunction(t, 13);
6455
- if (this.match(80)) return this.parseClass(t, !0, !0);
6456
- if (this.match(26)) return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === !0 && this.raise(u.DecoratorBeforeExport, this.state.startLoc), this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1), this.startNode()), !0, !0);
6457
- if (this.match(75) || this.match(74) || this.isLet() || this.hasPlugin("explicitResourceManagement") && (this.isUsing() || this.isAwaitUsing())) throw this.raise(u.UnsupportedDefaultExport, this.state.startLoc);
6928
+ if (this.match(68))
6929
+ return this.next(), this.parseFunction(t, 5);
6930
+ if (this.isAsyncFunction())
6931
+ return this.next(), this.next(), this.parseFunction(t, 13);
6932
+ if (this.match(80))
6933
+ return this.parseClass(t, !0, !0);
6934
+ if (this.match(26))
6935
+ return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === !0 && this.raise(u.DecoratorBeforeExport, this.state.startLoc), this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1), this.startNode()), !0, !0);
6936
+ if (this.match(75) || this.match(74) || this.isLet() || this.hasPlugin("explicitResourceManagement") && (this.isUsing() || this.isAwaitUsing()))
6937
+ throw this.raise(u.UnsupportedDefaultExport, this.state.startLoc);
6458
6938
  let e = this.parseMaybeAssignAllowIn();
6459
6939
  return this.semicolon(), e;
6460
6940
  }
@@ -6464,14 +6944,18 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6464
6944
  isExportDefaultSpecifier() {
6465
6945
  let { type: t } = this.state;
6466
6946
  if (F(t)) {
6467
- if (t === 95 && !this.state.containsEsc || t === 100) return !1;
6947
+ if (t === 95 && !this.state.containsEsc || t === 100)
6948
+ return !1;
6468
6949
  if ((t === 130 || t === 129) && !this.state.containsEsc) {
6469
6950
  let r = this.nextTokenStart(), i = this.input.charCodeAt(r);
6470
- if (i === 123 || this.chStartsBindingIdentifier(i, r) && !this.input.startsWith("from", r)) return this.expectOnePlugin(["flow", "typescript"]), !1;
6951
+ if (i === 123 || this.chStartsBindingIdentifier(i, r) && !this.input.startsWith("from", r))
6952
+ return this.expectOnePlugin(["flow", "typescript"]), !1;
6471
6953
  }
6472
- } else if (!this.match(65)) return !1;
6954
+ } else if (!this.match(65))
6955
+ return !1;
6473
6956
  let e = this.nextTokenStart(), s = this.isUnparsedContextual(e, "from");
6474
- if (this.input.charCodeAt(e) === 44 || F(this.state.type) && s) return !0;
6957
+ if (this.input.charCodeAt(e) === 44 || F(this.state.type) && s)
6958
+ return !0;
6475
6959
  if (this.match(65) && s) {
6476
6960
  let r = this.input.charCodeAt(this.nextTokenStartSince(e + 4));
6477
6961
  return r === 34 || r === 39;
@@ -6483,10 +6967,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6483
6967
  }
6484
6968
  shouldParseExportDeclaration() {
6485
6969
  let { type: t } = this.state;
6486
- if (t === 26 && (this.expectOnePlugin(["decorators", "decorators-legacy"]), this.hasPlugin("decorators"))) return this.getPluginOption("decorators", "decoratorsBeforeExport") === !0 && this.raise(u.DecoratorBeforeExport, this.state.startLoc), !0;
6970
+ if (t === 26 && (this.expectOnePlugin(["decorators", "decorators-legacy"]), this.hasPlugin("decorators")))
6971
+ return this.getPluginOption("decorators", "decoratorsBeforeExport") === !0 && this.raise(u.DecoratorBeforeExport, this.state.startLoc), !0;
6487
6972
  if (this.hasPlugin("explicitResourceManagement")) {
6488
- if (this.isUsing()) return this.raise(u.UsingDeclarationExport, this.state.startLoc), !0;
6489
- if (this.isAwaitUsing()) return this.raise(u.UsingDeclarationExport, this.state.startLoc), !0;
6973
+ if (this.isUsing())
6974
+ return this.raise(u.UsingDeclarationExport, this.state.startLoc), !0;
6975
+ if (this.isAwaitUsing())
6976
+ return this.raise(u.UsingDeclarationExport, this.state.startLoc), !0;
6490
6977
  }
6491
6978
  return t === 74 || t === 75 || t === 68 || t === 80 || this.isLet() || this.isAsyncFunction();
6492
6979
  }
@@ -6499,28 +6986,38 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6499
6986
  let n = t.declaration;
6500
6987
  n.type === "Identifier" && n.name === "from" && n.end - n.start === 4 && !((a = n.extra) != null && a.parenthesized) && this.raise(u.ExportDefaultFromAsIdentifier, n);
6501
6988
  }
6502
- } else if ((i = t.specifiers) != null && i.length) for (let n of t.specifiers) {
6503
- let { exported: o } = n, p = o.type === "Identifier" ? o.name : o.value;
6504
- if (this.checkDuplicateExports(n, p), !r && n.local) {
6505
- let { local: l } = n;
6506
- l.type !== "Identifier" ? this.raise(u.ExportBindingIsString, n, { localName: l.value, exportName: p }) : (this.checkReservedWord(l.name, l.loc.start, !0, !1), this.scope.checkLocalExport(l));
6989
+ } else if ((i = t.specifiers) != null && i.length)
6990
+ for (let n of t.specifiers) {
6991
+ let { exported: o } = n, p = o.type === "Identifier" ? o.name : o.value;
6992
+ if (this.checkDuplicateExports(n, p), !r && n.local) {
6993
+ let { local: l } = n;
6994
+ l.type !== "Identifier" ? this.raise(u.ExportBindingIsString, n, { localName: l.value, exportName: p }) : (this.checkReservedWord(l.name, l.loc.start, !0, !1), this.scope.checkLocalExport(l));
6995
+ }
6507
6996
  }
6508
- }
6509
6997
  else if (t.declaration) {
6510
6998
  let n = t.declaration;
6511
6999
  if (n.type === "FunctionDeclaration" || n.type === "ClassDeclaration") {
6512
7000
  let { id: o } = n;
6513
- if (!o) throw new Error("Assertion failure");
7001
+ if (!o)
7002
+ throw new Error("Assertion failure");
6514
7003
  this.checkDuplicateExports(t, o.name);
6515
- } else if (n.type === "VariableDeclaration") for (let o of n.declarations) this.checkDeclaration(o.id);
7004
+ } else if (n.type === "VariableDeclaration")
7005
+ for (let o of n.declarations)
7006
+ this.checkDeclaration(o.id);
6516
7007
  }
6517
7008
  }
6518
7009
  }
6519
7010
  checkDeclaration(t) {
6520
- if (t.type === "Identifier") this.checkDuplicateExports(t, t.name);
6521
- else if (t.type === "ObjectPattern") for (let e of t.properties) this.checkDeclaration(e);
6522
- else if (t.type === "ArrayPattern") for (let e of t.elements) e && this.checkDeclaration(e);
6523
- else t.type === "ObjectProperty" ? this.checkDeclaration(t.value) : t.type === "RestElement" ? this.checkDeclaration(t.argument) : t.type === "AssignmentPattern" && this.checkDeclaration(t.left);
7011
+ if (t.type === "Identifier")
7012
+ this.checkDuplicateExports(t, t.name);
7013
+ else if (t.type === "ObjectPattern")
7014
+ for (let e of t.properties)
7015
+ this.checkDeclaration(e);
7016
+ else if (t.type === "ArrayPattern")
7017
+ for (let e of t.elements)
7018
+ e && this.checkDeclaration(e);
7019
+ else
7020
+ t.type === "ObjectProperty" ? this.checkDeclaration(t.value) : t.type === "RestElement" ? this.checkDeclaration(t.argument) : t.type === "AssignmentPattern" && this.checkDeclaration(t.left);
6524
7021
  }
6525
7022
  checkDuplicateExports(t, e) {
6526
7023
  this.exportedIdentifiers.has(e) && (e === "default" ? this.raise(u.DuplicateDefaultExport, t) : this.raise(u.DuplicateExport, t, { exportName: e })), this.exportedIdentifiers.add(e);
@@ -6528,8 +7025,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6528
7025
  parseExportSpecifiers(t) {
6529
7026
  let e = [], s = !0;
6530
7027
  for (this.expect(5); !this.eat(8); ) {
6531
- if (s) s = !1;
6532
- else if (this.expect(12), this.eat(8)) break;
7028
+ if (s)
7029
+ s = !1;
7030
+ else if (this.expect(12), this.eat(8))
7031
+ break;
6533
7032
  let r = this.isContextual(130), i = this.match(134), a = this.startNode();
6534
7033
  a.local = this.parseModuleExportName(), e.push(this.parseExportSpecifier(a, i, t, r));
6535
7034
  }
@@ -6550,8 +7049,10 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6550
7049
  }
6551
7050
  checkImportReflection(t) {
6552
7051
  let { specifiers: e } = t, s = e.length === 1 ? e[0].type : null;
6553
- if (t.phase === "source") s !== "ImportDefaultSpecifier" && this.raise(u.SourcePhaseImportRequiresDefault, e[0].loc.start);
6554
- else if (t.phase === "defer") s !== "ImportNamespaceSpecifier" && this.raise(u.DeferImportRequiresNamespace, e[0].loc.start);
7052
+ if (t.phase === "source")
7053
+ s !== "ImportDefaultSpecifier" && this.raise(u.SourcePhaseImportRequiresDefault, e[0].loc.start);
7054
+ else if (t.phase === "defer")
7055
+ s !== "ImportNamespaceSpecifier" && this.raise(u.DeferImportRequiresNamespace, e[0].loc.start);
6555
7056
  else if (t.module) {
6556
7057
  var r;
6557
7058
  s !== "ImportDefaultSpecifier" && this.raise(u.ImportReflectionNotBinding, e[0].loc.start), ((r = t.assertions) == null ? void 0 : r.length) > 0 && this.raise(u.ImportReflectionHasAssertion, e[0].loc.start);
@@ -6563,7 +7064,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6563
7064
  if (e != null) {
6564
7065
  let s = e.find((r) => {
6565
7066
  let i;
6566
- if (r.type === "ExportSpecifier" ? i = r.local : r.type === "ImportSpecifier" && (i = r.imported), i !== void 0) return i.type === "Identifier" ? i.name !== "default" : i.value !== "default";
7067
+ if (r.type === "ExportSpecifier" ? i = r.local : r.type === "ImportSpecifier" && (i = r.imported), i !== void 0)
7068
+ return i.type === "Identifier" ? i.name !== "default" : i.value !== "default";
6567
7069
  });
6568
7070
  s !== void 0 && this.raise(u.ImportJSONBindingNotDefault, s.loc.start);
6569
7071
  }
@@ -6576,7 +7078,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6576
7078
  e || (s === "module" ? (this.expectPlugin("importReflection", r), t.module = !0) : this.hasPlugin("importReflection") && (t.module = !1), s === "source" ? (this.expectPlugin("sourcePhaseImports", r), t.phase = "source") : s === "defer" ? (this.expectPlugin("deferredImportEvaluation", r), t.phase = "defer") : this.hasPlugin("sourcePhaseImports") && (t.phase = null));
6577
7079
  }
6578
7080
  parseMaybeImportPhase(t, e) {
6579
- if (!this.isPotentialImportPhase(e)) return this.applyImportPhase(t, e, null), null;
7081
+ if (!this.isPotentialImportPhase(e))
7082
+ return this.applyImportPhase(t, e, null), null;
6580
7083
  let s = this.startNode(), r = this.parseIdentifierName(!0), { type: i } = this.state;
6581
7084
  return (V(i) ? i !== 98 || this.lookaheadCharCode() === 102 : i !== 12) ? (this.applyImportPhase(t, e, r, s.loc.start), null) : (this.applyImportPhase(t, e, null), this.createIdentifier(s, r));
6582
7085
  }
@@ -6608,9 +7111,11 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6608
7111
  this.expect(5);
6609
7112
  let t = [], e = /* @__PURE__ */ new Set();
6610
7113
  do {
6611
- if (this.match(8)) break;
7114
+ if (this.match(8))
7115
+ break;
6612
7116
  let s = this.startNode(), r = this.state.value;
6613
- if (e.has(r) && this.raise(u.ModuleAttributesWithDuplicateKeys, this.state.startLoc, { key: r }), e.add(r), this.match(134) ? s.key = this.parseStringLiteral(r) : s.key = this.parseIdentifier(!0), this.expect(14), !this.match(134)) throw this.raise(u.ModuleAttributeInvalidValue, this.state.startLoc);
7117
+ if (e.has(r) && this.raise(u.ModuleAttributesWithDuplicateKeys, this.state.startLoc, { key: r }), e.add(r), this.match(134) ? s.key = this.parseStringLiteral(r) : s.key = this.parseIdentifier(!0), this.expect(14), !this.match(134))
7118
+ throw this.raise(u.ModuleAttributeInvalidValue, this.state.startLoc);
6614
7119
  s.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(s, "ImportAttribute"));
6615
7120
  } while (this.eat(12));
6616
7121
  return this.expect(8), t;
@@ -6619,7 +7124,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6619
7124
  let t = [], e = /* @__PURE__ */ new Set();
6620
7125
  do {
6621
7126
  let s = this.startNode();
6622
- if (s.key = this.parseIdentifier(!0), s.key.name !== "type" && this.raise(u.ModuleAttributeDifferentFromType, s.key), e.has(s.key.name) && this.raise(u.ModuleAttributesWithDuplicateKeys, s.key, { key: s.key.name }), e.add(s.key.name), this.expect(14), !this.match(134)) throw this.raise(u.ModuleAttributeInvalidValue, this.state.startLoc);
7127
+ if (s.key = this.parseIdentifier(!0), s.key.name !== "type" && this.raise(u.ModuleAttributeDifferentFromType, s.key), e.has(s.key.name) && this.raise(u.ModuleAttributesWithDuplicateKeys, s.key, { key: s.key.name }), e.add(s.key.name), this.expect(14), !this.match(134))
7128
+ throw this.raise(u.ModuleAttributeInvalidValue, this.state.startLoc);
6623
7129
  s.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(s, "ImportAttribute"));
6624
7130
  } while (this.eat(12));
6625
7131
  return t;
@@ -6628,16 +7134,19 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6628
7134
  let e;
6629
7135
  var s = !1;
6630
7136
  if (this.match(76)) {
6631
- if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40) return;
7137
+ if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40)
7138
+ return;
6632
7139
  this.next(), this.hasPlugin("moduleAttributes") ? (e = this.parseModuleAttributes(), this.addExtra(t, "deprecatedWithLegacySyntax", !0)) : e = this.parseImportAttributes(), s = !0;
6633
- } else this.isContextual(94) && !this.hasPrecedingLineBreak() ? (!this.hasPlugin("deprecatedImportAssert") && !this.hasPlugin("importAssertions") && this.raise(u.ImportAttributesUseAssert, this.state.startLoc), this.hasPlugin("importAssertions") || this.addExtra(t, "deprecatedAssertSyntax", !0), this.next(), e = this.parseImportAttributes()) : e = [];
7140
+ } else
7141
+ this.isContextual(94) && !this.hasPrecedingLineBreak() ? (!this.hasPlugin("deprecatedImportAssert") && !this.hasPlugin("importAssertions") && this.raise(u.ImportAttributesUseAssert, this.state.startLoc), this.hasPlugin("importAssertions") || this.addExtra(t, "deprecatedAssertSyntax", !0), this.next(), e = this.parseImportAttributes()) : e = [];
6634
7142
  !s && this.hasPlugin("importAssertions") ? t.assertions = e : t.attributes = e;
6635
7143
  }
6636
7144
  maybeParseDefaultImportSpecifier(t, e) {
6637
7145
  if (e) {
6638
7146
  let s = this.startNodeAtNode(e);
6639
7147
  return s.local = e, t.specifiers.push(this.finishImportSpecifier(s, "ImportDefaultSpecifier")), !0;
6640
- } else if (V(this.state.type)) return this.parseImportSpecifierLocal(t, this.startNode(), "ImportDefaultSpecifier"), !0;
7148
+ } else if (V(this.state.type))
7149
+ return this.parseImportSpecifierLocal(t, this.startNode(), "ImportDefaultSpecifier"), !0;
6641
7150
  return !1;
6642
7151
  }
6643
7152
  maybeParseStarImportSpecifier(t) {
@@ -6650,10 +7159,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6650
7159
  parseNamedImportSpecifiers(t) {
6651
7160
  let e = !0;
6652
7161
  for (this.expect(5); !this.eat(8); ) {
6653
- if (e) e = !1;
7162
+ if (e)
7163
+ e = !1;
6654
7164
  else {
6655
- if (this.eat(14)) throw this.raise(u.DestructureNamedImport, this.state.startLoc);
6656
- if (this.expect(12), this.eat(8)) break;
7165
+ if (this.eat(14))
7166
+ throw this.raise(u.DestructureNamedImport, this.state.startLoc);
7167
+ if (this.expect(12), this.eat(8))
7168
+ break;
6657
7169
  }
6658
7170
  let s = this.startNode(), r = this.match(134), i = this.isContextual(130);
6659
7171
  s.imported = this.parseModuleExportName();
@@ -6662,10 +7174,12 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6662
7174
  }
6663
7175
  }
6664
7176
  parseImportSpecifier(t, e, s, r, i) {
6665
- if (this.eatContextual(93)) t.local = this.parseIdentifier();
7177
+ if (this.eatContextual(93))
7178
+ t.local = this.parseIdentifier();
6666
7179
  else {
6667
7180
  let { imported: a } = t;
6668
- if (e) throw this.raise(u.ImportBindingIsString, t, { importName: a.value });
7181
+ if (e)
7182
+ throw this.raise(u.ImportBindingIsString, t, { importName: a.value });
6669
7183
  this.checkReservedWord(a.name, t.loc.start, !0, !0), t.local || (t.local = this.cloneIdentifier(a));
6670
7184
  }
6671
7185
  return this.finishImportSpecifier(t, "ImportSpecifier", i);
@@ -6695,12 +7209,15 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6695
7209
  try {
6696
7210
  e.sourceType = "module";
6697
7211
  let r = xe(e, t), i = r.parse();
6698
- if (r.sawUnambiguousESM) return i;
6699
- if (r.ambiguousScriptDifferentAst) try {
6700
- return e.sourceType = "script", xe(e, t).parse();
6701
- } catch {
6702
- }
6703
- else i.program.sourceType = "script";
7212
+ if (r.sawUnambiguousESM)
7213
+ return i;
7214
+ if (r.ambiguousScriptDifferentAst)
7215
+ try {
7216
+ return e.sourceType = "script", xe(e, t).parse();
7217
+ } catch {
7218
+ }
7219
+ else
7220
+ i.program.sourceType = "script";
6704
7221
  return i;
6705
7222
  } catch (r) {
6706
7223
  try {
@@ -6709,7 +7226,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6709
7226
  }
6710
7227
  throw r;
6711
7228
  }
6712
- } else return xe(e, t).parse();
7229
+ } else
7230
+ return xe(e, t).parse();
6713
7231
  }
6714
7232
  function Ur(t, e) {
6715
7233
  let s = xe(e, t);
@@ -6717,7 +7235,8 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6717
7235
  }
6718
7236
  function jr(t) {
6719
7237
  let e = {};
6720
- for (let s of Object.keys(t)) e[s] = K(t[s]);
7238
+ for (let s of Object.keys(t))
7239
+ e[s] = K(t[s]);
6721
7240
  return e;
6722
7241
  }
6723
7242
  var _r = jr(bs);
@@ -6735,11 +7254,13 @@ var zr = Object.create, st = Object.defineProperty, Vr = Object.getOwnPropertyDe
6735
7254
  var Ot = /* @__PURE__ */ new Map();
6736
7255
  function Hr(t) {
6737
7256
  let e = [];
6738
- for (let i of Dr) t.has(i) && e.push(i);
7257
+ for (let i of Dr)
7258
+ t.has(i) && e.push(i);
6739
7259
  let s = e.join("|"), r = Ot.get(s);
6740
7260
  if (!r) {
6741
7261
  r = Bt;
6742
- for (let i of e) r = Mt[i](r);
7262
+ for (let i of e)
7263
+ r = Mt[i](r);
6743
7264
  Ot.set(s, r);
6744
7265
  }
6745
7266
  return r;
@@ -6753,13 +7274,16 @@ var Rt = Xt(Gt());
6753
7274
  function es(h) {
6754
7275
  return (c, m, f) => {
6755
7276
  let x = !!(f != null && f.backwards);
6756
- if (m === !1) return !1;
7277
+ if (m === !1)
7278
+ return !1;
6757
7279
  let { length: C } = c, k = m;
6758
7280
  for (; k >= 0 && k < C; ) {
6759
7281
  let O = c.charAt(k);
6760
7282
  if (h instanceof RegExp) {
6761
- if (!h.test(O)) return k;
6762
- } else if (!h.includes(O)) return k;
7283
+ if (!h.test(O))
7284
+ return k;
7285
+ } else if (!h.includes(O))
7286
+ return k;
6763
7287
  x ? k-- : k++;
6764
7288
  }
6765
7289
  return k === -1 || k === C ? k : !1;
@@ -6767,27 +7291,35 @@ function es(h) {
6767
7291
  }
6768
7292
  var Xr = es(" "), Gr = es(/[^\n\r]/u);
6769
7293
  function Yr(h, c) {
6770
- if (c === !1) return !1;
7294
+ if (c === !1)
7295
+ return !1;
6771
7296
  if (h.charAt(c) === "/" && h.charAt(c + 1) === "*") {
6772
- for (let m = c + 2; m < h.length; ++m) if (h.charAt(m) === "*" && h.charAt(m + 1) === "/") return m + 2;
7297
+ for (let m = c + 2; m < h.length; ++m)
7298
+ if (h.charAt(m) === "*" && h.charAt(m + 1) === "/")
7299
+ return m + 2;
6773
7300
  }
6774
7301
  return c;
6775
7302
  }
6776
7303
  var Qr = Yr;
6777
7304
  function Zr(h, c, m) {
6778
7305
  let f = !!(m != null && m.backwards);
6779
- if (c === !1) return !1;
7306
+ if (c === !1)
7307
+ return !1;
6780
7308
  let x = h.charAt(c);
6781
7309
  if (f) {
6782
7310
  if (h.charAt(c - 1) === "\r" && x === `
6783
- `) return c - 2;
7311
+ `)
7312
+ return c - 2;
6784
7313
  if (x === `
6785
- ` || x === "\r" || x === "\u2028" || x === "\u2029") return c - 1;
7314
+ ` || x === "\r" || x === "\u2028" || x === "\u2029")
7315
+ return c - 1;
6786
7316
  } else {
6787
7317
  if (x === "\r" && h.charAt(c + 1) === `
6788
- `) return c + 2;
7318
+ `)
7319
+ return c + 2;
6789
7320
  if (x === `
6790
- ` || x === "\r" || x === "\u2028" || x === "\u2029") return c + 1;
7321
+ ` || x === "\r" || x === "\u2028" || x === "\u2029")
7322
+ return c + 1;
6791
7323
  }
6792
7324
  return c;
6793
7325
  }
@@ -6798,36 +7330,42 @@ function ti(h, c) {
6798
7330
  var si = ti;
6799
7331
  function ri(h, c) {
6800
7332
  let m = null, f = c;
6801
- for (; f !== m; ) m = f, f = Xr(h, f), f = Qr(h, f), f = si(h, f), f = ei(h, f);
7333
+ for (; f !== m; )
7334
+ m = f, f = Xr(h, f), f = Qr(h, f), f = si(h, f), f = ei(h, f);
6802
7335
  return f;
6803
7336
  }
6804
7337
  var ii = ri;
6805
7338
  function ai(h) {
6806
7339
  let c = [];
6807
- for (let m of h) try {
6808
- return m();
6809
- } catch (f) {
6810
- c.push(f);
6811
- }
7340
+ for (let m of h)
7341
+ try {
7342
+ return m();
7343
+ } catch (f) {
7344
+ c.push(f);
7345
+ }
6812
7346
  throw Object.assign(new Error("All combinations failed"), { errors: c });
6813
7347
  }
6814
7348
  var ni = ai;
6815
7349
  function oi(h) {
6816
- if (!h.startsWith("#!")) return "";
7350
+ if (!h.startsWith("#!"))
7351
+ return "";
6817
7352
  let c = h.indexOf(`
6818
7353
  `);
6819
7354
  return c === -1 ? h : h.slice(0, c);
6820
7355
  }
6821
7356
  var ts = oi, li = (h, c, m) => {
6822
7357
  if (!(h && c == null)) {
6823
- if (c.findLast) return c.findLast(m);
7358
+ if (c.findLast)
7359
+ return c.findLast(m);
6824
7360
  for (let f = c.length - 1; f >= 0; f--) {
6825
7361
  let x = c[f];
6826
- if (m(x, f, c)) return x;
7362
+ if (m(x, f, c))
7363
+ return x;
6827
7364
  }
6828
7365
  }
6829
7366
  }, hi = li, pi = (h, c, m) => {
6830
- if (!(h && c == null)) return Array.isArray(c) || typeof c == "string" ? c[m < 0 ? c.length + m : m] : c.at(m);
7367
+ if (!(h && c == null))
7368
+ return Array.isArray(c) || typeof c == "string" ? c[m < 0 ? c.length + m : m] : c.at(m);
6831
7369
  }, ui = pi, ci = new Proxy(() => {
6832
7370
  }, { get: () => ci });
6833
7371
  function z(h) {
@@ -6846,11 +7384,13 @@ function di(h) {
6846
7384
  var it = di;
6847
7385
  function mi(h, c, m) {
6848
7386
  let f = h.originalText.slice(c, m);
6849
- for (let x of h[/* @__PURE__ */ Symbol.for("comments")]) {
7387
+ for (let x of h[Symbol.for("comments")]) {
6850
7388
  let C = z(x);
6851
- if (C > m) break;
7389
+ if (C > m)
7390
+ break;
6852
7391
  let k = _(x);
6853
- if (k < c) continue;
7392
+ if (k < c)
7393
+ continue;
6854
7394
  let O = k - C;
6855
7395
  f = f.slice(0, C - c) + " ".repeat(O) + f.slice(k - c);
6856
7396
  }
@@ -6862,7 +7402,8 @@ function Ai(h) {
6862
7402
  }
6863
7403
  var gi = Ai;
6864
7404
  function Ti(h) {
6865
- if (!at(h)) return !1;
7405
+ if (!at(h))
7406
+ return !1;
6866
7407
  let c = `*${h.value}*`.split(`
6867
7408
  `);
6868
7409
  return c.length > 1 && c.every((m) => m.trimStart()[0] === "*");
@@ -6873,11 +7414,13 @@ function bi(h) {
6873
7414
  }
6874
7415
  var Ut = bi;
6875
7416
  function Ei(h) {
6876
- if (h.length < 2) return;
7417
+ if (h.length < 2)
7418
+ return;
6877
7419
  let c;
6878
7420
  for (let m = h.length - 1; m >= 0; m--) {
6879
7421
  let f = h[m];
6880
- if (c && _(f) === z(c) && Ut(f) && Ut(c) && (h.splice(m + 1, 1), f.value += "*//*" + c.value, f.range = [z(f), _(c)]), !Pi(f) && !at(f)) throw new TypeError(`Unknown comment type: "${f.type}".`);
7422
+ if (c && _(f) === z(c) && Ut(f) && Ut(c) && (h.splice(m + 1, 1), f.value += "*//*" + c.value, f.range = [z(f), _(c)]), !Pi(f) && !at(f))
7423
+ throw new TypeError(`Unknown comment type: "${f.type}".`);
6881
7424
  c = f;
6882
7425
  }
6883
7426
  }
@@ -6890,7 +7433,8 @@ function Ae(h) {
6890
7433
  return Pe = Ae.prototype = h ?? /* @__PURE__ */ Object.create(null), new Ae();
6891
7434
  }
6892
7435
  var Si = 10;
6893
- for (let h = 0; h <= Si; h++) Ae();
7436
+ for (let h = 0; h <= Si; h++)
7437
+ Ae();
6894
7438
  function wi(h) {
6895
7439
  return Ae(h);
6896
7440
  }
@@ -6898,20 +7442,24 @@ function Ii(h, c = "type") {
6898
7442
  wi(h);
6899
7443
  function m(f) {
6900
7444
  let x = f[c], C = h[x];
6901
- if (!Array.isArray(C)) throw Object.assign(new Error(`Missing visitor keys for '${x}'.`), { node: f });
7445
+ if (!Array.isArray(C))
7446
+ throw Object.assign(new Error(`Missing visitor keys for '${x}'.`), { node: f });
6902
7447
  return C;
6903
7448
  }
6904
7449
  return m;
6905
7450
  }
6906
7451
  var Ni = Ii, vi = { ArrayExpression: ["elements"], AssignmentExpression: ["left", "right"], BinaryExpression: ["left", "right"], InterpreterDirective: [], Directive: ["value"], DirectiveLiteral: [], BlockStatement: ["directives", "body"], BreakStatement: ["label"], CallExpression: ["callee", "typeParameters", "typeArguments", "arguments"], CatchClause: ["param", "body"], ConditionalExpression: ["test", "consequent", "alternate"], ContinueStatement: ["label"], DebuggerStatement: [], DoWhileStatement: ["body", "test"], EmptyStatement: [], ExpressionStatement: ["expression"], File: ["program"], ForInStatement: ["left", "right", "body"], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: ["id", "typeParameters", "params", "predicate", "returnType", "body"], FunctionExpression: ["id", "typeParameters", "params", "returnType", "body"], Identifier: ["typeAnnotation", "decorators"], IfStatement: ["test", "consequent", "alternate"], LabeledStatement: ["label", "body"], StringLiteral: [], NumericLiteral: [], NullLiteral: [], BooleanLiteral: [], RegExpLiteral: [], LogicalExpression: ["left", "right"], MemberExpression: ["object", "property"], NewExpression: ["callee", "typeParameters", "typeArguments", "arguments"], Program: ["directives", "body"], ObjectExpression: ["properties"], ObjectMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ObjectProperty: ["decorators", "key", "value"], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: ["argument"], SequenceExpression: ["expressions"], ParenthesizedExpression: ["expression"], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], ThisExpression: [], ThrowStatement: ["argument"], TryStatement: ["block", "handler", "finalizer"], UnaryExpression: ["argument"], UpdateExpression: ["argument"], VariableDeclaration: ["declarations"], VariableDeclarator: ["id", "init"], WhileStatement: ["test", "body"], WithStatement: ["object", "body"], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], ClassBody: ["body"], ClassExpression: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body", "superTypeArguments"], ClassDeclaration: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body", "superTypeArguments"], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportNamedDeclaration: ["declaration", "specifiers", "source", "attributes"], ExportSpecifier: ["local", "exported"], ForOfStatement: ["left", "right", "body"], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: ["local"], ImportNamespaceSpecifier: ["local"], ImportSpecifier: ["imported", "local"], ImportExpression: ["source", "options"], MetaProperty: ["meta", "property"], ClassMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ObjectPattern: ["decorators", "properties", "typeAnnotation"], SpreadElement: ["argument"], Super: [], TaggedTemplateExpression: ["tag", "typeParameters", "quasi", "typeArguments"], TemplateElement: [], TemplateLiteral: ["quasis", "expressions"], YieldExpression: ["argument"], AwaitExpression: ["argument"], BigIntLiteral: [], ExportNamespaceSpecifier: ["exported"], OptionalMemberExpression: ["object", "property"], OptionalCallExpression: ["callee", "typeParameters", "typeArguments", "arguments"], ClassProperty: ["decorators", "variance", "key", "typeAnnotation", "value"], ClassAccessorProperty: ["decorators", "key", "typeAnnotation", "value"], ClassPrivateProperty: ["decorators", "variance", "key", "typeAnnotation", "value"], ClassPrivateMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], PrivateName: ["id"], StaticBlock: ["body"], ImportAttribute: ["key", "value"], AnyTypeAnnotation: [], ArrayTypeAnnotation: ["elementType"], BooleanTypeAnnotation: [], BooleanLiteralTypeAnnotation: [], NullLiteralTypeAnnotation: [], ClassImplements: ["id", "typeParameters"], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareFunction: ["id", "predicate"], DeclareInterface: ["id", "typeParameters", "extends", "body"], DeclareModule: ["id", "body"], DeclareModuleExports: ["typeAnnotation"], DeclareTypeAlias: ["id", "typeParameters", "right"], DeclareOpaqueType: ["id", "typeParameters", "supertype"], DeclareVariable: ["id"], DeclareExportDeclaration: ["declaration", "specifiers", "source", "attributes"], DeclareExportAllDeclaration: ["source", "attributes"], DeclaredPredicate: ["value"], ExistsTypeAnnotation: [], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: ["name", "typeAnnotation"], GenericTypeAnnotation: ["id", "typeParameters"], InferredPredicate: [], InterfaceExtends: ["id", "typeParameters"], InterfaceDeclaration: ["id", "typeParameters", "extends", "body"], InterfaceTypeAnnotation: ["extends", "body"], IntersectionTypeAnnotation: ["types"], MixedTypeAnnotation: [], EmptyTypeAnnotation: [], NullableTypeAnnotation: ["typeAnnotation"], NumberLiteralTypeAnnotation: [], NumberTypeAnnotation: [], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeCallProperty: ["value"], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: ["argument"], OpaqueType: ["id", "typeParameters", "supertype", "impltype"], QualifiedTypeIdentifier: ["qualification", "id"], StringLiteralTypeAnnotation: [], StringTypeAnnotation: [], SymbolTypeAnnotation: [], ThisTypeAnnotation: [], TupleTypeAnnotation: ["types", "elementTypes"], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeAlias: ["id", "typeParameters", "right"], TypeAnnotation: ["typeAnnotation"], TypeCastExpression: ["expression", "typeAnnotation"], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: ["params"], TypeParameterInstantiation: ["params"], UnionTypeAnnotation: ["types"], Variance: [], VoidTypeAnnotation: [], EnumDeclaration: ["id", "body"], EnumBooleanBody: ["members"], EnumNumberBody: ["members"], EnumStringBody: ["members"], EnumSymbolBody: ["members"], EnumBooleanMember: ["id", "init"], EnumNumberMember: ["id", "init"], EnumStringMember: ["id", "init"], EnumDefaultedMember: ["id"], IndexedAccessType: ["objectType", "indexType"], OptionalIndexedAccessType: ["objectType", "indexType"], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: [], JSXExpressionContainer: ["expression"], JSXSpreadChild: ["expression"], JSXIdentifier: [], JSXMemberExpression: ["object", "property"], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeParameters", "typeArguments", "attributes"], JSXSpreadAttribute: ["argument"], JSXText: [], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXOpeningFragment: [], JSXClosingFragment: [], Noop: [], Placeholder: [], V8IntrinsicIdentifier: [], ArgumentPlaceholder: [], BindExpression: ["object", "callee"], Decorator: ["expression"], DoExpression: ["body"], ExportDefaultSpecifier: ["exported"], ModuleExpression: ["body"], TopicReference: [], PipelineTopicExpression: ["expression"], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: [], TSParameterProperty: ["parameter", "decorators"], TSDeclareFunction: ["id", "typeParameters", "params", "returnType", "body"], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSQualifiedName: ["left", "right"], TSCallSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSConstructSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSPropertySignature: ["key", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSIndexSignature: ["parameters", "typeAnnotation"], TSAnyKeyword: [], TSBooleanKeyword: [], TSBigIntKeyword: [], TSIntrinsicKeyword: [], TSNeverKeyword: [], TSNullKeyword: [], TSNumberKeyword: [], TSObjectKeyword: [], TSStringKeyword: [], TSSymbolKeyword: [], TSUndefinedKeyword: [], TSUnknownKeyword: [], TSVoidKeyword: [], TSThisType: [], TSFunctionType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSConstructorType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSTypeReference: ["typeName", "typeParameters", "typeArguments"], TSTypePredicate: ["parameterName", "typeAnnotation"], TSTypeQuery: ["exprName", "typeParameters", "typeArguments"], TSTypeLiteral: ["members"], TSArrayType: ["elementType"], TSTupleType: ["elementTypes"], TSOptionalType: ["typeAnnotation"], TSRestType: ["typeAnnotation"], TSNamedTupleMember: ["label", "elementType"], TSUnionType: ["types"], TSIntersectionType: ["types"], TSConditionalType: ["checkType", "extendsType", "trueType", "falseType"], TSInferType: ["typeParameter"], TSParenthesizedType: ["typeAnnotation"], TSTypeOperator: ["typeAnnotation"], TSIndexedAccessType: ["objectType", "indexType"], TSMappedType: ["nameType", "typeAnnotation", "key", "constraint"], TSTemplateLiteralType: ["quasis", "types"], TSLiteralType: ["literal"], TSExpressionWithTypeArguments: ["expression", "typeParameters"], TSInterfaceDeclaration: ["id", "typeParameters", "extends", "body"], TSInterfaceBody: ["body"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSInstantiationExpression: ["expression", "typeParameters", "typeArguments"], TSAsExpression: ["expression", "typeAnnotation"], TSSatisfiesExpression: ["expression", "typeAnnotation"], TSTypeAssertion: ["typeAnnotation", "expression"], TSEnumBody: ["members"], TSEnumDeclaration: ["id", "body"], TSEnumMember: ["id", "initializer"], TSModuleDeclaration: ["id", "body"], TSModuleBlock: ["body"], TSImportType: ["argument", "options", "qualifier", "typeParameters", "typeArguments"], TSImportEqualsDeclaration: ["id", "moduleReference"], TSExternalModuleReference: ["expression"], TSNonNullExpression: ["expression"], TSExportAssignment: ["expression"], TSNamespaceExportDeclaration: ["id"], TSTypeAnnotation: ["typeAnnotation"], TSTypeParameterInstantiation: ["params"], TSTypeParameterDeclaration: ["params"], TSTypeParameter: ["constraint", "default", "name"], ChainExpression: ["expression"], ExperimentalRestProperty: ["argument"], ExperimentalSpreadProperty: ["argument"], Literal: [], MethodDefinition: ["decorators", "key", "value"], PrivateIdentifier: [], Property: ["key", "value"], PropertyDefinition: ["decorators", "key", "typeAnnotation", "value", "variance"], AccessorProperty: ["decorators", "key", "typeAnnotation", "value"], TSAbstractAccessorProperty: ["decorators", "key", "typeAnnotation"], TSAbstractKeyword: [], TSAbstractMethodDefinition: ["key", "value"], TSAbstractPropertyDefinition: ["decorators", "key", "typeAnnotation"], TSAsyncKeyword: [], TSClassImplements: ["expression", "typeArguments", "typeParameters"], TSDeclareKeyword: [], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSExportKeyword: [], TSInterfaceHeritage: ["expression", "typeArguments", "typeParameters"], TSPrivateKeyword: [], TSProtectedKeyword: [], TSPublicKeyword: [], TSReadonlyKeyword: [], TSStaticKeyword: [], AsConstExpression: ["expression"], AsExpression: ["expression", "typeAnnotation"], BigIntLiteralTypeAnnotation: [], BigIntTypeAnnotation: [], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: ["name", "typeAnnotation"], ConditionalTypeAnnotation: ["checkType", "extendsType", "trueType", "falseType"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclareEnum: ["id", "body"], DeclareHook: ["id"], DeclareNamespace: ["id", "body"], EnumBigIntBody: ["members"], EnumBigIntMember: ["id", "init"], HookDeclaration: ["id", "params", "body", "typeParameters", "returnType"], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], InferTypeAnnotation: ["typeParameter"], KeyofTypeAnnotation: ["argument"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], QualifiedTypeofIdentifier: ["qualification", "id"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeOperator: ["typeAnnotation"], TypePredicate: ["parameterName", "typeAnnotation", "asserts"], NGChainedExpression: ["expressions"], NGEmptyExpression: [], NGPipeExpression: ["left", "right", "arguments"], NGMicrosyntax: ["body"], NGMicrosyntaxAs: ["key", "alias"], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKey: [], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: ["key", "value"], NGRoot: ["node"], JsExpressionRoot: ["node"], JsonRoot: ["node"], TSJSDocAllType: [], TSJSDocUnknownType: [], TSJSDocNullableType: ["typeAnnotation"], TSJSDocNonNullableType: ["typeAnnotation"], NeverTypeAnnotation: [], SatisfiesExpression: ["expression", "typeAnnotation"], UndefinedTypeAnnotation: [], UnknownTypeAnnotation: [] }, ki = Ni(vi), Di = ki;
6907
7452
  function et(h, c) {
6908
- if (!(h !== null && typeof h == "object")) return h;
7453
+ if (!(h !== null && typeof h == "object"))
7454
+ return h;
6909
7455
  if (Array.isArray(h)) {
6910
- for (let f = 0; f < h.length; f++) h[f] = et(h[f], c);
7456
+ for (let f = 0; f < h.length; f++)
7457
+ h[f] = et(h[f], c);
6911
7458
  return h;
6912
7459
  }
6913
7460
  let m = Di(h);
6914
- for (let f = 0; f < m.length; f++) h[m[f]] = et(h[m[f]], c);
7461
+ for (let f = 0; f < m.length; f++)
7462
+ h[m[f]] = et(h[m[f]], c);
6915
7463
  return c(h) || h;
6916
7464
  }
6917
7465
  var Fi = et;
@@ -6924,24 +7472,29 @@ function Li(h, c) {
6924
7472
  switch (S.type) {
6925
7473
  case "ParenthesizedExpression": {
6926
7474
  let { expression: M } = S, B = z(S);
6927
- if (M.type === "TypeCastExpression") return M.range = [B, _(S)], M;
7475
+ if (M.type === "TypeCastExpression")
7476
+ return M.range = [B, _(S)], M;
6928
7477
  let X = !1;
6929
7478
  if (!C) {
6930
7479
  if (!k) {
6931
7480
  k = [];
6932
- for (let ie of x) gi(ie) && k.push(_(ie));
7481
+ for (let ie of x)
7482
+ gi(ie) && k.push(_(ie));
6933
7483
  }
6934
7484
  let re = hi(!1, k, (ie) => ie <= B);
6935
7485
  X = re && f.slice(re, B).trim().length === 0;
6936
7486
  }
6937
- if (!X) return M.extra = { ...M.extra, parenthesized: !0 }, M;
7487
+ if (!X)
7488
+ return M.extra = { ...M.extra, parenthesized: !0 }, M;
6938
7489
  break;
6939
7490
  }
6940
7491
  case "LogicalExpression":
6941
- if (ss(S)) return tt(S);
7492
+ if (ss(S))
7493
+ return tt(S);
6942
7494
  break;
6943
7495
  case "TemplateLiteral":
6944
- if (S.expressions.length !== S.quasis.length - 1) throw new Error("Malformed template literal.");
7496
+ if (S.expressions.length !== S.quasis.length - 1)
7497
+ throw new Error("Malformed template literal.");
6945
7498
  break;
6946
7499
  case "TemplateElement":
6947
7500
  if (m === "flow" || m === "hermes" || m === "espree" || m === "typescript" || C) {
@@ -6964,7 +7517,8 @@ function Li(h, c) {
6964
7517
  break;
6965
7518
  case "TSUnionType":
6966
7519
  case "TSIntersectionType":
6967
- if (S.types.length === 1) return S.types[0];
7520
+ if (S.types.length === 1)
7521
+ return S.types[0];
6968
7522
  break;
6969
7523
  case "TSMappedType":
6970
7524
  if (!S.constraint && !S.key) {
@@ -6974,7 +7528,7 @@ function Li(h, c) {
6974
7528
  break;
6975
7529
  case "TSEnumDeclaration":
6976
7530
  if (!S.body) {
6977
- let M = _(S.id), { members: B } = S, X = fi({ originalText: f, [/* @__PURE__ */ Symbol.for("comments")]: x }, M, B[0] ? z(B[0]) : _(S)), re = M + X.indexOf("{");
7531
+ let M = _(S.id), { members: B } = S, X = fi({ originalText: f, [Symbol.for("comments")]: x }, M, B[0] ? z(B[0]) : _(S)), re = M + X.indexOf("{");
6978
7532
  S.body = { type: "TSEnumBody", members: B, range: [re, _(S)] }, delete S.members;
6979
7533
  }
6980
7534
  break;
@@ -7007,14 +7561,16 @@ function Bi(h, c) {
7007
7561
  var rs = Bi, _t = "Unexpected parseExpression() input: ";
7008
7562
  function Oi(h) {
7009
7563
  let { message: c, loc: m, reasonCode: f } = h;
7010
- if (!m) return h;
7564
+ if (!m)
7565
+ return h;
7011
7566
  let { line: x, column: C } = m, k = h;
7012
7567
  (f === "MissingPlugin" || f === "MissingOneOfPlugins") && (c = "Unexpected token.", k = void 0);
7013
7568
  let O = ` (${x}:${C})`;
7014
7569
  return c.endsWith(O) && (c = c.slice(0, -O.length)), c.startsWith(_t) && (c = c.slice(_t.length)), rs(c, { loc: { start: { line: x, column: C + 1 } }, cause: k });
7015
7570
  }
7016
7571
  var is = Oi, Ri = (h, c, m, f) => {
7017
- if (!(h && c == null)) return c.replaceAll ? c.replaceAll(m, f) : m.global ? c.replace(m, f) : c.split(m).join(f);
7572
+ if (!(h && c == null))
7573
+ return c.replaceAll ? c.replaceAll(m, f) : m.global ? c.replace(m, f) : c.split(m).join(f);
7018
7574
  }, ve = Ri, Ui = /\*\/$/, ji = /^\/\*\*?/, _i = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/, Hi = /(^|\s+)\/\/([^\n\r]*)/g, Ht = /^(\r?\n)+/, zi = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g, zt = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g, Vi = /(\r?\n|^) *\* ?/g, $i = [];
7019
7575
  function qi(h) {
7020
7576
  let c = h.match(_i);
@@ -7025,7 +7581,8 @@ function Ki(h) {
7025
7581
  `;
7026
7582
  h = ve(!1, h.replace(ji, "").replace(Ui, ""), Vi, "$1");
7027
7583
  let m = "";
7028
- for (; m !== h; ) m = h, h = ve(!1, h, zi, `${c}$1 $2${c}`);
7584
+ for (; m !== h; )
7585
+ m = h, h = ve(!1, h, zi, `${c}$1 $2${c}`);
7029
7586
  h = h.replace(Ht, "").trimEnd();
7030
7587
  let f = /* @__PURE__ */ Object.create(null), x = ve(!1, h, zt, "").replace(Ht, "").trimEnd(), C;
7031
7588
  for (; C = zt.exec(h); ) {
@@ -7033,7 +7590,8 @@ function Ki(h) {
7033
7590
  if (typeof f[C[1]] == "string" || Array.isArray(f[C[1]])) {
7034
7591
  let O = f[C[1]];
7035
7592
  f[C[1]] = [...$i, ...Array.isArray(O) ? O : [O], k];
7036
- } else f[C[1]] = k;
7593
+ } else
7594
+ f[C[1]] = k;
7037
7595
  }
7038
7596
  return { comments: x, pragmas: f };
7039
7597
  }
@@ -7058,8 +7616,10 @@ function Yi(h) {
7058
7616
  var ge = Yi, ns = "module", os = "script";
7059
7617
  function Qi(h) {
7060
7618
  if (typeof h == "string") {
7061
- if (h = h.toLowerCase(), /\.(?:mjs|mts)$/iu.test(h)) return ns;
7062
- if (/\.(?:cjs|cts)$/iu.test(h)) return os;
7619
+ if (h = h.toLowerCase(), /\.(?:mjs|mts)$/iu.test(h))
7620
+ return ns;
7621
+ if (/\.(?:cjs|cts)$/iu.test(h))
7622
+ return os;
7063
7623
  }
7064
7624
  }
7065
7625
  function Zi(h, c) {
@@ -7068,7 +7628,8 @@ function Zi(h, c) {
7068
7628
  }
7069
7629
  var ls = Zi, he = (h) => ge(ia(h)), ea = { sourceType: ns, allowImportExportEverywhere: !0, allowReturnOutsideFunction: !0, allowNewTargetOutsideFunction: !0, allowSuperOutsideMethod: !0, allowUndeclaredExports: !0, errorRecovery: !0, createParenthesizedExpressions: !0, createImportExpressions: !0, attachComment: !1, plugins: ["doExpressions", "exportDefaultFrom", "functionBind", "functionSent", "throwExpressions", "partialApplication", "decorators", "moduleBlocks", "asyncDoExpressions", "destructuringPrivate", "decoratorAutoAccessors", "explicitResourceManagement", "sourcePhaseImports", "deferredImportEvaluation", ["optionalChainingAssign", { version: "2023-07" }]], tokens: !1, ranges: !1 }, Vt = "v8intrinsic", $t = [["pipelineOperator", { proposal: "hack", topicToken: "%" }], ["pipelineOperator", { proposal: "fsharp" }]], W = (h, c = ea) => ({ ...c, plugins: [...c.plugins, ...h] }), ta = /@(?:no)?flow\b/u;
7070
7630
  function sa(h, c) {
7071
- if (c != null && c.endsWith(".js.flow")) return !0;
7631
+ if (c != null && c.endsWith(".js.flow"))
7632
+ return !0;
7072
7633
  let m = ts(h);
7073
7634
  m && (h = h.slice(m.length));
7074
7635
  let f = ii(h, 0);
@@ -7076,13 +7637,15 @@ function sa(h, c) {
7076
7637
  }
7077
7638
  function ra(h, c, m) {
7078
7639
  let f = h(c, m), x = f.errors.find((C) => !aa.has(C.reasonCode));
7079
- if (x) throw x;
7640
+ if (x)
7641
+ throw x;
7080
7642
  return f;
7081
7643
  }
7082
7644
  function ia({ isExpression: h = !1, optionsCombinations: c }) {
7083
7645
  return (m, f = {}) => {
7084
7646
  let { filepath: x } = f;
7085
- if (typeof x != "string" && (x = void 0), (f.parser === "babel" || f.parser === "__babel_estree") && sa(m, x)) return f.parser = "babel-flow", ps.parse(m, f);
7647
+ if (typeof x != "string" && (x = void 0), (f.parser === "babel" || f.parser === "__babel_estree") && sa(m, x))
7648
+ return f.parser = "babel-flow", ps.parse(m, f);
7086
7649
  let C = c, k = f.__babelSourceType ?? Qi(x);
7087
7650
  k === os && (C = C.map((B) => ({ ...B, sourceType: k })));
7088
7651
  let O = /%[A-Z]/u.test(m);
@@ -7105,20 +7668,24 @@ function oa(h) {
7105
7668
  var ds = oa, ms = { tokens: !1, ranges: !1, attachComment: !1, createParenthesizedExpressions: !0 };
7106
7669
  function la(h) {
7107
7670
  let c = (0, cs.parse)(h, ms), { program: m } = c;
7108
- if (m.body.length === 0 && m.directives.length === 0 && !m.interpreter) return c;
7671
+ if (m.body.length === 0 && m.directives.length === 0 && !m.interpreter)
7672
+ return c;
7109
7673
  }
7110
7674
  function ke(h, c = {}) {
7111
7675
  let { allowComments: m = !0, allowEmpty: f = !1 } = c, x;
7112
7676
  try {
7113
7677
  x = (0, cs.parseExpression)(h, ms);
7114
7678
  } catch (C) {
7115
- if (f && C.code === "BABEL_PARSER_SYNTAX_ERROR" && C.reasonCode === "ParseExpressionEmptyInput") try {
7116
- x = la(h);
7117
- } catch {
7118
- }
7119
- if (!x) throw is(C);
7679
+ if (f && C.code === "BABEL_PARSER_SYNTAX_ERROR" && C.reasonCode === "ParseExpressionEmptyInput")
7680
+ try {
7681
+ x = la(h);
7682
+ } catch {
7683
+ }
7684
+ if (!x)
7685
+ throw is(C);
7120
7686
  }
7121
- if (!m && ds(x.comments)) throw te(x.comments[0], "Comment");
7687
+ if (!m && ds(x.comments))
7688
+ throw te(x.comments[0], "Comment");
7122
7689
  return x = ls(x, { type: "JsonRoot", text: h }), x.node.type === "File" ? delete x.node : le(x.node), x;
7123
7690
  }
7124
7691
  function te(h, c) {
@@ -7128,28 +7695,37 @@ function te(h, c) {
7128
7695
  function le(h) {
7129
7696
  switch (h.type) {
7130
7697
  case "ArrayExpression":
7131
- for (let c of h.elements) c !== null && le(c);
7698
+ for (let c of h.elements)
7699
+ c !== null && le(c);
7132
7700
  return;
7133
7701
  case "ObjectExpression":
7134
- for (let c of h.properties) le(c);
7702
+ for (let c of h.properties)
7703
+ le(c);
7135
7704
  return;
7136
7705
  case "ObjectProperty":
7137
- if (h.computed) throw te(h.key, "Computed key");
7138
- if (h.shorthand) throw te(h.key, "Shorthand property");
7706
+ if (h.computed)
7707
+ throw te(h.key, "Computed key");
7708
+ if (h.shorthand)
7709
+ throw te(h.key, "Shorthand property");
7139
7710
  h.key.type !== "Identifier" && le(h.key), le(h.value);
7140
7711
  return;
7141
7712
  case "UnaryExpression": {
7142
7713
  let { operator: c, argument: m } = h;
7143
- if (c !== "+" && c !== "-") throw te(h, `Operator '${h.operator}'`);
7144
- if (m.type === "NumericLiteral" || m.type === "Identifier" && (m.name === "Infinity" || m.name === "NaN")) return;
7714
+ if (c !== "+" && c !== "-")
7715
+ throw te(h, `Operator '${h.operator}'`);
7716
+ if (m.type === "NumericLiteral" || m.type === "Identifier" && (m.name === "Infinity" || m.name === "NaN"))
7717
+ return;
7145
7718
  throw te(m, `Operator '${c}' before '${m.type}'`);
7146
7719
  }
7147
7720
  case "Identifier":
7148
- if (h.name !== "Infinity" && h.name !== "NaN" && h.name !== "undefined") throw te(h, `Identifier '${h.name}'`);
7721
+ if (h.name !== "Infinity" && h.name !== "NaN" && h.name !== "undefined")
7722
+ throw te(h, `Identifier '${h.name}'`);
7149
7723
  return;
7150
7724
  case "TemplateLiteral":
7151
- if (ds(h.expressions)) throw te(h.expressions[0], "'TemplateLiteral' with expression");
7152
- for (let c of h.quasis) le(c);
7725
+ if (ds(h.expressions))
7726
+ throw te(h.expressions[0], "'TemplateLiteral' with expression");
7727
+ for (let c of h.quasis)
7728
+ le(c);
7153
7729
  return;
7154
7730
  case "NullLiteral":
7155
7731
  case "BooleanLiteral":