@settlemint/sdk-cli 2.6.4-pr396848ad → 2.6.4-pr4384f485

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/dist/cli.js +1382 -1360
  2. package/dist/cli.js.map +23 -22
  3. package/package.json +7 -7
package/dist/cli.js CHANGED
@@ -3546,126 +3546,6 @@ var require_wrap_ansi = __commonJS((exports, module) => {
3546
3546
  };
3547
3547
  });
3548
3548
 
3549
- // ../../node_modules/.bun/mute-stream@2.0.0/node_modules/mute-stream/lib/index.js
3550
- var require_lib = __commonJS((exports, module) => {
3551
- var Stream = __require("stream");
3552
-
3553
- class MuteStream extends Stream {
3554
- #isTTY = null;
3555
- constructor(opts = {}) {
3556
- super(opts);
3557
- this.writable = this.readable = true;
3558
- this.muted = false;
3559
- this.on("pipe", this._onpipe);
3560
- this.replace = opts.replace;
3561
- this._prompt = opts.prompt || null;
3562
- this._hadControl = false;
3563
- }
3564
- #destSrc(key, def) {
3565
- if (this._dest) {
3566
- return this._dest[key];
3567
- }
3568
- if (this._src) {
3569
- return this._src[key];
3570
- }
3571
- return def;
3572
- }
3573
- #proxy(method, ...args) {
3574
- if (typeof this._dest?.[method] === "function") {
3575
- this._dest[method](...args);
3576
- }
3577
- if (typeof this._src?.[method] === "function") {
3578
- this._src[method](...args);
3579
- }
3580
- }
3581
- get isTTY() {
3582
- if (this.#isTTY !== null) {
3583
- return this.#isTTY;
3584
- }
3585
- return this.#destSrc("isTTY", false);
3586
- }
3587
- set isTTY(val) {
3588
- this.#isTTY = val;
3589
- }
3590
- get rows() {
3591
- return this.#destSrc("rows");
3592
- }
3593
- get columns() {
3594
- return this.#destSrc("columns");
3595
- }
3596
- mute() {
3597
- this.muted = true;
3598
- }
3599
- unmute() {
3600
- this.muted = false;
3601
- }
3602
- _onpipe(src) {
3603
- this._src = src;
3604
- }
3605
- pipe(dest, options) {
3606
- this._dest = dest;
3607
- return super.pipe(dest, options);
3608
- }
3609
- pause() {
3610
- if (this._src) {
3611
- return this._src.pause();
3612
- }
3613
- }
3614
- resume() {
3615
- if (this._src) {
3616
- return this._src.resume();
3617
- }
3618
- }
3619
- write(c) {
3620
- if (this.muted) {
3621
- if (!this.replace) {
3622
- return true;
3623
- }
3624
- if (c.match(/^\u001b/)) {
3625
- if (c.indexOf(this._prompt) === 0) {
3626
- c = c.slice(this._prompt.length);
3627
- c = c.replace(/./g, this.replace);
3628
- c = this._prompt + c;
3629
- }
3630
- this._hadControl = true;
3631
- return this.emit("data", c);
3632
- } else {
3633
- if (this._prompt && this._hadControl && c.indexOf(this._prompt) === 0) {
3634
- this._hadControl = false;
3635
- this.emit("data", this._prompt);
3636
- c = c.slice(this._prompt.length);
3637
- }
3638
- c = c.toString().replace(/./g, this.replace);
3639
- }
3640
- }
3641
- this.emit("data", c);
3642
- }
3643
- end(c) {
3644
- if (this.muted) {
3645
- if (c && this.replace) {
3646
- c = c.toString().replace(/./g, this.replace);
3647
- } else {
3648
- c = null;
3649
- }
3650
- }
3651
- if (c) {
3652
- this.emit("data", c);
3653
- }
3654
- this.emit("end");
3655
- }
3656
- destroy(...args) {
3657
- return this.#proxy("destroy", ...args);
3658
- }
3659
- destroySoon(...args) {
3660
- return this.#proxy("destroySoon", ...args);
3661
- }
3662
- close(...args) {
3663
- return this.#proxy("close", ...args);
3664
- }
3665
- }
3666
- module.exports = MuteStream;
3667
- });
3668
-
3669
3549
  // ../../node_modules/.bun/console-table-printer@2.14.6/node_modules/console-table-printer/dist/src/utils/colored-console-line.js
