@carbon/upgrade 11.2.0 → 11.3.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +29 -2
  2. package/cli.js +1431 -700
  3. package/package.json +3 -3
package/cli.js CHANGED
@@ -1,32 +1,16 @@
1
1
  var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
5
  var __getProtoOf = Object.getPrototypeOf;
9
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a, b) => {
13
- for (var prop in b || (b = {}))
14
- if (__hasOwnProp.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b)) {
18
- if (__propIsEnum.call(b, prop))
19
- __defNormalProp(a, prop, b[prop]);
20
- }
21
- return a;
22
- };
23
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
8
  var __commonJS = (cb, mod) => function __require() {
25
9
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
26
10
  };
27
11
  var __export = (target, all) => {
28
- for (var name2 in all)
29
- __defProp(target, name2, { get: all[name2], enumerable: true });
12
+ for (var name in all)
13
+ __defProp(target, name, { get: all[name], enumerable: true });
30
14
  };
31
15
  var __copyProps = (to, from, except, desc) => {
32
16
  if (from && typeof from === "object" || typeof from === "function") {
@@ -36,7 +20,10 @@ var __copyProps = (to, from, except, desc) => {
36
20
  }
37
21
  return to;
38
22
  };
39
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
40
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
28
  var __publicField = (obj, key, value) => {
42
29
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1041,11 +1028,11 @@ var require_ansi_styles = __commonJS({
1041
1028
  const offset = isBackground ? 10 : 0;
1042
1029
  const styles = {};
1043
1030
  for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
1044
- const name2 = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
1031
+ const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
1045
1032
  if (sourceSpace === targetSpace) {
1046
- styles[name2] = wrap(identity, offset);
1033
+ styles[name] = wrap(identity, offset);
1047
1034
  } else if (typeof suite === "object") {
1048
- styles[name2] = wrap(suite[targetSpace], offset);
1035
+ styles[name] = wrap(suite[targetSpace], offset);
1049
1036
  }
1050
1037
  }
1051
1038
  return styles;
@@ -1226,10 +1213,10 @@ var require_supports_color = __commonJS({
1226
1213
  return 3;
1227
1214
  }
1228
1215
  if ("TERM_PROGRAM" in env) {
1229
- const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1216
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1230
1217
  switch (env.TERM_PROGRAM) {
1231
1218
  case "iTerm.app":
1232
- return version2 >= 3 ? 3 : 2;
1219
+ return version >= 3 ? 3 : 2;
1233
1220
  case "Apple_Terminal":
1234
1221
  return 2;
1235
1222
  }
@@ -1327,7 +1314,7 @@ var require_templates = __commonJS({
1327
1314
  }
1328
1315
  return ESCAPES.get(c) || c;
1329
1316
  }
1330
- function parseArguments(name2, arguments_) {
1317
+ function parseArguments(name, arguments_) {
1331
1318
  const results = [];
1332
1319
  const chunks = arguments_.trim().split(/\s*,\s*/g);
1333
1320
  let matches;
@@ -1338,7 +1325,7 @@ var require_templates = __commonJS({
1338
1325
  } else if (matches = chunk.match(STRING_REGEX)) {
1339
1326
  results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
1340
1327
  } else {
1341
- throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name2}')`);
1328
+ throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
1342
1329
  }
1343
1330
  }
1344
1331
  return results;
@@ -1348,12 +1335,12 @@ var require_templates = __commonJS({
1348
1335
  const results = [];
1349
1336
  let matches;
1350
1337
  while ((matches = STYLE_REGEX.exec(style)) !== null) {
1351
- const name2 = matches[1];
1338
+ const name = matches[1];
1352
1339
  if (matches[2]) {
1353
- const args = parseArguments(name2, matches[2]);
1354
- results.push([name2].concat(args));
1340
+ const args = parseArguments(name, matches[2]);
1341
+ results.push([name].concat(args));
1355
1342
  } else {
1356
- results.push([name2]);
1343
+ results.push([name]);
1357
1344
  }
1358
1345
  }
1359
1346
  return results;
@@ -1496,7 +1483,8 @@ var require_source = __commonJS({
1496
1483
  };
1497
1484
  }
1498
1485
  var proto = Object.defineProperties(() => {
1499
- }, __spreadProps(__spreadValues({}, styles), {
1486
+ }, {
1487
+ ...styles,
1500
1488
  level: {
1501
1489
  enumerable: true,
1502
1490
  get() {
@@ -1506,7 +1494,7 @@ var require_source = __commonJS({
1506
1494
  this._generator.level = level;
1507
1495
  }
1508
1496
  }
1509
- }));
1497
+ });
1510
1498
  var createStyler = (open, close, parent) => {
1511
1499
  let openAll;
1512
1500
  let closeAll;
@@ -1568,7 +1556,10 @@ var require_source = __commonJS({
1568
1556
  const arguments_ = strings.slice(1);
1569
1557
  const parts = [firstString.raw[0]];
1570
1558
  for (let i = 1; i < firstString.length; i++) {
1571
- parts.push(String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"), String(firstString.raw[i]));
1559
+ parts.push(
1560
+ String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
1561
+ String(firstString.raw[i])
1562
+ );
1572
1563
  }
1573
1564
  if (template === void 0) {
1574
1565
  template = require_templates();
@@ -2802,9 +2793,9 @@ var require_enoent = __commonJS({
2802
2793
  return;
2803
2794
  }
2804
2795
  originalEmit = cp.emit;
2805
- cp.emit = function(name2, arg1) {
2796
+ cp.emit = function(name, arg1) {
2806
2797
  var err;
2807
- if (name2 === "exit") {
2798
+ if (name === "exit") {
2808
2799
  err = verifyENOENT(arg1, parsed, "spawn");
2809
2800
  if (err) {
2810
2801
  return originalEmit.call(cp, "error", err);
@@ -3875,7 +3866,10 @@ var require_minimatch = __commonJS({
3875
3866
  };
3876
3867
  Minimatch.prototype.matchOne = function(file, pattern, partial) {
3877
3868
  var options = this.options;
3878
- this.debug("matchOne", { "this": this, file, pattern });
3869
+ this.debug(
3870
+ "matchOne",
3871
+ { "this": this, file, pattern }
3872
+ );
3879
3873
  this.debug("matchOne", file.length, pattern.length);
3880
3874
  for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
3881
3875
  this.debug("matchOne loop");
@@ -4318,7 +4312,7 @@ var require_through = __commonJS({
4318
4312
  function drain() {
4319
4313
  while (buffer.length && !stream.paused) {
4320
4314
  var data = buffer.shift();
4321
- if (data === null)
4315
+ if (null === data)
4322
4316
  return stream.emit("end");
4323
4317
  else
4324
4318
  stream.emit("data", data);
@@ -4563,7 +4557,9 @@ var require_baseIsNative = __commonJS({
4563
4557
  var objectProto = Object.prototype;
4564
4558
  var funcToString = funcProto.toString;
4565
4559
  var hasOwnProperty = objectProto.hasOwnProperty;
4566
- var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
4560
+ var reIsNative = RegExp(
4561
+ "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4562
+ );
4567
4563
  function baseIsNative(value) {
4568
4564
  if (!isObject(value) || isMasked(value)) {
4569
4565
  return false;
@@ -6942,18 +6938,23 @@ var require_baseUI = __commonJS({
6942
6938
  opt.skipTTYChecks = opt.skipTTYChecks === void 0 ? true : opt.skipTTYChecks;
6943
6939
  const input = opt.input || process.stdin;
6944
6940
  if (!opt.skipTTYChecks && !input.isTTY) {
6945
- const nonTtyError = new Error("Prompts can not be meaningfully rendered in non-TTY environments");
6941
+ const nonTtyError = new Error(
6942
+ "Prompts can not be meaningfully rendered in non-TTY environments"
6943
+ );
6946
6944
  nonTtyError.isTtyError = true;
6947
6945
  throw nonTtyError;
6948
6946
  }
6949
6947
  const ms = new MuteStream();
6950
6948
  ms.pipe(opt.output || process.stdout);
6951
6949
  const output = ms;
6952
- return _.extend({
6953
- terminal: true,
6954
- input,
6955
- output
6956
- }, _.omit(opt, ["input", "output"]));
6950
+ return _.extend(
6951
+ {
6952
+ terminal: true,
6953
+ input,
6954
+ output
6955
+ },
6956
+ _.omit(opt, ["input", "output"])
6957
+ );
6957
6958
  }
6958
6959
  module2.exports = UI;
6959
6960
  }
@@ -19208,10 +19209,12 @@ var require_utils = __commonJS({
19208
19209
  if (!_.isFunction(question[prop])) {
19209
19210
  return of(question);
19210
19211
  }
19211
- return from(runAsync(question[prop])(answers).then((value) => {
19212
- question[prop] = value;
19213
- return question;
19214
- }));
19212
+ return from(
19213
+ runAsync(question[prop])(answers).then((value) => {
19214
+ question[prop] = value;
19215
+ return question;
19216
+ })
19217
+ );
19215
19218
  };
19216
19219
  }
19217
19220
  });
@@ -19244,15 +19247,22 @@ var require_prompt = __commonJS({
19244
19247
  this.answers = {};
19245
19248
  }
19246
19249
  if (_.isPlainObject(questions)) {
19247
- questions = Object.values(questions).every((v) => _.isPlainObject(v) && v.name === void 0) ? Object.entries(questions).map(([name2, question]) => __spreadValues({ name: name2 }, question)) : [questions];
19250
+ questions = Object.values(questions).every(
19251
+ (v) => _.isPlainObject(v) && v.name === void 0
19252
+ ) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
19248
19253
  }
19249
19254
  const obs = _.isArray(questions) ? from(questions) : questions;
19250
- this.process = obs.pipe(concatMap(this.processQuestion.bind(this)), publish());
19255
+ this.process = obs.pipe(
19256
+ concatMap(this.processQuestion.bind(this)),
19257
+ publish()
19258
+ );
19251
19259
  this.process.connect();
19252
- return this.process.pipe(reduce((answers2, answer) => {
19253
- _.set(answers2, answer.name, answer.answer);
19254
- return answers2;
19255
- }, this.answers)).toPromise(Promise).then(this.onCompletion.bind(this), this.onError.bind(this));
19260
+ return this.process.pipe(
19261
+ reduce((answers2, answer) => {
19262
+ _.set(answers2, answer.name, answer.answer);
19263
+ return answers2;
19264
+ }, this.answers)
19265
+ ).toPromise(Promise).then(this.onCompletion.bind(this), this.onError.bind(this));
19256
19266
  }
19257
19267
  onCompletion() {
19258
19268
  this.close();
@@ -19266,13 +19276,28 @@ var require_prompt = __commonJS({
19266
19276
  question = _.clone(question);
19267
19277
  return defer(() => {
19268
19278
  const obs = of(question);
19269
- return obs.pipe(concatMap(this.setDefaultType.bind(this)), concatMap(this.filterIfRunnable.bind(this)), concatMap(() => utils.fetchAsyncQuestionProperty(question, "message", this.answers)), concatMap(() => utils.fetchAsyncQuestionProperty(question, "default", this.answers)), concatMap(() => utils.fetchAsyncQuestionProperty(question, "choices", this.answers)), concatMap(this.fetchAnswer.bind(this)));
19279
+ return obs.pipe(
19280
+ concatMap(this.setDefaultType.bind(this)),
19281
+ concatMap(this.filterIfRunnable.bind(this)),
19282
+ concatMap(
19283
+ () => utils.fetchAsyncQuestionProperty(question, "message", this.answers)
19284
+ ),
19285
+ concatMap(
19286
+ () => utils.fetchAsyncQuestionProperty(question, "default", this.answers)
19287
+ ),
19288
+ concatMap(
19289
+ () => utils.fetchAsyncQuestionProperty(question, "choices", this.answers)
19290
+ ),
19291
+ concatMap(this.fetchAnswer.bind(this))
19292
+ );
19270
19293
  });
19271
19294
  }
19272
19295
  fetchAnswer(question) {
19273
19296
  const Prompt = this.prompts[question.type];
19274
19297
  this.activePrompt = new Prompt(question, this.rl, this.answers);
19275
- return defer(() => from(this.activePrompt.run().then((answer) => ({ name: question.name, answer }))));
19298
+ return defer(
19299
+ () => from(this.activePrompt.run().then((answer) => ({ name: question.name, answer })))
19300
+ );
19276
19301
  }
19277
19302
  setDefaultType(question) {
19278
19303
  if (!this.prompts[question.type]) {
@@ -19291,11 +19316,15 @@ var require_prompt = __commonJS({
19291
19316
  return of(question);
19292
19317
  }
19293
19318
  const { answers } = this;
19294
- return defer(() => from(runAsync(question.when)(answers).then((shouldRun) => {
19295
- if (shouldRun) {
19296
- return question;
19297
- }
19298
- })).pipe(filter((val) => val != null)));
19319
+ return defer(
19320
+ () => from(
19321
+ runAsync(question.when)(answers).then((shouldRun) => {
19322
+ if (shouldRun) {
19323
+ return question;
19324
+ }
19325
+ })
19326
+ ).pipe(filter((val) => val != null))
19327
+ );
19299
19328
  }
19300
19329
  };
19301
19330
  module2.exports = PromptUI;
@@ -20125,10 +20154,25 @@ var require_signals = __commonJS({
20125
20154
  "SIGTERM"
20126
20155
  ];
20127
20156
  if (process.platform !== "win32") {
20128
- module2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
20157
+ module2.exports.push(
20158
+ "SIGVTALRM",
20159
+ "SIGXCPU",
20160
+ "SIGXFSZ",
20161
+ "SIGUSR2",
20162
+ "SIGTRAP",
20163
+ "SIGSYS",
20164
+ "SIGQUIT",
20165
+ "SIGIOT"
20166
+ );
20129
20167
  }
20130
20168
  if (process.platform === "linux") {
20131
- module2.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
20169
+ module2.exports.push(
20170
+ "SIGIO",
20171
+ "SIGPOLL",
20172
+ "SIGPWR",
20173
+ "SIGSTKFLT",
20174
+ "SIGUNUSED"
20175
+ );
20132
20176
  }
20133
20177
  }
20134
20178
  });
@@ -22651,7 +22695,9 @@ var require_is_interactive = __commonJS({
22651
22695
  "../../node_modules/is-interactive/index.js"(exports, module2) {
22652
22696
  "use strict";
22653
22697
  module2.exports = ({ stream = process.stdout } = {}) => {
22654
- return Boolean(stream && stream.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env));
22698
+ return Boolean(
22699
+ stream && stream.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env)
22700
+ );
22655
22701
  };
22656
22702
  }
22657
22703
  });
@@ -23062,10 +23108,10 @@ var require_errors = __commonJS({
23062
23108
  return str.indexOf(search, start) !== -1;
23063
23109
  }
23064
23110
  }
23065
- createErrorType("ERR_INVALID_OPT_VALUE", function(name2, value) {
23066
- return 'The value "' + value + '" is invalid for option "' + name2 + '"';
23111
+ createErrorType("ERR_INVALID_OPT_VALUE", function(name, value) {
23112
+ return 'The value "' + value + '" is invalid for option "' + name + '"';
23067
23113
  }, TypeError);
23068
- createErrorType("ERR_INVALID_ARG_TYPE", function(name2, expected, actual) {
23114
+ createErrorType("ERR_INVALID_ARG_TYPE", function(name, expected, actual) {
23069
23115
  let determiner;
23070
23116
  if (typeof expected === "string" && startsWith(expected, "not ")) {
23071
23117
  determiner = "must not be";
@@ -23074,22 +23120,22 @@ var require_errors = __commonJS({
23074
23120
  determiner = "must be";
23075
23121
  }
23076
23122
  let msg;
23077
- if (endsWith(name2, " argument")) {
23078
- msg = `The ${name2} ${determiner} ${oneOf(expected, "type")}`;
23123
+ if (endsWith(name, " argument")) {
23124
+ msg = `The ${name} ${determiner} ${oneOf(expected, "type")}`;
23079
23125
  } else {
23080
- const type = includes(name2, ".") ? "property" : "argument";
23081
- msg = `The "${name2}" ${type} ${determiner} ${oneOf(expected, "type")}`;
23126
+ const type = includes(name, ".") ? "property" : "argument";
23127
+ msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, "type")}`;
23082
23128
  }
23083
23129
  msg += `. Received type ${typeof actual}`;
23084
23130
  return msg;
23085
23131
  }, TypeError);
23086
23132
  createErrorType("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
23087
- createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name2) {
23088
- return "The " + name2 + " method is not implemented";
23133
+ createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name) {
23134
+ return "The " + name + " method is not implemented";
23089
23135
  });
23090
23136
  createErrorType("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
23091
- createErrorType("ERR_STREAM_DESTROYED", function(name2) {
23092
- return "Cannot call " + name2 + " after a stream was destroyed";
23137
+ createErrorType("ERR_STREAM_DESTROYED", function(name) {
23138
+ return "Cannot call " + name + " after a stream was destroyed";
23093
23139
  });
23094
23140
  createErrorType("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
23095
23141
  createErrorType("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
@@ -23115,8 +23161,8 @@ var require_state = __commonJS({
23115
23161
  var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
23116
23162
  if (hwm != null) {
23117
23163
  if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
23118
- var name2 = isDuplex ? duplexKey : "highWaterMark";
23119
- throw new ERR_INVALID_OPT_VALUE(name2, hwm);
23164
+ var name = isDuplex ? duplexKey : "highWaterMark";
23165
+ throw new ERR_INVALID_OPT_VALUE(name, hwm);
23120
23166
  }
23121
23167
  return Math.floor(hwm);
23122
23168
  }
@@ -25956,12 +26002,13 @@ var require_ora = __commonJS({
25956
26002
  text: options
25957
26003
  };
25958
26004
  }
25959
- this.options = __spreadValues({
26005
+ this.options = {
25960
26006
  text: "",
25961
26007
  color: "cyan",
25962
26008
  stream: process.stderr,
25963
- discardStdin: true
25964
- }, options);
26009
+ discardStdin: true,
26010
+ ...options
26011
+ };
25965
26012
  this.spinner = this.options.spinner;
25966
26013
  this.color = this.options.color;
25967
26014
  this.hideCursor = this.options.hideCursor !== false;
@@ -26232,7 +26279,10 @@ var require_screen_manager = __commonJS({
26232
26279
  contentFunc = () => spinner.frame();
26233
26280
  bottomContentFunc = () => "";
26234
26281
  }
26235
- this.spinnerId = setInterval(() => this.render(contentFunc(), bottomContentFunc(), true), spinner.interval);
26282
+ this.spinnerId = setInterval(
26283
+ () => this.render(contentFunc(), bottomContentFunc(), true),
26284
+ spinner.interval
26285
+ );
26236
26286
  }
26237
26287
  render(content, bottomContent, spinning = false) {
26238
26288
  if (this.spinnerId && !spinning) {
@@ -26355,14 +26405,17 @@ var require_base = __commonJS({
26355
26405
  }
26356
26406
  run() {
26357
26407
  return new Promise((resolve, reject) => {
26358
- this._run((value) => resolve(value), (error) => reject(error));
26408
+ this._run(
26409
+ (value) => resolve(value),
26410
+ (error) => reject(error)
26411
+ );
26359
26412
  });
26360
26413
  }
26361
26414
  _run(cb) {
26362
26415
  cb();
26363
26416
  }
26364
- throwParamError(name2) {
26365
- throw new Error("You must provide a `" + name2 + "` parameter");
26417
+ throwParamError(name) {
26418
+ throw new Error("You must provide a `" + name + "` parameter");
26366
26419
  }
26367
26420
  close() {
26368
26421
  this.screen.releaseCursor();
@@ -26371,15 +26424,30 @@ var require_base = __commonJS({
26371
26424
  const self2 = this;
26372
26425
  const validate = runAsync(this.opt.validate);
26373
26426
  const asyncFilter = runAsync(this.opt.filter);
26374
- const validation = submit.pipe(flatMap((value) => {
26375
- this.startSpinner(value, this.opt.filteringText);
26376
- return asyncFilter(value, self2.answers).then((filteredValue) => {
26377
- this.startSpinner(filteredValue, this.opt.validatingText);
26378
- return validate(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
26379
- }, (err) => ({ isValid: err }));
26380
- }), share());
26381
- const success = validation.pipe(filter((state) => state.isValid === true), take(1));
26382
- const error = validation.pipe(filter((state) => state.isValid !== true), takeUntil(success));
26427
+ const validation = submit.pipe(
26428
+ flatMap((value) => {
26429
+ this.startSpinner(value, this.opt.filteringText);
26430
+ return asyncFilter(value, self2.answers).then(
26431
+ (filteredValue) => {
26432
+ this.startSpinner(filteredValue, this.opt.validatingText);
26433
+ return validate(filteredValue, self2.answers).then(
26434
+ (isValid) => ({ isValid, value: filteredValue }),
26435
+ (err) => ({ isValid: err, value: filteredValue })
26436
+ );
26437
+ },
26438
+ (err) => ({ isValid: err })
26439
+ );
26440
+ }),
26441
+ share()
26442
+ );
26443
+ const success = validation.pipe(
26444
+ filter((state) => state.isValid === true),
26445
+ take(1)
26446
+ );
26447
+ const error = validation.pipe(
26448
+ filter((state) => state.isValid !== true),
26449
+ takeUntil(success)
26450
+ );
26383
26451
  return {
26384
26452
  success,
26385
26453
  error
@@ -26419,12 +26487,35 @@ var require_events = __commonJS({
26419
26487
  return {
26420
26488
  line: fromEvent(rl, "line"),
26421
26489
  keypress,
26422
- normalizedUpKey: keypress.pipe(filter(({ key }) => key.name === "up" || key.name === "k" || key.name === "p" && key.ctrl), share()),
26423
- normalizedDownKey: keypress.pipe(filter(({ key }) => key.name === "down" || key.name === "j" || key.name === "n" && key.ctrl), share()),
26424
- numberKey: keypress.pipe(filter((e) => e.value && "123456789".indexOf(e.value) >= 0), map((e) => Number(e.value)), share()),
26425
- spaceKey: keypress.pipe(filter(({ key }) => key && key.name === "space"), share()),
26426
- aKey: keypress.pipe(filter(({ key }) => key && key.name === "a"), share()),
26427
- iKey: keypress.pipe(filter(({ key }) => key && key.name === "i"), share())
26490
+ normalizedUpKey: keypress.pipe(
26491
+ filter(
26492
+ ({ key }) => key.name === "up" || key.name === "k" || key.name === "p" && key.ctrl
26493
+ ),
26494
+ share()
26495
+ ),
26496
+ normalizedDownKey: keypress.pipe(
26497
+ filter(
26498
+ ({ key }) => key.name === "down" || key.name === "j" || key.name === "n" && key.ctrl
26499
+ ),
26500
+ share()
26501
+ ),
26502
+ numberKey: keypress.pipe(
26503
+ filter((e) => e.value && "123456789".indexOf(e.value) >= 0),
26504
+ map((e) => Number(e.value)),
26505
+ share()
26506
+ ),
26507
+ spaceKey: keypress.pipe(
26508
+ filter(({ key }) => key && key.name === "space"),
26509
+ share()
26510
+ ),
26511
+ aKey: keypress.pipe(
26512
+ filter(({ key }) => key && key.name === "a"),
26513
+ share()
26514
+ ),
26515
+ iKey: keypress.pipe(
26516
+ filter(({ key }) => key && key.name === "i"),
26517
+ share()
26518
+ )
26428
26519
  };
26429
26520
  };
26430
26521
  }
@@ -26570,7 +26661,10 @@ var require_list = __commonJS({
26570
26661
  if (_.isNumber(def) && def >= 0 && def < this.opt.choices.realLength) {
26571
26662
  this.selected = def;
26572
26663
  } else if (!_.isNumber(def) && def != null) {
26573
- const index = _.findIndex(this.opt.choices.realChoices, ({ value }) => value === def);
26664
+ const index = _.findIndex(
26665
+ this.opt.choices.realChoices,
26666
+ ({ value }) => value === def
26667
+ );
26574
26668
  this.selected = Math.max(index, 0);
26575
26669
  }
26576
26670
  this.opt.default = null;
@@ -26584,7 +26678,13 @@ var require_list = __commonJS({
26584
26678
  events.normalizedUpKey.pipe(takeUntil(events.line)).forEach(this.onUpKey.bind(this));
26585
26679
  events.normalizedDownKey.pipe(takeUntil(events.line)).forEach(this.onDownKey.bind(this));
26586
26680
  events.numberKey.pipe(takeUntil(events.line)).forEach(this.onNumberKey.bind(this));
26587
- events.line.pipe(take(1), map(this.getCurrentValue.bind(this)), flatMap((value) => runAsync(self2.opt.filter)(value, self2.answers).catch((err) => err))).forEach(this.onSubmit.bind(this));
26681
+ events.line.pipe(
26682
+ take(1),
26683
+ map(this.getCurrentValue.bind(this)),
26684
+ flatMap(
26685
+ (value) => runAsync(self2.opt.filter)(value, self2.answers).catch((err) => err)
26686
+ )
26687
+ ).forEach(this.onSubmit.bind(this));
26588
26688
  cliCursor.hide();
26589
26689
  this.render();
26590
26690
  return this;
@@ -26598,7 +26698,9 @@ var require_list = __commonJS({
26598
26698
  message += chalk4.cyan(this.opt.choices.getChoice(this.selected).short);
26599
26699
  } else {
26600
26700
  const choicesStr = listRender(this.opt.choices, this.selected);
26601
- const indexPosition = this.opt.choices.indexOf(this.opt.choices.getChoice(this.selected));
26701
+ const indexPosition = this.opt.choices.indexOf(
26702
+ this.opt.choices.getChoice(this.selected)
26703
+ );
26602
26704
  const realIndexPosition = this.opt.choices.reduce((acc, value, i) => {
26603
26705
  if (i > indexPosition) {
26604
26706
  return acc;
@@ -26874,7 +26976,10 @@ var require_rawlist = __commonJS({
26874
26976
  this.selected = def;
26875
26977
  this.rawDefault = def;
26876
26978
  } else if (!_.isNumber(def) && def != null) {
26877
- const index = _.findIndex(this.opt.choices.realChoices, ({ value }) => value === def);
26979
+ const index = _.findIndex(
26980
+ this.opt.choices.realChoices,
26981
+ ({ value }) => value === def
26982
+ );
26878
26983
  const safeIndex = Math.max(index, 0);
26879
26984
  this.selected = safeIndex;
26880
26985
  this.rawDefault = safeIndex;
@@ -27171,7 +27276,9 @@ var require_expand2 = __commonJS({
27171
27276
  _run(cb) {
27172
27277
  this.done = cb;
27173
27278
  const events = observe(this.rl);
27174
- const validation = this.handleSubmitEvents(events.line.pipe(map(this.getCurrentValue.bind(this))));
27279
+ const validation = this.handleSubmitEvents(
27280
+ events.line.pipe(map(this.getCurrentValue.bind(this)))
27281
+ );
27175
27282
  validation.success.forEach(this.onSubmit.bind(this));
27176
27283
  validation.error.forEach(this.onError.bind(this));
27177
27284
  this.keypressObs = events.keypress.pipe(takeUntil(validation.success)).forEach(this.onKeypress.bind(this));
@@ -27264,13 +27371,19 @@ var require_expand2 = __commonJS({
27264
27371
  keymap[choice.key] = true;
27265
27372
  });
27266
27373
  if (formatError) {
27267
- throw new Error("Format error: `key` param must be a single letter and is required.");
27374
+ throw new Error(
27375
+ "Format error: `key` param must be a single letter and is required."
27376
+ );
27268
27377
  }
27269
27378
  if (keymap.h) {
27270
- throw new Error("Reserved key error: `key` param cannot be `h` - this value is reserved.");
27379
+ throw new Error(
27380
+ "Reserved key error: `key` param cannot be `h` - this value is reserved."
27381
+ );
27271
27382
  }
27272
27383
  if (errors.length) {
27273
- throw new Error("Duplicate key error: `key` param must be unique. Duplicates: " + _.uniq(errors).join(", "));
27384
+ throw new Error(
27385
+ "Duplicate key error: `key` param must be unique. Duplicates: " + _.uniq(errors).join(", ")
27386
+ );
27274
27387
  }
27275
27388
  }
27276
27389
  generateChoicesString(choices, defaultChoice) {
@@ -27278,7 +27391,10 @@ var require_expand2 = __commonJS({
27278
27391
  if (_.isNumber(defaultChoice) && this.opt.choices.getChoice(defaultChoice)) {
27279
27392
  defIndex = defaultChoice;
27280
27393
  } else if (_.isString(defaultChoice)) {
27281
- const index = _.findIndex(choices.realChoices, ({ value }) => value === defaultChoice);
27394
+ const index = _.findIndex(
27395
+ choices.realChoices,
27396
+ ({ value }) => value === defaultChoice
27397
+ );
27282
27398
  defIndex = index === -1 ? defIndex : index;
27283
27399
  }
27284
27400
  const defStr = this.opt.choices.pluck("key");
@@ -27345,7 +27461,9 @@ var require_checkbox = __commonJS({
27345
27461
  _run(cb) {
27346
27462
  this.done = cb;
27347
27463
  const events = observe(this.rl);
27348
- const validation = this.handleSubmitEvents(events.line.pipe(map(this.getCurrentValue.bind(this))));
27464
+ const validation = this.handleSubmitEvents(
27465
+ events.line.pipe(map(this.getCurrentValue.bind(this)))
27466
+ );
27349
27467
  validation.success.forEach(this.onEnd.bind(this));
27350
27468
  validation.error.forEach(this.onError.bind(this));
27351
27469
  events.normalizedUpKey.pipe(takeUntil(validation.success)).forEach(this.onUpKey.bind(this));
@@ -27369,7 +27487,9 @@ var require_checkbox = __commonJS({
27369
27487
  message += chalk4.cyan(this.selection.join(", "));
27370
27488
  } else {
27371
27489
  const choicesStr = renderChoices(this.opt.choices, this.pointer);
27372
- const indexPosition = this.opt.choices.indexOf(this.opt.choices.getChoice(this.pointer));
27490
+ const indexPosition = this.opt.choices.indexOf(
27491
+ this.opt.choices.getChoice(this.pointer)
27492
+ );
27373
27493
  const realIndexPosition = this.opt.choices.reduce((acc, value, i) => {
27374
27494
  if (i > indexPosition) {
27375
27495
  return acc;
@@ -27430,9 +27550,11 @@ var require_checkbox = __commonJS({
27430
27550
  this.render();
27431
27551
  }
27432
27552
  onAllKey() {
27433
- const shouldBeChecked = Boolean(this.opt.choices.find((choice) => {
27434
- return choice.type !== "separator" && !choice.checked;
27435
- }));
27553
+ const shouldBeChecked = Boolean(
27554
+ this.opt.choices.find((choice) => {
27555
+ return choice.type !== "separator" && !choice.checked;
27556
+ })
27557
+ );
27436
27558
  this.opt.choices.forEach((choice) => {
27437
27559
  if (choice.type !== "separator") {
27438
27560
  choice.checked = shouldBeChecked;
@@ -27560,9 +27682,9 @@ var require_password = __commonJS({
27560
27682
  // ../../node_modules/chardet/match.js
27561
27683
  var require_match = __commonJS({
27562
27684
  "../../node_modules/chardet/match.js"(exports, module2) {
27563
- module2.exports = function(det, rec, confidence, name2, lang) {
27685
+ module2.exports = function(det, rec, confidence, name, lang) {
27564
27686
  this.confidence = confidence;
27565
- this.name = name2 || rec.name(det);
27687
+ this.name = name || rec.name(det);
27566
27688
  this.lang = lang;
27567
27689
  };
27568
27690
  }
@@ -28535,8 +28657,8 @@ var require_sbcs = __commonJS({
28535
28657
  lang = ngl.fLang;
28536
28658
  }
28537
28659
  }
28538
- var name2 = this.name(det);
28539
- return bestConfidenceSoFar <= 0 ? null : new Match(det, this, bestConfidenceSoFar, name2, lang);
28660
+ var name = this.name(det);
28661
+ return bestConfidenceSoFar <= 0 ? null : new Match(det, this, bestConfidenceSoFar, name, lang);
28540
28662
  };
28541
28663
  module2.exports.ISO_8859_1 = function() {
28542
28664
  this.byteMap = function() {
@@ -36440,13 +36562,13 @@ var require_tmp = __commonJS({
36440
36562
  if (opts.template) {
36441
36563
  return opts.template.replace(TEMPLATE_PATTERN, _randomChars(6));
36442
36564
  }
36443
- const name2 = [
36565
+ const name = [
36444
36566
  opts.prefix || "tmp-",
36445
36567
  process.pid,
36446
36568
  _randomChars(12),
36447
36569
  opts.postfix || ""
36448
36570
  ].join("");
36449
- return path3.join(opts.dir || tmpDir, name2);
36571
+ return path3.join(opts.dir || tmpDir, name);
36450
36572
  }
36451
36573
  function tmpName(options, callback) {
36452
36574
  var args = _parseArguments(options, callback), opts = args[0], cb = args[1], tries = opts.name ? 1 : opts.tries || DEFAULT_TRIES;
@@ -36455,14 +36577,14 @@ var require_tmp = __commonJS({
36455
36577
  if (opts.template && !opts.template.match(TEMPLATE_PATTERN))
36456
36578
  return cb(new Error("Invalid template provided"));
36457
36579
  (function _getUniqueName() {
36458
- const name2 = _generateTmpName(opts);
36459
- fs2.stat(name2, function(err) {
36580
+ const name = _generateTmpName(opts);
36581
+ fs2.stat(name, function(err) {
36460
36582
  if (!err) {
36461
36583
  if (tries-- > 0)
36462
36584
  return _getUniqueName();
36463
- return cb(new Error("Could not get a unique tmp filename, max tries reached " + name2));
36585
+ return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
36464
36586
  }
36465
- cb(null, name2);
36587
+ cb(null, name);
36466
36588
  });
36467
36589
  })();
36468
36590
  }
@@ -36473,11 +36595,11 @@ var require_tmp = __commonJS({
36473
36595
  if (opts.template && !opts.template.match(TEMPLATE_PATTERN))
36474
36596
  throw new Error("Invalid template provided");
36475
36597
  do {
36476
- const name2 = _generateTmpName(opts);
36598
+ const name = _generateTmpName(opts);
36477
36599
  try {
36478
- fs2.statSync(name2);
36600
+ fs2.statSync(name);
36479
36601
  } catch (e) {
36480
- return name2;
36602
+ return name;
36481
36603
  }
36482
36604
  } while (tries-- > 0);
36483
36605
  throw new Error("Could not get a unique tmp filename, max tries reached");
@@ -36485,17 +36607,17 @@ var require_tmp = __commonJS({
36485
36607
  function file(options, callback) {
36486
36608
  var args = _parseArguments(options, callback), opts = args[0], cb = args[1];
36487
36609
  opts.postfix = _isUndefined(opts.postfix) ? ".tmp" : opts.postfix;
36488
- tmpName(opts, function _tmpNameCreated(err, name2) {
36610
+ tmpName(opts, function _tmpNameCreated(err, name) {
36489
36611
  if (err)
36490
36612
  return cb(err);
36491
- fs2.open(name2, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
36613
+ fs2.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
36492
36614
  if (err2)
36493
36615
  return cb(err2);
36494
36616
  if (opts.discardDescriptor) {
36495
36617
  return fs2.close(fd, function _discardCallback(err3) {
36496
36618
  if (err3) {
36497
36619
  try {
36498
- fs2.unlinkSync(name2);
36620
+ fs2.unlinkSync(name);
36499
36621
  } catch (e) {
36500
36622
  if (!isENOENT(e)) {
36501
36623
  err3 = e;
@@ -36503,13 +36625,13 @@ var require_tmp = __commonJS({
36503
36625
  }
36504
36626
  return cb(err3);
36505
36627
  }
36506
- cb(null, name2, void 0, _prepareTmpFileRemoveCallback(name2, -1, opts));
36628
+ cb(null, name, void 0, _prepareTmpFileRemoveCallback(name, -1, opts));
36507
36629
  });
36508
36630
  }
36509
36631
  if (opts.detachDescriptor) {
36510
- return cb(null, name2, fd, _prepareTmpFileRemoveCallback(name2, -1, opts));
36632
+ return cb(null, name, fd, _prepareTmpFileRemoveCallback(name, -1, opts));
36511
36633
  }
36512
- cb(null, name2, fd, _prepareTmpFileRemoveCallback(name2, fd, opts));
36634
+ cb(null, name, fd, _prepareTmpFileRemoveCallback(name, fd, opts));
36513
36635
  });
36514
36636
  });
36515
36637
  }
@@ -36517,24 +36639,24 @@ var require_tmp = __commonJS({
36517
36639
  var args = _parseArguments(options), opts = args[0];
36518
36640
  opts.postfix = opts.postfix || ".tmp";
36519
36641
  const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
36520
- const name2 = tmpNameSync(opts);
36521
- var fd = fs2.openSync(name2, CREATE_FLAGS, opts.mode || FILE_MODE);
36642
+ const name = tmpNameSync(opts);
36643
+ var fd = fs2.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
36522
36644
  if (opts.discardDescriptor) {
36523
36645
  fs2.closeSync(fd);
36524
36646
  fd = void 0;
36525
36647
  }
36526
36648
  return {
36527
- name: name2,
36649
+ name,
36528
36650
  fd,
36529
- removeCallback: _prepareTmpFileRemoveCallback(name2, discardOrDetachDescriptor ? -1 : fd, opts)
36651
+ removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts)
36530
36652
  };
36531
36653
  }
36532
36654
  function _rmdirRecursiveSync(root) {
36533
36655
  const dirs = [root];
36534
36656
  do {
36535
- var dir2 = dirs.pop(), deferred = false, files2 = fs2.readdirSync(dir2);
36536
- for (var i = 0, length = files2.length; i < length; i++) {
36537
- var file2 = path3.join(dir2, files2[i]), stat = fs2.lstatSync(file2);
36657
+ var dir2 = dirs.pop(), deferred = false, files = fs2.readdirSync(dir2);
36658
+ for (var i = 0, length = files.length; i < length; i++) {
36659
+ var file2 = path3.join(dir2, files[i]), stat = fs2.lstatSync(file2);
36538
36660
  if (stat.isDirectory()) {
36539
36661
  if (!deferred) {
36540
36662
  deferred = true;
@@ -36552,26 +36674,26 @@ var require_tmp = __commonJS({
36552
36674
  }
36553
36675
  function dir(options, callback) {
36554
36676
  var args = _parseArguments(options, callback), opts = args[0], cb = args[1];
36555
- tmpName(opts, function _tmpNameCreated(err, name2) {
36677
+ tmpName(opts, function _tmpNameCreated(err, name) {
36556
36678
  if (err)
36557
36679
  return cb(err);
36558
- fs2.mkdir(name2, opts.mode || DIR_MODE, function _dirCreated(err2) {
36680
+ fs2.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
36559
36681
  if (err2)
36560
36682
  return cb(err2);
36561
- cb(null, name2, _prepareTmpDirRemoveCallback(name2, opts));
36683
+ cb(null, name, _prepareTmpDirRemoveCallback(name, opts));
36562
36684
  });
36563
36685
  });
36564
36686
  }
36565
36687
  function dirSync(options) {
36566
36688
  var args = _parseArguments(options), opts = args[0];
36567
- const name2 = tmpNameSync(opts);
36568
- fs2.mkdirSync(name2, opts.mode || DIR_MODE);
36689
+ const name = tmpNameSync(opts);
36690
+ fs2.mkdirSync(name, opts.mode || DIR_MODE);
36569
36691
  return {
36570
- name: name2,
36571
- removeCallback: _prepareTmpDirRemoveCallback(name2, opts)
36692
+ name,
36693
+ removeCallback: _prepareTmpDirRemoveCallback(name, opts)
36572
36694
  };
36573
36695
  }
36574
- function _prepareTmpFileRemoveCallback(name2, fd, opts) {
36696
+ function _prepareTmpFileRemoveCallback(name, fd, opts) {
36575
36697
  const removeCallback = _prepareRemoveCallback(function _removeCallback(fdPath) {
36576
36698
  try {
36577
36699
  if (0 <= fdPath[0]) {
@@ -36589,15 +36711,15 @@ var require_tmp = __commonJS({
36589
36711
  throw e;
36590
36712
  }
36591
36713
  }
36592
- }, [fd, name2]);
36714
+ }, [fd, name]);
36593
36715
  if (!opts.keep) {
36594
36716
  _removeObjects.unshift(removeCallback);
36595
36717
  }
36596
36718
  return removeCallback;
36597
36719
  }
36598
- function _prepareTmpDirRemoveCallback(name2, opts) {
36720
+ function _prepareTmpDirRemoveCallback(name, opts) {
36599
36721
  const removeFunction = opts.unsafeCleanup ? _rmdirRecursiveSync : fs2.rmdirSync.bind(fs2);
36600
- const removeCallback = _prepareRemoveCallback(removeFunction, name2);
36722
+ const removeCallback = _prepareRemoveCallback(removeFunction, name);
36601
36723
  if (!opts.keep) {
36602
36724
  _removeObjects.unshift(removeCallback);
36603
36725
  }
@@ -36641,10 +36763,10 @@ var require_tmp = __commonJS({
36641
36763
  function setGracefulCleanup() {
36642
36764
  _gracefulCleanup = true;
36643
36765
  }
36644
- var version2 = process.versions.node.split(".").map(function(value) {
36766
+ var version = process.versions.node.split(".").map(function(value) {
36645
36767
  return parseInt(value, 10);
36646
36768
  });
36647
- if (version2[0] === 0 && (version2[1] < 9 || version2[1] === 9 && version2[2] < 5)) {
36769
+ if (version[0] === 0 && (version[1] < 9 || version[1] === 9 && version[2] < 5)) {
36648
36770
  process.addListener("uncaughtException", function _uncaughtExceptionThrown(err) {
36649
36771
  _uncaughtException = true;
36650
36772
  _garbageCollector();
@@ -36965,8 +37087,8 @@ var require_main = __commonJS({
36965
37087
  var editorOpts = ExternalEditor2.splitStringBySpace(editor).map(function(piece) {
36966
37088
  return piece.replace("\\ ", " ");
36967
37089
  });
36968
- var bin2 = editorOpts.shift();
36969
- this.editor = { args: editorOpts, bin: bin2 };
37090
+ var bin = editorOpts.shift();
37091
+ this.editor = { args: editorOpts, bin };
36970
37092
  };
36971
37093
  ExternalEditor2.prototype.createTemporaryFile = function() {
36972
37094
  try {
@@ -37118,8 +37240,8 @@ var require_inquirer = __commonJS({
37118
37240
  return promise;
37119
37241
  };
37120
37242
  promptModule.prompts = {};
37121
- promptModule.registerPrompt = function(name2, prompt) {
37122
- promptModule.prompts[name2] = prompt;
37243
+ promptModule.registerPrompt = function(name, prompt) {
37244
+ promptModule.prompts[name] = prompt;
37123
37245
  return this;
37124
37246
  };
37125
37247
  promptModule.restoreDefaultPrompts = function() {
@@ -37137,8 +37259,8 @@ var require_inquirer = __commonJS({
37137
37259
  return promptModule;
37138
37260
  };
37139
37261
  inquirer3.prompt = inquirer3.createPromptModule();
37140
- inquirer3.registerPrompt = function(name2, prompt) {
37141
- inquirer3.prompt.registerPrompt(name2, prompt);
37262
+ inquirer3.registerPrompt = function(name, prompt) {
37263
+ inquirer3.prompt.registerPrompt(name, prompt);
37142
37264
  };
37143
37265
  inquirer3.restoreDefaultPrompts = function() {
37144
37266
  inquirer3.prompt.restoreDefaultPrompts();
@@ -37181,10 +37303,10 @@ var require_re = __commonJS({
37181
37303
  var src = exports.src = [];
37182
37304
  var t = exports.t = {};
37183
37305
  var R = 0;
37184
- var createToken = (name2, value, isGlobal) => {
37306
+ var createToken = (name, value, isGlobal) => {
37185
37307
  const index = R++;
37186
- debug(name2, index, value);
37187
- t[name2] = index;
37308
+ debug(name, index, value);
37309
+ t[name] = index;
37188
37310
  src[index] = value;
37189
37311
  re[index] = new RegExp(value, isGlobal ? "g" : void 0);
37190
37312
  };
@@ -37276,29 +37398,31 @@ var require_semver = __commonJS({
37276
37398
  var parseOptions = require_parse_options();
37277
37399
  var { compareIdentifiers } = require_identifiers();
37278
37400
  var SemVer = class {
37279
- constructor(version2, options) {
37401
+ constructor(version, options) {
37280
37402
  options = parseOptions(options);
37281
- if (version2 instanceof SemVer) {
37282
- if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) {
37283
- return version2;
37403
+ if (version instanceof SemVer) {
37404
+ if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
37405
+ return version;
37284
37406
  } else {
37285
- version2 = version2.version;
37407
+ version = version.version;
37286
37408
  }
37287
- } else if (typeof version2 !== "string") {
37288
- throw new TypeError(`Invalid Version: ${version2}`);
37409
+ } else if (typeof version !== "string") {
37410
+ throw new TypeError(`Invalid Version: ${version}`);
37289
37411
  }
37290
- if (version2.length > MAX_LENGTH) {
37291
- throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
37412
+ if (version.length > MAX_LENGTH) {
37413
+ throw new TypeError(
37414
+ `version is longer than ${MAX_LENGTH} characters`
37415
+ );
37292
37416
  }
37293
- debug("SemVer", version2, options);
37417
+ debug("SemVer", version, options);
37294
37418
  this.options = options;
37295
37419
  this.loose = !!options.loose;
37296
37420
  this.includePrerelease = !!options.includePrerelease;
37297
- const m = version2.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
37421
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
37298
37422
  if (!m) {
37299
- throw new TypeError(`Invalid Version: ${version2}`);
37423
+ throw new TypeError(`Invalid Version: ${version}`);
37300
37424
  }
37301
- this.raw = version2;
37425
+ this.raw = version;
37302
37426
  this.major = +m[1];
37303
37427
  this.minor = +m[2];
37304
37428
  this.patch = +m[3];
@@ -37498,23 +37622,23 @@ var require_parse2 = __commonJS({
37498
37622
  var { re, t } = require_re();
37499
37623
  var SemVer = require_semver();
37500
37624
  var parseOptions = require_parse_options();
37501
- var parse = (version2, options) => {
37625
+ var parse = (version, options) => {
37502
37626
  options = parseOptions(options);
37503
- if (version2 instanceof SemVer) {
37504
- return version2;
37627
+ if (version instanceof SemVer) {
37628
+ return version;
37505
37629
  }
37506
- if (typeof version2 !== "string") {
37630
+ if (typeof version !== "string") {
37507
37631
  return null;
37508
37632
  }
37509
- if (version2.length > MAX_LENGTH) {
37633
+ if (version.length > MAX_LENGTH) {
37510
37634
  return null;
37511
37635
  }
37512
37636
  const r = options.loose ? re[t.LOOSE] : re[t.FULL];
37513
- if (!r.test(version2)) {
37637
+ if (!r.test(version)) {
37514
37638
  return null;
37515
37639
  }
37516
37640
  try {
37517
- return new SemVer(version2, options);
37641
+ return new SemVer(version, options);
37518
37642
  } catch (er) {
37519
37643
  return null;
37520
37644
  }
@@ -37527,8 +37651,8 @@ var require_parse2 = __commonJS({
37527
37651
  var require_valid = __commonJS({
37528
37652
  "../../node_modules/semver/functions/valid.js"(exports, module2) {
37529
37653
  var parse = require_parse2();
37530
- var valid = (version2, options) => {
37531
- const v = parse(version2, options);
37654
+ var valid = (version, options) => {
37655
+ const v = parse(version, options);
37532
37656
  return v ? v.version : null;
37533
37657
  };
37534
37658
  module2.exports = valid;
@@ -37539,8 +37663,8 @@ var require_valid = __commonJS({
37539
37663
  var require_clean = __commonJS({
37540
37664
  "../../node_modules/semver/functions/clean.js"(exports, module2) {
37541
37665
  var parse = require_parse2();
37542
- var clean = (version2, options) => {
37543
- const s = parse(version2.trim().replace(/^[=v]+/, ""), options);
37666
+ var clean = (version, options) => {
37667
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
37544
37668
  return s ? s.version : null;
37545
37669
  };
37546
37670
  module2.exports = clean;
@@ -37551,13 +37675,16 @@ var require_clean = __commonJS({
37551
37675
  var require_inc = __commonJS({
37552
37676
  "../../node_modules/semver/functions/inc.js"(exports, module2) {
37553
37677
  var SemVer = require_semver();
37554
- var inc = (version2, release, options, identifier) => {
37678
+ var inc = (version, release, options, identifier) => {
37555
37679
  if (typeof options === "string") {
37556
37680
  identifier = options;
37557
37681
  options = void 0;
37558
37682
  }
37559
37683
  try {
37560
- return new SemVer(version2 instanceof SemVer ? version2.version : version2, options).inc(release, identifier).version;
37684
+ return new SemVer(
37685
+ version instanceof SemVer ? version.version : version,
37686
+ options
37687
+ ).inc(release, identifier).version;
37561
37688
  } catch (er) {
37562
37689
  return null;
37563
37690
  }
@@ -37643,8 +37770,8 @@ var require_patch = __commonJS({
37643
37770
  var require_prerelease = __commonJS({
37644
37771
  "../../node_modules/semver/functions/prerelease.js"(exports, module2) {
37645
37772
  var parse = require_parse2();
37646
- var prerelease = (version2, options) => {
37647
- const parsed = parse(version2, options);
37773
+ var prerelease = (version, options) => {
37774
+ const parsed = parse(version, options);
37648
37775
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
37649
37776
  };
37650
37777
  module2.exports = prerelease;
@@ -37800,23 +37927,23 @@ var require_coerce = __commonJS({
37800
37927
  var SemVer = require_semver();
37801
37928
  var parse = require_parse2();
37802
37929
  var { re, t } = require_re();
37803
- var coerce = (version2, options) => {
37804
- if (version2 instanceof SemVer) {
37805
- return version2;
37930
+ var coerce = (version, options) => {
37931
+ if (version instanceof SemVer) {
37932
+ return version;
37806
37933
  }
37807
- if (typeof version2 === "number") {
37808
- version2 = String(version2);
37934
+ if (typeof version === "number") {
37935
+ version = String(version);
37809
37936
  }
37810
- if (typeof version2 !== "string") {
37937
+ if (typeof version !== "string") {
37811
37938
  return null;
37812
37939
  }
37813
37940
  options = options || {};
37814
37941
  let match = null;
37815
37942
  if (!options.rtl) {
37816
- match = version2.match(re[t.COERCE]);
37943
+ match = version.match(re[t.COERCE]);
37817
37944
  } else {
37818
37945
  let next;
37819
- while ((next = re[t.COERCERTL].exec(version2)) && (!match || match.index + match[0].length !== version2.length)) {
37946
+ while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
37820
37947
  if (!match || next.index + next[0].length !== match.index + match[0].length) {
37821
37948
  match = next;
37822
37949
  }
@@ -38590,19 +38717,19 @@ var require_range2 = __commonJS({
38590
38717
  });
38591
38718
  });
38592
38719
  }
38593
- test(version2) {
38594
- if (!version2) {
38720
+ test(version) {
38721
+ if (!version) {
38595
38722
  return false;
38596
38723
  }
38597
- if (typeof version2 === "string") {
38724
+ if (typeof version === "string") {
38598
38725
  try {
38599
- version2 = new SemVer(version2, this.options);
38726
+ version = new SemVer(version, this.options);
38600
38727
  } catch (er) {
38601
38728
  return false;
38602
38729
  }
38603
38730
  }
38604
38731
  for (let i = 0; i < this.set.length; i++) {
38605
- if (testSet(this.set[i], version2, this.options)) {
38732
+ if (testSet(this.set[i], version, this.options)) {
38606
38733
  return true;
38607
38734
  }
38608
38735
  }
@@ -38817,13 +38944,13 @@ var require_range2 = __commonJS({
38817
38944
  }
38818
38945
  return `${from} ${to}`.trim();
38819
38946
  };
38820
- var testSet = (set, version2, options) => {
38947
+ var testSet = (set, version, options) => {
38821
38948
  for (let i = 0; i < set.length; i++) {
38822
- if (!set[i].test(version2)) {
38949
+ if (!set[i].test(version)) {
38823
38950
  return false;
38824
38951
  }
38825
38952
  }
38826
- if (version2.prerelease.length && !options.includePrerelease) {
38953
+ if (version.prerelease.length && !options.includePrerelease) {
38827
38954
  for (let i = 0; i < set.length; i++) {
38828
38955
  debug(set[i].semver);
38829
38956
  if (set[i].semver === Comparator.ANY) {
@@ -38831,7 +38958,7 @@ var require_range2 = __commonJS({
38831
38958
  }
38832
38959
  if (set[i].semver.prerelease.length > 0) {
38833
38960
  const allowed = set[i].semver;
38834
- if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) {
38961
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
38835
38962
  return true;
38836
38963
  }
38837
38964
  }
@@ -38890,19 +39017,19 @@ var require_comparator = __commonJS({
38890
39017
  toString() {
38891
39018
  return this.value;
38892
39019
  }
38893
- test(version2) {
38894
- debug("Comparator.test", version2, this.options.loose);
38895
- if (this.semver === ANY || version2 === ANY) {
39020
+ test(version) {
39021
+ debug("Comparator.test", version, this.options.loose);
39022
+ if (this.semver === ANY || version === ANY) {
38896
39023
  return true;
38897
39024
  }
38898
- if (typeof version2 === "string") {
39025
+ if (typeof version === "string") {
38899
39026
  try {
38900
- version2 = new SemVer(version2, this.options);
39027
+ version = new SemVer(version, this.options);
38901
39028
  } catch (er) {
38902
39029
  return false;
38903
39030
  }
38904
39031
  }
38905
- return cmp(version2, this.operator, this.semver, this.options);
39032
+ return cmp(version, this.operator, this.semver, this.options);
38906
39033
  }
38907
39034
  intersects(comp, options) {
38908
39035
  if (!(comp instanceof Comparator)) {
@@ -38948,13 +39075,13 @@ var require_comparator = __commonJS({
38948
39075
  var require_satisfies = __commonJS({
38949
39076
  "../../node_modules/semver/functions/satisfies.js"(exports, module2) {
38950
39077
  var Range = require_range2();
38951
- var satisfies = (version2, range, options) => {
39078
+ var satisfies = (version, range, options) => {
38952
39079
  try {
38953
39080
  range = new Range(range, options);
38954
39081
  } catch (er) {
38955
39082
  return false;
38956
39083
  }
38957
- return range.test(version2);
39084
+ return range.test(version);
38958
39085
  };
38959
39086
  module2.exports = satisfies;
38960
39087
  }
@@ -39108,8 +39235,8 @@ var require_outside = __commonJS({
39108
39235
  var lt = require_lt();
39109
39236
  var lte = require_lte();
39110
39237
  var gte = require_gte();
39111
- var outside = (version2, range, hilo, options) => {
39112
- version2 = new SemVer(version2, options);
39238
+ var outside = (version, range, hilo, options) => {
39239
+ version = new SemVer(version, options);
39113
39240
  range = new Range(range, options);
39114
39241
  let gtfn, ltefn, ltfn, comp, ecomp;
39115
39242
  switch (hilo) {
@@ -39130,7 +39257,7 @@ var require_outside = __commonJS({
39130
39257
  default:
39131
39258
  throw new TypeError('Must provide a hilo val of "<" or ">"');
39132
39259
  }
39133
- if (satisfies(version2, range, options)) {
39260
+ if (satisfies(version, range, options)) {
39134
39261
  return false;
39135
39262
  }
39136
39263
  for (let i = 0; i < range.set.length; ++i) {
@@ -39152,9 +39279,9 @@ var require_outside = __commonJS({
39152
39279
  if (high.operator === comp || high.operator === ecomp) {
39153
39280
  return false;
39154
39281
  }
39155
- if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) {
39282
+ if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
39156
39283
  return false;
39157
- } else if (low.operator === ecomp && ltfn(version2, low.semver)) {
39284
+ } else if (low.operator === ecomp && ltfn(version, low.semver)) {
39158
39285
  return false;
39159
39286
  }
39160
39287
  }
@@ -39168,7 +39295,7 @@ var require_outside = __commonJS({
39168
39295
  var require_gtr = __commonJS({
39169
39296
  "../../node_modules/semver/ranges/gtr.js"(exports, module2) {
39170
39297
  var outside = require_outside();
39171
- var gtr = (version2, range, options) => outside(version2, range, ">", options);
39298
+ var gtr = (version, range, options) => outside(version, range, ">", options);
39172
39299
  module2.exports = gtr;
39173
39300
  }
39174
39301
  });
@@ -39177,7 +39304,7 @@ var require_gtr = __commonJS({
39177
39304
  var require_ltr = __commonJS({
39178
39305
  "../../node_modules/semver/ranges/ltr.js"(exports, module2) {
39179
39306
  var outside = require_outside();
39180
- var ltr = (version2, range, options) => outside(version2, range, "<", options);
39307
+ var ltr = (version, range, options) => outside(version, range, "<", options);
39181
39308
  module2.exports = ltr;
39182
39309
  }
39183
39310
  });
@@ -39205,12 +39332,12 @@ var require_simplify = __commonJS({
39205
39332
  let first = null;
39206
39333
  let prev = null;
39207
39334
  const v = versions.sort((a, b) => compare(a, b, options));
39208
- for (const version2 of v) {
39209
- const included = satisfies(version2, range, options);
39335
+ for (const version of v) {
39336
+ const included = satisfies(version, range, options);
39210
39337
  if (included) {
39211
- prev = version2;
39338
+ prev = version;
39212
39339
  if (!first) {
39213
- first = version2;
39340
+ first = version;
39214
39341
  }
39215
39342
  } else {
39216
39343
  if (prev) {
@@ -39467,7 +39594,11 @@ var require_universalify = __commonJS({
39467
39594
  fn.apply(this, args);
39468
39595
  else {
39469
39596
  return new Promise((resolve, reject) => {
39470
- fn.call(this, ...args, (err, res) => err != null ? reject(err) : resolve(res));
39597
+ fn.call(
39598
+ this,
39599
+ ...args,
39600
+ (err, res) => err != null ? reject(err) : resolve(res)
39601
+ );
39471
39602
  });
39472
39603
  }
39473
39604
  }, "name", { value: fn.name });
@@ -39614,19 +39745,24 @@ var require_polyfills = __commonJS({
39614
39745
  }(fs2.readSync);
39615
39746
  function patchLchmod(fs3) {
39616
39747
  fs3.lchmod = function(path3, mode, callback) {
39617
- fs3.open(path3, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
39618
- if (err) {
39619
- if (callback)
39620
- callback(err);
39621
- return;
39622
- }
39623
- fs3.fchmod(fd, mode, function(err2) {
39624
- fs3.close(fd, function(err22) {
39748
+ fs3.open(
39749
+ path3,
39750
+ constants.O_WRONLY | constants.O_SYMLINK,
39751
+ mode,
39752
+ function(err, fd) {
39753
+ if (err) {
39625
39754
  if (callback)
39626
- callback(err2 || err22);
39755
+ callback(err);
39756
+ return;
39757
+ }
39758
+ fs3.fchmod(fd, mode, function(err2) {
39759
+ fs3.close(fd, function(err22) {
39760
+ if (callback)
39761
+ callback(err2 || err22);
39762
+ });
39627
39763
  });
39628
- });
39629
- });
39764
+ }
39765
+ );
39630
39766
  };
39631
39767
  fs3.lchmodSync = function(path3, mode) {
39632
39768
  var fd = fs3.openSync(path3, constants.O_WRONLY | constants.O_SYMLINK, mode);
@@ -39823,12 +39959,12 @@ var require_legacy_streams = __commonJS({
39823
39959
  if (this.encoding)
39824
39960
  this.setEncoding(this.encoding);
39825
39961
  if (this.start !== void 0) {
39826
- if (typeof this.start !== "number") {
39962
+ if ("number" !== typeof this.start) {
39827
39963
  throw TypeError("start must be a Number");
39828
39964
  }
39829
39965
  if (this.end === void 0) {
39830
39966
  this.end = Infinity;
39831
- } else if (typeof this.end !== "number") {
39967
+ } else if ("number" !== typeof this.end) {
39832
39968
  throw TypeError("end must be a Number");
39833
39969
  }
39834
39970
  if (this.start > this.end) {
@@ -39871,7 +40007,7 @@ var require_legacy_streams = __commonJS({
39871
40007
  this[key] = options[key];
39872
40008
  }
39873
40009
  if (this.start !== void 0) {
39874
- if (typeof this.start !== "number") {
40010
+ if ("number" !== typeof this.start) {
39875
40011
  throw TypeError("start must be a Number");
39876
40012
  }
39877
40013
  if (this.start < 0) {
@@ -40077,14 +40213,14 @@ var require_graceful_fs = __commonJS({
40077
40213
  cb = options, options = null;
40078
40214
  return go$readdir(path3, options, cb);
40079
40215
  function go$readdir(path4, options2, cb2, startTime) {
40080
- return fs$readdir(path4, options2, function(err, files2) {
40216
+ return fs$readdir(path4, options2, function(err, files) {
40081
40217
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
40082
40218
  enqueue([go$readdir, [path4, options2, cb2], err, startTime || Date.now(), Date.now()]);
40083
40219
  else {
40084
- if (files2 && files2.sort)
40085
- files2.sort();
40220
+ if (files && files.sort)
40221
+ files.sort();
40086
40222
  if (typeof cb2 === "function")
40087
- cb2.call(this, err, files2);
40223
+ cb2.call(this, err, files);
40088
40224
  }
40089
40225
  });
40090
40226
  }
@@ -40359,7 +40495,11 @@ var require_fs = __commonJS({
40359
40495
  if (typeof fs2.realpath.native === "function") {
40360
40496
  exports.realpath.native = u(fs2.realpath.native);
40361
40497
  } else {
40362
- process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?", "Warning", "fs-extra-WARN0003");
40498
+ process.emitWarning(
40499
+ "fs.realpath.native is not a function. Is fs being monkey-patched?",
40500
+ "Warning",
40501
+ "fs-extra-WARN0003"
40502
+ );
40363
40503
  }
40364
40504
  }
40365
40505
  });
@@ -40392,7 +40532,7 @@ var require_make_dir = __commonJS({
40392
40532
  const defaults = { mode: 511 };
40393
40533
  if (typeof options === "number")
40394
40534
  return options;
40395
- return __spreadValues(__spreadValues({}, defaults), options).mode;
40535
+ return { ...defaults, ...options }.mode;
40396
40536
  };
40397
40537
  module2.exports.makeDir = async (dir, options) => {
40398
40538
  checkPath(dir);
@@ -40635,7 +40775,11 @@ var require_copy = __commonJS({
40635
40775
  opts.clobber = "clobber" in opts ? !!opts.clobber : true;
40636
40776
  opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
40637
40777
  if (opts.preserveTimestamps && process.arch === "ia32") {
40638
- process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0001");
40778
+ process.emitWarning(
40779
+ "Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269",
40780
+ "Warning",
40781
+ "fs-extra-WARN0001"
40782
+ );
40639
40783
  }
40640
40784
  stat.checkPaths(src, dest, "copy", opts, (err, stats) => {
40641
40785
  if (err)
@@ -40854,7 +40998,11 @@ var require_copy_sync = __commonJS({
40854
40998
  opts.clobber = "clobber" in opts ? !!opts.clobber : true;
40855
40999
  opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
40856
41000
  if (opts.preserveTimestamps && process.arch === "ia32") {
40857
- process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0002");
41001
+ process.emitWarning(
41002
+ "Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269",
41003
+ "Warning",
41004
+ "fs-extra-WARN0002"
41005
+ );
40858
41006
  }
40859
41007
  const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
40860
41008
  stat.checkParentPathsSync(src, srcStat, dest, "copy");
@@ -41137,14 +41285,14 @@ var require_rimraf = __commonJS({
41137
41285
  assert(p);
41138
41286
  assert(options);
41139
41287
  assert(typeof cb === "function");
41140
- options.readdir(p, (er, files2) => {
41288
+ options.readdir(p, (er, files) => {
41141
41289
  if (er)
41142
41290
  return cb(er);
41143
- let n = files2.length;
41291
+ let n = files.length;
41144
41292
  let errState;
41145
41293
  if (n === 0)
41146
41294
  return options.rmdir(p, cb);
41147
- files2.forEach((f) => {
41295
+ files.forEach((f) => {
41148
41296
  rimraf(path3.join(p, f), options, (er2) => {
41149
41297
  if (errState) {
41150
41298
  return;
@@ -41671,7 +41819,10 @@ var require_universalify2 = __commonJS({
41671
41819
  fn.apply(this, args);
41672
41820
  else {
41673
41821
  return new Promise((resolve, reject) => {
41674
- fn.apply(this, args.concat([(err, res) => err ? reject(err) : resolve(res)]));
41822
+ fn.apply(
41823
+ this,
41824
+ args.concat([(err, res) => err ? reject(err) : resolve(res)])
41825
+ );
41675
41826
  });
41676
41827
  }
41677
41828
  }, "name", { value: fn.name });
@@ -42034,7 +42185,18 @@ var require_move2 = __commonJS({
42034
42185
  var require_lib2 = __commonJS({
42035
42186
  "../../node_modules/fs-extra/lib/index.js"(exports, module2) {
42036
42187
  "use strict";
42037
- module2.exports = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, require_fs()), require_copy2()), require_empty2()), require_ensure()), require_json()), require_mkdirs()), require_move2()), require_output_file()), require_path_exists()), require_remove());
42188
+ module2.exports = {
42189
+ ...require_fs(),
42190
+ ...require_copy2(),
42191
+ ...require_empty2(),
42192
+ ...require_ensure(),
42193
+ ...require_json(),
42194
+ ...require_mkdirs(),
42195
+ ...require_move2(),
42196
+ ...require_output_file(),
42197
+ ...require_path_exists(),
42198
+ ...require_remove()
42199
+ };
42038
42200
  }
42039
42201
  });
42040
42202
 
@@ -42085,8 +42247,8 @@ var require_fs2 = __commonJS({
42085
42247
  Object.defineProperty(exports, "__esModule", { value: true });
42086
42248
  exports.createDirentFromStats = void 0;
42087
42249
  var DirentFromStats = class {
42088
- constructor(name2, stats) {
42089
- this.name = name2;
42250
+ constructor(name, stats) {
42251
+ this.name = name;
42090
42252
  this.isBlockDevice = stats.isBlockDevice.bind(stats);
42091
42253
  this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
42092
42254
  this.isDirectory = stats.isDirectory.bind(stats);
@@ -42096,8 +42258,8 @@ var require_fs2 = __commonJS({
42096
42258
  this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
42097
42259
  }
42098
42260
  };
42099
- function createDirentFromStats(name2, stats) {
42100
- return new DirentFromStats(name2, stats);
42261
+ function createDirentFromStats(name, stats) {
42262
+ return new DirentFromStats(name, stats);
42101
42263
  }
42102
42264
  exports.createDirentFromStats = createDirentFromStats;
42103
42265
  }
@@ -42461,7 +42623,7 @@ var require_to_regex_range = __commonJS({
42461
42623
  if (isNumber(max) === false) {
42462
42624
  throw new TypeError("toRegexRange: expected the second argument to be a number.");
42463
42625
  }
42464
- let opts = __spreadValues({ relaxZeros: true }, options);
42626
+ let opts = { relaxZeros: true, ...options };
42465
42627
  if (typeof opts.strictZeros === "boolean") {
42466
42628
  opts.relaxZeros = opts.strictZeros === false;
42467
42629
  }
@@ -42736,7 +42898,7 @@ var require_fill_range = __commonJS({
42736
42898
  };
42737
42899
  var toRange = (a, b, isNumbers, options) => {
42738
42900
  if (isNumbers) {
42739
- return toRegexRange(a, b, __spreadValues({ wrap: false }, options));
42901
+ return toRegexRange(a, b, { wrap: false, ...options });
42740
42902
  }
42741
42903
  let start = String.fromCharCode(a);
42742
42904
  if (a === b)
@@ -42804,7 +42966,7 @@ var require_fill_range = __commonJS({
42804
42966
  index++;
42805
42967
  }
42806
42968
  if (options.toRegex === true) {
42807
- return step > 1 ? toSequence(parts, options) : toRegex(range, null, __spreadValues({ wrap: false }, options));
42969
+ return step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: false, ...options });
42808
42970
  }
42809
42971
  return range;
42810
42972
  };
@@ -42846,7 +43008,7 @@ var require_fill_range = __commonJS({
42846
43008
  if (isObject(step)) {
42847
43009
  return fill(start, end, 0, step);
42848
43010
  }
42849
- let opts = __spreadValues({}, options);
43011
+ let opts = { ...options };
42850
43012
  if (opts.capture === true)
42851
43013
  opts.wrap = true;
42852
43014
  step = step || opts.step || 1;
@@ -42897,7 +43059,7 @@ var require_compile = __commonJS({
42897
43059
  }
42898
43060
  if (node.nodes && node.ranges > 0) {
42899
43061
  let args = utils.reduce(node.nodes);
42900
- let range = fill(...args, __spreadProps(__spreadValues({}, options), { wrap: false, toRegex: true }));
43062
+ let range = fill(...args, { ...options, wrap: false, toRegex: true });
42901
43063
  if (range.length !== 0) {
42902
43064
  return args.length > 1 && range.length > 1 ? `(${range})` : range;
42903
43065
  }
@@ -43400,7 +43562,8 @@ var require_constants3 = __commonJS({
43400
43562
  STAR,
43401
43563
  START_ANCHOR
43402
43564
  };
43403
- var WINDOWS_CHARS = __spreadProps(__spreadValues({}, POSIX_CHARS), {
43565
+ var WINDOWS_CHARS = {
43566
+ ...POSIX_CHARS,
43404
43567
  SLASH_LITERAL: `[${WIN_SLASH}]`,
43405
43568
  QMARK: WIN_NO_SLASH,
43406
43569
  STAR: `${WIN_NO_SLASH}*?`,
@@ -43412,7 +43575,7 @@ var require_constants3 = __commonJS({
43412
43575
  QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
43413
43576
  START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
43414
43577
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
43415
- });
43578
+ };
43416
43579
  var POSIX_REGEX_SOURCE = {
43417
43580
  alnum: "a-zA-Z0-9",
43418
43581
  alpha: "a-zA-Z",
@@ -43918,7 +44081,7 @@ var require_parse4 = __commonJS({
43918
44081
  throw new TypeError("Expected a string");
43919
44082
  }
43920
44083
  input = REPLACEMENTS[input] || input;
43921
- const opts = __spreadValues({}, options);
44084
+ const opts = { ...options };
43922
44085
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
43923
44086
  let len = input.length;
43924
44087
  if (len > max) {
@@ -44041,7 +44204,7 @@ var require_parse4 = __commonJS({
44041
44204
  prev = tok;
44042
44205
  };
44043
44206
  const extglobOpen = (type, value2) => {
44044
- const token = __spreadProps(__spreadValues({}, EXTGLOB_CHARS[value2]), { conditions: 1, inner: "" });
44207
+ const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" };
44045
44208
  token.prev = prev;
44046
44209
  token.parens = state.parens;
44047
44210
  token.output = state.output;
@@ -44063,7 +44226,7 @@ var require_parse4 = __commonJS({
44063
44226
  output = token.close = `)$))${extglobStar}`;
44064
44227
  }
44065
44228
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
44066
- const expression = parse(rest, __spreadProps(__spreadValues({}, options), { fastpaths: false })).output;
44229
+ const expression = parse(rest, { ...options, fastpaths: false }).output;
44067
44230
  output = token.close = `)${expression})${extglobStar})`;
44068
44231
  }
44069
44232
  if (token.prev.type === "bos") {
@@ -44593,7 +44756,7 @@ var require_parse4 = __commonJS({
44593
44756
  return state;
44594
44757
  };
44595
44758
  parse.fastpaths = (input, options) => {
44596
- const opts = __spreadValues({}, options);
44759
+ const opts = { ...options };
44597
44760
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
44598
44761
  const len = input.length;
44599
44762
  if (len > max) {
@@ -44699,7 +44862,7 @@ var require_picomatch = __commonJS({
44699
44862
  delete regex.state;
44700
44863
  let isIgnored = () => false;
44701
44864
  if (opts.ignore) {
44702
- const ignoreOpts = __spreadProps(__spreadValues({}, options), { ignore: null, onMatch: null, onResult: null });
44865
+ const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
44703
44866
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
44704
44867
  }
44705
44868
  const matcher = (input, returnObject = false) => {
@@ -44761,7 +44924,7 @@ var require_picomatch = __commonJS({
44761
44924
  picomatch.parse = (pattern, options) => {
44762
44925
  if (Array.isArray(pattern))
44763
44926
  return pattern.map((p) => picomatch.parse(p, options));
44764
- return parse(pattern, __spreadProps(__spreadValues({}, options), { fastpaths: false }));
44927
+ return parse(pattern, { ...options, fastpaths: false });
44765
44928
  };
44766
44929
  picomatch.scan = (input, options) => scan(input, options);
44767
44930
  picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
@@ -44840,7 +45003,7 @@ var require_micromatch = __commonJS({
44840
45003
  }
44841
45004
  };
44842
45005
  for (let i = 0; i < patterns.length; i++) {
44843
- let isMatch = picomatch(String(patterns[i]), __spreadProps(__spreadValues({}, options), { onResult }), true);
45006
+ let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
44844
45007
  let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
44845
45008
  if (negated)
44846
45009
  negatives++;
@@ -44882,7 +45045,7 @@ var require_micromatch = __commonJS({
44882
45045
  options.onResult(state);
44883
45046
  items.push(state.output);
44884
45047
  };
44885
- let matches = new Set(micromatch(list, patterns, __spreadProps(__spreadValues({}, options), { onResult })));
45048
+ let matches = new Set(micromatch(list, patterns, { ...options, onResult }));
44886
45049
  for (let item of items) {
44887
45050
  if (!matches.has(item)) {
44888
45051
  result.add(item);
@@ -44905,7 +45068,7 @@ var require_micromatch = __commonJS({
44905
45068
  return true;
44906
45069
  }
44907
45070
  }
44908
- return micromatch.isMatch(str, pattern, __spreadProps(__spreadValues({}, options), { contains: true }));
45071
+ return micromatch.isMatch(str, pattern, { ...options, contains: true });
44909
45072
  };
44910
45073
  micromatch.matchKeys = (obj, patterns, options) => {
44911
45074
  if (!utils.isObject(obj)) {
@@ -44945,7 +45108,7 @@ var require_micromatch = __commonJS({
44945
45108
  };
44946
45109
  micromatch.capture = (glob3, input, options) => {
44947
45110
  let posix = utils.isWindows(options);
44948
- let regex = picomatch.makeRe(String(glob3), __spreadProps(__spreadValues({}, options), { capture: true }));
45111
+ let regex = picomatch.makeRe(String(glob3), { ...options, capture: true });
44949
45112
  let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
44950
45113
  if (match) {
44951
45114
  return match.slice(1).map((v) => v === void 0 ? "" : v);
@@ -44973,7 +45136,7 @@ var require_micromatch = __commonJS({
44973
45136
  micromatch.braceExpand = (pattern, options) => {
44974
45137
  if (typeof pattern !== "string")
44975
45138
  throw new TypeError("Expected a string");
44976
- return micromatch.braces(pattern, __spreadProps(__spreadValues({}, options), { expand: true }));
45139
+ return micromatch.braces(pattern, { ...options, expand: true });
44977
45140
  };
44978
45141
  module2.exports = micromatch;
44979
45142
  }
@@ -45609,8 +45772,8 @@ var require_fs4 = __commonJS({
45609
45772
  "use strict";
45610
45773
  Object.defineProperty(exports, "__esModule", { value: true });
45611
45774
  var DirentFromStats = class {
45612
- constructor(name2, stats) {
45613
- this.name = name2;
45775
+ constructor(name, stats) {
45776
+ this.name = name;
45614
45777
  this.isBlockDevice = stats.isBlockDevice.bind(stats);
45615
45778
  this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
45616
45779
  this.isDirectory = stats.isDirectory.bind(stats);
@@ -45620,8 +45783,8 @@ var require_fs4 = __commonJS({
45620
45783
  this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
45621
45784
  }
45622
45785
  };
45623
- function createDirentFromStats(name2, stats) {
45624
- return new DirentFromStats(name2, stats);
45786
+ function createDirentFromStats(name, stats) {
45787
+ return new DirentFromStats(name, stats);
45625
45788
  }
45626
45789
  exports.createDirentFromStats = createDirentFromStats;
45627
45790
  }
@@ -45698,7 +45861,7 @@ var require_async3 = __commonJS({
45698
45861
  if (readdirError !== null) {
45699
45862
  return callFailureCallback(callback, readdirError);
45700
45863
  }
45701
- const filepaths = names.map((name2) => `${directory}${settings.pathSegmentSeparator}${name2}`);
45864
+ const filepaths = names.map((name) => `${directory}${settings.pathSegmentSeparator}${name}`);
45702
45865
  const tasks = filepaths.map((filepath) => {
45703
45866
  return (done) => fsStat.stat(filepath, settings.fsStatSettings, done);
45704
45867
  });
@@ -45707,12 +45870,12 @@ var require_async3 = __commonJS({
45707
45870
  return callFailureCallback(callback, rplError);
45708
45871
  }
45709
45872
  const entries = [];
45710
- names.forEach((name2, index) => {
45873
+ names.forEach((name, index) => {
45711
45874
  const stats = results[index];
45712
45875
  const entry = {
45713
- name: name2,
45876
+ name,
45714
45877
  path: filepaths[index],
45715
- dirent: utils.fs.createDirentFromStats(name2, stats)
45878
+ dirent: utils.fs.createDirentFromStats(name, stats)
45716
45879
  };
45717
45880
  if (settings.stats) {
45718
45881
  entry.stats = stats;
@@ -45772,13 +45935,13 @@ var require_sync2 = __commonJS({
45772
45935
  exports.readdirWithFileTypes = readdirWithFileTypes;
45773
45936
  function readdir(directory, settings) {
45774
45937
  const names = settings.fs.readdirSync(directory);
45775
- return names.map((name2) => {
45776
- const entryPath = `${directory}${settings.pathSegmentSeparator}${name2}`;
45938
+ return names.map((name) => {
45939
+ const entryPath = `${directory}${settings.pathSegmentSeparator}${name}`;
45777
45940
  const stats = fsStat.statSync(entryPath, settings.fsStatSettings);
45778
45941
  const entry = {
45779
- name: name2,
45942
+ name,
45780
45943
  path: entryPath,
45781
- dirent: utils.fs.createDirentFromStats(name2, stats)
45944
+ dirent: utils.fs.createDirentFromStats(name, stats)
45782
45945
  };
45783
45946
  if (settings.stats) {
45784
45947
  entry.stats = stats;
@@ -47253,7 +47416,9 @@ var require_lodash = __commonJS({
47253
47416
  var funcToString = funcProto.toString;
47254
47417
  var hasOwnProperty = objectProto.hasOwnProperty;
47255
47418
  var objectToString = objectProto.toString;
47256
- var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
47419
+ var reIsNative = RegExp(
47420
+ "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
47421
+ );
47257
47422
  var Buffer2 = moduleExports ? root.Buffer : void 0;
47258
47423
  var Symbol2 = root.Symbol;
47259
47424
  var Uint8Array2 = root.Uint8Array;
@@ -47962,9 +48127,21 @@ var require_collections = __commonJS({
47962
48127
  result += "\u2026";
47963
48128
  break;
47964
48129
  }
47965
- const name2 = printer(current.value[0], config, indentationNext, depth, refs);
47966
- const value = printer(current.value[1], config, indentationNext, depth, refs);
47967
- result += name2 + separator + value;
48130
+ const name = printer(
48131
+ current.value[0],
48132
+ config,
48133
+ indentationNext,
48134
+ depth,
48135
+ refs
48136
+ );
48137
+ const value = printer(
48138
+ current.value[1],
48139
+ config,
48140
+ indentationNext,
48141
+ depth,
48142
+ refs
48143
+ );
48144
+ result += name + separator + value;
47968
48145
  current = iterator.next();
47969
48146
  if (!current.done) {
47970
48147
  result += `,${config.spacingInner}`;
@@ -48033,9 +48210,9 @@ var require_collections = __commonJS({
48033
48210
  const indentationNext = indentation + config.indent;
48034
48211
  for (let i = 0; i < keys.length; i++) {
48035
48212
  const key = keys[i];
48036
- const name2 = printer(key, config, indentationNext, depth, refs);
48213
+ const name = printer(key, config, indentationNext, depth, refs);
48037
48214
  const value = printer(val[key], config, indentationNext, depth, refs);
48038
- result += `${indentationNext + name2}: ${value}`;
48215
+ result += `${indentationNext + name}: ${value}`;
48039
48216
  if (i < keys.length - 1) {
48040
48217
  result += `,${config.spacingInner}`;
48041
48218
  } else if (!config.min) {
@@ -48067,13 +48244,27 @@ var require_AsymmetricMatcher = __commonJS({
48067
48244
  if (++depth > config.maxDepth) {
48068
48245
  return `[${stringedValue}]`;
48069
48246
  }
48070
- return `${stringedValue + SPACE}[${(0, _collections.printListItems)(val.sample, config, indentation, depth, refs, printer)}]`;
48247
+ return `${stringedValue + SPACE}[${(0, _collections.printListItems)(
48248
+ val.sample,
48249
+ config,
48250
+ indentation,
48251
+ depth,
48252
+ refs,
48253
+ printer
48254
+ )}]`;
48071
48255
  }
48072
48256
  if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") {
48073
48257
  if (++depth > config.maxDepth) {
48074
48258
  return `[${stringedValue}]`;
48075
48259
  }
48076
- return `${stringedValue + SPACE}{${(0, _collections.printObjectProperties)(val.sample, config, indentation, depth, refs, printer)}}`;
48260
+ return `${stringedValue + SPACE}{${(0, _collections.printObjectProperties)(
48261
+ val.sample,
48262
+ config,
48263
+ indentation,
48264
+ depth,
48265
+ refs,
48266
+ printer
48267
+ )}}`;
48077
48268
  }
48078
48269
  if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching") {
48079
48270
  return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
@@ -48082,7 +48273,9 @@ var require_AsymmetricMatcher = __commonJS({
48082
48273
  return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
48083
48274
  }
48084
48275
  if (typeof val.toAsymmetricMatcher !== "function") {
48085
- throw new Error(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
48276
+ throw new Error(
48277
+ `Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`
48278
+ );
48086
48279
  }
48087
48280
  return val.toAsymmetricMatcher();
48088
48281
  };
@@ -48181,19 +48374,33 @@ var require_DOMCollection = __commonJS({
48181
48374
  var SPACE = " ";
48182
48375
  var OBJECT_NAMES = ["DOMStringMap", "NamedNodeMap"];
48183
48376
  var ARRAY_REGEXP = /^(HTML\w*Collection|NodeList)$/;
48184
- var testName = (name2) => OBJECT_NAMES.indexOf(name2) !== -1 || ARRAY_REGEXP.test(name2);
48377
+ var testName = (name) => OBJECT_NAMES.indexOf(name) !== -1 || ARRAY_REGEXP.test(name);
48185
48378
  var test = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
48186
48379
  exports.test = test;
48187
48380
  var isNamedNodeMap = (collection) => collection.constructor.name === "NamedNodeMap";
48188
48381
  var serialize = (collection, config, indentation, depth, refs, printer) => {
48189
- const name2 = collection.constructor.name;
48382
+ const name = collection.constructor.name;
48190
48383
  if (++depth > config.maxDepth) {
48191
- return `[${name2}]`;
48192
- }
48193
- return (config.min ? "" : name2 + SPACE) + (OBJECT_NAMES.indexOf(name2) !== -1 ? `{${(0, _collections.printObjectProperties)(isNamedNodeMap(collection) ? Array.from(collection).reduce((props, attribute) => {
48194
- props[attribute.name] = attribute.value;
48195
- return props;
48196
- }, {}) : __spreadValues({}, collection), config, indentation, depth, refs, printer)}}` : `[${(0, _collections.printListItems)(Array.from(collection), config, indentation, depth, refs, printer)}]`);
48384
+ return `[${name}]`;
48385
+ }
48386
+ return (config.min ? "" : name + SPACE) + (OBJECT_NAMES.indexOf(name) !== -1 ? `{${(0, _collections.printObjectProperties)(
48387
+ isNamedNodeMap(collection) ? Array.from(collection).reduce((props, attribute) => {
48388
+ props[attribute.name] = attribute.value;
48389
+ return props;
48390
+ }, {}) : { ...collection },
48391
+ config,
48392
+ indentation,
48393
+ depth,
48394
+ refs,
48395
+ printer
48396
+ )}}` : `[${(0, _collections.printListItems)(
48397
+ Array.from(collection),
48398
+ config,
48399
+ indentation,
48400
+ depth,
48401
+ refs,
48402
+ printer
48403
+ )}]`);
48197
48404
  };
48198
48405
  exports.serialize = serialize;
48199
48406
  var plugin = {
@@ -48247,7 +48454,9 @@ var require_markup = __commonJS({
48247
48454
  }).join("");
48248
48455
  };
48249
48456
  exports.printProps = printProps;
48250
- var printChildren = (children, config, indentation, depth, refs, printer) => children.map((child) => config.spacingOuter + indentation + (typeof child === "string" ? printText(child, config) : printer(child, config, indentation, depth, refs))).join("");
48457
+ var printChildren = (children, config, indentation, depth, refs, printer) => children.map(
48458
+ (child) => config.spacingOuter + indentation + (typeof child === "string" ? printText(child, config) : printer(child, config, indentation, depth, refs))
48459
+ ).join("");
48251
48460
  exports.printChildren = printChildren;
48252
48461
  var printText = (text, config) => {
48253
48462
  const contentColor = config.colors.content;
@@ -48324,10 +48533,31 @@ var require_DOMElement = __commonJS({
48324
48533
  if (++depth > config.maxDepth) {
48325
48534
  return (0, _markup.printElementAsLeaf)(type, config);
48326
48535
  }
48327
- return (0, _markup.printElement)(type, (0, _markup.printProps)(nodeIsFragment(node) ? [] : Array.from(node.attributes).map((attr) => attr.name).sort(), nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => {
48328
- props[attribute.name] = attribute.value;
48329
- return props;
48330
- }, {}), config, indentation + config.indent, depth, refs, printer), (0, _markup.printChildren)(Array.prototype.slice.call(node.childNodes || node.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
48536
+ return (0, _markup.printElement)(
48537
+ type,
48538
+ (0, _markup.printProps)(
48539
+ nodeIsFragment(node) ? [] : Array.from(node.attributes).map((attr) => attr.name).sort(),
48540
+ nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => {
48541
+ props[attribute.name] = attribute.value;
48542
+ return props;
48543
+ }, {}),
48544
+ config,
48545
+ indentation + config.indent,
48546
+ depth,
48547
+ refs,
48548
+ printer
48549
+ ),
48550
+ (0, _markup.printChildren)(
48551
+ Array.prototype.slice.call(node.childNodes || node.children),
48552
+ config,
48553
+ indentation + config.indent,
48554
+ depth,
48555
+ refs,
48556
+ printer
48557
+ ),
48558
+ config,
48559
+ indentation
48560
+ );
48331
48561
  };
48332
48562
  exports.serialize = serialize;
48333
48563
  var plugin = {
@@ -48357,11 +48587,18 @@ var require_Immutable = __commonJS({
48357
48587
  var IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@";
48358
48588
  var IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@";
48359
48589
  var IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@";
48360
- var getImmutableName = (name2) => `Immutable.${name2}`;
48361
- var printAsLeaf = (name2) => `[${name2}]`;
48590
+ var getImmutableName = (name) => `Immutable.${name}`;
48591
+ var printAsLeaf = (name) => `[${name}]`;
48362
48592
  var SPACE = " ";
48363
48593
  var LAZY = "\u2026";
48364
- var printImmutableEntries = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer)}}`;
48594
+ var printImmutableEntries = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${(0, _collections.printIteratorEntries)(
48595
+ val.entries(),
48596
+ config,
48597
+ indentation,
48598
+ depth,
48599
+ refs,
48600
+ printer
48601
+ )}}`;
48365
48602
  function getRecordEntries(val) {
48366
48603
  let i = 0;
48367
48604
  return {
@@ -48381,32 +48618,92 @@ var require_Immutable = __commonJS({
48381
48618
  };
48382
48619
  }
48383
48620
  var printImmutableRecord = (val, config, indentation, depth, refs, printer) => {
48384
- const name2 = getImmutableName(val._name || "Record");
48385
- return ++depth > config.maxDepth ? printAsLeaf(name2) : `${name2 + SPACE}{${(0, _collections.printIteratorEntries)(getRecordEntries(val), config, indentation, depth, refs, printer)}}`;
48621
+ const name = getImmutableName(val._name || "Record");
48622
+ return ++depth > config.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${(0, _collections.printIteratorEntries)(
48623
+ getRecordEntries(val),
48624
+ config,
48625
+ indentation,
48626
+ depth,
48627
+ refs,
48628
+ printer
48629
+ )}}`;
48386
48630
  };
48387
48631
  var printImmutableSeq = (val, config, indentation, depth, refs, printer) => {
48388
- const name2 = getImmutableName("Seq");
48632
+ const name = getImmutableName("Seq");
48389
48633
  if (++depth > config.maxDepth) {
48390
- return printAsLeaf(name2);
48634
+ return printAsLeaf(name);
48391
48635
  }
48392
48636
  if (val[IS_KEYED_SENTINEL]) {
48393
- return `${name2 + SPACE}{${val._iter || val._object ? (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) : LAZY}}`;
48394
- }
48395
- return `${name2 + SPACE}[${val._iter || val._array || val._collection || val._iterable ? (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY}]`;
48396
- };
48397
- var printImmutableValues = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}]`;
48637
+ return `${name + SPACE}{${val._iter || val._object ? (0, _collections.printIteratorEntries)(
48638
+ val.entries(),
48639
+ config,
48640
+ indentation,
48641
+ depth,
48642
+ refs,
48643
+ printer
48644
+ ) : LAZY}}`;
48645
+ }
48646
+ return `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? (0, _collections.printIteratorValues)(
48647
+ val.values(),
48648
+ config,
48649
+ indentation,
48650
+ depth,
48651
+ refs,
48652
+ printer
48653
+ ) : LAZY}]`;
48654
+ };
48655
+ var printImmutableValues = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${(0, _collections.printIteratorValues)(
48656
+ val.values(),
48657
+ config,
48658
+ indentation,
48659
+ depth,
48660
+ refs,
48661
+ printer
48662
+ )}]`;
48398
48663
  var serialize = (val, config, indentation, depth, refs, printer) => {
48399
48664
  if (val[IS_MAP_SENTINEL]) {
48400
- return printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map");
48665
+ return printImmutableEntries(
48666
+ val,
48667
+ config,
48668
+ indentation,
48669
+ depth,
48670
+ refs,
48671
+ printer,
48672
+ val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map"
48673
+ );
48401
48674
  }
48402
48675
  if (val[IS_LIST_SENTINEL]) {
48403
- return printImmutableValues(val, config, indentation, depth, refs, printer, "List");
48676
+ return printImmutableValues(
48677
+ val,
48678
+ config,
48679
+ indentation,
48680
+ depth,
48681
+ refs,
48682
+ printer,
48683
+ "List"
48684
+ );
48404
48685
  }
48405
48686
  if (val[IS_SET_SENTINEL]) {
48406
- return printImmutableValues(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set");
48687
+ return printImmutableValues(
48688
+ val,
48689
+ config,
48690
+ indentation,
48691
+ depth,
48692
+ refs,
48693
+ printer,
48694
+ val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set"
48695
+ );
48407
48696
  }
48408
48697
  if (val[IS_STACK_SENTINEL]) {
48409
- return printImmutableValues(val, config, indentation, depth, refs, printer, "Stack");
48698
+ return printImmutableValues(
48699
+ val,
48700
+ config,
48701
+ indentation,
48702
+ depth,
48703
+ refs,
48704
+ printer,
48705
+ "Stack"
48706
+ );
48410
48707
  }
48411
48708
  if (val[IS_SEQ_SENTINEL]) {
48412
48709
  return printImmutableSeq(val, config, indentation, depth, refs, printer);
@@ -48446,7 +48743,7 @@ var require_react_is_production_min = __commonJS({
48446
48743
  var u = 60117;
48447
48744
  var v = 60129;
48448
48745
  var w = 60131;
48449
- if (typeof Symbol === "function" && Symbol.for) {
48746
+ if ("function" === typeof Symbol && Symbol.for) {
48450
48747
  x = Symbol.for;
48451
48748
  b = x("react.element");
48452
48749
  c = x("react.portal");
@@ -48468,7 +48765,7 @@ var require_react_is_production_min = __commonJS({
48468
48765
  }
48469
48766
  var x;
48470
48767
  function y(a) {
48471
- if (typeof a === "object" && a !== null) {
48768
+ if ("object" === typeof a && null !== a) {
48472
48769
  var t = a.$$typeof;
48473
48770
  switch (t) {
48474
48771
  case b:
@@ -48530,7 +48827,7 @@ var require_react_is_production_min = __commonJS({
48530
48827
  return y(a) === g;
48531
48828
  };
48532
48829
  exports.isElement = function(a) {
48533
- return typeof a === "object" && a !== null && a.$$typeof === b;
48830
+ return "object" === typeof a && null !== a && a.$$typeof === b;
48534
48831
  };
48535
48832
  exports.isForwardRef = function(a) {
48536
48833
  return y(a) === k;
@@ -48557,7 +48854,7 @@ var require_react_is_production_min = __commonJS({
48557
48854
  return y(a) === l;
48558
48855
  };
48559
48856
  exports.isValidElementType = function(a) {
48560
- return typeof a === "string" || typeof a === "function" || a === d || a === f || a === v || a === e || a === l || a === m || a === w || typeof a === "object" && a !== null && (a.$$typeof === p || a.$$typeof === n || a.$$typeof === g || a.$$typeof === h || a.$$typeof === k || a.$$typeof === u || a.$$typeof === q || a[0] === r) ? true : false;
48857
+ return "string" === typeof a || "function" === typeof a || a === d || a === f || a === v || a === e || a === l || a === m || a === w || "object" === typeof a && null !== a && (a.$$typeof === p || a.$$typeof === n || a.$$typeof === g || a.$$typeof === h || a.$$typeof === k || a.$$typeof === u || a.$$typeof === q || a[0] === r) ? true : false;
48561
48858
  };
48562
48859
  exports.typeOf = y;
48563
48860
  }
@@ -48864,7 +49161,28 @@ var require_ReactElement = __commonJS({
48864
49161
  const { props } = element;
48865
49162
  return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
48866
49163
  };
48867
- var serialize = (element, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(getType(element), config) : (0, _markup.printElement)(getType(element), (0, _markup.printProps)(getPropKeys(element), element.props, config, indentation + config.indent, depth, refs, printer), (0, _markup.printChildren)(getChildren(element.props.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
49164
+ var serialize = (element, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(getType(element), config) : (0, _markup.printElement)(
49165
+ getType(element),
49166
+ (0, _markup.printProps)(
49167
+ getPropKeys(element),
49168
+ element.props,
49169
+ config,
49170
+ indentation + config.indent,
49171
+ depth,
49172
+ refs,
49173
+ printer
49174
+ ),
49175
+ (0, _markup.printChildren)(
49176
+ getChildren(element.props.children),
49177
+ config,
49178
+ indentation + config.indent,
49179
+ depth,
49180
+ refs,
49181
+ printer
49182
+ ),
49183
+ config,
49184
+ indentation
49185
+ );
48868
49186
  exports.serialize = serialize;
48869
49187
  var test = (val) => val != null && ReactIs.isElement(val);
48870
49188
  exports.test = test;
@@ -48892,7 +49210,28 @@ var require_ReactTestComponent = __commonJS({
48892
49210
  const { props } = object;
48893
49211
  return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
48894
49212
  };
48895
- var serialize = (object, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(object.type, config) : (0, _markup.printElement)(object.type, object.props ? (0, _markup.printProps)(getPropKeys(object), object.props, config, indentation + config.indent, depth, refs, printer) : "", object.children ? (0, _markup.printChildren)(object.children, config, indentation + config.indent, depth, refs, printer) : "", config, indentation);
49213
+ var serialize = (object, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(object.type, config) : (0, _markup.printElement)(
49214
+ object.type,
49215
+ object.props ? (0, _markup.printProps)(
49216
+ getPropKeys(object),
49217
+ object.props,
49218
+ config,
49219
+ indentation + config.indent,
49220
+ depth,
49221
+ refs,
49222
+ printer
49223
+ ) : "",
49224
+ object.children ? (0, _markup.printChildren)(
49225
+ object.children,
49226
+ config,
49227
+ indentation + config.indent,
49228
+ depth,
49229
+ refs,
49230
+ printer
49231
+ ) : "",
49232
+ config,
49233
+ indentation
49234
+ );
48896
49235
  exports.serialize = serialize;
48897
49236
  var test = (val) => val && val.$$typeof === testSymbol;
48898
49237
  exports.test = test;
@@ -48917,13 +49256,17 @@ var require_build2 = __commonJS({
48917
49256
  exports.plugins = void 0;
48918
49257
  var _ansiStyles = _interopRequireDefault(require_ansi_styles2());
48919
49258
  var _collections = require_collections();
48920
- var _AsymmetricMatcher = _interopRequireDefault(require_AsymmetricMatcher());
49259
+ var _AsymmetricMatcher = _interopRequireDefault(
49260
+ require_AsymmetricMatcher()
49261
+ );
48921
49262
  var _ConvertAnsi = _interopRequireDefault(require_ConvertAnsi());
48922
49263
  var _DOMCollection = _interopRequireDefault(require_DOMCollection());
48923
49264
  var _DOMElement = _interopRequireDefault(require_DOMElement());
48924
49265
  var _Immutable = _interopRequireDefault(require_Immutable());
48925
49266
  var _ReactElement = _interopRequireDefault(require_ReactElement());
48926
- var _ReactTestComponent = _interopRequireDefault(require_ReactTestComponent());
49267
+ var _ReactTestComponent = _interopRequireDefault(
49268
+ require_ReactTestComponent()
49269
+ );
48927
49270
  function _interopRequireDefault(obj) {
48928
49271
  return obj && obj.__esModule ? obj : { default: obj };
48929
49272
  }
@@ -49035,18 +49378,54 @@ var require_build2 = __commonJS({
49035
49378
  }
49036
49379
  const toStringed = toString.call(val);
49037
49380
  if (toStringed === "[object Arguments]") {
49038
- return hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]`;
49381
+ return hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${(0, _collections.printListItems)(
49382
+ val,
49383
+ config,
49384
+ indentation,
49385
+ depth,
49386
+ refs,
49387
+ printer
49388
+ )}]`;
49039
49389
  }
49040
49390
  if (isToStringedArrayType(toStringed)) {
49041
- return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? "" : !config.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]`;
49391
+ return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? "" : !config.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${(0, _collections.printListItems)(
49392
+ val,
49393
+ config,
49394
+ indentation,
49395
+ depth,
49396
+ refs,
49397
+ printer
49398
+ )}]`;
49042
49399
  }
49043
49400
  if (toStringed === "[object Map]") {
49044
- return hitMaxDepth ? "[Map]" : `Map {${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer, " => ")}}`;
49401
+ return hitMaxDepth ? "[Map]" : `Map {${(0, _collections.printIteratorEntries)(
49402
+ val.entries(),
49403
+ config,
49404
+ indentation,
49405
+ depth,
49406
+ refs,
49407
+ printer,
49408
+ " => "
49409
+ )}}`;
49045
49410
  }
49046
49411
  if (toStringed === "[object Set]") {
49047
- return hitMaxDepth ? "[Set]" : `Set {${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}}`;
49048
- }
49049
- return hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? "" : !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${(0, _collections.printObjectProperties)(val, config, indentation, depth, refs, printer)}}`;
49412
+ return hitMaxDepth ? "[Set]" : `Set {${(0, _collections.printIteratorValues)(
49413
+ val.values(),
49414
+ config,
49415
+ indentation,
49416
+ depth,
49417
+ refs,
49418
+ printer
49419
+ )}}`;
49420
+ }
49421
+ return hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? "" : !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${(0, _collections.printObjectProperties)(
49422
+ val,
49423
+ config,
49424
+ indentation,
49425
+ depth,
49426
+ refs,
49427
+ printer
49428
+ )}}`;
49050
49429
  }
49051
49430
  function isNewPlugin(plugin) {
49052
49431
  return plugin.serialize != null;
@@ -49054,20 +49433,28 @@ var require_build2 = __commonJS({
49054
49433
  function printPlugin(plugin, val, config, indentation, depth, refs) {
49055
49434
  let printed;
49056
49435
  try {
49057
- printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(val, (valChild) => printer(valChild, config, indentation, depth, refs), (str) => {
49058
- const indentationNext = indentation + config.indent;
49059
- return indentationNext + str.replace(NEWLINE_REGEXP, `
49436
+ printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(
49437
+ val,
49438
+ (valChild) => printer(valChild, config, indentation, depth, refs),
49439
+ (str) => {
49440
+ const indentationNext = indentation + config.indent;
49441
+ return indentationNext + str.replace(NEWLINE_REGEXP, `
49060
49442
  ${indentationNext}`);
49061
- }, {
49062
- edgeSpacing: config.spacingOuter,
49063
- min: config.min,
49064
- spacing: config.spacingInner
49065
- }, config.colors);
49443
+ },
49444
+ {
49445
+ edgeSpacing: config.spacingOuter,
49446
+ min: config.min,
49447
+ spacing: config.spacingInner
49448
+ },
49449
+ config.colors
49450
+ );
49066
49451
  } catch (error) {
49067
49452
  throw new PrettyFormatPluginError(error.message, error.stack);
49068
49453
  }
49069
49454
  if (typeof printed !== "string") {
49070
- throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);
49455
+ throw new Error(
49456
+ `pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`
49457
+ );
49071
49458
  }
49072
49459
  return printed;
49073
49460
  }
@@ -49088,11 +49475,23 @@ ${indentationNext}`);
49088
49475
  if (plugin !== null) {
49089
49476
  return printPlugin(plugin, val, config, indentation, depth, refs);
49090
49477
  }
49091
- const basicResult = printBasicValue(val, config.printFunctionName, config.escapeRegex, config.escapeString);
49478
+ const basicResult = printBasicValue(
49479
+ val,
49480
+ config.printFunctionName,
49481
+ config.escapeRegex,
49482
+ config.escapeString
49483
+ );
49092
49484
  if (basicResult !== null) {
49093
49485
  return basicResult;
49094
49486
  }
49095
- return printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON);
49487
+ return printComplexValue(
49488
+ val,
49489
+ config,
49490
+ indentation,
49491
+ depth,
49492
+ refs,
49493
+ hasCalledToJSON
49494
+ );
49096
49495
  }
49097
49496
  var DEFAULT_THEME = {
49098
49497
  comment: "gray",
@@ -49125,14 +49524,18 @@ ${indentationNext}`);
49125
49524
  }
49126
49525
  });
49127
49526
  if (options.min && options.indent !== void 0 && options.indent !== 0) {
49128
- throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');
49527
+ throw new Error(
49528
+ 'pretty-format: Options "min" and "indent" cannot be used together.'
49529
+ );
49129
49530
  }
49130
49531
  if (options.theme !== void 0) {
49131
49532
  if (options.theme === null) {
49132
49533
  throw new Error('pretty-format: Option "theme" must not be null.');
49133
49534
  }
49134
49535
  if (typeof options.theme !== "object") {
49135
- throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`);
49536
+ throw new Error(
49537
+ `pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`
49538
+ );
49136
49539
  }
49137
49540
  }
49138
49541
  }
@@ -49142,7 +49545,9 @@ ${indentationNext}`);
49142
49545
  if (color && typeof color.close === "string" && typeof color.open === "string") {
49143
49546
  colors[key] = color;
49144
49547
  } else {
49145
- throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
49548
+ throw new Error(
49549
+ `pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`
49550
+ );
49146
49551
  }
49147
49552
  return colors;
49148
49553
  }, /* @__PURE__ */ Object.create(null));
@@ -49173,7 +49578,9 @@ ${indentationNext}`);
49173
49578
  compareKeys: typeof (options === null || options === void 0 ? void 0 : options.compareKeys) === "function" ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
49174
49579
  escapeRegex: getEscapeRegex(options),
49175
49580
  escapeString: getEscapeString(options),
49176
- indent: options !== null && options !== void 0 && options.min ? "" : createIndent((_options$indent = options === null || options === void 0 ? void 0 : options.indent) !== null && _options$indent !== void 0 ? _options$indent : DEFAULT_OPTIONS.indent),
49581
+ indent: options !== null && options !== void 0 && options.min ? "" : createIndent(
49582
+ (_options$indent = options === null || options === void 0 ? void 0 : options.indent) !== null && _options$indent !== void 0 ? _options$indent : DEFAULT_OPTIONS.indent
49583
+ ),
49177
49584
  maxDepth: (_options$maxDepth = options === null || options === void 0 ? void 0 : options.maxDepth) !== null && _options$maxDepth !== void 0 ? _options$maxDepth : DEFAULT_OPTIONS.maxDepth,
49178
49585
  maxWidth: (_options$maxWidth = options === null || options === void 0 ? void 0 : options.maxWidth) !== null && _options$maxWidth !== void 0 ? _options$maxWidth : DEFAULT_OPTIONS.maxWidth,
49179
49586
  min: (_options$min = options === null || options === void 0 ? void 0 : options.min) !== null && _options$min !== void 0 ? _options$min : DEFAULT_OPTIONS.min,
@@ -49197,7 +49604,12 @@ ${indentationNext}`);
49197
49604
  }
49198
49605
  }
49199
49606
  }
49200
- const basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));
49607
+ const basicResult = printBasicValue(
49608
+ val,
49609
+ getPrintFunctionName(options),
49610
+ getEscapeRegex(options),
49611
+ getEscapeString(options)
49612
+ );
49201
49613
  if (basicResult !== null) {
49202
49614
  return basicResult;
49203
49615
  }
@@ -49334,7 +49746,11 @@ var require_cleanupSemantic = __commonJS({
49334
49746
  length_deletions2 += diffs[pointer][1].length;
49335
49747
  }
49336
49748
  if (lastEquality && lastEquality.length <= Math.max(length_insertions1, length_deletions1) && lastEquality.length <= Math.max(length_insertions2, length_deletions2)) {
49337
- diffs.splice(equalities[equalitiesLength - 1], 0, new Diff(DIFF_DELETE, lastEquality));
49749
+ diffs.splice(
49750
+ equalities[equalitiesLength - 1],
49751
+ 0,
49752
+ new Diff(DIFF_DELETE, lastEquality)
49753
+ );
49338
49754
  diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;
49339
49755
  equalitiesLength--;
49340
49756
  equalitiesLength--;
@@ -49362,16 +49778,30 @@ var require_cleanupSemantic = __commonJS({
49362
49778
  var overlap_length2 = diff_commonOverlap_(insertion, deletion);
49363
49779
  if (overlap_length1 >= overlap_length2) {
49364
49780
  if (overlap_length1 >= deletion.length / 2 || overlap_length1 >= insertion.length / 2) {
49365
- diffs.splice(pointer, 0, new Diff(DIFF_EQUAL, insertion.substring(0, overlap_length1)));
49366
- diffs[pointer - 1][1] = deletion.substring(0, deletion.length - overlap_length1);
49781
+ diffs.splice(
49782
+ pointer,
49783
+ 0,
49784
+ new Diff(DIFF_EQUAL, insertion.substring(0, overlap_length1))
49785
+ );
49786
+ diffs[pointer - 1][1] = deletion.substring(
49787
+ 0,
49788
+ deletion.length - overlap_length1
49789
+ );
49367
49790
  diffs[pointer + 1][1] = insertion.substring(overlap_length1);
49368
49791
  pointer++;
49369
49792
  }
49370
49793
  } else {
49371
49794
  if (overlap_length2 >= deletion.length / 2 || overlap_length2 >= insertion.length / 2) {
49372
- diffs.splice(pointer, 0, new Diff(DIFF_EQUAL, deletion.substring(0, overlap_length2)));
49795
+ diffs.splice(
49796
+ pointer,
49797
+ 0,
49798
+ new Diff(DIFF_EQUAL, deletion.substring(0, overlap_length2))
49799
+ );
49373
49800
  diffs[pointer - 1][0] = DIFF_INSERT;
49374
- diffs[pointer - 1][1] = insertion.substring(0, insertion.length - overlap_length2);
49801
+ diffs[pointer - 1][1] = insertion.substring(
49802
+ 0,
49803
+ insertion.length - overlap_length2
49804
+ );
49375
49805
  diffs[pointer + 1][0] = DIFF_DELETE;
49376
49806
  diffs[pointer + 1][1] = deletion.substring(overlap_length2);
49377
49807
  pointer++;
@@ -49492,7 +49922,11 @@ var require_cleanupSemantic = __commonJS({
49492
49922
  if (pointer - count_delete - count_insert > 0 && diffs[pointer - count_delete - count_insert - 1][0] == DIFF_EQUAL) {
49493
49923
  diffs[pointer - count_delete - count_insert - 1][1] += text_insert.substring(0, commonlength);
49494
49924
  } else {
49495
- diffs.splice(0, 0, new Diff(DIFF_EQUAL, text_insert.substring(0, commonlength)));
49925
+ diffs.splice(
49926
+ 0,
49927
+ 0,
49928
+ new Diff(DIFF_EQUAL, text_insert.substring(0, commonlength))
49929
+ );
49496
49930
  pointer++;
49497
49931
  }
49498
49932
  text_insert = text_insert.substring(commonlength);
@@ -49501,8 +49935,14 @@ var require_cleanupSemantic = __commonJS({
49501
49935
  commonlength = diff_commonSuffix(text_insert, text_delete);
49502
49936
  if (commonlength !== 0) {
49503
49937
  diffs[pointer][1] = text_insert.substring(text_insert.length - commonlength) + diffs[pointer][1];
49504
- text_insert = text_insert.substring(0, text_insert.length - commonlength);
49505
- text_delete = text_delete.substring(0, text_delete.length - commonlength);
49938
+ text_insert = text_insert.substring(
49939
+ 0,
49940
+ text_insert.length - commonlength
49941
+ );
49942
+ text_delete = text_delete.substring(
49943
+ 0,
49944
+ text_delete.length - commonlength
49945
+ );
49506
49946
  }
49507
49947
  }
49508
49948
  pointer -= count_delete + count_insert;
@@ -49536,8 +49976,13 @@ var require_cleanupSemantic = __commonJS({
49536
49976
  pointer = 1;
49537
49977
  while (pointer < diffs.length - 1) {
49538
49978
  if (diffs[pointer - 1][0] == DIFF_EQUAL && diffs[pointer + 1][0] == DIFF_EQUAL) {
49539
- if (diffs[pointer][1].substring(diffs[pointer][1].length - diffs[pointer - 1][1].length) == diffs[pointer - 1][1]) {
49540
- diffs[pointer][1] = diffs[pointer - 1][1] + diffs[pointer][1].substring(0, diffs[pointer][1].length - diffs[pointer - 1][1].length);
49979
+ if (diffs[pointer][1].substring(
49980
+ diffs[pointer][1].length - diffs[pointer - 1][1].length
49981
+ ) == diffs[pointer - 1][1]) {
49982
+ diffs[pointer][1] = diffs[pointer - 1][1] + diffs[pointer][1].substring(
49983
+ 0,
49984
+ diffs[pointer][1].length - diffs[pointer - 1][1].length
49985
+ );
49541
49986
  diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];
49542
49987
  diffs.splice(pointer - 1, 1);
49543
49988
  changes = true;
@@ -49605,7 +50050,13 @@ var require_build3 = __commonJS({
49605
50050
  let kF = -d;
49606
50051
  let aFirst = aIndexesF[iF];
49607
50052
  let aIndexPrev1 = aFirst;
49608
- aIndexesF[iF] += countCommonItemsF(aFirst + 1, aEnd, bF + aFirst - kF + 1, bEnd, isCommon);
50053
+ aIndexesF[iF] += countCommonItemsF(
50054
+ aFirst + 1,
50055
+ aEnd,
50056
+ bF + aFirst - kF + 1,
50057
+ bEnd,
50058
+ isCommon
50059
+ );
49609
50060
  const nF = d < iMaxF ? d : iMaxF;
49610
50061
  for (iF += 1, kF += 2; iF <= nF; iF += 1, kF += 2) {
49611
50062
  if (iF !== d && aIndexPrev1 < aIndexesF[iF]) {
@@ -49626,7 +50077,13 @@ var require_build3 = __commonJS({
49626
50077
  let kR = d;
49627
50078
  let aFirst = aIndexesR[iR];
49628
50079
  let aIndexPrev1 = aFirst;
49629
- aIndexesR[iR] -= countCommonItemsR(aStart, aFirst - 1, bStart, bR + aFirst - kR - 1, isCommon);
50080
+ aIndexesR[iR] -= countCommonItemsR(
50081
+ aStart,
50082
+ aFirst - 1,
50083
+ bStart,
50084
+ bR + aFirst - kR - 1,
50085
+ isCommon
50086
+ );
49630
50087
  const nR = d < iMaxR ? d : iMaxR;
49631
50088
  for (iR += 1, kR -= 2; iR <= nR; iR += 1, kR -= 2) {
49632
50089
  if (iR !== d && aIndexesR[iR] < aIndexPrev1) {
@@ -49638,7 +50095,13 @@ var require_build3 = __commonJS({
49638
50095
  }
49639
50096
  }
49640
50097
  aIndexPrev1 = aIndexesR[iR];
49641
- aIndexesR[iR] = aFirst - countCommonItemsR(aStart, aFirst - 1, bStart, bR + aFirst - kR - 1, isCommon);
50098
+ aIndexesR[iR] = aFirst - countCommonItemsR(
50099
+ aStart,
50100
+ aFirst - 1,
50101
+ bStart,
50102
+ bR + aFirst - kR - 1,
50103
+ isCommon
50104
+ );
49642
50105
  }
49643
50106
  return iMaxR;
49644
50107
  };
@@ -49656,7 +50119,13 @@ var require_build3 = __commonJS({
49656
50119
  const aLastPrev = insert ? aIndexesF[iF] : aIndexPrev1;
49657
50120
  const aFirst = insert ? aLastPrev : aLastPrev + 1;
49658
50121
  const bFirst = bF + aFirst - kF;
49659
- const nCommonF = countCommonItemsF(aFirst + 1, aEnd, bFirst + 1, bEnd, isCommon);
50122
+ const nCommonF = countCommonItemsF(
50123
+ aFirst + 1,
50124
+ aEnd,
50125
+ bFirst + 1,
50126
+ bEnd,
50127
+ isCommon
50128
+ );
49660
50129
  const aLast = aFirst + nCommonF;
49661
50130
  aIndexPrev1 = aIndexesF[iF];
49662
50131
  aIndexesF[iF] = aLast;
@@ -49664,7 +50133,13 @@ var require_build3 = __commonJS({
49664
50133
  const iR = (d - 1 - (kF + baDeltaLength)) / 2;
49665
50134
  if (iR <= iMaxR && aIndexesR[iR] - 1 <= aLast) {
49666
50135
  const bLastPrev = bF + aLastPrev - (insert ? kF + 1 : kF - 1);
49667
- const nCommonR = countCommonItemsR(aStart, aLastPrev, bStart, bLastPrev, isCommon);
50136
+ const nCommonR = countCommonItemsR(
50137
+ aStart,
50138
+ aLastPrev,
50139
+ bStart,
50140
+ bLastPrev,
50141
+ isCommon
50142
+ );
49668
50143
  const aIndexPrevFirst = aLastPrev - nCommonR;
49669
50144
  const bIndexPrevFirst = bLastPrev - nCommonR;
49670
50145
  const aEndPreceding = aIndexPrevFirst + 1;
@@ -49717,7 +50192,13 @@ var require_build3 = __commonJS({
49717
50192
  const aLastPrev = insert ? aIndexesR[iR] : aIndexPrev1;
49718
50193
  const aFirst = insert ? aLastPrev : aLastPrev - 1;
49719
50194
  const bFirst = bR + aFirst - kR;
49720
- const nCommonR = countCommonItemsR(aStart, aFirst - 1, bStart, bFirst - 1, isCommon);
50195
+ const nCommonR = countCommonItemsR(
50196
+ aStart,
50197
+ aFirst - 1,
50198
+ bStart,
50199
+ bFirst - 1,
50200
+ isCommon
50201
+ );
49721
50202
  const aLast = aFirst - nCommonR;
49722
50203
  aIndexPrev1 = aIndexesR[iR];
49723
50204
  aIndexesR[iR] = aLast;
@@ -49745,7 +50226,13 @@ var require_build3 = __commonJS({
49745
50226
  division.bStartFollowing = bEnd;
49746
50227
  } else {
49747
50228
  const bLastPrev = bR + aLastPrev - (insert ? kR - 1 : kR + 1);
49748
- const nCommonF = countCommonItemsF(aLastPrev, aEnd, bLastPrev, bEnd, isCommon);
50229
+ const nCommonF = countCommonItemsF(
50230
+ aLastPrev,
50231
+ aEnd,
50232
+ bLastPrev,
50233
+ bEnd,
50234
+ isCommon
50235
+ );
49749
50236
  division.nCommonFollowing = nCommonF;
49750
50237
  if (nCommonF !== 0) {
49751
50238
  division.aCommonFollowing = aLastPrev;
@@ -49784,7 +50271,19 @@ var require_build3 = __commonJS({
49784
50271
  iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
49785
50272
  if (d < dMin) {
49786
50273
  iMaxR = extendPathsR(d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR);
49787
- } else if (extendOverlappablePathsR(d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division)) {
50274
+ } else if (extendOverlappablePathsR(
50275
+ d,
50276
+ aStart,
50277
+ aEnd,
50278
+ bStart,
50279
+ bEnd,
50280
+ isCommon,
50281
+ aIndexesF,
50282
+ iMaxF,
50283
+ aIndexesR,
50284
+ iMaxR,
50285
+ division
50286
+ )) {
49788
50287
  return;
49789
50288
  }
49790
50289
  }
@@ -49794,15 +50293,37 @@ var require_build3 = __commonJS({
49794
50293
  let d = 1;
49795
50294
  iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
49796
50295
  for (d += 1; d <= dMax; d += 1) {
49797
- iMaxR = extendPathsR(d - 1, aStart, bStart, bR, isCommon, aIndexesR, iMaxR);
50296
+ iMaxR = extendPathsR(
50297
+ d - 1,
50298
+ aStart,
50299
+ bStart,
50300
+ bR,
50301
+ isCommon,
50302
+ aIndexesR,
50303
+ iMaxR
50304
+ );
49798
50305
  if (d < dMin) {
49799
50306
  iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);
49800
- } else if (extendOverlappablePathsF(d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division)) {
50307
+ } else if (extendOverlappablePathsF(
50308
+ d,
50309
+ aStart,
50310
+ aEnd,
50311
+ bStart,
50312
+ bEnd,
50313
+ isCommon,
50314
+ aIndexesF,
50315
+ iMaxF,
50316
+ aIndexesR,
50317
+ iMaxR,
50318
+ division
50319
+ )) {
49801
50320
  return;
49802
50321
  }
49803
50322
  }
49804
50323
  }
49805
- throw new Error(`${pkg}: no overlap aStart=${aStart} aEnd=${aEnd} bStart=${bStart} bEnd=${bEnd}`);
50324
+ throw new Error(
50325
+ `${pkg}: no overlap aStart=${aStart} aEnd=${aEnd} bStart=${bStart} bEnd=${bEnd}`
50326
+ );
49806
50327
  };
49807
50328
  var findSubsequences = (nChange, aStart, aEnd, bStart, bEnd, transposed, callbacks, aIndexesF, aIndexesR, division) => {
49808
50329
  if (bEnd - bStart < aEnd - aStart) {
@@ -49824,7 +50345,17 @@ var require_build3 = __commonJS({
49824
50345
  bEnd = tEnd;
49825
50346
  }
49826
50347
  const { foundSubsequence, isCommon } = callbacks[transposed ? 1 : 0];
49827
- divide(nChange, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, aIndexesR, division);
50348
+ divide(
50349
+ nChange,
50350
+ aStart,
50351
+ aEnd,
50352
+ bStart,
50353
+ bEnd,
50354
+ isCommon,
50355
+ aIndexesF,
50356
+ aIndexesR,
50357
+ division
50358
+ );
49828
50359
  const {
49829
50360
  nChangePreceding,
49830
50361
  aEndPreceding,
@@ -49840,7 +50371,18 @@ var require_build3 = __commonJS({
49840
50371
  bStartFollowing
49841
50372
  } = division;
49842
50373
  if (aStart < aEndPreceding && bStart < bEndPreceding) {
49843
- findSubsequences(nChangePreceding, aStart, aEndPreceding, bStart, bEndPreceding, transposed, callbacks, aIndexesF, aIndexesR, division);
50374
+ findSubsequences(
50375
+ nChangePreceding,
50376
+ aStart,
50377
+ aEndPreceding,
50378
+ bStart,
50379
+ bEndPreceding,
50380
+ transposed,
50381
+ callbacks,
50382
+ aIndexesF,
50383
+ aIndexesR,
50384
+ division
50385
+ );
49844
50386
  }
49845
50387
  if (nCommonPreceding !== 0) {
49846
50388
  foundSubsequence(nCommonPreceding, aCommonPreceding, bCommonPreceding);
@@ -49849,24 +50391,35 @@ var require_build3 = __commonJS({
49849
50391
  foundSubsequence(nCommonFollowing, aCommonFollowing, bCommonFollowing);
49850
50392
  }
49851
50393
  if (aStartFollowing < aEnd && bStartFollowing < bEnd) {
49852
- findSubsequences(nChangeFollowing, aStartFollowing, aEnd, bStartFollowing, bEnd, transposed, callbacks, aIndexesF, aIndexesR, division);
49853
- }
49854
- };
49855
- var validateLength = (name2, arg) => {
50394
+ findSubsequences(
50395
+ nChangeFollowing,
50396
+ aStartFollowing,
50397
+ aEnd,
50398
+ bStartFollowing,
50399
+ bEnd,
50400
+ transposed,
50401
+ callbacks,
50402
+ aIndexesF,
50403
+ aIndexesR,
50404
+ division
50405
+ );
50406
+ }
50407
+ };
50408
+ var validateLength = (name, arg) => {
49856
50409
  if (typeof arg !== "number") {
49857
- throw new TypeError(`${pkg}: ${name2} typeof ${typeof arg} is not a number`);
50410
+ throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);
49858
50411
  }
49859
50412
  if (!Number.isSafeInteger(arg)) {
49860
- throw new RangeError(`${pkg}: ${name2} value ${arg} is not a safe integer`);
50413
+ throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);
49861
50414
  }
49862
50415
  if (arg < 0) {
49863
- throw new RangeError(`${pkg}: ${name2} value ${arg} is a negative integer`);
50416
+ throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`);
49864
50417
  }
49865
50418
  };
49866
- var validateCallback = (name2, arg) => {
50419
+ var validateCallback = (name, arg) => {
49867
50420
  const type = typeof arg;
49868
50421
  if (type !== "function") {
49869
- throw new TypeError(`${pkg}: ${name2} typeof ${type} is not a function`);
50422
+ throw new TypeError(`${pkg}: ${name} typeof ${type} is not a function`);
49870
50423
  }
49871
50424
  };
49872
50425
  function diffSequence(aLength, bLength, isCommon, foundSubsequence) {
@@ -49881,7 +50434,13 @@ var require_build3 = __commonJS({
49881
50434
  if (aLength !== nCommonF || bLength !== nCommonF) {
49882
50435
  const aStart = nCommonF;
49883
50436
  const bStart = nCommonF;
49884
- const nCommonR = countCommonItemsR(aStart, aLength - 1, bStart, bLength - 1, isCommon);
50437
+ const nCommonR = countCommonItemsR(
50438
+ aStart,
50439
+ aLength - 1,
50440
+ bStart,
50441
+ bLength - 1,
50442
+ isCommon
50443
+ );
49885
50444
  const aEnd = aLength - nCommonR;
49886
50445
  const bEnd = bLength - nCommonR;
49887
50446
  const nCommonFR = nCommonF + nCommonR;
@@ -49910,7 +50469,18 @@ var require_build3 = __commonJS({
49910
50469
  nCommonFollowing: NOT_YET_SET,
49911
50470
  nCommonPreceding: NOT_YET_SET
49912
50471
  };
49913
- findSubsequences(nChange, aStart, aEnd, bStart, bEnd, transposed, callbacks, aIndexesF, aIndexesR, division);
50472
+ findSubsequences(
50473
+ nChange,
50474
+ aStart,
50475
+ aEnd,
50476
+ bStart,
50477
+ bEnd,
50478
+ transposed,
50479
+ callbacks,
50480
+ aIndexesF,
50481
+ aIndexesR,
50482
+ division
50483
+ );
49914
50484
  }
49915
50485
  if (nCommonR !== 0) {
49916
50486
  foundSubsequence(nCommonR, aEnd, bEnd);
@@ -49930,26 +50500,51 @@ var require_joinAlignedDiffs = __commonJS({
49930
50500
  exports.joinAlignedDiffsNoExpand = exports.joinAlignedDiffsExpand = void 0;
49931
50501
  var _cleanupSemantic = require_cleanupSemantic();
49932
50502
  var formatTrailingSpaces = (line, trailingSpaceFormatter) => line.replace(/\s+$/, (match) => trailingSpaceFormatter(match));
49933
- var printDiffLine = (line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) => line.length !== 0 ? color(`${indicator} ${formatTrailingSpaces(line, trailingSpaceFormatter)}`) : indicator !== " " ? color(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : "";
50503
+ var printDiffLine = (line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) => line.length !== 0 ? color(
50504
+ `${indicator} ${formatTrailingSpaces(line, trailingSpaceFormatter)}`
50505
+ ) : indicator !== " " ? color(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : "";
49934
50506
  var printDeleteLine = (line, isFirstOrLast, {
49935
50507
  aColor,
49936
50508
  aIndicator,
49937
50509
  changeLineTrailingSpaceColor,
49938
50510
  emptyFirstOrLastLinePlaceholder
49939
- }) => printDiffLine(line, isFirstOrLast, aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
50511
+ }) => printDiffLine(
50512
+ line,
50513
+ isFirstOrLast,
50514
+ aColor,
50515
+ aIndicator,
50516
+ changeLineTrailingSpaceColor,
50517
+ emptyFirstOrLastLinePlaceholder
50518
+ );
49940
50519
  var printInsertLine = (line, isFirstOrLast, {
49941
50520
  bColor,
49942
50521
  bIndicator,
49943
50522
  changeLineTrailingSpaceColor,
49944
50523
  emptyFirstOrLastLinePlaceholder
49945
- }) => printDiffLine(line, isFirstOrLast, bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
50524
+ }) => printDiffLine(
50525
+ line,
50526
+ isFirstOrLast,
50527
+ bColor,
50528
+ bIndicator,
50529
+ changeLineTrailingSpaceColor,
50530
+ emptyFirstOrLastLinePlaceholder
50531
+ );
49946
50532
  var printCommonLine = (line, isFirstOrLast, {
49947
50533
  commonColor,
49948
50534
  commonIndicator,
49949
50535
  commonLineTrailingSpaceColor,
49950
50536
  emptyFirstOrLastLinePlaceholder
49951
- }) => printDiffLine(line, isFirstOrLast, commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
49952
- var createPatchMark = (aStart, aEnd, bStart, bEnd, { patchColor }) => patchColor(`@@ -${aStart + 1},${aEnd - aStart} +${bStart + 1},${bEnd - bStart} @@`);
50537
+ }) => printDiffLine(
50538
+ line,
50539
+ isFirstOrLast,
50540
+ commonColor,
50541
+ commonIndicator,
50542
+ commonLineTrailingSpaceColor,
50543
+ emptyFirstOrLastLinePlaceholder
50544
+ );
50545
+ var createPatchMark = (aStart, aEnd, bStart, bEnd, { patchColor }) => patchColor(
50546
+ `@@ -${aStart + 1},${aEnd - aStart} +${bStart + 1},${bEnd - bStart} @@`
50547
+ );
49953
50548
  var joinAlignedDiffsNoExpand = (diffs, options) => {
49954
50549
  const iLength = diffs.length;
49955
50550
  const nContextLines = options.contextLines;
@@ -50049,7 +50644,13 @@ var require_joinAlignedDiffs = __commonJS({
50049
50644
  for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) {
50050
50645
  pushCommonLine(diffs[iCommon][1]);
50051
50646
  }
50052
- lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options);
50647
+ lines[jPatchMark] = createPatchMark(
50648
+ aStart,
50649
+ aEnd,
50650
+ bStart,
50651
+ bEnd,
50652
+ options
50653
+ );
50053
50654
  jPatchMark = lines.length;
50054
50655
  lines.push("");
50055
50656
  const nOmit = nCommon - nContextLines2;
@@ -50135,7 +50736,9 @@ var require_normalizeDiffOptions = __commonJS({
50135
50736
  };
50136
50737
  var getCompareKeys = (compareKeys) => compareKeys && typeof compareKeys === "function" ? compareKeys : OPTIONS_DEFAULT.compareKeys;
50137
50738
  var getContextLines = (contextLines) => typeof contextLines === "number" && Number.isSafeInteger(contextLines) && contextLines >= 0 ? contextLines : DIFF_CONTEXT_DEFAULT;
50138
- var normalizeDiffOptions = (options = {}) => __spreadProps(__spreadValues(__spreadValues({}, OPTIONS_DEFAULT), options), {
50739
+ var normalizeDiffOptions = (options = {}) => ({
50740
+ ...OPTIONS_DEFAULT,
50741
+ ...options,
50139
50742
  compareKeys: getCompareKeys(options.compareKeys),
50140
50743
  contextLines: getContextLines(options.contextLines)
50141
50744
  });
@@ -50213,7 +50816,13 @@ ${bColor(b)}
50213
50816
  };
50214
50817
  var printDiffLines = (diffs, options) => printAnnotation(options, countChanges(diffs)) + (options.expand ? (0, _joinAlignedDiffs.joinAlignedDiffsExpand)(diffs, options) : (0, _joinAlignedDiffs.joinAlignedDiffsNoExpand)(diffs, options));
50215
50818
  exports.printDiffLines = printDiffLines;
50216
- var diffLinesUnified = (aLines, bLines, options) => printDiffLines(diffLinesRaw(isEmptyString(aLines) ? [] : aLines, isEmptyString(bLines) ? [] : bLines), (0, _normalizeDiffOptions.normalizeDiffOptions)(options));
50819
+ var diffLinesUnified = (aLines, bLines, options) => printDiffLines(
50820
+ diffLinesRaw(
50821
+ isEmptyString(aLines) ? [] : aLines,
50822
+ isEmptyString(bLines) ? [] : bLines
50823
+ ),
50824
+ (0, _normalizeDiffOptions.normalizeDiffOptions)(options)
50825
+ );
50217
50826
  exports.diffLinesUnified = diffLinesUnified;
50218
50827
  var diffLinesUnified2 = (aLinesDisplay, bLinesDisplay, aLinesCompare, bLinesCompare, options) => {
50219
50828
  if (isEmptyString(aLinesDisplay) && isEmptyString(aLinesCompare)) {
@@ -50246,7 +50855,10 @@ ${bColor(b)}
50246
50855
  bIndex += 1;
50247
50856
  }
50248
50857
  });
50249
- return printDiffLines(diffs, (0, _normalizeDiffOptions.normalizeDiffOptions)(options));
50858
+ return printDiffLines(
50859
+ diffs,
50860
+ (0, _normalizeDiffOptions.normalizeDiffOptions)(options)
50861
+ );
50250
50862
  };
50251
50863
  exports.diffLinesUnified2 = diffLinesUnified2;
50252
50864
  var diffLinesRaw = (aLines, bLines) => {
@@ -50258,21 +50870,31 @@ ${bColor(b)}
50258
50870
  let bIndex = 0;
50259
50871
  const foundSubsequence = (nCommon, aCommon, bCommon) => {
50260
50872
  for (; aIndex !== aCommon; aIndex += 1) {
50261
- diffs.push(new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_DELETE, aLines[aIndex]));
50873
+ diffs.push(
50874
+ new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_DELETE, aLines[aIndex])
50875
+ );
50262
50876
  }
50263
50877
  for (; bIndex !== bCommon; bIndex += 1) {
50264
- diffs.push(new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_INSERT, bLines[bIndex]));
50878
+ diffs.push(
50879
+ new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_INSERT, bLines[bIndex])
50880
+ );
50265
50881
  }
50266
50882
  for (; nCommon !== 0; nCommon -= 1, aIndex += 1, bIndex += 1) {
50267
- diffs.push(new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_EQUAL, bLines[bIndex]));
50883
+ diffs.push(
50884
+ new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_EQUAL, bLines[bIndex])
50885
+ );
50268
50886
  }
50269
50887
  };
50270
50888
  (0, _diffSequences.default)(aLength, bLength, isCommon, foundSubsequence);
50271
50889
  for (; aIndex !== aLength; aIndex += 1) {
50272
- diffs.push(new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_DELETE, aLines[aIndex]));
50890
+ diffs.push(
50891
+ new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_DELETE, aLines[aIndex])
50892
+ );
50273
50893
  }
50274
50894
  for (; bIndex !== bLength; bIndex += 1) {
50275
- diffs.push(new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_INSERT, bLines[bIndex]));
50895
+ diffs.push(
50896
+ new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_INSERT, bLines[bIndex])
50897
+ );
50276
50898
  }
50277
50899
  return diffs;
50278
50900
  };
@@ -50300,21 +50922,40 @@ var require_diffStrings = __commonJS({
50300
50922
  const diffs = [];
50301
50923
  const foundSubsequence = (nCommon, aCommon, bCommon) => {
50302
50924
  if (aIndex !== aCommon) {
50303
- diffs.push(new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_DELETE, a.slice(aIndex, aCommon)));
50925
+ diffs.push(
50926
+ new _cleanupSemantic.Diff(
50927
+ _cleanupSemantic.DIFF_DELETE,
50928
+ a.slice(aIndex, aCommon)
50929
+ )
50930
+ );
50304
50931
  }
50305
50932
  if (bIndex !== bCommon) {
50306
- diffs.push(new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_INSERT, b.slice(bIndex, bCommon)));
50933
+ diffs.push(
50934
+ new _cleanupSemantic.Diff(
50935
+ _cleanupSemantic.DIFF_INSERT,
50936
+ b.slice(bIndex, bCommon)
50937
+ )
50938
+ );
50307
50939
  }
50308
50940
  aIndex = aCommon + nCommon;
50309
50941
  bIndex = bCommon + nCommon;
50310
- diffs.push(new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_EQUAL, b.slice(bCommon, bIndex)));
50942
+ diffs.push(
50943
+ new _cleanupSemantic.Diff(
50944
+ _cleanupSemantic.DIFF_EQUAL,
50945
+ b.slice(bCommon, bIndex)
50946
+ )
50947
+ );
50311
50948
  };
50312
50949
  (0, _diffSequences.default)(a.length, b.length, isCommon, foundSubsequence);
50313
50950
  if (aIndex !== a.length) {
50314
- diffs.push(new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_DELETE, a.slice(aIndex)));
50951
+ diffs.push(
50952
+ new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_DELETE, a.slice(aIndex))
50953
+ );
50315
50954
  }
50316
50955
  if (bIndex !== b.length) {
50317
- diffs.push(new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_INSERT, b.slice(bIndex)));
50956
+ diffs.push(
50957
+ new _cleanupSemantic.Diff(_cleanupSemantic.DIFF_INSERT, b.slice(bIndex))
50958
+ );
50318
50959
  }
50319
50960
  return diffs;
50320
50961
  };
@@ -50332,7 +50973,10 @@ var require_getAlignedDiffs = __commonJS({
50332
50973
  });
50333
50974
  exports.default = void 0;
50334
50975
  var _cleanupSemantic = require_cleanupSemantic();
50335
- var concatenateRelevantDiffs = (op, diffs, changeColor) => diffs.reduce((reduced, diff2) => reduced + (diff2[0] === _cleanupSemantic.DIFF_EQUAL ? diff2[1] : diff2[0] === op && diff2[1].length !== 0 ? changeColor(diff2[1]) : ""), "");
50976
+ var concatenateRelevantDiffs = (op, diffs, changeColor) => diffs.reduce(
50977
+ (reduced, diff2) => reduced + (diff2[0] === _cleanupSemantic.DIFF_EQUAL ? diff2[1] : diff2[0] === op && diff2[1].length !== 0 ? changeColor(diff2[1]) : ""),
50978
+ ""
50979
+ );
50336
50980
  var ChangeBuffer = class {
50337
50981
  op;
50338
50982
  line;
@@ -50348,7 +50992,12 @@ var require_getAlignedDiffs = __commonJS({
50348
50992
  this.pushDiff(new _cleanupSemantic.Diff(this.op, substring));
50349
50993
  }
50350
50994
  pushLine() {
50351
- this.lines.push(this.line.length !== 1 ? new _cleanupSemantic.Diff(this.op, concatenateRelevantDiffs(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] : new _cleanupSemantic.Diff(this.op, this.line[0][1]));
50995
+ this.lines.push(
50996
+ this.line.length !== 1 ? new _cleanupSemantic.Diff(
50997
+ this.op,
50998
+ concatenateRelevantDiffs(this.op, this.line, this.changeColor)
50999
+ ) : this.line[0][0] === this.op ? this.line[0] : new _cleanupSemantic.Diff(this.op, this.line[0][1])
51000
+ );
50352
51001
  this.line.length = 0;
50353
51002
  }
50354
51003
  isLineEmpty() {
@@ -50439,8 +51088,14 @@ var require_getAlignedDiffs = __commonJS({
50439
51088
  }
50440
51089
  };
50441
51090
  var getAlignedDiffs = (diffs, changeColor) => {
50442
- const deleteBuffer = new ChangeBuffer(_cleanupSemantic.DIFF_DELETE, changeColor);
50443
- const insertBuffer = new ChangeBuffer(_cleanupSemantic.DIFF_INSERT, changeColor);
51091
+ const deleteBuffer = new ChangeBuffer(
51092
+ _cleanupSemantic.DIFF_DELETE,
51093
+ changeColor
51094
+ );
51095
+ const insertBuffer = new ChangeBuffer(
51096
+ _cleanupSemantic.DIFF_INSERT,
51097
+ changeColor
51098
+ );
50444
51099
  const commonBuffer = new CommonBuffer(deleteBuffer, insertBuffer);
50445
51100
  diffs.forEach((diff2) => {
50446
51101
  switch (diff2[0]) {
@@ -50480,23 +51135,38 @@ var require_printDiffs = __commonJS({
50480
51135
  var hasCommonDiff = (diffs, isMultiline) => {
50481
51136
  if (isMultiline) {
50482
51137
  const iLast = diffs.length - 1;
50483
- return diffs.some((diff2, i) => diff2[0] === _cleanupSemantic.DIFF_EQUAL && (i !== iLast || diff2[1] !== "\n"));
51138
+ return diffs.some(
51139
+ (diff2, i) => diff2[0] === _cleanupSemantic.DIFF_EQUAL && (i !== iLast || diff2[1] !== "\n")
51140
+ );
50484
51141
  }
50485
51142
  return diffs.some((diff2) => diff2[0] === _cleanupSemantic.DIFF_EQUAL);
50486
51143
  };
50487
51144
  var diffStringsUnified = (a, b, options) => {
50488
51145
  if (a !== b && a.length !== 0 && b.length !== 0) {
50489
51146
  const isMultiline = a.includes("\n") || b.includes("\n");
50490
- const diffs = diffStringsRaw(isMultiline ? `${a}
50491
- ` : a, isMultiline ? `${b}
50492
- ` : b, true);
51147
+ const diffs = diffStringsRaw(
51148
+ isMultiline ? `${a}
51149
+ ` : a,
51150
+ isMultiline ? `${b}
51151
+ ` : b,
51152
+ true
51153
+ );
50493
51154
  if (hasCommonDiff(diffs, isMultiline)) {
50494
- const optionsNormalized = (0, _normalizeDiffOptions.normalizeDiffOptions)(options);
50495
- const lines = (0, _getAlignedDiffs.default)(diffs, optionsNormalized.changeColor);
51155
+ const optionsNormalized = (0, _normalizeDiffOptions.normalizeDiffOptions)(
51156
+ options
51157
+ );
51158
+ const lines = (0, _getAlignedDiffs.default)(
51159
+ diffs,
51160
+ optionsNormalized.changeColor
51161
+ );
50496
51162
  return (0, _diffLines.printDiffLines)(lines, optionsNormalized);
50497
51163
  }
50498
51164
  }
50499
- return (0, _diffLines.diffLinesUnified)(a.split("\n"), b.split("\n"), options);
51165
+ return (0, _diffLines.diffLinesUnified)(
51166
+ a.split("\n"),
51167
+ b.split("\n"),
51168
+ options
51169
+ );
50500
51170
  };
50501
51171
  exports.diffStringsUnified = diffStringsUnified;
50502
51172
  var diffStringsRaw = (a, b, cleanup) => {
@@ -50585,7 +51255,9 @@ var require_build4 = __commonJS({
50585
51255
  }
50586
51256
  var Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol;
50587
51257
  var getCommonMessage = (message, options) => {
50588
- const { commonColor } = (0, _normalizeDiffOptions.normalizeDiffOptions)(options);
51258
+ const { commonColor } = (0, _normalizeDiffOptions.normalizeDiffOptions)(
51259
+ options
51260
+ );
50589
51261
  return commonColor(message);
50590
51262
  };
50591
51263
  var {
@@ -50637,7 +51309,11 @@ var require_build4 = __commonJS({
50637
51309
  }
50638
51310
  switch (aType) {
50639
51311
  case "string":
50640
- return (0, _diffLines.diffLinesUnified)(a.split("\n"), b.split("\n"), options);
51312
+ return (0, _diffLines.diffLinesUnified)(
51313
+ a.split("\n"),
51314
+ b.split("\n"),
51315
+ options
51316
+ );
50641
51317
  case "boolean":
50642
51318
  case "number":
50643
51319
  return comparePrimitive(a, b, options);
@@ -50652,7 +51328,11 @@ var require_build4 = __commonJS({
50652
51328
  function comparePrimitive(a, b, options) {
50653
51329
  const aFormat = (0, _prettyFormat.format)(a, FORMAT_OPTIONS);
50654
51330
  const bFormat = (0, _prettyFormat.format)(b, FORMAT_OPTIONS);
50655
- return aFormat === bFormat ? getCommonMessage(_constants.NO_DIFF_MESSAGE, options) : (0, _diffLines.diffLinesUnified)(aFormat.split("\n"), bFormat.split("\n"), options);
51331
+ return aFormat === bFormat ? getCommonMessage(_constants.NO_DIFF_MESSAGE, options) : (0, _diffLines.diffLinesUnified)(
51332
+ aFormat.split("\n"),
51333
+ bFormat.split("\n"),
51334
+ options
51335
+ );
50656
51336
  }
50657
51337
  function sortMap(map) {
50658
51338
  return new Map(Array.from(map.entries()).sort());
@@ -50674,7 +51354,10 @@ var require_build4 = __commonJS({
50674
51354
  const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
50675
51355
  difference = getObjectsDifference(a, b, formatOptions, options);
50676
51356
  if (difference !== noDiffMessage && !hasThrown) {
50677
- difference = `${getCommonMessage(_constants.SIMILAR_MESSAGE, options)}
51357
+ difference = `${getCommonMessage(
51358
+ _constants.SIMILAR_MESSAGE,
51359
+ options
51360
+ )}
50678
51361
 
50679
51362
  ${difference}`;
50680
51363
  }
@@ -50682,11 +51365,13 @@ ${difference}`;
50682
51365
  return difference;
50683
51366
  }
50684
51367
  function getFormatOptions(formatOptions, options) {
50685
- const { compareKeys } = (0, _normalizeDiffOptions.normalizeDiffOptions)(options);
50686
- return __spreadProps(__spreadValues({}, formatOptions), { compareKeys });
51368
+ const { compareKeys } = (0, _normalizeDiffOptions.normalizeDiffOptions)(
51369
+ options
51370
+ );
51371
+ return { ...formatOptions, compareKeys };
50687
51372
  }
50688
51373
  function getObjectsDifference(a, b, formatOptions, options) {
50689
- const formatOptionsZeroIndent = __spreadProps(__spreadValues({}, formatOptions), { indent: 0 });
51374
+ const formatOptionsZeroIndent = { ...formatOptions, indent: 0 };
50690
51375
  const aCompare = (0, _prettyFormat.format)(a, formatOptionsZeroIndent);
50691
51376
  const bCompare = (0, _prettyFormat.format)(b, formatOptionsZeroIndent);
50692
51377
  if (aCompare === bCompare) {
@@ -50694,7 +51379,13 @@ ${difference}`;
50694
51379
  } else {
50695
51380
  const aDisplay = (0, _prettyFormat.format)(a, formatOptions);
50696
51381
  const bDisplay = (0, _prettyFormat.format)(b, formatOptions);
50697
- return (0, _diffLines.diffLinesUnified2)(aDisplay.split("\n"), bDisplay.split("\n"), aCompare.split("\n"), bCompare.split("\n"), options);
51382
+ return (0, _diffLines.diffLinesUnified2)(
51383
+ aDisplay.split("\n"),
51384
+ bDisplay.split("\n"),
51385
+ aCompare.split("\n"),
51386
+ bCompare.split("\n"),
51387
+ options
51388
+ );
50698
51389
  }
50699
51390
  }
50700
51391
  }
@@ -52344,8 +53035,8 @@ var require_require_directory = __commonJS({
52344
53035
  var defaultOptions = {
52345
53036
  extensions: ["js", "json", "coffee"],
52346
53037
  recurse: true,
52347
- rename: function(name2) {
52348
- return name2;
53038
+ rename: function(name) {
53039
+ return name;
52349
53040
  },
52350
53041
  visit: function(obj) {
52351
53042
  return obj;
@@ -52368,11 +53059,11 @@ var require_require_directory = __commonJS({
52368
53059
  }
52369
53060
  path3 = !path3 ? dirname(m.filename) : resolve(dirname(m.filename), path3);
52370
53061
  fs2.readdirSync(path3).forEach(function(filename) {
52371
- var joined = join(path3, filename), files2, key, obj;
53062
+ var joined = join(path3, filename), files, key, obj;
52372
53063
  if (fs2.statSync(joined).isDirectory() && options.recurse) {
52373
- files2 = requireDirectory(m, joined, options);
52374
- if (Object.keys(files2).length) {
52375
- retval[options.rename(filename, joined, filename)] = files2;
53064
+ files = requireDirectory(m, joined, options);
53065
+ if (Object.keys(files).length) {
53066
+ retval[options.rename(filename, joined, filename)] = files;
52376
53067
  }
52377
53068
  } else {
52378
53069
  if (joined !== m.filename && checkFileInclusion(joined, filename, options)) {
@@ -52405,7 +53096,7 @@ var require_build8 = __commonJS({
52405
53096
  s = h2;
52406
53097
  let l2 = {};
52407
53098
  if (Object.prototype.hasOwnProperty.call(t2, "extends")) {
52408
- if (typeof t2.extends != "string")
53099
+ if ("string" != typeof t2.extends)
52409
53100
  return l2;
52410
53101
  const r2 = /\.json|\..*rc$/.test(t2.extends);
52411
53102
  let h3 = null;
@@ -52429,7 +53120,7 @@ var require_build8 = __commonJS({
52429
53120
  function r(t2, e2) {
52430
53121
  const s2 = {};
52431
53122
  function i2(t3) {
52432
- return t3 && typeof t3 == "object" && !Array.isArray(t3);
53123
+ return t3 && "object" == typeof t3 && !Array.isArray(t3);
52433
53124
  }
52434
53125
  Object.assign(s2, t2);
52435
53126
  for (const n2 of Object.keys(e2))
@@ -52450,8 +53141,8 @@ var require_build8 = __commonJS({
52450
53141
  function h(t2, s2, i2) {
52451
53142
  try {
52452
53143
  let n2 = 0;
52453
- const [r2, a2, h2] = typeof t2 == "object" ? [{ demanded: [], optional: [] }, t2, s2] : [o(`cmd ${t2}`), s2, i2], f2 = [].slice.call(a2);
52454
- for (; f2.length && f2[f2.length - 1] === void 0; )
53144
+ const [r2, a2, h2] = "object" == typeof t2 ? [{ demanded: [], optional: [] }, t2, s2] : [o(`cmd ${t2}`), s2, i2], f2 = [].slice.call(a2);
53145
+ for (; f2.length && void 0 === f2[f2.length - 1]; )
52455
53146
  f2.pop();
52456
53147
  const d2 = h2 || f2.length;
52457
53148
  if (d2 < r2.demanded.length)
@@ -52461,25 +53152,25 @@ var require_build8 = __commonJS({
52461
53152
  throw new e(`Too many arguments provided. Expected max ${u2} but received ${d2}.`);
52462
53153
  r2.demanded.forEach((t3) => {
52463
53154
  const e2 = l(f2.shift());
52464
- t3.cmd.filter((t4) => t4 === e2 || t4 === "*").length === 0 && c(e2, t3.cmd, n2), n2 += 1;
53155
+ 0 === t3.cmd.filter((t4) => t4 === e2 || "*" === t4).length && c(e2, t3.cmd, n2), n2 += 1;
52465
53156
  }), r2.optional.forEach((t3) => {
52466
- if (f2.length === 0)
53157
+ if (0 === f2.length)
52467
53158
  return;
52468
53159
  const e2 = l(f2.shift());
52469
- t3.cmd.filter((t4) => t4 === e2 || t4 === "*").length === 0 && c(e2, t3.cmd, n2), n2 += 1;
53160
+ 0 === t3.cmd.filter((t4) => t4 === e2 || "*" === t4).length && c(e2, t3.cmd, n2), n2 += 1;
52470
53161
  });
52471
53162
  } catch (t3) {
52472
53163
  console.warn(t3.stack);
52473
53164
  }
52474
53165
  }
52475
53166
  function l(t2) {
52476
- return Array.isArray(t2) ? "array" : t2 === null ? "null" : typeof t2;
53167
+ return Array.isArray(t2) ? "array" : null === t2 ? "null" : typeof t2;
52477
53168
  }
52478
53169
  function c(t2, s2, i2) {
52479
53170
  throw new e(`Invalid ${a[i2] || "manyith"} argument. Expected ${s2.join(" or ")} but received ${t2}.`);
52480
53171
  }
52481
53172
  function f(t2) {
52482
- return !!t2 && !!t2.then && typeof t2.then == "function";
53173
+ return !!t2 && !!t2.then && "function" == typeof t2.then;
52483
53174
  }
52484
53175
  function d(t2, e2, s2, i2) {
52485
53176
  s2.assert.notStrictEqual(t2, e2, i2);
@@ -52506,20 +53197,20 @@ var require_build8 = __commonJS({
52506
53197
  return t2.slice(m() + 1);
52507
53198
  }, getProcessArgvBin: y });
52508
53199
  function v(t2, e2, s2, i2) {
52509
- if (s2 === "a" && !i2)
53200
+ if ("a" === s2 && !i2)
52510
53201
  throw new TypeError("Private accessor was defined without a getter");
52511
- if (typeof e2 == "function" ? t2 !== e2 || !i2 : !e2.has(t2))
53202
+ if ("function" == typeof e2 ? t2 !== e2 || !i2 : !e2.has(t2))
52512
53203
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
52513
- return s2 === "m" ? i2 : s2 === "a" ? i2.call(t2) : i2 ? i2.value : e2.get(t2);
53204
+ return "m" === s2 ? i2 : "a" === s2 ? i2.call(t2) : i2 ? i2.value : e2.get(t2);
52514
53205
  }
52515
53206
  function O(t2, e2, s2, i2, n2) {
52516
- if (i2 === "m")
53207
+ if ("m" === i2)
52517
53208
  throw new TypeError("Private method is not writable");
52518
- if (i2 === "a" && !n2)
53209
+ if ("a" === i2 && !n2)
52519
53210
  throw new TypeError("Private accessor was defined without a setter");
52520
- if (typeof e2 == "function" ? t2 !== e2 || !n2 : !e2.has(t2))
53211
+ if ("function" == typeof e2 ? t2 !== e2 || !n2 : !e2.has(t2))
52521
53212
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
52522
- return i2 === "a" ? n2.call(t2, s2) : n2 ? n2.value = s2 : e2.set(t2, s2), s2;
53213
+ return "a" === i2 ? n2.call(t2, s2) : n2 ? n2.value = s2 : e2.set(t2, s2), s2;
52523
53214
  }
52524
53215
  var w = class {
52525
53216
  constructor(t2) {
@@ -52528,13 +53219,13 @@ var require_build8 = __commonJS({
52528
53219
  addMiddleware(t2, e2, s2 = true, i2 = false) {
52529
53220
  if (h("<array|function> [boolean] [boolean] [boolean]", [t2, e2, s2], arguments.length), Array.isArray(t2)) {
52530
53221
  for (let i3 = 0; i3 < t2.length; i3++) {
52531
- if (typeof t2[i3] != "function")
53222
+ if ("function" != typeof t2[i3])
52532
53223
  throw Error("middleware must be a function");
52533
53224
  const n2 = t2[i3];
52534
53225
  n2.applyBeforeValidation = e2, n2.global = s2;
52535
53226
  }
52536
53227
  Array.prototype.push.apply(this.globalMiddleware, t2);
52537
- } else if (typeof t2 == "function") {
53228
+ } else if ("function" == typeof t2) {
52538
53229
  const n2 = t2;
52539
53230
  n2.applyBeforeValidation = e2, n2.global = s2, n2.mutates = i2, this.globalMiddleware.push(t2);
52540
53231
  }
@@ -52555,7 +53246,7 @@ var require_build8 = __commonJS({
52555
53246
  }
52556
53247
  unfreeze() {
52557
53248
  const t2 = this.frozens.pop();
52558
- t2 !== void 0 && (this.globalMiddleware = t2);
53249
+ void 0 !== t2 && (this.globalMiddleware = t2);
52559
53250
  }
52560
53251
  reset() {
52561
53252
  this.globalMiddleware = this.globalMiddleware.filter((t2) => t2.global);
@@ -52582,7 +53273,7 @@ var require_build8 = __commonJS({
52582
53273
  throw t3;
52583
53274
  }) {
52584
53275
  try {
52585
- const s3 = typeof t2 == "function" ? t2() : t2;
53276
+ const s3 = "function" == typeof t2 ? t2() : t2;
52586
53277
  return f(s3) ? s3.then((t3) => e2(t3)) : e2(s3);
52587
53278
  } catch (t3) {
52588
53279
  return s2(t3);
@@ -52594,8 +53285,8 @@ var require_build8 = __commonJS({
52594
53285
  this.requireCache = /* @__PURE__ */ new Set(), this.handlers = {}, this.aliasMap = {}, this.frozens = [], this.shim = i2, this.usage = t2, this.globalMiddleware = s2, this.validation = e2;
52595
53286
  }
52596
53287
  addDirectory(t2, e2, s2, i2) {
52597
- typeof (i2 = i2 || {}).recurse != "boolean" && (i2.recurse = false), Array.isArray(i2.extensions) || (i2.extensions = ["js"]);
52598
- const n2 = typeof i2.visit == "function" ? i2.visit : (t3) => t3;
53288
+ "boolean" != typeof (i2 = i2 || {}).recurse && (i2.recurse = false), Array.isArray(i2.extensions) || (i2.extensions = ["js"]);
53289
+ const n2 = "function" == typeof i2.visit ? i2.visit : (t3) => t3;
52599
53290
  i2.visit = (t3, e3, s3) => {
52600
53291
  const i3 = n2(t3, e3, s3);
52601
53292
  if (i3) {
@@ -52614,7 +53305,7 @@ var require_build8 = __commonJS({
52614
53305
  if (i2 = i2 || (() => {
52615
53306
  }), Array.isArray(t2))
52616
53307
  if (function(t3) {
52617
- return t3.every((t4) => typeof t4 == "string");
53308
+ return t3.every((t4) => "string" == typeof t4);
52618
53309
  }(t2))
52619
53310
  [t2, ...a2] = t2;
52620
53311
  else
@@ -52622,22 +53313,22 @@ var require_build8 = __commonJS({
52622
53313
  this.addHandler(e3);
52623
53314
  else {
52624
53315
  if (function(t3) {
52625
- return typeof t3 == "object" && !Array.isArray(t3);
53316
+ return "object" == typeof t3 && !Array.isArray(t3);
52626
53317
  }(t2)) {
52627
- let e3 = Array.isArray(t2.command) || typeof t2.command == "string" ? t2.command : this.moduleName(t2);
53318
+ let e3 = Array.isArray(t2.command) || "string" == typeof t2.command ? t2.command : this.moduleName(t2);
52628
53319
  return t2.aliases && (e3 = [].concat(e3).concat(t2.aliases)), void this.addHandler(e3, this.extractDesc(t2), t2.builder, t2.handler, t2.middlewares, t2.deprecated);
52629
53320
  }
52630
53321
  if (k(s2))
52631
53322
  return void this.addHandler([t2].concat(a2), e2, s2.builder, s2.handler, s2.middlewares, s2.deprecated);
52632
53323
  }
52633
- if (typeof t2 == "string") {
53324
+ if ("string" == typeof t2) {
52634
53325
  const n3 = o(t2);
52635
53326
  a2 = a2.map((t3) => o(t3).cmd);
52636
53327
  let l2 = false;
52637
53328
  const c2 = [n3.cmd].concat(a2).filter((t3) => !_.test(t3) || (l2 = true, false));
52638
- c2.length === 0 && l2 && c2.push("$0"), l2 && (n3.cmd = c2[0], a2 = c2.slice(1), t2 = t2.replace(_, n3.cmd)), a2.forEach((t3) => {
53329
+ 0 === c2.length && l2 && c2.push("$0"), l2 && (n3.cmd = c2[0], a2 = c2.slice(1), t2 = t2.replace(_, n3.cmd)), a2.forEach((t3) => {
52639
53330
  this.aliasMap[t3] = n3.cmd;
52640
- }), e2 !== false && this.usage.command(t2, e2, l2, a2, r2), this.handlers[n3.cmd] = { original: t2, description: e2, handler: i2, builder: s2 || {}, middlewares: h2, deprecated: r2, demanded: n3.demanded, optional: n3.optional }, l2 && (this.defaultCommand = this.handlers[n3.cmd]);
53331
+ }), false !== e2 && this.usage.command(t2, e2, l2, a2, r2), this.handlers[n3.cmd] = { original: t2, description: e2, handler: i2, builder: s2 || {}, middlewares: h2, deprecated: r2, demanded: n3.demanded, optional: n3.optional }, l2 && (this.defaultCommand = this.handlers[n3.cmd]);
52641
53332
  }
52642
53333
  }
52643
53334
  getCommandHandlers() {
@@ -52663,11 +53354,11 @@ var require_build8 = __commonJS({
52663
53354
  if (f(c2))
52664
53355
  return c2.then((i3) => {
52665
53356
  var a3;
52666
- return l2 = (a3 = i3) && typeof a3.getInternalMethods == "function" ? i3 : s2, this.parseAndUpdateUsage(t2, e2, l2, n2, r2, o2);
53357
+ return l2 = (a3 = i3) && "function" == typeof a3.getInternalMethods ? i3 : s2, this.parseAndUpdateUsage(t2, e2, l2, n2, r2, o2);
52667
53358
  });
52668
53359
  } else
52669
53360
  (function(t3) {
52670
- return typeof t3 == "object";
53361
+ return "object" == typeof t3;
52671
53362
  })(h2) && (l2 = s2.getInternalMethods().reset(i2), Object.keys(e2.builder).forEach((t3) => {
52672
53363
  l2.option(t3, h2[t3]);
52673
53364
  }));
@@ -52679,7 +53370,7 @@ var require_build8 = __commonJS({
52679
53370
  return f(o2) ? o2.then((t3) => ({ aliases: s2.parsed.aliases, innerArgv: t3 })) : { aliases: s2.parsed.aliases, innerArgv: o2 };
52680
53371
  }
52681
53372
  shouldUpdateUsage(t2) {
52682
- return !t2.getInternalMethods().getUsageInstance().getUsageDisabled() && t2.getInternalMethods().getUsageInstance().getUsage().length === 0;
53373
+ return !t2.getInternalMethods().getUsageInstance().getUsageDisabled() && 0 === t2.getInternalMethods().getUsageInstance().getUsage().length;
52683
53374
  }
52684
53375
  usageFromParentCommandsCommandHandler(t2, e2) {
52685
53376
  const s2 = _.test(e2.original) ? e2.original.replace(_, "").trim() : e2.original, i2 = t2.filter((t3) => !_.test(t3));
@@ -52789,7 +53480,7 @@ var require_build8 = __commonJS({
52789
53480
  }
52790
53481
  moduleName(t2) {
52791
53482
  const e2 = function(t3) {
52792
- if (typeof require == "undefined")
53483
+ if ("undefined" == typeof require)
52793
53484
  return null;
52794
53485
  for (let e3, s2 = 0, i2 = Object.keys(require.cache); s2 < i2.length; s2++)
52795
53486
  if (e3 = require.cache[i2[s2]], e3.exports === t3)
@@ -52805,7 +53496,7 @@ var require_build8 = __commonJS({
52805
53496
  }
52806
53497
  extractDesc({ describe: t2, description: e2, desc: s2 }) {
52807
53498
  for (const i2 of [t2, e2, s2]) {
52808
- if (typeof i2 == "string" || i2 === false)
53499
+ if ("string" == typeof i2 || false === i2)
52809
53500
  return i2;
52810
53501
  d(i2, true, this.shim);
52811
53502
  }
@@ -52823,19 +53514,19 @@ var require_build8 = __commonJS({
52823
53514
  }
52824
53515
  };
52825
53516
  function k(t2) {
52826
- return typeof t2 == "object" && !!t2.builder && typeof t2.handler == "function";
53517
+ return "object" == typeof t2 && !!t2.builder && "function" == typeof t2.handler;
52827
53518
  }
52828
53519
  function x(t2) {
52829
- return typeof t2 == "function";
53520
+ return "function" == typeof t2;
52830
53521
  }
52831
53522
  function E(t2) {
52832
- typeof process != "undefined" && [process.stdout, process.stderr].forEach((e2) => {
53523
+ "undefined" != typeof process && [process.stdout, process.stderr].forEach((e2) => {
52833
53524
  const s2 = e2;
52834
- s2._handle && s2.isTTY && typeof s2._handle.setBlocking == "function" && s2._handle.setBlocking(t2);
53525
+ s2._handle && s2.isTTY && "function" == typeof s2._handle.setBlocking && s2._handle.setBlocking(t2);
52835
53526
  });
52836
53527
  }
52837
53528
  function A(t2) {
52838
- return typeof t2 == "boolean";
53529
+ return "boolean" == typeof t2;
52839
53530
  }
52840
53531
  function P(t2, s2) {
52841
53532
  const i2 = s2.y18n.__, n2 = {}, r2 = [];
@@ -52844,7 +53535,7 @@ var require_build8 = __commonJS({
52844
53535
  };
52845
53536
  let o2 = null, a2 = null, h2 = true;
52846
53537
  n2.showHelpOnFail = function(e2 = true, s3) {
52847
- const [i3, r3] = typeof e2 == "string" ? [true, e2] : [e2, s3];
53538
+ const [i3, r3] = "string" == typeof e2 ? [true, e2] : [e2, s3];
52848
53539
  return t2.getInternalMethods().isGlobalContext() && (a2 = r3), o2 = r3, h2 = i3, n2;
52849
53540
  };
52850
53541
  let l2 = false;
@@ -52874,7 +53565,7 @@ var require_build8 = __commonJS({
52874
53565
  }
52875
53566
  };
52876
53567
  let c2 = [], f2 = false;
52877
- n2.usage = (t3, e2) => t3 === null ? (f2 = true, c2 = [], n2) : (f2 = false, c2.push([t3, e2 || ""]), n2), n2.getUsage = () => c2, n2.getUsageDisabled = () => f2, n2.getPositionalGroupName = () => i2("Positionals:");
53568
+ n2.usage = (t3, e2) => null === t3 ? (f2 = true, c2 = [], n2) : (f2 = false, c2.push([t3, e2 || ""]), n2), n2.getUsage = () => c2, n2.getUsageDisabled = () => f2, n2.getPositionalGroupName = () => i2("Positionals:");
52878
53569
  let d2 = [];
52879
53570
  n2.example = (t3, e2) => {
52880
53571
  d2.push([t3, e2 || ""]);
@@ -52887,7 +53578,7 @@ var require_build8 = __commonJS({
52887
53578
  n2.describe = function(t3, e2) {
52888
53579
  Array.isArray(t3) ? t3.forEach((t4) => {
52889
53580
  n2.describe(t4, e2);
52890
- }) : typeof t3 == "object" ? Object.keys(t3).forEach((e3) => {
53581
+ }) : "object" == typeof t3 ? Object.keys(t3).forEach((e3) => {
52891
53582
  n2.describe(e3, t3[e3]);
52892
53583
  }) : p2[t3] = e2;
52893
53584
  }, n2.getDescriptions = () => p2;
@@ -52918,7 +53609,7 @@ var require_build8 = __commonJS({
52918
53609
  }
52919
53610
  function _2(t3, e2) {
52920
53611
  let s3 = `[${i2("default:")} `;
52921
- if (t3 === void 0 && !e2)
53612
+ if (void 0 === t3 && !e2)
52922
53613
  return null;
52923
53614
  if (e2)
52924
53615
  s3 += e2;
@@ -52948,7 +53639,7 @@ var require_build8 = __commonJS({
52948
53639
  }();
52949
53640
  const e2 = t2.customScriptName ? t2.$0 : s2.path.basename(t2.$0), r3 = t2.getDemandedOptions(), o3 = t2.getDemandedCommands(), a3 = t2.getDeprecatedOptions(), h3 = t2.getGroups(), l3 = t2.getOptions();
52950
53641
  let g2 = [];
52951
- g2 = g2.concat(Object.keys(p2)), g2 = g2.concat(Object.keys(r3)), g2 = g2.concat(Object.keys(o3)), g2 = g2.concat(Object.keys(l3.default)), g2 = g2.filter(j2), g2 = Object.keys(g2.reduce((t3, e3) => (e3 !== "_" && (t3[e3] = true), t3), {}));
53642
+ g2 = g2.concat(Object.keys(p2)), g2 = g2.concat(Object.keys(r3)), g2 = g2.concat(Object.keys(o3)), g2 = g2.concat(Object.keys(l3.default)), g2 = g2.filter(j2), g2 = Object.keys(g2.reduce((t3, e3) => ("_" !== e3 && (t3[e3] = true), t3), {}));
52952
53643
  const y3 = v2(), b3 = s2.cliui({ width: y3, wrap: !!y3 });
52953
53644
  if (!f2) {
52954
53645
  if (c2.length)
@@ -52962,33 +53653,33 @@ var require_build8 = __commonJS({
52962
53653
  `, b3.div(`${t3}`);
52963
53654
  }
52964
53655
  }
52965
- if (u2.length > 1 || u2.length === 1 && !u2[0][2]) {
53656
+ if (u2.length > 1 || 1 === u2.length && !u2[0][2]) {
52966
53657
  b3.div(i2("Commands:"));
52967
53658
  const s3 = t2.getInternalMethods().getContext(), n3 = s3.commands.length ? `${s3.commands.join(" ")} ` : "";
52968
- t2.getInternalMethods().getParserConfiguration()["sort-commands"] === true && (u2 = u2.sort((t3, e3) => t3[0].localeCompare(e3[0])));
53659
+ true === t2.getInternalMethods().getParserConfiguration()["sort-commands"] && (u2 = u2.sort((t3, e3) => t3[0].localeCompare(e3[0])));
52969
53660
  const r4 = e2 ? `${e2} ` : "";
52970
53661
  u2.forEach((t3) => {
52971
53662
  const s4 = `${r4}${n3}${t3[0].replace(/^\$0 ?/, "")}`;
52972
53663
  b3.span({ text: s4, padding: [0, 2, 0, 2], width: w2(u2, y3, `${e2}${n3}`) + 4 }, { text: t3[1] });
52973
53664
  const o4 = [];
52974
- t3[2] && o4.push(`[${i2("default")}]`), t3[3] && t3[3].length && o4.push(`[${i2("aliases:")} ${t3[3].join(", ")}]`), t3[4] && (typeof t3[4] == "string" ? o4.push(`[${i2("deprecated: %s", t3[4])}]`) : o4.push(`[${i2("deprecated")}]`)), o4.length ? b3.div({ text: o4.join(" "), padding: [0, 0, 0, 2], align: "right" }) : b3.div();
53665
+ t3[2] && o4.push(`[${i2("default")}]`), t3[3] && t3[3].length && o4.push(`[${i2("aliases:")} ${t3[3].join(", ")}]`), t3[4] && ("string" == typeof t3[4] ? o4.push(`[${i2("deprecated: %s", t3[4])}]`) : o4.push(`[${i2("deprecated")}]`)), o4.length ? b3.div({ text: o4.join(" "), padding: [0, 0, 0, 2], align: "right" }) : b3.div();
52975
53666
  }), b3.div();
52976
53667
  }
52977
53668
  const M3 = (Object.keys(l3.alias) || []).concat(Object.keys(t2.parsed.newAliases) || []);
52978
- g2 = g2.filter((e3) => !t2.parsed.newAliases[e3] && M3.every((t3) => (l3.alias[t3] || []).indexOf(e3) === -1));
53669
+ g2 = g2.filter((e3) => !t2.parsed.newAliases[e3] && M3.every((t3) => -1 === (l3.alias[t3] || []).indexOf(e3)));
52979
53670
  const k3 = i2("Options:");
52980
53671
  h3[k3] || (h3[k3] = []), function(t3, e3, s3, i3) {
52981
53672
  let n3 = [], r4 = null;
52982
53673
  Object.keys(s3).forEach((t4) => {
52983
53674
  n3 = n3.concat(s3[t4]);
52984
53675
  }), t3.forEach((t4) => {
52985
- r4 = [t4].concat(e3[t4]), r4.some((t5) => n3.indexOf(t5) !== -1) || s3[i3].push(t4);
53676
+ r4 = [t4].concat(e3[t4]), r4.some((t5) => -1 !== n3.indexOf(t5)) || s3[i3].push(t4);
52986
53677
  });
52987
53678
  }(g2, l3.alias, h3, k3);
52988
53679
  const x2 = (t3) => /^--/.test(I(t3)), E2 = Object.keys(h3).filter((t3) => h3[t3].length > 0).map((t3) => ({ groupName: t3, normalizedKeys: h3[t3].filter(j2).map((t4) => {
52989
53680
  if (M3.includes(t4))
52990
53681
  return t4;
52991
- for (let e3, s3 = 0; (e3 = M3[s3]) !== void 0; s3++)
53682
+ for (let e3, s3 = 0; void 0 !== (e3 = M3[s3]); s3++)
52992
53683
  if ((l3.alias[e3] || []).includes(t4))
52993
53684
  return e3;
52994
53685
  return t4;
@@ -53006,14 +53697,14 @@ var require_build8 = __commonJS({
53006
53697
  const e4 = s3[t4];
53007
53698
  let o4 = p2[t4] || "", h4 = null;
53008
53699
  o4.includes(O2) && (o4 = i2(o4.substring(O2.length))), l3.boolean.includes(t4) && (h4 = `[${i2("boolean")}]`), l3.count.includes(t4) && (h4 = `[${i2("count")}]`), l3.string.includes(t4) && (h4 = `[${i2("string")}]`), l3.normalize.includes(t4) && (h4 = `[${i2("string")}]`), l3.array.includes(t4) && (h4 = `[${i2("array")}]`), l3.number.includes(t4) && (h4 = `[${i2("number")}]`);
53009
- const c3 = [t4 in a3 ? (f3 = a3[t4], typeof f3 == "string" ? `[${i2("deprecated: %s", f3)}]` : `[${i2("deprecated")}]`) : null, h4, t4 in r3 ? `[${i2("required")}]` : null, l3.choices && l3.choices[t4] ? `[${i2("choices:")} ${n2.stringifiedValues(l3.choices[t4])}]` : null, _2(l3.default[t4], l3.defaultDescription[t4])].filter(Boolean).join(" ");
53700
+ const c3 = [t4 in a3 ? (f3 = a3[t4], "string" == typeof f3 ? `[${i2("deprecated: %s", f3)}]` : `[${i2("deprecated")}]`) : null, h4, t4 in r3 ? `[${i2("required")}]` : null, l3.choices && l3.choices[t4] ? `[${i2("choices:")} ${n2.stringifiedValues(l3.choices[t4])}]` : null, _2(l3.default[t4], l3.defaultDescription[t4])].filter(Boolean).join(" ");
53010
53701
  var f3;
53011
53702
  b3.span({ text: I(e4), padding: [0, 2, 0, 2 + $(e4)], width: w2(s3, y3) + 4 }, o4), c3 ? b3.div({ text: c3, padding: [0, 0, 0, 2], align: "right" }) : b3.div();
53012
53703
  }), b3.div();
53013
53704
  }), d2.length && (b3.div(i2("Examples:")), d2.forEach((t3) => {
53014
53705
  t3[0] = t3[0].replace(/\$0/g, e2);
53015
53706
  }), d2.forEach((t3) => {
53016
- t3[1] === "" ? b3.div({ text: t3[0], padding: [0, 2, 0, 2] }) : b3.div({ text: t3[0], padding: [0, 2, 0, 2], width: w2(d2, y3) + 4 }, { text: t3[1] });
53707
+ "" === t3[1] ? b3.div({ text: t3[0], padding: [0, 2, 0, 2] }) : b3.div({ text: t3[0], padding: [0, 2, 0, 2], width: w2(d2, y3) + 4 }, { text: t3[1] });
53017
53708
  }), b3.div()), m2.length > 0) {
53018
53709
  const t3 = m2.map((t4) => t4.replace(/\$0/g, e2)).join("\n");
53019
53710
  b3.div(`${t3}
@@ -53029,7 +53720,7 @@ var require_build8 = __commonJS({
53029
53720
  }, n2.showHelp = (e2) => {
53030
53721
  const s3 = t2.getInternalMethods().getLoggerInstance();
53031
53722
  e2 || (e2 = "error");
53032
- (typeof e2 == "function" ? e2 : s3[e2])(n2.help());
53723
+ ("function" == typeof e2 ? e2 : s3[e2])(n2.help());
53033
53724
  }, n2.functionDescription = (t3) => ["(", t3.name ? s2.Parser.decamelize(t3.name, "-") : i2("generated-value"), ")"].join(""), n2.stringifiedValues = function(t3, e2) {
53034
53725
  let s3 = "";
53035
53726
  const i3 = e2 || ", ", n3 = [].concat(t3);
@@ -53043,7 +53734,7 @@ var require_build8 = __commonJS({
53043
53734
  }, n2.showVersion = (e2) => {
53044
53735
  const s3 = t2.getInternalMethods().getLoggerInstance();
53045
53736
  e2 || (e2 = "error");
53046
- (typeof e2 == "function" ? e2 : s3[e2])(M2);
53737
+ ("function" == typeof e2 ? e2 : s3[e2])(M2);
53047
53738
  }, n2.reset = function(t3) {
53048
53739
  return o2 = null, l2 = false, c2 = [], f2 = false, m2 = [], d2 = [], u2 = [], p2 = g(p2, (e2) => !t3[e2]), n2;
53049
53740
  };
@@ -53052,11 +53743,11 @@ var require_build8 = __commonJS({
53052
53743
  k2.push({ failMessage: o2, failureOutput: l2, usages: c2, usageDisabled: f2, epilogs: m2, examples: d2, commands: u2, descriptions: p2 });
53053
53744
  }, n2.unfreeze = function(t3 = false) {
53054
53745
  const e2 = k2.pop();
53055
- e2 && (t3 ? (p2 = __spreadValues(__spreadValues({}, e2.descriptions), p2), u2 = [...e2.commands, ...u2], c2 = [...e2.usages, ...c2], d2 = [...e2.examples, ...d2], m2 = [...e2.epilogs, ...m2]) : { failMessage: o2, failureOutput: l2, usages: c2, usageDisabled: f2, epilogs: m2, examples: d2, commands: u2, descriptions: p2 } = e2);
53746
+ e2 && (t3 ? (p2 = { ...e2.descriptions, ...p2 }, u2 = [...e2.commands, ...u2], c2 = [...e2.usages, ...c2], d2 = [...e2.examples, ...d2], m2 = [...e2.epilogs, ...m2]) : { failMessage: o2, failureOutput: l2, usages: c2, usageDisabled: f2, epilogs: m2, examples: d2, commands: u2, descriptions: p2 } = e2);
53056
53747
  }, n2;
53057
53748
  }
53058
53749
  function S(t2) {
53059
- return typeof t2 == "object";
53750
+ return "object" == typeof t2;
53060
53751
  }
53061
53752
  function $(t2) {
53062
53753
  return S(t2) ? t2.indentation : 0;
@@ -53067,7 +53758,7 @@ var require_build8 = __commonJS({
53067
53758
  var D = class {
53068
53759
  constructor(t2, e2, s2, i2) {
53069
53760
  var n2, r2, o2;
53070
- this.yargs = t2, this.usage = e2, this.command = s2, this.shim = i2, this.completionKey = "get-yargs-completions", this.aliases = null, this.customCompletionFunction = null, this.indexAfterLastReset = 0, this.zshShell = (o2 = ((n2 = this.shim.getEnv("SHELL")) === null || n2 === void 0 ? void 0 : n2.includes("zsh")) || ((r2 = this.shim.getEnv("ZSH_NAME")) === null || r2 === void 0 ? void 0 : r2.includes("zsh"))) !== null && o2 !== void 0 && o2;
53761
+ this.yargs = t2, this.usage = e2, this.command = s2, this.shim = i2, this.completionKey = "get-yargs-completions", this.aliases = null, this.customCompletionFunction = null, this.indexAfterLastReset = 0, this.zshShell = null !== (o2 = (null === (n2 = this.shim.getEnv("SHELL")) || void 0 === n2 ? void 0 : n2.includes("zsh")) || (null === (r2 = this.shim.getEnv("ZSH_NAME")) || void 0 === r2 ? void 0 : r2.includes("zsh"))) && void 0 !== o2 && o2;
53071
53762
  }
53072
53763
  defaultCompletion(t2, e2, s2, i2) {
53073
53764
  const n2 = this.command.getCommandHandlers();
@@ -53087,7 +53778,7 @@ var require_build8 = __commonJS({
53087
53778
  const i2 = this.yargs.getInternalMethods().getContext().commands;
53088
53779
  s2.match(/^-/) || i2[i2.length - 1] === s2 || this.previousArgHasChoices(e2) || this.usage.getCommands().forEach((s3) => {
53089
53780
  const i3 = o(s3[0]).cmd;
53090
- if (e2.indexOf(i3) === -1)
53781
+ if (-1 === e2.indexOf(i3))
53091
53782
  if (this.zshShell) {
53092
53783
  const e3 = s3[1] || "";
53093
53784
  t2.push(i3.replace(/:/g, "\\:") + ":" + e3);
@@ -53096,7 +53787,7 @@ var require_build8 = __commonJS({
53096
53787
  });
53097
53788
  }
53098
53789
  optionCompletions(t2, e2, s2, i2) {
53099
- if ((i2.match(/^-/) || i2 === "" && t2.length === 0) && !this.previousArgHasChoices(e2)) {
53790
+ if ((i2.match(/^-/) || "" === i2 && 0 === t2.length) && !this.previousArgHasChoices(e2)) {
53100
53791
  const s3 = this.yargs.getOptions(), n2 = this.yargs.getGroups()[this.usage.getPositionalGroupName()] || [];
53101
53792
  Object.keys(s3.key).forEach((r2) => {
53102
53793
  const o2 = !!s3.configuration["boolean-negation"] && s3.boolean.includes(r2);
@@ -53111,7 +53802,7 @@ var require_build8 = __commonJS({
53111
53802
  }
53112
53803
  }
53113
53804
  choicesFromPositionalsCompletions(t2, e2, s2, i2) {
53114
- if (i2 === "" && t2.length > 0 && this.previousArgHasChoices(e2))
53805
+ if ("" === i2 && t2.length > 0 && this.previousArgHasChoices(e2))
53115
53806
  return;
53116
53807
  const n2 = this.yargs.getGroups()[this.usage.getPositionalGroupName()] || [], r2 = Math.max(this.indexAfterLastReset, this.yargs.getInternalMethods().getContext().commands.length + 1), o2 = n2[s2._.length - r2 - 1];
53117
53808
  if (!o2)
@@ -53137,10 +53828,10 @@ var require_build8 = __commonJS({
53137
53828
  }
53138
53829
  previousArgHasChoices(t2) {
53139
53830
  const e2 = this.getPreviousArgChoices(t2);
53140
- return e2 !== void 0 && e2.length > 0;
53831
+ return void 0 !== e2 && e2.length > 0;
53141
53832
  }
53142
53833
  argsContainKey(t2, e2, s2) {
53143
- const i2 = (e3) => t2.indexOf((/^[^0-9]$/.test(e3) ? "-" : "--") + e3) !== -1;
53834
+ const i2 = (e3) => -1 !== t2.indexOf((/^[^0-9]$/.test(e3) ? "-" : "--") + e3);
53144
53835
  if (i2(e2))
53145
53836
  return true;
53146
53837
  if (s2 && i2(`no-${e2}`))
@@ -53217,9 +53908,9 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53217
53908
  }
53218
53909
  };
53219
53910
  function N(t2, e2) {
53220
- if (t2.length === 0)
53911
+ if (0 === t2.length)
53221
53912
  return e2.length;
53222
- if (e2.length === 0)
53913
+ if (0 === e2.length)
53223
53914
  return t2.length;
53224
53915
  const s2 = [];
53225
53916
  let i2, n2;
@@ -53307,15 +53998,15 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53307
53998
  this.customScriptName = false, this.parsed = false, z.set(this, void 0), q.set(this, void 0), W.set(this, { commands: [], fullCommands: [] }), F.set(this, null), U.set(this, null), L.set(this, "show-hidden"), V.set(this, null), G.set(this, true), R.set(this, {}), T.set(this, true), K.set(this, []), B.set(this, void 0), Y.set(this, {}), J.set(this, false), Z.set(this, null), X.set(this, true), Q.set(this, void 0), tt.set(this, ""), et.set(this, void 0), st.set(this, void 0), it.set(this, {}), nt.set(this, null), rt.set(this, null), ot.set(this, {}), at.set(this, {}), ht.set(this, void 0), lt.set(this, false), ct.set(this, void 0), ft.set(this, false), dt.set(this, false), ut.set(this, false), pt.set(this, void 0), gt.set(this, null), mt.set(this, void 0), O(this, ct, i2, "f"), O(this, ht, t2, "f"), O(this, q, e2, "f"), O(this, st, s2, "f"), O(this, B, new w(this), "f"), this.$0 = this[Ct](), this[Kt](), O(this, z, v(this, z, "f"), "f"), O(this, pt, v(this, pt, "f"), "f"), O(this, mt, v(this, mt, "f"), "f"), O(this, et, v(this, et, "f"), "f"), v(this, et, "f").showHiddenOpt = v(this, L, "f"), O(this, Q, this[bt](), "f");
53308
53999
  }
53309
54000
  addHelpOpt(t2, e2) {
53310
- return h("[string|boolean] [string]", [t2, e2], arguments.length), v(this, Z, "f") && (this[vt](v(this, Z, "f")), O(this, Z, null, "f")), t2 === false && e2 === void 0 || (O(this, Z, typeof t2 == "string" ? t2 : "help", "f"), this.boolean(v(this, Z, "f")), this.describe(v(this, Z, "f"), e2 || v(this, pt, "f").deferY18nLookup("Show help"))), this;
54001
+ return h("[string|boolean] [string]", [t2, e2], arguments.length), v(this, Z, "f") && (this[vt](v(this, Z, "f")), O(this, Z, null, "f")), false === t2 && void 0 === e2 || (O(this, Z, "string" == typeof t2 ? t2 : "help", "f"), this.boolean(v(this, Z, "f")), this.describe(v(this, Z, "f"), e2 || v(this, pt, "f").deferY18nLookup("Show help"))), this;
53311
54002
  }
53312
54003
  help(t2, e2) {
53313
54004
  return this.addHelpOpt(t2, e2);
53314
54005
  }
53315
54006
  addShowHiddenOpt(t2, e2) {
53316
- if (h("[string|boolean] [string]", [t2, e2], arguments.length), t2 === false && e2 === void 0)
54007
+ if (h("[string|boolean] [string]", [t2, e2], arguments.length), false === t2 && void 0 === e2)
53317
54008
  return this;
53318
- const s2 = typeof t2 == "string" ? t2 : v(this, L, "f");
54009
+ const s2 = "string" == typeof t2 ? t2 : v(this, L, "f");
53319
54010
  return this.boolean(s2), this.describe(s2, e2 || v(this, pt, "f").deferY18nLookup("Show hidden options")), v(this, et, "f").showHiddenOpt = s2, this;
53320
54011
  }
53321
54012
  showHidden(t2, e2) {
@@ -53331,7 +54022,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53331
54022
  return h("<array|string>", [t2], arguments.length), this[Et]("boolean", t2), this[Zt](t2), this;
53332
54023
  }
53333
54024
  check(t2, e2) {
53334
- return h("<function> [boolean]", [t2, e2], arguments.length), this.middleware((e3, s2) => j(() => t2(e3, s2.getOptions()), (s3) => (s3 ? (typeof s3 == "string" || s3 instanceof Error) && v(this, pt, "f").fail(s3.toString(), s3) : v(this, pt, "f").fail(v(this, ct, "f").y18n.__("Argument check failed: %s", t2.toString())), e3), (t3) => (v(this, pt, "f").fail(t3.message ? t3.message : t3.toString(), t3), e3)), false, e2), this;
54025
+ return h("<function> [boolean]", [t2, e2], arguments.length), this.middleware((e3, s2) => j(() => t2(e3, s2.getOptions()), (s3) => (s3 ? ("string" == typeof s3 || s3 instanceof Error) && v(this, pt, "f").fail(s3.toString(), s3) : v(this, pt, "f").fail(v(this, ct, "f").y18n.__("Argument check failed: %s", t2.toString())), e3), (t3) => (v(this, pt, "f").fail(t3.message ? t3.message : t3.toString(), t3), e3)), false, e2), this;
53335
54026
  }
53336
54027
  choices(t2, e2) {
53337
54028
  return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[Pt](this.choices.bind(this), "choices", t2, e2), this;
@@ -53344,7 +54035,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53344
54035
  this.coerce(e2, s2);
53345
54036
  return this;
53346
54037
  }
53347
- if (typeof t2 == "object") {
54038
+ if ("object" == typeof t2) {
53348
54039
  for (const e2 of Object.keys(t2))
53349
54040
  this.coerce(e2, t2[e2]);
53350
54041
  return this;
@@ -53356,7 +54047,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53356
54047
  return Object.prototype.hasOwnProperty.call(i2, t2) ? j(() => (r2 = n2.getAliases(), s2(i2[t2])), (e2) => {
53357
54048
  i2[t2] = e2;
53358
54049
  const s3 = n2.getInternalMethods().getParserConfiguration()["strip-aliased"];
53359
- if (r2[t2] && s3 !== true)
54050
+ if (r2[t2] && true !== s3)
53360
54051
  for (const s4 of r2[t2])
53361
54052
  i2[s4] = e2;
53362
54053
  return i2;
@@ -53369,12 +54060,12 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53369
54060
  return h("<string|object> [string|array]", [t2, e2], arguments.length), v(this, mt, "f").conflicts(t2, e2), this;
53370
54061
  }
53371
54062
  config(t2 = "config", e2, s2) {
53372
- return h("[object|string] [string|function] [function]", [t2, e2, s2], arguments.length), typeof t2 != "object" || Array.isArray(t2) ? (typeof e2 == "function" && (s2 = e2, e2 = void 0), this.describe(t2, e2 || v(this, pt, "f").deferY18nLookup("Path to JSON config file")), (Array.isArray(t2) ? t2 : [t2]).forEach((t3) => {
54063
+ return h("[object|string] [string|function] [function]", [t2, e2, s2], arguments.length), "object" != typeof t2 || Array.isArray(t2) ? ("function" == typeof e2 && (s2 = e2, e2 = void 0), this.describe(t2, e2 || v(this, pt, "f").deferY18nLookup("Path to JSON config file")), (Array.isArray(t2) ? t2 : [t2]).forEach((t3) => {
53373
54064
  v(this, et, "f").config[t3] = s2 || true;
53374
54065
  }), this) : (t2 = n(t2, v(this, q, "f"), this[jt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(t2), this);
53375
54066
  }
53376
54067
  completion(t2, e2, s2) {
53377
- return h("[string] [string|boolean|function] [function]", [t2, e2, s2], arguments.length), typeof e2 == "function" && (s2 = e2, e2 = void 0), O(this, U, t2 || v(this, U, "f") || "completion", "f"), e2 || e2 === false || (e2 = "generate completion script"), this.command(v(this, U, "f"), e2), s2 && v(this, F, "f").registerFunction(s2), this;
54068
+ return h("[string] [string|boolean|function] [function]", [t2, e2, s2], arguments.length), "function" == typeof e2 && (s2 = e2, e2 = void 0), O(this, U, t2 || v(this, U, "f") || "completion", "f"), e2 || false === e2 || (e2 = "generate completion script"), this.command(v(this, U, "f"), e2), s2 && v(this, F, "f").registerFunction(s2), this;
53378
54069
  }
53379
54070
  command(t2, e2, s2, i2, n2, r2) {
53380
54071
  return h("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]", [t2, e2, s2, i2, n2, r2], arguments.length), v(this, z, "f").addHandler(t2, e2, s2, i2, n2, r2), this;
@@ -53391,20 +54082,20 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53391
54082
  return h("<array|string>", [t2], arguments.length), this[Et]("count", t2), this[Zt](t2), this;
53392
54083
  }
53393
54084
  default(t2, e2, s2) {
53394
- return h("<object|string|array> [*] [string]", [t2, e2, s2], arguments.length), s2 && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] = s2), typeof e2 == "function" && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] || (v(this, et, "f").defaultDescription[t2] = v(this, pt, "f").functionDescription(e2)), e2 = e2.call()), this[At](this.default.bind(this), "default", t2, e2), this;
54085
+ return h("<object|string|array> [*] [string]", [t2, e2, s2], arguments.length), s2 && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] = s2), "function" == typeof e2 && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] || (v(this, et, "f").defaultDescription[t2] = v(this, pt, "f").functionDescription(e2)), e2 = e2.call()), this[At](this.default.bind(this), "default", t2, e2), this;
53395
54086
  }
53396
54087
  defaults(t2, e2, s2) {
53397
54088
  return this.default(t2, e2, s2);
53398
54089
  }
53399
54090
  demandCommand(t2 = 1, e2, s2, i2) {
53400
- return h("[number] [number|string] [string|null|undefined] [string|null|undefined]", [t2, e2, s2, i2], arguments.length), typeof e2 != "number" && (s2 = e2, e2 = 1 / 0), this.global("_", false), v(this, et, "f").demandedCommands._ = { min: t2, max: e2, minMsg: s2, maxMsg: i2 }, this;
54091
+ return h("[number] [number|string] [string|null|undefined] [string|null|undefined]", [t2, e2, s2, i2], arguments.length), "number" != typeof e2 && (s2 = e2, e2 = 1 / 0), this.global("_", false), v(this, et, "f").demandedCommands._ = { min: t2, max: e2, minMsg: s2, maxMsg: i2 }, this;
53401
54092
  }
53402
54093
  demand(t2, e2, s2) {
53403
54094
  return Array.isArray(e2) ? (e2.forEach((t3) => {
53404
54095
  d(s2, true, v(this, ct, "f")), this.demandOption(t3, s2);
53405
- }), e2 = 1 / 0) : typeof e2 != "number" && (s2 = e2, e2 = 1 / 0), typeof t2 == "number" ? (d(s2, true, v(this, ct, "f")), this.demandCommand(t2, e2, s2, s2)) : Array.isArray(t2) ? t2.forEach((t3) => {
54096
+ }), e2 = 1 / 0) : "number" != typeof e2 && (s2 = e2, e2 = 1 / 0), "number" == typeof t2 ? (d(s2, true, v(this, ct, "f")), this.demandCommand(t2, e2, s2, s2)) : Array.isArray(t2) ? t2.forEach((t3) => {
53406
54097
  d(s2, true, v(this, ct, "f")), this.demandOption(t3, s2);
53407
- }) : typeof s2 == "string" ? this.demandOption(t2, s2) : s2 !== true && s2 !== void 0 || this.demandOption(t2), this;
54098
+ }) : "string" == typeof s2 ? this.demandOption(t2, s2) : true !== s2 && void 0 !== s2 || this.demandOption(t2), this;
53408
54099
  }
53409
54100
  demandOption(t2, e2) {
53410
54101
  return h("<object|string|array> [string]", [t2, e2], arguments.length), this[At](this.demandOption.bind(this), "demandedOptions", t2, e2), this;
@@ -53419,7 +54110,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53419
54110
  return h("<boolean>", [t2], arguments.length), O(this, G, t2, "f"), this;
53420
54111
  }
53421
54112
  env(t2) {
53422
- return h("[string|boolean]", [t2], arguments.length), t2 === false ? delete v(this, et, "f").envPrefix : v(this, et, "f").envPrefix = t2 || "", this;
54113
+ return h("[string|boolean]", [t2], arguments.length), false === t2 ? delete v(this, et, "f").envPrefix : v(this, et, "f").envPrefix = t2 || "", this;
53423
54114
  }
53424
54115
  epilogue(t2) {
53425
54116
  return h("<string>", [t2], arguments.length), v(this, pt, "f").epilog(t2), this;
@@ -53437,7 +54128,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53437
54128
  return h("[boolean]", [t2], arguments.length), O(this, T, t2, "f"), this;
53438
54129
  }
53439
54130
  fail(t2) {
53440
- if (h("<function|boolean>", [t2], arguments.length), typeof t2 == "boolean" && t2 !== false)
54131
+ if (h("<function|boolean>", [t2], arguments.length), "boolean" == typeof t2 && false !== t2)
53441
54132
  throw new e("Invalid first argument. Expected function or boolean 'false'");
53442
54133
  return v(this, pt, "f").failFn(t2), this;
53443
54134
  }
@@ -53495,7 +54186,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53495
54186
  return v(this, ut, "f");
53496
54187
  }
53497
54188
  global(t2, e2) {
53498
- return h("<string|array> [boolean]", [t2, e2], arguments.length), t2 = [].concat(t2), e2 !== false ? v(this, et, "f").local = v(this, et, "f").local.filter((e3) => t2.indexOf(e3) === -1) : t2.forEach((t3) => {
54189
+ return h("<string|array> [boolean]", [t2, e2], arguments.length), t2 = [].concat(t2), false !== e2 ? v(this, et, "f").local = v(this, et, "f").local.filter((e3) => -1 === t2.indexOf(e3)) : t2.forEach((t3) => {
53499
54190
  v(this, et, "f").local.includes(t3) || v(this, et, "f").local.push(t3);
53500
54191
  }), this;
53501
54192
  }
@@ -53513,7 +54204,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53513
54204
  return h("<string|object> [number|string|array]", [t2, e2], arguments.length), v(this, mt, "f").implies(t2, e2), this;
53514
54205
  }
53515
54206
  locale(t2) {
53516
- return h("[string]", [t2], arguments.length), t2 === void 0 ? (this[_t](), v(this, ct, "f").y18n.getLocale()) : (O(this, G, false, "f"), v(this, ct, "f").y18n.setLocale(t2), this);
54207
+ return h("[string]", [t2], arguments.length), void 0 === t2 ? (this[_t](), v(this, ct, "f").y18n.getLocale()) : (O(this, G, false, "f"), v(this, ct, "f").y18n.setLocale(t2), this);
53517
54208
  }
53518
54209
  middleware(t2, e2, s2) {
53519
54210
  return v(this, B, "f").addMiddleware(t2, !!e2, s2);
@@ -53528,16 +54219,16 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53528
54219
  return h("<array|string>", [t2], arguments.length), this[Et]("number", t2), this[Zt](t2), this;
53529
54220
  }
53530
54221
  option(t2, e2) {
53531
- if (h("<string|object> [object]", [t2, e2], arguments.length), typeof t2 == "object")
54222
+ if (h("<string|object> [object]", [t2, e2], arguments.length), "object" == typeof t2)
53532
54223
  Object.keys(t2).forEach((e3) => {
53533
54224
  this.options(e3, t2[e3]);
53534
54225
  });
53535
54226
  else {
53536
- typeof e2 != "object" && (e2 = {}), this[Zt](t2), !v(this, gt, "f") || t2 !== "version" && (e2 == null ? void 0 : e2.alias) !== "version" || this[Ot](['"version" is a reserved word.', "Please do one of the following:", '- Disable version with `yargs.version(false)` if using "version" as an option', "- Use the built-in `yargs.version` method instead (if applicable)", "- Use a different option key", "https://yargs.js.org/docs/#api-reference-version"].join("\n"), void 0, "versionWarning"), v(this, et, "f").key[t2] = true, e2.alias && this.alias(t2, e2.alias);
54227
+ "object" != typeof e2 && (e2 = {}), this[Zt](t2), !v(this, gt, "f") || "version" !== t2 && "version" !== (null == e2 ? void 0 : e2.alias) || this[Ot](['"version" is a reserved word.', "Please do one of the following:", '- Disable version with `yargs.version(false)` if using "version" as an option', "- Use the built-in `yargs.version` method instead (if applicable)", "- Use a different option key", "https://yargs.js.org/docs/#api-reference-version"].join("\n"), void 0, "versionWarning"), v(this, et, "f").key[t2] = true, e2.alias && this.alias(t2, e2.alias);
53537
54228
  const s2 = e2.deprecate || e2.deprecated;
53538
54229
  s2 && this.deprecateOption(t2, s2);
53539
54230
  const i2 = e2.demand || e2.required || e2.require;
53540
- i2 && this.demand(t2, i2), e2.demandOption && this.demandOption(t2, typeof e2.demandOption == "string" ? e2.demandOption : void 0), e2.conflicts && this.conflicts(t2, e2.conflicts), "default" in e2 && this.default(t2, e2.default), e2.implies !== void 0 && this.implies(t2, e2.implies), e2.nargs !== void 0 && this.nargs(t2, e2.nargs), e2.config && this.config(t2, e2.configParser), e2.normalize && this.normalize(t2), e2.choices && this.choices(t2, e2.choices), e2.coerce && this.coerce(t2, e2.coerce), e2.group && this.group(t2, e2.group), (e2.boolean || e2.type === "boolean") && (this.boolean(t2), e2.alias && this.boolean(e2.alias)), (e2.array || e2.type === "array") && (this.array(t2), e2.alias && this.array(e2.alias)), (e2.number || e2.type === "number") && (this.number(t2), e2.alias && this.number(e2.alias)), (e2.string || e2.type === "string") && (this.string(t2), e2.alias && this.string(e2.alias)), (e2.count || e2.type === "count") && this.count(t2), typeof e2.global == "boolean" && this.global(t2, e2.global), e2.defaultDescription && (v(this, et, "f").defaultDescription[t2] = e2.defaultDescription), e2.skipValidation && this.skipValidation(t2);
54231
+ i2 && this.demand(t2, i2), e2.demandOption && this.demandOption(t2, "string" == typeof e2.demandOption ? e2.demandOption : void 0), e2.conflicts && this.conflicts(t2, e2.conflicts), "default" in e2 && this.default(t2, e2.default), void 0 !== e2.implies && this.implies(t2, e2.implies), void 0 !== e2.nargs && this.nargs(t2, e2.nargs), e2.config && this.config(t2, e2.configParser), e2.normalize && this.normalize(t2), e2.choices && this.choices(t2, e2.choices), e2.coerce && this.coerce(t2, e2.coerce), e2.group && this.group(t2, e2.group), (e2.boolean || "boolean" === e2.type) && (this.boolean(t2), e2.alias && this.boolean(e2.alias)), (e2.array || "array" === e2.type) && (this.array(t2), e2.alias && this.array(e2.alias)), (e2.number || "number" === e2.type) && (this.number(t2), e2.alias && this.number(e2.alias)), (e2.string || "string" === e2.type) && (this.string(t2), e2.alias && this.string(e2.alias)), (e2.count || "count" === e2.type) && this.count(t2), "boolean" == typeof e2.global && this.global(t2, e2.global), e2.defaultDescription && (v(this, et, "f").defaultDescription[t2] = e2.defaultDescription), e2.skipValidation && this.skipValidation(t2);
53541
54232
  const n2 = e2.describe || e2.description || e2.desc;
53542
54233
  this.describe(t2, n2), e2.hidden && this.hide(t2), e2.requiresArg && this.requiresArg(t2);
53543
54234
  }
@@ -53547,7 +54238,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53547
54238
  return this.option(t2, e2);
53548
54239
  }
53549
54240
  parse(t2, e2, s2) {
53550
- h("[string|array] [function|boolean|object] [function]", [t2, e2, s2], arguments.length), this[wt](), t2 === void 0 && (t2 = v(this, ht, "f")), typeof e2 == "object" && (O(this, rt, e2, "f"), e2 = s2), typeof e2 == "function" && (O(this, nt, e2, "f"), e2 = false), e2 || O(this, ht, t2, "f"), v(this, nt, "f") && O(this, T, false, "f");
54241
+ h("[string|array] [function|boolean|object] [function]", [t2, e2, s2], arguments.length), this[wt](), void 0 === t2 && (t2 = v(this, ht, "f")), "object" == typeof e2 && (O(this, rt, e2, "f"), e2 = s2), "function" == typeof e2 && (O(this, nt, e2, "f"), e2 = false), e2 || O(this, ht, t2, "f"), v(this, nt, "f") && O(this, T, false, "f");
53551
54242
  const i2 = this[Bt](t2, !!e2), n2 = this.parsed;
53552
54243
  return v(this, F, "f").setParsed(this.parsed), f(i2) ? i2.then((t3) => (v(this, nt, "f") && v(this, nt, "f").call(this, v(this, V, "f"), t3, v(this, tt, "f")), t3)).catch((t3) => {
53553
54244
  throw v(this, nt, "f") && v(this, nt, "f")(t3, this.parsed.argv, v(this, tt, "f")), t3;
@@ -53572,16 +54263,16 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53572
54263
  h("<string> [string]", [t2, e2], arguments.length);
53573
54264
  let s2 = null;
53574
54265
  const i2 = this[xt](e2 || v(this, q, "f"));
53575
- return i2[t2] && typeof i2[t2] == "object" && (s2 = n(i2[t2], e2 || v(this, q, "f"), this[jt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(s2)), this;
54266
+ return i2[t2] && "object" == typeof i2[t2] && (s2 = n(i2[t2], e2 || v(this, q, "f"), this[jt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(s2)), this;
53576
54267
  }
53577
54268
  positional(t2, e2) {
53578
54269
  h("<string> <object>", [t2, e2], arguments.length);
53579
54270
  const s2 = ["default", "defaultDescription", "implies", "normalize", "choices", "conflicts", "coerce", "type", "describe", "desc", "description", "alias"];
53580
- e2 = g(e2, (t3, e3) => !(t3 === "type" && !["string", "number", "boolean"].includes(e3)) && s2.includes(t3));
54271
+ e2 = g(e2, (t3, e3) => !("type" === t3 && !["string", "number", "boolean"].includes(e3)) && s2.includes(t3));
53581
54272
  const i2 = v(this, W, "f").fullCommands[v(this, W, "f").fullCommands.length - 1], n2 = i2 ? v(this, z, "f").cmdToParseOptions(i2) : { array: [], alias: {}, default: {}, demand: {} };
53582
54273
  return p(n2).forEach((s3) => {
53583
54274
  const i3 = n2[s3];
53584
- Array.isArray(i3) ? i3.indexOf(t2) !== -1 && (e2[s3] = true) : i3[t2] && !(s3 in e2) && (e2[s3] = i3[t2]);
54275
+ Array.isArray(i3) ? -1 !== i3.indexOf(t2) && (e2[s3] = true) : i3[t2] && !(s3 in e2) && (e2[s3] = i3[t2]);
53585
54276
  }), this.group(t2, v(this, pt, "f").getPositionalGroupName()), this.option(t2, e2);
53586
54277
  }
53587
54278
  recommendCommands(t2 = true) {
@@ -53594,7 +54285,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53594
54285
  return this.demand(t2, e2, s2);
53595
54286
  }
53596
54287
  requiresArg(t2) {
53597
- return h("<array|string|object> [number]", [t2], arguments.length), typeof t2 == "string" && v(this, et, "f").narg[t2] || this[At](this.requiresArg.bind(this), "narg", t2, NaN), this;
54288
+ return h("<array|string|object> [number]", [t2], arguments.length), "string" == typeof t2 && v(this, et, "f").narg[t2] || this[At](this.requiresArg.bind(this), "narg", t2, NaN), this;
53598
54289
  }
53599
54290
  showCompletionScript(t2, e2) {
53600
54291
  return h("[string] [string]", [t2, e2], arguments.length), t2 = t2 || this.$0, v(this, Q, "f").log(v(this, F, "f").generateCompletionScript(t2, e2 || v(this, U, "f") || "completion")), this;
@@ -53629,13 +54320,13 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53629
54320
  return h("<array|string>", [t2], arguments.length), this[Et]("skipValidation", t2), this;
53630
54321
  }
53631
54322
  strict(t2) {
53632
- return h("[boolean]", [t2], arguments.length), O(this, ft, t2 !== false, "f"), this;
54323
+ return h("[boolean]", [t2], arguments.length), O(this, ft, false !== t2, "f"), this;
53633
54324
  }
53634
54325
  strictCommands(t2) {
53635
- return h("[boolean]", [t2], arguments.length), O(this, dt, t2 !== false, "f"), this;
54326
+ return h("[boolean]", [t2], arguments.length), O(this, dt, false !== t2, "f"), this;
53636
54327
  }
53637
54328
  strictOptions(t2) {
53638
- return h("[boolean]", [t2], arguments.length), O(this, ut, t2 !== false, "f"), this;
54329
+ return h("[boolean]", [t2], arguments.length), O(this, ut, false !== t2, "f"), this;
53639
54330
  }
53640
54331
  string(t2) {
53641
54332
  return h("<array|string>", [t2], arguments.length), this[Et]("string", t2), this[Zt](t2), this;
@@ -53650,7 +54341,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53650
54341
  return h("<object>", [t2], arguments.length), O(this, G, false, "f"), v(this, ct, "f").y18n.updateLocale(t2), this;
53651
54342
  }
53652
54343
  usage(t2, s2, i2, n2) {
53653
- if (h("<string|null|undefined> [string|boolean] [function|object] [function]", [t2, s2, i2, n2], arguments.length), s2 !== void 0) {
54344
+ if (h("<string|null|undefined> [string|boolean] [function|object] [function]", [t2, s2, i2, n2], arguments.length), void 0 !== s2) {
53654
54345
  if (d(t2, null, v(this, ct, "f")), (t2 || "").match(/^\$0( |$)/))
53655
54346
  return this.command(t2, s2, i2, n2);
53656
54347
  throw new e(".usage() description must start with $0 if being used as alias for .command()");
@@ -53659,15 +54350,15 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53659
54350
  }
53660
54351
  version(t2, e2, s2) {
53661
54352
  const i2 = "version";
53662
- if (h("[boolean|string] [string] [string]", [t2, e2, s2], arguments.length), v(this, gt, "f") && (this[vt](v(this, gt, "f")), v(this, pt, "f").version(void 0), O(this, gt, null, "f")), arguments.length === 0)
54353
+ if (h("[boolean|string] [string] [string]", [t2, e2, s2], arguments.length), v(this, gt, "f") && (this[vt](v(this, gt, "f")), v(this, pt, "f").version(void 0), O(this, gt, null, "f")), 0 === arguments.length)
53663
54354
  s2 = this[Mt](), t2 = i2;
53664
- else if (arguments.length === 1) {
53665
- if (t2 === false)
54355
+ else if (1 === arguments.length) {
54356
+ if (false === t2)
53666
54357
  return this;
53667
54358
  s2 = t2, t2 = i2;
53668
54359
  } else
53669
- arguments.length === 2 && (s2 = e2, e2 = void 0);
53670
- return O(this, gt, typeof t2 == "string" ? t2 : i2, "f"), e2 = e2 || v(this, pt, "f").deferY18nLookup("Show version number"), v(this, pt, "f").version(s2 || void 0), this.boolean(v(this, gt, "f")), this.describe(v(this, gt, "f"), e2), this;
54360
+ 2 === arguments.length && (s2 = e2, e2 = void 0);
54361
+ return O(this, gt, "string" == typeof t2 ? t2 : i2, "f"), e2 = e2 || v(this, pt, "f").deferY18nLookup("Show version number"), v(this, pt, "f").version(s2 || void 0), this.boolean(v(this, gt, "f")), this.describe(v(this, gt, "f"), e2), this;
53671
54362
  }
53672
54363
  wrap(t2) {
53673
54364
  return h("<number|null|undefined>", [t2], arguments.length), v(this, pt, "f").wrap(t2), this;
@@ -53691,10 +54382,10 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53691
54382
  }
53692
54383
  [vt](t2) {
53693
54384
  p(v(this, et, "f")).forEach((e2) => {
53694
- if (e2 === "configObjects")
54385
+ if ("configObjects" === e2)
53695
54386
  return;
53696
54387
  const s2 = v(this, et, "f")[e2];
53697
- Array.isArray(s2) ? s2.includes(t2) && s2.splice(s2.indexOf(t2), 1) : typeof s2 == "object" && delete s2[t2];
54388
+ Array.isArray(s2) ? s2.includes(t2) && s2.splice(s2.indexOf(t2), 1) : "object" == typeof s2 && delete s2[t2];
53698
54389
  }), delete v(this, pt, "f").getDescriptions()[t2];
53699
54390
  }
53700
54391
  [Ot](t2, e2, s2) {
@@ -53724,7 +54415,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53724
54415
  }
53725
54416
  [kt](t2) {
53726
54417
  const e2 = t2["--"] ? t2["--"] : t2._;
53727
- for (let t3, s2 = 0; (t3 = e2[s2]) !== void 0; s2++)
54418
+ for (let t3, s2 = 0; void 0 !== (t3 = e2[s2]); s2++)
53728
54419
  v(this, ct, "f").Parser.looksLikeNumber(t3) && Number.isSafeInteger(Math.floor(parseFloat(`${t3}`))) && (e2[s2] = Number(t3));
53729
54420
  return t2;
53730
54421
  }
@@ -53762,14 +54453,14 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53762
54453
  s2.forEach((e3) => {
53763
54454
  t2(e3, i2);
53764
54455
  });
53765
- else if (((t3) => typeof t3 == "object")(s2))
54456
+ else if (((t3) => "object" == typeof t3)(s2))
53766
54457
  for (const e3 of p(s2))
53767
54458
  t2(e3, s2[e3]);
53768
54459
  else
53769
54460
  n2(e2, this[$t](s2), i2);
53770
54461
  }
53771
54462
  [$t](t2) {
53772
- return t2 === "__proto__" ? "___proto___" : t2;
54463
+ return "__proto__" === t2 ? "___proto___" : t2;
53773
54464
  }
53774
54465
  [It](t2, e2) {
53775
54466
  return this[At](this[It].bind(this), "key", t2, e2), this;
@@ -53843,7 +54534,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53843
54534
  if (f(t2))
53844
54535
  return t2;
53845
54536
  e2 || (t2 = this[yt](t2));
53846
- return (this[jt]()["parse-positional-numbers"] || this[jt]()["parse-positional-numbers"] === void 0) && (t2 = this[kt](t2)), i2 && (t2 = C(t2, this, v(this, B, "f").getMiddleware(), false)), t2;
54537
+ return (this[jt]()["parse-positional-numbers"] || void 0 === this[jt]()["parse-positional-numbers"]) && (t2 = this[kt](t2)), i2 && (t2 = C(t2, this, v(this, B, "f").getMiddleware(), false)), t2;
53847
54538
  }
53848
54539
  [Kt](t2 = {}) {
53849
54540
  O(this, et, v(this, et, "f") || {}, "f");
@@ -53865,13 +54556,13 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53865
54556
  }), e2.envPrefix = v(this, et, "f").envPrefix, O(this, et, e2, "f"), O(this, pt, v(this, pt, "f") ? v(this, pt, "f").reset(s2) : P(this, v(this, ct, "f")), "f"), O(this, mt, v(this, mt, "f") ? v(this, mt, "f").reset(s2) : function(t3, e3, s3) {
53866
54557
  const i2 = s3.y18n.__, n2 = s3.y18n.__n, r2 = { nonOptionCount: function(s4) {
53867
54558
  const i3 = t3.getDemandedCommands(), r3 = s4._.length + (s4["--"] ? s4["--"].length : 0) - t3.getInternalMethods().getContext().commands.length;
53868
- i3._ && (r3 < i3._.min || r3 > i3._.max) && (r3 < i3._.min ? i3._.minMsg !== void 0 ? e3.fail(i3._.minMsg ? i3._.minMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, i3._.min.toString()) : null) : e3.fail(n2("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", r3, r3.toString(), i3._.min.toString())) : r3 > i3._.max && (i3._.maxMsg !== void 0 ? e3.fail(i3._.maxMsg ? i3._.maxMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, i3._.max.toString()) : null) : e3.fail(n2("Too many non-option arguments: got %s, maximum of %s", "Too many non-option arguments: got %s, maximum of %s", r3, r3.toString(), i3._.max.toString()))));
54559
+ i3._ && (r3 < i3._.min || r3 > i3._.max) && (r3 < i3._.min ? void 0 !== i3._.minMsg ? e3.fail(i3._.minMsg ? i3._.minMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, i3._.min.toString()) : null) : e3.fail(n2("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", r3, r3.toString(), i3._.min.toString())) : r3 > i3._.max && (void 0 !== i3._.maxMsg ? e3.fail(i3._.maxMsg ? i3._.maxMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, i3._.max.toString()) : null) : e3.fail(n2("Too many non-option arguments: got %s, maximum of %s", "Too many non-option arguments: got %s, maximum of %s", r3, r3.toString(), i3._.max.toString()))));
53869
54560
  }, positionalCount: function(t4, s4) {
53870
54561
  s4 < t4 && e3.fail(n2("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", s4, s4 + "", t4 + ""));
53871
54562
  }, requiredArguments: function(t4, s4) {
53872
54563
  let i3 = null;
53873
54564
  for (const e4 of Object.keys(s4))
53874
- Object.prototype.hasOwnProperty.call(t4, e4) && t4[e4] !== void 0 || (i3 = i3 || {}, i3[e4] = s4[e4]);
54565
+ Object.prototype.hasOwnProperty.call(t4, e4) && void 0 !== t4[e4] || (i3 = i3 || {}, i3[e4] = s4[e4]);
53875
54566
  if (i3) {
53876
54567
  const t5 = [];
53877
54568
  for (const e4 of Object.keys(i3)) {
@@ -53890,7 +54581,7 @@ ${t5.join("\n")}` : "";
53890
54581
  }), h2 && (d2.commands.length > 0 || c3.length > 0 || a3) && s4._.slice(d2.commands.length).forEach((t4) => {
53891
54582
  c3.includes("" + t4) || f2.push("" + t4);
53892
54583
  }), h2) {
53893
- const e4 = ((l3 = t3.getDemandedCommands()._) === null || l3 === void 0 ? void 0 : l3.max) || 0, i4 = d2.commands.length + e4;
54584
+ const e4 = (null === (l3 = t3.getDemandedCommands()._) || void 0 === l3 ? void 0 : l3.max) || 0, i4 = d2.commands.length + e4;
53894
54585
  i4 < s4._.length && s4._.slice(i4).forEach((t4) => {
53895
54586
  t4 = String(t4), d2.commands.includes(t4) || f2.includes(t4) || f2.push(t4);
53896
54587
  });
@@ -53911,8 +54602,8 @@ ${t5.join("\n")}` : "";
53911
54602
  if (!Object.keys(n3.choices).length)
53912
54603
  return;
53913
54604
  Object.keys(s4).forEach((t4) => {
53914
- H.indexOf(t4) === -1 && Object.prototype.hasOwnProperty.call(n3.choices, t4) && [].concat(s4[t4]).forEach((e4) => {
53915
- n3.choices[t4].indexOf(e4) === -1 && e4 !== void 0 && (r3[t4] = (r3[t4] || []).concat(e4));
54605
+ -1 === H.indexOf(t4) && Object.prototype.hasOwnProperty.call(n3.choices, t4) && [].concat(s4[t4]).forEach((e4) => {
54606
+ -1 === n3.choices[t4].indexOf(e4) && void 0 !== e4 && (r3[t4] = (r3[t4] || []).concat(e4));
53916
54607
  });
53917
54608
  });
53918
54609
  const o3 = Object.keys(r3);
@@ -53927,10 +54618,10 @@ ${t5.join("\n")}` : "";
53927
54618
  let o2 = {};
53928
54619
  function a2(t4, e4) {
53929
54620
  const s4 = Number(e4);
53930
- return typeof (e4 = isNaN(s4) ? e4 : s4) == "number" ? e4 = t4._.length >= e4 : e4.match(/^--no-.+/) ? (e4 = e4.match(/^--no-(.+)/)[1], e4 = !Object.prototype.hasOwnProperty.call(t4, e4)) : e4 = Object.prototype.hasOwnProperty.call(t4, e4), e4;
54621
+ return "number" == typeof (e4 = isNaN(s4) ? e4 : s4) ? e4 = t4._.length >= e4 : e4.match(/^--no-.+/) ? (e4 = e4.match(/^--no-(.+)/)[1], e4 = !Object.prototype.hasOwnProperty.call(t4, e4)) : e4 = Object.prototype.hasOwnProperty.call(t4, e4), e4;
53931
54622
  }
53932
54623
  r2.implies = function(e4, i3) {
53933
- h("<string|object> [array|number|string]", [e4, i3], arguments.length), typeof e4 == "object" ? Object.keys(e4).forEach((t4) => {
54624
+ h("<string|object> [array|number|string]", [e4, i3], arguments.length), "object" == typeof e4 ? Object.keys(e4).forEach((t4) => {
53934
54625
  r2.implies(t4, e4[t4]);
53935
54626
  }) : (t3.global(e4), o2[e4] || (o2[e4] = []), Array.isArray(i3) ? i3.forEach((t4) => r2.implies(e4, t4)) : (d(i3, void 0, s3), o2[e4].push(i3)));
53936
54627
  }, r2.getImplied = function() {
@@ -53954,23 +54645,23 @@ ${t5.join("\n")}` : "";
53954
54645
  };
53955
54646
  let l2 = {};
53956
54647
  r2.conflicts = function(e4, s4) {
53957
- h("<string|object> [array|string]", [e4, s4], arguments.length), typeof e4 == "object" ? Object.keys(e4).forEach((t4) => {
54648
+ h("<string|object> [array|string]", [e4, s4], arguments.length), "object" == typeof e4 ? Object.keys(e4).forEach((t4) => {
53958
54649
  r2.conflicts(t4, e4[t4]);
53959
54650
  }) : (t3.global(e4), l2[e4] || (l2[e4] = []), Array.isArray(s4) ? s4.forEach((t4) => r2.conflicts(e4, t4)) : l2[e4].push(s4));
53960
54651
  }, r2.getConflicting = () => l2, r2.conflicting = function(n3) {
53961
54652
  Object.keys(n3).forEach((t4) => {
53962
54653
  l2[t4] && l2[t4].forEach((s4) => {
53963
- s4 && n3[t4] !== void 0 && n3[s4] !== void 0 && e3.fail(i2("Arguments %s and %s are mutually exclusive", t4, s4));
54654
+ s4 && void 0 !== n3[t4] && void 0 !== n3[s4] && e3.fail(i2("Arguments %s and %s are mutually exclusive", t4, s4));
53964
54655
  });
53965
54656
  }), t3.getInternalMethods().getParserConfiguration()["strip-dashed"] && Object.keys(l2).forEach((t4) => {
53966
54657
  l2[t4].forEach((r3) => {
53967
- r3 && n3[s3.Parser.camelCase(t4)] !== void 0 && n3[s3.Parser.camelCase(r3)] !== void 0 && e3.fail(i2("Arguments %s and %s are mutually exclusive", t4, r3));
54658
+ r3 && void 0 !== n3[s3.Parser.camelCase(t4)] && void 0 !== n3[s3.Parser.camelCase(r3)] && e3.fail(i2("Arguments %s and %s are mutually exclusive", t4, r3));
53968
54659
  });
53969
54660
  });
53970
54661
  }, r2.recommendCommands = function(t4, s4) {
53971
54662
  s4 = s4.sort((t5, e4) => e4.length - t5.length);
53972
54663
  let n3 = null, r3 = 1 / 0;
53973
- for (let e4, i3 = 0; (e4 = s4[i3]) !== void 0; i3++) {
54664
+ for (let e4, i3 = 0; void 0 !== (e4 = s4[i3]); i3++) {
53974
54665
  const s5 = N(t4, e4);
53975
54666
  s5 <= 3 && s5 < r3 && (r3 = s5, n3 = e4);
53976
54667
  }
@@ -53997,13 +54688,13 @@ ${t5.join("\n")}` : "";
53997
54688
  [Bt](t2, s2, i2, n2 = 0, r2 = false) {
53998
54689
  let o2 = !!i2 || r2;
53999
54690
  t2 = t2 || v(this, ht, "f"), v(this, et, "f").__ = v(this, ct, "f").y18n.__, v(this, et, "f").configuration = this[jt]();
54000
- const a2 = !!v(this, et, "f").configuration["populate--"], h2 = Object.assign({}, v(this, et, "f").configuration, { "populate--": true }), l2 = v(this, ct, "f").Parser.detailed(t2, Object.assign({}, v(this, et, "f"), { configuration: __spreadValues({ "parse-positional-numbers": false }, h2) })), c2 = Object.assign(l2.argv, v(this, rt, "f"));
54691
+ const a2 = !!v(this, et, "f").configuration["populate--"], h2 = Object.assign({}, v(this, et, "f").configuration, { "populate--": true }), l2 = v(this, ct, "f").Parser.detailed(t2, Object.assign({}, v(this, et, "f"), { configuration: { "parse-positional-numbers": false, ...h2 } })), c2 = Object.assign(l2.argv, v(this, rt, "f"));
54001
54692
  let d2;
54002
54693
  const u2 = l2.aliases;
54003
54694
  let p2 = false, g2 = false;
54004
54695
  Object.keys(c2).forEach((t3) => {
54005
54696
  t3 === v(this, Z, "f") && c2[t3] ? p2 = true : t3 === v(this, gt, "f") && c2[t3] && (g2 = true);
54006
- }), c2.$0 = this.$0, this.parsed = l2, n2 === 0 && v(this, pt, "f").clearCachedHelpMessage();
54697
+ }), c2.$0 = this.$0, this.parsed = l2, 0 === n2 && v(this, pt, "f").clearCachedHelpMessage();
54007
54698
  try {
54008
54699
  if (this[_t](), s2)
54009
54700
  return this[Rt](c2, a2, !!i2, false);
@@ -54015,7 +54706,7 @@ ${t5.join("\n")}` : "";
54015
54706
  if (c2._.length) {
54016
54707
  if (h3.length) {
54017
54708
  let t3;
54018
- for (let e2, s3 = n2 || 0; c2._[s3] !== void 0; s3++) {
54709
+ for (let e2, s3 = n2 || 0; void 0 !== c2._[s3]; s3++) {
54019
54710
  if (e2 = String(c2._[s3]), h3.includes(e2) && e2 !== v(this, U, "f")) {
54020
54711
  const t4 = v(this, z, "f").runCommand(e2, this, l2, s3 + 1, r2, p2 || g2 || r2);
54021
54712
  return this[Rt](t4, a2, !!i2, false);
@@ -54044,12 +54735,12 @@ ${t5.join("\n")}` : "";
54044
54735
  }), this.exit(0);
54045
54736
  }), this[Rt](c2, !a2, !!i2, false);
54046
54737
  }
54047
- if (v(this, J, "f") || (p2 ? (v(this, T, "f") && E(true), o2 = true, this.showHelp("log"), this.exit(0)) : g2 && (v(this, T, "f") && E(true), o2 = true, v(this, pt, "f").showVersion("log"), this.exit(0))), !o2 && v(this, et, "f").skipValidation.length > 0 && (o2 = Object.keys(c2).some((t3) => v(this, et, "f").skipValidation.indexOf(t3) >= 0 && c2[t3] === true)), !o2) {
54738
+ if (v(this, J, "f") || (p2 ? (v(this, T, "f") && E(true), o2 = true, this.showHelp("log"), this.exit(0)) : g2 && (v(this, T, "f") && E(true), o2 = true, v(this, pt, "f").showVersion("log"), this.exit(0))), !o2 && v(this, et, "f").skipValidation.length > 0 && (o2 = Object.keys(c2).some((t3) => v(this, et, "f").skipValidation.indexOf(t3) >= 0 && true === c2[t3])), !o2) {
54048
54739
  if (l2.error)
54049
54740
  throw new e(l2.error.message);
54050
54741
  if (!m2) {
54051
54742
  const t3 = this[Yt](u2, {}, l2.error);
54052
- i2 || (d2 = C(c2, this, v(this, B, "f").getMiddleware(), true)), d2 = this[Nt](t3, d2 != null ? d2 : c2), f(d2) && !i2 && (d2 = d2.then(() => C(c2, this, v(this, B, "f").getMiddleware(), false)));
54743
+ i2 || (d2 = C(c2, this, v(this, B, "f").getMiddleware(), true)), d2 = this[Nt](t3, null != d2 ? d2 : c2), f(d2) && !i2 && (d2 = d2.then(() => C(c2, this, v(this, B, "f").getMiddleware(), false)));
54053
54744
  }
54054
54745
  }
54055
54746
  } catch (t3) {
@@ -54057,10 +54748,10 @@ ${t5.join("\n")}` : "";
54057
54748
  throw t3;
54058
54749
  v(this, pt, "f").fail(t3.message, t3);
54059
54750
  }
54060
- return this[Rt](d2 != null ? d2 : c2, a2, !!i2, true);
54751
+ return this[Rt](null != d2 ? d2 : c2, a2, !!i2, true);
54061
54752
  }
54062
54753
  [Yt](t2, s2, i2, n2) {
54063
- const r2 = __spreadValues({}, this.getDemandedOptions());
54754
+ const r2 = { ...this.getDemandedOptions() };
54064
54755
  return (o2) => {
54065
54756
  if (i2)
54066
54757
  throw new e(i2.message);
@@ -54073,7 +54764,7 @@ ${t5.join("\n")}` : "";
54073
54764
  O(this, J, true, "f");
54074
54765
  }
54075
54766
  [Zt](t2) {
54076
- if (typeof t2 == "string")
54767
+ if ("string" == typeof t2)
54077
54768
  v(this, et, "f").key[t2] = true;
54078
54769
  else
54079
54770
  for (const e2 of t2)
@@ -54088,10 +54779,10 @@ ${t5.join("\n")}` : "";
54088
54779
  var ne = require_build5();
54089
54780
  var re = require_build6();
54090
54781
  var oe;
54091
- var ae = { assert: { notStrictEqual: t.notStrictEqual, strictEqual: t.strictEqual }, cliui: require_build7(), findUp: require_sync7(), getEnv: (t2) => process.env[t2], getCallerFile: require_get_caller_file(), getProcessArgvBin: y, inspect: se, mainFilename: (te = (Qt = require === null || require === void 0 ? void 0 : require.main) === null || Qt === void 0 ? void 0 : Qt.filename) !== null && te !== void 0 ? te : process.cwd(), Parser: re, path: require("path"), process: { argv: () => process.argv, cwd: process.cwd, emitWarning: (t2, e2) => process.emitWarning(t2, e2), execPath: () => process.execPath, exit: (t2) => {
54782
+ var ae = { assert: { notStrictEqual: t.notStrictEqual, strictEqual: t.strictEqual }, cliui: require_build7(), findUp: require_sync7(), getEnv: (t2) => process.env[t2], getCallerFile: require_get_caller_file(), getProcessArgvBin: y, inspect: se, mainFilename: null !== (te = null === (Qt = null === require || void 0 === require ? void 0 : require.main) || void 0 === Qt ? void 0 : Qt.filename) && void 0 !== te ? te : process.cwd(), Parser: re, path: require("path"), process: { argv: () => process.argv, cwd: process.cwd, emitWarning: (t2, e2) => process.emitWarning(t2, e2), execPath: () => process.execPath, exit: (t2) => {
54092
54783
  process.exit(t2);
54093
- }, nextTick: process.nextTick, stdColumns: process.stdout.columns !== void 0 ? process.stdout.columns : null }, readFileSync: ee, require, requireDirectory: require_require_directory(), stringWidth: require_string_width(), y18n: ne({ directory: ie(__dirname, "../locales"), updateFiles: false }) };
54094
- var he = ((oe = process === null || process === void 0 ? void 0 : process.env) === null || oe === void 0 ? void 0 : oe.YARGS_MIN_NODE_VERSION) ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
54784
+ }, nextTick: process.nextTick, stdColumns: void 0 !== process.stdout.columns ? process.stdout.columns : null }, readFileSync: ee, require, requireDirectory: require_require_directory(), stringWidth: require_string_width(), y18n: ne({ directory: ie(__dirname, "../locales"), updateFiles: false }) };
54785
+ var he = (null === (oe = null === process || void 0 === process ? void 0 : process.env) || void 0 === oe ? void 0 : oe.YARGS_MIN_NODE_VERSION) ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
54095
54786
  if (process && process.version) {
54096
54787
  if (Number(process.version.match(/v([^.]+)/)[1]) < he)
54097
54788
  throw Error(`yargs supports a minimum Node.js version of ${he}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);
@@ -54243,7 +54934,10 @@ function diff(a, b, options = {}) {
54243
54934
  bAnnotation: "Modified",
54244
54935
  bColor: import_chalk2.default.green
54245
54936
  };
54246
- return (0, import_jest_diff.diff)(a, b, __spreadValues(__spreadValues({}, defaultOptions), options));
54937
+ return (0, import_jest_diff.diff)(a, b, {
54938
+ ...defaultOptions,
54939
+ ...options
54940
+ });
54247
54941
  }
54248
54942
 
54249
54943
  // src/hash.js
@@ -54334,11 +55028,11 @@ var Workspace = class {
54334
55028
  static create(workspace) {
54335
55029
  return new Workspace(workspace);
54336
55030
  }
54337
- constructor({ directory, name: name2, version: version2, dependencies: dependencies2 }) {
55031
+ constructor({ directory, name, version, dependencies }) {
54338
55032
  this.directory = directory;
54339
- this.name = name2;
54340
- this.version = version2;
54341
- this.dependencies = dependencies2;
55033
+ this.name = name;
55034
+ this.version = version;
55035
+ this.dependencies = dependencies;
54342
55036
  this.workspaces = /* @__PURE__ */ new Set();
54343
55037
  this.id = hash(this.directory);
54344
55038
  }
@@ -54377,35 +55071,42 @@ async function loadWorkspace(directory) {
54377
55071
  }
54378
55072
  const packageJson = await import_fs_extra.default.readJson(packageJsonPath);
54379
55073
  const types = ["dependencies", "devDependencies", "peerDependencies"];
54380
- const dependencies2 = [];
55074
+ const dependencies = [];
54381
55075
  for (const type of types) {
54382
55076
  if (!packageJson[type]) {
54383
55077
  continue;
54384
55078
  }
54385
- for (const [name2, version2] of Object.entries(packageJson[type])) {
54386
- dependencies2.push({
55079
+ for (const [name, version] of Object.entries(packageJson[type])) {
55080
+ dependencies.push({
54387
55081
  type,
54388
- name: name2,
54389
- version: version2
55082
+ name,
55083
+ version
54390
55084
  });
54391
55085
  }
54392
55086
  }
54393
55087
  if (packageJson.workspaces) {
54394
55088
  if (!Array.isArray(packageJson.workspaces) && !Array.isArray(packageJson.workspaces.packages)) {
54395
- throw new UpgradeError(`Invalid workspace configuration found at ${packageJsonPath}`);
55089
+ throw new UpgradeError(
55090
+ `Invalid workspace configuration found at ${packageJsonPath}`
55091
+ );
54396
55092
  }
54397
55093
  const patterns = Array.isArray(packageJson.workspaces) ? packageJson.workspaces : packageJson.workspaces.packages;
54398
- const children = await (0, import_fast_glob.default)(patterns.map((pattern) => `${pattern}/package.json`), {
54399
- cwd: directory
54400
- }).then((matches) => {
54401
- return Promise.all(matches.map((match) => {
54402
- return loadWorkspace(import_path.default.dirname(import_path.default.join(directory, match)));
54403
- }));
55094
+ const children = await (0, import_fast_glob.default)(
55095
+ patterns.map((pattern) => `${pattern}/package.json`),
55096
+ {
55097
+ cwd: directory
55098
+ }
55099
+ ).then((matches) => {
55100
+ return Promise.all(
55101
+ matches.map((match) => {
55102
+ return loadWorkspace(import_path.default.dirname(import_path.default.join(directory, match)));
55103
+ })
55104
+ );
54404
55105
  });
54405
55106
  return {
54406
55107
  type: "worktree",
54407
55108
  directory,
54408
- dependencies: dependencies2,
55109
+ dependencies,
54409
55110
  children,
54410
55111
  name: packageJson.name,
54411
55112
  version: packageJson.version
@@ -54414,7 +55115,7 @@ async function loadWorkspace(directory) {
54414
55115
  return {
54415
55116
  type: "workspace",
54416
55117
  directory,
54417
- dependencies: dependencies2,
55118
+ dependencies,
54418
55119
  name: packageJson.name,
54419
55120
  version: packageJson.version
54420
55121
  };
@@ -54447,53 +55148,58 @@ var _PackageJson = class {
54447
55148
  this.modified = (0, import_lodash.default)(this.original);
54448
55149
  this.changed = false;
54449
55150
  }
54450
- install({ name: name2, version: version2, type = "dependencies" }) {
55151
+ install({ name, version, type = "dependencies" }) {
54451
55152
  const exists = _PackageJson.dependencyTypes.find((type2) => {
54452
55153
  if (this.modified[type2]) {
54453
- return this.modified[type2][name2];
55154
+ return this.modified[type2][name];
54454
55155
  }
54455
55156
  return false;
54456
55157
  });
54457
55158
  if (exists) {
54458
- throw new UpgradeError(`The dependency \`${name2}\` alreadys exists and cannot be added`);
55159
+ throw new UpgradeError(
55160
+ `The dependency \`${name}\` alreadys exists and cannot be added`
55161
+ );
54459
55162
  }
54460
55163
  this.changed = true;
54461
55164
  if (!this.modified[type]) {
54462
55165
  this.modified[type] = {};
54463
55166
  }
54464
- this.modified[type][name2] = version2;
55167
+ this.modified[type][name] = version;
54465
55168
  }
54466
- update({ name: name2, version: version2 }) {
55169
+ update({ name, version }) {
54467
55170
  const type = _PackageJson.dependencyTypes.find((type2) => {
54468
- return this.modified[type2][name2];
55171
+ return this.modified[type2][name];
54469
55172
  });
54470
55173
  if (type) {
54471
55174
  this.changed = true;
54472
- this.modified[type][name2] = version2;
55175
+ this.modified[type][name] = version;
54473
55176
  } else {
54474
- throw new Error(`Unable to find dependency type for: \`${name2}\``);
55177
+ throw new Error(`Unable to find dependency type for: \`${name}\``);
54475
55178
  }
54476
55179
  }
54477
- uninstall({ name: name2 }) {
55180
+ uninstall({ name }) {
54478
55181
  const types = _PackageJson.dependencyTypes.filter((type) => {
54479
55182
  if (this.original[type]) {
54480
- return this.original[type][name2];
55183
+ return this.original[type][name];
54481
55184
  }
54482
55185
  return false;
54483
55186
  });
54484
55187
  if (types.length === 0) {
54485
- throw new Error(`Unable to find and remove dependency: \`${name2}\``);
55188
+ throw new Error(`Unable to find and remove dependency: \`${name}\``);
54486
55189
  }
54487
55190
  this.changed = true;
54488
55191
  for (const type of types) {
54489
- delete this.modified[type][name2];
55192
+ delete this.modified[type][name];
54490
55193
  }
54491
55194
  }
54492
55195
  getJSON() {
54493
55196
  return this.modified;
54494
55197
  }
54495
55198
  diff() {
54496
- return diff(JSON.stringify(this.original, null, 2), JSON.stringify(this.modified, null, 2));
55199
+ return diff(
55200
+ JSON.stringify(this.original, null, 2),
55201
+ JSON.stringify(this.modified, null, 2)
55202
+ );
54497
55203
  }
54498
55204
  };
54499
55205
  var PackageJson = _PackageJson;
@@ -54533,7 +55239,11 @@ async function upgrade(options, availableUpgrades = []) {
54533
55239
  logger.info("No upgrade selected");
54534
55240
  return;
54535
55241
  }
54536
- logger.verbose("running upgrade: %s for workspace: %s", upgrade2.name, workspace.directory);
55242
+ logger.verbose(
55243
+ "running upgrade: %s for workspace: %s",
55244
+ upgrade2.name,
55245
+ workspace.directory
55246
+ );
54537
55247
  const packageJson = await workspace.getPackageJson();
54538
55248
  for (const update of upgrade2.updates) {
54539
55249
  logger.verbose("applying updates for package: %s", update.package.name);
@@ -54567,9 +55277,10 @@ async function upgrade(options, availableUpgrades = []) {
54567
55277
  if (migrations && migrations.length > 0) {
54568
55278
  for (const migration of migrations) {
54569
55279
  logger.verbose("running migration: %s", migration.name);
54570
- await migration.migrate(__spreadProps(__spreadValues({}, options), {
55280
+ await migration.migrate({
55281
+ ...options,
54571
55282
  workspaceDir: workspace.directory
54572
- }));
55283
+ });
54573
55284
  }
54574
55285
  }
54575
55286
  }
@@ -54651,7 +55362,10 @@ async function migrate(options, upgrades2 = []) {
54651
55362
  return migration2.name === options.migration;
54652
55363
  });
54653
55364
  if (!migration) {
54654
- logger.error('Sorry, there is no migration with the name "%s"', options.migration);
55365
+ logger.error(
55366
+ 'Sorry, there is no migration with the name "%s"',
55367
+ options.migration
55368
+ );
54655
55369
  listMigrations(migrations);
54656
55370
  } else {
54657
55371
  await runMigration(migration, workspaces, options);
@@ -54669,8 +55383,12 @@ function listMigrations(migrations) {
54669
55383
  }
54670
55384
  async function runMigration(migration, workspaces, options) {
54671
55385
  const workspace = await getSelectedWorkspace2(workspaces);
54672
- logger.verbose("running migration: %s for workspace: %s", migration.name, workspace.directory);
54673
- await migration.migrate(__spreadProps(__spreadValues({}, options), { workspaceDir: workspace.directory }));
55386
+ logger.verbose(
55387
+ "running migration: %s for workspace: %s",
55388
+ migration.name,
55389
+ workspace.directory
55390
+ );
55391
+ await migration.migrate({ ...options, workspaceDir: workspace.directory });
54674
55392
  }
54675
55393
  async function getSelectedWorkspace2(workspaces) {
54676
55394
  if (workspaces.length === 1) {
@@ -54755,23 +55473,23 @@ async function run2(options) {
54755
55473
  // src/upgrades.js
54756
55474
  var TRANSFORM_DIR = import_path2.default.join(__dirname, "transforms");
54757
55475
  var Change = {
54758
- install({ name: name2, version: version2 }) {
55476
+ install({ name, version }) {
54759
55477
  return {
54760
55478
  type: "install",
54761
55479
  package: {
54762
- name: name2,
54763
- version: version2
55480
+ name,
55481
+ version
54764
55482
  }
54765
55483
  };
54766
55484
  },
54767
55485
  uninstall: {
54768
55486
  type: "uninstall"
54769
55487
  },
54770
- update({ version: version2 }) {
55488
+ update({ version }) {
54771
55489
  return {
54772
55490
  type: "update",
54773
55491
  package: {
54774
- version: version2
55492
+ version
54775
55493
  }
54776
55494
  };
54777
55495
  }
@@ -54854,7 +55572,10 @@ var upgrades = [
54854
55572
  name: "icons-react-size-prop",
54855
55573
  description: "Update imports and size usage for @carbon/icons-react",
54856
55574
  migrate: async (options) => {
54857
- const transform = import_path2.default.join(TRANSFORM_DIR, "icons-react-size-prop.js");
55575
+ const transform = import_path2.default.join(
55576
+ TRANSFORM_DIR,
55577
+ "icons-react-size-prop.js"
55578
+ );
54858
55579
  const paths = Array.isArray(options.paths) && options.paths.length > 0 ? options.paths : await (0, import_fast_glob2.default)(["**/*.js", "**/*.jsx"], {
54859
55580
  cwd: options.workspaceDir,
54860
55581
  ignore: [
@@ -54877,7 +55598,10 @@ var upgrades = [
54877
55598
  name: "update-carbon-components-react-import-to-scoped",
54878
55599
  description: "Rewrites imports from `carbon-components-react` to `@carbon/react`",
54879
55600
  migrate: async (options) => {
54880
- const transform = import_path2.default.join(TRANSFORM_DIR, "update-carbon-components-react-import-to-scoped.js");
55601
+ const transform = import_path2.default.join(
55602
+ TRANSFORM_DIR,
55603
+ "update-carbon-components-react-import-to-scoped.js"
55604
+ );
54881
55605
  const paths = Array.isArray(options.paths) && options.paths.length > 0 ? options.paths : await (0, import_fast_glob2.default)(["**/*.js", "**/*.jsx"], {
54882
55606
  cwd: options.workspaceDir,
54883
55607
  ignore: [
@@ -54920,78 +55644,65 @@ var upgrades = [
54920
55644
  ];
54921
55645
 
54922
55646
  // package.json
54923
- var name = "@carbon/upgrade";
54924
- var description = "A tool for upgrading Carbon versions";
54925
- var version = "11.2.0";
54926
- var license = "Apache-2.0";
54927
- var bin = {
54928
- "carbon-upgrade": "./bin/carbon-upgrade.js"
54929
- };
54930
- var repository = {
54931
- type: "git",
54932
- url: "https://github.com/carbon-design-system/carbon.git",
54933
- directory: "packages/upgrade"
54934
- };
54935
- var bugs = "https://github.com/carbon-design-system/carbon/issues";
54936
- var files = [
54937
- "bin",
54938
- "cli.js",
54939
- "transforms"
54940
- ];
54941
- var keywords = [
54942
- "carbon",
54943
- "carbon-addons",
54944
- "carbon-components",
54945
- "carbon-components-react",
54946
- "carbon-design-system",
54947
- "ibm",
54948
- "components",
54949
- "react"
54950
- ];
54951
- var publishConfig = {
54952
- access: "public"
54953
- };
54954
- var scripts = {
54955
- build: "esbuild src/cli.js --bundle --platform=node --outfile=cli.js --target=node14 --external:jscodeshift",
54956
- clean: "rimraf cli.js",
54957
- watch: "yarn build --watch"
54958
- };
54959
- var devDependencies = {
54960
- chalk: "^4.1.1",
54961
- "change-case": "^4.1.2",
54962
- esbuild: "^0.14.10",
54963
- execa: "^5.1.1",
54964
- "fast-glob": "^3.2.11",
54965
- "fs-extra": "^10.0.0",
54966
- inquirer: "^8.1.0",
54967
- "is-git-clean": "^1.1.0",
54968
- "jest-diff": "^28.1.0",
54969
- "lodash.clonedeep": "^4.5.0",
54970
- "lodash.merge": "^4.6.2",
54971
- memfs: "^3.4.0",
54972
- nanoid: "^3.1.30",
54973
- "npm-which": "^3.0.1",
54974
- rimraf: "^3.0.2",
54975
- semver: "^7.3.5",
54976
- yargs: "^17.0.1"
54977
- };
54978
- var dependencies = {
54979
- jscodeshift: "^0.13.1"
54980
- };
54981
55647
  var package_default = {
54982
- name,
54983
- description,
54984
- version,
54985
- license,
54986
- bin,
54987
- repository,
54988
- bugs,
54989
- files,
54990
- keywords,
54991
- publishConfig,
54992
- scripts,
54993
- devDependencies,
54994
- dependencies
55648
+ name: "@carbon/upgrade",
55649
+ description: "A tool for upgrading Carbon versions",
55650
+ version: "11.3.0-rc.0",
55651
+ license: "Apache-2.0",
55652
+ bin: {
55653
+ "carbon-upgrade": "./bin/carbon-upgrade.js"
55654
+ },
55655
+ repository: {
55656
+ type: "git",
55657
+ url: "https://github.com/carbon-design-system/carbon.git",
55658
+ directory: "packages/upgrade"
55659
+ },
55660
+ bugs: "https://github.com/carbon-design-system/carbon/issues",
55661
+ files: [
55662
+ "bin",
55663
+ "cli.js",
55664
+ "transforms"
55665
+ ],
55666
+ keywords: [
55667
+ "carbon",
55668
+ "carbon-addons",
55669
+ "carbon-components",
55670
+ "carbon-components-react",
55671
+ "carbon-design-system",
55672
+ "ibm",
55673
+ "components",
55674
+ "react"
55675
+ ],
55676
+ publishConfig: {
55677
+ access: "public"
55678
+ },
55679
+ scripts: {
55680
+ build: "esbuild src/cli.js --bundle --platform=node --outfile=cli.js --target=node14 --external:jscodeshift",
55681
+ clean: "rimraf cli.js",
55682
+ watch: "yarn build --watch"
55683
+ },
55684
+ devDependencies: {
55685
+ chalk: "^4.1.1",
55686
+ "change-case": "^4.1.2",
55687
+ esbuild: "^0.15.0",
55688
+ execa: "^5.1.1",
55689
+ "fast-glob": "^3.2.11",
55690
+ "fs-extra": "^10.0.0",
55691
+ inquirer: "^8.1.0",
55692
+ "is-git-clean": "^1.1.0",
55693
+ "jest-diff": "^28.1.0",
55694
+ "lodash.clonedeep": "^4.5.0",
55695
+ "lodash.merge": "^4.6.2",
55696
+ memfs: "^3.4.0",
55697
+ nanoid: "^3.1.30",
55698
+ "npm-which": "^3.0.1",
55699
+ rimraf: "^3.0.2",
55700
+ semver: "^7.3.5",
55701
+ yargs: "^17.0.1"
55702
+ },
55703
+ dependencies: {
55704
+ jscodeshift: "^0.13.1"
55705
+ }
54995
55706
  };
54996
55707
 
54997
55708
  // src/cli.js
@@ -55013,32 +55724,47 @@ async function main({ argv, cwd }) {
55013
55724
  describe: "optionally include additional logs, useful for debugging",
55014
55725
  type: "boolean"
55015
55726
  });
55016
- cli.usage("Usage: $0 [options]").command(["upgrade", "$0"], "upgrade your project", {}, run3(async (args) => {
55017
- const { verbose, write } = args;
55018
- const options = {
55019
- cwd: cwd(),
55020
- verbose,
55021
- write
55022
- };
55023
- await upgrade(options, upgrades);
55024
- }));
55025
- cli.command("migrate <migration> [paths...]", "run a Carbon migration on your source files", async (cli2) => {
55026
- cli2.command("list", "list all migrations", {}, run3(async (args) => {
55027
- const { verbose } = args;
55028
- const options = { cwd: cwd(), verbose, list: true };
55727
+ cli.usage("Usage: $0 [options]").command(
55728
+ ["upgrade", "$0"],
55729
+ "upgrade your project",
55730
+ {},
55731
+ run3(async (args) => {
55732
+ const { verbose, write } = args;
55733
+ const options = {
55734
+ cwd: cwd(),
55735
+ verbose,
55736
+ write
55737
+ };
55738
+ await upgrade(options, upgrades);
55739
+ })
55740
+ );
55741
+ cli.command(
55742
+ "migrate <migration> [paths...]",
55743
+ "run a Carbon migration on your source files",
55744
+ async (cli2) => {
55745
+ cli2.command(
55746
+ "list",
55747
+ "list all migrations",
55748
+ {},
55749
+ run3(async (args) => {
55750
+ const { verbose } = args;
55751
+ const options = { cwd: cwd(), verbose, list: true };
55752
+ await migrate(options, upgrades);
55753
+ }, true)
55754
+ );
55755
+ },
55756
+ run3(async (args) => {
55757
+ const { verbose, migration, write, paths } = args;
55758
+ const options = {
55759
+ cwd: cwd(),
55760
+ verbose,
55761
+ write,
55762
+ migration,
55763
+ paths
55764
+ };
55029
55765
  await migrate(options, upgrades);
55030
- }, true));
55031
- }, run3(async (args) => {
55032
- const { verbose, migration, write, paths } = args;
55033
- const options = {
55034
- cwd: cwd(),
55035
- verbose,
55036
- write,
55037
- migration,
55038
- paths
55039
- };
55040
- await migrate(options, upgrades);
55041
- }));
55766
+ })
55767
+ );
55042
55768
  cli.strict().parse(argv.slice(2));
55043
55769
  }
55044
55770
  function run3(command, ignoreSafetyChecks = false) {
@@ -55056,8 +55782,13 @@ function run3(command, ignoreSafetyChecks = false) {
55056
55782
  }
55057
55783
  }
55058
55784
  if (!ignoreSafetyChecks && !clean && args.force !== true) {
55059
- logger.log(import_chalk3.default.yellow("[warning]"), "It appears that you have untracked changes in your project. Before we continue, please stash or commit your changes to git.");
55060
- logger.log("\nYou may use the --force flag to override this safety check.");
55785
+ logger.log(
55786
+ import_chalk3.default.yellow("[warning]"),
55787
+ "It appears that you have untracked changes in your project. Before we continue, please stash or commit your changes to git."
55788
+ );
55789
+ logger.log(
55790
+ "\nYou may use the --force flag to override this safety check."
55791
+ );
55061
55792
  process.exit(1);
55062
55793
  }
55063
55794
  try {