requirejs-esm 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -5,6 +5,10 @@
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
7
  // Returns the child file name by cutting the directoris before the last slash,
8
+ // including the slash. If there is no slash in the path - the path is just
9
+ // a file name, it will return the file name. If the path includes a URL
10
+ // query starting with the question mark, it will cut it away including the
11
+ // question mark.
8
12
 
9
13
  // Returns the parent directory by cutting the file name after the last slash,
10
14
  // leaving the slash in the result. If there is no slash in the path - the path
@@ -85,7 +89,7 @@
85
89
  [8]: 'Octal literals are not allowed in strict mode',
86
90
  [7]: 'Decimal integer literals with a leading zero are forbidden in strict mode',
87
91
  [9]: 'Expected number in radix %0',
88
- [145]: 'Invalid left-hand side assignment to a destructible right-hand side',
92
+ [146]: 'Invalid left-hand side assignment to a destructible right-hand side',
89
93
  [10]: 'Non-number found after exponent indicator',
90
94
  [11]: 'Invalid BigIntLiteral',
91
95
  [12]: 'No identifiers allowed directly after numeric literal',
@@ -106,9 +110,9 @@
106
110
  [27]: 'Member access on super must be in a method',
107
111
  [29]: 'Await expression not allowed in formal parameter',
108
112
  [30]: 'Yield expression not allowed in formal parameter',
109
- [92]: "Unexpected token: 'escaped keyword'",
113
+ [93]: "Unexpected token: 'escaped keyword'",
110
114
  [31]: 'Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses',
111
- [119]: 'Async functions can only be declared at the top level or inside a block',
115
+ [120]: 'Async functions can only be declared at the top level or inside a block',
112
116
  [32]: 'Unterminated regular expression',
113
117
  [33]: 'Unexpected regular expression flag',
114
118
  [34]: "Duplicate regular expression flag '%0'",
@@ -118,125 +122,126 @@
118
122
  [38]: 'Function name may not contain any reserved words or be eval or arguments in strict mode',
119
123
  [39]: 'The rest operator is missing an argument',
120
124
  [40]: 'A getter cannot be a generator',
121
- [41]: 'A computed property name must be followed by a colon or paren',
122
- [130]: 'Object literal keys that are strings or numbers must be a method or have a colon',
123
- [43]: 'Found `* async x(){}` but this should be `async * x(){}`',
124
- [42]: 'Getters and setters can not be generators',
125
- [44]: "'%0' can not be generator method",
126
- [45]: "No line break is allowed after '=>'",
127
- [46]: 'The left-hand side of the arrow can only be destructed through assignment',
128
- [47]: 'The binding declaration is not destructible',
129
- [48]: 'Async arrow can not be followed by new expression',
130
- [49]: "Classes may not have a static property named 'prototype'",
131
- [50]: 'Class constructor may not be a %0',
132
- [51]: 'Duplicate constructor method in class',
133
- [52]: 'Invalid increment/decrement operand',
134
- [53]: 'Invalid use of `new` keyword on an increment/decrement expression',
135
- [54]: '`=>` is an invalid assignment target',
136
- [55]: 'Rest element may not have a trailing comma',
137
- [56]: 'Missing initializer in %0 declaration',
138
- [57]: "'for-%0' loop head declarations can not have an initializer",
139
- [58]: 'Invalid left-hand side in for-%0 loop: Must have a single binding',
140
- [59]: 'Invalid shorthand property initializer',
141
- [60]: 'Property name __proto__ appears more than once in object literal',
142
- [61]: 'Let is disallowed as a lexically bound name',
143
- [62]: "Invalid use of '%0' inside new expression",
144
- [63]: "Illegal 'use strict' directive in function with non-simple parameter list",
145
- [64]: 'Identifier "let" disallowed as left-hand side expression in strict mode',
146
- [65]: 'Illegal continue statement',
147
- [66]: 'Illegal break statement',
148
- [67]: 'Cannot have `let[...]` as a var name in strict mode',
149
- [68]: 'Invalid destructuring assignment target',
150
- [69]: 'Rest parameter may not have a default initializer',
151
- [70]: 'The rest argument must the be last parameter',
152
- [71]: 'Invalid rest argument',
153
- [73]: 'In strict mode code, functions can only be declared at top level or inside a block',
154
- [74]: 'In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement',
155
- [75]: 'Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement',
156
- [76]: "Class declaration can't appear in single-statement context",
157
- [77]: 'Invalid left-hand side in for-%0',
158
- [78]: 'Invalid assignment in for-%0',
159
- [79]: 'for await (... of ...) is only valid in async functions and async generators',
160
- [80]: 'The first token after the template expression should be a continuation of the template',
161
- [82]: '`let` declaration not allowed here and `let` cannot be a regular var name in strict mode',
162
- [81]: '`let \n [` is a restricted production at the start of a statement',
163
- [83]: 'Catch clause requires exactly one parameter, not more (and no trailing comma)',
164
- [84]: 'Catch clause parameter does not support default values',
165
- [85]: 'Missing catch or finally after try',
166
- [86]: 'More than one default clause in switch statement',
167
- [87]: 'Illegal newline after throw',
168
- [88]: 'Strict mode code may not include a with statement',
169
- [89]: 'Illegal return statement',
170
- [90]: 'The left hand side of the for-header binding declaration is not destructible',
171
- [91]: 'new.target only allowed within functions',
172
- [93]: "'#' not followed by identifier",
173
- [99]: 'Invalid keyword',
174
- [98]: "Can not use 'let' as a class name",
175
- [97]: "'A lexical declaration can't define a 'let' binding",
176
- [96]: 'Can not use `let` as variable name in strict mode',
177
- [94]: "'%0' may not be used as an identifier in this context",
178
- [95]: 'Await is only valid in async functions',
179
- [100]: 'The %0 keyword can only be used with the module goal',
180
- [101]: 'Unicode codepoint must not be greater than 0x10FFFF',
181
- [102]: '%0 source must be string',
182
- [103]: 'Only a identifier can be used to indicate alias',
183
- [104]: "Only '*' or '{...}' can be imported after default",
184
- [105]: 'Trailing decorator may be followed by method',
185
- [106]: "Decorators can't be used with a constructor",
186
- [108]: 'HTML comments are only allowed with web compatibility (Annex B)',
187
- [109]: "The identifier 'let' must not be in expression position in strict mode",
188
- [110]: 'Cannot assign to `eval` and `arguments` in strict mode',
189
- [111]: "The left-hand side of a for-of loop may not start with 'let'",
190
- [112]: 'Block body arrows can not be immediately invoked without a group',
191
- [113]: 'Block body arrows can not be immediately accessed without a group',
192
- [114]: 'Unexpected strict mode reserved word',
193
- [115]: 'Unexpected eval or arguments in strict mode',
194
- [116]: 'Decorators must not be followed by a semicolon',
195
- [117]: 'Calling delete on expression not allowed in strict mode',
196
- [118]: 'Pattern can not have a tail',
197
- [120]: 'Can not have a `yield` expression on the left side of a ternary',
198
- [121]: 'An arrow function can not have a postfix update operator',
199
- [122]: 'Invalid object literal key character after generator star',
200
- [123]: 'Private fields can not be deleted',
201
- [125]: 'Classes may not have a field called constructor',
202
- [124]: 'Classes may not have a private element named constructor',
203
- [126]: 'A class field initializer may not contain arguments',
204
- [127]: 'Generators can only be declared at the top level or inside a block',
205
- [128]: 'Async methods are a restricted production and cannot have a newline following it',
206
- [129]: 'Unexpected character after object literal property name',
207
- [131]: 'Invalid key token',
208
- [132]: "Label '%0' has already been declared",
209
- [133]: 'continue statement must be nested within an iteration statement',
210
- [134]: "Undefined label '%0'",
211
- [135]: 'Trailing comma is disallowed inside import(...) arguments',
212
- [136]: 'import() requires exactly one argument',
213
- [137]: 'Cannot use new with import(...)',
214
- [138]: '... is not allowed in import()',
215
- [139]: "Expected '=>'",
216
- [140]: "Duplicate binding '%0'",
217
- [141]: "Cannot export a duplicate name '%0'",
218
- [144]: 'Duplicate %0 for-binding',
219
- [142]: "Exported binding '%0' needs to refer to a top-level declared variable",
220
- [143]: 'Unexpected private field',
221
- [147]: 'Numeric separators are not allowed at the end of numeric literals',
222
- [146]: 'Only one underscore is allowed as numeric separator',
223
- [148]: 'JSX value should be either an expression or a quoted JSX text',
224
- [149]: 'Expected corresponding JSX closing tag for %0',
225
- [150]: 'Adjacent JSX elements must be wrapped in an enclosing tag',
226
- [151]: "JSX attributes must only be assigned a non-empty 'expression'",
227
- [152]: "'%0' has already been declared",
228
- [153]: "'%0' shadowed a catch clause binding",
229
- [154]: 'Dot property must be an identifier',
230
- [155]: 'Encountered invalid input after spread/rest argument',
231
- [156]: 'Catch without try',
232
- [157]: 'Finally without try',
233
- [158]: 'Expected corresponding closing tag for JSX fragment',
234
- [159]: 'Coalescing and logical operators used together in the same expression must be disambiguated with parentheses',
235
- [160]: 'Invalid tagged template on optional chain',
236
- [161]: 'Invalid optional chain from super property',
237
- [162]: 'Invalid optional chain from new expression',
238
- [163]: 'Cannot use "import.meta" outside a module',
239
- [164]: 'Leading decorators must be attached to a class declaration'
125
+ [41]: 'A setter cannot be a generator',
126
+ [42]: 'A computed property name must be followed by a colon or paren',
127
+ [131]: 'Object literal keys that are strings or numbers must be a method or have a colon',
128
+ [44]: 'Found `* async x(){}` but this should be `async * x(){}`',
129
+ [43]: 'Getters and setters can not be generators',
130
+ [45]: "'%0' can not be generator method",
131
+ [46]: "No line break is allowed after '=>'",
132
+ [47]: 'The left-hand side of the arrow can only be destructed through assignment',
133
+ [48]: 'The binding declaration is not destructible',
134
+ [49]: 'Async arrow can not be followed by new expression',
135
+ [50]: "Classes may not have a static property named 'prototype'",
136
+ [51]: 'Class constructor may not be a %0',
137
+ [52]: 'Duplicate constructor method in class',
138
+ [53]: 'Invalid increment/decrement operand',
139
+ [54]: 'Invalid use of `new` keyword on an increment/decrement expression',
140
+ [55]: '`=>` is an invalid assignment target',
141
+ [56]: 'Rest element may not have a trailing comma',
142
+ [57]: 'Missing initializer in %0 declaration',
143
+ [58]: "'for-%0' loop head declarations can not have an initializer",
144
+ [59]: 'Invalid left-hand side in for-%0 loop: Must have a single binding',
145
+ [60]: 'Invalid shorthand property initializer',
146
+ [61]: 'Property name __proto__ appears more than once in object literal',
147
+ [62]: 'Let is disallowed as a lexically bound name',
148
+ [63]: "Invalid use of '%0' inside new expression",
149
+ [64]: "Illegal 'use strict' directive in function with non-simple parameter list",
150
+ [65]: 'Identifier "let" disallowed as left-hand side expression in strict mode',
151
+ [66]: 'Illegal continue statement',
152
+ [67]: 'Illegal break statement',
153
+ [68]: 'Cannot have `let[...]` as a var name in strict mode',
154
+ [69]: 'Invalid destructuring assignment target',
155
+ [70]: 'Rest parameter may not have a default initializer',
156
+ [71]: 'The rest argument must the be last parameter',
157
+ [72]: 'Invalid rest argument',
158
+ [74]: 'In strict mode code, functions can only be declared at top level or inside a block',
159
+ [75]: 'In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement',
160
+ [76]: 'Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement',
161
+ [77]: "Class declaration can't appear in single-statement context",
162
+ [78]: 'Invalid left-hand side in for-%0',
163
+ [79]: 'Invalid assignment in for-%0',
164
+ [80]: 'for await (... of ...) is only valid in async functions and async generators',
165
+ [81]: 'The first token after the template expression should be a continuation of the template',
166
+ [83]: '`let` declaration not allowed here and `let` cannot be a regular var name in strict mode',
167
+ [82]: '`let \n [` is a restricted production at the start of a statement',
168
+ [84]: 'Catch clause requires exactly one parameter, not more (and no trailing comma)',
169
+ [85]: 'Catch clause parameter does not support default values',
170
+ [86]: 'Missing catch or finally after try',
171
+ [87]: 'More than one default clause in switch statement',
172
+ [88]: 'Illegal newline after throw',
173
+ [89]: 'Strict mode code may not include a with statement',
174
+ [90]: 'Illegal return statement',
175
+ [91]: 'The left hand side of the for-header binding declaration is not destructible',
176
+ [92]: 'new.target only allowed within functions',
177
+ [94]: "'#' not followed by identifier",
178
+ [100]: 'Invalid keyword',
179
+ [99]: "Can not use 'let' as a class name",
180
+ [98]: "'A lexical declaration can't define a 'let' binding",
181
+ [97]: 'Can not use `let` as variable name in strict mode',
182
+ [95]: "'%0' may not be used as an identifier in this context",
183
+ [96]: 'Await is only valid in async functions',
184
+ [101]: 'The %0 keyword can only be used with the module goal',
185
+ [102]: 'Unicode codepoint must not be greater than 0x10FFFF',
186
+ [103]: '%0 source must be string',
187
+ [104]: 'Only a identifier can be used to indicate alias',
188
+ [105]: "Only '*' or '{...}' can be imported after default",
189
+ [106]: 'Trailing decorator may be followed by method',
190
+ [107]: "Decorators can't be used with a constructor",
191
+ [109]: 'HTML comments are only allowed with web compatibility (Annex B)',
192
+ [110]: "The identifier 'let' must not be in expression position in strict mode",
193
+ [111]: 'Cannot assign to `eval` and `arguments` in strict mode',
194
+ [112]: "The left-hand side of a for-of loop may not start with 'let'",
195
+ [113]: 'Block body arrows can not be immediately invoked without a group',
196
+ [114]: 'Block body arrows can not be immediately accessed without a group',
197
+ [115]: 'Unexpected strict mode reserved word',
198
+ [116]: 'Unexpected eval or arguments in strict mode',
199
+ [117]: 'Decorators must not be followed by a semicolon',
200
+ [118]: 'Calling delete on expression not allowed in strict mode',
201
+ [119]: 'Pattern can not have a tail',
202
+ [121]: 'Can not have a `yield` expression on the left side of a ternary',
203
+ [122]: 'An arrow function can not have a postfix update operator',
204
+ [123]: 'Invalid object literal key character after generator star',
205
+ [124]: 'Private fields can not be deleted',
206
+ [126]: 'Classes may not have a field called constructor',
207
+ [125]: 'Classes may not have a private element named constructor',
208
+ [127]: 'A class field initializer may not contain arguments',
209
+ [128]: 'Generators can only be declared at the top level or inside a block',
210
+ [129]: 'Async methods are a restricted production and cannot have a newline following it',
211
+ [130]: 'Unexpected character after object literal property name',
212
+ [132]: 'Invalid key token',
213
+ [133]: "Label '%0' has already been declared",
214
+ [134]: 'continue statement must be nested within an iteration statement',
215
+ [135]: "Undefined label '%0'",
216
+ [136]: 'Trailing comma is disallowed inside import(...) arguments',
217
+ [137]: 'import() requires exactly one argument',
218
+ [138]: 'Cannot use new with import(...)',
219
+ [139]: '... is not allowed in import()',
220
+ [140]: "Expected '=>'",
221
+ [141]: "Duplicate binding '%0'",
222
+ [142]: "Cannot export a duplicate name '%0'",
223
+ [145]: 'Duplicate %0 for-binding',
224
+ [143]: "Exported binding '%0' needs to refer to a top-level declared variable",
225
+ [144]: 'Unexpected private field',
226
+ [148]: 'Numeric separators are not allowed at the end of numeric literals',
227
+ [147]: 'Only one underscore is allowed as numeric separator',
228
+ [149]: 'JSX value should be either an expression or a quoted JSX text',
229
+ [150]: 'Expected corresponding JSX closing tag for %0',
230
+ [151]: 'Adjacent JSX elements must be wrapped in an enclosing tag',
231
+ [152]: "JSX attributes must only be assigned a non-empty 'expression'",
232
+ [153]: "'%0' has already been declared",
233
+ [154]: "'%0' shadowed a catch clause binding",
234
+ [155]: 'Dot property must be an identifier',
235
+ [156]: 'Encountered invalid input after spread/rest argument',
236
+ [157]: 'Catch without try',
237
+ [158]: 'Finally without try',
238
+ [159]: 'Expected corresponding closing tag for JSX fragment',
239
+ [160]: 'Coalescing and logical operators used together in the same expression must be disambiguated with parentheses',
240
+ [161]: 'Invalid tagged template on optional chain',
241
+ [162]: 'Invalid optional chain from super property',
242
+ [163]: 'Invalid optional chain from new expression',
243
+ [164]: 'Cannot use "import.meta" outside a module',
244
+ [165]: 'Leading decorators must be attached to a class declaration'
240
245
  };
