@settlemint/sdk-cli 2.5.1-pr59c2ec7c → 2.5.1-pr5c5f163d

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 +1034 -261
  2. package/dist/cli.js.map +28 -13
  3. package/package.json +10 -10
package/dist/cli.js CHANGED
@@ -231623,7 +231623,7 @@ function size(value4) {
231623
231623
  var init_size = () => {};
231624
231624
 
231625
231625
  // ../../node_modules/viem/_esm/errors/version.js
231626
- var version5 = "2.32.0";
231626
+ var version5 = "2.33.0";
231627
231627
 
231628
231628
  // ../../node_modules/viem/_esm/errors/base.js
231629
231629
  function walk(err, fn) {
@@ -239020,7 +239020,7 @@ var init_ccip2 = __esm(() => {
239020
239020
 
239021
239021
  // ../../node_modules/viem/_esm/actions/public/call.js
239022
239022
  async function call(client, args) {
239023
- const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "latest", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
239023
+ const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = client.experimental_blockTag ?? "latest", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
239024
239024
  const account = account_ ? parseAccount(account_) : undefined;
239025
239025
  if (code2 && (factory || factoryData))
239026
239026
  throw new BaseError2("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
@@ -239128,7 +239128,7 @@ function shouldPerformMulticall({ request: request2 }) {
239128
239128
  }
239129
239129
  async function scheduleMulticall(client, args) {
239130
239130
  const { batchSize = 1024, wait = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
239131
- const { blockNumber, blockTag = "latest", data, multicallAddress: multicallAddress_, to } = args;
239131
+ const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", data, multicallAddress: multicallAddress_, to } = args;
239132
239132
  let multicallAddress = multicallAddress_;
239133
239133
  if (!multicallAddress) {
239134
239134
  if (!client.chain)
@@ -239297,11 +239297,11 @@ var require_visit = __commonJS((exports) => {
239297
239297
  visit2.BREAK = BREAK;
239298
239298
  visit2.SKIP = SKIP;
239299
239299
  visit2.REMOVE = REMOVE;
239300
- function visit_(key2, node, visitor, path7) {
239301
- const ctrl = callVisitor(key2, node, visitor, path7);
239300
+ function visit_(key3, node, visitor, path7) {
239301
+ const ctrl = callVisitor(key3, node, visitor, path7);
239302
239302
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239303
- replaceNode(key2, path7, ctrl);
239304
- return visit_(key2, ctrl, visitor, path7);
239303
+ replaceNode(key3, path7, ctrl);
239304
+ return visit_(key3, ctrl, visitor, path7);
239305
239305
  }
239306
239306
  if (typeof ctrl !== "symbol") {
239307
239307
  if (identity2.isCollection(node)) {
@@ -239345,11 +239345,11 @@ var require_visit = __commonJS((exports) => {
239345
239345
  visitAsync.BREAK = BREAK;
239346
239346
  visitAsync.SKIP = SKIP;
239347
239347
  visitAsync.REMOVE = REMOVE;
239348
- async function visitAsync_(key2, node, visitor, path7) {
239349
- const ctrl = await callVisitor(key2, node, visitor, path7);
239348
+ async function visitAsync_(key3, node, visitor, path7) {
239349
+ const ctrl = await callVisitor(key3, node, visitor, path7);
239350
239350
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239351
- replaceNode(key2, path7, ctrl);
239352
- return visitAsync_(key2, ctrl, visitor, path7);
239351
+ replaceNode(key3, path7, ctrl);
239352
+ return visitAsync_(key3, ctrl, visitor, path7);
239353
239353
  }
239354
239354
  if (typeof ctrl !== "symbol") {
239355
239355
  if (identity2.isCollection(node)) {
@@ -239399,27 +239399,27 @@ var require_visit = __commonJS((exports) => {
239399
239399
  }
239400
239400
  return visitor;
239401
239401
  }
239402
- function callVisitor(key2, node, visitor, path7) {
239402
+ function callVisitor(key3, node, visitor, path7) {
239403
239403
  if (typeof visitor === "function")
239404
- return visitor(key2, node, path7);
239404
+ return visitor(key3, node, path7);
239405
239405
  if (identity2.isMap(node))
239406
- return visitor.Map?.(key2, node, path7);
239406
+ return visitor.Map?.(key3, node, path7);
239407
239407
  if (identity2.isSeq(node))
239408
- return visitor.Seq?.(key2, node, path7);
239408
+ return visitor.Seq?.(key3, node, path7);
239409
239409
  if (identity2.isPair(node))
239410
- return visitor.Pair?.(key2, node, path7);
239410
+ return visitor.Pair?.(key3, node, path7);
239411
239411
  if (identity2.isScalar(node))
239412
- return visitor.Scalar?.(key2, node, path7);
239412
+ return visitor.Scalar?.(key3, node, path7);
239413
239413
  if (identity2.isAlias(node))
239414
- return visitor.Alias?.(key2, node, path7);
239414
+ return visitor.Alias?.(key3, node, path7);
239415
239415
  return;
239416
239416
  }
239417
- function replaceNode(key2, path7, node) {
239417
+ function replaceNode(key3, path7, node) {
239418
239418
  const parent = path7[path7.length - 1];
239419
239419
  if (identity2.isCollection(parent)) {
239420
- parent.items[key2] = node;
239420
+ parent.items[key3] = node;
239421
239421
  } else if (identity2.isPair(parent)) {
239422
- if (key2 === "key")
239422
+ if (key3 === "key")
239423
239423
  parent.key = node;
239424
239424
  else
239425
239425
  parent.value = node;
@@ -239650,7 +239650,7 @@ var require_anchors = __commonJS((exports) => {
239650
239650
 
239651
239651
  // ../../node_modules/yaml/dist/doc/applyReviver.js
239652
239652
  var require_applyReviver = __commonJS((exports) => {
239653
- function applyReviver(reviver, obj, key2, val) {
239653
+ function applyReviver(reviver, obj, key3, val) {
239654
239654
  if (val && typeof val === "object") {
239655
239655
  if (Array.isArray(val)) {
239656
239656
  for (let i7 = 0, len = val.length;i7 < len; ++i7) {
@@ -239690,7 +239690,7 @@ var require_applyReviver = __commonJS((exports) => {
239690
239690
  }
239691
239691
  }
239692
239692
  }
239693
- return reviver.call(obj, key2, val);
239693
+ return reviver.call(obj, key3, val);
239694
239694
  }
239695
239695
  exports.applyReviver = applyReviver;
239696
239696
  });
@@ -240019,29 +240019,29 @@ var require_Collection = __commonJS((exports) => {
240019
240019
  if (isEmptyPath(path7))
240020
240020
  this.add(value4);
240021
240021
  else {
240022
- const [key2, ...rest] = path7;
240023
- const node = this.get(key2, true);
240022
+ const [key3, ...rest] = path7;
240023
+ const node = this.get(key3, true);
240024
240024
  if (identity2.isCollection(node))
240025
240025
  node.addIn(rest, value4);
240026
240026
  else if (node === undefined && this.schema)
240027
- this.set(key2, collectionFromPath(this.schema, rest, value4));
240027
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
240028
240028
  else
240029
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240029
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
240030
240030
  }
240031
240031
  }
240032
240032
  deleteIn(path7) {
240033
- const [key2, ...rest] = path7;
240033
+ const [key3, ...rest] = path7;
240034
240034
  if (rest.length === 0)
240035
- return this.delete(key2);
240036
- const node = this.get(key2, true);
240035
+ return this.delete(key3);
240036
+ const node = this.get(key3, true);
240037
240037
  if (identity2.isCollection(node))
240038
240038
  return node.deleteIn(rest);
240039
240039
  else
240040
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240040
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
240041
240041
  }
240042
240042
  getIn(path7, keepScalar) {
240043
- const [key2, ...rest] = path7;
240044
- const node = this.get(key2, true);
240043
+ const [key3, ...rest] = path7;
240044
+ const node = this.get(key3, true);
240045
240045
  if (rest.length === 0)
240046
240046
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
240047
240047
  else
@@ -240056,24 +240056,24 @@ var require_Collection = __commonJS((exports) => {
240056
240056
  });
240057
240057
  }
240058
240058
  hasIn(path7) {
240059
- const [key2, ...rest] = path7;
240059
+ const [key3, ...rest] = path7;
240060
240060
  if (rest.length === 0)
240061
- return this.has(key2);
240062
- const node = this.get(key2, true);
240061
+ return this.has(key3);
240062
+ const node = this.get(key3, true);
240063
240063
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
240064
240064
  }
240065
240065
  setIn(path7, value4) {
240066
- const [key2, ...rest] = path7;
240066
+ const [key3, ...rest] = path7;
240067
240067
  if (rest.length === 0) {
240068
- this.set(key2, value4);
240068
+ this.set(key3, value4);
240069
240069
  } else {
240070
- const node = this.get(key2, true);
240070
+ const node = this.get(key3, true);
240071
240071
  if (identity2.isCollection(node))
240072
240072
  node.setIn(rest, value4);
240073
240073
  else if (node === undefined && this.schema)
240074
- this.set(key2, collectionFromPath(this.schema, rest, value4));
240074
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
240075
240075
  else
240076
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240076
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
240077
240077
  }
240078
240078
  }
240079
240079
  }
@@ -240660,19 +240660,19 @@ var require_stringifyPair = __commonJS((exports) => {
240660
240660
  var Scalar = require_Scalar();
240661
240661
  var stringify5 = require_stringify();
240662
240662
  var stringifyComment = require_stringifyComment();
240663
- function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
240663
+ function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
240664
240664
  const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
240665
- let keyComment = identity2.isNode(key2) && key2.comment || null;
240665
+ let keyComment = identity2.isNode(key3) && key3.comment || null;
240666
240666
  if (simpleKeys) {
240667
240667
  if (keyComment) {
240668
240668
  throw new Error("With simple keys, key nodes cannot have comments");
240669
240669
  }
240670
- if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
240670
+ if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
240671
240671
  const msg = "With simple keys, collection cannot be used as a key value";
240672
240672
  throw new Error(msg);
240673
240673
  }
240674
240674
  }
240675
- let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
240675
+ let explicitKey = !simpleKeys && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
240676
240676
  ctx = Object.assign({}, ctx, {
240677
240677
  allNullValues: false,
240678
240678
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -240680,7 +240680,7 @@ var require_stringifyPair = __commonJS((exports) => {
240680
240680
  });
240681
240681
  let keyCommentDone = false;
240682
240682
  let chompKeep = false;
240683
- let str = stringify5.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
240683
+ let str = stringify5.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
240684
240684
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
240685
240685
  if (simpleKeys)
240686
240686
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -240824,7 +240824,7 @@ var require_merge = __commonJS((exports) => {
240824
240824
  }),
240825
240825
  stringify: () => MERGE_KEY
240826
240826
  };
240827
- var isMergeKey = (ctx, key2) => (merge7.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge7.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
240827
+ var isMergeKey = (ctx, key3) => (merge7.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge7.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
240828
240828
  function addMergeToJSMap(ctx, map7, value4) {
240829
240829
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
240830
240830
  if (identity2.isSeq(value4))
@@ -240841,14 +240841,14 @@ var require_merge = __commonJS((exports) => {
240841
240841
  if (!identity2.isMap(source))
240842
240842
  throw new Error("Merge sources must be maps or map aliases");
240843
240843
  const srcMap = source.toJSON(null, ctx, Map);
240844
- for (const [key2, value5] of srcMap) {
240844
+ for (const [key3, value5] of srcMap) {
240845
240845
  if (map7 instanceof Map) {
240846
- if (!map7.has(key2))
240847
- map7.set(key2, value5);
240846
+ if (!map7.has(key3))
240847
+ map7.set(key3, value5);
240848
240848
  } else if (map7 instanceof Set) {
240849
- map7.add(key2);
240850
- } else if (!Object.prototype.hasOwnProperty.call(map7, key2)) {
240851
- Object.defineProperty(map7, key2, {
240849
+ map7.add(key3);
240850
+ } else if (!Object.prototype.hasOwnProperty.call(map7, key3)) {
240851
+ Object.defineProperty(map7, key3, {
240852
240852
  value: value5,
240853
240853
  writable: true,
240854
240854
  enumerable: true,
@@ -240870,19 +240870,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
240870
240870
  var stringify5 = require_stringify();
240871
240871
  var identity2 = require_identity();
240872
240872
  var toJS = require_toJS();
240873
- function addPairToJSMap(ctx, map7, { key: key2, value: value4 }) {
240874
- if (identity2.isNode(key2) && key2.addToJSMap)
240875
- key2.addToJSMap(ctx, map7, value4);
240876
- else if (merge7.isMergeKey(ctx, key2))
240873
+ function addPairToJSMap(ctx, map7, { key: key3, value: value4 }) {
240874
+ if (identity2.isNode(key3) && key3.addToJSMap)
240875
+ key3.addToJSMap(ctx, map7, value4);
240876
+ else if (merge7.isMergeKey(ctx, key3))
240877
240877
  merge7.addMergeToJSMap(ctx, map7, value4);
240878
240878
  else {
240879
- const jsKey = toJS.toJS(key2, "", ctx);
240879
+ const jsKey = toJS.toJS(key3, "", ctx);
240880
240880
  if (map7 instanceof Map) {
240881
240881
  map7.set(jsKey, toJS.toJS(value4, jsKey, ctx));
240882
240882
  } else if (map7 instanceof Set) {
240883
240883
  map7.add(jsKey);
240884
240884
  } else {
240885
- const stringKey = stringifyKey(key2, jsKey, ctx);
240885
+ const stringKey = stringifyKey(key3, jsKey, ctx);
240886
240886
  const jsValue = toJS.toJS(value4, stringKey, ctx);
240887
240887
  if (stringKey in map7)
240888
240888
  Object.defineProperty(map7, stringKey, {
@@ -240897,19 +240897,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
240897
240897
  }
240898
240898
  return map7;
240899
240899
  }
240900
- function stringifyKey(key2, jsKey, ctx) {
240900
+ function stringifyKey(key3, jsKey, ctx) {
240901
240901
  if (jsKey === null)
240902
240902
  return "";
240903
240903
  if (typeof jsKey !== "object")
240904
240904
  return String(jsKey);
240905
- if (identity2.isNode(key2) && ctx?.doc) {
240905
+ if (identity2.isNode(key3) && ctx?.doc) {
240906
240906
  const strCtx = stringify5.createStringifyContext(ctx.doc, {});
240907
240907
  strCtx.anchors = new Set;
240908
240908
  for (const node of ctx.anchors.keys())
240909
240909
  strCtx.anchors.add(node.anchor);
240910
240910
  strCtx.inFlow = true;
240911
240911
  strCtx.inStringifyKey = true;
240912
- const strKey = key2.toString(strCtx);
240912
+ const strKey = key3.toString(strCtx);
240913
240913
  if (!ctx.mapKeyWarned) {
240914
240914
  let jsonStr = JSON.stringify(strKey);
240915
240915
  if (jsonStr.length > 40)
@@ -240930,25 +240930,25 @@ var require_Pair = __commonJS((exports) => {
240930
240930
  var stringifyPair2 = require_stringifyPair();
240931
240931
  var addPairToJSMap = require_addPairToJSMap();
240932
240932
  var identity2 = require_identity();
240933
- function createPair(key2, value4, ctx) {
240934
- const k6 = createNode.createNode(key2, undefined, ctx);
240933
+ function createPair(key3, value4, ctx) {
240934
+ const k6 = createNode.createNode(key3, undefined, ctx);
240935
240935
  const v7 = createNode.createNode(value4, undefined, ctx);
240936
240936
  return new Pair(k6, v7);
240937
240937
  }
240938
240938
 
240939
240939
  class Pair {
240940
- constructor(key2, value4 = null) {
240940
+ constructor(key3, value4 = null) {
240941
240941
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
240942
- this.key = key2;
240942
+ this.key = key3;
240943
240943
  this.value = value4;
240944
240944
  }
240945
240945
  clone(schema) {
240946
- let { key: key2, value: value4 } = this;
240947
- if (identity2.isNode(key2))
240948
- key2 = key2.clone(schema);
240946
+ let { key: key3, value: value4 } = this;
240947
+ if (identity2.isNode(key3))
240948
+ key3 = key3.clone(schema);
240949
240949
  if (identity2.isNode(value4))
240950
240950
  value4 = value4.clone(schema);
240951
- return new Pair(key2, value4);
240951
+ return new Pair(key3, value4);
240952
240952
  }
240953
240953
  toJSON(_6, ctx) {
240954
240954
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -241115,11 +241115,11 @@ var require_YAMLMap = __commonJS((exports) => {
241115
241115
  var identity2 = require_identity();
241116
241116
  var Pair = require_Pair();
241117
241117
  var Scalar = require_Scalar();
241118
- function findPair(items, key2) {
241119
- const k6 = identity2.isScalar(key2) ? key2.value : key2;
241118
+ function findPair(items, key3) {
241119
+ const k6 = identity2.isScalar(key3) ? key3.value : key3;
241120
241120
  for (const it2 of items) {
241121
241121
  if (identity2.isPair(it2)) {
241122
- if (it2.key === key2 || it2.key === k6)
241122
+ if (it2.key === key3 || it2.key === k6)
241123
241123
  return it2;
241124
241124
  if (identity2.isScalar(it2.key) && it2.key.value === k6)
241125
241125
  return it2;
@@ -241139,20 +241139,20 @@ var require_YAMLMap = __commonJS((exports) => {
241139
241139
  static from(schema, obj, ctx) {
241140
241140
  const { keepUndefined, replacer } = ctx;
241141
241141
  const map7 = new this(schema);
241142
- const add = (key2, value4) => {
241142
+ const add = (key3, value4) => {
241143
241143
  if (typeof replacer === "function")
241144
- value4 = replacer.call(obj, key2, value4);
241145
- else if (Array.isArray(replacer) && !replacer.includes(key2))
241144
+ value4 = replacer.call(obj, key3, value4);
241145
+ else if (Array.isArray(replacer) && !replacer.includes(key3))
241146
241146
  return;
241147
241147
  if (value4 !== undefined || keepUndefined)
241148
- map7.items.push(Pair.createPair(key2, value4, ctx));
241148
+ map7.items.push(Pair.createPair(key3, value4, ctx));
241149
241149
  };
241150
241150
  if (obj instanceof Map) {
241151
- for (const [key2, value4] of obj)
241152
- add(key2, value4);
241151
+ for (const [key3, value4] of obj)
241152
+ add(key3, value4);
241153
241153
  } else if (obj && typeof obj === "object") {
241154
- for (const key2 of Object.keys(obj))
241155
- add(key2, obj[key2]);
241154
+ for (const key3 of Object.keys(obj))
241155
+ add(key3, obj[key3]);
241156
241156
  }
241157
241157
  if (typeof schema.sortMapEntries === "function") {
241158
241158
  map7.items.sort(schema.sortMapEntries);
@@ -241186,23 +241186,23 @@ var require_YAMLMap = __commonJS((exports) => {
241186
241186
  this.items.push(_pair);
241187
241187
  }
241188
241188
  }
241189
- delete(key2) {
241190
- const it2 = findPair(this.items, key2);
241189
+ delete(key3) {
241190
+ const it2 = findPair(this.items, key3);
241191
241191
  if (!it2)
241192
241192
  return false;
241193
241193
  const del = this.items.splice(this.items.indexOf(it2), 1);
241194
241194
  return del.length > 0;
241195
241195
  }
241196
- get(key2, keepScalar) {
241197
- const it2 = findPair(this.items, key2);
241196
+ get(key3, keepScalar) {
241197
+ const it2 = findPair(this.items, key3);
241198
241198
  const node = it2?.value;
241199
241199
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
241200
241200
  }
241201
- has(key2) {
241202
- return !!findPair(this.items, key2);
241201
+ has(key3) {
241202
+ return !!findPair(this.items, key3);
241203
241203
  }
241204
- set(key2, value4) {
241205
- this.add(new Pair.Pair(key2, value4), true);
241204
+ set(key3, value4) {
241205
+ this.add(new Pair.Pair(key3, value4), true);
241206
241206
  }
241207
241207
  toJSON(_6, ctx, Type) {
241208
241208
  const map7 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -241273,28 +241273,28 @@ var require_YAMLSeq = __commonJS((exports) => {
241273
241273
  add(value4) {
241274
241274
  this.items.push(value4);
241275
241275
  }
241276
- delete(key2) {
241277
- const idx = asItemIndex(key2);
241276
+ delete(key3) {
241277
+ const idx = asItemIndex(key3);
241278
241278
  if (typeof idx !== "number")
241279
241279
  return false;
241280
241280
  const del = this.items.splice(idx, 1);
241281
241281
  return del.length > 0;
241282
241282
  }
241283
- get(key2, keepScalar) {
241284
- const idx = asItemIndex(key2);
241283
+ get(key3, keepScalar) {
241284
+ const idx = asItemIndex(key3);
241285
241285
  if (typeof idx !== "number")
241286
241286
  return;
241287
241287
  const it2 = this.items[idx];
241288
241288
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
241289
241289
  }
241290
- has(key2) {
241291
- const idx = asItemIndex(key2);
241290
+ has(key3) {
241291
+ const idx = asItemIndex(key3);
241292
241292
  return typeof idx === "number" && idx < this.items.length;
241293
241293
  }
241294
- set(key2, value4) {
241295
- const idx = asItemIndex(key2);
241294
+ set(key3, value4) {
241295
+ const idx = asItemIndex(key3);
241296
241296
  if (typeof idx !== "number")
241297
- throw new Error(`Expected a valid index, not ${key2}.`);
241297
+ throw new Error(`Expected a valid index, not ${key3}.`);
241298
241298
  const prev = this.items[idx];
241299
241299
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
241300
241300
  prev.value = value4;
@@ -241328,8 +241328,8 @@ var require_YAMLSeq = __commonJS((exports) => {
241328
241328
  let i7 = 0;
241329
241329
  for (let it2 of obj) {
241330
241330
  if (typeof replacer === "function") {
241331
- const key2 = obj instanceof Set ? it2 : String(i7++);
241332
- it2 = replacer.call(obj, key2, it2);
241331
+ const key3 = obj instanceof Set ? it2 : String(i7++);
241332
+ it2 = replacer.call(obj, key3, it2);
241333
241333
  }
241334
241334
  seq.items.push(createNode.createNode(it2, undefined, ctx));
241335
241335
  }
@@ -241337,8 +241337,8 @@ var require_YAMLSeq = __commonJS((exports) => {
241337
241337
  return seq;
241338
241338
  }
241339
241339
  }
241340
- function asItemIndex(key2) {
241341
- let idx = identity2.isScalar(key2) ? key2.value : key2;
241340
+ function asItemIndex(key3) {
241341
+ let idx = identity2.isScalar(key3) ? key3.value : key3;
241342
241342
  if (idx && typeof idx === "string")
241343
241343
  idx = Number(idx);
241344
241344
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -241711,25 +241711,25 @@ ${cn.comment}` : item.comment;
241711
241711
  for (let it2 of iterable) {
241712
241712
  if (typeof replacer === "function")
241713
241713
  it2 = replacer.call(iterable, String(i7++), it2);
241714
- let key2, value4;
241714
+ let key3, value4;
241715
241715
  if (Array.isArray(it2)) {
241716
241716
  if (it2.length === 2) {
241717
- key2 = it2[0];
241717
+ key3 = it2[0];
241718
241718
  value4 = it2[1];
241719
241719
  } else
241720
241720
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
241721
241721
  } else if (it2 && it2 instanceof Object) {
241722
241722
  const keys = Object.keys(it2);
241723
241723
  if (keys.length === 1) {
241724
- key2 = keys[0];
241725
- value4 = it2[key2];
241724
+ key3 = keys[0];
241725
+ value4 = it2[key3];
241726
241726
  } else {
241727
241727
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
241728
241728
  }
241729
241729
  } else {
241730
- key2 = it2;
241730
+ key3 = it2;
241731
241731
  }
241732
- pairs2.items.push(Pair.createPair(key2, value4, ctx));
241732
+ pairs2.items.push(Pair.createPair(key3, value4, ctx));
241733
241733
  }
241734
241734
  return pairs2;
241735
241735
  }
@@ -241770,16 +241770,16 @@ var require_omap = __commonJS((exports) => {
241770
241770
  if (ctx?.onCreate)
241771
241771
  ctx.onCreate(map7);
241772
241772
  for (const pair of this.items) {
241773
- let key2, value4;
241773
+ let key3, value4;
241774
241774
  if (identity2.isPair(pair)) {
241775
- key2 = toJS.toJS(pair.key, "", ctx);
241776
- value4 = toJS.toJS(pair.value, key2, ctx);
241775
+ key3 = toJS.toJS(pair.key, "", ctx);
241776
+ value4 = toJS.toJS(pair.value, key3, ctx);
241777
241777
  } else {
241778
- key2 = toJS.toJS(pair, "", ctx);
241778
+ key3 = toJS.toJS(pair, "", ctx);
241779
241779
  }
241780
- if (map7.has(key2))
241780
+ if (map7.has(key3))
241781
241781
  throw new Error("Ordered maps must not include duplicate keys");
241782
- map7.set(key2, value4);
241782
+ map7.set(key3, value4);
241783
241783
  }
241784
241784
  return map7;
241785
241785
  }
@@ -241800,12 +241800,12 @@ var require_omap = __commonJS((exports) => {
241800
241800
  resolve(seq, onError) {
241801
241801
  const pairs$1 = pairs.resolvePairs(seq, onError);
241802
241802
  const seenKeys = [];
241803
- for (const { key: key2 } of pairs$1.items) {
241804
- if (identity2.isScalar(key2)) {
241805
- if (seenKeys.includes(key2.value)) {
241806
- onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
241803
+ for (const { key: key3 } of pairs$1.items) {
241804
+ if (identity2.isScalar(key3)) {
241805
+ if (seenKeys.includes(key3.value)) {
241806
+ onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
241807
241807
  } else {
241808
- seenKeys.push(key2.value);
241808
+ seenKeys.push(key3.value);
241809
241809
  }
241810
241810
  }
241811
241811
  }
@@ -241979,30 +241979,30 @@ var require_set = __commonJS((exports) => {
241979
241979
  super(schema);
241980
241980
  this.tag = YAMLSet.tag;
241981
241981
  }
241982
- add(key2) {
241982
+ add(key3) {
241983
241983
  let pair;
241984
- if (identity2.isPair(key2))
241985
- pair = key2;
241986
- else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
241987
- pair = new Pair.Pair(key2.key, null);
241984
+ if (identity2.isPair(key3))
241985
+ pair = key3;
241986
+ else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
241987
+ pair = new Pair.Pair(key3.key, null);
241988
241988
  else
241989
- pair = new Pair.Pair(key2, null);
241989
+ pair = new Pair.Pair(key3, null);
241990
241990
  const prev = YAMLMap.findPair(this.items, pair.key);
241991
241991
  if (!prev)
241992
241992
  this.items.push(pair);
241993
241993
  }
241994
- get(key2, keepPair) {
241995
- const pair = YAMLMap.findPair(this.items, key2);
241994
+ get(key3, keepPair) {
241995
+ const pair = YAMLMap.findPair(this.items, key3);
241996
241996
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
241997
241997
  }
241998
- set(key2, value4) {
241998
+ set(key3, value4) {
241999
241999
  if (typeof value4 !== "boolean")
242000
242000
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
242001
- const prev = YAMLMap.findPair(this.items, key2);
242001
+ const prev = YAMLMap.findPair(this.items, key3);
242002
242002
  if (prev && !value4) {
242003
242003
  this.items.splice(this.items.indexOf(prev), 1);
242004
242004
  } else if (!prev && value4) {
242005
- this.items.push(new Pair.Pair(key2));
242005
+ this.items.push(new Pair.Pair(key3));
242006
242006
  }
242007
242007
  }
242008
242008
  toJSON(_6, ctx) {
@@ -242237,7 +242237,7 @@ var require_tags = __commonJS((exports) => {
242237
242237
  if (Array.isArray(customTags))
242238
242238
  tags = [];
242239
242239
  else {
242240
- const keys = Array.from(schemas3.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
242240
+ const keys = Array.from(schemas3.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
242241
242241
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
242242
242242
  }
242243
242243
  }
@@ -242253,7 +242253,7 @@ var require_tags = __commonJS((exports) => {
242253
242253
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
242254
242254
  if (!tagObj) {
242255
242255
  const tagName = JSON.stringify(tag);
242256
- const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
242256
+ const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
242257
242257
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
242258
242258
  }
242259
242259
  if (!tags2.includes(tagObj))
@@ -242488,13 +242488,13 @@ var require_Document = __commonJS((exports) => {
242488
242488
  setAnchors();
242489
242489
  return node;
242490
242490
  }
242491
- createPair(key2, value4, options = {}) {
242492
- const k6 = this.createNode(key2, null, options);
242491
+ createPair(key3, value4, options = {}) {
242492
+ const k6 = this.createNode(key3, null, options);
242493
242493
  const v7 = this.createNode(value4, null, options);
242494
242494
  return new Pair.Pair(k6, v7);
242495
242495
  }
242496
- delete(key2) {
242497
- return assertCollection(this.contents) ? this.contents.delete(key2) : false;
242496
+ delete(key3) {
242497
+ return assertCollection(this.contents) ? this.contents.delete(key3) : false;
242498
242498
  }
242499
242499
  deleteIn(path7) {
242500
242500
  if (Collection.isEmptyPath(path7)) {
@@ -242505,27 +242505,27 @@ var require_Document = __commonJS((exports) => {
242505
242505
  }
242506
242506
  return assertCollection(this.contents) ? this.contents.deleteIn(path7) : false;
242507
242507
  }
242508
- get(key2, keepScalar) {
242509
- return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
242508
+ get(key3, keepScalar) {
242509
+ return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
242510
242510
  }
242511
242511
  getIn(path7, keepScalar) {
242512
242512
  if (Collection.isEmptyPath(path7))
242513
242513
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
242514
242514
  return identity2.isCollection(this.contents) ? this.contents.getIn(path7, keepScalar) : undefined;
242515
242515
  }
242516
- has(key2) {
242517
- return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
242516
+ has(key3) {
242517
+ return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
242518
242518
  }
242519
242519
  hasIn(path7) {
242520
242520
  if (Collection.isEmptyPath(path7))
242521
242521
  return this.contents !== undefined;
242522
242522
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path7) : false;
242523
242523
  }
242524
- set(key2, value4) {
242524
+ set(key3, value4) {
242525
242525
  if (this.contents == null) {
242526
- this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
242526
+ this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
242527
242527
  } else if (assertCollection(this.contents)) {
242528
- this.contents.set(key2, value4);
242528
+ this.contents.set(key3, value4);
242529
242529
  }
242530
242530
  }
242531
242531
  setIn(path7, value4) {
@@ -242807,25 +242807,25 @@ var require_resolve_props = __commonJS((exports) => {
242807
242807
 
242808
242808
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
242809
242809
  var require_util_contains_newline = __commonJS((exports) => {
242810
- function containsNewline(key2) {
242811
- if (!key2)
242810
+ function containsNewline(key3) {
242811
+ if (!key3)
242812
242812
  return null;
242813
- switch (key2.type) {
242813
+ switch (key3.type) {
242814
242814
  case "alias":
242815
242815
  case "scalar":
242816
242816
  case "double-quoted-scalar":
242817
242817
  case "single-quoted-scalar":
242818
- if (key2.source.includes(`
242818
+ if (key3.source.includes(`
242819
242819
  `))
242820
242820
  return true;
242821
- if (key2.end) {
242822
- for (const st2 of key2.end)
242821
+ if (key3.end) {
242822
+ for (const st2 of key3.end)
242823
242823
  if (st2.type === "newline")
242824
242824
  return true;
242825
242825
  }
242826
242826
  return false;
242827
242827
  case "flow-collection":
242828
- for (const it2 of key2.items) {
242828
+ for (const it2 of key3.items) {
242829
242829
  for (const st2 of it2.start)
242830
242830
  if (st2.type === "newline")
242831
242831
  return true;
@@ -242890,10 +242890,10 @@ var require_resolve_block_map = __commonJS((exports) => {
242890
242890
  let offset = bm.offset;
242891
242891
  let commentEnd = null;
242892
242892
  for (const collItem of bm.items) {
242893
- const { start: start3, key: key2, sep: sep5, value: value4 } = collItem;
242893
+ const { start: start3, key: key3, sep: sep5, value: value4 } = collItem;
242894
242894
  const keyProps = resolveProps.resolveProps(start3, {
242895
242895
  indicator: "explicit-key-ind",
242896
- next: key2 ?? sep5?.[0],
242896
+ next: key3 ?? sep5?.[0],
242897
242897
  offset,
242898
242898
  onError,
242899
242899
  parentIndent: bm.indent,
@@ -242901,10 +242901,10 @@ var require_resolve_block_map = __commonJS((exports) => {
242901
242901
  });
242902
242902
  const implicitKey = !keyProps.found;
242903
242903
  if (implicitKey) {
242904
- if (key2) {
242905
- if (key2.type === "block-seq")
242904
+ if (key3) {
242905
+ if (key3.type === "block-seq")
242906
242906
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
242907
- else if ("indent" in key2 && key2.indent !== bm.indent)
242907
+ else if ("indent" in key3 && key3.indent !== bm.indent)
242908
242908
  onError(offset, "BAD_INDENT", startColMsg);
242909
242909
  }
242910
242910
  if (!keyProps.anchor && !keyProps.tag && !sep5) {
@@ -242918,17 +242918,17 @@ var require_resolve_block_map = __commonJS((exports) => {
242918
242918
  }
242919
242919
  continue;
242920
242920
  }
242921
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
242922
- onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242921
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
242922
+ onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242923
242923
  }
242924
242924
  } else if (keyProps.found?.indent !== bm.indent) {
242925
242925
  onError(offset, "BAD_INDENT", startColMsg);
242926
242926
  }
242927
242927
  ctx.atKey = true;
242928
242928
  const keyStart = keyProps.end;
242929
- const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242929
+ const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242930
242930
  if (ctx.schema.compat)
242931
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
242931
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
242932
242932
  ctx.atKey = false;
242933
242933
  if (utilMapIncludes.mapIncludes(ctx, map7.items, keyNode))
242934
242934
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -242938,7 +242938,7 @@ var require_resolve_block_map = __commonJS((exports) => {
242938
242938
  offset: keyNode.range[2],
242939
242939
  onError,
242940
242940
  parentIndent: bm.indent,
242941
- startOnNewline: !key2 || key2.type === "block-scalar"
242941
+ startOnNewline: !key3 || key3.type === "block-scalar"
242942
242942
  });
242943
242943
  offset = valueProps.end;
242944
242944
  if (valueProps.found) {
@@ -243094,11 +243094,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243094
243094
  let offset = fc.offset + fc.start.source.length;
243095
243095
  for (let i7 = 0;i7 < fc.items.length; ++i7) {
243096
243096
  const collItem = fc.items[i7];
243097
- const { start: start3, key: key2, sep: sep5, value: value4 } = collItem;
243097
+ const { start: start3, key: key3, sep: sep5, value: value4 } = collItem;
243098
243098
  const props = resolveProps.resolveProps(start3, {
243099
243099
  flow: fcName,
243100
243100
  indicator: "explicit-key-ind",
243101
- next: key2 ?? sep5?.[0],
243101
+ next: key3 ?? sep5?.[0],
243102
243102
  offset,
243103
243103
  onError,
243104
243104
  parentIndent: fc.indent,
@@ -243120,8 +243120,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243120
243120
  offset = props.end;
243121
243121
  continue;
243122
243122
  }
243123
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
243124
- onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243123
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
243124
+ onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243125
243125
  }
243126
243126
  if (i7 === 0) {
243127
243127
  if (props.comma)
@@ -243166,8 +243166,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243166
243166
  } else {
243167
243167
  ctx.atKey = true;
243168
243168
  const keyStart = props.end;
243169
- const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
- if (isBlock(key2))
243169
+ const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
+ if (isBlock(key3))
243171
243171
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
243172
243172
  ctx.atKey = false;
243173
243173
  const valueProps = resolveProps.resolveProps(sep5 ?? [], {
@@ -243978,7 +243978,7 @@ var require_composer = __commonJS((exports) => {
243978
243978
  var node_process = __require("process");
243979
243979
  var directives4 = require_directives2();
243980
243980
  var Document = require_Document();
243981
- var errors4 = require_errors3();
243981
+ var errors5 = require_errors3();
243982
243982
  var identity2 = require_identity();
243983
243983
  var composeDoc = require_compose_doc();
243984
243984
  var resolveEnd = require_resolve_end();
@@ -244029,9 +244029,9 @@ var require_composer = __commonJS((exports) => {
244029
244029
  this.onError = (source, code2, message, warning) => {
244030
244030
  const pos = getErrorPos(source);
244031
244031
  if (warning)
244032
- this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
244032
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
244033
244033
  else
244034
- this.errors.push(new errors4.YAMLParseError(pos, code2, message));
244034
+ this.errors.push(new errors5.YAMLParseError(pos, code2, message));
244035
244035
  };
244036
244036
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
244037
244037
  this.options = options;
@@ -244115,7 +244115,7 @@ ${cb}` : comment;
244115
244115
  break;
244116
244116
  case "error": {
244117
244117
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
244118
- const error45 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244118
+ const error45 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244119
244119
  if (this.atDirectives || !this.doc)
244120
244120
  this.errors.push(error45);
244121
244121
  else
@@ -244125,7 +244125,7 @@ ${cb}` : comment;
244125
244125
  case "doc-end": {
244126
244126
  if (!this.doc) {
244127
244127
  const msg = "Unexpected doc-end without preceding document";
244128
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244128
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244129
244129
  break;
244130
244130
  }
244131
244131
  this.doc.directives.docEnd = true;
@@ -244140,7 +244140,7 @@ ${end.comment}` : end.comment;
244140
244140
  break;
244141
244141
  }
244142
244142
  default:
244143
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244143
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244144
244144
  }
244145
244145
  }
244146
244146
  *end(forceDoc = false, endOffset = -1) {
@@ -244166,7 +244166,7 @@ ${end.comment}` : end.comment;
244166
244166
  var require_cst_scalar = __commonJS((exports) => {
244167
244167
  var resolveBlockScalar = require_resolve_block_scalar();
244168
244168
  var resolveFlowScalar = require_resolve_flow_scalar();
244169
- var errors4 = require_errors3();
244169
+ var errors5 = require_errors3();
244170
244170
  var stringifyString = require_stringifyString();
244171
244171
  function resolveAsScalar(token, strict = true, onError) {
244172
244172
  if (token) {
@@ -244175,7 +244175,7 @@ var require_cst_scalar = __commonJS((exports) => {
244175
244175
  if (onError)
244176
244176
  onError(offset, code2, message);
244177
244177
  else
244178
- throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
244178
+ throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
244179
244179
  };
244180
244180
  switch (token.type) {
244181
244181
  case "scalar":
@@ -244289,9 +244289,9 @@ var require_cst_scalar = __commonJS((exports) => {
244289
244289
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
244290
244290
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
244291
244291
  ` });
244292
- for (const key2 of Object.keys(token))
244293
- if (key2 !== "type" && key2 !== "offset")
244294
- delete token[key2];
244292
+ for (const key3 of Object.keys(token))
244293
+ if (key3 !== "type" && key3 !== "offset")
244294
+ delete token[key3];
244295
244295
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
244296
244296
  }
244297
244297
  }
@@ -244340,9 +244340,9 @@ var require_cst_scalar = __commonJS((exports) => {
244340
244340
  default: {
244341
244341
  const indent2 = "indent" in token ? token.indent : -1;
244342
244342
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
244343
- for (const key2 of Object.keys(token))
244344
- if (key2 !== "type" && key2 !== "offset")
244345
- delete token[key2];
244343
+ for (const key3 of Object.keys(token))
244344
+ if (key3 !== "type" && key3 !== "offset")
244345
+ delete token[key3];
244346
244346
  Object.assign(token, { type: type4, indent: indent2, source, end });
244347
244347
  }
244348
244348
  }
@@ -244394,12 +244394,12 @@ var require_cst_stringify = __commonJS((exports) => {
244394
244394
  }
244395
244395
  }
244396
244396
  }
244397
- function stringifyItem({ start: start3, key: key2, sep: sep5, value: value4 }) {
244397
+ function stringifyItem({ start: start3, key: key3, sep: sep5, value: value4 }) {
244398
244398
  let res = "";
244399
244399
  for (const st2 of start3)
244400
244400
  res += st2.source;
244401
- if (key2)
244402
- res += stringifyToken(key2);
244401
+ if (key3)
244402
+ res += stringifyToken(key3);
244403
244403
  if (sep5)
244404
244404
  for (const st2 of sep5)
244405
244405
  res += st2.source;
@@ -245695,7 +245695,7 @@ var require_parser2 = __commonJS((exports) => {
245695
245695
  });
245696
245696
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
245697
245697
  const start4 = getFirstKeyStartProps(it2.start);
245698
- const key2 = it2.key;
245698
+ const key3 = it2.key;
245699
245699
  const sep5 = it2.sep;
245700
245700
  sep5.push(this.sourceToken);
245701
245701
  delete it2.key;
@@ -245704,7 +245704,7 @@ var require_parser2 = __commonJS((exports) => {
245704
245704
  type: "block-map",
245705
245705
  offset: this.offset,
245706
245706
  indent: this.indent,
245707
- items: [{ start: start4, key: key2, sep: sep5 }]
245707
+ items: [{ start: start4, key: key3, sep: sep5 }]
245708
245708
  });
245709
245709
  } else if (start3.length > 0) {
245710
245710
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -246037,7 +246037,7 @@ var require_parser2 = __commonJS((exports) => {
246037
246037
  var require_public_api = __commonJS((exports) => {
246038
246038
  var composer = require_composer();
246039
246039
  var Document = require_Document();
246040
- var errors4 = require_errors3();
246040
+ var errors5 = require_errors3();
246041
246041
  var log = require_log();
246042
246042
  var identity2 = require_identity();
246043
246043
  var lineCounter = require_line_counter();
@@ -246054,8 +246054,8 @@ var require_public_api = __commonJS((exports) => {
246054
246054
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
246055
246055
  if (prettyErrors && lineCounter2)
246056
246056
  for (const doc2 of docs) {
246057
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246058
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246057
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
246058
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
246059
246059
  }
246060
246060
  if (docs.length > 0)
246061
246061
  return docs;
@@ -246070,13 +246070,13 @@ var require_public_api = __commonJS((exports) => {
246070
246070
  if (!doc2)
246071
246071
  doc2 = _doc;
246072
246072
  else if (doc2.options.logLevel !== "silent") {
246073
- doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246073
+ doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246074
246074
  break;
246075
246075
  }
246076
246076
  }
246077
246077
  if (prettyErrors && lineCounter2) {
246078
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246079
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246078
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
246079
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
246080
246080
  }
246081
246081
  return doc2;
246082
246082
  }
@@ -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-pr59c2ec7c",
265086
+ version: "2.5.1-pr5c5f163d",
265087
265087
  type: "module",
265088
265088
  private: false,
265089
265089
  license: "FSL-1.1-MIT",
@@ -265130,15 +265130,15 @@ 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",
265134
- "@inquirer/input": "4.2.0",
265133
+ "@inquirer/confirm": "5.1.14",
265134
+ "@inquirer/input": "4.2.1",
265135
265135
  "@inquirer/password": "4.0.16",
265136
- "@inquirer/select": "4.2.4",
265137
- "@settlemint/sdk-hasura": "2.5.1-pr59c2ec7c",
265138
- "@settlemint/sdk-js": "2.5.1-pr59c2ec7c",
265139
- "@settlemint/sdk-utils": "2.5.1-pr59c2ec7c",
265140
- "@settlemint/sdk-viem": "2.5.1-pr59c2ec7c",
265141
- "@types/node": "24.0.14",
265136
+ "@inquirer/select": "4.3.0",
265137
+ "@settlemint/sdk-hasura": "2.5.1-pr5c5f163d",
265138
+ "@settlemint/sdk-js": "2.5.1-pr5c5f163d",
265139
+ "@settlemint/sdk-utils": "2.5.1-pr5c5f163d",
265140
+ "@settlemint/sdk-viem": "2.5.1-pr5c5f163d",
265141
+ "@types/node": "24.0.15",
265142
265142
  "@types/semver": "7.7.0",
265143
265143
  "@types/which": "3.0.4",
265144
265144
  "get-tsconfig": "4.10.1",
@@ -265146,7 +265146,7 @@ var package_default = {
265146
265146
  "is-in-ci": "1.0.0",
265147
265147
  semver: "7.7.2",
265148
265148
  slugify: "1.6.6",
265149
- viem: "2.32.0",
265149
+ viem: "2.33.0",
265150
265150
  which: "5.0.0",
265151
265151
  yaml: "2.8.0",
265152
265152
  yoctocolors: "2.1.1"
@@ -303428,7 +303428,14 @@ var esm_default3 = createPrompt((config4, done) => {
303428
303428
  setActive(next);
303429
303429
  }
303430
303430
  } else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
303431
- const position = Number(rl.line) - 1;
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
+ });
303432
303439
  const item = items[position];
303433
303440
  if (item != null && isSelectable(item)) {
303434
303441
  setActive(position);
@@ -304346,8 +304353,7 @@ function formatBlock(block) {
304346
304353
  }
304347
304354
 
304348
304355
  // ../../node_modules/viem/_esm/actions/public/getBlock.js
304349
- async function getBlock(client, { blockHash, blockNumber, blockTag: blockTag_, includeTransactions: includeTransactions_ } = {}) {
304350
- const blockTag = blockTag_ ?? "latest";
304356
+ async function getBlock(client, { blockHash, blockNumber, blockTag = client.experimental_blockTag ?? "latest", includeTransactions: includeTransactions_ } = {}) {
304351
304357
  const includeTransactions = includeTransactions_ ?? false;
304352
304358
  const blockNumberHex = blockNumber !== undefined ? numberToHex(blockNumber) : undefined;
304353
304359
  let block = null;
@@ -304794,7 +304800,7 @@ async function prepareTransactionRequest(client, args) {
304794
304800
 
304795
304801
  // ../../node_modules/viem/_esm/actions/public/getBalance.js
304796
304802
  init_toHex();
304797
- async function getBalance(client, { address, blockNumber, blockTag = "latest" }) {
304803
+ async function getBalance(client, { address, blockNumber, blockTag = client.experimental_blockTag ?? "latest" }) {
304798
304804
  const blockNumberHex = typeof blockNumber === "bigint" ? numberToHex(blockNumber) : undefined;
304799
304805
  const balance = await client.request({
304800
304806
  method: "eth_getBalance",
@@ -304812,7 +304818,11 @@ async function estimateGas(client, args) {
304812
304818
  const { block: block2, request: request3, rpcStateOverride: rpcStateOverride2 } = parameters;
304813
304819
  return client.request({
304814
304820
  method: "eth_estimateGas",
304815
- params: rpcStateOverride2 ? [request3, block2 ?? "latest", rpcStateOverride2] : block2 ? [request3, block2] : [request3]
304821
+ params: rpcStateOverride2 ? [
304822
+ request3,
304823
+ block2 ?? client.experimental_blockTag ?? "latest",
304824
+ rpcStateOverride2
304825
+ ] : block2 ? [request3, block2] : [request3]
304816
304826
  });
304817
304827
  };
304818
304828
  const { accessList, authorizationList, blobs, blobVersionedHashes, blockNumber, blockTag, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, value: value4, stateOverride, ...rest } = await prepareTransactionRequest(client, {
@@ -305626,6 +305636,7 @@ function uid(length = 11) {
305626
305636
  // ../../node_modules/viem/_esm/clients/createClient.js
305627
305637
  function createClient(parameters) {
305628
305638
  const { batch, chain, ccipRead, key: key2 = "base", name: name3 = "Base Client", type: type4 = "base" } = parameters;
305639
+ const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
305629
305640
  const blockTime = chain?.blockTime ?? 12000;
305630
305641
  const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
305631
305642
  const pollingInterval = parameters.pollingInterval ?? defaultPollingInterval;
@@ -305648,7 +305659,8 @@ function createClient(parameters) {
305648
305659
  request: request2,
305649
305660
  transport,
305650
305661
  type: type4,
305651
- uid: uid()
305662
+ uid: uid(),
305663
+ ...experimental_blockTag ? { experimental_blockTag } : {}
305652
305664
  };
305653
305665
  function extend4(base2) {
305654
305666
  return (extendFn) => {
@@ -307391,7 +307403,7 @@ init_transactionRequest();
307391
307403
  init_stateOverride2();
307392
307404
  init_assertRequest();
307393
307405
  async function simulateBlocks(client, parameters) {
307394
- const { blockNumber, blockTag = "latest", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
307406
+ const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
307395
307407
  try {
307396
307408
  const blockStateCalls = [];
307397
307409
  for (const block2 of blocks) {
@@ -308760,16 +308772,24 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
308760
308772
  }
308761
308773
 
308762
308774
  // ../../node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js
308763
- async function waitForTransactionReceipt(client, {
308764
- confirmations = 1,
308765
- hash: hash2,
308766
- onReplaced,
308767
- pollingInterval = client.pollingInterval,
308768
- retryCount = 6,
308769
- retryDelay = ({ count }) => ~~(1 << count) * 200,
308770
- timeout = 180000
308771
- }) {
308775
+ async function waitForTransactionReceipt(client, parameters) {
308776
+ const {
308777
+ checkReplacement = true,
308778
+ confirmations = 1,
308779
+ hash: hash2,
308780
+ onReplaced,
308781
+ retryCount = 6,
308782
+ retryDelay = ({ count }) => ~~(1 << count) * 200,
308783
+ timeout = 180000
308784
+ } = parameters;
308772
308785
  const observerId = stringify3(["waitForTransactionReceipt", client.uid, hash2]);
308786
+ const pollingInterval = (() => {
308787
+ if (parameters.pollingInterval)
308788
+ return parameters.pollingInterval;
308789
+ if (client.chain?.experimental_preconfirmationTime)
308790
+ return client.chain.experimental_preconfirmationTime;
308791
+ return client.pollingInterval;
308792
+ })();
308773
308793
  let transaction;
308774
308794
  let replacedTransaction;
308775
308795
  let receipt;
@@ -308782,7 +308802,16 @@ async function waitForTransactionReceipt(client, {
308782
308802
  _unobserve();
308783
308803
  reject(new WaitForTransactionReceiptTimeoutError({ hash: hash2 }));
308784
308804
  }, timeout) : undefined;
308785
- _unobserve = observe(observerId, { onReplaced, resolve: resolve6, reject }, (emit) => {
308805
+ _unobserve = observe(observerId, { onReplaced, resolve: resolve6, reject }, async (emit) => {
308806
+ receipt = await getAction(client, getTransactionReceipt, "getTransactionReceipt")({ hash: hash2 }).catch(() => {
308807
+ return;
308808
+ });
308809
+ if (receipt && confirmations <= 1) {
308810
+ clearTimeout(timer);
308811
+ emit.resolve(receipt);
308812
+ _unobserve();
308813
+ return;
308814
+ }
308786
308815
  _unwatch = getAction(client, watchBlockNumber, "watchBlockNumber")({
308787
308816
  emitMissed: true,
308788
308817
  emitOnBegin: true,
@@ -308805,7 +308834,7 @@ async function waitForTransactionReceipt(client, {
308805
308834
  done(() => emit.resolve(receipt));
308806
308835
  return;
308807
308836
  }
308808
- if (!transaction) {
308837
+ if (checkReplacement && !transaction) {
308809
308838
  retrying = true;
308810
308839
  await withRetry(async () => {
308811
308840
  transaction = await getAction(client, getTransaction, "getTransaction")({ hash: hash2 });
@@ -308875,7 +308904,7 @@ async function waitForTransactionReceipt(client, {
308875
308904
  return promise4;
308876
308905
  }
308877
308906
  // ../../node_modules/viem/_esm/actions/public/watchBlocks.js
308878
- function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBegin = false, onBlock, onError, includeTransactions: includeTransactions_, poll: poll_, pollingInterval = client.pollingInterval }) {
308907
+ function watchBlocks(client, { blockTag = client.experimental_blockTag ?? "latest", emitMissed = false, emitOnBegin = false, onBlock, onError, includeTransactions: includeTransactions_, poll: poll_, pollingInterval = client.pollingInterval }) {
308879
308908
  const enablePolling = (() => {
308880
308909
  if (typeof poll_ !== "undefined")
308881
308910
  return poll_;
@@ -320842,20 +320871,764 @@ var esm_default4 = createPrompt((config5, done) => {
320842
320871
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
320843
320872
  });
320844
320873
 
320845
- // ../../node_modules/@inquirer/password/dist/esm/index.js
320874
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
320875
+ var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
320876
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
320877
+ class AbortPromptError2 extends Error {
320878
+ name = "AbortPromptError";
320879
+ message = "Prompt was aborted";
320880
+ constructor(options) {
320881
+ super();
320882
+ this.cause = options?.cause;
320883
+ }
320884
+ }
320885
+
320886
+ class CancelPromptError2 extends Error {
320887
+ name = "CancelPromptError";
320888
+ message = "Prompt was canceled";
320889
+ }
320890
+
320891
+ class ExitPromptError2 extends Error {
320892
+ name = "ExitPromptError";
320893
+ }
320894
+
320895
+ class HookError2 extends Error {
320896
+ name = "HookError";
320897
+ }
320898
+
320899
+ class ValidationError2 extends Error {
320900
+ name = "ValidationError";
320901
+ }
320902
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
320903
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
320904
+
320905
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
320906
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
320907
+ var hookStorage2 = new AsyncLocalStorage2;
320908
+ function createStore2(rl) {
320909
+ const store = {
320910
+ rl,
320911
+ hooks: [],
320912
+ hooksCleanup: [],
320913
+ hooksEffect: [],
320914
+ index: 0,
320915
+ handleChange() {}
320916
+ };
320917
+ return store;
320918
+ }
320919
+ function withHooks2(rl, cb) {
320920
+ const store = createStore2(rl);
320921
+ return hookStorage2.run(store, () => {
320922
+ function cycle(render) {
320923
+ store.handleChange = () => {
320924
+ store.index = 0;
320925
+ render();
320926
+ };
320927
+ store.handleChange();
320928
+ }
320929
+ return cb(cycle);
320930
+ });
320931
+ }
320932
+ function getStore2() {
320933
+ const store = hookStorage2.getStore();
320934
+ if (!store) {
320935
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
320936
+ }
320937
+ return store;
320938
+ }
320939
+ function readline3() {
320940
+ return getStore2().rl;
320941
+ }
320942
+ function withUpdates2(fn) {
320943
+ const wrapped = (...args) => {
320944
+ const store = getStore2();
320945
+ let shouldUpdate = false;
320946
+ const oldHandleChange = store.handleChange;
320947
+ store.handleChange = () => {
320948
+ shouldUpdate = true;
320949
+ };
320950
+ const returnValue = fn(...args);
320951
+ if (shouldUpdate) {
320952
+ oldHandleChange();
320953
+ }
320954
+ store.handleChange = oldHandleChange;
320955
+ return returnValue;
320956
+ };
320957
+ return AsyncResource4.bind(wrapped);
320958
+ }
320959
+ function withPointer2(cb) {
320960
+ const store = getStore2();
320961
+ const { index: index2 } = store;
320962
+ const pointer = {
320963
+ get() {
320964
+ return store.hooks[index2];
320965
+ },
320966
+ set(value4) {
320967
+ store.hooks[index2] = value4;
320968
+ },
320969
+ initialized: index2 in store.hooks
320970
+ };
320971
+ const returnValue = cb(pointer);
320972
+ store.index++;
320973
+ return returnValue;
320974
+ }
320975
+ function handleChange2() {
320976
+ getStore2().handleChange();
320977
+ }
320978
+ var effectScheduler2 = {
320979
+ queue(cb) {
320980
+ const store = getStore2();
320981
+ const { index: index2 } = store;
320982
+ store.hooksEffect.push(() => {
320983
+ store.hooksCleanup[index2]?.();
320984
+ const cleanFn = cb(readline3());
320985
+ if (cleanFn != null && typeof cleanFn !== "function") {
320986
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
320987
+ }
320988
+ store.hooksCleanup[index2] = cleanFn;
320989
+ });
320990
+ },
320991
+ run() {
320992
+ const store = getStore2();
320993
+ withUpdates2(() => {
320994
+ store.hooksEffect.forEach((effect) => {
320995
+ effect();
320996
+ });
320997
+ store.hooksEffect.length = 0;
320998
+ })();
320999
+ },
321000
+ clearAll() {
321001
+ const store = getStore2();
321002
+ store.hooksCleanup.forEach((cleanFn) => {
321003
+ cleanFn?.();
321004
+ });
321005
+ store.hooksEffect.length = 0;
321006
+ store.hooksCleanup.length = 0;
321007
+ }
321008
+ };
321009
+
321010
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
321011
+ function useState2(defaultValue) {
321012
+ return withPointer2((pointer) => {
321013
+ const setState = AsyncResource5.bind(function setState(newValue) {
321014
+ if (pointer.get() !== newValue) {
321015
+ pointer.set(newValue);
321016
+ handleChange2();
321017
+ }
321018
+ });
321019
+ if (pointer.initialized) {
321020
+ return [pointer.get(), setState];
321021
+ }
321022
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
321023
+ pointer.set(value4);
321024
+ return [value4, setState];
321025
+ });
321026
+ }
321027
+
321028
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
321029
+ function useEffect2(cb, depArray) {
321030
+ withPointer2((pointer) => {
321031
+ const oldDeps = pointer.get();
321032
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
321033
+ if (hasChanged) {
321034
+ effectScheduler2.queue(cb);
321035
+ }
321036
+ pointer.set(depArray);
321037
+ });
321038
+ }
321039
+
321040
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
321041
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
321042
+
321043
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
321044
+ import process8 from "node:process";
321045
+ function isUnicodeSupported3() {
321046
+ if (process8.platform !== "win32") {
321047
+ return process8.env["TERM"] !== "linux";
321048
+ }
321049
+ 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";
321050
+ }
321051
+ var common2 = {
321052
+ circleQuestionMark: "(?)",
321053
+ questionMarkPrefix: "(?)",
321054
+ square: "█",
321055
+ squareDarkShade: "▓",
321056
+ squareMediumShade: "▒",
321057
+ squareLightShade: "░",
321058
+ squareTop: "▀",
321059
+ squareBottom: "▄",
321060
+ squareLeft: "▌",
321061
+ squareRight: "▐",
321062
+ squareCenter: "■",
321063
+ bullet: "●",
321064
+ dot: "․",
321065
+ ellipsis: "…",
321066
+ pointerSmall: "›",
321067
+ triangleUp: "▲",
321068
+ triangleUpSmall: "▴",
321069
+ triangleDown: "▼",
321070
+ triangleDownSmall: "▾",
321071
+ triangleLeftSmall: "◂",
321072
+ triangleRightSmall: "▸",
321073
+ home: "⌂",
321074
+ heart: "♥",
321075
+ musicNote: "♪",
321076
+ musicNoteBeamed: "♫",
321077
+ arrowUp: "↑",
321078
+ arrowDown: "↓",
321079
+ arrowLeft: "←",
321080
+ arrowRight: "→",
321081
+ arrowLeftRight: "↔",
321082
+ arrowUpDown: "↕",
321083
+ almostEqual: "≈",
321084
+ notEqual: "≠",
321085
+ lessOrEqual: "≤",
321086
+ greaterOrEqual: "≥",
321087
+ identical: "≡",
321088
+ infinity: "∞",
321089
+ subscriptZero: "₀",
321090
+ subscriptOne: "₁",
321091
+ subscriptTwo: "₂",
321092
+ subscriptThree: "₃",
321093
+ subscriptFour: "₄",
321094
+ subscriptFive: "₅",
321095
+ subscriptSix: "₆",
321096
+ subscriptSeven: "₇",
321097
+ subscriptEight: "₈",
321098
+ subscriptNine: "₉",
321099
+ oneHalf: "½",
321100
+ oneThird: "⅓",
321101
+ oneQuarter: "¼",
321102
+ oneFifth: "⅕",
321103
+ oneSixth: "⅙",
321104
+ oneEighth: "⅛",
321105
+ twoThirds: "⅔",
321106
+ twoFifths: "⅖",
321107
+ threeQuarters: "¾",
321108
+ threeFifths: "⅗",
321109
+ threeEighths: "⅜",
321110
+ fourFifths: "⅘",
321111
+ fiveSixths: "⅚",
321112
+ fiveEighths: "⅝",
321113
+ sevenEighths: "⅞",
321114
+ line: "─",
321115
+ lineBold: "━",
321116
+ lineDouble: "═",
321117
+ lineDashed0: "┄",
321118
+ lineDashed1: "┅",
321119
+ lineDashed2: "┈",
321120
+ lineDashed3: "┉",
321121
+ lineDashed4: "╌",
321122
+ lineDashed5: "╍",
321123
+ lineDashed6: "╴",
321124
+ lineDashed7: "╶",
321125
+ lineDashed8: "╸",
321126
+ lineDashed9: "╺",
321127
+ lineDashed10: "╼",
321128
+ lineDashed11: "╾",
321129
+ lineDashed12: "−",
321130
+ lineDashed13: "–",
321131
+ lineDashed14: "‐",
321132
+ lineDashed15: "⁃",
321133
+ lineVertical: "│",
321134
+ lineVerticalBold: "┃",
321135
+ lineVerticalDouble: "║",
321136
+ lineVerticalDashed0: "┆",
321137
+ lineVerticalDashed1: "┇",
321138
+ lineVerticalDashed2: "┊",
321139
+ lineVerticalDashed3: "┋",
321140
+ lineVerticalDashed4: "╎",
321141
+ lineVerticalDashed5: "╏",
321142
+ lineVerticalDashed6: "╵",
321143
+ lineVerticalDashed7: "╷",
321144
+ lineVerticalDashed8: "╹",
321145
+ lineVerticalDashed9: "╻",
321146
+ lineVerticalDashed10: "╽",
321147
+ lineVerticalDashed11: "╿",
321148
+ lineDownLeft: "┐",
321149
+ lineDownLeftArc: "╮",
321150
+ lineDownBoldLeftBold: "┓",
321151
+ lineDownBoldLeft: "┒",
321152
+ lineDownLeftBold: "┑",
321153
+ lineDownDoubleLeftDouble: "╗",
321154
+ lineDownDoubleLeft: "╖",
321155
+ lineDownLeftDouble: "╕",
321156
+ lineDownRight: "┌",
321157
+ lineDownRightArc: "╭",
321158
+ lineDownBoldRightBold: "┏",
321159
+ lineDownBoldRight: "┎",
321160
+ lineDownRightBold: "┍",
321161
+ lineDownDoubleRightDouble: "╔",
321162
+ lineDownDoubleRight: "╓",
321163
+ lineDownRightDouble: "╒",
321164
+ lineUpLeft: "┘",
321165
+ lineUpLeftArc: "╯",
321166
+ lineUpBoldLeftBold: "┛",
321167
+ lineUpBoldLeft: "┚",
321168
+ lineUpLeftBold: "┙",
321169
+ lineUpDoubleLeftDouble: "╝",
321170
+ lineUpDoubleLeft: "╜",
321171
+ lineUpLeftDouble: "╛",
321172
+ lineUpRight: "└",
321173
+ lineUpRightArc: "╰",
321174
+ lineUpBoldRightBold: "┗",
321175
+ lineUpBoldRight: "┖",
321176
+ lineUpRightBold: "┕",
321177
+ lineUpDoubleRightDouble: "╚",
321178
+ lineUpDoubleRight: "╙",
321179
+ lineUpRightDouble: "╘",
321180
+ lineUpDownLeft: "┤",
321181
+ lineUpBoldDownBoldLeftBold: "┫",
321182
+ lineUpBoldDownBoldLeft: "┨",
321183
+ lineUpDownLeftBold: "┥",
321184
+ lineUpBoldDownLeftBold: "┩",
321185
+ lineUpDownBoldLeftBold: "┪",
321186
+ lineUpDownBoldLeft: "┧",
321187
+ lineUpBoldDownLeft: "┦",
321188
+ lineUpDoubleDownDoubleLeftDouble: "╣",
321189
+ lineUpDoubleDownDoubleLeft: "╢",
321190
+ lineUpDownLeftDouble: "╡",
321191
+ lineUpDownRight: "├",
321192
+ lineUpBoldDownBoldRightBold: "┣",
321193
+ lineUpBoldDownBoldRight: "┠",
321194
+ lineUpDownRightBold: "┝",
321195
+ lineUpBoldDownRightBold: "┡",
321196
+ lineUpDownBoldRightBold: "┢",
321197
+ lineUpDownBoldRight: "┟",
321198
+ lineUpBoldDownRight: "┞",
321199
+ lineUpDoubleDownDoubleRightDouble: "╠",
321200
+ lineUpDoubleDownDoubleRight: "╟",
321201
+ lineUpDownRightDouble: "╞",
321202
+ lineDownLeftRight: "┬",
321203
+ lineDownBoldLeftBoldRightBold: "┳",
321204
+ lineDownLeftBoldRightBold: "┯",
321205
+ lineDownBoldLeftRight: "┰",
321206
+ lineDownBoldLeftBoldRight: "┱",
321207
+ lineDownBoldLeftRightBold: "┲",
321208
+ lineDownLeftRightBold: "┮",
321209
+ lineDownLeftBoldRight: "┭",
321210
+ lineDownDoubleLeftDoubleRightDouble: "╦",
321211
+ lineDownDoubleLeftRight: "╥",
321212
+ lineDownLeftDoubleRightDouble: "╤",
321213
+ lineUpLeftRight: "┴",
321214
+ lineUpBoldLeftBoldRightBold: "┻",
321215
+ lineUpLeftBoldRightBold: "┷",
321216
+ lineUpBoldLeftRight: "┸",
321217
+ lineUpBoldLeftBoldRight: "┹",
321218
+ lineUpBoldLeftRightBold: "┺",
321219
+ lineUpLeftRightBold: "┶",
321220
+ lineUpLeftBoldRight: "┵",
321221
+ lineUpDoubleLeftDoubleRightDouble: "╩",
321222
+ lineUpDoubleLeftRight: "╨",
321223
+ lineUpLeftDoubleRightDouble: "╧",
321224
+ lineUpDownLeftRight: "┼",
321225
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
321226
+ lineUpDownBoldLeftBoldRightBold: "╈",
321227
+ lineUpBoldDownLeftBoldRightBold: "╇",
321228
+ lineUpBoldDownBoldLeftRightBold: "╊",
321229
+ lineUpBoldDownBoldLeftBoldRight: "╉",
321230
+ lineUpBoldDownLeftRight: "╀",
321231
+ lineUpDownBoldLeftRight: "╁",
321232
+ lineUpDownLeftBoldRight: "┽",
321233
+ lineUpDownLeftRightBold: "┾",
321234
+ lineUpBoldDownBoldLeftRight: "╂",
321235
+ lineUpDownLeftBoldRightBold: "┿",
321236
+ lineUpBoldDownLeftBoldRight: "╃",
321237
+ lineUpBoldDownLeftRightBold: "╄",
321238
+ lineUpDownBoldLeftBoldRight: "╅",
321239
+ lineUpDownBoldLeftRightBold: "╆",
321240
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
321241
+ lineUpDoubleDownDoubleLeftRight: "╫",
321242
+ lineUpDownLeftDoubleRightDouble: "╪",
321243
+ lineCross: "╳",
321244
+ lineBackslash: "╲",
321245
+ lineSlash: "╱"
321246
+ };
321247
+ var specialMainSymbols2 = {
321248
+ tick: "✔",
321249
+ info: "ℹ",
321250
+ warning: "⚠",
321251
+ cross: "✘",
321252
+ squareSmall: "◻",
321253
+ squareSmallFilled: "◼",
321254
+ circle: "◯",
321255
+ circleFilled: "◉",
321256
+ circleDotted: "◌",
321257
+ circleDouble: "◎",
321258
+ circleCircle: "ⓞ",
321259
+ circleCross: "ⓧ",
321260
+ circlePipe: "Ⓘ",
321261
+ radioOn: "◉",
321262
+ radioOff: "◯",
321263
+ checkboxOn: "☒",
321264
+ checkboxOff: "☐",
321265
+ checkboxCircleOn: "ⓧ",
321266
+ checkboxCircleOff: "Ⓘ",
321267
+ pointer: "❯",
321268
+ triangleUpOutline: "△",
321269
+ triangleLeft: "◀",
321270
+ triangleRight: "▶",
321271
+ lozenge: "◆",
321272
+ lozengeOutline: "◇",
321273
+ hamburger: "☰",
321274
+ smiley: "㋡",
321275
+ mustache: "෴",
321276
+ star: "★",
321277
+ play: "▶",
321278
+ nodejs: "⬢",
321279
+ oneSeventh: "⅐",
321280
+ oneNinth: "⅑",
321281
+ oneTenth: "⅒"
321282
+ };
321283
+ var specialFallbackSymbols2 = {
321284
+ tick: "√",
321285
+ info: "i",
321286
+ warning: "‼",
321287
+ cross: "×",
321288
+ squareSmall: "□",
321289
+ squareSmallFilled: "■",
321290
+ circle: "( )",
321291
+ circleFilled: "(*)",
321292
+ circleDotted: "( )",
321293
+ circleDouble: "( )",
321294
+ circleCircle: "(○)",
321295
+ circleCross: "(×)",
321296
+ circlePipe: "(│)",
321297
+ radioOn: "(*)",
321298
+ radioOff: "( )",
321299
+ checkboxOn: "[×]",
321300
+ checkboxOff: "[ ]",
321301
+ checkboxCircleOn: "(×)",
321302
+ checkboxCircleOff: "( )",
321303
+ pointer: ">",
321304
+ triangleUpOutline: "∆",
321305
+ triangleLeft: "◄",
321306
+ triangleRight: "►",
321307
+ lozenge: "♦",
321308
+ lozengeOutline: "◊",
321309
+ hamburger: "≡",
321310
+ smiley: "☺",
321311
+ mustache: "┌─┐",
321312
+ star: "✶",
321313
+ play: "►",
321314
+ nodejs: "♦",
321315
+ oneSeventh: "1/7",
321316
+ oneNinth: "1/9",
321317
+ oneTenth: "1/10"
321318
+ };
321319
+ var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
321320
+ var fallbackSymbols2 = {
321321
+ ...common2,
321322
+ ...specialFallbackSymbols2
321323
+ };
321324
+ var shouldUseMain2 = isUnicodeSupported3();
321325
+ var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
321326
+ var esm_default5 = figures2;
321327
+ var replacements2 = Object.entries(specialMainSymbols2);
321328
+
321329
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
321330
+ var defaultTheme2 = {
321331
+ prefix: {
321332
+ idle: import_yoctocolors_cjs4.default.blue("?"),
321333
+ done: import_yoctocolors_cjs4.default.green(esm_default5.tick)
321334
+ },
321335
+ spinner: {
321336
+ interval: 80,
321337
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
321338
+ },
321339
+ style: {
321340
+ answer: import_yoctocolors_cjs4.default.cyan,
321341
+ message: import_yoctocolors_cjs4.default.bold,
321342
+ error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
321343
+ defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
321344
+ help: import_yoctocolors_cjs4.default.dim,
321345
+ highlight: import_yoctocolors_cjs4.default.cyan,
321346
+ key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
321347
+ }
321348
+ };
321349
+
321350
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
321351
+ function isPlainObject7(value4) {
321352
+ if (typeof value4 !== "object" || value4 === null)
321353
+ return false;
321354
+ let proto = value4;
321355
+ while (Object.getPrototypeOf(proto) !== null) {
321356
+ proto = Object.getPrototypeOf(proto);
321357
+ }
321358
+ return Object.getPrototypeOf(value4) === proto;
321359
+ }
321360
+ function deepMerge3(...objects) {
321361
+ const output = {};
321362
+ for (const obj of objects) {
321363
+ for (const [key2, value4] of Object.entries(obj)) {
321364
+ const prevValue = output[key2];
321365
+ output[key2] = isPlainObject7(prevValue) && isPlainObject7(value4) ? deepMerge3(prevValue, value4) : value4;
321366
+ }
321367
+ }
321368
+ return output;
321369
+ }
321370
+ function makeTheme2(...themes) {
321371
+ const themesToMerge = [
321372
+ defaultTheme2,
321373
+ ...themes.filter((theme) => theme != null)
321374
+ ];
321375
+ return deepMerge3(...themesToMerge);
321376
+ }
321377
+
321378
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
321379
+ function usePrefix2({ status = "idle", theme }) {
321380
+ const [showLoader, setShowLoader] = useState2(false);
321381
+ const [tick, setTick] = useState2(0);
321382
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
321383
+ useEffect2(() => {
321384
+ if (status === "loading") {
321385
+ let tickInterval;
321386
+ let inc = -1;
321387
+ const delayTimeout = setTimeout(() => {
321388
+ setShowLoader(true);
321389
+ tickInterval = setInterval(() => {
321390
+ inc = inc + 1;
321391
+ setTick(inc % spinner2.frames.length);
321392
+ }, spinner2.interval);
321393
+ }, 300);
321394
+ return () => {
321395
+ clearTimeout(delayTimeout);
321396
+ clearInterval(tickInterval);
321397
+ };
321398
+ } else {
321399
+ setShowLoader(false);
321400
+ }
321401
+ }, [status]);
321402
+ if (showLoader) {
321403
+ return spinner2.frames[tick];
321404
+ }
321405
+ const iconName = status === "loading" ? "idle" : status;
321406
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
321407
+ }
321408
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
321409
+ function useRef2(val) {
321410
+ return useState2({ current: val })[0];
321411
+ }
321412
+
321413
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
321414
+ function useKeypress2(userHandler) {
321415
+ const signal = useRef2(userHandler);
321416
+ signal.current = userHandler;
321417
+ useEffect2((rl) => {
321418
+ let ignore = false;
321419
+ const handler = withUpdates2((_input, event) => {
321420
+ if (ignore)
321421
+ return;
321422
+ signal.current(event, rl);
321423
+ });
321424
+ rl.input.on("keypress", handler);
321425
+ return () => {
321426
+ ignore = true;
321427
+ rl.input.removeListener("keypress", handler);
321428
+ };
321429
+ }, []);
321430
+ }
321431
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
321432
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
321433
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
321434
+ function breakLines2(content, width) {
321435
+ return content.split(`
321436
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
321437
+ `).map((str) => str.trimEnd())).join(`
321438
+ `);
321439
+ }
321440
+ function readlineWidth2() {
321441
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
321442
+ }
321443
+
321444
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
321445
+ var import_mute_stream2 = __toESM(require_lib(), 1);
321446
+ import * as readline4 from "node:readline";
321447
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
321448
+
321449
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
320846
321450
  var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
320847
- var esm_default5 = createPrompt((config5, done) => {
321451
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
321452
+ var height2 = (content) => content.split(`
321453
+ `).length;
321454
+ var lastLine2 = (content) => content.split(`
321455
+ `).pop() ?? "";
321456
+ function cursorDown2(n6) {
321457
+ return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
321458
+ }
321459
+
321460
+ class ScreenManager2 {
321461
+ height = 0;
321462
+ extraLinesUnderPrompt = 0;
321463
+ cursorPos;
321464
+ rl;
321465
+ constructor(rl) {
321466
+ this.rl = rl;
321467
+ this.cursorPos = rl.getCursorPos();
321468
+ }
321469
+ write(content) {
321470
+ this.rl.output.unmute();
321471
+ this.rl.output.write(content);
321472
+ this.rl.output.mute();
321473
+ }
321474
+ render(content, bottomContent = "") {
321475
+ const promptLine = lastLine2(content);
321476
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
321477
+ let prompt = rawPromptLine;
321478
+ if (this.rl.line.length > 0) {
321479
+ prompt = prompt.slice(0, -this.rl.line.length);
321480
+ }
321481
+ this.rl.setPrompt(prompt);
321482
+ this.cursorPos = this.rl.getCursorPos();
321483
+ const width = readlineWidth2();
321484
+ content = breakLines2(content, width);
321485
+ bottomContent = breakLines2(bottomContent, width);
321486
+ if (rawPromptLine.length % width === 0) {
321487
+ content += `
321488
+ `;
321489
+ }
321490
+ let output = content + (bottomContent ? `
321491
+ ` + bottomContent : "");
321492
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
321493
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
321494
+ if (bottomContentHeight > 0)
321495
+ output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
321496
+ output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
321497
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
321498
+ this.extraLinesUnderPrompt = bottomContentHeight;
321499
+ this.height = height2(output);
321500
+ }
321501
+ checkCursorPos() {
321502
+ const cursorPos = this.rl.getCursorPos();
321503
+ if (cursorPos.cols !== this.cursorPos.cols) {
321504
+ this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
321505
+ this.cursorPos = cursorPos;
321506
+ }
321507
+ }
321508
+ done({ clearContent }) {
321509
+ this.rl.setPrompt("");
321510
+ let output = cursorDown2(this.extraLinesUnderPrompt);
321511
+ output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
321512
+ `;
321513
+ output += import_ansi_escapes3.default.cursorShow;
321514
+ this.write(output);
321515
+ this.rl.close();
321516
+ }
321517
+ }
321518
+
321519
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
321520
+ class PromisePolyfill2 extends Promise {
321521
+ static withResolver() {
321522
+ let resolve6;
321523
+ let reject;
321524
+ const promise5 = new Promise((res, rej) => {
321525
+ resolve6 = res;
321526
+ reject = rej;
321527
+ });
321528
+ return { promise: promise5, resolve: resolve6, reject };
321529
+ }
321530
+ }
321531
+
321532
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
321533
+ function getCallSites2() {
321534
+ const _prepareStackTrace = Error.prepareStackTrace;
321535
+ let result = [];
321536
+ try {
321537
+ Error.prepareStackTrace = (_5, callSites) => {
321538
+ const callSitesWithoutCurrent = callSites.slice(1);
321539
+ result = callSitesWithoutCurrent;
321540
+ return callSitesWithoutCurrent;
321541
+ };
321542
+ new Error().stack;
321543
+ } catch {
321544
+ return result;
321545
+ }
321546
+ Error.prepareStackTrace = _prepareStackTrace;
321547
+ return result;
321548
+ }
321549
+ function createPrompt2(view) {
321550
+ const callSites = getCallSites2();
321551
+ const prompt = (config5, context = {}) => {
321552
+ const { input = process.stdin, signal } = context;
321553
+ const cleanups = new Set;
321554
+ const output = new import_mute_stream2.default;
321555
+ output.pipe(context.output ?? process.stdout);
321556
+ const rl = readline4.createInterface({
321557
+ terminal: true,
321558
+ input,
321559
+ output
321560
+ });
321561
+ const screen = new ScreenManager2(rl);
321562
+ const { promise: promise5, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
321563
+ const cancel3 = () => reject(new CancelPromptError2);
321564
+ if (signal) {
321565
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
321566
+ if (signal.aborted) {
321567
+ abort();
321568
+ return Object.assign(promise5, { cancel: cancel3 });
321569
+ }
321570
+ signal.addEventListener("abort", abort);
321571
+ cleanups.add(() => signal.removeEventListener("abort", abort));
321572
+ }
321573
+ cleanups.add(onExit((code2, signal2) => {
321574
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
321575
+ }));
321576
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
321577
+ rl.on("SIGINT", sigint);
321578
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
321579
+ const checkCursorPos = () => screen.checkCursorPos();
321580
+ rl.input.on("keypress", checkCursorPos);
321581
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
321582
+ return withHooks2(rl, (cycle) => {
321583
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
321584
+ rl.on("close", hooksCleanup);
321585
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
321586
+ cycle(() => {
321587
+ try {
321588
+ const nextView = view(config5, (value4) => {
321589
+ setImmediate(() => resolve6(value4));
321590
+ });
321591
+ if (nextView === undefined) {
321592
+ const callerFilename = callSites[1]?.getFileName();
321593
+ throw new Error(`Prompt functions must return a string.
321594
+ at ${callerFilename}`);
321595
+ }
321596
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
321597
+ screen.render(content, bottomContent);
321598
+ effectScheduler2.run();
321599
+ } catch (error45) {
321600
+ reject(error45);
321601
+ }
321602
+ });
321603
+ return Object.assign(promise5.then((answer) => {
321604
+ effectScheduler2.clearAll();
321605
+ return answer;
321606
+ }, (error45) => {
321607
+ effectScheduler2.clearAll();
321608
+ throw error45;
321609
+ }).finally(() => {
321610
+ cleanups.forEach((cleanup) => cleanup());
321611
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
321612
+ output.end();
321613
+ }).then(() => promise5), { cancel: cancel3 });
321614
+ });
321615
+ };
321616
+ return prompt;
321617
+ }
321618
+ // ../../node_modules/@inquirer/password/dist/esm/index.js
321619
+ var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
321620
+ var esm_default6 = createPrompt2((config5, done) => {
320848
321621
  const { validate: validate5 = () => true } = config5;
320849
- const theme = makeTheme(config5.theme);
320850
- const [status, setStatus] = useState("idle");
320851
- const [errorMsg, setError] = useState();
320852
- const [value4, setValue] = useState("");
320853
- const prefix = usePrefix({ status, theme });
320854
- useKeypress(async (key2, rl) => {
321622
+ const theme = makeTheme2(config5.theme);
321623
+ const [status, setStatus] = useState2("idle");
321624
+ const [errorMsg, setError] = useState2();
321625
+ const [value4, setValue] = useState2("");
321626
+ const prefix = usePrefix2({ status, theme });
321627
+ useKeypress2(async (key3, rl) => {
320855
321628
  if (status !== "idle") {
320856
321629
  return;
320857
321630
  }
320858
- if (isEnterKey(key2)) {
321631
+ if (isEnterKey2(key3)) {
320859
321632
  const answer = value4;
320860
321633
  setStatus("loading");
320861
321634
  const isValid = await validate5(answer);
@@ -320880,7 +321653,7 @@ var esm_default5 = createPrompt((config5, done) => {
320880
321653
  const maskChar = typeof config5.mask === "string" ? config5.mask : "*";
320881
321654
  formattedValue = maskChar.repeat(value4.length);
320882
321655
  } else if (status !== "done") {
320883
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
321656
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
320884
321657
  }
320885
321658
  if (status === "done") {
320886
321659
  formattedValue = theme.style.answer(formattedValue);
@@ -320978,7 +321751,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320978
321751
  return aat;
320979
321752
  } catch (_error) {}
320980
321753
  }
320981
- return esm_default5({
321754
+ return esm_default6({
320982
321755
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
320983
321756
  validate(value4) {
320984
321757
  try {
@@ -321444,7 +322217,7 @@ async function serviceSecretPrompt({
321444
322217
  return defaultSecret;
321445
322218
  }
321446
322219
  }
321447
- const serviceSecret = await esm_default5({
322220
+ const serviceSecret = await esm_default6({
321448
322221
  message
321449
322222
  });
321450
322223
  return serviceSecret || undefined;
@@ -322558,7 +323331,7 @@ var basename2 = function(p5, extension) {
322558
323331
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
322559
323332
  };
322560
323333
  // ../../node_modules/defu/dist/defu.mjs
322561
- function isPlainObject7(value4) {
323334
+ function isPlainObject8(value4) {
322562
323335
  if (value4 === null || typeof value4 !== "object") {
322563
323336
  return false;
322564
323337
  }
@@ -322575,27 +323348,27 @@ function isPlainObject7(value4) {
322575
323348
  return true;
322576
323349
  }
322577
323350
  function _defu(baseObject, defaults4, namespace = ".", merger) {
322578
- if (!isPlainObject7(defaults4)) {
323351
+ if (!isPlainObject8(defaults4)) {
322579
323352
  return _defu(baseObject, {}, namespace, merger);
322580
323353
  }
322581
323354
  const object5 = Object.assign({}, defaults4);
322582
- for (const key2 in baseObject) {
322583
- if (key2 === "__proto__" || key2 === "constructor") {
323355
+ for (const key3 in baseObject) {
323356
+ if (key3 === "__proto__" || key3 === "constructor") {
322584
323357
  continue;
322585
323358
  }
322586
- const value4 = baseObject[key2];
323359
+ const value4 = baseObject[key3];
322587
323360
  if (value4 === null || value4 === undefined) {
322588
323361
  continue;
322589
323362
  }
322590
- if (merger && merger(object5, key2, value4, namespace)) {
323363
+ if (merger && merger(object5, key3, value4, namespace)) {
322591
323364
  continue;
322592
323365
  }
322593
- if (Array.isArray(value4) && Array.isArray(object5[key2])) {
322594
- object5[key2] = [...value4, ...object5[key2]];
322595
- } else if (isPlainObject7(value4) && isPlainObject7(object5[key2])) {
322596
- object5[key2] = _defu(value4, object5[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
323366
+ if (Array.isArray(value4) && Array.isArray(object5[key3])) {
323367
+ object5[key3] = [...value4, ...object5[key3]];
323368
+ } else if (isPlainObject8(value4) && isPlainObject8(object5[key3])) {
323369
+ object5[key3] = _defu(value4, object5[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
322597
323370
  } else {
322598
- object5[key2] = value4;
323371
+ object5[key3] = value4;
322599
323372
  }
322600
323373
  }
322601
323374
  return object5;
@@ -322604,15 +323377,15 @@ function createDefu(merger) {
322604
323377
  return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
322605
323378
  }
322606
323379
  var defu = createDefu();
322607
- var defuFn = createDefu((object5, key2, currentValue) => {
322608
- if (object5[key2] !== undefined && typeof currentValue === "function") {
322609
- object5[key2] = currentValue(object5[key2]);
323380
+ var defuFn = createDefu((object5, key3, currentValue) => {
323381
+ if (object5[key3] !== undefined && typeof currentValue === "function") {
323382
+ object5[key3] = currentValue(object5[key3]);
322610
323383
  return true;
322611
323384
  }
322612
323385
  });
322613
- var defuArrayFn = createDefu((object5, key2, currentValue) => {
322614
- if (Array.isArray(object5[key2]) && typeof currentValue === "function") {
322615
- object5[key2] = currentValue(object5[key2]);
323386
+ var defuArrayFn = createDefu((object5, key3, currentValue) => {
323387
+ if (Array.isArray(object5[key3]) && typeof currentValue === "function") {
323388
+ object5[key3] = currentValue(object5[key3]);
322616
323389
  return true;
322617
323390
  }
322618
323391
  });
@@ -325822,11 +326595,11 @@ function cacheDirectory() {
325822
326595
  }
325823
326596
  function normalizeHeaders(headers = {}) {
325824
326597
  const normalized = {};
325825
- for (const [key2, value4] of Object.entries(headers)) {
326598
+ for (const [key3, value4] of Object.entries(headers)) {
325826
326599
  if (!value4) {
325827
326600
  continue;
325828
326601
  }
325829
- normalized[key2.toLowerCase()] = value4;
326602
+ normalized[key3.toLowerCase()] = value4;
325830
326603
  }
325831
326604
  return normalized;
325832
326605
  }
@@ -326385,7 +327158,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
326385
327158
  return defaultPersonalAccessToken;
326386
327159
  }
326387
327160
  }
326388
- return esm_default5({
327161
+ return esm_default6({
326389
327162
  message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
326390
327163
  validate(value4) {
326391
327164
  try {
@@ -326596,7 +327369,7 @@ function pincodeVerificationResponseCommand() {
326596
327369
  nodeId: selectedBlockchainNode.id
326597
327370
  });
326598
327371
  const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
326599
- const pincode = await esm_default5({
327372
+ const pincode = await esm_default6({
326600
327373
  message: "Enter your pincode",
326601
327374
  validate(value4) {
326602
327375
  if (!value4.trim()) {
@@ -329071,7 +329844,7 @@ function jsonOutput(data) {
329071
329844
  var composer = require_composer();
329072
329845
  var Document = require_Document();
329073
329846
  var Schema = require_Schema();
329074
- var errors4 = require_errors3();
329847
+ var errors5 = require_errors3();
329075
329848
  var Alias = require_Alias();
329076
329849
  var identity2 = require_identity();
329077
329850
  var Pair = require_Pair();
@@ -329087,9 +329860,9 @@ var visit2 = require_visit();
329087
329860
  var $Composer = composer.Composer;
329088
329861
  var $Document = Document.Document;
329089
329862
  var $Schema = Schema.Schema;
329090
- var $YAMLError = errors4.YAMLError;
329091
- var $YAMLParseError = errors4.YAMLParseError;
329092
- var $YAMLWarning = errors4.YAMLWarning;
329863
+ var $YAMLError = errors5.YAMLError;
329864
+ var $YAMLParseError = errors5.YAMLParseError;
329865
+ var $YAMLWarning = errors5.YAMLWarning;
329093
329866
  var $Alias = Alias.Alias;
329094
329867
  var $isAlias = identity2.isAlias;
329095
329868
  var $isCollection = identity2.isCollection;
@@ -329696,11 +330469,11 @@ function createCommand4() {
329696
330469
 
329697
330470
  // src/utils/commands/passthrough-options.ts
329698
330471
  function mapPassthroughOptions(options, command) {
329699
- const optionArgs = Object.entries(options).map(([key2, value4]) => {
330472
+ const optionArgs = Object.entries(options).map(([key3, value4]) => {
329700
330473
  if (value4 === true) {
329701
- return `--${key2}`;
330474
+ return `--${key3}`;
329702
330475
  }
329703
- return `--${key2}=${value4}`;
330476
+ return `--${key3}=${value4}`;
329704
330477
  });
329705
330478
  return [...optionArgs, ...command.args];
329706
330479
  }
@@ -330929,4 +331702,4 @@ async function sdkCliCommand(argv = process.argv) {
330929
331702
  // src/cli.ts
330930
331703
  sdkCliCommand();
330931
331704
 
330932
- //# debugId=9FCFC650C3ED596364756E2164756E21
331705
+ //# debugId=A308F9D84C5378E464756E2164756E21