@danielx/civet 0.5.48 → 0.5.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.mjs CHANGED
@@ -759,6 +759,7 @@ ${input.slice(result.pos)}
759
759
  CoffeeSubstitutionStart,
760
760
  Colon,
761
761
  ConstructorShorthand,
762
+ Declare,
762
763
  Default,
763
764
  Delete,
764
765
  Do,
@@ -862,8 +863,9 @@ ${input.slice(result.pos)}
862
863
  IndentedJSXChildExpression,
863
864
  NestedJSXChildExpression,
864
865
  TypeDeclaration,
865
- TypeDeclarationModifier,
866
866
  TypeDeclarationRest,
867
+ TypeLexicalDeclaration,
868
+ TypeDeclarationBinding,
867
869
  InterfaceExtendsClause,
868
870
  InterfaceExtendsTarget,
869
871
  TypeKeyword,
@@ -873,6 +875,7 @@ ${input.slice(result.pos)}
873
875
  NestedInterfaceProperties,
874
876
  NestedInterfaceProperty,
875
877
  InterfaceProperty,
878
+ BasicInterfaceProperty,
876
879
  InterfacePropertyDelimiter,
877
880
  NamespaceBlock,
878
881
  NestedTypeDeclarations,
@@ -896,6 +899,9 @@ ${input.slice(result.pos)}
896
899
  NestedType,
897
900
  TypeConditional,
898
901
  TypeLiteral,
902
+ InlineInterfaceLiteral,
903
+ InlineBasicInterfaceProperty,
904
+ InlineInterfacePropertyDelimiter,
899
905
  TypeBinaryOp,
900
906
  FunctionType,
901
907
  TypeArguments,
@@ -1040,82 +1046,82 @@ ${input.slice(result.pos)}
1040
1046
  var $L83 = $L("continue");
1041
1047
  var $L84 = $L("debugger");
1042
1048
  var $L85 = $L("assert");
1043
- var $L86 = $L("default");
1044
- var $L87 = $L(":=");
1045
- var $L88 = $L(".=");
1046
- var $L89 = $L("/*");
1047
- var $L90 = $L("*/");
1048
- var $L91 = $L("\\");
1049
- var $L92 = $L("abstract");
1050
- var $L93 = $L("as");
1051
- var $L94 = $L("@");
1052
- var $L95 = $L("@@");
1053
- var $L96 = $L("async");
1054
- var $L97 = $L("await");
1055
- var $L98 = $L("`");
1056
- var $L99 = $L("by");
1057
- var $L100 = $L("case");
1058
- var $L101 = $L("catch");
1059
- var $L102 = $L("class");
1060
- var $L103 = $L("#{");
1061
- var $L104 = $L("delete");
1062
- var $L105 = $L("do");
1063
- var $L106 = $L("..");
1064
- var $L107 = $L("...");
1065
- var $L108 = $L("::");
1066
- var $L109 = $L('"');
1067
- var $L110 = $L("else");
1068
- var $L111 = $L("export");
1069
- var $L112 = $L("extends");
1070
- var $L113 = $L("for");
1071
- var $L114 = $L("from");
1072
- var $L115 = $L("function");
1073
- var $L116 = $L("get");
1074
- var $L117 = $L("set");
1075
- var $L118 = $L("if");
1076
- var $L119 = $L("let");
1077
- var $L120 = $L("const");
1078
- var $L121 = $L("loop");
1079
- var $L122 = $L("new");
1080
- var $L123 = $L("<");
1081
- var $L124 = $L("{");
1082
- var $L125 = $L("[");
1083
- var $L126 = $L("(");
1084
- var $L127 = $L("public");
1085
- var $L128 = $L("private");
1086
- var $L129 = $L("protected");
1087
- var $L130 = $L("|>");
1088
- var $L131 = $L("readonly");
1089
- var $L132 = $L("return");
1090
- var $L133 = $L("satisfies");
1091
- var $L134 = $L("'");
1092
- var $L135 = $L("static");
1093
- var $L136 = $L("${");
1094
- var $L137 = $L("switch");
1095
- var $L138 = $L("target");
1096
- var $L139 = $L("then");
1097
- var $L140 = $L("this");
1098
- var $L141 = $L("throw");
1099
- var $L142 = $L('"""');
1100
- var $L143 = $L("'''");
1101
- var $L144 = $L("///");
1102
- var $L145 = $L("```");
1103
- var $L146 = $L("try");
1104
- var $L147 = $L("typeof");
1105
- var $L148 = $L("unless");
1106
- var $L149 = $L("until");
1107
- var $L150 = $L("var");
1108
- var $L151 = $L("void");
1109
- var $L152 = $L("when");
1110
- var $L153 = $L("while");
1111
- var $L154 = $L("yield");
1112
- var $L155 = $L("/>");
1113
- var $L156 = $L("</");
1114
- var $L157 = $L("<>");
1115
- var $L158 = $L("</>");
1116
- var $L159 = $L("<!--");
1117
- var $L160 = $L("-->");
1118
- var $L161 = $L("declare");
1049
+ var $L86 = $L(":=");
1050
+ var $L87 = $L(".=");
1051
+ var $L88 = $L("/*");
1052
+ var $L89 = $L("*/");
1053
+ var $L90 = $L("\\");
1054
+ var $L91 = $L("abstract");
1055
+ var $L92 = $L("as");
1056
+ var $L93 = $L("@");
1057
+ var $L94 = $L("@@");
1058
+ var $L95 = $L("async");
1059
+ var $L96 = $L("await");
1060
+ var $L97 = $L("`");
1061
+ var $L98 = $L("by");
1062
+ var $L99 = $L("case");
1063
+ var $L100 = $L("catch");
1064
+ var $L101 = $L("class");
1065
+ var $L102 = $L("#{");
1066
+ var $L103 = $L("declare");
1067
+ var $L104 = $L("default");
1068
+ var $L105 = $L("delete");
1069
+ var $L106 = $L("do");
1070
+ var $L107 = $L("..");
1071
+ var $L108 = $L("...");
1072
+ var $L109 = $L("::");
1073
+ var $L110 = $L('"');
1074
+ var $L111 = $L("else");
1075
+ var $L112 = $L("export");
1076
+ var $L113 = $L("extends");
1077
+ var $L114 = $L("for");
1078
+ var $L115 = $L("from");
1079
+ var $L116 = $L("function");
1080
+ var $L117 = $L("get");
1081
+ var $L118 = $L("set");
1082
+ var $L119 = $L("if");
1083
+ var $L120 = $L("let");
1084
+ var $L121 = $L("const");
1085
+ var $L122 = $L("loop");
1086
+ var $L123 = $L("new");
1087
+ var $L124 = $L("<");
1088
+ var $L125 = $L("{");
1089
+ var $L126 = $L("[");
1090
+ var $L127 = $L("(");
1091
+ var $L128 = $L("public");
1092
+ var $L129 = $L("private");
1093
+ var $L130 = $L("protected");
1094
+ var $L131 = $L("|>");
1095
+ var $L132 = $L("readonly");
1096
+ var $L133 = $L("return");
1097
+ var $L134 = $L("satisfies");
1098
+ var $L135 = $L("'");
1099
+ var $L136 = $L("static");
1100
+ var $L137 = $L("${");
1101
+ var $L138 = $L("switch");
1102
+ var $L139 = $L("target");
1103
+ var $L140 = $L("then");
1104
+ var $L141 = $L("this");
1105
+ var $L142 = $L("throw");
1106
+ var $L143 = $L('"""');
1107
+ var $L144 = $L("'''");
1108
+ var $L145 = $L("///");
1109
+ var $L146 = $L("```");
1110
+ var $L147 = $L("try");
1111
+ var $L148 = $L("typeof");
1112
+ var $L149 = $L("unless");
1113
+ var $L150 = $L("until");
1114
+ var $L151 = $L("var");
1115
+ var $L152 = $L("void");
1116
+ var $L153 = $L("when");
1117
+ var $L154 = $L("while");
1118
+ var $L155 = $L("yield");
1119
+ var $L156 = $L("/>");
1120
+ var $L157 = $L("</");
1121
+ var $L158 = $L("<>");
1122
+ var $L159 = $L("</>");
1123
+ var $L160 = $L("<!--");
1124
+ var $L161 = $L("-->");
1119
1125
  var $L162 = $L("type");
