@putout/babel 5.3.5 → 5.4.0

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/bundle/index.js CHANGED
@@ -40,13 +40,14 @@ isNodeMode || !mod || !mod.__esModule ? __defProp(target, 'default', {
40
40
  enumerable: true,
41
41
  }) : target, mod));
42
42
 
43
- // ../babel-babel/node_modules/jsesc/jsesc.js
43
+ // node_modules/jsesc/jsesc.js
44
44
  var require_jsesc = __commonJS({
45
- '../babel-babel/node_modules/jsesc/jsesc.js'(exports, module) {
45
+ 'node_modules/jsesc/jsesc.js'(exports, module) {
46
46
  "use strict";
47
47
 
48
48
  var object = {};
49
49
  var hasOwnProperty = object.hasOwnProperty;
50
+
50
51
  var forOwn = (object2, callback) => {
51
52
  for (const key in object2) {
52
53
  if (hasOwnProperty.call(object2, key)) {
@@ -63,6 +64,7 @@ var require_jsesc = __commonJS({
63
64
  forOwn(source, (key, value) => {
64
65
  destination[key] = value;
65
66
  });
67
+
66
68
  return destination;
67
69
  };
68
70
 
@@ -107,6 +109,10 @@ var require_jsesc = __commonJS({
107
109
  return typeof value == 'number' || toString.call(value) == '[object Number]';
108
110
  };
109
111
 
112
+ var isBigInt = (value) => {
113
+ return typeof value == 'bigint';
114
+ };
115
+
110
116
  var isFunction5 = (value) => {
111
117
  return typeof value == 'function';
112
118
  };
@@ -255,32 +261,41 @@ var require_jsesc = __commonJS({
255
261
  }
256
262
 
257
263
  return '[' + newLine + result.join(',' + newLine) + newLine + (compact ? '' : oldIndent) + ']';
258
- } else if (isNumber2(argument)) {
264
+ } else if (isNumber2(argument) || isBigInt(argument)) {
259
265
  if (json) {
260
- return JSON.stringify(argument);
266
+ return JSON.stringify(Number(argument));
261
267
  }
262
268
 
263
- if (useDecNumbers) {
264
- return String(argument);
265
- }
269
+ let result2;
266
270
 
267
- if (useHexNumbers) {
271
+ if (useDecNumbers) {
272
+ result2 = String(argument);
273
+ } else if (useHexNumbers) {
268
274
  let hexadecimal2 = argument.toString(16);
269
275
 
270
276
  if (!lowercaseHex) {
271
277
  hexadecimal2 = hexadecimal2.toUpperCase();
272
278
  }
273
279
 
274
- return '0x' + hexadecimal2;
280
+ result2 = '0x' + hexadecimal2;
281
+ } else if (useBinNumbers) {
282
+ result2 = '0b' + argument.toString(2);
283
+ } else if (useOctNumbers) {
284
+ result2 = '0o' + argument.toString(8);
275
285
  }
286
+
276
287
 
277
- if (useBinNumbers) {
278
- return '0b' + argument.toString(2);
288
+ if (isBigInt(argument)) {
289
+ return result2 + 'n';
279
290
  }
280
291
 
281
- if (useOctNumbers) {
282
- return '0o' + argument.toString(8);
292
+ return result2;
293
+ } else if (isBigInt(argument)) {
294
+ if (json) {
295
+ return JSON.stringify(Number(argument));
283
296
  }
297
+
298
+ return argument + 'n';
284
299
  } else if (!isObject(argument)) {
285
300
  if (json) {
286
301
  return JSON.stringify(argument) || 'null';
@@ -303,6 +318,7 @@ var require_jsesc = __commonJS({
303
318
  return '{' + newLine + result.join(',' + newLine) + newLine + (compact ? '' : oldIndent) + '}';
304
319
  }
305
320
 
321
+
306
322
  }
307
323
 
308
324
  const regex = options.escapeEverything ? escapeEverythingRegex : escapeNonAsciiRegex;
@@ -389,7 +405,7 @@ var require_jsesc = __commonJS({
389
405
  },
390
406
  });
391
407
 
392
- // ../babel-babel/packages/babel-types/lib/index.js
408
+ // node_modules/@babel/types/lib/index.js
393
409
  var lib_exports = {};
394
410
 
395
411
  __export(lib_exports, {
@@ -1642,7 +1658,7 @@ __export(lib_exports, {
1642
1658
  yieldExpression: () => yieldExpression,
1643
1659
  });
1644
1660
 
1645
- // ../babel-babel/packages/babel-helper-validator-identifier/lib/index.js
1661
+ // node_modules/@babel/helper-validator-identifier/lib/index.js
1646
1662
  var nonASCIIidentifierStartChars = '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC';
1647
1663
  var nonASCIIidentifierChars = '\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65';
1648
1664
  var nonASCIIidentifierStart = new RegExp('[' + nonASCIIidentifierStartChars + ']');
@@ -2759,7 +2775,7 @@ function isKeyword(word) {
2759
2775
  return keywords.has(word);
2760
2776
  }
2761
2777
 
2762
- // ../babel-babel/packages/babel-helper-string-parser/lib/index.js
2778
+ // node_modules/@babel/helper-string-parser/lib/index.js
2763
2779
  var _isDigit = function isDigit(code2) {
2764
2780
  return code2 >= 48 && code2 <= 57;
2765
2781
  };
@@ -3114,7 +3130,7 @@ function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
3114
3130
  };
3115
3131
  }
3116
3132
 
3117
- // ../babel-babel/packages/babel-types/lib/index.js
3133
+ // node_modules/@babel/types/lib/index.js
3118
3134
  function shallowEqual(actual, expected) {
3119
3135
  const keys2 = Object.keys(expected);
3120
3136
 
@@ -3836,16 +3852,6 @@ function isImportSpecifier(node, opts) {
3836
3852
  return opts == null || shallowEqual(node, opts);
3837
3853
  }
3838
3854
 
3839
- function isImportExpression(node, opts) {
3840
- if (!node)
3841
- return false;
3842
-
3843
- if (node.type !== 'ImportExpression')
3844
- return false;
3845
-
3846
- return opts == null || shallowEqual(node, opts);
3847
- }
3848
-
3849
3855
  function isMetaProperty(node, opts) {
3850
3856
  if (!node)
3851
3857
  return false;
@@ -3946,6 +3952,16 @@ function isAwaitExpression(node, opts) {
3946
3952
  return opts == null || shallowEqual(node, opts);
3947
3953
  }
3948
3954
 
3955
+ function isImportExpression(node, opts) {
3956
+ if (!node)
3957
+ return false;
3958
+
3959
+ if (node.type !== 'ImportExpression')
3960
+ return false;
3961
+
3962
+ return opts == null || shallowEqual(node, opts);
3963
+ }
3964
+
3949
3965
  function isImport(node, opts) {
3950
3966
  if (!node)
3951
3967
  return false;
@@ -5727,7 +5743,6 @@ function isStandardized(node, opts) {
5727
5743
  case 'ImportDefaultSpecifier':
5728
5744
  case 'ImportNamespaceSpecifier':
5729
5745
  case 'ImportSpecifier':
5730
- case 'ImportExpression':
5731
5746
  case 'MetaProperty':
5732
5747
  case 'ClassMethod':
5733
5748
  case 'ObjectPattern':
@@ -5738,6 +5753,7 @@ function isStandardized(node, opts) {
5738
5753
  case 'TemplateLiteral':
5739
5754
  case 'YieldExpression':
5740
5755
  case 'AwaitExpression':
5756
+ case 'ImportExpression':
5741
5757
  case 'Import':
5742
5758
  case 'BigIntLiteral':
5743
5759
  case 'ExportNamespaceSpecifier':
@@ -5801,13 +5817,12 @@ function isExpression(node, opts) {
5801
5817
  case 'UpdateExpression':
5802
5818
  case 'ArrowFunctionExpression':
5803
5819
  case 'ClassExpression':
5804
- case 'ImportExpression':
5805
5820
  case 'MetaProperty':
5806
5821
  case 'TaggedTemplateExpression':
5807
5822
  case 'TemplateLiteral':
5808
5823
  case 'YieldExpression':
5809
5824
  case 'AwaitExpression':
5810
- case 'Import':
5825
+ case 'ImportExpression':
5811
5826
  case 'BigIntLiteral':
5812
5827
  case 'OptionalMemberExpression':
5813
5828
  case 'OptionalCallExpression':
@@ -7136,24 +7151,14 @@ var STATEMENT_OR_BLOCK_KEYS = [
7136
7151
  'alternate',
7137
7152
  ];
7138
7153
  var FLATTENABLE_KEYS = ['body', 'expressions'];
7139
- var FOR_INIT_KEYS = [
7140
- 'left',
7141
- 'init',
7142
- ];
7154
+ var FOR_INIT_KEYS = ['left', 'init'];
7143
7155
  var COMMENT_KEYS = [
7144
7156
  'leadingComments',
7145
7157
  'trailingComments',
7146
7158
  'innerComments',
7147
7159
  ];
7148
- var LOGICAL_OPERATORS = [
7149
- '||',
7150
- '&&',
7151
- '??',
7152
- ];
7153
- var UPDATE_OPERATORS = [
7154
- '++',
7155
- '--',
7156
- ];
7160
+ var LOGICAL_OPERATORS = ['||', '&&', '??'];
7161
+ var UPDATE_OPERATORS = ['++', '--'];
7157
7162
  var BOOLEAN_NUMBER_BINARY_OPERATORS = [
7158
7163
  '>',
7159
7164
  '<',
@@ -7171,10 +7176,7 @@ var COMPARISON_BINARY_OPERATORS = [
7171
7176
  'in',
7172
7177
  'instanceof',
7173
7178
  ];
7174
- var BOOLEAN_BINARY_OPERATORS = [
7175
- ...COMPARISON_BINARY_OPERATORS,
7176
- ...BOOLEAN_NUMBER_BINARY_OPERATORS,
7177
- ];
7179
+ var BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS];
7178
7180
  var NUMBER_BINARY_OPERATORS = [
7179
7181
  '-',
7180
7182
  '/',
@@ -7204,11 +7206,7 @@ var BOOLEAN_UNARY_OPERATORS = [
7204
7206
  'delete',
7205
7207
  '!',
7206
7208
  ];
7207
- var NUMBER_UNARY_OPERATORS = [
7208
- '+',
7209
- '-',
7210
- '~',
7211
- ];
7209
+ var NUMBER_UNARY_OPERATORS = ['+', '-', '~'];
7212
7210
  var STRING_UNARY_OPERATORS = ['typeof'];
7213
7211
  var UNARY_OPERATORS = [
7214
7212
  'void',
@@ -7302,6 +7300,7 @@ function assertEach(callback) {
7302
7300
  return;
7303
7301
 
7304
7302
  let i = 0;
7303
+
7305
7304
  const subKey = {
7306
7305
  toString() {
7307
7306
  return `${key}[${i}]`;
@@ -7362,7 +7361,6 @@ function assertNodeType(...types2) {
7362
7361
  }
7363
7362
 
7364
7363
  validate4.oneOfNodeTypes = types2;
7365
-
7366
7364
  return validate4;
7367
7365
  }
7368
7366
 
@@ -7381,7 +7379,6 @@ function assertNodeOrValueType(...types2) {
7381
7379
  }
7382
7380
 
7383
7381
  validate4.oneOfNodeOrValueTypes = types2;
7384
-
7385
7382
  return validate4;
7386
7383
  }
7387
7384
 
@@ -7395,7 +7392,6 @@ function assertValueType(type) {
7395
7392
  }
7396
7393
 
7397
7394
  validate4.type = type;
7398
-
7399
7395
  return validate4;
7400
7396
  }
7401
7397
 
@@ -7425,7 +7421,6 @@ ${errors.join('\n')}`);
7425
7421
  }
7426
7422
 
7427
7423
  validate4.shapeOf = shape;
7428
-
7429
7424
  return validate4;
7430
7425
  }
7431
7426
 
@@ -7660,6 +7655,29 @@ var classMethodOrPropertyUnionShapeCommon = (allowPrivateName = false) => ({
7660
7655
  },
7661
7656
  });
7662
7657
 
7658
+ var memberExpressionUnionShapeCommon = {
7659
+ unionShape: {
7660
+ discriminator: 'computed',
7661
+ shapes: [{
7662
+ name: 'computed',
7663
+ value: [true],
7664
+ properties: {
7665
+ property: {
7666
+ validate: assertNodeType('Expression'),
7667
+ },
7668
+ },
7669
+ }, {
7670
+ name: 'nonComputed',
7671
+ value: [false],
7672
+ properties: {
7673
+ property: {
7674
+ validate: assertNodeType('Identifier', 'PrivateName'),
7675
+ },
7676
+ },
7677
+ }],
7678
+ },
7679
+ };
7680
+
7663
7681
  var defineType$4 = defineAliasedType('Standardized');
7664
7682
 
7665
7683
  defineType$4('ArrayExpression', {
@@ -7716,6 +7734,7 @@ defineType$4('BinaryExpression', {
7716
7734
  validate: (function() {
7717
7735
  const expression2 = assertNodeType('Expression');
7718
7736
  const inOp = assertNodeType('Expression', 'PrivateName');
7737
+
7719
7738
  const validator = Object.assign(function(node, key, val) {
7720
7739
  const validator2 = node.operator === 'in' ? inOp : expression2;
7721
7740
  validator2(node, key, val);
@@ -7730,6 +7749,26 @@ defineType$4('BinaryExpression', {
7730
7749
  validate: assertNodeType('Expression'),
7731
7750
  },
7732
7751
  },
7752
+ unionShape: {
7753
+ discriminator: 'operator',
7754
+ shapes: [{
7755
+ name: 'in',
7756
+ value: ['in'],
7757
+ properties: {
7758
+ left: {
7759
+ validate: assertNodeType('Expression', 'PrivateName'),
7760
+ },
7761
+ },
7762
+ }, {
7763
+ name: 'notIn',
7764
+ value: BINARY_OPERATORS.filter((op) => op !== 'in'),
7765
+ properties: {
7766
+ left: {
7767
+ validate: assertNodeType('Expression'),
7768
+ },
7769
+ },
7770
+ }],
7771
+ },
7733
7772
  visitor: ['left', 'right'],
7734
7773
  aliases: ['Binary', 'Expression'],
7735
7774
  });
@@ -7798,7 +7837,7 @@ defineType$4('CallExpression', {
7798
7837
  aliases: ['Expression'],
7799
7838
  fields: {
7800
7839
  callee: {
7801
- validate: assertNodeType('Expression', 'Super', 'V8IntrinsicIdentifier'),
7840
+ validate: assertNodeType('Expression', 'Super', 'Import', 'V8IntrinsicIdentifier'),
7802
7841
  },
7803
7842
  arguments: validateArrayOfType('Expression', 'SpreadElement', 'ArgumentPlaceholder'),
7804
7843
  typeArguments: {
@@ -8296,7 +8335,6 @@ defineType$4('MemberExpression', {
8296
8335
  'object',
8297
8336
  'property',
8298
8337
  'computed',
8299
- ...[],
8300
8338
  ],
8301
8339
  visitor: ['object', 'property'],
8302
8340
  aliases: [
@@ -8304,26 +8342,7 @@ defineType$4('MemberExpression', {
8304
8342
  'LVal',
8305
8343
  'PatternLike',
8306
8344
  ],
8307
- unionShape: {
8308
- discriminator: 'computed',
8309
- shapes: [{
8310
- name: 'computed',
8311
- value: [true],
8312
- properties: {
8313
- property: {
8314
- validate: assertNodeType('Expression'),
8315
- },
8316
- },
8317
- }, {
8318
- name: 'nonComputed',
8319
- value: [false],
8320
- properties: {
8321
- property: {
8322
- validate: assertNodeType('Identifier', 'PrivateName'),
8323
- },
8324
- },
8325
- }],
8326
- },
8345
+ ...memberExpressionUnionShapeCommon,
8327
8346
  fields: {
8328
8347
  object: {
8329
8348
  validate: assertNodeType('Expression', 'Super'),
@@ -8332,6 +8351,7 @@ defineType$4('MemberExpression', {
8332
8351
  validate: (function() {
8333
8352
  const normal = assertNodeType('Identifier', 'PrivateName');
8334
8353
  const computed = assertNodeType('Expression');
8354
+
8335
8355
  const validator = function(node, key, val) {
8336
8356
  const validator2 = node.computed ? computed : normal;
8337
8357
  validator2(node, key, val);
@@ -8422,6 +8442,7 @@ defineType$4('ObjectMethod', {
8422
8442
  validate: (function() {
8423
8443
  const normal = assertNodeType('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral');
8424
8444
  const computed = assertNodeType('Expression');
8445
+
8425
8446
  const validator = function(node, key, val) {
8426
8447
  const validator2 = node.computed ? computed : normal;
8427
8448
  validator2(node, key, val);
@@ -8461,28 +8482,8 @@ defineType$4('ObjectProperty', {
8461
8482
  'value',
8462
8483
  'computed',
8463
8484
  'shorthand',
8464
- ...[],
8465
8485
  ],
8466
- unionShape: {
8467
- discriminator: 'computed',
8468
- shapes: [{
8469
- name: 'computed',
8470
- value: [true],
8471
- properties: {
8472
- key: {
8473
- validate: assertNodeType('Expression'),
8474
- },
8475
- },
8476
- }, {
8477
- name: 'nonComputed',
8478
- value: [false],
8479
- properties: {
8480
- key: {
8481
- validate: assertNodeType('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'PrivateName'),
8482
- },
8483
- },
8484
- }],
8485
- },
8486
+ ...classMethodOrPropertyUnionShapeCommon(true),
8486
8487
  fields: {
8487
8488
  computed: {
8488
8489
  default: false,
@@ -8491,6 +8492,7 @@ defineType$4('ObjectProperty', {
8491
8492
  validate: (function() {
8492
8493
  const normal = assertNodeType('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'PrivateName');
8493
8494
  const computed = assertNodeType('Expression');
8495
+
8494
8496
  const validator = Object.assign(function(node, key, val) {
8495
8497
  const validator2 = node.computed ? computed : normal;
8496
8498
  validator2(node, key, val);
@@ -9083,7 +9085,21 @@ defineType$4('ExportNamedDeclaration', {
9083
9085
  throw new TypeError('Cannot export a declaration from a source');
9084
9086
  }
9085
9087
  }, {
9086
- oneOfNodeTypes: ['Declaration'],
9088
+ oneOfNodeTypes: [
9089
+ 'VariableDeclaration',
9090
+ 'FunctionDeclaration',
9091
+ 'ClassDeclaration',
9092
+ 'TSDeclareFunction',
9093
+ 'TSEnumDeclaration',
9094
+ 'TSImportEqualsDeclaration',
9095
+ 'TSInterfaceDeclaration',
9096
+ 'TSModuleDeclaration',
9097
+ 'TSTypeAliasDeclaration',
9098
+ 'EnumDeclaration',
9099
+ 'InterfaceDeclaration',
9100
+ 'OpaqueType',
9101
+ 'TypeAlias',
9102
+ ],
9087
9103
  })),
9088
9104
  },
9089
9105
  ...importAttributes,
@@ -9257,23 +9273,6 @@ defineType$4('ImportSpecifier', {
9257
9273
  },
9258
9274
  },
9259
9275
  });
9260
- defineType$4('ImportExpression', {
9261
- visitor: ['source', 'options'],
9262
- aliases: ['Expression'],
9263
- fields: {
9264
- phase: {
9265
- default: null,
9266
- validate: assertOneOf('source', 'defer'),
9267
- },
9268
- source: {
9269
- validate: assertNodeType('Expression'),
9270
- },
9271
- options: {
9272
- validate: assertNodeType('Expression'),
9273
- optional: true,
9274
- },
9275
- },
9276
- });
9277
9276
  defineType$4('MetaProperty', {
9278
9277
  visitor: ['meta', 'property'],
9279
9278
  aliases: ['Expression'],
@@ -9429,7 +9428,7 @@ defineType$4('SpreadElement', {
9429
9428
  },
9430
9429
  },
9431
9430
  });
9432
- defineType$4('Super', void 0);
9431
+ defineType$4('Super');
9433
9432
  defineType$4('TaggedTemplateExpression', {
9434
9433
  visitor: [
9435
9434
  'tag',
@@ -9466,6 +9465,7 @@ defineType$4('TemplateElement', {
9466
9465
  }), function templateElementCookedValidator(node) {
9467
9466
  const raw = node.value.raw;
9468
9467
  let unterminatedCalled = false;
9468
+
9469
9469
  const error = () => {
9470
9470
  throw new Error('Internal @babel/types error.');
9471
9471
  };
@@ -9542,9 +9542,24 @@ defineType$4('AwaitExpression', {
9542
9542
  },
9543
9543
  },
9544
9544
  });
9545
- defineType$4('Import', {
9545
+ defineType$4('ImportExpression', {
9546
+ visitor: ['source', 'options'],
9546
9547
  aliases: ['Expression'],
9548
+ fields: {
9549
+ phase: {
9550
+ default: null,
9551
+ validate: assertOneOf('source', 'defer'),
9552
+ },
9553
+ source: {
9554
+ validate: assertNodeType('Expression'),
9555
+ },
9556
+ options: {
9557
+ validate: assertNodeType('Expression'),
9558
+ optional: true,
9559
+ },
9560
+ },
9547
9561
  });
9562
+ defineType$4('Import');
9548
9563
  defineType$4('BigIntLiteral', {
9549
9564
  builder: ['value'],
9550
9565
  fields: {
@@ -9577,19 +9592,21 @@ defineType$4('OptionalMemberExpression', {
9577
9592
  ],
9578
9593
  visitor: ['object', 'property'],
9579
9594
  aliases: ['Expression'],
9595
+ ...memberExpressionUnionShapeCommon,
9580
9596
  fields: {
9581
9597
  object: {
9582
9598
  validate: assertNodeType('Expression'),
9583
9599
  },
9584
9600
  property: {
9585
9601
  validate: (function() {
9586
- const normal = assertNodeType('Identifier');
9602
+ const normal = assertNodeType('Identifier', 'PrivateName');
9587
9603
  const computed = assertNodeType('Expression');
9604
+
9588
9605
  const validator = Object.assign(function(node, key, val) {
9589
9606
  const validator2 = node.computed ? computed : normal;
9590
9607
  validator2(node, key, val);
9591
9608
  }, {
9592
- oneOfNodeTypes: ['Expression', 'Identifier'],
9609
+ oneOfNodeTypes: ['Expression', 'PrivateName'],
9593
9610
  });
9594
9611
 
9595
9612
  return validator;
@@ -10957,7 +10974,6 @@ defineType('TSThisType', {
10957
10974
  visitor: [],
10958
10975
  fields: {},
10959
10976
  });
10960
-
10961
10977
  var fnOrCtrBase = {
10962
10978
  aliases: ['TSType'],
10963
10979
  visitor: [
@@ -11463,7 +11479,8 @@ Object
11463
11479
  .forEach((deprecatedAlias) => {
11464
11480
  FLIPPED_ALIAS_KEYS[deprecatedAlias] = FLIPPED_ALIAS_KEYS[DEPRECATED_ALIASES[deprecatedAlias]];
11465
11481
  });
11466
- for (const {types: types2, set} of allExpandedTypes) {
11482
+ for (const {types: types2, set}
11483
+ of allExpandedTypes) {
11467
11484
  for (const type of types2) {
11468
11485
  const aliases = FLIPPED_ALIAS_KEYS[type];
11469
11486
 
@@ -11548,6 +11565,7 @@ function arrayExpression(elements) {
11548
11565
  };
11549
11566
 
11550
11567
  const defs2 = NODE_FIELDS.ArrayExpression;
11568
+
11551
11569
  validate(defs2.elements, node, 'elements', elements, 1);
11552
11570
  return node;
11553
11571
  }
@@ -11561,6 +11579,7 @@ function assignmentExpression(operator, left, right) {
11561
11579
  };
11562
11580
 
11563
11581
  const defs2 = NODE_FIELDS.AssignmentExpression;
11582
+
11564
11583
  validate(defs2.operator, node, 'operator', operator);
11565
11584
  validate(defs2.left, node, 'left', left, 1);
11566
11585
  validate(defs2.right, node, 'right', right, 1);
@@ -11576,6 +11595,7 @@ function binaryExpression(operator, left, right) {
11576
11595
  };
11577
11596
 
11578
11597
  const defs2 = NODE_FIELDS.BinaryExpression;
11598
+
11579
11599
  validate(defs2.operator, node, 'operator', operator);
11580
11600
  validate(defs2.left, node, 'left', left, 1);
11581
11601
  validate(defs2.right, node, 'right', right, 1);
@@ -11589,6 +11609,7 @@ function interpreterDirective(value) {
11589
11609
  };
11590
11610
 
11591
11611
  const defs2 = NODE_FIELDS.InterpreterDirective;
11612
+
11592
11613
  validate(defs2.value, node, 'value', value);
11593
11614
  return node;
11594
11615
  }
@@ -11600,6 +11621,7 @@ function directive(value) {
11600
11621
  };
11601
11622
 
11602
11623
  const defs2 = NODE_FIELDS.Directive;
11624
+
11603
11625
  validate(defs2.value, node, 'value', value, 1);
11604
11626
  return node;
11605
11627
  }
@@ -11611,6 +11633,7 @@ function directiveLiteral(value) {
11611
11633
  };
11612
11634
 
11613
11635
  const defs2 = NODE_FIELDS.DirectiveLiteral;
11636
+
11614
11637
  validate(defs2.value, node, 'value', value);
11615
11638
  return node;
11616
11639
  }
@@ -11623,6 +11646,7 @@ function blockStatement(body, directives = []) {
11623
11646
  };
11624
11647
 
11625
11648
  const defs2 = NODE_FIELDS.BlockStatement;
11649
+
11626
11650
  validate(defs2.body, node, 'body', body, 1);
11627
11651
  validate(defs2.directives, node, 'directives', directives, 1);
11628
11652
  return node;
@@ -11635,6 +11659,7 @@ function breakStatement(label = null) {
11635
11659
  };
11636
11660
 
11637
11661
  const defs2 = NODE_FIELDS.BreakStatement;
11662
+
11638
11663
  validate(defs2.label, node, 'label', label, 1);
11639
11664
  return node;
11640
11665
  }
@@ -11647,6 +11672,7 @@ function callExpression(callee, _arguments) {
11647
11672
  };
11648
11673
 
11649
11674
  const defs2 = NODE_FIELDS.CallExpression;
11675
+
11650
11676
  validate(defs2.callee, node, 'callee', callee, 1);
11651
11677
  validate(defs2.arguments, node, 'arguments', _arguments, 1);
11652
11678
  return node;
@@ -11660,6 +11686,7 @@ function catchClause(param = null, body) {
11660
11686
  };
11661
11687
 
11662
11688
  const defs2 = NODE_FIELDS.CatchClause;
11689
+
11663
11690
  validate(defs2.param, node, 'param', param, 1);
11664
11691
  validate(defs2.body, node, 'body', body, 1);
11665
11692
  return node;
@@ -11674,6 +11701,7 @@ function conditionalExpression(test, consequent, alternate) {
11674
11701
  };
11675
11702
 
11676
11703
  const defs2 = NODE_FIELDS.ConditionalExpression;
11704
+
11677
11705
  validate(defs2.test, node, 'test', test, 1);
11678
11706
  validate(defs2.consequent, node, 'consequent', consequent, 1);
11679
11707
  validate(defs2.alternate, node, 'alternate', alternate, 1);
@@ -11687,6 +11715,7 @@ function continueStatement(label = null) {
11687
11715
  };
11688
11716
 
11689
11717
  const defs2 = NODE_FIELDS.ContinueStatement;
11718
+
11690
11719
  validate(defs2.label, node, 'label', label, 1);
11691
11720
  return node;
11692
11721
  }
@@ -11705,6 +11734,7 @@ function doWhileStatement(test, body) {
11705
11734
  };
11706
11735
 
11707
11736
  const defs2 = NODE_FIELDS.DoWhileStatement;
11737
+
11708
11738
  validate(defs2.test, node, 'test', test, 1);
11709
11739
  validate(defs2.body, node, 'body', body, 1);
11710
11740
  return node;
@@ -11723,6 +11753,7 @@ function expressionStatement(expression2) {
11723
11753
  };
11724
11754
 
11725
11755
  const defs2 = NODE_FIELDS.ExpressionStatement;
11756
+
11726
11757
  validate(defs2.expression, node, 'expression', expression2, 1);
11727
11758
  return node;
11728
11759
  }
@@ -11736,6 +11767,7 @@ function file(program3, comments = null, tokens = null) {
11736
11767
  };
11737
11768
 
11738
11769
  const defs2 = NODE_FIELDS.File;
11770
+
11739
11771
  validate(defs2.program, node, 'program', program3, 1);
11740
11772
  validate(defs2.comments, node, 'comments', comments, 1);
11741
11773
  validate(defs2.tokens, node, 'tokens', tokens);
@@ -11751,6 +11783,7 @@ function forInStatement(left, right, body) {
11751
11783
  };
11752
11784
 
11753
11785
  const defs2 = NODE_FIELDS.ForInStatement;
11786
+
11754
11787
  validate(defs2.left, node, 'left', left, 1);
11755
11788
  validate(defs2.right, node, 'right', right, 1);
11756
11789
  validate(defs2.body, node, 'body', body, 1);
@@ -11767,6 +11800,7 @@ function forStatement(init = null, test = null, update = null, body) {
11767
11800
  };
11768
11801
 
11769
11802
  const defs2 = NODE_FIELDS.ForStatement;
11803
+
11770
11804
  validate(defs2.init, node, 'init', init, 1);
11771
11805
  validate(defs2.test, node, 'test', test, 1);
11772
11806
  validate(defs2.update, node, 'update', update, 1);
@@ -11785,6 +11819,7 @@ function functionDeclaration(id = null, params, body, generator = false, async =
11785
11819
  };
11786
11820
 
11787
11821
  const defs2 = NODE_FIELDS.FunctionDeclaration;
11822
+
11788
11823
  validate(defs2.id, node, 'id', id, 1);
11789
11824
  validate(defs2.params, node, 'params', params, 1);
11790
11825
  validate(defs2.body, node, 'body', body, 1);
@@ -11804,6 +11839,7 @@ function functionExpression(id = null, params, body, generator = false, async =
11804
11839
  };
11805
11840
 
11806
11841
  const defs2 = NODE_FIELDS.FunctionExpression;
11842
+
11807
11843
  validate(defs2.id, node, 'id', id, 1);
11808
11844
  validate(defs2.params, node, 'params', params, 1);
11809
11845
  validate(defs2.body, node, 'body', body, 1);
@@ -11819,6 +11855,7 @@ function identifier(name) {
11819
11855
  };
11820
11856
 
11821
11857
  const defs2 = NODE_FIELDS.Identifier;
11858
+
11822
11859
  validate(defs2.name, node, 'name', name);
11823
11860
  return node;
11824
11861
  }
@@ -11832,6 +11869,7 @@ function ifStatement(test, consequent, alternate = null) {
11832
11869
  };
11833
11870
 
11834
11871
  const defs2 = NODE_FIELDS.IfStatement;
11872
+
11835
11873
  validate(defs2.test, node, 'test', test, 1);
11836
11874
  validate(defs2.consequent, node, 'consequent', consequent, 1);
11837
11875
  validate(defs2.alternate, node, 'alternate', alternate, 1);
@@ -11846,6 +11884,7 @@ function labeledStatement(label, body) {
11846
11884
  };
11847
11885
 
11848
11886
  const defs2 = NODE_FIELDS.LabeledStatement;
11887
+
11849
11888
  validate(defs2.label, node, 'label', label, 1);
11850
11889
  validate(defs2.body, node, 'body', body, 1);
11851
11890
  return node;
@@ -11858,6 +11897,7 @@ function stringLiteral(value) {
11858
11897
  };
11859
11898
 
11860
11899
  const defs2 = NODE_FIELDS.StringLiteral;
11900
+
11861
11901
  validate(defs2.value, node, 'value', value);
11862
11902
  return node;
11863
11903
  }
@@ -11869,6 +11909,7 @@ function numericLiteral(value) {
11869
11909
  };
11870
11910
 
11871
11911
  const defs2 = NODE_FIELDS.NumericLiteral;
11912
+
11872
11913
  validate(defs2.value, node, 'value', value);
11873
11914
  return node;
11874
11915
  }
@@ -11886,6 +11927,7 @@ function booleanLiteral(value) {
11886
11927
  };
11887
11928
 
11888
11929
  const defs2 = NODE_FIELDS.BooleanLiteral;
11930
+
11889
11931
  validate(defs2.value, node, 'value', value);
11890
11932
  return node;
11891
11933
  }
@@ -11898,6 +11940,7 @@ function regExpLiteral(pattern, flags = '') {
11898
11940
  };
11899
11941
 
11900
11942
  const defs2 = NODE_FIELDS.RegExpLiteral;
11943
+
11901
11944
  validate(defs2.pattern, node, 'pattern', pattern);
11902
11945
  validate(defs2.flags, node, 'flags', flags);
11903
11946
  return node;
@@ -11912,6 +11955,7 @@ function logicalExpression(operator, left, right) {
11912
11955
  };
11913
11956
 
11914
11957
  const defs2 = NODE_FIELDS.LogicalExpression;
11958
+
11915
11959
  validate(defs2.operator, node, 'operator', operator);
11916
11960
  validate(defs2.left, node, 'left', left, 1);
11917
11961
  validate(defs2.right, node, 'right', right, 1);
@@ -11927,6 +11971,7 @@ function memberExpression(object, property, computed = false) {
11927
11971
  };
11928
11972
 
11929
11973
  const defs2 = NODE_FIELDS.MemberExpression;
11974
+
11930
11975
  validate(defs2.object, node, 'object', object, 1);
11931
11976
  validate(defs2.property, node, 'property', property, 1);
11932
11977
  validate(defs2.computed, node, 'computed', computed);
@@ -11941,6 +11986,7 @@ function newExpression(callee, _arguments) {
11941
11986
  };
11942
11987
 
11943
11988
  const defs2 = NODE_FIELDS.NewExpression;
11989
+
11944
11990
  validate(defs2.callee, node, 'callee', callee, 1);
11945
11991
  validate(defs2.arguments, node, 'arguments', _arguments, 1);
11946
11992
  return node;
@@ -11956,6 +12002,7 @@ function program(body, directives = [], sourceType = 'script', interpreter = nul
11956
12002
  };
11957
12003
 
11958
12004
  const defs2 = NODE_FIELDS.Program;
12005
+
11959
12006
  validate(defs2.body, node, 'body', body, 1);
11960
12007
  validate(defs2.directives, node, 'directives', directives, 1);
11961
12008
  validate(defs2.sourceType, node, 'sourceType', sourceType);
@@ -11970,6 +12017,7 @@ function objectExpression(properties) {
11970
12017
  };
11971
12018
 
11972
12019
  const defs2 = NODE_FIELDS.ObjectExpression;
12020
+
11973
12021
  validate(defs2.properties, node, 'properties', properties, 1);
11974
12022
  return node;
11975
12023
  }
@@ -11987,6 +12035,7 @@ function objectMethod(kind, key, params, body, computed = false, generator = fal
11987
12035
  };
11988
12036
 
11989
12037
  const defs2 = NODE_FIELDS.ObjectMethod;
12038
+
11990
12039
  validate(defs2.kind, node, 'kind', kind);
11991
12040
  validate(defs2.key, node, 'key', key, 1);
11992
12041
  validate(defs2.params, node, 'params', params, 1);
@@ -12007,6 +12056,7 @@ function objectProperty(key, value, computed = false, shorthand = false) {
12007
12056
  };
12008
12057
 
12009
12058
  const defs2 = NODE_FIELDS.ObjectProperty;
12059
+
12010
12060
  validate(defs2.key, node, 'key', key, 1);
12011
12061
  validate(defs2.value, node, 'value', value, 1);
12012
12062
  validate(defs2.computed, node, 'computed', computed);
@@ -12021,6 +12071,7 @@ function restElement(argument) {
12021
12071
  };
12022
12072
 
12023
12073
  const defs2 = NODE_FIELDS.RestElement;
12074
+
12024
12075
  validate(defs2.argument, node, 'argument', argument, 1);
12025
12076
  return node;
12026
12077
  }
@@ -12032,6 +12083,7 @@ function returnStatement(argument = null) {
12032
12083
  };
12033
12084
 
12034
12085
  const defs2 = NODE_FIELDS.ReturnStatement;
12086
+
12035
12087
  validate(defs2.argument, node, 'argument', argument, 1);
12036
12088
  return node;
12037
12089
  }
@@ -12043,6 +12095,7 @@ function sequenceExpression(expressions) {
12043
12095
  };
12044
12096
 
12045
12097
  const defs2 = NODE_FIELDS.SequenceExpression;
12098
+
12046
12099
  validate(defs2.expressions, node, 'expressions', expressions, 1);
12047
12100
  return node;
12048
12101
  }
@@ -12054,6 +12107,7 @@ function parenthesizedExpression(expression2) {
12054
12107
  };
12055
12108
 
12056
12109
  const defs2 = NODE_FIELDS.ParenthesizedExpression;
12110
+
12057
12111
  validate(defs2.expression, node, 'expression', expression2, 1);
12058
12112
  return node;
12059
12113
  }
@@ -12066,6 +12120,7 @@ function switchCase(test = null, consequent) {
12066
12120
  };
12067
12121
 
12068
12122
  const defs2 = NODE_FIELDS.SwitchCase;
12123
+
12069
12124
  validate(defs2.test, node, 'test', test, 1);
12070
12125
  validate(defs2.consequent, node, 'consequent', consequent, 1);
12071
12126
  return node;
@@ -12079,6 +12134,7 @@ function switchStatement(discriminant, cases) {
12079
12134
  };
12080
12135
 
12081
12136
  const defs2 = NODE_FIELDS.SwitchStatement;
12137
+
12082
12138
  validate(defs2.discriminant, node, 'discriminant', discriminant, 1);
12083
12139
  validate(defs2.cases, node, 'cases', cases, 1);
12084
12140
  return node;
@@ -12097,6 +12153,7 @@ function throwStatement(argument) {
12097
12153
  };
12098
12154
 
12099
12155
  const defs2 = NODE_FIELDS.ThrowStatement;
12156
+
12100
12157
  validate(defs2.argument, node, 'argument', argument, 1);
12101
12158
  return node;
12102
12159
  }
@@ -12110,6 +12167,7 @@ function tryStatement(block, handler = null, finalizer = null) {
12110
12167
  };
12111
12168
 
12112
12169
  const defs2 = NODE_FIELDS.TryStatement;
12170
+
12113
12171
  validate(defs2.block, node, 'block', block, 1);
12114
12172
  validate(defs2.handler, node, 'handler', handler, 1);
12115
12173
  validate(defs2.finalizer, node, 'finalizer', finalizer, 1);
@@ -12125,6 +12183,7 @@ function unaryExpression(operator, argument, prefix2 = true) {
12125
12183
  };
12126
12184
 
12127
12185
  const defs2 = NODE_FIELDS.UnaryExpression;
12186
+
12128
12187
  validate(defs2.operator, node, 'operator', operator);
12129
12188
  validate(defs2.argument, node, 'argument', argument, 1);
12130
12189
  validate(defs2.prefix, node, 'prefix', prefix2);
@@ -12140,6 +12199,7 @@ function updateExpression(operator, argument, prefix2 = false) {
12140
12199
  };
12141
12200
 
12142
12201
  const defs2 = NODE_FIELDS.UpdateExpression;
12202
+
12143
12203
  validate(defs2.operator, node, 'operator', operator);
12144
12204
  validate(defs2.argument, node, 'argument', argument, 1);
12145
12205
  validate(defs2.prefix, node, 'prefix', prefix2);
@@ -12154,6 +12214,7 @@ function variableDeclaration(kind, declarations) {
12154
12214
  };
12155
12215
 
12156
12216
  const defs2 = NODE_FIELDS.VariableDeclaration;
12217
+
12157
12218
  validate(defs2.kind, node, 'kind', kind);
12158
12219
  validate(defs2.declarations, node, 'declarations', declarations, 1);
12159
12220
  return node;
@@ -12167,6 +12228,7 @@ function variableDeclarator(id, init = null) {
12167
12228
  };
12168
12229
 
12169
12230
  const defs2 = NODE_FIELDS.VariableDeclarator;
12231
+
12170
12232
  validate(defs2.id, node, 'id', id, 1);
12171
12233
  validate(defs2.init, node, 'init', init, 1);
12172
12234
  return node;
@@ -12180,6 +12242,7 @@ function whileStatement(test, body) {
12180
12242
  };
12181
12243
 
12182
12244
  const defs2 = NODE_FIELDS.WhileStatement;
12245
+
12183
12246
  validate(defs2.test, node, 'test', test, 1);
12184
12247
  validate(defs2.body, node, 'body', body, 1);
12185
12248
  return node;
@@ -12193,6 +12256,7 @@ function withStatement(object, body) {
12193
12256
  };
12194
12257
 
12195
12258
  const defs2 = NODE_FIELDS.WithStatement;
12259
+
12196
12260
  validate(defs2.object, node, 'object', object, 1);
12197
12261
  validate(defs2.body, node, 'body', body, 1);
12198
12262
  return node;
@@ -12206,6 +12270,7 @@ function assignmentPattern(left, right) {
12206
12270
  };
12207
12271
 
12208
12272
  const defs2 = NODE_FIELDS.AssignmentPattern;
12273
+
12209
12274
  validate(defs2.left, node, 'left', left, 1);
12210
12275
  validate(defs2.right, node, 'right', right, 1);
12211
12276
  return node;
@@ -12218,6 +12283,7 @@ function arrayPattern(elements) {
12218
12283
  };
12219
12284
 
12220
12285
  const defs2 = NODE_FIELDS.ArrayPattern;
12286
+
12221
12287
  validate(defs2.elements, node, 'elements', elements, 1);
12222
12288
  return node;
12223
12289
  }
@@ -12232,6 +12298,7 @@ function arrowFunctionExpression(params, body, async = false) {
12232
12298
  };
12233
12299
 
12234
12300
  const defs2 = NODE_FIELDS.ArrowFunctionExpression;
12301
+
12235
12302
  validate(defs2.params, node, 'params', params, 1);
12236
12303
  validate(defs2.body, node, 'body', body, 1);
12237
12304
  validate(defs2.async, node, 'async', async);
@@ -12245,6 +12312,7 @@ function classBody(body) {
12245
12312
  };
12246
12313
 
12247
12314
  const defs2 = NODE_FIELDS.ClassBody;
12315
+
12248
12316
  validate(defs2.body, node, 'body', body, 1);
12249
12317
  return node;
12250
12318
  }
@@ -12259,6 +12327,7 @@ function classExpression(id = null, superClass = null, body, decorators = null)
12259
12327
  };
12260
12328
 
12261
12329
  const defs2 = NODE_FIELDS.ClassExpression;
12330
+
12262
12331
  validate(defs2.id, node, 'id', id, 1);
12263
12332
  validate(defs2.superClass, node, 'superClass', superClass, 1);
12264
12333
  validate(defs2.body, node, 'body', body, 1);
@@ -12276,6 +12345,7 @@ function classDeclaration(id = null, superClass = null, body, decorators = null)
12276
12345
  };
12277
12346
 
12278
12347
  const defs2 = NODE_FIELDS.ClassDeclaration;
12348
+
12279
12349
  validate(defs2.id, node, 'id', id, 1);
12280
12350
  validate(defs2.superClass, node, 'superClass', superClass, 1);
12281
12351
  validate(defs2.body, node, 'body', body, 1);
@@ -12291,6 +12361,7 @@ function exportAllDeclaration(source, attributes = null) {
12291
12361
  };
12292
12362
 
12293
12363
  const defs2 = NODE_FIELDS.ExportAllDeclaration;
12364
+
12294
12365
  validate(defs2.source, node, 'source', source, 1);
12295
12366
  validate(defs2.attributes, node, 'attributes', attributes, 1);
12296
12367
  return node;
@@ -12303,6 +12374,7 @@ function exportDefaultDeclaration(declaration) {
12303
12374
  };
12304
12375
 
12305
12376
  const defs2 = NODE_FIELDS.ExportDefaultDeclaration;
12377
+
12306
12378
  validate(defs2.declaration, node, 'declaration', declaration, 1);
12307
12379
  return node;
12308
12380
  }
@@ -12317,6 +12389,7 @@ function exportNamedDeclaration(declaration = null, specifiers = [], source = nu
12317
12389
  };
12318
12390
 
12319
12391
  const defs2 = NODE_FIELDS.ExportNamedDeclaration;
12392
+
12320
12393
  validate(defs2.declaration, node, 'declaration', declaration, 1);
12321
12394
  validate(defs2.specifiers, node, 'specifiers', specifiers, 1);
12322
12395
  validate(defs2.source, node, 'source', source, 1);
@@ -12332,6 +12405,7 @@ function exportSpecifier(local, exported) {
12332
12405
  };
12333
12406
 
12334
12407
  const defs2 = NODE_FIELDS.ExportSpecifier;
12408
+
12335
12409
  validate(defs2.local, node, 'local', local, 1);
12336
12410
  validate(defs2.exported, node, 'exported', exported, 1);
12337
12411
  return node;
@@ -12347,6 +12421,7 @@ function forOfStatement(left, right, body, _await = false) {
12347
12421
  };
12348
12422
 
12349
12423
  const defs2 = NODE_FIELDS.ForOfStatement;
12424
+
12350
12425
  validate(defs2.left, node, 'left', left, 1);
12351
12426
  validate(defs2.right, node, 'right', right, 1);
12352
12427
  validate(defs2.body, node, 'body', body, 1);
@@ -12363,6 +12438,7 @@ function importDeclaration(specifiers, source, attributes = null) {
12363
12438
  };
12364
12439
 
12365
12440
  const defs2 = NODE_FIELDS.ImportDeclaration;
12441
+
12366
12442
  validate(defs2.specifiers, node, 'specifiers', specifiers, 1);
12367
12443
  validate(defs2.source, node, 'source', source, 1);
12368
12444
  validate(defs2.attributes, node, 'attributes', attributes, 1);
@@ -12376,6 +12452,7 @@ function importDefaultSpecifier(local) {
12376
12452
  };
12377
12453
 
12378
12454
  const defs2 = NODE_FIELDS.ImportDefaultSpecifier;
12455
+
12379
12456
  validate(defs2.local, node, 'local', local, 1);
12380
12457
  return node;
12381
12458
  }
@@ -12387,6 +12464,7 @@ function importNamespaceSpecifier(local) {
12387
12464
  };
12388
12465
 
12389
12466
  const defs2 = NODE_FIELDS.ImportNamespaceSpecifier;
12467
+
12390
12468
  validate(defs2.local, node, 'local', local, 1);
12391
12469
  return node;
12392
12470
  }
@@ -12399,24 +12477,12 @@ function importSpecifier(local, imported) {
12399
12477
  };
12400
12478
 
12401
12479
  const defs2 = NODE_FIELDS.ImportSpecifier;
12480
+
12402
12481
  validate(defs2.local, node, 'local', local, 1);
12403
12482
  validate(defs2.imported, node, 'imported', imported, 1);
12404
12483
  return node;
12405
12484
  }
12406
12485
 
12407
- function importExpression(source, options = null) {
12408
- const node = {
12409
- type: 'ImportExpression',
12410
- source,
12411
- options,
12412
- };
12413
-
12414
- const defs2 = NODE_FIELDS.ImportExpression;
12415
- validate(defs2.source, node, 'source', source, 1);
12416
- validate(defs2.options, node, 'options', options, 1);
12417
- return node;
12418
- }
12419
-
12420
12486
  function metaProperty(meta, property) {
12421
12487
  const node = {
12422
12488
  type: 'MetaProperty',
@@ -12425,6 +12491,7 @@ function metaProperty(meta, property) {
12425
12491
  };
12426
12492
 
12427
12493
  const defs2 = NODE_FIELDS.MetaProperty;
12494
+
12428
12495
  validate(defs2.meta, node, 'meta', meta, 1);
12429
12496
  validate(defs2.property, node, 'property', property, 1);
12430
12497
  return node;
@@ -12444,6 +12511,7 @@ function classMethod(kind = 'method', key, params, body, computed = false, _stat
12444
12511
  };
12445
12512
 
12446
12513
  const defs2 = NODE_FIELDS.ClassMethod;
12514
+
12447
12515
  validate(defs2.kind, node, 'kind', kind);
12448
12516
  validate(defs2.key, node, 'key', key, 1);
12449
12517
  validate(defs2.params, node, 'params', params, 1);
@@ -12462,6 +12530,7 @@ function objectPattern(properties) {
12462
12530
  };
12463
12531
 
12464
12532
  const defs2 = NODE_FIELDS.ObjectPattern;
12533
+
12465
12534
  validate(defs2.properties, node, 'properties', properties, 1);
12466
12535
  return node;
12467
12536
  }
@@ -12473,6 +12542,7 @@ function spreadElement(argument) {
12473
12542
  };
12474
12543
 
12475
12544
  const defs2 = NODE_FIELDS.SpreadElement;
12545
+
12476
12546
  validate(defs2.argument, node, 'argument', argument, 1);
12477
12547
  return node;
12478
12548
  }
@@ -12491,6 +12561,7 @@ function taggedTemplateExpression(tag, quasi) {
12491
12561
  };
12492
12562
 
12493
12563
  const defs2 = NODE_FIELDS.TaggedTemplateExpression;
12564
+
12494
12565
  validate(defs2.tag, node, 'tag', tag, 1);
12495
12566
  validate(defs2.quasi, node, 'quasi', quasi, 1);
12496
12567
  return node;
@@ -12504,6 +12575,7 @@ function templateElement(value, tail = false) {
12504
12575
  };
12505
12576
 
12506
12577
  const defs2 = NODE_FIELDS.TemplateElement;
12578
+
12507
12579
  validate(defs2.value, node, 'value', value);
12508
12580
  validate(defs2.tail, node, 'tail', tail);
12509
12581
  return node;
@@ -12517,6 +12589,7 @@ function templateLiteral(quasis, expressions) {
12517
12589
  };
12518
12590
 
12519
12591
  const defs2 = NODE_FIELDS.TemplateLiteral;
12592
+
12520
12593
  validate(defs2.quasis, node, 'quasis', quasis, 1);
12521
12594
  validate(defs2.expressions, node, 'expressions', expressions, 1);
12522
12595
  return node;
@@ -12530,6 +12603,7 @@ function yieldExpression(argument = null, delegate = false) {
12530
12603
  };
12531
12604
 
12532
12605
  const defs2 = NODE_FIELDS.YieldExpression;
12606
+
12533
12607
  validate(defs2.argument, node, 'argument', argument, 1);
12534
12608
  validate(defs2.delegate, node, 'delegate', delegate);
12535
12609
  return node;
@@ -12542,10 +12616,25 @@ function awaitExpression(argument) {
12542
12616
  };
12543
12617
 
12544
12618
  const defs2 = NODE_FIELDS.AwaitExpression;
12619
+
12545
12620
  validate(defs2.argument, node, 'argument', argument, 1);
12546
12621
  return node;
12547
12622
  }
12548
12623
 
12624
+ function importExpression(source, options = null) {
12625
+ const node = {
12626
+ type: 'ImportExpression',
12627
+ source,
12628
+ options,
12629
+ };
12630
+
12631
+ const defs2 = NODE_FIELDS.ImportExpression;
12632
+
12633
+ validate(defs2.source, node, 'source', source, 1);
12634
+ validate(defs2.options, node, 'options', options, 1);
12635
+ return node;
12636
+ }
12637
+
12549
12638
  function _import() {
12550
12639
  return {
12551
12640
  type: 'Import',
@@ -12559,6 +12648,7 @@ function bigIntLiteral(value) {
12559
12648
  };
12560
12649
 
12561
12650
  const defs2 = NODE_FIELDS.BigIntLiteral;
12651
+
12562
12652
  validate(defs2.value, node, 'value', value);
12563
12653
  return node;
12564
12654
  }
@@ -12570,6 +12660,7 @@ function exportNamespaceSpecifier(exported) {
12570
12660
  };
12571
12661
 
12572
12662
  const defs2 = NODE_FIELDS.ExportNamespaceSpecifier;
12663
+
12573
12664
  validate(defs2.exported, node, 'exported', exported, 1);
12574
12665
  return node;
12575
12666
  }
@@ -12584,6 +12675,7 @@ function optionalMemberExpression(object, property, computed = false, optional)
12584
12675
  };
12585
12676
 
12586
12677
  const defs2 = NODE_FIELDS.OptionalMemberExpression;
12678
+
12587
12679
  validate(defs2.object, node, 'object', object, 1);
12588
12680
  validate(defs2.property, node, 'property', property, 1);
12589
12681
  validate(defs2.computed, node, 'computed', computed);
@@ -12600,6 +12692,7 @@ function optionalCallExpression(callee, _arguments, optional) {
12600
12692
  };
12601
12693
 
12602
12694
  const defs2 = NODE_FIELDS.OptionalCallExpression;
12695
+
12603
12696
  validate(defs2.callee, node, 'callee', callee, 1);
12604
12697
  validate(defs2.arguments, node, 'arguments', _arguments, 1);
12605
12698
  validate(defs2.optional, node, 'optional', optional);
@@ -12618,6 +12711,7 @@ function classProperty(key, value = null, typeAnnotation2 = null, decorators = n
12618
12711
  };
12619
12712
 
12620
12713
  const defs2 = NODE_FIELDS.ClassProperty;
12714
+
12621
12715
  validate(defs2.key, node, 'key', key, 1);
12622
12716
  validate(defs2.value, node, 'value', value, 1);
12623
12717
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
@@ -12637,6 +12731,7 @@ function classPrivateProperty(key, value = null, decorators = null, _static = fa
12637
12731
  };
12638
12732
 
12639
12733
  const defs2 = NODE_FIELDS.ClassPrivateProperty;
12734
+
12640
12735
  validate(defs2.key, node, 'key', key, 1);
12641
12736
  validate(defs2.value, node, 'value', value, 1);
12642
12737
  validate(defs2.decorators, node, 'decorators', decorators, 1);
@@ -12658,6 +12753,7 @@ function classPrivateMethod(kind = 'method', key, params, body, _static = false)
12658
12753
  };
12659
12754
 
12660
12755
  const defs2 = NODE_FIELDS.ClassPrivateMethod;
12756
+
12661
12757
  validate(defs2.kind, node, 'kind', kind);
12662
12758
  validate(defs2.key, node, 'key', key, 1);
12663
12759
  validate(defs2.params, node, 'params', params, 1);
@@ -12673,6 +12769,7 @@ function privateName(id) {
12673
12769
  };
12674
12770
 
12675
12771
  const defs2 = NODE_FIELDS.PrivateName;
12772
+
12676
12773
  validate(defs2.id, node, 'id', id, 1);
12677
12774
  return node;
12678
12775
  }
@@ -12684,6 +12781,7 @@ function staticBlock(body) {
12684
12781
  };
12685
12782
 
12686
12783
  const defs2 = NODE_FIELDS.StaticBlock;
12784
+
12687
12785
  validate(defs2.body, node, 'body', body, 1);
12688
12786
  return node;
12689
12787
  }
@@ -12696,6 +12794,7 @@ function importAttribute(key, value) {
12696
12794
  };
12697
12795
 
12698
12796
  const defs2 = NODE_FIELDS.ImportAttribute;
12797
+
12699
12798
  validate(defs2.key, node, 'key', key, 1);
12700
12799
  validate(defs2.value, node, 'value', value, 1);
12701
12800
  return node;
@@ -12714,6 +12813,7 @@ function arrayTypeAnnotation(elementType) {
12714
12813
  };
12715
12814
 
12716
12815
  const defs2 = NODE_FIELDS.ArrayTypeAnnotation;
12816
+
12717
12817
  validate(defs2.elementType, node, 'elementType', elementType, 1);
12718
12818
  return node;
12719
12819
  }
@@ -12731,6 +12831,7 @@ function booleanLiteralTypeAnnotation(value) {
12731
12831
  };
12732
12832
 
12733
12833
  const defs2 = NODE_FIELDS.BooleanLiteralTypeAnnotation;
12834
+
12734
12835
  validate(defs2.value, node, 'value', value);
12735
12836
  return node;
12736
12837
  }
@@ -12749,6 +12850,7 @@ function classImplements(id, typeParameters = null) {
12749
12850
  };
12750
12851
 
12751
12852
  const defs2 = NODE_FIELDS.ClassImplements;
12853
+
12752
12854
  validate(defs2.id, node, 'id', id, 1);
12753
12855
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
12754
12856
  return node;
@@ -12764,6 +12866,7 @@ function declareClass(id, typeParameters = null, _extends = null, body) {
12764
12866
  };
12765
12867
 
12766
12868
  const defs2 = NODE_FIELDS.DeclareClass;
12869
+
12767
12870
  validate(defs2.id, node, 'id', id, 1);
12768
12871
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
12769
12872
  validate(defs2.extends, node, 'extends', _extends, 1);
@@ -12778,6 +12881,7 @@ function declareFunction(id) {
12778
12881
  };
12779
12882
 
12780
12883
  const defs2 = NODE_FIELDS.DeclareFunction;
12884
+
12781
12885
  validate(defs2.id, node, 'id', id, 1);
12782
12886
  return node;
12783
12887
  }
@@ -12792,6 +12896,7 @@ function declareInterface(id, typeParameters = null, _extends = null, body) {
12792
12896
  };
12793
12897
 
12794
12898
  const defs2 = NODE_FIELDS.DeclareInterface;
12899
+
12795
12900
  validate(defs2.id, node, 'id', id, 1);
12796
12901
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
12797
12902
  validate(defs2.extends, node, 'extends', _extends, 1);
@@ -12808,6 +12913,7 @@ function declareModule(id, body, kind = null) {
12808
12913
  };
12809
12914
 
12810
12915
  const defs2 = NODE_FIELDS.DeclareModule;
12916
+
12811
12917
  validate(defs2.id, node, 'id', id, 1);
12812
12918
  validate(defs2.body, node, 'body', body, 1);
12813
12919
  validate(defs2.kind, node, 'kind', kind);
@@ -12821,6 +12927,7 @@ function declareModuleExports(typeAnnotation2) {
12821
12927
  };
12822
12928
 
12823
12929
  const defs2 = NODE_FIELDS.DeclareModuleExports;
12930
+
12824
12931
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
12825
12932
  return node;
12826
12933
  }
@@ -12834,6 +12941,7 @@ function declareTypeAlias(id, typeParameters = null, right) {
12834
12941
  };
12835
12942
 
12836
12943
  const defs2 = NODE_FIELDS.DeclareTypeAlias;
12944
+
12837
12945
  validate(defs2.id, node, 'id', id, 1);
12838
12946
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
12839
12947
  validate(defs2.right, node, 'right', right, 1);
@@ -12849,6 +12957,7 @@ function declareOpaqueType(id, typeParameters = null, supertype = null) {
12849
12957
  };
12850
12958
 
12851
12959
  const defs2 = NODE_FIELDS.DeclareOpaqueType;
12960
+
12852
12961
  validate(defs2.id, node, 'id', id, 1);
12853
12962
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
12854
12963
  validate(defs2.supertype, node, 'supertype', supertype, 1);
@@ -12862,6 +12971,7 @@ function declareVariable(id) {
12862
12971
  };
12863
12972
 
12864
12973
  const defs2 = NODE_FIELDS.DeclareVariable;
12974
+
12865
12975
  validate(defs2.id, node, 'id', id, 1);
12866
12976
  return node;
12867
12977
  }
@@ -12876,6 +12986,7 @@ function declareExportDeclaration(declaration = null, specifiers = null, source
12876
12986
  };
12877
12987
 
12878
12988
  const defs2 = NODE_FIELDS.DeclareExportDeclaration;
12989
+
12879
12990
  validate(defs2.declaration, node, 'declaration', declaration, 1);
12880
12991
  validate(defs2.specifiers, node, 'specifiers', specifiers, 1);
12881
12992
  validate(defs2.source, node, 'source', source, 1);
@@ -12891,6 +13002,7 @@ function declareExportAllDeclaration(source, attributes = null) {
12891
13002
  };
12892
13003
 
12893
13004
  const defs2 = NODE_FIELDS.DeclareExportAllDeclaration;
13005
+
12894
13006
  validate(defs2.source, node, 'source', source, 1);
12895
13007
  validate(defs2.attributes, node, 'attributes', attributes, 1);
12896
13008
  return node;
@@ -12903,6 +13015,7 @@ function declaredPredicate(value) {
12903
13015
  };
12904
13016
 
12905
13017
  const defs2 = NODE_FIELDS.DeclaredPredicate;
13018
+
12906
13019
  validate(defs2.value, node, 'value', value, 1);
12907
13020
  return node;
12908
13021
  }
@@ -12923,6 +13036,7 @@ function functionTypeAnnotation(typeParameters = null, params, rest = null, retu
12923
13036
  };
12924
13037
 
12925
13038
  const defs2 = NODE_FIELDS.FunctionTypeAnnotation;
13039
+
12926
13040
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
12927
13041
  validate(defs2.params, node, 'params', params, 1);
12928
13042
  validate(defs2.rest, node, 'rest', rest, 1);
@@ -12938,6 +13052,7 @@ function functionTypeParam(name = null, typeAnnotation2) {
12938
13052
  };
12939
13053
 
12940
13054
  const defs2 = NODE_FIELDS.FunctionTypeParam;
13055
+
12941
13056
  validate(defs2.name, node, 'name', name, 1);
12942
13057
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
12943
13058
  return node;
@@ -12951,6 +13066,7 @@ function genericTypeAnnotation(id, typeParameters = null) {
12951
13066
  };
12952
13067
 
12953
13068
  const defs2 = NODE_FIELDS.GenericTypeAnnotation;
13069
+
12954
13070
  validate(defs2.id, node, 'id', id, 1);
12955
13071
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
12956
13072
  return node;
@@ -12970,6 +13086,7 @@ function interfaceExtends(id, typeParameters = null) {
12970
13086
  };
12971
13087
 
12972
13088
  const defs2 = NODE_FIELDS.InterfaceExtends;
13089
+
12973
13090
  validate(defs2.id, node, 'id', id, 1);
12974
13091
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
12975
13092
  return node;
@@ -12985,6 +13102,7 @@ function interfaceDeclaration(id, typeParameters = null, _extends = null, body)
12985
13102
  };
12986
13103
 
12987
13104
  const defs2 = NODE_FIELDS.InterfaceDeclaration;
13105
+
12988
13106
  validate(defs2.id, node, 'id', id, 1);
12989
13107
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
12990
13108
  validate(defs2.extends, node, 'extends', _extends, 1);
@@ -13000,6 +13118,7 @@ function interfaceTypeAnnotation(_extends = null, body) {
13000
13118
  };
13001
13119
 
13002
13120
  const defs2 = NODE_FIELDS.InterfaceTypeAnnotation;
13121
+
13003
13122
  validate(defs2.extends, node, 'extends', _extends, 1);
13004
13123
  validate(defs2.body, node, 'body', body, 1);
13005
13124
  return node;
@@ -13012,6 +13131,7 @@ function intersectionTypeAnnotation(types2) {
13012
13131
  };
13013
13132
 
13014
13133
  const defs2 = NODE_FIELDS.IntersectionTypeAnnotation;
13134
+
13015
13135
  validate(defs2.types, node, 'types', types2, 1);
13016
13136
  return node;
13017
13137
  }
@@ -13035,6 +13155,7 @@ function nullableTypeAnnotation(typeAnnotation2) {
13035
13155
  };
13036
13156
 
13037
13157
  const defs2 = NODE_FIELDS.NullableTypeAnnotation;
13158
+
13038
13159
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
13039
13160
  return node;
13040
13161
  }
@@ -13046,6 +13167,7 @@ function numberLiteralTypeAnnotation(value) {
13046
13167
  };
13047
13168
 
13048
13169
  const defs2 = NODE_FIELDS.NumberLiteralTypeAnnotation;
13170
+
13049
13171
  validate(defs2.value, node, 'value', value);
13050
13172
  return node;
13051
13173
  }
@@ -13057,6 +13179,7 @@ function bigIntLiteralTypeAnnotation(value) {
13057
13179
  };
13058
13180
 
13059
13181
  const defs2 = NODE_FIELDS.BigIntLiteralTypeAnnotation;
13182
+
13060
13183
  validate(defs2.value, node, 'value', value);
13061
13184
  return node;
13062
13185
  }
@@ -13078,6 +13201,7 @@ function objectTypeAnnotation(properties, indexers = [], callProperties = [], in
13078
13201
  };
13079
13202
 
13080
13203
  const defs2 = NODE_FIELDS.ObjectTypeAnnotation;
13204
+
13081
13205
  validate(defs2.properties, node, 'properties', properties, 1);
13082
13206
  validate(defs2.indexers, node, 'indexers', indexers, 1);
13083
13207
  validate(defs2.callProperties, node, 'callProperties', callProperties, 1);
@@ -13097,6 +13221,7 @@ function objectTypeInternalSlot(id, value, optional, _static, method) {
13097
13221
  };
13098
13222
 
13099
13223
  const defs2 = NODE_FIELDS.ObjectTypeInternalSlot;
13224
+
13100
13225
  validate(defs2.id, node, 'id', id, 1);
13101
13226
  validate(defs2.value, node, 'value', value, 1);
13102
13227
  validate(defs2.optional, node, 'optional', optional);
@@ -13113,6 +13238,7 @@ function objectTypeCallProperty(value) {
13113
13238
  };
13114
13239
 
13115
13240
  const defs2 = NODE_FIELDS.ObjectTypeCallProperty;
13241
+
13116
13242
  validate(defs2.value, node, 'value', value, 1);
13117
13243
  return node;
13118
13244
  }
@@ -13128,6 +13254,7 @@ function objectTypeIndexer(id = null, key, value, variance2 = null) {
13128
13254
  };
13129
13255
 
13130
13256
  const defs2 = NODE_FIELDS.ObjectTypeIndexer;
13257
+
13131
13258
  validate(defs2.id, node, 'id', id, 1);
13132
13259
  validate(defs2.key, node, 'key', key, 1);
13133
13260
  validate(defs2.value, node, 'value', value, 1);
@@ -13149,6 +13276,7 @@ function objectTypeProperty(key, value, variance2 = null) {
13149
13276
  };
13150
13277
 
13151
13278
  const defs2 = NODE_FIELDS.ObjectTypeProperty;
13279
+
13152
13280
  validate(defs2.key, node, 'key', key, 1);
13153
13281
  validate(defs2.value, node, 'value', value, 1);
13154
13282
  validate(defs2.variance, node, 'variance', variance2, 1);
@@ -13162,6 +13290,7 @@ function objectTypeSpreadProperty(argument) {
13162
13290
  };
13163
13291
 
13164
13292
  const defs2 = NODE_FIELDS.ObjectTypeSpreadProperty;
13293
+
13165
13294
  validate(defs2.argument, node, 'argument', argument, 1);
13166
13295
  return node;
13167
13296
  }
@@ -13176,6 +13305,7 @@ function opaqueType(id, typeParameters = null, supertype = null, impltype) {
13176
13305
  };
13177
13306
 
13178
13307
  const defs2 = NODE_FIELDS.OpaqueType;
13308
+
13179
13309
  validate(defs2.id, node, 'id', id, 1);
13180
13310
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
13181
13311
  validate(defs2.supertype, node, 'supertype', supertype, 1);
@@ -13191,6 +13321,7 @@ function qualifiedTypeIdentifier(id, qualification) {
13191
13321
  };
13192
13322
 
13193
13323
  const defs2 = NODE_FIELDS.QualifiedTypeIdentifier;
13324
+
13194
13325
  validate(defs2.id, node, 'id', id, 1);
13195
13326
  validate(defs2.qualification, node, 'qualification', qualification, 1);
13196
13327
  return node;
@@ -13203,6 +13334,7 @@ function stringLiteralTypeAnnotation(value) {
13203
13334
  };
13204
13335
 
13205
13336
  const defs2 = NODE_FIELDS.StringLiteralTypeAnnotation;
13337
+
13206
13338
  validate(defs2.value, node, 'value', value);
13207
13339
  return node;
13208
13340
  }
@@ -13232,6 +13364,7 @@ function tupleTypeAnnotation(types2) {
13232
13364
  };
13233
13365
 
13234
13366
  const defs2 = NODE_FIELDS.TupleTypeAnnotation;
13367
+
13235
13368
  validate(defs2.types, node, 'types', types2, 1);
13236
13369
  return node;
13237
13370
  }
@@ -13243,6 +13376,7 @@ function typeofTypeAnnotation(argument) {
13243
13376
  };
13244
13377
 
13245
13378
  const defs2 = NODE_FIELDS.TypeofTypeAnnotation;
13379
+
13246
13380
  validate(defs2.argument, node, 'argument', argument, 1);
13247
13381
  return node;
13248
13382
  }
@@ -13256,6 +13390,7 @@ function typeAlias(id, typeParameters = null, right) {
13256
13390
  };
13257
13391
 
13258
13392
  const defs2 = NODE_FIELDS.TypeAlias;
13393
+
13259
13394
  validate(defs2.id, node, 'id', id, 1);
13260
13395
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
13261
13396
  validate(defs2.right, node, 'right', right, 1);
@@ -13269,6 +13404,7 @@ function typeAnnotation(typeAnnotation2) {
13269
13404
  };
13270
13405
 
13271
13406
  const defs2 = NODE_FIELDS.TypeAnnotation;
13407
+
13272
13408
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
13273
13409
  return node;
13274
13410
  }
@@ -13281,6 +13417,7 @@ function typeCastExpression(expression2, typeAnnotation2) {
13281
13417
  };
13282
13418
 
13283
13419
  const defs2 = NODE_FIELDS.TypeCastExpression;
13420
+
13284
13421
  validate(defs2.expression, node, 'expression', expression2, 1);
13285
13422
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
13286
13423
  return node;
@@ -13296,6 +13433,7 @@ function typeParameter(name, bound = null, _default = null, variance2 = null) {
13296
13433
  };
13297
13434
 
13298
13435
  const defs2 = NODE_FIELDS.TypeParameter;
13436
+
13299
13437
  validate(defs2.name, node, 'name', name);
13300
13438
  validate(defs2.bound, node, 'bound', bound, 1);
13301
13439
  validate(defs2.default, node, 'default', _default, 1);
@@ -13310,6 +13448,7 @@ function typeParameterDeclaration(params) {
13310
13448
  };
13311
13449
 
13312
13450
  const defs2 = NODE_FIELDS.TypeParameterDeclaration;
13451
+
13313
13452
  validate(defs2.params, node, 'params', params, 1);
13314
13453
  return node;
13315
13454
  }
@@ -13321,6 +13460,7 @@ function typeParameterInstantiation(params) {
13321
13460
  };
13322
13461
 
13323
13462
  const defs2 = NODE_FIELDS.TypeParameterInstantiation;
13463
+
13324
13464
  validate(defs2.params, node, 'params', params, 1);
13325
13465
  return node;
13326
13466
  }
@@ -13332,6 +13472,7 @@ function unionTypeAnnotation(types2) {
13332
13472
  };
13333
13473
 
13334
13474
  const defs2 = NODE_FIELDS.UnionTypeAnnotation;
13475
+
13335
13476
  validate(defs2.types, node, 'types', types2, 1);
13336
13477
  return node;
13337
13478
  }
@@ -13343,6 +13484,7 @@ function variance(kind) {
13343
13484
  };
13344
13485
 
13345
13486
  const defs2 = NODE_FIELDS.Variance;
13487
+
13346
13488
  validate(defs2.kind, node, 'kind', kind);
13347
13489
  return node;
13348
13490
  }
@@ -13361,6 +13503,7 @@ function enumDeclaration(id, body) {
13361
13503
  };
13362
13504
 
13363
13505
  const defs2 = NODE_FIELDS.EnumDeclaration;
13506
+
13364
13507
  validate(defs2.id, node, 'id', id, 1);
13365
13508
  validate(defs2.body, node, 'body', body, 1);
13366
13509
  return node;
@@ -13375,6 +13518,7 @@ function enumBooleanBody(members) {
13375
13518
  };
13376
13519
 
13377
13520
  const defs2 = NODE_FIELDS.EnumBooleanBody;
13521
+
13378
13522
  validate(defs2.members, node, 'members', members, 1);
13379
13523
  return node;
13380
13524
  }
@@ -13388,6 +13532,7 @@ function enumNumberBody(members) {
13388
13532
  };
13389
13533
 
13390
13534
  const defs2 = NODE_FIELDS.EnumNumberBody;
13535
+
13391
13536
  validate(defs2.members, node, 'members', members, 1);
13392
13537
  return node;
13393
13538
  }
@@ -13401,6 +13546,7 @@ function enumStringBody(members) {
13401
13546
  };
13402
13547
 
13403
13548
  const defs2 = NODE_FIELDS.EnumStringBody;
13549
+
13404
13550
  validate(defs2.members, node, 'members', members, 1);
13405
13551
  return node;
13406
13552
  }
@@ -13413,6 +13559,7 @@ function enumSymbolBody(members) {
13413
13559
  };
13414
13560
 
13415
13561
  const defs2 = NODE_FIELDS.EnumSymbolBody;
13562
+
13416
13563
  validate(defs2.members, node, 'members', members, 1);
13417
13564
  return node;
13418
13565
  }
@@ -13425,6 +13572,7 @@ function enumBooleanMember(id, init) {
13425
13572
  };
13426
13573
 
13427
13574
  const defs2 = NODE_FIELDS.EnumBooleanMember;
13575
+
13428
13576
  validate(defs2.id, node, 'id', id, 1);
13429
13577
  validate(defs2.init, node, 'init', init, 1);
13430
13578
  return node;
@@ -13438,6 +13586,7 @@ function enumNumberMember(id, init) {
13438
13586
  };
13439
13587
 
13440
13588
  const defs2 = NODE_FIELDS.EnumNumberMember;
13589
+
13441
13590
  validate(defs2.id, node, 'id', id, 1);
13442
13591
  validate(defs2.init, node, 'init', init, 1);
13443
13592
  return node;
@@ -13451,6 +13600,7 @@ function enumStringMember(id, init) {
13451
13600
  };
13452
13601
 
13453
13602
  const defs2 = NODE_FIELDS.EnumStringMember;
13603
+
13454
13604
  validate(defs2.id, node, 'id', id, 1);
13455
13605
  validate(defs2.init, node, 'init', init, 1);
13456
13606
  return node;
@@ -13463,6 +13613,7 @@ function enumDefaultedMember(id) {
13463
13613
  };
13464
13614
 
13465
13615
  const defs2 = NODE_FIELDS.EnumDefaultedMember;
13616
+
13466
13617
  validate(defs2.id, node, 'id', id, 1);
13467
13618
  return node;
13468
13619
  }
@@ -13475,6 +13626,7 @@ function indexedAccessType(objectType, indexType) {
13475
13626
  };
13476
13627
 
13477
13628
  const defs2 = NODE_FIELDS.IndexedAccessType;
13629
+
13478
13630
  validate(defs2.objectType, node, 'objectType', objectType, 1);
13479
13631
  validate(defs2.indexType, node, 'indexType', indexType, 1);
13480
13632
  return node;
@@ -13489,6 +13641,7 @@ function optionalIndexedAccessType(objectType, indexType) {
13489
13641
  };
13490
13642
 
13491
13643
  const defs2 = NODE_FIELDS.OptionalIndexedAccessType;
13644
+
13492
13645
  validate(defs2.objectType, node, 'objectType', objectType, 1);
13493
13646
  validate(defs2.indexType, node, 'indexType', indexType, 1);
13494
13647
  return node;
@@ -13502,6 +13655,7 @@ function jsxAttribute(name, value = null) {
13502
13655
  };
13503
13656
 
13504
13657
  const defs2 = NODE_FIELDS.JSXAttribute;
13658
+
13505
13659
  validate(defs2.name, node, 'name', name, 1);
13506
13660
  validate(defs2.value, node, 'value', value, 1);
13507
13661
  return node;
@@ -13514,6 +13668,7 @@ function jsxClosingElement(name) {
13514
13668
  };
13515
13669
 
13516
13670
  const defs2 = NODE_FIELDS.JSXClosingElement;
13671
+
13517
13672
  validate(defs2.name, node, 'name', name, 1);
13518
13673
  return node;
13519
13674
  }
@@ -13527,6 +13682,7 @@ function jsxElement(openingElement, closingElement = null, children) {
13527
13682
  };
13528
13683
 
13529
13684
  const defs2 = NODE_FIELDS.JSXElement;
13685
+
13530
13686
  validate(defs2.openingElement, node, 'openingElement', openingElement, 1);
13531
13687
  validate(defs2.closingElement, node, 'closingElement', closingElement, 1);
13532
13688
  validate(defs2.children, node, 'children', children, 1);
@@ -13546,6 +13702,7 @@ function jsxExpressionContainer(expression2) {
13546
13702
  };
13547
13703
 
13548
13704
  const defs2 = NODE_FIELDS.JSXExpressionContainer;
13705
+
13549
13706
  validate(defs2.expression, node, 'expression', expression2, 1);
13550
13707
  return node;
13551
13708
  }
@@ -13557,6 +13714,7 @@ function jsxSpreadChild(expression2) {
13557
13714
  };
13558
13715
 
13559
13716
  const defs2 = NODE_FIELDS.JSXSpreadChild;
13717
+
13560
13718
  validate(defs2.expression, node, 'expression', expression2, 1);
13561
13719
  return node;
13562
13720
  }
@@ -13568,6 +13726,7 @@ function jsxIdentifier(name) {
13568
13726
  };
13569
13727
 
13570
13728
  const defs2 = NODE_FIELDS.JSXIdentifier;
13729
+
13571
13730
  validate(defs2.name, node, 'name', name);
13572
13731
  return node;
13573
13732
  }
@@ -13580,6 +13739,7 @@ function jsxMemberExpression(object, property) {
13580
13739
  };
13581
13740
 
13582
13741
  const defs2 = NODE_FIELDS.JSXMemberExpression;
13742
+
13583
13743
  validate(defs2.object, node, 'object', object, 1);
13584
13744
  validate(defs2.property, node, 'property', property, 1);
13585
13745
  return node;
@@ -13593,6 +13753,7 @@ function jsxNamespacedName(namespace, name) {
13593
13753
  };
13594
13754
 
13595
13755
  const defs2 = NODE_FIELDS.JSXNamespacedName;
13756
+
13596
13757
  validate(defs2.namespace, node, 'namespace', namespace, 1);
13597
13758
  validate(defs2.name, node, 'name', name, 1);
13598
13759
  return node;
@@ -13607,6 +13768,7 @@ function jsxOpeningElement(name, attributes, selfClosing = false) {
13607
13768
  };
13608
13769
 
13609
13770
  const defs2 = NODE_FIELDS.JSXOpeningElement;
13771
+
13610
13772
  validate(defs2.name, node, 'name', name, 1);
13611
13773
  validate(defs2.attributes, node, 'attributes', attributes, 1);
13612
13774
  validate(defs2.selfClosing, node, 'selfClosing', selfClosing);
@@ -13620,6 +13782,7 @@ function jsxSpreadAttribute(argument) {
13620
13782
  };
13621
13783
 
13622
13784
  const defs2 = NODE_FIELDS.JSXSpreadAttribute;
13785
+
13623
13786
  validate(defs2.argument, node, 'argument', argument, 1);
13624
13787
  return node;
13625
13788
  }
@@ -13631,6 +13794,7 @@ function jsxText(value) {
13631
13794
  };
13632
13795
 
13633
13796
  const defs2 = NODE_FIELDS.JSXText;
13797
+
13634
13798
  validate(defs2.value, node, 'value', value);
13635
13799
  return node;
13636
13800
  }
@@ -13644,6 +13808,7 @@ function jsxFragment(openingFragment, closingFragment, children) {
13644
13808
  };
13645
13809
 
13646
13810
  const defs2 = NODE_FIELDS.JSXFragment;
13811
+
13647
13812
  validate(defs2.openingFragment, node, 'openingFragment', openingFragment, 1);
13648
13813
  validate(defs2.closingFragment, node, 'closingFragment', closingFragment, 1);
13649
13814
  validate(defs2.children, node, 'children', children, 1);
@@ -13670,6 +13835,7 @@ function placeholder(expectedNode, name) {
13670
13835
  };
13671
13836
 
13672
13837
  const defs2 = NODE_FIELDS.Placeholder;
13838
+
13673
13839
  validate(defs2.expectedNode, node, 'expectedNode', expectedNode);
13674
13840
  validate(defs2.name, node, 'name', name, 1);
13675
13841
  return node;
@@ -13682,6 +13848,7 @@ function v8IntrinsicIdentifier(name) {
13682
13848
  };
13683
13849
 
13684
13850
  const defs2 = NODE_FIELDS.V8IntrinsicIdentifier;
13851
+
13685
13852
  validate(defs2.name, node, 'name', name);
13686
13853
  return node;
13687
13854
  }
@@ -13700,6 +13867,7 @@ function bindExpression(object, callee) {
13700
13867
  };
13701
13868
 
13702
13869
  const defs2 = NODE_FIELDS.BindExpression;
13870
+
13703
13871
  validate(defs2.object, node, 'object', object, 1);
13704
13872
  validate(defs2.callee, node, 'callee', callee, 1);
13705
13873
  return node;
@@ -13717,6 +13885,7 @@ function classAccessorProperty(key, value = null, typeAnnotation2 = null, decora
13717
13885
  };
13718
13886
 
13719
13887
  const defs2 = NODE_FIELDS.ClassAccessorProperty;
13888
+
13720
13889
  validate(defs2.key, node, 'key', key, 1);
13721
13890
  validate(defs2.value, node, 'value', value, 1);
13722
13891
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
@@ -13733,6 +13902,7 @@ function decorator(expression2) {
13733
13902
  };
13734
13903
 
13735
13904
  const defs2 = NODE_FIELDS.Decorator;
13905
+
13736
13906
  validate(defs2.expression, node, 'expression', expression2, 1);
13737
13907
  return node;
13738
13908
  }
@@ -13745,6 +13915,7 @@ function doExpression(body, async = false) {
13745
13915
  };
13746
13916
 
13747
13917
  const defs2 = NODE_FIELDS.DoExpression;
13918
+
13748
13919
  validate(defs2.body, node, 'body', body, 1);
13749
13920
  validate(defs2.async, node, 'async', async);
13750
13921
  return node;
@@ -13757,6 +13928,7 @@ function exportDefaultSpecifier(exported) {
13757
13928
  };
13758
13929
 
13759
13930
  const defs2 = NODE_FIELDS.ExportDefaultSpecifier;
13931
+
13760
13932
  validate(defs2.exported, node, 'exported', exported, 1);
13761
13933
  return node;
13762
13934
  }
@@ -13768,6 +13940,7 @@ function moduleExpression(body) {
13768
13940
  };
13769
13941
 
13770
13942
  const defs2 = NODE_FIELDS.ModuleExpression;
13943
+
13771
13944
  validate(defs2.body, node, 'body', body, 1);
13772
13945
  return node;
13773
13946
  }
@@ -13791,6 +13964,7 @@ function tsParameterProperty(parameter) {
13791
13964
  };
13792
13965
 
13793
13966
  const defs2 = NODE_FIELDS.TSParameterProperty;
13967
+
13794
13968
  validate(defs2.parameter, node, 'parameter', parameter, 1);
13795
13969
  return node;
13796
13970
  }
@@ -13807,6 +13981,7 @@ function tsDeclareFunction(id = null, typeParameters = null, params, returnType
13807
13981
  };
13808
13982
 
13809
13983
  const defs2 = NODE_FIELDS.TSDeclareFunction;
13984
+
13810
13985
  validate(defs2.id, node, 'id', id, 1);
13811
13986
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
13812
13987
  validate(defs2.params, node, 'params', params, 1);
@@ -13829,6 +14004,7 @@ function tsDeclareMethod(key, typeParameters = null, params, returnType = null)
13829
14004
  };
13830
14005
 
13831
14006
  const defs2 = NODE_FIELDS.TSDeclareMethod;
14007
+
13832
14008
  validate(defs2.key, node, 'key', key, 1);
13833
14009
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
13834
14010
  validate(defs2.params, node, 'params', params, 1);
@@ -13844,6 +14020,7 @@ function tsQualifiedName(left, right) {
13844
14020
  };
13845
14021
 
13846
14022
  const defs2 = NODE_FIELDS.TSQualifiedName;
14023
+
13847
14024
  validate(defs2.left, node, 'left', left, 1);
13848
14025
  validate(defs2.right, node, 'right', right, 1);
13849
14026
  return node;
@@ -13858,6 +14035,7 @@ function tsCallSignatureDeclaration(typeParameters = null, params, returnType =
13858
14035
  };
13859
14036
 
13860
14037
  const defs2 = NODE_FIELDS.TSCallSignatureDeclaration;
14038
+
13861
14039
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
13862
14040
  validate(defs2.params, node, 'params', params, 1);
13863
14041
  validate(defs2.returnType, node, 'returnType', returnType, 1);
@@ -13873,6 +14051,7 @@ function tsConstructSignatureDeclaration(typeParameters = null, params, returnTy
13873
14051
  };
13874
14052
 
13875
14053
  const defs2 = NODE_FIELDS.TSConstructSignatureDeclaration;
14054
+
13876
14055
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
13877
14056
  validate(defs2.params, node, 'params', params, 1);
13878
14057
  validate(defs2.returnType, node, 'returnType', returnType, 1);
@@ -13888,6 +14067,7 @@ function tsPropertySignature(key, typeAnnotation2 = null) {
13888
14067
  };
13889
14068
 
13890
14069
  const defs2 = NODE_FIELDS.TSPropertySignature;
14070
+
13891
14071
  validate(defs2.key, node, 'key', key, 1);
13892
14072
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
13893
14073
  return node;
@@ -13905,6 +14085,7 @@ function tsMethodSignature(key, typeParameters = null, params, returnType = null
13905
14085
  };
13906
14086
 
13907
14087
  const defs2 = NODE_FIELDS.TSMethodSignature;
14088
+
13908
14089
  validate(defs2.key, node, 'key', key, 1);
13909
14090
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
13910
14091
  validate(defs2.params, node, 'params', params, 1);
@@ -13920,6 +14101,7 @@ function tsIndexSignature(parameters, typeAnnotation2 = null) {
13920
14101
  };
13921
14102
 
13922
14103
  const defs2 = NODE_FIELDS.TSIndexSignature;
14104
+
13923
14105
  validate(defs2.parameters, node, 'parameters', parameters, 1);
13924
14106
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
13925
14107
  return node;
@@ -14018,6 +14200,7 @@ function tsFunctionType(typeParameters = null, params, returnType = null) {
14018
14200
  };
14019
14201
 
14020
14202
  const defs2 = NODE_FIELDS.TSFunctionType;
14203
+
14021
14204
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
14022
14205
  validate(defs2.params, node, 'params', params, 1);
14023
14206
  validate(defs2.returnType, node, 'returnType', returnType, 1);
@@ -14033,6 +14216,7 @@ function tsConstructorType(typeParameters = null, params, returnType = null) {
14033
14216
  };
14034
14217
 
14035
14218
  const defs2 = NODE_FIELDS.TSConstructorType;
14219
+
14036
14220
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
14037
14221
  validate(defs2.params, node, 'params', params, 1);
14038
14222
  validate(defs2.returnType, node, 'returnType', returnType, 1);
@@ -14047,6 +14231,7 @@ function tsTypeReference(typeName, typeArguments = null) {
14047
14231
  };
14048
14232
 
14049
14233
  const defs2 = NODE_FIELDS.TSTypeReference;
14234
+
14050
14235
  validate(defs2.typeName, node, 'typeName', typeName, 1);
14051
14236
  validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
14052
14237
  return node;
@@ -14061,6 +14246,7 @@ function tsTypePredicate(parameterName, typeAnnotation2 = null, asserts = null)
14061
14246
  };
14062
14247
 
14063
14248
  const defs2 = NODE_FIELDS.TSTypePredicate;
14249
+
14064
14250
  validate(defs2.parameterName, node, 'parameterName', parameterName, 1);
14065
14251
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
14066
14252
  validate(defs2.asserts, node, 'asserts', asserts);
@@ -14075,6 +14261,7 @@ function tsTypeQuery(exprName, typeArguments = null) {
14075
14261
  };
14076
14262
 
14077
14263
  const defs2 = NODE_FIELDS.TSTypeQuery;
14264
+
14078
14265
  validate(defs2.exprName, node, 'exprName', exprName, 1);
14079
14266
  validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
14080
14267
  return node;
@@ -14087,6 +14274,7 @@ function tsTypeLiteral(members) {
14087
14274
  };
14088
14275
 
14089
14276
  const defs2 = NODE_FIELDS.TSTypeLiteral;
14277
+
14090
14278
  validate(defs2.members, node, 'members', members, 1);
14091
14279
  return node;
14092
14280
  }
@@ -14098,6 +14286,7 @@ function tsArrayType(elementType) {
14098
14286
  };
14099
14287
 
14100
14288
  const defs2 = NODE_FIELDS.TSArrayType;
14289
+
14101
14290
  validate(defs2.elementType, node, 'elementType', elementType, 1);
14102
14291
  return node;
14103
14292
  }
@@ -14109,6 +14298,7 @@ function tsTupleType(elementTypes) {
14109
14298
  };
14110
14299
 
14111
14300
  const defs2 = NODE_FIELDS.TSTupleType;
14301
+
14112
14302
  validate(defs2.elementTypes, node, 'elementTypes', elementTypes, 1);
14113
14303
  return node;
14114
14304
  }
@@ -14120,6 +14310,7 @@ function tsOptionalType(typeAnnotation2) {
14120
14310
  };
14121
14311
 
14122
14312
  const defs2 = NODE_FIELDS.TSOptionalType;
14313
+
14123
14314
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
14124
14315
  return node;
14125
14316
  }
@@ -14131,6 +14322,7 @@ function tsRestType(typeAnnotation2) {
14131
14322
  };
14132
14323
 
14133
14324
  const defs2 = NODE_FIELDS.TSRestType;
14325
+
14134
14326
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
14135
14327
  return node;
14136
14328
  }
@@ -14144,6 +14336,7 @@ function tsNamedTupleMember(label, elementType, optional = false) {
14144
14336
  };
14145
14337
 
14146
14338
  const defs2 = NODE_FIELDS.TSNamedTupleMember;
14339
+
14147
14340
  validate(defs2.label, node, 'label', label, 1);
14148
14341
  validate(defs2.elementType, node, 'elementType', elementType, 1);
14149
14342
  validate(defs2.optional, node, 'optional', optional);
@@ -14157,6 +14350,7 @@ function tsUnionType(types2) {
14157
14350
  };
14158
14351
 
14159
14352
  const defs2 = NODE_FIELDS.TSUnionType;
14353
+
14160
14354
  validate(defs2.types, node, 'types', types2, 1);
14161
14355
  return node;
14162
14356
  }
@@ -14168,6 +14362,7 @@ function tsIntersectionType(types2) {
14168
14362
  };
14169
14363
 
14170
14364
  const defs2 = NODE_FIELDS.TSIntersectionType;
14365
+
14171
14366
  validate(defs2.types, node, 'types', types2, 1);
14172
14367
  return node;
14173
14368
  }
@@ -14182,6 +14377,7 @@ function tsConditionalType(checkType, extendsType, trueType, falseType) {
14182
14377
  };
14183
14378
 
14184
14379
  const defs2 = NODE_FIELDS.TSConditionalType;
14380
+
14185
14381
  validate(defs2.checkType, node, 'checkType', checkType, 1);
14186
14382
  validate(defs2.extendsType, node, 'extendsType', extendsType, 1);
14187
14383
  validate(defs2.trueType, node, 'trueType', trueType, 1);
@@ -14196,6 +14392,7 @@ function tsInferType(typeParameter2) {
14196
14392
  };
14197
14393
 
14198
14394
  const defs2 = NODE_FIELDS.TSInferType;
14395
+
14199
14396
  validate(defs2.typeParameter, node, 'typeParameter', typeParameter2, 1);
14200
14397
  return node;
14201
14398
  }
@@ -14207,6 +14404,7 @@ function tsParenthesizedType(typeAnnotation2) {
14207
14404
  };
14208
14405
 
14209
14406
  const defs2 = NODE_FIELDS.TSParenthesizedType;
14407
+
14210
14408
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
14211
14409
  return node;
14212
14410
  }
@@ -14219,6 +14417,7 @@ function tsTypeOperator(typeAnnotation2, operator) {
14219
14417
  };
14220
14418
 
14221
14419
  const defs2 = NODE_FIELDS.TSTypeOperator;
14420
+
14222
14421
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
14223
14422
  validate(defs2.operator, node, 'operator', operator);
14224
14423
  return node;
@@ -14232,6 +14431,7 @@ function tsIndexedAccessType(objectType, indexType) {
14232
14431
  };
14233
14432
 
14234
14433
  const defs2 = NODE_FIELDS.TSIndexedAccessType;
14434
+
14235
14435
  validate(defs2.objectType, node, 'objectType', objectType, 1);
14236
14436
  validate(defs2.indexType, node, 'indexType', indexType, 1);
14237
14437
  return node;
@@ -14247,6 +14447,7 @@ function tsMappedType(key, constraint, nameType = null, typeAnnotation2 = null)
14247
14447
  };
14248
14448
 
14249
14449
  const defs2 = NODE_FIELDS.TSMappedType;
14450
+
14250
14451
  validate(defs2.key, node, 'key', key, 1);
14251
14452
  validate(defs2.constraint, node, 'constraint', constraint, 1);
14252
14453
  validate(defs2.nameType, node, 'nameType', nameType, 1);
@@ -14262,6 +14463,7 @@ function tsTemplateLiteralType(quasis, types2) {
14262
14463
  };
14263
14464
 
14264
14465
  const defs2 = NODE_FIELDS.TSTemplateLiteralType;
14466
+
14265
14467
  validate(defs2.quasis, node, 'quasis', quasis, 1);
14266
14468
  validate(defs2.types, node, 'types', types2, 1);
14267
14469
  return node;
@@ -14274,6 +14476,7 @@ function tsLiteralType(literal) {
14274
14476
  };
14275
14477
 
14276
14478
  const defs2 = NODE_FIELDS.TSLiteralType;
14479
+
14277
14480
  validate(defs2.literal, node, 'literal', literal, 1);
14278
14481
  return node;
14279
14482
  }
@@ -14286,6 +14489,7 @@ function tsClassImplements(expression2, typeArguments = null) {
14286
14489
  };
14287
14490
 
14288
14491
  const defs2 = NODE_FIELDS.TSClassImplements;
14492
+
14289
14493
  validate(defs2.expression, node, 'expression', expression2, 1);
14290
14494
  validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
14291
14495
  return node;
@@ -14299,6 +14503,7 @@ function tsInterfaceHeritage(expression2, typeArguments = null) {
14299
14503
  };
14300
14504
 
14301
14505
  const defs2 = NODE_FIELDS.TSInterfaceHeritage;
14506
+
14302
14507
  validate(defs2.expression, node, 'expression', expression2, 1);
14303
14508
  validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
14304
14509
  return node;
@@ -14314,6 +14519,7 @@ function tsInterfaceDeclaration(id, typeParameters = null, _extends = null, body
14314
14519
  };
14315
14520
 
14316
14521
  const defs2 = NODE_FIELDS.TSInterfaceDeclaration;
14522
+
14317
14523
  validate(defs2.id, node, 'id', id, 1);
14318
14524
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
14319
14525
  validate(defs2.extends, node, 'extends', _extends, 1);
@@ -14328,6 +14534,7 @@ function tsInterfaceBody(body) {
14328
14534
  };
14329
14535
 
14330
14536
  const defs2 = NODE_FIELDS.TSInterfaceBody;
14537
+
14331
14538
  validate(defs2.body, node, 'body', body, 1);
14332
14539
  return node;
14333
14540
  }
@@ -14341,6 +14548,7 @@ function tsTypeAliasDeclaration(id, typeParameters = null, typeAnnotation2) {
14341
14548
  };
14342
14549
 
14343
14550
  const defs2 = NODE_FIELDS.TSTypeAliasDeclaration;
14551
+
14344
14552
  validate(defs2.id, node, 'id', id, 1);
14345
14553
  validate(defs2.typeParameters, node, 'typeParameters', typeParameters, 1);
14346
14554
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
@@ -14355,6 +14563,7 @@ function tsInstantiationExpression(expression2, typeArguments = null) {
14355
14563
  };
14356
14564
 
14357
14565
  const defs2 = NODE_FIELDS.TSInstantiationExpression;
14566
+
14358
14567
  validate(defs2.expression, node, 'expression', expression2, 1);
14359
14568
  validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
14360
14569
  return node;
@@ -14368,6 +14577,7 @@ function tsAsExpression(expression2, typeAnnotation2) {
14368
14577
  };
14369
14578
 
14370
14579
  const defs2 = NODE_FIELDS.TSAsExpression;
14580
+
14371
14581
  validate(defs2.expression, node, 'expression', expression2, 1);
14372
14582
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
14373
14583
  return node;
@@ -14381,6 +14591,7 @@ function tsSatisfiesExpression(expression2, typeAnnotation2) {
14381
14591
  };
14382
14592
 
14383
14593
  const defs2 = NODE_FIELDS.TSSatisfiesExpression;
14594
+
14384
14595
  validate(defs2.expression, node, 'expression', expression2, 1);
14385
14596
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
14386
14597
  return node;
@@ -14394,6 +14605,7 @@ function tsTypeAssertion(typeAnnotation2, expression2) {
14394
14605
  };
14395
14606
 
14396
14607
  const defs2 = NODE_FIELDS.TSTypeAssertion;
14608
+
14397
14609
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
14398
14610
  validate(defs2.expression, node, 'expression', expression2, 1);
14399
14611
  return node;
@@ -14406,6 +14618,7 @@ function tsEnumBody(members) {
14406
14618
  };
14407
14619
 
14408
14620
  const defs2 = NODE_FIELDS.TSEnumBody;
14621
+
14409
14622
  validate(defs2.members, node, 'members', members, 1);
14410
14623
  return node;
14411
14624
  }
@@ -14418,6 +14631,7 @@ function tsEnumDeclaration(id, body) {
14418
14631
  };
14419
14632
 
14420
14633
  const defs2 = NODE_FIELDS.TSEnumDeclaration;
14634
+
14421
14635
  validate(defs2.id, node, 'id', id, 1);
14422
14636
  validate(defs2.body, node, 'body', body, 1);
14423
14637
  return node;
@@ -14431,6 +14645,7 @@ function tsEnumMember(id, initializer = null) {
14431
14645
  };
14432
14646
 
14433
14647
  const defs2 = NODE_FIELDS.TSEnumMember;
14648
+
14434
14649
  validate(defs2.id, node, 'id', id, 1);
14435
14650
  validate(defs2.initializer, node, 'initializer', initializer, 1);
14436
14651
  return node;
@@ -14445,6 +14660,7 @@ function tsModuleDeclaration(id, body) {
14445
14660
  };
14446
14661
 
14447
14662
  const defs2 = NODE_FIELDS.TSModuleDeclaration;
14663
+
14448
14664
  validate(defs2.id, node, 'id', id, 1);
14449
14665
  validate(defs2.body, node, 'body', body, 1);
14450
14666
  return node;
@@ -14457,6 +14673,7 @@ function tsModuleBlock(body) {
14457
14673
  };
14458
14674
 
14459
14675
  const defs2 = NODE_FIELDS.TSModuleBlock;
14676
+
14460
14677
  validate(defs2.body, node, 'body', body, 1);
14461
14678
  return node;
14462
14679
  }
@@ -14470,6 +14687,7 @@ function tsImportType(source, qualifier = null, typeArguments = null) {
14470
14687
  };
14471
14688
 
14472
14689
  const defs2 = NODE_FIELDS.TSImportType;
14690
+
14473
14691
  validate(defs2.source, node, 'source', source, 1);
14474
14692
  validate(defs2.qualifier, node, 'qualifier', qualifier, 1);
14475
14693
  validate(defs2.typeArguments, node, 'typeArguments', typeArguments, 1);
@@ -14484,6 +14702,7 @@ function tsImportEqualsDeclaration(id, moduleReference) {
14484
14702
  };
14485
14703
 
14486
14704
  const defs2 = NODE_FIELDS.TSImportEqualsDeclaration;
14705
+
14487
14706
  validate(defs2.id, node, 'id', id, 1);
14488
14707
  validate(defs2.moduleReference, node, 'moduleReference', moduleReference, 1);
14489
14708
  return node;
@@ -14496,6 +14715,7 @@ function tsExternalModuleReference(expression2) {
14496
14715
  };
14497
14716
 
14498
14717
  const defs2 = NODE_FIELDS.TSExternalModuleReference;
14718
+
14499
14719
  validate(defs2.expression, node, 'expression', expression2, 1);
14500
14720
  return node;
14501
14721
  }
@@ -14507,6 +14727,7 @@ function tsNonNullExpression(expression2) {
14507
14727
  };
14508
14728
 
14509
14729
  const defs2 = NODE_FIELDS.TSNonNullExpression;
14730
+
14510
14731
  validate(defs2.expression, node, 'expression', expression2, 1);
14511
14732
  return node;
14512
14733
  }
@@ -14518,6 +14739,7 @@ function tsExportAssignment(expression2) {
14518
14739
  };
14519
14740
 
14520
14741
  const defs2 = NODE_FIELDS.TSExportAssignment;
14742
+
14521
14743
  validate(defs2.expression, node, 'expression', expression2, 1);
14522
14744
  return node;
14523
14745
  }
@@ -14529,6 +14751,7 @@ function tsNamespaceExportDeclaration(id) {
14529
14751
  };
14530
14752
 
14531
14753
  const defs2 = NODE_FIELDS.TSNamespaceExportDeclaration;
14754
+
14532
14755
  validate(defs2.id, node, 'id', id, 1);
14533
14756
  return node;
14534
14757
  }
@@ -14540,6 +14763,7 @@ function tsTypeAnnotation(typeAnnotation2) {
14540
14763
  };
14541
14764
 
14542
14765
  const defs2 = NODE_FIELDS.TSTypeAnnotation;
14766
+
14543
14767
  validate(defs2.typeAnnotation, node, 'typeAnnotation', typeAnnotation2, 1);
14544
14768
  return node;
14545
14769
  }
@@ -14551,6 +14775,7 @@ function tsTypeParameterInstantiation(params) {
14551
14775
  };
14552
14776
 
14553
14777
  const defs2 = NODE_FIELDS.TSTypeParameterInstantiation;
14778
+
14554
14779
  validate(defs2.params, node, 'params', params, 1);
14555
14780
  return node;
14556
14781
  }
@@ -14562,6 +14787,7 @@ function tsTypeParameterDeclaration(params) {
14562
14787
  };
14563
14788
 
14564
14789
  const defs2 = NODE_FIELDS.TSTypeParameterDeclaration;
14790
+
14565
14791
  validate(defs2.params, node, 'params', params, 1);
14566
14792
  return node;
14567
14793
  }
@@ -14575,6 +14801,7 @@ function tsTypeParameter(constraint = null, _default = null, name) {
14575
14801
  };
14576
14802
 
14577
14803
  const defs2 = NODE_FIELDS.TSTypeParameter;
14804
+
14578
14805
  validate(defs2.constraint, node, 'constraint', constraint, 1);
14579
14806
  validate(defs2.default, node, 'default', _default, 1);
14580
14807
  validate(defs2.name, node, 'name', name, 1);
@@ -14930,7 +15157,6 @@ var ImportDeclaration = alias('importDeclaration');
14930
15157
  var ImportDefaultSpecifier = alias('importDefaultSpecifier');
14931
15158
  var ImportNamespaceSpecifier = alias('importNamespaceSpecifier');
14932
15159
  var ImportSpecifier = alias('importSpecifier');
14933
- var ImportExpression = alias('importExpression');
14934
15160
  var MetaProperty = alias('metaProperty');
14935
15161
  var ClassMethod = alias('classMethod');
14936
15162
  var ObjectPattern = alias('objectPattern');
@@ -14941,6 +15167,7 @@ var TemplateElement = alias('templateElement');
14941
15167
  var TemplateLiteral = alias('templateLiteral');
14942
15168
  var YieldExpression = alias('yieldExpression');
14943
15169
  var AwaitExpression = alias('awaitExpression');
15170
+ var ImportExpression = alias('importExpression');
14944
15171
  var Import = alias('import');
14945
15172
  var BigIntLiteral = alias('bigIntLiteral');
14946
15173
  var ExportNamespaceSpecifier = alias('exportNamespaceSpecifier');
@@ -15457,10 +15684,6 @@ function assertImportSpecifier(node, opts) {
15457
15684
  assert('ImportSpecifier', node, opts);
15458
15685
  }
15459
15686
 
15460
- function assertImportExpression(node, opts) {
15461
- assert('ImportExpression', node, opts);
15462
- }
15463
-
15464
15687
  function assertMetaProperty(node, opts) {
15465
15688
  assert('MetaProperty', node, opts);
15466
15689
  }
@@ -15501,6 +15724,10 @@ function assertAwaitExpression(node, opts) {
15501
15724
  assert('AwaitExpression', node, opts);
15502
15725
  }
15503
15726
 
15727
+ function assertImportExpression(node, opts) {
15728
+ assert('ImportExpression', node, opts);
15729
+ }
15730
+
15504
15731
  function assertImport(node, opts) {
15505
15732
  assert('Import', node, opts);
15506
15733
  }
@@ -17237,7 +17464,6 @@ function inherits(child, parent) {
17237
17464
  }
17238
17465
 
17239
17466
  inheritsComments(child, parent);
17240
-
17241
17467
  return child;
17242
17468
  }
17243
17469
 
@@ -17247,7 +17473,6 @@ function prependToMemberExpression(member, prepend) {
17247
17473
  }
17248
17474
 
17249
17475
  member.object = memberExpression(prepend, member.object);
17250
-
17251
17476
  return member;
17252
17477
  }
17253
17478
 
@@ -17830,7 +18055,7 @@ var react = {
17830
18055
  buildChildren,
17831
18056
  };
17832
18057
 
17833
- // ../babel-babel/packages/babel-parser/lib/index.js
18058
+ // node_modules/@babel/parser/lib/index.js
17834
18059
  var Position = class {
17835
18060
  constructor(line, col, index3) {
17836
18061
  this.line = void 0;
@@ -21029,6 +21254,7 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
21029
21254
  jsxReadNewLine(normalizeCRLF) {
21030
21255
  const ch = this.input.charCodeAt(this.state.pos);
21031
21256
  let out;
21257
+
21032
21258
  ++this.state.pos;
21033
21259
 
21034
21260
  if (ch === 13 && this.input.charCodeAt(this.state.pos) === 10) {
@@ -21103,6 +21329,7 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
21103
21329
  if (semi) {
21104
21330
  const desc = this.input.slice(startPos, this.state.pos);
21105
21331
  const entity = entities[desc];
21332
+
21106
21333
  ++this.state.pos;
21107
21334
 
21108
21335
  if (entity) {
@@ -21232,31 +21459,33 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
21232
21459
  }
21233
21460
 
21234
21461
  jsxParseAttribute() {
21235
- const node = this.startNode();
21236
-
21237
21462
  if (this.match(2)) {
21463
+ const node2 = this.startNode();
21238
21464
  this.setContext(types.brace);
21239
21465
  this.next();
21240
21466
  this.expect(17);
21241
- node.argument = this.parseMaybeAssignAllowIn();
21467
+ node2.argument = this.parseMaybeAssignAllowIn();
21242
21468
  this.setContext(types.j_oTag);
21243
21469
  this.state.canStartJSXElement = true;
21244
21470
  this.expect(4);
21245
- return this.finishNode(node, 'JSXSpreadAttribute');
21471
+ return this.finishNode(node2, 'JSXSpreadAttribute');
21246
21472
  }
21247
21473
 
21474
+ const node = this.startNode();
21475
+
21248
21476
  node.name = this.jsxParseNamespacedName();
21249
21477
  node.value = this.eat(25) ? this.jsxParseAttributeValue() : null;
21250
21478
  return this.finishNode(node, 'JSXAttribute');
21251
21479
  }
21252
21480
 
21253
21481
  jsxParseOpeningElementAt(startLoc) {
21254
- const node = this.startNodeAt(startLoc);
21255
-
21256
21482
  if (this.eat(139)) {
21257
- return this.finishNode(node, 'JSXOpeningFragment');
21483
+ const node2 = this.startNodeAt(startLoc);
21484
+ return this.finishNode(node2, 'JSXOpeningFragment');
21258
21485
  }
21259
21486
 
21487
+ const node = this.startNodeAt(startLoc);
21488
+
21260
21489
  node.name = this.jsxParseElementName();
21261
21490
  return this.jsxParseOpeningElementAfterName(node);
21262
21491
  }
@@ -21275,12 +21504,13 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
21275
21504
  }
21276
21505
 
21277
21506
  jsxParseClosingElementAt(startLoc) {
21278
- const node = this.startNodeAt(startLoc);
21279
-
21280
21507
  if (this.eat(139)) {
21281
- return this.finishNode(node, 'JSXClosingFragment');
21508
+ const node2 = this.startNodeAt(startLoc);
21509
+ return this.finishNode(node2, 'JSXClosingFragment');
21282
21510
  }
21283
21511
 
21512
+ const node = this.startNodeAt(startLoc);
21513
+
21284
21514
  node.name = this.jsxParseElementName();
21285
21515
  this.expect(139);
21286
21516
  return this.finishNode(node, 'JSXClosingElement');
@@ -21508,7 +21738,6 @@ var TypeScriptScopeHandler = class extends ScopeHandler {
21508
21738
  }
21509
21739
 
21510
21740
  this.importsStack[this.importsStack.length - 1].add(name);
21511
-
21512
21741
  return;
21513
21742
  }
21514
21743
 
@@ -21745,7 +21974,7 @@ var CommentsParser = class extends BaseParser {
21745
21974
  i--;
21746
21975
  }
21747
21976
 
21748
- const {start: nodeStart} = node;
21977
+ const nodeStart = node.start;
21749
21978
 
21750
21979
  for (; i >= 0; i--) {
21751
21980
  const commentWS = commentStack[i];
@@ -23841,9 +24070,7 @@ var ArrowHeadParsingScope = class extends ExpressionScope {
23841
24070
 
23842
24071
  var ExpressionScopeHandler = class {
23843
24072
  parser;
23844
- stack = [
23845
- new ExpressionScope(),
23846
- ];
24073
+ stack = [new ExpressionScope()];
23847
24074
  constructor(parser) {
23848
24075
  this.parser = parser;
23849
24076
  }
@@ -24316,10 +24543,6 @@ var NodeUtils = class extends UtilParser {
24316
24543
  }
24317
24544
 
24318
24545
  finishNodeAtNode(node, type, endNode) {
24319
- if (process.env.NODE_ENV !== 'production' && node.end > 0) {
24320
- throw new Error('Do not call finishNode*() twice on the same node. Instead use resetEndLocation() or change type directly.');
24321
- }
24322
-
24323
24546
  node.type = type;
24324
24547
  node.end = endNode.end;
24325
24548
  const {optionFlags} = this;
@@ -24474,6 +24697,7 @@ var LValParser = class extends NodeUtils {
24474
24697
  for (let i = 0, length = node.properties.length, last2 = length - 1; i < length; i++) {
24475
24698
  const prop = node.properties[i];
24476
24699
  const isLast = i === last2;
24700
+
24477
24701
  this.toAssignableObjectExpressionProp(prop, isLast, isLHS);
24478
24702
 
24479
24703
  if (isLast && prop.type === 'RestElement' && node.extra?.trailingCommaLoc) {
@@ -24962,7 +25186,6 @@ var LValParser = class extends NodeUtils {
24962
25186
  }
24963
25187
 
24964
25188
  this.raise(this.lookaheadCharCode() === close ? Errors.RestTrailingComma : Errors.ElementAfterRest, this.state.startLoc);
24965
-
24966
25189
  return true;
24967
25190
  }
24968
25191
  };
@@ -25393,9 +25616,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
25393
25616
 
25394
25617
  this.expect(10);
25395
25618
  withProperty.value = this.tsParseImportTypeWithPropertyValue();
25396
- node.properties = [
25397
- this.finishObjectProperty(withProperty),
25398
- ];
25619
+ node.properties = [this.finishObjectProperty(withProperty)];
25399
25620
  this.eat(8);
25400
25621
  this.expect(4);
25401
25622
  return this.finishNode(node, 'ObjectExpression');
@@ -25404,6 +25625,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
25404
25625
  tsParseImportTypeWithPropertyValue() {
25405
25626
  const node = this.startNode();
25406
25627
  const properties = [];
25628
+
25407
25629
  this.expect(2);
25408
25630
  while (!this.match(4)) {
25409
25631
  const type = this.state.type;
@@ -25861,6 +26083,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
25861
26083
  tsParseTupleElementType() {
25862
26084
  const restStartLoc = this.state.startLoc;
25863
26085
  const rest = this.eat(17);
26086
+
25864
26087
  const {startLoc} = this.state;
25865
26088
 
25866
26089
  let labeled;
@@ -26132,6 +26355,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
26132
26355
  tsParseTypeOperator() {
26133
26356
  const node = this.startNode();
26134
26357
  const operator = this.state.value;
26358
+
26135
26359
  this.next();
26136
26360
  node.operator = operator;
26137
26361
  node.typeAnnotation = this.tsParseTypeOperatorOrHigher();
@@ -27325,7 +27549,8 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
27325
27549
  return declaration;
27326
27550
  }
27327
27551
 
27328
- for (const {id, init} of declaration.declarations) {
27552
+ for (const {id, init}
27553
+ of declaration.declarations) {
27329
27554
  if (!init)
27330
27555
  continue;
27331
27556
 
@@ -27358,6 +27583,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
27358
27583
  if (this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()) {
27359
27584
  const token = this.state.type;
27360
27585
  const node = this.startNode();
27586
+
27361
27587
  this.next();
27362
27588
  const declaration = token === 121 ? this.tsTryParseDeclare(node) : this.tsParseAbstractDeclaration(node, decorators);
27363
27589
 
@@ -27750,6 +27976,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
27750
27976
  if (node.superClass.type === 'TSInstantiationExpression') {
27751
27977
  const tsInstantiationExpression2 = node.superClass;
27752
27978
  const superClass2 = tsInstantiationExpression2.expression;
27979
+
27753
27980
  this.takeSurroundingComments(superClass2, superClass2.start, superClass2.end);
27754
27981
  const superTypeArguments = tsInstantiationExpression2.typeArguments;
27755
27982
  this.takeSurroundingComments(superTypeArguments, superTypeArguments.start, superTypeArguments.end);
@@ -28822,9 +29049,7 @@ var placeholders = (superClass) => class PlaceholdersParserMixin extends superCl
28822
29049
  const specifier = this.startNode();
28823
29050
 
28824
29051
  specifier.exported = placeholder2;
28825
- node2.specifiers = [
28826
- this.finishNode(specifier, 'ExportDefaultSpecifier'),
28827
- ];
29052
+ node2.specifiers = [this.finishNode(specifier, 'ExportDefaultSpecifier')];
28828
29053
  return super.parseExport(node2, decorators);
28829
29054
  }
28830
29055
 
@@ -28909,11 +29134,13 @@ var v8intrinsic = (superClass) => class V8IntrinsicMixin extends superClass {
28909
29134
  if (this.match(50)) {
28910
29135
  const v8IntrinsicStartLoc = this.state.startLoc;
28911
29136
  const node = this.startNode();
29137
+
28912
29138
  this.next();
28913
29139
 
28914
29140
  if (tokenIsIdentifier(this.state.type)) {
28915
29141
  const name = this.parseIdentifierName();
28916
29142
  const identifier4 = this.createIdentifier(node, name);
29143
+
28917
29144
  this.castNodeTo(identifier4, 'V8IntrinsicIdentifier');
28918
29145
 
28919
29146
  if (this.match(6)) {
@@ -29711,6 +29938,7 @@ var ExpressionParser = class extends LValParser {
29711
29938
  parseExprAtom(refExpressionErrors) {
29712
29939
  let node;
29713
29940
  let decorators = null;
29941
+
29714
29942
  const {type} = this.state;
29715
29943
 
29716
29944
  switch(type) {
@@ -29938,9 +30166,7 @@ var ExpressionParser = class extends LValParser {
29938
30166
 
29939
30167
  parseAsyncArrowUnaryFunction(node) {
29940
30168
  this.prodParam.enter(functionFlags(true, this.prodParam.hasYield));
29941
- const params = [
29942
- this.parseIdentifier(),
29943
- ];
30169
+ const params = [this.parseIdentifier()];
29944
30170
  this.prodParam.exit();
29945
30171
 
29946
30172
  if (this.hasPrecedingLineBreak()) {
@@ -30124,6 +30350,7 @@ var ExpressionParser = class extends LValParser {
30124
30350
  parseParenAndDistinguishExpression(canStartArrow) {
30125
30351
  const startLoc = this.state.startLoc;
30126
30352
  let val;
30353
+
30127
30354
  this.next();
30128
30355
  this.expressionScope.enter(newArrowHeadScope());
30129
30356
  const innerStartLoc = this.state.startLoc;
@@ -32018,6 +32245,7 @@ var StatementParser = class extends ExpressionParser {
32018
32245
  parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse) {
32019
32246
  const body = node.body = [];
32020
32247
  const directives = node.directives = [];
32248
+
32021
32249
  this.parseBlockOrModuleBlockBody(body, allowDirectives ? directives : void 0, topLevel, end, afterBlockParse);
32022
32250
  }
32023
32251
 
@@ -32713,9 +32941,7 @@ var StatementParser = class extends ExpressionParser {
32713
32941
  const specifier = this.startNodeAtNode(id);
32714
32942
 
32715
32943
  specifier.exported = id;
32716
- node.specifiers = [
32717
- this.finishNode(specifier, 'ExportDefaultSpecifier'),
32718
- ];
32944
+ node.specifiers = [this.finishNode(specifier, 'ExportDefaultSpecifier')];
32719
32945
  return true;
32720
32946
  }
32721
32947
 
@@ -32906,6 +33132,7 @@ var StatementParser = class extends ExpressionParser {
32906
33132
  const {exported} = specifier;
32907
33133
 
32908
33134
  const exportName = exported.type === 'Identifier' ? exported.name : exported.value;
33135
+
32909
33136
  this.checkDuplicateExports(specifier, exportName);
32910
33137
 
32911
33138
  if (!isFrom && specifier.local) {
@@ -32985,6 +33212,7 @@ var StatementParser = class extends ExpressionParser {
32985
33212
  parseExportSpecifiers(isInTypeExport) {
32986
33213
  const nodes = [];
32987
33214
  let first = true;
33215
+
32988
33216
  this.expect(2);
32989
33217
  while (!this.eat(4)) {
32990
33218
  if (first) {
@@ -33522,7 +33750,7 @@ function getColumn(locData, pos) {
33522
33750
  return locData[pos * 2 + 1];
33523
33751
  }
33524
33752
 
33525
- // ../babel-babel/packages/babel-code-frame/lib/common-BO7XIBW3.js
33753
+ // node_modules/@babel/code-frame/lib/common-BO7XIBW3.js
33526
33754
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
33527
33755
 
33528
33756
  function getMarkerLines(loc, source, opts, startLineBaseZero) {
@@ -33568,10 +33796,7 @@ function getMarkerLines(loc, source, opts, startLineBaseZero) {
33568
33796
  markerLines[lineNumber] = true;
33569
33797
  } else if (i === 0) {
33570
33798
  const sourceLength = source[lineNumber - 1].length;
33571
- markerLines[lineNumber] = [
33572
- startColumn,
33573
- sourceLength - startColumn + 1,
33574
- ];
33799
+ markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
33575
33800
  } else if (i === lineDiff) {
33576
33801
  markerLines[lineNumber] = [0, endColumn];
33577
33802
  } else {
@@ -33588,10 +33813,7 @@ function getMarkerLines(loc, source, opts, startLineBaseZero) {
33588
33813
  markerLines[startLine] = true;
33589
33814
  }
33590
33815
  } else {
33591
- markerLines[startLine] = [
33592
- startColumn,
33593
- endColumn - startColumn,
33594
- ];
33816
+ markerLines[startLine] = [startColumn, endColumn - startColumn];
33595
33817
  }
33596
33818
  }
33597
33819
 
@@ -33680,10 +33902,10 @@ ${frame}`;
33680
33902
  return defs2.reset(frame);
33681
33903
  }
33682
33904
 
33683
- // ../babel-babel/packages/babel-code-frame/lib/index.js
33905
+ // node_modules/@babel/code-frame/lib/index.js
33684
33906
  import * as util from 'util';
33685
33907
 
33686
- const {styleText = (a, b) => b} = util;// ../babel-babel/node_modules/js-tokens/index.js
33908
+ const {styleText = (a, b) => b} = util;// node_modules/js-tokens/index.js
33687
33909
  var HashbangComment;
33688
33910
  var Identifier2;
33689
33911
  var JSXIdentifier2;
@@ -34193,7 +34415,7 @@ jsTokens = function*(input, {jsx: jsx2 = false} = {}) {
34193
34415
  };
34194
34416
  var js_tokens_default = jsTokens;
34195
34417
 
34196
- // ../babel-babel/packages/babel-code-frame/lib/index.js
34418
+ // node_modules/@babel/code-frame/lib/index.js
34197
34419
  function isColorSupported() {
34198
34420
  return styleText('red', '-') !== '-';
34199
34421
  }
@@ -34349,7 +34571,8 @@ function highlight(text) {
34349
34571
 
34350
34572
  let highlighted = '';
34351
34573
 
34352
- for (const {type, value} of tokenize(text)) {
34574
+ for (const {type, value}
34575
+ of tokenize(text)) {
34353
34576
  if (type in defs) {
34354
34577
  highlighted += value
34355
34578
  .split(NEWLINE2)
@@ -34372,7 +34595,7 @@ function codeFrameColumns(rawLines, loc, opts = {}) {
34372
34595
  } : void 0);
34373
34596
  }
34374
34597
 
34375
- // ../babel-babel/packages/babel-template/lib/index.js
34598
+ // node_modules/@babel/template/lib/index.js
34376
34599
  var {assertExpressionStatement: assertExpressionStatement2} = lib_exports;
34377
34600
 
34378
34601
  function makeStatementFormatter(fn) {
@@ -34668,9 +34891,11 @@ function parseWithCodeFrame(code2, parserOpts, syntacticPlaceholders) {
34668
34891
  const loc = err.loc;
34669
34892
 
34670
34893
  if (loc) {
34671
- err.message += '\n' + codeFrameColumns(code2, {
34672
- start: loc,
34673
- });
34894
+ err.message +=
34895
+ '\n' +
34896
+ codeFrameColumns(code2, {
34897
+ start: loc,
34898
+ });
34674
34899
  err.code = 'BABEL_TEMPLATE_PARSE_ERROR';
34675
34900
  }
34676
34901
 
@@ -35011,7 +35236,7 @@ var index = Object.assign(smart.bind(void 0), {
35011
35236
  ast: smart.ast,
35012
35237
  });
35013
35238
 
35014
- // ../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
35239
+ // node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
35015
35240
  var comma = ','.charCodeAt(0);
35016
35241
  var semicolon = ';'.charCodeAt(0);
35017
35242
  var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
@@ -35260,7 +35485,7 @@ function encode(decoded) {
35260
35485
  return writer.flush();
35261
35486
  }
35262
35487
 
35263
- // ../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
35488
+ // node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
35264
35489
  var schemeRegex = /^[\w+.-]+:\/\//;
35265
35490
  var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
35266
35491
  var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
@@ -35480,7 +35705,7 @@ case 2:
35480
35705
  }
35481
35706
  }
35482
35707
 
35483
- // ../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
35708
+ // node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
35484
35709
  function stripFilename(path) {
35485
35710
  if (!path)
35486
35711
  return '';
@@ -35752,7 +35977,7 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
35752
35977
  return index3;
35753
35978
  }
35754
35979
 
35755
- // ../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
35980
+ // node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
35756
35981
  var SetArray = class {
35757
35982
  constructor() {
35758
35983
  this._indexes = {
@@ -36028,7 +36253,7 @@ function addMappingInternal(skipable, map, mapping) {
36028
36253
  return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
36029
36254
  }
36030
36255
 
36031
- // ../babel-babel/packages/babel-generator/lib/index.js
36256
+ // node_modules/@babel/generator/lib/index.js
36032
36257
  var import_jsesc = __toESM(require_jsesc(), 1);
36033
36258
 
36034
36259
  var SourceMap = class {
@@ -37991,6 +38216,7 @@ function tsPrintFunctionOrConstructorType(node) {
37991
38216
  const {typeParameters} = node;
37992
38217
 
37993
38218
  const parameters = node.params;
38219
+
37994
38220
  this.print(typeParameters);
37995
38221
  this.tokenChar(40);
37996
38222
  _parameters.call(this, parameters, 41);
@@ -38441,6 +38667,7 @@ function tsPrintSignatureDeclarationBase(node) {
38441
38667
  const {typeParameters} = node;
38442
38668
 
38443
38669
  const parameters = node.params;
38670
+
38444
38671
  this.print(typeParameters);
38445
38672
  this.tokenChar(40);
38446
38673
  _parameters.call(this, parameters, 41);
@@ -38450,6 +38677,7 @@ function tsPrintSignatureDeclarationBase(node) {
38450
38677
  function _tsPrintClassMemberModifiers(node) {
38451
38678
  const isPrivateField = node.type === 'ClassPrivateProperty';
38452
38679
  const isPublicField = node.type === 'ClassAccessorProperty' || node.type === 'ClassProperty';
38680
+
38453
38681
  printModifiersList(this, node, [isPublicField && node.declare && 'declare', !isPrivateField && node.accessibility]);
38454
38682
 
38455
38683
  if (node.static) {
@@ -38481,13 +38709,11 @@ function printModifiersList(printer, node, modifiers) {
38481
38709
  printer.token(tok.value);
38482
38710
  printer.space();
38483
38711
  modifiersSet.delete(tok.value);
38484
-
38485
38712
  return modifiersSet.size === 0;
38486
38713
  }
38487
38714
 
38488
38715
  return false;
38489
38716
  });
38490
-
38491
38717
  for (const modifier of modifiersSet) {
38492
38718
  printer.word(modifier);
38493
38719
  printer.space();
@@ -38875,6 +39101,7 @@ function ObjectProperty2(node) {
38875
39101
  function ArrayExpression2(node) {
38876
39102
  const elems = node.elements;
38877
39103
  const len = elems.length;
39104
+
38878
39105
  this.tokenChar(91);
38879
39106
  const oldNoLineTerminatorAfterNode = this.enterDelimited();
38880
39107
 
@@ -38968,6 +39195,7 @@ function TopicReference2() {
38968
39195
  } else {
38969
39196
  const givenTopicTokenJSON = JSON.stringify(topicToken);
38970
39197
  const validTopics = Array.from(validTopicTokenSet, (v) => JSON.stringify(v));
39198
+
38971
39199
  throw new Error(`The "topicToken" generator option must be one of ${validTopics.join(', ')} (${givenTopicTokenJSON} received instead).`);
38972
39200
  }
38973
39201
  }
@@ -41876,7 +42104,7 @@ function generate(ast, opts = {}, code2) {
41876
42104
  return printer.generate(ast);
41877
42105
  }
41878
42106
 
41879
- // ../babel-babel/node_modules/obug/dist/core.js
42107
+ // node_modules/obug/dist/core.js
41880
42108
  function selectColor(colors2, namespace) {
41881
42109
  let hash = 0;
41882
42110
 
@@ -41923,7 +42151,7 @@ function enable(namespaces$1) {
41923
42151
  names.push(ns);
41924
42152
  }
41925
42153
 
41926
- // ../babel-babel/node_modules/obug/dist/node.js
42154
+ // node_modules/obug/dist/node.js
41927
42155
  var colors = [];
41928
42156
 
41929
42157
  var inspectOpts = {};
@@ -41970,8 +42198,7 @@ function createDebug2(namespace, options) {
41970
42198
  }
41971
42199
 
41972
42200
  enable(process.env.DEBUG || '');
41973
- // ../babel-babel/packages/babel-helper-globals/data/builtin-lower.json
41974
-
42201
+ // node_modules/@babel/helper-globals/data/builtin-lower.json
41975
42202
  var builtin_lower_default = [
41976
42203
  'decodeURI',
41977
42204
  'decodeURIComponent',
@@ -41988,7 +42215,7 @@ var builtin_lower_default = [
41988
42215
  'unescape',
41989
42216
  ];
41990
42217
 
41991
- // ../babel-babel/packages/babel-helper-globals/data/builtin-upper.json
42218
+ // node_modules/@babel/helper-globals/data/builtin-upper.json
41992
42219
  var builtin_upper_default = [
41993
42220
  'AggregateError',
41994
42221
  'Array',
@@ -42041,14 +42268,12 @@ var builtin_upper_default = [
42041
42268
  'WeakSet',
42042
42269
  ];
42043
42270
 
42044
- // ../babel-babel/packages/babel-traverse/lib/index.js
42271
+ // node_modules/@babel/traverse/lib/index.js
42045
42272
  var ReferencedIdentifier = [
42046
42273
  'Identifier',
42047
42274
  'JSXIdentifier',
42048
42275
  ];
42049
- var ReferencedMemberExpression = [
42050
- 'MemberExpression',
42051
- ];
42276
+ var ReferencedMemberExpression = ['MemberExpression'];
42052
42277
  var BindingIdentifier = ['Identifier'];
42053
42278
  var Statement = ['Statement'];
42054
42279
  var Expression = ['Expression'];
@@ -42062,9 +42287,7 @@ var BlockScoped = [
42062
42287
  'ClassDeclaration',
42063
42288
  'VariableDeclaration',
42064
42289
  ];
42065
- var Var = [
42066
- 'VariableDeclaration',
42067
- ];
42290
+ var Var = ['VariableDeclaration'];
42068
42291
  var User = null;
42069
42292
  var Generated = null;
42070
42293
  var Pure = null;
@@ -42074,21 +42297,11 @@ var Flow = [
42074
42297
  'ExportDeclaration',
42075
42298
  'ImportSpecifier',
42076
42299
  ];
42077
- var RestProperty2 = [
42078
- 'RestElement',
42079
- ];
42080
- var SpreadProperty2 = [
42081
- 'RestElement',
42082
- ];
42083
- var ExistentialTypeParam = [
42084
- 'ExistsTypeAnnotation',
42085
- ];
42086
- var NumericLiteralTypeAnnotation = [
42087
- 'NumberLiteralTypeAnnotation',
42088
- ];
42089
- var ForAwaitStatement = [
42090
- 'ForOfStatement',
42091
- ];
42300
+ var RestProperty2 = ['RestElement'];
42301
+ var SpreadProperty2 = ['RestElement'];
42302
+ var ExistentialTypeParam = ['ExistsTypeAnnotation'];
42303
+ var NumericLiteralTypeAnnotation = ['NumberLiteralTypeAnnotation'];
42304
+ var ForAwaitStatement = ['ForOfStatement'];
42092
42305
 
42093
42306
  var virtualTypes = /* @__PURE__ */Object.freeze({
42094
42307
  __proto__: null,
@@ -42180,7 +42393,6 @@ function _visitPaths(ctx, paths) {
42180
42393
  }
42181
42394
 
42182
42395
  ctx.queue = null;
42183
-
42184
42396
  return stop2;
42185
42397
  }
42186
42398
 
@@ -42488,7 +42700,6 @@ function explode$1(visitor) {
42488
42700
  delete visitor.__esModule;
42489
42701
  ensureEntranceObjects(visitor);
42490
42702
  ensureCallbackArrays(visitor);
42491
-
42492
42703
  for (const nodeType of Object.keys(visitor)) {
42493
42704
  if (shouldIgnoreKey(nodeType))
42494
42705
  continue;
@@ -42576,7 +42787,7 @@ function verify$1(visitor) {
42576
42787
  continue;
42577
42788
 
42578
42789
  if (!TYPES2.includes(nodeType)) {
42579
- throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${'8.0.0-rc.2'}`);
42790
+ throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${'8.0.0-rc.3'}`);
42580
42791
  }
42581
42792
 
42582
42793
  const visitors2 = visitor[nodeType];
@@ -42699,6 +42910,7 @@ function ensureCallbackArrays(obj) {
42699
42910
  function wrapCheck(nodeType, fn) {
42700
42911
  const fnKey = `is${nodeType}`;
42701
42912
  const validator = NodePath_virtual_types_validator[fnKey];
42913
+
42702
42914
  const newFn = function(path) {
42703
42915
  if (validator.call(path)) {
42704
42916
  return fn.apply(this, arguments);
@@ -42753,7 +42965,10 @@ var _environmentVisitor = {
42753
42965
  };
42754
42966
 
42755
42967
  function environmentVisitor(visitor) {
42756
- return merge2([_environmentVisitor, visitor]);
42968
+ return merge2([
42969
+ _environmentVisitor,
42970
+ visitor,
42971
+ ]);
42757
42972
  }
42758
42973
 
42759
42974
  var visitors = /* @__PURE__ */Object.freeze({
@@ -43028,7 +43243,8 @@ var Binding = class {
43028
43243
  function isInitInLoop(path) {
43029
43244
  const isFunctionDeclarationOrHasInit = !path.isVariableDeclarator() || path.node.init;
43030
43245
 
43031
- for (let {parentPath, key} = path; parentPath; ({
43246
+ for (let {parentPath, key} = path
43247
+ ; parentPath; ({
43032
43248
  parentPath,
43033
43249
  key,
43034
43250
  } = parentPath)) {
@@ -43306,6 +43522,7 @@ var collectorVisitor = {
43306
43522
  const {scope: scope2} = path;
43307
43523
 
43308
43524
  const parentScope = scope2.getFunctionParent() || scope2.getProgramParent();
43525
+
43309
43526
  parentScope.registerBinding('var', declar);
43310
43527
  }
43311
43528
  },
@@ -43349,6 +43566,7 @@ var collectorVisitor = {
43349
43566
  const {scope: scope2} = path;
43350
43567
 
43351
43568
  const parentScope = scope2.getFunctionParent() || scope2.getProgramParent();
43569
+
43352
43570
  parentScope.registerBinding('var', left);
43353
43571
  }
43354
43572
  },
@@ -43467,10 +43685,7 @@ var Scope2 = class _Scope {
43467
43685
  this.inited = false;
43468
43686
  }
43469
43687
 
43470
- static globals = [
43471
- ...builtin_lower_default,
43472
- ...builtin_upper_default,
43473
- ];
43688
+ static globals = [...builtin_lower_default, ...builtin_upper_default];
43474
43689
  static contextVariables = [
43475
43690
  'arguments',
43476
43691
  'undefined',
@@ -43727,7 +43942,6 @@ var Scope2 = class _Scope {
43727
43942
 
43728
43943
  for (const name of Object.keys(ids)) {
43729
43944
  parent.referencesSet.add(name);
43730
-
43731
43945
  for (const id of ids[name]) {
43732
43946
  const local = this.getOwnBinding(name);
43733
43947
 
@@ -43972,7 +44186,6 @@ collectorVisitor]);
43972
44186
 
43973
44187
  traverseForScope(path, scopeVisitor, state);
43974
44188
  this.crawling = false;
43975
-
43976
44189
  for (const path2 of state.assignments) {
43977
44190
  const ids = path2.getAssignmentIdentifiers();
43978
44191
 
@@ -44732,26 +44945,20 @@ function BinaryExpression3(node) {
44732
44945
  }
44733
44946
 
44734
44947
  function LogicalExpression3() {
44735
- const argumentTypes = [
44736
- this
44948
+ const argumentTypes = [this
44737
44949
  .get('left')
44738
- .getTypeAnnotation(),
44739
- this
44950
+ .getTypeAnnotation(), this
44740
44951
  .get('right')
44741
- .getTypeAnnotation(),
44742
- ];
44952
+ .getTypeAnnotation()];
44743
44953
  return createUnionType(argumentTypes);
44744
44954
  }
44745
44955
 
44746
44956
  function ConditionalExpression3() {
44747
- const argumentTypes = [
44748
- this
44957
+ const argumentTypes = [this
44749
44958
  .get('consequent')
44750
- .getTypeAnnotation(),
44751
- this
44959
+ .getTypeAnnotation(), this
44752
44960
  .get('alternate')
44753
- .getTypeAnnotation(),
44754
- ];
44961
+ .getTypeAnnotation()];
44755
44962
  return createUnionType(argumentTypes);
44756
44963
  }
44757
44964
 
@@ -45198,6 +45405,7 @@ var {
45198
45405
  function insertBefore(nodes_) {
45199
45406
  _assertUnremoved.call(this);
45200
45407
  const nodes = _verifyNodeList.call(this, nodes_);
45408
+
45201
45409
  const {parentPath, parent} = this;
45202
45410
 
45203
45411
  if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration3(parent) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
@@ -45229,6 +45437,7 @@ function _containerInsert(from, nodes) {
45229
45437
  for (let i = 0; i < nodes.length; i++) {
45230
45438
  const to = from + i;
45231
45439
  const path = this.getSibling(to);
45440
+
45232
45441
  paths.push(path);
45233
45442
 
45234
45443
  if (this.context?.queue) {
@@ -45241,7 +45450,6 @@ function _containerInsert(from, nodes) {
45241
45450
  for (const path of paths) {
45242
45451
  setScope.call(path);
45243
45452
  path.debug('Inserted.');
45244
-
45245
45453
  for (const context of contexts) {
45246
45454
  context.maybeQueue(path, true);
45247
45455
  }
@@ -45484,12 +45692,14 @@ function replaceWithSourceString(replacement) {
45484
45692
  const loc = err.loc;
45485
45693
 
45486
45694
  if (loc) {
45487
- err.message += ' - make sure this is an expression.\n' + codeFrameColumns(replacement, {
45488
- start: {
45489
- line: loc.line,
45490
- column: loc.column + 1,
45491
- },
45492
- });
45695
+ err.message +=
45696
+ ' - make sure this is an expression.\n' +
45697
+ codeFrameColumns(replacement, {
45698
+ start: {
45699
+ line: loc.line,
45700
+ column: loc.column + 1,
45701
+ },
45702
+ });
45493
45703
  err.code = 'BABEL_REPLACE_SOURCE_ERROR';
45494
45704
  }
45495
45705
 
@@ -45515,9 +45725,7 @@ function replaceWith(replacementPath) {
45515
45725
  }
45516
45726
 
45517
45727
  if (this.node === replacement) {
45518
- return [
45519
- this,
45520
- ];
45728
+ return [this];
45521
45729
  }
45522
45730
 
45523
45731
  if (this.isProgram() && !isProgram2(replacement)) {
@@ -45558,9 +45766,7 @@ function replaceWith(replacementPath) {
45558
45766
  this.type = replacement.type;
45559
45767
  setScope.call(this);
45560
45768
  this.requeue();
45561
- return [
45562
- nodePath ? this.get(nodePath) : this,
45563
- ];
45769
+ return [nodePath ? this.get(nodePath) : this];
45564
45770
  }
45565
45771
 
45566
45772
  function _replaceWith(node) {
@@ -45784,11 +45990,7 @@ function deopt(path, state) {
45784
45990
  state.confident = false;
45785
45991
  }
45786
45992
 
45787
- var Globals = /* @__PURE__ */new Map([
45788
- ['undefined', void 0],
45789
- ['Infinity', Infinity],
45790
- ['NaN', NaN],
45791
- ]);
45993
+ var Globals = /* @__PURE__ */new Map([['undefined', void 0], ['Infinity', Infinity], ['NaN', NaN]]);
45792
45994
 
45793
45995
  function evaluateCached(path, state) {
45794
45996
  const {node} = path;
@@ -46522,6 +46724,7 @@ function hoistFunctionEnvironment(fnPath, noNewArrows = true, allowInsertArrow =
46522
46724
  flatSuperProps.forEach((superProp) => {
46523
46725
  const key = superProp.node.computed ? '' : superProp.get('property').node.name;
46524
46726
  const superParentPath = superProp.parentPath;
46727
+
46525
46728
  const isAssignment = superParentPath.isAssignmentExpression({
46526
46729
  left: superProp.node,
46527
46730
  });
@@ -46609,6 +46812,7 @@ function standardizeSuperProperty(superProp) {
46609
46812
  } else {
46610
46813
  const object = superProp.node.object;
46611
46814
  const property = superProp.node.property;
46815
+
46612
46816
  assignmentPath.get('left').replaceWith(memberExpression2(object, property));
46613
46817
  assignmentPath.get('right').replaceWith(rightExpression(isLogicalAssignment ? '=' : op, memberExpression2(object, identifier3(property.name)), value));
46614
46818
  }
@@ -46619,18 +46823,12 @@ function standardizeSuperProperty(superProp) {
46619
46823
  assignmentPath.node.operator = '=';
46620
46824
  }
46621
46825
 
46622
- return [
46623
- assignmentPath.get('left'),
46624
- assignmentPath.get('right').get('left'),
46625
- ];
46826
+ return [assignmentPath.get('left'), assignmentPath.get('right').get('left')];
46626
46827
  } else if (superProp.parentPath.isUpdateExpression()) {
46627
46828
  const updateExpr = superProp.parentPath;
46628
46829
  const tmp = superProp.scope.generateDeclaredUidIdentifier('tmp');
46629
46830
  const computedKey = superProp.node.computed ? superProp.scope.generateDeclaredUidIdentifier('prop') : null;
46630
- const parts = [
46631
- assignmentExpression2('=', tmp, memberExpression2(superProp.node.object, computedKey ? assignmentExpression2('=', computedKey, superProp.node.property) : superProp.node.property, superProp.node.computed)),
46632
- assignmentExpression2('=', memberExpression2(superProp.node.object, computedKey ? identifier3(computedKey.name) : superProp.node.property, superProp.node.computed), binaryExpression2(superProp.parentPath.node.operator[0], identifier3(tmp.name), numericLiteral$1(1))),
46633
- ];
46831
+ const parts = [assignmentExpression2('=', tmp, memberExpression2(superProp.node.object, computedKey ? assignmentExpression2('=', computedKey, superProp.node.property) : superProp.node.property, superProp.node.computed)), assignmentExpression2('=', memberExpression2(superProp.node.object, computedKey ? identifier3(computedKey.name) : superProp.node.property, superProp.node.computed), binaryExpression2(superProp.parentPath.node.operator[0], identifier3(tmp.name), numericLiteral$1(1)))];
46634
46832
 
46635
46833
  if (!superProp.parentPath.node.prefix) {
46636
46834
  parts.push(identifier3(tmp.name));
@@ -47352,6 +47550,7 @@ function _resolve(dangerous, resolved) {
47352
47550
  continue;
47353
47551
 
47354
47552
  const key = prop.get('key');
47553
+
47355
47554
  let match = prop.isnt('computed') && key.isIdentifier({
47356
47555
  name: targetName,
47357
47556
  });
@@ -47553,7 +47752,6 @@ function completionRecordForSwitch(cases, records, context) {
47553
47752
  }
47554
47753
 
47555
47754
  records.push(...lastNormalCompletions);
47556
-
47557
47755
  return records;
47558
47756
  }
47559
47757