@settlemint/sdk-cli 2.5.1-pr636b12f5 → 2.5.1-pr675e1272

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 +490 -1228
  2. package/dist/cli.js.map +4 -19
  3. package/package.json +8 -8
package/dist/cli.js CHANGED
@@ -232832,16 +232832,16 @@ var init_lru = __esm(() => {
232832
232832
  });
232833
232833
  this.maxSize = size2;
232834
232834
  }
232835
- get(key3) {
232836
- const value4 = super.get(key3);
232837
- if (super.has(key3) && value4 !== undefined) {
232838
- this.delete(key3);
232839
- super.set(key3, value4);
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(key3, value4) {
232844
- super.set(key3, 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, (key3, 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(key3, 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(([key3, value4]) => {
234002
+ const entries = Object.entries(args).map(([key2, value4]) => {
234003
234003
  if (value4 === undefined || value4 === false)
234004
234004
  return null;
234005
- return [key3, value4];
234005
+ return [key2, value4];
234006
234006
  }).filter(Boolean);
234007
- const maxLength = entries.reduce((acc, [key3]) => Math.max(acc, key3.length), 0);
234008
- return entries.map(([key3, value4]) => ` ${`${key3}:`.padEnd(maxLength + 1)} ${value4}`).join(`
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, key3, message) => new HMAC(hash2, key3).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 key3 = 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(key3.length > blockLen ? hash2.create().update(key3).digest() : key3);
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, key3) => new HMAC(hash2, key3);
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(key3, fieldOrder, isLE2 = false) {
235583
- const len = key3.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(key3) : bytesToNumberBE(key3);
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(key3) {
235891
+ function normPrivateKeyToScalar(key2) {
235892
235892
  let num;
235893
- if (typeof key3 === "bigint") {
235894
- num = key3;
235893
+ if (typeof key2 === "bigint") {
235894
+ num = key2;
235895
235895
  } else {
235896
- let bytes = ensureBytes("private key", key3);
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 key3}`);
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 || ((key3, ...msgs) => hmac(ecdsaOpts.hash, key3, 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 key3 of keys) {
237468
- if (key3 in value_)
237469
- value4[key3] = value_[key3];
237470
- if (formatted2[key3] && typeof formatted2[key3] === "object" && !Array.isArray(formatted2[key3]))
237471
- extract_(formatted2[key3]);
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, (key3, value5) => {
237875
+ return JSON.stringify(value4, (key2, value5) => {
237876
237876
  if (typeof replacer === "function")
237877
- return replacer(key3, 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_(key3, node, visitor, path7) {
239301
- const ctrl = callVisitor(key3, 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(key3, path7, ctrl);
239304
- return visit_(key3, 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_(key3, node, visitor, path7) {
239349
- const ctrl = await callVisitor(key3, 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(key3, path7, ctrl);
239352
- return visitAsync_(key3, 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(key3, node, visitor, path7) {
239402
+ function callVisitor(key2, node, visitor, path7) {
239403
239403
  if (typeof visitor === "function")
239404
- return visitor(key3, node, path7);
239404
+ return visitor(key2, node, path7);
239405
239405
  if (identity2.isMap(node))
239406
- return visitor.Map?.(key3, node, path7);
239406
+ return visitor.Map?.(key2, node, path7);
239407
239407
  if (identity2.isSeq(node))
239408
- return visitor.Seq?.(key3, node, path7);
239408
+ return visitor.Seq?.(key2, node, path7);
239409
239409
  if (identity2.isPair(node))
239410
- return visitor.Pair?.(key3, node, path7);
239410
+ return visitor.Pair?.(key2, node, path7);
239411
239411
  if (identity2.isScalar(node))
239412
- return visitor.Scalar?.(key3, node, path7);
239412
+ return visitor.Scalar?.(key2, node, path7);
239413
239413
  if (identity2.isAlias(node))
239414
- return visitor.Alias?.(key3, node, path7);
239414
+ return visitor.Alias?.(key2, node, path7);
239415
239415
  return;
239416
239416
  }
239417
- function replaceNode(key3, 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[key3] = node;
239420
+ parent.items[key2] = node;
239421
239421
  } else if (identity2.isPair(parent)) {
239422
- if (key3 === "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, key3, 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, key3, 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 [key3, ...rest] = path7;
240023
- const node = this.get(key3, 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(key3, 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 ${key3}. 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 [key3, ...rest] = path7;
240033
+ const [key2, ...rest] = path7;
240034
240034
  if (rest.length === 0)
240035
- return this.delete(key3);
240036
- const node = this.get(key3, 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 ${key3}. Remaining path: ${rest}`);
240040
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240041
240041
  }
240042
240042
  getIn(path7, keepScalar) {
240043
- const [key3, ...rest] = path7;
240044
- const node = this.get(key3, 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 [key3, ...rest] = path7;
240059
+ const [key2, ...rest] = path7;
240060
240060
  if (rest.length === 0)
240061
- return this.has(key3);
240062
- const node = this.get(key3, 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 [key3, ...rest] = path7;
240066
+ const [key2, ...rest] = path7;
240067
240067
  if (rest.length === 0) {
240068
- this.set(key3, value4);
240068
+ this.set(key2, value4);
240069
240069
  } else {
240070
- const node = this.get(key3, 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(key3, 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 ${key3}. 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: key3, 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(key3) && key3.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(key3) || !identity2.isNode(key3) && typeof key3 === "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 && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
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(key3, 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, key3) => (merge7.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge7.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
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 [key3, value5] of srcMap) {
240844
+ for (const [key2, value5] of srcMap) {
240845
240845
  if (map7 instanceof Map) {
240846
- if (!map7.has(key3))
240847
- map7.set(key3, value5);
240846
+ if (!map7.has(key2))
240847
+ map7.set(key2, value5);
240848
240848
  } else if (map7 instanceof Set) {
240849
- map7.add(key3);
240850
- } else if (!Object.prototype.hasOwnProperty.call(map7, key3)) {
240851
- Object.defineProperty(map7, key3, {
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: key3, value: value4 }) {
240874
- if (identity2.isNode(key3) && key3.addToJSMap)
240875
- key3.addToJSMap(ctx, map7, value4);
240876
- else if (merge7.isMergeKey(ctx, key3))
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(key3, "", 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(key3, 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(key3, 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(key3) && 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 = key3.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(key3, value4, ctx) {
240934
- const k6 = createNode.createNode(key3, 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(key3, value4 = null) {
240940
+ constructor(key2, value4 = null) {
240941
240941
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
240942
- this.key = key3;
240942
+ this.key = key2;
240943
240943
  this.value = value4;
240944
240944
  }
240945
240945
  clone(schema) {
240946
- let { key: key3, value: value4 } = this;
240947
- if (identity2.isNode(key3))
240948
- key3 = key3.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(key3, 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, key3) {
241119
- const k6 = identity2.isScalar(key3) ? key3.value : key3;
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 === key3 || 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 = (key3, value4) => {
241142
+ const add = (key2, value4) => {
241143
241143
  if (typeof replacer === "function")
241144
- value4 = replacer.call(obj, key3, value4);
241145
- else if (Array.isArray(replacer) && !replacer.includes(key3))
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(key3, value4, ctx));
241148
+ map7.items.push(Pair.createPair(key2, value4, ctx));
241149
241149
  };
241150
241150
  if (obj instanceof Map) {
241151
- for (const [key3, value4] of obj)
241152
- add(key3, value4);
241151
+ for (const [key2, value4] of obj)
241152
+ add(key2, value4);
241153
241153
  } else if (obj && typeof obj === "object") {
241154
- for (const key3 of Object.keys(obj))
241155
- add(key3, obj[key3]);
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(key3) {
241190
- const it2 = findPair(this.items, key3);
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(key3, keepScalar) {
241197
- const it2 = findPair(this.items, key3);
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(key3) {
241202
- return !!findPair(this.items, key3);
241201
+ has(key2) {
241202
+ return !!findPair(this.items, key2);
241203
241203
  }
241204
- set(key3, value4) {
241205
- this.add(new Pair.Pair(key3, 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(key3) {
241277
- const idx = asItemIndex(key3);
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(key3, keepScalar) {
241284
- const idx = asItemIndex(key3);
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(key3) {
241291
- const idx = asItemIndex(key3);
241290
+ has(key2) {
241291
+ const idx = asItemIndex(key2);
241292
241292
  return typeof idx === "number" && idx < this.items.length;
241293
241293
  }
241294
- set(key3, value4) {
241295
- const idx = asItemIndex(key3);
241294
+ set(key2, value4) {
241295
+ const idx = asItemIndex(key2);
241296
241296
  if (typeof idx !== "number")
241297
- throw new Error(`Expected a valid index, not ${key3}.`);
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 key3 = obj instanceof Set ? it2 : String(i7++);
241332
- it2 = replacer.call(obj, key3, 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(key3) {
241341
- let idx = identity2.isScalar(key3) ? key3.value : key3;
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 key3, value4;
241714
+ let key2, value4;
241715
241715
  if (Array.isArray(it2)) {
241716
241716
  if (it2.length === 2) {
241717
- key3 = 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
- key3 = keys[0];
241725
- value4 = it2[key3];
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
- key3 = it2;
241730
+ key2 = it2;
241731
241731
  }
241732
- pairs2.items.push(Pair.createPair(key3, 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 key3, value4;
241773
+ let key2, value4;
241774
241774
  if (identity2.isPair(pair)) {
241775
- key3 = toJS.toJS(pair.key, "", ctx);
241776
- value4 = toJS.toJS(pair.value, key3, ctx);
241775
+ key2 = toJS.toJS(pair.key, "", ctx);
241776
+ value4 = toJS.toJS(pair.value, key2, ctx);
241777
241777
  } else {
241778
- key3 = toJS.toJS(pair, "", ctx);
241778
+ key2 = toJS.toJS(pair, "", ctx);
241779
241779
  }
241780
- if (map7.has(key3))
241780
+ if (map7.has(key2))
241781
241781
  throw new Error("Ordered maps must not include duplicate keys");
241782
- map7.set(key3, 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: key3 } of pairs$1.items) {
241804
- if (identity2.isScalar(key3)) {
241805
- if (seenKeys.includes(key3.value)) {
241806
- onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
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(key3.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(key3) {
241982
+ add(key2) {
241983
241983
  let pair;
241984
- if (identity2.isPair(key3))
241985
- pair = key3;
241986
- else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
241987
- pair = new Pair.Pair(key3.key, null);
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(key3, 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(key3, keepPair) {
241995
- const pair = YAMLMap.findPair(this.items, key3);
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(key3, 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, key3);
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(key3));
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((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).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((key3) => JSON.stringify(key3)).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(key3, value4, options = {}) {
242492
- const k6 = this.createNode(key3, 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(key3) {
242497
- return assertCollection(this.contents) ? this.contents.delete(key3) : 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(key3, keepScalar) {
242509
- return identity2.isCollection(this.contents) ? this.contents.get(key3, 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(key3) {
242517
- return identity2.isCollection(this.contents) ? this.contents.has(key3) : 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(key3, value4) {
242524
+ set(key2, value4) {
242525
242525
  if (this.contents == null) {
242526
- this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
242526
+ this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
242527
242527
  } else if (assertCollection(this.contents)) {
242528
- this.contents.set(key3, 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(key3) {
242811
- if (!key3)
242810
+ function containsNewline(key2) {
242811
+ if (!key2)
242812
242812
  return null;
242813
- switch (key3.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 (key3.source.includes(`
242818
+ if (key2.source.includes(`
242819
242819
  `))
242820
242820
  return true;
242821
- if (key3.end) {
242822
- for (const st2 of key3.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 key3.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: key3, 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: key3 ?? 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 (key3) {
242905
- if (key3.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 key3 && key3.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(key3)) {
242922
- onError(key3 ?? 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 = key3 ? composeNode(ctx, key3, 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, key3, 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: !key3 || key3.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: key3, 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: key3 ?? 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(key3))
243124
- onError(key3, "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 = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
- if (isBlock(key3))
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 errors5 = 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 errors5.YAMLWarning(pos, code2, message));
244032
+ this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
244033
244033
  else
244034
- this.errors.push(new errors5.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 errors5.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 errors5.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 errors5.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 errors5 = 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 errors5.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 key3 of Object.keys(token))
244293
- if (key3 !== "type" && key3 !== "offset")
244294
- delete token[key3];
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 key3 of Object.keys(token))
244344
- if (key3 !== "type" && key3 !== "offset")
244345
- delete token[key3];
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: key3, 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 (key3)
244402
- res += stringifyToken(key3);
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 key3 = 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: key3, 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 errors5 = 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(errors5.prettifyError(source, lineCounter2));
246058
- doc2.warnings.forEach(errors5.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 errors5.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(errors5.prettifyError(source, lineCounter2));
246079
- doc2.warnings.forEach(errors5.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
  }
@@ -265083,7 +265083,7 @@ function pruneCurrentEnv(currentEnv, env2) {
265083
265083
  var package_default = {
265084
265084
  name: "@settlemint/sdk-cli",
265085
265085
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
265086
- version: "2.5.1-pr636b12f5",
265086
+ version: "2.5.1-pr675e1272",
265087
265087
  type: "module",
265088
265088
  private: false,
265089
265089
  license: "FSL-1.1-MIT",
@@ -265130,14 +265130,14 @@ var package_default = {
265130
265130
  devDependencies: {
265131
265131
  "@commander-js/extra-typings": "14.0.0",
265132
265132
  commander: "14.0.0",
265133
- "@inquirer/confirm": "5.1.13",
265133
+ "@inquirer/confirm": "5.1.14",
265134
265134
  "@inquirer/input": "4.2.1",
265135
- "@inquirer/password": "4.0.16",
265136
- "@inquirer/select": "4.2.4",
265137
- "@settlemint/sdk-hasura": "2.5.1-pr636b12f5",
265138
- "@settlemint/sdk-js": "2.5.1-pr636b12f5",
265139
- "@settlemint/sdk-utils": "2.5.1-pr636b12f5",
265140
- "@settlemint/sdk-viem": "2.5.1-pr636b12f5",
265135
+ "@inquirer/password": "4.0.17",
265136
+ "@inquirer/select": "4.3.0",
265137
+ "@settlemint/sdk-hasura": "2.5.1-pr675e1272",
265138
+ "@settlemint/sdk-js": "2.5.1-pr675e1272",
265139
+ "@settlemint/sdk-utils": "2.5.1-pr675e1272",
265140
+ "@settlemint/sdk-viem": "2.5.1-pr675e1272",
265141
265141
  "@types/node": "24.0.15",
265142
265142
  "@types/semver": "7.7.0",
265143
265143
  "@types/which": "3.0.4",
@@ -303259,768 +303259,23 @@ function sanitizeName(value4, length = 35) {
303259
303259
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
303260
303260
  }
303261
303261
 
303262
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
303263
- var isBackspaceKey2 = (key2) => key2.name === "backspace";
303264
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
303265
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
303266
- class AbortPromptError2 extends Error {
303267
- name = "AbortPromptError";
303268
- message = "Prompt was aborted";
303269
- constructor(options) {
303270
- super();
303271
- this.cause = options?.cause;
303272
- }
303273
- }
303274
-
303275
- class CancelPromptError2 extends Error {
303276
- name = "CancelPromptError";
303277
- message = "Prompt was canceled";
303278
- }
303279
-
303280
- class ExitPromptError2 extends Error {
303281
- name = "ExitPromptError";
303282
- }
303283
-
303284
- class HookError2 extends Error {
303285
- name = "HookError";
303286
- }
303287
-
303288
- class ValidationError2 extends Error {
303289
- name = "ValidationError";
303290
- }
303291
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
303292
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
303293
-
303294
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
303295
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
303296
- var hookStorage2 = new AsyncLocalStorage2;
303297
- function createStore2(rl) {
303298
- const store = {
303299
- rl,
303300
- hooks: [],
303301
- hooksCleanup: [],
303302
- hooksEffect: [],
303303
- index: 0,
303304
- handleChange() {}
303305
- };
303306
- return store;
303307
- }
303308
- function withHooks2(rl, cb) {
303309
- const store = createStore2(rl);
303310
- return hookStorage2.run(store, () => {
303311
- function cycle(render) {
303312
- store.handleChange = () => {
303313
- store.index = 0;
303314
- render();
303315
- };
303316
- store.handleChange();
303317
- }
303318
- return cb(cycle);
303319
- });
303320
- }
303321
- function getStore2() {
303322
- const store = hookStorage2.getStore();
303323
- if (!store) {
303324
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
303325
- }
303326
- return store;
303327
- }
303328
- function readline3() {
303329
- return getStore2().rl;
303330
- }
303331
- function withUpdates2(fn) {
303332
- const wrapped = (...args) => {
303333
- const store = getStore2();
303334
- let shouldUpdate = false;
303335
- const oldHandleChange = store.handleChange;
303336
- store.handleChange = () => {
303337
- shouldUpdate = true;
303338
- };
303339
- const returnValue = fn(...args);
303340
- if (shouldUpdate) {
303341
- oldHandleChange();
303342
- }
303343
- store.handleChange = oldHandleChange;
303344
- return returnValue;
303345
- };
303346
- return AsyncResource4.bind(wrapped);
303347
- }
303348
- function withPointer2(cb) {
303349
- const store = getStore2();
303350
- const { index } = store;
303351
- const pointer = {
303352
- get() {
303353
- return store.hooks[index];
303354
- },
303355
- set(value4) {
303356
- store.hooks[index] = value4;
303357
- },
303358
- initialized: index in store.hooks
303359
- };
303360
- const returnValue = cb(pointer);
303361
- store.index++;
303362
- return returnValue;
303363
- }
303364
- function handleChange2() {
303365
- getStore2().handleChange();
303366
- }
303367
- var effectScheduler2 = {
303368
- queue(cb) {
303369
- const store = getStore2();
303370
- const { index } = store;
303371
- store.hooksEffect.push(() => {
303372
- store.hooksCleanup[index]?.();
303373
- const cleanFn = cb(readline3());
303374
- if (cleanFn != null && typeof cleanFn !== "function") {
303375
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
303376
- }
303377
- store.hooksCleanup[index] = cleanFn;
303378
- });
303379
- },
303380
- run() {
303381
- const store = getStore2();
303382
- withUpdates2(() => {
303383
- store.hooksEffect.forEach((effect) => {
303384
- effect();
303385
- });
303386
- store.hooksEffect.length = 0;
303387
- })();
303388
- },
303389
- clearAll() {
303390
- const store = getStore2();
303391
- store.hooksCleanup.forEach((cleanFn) => {
303392
- cleanFn?.();
303393
- });
303394
- store.hooksEffect.length = 0;
303395
- store.hooksCleanup.length = 0;
303396
- }
303397
- };
303398
-
303399
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
303400
- function useState2(defaultValue) {
303401
- return withPointer2((pointer) => {
303402
- const setState = AsyncResource5.bind(function setState(newValue) {
303403
- if (pointer.get() !== newValue) {
303404
- pointer.set(newValue);
303405
- handleChange2();
303406
- }
303407
- });
303408
- if (pointer.initialized) {
303409
- return [pointer.get(), setState];
303410
- }
303411
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
303412
- pointer.set(value4);
303413
- return [value4, setState];
303414
- });
303415
- }
303416
-
303417
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
303418
- function useEffect2(cb, depArray) {
303419
- withPointer2((pointer) => {
303420
- const oldDeps = pointer.get();
303421
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
303422
- if (hasChanged) {
303423
- effectScheduler2.queue(cb);
303424
- }
303425
- pointer.set(depArray);
303426
- });
303427
- }
303428
-
303429
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
303430
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
303431
-
303432
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
303433
- import process8 from "node:process";
303434
- function isUnicodeSupported3() {
303435
- if (process8.platform !== "win32") {
303436
- return process8.env["TERM"] !== "linux";
303437
- }
303438
- 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";
303439
- }
303440
- var common2 = {
303441
- circleQuestionMark: "(?)",
303442
- questionMarkPrefix: "(?)",
303443
- square: "█",
303444
- squareDarkShade: "▓",
303445
- squareMediumShade: "▒",
303446
- squareLightShade: "░",
303447
- squareTop: "▀",
303448
- squareBottom: "▄",
303449
- squareLeft: "▌",
303450
- squareRight: "▐",
303451
- squareCenter: "■",
303452
- bullet: "●",
303453
- dot: "․",
303454
- ellipsis: "…",
303455
- pointerSmall: "›",
303456
- triangleUp: "▲",
303457
- triangleUpSmall: "▴",
303458
- triangleDown: "▼",
303459
- triangleDownSmall: "▾",
303460
- triangleLeftSmall: "◂",
303461
- triangleRightSmall: "▸",
303462
- home: "⌂",
303463
- heart: "♥",
303464
- musicNote: "♪",
303465
- musicNoteBeamed: "♫",
303466
- arrowUp: "↑",
303467
- arrowDown: "↓",
303468
- arrowLeft: "←",
303469
- arrowRight: "→",
303470
- arrowLeftRight: "↔",
303471
- arrowUpDown: "↕",
303472
- almostEqual: "≈",
303473
- notEqual: "≠",
303474
- lessOrEqual: "≤",
303475
- greaterOrEqual: "≥",
303476
- identical: "≡",
303477
- infinity: "∞",
303478
- subscriptZero: "₀",
303479
- subscriptOne: "₁",
303480
- subscriptTwo: "₂",
303481
- subscriptThree: "₃",
303482
- subscriptFour: "₄",
303483
- subscriptFive: "₅",
303484
- subscriptSix: "₆",
303485
- subscriptSeven: "₇",
303486
- subscriptEight: "₈",
303487
- subscriptNine: "₉",
303488
- oneHalf: "½",
303489
- oneThird: "⅓",
303490
- oneQuarter: "¼",
303491
- oneFifth: "⅕",
303492
- oneSixth: "⅙",
303493
- oneEighth: "⅛",
303494
- twoThirds: "⅔",
303495
- twoFifths: "⅖",
303496
- threeQuarters: "¾",
303497
- threeFifths: "⅗",
303498
- threeEighths: "⅜",
303499
- fourFifths: "⅘",
303500
- fiveSixths: "⅚",
303501
- fiveEighths: "⅝",
303502
- sevenEighths: "⅞",
303503
- line: "─",
303504
- lineBold: "━",
303505
- lineDouble: "═",
303506
- lineDashed0: "┄",
303507
- lineDashed1: "┅",
303508
- lineDashed2: "┈",
303509
- lineDashed3: "┉",
303510
- lineDashed4: "╌",
303511
- lineDashed5: "╍",
303512
- lineDashed6: "╴",
303513
- lineDashed7: "╶",
303514
- lineDashed8: "╸",
303515
- lineDashed9: "╺",
303516
- lineDashed10: "╼",
303517
- lineDashed11: "╾",
303518
- lineDashed12: "−",
303519
- lineDashed13: "–",
303520
- lineDashed14: "‐",
303521
- lineDashed15: "⁃",
303522
- lineVertical: "│",
303523
- lineVerticalBold: "┃",
303524
- lineVerticalDouble: "║",
303525
- lineVerticalDashed0: "┆",
303526
- lineVerticalDashed1: "┇",
303527
- lineVerticalDashed2: "┊",
303528
- lineVerticalDashed3: "┋",
303529
- lineVerticalDashed4: "╎",
303530
- lineVerticalDashed5: "╏",
303531
- lineVerticalDashed6: "╵",
303532
- lineVerticalDashed7: "╷",
303533
- lineVerticalDashed8: "╹",
303534
- lineVerticalDashed9: "╻",
303535
- lineVerticalDashed10: "╽",
303536
- lineVerticalDashed11: "╿",
303537
- lineDownLeft: "┐",
303538
- lineDownLeftArc: "╮",
303539
- lineDownBoldLeftBold: "┓",
303540
- lineDownBoldLeft: "┒",
303541
- lineDownLeftBold: "┑",
303542
- lineDownDoubleLeftDouble: "╗",
303543
- lineDownDoubleLeft: "╖",
303544
- lineDownLeftDouble: "╕",
303545
- lineDownRight: "┌",
303546
- lineDownRightArc: "╭",
303547
- lineDownBoldRightBold: "┏",
303548
- lineDownBoldRight: "┎",
303549
- lineDownRightBold: "┍",
303550
- lineDownDoubleRightDouble: "╔",
303551
- lineDownDoubleRight: "╓",
303552
- lineDownRightDouble: "╒",
303553
- lineUpLeft: "┘",
303554
- lineUpLeftArc: "╯",
303555
- lineUpBoldLeftBold: "┛",
303556
- lineUpBoldLeft: "┚",
303557
- lineUpLeftBold: "┙",
303558
- lineUpDoubleLeftDouble: "╝",
303559
- lineUpDoubleLeft: "╜",
303560
- lineUpLeftDouble: "╛",
303561
- lineUpRight: "└",
303562
- lineUpRightArc: "╰",
303563
- lineUpBoldRightBold: "┗",
303564
- lineUpBoldRight: "┖",
303565
- lineUpRightBold: "┕",
303566
- lineUpDoubleRightDouble: "╚",
303567
- lineUpDoubleRight: "╙",
303568
- lineUpRightDouble: "╘",
303569
- lineUpDownLeft: "┤",
303570
- lineUpBoldDownBoldLeftBold: "┫",
303571
- lineUpBoldDownBoldLeft: "┨",
303572
- lineUpDownLeftBold: "┥",
303573
- lineUpBoldDownLeftBold: "┩",
303574
- lineUpDownBoldLeftBold: "┪",
303575
- lineUpDownBoldLeft: "┧",
303576
- lineUpBoldDownLeft: "┦",
303577
- lineUpDoubleDownDoubleLeftDouble: "╣",
303578
- lineUpDoubleDownDoubleLeft: "╢",
303579
- lineUpDownLeftDouble: "╡",
303580
- lineUpDownRight: "├",
303581
- lineUpBoldDownBoldRightBold: "┣",
303582
- lineUpBoldDownBoldRight: "┠",
303583
- lineUpDownRightBold: "┝",
303584
- lineUpBoldDownRightBold: "┡",
303585
- lineUpDownBoldRightBold: "┢",
303586
- lineUpDownBoldRight: "┟",
303587
- lineUpBoldDownRight: "┞",
303588
- lineUpDoubleDownDoubleRightDouble: "╠",
303589
- lineUpDoubleDownDoubleRight: "╟",
303590
- lineUpDownRightDouble: "╞",
303591
- lineDownLeftRight: "┬",
303592
- lineDownBoldLeftBoldRightBold: "┳",
303593
- lineDownLeftBoldRightBold: "┯",
303594
- lineDownBoldLeftRight: "┰",
303595
- lineDownBoldLeftBoldRight: "┱",
303596
- lineDownBoldLeftRightBold: "┲",
303597
- lineDownLeftRightBold: "┮",
303598
- lineDownLeftBoldRight: "┭",
303599
- lineDownDoubleLeftDoubleRightDouble: "╦",
303600
- lineDownDoubleLeftRight: "╥",
303601
- lineDownLeftDoubleRightDouble: "╤",
303602
- lineUpLeftRight: "┴",
303603
- lineUpBoldLeftBoldRightBold: "┻",
303604
- lineUpLeftBoldRightBold: "┷",
303605
- lineUpBoldLeftRight: "┸",
303606
- lineUpBoldLeftBoldRight: "┹",
303607
- lineUpBoldLeftRightBold: "┺",
303608
- lineUpLeftRightBold: "┶",
303609
- lineUpLeftBoldRight: "┵",
303610
- lineUpDoubleLeftDoubleRightDouble: "╩",
303611
- lineUpDoubleLeftRight: "╨",
303612
- lineUpLeftDoubleRightDouble: "╧",
303613
- lineUpDownLeftRight: "┼",
303614
- lineUpBoldDownBoldLeftBoldRightBold: "╋",
303615
- lineUpDownBoldLeftBoldRightBold: "╈",
303616
- lineUpBoldDownLeftBoldRightBold: "╇",
303617
- lineUpBoldDownBoldLeftRightBold: "╊",
303618
- lineUpBoldDownBoldLeftBoldRight: "╉",
303619
- lineUpBoldDownLeftRight: "╀",
303620
- lineUpDownBoldLeftRight: "╁",
303621
- lineUpDownLeftBoldRight: "┽",
303622
- lineUpDownLeftRightBold: "┾",
303623
- lineUpBoldDownBoldLeftRight: "╂",
303624
- lineUpDownLeftBoldRightBold: "┿",
303625
- lineUpBoldDownLeftBoldRight: "╃",
303626
- lineUpBoldDownLeftRightBold: "╄",
303627
- lineUpDownBoldLeftBoldRight: "╅",
303628
- lineUpDownBoldLeftRightBold: "╆",
303629
- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
303630
- lineUpDoubleDownDoubleLeftRight: "╫",
303631
- lineUpDownLeftDoubleRightDouble: "╪",
303632
- lineCross: "╳",
303633
- lineBackslash: "╲",
303634
- lineSlash: "╱"
303635
- };
303636
- var specialMainSymbols2 = {
303637
- tick: "✔",
303638
- info: "ℹ",
303639
- warning: "⚠",
303640
- cross: "✘",
303641
- squareSmall: "◻",
303642
- squareSmallFilled: "◼",
303643
- circle: "◯",
303644
- circleFilled: "◉",
303645
- circleDotted: "◌",
303646
- circleDouble: "◎",
303647
- circleCircle: "ⓞ",
303648
- circleCross: "ⓧ",
303649
- circlePipe: "Ⓘ",
303650
- radioOn: "◉",
303651
- radioOff: "◯",
303652
- checkboxOn: "☒",
303653
- checkboxOff: "☐",
303654
- checkboxCircleOn: "ⓧ",
303655
- checkboxCircleOff: "Ⓘ",
303656
- pointer: "❯",
303657
- triangleUpOutline: "△",
303658
- triangleLeft: "◀",
303659
- triangleRight: "▶",
303660
- lozenge: "◆",
303661
- lozengeOutline: "◇",
303662
- hamburger: "☰",
303663
- smiley: "㋡",
303664
- mustache: "෴",
303665
- star: "★",
303666
- play: "▶",
303667
- nodejs: "⬢",
303668
- oneSeventh: "⅐",
303669
- oneNinth: "⅑",
303670
- oneTenth: "⅒"
303671
- };
303672
- var specialFallbackSymbols2 = {
303673
- tick: "√",
303674
- info: "i",
303675
- warning: "‼",
303676
- cross: "×",
303677
- squareSmall: "□",
303678
- squareSmallFilled: "■",
303679
- circle: "( )",
303680
- circleFilled: "(*)",
303681
- circleDotted: "( )",
303682
- circleDouble: "( )",
303683
- circleCircle: "(○)",
303684
- circleCross: "(×)",
303685
- circlePipe: "(│)",
303686
- radioOn: "(*)",
303687
- radioOff: "( )",
303688
- checkboxOn: "[×]",
303689
- checkboxOff: "[ ]",
303690
- checkboxCircleOn: "(×)",
303691
- checkboxCircleOff: "( )",
303692
- pointer: ">",
303693
- triangleUpOutline: "∆",
303694
- triangleLeft: "◄",
303695
- triangleRight: "►",
303696
- lozenge: "♦",
303697
- lozengeOutline: "◊",
303698
- hamburger: "≡",
303699
- smiley: "☺",
303700
- mustache: "┌─┐",
303701
- star: "✶",
303702
- play: "►",
303703
- nodejs: "♦",
303704
- oneSeventh: "1/7",
303705
- oneNinth: "1/9",
303706
- oneTenth: "1/10"
303707
- };
303708
- var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
303709
- var fallbackSymbols2 = {
303710
- ...common2,
303711
- ...specialFallbackSymbols2
303712
- };
303713
- var shouldUseMain2 = isUnicodeSupported3();
303714
- var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
303715
- var esm_default2 = figures2;
303716
- var replacements2 = Object.entries(specialMainSymbols2);
303717
-
303718
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
303719
- var defaultTheme2 = {
303720
- prefix: {
303721
- idle: import_yoctocolors_cjs3.default.blue("?"),
303722
- done: import_yoctocolors_cjs3.default.green(esm_default2.tick)
303723
- },
303724
- spinner: {
303725
- interval: 80,
303726
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
303727
- },
303728
- style: {
303729
- answer: import_yoctocolors_cjs3.default.cyan,
303730
- message: import_yoctocolors_cjs3.default.bold,
303731
- error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
303732
- defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
303733
- help: import_yoctocolors_cjs3.default.dim,
303734
- highlight: import_yoctocolors_cjs3.default.cyan,
303735
- key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
303736
- }
303737
- };
303738
-
303739
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
303740
- function isPlainObject6(value4) {
303741
- if (typeof value4 !== "object" || value4 === null)
303742
- return false;
303743
- let proto = value4;
303744
- while (Object.getPrototypeOf(proto) !== null) {
303745
- proto = Object.getPrototypeOf(proto);
303746
- }
303747
- return Object.getPrototypeOf(value4) === proto;
303748
- }
303749
- function deepMerge3(...objects) {
303750
- const output = {};
303751
- for (const obj of objects) {
303752
- for (const [key2, value4] of Object.entries(obj)) {
303753
- const prevValue = output[key2];
303754
- output[key2] = isPlainObject6(prevValue) && isPlainObject6(value4) ? deepMerge3(prevValue, value4) : value4;
303755
- }
303756
- }
303757
- return output;
303758
- }
303759
- function makeTheme2(...themes) {
303760
- const themesToMerge = [
303761
- defaultTheme2,
303762
- ...themes.filter((theme) => theme != null)
303763
- ];
303764
- return deepMerge3(...themesToMerge);
303765
- }
303766
-
303767
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
303768
- function usePrefix2({ status = "idle", theme }) {
303769
- const [showLoader, setShowLoader] = useState2(false);
303770
- const [tick, setTick] = useState2(0);
303771
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
303772
- useEffect2(() => {
303773
- if (status === "loading") {
303774
- let tickInterval;
303775
- let inc = -1;
303776
- const delayTimeout = setTimeout(() => {
303777
- setShowLoader(true);
303778
- tickInterval = setInterval(() => {
303779
- inc = inc + 1;
303780
- setTick(inc % spinner2.frames.length);
303781
- }, spinner2.interval);
303782
- }, 300);
303783
- return () => {
303784
- clearTimeout(delayTimeout);
303785
- clearInterval(tickInterval);
303786
- };
303787
- } else {
303788
- setShowLoader(false);
303789
- }
303790
- }, [status]);
303791
- if (showLoader) {
303792
- return spinner2.frames[tick];
303793
- }
303794
- const iconName = status === "loading" ? "idle" : status;
303795
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
303796
- }
303797
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
303798
- function useRef2(val) {
303799
- return useState2({ current: val })[0];
303800
- }
303801
-
303802
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
303803
- function useKeypress2(userHandler) {
303804
- const signal = useRef2(userHandler);
303805
- signal.current = userHandler;
303806
- useEffect2((rl) => {
303807
- let ignore = false;
303808
- const handler = withUpdates2((_input, event) => {
303809
- if (ignore)
303810
- return;
303811
- signal.current(event, rl);
303812
- });
303813
- rl.input.on("keypress", handler);
303814
- return () => {
303815
- ignore = true;
303816
- rl.input.removeListener("keypress", handler);
303817
- };
303818
- }, []);
303819
- }
303820
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
303821
- var import_cli_width2 = __toESM(require_cli_width(), 1);
303822
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
303823
- function breakLines2(content, width) {
303824
- return content.split(`
303825
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
303826
- `).map((str) => str.trimEnd())).join(`
303827
- `);
303828
- }
303829
- function readlineWidth2() {
303830
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
303831
- }
303832
-
303833
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
303834
- var import_mute_stream2 = __toESM(require_lib(), 1);
303835
- import * as readline4 from "node:readline";
303836
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
303837
-
303838
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
303839
- var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
303840
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
303841
- var height2 = (content) => content.split(`
303842
- `).length;
303843
- var lastLine2 = (content) => content.split(`
303844
- `).pop() ?? "";
303845
- function cursorDown2(n6) {
303846
- return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
303847
- }
303848
-
303849
- class ScreenManager2 {
303850
- height = 0;
303851
- extraLinesUnderPrompt = 0;
303852
- cursorPos;
303853
- rl;
303854
- constructor(rl) {
303855
- this.rl = rl;
303856
- this.cursorPos = rl.getCursorPos();
303857
- }
303858
- write(content) {
303859
- this.rl.output.unmute();
303860
- this.rl.output.write(content);
303861
- this.rl.output.mute();
303862
- }
303863
- render(content, bottomContent = "") {
303864
- const promptLine = lastLine2(content);
303865
- const rawPromptLine = stripVTControlCharacters3(promptLine);
303866
- let prompt = rawPromptLine;
303867
- if (this.rl.line.length > 0) {
303868
- prompt = prompt.slice(0, -this.rl.line.length);
303869
- }
303870
- this.rl.setPrompt(prompt);
303871
- this.cursorPos = this.rl.getCursorPos();
303872
- const width = readlineWidth2();
303873
- content = breakLines2(content, width);
303874
- bottomContent = breakLines2(bottomContent, width);
303875
- if (rawPromptLine.length % width === 0) {
303876
- content += `
303877
- `;
303878
- }
303879
- let output = content + (bottomContent ? `
303880
- ` + bottomContent : "");
303881
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
303882
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
303883
- if (bottomContentHeight > 0)
303884
- output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
303885
- output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
303886
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
303887
- this.extraLinesUnderPrompt = bottomContentHeight;
303888
- this.height = height2(output);
303889
- }
303890
- checkCursorPos() {
303891
- const cursorPos = this.rl.getCursorPos();
303892
- if (cursorPos.cols !== this.cursorPos.cols) {
303893
- this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
303894
- this.cursorPos = cursorPos;
303895
- }
303896
- }
303897
- done({ clearContent }) {
303898
- this.rl.setPrompt("");
303899
- let output = cursorDown2(this.extraLinesUnderPrompt);
303900
- output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
303901
- `;
303902
- output += import_ansi_escapes2.default.cursorShow;
303903
- this.write(output);
303904
- this.rl.close();
303905
- }
303906
- }
303907
-
303908
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
303909
- class PromisePolyfill2 extends Promise {
303910
- static withResolver() {
303911
- let resolve5;
303912
- let reject;
303913
- const promise4 = new Promise((res, rej) => {
303914
- resolve5 = res;
303915
- reject = rej;
303916
- });
303917
- return { promise: promise4, resolve: resolve5, reject };
303918
- }
303919
- }
303920
-
303921
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
303922
- function getCallSites2() {
303923
- const _prepareStackTrace = Error.prepareStackTrace;
303924
- let result = [];
303925
- try {
303926
- Error.prepareStackTrace = (_5, callSites) => {
303927
- const callSitesWithoutCurrent = callSites.slice(1);
303928
- result = callSitesWithoutCurrent;
303929
- return callSitesWithoutCurrent;
303930
- };
303931
- new Error().stack;
303932
- } catch {
303933
- return result;
303934
- }
303935
- Error.prepareStackTrace = _prepareStackTrace;
303936
- return result;
303937
- }
303938
- function createPrompt2(view) {
303939
- const callSites = getCallSites2();
303940
- const prompt = (config4, context = {}) => {
303941
- const { input = process.stdin, signal } = context;
303942
- const cleanups = new Set;
303943
- const output = new import_mute_stream2.default;
303944
- output.pipe(context.output ?? process.stdout);
303945
- const rl = readline4.createInterface({
303946
- terminal: true,
303947
- input,
303948
- output
303949
- });
303950
- const screen = new ScreenManager2(rl);
303951
- const { promise: promise4, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
303952
- const cancel3 = () => reject(new CancelPromptError2);
303953
- if (signal) {
303954
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
303955
- if (signal.aborted) {
303956
- abort();
303957
- return Object.assign(promise4, { cancel: cancel3 });
303958
- }
303959
- signal.addEventListener("abort", abort);
303960
- cleanups.add(() => signal.removeEventListener("abort", abort));
303961
- }
303962
- cleanups.add(onExit((code2, signal2) => {
303963
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
303964
- }));
303965
- const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
303966
- rl.on("SIGINT", sigint);
303967
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
303968
- const checkCursorPos = () => screen.checkCursorPos();
303969
- rl.input.on("keypress", checkCursorPos);
303970
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
303971
- return withHooks2(rl, (cycle) => {
303972
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
303973
- rl.on("close", hooksCleanup);
303974
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
303975
- cycle(() => {
303976
- try {
303977
- const nextView = view(config4, (value4) => {
303978
- setImmediate(() => resolve5(value4));
303979
- });
303980
- if (nextView === undefined) {
303981
- const callerFilename = callSites[1]?.getFileName();
303982
- throw new Error(`Prompt functions must return a string.
303983
- at ${callerFilename}`);
303984
- }
303985
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
303986
- screen.render(content, bottomContent);
303987
- effectScheduler2.run();
303988
- } catch (error44) {
303989
- reject(error44);
303990
- }
303991
- });
303992
- return Object.assign(promise4.then((answer) => {
303993
- effectScheduler2.clearAll();
303994
- return answer;
303995
- }, (error44) => {
303996
- effectScheduler2.clearAll();
303997
- throw error44;
303998
- }).finally(() => {
303999
- cleanups.forEach((cleanup) => cleanup());
304000
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
304001
- output.end();
304002
- }).then(() => promise4), { cancel: cancel3 });
304003
- });
304004
- };
304005
- return prompt;
304006
- }
304007
303262
  // ../../node_modules/@inquirer/input/dist/esm/index.js
304008
303263
  var inputTheme = {
304009
303264
  validationFailureMode: "keep"
304010
303265
  };
304011
- var esm_default3 = createPrompt2((config4, done) => {
303266
+ var esm_default2 = createPrompt((config4, done) => {
304012
303267
  const { required: required4, validate: validate3 = () => true, prefill = "tab" } = config4;
304013
- const theme = makeTheme2(inputTheme, config4.theme);
304014
- const [status, setStatus] = useState2("idle");
304015
- const [defaultValue = "", setDefaultValue] = useState2(config4.default);
304016
- const [errorMsg, setError] = useState2();
304017
- const [value4, setValue] = useState2("");
304018
- const prefix = usePrefix2({ status, theme });
304019
- 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) => {
304020
303275
  if (status !== "idle") {
304021
303276
  return;
304022
303277
  }
304023
- if (isEnterKey2(key3)) {
303278
+ if (isEnterKey(key2)) {
304024
303279
  const answer = value4 || defaultValue;
304025
303280
  setStatus("loading");
304026
303281
  const isValid = required4 && !answer ? "You must provide a value" : await validate3(answer);
@@ -304037,9 +303292,9 @@ var esm_default3 = createPrompt2((config4, done) => {
304037
303292
  setError(isValid || "You must provide a valid value");
304038
303293
  setStatus("idle");
304039
303294
  }
304040
- } else if (isBackspaceKey2(key3) && !value4) {
303295
+ } else if (isBackspaceKey(key2) && !value4) {
304041
303296
  setDefaultValue(undefined);
304042
- } else if (key3.name === "tab" && !value4) {
303297
+ } else if (key2.name === "tab" && !value4) {
304043
303298
  setDefaultValue(undefined);
304044
303299
  rl.clearLine(0);
304045
303300
  rl.write(defaultValue);
@@ -304049,7 +303304,7 @@ var esm_default3 = createPrompt2((config4, done) => {
304049
303304
  setError(undefined);
304050
303305
  }
304051
303306
  });
304052
- useEffect2((rl) => {
303307
+ useEffect((rl) => {
304053
303308
  if (prefill === "editable" && defaultValue) {
304054
303309
  rl.write(defaultValue);
304055
303310
  setValue(defaultValue);
@@ -304086,7 +303341,7 @@ async function subgraphNamePrompt({
304086
303341
  if (accept) {
304087
303342
  return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
304088
303343
  }
304089
- const subgraphName = await esm_default3({
303344
+ const subgraphName = await esm_default2({
304090
303345
  message: "What is the name of your subgraph?",
304091
303346
  default: defaultSubgraphName,
304092
303347
  required: true
@@ -304095,13 +303350,13 @@ async function subgraphNamePrompt({
304095
303350
  }
304096
303351
 
304097
303352
  // ../../node_modules/@inquirer/select/dist/esm/index.js
304098
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
304099
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
303353
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
303354
+ var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
304100
303355
  var selectTheme = {
304101
303356
  icon: { cursor: esm_default.pointer },
304102
303357
  style: {
304103
- disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
304104
- description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
303358
+ disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
303359
+ description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
304105
303360
  },
304106
303361
  helpMode: "auto",
304107
303362
  indexMode: "hidden"
@@ -304134,7 +303389,7 @@ function normalizeChoices(choices) {
304134
303389
  return normalizedChoice;
304135
303390
  });
304136
303391
  }
304137
- var esm_default4 = createPrompt((config4, done) => {
303392
+ var esm_default3 = createPrompt((config4, done) => {
304138
303393
  const { loop = true, pageSize = 7 } = config4;
304139
303394
  const firstRender = useRef(true);
304140
303395
  const theme = makeTheme(selectTheme, config4.theme);
@@ -304157,23 +303412,30 @@ var esm_default4 = createPrompt((config4, done) => {
304157
303412
  }, [config4.default, items]);
304158
303413
  const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
304159
303414
  const selectedChoice = items[active];
304160
- useKeypress((key3, rl) => {
303415
+ useKeypress((key2, rl) => {
304161
303416
  clearTimeout(searchTimeoutRef.current);
304162
- if (isEnterKey(key3)) {
303417
+ if (isEnterKey(key2)) {
304163
303418
  setStatus("done");
304164
303419
  done(selectedChoice.value);
304165
- } else if (isUpKey(key3) || isDownKey(key3)) {
303420
+ } else if (isUpKey(key2) || isDownKey(key2)) {
304166
303421
  rl.clearLine(0);
304167
- if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
304168
- const offset = isUpKey(key3) ? -1 : 1;
303422
+ if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
303423
+ const offset = isUpKey(key2) ? -1 : 1;
304169
303424
  let next = active;
304170
303425
  do {
304171
303426
  next = (next + offset + items.length) % items.length;
304172
303427
  } while (!isSelectable(items[next]));
304173
303428
  setActive(next);
304174
303429
  }
304175
- } else if (isNumberKey(key3) && !Number.isNaN(Number(rl.line))) {
304176
- 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
+ });
304177
303439
  const item = items[position];
304178
303440
  if (item != null && isSelectable(item)) {
304179
303441
  setActive(position);
@@ -304181,7 +303443,7 @@ var esm_default4 = createPrompt((config4, done) => {
304181
303443
  searchTimeoutRef.current = setTimeout(() => {
304182
303444
  rl.clearLine(0);
304183
303445
  }, 700);
304184
- } else if (isBackspaceKey(key3)) {
303446
+ } else if (isBackspaceKey(key2)) {
304185
303447
  rl.clearLine(0);
304186
303448
  } else {
304187
303449
  const searchTerm = rl.line.toLowerCase();
@@ -304238,7 +303500,7 @@ ${theme.style.help(`(${config4.instructions?.pager ?? "Use arrow keys to reveal
304238
303500
  const choiceDescription = selectedChoice.description ? `
304239
303501
  ${theme.style.description(selectedChoice.description)}` : ``;
304240
303502
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
304241
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes3.default.cursorHide}`;
303503
+ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursorHide}`;
304242
303504
  });
304243
303505
 
304244
303506
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -304292,7 +303554,7 @@ async function subgraphPrompt({
304292
303554
  } else {
304293
303555
  defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
304294
303556
  }
304295
- 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({
304296
303558
  message,
304297
303559
  choices: choices.map((name3) => ({
304298
303560
  name: name3,
@@ -305822,14 +305084,14 @@ function includesArgs(parameters) {
305822
305084
  });
305823
305085
  }
305824
305086
  if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
305825
- return Object.entries(matchArgs).every(([key3, value4]) => {
305087
+ return Object.entries(matchArgs).every(([key2, value4]) => {
305826
305088
  if (value4 === null || value4 === undefined)
305827
305089
  return true;
305828
- const input = inputs.find((input2) => input2.name === key3);
305090
+ const input = inputs.find((input2) => input2.name === key2);
305829
305091
  if (!input)
305830
305092
  return false;
305831
305093
  const value_ = Array.isArray(value4) ? value4 : [value4];
305832
- return value_.some((value5) => isEqual(input, value5, args[key3]));
305094
+ return value_.some((value5) => isEqual(input, value5, args[key2]));
305833
305095
  });
305834
305096
  return false;
305835
305097
  }
@@ -306028,13 +305290,13 @@ function observe(observerId, callbacks, fn) {
306028
305290
  if (listeners && listeners.length > 0)
306029
305291
  return unwatch;
306030
305292
  const emit = {};
306031
- for (const key3 in callbacks) {
306032
- emit[key3] = (...args) => {
305293
+ for (const key2 in callbacks) {
305294
+ emit[key2] = (...args) => {
306033
305295
  const listeners2 = getListeners();
306034
305296
  if (listeners2.length === 0)
306035
305297
  return;
306036
305298
  for (const listener of listeners2)
306037
- listener.fns[key3]?.(...args);
305299
+ listener.fns[key2]?.(...args);
306038
305300
  };
306039
305301
  }
306040
305302
  const cleanup = fn(emit);
@@ -306373,7 +305635,7 @@ function uid(length = 11) {
306373
305635
 
306374
305636
  // ../../node_modules/viem/_esm/clients/createClient.js
306375
305637
  function createClient(parameters) {
306376
- const { batch, chain, ccipRead, key: key3 = "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;
306377
305639
  const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
306378
305640
  const blockTime = chain?.blockTime ?? 12000;
306379
305641
  const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
@@ -306391,7 +305653,7 @@ function createClient(parameters) {
306391
305653
  cacheTime,
306392
305654
  ccipRead,
306393
305655
  chain,
306394
- key: key3,
305656
+ key: key2,
306395
305657
  name: name3,
306396
305658
  pollingInterval,
306397
305659
  request: request2,
@@ -306403,8 +305665,8 @@ function createClient(parameters) {
306403
305665
  function extend4(base2) {
306404
305666
  return (extendFn) => {
306405
305667
  const extended = extendFn(base2);
306406
- for (const key4 in client)
306407
- delete extended[key4];
305668
+ for (const key3 in client)
305669
+ delete extended[key3];
306408
305670
  const combined = { ...base2, ...extended };
306409
305671
  return Object.assign(combined, { extend: extend4(combined) });
306410
305672
  };
@@ -306584,11 +305846,11 @@ function shouldRetry(error44) {
306584
305846
  }
306585
305847
 
306586
305848
  // ../../node_modules/viem/_esm/clients/transports/createTransport.js
306587
- function createTransport({ key: key3, 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) {
306588
305850
  const uid2 = uid();
306589
305851
  return {
306590
305852
  config: {
306591
- key: key3,
305853
+ key: key2,
306592
305854
  methods,
306593
305855
  name: name3,
306594
305856
  request: request2,
@@ -306745,7 +306007,7 @@ function getHttpRpcClient(url4, options = {}) {
306745
306007
 
306746
306008
  // ../../node_modules/viem/_esm/clients/transports/http.js
306747
306009
  function http(url4, config4 = {}) {
306748
- const { batch, fetchOptions, key: key3 = "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;
306749
306011
  return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
306750
306012
  const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
306751
306013
  const retryCount = config4.retryCount ?? retryCount_;
@@ -306760,7 +306022,7 @@ function http(url4, config4 = {}) {
306760
306022
  timeout
306761
306023
  });
306762
306024
  return createTransport({
306763
- key: key3,
306025
+ key: key2,
306764
306026
  methods,
306765
306027
  name: name3,
306766
306028
  async request({ method, params }) {
@@ -307211,7 +306473,7 @@ init_getChainContractAddress();
307211
306473
  init_toHex();
307212
306474
  init_localBatchGatewayRequest();
307213
306475
  async function getEnsText(client, parameters) {
307214
- const { blockNumber, blockTag, key: key3, name: name3, gatewayUrls, strict } = parameters;
306476
+ const { blockNumber, blockTag, key: key2, name: name3, gatewayUrls, strict } = parameters;
307215
306477
  const { chain } = client;
307216
306478
  const universalResolverAddress = (() => {
307217
306479
  if (parameters.universalResolverAddress)
@@ -307237,7 +306499,7 @@ async function getEnsText(client, parameters) {
307237
306499
  encodeFunctionData({
307238
306500
  abi: textResolverAbi,
307239
306501
  functionName: "text",
307240
- args: [namehash(name3), key3]
306502
+ args: [namehash(name3), key2]
307241
306503
  }),
307242
306504
  gatewayUrls ?? [localBatchGatewayUrl]
307243
306505
  ],
@@ -308260,16 +307522,16 @@ class LruMap2 extends Map {
308260
307522
  });
308261
307523
  this.maxSize = size5;
308262
307524
  }
308263
- get(key3) {
308264
- const value4 = super.get(key3);
308265
- if (super.has(key3) && value4 !== undefined) {
308266
- this.delete(key3);
308267
- super.set(key3, 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);
308268
307530
  }
308269
307531
  return value4;
308270
307532
  }
308271
- set(key3, value4) {
308272
- super.set(key3, value4);
307533
+ set(key2, value4) {
307534
+ super.set(key2, value4);
308273
307535
  if (this.maxSize && this.size > this.maxSize) {
308274
307536
  const firstKey = this.keys().next().value;
308275
307537
  if (firstKey)
@@ -310129,10 +309391,10 @@ function publicActions(client) {
310129
309391
 
310130
309392
  // ../../node_modules/viem/_esm/clients/createPublicClient.js
310131
309393
  function createPublicClient(parameters) {
310132
- const { key: key3 = "public", name: name3 = "Public Client" } = parameters;
309394
+ const { key: key2 = "public", name: name3 = "Public Client" } = parameters;
310133
309395
  const client = createClient({
310134
309396
  ...parameters,
310135
- key: key3,
309397
+ key: key2,
310136
309398
  name: name3,
310137
309399
  type: "publicClient"
310138
309400
  });
@@ -310233,7 +309495,7 @@ __export4(util_exports3, {
310233
309495
  getParsedType: () => getParsedType4,
310234
309496
  getSizableOrigin: () => getSizableOrigin4,
310235
309497
  isObject: () => isObject4,
310236
- isPlainObject: () => isPlainObject7,
309498
+ isPlainObject: () => isPlainObject6,
310237
309499
  issue: () => issue4,
310238
309500
  joinValues: () => joinValues4,
310239
309501
  jsonStringifyReplacer: () => jsonStringifyReplacer4,
@@ -310305,19 +309567,19 @@ function floatSafeRemainder4(val, step) {
310305
309567
  const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
310306
309568
  return valInt % stepInt / 10 ** decCount;
310307
309569
  }
310308
- function defineLazy4(object$1, key3, getter) {
309570
+ function defineLazy4(object$1, key2, getter) {
310309
309571
  const set$1 = false;
310310
- Object.defineProperty(object$1, key3, {
309572
+ Object.defineProperty(object$1, key2, {
310311
309573
  get() {
310312
309574
  if (!set$1) {
310313
309575
  const value4 = getter();
310314
- object$1[key3] = value4;
309576
+ object$1[key2] = value4;
310315
309577
  return value4;
310316
309578
  }
310317
309579
  throw new Error("cached value already set");
310318
309580
  },
310319
309581
  set(v6) {
310320
- Object.defineProperty(object$1, key3, { value: v6 });
309582
+ Object.defineProperty(object$1, key2, { value: v6 });
310321
309583
  },
310322
309584
  configurable: true
310323
309585
  });
@@ -310333,11 +309595,11 @@ function assignProp4(target, prop, value4) {
310333
309595
  function getElementAtPath4(obj, path7) {
310334
309596
  if (!path7)
310335
309597
  return obj;
310336
- return path7.reduce((acc, key3) => acc?.[key3], obj);
309598
+ return path7.reduce((acc, key2) => acc?.[key2], obj);
310337
309599
  }
310338
309600
  function promiseAllObject4(promisesObj) {
310339
309601
  const keys = Object.keys(promisesObj);
310340
- const promises = keys.map((key3) => promisesObj[key3]);
309602
+ const promises = keys.map((key2) => promisesObj[key2]);
310341
309603
  return Promise.all(promises).then((results) => {
310342
309604
  const resolvedObj = {};
310343
309605
  for (let i6 = 0;i6 < keys.length; i6++) {
@@ -310369,7 +309631,7 @@ var allowsEval4 = cached4(() => {
310369
309631
  return false;
310370
309632
  }
310371
309633
  });
310372
- function isPlainObject7(o8) {
309634
+ function isPlainObject6(o8) {
310373
309635
  if (isObject4(o8) === false)
310374
309636
  return false;
310375
309637
  const ctor = o8.constructor;
@@ -310385,8 +309647,8 @@ function isPlainObject7(o8) {
310385
309647
  }
310386
309648
  function numKeys4(data) {
310387
309649
  let keyCount = 0;
310388
- for (const key3 in data) {
310389
- if (Object.prototype.hasOwnProperty.call(data, key3)) {
309650
+ for (const key2 in data) {
309651
+ if (Object.prototype.hasOwnProperty.call(data, key2)) {
310390
309652
  keyCount++;
310391
309653
  }
310392
309654
  }
@@ -310536,13 +309798,13 @@ var BIGINT_FORMAT_RANGES4 = {
310536
309798
  function pick4(schema, mask) {
310537
309799
  const newShape = {};
310538
309800
  const currDef = schema._zod.def;
310539
- for (const key3 in mask) {
310540
- if (!(key3 in currDef.shape)) {
310541
- throw new Error(`Unrecognized key: "${key3}"`);
309801
+ for (const key2 in mask) {
309802
+ if (!(key2 in currDef.shape)) {
309803
+ throw new Error(`Unrecognized key: "${key2}"`);
310542
309804
  }
310543
- if (!mask[key3])
309805
+ if (!mask[key2])
310544
309806
  continue;
310545
- newShape[key3] = currDef.shape[key3];
309807
+ newShape[key2] = currDef.shape[key2];
310546
309808
  }
310547
309809
  return clone4(schema, {
310548
309810
  ...schema._zod.def,
@@ -310553,13 +309815,13 @@ function pick4(schema, mask) {
310553
309815
  function omit4(schema, mask) {
310554
309816
  const newShape = { ...schema._zod.def.shape };
310555
309817
  const currDef = schema._zod.def;
310556
- for (const key3 in mask) {
310557
- if (!(key3 in currDef.shape)) {
310558
- throw new Error(`Unrecognized key: "${key3}"`);
309818
+ for (const key2 in mask) {
309819
+ if (!(key2 in currDef.shape)) {
309820
+ throw new Error(`Unrecognized key: "${key2}"`);
310559
309821
  }
310560
- if (!mask[key3])
309822
+ if (!mask[key2])
310561
309823
  continue;
310562
- delete newShape[key3];
309824
+ delete newShape[key2];
310563
309825
  }
310564
309826
  return clone4(schema, {
310565
309827
  ...schema._zod.def,
@@ -310601,23 +309863,23 @@ function partial4(Class$1, schema, mask) {
310601
309863
  const oldShape = schema._zod.def.shape;
310602
309864
  const shape = { ...oldShape };
310603
309865
  if (mask) {
310604
- for (const key3 in mask) {
310605
- if (!(key3 in oldShape)) {
310606
- throw new Error(`Unrecognized key: "${key3}"`);
309866
+ for (const key2 in mask) {
309867
+ if (!(key2 in oldShape)) {
309868
+ throw new Error(`Unrecognized key: "${key2}"`);
310607
309869
  }
310608
- if (!mask[key3])
309870
+ if (!mask[key2])
310609
309871
  continue;
310610
- shape[key3] = Class$1 ? new Class$1({
309872
+ shape[key2] = Class$1 ? new Class$1({
310611
309873
  type: "optional",
310612
- innerType: oldShape[key3]
310613
- }) : oldShape[key3];
309874
+ innerType: oldShape[key2]
309875
+ }) : oldShape[key2];
310614
309876
  }
310615
309877
  } else {
310616
- for (const key3 in oldShape) {
310617
- shape[key3] = Class$1 ? new Class$1({
309878
+ for (const key2 in oldShape) {
309879
+ shape[key2] = Class$1 ? new Class$1({
310618
309880
  type: "optional",
310619
- innerType: oldShape[key3]
310620
- }) : oldShape[key3];
309881
+ innerType: oldShape[key2]
309882
+ }) : oldShape[key2];
310621
309883
  }
310622
309884
  }
310623
309885
  return clone4(schema, {
@@ -310630,22 +309892,22 @@ function required4(Class$1, schema, mask) {
310630
309892
  const oldShape = schema._zod.def.shape;
310631
309893
  const shape = { ...oldShape };
310632
309894
  if (mask) {
310633
- for (const key3 in mask) {
310634
- if (!(key3 in shape)) {
310635
- throw new Error(`Unrecognized key: "${key3}"`);
309895
+ for (const key2 in mask) {
309896
+ if (!(key2 in shape)) {
309897
+ throw new Error(`Unrecognized key: "${key2}"`);
310636
309898
  }
310637
- if (!mask[key3])
309899
+ if (!mask[key2])
310638
309900
  continue;
310639
- shape[key3] = new Class$1({
309901
+ shape[key2] = new Class$1({
310640
309902
  type: "nonoptional",
310641
- innerType: oldShape[key3]
309903
+ innerType: oldShape[key2]
310642
309904
  });
310643
309905
  }
310644
309906
  } else {
310645
- for (const key3 in oldShape) {
310646
- shape[key3] = new Class$1({
309907
+ for (const key2 in oldShape) {
309908
+ shape[key2] = new Class$1({
310647
309909
  type: "nonoptional",
310648
- innerType: oldShape[key3]
309910
+ innerType: oldShape[key2]
310649
309911
  });
310650
309912
  }
310651
309913
  }
@@ -312225,28 +311487,28 @@ var $ZodArray4 = /* @__PURE__ */ $constructor4("$ZodArray", (inst, def) => {
312225
311487
  return payload;
312226
311488
  };
312227
311489
  });
312228
- function handleObjectResult4(result, final, key3) {
311490
+ function handleObjectResult4(result, final, key2) {
312229
311491
  if (result.issues.length) {
312230
- final.issues.push(...prefixIssues4(key3, result.issues));
311492
+ final.issues.push(...prefixIssues4(key2, result.issues));
312231
311493
  }
312232
- final.value[key3] = result.value;
311494
+ final.value[key2] = result.value;
312233
311495
  }
312234
- function handleOptionalObjectResult4(result, final, key3, input) {
311496
+ function handleOptionalObjectResult4(result, final, key2, input) {
312235
311497
  if (result.issues.length) {
312236
- if (input[key3] === undefined) {
312237
- if (key3 in input) {
312238
- final.value[key3] = undefined;
311498
+ if (input[key2] === undefined) {
311499
+ if (key2 in input) {
311500
+ final.value[key2] = undefined;
312239
311501
  } else {
312240
- final.value[key3] = result.value;
311502
+ final.value[key2] = result.value;
312241
311503
  }
312242
311504
  } else {
312243
- final.issues.push(...prefixIssues4(key3, result.issues));
311505
+ final.issues.push(...prefixIssues4(key2, result.issues));
312244
311506
  }
312245
311507
  } else if (result.value === undefined) {
312246
- if (key3 in input)
312247
- final.value[key3] = undefined;
311508
+ if (key2 in input)
311509
+ final.value[key2] = undefined;
312248
311510
  } else {
312249
- final.value[key3] = result.value;
311511
+ final.value[key2] = result.value;
312250
311512
  }
312251
311513
  }
312252
311514
  var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
@@ -312270,12 +311532,12 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312270
311532
  defineLazy4(inst._zod, "propValues", () => {
312271
311533
  const shape = def.shape;
312272
311534
  const propValues = {};
312273
- for (const key3 in shape) {
312274
- const field2 = shape[key3]._zod;
311535
+ for (const key2 in shape) {
311536
+ const field2 = shape[key2]._zod;
312275
311537
  if (field2.values) {
312276
- propValues[key3] ?? (propValues[key3] = new Set);
311538
+ propValues[key2] ?? (propValues[key2] = new Set);
312277
311539
  for (const v6 of field2.values)
312278
- propValues[key3].add(v6);
311540
+ propValues[key2].add(v6);
312279
311541
  }
312280
311542
  }
312281
311543
  return propValues;
@@ -312287,21 +311549,21 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312287
311549
  "ctx"
312288
311550
  ]);
312289
311551
  const { keys, optionalKeys: optionalKeys$1 } = _normalized.value;
312290
- const parseStr = (key3) => {
312291
- const k5 = esc4(key3);
311552
+ const parseStr = (key2) => {
311553
+ const k5 = esc4(key2);
312292
311554
  return `shape[${k5}]._zod.run({ value: input[${k5}], issues: [] }, ctx)`;
312293
311555
  };
312294
311556
  doc2.write(`const input = payload.value;`);
312295
311557
  const ids = Object.create(null);
312296
- for (const key3 of keys) {
312297
- ids[key3] = randomString4(15);
311558
+ for (const key2 of keys) {
311559
+ ids[key2] = randomString4(15);
312298
311560
  }
312299
311561
  doc2.write(`const newResult = {}`);
312300
- for (const key3 of keys) {
312301
- if (optionalKeys$1.has(key3)) {
312302
- const id = ids[key3];
312303
- doc2.write(`const ${id} = ${parseStr(key3)};`);
312304
- const k5 = esc4(key3);
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);
312305
311567
  doc2.write(`
312306
311568
  if (${id}.issues.length) {
312307
311569
  if (input[${k5}] === undefined) {
@@ -312323,14 +311585,14 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312323
311585
  }
312324
311586
  `);
312325
311587
  } else {
312326
- const id = ids[key3];
312327
- doc2.write(`const ${id} = ${parseStr(key3)};`);
311588
+ const id = ids[key2];
311589
+ doc2.write(`const ${id} = ${parseStr(key2)};`);
312328
311590
  doc2.write(`
312329
311591
  if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
312330
311592
  ...iss,
312331
- path: iss.path ? [${esc4(key3)}, ...iss.path] : [${esc4(key3)}]
311593
+ path: iss.path ? [${esc4(key2)}, ...iss.path] : [${esc4(key2)}]
312332
311594
  })));`);
312333
- doc2.write(`newResult[${esc4(key3)}] = ${id}.value`);
311595
+ doc2.write(`newResult[${esc4(key2)}] = ${id}.value`);
312334
311596
  }
312335
311597
  }
312336
311598
  doc2.write(`payload.value = newResult;`);
@@ -312365,20 +311627,20 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312365
311627
  } else {
312366
311628
  payload.value = {};
312367
311629
  const shape = value4.shape;
312368
- for (const key3 of value4.keys) {
312369
- const el = shape[key3];
311630
+ for (const key2 of value4.keys) {
311631
+ const el = shape[key2];
312370
311632
  const r6 = el._zod.run({
312371
- value: input[key3],
311633
+ value: input[key2],
312372
311634
  issues: []
312373
311635
  }, ctx);
312374
311636
  const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
312375
311637
  if (r6 instanceof Promise) {
312376
- proms.push(r6.then((r$1) => isOptional ? handleOptionalObjectResult4(r$1, payload, key3, input) : handleObjectResult4(r$1, payload, key3)));
311638
+ proms.push(r6.then((r$1) => isOptional ? handleOptionalObjectResult4(r$1, payload, key2, input) : handleObjectResult4(r$1, payload, key2)));
312377
311639
  } else {
312378
311640
  if (isOptional) {
312379
- handleOptionalObjectResult4(r6, payload, key3, input);
311641
+ handleOptionalObjectResult4(r6, payload, key2, input);
312380
311642
  } else {
312381
- handleObjectResult4(r6, payload, key3);
311643
+ handleObjectResult4(r6, payload, key2);
312382
311644
  }
312383
311645
  }
312384
311646
  }
@@ -312390,21 +311652,21 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312390
311652
  const keySet = value4.keySet;
312391
311653
  const _catchall = catchall._zod;
312392
311654
  const t8 = _catchall.def.type;
312393
- for (const key3 of Object.keys(input)) {
312394
- if (keySet.has(key3))
311655
+ for (const key2 of Object.keys(input)) {
311656
+ if (keySet.has(key2))
312395
311657
  continue;
312396
311658
  if (t8 === "never") {
312397
- unrecognized.push(key3);
311659
+ unrecognized.push(key2);
312398
311660
  continue;
312399
311661
  }
312400
311662
  const r6 = _catchall.run({
312401
- value: input[key3],
311663
+ value: input[key2],
312402
311664
  issues: []
312403
311665
  }, ctx);
312404
311666
  if (r6 instanceof Promise) {
312405
- proms.push(r6.then((r$1) => handleObjectResult4(r$1, payload, key3)));
311667
+ proms.push(r6.then((r$1) => handleObjectResult4(r$1, payload, key2)));
312406
311668
  } else {
312407
- handleObjectResult4(r6, payload, key3);
311669
+ handleObjectResult4(r6, payload, key2);
312408
311670
  }
312409
311671
  }
312410
311672
  if (unrecognized.length) {
@@ -312574,22 +311836,22 @@ function mergeValues4(a7, b4) {
312574
311836
  data: a7
312575
311837
  };
312576
311838
  }
312577
- if (isPlainObject7(a7) && isPlainObject7(b4)) {
311839
+ if (isPlainObject6(a7) && isPlainObject6(b4)) {
312578
311840
  const bKeys = Object.keys(b4);
312579
- const sharedKeys = Object.keys(a7).filter((key3) => bKeys.indexOf(key3) !== -1);
311841
+ const sharedKeys = Object.keys(a7).filter((key2) => bKeys.indexOf(key2) !== -1);
312580
311842
  const newObj = {
312581
311843
  ...a7,
312582
311844
  ...b4
312583
311845
  };
312584
- for (const key3 of sharedKeys) {
312585
- const sharedValue = mergeValues4(a7[key3], b4[key3]);
311846
+ for (const key2 of sharedKeys) {
311847
+ const sharedValue = mergeValues4(a7[key2], b4[key2]);
312586
311848
  if (!sharedValue.valid) {
312587
311849
  return {
312588
311850
  valid: false,
312589
- mergeErrorPath: [key3, ...sharedValue.mergeErrorPath]
311851
+ mergeErrorPath: [key2, ...sharedValue.mergeErrorPath]
312590
311852
  };
312591
311853
  }
312592
- newObj[key3] = sharedValue.data;
311854
+ newObj[key2] = sharedValue.data;
312593
311855
  }
312594
311856
  return {
312595
311857
  valid: true,
@@ -312725,7 +311987,7 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
312725
311987
  $ZodType4.init(inst, def);
312726
311988
  inst._zod.parse = (payload, ctx) => {
312727
311989
  const input = payload.value;
312728
- if (!isPlainObject7(input)) {
311990
+ if (!isPlainObject6(input)) {
312729
311991
  payload.issues.push({
312730
311992
  expected: "record",
312731
311993
  code: "invalid_type",
@@ -312738,32 +312000,32 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
312738
312000
  if (def.keyType._zod.values) {
312739
312001
  const values = def.keyType._zod.values;
312740
312002
  payload.value = {};
312741
- for (const key3 of values) {
312742
- if (typeof key3 === "string" || typeof key3 === "number" || typeof key3 === "symbol") {
312003
+ for (const key2 of values) {
312004
+ if (typeof key2 === "string" || typeof key2 === "number" || typeof key2 === "symbol") {
312743
312005
  const result = def.valueType._zod.run({
312744
- value: input[key3],
312006
+ value: input[key2],
312745
312007
  issues: []
312746
312008
  }, ctx);
312747
312009
  if (result instanceof Promise) {
312748
312010
  proms.push(result.then((result$1) => {
312749
312011
  if (result$1.issues.length) {
312750
- payload.issues.push(...prefixIssues4(key3, result$1.issues));
312012
+ payload.issues.push(...prefixIssues4(key2, result$1.issues));
312751
312013
  }
312752
- payload.value[key3] = result$1.value;
312014
+ payload.value[key2] = result$1.value;
312753
312015
  }));
312754
312016
  } else {
312755
312017
  if (result.issues.length) {
312756
- payload.issues.push(...prefixIssues4(key3, result.issues));
312018
+ payload.issues.push(...prefixIssues4(key2, result.issues));
312757
312019
  }
312758
- payload.value[key3] = result.value;
312020
+ payload.value[key2] = result.value;
312759
312021
  }
312760
312022
  }
312761
312023
  }
312762
312024
  let unrecognized;
312763
- for (const key3 in input) {
312764
- if (!values.has(key3)) {
312025
+ for (const key2 in input) {
312026
+ if (!values.has(key2)) {
312765
312027
  unrecognized = unrecognized ?? [];
312766
- unrecognized.push(key3);
312028
+ unrecognized.push(key2);
312767
312029
  }
312768
312030
  }
312769
312031
  if (unrecognized && unrecognized.length > 0) {
@@ -312776,11 +312038,11 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
312776
312038
  }
312777
312039
  } else {
312778
312040
  payload.value = {};
312779
- for (const key3 of Reflect.ownKeys(input)) {
312780
- if (key3 === "__proto__")
312041
+ for (const key2 of Reflect.ownKeys(input)) {
312042
+ if (key2 === "__proto__")
312781
312043
  continue;
312782
312044
  const keyResult = def.keyType._zod.run({
312783
- value: key3,
312045
+ value: key2,
312784
312046
  issues: []
312785
312047
  }, ctx);
312786
312048
  if (keyResult instanceof Promise) {
@@ -312791,27 +312053,27 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
312791
312053
  origin: "record",
312792
312054
  code: "invalid_key",
312793
312055
  issues: keyResult.issues.map((iss) => finalizeIssue4(iss, ctx, config4())),
312794
- input: key3,
312795
- path: [key3],
312056
+ input: key2,
312057
+ path: [key2],
312796
312058
  inst
312797
312059
  });
312798
312060
  payload.value[keyResult.value] = keyResult.value;
312799
312061
  continue;
312800
312062
  }
312801
312063
  const result = def.valueType._zod.run({
312802
- value: input[key3],
312064
+ value: input[key2],
312803
312065
  issues: []
312804
312066
  }, ctx);
312805
312067
  if (result instanceof Promise) {
312806
312068
  proms.push(result.then((result$1) => {
312807
312069
  if (result$1.issues.length) {
312808
- payload.issues.push(...prefixIssues4(key3, result$1.issues));
312070
+ payload.issues.push(...prefixIssues4(key2, result$1.issues));
312809
312071
  }
312810
312072
  payload.value[keyResult.value] = result$1.value;
312811
312073
  }));
312812
312074
  } else {
312813
312075
  if (result.issues.length) {
312814
- payload.issues.push(...prefixIssues4(key3, result.issues));
312076
+ payload.issues.push(...prefixIssues4(key2, result.issues));
312815
312077
  }
312816
312078
  payload.value[keyResult.value] = result.value;
312817
312079
  }
@@ -312838,9 +312100,9 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
312838
312100
  }
312839
312101
  const proms = [];
312840
312102
  payload.value = new Map;
312841
- for (const [key3, value4] of input) {
312103
+ for (const [key2, value4] of input) {
312842
312104
  const keyResult = def.keyType._zod.run({
312843
- value: key3,
312105
+ value: key2,
312844
312106
  issues: []
312845
312107
  }, ctx);
312846
312108
  const valueResult = def.valueType._zod.run({
@@ -312849,10 +312111,10 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
312849
312111
  }, ctx);
312850
312112
  if (keyResult instanceof Promise || valueResult instanceof Promise) {
312851
312113
  proms.push(Promise.all([keyResult, valueResult]).then(([keyResult$1, valueResult$1]) => {
312852
- handleMapResult4(keyResult$1, valueResult$1, payload, key3, input, inst, ctx);
312114
+ handleMapResult4(keyResult$1, valueResult$1, payload, key2, input, inst, ctx);
312853
312115
  }));
312854
312116
  } else {
312855
- handleMapResult4(keyResult, valueResult, payload, key3, input, inst, ctx);
312117
+ handleMapResult4(keyResult, valueResult, payload, key2, input, inst, ctx);
312856
312118
  }
312857
312119
  }
312858
312120
  if (proms.length)
@@ -312860,10 +312122,10 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
312860
312122
  return payload;
312861
312123
  };
312862
312124
  });
312863
- function handleMapResult4(keyResult, valueResult, final, key3, input, inst, ctx) {
312125
+ function handleMapResult4(keyResult, valueResult, final, key2, input, inst, ctx) {
312864
312126
  if (keyResult.issues.length) {
312865
- if (propertyKeyTypes4.has(typeof key3)) {
312866
- final.issues.push(...prefixIssues4(key3, keyResult.issues));
312127
+ if (propertyKeyTypes4.has(typeof key2)) {
312128
+ final.issues.push(...prefixIssues4(key2, keyResult.issues));
312867
312129
  } else {
312868
312130
  final.issues.push({
312869
312131
  origin: "map",
@@ -312875,15 +312137,15 @@ function handleMapResult4(keyResult, valueResult, final, key3, input, inst, ctx)
312875
312137
  }
312876
312138
  }
312877
312139
  if (valueResult.issues.length) {
312878
- if (propertyKeyTypes4.has(typeof key3)) {
312879
- final.issues.push(...prefixIssues4(key3, valueResult.issues));
312140
+ if (propertyKeyTypes4.has(typeof key2)) {
312141
+ final.issues.push(...prefixIssues4(key2, valueResult.issues));
312880
312142
  } else {
312881
312143
  final.issues.push({
312882
312144
  origin: "map",
312883
312145
  code: "invalid_element",
312884
312146
  input,
312885
312147
  inst,
312886
- key: key3,
312148
+ key: key2,
312887
312149
  issues: valueResult.issues.map((iss) => finalizeIssue4(iss, ctx, config4()))
312888
312150
  });
312889
312151
  }
@@ -319205,19 +318467,19 @@ var JSONSchemaGenerator4 = class {
319205
318467
  json$1.type = "object";
319206
318468
  json$1.properties = {};
319207
318469
  const shape = def.shape;
319208
- for (const key3 in shape) {
319209
- json$1.properties[key3] = this.process(shape[key3], {
318470
+ for (const key2 in shape) {
318471
+ json$1.properties[key2] = this.process(shape[key2], {
319210
318472
  ...params,
319211
318473
  path: [
319212
318474
  ...params.path,
319213
318475
  "properties",
319214
- key3
318476
+ key2
319215
318477
  ]
319216
318478
  });
319217
318479
  }
319218
318480
  const allKeys = new Set(Object.keys(shape));
319219
- const requiredKeys = new Set([...allKeys].filter((key3) => {
319220
- const v6 = def.shape[key3]._zod;
318481
+ const requiredKeys = new Set([...allKeys].filter((key2) => {
318482
+ const v6 = def.shape[key2]._zod;
319221
318483
  if (this.io === "input") {
319222
318484
  return v6.optin === undefined;
319223
318485
  } else {
@@ -319569,8 +318831,8 @@ var JSONSchemaGenerator4 = class {
319569
318831
  if (defId)
319570
318832
  seen.defId = defId;
319571
318833
  const schema$1 = seen.schema;
319572
- for (const key3 in schema$1) {
319573
- delete schema$1[key3];
318834
+ for (const key2 in schema$1) {
318835
+ delete schema$1[key2];
319574
318836
  }
319575
318837
  schema$1.$ref = ref;
319576
318838
  };
@@ -319681,8 +318943,8 @@ function toJSONSchema4(input, _params) {
319681
318943
  defs
319682
318944
  };
319683
318945
  for (const entry of input._idmap.entries()) {
319684
- const [key3, schema] = entry;
319685
- schemas3[key3] = gen$1.emit(schema, {
318946
+ const [key2, schema] = entry;
318947
+ schemas3[key2] = gen$1.emit(schema, {
319686
318948
  ..._params,
319687
318949
  external: external2
319688
318950
  });
@@ -319727,8 +318989,8 @@ function isTransforming4(_schema, _ctx) {
319727
318989
  return isTransforming4(def.element, ctx);
319728
318990
  }
319729
318991
  case "object": {
319730
- for (const key3 in def.shape) {
319731
- if (isTransforming4(def.shape[key3], ctx))
318992
+ for (const key2 in def.shape) {
318993
+ if (isTransforming4(def.shape[key2], ctx))
319732
318994
  return true;
319733
318995
  }
319734
318996
  return false;
@@ -321577,19 +320839,19 @@ function getBooleanValue(value4, defaultValue) {
321577
320839
  function boolToString(value4) {
321578
320840
  return value4 ? "Yes" : "No";
321579
320841
  }
321580
- var esm_default5 = createPrompt((config5, done) => {
320842
+ var esm_default4 = createPrompt((config5, done) => {
321581
320843
  const { transformer = boolToString } = config5;
321582
320844
  const [status, setStatus] = useState("idle");
321583
320845
  const [value4, setValue] = useState("");
321584
320846
  const theme = makeTheme(config5.theme);
321585
320847
  const prefix = usePrefix({ status, theme });
321586
- useKeypress((key3, rl) => {
321587
- if (isEnterKey(key3)) {
320848
+ useKeypress((key2, rl) => {
320849
+ if (isEnterKey(key2)) {
321588
320850
  const answer = getBooleanValue(value4, config5.default);
321589
320851
  setValue(transformer(answer));
321590
320852
  setStatus("done");
321591
320853
  done(answer);
321592
- } else if (key3.name === "tab") {
320854
+ } else if (key2.name === "tab") {
321593
320855
  const answer = boolToString(!getBooleanValue(value4, config5.default));
321594
320856
  rl.clearLine(0);
321595
320857
  rl.write(answer);
@@ -321610,19 +320872,19 @@ var esm_default5 = createPrompt((config5, done) => {
321610
320872
  });
321611
320873
 
321612
320874
  // ../../node_modules/@inquirer/password/dist/esm/index.js
321613
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
321614
- var esm_default6 = createPrompt((config5, done) => {
320875
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
320876
+ var esm_default5 = createPrompt((config5, done) => {
321615
320877
  const { validate: validate5 = () => true } = config5;
321616
320878
  const theme = makeTheme(config5.theme);
321617
320879
  const [status, setStatus] = useState("idle");
321618
320880
  const [errorMsg, setError] = useState();
321619
320881
  const [value4, setValue] = useState("");
321620
320882
  const prefix = usePrefix({ status, theme });
321621
- useKeypress(async (key3, rl) => {
320883
+ useKeypress(async (key2, rl) => {
321622
320884
  if (status !== "idle") {
321623
320885
  return;
321624
320886
  }
321625
- if (isEnterKey(key3)) {
320887
+ if (isEnterKey(key2)) {
321626
320888
  const answer = value4;
321627
320889
  setStatus("loading");
321628
320890
  const isValid = await validate5(answer);
@@ -321647,7 +320909,7 @@ var esm_default6 = createPrompt((config5, done) => {
321647
320909
  const maskChar = typeof config5.mask === "string" ? config5.mask : "*";
321648
320910
  formattedValue = maskChar.repeat(value4.length);
321649
320911
  } else if (status !== "done") {
321650
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
320912
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
321651
320913
  }
321652
320914
  if (status === "done") {
321653
320915
  formattedValue = theme.style.answer(formattedValue);
@@ -321669,7 +320931,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
321669
320931
  return defaultAccessToken;
321670
320932
  }
321671
320933
  if (defaultAccessToken) {
321672
- const keep = await esm_default5({
320934
+ const keep = await esm_default4({
321673
320935
  message: "Do you want to use the existing application access token?",
321674
320936
  default: true
321675
320937
  });
@@ -321677,12 +320939,12 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
321677
320939
  return defaultAccessToken;
321678
320940
  }
321679
320941
  }
321680
- const create2 = await esm_default5({
320942
+ const create2 = await esm_default4({
321681
320943
  message: "Do you want to create a new application access token?",
321682
320944
  default: false
321683
320945
  });
321684
320946
  if (create2) {
321685
- const name3 = await esm_default3({
320947
+ const name3 = await esm_default2({
321686
320948
  message: "How would you like to name this application access token?",
321687
320949
  default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
321688
320950
  required: true,
@@ -321745,7 +321007,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
321745
321007
  return aat;
321746
321008
  } catch (_error) {}
321747
321009
  }
321748
- return esm_default6({
321010
+ return esm_default5({
321749
321011
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
321750
321012
  validate(value4) {
321751
321013
  try {
@@ -321777,7 +321039,7 @@ async function applicationPrompt(env2, applications, accept) {
321777
321039
  if (is_in_ci_default) {
321778
321040
  nothingSelectedError("application");
321779
321041
  }
321780
- const application = await esm_default4({
321042
+ const application = await esm_default3({
321781
321043
  message: "Which application do you want to connect to?",
321782
321044
  choices: applications.map((applications2) => ({
321783
321045
  name: `${applications2.name} (${applications2.uniqueName})`,
@@ -321890,7 +321152,7 @@ async function blockchainNodePrompt({
321890
321152
  }
321891
321153
  return item;
321892
321154
  }) : choices;
321893
- return esm_default4({
321155
+ return esm_default3({
321894
321156
  message: promptMessage ?? "Which blockchain node do you want to connect to?",
321895
321157
  choices: filteredChoices,
321896
321158
  default: defaultNode
@@ -321920,7 +321182,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
321920
321182
  isRequired,
321921
321183
  defaultHandler: async ({ defaultService: defaultNode, choices }) => {
321922
321184
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
321923
- return esm_default4({
321185
+ return esm_default3({
321924
321186
  message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
321925
321187
  choices: filteredChoices,
321926
321188
  default: defaultNode
@@ -321945,7 +321207,7 @@ async function blockscoutPrompt({
321945
321207
  envKey: "SETTLEMINT_BLOCKSCOUT",
321946
321208
  isRequired,
321947
321209
  defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
321948
- return esm_default4({
321210
+ return esm_default3({
321949
321211
  message: "Which blockscout instance do you want to connect to?",
321950
321212
  choices,
321951
321213
  default: defaultBlockscout
@@ -321968,7 +321230,7 @@ async function customDeploymentPrompt({
321968
321230
  envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
321969
321231
  isRequired,
321970
321232
  defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
321971
- return esm_default4({
321233
+ return esm_default3({
321972
321234
  message: "Which Custom Deployment do you want to connect to?",
321973
321235
  choices,
321974
321236
  default: defaultCustomDeployment
@@ -321995,7 +321257,7 @@ async function hasuraPrompt({
321995
321257
  envKey: "SETTLEMINT_HASURA",
321996
321258
  isRequired,
321997
321259
  defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
321998
- return esm_default4({
321260
+ return esm_default3({
321999
321261
  message: "Which Hasura instance do you want to connect to?",
322000
321262
  choices,
322001
321263
  default: defaultHasura
@@ -322019,7 +321281,7 @@ async function hdPrivateKeyPrompt({
322019
321281
  envKey: "SETTLEMINT_HD_PRIVATE_KEY",
322020
321282
  isRequired,
322021
321283
  defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
322022
- return esm_default4({
321284
+ return esm_default3({
322023
321285
  message: "Which HD Private Key do you want to use?",
322024
321286
  choices,
322025
321287
  default: defaultPrivateKey
@@ -322043,7 +321305,7 @@ async function ipfsPrompt({
322043
321305
  envKey: "SETTLEMINT_IPFS",
322044
321306
  isRequired,
322045
321307
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
322046
- return esm_default4({
321308
+ return esm_default3({
322047
321309
  message: "Which IPFS instance do you want to connect to?",
322048
321310
  choices,
322049
321311
  default: defaultStorage
@@ -322067,7 +321329,7 @@ async function minioPrompt({
322067
321329
  envKey: "SETTLEMINT_MINIO",
322068
321330
  isRequired,
322069
321331
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
322070
- return esm_default4({
321332
+ return esm_default3({
322071
321333
  message: "Which MinIO instance do you want to connect to?",
322072
321334
  choices,
322073
321335
  default: defaultStorage
@@ -322091,7 +321353,7 @@ async function portalPrompt({
322091
321353
  envKey: "SETTLEMINT_PORTAL",
322092
321354
  isRequired,
322093
321355
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
322094
- return esm_default4({
321356
+ return esm_default3({
322095
321357
  message: "Which Smart Contract Portal instance do you want to connect to?",
322096
321358
  choices,
322097
321359
  default: defaultMiddleware
@@ -322120,7 +321382,7 @@ async function theGraphPrompt({
322120
321382
  isRequired,
322121
321383
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
322122
321384
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
322123
- return esm_default4({
321385
+ return esm_default3({
322124
321386
  message: "Which The Graph instance do you want to connect to?",
322125
321387
  choices: filteredChoices,
322126
321388
  default: defaultMiddleware
@@ -322148,7 +321410,7 @@ async function instancePrompt({
322148
321410
  return sanitizeInstanceUrl(defaultPromptInstance);
322149
321411
  }
322150
321412
  if (freeTextInput) {
322151
- const instance = await esm_default3({
321413
+ const instance = await esm_default2({
322152
321414
  message: "What is the URL of your SettleMint instance?",
322153
321415
  default: defaultPromptInstance,
322154
321416
  required: true,
@@ -322167,7 +321429,7 @@ async function instancePrompt({
322167
321429
  if (knownInstances.length === 0) {
322168
321430
  note("No instances found. Run `settlemint login` to configure an instance.", "warn");
322169
321431
  }
322170
- return esm_default4({
321432
+ return esm_default3({
322171
321433
  message: "What instance do you want to connect to?",
322172
321434
  choices: [
322173
321435
  ...knownInstances.map((instance) => ({
@@ -322203,7 +321465,7 @@ async function serviceSecretPrompt({
322203
321465
  return defaultSecret;
322204
321466
  }
322205
321467
  if (defaultSecret) {
322206
- const keep = await esm_default5({
321468
+ const keep = await esm_default4({
322207
321469
  message: `Do you want to use the existing ${name3} secret?`,
322208
321470
  default: true
322209
321471
  });
@@ -322211,7 +321473,7 @@ async function serviceSecretPrompt({
322211
321473
  return defaultSecret;
322212
321474
  }
322213
321475
  }
322214
- const serviceSecret = await esm_default6({
321476
+ const serviceSecret = await esm_default5({
322215
321477
  message
322216
321478
  });
322217
321479
  return serviceSecret || undefined;
@@ -322232,7 +321494,7 @@ async function serviceUrlPrompt({
322232
321494
  if (isCi) {
322233
321495
  return defaultUrl ? new URL(defaultUrl).toString() : undefined;
322234
321496
  }
322235
- const serviceUrl = await esm_default3({
321497
+ const serviceUrl = await esm_default2({
322236
321498
  message: example ? `${message} (eg ${example})` : message,
322237
321499
  default: defaultUrl,
322238
321500
  required: true,
@@ -322263,7 +321525,7 @@ async function workspacePrompt(env2, workspaces, accept) {
322263
321525
  if (is_in_ci_default) {
322264
321526
  nothingSelectedError("workspace");
322265
321527
  }
322266
- const workspace = await esm_default4({
321528
+ const workspace = await esm_default3({
322267
321529
  message: "Which workspace do you want to connect to?",
322268
321530
  choices: workspaces.map((workspace2) => ({
322269
321531
  name: `${workspace2.name} (${workspace2.uniqueName})`,
@@ -322667,7 +321929,7 @@ async function serviceValuePrompt({
322667
321929
  if (isCi) {
322668
321930
  return defaultValue;
322669
321931
  }
322670
- const serviceSecret = await esm_default3({
321932
+ const serviceSecret = await esm_default2({
322671
321933
  message: example ? `${message} (eg ${example})` : message,
322672
321934
  default: defaultValue
322673
321935
  });
@@ -323105,7 +322367,7 @@ async function templatePrompt(platformConfig, argument) {
323105
322367
  }
323106
322368
  return template2;
323107
322369
  }
323108
- const template = await esm_default4({
322370
+ const template = await esm_default3({
323109
322371
  message: "Which template do you want to use?",
323110
322372
  choices: [
323111
322373
  ...kits.map((template2) => ({
@@ -323123,7 +322385,7 @@ async function projectNamePrompt(env2, argument) {
323123
322385
  if (defaultInstance) {
323124
322386
  return defaultInstance;
323125
322387
  }
323126
- return esm_default3({
322388
+ return esm_default2({
323127
322389
  message: "What is the name of your new SettleMint project?",
323128
322390
  default: defaultInstance,
323129
322391
  required: true,
@@ -323325,7 +322587,7 @@ var basename2 = function(p5, extension) {
323325
322587
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
323326
322588
  };
323327
322589
  // ../../node_modules/defu/dist/defu.mjs
323328
- function isPlainObject8(value4) {
322590
+ function isPlainObject7(value4) {
323329
322591
  if (value4 === null || typeof value4 !== "object") {
323330
322592
  return false;
323331
322593
  }
@@ -323342,27 +322604,27 @@ function isPlainObject8(value4) {
323342
322604
  return true;
323343
322605
  }
323344
322606
  function _defu(baseObject, defaults4, namespace = ".", merger) {
323345
- if (!isPlainObject8(defaults4)) {
322607
+ if (!isPlainObject7(defaults4)) {
323346
322608
  return _defu(baseObject, {}, namespace, merger);
323347
322609
  }
323348
322610
  const object5 = Object.assign({}, defaults4);
323349
- for (const key3 in baseObject) {
323350
- if (key3 === "__proto__" || key3 === "constructor") {
322611
+ for (const key2 in baseObject) {
322612
+ if (key2 === "__proto__" || key2 === "constructor") {
323351
322613
  continue;
323352
322614
  }
323353
- const value4 = baseObject[key3];
322615
+ const value4 = baseObject[key2];
323354
322616
  if (value4 === null || value4 === undefined) {
323355
322617
  continue;
323356
322618
  }
323357
- if (merger && merger(object5, key3, value4, namespace)) {
322619
+ if (merger && merger(object5, key2, value4, namespace)) {
323358
322620
  continue;
323359
322621
  }
323360
- if (Array.isArray(value4) && Array.isArray(object5[key3])) {
323361
- object5[key3] = [...value4, ...object5[key3]];
323362
- } else if (isPlainObject8(value4) && isPlainObject8(object5[key3])) {
323363
- object5[key3] = _defu(value4, object5[key3], (namespace ? `${namespace}.` : "") + key3.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);
323364
322626
  } else {
323365
- object5[key3] = value4;
322627
+ object5[key2] = value4;
323366
322628
  }
323367
322629
  }
323368
322630
  return object5;
@@ -323371,15 +322633,15 @@ function createDefu(merger) {
323371
322633
  return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
323372
322634
  }
323373
322635
  var defu = createDefu();
323374
- var defuFn = createDefu((object5, key3, currentValue) => {
323375
- if (object5[key3] !== undefined && typeof currentValue === "function") {
323376
- object5[key3] = currentValue(object5[key3]);
322636
+ var defuFn = createDefu((object5, key2, currentValue) => {
322637
+ if (object5[key2] !== undefined && typeof currentValue === "function") {
322638
+ object5[key2] = currentValue(object5[key2]);
323377
322639
  return true;
323378
322640
  }
323379
322641
  });
323380
- var defuArrayFn = createDefu((object5, key3, currentValue) => {
323381
- if (Array.isArray(object5[key3]) && typeof currentValue === "function") {
323382
- object5[key3] = currentValue(object5[key3]);
322642
+ var defuArrayFn = createDefu((object5, key2, currentValue) => {
322643
+ if (Array.isArray(object5[key2]) && typeof currentValue === "function") {
322644
+ object5[key2] = currentValue(object5[key2]);
323383
322645
  return true;
323384
322646
  }
323385
322647
  });
@@ -326589,11 +325851,11 @@ function cacheDirectory() {
326589
325851
  }
326590
325852
  function normalizeHeaders(headers = {}) {
326591
325853
  const normalized = {};
326592
- for (const [key3, value4] of Object.entries(headers)) {
325854
+ for (const [key2, value4] of Object.entries(headers)) {
326593
325855
  if (!value4) {
326594
325856
  continue;
326595
325857
  }
326596
- normalized[key3.toLowerCase()] = value4;
325858
+ normalized[key2.toLowerCase()] = value4;
326597
325859
  }
326598
325860
  return normalized;
326599
325861
  }
@@ -326891,7 +326153,7 @@ function createCommand2() {
326891
326153
  await mkdir6(projectDir, { recursive: true });
326892
326154
  }
326893
326155
  if (!await isEmpty(projectDir)) {
326894
- const confirmEmpty = await esm_default5({
326156
+ const confirmEmpty = await esm_default4({
326895
326157
  message: `The folder ${projectDir} already exists. Do you want to empty it?`,
326896
326158
  default: false
326897
326159
  });
@@ -327144,7 +326406,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
327144
326406
  return defaultPersonalAccessToken;
327145
326407
  }
327146
326408
  if (existingConfig && defaultPersonalAccessToken) {
327147
- const useExisting = await esm_default5({
326409
+ const useExisting = await esm_default4({
327148
326410
  message: `Do you want to use your existing personal access token for ${instance}?`,
327149
326411
  default: true
327150
326412
  });
@@ -327152,7 +326414,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
327152
326414
  return defaultPersonalAccessToken;
327153
326415
  }
327154
326416
  }
327155
- return esm_default6({
326417
+ return esm_default5({
327156
326418
  message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
327157
326419
  validate(value4) {
327158
326420
  try {
@@ -327278,7 +326540,7 @@ function logoutCommand() {
327278
326540
  }
327279
326541
  const env2 = await loadEnv(false, false);
327280
326542
  const defaultInstance = env2.SETTLEMINT_INSTANCE;
327281
- const instance = await esm_default4({
326543
+ const instance = await esm_default3({
327282
326544
  message: "Select the instance to logout from:",
327283
326545
  choices: instances.map((instance2) => ({
327284
326546
  value: instance2,
@@ -327299,7 +326561,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
327299
326561
  if (verificationChallenges.length === 1) {
327300
326562
  return verificationChallenges[0];
327301
326563
  }
327302
- const verificationChallenge = await esm_default4({
326564
+ const verificationChallenge = await esm_default3({
327303
326565
  message: "Which pincode verification do you want to use?",
327304
326566
  choices: verificationChallenges.map((verificationChallenge2) => ({
327305
326567
  name: verificationChallenge2.name,
@@ -327363,7 +326625,7 @@ function pincodeVerificationResponseCommand() {
327363
326625
  nodeId: selectedBlockchainNode.id
327364
326626
  });
327365
326627
  const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
327366
- const pincode = await esm_default6({
326628
+ const pincode = await esm_default5({
327367
326629
  message: "Enter your pincode",
327368
326630
  validate(value4) {
327369
326631
  if (!value4.trim()) {
@@ -327516,7 +326778,7 @@ async function providerPrompt(platformConfig, argument) {
327516
326778
  if (possibleProviders.length === 1) {
327517
326779
  return possibleProviders[0];
327518
326780
  }
327519
- const provider = await esm_default4({
326781
+ const provider = await esm_default3({
327520
326782
  message: "Which provider do you want to use?",
327521
326783
  choices: platformConfig.deploymentEngineTargets.map((target) => ({
327522
326784
  name: target.name,
@@ -327547,7 +326809,7 @@ async function regionPrompt(provider, argument) {
327547
326809
  if (possibleRegions.length === 1) {
327548
326810
  return possibleRegions[0];
327549
326811
  }
327550
- const region = await esm_default4({
326812
+ const region = await esm_default3({
327551
326813
  message: "Which region do you want to use?",
327552
326814
  choices: provider.clusters.map((cluster) => ({
327553
326815
  name: cluster.name,
@@ -328073,7 +327335,7 @@ async function blockchainNetworkPrompt({
328073
327335
  envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
328074
327336
  isRequired,
328075
327337
  defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
328076
- return esm_default4({
327338
+ return esm_default3({
328077
327339
  message: "Which blockchain network do you want to connect to?",
328078
327340
  choices,
328079
327341
  default: defaultNetwork
@@ -328978,7 +328240,7 @@ function createCommand3() {
328978
328240
 
328979
328241
  // src/prompts/delete-confirmation.prompt.ts
328980
328242
  async function deleteConfirmationPrompt(itemDescription) {
328981
- const confirmation = await esm_default3({
328243
+ const confirmation = await esm_default2({
328982
328244
  message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
328983
328245
  required: true,
328984
328246
  validate(value4) {
@@ -329838,7 +329100,7 @@ function jsonOutput(data) {
329838
329100
  var composer = require_composer();
329839
329101
  var Document = require_Document();
329840
329102
  var Schema = require_Schema();
329841
- var errors5 = require_errors3();
329103
+ var errors4 = require_errors3();
329842
329104
  var Alias = require_Alias();
329843
329105
  var identity2 = require_identity();
329844
329106
  var Pair = require_Pair();
@@ -329854,9 +329116,9 @@ var visit2 = require_visit();
329854
329116
  var $Composer = composer.Composer;
329855
329117
  var $Document = Document.Document;
329856
329118
  var $Schema = Schema.Schema;
329857
- var $YAMLError = errors5.YAMLError;
329858
- var $YAMLParseError = errors5.YAMLParseError;
329859
- var $YAMLWarning = errors5.YAMLWarning;
329119
+ var $YAMLError = errors4.YAMLError;
329120
+ var $YAMLParseError = errors4.YAMLParseError;
329121
+ var $YAMLWarning = errors4.YAMLWarning;
329860
329122
  var $Alias = Alias.Alias;
329861
329123
  var $isAlias = identity2.isAlias;
329862
329124
  var $isCollection = identity2.isCollection;
@@ -330375,7 +329637,7 @@ async function useCasePrompt(platformConfig, argument) {
330375
329637
  if (selectableUseCases.length === 1) {
330376
329638
  return selectableUseCases[0];
330377
329639
  }
330378
- const useCase = await esm_default4({
329640
+ const useCase = await esm_default3({
330379
329641
  message: "Which use case do you want to use?",
330380
329642
  choices: selectableUseCases.map((useCase2) => ({
330381
329643
  name: formatUseCaseName(useCase2.name),
@@ -330433,7 +329695,7 @@ function createCommand4() {
330433
329695
  const targetDir = formatTargetDir(name3);
330434
329696
  const projectDir = join9(process.cwd(), targetDir);
330435
329697
  if (await exists3(projectDir) && !await isEmpty(projectDir)) {
330436
- const confirmEmpty = await esm_default5({
329698
+ const confirmEmpty = await esm_default4({
330437
329699
  message: `The folder ${projectDir} already exists. Do you want to delete it?`,
330438
329700
  default: false
330439
329701
  });
@@ -330463,11 +329725,11 @@ function createCommand4() {
330463
329725
 
330464
329726
  // src/utils/commands/passthrough-options.ts
330465
329727
  function mapPassthroughOptions(options, command) {
330466
- const optionArgs = Object.entries(options).map(([key3, value4]) => {
329728
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
330467
329729
  if (value4 === true) {
330468
- return `--${key3}`;
329730
+ return `--${key2}`;
330469
329731
  }
330470
- return `--${key3}=${value4}`;
329732
+ return `--${key2}=${value4}`;
330471
329733
  });
330472
329734
  return [...optionArgs, ...command.args];
330473
329735
  }
@@ -330723,7 +329985,7 @@ async function addressPrompt({
330723
329985
  hardhatConfig
330724
329986
  }) {
330725
329987
  if (!node) {
330726
- return esm_default3({
329988
+ return esm_default2({
330727
329989
  message: "Which private key address do you want to deploy from?",
330728
329990
  validate: (value4) => {
330729
329991
  if (!isAddress(value4)) {
@@ -330743,7 +330005,7 @@ async function addressPrompt({
330743
330005
  note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
330744
330006
  Please select another key or activate this key on the node and try again.`, "warn");
330745
330007
  }
330746
- const address = await esm_default4({
330008
+ const address = await esm_default3({
330747
330009
  message: "Which private key do you want to deploy from?",
330748
330010
  choices: possiblePrivateKeys.map(({ address: address2, name: name3 }) => ({
330749
330011
  name: name3,
@@ -331696,4 +330958,4 @@ async function sdkCliCommand(argv = process.argv) {
331696
330958
  // src/cli.ts
331697
330959
  sdkCliCommand();
331698
330960
 
331699
- //# debugId=FFD67B8C17020EB264756E2164756E21
330961
+ //# debugId=86BCFD06D813788764756E2164756E21