241
246
  class ParseError extends SyntaxError {
242
247
  constructor(startindex, line, column, type, ...params) {
@@ -938,7 +943,7 @@
938
943
  break;
939
944
  case 117:
940
945
  if (mask & 16)
941
- report(parser, 34, 'g');
946
+ report(parser, 34, 'u');
942
947
  mask |= 16;
943
948
  break;
944
949
  case 121:
@@ -951,6 +956,11 @@
951
956
  report(parser, 34, 's');
952
957
  mask |= 32;
953
958
  break;
959
+ case 100:
960
+ if (mask & 64)
961
+ report(parser, 34, 'd');
962
+ mask |= 64;
963
+ break;
954
964
  default:
955
965
  report(parser, 33);
956
966
  }
@@ -969,7 +979,13 @@
969
979
  return new RegExp(pattern, flags);
970
980
  }
971
981
  catch (e) {
972
- report(parser, 32);
982
+ try {
983
+ new RegExp(pattern, flags.replace('d', ''));
984
+ return null;
985
+ }
986
+ catch (e) {
987
+ report(parser, 32);
988
+ }
973
989
  }
974
990
  }
975
991
 
@@ -1157,7 +1173,7 @@
1157
1173
  case -4:
1158
1174
  report(state, 6);
1159
1175
  case -5:
1160
- report(state, 101);
1176
+ report(state, 102);
1161
1177
  }
1162
1178
  }
1163
1179
 
