@settlemint/sdk-cli 2.5.1-main1d50d683 → 2.5.1-main2314ecd5

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 +610 -2260
  2. package/dist/cli.js.map +7 -50
  3. package/package.json +8 -8
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 colors2 = createColors(sys2);
161745
+ const colors3 = 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(colors2.blue(name2), sys2.newLine);
161766
+ text.push(colors3.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 ? colors2.blue(curLeft) : curLeft;
161811
+ curLeft = colorLeft ? colors3.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 colors2 = createColors(sys2);
161923
+ const colors3 = createColors(sys2);
161924
161924
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version4)}`)];
161925
- output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
161925
+ output.push(colors3.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(" " + colors2.blue(example2) + sys2.newLine);
161946
+ output.push(" " + colors3.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 colors2 = createColors(sys2);
161969
+ const colors3 = 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 = colors2.blueBackground("".padStart(tsIconLength));
161974
- const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
161973
+ const tsIconFirstLine = colors3.blueBackground("".padStart(tsIconLength));
161974
+ const tsIconSecondLine = colors3.blueBackground(colors3.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;
@@ -232832,16 +232832,16 @@ var init_lru = __esm(() => {
232832
232832
  });
232833
232833
  this.maxSize = size2;
232834
232834
  }
232835
- get(key4) {
232836
- const value4 = super.get(key4);
232837
- if (super.has(key4) && value4 !== undefined) {
232838
- this.delete(key4);
232839
- super.set(key4, value4);
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);
232840
232840
  }
232841
232841
  return value4;
232842
232842
  }
232843
- set(key4, value4) {
232844
- super.set(key4, value4);
232843
+ set(key2, value4) {
232844
+ super.set(key2, 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, (key4, value_) => {
233886
+ var stringify3 = (value4, replacer, space) => JSON.stringify(value4, (key2, value_) => {
233887
233887
  const value5 = typeof value_ === "bigint" ? value_.toString() : value_;
233888
- return typeof replacer === "function" ? replacer(key4, value5) : value5;
233888
+ return typeof replacer === "function" ? replacer(key2, 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(([key4, value4]) => {
234002
+ const entries = Object.entries(args).map(([key2, value4]) => {
234003
234003
  if (value4 === undefined || value4 === false)
234004
234004
  return null;
234005
- return [key4, value4];
234005
+ return [key2, value4];
234006
234006
  }).filter(Boolean);
234007
- const maxLength = entries.reduce((acc, [key4]) => Math.max(acc, key4.length), 0);
234008
- return entries.map(([key4, value4]) => ` ${`${key4}:`.padEnd(maxLength + 1)} ${value4}`).join(`
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(`
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, key4, message) => new HMAC(hash2, key4).update(message).digest();
235114
+ var HMAC, hmac = (hash2, key2, message) => new HMAC(hash2, key2).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 key4 = toBytes2(_key);
235123
+ const key2 = 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(key4.length > blockLen ? hash2.create().update(key4).digest() : key4);
235131
+ pad2.set(key2.length > blockLen ? hash2.create().update(key2).digest() : key2);
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, key4) => new HMAC(hash2, key4);
235181
+ hmac.create = (hash2, key2) => new HMAC(hash2, key2);
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(key4, fieldOrder, isLE2 = false) {
235583
- const len = key4.length;
235582
+ function mapHashToField(key2, fieldOrder, isLE2 = false) {
235583
+ const len = key2.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(key4) : bytesToNumberBE(key4);
235588
+ const num = isLE2 ? bytesToNumberLE(key2) : bytesToNumberBE(key2);
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(key4) {
235891
+ function normPrivateKeyToScalar(key2) {
235892
235892
  let num;
235893
- if (typeof key4 === "bigint") {
235894
- num = key4;
235893
+ if (typeof key2 === "bigint") {
235894
+ num = key2;
235895
235895
  } else {
235896
- let bytes = ensureBytes("private key", key4);
235896
+ let bytes = ensureBytes("private key", key2);
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 key4}`);
235907
+ throw new Error(`invalid private key: expected ui8a of size ${expected}, got ${typeof key2}`);
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 || ((key4, ...msgs) => hmac(ecdsaOpts.hash, key4, concatBytes(...msgs)));
236309
+ const hmac_ = ecdsaOpts.hmac || ((key2, ...msgs) => hmac(ecdsaOpts.hash, key2, 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 key4 of keys) {
237468
- if (key4 in value_)
237469
- value4[key4] = value_[key4];
237470
- if (formatted2[key4] && typeof formatted2[key4] === "object" && !Array.isArray(formatted2[key4]))
237471
- extract_(formatted2[key4]);
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]);
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, (key4, value5) => {
237875
+ return JSON.stringify(value4, (key2, value5) => {
237876
237876
  if (typeof replacer === "function")
237877
- return replacer(key4, value5);
237877
+ return replacer(key2, value5);
237878
237878
  if (typeof value5 === "bigint")
237879
237879
  return value5.toString() + bigIntSuffix;
237880
237880
  return value5;
@@ -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_(key5, node, visitor, path7) {
239301
- const ctrl = callVisitor(key5, node, visitor, path7);
239300
+ function visit_(key2, node, visitor, path7) {
239301
+ const ctrl = callVisitor(key2, node, visitor, path7);
239302
239302
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239303
- replaceNode(key5, path7, ctrl);
239304
- return visit_(key5, ctrl, visitor, path7);
239303
+ replaceNode(key2, path7, ctrl);
239304
+ return visit_(key2, 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_(key5, node, visitor, path7) {
239349
- const ctrl = await callVisitor(key5, node, visitor, path7);
239348
+ async function visitAsync_(key2, node, visitor, path7) {
239349
+ const ctrl = await callVisitor(key2, node, visitor, path7);
239350
239350
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239351
- replaceNode(key5, path7, ctrl);
239352
- return visitAsync_(key5, ctrl, visitor, path7);
239351
+ replaceNode(key2, path7, ctrl);
239352
+ return visitAsync_(key2, 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(key5, node, visitor, path7) {
239402
+ function callVisitor(key2, node, visitor, path7) {
239403
239403
  if (typeof visitor === "function")
239404
- return visitor(key5, node, path7);
239404
+ return visitor(key2, node, path7);
239405
239405
  if (identity2.isMap(node))
239406
- return visitor.Map?.(key5, node, path7);
239406
+ return visitor.Map?.(key2, node, path7);
239407
239407
  if (identity2.isSeq(node))
239408
- return visitor.Seq?.(key5, node, path7);
239408
+ return visitor.Seq?.(key2, node, path7);
239409
239409
  if (identity2.isPair(node))
239410
- return visitor.Pair?.(key5, node, path7);
239410
+ return visitor.Pair?.(key2, node, path7);
239411
239411
  if (identity2.isScalar(node))
239412
- return visitor.Scalar?.(key5, node, path7);
239412
+ return visitor.Scalar?.(key2, node, path7);
239413
239413
  if (identity2.isAlias(node))
239414
- return visitor.Alias?.(key5, node, path7);
239414
+ return visitor.Alias?.(key2, node, path7);
239415
239415
  return;
239416
239416
  }
239417
- function replaceNode(key5, path7, node) {
239417
+ function replaceNode(key2, path7, node) {
239418
239418
  const parent = path7[path7.length - 1];
239419
239419
  if (identity2.isCollection(parent)) {
239420
- parent.items[key5] = node;
239420
+ parent.items[key2] = node;
239421
239421
  } else if (identity2.isPair(parent)) {
239422
- if (key5 === "key")
239422
+ if (key2 === "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, key5, val) {
239653
+ function applyReviver(reviver, obj, key2, 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, key5, val);
239693
+ return reviver.call(obj, key2, 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 [key5, ...rest] = path7;
240023
- const node = this.get(key5, true);
240022
+ const [key2, ...rest] = path7;
240023
+ const node = this.get(key2, true);
240024
240024
  if (identity2.isCollection(node))
240025
240025
  node.addIn(rest, value4);
240026
240026
  else if (node === undefined && this.schema)
240027
- this.set(key5, collectionFromPath(this.schema, rest, value4));
240027
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
240028
240028
  else
240029
- throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
240029
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240030
240030
  }
240031
240031
  }
240032
240032
  deleteIn(path7) {
240033
- const [key5, ...rest] = path7;
240033
+ const [key2, ...rest] = path7;
240034
240034
  if (rest.length === 0)
240035
- return this.delete(key5);
240036
- const node = this.get(key5, true);
240035
+ return this.delete(key2);
240036
+ const node = this.get(key2, true);
240037
240037
  if (identity2.isCollection(node))
240038
240038
  return node.deleteIn(rest);
240039
240039
  else
240040
- throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
240040
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240041
240041
  }
240042
240042
  getIn(path7, keepScalar) {
240043
- const [key5, ...rest] = path7;
240044
- const node = this.get(key5, true);
240043
+ const [key2, ...rest] = path7;
240044
+ const node = this.get(key2, 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 [key5, ...rest] = path7;
240059
+ const [key2, ...rest] = path7;
240060
240060
  if (rest.length === 0)
240061
- return this.has(key5);
240062
- const node = this.get(key5, true);
240061
+ return this.has(key2);
240062
+ const node = this.get(key2, true);
240063
240063
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
240064
240064
  }
240065
240065
  setIn(path7, value4) {
240066
- const [key5, ...rest] = path7;
240066
+ const [key2, ...rest] = path7;
240067
240067
  if (rest.length === 0) {
240068
- this.set(key5, value4);
240068
+ this.set(key2, value4);
240069
240069
  } else {
240070
- const node = this.get(key5, true);
240070
+ const node = this.get(key2, true);
240071
240071
  if (identity2.isCollection(node))
240072
240072
  node.setIn(rest, value4);
240073
240073
  else if (node === undefined && this.schema)
240074
- this.set(key5, collectionFromPath(this.schema, rest, value4));
240074
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
240075
240075
  else
240076
- throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
240076
+ throw new Error(`Expected YAML collection at ${key2}. 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: key5, value: value4 }, ctx, onComment, onChompKeep) {
240663
+ function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
240664
240664
  const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
240665
- let keyComment = identity2.isNode(key5) && key5.comment || null;
240665
+ let keyComment = identity2.isNode(key2) && key2.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(key5) || !identity2.isNode(key5) && typeof key5 === "object") {
240670
+ if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "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 && (!key5 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key5) || (identity2.isScalar(key5) ? key5.type === Scalar.Scalar.BLOCK_FOLDED || key5.type === Scalar.Scalar.BLOCK_LITERAL : typeof key5 === "object"));
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"));
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(key5, ctx, () => keyCommentDone = true, () => chompKeep = true);
240683
+ let str = stringify5.stringify(key2, 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, key5) => (merge7.identify(key5) || identity2.isScalar(key5) && (!key5.type || key5.type === Scalar.Scalar.PLAIN) && merge7.identify(key5.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
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);
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 [key5, value5] of srcMap) {
240844
+ for (const [key2, value5] of srcMap) {
240845
240845
  if (map7 instanceof Map) {
240846
- if (!map7.has(key5))
240847
- map7.set(key5, value5);
240846
+ if (!map7.has(key2))
240847
+ map7.set(key2, value5);
240848
240848
  } else if (map7 instanceof Set) {
240849
- map7.add(key5);
240850
- } else if (!Object.prototype.hasOwnProperty.call(map7, key5)) {
240851
- Object.defineProperty(map7, key5, {
240849
+ map7.add(key2);
240850
+ } else if (!Object.prototype.hasOwnProperty.call(map7, key2)) {
240851
+ Object.defineProperty(map7, key2, {
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: key5, value: value4 }) {
240874
- if (identity2.isNode(key5) && key5.addToJSMap)
240875
- key5.addToJSMap(ctx, map7, value4);
240876
- else if (merge7.isMergeKey(ctx, key5))
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))
240877
240877
  merge7.addMergeToJSMap(ctx, map7, value4);
240878
240878
  else {
240879
- const jsKey = toJS.toJS(key5, "", ctx);
240879
+ const jsKey = toJS.toJS(key2, "", 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(key5, jsKey, ctx);
240885
+ const stringKey = stringifyKey(key2, 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(key5, jsKey, ctx) {
240900
+ function stringifyKey(key2, 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(key5) && ctx?.doc) {
240905
+ if (identity2.isNode(key2) && 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 = key5.toString(strCtx);
240912
+ const strKey = key2.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(key5, value4, ctx) {
240934
- const k6 = createNode.createNode(key5, undefined, ctx);
240933
+ function createPair(key2, value4, ctx) {
240934
+ const k6 = createNode.createNode(key2, 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(key5, value4 = null) {
240940
+ constructor(key2, value4 = null) {
240941
240941
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
240942
- this.key = key5;
240942
+ this.key = key2;
240943
240943
  this.value = value4;
240944
240944
  }
240945
240945
  clone(schema) {
240946
- let { key: key5, value: value4 } = this;
240947
- if (identity2.isNode(key5))
240948
- key5 = key5.clone(schema);
240946
+ let { key: key2, value: value4 } = this;
240947
+ if (identity2.isNode(key2))
240948
+ key2 = key2.clone(schema);
240949
240949
  if (identity2.isNode(value4))
240950
240950
  value4 = value4.clone(schema);
240951
- return new Pair(key5, value4);
240951
+ return new Pair(key2, 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, key5) {
241119
- const k6 = identity2.isScalar(key5) ? key5.value : key5;
241118
+ function findPair(items, key2) {
241119
+ const k6 = identity2.isScalar(key2) ? key2.value : key2;
241120
241120
  for (const it2 of items) {
241121
241121
  if (identity2.isPair(it2)) {
241122
- if (it2.key === key5 || it2.key === k6)
241122
+ if (it2.key === key2 || 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 = (key5, value4) => {
241142
+ const add = (key2, value4) => {
241143
241143
  if (typeof replacer === "function")
241144
- value4 = replacer.call(obj, key5, value4);
241145
- else if (Array.isArray(replacer) && !replacer.includes(key5))
241144
+ value4 = replacer.call(obj, key2, value4);
241145
+ else if (Array.isArray(replacer) && !replacer.includes(key2))
241146
241146
  return;
241147
241147
  if (value4 !== undefined || keepUndefined)
241148
- map7.items.push(Pair.createPair(key5, value4, ctx));
241148
+ map7.items.push(Pair.createPair(key2, value4, ctx));
241149
241149
  };
241150
241150
  if (obj instanceof Map) {
241151
- for (const [key5, value4] of obj)
241152
- add(key5, value4);
241151
+ for (const [key2, value4] of obj)
241152
+ add(key2, value4);
241153
241153
  } else if (obj && typeof obj === "object") {
241154
- for (const key5 of Object.keys(obj))
241155
- add(key5, obj[key5]);
241154
+ for (const key2 of Object.keys(obj))
241155
+ add(key2, obj[key2]);
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(key5) {
241190
- const it2 = findPair(this.items, key5);
241189
+ delete(key2) {
241190
+ const it2 = findPair(this.items, key2);
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(key5, keepScalar) {
241197
- const it2 = findPair(this.items, key5);
241196
+ get(key2, keepScalar) {
241197
+ const it2 = findPair(this.items, key2);
241198
241198
  const node = it2?.value;
241199
241199
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
241200
241200
  }
241201
- has(key5) {
241202
- return !!findPair(this.items, key5);
241201
+ has(key2) {
241202
+ return !!findPair(this.items, key2);
241203
241203
  }
241204
- set(key5, value4) {
241205
- this.add(new Pair.Pair(key5, value4), true);
241204
+ set(key2, value4) {
241205
+ this.add(new Pair.Pair(key2, 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(key5) {
241277
- const idx = asItemIndex(key5);
241276
+ delete(key2) {
241277
+ const idx = asItemIndex(key2);
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(key5, keepScalar) {
241284
- const idx = asItemIndex(key5);
241283
+ get(key2, keepScalar) {
241284
+ const idx = asItemIndex(key2);
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(key5) {
241291
- const idx = asItemIndex(key5);
241290
+ has(key2) {
241291
+ const idx = asItemIndex(key2);
241292
241292
  return typeof idx === "number" && idx < this.items.length;
241293
241293
  }
241294
- set(key5, value4) {
241295
- const idx = asItemIndex(key5);
241294
+ set(key2, value4) {
241295
+ const idx = asItemIndex(key2);
241296
241296
  if (typeof idx !== "number")
241297
- throw new Error(`Expected a valid index, not ${key5}.`);
241297
+ throw new Error(`Expected a valid index, not ${key2}.`);
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 key5 = obj instanceof Set ? it2 : String(i7++);
241332
- it2 = replacer.call(obj, key5, it2);
241331
+ const key2 = obj instanceof Set ? it2 : String(i7++);
241332
+ it2 = replacer.call(obj, key2, 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(key5) {
241341
- let idx = identity2.isScalar(key5) ? key5.value : key5;
241340
+ function asItemIndex(key2) {
241341
+ let idx = identity2.isScalar(key2) ? key2.value : key2;
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 key5, value4;
241714
+ let key2, value4;
241715
241715
  if (Array.isArray(it2)) {
241716
241716
  if (it2.length === 2) {
241717
- key5 = it2[0];
241717
+ key2 = 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
- key5 = keys[0];
241725
- value4 = it2[key5];
241724
+ key2 = keys[0];
241725
+ value4 = it2[key2];
241726
241726
  } else {
241727
241727
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
241728
241728
  }
241729
241729
  } else {
241730
- key5 = it2;
241730
+ key2 = it2;
241731
241731
  }
241732
- pairs2.items.push(Pair.createPair(key5, value4, ctx));
241732
+ pairs2.items.push(Pair.createPair(key2, 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 key5, value4;
241773
+ let key2, value4;
241774
241774
  if (identity2.isPair(pair)) {
241775
- key5 = toJS.toJS(pair.key, "", ctx);
241776
- value4 = toJS.toJS(pair.value, key5, ctx);
241775
+ key2 = toJS.toJS(pair.key, "", ctx);
241776
+ value4 = toJS.toJS(pair.value, key2, ctx);
241777
241777
  } else {
241778
- key5 = toJS.toJS(pair, "", ctx);
241778
+ key2 = toJS.toJS(pair, "", ctx);
241779
241779
  }
241780
- if (map7.has(key5))
241780
+ if (map7.has(key2))
241781
241781
  throw new Error("Ordered maps must not include duplicate keys");
241782
- map7.set(key5, value4);
241782
+ map7.set(key2, 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: key5 } of pairs$1.items) {
241804
- if (identity2.isScalar(key5)) {
241805
- if (seenKeys.includes(key5.value)) {
241806
- onError(`Ordered maps must not include duplicate keys: ${key5.value}`);
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}`);
241807
241807
  } else {
241808
- seenKeys.push(key5.value);
241808
+ seenKeys.push(key2.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(key5) {
241982
+ add(key2) {
241983
241983
  let pair;
241984
- if (identity2.isPair(key5))
241985
- pair = key5;
241986
- else if (key5 && typeof key5 === "object" && "key" in key5 && "value" in key5 && key5.value === null)
241987
- pair = new Pair.Pair(key5.key, null);
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);
241988
241988
  else
241989
- pair = new Pair.Pair(key5, null);
241989
+ pair = new Pair.Pair(key2, 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(key5, keepPair) {
241995
- const pair = YAMLMap.findPair(this.items, key5);
241994
+ get(key2, keepPair) {
241995
+ const pair = YAMLMap.findPair(this.items, key2);
241996
241996
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
241997
241997
  }
241998
- set(key5, value4) {
241998
+ set(key2, 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, key5);
242001
+ const prev = YAMLMap.findPair(this.items, key2);
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(key5));
242005
+ this.items.push(new Pair.Pair(key2));
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((key5) => key5 !== "yaml11").map((key5) => JSON.stringify(key5)).join(", ");
242240
+ const keys = Array.from(schemas3.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).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((key5) => JSON.stringify(key5)).join(", ");
242256
+ const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).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(key5, value4, options = {}) {
242492
- const k6 = this.createNode(key5, null, options);
242491
+ createPair(key2, value4, options = {}) {
242492
+ const k6 = this.createNode(key2, null, options);
242493
242493
  const v7 = this.createNode(value4, null, options);
242494
242494
  return new Pair.Pair(k6, v7);
242495
242495
  }
242496
- delete(key5) {
242497
- return assertCollection(this.contents) ? this.contents.delete(key5) : false;
242496
+ delete(key2) {
242497
+ return assertCollection(this.contents) ? this.contents.delete(key2) : 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(key5, keepScalar) {
242509
- return identity2.isCollection(this.contents) ? this.contents.get(key5, keepScalar) : undefined;
242508
+ get(key2, keepScalar) {
242509
+ return identity2.isCollection(this.contents) ? this.contents.get(key2, 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(key5) {
242517
- return identity2.isCollection(this.contents) ? this.contents.has(key5) : false;
242516
+ has(key2) {
242517
+ return identity2.isCollection(this.contents) ? this.contents.has(key2) : 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(key5, value4) {
242524
+ set(key2, value4) {
242525
242525
  if (this.contents == null) {
242526
- this.contents = Collection.collectionFromPath(this.schema, [key5], value4);
242526
+ this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
242527
242527
  } else if (assertCollection(this.contents)) {
242528
- this.contents.set(key5, value4);
242528
+ this.contents.set(key2, 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(key5) {
242811
- if (!key5)
242810
+ function containsNewline(key2) {
242811
+ if (!key2)
242812
242812
  return null;
242813
- switch (key5.type) {
242813
+ switch (key2.type) {
242814
242814
  case "alias":
242815
242815
  case "scalar":
242816
242816
  case "double-quoted-scalar":
242817
242817
  case "single-quoted-scalar":
242818
- if (key5.source.includes(`
242818
+ if (key2.source.includes(`
242819
242819
  `))
242820
242820
  return true;
242821
- if (key5.end) {
242822
- for (const st2 of key5.end)
242821
+ if (key2.end) {
242822
+ for (const st2 of key2.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 key5.items) {
242828
+ for (const it2 of key2.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: key5, sep: sep5, value: value4 } = collItem;
242893
+ const { start: start3, key: key2, sep: sep5, value: value4 } = collItem;
242894
242894
  const keyProps = resolveProps.resolveProps(start3, {
242895
242895
  indicator: "explicit-key-ind",
242896
- next: key5 ?? sep5?.[0],
242896
+ next: key2 ?? 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 (key5) {
242905
- if (key5.type === "block-seq")
242904
+ if (key2) {
242905
+ if (key2.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 key5 && key5.indent !== bm.indent)
242907
+ else if ("indent" in key2 && key2.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(key5)) {
242922
- onError(key5 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
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");
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 = key5 ? composeNode(ctx, key5, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242929
+ const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242930
242930
  if (ctx.schema.compat)
242931
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key5, onError);
242931
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, 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: !key5 || key5.type === "block-scalar"
242941
+ startOnNewline: !key2 || key2.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: key5, sep: sep5, value: value4 } = collItem;
243097
+ const { start: start3, key: key2, sep: sep5, value: value4 } = collItem;
243098
243098
  const props = resolveProps.resolveProps(start3, {
243099
243099
  flow: fcName,
243100
243100
  indicator: "explicit-key-ind",
243101
- next: key5 ?? sep5?.[0],
243101
+ next: key2 ?? 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(key5))
243124
- onError(key5, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
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");
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 = key5 ? composeNode(ctx, key5, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
- if (isBlock(key5))
243169
+ const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
+ if (isBlock(key2))
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 errors7 = require_errors3();
243981
+ var errors4 = 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 errors7.YAMLWarning(pos, code2, message));
244032
+ this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
244033
244033
  else
244034
- this.errors.push(new errors7.YAMLParseError(pos, code2, message));
244034
+ this.errors.push(new errors4.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 errors7.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244118
+ const error45 = new errors4.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 errors7.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244128
+ this.errors.push(new errors4.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 errors7.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244143
+ this.errors.push(new errors4.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 errors7 = require_errors3();
244169
+ var errors4 = 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 errors7.YAMLParseError([offset, offset + 1], code2, message);
244178
+ throw new errors4.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 key5 of Object.keys(token))
244293
- if (key5 !== "type" && key5 !== "offset")
244294
- delete token[key5];
244292
+ for (const key2 of Object.keys(token))
244293
+ if (key2 !== "type" && key2 !== "offset")
244294
+ delete token[key2];
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 key5 of Object.keys(token))
244344
- if (key5 !== "type" && key5 !== "offset")
244345
- delete token[key5];
244343
+ for (const key2 of Object.keys(token))
244344
+ if (key2 !== "type" && key2 !== "offset")
244345
+ delete token[key2];
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: key5, sep: sep5, value: value4 }) {
244397
+ function stringifyItem({ start: start3, key: key2, sep: sep5, value: value4 }) {
244398
244398
  let res = "";
244399
244399
  for (const st2 of start3)
244400
244400
  res += st2.source;
244401
- if (key5)
244402
- res += stringifyToken(key5);
244401
+ if (key2)
244402
+ res += stringifyToken(key2);
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 key5 = it2.key;
245698
+ const key2 = 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: key5, sep: sep5 }]
245707
+ items: [{ start: start4, key: key2, 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 errors7 = require_errors3();
246040
+ var errors4 = 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(errors7.prettifyError(source, lineCounter2));
246058
- doc2.warnings.forEach(errors7.prettifyError(source, lineCounter2));
246057
+ doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246058
+ doc2.warnings.forEach(errors4.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 errors7.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246073
+ doc2.errors.push(new errors4.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(errors7.prettifyError(source, lineCounter2));
246079
- doc2.warnings.forEach(errors7.prettifyError(source, lineCounter2));
246078
+ doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246079
+ doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246080
246080
  }
246081
246081
  return doc2;
246082
246082
  }
@@ -246144,6 +246144,10 @@ 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
+ var isBackspaceKey = (key) => key.name === "backspace";
246150
+ var isNumberKey = (key) => "1234567890".includes(key.name);
246147
246151
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
246148
246152
  // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
246149
246153
  class AbortPromptError extends Error {
@@ -246312,7 +246316,7 @@ function useEffect(cb, depArray) {
246312
246316
  // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
246313
246317
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
246314
246318
 
246315
- // ../../node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
246319
+ // ../../node_modules/@inquirer/figures/dist/esm/index.js
246316
246320
  import process2 from "node:process";
246317
246321
  function isUnicodeSupported() {
246318
246322
  if (process2.platform !== "win32") {
@@ -246677,11 +246681,22 @@ function usePrefix({ status = "idle", theme }) {
246677
246681
  const iconName = status === "loading" ? "idle" : status;
246678
246682
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
246679
246683
  }
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
+ }
246680
246696
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
246681
246697
  function useRef(val) {
246682
246698
  return useState({ current: val })[0];
246683
246699
  }
246684
-
246685
246700
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
246686
246701
  function useKeypress(userHandler) {
246687
246702
  const signal = useRef(userHandler);
@@ -246713,6 +246728,72 @@ function readlineWidth() {
246713
246728
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
246714
246729
  }
246715
246730
 
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
+ }
246716
246797
  // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
246717
246798
  var import_mute_stream = __toESM(require_lib(), 1);
246718
246799
  import * as readline2 from "node:readline";
@@ -247095,6 +247176,20 @@ function createPrompt(view) {
247095
247176
  };
247096
247177
  return prompt;
247097
247178
  }
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
+ }
247098
247193
  // ../../node_modules/yoctocolors/base.js
247099
247194
  var exports_base = {};
247100
247195
  __export(exports_base, {
@@ -264988,7 +265083,7 @@ function pruneCurrentEnv(currentEnv, env2) {
264988
265083
  var package_default = {
264989
265084
  name: "@settlemint/sdk-cli",
264990
265085
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
264991
- version: "2.5.1-main1d50d683",
265086
+ version: "2.5.1-main2314ecd5",
264992
265087
  type: "module",
264993
265088
  private: false,
264994
265089
  license: "FSL-1.1-MIT",
@@ -265036,13 +265131,13 @@ var package_default = {
265036
265131
  "@commander-js/extra-typings": "14.0.0",
265037
265132
  commander: "14.0.0",
265038
265133
  "@inquirer/confirm": "5.1.14",
265039
- "@inquirer/input": "4.2.0",
265040
- "@inquirer/password": "4.0.16",
265041
- "@inquirer/select": "4.2.4",
265042
- "@settlemint/sdk-hasura": "2.5.1-main1d50d683",
265043
- "@settlemint/sdk-js": "2.5.1-main1d50d683",
265044
- "@settlemint/sdk-utils": "2.5.1-main1d50d683",
265045
- "@settlemint/sdk-viem": "2.5.1-main1d50d683",
265134
+ "@inquirer/input": "4.2.1",
265135
+ "@inquirer/password": "4.0.17",
265136
+ "@inquirer/select": "4.3.0",
265137
+ "@settlemint/sdk-hasura": "2.5.1-main2314ecd5",
265138
+ "@settlemint/sdk-js": "2.5.1-main2314ecd5",
265139
+ "@settlemint/sdk-utils": "2.5.1-main2314ecd5",
265140
+ "@settlemint/sdk-viem": "2.5.1-main2314ecd5",
265046
265141
  "@types/node": "24.0.15",
265047
265142
  "@types/semver": "7.7.0",
265048
265143
  "@types/which": "3.0.4",
@@ -303164,768 +303259,23 @@ function sanitizeName(value4, length = 35) {
303164
303259
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
303165
303260
  }
303166
303261
 
303167
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
303168
- var isBackspaceKey = (key2) => key2.name === "backspace";
303169
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
303170
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
303171
- class AbortPromptError2 extends Error {
303172
- name = "AbortPromptError";
303173
- message = "Prompt was aborted";
303174
- constructor(options) {
303175
- super();
303176
- this.cause = options?.cause;
303177
- }
303178
- }
303179
-
303180
- class CancelPromptError2 extends Error {
303181
- name = "CancelPromptError";
303182
- message = "Prompt was canceled";
303183
- }
303184
-
303185
- class ExitPromptError2 extends Error {
303186
- name = "ExitPromptError";
303187
- }
303188
-
303189
- class HookError2 extends Error {
303190
- name = "HookError";
303191
- }
303192
-
303193
- class ValidationError2 extends Error {
303194
- name = "ValidationError";
303195
- }
303196
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
303197
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
303198
-
303199
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
303200
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
303201
- var hookStorage2 = new AsyncLocalStorage2;
303202
- function createStore2(rl) {
303203
- const store = {
303204
- rl,
303205
- hooks: [],
303206
- hooksCleanup: [],
303207
- hooksEffect: [],
303208
- index: 0,
303209
- handleChange() {}
303210
- };
303211
- return store;
303212
- }
303213
- function withHooks2(rl, cb) {
303214
- const store = createStore2(rl);
303215
- return hookStorage2.run(store, () => {
303216
- function cycle(render) {
303217
- store.handleChange = () => {
303218
- store.index = 0;
303219
- render();
303220
- };
303221
- store.handleChange();
303222
- }
303223
- return cb(cycle);
303224
- });
303225
- }
303226
- function getStore2() {
303227
- const store = hookStorage2.getStore();
303228
- if (!store) {
303229
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
303230
- }
303231
- return store;
303232
- }
303233
- function readline3() {
303234
- return getStore2().rl;
303235
- }
303236
- function withUpdates2(fn) {
303237
- const wrapped = (...args) => {
303238
- const store = getStore2();
303239
- let shouldUpdate = false;
303240
- const oldHandleChange = store.handleChange;
303241
- store.handleChange = () => {
303242
- shouldUpdate = true;
303243
- };
303244
- const returnValue = fn(...args);
303245
- if (shouldUpdate) {
303246
- oldHandleChange();
303247
- }
303248
- store.handleChange = oldHandleChange;
303249
- return returnValue;
303250
- };
303251
- return AsyncResource4.bind(wrapped);
303252
- }
303253
- function withPointer2(cb) {
303254
- const store = getStore2();
303255
- const { index } = store;
303256
- const pointer = {
303257
- get() {
303258
- return store.hooks[index];
303259
- },
303260
- set(value4) {
303261
- store.hooks[index] = value4;
303262
- },
303263
- initialized: index in store.hooks
303264
- };
303265
- const returnValue = cb(pointer);
303266
- store.index++;
303267
- return returnValue;
303268
- }
303269
- function handleChange2() {
303270
- getStore2().handleChange();
303271
- }
303272
- var effectScheduler2 = {
303273
- queue(cb) {
303274
- const store = getStore2();
303275
- const { index } = store;
303276
- store.hooksEffect.push(() => {
303277
- store.hooksCleanup[index]?.();
303278
- const cleanFn = cb(readline3());
303279
- if (cleanFn != null && typeof cleanFn !== "function") {
303280
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
303281
- }
303282
- store.hooksCleanup[index] = cleanFn;
303283
- });
303284
- },
303285
- run() {
303286
- const store = getStore2();
303287
- withUpdates2(() => {
303288
- store.hooksEffect.forEach((effect) => {
303289
- effect();
303290
- });
303291
- store.hooksEffect.length = 0;
303292
- })();
303293
- },
303294
- clearAll() {
303295
- const store = getStore2();
303296
- store.hooksCleanup.forEach((cleanFn) => {
303297
- cleanFn?.();
303298
- });
303299
- store.hooksEffect.length = 0;
303300
- store.hooksCleanup.length = 0;
303301
- }
303302
- };
303303
-
303304
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
303305
- function useState2(defaultValue) {
303306
- return withPointer2((pointer) => {
303307
- const setState = AsyncResource5.bind(function setState(newValue) {
303308
- if (pointer.get() !== newValue) {
303309
- pointer.set(newValue);
303310
- handleChange2();
303311
- }
303312
- });
303313
- if (pointer.initialized) {
303314
- return [pointer.get(), setState];
303315
- }
303316
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
303317
- pointer.set(value4);
303318
- return [value4, setState];
303319
- });
303320
- }
303321
-
303322
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
303323
- function useEffect2(cb, depArray) {
303324
- withPointer2((pointer) => {
303325
- const oldDeps = pointer.get();
303326
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
303327
- if (hasChanged) {
303328
- effectScheduler2.queue(cb);
303329
- }
303330
- pointer.set(depArray);
303331
- });
303332
- }
303333
-
303334
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
303335
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
303336
-
303337
- // ../../node_modules/@inquirer/figures/dist/esm/index.js
303338
- import process8 from "node:process";
303339
- function isUnicodeSupported3() {
303340
- if (process8.platform !== "win32") {
303341
- return process8.env["TERM"] !== "linux";
303342
- }
303343
- 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";
303344
- }
303345
- var common2 = {
303346
- circleQuestionMark: "(?)",
303347
- questionMarkPrefix: "(?)",
303348
- square: "█",
303349
- squareDarkShade: "▓",
303350
- squareMediumShade: "▒",
303351
- squareLightShade: "░",
303352
- squareTop: "▀",
303353
- squareBottom: "▄",
303354
- squareLeft: "▌",
303355
- squareRight: "▐",
303356
- squareCenter: "■",
303357
- bullet: "●",
303358
- dot: "․",
303359
- ellipsis: "…",
303360
- pointerSmall: "›",
303361
- triangleUp: "▲",
303362
- triangleUpSmall: "▴",
303363
- triangleDown: "▼",
303364
- triangleDownSmall: "▾",
303365
- triangleLeftSmall: "◂",
303366
- triangleRightSmall: "▸",
303367
- home: "⌂",
303368
- heart: "♥",
303369
- musicNote: "♪",
303370
- musicNoteBeamed: "♫",
303371
- arrowUp: "↑",
303372
- arrowDown: "↓",
303373
- arrowLeft: "←",
303374
- arrowRight: "→",
303375
- arrowLeftRight: "↔",
303376
- arrowUpDown: "↕",
303377
- almostEqual: "≈",
303378
- notEqual: "≠",
303379
- lessOrEqual: "≤",
303380
- greaterOrEqual: "≥",
303381
- identical: "≡",
303382
- infinity: "∞",
303383
- subscriptZero: "₀",
303384
- subscriptOne: "₁",
303385
- subscriptTwo: "₂",
303386
- subscriptThree: "₃",
303387
- subscriptFour: "₄",
303388
- subscriptFive: "₅",
303389
- subscriptSix: "₆",
303390
- subscriptSeven: "₇",
303391
- subscriptEight: "₈",
303392
- subscriptNine: "₉",
303393
- oneHalf: "½",
303394
- oneThird: "⅓",
303395
- oneQuarter: "¼",
303396
- oneFifth: "⅕",
303397
- oneSixth: "⅙",
303398
- oneEighth: "⅛",
303399
- twoThirds: "⅔",
303400
- twoFifths: "⅖",
303401
- threeQuarters: "¾",
303402
- threeFifths: "⅗",
303403
- threeEighths: "⅜",
303404
- fourFifths: "⅘",
303405
- fiveSixths: "⅚",
303406
- fiveEighths: "⅝",
303407
- sevenEighths: "⅞",
303408
- line: "─",
303409
- lineBold: "━",
303410
- lineDouble: "═",
303411
- lineDashed0: "┄",
303412
- lineDashed1: "┅",
303413
- lineDashed2: "┈",
303414
- lineDashed3: "┉",
303415
- lineDashed4: "╌",
303416
- lineDashed5: "╍",
303417
- lineDashed6: "╴",
303418
- lineDashed7: "╶",
303419
- lineDashed8: "╸",
303420
- lineDashed9: "╺",
303421
- lineDashed10: "╼",
303422
- lineDashed11: "╾",
303423
- lineDashed12: "−",
303424
- lineDashed13: "–",
303425
- lineDashed14: "‐",
303426
- lineDashed15: "⁃",
303427
- lineVertical: "│",
303428
- lineVerticalBold: "┃",
303429
- lineVerticalDouble: "║",
303430
- lineVerticalDashed0: "┆",
303431
- lineVerticalDashed1: "┇",
303432
- lineVerticalDashed2: "┊",
303433
- lineVerticalDashed3: "┋",
303434
- lineVerticalDashed4: "╎",
303435
- lineVerticalDashed5: "╏",
303436
- lineVerticalDashed6: "╵",
303437
- lineVerticalDashed7: "╷",
303438
- lineVerticalDashed8: "╹",
303439
- lineVerticalDashed9: "╻",
303440
- lineVerticalDashed10: "╽",
303441
- lineVerticalDashed11: "╿",
303442
- lineDownLeft: "┐",
303443
- lineDownLeftArc: "╮",
303444
- lineDownBoldLeftBold: "┓",
303445
- lineDownBoldLeft: "┒",
303446
- lineDownLeftBold: "┑",
303447
- lineDownDoubleLeftDouble: "╗",
303448
- lineDownDoubleLeft: "╖",
303449
- lineDownLeftDouble: "╕",
303450
- lineDownRight: "┌",
303451
- lineDownRightArc: "╭",
303452
- lineDownBoldRightBold: "┏",
303453
- lineDownBoldRight: "┎",
303454
- lineDownRightBold: "┍",
303455
- lineDownDoubleRightDouble: "╔",
303456
- lineDownDoubleRight: "╓",
303457
- lineDownRightDouble: "╒",
303458
- lineUpLeft: "┘",
303459
- lineUpLeftArc: "╯",
303460
- lineUpBoldLeftBold: "┛",
303461
- lineUpBoldLeft: "┚",
303462
- lineUpLeftBold: "┙",
303463
- lineUpDoubleLeftDouble: "╝",
303464
- lineUpDoubleLeft: "╜",
303465
- lineUpLeftDouble: "╛",
303466
- lineUpRight: "└",
303467
- lineUpRightArc: "╰",
303468
- lineUpBoldRightBold: "┗",
303469
- lineUpBoldRight: "┖",
303470
- lineUpRightBold: "┕",
303471
- lineUpDoubleRightDouble: "╚",
303472
- lineUpDoubleRight: "╙",
303473
- lineUpRightDouble: "╘",
303474
- lineUpDownLeft: "┤",
303475
- lineUpBoldDownBoldLeftBold: "┫",
303476
- lineUpBoldDownBoldLeft: "┨",
303477
- lineUpDownLeftBold: "┥",
303478
- lineUpBoldDownLeftBold: "┩",
303479
- lineUpDownBoldLeftBold: "┪",
303480
- lineUpDownBoldLeft: "┧",
303481
- lineUpBoldDownLeft: "┦",
303482
- lineUpDoubleDownDoubleLeftDouble: "╣",
303483
- lineUpDoubleDownDoubleLeft: "╢",
303484
- lineUpDownLeftDouble: "╡",
303485
- lineUpDownRight: "├",
303486
- lineUpBoldDownBoldRightBold: "┣",
303487
- lineUpBoldDownBoldRight: "┠",
303488
- lineUpDownRightBold: "┝",
303489
- lineUpBoldDownRightBold: "┡",
303490
- lineUpDownBoldRightBold: "┢",
303491
- lineUpDownBoldRight: "┟",
303492
- lineUpBoldDownRight: "┞",
303493
- lineUpDoubleDownDoubleRightDouble: "╠",
303494
- lineUpDoubleDownDoubleRight: "╟",
303495
- lineUpDownRightDouble: "╞",
303496
- lineDownLeftRight: "┬",
303497
- lineDownBoldLeftBoldRightBold: "┳",
303498
- lineDownLeftBoldRightBold: "┯",
303499
- lineDownBoldLeftRight: "┰",
303500
- lineDownBoldLeftBoldRight: "┱",
303501
- lineDownBoldLeftRightBold: "┲",
303502
- lineDownLeftRightBold: "┮",
303503
- lineDownLeftBoldRight: "┭",
303504
- lineDownDoubleLeftDoubleRightDouble: "╦",
303505
- lineDownDoubleLeftRight: "╥",
303506
- lineDownLeftDoubleRightDouble: "╤",
303507
- lineUpLeftRight: "┴",
303508
- lineUpBoldLeftBoldRightBold: "┻",
303509
- lineUpLeftBoldRightBold: "┷",
303510
- lineUpBoldLeftRight: "┸",
303511
- lineUpBoldLeftBoldRight: "┹",
303512
- lineUpBoldLeftRightBold: "┺",
303513
- lineUpLeftRightBold: "┶",
303514
- lineUpLeftBoldRight: "┵",
303515
- lineUpDoubleLeftDoubleRightDouble: "╩",
303516
- lineUpDoubleLeftRight: "╨",
303517
- lineUpLeftDoubleRightDouble: "╧",
303518
- lineUpDownLeftRight: "┼",
303519
- lineUpBoldDownBoldLeftBoldRightBold: "╋",
303520
- lineUpDownBoldLeftBoldRightBold: "╈",
303521
- lineUpBoldDownLeftBoldRightBold: "╇",
303522
- lineUpBoldDownBoldLeftRightBold: "╊",
303523
- lineUpBoldDownBoldLeftBoldRight: "╉",
303524
- lineUpBoldDownLeftRight: "╀",
303525
- lineUpDownBoldLeftRight: "╁",
303526
- lineUpDownLeftBoldRight: "┽",
303527
- lineUpDownLeftRightBold: "┾",
303528
- lineUpBoldDownBoldLeftRight: "╂",
303529
- lineUpDownLeftBoldRightBold: "┿",
303530
- lineUpBoldDownLeftBoldRight: "╃",
303531
- lineUpBoldDownLeftRightBold: "╄",
303532
- lineUpDownBoldLeftBoldRight: "╅",
303533
- lineUpDownBoldLeftRightBold: "╆",
303534
- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
303535
- lineUpDoubleDownDoubleLeftRight: "╫",
303536
- lineUpDownLeftDoubleRightDouble: "╪",
303537
- lineCross: "╳",
303538
- lineBackslash: "╲",
303539
- lineSlash: "╱"
303540
- };
303541
- var specialMainSymbols2 = {
303542
- tick: "✔",
303543
- info: "ℹ",
303544
- warning: "⚠",
303545
- cross: "✘",
303546
- squareSmall: "◻",
303547
- squareSmallFilled: "◼",
303548
- circle: "◯",
303549
- circleFilled: "◉",
303550
- circleDotted: "◌",
303551
- circleDouble: "◎",
303552
- circleCircle: "ⓞ",
303553
- circleCross: "ⓧ",
303554
- circlePipe: "Ⓘ",
303555
- radioOn: "◉",
303556
- radioOff: "◯",
303557
- checkboxOn: "☒",
303558
- checkboxOff: "☐",
303559
- checkboxCircleOn: "ⓧ",
303560
- checkboxCircleOff: "Ⓘ",
303561
- pointer: "❯",
303562
- triangleUpOutline: "△",
303563
- triangleLeft: "◀",
303564
- triangleRight: "▶",
303565
- lozenge: "◆",
303566
- lozengeOutline: "◇",
303567
- hamburger: "☰",
303568
- smiley: "㋡",
303569
- mustache: "෴",
303570
- star: "★",
303571
- play: "▶",
303572
- nodejs: "⬢",
303573
- oneSeventh: "⅐",
303574
- oneNinth: "⅑",
303575
- oneTenth: "⅒"
303576
- };
303577
- var specialFallbackSymbols2 = {
303578
- tick: "√",
303579
- info: "i",
303580
- warning: "‼",
303581
- cross: "×",
303582
- squareSmall: "□",
303583
- squareSmallFilled: "■",
303584
- circle: "( )",
303585
- circleFilled: "(*)",
303586
- circleDotted: "( )",
303587
- circleDouble: "( )",
303588
- circleCircle: "(○)",
303589
- circleCross: "(×)",
303590
- circlePipe: "(│)",
303591
- radioOn: "(*)",
303592
- radioOff: "( )",
303593
- checkboxOn: "[×]",
303594
- checkboxOff: "[ ]",
303595
- checkboxCircleOn: "(×)",
303596
- checkboxCircleOff: "( )",
303597
- pointer: ">",
303598
- triangleUpOutline: "∆",
303599
- triangleLeft: "◄",
303600
- triangleRight: "►",
303601
- lozenge: "♦",
303602
- lozengeOutline: "◊",
303603
- hamburger: "≡",
303604
- smiley: "☺",
303605
- mustache: "┌─┐",
303606
- star: "✶",
303607
- play: "►",
303608
- nodejs: "♦",
303609
- oneSeventh: "1/7",
303610
- oneNinth: "1/9",
303611
- oneTenth: "1/10"
303612
- };
303613
- var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
303614
- var fallbackSymbols2 = {
303615
- ...common2,
303616
- ...specialFallbackSymbols2
303617
- };
303618
- var shouldUseMain2 = isUnicodeSupported3();
303619
- var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
303620
- var esm_default2 = figures2;
303621
- var replacements2 = Object.entries(specialMainSymbols2);
303622
-
303623
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
303624
- var defaultTheme2 = {
303625
- prefix: {
303626
- idle: import_yoctocolors_cjs2.default.blue("?"),
303627
- done: import_yoctocolors_cjs2.default.green(esm_default2.tick)
303628
- },
303629
- spinner: {
303630
- interval: 80,
303631
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
303632
- },
303633
- style: {
303634
- answer: import_yoctocolors_cjs2.default.cyan,
303635
- message: import_yoctocolors_cjs2.default.bold,
303636
- error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
303637
- defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
303638
- help: import_yoctocolors_cjs2.default.dim,
303639
- highlight: import_yoctocolors_cjs2.default.cyan,
303640
- key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
303641
- }
303642
- };
303643
-
303644
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
303645
- function isPlainObject6(value4) {
303646
- if (typeof value4 !== "object" || value4 === null)
303647
- return false;
303648
- let proto = value4;
303649
- while (Object.getPrototypeOf(proto) !== null) {
303650
- proto = Object.getPrototypeOf(proto);
303651
- }
303652
- return Object.getPrototypeOf(value4) === proto;
303653
- }
303654
- function deepMerge3(...objects) {
303655
- const output = {};
303656
- for (const obj of objects) {
303657
- for (const [key2, value4] of Object.entries(obj)) {
303658
- const prevValue = output[key2];
303659
- output[key2] = isPlainObject6(prevValue) && isPlainObject6(value4) ? deepMerge3(prevValue, value4) : value4;
303660
- }
303661
- }
303662
- return output;
303663
- }
303664
- function makeTheme2(...themes) {
303665
- const themesToMerge = [
303666
- defaultTheme2,
303667
- ...themes.filter((theme) => theme != null)
303668
- ];
303669
- return deepMerge3(...themesToMerge);
303670
- }
303671
-
303672
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
303673
- function usePrefix2({ status = "idle", theme }) {
303674
- const [showLoader, setShowLoader] = useState2(false);
303675
- const [tick, setTick] = useState2(0);
303676
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
303677
- useEffect2(() => {
303678
- if (status === "loading") {
303679
- let tickInterval;
303680
- let inc = -1;
303681
- const delayTimeout = setTimeout(() => {
303682
- setShowLoader(true);
303683
- tickInterval = setInterval(() => {
303684
- inc = inc + 1;
303685
- setTick(inc % spinner2.frames.length);
303686
- }, spinner2.interval);
303687
- }, 300);
303688
- return () => {
303689
- clearTimeout(delayTimeout);
303690
- clearInterval(tickInterval);
303691
- };
303692
- } else {
303693
- setShowLoader(false);
303694
- }
303695
- }, [status]);
303696
- if (showLoader) {
303697
- return spinner2.frames[tick];
303698
- }
303699
- const iconName = status === "loading" ? "idle" : status;
303700
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
303701
- }
303702
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
303703
- function useRef2(val) {
303704
- return useState2({ current: val })[0];
303705
- }
303706
-
303707
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
303708
- function useKeypress2(userHandler) {
303709
- const signal = useRef2(userHandler);
303710
- signal.current = userHandler;
303711
- useEffect2((rl) => {
303712
- let ignore = false;
303713
- const handler = withUpdates2((_input, event) => {
303714
- if (ignore)
303715
- return;
303716
- signal.current(event, rl);
303717
- });
303718
- rl.input.on("keypress", handler);
303719
- return () => {
303720
- ignore = true;
303721
- rl.input.removeListener("keypress", handler);
303722
- };
303723
- }, []);
303724
- }
303725
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
303726
- var import_cli_width2 = __toESM(require_cli_width(), 1);
303727
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
303728
- function breakLines2(content, width) {
303729
- return content.split(`
303730
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
303731
- `).map((str) => str.trimEnd())).join(`
303732
- `);
303733
- }
303734
- function readlineWidth2() {
303735
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
303736
- }
303737
-
303738
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
303739
- var import_mute_stream2 = __toESM(require_lib(), 1);
303740
- import * as readline4 from "node:readline";
303741
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
303742
-
303743
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
303744
- var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
303745
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
303746
- var height2 = (content) => content.split(`
303747
- `).length;
303748
- var lastLine2 = (content) => content.split(`
303749
- `).pop() ?? "";
303750
- function cursorDown2(n6) {
303751
- return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
303752
- }
303753
-
303754
- class ScreenManager2 {
303755
- height = 0;
303756
- extraLinesUnderPrompt = 0;
303757
- cursorPos;
303758
- rl;
303759
- constructor(rl) {
303760
- this.rl = rl;
303761
- this.cursorPos = rl.getCursorPos();
303762
- }
303763
- write(content) {
303764
- this.rl.output.unmute();
303765
- this.rl.output.write(content);
303766
- this.rl.output.mute();
303767
- }
303768
- render(content, bottomContent = "") {
303769
- const promptLine = lastLine2(content);
303770
- const rawPromptLine = stripVTControlCharacters3(promptLine);
303771
- let prompt = rawPromptLine;
303772
- if (this.rl.line.length > 0) {
303773
- prompt = prompt.slice(0, -this.rl.line.length);
303774
- }
303775
- this.rl.setPrompt(prompt);
303776
- this.cursorPos = this.rl.getCursorPos();
303777
- const width = readlineWidth2();
303778
- content = breakLines2(content, width);
303779
- bottomContent = breakLines2(bottomContent, width);
303780
- if (rawPromptLine.length % width === 0) {
303781
- content += `
303782
- `;
303783
- }
303784
- let output = content + (bottomContent ? `
303785
- ` + bottomContent : "");
303786
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
303787
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
303788
- if (bottomContentHeight > 0)
303789
- output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
303790
- output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
303791
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
303792
- this.extraLinesUnderPrompt = bottomContentHeight;
303793
- this.height = height2(output);
303794
- }
303795
- checkCursorPos() {
303796
- const cursorPos = this.rl.getCursorPos();
303797
- if (cursorPos.cols !== this.cursorPos.cols) {
303798
- this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
303799
- this.cursorPos = cursorPos;
303800
- }
303801
- }
303802
- done({ clearContent }) {
303803
- this.rl.setPrompt("");
303804
- let output = cursorDown2(this.extraLinesUnderPrompt);
303805
- output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
303806
- `;
303807
- output += import_ansi_escapes2.default.cursorShow;
303808
- this.write(output);
303809
- this.rl.close();
303810
- }
303811
- }
303812
-
303813
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
303814
- class PromisePolyfill2 extends Promise {
303815
- static withResolver() {
303816
- let resolve5;
303817
- let reject;
303818
- const promise4 = new Promise((res, rej) => {
303819
- resolve5 = res;
303820
- reject = rej;
303821
- });
303822
- return { promise: promise4, resolve: resolve5, reject };
303823
- }
303824
- }
303825
-
303826
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
303827
- function getCallSites2() {
303828
- const _prepareStackTrace = Error.prepareStackTrace;
303829
- let result = [];
303830
- try {
303831
- Error.prepareStackTrace = (_5, callSites) => {
303832
- const callSitesWithoutCurrent = callSites.slice(1);
303833
- result = callSitesWithoutCurrent;
303834
- return callSitesWithoutCurrent;
303835
- };
303836
- new Error().stack;
303837
- } catch {
303838
- return result;
303839
- }
303840
- Error.prepareStackTrace = _prepareStackTrace;
303841
- return result;
303842
- }
303843
- function createPrompt2(view) {
303844
- const callSites = getCallSites2();
303845
- const prompt = (config4, context = {}) => {
303846
- const { input = process.stdin, signal } = context;
303847
- const cleanups = new Set;
303848
- const output = new import_mute_stream2.default;
303849
- output.pipe(context.output ?? process.stdout);
303850
- const rl = readline4.createInterface({
303851
- terminal: true,
303852
- input,
303853
- output
303854
- });
303855
- const screen = new ScreenManager2(rl);
303856
- const { promise: promise4, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
303857
- const cancel3 = () => reject(new CancelPromptError2);
303858
- if (signal) {
303859
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
303860
- if (signal.aborted) {
303861
- abort();
303862
- return Object.assign(promise4, { cancel: cancel3 });
303863
- }
303864
- signal.addEventListener("abort", abort);
303865
- cleanups.add(() => signal.removeEventListener("abort", abort));
303866
- }
303867
- cleanups.add(onExit((code2, signal2) => {
303868
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
303869
- }));
303870
- const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
303871
- rl.on("SIGINT", sigint);
303872
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
303873
- const checkCursorPos = () => screen.checkCursorPos();
303874
- rl.input.on("keypress", checkCursorPos);
303875
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
303876
- return withHooks2(rl, (cycle) => {
303877
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
303878
- rl.on("close", hooksCleanup);
303879
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
303880
- cycle(() => {
303881
- try {
303882
- const nextView = view(config4, (value4) => {
303883
- setImmediate(() => resolve5(value4));
303884
- });
303885
- if (nextView === undefined) {
303886
- const callerFilename = callSites[1]?.getFileName();
303887
- throw new Error(`Prompt functions must return a string.
303888
- at ${callerFilename}`);
303889
- }
303890
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
303891
- screen.render(content, bottomContent);
303892
- effectScheduler2.run();
303893
- } catch (error44) {
303894
- reject(error44);
303895
- }
303896
- });
303897
- return Object.assign(promise4.then((answer) => {
303898
- effectScheduler2.clearAll();
303899
- return answer;
303900
- }, (error44) => {
303901
- effectScheduler2.clearAll();
303902
- throw error44;
303903
- }).finally(() => {
303904
- cleanups.forEach((cleanup) => cleanup());
303905
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
303906
- output.end();
303907
- }).then(() => promise4), { cancel: cancel3 });
303908
- });
303909
- };
303910
- return prompt;
303911
- }
303912
303262
  // ../../node_modules/@inquirer/input/dist/esm/index.js
303913
303263
  var inputTheme = {
303914
303264
  validationFailureMode: "keep"
303915
303265
  };
303916
- var esm_default3 = createPrompt2((config4, done) => {
303266
+ var esm_default2 = createPrompt((config4, done) => {
303917
303267
  const { required: required4, validate: validate3 = () => true, prefill = "tab" } = config4;
303918
- const theme = makeTheme2(inputTheme, config4.theme);
303919
- const [status, setStatus] = useState2("idle");
303920
- const [defaultValue = "", setDefaultValue] = useState2(config4.default);
303921
- const [errorMsg, setError] = useState2();
303922
- const [value4, setValue] = useState2("");
303923
- const prefix = usePrefix2({ status, theme });
303924
- useKeypress2(async (key3, rl) => {
303268
+ const theme = makeTheme(inputTheme, config4.theme);
303269
+ const [status, setStatus] = useState("idle");
303270
+ const [defaultValue = "", setDefaultValue] = useState(config4.default);
303271
+ const [errorMsg, setError] = useState();
303272
+ const [value4, setValue] = useState("");
303273
+ const prefix = usePrefix({ status, theme });
303274
+ useKeypress(async (key2, rl) => {
303925
303275
  if (status !== "idle") {
303926
303276
  return;
303927
303277
  }
303928
- if (isEnterKey2(key3)) {
303278
+ if (isEnterKey(key2)) {
303929
303279
  const answer = value4 || defaultValue;
303930
303280
  setStatus("loading");
303931
303281
  const isValid = required4 && !answer ? "You must provide a value" : await validate3(answer);
@@ -303942,9 +303292,9 @@ var esm_default3 = createPrompt2((config4, done) => {
303942
303292
  setError(isValid || "You must provide a valid value");
303943
303293
  setStatus("idle");
303944
303294
  }
303945
- } else if (isBackspaceKey(key3) && !value4) {
303295
+ } else if (isBackspaceKey(key2) && !value4) {
303946
303296
  setDefaultValue(undefined);
303947
- } else if (key3.name === "tab" && !value4) {
303297
+ } else if (key2.name === "tab" && !value4) {
303948
303298
  setDefaultValue(undefined);
303949
303299
  rl.clearLine(0);
303950
303300
  rl.write(defaultValue);
@@ -303954,7 +303304,7 @@ var esm_default3 = createPrompt2((config4, done) => {
303954
303304
  setError(undefined);
303955
303305
  }
303956
303306
  });
303957
- useEffect2((rl) => {
303307
+ useEffect((rl) => {
303958
303308
  if (prefill === "editable" && defaultValue) {
303959
303309
  rl.write(defaultValue);
303960
303310
  setValue(defaultValue);
@@ -303991,7 +303341,7 @@ async function subgraphNamePrompt({
303991
303341
  if (accept) {
303992
303342
  return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
303993
303343
  }
303994
- const subgraphName = await esm_default3({
303344
+ const subgraphName = await esm_default2({
303995
303345
  message: "What is the name of your subgraph?",
303996
303346
  default: defaultSubgraphName,
303997
303347
  required: true
@@ -303999,565 +303349,14 @@ async function subgraphNamePrompt({
303999
303349
  return sanitizeName(subgraphName);
304000
303350
  }
304001
303351
 
304002
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
304003
- var isUpKey = (key3) => key3.name === "up" || key3.name === "k" || key3.ctrl && key3.name === "p";
304004
- var isDownKey = (key3) => key3.name === "down" || key3.name === "j" || key3.ctrl && key3.name === "n";
304005
- var isBackspaceKey2 = (key3) => key3.name === "backspace";
304006
- var isNumberKey = (key3) => "1234567890".includes(key3.name);
304007
- var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";
304008
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
304009
- class AbortPromptError3 extends Error {
304010
- name = "AbortPromptError";
304011
- message = "Prompt was aborted";
304012
- constructor(options) {
304013
- super();
304014
- this.cause = options?.cause;
304015
- }
304016
- }
304017
-
304018
- class CancelPromptError3 extends Error {
304019
- name = "CancelPromptError";
304020
- message = "Prompt was canceled";
304021
- }
304022
-
304023
- class ExitPromptError3 extends Error {
304024
- name = "ExitPromptError";
304025
- }
304026
-
304027
- class HookError3 extends Error {
304028
- name = "HookError";
304029
- }
304030
-
304031
- class ValidationError3 extends Error {
304032
- name = "ValidationError";
304033
- }
304034
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
304035
- import { AsyncResource as AsyncResource8 } from "node:async_hooks";
304036
-
304037
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
304038
- import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource7 } from "node:async_hooks";
304039
- var hookStorage3 = new AsyncLocalStorage3;
304040
- function createStore3(rl) {
304041
- const store = {
304042
- rl,
304043
- hooks: [],
304044
- hooksCleanup: [],
304045
- hooksEffect: [],
304046
- index: 0,
304047
- handleChange() {}
304048
- };
304049
- return store;
304050
- }
304051
- function withHooks3(rl, cb) {
304052
- const store = createStore3(rl);
304053
- return hookStorage3.run(store, () => {
304054
- function cycle(render) {
304055
- store.handleChange = () => {
304056
- store.index = 0;
304057
- render();
304058
- };
304059
- store.handleChange();
304060
- }
304061
- return cb(cycle);
304062
- });
304063
- }
304064
- function getStore3() {
304065
- const store = hookStorage3.getStore();
304066
- if (!store) {
304067
- throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");
304068
- }
304069
- return store;
304070
- }
304071
- function readline5() {
304072
- return getStore3().rl;
304073
- }
304074
- function withUpdates3(fn) {
304075
- const wrapped = (...args) => {
304076
- const store = getStore3();
304077
- let shouldUpdate = false;
304078
- const oldHandleChange = store.handleChange;
304079
- store.handleChange = () => {
304080
- shouldUpdate = true;
304081
- };
304082
- const returnValue = fn(...args);
304083
- if (shouldUpdate) {
304084
- oldHandleChange();
304085
- }
304086
- store.handleChange = oldHandleChange;
304087
- return returnValue;
304088
- };
304089
- return AsyncResource7.bind(wrapped);
304090
- }
304091
- function withPointer3(cb) {
304092
- const store = getStore3();
304093
- const { index } = store;
304094
- const pointer = {
304095
- get() {
304096
- return store.hooks[index];
304097
- },
304098
- set(value4) {
304099
- store.hooks[index] = value4;
304100
- },
304101
- initialized: index in store.hooks
304102
- };
304103
- const returnValue = cb(pointer);
304104
- store.index++;
304105
- return returnValue;
304106
- }
304107
- function handleChange3() {
304108
- getStore3().handleChange();
304109
- }
304110
- var effectScheduler3 = {
304111
- queue(cb) {
304112
- const store = getStore3();
304113
- const { index } = store;
304114
- store.hooksEffect.push(() => {
304115
- store.hooksCleanup[index]?.();
304116
- const cleanFn = cb(readline5());
304117
- if (cleanFn != null && typeof cleanFn !== "function") {
304118
- throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");
304119
- }
304120
- store.hooksCleanup[index] = cleanFn;
304121
- });
304122
- },
304123
- run() {
304124
- const store = getStore3();
304125
- withUpdates3(() => {
304126
- store.hooksEffect.forEach((effect) => {
304127
- effect();
304128
- });
304129
- store.hooksEffect.length = 0;
304130
- })();
304131
- },
304132
- clearAll() {
304133
- const store = getStore3();
304134
- store.hooksCleanup.forEach((cleanFn) => {
304135
- cleanFn?.();
304136
- });
304137
- store.hooksEffect.length = 0;
304138
- store.hooksCleanup.length = 0;
304139
- }
304140
- };
304141
-
304142
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
304143
- function useState3(defaultValue) {
304144
- return withPointer3((pointer) => {
304145
- const setState = AsyncResource8.bind(function setState(newValue) {
304146
- if (pointer.get() !== newValue) {
304147
- pointer.set(newValue);
304148
- handleChange3();
304149
- }
304150
- });
304151
- if (pointer.initialized) {
304152
- return [pointer.get(), setState];
304153
- }
304154
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
304155
- pointer.set(value4);
304156
- return [value4, setState];
304157
- });
304158
- }
304159
-
304160
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
304161
- function useEffect3(cb, depArray) {
304162
- withPointer3((pointer) => {
304163
- const oldDeps = pointer.get();
304164
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
304165
- if (hasChanged) {
304166
- effectScheduler3.queue(cb);
304167
- }
304168
- pointer.set(depArray);
304169
- });
304170
- }
304171
-
304172
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
304173
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
304174
- var defaultTheme3 = {
304175
- prefix: {
304176
- idle: import_yoctocolors_cjs3.default.blue("?"),
304177
- done: import_yoctocolors_cjs3.default.green(esm_default2.tick)
304178
- },
304179
- spinner: {
304180
- interval: 80,
304181
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
304182
- },
304183
- style: {
304184
- answer: import_yoctocolors_cjs3.default.cyan,
304185
- message: import_yoctocolors_cjs3.default.bold,
304186
- error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
304187
- defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
304188
- help: import_yoctocolors_cjs3.default.dim,
304189
- highlight: import_yoctocolors_cjs3.default.cyan,
304190
- key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
304191
- }
304192
- };
304193
-
304194
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
304195
- function isPlainObject7(value4) {
304196
- if (typeof value4 !== "object" || value4 === null)
304197
- return false;
304198
- let proto = value4;
304199
- while (Object.getPrototypeOf(proto) !== null) {
304200
- proto = Object.getPrototypeOf(proto);
304201
- }
304202
- return Object.getPrototypeOf(value4) === proto;
304203
- }
304204
- function deepMerge4(...objects) {
304205
- const output = {};
304206
- for (const obj of objects) {
304207
- for (const [key3, value4] of Object.entries(obj)) {
304208
- const prevValue = output[key3];
304209
- output[key3] = isPlainObject7(prevValue) && isPlainObject7(value4) ? deepMerge4(prevValue, value4) : value4;
304210
- }
304211
- }
304212
- return output;
304213
- }
304214
- function makeTheme3(...themes) {
304215
- const themesToMerge = [
304216
- defaultTheme3,
304217
- ...themes.filter((theme) => theme != null)
304218
- ];
304219
- return deepMerge4(...themesToMerge);
304220
- }
304221
-
304222
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
304223
- function usePrefix3({ status = "idle", theme }) {
304224
- const [showLoader, setShowLoader] = useState3(false);
304225
- const [tick, setTick] = useState3(0);
304226
- const { prefix, spinner: spinner2 } = makeTheme3(theme);
304227
- useEffect3(() => {
304228
- if (status === "loading") {
304229
- let tickInterval;
304230
- let inc = -1;
304231
- const delayTimeout = setTimeout(() => {
304232
- setShowLoader(true);
304233
- tickInterval = setInterval(() => {
304234
- inc = inc + 1;
304235
- setTick(inc % spinner2.frames.length);
304236
- }, spinner2.interval);
304237
- }, 300);
304238
- return () => {
304239
- clearTimeout(delayTimeout);
304240
- clearInterval(tickInterval);
304241
- };
304242
- } else {
304243
- setShowLoader(false);
304244
- }
304245
- }, [status]);
304246
- if (showLoader) {
304247
- return spinner2.frames[tick];
304248
- }
304249
- const iconName = status === "loading" ? "idle" : status;
304250
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
304251
- }
304252
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
304253
- function useMemo(fn, dependencies) {
304254
- return withPointer3((pointer) => {
304255
- const prev = pointer.get();
304256
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i6) => dep !== dependencies[i6])) {
304257
- const value4 = fn();
304258
- pointer.set({ value: value4, dependencies });
304259
- return value4;
304260
- }
304261
- return prev.value;
304262
- });
304263
- }
304264
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
304265
- function useRef3(val) {
304266
- return useState3({ current: val })[0];
304267
- }
304268
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
304269
- function useKeypress3(userHandler) {
304270
- const signal = useRef3(userHandler);
304271
- signal.current = userHandler;
304272
- useEffect3((rl) => {
304273
- let ignore = false;
304274
- const handler = withUpdates3((_input, event) => {
304275
- if (ignore)
304276
- return;
304277
- signal.current(event, rl);
304278
- });
304279
- rl.input.on("keypress", handler);
304280
- return () => {
304281
- ignore = true;
304282
- rl.input.removeListener("keypress", handler);
304283
- };
304284
- }, []);
304285
- }
304286
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
304287
- var import_cli_width3 = __toESM(require_cli_width(), 1);
304288
- var import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);
304289
- function breakLines3(content, width) {
304290
- return content.split(`
304291
- `).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`
304292
- `).map((str) => str.trimEnd())).join(`
304293
- `);
304294
- }
304295
- function readlineWidth3() {
304296
- return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });
304297
- }
304298
-
304299
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
304300
- function usePointerPosition({ active, renderedItems, pageSize, loop }) {
304301
- const state = useRef3({
304302
- lastPointer: active,
304303
- lastActive: undefined
304304
- });
304305
- const { lastPointer, lastActive } = state.current;
304306
- const middle = Math.floor(pageSize / 2);
304307
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
304308
- const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
304309
- let pointer = defaultPointerPosition;
304310
- if (renderedLength > pageSize) {
304311
- if (loop) {
304312
- pointer = lastPointer;
304313
- if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
304314
- pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
304315
- }
304316
- } else {
304317
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
304318
- pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
304319
- }
304320
- }
304321
- state.current.lastPointer = pointer;
304322
- state.current.lastActive = active;
304323
- return pointer;
304324
- }
304325
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
304326
- const width = readlineWidth3();
304327
- const bound = (num) => (num % items.length + items.length) % items.length;
304328
- const renderedItems = items.map((item, index) => {
304329
- if (item == null)
304330
- return [];
304331
- return breakLines3(renderItem({ item, index, isActive: index === active }), width).split(`
304332
- `);
304333
- });
304334
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
304335
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
304336
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
304337
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
304338
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
304339
- const pageBuffer = Array.from({ length: pageSize });
304340
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
304341
- const itemVisited = new Set([active]);
304342
- let bufferPointer = activeItemPosition + activeItem.length;
304343
- let itemPointer = bound(active + 1);
304344
- while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
304345
- const lines = renderItemAtIndex(itemPointer);
304346
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
304347
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
304348
- itemVisited.add(itemPointer);
304349
- bufferPointer += linesToAdd.length;
304350
- itemPointer = bound(itemPointer + 1);
304351
- }
304352
- bufferPointer = activeItemPosition - 1;
304353
- itemPointer = bound(active - 1);
304354
- while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
304355
- const lines = renderItemAtIndex(itemPointer);
304356
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
304357
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
304358
- itemVisited.add(itemPointer);
304359
- bufferPointer -= linesToAdd.length;
304360
- itemPointer = bound(itemPointer - 1);
304361
- }
304362
- return pageBuffer.filter((line) => typeof line === "string").join(`
304363
- `);
304364
- }
304365
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
304366
- var import_mute_stream3 = __toESM(require_lib(), 1);
304367
- import * as readline6 from "node:readline";
304368
- import { AsyncResource as AsyncResource9 } from "node:async_hooks";
304369
-
304370
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
304371
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
304372
- import { stripVTControlCharacters as stripVTControlCharacters4 } from "node:util";
304373
- var height3 = (content) => content.split(`
304374
- `).length;
304375
- var lastLine3 = (content) => content.split(`
304376
- `).pop() ?? "";
304377
- function cursorDown3(n6) {
304378
- return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
304379
- }
304380
-
304381
- class ScreenManager3 {
304382
- height = 0;
304383
- extraLinesUnderPrompt = 0;
304384
- cursorPos;
304385
- rl;
304386
- constructor(rl) {
304387
- this.rl = rl;
304388
- this.cursorPos = rl.getCursorPos();
304389
- }
304390
- write(content) {
304391
- this.rl.output.unmute();
304392
- this.rl.output.write(content);
304393
- this.rl.output.mute();
304394
- }
304395
- render(content, bottomContent = "") {
304396
- const promptLine = lastLine3(content);
304397
- const rawPromptLine = stripVTControlCharacters4(promptLine);
304398
- let prompt = rawPromptLine;
304399
- if (this.rl.line.length > 0) {
304400
- prompt = prompt.slice(0, -this.rl.line.length);
304401
- }
304402
- this.rl.setPrompt(prompt);
304403
- this.cursorPos = this.rl.getCursorPos();
304404
- const width = readlineWidth3();
304405
- content = breakLines3(content, width);
304406
- bottomContent = breakLines3(bottomContent, width);
304407
- if (rawPromptLine.length % width === 0) {
304408
- content += `
304409
- `;
304410
- }
304411
- let output = content + (bottomContent ? `
304412
- ` + bottomContent : "");
304413
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
304414
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);
304415
- if (bottomContentHeight > 0)
304416
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
304417
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
304418
- this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
304419
- this.extraLinesUnderPrompt = bottomContentHeight;
304420
- this.height = height3(output);
304421
- }
304422
- checkCursorPos() {
304423
- const cursorPos = this.rl.getCursorPos();
304424
- if (cursorPos.cols !== this.cursorPos.cols) {
304425
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
304426
- this.cursorPos = cursorPos;
304427
- }
304428
- }
304429
- done({ clearContent }) {
304430
- this.rl.setPrompt("");
304431
- let output = cursorDown3(this.extraLinesUnderPrompt);
304432
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
304433
- `;
304434
- output += import_ansi_escapes3.default.cursorShow;
304435
- this.write(output);
304436
- this.rl.close();
304437
- }
304438
- }
304439
-
304440
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
304441
- class PromisePolyfill3 extends Promise {
304442
- static withResolver() {
304443
- let resolve5;
304444
- let reject;
304445
- const promise4 = new Promise((res, rej) => {
304446
- resolve5 = res;
304447
- reject = rej;
304448
- });
304449
- return { promise: promise4, resolve: resolve5, reject };
304450
- }
304451
- }
304452
-
304453
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
304454
- function getCallSites3() {
304455
- const _prepareStackTrace = Error.prepareStackTrace;
304456
- let result = [];
304457
- try {
304458
- Error.prepareStackTrace = (_5, callSites) => {
304459
- const callSitesWithoutCurrent = callSites.slice(1);
304460
- result = callSitesWithoutCurrent;
304461
- return callSitesWithoutCurrent;
304462
- };
304463
- new Error().stack;
304464
- } catch {
304465
- return result;
304466
- }
304467
- Error.prepareStackTrace = _prepareStackTrace;
304468
- return result;
304469
- }
304470
- function createPrompt3(view) {
304471
- const callSites = getCallSites3();
304472
- const prompt = (config4, context = {}) => {
304473
- const { input = process.stdin, signal } = context;
304474
- const cleanups = new Set;
304475
- const output = new import_mute_stream3.default;
304476
- output.pipe(context.output ?? process.stdout);
304477
- const rl = readline6.createInterface({
304478
- terminal: true,
304479
- input,
304480
- output
304481
- });
304482
- const screen = new ScreenManager3(rl);
304483
- const { promise: promise4, resolve: resolve5, reject } = PromisePolyfill3.withResolver();
304484
- const cancel3 = () => reject(new CancelPromptError3);
304485
- if (signal) {
304486
- const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));
304487
- if (signal.aborted) {
304488
- abort();
304489
- return Object.assign(promise4, { cancel: cancel3 });
304490
- }
304491
- signal.addEventListener("abort", abort);
304492
- cleanups.add(() => signal.removeEventListener("abort", abort));
304493
- }
304494
- cleanups.add(onExit((code2, signal2) => {
304495
- reject(new ExitPromptError3(`User force closed the prompt with ${code2} ${signal2}`));
304496
- }));
304497
- const sigint = () => reject(new ExitPromptError3(`User force closed the prompt with SIGINT`));
304498
- rl.on("SIGINT", sigint);
304499
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
304500
- const checkCursorPos = () => screen.checkCursorPos();
304501
- rl.input.on("keypress", checkCursorPos);
304502
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
304503
- return withHooks3(rl, (cycle) => {
304504
- const hooksCleanup = AsyncResource9.bind(() => effectScheduler3.clearAll());
304505
- rl.on("close", hooksCleanup);
304506
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
304507
- cycle(() => {
304508
- try {
304509
- const nextView = view(config4, (value4) => {
304510
- setImmediate(() => resolve5(value4));
304511
- });
304512
- if (nextView === undefined) {
304513
- const callerFilename = callSites[1]?.getFileName();
304514
- throw new Error(`Prompt functions must return a string.
304515
- at ${callerFilename}`);
304516
- }
304517
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
304518
- screen.render(content, bottomContent);
304519
- effectScheduler3.run();
304520
- } catch (error44) {
304521
- reject(error44);
304522
- }
304523
- });
304524
- return Object.assign(promise4.then((answer) => {
304525
- effectScheduler3.clearAll();
304526
- return answer;
304527
- }, (error44) => {
304528
- effectScheduler3.clearAll();
304529
- throw error44;
304530
- }).finally(() => {
304531
- cleanups.forEach((cleanup) => cleanup());
304532
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
304533
- output.end();
304534
- }).then(() => promise4), { cancel: cancel3 });
304535
- });
304536
- };
304537
- return prompt;
304538
- }
304539
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
304540
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
304541
- class Separator {
304542
- separator = import_yoctocolors_cjs4.default.dim(Array.from({ length: 15 }).join(esm_default2.line));
304543
- type = "separator";
304544
- constructor(separator) {
304545
- if (separator) {
304546
- this.separator = separator;
304547
- }
304548
- }
304549
- static isSeparator(choice) {
304550
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
304551
- }
304552
- }
304553
303352
  // ../../node_modules/@inquirer/select/dist/esm/index.js
304554
- var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
304555
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
303353
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
303354
+ var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
304556
303355
  var selectTheme = {
304557
- icon: { cursor: esm_default2.pointer },
303356
+ icon: { cursor: esm_default.pointer },
304558
303357
  style: {
304559
- disabled: (text2) => import_yoctocolors_cjs5.default.dim(`- ${text2}`),
304560
- description: (text2) => import_yoctocolors_cjs5.default.cyan(text2)
303358
+ disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
303359
+ description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
304561
303360
  },
304562
303361
  helpMode: "auto",
304563
303362
  indexMode: "hidden"
@@ -304590,19 +303389,19 @@ function normalizeChoices(choices) {
304590
303389
  return normalizedChoice;
304591
303390
  });
304592
303391
  }
304593
- var esm_default4 = createPrompt3((config4, done) => {
303392
+ var esm_default3 = createPrompt((config4, done) => {
304594
303393
  const { loop = true, pageSize = 7 } = config4;
304595
- const firstRender = useRef3(true);
304596
- const theme = makeTheme3(selectTheme, config4.theme);
304597
- const [status, setStatus] = useState3("idle");
304598
- const prefix = usePrefix3({ status, theme });
304599
- const searchTimeoutRef = useRef3();
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();
304600
303399
  const items = useMemo(() => normalizeChoices(config4.choices), [config4.choices]);
304601
303400
  const bounds = useMemo(() => {
304602
303401
  const first = items.findIndex(isSelectable);
304603
303402
  const last = items.findLastIndex(isSelectable);
304604
303403
  if (first === -1) {
304605
- throw new ValidationError3("[select prompt] No selectable choices. All choices are disabled.");
303404
+ throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
304606
303405
  }
304607
303406
  return { first, last };
304608
303407
  }, [items]);
@@ -304611,25 +303410,32 @@ var esm_default4 = createPrompt3((config4, done) => {
304611
303410
  return -1;
304612
303411
  return items.findIndex((item) => isSelectable(item) && item.value === config4.default);
304613
303412
  }, [config4.default, items]);
304614
- const [active, setActive] = useState3(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
303413
+ const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
304615
303414
  const selectedChoice = items[active];
304616
- useKeypress3((key4, rl) => {
303415
+ useKeypress((key2, rl) => {
304617
303416
  clearTimeout(searchTimeoutRef.current);
304618
- if (isEnterKey3(key4)) {
303417
+ if (isEnterKey(key2)) {
304619
303418
  setStatus("done");
304620
303419
  done(selectedChoice.value);
304621
- } else if (isUpKey(key4) || isDownKey(key4)) {
303420
+ } else if (isUpKey(key2) || isDownKey(key2)) {
304622
303421
  rl.clearLine(0);
304623
- if (loop || isUpKey(key4) && active !== bounds.first || isDownKey(key4) && active !== bounds.last) {
304624
- const offset = isUpKey(key4) ? -1 : 1;
303422
+ if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
303423
+ const offset = isUpKey(key2) ? -1 : 1;
304625
303424
  let next = active;
304626
303425
  do {
304627
303426
  next = (next + offset + items.length) % items.length;
304628
303427
  } while (!isSelectable(items[next]));
304629
303428
  setActive(next);
304630
303429
  }
304631
- } else if (isNumberKey(key4) && !Number.isNaN(Number(rl.line))) {
304632
- const position = Number(rl.line) - 1;
303430
+ } else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
303431
+ const selectedIndex = Number(rl.line) - 1;
303432
+ let selectableIndex = -1;
303433
+ const position = items.findIndex((item2) => {
303434
+ if (Separator.isSeparator(item2))
303435
+ return false;
303436
+ selectableIndex++;
303437
+ return selectableIndex === selectedIndex;
303438
+ });
304633
303439
  const item = items[position];
304634
303440
  if (item != null && isSelectable(item)) {
304635
303441
  setActive(position);
@@ -304637,7 +303443,7 @@ var esm_default4 = createPrompt3((config4, done) => {
304637
303443
  searchTimeoutRef.current = setTimeout(() => {
304638
303444
  rl.clearLine(0);
304639
303445
  }, 700);
304640
- } else if (isBackspaceKey2(key4)) {
303446
+ } else if (isBackspaceKey(key2)) {
304641
303447
  rl.clearLine(0);
304642
303448
  } else {
304643
303449
  const searchTerm = rl.line.toLowerCase();
@@ -304654,7 +303460,7 @@ var esm_default4 = createPrompt3((config4, done) => {
304654
303460
  }, 700);
304655
303461
  }
304656
303462
  });
304657
- useEffect3(() => () => {
303463
+ useEffect(() => () => {
304658
303464
  clearTimeout(searchTimeoutRef.current);
304659
303465
  }, []);
304660
303466
  const message = theme.style.message(config4.message, status);
@@ -304694,7 +303500,7 @@ ${theme.style.help(`(${config4.instructions?.pager ?? "Use arrow keys to reveal
304694
303500
  const choiceDescription = selectedChoice.description ? `
304695
303501
  ${theme.style.description(selectedChoice.description)}` : ``;
304696
303502
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
304697
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes4.default.cursorHide}`;
303503
+ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursorHide}`;
304698
303504
  });
304699
303505
 
304700
303506
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -304748,7 +303554,7 @@ async function subgraphPrompt({
304748
303554
  } else {
304749
303555
  defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
304750
303556
  }
304751
- const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default4({
303557
+ const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default3({
304752
303558
  message,
304753
303559
  choices: choices.map((name3) => ({
304754
303560
  name: name3,
@@ -306278,14 +305084,14 @@ function includesArgs(parameters) {
306278
305084
  });
306279
305085
  }
306280
305086
  if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
306281
- return Object.entries(matchArgs).every(([key4, value4]) => {
305087
+ return Object.entries(matchArgs).every(([key2, value4]) => {
306282
305088
  if (value4 === null || value4 === undefined)
306283
305089
  return true;
306284
- const input = inputs.find((input2) => input2.name === key4);
305090
+ const input = inputs.find((input2) => input2.name === key2);
306285
305091
  if (!input)
306286
305092
  return false;
306287
305093
  const value_ = Array.isArray(value4) ? value4 : [value4];
306288
- return value_.some((value5) => isEqual(input, value5, args[key4]));
305094
+ return value_.some((value5) => isEqual(input, value5, args[key2]));
306289
305095
  });
306290
305096
  return false;
306291
305097
  }
@@ -306484,13 +305290,13 @@ function observe(observerId, callbacks, fn) {
306484
305290
  if (listeners && listeners.length > 0)
306485
305291
  return unwatch;
306486
305292
  const emit = {};
306487
- for (const key4 in callbacks) {
306488
- emit[key4] = (...args) => {
305293
+ for (const key2 in callbacks) {
305294
+ emit[key2] = (...args) => {
306489
305295
  const listeners2 = getListeners();
306490
305296
  if (listeners2.length === 0)
306491
305297
  return;
306492
305298
  for (const listener of listeners2)
306493
- listener.fns[key4]?.(...args);
305299
+ listener.fns[key2]?.(...args);
306494
305300
  };
306495
305301
  }
306496
305302
  const cleanup = fn(emit);
@@ -306829,7 +305635,7 @@ function uid(length = 11) {
306829
305635
 
306830
305636
  // ../../node_modules/viem/_esm/clients/createClient.js
306831
305637
  function createClient(parameters) {
306832
- const { batch, chain, ccipRead, key: key4 = "base", name: name3 = "Base Client", type: type4 = "base" } = parameters;
305638
+ const { batch, chain, ccipRead, key: key2 = "base", name: name3 = "Base Client", type: type4 = "base" } = parameters;
306833
305639
  const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
306834
305640
  const blockTime = chain?.blockTime ?? 12000;
306835
305641
  const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
@@ -306847,7 +305653,7 @@ function createClient(parameters) {
306847
305653
  cacheTime,
306848
305654
  ccipRead,
306849
305655
  chain,
306850
- key: key4,
305656
+ key: key2,
306851
305657
  name: name3,
306852
305658
  pollingInterval,
306853
305659
  request: request2,
@@ -306859,8 +305665,8 @@ function createClient(parameters) {
306859
305665
  function extend4(base2) {
306860
305666
  return (extendFn) => {
306861
305667
  const extended = extendFn(base2);
306862
- for (const key5 in client)
306863
- delete extended[key5];
305668
+ for (const key3 in client)
305669
+ delete extended[key3];
306864
305670
  const combined = { ...base2, ...extended };
306865
305671
  return Object.assign(combined, { extend: extend4(combined) });
306866
305672
  };
@@ -307040,11 +305846,11 @@ function shouldRetry(error44) {
307040
305846
  }
307041
305847
 
307042
305848
  // ../../node_modules/viem/_esm/clients/transports/createTransport.js
307043
- function createTransport({ key: key4, methods, name: name3, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type4 }, value4) {
305849
+ function createTransport({ key: key2, methods, name: name3, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type4 }, value4) {
307044
305850
  const uid2 = uid();
307045
305851
  return {
307046
305852
  config: {
307047
- key: key4,
305853
+ key: key2,
307048
305854
  methods,
307049
305855
  name: name3,
307050
305856
  request: request2,
@@ -307201,7 +306007,7 @@ function getHttpRpcClient(url4, options = {}) {
307201
306007
 
307202
306008
  // ../../node_modules/viem/_esm/clients/transports/http.js
307203
306009
  function http(url4, config4 = {}) {
307204
- const { batch, fetchOptions, key: key4 = "http", methods, name: name3 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config4;
306010
+ const { batch, fetchOptions, key: key2 = "http", methods, name: name3 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config4;
307205
306011
  return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
307206
306012
  const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
307207
306013
  const retryCount = config4.retryCount ?? retryCount_;
@@ -307216,7 +306022,7 @@ function http(url4, config4 = {}) {
307216
306022
  timeout
307217
306023
  });
307218
306024
  return createTransport({
307219
- key: key4,
306025
+ key: key2,
307220
306026
  methods,
307221
306027
  name: name3,
307222
306028
  async request({ method, params }) {
@@ -307667,7 +306473,7 @@ init_getChainContractAddress();
307667
306473
  init_toHex();
307668
306474
  init_localBatchGatewayRequest();
307669
306475
  async function getEnsText(client, parameters) {
307670
- const { blockNumber, blockTag, key: key4, name: name3, gatewayUrls, strict } = parameters;
306476
+ const { blockNumber, blockTag, key: key2, name: name3, gatewayUrls, strict } = parameters;
307671
306477
  const { chain } = client;
307672
306478
  const universalResolverAddress = (() => {
307673
306479
  if (parameters.universalResolverAddress)
@@ -307693,7 +306499,7 @@ async function getEnsText(client, parameters) {
307693
306499
  encodeFunctionData({
307694
306500
  abi: textResolverAbi,
307695
306501
  functionName: "text",
307696
- args: [namehash(name3), key4]
306502
+ args: [namehash(name3), key2]
307697
306503
  }),
307698
306504
  gatewayUrls ?? [localBatchGatewayUrl]
307699
306505
  ],
@@ -308716,16 +307522,16 @@ class LruMap2 extends Map {
308716
307522
  });
308717
307523
  this.maxSize = size5;
308718
307524
  }
308719
- get(key4) {
308720
- const value4 = super.get(key4);
308721
- if (super.has(key4) && value4 !== undefined) {
308722
- this.delete(key4);
308723
- super.set(key4, value4);
307525
+ get(key2) {
307526
+ const value4 = super.get(key2);
307527
+ if (super.has(key2) && value4 !== undefined) {
307528
+ this.delete(key2);
307529
+ super.set(key2, value4);
308724
307530
  }
308725
307531
  return value4;
308726
307532
  }
308727
- set(key4, value4) {
308728
- super.set(key4, value4);
307533
+ set(key2, value4) {
307534
+ super.set(key2, value4);
308729
307535
  if (this.maxSize && this.size > this.maxSize) {
308730
307536
  const firstKey = this.keys().next().value;
308731
307537
  if (firstKey)
@@ -310585,10 +309391,10 @@ function publicActions(client) {
310585
309391
 
310586
309392
  // ../../node_modules/viem/_esm/clients/createPublicClient.js
310587
309393
  function createPublicClient(parameters) {
310588
- const { key: key4 = "public", name: name3 = "Public Client" } = parameters;
309394
+ const { key: key2 = "public", name: name3 = "Public Client" } = parameters;
310589
309395
  const client = createClient({
310590
309396
  ...parameters,
310591
- key: key4,
309397
+ key: key2,
310592
309398
  name: name3,
310593
309399
  type: "publicClient"
310594
309400
  });
@@ -310689,7 +309495,7 @@ __export4(util_exports3, {
310689
309495
  getParsedType: () => getParsedType4,
310690
309496
  getSizableOrigin: () => getSizableOrigin4,
310691
309497
  isObject: () => isObject4,
310692
- isPlainObject: () => isPlainObject8,
309498
+ isPlainObject: () => isPlainObject6,
310693
309499
  issue: () => issue4,
310694
309500
  joinValues: () => joinValues4,
310695
309501
  jsonStringifyReplacer: () => jsonStringifyReplacer4,
@@ -310761,19 +309567,19 @@ function floatSafeRemainder4(val, step) {
310761
309567
  const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
310762
309568
  return valInt % stepInt / 10 ** decCount;
310763
309569
  }
310764
- function defineLazy4(object$1, key4, getter) {
309570
+ function defineLazy4(object$1, key2, getter) {
310765
309571
  const set$1 = false;
310766
- Object.defineProperty(object$1, key4, {
309572
+ Object.defineProperty(object$1, key2, {
310767
309573
  get() {
310768
309574
  if (!set$1) {
310769
309575
  const value4 = getter();
310770
- object$1[key4] = value4;
309576
+ object$1[key2] = value4;
310771
309577
  return value4;
310772
309578
  }
310773
309579
  throw new Error("cached value already set");
310774
309580
  },
310775
309581
  set(v6) {
310776
- Object.defineProperty(object$1, key4, { value: v6 });
309582
+ Object.defineProperty(object$1, key2, { value: v6 });
310777
309583
  },
310778
309584
  configurable: true
310779
309585
  });
@@ -310789,11 +309595,11 @@ function assignProp4(target, prop, value4) {
310789
309595
  function getElementAtPath4(obj, path7) {
310790
309596
  if (!path7)
310791
309597
  return obj;
310792
- return path7.reduce((acc, key4) => acc?.[key4], obj);
309598
+ return path7.reduce((acc, key2) => acc?.[key2], obj);
310793
309599
  }
310794
309600
  function promiseAllObject4(promisesObj) {
310795
309601
  const keys = Object.keys(promisesObj);
310796
- const promises = keys.map((key4) => promisesObj[key4]);
309602
+ const promises = keys.map((key2) => promisesObj[key2]);
310797
309603
  return Promise.all(promises).then((results) => {
310798
309604
  const resolvedObj = {};
310799
309605
  for (let i6 = 0;i6 < keys.length; i6++) {
@@ -310825,7 +309631,7 @@ var allowsEval4 = cached4(() => {
310825
309631
  return false;
310826
309632
  }
310827
309633
  });
310828
- function isPlainObject8(o8) {
309634
+ function isPlainObject6(o8) {
310829
309635
  if (isObject4(o8) === false)
310830
309636
  return false;
310831
309637
  const ctor = o8.constructor;
@@ -310841,8 +309647,8 @@ function isPlainObject8(o8) {
310841
309647
  }
310842
309648
  function numKeys4(data) {
310843
309649
  let keyCount = 0;
310844
- for (const key4 in data) {
310845
- if (Object.prototype.hasOwnProperty.call(data, key4)) {
309650
+ for (const key2 in data) {
309651
+ if (Object.prototype.hasOwnProperty.call(data, key2)) {
310846
309652
  keyCount++;
310847
309653
  }
310848
309654
  }
@@ -310992,13 +309798,13 @@ var BIGINT_FORMAT_RANGES4 = {
310992
309798
  function pick4(schema, mask) {
310993
309799
  const newShape = {};
310994
309800
  const currDef = schema._zod.def;
310995
- for (const key4 in mask) {
310996
- if (!(key4 in currDef.shape)) {
310997
- throw new Error(`Unrecognized key: "${key4}"`);
309801
+ for (const key2 in mask) {
309802
+ if (!(key2 in currDef.shape)) {
309803
+ throw new Error(`Unrecognized key: "${key2}"`);
310998
309804
  }
310999
- if (!mask[key4])
309805
+ if (!mask[key2])
311000
309806
  continue;
311001
- newShape[key4] = currDef.shape[key4];
309807
+ newShape[key2] = currDef.shape[key2];
311002
309808
  }
311003
309809
  return clone4(schema, {
311004
309810
  ...schema._zod.def,
@@ -311009,13 +309815,13 @@ function pick4(schema, mask) {
311009
309815
  function omit4(schema, mask) {
311010
309816
  const newShape = { ...schema._zod.def.shape };
311011
309817
  const currDef = schema._zod.def;
311012
- for (const key4 in mask) {
311013
- if (!(key4 in currDef.shape)) {
311014
- throw new Error(`Unrecognized key: "${key4}"`);
309818
+ for (const key2 in mask) {
309819
+ if (!(key2 in currDef.shape)) {
309820
+ throw new Error(`Unrecognized key: "${key2}"`);
311015
309821
  }
311016
- if (!mask[key4])
309822
+ if (!mask[key2])
311017
309823
  continue;
311018
- delete newShape[key4];
309824
+ delete newShape[key2];
311019
309825
  }
311020
309826
  return clone4(schema, {
311021
309827
  ...schema._zod.def,
@@ -311057,23 +309863,23 @@ function partial4(Class$1, schema, mask) {
311057
309863
  const oldShape = schema._zod.def.shape;
311058
309864
  const shape = { ...oldShape };
311059
309865
  if (mask) {
311060
- for (const key4 in mask) {
311061
- if (!(key4 in oldShape)) {
311062
- throw new Error(`Unrecognized key: "${key4}"`);
309866
+ for (const key2 in mask) {
309867
+ if (!(key2 in oldShape)) {
309868
+ throw new Error(`Unrecognized key: "${key2}"`);
311063
309869
  }
311064
- if (!mask[key4])
309870
+ if (!mask[key2])
311065
309871
  continue;
311066
- shape[key4] = Class$1 ? new Class$1({
309872
+ shape[key2] = Class$1 ? new Class$1({
311067
309873
  type: "optional",
311068
- innerType: oldShape[key4]
311069
- }) : oldShape[key4];
309874
+ innerType: oldShape[key2]
309875
+ }) : oldShape[key2];
311070
309876
  }
311071
309877
  } else {
311072
- for (const key4 in oldShape) {
311073
- shape[key4] = Class$1 ? new Class$1({
309878
+ for (const key2 in oldShape) {
309879
+ shape[key2] = Class$1 ? new Class$1({
311074
309880
  type: "optional",
311075
- innerType: oldShape[key4]
311076
- }) : oldShape[key4];
309881
+ innerType: oldShape[key2]
309882
+ }) : oldShape[key2];
311077
309883
  }
311078
309884
  }
311079
309885
  return clone4(schema, {
@@ -311086,22 +309892,22 @@ function required4(Class$1, schema, mask) {
311086
309892
  const oldShape = schema._zod.def.shape;
311087
309893
  const shape = { ...oldShape };
311088
309894
  if (mask) {
311089
- for (const key4 in mask) {
311090
- if (!(key4 in shape)) {
311091
- throw new Error(`Unrecognized key: "${key4}"`);
309895
+ for (const key2 in mask) {
309896
+ if (!(key2 in shape)) {
309897
+ throw new Error(`Unrecognized key: "${key2}"`);
311092
309898
  }
311093
- if (!mask[key4])
309899
+ if (!mask[key2])
311094
309900
  continue;
311095
- shape[key4] = new Class$1({
309901
+ shape[key2] = new Class$1({
311096
309902
  type: "nonoptional",
311097
- innerType: oldShape[key4]
309903
+ innerType: oldShape[key2]
311098
309904
  });
311099
309905
  }
311100
309906
  } else {
311101
- for (const key4 in oldShape) {
311102
- shape[key4] = new Class$1({
309907
+ for (const key2 in oldShape) {
309908
+ shape[key2] = new Class$1({
311103
309909
  type: "nonoptional",
311104
- innerType: oldShape[key4]
309910
+ innerType: oldShape[key2]
311105
309911
  });
311106
309912
  }
311107
309913
  }
@@ -312681,28 +311487,28 @@ var $ZodArray4 = /* @__PURE__ */ $constructor4("$ZodArray", (inst, def) => {
312681
311487
  return payload;
312682
311488
  };
312683
311489
  });
312684
- function handleObjectResult4(result, final, key4) {
311490
+ function handleObjectResult4(result, final, key2) {
312685
311491
  if (result.issues.length) {
312686
- final.issues.push(...prefixIssues4(key4, result.issues));
311492
+ final.issues.push(...prefixIssues4(key2, result.issues));
312687
311493
  }
312688
- final.value[key4] = result.value;
311494
+ final.value[key2] = result.value;
312689
311495
  }
312690
- function handleOptionalObjectResult4(result, final, key4, input) {
311496
+ function handleOptionalObjectResult4(result, final, key2, input) {
312691
311497
  if (result.issues.length) {
312692
- if (input[key4] === undefined) {
312693
- if (key4 in input) {
312694
- final.value[key4] = undefined;
311498
+ if (input[key2] === undefined) {
311499
+ if (key2 in input) {
311500
+ final.value[key2] = undefined;
312695
311501
  } else {
312696
- final.value[key4] = result.value;
311502
+ final.value[key2] = result.value;
312697
311503
  }
312698
311504
  } else {
312699
- final.issues.push(...prefixIssues4(key4, result.issues));
311505
+ final.issues.push(...prefixIssues4(key2, result.issues));
312700
311506
  }
312701
311507
  } else if (result.value === undefined) {
312702
- if (key4 in input)
312703
- final.value[key4] = undefined;
311508
+ if (key2 in input)
311509
+ final.value[key2] = undefined;
312704
311510
  } else {
312705
- final.value[key4] = result.value;
311511
+ final.value[key2] = result.value;
312706
311512
  }
312707
311513
  }
312708
311514
  var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
@@ -312726,12 +311532,12 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312726
311532
  defineLazy4(inst._zod, "propValues", () => {
312727
311533
  const shape = def.shape;
312728
311534
  const propValues = {};
312729
- for (const key4 in shape) {
312730
- const field2 = shape[key4]._zod;
311535
+ for (const key2 in shape) {
311536
+ const field2 = shape[key2]._zod;
312731
311537
  if (field2.values) {
312732
- propValues[key4] ?? (propValues[key4] = new Set);
311538
+ propValues[key2] ?? (propValues[key2] = new Set);
312733
311539
  for (const v6 of field2.values)
312734
- propValues[key4].add(v6);
311540
+ propValues[key2].add(v6);
312735
311541
  }
312736
311542
  }
312737
311543
  return propValues;
@@ -312743,21 +311549,21 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312743
311549
  "ctx"
312744
311550
  ]);
312745
311551
  const { keys, optionalKeys: optionalKeys$1 } = _normalized.value;
312746
- const parseStr = (key4) => {
312747
- const k5 = esc4(key4);
311552
+ const parseStr = (key2) => {
311553
+ const k5 = esc4(key2);
312748
311554
  return `shape[${k5}]._zod.run({ value: input[${k5}], issues: [] }, ctx)`;
312749
311555
  };
312750
311556
  doc2.write(`const input = payload.value;`);
312751
311557
  const ids = Object.create(null);
312752
- for (const key4 of keys) {
312753
- ids[key4] = randomString4(15);
311558
+ for (const key2 of keys) {
311559
+ ids[key2] = randomString4(15);
312754
311560
  }
312755
311561
  doc2.write(`const newResult = {}`);
312756
- for (const key4 of keys) {
312757
- if (optionalKeys$1.has(key4)) {
312758
- const id = ids[key4];
312759
- doc2.write(`const ${id} = ${parseStr(key4)};`);
312760
- const k5 = esc4(key4);
311562
+ for (const key2 of keys) {
311563
+ if (optionalKeys$1.has(key2)) {
311564
+ const id = ids[key2];
311565
+ doc2.write(`const ${id} = ${parseStr(key2)};`);
311566
+ const k5 = esc4(key2);
312761
311567
  doc2.write(`
312762
311568
  if (${id}.issues.length) {
312763
311569
  if (input[${k5}] === undefined) {
@@ -312779,14 +311585,14 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312779
311585
  }
312780
311586
  `);
312781
311587
  } else {
312782
- const id = ids[key4];
312783
- doc2.write(`const ${id} = ${parseStr(key4)};`);
311588
+ const id = ids[key2];
311589
+ doc2.write(`const ${id} = ${parseStr(key2)};`);
312784
311590
  doc2.write(`
312785
311591
  if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
312786
311592
  ...iss,
312787
- path: iss.path ? [${esc4(key4)}, ...iss.path] : [${esc4(key4)}]
311593
+ path: iss.path ? [${esc4(key2)}, ...iss.path] : [${esc4(key2)}]
312788
311594
  })));`);
312789
- doc2.write(`newResult[${esc4(key4)}] = ${id}.value`);
311595
+ doc2.write(`newResult[${esc4(key2)}] = ${id}.value`);
312790
311596
  }
312791
311597
  }
312792
311598
  doc2.write(`payload.value = newResult;`);
@@ -312821,20 +311627,20 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312821
311627
  } else {
312822
311628
  payload.value = {};
312823
311629
  const shape = value4.shape;
312824
- for (const key4 of value4.keys) {
312825
- const el = shape[key4];
311630
+ for (const key2 of value4.keys) {
311631
+ const el = shape[key2];
312826
311632
  const r6 = el._zod.run({
312827
- value: input[key4],
311633
+ value: input[key2],
312828
311634
  issues: []
312829
311635
  }, ctx);
312830
311636
  const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
312831
311637
  if (r6 instanceof Promise) {
312832
- proms.push(r6.then((r$1) => isOptional ? handleOptionalObjectResult4(r$1, payload, key4, input) : handleObjectResult4(r$1, payload, key4)));
311638
+ proms.push(r6.then((r$1) => isOptional ? handleOptionalObjectResult4(r$1, payload, key2, input) : handleObjectResult4(r$1, payload, key2)));
312833
311639
  } else {
312834
311640
  if (isOptional) {
312835
- handleOptionalObjectResult4(r6, payload, key4, input);
311641
+ handleOptionalObjectResult4(r6, payload, key2, input);
312836
311642
  } else {
312837
- handleObjectResult4(r6, payload, key4);
311643
+ handleObjectResult4(r6, payload, key2);
312838
311644
  }
312839
311645
  }
312840
311646
  }
@@ -312846,21 +311652,21 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312846
311652
  const keySet = value4.keySet;
312847
311653
  const _catchall = catchall._zod;
312848
311654
  const t8 = _catchall.def.type;
312849
- for (const key4 of Object.keys(input)) {
312850
- if (keySet.has(key4))
311655
+ for (const key2 of Object.keys(input)) {
311656
+ if (keySet.has(key2))
312851
311657
  continue;
312852
311658
  if (t8 === "never") {
312853
- unrecognized.push(key4);
311659
+ unrecognized.push(key2);
312854
311660
  continue;
312855
311661
  }
312856
311662
  const r6 = _catchall.run({
312857
- value: input[key4],
311663
+ value: input[key2],
312858
311664
  issues: []
312859
311665
  }, ctx);
312860
311666
  if (r6 instanceof Promise) {
312861
- proms.push(r6.then((r$1) => handleObjectResult4(r$1, payload, key4)));
311667
+ proms.push(r6.then((r$1) => handleObjectResult4(r$1, payload, key2)));
312862
311668
  } else {
312863
- handleObjectResult4(r6, payload, key4);
311669
+ handleObjectResult4(r6, payload, key2);
312864
311670
  }
312865
311671
  }
312866
311672
  if (unrecognized.length) {
@@ -313030,22 +311836,22 @@ function mergeValues4(a7, b4) {
313030
311836
  data: a7
313031
311837
  };
313032
311838
  }
313033
- if (isPlainObject8(a7) && isPlainObject8(b4)) {
311839
+ if (isPlainObject6(a7) && isPlainObject6(b4)) {
313034
311840
  const bKeys = Object.keys(b4);
313035
- const sharedKeys = Object.keys(a7).filter((key4) => bKeys.indexOf(key4) !== -1);
311841
+ const sharedKeys = Object.keys(a7).filter((key2) => bKeys.indexOf(key2) !== -1);
313036
311842
  const newObj = {
313037
311843
  ...a7,
313038
311844
  ...b4
313039
311845
  };
313040
- for (const key4 of sharedKeys) {
313041
- const sharedValue = mergeValues4(a7[key4], b4[key4]);
311846
+ for (const key2 of sharedKeys) {
311847
+ const sharedValue = mergeValues4(a7[key2], b4[key2]);
313042
311848
  if (!sharedValue.valid) {
313043
311849
  return {
313044
311850
  valid: false,
313045
- mergeErrorPath: [key4, ...sharedValue.mergeErrorPath]
311851
+ mergeErrorPath: [key2, ...sharedValue.mergeErrorPath]
313046
311852
  };
313047
311853
  }
313048
- newObj[key4] = sharedValue.data;
311854
+ newObj[key2] = sharedValue.data;
313049
311855
  }
313050
311856
  return {
313051
311857
  valid: true,
@@ -313181,7 +311987,7 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
313181
311987
  $ZodType4.init(inst, def);
313182
311988
  inst._zod.parse = (payload, ctx) => {
313183
311989
  const input = payload.value;
313184
- if (!isPlainObject8(input)) {
311990
+ if (!isPlainObject6(input)) {
313185
311991
  payload.issues.push({
313186
311992
  expected: "record",
313187
311993
  code: "invalid_type",
@@ -313194,32 +312000,32 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
313194
312000
  if (def.keyType._zod.values) {
313195
312001
  const values = def.keyType._zod.values;
313196
312002
  payload.value = {};
313197
- for (const key4 of values) {
313198
- if (typeof key4 === "string" || typeof key4 === "number" || typeof key4 === "symbol") {
312003
+ for (const key2 of values) {
312004
+ if (typeof key2 === "string" || typeof key2 === "number" || typeof key2 === "symbol") {
313199
312005
  const result = def.valueType._zod.run({
313200
- value: input[key4],
312006
+ value: input[key2],
313201
312007
  issues: []
313202
312008
  }, ctx);
313203
312009
  if (result instanceof Promise) {
313204
312010
  proms.push(result.then((result$1) => {
313205
312011
  if (result$1.issues.length) {
313206
- payload.issues.push(...prefixIssues4(key4, result$1.issues));
312012
+ payload.issues.push(...prefixIssues4(key2, result$1.issues));
313207
312013
  }
313208
- payload.value[key4] = result$1.value;
312014
+ payload.value[key2] = result$1.value;
313209
312015
  }));
313210
312016
  } else {
313211
312017
  if (result.issues.length) {
313212
- payload.issues.push(...prefixIssues4(key4, result.issues));
312018
+ payload.issues.push(...prefixIssues4(key2, result.issues));
313213
312019
  }
313214
- payload.value[key4] = result.value;
312020
+ payload.value[key2] = result.value;
313215
312021
  }
313216
312022
  }
313217
312023
  }
313218
312024
  let unrecognized;
313219
- for (const key4 in input) {
313220
- if (!values.has(key4)) {
312025
+ for (const key2 in input) {
312026
+ if (!values.has(key2)) {
313221
312027
  unrecognized = unrecognized ?? [];
313222
- unrecognized.push(key4);
312028
+ unrecognized.push(key2);
313223
312029
  }
313224
312030
  }
313225
312031
  if (unrecognized && unrecognized.length > 0) {
@@ -313232,11 +312038,11 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
313232
312038
  }
313233
312039
  } else {
313234
312040
  payload.value = {};
313235
- for (const key4 of Reflect.ownKeys(input)) {
313236
- if (key4 === "__proto__")
312041
+ for (const key2 of Reflect.ownKeys(input)) {
312042
+ if (key2 === "__proto__")
313237
312043
  continue;
313238
312044
  const keyResult = def.keyType._zod.run({
313239
- value: key4,
312045
+ value: key2,
313240
312046
  issues: []
313241
312047
  }, ctx);
313242
312048
  if (keyResult instanceof Promise) {
@@ -313247,27 +312053,27 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
313247
312053
  origin: "record",
313248
312054
  code: "invalid_key",
313249
312055
  issues: keyResult.issues.map((iss) => finalizeIssue4(iss, ctx, config4())),
313250
- input: key4,
313251
- path: [key4],
312056
+ input: key2,
312057
+ path: [key2],
313252
312058
  inst
313253
312059
  });
313254
312060
  payload.value[keyResult.value] = keyResult.value;
313255
312061
  continue;
313256
312062
  }
313257
312063
  const result = def.valueType._zod.run({
313258
- value: input[key4],
312064
+ value: input[key2],
313259
312065
  issues: []
313260
312066
  }, ctx);
313261
312067
  if (result instanceof Promise) {
313262
312068
  proms.push(result.then((result$1) => {
313263
312069
  if (result$1.issues.length) {
313264
- payload.issues.push(...prefixIssues4(key4, result$1.issues));
312070
+ payload.issues.push(...prefixIssues4(key2, result$1.issues));
313265
312071
  }
313266
312072
  payload.value[keyResult.value] = result$1.value;
313267
312073
  }));
313268
312074
  } else {
313269
312075
  if (result.issues.length) {
313270
- payload.issues.push(...prefixIssues4(key4, result.issues));
312076
+ payload.issues.push(...prefixIssues4(key2, result.issues));
313271
312077
  }
313272
312078
  payload.value[keyResult.value] = result.value;
313273
312079
  }
@@ -313294,9 +312100,9 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
313294
312100
  }
313295
312101
  const proms = [];
313296
312102
  payload.value = new Map;
313297
- for (const [key4, value4] of input) {
312103
+ for (const [key2, value4] of input) {
313298
312104
  const keyResult = def.keyType._zod.run({
313299
- value: key4,
312105
+ value: key2,
313300
312106
  issues: []
313301
312107
  }, ctx);
313302
312108
  const valueResult = def.valueType._zod.run({
@@ -313305,10 +312111,10 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
313305
312111
  }, ctx);
313306
312112
  if (keyResult instanceof Promise || valueResult instanceof Promise) {
313307
312113
  proms.push(Promise.all([keyResult, valueResult]).then(([keyResult$1, valueResult$1]) => {
313308
- handleMapResult4(keyResult$1, valueResult$1, payload, key4, input, inst, ctx);
312114
+ handleMapResult4(keyResult$1, valueResult$1, payload, key2, input, inst, ctx);
313309
312115
  }));
313310
312116
  } else {
313311
- handleMapResult4(keyResult, valueResult, payload, key4, input, inst, ctx);
312117
+ handleMapResult4(keyResult, valueResult, payload, key2, input, inst, ctx);
313312
312118
  }
313313
312119
  }
313314
312120
  if (proms.length)
@@ -313316,10 +312122,10 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
313316
312122
  return payload;
313317
312123
  };
313318
312124
  });
313319
- function handleMapResult4(keyResult, valueResult, final, key4, input, inst, ctx) {
312125
+ function handleMapResult4(keyResult, valueResult, final, key2, input, inst, ctx) {
313320
312126
  if (keyResult.issues.length) {
313321
- if (propertyKeyTypes4.has(typeof key4)) {
313322
- final.issues.push(...prefixIssues4(key4, keyResult.issues));
312127
+ if (propertyKeyTypes4.has(typeof key2)) {
312128
+ final.issues.push(...prefixIssues4(key2, keyResult.issues));
313323
312129
  } else {
313324
312130
  final.issues.push({
313325
312131
  origin: "map",
@@ -313331,15 +312137,15 @@ function handleMapResult4(keyResult, valueResult, final, key4, input, inst, ctx)
313331
312137
  }
313332
312138
  }
313333
312139
  if (valueResult.issues.length) {
313334
- if (propertyKeyTypes4.has(typeof key4)) {
313335
- final.issues.push(...prefixIssues4(key4, valueResult.issues));
312140
+ if (propertyKeyTypes4.has(typeof key2)) {
312141
+ final.issues.push(...prefixIssues4(key2, valueResult.issues));
313336
312142
  } else {
313337
312143
  final.issues.push({
313338
312144
  origin: "map",
313339
312145
  code: "invalid_element",
313340
312146
  input,
313341
312147
  inst,
313342
- key: key4,
312148
+ key: key2,
313343
312149
  issues: valueResult.issues.map((iss) => finalizeIssue4(iss, ctx, config4()))
313344
312150
  });
313345
312151
  }
@@ -319661,19 +318467,19 @@ var JSONSchemaGenerator4 = class {
319661
318467
  json$1.type = "object";
319662
318468
  json$1.properties = {};
319663
318469
  const shape = def.shape;
319664
- for (const key4 in shape) {
319665
- json$1.properties[key4] = this.process(shape[key4], {
318470
+ for (const key2 in shape) {
318471
+ json$1.properties[key2] = this.process(shape[key2], {
319666
318472
  ...params,
319667
318473
  path: [
319668
318474
  ...params.path,
319669
318475
  "properties",
319670
- key4
318476
+ key2
319671
318477
  ]
319672
318478
  });
319673
318479
  }
319674
318480
  const allKeys = new Set(Object.keys(shape));
319675
- const requiredKeys = new Set([...allKeys].filter((key4) => {
319676
- const v6 = def.shape[key4]._zod;
318481
+ const requiredKeys = new Set([...allKeys].filter((key2) => {
318482
+ const v6 = def.shape[key2]._zod;
319677
318483
  if (this.io === "input") {
319678
318484
  return v6.optin === undefined;
319679
318485
  } else {
@@ -320025,8 +318831,8 @@ var JSONSchemaGenerator4 = class {
320025
318831
  if (defId)
320026
318832
  seen.defId = defId;
320027
318833
  const schema$1 = seen.schema;
320028
- for (const key4 in schema$1) {
320029
- delete schema$1[key4];
318834
+ for (const key2 in schema$1) {
318835
+ delete schema$1[key2];
320030
318836
  }
320031
318837
  schema$1.$ref = ref;
320032
318838
  };
@@ -320137,8 +318943,8 @@ function toJSONSchema4(input, _params) {
320137
318943
  defs
320138
318944
  };
320139
318945
  for (const entry of input._idmap.entries()) {
320140
- const [key4, schema] = entry;
320141
- schemas3[key4] = gen$1.emit(schema, {
318946
+ const [key2, schema] = entry;
318947
+ schemas3[key2] = gen$1.emit(schema, {
320142
318948
  ..._params,
320143
318949
  external: external2
320144
318950
  });
@@ -320183,8 +318989,8 @@ function isTransforming4(_schema, _ctx) {
320183
318989
  return isTransforming4(def.element, ctx);
320184
318990
  }
320185
318991
  case "object": {
320186
- for (const key4 in def.shape) {
320187
- if (isTransforming4(def.shape[key4], ctx))
318992
+ for (const key2 in def.shape) {
318993
+ if (isTransforming4(def.shape[key2], ctx))
320188
318994
  return true;
320189
318995
  }
320190
318996
  return false;
@@ -322033,19 +320839,19 @@ function getBooleanValue(value4, defaultValue) {
322033
320839
  function boolToString(value4) {
322034
320840
  return value4 ? "Yes" : "No";
322035
320841
  }
322036
- var esm_default5 = createPrompt((config5, done) => {
320842
+ var esm_default4 = createPrompt((config5, done) => {
322037
320843
  const { transformer = boolToString } = config5;
322038
320844
  const [status, setStatus] = useState("idle");
322039
320845
  const [value4, setValue] = useState("");
322040
320846
  const theme = makeTheme(config5.theme);
322041
320847
  const prefix = usePrefix({ status, theme });
322042
- useKeypress((key4, rl) => {
322043
- if (isEnterKey(key4)) {
320848
+ useKeypress((key2, rl) => {
320849
+ if (isEnterKey(key2)) {
322044
320850
  const answer = getBooleanValue(value4, config5.default);
322045
320851
  setValue(transformer(answer));
322046
320852
  setStatus("done");
322047
320853
  done(answer);
322048
- } else if (key4.name === "tab") {
320854
+ } else if (key2.name === "tab") {
322049
320855
  const answer = boolToString(!getBooleanValue(value4, config5.default));
322050
320856
  rl.clearLine(0);
322051
320857
  rl.write(answer);
@@ -322065,476 +320871,20 @@ var esm_default5 = createPrompt((config5, done) => {
322065
320871
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
322066
320872
  });
322067
320873
 
322068
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
322069
- var isEnterKey4 = (key4) => key4.name === "enter" || key4.name === "return";
322070
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
322071
- class AbortPromptError4 extends Error {
322072
- name = "AbortPromptError";
322073
- message = "Prompt was aborted";
322074
- constructor(options) {
322075
- super();
322076
- this.cause = options?.cause;
322077
- }
322078
- }
322079
-
322080
- class CancelPromptError4 extends Error {
322081
- name = "CancelPromptError";
322082
- message = "Prompt was canceled";
322083
- }
322084
-
322085
- class ExitPromptError4 extends Error {
322086
- name = "ExitPromptError";
322087
- }
322088
-
322089
- class HookError4 extends Error {
322090
- name = "HookError";
322091
- }
322092
-
322093
- class ValidationError4 extends Error {
322094
- name = "ValidationError";
322095
- }
322096
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
322097
- import { AsyncResource as AsyncResource11 } from "node:async_hooks";
322098
-
322099
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
322100
- import { AsyncLocalStorage as AsyncLocalStorage4, AsyncResource as AsyncResource10 } from "node:async_hooks";
322101
- var hookStorage4 = new AsyncLocalStorage4;
322102
- function createStore4(rl) {
322103
- const store = {
322104
- rl,
322105
- hooks: [],
322106
- hooksCleanup: [],
322107
- hooksEffect: [],
322108
- index: 0,
322109
- handleChange() {}
322110
- };
322111
- return store;
322112
- }
322113
- function withHooks4(rl, cb) {
322114
- const store = createStore4(rl);
322115
- return hookStorage4.run(store, () => {
322116
- function cycle(render) {
322117
- store.handleChange = () => {
322118
- store.index = 0;
322119
- render();
322120
- };
322121
- store.handleChange();
322122
- }
322123
- return cb(cycle);
322124
- });
322125
- }
322126
- function getStore4() {
322127
- const store = hookStorage4.getStore();
322128
- if (!store) {
322129
- throw new HookError4("[Inquirer] Hook functions can only be called from within a prompt");
322130
- }
322131
- return store;
322132
- }
322133
- function readline7() {
322134
- return getStore4().rl;
322135
- }
322136
- function withUpdates4(fn) {
322137
- const wrapped = (...args) => {
322138
- const store = getStore4();
322139
- let shouldUpdate = false;
322140
- const oldHandleChange = store.handleChange;
322141
- store.handleChange = () => {
322142
- shouldUpdate = true;
322143
- };
322144
- const returnValue = fn(...args);
322145
- if (shouldUpdate) {
322146
- oldHandleChange();
322147
- }
322148
- store.handleChange = oldHandleChange;
322149
- return returnValue;
322150
- };
322151
- return AsyncResource10.bind(wrapped);
322152
- }
322153
- function withPointer4(cb) {
322154
- const store = getStore4();
322155
- const { index: index2 } = store;
322156
- const pointer = {
322157
- get() {
322158
- return store.hooks[index2];
322159
- },
322160
- set(value4) {
322161
- store.hooks[index2] = value4;
322162
- },
322163
- initialized: index2 in store.hooks
322164
- };
322165
- const returnValue = cb(pointer);
322166
- store.index++;
322167
- return returnValue;
322168
- }
322169
- function handleChange4() {
322170
- getStore4().handleChange();
322171
- }
322172
- var effectScheduler4 = {
322173
- queue(cb) {
322174
- const store = getStore4();
322175
- const { index: index2 } = store;
322176
- store.hooksEffect.push(() => {
322177
- store.hooksCleanup[index2]?.();
322178
- const cleanFn = cb(readline7());
322179
- if (cleanFn != null && typeof cleanFn !== "function") {
322180
- throw new ValidationError4("useEffect return value must be a cleanup function or nothing.");
322181
- }
322182
- store.hooksCleanup[index2] = cleanFn;
322183
- });
322184
- },
322185
- run() {
322186
- const store = getStore4();
322187
- withUpdates4(() => {
322188
- store.hooksEffect.forEach((effect) => {
322189
- effect();
322190
- });
322191
- store.hooksEffect.length = 0;
322192
- })();
322193
- },
322194
- clearAll() {
322195
- const store = getStore4();
322196
- store.hooksCleanup.forEach((cleanFn) => {
322197
- cleanFn?.();
322198
- });
322199
- store.hooksEffect.length = 0;
322200
- store.hooksCleanup.length = 0;
322201
- }
322202
- };
322203
-
322204
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
322205
- function useState4(defaultValue) {
322206
- return withPointer4((pointer) => {
322207
- const setState = AsyncResource11.bind(function setState(newValue) {
322208
- if (pointer.get() !== newValue) {
322209
- pointer.set(newValue);
322210
- handleChange4();
322211
- }
322212
- });
322213
- if (pointer.initialized) {
322214
- return [pointer.get(), setState];
322215
- }
322216
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
322217
- pointer.set(value4);
322218
- return [value4, setState];
322219
- });
322220
- }
322221
-
322222
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
322223
- function useEffect4(cb, depArray) {
322224
- withPointer4((pointer) => {
322225
- const oldDeps = pointer.get();
322226
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
322227
- if (hasChanged) {
322228
- effectScheduler4.queue(cb);
322229
- }
322230
- pointer.set(depArray);
322231
- });
322232
- }
322233
-
322234
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
322235
- var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
322236
- var defaultTheme4 = {
322237
- prefix: {
322238
- idle: import_yoctocolors_cjs6.default.blue("?"),
322239
- done: import_yoctocolors_cjs6.default.green(esm_default2.tick)
322240
- },
322241
- spinner: {
322242
- interval: 80,
322243
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs6.default.yellow(frame))
322244
- },
322245
- style: {
322246
- answer: import_yoctocolors_cjs6.default.cyan,
322247
- message: import_yoctocolors_cjs6.default.bold,
322248
- error: (text2) => import_yoctocolors_cjs6.default.red(`> ${text2}`),
322249
- defaultAnswer: (text2) => import_yoctocolors_cjs6.default.dim(`(${text2})`),
322250
- help: import_yoctocolors_cjs6.default.dim,
322251
- highlight: import_yoctocolors_cjs6.default.cyan,
322252
- key: (text2) => import_yoctocolors_cjs6.default.cyan(import_yoctocolors_cjs6.default.bold(`<${text2}>`))
322253
- }
322254
- };
322255
-
322256
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
322257
- function isPlainObject9(value4) {
322258
- if (typeof value4 !== "object" || value4 === null)
322259
- return false;
322260
- let proto = value4;
322261
- while (Object.getPrototypeOf(proto) !== null) {
322262
- proto = Object.getPrototypeOf(proto);
322263
- }
322264
- return Object.getPrototypeOf(value4) === proto;
322265
- }
322266
- function deepMerge5(...objects) {
322267
- const output = {};
322268
- for (const obj of objects) {
322269
- for (const [key4, value4] of Object.entries(obj)) {
322270
- const prevValue = output[key4];
322271
- output[key4] = isPlainObject9(prevValue) && isPlainObject9(value4) ? deepMerge5(prevValue, value4) : value4;
322272
- }
322273
- }
322274
- return output;
322275
- }
322276
- function makeTheme4(...themes) {
322277
- const themesToMerge = [
322278
- defaultTheme4,
322279
- ...themes.filter((theme) => theme != null)
322280
- ];
322281
- return deepMerge5(...themesToMerge);
322282
- }
322283
-
322284
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
322285
- function usePrefix4({ status = "idle", theme }) {
322286
- const [showLoader, setShowLoader] = useState4(false);
322287
- const [tick, setTick] = useState4(0);
322288
- const { prefix, spinner: spinner2 } = makeTheme4(theme);
322289
- useEffect4(() => {
322290
- if (status === "loading") {
322291
- let tickInterval;
322292
- let inc = -1;
322293
- const delayTimeout = setTimeout(() => {
322294
- setShowLoader(true);
322295
- tickInterval = setInterval(() => {
322296
- inc = inc + 1;
322297
- setTick(inc % spinner2.frames.length);
322298
- }, spinner2.interval);
322299
- }, 300);
322300
- return () => {
322301
- clearTimeout(delayTimeout);
322302
- clearInterval(tickInterval);
322303
- };
322304
- } else {
322305
- setShowLoader(false);
322306
- }
322307
- }, [status]);
322308
- if (showLoader) {
322309
- return spinner2.frames[tick];
322310
- }
322311
- const iconName = status === "loading" ? "idle" : status;
322312
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
322313
- }
322314
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
322315
- function useRef4(val) {
322316
- return useState4({ current: val })[0];
322317
- }
322318
-
322319
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
322320
- function useKeypress4(userHandler) {
322321
- const signal = useRef4(userHandler);
322322
- signal.current = userHandler;
322323
- useEffect4((rl) => {
322324
- let ignore = false;
322325
- const handler = withUpdates4((_input, event) => {
322326
- if (ignore)
322327
- return;
322328
- signal.current(event, rl);
322329
- });
322330
- rl.input.on("keypress", handler);
322331
- return () => {
322332
- ignore = true;
322333
- rl.input.removeListener("keypress", handler);
322334
- };
322335
- }, []);
322336
- }
322337
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
322338
- var import_cli_width4 = __toESM(require_cli_width(), 1);
322339
- var import_wrap_ansi4 = __toESM(require_wrap_ansi(), 1);
322340
- function breakLines4(content, width) {
322341
- return content.split(`
322342
- `).flatMap((line) => import_wrap_ansi4.default(line, width, { trim: false, hard: true }).split(`
322343
- `).map((str) => str.trimEnd())).join(`
322344
- `);
322345
- }
322346
- function readlineWidth4() {
322347
- return import_cli_width4.default({ defaultWidth: 80, output: readline7().output });
322348
- }
322349
-
322350
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
322351
- var import_mute_stream4 = __toESM(require_lib(), 1);
322352
- import * as readline8 from "node:readline";
322353
- import { AsyncResource as AsyncResource12 } from "node:async_hooks";
322354
-
322355
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
322356
- var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
322357
- import { stripVTControlCharacters as stripVTControlCharacters5 } from "node:util";
322358
- var height4 = (content) => content.split(`
322359
- `).length;
322360
- var lastLine4 = (content) => content.split(`
322361
- `).pop() ?? "";
322362
- function cursorDown4(n6) {
322363
- return n6 > 0 ? import_ansi_escapes5.default.cursorDown(n6) : "";
322364
- }
322365
-
322366
- class ScreenManager4 {
322367
- height = 0;
322368
- extraLinesUnderPrompt = 0;
322369
- cursorPos;
322370
- rl;
322371
- constructor(rl) {
322372
- this.rl = rl;
322373
- this.cursorPos = rl.getCursorPos();
322374
- }
322375
- write(content) {
322376
- this.rl.output.unmute();
322377
- this.rl.output.write(content);
322378
- this.rl.output.mute();
322379
- }
322380
- render(content, bottomContent = "") {
322381
- const promptLine = lastLine4(content);
322382
- const rawPromptLine = stripVTControlCharacters5(promptLine);
322383
- let prompt = rawPromptLine;
322384
- if (this.rl.line.length > 0) {
322385
- prompt = prompt.slice(0, -this.rl.line.length);
322386
- }
322387
- this.rl.setPrompt(prompt);
322388
- this.cursorPos = this.rl.getCursorPos();
322389
- const width = readlineWidth4();
322390
- content = breakLines4(content, width);
322391
- bottomContent = breakLines4(bottomContent, width);
322392
- if (rawPromptLine.length % width === 0) {
322393
- content += `
322394
- `;
322395
- }
322396
- let output = content + (bottomContent ? `
322397
- ` + bottomContent : "");
322398
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
322399
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height4(bottomContent) : 0);
322400
- if (bottomContentHeight > 0)
322401
- output += import_ansi_escapes5.default.cursorUp(bottomContentHeight);
322402
- output += import_ansi_escapes5.default.cursorTo(this.cursorPos.cols);
322403
- this.write(cursorDown4(this.extraLinesUnderPrompt) + import_ansi_escapes5.default.eraseLines(this.height) + output);
322404
- this.extraLinesUnderPrompt = bottomContentHeight;
322405
- this.height = height4(output);
322406
- }
322407
- checkCursorPos() {
322408
- const cursorPos = this.rl.getCursorPos();
322409
- if (cursorPos.cols !== this.cursorPos.cols) {
322410
- this.write(import_ansi_escapes5.default.cursorTo(cursorPos.cols));
322411
- this.cursorPos = cursorPos;
322412
- }
322413
- }
322414
- done({ clearContent }) {
322415
- this.rl.setPrompt("");
322416
- let output = cursorDown4(this.extraLinesUnderPrompt);
322417
- output += clearContent ? import_ansi_escapes5.default.eraseLines(this.height) : `
322418
- `;
322419
- output += import_ansi_escapes5.default.cursorShow;
322420
- this.write(output);
322421
- this.rl.close();
322422
- }
322423
- }
322424
-
322425
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
322426
- class PromisePolyfill4 extends Promise {
322427
- static withResolver() {
322428
- let resolve6;
322429
- let reject;
322430
- const promise5 = new Promise((res, rej) => {
322431
- resolve6 = res;
322432
- reject = rej;
322433
- });
322434
- return { promise: promise5, resolve: resolve6, reject };
322435
- }
322436
- }
322437
-
322438
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
322439
- function getCallSites4() {
322440
- const _prepareStackTrace = Error.prepareStackTrace;
322441
- let result = [];
322442
- try {
322443
- Error.prepareStackTrace = (_5, callSites) => {
322444
- const callSitesWithoutCurrent = callSites.slice(1);
322445
- result = callSitesWithoutCurrent;
322446
- return callSitesWithoutCurrent;
322447
- };
322448
- new Error().stack;
322449
- } catch {
322450
- return result;
322451
- }
322452
- Error.prepareStackTrace = _prepareStackTrace;
322453
- return result;
322454
- }
322455
- function createPrompt4(view) {
322456
- const callSites = getCallSites4();
322457
- const prompt = (config5, context = {}) => {
322458
- const { input = process.stdin, signal } = context;
322459
- const cleanups = new Set;
322460
- const output = new import_mute_stream4.default;
322461
- output.pipe(context.output ?? process.stdout);
322462
- const rl = readline8.createInterface({
322463
- terminal: true,
322464
- input,
322465
- output
322466
- });
322467
- const screen = new ScreenManager4(rl);
322468
- const { promise: promise5, resolve: resolve6, reject } = PromisePolyfill4.withResolver();
322469
- const cancel3 = () => reject(new CancelPromptError4);
322470
- if (signal) {
322471
- const abort = () => reject(new AbortPromptError4({ cause: signal.reason }));
322472
- if (signal.aborted) {
322473
- abort();
322474
- return Object.assign(promise5, { cancel: cancel3 });
322475
- }
322476
- signal.addEventListener("abort", abort);
322477
- cleanups.add(() => signal.removeEventListener("abort", abort));
322478
- }
322479
- cleanups.add(onExit((code2, signal2) => {
322480
- reject(new ExitPromptError4(`User force closed the prompt with ${code2} ${signal2}`));
322481
- }));
322482
- const sigint = () => reject(new ExitPromptError4(`User force closed the prompt with SIGINT`));
322483
- rl.on("SIGINT", sigint);
322484
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
322485
- const checkCursorPos = () => screen.checkCursorPos();
322486
- rl.input.on("keypress", checkCursorPos);
322487
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
322488
- return withHooks4(rl, (cycle) => {
322489
- const hooksCleanup = AsyncResource12.bind(() => effectScheduler4.clearAll());
322490
- rl.on("close", hooksCleanup);
322491
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
322492
- cycle(() => {
322493
- try {
322494
- const nextView = view(config5, (value4) => {
322495
- setImmediate(() => resolve6(value4));
322496
- });
322497
- if (nextView === undefined) {
322498
- const callerFilename = callSites[1]?.getFileName();
322499
- throw new Error(`Prompt functions must return a string.
322500
- at ${callerFilename}`);
322501
- }
322502
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
322503
- screen.render(content, bottomContent);
322504
- effectScheduler4.run();
322505
- } catch (error45) {
322506
- reject(error45);
322507
- }
322508
- });
322509
- return Object.assign(promise5.then((answer) => {
322510
- effectScheduler4.clearAll();
322511
- return answer;
322512
- }, (error45) => {
322513
- effectScheduler4.clearAll();
322514
- throw error45;
322515
- }).finally(() => {
322516
- cleanups.forEach((cleanup) => cleanup());
322517
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
322518
- output.end();
322519
- }).then(() => promise5), { cancel: cancel3 });
322520
- });
322521
- };
322522
- return prompt;
322523
- }
322524
320874
  // ../../node_modules/@inquirer/password/dist/esm/index.js
322525
- var import_ansi_escapes6 = __toESM(require_ansi_escapes(), 1);
322526
- var esm_default6 = createPrompt4((config5, done) => {
320875
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
320876
+ var esm_default5 = createPrompt((config5, done) => {
322527
320877
  const { validate: validate5 = () => true } = config5;
322528
- const theme = makeTheme4(config5.theme);
322529
- const [status, setStatus] = useState4("idle");
322530
- const [errorMsg, setError] = useState4();
322531
- const [value4, setValue] = useState4("");
322532
- const prefix = usePrefix4({ status, theme });
322533
- useKeypress4(async (key5, rl) => {
320878
+ const theme = makeTheme(config5.theme);
320879
+ const [status, setStatus] = useState("idle");
320880
+ const [errorMsg, setError] = useState();
320881
+ const [value4, setValue] = useState("");
320882
+ const prefix = usePrefix({ status, theme });
320883
+ useKeypress(async (key2, rl) => {
322534
320884
  if (status !== "idle") {
322535
320885
  return;
322536
320886
  }
322537
- if (isEnterKey4(key5)) {
320887
+ if (isEnterKey(key2)) {
322538
320888
  const answer = value4;
322539
320889
  setStatus("loading");
322540
320890
  const isValid = await validate5(answer);
@@ -322559,7 +320909,7 @@ var esm_default6 = createPrompt4((config5, done) => {
322559
320909
  const maskChar = typeof config5.mask === "string" ? config5.mask : "*";
322560
320910
  formattedValue = maskChar.repeat(value4.length);
322561
320911
  } else if (status !== "done") {
322562
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes6.default.cursorHide}`;
320912
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
322563
320913
  }
322564
320914
  if (status === "done") {
322565
320915
  formattedValue = theme.style.answer(formattedValue);
@@ -322581,7 +320931,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
322581
320931
  return defaultAccessToken;
322582
320932
  }
322583
320933
  if (defaultAccessToken) {
322584
- const keep = await esm_default5({
320934
+ const keep = await esm_default4({
322585
320935
  message: "Do you want to use the existing application access token?",
322586
320936
  default: true
322587
320937
  });
@@ -322589,12 +320939,12 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
322589
320939
  return defaultAccessToken;
322590
320940
  }
322591
320941
  }
322592
- const create2 = await esm_default5({
320942
+ const create2 = await esm_default4({
322593
320943
  message: "Do you want to create a new application access token?",
322594
320944
  default: false
322595
320945
  });
322596
320946
  if (create2) {
322597
- const name3 = await esm_default3({
320947
+ const name3 = await esm_default2({
322598
320948
  message: "How would you like to name this application access token?",
322599
320949
  default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
322600
320950
  required: true,
@@ -322657,7 +321007,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
322657
321007
  return aat;
322658
321008
  } catch (_error) {}
322659
321009
  }
322660
- return esm_default6({
321010
+ return esm_default5({
322661
321011
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
322662
321012
  validate(value4) {
322663
321013
  try {
@@ -322689,7 +321039,7 @@ async function applicationPrompt(env2, applications, accept) {
322689
321039
  if (is_in_ci_default) {
322690
321040
  nothingSelectedError("application");
322691
321041
  }
322692
- const application = await esm_default4({
321042
+ const application = await esm_default3({
322693
321043
  message: "Which application do you want to connect to?",
322694
321044
  choices: applications.map((applications2) => ({
322695
321045
  name: `${applications2.name} (${applications2.uniqueName})`,
@@ -322802,7 +321152,7 @@ async function blockchainNodePrompt({
322802
321152
  }
322803
321153
  return item;
322804
321154
  }) : choices;
322805
- return esm_default4({
321155
+ return esm_default3({
322806
321156
  message: promptMessage ?? "Which blockchain node do you want to connect to?",
322807
321157
  choices: filteredChoices,
322808
321158
  default: defaultNode
@@ -322832,7 +321182,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
322832
321182
  isRequired,
322833
321183
  defaultHandler: async ({ defaultService: defaultNode, choices }) => {
322834
321184
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
322835
- return esm_default4({
321185
+ return esm_default3({
322836
321186
  message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
322837
321187
  choices: filteredChoices,
322838
321188
  default: defaultNode
@@ -322857,7 +321207,7 @@ async function blockscoutPrompt({
322857
321207
  envKey: "SETTLEMINT_BLOCKSCOUT",
322858
321208
  isRequired,
322859
321209
  defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
322860
- return esm_default4({
321210
+ return esm_default3({
322861
321211
  message: "Which blockscout instance do you want to connect to?",
322862
321212
  choices,
322863
321213
  default: defaultBlockscout
@@ -322880,7 +321230,7 @@ async function customDeploymentPrompt({
322880
321230
  envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
322881
321231
  isRequired,
322882
321232
  defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
322883
- return esm_default4({
321233
+ return esm_default3({
322884
321234
  message: "Which Custom Deployment do you want to connect to?",
322885
321235
  choices,
322886
321236
  default: defaultCustomDeployment
@@ -322907,7 +321257,7 @@ async function hasuraPrompt({
322907
321257
  envKey: "SETTLEMINT_HASURA",
322908
321258
  isRequired,
322909
321259
  defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
322910
- return esm_default4({
321260
+ return esm_default3({
322911
321261
  message: "Which Hasura instance do you want to connect to?",
322912
321262
  choices,
322913
321263
  default: defaultHasura
@@ -322931,7 +321281,7 @@ async function hdPrivateKeyPrompt({
322931
321281
  envKey: "SETTLEMINT_HD_PRIVATE_KEY",
322932
321282
  isRequired,
322933
321283
  defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
322934
- return esm_default4({
321284
+ return esm_default3({
322935
321285
  message: "Which HD Private Key do you want to use?",
322936
321286
  choices,
322937
321287
  default: defaultPrivateKey
@@ -322955,7 +321305,7 @@ async function ipfsPrompt({
322955
321305
  envKey: "SETTLEMINT_IPFS",
322956
321306
  isRequired,
322957
321307
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
322958
- return esm_default4({
321308
+ return esm_default3({
322959
321309
  message: "Which IPFS instance do you want to connect to?",
322960
321310
  choices,
322961
321311
  default: defaultStorage
@@ -322979,7 +321329,7 @@ async function minioPrompt({
322979
321329
  envKey: "SETTLEMINT_MINIO",
322980
321330
  isRequired,
322981
321331
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
322982
- return esm_default4({
321332
+ return esm_default3({
322983
321333
  message: "Which MinIO instance do you want to connect to?",
322984
321334
  choices,
322985
321335
  default: defaultStorage
@@ -323003,7 +321353,7 @@ async function portalPrompt({
323003
321353
  envKey: "SETTLEMINT_PORTAL",
323004
321354
  isRequired,
323005
321355
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
323006
- return esm_default4({
321356
+ return esm_default3({
323007
321357
  message: "Which Smart Contract Portal instance do you want to connect to?",
323008
321358
  choices,
323009
321359
  default: defaultMiddleware
@@ -323032,7 +321382,7 @@ async function theGraphPrompt({
323032
321382
  isRequired,
323033
321383
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
323034
321384
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
323035
- return esm_default4({
321385
+ return esm_default3({
323036
321386
  message: "Which The Graph instance do you want to connect to?",
323037
321387
  choices: filteredChoices,
323038
321388
  default: defaultMiddleware
@@ -323060,7 +321410,7 @@ async function instancePrompt({
323060
321410
  return sanitizeInstanceUrl(defaultPromptInstance);
323061
321411
  }
323062
321412
  if (freeTextInput) {
323063
- const instance = await esm_default3({
321413
+ const instance = await esm_default2({
323064
321414
  message: "What is the URL of your SettleMint instance?",
323065
321415
  default: defaultPromptInstance,
323066
321416
  required: true,
@@ -323079,7 +321429,7 @@ async function instancePrompt({
323079
321429
  if (knownInstances.length === 0) {
323080
321430
  note("No instances found. Run `settlemint login` to configure an instance.", "warn");
323081
321431
  }
323082
- return esm_default4({
321432
+ return esm_default3({
323083
321433
  message: "What instance do you want to connect to?",
323084
321434
  choices: [
323085
321435
  ...knownInstances.map((instance) => ({
@@ -323115,7 +321465,7 @@ async function serviceSecretPrompt({
323115
321465
  return defaultSecret;
323116
321466
  }
323117
321467
  if (defaultSecret) {
323118
- const keep = await esm_default5({
321468
+ const keep = await esm_default4({
323119
321469
  message: `Do you want to use the existing ${name3} secret?`,
323120
321470
  default: true
323121
321471
  });
@@ -323123,7 +321473,7 @@ async function serviceSecretPrompt({
323123
321473
  return defaultSecret;
323124
321474
  }
323125
321475
  }
323126
- const serviceSecret = await esm_default6({
321476
+ const serviceSecret = await esm_default5({
323127
321477
  message
323128
321478
  });
323129
321479
  return serviceSecret || undefined;
@@ -323144,7 +321494,7 @@ async function serviceUrlPrompt({
323144
321494
  if (isCi) {
323145
321495
  return defaultUrl ? new URL(defaultUrl).toString() : undefined;
323146
321496
  }
323147
- const serviceUrl = await esm_default3({
321497
+ const serviceUrl = await esm_default2({
323148
321498
  message: example ? `${message} (eg ${example})` : message,
323149
321499
  default: defaultUrl,
323150
321500
  required: true,
@@ -323175,7 +321525,7 @@ async function workspacePrompt(env2, workspaces, accept) {
323175
321525
  if (is_in_ci_default) {
323176
321526
  nothingSelectedError("workspace");
323177
321527
  }
323178
- const workspace = await esm_default4({
321528
+ const workspace = await esm_default3({
323179
321529
  message: "Which workspace do you want to connect to?",
323180
321530
  choices: workspaces.map((workspace2) => ({
323181
321531
  name: `${workspace2.name} (${workspace2.uniqueName})`,
@@ -323579,7 +321929,7 @@ async function serviceValuePrompt({
323579
321929
  if (isCi) {
323580
321930
  return defaultValue;
323581
321931
  }
323582
- const serviceSecret = await esm_default3({
321932
+ const serviceSecret = await esm_default2({
323583
321933
  message: example ? `${message} (eg ${example})` : message,
323584
321934
  default: defaultValue
323585
321935
  });
@@ -324017,7 +322367,7 @@ async function templatePrompt(platformConfig, argument) {
324017
322367
  }
324018
322368
  return template2;
324019
322369
  }
324020
- const template = await esm_default4({
322370
+ const template = await esm_default3({
324021
322371
  message: "Which template do you want to use?",
324022
322372
  choices: [
324023
322373
  ...kits.map((template2) => ({
@@ -324035,7 +322385,7 @@ async function projectNamePrompt(env2, argument) {
324035
322385
  if (defaultInstance) {
324036
322386
  return defaultInstance;
324037
322387
  }
324038
- return esm_default3({
322388
+ return esm_default2({
324039
322389
  message: "What is the name of your new SettleMint project?",
324040
322390
  default: defaultInstance,
324041
322391
  required: true,
@@ -324237,7 +322587,7 @@ var basename2 = function(p5, extension) {
324237
322587
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
324238
322588
  };
324239
322589
  // ../../node_modules/defu/dist/defu.mjs
324240
- function isPlainObject10(value4) {
322590
+ function isPlainObject7(value4) {
324241
322591
  if (value4 === null || typeof value4 !== "object") {
324242
322592
  return false;
324243
322593
  }
@@ -324254,27 +322604,27 @@ function isPlainObject10(value4) {
324254
322604
  return true;
324255
322605
  }
324256
322606
  function _defu(baseObject, defaults4, namespace = ".", merger) {
324257
- if (!isPlainObject10(defaults4)) {
322607
+ if (!isPlainObject7(defaults4)) {
324258
322608
  return _defu(baseObject, {}, namespace, merger);
324259
322609
  }
324260
322610
  const object5 = Object.assign({}, defaults4);
324261
- for (const key5 in baseObject) {
324262
- if (key5 === "__proto__" || key5 === "constructor") {
322611
+ for (const key2 in baseObject) {
322612
+ if (key2 === "__proto__" || key2 === "constructor") {
324263
322613
  continue;
324264
322614
  }
324265
- const value4 = baseObject[key5];
322615
+ const value4 = baseObject[key2];
324266
322616
  if (value4 === null || value4 === undefined) {
324267
322617
  continue;
324268
322618
  }
324269
- if (merger && merger(object5, key5, value4, namespace)) {
322619
+ if (merger && merger(object5, key2, value4, namespace)) {
324270
322620
  continue;
324271
322621
  }
324272
- if (Array.isArray(value4) && Array.isArray(object5[key5])) {
324273
- object5[key5] = [...value4, ...object5[key5]];
324274
- } else if (isPlainObject10(value4) && isPlainObject10(object5[key5])) {
324275
- object5[key5] = _defu(value4, object5[key5], (namespace ? `${namespace}.` : "") + key5.toString(), merger);
322622
+ if (Array.isArray(value4) && Array.isArray(object5[key2])) {
322623
+ object5[key2] = [...value4, ...object5[key2]];
322624
+ } else if (isPlainObject7(value4) && isPlainObject7(object5[key2])) {
322625
+ object5[key2] = _defu(value4, object5[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
324276
322626
  } else {
324277
- object5[key5] = value4;
322627
+ object5[key2] = value4;
324278
322628
  }
324279
322629
  }
324280
322630
  return object5;
@@ -324283,15 +322633,15 @@ function createDefu(merger) {
324283
322633
  return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
324284
322634
  }
324285
322635
  var defu = createDefu();
324286
- var defuFn = createDefu((object5, key5, currentValue) => {
324287
- if (object5[key5] !== undefined && typeof currentValue === "function") {
324288
- object5[key5] = currentValue(object5[key5]);
322636
+ var defuFn = createDefu((object5, key2, currentValue) => {
322637
+ if (object5[key2] !== undefined && typeof currentValue === "function") {
322638
+ object5[key2] = currentValue(object5[key2]);
324289
322639
  return true;
324290
322640
  }
324291
322641
  });
324292
- var defuArrayFn = createDefu((object5, key5, currentValue) => {
324293
- if (Array.isArray(object5[key5]) && typeof currentValue === "function") {
324294
- object5[key5] = currentValue(object5[key5]);
322642
+ var defuArrayFn = createDefu((object5, key2, currentValue) => {
322643
+ if (Array.isArray(object5[key2]) && typeof currentValue === "function") {
322644
+ object5[key2] = currentValue(object5[key2]);
324295
322645
  return true;
324296
322646
  }
324297
322647
  });
@@ -327501,11 +325851,11 @@ function cacheDirectory() {
327501
325851
  }
327502
325852
  function normalizeHeaders(headers = {}) {
327503
325853
  const normalized = {};
327504
- for (const [key5, value4] of Object.entries(headers)) {
325854
+ for (const [key2, value4] of Object.entries(headers)) {
327505
325855
  if (!value4) {
327506
325856
  continue;
327507
325857
  }
327508
- normalized[key5.toLowerCase()] = value4;
325858
+ normalized[key2.toLowerCase()] = value4;
327509
325859
  }
327510
325860
  return normalized;
327511
325861
  }
@@ -327803,7 +326153,7 @@ function createCommand2() {
327803
326153
  await mkdir6(projectDir, { recursive: true });
327804
326154
  }
327805
326155
  if (!await isEmpty(projectDir)) {
327806
- const confirmEmpty = await esm_default5({
326156
+ const confirmEmpty = await esm_default4({
327807
326157
  message: `The folder ${projectDir} already exists. Do you want to empty it?`,
327808
326158
  default: false
327809
326159
  });
@@ -328056,7 +326406,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
328056
326406
  return defaultPersonalAccessToken;
328057
326407
  }
328058
326408
  if (existingConfig && defaultPersonalAccessToken) {
328059
- const useExisting = await esm_default5({
326409
+ const useExisting = await esm_default4({
328060
326410
  message: `Do you want to use your existing personal access token for ${instance}?`,
328061
326411
  default: true
328062
326412
  });
@@ -328064,7 +326414,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
328064
326414
  return defaultPersonalAccessToken;
328065
326415
  }
328066
326416
  }
328067
- return esm_default6({
326417
+ return esm_default5({
328068
326418
  message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
328069
326419
  validate(value4) {
328070
326420
  try {
@@ -328190,7 +326540,7 @@ function logoutCommand() {
328190
326540
  }
328191
326541
  const env2 = await loadEnv(false, false);
328192
326542
  const defaultInstance = env2.SETTLEMINT_INSTANCE;
328193
- const instance = await esm_default4({
326543
+ const instance = await esm_default3({
328194
326544
  message: "Select the instance to logout from:",
328195
326545
  choices: instances.map((instance2) => ({
328196
326546
  value: instance2,
@@ -328211,7 +326561,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
328211
326561
  if (verificationChallenges.length === 1) {
328212
326562
  return verificationChallenges[0];
328213
326563
  }
328214
- const verificationChallenge = await esm_default4({
326564
+ const verificationChallenge = await esm_default3({
328215
326565
  message: "Which pincode verification do you want to use?",
328216
326566
  choices: verificationChallenges.map((verificationChallenge2) => ({
328217
326567
  name: verificationChallenge2.name,
@@ -328275,7 +326625,7 @@ function pincodeVerificationResponseCommand() {
328275
326625
  nodeId: selectedBlockchainNode.id
328276
326626
  });
328277
326627
  const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
328278
- const pincode = await esm_default6({
326628
+ const pincode = await esm_default5({
328279
326629
  message: "Enter your pincode",
328280
326630
  validate(value4) {
328281
326631
  if (!value4.trim()) {
@@ -328428,7 +326778,7 @@ async function providerPrompt(platformConfig, argument) {
328428
326778
  if (possibleProviders.length === 1) {
328429
326779
  return possibleProviders[0];
328430
326780
  }
328431
- const provider = await esm_default4({
326781
+ const provider = await esm_default3({
328432
326782
  message: "Which provider do you want to use?",
328433
326783
  choices: platformConfig.deploymentEngineTargets.map((target) => ({
328434
326784
  name: target.name,
@@ -328459,7 +326809,7 @@ async function regionPrompt(provider, argument) {
328459
326809
  if (possibleRegions.length === 1) {
328460
326810
  return possibleRegions[0];
328461
326811
  }
328462
- const region = await esm_default4({
326812
+ const region = await esm_default3({
328463
326813
  message: "Which region do you want to use?",
328464
326814
  choices: provider.clusters.map((cluster) => ({
328465
326815
  name: cluster.name,
@@ -328985,7 +327335,7 @@ async function blockchainNetworkPrompt({
328985
327335
  envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
328986
327336
  isRequired,
328987
327337
  defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
328988
- return esm_default4({
327338
+ return esm_default3({
328989
327339
  message: "Which blockchain network do you want to connect to?",
328990
327340
  choices,
328991
327341
  default: defaultNetwork
@@ -329890,7 +328240,7 @@ function createCommand3() {
329890
328240
 
329891
328241
  // src/prompts/delete-confirmation.prompt.ts
329892
328242
  async function deleteConfirmationPrompt(itemDescription) {
329893
- const confirmation = await esm_default3({
328243
+ const confirmation = await esm_default2({
329894
328244
  message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
329895
328245
  required: true,
329896
328246
  validate(value4) {
@@ -330750,7 +329100,7 @@ function jsonOutput(data) {
330750
329100
  var composer = require_composer();
330751
329101
  var Document = require_Document();
330752
329102
  var Schema = require_Schema();
330753
- var errors7 = require_errors3();
329103
+ var errors4 = require_errors3();
330754
329104
  var Alias = require_Alias();
330755
329105
  var identity2 = require_identity();
330756
329106
  var Pair = require_Pair();
@@ -330766,9 +329116,9 @@ var visit2 = require_visit();
330766
329116
  var $Composer = composer.Composer;
330767
329117
  var $Document = Document.Document;
330768
329118
  var $Schema = Schema.Schema;
330769
- var $YAMLError = errors7.YAMLError;
330770
- var $YAMLParseError = errors7.YAMLParseError;
330771
- var $YAMLWarning = errors7.YAMLWarning;
329119
+ var $YAMLError = errors4.YAMLError;
329120
+ var $YAMLParseError = errors4.YAMLParseError;
329121
+ var $YAMLWarning = errors4.YAMLWarning;
330772
329122
  var $Alias = Alias.Alias;
330773
329123
  var $isAlias = identity2.isAlias;
330774
329124
  var $isCollection = identity2.isCollection;
@@ -331287,7 +329637,7 @@ async function useCasePrompt(platformConfig, argument) {
331287
329637
  if (selectableUseCases.length === 1) {
331288
329638
  return selectableUseCases[0];
331289
329639
  }
331290
- const useCase = await esm_default4({
329640
+ const useCase = await esm_default3({
331291
329641
  message: "Which use case do you want to use?",
331292
329642
  choices: selectableUseCases.map((useCase2) => ({
331293
329643
  name: formatUseCaseName(useCase2.name),
@@ -331345,7 +329695,7 @@ function createCommand4() {
331345
329695
  const targetDir = formatTargetDir(name3);
331346
329696
  const projectDir = join9(process.cwd(), targetDir);
331347
329697
  if (await exists3(projectDir) && !await isEmpty(projectDir)) {
331348
- const confirmEmpty = await esm_default5({
329698
+ const confirmEmpty = await esm_default4({
331349
329699
  message: `The folder ${projectDir} already exists. Do you want to delete it?`,
331350
329700
  default: false
331351
329701
  });
@@ -331375,11 +329725,11 @@ function createCommand4() {
331375
329725
 
331376
329726
  // src/utils/commands/passthrough-options.ts
331377
329727
  function mapPassthroughOptions(options, command) {
331378
- const optionArgs = Object.entries(options).map(([key5, value4]) => {
329728
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
331379
329729
  if (value4 === true) {
331380
- return `--${key5}`;
329730
+ return `--${key2}`;
331381
329731
  }
331382
- return `--${key5}=${value4}`;
329732
+ return `--${key2}=${value4}`;
331383
329733
  });
331384
329734
  return [...optionArgs, ...command.args];
331385
329735
  }
@@ -331635,7 +329985,7 @@ async function addressPrompt({
331635
329985
  hardhatConfig
331636
329986
  }) {
331637
329987
  if (!node) {
331638
- return esm_default3({
329988
+ return esm_default2({
331639
329989
  message: "Which private key address do you want to deploy from?",
331640
329990
  validate: (value4) => {
331641
329991
  if (!isAddress(value4)) {
@@ -331655,7 +330005,7 @@ async function addressPrompt({
331655
330005
  note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
331656
330006
  Please select another key or activate this key on the node and try again.`, "warn");
331657
330007
  }
331658
- const address = await esm_default4({
330008
+ const address = await esm_default3({
331659
330009
  message: "Which private key do you want to deploy from?",
331660
330010
  choices: possiblePrivateKeys.map(({ address: address2, name: name3 }) => ({
331661
330011
  name: name3,
@@ -332608,4 +330958,4 @@ async function sdkCliCommand(argv = process.argv) {
332608
330958
  // src/cli.ts
332609
330959
  sdkCliCommand();
332610
330960
 
332611
- //# debugId=5F580C5F4B3495DD64756E2164756E21
330961
+ //# debugId=3541FE5BFE794CF164756E2164756E21