@putout/bundle 4.5.2 → 4.5.4

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/putout.js CHANGED
@@ -1,5 +1,3 @@
1
- import require$$1$3 from 'esprima';
2
-
3
1
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
2
 
5
3
  function getAugmentedNamespace(n) {
@@ -180,15 +178,15 @@ var versions = {};
180
178
  var release = {};
181
179
  var config = {};
182
180
 
183
- function noop$5() {}
181
+ function noop$6() {}
184
182
 
185
- var on = noop$5;
186
- var addListener = noop$5;
187
- var once$a = noop$5;
188
- var off = noop$5;
189
- var removeListener = noop$5;
190
- var removeAllListeners = noop$5;
191
- var emit = noop$5;
183
+ var on = noop$6;
184
+ var addListener = noop$6;
185
+ var once$a = noop$6;
186
+ var off = noop$6;
187
+ var removeListener = noop$6;
188
+ var removeAllListeners = noop$6;
189
+ var emit = noop$6;
192
190
 
193
191
  function binding(name) {
194
192
  throw new Error('process.binding is not supported');
@@ -2293,7 +2291,7 @@ var _polyfillNode_tty$1 = /*#__PURE__*/Object.freeze({
2293
2291
  isatty: isatty
2294
2292
  });
2295
2293
 
2296
- var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_tty$1);
2294
+ var require$$1$3 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_tty$1);
2297
2295
 
2298
2296
  var inherits$2;