@@ -1270,7 +1286,7 @@
1270
1286
  while (CharTypes[char] & (64 | 4096)) {
1271
1287
  if (char === 95) {
1272
1288
  if (!allowSeparator)
1273
- report(parser, 146);
1289
+ report(parser, 147);
1274
1290
  allowSeparator = 0;
1275
1291
  char = advanceChar(parser);
1276
1292
  continue;
@@ -1280,8 +1296,8 @@
1280
1296
  digits++;
1281
1297
  char = advanceChar(parser);
1282
1298
  }
1283
- if (digits < 1 || !allowSeparator) {
1284
- report(parser, digits < 1 ? 19 : 147);
1299
+ if (digits === 0 || !allowSeparator) {
1300
+ report(parser, digits === 0 ? 19 : 148);
1285
1301
  }
1286
1302
  }
1287
1303
  else if ((char | 32) === 111) {
@@ -1290,7 +1306,7 @@
1290
1306
  while (CharTypes[char] & (32 | 4096)) {
1291
1307
  if (char === 95) {
1292
1308
  if (!allowSeparator) {
1293
- report(parser, 146);
1309
+ report(parser, 147);
1294
1310
  }
1295
1311
  allowSeparator = 0;
1296
1312
  char = advanceChar(parser);
@@ -1301,8 +1317,8 @@
1301
1317
  digits++;
1302
1318
  char = advanceChar(parser);
1303
1319
  }
1304
- if (digits < 1 || !allowSeparator) {
1305
- report(parser, digits < 1 ? 0 : 147);
1320
+ if (digits === 0 || !allowSeparator) {
1321
+ report(parser, digits === 0 ? 0 : 148);
1306
1322
  }
1307
1323
  }
1308
1324
  else if ((char | 32) === 98) {
@@ -1311,7 +1327,7 @@
1311
1327
  while (CharTypes[char] & (128 | 4096)) {
1312
1328
  if (char === 95) {
1313
1329
  if (!allowSeparator) {
1314
- report(parser, 146);
1330
+ report(parser, 147);
1315
1331
  }
1316
1332
  allowSeparator = 0;
1317
1333
  char = advanceChar(parser);
@@ -1322,8 +1338,8 @@
1322
1338
  digits++;
1323
1339
  char = advanceChar(parser);
1324
1340
  }
1325
- if (digits < 1 || !allowSeparator) {
1326
- report(parser, digits < 1 ? 0 : 147);
1341
+ if (digits === 0 || !allowSeparator) {
1342
+ report(parser, digits === 0 ? 0 : 148);
1327
1343
  }
1328
1344
  }
1329
1345
  else if (CharTypes[char] & 32) {
@@ -1356,7 +1372,7 @@
1356
1372
  if (char === 95) {
1357
1373
  char = advanceChar(parser);
1358
1374
  if (char === 95 || kind & 32) {
1359
- reportScannerError(parser.index, parser.line, parser.index + 1, 146);
1375
+ reportScannerError(parser.index, parser.line, parser.index + 1, 147);
1360
1376
  }
1361
1377
  allowSeparator = 1;
1362
1378
  continue;
@@ -1367,7 +1383,7 @@
1367
1383
  --digit;
1368
1384
  }
1369
1385
  if (allowSeparator) {
1370
- reportScannerError(parser.index, parser.line, parser.index + 1, 147);
1386
+ reportScannerError(parser.index, parser.line, parser.index + 1, 148);
1371
1387
  }
1372
1388
  if (digit >= 0 && !isIdentifierStart$1(char) && char !== 46) {
1373
1389
  parser.tokenValue = value;
@@ -1399,7 +1415,7 @@
1399
1415
  if (CharTypes[char] & 256)
1400
1416
  char = advanceChar(parser);
1401
1417
  const { index } = parser;
1402
- if ((CharTypes[char] & 16) < 1)
1418
+ if ((CharTypes[char] & 16) === 0)
1403
1419
  report(parser, 10);
1404
1420
  value += parser.source.substring(end, index) + scanDecimalDigitsOrSeparator(parser, char);
1405
1421
  char = parser.currentChar;
@@ -1432,7 +1448,7 @@
1432
1448
  const { index } = parser;
1433
1449
  char = advanceChar(parser);
1434
1450
  if (char === 95) {
1435
- reportScannerError(parser.index, parser.line, parser.index + 1, 146);
1451
+ reportScannerError(parser.index, parser.line, parser.index + 1, 147);
1436
1452
  }
1437
1453
  allowSeparator = 1;
1438
1454
  ret += parser.source.substring(start, index);
@@ -1443,7 +1459,7 @@
1443
1459
  char = advanceChar(parser);
1444
1460
  }
1445
1461
  if (allowSeparator) {
1446
- reportScannerError(parser.index, parser.line, parser.index + 1, 147);
1462
+ reportScannerError(parser.index, parser.line, parser.index + 1, 148);
1447
1463
  }
1448
1464
  return ret + parser.source.substring(start, parser.index);
1449
1465
  }
@@ -1532,7 +1548,7 @@
1532
1548
  function scanIdentifier(parser, context, isValidAsKeyword) {
1533
1549
  while (isIdPart[advanceChar(parser)]) { }
1534
1550
  parser.tokenValue = parser.source.slice(parser.tokenPos, parser.index);
1535
- return parser.currentChar !== 92 && parser.currentChar < 0x7e
1551
+ return parser.currentChar !== 92 && parser.currentChar <= 0x7e
1536
1552
  ? descKeywordTable[parser.tokenValue] || 208897
1537
1553
  : scanIdentifierSlowCase(parser, context, 0, isValidAsKeyword);
1538
1554
  }
@@ -1573,14 +1589,28 @@
1573
1589
  return 208897;
1574
1590
  if (!hasEscape)
1575
1591
  return token;
1592
+ if (token === 209008) {
1593
+ if ((context & (2048 | 4194304)) === 0) {
1594
+ return token;
1595
+ }
1596
+ return 121;
1597
+ }
1576
1598
  if (context & 1024) {
1577
- return token === 209008 && (context & (2048 | 4194304)) === 0
1578
- ? token
1579
- : token === 36972
1580
- ? 122
1581
- : (token & 36864) === 36864
1582
- ? 122
1583
- : 121;
1599
+ if (token === 36972) {
1600
+ return 122;
1601
+ }
1602
+ if ((token & 36864) === 36864) {
1603
+ return 122;
1604
+ }
1605
+ if ((token & 20480) === 20480) {
1606
+ if (context & 1073741824 && (context & 8192) === 0) {
1607
+ return token;
1608
+ }
1609
+ else {
1610
+ return 121;
1611
+ }
1612
+ }
1613
+ return 143483;
1584
1614
  }
1585
1615
  if (context & 1073741824 &&
1586
1616
  (context & 8192) === 0 &&
@@ -1593,19 +1623,19 @@
1593
1623
  ? 121
1594
1624
  : token;
1595
1625
  }
1596
- return token === 209007 && context & 1073741824
1597
- ? 143483
1598
- : (token & 36864) === 36864
1599
- ? token
1600
- : token === 209008 && (context & 4194304) === 0
1601
- ? token
1602
- : 121;
1626
+ if (token === 209007) {
1627
+ return 143483;
1628
+ }
1629
+ if ((token & 36864) === 36864) {
1630
+ return token;
1631
+ }
1632
+ return 121;
1603
1633
  }
1604
1634
  return 208897;
1605
1635
  }
1606
1636
  function scanPrivateIdentifier(parser) {
1607
1637
  if (!isIdentifierStart$1(advanceChar(parser)))
1608
- report(parser, 93);
1638
+ report(parser, 94);
1609
1639
  return 131;
1610
1640
  }
1611
1641
  function scanIdentifierUnicodeEscape(parser) {
@@ -1623,7 +1653,7 @@
1623
1653
  while (CharTypes[advanceChar(parser)] & 64) {
1624
1654
  codePoint = (codePoint << 4) | toHex(parser.currentChar);
1625
1655
  if (codePoint > 1114111)
1626
- reportScannerError(begin, parser.line, parser.index + 1, 101);
1656
+ reportScannerError(begin, parser.line, parser.index + 1, 102);
1627
1657
  }
1628
1658
  if (parser.currentChar !== 125) {
1629
1659
  reportScannerError(begin, parser.line, parser.index - 1, 6);
@@ -1880,7 +1910,7 @@
1880
1910
  return 8456258;
1881
1911
  }
1882
1912
  if (ch === 47) {
1883
- if ((context & 16) < 1)
1913
+ if ((context & 16) === 0)
1884
1914
  return 8456258;
1885
1915
  const index = parser.index + 1;
1886
1916
  if (index < parser.end) {
@@ -1964,7 +1994,7 @@
1964
1994
  advanceChar(parser);
1965
1995
  if ((state & 1 || isStartOfLine) && parser.currentChar === 62) {
1966
1996
  if ((context & 256) === 0)
1967
- report(parser, 108);
1997
+ report(parser, 109);
1968
1998
  advanceChar(parser);
1969
1999
  state = skipSingleHTMLComment(parser, source, state, context, 3, startPos, startLine, startColumn);
1970
2000
  startPos = parser.tokenPos;
@@ -4460,7 +4490,7 @@
4460
4490
  case 'AssignmentExpression':
4461
4491
  node.type = 'AssignmentPattern';
4462
4492
  if (node.operator !== '=')
4463
- report(state, 68);
4493
+ report(state, 69);
4464
4494
  delete node.operator;
4465
4495
  reinterpretToPattern(state, node.left);
4466
4496
  return;
@@ -4475,58 +4505,58 @@
4475
4505
  function validateBindingIdentifier(parser, context, kind, t, skipEvalArgCheck) {
4476
4506
  if (context & 1024) {
4477
4507
  if ((t & 36864) === 36864) {
4478
- report(parser, 114);
4508
+ report(parser, 115);
4479
4509
  }
4480
4510
  if (!skipEvalArgCheck && (t & 537079808) === 537079808) {
4481
- report(parser, 115);
4511
+ report(parser, 116);
4482
4512
  }
4483
4513
  }
4484
4514
  if ((t & 20480) === 20480) {
4485
- report(parser, 99);
4515
+ report(parser, 100);
4486
4516
  }
4487
4517
  if (kind & (8 | 16) && t === 241739) {
4488
- report(parser, 97);
4518
+ report(parser, 98);
4489
4519
  }
4490
4520
  if (context & (4194304 | 2048) && t === 209008) {
4491
- report(parser, 95);
4521
+ report(parser, 96);
4492
4522
  }
4493
4523
  if (context & (2097152 | 1024) && t === 241773) {
4494
- report(parser, 94, 'yield');
4524
+ report(parser, 95, 'yield');
4495
4525
  }
4496
4526
  }
4497
4527
  function validateFunctionName(parser, context, t) {
4498
4528
  if (context & 1024) {
4499
4529
  if ((t & 36864) === 36864) {
4500
- report(parser, 114);
4530
+ report(parser, 115);
4501
4531
  }
4502
4532
  if ((t & 537079808) === 537079808) {
4503
- report(parser, 115);
4533
+ report(parser, 116);
4504
4534
  }
4505
4535
  if (t === 122) {
4506
- report(parser, 92);
4536
+ report(parser, 93);
4507
4537
  }
4508
4538
  if (t === 121) {
4509
- report(parser, 92);
4539
+ report(parser, 93);
4510
4540
  }
4511
4541
  }
4512
4542
  if ((t & 20480) === 20480) {
4513
- report(parser, 99);
4543
+ report(parser, 100);
4514
4544
  }
4515
4545
  if (context & (4194304 | 2048) && t === 209008) {
4516
- report(parser, 95);
4546
+ report(parser, 96);
4517
4547
  }
4518
4548
  if (context & (2097152 | 1024) && t === 241773) {
4519
- report(parser, 94, 'yield');
4549
+ report(parser, 95, 'yield');
4520
4550
  }
4521
4551
  }
4522
4552
  function isStrictReservedWord$1(parser, context, t) {
4523
4553
  if (t === 209008) {
4524
4554
  if (context & (4194304 | 2048))
4525
- report(parser, 95);
4555
+ report(parser, 96);
4526
4556
  parser.destructible |= 128;
4527
4557
  }
4528
4558
  if (t === 241773 && context & 2097152)
4529
- report(parser, 94, 'yield');
4559
+ report(parser, 95, 'yield');
4530
4560
  return ((t & 20480) === 20480 ||
4531
4561
  (t & 36864) === 36864 ||
4532
4562
  t == 122);
@@ -4538,7 +4568,7 @@
4538
4568
  while (labels) {
4539
4569
  if (labels['$' + name]) {
4540
4570
  if (isIterationStatement)
4541
- report(parser, 133);
4571
+ report(parser, 134);
4542
4572
  return 1;
4543
4573
  }
4544
4574
  if (isIterationStatement && labels.loop)
@@ -4551,7 +4581,7 @@
4551
4581
  let set = labels;
4552
4582
  while (set) {
4553
4583
  if (set['$' + name])
4554
- report(parser, 132, name);
4584
+ report(parser, 133, name);
4555
4585
  set = set['$'];
4556
4586
  }
4557
4587
  labels['$' + name] = 1;
@@ -4632,27 +4662,27 @@
4632
4662
  const value = scope['#' + name];
4633
4663
  if (value && (value & 2) === 0) {
4634
4664
  if (kind & 1) {
4635
- scope.scopeError = recordScopeError(parser, 140, name);
4665
+ scope.scopeError = recordScopeError(parser, 141, name);
4636
4666
  }
4637
4667
  else if (context & 256 &&
4638
4668
  value & 64 &&
4639
4669
  origin & 2) ;
4640
4670
  else {
4641
- report(parser, 140, name);
4671
+ report(parser, 141, name);
4642
4672
  }
4643
4673
  }
4644
4674
  if (scope.type & 128 &&
4645
4675
  (scope.parent['#' + name] && (scope.parent['#' + name] & 2) === 0)) {
4646
- report(parser, 140, name);
4676
+ report(parser, 141, name);
4647
4677
  }
4648
4678
  if (scope.type & 1024 && value && (value & 2) === 0) {
4649
4679
  if (kind & 1) {
4650
- scope.scopeError = recordScopeError(parser, 140, name);
4680
+ scope.scopeError = recordScopeError(parser, 141, name);
4651
4681
  }
4652
4682
  }
4653
4683
  if (scope.type & 64) {
4654
4684
  if (scope.parent['#' + name] & 768)
4655
- report(parser, 153, name);
4685
+ report(parser, 154, name);
4656
4686
  }
4657
4687
  scope['#' + name] = kind;
4658
4688
  }
@@ -4666,19 +4696,19 @@
4666
4696
  ((kind & 128 && value & 68) ||
4667
4697
  (value & 128 && kind & 68))) ;
4668
4698
  else {
4669
- report(parser, 140, name);
4699
+ report(parser, 141, name);
4670
4700
  }
4671
4701
  }
4672
4702
  if (currentScope === scope) {
4673
4703
  if (value & 1 && kind & 1) {
4674
- currentScope.scopeError = recordScopeError(parser, 140, name);
4704
+ currentScope.scopeError = recordScopeError(parser, 141, name);
4675
4705
  }
4676
4706
  }
4677
4707
  if (value & (512 | 256)) {
4678
4708
  if ((value & 512) === 0 ||
4679
4709
  (context & 256) === 0 ||
4680
4710
  context & 1024) {
4681
- report(parser, 140, name);
4711
+ report(parser, 141, name);
4682
4712
  }
4683
4713
  }
4684
4714
  currentScope['#' + name] = kind;
@@ -4688,7 +4718,7 @@
4688
4718
  function declareUnboundVariable(parser, name) {
4689
4719
  if (parser.exportedNames !== void 0 && name !== '') {
4690
4720
  if (parser.exportedNames['#' + name]) {
4691
- report(parser, 141, name);
4721
+ report(parser, 142, name);
4692
4722
  }
4693
4723
  parser.exportedNames['#' + name] = 1;
4694
4724
  }
@@ -4746,7 +4776,7 @@
4746
4776
  function classifyIdentifier(parser, context, t, isArrow) {
4747
4777
  if ((t & 537079808) === 537079808) {
4748
4778
  if (context & 1024)
4749
- report(parser, 115);
4779
+ report(parser, 116);
4750
4780
  if (isArrow)
4751
4781
  parser.flags |= 512;
4752
4782
  }
@@ -4839,7 +4869,7 @@
4839
4869
  if (scope) {
4840
4870
  for (const key in parser.exportedBindings) {
4841
4871
  if (key[0] === '#' && !scope[key])
4842
- report(parser, 142, key.slice(1));
4872
+ report(parser, 143, key.slice(1));
4843
4873
  }
4844
4874
  }
4845
4875
  }
@@ -4909,7 +4939,7 @@
4909
4939
  moduleItem = parseStatementListItem(parser, context, scope, 4, {});
4910
4940
  }
4911
4941
  if (parser.leadingDecorators.length) {
4912
- report(parser, 164);
4942
+ report(parser, 165);
4913
4943
  }
4914
4944
  return moduleItem;
4915
4945
  }
@@ -4928,7 +4958,7 @@
4928
4958
  case 241739:
4929
4959
  return parseLetIdentOrVarDeclarationStatement(parser, context, scope, origin, start, line, column);
4930
4960
  case 20566:
4931
- report(parser, 100, 'export');
4961
+ report(parser, 101, 'export');
4932
4962
  case 86108:
4933
4963
  nextToken(parser, context);
4934
4964
  switch (parser.token) {
@@ -4937,7 +4967,7 @@
4937
4967
  case 67108877:
4938
4968
  return parseImportMetaDeclaration(parser, context, start, line, column);
4939
4969
  default:
4940
- report(parser, 100, 'import');
4970
+ report(parser, 101, 'import');
4941
4971
  }
4942
4972
  case 209007:
4943
4973
  return parseAsyncArrowOrAsyncFunctionDeclaration(parser, context, scope, origin, labels, 1, start, line, column);
@@ -4980,17 +5010,17 @@
4980
5010
  case 209007:
4981
5011
  return parseAsyncArrowOrAsyncFunctionDeclaration(parser, context, scope, origin, labels, 0, start, line, column);
4982
5012
  case 20559:
4983
- report(parser, 156);
4984
- case 20568:
4985
5013
  report(parser, 157);
5014
+ case 20568:
5015
+ report(parser, 158);
4986
5016
  case 86106:
4987
5017
  report(parser, context & 1024
4988
- ? 73
4989
- : (context & 256) < 1
4990
- ? 75
4991
- : 74);
5018
+ ? 74
5019
+ : (context & 256) === 0
5020
+ ? 76
5021
+ : 75);
4992
5022
  case 86096:
4993
- report(parser, 76);
5023
+ report(parser, 77);
4994
5024
  default:
4995
5025
  return parseExpressionOrLabelledStatement(parser, context, scope, origin, labels, allowFuncDecl, start, line, column);
4996
5026
  }
@@ -5002,9 +5032,9 @@
5002
5032
  case 241739:
5003
5033
  expr = parseIdentifier(parser, context, 0);
5004
5034
  if (context & 1024)
5005
- report(parser, 82);
5035
+ report(parser, 83);
5006
5036
  if (parser.token === 69271571)
5007
- report(parser, 81);
5037
+ report(parser, 82);
5008
5038
  break;
5009
5039
  default:
5010
5040
  expr = parsePrimaryExpression(parser, context, 2, 0, 1, 0, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
@@ -5032,8 +5062,8 @@
5032
5062
  });
5033
5063
  }
5034
5064
  function parseReturnStatement(parser, context, start, line, column) {
5035
- if ((context & 32) < 1 && context & 8192)
5036
- report(parser, 89);
5065
+ if ((context & 32) === 0 && context & 8192)
5066
+ report(parser, 90);
5037
5067
  nextToken(parser, context | 32768);
5038
5068
  const argument = parser.flags & 1 || parser.token & 1048576
5039
5069
  ? null
@@ -5056,7 +5086,7 @@
5056
5086
  validateAndDeclareLabel(parser, labels, value);
5057
5087
  nextToken(parser, context | 32768);
5058
5088
  const body = allowFuncDecl &&
5059
- (context & 1024) < 1 &&
5089
+ (context & 1024) === 0 &&
5060
5090
  context & 256 &&
5061
5091
  parser.token === 86106
5062
5092
  ? parseFunctionDeclaration(parser, context, addChildScope(scope, 2), origin, 0, 0, 0, parser.tokenPos, parser.linePos, parser.colPos)
@@ -5077,7 +5107,7 @@
5077
5107
  if (!asyncNewLine) {
5078
5108
  if (parser.token === 86106) {
5079
5109
  if (!allowFuncDecl)
5080
- report(parser, 119);
5110
+ report(parser, 120);
5081
5111
  return parseFunctionDeclaration(parser, context, scope, origin, 1, 0, 1, start, line, column);
5082
5112
  }
5083
5113
  if ((parser.token & 143360) === 143360) {
@@ -5136,7 +5166,7 @@
5136
5166
  function parseThrowStatement(parser, context, start, line, column) {
5137
5167
  nextToken(parser, context | 32768);
5138
5168
  if (parser.flags & 1)
5139
- report(parser, 87);
5169
+ report(parser, 88);
5140
5170
  const argument = parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
5141
5171
  matchOrInsertSemicolon(parser, context | 32768);
5142
5172
  return finishNode(parser, context, start, line, column, {
@@ -5165,7 +5195,7 @@
5165
5195
  }
5166
5196
  function parseConsequentOrAlternative(parser, context, scope, labels, start, line, column) {
5167
5197
  return context & 1024 ||
5168
- (context & 256) < 1 ||
5198
+ (context & 256) === 0 ||
5169
5199
  parser.token !== 86106
5170
5200
  ? parseStatement(parser, context, scope, 0, { $: labels }, 0, parser.tokenPos, parser.linePos, parser.colPos)
5171
5201
  : parseFunctionDeclaration(parser, context, addChildScope(scope, 2), 0, 0, 0, 0, start, line, column);
@@ -5190,7 +5220,7 @@
5190
5220
  else {
5191
5221
  consume(parser, context | 32768, 20563);
5192
5222
  if (seenDefault)
5193
- report(parser, 86);
5223
+ report(parser, 87);
5194
5224
  seenDefault = 1;
5195
5225
  }
5196
5226
  consume(parser, context | 32768, 21);
@@ -5230,15 +5260,15 @@
5230
5260
  return parseStatement(parser, ((context | 134217728) ^ 134217728) | 131072, scope, 0, { loop: 1, $: labels }, 0, parser.tokenPos, parser.linePos, parser.colPos);
5231
5261
  }
5232
5262
  function parseContinueStatement(parser, context, labels, start, line, column) {
5233
- if ((context & 131072) < 1)
5234
- report(parser, 65);
5263
+ if ((context & 131072) === 0)
5264
+ report(parser, 66);
5235
5265
  nextToken(parser, context);
5236
5266
  let label = null;
5237
- if ((parser.flags & 1) < 1 && parser.token & 143360) {
5267
+ if ((parser.flags & 1) === 0 && parser.token & 143360) {
5238
5268
  const { tokenValue } = parser;
5239
5269
  label = parseIdentifier(parser, context | 32768, 0);
5240
5270
  if (!isValidLabel(parser, labels, tokenValue, 1))
5241
- report(parser, 134, tokenValue);
5271
+ report(parser, 135, tokenValue);
5242
5272
  }
5243
5273
  matchOrInsertSemicolon(parser, context | 32768);
5244
5274
  return finishNode(parser, context, start, line, column, {
@@ -5249,14 +5279,14 @@
5249
5279
  function parseBreakStatement(parser, context, labels, start, line, column) {
5250
5280
  nextToken(parser, context | 32768);
5251
5281
  let label = null;
5252
- if ((parser.flags & 1) < 1 && parser.token & 143360) {
5282
+ if ((parser.flags & 1) === 0 && parser.token & 143360) {
5253
5283
  const { tokenValue } = parser;
5254
5284
  label = parseIdentifier(parser, context | 32768, 0);
5255
5285
  if (!isValidLabel(parser, labels, tokenValue, 0))
5256
- report(parser, 134, tokenValue);
5286
+ report(parser, 135, tokenValue);
5257
5287
  }
5258
- else if ((context & (4096 | 131072)) < 1) {
5259
- report(parser, 66);
5288
+ else if ((context & (4096 | 131072)) === 0) {
5289
+ report(parser, 67);
5260
5290
  }
5261
5291
  matchOrInsertSemicolon(parser, context | 32768);
5262
5292
  return finishNode(parser, context, start, line, column, {
@@ -5267,7 +5297,7 @@
5267
5297
  function parseWithStatement(parser, context, scope, labels, start, line, column) {
5268
5298
  nextToken(parser, context);
5269
5299
  if (context & 1024)
5270
- report(parser, 88);
5300
+ report(parser, 89);
5271
5301
  consume(parser, context | 32768, 67174411);
5272
5302
  const object = parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
5273
5303
  consume(parser, context | 32768, 16);
@@ -5300,7 +5330,7 @@
5300
5330
  finalizer = parseBlock(parser, context, finalizerScope, { $: labels }, parser.tokenPos, parser.linePos, parser.colPos);
5301
5331
  }
5302
5332
  if (!handler && !finalizer) {
5303
- report(parser, 85);
5333
+ report(parser, 86);
5304
5334
  }
5305
5335
  return finishNode(parser, context, start, line, column, {
5306
5336
  type: 'TryStatement',
@@ -5319,10 +5349,10 @@
5319
5349
  ? 256
5320
5350
  : 512, 0, parser.tokenPos, parser.linePos, parser.colPos);
5321
5351
  if (parser.token === 18) {
5322
- report(parser, 83);
5352
+ report(parser, 84);
5323
5353
  }
5324
5354
  else if (parser.token === 1077936157) {
5325
- report(parser, 84);
5355
+ report(parser, 85);
5326
5356
  }
5327
5357
  consume(parser, context | 32768, 16);
5328
5358
  if (scope)
@@ -5335,6 +5365,17 @@
5335
5365
  body
5336
5366
  });
5337
5367
  }
5368
+ function parseStaticBlock(parser, context, scope, start, line, column) {
5369
+ if (scope)
5370
+ scope = addChildScope(scope, 2);
5371
+ const ctorContext = 16384 | 524288;
5372
+ context = ((context | ctorContext) ^ ctorContext) | 262144;
5373
+ const { body } = parseBlock(parser, context, scope, {}, start, line, column);
5374
+ return finishNode(parser, context, start, line, column, {
5375
+ type: 'StaticBlock',
5376
+ body
5377
+ });
5378
+ }
5338
5379
  function parseDoWhileStatement(parser, context, scope, labels, start, line, column) {
5339
5380
  nextToken(parser, context | 32768);
5340
5381
  const body = parseIterationStatementBody(parser, context, scope, labels);
@@ -5363,7 +5404,7 @@
5363
5404
  }
5364
5405
  parser.assignable = 1;
5365
5406
  if (context & 1024)
5366
- report(parser, 82);
5407
+ report(parser, 83);
5367
5408
  if (parser.token === 21) {
5368
5409
  return parseLabelledStatement(parser, context, scope, origin, {}, tokenValue, expr, token, 0, start, line, column);
5369
5410
  }
@@ -5411,7 +5452,7 @@
5411
5452
  list.push(parseVariableDeclaration(parser, context, scope, kind, origin));
5412
5453
  }
5413
5454
  if (bindingCount > 1 && origin & 32 && parser.token & 262144) {
5414
- report(parser, 58, KeywordDescTable[parser.token & 255]);
5455
+ report(parser, 59, KeywordDescTable[parser.token & 255]);
5415
5456
  }
5416
5457
  return list;
5417
5458
  }
@@ -5422,17 +5463,17 @@
5422
5463
  if (parser.token === 1077936157) {
5423
5464
  nextToken(parser, context | 32768);
5424
5465
  init = parseExpression(parser, context, 1, 0, 0, parser.tokenPos, parser.linePos, parser.colPos);
5425
- if (origin & 32 || (token & 2097152) < 1) {
5466
+ if (origin & 32 || (token & 2097152) === 0) {
5426
5467
  if (parser.token === 274549 ||
5427
5468
  (parser.token === 8738868 &&
5428
- (token & 2097152 || (kind & 4) < 1 || context & 1024))) {
5429
- reportMessageAt(tokenPos, parser.line, parser.index - 3, 57, parser.token === 274549 ? 'of' : 'in');
5469
+ (token & 2097152 || (kind & 4) === 0 || context & 1024))) {
5470
+ reportMessageAt(tokenPos, parser.line, parser.index - 3, 58, parser.token === 274549 ? 'of' : 'in');
5430
5471
  }
5431
5472
  }
5432
5473
  }
5433
5474
  else if ((kind & 16 || (token & 2097152) > 0) &&
5434
5475
  (parser.token & 262144) !== 262144) {
5435
- report(parser, 56, kind & 16 ? 'const' : 'destructuring');
5476
+ report(parser, 57, kind & 16 ? 'const' : 'destructuring');
5436
5477
  }
5437
5478
  return finishNode(parser, context, tokenPos, linePos, colPos, {
5438
5479
  type: 'VariableDeclarator',
@@ -5442,7 +5483,8 @@
5442
5483
  }
5443
5484
  function parseForStatement(parser, context, scope, labels, start, line, column) {
5444
5485
  nextToken(parser, context);
5445
- const forAwait = (context & 4194304) > 0 && consumeOpt(parser, context, 209008);
5486
+ const forAwait = ((context & 4194304) > 0 || ((context & 2048) > 0 && (context & 8192) > 0)) &&
5487
+ consumeOpt(parser, context, 209008);
5446
5488
  consume(parser, context | 32768, 67174411);
5447
5489
  if (scope)
5448
5490
  scope = addChildScope(scope, 1);
@@ -5459,7 +5501,7 @@
5459
5501
  if (parser.token & (143360 | 2097152)) {
5460
5502
  if (parser.token === 8738868) {
5461
5503
  if (context & 1024)
5462
- report(parser, 64);
5504
+ report(parser, 65);
5463
5505
  }
5464
5506
  else {
5465
5507
  init = finishNode(parser, context, tokenPos, linePos, colPos, {
@@ -5471,14 +5513,14 @@
5471
5513
  parser.assignable = 1;
5472
5514
  }
5473
5515
  else if (context & 1024) {
5474
- report(parser, 64);
5516
+ report(parser, 65);
5475
5517
  }
5476
5518
  else {
5477
5519
  isVarDecl = false;
5478
5520
  parser.assignable = 1;
5479
5521
  init = parseMemberOrUpdateExpression(parser, context, init, 0, 0, tokenPos, linePos, colPos);
5480
5522
  if (parser.token === 274549)
5481
- report(parser, 111);
5523
+ report(parser, 112);
5482
5524
  }
5483
5525
  }
5484
5526
  else {
@@ -5499,7 +5541,7 @@
5499
5541
  }
5500
5542
  else if (token === 1074790417) {
5501
5543
  if (forAwait)
5502
- report(parser, 79);
5544
+ report(parser, 80);
5503
5545
  }
5504
5546
  else if ((token & 2097152) === 2097152) {
5505
5547
  init =
@@ -5508,7 +5550,7 @@
5508
5550
  : parseArrayExpressionOrPattern(parser, context, void 0, 1, 0, 0, 2, 32, tokenPos, linePos, colPos);
5509
5551
  destructible = parser.destructible;
5510
5552
  if (context & 256 && destructible & 64) {
5511
- report(parser, 60);
5553
+ report(parser, 61);
5512
5554
  }
5513
5555
  parser.assignable =
5514
5556
  destructible & 16 ? 2 : 1;
@@ -5520,7 +5562,7 @@
5520
5562
  if ((parser.token & 262144) === 262144) {
5521
5563
  if (parser.token === 274549) {
5522
5564
  if (parser.assignable & 2)
5523
- report(parser, 77, forAwait ? 'await' : 'of');
5565
+ report(parser, 78, forAwait ? 'await' : 'of');
5524
5566
  reinterpretToPattern(parser, init);
5525
5567
  nextToken(parser, context | 32768);
5526
5568
  right = parseExpression(parser, context, 1, 0, 0, parser.tokenPos, parser.linePos, parser.colPos);
@@ -5535,11 +5577,11 @@
5535
5577
  });
5536
5578
  }
5537
5579
  if (parser.assignable & 2)
5538
- report(parser, 77, 'in');
5580
+ report(parser, 78, 'in');
5539
5581
  reinterpretToPattern(parser, init);
5540
5582
  nextToken(parser, context | 32768);
5541
5583
  if (forAwait)
5542
- report(parser, 79);
5584
+ report(parser, 80);
5543
5585
  right = parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
5544
5586
  consume(parser, context | 32768, 16);
5545
5587
  const body = parseIterationStatementBody(parser, context, scope, labels);
@@ -5551,10 +5593,10 @@
5551
5593
  });
5552
5594
  }
5553
5595
  if (forAwait)
5554
- report(parser, 79);
5596
+ report(parser, 80);
5555
5597
  if (!isVarDecl) {
5556
5598
  if (destructible & 8 && parser.token !== 1077936157) {
5557
- report(parser, 77, 'loop');
5599
+ report(parser, 78, 'loop');
5558
5600
  }
5559
5601
  init = parseAssignmentExpression(parser, context | 134217728, 0, 0, tokenPos, linePos, colPos, init);
5560
5602
  }
@@ -5578,9 +5620,9 @@
5578
5620
  }
5579
5621
  function parseRestrictedIdentifier(parser, context, scope) {
5580
5622
  if (!isValidIdentifier$1(context, parser.token))
5581
- report(parser, 114);
5582
- if ((parser.token & 537079808) === 537079808)
5583
5623
  report(parser, 115);
5624
+ if ((parser.token & 537079808) === 537079808)
5625
+ report(parser, 116);
5584
5626
  if (scope)
5585
5627
  addBlockName(parser, context, scope, parser.tokenValue, 8, 0);
5586
5628
  return parseIdentifier(parser, context, 0);
@@ -5614,7 +5656,7 @@
5614
5656
  parseImportSpecifierOrNamedImports(parser, context, scope, specifiers);
5615
5657
  break;
5616
5658
  default:
5617
- report(parser, 104);
5659
+ report(parser, 105);
5618
5660
  }
5619
5661
  }
5620
5662
  }
@@ -5658,7 +5700,7 @@
5658
5700
  function parseModuleSpecifier(parser, context) {
5659
5701
  consumeOpt(parser, context, 12404);
5660
5702
  if (parser.token !== 134283267)
5661
- report(parser, 102, 'Import');
5703
+ report(parser, 103, 'Import');
5662
5704
  return parseLiteral(parser, context);
5663
5705
  }
5664
5706
  function parseImportSpecifierOrNamedImports(parser, context, scope, specifiers) {
@@ -5669,7 +5711,7 @@
5669
5711
  let local;
5670
5712
  if (consumeOpt(parser, context, 77934)) {
5671
5713
  if ((parser.token & 134217728) === 134217728 || parser.token === 18) {
5672
- report(parser, 103);
5714
+ report(parser, 104);
5673
5715
  }
5674
5716
  else {
5675
5717
  validateBindingIdentifier(parser, context, 16, parser.token, 0);
@@ -5706,6 +5748,9 @@
5706
5748
  function parseImportCallDeclaration(parser, context, start, line, column) {
5707
5749
  let expr = parseImportExpression(parser, context, 0, start, line, column);
5708
5750
  expr = parseMemberOrUpdateExpression(parser, context, expr, 0, 0, start, line, column);
5751
+ if (parser.token === 18) {
5752
+ expr = parseSequenceExpression(parser, context, 0, start, line, column, expr);
5753
+ }
5709
5754
  return parseExpressionStatement(parser, context, expr, start, line, column);
5710
5755
  }
5711
5756
  function parseExportDeclaration(parser, context, scope) {
@@ -5731,7 +5776,7 @@
5731
5776
  const { tokenPos, linePos, colPos } = parser;
5732
5777
  declaration = parseIdentifier(parser, context, 0);
5733
5778
  const { flags } = parser;
5734
- if ((flags & 1) < 1) {
5779
+ if ((flags & 1) === 0) {
5735
5780
  if (parser.token === 86106) {
5736
5781
  declaration = parseFunctionDeclaration(parser, context, scope, 4, 1, 1, 1, tokenPos, linePos, colPos);
5737
5782
  }
@@ -5773,7 +5818,7 @@
5773
5818
  }
5774
5819
  consume(parser, context, 12404);
5775
5820
  if (parser.token !== 134283267)
5776
- report(parser, 102, 'Export');
5821
+ report(parser, 103, 'Export');
5777
5822
  source = parseLiteral(parser, context);
5778
5823
  matchOrInsertSemicolon(parser, context | 32768);
5779
5824
  return finishNode(parser, context, start, line, column, {
@@ -5793,7 +5838,7 @@
5793
5838
  if (parser.token === 77934) {
5794
5839
  nextToken(parser, context);
5795
5840
  if ((parser.token & 134217728) === 134217728) {
5796
- report(parser, 103);
5841
+ report(parser, 104);
5797
5842
  }
5798
5843
  if (scope) {
5799
5844
  tmpExportedNames.push(parser.tokenValue);
@@ -5819,7 +5864,7 @@
5819
5864
  consume(parser, context, 1074790415);
5820
5865
  if (consumeOpt(parser, context, 12404)) {
5821
5866
  if (parser.token !== 134283267)
5822
- report(parser, 102, 'Export');
5867
+ report(parser, 103, 'Export');
5823
5868
  source = parseLiteral(parser, context);
5824
5869
  }
5825
5870
  else if (scope) {
@@ -5855,7 +5900,7 @@
5855
5900
  case 209007:
5856
5901
  const { tokenPos, linePos, colPos } = parser;
5857
5902
  nextToken(parser, context);
5858
- if ((parser.flags & 1) < 1 && parser.token === 86106) {
5903
+ if ((parser.flags & 1) === 0 && parser.token === 86106) {
5859
5904
  declaration = parseFunctionDeclaration(parser, context, scope, 4, 1, 2, 1, tokenPos, linePos, colPos);
5860
5905
  if (scope) {
5861
5906
  key = declaration.id ? declaration.id.name : '';
@@ -5968,7 +6013,7 @@
5968
6013
  t = parser.token;
5969
6014
  prec = t & 3840;
5970
6015
  if ((t & 524288 && operator & 268435456) || (operator & 524288 && t & 268435456)) {
5971
- report(parser, 159);
6016
+ report(parser, 160);
5972
6017
  }
5973
6018
  if (prec + ((t === 8457273) << 8) - ((bit === t) << 12) <= minPrec)
5974
6019
  break;
@@ -5994,10 +6039,10 @@
5994
6039
  report(parser, 31);
5995
6040
  if (context & 1024 && unaryOperator === 16863278) {
5996
6041
  if (arg.type === 'Identifier') {
5997
- report(parser, 117);
6042
+ report(parser, 118);
5998
6043
  }
5999
6044
  else if (isPropertyWithPrivateFieldKey(arg)) {
6000
- report(parser, 123);
6045
+ report(parser, 124);
6001
6046
  }
6002
6047
  }
6003
6048
  parser.assignable = 2;
@@ -6012,7 +6057,7 @@
6012
6057
  const { token } = parser;
6013
6058
  const expr = parseIdentifier(parser, context, isPattern);
6014
6059
  const { flags } = parser;
6015
- if ((flags & 1) < 1) {
6060
+ if ((flags & 1) === 0) {
6016
6061
  if (parser.token === 86106) {
6017
6062
  return parseFunctionExpression(parser, context, 1, inGroup, start, line, column);
6018
6063
  }
@@ -6028,7 +6073,7 @@
6028
6073
  if (parser.token === 10) {
6029
6074
  classifyIdentifier(parser, context, token, 1);
6030
6075
  if (inNew)
6031
- report(parser, 48);
6076
+ report(parser, 49);
6032
6077
  return parseArrowFromIdentifier(parser, context, parser.tokenValue, expr, inNew, canAssign, 0, start, line, column);
6033
6078
  }
6034
6079
  return expr;
@@ -6043,10 +6088,10 @@
6043
6088
  if (!canAssign)
6044
6089
  report(parser, 24);
6045
6090
  if (parser.token === 22)
6046
- report(parser, 120);
6091
+ report(parser, 121);
6047
6092
  let argument = null;
6048
6093
  let delegate = false;
6049
- if ((parser.flags & 1) < 1) {
6094
+ if ((parser.flags & 1) === 0) {
6050
6095
  delegate = consumeOpt(parser, context | 32768, 8457014);
6051
6096
  if (parser.token & (12288 | 65536) || delegate) {
6052
6097
  argument = parseExpression(parser, context, 1, 0, 0, parser.tokenPos, parser.linePos, parser.colPos);
@@ -6060,7 +6105,7 @@
6060
6105
  });
6061
6106
  }
6062
6107
  if (context & 1024)
6063
- report(parser, 94, 'yield');
6108
+ report(parser, 95, 'yield');
6064
6109
  return parseIdentifierOrArrow(parser, context, start, line, column);
6065
6110
  }
6066
6111
  function parseAwaitExpression(parser, context, inNew, inGroup, start, line, column) {
@@ -6083,7 +6128,7 @@
6083
6128
  });
6084
6129
  }
6085
6130
  if (context & 2048)
6086
- report(parser, 95);
6131
+ report(parser, 96);
6087
6132
  return parseIdentifierOrArrow(parser, context, start, line, column);
6088
6133
  }
6089
6134
  function parseFunctionBody(parser, context, scope, origin, firstRestricted, scopeError) {
@@ -6098,7 +6143,7 @@
6098
6143
  if (isValidStrictMode(parser, index, tokenPos, tokenValue)) {
6099
6144
  context |= 1024;
6100
6145
  if (parser.flags & 128) {
6101
- reportMessageAt(parser.index, parser.line, parser.tokenPos, 63);
6146
+ reportMessageAt(parser.index, parser.line, parser.tokenPos, 64);
6102
6147
  }
6103
6148
  if (parser.flags & 64) {
6104
6149
  reportMessageAt(parser.index, parser.line, parser.tokenPos, 8);
@@ -6109,22 +6154,22 @@
6109
6154
  if (context & 1024) {
6110
6155
  if (firstRestricted) {
6111
6156
  if ((firstRestricted & 537079808) === 537079808) {
6112
- report(parser, 115);
6157
+ report(parser, 116);
6113
6158
  }
6114
6159
  if ((firstRestricted & 36864) === 36864) {
6115
6160
  report(parser, 38);
6116
6161
  }
6117
6162
  }
6118
6163
  if (parser.flags & 512)
6119
- report(parser, 115);
6164
+ report(parser, 116);
6120
6165
  if (parser.flags & 256)
6121
- report(parser, 114);
6166
+ report(parser, 115);
6122
6167
  }
6123
6168
  if (context & 64 &&
6124
6169
  scope &&
6125
6170
  scopeError !== void 0 &&
6126
- (prevContext & 1024) < 1 &&
6127
- (context & 8192) < 1) {
6171
+ (prevContext & 1024) === 0 &&
6172
+ (context & 8192) === 0) {
6128
6173
  reportScopeError(scopeError);
6129
6174
  }
6130
6175
  }
@@ -6148,9 +6193,9 @@
6148
6193
  nextToken(parser, context);
6149
6194
  switch (parser.token) {
6150
6195
  case 67108991:
6151
- report(parser, 161);
6196
+ report(parser, 162);
6152
6197
  case 67174411: {
6153
- if ((context & 524288) < 1)
6198
+ if ((context & 524288) === 0)
6154
6199
  report(parser, 26);
6155
6200
  if (context & 16384)
6156
6201
  report(parser, 27);
@@ -6159,7 +6204,7 @@
6159
6204
  }
6160
6205
  case 69271571:
6161
6206
  case 67108877: {
6162
- if ((context & 262144) < 1)
6207
+ if ((context & 262144) === 0)
6163
6208
  report(parser, 27);
6164
6209
  if (context & 16384)
6165
6210
  report(parser, 27);
@@ -6177,7 +6222,7 @@
6177
6222
  }
6178
6223
  function parseUpdateExpression(parser, context, expr, start, line, column) {
6179
6224
  if (parser.assignable & 2)
6180
- report(parser, 52);
6225
+ report(parser, 53);
6181
6226
  const { token } = parser;
6182
6227
  nextToken(parser, context);
6183
6228
  parser.assignable = 2;
@@ -6189,7 +6234,7 @@
6189
6234
  });
6190
6235
  }
6191
6236
  function parseMemberOrUpdateExpression(parser, context, expr, inGroup, inChain, start, line, column) {
6192
- if ((parser.token & 33619968) === 33619968 && (parser.flags & 1) < 1) {
6237
+ if ((parser.token & 33619968) === 33619968 && (parser.flags & 1) === 0) {
6193
6238
  expr = parseUpdateExpression(parser, context, expr, start, line, column);
6194
6239
  }
6195
6240
  else if ((parser.token & 67108864) === 67108864) {
@@ -6260,7 +6305,7 @@
6260
6305
  }
6261
6306
  default:
6262
6307
  if ((parser.flags & 2048) === 2048) {
6263
- report(parser, 160);
6308
+ report(parser, 161);
6264
6309
  }
6265
6310
  parser.assignable = 2;
6266
6311
  expr = finishNode(parser, context, start, line, column, {
@@ -6316,8 +6361,8 @@
6316
6361
  });
6317
6362
  }
6318
6363
  else {
6319
- if ((parser.token & (143360 | 4096)) < 1)
6320
- report(parser, 154);
6364
+ if ((parser.token & (143360 | 4096)) === 0)
6365
+ report(parser, 155);
6321
6366
  const property = parseIdentifier(parser, context, 0);
6322
6367
  parser.assignable = 2;
6323
6368
  node = finishNode(parser, context, start, line, column, {
@@ -6334,8 +6379,8 @@
6334
6379
  return node;
6335
6380
  }
6336
6381
  function parsePropertyOrPrivatePropertyName(parser, context) {
6337
- if ((parser.token & (143360 | 4096)) < 1 && parser.token !== 131) {
6338
- report(parser, 154);
6382
+ if ((parser.token & (143360 | 4096)) === 0 && parser.token !== 131) {
6383
+ report(parser, 155);
6339
6384
  }
6340
6385
  return context & 1 && parser.token === 131
6341
6386
  ? parsePrivateIdentifier(parser, context, parser.tokenPos, parser.linePos, parser.colPos)
@@ -6343,14 +6388,14 @@
6343
6388
  }
6344
6389
  function parseUpdateExpressionPrefixed(parser, context, inNew, isLHS, start, line, column) {
6345
6390
  if (inNew)
6346
- report(parser, 53);
6391
+ report(parser, 54);
6347
6392
  if (!isLHS)
6348
6393
  report(parser, 0);
6349
6394
  const { token } = parser;
6350
6395
  nextToken(parser, context | 32768);
6351
6396
  const arg = parseLeftHandSideExpression(parser, context, 0, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
6352
6397
  if (parser.assignable & 2) {
6353
- report(parser, 52);
6398
+ report(parser, 53);
6354
6399
  }
6355
6400
  parser.assignable = 2;
6356
6401
  return finishNode(parser, context, start, line, column, {
@@ -6379,12 +6424,12 @@
6379
6424
  return parseArrowFromIdentifier(parser, context, tokenValue, expr, inNew, canAssign, 0, start, line, column);
6380
6425
  }
6381
6426
  if (context & 16384 && token === 537079928)
6382
- report(parser, 126);
6427
+ report(parser, 127);
6383
6428
  if (token === 241739) {
6384
6429
  if (context & 1024)
6385
- report(parser, 109);
6430
+ report(parser, 110);
6386
6431
  if (kind & (8 | 16))
6387
- report(parser, 97);
6432
+ report(parser, 98);
6388
6433
  }
6389
6434
  parser.assignable =
6390
6435
  context & 1024 && (token & 537079808) === 537079808
@@ -6455,14 +6500,14 @@
6455
6500
  return parseImportMetaExpression(parser, context, expr, start, line, column);
6456
6501
  }
6457
6502
  if (inNew)
6458
- report(parser, 137);
6503
+ report(parser, 138);
6459
6504
  expr = parseImportExpression(parser, context, inGroup, start, line, column);
6460
6505
  parser.assignable = 2;
6461
6506
  return parseMemberOrUpdateExpression(parser, context, expr, inGroup, 0, start, line, column);
6462
6507
  }
6463
6508
  function parseImportMetaExpression(parser, context, meta, start, line, column) {
6464
6509
  if ((context & 2048) === 0)
6465
- report(parser, 163);
6510
+ report(parser, 164);
6466
6511
  nextToken(parser, context);
6467
6512
  if (parser.token !== 143495 && parser.tokenValue !== 'meta')
6468
6513
  report(parser, 28, KeywordDescTable[parser.token & 255]);
@@ -6476,7 +6521,7 @@
6476
6521
  function parseImportExpression(parser, context, inGroup, start, line, column) {
6477
6522
  consume(parser, context | 32768, 67174411);
6478
6523
  if (parser.token === 14)
6479
- report(parser, 138);
6524
+ report(parser, 139);
6480
6525
  const source = parseExpression(parser, context, 1, 0, inGroup, parser.tokenPos, parser.linePos, parser.colPos);
6481
6526
  consume(parser, context, 16);
6482
6527
  return finishNode(parser, context, start, line, column, {
@@ -6521,14 +6566,14 @@
6521
6566
  ];
6522
6567
  const expressions = [parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos)];
6523
6568
  if (parser.token !== 1074790415)
6524
- report(parser, 80);
6569
+ report(parser, 81);
6525
6570
  while ((parser.token = scanTemplateTail(parser, context)) !== 67174409) {
6526
6571
  const { tokenValue, tokenRaw, tokenPos, linePos, colPos } = parser;
6527
6572
  consume(parser, context | 32768, 67174408);
6528
6573
  quasis.push(parseTemplateElement(parser, context, tokenValue, tokenRaw, tokenPos, linePos, colPos, false));
6529
6574
  expressions.push(parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos));
6530
6575
  if (parser.token !== 1074790415)
6531
- report(parser, 80);
6576
+ report(parser, 81);
6532
6577
  }
6533
6578
  {
6534
6579
  const { tokenValue, tokenRaw, tokenPos, linePos, colPos } = parser;
@@ -6659,11 +6704,11 @@
6659
6704
  let firstRestricted;
6660
6705
  let functionScope = scope ? createScope() : void 0;
6661
6706
  if (parser.token === 67174411) {
6662
- if ((flags & 1) < 1)
6707
+ if ((flags & 1) === 0)
6663
6708
  report(parser, 37, 'Function');
6664
6709
  }
6665
6710
  else {
6666
- const kind = origin & 4 && ((context & 8192) < 1 || (context & 2048) < 1)
6711
+ const kind = origin & 4 && ((context & 8192) === 0 || (context & 2048) === 0)
6667
6712
  ? 4
6668
6713
  : 64;
6669
6714
  validateFunctionName(parser, context | ((context & 3072) << 11), parser.token);
@@ -6744,10 +6789,10 @@
6744
6789
  function parseArrayLiteral(parser, context, skipInitializer, inGroup, start, line, column) {
6745
6790
  const expr = parseArrayExpressionOrPattern(parser, context, void 0, skipInitializer, inGroup, 0, 2, 0, start, line, column);
6746
6791
  if (context & 256 && parser.destructible & 64) {
6747
- report(parser, 60);
6792
+ report(parser, 61);
6748
6793
  }
6749
6794
  if (parser.destructible & 8) {
6750
- report(parser, 59);
6795
+ report(parser, 60);
6751
6796
  }
6752
6797
  return expr;
6753
6798
  }
@@ -6809,7 +6854,7 @@
6809
6854
  destructible |=
6810
6855
  kind & 1
6811
6856
  ? 32
6812
- : (kind & 2) < 1
6857
+ : (kind & 2) === 0
6813
6858
  ? 16
6814
6859
  : 0;
6815
6860
  left = parseMemberOrUpdateExpression(parser, context, left, inGroup, 0, tokenPos, linePos, colPos);
@@ -6842,7 +6887,7 @@
6842
6887
  }
6843
6888
  }
6844
6889
  else if (parser.destructible & 8) {
6845
- report(parser, 68);
6890
+ report(parser, 69);
6846
6891
  }
6847
6892
  else {
6848
6893
  left = parseMemberOrUpdateExpression(parser, context, left, inGroup, 0, tokenPos, linePos, colPos);
@@ -6868,7 +6913,7 @@
6868
6913
  left = parseLeftHandSideExpression(parser, context, 1, 0, 1, tokenPos, linePos, colPos);
6869
6914
  if (parser.token !== 18 && parser.token !== 20) {
6870
6915
  left = parseAssignmentExpression(parser, context, inGroup, isPattern, tokenPos, linePos, colPos, left);
6871
- if ((kind & (2 | 1)) < 1 && token === 67174411)
6916
+ if ((kind & (2 | 1)) === 0 && token === 67174411)
6872
6917
  destructible |= 16;
6873
6918
  }
6874
6919
  else if (parser.assignable & 2) {
@@ -6941,7 +6986,7 @@
6941
6986
  argument = parseMemberOrUpdateExpression(parser, context, argument, inGroup, 0, tokenPos, linePos, colPos);
6942
6987
  if (parser.token !== 18 && parser.token !== closingToken) {
6943
6988
  if (parser.assignable & 2 && parser.token === 1077936157)
6944
- report(parser, 68);
6989
+ report(parser, 69);
6945
6990
  destructible |= 16;
6946
6991
  argument = parseAssignmentExpression(parser, context, inGroup, isPattern, tokenPos, linePos, colPos, argument);
6947
6992
  }
@@ -6968,7 +7013,7 @@
6968
7013
  token = parser.token;
6969
7014
  if (token !== 1077936157 && token !== closingToken && token !== 18) {
6970
7015
  if (parser.destructible & 8)
6971
- report(parser, 68);
7016
+ report(parser, 69);
6972
7017
  argument = parseMemberOrUpdateExpression(parser, context, argument, inGroup, 0, tokenPos, linePos, colPos);
6973
7018
  destructible |= parser.assignable & 2 ? 16 : 0;
6974
7019
  if ((parser.token & 4194304) === 4194304) {
@@ -7018,7 +7063,7 @@
7018
7063
  }
7019
7064
  parser.destructible = destructible;
7020
7065
  if (parser.token !== closingToken && parser.token !== 18)
7021
- report(parser, 155);
7066
+ report(parser, 156);
7022
7067
  return finishNode(parser, context, start, line, column, {
7023
7068
  type: isPattern ? 'RestElement' : 'SpreadElement',
7024
7069
  argument: argument
@@ -7057,7 +7102,7 @@
7057
7102
  });
7058
7103
  }
7059
7104
  function parseMethodDefinition(parser, context, kind, inGroup, start, line, column) {
7060
- const modifierFlags = (kind & 64) < 1 ? 31981568 : 14680064;
7105
+ const modifierFlags = (kind & 64) === 0 ? 31981568 : 14680064;
7061
7106
  context =
7062
7107
  ((context | modifierFlags) ^ modifierFlags) |
7063
7108
  ((kind & 88) << 18) |
@@ -7079,10 +7124,10 @@
7079
7124
  function parseObjectLiteral(parser, context, skipInitializer, inGroup, start, line, column) {
7080
7125
  const expr = parseObjectLiteralOrPattern(parser, context, void 0, skipInitializer, inGroup, 0, 2, 0, start, line, column);
7081
7126
  if (context & 256 && parser.destructible & 64) {
7082
- report(parser, 60);
7127
+ report(parser, 61);
7083
7128
  }
7084
7129
  if (parser.destructible & 8) {
7085
- report(parser, 59);
7130
+ report(parser, 60);
7086
7131
  }
7087
7132
  return expr;
7088
7133
  }
@@ -7199,7 +7244,7 @@
7199
7244
  destructible |= 16;
7200
7245
  }
7201
7246
  else if (parser.destructible & 8) {
7202
- report(parser, 68);
7247
+ report(parser, 69);
7203
7248
  }
7204
7249
  else {
7205
7250
  value = parseMemberOrUpdateExpression(parser, context, value, inGroup, 0, tokenPos, linePos, colPos);
@@ -7259,10 +7304,10 @@
7259
7304
  else if (parser.token & (143360 | 4096)) {
7260
7305
  destructible |= 16;
7261
7306
  if (token === 121)
7262
- report(parser, 92);
7307
+ report(parser, 93);
7263
7308
  if (token === 209007) {
7264
7309
  if (parser.flags & 1)
7265
- report(parser, 128);
7310
+ report(parser, 129);
7266
7311
  state |= 16;
7267
7312
  }
7268
7313
  key = parseIdentifier(parser, context, 0);
@@ -7281,11 +7326,14 @@
7281
7326
  }
7282
7327
  else if (parser.token === 8457014) {
7283
7328
  destructible |= 16;
7284
- if (token === 12402 || token === 12403) {
7329
+ if (token === 12402) {
7285
7330
  report(parser, 40);
7286
7331
  }
7332
+ else if (token === 12403) {
7333
+ report(parser, 41);
7334
+ }
7287
7335
  else if (token === 143483) {
7288
- report(parser, 92);
7336
+ report(parser, 93);
7289
7337
  }
7290
7338
  nextToken(parser, context);
7291
7339
  state |=
@@ -7320,7 +7368,7 @@
7320
7368
  value = parseMethodDefinition(parser, context, state, inGroup, parser.tokenPos, parser.linePos, parser.colPos);
7321
7369
  }
7322
7370
  else {
7323
- report(parser, 129);
7371
+ report(parser, 130);
7324
7372
  }
7325
7373
  }
7326
7374
  else if ((parser.token & 134217728) === 134217728) {
@@ -7421,7 +7469,7 @@
7421
7469
  destructible = parser.assignable | 16;
7422
7470
  }
7423
7471
  else {
7424
- report(parser, 130);
7472
+ report(parser, 131);
7425
7473
  }
7426
7474
  }
7427
7475
  else if (parser.token === 69271571) {
@@ -7478,7 +7526,7 @@
7478
7526
  destructible |= 16;
7479
7527
  }
7480
7528
  else if (destructible & 8) {
7481
- report(parser, 59);
7529
+ report(parser, 60);
7482
7530
  }
7483
7531
  else {
7484
7532
  value = parseMemberOrUpdateExpression(parser, context, value, inGroup, 0, tokenPos, linePos, colPos);
@@ -7530,7 +7578,7 @@
7530
7578
  destructible = 16;
7531
7579
  }
7532
7580
  else {
7533
- report(parser, 41);
7581
+ report(parser, 42);
7534
7582
  }
7535
7583
  }
7536
7584
  else if (token === 8457014) {
@@ -7546,10 +7594,10 @@
7546
7594
  }
7547
7595
  else {
7548
7596
  reportMessageAt(index, line, index, token === 209007
7549
- ? 43
7597
+ ? 44
7550
7598
  : token === 12402 || parser.token === 12403
7551
- ? 42
7552
- : 44, KeywordDescTable[token & 255]);
7599
+ ? 43
7600
+ : 45, KeywordDescTable[token & 255]);
7553
7601
  }
7554
7602
  }
7555
7603
  else if ((parser.token & 134217728) === 134217728) {
@@ -7565,7 +7613,7 @@
7565
7613
  value = parseMethodDefinition(parser, context, state, inGroup, parser.tokenPos, parser.linePos, parser.colPos);
7566
7614
  }
7567
7615
  else {
7568
- report(parser, 122);
7616
+ report(parser, 123);
7569
7617
  }
7570
7618
  }
7571
7619
  else {
@@ -7625,7 +7673,7 @@
7625
7673
  let left = null;
7626
7674
  const { tokenPos, linePos, colPos } = parser;
7627
7675
  if (parser.token & 143360) {
7628
- if ((context & 1024) < 1) {
7676
+ if ((context & 1024) === 0) {
7629
7677
  if ((parser.token & 36864) === 36864) {
7630
7678
  parser.flags |= 256;
7631
7679
  }
@@ -7647,7 +7695,7 @@
7647
7695
  }
7648
7696
  isSimpleParameterList = 1;
7649
7697
  if (parser.destructible & (32 | 16))
7650
- report(parser, 47);
7698
+ report(parser, 48);
7651
7699
  }
7652
7700
  if (parser.token === 1077936157) {
7653
7701
  nextToken(parser, context | 32768);
@@ -7739,7 +7787,7 @@
7739
7787
  parser.assignable = 2;
7740
7788
  if (parser.token !== 16 && parser.token !== 18) {
7741
7789
  if (destructible & 8)
7742
- report(parser, 118);
7790
+ report(parser, 119);
7743
7791
  expr = parseMemberOrUpdateExpression(parser, context, expr, 0, 0, tokenPos, linePos, colPos);
7744
7792
  destructible |= 16;
7745
7793
  if (parser.token !== 16 && parser.token !== 18) {
@@ -7750,7 +7798,7 @@
7750
7798
  else if (token === 14) {
7751
7799
  expr = parseSpreadOrRestElement(parser, context, scope, 16, kind, origin, 0, 1, 0, tokenPos, linePos, colPos);
7752
7800
  if (parser.destructible & 16)
7753
- report(parser, 71);
7801
+ report(parser, 72);
7754
7802
  isSimpleParameterList = 1;
7755
7803
  if (isSequence && (parser.token === 16 || parser.token === 18)) {
7756
7804
  expressions.push(expr);
@@ -7807,7 +7855,7 @@
7807
7855
  }
7808
7856
  consume(parser, context, 16);
7809
7857
  if (destructible & 16 && destructible & 8)
7810
- report(parser, 145);
7858
+ report(parser, 146);
7811
7859
  destructible |=
7812
7860
  parser.destructible & 256
7813
7861
  ? 256
@@ -7816,7 +7864,7 @@
7816
7864
  : 0;
7817
7865
  if (parser.token === 10) {
7818
7866
  if (destructible & (32 | 16))
7819
- report(parser, 46);
7867
+ report(parser, 47);
7820
7868
  if (context & (4194304 | 2048) && destructible & 128)
7821
7869
  report(parser, 29);
7822
7870
  if (context & (1024 | 2097152) && destructible & 256) {
@@ -7827,7 +7875,7 @@
7827
7875
  return parseParenthesizedArrow(parser, context, scope, isSequence ? expressions : [expr], canAssign, 0, start, line, column);
7828
7876
  }
7829
7877
  else if (destructible & 8) {
7830
- report(parser, 139);
7878
+ report(parser, 140);
7831
7879
  }
7832
7880
  parser.destructible = ((parser.destructible | 256) ^ 256) | destructible;
7833
7881
  return context & 128
@@ -7852,23 +7900,23 @@
7852
7900
  }
7853
7901
  function parseArrowFromIdentifier(parser, context, value, expr, inNew, canAssign, isAsync, start, line, column) {
7854
7902
  if (!canAssign)
7855
- report(parser, 54);
7903
+ report(parser, 55);
7856
7904
  if (inNew)
7857
- report(parser, 48);
7905
+ report(parser, 49);
7858
7906
  parser.flags &= ~128;
7859
7907
  const scope = context & 64 ? createArrowHeadParsingScope(parser, context, value) : void 0;
7860
7908
  return parseArrowFunctionExpression(parser, context, scope, [expr], isAsync, start, line, column);
7861
7909
  }
7862
7910
  function parseParenthesizedArrow(parser, context, scope, params, canAssign, isAsync, start, line, column) {
7863
7911
  if (!canAssign)
7864
- report(parser, 54);
7912
+ report(parser, 55);
7865
7913
  for (let i = 0; i < params.length; ++i)
7866
7914
  reinterpretToPattern(parser, params[i]);
7867
7915
  return parseArrowFunctionExpression(parser, context, scope, params, isAsync, start, line, column);
7868
7916
  }
7869
7917
  function parseArrowFunctionExpression(parser, context, scope, params, isAsync, start, line, column) {
7870
7918
  if (parser.flags & 1)
7871
- report(parser, 45);
7919
+ report(parser, 46);
7872
7920
  consume(parser, context | 32768, 10);
7873
7921
  context = ((context | 15728640) ^ 15728640) | (isAsync << 22);
7874
7922
  const expression = parser.token !== 2162700;
@@ -7886,25 +7934,25 @@
7886
7934
  (134221824 | 8192 | 16384), scope, 16, void 0, void 0);
7887
7935
  switch (parser.token) {
7888
7936
  case 69271571:
7889
- if ((parser.flags & 1) < 1) {
7890
- report(parser, 112);
7937
+ if ((parser.flags & 1) === 0) {
7938
+ report(parser, 113);
7891
7939
  }
7892
7940
  break;
7893
7941
  case 67108877:
7894
7942
  case 67174409:
7895
7943
  case 22:
7896
- report(parser, 113);
7944
+ report(parser, 114);
7897
7945
  case 67174411:
7898
- if ((parser.flags & 1) < 1) {
7899
- report(parser, 112);
7946
+ if ((parser.flags & 1) === 0) {
7947
+ report(parser, 113);
7900
7948
  }
7901
7949
  parser.flags |= 1024;
7902
7950
  break;
7903
7951
  }
7904
- if ((parser.token & 8454144) === 8454144 && (parser.flags & 1) < 1)
7952
+ if ((parser.token & 8454144) === 8454144 && (parser.flags & 1) === 0)
7905
7953
  report(parser, 28, KeywordDescTable[parser.token & 255]);
7906
7954
  if ((parser.token & 33619968) === 33619968)
7907
- report(parser, 121);
7955
+ report(parser, 122);
7908
7956
  }
7909
7957
  parser.assignable = 2;
7910
7958
  return finishNode(parser, context, start, line, column, {
@@ -7927,7 +7975,7 @@
7927
7975
  let left;
7928
7976
  const { tokenPos, linePos, colPos } = parser;
7929
7977
  if (parser.token & 143360) {
7930
- if ((context & 1024) < 1) {
7978
+ if ((context & 1024) === 0) {
7931
7979
  if ((parser.token & 36864) === 36864) {
7932
7980
  parser.flags |= 256;
7933
7981
  }
@@ -7952,7 +8000,7 @@
7952
8000
  }
7953
8001
  isSimpleParameterList = 1;
7954
8002
  if (parser.destructible & (32 | 16)) {
7955
- report(parser, 47);
8003
+ report(parser, 48);
7956
8004
  }
7957
8005
  }
7958
8006
  if (parser.token === 1077936157) {
@@ -8028,16 +8076,16 @@
8028
8076
  parser.assignable = 2;
8029
8077
  return parseMetaProperty(parser, context, id, start, line, column);
8030
8078
  }
8031
- report(parser, 91);
8079
+ report(parser, 92);
8032
8080
  }
8033
8081
  parser.assignable = 2;
8034
8082
  if ((parser.token & 16842752) === 16842752) {
8035
- report(parser, 62, KeywordDescTable[parser.token & 255]);
8083
+ report(parser, 63, KeywordDescTable[parser.token & 255]);
8036
8084
  }
8037
8085
  const expr = parsePrimaryExpression(parser, context, 2, 1, 0, 0, inGroup, 1, tokenPos, linePos, colPos);
8038
8086
  context = (context | 134217728) ^ 134217728;
8039
8087
  if (parser.token === 67108991)
8040
- report(parser, 162);
8088
+ report(parser, 163);
8041
8089
  const callee = parseMembeExpressionNoCall(parser, context, expr, inGroup, tokenPos, linePos, colPos);
8042
8090
  parser.assignable = 2;
8043
8091
  return finishNode(parser, context, start, line, column, {
@@ -8072,7 +8120,7 @@
8072
8120
  if (consumeOpt(parser, context, 16)) {
8073
8121
  if (parser.token === 10) {
8074
8122
  if (flags & 1)
8075
- report(parser, 45);
8123
+ report(parser, 46);
8076
8124
  return parseParenthesizedArrow(parser, context, scope, [], canAssign, 1, start, line, column);
8077
8125
  }
8078
8126
  return finishNode(parser, context, start, line, column, {
@@ -8128,7 +8176,7 @@
8128
8176
  isSimpleParameterList = 1;
8129
8177
  if (parser.token !== 16 && parser.token !== 18) {
8130
8178
  if (destructible & 8)
8131
- report(parser, 118);
8179
+ report(parser, 119);
8132
8180
  expr = parseMemberOrUpdateExpression(parser, context, expr, 0, 0, tokenPos, linePos, colPos);
8133
8181
  destructible |= 16;
8134
8182
  if ((parser.token & 8454144) === 8454144) {
@@ -8176,7 +8224,7 @@
8176
8224
  if (destructible & (32 | 16))
8177
8225
  report(parser, 25);
8178
8226
  if (parser.flags & 1 || flags & 1)
8179
- report(parser, 45);
8227
+ report(parser, 46);
8180
8228
  if (destructible & 128)
8181
8229
  report(parser, 29);
8182
8230
  if (context & (1024 | 2097152) && destructible & 256)
@@ -8186,7 +8234,7 @@
8186
8234
  return parseParenthesizedArrow(parser, context, scope, params, canAssign, 1, start, line, column);
8187
8235
  }
8188
8236
  else if (destructible & 8) {
8189
- report(parser, 59);
8237
+ report(parser, 60);
8190
8238
  }
8191
8239
  parser.assignable = 2;
8192
8240
  return finishNode(parser, context, start, line, column, {
@@ -8231,10 +8279,10 @@
8231
8279
  const { tokenValue } = parser;
8232
8280
  if (parser.token & 4096 && parser.token !== 20567) {
8233
8281
  if (isStrictReservedWord$1(parser, context, parser.token)) {
8234
- report(parser, 114);
8282
+ report(parser, 115);
8235
8283
  }
8236
8284
  if ((parser.token & 537079808) === 537079808) {
8237
- report(parser, 115);
8285
+ report(parser, 116);
8238
8286
  }
8239
8287
  if (scope) {
8240
8288
  addBlockName(parser, context, scope, tokenValue, 32, 0);
@@ -8247,7 +8295,7 @@
8247
8295
  id = parseIdentifier(parser, context, 0);
8248
8296
  }
8249
8297
  else {
8250
- if ((flags & 1) < 1)
8298
+ if ((flags & 1) === 0)
8251
8299
  report(parser, 37, 'Class');
8252
8300
  }
8253
8301
  let inheritedContext = context;
@@ -8287,9 +8335,9 @@
8287
8335
  nextToken(parser, context);
8288
8336
  if (parser.token & 4096 && parser.token !== 20567) {
8289
8337
  if (isStrictReservedWord$1(parser, context, parser.token))
8290
- report(parser, 114);
8291
- if ((parser.token & 537079808) === 537079808) {
8292
8338
  report(parser, 115);
8339
+ if ((parser.token & 537079808) === 537079808) {
8340
+ report(parser, 116);
8293
8341
  }
8294
8342
  id = parseIdentifier(parser, context, 0);
8295
8343
  }
@@ -8348,13 +8396,13 @@
8348
8396
  decorators = parseDecorators(parser, context);
8349
8397
  length = decorators.length;
8350
8398
  if (length > 0 && parser.tokenValue === 'constructor') {
8351
- report(parser, 106);
8399
+ report(parser, 107);
8352
8400
  }
8353
8401
  if (parser.token === 1074790415)
8354
- report(parser, 105);
8402
+ report(parser, 106);
8355
8403
  if (consumeOpt(parser, context, 1074790417)) {
8356
8404
  if (length > 0)
8357
- report(parser, 116);
8405
+ report(parser, 117);
8358
8406
  continue;
8359
8407
  }
8360
8408
  body.push(parseClassElementList(parser, context, scope, inheritedContext, kind, decorators, 0, inGroup, parser.tokenPos, parser.linePos, parser.colPos));
@@ -8373,12 +8421,15 @@
8373
8421
  key = parseIdentifier(parser, context, 0);
8374
8422
  switch (token) {
8375
8423
  case 36972:
8376
- if (!isStatic && parser.token !== 67174411) {
8424
+ if (!isStatic &&
8425
+ parser.token !== 67174411 &&
8426
+ (parser.token & 1048576) !== 1048576 &&
8427
+ parser.token !== 1077936157) {
8377
8428
  return parseClassElementList(parser, context, scope, inheritedContext, type, decorators, 1, inGroup, start, line, column);
8378
8429
  }
8379
8430
  break;
8380
8431
  case 209007:
8381
- if (parser.token !== 67174411 && (parser.flags & 1) < 1) {
8432
+ if (parser.token !== 67174411 && (parser.flags & 1) === 0) {
8382
8433
  if (context & 1 && (parser.token & 1073741824) === 1073741824) {
8383
8434
  return parsePropertyDefinition(parser, context, key, kind, decorators, tokenPos, linePos, colPos);
8384
8435
  }
@@ -8421,6 +8472,9 @@
8421
8472
  else if (context & 1 && (parser.token & 1073741824) === 1073741824) {
8422
8473
  kind |= 128;
8423
8474
  }
8475
+ else if (isStatic && token === 2162700) {
8476
+ return parseStaticBlock(parser, context, scope, tokenPos, linePos, colPos);
8477
+ }
8424
8478
  else if (token === 122) {
8425
8479
  key = parseIdentifier(parser, context, 0);
8426
8480
  if (parser.token !== 67174411)
@@ -8448,30 +8502,30 @@
8448
8502
  key = parsePrivateIdentifier(parser, context, tokenPos, linePos, colPos);
8449
8503
  }
8450
8504
  else
8451
- report(parser, 131);
8505
+ report(parser, 132);
8452
8506
  }
8453
- if ((kind & 2) < 1) {
8507
+ if ((kind & 2) === 0) {
8454
8508
  if (parser.tokenValue === 'constructor') {
8455
8509
  if ((parser.token & 1073741824) === 1073741824) {
8456
- report(parser, 125);
8510
+ report(parser, 126);
8457
8511
  }
8458
- else if ((kind & 32) < 1 && parser.token === 67174411) {
8512
+ else if ((kind & 32) === 0 && parser.token === 67174411) {
8459
8513
  if (kind & (768 | 16 | 128 | 8)) {
8460
- report(parser, 50, 'accessor');
8514
+ report(parser, 51, 'accessor');
8461
8515
  }
8462
- else if ((context & 524288) < 1) {
8516
+ else if ((context & 524288) === 0) {
8463
8517
  if (parser.flags & 32)
8464
- report(parser, 51);
8518
+ report(parser, 52);
8465
8519
  else
8466
8520
  parser.flags |= 32;
8467
8521
  }
8468
8522
  }
8469
8523
  kind |= 64;
8470
8524
  }
8471
- else if ((kind & 4096) < 1 &&
8525
+ else if ((kind & 4096) === 0 &&
8472
8526
  kind & (32 | 768 | 8 | 16) &&
8473
8527
  parser.tokenValue === 'prototype') {
8474
- report(parser, 49);
8528
+ report(parser, 50);
8475
8529
  }
8476
8530
  }
8477
8531
  if (context & 1 && parser.token !== 67174411) {
@@ -8481,7 +8535,7 @@
8481
8535
  return finishNode(parser, context, start, line, column, context & 1
8482
8536
  ? {
8483
8537
  type: 'MethodDefinition',
8484
- kind: (kind & 32) < 1 && kind & 64
8538
+ kind: (kind & 32) === 0 && kind & 64
8485
8539
  ? 'constructor'
8486
8540
  : kind & 256
8487
8541
  ? 'get'
@@ -8496,7 +8550,7 @@
8496
8550
  }
8497
8551
  : {
8498
8552
  type: 'MethodDefinition',
8499
- kind: (kind & 32) < 1 && kind & 64
8553
+ kind: (kind & 32) === 0 && kind & 64
8500
8554
  ? 'constructor'
8501
8555
  : kind & 256
8502
8556
  ? 'get'
@@ -8513,7 +8567,7 @@
8513
8567
  nextToken(parser, context);
8514
8568
  const { tokenValue } = parser;
8515
8569
  if (tokenValue === 'constructor')
8516
- report(parser, 124);
8570
+ report(parser, 125);
8517
8571
  nextToken(parser, context);
8518
8572
  return finishNode(parser, context, start, line, column, {
8519
8573
  type: 'PrivateIdentifier',
@@ -8528,7 +8582,7 @@
8528
8582
  nextToken(parser, context | 32768);
8529
8583
  const { tokenPos, linePos, colPos } = parser;
8530
8584
  if (parser.token === 537079928)
8531
- report(parser, 115);
8585
+ report(parser, 116);
8532
8586
  value = parsePrimaryExpression(parser, context | 16384, 2, 0, 1, 0, 0, 1, tokenPos, linePos, colPos);
8533
8587
  if ((parser.token & 1073741824) !== 1073741824) {
8534
8588
  value = parseMemberOrUpdateExpression(parser, context | 16384, value, 0, 0, tokenPos, linePos, colPos);
@@ -8556,33 +8610,33 @@
8556
8610
  ? parseArrayExpressionOrPattern(parser, context, scope, 1, 0, 1, type, origin, start, line, column)
8557
8611
  : parseObjectLiteralOrPattern(parser, context, scope, 1, 0, 1, type, origin, start, line, column);
8558
8612
  if (parser.destructible & 16)
8559
- report(parser, 47);
8613
+ report(parser, 48);
8560
8614
  if (parser.destructible & 32)
8561
- report(parser, 47);
8615
+ report(parser, 48);
8562
8616
  return left;
8563
8617
  }
8564
8618
  function parseAndClassifyIdentifier(parser, context, scope, kind, origin, start, line, column) {
8565
8619
  const { tokenValue, token } = parser;
8566
8620
  if (context & 1024) {
8567
8621
  if ((token & 537079808) === 537079808) {
8568
- report(parser, 115);
8622
+ report(parser, 116);
8569
8623
  }
8570
8624
  else if ((token & 36864) === 36864) {
8571
- report(parser, 114);
8625
+ report(parser, 115);
8572
8626
  }
8573
8627
  }
8574
8628
  if ((token & 20480) === 20480) {
8575
- report(parser, 99);
8629
+ report(parser, 100);
8576
8630
  }
8577
8631
  if (context & (2048 | 2097152) && token === 241773) {
8578
8632
  report(parser, 30);
8579
8633
  }
8580
8634
  if (token === 241739) {
8581
8635
  if (kind & (8 | 16))
8582
- report(parser, 97);
8636
+ report(parser, 98);
8583
8637
  }
8584
8638
  if (context & (4194304 | 2048) && token === 209008) {
8585
- report(parser, 95);
8639
+ report(parser, 96);
8586
8640
  }
8587
8641
  nextToken(parser, context);
8588
8642
  if (scope)
@@ -8610,7 +8664,7 @@
8610
8664
  closingElement = parseJSXClosingElement(parser, context, inJSXChild, parser.tokenPos, parser.linePos, parser.colPos);
8611
8665
  const close = isEqualTagName(closingElement.name);
8612
8666
  if (isEqualTagName(openingElement.name) !== close)
8613
- report(parser, 149, close);
8667
+ report(parser, 150, close);
8614
8668
  }
8615
8669
  return finishNode(parser, context, start, line, column, {
8616
8670
  type: 'JSXElement',
@@ -8766,7 +8820,7 @@
8766
8820
  value = parseJSXExpressionContainer(parser, context, 1, 1, tokenPos, linePos, colPos);
8767
8821
  break;
8768
8822
  default:
8769
- report(parser, 148);
8823
+ report(parser, 149);
8770
8824
  }
8771
8825
  }
8772
8826
  return finishNode(parser, context, start, line, column, {
@@ -8788,11 +8842,11 @@
8788
8842
  nextToken(parser, context | 32768);
8789
8843
  const { tokenPos, linePos, colPos } = parser;
8790
8844
  if (parser.token === 14)
8791
- return parseJSXSpreadChild(parser, context, tokenPos, linePos, colPos);
8845
+ return parseJSXSpreadChild(parser, context, start, line, column);
8792
8846
  let expression = null;
8793
8847
  if (parser.token === 1074790415) {
8794
8848
  if (isAttr)
8795
- report(parser, 151);
8849
+ report(parser, 152);
8796
8850
  expression = parseJSXEmptyExpression(parser, context, parser.startPos, parser.startLine, parser.startColumn);
8797
8851
  }
8798
8852
  else {
@@ -9665,12 +9719,22 @@
9665
9719
  if (node.static) {
9666
9720
  state.write('static ');
9667
9721
  }
9722
+ if (node.computed) {
9723
+ state.write('[');
9724
+ }
9668
9725
  this[node.key.type](node.key, state);
9726
+ if (node.computed) {
9727
+ state.write(']');
9728
+ }
9669
9729
  if (node.value == null) {
9730
+ if (node.key.type[0] !== 'F') {
9731
+ state.write(';');
9732
+ }
9670
9733
  return
9671
9734
  }
9672
9735
  state.write(' = ');
9673
9736
  this[node.value.type](node.value, state);
9737
+ state.write(';');
9674
9738
  },
9675
9739
  ObjectPattern(node, state) {
9676
9740
  state.write('{');
@@ -10006,10 +10070,21 @@
10006
10070
 
10007
10071
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10008
10072
 
10073
+ function getDefaultExportFromCjs (x) {
10074
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
10075
+ }
10076
+
10009
10077
  function getAugmentedNamespace(n) {
10078
+ if (n.__esModule) return n;
10010
10079
  var f = n.default;
10011
10080
  if (typeof f == "function") {
10012
- var a = function () {
10081
+ var a = function a () {
10082
+ if (this instanceof a) {
10083
+ var args = [null];
10084
+ args.push.apply(args, arguments);
10085
+ var Ctor = Function.bind.apply(f, args);
10086
+ return new Ctor();
10087
+ }
10013
10088
  return f.apply(this, arguments);
10014
10089
  };
10015
10090
  a.prototype = f.prototype;
@@ -10490,7 +10565,7 @@
10490
10565
 
10491
10566
  exports.Function = convertCallbackFunction;
10492
10567
 
10493
- exports.VoidFunction = convertCallbackFunction;
10568
+ exports.VoidFunction = convertCallbackFunction;
10494
10569
  } (lib));
10495
10570
 
10496
10571
  var utils = {exports: {}};
@@ -10621,9 +10696,11 @@
10621
10696
  namedSetNew,
10622
10697
  namedSetExisting,
10623
10698
  namedDelete
10624
- };
10699
+ };
10625
10700
  } (utils));
10626
10701
 
10702
+ var utilsExports = utils.exports;
10703
+
10627
10704
  var URLImpl = {};
10628
10705
 
10629
10706
  var urlStateMachine = {exports: {}};
@@ -10643,7 +10720,7 @@
10643
10720
 
10644
10721
  /** Regular expressions */
10645
10722
  const regexPunycode = /^xn--/;
10646
- const regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
10723
+ const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too.
10647
10724
  const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
10648
10725
 
10649
10726
  /** Error messages */
@@ -10678,11 +10755,11 @@
10678
10755
  * item.
10679
10756
  * @returns {Array} A new array of values returned by the callback function.
10680
10757
  */
10681
- function map(array, fn) {
10758
+ function map(array, callback) {
10682
10759
  const result = [];
10683
10760
  let length = array.length;
10684
10761
  while (length--) {
10685
- result[length] = fn(array[length]);
10762
+ result[length] = callback(array[length]);
10686
10763
  }
10687
10764
  return result;
10688
10765
  }
@@ -10694,22 +10771,22 @@
10694
10771
  * @param {String} domain The domain name or email address.
10695
10772
  * @param {Function} callback The function that gets called for every
10696
10773
  * character.
10697
- * @returns {Array} A new string of characters returned by the callback
10774
+ * @returns {String} A new string of characters returned by the callback
10698
10775
  * function.
10699
10776
  */
10700
- function mapDomain(string, fn) {
10701
- const parts = string.split('@');
10777
+ function mapDomain(domain, callback) {
10778
+ const parts = domain.split('@');
10702
10779
  let result = '';
10703
10780
  if (parts.length > 1) {
10704
10781
  // In email addresses, only the domain name should be punycoded. Leave
10705
10782
  // the local part (i.e. everything up to `@`) intact.
10706
10783
  result = parts[0] + '@';
10707
- string = parts[1];
10784
+ domain = parts[1];
10708
10785
  }
10709
10786
  // Avoid `split(regex)` for IE8 compatibility. See #17.
10710
- string = string.replace(regexSeparators, '\x2E');
10711
- const labels = string.split('.');
10712
- const encoded = map(labels, fn).join('.');
10787
+ domain = domain.replace(regexSeparators, '\x2E');
10788
+ const labels = domain.split('.');
10789
+ const encoded = map(labels, callback).join('.');
10713
10790
  return result + encoded;
10714
10791
  }
10715
10792
 
@@ -10758,7 +10835,7 @@
10758
10835
  * @param {Array} codePoints The array of numeric code points.
10759
10836
  * @returns {String} The new Unicode string (UCS-2).
10760
10837
  */
10761
- const ucs2encode = array => String.fromCodePoint(...array);
10838
+ const ucs2encode = codePoints => String.fromCodePoint(...codePoints);
10762
10839
 
10763
10840
  /**
10764
10841
  * Converts a basic code point into a digit/integer.
@@ -10770,13 +10847,13 @@
10770
10847
  * the code point does not represent a value.
10771
10848
  */
10772
10849
  const basicToDigit = function(codePoint) {
10773
- if (codePoint - 0x30 < 0x0A) {
10774
- return codePoint - 0x16;
10850
+ if (codePoint >= 0x30 && codePoint < 0x3A) {
10851
+ return 26 + (codePoint - 0x30);
10775
10852
  }
10776
- if (codePoint - 0x41 < 0x1A) {
10853
+ if (codePoint >= 0x41 && codePoint < 0x5B) {
10777
10854
  return codePoint - 0x41;
10778
10855
  }
10779
- if (codePoint - 0x61 < 0x1A) {
10856
+ if (codePoint >= 0x61 && codePoint < 0x7B) {
10780
10857
  return codePoint - 0x61;
10781
10858
  }
10782
10859
  return base;
@@ -10856,7 +10933,7 @@
10856
10933
  // which gets added to `i`. The overflow checking is easier
10857
10934
  // if we increase `i` as we go, then subtract off its starting
10858
10935
  // value at the end to obtain `delta`.
10859
- let oldi = i;
10936
+ const oldi = i;
10860
10937
  for (let w = 1, k = base; /* no condition */; k += base) {
10861
10938
 
10862
10939
  if (index >= inputLength) {
@@ -10865,7 +10942,10 @@
10865
10942
 
10866
10943
  const digit = basicToDigit(input.charCodeAt(index++));
10867
10944
 
10868
- if (digit >= base || digit > floor((maxInt - i) / w)) {
10945
+ if (digit >= base) {
10946
+ error('invalid-input');
10947
+ }
10948
+ if (digit > floor((maxInt - i) / w)) {
10869
10949
  error('overflow');
10870
10950
  }
10871
10951
 
@@ -10919,7 +10999,7 @@
10919
10999
  input = ucs2decode(input);
10920
11000
 
10921
11001
  // Cache the length.
10922
- let inputLength = input.length;
11002
+ const inputLength = input.length;
10923
11003
 
10924
11004
  // Initialize the state.
10925
11005
  let n = initialN;
@@ -10933,7 +11013,7 @@
10933
11013
  }
10934
11014
  }
10935
11015
 
10936
- let basicLength = output.length;
11016
+ const basicLength = output.length;
10937
11017
  let handledCPCount = basicLength;
10938
11018
 
10939
11019
  // `handledCPCount` is the number of code points that have been handled;
@@ -10970,7 +11050,7 @@
10970
11050
  if (currentValue < n && ++delta > maxInt) {
10971
11051
  error('overflow');
10972
11052
  }
10973
- if (currentValue == n) {
11053
+ if (currentValue === n) {
10974
11054
  // Represent delta as a generalized variable-length integer.
10975
11055
  let q = delta;
10976
11056
  for (let k = base; /* no condition */; k += base) {
@@ -10987,7 +11067,7 @@
10987
11067
  }
10988
11068
 
10989
11069
  output.push(stringFromCharCode(digitToBasic(q, 0)));
10990
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
11070
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
10991
11071
  delta = 0;
10992
11072
  ++handledCPCount;
10993
11073
  }
@@ -11067,13 +11147,13 @@
11067
11147
 
11068
11148
  var punycode_es6 = /*#__PURE__*/Object.freeze({
11069
11149
  __proto__: null,
11070
- ucs2decode: ucs2decode,
11071
- ucs2encode: ucs2encode,
11072
11150
  decode: decode,
11151
+ default: punycode$1,
11073
11152
  encode: encode,
11074
11153
  toASCII: toASCII$1,
11075
11154
  toUnicode: toUnicode$1,
11076
- 'default': punycode$1
11155
+ ucs2decode: ucs2decode,
11156
+ ucs2encode: ucs2encode
11077
11157
  });
11078
11158
 
11079
11159
  var require$$0 = /*@__PURE__*/getAugmentedNamespace(punycode_es6);
@@ -78514,9 +78594,11 @@
78514
78594
 
78515
78595
  // We don't handle blobs, so this just delegates:
78516
78596
  return module.exports.basicURLParse(input, { baseURL: options.baseURL, encodingOverride: options.encodingOverride });
78517
- };
78597
+ };
78518
78598
  } (urlStateMachine));
78519
78599
 
78600
+ var urlStateMachineExports = urlStateMachine.exports;
78601
+
78520
78602
  var URLSearchParams = {exports: {}};
78521
78603
 
78522
78604
  var URLSearchParamsImpl = {};
@@ -78531,6 +78613,7 @@
78531
78613
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
78532
78614
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
78533
78615
  */
78616
+ lodash_sortby.exports;
78534
78617
 
78535
78618
  var hasRequiredLodash_sortby;
78536
78619
 
@@ -81158,8 +81241,8 @@
81158
81241
  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
81159
81242
  }
81160
81243
 
81161
- module.exports = sortBy;
81162
- } (lodash_sortby, lodash_sortby.exports));
81244
+ module.exports = sortBy;
81245
+ } (lodash_sortby, lodash_sortby.exports));
81163
81246
  return lodash_sortby.exports;
81164
81247
  }
81165
81248
 
@@ -81295,14 +81378,14 @@
81295
81378
  (function (module) {
81296
81379
 
81297
81380
  const conversions = lib;
81298
- const utils$1 = utils.exports;
81381
+ const utils = utilsExports;
81299
81382
 
81300
- const impl = utils$1.implSymbol;
81383
+ const impl = utils.implSymbol;
81301
81384
 
81302
- const IteratorPrototype = Object.create(utils$1.IteratorPrototype, {
81385
+ const IteratorPrototype = Object.create(utils.IteratorPrototype, {
81303
81386
  next: {
81304
81387
  value: function next() {
81305
- const internal = this[utils$1.iterInternalSymbol];
81388
+ const internal = this[utils.iterInternalSymbol];
81306
81389
  const { target, kind, index } = internal;
81307
81390
  const values = Array.from(target[impl]);
81308
81391
  const len = values.length;
@@ -81312,7 +81395,7 @@
81312
81395
 
81313
81396
  const pair = values[index];
81314
81397
  internal.index = index + 1;
81315
- const [key, value] = pair.map(utils$1.tryWrapperForImpl);
81398
+ const [key, value] = pair.map(utils.tryWrapperForImpl);
81316
81399
 
81317
81400
  let result;
81318
81401
  switch (kind) {
@@ -81343,9 +81426,9 @@
81343
81426
  {
81344
81427
  let curArg = arguments[0];
81345
81428
  if (curArg !== undefined) {
81346
- if (utils$1.isObject(curArg)) {
81429
+ if (utils.isObject(curArg)) {
81347
81430
  if (curArg[Symbol.iterator] !== undefined) {
81348
- if (!utils$1.isObject(curArg)) {
81431
+ if (!utils.isObject(curArg)) {
81349
81432
  throw new TypeError(
81350
81433
  "Failed to construct 'URLSearchParams': parameter 1" + " sequence" + " is not an iterable object."
81351
81434
  );
@@ -81353,7 +81436,7 @@
81353
81436
  const V = [];
81354
81437
  const tmp = curArg;
81355
81438
  for (let nextItem of tmp) {
81356
- if (!utils$1.isObject(nextItem)) {
81439
+ if (!utils.isObject(nextItem)) {
81357
81440
  throw new TypeError(
81358
81441
  "Failed to construct 'URLSearchParams': parameter 1" +
81359
81442
  " sequence" +
@@ -81379,7 +81462,7 @@
81379
81462
  curArg = V;
81380
81463
  }
81381
81464
  } else {
81382
- if (!utils$1.isObject(curArg)) {
81465
+ if (!utils.isObject(curArg)) {
81383
81466
  throw new TypeError(
81384
81467
  "Failed to construct 'URLSearchParams': parameter 1" + " record" + " is not an object."
81385
81468
  );
@@ -81510,7 +81593,7 @@
81510
81593
  });
81511
81594
  args.push(curArg);
81512
81595
  }
81513
- return utils$1.tryWrapperForImpl(this[impl].getAll(...args));
81596
+ return utils.tryWrapperForImpl(this[impl].getAll(...args));
81514
81597
  }
81515
81598
 
81516
81599
  has(name) {
@@ -81615,7 +81698,7 @@
81615
81698
  let pairs = Array.from(this[impl]);
81616
81699
  let i = 0;
81617
81700
  while (i < pairs.length) {
81618
- const [key, value] = pairs[i].map(utils$1.tryWrapperForImpl);
81701
+ const [key, value] = pairs[i].map(utils.tryWrapperForImpl);
81619
81702
  callback.call(thisArg, value, key, this);
81620
81703
  pairs = Array.from(this[impl]);
81621
81704
  i++;
@@ -81645,7 +81728,7 @@
81645
81728
  _mixedIntoPredicates: [],
81646
81729
  is(obj) {
81647
81730
  if (obj) {
81648
- if (utils$1.hasOwn(obj, impl) && obj[impl] instanceof Impl.implementation) {
81731
+ if (utils.hasOwn(obj, impl) && obj[impl] instanceof Impl.implementation) {
81649
81732
  return true;
81650
81733
  }
81651
81734
  for (const isMixedInto of module.exports._mixedIntoPredicates) {
@@ -81662,7 +81745,7 @@
81662
81745
  return true;
81663
81746
  }
81664
81747
 
81665
- const wrapper = utils$1.wrapperForImpl(obj);
81748
+ const wrapper = utils.wrapperForImpl(obj);
81666
81749
  for (const isMixedInto of module.exports._mixedIntoPredicates) {
81667
81750
  if (isMixedInto(wrapper)) {
81668
81751
  return true;
@@ -81673,14 +81756,14 @@
81673
81756
  },
81674
81757
  convert(obj, { context = "The provided value" } = {}) {
81675
81758
  if (module.exports.is(obj)) {
81676
- return utils$1.implForWrapper(obj);
81759
+ return utils.implForWrapper(obj);
81677
81760
  }
81678
81761
  throw new TypeError(`${context} is not of type 'URLSearchParams'.`);
81679
81762
  },
81680
81763
 
81681
81764
  createDefaultIterator(target, kind) {
81682
81765
  const iterator = Object.create(IteratorPrototype);
81683
- Object.defineProperty(iterator, utils$1.iterInternalSymbol, {
81766
+ Object.defineProperty(iterator, utils.iterInternalSymbol, {
81684
81767
  value: { target, kind, index: 0 },
81685
81768
  configurable: true
81686
81769
  });
@@ -81695,7 +81778,7 @@
81695
81778
  createImpl(constructorArgs, privateData) {
81696
81779
  let obj = Object.create(URLSearchParams.prototype);
81697
81780
  obj = this.setup(obj, constructorArgs, privateData);
81698
- return utils$1.implForWrapper(obj);
81781
+ return utils.implForWrapper(obj);
81699
81782
  },
81700
81783
  _internalSetup(obj) {},
81701
81784
  setup(obj, constructorArgs, privateData) {
@@ -81709,7 +81792,7 @@
81709
81792
  configurable: true
81710
81793
  });
81711
81794
 
81712
- obj[impl][utils$1.wrapperSymbol] = obj;
81795
+ obj[impl][utils.wrapperSymbol] = obj;
81713
81796
  if (Impl.init) {
81714
81797
  Impl.init(obj[impl], privateData);
81715
81798
  }
@@ -81723,17 +81806,19 @@
81723
81806
  }; // iface
81724
81807
  module.exports = iface;
81725
81808
 
81726
- const Impl = requireURLSearchParamsImpl();
81809
+ const Impl = requireURLSearchParamsImpl();
81727
81810
  } (URLSearchParams));
81728
81811
 
81812
+ var URLSearchParamsExports = URLSearchParams.exports;
81813
+
81729
81814
  var hasRequiredURLImpl;
81730
81815
 
81731
81816
  function requireURLImpl () {
81732
81817
  if (hasRequiredURLImpl) return URLImpl;
81733
81818
  hasRequiredURLImpl = 1;
81734
- const usm = urlStateMachine.exports;
81819
+ const usm = urlStateMachineExports;
81735
81820
  const urlencoded$1 = urlencoded;
81736
- const URLSearchParams$1 = URLSearchParams.exports;
81821
+ const URLSearchParams = URLSearchParamsExports;
81737
81822
 
81738
81823
  URLImpl.implementation = class URLImpl {
81739
81824
  constructor(constructorArgs) {
@@ -81759,7 +81844,7 @@
81759
81844
 
81760
81845
  // We cannot invoke the "new URLSearchParams object" algorithm without going through the constructor, which strips
81761
81846
  // question mark by default. Therefore the doNotStripQMark hack is used.
81762
- this._query = URLSearchParams$1.createImpl([query], { doNotStripQMark: true });
81847
+ this._query = URLSearchParams.createImpl([query], { doNotStripQMark: true });
81763
81848
  this._query._url = this;
81764
81849
  }
81765
81850
 
@@ -81950,12 +82035,14 @@
81950
82035
  return URLImpl;
81951
82036
  }
81952
82037
 
82038
+ URL$1.exports;
82039
+
81953
82040
  (function (module) {
81954
82041
 
81955
82042
  const conversions = lib;
81956
- const utils$1 = utils.exports;
82043
+ const utils = utilsExports;
81957
82044
 
81958
- const impl = utils$1.implSymbol;
82045
+ const impl = utils.implSymbol;
81959
82046
 
81960
82047
  class URL {
81961
82048
  constructor(url) {
@@ -82168,8 +82255,8 @@
82168
82255
  throw new TypeError("Illegal invocation");
82169
82256
  }
82170
82257
 
82171
- return utils$1.getSameObject(this, "searchParams", () => {
82172
- return utils$1.tryWrapperForImpl(this[impl]["searchParams"]);
82258
+ return utils.getSameObject(this, "searchParams", () => {
82259
+ return utils.tryWrapperForImpl(this[impl]["searchParams"]);
82173
82260
  });
82174
82261
  }
82175
82262
 
@@ -82215,7 +82302,7 @@
82215
82302
  _mixedIntoPredicates: [],
82216
82303
  is(obj) {
82217
82304
  if (obj) {
82218
- if (utils$1.hasOwn(obj, impl) && obj[impl] instanceof Impl.implementation) {
82305
+ if (utils.hasOwn(obj, impl) && obj[impl] instanceof Impl.implementation) {
82219
82306
  return true;
82220
82307
  }
82221
82308
  for (const isMixedInto of module.exports._mixedIntoPredicates) {
@@ -82232,7 +82319,7 @@
82232
82319
  return true;
82233
82320
  }
82234
82321
 
82235
- const wrapper = utils$1.wrapperForImpl(obj);
82322
+ const wrapper = utils.wrapperForImpl(obj);
82236
82323
  for (const isMixedInto of module.exports._mixedIntoPredicates) {
82237
82324
  if (isMixedInto(wrapper)) {
82238
82325
  return true;
@@ -82243,7 +82330,7 @@
82243
82330
  },
82244
82331
  convert(obj, { context = "The provided value" } = {}) {
82245
82332
  if (module.exports.is(obj)) {
82246
- return utils$1.implForWrapper(obj);
82333
+ return utils.implForWrapper(obj);
82247
82334
  }
82248
82335
  throw new TypeError(`${context} is not of type 'URL'.`);
82249
82336
  },
@@ -82256,7 +82343,7 @@
82256
82343
  createImpl(constructorArgs, privateData) {
82257
82344
  let obj = Object.create(URL.prototype);
82258
82345
  obj = this.setup(obj, constructorArgs, privateData);
82259
- return utils$1.implForWrapper(obj);
82346
+ return utils.implForWrapper(obj);
82260
82347
  },
82261
82348
  _internalSetup(obj) {},
82262
82349
  setup(obj, constructorArgs, privateData) {
@@ -82270,7 +82357,7 @@
82270
82357
  configurable: true
82271
82358
  });
82272
82359
 
82273
- obj[impl][utils$1.wrapperSymbol] = obj;
82360
+ obj[impl][utils.wrapperSymbol] = obj;
82274
82361
  if (Impl.init) {
82275
82362
  Impl.init(obj[impl], privateData);
82276
82363
  }
@@ -82284,21 +82371,23 @@
82284
82371
  }; // iface
82285
82372
  module.exports = iface;
82286
82373
 
82287
- const Impl = requireURLImpl();
82374
+ const Impl = requireURLImpl();
82288
82375
  } (URL$1));
82289
82376
 
82290
- publicApi.URL = URL$1.exports.interface;
82291
- publicApi.URLSearchParams = URLSearchParams.exports.interface;
82377
+ var URLExports = URL$1.exports;
82292
82378
 
82293
- publicApi.parseURL = urlStateMachine.exports.parseURL;
82294
- publicApi.basicURLParse = urlStateMachine.exports.basicURLParse;
82295
- publicApi.serializeURL = urlStateMachine.exports.serializeURL;
82296
- publicApi.serializeHost = urlStateMachine.exports.serializeHost;
82297
- publicApi.serializeInteger = urlStateMachine.exports.serializeInteger;
82298
- publicApi.serializeURLOrigin = urlStateMachine.exports.serializeURLOrigin;
82299
- publicApi.setTheUsername = urlStateMachine.exports.setTheUsername;
82300
- publicApi.setThePassword = urlStateMachine.exports.setThePassword;
82301
- publicApi.cannotHaveAUsernamePasswordPort = urlStateMachine.exports.cannotHaveAUsernamePasswordPort;
82379
+ publicApi.URL = URLExports.interface;
82380
+ publicApi.URLSearchParams = URLSearchParamsExports.interface;
82381
+
82382
+ publicApi.parseURL = urlStateMachineExports.parseURL;
82383
+ publicApi.basicURLParse = urlStateMachineExports.basicURLParse;
82384
+ publicApi.serializeURL = urlStateMachineExports.serializeURL;
82385
+ publicApi.serializeHost = urlStateMachineExports.serializeHost;
82386
+ publicApi.serializeInteger = urlStateMachineExports.serializeInteger;
82387
+ publicApi.serializeURLOrigin = urlStateMachineExports.serializeURLOrigin;
82388
+ publicApi.setTheUsername = urlStateMachineExports.setTheUsername;
82389
+ publicApi.setThePassword = urlStateMachineExports.setThePassword;
82390
+ publicApi.cannotHaveAUsernamePasswordPort = urlStateMachineExports.cannotHaveAUsernamePasswordPort;
82302
82391
 
82303
82392
  publicApi.percentDecode = urlencoded.percentDecode;
82304
82393
 
@@ -82774,7 +82863,7 @@
82774
82863
  * element is O(1). Removing elements from the set is not supported. Only
82775
82864
  * strings are supported for membership.
82776
82865
  */
82777
- class ArraySet$2 {
82866
+ let ArraySet$2 = class ArraySet {
82778
82867
  constructor() {
82779
82868
  this._array = [];
82780
82869
  this._set = new Map();
@@ -82784,7 +82873,7 @@
82784
82873
  * Static method for creating ArraySet instances from an existing array.
82785
82874
  */
82786
82875
  static fromArray(aArray, aAllowDuplicates) {
82787
- const set = new ArraySet$2();
82876
+ const set = new ArraySet();
82788
82877
  for (let i = 0, len = aArray.length; i < len; i++) {
82789
82878
  set.add(aArray[i], aAllowDuplicates);
82790
82879
  }
@@ -82859,7 +82948,7 @@
82859
82948
  toArray() {
82860
82949
  return this._array.slice();
82861
82950
  }
82862
- }
82951
+ };
82863
82952
  arraySet.ArraySet = ArraySet$2;
82864
82953
 
82865
82954
  var mappingList = {};
@@ -82893,7 +82982,7 @@
82893
82982
  * performance conscious manner. It trades a negligible overhead in general
82894
82983
  * case for a large speedup in case of mappings being added in order.
82895
82984
  */
82896
- class MappingList$1 {
82985
+ let MappingList$1 = class MappingList {
82897
82986
  constructor() {
82898
82987
  this._array = [];
82899
82988
  this._sorted = true;
@@ -82942,7 +83031,7 @@
82942
83031
  }
82943
83032
  return this._array;
82944
83033
  }
82945
- }
83034
+ };
82946
83035
 
82947
83036
  mappingList.MappingList = MappingList$1;
82948
83037
 
@@ -82967,7 +83056,7 @@
82967
83056
  * - file: The filename of the generated source.
82968
83057
  * - sourceRoot: A root for all relative URLs in this source map.
82969
83058
  */
82970
- class SourceMapGenerator$1 {
83059
+ let SourceMapGenerator$1 = class SourceMapGenerator {
82971
83060
  constructor(aArgs) {
82972
83061
  if (!aArgs) {
82973
83062
  aArgs = {};
@@ -82988,7 +83077,7 @@
82988
83077
  */
82989
83078
  static fromSourceMap(aSourceMapConsumer) {
82990
83079
  const sourceRoot = aSourceMapConsumer.sourceRoot;
82991
- const generator = new SourceMapGenerator$1({
83080
+ const generator = new SourceMapGenerator({
82992
83081
  file: aSourceMapConsumer.file,
82993
83082
  sourceRoot
82994
83083
  });
@@ -83350,7 +83439,7 @@
83350
83439
  toString() {
83351
83440
  return JSON.stringify(this.toJSON());
83352
83441
  }
83353
- }
83442
+ };
83354
83443
 
83355
83444
  SourceMapGenerator$1.prototype._version = 3;
83356
83445
  sourceMapGenerator.SourceMapGenerator = SourceMapGenerator$1;
@@ -83465,7 +83554,7 @@
83465
83554
  }
83466
83555
 
83467
83556
  return index;
83468
- };
83557
+ };
83469
83558
  } (binarySearch$1));
83470
83559
 
83471
83560
  var readWasmBrowser = {exports: {}};
@@ -83491,7 +83580,9 @@
83491
83580
  mappingsWasm = input;
83492
83581
  };
83493
83582
 
83494
- const readWasm$1 = readWasmBrowser.exports;
83583
+ var readWasmBrowserExports = readWasmBrowser.exports;
83584
+
83585
+ const readWasm$1 = readWasmBrowserExports;
83495
83586
 
83496
83587
  /**
83497
83588
  * Provide the JIT with a nice shape / hidden class.
@@ -83610,7 +83701,7 @@
83610
83701
  const util = util$3;
83611
83702
  const binarySearch = binarySearch$1;
83612
83703
  const ArraySet = arraySet.ArraySet;
83613
- const readWasm = readWasmBrowser.exports;
83704
+ const readWasm = readWasmBrowserExports;
83614
83705
  const wasm = wasm$1;
83615
83706
 
83616
83707
  const INTERNAL = Symbol("smcInternal");
@@ -84816,9 +84907,11 @@
84816
84907
  exports.generateMapFileComment = function (file, options) {
84817
84908
  var data = 'sourceMappingURL=' + file;
84818
84909
  return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data;
84819
- };
84910
+ };
84820
84911
  } (convertSourceMap));
84821
84912
 
84913
+ var convert = /*@__PURE__*/getDefaultExportFromCjs(convertSourceMap);
84914
+
84822
84915
  function identifier(name) {
84823
84916
  return { type: 'Identifier', name }
84824
84917
  }
@@ -85007,6 +85100,7 @@
85007
85100
  };
85008
85101
  const keywords = new Set(reservedWords.keyword);
85009
85102
  const reservedWordsStrictSet = new Set(reservedWords.strict);
85103
+ new Set(reservedWords.strictBind);
85010
85104
 
85011
85105
  function isReservedWord(word, inModule) {
85012
85106
  return inModule && word === 'await' || word === 'enum'
@@ -85815,7 +85909,7 @@
85815
85909
  mapGenerator.setSourceContent(file, text);
85816
85910
  }
85817
85911
  if (sourceMap.inline) {
85818
- code += convertSourceMap.fromObject(mapGenerator.toJSON()).toComment();
85912
+ code += convert.fromObject(mapGenerator.toJSON()).toComment();
85819
85913
  } else {
85820
85914
  map = mapGenerator.toJSON();
85821
85915
  }
@@ -85833,7 +85927,5 @@
85833
85927
  exports.transform = transform;
85834
85928
  exports.transformAst = transformAst;
85835
85929
 
85836
- Object.defineProperty(exports, '__esModule', { value: true });
85837
-
85838
85930
  }));
85839
85931
  //# sourceMappingURL=api.js.map