@settlemint/sdk-cli 2.5.1-pr6bae2b5f → 2.5.1-pr736435f4

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 +1371 -597
  2. package/dist/cli.js.map +31 -16
  3. package/package.json +7 -7
package/dist/cli.js CHANGED
@@ -161742,7 +161742,7 @@ ${lanes.join(`
161742
161742
  function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
161743
161743
  var _a;
161744
161744
  const text = [];
161745
- const colors3 = createColors(sys2);
161745
+ const colors2 = createColors(sys2);
161746
161746
  const name2 = getDisplayNameTextOfOption(option);
161747
161747
  const valueCandidates = getValueCandidate(option);
161748
161748
  const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
@@ -161763,7 +161763,7 @@ ${lanes.join(`
161763
161763
  }
161764
161764
  text.push(sys2.newLine);
161765
161765
  } else {
161766
- text.push(colors3.blue(name2), sys2.newLine);
161766
+ text.push(colors2.blue(name2), sys2.newLine);
161767
161767
  if (option.description) {
161768
161768
  const description3 = getDiagnosticText(option.description);
161769
161769
  text.push(description3);
@@ -161808,7 +161808,7 @@ ${lanes.join(`
161808
161808
  if (isFirstLine) {
161809
161809
  curLeft = left.padStart(rightAlignOfLeft2);
161810
161810
  curLeft = curLeft.padEnd(leftAlignOfRight2);
161811
- curLeft = colorLeft ? colors3.blue(curLeft) : curLeft;
161811
+ curLeft = colorLeft ? colors2.blue(curLeft) : curLeft;
161812
161812
  } else {
161813
161813
  curLeft = "".padStart(leftAlignOfRight2);
161814
161814
  }
@@ -161920,9 +161920,9 @@ ${lanes.join(`
161920
161920
  return res;
161921
161921
  }
161922
161922
  function printEasyHelp(sys2, simpleOptions) {
161923
- const colors3 = createColors(sys2);
161923
+ const colors2 = createColors(sys2);
161924
161924
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version4)}`)];
161925
- output.push(colors3.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
161925
+ output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
161926
161926
  example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
161927
161927
  example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
161928
161928
  example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
@@ -161943,7 +161943,7 @@ ${lanes.join(`
161943
161943
  function example(ex, desc) {
161944
161944
  const examples = typeof ex === "string" ? [ex] : ex;
161945
161945
  for (const example2 of examples) {
161946
- output.push(" " + colors3.blue(example2) + sys2.newLine);
161946
+ output.push(" " + colors2.blue(example2) + sys2.newLine);
161947
161947
  }
161948
161948
  output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
161949
161949
  }
@@ -161966,12 +161966,12 @@ ${lanes.join(`
161966
161966
  }
161967
161967
  function getHeader(sys2, message) {
161968
161968
  var _a;
161969
- const colors3 = createColors(sys2);
161969
+ const colors2 = createColors(sys2);
161970
161970
  const header = [];
161971
161971
  const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
161972
161972
  const tsIconLength = 5;
161973
- const tsIconFirstLine = colors3.blueBackground("".padStart(tsIconLength));
161974
- const tsIconSecondLine = colors3.blueBackground(colors3.brightWhite("TS ".padStart(tsIconLength)));
161973
+ const tsIconFirstLine = colors2.blueBackground("".padStart(tsIconLength));
161974
+ const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
161975
161975
  if (terminalWidth >= message.length + tsIconLength) {
161976
161976
  const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
161977
161977
  const leftAlign = rightAlign - tsIconLength;
@@ -231623,7 +231623,7 @@ function size(value4) {
231623
231623
  var init_size = () => {};
231624
231624
 
231625
231625
  // ../../node_modules/viem/_esm/errors/version.js
231626
- var version5 = "2.32.0";
231626
+ var version5 = "2.33.0";
231627
231627
 
231628
231628
  // ../../node_modules/viem/_esm/errors/base.js
231629
231629
  function walk(err, fn) {
@@ -232832,16 +232832,16 @@ var init_lru = __esm(() => {
232832
232832
  });
232833
232833
  this.maxSize = size2;
232834
232834
  }
232835
- get(key2) {
232836
- const value4 = super.get(key2);
232837
- if (super.has(key2) && value4 !== undefined) {
232838
- this.delete(key2);
232839
- super.set(key2, value4);
232835
+ get(key3) {
232836
+ const value4 = super.get(key3);
232837
+ if (super.has(key3) && value4 !== undefined) {
232838
+ this.delete(key3);
232839
+ super.set(key3, value4);
232840
232840
  }
232841
232841
  return value4;
232842
232842
  }
232843
- set(key2, value4) {
232844
- super.set(key2, value4);
232843
+ set(key3, value4) {
232844
+ super.set(key3, value4);
232845
232845
  if (this.maxSize && this.size > this.maxSize) {
232846
232846
  const firstKey = this.keys().next().value;
232847
232847
  if (firstKey)
@@ -233883,9 +233883,9 @@ var init_decodeErrorResult = __esm(() => {
233883
233883
  });
233884
233884
 
233885
233885
  // ../../node_modules/viem/_esm/utils/stringify.js
233886
- var stringify3 = (value4, replacer, space) => JSON.stringify(value4, (key2, value_) => {
233886
+ var stringify3 = (value4, replacer, space) => JSON.stringify(value4, (key3, value_) => {
233887
233887
  const value5 = typeof value_ === "bigint" ? value_.toString() : value_;
233888
- return typeof replacer === "function" ? replacer(key2, value5) : value5;
233888
+ return typeof replacer === "function" ? replacer(key3, value5) : value5;
233889
233889
  }, space);
233890
233890
 
233891
233891
  // ../../node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
@@ -233999,13 +233999,13 @@ var init_stateOverride = __esm(() => {
233999
233999
 
234000
234000
  // ../../node_modules/viem/_esm/errors/transaction.js
234001
234001
  function prettyPrint(args) {
234002
- const entries = Object.entries(args).map(([key2, value4]) => {
234002
+ const entries = Object.entries(args).map(([key3, value4]) => {
234003
234003
  if (value4 === undefined || value4 === false)
234004
234004
  return null;
234005
- return [key2, value4];
234005
+ return [key3, value4];
234006
234006
  }).filter(Boolean);
234007
- const maxLength = entries.reduce((acc, [key2]) => Math.max(acc, key2.length), 0);
234008
- return entries.map(([key2, value4]) => ` ${`${key2}:`.padEnd(maxLength + 1)} ${value4}`).join(`
234007
+ const maxLength = entries.reduce((acc, [key3]) => Math.max(acc, key3.length), 0);
234008
+ return entries.map(([key3, value4]) => ` ${`${key3}:`.padEnd(maxLength + 1)} ${value4}`).join(`
234009
234009
  `);
234010
234010
  }
234011
234011
  var FeeConflictError, InvalidSerializableTransactionError, TransactionNotFoundError, TransactionReceiptNotFoundError, WaitForTransactionReceiptTimeoutError;
@@ -235111,7 +235111,7 @@ var init_sha2 = __esm(() => {
235111
235111
  });
235112
235112
 
235113
235113
  // ../../node_modules/@noble/hashes/esm/hmac.js
235114
- var HMAC, hmac = (hash2, key2, message) => new HMAC(hash2, key2).update(message).digest();
235114
+ var HMAC, hmac = (hash2, key3, message) => new HMAC(hash2, key3).update(message).digest();
235115
235115
  var init_hmac = __esm(() => {
235116
235116
  init_utils2();
235117
235117
  HMAC = class HMAC extends Hash {
@@ -235120,7 +235120,7 @@ var init_hmac = __esm(() => {
235120
235120
  this.finished = false;
235121
235121
  this.destroyed = false;
235122
235122
  ahash(hash2);
235123
- const key2 = toBytes2(_key);
235123
+ const key3 = toBytes2(_key);
235124
235124
  this.iHash = hash2.create();
235125
235125
  if (typeof this.iHash.update !== "function")
235126
235126
  throw new Error("Expected instance of class which extends utils.Hash");
@@ -235128,7 +235128,7 @@ var init_hmac = __esm(() => {
235128
235128
  this.outputLen = this.iHash.outputLen;
235129
235129
  const blockLen = this.blockLen;
235130
235130
  const pad2 = new Uint8Array(blockLen);
235131
- pad2.set(key2.length > blockLen ? hash2.create().update(key2).digest() : key2);
235131
+ pad2.set(key3.length > blockLen ? hash2.create().update(key3).digest() : key3);
235132
235132
  for (let i6 = 0;i6 < pad2.length; i6++)
235133
235133
  pad2[i6] ^= 54;
235134
235134
  this.iHash.update(pad2);
@@ -235178,7 +235178,7 @@ var init_hmac = __esm(() => {
235178
235178
  this.iHash.destroy();
235179
235179
  }
235180
235180
  };
235181
- hmac.create = (hash2, key2) => new HMAC(hash2, key2);
235181
+ hmac.create = (hash2, key3) => new HMAC(hash2, key3);
235182
235182
  });
235183
235183
 
235184
235184
  // ../../node_modules/@noble/curves/esm/utils.js
@@ -235579,13 +235579,13 @@ function getMinHashLength(fieldOrder) {
235579
235579
  const length = getFieldBytesLength(fieldOrder);
235580
235580
  return length + Math.ceil(length / 2);
235581
235581
  }
235582
- function mapHashToField(key2, fieldOrder, isLE2 = false) {
235583
- const len = key2.length;
235582
+ function mapHashToField(key3, fieldOrder, isLE2 = false) {
235583
+ const len = key3.length;
235584
235584
  const fieldLen = getFieldBytesLength(fieldOrder);
235585
235585
  const minLen = getMinHashLength(fieldOrder);
235586
235586
  if (len < 16 || len < minLen || len > 1024)
235587
235587
  throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
235588
- const num = isLE2 ? bytesToNumberLE(key2) : bytesToNumberBE(key2);
235588
+ const num = isLE2 ? bytesToNumberLE(key3) : bytesToNumberBE(key3);
235589
235589
  const reduced = mod(num, fieldOrder - _1n3) + _1n3;
235590
235590
  return isLE2 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
235591
235591
  }
@@ -235888,12 +235888,12 @@ function _legacyHelperEquat(Fp, a7, b4) {
235888
235888
  }
235889
235889
  function _legacyHelperNormPriv(Fn, allowedPrivateKeyLengths, wrapPrivateKey) {
235890
235890
  const { BYTES: expected } = Fn;
235891
- function normPrivateKeyToScalar(key2) {
235891
+ function normPrivateKeyToScalar(key3) {
235892
235892
  let num;
235893
- if (typeof key2 === "bigint") {
235894
- num = key2;
235893
+ if (typeof key3 === "bigint") {
235894
+ num = key3;
235895
235895
  } else {
235896
- let bytes = ensureBytes("private key", key2);
235896
+ let bytes = ensureBytes("private key", key3);
235897
235897
  if (allowedPrivateKeyLengths) {
235898
235898
  if (!allowedPrivateKeyLengths.includes(bytes.length * 2))
235899
235899
  throw new Error("invalid private key");
@@ -235904,7 +235904,7 @@ function _legacyHelperNormPriv(Fn, allowedPrivateKeyLengths, wrapPrivateKey) {
235904
235904
  try {
235905
235905
  num = Fn.fromBytes(bytes);
235906
235906
  } catch (error44) {
235907
- throw new Error(`invalid private key: expected ui8a of size ${expected}, got ${typeof key2}`);
235907
+ throw new Error(`invalid private key: expected ui8a of size ${expected}, got ${typeof key3}`);
235908
235908
  }
235909
235909
  }
235910
235910
  if (wrapPrivateKey)
@@ -236306,7 +236306,7 @@ function ecdsa(Point, ecdsaOpts, curveOpts = {}) {
236306
236306
  bits2int_modN: "function"
236307
236307
  });
236308
236308
  const randomBytes_ = ecdsaOpts.randomBytes || randomBytes;
236309
- const hmac_ = ecdsaOpts.hmac || ((key2, ...msgs) => hmac(ecdsaOpts.hash, key2, concatBytes(...msgs)));
236309
+ const hmac_ = ecdsaOpts.hmac || ((key3, ...msgs) => hmac(ecdsaOpts.hash, key3, concatBytes(...msgs)));
236310
236310
  const { Fp, Fn } = Point;
236311
236311
  const { ORDER: CURVE_ORDER, BITS: fnBits } = Fn;
236312
236312
  function isBiggerThanHalfOrder(number6) {
@@ -237464,11 +237464,11 @@ function extract2(value_, { format: format2 }) {
237464
237464
  const value4 = {};
237465
237465
  function extract_(formatted2) {
237466
237466
  const keys = Object.keys(formatted2);
237467
- for (const key2 of keys) {
237468
- if (key2 in value_)
237469
- value4[key2] = value_[key2];
237470
- if (formatted2[key2] && typeof formatted2[key2] === "object" && !Array.isArray(formatted2[key2]))
237471
- extract_(formatted2[key2]);
237467
+ for (const key3 of keys) {
237468
+ if (key3 in value_)
237469
+ value4[key3] = value_[key3];
237470
+ if (formatted2[key3] && typeof formatted2[key3] === "object" && !Array.isArray(formatted2[key3]))
237471
+ extract_(formatted2[key3]);
237472
237472
  }
237473
237473
  }
237474
237474
  const formatted = format2(value_ || {});
@@ -237872,9 +237872,9 @@ var init_Errors = __esm(() => {
237872
237872
 
237873
237873
  // ../../node_modules/ox/_esm/core/Json.js
237874
237874
  function stringify4(value4, replacer, space) {
237875
- return JSON.stringify(value4, (key2, value5) => {
237875
+ return JSON.stringify(value4, (key3, value5) => {
237876
237876
  if (typeof replacer === "function")
237877
- return replacer(key2, value5);
237877
+ return replacer(key3, value5);
237878
237878
  if (typeof value5 === "bigint")
237879
237879
  return value5.toString() + bigIntSuffix;
237880
237880
  return value5;
@@ -239020,7 +239020,7 @@ var init_ccip2 = __esm(() => {
239020
239020
 
239021
239021
  // ../../node_modules/viem/_esm/actions/public/call.js
239022
239022
  async function call(client, args) {
239023
- const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "latest", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
239023
+ const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = client.experimental_blockTag ?? "latest", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
239024
239024
  const account = account_ ? parseAccount(account_) : undefined;
239025
239025
  if (code2 && (factory || factoryData))
239026
239026
  throw new BaseError2("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
@@ -239128,7 +239128,7 @@ function shouldPerformMulticall({ request: request2 }) {
239128
239128
  }
239129
239129
  async function scheduleMulticall(client, args) {
239130
239130
  const { batchSize = 1024, wait = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
239131
- const { blockNumber, blockTag = "latest", data, multicallAddress: multicallAddress_, to } = args;
239131
+ const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", data, multicallAddress: multicallAddress_, to } = args;
239132
239132
  let multicallAddress = multicallAddress_;
239133
239133
  if (!multicallAddress) {
239134
239134
  if (!client.chain)
@@ -239297,11 +239297,11 @@ var require_visit = __commonJS((exports) => {
239297
239297
  visit2.BREAK = BREAK;
239298
239298
  visit2.SKIP = SKIP;
239299
239299
  visit2.REMOVE = REMOVE;
239300
- function visit_(key2, node, visitor, path7) {
239301
- const ctrl = callVisitor(key2, node, visitor, path7);
239300
+ function visit_(key3, node, visitor, path7) {
239301
+ const ctrl = callVisitor(key3, node, visitor, path7);
239302
239302
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239303
- replaceNode(key2, path7, ctrl);
239304
- return visit_(key2, ctrl, visitor, path7);
239303
+ replaceNode(key3, path7, ctrl);
239304
+ return visit_(key3, ctrl, visitor, path7);
239305
239305
  }
239306
239306
  if (typeof ctrl !== "symbol") {
239307
239307
  if (identity2.isCollection(node)) {
@@ -239345,11 +239345,11 @@ var require_visit = __commonJS((exports) => {
239345
239345
  visitAsync.BREAK = BREAK;
239346
239346
  visitAsync.SKIP = SKIP;
239347
239347
  visitAsync.REMOVE = REMOVE;
239348
- async function visitAsync_(key2, node, visitor, path7) {
239349
- const ctrl = await callVisitor(key2, node, visitor, path7);
239348
+ async function visitAsync_(key3, node, visitor, path7) {
239349
+ const ctrl = await callVisitor(key3, node, visitor, path7);
239350
239350
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239351
- replaceNode(key2, path7, ctrl);
239352
- return visitAsync_(key2, ctrl, visitor, path7);
239351
+ replaceNode(key3, path7, ctrl);
239352
+ return visitAsync_(key3, ctrl, visitor, path7);
239353
239353
  }
239354
239354
  if (typeof ctrl !== "symbol") {
239355
239355
  if (identity2.isCollection(node)) {
@@ -239399,27 +239399,27 @@ var require_visit = __commonJS((exports) => {
239399
239399
  }
239400
239400
  return visitor;
239401
239401
  }
239402
- function callVisitor(key2, node, visitor, path7) {
239402
+ function callVisitor(key3, node, visitor, path7) {
239403
239403
  if (typeof visitor === "function")
239404
- return visitor(key2, node, path7);
239404
+ return visitor(key3, node, path7);
239405
239405
  if (identity2.isMap(node))
239406
- return visitor.Map?.(key2, node, path7);
239406
+ return visitor.Map?.(key3, node, path7);
239407
239407
  if (identity2.isSeq(node))
239408
- return visitor.Seq?.(key2, node, path7);
239408
+ return visitor.Seq?.(key3, node, path7);
239409
239409
  if (identity2.isPair(node))
239410
- return visitor.Pair?.(key2, node, path7);
239410
+ return visitor.Pair?.(key3, node, path7);
239411
239411
  if (identity2.isScalar(node))
239412
- return visitor.Scalar?.(key2, node, path7);
239412
+ return visitor.Scalar?.(key3, node, path7);
239413
239413
  if (identity2.isAlias(node))
239414
- return visitor.Alias?.(key2, node, path7);
239414
+ return visitor.Alias?.(key3, node, path7);
239415
239415
  return;
239416
239416
  }
239417
- function replaceNode(key2, path7, node) {
239417
+ function replaceNode(key3, path7, node) {
239418
239418
  const parent = path7[path7.length - 1];
239419
239419
  if (identity2.isCollection(parent)) {
239420
- parent.items[key2] = node;
239420
+ parent.items[key3] = node;
239421
239421
  } else if (identity2.isPair(parent)) {
239422
- if (key2 === "key")
239422
+ if (key3 === "key")
239423
239423
  parent.key = node;
239424
239424
  else
239425
239425
  parent.value = node;
@@ -239650,7 +239650,7 @@ var require_anchors = __commonJS((exports) => {
239650
239650
 
239651
239651
  // ../../node_modules/yaml/dist/doc/applyReviver.js
239652
239652
  var require_applyReviver = __commonJS((exports) => {
239653
- function applyReviver(reviver, obj, key2, val) {
239653
+ function applyReviver(reviver, obj, key3, val) {
239654
239654
  if (val && typeof val === "object") {
239655
239655
  if (Array.isArray(val)) {
239656
239656
  for (let i7 = 0, len = val.length;i7 < len; ++i7) {
@@ -239690,7 +239690,7 @@ var require_applyReviver = __commonJS((exports) => {
239690
239690
  }
239691
239691
  }
239692
239692
  }
239693
- return reviver.call(obj, key2, val);
239693
+ return reviver.call(obj, key3, val);
239694
239694
  }
239695
239695
  exports.applyReviver = applyReviver;
239696
239696
  });
@@ -240019,29 +240019,29 @@ var require_Collection = __commonJS((exports) => {
240019
240019
  if (isEmptyPath(path7))
240020
240020
  this.add(value4);
240021
240021
  else {
240022
- const [key2, ...rest] = path7;
240023
- const node = this.get(key2, true);
240022
+ const [key3, ...rest] = path7;
240023
+ const node = this.get(key3, true);
240024
240024
  if (identity2.isCollection(node))
240025
240025
  node.addIn(rest, value4);
240026
240026
  else if (node === undefined && this.schema)
240027
- this.set(key2, collectionFromPath(this.schema, rest, value4));
240027
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
240028
240028
  else
240029
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240029
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
240030
240030
  }
240031
240031
  }
240032
240032
  deleteIn(path7) {
240033
- const [key2, ...rest] = path7;
240033
+ const [key3, ...rest] = path7;
240034
240034
  if (rest.length === 0)
240035
- return this.delete(key2);
240036
- const node = this.get(key2, true);
240035
+ return this.delete(key3);
240036
+ const node = this.get(key3, true);
240037
240037
  if (identity2.isCollection(node))
240038
240038
  return node.deleteIn(rest);
240039
240039
  else
240040
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240040
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
240041
240041
  }
240042
240042
  getIn(path7, keepScalar) {
240043
- const [key2, ...rest] = path7;
240044
- const node = this.get(key2, true);
240043
+ const [key3, ...rest] = path7;
240044
+ const node = this.get(key3, true);
240045
240045
  if (rest.length === 0)
240046
240046
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
240047
240047
  else
@@ -240056,24 +240056,24 @@ var require_Collection = __commonJS((exports) => {
240056
240056
  });
240057
240057
  }
240058
240058
  hasIn(path7) {
240059
- const [key2, ...rest] = path7;
240059
+ const [key3, ...rest] = path7;
240060
240060
  if (rest.length === 0)
240061
- return this.has(key2);
240062
- const node = this.get(key2, true);
240061
+ return this.has(key3);
240062
+ const node = this.get(key3, true);
240063
240063
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
240064
240064
  }
240065
240065
  setIn(path7, value4) {
240066
- const [key2, ...rest] = path7;
240066
+ const [key3, ...rest] = path7;
240067
240067
  if (rest.length === 0) {
240068
- this.set(key2, value4);
240068
+ this.set(key3, value4);
240069
240069
  } else {
240070
- const node = this.get(key2, true);
240070
+ const node = this.get(key3, true);
240071
240071
  if (identity2.isCollection(node))
240072
240072
  node.setIn(rest, value4);
240073
240073
  else if (node === undefined && this.schema)
240074
- this.set(key2, collectionFromPath(this.schema, rest, value4));
240074
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
240075
240075
  else
240076
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240076
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
240077
240077
  }
240078
240078
  }
240079
240079
  }
@@ -240660,19 +240660,19 @@ var require_stringifyPair = __commonJS((exports) => {
240660
240660
  var Scalar = require_Scalar();
240661
240661
  var stringify5 = require_stringify();
240662
240662
  var stringifyComment = require_stringifyComment();
240663
- function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
240663
+ function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
240664
240664
  const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
240665
- let keyComment = identity2.isNode(key2) && key2.comment || null;
240665
+ let keyComment = identity2.isNode(key3) && key3.comment || null;
240666
240666
  if (simpleKeys) {
240667
240667
  if (keyComment) {
240668
240668
  throw new Error("With simple keys, key nodes cannot have comments");
240669
240669
  }
240670
- if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
240670
+ if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
240671
240671
  const msg = "With simple keys, collection cannot be used as a key value";
240672
240672
  throw new Error(msg);
240673
240673
  }
240674
240674
  }
240675
- let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
240675
+ let explicitKey = !simpleKeys && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
240676
240676
  ctx = Object.assign({}, ctx, {
240677
240677
  allNullValues: false,
240678
240678
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -240680,7 +240680,7 @@ var require_stringifyPair = __commonJS((exports) => {
240680
240680
  });
240681
240681
  let keyCommentDone = false;
240682
240682
  let chompKeep = false;
240683
- let str = stringify5.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
240683
+ let str = stringify5.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
240684
240684
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
240685
240685
  if (simpleKeys)
240686
240686
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -240824,7 +240824,7 @@ var require_merge = __commonJS((exports) => {
240824
240824
  }),
240825
240825
  stringify: () => MERGE_KEY
240826
240826
  };
240827
- var isMergeKey = (ctx, key2) => (merge7.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge7.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
240827
+ var isMergeKey = (ctx, key3) => (merge7.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge7.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
240828
240828
  function addMergeToJSMap(ctx, map7, value4) {
240829
240829
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
240830
240830
  if (identity2.isSeq(value4))
@@ -240841,14 +240841,14 @@ var require_merge = __commonJS((exports) => {
240841
240841
  if (!identity2.isMap(source))
240842
240842
  throw new Error("Merge sources must be maps or map aliases");
240843
240843
  const srcMap = source.toJSON(null, ctx, Map);
240844
- for (const [key2, value5] of srcMap) {
240844
+ for (const [key3, value5] of srcMap) {
240845
240845
  if (map7 instanceof Map) {
240846
- if (!map7.has(key2))
240847
- map7.set(key2, value5);
240846
+ if (!map7.has(key3))
240847
+ map7.set(key3, value5);
240848
240848
  } else if (map7 instanceof Set) {
240849
- map7.add(key2);
240850
- } else if (!Object.prototype.hasOwnProperty.call(map7, key2)) {
240851
- Object.defineProperty(map7, key2, {
240849
+ map7.add(key3);
240850
+ } else if (!Object.prototype.hasOwnProperty.call(map7, key3)) {
240851
+ Object.defineProperty(map7, key3, {
240852
240852
  value: value5,
240853
240853
  writable: true,
240854
240854
  enumerable: true,
@@ -240870,19 +240870,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
240870
240870
  var stringify5 = require_stringify();
240871
240871
  var identity2 = require_identity();
240872
240872
  var toJS = require_toJS();
240873
- function addPairToJSMap(ctx, map7, { key: key2, value: value4 }) {
240874
- if (identity2.isNode(key2) && key2.addToJSMap)
240875
- key2.addToJSMap(ctx, map7, value4);
240876
- else if (merge7.isMergeKey(ctx, key2))
240873
+ function addPairToJSMap(ctx, map7, { key: key3, value: value4 }) {
240874
+ if (identity2.isNode(key3) && key3.addToJSMap)
240875
+ key3.addToJSMap(ctx, map7, value4);
240876
+ else if (merge7.isMergeKey(ctx, key3))
240877
240877
  merge7.addMergeToJSMap(ctx, map7, value4);
240878
240878
  else {
240879
- const jsKey = toJS.toJS(key2, "", ctx);
240879
+ const jsKey = toJS.toJS(key3, "", ctx);
240880
240880
  if (map7 instanceof Map) {
240881
240881
  map7.set(jsKey, toJS.toJS(value4, jsKey, ctx));
240882
240882
  } else if (map7 instanceof Set) {
240883
240883
  map7.add(jsKey);
240884
240884
  } else {
240885
- const stringKey = stringifyKey(key2, jsKey, ctx);
240885
+ const stringKey = stringifyKey(key3, jsKey, ctx);
240886
240886
  const jsValue = toJS.toJS(value4, stringKey, ctx);
240887
240887
  if (stringKey in map7)
240888
240888
  Object.defineProperty(map7, stringKey, {
@@ -240897,19 +240897,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
240897
240897
  }
240898
240898
  return map7;
240899
240899
  }
240900
- function stringifyKey(key2, jsKey, ctx) {
240900
+ function stringifyKey(key3, jsKey, ctx) {
240901
240901
  if (jsKey === null)
240902
240902
  return "";
240903
240903
  if (typeof jsKey !== "object")
240904
240904
  return String(jsKey);
240905
- if (identity2.isNode(key2) && ctx?.doc) {
240905
+ if (identity2.isNode(key3) && ctx?.doc) {
240906
240906
  const strCtx = stringify5.createStringifyContext(ctx.doc, {});
240907
240907
  strCtx.anchors = new Set;
240908
240908
  for (const node of ctx.anchors.keys())
240909
240909
  strCtx.anchors.add(node.anchor);
240910
240910
  strCtx.inFlow = true;
240911
240911
  strCtx.inStringifyKey = true;
240912
- const strKey = key2.toString(strCtx);
240912
+ const strKey = key3.toString(strCtx);
240913
240913
  if (!ctx.mapKeyWarned) {
240914
240914
  let jsonStr = JSON.stringify(strKey);
240915
240915
  if (jsonStr.length > 40)
@@ -240930,25 +240930,25 @@ var require_Pair = __commonJS((exports) => {
240930
240930
  var stringifyPair2 = require_stringifyPair();
240931
240931
  var addPairToJSMap = require_addPairToJSMap();
240932
240932
  var identity2 = require_identity();
240933
- function createPair(key2, value4, ctx) {
240934
- const k6 = createNode.createNode(key2, undefined, ctx);
240933
+ function createPair(key3, value4, ctx) {
240934
+ const k6 = createNode.createNode(key3, undefined, ctx);
240935
240935
  const v7 = createNode.createNode(value4, undefined, ctx);
240936
240936
  return new Pair(k6, v7);
240937
240937
  }
240938
240938
 
240939
240939
  class Pair {
240940
- constructor(key2, value4 = null) {
240940
+ constructor(key3, value4 = null) {
240941
240941
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
240942
- this.key = key2;
240942
+ this.key = key3;
240943
240943
  this.value = value4;
240944
240944
  }
240945
240945
  clone(schema) {
240946
- let { key: key2, value: value4 } = this;
240947
- if (identity2.isNode(key2))
240948
- key2 = key2.clone(schema);
240946
+ let { key: key3, value: value4 } = this;
240947
+ if (identity2.isNode(key3))
240948
+ key3 = key3.clone(schema);
240949
240949
  if (identity2.isNode(value4))
240950
240950
  value4 = value4.clone(schema);
240951
- return new Pair(key2, value4);
240951
+ return new Pair(key3, value4);
240952
240952
  }
240953
240953
  toJSON(_6, ctx) {
240954
240954
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -241115,11 +241115,11 @@ var require_YAMLMap = __commonJS((exports) => {
241115
241115
  var identity2 = require_identity();
241116
241116
  var Pair = require_Pair();
241117
241117
  var Scalar = require_Scalar();
241118
- function findPair(items, key2) {
241119
- const k6 = identity2.isScalar(key2) ? key2.value : key2;
241118
+ function findPair(items, key3) {
241119
+ const k6 = identity2.isScalar(key3) ? key3.value : key3;
241120
241120
  for (const it2 of items) {
241121
241121
  if (identity2.isPair(it2)) {
241122
- if (it2.key === key2 || it2.key === k6)
241122
+ if (it2.key === key3 || it2.key === k6)
241123
241123
  return it2;
241124
241124
  if (identity2.isScalar(it2.key) && it2.key.value === k6)
241125
241125
  return it2;
@@ -241139,20 +241139,20 @@ var require_YAMLMap = __commonJS((exports) => {
241139
241139
  static from(schema, obj, ctx) {
241140
241140
  const { keepUndefined, replacer } = ctx;
241141
241141
  const map7 = new this(schema);
241142
- const add = (key2, value4) => {
241142
+ const add = (key3, value4) => {
241143
241143
  if (typeof replacer === "function")
241144
- value4 = replacer.call(obj, key2, value4);
241145
- else if (Array.isArray(replacer) && !replacer.includes(key2))
241144
+ value4 = replacer.call(obj, key3, value4);
241145
+ else if (Array.isArray(replacer) && !replacer.includes(key3))
241146
241146
  return;
241147
241147
  if (value4 !== undefined || keepUndefined)
241148
- map7.items.push(Pair.createPair(key2, value4, ctx));
241148
+ map7.items.push(Pair.createPair(key3, value4, ctx));
241149
241149
  };
241150
241150
  if (obj instanceof Map) {
241151
- for (const [key2, value4] of obj)
241152
- add(key2, value4);
241151
+ for (const [key3, value4] of obj)
241152
+ add(key3, value4);
241153
241153
  } else if (obj && typeof obj === "object") {
241154
- for (const key2 of Object.keys(obj))
241155
- add(key2, obj[key2]);
241154
+ for (const key3 of Object.keys(obj))
241155
+ add(key3, obj[key3]);
241156
241156
  }
241157
241157
  if (typeof schema.sortMapEntries === "function") {
241158
241158
  map7.items.sort(schema.sortMapEntries);
@@ -241186,23 +241186,23 @@ var require_YAMLMap = __commonJS((exports) => {
241186
241186
  this.items.push(_pair);
241187
241187
  }
241188
241188
  }
241189
- delete(key2) {
241190
- const it2 = findPair(this.items, key2);
241189
+ delete(key3) {
241190
+ const it2 = findPair(this.items, key3);
241191
241191
  if (!it2)
241192
241192
  return false;
241193
241193
  const del = this.items.splice(this.items.indexOf(it2), 1);
241194
241194
  return del.length > 0;
241195
241195
  }
241196
- get(key2, keepScalar) {
241197
- const it2 = findPair(this.items, key2);
241196
+ get(key3, keepScalar) {
241197
+ const it2 = findPair(this.items, key3);
241198
241198
  const node = it2?.value;
241199
241199
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
241200
241200
  }
241201
- has(key2) {
241202
- return !!findPair(this.items, key2);
241201
+ has(key3) {
241202
+ return !!findPair(this.items, key3);
241203
241203
  }
241204
- set(key2, value4) {
241205
- this.add(new Pair.Pair(key2, value4), true);
241204
+ set(key3, value4) {
241205
+ this.add(new Pair.Pair(key3, value4), true);
241206
241206
  }
241207
241207
  toJSON(_6, ctx, Type) {
241208
241208
  const map7 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -241273,28 +241273,28 @@ var require_YAMLSeq = __commonJS((exports) => {
241273
241273
  add(value4) {
241274
241274
  this.items.push(value4);
241275
241275
  }
241276
- delete(key2) {
241277
- const idx = asItemIndex(key2);
241276
+ delete(key3) {
241277
+ const idx = asItemIndex(key3);
241278
241278
  if (typeof idx !== "number")
241279
241279
  return false;
241280
241280
  const del = this.items.splice(idx, 1);
241281
241281
  return del.length > 0;
241282
241282
  }
241283
- get(key2, keepScalar) {
241284
- const idx = asItemIndex(key2);
241283
+ get(key3, keepScalar) {
241284
+ const idx = asItemIndex(key3);
241285
241285
  if (typeof idx !== "number")
241286
241286
  return;
241287
241287
  const it2 = this.items[idx];
241288
241288
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
241289
241289
  }
241290
- has(key2) {
241291
- const idx = asItemIndex(key2);
241290
+ has(key3) {
241291
+ const idx = asItemIndex(key3);
241292
241292
  return typeof idx === "number" && idx < this.items.length;
241293
241293
  }
241294
- set(key2, value4) {
241295
- const idx = asItemIndex(key2);
241294
+ set(key3, value4) {
241295
+ const idx = asItemIndex(key3);
241296
241296
  if (typeof idx !== "number")
241297
- throw new Error(`Expected a valid index, not ${key2}.`);
241297
+ throw new Error(`Expected a valid index, not ${key3}.`);
241298
241298
  const prev = this.items[idx];
241299
241299
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
241300
241300
  prev.value = value4;
@@ -241328,8 +241328,8 @@ var require_YAMLSeq = __commonJS((exports) => {
241328
241328
  let i7 = 0;
241329
241329
  for (let it2 of obj) {
241330
241330
  if (typeof replacer === "function") {
241331
- const key2 = obj instanceof Set ? it2 : String(i7++);
241332
- it2 = replacer.call(obj, key2, it2);
241331
+ const key3 = obj instanceof Set ? it2 : String(i7++);
241332
+ it2 = replacer.call(obj, key3, it2);
241333
241333
  }
241334
241334
  seq.items.push(createNode.createNode(it2, undefined, ctx));
241335
241335
  }
@@ -241337,8 +241337,8 @@ var require_YAMLSeq = __commonJS((exports) => {
241337
241337
  return seq;
241338
241338
  }
241339
241339
  }
241340
- function asItemIndex(key2) {
241341
- let idx = identity2.isScalar(key2) ? key2.value : key2;
241340
+ function asItemIndex(key3) {
241341
+ let idx = identity2.isScalar(key3) ? key3.value : key3;
241342
241342
  if (idx && typeof idx === "string")
241343
241343
  idx = Number(idx);
241344
241344
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -241711,25 +241711,25 @@ ${cn.comment}` : item.comment;
241711
241711
  for (let it2 of iterable) {
241712
241712
  if (typeof replacer === "function")
241713
241713
  it2 = replacer.call(iterable, String(i7++), it2);
241714
- let key2, value4;
241714
+ let key3, value4;
241715
241715
  if (Array.isArray(it2)) {
241716
241716
  if (it2.length === 2) {
241717
- key2 = it2[0];
241717
+ key3 = it2[0];
241718
241718
  value4 = it2[1];
241719
241719
  } else
241720
241720
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
241721
241721
  } else if (it2 && it2 instanceof Object) {
241722
241722
  const keys = Object.keys(it2);
241723
241723
  if (keys.length === 1) {
241724
- key2 = keys[0];
241725
- value4 = it2[key2];
241724
+ key3 = keys[0];
241725
+ value4 = it2[key3];
241726
241726
  } else {
241727
241727
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
241728
241728
  }
241729
241729
  } else {
241730
- key2 = it2;
241730
+ key3 = it2;
241731
241731
  }
241732
- pairs2.items.push(Pair.createPair(key2, value4, ctx));
241732
+ pairs2.items.push(Pair.createPair(key3, value4, ctx));
241733
241733
  }
241734
241734
  return pairs2;
241735
241735
  }
@@ -241770,16 +241770,16 @@ var require_omap = __commonJS((exports) => {
241770
241770
  if (ctx?.onCreate)
241771
241771
  ctx.onCreate(map7);
241772
241772
  for (const pair of this.items) {
241773
- let key2, value4;
241773
+ let key3, value4;
241774
241774
  if (identity2.isPair(pair)) {
241775
- key2 = toJS.toJS(pair.key, "", ctx);
241776
- value4 = toJS.toJS(pair.value, key2, ctx);
241775
+ key3 = toJS.toJS(pair.key, "", ctx);
241776
+ value4 = toJS.toJS(pair.value, key3, ctx);
241777
241777
  } else {
241778
- key2 = toJS.toJS(pair, "", ctx);
241778
+ key3 = toJS.toJS(pair, "", ctx);
241779
241779
  }
241780
- if (map7.has(key2))
241780
+ if (map7.has(key3))
241781
241781
  throw new Error("Ordered maps must not include duplicate keys");
241782
- map7.set(key2, value4);
241782
+ map7.set(key3, value4);
241783
241783
  }
241784
241784
  return map7;
241785
241785
  }
@@ -241800,12 +241800,12 @@ var require_omap = __commonJS((exports) => {
241800
241800
  resolve(seq, onError) {
241801
241801
  const pairs$1 = pairs.resolvePairs(seq, onError);
241802
241802
  const seenKeys = [];
241803
- for (const { key: key2 } of pairs$1.items) {
241804
- if (identity2.isScalar(key2)) {
241805
- if (seenKeys.includes(key2.value)) {
241806
- onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
241803
+ for (const { key: key3 } of pairs$1.items) {
241804
+ if (identity2.isScalar(key3)) {
241805
+ if (seenKeys.includes(key3.value)) {
241806
+ onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
241807
241807
  } else {
241808
- seenKeys.push(key2.value);
241808
+ seenKeys.push(key3.value);
241809
241809
  }
241810
241810
  }
241811
241811
  }
@@ -241979,30 +241979,30 @@ var require_set = __commonJS((exports) => {
241979
241979
  super(schema);
241980
241980
  this.tag = YAMLSet.tag;
241981
241981
  }
241982
- add(key2) {
241982
+ add(key3) {
241983
241983
  let pair;
241984
- if (identity2.isPair(key2))
241985
- pair = key2;
241986
- else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
241987
- pair = new Pair.Pair(key2.key, null);
241984
+ if (identity2.isPair(key3))
241985
+ pair = key3;
241986
+ else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
241987
+ pair = new Pair.Pair(key3.key, null);
241988
241988
  else
241989
- pair = new Pair.Pair(key2, null);
241989
+ pair = new Pair.Pair(key3, null);
241990
241990
  const prev = YAMLMap.findPair(this.items, pair.key);
241991
241991
  if (!prev)
241992
241992
  this.items.push(pair);
241993
241993
  }
241994
- get(key2, keepPair) {
241995
- const pair = YAMLMap.findPair(this.items, key2);
241994
+ get(key3, keepPair) {
241995
+ const pair = YAMLMap.findPair(this.items, key3);
241996
241996
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
241997
241997
  }
241998
- set(key2, value4) {
241998
+ set(key3, value4) {
241999
241999
  if (typeof value4 !== "boolean")
242000
242000
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
242001
- const prev = YAMLMap.findPair(this.items, key2);
242001
+ const prev = YAMLMap.findPair(this.items, key3);
242002
242002
  if (prev && !value4) {
242003
242003
  this.items.splice(this.items.indexOf(prev), 1);
242004
242004
  } else if (!prev && value4) {
242005
- this.items.push(new Pair.Pair(key2));
242005
+ this.items.push(new Pair.Pair(key3));
242006
242006
  }
242007
242007
  }
242008
242008
  toJSON(_6, ctx) {
@@ -242237,7 +242237,7 @@ var require_tags = __commonJS((exports) => {
242237
242237
  if (Array.isArray(customTags))
242238
242238
  tags = [];
242239
242239
  else {
242240
- const keys = Array.from(schemas3.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
242240
+ const keys = Array.from(schemas3.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
242241
242241
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
242242
242242
  }
242243
242243
  }
@@ -242253,7 +242253,7 @@ var require_tags = __commonJS((exports) => {
242253
242253
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
242254
242254
  if (!tagObj) {
242255
242255
  const tagName = JSON.stringify(tag);
242256
- const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
242256
+ const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
242257
242257
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
242258
242258
  }
242259
242259
  if (!tags2.includes(tagObj))
@@ -242488,13 +242488,13 @@ var require_Document = __commonJS((exports) => {
242488
242488
  setAnchors();
242489
242489
  return node;
242490
242490
  }
242491
- createPair(key2, value4, options = {}) {
242492
- const k6 = this.createNode(key2, null, options);
242491
+ createPair(key3, value4, options = {}) {
242492
+ const k6 = this.createNode(key3, null, options);
242493
242493
  const v7 = this.createNode(value4, null, options);
242494
242494
  return new Pair.Pair(k6, v7);
242495
242495
  }
242496
- delete(key2) {
242497
- return assertCollection(this.contents) ? this.contents.delete(key2) : false;
242496
+ delete(key3) {
242497
+ return assertCollection(this.contents) ? this.contents.delete(key3) : false;
242498
242498
  }
242499
242499
  deleteIn(path7) {
242500
242500
  if (Collection.isEmptyPath(path7)) {
@@ -242505,27 +242505,27 @@ var require_Document = __commonJS((exports) => {
242505
242505
  }
242506
242506
  return assertCollection(this.contents) ? this.contents.deleteIn(path7) : false;
242507
242507
  }
242508
- get(key2, keepScalar) {
242509
- return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
242508
+ get(key3, keepScalar) {
242509
+ return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
242510
242510
  }
242511
242511
  getIn(path7, keepScalar) {
242512
242512
  if (Collection.isEmptyPath(path7))
242513
242513
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
242514
242514
  return identity2.isCollection(this.contents) ? this.contents.getIn(path7, keepScalar) : undefined;
242515
242515
  }
242516
- has(key2) {
242517
- return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
242516
+ has(key3) {
242517
+ return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
242518
242518
  }
242519
242519
  hasIn(path7) {
242520
242520
  if (Collection.isEmptyPath(path7))
242521
242521
  return this.contents !== undefined;
242522
242522
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path7) : false;
242523
242523
  }
242524
- set(key2, value4) {
242524
+ set(key3, value4) {
242525
242525
  if (this.contents == null) {
242526
- this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
242526
+ this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
242527
242527
  } else if (assertCollection(this.contents)) {
242528
- this.contents.set(key2, value4);
242528
+ this.contents.set(key3, value4);
242529
242529
  }
242530
242530
  }
242531
242531
  setIn(path7, value4) {
@@ -242807,25 +242807,25 @@ var require_resolve_props = __commonJS((exports) => {
242807
242807
 
242808
242808
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
242809
242809
  var require_util_contains_newline = __commonJS((exports) => {
242810
- function containsNewline(key2) {
242811
- if (!key2)
242810
+ function containsNewline(key3) {
242811
+ if (!key3)
242812
242812
  return null;
242813
- switch (key2.type) {
242813
+ switch (key3.type) {
242814
242814
  case "alias":
242815
242815
  case "scalar":
242816
242816
  case "double-quoted-scalar":
242817
242817
  case "single-quoted-scalar":
242818
- if (key2.source.includes(`
242818
+ if (key3.source.includes(`
242819
242819
  `))
242820
242820
  return true;
242821
- if (key2.end) {
242822
- for (const st2 of key2.end)
242821
+ if (key3.end) {
242822
+ for (const st2 of key3.end)
242823
242823
  if (st2.type === "newline")
242824
242824
  return true;
242825
242825
  }
242826
242826
  return false;
242827
242827
  case "flow-collection":
242828
- for (const it2 of key2.items) {
242828
+ for (const it2 of key3.items) {
242829
242829
  for (const st2 of it2.start)
242830
242830
  if (st2.type === "newline")
242831
242831
  return true;
@@ -242890,10 +242890,10 @@ var require_resolve_block_map = __commonJS((exports) => {
242890
242890
  let offset = bm.offset;
242891
242891
  let commentEnd = null;
242892
242892
  for (const collItem of bm.items) {
242893
- const { start: start3, key: key2, sep: sep5, value: value4 } = collItem;
242893
+ const { start: start3, key: key3, sep: sep5, value: value4 } = collItem;
242894
242894
  const keyProps = resolveProps.resolveProps(start3, {
242895
242895
  indicator: "explicit-key-ind",
242896
- next: key2 ?? sep5?.[0],
242896
+ next: key3 ?? sep5?.[0],
242897
242897
  offset,
242898
242898
  onError,
242899
242899
  parentIndent: bm.indent,
@@ -242901,10 +242901,10 @@ var require_resolve_block_map = __commonJS((exports) => {
242901
242901
  });
242902
242902
  const implicitKey = !keyProps.found;
242903
242903
  if (implicitKey) {
242904
- if (key2) {
242905
- if (key2.type === "block-seq")
242904
+ if (key3) {
242905
+ if (key3.type === "block-seq")
242906
242906
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
242907
- else if ("indent" in key2 && key2.indent !== bm.indent)
242907
+ else if ("indent" in key3 && key3.indent !== bm.indent)
242908
242908
  onError(offset, "BAD_INDENT", startColMsg);
242909
242909
  }
242910
242910
  if (!keyProps.anchor && !keyProps.tag && !sep5) {
@@ -242918,17 +242918,17 @@ var require_resolve_block_map = __commonJS((exports) => {
242918
242918
  }
242919
242919
  continue;
242920
242920
  }
242921
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
242922
- onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242921
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
242922
+ onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242923
242923
  }
242924
242924
  } else if (keyProps.found?.indent !== bm.indent) {
242925
242925
  onError(offset, "BAD_INDENT", startColMsg);
242926
242926
  }
242927
242927
  ctx.atKey = true;
242928
242928
  const keyStart = keyProps.end;
242929
- const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242929
+ const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242930
242930
  if (ctx.schema.compat)
242931
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
242931
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
242932
242932
  ctx.atKey = false;
242933
242933
  if (utilMapIncludes.mapIncludes(ctx, map7.items, keyNode))
242934
242934
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -242938,7 +242938,7 @@ var require_resolve_block_map = __commonJS((exports) => {
242938
242938
  offset: keyNode.range[2],
242939
242939
  onError,
242940
242940
  parentIndent: bm.indent,
242941
- startOnNewline: !key2 || key2.type === "block-scalar"
242941
+ startOnNewline: !key3 || key3.type === "block-scalar"
242942
242942
  });
242943
242943
  offset = valueProps.end;
242944
242944
  if (valueProps.found) {
@@ -243094,11 +243094,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243094
243094
  let offset = fc.offset + fc.start.source.length;
243095
243095
  for (let i7 = 0;i7 < fc.items.length; ++i7) {
243096
243096
  const collItem = fc.items[i7];
243097
- const { start: start3, key: key2, sep: sep5, value: value4 } = collItem;
243097
+ const { start: start3, key: key3, sep: sep5, value: value4 } = collItem;
243098
243098
  const props = resolveProps.resolveProps(start3, {
243099
243099
  flow: fcName,
243100
243100
  indicator: "explicit-key-ind",
243101
- next: key2 ?? sep5?.[0],
243101
+ next: key3 ?? sep5?.[0],
243102
243102
  offset,
243103
243103
  onError,
243104
243104
  parentIndent: fc.indent,
@@ -243120,8 +243120,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243120
243120
  offset = props.end;
243121
243121
  continue;
243122
243122
  }
243123
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
243124
- onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243123
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
243124
+ onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243125
243125
  }
243126
243126
  if (i7 === 0) {
243127
243127
  if (props.comma)
@@ -243166,8 +243166,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243166
243166
  } else {
243167
243167
  ctx.atKey = true;
243168
243168
  const keyStart = props.end;
243169
- const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
- if (isBlock(key2))
243169
+ const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
+ if (isBlock(key3))
243171
243171
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
243172
243172
  ctx.atKey = false;
243173
243173
  const valueProps = resolveProps.resolveProps(sep5 ?? [], {
@@ -243978,7 +243978,7 @@ var require_composer = __commonJS((exports) => {
243978
243978
  var node_process = __require("process");
243979
243979
  var directives4 = require_directives2();
243980
243980
  var Document = require_Document();
243981
- var errors4 = require_errors3();
243981
+ var errors5 = require_errors3();
243982
243982
  var identity2 = require_identity();
243983
243983
  var composeDoc = require_compose_doc();
243984
243984
  var resolveEnd = require_resolve_end();
@@ -244029,9 +244029,9 @@ var require_composer = __commonJS((exports) => {
244029
244029
  this.onError = (source, code2, message, warning) => {
244030
244030
  const pos = getErrorPos(source);
244031
244031
  if (warning)
244032
- this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
244032
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
244033
244033
  else
244034
- this.errors.push(new errors4.YAMLParseError(pos, code2, message));
244034
+ this.errors.push(new errors5.YAMLParseError(pos, code2, message));
244035
244035
  };
244036
244036
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
244037
244037
  this.options = options;
@@ -244115,7 +244115,7 @@ ${cb}` : comment;
244115
244115
  break;
244116
244116
  case "error": {
244117
244117
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
244118
- const error45 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244118
+ const error45 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244119
244119
  if (this.atDirectives || !this.doc)
244120
244120
  this.errors.push(error45);
244121
244121
  else
@@ -244125,7 +244125,7 @@ ${cb}` : comment;
244125
244125
  case "doc-end": {
244126
244126
  if (!this.doc) {
244127
244127
  const msg = "Unexpected doc-end without preceding document";
244128
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244128
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244129
244129
  break;
244130
244130
  }
244131
244131
  this.doc.directives.docEnd = true;
@@ -244140,7 +244140,7 @@ ${end.comment}` : end.comment;
244140
244140
  break;
244141
244141
  }
244142
244142
  default:
244143
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244143
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244144
244144
  }
244145
244145
  }
244146
244146
  *end(forceDoc = false, endOffset = -1) {
@@ -244166,7 +244166,7 @@ ${end.comment}` : end.comment;
244166
244166
  var require_cst_scalar = __commonJS((exports) => {
244167
244167
  var resolveBlockScalar = require_resolve_block_scalar();
244168
244168
  var resolveFlowScalar = require_resolve_flow_scalar();
244169
- var errors4 = require_errors3();
244169
+ var errors5 = require_errors3();
244170
244170
  var stringifyString = require_stringifyString();
244171
244171
  function resolveAsScalar(token, strict = true, onError) {
244172
244172
  if (token) {
@@ -244175,7 +244175,7 @@ var require_cst_scalar = __commonJS((exports) => {
244175
244175
  if (onError)
244176
244176
  onError(offset, code2, message);
244177
244177
  else
244178
- throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
244178
+ throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
244179
244179
  };
244180
244180
  switch (token.type) {
244181
244181
  case "scalar":
@@ -244289,9 +244289,9 @@ var require_cst_scalar = __commonJS((exports) => {
244289
244289
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
244290
244290
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
244291
244291
  ` });
244292
- for (const key2 of Object.keys(token))
244293
- if (key2 !== "type" && key2 !== "offset")
244294
- delete token[key2];
244292
+ for (const key3 of Object.keys(token))
244293
+ if (key3 !== "type" && key3 !== "offset")
244294
+ delete token[key3];
244295
244295
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
244296
244296
  }
244297
244297
  }
@@ -244340,9 +244340,9 @@ var require_cst_scalar = __commonJS((exports) => {
244340
244340
  default: {
244341
244341
  const indent2 = "indent" in token ? token.indent : -1;
244342
244342
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
244343
- for (const key2 of Object.keys(token))
244344
- if (key2 !== "type" && key2 !== "offset")
244345
- delete token[key2];
244343
+ for (const key3 of Object.keys(token))
244344
+ if (key3 !== "type" && key3 !== "offset")
244345
+ delete token[key3];
244346
244346
  Object.assign(token, { type: type4, indent: indent2, source, end });
244347
244347
  }
244348
244348
  }
@@ -244394,12 +244394,12 @@ var require_cst_stringify = __commonJS((exports) => {
244394
244394
  }
244395
244395
  }
244396
244396
  }
244397
- function stringifyItem({ start: start3, key: key2, sep: sep5, value: value4 }) {
244397
+ function stringifyItem({ start: start3, key: key3, sep: sep5, value: value4 }) {
244398
244398
  let res = "";
244399
244399
  for (const st2 of start3)
244400
244400
  res += st2.source;
244401
- if (key2)
244402
- res += stringifyToken(key2);
244401
+ if (key3)
244402
+ res += stringifyToken(key3);
244403
244403
  if (sep5)
244404
244404
  for (const st2 of sep5)
244405
244405
  res += st2.source;
@@ -245695,7 +245695,7 @@ var require_parser2 = __commonJS((exports) => {
245695
245695
  });
245696
245696
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
245697
245697
  const start4 = getFirstKeyStartProps(it2.start);
245698
- const key2 = it2.key;
245698
+ const key3 = it2.key;
245699
245699
  const sep5 = it2.sep;
245700
245700
  sep5.push(this.sourceToken);
245701
245701
  delete it2.key;
@@ -245704,7 +245704,7 @@ var require_parser2 = __commonJS((exports) => {
245704
245704
  type: "block-map",
245705
245705
  offset: this.offset,
245706
245706
  indent: this.indent,
245707
- items: [{ start: start4, key: key2, sep: sep5 }]
245707
+ items: [{ start: start4, key: key3, sep: sep5 }]
245708
245708
  });
245709
245709
  } else if (start3.length > 0) {
245710
245710
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -246037,7 +246037,7 @@ var require_parser2 = __commonJS((exports) => {
246037
246037
  var require_public_api = __commonJS((exports) => {
246038
246038
  var composer = require_composer();
246039
246039
  var Document = require_Document();
246040
- var errors4 = require_errors3();
246040
+ var errors5 = require_errors3();
246041
246041
  var log = require_log();
246042
246042
  var identity2 = require_identity();
246043
246043
  var lineCounter = require_line_counter();
@@ -246054,8 +246054,8 @@ var require_public_api = __commonJS((exports) => {
246054
246054
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
246055
246055
  if (prettyErrors && lineCounter2)
246056
246056
  for (const doc2 of docs) {
246057
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246058
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246057
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
246058
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
246059
246059
  }
246060
246060
  if (docs.length > 0)
246061
246061
  return docs;
@@ -246070,13 +246070,13 @@ var require_public_api = __commonJS((exports) => {
246070
246070
  if (!doc2)
246071
246071
  doc2 = _doc;
246072
246072
  else if (doc2.options.logLevel !== "silent") {
246073
- doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246073
+ doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246074
246074
  break;
246075
246075
  }
246076
246076
  }
246077
246077
  if (prettyErrors && lineCounter2) {
246078
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246079
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246078
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
246079
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
246080
246080
  }
246081
246081
  return doc2;
246082
246082
  }
@@ -246144,10 +246144,7 @@ var {
246144
246144
  } = import__.default;
246145
246145
 
246146
246146
  // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
246147
- var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
246148
- var isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n";
246149
246147
  var isBackspaceKey = (key) => key.name === "backspace";
246150
- var isNumberKey = (key) => "1234567890".includes(key.name);
246151
246148
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
246152
246149
  // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
246153
246150
  class AbortPromptError extends Error {
@@ -246316,7 +246313,7 @@ function useEffect(cb, depArray) {
246316
246313
  // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
246317
246314
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
246318
246315
 
246319
- // ../../node_modules/@inquirer/figures/dist/esm/index.js
246316
+ // ../../node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
246320
246317
  import process2 from "node:process";
246321
246318
  function isUnicodeSupported() {
246322
246319
  if (process2.platform !== "win32") {
@@ -246681,22 +246678,11 @@ function usePrefix({ status = "idle", theme }) {
246681
246678
  const iconName = status === "loading" ? "idle" : status;
246682
246679
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
246683
246680
  }
246684
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
246685
- function useMemo(fn, dependencies) {
246686
- return withPointer((pointer) => {
246687
- const prev = pointer.get();
246688
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
246689
- const value = fn();
246690
- pointer.set({ value, dependencies });
246691
- return value;
246692
- }
246693
- return prev.value;
246694
- });
246695
- }
246696
246681
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
246697
246682
  function useRef(val) {
246698
246683
  return useState({ current: val })[0];
246699
246684
  }
246685
+
246700
246686
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
246701
246687
  function useKeypress(userHandler) {
246702
246688
  const signal = useRef(userHandler);
@@ -246728,72 +246714,6 @@ function readlineWidth() {
246728
246714
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
246729
246715
  }
246730
246716
 
246731
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
246732
- function usePointerPosition({ active, renderedItems, pageSize, loop }) {
246733
- const state = useRef({
246734
- lastPointer: active,
246735
- lastActive: undefined
246736
- });
246737
- const { lastPointer, lastActive } = state.current;
246738
- const middle = Math.floor(pageSize / 2);
246739
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
246740
- const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
246741
- let pointer = defaultPointerPosition;
246742
- if (renderedLength > pageSize) {
246743
- if (loop) {
246744
- pointer = lastPointer;
246745
- if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
246746
- pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
246747
- }
246748
- } else {
246749
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
246750
- pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
246751
- }
246752
- }
246753
- state.current.lastPointer = pointer;
246754
- state.current.lastActive = active;
246755
- return pointer;
246756
- }
246757
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
246758
- const width = readlineWidth();
246759
- const bound = (num) => (num % items.length + items.length) % items.length;
246760
- const renderedItems = items.map((item, index) => {
246761
- if (item == null)
246762
- return [];
246763
- return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
246764
- `);
246765
- });
246766
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
246767
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
246768
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
246769
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
246770
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
246771
- const pageBuffer = Array.from({ length: pageSize });
246772
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
246773
- const itemVisited = new Set([active]);
246774
- let bufferPointer = activeItemPosition + activeItem.length;
246775
- let itemPointer = bound(active + 1);
246776
- while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
246777
- const lines = renderItemAtIndex(itemPointer);
246778
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
246779
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
246780
- itemVisited.add(itemPointer);
246781
- bufferPointer += linesToAdd.length;
246782
- itemPointer = bound(itemPointer + 1);
246783
- }
246784
- bufferPointer = activeItemPosition - 1;
246785
- itemPointer = bound(active - 1);
246786
- while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
246787
- const lines = renderItemAtIndex(itemPointer);
246788
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
246789
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
246790
- itemVisited.add(itemPointer);
246791
- bufferPointer -= linesToAdd.length;
246792
- itemPointer = bound(itemPointer - 1);
246793
- }
246794
- return pageBuffer.filter((line) => typeof line === "string").join(`
246795
- `);
246796
- }
246797
246717
  // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
246798
246718
  var import_mute_stream = __toESM(require_lib(), 1);
246799
246719
  import * as readline2 from "node:readline";
@@ -247176,20 +247096,6 @@ function createPrompt(view) {
247176
247096
  };
247177
247097
  return prompt;
247178
247098
  }
247179
- // ../../node_modules/@inquirer/core/dist/esm/lib/Separator.js
247180
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
247181
- class Separator {
247182
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
247183
- type = "separator";
247184
- constructor(separator) {
247185
- if (separator) {
247186
- this.separator = separator;
247187
- }
247188
- }
247189
- static isSeparator(choice) {
247190
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
247191
- }
247192
- }
247193
247099
  // ../../node_modules/yoctocolors/base.js
247194
247100
  var exports_base = {};
247195
247101
  __export(exports_base, {
@@ -265083,7 +264989,7 @@ function pruneCurrentEnv(currentEnv, env2) {
265083
264989
  var package_default = {
265084
264990
  name: "@settlemint/sdk-cli",
265085
264991
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
265086
- version: "2.5.1-pr6bae2b5f",
264992
+ version: "2.5.1-pr736435f4",
265087
264993
  type: "module",
265088
264994
  private: false,
265089
264995
  license: "FSL-1.1-MIT",
@@ -265133,11 +265039,11 @@ var package_default = {
265133
265039
  "@inquirer/confirm": "5.1.13",
265134
265040
  "@inquirer/input": "4.2.0",
265135
265041
  "@inquirer/password": "4.0.16",
265136
- "@inquirer/select": "4.2.4",
265137
- "@settlemint/sdk-hasura": "2.5.1-pr6bae2b5f",
265138
- "@settlemint/sdk-js": "2.5.1-pr6bae2b5f",
265139
- "@settlemint/sdk-utils": "2.5.1-pr6bae2b5f",
265140
- "@settlemint/sdk-viem": "2.5.1-pr6bae2b5f",
265042
+ "@inquirer/select": "4.3.0",
265043
+ "@settlemint/sdk-hasura": "2.5.1-pr736435f4",
265044
+ "@settlemint/sdk-js": "2.5.1-pr736435f4",
265045
+ "@settlemint/sdk-utils": "2.5.1-pr736435f4",
265046
+ "@settlemint/sdk-viem": "2.5.1-pr736435f4",
265141
265047
  "@types/node": "24.0.15",
265142
265048
  "@types/semver": "7.7.0",
265143
265049
  "@types/which": "3.0.4",
@@ -265146,7 +265052,7 @@ var package_default = {
265146
265052
  "is-in-ci": "1.0.0",
265147
265053
  semver: "7.7.2",
265148
265054
  slugify: "1.6.6",
265149
- viem: "2.32.0",
265055
+ viem: "2.33.0",
265150
265056
  which: "5.0.0",
265151
265057
  yaml: "2.8.0",
265152
265058
  yoctocolors: "2.1.1"
@@ -303349,14 +303255,853 @@ async function subgraphNamePrompt({
303349
303255
  return sanitizeName(subgraphName);
303350
303256
  }
303351
303257
 
303352
- // ../../node_modules/@inquirer/select/dist/esm/index.js
303353
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
303258
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
303259
+ var isUpKey = (key2) => key2.name === "up" || key2.name === "k" || key2.ctrl && key2.name === "p";
303260
+ var isDownKey = (key2) => key2.name === "down" || key2.name === "j" || key2.ctrl && key2.name === "n";
303261
+ var isBackspaceKey2 = (key2) => key2.name === "backspace";
303262
+ var isNumberKey = (key2) => "1234567890".includes(key2.name);
303263
+ var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
303264
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
303265
+ class AbortPromptError2 extends Error {
303266
+ name = "AbortPromptError";
303267
+ message = "Prompt was aborted";
303268
+ constructor(options) {
303269
+ super();
303270
+ this.cause = options?.cause;
303271
+ }
303272
+ }
303273
+
303274
+ class CancelPromptError2 extends Error {
303275
+ name = "CancelPromptError";
303276
+ message = "Prompt was canceled";
303277
+ }
303278
+
303279
+ class ExitPromptError2 extends Error {
303280
+ name = "ExitPromptError";
303281
+ }
303282
+
303283
+ class HookError2 extends Error {
303284
+ name = "HookError";
303285
+ }
303286
+
303287
+ class ValidationError2 extends Error {
303288
+ name = "ValidationError";
303289
+ }
303290
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
303291
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
303292
+
303293
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
303294
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
303295
+ var hookStorage2 = new AsyncLocalStorage2;
303296
+ function createStore2(rl) {
303297
+ const store = {
303298
+ rl,
303299
+ hooks: [],
303300
+ hooksCleanup: [],
303301
+ hooksEffect: [],
303302
+ index: 0,
303303
+ handleChange() {}
303304
+ };
303305
+ return store;
303306
+ }
303307
+ function withHooks2(rl, cb) {
303308
+ const store = createStore2(rl);
303309
+ return hookStorage2.run(store, () => {
303310
+ function cycle(render) {
303311
+ store.handleChange = () => {
303312
+ store.index = 0;
303313
+ render();
303314
+ };
303315
+ store.handleChange();
303316
+ }
303317
+ return cb(cycle);
303318
+ });
303319
+ }
303320
+ function getStore2() {
303321
+ const store = hookStorage2.getStore();
303322
+ if (!store) {
303323
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
303324
+ }
303325
+ return store;
303326
+ }
303327
+ function readline3() {
303328
+ return getStore2().rl;
303329
+ }
303330
+ function withUpdates2(fn) {
303331
+ const wrapped = (...args) => {
303332
+ const store = getStore2();
303333
+ let shouldUpdate = false;
303334
+ const oldHandleChange = store.handleChange;
303335
+ store.handleChange = () => {
303336
+ shouldUpdate = true;
303337
+ };
303338
+ const returnValue = fn(...args);
303339
+ if (shouldUpdate) {
303340
+ oldHandleChange();
303341
+ }
303342
+ store.handleChange = oldHandleChange;
303343
+ return returnValue;
303344
+ };
303345
+ return AsyncResource4.bind(wrapped);
303346
+ }
303347
+ function withPointer2(cb) {
303348
+ const store = getStore2();
303349
+ const { index } = store;
303350
+ const pointer = {
303351
+ get() {
303352
+ return store.hooks[index];
303353
+ },
303354
+ set(value4) {
303355
+ store.hooks[index] = value4;
303356
+ },
303357
+ initialized: index in store.hooks
303358
+ };
303359
+ const returnValue = cb(pointer);
303360
+ store.index++;
303361
+ return returnValue;
303362
+ }
303363
+ function handleChange2() {
303364
+ getStore2().handleChange();
303365
+ }
303366
+ var effectScheduler2 = {
303367
+ queue(cb) {
303368
+ const store = getStore2();
303369
+ const { index } = store;
303370
+ store.hooksEffect.push(() => {
303371
+ store.hooksCleanup[index]?.();
303372
+ const cleanFn = cb(readline3());
303373
+ if (cleanFn != null && typeof cleanFn !== "function") {
303374
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
303375
+ }
303376
+ store.hooksCleanup[index] = cleanFn;
303377
+ });
303378
+ },
303379
+ run() {
303380
+ const store = getStore2();
303381
+ withUpdates2(() => {
303382
+ store.hooksEffect.forEach((effect) => {
303383
+ effect();
303384
+ });
303385
+ store.hooksEffect.length = 0;
303386
+ })();
303387
+ },
303388
+ clearAll() {
303389
+ const store = getStore2();
303390
+ store.hooksCleanup.forEach((cleanFn) => {
303391
+ cleanFn?.();
303392
+ });
303393
+ store.hooksEffect.length = 0;
303394
+ store.hooksCleanup.length = 0;
303395
+ }
303396
+ };
303397
+
303398
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
303399
+ function useState2(defaultValue) {
303400
+ return withPointer2((pointer) => {
303401
+ const setState = AsyncResource5.bind(function setState(newValue) {
303402
+ if (pointer.get() !== newValue) {
303403
+ pointer.set(newValue);
303404
+ handleChange2();
303405
+ }
303406
+ });
303407
+ if (pointer.initialized) {
303408
+ return [pointer.get(), setState];
303409
+ }
303410
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
303411
+ pointer.set(value4);
303412
+ return [value4, setState];
303413
+ });
303414
+ }
303415
+
303416
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
303417
+ function useEffect2(cb, depArray) {
303418
+ withPointer2((pointer) => {
303419
+ const oldDeps = pointer.get();
303420
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
303421
+ if (hasChanged) {
303422
+ effectScheduler2.queue(cb);
303423
+ }
303424
+ pointer.set(depArray);
303425
+ });
303426
+ }
303427
+
303428
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
303429
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
303430
+
303431
+ // ../../node_modules/@inquirer/figures/dist/esm/index.js
303432
+ import process8 from "node:process";
303433
+ function isUnicodeSupported3() {
303434
+ if (process8.platform !== "win32") {
303435
+ return process8.env["TERM"] !== "linux";
303436
+ }
303437
+ return Boolean(process8.env["WT_SESSION"]) || Boolean(process8.env["TERMINUS_SUBLIME"]) || process8.env["ConEmuTask"] === "{cmd::Cmder}" || process8.env["TERM_PROGRAM"] === "Terminus-Sublime" || process8.env["TERM_PROGRAM"] === "vscode" || process8.env["TERM"] === "xterm-256color" || process8.env["TERM"] === "alacritty" || process8.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
303438
+ }
303439
+ var common2 = {
303440
+ circleQuestionMark: "(?)",
303441
+ questionMarkPrefix: "(?)",
303442
+ square: "█",
303443
+ squareDarkShade: "▓",
303444
+ squareMediumShade: "▒",
303445
+ squareLightShade: "░",
303446
+ squareTop: "▀",
303447
+ squareBottom: "▄",
303448
+ squareLeft: "▌",
303449
+ squareRight: "▐",
303450
+ squareCenter: "■",
303451
+ bullet: "●",
303452
+ dot: "․",
303453
+ ellipsis: "…",
303454
+ pointerSmall: "›",
303455
+ triangleUp: "▲",
303456
+ triangleUpSmall: "▴",
303457
+ triangleDown: "▼",
303458
+ triangleDownSmall: "▾",
303459
+ triangleLeftSmall: "◂",
303460
+ triangleRightSmall: "▸",
303461
+ home: "⌂",
303462
+ heart: "♥",
303463
+ musicNote: "♪",
303464
+ musicNoteBeamed: "♫",
303465
+ arrowUp: "↑",
303466
+ arrowDown: "↓",
303467
+ arrowLeft: "←",
303468
+ arrowRight: "→",
303469
+ arrowLeftRight: "↔",
303470
+ arrowUpDown: "↕",
303471
+ almostEqual: "≈",
303472
+ notEqual: "≠",
303473
+ lessOrEqual: "≤",
303474
+ greaterOrEqual: "≥",
303475
+ identical: "≡",
303476
+ infinity: "∞",
303477
+ subscriptZero: "₀",
303478
+ subscriptOne: "₁",
303479
+ subscriptTwo: "₂",
303480
+ subscriptThree: "₃",
303481
+ subscriptFour: "₄",
303482
+ subscriptFive: "₅",
303483
+ subscriptSix: "₆",
303484
+ subscriptSeven: "₇",
303485
+ subscriptEight: "₈",
303486
+ subscriptNine: "₉",
303487
+ oneHalf: "½",
303488
+ oneThird: "⅓",
303489
+ oneQuarter: "¼",
303490
+ oneFifth: "⅕",
303491
+ oneSixth: "⅙",
303492
+ oneEighth: "⅛",
303493
+ twoThirds: "⅔",
303494
+ twoFifths: "⅖",
303495
+ threeQuarters: "¾",
303496
+ threeFifths: "⅗",
303497
+ threeEighths: "⅜",
303498
+ fourFifths: "⅘",
303499
+ fiveSixths: "⅚",
303500
+ fiveEighths: "⅝",
303501
+ sevenEighths: "⅞",
303502
+ line: "─",
303503
+ lineBold: "━",
303504
+ lineDouble: "═",
303505
+ lineDashed0: "┄",
303506
+ lineDashed1: "┅",
303507
+ lineDashed2: "┈",
303508
+ lineDashed3: "┉",
303509
+ lineDashed4: "╌",
303510
+ lineDashed5: "╍",
303511
+ lineDashed6: "╴",
303512
+ lineDashed7: "╶",
303513
+ lineDashed8: "╸",
303514
+ lineDashed9: "╺",
303515
+ lineDashed10: "╼",
303516
+ lineDashed11: "╾",
303517
+ lineDashed12: "−",
303518
+ lineDashed13: "–",
303519
+ lineDashed14: "‐",
303520
+ lineDashed15: "⁃",
303521
+ lineVertical: "│",
303522
+ lineVerticalBold: "┃",
303523
+ lineVerticalDouble: "║",
303524
+ lineVerticalDashed0: "┆",
303525
+ lineVerticalDashed1: "┇",
303526
+ lineVerticalDashed2: "┊",
303527
+ lineVerticalDashed3: "┋",
303528
+ lineVerticalDashed4: "╎",
303529
+ lineVerticalDashed5: "╏",
303530
+ lineVerticalDashed6: "╵",
303531
+ lineVerticalDashed7: "╷",
303532
+ lineVerticalDashed8: "╹",
303533
+ lineVerticalDashed9: "╻",
303534
+ lineVerticalDashed10: "╽",
303535
+ lineVerticalDashed11: "╿",
303536
+ lineDownLeft: "┐",
303537
+ lineDownLeftArc: "╮",
303538
+ lineDownBoldLeftBold: "┓",
303539
+ lineDownBoldLeft: "┒",
303540
+ lineDownLeftBold: "┑",
303541
+ lineDownDoubleLeftDouble: "╗",
303542
+ lineDownDoubleLeft: "╖",
303543
+ lineDownLeftDouble: "╕",
303544
+ lineDownRight: "┌",
303545
+ lineDownRightArc: "╭",
303546
+ lineDownBoldRightBold: "┏",
303547
+ lineDownBoldRight: "┎",
303548
+ lineDownRightBold: "┍",
303549
+ lineDownDoubleRightDouble: "╔",
303550
+ lineDownDoubleRight: "╓",
303551
+ lineDownRightDouble: "╒",
303552
+ lineUpLeft: "┘",
303553
+ lineUpLeftArc: "╯",
303554
+ lineUpBoldLeftBold: "┛",
303555
+ lineUpBoldLeft: "┚",
303556
+ lineUpLeftBold: "┙",
303557
+ lineUpDoubleLeftDouble: "╝",
303558
+ lineUpDoubleLeft: "╜",
303559
+ lineUpLeftDouble: "╛",
303560
+ lineUpRight: "└",
303561
+ lineUpRightArc: "╰",
303562
+ lineUpBoldRightBold: "┗",
303563
+ lineUpBoldRight: "┖",
303564
+ lineUpRightBold: "┕",
303565
+ lineUpDoubleRightDouble: "╚",
303566
+ lineUpDoubleRight: "╙",
303567
+ lineUpRightDouble: "╘",
303568
+ lineUpDownLeft: "┤",
303569
+ lineUpBoldDownBoldLeftBold: "┫",
303570
+ lineUpBoldDownBoldLeft: "┨",
303571
+ lineUpDownLeftBold: "┥",
303572
+ lineUpBoldDownLeftBold: "┩",
303573
+ lineUpDownBoldLeftBold: "┪",
303574
+ lineUpDownBoldLeft: "┧",
303575
+ lineUpBoldDownLeft: "┦",
303576
+ lineUpDoubleDownDoubleLeftDouble: "╣",
303577
+ lineUpDoubleDownDoubleLeft: "╢",
303578
+ lineUpDownLeftDouble: "╡",
303579
+ lineUpDownRight: "├",
303580
+ lineUpBoldDownBoldRightBold: "┣",
303581
+ lineUpBoldDownBoldRight: "┠",
303582
+ lineUpDownRightBold: "┝",
303583
+ lineUpBoldDownRightBold: "┡",
303584
+ lineUpDownBoldRightBold: "┢",
303585
+ lineUpDownBoldRight: "┟",
303586
+ lineUpBoldDownRight: "┞",
303587
+ lineUpDoubleDownDoubleRightDouble: "╠",
303588
+ lineUpDoubleDownDoubleRight: "╟",
303589
+ lineUpDownRightDouble: "╞",
303590
+ lineDownLeftRight: "┬",
303591
+ lineDownBoldLeftBoldRightBold: "┳",
303592
+ lineDownLeftBoldRightBold: "┯",
303593
+ lineDownBoldLeftRight: "┰",
303594
+ lineDownBoldLeftBoldRight: "┱",
303595
+ lineDownBoldLeftRightBold: "┲",
303596
+ lineDownLeftRightBold: "┮",
303597
+ lineDownLeftBoldRight: "┭",
303598
+ lineDownDoubleLeftDoubleRightDouble: "╦",
303599
+ lineDownDoubleLeftRight: "╥",
303600
+ lineDownLeftDoubleRightDouble: "╤",
303601
+ lineUpLeftRight: "┴",
303602
+ lineUpBoldLeftBoldRightBold: "┻",
303603
+ lineUpLeftBoldRightBold: "┷",
303604
+ lineUpBoldLeftRight: "┸",
303605
+ lineUpBoldLeftBoldRight: "┹",
303606
+ lineUpBoldLeftRightBold: "┺",
303607
+ lineUpLeftRightBold: "┶",
303608
+ lineUpLeftBoldRight: "┵",
303609
+ lineUpDoubleLeftDoubleRightDouble: "╩",
303610
+ lineUpDoubleLeftRight: "╨",
303611
+ lineUpLeftDoubleRightDouble: "╧",
303612
+ lineUpDownLeftRight: "┼",
303613
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
303614
+ lineUpDownBoldLeftBoldRightBold: "╈",
303615
+ lineUpBoldDownLeftBoldRightBold: "╇",
303616
+ lineUpBoldDownBoldLeftRightBold: "╊",
303617
+ lineUpBoldDownBoldLeftBoldRight: "╉",
303618
+ lineUpBoldDownLeftRight: "╀",
303619
+ lineUpDownBoldLeftRight: "╁",
303620
+ lineUpDownLeftBoldRight: "┽",
303621
+ lineUpDownLeftRightBold: "┾",
303622
+ lineUpBoldDownBoldLeftRight: "╂",
303623
+ lineUpDownLeftBoldRightBold: "┿",
303624
+ lineUpBoldDownLeftBoldRight: "╃",
303625
+ lineUpBoldDownLeftRightBold: "╄",
303626
+ lineUpDownBoldLeftBoldRight: "╅",
303627
+ lineUpDownBoldLeftRightBold: "╆",
303628
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
303629
+ lineUpDoubleDownDoubleLeftRight: "╫",
303630
+ lineUpDownLeftDoubleRightDouble: "╪",
303631
+ lineCross: "╳",
303632
+ lineBackslash: "╲",
303633
+ lineSlash: "╱"
303634
+ };
303635
+ var specialMainSymbols2 = {
303636
+ tick: "✔",
303637
+ info: "ℹ",
303638
+ warning: "⚠",
303639
+ cross: "✘",
303640
+ squareSmall: "◻",
303641
+ squareSmallFilled: "◼",
303642
+ circle: "◯",
303643
+ circleFilled: "◉",
303644
+ circleDotted: "◌",
303645
+ circleDouble: "◎",
303646
+ circleCircle: "ⓞ",
303647
+ circleCross: "ⓧ",
303648
+ circlePipe: "Ⓘ",
303649
+ radioOn: "◉",
303650
+ radioOff: "◯",
303651
+ checkboxOn: "☒",
303652
+ checkboxOff: "☐",
303653
+ checkboxCircleOn: "ⓧ",
303654
+ checkboxCircleOff: "Ⓘ",
303655
+ pointer: "❯",
303656
+ triangleUpOutline: "△",
303657
+ triangleLeft: "◀",
303658
+ triangleRight: "▶",
303659
+ lozenge: "◆",
303660
+ lozengeOutline: "◇",
303661
+ hamburger: "☰",
303662
+ smiley: "㋡",
303663
+ mustache: "෴",
303664
+ star: "★",
303665
+ play: "▶",
303666
+ nodejs: "⬢",
303667
+ oneSeventh: "⅐",
303668
+ oneNinth: "⅑",
303669
+ oneTenth: "⅒"
303670
+ };
303671
+ var specialFallbackSymbols2 = {
303672
+ tick: "√",
303673
+ info: "i",
303674
+ warning: "‼",
303675
+ cross: "×",
303676
+ squareSmall: "□",
303677
+ squareSmallFilled: "■",
303678
+ circle: "( )",
303679
+ circleFilled: "(*)",
303680
+ circleDotted: "( )",
303681
+ circleDouble: "( )",
303682
+ circleCircle: "(○)",
303683
+ circleCross: "(×)",
303684
+ circlePipe: "(│)",
303685
+ radioOn: "(*)",
303686
+ radioOff: "( )",
303687
+ checkboxOn: "[×]",
303688
+ checkboxOff: "[ ]",
303689
+ checkboxCircleOn: "(×)",
303690
+ checkboxCircleOff: "( )",
303691
+ pointer: ">",
303692
+ triangleUpOutline: "∆",
303693
+ triangleLeft: "◄",
303694
+ triangleRight: "►",
303695
+ lozenge: "♦",
303696
+ lozengeOutline: "◊",
303697
+ hamburger: "≡",
303698
+ smiley: "☺",
303699
+ mustache: "┌─┐",
303700
+ star: "✶",
303701
+ play: "►",
303702
+ nodejs: "♦",
303703
+ oneSeventh: "1/7",
303704
+ oneNinth: "1/9",
303705
+ oneTenth: "1/10"
303706
+ };
303707
+ var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
303708
+ var fallbackSymbols2 = {
303709
+ ...common2,
303710
+ ...specialFallbackSymbols2
303711
+ };
303712
+ var shouldUseMain2 = isUnicodeSupported3();
303713
+ var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
303714
+ var esm_default3 = figures2;
303715
+ var replacements2 = Object.entries(specialMainSymbols2);
303716
+
303717
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
303718
+ var defaultTheme2 = {
303719
+ prefix: {
303720
+ idle: import_yoctocolors_cjs2.default.blue("?"),
303721
+ done: import_yoctocolors_cjs2.default.green(esm_default3.tick)
303722
+ },
303723
+ spinner: {
303724
+ interval: 80,
303725
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
303726
+ },
303727
+ style: {
303728
+ answer: import_yoctocolors_cjs2.default.cyan,
303729
+ message: import_yoctocolors_cjs2.default.bold,
303730
+ error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
303731
+ defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
303732
+ help: import_yoctocolors_cjs2.default.dim,
303733
+ highlight: import_yoctocolors_cjs2.default.cyan,
303734
+ key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
303735
+ }
303736
+ };
303737
+
303738
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
303739
+ function isPlainObject6(value4) {
303740
+ if (typeof value4 !== "object" || value4 === null)
303741
+ return false;
303742
+ let proto = value4;
303743
+ while (Object.getPrototypeOf(proto) !== null) {
303744
+ proto = Object.getPrototypeOf(proto);
303745
+ }
303746
+ return Object.getPrototypeOf(value4) === proto;
303747
+ }
303748
+ function deepMerge3(...objects) {
303749
+ const output = {};
303750
+ for (const obj of objects) {
303751
+ for (const [key2, value4] of Object.entries(obj)) {
303752
+ const prevValue = output[key2];
303753
+ output[key2] = isPlainObject6(prevValue) && isPlainObject6(value4) ? deepMerge3(prevValue, value4) : value4;
303754
+ }
303755
+ }
303756
+ return output;
303757
+ }
303758
+ function makeTheme2(...themes) {
303759
+ const themesToMerge = [
303760
+ defaultTheme2,
303761
+ ...themes.filter((theme) => theme != null)
303762
+ ];
303763
+ return deepMerge3(...themesToMerge);
303764
+ }
303765
+
303766
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
303767
+ function usePrefix2({ status = "idle", theme }) {
303768
+ const [showLoader, setShowLoader] = useState2(false);
303769
+ const [tick, setTick] = useState2(0);
303770
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
303771
+ useEffect2(() => {
303772
+ if (status === "loading") {
303773
+ let tickInterval;
303774
+ let inc = -1;
303775
+ const delayTimeout = setTimeout(() => {
303776
+ setShowLoader(true);
303777
+ tickInterval = setInterval(() => {
303778
+ inc = inc + 1;
303779
+ setTick(inc % spinner2.frames.length);
303780
+ }, spinner2.interval);
303781
+ }, 300);
303782
+ return () => {
303783
+ clearTimeout(delayTimeout);
303784
+ clearInterval(tickInterval);
303785
+ };
303786
+ } else {
303787
+ setShowLoader(false);
303788
+ }
303789
+ }, [status]);
303790
+ if (showLoader) {
303791
+ return spinner2.frames[tick];
303792
+ }
303793
+ const iconName = status === "loading" ? "idle" : status;
303794
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
303795
+ }
303796
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
303797
+ function useMemo(fn, dependencies) {
303798
+ return withPointer2((pointer) => {
303799
+ const prev = pointer.get();
303800
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i6) => dep !== dependencies[i6])) {
303801
+ const value4 = fn();
303802
+ pointer.set({ value: value4, dependencies });
303803
+ return value4;
303804
+ }
303805
+ return prev.value;
303806
+ });
303807
+ }
303808
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
303809
+ function useRef2(val) {
303810
+ return useState2({ current: val })[0];
303811
+ }
303812
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
303813
+ function useKeypress2(userHandler) {
303814
+ const signal = useRef2(userHandler);
303815
+ signal.current = userHandler;
303816
+ useEffect2((rl) => {
303817
+ let ignore = false;
303818
+ const handler = withUpdates2((_input, event) => {
303819
+ if (ignore)
303820
+ return;
303821
+ signal.current(event, rl);
303822
+ });
303823
+ rl.input.on("keypress", handler);
303824
+ return () => {
303825
+ ignore = true;
303826
+ rl.input.removeListener("keypress", handler);
303827
+ };
303828
+ }, []);
303829
+ }
303830
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
303831
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
303832
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
303833
+ function breakLines2(content, width) {
303834
+ return content.split(`
303835
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
303836
+ `).map((str) => str.trimEnd())).join(`
303837
+ `);
303838
+ }
303839
+ function readlineWidth2() {
303840
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
303841
+ }
303842
+
303843
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
303844
+ function usePointerPosition({ active, renderedItems, pageSize, loop }) {
303845
+ const state = useRef2({
303846
+ lastPointer: active,
303847
+ lastActive: undefined
303848
+ });
303849
+ const { lastPointer, lastActive } = state.current;
303850
+ const middle = Math.floor(pageSize / 2);
303851
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
303852
+ const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
303853
+ let pointer = defaultPointerPosition;
303854
+ if (renderedLength > pageSize) {
303855
+ if (loop) {
303856
+ pointer = lastPointer;
303857
+ if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
303858
+ pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
303859
+ }
303860
+ } else {
303861
+ const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
303862
+ pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
303863
+ }
303864
+ }
303865
+ state.current.lastPointer = pointer;
303866
+ state.current.lastActive = active;
303867
+ return pointer;
303868
+ }
303869
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
303870
+ const width = readlineWidth2();
303871
+ const bound = (num) => (num % items.length + items.length) % items.length;
303872
+ const renderedItems = items.map((item, index) => {
303873
+ if (item == null)
303874
+ return [];
303875
+ return breakLines2(renderItem({ item, index, isActive: index === active }), width).split(`
303876
+ `);
303877
+ });
303878
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
303879
+ const renderItemAtIndex = (index) => renderedItems[index] ?? [];
303880
+ const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
303881
+ const activeItem = renderItemAtIndex(active).slice(0, pageSize);
303882
+ const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
303883
+ const pageBuffer = Array.from({ length: pageSize });
303884
+ pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
303885
+ const itemVisited = new Set([active]);
303886
+ let bufferPointer = activeItemPosition + activeItem.length;
303887
+ let itemPointer = bound(active + 1);
303888
+ while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
303889
+ const lines = renderItemAtIndex(itemPointer);
303890
+ const linesToAdd = lines.slice(0, pageSize - bufferPointer);
303891
+ pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
303892
+ itemVisited.add(itemPointer);
303893
+ bufferPointer += linesToAdd.length;
303894
+ itemPointer = bound(itemPointer + 1);
303895
+ }
303896
+ bufferPointer = activeItemPosition - 1;
303897
+ itemPointer = bound(active - 1);
303898
+ while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
303899
+ const lines = renderItemAtIndex(itemPointer);
303900
+ const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
303901
+ pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
303902
+ itemVisited.add(itemPointer);
303903
+ bufferPointer -= linesToAdd.length;
303904
+ itemPointer = bound(itemPointer - 1);
303905
+ }
303906
+ return pageBuffer.filter((line) => typeof line === "string").join(`
303907
+ `);
303908
+ }
303909
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
303910
+ var import_mute_stream2 = __toESM(require_lib(), 1);
303911
+ import * as readline4 from "node:readline";
303912
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
303913
+
303914
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
303354
303915
  var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
303916
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
303917
+ var height2 = (content) => content.split(`
303918
+ `).length;
303919
+ var lastLine2 = (content) => content.split(`
303920
+ `).pop() ?? "";
303921
+ function cursorDown2(n6) {
303922
+ return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
303923
+ }
303924
+
303925
+ class ScreenManager2 {
303926
+ height = 0;
303927
+ extraLinesUnderPrompt = 0;
303928
+ cursorPos;
303929
+ rl;
303930
+ constructor(rl) {
303931
+ this.rl = rl;
303932
+ this.cursorPos = rl.getCursorPos();
303933
+ }
303934
+ write(content) {
303935
+ this.rl.output.unmute();
303936
+ this.rl.output.write(content);
303937
+ this.rl.output.mute();
303938
+ }
303939
+ render(content, bottomContent = "") {
303940
+ const promptLine = lastLine2(content);
303941
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
303942
+ let prompt = rawPromptLine;
303943
+ if (this.rl.line.length > 0) {
303944
+ prompt = prompt.slice(0, -this.rl.line.length);
303945
+ }
303946
+ this.rl.setPrompt(prompt);
303947
+ this.cursorPos = this.rl.getCursorPos();
303948
+ const width = readlineWidth2();
303949
+ content = breakLines2(content, width);
303950
+ bottomContent = breakLines2(bottomContent, width);
303951
+ if (rawPromptLine.length % width === 0) {
303952
+ content += `
303953
+ `;
303954
+ }
303955
+ let output = content + (bottomContent ? `
303956
+ ` + bottomContent : "");
303957
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
303958
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
303959
+ if (bottomContentHeight > 0)
303960
+ output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
303961
+ output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
303962
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
303963
+ this.extraLinesUnderPrompt = bottomContentHeight;
303964
+ this.height = height2(output);
303965
+ }
303966
+ checkCursorPos() {
303967
+ const cursorPos = this.rl.getCursorPos();
303968
+ if (cursorPos.cols !== this.cursorPos.cols) {
303969
+ this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
303970
+ this.cursorPos = cursorPos;
303971
+ }
303972
+ }
303973
+ done({ clearContent }) {
303974
+ this.rl.setPrompt("");
303975
+ let output = cursorDown2(this.extraLinesUnderPrompt);
303976
+ output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
303977
+ `;
303978
+ output += import_ansi_escapes2.default.cursorShow;
303979
+ this.write(output);
303980
+ this.rl.close();
303981
+ }
303982
+ }
303983
+
303984
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
303985
+ class PromisePolyfill2 extends Promise {
303986
+ static withResolver() {
303987
+ let resolve5;
303988
+ let reject;
303989
+ const promise4 = new Promise((res, rej) => {
303990
+ resolve5 = res;
303991
+ reject = rej;
303992
+ });
303993
+ return { promise: promise4, resolve: resolve5, reject };
303994
+ }
303995
+ }
303996
+
303997
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
303998
+ function getCallSites2() {
303999
+ const _prepareStackTrace = Error.prepareStackTrace;
304000
+ let result = [];
304001
+ try {
304002
+ Error.prepareStackTrace = (_5, callSites) => {
304003
+ const callSitesWithoutCurrent = callSites.slice(1);
304004
+ result = callSitesWithoutCurrent;
304005
+ return callSitesWithoutCurrent;
304006
+ };
304007
+ new Error().stack;
304008
+ } catch {
304009
+ return result;
304010
+ }
304011
+ Error.prepareStackTrace = _prepareStackTrace;
304012
+ return result;
304013
+ }
304014
+ function createPrompt2(view) {
304015
+ const callSites = getCallSites2();
304016
+ const prompt = (config4, context = {}) => {
304017
+ const { input = process.stdin, signal } = context;
304018
+ const cleanups = new Set;
304019
+ const output = new import_mute_stream2.default;
304020
+ output.pipe(context.output ?? process.stdout);
304021
+ const rl = readline4.createInterface({
304022
+ terminal: true,
304023
+ input,
304024
+ output
304025
+ });
304026
+ const screen = new ScreenManager2(rl);
304027
+ const { promise: promise4, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
304028
+ const cancel3 = () => reject(new CancelPromptError2);
304029
+ if (signal) {
304030
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
304031
+ if (signal.aborted) {
304032
+ abort();
304033
+ return Object.assign(promise4, { cancel: cancel3 });
304034
+ }
304035
+ signal.addEventListener("abort", abort);
304036
+ cleanups.add(() => signal.removeEventListener("abort", abort));
304037
+ }
304038
+ cleanups.add(onExit((code2, signal2) => {
304039
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
304040
+ }));
304041
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
304042
+ rl.on("SIGINT", sigint);
304043
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
304044
+ const checkCursorPos = () => screen.checkCursorPos();
304045
+ rl.input.on("keypress", checkCursorPos);
304046
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
304047
+ return withHooks2(rl, (cycle) => {
304048
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
304049
+ rl.on("close", hooksCleanup);
304050
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
304051
+ cycle(() => {
304052
+ try {
304053
+ const nextView = view(config4, (value4) => {
304054
+ setImmediate(() => resolve5(value4));
304055
+ });
304056
+ if (nextView === undefined) {
304057
+ const callerFilename = callSites[1]?.getFileName();
304058
+ throw new Error(`Prompt functions must return a string.
304059
+ at ${callerFilename}`);
304060
+ }
304061
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
304062
+ screen.render(content, bottomContent);
304063
+ effectScheduler2.run();
304064
+ } catch (error44) {
304065
+ reject(error44);
304066
+ }
304067
+ });
304068
+ return Object.assign(promise4.then((answer) => {
304069
+ effectScheduler2.clearAll();
304070
+ return answer;
304071
+ }, (error44) => {
304072
+ effectScheduler2.clearAll();
304073
+ throw error44;
304074
+ }).finally(() => {
304075
+ cleanups.forEach((cleanup) => cleanup());
304076
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
304077
+ output.end();
304078
+ }).then(() => promise4), { cancel: cancel3 });
304079
+ });
304080
+ };
304081
+ return prompt;
304082
+ }
304083
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
304084
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
304085
+ class Separator {
304086
+ separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default3.line));
304087
+ type = "separator";
304088
+ constructor(separator) {
304089
+ if (separator) {
304090
+ this.separator = separator;
304091
+ }
304092
+ }
304093
+ static isSeparator(choice) {
304094
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
304095
+ }
304096
+ }
304097
+ // ../../node_modules/@inquirer/select/dist/esm/index.js
304098
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
304099
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
303355
304100
  var selectTheme = {
303356
- icon: { cursor: esm_default.pointer },
304101
+ icon: { cursor: esm_default3.pointer },
303357
304102
  style: {
303358
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
303359
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
304103
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
304104
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
303360
304105
  },
303361
304106
  helpMode: "auto",
303362
304107
  indexMode: "hidden"
@@ -303389,19 +304134,19 @@ function normalizeChoices(choices) {
303389
304134
  return normalizedChoice;
303390
304135
  });
303391
304136
  }
303392
- var esm_default3 = createPrompt((config4, done) => {
304137
+ var esm_default4 = createPrompt2((config4, done) => {
303393
304138
  const { loop = true, pageSize = 7 } = config4;
303394
- const firstRender = useRef(true);
303395
- const theme = makeTheme(selectTheme, config4.theme);
303396
- const [status, setStatus] = useState("idle");
303397
- const prefix = usePrefix({ status, theme });
303398
- const searchTimeoutRef = useRef();
304139
+ const firstRender = useRef2(true);
304140
+ const theme = makeTheme2(selectTheme, config4.theme);
304141
+ const [status, setStatus] = useState2("idle");
304142
+ const prefix = usePrefix2({ status, theme });
304143
+ const searchTimeoutRef = useRef2();
303399
304144
  const items = useMemo(() => normalizeChoices(config4.choices), [config4.choices]);
303400
304145
  const bounds = useMemo(() => {
303401
304146
  const first = items.findIndex(isSelectable);
303402
304147
  const last = items.findLastIndex(isSelectable);
303403
304148
  if (first === -1) {
303404
- throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
304149
+ throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
303405
304150
  }
303406
304151
  return { first, last };
303407
304152
  }, [items]);
@@ -303410,25 +304155,32 @@ var esm_default3 = createPrompt((config4, done) => {
303410
304155
  return -1;
303411
304156
  return items.findIndex((item) => isSelectable(item) && item.value === config4.default);
303412
304157
  }, [config4.default, items]);
303413
- const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
304158
+ const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
303414
304159
  const selectedChoice = items[active];
303415
- useKeypress((key2, rl) => {
304160
+ useKeypress2((key3, rl) => {
303416
304161
  clearTimeout(searchTimeoutRef.current);
303417
- if (isEnterKey(key2)) {
304162
+ if (isEnterKey2(key3)) {
303418
304163
  setStatus("done");
303419
304164
  done(selectedChoice.value);
303420
- } else if (isUpKey(key2) || isDownKey(key2)) {
304165
+ } else if (isUpKey(key3) || isDownKey(key3)) {
303421
304166
  rl.clearLine(0);
303422
- if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
303423
- const offset = isUpKey(key2) ? -1 : 1;
304167
+ if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
304168
+ const offset = isUpKey(key3) ? -1 : 1;
303424
304169
  let next = active;
303425
304170
  do {
303426
304171
  next = (next + offset + items.length) % items.length;
303427
304172
  } while (!isSelectable(items[next]));
303428
304173
  setActive(next);
303429
304174
  }
303430
- } else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
303431
- const position = Number(rl.line) - 1;
304175
+ } else if (isNumberKey(key3) && !Number.isNaN(Number(rl.line))) {
304176
+ const selectedIndex = Number(rl.line) - 1;
304177
+ let selectableIndex = -1;
304178
+ const position = items.findIndex((item2) => {
304179
+ if (Separator.isSeparator(item2))
304180
+ return false;
304181
+ selectableIndex++;
304182
+ return selectableIndex === selectedIndex;
304183
+ });
303432
304184
  const item = items[position];
303433
304185
  if (item != null && isSelectable(item)) {
303434
304186
  setActive(position);
@@ -303436,7 +304188,7 @@ var esm_default3 = createPrompt((config4, done) => {
303436
304188
  searchTimeoutRef.current = setTimeout(() => {
303437
304189
  rl.clearLine(0);
303438
304190
  }, 700);
303439
- } else if (isBackspaceKey(key2)) {
304191
+ } else if (isBackspaceKey2(key3)) {
303440
304192
  rl.clearLine(0);
303441
304193
  } else {
303442
304194
  const searchTerm = rl.line.toLowerCase();
@@ -303453,7 +304205,7 @@ var esm_default3 = createPrompt((config4, done) => {
303453
304205
  }, 700);
303454
304206
  }
303455
304207
  });
303456
- useEffect(() => () => {
304208
+ useEffect2(() => () => {
303457
304209
  clearTimeout(searchTimeoutRef.current);
303458
304210
  }, []);
303459
304211
  const message = theme.style.message(config4.message, status);
@@ -303493,7 +304245,7 @@ ${theme.style.help(`(${config4.instructions?.pager ?? "Use arrow keys to reveal
303493
304245
  const choiceDescription = selectedChoice.description ? `
303494
304246
  ${theme.style.description(selectedChoice.description)}` : ``;
303495
304247
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
303496
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursorHide}`;
304248
+ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes3.default.cursorHide}`;
303497
304249
  });
303498
304250
 
303499
304251
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -303547,7 +304299,7 @@ async function subgraphPrompt({
303547
304299
  } else {
303548
304300
  defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
303549
304301
  }
303550
- const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default3({
304302
+ const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default4({
303551
304303
  message,
303552
304304
  choices: choices.map((name3) => ({
303553
304305
  name: name3,
@@ -304346,8 +305098,7 @@ function formatBlock(block) {
304346
305098
  }
304347
305099
 
304348
305100
  // ../../node_modules/viem/_esm/actions/public/getBlock.js
304349
- async function getBlock(client, { blockHash, blockNumber, blockTag: blockTag_, includeTransactions: includeTransactions_ } = {}) {
304350
- const blockTag = blockTag_ ?? "latest";
305101
+ async function getBlock(client, { blockHash, blockNumber, blockTag = client.experimental_blockTag ?? "latest", includeTransactions: includeTransactions_ } = {}) {
304351
305102
  const includeTransactions = includeTransactions_ ?? false;
304352
305103
  const blockNumberHex = blockNumber !== undefined ? numberToHex(blockNumber) : undefined;
304353
305104
  let block = null;
@@ -304794,7 +305545,7 @@ async function prepareTransactionRequest(client, args) {
304794
305545
 
304795
305546
  // ../../node_modules/viem/_esm/actions/public/getBalance.js
304796
305547
  init_toHex();
304797
- async function getBalance(client, { address, blockNumber, blockTag = "latest" }) {
305548
+ async function getBalance(client, { address, blockNumber, blockTag = client.experimental_blockTag ?? "latest" }) {
304798
305549
  const blockNumberHex = typeof blockNumber === "bigint" ? numberToHex(blockNumber) : undefined;
304799
305550
  const balance = await client.request({
304800
305551
  method: "eth_getBalance",
@@ -304812,7 +305563,11 @@ async function estimateGas(client, args) {
304812
305563
  const { block: block2, request: request3, rpcStateOverride: rpcStateOverride2 } = parameters;
304813
305564
  return client.request({
304814
305565
  method: "eth_estimateGas",
304815
- params: rpcStateOverride2 ? [request3, block2 ?? "latest", rpcStateOverride2] : block2 ? [request3, block2] : [request3]
305566
+ params: rpcStateOverride2 ? [
305567
+ request3,
305568
+ block2 ?? client.experimental_blockTag ?? "latest",
305569
+ rpcStateOverride2
305570
+ ] : block2 ? [request3, block2] : [request3]
304816
305571
  });
304817
305572
  };
304818
305573
  const { accessList, authorizationList, blobs, blobVersionedHashes, blockNumber, blockTag, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, value: value4, stateOverride, ...rest } = await prepareTransactionRequest(client, {
@@ -305074,14 +305829,14 @@ function includesArgs(parameters) {
305074
305829
  });
305075
305830
  }
305076
305831
  if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
305077
- return Object.entries(matchArgs).every(([key2, value4]) => {
305832
+ return Object.entries(matchArgs).every(([key3, value4]) => {
305078
305833
  if (value4 === null || value4 === undefined)
305079
305834
  return true;
305080
- const input = inputs.find((input2) => input2.name === key2);
305835
+ const input = inputs.find((input2) => input2.name === key3);
305081
305836
  if (!input)
305082
305837
  return false;
305083
305838
  const value_ = Array.isArray(value4) ? value4 : [value4];
305084
- return value_.some((value5) => isEqual(input, value5, args[key2]));
305839
+ return value_.some((value5) => isEqual(input, value5, args[key3]));
305085
305840
  });
305086
305841
  return false;
305087
305842
  }
@@ -305280,13 +306035,13 @@ function observe(observerId, callbacks, fn) {
305280
306035
  if (listeners && listeners.length > 0)
305281
306036
  return unwatch;
305282
306037
  const emit = {};
305283
- for (const key2 in callbacks) {
305284
- emit[key2] = (...args) => {
306038
+ for (const key3 in callbacks) {
306039
+ emit[key3] = (...args) => {
305285
306040
  const listeners2 = getListeners();
305286
306041
  if (listeners2.length === 0)
305287
306042
  return;
305288
306043
  for (const listener of listeners2)
305289
- listener.fns[key2]?.(...args);
306044
+ listener.fns[key3]?.(...args);
305290
306045
  };
305291
306046
  }
305292
306047
  const cleanup = fn(emit);
@@ -305625,7 +306380,8 @@ function uid(length = 11) {
305625
306380
 
305626
306381
  // ../../node_modules/viem/_esm/clients/createClient.js
305627
306382
  function createClient(parameters) {
305628
- const { batch, chain, ccipRead, key: key2 = "base", name: name3 = "Base Client", type: type4 = "base" } = parameters;
306383
+ const { batch, chain, ccipRead, key: key3 = "base", name: name3 = "Base Client", type: type4 = "base" } = parameters;
306384
+ const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
305629
306385
  const blockTime = chain?.blockTime ?? 12000;
305630
306386
  const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
305631
306387
  const pollingInterval = parameters.pollingInterval ?? defaultPollingInterval;
@@ -305642,19 +306398,20 @@ function createClient(parameters) {
305642
306398
  cacheTime,
305643
306399
  ccipRead,
305644
306400
  chain,
305645
- key: key2,
306401
+ key: key3,
305646
306402
  name: name3,
305647
306403
  pollingInterval,
305648
306404
  request: request2,
305649
306405
  transport,
305650
306406
  type: type4,
305651
- uid: uid()
306407
+ uid: uid(),
306408
+ ...experimental_blockTag ? { experimental_blockTag } : {}
305652
306409
  };
305653
306410
  function extend4(base2) {
305654
306411
  return (extendFn) => {
305655
306412
  const extended = extendFn(base2);
305656
- for (const key3 in client)
305657
- delete extended[key3];
306413
+ for (const key4 in client)
306414
+ delete extended[key4];
305658
306415
  const combined = { ...base2, ...extended };
305659
306416
  return Object.assign(combined, { extend: extend4(combined) });
305660
306417
  };
@@ -305834,11 +306591,11 @@ function shouldRetry(error44) {
305834
306591
  }
305835
306592
 
305836
306593
  // ../../node_modules/viem/_esm/clients/transports/createTransport.js
305837
- function createTransport({ key: key2, methods, name: name3, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type4 }, value4) {
306594
+ function createTransport({ key: key3, methods, name: name3, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type4 }, value4) {
305838
306595
  const uid2 = uid();
305839
306596
  return {
305840
306597
  config: {
305841
- key: key2,
306598
+ key: key3,
305842
306599
  methods,
305843
306600
  name: name3,
305844
306601
  request: request2,
@@ -305995,7 +306752,7 @@ function getHttpRpcClient(url4, options = {}) {
305995
306752
 
305996
306753
  // ../../node_modules/viem/_esm/clients/transports/http.js
305997
306754
  function http(url4, config4 = {}) {
305998
- const { batch, fetchOptions, key: key2 = "http", methods, name: name3 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config4;
306755
+ const { batch, fetchOptions, key: key3 = "http", methods, name: name3 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config4;
305999
306756
  return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
306000
306757
  const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
306001
306758
  const retryCount = config4.retryCount ?? retryCount_;
@@ -306010,7 +306767,7 @@ function http(url4, config4 = {}) {
306010
306767
  timeout
306011
306768
  });
306012
306769
  return createTransport({
306013
- key: key2,
306770
+ key: key3,
306014
306771
  methods,
306015
306772
  name: name3,
306016
306773
  async request({ method, params }) {
@@ -306461,7 +307218,7 @@ init_getChainContractAddress();
306461
307218
  init_toHex();
306462
307219
  init_localBatchGatewayRequest();
306463
307220
  async function getEnsText(client, parameters) {
306464
- const { blockNumber, blockTag, key: key2, name: name3, gatewayUrls, strict } = parameters;
307221
+ const { blockNumber, blockTag, key: key3, name: name3, gatewayUrls, strict } = parameters;
306465
307222
  const { chain } = client;
306466
307223
  const universalResolverAddress = (() => {
306467
307224
  if (parameters.universalResolverAddress)
@@ -306487,7 +307244,7 @@ async function getEnsText(client, parameters) {
306487
307244
  encodeFunctionData({
306488
307245
  abi: textResolverAbi,
306489
307246
  functionName: "text",
306490
- args: [namehash(name3), key2]
307247
+ args: [namehash(name3), key3]
306491
307248
  }),
306492
307249
  gatewayUrls ?? [localBatchGatewayUrl]
306493
307250
  ],
@@ -307391,7 +308148,7 @@ init_transactionRequest();
307391
308148
  init_stateOverride2();
307392
308149
  init_assertRequest();
307393
308150
  async function simulateBlocks(client, parameters) {
307394
- const { blockNumber, blockTag = "latest", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
308151
+ const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
307395
308152
  try {
307396
308153
  const blockStateCalls = [];
307397
308154
  for (const block2 of blocks) {
@@ -307510,16 +308267,16 @@ class LruMap2 extends Map {
307510
308267
  });
307511
308268
  this.maxSize = size5;
307512
308269
  }
307513
- get(key2) {
307514
- const value4 = super.get(key2);
307515
- if (super.has(key2) && value4 !== undefined) {
307516
- this.delete(key2);
307517
- super.set(key2, value4);
308270
+ get(key3) {
308271
+ const value4 = super.get(key3);
308272
+ if (super.has(key3) && value4 !== undefined) {
308273
+ this.delete(key3);
308274
+ super.set(key3, value4);
307518
308275
  }
307519
308276
  return value4;
307520
308277
  }
307521
- set(key2, value4) {
307522
- super.set(key2, value4);
308278
+ set(key3, value4) {
308279
+ super.set(key3, value4);
307523
308280
  if (this.maxSize && this.size > this.maxSize) {
307524
308281
  const firstKey = this.keys().next().value;
307525
308282
  if (firstKey)
@@ -308760,16 +309517,24 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
308760
309517
  }
308761
309518
 
308762
309519
  // ../../node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js
308763
- async function waitForTransactionReceipt(client, {
308764
- confirmations = 1,
308765
- hash: hash2,
308766
- onReplaced,
308767
- pollingInterval = client.pollingInterval,
308768
- retryCount = 6,
308769
- retryDelay = ({ count }) => ~~(1 << count) * 200,
308770
- timeout = 180000
308771
- }) {
309520
+ async function waitForTransactionReceipt(client, parameters) {
309521
+ const {
309522
+ checkReplacement = true,
309523
+ confirmations = 1,
309524
+ hash: hash2,
309525
+ onReplaced,
309526
+ retryCount = 6,
309527
+ retryDelay = ({ count }) => ~~(1 << count) * 200,
309528
+ timeout = 180000
309529
+ } = parameters;
308772
309530
  const observerId = stringify3(["waitForTransactionReceipt", client.uid, hash2]);
309531
+ const pollingInterval = (() => {
309532
+ if (parameters.pollingInterval)
309533
+ return parameters.pollingInterval;
309534
+ if (client.chain?.experimental_preconfirmationTime)
309535
+ return client.chain.experimental_preconfirmationTime;
309536
+ return client.pollingInterval;
309537
+ })();
308773
309538
  let transaction;
308774
309539
  let replacedTransaction;
308775
309540
  let receipt;
@@ -308782,7 +309547,16 @@ async function waitForTransactionReceipt(client, {
308782
309547
  _unobserve();
308783
309548
  reject(new WaitForTransactionReceiptTimeoutError({ hash: hash2 }));
308784
309549
  }, timeout) : undefined;
308785
- _unobserve = observe(observerId, { onReplaced, resolve: resolve6, reject }, (emit) => {
309550
+ _unobserve = observe(observerId, { onReplaced, resolve: resolve6, reject }, async (emit) => {
309551
+ receipt = await getAction(client, getTransactionReceipt, "getTransactionReceipt")({ hash: hash2 }).catch(() => {
309552
+ return;
309553
+ });
309554
+ if (receipt && confirmations <= 1) {
309555
+ clearTimeout(timer);
309556
+ emit.resolve(receipt);
309557
+ _unobserve();
309558
+ return;
309559
+ }
308786
309560
  _unwatch = getAction(client, watchBlockNumber, "watchBlockNumber")({
308787
309561
  emitMissed: true,
308788
309562
  emitOnBegin: true,
@@ -308805,7 +309579,7 @@ async function waitForTransactionReceipt(client, {
308805
309579
  done(() => emit.resolve(receipt));
308806
309580
  return;
308807
309581
  }
308808
- if (!transaction) {
309582
+ if (checkReplacement && !transaction) {
308809
309583
  retrying = true;
308810
309584
  await withRetry(async () => {
308811
309585
  transaction = await getAction(client, getTransaction, "getTransaction")({ hash: hash2 });
@@ -308875,7 +309649,7 @@ async function waitForTransactionReceipt(client, {
308875
309649
  return promise4;
308876
309650
  }
308877
309651
  // ../../node_modules/viem/_esm/actions/public/watchBlocks.js
308878
- function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBegin = false, onBlock, onError, includeTransactions: includeTransactions_, poll: poll_, pollingInterval = client.pollingInterval }) {
309652
+ function watchBlocks(client, { blockTag = client.experimental_blockTag ?? "latest", emitMissed = false, emitOnBegin = false, onBlock, onError, includeTransactions: includeTransactions_, poll: poll_, pollingInterval = client.pollingInterval }) {
308879
309653
  const enablePolling = (() => {
308880
309654
  if (typeof poll_ !== "undefined")
308881
309655
  return poll_;
@@ -309362,10 +310136,10 @@ function publicActions(client) {
309362
310136
 
309363
310137
  // ../../node_modules/viem/_esm/clients/createPublicClient.js
309364
310138
  function createPublicClient(parameters) {
309365
- const { key: key2 = "public", name: name3 = "Public Client" } = parameters;
310139
+ const { key: key3 = "public", name: name3 = "Public Client" } = parameters;
309366
310140
  const client = createClient({
309367
310141
  ...parameters,
309368
- key: key2,
310142
+ key: key3,
309369
310143
  name: name3,
309370
310144
  type: "publicClient"
309371
310145
  });
@@ -309466,7 +310240,7 @@ __export4(util_exports3, {
309466
310240
  getParsedType: () => getParsedType4,
309467
310241
  getSizableOrigin: () => getSizableOrigin4,
309468
310242
  isObject: () => isObject4,
309469
- isPlainObject: () => isPlainObject6,
310243
+ isPlainObject: () => isPlainObject7,
309470
310244
  issue: () => issue4,
309471
310245
  joinValues: () => joinValues4,
309472
310246
  jsonStringifyReplacer: () => jsonStringifyReplacer4,
@@ -309538,19 +310312,19 @@ function floatSafeRemainder4(val, step) {
309538
310312
  const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
309539
310313
  return valInt % stepInt / 10 ** decCount;
309540
310314
  }
309541
- function defineLazy4(object$1, key2, getter) {
310315
+ function defineLazy4(object$1, key3, getter) {
309542
310316
  const set$1 = false;
309543
- Object.defineProperty(object$1, key2, {
310317
+ Object.defineProperty(object$1, key3, {
309544
310318
  get() {
309545
310319
  if (!set$1) {
309546
310320
  const value4 = getter();
309547
- object$1[key2] = value4;
310321
+ object$1[key3] = value4;
309548
310322
  return value4;
309549
310323
  }
309550
310324
  throw new Error("cached value already set");
309551
310325
  },
309552
310326
  set(v6) {
309553
- Object.defineProperty(object$1, key2, { value: v6 });
310327
+ Object.defineProperty(object$1, key3, { value: v6 });
309554
310328
  },
309555
310329
  configurable: true
309556
310330
  });
@@ -309566,11 +310340,11 @@ function assignProp4(target, prop, value4) {
309566
310340
  function getElementAtPath4(obj, path7) {
309567
310341
  if (!path7)
309568
310342
  return obj;
309569
- return path7.reduce((acc, key2) => acc?.[key2], obj);
310343
+ return path7.reduce((acc, key3) => acc?.[key3], obj);
309570
310344
  }
309571
310345
  function promiseAllObject4(promisesObj) {
309572
310346
  const keys = Object.keys(promisesObj);
309573
- const promises = keys.map((key2) => promisesObj[key2]);
310347
+ const promises = keys.map((key3) => promisesObj[key3]);
309574
310348
  return Promise.all(promises).then((results) => {
309575
310349
  const resolvedObj = {};
309576
310350
  for (let i6 = 0;i6 < keys.length; i6++) {
@@ -309602,7 +310376,7 @@ var allowsEval4 = cached4(() => {
309602
310376
  return false;
309603
310377
  }
309604
310378
  });
309605
- function isPlainObject6(o8) {
310379
+ function isPlainObject7(o8) {
309606
310380
  if (isObject4(o8) === false)
309607
310381
  return false;
309608
310382
  const ctor = o8.constructor;
@@ -309618,8 +310392,8 @@ function isPlainObject6(o8) {
309618
310392
  }
309619
310393
  function numKeys4(data) {
309620
310394
  let keyCount = 0;
309621
- for (const key2 in data) {
309622
- if (Object.prototype.hasOwnProperty.call(data, key2)) {
310395
+ for (const key3 in data) {
310396
+ if (Object.prototype.hasOwnProperty.call(data, key3)) {
309623
310397
  keyCount++;
309624
310398
  }
309625
310399
  }
@@ -309769,13 +310543,13 @@ var BIGINT_FORMAT_RANGES4 = {
309769
310543
  function pick4(schema, mask) {
309770
310544
  const newShape = {};
309771
310545
  const currDef = schema._zod.def;
309772
- for (const key2 in mask) {
309773
- if (!(key2 in currDef.shape)) {
309774
- throw new Error(`Unrecognized key: "${key2}"`);
310546
+ for (const key3 in mask) {
310547
+ if (!(key3 in currDef.shape)) {
310548
+ throw new Error(`Unrecognized key: "${key3}"`);
309775
310549
  }
309776
- if (!mask[key2])
310550
+ if (!mask[key3])
309777
310551
  continue;
309778
- newShape[key2] = currDef.shape[key2];
310552
+ newShape[key3] = currDef.shape[key3];
309779
310553
  }
309780
310554
  return clone4(schema, {
309781
310555
  ...schema._zod.def,
@@ -309786,13 +310560,13 @@ function pick4(schema, mask) {
309786
310560
  function omit4(schema, mask) {
309787
310561
  const newShape = { ...schema._zod.def.shape };
309788
310562
  const currDef = schema._zod.def;
309789
- for (const key2 in mask) {
309790
- if (!(key2 in currDef.shape)) {
309791
- throw new Error(`Unrecognized key: "${key2}"`);
310563
+ for (const key3 in mask) {
310564
+ if (!(key3 in currDef.shape)) {
310565
+ throw new Error(`Unrecognized key: "${key3}"`);
309792
310566
  }
309793
- if (!mask[key2])
310567
+ if (!mask[key3])
309794
310568
  continue;
309795
- delete newShape[key2];
310569
+ delete newShape[key3];
309796
310570
  }
309797
310571
  return clone4(schema, {
309798
310572
  ...schema._zod.def,
@@ -309834,23 +310608,23 @@ function partial4(Class$1, schema, mask) {
309834
310608
  const oldShape = schema._zod.def.shape;
309835
310609
  const shape = { ...oldShape };
309836
310610
  if (mask) {
309837
- for (const key2 in mask) {
309838
- if (!(key2 in oldShape)) {
309839
- throw new Error(`Unrecognized key: "${key2}"`);
310611
+ for (const key3 in mask) {
310612
+ if (!(key3 in oldShape)) {
310613
+ throw new Error(`Unrecognized key: "${key3}"`);
309840
310614
  }
309841
- if (!mask[key2])
310615
+ if (!mask[key3])
309842
310616
  continue;
309843
- shape[key2] = Class$1 ? new Class$1({
310617
+ shape[key3] = Class$1 ? new Class$1({
309844
310618
  type: "optional",
309845
- innerType: oldShape[key2]
309846
- }) : oldShape[key2];
310619
+ innerType: oldShape[key3]
310620
+ }) : oldShape[key3];
309847
310621
  }
309848
310622
  } else {
309849
- for (const key2 in oldShape) {
309850
- shape[key2] = Class$1 ? new Class$1({
310623
+ for (const key3 in oldShape) {
310624
+ shape[key3] = Class$1 ? new Class$1({
309851
310625
  type: "optional",
309852
- innerType: oldShape[key2]
309853
- }) : oldShape[key2];
310626
+ innerType: oldShape[key3]
310627
+ }) : oldShape[key3];
309854
310628
  }
309855
310629
  }
309856
310630
  return clone4(schema, {
@@ -309863,22 +310637,22 @@ function required4(Class$1, schema, mask) {
309863
310637
  const oldShape = schema._zod.def.shape;
309864
310638
  const shape = { ...oldShape };
309865
310639
  if (mask) {
309866
- for (const key2 in mask) {
309867
- if (!(key2 in shape)) {
309868
- throw new Error(`Unrecognized key: "${key2}"`);
310640
+ for (const key3 in mask) {
310641
+ if (!(key3 in shape)) {
310642
+ throw new Error(`Unrecognized key: "${key3}"`);
309869
310643
  }
309870
- if (!mask[key2])
310644
+ if (!mask[key3])
309871
310645
  continue;
309872
- shape[key2] = new Class$1({
310646
+ shape[key3] = new Class$1({
309873
310647
  type: "nonoptional",
309874
- innerType: oldShape[key2]
310648
+ innerType: oldShape[key3]
309875
310649
  });
309876
310650
  }
309877
310651
  } else {
309878
- for (const key2 in oldShape) {
309879
- shape[key2] = new Class$1({
310652
+ for (const key3 in oldShape) {
310653
+ shape[key3] = new Class$1({
309880
310654
  type: "nonoptional",
309881
- innerType: oldShape[key2]
310655
+ innerType: oldShape[key3]
309882
310656
  });
309883
310657
  }
309884
310658
  }
@@ -311458,28 +312232,28 @@ var $ZodArray4 = /* @__PURE__ */ $constructor4("$ZodArray", (inst, def) => {
311458
312232
  return payload;
311459
312233
  };
311460
312234
  });
311461
- function handleObjectResult4(result, final, key2) {
312235
+ function handleObjectResult4(result, final, key3) {
311462
312236
  if (result.issues.length) {
311463
- final.issues.push(...prefixIssues4(key2, result.issues));
312237
+ final.issues.push(...prefixIssues4(key3, result.issues));
311464
312238
  }
311465
- final.value[key2] = result.value;
312239
+ final.value[key3] = result.value;
311466
312240
  }
311467
- function handleOptionalObjectResult4(result, final, key2, input) {
312241
+ function handleOptionalObjectResult4(result, final, key3, input) {
311468
312242
  if (result.issues.length) {
311469
- if (input[key2] === undefined) {
311470
- if (key2 in input) {
311471
- final.value[key2] = undefined;
312243
+ if (input[key3] === undefined) {
312244
+ if (key3 in input) {
312245
+ final.value[key3] = undefined;
311472
312246
  } else {
311473
- final.value[key2] = result.value;
312247
+ final.value[key3] = result.value;
311474
312248
  }
311475
312249
  } else {
311476
- final.issues.push(...prefixIssues4(key2, result.issues));
312250
+ final.issues.push(...prefixIssues4(key3, result.issues));
311477
312251
  }
311478
312252
  } else if (result.value === undefined) {
311479
- if (key2 in input)
311480
- final.value[key2] = undefined;
312253
+ if (key3 in input)
312254
+ final.value[key3] = undefined;
311481
312255
  } else {
311482
- final.value[key2] = result.value;
312256
+ final.value[key3] = result.value;
311483
312257
  }
311484
312258
  }
311485
312259
  var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
@@ -311503,12 +312277,12 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
311503
312277
  defineLazy4(inst._zod, "propValues", () => {
311504
312278
  const shape = def.shape;
311505
312279
  const propValues = {};
311506
- for (const key2 in shape) {
311507
- const field2 = shape[key2]._zod;
312280
+ for (const key3 in shape) {
312281
+ const field2 = shape[key3]._zod;
311508
312282
  if (field2.values) {
311509
- propValues[key2] ?? (propValues[key2] = new Set);
312283
+ propValues[key3] ?? (propValues[key3] = new Set);
311510
312284
  for (const v6 of field2.values)
311511
- propValues[key2].add(v6);
312285
+ propValues[key3].add(v6);
311512
312286
  }
311513
312287
  }
311514
312288
  return propValues;
@@ -311520,21 +312294,21 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
311520
312294
  "ctx"
311521
312295
  ]);
311522
312296
  const { keys, optionalKeys: optionalKeys$1 } = _normalized.value;
311523
- const parseStr = (key2) => {
311524
- const k5 = esc4(key2);
312297
+ const parseStr = (key3) => {
312298
+ const k5 = esc4(key3);
311525
312299
  return `shape[${k5}]._zod.run({ value: input[${k5}], issues: [] }, ctx)`;
311526
312300
  };
311527
312301
  doc2.write(`const input = payload.value;`);
311528
312302
  const ids = Object.create(null);
311529
- for (const key2 of keys) {
311530
- ids[key2] = randomString4(15);
312303
+ for (const key3 of keys) {
312304
+ ids[key3] = randomString4(15);
311531
312305
  }
311532
312306
  doc2.write(`const newResult = {}`);
311533
- for (const key2 of keys) {
311534
- if (optionalKeys$1.has(key2)) {
311535
- const id = ids[key2];
311536
- doc2.write(`const ${id} = ${parseStr(key2)};`);
311537
- const k5 = esc4(key2);
312307
+ for (const key3 of keys) {
312308
+ if (optionalKeys$1.has(key3)) {
312309
+ const id = ids[key3];
312310
+ doc2.write(`const ${id} = ${parseStr(key3)};`);
312311
+ const k5 = esc4(key3);
311538
312312
  doc2.write(`
311539
312313
  if (${id}.issues.length) {
311540
312314
  if (input[${k5}] === undefined) {
@@ -311556,14 +312330,14 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
311556
312330
  }
311557
312331
  `);
311558
312332
  } else {
311559
- const id = ids[key2];
311560
- doc2.write(`const ${id} = ${parseStr(key2)};`);
312333
+ const id = ids[key3];
312334
+ doc2.write(`const ${id} = ${parseStr(key3)};`);
311561
312335
  doc2.write(`
311562
312336
  if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
311563
312337
  ...iss,
311564
- path: iss.path ? [${esc4(key2)}, ...iss.path] : [${esc4(key2)}]
312338
+ path: iss.path ? [${esc4(key3)}, ...iss.path] : [${esc4(key3)}]
311565
312339
  })));`);
311566
- doc2.write(`newResult[${esc4(key2)}] = ${id}.value`);
312340
+ doc2.write(`newResult[${esc4(key3)}] = ${id}.value`);
311567
312341
  }
311568
312342
  }
311569
312343
  doc2.write(`payload.value = newResult;`);
@@ -311598,20 +312372,20 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
311598
312372
  } else {
311599
312373
  payload.value = {};
311600
312374
  const shape = value4.shape;
311601
- for (const key2 of value4.keys) {
311602
- const el = shape[key2];
312375
+ for (const key3 of value4.keys) {
312376
+ const el = shape[key3];
311603
312377
  const r6 = el._zod.run({
311604
- value: input[key2],
312378
+ value: input[key3],
311605
312379
  issues: []
311606
312380
  }, ctx);
311607
312381
  const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
311608
312382
  if (r6 instanceof Promise) {
311609
- proms.push(r6.then((r$1) => isOptional ? handleOptionalObjectResult4(r$1, payload, key2, input) : handleObjectResult4(r$1, payload, key2)));
312383
+ proms.push(r6.then((r$1) => isOptional ? handleOptionalObjectResult4(r$1, payload, key3, input) : handleObjectResult4(r$1, payload, key3)));
311610
312384
  } else {
311611
312385
  if (isOptional) {
311612
- handleOptionalObjectResult4(r6, payload, key2, input);
312386
+ handleOptionalObjectResult4(r6, payload, key3, input);
311613
312387
  } else {
311614
- handleObjectResult4(r6, payload, key2);
312388
+ handleObjectResult4(r6, payload, key3);
311615
312389
  }
311616
312390
  }
311617
312391
  }
@@ -311623,21 +312397,21 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
311623
312397
  const keySet = value4.keySet;
311624
312398
  const _catchall = catchall._zod;
311625
312399
  const t8 = _catchall.def.type;
311626
- for (const key2 of Object.keys(input)) {
311627
- if (keySet.has(key2))
312400
+ for (const key3 of Object.keys(input)) {
312401
+ if (keySet.has(key3))
311628
312402
  continue;
311629
312403
  if (t8 === "never") {
311630
- unrecognized.push(key2);
312404
+ unrecognized.push(key3);
311631
312405
  continue;
311632
312406
  }
311633
312407
  const r6 = _catchall.run({
311634
- value: input[key2],
312408
+ value: input[key3],
311635
312409
  issues: []
311636
312410
  }, ctx);
311637
312411
  if (r6 instanceof Promise) {
311638
- proms.push(r6.then((r$1) => handleObjectResult4(r$1, payload, key2)));
312412
+ proms.push(r6.then((r$1) => handleObjectResult4(r$1, payload, key3)));
311639
312413
  } else {
311640
- handleObjectResult4(r6, payload, key2);
312414
+ handleObjectResult4(r6, payload, key3);
311641
312415
  }
311642
312416
  }
311643
312417
  if (unrecognized.length) {
@@ -311807,22 +312581,22 @@ function mergeValues4(a7, b4) {
311807
312581
  data: a7
311808
312582
  };
311809
312583
  }
311810
- if (isPlainObject6(a7) && isPlainObject6(b4)) {
312584
+ if (isPlainObject7(a7) && isPlainObject7(b4)) {
311811
312585
  const bKeys = Object.keys(b4);
311812
- const sharedKeys = Object.keys(a7).filter((key2) => bKeys.indexOf(key2) !== -1);
312586
+ const sharedKeys = Object.keys(a7).filter((key3) => bKeys.indexOf(key3) !== -1);
311813
312587
  const newObj = {
311814
312588
  ...a7,
311815
312589
  ...b4
311816
312590
  };
311817
- for (const key2 of sharedKeys) {
311818
- const sharedValue = mergeValues4(a7[key2], b4[key2]);
312591
+ for (const key3 of sharedKeys) {
312592
+ const sharedValue = mergeValues4(a7[key3], b4[key3]);
311819
312593
  if (!sharedValue.valid) {
311820
312594
  return {
311821
312595
  valid: false,
311822
- mergeErrorPath: [key2, ...sharedValue.mergeErrorPath]
312596
+ mergeErrorPath: [key3, ...sharedValue.mergeErrorPath]
311823
312597
  };
311824
312598
  }
311825
- newObj[key2] = sharedValue.data;
312599
+ newObj[key3] = sharedValue.data;
311826
312600
  }
311827
312601
  return {
311828
312602
  valid: true,
@@ -311958,7 +312732,7 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
311958
312732
  $ZodType4.init(inst, def);
311959
312733
  inst._zod.parse = (payload, ctx) => {
311960
312734
  const input = payload.value;
311961
- if (!isPlainObject6(input)) {
312735
+ if (!isPlainObject7(input)) {
311962
312736
  payload.issues.push({
311963
312737
  expected: "record",
311964
312738
  code: "invalid_type",
@@ -311971,32 +312745,32 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
311971
312745
  if (def.keyType._zod.values) {
311972
312746
  const values = def.keyType._zod.values;
311973
312747
  payload.value = {};
311974
- for (const key2 of values) {
311975
- if (typeof key2 === "string" || typeof key2 === "number" || typeof key2 === "symbol") {
312748
+ for (const key3 of values) {
312749
+ if (typeof key3 === "string" || typeof key3 === "number" || typeof key3 === "symbol") {
311976
312750
  const result = def.valueType._zod.run({
311977
- value: input[key2],
312751
+ value: input[key3],
311978
312752
  issues: []
311979
312753
  }, ctx);
311980
312754
  if (result instanceof Promise) {
311981
312755
  proms.push(result.then((result$1) => {
311982
312756
  if (result$1.issues.length) {
311983
- payload.issues.push(...prefixIssues4(key2, result$1.issues));
312757
+ payload.issues.push(...prefixIssues4(key3, result$1.issues));
311984
312758
  }
311985
- payload.value[key2] = result$1.value;
312759
+ payload.value[key3] = result$1.value;
311986
312760
  }));
311987
312761
  } else {
311988
312762
  if (result.issues.length) {
311989
- payload.issues.push(...prefixIssues4(key2, result.issues));
312763
+ payload.issues.push(...prefixIssues4(key3, result.issues));
311990
312764
  }
311991
- payload.value[key2] = result.value;
312765
+ payload.value[key3] = result.value;
311992
312766
  }
311993
312767
  }
311994
312768
  }
311995
312769
  let unrecognized;
311996
- for (const key2 in input) {
311997
- if (!values.has(key2)) {
312770
+ for (const key3 in input) {
312771
+ if (!values.has(key3)) {
311998
312772
  unrecognized = unrecognized ?? [];
311999
- unrecognized.push(key2);
312773
+ unrecognized.push(key3);
312000
312774
  }
312001
312775
  }
312002
312776
  if (unrecognized && unrecognized.length > 0) {
@@ -312009,11 +312783,11 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
312009
312783
  }
312010
312784
  } else {
312011
312785
  payload.value = {};
312012
- for (const key2 of Reflect.ownKeys(input)) {
312013
- if (key2 === "__proto__")
312786
+ for (const key3 of Reflect.ownKeys(input)) {
312787
+ if (key3 === "__proto__")
312014
312788
  continue;
312015
312789
  const keyResult = def.keyType._zod.run({
312016
- value: key2,
312790
+ value: key3,
312017
312791
  issues: []
312018
312792
  }, ctx);
312019
312793
  if (keyResult instanceof Promise) {
@@ -312024,27 +312798,27 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
312024
312798
  origin: "record",
312025
312799
  code: "invalid_key",
312026
312800
  issues: keyResult.issues.map((iss) => finalizeIssue4(iss, ctx, config4())),
312027
- input: key2,
312028
- path: [key2],
312801
+ input: key3,
312802
+ path: [key3],
312029
312803
  inst
312030
312804
  });
312031
312805
  payload.value[keyResult.value] = keyResult.value;
312032
312806
  continue;
312033
312807
  }
312034
312808
  const result = def.valueType._zod.run({
312035
- value: input[key2],
312809
+ value: input[key3],
312036
312810
  issues: []
312037
312811
  }, ctx);
312038
312812
  if (result instanceof Promise) {
312039
312813
  proms.push(result.then((result$1) => {
312040
312814
  if (result$1.issues.length) {
312041
- payload.issues.push(...prefixIssues4(key2, result$1.issues));
312815
+ payload.issues.push(...prefixIssues4(key3, result$1.issues));
312042
312816
  }
312043
312817
  payload.value[keyResult.value] = result$1.value;
312044
312818
  }));
312045
312819
  } else {
312046
312820
  if (result.issues.length) {
312047
- payload.issues.push(...prefixIssues4(key2, result.issues));
312821
+ payload.issues.push(...prefixIssues4(key3, result.issues));
312048
312822
  }
312049
312823
  payload.value[keyResult.value] = result.value;
312050
312824
  }
@@ -312071,9 +312845,9 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
312071
312845
  }
312072
312846
  const proms = [];
312073
312847
  payload.value = new Map;
312074
- for (const [key2, value4] of input) {
312848
+ for (const [key3, value4] of input) {
312075
312849
  const keyResult = def.keyType._zod.run({
312076
- value: key2,
312850
+ value: key3,
312077
312851
  issues: []
312078
312852
  }, ctx);
312079
312853
  const valueResult = def.valueType._zod.run({
@@ -312082,10 +312856,10 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
312082
312856
  }, ctx);
312083
312857
  if (keyResult instanceof Promise || valueResult instanceof Promise) {
312084
312858
  proms.push(Promise.all([keyResult, valueResult]).then(([keyResult$1, valueResult$1]) => {
312085
- handleMapResult4(keyResult$1, valueResult$1, payload, key2, input, inst, ctx);
312859
+ handleMapResult4(keyResult$1, valueResult$1, payload, key3, input, inst, ctx);
312086
312860
  }));
312087
312861
  } else {
312088
- handleMapResult4(keyResult, valueResult, payload, key2, input, inst, ctx);
312862
+ handleMapResult4(keyResult, valueResult, payload, key3, input, inst, ctx);
312089
312863
  }
312090
312864
  }
312091
312865
  if (proms.length)
@@ -312093,10 +312867,10 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
312093
312867
  return payload;
312094
312868
  };
312095
312869
  });
312096
- function handleMapResult4(keyResult, valueResult, final, key2, input, inst, ctx) {
312870
+ function handleMapResult4(keyResult, valueResult, final, key3, input, inst, ctx) {
312097
312871
  if (keyResult.issues.length) {
312098
- if (propertyKeyTypes4.has(typeof key2)) {
312099
- final.issues.push(...prefixIssues4(key2, keyResult.issues));
312872
+ if (propertyKeyTypes4.has(typeof key3)) {
312873
+ final.issues.push(...prefixIssues4(key3, keyResult.issues));
312100
312874
  } else {
312101
312875
  final.issues.push({
312102
312876
  origin: "map",
@@ -312108,15 +312882,15 @@ function handleMapResult4(keyResult, valueResult, final, key2, input, inst, ctx)
312108
312882
  }
312109
312883
  }
312110
312884
  if (valueResult.issues.length) {
312111
- if (propertyKeyTypes4.has(typeof key2)) {
312112
- final.issues.push(...prefixIssues4(key2, valueResult.issues));
312885
+ if (propertyKeyTypes4.has(typeof key3)) {
312886
+ final.issues.push(...prefixIssues4(key3, valueResult.issues));
312113
312887
  } else {
312114
312888
  final.issues.push({
312115
312889
  origin: "map",
312116
312890
  code: "invalid_element",
312117
312891
  input,
312118
312892
  inst,
312119
- key: key2,
312893
+ key: key3,
312120
312894
  issues: valueResult.issues.map((iss) => finalizeIssue4(iss, ctx, config4()))
312121
312895
  });
312122
312896
  }
@@ -318438,19 +319212,19 @@ var JSONSchemaGenerator4 = class {
318438
319212
  json$1.type = "object";
318439
319213
  json$1.properties = {};
318440
319214
  const shape = def.shape;
318441
- for (const key2 in shape) {
318442
- json$1.properties[key2] = this.process(shape[key2], {
319215
+ for (const key3 in shape) {
319216
+ json$1.properties[key3] = this.process(shape[key3], {
318443
319217
  ...params,
318444
319218
  path: [
318445
319219
  ...params.path,
318446
319220
  "properties",
318447
- key2
319221
+ key3
318448
319222
  ]
318449
319223
  });
318450
319224
  }
318451
319225
  const allKeys = new Set(Object.keys(shape));
318452
- const requiredKeys = new Set([...allKeys].filter((key2) => {
318453
- const v6 = def.shape[key2]._zod;
319226
+ const requiredKeys = new Set([...allKeys].filter((key3) => {
319227
+ const v6 = def.shape[key3]._zod;
318454
319228
  if (this.io === "input") {
318455
319229
  return v6.optin === undefined;
318456
319230
  } else {
@@ -318802,8 +319576,8 @@ var JSONSchemaGenerator4 = class {
318802
319576
  if (defId)
318803
319577
  seen.defId = defId;
318804
319578
  const schema$1 = seen.schema;
318805
- for (const key2 in schema$1) {
318806
- delete schema$1[key2];
319579
+ for (const key3 in schema$1) {
319580
+ delete schema$1[key3];
318807
319581
  }
318808
319582
  schema$1.$ref = ref;
318809
319583
  };
@@ -318914,8 +319688,8 @@ function toJSONSchema4(input, _params) {
318914
319688
  defs
318915
319689
  };
318916
319690
  for (const entry of input._idmap.entries()) {
318917
- const [key2, schema] = entry;
318918
- schemas3[key2] = gen$1.emit(schema, {
319691
+ const [key3, schema] = entry;
319692
+ schemas3[key3] = gen$1.emit(schema, {
318919
319693
  ..._params,
318920
319694
  external: external2
318921
319695
  });
@@ -318960,8 +319734,8 @@ function isTransforming4(_schema, _ctx) {
318960
319734
  return isTransforming4(def.element, ctx);
318961
319735
  }
318962
319736
  case "object": {
318963
- for (const key2 in def.shape) {
318964
- if (isTransforming4(def.shape[key2], ctx))
319737
+ for (const key3 in def.shape) {
319738
+ if (isTransforming4(def.shape[key3], ctx))
318965
319739
  return true;
318966
319740
  }
318967
319741
  return false;
@@ -320810,19 +321584,19 @@ function getBooleanValue(value4, defaultValue) {
320810
321584
  function boolToString(value4) {
320811
321585
  return value4 ? "Yes" : "No";
320812
321586
  }
320813
- var esm_default4 = createPrompt((config5, done) => {
321587
+ var esm_default5 = createPrompt((config5, done) => {
320814
321588
  const { transformer = boolToString } = config5;
320815
321589
  const [status, setStatus] = useState("idle");
320816
321590
  const [value4, setValue] = useState("");
320817
321591
  const theme = makeTheme(config5.theme);
320818
321592
  const prefix = usePrefix({ status, theme });
320819
- useKeypress((key2, rl) => {
320820
- if (isEnterKey(key2)) {
321593
+ useKeypress((key3, rl) => {
321594
+ if (isEnterKey(key3)) {
320821
321595
  const answer = getBooleanValue(value4, config5.default);
320822
321596
  setValue(transformer(answer));
320823
321597
  setStatus("done");
320824
321598
  done(answer);
320825
- } else if (key2.name === "tab") {
321599
+ } else if (key3.name === "tab") {
320826
321600
  const answer = boolToString(!getBooleanValue(value4, config5.default));
320827
321601
  rl.clearLine(0);
320828
321602
  rl.write(answer);
@@ -320843,19 +321617,19 @@ var esm_default4 = createPrompt((config5, done) => {
320843
321617
  });
320844
321618
 
320845
321619
  // ../../node_modules/@inquirer/password/dist/esm/index.js
320846
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
320847
- var esm_default5 = createPrompt((config5, done) => {
321620
+ var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
321621
+ var esm_default6 = createPrompt((config5, done) => {
320848
321622
  const { validate: validate5 = () => true } = config5;
320849
321623
  const theme = makeTheme(config5.theme);
320850
321624
  const [status, setStatus] = useState("idle");
320851
321625
  const [errorMsg, setError] = useState();
320852
321626
  const [value4, setValue] = useState("");
320853
321627
  const prefix = usePrefix({ status, theme });
320854
- useKeypress(async (key2, rl) => {
321628
+ useKeypress(async (key3, rl) => {
320855
321629
  if (status !== "idle") {
320856
321630
  return;
320857
321631
  }
320858
- if (isEnterKey(key2)) {
321632
+ if (isEnterKey(key3)) {
320859
321633
  const answer = value4;
320860
321634
  setStatus("loading");
320861
321635
  const isValid = await validate5(answer);
@@ -320880,7 +321654,7 @@ var esm_default5 = createPrompt((config5, done) => {
320880
321654
  const maskChar = typeof config5.mask === "string" ? config5.mask : "*";
320881
321655
  formattedValue = maskChar.repeat(value4.length);
320882
321656
  } else if (status !== "done") {
320883
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
321657
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
320884
321658
  }
320885
321659
  if (status === "done") {
320886
321660
  formattedValue = theme.style.answer(formattedValue);
@@ -320902,7 +321676,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320902
321676
  return defaultAccessToken;
320903
321677
  }
320904
321678
  if (defaultAccessToken) {
320905
- const keep = await esm_default4({
321679
+ const keep = await esm_default5({
320906
321680
  message: "Do you want to use the existing application access token?",
320907
321681
  default: true
320908
321682
  });
@@ -320910,7 +321684,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320910
321684
  return defaultAccessToken;
320911
321685
  }
320912
321686
  }
320913
- const create2 = await esm_default4({
321687
+ const create2 = await esm_default5({
320914
321688
  message: "Do you want to create a new application access token?",
320915
321689
  default: false
320916
321690
  });
@@ -320978,7 +321752,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320978
321752
  return aat;
320979
321753
  } catch (_error) {}
320980
321754
  }
320981
- return esm_default5({
321755
+ return esm_default6({
320982
321756
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
320983
321757
  validate(value4) {
320984
321758
  try {
@@ -321010,7 +321784,7 @@ async function applicationPrompt(env2, applications, accept) {
321010
321784
  if (is_in_ci_default) {
321011
321785
  nothingSelectedError("application");
321012
321786
  }
321013
- const application = await esm_default3({
321787
+ const application = await esm_default4({
321014
321788
  message: "Which application do you want to connect to?",
321015
321789
  choices: applications.map((applications2) => ({
321016
321790
  name: `${applications2.name} (${applications2.uniqueName})`,
@@ -321123,7 +321897,7 @@ async function blockchainNodePrompt({
321123
321897
  }
321124
321898
  return item;
321125
321899
  }) : choices;
321126
- return esm_default3({
321900
+ return esm_default4({
321127
321901
  message: promptMessage ?? "Which blockchain node do you want to connect to?",
321128
321902
  choices: filteredChoices,
321129
321903
  default: defaultNode
@@ -321153,7 +321927,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
321153
321927
  isRequired,
321154
321928
  defaultHandler: async ({ defaultService: defaultNode, choices }) => {
321155
321929
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
321156
- return esm_default3({
321930
+ return esm_default4({
321157
321931
  message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
321158
321932
  choices: filteredChoices,
321159
321933
  default: defaultNode
@@ -321178,7 +321952,7 @@ async function blockscoutPrompt({
321178
321952
  envKey: "SETTLEMINT_BLOCKSCOUT",
321179
321953
  isRequired,
321180
321954
  defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
321181
- return esm_default3({
321955
+ return esm_default4({
321182
321956
  message: "Which blockscout instance do you want to connect to?",
321183
321957
  choices,
321184
321958
  default: defaultBlockscout
@@ -321201,7 +321975,7 @@ async function customDeploymentPrompt({
321201
321975
  envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
321202
321976
  isRequired,
321203
321977
  defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
321204
- return esm_default3({
321978
+ return esm_default4({
321205
321979
  message: "Which Custom Deployment do you want to connect to?",
321206
321980
  choices,
321207
321981
  default: defaultCustomDeployment
@@ -321228,7 +322002,7 @@ async function hasuraPrompt({
321228
322002
  envKey: "SETTLEMINT_HASURA",
321229
322003
  isRequired,
321230
322004
  defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
321231
- return esm_default3({
322005
+ return esm_default4({
321232
322006
  message: "Which Hasura instance do you want to connect to?",
321233
322007
  choices,
321234
322008
  default: defaultHasura
@@ -321252,7 +322026,7 @@ async function hdPrivateKeyPrompt({
321252
322026
  envKey: "SETTLEMINT_HD_PRIVATE_KEY",
321253
322027
  isRequired,
321254
322028
  defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
321255
- return esm_default3({
322029
+ return esm_default4({
321256
322030
  message: "Which HD Private Key do you want to use?",
321257
322031
  choices,
321258
322032
  default: defaultPrivateKey
@@ -321276,7 +322050,7 @@ async function ipfsPrompt({
321276
322050
  envKey: "SETTLEMINT_IPFS",
321277
322051
  isRequired,
321278
322052
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
321279
- return esm_default3({
322053
+ return esm_default4({
321280
322054
  message: "Which IPFS instance do you want to connect to?",
321281
322055
  choices,
321282
322056
  default: defaultStorage
@@ -321300,7 +322074,7 @@ async function minioPrompt({
321300
322074
  envKey: "SETTLEMINT_MINIO",
321301
322075
  isRequired,
321302
322076
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
321303
- return esm_default3({
322077
+ return esm_default4({
321304
322078
  message: "Which MinIO instance do you want to connect to?",
321305
322079
  choices,
321306
322080
  default: defaultStorage
@@ -321324,7 +322098,7 @@ async function portalPrompt({
321324
322098
  envKey: "SETTLEMINT_PORTAL",
321325
322099
  isRequired,
321326
322100
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
321327
- return esm_default3({
322101
+ return esm_default4({
321328
322102
  message: "Which Smart Contract Portal instance do you want to connect to?",
321329
322103
  choices,
321330
322104
  default: defaultMiddleware
@@ -321353,7 +322127,7 @@ async function theGraphPrompt({
321353
322127
  isRequired,
321354
322128
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
321355
322129
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
321356
- return esm_default3({
322130
+ return esm_default4({
321357
322131
  message: "Which The Graph instance do you want to connect to?",
321358
322132
  choices: filteredChoices,
321359
322133
  default: defaultMiddleware
@@ -321400,7 +322174,7 @@ async function instancePrompt({
321400
322174
  if (knownInstances.length === 0) {
321401
322175
  note("No instances found. Run `settlemint login` to configure an instance.", "warn");
321402
322176
  }
321403
- return esm_default3({
322177
+ return esm_default4({
321404
322178
  message: "What instance do you want to connect to?",
321405
322179
  choices: [
321406
322180
  ...knownInstances.map((instance) => ({
@@ -321436,7 +322210,7 @@ async function serviceSecretPrompt({
321436
322210
  return defaultSecret;
321437
322211
  }
321438
322212
  if (defaultSecret) {
321439
- const keep = await esm_default4({
322213
+ const keep = await esm_default5({
321440
322214
  message: `Do you want to use the existing ${name3} secret?`,
321441
322215
  default: true
321442
322216
  });
@@ -321444,7 +322218,7 @@ async function serviceSecretPrompt({
321444
322218
  return defaultSecret;
321445
322219
  }
321446
322220
  }
321447
- const serviceSecret = await esm_default5({
322221
+ const serviceSecret = await esm_default6({
321448
322222
  message
321449
322223
  });
321450
322224
  return serviceSecret || undefined;
@@ -321496,7 +322270,7 @@ async function workspacePrompt(env2, workspaces, accept) {
321496
322270
  if (is_in_ci_default) {
321497
322271
  nothingSelectedError("workspace");
321498
322272
  }
321499
- const workspace = await esm_default3({
322273
+ const workspace = await esm_default4({
321500
322274
  message: "Which workspace do you want to connect to?",
321501
322275
  choices: workspaces.map((workspace2) => ({
321502
322276
  name: `${workspace2.name} (${workspace2.uniqueName})`,
@@ -322338,7 +323112,7 @@ async function templatePrompt(platformConfig, argument) {
322338
323112
  }
322339
323113
  return template2;
322340
323114
  }
322341
- const template = await esm_default3({
323115
+ const template = await esm_default4({
322342
323116
  message: "Which template do you want to use?",
322343
323117
  choices: [
322344
323118
  ...kits.map((template2) => ({
@@ -322558,7 +323332,7 @@ var basename2 = function(p5, extension) {
322558
323332
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
322559
323333
  };
322560
323334
  // ../../node_modules/defu/dist/defu.mjs
322561
- function isPlainObject7(value4) {
323335
+ function isPlainObject8(value4) {
322562
323336
  if (value4 === null || typeof value4 !== "object") {
322563
323337
  return false;
322564
323338
  }
@@ -322575,27 +323349,27 @@ function isPlainObject7(value4) {
322575
323349
  return true;
322576
323350
  }
322577
323351
  function _defu(baseObject, defaults4, namespace = ".", merger) {
322578
- if (!isPlainObject7(defaults4)) {
323352
+ if (!isPlainObject8(defaults4)) {
322579
323353
  return _defu(baseObject, {}, namespace, merger);
322580
323354
  }
322581
323355
  const object5 = Object.assign({}, defaults4);
322582
- for (const key2 in baseObject) {
322583
- if (key2 === "__proto__" || key2 === "constructor") {
323356
+ for (const key3 in baseObject) {
323357
+ if (key3 === "__proto__" || key3 === "constructor") {
322584
323358
  continue;
322585
323359
  }
322586
- const value4 = baseObject[key2];
323360
+ const value4 = baseObject[key3];
322587
323361
  if (value4 === null || value4 === undefined) {
322588
323362
  continue;
322589
323363
  }
322590
- if (merger && merger(object5, key2, value4, namespace)) {
323364
+ if (merger && merger(object5, key3, value4, namespace)) {
322591
323365
  continue;
322592
323366
  }
322593
- if (Array.isArray(value4) && Array.isArray(object5[key2])) {
322594
- object5[key2] = [...value4, ...object5[key2]];
322595
- } else if (isPlainObject7(value4) && isPlainObject7(object5[key2])) {
322596
- object5[key2] = _defu(value4, object5[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
323367
+ if (Array.isArray(value4) && Array.isArray(object5[key3])) {
323368
+ object5[key3] = [...value4, ...object5[key3]];
323369
+ } else if (isPlainObject8(value4) && isPlainObject8(object5[key3])) {
323370
+ object5[key3] = _defu(value4, object5[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
322597
323371
  } else {
322598
- object5[key2] = value4;
323372
+ object5[key3] = value4;
322599
323373
  }
322600
323374
  }
322601
323375
  return object5;
@@ -322604,15 +323378,15 @@ function createDefu(merger) {
322604
323378
  return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
322605
323379
  }
322606
323380
  var defu = createDefu();
322607
- var defuFn = createDefu((object5, key2, currentValue) => {
322608
- if (object5[key2] !== undefined && typeof currentValue === "function") {
322609
- object5[key2] = currentValue(object5[key2]);
323381
+ var defuFn = createDefu((object5, key3, currentValue) => {
323382
+ if (object5[key3] !== undefined && typeof currentValue === "function") {
323383
+ object5[key3] = currentValue(object5[key3]);
322610
323384
  return true;
322611
323385
  }
322612
323386
  });
322613
- var defuArrayFn = createDefu((object5, key2, currentValue) => {
322614
- if (Array.isArray(object5[key2]) && typeof currentValue === "function") {
322615
- object5[key2] = currentValue(object5[key2]);
323387
+ var defuArrayFn = createDefu((object5, key3, currentValue) => {
323388
+ if (Array.isArray(object5[key3]) && typeof currentValue === "function") {
323389
+ object5[key3] = currentValue(object5[key3]);
322616
323390
  return true;
322617
323391
  }
322618
323392
  });
@@ -325822,11 +326596,11 @@ function cacheDirectory() {
325822
326596
  }
325823
326597
  function normalizeHeaders(headers = {}) {
325824
326598
  const normalized = {};
325825
- for (const [key2, value4] of Object.entries(headers)) {
326599
+ for (const [key3, value4] of Object.entries(headers)) {
325826
326600
  if (!value4) {
325827
326601
  continue;
325828
326602
  }
325829
- normalized[key2.toLowerCase()] = value4;
326603
+ normalized[key3.toLowerCase()] = value4;
325830
326604
  }
325831
326605
  return normalized;
325832
326606
  }
@@ -326124,7 +326898,7 @@ function createCommand2() {
326124
326898
  await mkdir6(projectDir, { recursive: true });
326125
326899
  }
326126
326900
  if (!await isEmpty(projectDir)) {
326127
- const confirmEmpty = await esm_default4({
326901
+ const confirmEmpty = await esm_default5({
326128
326902
  message: `The folder ${projectDir} already exists. Do you want to empty it?`,
326129
326903
  default: false
326130
326904
  });
@@ -326377,7 +327151,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
326377
327151
  return defaultPersonalAccessToken;
326378
327152
  }
326379
327153
  if (existingConfig && defaultPersonalAccessToken) {
326380
- const useExisting = await esm_default4({
327154
+ const useExisting = await esm_default5({
326381
327155
  message: `Do you want to use your existing personal access token for ${instance}?`,
326382
327156
  default: true
326383
327157
  });
@@ -326385,7 +327159,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
326385
327159
  return defaultPersonalAccessToken;
326386
327160
  }
326387
327161
  }
326388
- return esm_default5({
327162
+ return esm_default6({
326389
327163
  message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
326390
327164
  validate(value4) {
326391
327165
  try {
@@ -326511,7 +327285,7 @@ function logoutCommand() {
326511
327285
  }
326512
327286
  const env2 = await loadEnv(false, false);
326513
327287
  const defaultInstance = env2.SETTLEMINT_INSTANCE;
326514
- const instance = await esm_default3({
327288
+ const instance = await esm_default4({
326515
327289
  message: "Select the instance to logout from:",
326516
327290
  choices: instances.map((instance2) => ({
326517
327291
  value: instance2,
@@ -326532,7 +327306,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
326532
327306
  if (verificationChallenges.length === 1) {
326533
327307
  return verificationChallenges[0];
326534
327308
  }
326535
- const verificationChallenge = await esm_default3({
327309
+ const verificationChallenge = await esm_default4({
326536
327310
  message: "Which pincode verification do you want to use?",
326537
327311
  choices: verificationChallenges.map((verificationChallenge2) => ({
326538
327312
  name: verificationChallenge2.name,
@@ -326596,7 +327370,7 @@ function pincodeVerificationResponseCommand() {
326596
327370
  nodeId: selectedBlockchainNode.id
326597
327371
  });
326598
327372
  const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
326599
- const pincode = await esm_default5({
327373
+ const pincode = await esm_default6({
326600
327374
  message: "Enter your pincode",
326601
327375
  validate(value4) {
326602
327376
  if (!value4.trim()) {
@@ -326749,7 +327523,7 @@ async function providerPrompt(platformConfig, argument) {
326749
327523
  if (possibleProviders.length === 1) {
326750
327524
  return possibleProviders[0];
326751
327525
  }
326752
- const provider = await esm_default3({
327526
+ const provider = await esm_default4({
326753
327527
  message: "Which provider do you want to use?",
326754
327528
  choices: platformConfig.deploymentEngineTargets.map((target) => ({
326755
327529
  name: target.name,
@@ -326780,7 +327554,7 @@ async function regionPrompt(provider, argument) {
326780
327554
  if (possibleRegions.length === 1) {
326781
327555
  return possibleRegions[0];
326782
327556
  }
326783
- const region = await esm_default3({
327557
+ const region = await esm_default4({
326784
327558
  message: "Which region do you want to use?",
326785
327559
  choices: provider.clusters.map((cluster) => ({
326786
327560
  name: cluster.name,
@@ -327306,7 +328080,7 @@ async function blockchainNetworkPrompt({
327306
328080
  envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
327307
328081
  isRequired,
327308
328082
  defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
327309
- return esm_default3({
328083
+ return esm_default4({
327310
328084
  message: "Which blockchain network do you want to connect to?",
327311
328085
  choices,
327312
328086
  default: defaultNetwork
@@ -329071,7 +329845,7 @@ function jsonOutput(data) {
329071
329845
  var composer = require_composer();
329072
329846
  var Document = require_Document();
329073
329847
  var Schema = require_Schema();
329074
- var errors4 = require_errors3();
329848
+ var errors5 = require_errors3();
329075
329849
  var Alias = require_Alias();
329076
329850
  var identity2 = require_identity();
329077
329851
  var Pair = require_Pair();
@@ -329087,9 +329861,9 @@ var visit2 = require_visit();
329087
329861
  var $Composer = composer.Composer;
329088
329862
  var $Document = Document.Document;
329089
329863
  var $Schema = Schema.Schema;
329090
- var $YAMLError = errors4.YAMLError;
329091
- var $YAMLParseError = errors4.YAMLParseError;
329092
- var $YAMLWarning = errors4.YAMLWarning;
329864
+ var $YAMLError = errors5.YAMLError;
329865
+ var $YAMLParseError = errors5.YAMLParseError;
329866
+ var $YAMLWarning = errors5.YAMLWarning;
329093
329867
  var $Alias = Alias.Alias;
329094
329868
  var $isAlias = identity2.isAlias;
329095
329869
  var $isCollection = identity2.isCollection;
@@ -329608,7 +330382,7 @@ async function useCasePrompt(platformConfig, argument) {
329608
330382
  if (selectableUseCases.length === 1) {
329609
330383
  return selectableUseCases[0];
329610
330384
  }
329611
- const useCase = await esm_default3({
330385
+ const useCase = await esm_default4({
329612
330386
  message: "Which use case do you want to use?",
329613
330387
  choices: selectableUseCases.map((useCase2) => ({
329614
330388
  name: formatUseCaseName(useCase2.name),
@@ -329666,7 +330440,7 @@ function createCommand4() {
329666
330440
  const targetDir = formatTargetDir(name3);
329667
330441
  const projectDir = join9(process.cwd(), targetDir);
329668
330442
  if (await exists3(projectDir) && !await isEmpty(projectDir)) {
329669
- const confirmEmpty = await esm_default4({
330443
+ const confirmEmpty = await esm_default5({
329670
330444
  message: `The folder ${projectDir} already exists. Do you want to delete it?`,
329671
330445
  default: false
329672
330446
  });
@@ -329696,11 +330470,11 @@ function createCommand4() {
329696
330470
 
329697
330471
  // src/utils/commands/passthrough-options.ts
329698
330472
  function mapPassthroughOptions(options, command) {
329699
- const optionArgs = Object.entries(options).map(([key2, value4]) => {
330473
+ const optionArgs = Object.entries(options).map(([key3, value4]) => {
329700
330474
  if (value4 === true) {
329701
- return `--${key2}`;
330475
+ return `--${key3}`;
329702
330476
  }
329703
- return `--${key2}=${value4}`;
330477
+ return `--${key3}=${value4}`;
329704
330478
  });
329705
330479
  return [...optionArgs, ...command.args];
329706
330480
  }
@@ -329976,7 +330750,7 @@ async function addressPrompt({
329976
330750
  note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
329977
330751
  Please select another key or activate this key on the node and try again.`, "warn");
329978
330752
  }
329979
- const address = await esm_default3({
330753
+ const address = await esm_default4({
329980
330754
  message: "Which private key do you want to deploy from?",
329981
330755
  choices: possiblePrivateKeys.map(({ address: address2, name: name3 }) => ({
329982
330756
  name: name3,
@@ -330929,4 +331703,4 @@ async function sdkCliCommand(argv = process.argv) {
330929
331703
  // src/cli.ts
330930
331704
  sdkCliCommand();
330931
331705
 
330932
- //# debugId=928FD72438AD349F64756E2164756E21
331706
+ //# debugId=BA5D68B9CDB2EEB564756E2164756E21