1120
1126
  var $L163 = $L("interface");
1121
1127
  var $L164 = $L("namespace");
@@ -2921,7 +2927,9 @@ ${input.slice(result.pos)}
2921
2927
  return result;
2922
2928
  }
2923
2929
  }
2924
- var AccessModifier$0 = $TS($S($C(Public, Private, Protected), __), function($skip, $loc, $0, $1, $2) {
2930
+ var AccessModifier$0 = $TS($S($E($S($C(Public, Private, Protected), __)), $E($S(Readonly, __))), function($skip, $loc, $0, $1, $2) {
2931
+ if (!($1 || $2))
2932
+ return $skip;
2925
2933
  return {
2926
2934
  ts: true,
2927
2935
  children: $0
@@ -6584,17 +6592,27 @@ ${input.slice(result.pos)}
6584
6592
  return {
6585
6593
  $loc,
6586
6594
  token: "instanceof",
6587
- special: true
6595
+ special: true,
6596
+ negated: true
6588
6597
  };
6589
6598
  });
6590
6599
  var BinaryOpSymbol$29 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L68, fail, 'BinaryOpSymbol "of"'), NonIdContinue)), function($skip, $loc, $0, $1) {
6591
6600
  return {
6592
6601
  $loc,
6593
6602
  token: "in",
6603
+ special: true,
6604
+ negated: true
6605
+ };
6606
+ });
6607
+ var BinaryOpSymbol$30 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
6608
+ return {
6609
+ method: "includes",
6610
+ relational: true,
6611
+ reversed: true,
6594
6612
  special: true
6595
6613
  };
6596
6614
  });
6597
- var BinaryOpSymbol$30 = $TV($C($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue)), function($skip, $loc, $0, $1) {
6615
+ var BinaryOpSymbol$31 = $TS($S(CoffeeOfEnabled, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
6598
6616
  return {
6599
6617
  call: [module.getRef("indexOf"), ".call"],
6600
6618
  relational: true,
@@ -6603,7 +6621,16 @@ ${input.slice(result.pos)}
6603
6621
  special: true
6604
6622
  };
6605
6623
  });
6606
- var BinaryOpSymbol$31 = $TV($C($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue)), function($skip, $loc, $0, $1) {
6624
+ var BinaryOpSymbol$32 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
6625
+ return {
6626
+ method: "includes",
6627
+ relational: true,
6628
+ reversed: true,
6629
+ special: true,
6630
+ negated: true
6631
+ };
6632
+ });
6633
+ var BinaryOpSymbol$33 = $TS($S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
6607
6634
  return {
6608
6635
  call: [module.getRef("indexOf"), ".call"],
6609
6636
  relational: true,
@@ -6612,18 +6639,18 @@ ${input.slice(result.pos)}
6612
6639
  special: true
6613
6640
  };
6614
6641
  });
6615
- var BinaryOpSymbol$32 = $T($S($N(CoffeeNotEnabled), $EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function(value) {
6642
+ var BinaryOpSymbol$34 = $T($S($N(CoffeeNotEnabled), $EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function(value) {
6616
6643
  return "!==";
6617
6644
  });
6618
- var BinaryOpSymbol$33 = $T($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function(value) {
6645
+ var BinaryOpSymbol$35 = $T($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function(value) {
6619
6646
  return "===";
6620
6647
  });
6621
- var BinaryOpSymbol$34 = $TS($S($EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
6648
+ var BinaryOpSymbol$36 = $TS($S($EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
6622
6649
  return $1;
6623
6650
  });
6624
- var BinaryOpSymbol$35 = $EXPECT($L76, fail, 'BinaryOpSymbol "&"');
6625
- var BinaryOpSymbol$36 = $EXPECT($L77, fail, 'BinaryOpSymbol "^"');
6626
- var BinaryOpSymbol$37 = $EXPECT($L78, fail, 'BinaryOpSymbol "|"');
6651
+ var BinaryOpSymbol$37 = $EXPECT($L76, fail, 'BinaryOpSymbol "&"');
6652
+ var BinaryOpSymbol$38 = $EXPECT($L77, fail, 'BinaryOpSymbol "^"');
6653
+ var BinaryOpSymbol$39 = $EXPECT($L78, fail, 'BinaryOpSymbol "|"');
6627
6654
  function BinaryOpSymbol(state) {
6628
6655
  let eventData;
6629
6656
  if (state.events) {
@@ -6635,12 +6662,12 @@ ${input.slice(result.pos)}
6635
6662
  }
6636
6663
  }
6637
6664
  if (state.tokenize) {
6638
- const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state));
6665
+ const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state));
6639
6666
  if (state.events)
6640
6667
  state.events.exit?.("BinaryOpSymbol", state, result, eventData);
6641
6668
  return result;
6642
6669
  } else {
6643
- const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state);
6670
+ const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state);
6644
6671
  if (state.events)
6645
6672
  state.events.exit?.("BinaryOpSymbol", state, result, eventData);
6646
6673
  return result;
@@ -9188,7 +9215,7 @@ ${input.slice(result.pos)}
9188
9215
  return result;
9189
9216
  }
9190
9217
  }
9191
- var ExportDeclaration$0 = $S(Export, __, $EXPECT($L86, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
9218
+ var ExportDeclaration$0 = $S(Export, __, Default, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
9192
9219
  var ExportDeclaration$1 = $TS($S(Export, __, ExportFromClause, __, FromClause), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
9193
9220
  if (!$3.ts)
9194
9221
  return $0;
@@ -9350,7 +9377,7 @@ ${input.slice(result.pos)}
9350
9377
  return result;
9351
9378
  }
9352
9379
  }
9353
- var ImplicitExportSpecifier$0 = $S($N($EXPECT($L86, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
9380
+ var ImplicitExportSpecifier$0 = $S($N(Default), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
9354
9381
  function ImplicitExportSpecifier(state) {
9355
9382
  let eventData;
9356
9383
  if (state.events) {
@@ -9521,7 +9548,7 @@ ${input.slice(result.pos)}
9521
9548
  return result;
9522
9549
  }
9523
9550
  }
9524
- var ConstAssignment$0 = $TV($EXPECT($L87, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
9551
+ var ConstAssignment$0 = $TV($EXPECT($L86, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
9525
9552
  return { $loc, token: "=" };
9526
9553
  });
9527
9554
  function ConstAssignment(state) {
@@ -9546,7 +9573,7 @@ ${input.slice(result.pos)}
9546
9573
  return result;
9547
9574
  }
9548
9575
  }
9549
- var LetAssignment$0 = $TV($EXPECT($L88, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
9576
+ var LetAssignment$0 = $TV($EXPECT($L87, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
9550
9577
  return { $loc, token: "=" };
9551
9578
  });
9552
9579
  function LetAssignment(state) {
@@ -10720,7 +10747,7 @@ ${input.slice(result.pos)}
10720
10747
  return result;
10721
10748
  }
10722
10749
  }
10723
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L90, fail, 'JSMultiLineComment "*/"')), $EXPECT($R39, fail, "JSMultiLineComment /./"))), $EXPECT($L90, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
10750
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L89, fail, 'JSMultiLineComment "*/"')), $EXPECT($R39, fail, "JSMultiLineComment /./"))), $EXPECT($L89, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
10724
10751
  return { $loc, token: $1 };
10725
10752
  });
10726
10753
  function JSMultiLineComment(state) {
@@ -10770,7 +10797,7 @@ ${input.slice(result.pos)}
10770
10797
  return result;
10771
10798
  }
10772
10799
  }
10773
- var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L90, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R39, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
10800
+ var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L89, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R39, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
10774
10801
  return { $loc, token: `/*${$2}*/` };
10775
10802
  });
10776
10803
  function CoffeeMultiLineComment(state) {
@@ -10818,7 +10845,7 @@ ${input.slice(result.pos)}
10818
10845
  return result;
10819
10846
  }
10820
10847
  }
10821
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L90, fail, 'InlineComment "*/"')), $EXPECT($R42, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L90, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
10848
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L89, fail, 'InlineComment "*/"')), $EXPECT($R42, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L89, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
10822
10849
  return { $loc, token: $1 };
10823
10850
  });
10824
10851
  function InlineComment(state) {
@@ -10917,7 +10944,7 @@ ${input.slice(result.pos)}
10917
10944
  var NonNewlineWhitespace$0 = $TR($EXPECT($R43, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
10918
10945
  return { $loc, token: $0 };
10919
10946
  });
10920
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L91, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
10947
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L90, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
10921
10948
  return "";
10922
10949
  });
