@danielx/civet 0.5.59 → 0.5.60

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
@@ -609,7 +609,9 @@ ${input.slice(result.pos)}
609
609
  MethodSignature,
610
610
  ClassElementName,
611
611
  PrivateIdentifier,
612
+ WAssignmentOp,
612
613
  AssignmentOp,
614
+ OperatorAssignmentOp,
613
615
  AssignmentOpSymbol,
614
616
  CoffeeWordAssignmentOp,
615
617
  BinaryOp,
@@ -991,34 +993,34 @@ ${input.slice(result.pos)}
991
993
  Nested
992
994
  });
993
995
  var $L0 = $L("/ ");
994
- var $L1 = $L("(");
995
- var $L2 = $L("?");
996
- var $L3 = $L(".");
997
- var $L4 = $L("++");
998
- var $L5 = $L("--");
999
- var $L6 = $L("=>");
1000
- var $L7 = $L(" ");
1001
- var $L8 = $L("implements");
1002
- var $L9 = $L("<:");
1003
- var $L10 = $L("#");
1004
- var $L11 = $L("super");
1005
- var $L12 = $L("import");
1006
- var $L13 = $L("!");
1007
- var $L14 = $L("-");
1008
- var $L15 = $L("super[");
1009
- var $L16 = $L("import.meta");
1010
- var $L17 = $L("");
1011
- var $L18 = $L(")");
1012
- var $L19 = $L("->");
1013
- var $L20 = $L("}");
1014
- var $L21 = $L("null");
1015
- var $L22 = $L("true");
1016
- var $L23 = $L("false");
1017
- var $L24 = $L("yes");
1018
- var $L25 = $L("on");
1019
- var $L26 = $L("no");
1020
- var $L27 = $L("off");
1021
- var $L28 = $L("=");
996
+ var $L1 = $L("=");
997
+ var $L2 = $L("(");
998
+ var $L3 = $L("?");
999
+ var $L4 = $L(".");
1000
+ var $L5 = $L("++");
1001
+ var $L6 = $L("--");
1002
+ var $L7 = $L("=>");
1003
+ var $L8 = $L(" ");
1004
+ var $L9 = $L("implements");
1005
+ var $L10 = $L("<:");
1006
+ var $L11 = $L("#");
1007
+ var $L12 = $L("super");
1008
+ var $L13 = $L("import");
1009
+ var $L14 = $L("!");
1010
+ var $L15 = $L("-");
1011
+ var $L16 = $L("super[");
1012
+ var $L17 = $L("import.meta");
1013
+ var $L18 = $L("");
1014
+ var $L19 = $L(")");
1015
+ var $L20 = $L("->");
1016
+ var $L21 = $L("}");
1017
+ var $L22 = $L("null");
1018
+ var $L23 = $L("true");
1019
+ var $L24 = $L("false");
1020
+ var $L25 = $L("yes");
1021
+ var $L26 = $L("on");
1022
+ var $L27 = $L("no");
1023
+ var $L28 = $L("off");
1022
1024
  var $L29 = $L(">");
1023
1025
  var $L30 = $L("]");
1024
1026
  var $L31 = $L(":");
@@ -1547,7 +1549,8 @@ ${input.slice(result.pos)}
1547
1549
  var ForbiddenImplicitCalls$0 = $R$0($EXPECT($R0, fail, "ForbiddenImplicitCalls /(as|for|of|satisfies|then|when|implements)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
1548
1550
  var ForbiddenImplicitCalls$1 = $EXPECT($L0, fail, 'ForbiddenImplicitCalls "/ "');
1549
1551
  var ForbiddenImplicitCalls$2 = AtAt;
1550
- var ForbiddenImplicitCalls$3 = $TS($S(Identifier, $N($EXPECT($L1, fail, 'ForbiddenImplicitCalls "("'))), function($skip, $loc, $0, $1, $2) {
1552
+ var ForbiddenImplicitCalls$3 = $S(Identifier, $EXPECT($L1, fail, 'ForbiddenImplicitCalls "="'), Whitespace);
1553
+ var ForbiddenImplicitCalls$4 = $TS($S(Identifier, $N($EXPECT($L2, fail, 'ForbiddenImplicitCalls "("'))), function($skip, $loc, $0, $1, $2) {
1551
1554
  if (module.operators.has($1.name))
1552
1555
  return $1;
1553
1556
  return $skip;
@@ -1563,12 +1566,12 @@ ${input.slice(result.pos)}
1563
1566
  }
1564
1567
  }
1565
1568
  if (state.tokenize) {
1566
- const result = $TOKEN("ForbiddenImplicitCalls", state, ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state));
1569
+ const result = $TOKEN("ForbiddenImplicitCalls", state, ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state));
1567
1570
  if (state.events)
1568
1571
  state.events.exit?.("ForbiddenImplicitCalls", state, result, eventData);
1569
1572
  return result;
1570
1573
  } else {
1571
- const result = ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state);
1574
+ const result = ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state);
1572
1575
  if (state.events)
1573
1576
  state.events.exit?.("ForbiddenImplicitCalls", state, result, eventData);
1574
1577
  return result;
@@ -1605,7 +1608,7 @@ ${input.slice(result.pos)}
1605
1608
  return result;
1606
1609
  }
1607
1610
  }
