create-cloudflare 2.72.1 → 2.72.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -4466,7 +4466,7 @@ var require_webidl = __commonJS({
4466
4466
  "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/webidl/index.js"(exports2, module2) {
4467
4467
  "use strict";
4468
4468
  var assert8 = require("node:assert");
4469
- var { types: types11, inspect: inspect2 } = require("node:util");
4469
+ var { types: types12, inspect: inspect2 } = require("node:util");
4470
4470
  var { runtimeFeatures } = require_runtime_features();
4471
4471
  var UNDEFINED = 1;
4472
4472
  var BOOLEAN = 2;
@@ -4668,10 +4668,10 @@ var require_webidl = __commonJS({
4668
4668
  }
4669
4669
  };
4670
4670
  webidl.util.IsResizableArrayBuffer = function(V2) {
4671
- if (types11.isArrayBuffer(V2)) {
4671
+ if (types12.isArrayBuffer(V2)) {
4672
4672
  return V2.resizable;
4673
4673
  }
4674
- if (types11.isSharedArrayBuffer(V2)) {
4674
+ if (types12.isSharedArrayBuffer(V2)) {
4675
4675
  return V2.growable;
4676
4676
  }
4677
4677
  throw webidl.errors.exception({
@@ -4718,7 +4718,7 @@ var require_webidl = __commonJS({
4718
4718
  });
4719
4719
  }
4720
4720
  const result = {};
4721
- if (!types11.isProxy(O)) {
4721
+ if (!types12.isProxy(O)) {
4722
4722
  const keys2 = [...Object.getOwnPropertyNames(O), ...Object.getOwnPropertySymbols(O)];
4723
4723
  for (const key of keys2) {
4724
4724
  const keyName = webidl.util.Stringify(key);
@@ -4809,19 +4809,19 @@ var require_webidl = __commonJS({
4809
4809
  webidl.is.AbortSignal = webidl.util.MakeTypeAssertion(AbortSignal);
4810
4810
  webidl.is.MessagePort = webidl.util.MakeTypeAssertion(MessagePort);
4811
4811
  webidl.is.BufferSource = function(V2) {
4812
- return types11.isArrayBuffer(V2) || ArrayBuffer.isView(V2) && types11.isArrayBuffer(V2.buffer);
4812
+ return types12.isArrayBuffer(V2) || ArrayBuffer.isView(V2) && types12.isArrayBuffer(V2.buffer);
4813
4813
  };
4814
4814
  webidl.util.getCopyOfBytesHeldByBufferSource = function(bufferSource) {
4815
4815
  const jsBufferSource = bufferSource;
4816
4816
  let jsArrayBuffer = jsBufferSource;
4817
4817
  let offset = 0;
4818
4818
  let length = 0;
4819
- if (types11.isTypedArray(jsBufferSource) || types11.isDataView(jsBufferSource)) {
4819
+ if (types12.isTypedArray(jsBufferSource) || types12.isDataView(jsBufferSource)) {
4820
4820
  jsArrayBuffer = jsBufferSource.buffer;
4821
4821
  offset = jsBufferSource.byteOffset;
4822
4822
  length = jsBufferSource.byteLength;
4823
4823
  } else {
4824
- assert8(types11.isAnyArrayBuffer(jsBufferSource));
4824
+ assert8(types12.isAnyArrayBuffer(jsBufferSource));
4825
4825
  length = jsBufferSource.byteLength;
4826
4826
  }
4827
4827
  if (jsArrayBuffer.detached) {
@@ -4891,7 +4891,7 @@ var require_webidl = __commonJS({
4891
4891
  return x;
4892
4892
  };
4893
4893
  webidl.converters.ArrayBuffer = function(V2, prefix, argument, flags) {
4894
- if (webidl.util.Type(V2) !== OBJECT || !types11.isArrayBuffer(V2)) {
4894
+ if (webidl.util.Type(V2) !== OBJECT || !types12.isArrayBuffer(V2)) {
4895
4895
  throw webidl.errors.conversionFailed({
4896
4896
  prefix,
4897
4897
  argument: `${argument} ("${webidl.util.Stringify(V2)}")`,
@@ -4907,7 +4907,7 @@ var require_webidl = __commonJS({
4907
4907
  return V2;
4908
4908
  };
4909
4909
  webidl.converters.SharedArrayBuffer = function(V2, prefix, argument, flags) {
4910
- if (webidl.util.Type(V2) !== OBJECT || !types11.isSharedArrayBuffer(V2)) {
4910
+ if (webidl.util.Type(V2) !== OBJECT || !types12.isSharedArrayBuffer(V2)) {
4911
4911
  throw webidl.errors.conversionFailed({
4912
4912
  prefix,
4913
4913
  argument: `${argument} ("${webidl.util.Stringify(V2)}")`,
@@ -4923,14 +4923,14 @@ var require_webidl = __commonJS({
4923
4923
  return V2;
4924
4924
  };
4925
4925
  webidl.converters.TypedArray = function(V2, T, prefix, argument, flags) {
4926
- if (webidl.util.Type(V2) !== OBJECT || !types11.isTypedArray(V2) || V2.constructor.name !== T.name) {
4926
+ if (webidl.util.Type(V2) !== OBJECT || !types12.isTypedArray(V2) || V2.constructor.name !== T.name) {
4927
4927
  throw webidl.errors.conversionFailed({
4928
4928
  prefix,
4929
4929
  argument: `${argument} ("${webidl.util.Stringify(V2)}")`,
4930
4930
  types: [T.name]
4931
4931
  });
4932
4932
  }
4933
- if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types11.isSharedArrayBuffer(V2.buffer)) {
4933
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types12.isSharedArrayBuffer(V2.buffer)) {
4934
4934
  throw webidl.errors.exception({
4935
4935
  header: prefix,
4936
4936
  message: `${argument} cannot be a view on a shared array buffer.`
@@ -4945,14 +4945,14 @@ var require_webidl = __commonJS({
4945
4945
  return V2;
4946
4946
  };
4947
4947
  webidl.converters.DataView = function(V2, prefix, argument, flags) {
4948
- if (webidl.util.Type(V2) !== OBJECT || !types11.isDataView(V2)) {
4948
+ if (webidl.util.Type(V2) !== OBJECT || !types12.isDataView(V2)) {
4949
4949
  throw webidl.errors.conversionFailed({
4950
4950
  prefix,
4951
4951
  argument: `${argument} ("${webidl.util.Stringify(V2)}")`,
4952
4952
  types: ["DataView"]
4953
4953
  });
4954
4954
  }
4955
- if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types11.isSharedArrayBuffer(V2.buffer)) {
4955
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types12.isSharedArrayBuffer(V2.buffer)) {
4956
4956
  throw webidl.errors.exception({
4957
4957
  header: prefix,
4958
4958
  message: `${argument} cannot be a view on a shared array buffer.`
@@ -4967,14 +4967,14 @@ var require_webidl = __commonJS({
4967
4967
  return V2;
4968
4968
  };
4969
4969
  webidl.converters.ArrayBufferView = function(V2, prefix, argument, flags) {
4970
- if (webidl.util.Type(V2) !== OBJECT || !types11.isArrayBufferView(V2)) {
4970
+ if (webidl.util.Type(V2) !== OBJECT || !types12.isArrayBufferView(V2)) {
4971
4971
  throw webidl.errors.conversionFailed({
4972
4972
  prefix,
4973
4973
  argument: `${argument} ("${webidl.util.Stringify(V2)}")`,
4974
4974
  types: ["ArrayBufferView"]
4975
4975
  });
4976
4976
  }
4977
- if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types11.isSharedArrayBuffer(V2.buffer)) {
4977
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types12.isSharedArrayBuffer(V2.buffer)) {
4978
4978
  throw webidl.errors.exception({
4979
4979
  header: prefix,
4980
4980
  message: `${argument} cannot be a view on a shared array buffer.`
@@ -4989,14 +4989,14 @@ var require_webidl = __commonJS({
4989
4989
  return V2;
4990
4990
  };
4991
4991
  webidl.converters.BufferSource = function(V2, prefix, argument, flags) {
4992
- if (types11.isArrayBuffer(V2)) {
4992
+ if (types12.isArrayBuffer(V2)) {
4993
4993
  return webidl.converters.ArrayBuffer(V2, prefix, argument, flags);
4994
4994
  }
4995
- if (types11.isArrayBufferView(V2)) {
4995
+ if (types12.isArrayBufferView(V2)) {
4996
4996
  flags &= ~webidl.attributes.AllowShared;
4997
4997
  return webidl.converters.ArrayBufferView(V2, prefix, argument, flags);
4998
4998
  }
4999
- if (types11.isSharedArrayBuffer(V2)) {
4999
+ if (types12.isSharedArrayBuffer(V2)) {
5000
5000
  throw webidl.errors.exception({
5001
5001
  header: prefix,
5002
5002
  message: `${argument} cannot be a SharedArrayBuffer.`
@@ -5009,13 +5009,13 @@ var require_webidl = __commonJS({
5009
5009
  });
5010
5010
  };
5011
5011
  webidl.converters.AllowSharedBufferSource = function(V2, prefix, argument, flags) {
5012
- if (types11.isArrayBuffer(V2)) {
5012
+ if (types12.isArrayBuffer(V2)) {
5013
5013
  return webidl.converters.ArrayBuffer(V2, prefix, argument, flags);
5014
5014
  }
5015
- if (types11.isSharedArrayBuffer(V2)) {
5015
+ if (types12.isSharedArrayBuffer(V2)) {
5016
5016
  return webidl.converters.SharedArrayBuffer(V2, prefix, argument, flags);
5017
5017
  }
5018
- if (types11.isArrayBufferView(V2)) {
5018
+ if (types12.isArrayBufferView(V2)) {
5019
5019
  flags |= webidl.attributes.AllowShared;
5020
5020
  return webidl.converters.ArrayBufferView(V2, prefix, argument, flags);
5021
5021
  }
@@ -25798,7 +25798,7 @@ function detectPlatformBinary({ [platform]: platformBinary }, { wsl } = {}) {
25798
25798
  }
25799
25799
  return detectArchBinary(platformBinary);
25800
25800
  }
25801
- var import_node_process2, import_node_path3, import_node_url, import_node_child_process, import_promises, import_node_util, import_node_os3, import_node_fs3, import_node_buffer, import_meta, isDockerCached, cachedResult, hasContainerEnv, isWsl, is_wsl_default, execFile, powerShellPath, executePowerShell, execFile2, wslDrivesMountPoint, powerShellPathFromWsl, powerShellPath2, canAccessPowerShellPromise, canAccessPowerShell, wslDefaultBrowser, convertWslPathToWindows, execFileAsync, execFileAsync2, execFileAsync3, windowsBrowserProgIds, _windowsBrowserProgIdMap, UnknownBrowserError, execFileAsync4, titleize, isInSsh, is_in_ssh_default, fallbackAttemptSymbol, __dirname2, localXdgOpenPath, platform, arch, tryEachApp, baseOpen, open, openApp, apps, open_default;
25801
+ var import_node_process2, import_node_path3, import_node_url, import_node_child_process, import_promises, import_node_util, import_node_os3, import_node_fs3, import_node_buffer, import_meta, isDockerCached, cachedResult, hasContainerEnv, isWsl, is_wsl_default, execFile, powerShellPath, executePowerShell, execFile2, wslDrivesMountPoint, powerShellPathFromWsl, powerShellPath2, canAccessPowerShellPromise, canAccessPowerShell, wslDefaultBrowser, convertWslPathToWindows, execFileAsync, execFileAsync2, execFileAsync3, windowsBrowserProgIds, _windowsBrowserProgIdMap, UnknownBrowserError, execFileAsync4, titleize, isInSsh, is_in_ssh_default, fallbackAttemptSymbol, __dirname$1, localXdgOpenPath, platform, arch, tryEachApp, baseOpen, open, openApp, apps, open_default;
25802
25802
  var init_open_PBXRGS4R = __esm({
25803
25803
  "../workers-utils/dist/open-PBXRGS4R.mjs"() {
25804
25804
  "use strict";
@@ -25973,8 +25973,8 @@ var init_open_PBXRGS4R = __esm({
25973
25973
  isInSsh = Boolean(import_node_process2.default.env.SSH_CONNECTION || import_node_process2.default.env.SSH_CLIENT || import_node_process2.default.env.SSH_TTY);
25974
25974
  is_in_ssh_default = isInSsh;
25975
25975
  fallbackAttemptSymbol = /* @__PURE__ */ Symbol("fallbackAttempt");
25976
- __dirname2 = import_meta.url ? import_node_path3.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url)) : "";
25977
- localXdgOpenPath = import_node_path3.default.join(__dirname2, "xdg-open");
25976
+ __dirname$1 = import_meta.url ? import_node_path3.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url)) : "";
25977
+ localXdgOpenPath = import_node_path3.default.join(__dirname$1, "xdg-open");
25978
25978
  ({ platform, arch } = import_node_process2.default);
25979
25979
  tryEachApp = /* @__PURE__ */ __name(async (apps22, opener) => {
25980
25980
  if (apps22.length === 0) {
@@ -26119,7 +26119,7 @@ var init_open_PBXRGS4R = __esm({
26119
26119
  if (app) {
26120
26120
  command2 = app;
26121
26121
  } else {
26122
- const isBundled = !__dirname2 || __dirname2 === "/";
26122
+ const isBundled = !__dirname$1 || __dirname$1 === "/";
26123
26123
  let exeLocalXdgOpen = false;
26124
26124
  try {
26125
26125
  await import_promises.default.access(localXdgOpenPath, import_promises.constants.X_OK);
@@ -30895,7 +30895,7 @@ var require_index_688c5d50 = __commonJS({
30895
30895
  }
30896
30896
  }
30897
30897
  };
30898
- var types11 = createCommonjsModule(function(module3, exports3) {
30898
+ var types12 = createCommonjsModule(function(module3, exports3) {
30899
30899
  exports3.name = /* @__PURE__ */ new Map([
30900
30900
  ["0", "File"],
30901
30901
  // same as File
@@ -31149,14 +31149,14 @@ var require_index_688c5d50 = __commonJS({
31149
31149
  }
31150
31150
  }
31151
31151
  get type() {
31152
- return types11.name.get(this[TYPE]) || this[TYPE];
31152
+ return types12.name.get(this[TYPE]) || this[TYPE];
31153
31153
  }
31154
31154
  get typeKey() {
31155
31155
  return this[TYPE];
31156
31156
  }
31157
31157
  set type(type) {
31158
- if (types11.code.has(type))
31159
- this[TYPE] = types11.code.get(type);
31158
+ if (types12.code.has(type))
31159
+ this[TYPE] = types12.code.get(type);
31160
31160
  else
31161
31161
  this[TYPE] = type;
31162
31162
  }
@@ -34270,7 +34270,7 @@ var require_index_688c5d50 = __commonJS({
34270
34270
  exports3.WriteEntry = writeEntry;
34271
34271
  exports3.Header = header;
34272
34272
  exports3.Pax = pax;
34273
- exports3.types = types11;
34273
+ exports3.types = types12;
34274
34274
  });
34275
34275
  var colorName = {
34276
34276
  "aliceblue": [240, 248, 255],
@@ -49493,9 +49493,9 @@ var require_shared = __commonJS({
49493
49493
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
49494
49494
  var types_1 = tslib_1.__importDefault(require_types());
49495
49495
  function default_1(fork) {
49496
- var types11 = fork.use(types_1.default);
49497
- var Type = types11.Type;
49498
- var builtin = types11.builtInTypes;
49496
+ var types12 = fork.use(types_1.default);
49497
+ var Type = types12.Type;
49498
+ var builtin = types12.builtInTypes;
49499
49499
  var isNumber = builtin.number;
49500
49500
  function geq(than) {
49501
49501
  return Type.from(function(value) {
@@ -49662,9 +49662,9 @@ var require_types = __commonJS({
49662
49662
  /** @class */
49663
49663
  (function(_super) {
49664
49664
  tslib_1.__extends(OrType2, _super);
49665
- function OrType2(types11) {
49665
+ function OrType2(types12) {
49666
49666
  var _this = _super.call(this) || this;
49667
- _this.types = types11;
49667
+ _this.types = types12;
49668
49668
  _this.kind = "OrType";
49669
49669
  return _this;
49670
49670
  }
@@ -49815,11 +49815,11 @@ var require_types = __commonJS({
49815
49815
  function typesPlugin(_fork) {
49816
49816
  var Type = {
49817
49817
  or: function() {
49818
- var types11 = [];
49818
+ var types12 = [];
49819
49819
  for (var _i = 0; _i < arguments.length; _i++) {
49820
- types11[_i] = arguments[_i];
49820
+ types12[_i] = arguments[_i];
49821
49821
  }
49822
- return new OrType(types11.map(function(type) {
49822
+ return new OrType(types12.map(function(type) {
49823
49823
  return Type.from(type);
49824
49824
  }));
49825
49825
  },
@@ -50273,9 +50273,9 @@ var require_path = __commonJS({
50273
50273
  var Op = Object.prototype;
50274
50274
  var hasOwn = Op.hasOwnProperty;
50275
50275
  function pathPlugin(fork) {
50276
- var types11 = fork.use(types_1.default);
50277
- var isArray = types11.builtInTypes.array;
50278
- var isNumber = types11.builtInTypes.number;
50276
+ var types12 = fork.use(types_1.default);
50277
+ var isArray = types12.builtInTypes.array;
50278
+ var isNumber = types12.builtInTypes.number;
50279
50279
  var Path = function Path2(value, parentPath, name3) {
50280
50280
  if (!(this instanceof Path2)) {
50281
50281
  throw new Error("Path constructor cannot be invoked without 'new'");
@@ -50578,13 +50578,13 @@ var require_scope = __commonJS({
50578
50578
  var types_1 = tslib_1.__importDefault(require_types());
50579
50579
  var hasOwn = Object.prototype.hasOwnProperty;
50580
50580
  function scopePlugin(fork) {
50581
- var types11 = fork.use(types_1.default);
50582
- var Type = types11.Type;
50583
- var namedTypes = types11.namedTypes;
50581
+ var types12 = fork.use(types_1.default);
50582
+ var Type = types12.Type;
50583
+ var namedTypes = types12.namedTypes;
50584
50584
  var Node = namedTypes.Node;
50585
50585
  var Expression = namedTypes.Expression;
50586
- var isArray = types11.builtInTypes.array;
50587
- var b2 = types11.builders;
50586
+ var isArray = types12.builtInTypes.array;
50587
+ var b2 = types12.builders;
50588
50588
  var Scope = function Scope2(path7, parentScope) {
50589
50589
  if (!(this instanceof Scope2)) {
50590
50590
  throw new Error("Scope constructor cannot be invoked without 'new'");
@@ -50652,7 +50652,7 @@ var require_scope = __commonJS({
50652
50652
  ++index;
50653
50653
  }
50654
50654
  var name3 = prefix + index;
50655
- return this.bindings[name3] = types11.builders.identifier(name3);
50655
+ return this.bindings[name3] = types12.builders.identifier(name3);
50656
50656
  };
50657
50657
  Sp.injectTemporary = function(identifier, init2) {
50658
50658
  identifier || (identifier = this.declareTemporary());
@@ -50732,7 +50732,7 @@ var require_scope = __commonJS({
50732
50732
  bindings
50733
50733
  );
50734
50734
  } else if (Node.check(node) && !Expression.check(node)) {
50735
- types11.eachField(node, function(name3, child) {
50735
+ types12.eachField(node, function(name3, child) {
50736
50736
  var childPath = path7.get(name3);
50737
50737
  if (!pathHasValue(childPath, child)) {
50738
50738
  throw new Error("");
@@ -50811,24 +50811,24 @@ var require_scope = __commonJS({
50811
50811
  addPattern(patternPath.get("argument"), bindings);
50812
50812
  }
50813
50813
  }
50814
- function addTypePattern(patternPath, types12) {
50814
+ function addTypePattern(patternPath, types13) {
50815
50815
  var pattern = patternPath.value;
50816
50816
  namedTypes.Pattern.assert(pattern);
50817
50817
  if (namedTypes.Identifier.check(pattern)) {
50818
- if (hasOwn.call(types12, pattern.name)) {
50819
- types12[pattern.name].push(patternPath);
50818
+ if (hasOwn.call(types13, pattern.name)) {
50819
+ types13[pattern.name].push(patternPath);
50820
50820
  } else {
50821
- types12[pattern.name] = [patternPath];
50821
+ types13[pattern.name] = [patternPath];
50822
50822
  }
50823
50823
  }
50824
50824
  }
50825
- function addTypeParameter(parameterPath, types12) {
50825
+ function addTypeParameter(parameterPath, types13) {
50826
50826
  var parameter = parameterPath.value;
50827
50827
  FlowOrTSTypeParameterType.assert(parameter);
50828
- if (hasOwn.call(types12, parameter.name)) {
50829
- types12[parameter.name].push(parameterPath);
50828
+ if (hasOwn.call(types13, parameter.name)) {
50829
+ types13[parameter.name].push(parameterPath);
50830
50830
  } else {
50831
- types12[parameter.name] = [parameterPath];
50831
+ types13[parameter.name] = [parameterPath];
50832
50832
  }
50833
50833
  }
50834
50834
  Sp.lookup = function(name3) {
@@ -50869,11 +50869,11 @@ var require_node_path = __commonJS({
50869
50869
  var scope_1 = tslib_1.__importDefault(require_scope());
50870
50870
  var shared_1 = require_shared();
50871
50871
  function nodePathPlugin(fork) {
50872
- var types11 = fork.use(types_1.default);
50873
- var n = types11.namedTypes;
50874
- var b2 = types11.builders;
50875
- var isNumber = types11.builtInTypes.number;
50876
- var isArray = types11.builtInTypes.array;
50872
+ var types12 = fork.use(types_1.default);
50873
+ var n = types12.namedTypes;
50874
+ var b2 = types12.builders;
50875
+ var isNumber = types12.builtInTypes.number;
50876
+ var isArray = types12.builtInTypes.array;
50877
50877
  var Path = fork.use(path_1.default);
50878
50878
  var Scope = fork.use(scope_1.default);
50879
50879
  var NodePath = function NodePath2(value, parentPath, name3) {
@@ -50964,7 +50964,7 @@ var require_node_path = __commonJS({
50964
50964
  return scope || null;
50965
50965
  };
50966
50966
  NPp.getValueProperty = function(name3) {
50967
- return types11.getFieldValue(this.value, name3);
50967
+ return types12.getFieldValue(this.value, name3);
50968
50968
  };
50969
50969
  NPp.needsParens = function(assumeExpressionContext) {
50970
50970
  var pp = this.parentPath;
@@ -51106,7 +51106,7 @@ var require_node_path = __commonJS({
51106
51106
  return node.some(containsCallExpression);
51107
51107
  }
51108
51108
  if (n.Node.check(node)) {
51109
- return types11.someField(node, function(_name, child) {
51109
+ return types12.someField(node, function(_name, child) {
51110
51110
  return containsCallExpression(child);
51111
51111
  });
51112
51112
  }
@@ -51227,11 +51227,11 @@ var require_path_visitor = __commonJS({
51227
51227
  var shared_1 = require_shared();
51228
51228
  var hasOwn = Object.prototype.hasOwnProperty;
51229
51229
  function pathVisitorPlugin(fork) {
51230
- var types11 = fork.use(types_1.default);
51230
+ var types12 = fork.use(types_1.default);
51231
51231
  var NodePath = fork.use(node_path_1.default);
51232
- var isArray = types11.builtInTypes.array;
51233
- var isObject2 = types11.builtInTypes.object;
51234
- var isFunction2 = types11.builtInTypes.function;
51232
+ var isArray = types12.builtInTypes.array;
51233
+ var isObject2 = types12.builtInTypes.object;
51234
+ var isFunction2 = types12.builtInTypes.function;
51235
51235
  var undefined2;
51236
51236
  var PathVisitor = function PathVisitor2() {
51237
51237
  if (!(this instanceof PathVisitor2)) {
@@ -51251,7 +51251,7 @@ var require_path_visitor = __commonJS({
51251
51251
  typeNames[methodName.slice("visit".length)] = true;
51252
51252
  }
51253
51253
  }
51254
- var supertypeTable = types11.computeSupertypeLookupTable(typeNames);
51254
+ var supertypeTable = types12.computeSupertypeLookupTable(typeNames);
51255
51255
  var methodNameTable = /* @__PURE__ */ Object.create(null);
51256
51256
  var typeNameKeys = Object.keys(supertypeTable);
51257
51257
  var typeNameCount = typeNameKeys.length;
@@ -51370,7 +51370,7 @@ var require_path_visitor = __commonJS({
51370
51370
  path7.each(visitor.visitWithoutReset, visitor);
51371
51371
  } else if (!isObject2.check(value)) {
51372
51372
  } else {
51373
- var childNames = types11.getFieldNames(value);
51373
+ var childNames = types12.getFieldNames(value);
51374
51374
  if (visitor._shouldVisitComments && value.comments && childNames.indexOf("comments") < 0) {
51375
51375
  childNames.push("comments");
51376
51376
  }
@@ -51379,7 +51379,7 @@ var require_path_visitor = __commonJS({
51379
51379
  for (var i = 0; i < childCount; ++i) {
51380
51380
  var childName = childNames[i];
51381
51381
  if (!hasOwn.call(value, childName)) {
51382
- value[childName] = types11.getFieldValue(value, childName);
51382
+ value[childName] = types12.getFieldValue(value, childName);
51383
51383
  }
51384
51384
  childPaths.push(path7.get(childName));
51385
51385
  }
@@ -51522,13 +51522,13 @@ var require_equiv = __commonJS({
51522
51522
  var shared_1 = require_shared();
51523
51523
  var types_1 = tslib_1.__importDefault(require_types());
51524
51524
  function default_1(fork) {
51525
- var types11 = fork.use(types_1.default);
51526
- var getFieldNames = types11.getFieldNames;
51527
- var getFieldValue = types11.getFieldValue;
51528
- var isArray = types11.builtInTypes.array;
51529
- var isObject2 = types11.builtInTypes.object;
51530
- var isDate = types11.builtInTypes.Date;
51531
- var isRegExp = types11.builtInTypes.RegExp;
51525
+ var types12 = fork.use(types_1.default);
51526
+ var getFieldNames = types12.getFieldNames;
51527
+ var getFieldValue = types12.getFieldValue;
51528
+ var isArray = types12.builtInTypes.array;
51529
+ var isObject2 = types12.builtInTypes.object;
51530
+ var isDate = types12.builtInTypes.Date;
51531
+ var isRegExp = types12.builtInTypes.RegExp;
51532
51532
  var hasOwn = Object.prototype.hasOwnProperty;
51533
51533
  function astNodesAreEquivalent(a, b2, problemPath) {
51534
51534
  if (isArray.check(problemPath)) {
@@ -51681,24 +51681,24 @@ var require_fork = __commonJS({
51681
51681
  var shared_1 = require_shared();
51682
51682
  function default_1(plugins) {
51683
51683
  var fork = createFork();
51684
- var types11 = fork.use(types_1.default);
51684
+ var types12 = fork.use(types_1.default);
51685
51685
  plugins.forEach(fork.use);
51686
- types11.finalize();
51686
+ types12.finalize();
51687
51687
  var PathVisitor = fork.use(path_visitor_1.default);
51688
51688
  return {
51689
- Type: types11.Type,
51690
- builtInTypes: types11.builtInTypes,
51691
- namedTypes: types11.namedTypes,
51692
- builders: types11.builders,
51693
- defineMethod: types11.defineMethod,
51694
- getFieldNames: types11.getFieldNames,
51695
- getFieldValue: types11.getFieldValue,
51696
- eachField: types11.eachField,
51697
- someField: types11.someField,
51698
- getSupertypeNames: types11.getSupertypeNames,
51699
- getBuilderName: types11.getBuilderName,
51689
+ Type: types12.Type,
51690
+ builtInTypes: types12.builtInTypes,
51691
+ namedTypes: types12.namedTypes,
51692
+ builders: types12.builders,
51693
+ defineMethod: types12.defineMethod,
51694
+ getFieldNames: types12.getFieldNames,
51695
+ getFieldValue: types12.getFieldValue,
51696
+ eachField: types12.eachField,
51697
+ someField: types12.someField,
51698
+ getSupertypeNames: types12.getSupertypeNames,
51699
+ getBuilderName: types12.getBuilderName,
51700
51700
  astNodesAreEquivalent: fork.use(equiv_1.default),
51701
- finalize: types11.finalize,
51701
+ finalize: types12.finalize,
51702
51702
  Path: fork.use(path_1.default),
51703
51703
  NodePath: fork.use(node_path_1.default),
51704
51704
  PathVisitor,
@@ -51868,8 +51868,8 @@ var require_core2 = __commonJS({
51868
51868
  var types_1 = tslib_1.__importDefault(require_types());
51869
51869
  var shared_1 = tslib_1.__importStar(require_shared());
51870
51870
  function default_1(fork) {
51871
- var types11 = fork.use(types_1.default);
51872
- var Type = types11.Type;
51871
+ var types12 = fork.use(types_1.default);
51872
+ var Type = types12.Type;
51873
51873
  var def = Type.def;
51874
51874
  var or = Type.or;
51875
51875
  var shared = fork.use(shared_1.default);
@@ -51961,9 +51961,9 @@ var require_es6 = __commonJS({
51961
51961
  var shared_1 = tslib_1.__importStar(require_shared());
51962
51962
  function default_1(fork) {
51963
51963
  fork.use(core_1.default);
51964
- var types11 = fork.use(types_1.default);
51965
- var def = types11.Type.def;
51966
- var or = types11.Type.or;
51964
+ var types12 = fork.use(types_1.default);
51965
+ var def = types12.Type.def;
51966
+ var or = types12.Type.or;
51967
51967
  var defaults = fork.use(shared_1.default).defaults;
51968
51968
  def("Function").field("generator", Boolean, defaults["false"]).field("expression", Boolean, defaults["false"]).field("defaults", [or(def("Expression"), null)], defaults.emptyArray).field("rest", or(def("Identifier"), null), defaults["null"]);
51969
51969
  def("RestElement").bases("Pattern").build("argument").field("argument", def("Pattern")).field(
@@ -52054,8 +52054,8 @@ var require_es2017 = __commonJS({
52054
52054
  var shared_1 = tslib_1.__importStar(require_shared());
52055
52055
  function default_1(fork) {
52056
52056
  fork.use(es2016_1.default);
52057
- var types11 = fork.use(types_1.default);
52058
- var def = types11.Type.def;
52057
+ var types12 = fork.use(types_1.default);
52058
+ var def = types12.Type.def;
52059
52059
  var defaults = fork.use(shared_1.default).defaults;
52060
52060
  def("Function").field("async", Boolean, defaults["false"]);
52061
52061
  def("AwaitExpression").bases("Expression").build("argument").field("argument", def("Expression"));
@@ -52078,9 +52078,9 @@ var require_es2018 = __commonJS({
52078
52078
  var shared_1 = tslib_1.__importStar(require_shared());
52079
52079
  function default_1(fork) {
52080
52080
  fork.use(es2017_1.default);
52081
- var types11 = fork.use(types_1.default);
52082
- var def = types11.Type.def;
52083
- var or = types11.Type.or;
52081
+ var types12 = fork.use(types_1.default);
52082
+ var def = types12.Type.def;
52083
+ var or = types12.Type.or;
52084
52084
  var defaults = fork.use(shared_1.default).defaults;
52085
52085
  def("ForOfStatement").field("await", Boolean, defaults["false"]);
52086
52086
  def("SpreadProperty").bases("Node").build("argument").field("argument", def("Expression"));
@@ -52112,9 +52112,9 @@ var require_es2019 = __commonJS({
52112
52112
  var shared_1 = tslib_1.__importStar(require_shared());
52113
52113
  function default_1(fork) {
52114
52114
  fork.use(es2018_1.default);
52115
- var types11 = fork.use(types_1.default);
52116
- var def = types11.Type.def;
52117
- var or = types11.Type.or;
52115
+ var types12 = fork.use(types_1.default);
52116
+ var def = types12.Type.def;
52117
+ var or = types12.Type.or;
52118
52118
  var defaults = fork.use(shared_1.default).defaults;
52119
52119
  def("CatchClause").field("param", or(def("Pattern"), null), defaults["null"]);
52120
52120
  }
@@ -52138,9 +52138,9 @@ var require_es20202 = __commonJS({
52138
52138
  function default_1(fork) {
52139
52139
  fork.use(es2020_1.default);
52140
52140
  fork.use(es2019_1.default);
52141
- var types11 = fork.use(types_1.default);
52142
- var def = types11.Type.def;
52143
- var or = types11.Type.or;
52141
+ var types12 = fork.use(types_1.default);
52142
+ var def = types12.Type.def;
52143
+ var or = types12.Type.or;
52144
52144
  var shared = fork.use(shared_1.default);
52145
52145
  var defaults = shared.defaults;
52146
52146
  def("ImportExpression").bases("Expression").build("source").field("source", def("Expression"));
@@ -52190,8 +52190,8 @@ var require_es2022 = __commonJS({
52190
52190
  var shared_1 = require_shared();
52191
52191
  function default_1(fork) {
52192
52192
  fork.use(es2021_1.default);
52193
- var types11 = fork.use(types_1.default);
52194
- var def = types11.Type.def;
52193
+ var types12 = fork.use(types_1.default);
52194
+ var def = types12.Type.def;
52195
52195
  def("StaticBlock").bases("Declaration").build("body").field("body", [def("Statement")]);
52196
52196
  }
52197
52197
  exports2.default = default_1;
@@ -52212,9 +52212,9 @@ var require_es_proposals = __commonJS({
52212
52212
  var es2022_1 = tslib_1.__importDefault(require_es2022());
52213
52213
  function default_1(fork) {
52214
52214
  fork.use(es2022_1.default);
52215
- var types11 = fork.use(types_1.default);
52216
- var Type = types11.Type;
52217
- var def = types11.Type.def;
52215
+ var types12 = fork.use(types_1.default);
52216
+ var Type = types12.Type;
52217
+ var def = types12.Type.def;
52218
52218
  var or = Type.or;
52219
52219
  var shared = fork.use(shared_1.default);
52220
52220
  var defaults = shared.defaults;
@@ -52254,9 +52254,9 @@ var require_jsx = __commonJS({
52254
52254
  var shared_1 = tslib_1.__importStar(require_shared());
52255
52255
  function default_1(fork) {
52256
52256
  fork.use(es_proposals_1.default);
52257
- var types11 = fork.use(types_1.default);
52258
- var def = types11.Type.def;
52259
- var or = types11.Type.or;
52257
+ var types12 = fork.use(types_1.default);
52258
+ var def = types12.Type.def;
52259
+ var or = types12.Type.or;
52260
52260
  var defaults = fork.use(shared_1.default).defaults;
52261
52261
  def("JSXAttribute").bases("Node").build("name", "value").field("name", or(def("JSXIdentifier"), def("JSXNamespacedName"))).field("value", or(
52262
52262
  def("Literal"),
@@ -52320,9 +52320,9 @@ var require_type_annotations = __commonJS({
52320
52320
  var types_1 = tslib_1.__importDefault(require_types());
52321
52321
  var shared_1 = tslib_1.__importStar(require_shared());
52322
52322
  function default_1(fork) {
52323
- var types11 = fork.use(types_1.default);
52324
- var def = types11.Type.def;
52325
- var or = types11.Type.or;
52323
+ var types12 = fork.use(types_1.default);
52324
+ var def = types12.Type.def;
52325
+ var or = types12.Type.or;
52326
52326
  var defaults = fork.use(shared_1.default).defaults;
52327
52327
  var TypeAnnotation = or(def("TypeAnnotation"), def("TSTypeAnnotation"), null);
52328
52328
  var TypeParamDecl = or(def("TypeParameterDeclaration"), def("TSTypeParameterDeclaration"), null);
@@ -52357,9 +52357,9 @@ var require_flow = __commonJS({
52357
52357
  function default_1(fork) {
52358
52358
  fork.use(es_proposals_1.default);
52359
52359
  fork.use(type_annotations_1.default);
52360
- var types11 = fork.use(types_1.default);
52361
- var def = types11.Type.def;
52362
- var or = types11.Type.or;
52360
+ var types12 = fork.use(types_1.default);
52361
+ var def = types12.Type.def;
52362
+ var or = types12.Type.or;
52363
52363
  var defaults = fork.use(shared_1.default).defaults;
52364
52364
  def("Flow").bases("Node");
52365
52365
  def("FlowType").bases("Flow");
@@ -52476,10 +52476,10 @@ var require_esprima2 = __commonJS({
52476
52476
  var shared_1 = tslib_1.__importStar(require_shared());
52477
52477
  function default_1(fork) {
52478
52478
  fork.use(es_proposals_1.default);
52479
- var types11 = fork.use(types_1.default);
52479
+ var types12 = fork.use(types_1.default);
52480
52480
  var defaults = fork.use(shared_1.default).defaults;
52481
- var def = types11.Type.def;
52482
- var or = types11.Type.or;
52481
+ var def = types12.Type.def;
52482
+ var or = types12.Type.or;
52483
52483
  def("VariableDeclaration").field("declarations", [or(
52484
52484
  def("VariableDeclarator"),
52485
52485
  def("Identifier")
@@ -52538,11 +52538,11 @@ var require_babel_core = __commonJS({
52538
52538
  function default_1(fork) {
52539
52539
  var _a4, _b2, _c2, _d, _e;
52540
52540
  fork.use(es_proposals_1.default);
52541
- var types11 = fork.use(types_1.default);
52541
+ var types12 = fork.use(types_1.default);
52542
52542
  var defaults = fork.use(shared_1.default).defaults;
52543
- var def = types11.Type.def;
52544
- var or = types11.Type.or;
52545
- var isUndefined = types11.builtInTypes.undefined;
52543
+ var def = types12.Type.def;
52544
+ var or = types12.Type.or;
52545
+ var isUndefined = types12.builtInTypes.undefined;
52546
52546
  def("Noop").bases("Statement").build();
52547
52547
  def("DoExpression").bases("Expression").build("body").field("body", [def("Statement")]);
52548
52548
  def("BindExpression").bases("Expression").build("object", "callee").field("object", or(def("Expression"), null)).field("callee", def("Expression"));
@@ -52577,7 +52577,7 @@ var require_babel_core = __commonJS({
52577
52577
  raw: String
52578
52578
  },
52579
52579
  function getDefault() {
52580
- var value = types11.getFieldValue(this, "value");
52580
+ var value = types12.getFieldValue(this, "value");
52581
52581
  return {
52582
52582
  rawValue: value,
52583
52583
  raw: toRaw ? toRaw(value) : String(value)
@@ -52686,8 +52686,8 @@ var require_babel = __commonJS({
52686
52686
  var flow_1 = tslib_1.__importDefault(require_flow());
52687
52687
  var shared_1 = require_shared();
52688
52688
  function default_1(fork) {
52689
- var types11 = fork.use(types_1.default);
52690
- var def = types11.Type.def;
52689
+ var types12 = fork.use(types_1.default);
52690
+ var def = types12.Type.def;
52691
52691
  fork.use(babel_core_1.default);
52692
52692
  fork.use(flow_1.default);
52693
52693
  def("V8IntrinsicIdentifier").bases("Expression").build("name").field("name", String);
@@ -52713,12 +52713,12 @@ var require_typescript = __commonJS({
52713
52713
  function default_1(fork) {
52714
52714
  fork.use(babel_core_1.default);
52715
52715
  fork.use(type_annotations_1.default);
52716
- var types11 = fork.use(types_1.default);
52717
- var n = types11.namedTypes;
52718
- var def = types11.Type.def;
52719
- var or = types11.Type.or;
52716
+ var types12 = fork.use(types_1.default);
52717
+ var n = types12.namedTypes;
52718
+ var def = types12.Type.def;
52719
+ var or = types12.Type.or;
52720
52720
  var defaults = fork.use(shared_1.default).defaults;
52721
- var StringLiteral = types11.Type.from(function(value, deep) {
52721
+ var StringLiteral = types12.Type.from(function(value, deep) {
52722
52722
  if (n.StringLiteral && n.StringLiteral.check(value, deep)) {
52723
52723
  return true;
52724
52724
  }
@@ -54724,8 +54724,8 @@ var require_util9 = __commonJS({
54724
54724
  exports2.isTrailingCommaEnabled = exports2.getParentExportDeclaration = exports2.isExportDeclaration = exports2.fixFaultyLocations = exports2.getTrueLoc = exports2.composeSourceMaps = exports2.copyPos = exports2.comparePos = exports2.getUnionOfKeys = exports2.getOption = exports2.isBrowser = exports2.getLineTerminator = void 0;
54725
54725
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
54726
54726
  var tiny_invariant_1 = tslib_1.__importDefault(require_tiny_invariant_cjs());
54727
- var types11 = tslib_1.__importStar(require_main());
54728
- var n = types11.namedTypes;
54727
+ var types12 = tslib_1.__importStar(require_main());
54728
+ var n = types12.namedTypes;
54729
54729
  var source_map_1 = tslib_1.__importDefault(require_source_map());
54730
54730
  var SourceMapConsumer = source_map_1.default.SourceMapConsumer;
54731
54731
  var SourceMapGenerator = source_map_1.default.SourceMapGenerator;
@@ -55906,10 +55906,10 @@ var require_comments = __commonJS({
55906
55906
  exports2.printComments = exports2.attach = void 0;
55907
55907
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
55908
55908
  var tiny_invariant_1 = tslib_1.__importDefault(require_tiny_invariant_cjs());
55909
- var types11 = tslib_1.__importStar(require_main());
55910
- var n = types11.namedTypes;
55911
- var isArray = types11.builtInTypes.array;
55912
- var isObject2 = types11.builtInTypes.object;
55909
+ var types12 = tslib_1.__importStar(require_main());
55910
+ var n = types12.namedTypes;
55911
+ var isArray = types12.builtInTypes.array;
55912
+ var isObject2 = types12.builtInTypes.object;
55913
55913
  var lines_1 = require_lines();
55914
55914
  var util_1 = require_util9();
55915
55915
  var childNodesCache = /* @__PURE__ */ new WeakMap();
@@ -55940,7 +55940,7 @@ var require_comments = __commonJS({
55940
55940
  if (isArray.check(node)) {
55941
55941
  names = Object.keys(node);
55942
55942
  } else if (isObject2.check(node)) {
55943
- names = types11.getFieldNames(node);
55943
+ names = types12.getFieldNames(node);
55944
55944
  } else {
55945
55945
  return resultArray;
55946
55946
  }
@@ -56085,12 +56085,12 @@ var require_comments = __commonJS({
56085
56085
  comment.trailing = true;
56086
56086
  addCommentHelper(node, comment);
56087
56087
  }
56088
- function printLeadingComment(commentPath, print3) {
56088
+ function printLeadingComment(commentPath, print4) {
56089
56089
  var comment = commentPath.getValue();
56090
56090
  n.Comment.assert(comment);
56091
56091
  var loc = comment.loc;
56092
56092
  var lines = loc && loc.lines;
56093
- var parts = [print3(commentPath)];
56093
+ var parts = [print4(commentPath)];
56094
56094
  if (comment.trailing) {
56095
56095
  parts.push("\n");
56096
56096
  } else if (lines instanceof lines_1.Lines) {
@@ -56105,7 +56105,7 @@ var require_comments = __commonJS({
56105
56105
  }
56106
56106
  return (0, lines_1.concat)(parts);
56107
56107
  }
56108
- function printTrailingComment(commentPath, print3) {
56108
+ function printTrailingComment(commentPath, print4) {
56109
56109
  var comment = commentPath.getValue(commentPath);
56110
56110
  n.Comment.assert(comment);
56111
56111
  var loc = comment.loc;
@@ -56120,13 +56120,13 @@ var require_comments = __commonJS({
56120
56120
  parts.push(new Array(leadingSpace.length).join("\n"));
56121
56121
  }
56122
56122
  }
56123
- parts.push(print3(commentPath));
56123
+ parts.push(print4(commentPath));
56124
56124
  return (0, lines_1.concat)(parts);
56125
56125
  }
56126
- function printComments(path7, print3) {
56126
+ function printComments(path7, print4) {
56127
56127
  var value = path7.getValue();
56128
- var innerLines = print3(path7);
56129
- var comments = n.Node.check(value) && types11.getFieldValue(value, "comments");
56128
+ var innerLines = print4(path7);
56129
+ var comments = n.Node.check(value) && types12.getFieldValue(value, "comments");
56130
56130
  if (!comments || comments.length === 0) {
56131
56131
  return innerLines;
56132
56132
  }
@@ -56134,12 +56134,12 @@ var require_comments = __commonJS({
56134
56134
  var trailingParts = [innerLines];
56135
56135
  path7.each(function(commentPath) {
56136
56136
  var comment = commentPath.getValue();
56137
- var leading = types11.getFieldValue(comment, "leading");
56138
- var trailing = types11.getFieldValue(comment, "trailing");
56137
+ var leading = types12.getFieldValue(comment, "leading");
56138
+ var trailing = types12.getFieldValue(comment, "trailing");
56139
56139
  if (leading || trailing && !(n.Statement.check(value) || comment.type === "Block" || comment.type === "CommentBlock")) {
56140
- leadingParts.push(printLeadingComment(commentPath, print3));
56140
+ leadingParts.push(printLeadingComment(commentPath, print4));
56141
56141
  } else if (trailing) {
56142
- trailingParts.push(printTrailingComment(commentPath, print3));
56142
+ trailingParts.push(printTrailingComment(commentPath, print4));
56143
56143
  }
56144
56144
  }, "comments");
56145
56145
  leadingParts.push.apply(leadingParts, trailingParts);
@@ -56157,10 +56157,10 @@ var require_parser = __commonJS({
56157
56157
  exports2.parse = void 0;
56158
56158
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
56159
56159
  var tiny_invariant_1 = tslib_1.__importDefault(require_tiny_invariant_cjs());
56160
- var types11 = tslib_1.__importStar(require_main());
56161
- var b2 = types11.builders;
56162
- var isObject2 = types11.builtInTypes.object;
56163
- var isArray = types11.builtInTypes.array;
56160
+ var types12 = tslib_1.__importStar(require_main());
56161
+ var b2 = types12.builders;
56162
+ var isObject2 = types12.builtInTypes.object;
56163
+ var isArray = types12.builtInTypes.array;
56164
56164
  var options_1 = require_options();
56165
56165
  var lines_1 = require_lines();
56166
56166
  var comments_1 = require_comments();
@@ -56347,11 +56347,11 @@ var require_fast_path = __commonJS({
56347
56347
  Object.defineProperty(exports2, "__esModule", { value: true });
56348
56348
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
56349
56349
  var tiny_invariant_1 = tslib_1.__importDefault(require_tiny_invariant_cjs());
56350
- var types11 = tslib_1.__importStar(require_main());
56350
+ var types12 = tslib_1.__importStar(require_main());
56351
56351
  var util2 = tslib_1.__importStar(require_util9());
56352
- var n = types11.namedTypes;
56353
- var isArray = types11.builtInTypes.array;
56354
- var isNumber = types11.builtInTypes.number;
56352
+ var n = types12.namedTypes;
56353
+ var isArray = types12.builtInTypes.array;
56354
+ var isNumber = types12.builtInTypes.number;
56355
56355
  var PRECEDENCE = {};
56356
56356
  [
56357
56357
  ["??"],
@@ -56380,7 +56380,7 @@ var require_fast_path = __commonJS({
56380
56380
  if (obj instanceof FastPath) {
56381
56381
  return obj.copy();
56382
56382
  }
56383
- if (obj instanceof types11.NodePath) {
56383
+ if (obj instanceof types12.NodePath) {
56384
56384
  var copy = Object.create(FastPath.prototype);
56385
56385
  var stack = [obj.value];
56386
56386
  for (var pp = void 0; pp = obj.parentPath; obj = pp)
@@ -56695,7 +56695,7 @@ var require_fast_path = __commonJS({
56695
56695
  return node.some(containsCallExpression);
56696
56696
  }
56697
56697
  if (n.Node.check(node)) {
56698
- return types11.someField(node, function(_name, child) {
56698
+ return types12.someField(node, function(_name, child) {
56699
56699
  return containsCallExpression(child);
56700
56700
  });
56701
56701
  }
@@ -56785,16 +56785,16 @@ var require_patcher = __commonJS({
56785
56785
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
56786
56786
  var tiny_invariant_1 = tslib_1.__importDefault(require_tiny_invariant_cjs());
56787
56787
  var linesModule = tslib_1.__importStar(require_lines());
56788
- var types11 = tslib_1.__importStar(require_main());
56789
- var Printable = types11.namedTypes.Printable;
56790
- var Expression = types11.namedTypes.Expression;
56791
- var ReturnStatement = types11.namedTypes.ReturnStatement;
56792
- var SourceLocation = types11.namedTypes.SourceLocation;
56788
+ var types12 = tslib_1.__importStar(require_main());
56789
+ var Printable = types12.namedTypes.Printable;
56790
+ var Expression = types12.namedTypes.Expression;
56791
+ var ReturnStatement = types12.namedTypes.ReturnStatement;
56792
+ var SourceLocation = types12.namedTypes.SourceLocation;
56793
56793
  var util_1 = require_util9();
56794
56794
  var fast_path_1 = tslib_1.__importDefault(require_fast_path());
56795
- var isObject2 = types11.builtInTypes.object;
56796
- var isArray = types11.builtInTypes.array;
56797
- var isString2 = types11.builtInTypes.string;
56795
+ var isObject2 = types12.builtInTypes.object;
56796
+ var isArray = types12.builtInTypes.array;
56797
+ var isString2 = types12.builtInTypes.string;
56798
56798
  var riskyAdjoiningCharExp = /[0-9a-z_$]/i;
56799
56799
  var Patcher = function Patcher2(lines) {
56800
56800
  (0, tiny_invariant_1.default)(this instanceof Patcher2);
@@ -56835,7 +56835,7 @@ var require_patcher = __commonJS({
56835
56835
  };
56836
56836
  exports2.Patcher = Patcher;
56837
56837
  var Pp = Patcher.prototype;
56838
- Pp.tryToReprintComments = function(newNode, oldNode, print3) {
56838
+ Pp.tryToReprintComments = function(newNode, oldNode, print4) {
56839
56839
  var patcher = this;
56840
56840
  if (!newNode.comments && !oldNode.comments) {
56841
56841
  return true;
@@ -56854,7 +56854,7 @@ var require_patcher = __commonJS({
56854
56854
  oldComment.loc,
56855
56855
  // Comments can't have .comments, so it doesn't matter whether we
56856
56856
  // print with comments or without.
56857
- print3(reprint.newPath).indentTail(oldComment.loc.indent)
56857
+ print4(reprint.newPath).indentTail(oldComment.loc.indent)
56858
56858
  );
56859
56859
  });
56860
56860
  }
@@ -56901,17 +56901,17 @@ var require_patcher = __commonJS({
56901
56901
  var reprints = [];
56902
56902
  if (!lines || !findReprints(path7, reprints))
56903
56903
  return;
56904
- return function(print3) {
56904
+ return function(print4) {
56905
56905
  var patcher = new Patcher(lines);
56906
56906
  reprints.forEach(function(reprint) {
56907
56907
  var newNode = reprint.newPath.getValue();
56908
56908
  var oldNode = reprint.oldPath.getValue();
56909
56909
  SourceLocation.assert(oldNode.loc, true);
56910
- var needToPrintNewPathWithComments = !patcher.tryToReprintComments(newNode, oldNode, print3);
56910
+ var needToPrintNewPathWithComments = !patcher.tryToReprintComments(newNode, oldNode, print4);
56911
56911
  if (needToPrintNewPathWithComments) {
56912
56912
  patcher.deleteComments(oldNode);
56913
56913
  }
56914
- var newLines = print3(reprint.newPath, {
56914
+ var newLines = print4(reprint.newPath, {
56915
56915
  includeComments: needToPrintNewPathWithComments,
56916
56916
  // If the oldNode we're replacing already had parentheses, we may
56917
56917
  // not need to print the new node with any extra parentheses,
@@ -57073,8 +57073,8 @@ var require_patcher = __commonJS({
57073
57073
  if (k.charAt(0) === "_") {
57074
57074
  continue;
57075
57075
  }
57076
- newPath.stack.push(k, types11.getFieldValue(newNode, k));
57077
- oldPath.stack.push(k, types11.getFieldValue(oldNode, k));
57076
+ newPath.stack.push(k, types12.getFieldValue(newNode, k));
57077
+ oldPath.stack.push(k, types12.getFieldValue(oldNode, k));
57078
57078
  var canReprint = findAnyReprints(newPath, oldPath, reprints);
57079
57079
  newPath.stack.length -= 2;
57080
57080
  oldPath.stack.length -= 2;
@@ -57098,16 +57098,16 @@ var require_printer = __commonJS({
57098
57098
  exports2.Printer = void 0;
57099
57099
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
57100
57100
  var tiny_invariant_1 = tslib_1.__importDefault(require_tiny_invariant_cjs());
57101
- var types11 = tslib_1.__importStar(require_main());
57101
+ var types12 = tslib_1.__importStar(require_main());
57102
57102
  var comments_1 = require_comments();
57103
57103
  var fast_path_1 = tslib_1.__importDefault(require_fast_path());
57104
57104
  var lines_1 = require_lines();
57105
57105
  var options_1 = require_options();
57106
57106
  var patcher_1 = require_patcher();
57107
57107
  var util2 = tslib_1.__importStar(require_util9());
57108
- var namedTypes = types11.namedTypes;
57109
- var isString2 = types11.builtInTypes.string;
57110
- var isObject2 = types11.builtInTypes.object;
57108
+ var namedTypes = types12.namedTypes;
57109
+ var isString2 = types12.builtInTypes.string;
57110
+ var isObject2 = types12.builtInTypes.object;
57111
57111
  var PrintResult = function PrintResult2(code, sourceMap) {
57112
57112
  (0, tiny_invariant_1.default)(this instanceof PrintResult2);
57113
57113
  isString2.assert(code);
@@ -57135,10 +57135,10 @@ var require_printer = __commonJS({
57135
57135
  function makePrintFunctionWith(options, overrides) {
57136
57136
  options = Object.assign({}, options, overrides);
57137
57137
  return function(path7) {
57138
- return print3(path7, options);
57138
+ return print4(path7, options);
57139
57139
  };
57140
57140
  }
57141
- function print3(path7, options) {
57141
+ function print4(path7, options) {
57142
57142
  (0, tiny_invariant_1.default)(path7 instanceof fast_path_1.default);
57143
57143
  options = options || {};
57144
57144
  if (options.includeComments) {
@@ -57163,7 +57163,7 @@ var require_printer = __commonJS({
57163
57163
  // moved from elsewhere in the AST. The print function is the
57164
57164
  // right choice because it gives us the opportunity to reprint
57165
57165
  // such nodes using their original source.
57166
- reprinter(print3)
57166
+ reprinter(print4)
57167
57167
  ) : genericPrint(path7, config50, options, makePrintFunctionWith(options, {
57168
57168
  includeComments: true,
57169
57169
  avoidRootParens: false
@@ -57175,7 +57175,7 @@ var require_printer = __commonJS({
57175
57175
  if (!ast) {
57176
57176
  return emptyPrintResult;
57177
57177
  }
57178
- var lines = print3(fast_path_1.default.from(ast), {
57178
+ var lines = print4(fast_path_1.default.from(ast), {
57179
57179
  includeComments: true,
57180
57180
  avoidRootParens: false
57181
57181
  });
@@ -57228,7 +57228,7 @@ var require_printer = __commonJS({
57228
57228
  }
57229
57229
  return (0, lines_1.concat)(parts);
57230
57230
  }
57231
- function genericPrintNoParens(path7, options, print3) {
57231
+ function genericPrintNoParens(path7, options, print4) {
57232
57232
  var _a4, _b2, _c2;
57233
57233
  var n = path7.getValue();
57234
57234
  if (!n) {
@@ -57241,18 +57241,18 @@ var require_printer = __commonJS({
57241
57241
  var parts = [];
57242
57242
  switch (n.type) {
57243
57243
  case "File":
57244
- return path7.call(print3, "program");
57244
+ return path7.call(print4, "program");
57245
57245
  case "Program":
57246
57246
  if (n.directives) {
57247
57247
  path7.each(function(childPath) {
57248
- parts.push(print3(childPath), ";\n");
57248
+ parts.push(print4(childPath), ";\n");
57249
57249
  }, "directives");
57250
57250
  }
57251
57251
  if (n.interpreter) {
57252
- parts.push(path7.call(print3, "interpreter"));
57252
+ parts.push(path7.call(print4, "interpreter"));
57253
57253
  }
57254
57254
  parts.push(path7.call(function(bodyPath) {
57255
- return printStatementSequence(bodyPath, options, print3);
57255
+ return printStatementSequence(bodyPath, options, print4);
57256
57256
  }, "body"));
57257
57257
  return (0, lines_1.concat)(parts);
57258
57258
  case "Noop":
@@ -57260,28 +57260,28 @@ var require_printer = __commonJS({
57260
57260
  case "EmptyStatement":
57261
57261
  return (0, lines_1.fromString)("");
57262
57262
  case "ExpressionStatement":
57263
- return (0, lines_1.concat)([path7.call(print3, "expression"), ";"]);
57263
+ return (0, lines_1.concat)([path7.call(print4, "expression"), ";"]);
57264
57264
  case "ParenthesizedExpression":
57265
- return (0, lines_1.concat)(["(", path7.call(print3, "expression"), ")"]);
57265
+ return (0, lines_1.concat)(["(", path7.call(print4, "expression"), ")"]);
57266
57266
  case "BinaryExpression":
57267
57267
  case "LogicalExpression":
57268
57268
  case "AssignmentExpression":
57269
57269
  return (0, lines_1.fromString)(" ").join([
57270
- path7.call(print3, "left"),
57270
+ path7.call(print4, "left"),
57271
57271
  n.operator,
57272
- path7.call(print3, "right")
57272
+ path7.call(print4, "right")
57273
57273
  ]);
57274
57274
  case "AssignmentPattern":
57275
57275
  return (0, lines_1.concat)([
57276
- path7.call(print3, "left"),
57276
+ path7.call(print4, "left"),
57277
57277
  " = ",
57278
- path7.call(print3, "right")
57278
+ path7.call(print4, "right")
57279
57279
  ]);
57280
57280
  case "MemberExpression":
57281
57281
  case "OptionalMemberExpression": {
57282
- parts.push(path7.call(print3, "object"));
57283
- var property = path7.call(print3, "property");
57284
- var optional2 = types11.getFieldValue(n, "optional");
57282
+ parts.push(path7.call(print4, "object"));
57283
+ var property = path7.call(print4, "property");
57284
+ var optional2 = types12.getFieldValue(n, "optional");
57285
57285
  if (n.computed) {
57286
57286
  parts.push(optional2 ? "?.[" : "[", property, "]");
57287
57287
  } else {
@@ -57290,18 +57290,18 @@ var require_printer = __commonJS({
57290
57290
  return (0, lines_1.concat)(parts);
57291
57291
  }
57292
57292
  case "ChainExpression":
57293
- return path7.call(print3, "expression");
57293
+ return path7.call(print4, "expression");
57294
57294
  case "MetaProperty":
57295
57295
  return (0, lines_1.concat)([
57296
- path7.call(print3, "meta"),
57296
+ path7.call(print4, "meta"),
57297
57297
  ".",
57298
- path7.call(print3, "property")
57298
+ path7.call(print4, "property")
57299
57299
  ]);
57300
57300
  case "BindExpression":
57301
57301
  if (n.object) {
57302
- parts.push(path7.call(print3, "object"));
57302
+ parts.push(path7.call(print4, "object"));
57303
57303
  }
57304
- parts.push("::", path7.call(print3, "callee"));
57304
+ parts.push("::", path7.call(print4, "callee"));
57305
57305
  return (0, lines_1.concat)(parts);
57306
57306
  case "Path":
57307
57307
  return (0, lines_1.fromString)(".").join(n.body);
@@ -57309,7 +57309,7 @@ var require_printer = __commonJS({
57309
57309
  return (0, lines_1.concat)([
57310
57310
  (0, lines_1.fromString)(n.name, options),
57311
57311
  n.optional ? "?" : "",
57312
- path7.call(print3, "typeAnnotation")
57312
+ path7.call(print4, "typeAnnotation")
57313
57313
  ]);
57314
57314
  case "SpreadElement":
57315
57315
  case "SpreadElementPattern":
@@ -57321,8 +57321,8 @@ var require_printer = __commonJS({
57321
57321
  case "RestElement":
57322
57322
  return (0, lines_1.concat)([
57323
57323
  "...",
57324
- path7.call(print3, "argument"),
57325
- path7.call(print3, "typeAnnotation")
57324
+ path7.call(print4, "argument"),
57325
+ path7.call(print4, "typeAnnotation")
57326
57326
  ]);
57327
57327
  case "FunctionDeclaration":
57328
57328
  case "FunctionExpression":
@@ -57337,15 +57337,15 @@ var require_printer = __commonJS({
57337
57337
  if (n.generator)
57338
57338
  parts.push("*");
57339
57339
  if (n.id) {
57340
- parts.push(" ", path7.call(print3, "id"), path7.call(print3, "typeParameters"));
57340
+ parts.push(" ", path7.call(print4, "id"), path7.call(print4, "typeParameters"));
57341
57341
  } else {
57342
57342
  if (n.typeParameters) {
57343
- parts.push(path7.call(print3, "typeParameters"));
57343
+ parts.push(path7.call(print4, "typeParameters"));
57344
57344
  }
57345
57345
  }
57346
- parts.push("(", printFunctionParams(path7, options, print3), ")", path7.call(print3, "returnType"));
57346
+ parts.push("(", printFunctionParams(path7, options, print4), ")", path7.call(print4, "returnType"));
57347
57347
  if (n.body) {
57348
- parts.push(" ", path7.call(print3, "body"));
57348
+ parts.push(" ", path7.call(print4, "body"));
57349
57349
  }
57350
57350
  return (0, lines_1.concat)(parts);
57351
57351
  case "ArrowFunctionExpression":
@@ -57353,44 +57353,44 @@ var require_printer = __commonJS({
57353
57353
  parts.push("async ");
57354
57354
  }
57355
57355
  if (n.typeParameters) {
57356
- parts.push(path7.call(print3, "typeParameters"));
57356
+ parts.push(path7.call(print4, "typeParameters"));
57357
57357
  }
57358
57358
  if (!options.arrowParensAlways && n.params.length === 1 && !n.rest && n.params[0].type === "Identifier" && !n.params[0].typeAnnotation && !n.returnType) {
57359
- parts.push(path7.call(print3, "params", 0));
57359
+ parts.push(path7.call(print4, "params", 0));
57360
57360
  } else {
57361
- parts.push("(", printFunctionParams(path7, options, print3), ")", path7.call(print3, "returnType"));
57361
+ parts.push("(", printFunctionParams(path7, options, print4), ")", path7.call(print4, "returnType"));
57362
57362
  }
57363
- parts.push(" => ", path7.call(print3, "body"));
57363
+ parts.push(" => ", path7.call(print4, "body"));
57364
57364
  return (0, lines_1.concat)(parts);
57365
57365
  case "MethodDefinition":
57366
- return printMethod(path7, options, print3);
57366
+ return printMethod(path7, options, print4);
57367
57367
  case "YieldExpression":
57368
57368
  parts.push("yield");
57369
57369
  if (n.delegate)
57370
57370
  parts.push("*");
57371
57371
  if (n.argument)
57372
- parts.push(" ", path7.call(print3, "argument"));
57372
+ parts.push(" ", path7.call(print4, "argument"));
57373
57373
  return (0, lines_1.concat)(parts);
57374
57374
  case "AwaitExpression":
57375
57375
  parts.push("await");
57376
57376
  if (n.all)
57377
57377
  parts.push("*");
57378
57378
  if (n.argument)
57379
- parts.push(" ", path7.call(print3, "argument"));
57379
+ parts.push(" ", path7.call(print4, "argument"));
57380
57380
  return (0, lines_1.concat)(parts);
57381
57381
  case "ModuleExpression":
57382
57382
  return (0, lines_1.concat)([
57383
57383
  "module {\n",
57384
- path7.call(print3, "body").indent(options.tabWidth),
57384
+ path7.call(print4, "body").indent(options.tabWidth),
57385
57385
  "\n}"
57386
57386
  ]);
57387
57387
  case "ModuleDeclaration":
57388
- parts.push("module", path7.call(print3, "id"));
57388
+ parts.push("module", path7.call(print4, "id"));
57389
57389
  if (n.source) {
57390
57390
  (0, tiny_invariant_1.default)(!n.body);
57391
- parts.push("from", path7.call(print3, "source"));
57391
+ parts.push("from", path7.call(print4, "source"));
57392
57392
  } else {
57393
- parts.push(path7.call(print3, "body"));
57393
+ parts.push(path7.call(print4, "body"));
57394
57394
  }
57395
57395
  return (0, lines_1.fromString)(" ").join(parts);
57396
57396
  case "ImportSpecifier":
@@ -57398,14 +57398,14 @@ var require_printer = __commonJS({
57398
57398
  parts.push(n.importKind + " ");
57399
57399
  }
57400
57400
  if (n.imported) {
57401
- parts.push(path7.call(print3, "imported"));
57401
+ parts.push(path7.call(print4, "imported"));
57402
57402
  if (n.local && n.local.name !== n.imported.name) {
57403
- parts.push(" as ", path7.call(print3, "local"));
57403
+ parts.push(" as ", path7.call(print4, "local"));
57404
57404
  }
57405
57405
  } else if (n.id) {
57406
- parts.push(path7.call(print3, "id"));
57406
+ parts.push(path7.call(print4, "id"));
57407
57407
  if (n.name) {
57408
- parts.push(" as ", path7.call(print3, "name"));
57408
+ parts.push(" as ", path7.call(print4, "name"));
57409
57409
  }
57410
57410
  }
57411
57411
  return (0, lines_1.concat)(parts);
@@ -57414,14 +57414,14 @@ var require_printer = __commonJS({
57414
57414
  parts.push(n.exportKind + " ");
57415
57415
  }
57416
57416
  if (n.local) {
57417
- parts.push(path7.call(print3, "local"));
57417
+ parts.push(path7.call(print4, "local"));
57418
57418
  if (n.exported && n.exported.name !== n.local.name) {
57419
- parts.push(" as ", path7.call(print3, "exported"));
57419
+ parts.push(" as ", path7.call(print4, "exported"));
57420
57420
  }
57421
57421
  } else if (n.id) {
57422
- parts.push(path7.call(print3, "id"));
57422
+ parts.push(path7.call(print4, "id"));
57423
57423
  if (n.name) {
57424
- parts.push(" as ", path7.call(print3, "name"));
57424
+ parts.push(" as ", path7.call(print4, "name"));
57425
57425
  }
57426
57426
  }
57427
57427
  return (0, lines_1.concat)(parts);
@@ -57430,36 +57430,36 @@ var require_printer = __commonJS({
57430
57430
  case "ImportNamespaceSpecifier":
57431
57431
  parts.push("* as ");
57432
57432
  if (n.local) {
57433
- parts.push(path7.call(print3, "local"));
57433
+ parts.push(path7.call(print4, "local"));
57434
57434
  } else if (n.id) {
57435
- parts.push(path7.call(print3, "id"));
57435
+ parts.push(path7.call(print4, "id"));
57436
57436
  }
57437
57437
  return (0, lines_1.concat)(parts);
57438
57438
  case "ImportDefaultSpecifier":
57439
57439
  if (n.local) {
57440
- return path7.call(print3, "local");
57440
+ return path7.call(print4, "local");
57441
57441
  }
57442
- return path7.call(print3, "id");
57442
+ return path7.call(print4, "id");
57443
57443
  case "TSExportAssignment":
57444
- return (0, lines_1.concat)(["export = ", path7.call(print3, "expression")]);
57444
+ return (0, lines_1.concat)(["export = ", path7.call(print4, "expression")]);
57445
57445
  case "ExportDeclaration":
57446
57446
  case "ExportDefaultDeclaration":
57447
57447
  case "ExportNamedDeclaration":
57448
- return printExportDeclaration(path7, options, print3);
57448
+ return printExportDeclaration(path7, options, print4);
57449
57449
  case "ExportAllDeclaration":
57450
57450
  parts.push("export *");
57451
57451
  if (n.exported) {
57452
- parts.push(" as ", path7.call(print3, "exported"));
57452
+ parts.push(" as ", path7.call(print4, "exported"));
57453
57453
  }
57454
- parts.push(" from ", path7.call(print3, "source"), ";");
57454
+ parts.push(" from ", path7.call(print4, "source"), ";");
57455
57455
  return (0, lines_1.concat)(parts);
57456
57456
  case "TSNamespaceExportDeclaration":
57457
- parts.push("export as namespace ", path7.call(print3, "id"));
57457
+ parts.push("export as namespace ", path7.call(print4, "id"));
57458
57458
  return maybeAddSemicolon((0, lines_1.concat)(parts));
57459
57459
  case "ExportNamespaceSpecifier":
57460
- return (0, lines_1.concat)(["* as ", path7.call(print3, "exported")]);
57460
+ return (0, lines_1.concat)(["* as ", path7.call(print4, "exported")]);
57461
57461
  case "ExportDefaultSpecifier":
57462
- return path7.call(print3, "exported");
57462
+ return path7.call(print4, "exported");
57463
57463
  case "Import":
57464
57464
  return (0, lines_1.fromString)("import", options);
57465
57465
  // Recast and ast-types currently support dynamic import(...) using
@@ -57467,7 +57467,7 @@ var require_printer = __commonJS({
57467
57467
  // whose callee has type Import.
57468
57468
  // https://github.com/benjamn/ast-types/pull/365#issuecomment-605214486
57469
57469
  case "ImportExpression":
57470
- return (0, lines_1.concat)(["import(", path7.call(print3, "source"), ")"]);
57470
+ return (0, lines_1.concat)(["import(", path7.call(print4, "source"), ")"]);
57471
57471
  case "ImportDeclaration": {
57472
57472
  parts.push("import ");
57473
57473
  if (n.importKind && n.importKind !== "value") {
@@ -57479,9 +57479,9 @@ var require_printer = __commonJS({
57479
57479
  path7.each(function(specifierPath) {
57480
57480
  var spec = specifierPath.getValue();
57481
57481
  if (spec.type === "ImportSpecifier") {
57482
- bracedSpecifiers_1.push(print3(specifierPath));
57482
+ bracedSpecifiers_1.push(print4(specifierPath));
57483
57483
  } else if (spec.type === "ImportDefaultSpecifier" || spec.type === "ImportNamespaceSpecifier") {
57484
- unbracedSpecifiers_1.push(print3(specifierPath));
57484
+ unbracedSpecifiers_1.push(print4(specifierPath));
57485
57485
  }
57486
57486
  }, "specifiers");
57487
57487
  unbracedSpecifiers_1.forEach(function(lines2, i) {
@@ -57511,17 +57511,17 @@ var require_printer = __commonJS({
57511
57511
  }
57512
57512
  parts.push(" from ");
57513
57513
  }
57514
- parts.push(path7.call(print3, "source"), maybePrintImportAssertions(path7, options, print3), ";");
57514
+ parts.push(path7.call(print4, "source"), maybePrintImportAssertions(path7, options, print4), ";");
57515
57515
  return (0, lines_1.concat)(parts);
57516
57516
  }
57517
57517
  case "ImportAttribute":
57518
- return (0, lines_1.concat)([path7.call(print3, "key"), ": ", path7.call(print3, "value")]);
57518
+ return (0, lines_1.concat)([path7.call(print4, "key"), ": ", path7.call(print4, "value")]);
57519
57519
  case "StaticBlock":
57520
57520
  parts.push("static ");
57521
57521
  // Intentionally fall through to BlockStatement below.
57522
57522
  case "BlockStatement": {
57523
57523
  var naked_1 = path7.call(function(bodyPath) {
57524
- return printStatementSequence(bodyPath, options, print3);
57524
+ return printStatementSequence(bodyPath, options, print4);
57525
57525
  }, "body");
57526
57526
  if (naked_1.isEmpty()) {
57527
57527
  if (!n.directives || n.directives.length === 0) {
@@ -57532,7 +57532,7 @@ var require_printer = __commonJS({
57532
57532
  parts.push("{\n");
57533
57533
  if (n.directives) {
57534
57534
  path7.each(function(childPath) {
57535
- parts.push(maybeAddSemicolon(print3(childPath).indent(options.tabWidth)), n.directives.length > 1 || !naked_1.isEmpty() ? "\n" : "");
57535
+ parts.push(maybeAddSemicolon(print4(childPath).indent(options.tabWidth)), n.directives.length > 1 || !naked_1.isEmpty() ? "\n" : "");
57536
57536
  }, "directives");
57537
57537
  }
57538
57538
  parts.push(naked_1.indent(options.tabWidth));
@@ -57543,11 +57543,11 @@ var require_printer = __commonJS({
57543
57543
  parts.push("return");
57544
57544
  if (n.argument) {
57545
57545
  var argIsJsxElement = ((_a4 = namedTypes.JSXElement) === null || _a4 === void 0 ? void 0 : _a4.check(n.argument)) || ((_b2 = namedTypes.JSXFragment) === null || _b2 === void 0 ? void 0 : _b2.check(n.argument));
57546
- var argLines = path7.call(print3, "argument");
57546
+ var argLines = path7.call(print4, "argument");
57547
57547
  if (argLines.startsWithComment() || argLines.length > 1 && argIsJsxElement) {
57548
57548
  if (argIsJsxElement && ((_c2 = n.argument.extra) === null || _c2 === void 0 ? void 0 : _c2.parenthesized)) {
57549
57549
  n.argument.extra.parenthesized = false;
57550
- argLines = path7.call(print3, "argument");
57550
+ argLines = path7.call(print4, "argument");
57551
57551
  n.argument.extra.parenthesized = true;
57552
57552
  }
57553
57553
  parts.push(" ", (0, lines_1.concat)(["(\n", argLines]).indentTail(options.tabWidth), "\n)");
@@ -57560,17 +57560,17 @@ var require_printer = __commonJS({
57560
57560
  }
57561
57561
  case "CallExpression":
57562
57562
  case "OptionalCallExpression":
57563
- parts.push(path7.call(print3, "callee"));
57563
+ parts.push(path7.call(print4, "callee"));
57564
57564
  if (n.typeParameters) {
57565
- parts.push(path7.call(print3, "typeParameters"));
57565
+ parts.push(path7.call(print4, "typeParameters"));
57566
57566
  }
57567
57567
  if (n.typeArguments) {
57568
- parts.push(path7.call(print3, "typeArguments"));
57568
+ parts.push(path7.call(print4, "typeArguments"));
57569
57569
  }
57570
- if (types11.getFieldValue(n, "optional")) {
57570
+ if (types12.getFieldValue(n, "optional")) {
57571
57571
  parts.push("?.");
57572
57572
  }
57573
- parts.push(printArgumentsList(path7, options, print3));
57573
+ parts.push(printArgumentsList(path7, options, print4));
57574
57574
  return (0, lines_1.concat)(parts);
57575
57575
  case "RecordExpression":
57576
57576
  parts.push("#");
@@ -57601,7 +57601,7 @@ var require_printer = __commonJS({
57601
57601
  var i_1 = 0;
57602
57602
  fields.forEach(function(field) {
57603
57603
  path7.each(function(childPath) {
57604
- var lines2 = print3(childPath);
57604
+ var lines2 = print4(childPath);
57605
57605
  if (!oneLine_1) {
57606
57606
  lines2 = lines2.indent(options.tabWidth);
57607
57607
  }
@@ -57638,33 +57638,33 @@ var require_printer = __commonJS({
57638
57638
  parts[parts.length - 1] = " " + rightBrace;
57639
57639
  }
57640
57640
  if (n.typeAnnotation) {
57641
- parts.push(path7.call(print3, "typeAnnotation"));
57641
+ parts.push(path7.call(print4, "typeAnnotation"));
57642
57642
  }
57643
57643
  return (0, lines_1.concat)(parts);
57644
57644
  }
57645
57645
  case "PropertyPattern":
57646
57646
  return (0, lines_1.concat)([
57647
- path7.call(print3, "key"),
57647
+ path7.call(print4, "key"),
57648
57648
  ": ",
57649
- path7.call(print3, "pattern")
57649
+ path7.call(print4, "pattern")
57650
57650
  ]);
57651
57651
  case "ObjectProperty":
57652
57652
  // Babel 6
57653
57653
  case "Property": {
57654
57654
  if (n.method || n.kind === "get" || n.kind === "set") {
57655
- return printMethod(path7, options, print3);
57655
+ return printMethod(path7, options, print4);
57656
57656
  }
57657
57657
  if (n.shorthand && n.value.type === "AssignmentPattern") {
57658
- return path7.call(print3, "value");
57658
+ return path7.call(print4, "value");
57659
57659
  }
57660
- var key = path7.call(print3, "key");
57660
+ var key = path7.call(print4, "key");
57661
57661
  if (n.computed) {
57662
57662
  parts.push("[", key, "]");
57663
57663
  } else {
57664
57664
  parts.push(key);
57665
57665
  }
57666
57666
  if (!n.shorthand || n.key.name !== n.value.name) {
57667
- parts.push(": ", path7.call(print3, "value"));
57667
+ parts.push(": ", path7.call(print4, "value"));
57668
57668
  }
57669
57669
  return (0, lines_1.concat)(parts);
57670
57670
  }
@@ -57674,11 +57674,11 @@ var require_printer = __commonJS({
57674
57674
  // Babel 6
57675
57675
  case "ClassPrivateMethod":
57676
57676
  case "TSDeclareMethod":
57677
- return printMethod(path7, options, print3);
57677
+ return printMethod(path7, options, print4);
57678
57678
  case "PrivateName":
57679
- return (0, lines_1.concat)(["#", path7.call(print3, "id")]);
57679
+ return (0, lines_1.concat)(["#", path7.call(print4, "id")]);
57680
57680
  case "Decorator":
57681
- return (0, lines_1.concat)(["@", path7.call(print3, "expression")]);
57681
+ return (0, lines_1.concat)(["@", path7.call(print4, "expression")]);
57682
57682
  case "TupleExpression":
57683
57683
  parts.push("#");
57684
57684
  // Intentionally fall through to printing the tuple elements...
@@ -57686,7 +57686,7 @@ var require_printer = __commonJS({
57686
57686
  case "ArrayPattern": {
57687
57687
  var elems = n.elements;
57688
57688
  var len_2 = elems.length;
57689
- var printed_1 = path7.map(print3, "elements");
57689
+ var printed_1 = path7.map(print4, "elements");
57690
57690
  var joined = (0, lines_1.fromString)(", ").join(printed_1);
57691
57691
  var oneLine_2 = joined.getLineLength(1) <= options.wrapColumn;
57692
57692
  if (oneLine_2) {
@@ -57724,12 +57724,12 @@ var require_printer = __commonJS({
57724
57724
  parts.push("]");
57725
57725
  }
57726
57726
  if (n.typeAnnotation) {
57727
- parts.push(path7.call(print3, "typeAnnotation"));
57727
+ parts.push(path7.call(print4, "typeAnnotation"));
57728
57728
  }
57729
57729
  return (0, lines_1.concat)(parts);
57730
57730
  }
57731
57731
  case "SequenceExpression":
57732
- return (0, lines_1.fromString)(", ").join(path7.map(print3, "expressions"));
57732
+ return (0, lines_1.fromString)(", ").join(path7.map(print4, "expressions"));
57733
57733
  case "ThisExpression":
57734
57734
  return (0, lines_1.fromString)("this");
57735
57735
  case "Super":
@@ -57751,7 +57751,7 @@ var require_printer = __commonJS({
57751
57751
  case "Literal":
57752
57752
  return (0, lines_1.fromString)(getPossibleRaw(n) || (typeof n.value === "string" ? nodeStr(n.value, options) : n.value), options);
57753
57753
  case "Directive":
57754
- return path7.call(print3, "value");
57754
+ return path7.call(print4, "value");
57755
57755
  case "DirectiveLiteral":
57756
57756
  return (0, lines_1.fromString)(getPossibleRaw(n) || nodeStr(n.value, options), options);
57757
57757
  case "InterpreterDirective":
@@ -57765,32 +57765,32 @@ var require_printer = __commonJS({
57765
57765
  parts.push(n.operator);
57766
57766
  if (/[a-z]$/.test(n.operator))
57767
57767
  parts.push(" ");
57768
- parts.push(path7.call(print3, "argument"));
57768
+ parts.push(path7.call(print4, "argument"));
57769
57769
  return (0, lines_1.concat)(parts);
57770
57770
  case "UpdateExpression":
57771
- parts.push(path7.call(print3, "argument"), n.operator);
57771
+ parts.push(path7.call(print4, "argument"), n.operator);
57772
57772
  if (n.prefix)
57773
57773
  parts.reverse();
57774
57774
  return (0, lines_1.concat)(parts);
57775
57775
  case "ConditionalExpression":
57776
57776
  return (0, lines_1.concat)([
57777
- path7.call(print3, "test"),
57777
+ path7.call(print4, "test"),
57778
57778
  " ? ",
57779
- path7.call(print3, "consequent"),
57779
+ path7.call(print4, "consequent"),
57780
57780
  " : ",
57781
- path7.call(print3, "alternate")
57781
+ path7.call(print4, "alternate")
57782
57782
  ]);
57783
57783
  case "NewExpression": {
57784
- parts.push("new ", path7.call(print3, "callee"));
57784
+ parts.push("new ", path7.call(print4, "callee"));
57785
57785
  if (n.typeParameters) {
57786
- parts.push(path7.call(print3, "typeParameters"));
57786
+ parts.push(path7.call(print4, "typeParameters"));
57787
57787
  }
57788
57788
  if (n.typeArguments) {
57789
- parts.push(path7.call(print3, "typeArguments"));
57789
+ parts.push(path7.call(print4, "typeArguments"));
57790
57790
  }
57791
57791
  var args = n.arguments;
57792
57792
  if (args) {
57793
- parts.push(printArgumentsList(path7, options, print3));
57793
+ parts.push(printArgumentsList(path7, options, print4));
57794
57794
  }
57795
57795
  return (0, lines_1.concat)(parts);
57796
57796
  }
@@ -57801,7 +57801,7 @@ var require_printer = __commonJS({
57801
57801
  parts.push(n.kind, " ");
57802
57802
  var maxLen_1 = 0;
57803
57803
  var printed = path7.map(function(childPath) {
57804
- var lines2 = print3(childPath);
57804
+ var lines2 = print4(childPath);
57805
57805
  maxLen_1 = Math.max(lines2.length, maxLen_1);
57806
57806
  return lines2;
57807
57807
  }, "declarations");
@@ -57820,30 +57820,30 @@ var require_printer = __commonJS({
57820
57820
  }
57821
57821
  case "VariableDeclarator":
57822
57822
  return n.init ? (0, lines_1.fromString)(" = ").join([
57823
- path7.call(print3, "id"),
57824
- path7.call(print3, "init")
57825
- ]) : path7.call(print3, "id");
57823
+ path7.call(print4, "id"),
57824
+ path7.call(print4, "init")
57825
+ ]) : path7.call(print4, "id");
57826
57826
  case "WithStatement":
57827
57827
  return (0, lines_1.concat)([
57828
57828
  "with (",
57829
- path7.call(print3, "object"),
57829
+ path7.call(print4, "object"),
57830
57830
  ") ",
57831
- path7.call(print3, "body")
57831
+ path7.call(print4, "body")
57832
57832
  ]);
57833
57833
  case "IfStatement": {
57834
- var con = adjustClause(path7.call(print3, "consequent"), options);
57835
- parts.push("if (", path7.call(print3, "test"), ")", con);
57834
+ var con = adjustClause(path7.call(print4, "consequent"), options);
57835
+ parts.push("if (", path7.call(print4, "test"), ")", con);
57836
57836
  if (n.alternate)
57837
- parts.push(endsWithBrace(con) ? " else" : "\nelse", adjustClause(path7.call(print3, "alternate"), options));
57837
+ parts.push(endsWithBrace(con) ? " else" : "\nelse", adjustClause(path7.call(print4, "alternate"), options));
57838
57838
  return (0, lines_1.concat)(parts);
57839
57839
  }
57840
57840
  case "ForStatement": {
57841
- var init2 = path7.call(print3, "init");
57841
+ var init2 = path7.call(print4, "init");
57842
57842
  var sep = init2.length > 1 ? ";\n" : "; ";
57843
57843
  var forParen = "for (";
57844
- var indented = (0, lines_1.fromString)(sep).join([init2, path7.call(print3, "test"), path7.call(print3, "update")]).indentTail(forParen.length);
57844
+ var indented = (0, lines_1.fromString)(sep).join([init2, path7.call(print4, "test"), path7.call(print4, "update")]).indentTail(forParen.length);
57845
57845
  var head = (0, lines_1.concat)([forParen, indented, ")"]);
57846
- var clause = adjustClause(path7.call(print3, "body"), options);
57846
+ var clause = adjustClause(path7.call(print4, "body"), options);
57847
57847
  parts.push(head);
57848
57848
  if (head.length > 1) {
57849
57849
  parts.push("\n");
@@ -57855,18 +57855,18 @@ var require_printer = __commonJS({
57855
57855
  case "WhileStatement":
57856
57856
  return (0, lines_1.concat)([
57857
57857
  "while (",
57858
- path7.call(print3, "test"),
57858
+ path7.call(print4, "test"),
57859
57859
  ")",
57860
- adjustClause(path7.call(print3, "body"), options)
57860
+ adjustClause(path7.call(print4, "body"), options)
57861
57861
  ]);
57862
57862
  case "ForInStatement":
57863
57863
  return (0, lines_1.concat)([
57864
57864
  n.each ? "for each (" : "for (",
57865
- path7.call(print3, "left"),
57865
+ path7.call(print4, "left"),
57866
57866
  " in ",
57867
- path7.call(print3, "right"),
57867
+ path7.call(print4, "right"),
57868
57868
  ")",
57869
- adjustClause(path7.call(print3, "body"), options)
57869
+ adjustClause(path7.call(print4, "body"), options)
57870
57870
  ]);
57871
57871
  case "ForOfStatement":
57872
57872
  case "ForAwaitStatement":
@@ -57874,90 +57874,90 @@ var require_printer = __commonJS({
57874
57874
  if (n.await || n.type === "ForAwaitStatement") {
57875
57875
  parts.push("await ");
57876
57876
  }
57877
- parts.push("(", path7.call(print3, "left"), " of ", path7.call(print3, "right"), ")", adjustClause(path7.call(print3, "body"), options));
57877
+ parts.push("(", path7.call(print4, "left"), " of ", path7.call(print4, "right"), ")", adjustClause(path7.call(print4, "body"), options));
57878
57878
  return (0, lines_1.concat)(parts);
57879
57879
  case "DoWhileStatement": {
57880
57880
  var doBody = (0, lines_1.concat)([
57881
57881
  "do",
57882
- adjustClause(path7.call(print3, "body"), options)
57882
+ adjustClause(path7.call(print4, "body"), options)
57883
57883
  ]);
57884
57884
  parts.push(doBody);
57885
57885
  if (endsWithBrace(doBody))
57886
57886
  parts.push(" while");
57887
57887
  else
57888
57888
  parts.push("\nwhile");
57889
- parts.push(" (", path7.call(print3, "test"), ");");
57889
+ parts.push(" (", path7.call(print4, "test"), ");");
57890
57890
  return (0, lines_1.concat)(parts);
57891
57891
  }
57892
57892
  case "DoExpression": {
57893
57893
  var statements = path7.call(function(bodyPath) {
57894
- return printStatementSequence(bodyPath, options, print3);
57894
+ return printStatementSequence(bodyPath, options, print4);
57895
57895
  }, "body");
57896
57896
  return (0, lines_1.concat)(["do {\n", statements.indent(options.tabWidth), "\n}"]);
57897
57897
  }
57898
57898
  case "BreakStatement":
57899
57899
  parts.push("break");
57900
57900
  if (n.label)
57901
- parts.push(" ", path7.call(print3, "label"));
57901
+ parts.push(" ", path7.call(print4, "label"));
57902
57902
  parts.push(";");
57903
57903
  return (0, lines_1.concat)(parts);
57904
57904
  case "ContinueStatement":
57905
57905
  parts.push("continue");
57906
57906
  if (n.label)
57907
- parts.push(" ", path7.call(print3, "label"));
57907
+ parts.push(" ", path7.call(print4, "label"));
57908
57908
  parts.push(";");
57909
57909
  return (0, lines_1.concat)(parts);
57910
57910
  case "LabeledStatement":
57911
57911
  return (0, lines_1.concat)([
57912
- path7.call(print3, "label"),
57912
+ path7.call(print4, "label"),
57913
57913
  ":\n",
57914
- path7.call(print3, "body")
57914
+ path7.call(print4, "body")
57915
57915
  ]);
57916
57916
  case "TryStatement":
57917
- parts.push("try ", path7.call(print3, "block"));
57917
+ parts.push("try ", path7.call(print4, "block"));
57918
57918
  if (n.handler) {
57919
- parts.push(" ", path7.call(print3, "handler"));
57919
+ parts.push(" ", path7.call(print4, "handler"));
57920
57920
  } else if (n.handlers) {
57921
57921
  path7.each(function(handlerPath) {
57922
- parts.push(" ", print3(handlerPath));
57922
+ parts.push(" ", print4(handlerPath));
57923
57923
  }, "handlers");
57924
57924
  }
57925
57925
  if (n.finalizer) {
57926
- parts.push(" finally ", path7.call(print3, "finalizer"));
57926
+ parts.push(" finally ", path7.call(print4, "finalizer"));
57927
57927
  }
57928
57928
  return (0, lines_1.concat)(parts);
57929
57929
  case "CatchClause":
57930
57930
  parts.push("catch ");
57931
57931
  if (n.param) {
57932
- parts.push("(", path7.call(print3, "param"));
57932
+ parts.push("(", path7.call(print4, "param"));
57933
57933
  }
57934
57934
  if (n.guard) {
57935
- parts.push(" if ", path7.call(print3, "guard"));
57935
+ parts.push(" if ", path7.call(print4, "guard"));
57936
57936
  }
57937
57937
  if (n.param) {
57938
57938
  parts.push(") ");
57939
57939
  }
57940
- parts.push(path7.call(print3, "body"));
57940
+ parts.push(path7.call(print4, "body"));
57941
57941
  return (0, lines_1.concat)(parts);
57942
57942
  case "ThrowStatement":
57943
- return (0, lines_1.concat)(["throw ", path7.call(print3, "argument"), ";"]);
57943
+ return (0, lines_1.concat)(["throw ", path7.call(print4, "argument"), ";"]);
57944
57944
  case "SwitchStatement":
57945
57945
  return (0, lines_1.concat)([
57946
57946
  "switch (",
57947
- path7.call(print3, "discriminant"),
57947
+ path7.call(print4, "discriminant"),
57948
57948
  ") {\n",
57949
- (0, lines_1.fromString)("\n").join(path7.map(print3, "cases")),
57949
+ (0, lines_1.fromString)("\n").join(path7.map(print4, "cases")),
57950
57950
  "\n}"
57951
57951
  ]);
57952
57952
  // Note: ignoring n.lexical because it has no printing consequences.
57953
57953
  case "SwitchCase":
57954
57954
  if (n.test)
57955
- parts.push("case ", path7.call(print3, "test"), ":");
57955
+ parts.push("case ", path7.call(print4, "test"), ":");
57956
57956
  else
57957
57957
  parts.push("default:");
57958
57958
  if (n.consequent.length > 0) {
57959
57959
  parts.push("\n", path7.call(function(consequentPath) {
57960
- return printStatementSequence(consequentPath, options, print3);
57960
+ return printStatementSequence(consequentPath, options, print4);
57961
57961
  }, "consequent").indent(options.tabWidth));
57962
57962
  }
57963
57963
  return (0, lines_1.concat)(parts);
@@ -57965,33 +57965,33 @@ var require_printer = __commonJS({
57965
57965
  return (0, lines_1.fromString)("debugger;");
57966
57966
  // JSX extensions below.
57967
57967
  case "JSXAttribute":
57968
- parts.push(path7.call(print3, "name"));
57968
+ parts.push(path7.call(print4, "name"));
57969
57969
  if (n.value)
57970
- parts.push("=", path7.call(print3, "value"));
57970
+ parts.push("=", path7.call(print4, "value"));
57971
57971
  return (0, lines_1.concat)(parts);
57972
57972
  case "JSXIdentifier":
57973
57973
  return (0, lines_1.fromString)(n.name, options);
57974
57974
  case "JSXNamespacedName":
57975
57975
  return (0, lines_1.fromString)(":").join([
57976
- path7.call(print3, "namespace"),
57977
- path7.call(print3, "name")
57976
+ path7.call(print4, "namespace"),
57977
+ path7.call(print4, "name")
57978
57978
  ]);
57979
57979
  case "JSXMemberExpression":
57980
57980
  return (0, lines_1.fromString)(".").join([
57981
- path7.call(print3, "object"),
57982
- path7.call(print3, "property")
57981
+ path7.call(print4, "object"),
57982
+ path7.call(print4, "property")
57983
57983
  ]);
57984
57984
  case "JSXSpreadAttribute":
57985
- return (0, lines_1.concat)(["{...", path7.call(print3, "argument"), "}"]);
57985
+ return (0, lines_1.concat)(["{...", path7.call(print4, "argument"), "}"]);
57986
57986
  case "JSXSpreadChild":
57987
- return (0, lines_1.concat)(["{...", path7.call(print3, "expression"), "}"]);
57987
+ return (0, lines_1.concat)(["{...", path7.call(print4, "expression"), "}"]);
57988
57988
  case "JSXExpressionContainer":
57989
- return (0, lines_1.concat)(["{", path7.call(print3, "expression"), "}"]);
57989
+ return (0, lines_1.concat)(["{", path7.call(print4, "expression"), "}"]);
57990
57990
  case "JSXElement":
57991
57991
  case "JSXFragment": {
57992
57992
  var openingPropName = "opening" + (n.type === "JSXElement" ? "Element" : "Fragment");
57993
57993
  var closingPropName = "closing" + (n.type === "JSXElement" ? "Element" : "Fragment");
57994
- var openingLines = path7.call(print3, openingPropName);
57994
+ var openingLines = path7.call(print4, openingPropName);
57995
57995
  if (n[openingPropName].selfClosing) {
57996
57996
  (0, tiny_invariant_1.default)(!n[closingPropName], "unexpected " + closingPropName + " element in self-closing " + n.type);
57997
57997
  return openingLines;
@@ -58005,19 +58005,19 @@ var require_printer = __commonJS({
58005
58005
  return "\n";
58006
58006
  }
58007
58007
  }
58008
- return print3(childPath);
58008
+ return print4(childPath);
58009
58009
  }, "children")).indentTail(options.tabWidth);
58010
- var closingLines = path7.call(print3, closingPropName);
58010
+ var closingLines = path7.call(print4, closingPropName);
58011
58011
  return (0, lines_1.concat)([openingLines, childLines, closingLines]);
58012
58012
  }
58013
58013
  case "JSXOpeningElement": {
58014
- parts.push("<", path7.call(print3, "name"));
58015
- var typeDefPart = path7.call(print3, "typeParameters");
58014
+ parts.push("<", path7.call(print4, "name"));
58015
+ var typeDefPart = path7.call(print4, "typeParameters");
58016
58016
  if (typeDefPart.length)
58017
58017
  parts.push(typeDefPart);
58018
58018
  var attrParts_1 = [];
58019
58019
  path7.each(function(attrPath) {
58020
- attrParts_1.push(" ", print3(attrPath));
58020
+ attrParts_1.push(" ", print4(attrPath));
58021
58021
  }, "attributes");
58022
58022
  var attrLines = (0, lines_1.concat)(attrParts_1);
58023
58023
  var needLineWrap = attrLines.length > 1 || attrLines.getLineLength(1) > options.wrapColumn;
@@ -58034,7 +58034,7 @@ var require_printer = __commonJS({
58034
58034
  return (0, lines_1.concat)(parts);
58035
58035
  }
58036
58036
  case "JSXClosingElement":
58037
- return (0, lines_1.concat)(["</", path7.call(print3, "name"), ">"]);
58037
+ return (0, lines_1.concat)(["</", path7.call(print4, "name"), ">"]);
58038
58038
  case "JSXOpeningFragment":
58039
58039
  return (0, lines_1.fromString)("<>");
58040
58040
  case "JSXClosingFragment":
@@ -58045,9 +58045,9 @@ var require_printer = __commonJS({
58045
58045
  return (0, lines_1.fromString)("");
58046
58046
  case "TypeAnnotatedIdentifier":
58047
58047
  return (0, lines_1.concat)([
58048
- path7.call(print3, "annotation"),
58048
+ path7.call(print4, "annotation"),
58049
58049
  " ",
58050
- path7.call(print3, "identifier")
58050
+ path7.call(print4, "identifier")
58051
58051
  ]);
58052
58052
  case "ClassBody":
58053
58053
  if (n.body.length === 0) {
@@ -58056,12 +58056,12 @@ var require_printer = __commonJS({
58056
58056
  return (0, lines_1.concat)([
58057
58057
  "{\n",
58058
58058
  path7.call(function(bodyPath) {
58059
- return printStatementSequence(bodyPath, options, print3);
58059
+ return printStatementSequence(bodyPath, options, print4);
58060
58060
  }, "body").indent(options.tabWidth),
58061
58061
  "\n}"
58062
58062
  ]);
58063
58063
  case "ClassPropertyDefinition":
58064
- parts.push("static ", path7.call(print3, "definition"));
58064
+ parts.push("static ", path7.call(print4, "definition"));
58065
58065
  if (!namedTypes.MethodDefinition.check(n.definition))
58066
58066
  parts.push(";");
58067
58067
  return (0, lines_1.concat)(parts);
@@ -58082,12 +58082,12 @@ var require_printer = __commonJS({
58082
58082
  if (n.readonly) {
58083
58083
  parts.push("readonly ");
58084
58084
  }
58085
- var key = path7.call(print3, "key");
58085
+ var key = path7.call(print4, "key");
58086
58086
  if (n.computed) {
58087
58087
  key = (0, lines_1.concat)(["[", key, "]"]);
58088
58088
  }
58089
58089
  if (n.variance) {
58090
- key = (0, lines_1.concat)([printVariance(path7, print3), key]);
58090
+ key = (0, lines_1.concat)([printVariance(path7, print4), key]);
58091
58091
  }
58092
58092
  parts.push(key);
58093
58093
  if (n.optional) {
@@ -58097,10 +58097,10 @@ var require_printer = __commonJS({
58097
58097
  parts.push("!");
58098
58098
  }
58099
58099
  if (n.typeAnnotation) {
58100
- parts.push(path7.call(print3, "typeAnnotation"));
58100
+ parts.push(path7.call(print4, "typeAnnotation"));
58101
58101
  }
58102
58102
  if (n.value) {
58103
- parts.push(" = ", path7.call(print3, "value"));
58103
+ parts.push(" = ", path7.call(print4, "value"));
58104
58104
  }
58105
58105
  parts.push(";");
58106
58106
  return (0, lines_1.concat)(parts);
@@ -58109,21 +58109,21 @@ var require_printer = __commonJS({
58109
58109
  if (n.static) {
58110
58110
  parts.push("static ");
58111
58111
  }
58112
- parts.push(path7.call(print3, "key"));
58112
+ parts.push(path7.call(print4, "key"));
58113
58113
  if (n.typeAnnotation) {
58114
- parts.push(path7.call(print3, "typeAnnotation"));
58114
+ parts.push(path7.call(print4, "typeAnnotation"));
58115
58115
  }
58116
58116
  if (n.value) {
58117
- parts.push(" = ", path7.call(print3, "value"));
58117
+ parts.push(" = ", path7.call(print4, "value"));
58118
58118
  }
58119
58119
  parts.push(";");
58120
58120
  return (0, lines_1.concat)(parts);
58121
58121
  case "ClassAccessorProperty": {
58122
58122
  parts.push.apply(parts, tslib_1.__spreadArray(tslib_1.__spreadArray([], printClassMemberModifiers(n), false), ["accessor "], false));
58123
58123
  if (n.computed) {
58124
- parts.push("[", path7.call(print3, "key"), "]");
58124
+ parts.push("[", path7.call(print4, "key"), "]");
58125
58125
  } else {
58126
- parts.push(path7.call(print3, "key"));
58126
+ parts.push(path7.call(print4, "key"));
58127
58127
  }
58128
58128
  if (n.optional) {
58129
58129
  parts.push("?");
@@ -58132,10 +58132,10 @@ var require_printer = __commonJS({
58132
58132
  parts.push("!");
58133
58133
  }
58134
58134
  if (n.typeAnnotation) {
58135
- parts.push(path7.call(print3, "typeAnnotation"));
58135
+ parts.push(path7.call(print4, "typeAnnotation"));
58136
58136
  }
58137
58137
  if (n.value) {
58138
- parts.push(" = ", path7.call(print3, "value"));
58138
+ parts.push(" = ", path7.call(print4, "value"));
58139
58139
  }
58140
58140
  parts.push(";");
58141
58141
  return (0, lines_1.concat)(parts);
@@ -58151,21 +58151,21 @@ var require_printer = __commonJS({
58151
58151
  }
58152
58152
  parts.push("class");
58153
58153
  if (n.id) {
58154
- parts.push(" ", path7.call(print3, "id"));
58154
+ parts.push(" ", path7.call(print4, "id"));
58155
58155
  }
58156
58156
  if (n.typeParameters) {
58157
- parts.push(path7.call(print3, "typeParameters"));
58157
+ parts.push(path7.call(print4, "typeParameters"));
58158
58158
  }
58159
58159
  if (n.superClass) {
58160
- parts.push(" extends ", path7.call(print3, "superClass"), path7.call(print3, "superTypeParameters"));
58160
+ parts.push(" extends ", path7.call(print4, "superClass"), path7.call(print4, "superTypeParameters"));
58161
58161
  }
58162
58162
  if (n.extends && n.extends.length > 0) {
58163
- parts.push(" extends ", (0, lines_1.fromString)(", ").join(path7.map(print3, "extends")));
58163
+ parts.push(" extends ", (0, lines_1.fromString)(", ").join(path7.map(print4, "extends")));
58164
58164
  }
58165
58165
  if (n["implements"] && n["implements"].length > 0) {
58166
- parts.push(" implements ", (0, lines_1.fromString)(", ").join(path7.map(print3, "implements")));
58166
+ parts.push(" implements ", (0, lines_1.fromString)(", ").join(path7.map(print4, "implements")));
58167
58167
  }
58168
- parts.push(" ", path7.call(print3, "body"));
58168
+ parts.push(" ", path7.call(print4, "body"));
58169
58169
  if (n.type === "DeclareClass") {
58170
58170
  return printFlowDeclaration(path7, parts);
58171
58171
  } else {
@@ -58174,11 +58174,11 @@ var require_printer = __commonJS({
58174
58174
  case "TemplateElement":
58175
58175
  return (0, lines_1.fromString)(n.value.raw, options).lockIndentTail();
58176
58176
  case "TemplateLiteral": {
58177
- var expressions_1 = path7.map(print3, "expressions");
58177
+ var expressions_1 = path7.map(print4, "expressions");
58178
58178
  parts.push("`");
58179
58179
  path7.each(function(childPath) {
58180
58180
  var i = childPath.getName();
58181
- parts.push(print3(childPath));
58181
+ parts.push(print4(childPath));
58182
58182
  if (i < expressions_1.length) {
58183
58183
  parts.push("${", expressions_1[i], "}");
58184
58184
  }
@@ -58187,11 +58187,11 @@ var require_printer = __commonJS({
58187
58187
  return (0, lines_1.concat)(parts).lockIndentTail();
58188
58188
  }
58189
58189
  case "TaggedTemplateExpression":
58190
- parts.push(path7.call(print3, "tag"));
58190
+ parts.push(path7.call(print4, "tag"));
58191
58191
  if (n.typeParameters) {
58192
- parts.push(path7.call(print3, "typeParameters"));
58192
+ parts.push(path7.call(print4, "typeParameters"));
58193
58193
  }
58194
- parts.push(path7.call(print3, "quasi"));
58194
+ parts.push(path7.call(print4, "quasi"));
58195
58195
  return (0, lines_1.concat)(parts);
58196
58196
  // These types are unprintable because they serve as abstract
58197
58197
  // supertypes for other (printable) types.
@@ -58238,7 +58238,7 @@ var require_printer = __commonJS({
58238
58238
  if (n.typeAnnotation.type !== "FunctionTypeAnnotation") {
58239
58239
  parts.push(": ");
58240
58240
  }
58241
- parts.push(path7.call(print3, "typeAnnotation"));
58241
+ parts.push(path7.call(print4, "typeAnnotation"));
58242
58242
  return (0, lines_1.concat)(parts);
58243
58243
  }
58244
58244
  return (0, lines_1.fromString)("");
@@ -58252,9 +58252,9 @@ var require_printer = __commonJS({
58252
58252
  case "MixedTypeAnnotation":
58253
58253
  return (0, lines_1.fromString)("mixed", options);
58254
58254
  case "ArrayTypeAnnotation":
58255
- return (0, lines_1.concat)([path7.call(print3, "elementType"), "[]"]);
58255
+ return (0, lines_1.concat)([path7.call(print4, "elementType"), "[]"]);
58256
58256
  case "TupleTypeAnnotation": {
58257
- var printed_2 = path7.map(print3, "types");
58257
+ var printed_2 = path7.map(print4, "types");
58258
58258
  var joined = (0, lines_1.fromString)(", ").join(printed_2);
58259
58259
  var oneLine_3 = joined.getLineLength(1) <= options.wrapColumn;
58260
58260
  if (oneLine_3) {
@@ -58301,38 +58301,38 @@ var require_printer = __commonJS({
58301
58301
  case "InterfaceTypeAnnotation":
58302
58302
  parts.push("interface");
58303
58303
  if (n.extends && n.extends.length > 0) {
58304
- parts.push(" extends ", (0, lines_1.fromString)(", ").join(path7.map(print3, "extends")));
58304
+ parts.push(" extends ", (0, lines_1.fromString)(", ").join(path7.map(print4, "extends")));
58305
58305
  }
58306
- parts.push(" ", path7.call(print3, "body"));
58306
+ parts.push(" ", path7.call(print4, "body"));
58307
58307
  return (0, lines_1.concat)(parts);
58308
58308
  case "DeclareFunction":
58309
58309
  return printFlowDeclaration(path7, [
58310
58310
  "function ",
58311
- path7.call(print3, "id"),
58311
+ path7.call(print4, "id"),
58312
58312
  ";"
58313
58313
  ]);
58314
58314
  case "DeclareModule":
58315
58315
  return printFlowDeclaration(path7, [
58316
58316
  "module ",
58317
- path7.call(print3, "id"),
58317
+ path7.call(print4, "id"),
58318
58318
  " ",
58319
- path7.call(print3, "body")
58319
+ path7.call(print4, "body")
58320
58320
  ]);
58321
58321
  case "DeclareModuleExports":
58322
58322
  return printFlowDeclaration(path7, [
58323
58323
  "module.exports",
58324
- path7.call(print3, "typeAnnotation")
58324
+ path7.call(print4, "typeAnnotation")
58325
58325
  ]);
58326
58326
  case "DeclareVariable":
58327
- return printFlowDeclaration(path7, ["var ", path7.call(print3, "id"), ";"]);
58327
+ return printFlowDeclaration(path7, ["var ", path7.call(print4, "id"), ";"]);
58328
58328
  case "DeclareExportDeclaration":
58329
58329
  case "DeclareExportAllDeclaration":
58330
- return (0, lines_1.concat)(["declare ", printExportDeclaration(path7, options, print3)]);
58330
+ return (0, lines_1.concat)(["declare ", printExportDeclaration(path7, options, print4)]);
58331
58331
  case "EnumDeclaration":
58332
58332
  return (0, lines_1.concat)([
58333
58333
  "enum ",
58334
- path7.call(print3, "id"),
58335
- path7.call(print3, "body")
58334
+ path7.call(print4, "id"),
58335
+ path7.call(print4, "body")
58336
58336
  ]);
58337
58337
  case "EnumBooleanBody":
58338
58338
  case "EnumNumberBody":
@@ -58345,24 +58345,24 @@ var require_printer = __commonJS({
58345
58345
  n.type.slice(4, -4).toLowerCase()
58346
58346
  );
58347
58347
  }
58348
- parts.push(" {\n", (0, lines_1.fromString)("\n").join(path7.map(print3, "members")).indent(options.tabWidth), "\n}");
58348
+ parts.push(" {\n", (0, lines_1.fromString)("\n").join(path7.map(print4, "members")).indent(options.tabWidth), "\n}");
58349
58349
  return (0, lines_1.concat)(parts);
58350
58350
  }
58351
58351
  case "EnumDefaultedMember":
58352
- return (0, lines_1.concat)([path7.call(print3, "id"), ","]);
58352
+ return (0, lines_1.concat)([path7.call(print4, "id"), ","]);
58353
58353
  case "EnumBooleanMember":
58354
58354
  case "EnumNumberMember":
58355
58355
  case "EnumStringMember":
58356
58356
  return (0, lines_1.concat)([
58357
- path7.call(print3, "id"),
58357
+ path7.call(print4, "id"),
58358
58358
  " = ",
58359
- path7.call(print3, "init"),
58359
+ path7.call(print4, "init"),
58360
58360
  ","
58361
58361
  ]);
58362
58362
  case "InferredPredicate":
58363
58363
  return (0, lines_1.fromString)("%checks", options);
58364
58364
  case "DeclaredPredicate":
58365
- return (0, lines_1.concat)(["%checks(", path7.call(print3, "value"), ")"]);
58365
+ return (0, lines_1.concat)(["%checks(", path7.call(print4, "value"), ")"]);
58366
58366
  case "FunctionTypeAnnotation": {
58367
58367
  var parent = path7.getParentNode(0);
58368
58368
  var isArrowFunctionTypeAnnotation = !(namedTypes.ObjectTypeCallProperty.check(parent) || namedTypes.ObjectTypeInternalSlot.check(parent) && parent.method || namedTypes.DeclareFunction.check(path7.getParentNode(2)));
@@ -58372,14 +58372,14 @@ var require_printer = __commonJS({
58372
58372
  }
58373
58373
  var hasTypeParameters = !!n.typeParameters;
58374
58374
  var needsParens = hasTypeParameters || n.params.length !== 1 || n.params[0].name;
58375
- parts.push(hasTypeParameters ? path7.call(print3, "typeParameters") : "", needsParens ? "(" : "", printFunctionParams(path7, options, print3), needsParens ? ")" : "");
58375
+ parts.push(hasTypeParameters ? path7.call(print4, "typeParameters") : "", needsParens ? "(" : "", printFunctionParams(path7, options, print4), needsParens ? ")" : "");
58376
58376
  if (n.returnType) {
58377
- parts.push(isArrowFunctionTypeAnnotation ? " => " : ": ", path7.call(print3, "returnType"));
58377
+ parts.push(isArrowFunctionTypeAnnotation ? " => " : ": ", path7.call(print4, "returnType"));
58378
58378
  }
58379
58379
  return (0, lines_1.concat)(parts);
58380
58380
  }
58381
58381
  case "FunctionTypeParam": {
58382
- var name3 = path7.call(print3, "name");
58382
+ var name3 = path7.call(print4, "name");
58383
58383
  parts.push(name3);
58384
58384
  if (n.optional) {
58385
58385
  parts.push("?");
@@ -58387,13 +58387,13 @@ var require_printer = __commonJS({
58387
58387
  if (name3.infos[0].line) {
58388
58388
  parts.push(": ");
58389
58389
  }
58390
- parts.push(path7.call(print3, "typeAnnotation"));
58390
+ parts.push(path7.call(print4, "typeAnnotation"));
58391
58391
  return (0, lines_1.concat)(parts);
58392
58392
  }
58393
58393
  case "GenericTypeAnnotation":
58394
58394
  return (0, lines_1.concat)([
58395
- path7.call(print3, "id"),
58396
- path7.call(print3, "typeParameters")
58395
+ path7.call(print4, "id"),
58396
+ path7.call(print4, "typeParameters")
58397
58397
  ]);
58398
58398
  case "DeclareInterface":
58399
58399
  parts.push("declare ");
@@ -58403,24 +58403,24 @@ var require_printer = __commonJS({
58403
58403
  if (n.declare) {
58404
58404
  parts.push("declare ");
58405
58405
  }
58406
- parts.push("interface ", path7.call(print3, "id"), path7.call(print3, "typeParameters"), " ");
58406
+ parts.push("interface ", path7.call(print4, "id"), path7.call(print4, "typeParameters"), " ");
58407
58407
  if (n["extends"] && n["extends"].length > 0) {
58408
- parts.push("extends ", (0, lines_1.fromString)(", ").join(path7.map(print3, "extends")), " ");
58408
+ parts.push("extends ", (0, lines_1.fromString)(", ").join(path7.map(print4, "extends")), " ");
58409
58409
  }
58410
58410
  if (n.body) {
58411
- parts.push(path7.call(print3, "body"));
58411
+ parts.push(path7.call(print4, "body"));
58412
58412
  }
58413
58413
  return (0, lines_1.concat)(parts);
58414
58414
  case "ClassImplements":
58415
58415
  case "InterfaceExtends":
58416
58416
  return (0, lines_1.concat)([
58417
- path7.call(print3, "id"),
58418
- path7.call(print3, "typeParameters")
58417
+ path7.call(print4, "id"),
58418
+ path7.call(print4, "typeParameters")
58419
58419
  ]);
58420
58420
  case "IntersectionTypeAnnotation":
58421
- return (0, lines_1.fromString)(" & ").join(path7.map(print3, "types"));
58421
+ return (0, lines_1.fromString)(" & ").join(path7.map(print4, "types"));
58422
58422
  case "NullableTypeAnnotation":
58423
- return (0, lines_1.concat)(["?", path7.call(print3, "typeAnnotation")]);
58423
+ return (0, lines_1.concat)(["?", path7.call(print4, "typeAnnotation")]);
58424
58424
  case "NullLiteralTypeAnnotation":
58425
58425
  return (0, lines_1.fromString)("null", options);
58426
58426
  case "ThisTypeAnnotation":
@@ -58428,40 +58428,40 @@ var require_printer = __commonJS({
58428
58428
  case "NumberTypeAnnotation":
58429
58429
  return (0, lines_1.fromString)("number", options);
58430
58430
  case "ObjectTypeCallProperty":
58431
- return path7.call(print3, "value");
58431
+ return path7.call(print4, "value");
58432
58432
  case "ObjectTypeIndexer":
58433
58433
  if (n.static) {
58434
58434
  parts.push("static ");
58435
58435
  }
58436
- parts.push(printVariance(path7, print3), "[");
58436
+ parts.push(printVariance(path7, print4), "[");
58437
58437
  if (n.id) {
58438
- parts.push(path7.call(print3, "id"), ": ");
58438
+ parts.push(path7.call(print4, "id"), ": ");
58439
58439
  }
58440
- parts.push(path7.call(print3, "key"), "]: ", path7.call(print3, "value"));
58440
+ parts.push(path7.call(print4, "key"), "]: ", path7.call(print4, "value"));
58441
58441
  return (0, lines_1.concat)(parts);
58442
58442
  case "ObjectTypeProperty":
58443
58443
  return (0, lines_1.concat)([
58444
- printVariance(path7, print3),
58445
- path7.call(print3, "key"),
58444
+ printVariance(path7, print4),
58445
+ path7.call(print4, "key"),
58446
58446
  n.optional ? "?" : "",
58447
58447
  ": ",
58448
- path7.call(print3, "value")
58448
+ path7.call(print4, "value")
58449
58449
  ]);
58450
58450
  case "ObjectTypeInternalSlot":
58451
58451
  return (0, lines_1.concat)([
58452
58452
  n.static ? "static " : "",
58453
58453
  "[[",
58454
- path7.call(print3, "id"),
58454
+ path7.call(print4, "id"),
58455
58455
  "]]",
58456
58456
  n.optional ? "?" : "",
58457
58457
  n.value.type !== "FunctionTypeAnnotation" ? ": " : "",
58458
- path7.call(print3, "value")
58458
+ path7.call(print4, "value")
58459
58459
  ]);
58460
58460
  case "QualifiedTypeIdentifier":
58461
58461
  return (0, lines_1.concat)([
58462
- path7.call(print3, "qualification"),
58462
+ path7.call(print4, "qualification"),
58463
58463
  ".",
58464
- path7.call(print3, "id")
58464
+ path7.call(print4, "id")
58465
58465
  ]);
58466
58466
  case "StringLiteralTypeAnnotation":
58467
58467
  return (0, lines_1.fromString)(nodeStr(n.value, options), options);
@@ -58479,37 +58479,37 @@ var require_printer = __commonJS({
58479
58479
  case "TypeAlias":
58480
58480
  return (0, lines_1.concat)([
58481
58481
  "type ",
58482
- path7.call(print3, "id"),
58483
- path7.call(print3, "typeParameters"),
58482
+ path7.call(print4, "id"),
58483
+ path7.call(print4, "typeParameters"),
58484
58484
  " = ",
58485
- path7.call(print3, "right"),
58485
+ path7.call(print4, "right"),
58486
58486
  ";"
58487
58487
  ]);
58488
58488
  case "DeclareOpaqueType":
58489
58489
  parts.push("declare ");
58490
58490
  // Fall through to OpaqueType...
58491
58491
  case "OpaqueType":
58492
- parts.push("opaque type ", path7.call(print3, "id"), path7.call(print3, "typeParameters"));
58492
+ parts.push("opaque type ", path7.call(print4, "id"), path7.call(print4, "typeParameters"));
58493
58493
  if (n["supertype"]) {
58494
- parts.push(": ", path7.call(print3, "supertype"));
58494
+ parts.push(": ", path7.call(print4, "supertype"));
58495
58495
  }
58496
58496
  if (n["impltype"]) {
58497
- parts.push(" = ", path7.call(print3, "impltype"));
58497
+ parts.push(" = ", path7.call(print4, "impltype"));
58498
58498
  }
58499
58499
  parts.push(";");
58500
58500
  return (0, lines_1.concat)(parts);
58501
58501
  case "TypeCastExpression":
58502
58502
  return (0, lines_1.concat)([
58503
58503
  "(",
58504
- path7.call(print3, "expression"),
58505
- path7.call(print3, "typeAnnotation"),
58504
+ path7.call(print4, "expression"),
58505
+ path7.call(print4, "typeAnnotation"),
58506
58506
  ")"
58507
58507
  ]);
58508
58508
  case "TypeParameterDeclaration":
58509
58509
  case "TypeParameterInstantiation":
58510
58510
  return (0, lines_1.concat)([
58511
58511
  "<",
58512
- (0, lines_1.fromString)(", ").join(path7.map(print3, "params")),
58512
+ (0, lines_1.fromString)(", ").join(path7.map(print4, "params")),
58513
58513
  ">"
58514
58514
  ]);
58515
58515
  case "Variance":
@@ -58522,32 +58522,32 @@ var require_printer = __commonJS({
58522
58522
  return (0, lines_1.fromString)("");
58523
58523
  case "TypeParameter":
58524
58524
  if (n.variance) {
58525
- parts.push(printVariance(path7, print3));
58525
+ parts.push(printVariance(path7, print4));
58526
58526
  }
58527
- parts.push(path7.call(print3, "name"));
58527
+ parts.push(path7.call(print4, "name"));
58528
58528
  if (n.bound) {
58529
- parts.push(path7.call(print3, "bound"));
58529
+ parts.push(path7.call(print4, "bound"));
58530
58530
  }
58531
58531
  if (n["default"]) {
58532
- parts.push("=", path7.call(print3, "default"));
58532
+ parts.push("=", path7.call(print4, "default"));
58533
58533
  }
58534
58534
  return (0, lines_1.concat)(parts);
58535
58535
  case "TypeofTypeAnnotation":
58536
58536
  return (0, lines_1.concat)([
58537
58537
  (0, lines_1.fromString)("typeof ", options),
58538
- path7.call(print3, "argument")
58538
+ path7.call(print4, "argument")
58539
58539
  ]);
58540
58540
  case "IndexedAccessType":
58541
58541
  case "OptionalIndexedAccessType":
58542
58542
  return (0, lines_1.concat)([
58543
- path7.call(print3, "objectType"),
58543
+ path7.call(print4, "objectType"),
58544
58544
  n.optional ? "?." : "",
58545
58545
  "[",
58546
- path7.call(print3, "indexType"),
58546
+ path7.call(print4, "indexType"),
58547
58547
  "]"
58548
58548
  ]);
58549
58549
  case "UnionTypeAnnotation":
58550
- return (0, lines_1.fromString)(" | ").join(path7.map(print3, "types"));
58550
+ return (0, lines_1.fromString)(" | ").join(path7.map(print4, "types"));
58551
58551
  case "VoidTypeAnnotation":
58552
58552
  return (0, lines_1.fromString)("void", options);
58553
58553
  case "NullTypeAnnotation":
@@ -58588,77 +58588,77 @@ var require_printer = __commonJS({
58588
58588
  case "TSNeverKeyword":
58589
58589
  return (0, lines_1.fromString)("never", options);
58590
58590
  case "TSArrayType":
58591
- return (0, lines_1.concat)([path7.call(print3, "elementType"), "[]"]);
58591
+ return (0, lines_1.concat)([path7.call(print4, "elementType"), "[]"]);
58592
58592
  case "TSLiteralType":
58593
- return path7.call(print3, "literal");
58593
+ return path7.call(print4, "literal");
58594
58594
  case "TSUnionType":
58595
- return (0, lines_1.fromString)(" | ").join(path7.map(print3, "types"));
58595
+ return (0, lines_1.fromString)(" | ").join(path7.map(print4, "types"));
58596
58596
  case "TSIntersectionType":
58597
- return (0, lines_1.fromString)(" & ").join(path7.map(print3, "types"));
58597
+ return (0, lines_1.fromString)(" & ").join(path7.map(print4, "types"));
58598
58598
  case "TSConditionalType":
58599
- parts.push(path7.call(print3, "checkType"), " extends ", path7.call(print3, "extendsType"), " ? ", path7.call(print3, "trueType"), " : ", path7.call(print3, "falseType"));
58599
+ parts.push(path7.call(print4, "checkType"), " extends ", path7.call(print4, "extendsType"), " ? ", path7.call(print4, "trueType"), " : ", path7.call(print4, "falseType"));
58600
58600
  return (0, lines_1.concat)(parts);
58601
58601
  case "TSInferType":
58602
- parts.push("infer ", path7.call(print3, "typeParameter"));
58602
+ parts.push("infer ", path7.call(print4, "typeParameter"));
58603
58603
  return (0, lines_1.concat)(parts);
58604
58604
  case "TSParenthesizedType":
58605
- return (0, lines_1.concat)(["(", path7.call(print3, "typeAnnotation"), ")"]);
58605
+ return (0, lines_1.concat)(["(", path7.call(print4, "typeAnnotation"), ")"]);
58606
58606
  case "TSFunctionType":
58607
58607
  return (0, lines_1.concat)([
58608
- path7.call(print3, "typeParameters"),
58608
+ path7.call(print4, "typeParameters"),
58609
58609
  "(",
58610
- printFunctionParams(path7, options, print3),
58610
+ printFunctionParams(path7, options, print4),
58611
58611
  ") => ",
58612
- path7.call(print3, "typeAnnotation", "typeAnnotation")
58612
+ path7.call(print4, "typeAnnotation", "typeAnnotation")
58613
58613
  ]);
58614
58614
  case "TSConstructorType":
58615
58615
  return (0, lines_1.concat)([
58616
58616
  "new ",
58617
- path7.call(print3, "typeParameters"),
58617
+ path7.call(print4, "typeParameters"),
58618
58618
  "(",
58619
- printFunctionParams(path7, options, print3),
58619
+ printFunctionParams(path7, options, print4),
58620
58620
  ") => ",
58621
- path7.call(print3, "typeAnnotation", "typeAnnotation")
58621
+ path7.call(print4, "typeAnnotation", "typeAnnotation")
58622
58622
  ]);
58623
58623
  case "TSMappedType": {
58624
- parts.push(n.readonly ? "readonly " : "", "[", path7.call(print3, "typeParameter"), "]", n.optional ? "?" : "");
58624
+ parts.push(n.readonly ? "readonly " : "", "[", path7.call(print4, "typeParameter"), "]", n.optional ? "?" : "");
58625
58625
  if (n.typeAnnotation) {
58626
- parts.push(": ", path7.call(print3, "typeAnnotation"), ";");
58626
+ parts.push(": ", path7.call(print4, "typeAnnotation"), ";");
58627
58627
  }
58628
58628
  return (0, lines_1.concat)(["{\n", (0, lines_1.concat)(parts).indent(options.tabWidth), "\n}"]);
58629
58629
  }
58630
58630
  case "TSTupleType":
58631
58631
  return (0, lines_1.concat)([
58632
58632
  "[",
58633
- (0, lines_1.fromString)(", ").join(path7.map(print3, "elementTypes")),
58633
+ (0, lines_1.fromString)(", ").join(path7.map(print4, "elementTypes")),
58634
58634
  "]"
58635
58635
  ]);
58636
58636
  case "TSNamedTupleMember":
58637
- parts.push(path7.call(print3, "label"));
58637
+ parts.push(path7.call(print4, "label"));
58638
58638
  if (n.optional) {
58639
58639
  parts.push("?");
58640
58640
  }
58641
- parts.push(": ", path7.call(print3, "elementType"));
58641
+ parts.push(": ", path7.call(print4, "elementType"));
58642
58642
  return (0, lines_1.concat)(parts);
58643
58643
  case "TSRestType":
58644
- return (0, lines_1.concat)(["...", path7.call(print3, "typeAnnotation")]);
58644
+ return (0, lines_1.concat)(["...", path7.call(print4, "typeAnnotation")]);
58645
58645
  case "TSOptionalType":
58646
- return (0, lines_1.concat)([path7.call(print3, "typeAnnotation"), "?"]);
58646
+ return (0, lines_1.concat)([path7.call(print4, "typeAnnotation"), "?"]);
58647
58647
  case "TSIndexedAccessType":
58648
58648
  return (0, lines_1.concat)([
58649
- path7.call(print3, "objectType"),
58649
+ path7.call(print4, "objectType"),
58650
58650
  "[",
58651
- path7.call(print3, "indexType"),
58651
+ path7.call(print4, "indexType"),
58652
58652
  "]"
58653
58653
  ]);
58654
58654
  case "TSTypeOperator":
58655
58655
  return (0, lines_1.concat)([
58656
- path7.call(print3, "operator"),
58656
+ path7.call(print4, "operator"),
58657
58657
  " ",
58658
- path7.call(print3, "typeAnnotation")
58658
+ path7.call(print4, "typeAnnotation")
58659
58659
  ]);
58660
58660
  case "TSTypeLiteral": {
58661
- var members = (0, lines_1.fromString)("\n").join(path7.map(print3, "members").map(function(member) {
58661
+ var members = (0, lines_1.fromString)("\n").join(path7.map(print4, "members").map(function(member) {
58662
58662
  if (lastNonSpaceCharacter(member) !== ";") {
58663
58663
  return member.concat(";");
58664
58664
  }
@@ -58671,13 +58671,13 @@ var require_printer = __commonJS({
58671
58671
  return (0, lines_1.concat)(parts);
58672
58672
  }
58673
58673
  case "TSEnumMember":
58674
- parts.push(path7.call(print3, "id"));
58674
+ parts.push(path7.call(print4, "id"));
58675
58675
  if (n.initializer) {
58676
- parts.push(" = ", path7.call(print3, "initializer"));
58676
+ parts.push(" = ", path7.call(print4, "initializer"));
58677
58677
  }
58678
58678
  return (0, lines_1.concat)(parts);
58679
58679
  case "TSTypeQuery":
58680
- return (0, lines_1.concat)(["typeof ", path7.call(print3, "exprName")]);
58680
+ return (0, lines_1.concat)(["typeof ", path7.call(print4, "exprName")]);
58681
58681
  case "TSParameterProperty":
58682
58682
  if (n.accessibility) {
58683
58683
  parts.push(n.accessibility, " ");
@@ -58691,46 +58691,46 @@ var require_printer = __commonJS({
58691
58691
  if (n.readonly) {
58692
58692
  parts.push("readonly ");
58693
58693
  }
58694
- parts.push(path7.call(print3, "parameter"));
58694
+ parts.push(path7.call(print4, "parameter"));
58695
58695
  return (0, lines_1.concat)(parts);
58696
58696
  case "TSTypeReference":
58697
58697
  return (0, lines_1.concat)([
58698
- path7.call(print3, "typeName"),
58699
- path7.call(print3, "typeParameters")
58698
+ path7.call(print4, "typeName"),
58699
+ path7.call(print4, "typeParameters")
58700
58700
  ]);
58701
58701
  case "TSQualifiedName":
58702
- return (0, lines_1.concat)([path7.call(print3, "left"), ".", path7.call(print3, "right")]);
58702
+ return (0, lines_1.concat)([path7.call(print4, "left"), ".", path7.call(print4, "right")]);
58703
58703
  case "TSAsExpression":
58704
58704
  case "TSSatisfiesExpression": {
58705
- var expression = path7.call(print3, "expression");
58706
- parts.push(expression, n.type === "TSSatisfiesExpression" ? " satisfies " : " as ", path7.call(print3, "typeAnnotation"));
58705
+ var expression = path7.call(print4, "expression");
58706
+ parts.push(expression, n.type === "TSSatisfiesExpression" ? " satisfies " : " as ", path7.call(print4, "typeAnnotation"));
58707
58707
  return (0, lines_1.concat)(parts);
58708
58708
  }
58709
58709
  case "TSTypeCastExpression":
58710
58710
  return (0, lines_1.concat)([
58711
- path7.call(print3, "expression"),
58712
- path7.call(print3, "typeAnnotation")
58711
+ path7.call(print4, "expression"),
58712
+ path7.call(print4, "typeAnnotation")
58713
58713
  ]);
58714
58714
  case "TSNonNullExpression":
58715
- return (0, lines_1.concat)([path7.call(print3, "expression"), "!"]);
58715
+ return (0, lines_1.concat)([path7.call(print4, "expression"), "!"]);
58716
58716
  case "TSTypeAnnotation":
58717
- return (0, lines_1.concat)([": ", path7.call(print3, "typeAnnotation")]);
58717
+ return (0, lines_1.concat)([": ", path7.call(print4, "typeAnnotation")]);
58718
58718
  case "TSIndexSignature":
58719
58719
  return (0, lines_1.concat)([
58720
58720
  n.readonly ? "readonly " : "",
58721
58721
  "[",
58722
- path7.map(print3, "parameters"),
58722
+ path7.map(print4, "parameters"),
58723
58723
  "]",
58724
- path7.call(print3, "typeAnnotation")
58724
+ path7.call(print4, "typeAnnotation")
58725
58725
  ]);
58726
58726
  case "TSPropertySignature":
58727
- parts.push(printVariance(path7, print3), n.readonly ? "readonly " : "");
58727
+ parts.push(printVariance(path7, print4), n.readonly ? "readonly " : "");
58728
58728
  if (n.computed) {
58729
- parts.push("[", path7.call(print3, "key"), "]");
58729
+ parts.push("[", path7.call(print4, "key"), "]");
58730
58730
  } else {
58731
- parts.push(path7.call(print3, "key"));
58731
+ parts.push(path7.call(print4, "key"));
58732
58732
  }
58733
- parts.push(n.optional ? "?" : "", path7.call(print3, "typeAnnotation"));
58733
+ parts.push(n.optional ? "?" : "", path7.call(print4, "typeAnnotation"));
58734
58734
  return (0, lines_1.concat)(parts);
58735
58735
  case "TSMethodSignature":
58736
58736
  if (n.kind === "get") {
@@ -58739,76 +58739,76 @@ var require_printer = __commonJS({
58739
58739
  parts.push("set ");
58740
58740
  }
58741
58741
  if (n.computed) {
58742
- parts.push("[", path7.call(print3, "key"), "]");
58742
+ parts.push("[", path7.call(print4, "key"), "]");
58743
58743
  } else {
58744
- parts.push(path7.call(print3, "key"));
58744
+ parts.push(path7.call(print4, "key"));
58745
58745
  }
58746
58746
  if (n.optional) {
58747
58747
  parts.push("?");
58748
58748
  }
58749
- parts.push(path7.call(print3, "typeParameters"), "(", printFunctionParams(path7, options, print3), ")", path7.call(print3, "typeAnnotation"));
58749
+ parts.push(path7.call(print4, "typeParameters"), "(", printFunctionParams(path7, options, print4), ")", path7.call(print4, "typeAnnotation"));
58750
58750
  return (0, lines_1.concat)(parts);
58751
58751
  case "TSTypePredicate":
58752
58752
  if (n.asserts) {
58753
58753
  parts.push("asserts ");
58754
58754
  }
58755
- parts.push(path7.call(print3, "parameterName"));
58755
+ parts.push(path7.call(print4, "parameterName"));
58756
58756
  if (n.typeAnnotation) {
58757
- parts.push(" is ", path7.call(print3, "typeAnnotation", "typeAnnotation"));
58757
+ parts.push(" is ", path7.call(print4, "typeAnnotation", "typeAnnotation"));
58758
58758
  }
58759
58759
  return (0, lines_1.concat)(parts);
58760
58760
  case "TSCallSignatureDeclaration":
58761
58761
  return (0, lines_1.concat)([
58762
- path7.call(print3, "typeParameters"),
58762
+ path7.call(print4, "typeParameters"),
58763
58763
  "(",
58764
- printFunctionParams(path7, options, print3),
58764
+ printFunctionParams(path7, options, print4),
58765
58765
  ")",
58766
- path7.call(print3, "typeAnnotation")
58766
+ path7.call(print4, "typeAnnotation")
58767
58767
  ]);
58768
58768
  case "TSConstructSignatureDeclaration":
58769
58769
  if (n.typeParameters) {
58770
- parts.push("new", path7.call(print3, "typeParameters"));
58770
+ parts.push("new", path7.call(print4, "typeParameters"));
58771
58771
  } else {
58772
58772
  parts.push("new ");
58773
58773
  }
58774
- parts.push("(", printFunctionParams(path7, options, print3), ")", path7.call(print3, "typeAnnotation"));
58774
+ parts.push("(", printFunctionParams(path7, options, print4), ")", path7.call(print4, "typeAnnotation"));
58775
58775
  return (0, lines_1.concat)(parts);
58776
58776
  case "TSTypeAliasDeclaration":
58777
58777
  return (0, lines_1.concat)([
58778
58778
  n.declare ? "declare " : "",
58779
58779
  "type ",
58780
- path7.call(print3, "id"),
58781
- path7.call(print3, "typeParameters"),
58780
+ path7.call(print4, "id"),
58781
+ path7.call(print4, "typeParameters"),
58782
58782
  " = ",
58783
- path7.call(print3, "typeAnnotation"),
58783
+ path7.call(print4, "typeAnnotation"),
58784
58784
  ";"
58785
58785
  ]);
58786
58786
  case "TSTypeParameter": {
58787
- parts.push(path7.call(print3, "name"));
58787
+ parts.push(path7.call(print4, "name"));
58788
58788
  var parent = path7.getParentNode(0);
58789
58789
  var isInMappedType = namedTypes.TSMappedType.check(parent);
58790
58790
  if (n.constraint) {
58791
- parts.push(isInMappedType ? " in " : " extends ", path7.call(print3, "constraint"));
58791
+ parts.push(isInMappedType ? " in " : " extends ", path7.call(print4, "constraint"));
58792
58792
  }
58793
58793
  if (n["default"]) {
58794
- parts.push(" = ", path7.call(print3, "default"));
58794
+ parts.push(" = ", path7.call(print4, "default"));
58795
58795
  }
58796
58796
  return (0, lines_1.concat)(parts);
58797
58797
  }
58798
58798
  case "TSTypeAssertion": {
58799
- parts.push("<", path7.call(print3, "typeAnnotation"), "> ", path7.call(print3, "expression"));
58799
+ parts.push("<", path7.call(print4, "typeAnnotation"), "> ", path7.call(print4, "expression"));
58800
58800
  return (0, lines_1.concat)(parts);
58801
58801
  }
58802
58802
  case "TSTypeParameterDeclaration":
58803
58803
  case "TSTypeParameterInstantiation":
58804
58804
  return (0, lines_1.concat)([
58805
58805
  "<",
58806
- (0, lines_1.fromString)(", ").join(path7.map(print3, "params")),
58806
+ (0, lines_1.fromString)(", ").join(path7.map(print4, "params")),
58807
58807
  ">"
58808
58808
  ]);
58809
58809
  case "TSEnumDeclaration": {
58810
- parts.push(n.declare ? "declare " : "", n.const ? "const " : "", "enum ", path7.call(print3, "id"));
58811
- var memberLines = (0, lines_1.fromString)(",\n").join(path7.map(print3, "members"));
58810
+ parts.push(n.declare ? "declare " : "", n.const ? "const " : "", "enum ", path7.call(print4, "id"));
58811
+ var memberLines = (0, lines_1.fromString)(",\n").join(path7.map(print4, "members"));
58812
58812
  if (memberLines.isEmpty()) {
58813
58813
  parts.push(" {}");
58814
58814
  } else {
@@ -58818,11 +58818,11 @@ var require_printer = __commonJS({
58818
58818
  }
58819
58819
  case "TSExpressionWithTypeArguments":
58820
58820
  return (0, lines_1.concat)([
58821
- path7.call(print3, "expression"),
58822
- path7.call(print3, "typeParameters")
58821
+ path7.call(print4, "expression"),
58822
+ path7.call(print4, "typeParameters")
58823
58823
  ]);
58824
58824
  case "TSInterfaceBody": {
58825
- var lines = (0, lines_1.fromString)("\n").join(path7.map(print3, "body").map(function(element) {
58825
+ var lines = (0, lines_1.fromString)("\n").join(path7.map(print4, "body").map(function(element) {
58826
58826
  if (lastNonSpaceCharacter(element) !== ";") {
58827
58827
  return element.concat(";");
58828
58828
  }
@@ -58834,22 +58834,22 @@ var require_printer = __commonJS({
58834
58834
  return (0, lines_1.concat)(["{\n", lines.indent(options.tabWidth), "\n}"]);
58835
58835
  }
58836
58836
  case "TSImportType":
58837
- parts.push("import(", path7.call(print3, "argument"), ")");
58837
+ parts.push("import(", path7.call(print4, "argument"), ")");
58838
58838
  if (n.qualifier) {
58839
- parts.push(".", path7.call(print3, "qualifier"));
58839
+ parts.push(".", path7.call(print4, "qualifier"));
58840
58840
  }
58841
58841
  if (n.typeParameters) {
58842
- parts.push(path7.call(print3, "typeParameters"));
58842
+ parts.push(path7.call(print4, "typeParameters"));
58843
58843
  }
58844
58844
  return (0, lines_1.concat)(parts);
58845
58845
  case "TSImportEqualsDeclaration":
58846
58846
  if (n.isExport) {
58847
58847
  parts.push("export ");
58848
58848
  }
58849
- parts.push("import ", path7.call(print3, "id"), " = ", path7.call(print3, "moduleReference"));
58849
+ parts.push("import ", path7.call(print4, "id"), " = ", path7.call(print4, "moduleReference"));
58850
58850
  return maybeAddSemicolon((0, lines_1.concat)(parts));
58851
58851
  case "TSExternalModuleReference":
58852
- return (0, lines_1.concat)(["require(", path7.call(print3, "expression"), ")"]);
58852
+ return (0, lines_1.concat)(["require(", path7.call(print4, "expression"), ")"]);
58853
58853
  case "TSModuleDeclaration": {
58854
58854
  var parent = path7.getParentNode();
58855
58855
  if (parent.type === "TSModuleDeclaration") {
@@ -58874,16 +58874,16 @@ var require_printer = __commonJS({
58874
58874
  }
58875
58875
  }
58876
58876
  }
58877
- parts.push(path7.call(print3, "id"));
58877
+ parts.push(path7.call(print4, "id"));
58878
58878
  if (n.body) {
58879
58879
  parts.push(" ");
58880
- parts.push(path7.call(print3, "body"));
58880
+ parts.push(path7.call(print4, "body"));
58881
58881
  }
58882
58882
  return (0, lines_1.concat)(parts);
58883
58883
  }
58884
58884
  case "TSModuleBlock": {
58885
58885
  var naked = path7.call(function(bodyPath) {
58886
- return printStatementSequence(bodyPath, options, print3);
58886
+ return printStatementSequence(bodyPath, options, print4);
58887
58887
  }, "body");
58888
58888
  if (naked.isEmpty()) {
58889
58889
  parts.push("{}");
@@ -58893,12 +58893,12 @@ var require_printer = __commonJS({
58893
58893
  return (0, lines_1.concat)(parts);
58894
58894
  }
58895
58895
  case "TSInstantiationExpression": {
58896
- parts.push(path7.call(print3, "expression"), path7.call(print3, "typeParameters"));
58896
+ parts.push(path7.call(print4, "expression"), path7.call(print4, "typeParameters"));
58897
58897
  return (0, lines_1.concat)(parts);
58898
58898
  }
58899
58899
  // https://github.com/babel/babel/pull/10148
58900
58900
  case "V8IntrinsicIdentifier":
58901
- return (0, lines_1.concat)(["%", path7.call(print3, "name")]);
58901
+ return (0, lines_1.concat)(["%", path7.call(print4, "name")]);
58902
58902
  // https://github.com/babel/babel/pull/13191
58903
58903
  case "TopicReference":
58904
58904
  return (0, lines_1.fromString)("#");
@@ -58963,7 +58963,7 @@ var require_printer = __commonJS({
58963
58963
  }
58964
58964
  return (0, lines_1.concat)(parts);
58965
58965
  }
58966
- function printStatementSequence(path7, options, print3) {
58966
+ function printStatementSequence(path7, options, print4) {
58967
58967
  var filtered = [];
58968
58968
  var sawComment = false;
58969
58969
  var sawStatement = false;
@@ -58984,7 +58984,7 @@ var require_printer = __commonJS({
58984
58984
  }
58985
58985
  filtered.push({
58986
58986
  node: stmt,
58987
- printed: print3(stmtPath)
58987
+ printed: print4(stmtPath)
58988
58988
  });
58989
58989
  });
58990
58990
  if (sawComment) {
@@ -59076,7 +59076,7 @@ var require_printer = __commonJS({
59076
59076
  }
59077
59077
  return parts;
59078
59078
  }
59079
- function printMethod(path7, options, print3) {
59079
+ function printMethod(path7, options, print4) {
59080
59080
  var node = path7.getNode();
59081
59081
  var kind = node.kind;
59082
59082
  var parts = [];
@@ -59094,7 +59094,7 @@ var require_printer = __commonJS({
59094
59094
  if (kind === "get" || kind === "set") {
59095
59095
  parts.push(kind, " ");
59096
59096
  }
59097
- var key = path7.call(print3, "key");
59097
+ var key = path7.call(print4, "key");
59098
59098
  if (node.computed) {
59099
59099
  key = (0, lines_1.concat)(["[", key, "]"]);
59100
59100
  }
@@ -59103,26 +59103,26 @@ var require_printer = __commonJS({
59103
59103
  parts.push("?");
59104
59104
  }
59105
59105
  if (node === nodeValue) {
59106
- parts.push(path7.call(print3, "typeParameters"), "(", printFunctionParams(path7, options, print3), ")", path7.call(print3, "returnType"));
59106
+ parts.push(path7.call(print4, "typeParameters"), "(", printFunctionParams(path7, options, print4), ")", path7.call(print4, "returnType"));
59107
59107
  if (node.body) {
59108
- parts.push(" ", path7.call(print3, "body"));
59108
+ parts.push(" ", path7.call(print4, "body"));
59109
59109
  } else {
59110
59110
  parts.push(";");
59111
59111
  }
59112
59112
  } else {
59113
- parts.push(path7.call(print3, "value", "typeParameters"), "(", path7.call(function(valuePath) {
59114
- return printFunctionParams(valuePath, options, print3);
59115
- }, "value"), ")", path7.call(print3, "value", "returnType"));
59113
+ parts.push(path7.call(print4, "value", "typeParameters"), "(", path7.call(function(valuePath) {
59114
+ return printFunctionParams(valuePath, options, print4);
59115
+ }, "value"), ")", path7.call(print4, "value", "returnType"));
59116
59116
  if (nodeValue.body) {
59117
- parts.push(" ", path7.call(print3, "value", "body"));
59117
+ parts.push(" ", path7.call(print4, "value", "body"));
59118
59118
  } else {
59119
59119
  parts.push(";");
59120
59120
  }
59121
59121
  }
59122
59122
  return (0, lines_1.concat)(parts);
59123
59123
  }
59124
- function printArgumentsList(path7, options, print3) {
59125
- var printed = path7.map(print3, "arguments");
59124
+ function printArgumentsList(path7, options, print4) {
59125
+ var printed = path7.map(print4, "arguments");
59126
59126
  var trailingComma = util2.isTrailingCommaEnabled(options, "parameters");
59127
59127
  var joined = (0, lines_1.fromString)(", ").join(printed);
59128
59128
  if (joined.getLineLength(1) > options.wrapColumn) {
@@ -59135,28 +59135,28 @@ var require_printer = __commonJS({
59135
59135
  }
59136
59136
  return (0, lines_1.concat)(["(", joined, ")"]);
59137
59137
  }
59138
- function printFunctionParams(path7, options, print3) {
59138
+ function printFunctionParams(path7, options, print4) {
59139
59139
  var fun = path7.getValue();
59140
59140
  var params;
59141
59141
  var printed = [];
59142
59142
  if (fun.params) {
59143
59143
  params = fun.params;
59144
- printed = path7.map(print3, "params");
59144
+ printed = path7.map(print4, "params");
59145
59145
  } else if (fun.parameters) {
59146
59146
  params = fun.parameters;
59147
- printed = path7.map(print3, "parameters");
59147
+ printed = path7.map(print4, "parameters");
59148
59148
  }
59149
59149
  if (fun.defaults) {
59150
59150
  path7.each(function(defExprPath) {
59151
59151
  var i = defExprPath.getName();
59152
59152
  var p2 = printed[i];
59153
59153
  if (p2 && defExprPath.getValue()) {
59154
- printed[i] = (0, lines_1.concat)([p2, " = ", print3(defExprPath)]);
59154
+ printed[i] = (0, lines_1.concat)([p2, " = ", print4(defExprPath)]);
59155
59155
  }
59156
59156
  }, "defaults");
59157
59157
  }
59158
59158
  if (fun.rest) {
59159
- printed.push((0, lines_1.concat)(["...", path7.call(print3, "rest")]));
59159
+ printed.push((0, lines_1.concat)(["...", path7.call(print4, "rest")]));
59160
59160
  }
59161
59161
  var joined = (0, lines_1.fromString)(", ").join(printed);
59162
59162
  if (joined.length > 1 || joined.getLineLength(1) > options.wrapColumn) {
@@ -59170,11 +59170,11 @@ var require_printer = __commonJS({
59170
59170
  }
59171
59171
  return joined;
59172
59172
  }
59173
- function maybePrintImportAssertions(path7, options, print3) {
59173
+ function maybePrintImportAssertions(path7, options, print4) {
59174
59174
  var n = path7.getValue();
59175
59175
  if (n.assertions && n.assertions.length > 0) {
59176
59176
  var parts = [" assert {"];
59177
- var printed = path7.map(print3, "assertions");
59177
+ var printed = path7.map(print4, "assertions");
59178
59178
  var flat = (0, lines_1.fromString)(", ").join(printed);
59179
59179
  if (flat.length > 1 || flat.getLineLength(1) > options.wrapColumn) {
59180
59180
  parts.push("\n", (0, lines_1.fromString)(",\n").join(printed).indent(options.tabWidth), "\n}");
@@ -59185,7 +59185,7 @@ var require_printer = __commonJS({
59185
59185
  }
59186
59186
  return (0, lines_1.fromString)("");
59187
59187
  }
59188
- function printExportDeclaration(path7, options, print3) {
59188
+ function printExportDeclaration(path7, options, print4) {
59189
59189
  var decl = path7.getValue();
59190
59190
  var parts = ["export "];
59191
59191
  if (decl.exportKind && decl.exportKind === "type") {
@@ -59199,7 +59199,7 @@ var require_printer = __commonJS({
59199
59199
  parts.push("default ");
59200
59200
  }
59201
59201
  if (decl.declaration) {
59202
- parts.push(path7.call(print3, "declaration"));
59202
+ parts.push(path7.call(print4, "declaration"));
59203
59203
  } else if (decl.specifiers) {
59204
59204
  if (decl.specifiers.length === 1 && decl.specifiers[0].type === "ExportBatchSpecifier") {
59205
59205
  parts.push("*");
@@ -59211,9 +59211,9 @@ var require_printer = __commonJS({
59211
59211
  path7.each(function(specifierPath) {
59212
59212
  var spec = specifierPath.getValue();
59213
59213
  if (spec.type === "ExportDefaultSpecifier" || spec.type === "ExportNamespaceSpecifier") {
59214
- unbracedSpecifiers_2.push(print3(specifierPath));
59214
+ unbracedSpecifiers_2.push(print4(specifierPath));
59215
59215
  } else {
59216
- bracedSpecifiers_2.push(print3(specifierPath));
59216
+ bracedSpecifiers_2.push(print4(specifierPath));
59217
59217
  }
59218
59218
  }, "specifiers");
59219
59219
  unbracedSpecifiers_2.forEach(function(lines2, i) {
@@ -59242,10 +59242,10 @@ var require_printer = __commonJS({
59242
59242
  }
59243
59243
  }
59244
59244
  } else {
59245
- parts.push(shouldPrintSpaces ? "{ " : "{", (0, lines_1.fromString)(", ").join(path7.map(print3, "specifiers")), shouldPrintSpaces ? " }" : "}");
59245
+ parts.push(shouldPrintSpaces ? "{ " : "{", (0, lines_1.fromString)(", ").join(path7.map(print4, "specifiers")), shouldPrintSpaces ? " }" : "}");
59246
59246
  }
59247
59247
  if (decl.source) {
59248
- parts.push(" from ", path7.call(print3, "source"), maybePrintImportAssertions(path7, options, print3));
59248
+ parts.push(" from ", path7.call(print4, "source"), maybePrintImportAssertions(path7, options, print4));
59249
59249
  }
59250
59250
  }
59251
59251
  var lines = (0, lines_1.concat)(parts);
@@ -59263,7 +59263,7 @@ var require_printer = __commonJS({
59263
59263
  }
59264
59264
  return (0, lines_1.concat)(parts);
59265
59265
  }
59266
- function printVariance(path7, print3) {
59266
+ function printVariance(path7, print4) {
59267
59267
  return path7.call(function(variancePath) {
59268
59268
  var value = variancePath.getValue();
59269
59269
  if (value) {
@@ -59273,7 +59273,7 @@ var require_printer = __commonJS({
59273
59273
  if (value === "minus") {
59274
59274
  return (0, lines_1.fromString)("-");
59275
59275
  }
59276
- return print3(variancePath);
59276
+ return print4(variancePath);
59277
59277
  }
59278
59278
  return (0, lines_1.fromString)("");
59279
59279
  }, "variance");
@@ -59300,8 +59300,8 @@ var require_printer = __commonJS({
59300
59300
  });
59301
59301
  }
59302
59302
  function getPossibleRaw(node) {
59303
- var value = types11.getFieldValue(node, "value");
59304
- var extra = types11.getFieldValue(node, "extra");
59303
+ var value = types12.getFieldValue(node, "value");
59304
+ var extra = types12.getFieldValue(node, "extra");
59305
59305
  if (extra && typeof extra.raw === "string" && value == extra.rawValue) {
59306
59306
  return extra.raw;
59307
59307
  }
@@ -59349,8 +59349,8 @@ var require_main2 = __commonJS({
59349
59349
  exports2.run = exports2.prettyPrint = exports2.print = exports2.visit = exports2.types = exports2.parse = void 0;
59350
59350
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
59351
59351
  var fs_1 = tslib_1.__importDefault(require("fs"));
59352
- var types11 = tslib_1.__importStar(require_main());
59353
- exports2.types = types11;
59352
+ var types12 = tslib_1.__importStar(require_main());
59353
+ exports2.types = types12;
59354
59354
  var parser_1 = require_parser();
59355
59355
  Object.defineProperty(exports2, "parse", { enumerable: true, get: function() {
59356
59356
  return parser_1.parse;
@@ -59360,10 +59360,10 @@ var require_main2 = __commonJS({
59360
59360
  Object.defineProperty(exports2, "visit", { enumerable: true, get: function() {
59361
59361
  return ast_types_1.visit;
59362
59362
  } });
59363
- function print3(node, options) {
59363
+ function print4(node, options) {
59364
59364
  return new printer_1.Printer(options).print(node);
59365
59365
  }
59366
- exports2.print = print3;
59366
+ exports2.print = print4;
59367
59367
  function prettyPrint(node, options) {
59368
59368
  return new printer_1.Printer(options).printGenerically(node);
59369
59369
  }
@@ -59387,7 +59387,7 @@ var require_main2 = __commonJS({
59387
59387
  function runString(code, transformer, options) {
59388
59388
  var writeback = options && options.writeback || defaultWriteback;
59389
59389
  transformer((0, parser_1.parse)(code, options), function(node) {
59390
- writeback(print3(node, options).code);
59390
+ writeback(print4(node, options).code);
59391
59391
  });
59392
59392
  }
59393
59393
  }
@@ -60224,14 +60224,14 @@ var require_lib = __commonJS({
60224
60224
  this.preserveSpace = !!preserveSpace;
60225
60225
  }
60226
60226
  };
60227
- var types11 = {
60227
+ var types12 = {
60228
60228
  brace: new TokContext("{"),
60229
60229
  j_oTag: new TokContext("<tag"),
60230
60230
  j_cTag: new TokContext("</tag"),
60231
60231
  j_expr: new TokContext("<tag>...</tag>", true)
60232
60232
  };
60233
60233
  {
60234
- types11.template = new TokContext("`", true);
60234
+ types12.template = new TokContext("`", true);
60235
60235
  }
60236
60236
  var beforeExpr = true;
60237
60237
  var startsExpr = true;
@@ -60769,17 +60769,17 @@ var require_lib = __commonJS({
60769
60769
  context.pop();
60770
60770
  };
60771
60771
  tokenTypes[5].updateContext = tokenTypes[7].updateContext = tokenTypes[23].updateContext = (context) => {
60772
- context.push(types11.brace);
60772
+ context.push(types12.brace);
60773
60773
  };
60774
60774
  tokenTypes[22].updateContext = (context) => {
60775
- if (context[context.length - 1] === types11.template) {
60775
+ if (context[context.length - 1] === types12.template) {
60776
60776
  context.pop();
60777
60777
  } else {
60778
- context.push(types11.template);
60778
+ context.push(types12.template);
60779
60779
  }
60780
60780
  };
60781
60781
  tokenTypes[143].updateContext = (context) => {
60782
- context.push(types11.j_expr, types11.j_oTag);
60782
+ context.push(types12.j_expr, types12.j_oTag);
60783
60783
  };
60784
60784
  }
60785
60785
  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-\u088E\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\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";
@@ -61334,7 +61334,7 @@ var require_lib = __commonJS({
61334
61334
  this.end = 0;
61335
61335
  this.lastTokEndLoc = null;
61336
61336
  this.lastTokStartLoc = null;
61337
- this.context = [types11.brace];
61337
+ this.context = [types12.brace];
61338
61338
  this.firstInvalidTemplateEscapePos = null;
61339
61339
  this.strictErrors = /* @__PURE__ */ new Map();
61340
61340
  this.tokensLength = 0;
@@ -65101,7 +65101,7 @@ var require_lib = __commonJS({
65101
65101
  context
65102
65102
  } = this.state;
65103
65103
  const currentContext = context[context.length - 1];
65104
- if (currentContext === types11.j_oTag || currentContext === types11.j_expr) {
65104
+ if (currentContext === types12.j_oTag || currentContext === types12.j_expr) {
65105
65105
  context.pop();
65106
65106
  }
65107
65107
  }
@@ -66108,9 +66108,9 @@ var require_lib = __commonJS({
66108
66108
  switch (this.state.type) {
66109
66109
  case 5:
66110
66110
  node = this.startNode();
66111
- this.setContext(types11.brace);
66111
+ this.setContext(types12.brace);
66112
66112
  this.next();
66113
- node = this.jsxParseExpressionContainer(node, types11.j_oTag);
66113
+ node = this.jsxParseExpressionContainer(node, types12.j_oTag);
66114
66114
  if (node.expression.type === "JSXEmptyExpression") {
66115
66115
  this.raise(JsxErrors.AttributeIsEmpty, node);
66116
66116
  }
@@ -66129,7 +66129,7 @@ var require_lib = __commonJS({
66129
66129
  jsxParseSpreadChild(node) {
66130
66130
  this.next();
66131
66131
  node.expression = this.parseExpression();
66132
- this.setContext(types11.j_expr);
66132
+ this.setContext(types12.j_expr);
66133
66133
  this.state.canStartJSXElement = true;
66134
66134
  this.expect(8);
66135
66135
  return this.finishNode(node, "JSXSpreadChild");
@@ -66149,11 +66149,11 @@ var require_lib = __commonJS({
66149
66149
  jsxParseAttribute() {
66150
66150
  const node = this.startNode();
66151
66151
  if (this.match(5)) {
66152
- this.setContext(types11.brace);
66152
+ this.setContext(types12.brace);
66153
66153
  this.next();
66154
66154
  this.expect(21);
66155
66155
  node.argument = this.parseMaybeAssignAllowIn();
66156
- this.setContext(types11.j_oTag);
66156
+ this.setContext(types12.j_oTag);
66157
66157
  this.state.canStartJSXElement = true;
66158
66158
  this.expect(8);
66159
66159
  return this.finishNode(node, "JSXSpreadAttribute");
@@ -66211,12 +66211,12 @@ var require_lib = __commonJS({
66211
66211
  break;
66212
66212
  case 5: {
66213
66213
  const node2 = this.startNode();
66214
- this.setContext(types11.brace);
66214
+ this.setContext(types12.brace);
66215
66215
  this.next();
66216
66216
  if (this.match(21)) {
66217
66217
  children.push(this.jsxParseSpreadChild(node2));
66218
66218
  } else {
66219
- children.push(this.jsxParseExpressionContainer(node2, types11.j_expr));
66219
+ children.push(this.jsxParseExpressionContainer(node2, types12.j_expr));
66220
66220
  }
66221
66221
  break;
66222
66222
  }
@@ -66278,11 +66278,11 @@ var require_lib = __commonJS({
66278
66278
  }
66279
66279
  getTokenFromCode(code2) {
66280
66280
  const context = this.curContext();
66281
- if (context === types11.j_expr) {
66281
+ if (context === types12.j_expr) {
66282
66282
  this.jsxReadToken();
66283
66283
  return;
66284
66284
  }
66285
- if (context === types11.j_oTag || context === types11.j_cTag) {
66285
+ if (context === types12.j_oTag || context === types12.j_cTag) {
66286
66286
  if (isIdentifierStart(code2)) {
66287
66287
  this.jsxReadWord();
66288
66288
  return;
@@ -66292,7 +66292,7 @@ var require_lib = __commonJS({
66292
66292
  this.finishToken(144);
66293
66293
  return;
66294
66294
  }
66295
- if ((code2 === 34 || code2 === 39) && context === types11.j_oTag) {
66295
+ if ((code2 === 34 || code2 === 39) && context === types12.j_oTag) {
66296
66296
  this.jsxReadString(code2);
66297
66297
  return;
66298
66298
  }
@@ -66310,17 +66310,17 @@ var require_lib = __commonJS({
66310
66310
  type
66311
66311
  } = this.state;
66312
66312
  if (type === 56 && prevType === 143) {
66313
- context.splice(-2, 2, types11.j_cTag);
66313
+ context.splice(-2, 2, types12.j_cTag);
66314
66314
  this.state.canStartJSXElement = false;
66315
66315
  } else if (type === 143) {
66316
- context.push(types11.j_oTag);
66316
+ context.push(types12.j_oTag);
66317
66317
  } else if (type === 144) {
66318
66318
  const out = context[context.length - 1];
66319
- if (out === types11.j_oTag && prevType === 56 || out === types11.j_cTag) {
66319
+ if (out === types12.j_oTag && prevType === 56 || out === types12.j_cTag) {
66320
66320
  context.pop();
66321
- this.state.canStartJSXElement = context[context.length - 1] === types11.j_expr;
66321
+ this.state.canStartJSXElement = context[context.length - 1] === types12.j_expr;
66322
66322
  } else {
66323
- this.setContext(types11.j_expr);
66323
+ this.setContext(types12.j_expr);
66324
66324
  this.state.canStartJSXElement = true;
66325
66325
  }
66326
66326
  } else {
@@ -67706,14 +67706,14 @@ var require_lib = __commonJS({
67706
67706
  tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) {
67707
67707
  const node = this.startNode();
67708
67708
  const hasLeadingOperator = this.eat(operator);
67709
- const types12 = [];
67709
+ const types13 = [];
67710
67710
  do {
67711
- types12.push(parseConstituentType());
67711
+ types13.push(parseConstituentType());
67712
67712
  } while (this.eat(operator));
67713
- if (types12.length === 1 && !hasLeadingOperator) {
67714
- return types12[0];
67713
+ if (types13.length === 1 && !hasLeadingOperator) {
67714
+ return types13[0];
67715
67715
  }
67716
- node.types = types12;
67716
+ node.types = types13;
67717
67717
  return this.finishNode(node, kind);
67718
67718
  }
67719
67719
  tsParseIntersectionTypeOrHigher() {
@@ -68274,7 +68274,7 @@ var require_lib = __commonJS({
68274
68274
  }));
68275
68275
  if (node.params.length === 0) {
68276
68276
  this.raise(TSErrors.EmptyTypeArguments, node);
68277
- } else if (!this.state.inType && this.curContext() === types11.brace) {
68277
+ } else if (!this.state.inType && this.curContext() === types12.brace) {
68278
68278
  this.reScan_lt_gt();
68279
68279
  }
68280
68280
  this.expect(48);
@@ -68882,7 +68882,7 @@ var require_lib = __commonJS({
68882
68882
  context
68883
68883
  } = this.state;
68884
68884
  const currentContext = context[context.length - 1];
68885
- if (currentContext === types11.j_oTag || currentContext === types11.j_expr) {
68885
+ if (currentContext === types12.j_oTag || currentContext === types12.j_expr) {
68886
68886
  context.pop();
68887
68887
  }
68888
68888
  }
@@ -75341,9 +75341,9 @@ var stderr = process.stderr;
75341
75341
  // ../cli/dist/check-macos-version.mjs
75342
75342
  var import_node_os5 = __toESM(require("node:os"), 1);
75343
75343
 
75344
- // ../workers-utils/dist/chunk-IV7UMGT2.mjs
75344
+ // ../workers-utils/dist/chunk-QKX75RGI.mjs
75345
75345
  init_chunk_Q72B4Q5Z();
75346
- var DEFAULT_COMPAT_DATE = "2026-08-15";
75346
+ var DEFAULT_COMPAT_DATE = "2026-08-20";
75347
75347
  function assertNever(_value) {
75348
75348
  }
75349
75349
  __name(assertNever, "assertNever");
@@ -76000,15 +76000,15 @@ function hasKnownExportType(entry) {
76000
76000
  return type === "durable-object" || type === "worker";
76001
76001
  }
76002
76002
  __name(hasKnownExportType, "hasKnownExportType");
76003
- function partitionExports(exports2) {
76003
+ function partitionExports(exports$1) {
76004
76004
  const partitioned = {
76005
76005
  "durable-object": {},
76006
76006
  worker: {}
76007
76007
  };
76008
- if (exports2 === void 0) {
76008
+ if (exports$1 === void 0) {
76009
76009
  return partitioned;
76010
76010
  }
76011
- for (const [name3, entry] of Object.entries(exports2)) {
76011
+ for (const [name3, entry] of Object.entries(exports$1)) {
76012
76012
  if (!hasKnownExportType(entry)) {
76013
76013
  continue;
76014
76014
  }
@@ -76017,18 +76017,18 @@ function partitionExports(exports2) {
76017
76017
  return partitioned;
76018
76018
  }
76019
76019
  __name(partitionExports, "partitionExports");
76020
- function getDurableObjectExports(exports2) {
76021
- return partitionExports(exports2)["durable-object"];
76020
+ function getDurableObjectExports(exports$1) {
76021
+ return partitionExports(exports$1)["durable-object"];
76022
76022
  }
76023
76023
  __name(getDurableObjectExports, "getDurableObjectExports");
76024
- function hasDurableObjectExports(exports2) {
76025
- return Object.keys(getDurableObjectExports(exports2)).length > 0;
76024
+ function hasDurableObjectExports(exports$1) {
76025
+ return Object.keys(getDurableObjectExports(exports$1)).length > 0;
76026
76026
  }
76027
76027
  __name(hasDurableObjectExports, "hasDurableObjectExports");
76028
- function getContainerNameToClassNameMap(exports2) {
76028
+ function getContainerNameToClassNameMap(exports$1) {
76029
76029
  const containerNameToClassName = /* @__PURE__ */ new Map();
76030
76030
  for (const [className, entry] of Object.entries(
76031
- getDurableObjectExports(exports2)
76031
+ getDurableObjectExports(exports$1)
76032
76032
  )) {
76033
76033
  if ("container" in entry && typeof entry.container === "string" && !containerNameToClassName.has(entry.container)) {
76034
76034
  containerNameToClassName.set(entry.container, className);
@@ -76037,20 +76037,20 @@ function getContainerNameToClassNameMap(exports2) {
76037
76037
  return containerNameToClassName;
76038
76038
  }
76039
76039
  __name(getContainerNameToClassNameMap, "getContainerNameToClassNameMap");
76040
- function resolveContainerClassName(container, exports2) {
76040
+ function resolveContainerClassName(container, exports$1) {
76041
76041
  if (container.class_name !== void 0) {
76042
76042
  return container.class_name;
76043
76043
  }
76044
76044
  if (container.name === void 0) {
76045
76045
  return void 0;
76046
76046
  }
76047
- return getContainerNameToClassNameMap(exports2).get(container.name);
76047
+ return getContainerNameToClassNameMap(exports$1).get(container.name);
76048
76048
  }
76049
76049
  __name(resolveContainerClassName, "resolveContainerClassName");
76050
- function getContainerDurableObjectClassNames(containers, exports2) {
76050
+ function getContainerDurableObjectClassNames(containers, exports$1) {
76051
76051
  const classNames = /* @__PURE__ */ new Set();
76052
76052
  for (const container of containers ?? []) {
76053
- const className = resolveContainerClassName(container, exports2);
76053
+ const className = resolveContainerClassName(container, exports$1);
76054
76054
  if (className !== void 0) {
76055
76055
  classNames.add(className);
76056
76056
  }
@@ -78927,7 +78927,7 @@ var import_promises2 = require("node:timers/promises");
78927
78927
  var import_node_util2 = __toESM(require("node:util"), 1);
78928
78928
  var import_node_console = require("node:console");
78929
78929
  var require_vendors = __commonJS2({
78930
- "../../node_modules/.pnpm/ci-info@4.4.0/node_modules/ci-info/vendors.json"(exports2, module2) {
78930
+ "../../node_modules/.pnpm/ci-info@4.4.0/node_modules/ci-info/vendors.json"(exports$1, module2) {
78931
78931
  module2.exports = [
78932
78932
  {
78933
78933
  name: "Agola CI",
@@ -79294,33 +79294,33 @@ var require_vendors = __commonJS2({
79294
79294
  }
79295
79295
  });
79296
79296
  var require_ci_info = __commonJS2({
79297
- "../../node_modules/.pnpm/ci-info@4.4.0/node_modules/ci-info/index.js"(exports2) {
79297
+ "../../node_modules/.pnpm/ci-info@4.4.0/node_modules/ci-info/index.js"(exports$1) {
79298
79298
  var vendors = require_vendors();
79299
79299
  var env3 = process.env;
79300
- Object.defineProperty(exports2, "_vendors", {
79300
+ Object.defineProperty(exports$1, "_vendors", {
79301
79301
  value: vendors.map(function(v) {
79302
79302
  return v.constant;
79303
79303
  })
79304
79304
  });
79305
- exports2.name = null;
79306
- exports2.isPR = null;
79307
- exports2.id = null;
79305
+ exports$1.name = null;
79306
+ exports$1.isPR = null;
79307
+ exports$1.id = null;
79308
79308
  if (env3.CI !== "false") {
79309
79309
  vendors.forEach(function(vendor) {
79310
79310
  const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
79311
79311
  const isCI2 = envs.every(function(obj) {
79312
79312
  return checkEnv(obj);
79313
79313
  });
79314
- exports2[vendor.constant] = isCI2;
79314
+ exports$1[vendor.constant] = isCI2;
79315
79315
  if (!isCI2) {
79316
79316
  return;
79317
79317
  }
79318
- exports2.name = vendor.name;
79319
- exports2.isPR = checkPR(vendor);
79320
- exports2.id = vendor.constant;
79318
+ exports$1.name = vendor.name;
79319
+ exports$1.isPR = checkPR(vendor);
79320
+ exports$1.id = vendor.constant;
79321
79321
  });
79322
79322
  }
79323
- exports2.isCI = !!(env3.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
79323
+ exports$1.isCI = !!(env3.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
79324
79324
  (env3.BUILD_ID || // Jenkins, Cloudbees
79325
79325
  env3.BUILD_NUMBER || // Jenkins, TeamCity
79326
79326
  env3.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages/Workers
@@ -79330,7 +79330,7 @@ var require_ci_info = __commonJS2({
79330
79330
  env3.CI_NAME || // Codeship and others
79331
79331
  env3.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
79332
79332
  env3.RUN_ID || // TaskCluster, dsari
79333
- exports2.name || false));
79333
+ exports$1.name || false));
79334
79334
  function checkEnv(obj) {
79335
79335
  if (typeof obj === "string") return !!env3[obj];
79336
79336
  if ("env" in obj) {
@@ -79374,7 +79374,7 @@ var require_ci_info = __commonJS2({
79374
79374
  }
79375
79375
  });
79376
79376
  var require_command_exists = __commonJS2({
79377
- "../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js"(exports2, module2) {
79377
+ "../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js"(exports$1, module2) {
79378
79378
  var exec4 = __require("child_process").exec;
79379
79379
  var execSync = __require("child_process").execSync;
79380
79380
  var fs32 = __require("fs");
@@ -79482,9 +79482,9 @@ var require_command_exists = __commonJS2({
79482
79482
  cleanInput = /* @__PURE__ */ __name(function(s) {
79483
79483
  var isPathName = /[\\]/.test(s);
79484
79484
  if (isPathName) {
79485
- var dirname32 = '"' + path62.dirname(s) + '"';
79485
+ var dirname42 = '"' + path62.dirname(s) + '"';
79486
79486
  var basename22 = '"' + path62.basename(s) + '"';
79487
- return dirname32 + ":" + basename22;
79487
+ return dirname42 + ":" + basename22;
79488
79488
  }
79489
79489
  return '"' + s + '"';
79490
79490
  }, "cleanInput");
@@ -79492,10 +79492,10 @@ var require_command_exists = __commonJS2({
79492
79492
  module2.exports = /* @__PURE__ */ __name(function commandExists(commandName, callback) {
79493
79493
  var cleanedCommandName = cleanInput(commandName);
79494
79494
  if (!callback && typeof Promise !== "undefined") {
79495
- return new Promise(function(resolve22, reject) {
79495
+ return new Promise(function(resolve32, reject) {
79496
79496
  commandExists(commandName, function(error512, output) {
79497
79497
  if (output) {
79498
- resolve22(commandName);
79498
+ resolve32(commandName);
79499
79499
  } else {
79500
79500
  reject(error512);
79501
79501
  }
@@ -79519,16 +79519,16 @@ var require_command_exists = __commonJS2({
79519
79519
  }
79520
79520
  });
79521
79521
  var require_command_exists2 = __commonJS2({
79522
- "../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/index.js"(exports2, module2) {
79522
+ "../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/index.js"(exports$1, module2) {
79523
79523
  module2.exports = require_command_exists();
79524
79524
  }
79525
79525
  });
79526
79526
  var require_ini = __commonJS2({
79527
- "../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js"(exports2) {
79528
- exports2.parse = exports2.decode = decode3;
79529
- exports2.stringify = exports2.encode = encode3;
79530
- exports2.safe = safe;
79531
- exports2.unsafe = unsafe;
79527
+ "../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js"(exports$1) {
79528
+ exports$1.parse = exports$1.decode = decode3;
79529
+ exports$1.stringify = exports$1.encode = encode3;
79530
+ exports$1.safe = safe;
79531
+ exports$1.unsafe = unsafe;
79532
79532
  var eol = typeof process !== "undefined" && process.platform === "win32" ? "\r\n" : "\n";
79533
79533
  function encode3(obj, opt) {
79534
79534
  var children = [];
@@ -79690,7 +79690,7 @@ var require_ini = __commonJS2({
79690
79690
  }
79691
79691
  });
79692
79692
  var require_strip_json_comments = __commonJS2({
79693
- "../../node_modules/.pnpm/strip-json-comments@2.0.1/node_modules/strip-json-comments/index.js"(exports2, module2) {
79693
+ "../../node_modules/.pnpm/strip-json-comments@2.0.1/node_modules/strip-json-comments/index.js"(exports$1, module2) {
79694
79694
  var singleComment = 1;
79695
79695
  var multiComment = 2;
79696
79696
  function stripWithoutWhitespace() {
@@ -79756,17 +79756,17 @@ var require_strip_json_comments = __commonJS2({
79756
79756
  }
79757
79757
  });
79758
79758
  var require_utils2 = __commonJS2({
79759
- "../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js"(exports2) {
79759
+ "../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js"(exports$1) {
79760
79760
  var fs32 = __require("fs");
79761
79761
  var ini = require_ini();
79762
79762
  var path62 = __require("path");
79763
79763
  var stripJsonComments = require_strip_json_comments();
79764
- var parse32 = exports2.parse = function(content) {
79764
+ var parse32 = exports$1.parse = function(content) {
79765
79765
  if (/^\s*{/.test(content))
79766
79766
  return JSON.parse(stripJsonComments(content));
79767
79767
  return ini.parse(content);
79768
79768
  };
79769
- var file22 = exports2.file = function() {
79769
+ var file22 = exports$1.file = function() {
79770
79770
  var args = [].slice.call(arguments).filter(function(arg) {
79771
79771
  return arg != null;
79772
79772
  });
@@ -79780,11 +79780,11 @@ var require_utils2 = __commonJS2({
79780
79780
  return;
79781
79781
  }
79782
79782
  };
79783
- exports2.json = function() {
79783
+ exports$1.json = function() {
79784
79784
  var content = file22.apply(null, arguments);
79785
79785
  return content ? parse32(content) : null;
79786
79786
  };
79787
- exports2.env = function(prefix, env22) {
79787
+ exports$1.env = function(prefix, env22) {
79788
79788
  env22 = env22 || process.env;
79789
79789
  var obj = {};
79790
79790
  var l = prefix.length;
@@ -79809,7 +79809,7 @@ var require_utils2 = __commonJS2({
79809
79809
  }
79810
79810
  return obj;
79811
79811
  };
79812
- exports2.find = function() {
79812
+ exports$1.find = function() {
79813
79813
  var rel = path62.join.apply(null, [].slice.call(arguments));
79814
79814
  function find2(start, rel2) {
79815
79815
  var file3 = path62.join(start, rel2);
@@ -79827,7 +79827,7 @@ var require_utils2 = __commonJS2({
79827
79827
  }
79828
79828
  });
79829
79829
  var require_deep_extend = __commonJS2({
79830
- "../../node_modules/.pnpm/deep-extend@0.6.0/node_modules/deep-extend/lib/deep-extend.js"(exports2, module2) {
79830
+ "../../node_modules/.pnpm/deep-extend@0.6.0/node_modules/deep-extend/lib/deep-extend.js"(exports$1, module2) {
79831
79831
  function isSpecificValue(val) {
79832
79832
  return val instanceof Buffer || val instanceof Date || val instanceof RegExp ? true : false;
79833
79833
  }
@@ -79910,7 +79910,7 @@ var require_deep_extend = __commonJS2({
79910
79910
  }
79911
79911
  });
79912
79912
  var require_minimist = __commonJS2({
79913
- "../../node_modules/.pnpm/minimist@1.2.6/node_modules/minimist/index.js"(exports2, module2) {
79913
+ "../../node_modules/.pnpm/minimist@1.2.6/node_modules/minimist/index.js"(exports$1, module2) {
79914
79914
  module2.exports = function(args, opts) {
79915
79915
  if (!opts) opts = {};
79916
79916
  var flags = { bools: {}, strings: {}, unknownFn: null };
@@ -80111,7 +80111,7 @@ var require_minimist = __commonJS2({
80111
80111
  }
80112
80112
  });
80113
80113
  var require_rc = __commonJS2({
80114
- "../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/index.js"(exports2, module2) {
80114
+ "../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/index.js"(exports$1, module2) {
80115
80115
  var cc = require_utils2();
80116
80116
  var join32 = __require("path").join;
80117
80117
  var deepExtend = require_deep_extend();
@@ -80161,7 +80161,7 @@ var require_rc = __commonJS2({
80161
80161
  }
80162
80162
  });
80163
80163
  var require_registry_url = __commonJS2({
80164
- "../../node_modules/.pnpm/registry-url@3.1.0/node_modules/registry-url/index.js"(exports2, module2) {
80164
+ "../../node_modules/.pnpm/registry-url@3.1.0/node_modules/registry-url/index.js"(exports$1, module2) {
80165
80165
  module2.exports = function(scope) {
80166
80166
  var rc = require_rc()("npm", { registry: "https://registry.npmjs.org/" });
80167
80167
  var url2 = rc[scope + ":registry"] || rc.registry;
@@ -80170,7 +80170,7 @@ var require_registry_url = __commonJS2({
80170
80170
  }
80171
80171
  });
80172
80172
  var require_safe_buffer = __commonJS2({
80173
- "../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js"(exports2, module2) {
80173
+ "../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js"(exports$1, module2) {
80174
80174
  var buffer = __require("buffer");
80175
80175
  var Buffer22 = buffer.Buffer;
80176
80176
  function copyProps(src, dst) {
@@ -80182,8 +80182,8 @@ var require_safe_buffer = __commonJS2({
80182
80182
  if (Buffer22.from && Buffer22.alloc && Buffer22.allocUnsafe && Buffer22.allocUnsafeSlow) {
80183
80183
  module2.exports = buffer;
80184
80184
  } else {
80185
- copyProps(buffer, exports2);
80186
- exports2.Buffer = SafeBuffer;
80185
+ copyProps(buffer, exports$1);
80186
+ exports$1.Buffer = SafeBuffer;
80187
80187
  }
80188
80188
  function SafeBuffer(arg, encodingOrOffset, length) {
80189
80189
  return Buffer22(arg, encodingOrOffset, length);
@@ -80228,7 +80228,7 @@ var require_safe_buffer = __commonJS2({
80228
80228
  }
80229
80229
  });
80230
80230
  var require_base64 = __commonJS2({
80231
- "../../node_modules/.pnpm/registry-auth-token@3.3.2/node_modules/registry-auth-token/base64.js"(exports2, module2) {
80231
+ "../../node_modules/.pnpm/registry-auth-token@3.3.2/node_modules/registry-auth-token/base64.js"(exports$1, module2) {
80232
80232
  var safeBuffer = require_safe_buffer().Buffer;
80233
80233
  function decodeBase64(base643) {
80234
80234
  return safeBuffer.from(base643, "base64").toString("utf8");
@@ -80245,7 +80245,7 @@ var require_base64 = __commonJS2({
80245
80245
  }
80246
80246
  });
80247
80247
  var require_registry_auth_token = __commonJS2({
80248
- "../../node_modules/.pnpm/registry-auth-token@3.3.2/node_modules/registry-auth-token/index.js"(exports2, module2) {
80248
+ "../../node_modules/.pnpm/registry-auth-token@3.3.2/node_modules/registry-auth-token/index.js"(exports$1, module2) {
80249
80249
  var url2 = __require("url");
80250
80250
  var base643 = require_base64();
80251
80251
  var decodeBase64 = base643.decodeBase64;
@@ -80341,7 +80341,7 @@ var require_registry_auth_token = __commonJS2({
80341
80341
  }
80342
80342
  });
80343
80343
  var require_update_check = __commonJS2({
80344
- "../../node_modules/.pnpm/update-check@1.5.4/node_modules/update-check/index.js"(exports2, module2) {
80344
+ "../../node_modules/.pnpm/update-check@1.5.4/node_modules/update-check/index.js"(exports$1, module2) {
80345
80345
  var { URL: URL2 } = __require("url");
80346
80346
  var { join: join32 } = __require("path");
80347
80347
  var fs32 = __require("fs");
@@ -80389,7 +80389,7 @@ var require_update_check = __commonJS2({
80389
80389
  });
80390
80390
  await writeFile4(file22, content, "utf8");
80391
80391
  }, "updateCache");
80392
- var loadPackage = /* @__PURE__ */ __name((url2, authInfo) => new Promise((resolve22, reject) => {
80392
+ var loadPackage = /* @__PURE__ */ __name((url2, authInfo) => new Promise((resolve32, reject) => {
80393
80393
  const options = {
80394
80394
  host: url2.hostname,
80395
80395
  path: url2.pathname,
@@ -80420,7 +80420,7 @@ var require_update_check = __commonJS2({
80420
80420
  response.on("end", () => {
80421
80421
  try {
80422
80422
  const parsedData = JSON.parse(rawData);
80423
- resolve22(parsedData);
80423
+ resolve32(parsedData);
80424
80424
  } catch (e2) {
80425
80425
  reject(e2);
80426
80426
  }
@@ -80548,6 +80548,7 @@ var defaultWranglerConfig = {
80548
80548
  consumers: []
80549
80549
  // WORKERS SUPPORT ONLY!!
80550
80550
  },
80551
+ connect: [],
80551
80552
  r2_buckets: [],
80552
80553
  d1_databases: [],
80553
80554
  vectorize: [],
@@ -91820,10 +91821,10 @@ function _property(property, schema, params) {
91820
91821
  }
91821
91822
  __name(_property, "_property");
91822
91823
  // @__NO_SIDE_EFFECTS__
91823
- function _mime(types11, params) {
91824
+ function _mime(types12, params) {
91824
91825
  return new $ZodCheckMimeType({
91825
91826
  check: "mime_type",
91826
- mime: types11,
91827
+ mime: types12,
91827
91828
  ...normalizeParams(params)
91828
91829
  });
91829
91830
  }
@@ -94545,7 +94546,7 @@ var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
94545
94546
  inst._zod.processJSONSchema = (ctx, json2, params) => fileProcessor(inst, ctx, json2, params);
94546
94547
  inst.min = (size, params) => inst.check(/* @__PURE__ */ _minSize(size, params));
94547
94548
  inst.max = (size, params) => inst.check(/* @__PURE__ */ _maxSize(size, params));
94548
- inst.mime = (types11, params) => inst.check(/* @__PURE__ */ _mime(Array.isArray(types11) ? types11 : [types11], params));
94549
+ inst.mime = (types12, params) => inst.check(/* @__PURE__ */ _mime(Array.isArray(types12) ? types12 : [types12], params));
94549
94550
  });
94550
94551
  function file2(params) {
94551
94552
  return /* @__PURE__ */ _file(ZodFile, params);
@@ -97350,6 +97351,16 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
97350
97351
  validateQueues(envName),
97351
97352
  { producers: [], consumers: [] }
97352
97353
  ),
97354
+ connect: notInheritable(
97355
+ diagnostics,
97356
+ topLevelEnv,
97357
+ rawConfig,
97358
+ rawEnv,
97359
+ envName,
97360
+ "connect",
97361
+ validateConnectHandlers(envName),
97362
+ []
97363
+ ),
97353
97364
  r2_buckets: notInheritable(
97354
97365
  diagnostics,
97355
97366
  topLevelEnv,
@@ -97753,7 +97764,7 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
97753
97764
  topLevelEnv,
97754
97765
  rawEnv,
97755
97766
  "previews",
97756
- validatePreviewsConfig(envName),
97767
+ validatePreviewsConfig(envName, configPath),
97757
97768
  void 0
97758
97769
  )
97759
97770
  };
@@ -98306,14 +98317,6 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
98306
98317
  );
98307
98318
  isValid = false;
98308
98319
  }
98309
- if (!isOptionalProperty(value, "remote", "boolean")) {
98310
- diagnostics.errors.push(
98311
- `"${field}" bindings should, optionally, have a boolean "remote" field but got ${JSON.stringify(
98312
- value
98313
- )}.`
98314
- );
98315
- isValid = false;
98316
- }
98317
98320
  if (hasProperty(value, "schedules") && value.schedules !== void 0) {
98318
98321
  if (typeof value.schedules === "string") {
98319
98322
  if (value.schedules.length === 0) {
@@ -98387,7 +98390,6 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
98387
98390
  "name",
98388
98391
  "class_name",
98389
98392
  "script_name",
98390
- "remote",
98391
98393
  "limits",
98392
98394
  "schedules"
98393
98395
  ]);
@@ -98702,7 +98704,48 @@ function validateSshPublicKeys(diagnostics, field, value, nameRequired) {
98702
98704
  }
98703
98705
  }
98704
98706
  __name(validateSshPublicKeys, "validateSshPublicKeys");
98705
- function validateContainerApp(envName, topLevelName, configPath) {
98707
+ function validatePreviewsContainers(envName, configPath) {
98708
+ const innerValidator = validateContainerApp(envName, void 0, configPath, {
98709
+ generateDefaultName: false
98710
+ });
98711
+ return (diagnostics, field, value, config210) => {
98712
+ if (Array.isArray(value)) {
98713
+ const nameFields = [...value.entries()].filter(
98714
+ ([, entry]) => entry && typeof entry === "object" && "name" in entry
98715
+ ).map(([index]) => `"${field}[${index}].name"`);
98716
+ if (nameFields.length > 0) {
98717
+ diagnostics.errors.push(
98718
+ `${nameFields.join(", ")} cannot be set. A preview container's application name is generated from the worker name, preview slug, and Durable Object class name, so that separate previews of the same Worker do not collide. Remove it and identify the container with "class_name".`
98719
+ );
98720
+ return false;
98721
+ }
98722
+ const seenClasses = /* @__PURE__ */ new Set();
98723
+ const duplicateClasses = /* @__PURE__ */ new Set();
98724
+ for (const entry of value) {
98725
+ if (!entry || typeof entry !== "object") {
98726
+ continue;
98727
+ }
98728
+ if (typeof entry.class_name === "string") {
98729
+ if (seenClasses.has(entry.class_name)) {
98730
+ duplicateClasses.add(entry.class_name);
98731
+ }
98732
+ seenClasses.add(entry.class_name);
98733
+ }
98734
+ }
98735
+ if (duplicateClasses.size > 0) {
98736
+ const classList = [...duplicateClasses].map((className) => `"${className}"`).join(", ");
98737
+ diagnostics.errors.push(
98738
+ `"${field}" declares more than one container for the Durable Object class ${classList}; each Durable Object class may appear at most once.`
98739
+ );
98740
+ return false;
98741
+ }
98742
+ }
98743
+ return innerValidator(diagnostics, field, value, config210);
98744
+ };
98745
+ }
98746
+ __name(validatePreviewsContainers, "validatePreviewsContainers");
98747
+ function validateContainerApp(envName, topLevelName, configPath, options = {}) {
98748
+ const { generateDefaultName = true } = options;
98706
98749
  return (diagnostics, field, value, config210) => {
98707
98750
  if (!value) {
98708
98751
  return true;
@@ -98728,7 +98771,7 @@ function validateContainerApp(envName, topLevelName, configPath) {
98728
98771
  containerAppOptional.name,
98729
98772
  "string"
98730
98773
  );
98731
- if (!containerAppOptional.name) {
98774
+ if (generateDefaultName && !containerAppOptional.name) {
98732
98775
  if (containerAppOptional.class_name === void 0) {
98733
98776
  diagnostics.errors.push(
98734
98777
  `"containers.name" is required when "containers.class_name" is not defined, because there is no class name to derive a default name from. Either name this container and reference it from a Durable Object's \`exports\` entry, or set "containers.class_name".`
@@ -100137,6 +100180,108 @@ var validateConsumer = /* @__PURE__ */ __name((diagnostics, field, value, _confi
100137
100180
  }
100138
100181
  return isValid;
100139
100182
  }, "validateConsumer");
100183
+ function validateConnectHandlers(envName) {
100184
+ return (diagnostics, field, value, config210) => {
100185
+ if (value === void 0) {
100186
+ return true;
100187
+ }
100188
+ const fieldPath = config210 === void 0 ? `${field}` : `env.${envName}.${field}`;
100189
+ if (!Array.isArray(value)) {
100190
+ diagnostics.errors.push(
100191
+ `The field "${fieldPath}" should be an array but got ${JSON.stringify(
100192
+ value
100193
+ )}.`
100194
+ );
100195
+ return false;
100196
+ }
100197
+ let isValid = true;
100198
+ for (let i = 0; i < value.length; i++) {
100199
+ if (!validateConnectHandler(
100200
+ diagnostics,
100201
+ `${fieldPath}[${i}]`,
100202
+ value[i],
100203
+ config210
100204
+ )) {
100205
+ isValid = false;
100206
+ }
100207
+ }
100208
+ const firstIndexByKey = /* @__PURE__ */ new Map();
100209
+ for (let i = 0; i < value.length; i++) {
100210
+ const handler = value[i];
100211
+ if (typeof handler !== "object" || handler === null || typeof handler.port !== "number" || typeof handler.protocol !== "string") {
100212
+ continue;
100213
+ }
100214
+ const { protocol, port } = handler;
100215
+ const key = `${protocol}:${port}`;
100216
+ const firstIndex = firstIndexByKey.get(key);
100217
+ if (firstIndex !== void 0) {
100218
+ diagnostics.errors.push(
100219
+ `"${fieldPath}[${i}]" has the same "protocol" (${protocol}) and "port" (${port}) as "${fieldPath}[${firstIndex}]". Each entry in "connect" must use a unique protocol/port combination.`
100220
+ );
100221
+ isValid = false;
100222
+ } else {
100223
+ firstIndexByKey.set(key, i);
100224
+ }
100225
+ }
100226
+ return isValid;
100227
+ };
100228
+ }
100229
+ __name(validateConnectHandlers, "validateConnectHandlers");
100230
+ var validateConnectHandler = /* @__PURE__ */ __name((diagnostics, field, value) => {
100231
+ if (typeof value !== "object" || value === null) {
100232
+ diagnostics.errors.push(
100233
+ `"${field}" should be an object, but got ${JSON.stringify(value)}`
100234
+ );
100235
+ return false;
100236
+ }
100237
+ let isValid = true;
100238
+ if (!validateAdditionalProperties(diagnostics, field, Object.keys(value), [
100239
+ "protocol",
100240
+ "port",
100241
+ "address"
100242
+ ])) {
100243
+ isValid = false;
100244
+ }
100245
+ if ("protocol" in value && value.protocol !== "tcp") {
100246
+ diagnostics.errors.push(
100247
+ `"${field}" should have a "protocol" field of "tcp" but got ${JSON.stringify(
100248
+ value.protocol
100249
+ )}.`
100250
+ );
100251
+ isValid = false;
100252
+ } else if (!("protocol" in value)) {
100253
+ diagnostics.errors.push(
100254
+ `"${field}" should have a "protocol" field of "tcp" but got ${JSON.stringify(
100255
+ value
100256
+ )}.`
100257
+ );
100258
+ isValid = false;
100259
+ }
100260
+ if (!isRequiredProperty(value, "port", "number")) {
100261
+ diagnostics.errors.push(
100262
+ `"${field}" should have a number "port" field but got ${JSON.stringify(
100263
+ value
100264
+ )}.`
100265
+ );
100266
+ isValid = false;
100267
+ } else if (!Number.isInteger(value.port) || value.port < 1 || value.port > 65535) {
100268
+ diagnostics.errors.push(
100269
+ `"${field}" should have an integer "port" field between 1 and 65535 but got ${JSON.stringify(
100270
+ value
100271
+ )}.`
100272
+ );
100273
+ isValid = false;
100274
+ }
100275
+ if (!isOptionalProperty(value, "address", "string")) {
100276
+ diagnostics.errors.push(
100277
+ `"${field}" should, optionally, have a string "address" field but got ${JSON.stringify(
100278
+ value
100279
+ )}.`
100280
+ );
100281
+ isValid = false;
100282
+ }
100283
+ return isValid;
100284
+ }, "validateConnectHandler");
100140
100285
  var validateCompatibilityDate = /* @__PURE__ */ __name((diagnostics, field, value) => {
100141
100286
  if (value === void 0) {
100142
100287
  return true;
@@ -100446,7 +100591,7 @@ function normalizeAndValidateLimits(diagnostics, topLevelEnv, rawEnv) {
100446
100591
  );
100447
100592
  }
100448
100593
  __name(normalizeAndValidateLimits, "normalizeAndValidateLimits");
100449
- var validatePreviewsConfig = /* @__PURE__ */ __name((envName) => (diagnostics, field, value) => {
100594
+ var validatePreviewsConfig = /* @__PURE__ */ __name((envName, configPath) => (diagnostics, field, value) => {
100450
100595
  if (value === void 0) {
100451
100596
  return true;
100452
100597
  }
@@ -100493,6 +100638,7 @@ var validatePreviewsConfig = /* @__PURE__ */ __name((envName) => (diagnostics, f
100493
100638
  "ratelimits",
100494
100639
  "vpc_services",
100495
100640
  "version_metadata",
100641
+ "containers",
100496
100642
  "logpush",
100497
100643
  "observability",
100498
100644
  "limits",
@@ -100702,6 +100848,14 @@ var validatePreviewsConfig = /* @__PURE__ */ __name((envName) => (diagnostics, f
100702
100848
  void 0
100703
100849
  ) && isValid;
100704
100850
  }
100851
+ if (previews.containers !== void 0) {
100852
+ isValid = validatePreviewsContainers(envName, configPath)(
100853
+ diagnostics,
100854
+ `${field}.containers`,
100855
+ previews.containers,
100856
+ void 0
100857
+ ) && isValid;
100858
+ }
100705
100859
  isValid = isBoolean(diagnostics, `${field}.logpush`, previews.logpush, void 0) && isValid;
100706
100860
  isValid = validateObservability(
100707
100861
  diagnostics,
@@ -101282,7 +101436,7 @@ var validateCache = /* @__PURE__ */ __name((diagnostics, field, value) => {
101282
101436
  ]) && isValid;
101283
101437
  return isValid;
101284
101438
  }, "validateCache");
101285
- function warnIfDurableObjectsHaveNoLifecycleConfig(diagnostics, durableObjects, migrations, exports2, configPath) {
101439
+ function warnIfDurableObjectsHaveNoLifecycleConfig(diagnostics, durableObjects, migrations, exports$1, configPath) {
101286
101440
  if (!Array.isArray(durableObjects.bindings) || durableObjects.bindings.length === 0) {
101287
101441
  return;
101288
101442
  }
@@ -101290,7 +101444,7 @@ function warnIfDurableObjectsHaveNoLifecycleConfig(diagnostics, durableObjects,
101290
101444
  (binding) => !binding.script_name
101291
101445
  );
101292
101446
  const exportsCovers = /* @__PURE__ */ __name((className) => {
101293
- const entry = exports2?.[className];
101447
+ const entry = exports$1?.[className];
101294
101448
  if (entry === void 0 || entry.type !== "durable-object") {
101295
101449
  return false;
101296
101450
  }
@@ -101326,15 +101480,15 @@ function warnIfDurableObjectsHaveNoLifecycleConfig(diagnostics, durableObjects,
101326
101480
  \`\`\``);
101327
101481
  }
101328
101482
  __name(warnIfDurableObjectsHaveNoLifecycleConfig, "warnIfDurableObjectsHaveNoLifecycleConfig");
101329
- function errorIfMigrationsAndExportsBothSet(diagnostics, migrations, exports2) {
101330
- if (migrations.length > 0 && exports2 !== void 0 && Object.values(exports2).some((entry) => entry.type === "durable-object")) {
101483
+ function errorIfMigrationsAndExportsBothSet(diagnostics, migrations, exports$1) {
101484
+ if (migrations.length > 0 && exports$1 !== void 0 && Object.values(exports$1).some((entry) => entry.type === "durable-object")) {
101331
101485
  diagnostics.errors.push(
101332
101486
  `\`migrations\` and \`exports\` are mutually exclusive. Choose one or the other to declare your Durable Object lifecycle, but not both.`
101333
101487
  );
101334
101488
  }
101335
101489
  }
101336
101490
  __name(errorIfMigrationsAndExportsBothSet, "errorIfMigrationsAndExportsBothSet");
101337
- function validateContainerExportLinks(diagnostics, containers, exports2, containersDeclaredElsewhere) {
101491
+ function validateContainerExportLinks(diagnostics, containers, exports$1, containersDeclaredElsewhere) {
101338
101492
  if (containers !== void 0 && !Array.isArray(containers)) {
101339
101493
  return;
101340
101494
  }
@@ -101376,7 +101530,7 @@ function validateContainerExportLinks(diagnostics, containers, exports2, contain
101376
101530
  `More than one container is attached to the Durable Object "${className}". A Durable Object can only have one container attached to it.`
101377
101531
  );
101378
101532
  }
101379
- const durableObjectExports = getDurableObjectExports(exports2);
101533
+ const durableObjectExports = getDurableObjectExports(exports$1);
101380
101534
  const liveExportClassNames = /* @__PURE__ */ new Set();
101381
101535
  const classNamesByContainerName = /* @__PURE__ */ new Map();
101382
101536
  for (const [className, entry] of Object.entries(durableObjectExports)) {
@@ -101405,7 +101559,7 @@ function validateContainerExportLinks(diagnostics, containers, exports2, contain
101405
101559
  );
101406
101560
  }
101407
101561
  }
101408
- const containerNameToClassName = getContainerNameToClassNameMap(exports2);
101562
+ const containerNameToClassName = getContainerNameToClassNameMap(exports$1);
101409
101563
  const usesDurableObjectExports = Object.keys(durableObjectExports).length > 0;
101410
101564
  for (const container of containers ?? []) {
101411
101565
  if (typeof container.name !== "string") {
@@ -101545,7 +101699,7 @@ var BINDING_LOCAL_SUPPORT = {
101545
101699
  kv_namespace: "local-and-remote",
101546
101700
  r2_bucket: "local-and-remote",
101547
101701
  d1: "local-and-remote",
101548
- workflow: "local-and-remote",
101702
+ workflow: "local-only",
101549
101703
  browser: "local-and-remote",
101550
101704
  images: "local-and-remote",
101551
101705
  stream: "local-and-remote",
@@ -101722,6 +101876,18 @@ function getPackagePath(packageName, projectPath) {
101722
101876
  );
101723
101877
  } catch {
101724
101878
  }
101879
+ try {
101880
+ const candidate = import_node_path4.default.join(
101881
+ projectPath,
101882
+ "node_modules",
101883
+ packageName,
101884
+ "package.json"
101885
+ );
101886
+ if ((0, import_node_fs4.statSync)(candidate).isFile()) {
101887
+ return import_node_path4.default.dirname(candidate);
101888
+ }
101889
+ } catch {
101890
+ }
101725
101891
  return void 0;
101726
101892
  }
101727
101893
  __name(getPackagePath, "getPackagePath");
@@ -102920,7 +103086,7 @@ function terminateCloudflared(cloudflared) {
102920
103086
  }
102921
103087
  __name(terminateCloudflared, "terminateCloudflared");
102922
103088
  function waitForQuickTunnelReady(cloudflared, timeoutMs, options) {
102923
- return new Promise((resolve22, reject) => {
103089
+ return new Promise((resolve32, reject) => {
102924
103090
  let resolved = false;
102925
103091
  let stderrOutput = "";
102926
103092
  const logger = options?.logger;
@@ -102948,7 +103114,7 @@ function waitForQuickTunnelReady(cloudflared, timeoutMs, options) {
102948
103114
  if (match && !resolved) {
102949
103115
  resolved = true;
102950
103116
  clearTimeout(timeoutId);
102951
- resolve22({ mode: "quick", publicUrl: new URL(match[0]) });
103117
+ resolve32({ mode: "quick", publicUrl: new URL(match[0]) });
102952
103118
  }
102953
103119
  });
102954
103120
  }
@@ -103451,6 +103617,41 @@ ${url2}`
103451
103617
  logger.debug(err instanceof Error ? err.stack ?? String(err) : String(err));
103452
103618
  }
103453
103619
  __name(handleBrowserOpenError, "handleBrowserOpenError");
103620
+ function writeOutput(entry) {
103621
+ if (outputFilePath === void 0) {
103622
+ outputFilePath = getOutputFilePath();
103623
+ }
103624
+ if (outputFilePath !== null) {
103625
+ (0, import_node_fs4.mkdirSync)((0, import_node_path4.dirname)(outputFilePath), { recursive: true });
103626
+ const entryJSON = JSON.stringify({
103627
+ ...entry,
103628
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
103629
+ });
103630
+ (0, import_node_fs4.appendFileSync)(outputFilePath, entryJSON + "\n");
103631
+ }
103632
+ }
103633
+ __name(writeOutput, "writeOutput");
103634
+ function clearOutputFilePath() {
103635
+ outputFilePath = void 0;
103636
+ }
103637
+ __name(clearOutputFilePath, "clearOutputFilePath");
103638
+ var outputFilePath = void 0;
103639
+ function getOutputFilePath() {
103640
+ const outputFilePathFromEnv = getOutputFilePathFromEnv();
103641
+ if (outputFilePathFromEnv) {
103642
+ return outputFilePathFromEnv;
103643
+ }
103644
+ const outputFileDirectoryFromEnv = getOutputFileDirectoryFromEnv();
103645
+ if (outputFileDirectoryFromEnv) {
103646
+ const date5 = (/* @__PURE__ */ new Date()).toISOString().replaceAll(":", "-").replace(".", "_").replace("T", "_").replace("Z", "");
103647
+ return (0, import_node_path4.resolve)(
103648
+ outputFileDirectoryFromEnv,
103649
+ `wrangler-output-${date5}-${(0, import_node_crypto.randomBytes)(3).toString("hex")}.json`
103650
+ );
103651
+ }
103652
+ return null;
103653
+ }
103654
+ __name(getOutputFilePath, "getOutputFilePath");
103454
103655
  var MAX_ATTEMPTS = 3;
103455
103656
  var MAX_RETRY_AFTER_MS = 6e4;
103456
103657
  async function retryOnAPIFailure(action, logger, backoff = 0, attempts = MAX_ATTEMPTS, abortSignal) {
@@ -107439,13 +107640,13 @@ var y18n_default = y18n2;
107439
107640
  var import_meta2 = {};
107440
107641
  var REQUIRE_ERROR = "require is not supported by ESM";
107441
107642
  var REQUIRE_DIRECTORY_ERROR = "loading a directory of commands is not supported yet for ESM";
107442
- var __dirname3;
107643
+ var __dirname2;
107443
107644
  try {
107444
- __dirname3 = (0, import_url.fileURLToPath)(import_meta2.url);
107645
+ __dirname2 = (0, import_url.fileURLToPath)(import_meta2.url);
107445
107646
  } catch (e) {
107446
- __dirname3 = process.cwd();
107647
+ __dirname2 = process.cwd();
107447
107648
  }
107448
- var mainFilename = __dirname3.substring(0, __dirname3.lastIndexOf("node_modules"));
107649
+ var mainFilename = __dirname2.substring(0, __dirname2.lastIndexOf("node_modules"));
107449
107650
  var esm_default2 = {
107450
107651
  assert: {
107451
107652
  notStrictEqual: import_assert.notStrictEqual,
@@ -107490,7 +107691,7 @@ var esm_default2 = {
107490
107691
  return [...str].length;
107491
107692
  },
107492
107693
  y18n: y18n_default({
107493
- directory: (0, import_path4.resolve)(__dirname3, "../../../locales"),
107694
+ directory: (0, import_path4.resolve)(__dirname2, "../../../locales"),
107494
107695
  updateFiles: false
107495
107696
  })
107496
107697
  };
@@ -110768,7 +110969,7 @@ var Yargs = YargsFactory(esm_default2);
110768
110969
  var yargs_default = Yargs;
110769
110970
 
110770
110971
  // package.json
110771
- var version2 = "2.72.1";
110972
+ var version2 = "2.72.2";
110772
110973
 
110773
110974
  // src/metrics.ts
110774
110975
  var import_node_async_hooks = require("node:async_hooks");
@@ -112914,8 +113115,8 @@ var is_in_ssh_default2 = isInSsh2;
112914
113115
  // ../../node_modules/.pnpm/open@11.0.0/node_modules/open/index.js
112915
113116
  var import_meta3 = {};
112916
113117
  var fallbackAttemptSymbol2 = /* @__PURE__ */ Symbol("fallbackAttempt");
112917
- var __dirname4 = import_meta3.url ? import_node_path12.default.dirname((0, import_node_url3.fileURLToPath)(import_meta3.url)) : "";
112918
- var localXdgOpenPath2 = import_node_path12.default.join(__dirname4, "xdg-open");
113118
+ var __dirname3 = import_meta3.url ? import_node_path12.default.dirname((0, import_node_url3.fileURLToPath)(import_meta3.url)) : "";
113119
+ var localXdgOpenPath2 = import_node_path12.default.join(__dirname3, "xdg-open");
112919
113120
  var { platform: platform2, arch: arch3 } = import_node_process14.default;
112920
113121
  var tryEachApp2 = async (apps3, opener) => {
112921
113122
  if (apps3.length === 0) {
@@ -113060,7 +113261,7 @@ var baseOpen2 = async (options) => {
113060
113261
  if (app) {
113061
113262
  command2 = app;
113062
113263
  } else {
113063
- const isBundled = !__dirname4 || __dirname4 === "/";
113264
+ const isBundled = !__dirname3 || __dirname3 === "/";
113064
113265
  let exeLocalXdgOpen = false;
113065
113266
  try {
113066
113267
  await import_promises6.default.access(localXdgOpenPath2, import_promises6.constants.X_OK);
@@ -113252,16 +113453,16 @@ var WRANGLER_DEFAULTS = {
113252
113453
  deploy: false
113253
113454
  };
113254
113455
 
113255
- // ../codemod/dist/index.mjs
113456
+ // ../shared-ast-primitives/dist/index.mjs
113256
113457
  var import_node_fs15 = require("node:fs");
113257
113458
  var import_node_path13 = __toESM(require("node:path"), 1);
113258
113459
  var recast = __toESM(require_main2(), 1);
113460
+ var import_recast = __toESM(require_main2(), 1);
113259
113461
  var esprimaParser = __toESM(require_esprima3(), 1);
113260
113462
  var typescriptParser = __toESM(require_typescript2(), 1);
113261
113463
  var __defProp3 = Object.defineProperty;
113262
113464
  var __name2 = (target, value) => __defProp3(target, "name", { value, configurable: true });
113263
113465
  function parseJs(src) {
113264
- src = src.trim();
113265
113466
  try {
113266
113467
  return recast.parse(src, { parser: esprimaParser });
113267
113468
  } catch {
@@ -113270,7 +113471,6 @@ function parseJs(src) {
113270
113471
  }
113271
113472
  __name2(parseJs, "parseJs");
113272
113473
  function parseTs(src) {
113273
- src = src.trim();
113274
113474
  try {
113275
113475
  return recast.parse(src, { parser: typescriptParser });
113276
113476
  } catch {
@@ -113363,8 +113563,8 @@ var package_default = {
113363
113563
  "create-qwik": "1.20.0",
113364
113564
  "create-react-router": "8.3.0",
113365
113565
  "create-rwsdk": "3.1.3",
113366
- "create-solid": "0.10.0",
113367
- "create-vike": "0.0.675",
113566
+ "create-solid": "0.11.0",
113567
+ "create-vike": "0.0.677",
113368
113568
  "create-vinext-app": "1.0.0-beta.2",
113369
113569
  "create-vite": "9.1.2",
113370
113570
  "create-vue": "3.23.0",
@@ -115958,7 +116158,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
115958
116158
  var import_node_assert6 = __toESM(require("node:assert"));
115959
116159
 
115960
116160
  // ../wrangler/package.json
115961
- var version3 = "4.124.0";
116161
+ var version3 = "4.125.0";
115962
116162
 
115963
116163
  // src/git.ts
115964
116164
  var offerGit = async (ctx) => {