3670
3550
  var require_colored_console_line = __commonJS((exports) => {
3671
3551
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -13359,9 +13239,9 @@ var require_run = __commonJS((exports, module) => {
13359
13239
  row.type = TYPE_ENV;
13360
13240
  row.string = env2;
13361
13241
  try {
13362
- const { parsed, errors: errors4, injected, preExisted } = new Parse(env2, null, this.processEnv, this.overload).run();
13242
+ const { parsed, errors: errors3, injected, preExisted } = new Parse(env2, null, this.processEnv, this.overload).run();
13363
13243
  row.parsed = parsed;
13364
- row.errors = errors4;
13244
+ row.errors = errors3;
13365
13245
  row.injected = injected;
13366
13246
  row.preExisted = preExisted;
13367
13247
  this.inject(row.parsed);
@@ -13385,12 +13265,12 @@ var require_run = __commonJS((exports, module) => {
13385
13265
  this.readableFilepaths.add(envFilepath);
13386
13266
  const privateKey = findPrivateKey(envFilepath, this.envKeysFilepath, this.opsOn);
13387
13267
  const privateKeyName = guessPrivateKeyName(envFilepath);
13388
- const { parsed, errors: errors4, injected, preExisted } = new Parse(src, privateKey, this.processEnv, this.overload, privateKeyName).run();
13268
+ const { parsed, errors: errors3, injected, preExisted } = new Parse(src, privateKey, this.processEnv, this.overload, privateKeyName).run();
13389
13269
  row.privateKeyName = privateKeyName;
13390
13270
  row.privateKey = privateKey;
13391
13271
  row.src = src;
13392
13272
  row.parsed = parsed;
13393
- row.errors = errors4;
13273
+ row.errors = errors3;
13394
13274
  row.injected = injected;
13395
13275
  row.preExisted = preExisted;
13396
13276
  this.inject(row.parsed);
@@ -13441,9 +13321,9 @@ var require_run = __commonJS((exports, module) => {
13441
13321
  }
13442
13322
  }
13443
13323
  try {
13444
- const { parsed, errors: errors4, injected, preExisted } = new Parse(decrypted, null, this.processEnv, this.overload).run();
13324
+ const { parsed, errors: errors3, injected, preExisted } = new Parse(decrypted, null, this.processEnv, this.overload).run();
13445
13325
  row.parsed = parsed;
13446
- row.errors = errors4;
13326
+ row.errors = errors3;
13447
13327
  row.injected = injected;
13448
13328
  row.preExisted = preExisted;
13449
13329
  this.inject(row.parsed);
@@ -13840,10 +13720,10 @@ var require_get = __commonJS((exports, module) => {
13840
13720
  run() {
13841
13721
  const processEnv = { ...process.env };
13842
13722
  const { processedEnvs } = new Run(this.envs, this.overload, this.DOTENV_KEY, processEnv, this.envKeysFilepath).run();
13843
- const errors4 = [];
13723
+ const errors3 = [];
13844
13724
  for (const processedEnv of processedEnvs) {
13845
13725
  for (const error46 of processedEnv.errors) {
13846
- errors4.push(error46);
13726
+ errors3.push(error46);
13847
13727
  }
13848
13728
  }
13849
13729
  if (this.key) {
@@ -13851,12 +13731,12 @@ var require_get = __commonJS((exports, module) => {
13851
13731
  const value = processEnv[this.key];
13852
13732
  parsed[this.key] = value;
13853
13733
  if (value === undefined) {
13854
- errors4.push(new Errors({ key: this.key }).missingKey());
13734
+ errors3.push(new Errors({ key: this.key }).missingKey());
13855
13735
  }
13856
- return { parsed, errors: errors4 };
13736
+ return { parsed, errors: errors3 };
13857
13737
  } else {
13858
13738
  if (this.all) {
13859
- return { parsed: processEnv, errors: errors4 };
13739
+ return { parsed: processEnv, errors: errors3 };
13860
13740
  }
13861
13741
  const parsed = {};
13862
13742
  for (const processedEnv of processedEnvs) {
@@ -13866,7 +13746,7 @@ var require_get = __commonJS((exports, module) => {
13866
13746
  }
13867
13747
  }
13868
13748
  }
13869
- return { parsed, errors: errors4 };
13749
+ return { parsed, errors: errors3 };
13870
13750
  }
13871
13751
  }
13872
13752
  }
@@ -14619,8 +14499,8 @@ var require_main2 = __commonJS((exports, module) => {
14619
14499
  }
14620
14500
  const privateKey = options.privateKey || null;
14621
14501
  const overload = options.overload || options.override;
14622
- const { parsed, errors: errors4 } = new Parse(src, privateKey, processEnv, overload).run();
14623
- for (const error46 of errors4) {
14502
+ const { parsed, errors: errors3 } = new Parse(src, privateKey, processEnv, overload).run();
14503
+ for (const error46 of errors3) {
14624
14504
  logger.error(error46.message);
14625
14505
  if (error46.help) {
14626
14506
  logger.error(error46.help);
@@ -14687,8 +14567,8 @@ var require_main2 = __commonJS((exports, module) => {
14687
14567
  var get = function(key, options = {}) {
14688
14568
  const envs = buildEnvs(options);
14689
14569
  const ignore = options.ignore || [];
14690
- const { parsed, errors: errors4 } = new Get(key, envs, options.overload, process.env.DOTENV_KEY, options.all, options.envKeysFile).run();
14691
- for (const error46 of errors4 || []) {
14570
+ const { parsed, errors: errors3 } = new Get(key, envs, options.overload, process.env.DOTENV_KEY, options.all, options.envKeysFile).run();
14571
+ for (const error46 of errors3 || []) {
14692
14572
  if (ignore.includes(error46.code)) {
14693
14573
  continue;
14694
14574
  }
@@ -20012,14 +19892,14 @@ var require_validate = __commonJS((exports) => {
20012
19892
  validateRootTypes(context);
20013
19893
  validateDirectives(context);
20014
19894
  validateTypes(context);
20015
- const errors4 = context.getErrors();
20016
- schema.__validationErrors = errors4;
20017
- return errors4;
19895
+ const errors3 = context.getErrors();
19896
+ schema.__validationErrors = errors3;
19897
+ return errors3;
20018
19898
  }
20019
19899
  function assertValidSchema(schema) {
20020
- const errors4 = validateSchema(schema);
20021
- if (errors4.length !== 0) {
20022
- throw new Error(errors4.map((error46) => error46.message).join(`
19900
+ const errors3 = validateSchema(schema);
19901
+ if (errors3.length !== 0) {
19902
+ throw new Error(errors3.map((error46) => error46.message).join(`
20023
19903
 
20024
19904
  `));
20025
19905
  }
@@ -22236,25 +22116,25 @@ var require_values = __commonJS((exports) => {
22236
22116
  var _typeFromAST = require_typeFromAST();
22237
22117
  var _valueFromAST = require_valueFromAST();
22238
22118
  function getVariableValues(schema, varDefNodes, inputs, options) {
22239
- const errors4 = [];
22119
+ const errors3 = [];
22240
22120
  const maxErrors = options === null || options === undefined ? undefined : options.maxErrors;
22241
22121
  try {
22242
22122
  const coerced = coerceVariableValues(schema, varDefNodes, inputs, (error46) => {
22243
- if (maxErrors != null && errors4.length >= maxErrors) {
22123
+ if (maxErrors != null && errors3.length >= maxErrors) {
22244
22124
  throw new _GraphQLError.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");
22245
22125
  }
22246
- errors4.push(error46);
22126
+ errors3.push(error46);
22247
22127
  });
22248
- if (errors4.length === 0) {
22128
+ if (errors3.length === 0) {
22249
22129
  return {
22250
22130
  coerced
22251
22131
  };
22252
22132
  }
22253
22133
  } catch (error46) {
22254
- errors4.push(error46);
22134
+ errors3.push(error46);
22255
22135
  }
22256
22136
  return {
22257
- errors: errors4
22137
+ errors: errors3
22258
22138
  };
22259
22139
  }
22260
22140
  function coerceVariableValues(schema, varDefNodes, inputs, onError) {
@@ -23503,13 +23383,13 @@ var require_validate2 = __commonJS((exports) => {
23503
23383
  documentAST || (0, _devAssert.devAssert)(false, "Must provide document.");
23504
23384
  (0, _validate.assertValidSchema)(schema);
23505
23385
  const abortObj = Object.freeze({});
23506
- const errors4 = [];
23386
+ const errors3 = [];
23507
23387
  const context = new _ValidationContext.ValidationContext(schema, documentAST, typeInfo, (error46) => {
23508
- if (errors4.length >= maxErrors) {
23509
- errors4.push(new _GraphQLError.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));
23388
+ if (errors3.length >= maxErrors) {
23389
+ errors3.push(new _GraphQLError.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));
23510
23390
  throw abortObj;
23511
23391
  }
23512
- errors4.push(error46);
23392
+ errors3.push(error46);
23513
23393
  });
23514
23394
  const visitor = (0, _visitor.visitInParallel)(rules.map((rule) => rule(context)));
23515
23395
  try {
@@ -23519,29 +23399,29 @@ var require_validate2 = __commonJS((exports) => {
23519
23399
  throw e;
23520
23400
  }
23521
23401
  }
23522
- return errors4;
23402
+ return errors3;
23523
23403
  }
23524
23404
  function validateSDL(documentAST, schemaToExtend, rules = _specifiedRules.specifiedSDLRules) {
23525
- const errors4 = [];
23405
+ const errors3 = [];
23526
23406
  const context = new _ValidationContext.SDLValidationContext(documentAST, schemaToExtend, (error46) => {
23527
- errors4.push(error46);
23407
+ errors3.push(error46);
23528
23408
  });
23529
23409
  const visitors = rules.map((rule) => rule(context));
23530
23410
  (0, _visitor.visit)(documentAST, (0, _visitor.visitInParallel)(visitors));
23531
- return errors4;
23411
+ return errors3;
23532
23412
  }
23533
23413
  function assertValidSDL(documentAST) {
23534
- const errors4 = validateSDL(documentAST);
23535
- if (errors4.length !== 0) {
23536
- throw new Error(errors4.map((error46) => error46.message).join(`
23414
+ const errors3 = validateSDL(documentAST);
23415
+ if (errors3.length !== 0) {
23416
+ throw new Error(errors3.map((error46) => error46.message).join(`
23537
23417
 
23538
23418
  `));
23539
23419
  }
23540
23420
  }
23541
23421
  function assertValidSDLExtension(documentAST, schema) {
23542
- const errors4 = validateSDL(documentAST, schema);
23543
- if (errors4.length !== 0) {
23544
- throw new Error(errors4.map((error46) => error46.message).join(`
23422
+ const errors3 = validateSDL(documentAST, schema);
23423
+ if (errors3.length !== 0) {
23424
+ throw new Error(errors3.map((error46) => error46.message).join(`
23545
23425
 
23546
23426
  `));
23547
23427
  }
@@ -23724,11 +23604,11 @@ var require_execute = __commonJS((exports) => {
23724
23604
  }
23725
23605
  return result;
23726
23606
  }
23727
- function buildResponse(data, errors4) {
23728
- return errors4.length === 0 ? {
23607
+ function buildResponse(data, errors3) {
23608
+ return errors3.length === 0 ? {
23729
23609
  data
23730
23610
  } : {
23731
- errors: errors4,
23611
+ errors: errors3,
23732
23612
  data
23733
23613
  };
23734
23614
  }
@@ -29039,7 +28919,7 @@ var require_graphql2 = __commonJS((exports) => {
29039
28919
  });
29040
28920
 
29041
28921
  // ../../node_modules/.bun/json-parse-even-better-errors@4.0.0/node_modules/json-parse-even-better-errors/lib/index.js
29042
- var require_lib2 = __commonJS((exports, module) => {
28922
+ var require_lib = __commonJS((exports, module) => {
29043
28923
  var INDENT = Symbol.for("indent");
29044
28924
  var NEWLINE = Symbol.for("newline");
29045
28925
  var DEFAULT_NEWLINE = `
@@ -29673,7 +29553,7 @@ var require_clean = __commonJS((exports, module) => {
29673
29553
  });
29674
29554
 
29675
29555
  // ../../node_modules/.bun/proc-log@5.0.0/node_modules/proc-log/lib/index.js
29676
- var require_lib3 = __commonJS((exports, module) => {
29556
+ var require_lib2 = __commonJS((exports, module) => {
29677
29557
  var META = Symbol("proc-log.meta");
29678
29558
  module.exports = {
29679
29559
  META,
@@ -31272,7 +31152,7 @@ var require_from_url = __commonJS((exports, module) => {
31272
31152
  });
31273
31153
 
31274
31154
  // ../../node_modules/.bun/hosted-git-info@9.0.1/node_modules/hosted-git-info/lib/index.js
31275
- var require_lib4 = __commonJS((exports, module) => {
31155
+ var require_lib3 = __commonJS((exports, module) => {
31276
31156
  var { LRUCache: LRUCache2 } = require_commonjs();
31277
31157
  var hosts = require_hosts();
31278
31158
  var fromUrl = require_from_url();
@@ -34781,7 +34661,7 @@ var require_commonjs6 = __commonJS((exports) => {
34781
34661
  const dirs = new Set;
34782
34662
  const queue = [entry];
34783
34663
  let processing = 0;
34784
- const process8 = () => {
34664
+ const process7 = () => {
34785
34665
  let paused = false;
34786
34666
  while (!paused) {
34787
34667
  const dir = queue.shift();
@@ -34822,9 +34702,9 @@ var require_commonjs6 = __commonJS((exports) => {
34822
34702
  }
34823
34703
  }
34824
34704
  if (paused && !results.flowing) {
34825
- results.once("drain", process8);
34705
+ results.once("drain", process7);
34826
34706
  } else if (!sync2) {
34827
- process8();
34707
+ process7();
34828
34708
  }
34829
34709
  };
34830
34710
  let sync2 = true;
@@ -34832,7 +34712,7 @@ var require_commonjs6 = __commonJS((exports) => {
34832
34712
  sync2 = false;
34833
34713
  }
34834
34714
  };
34835
- process8();
34715
+ process7();
34836
34716
  return results;
34837
34717
  }
34838
34718
  streamSync(entry = this.cwd, opts = {}) {
@@ -34850,7 +34730,7 @@ var require_commonjs6 = __commonJS((exports) => {
34850
34730
  }
34851
34731
  const queue = [entry];
34852
34732
  let processing = 0;
34853
- const process8 = () => {
34733
+ const process7 = () => {
34854
34734
  let paused = false;
34855
34735
  while (!paused) {
34856
34736
  const dir = queue.shift();
@@ -34884,9 +34764,9 @@ var require_commonjs6 = __commonJS((exports) => {
34884
34764
  }
34885
34765
  }
34886
34766
  if (paused && !results.flowing)
34887
- results.once("drain", process8);
34767
+ results.once("drain", process7);
34888
34768
  };
34889
- process8();
34769
+ process7();
34890
34770
  return results;
34891
34771
  }
34892
34772
  chdir(path5 = this.cwd) {
@@ -37380,7 +37260,7 @@ var require_validate_npm_package_license = __commonJS((exports, module) => {
37380
37260
  // ../../node_modules/.bun/@npmcli+package-json@7.0.1/node_modules/@npmcli/package-json/lib/normalize-data.js
37381
37261
  var require_normalize_data = __commonJS((exports, module) => {
37382
37262
  var { URL: URL2 } = __require("node:url");
37383
- var hostedGitInfo = require_lib4();
37263
+ var hostedGitInfo = require_lib3();
37384
37264
  var validateLicense = require_validate_npm_package_license();
37385
37265
  var typos = {
37386
37266
  dependancies: "dependencies",
@@ -37764,7 +37644,7 @@ var require_cjs = __commonJS((exports) => {
37764
37644
  });
37765
37645
 
37766
37646
  // ../../node_modules/.bun/which@5.0.0/node_modules/which/lib/index.js
37767
- var require_lib5 = __commonJS((exports, module) => {
37647
+ var require_lib4 = __commonJS((exports, module) => {
37768
37648
  var { isexe, sync: isexeSync } = require_cjs();
37769
37649
  var { join: join2, delimiter, sep: sep2, posix: posix2 } = __require("path");
37770
37650
  var isWindows2 = process.platform === "win32";
@@ -37901,10 +37781,10 @@ var require_escape2 = __commonJS((exports, module) => {
37901
37781
  });
37902
37782
 
37903
37783
  // ../../node_modules/.bun/@npmcli+promise-spawn@8.0.3/node_modules/@npmcli/promise-spawn/lib/index.js
37904
- var require_lib6 = __commonJS((exports, module) => {
37784
+ var require_lib5 = __commonJS((exports, module) => {
37905
37785
  var { spawn: spawn2 } = __require("child_process");
37906
37786
  var os = __require("os");
37907
- var which = require_lib5();
37787
+ var which = require_lib4();
37908
37788
  var escape3 = require_escape2();
37909
37789
  var promiseSpawn = (cmd, args, opts = {}, extra = {}) => {
37910
37790
  if (opts.shell) {
@@ -38684,7 +38564,7 @@ var require_opts = __commonJS((exports, module) => {
38684
38564
 
38685
38565
  // ../../node_modules/.bun/@npmcli+git@7.0.0/node_modules/@npmcli/git/lib/which.js
38686
38566
  var require_which = __commonJS((exports, module) => {
38687
- var which = require_lib5();
38567
+ var which = require_lib4();
38688
38568
  var gitPath;
38689
38569
  try {
38690
38570
  gitPath = which.sync("git");
@@ -38702,9 +38582,9 @@ var require_which = __commonJS((exports, module) => {
38702
38582
 
38703
38583
  // ../../node_modules/.bun/@npmcli+git@7.0.0/node_modules/@npmcli/git/lib/spawn.js
38704
38584
  var require_spawn = __commonJS((exports, module) => {
38705
- var spawn2 = require_lib6();
38585
+ var spawn2 = require_lib5();
38706
38586
  var promiseRetry = require_promise_retry();
38707
- var { log } = require_lib3();
38587
+ var { log } = require_lib2();
38708
38588
  var makeError = require_make_error();
38709
38589
  var makeOpts = require_opts();
38710
38590
  module.exports = (gitArgs, opts = {}) => {
@@ -40192,7 +40072,7 @@ var require_utils6 = __commonJS((exports) => {
40192
40072
  });
40193
40073
 
40194
40074
  // ../../node_modules/.bun/validate-npm-package-name@6.0.2/node_modules/validate-npm-package-name/lib/index.js
40195
- var require_lib7 = __commonJS((exports, module) => {
40075
+ var require_lib6 = __commonJS((exports, module) => {
40196
40076
  var { builtinModules: builtins } = __require("module");
40197
40077
  var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
40198
40078
  var exclusionList = [
@@ -40201,34 +40081,34 @@ var require_lib7 = __commonJS((exports, module) => {
40201
40081
  ];
40202
40082
  function validate3(name2) {
40203
40083
  var warnings = [];
40204
- var errors4 = [];
40084
+ var errors3 = [];
40205
40085
  if (name2 === null) {
40206
- errors4.push("name cannot be null");
40207
- return done(warnings, errors4);
40086
+ errors3.push("name cannot be null");
40087
+ return done(warnings, errors3);
40208
40088
  }
40209
40089
  if (name2 === undefined) {
40210
- errors4.push("name cannot be undefined");
40211
- return done(warnings, errors4);
40090
+ errors3.push("name cannot be undefined");
40091
+ return done(warnings, errors3);
40212
40092
  }
40213
40093
  if (typeof name2 !== "string") {
40214
- errors4.push("name must be a string");
40215
- return done(warnings, errors4);
40094
+ errors3.push("name must be a string");
40095
+ return done(warnings, errors3);
40216
40096
  }
40217
40097
  if (!name2.length) {
40218
- errors4.push("name length must be greater than zero");
40098
+ errors3.push("name length must be greater than zero");
40219
40099
  }
40220
40100
  if (name2.startsWith(".")) {
40221
- errors4.push("name cannot start with a period");
40101
+ errors3.push("name cannot start with a period");
40222
40102
  }
40223
40103
  if (name2.match(/^_/)) {
40224
- errors4.push("name cannot start with an underscore");
40104
+ errors3.push("name cannot start with an underscore");
40225
40105
  }
40226
40106
  if (name2.trim() !== name2) {
40227
- errors4.push("name cannot contain leading or trailing spaces");
40107
+ errors3.push("name cannot contain leading or trailing spaces");
40228
40108
  }
40229
40109
  exclusionList.forEach(function(excludedName) {
40230
40110
  if (name2.toLowerCase() === excludedName) {
40231
- errors4.push(excludedName + " is not a valid package name");
40111
+ errors3.push(excludedName + " is not a valid package name");
40232
40112
  }
40233
40113
  });
40234
40114
  if (builtins.includes(name2.toLowerCase())) {
@@ -40249,22 +40129,22 @@ var require_lib7 = __commonJS((exports, module) => {
40249
40129
  var user = nameMatch[1];
40250
40130
  var pkg = nameMatch[2];
40251
40131
  if (pkg.startsWith(".")) {
40252
- errors4.push("name cannot start with a period");
40132
+ errors3.push("name cannot start with a period");
40253
40133
  }
40254
40134
  if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
40255
- return done(warnings, errors4);
40135
+ return done(warnings, errors3);
40256
40136
  }
40257
40137
  }
40258
- errors4.push("name can only contain URL-friendly characters");
40138
+ errors3.push("name can only contain URL-friendly characters");
40259
40139
  }
40260
- return done(warnings, errors4);
40140
+ return done(warnings, errors3);
40261
40141
  }
40262
- var done = function(warnings, errors4) {
40142
+ var done = function(warnings, errors3) {
40263
40143
  var result = {
40264
- validForNewPackages: errors4.length === 0 && warnings.length === 0,
40265
- validForOldPackages: errors4.length === 0,
40144
+ validForNewPackages: errors3.length === 0 && warnings.length === 0,
40145
+ validForOldPackages: errors3.length === 0,
40266
40146
  warnings,
40267
- errors: errors4
40147
+ errors: errors3
40268
40148
  };
40269
40149
  if (!result.warnings.length) {
40270
40150
  delete result.warnings;
@@ -40283,10 +40163,10 @@ var require_npa = __commonJS((exports, module) => {
40283
40163
  var { URL: URL2 } = __require("node:url");
40284
40164
  var path5 = isWindows2 ? __require("node:path/win32") : __require("node:path");
40285
40165
  var { homedir } = __require("node:os");
40286
- var HostedGit = require_lib4();
40166
+ var HostedGit = require_lib3();
40287
40167
  var semver = require_semver2();
40288
- var validatePackageName = require_lib7();
40289
- var { log } = require_lib3();
40168
+ var validatePackageName = require_lib6();
40169
+ var { log } = require_lib2();
40290
40170
  var hasSlashes = isWindows2 ? /\\|[/]/ : /[/]/;
40291
40171
  var isURL = /^(?:git[+])?[a-z]+:/i;
40292
40172
  var isGit = /^[^@]+@[^:.]+\.[^:]+:.+$/i;
@@ -40672,17 +40552,17 @@ var require_npa = __commonJS((exports, module) => {
40672
40552
 
40673
40553
  // ../../node_modules/.bun/npm-install-checks@7.1.2/node_modules/npm-install-checks/lib/current-env.js
40674
40554
  var require_current_env = __commonJS((exports, module) => {
40675
- var process8 = __require("node:process");
40555
+ var process7 = __require("node:process");
40676
40556
  var nodeOs = __require("node:os");
40677
40557
  var fs3 = __require("node:fs");
40678
40558
  function isMusl(file2) {
40679
40559
  return file2.includes("libc.musl-") || file2.includes("ld-musl-");
40680
40560
  }
40681
40561
  function os() {
40682
- return process8.platform;
40562
+ return process7.platform;
40683
40563
  }
40684
40564
  function cpu() {
40685
- return process8.arch;
40565
+ return process7.arch;
40686
40566
  }
40687
40567
  var LDD_PATH = "/usr/bin/ldd";
40688
40568
  function getFamilyFromFilesystem() {
@@ -40700,10 +40580,10 @@ var require_current_env = __commonJS((exports, module) => {
40700
40580
  }
40701
40581
  }
40702
40582
  function getFamilyFromReport() {
40703
- const originalExclude = process8.report.excludeNetwork;
40704
- process8.report.excludeNetwork = true;
40705
- const report = process8.report.getReport();
40706
- process8.report.excludeNetwork = originalExclude;
40583
+ const originalExclude = process7.report.excludeNetwork;
40584
+ process7.report.excludeNetwork = true;
40585
+ const report = process7.report.getReport();
40586
+ process7.report.excludeNetwork = originalExclude;
40707
40587
  if (report.header?.glibcVersionRuntime) {
40708
40588
  family = "glibc";
40709
40589
  } else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
@@ -40745,7 +40625,7 @@ var require_current_env = __commonJS((exports, module) => {
40745
40625
  },
40746
40626
  runtime: {
40747
40627
  name: "node",
40748
- version: env2.nodeVersion || process8.version
40628
+ version: env2.nodeVersion || process7.version
40749
40629
  }
40750
40630
  };
40751
40631
  }
@@ -40830,7 +40710,7 @@ var require_dev_engines = __commonJS((exports, module) => {
40830
40710
  if (typeof wanted !== "object" || wanted === null || Array.isArray(wanted)) {
40831
40711
  throw new Error(`Invalid non-object value for "devEngines"`);
40832
40712
  }
40833
- const errors4 = [];
40713
+ const errors3 = [];
40834
40714
  for (const engine of Object.keys(wanted)) {
40835
40715
  if (!recognizedEngines.includes(engine)) {
40836
40716
  throw new Error(`Invalid property "devEngines.${engine}"`);
@@ -40863,10 +40743,10 @@ var require_dev_engines = __commonJS((exports, module) => {
40863
40743
  current: currentEngine,
40864
40744
  required: dependencyAsAuthored
40865
40745
  });
40866
- errors4.push(err);
40746
+ errors3.push(err);
40867
40747
  }
40868
40748
  }
40869
- return errors4;
40749
+ return errors3;
40870
40750
  }
40871
40751
  module.exports = {
40872
40752
  checkDevEngines
@@ -40874,7 +40754,7 @@ var require_dev_engines = __commonJS((exports, module) => {
40874
40754
  });
40875
40755
 
40876
40756
  // ../../node_modules/.bun/npm-install-checks@7.1.2/node_modules/npm-install-checks/lib/index.js
40877
- var require_lib8 = __commonJS((exports, module) => {
40757
+ var require_lib7 = __commonJS((exports, module) => {
40878
40758
  var semver = require_semver2();
40879
40759
  var currentEnv = require_current_env();
40880
40760
  var { checkDevEngines } = require_dev_engines();
@@ -40958,7 +40838,7 @@ var require_lib8 = __commonJS((exports, module) => {
40958
40838
  });
40959
40839
 
40960
40840
  // ../../node_modules/.bun/npm-normalize-package-bin@4.0.0/node_modules/npm-normalize-package-bin/lib/index.js
40961
- var require_lib9 = __commonJS((exports, module) => {
40841
+ var require_lib8 = __commonJS((exports, module) => {
40962
40842
  var { join: join2, basename } = __require("path");
40963
40843
  var normalize2 = (pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg);
40964
40844
  var normalizeString = (pkg) => {
@@ -41006,11 +40886,11 @@ var require_lib9 = __commonJS((exports, module) => {
41006
40886
  });
41007
40887
 
41008
40888
  // ../../node_modules/.bun/npm-pick-manifest@11.0.1/node_modules/npm-pick-manifest/lib/index.js
41009
- var require_lib10 = __commonJS((exports, module) => {
40889
+ var require_lib9 = __commonJS((exports, module) => {
41010
40890
  var npa = require_npa();
41011
40891
  var semver = require_semver2();
41012
- var { checkEngine } = require_lib8();
41013
- var normalizeBin = require_lib9();
40892
+ var { checkEngine } = require_lib7();
40893
+ var normalizeBin = require_lib8();
41014
40894
  var engineOk = (manifest, npmVersion, nodeVersion) => {
41015
40895
  try {
41016
40896
  checkEngine(manifest, npmVersion, nodeVersion);
@@ -41172,7 +41052,7 @@ var require_clone = __commonJS((exports, module) => {
41172
41052
  var getRevs = require_revs();
41173
41053
  var spawn2 = require_spawn();
41174
41054
  var { isWindows: isWindows2 } = require_utils6();
41175
- var pickManifest = require_lib10();
41055
+ var pickManifest = require_lib9();
41176
41056
  var fs3 = __require("fs/promises");
41177
41057
  module.exports = (repo, ref = "HEAD", target = null, opts = {}) => getRevs(repo, opts).then((revs) => clone2(repo, revs, ref, resolveRef(revs, ref, opts), target || defaultTarget(repo, opts.cwd), opts));
41178
41058
  var maybeShallow = (repo, opts) => {
@@ -41304,7 +41184,7 @@ var require_is_clean = __commonJS((exports, module) => {
41304
41184
  });
41305
41185
 
41306
41186
  // ../../node_modules/.bun/@npmcli+git@7.0.0/node_modules/@npmcli/git/lib/index.js
41307
- var require_lib11 = __commonJS((exports, module) => {
41187
+ var require_lib10 = __commonJS((exports, module) => {
41308
41188
  module.exports = {
41309
41189
  clone: require_clone(),
41310
41190
  revs: require_revs(),
@@ -41322,12 +41202,12 @@ var require_normalize = __commonJS((exports, module) => {
41322
41202
  var clean = require_clean();
41323
41203
  var fs3 = __require("node:fs/promises");
41324
41204
  var path5 = __require("node:path");
41325
- var { log } = require_lib3();
41205
+ var { log } = require_lib2();
41326
41206
  var moduleBuiltin = __require("node:module");
41327
41207
  var _hostedGitInfo;
41328
41208
  function lazyHostedGitInfo() {
41329
41209
  if (!_hostedGitInfo) {
41330
- _hostedGitInfo = require_lib4();
41210
+ _hostedGitInfo = require_lib3();
41331
41211
  }
41332
41212
  return _hostedGitInfo;
41333
41213
  }
@@ -41711,7 +41591,7 @@ var require_normalize = __commonJS((exports, module) => {
41711
41591
  normalizePackageBin(data, changes);
41712
41592
  }
41713
41593
  if (steps.includes("gitHead") && !data.gitHead) {
41714
- const git = require_lib11();
41594
+ const git = require_lib10();
41715
41595
  const gitRoot = await git.find({ cwd: pkg.path, root });
41716
41596
  let head;
41717
41597
  if (gitRoot) {
@@ -41794,7 +41674,7 @@ var require_normalize = __commonJS((exports, module) => {
41794
41674
  // ../../node_modules/.bun/@npmcli+package-json@7.0.1/node_modules/@npmcli/package-json/lib/read-package.js
41795
41675
  var require_read_package = __commonJS((exports, module) => {
41796
41676
  var { readFile: readFile2 } = __require("fs/promises");
41797
- var parseJSON = require_lib2();
41677
+ var parseJSON = require_lib();
41798
41678
  async function read(filename) {
41799
41679
  try {
41800
41680
  const data = await readFile2(filename, "utf8");
@@ -41921,10 +41801,10 @@ var require_sort2 = __commonJS((exports, module) => {
41921
41801
  });
41922
41802
 
41923
41803
  // ../../node_modules/.bun/@npmcli+package-json@7.0.1/node_modules/@npmcli/package-json/lib/index.js
41924
- var require_lib12 = __commonJS((exports, module) => {
41804
+ var require_lib11 = __commonJS((exports, module) => {
41925
41805
  var { readFile: readFile2, writeFile: writeFile2 } = __require("node:fs/promises");
41926
41806
  var { resolve: resolve2 } = __require("node:path");
41927
- var parseJSON = require_lib2();
41807
+ var parseJSON = require_lib();
41928
41808
  var updateDeps = require_update_dependencies();
41929
41809
  var updateScripts = require_update_scripts();
41930
41810
  var updateWorkspaces = require_update_workspaces();
@@ -50524,8 +50404,8 @@ m2: ${this.mapper2.__debugToString().split(`
50524
50404
  node.text = renderFlowNode(node.flowNode, node.circular);
50525
50405
  computeLevel(node);
50526
50406
  }
50527
- const height2 = computeHeight(root);
50528
- const columnWidths = computeColumnWidths(height2);
50407
+ const height = computeHeight(root);
50408
+ const columnWidths = computeColumnWidths(height);
50529
50409
  computeLanes(root, 0);
50530
50410
  return renderGraph();
50531
50411
  function isFlowSwitchClause(f) {
@@ -50609,14 +50489,14 @@ m2: ${this.mapper2.__debugToString().split(`
50609
50489
  return node.level = level;
50610
50490
  }
50611
50491
  function computeHeight(node) {
50612
- let height22 = 0;
50492
+ let height2 = 0;
50613
50493
  for (const child of getChildren(node)) {
50614
- height22 = Math.max(height22, computeHeight(child));
50494
+ height2 = Math.max(height2, computeHeight(child));
50615
50495
  }
50616
- return height22 + 1;
50496
+ return height2 + 1;
50617
50497
  }
50618
- function computeColumnWidths(height22) {
50619
- const columns = fill(Array(height22), 0);
50498
+ function computeColumnWidths(height2) {
50499
+ const columns = fill(Array(height2), 0);
50620
50500
  for (const node of nodes) {
50621
50501
  columns[node.level] = Math.max(columns[node.level], node.text.length);
50622
50502
  }
@@ -60441,19 +60321,19 @@ ${lanes.join(`
60441
60321
  return node.flags;
60442
60322
  }
60443
60323
  var supportedLocaleDirectories = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"];
60444
- function validateLocaleAndSetLanguage(locale, sys2, errors4) {
60324
+ function validateLocaleAndSetLanguage(locale, sys2, errors3) {
60445
60325
  const lowerCaseLocale = locale.toLowerCase();
60446
60326
  const matchResult = /^([a-z]+)(?:[_-]([a-z]+))?$/.exec(lowerCaseLocale);
60447
60327
  if (!matchResult) {
60448
- if (errors4) {
60449
- errors4.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp"));
60328
+ if (errors3) {
60329
+ errors3.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp"));
60450
60330
  }
60451
60331
  return;
60452
60332
  }
60453
60333
  const language = matchResult[1];
60454
60334
  const territory = matchResult[2];
60455
- if (contains(supportedLocaleDirectories, lowerCaseLocale) && !trySetLanguageAndTerritory(language, territory, errors4)) {
60456
- trySetLanguageAndTerritory(language, undefined, errors4);
60335
+ if (contains(supportedLocaleDirectories, lowerCaseLocale) && !trySetLanguageAndTerritory(language, territory, errors3)) {
60336
+ trySetLanguageAndTerritory(language, undefined, errors3);
60457
60337
  }
60458
60338
  setUILocale(locale);
60459
60339
  function trySetLanguageAndTerritory(language2, territory2, errors22) {
@@ -85296,16 +85176,16 @@ ${lanes.join(`
85296
85176
  const stringNames = (opt.deprecatedKeys ? namesOfType.filter((k) => !opt.deprecatedKeys.has(k)) : namesOfType).map((key) => `'${key}'`).join(", ");
85297
85177
  return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, stringNames);
85298
85178
  }
85299
- function parseCustomTypeOption(opt, value2, errors4) {
85300
- return convertJsonOptionOfCustomType(opt, (value2 ?? "").trim(), errors4);
85179
+ function parseCustomTypeOption(opt, value2, errors3) {
85180
+ return convertJsonOptionOfCustomType(opt, (value2 ?? "").trim(), errors3);
85301
85181
  }
85302
- function parseListTypeOption(opt, value2 = "", errors4) {
85182
+ function parseListTypeOption(opt, value2 = "", errors3) {
85303
85183
  value2 = value2.trim();
85304
85184
  if (startsWith(value2, "-")) {
85305
85185
  return;
85306
85186
  }
85307
85187
  if (opt.type === "listOrElement" && !value2.includes(",")) {
85308
- return validateJsonOptionValue(opt, value2, errors4);
85188
+ return validateJsonOptionValue(opt, value2, errors3);
85309
85189
  }
85310
85190
  if (value2 === "") {
85311
85191
  return [];
@@ -85313,14 +85193,14 @@ ${lanes.join(`
85313
85193
  const values = value2.split(",");
85314
85194
  switch (opt.element.type) {
85315
85195
  case "number":
85316
- return mapDefined(values, (v) => validateJsonOptionValue(opt.element, parseInt(v), errors4));
85196
+ return mapDefined(values, (v) => validateJsonOptionValue(opt.element, parseInt(v), errors3));
85317
85197
  case "string":
85318
- return mapDefined(values, (v) => validateJsonOptionValue(opt.element, v || "", errors4));
85198
+ return mapDefined(values, (v) => validateJsonOptionValue(opt.element, v || "", errors3));
85319
85199
  case "boolean":
85320
85200
  case "object":
85321
85201
  return Debug.fail(`List of ${opt.element.type} is not yet supported.`);
85322
85202
  default:
85323
- return mapDefined(values, (v) => parseCustomTypeOption(opt.element, v, errors4));
85203
+ return mapDefined(values, (v) => parseCustomTypeOption(opt.element, v, errors3));
85324
85204
  }
85325
85205
  }
85326
85206
  function getOptionName(option) {
@@ -85339,13 +85219,13 @@ ${lanes.join(`
85339
85219
  const options = {};
85340
85220
  let watchOptions;
85341
85221
  const fileNames = [];
85342
- const errors4 = [];
85222
+ const errors3 = [];
85343
85223
  parseStrings(commandLine);
85344
85224
  return {
85345
85225
  options,
85346
85226
  watchOptions,
85347
85227
  fileNames,
85348
- errors: errors4
85228
+ errors: errors3
85349
85229
  };
85350
85230
  function parseStrings(args) {
85351
85231
  let i2 = 0;
@@ -85358,13 +85238,13 @@ ${lanes.join(`
85358
85238
  const inputOptionName = s.slice(s.charCodeAt(1) === 45 ? 2 : 1);
85359
85239
  const opt = getOptionDeclarationFromName(diagnostics.getOptionsNameMap, inputOptionName, true);
85360
85240
  if (opt) {
85361
- i2 = parseOptionValue(args, i2, diagnostics, opt, options, errors4);
85241
+ i2 = parseOptionValue(args, i2, diagnostics, opt, options, errors3);
85362
85242
  } else {
85363
85243
  const watchOpt = getOptionDeclarationFromName(watchOptionsDidYouMeanDiagnostics.getOptionsNameMap, inputOptionName, true);
85364
85244
  if (watchOpt) {
85365
- i2 = parseOptionValue(args, i2, watchOptionsDidYouMeanDiagnostics, watchOpt, watchOptions || (watchOptions = {}), errors4);
85245
+ i2 = parseOptionValue(args, i2, watchOptionsDidYouMeanDiagnostics, watchOpt, watchOptions || (watchOptions = {}), errors3);
85366
85246
  } else {
85367
- errors4.push(createUnknownOptionError(inputOptionName, diagnostics, s));
85247
+ errors3.push(createUnknownOptionError(inputOptionName, diagnostics, s));
85368
85248
  }
85369
85249
  }
85370
85250
  } else {
@@ -85375,7 +85255,7 @@ ${lanes.join(`
85375
85255
  function parseResponseFile(fileName) {
85376
85256
  const text = tryReadFile(fileName, readFile5 || ((fileName2) => sys.readFile(fileName2)));
85377
85257
  if (!isString(text)) {
85378
- errors4.push(text);
85258
+ errors3.push(text);
85379
85259
  return;
85380
85260
  }
85381
85261
  const args = [];
@@ -85394,7 +85274,7 @@ ${lanes.join(`
85394
85274
  args.push(text.substring(start + 1, pos));
85395
85275
  pos++;
85396
85276
  } else {
85397
- errors4.push(createCompilerDiagnostic(Diagnostics.Unterminated_quoted_string_in_response_file_0, fileName));
85277
+ errors3.push(createCompilerDiagnostic(Diagnostics.Unterminated_quoted_string_in_response_file_0, fileName));
85398
85278
  }
85399
85279
  } else {
85400
85280
  while (text.charCodeAt(pos) > 32)
@@ -85405,7 +85285,7 @@ ${lanes.join(`
85405
85285
  parseStrings(args);
85406
85286
  }
85407
85287
  }
85408
- function parseOptionValue(args, i2, diagnostics, opt, options, errors4) {
85288
+ function parseOptionValue(args, i2, diagnostics, opt, options, errors3) {
85409
85289
  if (opt.isTSConfigOnly) {
85410
85290
  const optValue = args[i2];
85411
85291
  if (optValue === "null") {
@@ -85413,41 +85293,41 @@ ${lanes.join(`
85413
85293
  i2++;
85414
85294
  } else if (opt.type === "boolean") {
85415
85295
  if (optValue === "false") {
85416
- options[opt.name] = validateJsonOptionValue(opt, false, errors4);
85296
+ options[opt.name] = validateJsonOptionValue(opt, false, errors3);
85417
85297
  i2++;
85418
85298
  } else {
85419
85299
  if (optValue === "true")
85420
85300
  i2++;
85421
- errors4.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line, opt.name));
85301
+ errors3.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line, opt.name));
85422
85302
  }
85423
85303
  } else {
85424
- errors4.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line, opt.name));
85304
+ errors3.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line, opt.name));
85425
85305
  if (optValue && !startsWith(optValue, "-"))
85426
85306
  i2++;
85427
85307
  }
85428
85308
  } else {
85429
85309
  if (!args[i2] && opt.type !== "boolean") {
85430
- errors4.push(createCompilerDiagnostic(diagnostics.optionTypeMismatchDiagnostic, opt.name, getCompilerOptionValueTypeString(opt)));
85310
+ errors3.push(createCompilerDiagnostic(diagnostics.optionTypeMismatchDiagnostic, opt.name, getCompilerOptionValueTypeString(opt)));
85431
85311
  }
85432
85312
  if (args[i2] !== "null") {
85433
85313
  switch (opt.type) {
85434
85314
  case "number":
85435
- options[opt.name] = validateJsonOptionValue(opt, parseInt(args[i2]), errors4);
85315
+ options[opt.name] = validateJsonOptionValue(opt, parseInt(args[i2]), errors3);
85436
85316
  i2++;
85437
85317
  break;
85438
85318
  case "boolean":
85439
85319
  const optValue = args[i2];
85440
- options[opt.name] = validateJsonOptionValue(opt, optValue !== "false", errors4);
85320
+ options[opt.name] = validateJsonOptionValue(opt, optValue !== "false", errors3);
85441
85321
  if (optValue === "false" || optValue === "true") {
85442
85322
  i2++;
85443
85323
  }
85444
85324
  break;
85445
85325
  case "string":
85446
- options[opt.name] = validateJsonOptionValue(opt, args[i2] || "", errors4);
85326
+ options[opt.name] = validateJsonOptionValue(opt, args[i2] || "", errors3);
85447
85327
  i2++;
85448
85328
  break;
85449
85329
  case "list":
85450
- const result = parseListTypeOption(opt, args[i2], errors4);
85330
+ const result = parseListTypeOption(opt, args[i2], errors3);
85451
85331
  options[opt.name] = result || [];
85452
85332
  if (result) {
85453
85333
  i2++;
@@ -85457,7 +85337,7 @@ ${lanes.join(`
85457
85337
  Debug.fail("listOrElement not supported here");
85458
85338
  break;
85459
85339
  default:
85460
- options[opt.name] = parseCustomTypeOption(opt, args[i2], errors4);
85340
+ options[opt.name] = parseCustomTypeOption(opt, args[i2], errors3);
85461
85341
  i2++;
85462
85342
  break;
85463
85343
  }
@@ -85510,24 +85390,24 @@ ${lanes.join(`
85510
85390
  optionTypeMismatchDiagnostic: Diagnostics.Build_option_0_requires_a_value_of_type_1
85511
85391
  };
85512
85392
  function parseBuildCommand(commandLine) {
85513
- const { options, watchOptions, fileNames: projects, errors: errors4 } = parseCommandLineWorker(buildOptionsDidYouMeanDiagnostics, commandLine);
85393
+ const { options, watchOptions, fileNames: projects, errors: errors3 } = parseCommandLineWorker(buildOptionsDidYouMeanDiagnostics, commandLine);
85514
85394
  const buildOptions = options;
85515
85395
  if (projects.length === 0) {
85516
85396
  projects.push(".");
85517
85397
  }
85518
85398
  if (buildOptions.clean && buildOptions.force) {
85519
- errors4.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "force"));
85399
+ errors3.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "force"));
85520
85400
  }
85521
85401
  if (buildOptions.clean && buildOptions.verbose) {
85522
- errors4.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "verbose"));
85402
+ errors3.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "verbose"));
85523
85403
  }
85524
85404
  if (buildOptions.clean && buildOptions.watch) {
85525
- errors4.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "watch"));
85405
+ errors3.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "watch"));
85526
85406
  }
85527
85407
  if (buildOptions.watch && buildOptions.dry) {
85528
- errors4.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "watch", "dry"));
85408
+ errors3.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "watch", "dry"));
85529
85409
  }
85530
- return { buildOptions, watchOptions, projects, errors: errors4 };
85410
+ return { buildOptions, watchOptions, projects, errors: errors3 };
85531
85411
  }
85532
85412
  function getDiagnosticText(message, ...args) {
85533
85413
  return cast(createCompilerDiagnostic(message, ...args).messageText, isString);
@@ -85683,26 +85563,26 @@ ${lanes.join(`
85683
85563
  }
85684
85564
  return _tsconfigRootOptions;
85685
85565
  }
85686
- function convertConfigFileToObject(sourceFile, errors4, jsonConversionNotifier) {
85566
+ function convertConfigFileToObject(sourceFile, errors3, jsonConversionNotifier) {
85687
85567
  var _a;
85688
85568
  const rootExpression = (_a = sourceFile.statements[0]) == null ? undefined : _a.expression;
85689
85569
  if (rootExpression && rootExpression.kind !== 211) {
85690
- errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, rootExpression, Diagnostics.The_root_value_of_a_0_file_must_be_an_object, getBaseFileName(sourceFile.fileName) === "jsconfig.json" ? "jsconfig.json" : "tsconfig.json"));
85570
+ errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, rootExpression, Diagnostics.The_root_value_of_a_0_file_must_be_an_object, getBaseFileName(sourceFile.fileName) === "jsconfig.json" ? "jsconfig.json" : "tsconfig.json"));
85691
85571
  if (isArrayLiteralExpression(rootExpression)) {
85692
85572
  const firstObject = find(rootExpression.elements, isObjectLiteralExpression);
85693
85573
  if (firstObject) {
85694
- return convertToJson(sourceFile, firstObject, errors4, true, jsonConversionNotifier);
85574
+ return convertToJson(sourceFile, firstObject, errors3, true, jsonConversionNotifier);
85695
85575
  }
85696
85576
  }
85697
85577
  return {};
85698
85578
  }
85699
- return convertToJson(sourceFile, rootExpression, errors4, true, jsonConversionNotifier);
85579
+ return convertToJson(sourceFile, rootExpression, errors3, true, jsonConversionNotifier);
85700
85580
  }
85701
- function convertToObject(sourceFile, errors4) {
85581
+ function convertToObject(sourceFile, errors3) {
85702
85582
  var _a;
85703
- return convertToJson(sourceFile, (_a = sourceFile.statements[0]) == null ? undefined : _a.expression, errors4, true, undefined);
85583
+ return convertToJson(sourceFile, (_a = sourceFile.statements[0]) == null ? undefined : _a.expression, errors3, true, undefined);
85704
85584
  }
85705
- function convertToJson(sourceFile, rootExpression, errors4, returnValue, jsonConversionNotifier) {
85585
+ function convertToJson(sourceFile, rootExpression, errors3, returnValue, jsonConversionNotifier) {
85706
85586
  if (!rootExpression) {
85707
85587
  return returnValue ? {} : undefined;
85708
85588
  }
@@ -85712,14 +85592,14 @@ ${lanes.join(`
85712
85592
  const result = returnValue ? {} : undefined;
85713
85593
  for (const element of node.properties) {
85714
85594
  if (element.kind !== 304) {
85715
- errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected));
85595
+ errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected));
85716
85596
  continue;
85717
85597
  }
85718
85598
  if (element.questionToken) {
85719
- errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, element.questionToken, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?"));
85599
+ errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, element.questionToken, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?"));
85720
85600
  }
85721
85601
  if (!isDoubleQuotedString(element.name)) {
85722
- errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, element.name, Diagnostics.String_literal_with_double_quotes_expected));
85602
+ errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, element.name, Diagnostics.String_literal_with_double_quotes_expected));
85723
85603
  }
85724
85604
  const textOfKey = isComputedNonLiteralName(element.name) ? undefined : getTextOfPropertyName(element.name);
85725
85605
  const keyText = textOfKey && unescapeLeadingUnderscores(textOfKey);
@@ -85751,7 +85631,7 @@ ${lanes.join(`
85751
85631
  return null;
85752
85632
  case 11:
85753
85633
  if (!isDoubleQuotedString(valueExpression)) {
85754
- errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.String_literal_with_double_quotes_expected));
85634
+ errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.String_literal_with_double_quotes_expected));
85755
85635
  }
85756
85636
  return valueExpression.text;
85757
85637
  case 9:
@@ -85768,9 +85648,9 @@ ${lanes.join(`
85768
85648
  return convertArrayLiteralExpressionToJson(valueExpression.elements, option && option.element);
85769
85649
  }
85770
85650
  if (option) {
85771
- errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, option.name, getCompilerOptionValueTypeString(option)));
85651
+ errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, option.name, getCompilerOptionValueTypeString(option)));
85772
85652
  } else {
85773
- errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));
85653
+ errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));
85774
85654
  }
85775
85655
  return;
85776
85656
  }
@@ -86095,8 +85975,8 @@ ${lanes.join(`
86095
85975
  var defaultIncludeSpec = "**/*";
86096
85976
  function parseJsonConfigFileContentWorker(json2, sourceFile, host, basePath, existingOptions = {}, existingWatchOptions, configFileName, resolutionStack = [], extraFileExtensions = [], extendedConfigCache) {
86097
85977
  Debug.assert(json2 === undefined && sourceFile !== undefined || json2 !== undefined && sourceFile === undefined);
86098
- const errors4 = [];
86099
- const parsedConfig = parseConfig(json2, sourceFile, host, basePath, configFileName, resolutionStack, errors4, extendedConfigCache);
85978
+ const errors3 = [];
85979
+ const parsedConfig = parseConfig(json2, sourceFile, host, basePath, configFileName, resolutionStack, errors3, extendedConfigCache);
86100
85980
  const { raw } = parsedConfig;
86101
85981
  const options = handleOptionConfigDirTemplateSubstitution(extend2(existingOptions, parsedConfig.options || {}), configDirTemplateSubstitutionOptions, basePath);
86102
85982
  const watchOptions = handleWatchOptionsConfigDirTemplateSubstitution(existingWatchOptions && parsedConfig.watchOptions ? extend2(existingWatchOptions, parsedConfig.watchOptions) : parsedConfig.watchOptions || existingWatchOptions, basePath);
@@ -86113,7 +85993,7 @@ ${lanes.join(`
86113
85993
  projectReferences: getProjectReferences(basePathForFileNames),
86114
85994
  typeAcquisition: parsedConfig.typeAcquisition || getDefaultTypeAcquisition(),
86115
85995
  raw,
86116
- errors: errors4,
85996
+ errors: errors3,
86117
85997
  wildcardDirectories: getWildcardDirectories(configFileSpecs, basePathForFileNames, host.useCaseSensitiveFileNames),
86118
85998
  compileOnSave: !!raw.compileOnSave
86119
85999
  };
@@ -86129,7 +86009,7 @@ ${lanes.join(`
86129
86009
  const diagnosticMessage = Diagnostics.The_files_list_in_config_file_0_is_empty;
86130
86010
  const nodeValue = forEachTsConfigPropArray(sourceFile, "files", (property) => property.initializer);
86131
86011
  const error210 = createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, nodeValue, diagnosticMessage, fileName);
86132
- errors4.push(error210);
86012
+ errors3.push(error210);
86133
86013
  } else {
86134
86014
  createCompilerDiagnosticOnlyIfJson(Diagnostics.The_files_list_in_config_file_0_is_empty, configFileName || "tsconfig.json");
86135
86015
  }
@@ -86153,11 +86033,11 @@ ${lanes.join(`
86153
86033
  let validatedIncludeSpecsBeforeSubstitution, validatedExcludeSpecsBeforeSubstitution;
86154
86034
  let validatedIncludeSpecs, validatedExcludeSpecs;
86155
86035
  if (includeSpecs) {
86156
- validatedIncludeSpecsBeforeSubstitution = validateSpecs(includeSpecs, errors4, true, sourceFile, "include");
86036
+ validatedIncludeSpecsBeforeSubstitution = validateSpecs(includeSpecs, errors3, true, sourceFile, "include");
86157
86037
  validatedIncludeSpecs = getSubstitutedStringArrayWithConfigDirTemplate(validatedIncludeSpecsBeforeSubstitution, basePathForFileNames) || validatedIncludeSpecsBeforeSubstitution;
86158
86038
  }
86159
86039
  if (excludeSpecs) {
86160
- validatedExcludeSpecsBeforeSubstitution = validateSpecs(excludeSpecs, errors4, false, sourceFile, "exclude");
86040
+ validatedExcludeSpecsBeforeSubstitution = validateSpecs(excludeSpecs, errors3, false, sourceFile, "exclude");
86161
86041
  validatedExcludeSpecs = getSubstitutedStringArrayWithConfigDirTemplate(validatedExcludeSpecsBeforeSubstitution, basePathForFileNames) || validatedExcludeSpecsBeforeSubstitution;
86162
86042
  }
86163
86043
  const validatedFilesSpecBeforeSubstitution = filter2(filesSpecs, isString);
@@ -86178,7 +86058,7 @@ ${lanes.join(`
86178
86058
  function getFileNames(basePath2) {
86179
86059
  const fileNames = getFileNamesFromConfigSpecs(configFileSpecs, basePath2, options, host, extraFileExtensions);
86180
86060
  if (shouldReportNoInputFiles(fileNames, canJsonReportNoInputFiles(raw), resolutionStack)) {
86181
- errors4.push(getErrorForNoInputFiles(configFileSpecs, configFileName));
86061
+ errors3.push(getErrorForNoInputFiles(configFileSpecs, configFileName));
86182
86062
  }
86183
86063
  return fileNames;
86184
86064
  }
@@ -86212,7 +86092,7 @@ ${lanes.join(`
86212
86092
  if (isArray(raw[prop])) {
86213
86093
  const result = raw[prop];
86214
86094
  if (!sourceFile && !every(result, validateElement)) {
86215
- errors4.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, elementTypeName));
86095
+ errors3.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, elementTypeName));
86216
86096
  }
86217
86097
  return result;
86218
86098
  } else {
@@ -86224,7 +86104,7 @@ ${lanes.join(`
86224
86104
  }
86225
86105
  function createCompilerDiagnosticOnlyIfJson(message, ...args) {
86226
86106
  if (!sourceFile) {
86227
- errors4.push(createCompilerDiagnostic(message, ...args));
86107
+ errors3.push(createCompilerDiagnostic(message, ...args));
86228
86108
  }
86229
86109
  }
86230
86110
  }
@@ -86325,15 +86205,15 @@ ${lanes.join(`
86325
86205
  function isSuccessfulParsedTsconfig(value2) {
86326
86206
  return !!value2.options;
86327
86207
  }
86328
- function parseConfig(json2, sourceFile, host, basePath, configFileName, resolutionStack, errors4, extendedConfigCache) {
86208
+ function parseConfig(json2, sourceFile, host, basePath, configFileName, resolutionStack, errors3, extendedConfigCache) {
86329
86209
  var _a;
86330
86210
  basePath = normalizeSlashes(basePath);
86331
86211
  const resolvedPath = getNormalizedAbsolutePath(configFileName || "", basePath);
86332
86212
  if (resolutionStack.includes(resolvedPath)) {
86333
- errors4.push(createCompilerDiagnostic(Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0, [...resolutionStack, resolvedPath].join(" -> ")));
86334
- return { raw: json2 || convertToObject(sourceFile, errors4) };
86213
+ errors3.push(createCompilerDiagnostic(Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0, [...resolutionStack, resolvedPath].join(" -> ")));
86214
+ return { raw: json2 || convertToObject(sourceFile, errors3) };
86335
86215
  }
86336
- const ownConfig = json2 ? parseOwnConfigOfJson(json2, host, basePath, configFileName, errors4) : parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors4);
86216
+ const ownConfig = json2 ? parseOwnConfigOfJson(json2, host, basePath, configFileName, errors3) : parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors3);
86337
86217
  if ((_a = ownConfig.options) == null ? undefined : _a.paths) {
86338
86218
  ownConfig.options.pathsBasePath = basePath;
86339
86219
  }
@@ -86360,7 +86240,7 @@ ${lanes.join(`
86360
86240
  }
86361
86241
  return ownConfig;
86362
86242
  function applyExtendedConfig(result, extendedConfigPath) {
86363
- const extendedConfig = getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors4, extendedConfigCache, result);
86243
+ const extendedConfig = getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors3, extendedConfigCache, result);
86364
86244
  if (extendedConfig && isSuccessfulParsedTsconfig(extendedConfig)) {
86365
86245
  const extendsRaw = extendedConfig.raw;
86366
86246
  let relativeDifference;
@@ -86388,55 +86268,55 @@ ${lanes.join(`
86388
86268
  return assign({}, result.watchOptions, watchOptions);
86389
86269
  }
86390
86270
  }
86391
- function parseOwnConfigOfJson(json2, host, basePath, configFileName, errors4) {
86271
+ function parseOwnConfigOfJson(json2, host, basePath, configFileName, errors3) {
86392
86272
  if (hasProperty(json2, "excludes")) {
86393
- errors4.push(createCompilerDiagnostic(Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));
86273
+ errors3.push(createCompilerDiagnostic(Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));
86394
86274
  }
86395
- const options = convertCompilerOptionsFromJsonWorker(json2.compilerOptions, basePath, errors4, configFileName);
86396
- const typeAcquisition = convertTypeAcquisitionFromJsonWorker(json2.typeAcquisition, basePath, errors4, configFileName);
86397
- const watchOptions = convertWatchOptionsFromJsonWorker(json2.watchOptions, basePath, errors4);
86398
- json2.compileOnSave = convertCompileOnSaveOptionFromJson(json2, basePath, errors4);
86399
- const extendedConfigPath = json2.extends || json2.extends === "" ? getExtendsConfigPathOrArray(json2.extends, host, basePath, configFileName, errors4) : undefined;
86275
+ const options = convertCompilerOptionsFromJsonWorker(json2.compilerOptions, basePath, errors3, configFileName);
86276
+ const typeAcquisition = convertTypeAcquisitionFromJsonWorker(json2.typeAcquisition, basePath, errors3, configFileName);
86277
+ const watchOptions = convertWatchOptionsFromJsonWorker(json2.watchOptions, basePath, errors3);
86278
+ json2.compileOnSave = convertCompileOnSaveOptionFromJson(json2, basePath, errors3);
86279
+ const extendedConfigPath = json2.extends || json2.extends === "" ? getExtendsConfigPathOrArray(json2.extends, host, basePath, configFileName, errors3) : undefined;
86400
86280
  return { raw: json2, options, watchOptions, typeAcquisition, extendedConfigPath };
86401
86281
  }
86402
- function getExtendsConfigPathOrArray(value2, host, basePath, configFileName, errors4, propertyAssignment, valueExpression, sourceFile) {
86282
+ function getExtendsConfigPathOrArray(value2, host, basePath, configFileName, errors3, propertyAssignment, valueExpression, sourceFile) {
86403
86283
  let extendedConfigPath;
86404
86284
  const newBase = configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath;
86405
86285
  if (isString(value2)) {
86406
- extendedConfigPath = getExtendsConfigPath(value2, host, newBase, errors4, valueExpression, sourceFile);
86286
+ extendedConfigPath = getExtendsConfigPath(value2, host, newBase, errors3, valueExpression, sourceFile);
86407
86287
  } else if (isArray(value2)) {
86408
86288
  extendedConfigPath = [];
86409
86289
  for (let index = 0;index < value2.length; index++) {
86410
86290
  const fileName = value2[index];
86411
86291
  if (isString(fileName)) {
86412
- extendedConfigPath = append(extendedConfigPath, getExtendsConfigPath(fileName, host, newBase, errors4, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile));
86292
+ extendedConfigPath = append(extendedConfigPath, getExtendsConfigPath(fileName, host, newBase, errors3, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile));
86413
86293
  } else {
86414
- convertJsonOption(extendsOptionDeclaration.element, value2, basePath, errors4, propertyAssignment, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile);
86294
+ convertJsonOption(extendsOptionDeclaration.element, value2, basePath, errors3, propertyAssignment, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile);
86415
86295
  }
86416
86296
  }
86417
86297
  } else {
86418
- convertJsonOption(extendsOptionDeclaration, value2, basePath, errors4, propertyAssignment, valueExpression, sourceFile);
86298
+ convertJsonOption(extendsOptionDeclaration, value2, basePath, errors3, propertyAssignment, valueExpression, sourceFile);
86419
86299
  }
86420
86300
  return extendedConfigPath;
86421
86301
  }
86422
- function parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors4) {
86302
+ function parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors3) {
86423
86303
  const options = getDefaultCompilerOptions(configFileName);
86424
86304
  let typeAcquisition;
86425
86305
  let watchOptions;
86426
86306
  let extendedConfigPath;
86427
86307
  let rootCompilerOptions;
86428
86308
  const rootOptions = getTsconfigRootOptionsMap();
86429
- const json2 = convertConfigFileToObject(sourceFile, errors4, { rootOptions, onPropertySet });
86309
+ const json2 = convertConfigFileToObject(sourceFile, errors3, { rootOptions, onPropertySet });
86430
86310
  if (!typeAcquisition) {
86431
86311
  typeAcquisition = getDefaultTypeAcquisition(configFileName);
86432
86312
  }
86433
86313
  if (rootCompilerOptions && json2 && json2.compilerOptions === undefined) {
86434
- errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, rootCompilerOptions[0], Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file, getTextOfPropertyName(rootCompilerOptions[0])));
86314
+ errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, rootCompilerOptions[0], Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file, getTextOfPropertyName(rootCompilerOptions[0])));
86435
86315
  }
86436
86316
  return { raw: json2, options, watchOptions, typeAcquisition, extendedConfigPath };
86437
86317
  function onPropertySet(keyText, value2, propertyAssignment, parentOption, option) {
86438
86318
  if (option && option !== extendsOptionDeclaration)
86439
- value2 = convertJsonOption(option, value2, basePath, errors4, propertyAssignment, propertyAssignment.initializer, sourceFile);
86319
+ value2 = convertJsonOption(option, value2, basePath, errors3, propertyAssignment, propertyAssignment.initializer, sourceFile);
86440
86320
  if (parentOption == null ? undefined : parentOption.name) {
86441
86321
  if (option) {
86442
86322
  let currentOption;
@@ -86451,17 +86331,17 @@ ${lanes.join(`
86451
86331
  currentOption[option.name] = value2;
86452
86332
  } else if (keyText && (parentOption == null ? undefined : parentOption.extraKeyDiagnostics)) {
86453
86333
  if (parentOption.elementOptions) {
86454
- errors4.push(createUnknownOptionError(keyText, parentOption.extraKeyDiagnostics, undefined, propertyAssignment.name, sourceFile));
86334
+ errors3.push(createUnknownOptionError(keyText, parentOption.extraKeyDiagnostics, undefined, propertyAssignment.name, sourceFile));
86455
86335
  } else {
86456
- errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, parentOption.extraKeyDiagnostics.unknownOptionDiagnostic, keyText));
86336
+ errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, parentOption.extraKeyDiagnostics.unknownOptionDiagnostic, keyText));
86457
86337
  }
86458
86338
  }
86459
86339
  } else if (parentOption === rootOptions) {
86460
86340
  if (option === extendsOptionDeclaration) {
86461
- extendedConfigPath = getExtendsConfigPathOrArray(value2, host, basePath, configFileName, errors4, propertyAssignment, propertyAssignment.initializer, sourceFile);
86341
+ extendedConfigPath = getExtendsConfigPathOrArray(value2, host, basePath, configFileName, errors3, propertyAssignment, propertyAssignment.initializer, sourceFile);
86462
86342
  } else if (!option) {
86463
86343
  if (keyText === "excludes") {
86464
- errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));
86344
+ errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));
86465
86345
  }
86466
86346
  if (find(commandOptionsWithoutBuild, (opt) => opt.name === keyText)) {
86467
86347
  rootCompilerOptions = append(rootCompilerOptions, propertyAssignment.name);
@@ -86470,14 +86350,14 @@ ${lanes.join(`
86470
86350
  }
86471
86351
  }
86472
86352
  }
86473
- function getExtendsConfigPath(extendedConfig, host, basePath, errors4, valueExpression, sourceFile) {
86353
+ function getExtendsConfigPath(extendedConfig, host, basePath, errors3, valueExpression, sourceFile) {
86474
86354
  extendedConfig = normalizeSlashes(extendedConfig);
86475
86355
  if (isRootedDiskPath(extendedConfig) || startsWith(extendedConfig, "./") || startsWith(extendedConfig, "../")) {
86476
86356
  let extendedConfigPath = getNormalizedAbsolutePath(extendedConfig, basePath);
86477
86357
  if (!host.fileExists(extendedConfigPath) && !endsWith(extendedConfigPath, ".json")) {
86478
86358
  extendedConfigPath = `${extendedConfigPath}.json`;
86479
86359
  if (!host.fileExists(extendedConfigPath)) {
86480
- errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig));
86360
+ errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig));
86481
86361
  return;
86482
86362
  }
86483
86363
  }
@@ -86488,13 +86368,13 @@ ${lanes.join(`
86488
86368
  return resolved.resolvedModule.resolvedFileName;
86489
86369
  }
86490
86370
  if (extendedConfig === "") {
86491
- errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_cannot_be_given_an_empty_string, "extends"));
86371
+ errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_cannot_be_given_an_empty_string, "extends"));
86492
86372
  } else {
86493
- errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig));
86373
+ errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig));
86494
86374
  }
86495
86375
  return;
86496
86376
  }
86497
- function getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors4, extendedConfigCache, result) {
86377
+ function getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors3, extendedConfigCache, result) {
86498
86378
  const path5 = host.useCaseSensitiveFileNames ? extendedConfigPath : toFileNameLowerCase(extendedConfigPath);
86499
86379
  let value2;
86500
86380
  let extendedResult;
@@ -86504,7 +86384,7 @@ ${lanes.join(`
86504
86384
  } else {
86505
86385
  extendedResult = readJsonConfigFile(extendedConfigPath, (path22) => host.readFile(path22));
86506
86386
  if (!extendedResult.parseDiagnostics.length) {
86507
- extendedConfig = parseConfig(undefined, extendedResult, host, getDirectoryPath(extendedConfigPath), getBaseFileName(extendedConfigPath), resolutionStack, errors4, extendedConfigCache);
86387
+ extendedConfig = parseConfig(undefined, extendedResult, host, getDirectoryPath(extendedConfigPath), getBaseFileName(extendedConfigPath), resolutionStack, errors3, extendedConfigCache);
86508
86388
  }
86509
86389
  if (extendedConfigCache) {
86510
86390
  extendedConfigCache.set(path5, { extendedResult, extendedConfig });
@@ -86519,35 +86399,35 @@ ${lanes.join(`
86519
86399
  }
86520
86400
  }
86521
86401
  if (extendedResult.parseDiagnostics.length) {
86522
- errors4.push(...extendedResult.parseDiagnostics);
86402
+ errors3.push(...extendedResult.parseDiagnostics);
86523
86403
  return;
86524
86404
  }
86525
86405
  return extendedConfig;
86526
86406
  }
86527
- function convertCompileOnSaveOptionFromJson(jsonOption, basePath, errors4) {
86407
+ function convertCompileOnSaveOptionFromJson(jsonOption, basePath, errors3) {
86528
86408
  if (!hasProperty(jsonOption, compileOnSaveCommandLineOption.name)) {
86529
86409
  return false;
86530
86410
  }
86531
- const result = convertJsonOption(compileOnSaveCommandLineOption, jsonOption.compileOnSave, basePath, errors4);
86411
+ const result = convertJsonOption(compileOnSaveCommandLineOption, jsonOption.compileOnSave, basePath, errors3);
86532
86412
  return typeof result === "boolean" && result;
86533
86413
  }
86534
86414
  function convertCompilerOptionsFromJson(jsonOptions, basePath, configFileName) {
86535
- const errors4 = [];
86536
- const options = convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors4, configFileName);
86537
- return { options, errors: errors4 };
86415
+ const errors3 = [];
86416
+ const options = convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors3, configFileName);
86417
+ return { options, errors: errors3 };
86538
86418
  }
86539
86419
  function convertTypeAcquisitionFromJson(jsonOptions, basePath, configFileName) {
86540
- const errors4 = [];
86541
- const options = convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors4, configFileName);
86542
- return { options, errors: errors4 };
86420
+ const errors3 = [];
86421
+ const options = convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors3, configFileName);
86422
+ return { options, errors: errors3 };
86543
86423
  }
86544
86424
  function getDefaultCompilerOptions(configFileName) {
86545
86425
  const options = configFileName && getBaseFileName(configFileName) === "jsconfig.json" ? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true, noEmit: true } : {};
86546
86426
  return options;
86547
86427
  }
86548
- function convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors4, configFileName) {
86428
+ function convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors3, configFileName) {
86549
86429
  const options = getDefaultCompilerOptions(configFileName);
86550
- convertOptionsFromJson(getCommandLineCompilerOptionsMap(), jsonOptions, basePath, options, compilerOptionsDidYouMeanDiagnostics, errors4);
86430
+ convertOptionsFromJson(getCommandLineCompilerOptionsMap(), jsonOptions, basePath, options, compilerOptionsDidYouMeanDiagnostics, errors3);
86551
86431
  if (configFileName) {
86552
86432
  options.configFilePath = normalizeSlashes(configFileName);
86553
86433
  }
@@ -86556,24 +86436,24 @@ ${lanes.join(`
86556
86436
  function getDefaultTypeAcquisition(configFileName) {
86557
86437
  return { enable: !!configFileName && getBaseFileName(configFileName) === "jsconfig.json", include: [], exclude: [] };
86558
86438
  }
86559
- function convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors4, configFileName) {
86439
+ function convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors3, configFileName) {
86560
86440
  const options = getDefaultTypeAcquisition(configFileName);
86561
- convertOptionsFromJson(getCommandLineTypeAcquisitionMap(), jsonOptions, basePath, options, typeAcquisitionDidYouMeanDiagnostics, errors4);
86441
+ convertOptionsFromJson(getCommandLineTypeAcquisitionMap(), jsonOptions, basePath, options, typeAcquisitionDidYouMeanDiagnostics, errors3);
86562
86442
  return options;
86563
86443
  }
86564
- function convertWatchOptionsFromJsonWorker(jsonOptions, basePath, errors4) {
86565
- return convertOptionsFromJson(getCommandLineWatchOptionsMap(), jsonOptions, basePath, undefined, watchOptionsDidYouMeanDiagnostics, errors4);
86444
+ function convertWatchOptionsFromJsonWorker(jsonOptions, basePath, errors3) {
86445
+ return convertOptionsFromJson(getCommandLineWatchOptionsMap(), jsonOptions, basePath, undefined, watchOptionsDidYouMeanDiagnostics, errors3);
86566
86446
  }
86567
- function convertOptionsFromJson(optionsNameMap, jsonOptions, basePath, defaultOptions, diagnostics, errors4) {
86447
+ function convertOptionsFromJson(optionsNameMap, jsonOptions, basePath, defaultOptions, diagnostics, errors3) {
86568
86448
  if (!jsonOptions) {
86569
86449
  return;
86570
86450
  }
86571
86451
  for (const id in jsonOptions) {
86572
86452
  const opt = optionsNameMap.get(id);
86573
86453
  if (opt) {
86574
- (defaultOptions || (defaultOptions = {}))[opt.name] = convertJsonOption(opt, jsonOptions[id], basePath, errors4);
86454
+ (defaultOptions || (defaultOptions = {}))[opt.name] = convertJsonOption(opt, jsonOptions[id], basePath, errors3);
86575
86455
  } else {
86576
- errors4.push(createUnknownOptionError(id, diagnostics));
86456
+ errors3.push(createUnknownOptionError(id, diagnostics));
86577
86457
  }
86578
86458
  }
86579
86459
  return defaultOptions;
@@ -86581,24 +86461,24 @@ ${lanes.join(`
86581
86461
  function createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, message, ...args) {
86582
86462
  return sourceFile && node ? createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args) : createCompilerDiagnostic(message, ...args);
86583
86463
  }
86584
- function convertJsonOption(opt, value2, basePath, errors4, propertyAssignment, valueExpression, sourceFile) {
86464
+ function convertJsonOption(opt, value2, basePath, errors3, propertyAssignment, valueExpression, sourceFile) {
86585
86465
  if (opt.isCommandLineOnly) {
86586
- errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, propertyAssignment == null ? undefined : propertyAssignment.name, Diagnostics.Option_0_can_only_be_specified_on_command_line, opt.name));
86466
+ errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, propertyAssignment == null ? undefined : propertyAssignment.name, Diagnostics.Option_0_can_only_be_specified_on_command_line, opt.name));
86587
86467
  return;
86588
86468
  }
86589
86469
  if (isCompilerOptionsValue(opt, value2)) {
86590
86470
  const optType = opt.type;
86591
86471
  if (optType === "list" && isArray(value2)) {
86592
- return convertJsonOptionOfListType(opt, value2, basePath, errors4, propertyAssignment, valueExpression, sourceFile);
86472
+ return convertJsonOptionOfListType(opt, value2, basePath, errors3, propertyAssignment, valueExpression, sourceFile);
86593
86473
  } else if (optType === "listOrElement") {
86594
- return isArray(value2) ? convertJsonOptionOfListType(opt, value2, basePath, errors4, propertyAssignment, valueExpression, sourceFile) : convertJsonOption(opt.element, value2, basePath, errors4, propertyAssignment, valueExpression, sourceFile);
86474
+ return isArray(value2) ? convertJsonOptionOfListType(opt, value2, basePath, errors3, propertyAssignment, valueExpression, sourceFile) : convertJsonOption(opt.element, value2, basePath, errors3, propertyAssignment, valueExpression, sourceFile);
86595
86475
  } else if (!isString(opt.type)) {
86596
- return convertJsonOptionOfCustomType(opt, value2, errors4, valueExpression, sourceFile);
86476
+ return convertJsonOptionOfCustomType(opt, value2, errors3, valueExpression, sourceFile);
86597
86477
  }
86598
- const validatedValue = validateJsonOptionValue(opt, value2, errors4, valueExpression, sourceFile);
86478
+ const validatedValue = validateJsonOptionValue(opt, value2, errors3, valueExpression, sourceFile);
86599
86479
  return isNullOrUndefined(validatedValue) ? validatedValue : normalizeNonListOptionValue(opt, basePath, validatedValue);
86600
86480
  } else {
86601
- errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, opt.name, getCompilerOptionValueTypeString(opt)));
86481
+ errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, opt.name, getCompilerOptionValueTypeString(opt)));
86602
86482
  }
86603
86483
  }
86604
86484
  function normalizeNonListOptionValue(option, basePath, value2) {
@@ -86611,29 +86491,29 @@ ${lanes.join(`
86611
86491
  }
86612
86492
  return value2;
86613
86493
  }
86614
- function validateJsonOptionValue(opt, value2, errors4, valueExpression, sourceFile) {
86494
+ function validateJsonOptionValue(opt, value2, errors3, valueExpression, sourceFile) {
86615
86495
  var _a;
86616
86496
  if (isNullOrUndefined(value2))
86617
86497
  return;
86618
86498
  const d = (_a = opt.extraValidation) == null ? undefined : _a.call(opt, value2);
86619
86499
  if (!d)
86620
86500
  return value2;
86621
- errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, ...d));
86501
+ errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, ...d));
86622
86502
  return;
86623
86503
  }
86624
- function convertJsonOptionOfCustomType(opt, value2, errors4, valueExpression, sourceFile) {
86504
+ function convertJsonOptionOfCustomType(opt, value2, errors3, valueExpression, sourceFile) {
86625
86505
  if (isNullOrUndefined(value2))
86626
86506
  return;
86627
86507
  const key = value2.toLowerCase();
86628
86508
  const val = opt.type.get(key);
86629
86509
  if (val !== undefined) {
86630
- return validateJsonOptionValue(opt, val, errors4, valueExpression, sourceFile);
86510
+ return validateJsonOptionValue(opt, val, errors3, valueExpression, sourceFile);
86631
86511
  } else {
86632
- errors4.push(createDiagnosticForInvalidCustomType(opt, (message, ...args) => createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, message, ...args)));
86512
+ errors3.push(createDiagnosticForInvalidCustomType(opt, (message, ...args) => createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, message, ...args)));
86633
86513
  }
86634
86514
  }
86635
- function convertJsonOptionOfListType(option, values, basePath, errors4, propertyAssignment, valueExpression, sourceFile) {
86636
- return filter2(map2(values, (v, index) => convertJsonOption(option.element, v, basePath, errors4, propertyAssignment, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile)), (v) => option.listPreserveFalsyValues ? true : !!v);
86515
+ function convertJsonOptionOfListType(option, values, basePath, errors3, propertyAssignment, valueExpression, sourceFile) {
86516
+ return filter2(map2(values, (v, index) => convertJsonOption(option.element, v, basePath, errors3, propertyAssignment, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile)), (v) => option.listPreserveFalsyValues ? true : !!v);
86637
86517
  }
86638
86518
  var invalidTrailingRecursionPattern = /(?:^|\/)\*\*\/?$/;
86639
86519
  var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/;
@@ -86718,13 +86598,13 @@ ${lanes.join(`
86718
86598
  return true;
86719
86599
  return !hasExtension(pathToCheck) && excludeRegex.test(ensureTrailingDirectorySeparator(pathToCheck));
86720
86600
  }
86721
- function validateSpecs(specs, errors4, disallowTrailingRecursion, jsonSourceFile, specKey) {
86601
+ function validateSpecs(specs, errors3, disallowTrailingRecursion, jsonSourceFile, specKey) {
86722
86602
  return specs.filter((spec) => {
86723
86603
  if (!isString(spec))
86724
86604
  return false;
86725
86605
  const diag2 = specToDiagnostic(spec, disallowTrailingRecursion);
86726
86606
  if (diag2 !== undefined) {
86727
- errors4.push(createDiagnostic(...diag2));
86607
+ errors3.push(createDiagnostic(...diag2));
86728
86608
  }
86729
86609
  return diag2 === undefined;
86730
86610
  });
@@ -98785,7 +98665,7 @@ ${lanes.join(`
98785
98665
  const index = findIndex(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !d.attributes && !!d.exportClause && isNamedExports(d.exportClause));
98786
98666
  if (index >= 0) {
98787
98667
  const exportDecl = statements[index];
98788
- const replacements2 = mapDefined(exportDecl.exportClause.elements, (e3) => {
98668
+ const replacements = mapDefined(exportDecl.exportClause.elements, (e3) => {
98789
98669
  if (!e3.propertyName && e3.name.kind !== 11) {
98790
98670
  const name2 = e3.name;
98791
98671
  const indices = indicesOf(statements);
@@ -98799,10 +98679,10 @@ ${lanes.join(`
98799
98679
  }
98800
98680
  return e3;
98801
98681
  });
98802
- if (!length(replacements2)) {
98682
+ if (!length(replacements)) {
98803
98683
  orderedRemoveItemAt(statements, index);
98804
98684
  } else {
98805
- statements[index] = factory.updateExportDeclaration(exportDecl, exportDecl.modifiers, exportDecl.isTypeOnly, factory.updateNamedExports(exportDecl.exportClause, replacements2), exportDecl.moduleSpecifier, exportDecl.attributes);
98685
+ statements[index] = factory.updateExportDeclaration(exportDecl, exportDecl.modifiers, exportDecl.isTypeOnly, factory.updateNamedExports(exportDecl.exportClause, replacements), exportDecl.moduleSpecifier, exportDecl.attributes);
98806
98686
  }
98807
98687
  }
98808
98688
  return statements;
@@ -153225,19 +153105,19 @@ ${lanes.join(`
153225
153105
  }
153226
153106
  function formatCodeSpan(file2, start, length2, indent3, squiggleColor, host) {
153227
153107
  const { line: firstLine, character: firstLineChar } = getLineAndCharacterOfPosition(file2, start);
153228
- const { line: lastLine2, character: lastLineChar } = getLineAndCharacterOfPosition(file2, start + length2);
153108
+ const { line: lastLine, character: lastLineChar } = getLineAndCharacterOfPosition(file2, start + length2);
153229
153109
  const lastLineInFile = getLineAndCharacterOfPosition(file2, file2.text.length).line;
153230
- const hasMoreThanFiveLines = lastLine2 - firstLine >= 4;
153231
- let gutterWidth = (lastLine2 + 1 + "").length;
153110
+ const hasMoreThanFiveLines = lastLine - firstLine >= 4;
153111
+ let gutterWidth = (lastLine + 1 + "").length;
153232
153112
  if (hasMoreThanFiveLines) {
153233
153113
  gutterWidth = Math.max(ellipsis.length, gutterWidth);
153234
153114
  }
153235
153115
  let context = "";
153236
- for (let i2 = firstLine;i2 <= lastLine2; i2++) {
153116
+ for (let i2 = firstLine;i2 <= lastLine; i2++) {
153237
153117
  context += host.getNewLine();
153238
- if (hasMoreThanFiveLines && firstLine + 1 < i2 && i2 < lastLine2 - 1) {
153118
+ if (hasMoreThanFiveLines && firstLine + 1 < i2 && i2 < lastLine - 1) {
153239
153119
  context += indent3 + formatColorAndReset(ellipsis.padStart(gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine();
153240
- i2 = lastLine2 - 1;
153120
+ i2 = lastLine - 1;
153241
153121
  }
153242
153122
  const lineStart = getPositionOfLineAndCharacter(file2, i2, 0);
153243
153123
  const lineEnd = i2 < lastLineInFile ? getPositionOfLineAndCharacter(file2, i2 + 1, 0) : file2.text.length;
@@ -153249,10 +153129,10 @@ ${lanes.join(`
153249
153129
  context += indent3 + formatColorAndReset("".padStart(gutterWidth), gutterStyleSequence) + gutterSeparator;
153250
153130
  context += squiggleColor;
153251
153131
  if (i2 === firstLine) {
153252
- const lastCharForLine = i2 === lastLine2 ? lastLineChar : undefined;
153132
+ const lastCharForLine = i2 === lastLine ? lastLineChar : undefined;
153253
153133
  context += lineContent.slice(0, firstLineChar).replace(/\S/g, " ");
153254
153134
  context += lineContent.slice(firstLineChar, lastCharForLine).replace(/./g, "~");
153255
- } else if (i2 === lastLine2) {
153135
+ } else if (i2 === lastLine) {
153256
153136
  context += lineContent.slice(0, lastLineChar).replace(/./g, "~");
153257
153137
  } else {
153258
153138
  context += lineContent.replace(/./g, "~");
@@ -161672,14 +161552,14 @@ ${lanes.join(`
161672
161552
  var _a, _b;
161673
161553
  (_b = (_a = state.hostWithWatch).onWatchStatusChange) == null || _b.call(_a, createCompilerDiagnostic(message, ...args), state.host.getNewLine(), state.baseCompilerOptions);
161674
161554
  }
161675
- function reportErrors({ host }, errors4) {
161676
- errors4.forEach((err) => host.reportDiagnostic(err));
161555
+ function reportErrors({ host }, errors3) {
161556
+ errors3.forEach((err) => host.reportDiagnostic(err));
161677
161557
  }
161678
- function reportAndStoreErrors(state, proj, errors4) {
161679
- reportErrors(state, errors4);
161558
+ function reportAndStoreErrors(state, proj, errors3) {
161559
+ reportErrors(state, errors3);
161680
161560
  state.projectErrorsReported.set(proj, true);
161681
- if (errors4.length) {
161682
- state.diagnostics.set(proj, errors4);
161561
+ if (errors3.length) {
161562
+ state.diagnostics.set(proj, errors3);
161683
161563
  }
161684
161564
  }
161685
161565
  function reportParseConfigFileDiagnostic(state, proj) {
@@ -161879,7 +161759,7 @@ ${lanes.join(`
161879
161759
  function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
161880
161760
  var _a;
161881
161761
  const text = [];
161882
- const colors3 = createColors(sys2);
161762
+ const colors = createColors(sys2);
161883
161763
  const name2 = getDisplayNameTextOfOption(option);
161884
161764
  const valueCandidates = getValueCandidate(option);
161885
161765
  const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
@@ -161900,7 +161780,7 @@ ${lanes.join(`
161900
161780
  }
161901
161781
  text.push(sys2.newLine);
161902
161782
  } else {
161903
- text.push(colors3.blue(name2), sys2.newLine);
161783
+ text.push(colors.blue(name2), sys2.newLine);
161904
161784
  if (option.description) {
161905
161785
  const description3 = getDiagnosticText(option.description);
161906
161786
  text.push(description3);
@@ -161945,7 +161825,7 @@ ${lanes.join(`
161945
161825
  if (isFirstLine) {
161946
161826
  curLeft = left.padStart(rightAlignOfLeft2);
161947
161827
  curLeft = curLeft.padEnd(leftAlignOfRight2);
161948
- curLeft = colorLeft ? colors3.blue(curLeft) : curLeft;
161828
+ curLeft = colorLeft ? colors.blue(curLeft) : curLeft;
161949
161829
  } else {
161950
161830
  curLeft = "".padStart(leftAlignOfRight2);
161951
161831
  }
@@ -162057,9 +161937,9 @@ ${lanes.join(`
162057
161937
  return res;
162058
161938
  }
162059
161939
  function printEasyHelp(sys2, simpleOptions) {
162060
- const colors3 = createColors(sys2);
161940
+ const colors = createColors(sys2);
162061
161941
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version2)}`)];
162062
- output.push(colors3.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
161942
+ output.push(colors.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
162063
161943
  example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
162064
161944
  example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
162065
161945
  example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
@@ -162080,7 +161960,7 @@ ${lanes.join(`
162080
161960
  function example(ex, desc) {
162081
161961
  const examples = typeof ex === "string" ? [ex] : ex;
162082
161962
  for (const example2 of examples) {
162083
- output.push(" " + colors3.blue(example2) + sys2.newLine);
161963
+ output.push(" " + colors.blue(example2) + sys2.newLine);
162084
161964
  }
162085
161965
  output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
162086
161966
  }
@@ -162103,12 +161983,12 @@ ${lanes.join(`
162103
161983
  }
162104
161984
  function getHeader(sys2, message) {
162105
161985
  var _a;
162106
- const colors3 = createColors(sys2);
161986
+ const colors = createColors(sys2);
162107
161987
  const header = [];
162108
161988
  const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
162109
161989
  const tsIconLength = 5;
162110
- const tsIconFirstLine = colors3.blueBackground("".padStart(tsIconLength));
162111
- const tsIconSecondLine = colors3.blueBackground(colors3.brightWhite("TS ".padStart(tsIconLength)));
161990
+ const tsIconFirstLine = colors.blueBackground("".padStart(tsIconLength));
161991
+ const tsIconSecondLine = colors.blueBackground(colors.brightWhite("TS ".padStart(tsIconLength)));
162112
161992
  if (terminalWidth >= message.length + tsIconLength) {
162113
161993
  const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
162114
161994
  const leftAlign = rightAlign - tsIconLength;
@@ -162235,11 +162115,11 @@ ${lanes.join(`
162235
162115
  }
162236
162116
  function executeCommandLine(system, cb, commandLineArgs) {
162237
162117
  if (isBuildCommand(commandLineArgs)) {
162238
- const { buildOptions, watchOptions, projects, errors: errors4 } = parseBuildCommand(commandLineArgs);
162118
+ const { buildOptions, watchOptions, projects, errors: errors3 } = parseBuildCommand(commandLineArgs);
162239
162119
  if (buildOptions.generateCpuProfile && system.enableCPUProfiler) {
162240
- system.enableCPUProfiler(buildOptions.generateCpuProfile, () => performBuild(system, cb, buildOptions, watchOptions, projects, errors4));
162120
+ system.enableCPUProfiler(buildOptions.generateCpuProfile, () => performBuild(system, cb, buildOptions, watchOptions, projects, errors3));
162241
162121
  } else {
162242
- return performBuild(system, cb, buildOptions, watchOptions, projects, errors4);
162122
+ return performBuild(system, cb, buildOptions, watchOptions, projects, errors3);
162243
162123
  }
162244
162124
  }
162245
162125
  const commandLine = parseCommandLine(commandLineArgs, (path5) => system.readFile(path5));
@@ -162258,13 +162138,13 @@ ${lanes.join(`
162258
162138
  return false;
162259
162139
  }
162260
162140
  var defaultJSDocParsingMode = 2;
162261
- function performBuild(sys2, cb, buildOptions, watchOptions, projects, errors4) {
162141
+ function performBuild(sys2, cb, buildOptions, watchOptions, projects, errors3) {
162262
162142
  const reportDiagnostic = updateReportDiagnostic(sys2, createDiagnosticReporter(sys2), buildOptions);
162263
162143
  if (buildOptions.locale) {
162264
- validateLocaleAndSetLanguage(buildOptions.locale, sys2, errors4);
162144
+ validateLocaleAndSetLanguage(buildOptions.locale, sys2, errors3);
162265
162145
  }
162266
- if (errors4.length > 0) {
162267
- errors4.forEach(reportDiagnostic);
162146
+ if (errors3.length > 0) {
162147
+ errors3.forEach(reportDiagnostic);
162268
162148
  return sys2.exit(1);
162269
162149
  }
162270
162150
  if (buildOptions.help) {
@@ -172619,11 +172499,11 @@ ${newComment.split(`
172619
172499
  return emptyArray;
172620
172500
  const { selectedVariableDeclaration, func } = info;
172621
172501
  const possibleActions = [];
172622
- const errors4 = [];
172502
+ const errors3 = [];
172623
172503
  if (refactorKindBeginsWith(toNamedFunctionAction.kind, kind)) {
172624
172504
  const error210 = selectedVariableDeclaration || isArrowFunction(func) && isVariableDeclaration(func.parent) ? undefined : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_named_function);
172625
172505
  if (error210) {
172626
- errors4.push({ ...toNamedFunctionAction, notApplicableReason: error210 });
172506
+ errors3.push({ ...toNamedFunctionAction, notApplicableReason: error210 });
172627
172507
  } else {
172628
172508
  possibleActions.push(toNamedFunctionAction);
172629
172509
  }
@@ -172631,7 +172511,7 @@ ${newComment.split(`
172631
172511
  if (refactorKindBeginsWith(toAnonymousFunctionAction.kind, kind)) {
172632
172512
  const error210 = !selectedVariableDeclaration && isArrowFunction(func) ? undefined : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_anonymous_function);
172633
172513
  if (error210) {
172634
- errors4.push({ ...toAnonymousFunctionAction, notApplicableReason: error210 });
172514
+ errors3.push({ ...toAnonymousFunctionAction, notApplicableReason: error210 });
172635
172515
  } else {
172636
172516
  possibleActions.push(toAnonymousFunctionAction);
172637
172517
  }
@@ -172639,7 +172519,7 @@ ${newComment.split(`
172639
172519
  if (refactorKindBeginsWith(toArrowFunctionAction.kind, kind)) {
172640
172520
  const error210 = isFunctionExpression(func) ? undefined : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_arrow_function);
172641
172521
  if (error210) {
172642
- errors4.push({ ...toArrowFunctionAction, notApplicableReason: error210 });
172522
+ errors3.push({ ...toArrowFunctionAction, notApplicableReason: error210 });
172643
172523
  } else {
172644
172524
  possibleActions.push(toArrowFunctionAction);
172645
172525
  }
@@ -172647,7 +172527,7 @@ ${newComment.split(`
172647
172527
  return [{
172648
172528
  name: refactorName8,
172649
172529
  description: refactorDescription4,
172650
- actions: possibleActions.length === 0 && context.preferences.provideRefactorNotApplicableReason ? errors4 : possibleActions
172530
+ actions: possibleActions.length === 0 && context.preferences.provideRefactorNotApplicableReason ? errors3 : possibleActions
172651
172531
  }];
172652
172532
  }
172653
172533
  function getRefactorEditsToConvertFunctionExpressions(context, actionName2) {
@@ -173672,22 +173552,22 @@ ${newComment.split(`
173672
173552
  if (!rangeToExtract.errors || rangeToExtract.errors.length === 0 || !context.preferences.provideRefactorNotApplicableReason) {
173673
173553
  return emptyArray;
173674
173554
  }
173675
- const errors4 = [];
173555
+ const errors3 = [];
173676
173556
  if (refactorKindBeginsWith(extractFunctionAction.kind, requestedRefactor)) {
173677
- errors4.push({
173557
+ errors3.push({
173678
173558
  name: refactorName12,
173679
173559
  description: extractFunctionAction.description,
173680
173560
  actions: [{ ...extractFunctionAction, notApplicableReason: getStringError(rangeToExtract.errors) }]
173681
173561
  });
173682
173562
  }
173683
173563
  if (refactorKindBeginsWith(extractConstantAction.kind, requestedRefactor)) {
173684
- errors4.push({
173564
+ errors3.push({
173685
173565
  name: refactorName12,
173686
173566
  description: extractConstantAction.description,
173687
173567
  actions: [{ ...extractConstantAction, notApplicableReason: getStringError(rangeToExtract.errors) }]
173688
173568
  });
173689
173569
  }
173690
- return errors4;
173570
+ return errors3;
173691
173571
  }
173692
173572
  const { affectedTextRange, extractions } = getPossibleExtractions(targetRange, context);
173693
173573
  if (extractions === undefined) {
@@ -173779,8 +173659,8 @@ ${newComment.split(`
173779
173659
  });
173780
173660
  }
173781
173661
  return infos.length ? infos : emptyArray;
173782
- function getStringError(errors4) {
173783
- let error210 = errors4[0].messageText;
173662
+ function getStringError(errors3) {
173663
+ let error210 = errors3[0].messageText;
173784
173664
  if (typeof error210 !== "string") {
173785
173665
  error210 = error210.messageText;
173786
173666
  }
@@ -173891,9 +173771,9 @@ ${newComment.split(`
173891
173771
  return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractRange)] };
173892
173772
  }
173893
173773
  const node = refineNode(start);
173894
- const errors4 = checkRootNode(node) || checkNode(node);
173895
- if (errors4) {
173896
- return { errors: errors4 };
173774
+ const errors3 = checkRootNode(node) || checkNode(node);
173775
+ if (errors3) {
173776
+ return { errors: errors3 };
173897
173777
  }
173898
173778
  return { targetRange: { range: getStatementOrExpressionRange(node), facts: rangeFacts, thisNode } };
173899
173779
  function refineNode(node2) {
@@ -174850,11 +174730,11 @@ ${newComment.split(`
174850
174730
  }
174851
174731
  if (targetRange.facts & 2 && usage === 2) {
174852
174732
  const diag2 = createDiagnosticForNode(identifier, Messages.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);
174853
- for (const errors4 of functionErrorsPerScope) {
174854
- errors4.push(diag2);
174733
+ for (const errors3 of functionErrorsPerScope) {
174734
+ errors3.push(diag2);
174855
174735
  }
174856
- for (const errors4 of constantErrorsPerScope) {
174857
- errors4.push(diag2);
174736
+ for (const errors3 of constantErrorsPerScope) {
174737
+ errors3.push(diag2);
174858
174738
  }
174859
174739
  }
174860
174740
  for (let i2 = 0;i2 < scopes.length; i2++) {
@@ -177053,14 +176933,14 @@ ${newComment.split(`
177053
176933
  function toggleLineComment(fileName, textRange, insertComment) {
177054
176934
  const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
177055
176935
  const textChanges2 = [];
177056
- const { lineStarts, firstLine, lastLine: lastLine2 } = getLinesForRange(sourceFile, textRange);
176936
+ const { lineStarts, firstLine, lastLine } = getLinesForRange(sourceFile, textRange);
177057
176937
  let isCommenting = insertComment || false;
177058
176938
  let leftMostPosition = Number.MAX_VALUE;
177059
176939
  const lineTextStarts = /* @__PURE__ */ new Map;
177060
176940
  const firstNonWhitespaceCharacterRegex = new RegExp(/\S/);
177061
176941
  const isJsx = isInsideJsxElement(sourceFile, lineStarts[firstLine]);
177062
176942
  const openComment = isJsx ? "{/*" : "//";
177063
- for (let i2 = firstLine;i2 <= lastLine2; i2++) {
176943
+ for (let i2 = firstLine;i2 <= lastLine; i2++) {
177064
176944
  const lineText = sourceFile.text.substring(lineStarts[i2], sourceFile.getLineEndOfPosition(lineStarts[i2]));
177065
176945
  const regExec = firstNonWhitespaceCharacterRegex.exec(lineText);
177066
176946
  if (regExec) {
@@ -177071,8 +176951,8 @@ ${newComment.split(`
177071
176951
  }
177072
176952
  }
177073
176953
  }
177074
- for (let i2 = firstLine;i2 <= lastLine2; i2++) {
177075
- if (firstLine !== lastLine2 && lineStarts[i2] === textRange.end) {
176954
+ for (let i2 = firstLine;i2 <= lastLine; i2++) {
176955
+ if (firstLine !== lastLine && lineStarts[i2] === textRange.end) {
177076
176956
  continue;
177077
176957
  }
177078
176958
  const lineTextStart = lineTextStarts.get(i2.toString());
@@ -177195,8 +177075,8 @@ ${newComment.split(`
177195
177075
  }
177196
177076
  function commentSelection(fileName, textRange) {
177197
177077
  const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
177198
- const { firstLine, lastLine: lastLine2 } = getLinesForRange(sourceFile, textRange);
177199
- return firstLine === lastLine2 && textRange.pos !== textRange.end ? toggleMultilineComment(fileName, textRange, true) : toggleLineComment(fileName, textRange, true);
177078
+ const { firstLine, lastLine } = getLinesForRange(sourceFile, textRange);
177079
+ return firstLine === lastLine && textRange.pos !== textRange.end ? toggleMultilineComment(fileName, textRange, true) : toggleLineComment(fileName, textRange, true);
177200
177080
  }
177201
177081
  function uncommentSelection(fileName, textRange) {
177202
177082
  const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
@@ -200791,11 +200671,11 @@ ${options.prefix}` : `
200791
200671
  return n2;
200792
200672
  }
200793
200673
  }
200794
- function prepareRangeContainsErrorFunction(errors4, originalRange) {
200795
- if (!errors4.length) {
200674
+ function prepareRangeContainsErrorFunction(errors3, originalRange) {
200675
+ if (!errors3.length) {
200796
200676
  return rangeHasNoErrors;
200797
200677
  }
200798
- const sorted = errors4.filter((d) => rangeOverlapsWithStartEnd(originalRange, d.start, d.start + d.length)).sort((e1, e22) => e1.start - e22.start);
200678
+ const sorted = errors3.filter((d) => rangeOverlapsWithStartEnd(originalRange, d.start, d.start + d.length)).sort((e1, e22) => e1.start - e22.start);
200799
200679
  if (!sorted.length) {
200800
200680
  return rangeHasNoErrors;
200801
200681
  }
@@ -207785,15 +207665,15 @@ ${options.prefix}` : `
207785
207665
  }
207786
207666
  function convertWatchOptions(protocolOptions, currentDirectory) {
207787
207667
  let watchOptions;
207788
- let errors4;
207668
+ let errors3;
207789
207669
  optionsForWatch.forEach((option) => {
207790
207670
  const propertyValue = protocolOptions[option.name];
207791
207671
  if (propertyValue === undefined)
207792
207672
  return;
207793
207673
  const mappedValues = watchOptionsConverters.get(option.name);
207794
- (watchOptions || (watchOptions = {}))[option.name] = mappedValues ? isString(propertyValue) ? mappedValues.get(propertyValue.toLowerCase()) : propertyValue : convertJsonOption(option, propertyValue, currentDirectory || "", errors4 || (errors4 = []));
207674
+ (watchOptions || (watchOptions = {}))[option.name] = mappedValues ? isString(propertyValue) ? mappedValues.get(propertyValue.toLowerCase()) : propertyValue : convertJsonOption(option, propertyValue, currentDirectory || "", errors3 || (errors3 = []));
207795
207675
  });
207796
- return watchOptions && { watchOptions, errors: errors4 };
207676
+ return watchOptions && { watchOptions, errors: errors3 };
207797
207677
  }
207798
207678
  function convertTypeAcquisition(protocolOptions) {
207799
207679
  let result;
@@ -211024,7 +210904,7 @@ Dynamic files must always be opened with service's current directory or service
211024
210904
  `);
211025
210905
  const { code, source } = diag2;
211026
210906
  const category = diagnosticCategoryName(diag2);
211027
- const common2 = {
210907
+ const common = {
211028
210908
  start,
211029
210909
  end,
211030
210910
  text,
@@ -211035,7 +210915,7 @@ Dynamic files must always be opened with service's current directory or service
211035
210915
  source,
211036
210916
  relatedInformation: map2(diag2.relatedInformation, formatRelatedInformation)
211037
210917
  };
211038
- return includeFileName ? { ...common2, fileName: diag2.file && diag2.file.fileName } : common2;
210918
+ return includeFileName ? { ...common, fileName: diag2.file && diag2.file.fileName } : common;
211039
210919
  }
211040
210920
  function allEditsBeforePos(edits, pos) {
211041
210921
  return edits.every((edit) => textSpanEnd(edit.span) < pos);
@@ -219907,14 +219787,14 @@ var require_validate3 = __commonJS((exports) => {
219907
219787
  validateRootTypes(context);
219908
219788
  validateDirectives(context);
219909
219789
  validateTypes(context);
219910
- const errors4 = context.getErrors();
219911
- schema.__validationErrors = errors4;
219912
- return errors4;
219790
+ const errors3 = context.getErrors();
219791
+ schema.__validationErrors = errors3;
219792
+ return errors3;
219913
219793
  }
219914
219794
  function assertValidSchema(schema) {
219915
- const errors4 = validateSchema(schema);
219916
- if (errors4.length !== 0) {
219917
- throw new Error(errors4.map((error47) => error47.message).join(`
219795
+ const errors3 = validateSchema(schema);
219796
+ if (errors3.length !== 0) {
219797
+ throw new Error(errors3.map((error47) => error47.message).join(`
219918
219798
 
219919
219799
  `));
219920
219800
  }
@@ -222127,25 +222007,25 @@ var require_values2 = __commonJS((exports) => {
222127
222007
  var _typeFromAST = require_typeFromAST2();
222128
222008
  var _valueFromAST = require_valueFromAST2();
222129
222009
  function getVariableValues(schema, varDefNodes, inputs, options) {
222130
- const errors4 = [];
222010
+ const errors3 = [];
222131
222011
  const maxErrors = options === null || options === undefined ? undefined : options.maxErrors;
222132
222012
  try {
222133
222013
  const coerced = coerceVariableValues(schema, varDefNodes, inputs, (error47) => {
222134
- if (maxErrors != null && errors4.length >= maxErrors) {
222014
+ if (maxErrors != null && errors3.length >= maxErrors) {
222135
222015
  throw new _GraphQLError.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");
222136
222016
  }
222137
- errors4.push(error47);
222017
+ errors3.push(error47);
222138
222018
  });
222139
- if (errors4.length === 0) {
222019
+ if (errors3.length === 0) {
222140
222020
  return {
222141
222021
  coerced
222142
222022
  };
222143
222023
  }
222144
222024
  } catch (error47) {
222145
- errors4.push(error47);
222025
+ errors3.push(error47);
222146
222026
  }
222147
222027
  return {
222148
- errors: errors4
222028
+ errors: errors3
222149
222029
  };
222150
222030
  }
222151
222031
  function coerceVariableValues(schema, varDefNodes, inputs, onError) {
@@ -223406,13 +223286,13 @@ var require_validate4 = __commonJS((exports) => {
223406
223286
  documentAST || (0, _devAssert.devAssert)(false, "Must provide document.");
223407
223287
  (0, _validate.assertValidSchema)(schema);
223408
223288
  const abortObj = Object.freeze({});
223409
- const errors4 = [];
223289
+ const errors3 = [];
223410
223290
  const context = new _ValidationContext.ValidationContext(schema, documentAST, typeInfo, (error47) => {
223411
- if (errors4.length >= maxErrors) {
223412
- errors4.push(new _GraphQLError.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));
223291
+ if (errors3.length >= maxErrors) {
223292
+ errors3.push(new _GraphQLError.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));
223413
223293
  throw abortObj;
223414
223294
  }
223415
- errors4.push(error47);
223295
+ errors3.push(error47);
223416
223296
  });
223417
223297
  const visitor = (0, _visitor.visitInParallel)(rules.map((rule) => rule(context)));
223418
223298
  try {
@@ -223422,29 +223302,29 @@ var require_validate4 = __commonJS((exports) => {
223422
223302
  throw e3;
223423
223303
  }
223424
223304
  }
223425
- return errors4;
223305
+ return errors3;
223426
223306
  }
223427
223307
  function validateSDL(documentAST, schemaToExtend, rules = _specifiedRules.specifiedSDLRules) {
223428
- const errors4 = [];
223308
+ const errors3 = [];
223429
223309
  const context = new _ValidationContext.SDLValidationContext(documentAST, schemaToExtend, (error47) => {
223430
- errors4.push(error47);
223310
+ errors3.push(error47);
223431
223311
  });
223432
223312
  const visitors = rules.map((rule) => rule(context));
223433
223313
  (0, _visitor.visit)(documentAST, (0, _visitor.visitInParallel)(visitors));
223434
- return errors4;
223314
+ return errors3;
223435
223315
  }
223436
223316
  function assertValidSDL(documentAST) {
223437
- const errors4 = validateSDL(documentAST);
223438
- if (errors4.length !== 0) {
223439
- throw new Error(errors4.map((error47) => error47.message).join(`
223317
+ const errors3 = validateSDL(documentAST);
223318
+ if (errors3.length !== 0) {
223319
+ throw new Error(errors3.map((error47) => error47.message).join(`
223440
223320
 
223441
223321
  `));
223442
223322
  }
223443
223323
  }
223444
223324
  function assertValidSDLExtension(documentAST, schema) {
223445
- const errors4 = validateSDL(documentAST, schema);
223446
- if (errors4.length !== 0) {
223447
- throw new Error(errors4.map((error47) => error47.message).join(`
223325
+ const errors3 = validateSDL(documentAST, schema);
223326
+ if (errors3.length !== 0) {
223327
+ throw new Error(errors3.map((error47) => error47.message).join(`
223448
223328
 
223449
223329
  `));
223450
223330
  }
@@ -223627,11 +223507,11 @@ var require_execute2 = __commonJS((exports) => {
223627
223507
  }
223628
223508
  return result;
223629
223509
  }
223630
- function buildResponse(data, errors4) {
223631
- return errors4.length === 0 ? {
223510
+ function buildResponse(data, errors3) {
223511
+ return errors3.length === 0 ? {
223632
223512
  data
223633
223513
  } : {
223634
- errors: errors4,
223514
+ errors: errors3,
223635
223515
  data
223636
223516
  };
223637
223517
  }
@@ -230834,14 +230714,14 @@ var import_typescript, import_graphql7, teardownPlaceholder = () => {}, h2, asyn
230834
230714
  hasNext: r3.hasNext == null ? n4 : r3.hasNext,
230835
230715
  stale: false
230836
230716
  };
230837
- }, deepMerge2 = (e5, r3) => {
230717
+ }, deepMerge = (e5, r3) => {
230838
230718
  if (typeof e5 == "object" && e5 != null) {
230839
230719
  if (!e5.constructor || e5.constructor === Object || Array.isArray(e5)) {
230840
230720
  e5 = Array.isArray(e5) ? [...e5] : {
230841
230721
  ...e5
230842
230722
  };
230843
230723
  for (var a5 of Object.keys(r3)) {
230844
- e5[a5] = deepMerge2(e5[a5], r3[a5]);
230724
+ e5[a5] = deepMerge(e5[a5], r3[a5]);
230845
230725
  }
230846
230726
  return e5;
230847
230727
  }
@@ -230891,10 +230771,10 @@ var import_typescript, import_graphql7, teardownPlaceholder = () => {}, h2, asyn
230891
230771
  if (e6.items) {
230892
230772
  var f = +r4 >= 0 ? r4 : 0;
230893
230773
  for (var p = 0, m2 = e6.items.length;p < m2; p++) {
230894
- a6[f + p] = deepMerge2(a6[f + p], e6.items[p]);
230774
+ a6[f + p] = deepMerge(a6[f + p], e6.items[p]);
230895
230775
  }
230896
230776
  } else if (e6.data !== undefined) {
230897
- a6[r4] = deepMerge2(a6[r4], e6.data);
230777
+ a6[r4] = deepMerge(a6[r4], e6.data);
230898
230778
  }
230899
230779
  };
230900
230780
  for (var l2 of s2) {
@@ -238521,7 +238401,7 @@ class CliBuilder {
238521
238401
  }(e11);
238522
238402
  (function simplifyMachine(e12) {
238523
238403
  var t10 = new Set;
238524
- var process8 = (r8) => {
238404
+ var process7 = (r8) => {
238525
238405
  if (t10.has(r8)) {
238526
238406
  return;
238527
238407
  }
@@ -238529,14 +238409,14 @@ class CliBuilder {
238529
238409
  var i8 = e12.nodes[r8];
238530
238410
  for (var n8 of Object.values(i8.statics)) {
238531
238411
  for (var { to: a8 } of n8) {
238532
- process8(a8);
238412
+ process7(a8);
238533
238413
  }
238534
238414
  }
238535
238415
  for (var [, { to: s6 }] of i8.dynamics) {
238536
- process8(s6);
238416
+ process7(s6);
238537
238417
  }
238538
238418
  for (var { to: l4 } of i8.shortcuts) {
238539
- process8(l4);
238419
+ process7(l4);
238540
238420
  }
238541
238421
  var c3 = new Set(i8.shortcuts.map(({ to: e13 }) => e13));
238542
238422
  while (i8.shortcuts.length > 0) {
@@ -238569,7 +238449,7 @@ class CliBuilder {
238569
238449
  }
238570
238450
  }
238571
238451
  };
238572
- process8(re2.InitialNode);
238452
+ process7(re2.InitialNode);
238573
238453
  })(a7);
238574
238454
  return {
238575
238455
  machine: a7,
@@ -246065,6 +245945,126 @@ var require_slugify = __commonJS((exports, module) => {
246065
245945
  });
246066
245946
  });
246067
245947
 
245948
+ // ../../node_modules/.bun/mute-stream@2.0.0/node_modules/mute-stream/lib/index.js
245949
+ var require_lib12 = __commonJS((exports, module) => {
245950
+ var Stream2 = __require("stream");
245951
+
245952
+ class MuteStream extends Stream2 {
245953
+ #isTTY = null;
245954
+ constructor(opts = {}) {
245955
+ super(opts);
245956
+ this.writable = this.readable = true;
245957
+ this.muted = false;
245958
+ this.on("pipe", this._onpipe);
245959
+ this.replace = opts.replace;
245960
+ this._prompt = opts.prompt || null;
245961
+ this._hadControl = false;
245962
+ }
245963
+ #destSrc(key, def) {
245964
+ if (this._dest) {
245965
+ return this._dest[key];
245966
+ }
245967
+ if (this._src) {
245968
+ return this._src[key];
245969
+ }
245970
+ return def;
245971
+ }
245972
+ #proxy(method, ...args) {
245973
+ if (typeof this._dest?.[method] === "function") {
245974
+ this._dest[method](...args);
245975
+ }
245976
+ if (typeof this._src?.[method] === "function") {
245977
+ this._src[method](...args);
245978
+ }
245979
+ }
245980
+ get isTTY() {
245981
+ if (this.#isTTY !== null) {
245982
+ return this.#isTTY;
245983
+ }
245984
+ return this.#destSrc("isTTY", false);
245985
+ }
245986
+ set isTTY(val) {
245987
+ this.#isTTY = val;
245988
+ }
245989
+ get rows() {
245990
+ return this.#destSrc("rows");
245991
+ }
245992
+ get columns() {
245993
+ return this.#destSrc("columns");
245994
+ }
245995
+ mute() {
245996
+ this.muted = true;
245997
+ }
245998
+ unmute() {
245999
+ this.muted = false;
246000
+ }
246001
+ _onpipe(src) {
246002
+ this._src = src;
246003
+ }
246004
+ pipe(dest, options) {
246005
+ this._dest = dest;
246006
+ return super.pipe(dest, options);
246007
+ }
246008
+ pause() {
246009
+ if (this._src) {
246010
+ return this._src.pause();
246011
+ }
246012
+ }
246013
+ resume() {
246014
+ if (this._src) {
246015
+ return this._src.resume();
246016
+ }
246017
+ }
246018
+ write(c3) {
246019
+ if (this.muted) {
246020
+ if (!this.replace) {
246021
+ return true;
246022
+ }
246023
+ if (c3.match(/^\u001b/)) {
246024
+ if (c3.indexOf(this._prompt) === 0) {
246025
+ c3 = c3.slice(this._prompt.length);
246026
+ c3 = c3.replace(/./g, this.replace);
246027
+ c3 = this._prompt + c3;
246028
+ }
246029
+ this._hadControl = true;
246030
+ return this.emit("data", c3);
246031
+ } else {
246032
+ if (this._prompt && this._hadControl && c3.indexOf(this._prompt) === 0) {
246033
+ this._hadControl = false;
246034
+ this.emit("data", this._prompt);
246035
+ c3 = c3.slice(this._prompt.length);
246036
+ }
246037
+ c3 = c3.toString().replace(/./g, this.replace);
246038
+ }
246039
+ }
246040
+ this.emit("data", c3);
246041
+ }
246042
+ end(c3) {
246043
+ if (this.muted) {
246044
+ if (c3 && this.replace) {
246045
+ c3 = c3.toString().replace(/./g, this.replace);
246046
+ } else {
246047
+ c3 = null;
246048
+ }
246049
+ }
246050
+ if (c3) {
246051
+ this.emit("data", c3);
246052
+ }
246053
+ this.emit("end");
246054
+ }
246055
+ destroy(...args) {
246056
+ return this.#proxy("destroy", ...args);
246057
+ }
246058
+ destroySoon(...args) {
246059
+ return this.#proxy("destroySoon", ...args);
246060
+ }
246061
+ close(...args) {
246062
+ return this.#proxy("close", ...args);
246063
+ }
246064
+ }
246065
+ module.exports = MuteStream;
246066
+ });
246067
+
246068
246068
  // ../../node_modules/.bun/abitype@1.1.0+0c447f3ab58cb56e/node_modules/abitype/dist/esm/version.js
246069
246069
  var version2 = "1.1.0";
246070
246070
 
@@ -261745,14 +261745,7 @@ var {
261745
261745
  Help
261746
261746
  } = import__.default;
261747
261747
 
261748
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
261749
- var isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
261750
- var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
261751
- var isBackspaceKey = (key) => key.name === "backspace";
261752
- var isTabKey = (key) => key.name === "tab";
261753
- var isNumberKey = (key) => "1234567890".includes(key.name);
261754
- var isEnterKey = (key) => key.name === "enter" || key.name === "return";
261755
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
261748
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
261756
261749
  class AbortPromptError extends Error {
261757
261750
  name = "AbortPromptError";
261758
261751
  message = "Prompt was aborted";
@@ -261770,637 +261763,9 @@ class CancelPromptError extends Error {
261770
261763
  class ExitPromptError extends Error {
261771
261764
  name = "ExitPromptError";
261772
261765
  }
261773
-
261774
- class HookError extends Error {
261775
- name = "HookError";
261776
- }
261777
-
261778
261766
  class ValidationError extends Error {
261779
261767
  name = "ValidationError";
261780
261768
  }
261781
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
261782
- import { AsyncResource as AsyncResource2 } from "node:async_hooks";
261783
-
261784
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
261785
- import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
261786
- var hookStorage = new AsyncLocalStorage;
261787
- function createStore(rl) {
261788
- const store = {
261789
- rl,
261790
- hooks: [],
261791
- hooksCleanup: [],
261792
- hooksEffect: [],
261793
- index: 0,
261794
- handleChange() {}
261795
- };
261796
- return store;
261797
- }
261798
- function withHooks(rl, cb) {
261799
- const store = createStore(rl);
261800
- return hookStorage.run(store, () => {
261801
- function cycle(render) {
261802
- store.handleChange = () => {
261803
- store.index = 0;
261804
- render();
261805
- };
261806
- store.handleChange();
261807
- }
261808
- return cb(cycle);
261809
- });
261810
- }
261811
- function getStore() {
261812
- const store = hookStorage.getStore();
261813
- if (!store) {
261814
- throw new HookError("[Inquirer] Hook functions can only be called from within a prompt");
261815
- }
261816
- return store;
261817
- }
261818
- function readline() {
261819
- return getStore().rl;
261820
- }
261821
- function withUpdates(fn) {
261822
- const wrapped = (...args) => {
261823
- const store = getStore();
261824
- let shouldUpdate = false;
261825
- const oldHandleChange = store.handleChange;
261826
- store.handleChange = () => {
261827
- shouldUpdate = true;
261828
- };
261829
- const returnValue = fn(...args);
261830
- if (shouldUpdate) {
261831
- oldHandleChange();
261832
- }
261833
- store.handleChange = oldHandleChange;
261834
- return returnValue;
261835
- };
261836
- return AsyncResource.bind(wrapped);
261837
- }
261838
- function withPointer(cb) {
261839
- const store = getStore();
261840
- const { index } = store;
261841
- const pointer = {
261842
- get() {
261843
- return store.hooks[index];
261844
- },
261845
- set(value) {
261846
- store.hooks[index] = value;
261847
- },
261848
- initialized: index in store.hooks
261849
- };
261850
- const returnValue = cb(pointer);
261851
- store.index++;
261852
- return returnValue;
261853
- }
261854
- function handleChange() {
261855
- getStore().handleChange();
261856
- }
261857
- var effectScheduler = {
261858
- queue(cb) {
261859
- const store = getStore();
261860
- const { index } = store;
261861
- store.hooksEffect.push(() => {
261862
- store.hooksCleanup[index]?.();
261863
- const cleanFn = cb(readline());
261864
- if (cleanFn != null && typeof cleanFn !== "function") {
261865
- throw new ValidationError("useEffect return value must be a cleanup function or nothing.");
261866
- }
261867
- store.hooksCleanup[index] = cleanFn;
261868
- });
261869
- },
261870
- run() {
261871
- const store = getStore();
261872
- withUpdates(() => {
261873
- store.hooksEffect.forEach((effect) => {
261874
- effect();
261875
- });
261876
- store.hooksEffect.length = 0;
261877
- })();
261878
- },
261879
- clearAll() {
261880
- const store = getStore();
261881
- store.hooksCleanup.forEach((cleanFn) => {
261882
- cleanFn?.();
261883
- });
261884
- store.hooksEffect.length = 0;
261885
- store.hooksCleanup.length = 0;
261886
- }
261887
- };
261888
-
261889
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
261890
- function useState(defaultValue) {
261891
- return withPointer((pointer) => {
261892
- const setState = AsyncResource2.bind(function setState(newValue) {
261893
- if (pointer.get() !== newValue) {
261894
- pointer.set(newValue);
261895
- handleChange();
261896
- }
261897
- });
261898
- if (pointer.initialized) {
261899
- return [pointer.get(), setState];
261900
- }
261901
- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;
261902
- pointer.set(value);
261903
- return [value, setState];
261904
- });
261905
- }
261906
-
261907
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
261908
- function useEffect(cb, depArray) {
261909
- withPointer((pointer) => {
261910
- const oldDeps = pointer.get();
261911
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));
261912
- if (hasChanged) {
261913
- effectScheduler.queue(cb);
261914
- }
261915
- pointer.set(depArray);
261916
- });
261917
- }
261918
-
261919
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
261920
- var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
261921
-
261922
- // ../../node_modules/.bun/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
261923
- import process2 from "node:process";
261924
- function isUnicodeSupported() {
261925
- if (process2.platform !== "win32") {
261926
- return process2.env["TERM"] !== "linux";
261927
- }
261928
- return Boolean(process2.env["WT_SESSION"]) || Boolean(process2.env["TERMINUS_SUBLIME"]) || process2.env["ConEmuTask"] === "{cmd::Cmder}" || process2.env["TERM_PROGRAM"] === "Terminus-Sublime" || process2.env["TERM_PROGRAM"] === "vscode" || process2.env["TERM"] === "xterm-256color" || process2.env["TERM"] === "alacritty" || process2.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
261929
- }
261930
- var common = {
261931
- circleQuestionMark: "(?)",
261932
- questionMarkPrefix: "(?)",
261933
- square: "█",
261934
- squareDarkShade: "▓",
261935
- squareMediumShade: "▒",
261936
- squareLightShade: "░",
261937
- squareTop: "▀",
261938
- squareBottom: "▄",
261939
- squareLeft: "▌",
261940
- squareRight: "▐",
261941
- squareCenter: "■",
261942
- bullet: "●",
261943
- dot: "․",
261944
- ellipsis: "…",
261945
- pointerSmall: "›",
261946
- triangleUp: "▲",
261947
- triangleUpSmall: "▴",
261948
- triangleDown: "▼",
261949
- triangleDownSmall: "▾",
261950
- triangleLeftSmall: "◂",
261951
- triangleRightSmall: "▸",
261952
- home: "⌂",
261953
- heart: "♥",
261954
- musicNote: "♪",
261955
- musicNoteBeamed: "♫",
261956
- arrowUp: "↑",
261957
- arrowDown: "↓",
261958
- arrowLeft: "←",
261959
- arrowRight: "→",
261960
- arrowLeftRight: "↔",
261961
- arrowUpDown: "↕",
261962
- almostEqual: "≈",
261963
- notEqual: "≠",
261964
- lessOrEqual: "≤",
261965
- greaterOrEqual: "≥",
261966
- identical: "≡",
261967
- infinity: "∞",
261968
- subscriptZero: "₀",
261969
- subscriptOne: "₁",
261970
- subscriptTwo: "₂",
261971
- subscriptThree: "₃",
261972
- subscriptFour: "₄",
261973
- subscriptFive: "₅",
261974
- subscriptSix: "₆",
261975
- subscriptSeven: "₇",
261976
- subscriptEight: "₈",
261977
- subscriptNine: "₉",
261978
- oneHalf: "½",
261979
- oneThird: "⅓",
261980
- oneQuarter: "¼",
261981
- oneFifth: "⅕",
261982
- oneSixth: "⅙",
261983
- oneEighth: "⅛",
261984
- twoThirds: "⅔",
261985
- twoFifths: "⅖",
261986
- threeQuarters: "¾",
261987
- threeFifths: "⅗",
261988
- threeEighths: "⅜",
261989
- fourFifths: "⅘",
261990
- fiveSixths: "⅚",
261991
- fiveEighths: "⅝",
261992
- sevenEighths: "⅞",
261993
- line: "─",
261994
- lineBold: "━",
261995
- lineDouble: "═",
261996
- lineDashed0: "┄",
261997
- lineDashed1: "┅",
261998
- lineDashed2: "┈",
261999
- lineDashed3: "┉",
262000
- lineDashed4: "╌",
262001
- lineDashed5: "╍",
262002
- lineDashed6: "╴",
262003
- lineDashed7: "╶",
262004
- lineDashed8: "╸",
262005
- lineDashed9: "╺",
262006
- lineDashed10: "╼",
262007
- lineDashed11: "╾",
262008
- lineDashed12: "−",
262009
- lineDashed13: "–",
262010
- lineDashed14: "‐",
262011
- lineDashed15: "⁃",
262012
- lineVertical: "│",
262013
- lineVerticalBold: "┃",
262014
- lineVerticalDouble: "║",
262015
- lineVerticalDashed0: "┆",
262016
- lineVerticalDashed1: "┇",
262017
- lineVerticalDashed2: "┊",
262018
- lineVerticalDashed3: "┋",
262019
- lineVerticalDashed4: "╎",
262020
- lineVerticalDashed5: "╏",
262021
- lineVerticalDashed6: "╵",
262022
- lineVerticalDashed7: "╷",
262023
- lineVerticalDashed8: "╹",
262024
- lineVerticalDashed9: "╻",
262025
- lineVerticalDashed10: "╽",
262026
- lineVerticalDashed11: "╿",
262027
- lineDownLeft: "┐",
262028
- lineDownLeftArc: "╮",
262029
- lineDownBoldLeftBold: "┓",
262030
- lineDownBoldLeft: "┒",
262031
- lineDownLeftBold: "┑",
262032
- lineDownDoubleLeftDouble: "╗",
262033
- lineDownDoubleLeft: "╖",
262034
- lineDownLeftDouble: "╕",
262035
- lineDownRight: "┌",
262036
- lineDownRightArc: "╭",
262037
- lineDownBoldRightBold: "┏",
262038
- lineDownBoldRight: "┎",
262039
- lineDownRightBold: "┍",
262040
- lineDownDoubleRightDouble: "╔",
262041
- lineDownDoubleRight: "╓",
262042
- lineDownRightDouble: "╒",
262043
- lineUpLeft: "┘",
262044
- lineUpLeftArc: "╯",
262045
- lineUpBoldLeftBold: "┛",
262046
- lineUpBoldLeft: "┚",
262047
- lineUpLeftBold: "┙",
262048
- lineUpDoubleLeftDouble: "╝",
262049
- lineUpDoubleLeft: "╜",
262050
- lineUpLeftDouble: "╛",
262051
- lineUpRight: "└",
262052
- lineUpRightArc: "╰",
262053
- lineUpBoldRightBold: "┗",
262054
- lineUpBoldRight: "┖",
262055
- lineUpRightBold: "┕",
262056
- lineUpDoubleRightDouble: "╚",
262057
- lineUpDoubleRight: "╙",
262058
- lineUpRightDouble: "╘",
262059
- lineUpDownLeft: "┤",
262060
- lineUpBoldDownBoldLeftBold: "┫",
262061
- lineUpBoldDownBoldLeft: "┨",
262062
- lineUpDownLeftBold: "┥",
262063
- lineUpBoldDownLeftBold: "┩",
262064
- lineUpDownBoldLeftBold: "┪",
262065
- lineUpDownBoldLeft: "┧",
262066
- lineUpBoldDownLeft: "┦",
262067
- lineUpDoubleDownDoubleLeftDouble: "╣",
262068
- lineUpDoubleDownDoubleLeft: "╢",
262069
- lineUpDownLeftDouble: "╡",
262070
- lineUpDownRight: "├",
262071
- lineUpBoldDownBoldRightBold: "┣",
262072
- lineUpBoldDownBoldRight: "┠",
262073
- lineUpDownRightBold: "┝",
262074
- lineUpBoldDownRightBold: "┡",
262075
- lineUpDownBoldRightBold: "┢",
262076
- lineUpDownBoldRight: "┟",
262077
- lineUpBoldDownRight: "┞",
262078
- lineUpDoubleDownDoubleRightDouble: "╠",
262079
- lineUpDoubleDownDoubleRight: "╟",
262080
- lineUpDownRightDouble: "╞",
262081
- lineDownLeftRight: "┬",
262082
- lineDownBoldLeftBoldRightBold: "┳",
262083
- lineDownLeftBoldRightBold: "┯",
262084
- lineDownBoldLeftRight: "┰",
262085
- lineDownBoldLeftBoldRight: "┱",
262086
- lineDownBoldLeftRightBold: "┲",
262087
- lineDownLeftRightBold: "┮",
262088
- lineDownLeftBoldRight: "┭",
262089
- lineDownDoubleLeftDoubleRightDouble: "╦",
262090
- lineDownDoubleLeftRight: "╥",
262091
- lineDownLeftDoubleRightDouble: "╤",
262092
- lineUpLeftRight: "┴",
262093
- lineUpBoldLeftBoldRightBold: "┻",
262094
- lineUpLeftBoldRightBold: "┷",
262095
- lineUpBoldLeftRight: "┸",
262096
- lineUpBoldLeftBoldRight: "┹",
262097
- lineUpBoldLeftRightBold: "┺",
262098
- lineUpLeftRightBold: "┶",
262099
- lineUpLeftBoldRight: "┵",
262100
- lineUpDoubleLeftDoubleRightDouble: "╩",
262101
- lineUpDoubleLeftRight: "╨",
262102
- lineUpLeftDoubleRightDouble: "╧",
262103
- lineUpDownLeftRight: "┼",
262104
- lineUpBoldDownBoldLeftBoldRightBold: "╋",
262105
- lineUpDownBoldLeftBoldRightBold: "╈",
262106
- lineUpBoldDownLeftBoldRightBold: "╇",
262107
- lineUpBoldDownBoldLeftRightBold: "╊",
262108
- lineUpBoldDownBoldLeftBoldRight: "╉",
262109
- lineUpBoldDownLeftRight: "╀",
262110
- lineUpDownBoldLeftRight: "╁",
262111
- lineUpDownLeftBoldRight: "┽",
262112
- lineUpDownLeftRightBold: "┾",
262113
- lineUpBoldDownBoldLeftRight: "╂",
262114
- lineUpDownLeftBoldRightBold: "┿",
262115
- lineUpBoldDownLeftBoldRight: "╃",
262116
- lineUpBoldDownLeftRightBold: "╄",
262117
- lineUpDownBoldLeftBoldRight: "╅",
262118
- lineUpDownBoldLeftRightBold: "╆",
262119
- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
262120
- lineUpDoubleDownDoubleLeftRight: "╫",
262121
- lineUpDownLeftDoubleRightDouble: "╪",
262122
- lineCross: "╳",
262123
- lineBackslash: "╲",
262124
- lineSlash: "╱"
262125
- };
262126
- var specialMainSymbols = {
262127
- tick: "✔",
262128
- info: "ℹ",
262129
- warning: "⚠",
262130
- cross: "✘",
262131
- squareSmall: "◻",
262132
- squareSmallFilled: "◼",
262133
- circle: "◯",
262134
- circleFilled: "◉",
262135
- circleDotted: "◌",
262136
- circleDouble: "◎",
262137
- circleCircle: "ⓞ",
262138
- circleCross: "ⓧ",
262139
- circlePipe: "Ⓘ",
262140
- radioOn: "◉",
262141
- radioOff: "◯",
262142
- checkboxOn: "☒",
262143
- checkboxOff: "☐",
262144
- checkboxCircleOn: "ⓧ",
262145
- checkboxCircleOff: "Ⓘ",
262146
- pointer: "❯",
262147
- triangleUpOutline: "△",
262148
- triangleLeft: "◀",
262149
- triangleRight: "▶",
262150
- lozenge: "◆",
262151
- lozengeOutline: "◇",
262152
- hamburger: "☰",
262153
- smiley: "㋡",
262154
- mustache: "෴",
262155
- star: "★",
262156
- play: "▶",
262157
- nodejs: "⬢",
262158
- oneSeventh: "⅐",
262159
- oneNinth: "⅑",
262160
- oneTenth: "⅒"
262161
- };
262162
- var specialFallbackSymbols = {
262163
- tick: "√",
262164
- info: "i",
262165
- warning: "‼",
262166
- cross: "×",
262167
- squareSmall: "□",
262168
- squareSmallFilled: "■",
262169
- circle: "( )",
262170
- circleFilled: "(*)",
262171
- circleDotted: "( )",
262172
- circleDouble: "( )",
262173
- circleCircle: "(○)",
262174
- circleCross: "(×)",
262175
- circlePipe: "(│)",
262176
- radioOn: "(*)",
262177
- radioOff: "( )",
262178
- checkboxOn: "[×]",
262179
- checkboxOff: "[ ]",
262180
- checkboxCircleOn: "(×)",
262181
- checkboxCircleOff: "( )",
262182
- pointer: ">",
262183
- triangleUpOutline: "∆",
262184
- triangleLeft: "◄",
262185
- triangleRight: "►",
262186
- lozenge: "♦",
262187
- lozengeOutline: "◊",
262188
- hamburger: "≡",
262189
- smiley: "☺",
262190
- mustache: "┌─┐",
262191
- star: "✶",
262192
- play: "►",
262193
- nodejs: "♦",
262194
- oneSeventh: "1/7",
262195
- oneNinth: "1/9",
262196
- oneTenth: "1/10"
262197
- };
262198
- var mainSymbols = { ...common, ...specialMainSymbols };
262199
- var fallbackSymbols = {
262200
- ...common,
262201
- ...specialFallbackSymbols
262202
- };
262203
- var shouldUseMain = isUnicodeSupported();
262204
- var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
262205
- var esm_default = figures;
262206
- var replacements = Object.entries(specialMainSymbols);
262207
-
262208
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
262209
- var defaultTheme = {
262210
- prefix: {
262211
- idle: import_yoctocolors_cjs.default.blue("?"),
262212
- done: import_yoctocolors_cjs.default.green(esm_default.tick)
262213
- },
262214
- spinner: {
262215
- interval: 80,
262216
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs.default.yellow(frame))
262217
- },
262218
- style: {
262219
- answer: import_yoctocolors_cjs.default.cyan,
262220
- message: import_yoctocolors_cjs.default.bold,
262221
- error: (text) => import_yoctocolors_cjs.default.red(`> ${text}`),
262222
- defaultAnswer: (text) => import_yoctocolors_cjs.default.dim(`(${text})`),
262223
- help: import_yoctocolors_cjs.default.dim,
262224
- highlight: import_yoctocolors_cjs.default.cyan,
262225
- key: (text) => import_yoctocolors_cjs.default.cyan(import_yoctocolors_cjs.default.bold(`<${text}>`))
262226
- }
262227
- };
262228
-
262229
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
262230
- function isPlainObject(value) {
262231
- if (typeof value !== "object" || value === null)
262232
- return false;
262233
- let proto = value;
262234
- while (Object.getPrototypeOf(proto) !== null) {
262235
- proto = Object.getPrototypeOf(proto);
262236
- }
262237
- return Object.getPrototypeOf(value) === proto;
262238
- }
262239
- function deepMerge(...objects) {
262240
- const output = {};
262241
- for (const obj of objects) {
262242
- for (const [key, value] of Object.entries(obj)) {
262243
- const prevValue = output[key];
262244
- output[key] = isPlainObject(prevValue) && isPlainObject(value) ? deepMerge(prevValue, value) : value;
262245
- }
262246
- }
262247
- return output;
262248
- }
262249
- function makeTheme(...themes) {
262250
- const themesToMerge = [
262251
- defaultTheme,
262252
- ...themes.filter((theme) => theme != null)
262253
- ];
262254
- return deepMerge(...themesToMerge);
262255
- }
262256
-
262257
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
262258
- function usePrefix({ status = "idle", theme }) {
262259
- const [showLoader, setShowLoader] = useState(false);
262260
- const [tick, setTick] = useState(0);
262261
- const { prefix, spinner } = makeTheme(theme);
262262
- useEffect(() => {
262263
- if (status === "loading") {
262264
- let tickInterval;
262265
- let inc = -1;
262266
- const delayTimeout = setTimeout(() => {
262267
- setShowLoader(true);
262268
- tickInterval = setInterval(() => {
262269
- inc = inc + 1;
262270
- setTick(inc % spinner.frames.length);
262271
- }, spinner.interval);
262272
- }, 300);
262273
- return () => {
262274
- clearTimeout(delayTimeout);
262275
- clearInterval(tickInterval);
262276
- };
262277
- } else {
262278
- setShowLoader(false);
262279
- }
262280
- }, [status]);
262281
- if (showLoader) {
262282
- return spinner.frames[tick];
262283
- }
262284
- const iconName = status === "loading" ? "idle" : status;
262285
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
262286
- }
262287
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
262288
- function useMemo(fn, dependencies) {
262289
- return withPointer((pointer) => {
262290
- const prev = pointer.get();
262291
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
262292
- const value = fn();
262293
- pointer.set({ value, dependencies });
262294
- return value;
262295
- }
262296
- return prev.value;
262297
- });
262298
- }
262299
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
262300
- function useRef(val) {
262301
- return useState({ current: val })[0];
262302
- }
262303
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
262304
- function useKeypress(userHandler) {
262305
- const signal = useRef(userHandler);
262306
- signal.current = userHandler;
262307
- useEffect((rl) => {
262308
- let ignore = false;
262309
- const handler = withUpdates((_input, event) => {
262310
- if (ignore)
262311
- return;
262312
- signal.current(event, rl);
262313
- });
262314
- rl.input.on("keypress", handler);
262315
- return () => {
262316
- ignore = true;
262317
- rl.input.removeListener("keypress", handler);
262318
- };
262319
- }, []);
262320
- }
262321
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
262322
- var import_cli_width = __toESM(require_cli_width(), 1);
262323
- var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
262324
- function breakLines(content, width) {
262325
- return content.split(`
262326
- `).flatMap((line) => import_wrap_ansi.default(line, width, { trim: false, hard: true }).split(`
262327
- `).map((str) => str.trimEnd())).join(`
262328
- `);
262329
- }
262330
- function readlineWidth() {
262331
- return import_cli_width.default({ defaultWidth: 80, output: readline().output });
262332
- }
262333
-
262334
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
262335
- function usePointerPosition({ active, renderedItems, pageSize, loop }) {
262336
- const state = useRef({
262337
- lastPointer: active,
262338
- lastActive: undefined
262339
- });
262340
- const { lastPointer, lastActive } = state.current;
262341
- const middle = Math.floor(pageSize / 2);
262342
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
262343
- const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
262344
- let pointer = defaultPointerPosition;
262345
- if (renderedLength > pageSize) {
262346
- if (loop) {
262347
- pointer = lastPointer;
262348
- if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
262349
- pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
262350
- }
262351
- } else {
262352
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
262353
- pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
262354
- }
262355
- }
262356
- state.current.lastPointer = pointer;
262357
- state.current.lastActive = active;
262358
- return pointer;
262359
- }
262360
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
262361
- const width = readlineWidth();
262362
- const bound = (num) => (num % items.length + items.length) % items.length;
262363
- const renderedItems = items.map((item, index) => {
262364
- if (item == null)
262365
- return [];
262366
- return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
262367
- `);
262368
- });
262369
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
262370
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
262371
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
262372
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
262373
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
262374
- const pageBuffer = Array.from({ length: pageSize });
262375
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
262376
- const itemVisited = new Set([active]);
262377
- let bufferPointer = activeItemPosition + activeItem.length;
262378
- let itemPointer = bound(active + 1);
262379
- while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
262380
- const lines = renderItemAtIndex(itemPointer);
262381
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
262382
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
262383
- itemVisited.add(itemPointer);
262384
- bufferPointer += linesToAdd.length;
262385
- itemPointer = bound(itemPointer + 1);
262386
- }
262387
- bufferPointer = activeItemPosition - 1;
262388
- itemPointer = bound(active - 1);
262389
- while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
262390
- const lines = renderItemAtIndex(itemPointer);
262391
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
262392
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
262393
- itemVisited.add(itemPointer);
262394
- bufferPointer -= linesToAdd.length;
262395
- itemPointer = bound(itemPointer - 1);
262396
- }
262397
- return pageBuffer.filter((line) => typeof line === "string").join(`
262398
- `);
262399
- }
262400
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262401
- var import_mute_stream = __toESM(require_lib(), 1);
262402
- import * as readline2 from "node:readline";
262403
- import { AsyncResource as AsyncResource3 } from "node:async_hooks";
262404
261769
 
262405
261770
  // ../../node_modules/.bun/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
262406
261771
  var signals = [];
@@ -262413,7 +261778,7 @@ if (process.platform === "linux") {
262413
261778
  }
262414
261779
 
262415
261780
  // ../../node_modules/.bun/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
262416
- var processOk = (process3) => !!process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
261781
+ var processOk = (process2) => !!process2 && typeof process2 === "object" && typeof process2.removeListener === "function" && typeof process2.emit === "function" && typeof process2.reallyExit === "function" && typeof process2.listeners === "function" && typeof process2.kill === "function" && typeof process2.pid === "number" && typeof process2.on === "function";
262417
261782
  var kExitEmitter = Symbol.for("signal-exit emitter");
262418
261783
  var global2 = globalThis;
262419
261784
  var ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -262496,22 +261861,22 @@ class SignalExitFallback extends SignalExitBase {
262496
261861
  }
262497
261862
 
262498
261863
  class SignalExit extends SignalExitBase {
262499
- #hupSig = process3.platform === "win32" ? "SIGINT" : "SIGHUP";
261864
+ #hupSig = process2.platform === "win32" ? "SIGINT" : "SIGHUP";
262500
261865
  #emitter = new Emitter;
262501
261866
  #process;
262502
261867
  #originalProcessEmit;
262503
261868
  #originalProcessReallyExit;
262504
261869
  #sigListeners = {};
262505
261870
  #loaded = false;
262506
- constructor(process3) {
261871
+ constructor(process2) {
262507
261872
  super();
262508
- this.#process = process3;
261873
+ this.#process = process2;
262509
261874
  this.#sigListeners = {};
262510
261875
  for (const sig of signals) {
262511
261876
  this.#sigListeners[sig] = () => {
262512
261877
  const listeners = this.#process.listeners(sig);
262513
261878
  let { count } = this.#emitter;
262514
- const p = process3;
261879
+ const p = process2;
262515
261880
  if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
262516
261881
  count += p.__signal_exit_emitter__.count;
262517
261882
  }
@@ -262520,12 +261885,12 @@ class SignalExit extends SignalExitBase {
262520
261885
  const ret = this.#emitter.emit("exit", null, sig);
262521
261886
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
262522
261887
  if (!ret)
262523
- process3.kill(process3.pid, s);
261888
+ process2.kill(process2.pid, s);
262524
261889
  }
262525
261890
  };
262526
261891
  }
262527
- this.#originalProcessReallyExit = process3.reallyExit;
262528
- this.#originalProcessEmit = process3.emit;
261892
+ this.#originalProcessReallyExit = process2.reallyExit;
261893
+ this.#originalProcessEmit = process2.emit;
262529
261894
  }
262530
261895
  onExit(cb, opts) {
262531
261896
  if (!processOk(this.#process)) {
@@ -262603,210 +261968,13 @@ class SignalExit extends SignalExitBase {
262603
261968
  }
262604
261969
  }
262605
261970
  }
262606
- var process3 = globalThis.process;
261971
+ var process2 = globalThis.process;
262607
261972
  var {
262608
261973
  onExit,
262609
261974
  load,
262610
261975
  unload
262611
- } = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
262612
-
262613
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
262614
- import { stripVTControlCharacters } from "node:util";
262615
-
262616
- // ../../node_modules/.bun/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
262617
- var ESC = "\x1B[";
262618
- var cursorLeft = ESC + "G";
262619
- var cursorHide = ESC + "?25l";
262620
- var cursorShow = ESC + "?25h";
262621
- var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
262622
- var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
262623
- var cursorTo = (x, y) => {
262624
- if (typeof y === "number" && !Number.isNaN(y)) {
262625
- return `${ESC}${y + 1};${x + 1}H`;
262626
- }
262627
- return `${ESC}${x + 1}G`;
262628
- };
262629
- var eraseLine = ESC + "2K";
262630
- var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
262631
-
262632
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
262633
- var height = (content) => content.split(`
262634
- `).length;
262635
- var lastLine = (content) => content.split(`
262636
- `).pop() ?? "";
262637
-
262638
- class ScreenManager {
262639
- height = 0;
262640
- extraLinesUnderPrompt = 0;
262641
- cursorPos;
262642
- rl;
262643
- constructor(rl) {
262644
- this.rl = rl;
262645
- this.cursorPos = rl.getCursorPos();
262646
- }
262647
- write(content) {
262648
- this.rl.output.unmute();
262649
- this.rl.output.write(content);
262650
- this.rl.output.mute();
262651
- }
262652
- render(content, bottomContent = "") {
262653
- const promptLine = lastLine(content);
262654
- const rawPromptLine = stripVTControlCharacters(promptLine);
262655
- let prompt = rawPromptLine;
262656
- if (this.rl.line.length > 0) {
262657
- prompt = prompt.slice(0, -this.rl.line.length);
262658
- }
262659
- this.rl.setPrompt(prompt);
262660
- this.cursorPos = this.rl.getCursorPos();
262661
- const width = readlineWidth();
262662
- content = breakLines(content, width);
262663
- bottomContent = breakLines(bottomContent, width);
262664
- if (rawPromptLine.length % width === 0) {
262665
- content += `
262666
- `;
262667
- }
262668
- let output = content + (bottomContent ? `
262669
- ` + bottomContent : "");
262670
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
262671
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
262672
- if (bottomContentHeight > 0)
262673
- output += cursorUp(bottomContentHeight);
262674
- output += cursorTo(this.cursorPos.cols);
262675
- this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
262676
- this.extraLinesUnderPrompt = bottomContentHeight;
262677
- this.height = height(output);
262678
- }
262679
- checkCursorPos() {
262680
- const cursorPos = this.rl.getCursorPos();
262681
- if (cursorPos.cols !== this.cursorPos.cols) {
262682
- this.write(cursorTo(cursorPos.cols));
262683
- this.cursorPos = cursorPos;
262684
- }
262685
- }
262686
- done({ clearContent }) {
262687
- this.rl.setPrompt("");
262688
- let output = cursorDown(this.extraLinesUnderPrompt);
262689
- output += clearContent ? eraseLines(this.height) : `
262690
- `;
262691
- output += cursorShow;
262692
- this.write(output);
262693
- this.rl.close();
262694
- }
262695
- }
261976
+ } = signalExitWrap(processOk(process2) ? new SignalExit(process2) : new SignalExitFallback);
262696
261977
 
262697
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
262698
- class PromisePolyfill extends Promise {
262699
- static withResolver() {
262700
- let resolve;
262701
- let reject;
262702
- const promise = new Promise((res, rej) => {
262703
- resolve = res;
262704
- reject = rej;
262705
- });
262706
- return { promise, resolve, reject };
262707
- }
262708
- }
262709
-
262710
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262711
- function getCallSites() {
262712
- const _prepareStackTrace = Error.prepareStackTrace;
262713
- let result = [];
262714
- try {
262715
- Error.prepareStackTrace = (_, callSites) => {
262716
- const callSitesWithoutCurrent = callSites.slice(1);
262717
- result = callSitesWithoutCurrent;
262718
- return callSitesWithoutCurrent;
262719
- };
262720
- new Error().stack;
262721
- } catch {
262722
- return result;
262723
- }
262724
- Error.prepareStackTrace = _prepareStackTrace;
262725
- return result;
262726
- }
262727
- function createPrompt(view) {
262728
- const callSites = getCallSites();
262729
- const prompt = (config, context = {}) => {
262730
- const { input = process.stdin, signal } = context;
262731
- const cleanups = new Set;
262732
- const output = new import_mute_stream.default;
262733
- output.pipe(context.output ?? process.stdout);
262734
- const rl = readline2.createInterface({
262735
- terminal: true,
262736
- input,
262737
- output
262738
- });
262739
- const screen = new ScreenManager(rl);
262740
- const { promise, resolve, reject } = PromisePolyfill.withResolver();
262741
- const cancel = () => reject(new CancelPromptError);
262742
- if (signal) {
262743
- const abort = () => reject(new AbortPromptError({ cause: signal.reason }));
262744
- if (signal.aborted) {
262745
- abort();
262746
- return Object.assign(promise, { cancel });
262747
- }
262748
- signal.addEventListener("abort", abort);
262749
- cleanups.add(() => signal.removeEventListener("abort", abort));
262750
- }
262751
- cleanups.add(onExit((code, signal2) => {
262752
- reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal2}`));
262753
- }));
262754
- const sigint = () => reject(new ExitPromptError(`User force closed the prompt with SIGINT`));
262755
- rl.on("SIGINT", sigint);
262756
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
262757
- const checkCursorPos = () => screen.checkCursorPos();
262758
- rl.input.on("keypress", checkCursorPos);
262759
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
262760
- return withHooks(rl, (cycle) => {
262761
- const hooksCleanup = AsyncResource3.bind(() => effectScheduler.clearAll());
262762
- rl.on("close", hooksCleanup);
262763
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
262764
- cycle(() => {
262765
- try {
262766
- const nextView = view(config, (value) => {
262767
- setImmediate(() => resolve(value));
262768
- });
262769
- if (nextView === undefined) {
262770
- const callerFilename = callSites[1]?.getFileName();
262771
- throw new Error(`Prompt functions must return a string.
262772
- at ${callerFilename}`);
262773
- }
262774
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
262775
- screen.render(content, bottomContent);
262776
- effectScheduler.run();
262777
- } catch (error) {
262778
- reject(error);
262779
- }
262780
- });
262781
- return Object.assign(promise.then((answer) => {
262782
- effectScheduler.clearAll();
262783
- return answer;
262784
- }, (error) => {
262785
- effectScheduler.clearAll();
262786
- throw error;
262787
- }).finally(() => {
262788
- cleanups.forEach((cleanup) => cleanup());
262789
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
262790
- output.end();
262791
- }).then(() => promise), { cancel });
262792
- });
262793
- };
262794
- return prompt;
262795
- }
262796
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
262797
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
262798
- class Separator {
262799
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
262800
- type = "separator";
262801
- constructor(separator) {
262802
- if (separator) {
262803
- this.separator = separator;
262804
- }
262805
- }
262806
- static isSeparator(choice) {
262807
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
262808
- }
262809
- }
262810
261978
  // ../../node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
262811
261979
  var exports_base = {};
262812
261980
  __export(exports_base, {
@@ -262930,16 +262098,16 @@ var isInCi = check("CI") || check("CONTINUOUS_INTEGRATION");
262930
262098
  var is_in_ci_default = isInCi;
262931
262099
 
262932
262100
  // ../../node_modules/.bun/yocto-spinner@1.0.0/node_modules/yocto-spinner/index.js
262933
- import process4 from "node:process";
262934
- import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
262935
- var isUnicodeSupported2 = process4.platform !== "win32" || Boolean(process4.env.WT_SESSION) || process4.env.TERM_PROGRAM === "vscode";
262936
- var isInteractive = (stream) => Boolean(stream.isTTY && process4.env.TERM !== "dumb" && !("CI" in process4.env));
262937
- var infoSymbol = exports_base.blue(isUnicodeSupported2 ? "ℹ" : "i");
262938
- var successSymbol = exports_base.green(isUnicodeSupported2 ? "✔" : "√");
262939
- var warningSymbol = exports_base.yellow(isUnicodeSupported2 ? "⚠" : "‼");
262940
- var errorSymbol = exports_base.red(isUnicodeSupported2 ? "✖" : "×");
262101
+ import process3 from "node:process";
262102
+ import { stripVTControlCharacters } from "node:util";
262103
+ var isUnicodeSupported = process3.platform !== "win32" || Boolean(process3.env.WT_SESSION) || process3.env.TERM_PROGRAM === "vscode";
262104
+ var isInteractive = (stream) => Boolean(stream.isTTY && process3.env.TERM !== "dumb" && !("CI" in process3.env));
262105
+ var infoSymbol = exports_base.blue(isUnicodeSupported ? "ℹ" : "i");
262106
+ var successSymbol = exports_base.green(isUnicodeSupported ? "✔" : "√");
262107
+ var warningSymbol = exports_base.yellow(isUnicodeSupported ? "⚠" : "‼");
262108
+ var errorSymbol = exports_base.red(isUnicodeSupported ? "✖" : "×");
262941
262109
  var defaultSpinner = {
262942
- frames: isUnicodeSupported2 ? [
262110
+ frames: isUnicodeSupported ? [
262943
262111
  "⠋",
262944
262112
  "⠙",
262945
262113
  "⠹",
@@ -262977,7 +262145,7 @@ class YoctoSpinner {
262977
262145
  this.#frames = spinner.frames;
262978
262146
  this.#interval = spinner.interval;
262979
262147
  this.#text = options.text ?? "";
262980
- this.#stream = options.stream ?? process4.stderr;
262148
+ this.#stream = options.stream ?? process3.stderr;
262981
262149
  this.#color = options.color ?? "cyan";
262982
262150
  this.#isInteractive = isInteractive(this.#stream);
262983
262151
  this.#exitHandlerBound = this.#exitHandler.bind(this);
@@ -263088,7 +262256,7 @@ class YoctoSpinner {
263088
262256
  }
263089
262257
  #lineCount(text) {
263090
262258
  const width = this.#stream.columns ?? 80;
263091
- const lines = stripVTControlCharacters2(text).split(`
262259
+ const lines = stripVTControlCharacters(text).split(`
263092
262260
  `);
263093
262261
  let lineCount = 0;
263094
262262
  for (const line of lines) {
@@ -263107,19 +262275,19 @@ class YoctoSpinner {
263107
262275
  }
263108
262276
  }
263109
262277
  #subscribeToProcessEvents() {
263110
- process4.once("SIGINT", this.#exitHandlerBound);
263111
- process4.once("SIGTERM", this.#exitHandlerBound);
262278
+ process3.once("SIGINT", this.#exitHandlerBound);
262279
+ process3.once("SIGTERM", this.#exitHandlerBound);
263112
262280
  }
263113
262281
  #unsubscribeFromProcessEvents() {
263114
- process4.off("SIGINT", this.#exitHandlerBound);
263115
- process4.off("SIGTERM", this.#exitHandlerBound);
262282
+ process3.off("SIGINT", this.#exitHandlerBound);
262283
+ process3.off("SIGTERM", this.#exitHandlerBound);
263116
262284
  }
263117
262285
  #exitHandler(signal) {
263118
262286
  if (this.isSpinning) {
263119
262287
  this.stop();
263120
262288
  }
263121
262289
  const exitCode = signal === "SIGINT" ? 130 : signal === "SIGTERM" ? 143 : 1;
263122
- process4.exit(exitCode);
262290
+ process3.exit(exitCode);
263123
262291
  }
263124
262292
  }
263125
262293
  function yoctoSpinner(options) {
@@ -263957,7 +263125,7 @@ __export(exports_util, {
263957
263125
  jsonStringifyReplacer: () => jsonStringifyReplacer,
263958
263126
  joinValues: () => joinValues,
263959
263127
  issue: () => issue,
263960
- isPlainObject: () => isPlainObject2,
263128
+ isPlainObject: () => isPlainObject,
263961
263129
  isObject: () => isObject,
263962
263130
  hexToUint8Array: () => hexToUint8Array,
263963
263131
  getSizableOrigin: () => getSizableOrigin,
@@ -264139,7 +263307,7 @@ var allowsEval = cached(() => {
264139
263307
  return false;
264140
263308
  }
264141
263309
  });
264142
- function isPlainObject2(o) {
263310
+ function isPlainObject(o) {
264143
263311
  if (isObject(o) === false)
264144
263312
  return false;
264145
263313
  const ctor = o.constructor;
@@ -264154,7 +263322,7 @@ function isPlainObject2(o) {
264154
263322
  return true;
264155
263323
  }
264156
263324
  function shallowClone(o) {
264157
- if (isPlainObject2(o))
263325
+ if (isPlainObject(o))
264158
263326
  return { ...o };
264159
263327
  if (Array.isArray(o))
264160
263328
  return [...o];
@@ -264337,7 +263505,7 @@ function omit(schema, mask) {
264337
263505
  return clone(schema, def);
264338
263506
  }
264339
263507
  function extend(schema, shape) {
264340
- if (!isPlainObject2(shape)) {
263508
+ if (!isPlainObject(shape)) {
264341
263509
  throw new Error("Invalid input to extend: expected a plain object");
264342
263510
  }
264343
263511
  const checks = schema._zod.def.checks;
@@ -264356,7 +263524,7 @@ function extend(schema, shape) {
264356
263524
  return clone(schema, def);
264357
263525
  }
264358
263526
  function safeExtend(schema, shape) {
264359
- if (!isPlainObject2(shape)) {
263527
+ if (!isPlainObject(shape)) {
264360
263528
  throw new Error("Invalid input to safeExtend: expected a plain object");
264361
263529
  }
264362
263530
  const def = {
@@ -266513,7 +265681,7 @@ function mergeValues(a, b) {
266513
265681
  if (a instanceof Date && b instanceof Date && +a === +b) {
266514
265682
  return { valid: true, data: a };
266515
265683
  }
266516
- if (isPlainObject2(a) && isPlainObject2(b)) {
265684
+ if (isPlainObject(a) && isPlainObject(b)) {
266517
265685
  const bKeys = Object.keys(b);
266518
265686
  const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
266519
265687
  const newObj = { ...a, ...b };
@@ -266643,7 +265811,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
266643
265811
  $ZodType.init(inst, def);
266644
265812
  inst._zod.parse = (payload, ctx) => {
266645
265813
  const input = payload.value;
266646
- if (!isPlainObject2(input)) {
265814
+ if (!isPlainObject(input)) {
266647
265815
  payload.issues.push({
266648
265816
  expected: "record",
266649
265817
  code: "invalid_type",
@@ -275818,7 +274986,7 @@ import { readFile, stat, writeFile } from "node:fs/promises";
275818
274986
  import path2 from "node:path";
275819
274987
 
275820
274988
  // ../../node_modules/.bun/locate-path@8.0.0/node_modules/locate-path/index.js
275821
- import process5 from "node:process";
274989
+ import process4 from "node:process";
275822
274990
  import path from "node:path";
275823
274991
  import fs, { promises as fsPromises } from "node:fs";
275824
274992
  import { fileURLToPath } from "node:url";
@@ -275983,7 +275151,7 @@ function checkType(type) {
275983
275151
  var matchType = (type, stat) => type === "both" ? stat.isFile() || stat.isDirectory() : stat[typeMappings[type]]();
275984
275152
  var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
275985
275153
  async function locatePath(paths, {
275986
- cwd = process5.cwd(),
275154
+ cwd = process4.cwd(),
275987
275155
  type = "file",
275988
275156
  allowSymlinks = true,
275989
275157
  concurrency,
@@ -280413,7 +279581,7 @@ class PathScurryBase {
280413
279581
  const dirs = new Set;
280414
279582
  const queue = [entry];
280415
279583
  let processing = 0;
280416
- const process6 = () => {
279584
+ const process5 = () => {
280417
279585
  let paused = false;
280418
279586
  while (!paused) {
280419
279587
  const dir = queue.shift();
@@ -280454,9 +279622,9 @@ class PathScurryBase {
280454
279622
  }
280455
279623
  }
280456
279624
  if (paused && !results.flowing) {
280457
- results.once("drain", process6);
279625
+ results.once("drain", process5);
280458
279626
  } else if (!sync) {
280459
- process6();
279627
+ process5();
280460
279628
  }
280461
279629
  };
280462
279630
  let sync = true;
@@ -280464,7 +279632,7 @@ class PathScurryBase {
280464
279632
  sync = false;
280465
279633
  }
280466
279634
  };
280467
- process6();
279635
+ process5();
280468
279636
  return results;
280469
279637
  }
280470
279638
  streamSync(entry = this.cwd, opts = {}) {
@@ -280482,7 +279650,7 @@ class PathScurryBase {
280482
279650
  }
280483
279651
  const queue = [entry];
280484
279652
  let processing = 0;
280485
- const process6 = () => {
279653
+ const process5 = () => {
280486
279654
  let paused = false;
280487
279655
  while (!paused) {
280488
279656
  const dir = queue.shift();
@@ -280516,9 +279684,9 @@ class PathScurryBase {
280516
279684
  }
280517
279685
  }
280518
279686
  if (paused && !results.flowing)
280519
- results.once("drain", process6);
279687
+ results.once("drain", process5);
280520
279688
  };
280521
- process6();
279689
+ process5();
280522
279690
  return results;
280523
279691
  }
280524
279692
  chdir(path4 = this.cwd) {
@@ -282064,7 +281232,7 @@ function pruneCurrentEnv(currentEnv, env2) {
282064
281232
  var package_default = {
282065
281233
  name: "@settlemint/sdk-cli",
282066
281234
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
282067
- version: "2.6.4-pr396848ad",
281235
+ version: "2.6.4-pr4384f485",
282068
281236
  type: "module",
282069
281237
  private: false,
282070
281238
  license: "FSL-1.1-MIT",
@@ -282107,7 +281275,7 @@ var package_default = {
282107
281275
  },
282108
281276
  dependencies: {
282109
281277
  "@gql.tada/cli-utils": "1.7.1",
282110
- "@inquirer/core": "10.3.0",
281278
+ "@inquirer/core": "10.3.1",
282111
281279
  "node-fetch-native": "1.6.7",
282112
281280
  zod: "^4"
282113
281281
  },
@@ -282118,10 +281286,10 @@ var package_default = {
282118
281286
  "@inquirer/input": "4.2.5",
282119
281287
  "@inquirer/password": "4.0.21",
282120
281288
  "@inquirer/select": "4.4.0",
282121
- "@settlemint/sdk-hasura": "2.6.4-pr396848ad",
282122
- "@settlemint/sdk-js": "2.6.4-pr396848ad",
282123
- "@settlemint/sdk-utils": "2.6.4-pr396848ad",
282124
- "@settlemint/sdk-viem": "2.6.4-pr396848ad",
281289
+ "@settlemint/sdk-hasura": "2.6.4-pr4384f485",
281290
+ "@settlemint/sdk-js": "2.6.4-pr4384f485",
281291
+ "@settlemint/sdk-utils": "2.6.4-pr4384f485",
281292
+ "@settlemint/sdk-viem": "2.6.4-pr4384f485",
282125
281293
  "@types/node": "24.10.0",
282126
281294
  "@types/semver": "7.7.1",
282127
281295
  "@types/which": "3.0.4",
@@ -282138,7 +281306,7 @@ var package_default = {
282138
281306
  },
282139
281307
  peerDependencies: {
282140
281308
  hardhat: "<= 4",
282141
- "@settlemint/sdk-js": "2.6.4-pr396848ad"
281309
+ "@settlemint/sdk-js": "2.6.4-pr4384f485"
282142
281310
  },
282143
281311
  peerDependenciesMeta: {
282144
281312
  hardhat: {
@@ -282505,7 +281673,7 @@ var isPromiseLikeValue = (value) => {
282505
281673
  var casesExhausted = (value) => {
282506
281674
  throw new Error(`Unhandled case: ${String(value)}`);
282507
281675
  };
282508
- var isPlainObject3 = (value) => {
281676
+ var isPlainObject2 = (value) => {
282509
281677
  return typeof value === `object` && value !== null && !Array.isArray(value);
282510
281678
  };
282511
281679
 
@@ -282550,7 +281718,7 @@ var parseGraphQLExecutionResult = (result) => {
282550
281718
  _tag: `Batch`,
282551
281719
  executionResults: result.map(parseExecutionResult)
282552
281720
  };
282553
- } else if (isPlainObject3(result)) {
281721
+ } else if (isPlainObject2(result)) {
282554
281722
  return {
282555
281723
  _tag: `Single`,
282556
281724
  executionResult: parseExecutionResult(result)
@@ -282568,29 +281736,29 @@ var parseExecutionResult = (result) => {
282568
281736
  if (typeof result !== `object` || result === null) {
282569
281737
  throw new Error(`Invalid execution result: result is not object`);
282570
281738
  }
282571
- let errors4 = undefined;
281739
+ let errors3 = undefined;
282572
281740
  let data = undefined;
282573
281741
  let extensions = undefined;
282574
281742
  if (`errors` in result) {
282575
- if (!isPlainObject3(result.errors) && !Array.isArray(result.errors)) {
281743
+ if (!isPlainObject2(result.errors) && !Array.isArray(result.errors)) {
282576
281744
  throw new Error(`Invalid execution result: errors is not plain object OR array`);
282577
281745
  }
282578
- errors4 = result.errors;
281746
+ errors3 = result.errors;
282579
281747
  }
282580
281748
  if (`data` in result) {
282581
- if (!isPlainObject3(result.data) && result.data !== null) {
281749
+ if (!isPlainObject2(result.data) && result.data !== null) {
282582
281750
  throw new Error(`Invalid execution result: data is not plain object`);
282583
281751
  }
282584
281752
  data = result.data;
282585
281753
  }
282586
281754
  if (`extensions` in result) {
282587
- if (!isPlainObject3(result.extensions))
281755
+ if (!isPlainObject2(result.extensions))
282588
281756
  throw new Error(`Invalid execution result: extensions is not plain object`);
282589
281757
  extensions = result.extensions;
282590
281758
  }
282591
281759
  return {
282592
281760
  data,
282593
- errors: errors4,
281761
+ errors: errors3,
282594
281762
  extensions
282595
281763
  };
282596
281764
  };
@@ -285341,7 +284509,7 @@ import { dirname as dirname2, join as join2, resolve as resolve2 } from "node:pa
285341
284509
  // ../../node_modules/.bun/package-manager-detector@1.4.0/node_modules/package-manager-detector/dist/detect.mjs
285342
284510
  import fs2 from "node:fs/promises";
285343
284511
  import path4 from "node:path";
285344
- import process6 from "node:process";
284512
+ import process5 from "node:process";
285345
284513
 
285346
284514
  // ../../node_modules/.bun/package-manager-detector@1.4.0/node_modules/package-manager-detector/dist/constants.mjs
285347
284515
  var AGENTS = [
@@ -285384,7 +284552,7 @@ async function pathExists(path22, type2) {
285384
284552
  return false;
285385
284553
  }
285386
284554
  }
285387
- function* lookup(cwd = process6.cwd()) {
284555
+ function* lookup(cwd = process5.cwd()) {
285388
284556
  let directory = path4.resolve(cwd);
285389
284557
  const { root } = path4.parse(directory);
285390
284558
  while (directory && directory !== root) {
@@ -285494,7 +284662,7 @@ function isMetadataYarnClassic(metadataPath) {
285494
284662
  }
285495
284663
 
285496
284664
  // ../../node_modules/.bun/@antfu+install-pkg@1.1.0/node_modules/@antfu/install-pkg/dist/index.js
285497
- import process7 from "node:process";
284665
+ import process6 from "node:process";
285498
284666
  import { existsSync } from "node:fs";
285499
284667
  import { resolve } from "node:path";
285500
284668
  import process22 from "node:process";
@@ -286013,7 +285181,7 @@ var ve = (t3, e3, n2) => {
286013
285181
  var be = ve;
286014
285182
 
286015
285183
  // ../../node_modules/.bun/@antfu+install-pkg@1.1.0/node_modules/@antfu/install-pkg/dist/index.js
286016
- async function detectPackageManager(cwd = process7.cwd()) {
285184
+ async function detectPackageManager(cwd = process6.cwd()) {
286017
285185
  const result = await detect({
286018
285186
  cwd,
286019
285187
  onUnknown(packageManager) {
@@ -286057,7 +285225,7 @@ async function installPackage(names, options = {}) {
286057
285225
 
286058
285226
  // ../utils/dist/package-manager.js
286059
285227
  var import_console_table_printer3 = __toESM(require_dist2(), 1);
286060
- var import_package_json = __toESM(require_lib12(), 1);
285228
+ var import_package_json = __toESM(require_lib11(), 1);
286061
285229
  async function projectRoot2(fallbackToCwd = false, cwd) {
286062
285230
  const packageJsonPath = await findUp("package.json", { cwd });
286063
285231
  if (!packageJsonPath) {
@@ -288035,6 +287203,860 @@ function sanitizeName(value5, length = 35) {
288035
287203
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
288036
287204
  }
288037
287205
 
287206
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
287207
+ var isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
287208
+ var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
287209
+ var isBackspaceKey = (key) => key.name === "backspace";
287210
+ var isTabKey = (key) => key.name === "tab";
287211
+ var isNumberKey = (key) => "1234567890".includes(key.name);
287212
+ var isEnterKey = (key) => key.name === "enter" || key.name === "return";
287213
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
287214
+ class AbortPromptError2 extends Error {
287215
+ name = "AbortPromptError";
287216
+ message = "Prompt was aborted";
287217
+ constructor(options) {
287218
+ super();
287219
+ this.cause = options?.cause;
287220
+ }
287221
+ }
287222
+
287223
+ class CancelPromptError2 extends Error {
287224
+ name = "CancelPromptError";
287225
+ message = "Prompt was canceled";
287226
+ }
287227
+
287228
+ class ExitPromptError2 extends Error {
287229
+ name = "ExitPromptError";
287230
+ }
287231
+
287232
+ class HookError extends Error {
287233
+ name = "HookError";
287234
+ }
287235
+
287236
+ class ValidationError2 extends Error {
287237
+ name = "ValidationError";
287238
+ }
287239
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
287240
+ import { AsyncResource as AsyncResource2 } from "node:async_hooks";
287241
+
287242
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
287243
+ import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
287244
+ var hookStorage = new AsyncLocalStorage;
287245
+ function createStore(rl) {
287246
+ const store = {
287247
+ rl,
287248
+ hooks: [],
287249
+ hooksCleanup: [],
287250
+ hooksEffect: [],
287251
+ index: 0,
287252
+ handleChange() {}
287253
+ };
287254
+ return store;
287255
+ }
287256
+ function withHooks(rl, cb) {
287257
+ const store = createStore(rl);
287258
+ return hookStorage.run(store, () => {
287259
+ function cycle(render) {
287260
+ store.handleChange = () => {
287261
+ store.index = 0;
287262
+ render();
287263
+ };
287264
+ store.handleChange();
287265
+ }
287266
+ return cb(cycle);
287267
+ });
287268
+ }
287269
+ function getStore() {
287270
+ const store = hookStorage.getStore();
287271
+ if (!store) {
287272
+ throw new HookError("[Inquirer] Hook functions can only be called from within a prompt");
287273
+ }
287274
+ return store;
287275
+ }
287276
+ function readline() {
287277
+ return getStore().rl;
287278
+ }
287279
+ function withUpdates(fn) {
287280
+ const wrapped = (...args) => {
287281
+ const store = getStore();
287282
+ let shouldUpdate = false;
287283
+ const oldHandleChange = store.handleChange;
287284
+ store.handleChange = () => {
287285
+ shouldUpdate = true;
287286
+ };
287287
+ const returnValue = fn(...args);
287288
+ if (shouldUpdate) {
287289
+ oldHandleChange();
287290
+ }
287291
+ store.handleChange = oldHandleChange;
287292
+ return returnValue;
287293
+ };
287294
+ return AsyncResource.bind(wrapped);
287295
+ }
287296
+ function withPointer(cb) {
287297
+ const store = getStore();
287298
+ const { index } = store;
287299
+ const pointer = {
287300
+ get() {
287301
+ return store.hooks[index];
287302
+ },
287303
+ set(value5) {
287304
+ store.hooks[index] = value5;
287305
+ },
287306
+ initialized: index in store.hooks
287307
+ };
287308
+ const returnValue = cb(pointer);
287309
+ store.index++;
287310
+ return returnValue;
287311
+ }
287312
+ function handleChange() {
287313
+ getStore().handleChange();
287314
+ }
287315
+ var effectScheduler = {
287316
+ queue(cb) {
287317
+ const store = getStore();
287318
+ const { index } = store;
287319
+ store.hooksEffect.push(() => {
287320
+ store.hooksCleanup[index]?.();
287321
+ const cleanFn = cb(readline());
287322
+ if (cleanFn != null && typeof cleanFn !== "function") {
287323
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
287324
+ }
287325
+ store.hooksCleanup[index] = cleanFn;
287326
+ });
287327
+ },
287328
+ run() {
287329
+ const store = getStore();
287330
+ withUpdates(() => {
287331
+ store.hooksEffect.forEach((effect) => {
287332
+ effect();
287333
+ });
287334
+ store.hooksEffect.length = 0;
287335
+ })();
287336
+ },
287337
+ clearAll() {
287338
+ const store = getStore();
287339
+ store.hooksCleanup.forEach((cleanFn) => {
287340
+ cleanFn?.();
287341
+ });
287342
+ store.hooksEffect.length = 0;
287343
+ store.hooksCleanup.length = 0;
287344
+ }
287345
+ };
287346
+
287347
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
287348
+ function useState(defaultValue) {
287349
+ return withPointer((pointer) => {
287350
+ const setState = AsyncResource2.bind(function setState(newValue) {
287351
+ if (pointer.get() !== newValue) {
287352
+ pointer.set(newValue);
287353
+ handleChange();
287354
+ }
287355
+ });
287356
+ if (pointer.initialized) {
287357
+ return [pointer.get(), setState];
287358
+ }
287359
+ const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
287360
+ pointer.set(value5);
287361
+ return [value5, setState];
287362
+ });
287363
+ }
287364
+
287365
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
287366
+ function useEffect(cb, depArray) {
287367
+ withPointer((pointer) => {
287368
+ const oldDeps = pointer.get();
287369
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
287370
+ if (hasChanged) {
287371
+ effectScheduler.queue(cb);
287372
+ }
287373
+ pointer.set(depArray);
287374
+ });
287375
+ }
287376
+
287377
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
287378
+ var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
287379
+
287380
+ // ../../node_modules/.bun/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
287381
+ import process7 from "node:process";
287382
+ function isUnicodeSupported2() {
287383
+ if (process7.platform !== "win32") {
287384
+ return process7.env["TERM"] !== "linux";
287385
+ }
287386
+ return Boolean(process7.env["WT_SESSION"]) || Boolean(process7.env["TERMINUS_SUBLIME"]) || process7.env["ConEmuTask"] === "{cmd::Cmder}" || process7.env["TERM_PROGRAM"] === "Terminus-Sublime" || process7.env["TERM_PROGRAM"] === "vscode" || process7.env["TERM"] === "xterm-256color" || process7.env["TERM"] === "alacritty" || process7.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
287387
+ }
287388
+ var common = {
287389
+ circleQuestionMark: "(?)",
287390
+ questionMarkPrefix: "(?)",
287391
+ square: "█",
287392
+ squareDarkShade: "▓",
287393
+ squareMediumShade: "▒",
287394
+ squareLightShade: "░",
287395
+ squareTop: "▀",
287396
+ squareBottom: "▄",
287397
+ squareLeft: "▌",
287398
+ squareRight: "▐",
287399
+ squareCenter: "■",
287400
+ bullet: "●",
287401
+ dot: "․",
287402
+ ellipsis: "…",
287403
+ pointerSmall: "›",
287404
+ triangleUp: "▲",
287405
+ triangleUpSmall: "▴",
287406
+ triangleDown: "▼",
287407
+ triangleDownSmall: "▾",
287408
+ triangleLeftSmall: "◂",
287409
+ triangleRightSmall: "▸",
287410
+ home: "⌂",
287411
+ heart: "♥",
287412
+ musicNote: "♪",
287413
+ musicNoteBeamed: "♫",
287414
+ arrowUp: "↑",
287415
+ arrowDown: "↓",
287416
+ arrowLeft: "←",
287417
+ arrowRight: "→",
287418
+ arrowLeftRight: "↔",
287419
+ arrowUpDown: "↕",
287420
+ almostEqual: "≈",
287421
+ notEqual: "≠",
287422
+ lessOrEqual: "≤",
287423
+ greaterOrEqual: "≥",
287424
+ identical: "≡",
287425
+ infinity: "∞",
287426
+ subscriptZero: "₀",
287427
+ subscriptOne: "₁",
287428
+ subscriptTwo: "₂",
287429
+ subscriptThree: "₃",
287430
+ subscriptFour: "₄",
287431
+ subscriptFive: "₅",
287432
+ subscriptSix: "₆",
287433
+ subscriptSeven: "₇",
287434
+ subscriptEight: "₈",
287435
+ subscriptNine: "₉",
287436
+ oneHalf: "½",
287437
+ oneThird: "⅓",
287438
+ oneQuarter: "¼",
287439
+ oneFifth: "⅕",
287440
+ oneSixth: "⅙",
287441
+ oneEighth: "⅛",
287442
+ twoThirds: "⅔",
287443
+ twoFifths: "⅖",
287444
+ threeQuarters: "¾",
287445
+ threeFifths: "⅗",
287446
+ threeEighths: "⅜",
287447
+ fourFifths: "⅘",
287448
+ fiveSixths: "⅚",
287449
+ fiveEighths: "⅝",
287450
+ sevenEighths: "⅞",
287451
+ line: "─",
287452
+ lineBold: "━",
287453
+ lineDouble: "═",
287454
+ lineDashed0: "┄",
287455
+ lineDashed1: "┅",
287456
+ lineDashed2: "┈",
287457
+ lineDashed3: "┉",
287458
+ lineDashed4: "╌",
287459
+ lineDashed5: "╍",
287460
+ lineDashed6: "╴",
287461
+ lineDashed7: "╶",
287462
+ lineDashed8: "╸",
287463
+ lineDashed9: "╺",
287464
+ lineDashed10: "╼",
287465
+ lineDashed11: "╾",
287466
+ lineDashed12: "−",
287467
+ lineDashed13: "–",
287468
+ lineDashed14: "‐",
287469
+ lineDashed15: "⁃",
287470
+ lineVertical: "│",
287471
+ lineVerticalBold: "┃",
287472
+ lineVerticalDouble: "║",
287473
+ lineVerticalDashed0: "┆",
287474
+ lineVerticalDashed1: "┇",
287475
+ lineVerticalDashed2: "┊",
287476
+ lineVerticalDashed3: "┋",
287477
+ lineVerticalDashed4: "╎",
287478
+ lineVerticalDashed5: "╏",
287479
+ lineVerticalDashed6: "╵",
287480
+ lineVerticalDashed7: "╷",
287481
+ lineVerticalDashed8: "╹",
287482
+ lineVerticalDashed9: "╻",
287483
+ lineVerticalDashed10: "╽",
287484
+ lineVerticalDashed11: "╿",
287485
+ lineDownLeft: "┐",
287486
+ lineDownLeftArc: "╮",
287487
+ lineDownBoldLeftBold: "┓",
287488
+ lineDownBoldLeft: "┒",
287489
+ lineDownLeftBold: "┑",
287490
+ lineDownDoubleLeftDouble: "╗",
287491
+ lineDownDoubleLeft: "╖",
287492
+ lineDownLeftDouble: "╕",
287493
+ lineDownRight: "┌",
287494
+ lineDownRightArc: "╭",
287495
+ lineDownBoldRightBold: "┏",
287496
+ lineDownBoldRight: "┎",
287497
+ lineDownRightBold: "┍",
287498
+ lineDownDoubleRightDouble: "╔",
287499
+ lineDownDoubleRight: "╓",
287500
+ lineDownRightDouble: "╒",
287501
+ lineUpLeft: "┘",
287502
+ lineUpLeftArc: "╯",
287503
+ lineUpBoldLeftBold: "┛",
287504
+ lineUpBoldLeft: "┚",
287505
+ lineUpLeftBold: "┙",
287506
+ lineUpDoubleLeftDouble: "╝",
287507
+ lineUpDoubleLeft: "╜",
287508
+ lineUpLeftDouble: "╛",
287509
+ lineUpRight: "└",
287510
+ lineUpRightArc: "╰",
287511
+ lineUpBoldRightBold: "┗",
287512
+ lineUpBoldRight: "┖",
287513
+ lineUpRightBold: "┕",
287514
+ lineUpDoubleRightDouble: "╚",
287515
+ lineUpDoubleRight: "╙",
287516
+ lineUpRightDouble: "╘",
287517
+ lineUpDownLeft: "┤",
287518
+ lineUpBoldDownBoldLeftBold: "┫",
287519
+ lineUpBoldDownBoldLeft: "┨",
287520
+ lineUpDownLeftBold: "┥",
287521
+ lineUpBoldDownLeftBold: "┩",
287522
+ lineUpDownBoldLeftBold: "┪",
287523
+ lineUpDownBoldLeft: "┧",
287524
+ lineUpBoldDownLeft: "┦",
287525
+ lineUpDoubleDownDoubleLeftDouble: "╣",
287526
+ lineUpDoubleDownDoubleLeft: "╢",
287527
+ lineUpDownLeftDouble: "╡",
287528
+ lineUpDownRight: "├",
287529
+ lineUpBoldDownBoldRightBold: "┣",
287530
+ lineUpBoldDownBoldRight: "┠",
287531
+ lineUpDownRightBold: "┝",
287532
+ lineUpBoldDownRightBold: "┡",
287533
+ lineUpDownBoldRightBold: "┢",
287534
+ lineUpDownBoldRight: "┟",
287535
+ lineUpBoldDownRight: "┞",
287536
+ lineUpDoubleDownDoubleRightDouble: "╠",
287537
+ lineUpDoubleDownDoubleRight: "╟",
287538
+ lineUpDownRightDouble: "╞",
287539
+ lineDownLeftRight: "┬",
287540
+ lineDownBoldLeftBoldRightBold: "┳",
287541
+ lineDownLeftBoldRightBold: "┯",
287542
+ lineDownBoldLeftRight: "┰",
287543
+ lineDownBoldLeftBoldRight: "┱",
287544
+ lineDownBoldLeftRightBold: "┲",
287545
+ lineDownLeftRightBold: "┮",
287546
+ lineDownLeftBoldRight: "┭",
287547
+ lineDownDoubleLeftDoubleRightDouble: "╦",
287548
+ lineDownDoubleLeftRight: "╥",
287549
+ lineDownLeftDoubleRightDouble: "╤",
287550
+ lineUpLeftRight: "┴",
287551
+ lineUpBoldLeftBoldRightBold: "┻",
287552
+ lineUpLeftBoldRightBold: "┷",
287553
+ lineUpBoldLeftRight: "┸",
287554
+ lineUpBoldLeftBoldRight: "┹",
287555
+ lineUpBoldLeftRightBold: "┺",
287556
+ lineUpLeftRightBold: "┶",
287557
+ lineUpLeftBoldRight: "┵",
287558
+ lineUpDoubleLeftDoubleRightDouble: "╩",
287559
+ lineUpDoubleLeftRight: "╨",
287560
+ lineUpLeftDoubleRightDouble: "╧",
287561
+ lineUpDownLeftRight: "┼",
287562
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
287563
+ lineUpDownBoldLeftBoldRightBold: "╈",
287564
+ lineUpBoldDownLeftBoldRightBold: "╇",
287565
+ lineUpBoldDownBoldLeftRightBold: "╊",
287566
+ lineUpBoldDownBoldLeftBoldRight: "╉",
287567
+ lineUpBoldDownLeftRight: "╀",
287568
+ lineUpDownBoldLeftRight: "╁",
287569
+ lineUpDownLeftBoldRight: "┽",
287570
+ lineUpDownLeftRightBold: "┾",
287571
+ lineUpBoldDownBoldLeftRight: "╂",
287572
+ lineUpDownLeftBoldRightBold: "┿",
287573
+ lineUpBoldDownLeftBoldRight: "╃",
287574
+ lineUpBoldDownLeftRightBold: "╄",
287575
+ lineUpDownBoldLeftBoldRight: "╅",
287576
+ lineUpDownBoldLeftRightBold: "╆",
287577
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
287578
+ lineUpDoubleDownDoubleLeftRight: "╫",
287579
+ lineUpDownLeftDoubleRightDouble: "╪",
287580
+ lineCross: "╳",
287581
+ lineBackslash: "╲",
287582
+ lineSlash: "╱"
287583
+ };
287584
+ var specialMainSymbols = {
287585
+ tick: "✔",
287586
+ info: "ℹ",
287587
+ warning: "⚠",
287588
+ cross: "✘",
287589
+ squareSmall: "◻",
287590
+ squareSmallFilled: "◼",
287591
+ circle: "◯",
287592
+ circleFilled: "◉",
287593
+ circleDotted: "◌",
287594
+ circleDouble: "◎",
287595
+ circleCircle: "ⓞ",
287596
+ circleCross: "ⓧ",
287597
+ circlePipe: "Ⓘ",
287598
+ radioOn: "◉",
287599
+ radioOff: "◯",
287600
+ checkboxOn: "☒",
287601
+ checkboxOff: "☐",
287602
+ checkboxCircleOn: "ⓧ",
287603
+ checkboxCircleOff: "Ⓘ",
287604
+ pointer: "❯",
287605
+ triangleUpOutline: "△",
287606
+ triangleLeft: "◀",
287607
+ triangleRight: "▶",
287608
+ lozenge: "◆",
287609
+ lozengeOutline: "◇",
287610
+ hamburger: "☰",
287611
+ smiley: "㋡",
287612
+ mustache: "෴",
287613
+ star: "★",
287614
+ play: "▶",
287615
+ nodejs: "⬢",
287616
+ oneSeventh: "⅐",
287617
+ oneNinth: "⅑",
287618
+ oneTenth: "⅒"
287619
+ };
287620
+ var specialFallbackSymbols = {
287621
+ tick: "√",
287622
+ info: "i",
287623
+ warning: "‼",
287624
+ cross: "×",
287625
+ squareSmall: "□",
287626
+ squareSmallFilled: "■",
287627
+ circle: "( )",
287628
+ circleFilled: "(*)",
287629
+ circleDotted: "( )",
287630
+ circleDouble: "( )",
287631
+ circleCircle: "(○)",
287632
+ circleCross: "(×)",
287633
+ circlePipe: "(│)",
287634
+ radioOn: "(*)",
287635
+ radioOff: "( )",
287636
+ checkboxOn: "[×]",
287637
+ checkboxOff: "[ ]",
287638
+ checkboxCircleOn: "(×)",
287639
+ checkboxCircleOff: "( )",
287640
+ pointer: ">",
287641
+ triangleUpOutline: "∆",
287642
+ triangleLeft: "◄",
287643
+ triangleRight: "►",
287644
+ lozenge: "♦",
287645
+ lozengeOutline: "◊",
287646
+ hamburger: "≡",
287647
+ smiley: "☺",
287648
+ mustache: "┌─┐",
287649
+ star: "✶",
287650
+ play: "►",
287651
+ nodejs: "♦",
287652
+ oneSeventh: "1/7",
287653
+ oneNinth: "1/9",
287654
+ oneTenth: "1/10"
287655
+ };
287656
+ var mainSymbols = { ...common, ...specialMainSymbols };
287657
+ var fallbackSymbols = {
287658
+ ...common,
287659
+ ...specialFallbackSymbols
287660
+ };
287661
+ var shouldUseMain = isUnicodeSupported2();
287662
+ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
287663
+ var esm_default = figures;
287664
+ var replacements = Object.entries(specialMainSymbols);
287665
+
287666
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
287667
+ var defaultTheme = {
287668
+ prefix: {
287669
+ idle: import_yoctocolors_cjs.default.blue("?"),
287670
+ done: import_yoctocolors_cjs.default.green(esm_default.tick)
287671
+ },
287672
+ spinner: {
287673
+ interval: 80,
287674
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs.default.yellow(frame))
287675
+ },
287676
+ style: {
287677
+ answer: import_yoctocolors_cjs.default.cyan,
287678
+ message: import_yoctocolors_cjs.default.bold,
287679
+ error: (text2) => import_yoctocolors_cjs.default.red(`> ${text2}`),
287680
+ defaultAnswer: (text2) => import_yoctocolors_cjs.default.dim(`(${text2})`),
287681
+ help: import_yoctocolors_cjs.default.dim,
287682
+ highlight: import_yoctocolors_cjs.default.cyan,
287683
+ key: (text2) => import_yoctocolors_cjs.default.cyan(import_yoctocolors_cjs.default.bold(`<${text2}>`))
287684
+ }
287685
+ };
287686
+
287687
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
287688
+ function isPlainObject3(value5) {
287689
+ if (typeof value5 !== "object" || value5 === null)
287690
+ return false;
287691
+ let proto = value5;
287692
+ while (Object.getPrototypeOf(proto) !== null) {
287693
+ proto = Object.getPrototypeOf(proto);
287694
+ }
287695
+ return Object.getPrototypeOf(value5) === proto;
287696
+ }
287697
+ function deepMerge2(...objects) {
287698
+ const output = {};
287699
+ for (const obj of objects) {
287700
+ for (const [key, value5] of Object.entries(obj)) {
287701
+ const prevValue = output[key];
287702
+ output[key] = isPlainObject3(prevValue) && isPlainObject3(value5) ? deepMerge2(prevValue, value5) : value5;
287703
+ }
287704
+ }
287705
+ return output;
287706
+ }
287707
+ function makeTheme(...themes) {
287708
+ const themesToMerge = [
287709
+ defaultTheme,
287710
+ ...themes.filter((theme) => theme != null)
287711
+ ];
287712
+ return deepMerge2(...themesToMerge);
287713
+ }
287714
+
287715
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
287716
+ function usePrefix({ status = "idle", theme }) {
287717
+ const [showLoader, setShowLoader] = useState(false);
287718
+ const [tick, setTick] = useState(0);
287719
+ const { prefix, spinner: spinner2 } = makeTheme(theme);
287720
+ useEffect(() => {
287721
+ if (status === "loading") {
287722
+ let tickInterval;
287723
+ let inc = -1;
287724
+ const delayTimeout = setTimeout(() => {
287725
+ setShowLoader(true);
287726
+ tickInterval = setInterval(() => {
287727
+ inc = inc + 1;
287728
+ setTick(inc % spinner2.frames.length);
287729
+ }, spinner2.interval);
287730
+ }, 300);
287731
+ return () => {
287732
+ clearTimeout(delayTimeout);
287733
+ clearInterval(tickInterval);
287734
+ };
287735
+ } else {
287736
+ setShowLoader(false);
287737
+ }
287738
+ }, [status]);
287739
+ if (showLoader) {
287740
+ return spinner2.frames[tick];
287741
+ }
287742
+ const iconName = status === "loading" ? "idle" : status;
287743
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
287744
+ }
287745
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
287746
+ function useMemo(fn, dependencies) {
287747
+ return withPointer((pointer) => {
287748
+ const prev = pointer.get();
287749
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i7) => dep !== dependencies[i7])) {
287750
+ const value5 = fn();
287751
+ pointer.set({ value: value5, dependencies });
287752
+ return value5;
287753
+ }
287754
+ return prev.value;
287755
+ });
287756
+ }
287757
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
287758
+ function useRef(val) {
287759
+ return useState({ current: val })[0];
287760
+ }
287761
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
287762
+ function useKeypress(userHandler) {
287763
+ const signal = useRef(userHandler);
287764
+ signal.current = userHandler;
287765
+ useEffect((rl) => {
287766
+ let ignore = false;
287767
+ const handler = withUpdates((_input, event) => {
287768
+ if (ignore)
287769
+ return;
287770
+ signal.current(event, rl);
287771
+ });
287772
+ rl.input.on("keypress", handler);
287773
+ return () => {
287774
+ ignore = true;
287775
+ rl.input.removeListener("keypress", handler);
287776
+ };
287777
+ }, []);
287778
+ }
287779
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
287780
+ var import_cli_width = __toESM(require_cli_width(), 1);
287781
+ var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
287782
+ function breakLines(content, width) {
287783
+ return content.split(`
287784
+ `).flatMap((line) => import_wrap_ansi.default(line, width, { trim: false, hard: true }).split(`
287785
+ `).map((str) => str.trimEnd())).join(`
287786
+ `);
287787
+ }
287788
+ function readlineWidth() {
287789
+ return import_cli_width.default({ defaultWidth: 80, output: readline().output });
287790
+ }
287791
+
287792
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
287793
+ function usePointerPosition({ active, renderedItems, pageSize, loop }) {
287794
+ const state = useRef({
287795
+ lastPointer: active,
287796
+ lastActive: undefined
287797
+ });
287798
+ const { lastPointer, lastActive } = state.current;
287799
+ const middle = Math.floor(pageSize / 2);
287800
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
287801
+ const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
287802
+ let pointer = defaultPointerPosition;
287803
+ if (renderedLength > pageSize) {
287804
+ if (loop) {
287805
+ pointer = lastPointer;
287806
+ if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
287807
+ pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
287808
+ }
287809
+ } else {
287810
+ const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
287811
+ pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
287812
+ }
287813
+ }
287814
+ state.current.lastPointer = pointer;
287815
+ state.current.lastActive = active;
287816
+ return pointer;
287817
+ }
287818
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
287819
+ const width = readlineWidth();
287820
+ const bound = (num) => (num % items.length + items.length) % items.length;
287821
+ const renderedItems = items.map((item, index) => {
287822
+ if (item == null)
287823
+ return [];
287824
+ return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
287825
+ `);
287826
+ });
287827
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
287828
+ const renderItemAtIndex = (index) => renderedItems[index] ?? [];
287829
+ const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
287830
+ const activeItem = renderItemAtIndex(active).slice(0, pageSize);
287831
+ const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
287832
+ const pageBuffer = Array.from({ length: pageSize });
287833
+ pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
287834
+ const itemVisited = new Set([active]);
287835
+ let bufferPointer = activeItemPosition + activeItem.length;
287836
+ let itemPointer = bound(active + 1);
287837
+ while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
287838
+ const lines = renderItemAtIndex(itemPointer);
287839
+ const linesToAdd = lines.slice(0, pageSize - bufferPointer);
287840
+ pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
287841
+ itemVisited.add(itemPointer);
287842
+ bufferPointer += linesToAdd.length;
287843
+ itemPointer = bound(itemPointer + 1);
287844
+ }
287845
+ bufferPointer = activeItemPosition - 1;
287846
+ itemPointer = bound(active - 1);
287847
+ while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
287848
+ const lines = renderItemAtIndex(itemPointer);
287849
+ const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
287850
+ pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
287851
+ itemVisited.add(itemPointer);
287852
+ bufferPointer -= linesToAdd.length;
287853
+ itemPointer = bound(itemPointer - 1);
287854
+ }
287855
+ return pageBuffer.filter((line) => typeof line === "string").join(`
287856
+ `);
287857
+ }
287858
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
287859
+ var import_mute_stream = __toESM(require_lib12(), 1);
287860
+ import * as readline2 from "node:readline";
287861
+ import { AsyncResource as AsyncResource3 } from "node:async_hooks";
287862
+
287863
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
287864
+ import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
287865
+
287866
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
287867
+ var ESC = "\x1B[";
287868
+ var cursorLeft = ESC + "G";
287869
+ var cursorHide = ESC + "?25l";
287870
+ var cursorShow = ESC + "?25h";
287871
+ var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
287872
+ var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
287873
+ var cursorTo = (x6, y4) => {
287874
+ if (typeof y4 === "number" && !Number.isNaN(y4)) {
287875
+ return `${ESC}${y4 + 1};${x6 + 1}H`;
287876
+ }
287877
+ return `${ESC}${x6 + 1}G`;
287878
+ };
287879
+ var eraseLine = ESC + "2K";
287880
+ var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
287881
+
287882
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
287883
+ var height = (content) => content.split(`
287884
+ `).length;
287885
+ var lastLine = (content) => content.split(`
287886
+ `).pop() ?? "";
287887
+
287888
+ class ScreenManager {
287889
+ height = 0;
287890
+ extraLinesUnderPrompt = 0;
287891
+ cursorPos;
287892
+ rl;
287893
+ constructor(rl) {
287894
+ this.rl = rl;
287895
+ this.cursorPos = rl.getCursorPos();
287896
+ }
287897
+ write(content) {
287898
+ this.rl.output.unmute();
287899
+ this.rl.output.write(content);
287900
+ this.rl.output.mute();
287901
+ }
287902
+ render(content, bottomContent = "") {
287903
+ const promptLine = lastLine(content);
287904
+ const rawPromptLine = stripVTControlCharacters2(promptLine);
287905
+ let prompt = rawPromptLine;
287906
+ if (this.rl.line.length > 0) {
287907
+ prompt = prompt.slice(0, -this.rl.line.length);
287908
+ }
287909
+ this.rl.setPrompt(prompt);
287910
+ this.cursorPos = this.rl.getCursorPos();
287911
+ const width = readlineWidth();
287912
+ content = breakLines(content, width);
287913
+ bottomContent = breakLines(bottomContent, width);
287914
+ if (rawPromptLine.length % width === 0) {
287915
+ content += `
287916
+ `;
287917
+ }
287918
+ let output = content + (bottomContent ? `
287919
+ ` + bottomContent : "");
287920
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
287921
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
287922
+ if (bottomContentHeight > 0)
287923
+ output += cursorUp(bottomContentHeight);
287924
+ output += cursorTo(this.cursorPos.cols);
287925
+ this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
287926
+ this.extraLinesUnderPrompt = bottomContentHeight;
287927
+ this.height = height(output);
287928
+ }
287929
+ checkCursorPos() {
287930
+ const cursorPos = this.rl.getCursorPos();
287931
+ if (cursorPos.cols !== this.cursorPos.cols) {
287932
+ this.write(cursorTo(cursorPos.cols));
287933
+ this.cursorPos = cursorPos;
287934
+ }
287935
+ }
287936
+ done({ clearContent }) {
287937
+ this.rl.setPrompt("");
287938
+ let output = cursorDown(this.extraLinesUnderPrompt);
287939
+ output += clearContent ? eraseLines(this.height) : `
287940
+ `;
287941
+ output += cursorShow;
287942
+ this.write(output);
287943
+ this.rl.close();
287944
+ }
287945
+ }
287946
+
287947
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
287948
+ class PromisePolyfill extends Promise {
287949
+ static withResolver() {
287950
+ let resolve6;
287951
+ let reject;
287952
+ const promise2 = new Promise((res, rej) => {
287953
+ resolve6 = res;
287954
+ reject = rej;
287955
+ });
287956
+ return { promise: promise2, resolve: resolve6, reject };
287957
+ }
287958
+ }
287959
+
287960
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
287961
+ function getCallSites() {
287962
+ const _prepareStackTrace = Error.prepareStackTrace;
287963
+ let result = [];
287964
+ try {
287965
+ Error.prepareStackTrace = (_5, callSites) => {
287966
+ const callSitesWithoutCurrent = callSites.slice(1);
287967
+ result = callSitesWithoutCurrent;
287968
+ return callSitesWithoutCurrent;
287969
+ };
287970
+ new Error().stack;
287971
+ } catch {
287972
+ return result;
287973
+ }
287974
+ Error.prepareStackTrace = _prepareStackTrace;
287975
+ return result;
287976
+ }
287977
+ function createPrompt(view) {
287978
+ const callSites = getCallSites();
287979
+ const prompt = (config3, context = {}) => {
287980
+ const { input = process.stdin, signal } = context;
287981
+ const cleanups = new Set;
287982
+ const output = new import_mute_stream.default;
287983
+ output.pipe(context.output ?? process.stdout);
287984
+ const rl = readline2.createInterface({
287985
+ terminal: true,
287986
+ input,
287987
+ output
287988
+ });
287989
+ const screen = new ScreenManager(rl);
287990
+ const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill.withResolver();
287991
+ const cancel3 = () => reject(new CancelPromptError2);
287992
+ if (signal) {
287993
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
287994
+ if (signal.aborted) {
287995
+ abort();
287996
+ return Object.assign(promise2, { cancel: cancel3 });
287997
+ }
287998
+ signal.addEventListener("abort", abort);
287999
+ cleanups.add(() => signal.removeEventListener("abort", abort));
288000
+ }
288001
+ cleanups.add(onExit((code2, signal2) => {
288002
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
288003
+ }));
288004
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
288005
+ rl.on("SIGINT", sigint);
288006
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
288007
+ const checkCursorPos = () => screen.checkCursorPos();
288008
+ rl.input.on("keypress", checkCursorPos);
288009
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
288010
+ return withHooks(rl, (cycle) => {
288011
+ const hooksCleanup = AsyncResource3.bind(() => effectScheduler.clearAll());
288012
+ rl.on("close", hooksCleanup);
288013
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
288014
+ cycle(() => {
288015
+ try {
288016
+ const nextView = view(config3, (value5) => {
288017
+ setImmediate(() => resolve6(value5));
288018
+ });
288019
+ if (nextView === undefined) {
288020
+ const callerFilename = callSites[1]?.getFileName();
288021
+ throw new Error(`Prompt functions must return a string.
288022
+ at ${callerFilename}`);
288023
+ }
288024
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
288025
+ screen.render(content, bottomContent);
288026
+ effectScheduler.run();
288027
+ } catch (error51) {
288028
+ reject(error51);
288029
+ }
288030
+ });
288031
+ return Object.assign(promise2.then((answer) => {
288032
+ effectScheduler.clearAll();
288033
+ return answer;
288034
+ }, (error51) => {
288035
+ effectScheduler.clearAll();
288036
+ throw error51;
288037
+ }).finally(() => {
288038
+ cleanups.forEach((cleanup) => cleanup());
288039
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
288040
+ output.end();
288041
+ }).then(() => promise2), { cancel: cancel3 });
288042
+ });
288043
+ };
288044
+ return prompt;
288045
+ }
288046
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
288047
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
288048
+ class Separator {
288049
+ separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
288050
+ type = "separator";
288051
+ constructor(separator) {
288052
+ if (separator) {
288053
+ this.separator = separator;
288054
+ }
288055
+ }
288056
+ static isSeparator(choice) {
288057
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
288058
+ }
288059
+ }
288038
288060
  // ../../node_modules/.bun/@inquirer+input@4.2.5+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
288039
288061
  var inputTheme = {
288040
288062
  validationFailureMode: "keep"
@@ -288179,7 +288201,7 @@ var esm_default3 = createPrompt((config3, done) => {
288179
288201
  const first = items.findIndex(isSelectable);
288180
288202
  const last = items.findLastIndex(isSelectable);
288181
288203
  if (first === -1) {
288182
- throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
288204
+ throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
288183
288205
  }
288184
288206
  return { first, last };
288185
288207
  }, [items]);
@@ -322138,7 +322160,7 @@ function formatUseCaseName(name4) {
322138
322160
  }
322139
322161
 
322140
322162
  // src/utils/smart-contract-set/execute-foundry-command.ts
322141
- var import_which = __toESM(require_lib5(), 1);
322163
+ var import_which = __toESM(require_lib4(), 1);
322142
322164
  async function executeFoundryCommand(command, args) {
322143
322165
  try {
322144
322166
  await import_which.default(command);
@@ -323460,4 +323482,4 @@ async function sdkCliCommand(argv = process.argv) {
323460
323482
  // src/cli.ts
323461
323483
  sdkCliCommand();
323462
323484
 
323463
- //# debugId=60E8288B45E37B7D64756E2164756E21
323485
+ //# debugId=73BC85A06160E9CF64756E2164756E21