2299
2297
  if (typeof Object.create === 'function'){
@@ -3022,83 +3020,6 @@ var _polyfillNode_util$1 = /*#__PURE__*/Object.freeze({
3022
3020
 
3023
3021
  var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_util$1);
3024
3022
 
3025
- var _polyfillNode_module = {};
3026
-
3027
- var _polyfillNode_module$1 = /*#__PURE__*/Object.freeze({
3028
- __proto__: null,
3029
- default: _polyfillNode_module
3030
- });
3031
-
3032
- var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_module$1);
3033
-
3034
- var require$$4 = [
3035
- "decodeURI",
3036
- "decodeURIComponent",
3037
- "encodeURI",
3038
- "encodeURIComponent",
3039
- "escape",
3040
- "eval",
3041
- "globalThis",
3042
- "isFinite",
3043
- "isNaN",
3044
- "parseFloat",
3045
- "parseInt",
3046
- "undefined",
3047
- "unescape"
3048
- ];
3049
-
3050
- var require$$5 = [
3051
- "AggregateError",
3052
- "Array",
3053
- "ArrayBuffer",
3054
- "Atomics",
3055
- "BigInt",
3056
- "BigInt64Array",
3057
- "BigUint64Array",
3058
- "Boolean",
3059
- "DataView",
3060
- "Date",
3061
- "Error",
3062
- "EvalError",
3063
- "FinalizationRegistry",
3064
- "Float16Array",
3065
- "Float32Array",
3066
- "Float64Array",
3067
- "Function",
3068
- "Infinity",
3069
- "Int16Array",
3070
- "Int32Array",
3071
- "Int8Array",
3072
- "Intl",
3073
- "Iterator",
3074
- "JSON",
3075
- "Map",
3076
- "Math",
3077
- "NaN",
3078
- "Number",
3079
- "Object",
3080
- "Promise",
3081
- "Proxy",
3082
- "RangeError",
3083
- "ReferenceError",
3084
- "Reflect",
3085
- "RegExp",
3086
- "Set",
3087
- "SharedArrayBuffer",
3088
- "String",
3089
- "Symbol",
3090
- "SyntaxError",
3091
- "TypeError",
3092
- "Uint16Array",
3093
- "Uint32Array",
3094
- "Uint8Array",
3095
- "Uint8ClampedArray",
3096
- "URIError",
3097
- "WeakMap",
3098
- "WeakRef",
3099
- "WeakSet"
3100
- ];
3101
-
3102
3023
  var __create$1 = Object.create;
3103
3024
  var __defProp$1 = Object.defineProperty;
3104
3025
  var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
@@ -4582,16 +4503,14 @@ typeof window !== 'undefined'
4582
4503
  // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
4583
4504
  typeof navigator !== 'undefined'
4584
4505
  && navigator.userAgent
4585
- && (m = navigator
4586
- .userAgent
4506
+ && (m = navigator.userAgent
4587
4507
  .toLowerCase()
4588
4508
  .match(/firefox\/(\d+)/))
4589
4509
  && parseInt(m[1], 10) >= 31
4590
4510
  || // Double check webkit in userAgent just in case we are in a worker
4591
4511
  typeof navigator !== 'undefined'
4592
4512
  && navigator.userAgent
4593
- && navigator
4594
- .userAgent
4513
+ && navigator.userAgent
4595
4514
  .toLowerCase()
4596
4515
  .match(/applewebkit\/(\d+)/);
4597
4516
  }
@@ -4800,7 +4719,7 @@ var require_supports_color$1 = __commonJS$1({
4800
4719
  // node_modules/debug/src/node.js
4801
4720
  var require_node$1 = __commonJS$1({
4802
4721
  'node_modules/debug/src/node.js'(exports2, module2) {
4803
- var tty = require$$1$2;
4722
+ var tty = require$$1$3;
4804
4723
  var util = require$$2$1;
4805
4724
 
4806
4725
  exports2.init = init;
@@ -10991,7 +10910,6 @@ function isLVal$1(node, opts) {
10991
10910
  case 'MemberExpression':
10992
10911
  case 'ArrayPattern':
10993
10912
  case 'ObjectPattern':
10994
- case 'OptionalMemberExpression':
10995
10913
  case 'TSAsExpression':
10996
10914
  case 'TSSatisfiesExpression':
10997
10915
  case 'TSTypeAssertion':
@@ -12438,7 +12356,7 @@ defineType$4$1('ArrayExpression', {
12438
12356
  defineType$4$1('AssignmentExpression', {
12439
12357
  fields: {
12440
12358
  operator: {
12441
- validate: Object.assign(function() {
12359
+ validate: Object.assign((function() {
12442
12360
  const identifier4 = assertOneOf$1(...ASSIGNMENT_OPERATORS$1);
12443
12361
  const pattern = assertOneOf$1('=');
12444
12362
 
@@ -12446,7 +12364,7 @@ defineType$4$1('AssignmentExpression', {
12446
12364
  const validator = is$5('Pattern', node.left) ? pattern : identifier4;
12447
12365
  validator(node, key, val);
12448
12366
  };
12449
- }(), {
12367
+ })(), {
12450
12368
  oneOf: ASSIGNMENT_OPERATORS$1,
12451
12369
  }),
12452
12370
  },
@@ -12476,7 +12394,7 @@ defineType$4$1('BinaryExpression', {
12476
12394
  validate: assertOneOf$1(...BINARY_OPERATORS$1),
12477
12395
  },
12478
12396
  left: {
12479
- validate: function() {
12397
+ validate: (function() {
12480
12398
  const expression2 = assertNodeType$1('Expression');
12481
12399
  const inOp = assertNodeType$1('Expression', 'PrivateName');
12482
12400
  const validator = Object.assign(function(node, key, val) {
@@ -12487,7 +12405,7 @@ defineType$4$1('BinaryExpression', {
12487
12405
  });
12488
12406
 
12489
12407
  return validator;
12490
- }(),
12408
+ })(),
12491
12409
  },
12492
12410
  right: {
12493
12411
  validate: assertNodeType$1('Expression'),
@@ -12797,7 +12715,7 @@ defineType$4$1('FunctionDeclaration', {
12797
12715
  'Pureish',
12798
12716
  'Declaration',
12799
12717
  ],
12800
- validate: function() {
12718
+ validate: (function() {
12801
12719
  const identifier4 = assertNodeType$1('Identifier');
12802
12720
 
12803
12721
  return function(parent, key, node) {
@@ -12805,7 +12723,7 @@ defineType$4$1('FunctionDeclaration', {
12805
12723
  identifier4(node, 'id', node.id);
12806
12724
  }
12807
12725
  };
12808
- }(),
12726
+ })(),
12809
12727
  });
12810
12728
  defineType$4$1('FunctionExpression', {
12811
12729
  inherits: 'FunctionDeclaration',
@@ -13020,7 +12938,7 @@ defineType$4$1('RegExpLiteral', {
13020
12938
  },
13021
12939
  flags: {
13022
12940
  validate: chain$5(assertValueType$1('string'), Object.assign(function(node, key, val) {
13023
- const invalid = /[^gimsuy]/.exec(val);
12941
+ const invalid = /[^dgimsuvy]/.exec(val);
13024
12942
 
13025
12943
  if (invalid) {
13026
12944
  throw new TypeError(`"${invalid[0]}" is not a valid RegExp flag`);
@@ -13070,7 +12988,7 @@ defineType$4$1('MemberExpression', {
13070
12988
  validate: assertNodeType$1('Expression', 'Super'),
13071
12989
  },
13072
12990
  property: {
13073
- validate: function() {
12991
+ validate: (function() {
13074
12992
  const normal = assertNodeType$1('Identifier', 'PrivateName');
13075
12993
  const computed = assertNodeType$1('Expression');
13076
12994
  const validator = function(node, key, val) {
@@ -13084,7 +13002,7 @@ defineType$4$1('MemberExpression', {
13084
13002
  'PrivateName',
13085
13003
  ];
13086
13004
  return validator;
13087
- }(),
13005
+ })(),
13088
13006
  },
13089
13007
  computed: {
13090
13008
  default: false,
@@ -13157,7 +13075,7 @@ defineType$4$1('ObjectMethod', {
13157
13075
  default: false,
13158
13076
  },
13159
13077
  key: {
13160
- validate: function() {
13078
+ validate: (function() {
13161
13079
  const normal = assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral');
13162
13080
  const computed = assertNodeType$1('Expression');
13163
13081
  const validator = function(node, key, val) {
@@ -13173,7 +13091,7 @@ defineType$4$1('ObjectMethod', {
13173
13091
  'BigIntLiteral',
13174
13092
  ];
13175
13093
  return validator;
13176
- }(),
13094
+ })(),
13177
13095
  },
13178
13096
  decorators: {
13179
13097
  validate: arrayOfType$1('Decorator'),
@@ -13206,7 +13124,7 @@ defineType$4$1('ObjectProperty', {
13206
13124
  default: false,
13207
13125
  },
13208
13126
  key: {
13209
- validate: function() {
13127
+ validate: (function() {
13210
13128
  const normal = assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'PrivateName');
13211
13129
  const computed = assertNodeType$1('Expression');
13212
13130
  const validator = Object.assign(function(node, key, val) {
@@ -13224,7 +13142,7 @@ defineType$4$1('ObjectProperty', {
13224
13142
  });
13225
13143
 
13226
13144
  return validator;
13227
- }(),
13145
+ })(),
13228
13146
  },
13229
13147
  value: {
13230
13148
  validate: assertNodeType$1('Expression', 'PatternLike'),
@@ -13261,7 +13179,7 @@ defineType$4$1('ObjectProperty', {
13261
13179
  'Property',
13262
13180
  'ObjectMember',
13263
13181
  ],
13264
- validate: function() {
13182
+ validate: (function() {
13265
13183
  const pattern = assertNodeType$1('Identifier', 'Pattern', 'TSAsExpression', 'TSSatisfiesExpression', 'TSNonNullExpression', 'TSTypeAssertion');
13266
13184
  const expression2 = assertNodeType$1('Expression');
13267
13185
 
@@ -13269,7 +13187,7 @@ defineType$4$1('ObjectProperty', {
13269
13187
  const validator = is$5('ObjectPattern', parent) ? pattern : expression2;
13270
13188
  validator(node, 'value', node.value);
13271
13189
  };
13272
- }(),
13190
+ })(),
13273
13191
  });
13274
13192
  defineType$4$1('RestElement', {
13275
13193
  visitor: ['argument', 'typeAnnotation'],
@@ -13708,7 +13626,7 @@ defineType$4$1('ClassDeclaration', {
13708
13626
  optional: true,
13709
13627
  },
13710
13628
  },
13711
- validate: function() {
13629
+ validate: (function() {
13712
13630
  const identifier4 = assertNodeType$1('Identifier');
13713
13631
 
13714
13632
  return function(parent, key, node) {
@@ -13716,7 +13634,7 @@ defineType$4$1('ClassDeclaration', {
13716
13634
  identifier4(node, 'id', node.id);
13717
13635
  }
13718
13636
  };
13719
- }(),
13637
+ })(),
13720
13638
  });
13721
13639
  var importAttributes$1 = {
13722
13640
  attributes: {
@@ -13799,7 +13717,7 @@ defineType$4$1('ExportNamedDeclaration', {
13799
13717
  }, importAttributes$1, {
13800
13718
  specifiers: {
13801
13719
  default: [],
13802
- validate: arrayOf$1(function() {
13720
+ validate: arrayOf$1((function() {
13803
13721
  const sourced = assertNodeType$1('ExportSpecifier', 'ExportDefaultSpecifier', 'ExportNamespaceSpecifier');
13804
13722
  const sourceless = assertNodeType$1('ExportSpecifier');
13805
13723
 
@@ -13813,7 +13731,7 @@ defineType$4$1('ExportNamedDeclaration', {
13813
13731
  'ExportNamespaceSpecifier',
13814
13732
  ],
13815
13733
  });
13816
- }()),
13734
+ })()),
13817
13735
  },
13818
13736
  source: {
13819
13737
  validate: assertNodeType$1('StringLiteral'),
@@ -13860,7 +13778,7 @@ defineType$4$1('ForOfStatement', {
13860
13778
  ],
13861
13779
  fields: {
13862
13780
  left: {
13863
- validate: function() {
13781
+ validate: (function() {
13864
13782
  const declaration = assertNodeType$1('VariableDeclaration');
13865
13783
  const lval = assertNodeType$1('Identifier', 'MemberExpression', 'ArrayPattern', 'ObjectPattern', 'TSAsExpression', 'TSSatisfiesExpression', 'TSTypeAssertion', 'TSNonNullExpression');
13866
13784
 
@@ -13883,7 +13801,7 @@ defineType$4$1('ForOfStatement', {
13883
13801
  'TSNonNullExpression',
13884
13802
  ],
13885
13803
  });
13886
- }(),
13804
+ })(),
13887
13805
  },
13888
13806
  right: {
13889
13807
  validate: assertNodeType$1('Expression'),
@@ -14036,7 +13954,7 @@ var classMethodOrPropertyCommon$1 = () => ({
14036
13954
  optional: true,
14037
13955
  },
14038
13956
  key: {
14039
- validate: chain$5(function() {
13957
+ validate: chain$5((function() {
14040
13958
  const normal = assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral');
14041
13959
  const computed = assertNodeType$1('Expression');
14042
13960
 
@@ -14044,7 +13962,7 @@ var classMethodOrPropertyCommon$1 = () => ({
14044
13962
  const validator = node.computed ? computed : normal;
14045
13963
  validator(node, key, val);
14046
13964
  };
14047
- }(), assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'Expression')),
13965
+ })(), assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'Expression')),
14048
13966
  },
14049
13967
  });
14050
13968
 
@@ -14270,13 +14188,13 @@ defineType$4$1('OptionalMemberExpression', {
14270
14188
  'optional',
14271
14189
  ],
14272
14190
  visitor: ['object', 'property'],
14273
- aliases: ['Expression', 'LVal'],
14191
+ aliases: ['Expression'],
14274
14192
  fields: {
14275
14193
  object: {
14276
14194
  validate: assertNodeType$1('Expression'),
14277
14195
  },
14278
14196
  property: {
14279
- validate: function() {
14197
+ validate: (function() {
14280
14198
  const normal = assertNodeType$1('Identifier');
14281
14199
  const computed = assertNodeType$1('Expression');
14282
14200
  const validator = Object.assign(function(node, key, val) {
@@ -14287,7 +14205,7 @@ defineType$4$1('OptionalMemberExpression', {
14287
14205
  });
14288
14206
 
14289
14207
  return validator;
14290
- }(),
14208
+ })(),
14291
14209
  },
14292
14210
  computed: {
14293
14211
  default: false,
@@ -14389,7 +14307,7 @@ defineType$4$1('ClassAccessorProperty', {
14389
14307
  aliases: ['Property', 'Accessor'],
14390
14308
  fields: Object.assign({}, classMethodOrPropertyCommon$1(), {
14391
14309
  key: {
14392
- validate: chain$5(function() {
14310
+ validate: chain$5((function() {
14393
14311
  const normal = assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'PrivateName');
14394
14312
  const computed = assertNodeType$1('Expression');
14395
14313
 
@@ -14397,7 +14315,7 @@ defineType$4$1('ClassAccessorProperty', {
14397
14315
  const validator = node.computed ? computed : normal;
14398
14316
  validator(node, key, val);
14399
14317
  };
14400
- }(), assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'Expression', 'PrivateName')),
14318
+ })(), assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'Expression', 'PrivateName')),
14401
14319
  },
14402
14320
  value: {
14403
14321
  validate: assertNodeType$1('Expression'),
@@ -15803,6 +15721,7 @@ defineType$6('TSTypeOperator', {
15803
15721
  fields: {
15804
15722
  operator: {
15805
15723
  validate: assertOneOf$1('keyof', 'readonly', 'unique'),
15724
+ default: void 0,
15806
15725
  },
15807
15726
  typeAnnotation: validateType$1('TSType'),
15808
15727
  },
@@ -15859,7 +15778,7 @@ defineType$6('TSLiteralType', {
15859
15778
  visitor: ['literal'],
15860
15779
  fields: {
15861
15780
  literal: {
15862
- validate: function() {
15781
+ validate: (function() {
15863
15782
  const unaryExpression3 = assertNodeType$1('NumericLiteral', 'BigIntLiteral');
15864
15783
  const unaryOperator = assertOneOf$1('-');
15865
15784
  const literal = assertNodeType$1('NumericLiteral', 'StringLiteral', 'BooleanLiteral', 'BigIntLiteral', 'TemplateLiteral');
@@ -15882,7 +15801,7 @@ defineType$6('TSLiteralType', {
15882
15801
  'UnaryExpression',
15883
15802
  ];
15884
15803
  return validator;
15885
- }(),
15804
+ })(),
15886
15805
  },
15887
15806
  },
15888
15807
  });
@@ -22166,8 +22085,7 @@ function getNameFromLiteralId$1(id) {
22166
22085
  }
22167
22086
 
22168
22087
  if (isTemplateLiteral$5(id)) {
22169
- return id
22170
- .quasis
22088
+ return id.quasis
22171
22089
  .map((quasi) => quasi.value.raw)
22172
22090
  .join('');
22173
22091
  }
@@ -23366,7 +23284,6 @@ var estree$1 = (superClass) => class ESTreeParserMixin extends superClass {
23366
23284
  this.castNodeTo(node, 'ImportExpression');
23367
23285
  node.source = node.arguments[0];
23368
23286
  node.options = node.arguments[1] ?? null;
23369
- node.attributes = node.arguments[1] ?? null;
23370
23287
  delete node.arguments;
23371
23288
  delete node.callee;
23372
23289
  } else if (node.type === 'OptionalCallExpression') {
@@ -25577,7 +25494,8 @@ var flow$1 = (superClass) => class FlowParserMixin extends superClass {
25577
25494
  if (this.flowPragma === void 0) {
25578
25495
  const matches = FLOW_PRAGMA_REGEX$1.exec(comment.value);
25579
25496
 
25580
- if (!matches); else if (matches[1] === 'flow') {
25497
+ if (!matches);
25498
+ else if (matches[1] === 'flow') {
25581
25499
  this.flowPragma = 'flow';
25582
25500
  } else if (matches[1] === 'noflow') {
25583
25501
  this.flowPragma = 'noflow';
@@ -33157,6 +33075,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
33157
33075
  node.properties = [
33158
33076
  this.finishObjectProperty(withProperty),
33159
33077
  ];
33078
+ this.eat(12);
33160
33079
  this.expect(8);
33161
33080
  return this.finishNode(node, 'ObjectExpression');
33162
33081
  }
@@ -34868,6 +34787,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
34868
34787
  const asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startLoc);
34869
34788
 
34870
34789
  if (asyncArrowFn) {
34790
+ state.stop = true;
34871
34791
  return asyncArrowFn;
34872
34792
  }
34873
34793
  }
@@ -36218,6 +36138,11 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
36218
36138
  node.extends ?? (node.extends = []);
36219
36139
  return;
36220
36140
 
36141
+ case 'TSMappedType':
36142
+ node.optional ?? (node.optional = false);
36143
+ node.readonly ?? (node.readonly = void 0);
36144
+ return;
36145
+
36221
36146
  case 'TSModuleDeclaration':
36222
36147
  node.declare ?? (node.declare = false);
36223
36148
  node.global ?? (node.global = node.kind === 'global');
@@ -42105,8 +42030,7 @@ function populatePlaceholders$1(metadata, replacements) {
42105
42030
  });
42106
42031
  }
42107
42032
 
42108
- metadata
42109
- .placeholders
42033
+ metadata.placeholders
42110
42034
  .slice()
42111
42035
  .reverse()
42112
42036
  .forEach((placeholder2) => {
@@ -42378,8 +42302,7 @@ function extendedTrace$1(fn) {
42378
42302
  throw new Error();
42379
42303
  } catch(error) {
42380
42304
  if (error.stack) {
42381
- rootStack = error
42382
- .stack
42305
+ rootStack = error.stack
42383
42306
  .split('\n')
42384
42307
  .slice(3)
42385
42308
  .join('\n');
@@ -44995,10 +44918,6 @@ function NewExpression2$1(node, parent) {
44995
44918
 
44996
44919
  this.print(node.typeArguments);
44997
44920
 
44998
- if (node.optional) {
44999
- this.token('?.');
45000
- }
45001
-
45002
44921
  if (node.arguments.length === 0 && this.tokenMap && !this.tokenMap.endMatches(node, ')')) {
45003
44922
  return;
45004
44923
  }
@@ -49582,7 +49501,7 @@ function normalizeOptions$1(code2, opts, ast) {
49582
49501
  }
49583
49502
 
49584
49503
  if (!Array.isArray(ast.tokens)) {
49585
- throw new Error('`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.');
49504
+ throw new Error('`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.');
49586
49505
  }
49587
49506
  }
49588
49507
 
@@ -49656,6 +49575,78 @@ function generate$7(ast, opts = {}, code2) {
49656
49575
 
49657
49576
  // node_modules/@babel/traverse/lib/index.js
49658
49577
  var import_debug$1 = __toESM$1(require_src$1());
49578
+
49579
+ // node_modules/@babel/helper-globals/data/builtin-lower.json
49580
+ var builtin_lower_default = [
49581
+ 'decodeURI',
49582
+ 'decodeURIComponent',
49583
+ 'encodeURI',
49584
+ 'encodeURIComponent',
49585
+ 'escape',
49586
+ 'eval',
49587
+ 'globalThis',
49588
+ 'isFinite',
49589
+ 'isNaN',
49590
+ 'parseFloat',
49591
+ 'parseInt',
49592
+ 'undefined',
49593
+ 'unescape',
49594
+ ];
49595
+
49596
+ // node_modules/@babel/helper-globals/data/builtin-upper.json
49597
+ var builtin_upper_default = [
49598
+ 'AggregateError',
49599
+ 'Array',
49600
+ 'ArrayBuffer',
49601
+ 'Atomics',
49602
+ 'BigInt',
49603
+ 'BigInt64Array',
49604
+ 'BigUint64Array',
49605
+ 'Boolean',
49606
+ 'DataView',
49607
+ 'Date',
49608
+ 'Error',
49609
+ 'EvalError',
49610
+ 'FinalizationRegistry',
49611
+ 'Float16Array',
49612
+ 'Float32Array',
49613
+ 'Float64Array',
49614
+ 'Function',
49615
+ 'Infinity',
49616
+ 'Int16Array',
49617
+ 'Int32Array',
49618
+ 'Int8Array',
49619
+ 'Intl',
49620
+ 'Iterator',
49621
+ 'JSON',
49622
+ 'Map',
49623
+ 'Math',
49624
+ 'NaN',
49625
+ 'Number',
49626
+ 'Object',
49627
+ 'Promise',
49628
+ 'Proxy',
49629
+ 'RangeError',
49630
+ 'ReferenceError',
49631
+ 'Reflect',
49632
+ 'RegExp',
49633
+ 'Set',
49634
+ 'SharedArrayBuffer',
49635
+ 'String',
49636
+ 'Symbol',
49637
+ 'SyntaxError',
49638
+ 'TypeError',
49639
+ 'Uint16Array',
49640
+ 'Uint32Array',
49641
+ 'Uint8Array',
49642
+ 'Uint8ClampedArray',
49643
+ 'URIError',
49644
+ 'WeakMap',
49645
+ 'WeakRef',
49646
+ 'WeakSet',
49647
+ ];
49648
+
49649
+ // node_modules/@babel/traverse/lib/index.js
49659
49650
  var ReferencedIdentifier$1 = [
49660
49651
  'Identifier',
49661
49652
  'JSXIdentifier',
@@ -50013,7 +50004,7 @@ function verify$1$1(visitor) {
50013
50004
  continue;
50014
50005
 
50015
50006
  if (!TYPES2$1.includes(nodeType)) {
50016
- 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-beta.1'}`);
50007
+ 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-beta.2'}`);
50017
50008
  }
50018
50009
 
50019
50010
  const visitors2 = visitor[nodeType];
@@ -50466,9 +50457,6 @@ var cache$1 = /* @__PURE__ */Object.freeze({
50466
50457
  },
50467
50458
  });
50468
50459
 
50469
- var globalsBuiltinLower = require$$4;
50470
- var globalsBuiltinUpper = require$$5;
50471
-
50472
50460
  var {
50473
50461
  assignmentExpression: assignmentExpression$3$1,
50474
50462
  callExpression: callExpression$3$1,
@@ -50757,8 +50745,7 @@ var collectorVisitor$1 = {
50757
50745
  },
50758
50746
  },
50759
50747
  LabeledStatement(path) {
50760
- path
50761
- .scope
50748
+ path.scope
50762
50749
  .getBlockParent()
50763
50750
  .registerDeclaration(path);
50764
50751
  },
@@ -51511,7 +51498,8 @@ collectorVisitor$1]));
51511
51498
  const binding = scope2.getOwnBinding(name);
51512
51499
 
51513
51500
  if (binding) {
51514
- if (previousPath?.isPattern() && binding.kind !== 'param' && binding.kind !== 'local'); else {
51501
+ if (previousPath?.isPattern() && binding.kind !== 'param' && binding.kind !== 'local');
51502
+ else {
51515
51503
  return binding;
51516
51504
  }
51517
51505
  } else if (!binding && name === 'arguments' && scope2.path.isFunction() && !scope2.path.isArrowFunctionExpression()) {
@@ -51663,7 +51651,7 @@ collectorVisitor$1]));
51663
51651
  }
51664
51652
  };
51665
51653
 
51666
- __publicField$1(_Scope$1, 'globals', [...globalsBuiltinLower, ...globalsBuiltinUpper]);
51654
+ __publicField$1(_Scope$1, 'globals', [...builtin_lower_default, ...builtin_upper_default]);
51667
51655
  __publicField$1(_Scope$1, 'contextVariables', [
51668
51656
  'arguments',
51669
51657
  'undefined',
@@ -51877,6 +51865,7 @@ function infererReference$1(node) {
51877
51865
  } else if (node.name === 'NaN' || node.name === 'Infinity') {
51878
51866
  return numberTypeAnnotation$1$1();
51879
51867
  } else if (node.name === 'arguments');
51868
+
51880
51869
  }
51881
51870
 
51882
51871
  function getTypeAnnotationBindingConstantViolations$1(binding, path, name) {
@@ -52258,6 +52247,7 @@ function resolveCall$1(callee) {
52258
52247
  return callee.node.returnType;
52259
52248
  } else
52260
52249
  ;
52250
+
52261
52251
  }
52262
52252
  }
52263
52253
  }
@@ -52609,8 +52599,9 @@ function insertBefore$1(nodes_) {
52609
52599
  } else if (this.isStatementOrBlock()) {
52610
52600
  const node = this.node;
52611
52601
  const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null);
52612
- this.replaceWith(blockStatement$2$1(shouldInsertCurrentNode ? [node] : []));
52613
- return this.unshiftContainer('body', nodes2);
52602
+ const [blockPath] = this.replaceWith(blockStatement$2$1(shouldInsertCurrentNode ? [node] : []));
52603
+
52604
+ return blockPath.unshiftContainer('body', nodes2);
52614
52605
  } else {
52615
52606
  throw new Error('We don\'t know what to do with this node type. We were previously a Statement but we can\'t fit in here?');
52616
52607
  }
@@ -52728,8 +52719,9 @@ function insertAfter$2(nodes_) {
52728
52719
  } else if (this.isStatementOrBlock()) {
52729
52720
  const node = this.node;
52730
52721
  const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null);
52731
- this.replaceWith(blockStatement$2$1(shouldInsertCurrentNode ? [node] : []));
52732
- return this.pushContainer('body', nodes2);
52722
+ const [blockPath] = this.replaceWith(blockStatement$2$1(shouldInsertCurrentNode ? [node] : []));
52723
+
52724
+ return blockPath.pushContainer('body', nodes2);
52733
52725
  } else {
52734
52726
  throw new Error('We don\'t know what to do with this node type. We were previously a Statement but we can\'t fit in here?');
52735
52727
  }
@@ -52788,16 +52780,18 @@ function _verifyNodeList$1(nodes2) {
52788
52780
 
52789
52781
  function unshiftContainer$1(listKey, nodes2) {
52790
52782
  _assertUnremoved$1.call(this);
52791
- nodes2 = _verifyNodeList$1.call(this, nodes2);
52783
+ const verifiedNodes = _verifyNodeList$1.call(this, nodes2);
52784
+ const container = this.node[listKey];
52785
+
52792
52786
  const path = NodePath_Final$1.get({
52793
52787
  parentPath: this,
52794
52788
  parent: this.node,
52795
- container: this.node[listKey],
52789
+ container,
52796
52790
  listKey,
52797
52791
  key: 0,
52798
52792
  }).setContext(this.context);
52799
52793
 
52800
- return _containerInsertBefore$1.call(path, nodes2);
52794
+ return _containerInsertBefore$1.call(path, verifiedNodes);
52801
52795
  }
52802
52796
 
52803
52797
  function pushContainer$1(listKey, nodes2) {
@@ -52849,9 +52843,9 @@ var {
52849
52843
 
52850
52844
  function replaceWithMultiple$4(nodes2) {
52851
52845
  resync$1.call(this);
52852
- nodes2 = _verifyNodeList$1.call(this, nodes2);
52853
- inheritLeadingComments2$1(nodes2[0], this.node);
52854
- inheritTrailingComments2$1(nodes2[nodes2.length - 1], this.node);
52846
+ const verifiedNodes = _verifyNodeList$1.call(this, nodes2);
52847
+ inheritLeadingComments2$1(verifiedNodes[0], this.node);
52848
+ inheritTrailingComments2$1(verifiedNodes[verifiedNodes.length - 1], this.node);
52855
52849
  getCachedPaths$1(this)?.delete(this.node);
52856
52850
  this.node =
52857
52851
  this.container[this.key] = null;
@@ -57191,7 +57185,7 @@ comment.parseComments = parseComments$7;
57191
57185
 
57192
57186
  const {parseComments: parseComments$6} = comment;
57193
57187
 
57194
- const noop$4 = () => {};
57188
+ const noop$5 = () => {};
57195
57189
  const parseParams = (path) => path.get('params');
57196
57190
 
57197
57191
  params.printParams = (path, printer, semantics, customization = {}) => {
@@ -57207,8 +57201,8 @@ params.printParams = (path, printer, semantics, customization = {}) => {
57207
57201
  braceOpen = '(',
57208
57202
  braceClose = ')',
57209
57203
  printSpace = print.space,
57210
- printAfterOpen = noop$4,
57211
- printBeforeClose = noop$4,
57204
+ printAfterOpen = noop$5,
57205
+ printBeforeClose = noop$5,
57212
57206
  } = customization;
57213
57207
 
57214
57208
  if (typeParameters)
@@ -60689,10 +60683,10 @@ maybeWriteBrace.condition = (path, printer, semantics) => {
60689
60683
  var sequenceExpressionComments = {};
60690
60684
 
60691
60685
  const {hasLeadingComment} = is$4;
60692
- const noop$3 = () => {};
60686
+ const noop$4 = () => {};
60693
60687
 
60694
- sequenceExpressionComments.printLeadingCommentLine = noop$3;
60695
- sequenceExpressionComments.printLeadingCommentBlock = noop$3;
60688
+ sequenceExpressionComments.printLeadingCommentLine = noop$4;
60689
+ sequenceExpressionComments.printLeadingCommentBlock = noop$4;
60696
60690
 
60697
60691
  sequenceExpressionComments.maybePrintComments = (path, {print}) => {
60698
60692
  if (hasLeadingComment(path)) {
@@ -66988,7 +66982,7 @@ var require_supports_color = __commonJS({
66988
66982
  // node_modules/debug/src/node.js
66989
66983
  var require_node = __commonJS({
66990
66984
  "node_modules/debug/src/node.js"(exports2, module2) {
66991
- var tty = require$$1$2;
66985
+ var tty = require$$1$3;
66992
66986
  var util = require$$2$1;
66993
66987
  exports2.init = init;
66994
66988
  exports2.log = log;
@@ -117036,12 +117030,21 @@ espree$2.parse = function espreeParse(source) {
117036
117030
  });
117037
117031
  };
117038
117032
 
117039
- var esprima$1 = {};
117033
+ var esprima$2 = {};
117034
+
117035
+ const noop$3 = () => {};
117036
+
117037
+ var esprima$1 = /*#__PURE__*/Object.freeze({
117038
+ __proto__: null,
117039
+ default: noop$3
117040
+ });
117041
+
117042
+ var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(esprima$1);
117040
117043
 
117041
117044
  const once$4 = onceExports;
117042
- const initEsprima = once$4(() => require$$1$3);
117045
+ const initEsprima = once$4(() => require$$1$2);
117043
117046
 
117044
- esprima$1.parse = function esprimaParse(source) {
117047
+ esprima$2.parse = function esprimaParse(source) {
117045
117048
  const {parse} = initEsprima();
117046
117049
 
117047
117050
  return parse(source, {
@@ -125674,10 +125677,10 @@ var tenko_prod = /*#__PURE__*/Object.freeze({
125674
125677
  toktypeToString: toktypeToString
125675
125678
  });
125676
125679
 
125677
- var require$$1 = /*@__PURE__*/getAugmentedNamespace(tenko_prod);
125680
+ var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(tenko_prod);
125678
125681
 
125679
125682
  const once$3 = onceExports;
125680
- const initTenko = once$3(() => require$$1);
125683
+ const initTenko = once$3(() => require$$1$1);
125681
125684
 
125682
125685
  tenko$1.parse = (source) => {
125683
125686
  const {Tenko} = initTenko();
@@ -135267,7 +135270,7 @@ function checkError(error, messages) {
135267
135270
  const acorn = acorn$3;
135268
135271
  const babel = babel$1;
135269
135272
  const espree = espree$2;
135270
- const esprima = esprima$1;
135273
+ const esprima = esprima$2;
135271
135274
  const tenko = tenko$1;
135272
135275
  const hermes = hermes$1;
135273
135276
  const secondChance = secondChance$1;
@@ -136278,6 +136281,15 @@ var loadPlugins$2 = {};
136278
136281
 
136279
136282
  var load = {};
136280
136283
 
136284
+ var _polyfillNode_module = {};
136285
+
136286
+ var _polyfillNode_module$1 = /*#__PURE__*/Object.freeze({
136287
+ __proto__: null,
136288
+ default: _polyfillNode_module
136289
+ });
136290
+
136291
+ var require$$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_module$1);
136292
+
136281
136293
  var hasRequiredLoad;
136282
136294
 
136283
136295
  function requireLoad () {
@@ -136285,7 +136297,7 @@ function requireLoad () {
136285
136297
  hasRequiredLoad = 1;
136286
136298
 
136287
136299
  const process = require$$0$3;
136288
- const {createRequire} = require$$1$1;
136300
+ const {createRequire} = require$$1;
136289
136301
  const {join} = require$$0$1;
136290
136302
  const tryCatch = tryCatch$7;
136291
136303
  const once = onceExports;