10923
10950
  function NonNewlineWhitespace(state) {
@@ -11144,7 +11171,7 @@ ${input.slice(result.pos)}
11144
11171
  return result;
11145
11172
  }
11146
11173
  }
11147
- var Abstract$0 = $TV($TEXT($S($EXPECT($L92, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L6, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
11174
+ var Abstract$0 = $TV($TEXT($S($EXPECT($L91, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L6, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
11148
11175
  return { $loc, token: $1, ts: true };
11149
11176
  });
11150
11177
  function Abstract(state) {
@@ -11194,7 +11221,7 @@ ${input.slice(result.pos)}
11194
11221
  return result;
11195
11222
  }
11196
11223
  }
11197
- var As$0 = $TS($S($EXPECT($L93, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11224
+ var As$0 = $TS($S($EXPECT($L92, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11198
11225
  return { $loc, token: $1 };
11199
11226
  });
11200
11227
  function As(state) {
@@ -11219,7 +11246,7 @@ ${input.slice(result.pos)}
11219
11246
  return result;
11220
11247
  }
11221
11248
  }
11222
- var At$0 = $TV($EXPECT($L94, fail, 'At "@"'), function($skip, $loc, $0, $1) {
11249
+ var At$0 = $TV($EXPECT($L93, fail, 'At "@"'), function($skip, $loc, $0, $1) {
11223
11250
  return { $loc, token: $1 };
11224
11251
  });
11225
11252
  function At(state) {
@@ -11244,7 +11271,7 @@ ${input.slice(result.pos)}
11244
11271
  return result;
11245
11272
  }
11246
11273
  }
11247
- var AtAt$0 = $TV($EXPECT($L95, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
11274
+ var AtAt$0 = $TV($EXPECT($L94, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
11248
11275
  return { $loc, token: "@" };
11249
11276
  });
11250
11277
  function AtAt(state) {
@@ -11269,7 +11296,7 @@ ${input.slice(result.pos)}
11269
11296
  return result;
11270
11297
  }
11271
11298
  }
11272
- var Async$0 = $TS($S($EXPECT($L96, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11299
+ var Async$0 = $TS($S($EXPECT($L95, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11273
11300
  return { $loc, token: $1, type: "Async" };
11274
11301
  });
11275
11302
  function Async(state) {
@@ -11294,7 +11321,7 @@ ${input.slice(result.pos)}
11294
11321
  return result;
11295
11322
  }
11296
11323
  }
11297
- var Await$0 = $TS($S($EXPECT($L97, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11324
+ var Await$0 = $TS($S($EXPECT($L96, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11298
11325
  return { $loc, token: $1 };
11299
11326
  });
11300
11327
  function Await(state) {
@@ -11319,7 +11346,7 @@ ${input.slice(result.pos)}
11319
11346
  return result;
11320
11347
  }
11321
11348
  }
11322
- var Backtick$0 = $TV($EXPECT($L98, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
11349
+ var Backtick$0 = $TV($EXPECT($L97, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
11323
11350
  return { $loc, token: $1 };
11324
11351
  });
11325
11352
  function Backtick(state) {
@@ -11344,7 +11371,7 @@ ${input.slice(result.pos)}
11344
11371
  return result;
11345
11372
  }
11346
11373
  }
11347
- var By$0 = $TS($S($EXPECT($L99, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11374
+ var By$0 = $TS($S($EXPECT($L98, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11348
11375
  return { $loc, token: $1 };
11349
11376
  });
11350
11377
  function By(state) {
@@ -11369,7 +11396,7 @@ ${input.slice(result.pos)}
11369
11396
  return result;
11370
11397
  }
11371
11398
  }
11372
- var Case$0 = $TS($S($EXPECT($L100, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11399
+ var Case$0 = $TS($S($EXPECT($L99, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11373
11400
  return { $loc, token: $1 };
11374
11401
  });
11375
11402
  function Case(state) {
@@ -11394,7 +11421,7 @@ ${input.slice(result.pos)}
11394
11421
  return result;
11395
11422
  }
11396
11423
  }
11397
- var Catch$0 = $TS($S($EXPECT($L101, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11424
+ var Catch$0 = $TS($S($EXPECT($L100, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11398
11425
  return { $loc, token: $1 };
11399
11426
  });
11400
11427
  function Catch(state) {
@@ -11419,7 +11446,7 @@ ${input.slice(result.pos)}
11419
11446
  return result;
11420
11447
  }
11421
11448
  }
11422
- var Class$0 = $TS($S($EXPECT($L102, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11449
+ var Class$0 = $TS($S($EXPECT($L101, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11423
11450
  return { $loc, token: $1 };
11424
11451
  });
11425
11452
  function Class(state) {
@@ -11519,7 +11546,7 @@ ${input.slice(result.pos)}
11519
11546
  return result;
11520
11547
  }
11521
11548
  }
11522
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L103, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
11549
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L102, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
11523
11550
  return { $loc, token: "${" };
11524
11551
  });
11525
11552
  function CoffeeSubstitutionStart(state) {
@@ -11569,7 +11596,7 @@ ${input.slice(result.pos)}
11569
11596
  return result;
11570
11597
  }
11571
11598
  }
11572
- var ConstructorShorthand$0 = $TV($EXPECT($L94, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
11599
+ var ConstructorShorthand$0 = $TV($EXPECT($L93, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
11573
11600
  return { $loc, token: "constructor" };
11574
11601
  });
11575
11602
  function ConstructorShorthand(state) {
@@ -11594,7 +11621,32 @@ ${input.slice(result.pos)}
11594
11621
  return result;
11595
11622
  }
11596
11623
  }
11597
- var Default$0 = $TS($S($EXPECT($L86, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11624
+ var Declare$0 = $TS($S($EXPECT($L103, fail, 'Declare "declare"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11625
+ return { $loc, token: $1 };
11626
+ });
11627
+ function Declare(state) {
11628
+ let eventData;
11629
+ if (state.events) {
11630
+ const result = state.events.enter?.("Declare", state);
11631
+ if (result) {
11632
+ if (result.cache)
11633
+ return result.cache;
11634
+ eventData = result.data;
11635
+ }
11636
+ }
11637
+ if (state.tokenize) {
11638
+ const result = $TOKEN("Declare", state, Declare$0(state));
11639
+ if (state.events)
11640
+ state.events.exit?.("Declare", state, result, eventData);
11641
+ return result;
11642
+ } else {
11643
+ const result = Declare$0(state);
11644
+ if (state.events)
11645
+ state.events.exit?.("Declare", state, result, eventData);
11646
+ return result;
11647
+ }
11648
+ }
11649
+ var Default$0 = $TS($S($EXPECT($L104, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11598
11650
  return { $loc, token: $1 };
11599
11651
  });
11600
11652
  function Default(state) {
@@ -11619,7 +11671,7 @@ ${input.slice(result.pos)}
11619
11671
  return result;
11620
11672
  }
11621
11673
  }
11622
- var Delete$0 = $TS($S($EXPECT($L104, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11674
+ var Delete$0 = $TS($S($EXPECT($L105, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11623
11675
  return { $loc, token: $1 };
11624
11676
  });
11625
11677
  function Delete(state) {
@@ -11644,7 +11696,7 @@ ${input.slice(result.pos)}
11644
11696
  return result;
11645
11697
  }
11646
11698
  }
11647
- var Do$0 = $TS($S($EXPECT($L105, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11699
+ var Do$0 = $TS($S($EXPECT($L106, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11648
11700
  return { $loc, token: $1 };
11649
11701
  });
11650
11702
  function Do(state) {
@@ -11694,7 +11746,7 @@ ${input.slice(result.pos)}
11694
11746
  return result;
11695
11747
  }
11696
11748
  }
11697
- var DotDot$0 = $TV($EXPECT($L106, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
11749
+ var DotDot$0 = $TV($EXPECT($L107, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
11698
11750
  return { $loc, token: $1 };
11699
11751
  });
11700
11752
  function DotDot(state) {
@@ -11719,7 +11771,7 @@ ${input.slice(result.pos)}
11719
11771
  return result;
11720
11772
  }
11721
11773
  }
11722
- var DotDotDot$0 = $TV($EXPECT($L107, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
11774
+ var DotDotDot$0 = $TV($EXPECT($L108, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
11723
11775
  return { $loc, token: $1 };
11724
11776
  });
11725
11777
  function DotDotDot(state) {
@@ -11744,7 +11796,7 @@ ${input.slice(result.pos)}
11744
11796
  return result;
11745
11797
  }
11746
11798
  }
11747
- var DoubleColon$0 = $TV($EXPECT($L108, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
11799
+ var DoubleColon$0 = $TV($EXPECT($L109, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
11748
11800
  return { $loc, token: $1 };
11749
11801
  });
11750
11802
  function DoubleColon(state) {
@@ -11769,7 +11821,7 @@ ${input.slice(result.pos)}
11769
11821
  return result;
11770
11822
  }
11771
11823
  }
11772
- var DoubleQuote$0 = $TV($EXPECT($L109, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
11824
+ var DoubleQuote$0 = $TV($EXPECT($L110, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
11773
11825
  return { $loc, token: $1 };
11774
11826
  });
11775
11827
  function DoubleQuote(state) {
@@ -11794,7 +11846,7 @@ ${input.slice(result.pos)}
11794
11846
  return result;
11795
11847
  }
11796
11848
  }
11797
- var Else$0 = $TS($S($EXPECT($L110, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11849
+ var Else$0 = $TS($S($EXPECT($L111, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11798
11850
  return { $loc, token: $1 };
11799
11851
  });
11800
11852
  function Else(state) {
@@ -11844,7 +11896,7 @@ ${input.slice(result.pos)}
11844
11896
  return result;
11845
11897
  }
11846
11898
  }
11847
- var Export$0 = $TS($S($EXPECT($L111, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11899
+ var Export$0 = $TS($S($EXPECT($L112, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11848
11900
  return { $loc, token: $1 };
11849
11901
  });
11850
11902
  function Export(state) {
@@ -11869,7 +11921,7 @@ ${input.slice(result.pos)}
11869
11921
  return result;
11870
11922
  }
11871
11923
  }
11872
- var Extends$0 = $TS($S($EXPECT($L112, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11924
+ var Extends$0 = $TS($S($EXPECT($L113, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11873
11925
  return { $loc, token: $1 };
11874
11926
  });
11875
11927
  function Extends(state) {
@@ -11894,7 +11946,7 @@ ${input.slice(result.pos)}
11894
11946
  return result;
11895
11947
  }
11896
11948
  }
11897
- var For$0 = $TS($S($EXPECT($L113, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11949
+ var For$0 = $TS($S($EXPECT($L114, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11898
11950
  return { $loc, token: $1 };
11899
11951
  });
11900
11952
  function For(state) {
@@ -11919,7 +11971,7 @@ ${input.slice(result.pos)}
11919
11971
  return result;
11920
11972
  }
11921
11973
  }
11922
- var From$0 = $TS($S($EXPECT($L114, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11974
+ var From$0 = $TS($S($EXPECT($L115, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11923
11975
  return { $loc, token: $1 };
11924
11976
  });
11925
11977
  function From(state) {
@@ -11944,7 +11996,7 @@ ${input.slice(result.pos)}
11944
11996
  return result;
11945
11997
  }
11946
11998
  }
11947
- var Function$0 = $TS($S($EXPECT($L115, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11999
+ var Function$0 = $TS($S($EXPECT($L116, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11948
12000
  return { $loc, token: $1 };
11949
12001
  });
11950
12002
  function Function(state) {
@@ -11969,7 +12021,7 @@ ${input.slice(result.pos)}
11969
12021
  return result;
11970
12022
  }
11971
12023
  }
11972
- var GetOrSet$0 = $TS($S($C($EXPECT($L116, fail, 'GetOrSet "get"'), $EXPECT($L117, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12024
+ var GetOrSet$0 = $TS($S($C($EXPECT($L117, fail, 'GetOrSet "get"'), $EXPECT($L118, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11973
12025
  return { $loc, token: $1, type: "GetOrSet" };
11974
12026
  });
11975
12027
  function GetOrSet(state) {
@@ -11994,7 +12046,7 @@ ${input.slice(result.pos)}
11994
12046
  return result;
11995
12047
  }
11996
12048
  }
11997
- var If$0 = $TV($TEXT($S($EXPECT($L118, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L6, fail, 'If " "')))), function($skip, $loc, $0, $1) {
12049
+ var If$0 = $TV($TEXT($S($EXPECT($L119, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L6, fail, 'If " "')))), function($skip, $loc, $0, $1) {
11998
12050
  return { $loc, token: $1 };
11999
12051
  });
12000
12052
  function If(state) {
@@ -12069,7 +12121,7 @@ ${input.slice(result.pos)}
12069
12121
  return result;
12070
12122
  }
12071
12123
  }
12072
- var LetOrConst$0 = $TS($S($C($EXPECT($L119, fail, 'LetOrConst "let"'), $EXPECT($L120, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12124
+ var LetOrConst$0 = $TS($S($C($EXPECT($L120, fail, 'LetOrConst "let"'), $EXPECT($L121, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12073
12125
  return { $loc, token: $1 };
12074
12126
  });
12075
12127
  function LetOrConst(state) {
@@ -12094,7 +12146,7 @@ ${input.slice(result.pos)}
12094
12146
  return result;
12095
12147
  }
12096
12148
  }
12097
- var Loop$0 = $TS($S($EXPECT($L121, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12149
+ var Loop$0 = $TS($S($EXPECT($L122, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12098
12150
  return { $loc, token: "while(true)" };
12099
12151
  });
12100
12152
  function Loop(state) {
@@ -12119,7 +12171,7 @@ ${input.slice(result.pos)}
12119
12171
  return result;
12120
12172
  }
12121
12173
  }
12122
- var New$0 = $TS($S($EXPECT($L122, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12174
+ var New$0 = $TS($S($EXPECT($L123, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12123
12175
  return { $loc, token: $1 };
12124
12176
  });
12125
12177
  function New(state) {
@@ -12194,7 +12246,7 @@ ${input.slice(result.pos)}
12194
12246
  return result;
12195
12247
  }
12196
12248
  }
12197
- var OpenAngleBracket$0 = $TV($EXPECT($L123, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
12249
+ var OpenAngleBracket$0 = $TV($EXPECT($L124, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
12198
12250
  return { $loc, token: $1 };
12199
12251
  });
12200
12252
  function OpenAngleBracket(state) {
@@ -12219,7 +12271,7 @@ ${input.slice(result.pos)}
12219
12271
  return result;
12220
12272
  }
12221
12273
  }
12222
- var OpenBrace$0 = $TV($EXPECT($L124, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
12274
+ var OpenBrace$0 = $TV($EXPECT($L125, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
12223
12275
  return { $loc, token: $1 };
12224
12276
  });
12225
12277
  function OpenBrace(state) {
@@ -12244,7 +12296,7 @@ ${input.slice(result.pos)}
12244
12296
  return result;
12245
12297
  }
12246
12298
  }
12247
- var OpenBracket$0 = $TV($EXPECT($L125, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
12299
+ var OpenBracket$0 = $TV($EXPECT($L126, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
12248
12300
  return { $loc, token: $1 };
12249
12301
  });
12250
12302
  function OpenBracket(state) {
@@ -12269,7 +12321,7 @@ ${input.slice(result.pos)}
12269
12321
  return result;
12270
12322
  }
12271
12323
  }
12272
- var OpenParen$0 = $TV($EXPECT($L126, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
12324
+ var OpenParen$0 = $TV($EXPECT($L127, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
12273
12325
  return { $loc, token: $1 };
12274
12326
  });
12275
12327
  function OpenParen(state) {
@@ -12294,7 +12346,7 @@ ${input.slice(result.pos)}
12294
12346
  return result;
12295
12347
  }
12296
12348
  }
12297
- var Public$0 = $TS($S($EXPECT($L127, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12349
+ var Public$0 = $TS($S($EXPECT($L128, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12298
12350
  return { $loc, token: $1 };
12299
12351
  });
12300
12352
  function Public(state) {
@@ -12319,7 +12371,7 @@ ${input.slice(result.pos)}
12319
12371
  return result;
12320
12372
  }
12321
12373
  }
12322
- var Private$0 = $TS($S($EXPECT($L128, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12374
+ var Private$0 = $TS($S($EXPECT($L129, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12323
12375
  return { $loc, token: $1 };
12324
12376
  });
12325
12377
  function Private(state) {
@@ -12344,7 +12396,7 @@ ${input.slice(result.pos)}
12344
12396
  return result;
12345
12397
  }
12346
12398
  }
12347
- var Protected$0 = $TS($S($EXPECT($L129, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12399
+ var Protected$0 = $TS($S($EXPECT($L130, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12348
12400
  return { $loc, token: $1 };
12349
12401
  });
12350
12402
  function Protected(state) {
@@ -12369,7 +12421,7 @@ ${input.slice(result.pos)}
12369
12421
  return result;
12370
12422
  }
12371
12423
  }
12372
- var Pipe$0 = $TV($EXPECT($L130, fail, 'Pipe "|>"'), function($skip, $loc, $0, $1) {
12424
+ var Pipe$0 = $TV($EXPECT($L131, fail, 'Pipe "|>"'), function($skip, $loc, $0, $1) {
12373
12425
  return { $loc, token: $1 };
12374
12426
  });
12375
12427
  function Pipe(state) {
@@ -12419,7 +12471,7 @@ ${input.slice(result.pos)}
12419
12471
  return result;
12420
12472
  }
12421
12473
  }
12422
- var Readonly$0 = $TS($S($EXPECT($L131, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12474
+ var Readonly$0 = $TS($S($EXPECT($L132, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12423
12475
  return { $loc, token: $1, ts: true };
12424
12476
  });
12425
12477
  function Readonly(state) {
@@ -12444,7 +12496,7 @@ ${input.slice(result.pos)}
12444
12496
  return result;
12445
12497
  }
12446
12498
  }
12447
- var Return$0 = $TS($S($EXPECT($L132, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12499
+ var Return$0 = $TS($S($EXPECT($L133, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12448
12500
  return { $loc, token: $1 };
12449
12501
  });
12450
12502
  function Return(state) {
@@ -12469,7 +12521,7 @@ ${input.slice(result.pos)}
12469
12521
  return result;
12470
12522
  }
12471
12523
  }
12472
- var Satisfies$0 = $TS($S($EXPECT($L133, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12524
+ var Satisfies$0 = $TS($S($EXPECT($L134, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12473
12525
  return { $loc, token: $1 };
12474
12526
  });
12475
12527
  function Satisfies(state) {
@@ -12519,7 +12571,7 @@ ${input.slice(result.pos)}
12519
12571
  return result;
12520
12572
  }
12521
12573
  }
12522
- var SingleQuote$0 = $TV($EXPECT($L134, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
12574
+ var SingleQuote$0 = $TV($EXPECT($L135, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
12523
12575
  return { $loc, token: $1 };
12524
12576
  });
12525
12577
  function SingleQuote(state) {
@@ -12569,10 +12621,10 @@ ${input.slice(result.pos)}
12569
12621
  return result;
12570
12622
  }
12571
12623
  }
12572
- var Static$0 = $TS($S($EXPECT($L135, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12624
+ var Static$0 = $TS($S($EXPECT($L136, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12573
12625
  return { $loc, token: $1 };
12574
12626
  });
12575
- var Static$1 = $TS($S($EXPECT($L94, fail, 'Static "@"'), $N($C($EXPECT($L126, fail, 'Static "("'), $EXPECT($L94, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
12627
+ var Static$1 = $TS($S($EXPECT($L93, fail, 'Static "@"'), $N($C($EXPECT($L127, fail, 'Static "("'), $EXPECT($L93, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
12576
12628
  return { $loc, token: "static " };
12577
12629
  });
12578
12630
  function Static(state) {
@@ -12597,7 +12649,7 @@ ${input.slice(result.pos)}
12597
12649
  return result;
12598
12650
  }
12599
12651
  }
12600
- var SubstitutionStart$0 = $TV($EXPECT($L136, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
12652
+ var SubstitutionStart$0 = $TV($EXPECT($L137, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
12601
12653
  return { $loc, token: $1 };
12602
12654
  });
12603
12655
  function SubstitutionStart(state) {
@@ -12622,7 +12674,7 @@ ${input.slice(result.pos)}
12622
12674
  return result;
12623
12675
  }
12624
12676
  }
12625
- var Switch$0 = $TS($S($EXPECT($L137, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12677
+ var Switch$0 = $TS($S($EXPECT($L138, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12626
12678
  return { $loc, token: $1 };
12627
12679
  });
12628
12680
  function Switch(state) {
@@ -12647,7 +12699,7 @@ ${input.slice(result.pos)}
12647
12699
  return result;
12648
12700
  }
12649
12701
  }
12650
- var Target$0 = $TS($S($EXPECT($L138, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12702
+ var Target$0 = $TS($S($EXPECT($L139, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12651
12703
  return { $loc, token: $1 };
12652
12704
  });
12653
12705
  function Target(state) {
@@ -12672,7 +12724,7 @@ ${input.slice(result.pos)}
12672
12724
  return result;
12673
12725
  }
12674
12726
  }
12675
- var Then$0 = $TS($S(__, $EXPECT($L139, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
12727
+ var Then$0 = $TS($S(__, $EXPECT($L140, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
12676
12728
  return { $loc, token: "" };
12677
12729
  });
12678
12730
  function Then(state) {
@@ -12697,7 +12749,7 @@ ${input.slice(result.pos)}
12697
12749
  return result;
12698
12750
  }
12699
12751
  }
12700
- var This$0 = $TS($S($EXPECT($L140, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12752
+ var This$0 = $TS($S($EXPECT($L141, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12701
12753
  return { $loc, token: $1 };
12702
12754
  });
12703
12755
  function This(state) {
@@ -12722,7 +12774,7 @@ ${input.slice(result.pos)}
12722
12774
  return result;
12723
12775
  }
12724
12776
  }
12725
- var Throw$0 = $TS($S($EXPECT($L141, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12777
+ var Throw$0 = $TS($S($EXPECT($L142, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12726
12778
  return { $loc, token: $1 };
12727
12779
  });
12728
12780
  function Throw(state) {
@@ -12747,7 +12799,7 @@ ${input.slice(result.pos)}
12747
12799
  return result;
12748
12800
  }
12749
12801
  }
12750
- var TripleDoubleQuote$0 = $TV($EXPECT($L142, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
12802
+ var TripleDoubleQuote$0 = $TV($EXPECT($L143, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
12751
12803
  return { $loc, token: "`" };
12752
12804
  });
12753
12805
  function TripleDoubleQuote(state) {
@@ -12772,7 +12824,7 @@ ${input.slice(result.pos)}
12772
12824
  return result;
12773
12825
  }
12774
12826
  }
12775
- var TripleSingleQuote$0 = $TV($EXPECT($L143, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
12827
+ var TripleSingleQuote$0 = $TV($EXPECT($L144, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
12776
12828
  return { $loc, token: "`" };
12777
12829
  });
12778
12830
  function TripleSingleQuote(state) {
@@ -12797,7 +12849,7 @@ ${input.slice(result.pos)}
12797
12849
  return result;
12798
12850
  }
12799
12851
  }
12800
- var TripleSlash$0 = $TV($EXPECT($L144, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
12852
+ var TripleSlash$0 = $TV($EXPECT($L145, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
12801
12853
  return { $loc, token: "/" };
12802
12854
  });
12803
12855
  function TripleSlash(state) {
@@ -12822,7 +12874,7 @@ ${input.slice(result.pos)}
12822
12874
  return result;
12823
12875
  }
12824
12876
  }
12825
- var TripleTick$0 = $TV($EXPECT($L145, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
12877
+ var TripleTick$0 = $TV($EXPECT($L146, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
12826
12878
  return { $loc, token: "`" };
12827
12879
  });
12828
12880
  function TripleTick(state) {
@@ -12847,7 +12899,7 @@ ${input.slice(result.pos)}
12847
12899
  return result;
12848
12900
  }
12849
12901
  }
12850
- var Try$0 = $TS($S($EXPECT($L146, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12902
+ var Try$0 = $TS($S($EXPECT($L147, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12851
12903
  return { $loc, token: $1 };
12852
12904
  });
12853
12905
  function Try(state) {
@@ -12872,7 +12924,7 @@ ${input.slice(result.pos)}
12872
12924
  return result;
12873
12925
  }
12874
12926
  }
12875
- var Typeof$0 = $TS($S($EXPECT($L147, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12927
+ var Typeof$0 = $TS($S($EXPECT($L148, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12876
12928
  return { $loc, token: $1 };
12877
12929
  });
12878
12930
  function Typeof(state) {
@@ -12897,7 +12949,7 @@ ${input.slice(result.pos)}
12897
12949
  return result;
12898
12950
  }
12899
12951
  }
12900
- var Unless$0 = $TS($S($EXPECT($L148, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12952
+ var Unless$0 = $TS($S($EXPECT($L149, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12901
12953
  return { $loc, token: $1 };
12902
12954
  });
12903
12955
  function Unless(state) {
@@ -12922,7 +12974,7 @@ ${input.slice(result.pos)}
12922
12974
  return result;
12923
12975
  }
12924
12976
  }
12925
- var Until$0 = $TS($S($EXPECT($L149, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12977
+ var Until$0 = $TS($S($EXPECT($L150, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12926
12978
  return { $loc, token: $1 };
12927
12979
  });
12928
12980
  function Until(state) {
@@ -12947,7 +12999,7 @@ ${input.slice(result.pos)}
12947
12999
  return result;
12948
13000
  }
12949
13001
  }
12950
- var Var$0 = $TS($S($EXPECT($L150, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13002
+ var Var$0 = $TS($S($EXPECT($L151, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12951
13003
  return { $loc, token: $1 };
12952
13004
  });
12953
13005
  function Var(state) {
@@ -12972,7 +13024,7 @@ ${input.slice(result.pos)}
12972
13024
  return result;
12973
13025
  }
12974
13026
  }
12975
- var Void$0 = $TS($S($EXPECT($L151, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13027
+ var Void$0 = $TS($S($EXPECT($L152, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12976
13028
  return { $loc, token: $1 };
12977
13029
  });
12978
13030
  function Void(state) {
@@ -12997,7 +13049,7 @@ ${input.slice(result.pos)}
12997
13049
  return result;
12998
13050
  }
12999
13051
  }
13000
- var When$0 = $TS($S($EXPECT($L152, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13052
+ var When$0 = $TS($S($EXPECT($L153, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13001
13053
  return { $loc, token: "case" };
13002
13054
  });
13003
13055
  function When(state) {
@@ -13022,7 +13074,7 @@ ${input.slice(result.pos)}
13022
13074
  return result;
13023
13075
  }
13024
13076
  }
13025
- var While$0 = $TS($S($EXPECT($L153, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13077
+ var While$0 = $TS($S($EXPECT($L154, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13026
13078
  return { $loc, token: $1 };
13027
13079
  });
13028
13080
  function While(state) {
@@ -13047,7 +13099,7 @@ ${input.slice(result.pos)}
13047
13099
  return result;
13048
13100
  }
13049
13101
  }
13050
- var Yield$0 = $TS($S($EXPECT($L154, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13102
+ var Yield$0 = $TS($S($EXPECT($L155, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13051
13103
  return { $loc, token: $1 };
13052
13104
  });
13053
13105
  function Yield(state) {
@@ -13193,7 +13245,7 @@ ${input.slice(result.pos)}
13193
13245
  return result;
13194
13246
  }
13195
13247
  }
13196
- var JSXSelfClosingElement$0 = $TS($S($EXPECT($L123, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L155, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
13248
+ var JSXSelfClosingElement$0 = $TS($S($EXPECT($L124, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L156, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
13197
13249
  return { type: "JSXElement", children: $0, tag: $2 };
13198
13250
  });
13199
13251
  function JSXSelfClosingElement(state) {
@@ -13244,7 +13296,7 @@ ${input.slice(result.pos)}
13244
13296
  return result;
13245
13297
  }
13246
13298
  }
13247
- var JSXOpeningElement$0 = $S($EXPECT($L123, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L27, fail, 'JSXOpeningElement ">"'));
13299
+ var JSXOpeningElement$0 = $S($EXPECT($L124, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L27, fail, 'JSXOpeningElement ">"'));
13248
13300
  function JSXOpeningElement(state) {
13249
13301
  let eventData;
13250
13302
  if (state.events) {
@@ -13296,7 +13348,7 @@ ${input.slice(result.pos)}
13296
13348
  return result;
13297
13349
  }
13298
13350
  }
13299
- var JSXClosingElement$0 = $S($EXPECT($L156, fail, 'JSXClosingElement "</"'), $E(Whitespace), $TEXT(JSXElementName), $E(Whitespace), $EXPECT($L27, fail, 'JSXClosingElement ">"'));
13351
+ var JSXClosingElement$0 = $S($EXPECT($L157, fail, 'JSXClosingElement "</"'), $E(Whitespace), $TEXT(JSXElementName), $E(Whitespace), $EXPECT($L27, fail, 'JSXClosingElement ">"'));
13300
13352
  function JSXClosingElement(state) {
13301
13353
  let eventData;
13302
13354
  if (state.events) {
@@ -13335,7 +13387,7 @@ ${input.slice(result.pos)}
13335
13387
  ];
13336
13388
  return { type: "JSXFragment", children: parts, jsxChildren: children.jsxChildren };
13337
13389
  });
13338
- var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L157, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
13390
+ var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L158, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
13339
13391
  var children = $3;
13340
13392
  $0 = $0.slice(1);
13341
13393
  return {
@@ -13366,7 +13418,7 @@ ${input.slice(result.pos)}
13366
13418
  return result;
13367
13419
  }
13368
13420
  }
13369
- var PushJSXOpeningFragment$0 = $TV($EXPECT($L157, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
13421
+ var PushJSXOpeningFragment$0 = $TV($EXPECT($L158, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
13370
13422
  module.JSXTagStack.push("");
13371
13423
  return $1;
13372
13424
  });
@@ -13420,7 +13472,7 @@ ${input.slice(result.pos)}
13420
13472
  return result;
13421
13473
  }
13422
13474
  }
13423
- var JSXClosingFragment$0 = $EXPECT($L158, fail, 'JSXClosingFragment "</>"');
13475
+ var JSXClosingFragment$0 = $EXPECT($L159, fail, 'JSXClosingFragment "</>"');
13424
13476
  function JSXClosingFragment(state) {
13425
13477
  let eventData;
13426
13478
  if (state.events) {
@@ -14297,7 +14349,7 @@ ${input.slice(result.pos)}
14297
14349
  return result;
14298
14350
  }
14299
14351
  }
14300
- var JSXComment$0 = $TS($S($EXPECT($L159, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L160, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
14352
+ var JSXComment$0 = $TS($S($EXPECT($L160, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L161, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
14301
14353
  return ["{/*", $2, "*/}"];
14302
14354
  });
14303
14355
  function JSXComment(state) {
@@ -14449,7 +14501,10 @@ ${input.slice(result.pos)}
14449
14501
  return result;
14450
14502
  }
14451
14503
  }
14452
- var TypeDeclaration$0 = $T($S($Q($S(TypeDeclarationModifier, $Q(TrailingComment))), TypeDeclarationRest), function(value) {
14504
+ var TypeDeclaration$0 = $T($S($E($S(Export, $E(_))), $S(Declare, $E(_)), TypeLexicalDeclaration), function(value) {
14505
+ return { "ts": true, "children": value };
14506
+ });
14507
+ var TypeDeclaration$1 = $T($S($E($S(Export, $E(_))), $E($S(Declare, $E(_))), TypeDeclarationRest), function(value) {
14453
14508
  return { "ts": true, "children": value };
14454
14509
  });
14455
14510
  function TypeDeclaration(state) {
@@ -14463,23 +14518,48 @@ ${input.slice(result.pos)}
14463
14518
  }
14464
14519
  }
14465
14520
  if (state.tokenize) {
14466
- const result = $TOKEN("TypeDeclaration", state, TypeDeclaration$0(state));
14521
+ const result = $TOKEN("TypeDeclaration", state, TypeDeclaration$0(state) || TypeDeclaration$1(state));
14467
14522
  if (state.events)
14468
14523
  state.events.exit?.("TypeDeclaration", state, result, eventData);
14469
14524
  return result;
14470
14525
  } else {
14471
- const result = TypeDeclaration$0(state);
14526
+ const result = TypeDeclaration$0(state) || TypeDeclaration$1(state);
14472
14527
  if (state.events)
14473
14528
  state.events.exit?.("TypeDeclaration", state, result, eventData);
14474
14529
  return result;
14475
14530
  }
14476
14531
  }
14477
- var TypeDeclarationModifier$0 = $S($EXPECT($L161, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
14478
- var TypeDeclarationModifier$1 = Export;
14479
- function TypeDeclarationModifier(state) {
14532
+ var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, $C($S($E(_), Type), $S(__, Type)));
14533
+ var TypeDeclarationRest$1 = $S(Interface, $Q(TrailingComment), IdentifierName, $E(TypeParameters), $E(InterfaceExtendsClause), InterfaceBlock);
14534
+ var TypeDeclarationRest$2 = $S(Namespace, $Q(TrailingComment), IdentifierName, NamespaceBlock);
14535
+ var TypeDeclarationRest$3 = FunctionSignature;
14536
+ function TypeDeclarationRest(state) {
14537
+ let eventData;
14538
+ if (state.events) {
14539
+ const result = state.events.enter?.("TypeDeclarationRest", state);
14540
+ if (result) {
14541
+ if (result.cache)
14542
+ return result.cache;
14543
+ eventData = result.data;
14544
+ }
14545
+ }
14546
+ if (state.tokenize) {
14547
+ const result = $TOKEN("TypeDeclarationRest", state, TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state));
14548
+ if (state.events)
14549
+ state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14550
+ return result;
14551
+ } else {
14552
+ const result = TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state);
14553
+ if (state.events)
14554
+ state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14555
+ return result;
14556
+ }
14557
+ }
14558
+ var TypeLexicalDeclaration$0 = $S(__, $N(Namespace), LetOrConst, TypeDeclarationBinding, $Q($S(CommaDelimiter, __, TypeDeclarationBinding)));
14559
+ function TypeLexicalDeclaration(state) {
14480
14560
  let eventData;
14481
14561
  if (state.events) {
14482
- const result = state.events.enter?.("TypeDeclarationModifier", state);
14562
+ const result = state.events.enter?.("TypeLexicalDeclaration", state);
14483
14563
  if (result) {
14484
14564
  if (result.cache)
14485
14565
  return result.cache;
@@ -14487,25 +14567,22 @@ ${input.slice(result.pos)}
14487
14567
  }
14488
14568
  }
14489
14569
  if (state.tokenize) {
14490
- const result = $TOKEN("TypeDeclarationModifier", state, TypeDeclarationModifier$0(state) || TypeDeclarationModifier$1(state));
14570
+ const result = $TOKEN("TypeLexicalDeclaration", state, TypeLexicalDeclaration$0(state));
14491
14571
  if (state.events)
14492
- state.events.exit?.("TypeDeclarationModifier", state, result, eventData);
14572
+ state.events.exit?.("TypeLexicalDeclaration", state, result, eventData);
14493
14573
  return result;
14494
14574
  } else {
14495
- const result = TypeDeclarationModifier$0(state) || TypeDeclarationModifier$1(state);
14575
+ const result = TypeLexicalDeclaration$0(state);
14496
14576
  if (state.events)
14497
- state.events.exit?.("TypeDeclarationModifier", state, result, eventData);
14577
+ state.events.exit?.("TypeLexicalDeclaration", state, result, eventData);
14498
14578
  return result;
14499
14579
  }
14500
14580
  }
14501
- var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, __, Type);
14502
- var TypeDeclarationRest$1 = $S(Interface, $Q(TrailingComment), IdentifierName, $E(TypeParameters), $E(InterfaceExtendsClause), InterfaceBlock);
14503
- var TypeDeclarationRest$2 = $S(Namespace, $Q(TrailingComment), IdentifierName, NamespaceBlock);
14504
- var TypeDeclarationRest$3 = FunctionSignature;
14505
- function TypeDeclarationRest(state) {
14581
+ var TypeDeclarationBinding$0 = $S($C(BindingPattern, BindingIdentifier), $E(TypeSuffix));
14582
+ function TypeDeclarationBinding(state) {
14506
14583
  let eventData;
14507
14584
  if (state.events) {
14508
- const result = state.events.enter?.("TypeDeclarationRest", state);
14585
+ const result = state.events.enter?.("TypeDeclarationBinding", state);
14509
14586
  if (result) {
14510
14587
  if (result.cache)
14511
14588
  return result.cache;
@@ -14513,14 +14590,14 @@ ${input.slice(result.pos)}
14513
14590
  }
14514
14591
  }
14515
14592
  if (state.tokenize) {
14516
- const result = $TOKEN("TypeDeclarationRest", state, TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state));
14593
+ const result = $TOKEN("TypeDeclarationBinding", state, TypeDeclarationBinding$0(state));
14517
14594
  if (state.events)
14518
- state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14595
+ state.events.exit?.("TypeDeclarationBinding", state, result, eventData);
14519
14596
  return result;
14520
14597
  } else {
14521
- const result = TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state);
14598
+ const result = TypeDeclarationBinding$0(state);
14522
14599
  if (state.events)
14523
- state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14600
+ state.events.exit?.("TypeDeclarationBinding", state, result, eventData);
14524
14601
  return result;
14525
14602
  }
14526
14603
  }
@@ -14715,7 +14792,7 @@ ${input.slice(result.pos)}
14715
14792
  return result;
14716
14793
  }
14717
14794
  }
14718
- var InterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), TypeSuffix, InterfacePropertyDelimiter);
14795
+ var InterfaceProperty$0 = BasicInterfaceProperty;
14719
14796
  var InterfaceProperty$1 = $S(NonEmptyParameters, TypeSuffix, InterfacePropertyDelimiter);
14720
14797
  var InterfaceProperty$2 = $S(MethodSignature, InterfacePropertyDelimiter);
14721
14798
  function InterfaceProperty(state) {
@@ -14740,6 +14817,29 @@ ${input.slice(result.pos)}
14740
14817
  return result;
14741
14818
  }
14742
14819
  }
14820
+ var BasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), TypeSuffix, InterfacePropertyDelimiter);
14821
+ function BasicInterfaceProperty(state) {
14822
+ let eventData;
14823
+ if (state.events) {
14824
+ const result = state.events.enter?.("BasicInterfaceProperty", state);
14825
+ if (result) {
14826
+ if (result.cache)
14827
+ return result.cache;
14828
+ eventData = result.data;
14829
+ }
14830
+ }
14831
+ if (state.tokenize) {
14832
+ const result = $TOKEN("BasicInterfaceProperty", state, BasicInterfaceProperty$0(state));
14833
+ if (state.events)
14834
+ state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
14835
+ return result;
14836
+ } else {
14837
+ const result = BasicInterfaceProperty$0(state);
14838
+ if (state.events)
14839
+ state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
14840
+ return result;
14841
+ }
14842
+ }
14743
14843
  var InterfacePropertyDelimiter$0 = $S($Q(_), $C(Semicolon, Comma));
14744
14844
  var InterfacePropertyDelimiter$1 = $Y($S(__, CloseBrace));
14745
14845
  var InterfacePropertyDelimiter$2 = $Y(EOS);
@@ -14841,7 +14941,7 @@ ${input.slice(result.pos)}
14841
14941
  return result;
14842
14942
  }
14843
14943
  }
14844
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R50, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L131, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R51, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
14944
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R50, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L132, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R51, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
14845
14945
  function TypeIndexSignature(state) {
14846
14946
  let eventData;
14847
14947
  if (state.events) {
@@ -15073,9 +15173,9 @@ ${input.slice(result.pos)}
15073
15173
  }
15074
15174
  }
15075
15175
  var TypeUnaryOp$0 = $S($EXPECT($L166, fail, 'TypeUnaryOp "keyof"'), NonIdContinue);
15076
- var TypeUnaryOp$1 = $S($EXPECT($L147, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
15176
+ var TypeUnaryOp$1 = $S($EXPECT($L148, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
15077
15177
  var TypeUnaryOp$2 = $S($EXPECT($L167, fail, 'TypeUnaryOp "infer"'), NonIdContinue);
15078
- var TypeUnaryOp$3 = $S($EXPECT($L131, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
15178
+ var TypeUnaryOp$3 = $S($EXPECT($L132, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
15079
15179
  function TypeUnaryOp(state) {
15080
15180
  let eventData;
15081
15181
  if (state.events) {
@@ -15122,12 +15222,13 @@ ${input.slice(result.pos)}
15122
15222
  }
15123
15223
  }
15124
15224
  var TypePrimary$0 = InterfaceBlock;
15125
- var TypePrimary$1 = $S(__, OpenParen, Type, __, CloseParen);
15126
- var TypePrimary$2 = $S($E(_), TypeTuple);
15127
- var TypePrimary$3 = $S($E(_), ImportType);
15128
- var TypePrimary$4 = $S($E(_), FunctionType);
15225
+ var TypePrimary$1 = $S($E(_), FunctionType);
15226
+ var TypePrimary$2 = $S($E(_), InlineInterfaceLiteral);
15227
+ var TypePrimary$3 = $S($E(_), TypeTuple);
15228
+ var TypePrimary$4 = $S($E(_), ImportType);
15129
15229
  var TypePrimary$5 = $S($E(_), TypeLiteral);
15130
15230
  var TypePrimary$6 = $S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments));
15231
+ var TypePrimary$7 = $S(__, OpenParen, Type, __, CloseParen);
15131
15232
  function TypePrimary(state) {
15132
15233
  let eventData;
15133
15234
  if (state.events) {
@@ -15139,12 +15240,12 @@ ${input.slice(result.pos)}
15139
15240
  }
15140
15241
  }
15141
15242
  if (state.tokenize) {
15142
- const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state));
15243
+ const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state));
15143
15244
  if (state.events)
15144
15245
  state.events.exit?.("TypePrimary", state, result, eventData);
15145
15246
  return result;
15146
15247
  } else {
15147
- const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state);
15248
+ const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state);
15148
15249
  if (state.events)
15149
15250
  state.events.exit?.("TypePrimary", state, result, eventData);
15150
15251
  return result;
@@ -15272,7 +15373,7 @@ ${input.slice(result.pos)}
15272
15373
  return result;
15273
15374
  }
15274
15375
  }
15275
- var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L112, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
15376
+ var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L113, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
15276
15377
  if ($2)
15277
15378
  return $0;
15278
15379
  return $1;
@@ -15301,7 +15402,7 @@ ${input.slice(result.pos)}
15301
15402
  }
15302
15403
  var TypeLiteral$0 = Literal;
15303
15404
  var TypeLiteral$1 = TemplateLiteral;
15304
- var TypeLiteral$2 = $TS($S($EXPECT($L151, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15405
+ var TypeLiteral$2 = $TS($S($EXPECT($L152, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15305
15406
  return { $loc, token: "void" };
15306
15407
  });
15307
15408
  var TypeLiteral$3 = $TV($EXPECT($L168, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
@@ -15329,6 +15430,80 @@ ${input.slice(result.pos)}
15329
15430
  return result;
15330
15431
  }
15331
15432
  }
15433
+ var InlineInterfaceLiteral$0 = $S(InsertInlineOpenBrace, InlineBasicInterfaceProperty, $Q($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertCloseBrace);
15434
+ function InlineInterfaceLiteral(state) {
15435
+ let eventData;
15436
+ if (state.events) {
15437
+ const result = state.events.enter?.("InlineInterfaceLiteral", state);
15438
+ if (result) {
15439
+ if (result.cache)
15440
+ return result.cache;
15441
+ eventData = result.data;
15442
+ }
15443
+ }
15444
+ if (state.tokenize) {
15445
+ const result = $TOKEN("InlineInterfaceLiteral", state, InlineInterfaceLiteral$0(state));
15446
+ if (state.events)
15447
+ state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
15448
+ return result;
15449
+ } else {
15450
+ const result = InlineInterfaceLiteral$0(state);
15451
+ if (state.events)
15452
+ state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
15453
+ return result;
15454
+ }
15455
+ }
15456
+ var InlineBasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), $E(QuestionMark), Colon, Type, InlineInterfacePropertyDelimiter);
15457
+ function InlineBasicInterfaceProperty(state) {
15458
+ let eventData;
15459
+ if (state.events) {
15460
+ const result = state.events.enter?.("InlineBasicInterfaceProperty", state);
15461
+ if (result) {
15462
+ if (result.cache)
15463
+ return result.cache;
15464
+ eventData = result.data;
15465
+ }
15466
+ }
15467
+ if (state.tokenize) {
15468
+ const result = $TOKEN("InlineBasicInterfaceProperty", state, InlineBasicInterfaceProperty$0(state));
15469
+ if (state.events)
15470
+ state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
15471
+ return result;
15472
+ } else {
15473
+ const result = InlineBasicInterfaceProperty$0(state);
15474
+ if (state.events)
15475
+ state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
15476
+ return result;
15477
+ }
15478
+ }
15479
+ var InlineInterfacePropertyDelimiter$0 = $C($S($E(_), Semicolon), CommaDelimiter);
15480
+ var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
15481
+ return value[1];
15482
+ });
15483
+ var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L29, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L15, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L28, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L17, fail, 'InlineInterfacePropertyDelimiter "}"'))));
15484
+ var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
15485
+ function InlineInterfacePropertyDelimiter(state) {
15486
+ let eventData;
15487
+ if (state.events) {
15488
+ const result = state.events.enter?.("InlineInterfacePropertyDelimiter", state);
15489
+ if (result) {
15490
+ if (result.cache)
15491
+ return result.cache;
15492
+ eventData = result.data;
15493
+ }
15494
+ }
15495
+ if (state.tokenize) {
15496
+ const result = $TOKEN("InlineInterfacePropertyDelimiter", state, InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state));
15497
+ if (state.events)
15498
+ state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
15499
+ return result;
15500
+ } else {
15501
+ const result = InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state);
15502
+ if (state.events)
15503
+ state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
15504
+ return result;
15505
+ }
15506
+ }
15332
15507
  var TypeBinaryOp$0 = $TV($EXPECT($L78, fail, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
15333
15508
  return { $loc, token: "|" };
15334
15509
  });
@@ -15386,7 +15561,7 @@ ${input.slice(result.pos)}
15386
15561
  return result;
15387
15562
  }
15388
15563
  }
15389
- var TypeArguments$0 = $TS($S($EXPECT($L123, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
15564
+ var TypeArguments$0 = $TS($S($EXPECT($L124, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
15390
15565
  return { ts: true, children: $0 };
15391
15566
  });
15392
15567
  function TypeArguments(state) {
@@ -15457,7 +15632,7 @@ ${input.slice(result.pos)}
15457
15632
  return result;
15458
15633
  }
15459
15634
  }
15460
- var TypeParameters$0 = $TS($S(__, $EXPECT($L123, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L27, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
15635
+ var TypeParameters$0 = $TS($S(__, $EXPECT($L124, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L27, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
15461
15636
  var parameters = $3;
15462
15637
  return {
15463
15638
  type: "TypeParameters",
@@ -15511,7 +15686,7 @@ ${input.slice(result.pos)}
15511
15686
  return result;
15512
15687
  }
15513
15688
  }
15514
- var TypeConstraint$0 = $S(__, $EXPECT($L112, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
15689
+ var TypeConstraint$0 = $S(__, $EXPECT($L113, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
15515
15690
  function TypeConstraint(state) {
15516
15691
  let eventData;
15517
15692
  if (state.events) {
@@ -17139,11 +17314,21 @@ ${input.slice(result.pos)}
17139
17314
  } else {
17140
17315
  children = [wsOp, op2.call, "(", a, ",", wsB, b, ")", op2.suffix];
17141
17316
  }
17142
- } else if (op2.token === "instanceof" || op2.token === "in") {
17143
- children = ["!(", a, wsOp, op2, wsB, b, ")"];
17317
+ } else if (op2.method) {
17318
+ wsOp = module.insertTrimmingSpace(wsOp, "");
17319
+ wsB = module.insertTrimmingSpace(wsB, "");
17320
+ if (op2.reversed) {
17321
+ children = [wsB, b, wsOp, ".", op2.method, "(", a, ")"];
17322
+ } else {
17323
+ children = [a, wsOp, ".", op2.method, "(", wsB, b, ")"];
17324
+ }
17325
+ } else if (op2.token) {
17326
+ children = ["(", a, wsOp, op2, wsB, b, ")"];
17144
17327
  } else {
17145
17328
  throw new Error("Unknown operator: " + JSON.stringify(op2));
17146
17329
  }
17330
+ if (op2.negated)
17331
+ children.unshift("!");
17147
17332
  expandedOps.splice(i - 2, 5, {
17148
17333
  children
17149
17334
  });