1608
- var TrailingMemberExpressions$0 = $TS($S($Q(MemberExpressionRest), $Q($S($C(Samedent, IndentedFurther), $Y($S($E($EXPECT($L2, fail, 'TrailingMemberExpressions "?"')), $EXPECT($L3, fail, 'TrailingMemberExpressions "."'), $N($EXPECT($R1, fail, "TrailingMemberExpressions /[0-9]/")))), MemberExpressionRest))), function($skip, $loc, $0, $1, $2) {
1611
+ var TrailingMemberExpressions$0 = $TS($S($Q(MemberExpressionRest), $Q($S($C(Samedent, IndentedFurther), $Y($S($E($EXPECT($L3, fail, 'TrailingMemberExpressions "?"')), $EXPECT($L4, fail, 'TrailingMemberExpressions "."'), $N($EXPECT($R1, fail, "TrailingMemberExpressions /[0-9]/")))), MemberExpressionRest))), function($skip, $loc, $0, $1, $2) {
1609
1612
  return $1.concat($2);
1610
1613
  });
1611
1614
  function TrailingMemberExpressions(state) {
@@ -1999,7 +2002,7 @@ ${input.slice(result.pos)}
1999
2002
  return result;
2000
2003
  }
2001
2004
  }
2002
- var UpdateExpressionSymbol$0 = $TV($C($EXPECT($L4, fail, 'UpdateExpressionSymbol "++"'), $EXPECT($L5, fail, 'UpdateExpressionSymbol "--"')), function($skip, $loc, $0, $1) {
2005
+ var UpdateExpressionSymbol$0 = $TV($C($EXPECT($L5, fail, 'UpdateExpressionSymbol "++"'), $EXPECT($L6, fail, 'UpdateExpressionSymbol "--"')), function($skip, $loc, $0, $1) {
2003
2006
  return { $loc, token: $1 };
2004
2007
  });
2005
2008
  function UpdateExpressionSymbol(state) {
@@ -2135,7 +2138,9 @@ ${input.slice(result.pos)}
2135
2138
  return result;
2136
2139
  }
2137
2140
  }
2138
- var ActualAssignment$0 = $TS($S($P($S(__, LeftHandSideExpression, __, AssignmentOp)), ExtendedExpression), function($skip, $loc, $0, $1, $2) {
2141
+ var ActualAssignment$0 = $TS($S($P($S(__, LeftHandSideExpression, WAssignmentOp)), ExtendedExpression), function($skip, $loc, $0, $1, $2) {
2142
+ $1 = $1.map((x) => [x[0], x[1], ...x[2]]);
2143
+ $0 = [$1, $2];
2139
2144
  return {
2140
2145
  type: "AssignmentExpression",
2141
2146
  children: $0,
@@ -2278,7 +2283,7 @@ ${input.slice(result.pos)}
2278
2283
  return result;
2279
2284
  }
2280
2285
  }
2281
- var FatArrow$0 = $TS($S(__, $EXPECT($L6, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
2286
+ var FatArrow$0 = $TS($S(__, $EXPECT($L7, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
2282
2287
  var ws = $1;
2283
2288
  if (!ws.length)
2284
2289
  return " =>";
@@ -2361,7 +2366,7 @@ ${input.slice(result.pos)}
2361
2366
  }
2362
2367
  }
2363
2368
  var TernaryRest$0 = NestedTernaryRest;
2364
- var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($L7, fail, 'TernaryRest " "')), $Q(TrailingComment), QuestionMark, ExtendedExpression, __, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
2369
+ var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($L8, fail, 'TernaryRest " "')), $Q(TrailingComment), QuestionMark, ExtendedExpression, __, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
2365
2370
  return $0.slice(2);
2366
2371
  });
2367
2372
  function TernaryRest(state) {
@@ -2721,7 +2726,7 @@ ${input.slice(result.pos)}
2721
2726
  return result;
2722
2727
  }
2723
2728
  }
2724
- var ExtendsToken$0 = $TS($S(Loc, __, OpenAngleBracket, $E($EXPECT($L7, fail, 'ExtendsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
2729
+ var ExtendsToken$0 = $TS($S(Loc, __, OpenAngleBracket, $E($EXPECT($L8, fail, 'ExtendsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
2725
2730
  var l = $1;
2726
2731
  var ws = $2;
2727
2732
  var lt = $3;
@@ -2815,7 +2820,7 @@ ${input.slice(result.pos)}
2815
2820
  return result;
2816
2821
  }
2817
2822
  }
2818
- var ImplementsToken$0 = $TS($S(Loc, __, ImplementsShorthand, $E($EXPECT($L7, fail, 'ImplementsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
2823
+ var ImplementsToken$0 = $TS($S(Loc, __, ImplementsShorthand, $E($EXPECT($L8, fail, 'ImplementsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
2819
2824
  var l = $1;
2820
2825
  var ws = $2;
2821
2826
  var token = $3;
@@ -2825,7 +2830,7 @@ ${input.slice(result.pos)}
2825
2830
  }
2826
2831
  return { children };
2827
2832
  });
2828
- var ImplementsToken$1 = $TS($S(__, $EXPECT($L8, fail, 'ImplementsToken "implements"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
2833
+ var ImplementsToken$1 = $TS($S(__, $EXPECT($L9, fail, 'ImplementsToken "implements"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
2829
2834
  $2 = { $loc, token: $2 };
2830
2835
  return [$1, $2];
2831
2836
  });
@@ -2851,7 +2856,7 @@ ${input.slice(result.pos)}
2851
2856
  return result;
2852
2857
  }
2853
2858
  }
2854
- var ImplementsShorthand$0 = $TV($EXPECT($L9, fail, 'ImplementsShorthand "<:"'), function($skip, $loc, $0, $1) {
2859
+ var ImplementsShorthand$0 = $TV($EXPECT($L10, fail, 'ImplementsShorthand "<:"'), function($skip, $loc, $0, $1) {
2855
2860
  return { $loc, token: "implements " };
2856
2861
  });
2857
2862
  function ImplementsShorthand(state) {
@@ -3102,7 +3107,7 @@ ${input.slice(result.pos)}
3102
3107
  }
3103
3108
  }
3104
3109
  var ThisLiteral$0 = This;
3105
- var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($L10, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
3110
+ var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($L11, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
3106
3111
  var at = $1;
3107
3112
  var id = $2;
3108
3113
  return [at, ".", id];
@@ -3156,7 +3161,7 @@ ${input.slice(result.pos)}
3156
3161
  return result;
3157
3162
  }
3158
3163
  }
3159
- var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($L3, fail, 'LeftHandSideExpression "."')), __)), CallExpression), function($skip, $loc, $0, $1, $2) {
3164
+ var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($L4, fail, 'LeftHandSideExpression "."')), __)), CallExpression), function($skip, $loc, $0, $1, $2) {
3160
3165
  if ($1.length)
3161
3166
  return $0;
3162
3167
  return $2;
@@ -3183,14 +3188,14 @@ ${input.slice(result.pos)}
3183
3188
  return result;
3184
3189
  }
3185
3190
  }
3186
- var CallExpression$0 = $TS($S($EXPECT($L11, fail, 'CallExpression "super"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
3191
+ var CallExpression$0 = $TS($S($EXPECT($L12, fail, 'CallExpression "super"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
3187
3192
  var rest = $3;
3188
3193
  return {
3189
3194
  type: "CallExpression",
3190
3195
  children: [$1, ...$2, ...rest.flat()]
3191
3196
  };
3192
3197
  });
3193
- var CallExpression$1 = $TS($S($EXPECT($L12, fail, 'CallExpression "import"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
3198
+ var CallExpression$1 = $TS($S($EXPECT($L13, fail, 'CallExpression "import"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
3194
3199
  var rest = $3;
3195
3200
  return {
3196
3201
  type: "CallExpression",
@@ -3289,7 +3294,7 @@ ${input.slice(result.pos)}
3289
3294
  return result;
3290
3295
  }
3291
3296
  }
3292
- var NonNullAssertion$0 = $T($EXPECT($L13, fail, 'NonNullAssertion "!"'), function(value) {
3297
+ var NonNullAssertion$0 = $T($EXPECT($L14, fail, 'NonNullAssertion "!"'), function(value) {
3293
3298
  return { "type": "NonNullAssertion", "ts": true, "children": value };
3294
3299
  });
3295
3300
  function NonNullAssertion(state) {
@@ -3428,7 +3433,7 @@ ${input.slice(result.pos)}
3428
3433
  ]
3429
3434
  };
3430
3435
  });
3431
- var MemberBracketContent$3 = $TS($S(Dot, $EXPECT($L14, fail, 'MemberBracketContent "-"'), IntegerLiteral), function($skip, $loc, $0, $1, $2, $3) {
3436
+ var MemberBracketContent$3 = $TS($S(Dot, $EXPECT($L15, fail, 'MemberBracketContent "-"'), IntegerLiteral), function($skip, $loc, $0, $1, $2, $3) {
3432
3437
  var dot = $1;
3433
3438
  var neg = $2;
3434
3439
  var num = $3;
@@ -3570,8 +3575,8 @@ ${input.slice(result.pos)}
3570
3575
  return result;
3571
3576
  }
3572
3577
  }
3573
- var SuperProperty$0 = $S($EXPECT($L15, fail, 'SuperProperty "super["'), ExtendedExpression, __, CloseBracket);
3574
- var SuperProperty$1 = $S($EXPECT($L11, fail, 'SuperProperty "super"'), $N($C(QuestionMark, NonNullAssertion)), PropertyAccess);
3578
+ var SuperProperty$0 = $S($EXPECT($L16, fail, 'SuperProperty "super["'), ExtendedExpression, __, CloseBracket);
3579
+ var SuperProperty$1 = $S($EXPECT($L12, fail, 'SuperProperty "super"'), $N($C(QuestionMark, NonNullAssertion)), PropertyAccess);
3575
3580
  function SuperProperty(state) {
3576
3581
  let eventData;
3577
3582
  if (state.events) {
@@ -3595,7 +3600,7 @@ ${input.slice(result.pos)}
3595
3600
  }
3596
3601
  }
3597
3602
  var MetaProperty$0 = $S(New, Dot, Target);
3598
- var MetaProperty$1 = $TS($S($EXPECT($L16, fail, 'MetaProperty "import.meta"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3603
+ var MetaProperty$1 = $TS($S($EXPECT($L17, fail, 'MetaProperty "import.meta"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3599
3604
  return { $loc, token: $1 };
3600
3605
  });
3601
3606
  function MetaProperty(state) {
@@ -3621,7 +3626,7 @@ ${input.slice(result.pos)}
3621
3626
  }
3622
3627
  }
3623
3628
  var Parameters$0 = NonEmptyParameters;
3624
- var Parameters$1 = $TV($EXPECT($L17, fail, 'Parameters ""'), function($skip, $loc, $0, $1) {
3629
+ var Parameters$1 = $TV($EXPECT($L18, fail, 'Parameters ""'), function($skip, $loc, $0, $1) {
3625
3630
  return {
3626
3631
  type: "Parameters",
3627
3632
  children: [{ $loc, token: "()" }],
@@ -3782,7 +3787,7 @@ ${input.slice(result.pos)}
3782
3787
  }
3783
3788
  }
3784
3789
  var ParameterElementDelimiter$0 = $S($Q(_), Comma);
3785
- var ParameterElementDelimiter$1 = $Y($S(__, $EXPECT($L18, fail, 'ParameterElementDelimiter ")"')));
3790
+ var ParameterElementDelimiter$1 = $Y($S(__, $EXPECT($L19, fail, 'ParameterElementDelimiter ")"')));
3786
3791
  var ParameterElementDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
3787
3792
  return value[1];
3788
3793
  });
@@ -4392,7 +4397,7 @@ ${input.slice(result.pos)}
4392
4397
  children: $0
4393
4398
  };
4394
4399
  });
4395
- var BindingElement$2 = $TV($EXPECT($L17, fail, 'BindingElement ""'), function($skip, $loc, $0, $1) {
4400
+ var BindingElement$2 = $TV($EXPECT($L18, fail, 'BindingElement ""'), function($skip, $loc, $0, $1) {
4396
4401
  return {
4397
4402
  type: "ElisionElement",
4398
4403
  children: [],
@@ -4463,7 +4468,7 @@ ${input.slice(result.pos)}
4463
4468
  return result;
4464
4469
  }
4465
4470
  }
4466
- var EmptyBindingPattern$0 = $TV($EXPECT($L17, fail, 'EmptyBindingPattern ""'), function($skip, $loc, $0, $1) {
4471
+ var EmptyBindingPattern$0 = $TV($EXPECT($L18, fail, 'EmptyBindingPattern ""'), function($skip, $loc, $0, $1) {
4467
4472
  const ref = {
4468
4473
  type: "Ref",
4469
4474
  base: "ref",
@@ -4939,7 +4944,7 @@ ${input.slice(result.pos)}
4939
4944
  children: [ws, binding]
4940
4945
  };
4941
4946
  });
4942
- var MatchingElement$3 = $TV($EXPECT($L17, fail, 'MatchingElement ""'), function($skip, $loc, $0, $1) {
4947
+ var MatchingElement$3 = $TV($EXPECT($L18, fail, 'MatchingElement ""'), function($skip, $loc, $0, $1) {
4943
4948
  return {
4944
4949
  type: "ElisionElement",
4945
4950
  children: [],
@@ -5327,7 +5332,7 @@ ${input.slice(result.pos)}
5327
5332
  return result;
5328
5333
  }
5329
5334
  }
5330
- var Arrow$0 = $TV($EXPECT($L19, fail, 'Arrow "->"'), function($skip, $loc, $0, $1) {
5335
+ var Arrow$0 = $TV($EXPECT($L20, fail, 'Arrow "->"'), function($skip, $loc, $0, $1) {
5331
5336
  return { $loc, token: $1 };
5332
5337
  });
5333
5338
  function Arrow(state) {
@@ -5537,7 +5542,7 @@ ${input.slice(result.pos)}
5537
5542
  return result;
5538
5543
  }
5539
5544
  }
5540
- var EmptyBareBlock$0 = $TV($EXPECT($L17, fail, 'EmptyBareBlock ""'), function($skip, $loc, $0, $1) {
5545
+ var EmptyBareBlock$0 = $TV($EXPECT($L18, fail, 'EmptyBareBlock ""'), function($skip, $loc, $0, $1) {
5541
5546
  const expressions = [];
5542
5547
  return {
5543
5548
  type: "BlockStatement",
@@ -5666,7 +5671,7 @@ ${input.slice(result.pos)}
5666
5671
  children: [$1, expressions]
5667
5672
  };
5668
5673
  });
5669
- var BracedContent$2 = $TV($Y($S(__, $EXPECT($L20, fail, 'BracedContent "}"'))), function($skip, $loc, $0, $1) {
5674
+ var BracedContent$2 = $TV($Y($S(__, $EXPECT($L21, fail, 'BracedContent "}"'))), function($skip, $loc, $0, $1) {
5670
5675
  const expressions = [];
5671
5676
  return {
5672
5677
  type: "BlockStatement",
@@ -5811,7 +5816,7 @@ ${input.slice(result.pos)}
5811
5816
  return result;
5812
5817
  }
5813
5818
  }
5814
- var NullLiteral$0 = $TS($S($EXPECT($L21, fail, 'NullLiteral "null"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5819
+ var NullLiteral$0 = $TS($S($EXPECT($L22, fail, 'NullLiteral "null"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5815
5820
  return { $loc, token: $1 };
5816
5821
  });
5817
5822
  function NullLiteral(state) {
@@ -5839,7 +5844,7 @@ ${input.slice(result.pos)}
5839
5844
  var BooleanLiteral$0 = $T($S(CoffeeBooleansEnabled, CoffeeScriptBooleanLiteral), function(value) {
5840
5845
  return value[1];
5841
5846
  });
5842
- var BooleanLiteral$1 = $TS($S($C($EXPECT($L22, fail, 'BooleanLiteral "true"'), $EXPECT($L23, fail, 'BooleanLiteral "false"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5847
+ var BooleanLiteral$1 = $TS($S($C($EXPECT($L23, fail, 'BooleanLiteral "true"'), $EXPECT($L24, fail, 'BooleanLiteral "false"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5843
5848
  return { $loc, token: $1 };
5844
5849
  });
5845
5850
  function BooleanLiteral(state) {
@@ -5864,10 +5869,10 @@ ${input.slice(result.pos)}
5864
5869
  return result;
5865
5870
  }
5866
5871
  }
5867
- var CoffeeScriptBooleanLiteral$0 = $TS($S($C($EXPECT($L24, fail, 'CoffeeScriptBooleanLiteral "yes"'), $EXPECT($L25, fail, 'CoffeeScriptBooleanLiteral "on"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5872
+ var CoffeeScriptBooleanLiteral$0 = $TS($S($C($EXPECT($L25, fail, 'CoffeeScriptBooleanLiteral "yes"'), $EXPECT($L26, fail, 'CoffeeScriptBooleanLiteral "on"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5868
5873
  return { $loc, token: "true" };
5869
5874
  });
5870
- var CoffeeScriptBooleanLiteral$1 = $TS($S($C($EXPECT($L26, fail, 'CoffeeScriptBooleanLiteral "no"'), $EXPECT($L27, fail, 'CoffeeScriptBooleanLiteral "off"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5875
+ var CoffeeScriptBooleanLiteral$1 = $TS($S($C($EXPECT($L27, fail, 'CoffeeScriptBooleanLiteral "no"'), $EXPECT($L28, fail, 'CoffeeScriptBooleanLiteral "off"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5871
5876
  return { $loc, token: "false" };
5872
5877
  });
5873
5878
  function CoffeeScriptBooleanLiteral(state) {
@@ -5973,7 +5978,7 @@ ${input.slice(result.pos)}
5973
5978
  return result;
5974
5979
  }
5975
5980
  }
5976
- var UpcomingAssignment$0 = $Y($S(__, $EXPECT($L28, fail, 'UpcomingAssignment "="'), $N($C($EXPECT($L28, fail, 'UpcomingAssignment "="'), $EXPECT($L29, fail, 'UpcomingAssignment ">"')))));
5981
+ var UpcomingAssignment$0 = $Y($S(__, $EXPECT($L1, fail, 'UpcomingAssignment "="'), $N($C($EXPECT($L1, fail, 'UpcomingAssignment "="'), $EXPECT($L29, fail, 'UpcomingAssignment ">"')))));
5977
5982
  function UpcomingAssignment(state) {
5978
5983
  let eventData;
5979
5984
  if (state.events) {
@@ -6671,7 +6676,7 @@ ${input.slice(result.pos)}
6671
6676
  var ImplicitInlineObjectPropertyDelimiter$1 = $T($S($Y($S($C(Samedent, $Q(_)), NamedProperty)), InsertComma), function(value) {
6672
6677
  return value[1];
6673
6678
  });
6674
- var ImplicitInlineObjectPropertyDelimiter$2 = $T($Y($S(__, $C($EXPECT($L31, fail, 'ImplicitInlineObjectPropertyDelimiter ":"'), $EXPECT($L18, fail, 'ImplicitInlineObjectPropertyDelimiter ")"'), $EXPECT($L30, fail, 'ImplicitInlineObjectPropertyDelimiter "]"'), $EXPECT($L20, fail, 'ImplicitInlineObjectPropertyDelimiter "}"'), ReservedWord))), function(value) {
6679
+ var ImplicitInlineObjectPropertyDelimiter$2 = $T($Y($S(__, $C($EXPECT($L31, fail, 'ImplicitInlineObjectPropertyDelimiter ":"'), $EXPECT($L19, fail, 'ImplicitInlineObjectPropertyDelimiter ")"'), $EXPECT($L30, fail, 'ImplicitInlineObjectPropertyDelimiter "]"'), $EXPECT($L21, fail, 'ImplicitInlineObjectPropertyDelimiter "}"'), ReservedWord))), function(value) {
6675
6680
  return "";
6676
6681
  });
6677
6682
  var ImplicitInlineObjectPropertyDelimiter$3 = $T($Y(EOS), function(value) {
@@ -6700,7 +6705,7 @@ ${input.slice(result.pos)}
6700
6705
  }
6701
6706
  }
6702
6707
  var ObjectPropertyDelimiter$0 = $S($Q(_), Comma);
6703
- var ObjectPropertyDelimiter$1 = $Y($S(__, $EXPECT($L20, fail, 'ObjectPropertyDelimiter "}"')));
6708
+ var ObjectPropertyDelimiter$1 = $Y($S(__, $EXPECT($L21, fail, 'ObjectPropertyDelimiter "}"')));
6704
6709
  var ObjectPropertyDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
6705
6710
  return value[1];
6706
6711
  });
@@ -6975,7 +6980,7 @@ ${input.slice(result.pos)}
6975
6980
  expression
6976
6981
  };
6977
6982
  });
6978
- var ComputedPropertyName$2 = $TS($S(InsertOpenBracket, $EXPECT($L14, fail, 'ComputedPropertyName "-"'), NumericLiteral, InsertCloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
6983
+ var ComputedPropertyName$2 = $TS($S(InsertOpenBracket, $EXPECT($L15, fail, 'ComputedPropertyName "-"'), NumericLiteral, InsertCloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
6979
6984
  return {
6980
6985
  type: "ComputedPropertyName",
6981
6986
  children: $0
@@ -7193,7 +7198,7 @@ ${input.slice(result.pos)}
7193
7198
  return result;
7194
7199
  }
7195
7200
  }
7196
- var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L10, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
7201
+ var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L11, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
7197
7202
  return {
7198
7203
  type: "Identifier",
7199
7204
  name: $0,
@@ -7226,6 +7231,30 @@ ${input.slice(result.pos)}
7226
7231
  return result;
7227
7232
  }
7228
7233
  }
7234
+ var WAssignmentOp$0 = $S(__, AssignmentOp);
7235
+ var WAssignmentOp$1 = $S(_, OperatorAssignmentOp);
7236
+ function WAssignmentOp(state) {
7237
+ let eventData;
7238
+ if (state.events) {
7239
+ const result = state.events.enter?.("WAssignmentOp", state);
7240
+ if (result) {
7241
+ if (result.cache)
7242
+ return result.cache;
7243
+ eventData = result.data;
7244
+ }
7245
+ }
7246
+ if (state.tokenize) {
7247
+ const result = $TOKEN("WAssignmentOp", state, WAssignmentOp$0(state) || WAssignmentOp$1(state));
7248
+ if (state.events)
7249
+ state.events.exit?.("WAssignmentOp", state, result, eventData);
7250
+ return result;
7251
+ } else {
7252
+ const result = WAssignmentOp$0(state) || WAssignmentOp$1(state);
7253
+ if (state.events)
7254
+ state.events.exit?.("WAssignmentOp", state, result, eventData);
7255
+ return result;
7256
+ }
7257
+ }
7229
7258
  var AssignmentOp$0 = $TS($S(AssignmentOpSymbol, $Q(TrailingComment)), function($skip, $loc, $0, $1, $2) {
7230
7259
  if ($2.length) {
7231
7260
  return {
@@ -7257,6 +7286,35 @@ ${input.slice(result.pos)}
7257
7286
  return result;
7258
7287
  }
7259
7288
  }
7289
+ var OperatorAssignmentOp$0 = $TS($S(Identifier, $EXPECT($L1, fail, 'OperatorAssignmentOp "="'), $Y(Whitespace), $Q(TrailingComment)), function($skip, $loc, $0, $1, $2, $3, $4) {
7290
+ return {
7291
+ special: true,
7292
+ call: $1,
7293
+ children: [$2, ...$4]
7294
+ };
7295
+ });
7296
+ function OperatorAssignmentOp(state) {
7297
+ let eventData;
7298
+ if (state.events) {
7299
+ const result = state.events.enter?.("OperatorAssignmentOp", state);
7300
+ if (result) {
7301
+ if (result.cache)
7302
+ return result.cache;
7303
+ eventData = result.data;
7304
+ }
7305
+ }
7306
+ if (state.tokenize) {
7307
+ const result = $TOKEN("OperatorAssignmentOp", state, OperatorAssignmentOp$0(state));
7308
+ if (state.events)
7309
+ state.events.exit?.("OperatorAssignmentOp", state, result, eventData);
7310
+ return result;
7311
+ } else {
7312
+ const result = OperatorAssignmentOp$0(state);
7313
+ if (state.events)
7314
+ state.events.exit?.("OperatorAssignmentOp", state, result, eventData);
7315
+ return result;
7316
+ }
7317
+ }
7260
7318
  var AssignmentOpSymbol$0 = $EXPECT($L32, fail, 'AssignmentOpSymbol "**="');
7261
7319
  var AssignmentOpSymbol$1 = $EXPECT($L33, fail, 'AssignmentOpSymbol "*="');
7262
7320
  var AssignmentOpSymbol$2 = $EXPECT($L34, fail, 'AssignmentOpSymbol "/="');
@@ -7275,7 +7333,7 @@ ${input.slice(result.pos)}
7275
7333
  var AssignmentOpSymbol$15 = $T($EXPECT($L47, fail, 'AssignmentOpSymbol "?="'), function(value) {
7276
7334
  return "??=";
7277
7335
  });
7278
- var AssignmentOpSymbol$16 = $T($S($EXPECT($L28, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L28, fail, 'AssignmentOpSymbol "="'))), function(value) {
7336
+ var AssignmentOpSymbol$16 = $T($S($EXPECT($L1, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L1, fail, 'AssignmentOpSymbol "="'))), function(value) {
7279
7337
  return value[0];
7280
7338
  });
7281
7339
  var AssignmentOpSymbol$17 = $T($S(CoffeeWordAssignmentOp), function(value) {
@@ -7388,7 +7446,7 @@ ${input.slice(result.pos)}
7388
7446
  });
7389
7447
  var BinaryOpSymbol$4 = $EXPECT($L55, fail, 'BinaryOpSymbol "%"');
7390
7448
  var BinaryOpSymbol$5 = $EXPECT($L56, fail, 'BinaryOpSymbol "+"');
7391
- var BinaryOpSymbol$6 = $EXPECT($L14, fail, 'BinaryOpSymbol "-"');
7449
+ var BinaryOpSymbol$6 = $EXPECT($L15, fail, 'BinaryOpSymbol "-"');
7392
7450
  var BinaryOpSymbol$7 = $EXPECT($L57, fail, 'BinaryOpSymbol "<="');
7393
7451
  var BinaryOpSymbol$8 = $EXPECT($L58, fail, 'BinaryOpSymbol ">="');
7394
7452
  var BinaryOpSymbol$9 = $TV($EXPECT($L59, fail, 'BinaryOpSymbol "<?"'), function($skip, $loc, $0, $1) {
@@ -7444,7 +7502,7 @@ ${input.slice(result.pos)}
7444
7502
  });
7445
7503
  var BinaryOpSymbol$25 = $EXPECT($L73, fail, 'BinaryOpSymbol "||"');
7446
7504
  var BinaryOpSymbol$26 = $EXPECT($L74, fail, 'BinaryOpSymbol "??"');
7447
- var BinaryOpSymbol$27 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($L2, fail, 'BinaryOpSymbol "?"')), function(value) {
7505
+ var BinaryOpSymbol$27 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($L3, fail, 'BinaryOpSymbol "?"')), function(value) {
7448
7506
  return "??";
7449
7507
  });
7450
7508
  var BinaryOpSymbol$28 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
@@ -7727,7 +7785,7 @@ ${input.slice(result.pos)}
7727
7785
  return result;
7728
7786
  }
7729
7787
  }
7730
- var BlockStatement$0 = $T($S(ExplicitBlock, $N($S(__, $EXPECT($L28, fail, 'BlockStatement "="')))), function(value) {
7788
+ var BlockStatement$0 = $T($S(ExplicitBlock, $N($S(__, $EXPECT($L1, fail, 'BlockStatement "="')))), function(value) {
7731
7789
  return value[0];
7732
7790
  });
7733
7791
  function BlockStatement(state) {
@@ -9143,7 +9201,7 @@ ${input.slice(result.pos)}
9143
9201
  }
9144
9202
  }
9145
9203
  var ImpliedColon$0 = $S(__, Colon);
9146
- var ImpliedColon$1 = $TV($EXPECT($L17, fail, 'ImpliedColon ""'), function($skip, $loc, $0, $1) {
9204
+ var ImpliedColon$1 = $TV($EXPECT($L18, fail, 'ImpliedColon ""'), function($skip, $loc, $0, $1) {
9147
9205
  return { $loc, token: ":" };
9148
9206
  });
9149
9207
  function ImpliedColon(state) {
@@ -9330,7 +9388,7 @@ ${input.slice(result.pos)}
9330
9388
  return result;
9331
9389
  }
9332
9390
  }
9333
- var Condition$0 = $T($S(ParenthesizedExpression, $N($S($Q(TrailingComment), $C(BinaryOp, AssignmentOp, Dot, QuestionMark)))), function(value) {
9391
+ var Condition$0 = $T($S(ParenthesizedExpression, $N($S($Q(TrailingComment), $C(BinaryOp, AssignmentOp, Dot, QuestionMark))), $N($S(_, OperatorAssignmentOp))), function(value) {
9334
9392
  return value[0];
9335
9393
  });
9336
9394
  var Condition$1 = $TS($S(InsertOpenParen, ExpressionWithIndentedApplicationSuppressed, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3) {
@@ -9397,7 +9455,7 @@ ${input.slice(result.pos)}
9397
9455
  return result;
9398
9456
  }
9399
9457
  }
9400
- var SuppressIndentedApplication$0 = $TV($EXPECT($L17, fail, 'SuppressIndentedApplication ""'), function($skip, $loc, $0, $1) {
9458
+ var SuppressIndentedApplication$0 = $TV($EXPECT($L18, fail, 'SuppressIndentedApplication ""'), function($skip, $loc, $0, $1) {
9401
9459
  module.suppressIndentedApplication = true;
9402
9460
  });
9403
9461
  function SuppressIndentedApplication(state) {
@@ -9422,7 +9480,7 @@ ${input.slice(result.pos)}
9422
9480
  return result;
9423
9481
  }
9424
9482
  }
9425
- var IndentedApplicationAllowed$0 = $TV($EXPECT($L17, fail, 'IndentedApplicationAllowed ""'), function($skip, $loc, $0, $1) {
9483
+ var IndentedApplicationAllowed$0 = $TV($EXPECT($L18, fail, 'IndentedApplicationAllowed ""'), function($skip, $loc, $0, $1) {
9426
9484
  if (module.suppressIndentedApplication)
9427
9485
  return $skip;
9428
9486
  return;
@@ -9449,7 +9507,7 @@ ${input.slice(result.pos)}
9449
9507
  return result;
9450
9508
  }
9451
9509
  }
9452
- var SuppressTrailingMemberProperty$0 = $TV($EXPECT($L17, fail, 'SuppressTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
9510
+ var SuppressTrailingMemberProperty$0 = $TV($EXPECT($L18, fail, 'SuppressTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
9453
9511
  module.suppressTrailingMemberProperty.push(true);
9454
9512
  });
9455
9513
  function SuppressTrailingMemberProperty(state) {
@@ -9474,7 +9532,7 @@ ${input.slice(result.pos)}
9474
9532
  return result;
9475
9533
  }
9476
9534
  }
9477
- var TrailingMemberPropertyAllowed$0 = $TV($EXPECT($L17, fail, 'TrailingMemberPropertyAllowed ""'), function($skip, $loc, $0, $1) {
9535
+ var TrailingMemberPropertyAllowed$0 = $TV($EXPECT($L18, fail, 'TrailingMemberPropertyAllowed ""'), function($skip, $loc, $0, $1) {
9478
9536
  if (module.trailingMemberPropertySuppressed)
9479
9537
  return $skip;
9480
9538
  });
@@ -9688,7 +9746,7 @@ ${input.slice(result.pos)}
9688
9746
  return result;
9689
9747
  }
9690
9748
  }
9691
- var ImpliedImport$0 = $TV($EXPECT($L17, fail, 'ImpliedImport ""'), function($skip, $loc, $0, $1) {
9749
+ var ImpliedImport$0 = $TV($EXPECT($L18, fail, 'ImpliedImport ""'), function($skip, $loc, $0, $1) {
9692
9750
  return { $loc, token: "import " };
9693
9751
  });
9694
9752
  function ImpliedImport(state) {
@@ -9940,7 +9998,7 @@ ${input.slice(result.pos)}
9940
9998
  }
9941
9999
  }
9942
10000
  var ImportAsToken$0 = $S(__, As);
9943
- var ImportAsToken$1 = $TS($S(Loc, __, Colon, $E($EXPECT($L7, fail, 'ImportAsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
10001
+ var ImportAsToken$1 = $TS($S(Loc, __, Colon, $E($EXPECT($L8, fail, 'ImportAsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
9944
10002
  var l = $1;
9945
10003
  var ws = $2;
9946
10004
  var c = $3;
@@ -10002,6 +10060,8 @@ ${input.slice(result.pos)}
10002
10060
  }
10003
10061
  }
10004
10062
  var ModuleSpecifier$0 = $TS($S(UnprocessedModuleSpecifier), function($skip, $loc, $0, $1) {
10063
+ if (!module.config.rewriteTsImports)
10064
+ return $1;
10005
10065
  const { token } = $1;
10006
10066
  return { $loc, token: token.replace(/\.([mc])?ts(['"])$/, ".$1js$2") };
10007
10067
  });
@@ -12053,7 +12113,7 @@ ${input.slice(result.pos)}
12053
12113
  }
12054
12114
  }
12055
12115
  var StatementDelimiter$0 = SemicolonDelimiter;
12056
- var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L1, fail, 'StatementDelimiter "("'), $EXPECT($L93, fail, 'StatementDelimiter "["'), $EXPECT($L94, fail, 'StatementDelimiter "`"'), $EXPECT($L56, fail, 'StatementDelimiter "+"'), $EXPECT($L14, fail, 'StatementDelimiter "-"'), $EXPECT($L52, fail, 'StatementDelimiter "*"'), $EXPECT($L53, fail, 'StatementDelimiter "/"'), ObjectLiteral))), InsertSemicolon);
12116
+ var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L2, fail, 'StatementDelimiter "("'), $EXPECT($L93, fail, 'StatementDelimiter "["'), $EXPECT($L94, fail, 'StatementDelimiter "`"'), $EXPECT($L56, fail, 'StatementDelimiter "+"'), $EXPECT($L15, fail, 'StatementDelimiter "-"'), $EXPECT($L52, fail, 'StatementDelimiter "*"'), $EXPECT($L53, fail, 'StatementDelimiter "/"'), ObjectLiteral))), InsertSemicolon);
12057
12117
  var StatementDelimiter$2 = $Y(EOS);
12058
12118
  function StatementDelimiter(state) {
12059
12119
  let eventData;
@@ -12128,7 +12188,7 @@ ${input.slice(result.pos)}
12128
12188
  return result;
12129
12189
  }
12130
12190
  }
12131
- var Loc$0 = $TV($EXPECT($L17, fail, 'Loc ""'), function($skip, $loc, $0, $1) {
12191
+ var Loc$0 = $TV($EXPECT($L18, fail, 'Loc ""'), function($skip, $loc, $0, $1) {
12132
12192
  return { $loc, token: "" };
12133
12193
  });
12134
12194
  function Loc(state) {
@@ -12153,7 +12213,7 @@ ${input.slice(result.pos)}
12153
12213
  return result;
12154
12214
  }
12155
12215
  }
12156
- var Abstract$0 = $TV($TEXT($S($EXPECT($L95, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L7, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
12216
+ var Abstract$0 = $TV($TEXT($S($EXPECT($L95, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L8, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
12157
12217
  return { $loc, token: $1, ts: true };
12158
12218
  });
12159
12219
  function Abstract(state) {
@@ -12453,7 +12513,7 @@ ${input.slice(result.pos)}
12453
12513
  return result;
12454
12514
  }
12455
12515
  }
12456
- var CloseBrace$0 = $TV($EXPECT($L20, fail, 'CloseBrace "}"'), function($skip, $loc, $0, $1) {
12516
+ var CloseBrace$0 = $TV($EXPECT($L21, fail, 'CloseBrace "}"'), function($skip, $loc, $0, $1) {
12457
12517
  return { $loc, token: $1 };
12458
12518
  });
12459
12519
  function CloseBrace(state) {
@@ -12503,7 +12563,7 @@ ${input.slice(result.pos)}
12503
12563
  return result;
12504
12564
  }
12505
12565
  }
12506
- var CloseParen$0 = $TV($EXPECT($L18, fail, 'CloseParen ")"'), function($skip, $loc, $0, $1) {
12566
+ var CloseParen$0 = $TV($EXPECT($L19, fail, 'CloseParen ")"'), function($skip, $loc, $0, $1) {
12507
12567
  return { $loc, token: $1 };
12508
12568
  });
12509
12569
  function CloseParen(state) {
@@ -12728,7 +12788,7 @@ ${input.slice(result.pos)}
12728
12788
  return result;
12729
12789
  }
12730
12790
  }
12731
- var Dot$0 = $TV($EXPECT($L3, fail, 'Dot "."'), function($skip, $loc, $0, $1) {
12791
+ var Dot$0 = $TV($EXPECT($L4, fail, 'Dot "."'), function($skip, $loc, $0, $1) {
12732
12792
  return { $loc, token: $1 };
12733
12793
  });
12734
12794
  function Dot(state) {
@@ -12878,7 +12938,7 @@ ${input.slice(result.pos)}
12878
12938
  return result;
12879
12939
  }
12880
12940
  }
12881
- var Equals$0 = $TV($EXPECT($L28, fail, 'Equals "="'), function($skip, $loc, $0, $1) {
12941
+ var Equals$0 = $TV($EXPECT($L1, fail, 'Equals "="'), function($skip, $loc, $0, $1) {
12882
12942
  return { $loc, token: $1 };
12883
12943
  });
12884
12944
  function Equals(state) {
@@ -13053,7 +13113,7 @@ ${input.slice(result.pos)}
13053
13113
  return result;
13054
13114
  }
13055
13115
  }
13056
- var If$0 = $TV($TEXT($S($EXPECT($L123, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L7, fail, 'If " "')))), function($skip, $loc, $0, $1) {
13116
+ var If$0 = $TV($TEXT($S($EXPECT($L123, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L8, fail, 'If " "')))), function($skip, $loc, $0, $1) {
13057
13117
  return { $loc, token: $1 };
13058
13118
  });
13059
13119
  function If(state) {
@@ -13078,7 +13138,7 @@ ${input.slice(result.pos)}
13078
13138
  return result;
13079
13139
  }
13080
13140
  }
13081
- var Import$0 = $TS($S($EXPECT($L12, fail, 'Import "import"'), $Y($EXPECT($R47, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
13141
+ var Import$0 = $TS($S($EXPECT($L13, fail, 'Import "import"'), $Y($EXPECT($R47, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
13082
13142
  return { $loc, token: $1 };
13083
13143
  });
13084
13144
  function Import(state) {
@@ -13203,7 +13263,7 @@ ${input.slice(result.pos)}
13203
13263
  return result;
13204
13264
  }
13205
13265
  }
13206
- var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L50, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L7, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
13266
+ var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L50, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L8, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
13207
13267
  return { $loc, token: "!" };
13208
13268
  });
13209
13269
  function Not(state) {
@@ -13328,7 +13388,7 @@ ${input.slice(result.pos)}
13328
13388
  return result;
13329
13389
  }
13330
13390
  }
13331
- var OpenParen$0 = $TV($EXPECT($L1, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
13391
+ var OpenParen$0 = $TV($EXPECT($L2, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
13332
13392
  return { $loc, token: $1 };
13333
13393
  });
13334
13394
  function OpenParen(state) {
@@ -13478,7 +13538,7 @@ ${input.slice(result.pos)}
13478
13538
  return result;
13479
13539
  }
13480
13540
  }
13481
- var QuestionMark$0 = $TV($EXPECT($L2, fail, 'QuestionMark "?"'), function($skip, $loc, $0, $1) {
13541
+ var QuestionMark$0 = $TV($EXPECT($L3, fail, 'QuestionMark "?"'), function($skip, $loc, $0, $1) {
13482
13542
  return { $loc, token: $1 };
13483
13543
  });
13484
13544
  function QuestionMark(state) {
@@ -13656,7 +13716,7 @@ ${input.slice(result.pos)}
13656
13716
  var Static$0 = $TS($S($EXPECT($L139, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13657
13717
  return { $loc, token: $1 };
13658
13718
  });
13659
- var Static$1 = $TS($S($EXPECT($L97, fail, 'Static "@"'), $N($C($EXPECT($L1, fail, 'Static "("'), $EXPECT($L97, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
13719
+ var Static$1 = $TS($S($EXPECT($L97, fail, 'Static "@"'), $N($C($EXPECT($L2, fail, 'Static "("'), $EXPECT($L97, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
13660
13720
  return { $loc, token: "static " };
13661
13721
  });
13662
13722
  function Static(state) {
@@ -14357,7 +14417,7 @@ ${input.slice(result.pos)}
14357
14417
  return $skip;
14358
14418
  return $0;
14359
14419
  });
14360
- var JSXOptionalClosingElement$1 = $EXPECT($L17, fail, 'JSXOptionalClosingElement ""');
14420
+ var JSXOptionalClosingElement$1 = $EXPECT($L18, fail, 'JSXOptionalClosingElement ""');
14361
14421
  function JSXOptionalClosingElement(state) {
14362
14422
  let eventData;
14363
14423
  if (state.events) {
@@ -14481,7 +14541,7 @@ ${input.slice(result.pos)}
14481
14541
  return $skip;
14482
14542
  return $0;
14483
14543
  });
14484
- var JSXOptionalClosingFragment$1 = $EXPECT($L17, fail, 'JSXOptionalClosingFragment ""');
14544
+ var JSXOptionalClosingFragment$1 = $EXPECT($L18, fail, 'JSXOptionalClosingFragment ""');
14485
14545
  function JSXOptionalClosingFragment(state) {
14486
14546
  let eventData;
14487
14547
  if (state.events) {
@@ -14729,7 +14789,7 @@ ${input.slice(result.pos)}
14729
14789
  }
14730
14790
  });
14731
14791
  var JSXAttribute$2 = $S(InsertInlineOpenBrace, DotDotDot, InlineJSXAttributeValue, InsertCloseBrace, $Y(JSXAttributeSpace));
14732
- var JSXAttribute$3 = $TS($S($EXPECT($L10, fail, 'JSXAttribute "#"'), JSXShorthandString), function($skip, $loc, $0, $1, $2) {
14792
+ var JSXAttribute$3 = $TS($S($EXPECT($L11, fail, 'JSXAttribute "#"'), JSXShorthandString), function($skip, $loc, $0, $1, $2) {
14733
14793
  return [" ", "id=", $2];
14734
14794
  });
14735
14795
  var JSXAttribute$4 = $TS($S(Dot, JSXShorthandString), function($skip, $loc, $0, $1, $2) {
@@ -14925,7 +14985,7 @@ ${input.slice(result.pos)}
14925
14985
  return result;
14926
14986
  }
14927
14987
  }
14928
- var InlineJSXBinaryOpRHS$0 = $TS($S($N($EXPECT($R51, fail, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, $C(ParenthesizedAssignment, InlineJSXUnaryExpression)), function($skip, $loc, $0, $1, $2, $3) {
14988
+ var InlineJSXBinaryOpRHS$0 = $TS($S($N($EXPECT($R51, fail, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, InlineJSXUnaryExpression), function($skip, $loc, $0, $1, $2, $3) {
14929
14989
  var op = $2;
14930
14990
  var rhs = $3;
14931
14991
  return [[], op, [], rhs];
@@ -15056,8 +15116,8 @@ ${input.slice(result.pos)}
15056
15116
  return result;
15057
15117
  }
15058
15118
  }
15059
- var InlineJSXCallExpression$0 = $S($EXPECT($L11, fail, 'InlineJSXCallExpression "super"'), ExplicitArguments);
15060
- var InlineJSXCallExpression$1 = $S($EXPECT($L12, fail, 'InlineJSXCallExpression "import"'), OpenParen, ExtendedExpression, __, CloseParen);
15119
+ var InlineJSXCallExpression$0 = $S($EXPECT($L12, fail, 'InlineJSXCallExpression "super"'), ExplicitArguments);
15120
+ var InlineJSXCallExpression$1 = $S($EXPECT($L13, fail, 'InlineJSXCallExpression "import"'), OpenParen, ExtendedExpression, __, CloseParen);
15061
15121
  var InlineJSXCallExpression$2 = $TS($S(InlineJSXMemberExpression, $Q(InlineJSXCallExpressionRest)), function($skip, $loc, $0, $1, $2) {
15062
15122
  if ($2.length)
15063
15123
  return $0;
@@ -15271,7 +15331,7 @@ ${input.slice(result.pos)}
15271
15331
  }
15272
15332
  return $skip;
15273
15333
  });
15274
- var JSXNestedChildren$1 = $TV($Y($C(JSXEOS, $EXPECT($L20, fail, 'JSXNestedChildren "}"'), JSXClosingElement, JSXClosingFragment)), function($skip, $loc, $0, $1) {
15334
+ var JSXNestedChildren$1 = $TV($Y($C(JSXEOS, $EXPECT($L21, fail, 'JSXNestedChildren "}"'), JSXClosingElement, JSXClosingFragment)), function($skip, $loc, $0, $1) {
15275
15335
  return { children: [], jsxChildren: [] };
15276
15336
  });
15277
15337
  function JSXNestedChildren(state) {
@@ -16302,8 +16362,8 @@ ${input.slice(result.pos)}
16302
16362
  return result;
16303
16363
  }
16304
16364
  }
16305
- var ImportType$0 = $S($EXPECT($L12, fail, 'ImportType "import"'), OpenParen, __, StringLiteral, __, CloseParen, $E($S(Dot, IdentifierName)), $E(TypeArguments));
16306
- var ImportType$1 = $S($EXPECT($L12, fail, 'ImportType "import"'), InsertOpenParen, Trimmed_, StringLiteral, InsertCloseParen);
16365
+ var ImportType$0 = $S($EXPECT($L13, fail, 'ImportType "import"'), OpenParen, __, StringLiteral, __, CloseParen, $E($S(Dot, IdentifierName)), $E(TypeArguments));
16366
+ var ImportType$1 = $S($EXPECT($L13, fail, 'ImportType "import"'), InsertOpenParen, Trimmed_, StringLiteral, InsertCloseParen);
16307
16367
  function ImportType(state) {
16308
16368
  let eventData;
16309
16369
  if (state.events) {
@@ -16531,7 +16591,7 @@ ${input.slice(result.pos)}
16531
16591
  var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
16532
16592
  return value[1];
16533
16593
  });
16534
- var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L31, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L18, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L30, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L20, fail, 'InlineInterfacePropertyDelimiter "}"'))));
16594
+ var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L31, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L19, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L30, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L21, fail, 'InlineInterfacePropertyDelimiter "}"'))));
16535
16595
  var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
16536
16596
  function InlineInterfacePropertyDelimiter(state) {
16537
16597
  let eventData;
@@ -16583,7 +16643,7 @@ ${input.slice(result.pos)}
16583
16643
  return result;
16584
16644
  }
16585
16645
  }
16586
- var FunctionType$0 = $TS($S(Parameters, __, $EXPECT($L6, fail, 'FunctionType "=>"'), $E(Type)), function($skip, $loc, $0, $1, $2, $3, $4) {
16646
+ var FunctionType$0 = $TS($S(Parameters, __, $EXPECT($L7, fail, 'FunctionType "=>"'), $E(Type)), function($skip, $loc, $0, $1, $2, $3, $4) {
16587
16647
  var type = $4;
16588
16648
  if (type) {
16589
16649
  return $0;
@@ -16760,7 +16820,7 @@ ${input.slice(result.pos)}
16760
16820
  return result;
16761
16821
  }
16762
16822
  }
16763
- var TypeInitializer$0 = $S(__, $EXPECT($L28, fail, 'TypeInitializer "="'), Type);
16823
+ var TypeInitializer$0 = $S(__, $EXPECT($L1, fail, 'TypeInitializer "="'), Type);
16764
16824
  function TypeInitializer(state) {
16765
16825
  let eventData;
16766
16826
  if (state.events) {
@@ -17049,7 +17109,7 @@ ${input.slice(result.pos)}
17049
17109
  return result;
17050
17110
  }
17051
17111
  }
17052
- var Debugger$0 = $TV($EXPECT($L17, fail, 'Debugger ""'), function($skip, $loc, $0, $1) {
17112
+ var Debugger$0 = $TV($EXPECT($L18, fail, 'Debugger ""'), function($skip, $loc, $0, $1) {
17053
17113
  debugger;
17054
17114
  });
17055
17115
  function Debugger(state) {
@@ -17074,7 +17134,7 @@ ${input.slice(result.pos)}
17074
17134
  return result;
17075
17135
  }
17076
17136
  }
17077
- var InsertSemicolon$0 = $TV($EXPECT($L17, fail, 'InsertSemicolon ""'), function($skip, $loc, $0, $1) {
17137
+ var InsertSemicolon$0 = $TV($EXPECT($L18, fail, 'InsertSemicolon ""'), function($skip, $loc, $0, $1) {
17078
17138
  return { $loc, token: ";" };
17079
17139
  });
17080
17140
  function InsertSemicolon(state) {
@@ -17099,7 +17159,7 @@ ${input.slice(result.pos)}
17099
17159
  return result;
17100
17160
  }
17101
17161
  }
17102
- var InsertOpenParen$0 = $TV($EXPECT($L17, fail, 'InsertOpenParen ""'), function($skip, $loc, $0, $1) {
17162
+ var InsertOpenParen$0 = $TV($EXPECT($L18, fail, 'InsertOpenParen ""'), function($skip, $loc, $0, $1) {
17103
17163
  return { $loc, token: "(" };
17104
17164
  });
17105
17165
  function InsertOpenParen(state) {
@@ -17124,7 +17184,7 @@ ${input.slice(result.pos)}
17124
17184
  return result;
17125
17185
  }
17126
17186
  }
17127
- var InsertCloseParen$0 = $TV($EXPECT($L17, fail, 'InsertCloseParen ""'), function($skip, $loc, $0, $1) {
17187
+ var InsertCloseParen$0 = $TV($EXPECT($L18, fail, 'InsertCloseParen ""'), function($skip, $loc, $0, $1) {
17128
17188
  return { $loc, token: ")" };
17129
17189
  });
17130
17190
  function InsertCloseParen(state) {
@@ -17149,7 +17209,7 @@ ${input.slice(result.pos)}
17149
17209
  return result;
17150
17210
  }
17151
17211
  }
17152
- var InsertOpenBrace$0 = $TV($EXPECT($L17, fail, 'InsertOpenBrace ""'), function($skip, $loc, $0, $1) {
17212
+ var InsertOpenBrace$0 = $TV($EXPECT($L18, fail, 'InsertOpenBrace ""'), function($skip, $loc, $0, $1) {
17153
17213
  return [{ $loc, token: " " }, { $loc, token: "{" }];
17154
17214
  });
17155
17215
  function InsertOpenBrace(state) {
@@ -17174,7 +17234,7 @@ ${input.slice(result.pos)}
17174
17234
  return result;
17175
17235
  }
17176
17236
  }
17177
- var InsertInlineOpenBrace$0 = $TV($EXPECT($L17, fail, 'InsertInlineOpenBrace ""'), function($skip, $loc, $0, $1) {
17237
+ var InsertInlineOpenBrace$0 = $TV($EXPECT($L18, fail, 'InsertInlineOpenBrace ""'), function($skip, $loc, $0, $1) {
17178
17238
  return { $loc, token: "{" };
17179
17239
  });
17180
17240
  function InsertInlineOpenBrace(state) {
@@ -17199,7 +17259,7 @@ ${input.slice(result.pos)}
17199
17259
  return result;
17200
17260
  }
17201
17261
  }
17202
- var InsertCloseBrace$0 = $TV($EXPECT($L17, fail, 'InsertCloseBrace ""'), function($skip, $loc, $0, $1) {
17262
+ var InsertCloseBrace$0 = $TV($EXPECT($L18, fail, 'InsertCloseBrace ""'), function($skip, $loc, $0, $1) {
17203
17263
  return { $loc, token: "}" };
17204
17264
  });
17205
17265
  function InsertCloseBrace(state) {
@@ -17224,7 +17284,7 @@ ${input.slice(result.pos)}
17224
17284
  return result;
17225
17285
  }
17226
17286
  }
17227
- var InsertOpenBracket$0 = $TV($EXPECT($L17, fail, 'InsertOpenBracket ""'), function($skip, $loc, $0, $1) {
17287
+ var InsertOpenBracket$0 = $TV($EXPECT($L18, fail, 'InsertOpenBracket ""'), function($skip, $loc, $0, $1) {
17228
17288
  return { $loc, token: "[" };
17229
17289
  });
17230
17290
  function InsertOpenBracket(state) {
@@ -17249,7 +17309,7 @@ ${input.slice(result.pos)}
17249
17309
  return result;
17250
17310
  }
17251
17311
  }
17252
- var InsertCloseBracket$0 = $TV($EXPECT($L17, fail, 'InsertCloseBracket ""'), function($skip, $loc, $0, $1) {
17312
+ var InsertCloseBracket$0 = $TV($EXPECT($L18, fail, 'InsertCloseBracket ""'), function($skip, $loc, $0, $1) {
17253
17313
  return { $loc, token: "]" };
17254
17314
  });
17255
17315
  function InsertCloseBracket(state) {
@@ -17274,7 +17334,7 @@ ${input.slice(result.pos)}
17274
17334
  return result;
17275
17335
  }
17276
17336
  }
17277
- var InsertComma$0 = $TV($EXPECT($L17, fail, 'InsertComma ""'), function($skip, $loc, $0, $1) {
17337
+ var InsertComma$0 = $TV($EXPECT($L18, fail, 'InsertComma ""'), function($skip, $loc, $0, $1) {
17278
17338
  return { $loc, token: "," };
17279
17339
  });
17280
17340
  function InsertComma(state) {
@@ -17299,7 +17359,7 @@ ${input.slice(result.pos)}
17299
17359
  return result;
17300
17360
  }
17301
17361
  }
17302
- var InsertConst$0 = $TV($EXPECT($L17, fail, 'InsertConst ""'), function($skip, $loc, $0, $1) {
17362
+ var InsertConst$0 = $TV($EXPECT($L18, fail, 'InsertConst ""'), function($skip, $loc, $0, $1) {
17303
17363
  return { $loc, token: "const " };
17304
17364
  });
17305
17365
  function InsertConst(state) {
@@ -17324,7 +17384,7 @@ ${input.slice(result.pos)}
17324
17384
  return result;
17325
17385
  }
17326
17386
  }
17327
- var InsertLet$0 = $TV($EXPECT($L17, fail, 'InsertLet ""'), function($skip, $loc, $0, $1) {
17387
+ var InsertLet$0 = $TV($EXPECT($L18, fail, 'InsertLet ""'), function($skip, $loc, $0, $1) {
17328
17388
  return { $loc, token: "let " };
17329
17389
  });
17330
17390
  function InsertLet(state) {
@@ -17349,7 +17409,7 @@ ${input.slice(result.pos)}
17349
17409
  return result;
17350
17410
  }
17351
17411
  }
17352
- var InsertReadonly$0 = $TV($EXPECT($L17, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
17412
+ var InsertReadonly$0 = $TV($EXPECT($L18, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
17353
17413
  return { ts: true, children: [{ $loc, token: "readonly " }] };
17354
17414
  });
17355
17415
  function InsertReadonly(state) {
@@ -17374,7 +17434,7 @@ ${input.slice(result.pos)}
17374
17434
  return result;
17375
17435
  }
17376
17436
  }
17377
- var InsertNewline$0 = $TV($EXPECT($L17, fail, 'InsertNewline ""'), function($skip, $loc, $0, $1) {
17437
+ var InsertNewline$0 = $TV($EXPECT($L18, fail, 'InsertNewline ""'), function($skip, $loc, $0, $1) {
17378
17438
  return "\n";
17379
17439
  });
17380
17440
  function InsertNewline(state) {
@@ -17399,7 +17459,7 @@ ${input.slice(result.pos)}
17399
17459
  return result;
17400
17460
  }
17401
17461
  }
17402
- var InsertIndent$0 = $TV($EXPECT($L17, fail, 'InsertIndent ""'), function($skip, $loc, $0, $1) {
17462
+ var InsertIndent$0 = $TV($EXPECT($L18, fail, 'InsertIndent ""'), function($skip, $loc, $0, $1) {
17403
17463
  return module.currentIndent.token;
17404
17464
  });
17405
17465
  function InsertIndent(state) {
@@ -17424,7 +17484,7 @@ ${input.slice(result.pos)}
17424
17484
  return result;
17425
17485
  }
17426
17486
  }
17427
- var InsertSpace$0 = $TV($EXPECT($L17, fail, 'InsertSpace ""'), function($skip, $loc, $0, $1) {
17487
+ var InsertSpace$0 = $TV($EXPECT($L18, fail, 'InsertSpace ""'), function($skip, $loc, $0, $1) {
17428
17488
  return { $loc, token: " " };
17429
17489
  });
17430
17490
  function InsertSpace(state) {
@@ -17449,7 +17509,7 @@ ${input.slice(result.pos)}
17449
17509
  return result;
17450
17510
  }
17451
17511
  }
17452
- var InsertDot$0 = $TV($EXPECT($L17, fail, 'InsertDot ""'), function($skip, $loc, $0, $1) {
17512
+ var InsertDot$0 = $TV($EXPECT($L18, fail, 'InsertDot ""'), function($skip, $loc, $0, $1) {
17453
17513
  return { $loc, token: "." };
17454
17514
  });
17455
17515
  function InsertDot(state) {
@@ -17474,7 +17534,7 @@ ${input.slice(result.pos)}
17474
17534
  return result;
17475
17535
  }
17476
17536
  }
17477
- var InsertBreak$0 = $TV($EXPECT($L17, fail, 'InsertBreak ""'), function($skip, $loc, $0, $1) {
17537
+ var InsertBreak$0 = $TV($EXPECT($L18, fail, 'InsertBreak ""'), function($skip, $loc, $0, $1) {
17478
17538
  return { $loc, token: ";break;" };
17479
17539
  });
17480
17540
  function InsertBreak(state) {
@@ -17499,7 +17559,7 @@ ${input.slice(result.pos)}
17499
17559
  return result;
17500
17560
  }
17501
17561
  }
17502
- var InsertVar$0 = $TV($EXPECT($L17, fail, 'InsertVar ""'), function($skip, $loc, $0, $1) {
17562
+ var InsertVar$0 = $TV($EXPECT($L18, fail, 'InsertVar ""'), function($skip, $loc, $0, $1) {
17503
17563
  return { $loc, token: "var " };
17504
17564
  });
17505
17565
  function InsertVar(state) {
@@ -17524,7 +17584,7 @@ ${input.slice(result.pos)}
17524
17584
  return result;
17525
17585
  }
17526
17586
  }
17527
- var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
17587
+ var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
17528
17588
  if (module.config.coffeeBinaryExistential)
17529
17589
  return;
17530
17590
  return $skip;
@@ -17551,7 +17611,7 @@ ${input.slice(result.pos)}
17551
17611
  return result;
17552
17612
  }
17553
17613
  }
17554
- var CoffeeBooleansEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeBooleansEnabled ""'), function($skip, $loc, $0, $1) {
17614
+ var CoffeeBooleansEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeBooleansEnabled ""'), function($skip, $loc, $0, $1) {
17555
17615
  if (module.config.coffeeBooleans)
17556
17616
  return;
17557
17617
  return $skip;
@@ -17578,7 +17638,7 @@ ${input.slice(result.pos)}
17578
17638
  return result;
17579
17639
  }
17580
17640
  }
17581
- var CoffeeClassesEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeClassesEnabled ""'), function($skip, $loc, $0, $1) {
17641
+ var CoffeeClassesEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeClassesEnabled ""'), function($skip, $loc, $0, $1) {
17582
17642
  if (module.config.coffeeClasses)
17583
17643
  return;
17584
17644
  return $skip;
@@ -17605,7 +17665,7 @@ ${input.slice(result.pos)}
17605
17665
  return result;
17606
17666
  }
17607
17667
  }
17608
- var CoffeeCommentEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeCommentEnabled ""'), function($skip, $loc, $0, $1) {
17668
+ var CoffeeCommentEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeCommentEnabled ""'), function($skip, $loc, $0, $1) {
17609
17669
  if (module.config.coffeeComment)
17610
17670
  return;
17611
17671
  return $skip;
@@ -17632,7 +17692,7 @@ ${input.slice(result.pos)}
17632
17692
  return result;
17633
17693
  }
17634
17694
  }
17635
- var CoffeeDoEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeDoEnabled ""'), function($skip, $loc, $0, $1) {
17695
+ var CoffeeDoEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeDoEnabled ""'), function($skip, $loc, $0, $1) {
17636
17696
  if (module.config.coffeeDo)
17637
17697
  return;
17638
17698
  return $skip;
@@ -17659,7 +17719,7 @@ ${input.slice(result.pos)}
17659
17719
  return result;
17660
17720
  }
17661
17721
  }
17662
- var CoffeeForLoopsEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeForLoopsEnabled ""'), function($skip, $loc, $0, $1) {
17722
+ var CoffeeForLoopsEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeForLoopsEnabled ""'), function($skip, $loc, $0, $1) {
17663
17723
  if (module.config.coffeeForLoops)
17664
17724
  return;
17665
17725
  return $skip;
@@ -17686,7 +17746,7 @@ ${input.slice(result.pos)}
17686
17746
  return result;
17687
17747
  }
17688
17748
  }
17689
- var CoffeeInterpolationEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeInterpolationEnabled ""'), function($skip, $loc, $0, $1) {
17749
+ var CoffeeInterpolationEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeInterpolationEnabled ""'), function($skip, $loc, $0, $1) {
17690
17750
  if (module.config.coffeeInterpolation)
17691
17751
  return;
17692
17752
  return $skip;
@@ -17713,7 +17773,7 @@ ${input.slice(result.pos)}
17713
17773
  return result;
17714
17774
  }
17715
17775
  }
17716
- var CoffeeIsntEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeIsntEnabled ""'), function($skip, $loc, $0, $1) {
17776
+ var CoffeeIsntEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeIsntEnabled ""'), function($skip, $loc, $0, $1) {
17717
17777
  if (module.config.coffeeIsnt)
17718
17778
  return;
17719
17779
  return $skip;
@@ -17740,7 +17800,7 @@ ${input.slice(result.pos)}
17740
17800
  return result;
17741
17801
  }
17742
17802
  }
17743
- var CoffeeJSXEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeJSXEnabled ""'), function($skip, $loc, $0, $1) {
17803
+ var CoffeeJSXEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeJSXEnabled ""'), function($skip, $loc, $0, $1) {
17744
17804
  if (module.config.coffeeJSX)
17745
17805
  return;
17746
17806
  return $skip;
@@ -17767,7 +17827,7 @@ ${input.slice(result.pos)}
17767
17827
  return result;
17768
17828
  }
17769
17829
  }
17770
- var CoffeeLineContinuationEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeLineContinuationEnabled ""'), function($skip, $loc, $0, $1) {
17830
+ var CoffeeLineContinuationEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeLineContinuationEnabled ""'), function($skip, $loc, $0, $1) {
17771
17831
  if (module.config.coffeeLineContinuation)
17772
17832
  return;
17773
17833
  return $skip;
@@ -17794,7 +17854,7 @@ ${input.slice(result.pos)}
17794
17854
  return result;
17795
17855
  }
17796
17856
  }
17797
- var CoffeeNotEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeNotEnabled ""'), function($skip, $loc, $0, $1) {
17857
+ var CoffeeNotEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeNotEnabled ""'), function($skip, $loc, $0, $1) {
17798
17858
  if (module.config.coffeeNot)
17799
17859
  return;
17800
17860
  return $skip;
@@ -17821,7 +17881,7 @@ ${input.slice(result.pos)}
17821
17881
  return result;
17822
17882
  }
17823
17883
  }
17824
- var CoffeeOfEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeOfEnabled ""'), function($skip, $loc, $0, $1) {
17884
+ var CoffeeOfEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeOfEnabled ""'), function($skip, $loc, $0, $1) {
17825
17885
  if (module.config.coffeeOf)
17826
17886
  return;
17827
17887
  return $skip;
@@ -17848,7 +17908,7 @@ ${input.slice(result.pos)}
17848
17908
  return result;
17849
17909
  }
17850
17910
  }
17851
- var CoffeePrototypeEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeePrototypeEnabled ""'), function($skip, $loc, $0, $1) {
17911
+ var CoffeePrototypeEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeePrototypeEnabled ""'), function($skip, $loc, $0, $1) {
17852
17912
  if (module.config.coffeePrototype)
17853
17913
  return;
17854
17914
  return $skip;
@@ -17875,7 +17935,7 @@ ${input.slice(result.pos)}
17875
17935
  return result;
17876
17936
  }
17877
17937
  }
17878
- var ObjectIsEnabled$0 = $TV($EXPECT($L17, fail, 'ObjectIsEnabled ""'), function($skip, $loc, $0, $1) {
17938
+ var ObjectIsEnabled$0 = $TV($EXPECT($L18, fail, 'ObjectIsEnabled ""'), function($skip, $loc, $0, $1) {
17879
17939
  if (module.config.objectIs)
17880
17940
  return;
17881
17941
  return $skip;
@@ -17902,7 +17962,7 @@ ${input.slice(result.pos)}
17902
17962
  return result;
17903
17963
  }
17904
17964
  }
17905
- var Reset$0 = $TV($EXPECT($L17, fail, 'Reset ""'), function($skip, $loc, $0, $1) {
17965
+ var Reset$0 = $TV($EXPECT($L18, fail, 'Reset ""'), function($skip, $loc, $0, $1) {
17906
17966
  module.indentLevels = [{
17907
17967
  level: 0,
17908
17968
  token: ""
@@ -17955,6 +18015,7 @@ ${input.slice(result.pos)}
17955
18015
  react: false,
17956
18016
  solid: false,
17957
18017
  client: false,
18018
+ rewriteTsImports: true,
17958
18019
  server: false,
17959
18020
  tab: void 0,
17960
18021
  verbose: false
@@ -18113,6 +18174,12 @@ ${input.slice(result.pos)}
18113
18174
  }
18114
18175
  }
18115
18176
  };
18177
+ Object.defineProperty(module.config, "deno", {
18178
+ set(b) {
18179
+ module.config.rewriteTsImports = !b;
18180
+ }
18181
+ });
18182
+ module.config.deno = typeof Deno !== "undefined";
18116
18183
  Object.defineProperty(module.config, "coffeeCompat", {
18117
18184
  set(b) {
18118
18185
  for (const option of [
@@ -18173,7 +18240,7 @@ ${input.slice(result.pos)}
18173
18240
  return result;
18174
18241
  }
18175
18242
  }
18176
- var Init$0 = $TS($S($E(Shebang), $Q(DirectivePrologue), $EXPECT($L17, fail, 'Init ""')), function($skip, $loc, $0, $1, $2, $3) {
18243
+ var Init$0 = $TS($S($E(Shebang), $Q(DirectivePrologue), $EXPECT($L18, fail, 'Init ""')), function($skip, $loc, $0, $1, $2, $3) {
18177
18244
  var directives = $2;
18178
18245
  directives.forEach((directive) => {
18179
18246
  if (directive.type === "CivetPrologue") {
@@ -18908,6 +18975,15 @@ ${input.slice(result.pos)}
18908
18975
  function processAssignments(statements) {
18909
18976
  gatherRecursiveAll(statements, (n) => n.type === "AssignmentExpression" && n.names === null).forEach((exp) => {
18910
18977
  let { lhs: $12, exp: $22 } = exp, tail = [], i = 0, len = $12.length;
18978
+ if ($12.some((left) => left[left.length - 1].special)) {
18979
+ if ($12.length !== 1) {
18980
+ throw new Error("Only one assignment with id= is allowed");
18981
+ }
18982
+ const [, lhs, , op] = $12[0];
18983
+ const { call } = op;
18984
+ op[op.length - 1] = "=";
18985
+ $22 = [call, "(", lhs, ", ", $22, ")"];
18986
+ }
18911
18987
  let wrapped = false;
18912
18988
  while (i < len) {
18913
18989
  const lastAssignment = $12[i++];
@@ -19674,7 +19750,7 @@ ${input.slice(result.pos)}
19674
19750
  return result;
19675
19751
  }
19676
19752
  }
19677
- var PopIndent$0 = $TV($EXPECT($L17, fail, 'PopIndent ""'), function($skip, $loc, $0, $1) {
19753
+ var PopIndent$0 = $TV($EXPECT($L18, fail, 'PopIndent ""'), function($skip, $loc, $0, $1) {
19678
19754
  if (module.config.verbose) {
19679
19755
  console.log("popping indent", module.indentLevels[module.indentLevels.length - 1], "->", module.indentLevels[module.indentLevels.length - 2]);
19680
19756
  }