@settlemint/sdk-cli 2.3.2-pr2274a4c0 → 2.3.2-pr31e5a661

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 +268 -437
  2. package/dist/cli.js.map +13 -15
  3. package/package.json +4 -3
package/dist/cli.js CHANGED
@@ -232319,7 +232319,7 @@ var init_toBytes = __esm(() => {
232319
232319
  };
232320
232320
  });
232321
232321
 
232322
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/_assert.js
232322
+ // ../../node_modules/@noble/hashes/esm/_assert.js
232323
232323
  function anumber(n6) {
232324
232324
  if (!Number.isSafeInteger(n6) || n6 < 0)
232325
232325
  throw new Error("positive integer expected, got " + n6);
@@ -232354,7 +232354,7 @@ function aoutput(out, instance) {
232354
232354
  }
232355
232355
  var init__assert = () => {};
232356
232356
 
232357
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/_u64.js
232357
+ // ../../node_modules/@noble/hashes/esm/_u64.js
232358
232358
  function fromBig(n6, le4 = false) {
232359
232359
  if (le4)
232360
232360
  return { h: Number(n6 & U32_MASK64), l: Number(n6 >> _32n & U32_MASK64) };
@@ -232375,14 +232375,14 @@ var init__u64 = __esm(() => {
232375
232375
  _32n = /* @__PURE__ */ BigInt(32);
232376
232376
  });
232377
232377
 
232378
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/cryptoNode.js
232378
+ // ../../node_modules/@noble/hashes/esm/cryptoNode.js
232379
232379
  import * as nc from "node:crypto";
232380
232380
  var crypto2;
232381
232381
  var init_cryptoNode = __esm(() => {
232382
232382
  crypto2 = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && ("randomBytes" in nc) ? nc : undefined;
232383
232383
  });
232384
232384
 
232385
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/utils.js
232385
+ // ../../node_modules/@noble/hashes/esm/utils.js
232386
232386
  function u32(arr) {
232387
232387
  return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
232388
232388
  }
@@ -232466,7 +232466,7 @@ var init_utils2 = __esm(() => {
232466
232466
  hasHexBuiltin = typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function";
232467
232467
  });
232468
232468
 
232469
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/sha3.js
232469
+ // ../../node_modules/@noble/hashes/esm/sha3.js
232470
232470
  function keccakP(s7, rounds = 24) {
232471
232471
  const B4 = new Uint32Array(5 * 2);
232472
232472
  for (let round = 24 - rounds;round < 24; round++) {
@@ -234796,7 +234796,7 @@ var init_rpc = __esm(() => {
234796
234796
  };
234797
234797
  });
234798
234798
 
234799
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/_md.js
234799
+ // ../../node_modules/@noble/hashes/esm/_md.js
234800
234800
  function setBigUint64(view, byteOffset, value4, isLE2) {
234801
234801
  if (typeof view.setBigUint64 === "function")
234802
234802
  return view.setBigUint64(byteOffset, value4, isLE2);
@@ -234907,7 +234907,7 @@ var init__md = __esm(() => {
234907
234907
  };
234908
234908
  });
234909
234909
 
234910
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/sha256.js
234910
+ // ../../node_modules/@noble/hashes/esm/sha256.js
234911
234911
  var SHA256_K, SHA256_IV, SHA256_W, SHA256, sha256;
234912
234912
  var init_sha256 = __esm(() => {
234913
234913
  init__md();
@@ -235061,12 +235061,12 @@ var init_sha256 = __esm(() => {
235061
235061
  sha256 = /* @__PURE__ */ wrapConstructor(() => new SHA256);
235062
235062
  });
235063
235063
 
235064
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/sha2.js
235064
+ // ../../node_modules/@noble/hashes/esm/sha2.js
235065
235065
  var init_sha2 = __esm(() => {
235066
235066
  init_sha256();
235067
235067
  });
235068
235068
 
235069
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/hmac.js
235069
+ // ../../node_modules/@noble/hashes/esm/hmac.js
235070
235070
  var HMAC, hmac = (hash2, key2, message) => new HMAC(hash2, key2).update(message).digest();
235071
235071
  var init_hmac = __esm(() => {
235072
235072
  init__assert();
@@ -235135,7 +235135,7 @@ var init_hmac = __esm(() => {
235135
235135
  hmac.create = (hash2, key2) => new HMAC(hash2, key2);
235136
235136
  });
235137
235137
 
235138
- // ../../node_modules/viem/node_modules/@noble/curves/esm/abstract/utils.js
235138
+ // ../../node_modules/@noble/curves/esm/abstract/utils.js
235139
235139
  function isBytes2(a7) {
235140
235140
  return a7 instanceof Uint8Array || ArrayBuffer.isView(a7) && a7.constructor.name === "Uint8Array";
235141
235141
  }
@@ -235358,7 +235358,7 @@ var init_utils3 = __esm(() => {
235358
235358
  };
235359
235359
  });
235360
235360
 
235361
- // ../../node_modules/viem/node_modules/@noble/curves/esm/abstract/modular.js
235361
+ // ../../node_modules/@noble/curves/esm/abstract/modular.js
235362
235362
  function mod(a7, b4) {
235363
235363
  const result = a7 % b4;
235364
235364
  return result >= _0n3 ? result : b4 + result;
@@ -235635,7 +235635,7 @@ var init_modular = __esm(() => {
235635
235635
  ];
235636
235636
  });
235637
235637
 
235638
- // ../../node_modules/viem/node_modules/@noble/curves/esm/abstract/curve.js
235638
+ // ../../node_modules/@noble/curves/esm/abstract/curve.js
235639
235639
  function constTimeNegate(condition, item) {
235640
235640
  const neg = item.negate();
235641
235641
  return condition ? neg : item;
@@ -235836,7 +235836,7 @@ var init_curve = __esm(() => {
235836
235836
  pointWindowSizes = new WeakMap;
235837
235837
  });
235838
235838
 
235839
- // ../../node_modules/viem/node_modules/@noble/curves/esm/abstract/weierstrass.js
235839
+ // ../../node_modules/@noble/curves/esm/abstract/weierstrass.js
235840
235840
  function validateSigVerOpts(opts) {
235841
235841
  if (opts.lowS !== undefined)
235842
235842
  abool("lowS", opts.lowS);
@@ -236733,7 +236733,7 @@ var init_weierstrass = __esm(() => {
236733
236733
  _4n2 = BigInt(4);
236734
236734
  });
236735
236735
 
236736
- // ../../node_modules/viem/node_modules/@noble/curves/esm/_shortw_utils.js
236736
+ // ../../node_modules/@noble/curves/esm/_shortw_utils.js
236737
236737
  function getHash(hash2) {
236738
236738
  return {
236739
236739
  hash: hash2,
@@ -236752,7 +236752,7 @@ var init__shortw_utils = __esm(() => {
236752
236752
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
236753
236753
  });
236754
236754
 
236755
- // ../../node_modules/viem/node_modules/@noble/curves/esm/abstract/hash-to-curve.js
236755
+ // ../../node_modules/@noble/curves/esm/abstract/hash-to-curve.js
236756
236756
  function i2osp(value4, length) {
236757
236757
  anum(value4);
236758
236758
  anum(length);
@@ -236896,7 +236896,7 @@ var init_hash_to_curve = __esm(() => {
236896
236896
  os2ip = bytesToNumberBE;
236897
236897
  });
236898
236898
 
236899
- // ../../node_modules/viem/node_modules/@noble/curves/esm/secp256k1.js
236899
+ // ../../node_modules/@noble/curves/esm/secp256k1.js
236900
236900
  var exports_secp256k1 = {};
236901
236901
  __export(exports_secp256k1, {
236902
236902
  secp256k1: () => secp256k1,
@@ -240012,7 +240012,7 @@ var require_foldFlowLines = __commonJS((exports) => {
240012
240012
  else
240013
240013
  end = lineWidth - indentAtStart;
240014
240014
  }
240015
- let split5 = undefined;
240015
+ let split4 = undefined;
240016
240016
  let prev = undefined;
240017
240017
  let overflow = false;
240018
240018
  let i7 = -1;
@@ -240046,20 +240046,20 @@ var require_foldFlowLines = __commonJS((exports) => {
240046
240046
  if (mode === FOLD_BLOCK)
240047
240047
  i7 = consumeMoreIndentedLines(text2, i7, indent2.length);
240048
240048
  end = i7 + indent2.length + endStep;
240049
- split5 = undefined;
240049
+ split4 = undefined;
240050
240050
  } else {
240051
240051
  if (ch === " " && prev && prev !== " " && prev !== `
240052
240052
  ` && prev !== "\t") {
240053
240053
  const next = text2[i7 + 1];
240054
240054
  if (next && next !== " " && next !== `
240055
240055
  ` && next !== "\t")
240056
- split5 = i7;
240056
+ split4 = i7;
240057
240057
  }
240058
240058
  if (i7 >= end) {
240059
- if (split5) {
240060
- folds.push(split5);
240061
- end = split5 + endStep;
240062
- split5 = undefined;
240059
+ if (split4) {
240060
+ folds.push(split4);
240061
+ end = split4 + endStep;
240062
+ split4 = undefined;
240063
240063
  } else if (mode === FOLD_QUOTED) {
240064
240064
  while (prev === " " || prev === "\t") {
240065
240065
  prev = ch;
@@ -240072,7 +240072,7 @@ var require_foldFlowLines = __commonJS((exports) => {
240072
240072
  folds.push(j4);
240073
240073
  escapedFolds[j4] = true;
240074
240074
  end = j4 + endStep;
240075
- split5 = undefined;
240075
+ split4 = undefined;
240076
240076
  } else {
240077
240077
  overflow = true;
240078
240078
  }
@@ -243393,13 +243393,13 @@ var require_resolve_block_scalar = __commonJS((exports) => {
243393
243393
  return { mode, indent: indent2, chomp, comment, length };
243394
243394
  }
243395
243395
  function splitLines(source) {
243396
- const split5 = source.split(/\n( *)/);
243397
- const first = split5[0];
243396
+ const split4 = source.split(/\n( *)/);
243397
+ const first = split4[0];
243398
243398
  const m8 = first.match(/^( *)/);
243399
243399
  const line0 = m8?.[1] ? [m8[1], first.slice(m8[1].length)] : ["", first];
243400
243400
  const lines2 = [line0];
243401
- for (let i7 = 1;i7 < split5.length; i7 += 2)
243402
- lines2.push([split5[i7], split5[i7 + 1]]);
243401
+ for (let i7 = 1;i7 < split4.length; i7 += 2)
243402
+ lines2.push([split4[i7], split4[i7 + 1]]);
243403
243403
  return lines2;
243404
243404
  }
243405
243405
  exports.resolveBlockScalar = resolveBlockScalar;
@@ -243437,12 +243437,12 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
243437
243437
  };
243438
243438
  }
243439
243439
  const valueEnd = offset + source.length;
243440
- const re5 = resolveEnd.resolveEnd(end, valueEnd, strict, onError);
243440
+ const re4 = resolveEnd.resolveEnd(end, valueEnd, strict, onError);
243441
243441
  return {
243442
243442
  value: value4,
243443
243443
  type: _type,
243444
- comment: re5.comment,
243445
- range: [offset, valueEnd, re5.offset]
243444
+ comment: re4.comment,
243445
+ range: [offset, valueEnd, re4.offset]
243446
243446
  };
243447
243447
  }
243448
243448
  function plainValue(source, onError) {
@@ -243814,10 +243814,10 @@ var require_compose_node = __commonJS((exports) => {
243814
243814
  if (alias.source.endsWith(":"))
243815
243815
  onError(offset + source.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", true);
243816
243816
  const valueEnd = offset + source.length;
243817
- const re5 = resolveEnd.resolveEnd(end, valueEnd, options.strict, onError);
243818
- alias.range = [offset, valueEnd, re5.offset];
243819
- if (re5.comment)
243820
- alias.comment = re5.comment;
243817
+ const re4 = resolveEnd.resolveEnd(end, valueEnd, options.strict, onError);
243818
+ alias.range = [offset, valueEnd, re4.offset];
243819
+ if (re4.comment)
243820
+ alias.comment = re4.comment;
243821
243821
  return alias;
243822
243822
  }
243823
243823
  exports.composeEmptyNode = composeEmptyNode;
@@ -243855,10 +243855,10 @@ var require_compose_doc = __commonJS((exports) => {
243855
243855
  }
243856
243856
  doc2.contents = value4 ? composeNode.composeNode(ctx, value4, props, onError) : composeNode.composeEmptyNode(ctx, props.end, start3, null, props, onError);
243857
243857
  const contentEnd = doc2.contents.range[2];
243858
- const re5 = resolveEnd.resolveEnd(end, contentEnd, false, onError);
243859
- if (re5.comment)
243860
- doc2.comment = re5.comment;
243861
- doc2.range = [offset, contentEnd, re5.offset];
243858
+ const re4 = resolveEnd.resolveEnd(end, contentEnd, false, onError);
243859
+ if (re4.comment)
243860
+ doc2.comment = re4.comment;
243861
+ doc2.range = [offset, contentEnd, re4.offset];
243862
243862
  return doc2;
243863
243863
  }
243864
243864
  exports.composeDoc = composeDoc;
@@ -262458,7 +262458,7 @@ function pruneCurrentEnv(currentEnv, env2) {
262458
262458
  var package_default = {
262459
262459
  name: "@settlemint/sdk-cli",
262460
262460
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
262461
- version: "2.3.2-pr2274a4c0",
262461
+ version: "2.3.2-pr31e5a661",
262462
262462
  type: "module",
262463
262463
  private: false,
262464
262464
  license: "FSL-1.1-MIT",
@@ -262507,8 +262507,8 @@ var package_default = {
262507
262507
  "@inquirer/input": "4.1.10",
262508
262508
  "@inquirer/password": "4.0.13",
262509
262509
  "@inquirer/select": "4.2.1",
262510
- "@settlemint/sdk-js": "2.3.2-pr2274a4c0",
262511
- "@settlemint/sdk-utils": "2.3.2-pr2274a4c0",
262510
+ "@settlemint/sdk-js": "2.3.2-pr31e5a661",
262511
+ "@settlemint/sdk-utils": "2.3.2-pr31e5a661",
262512
262512
  "@types/node": "22.15.21",
262513
262513
  "@types/semver": "7.7.0",
262514
262514
  "@types/which": "3.0.4",
@@ -262517,6 +262517,7 @@ var package_default = {
262517
262517
  "is-in-ci": "1.0.0",
262518
262518
  semver: "7.7.2",
262519
262519
  slugify: "1.6.6",
262520
+ viem: "2.30.0",
262520
262521
  which: "5.0.0",
262521
262522
  yaml: "2.8.0",
262522
262523
  yoctocolors: "2.1.1"
@@ -263885,6 +263886,20 @@ async function graphqlFetchWithRetry(input, init, maxRetries = 5, initialSleepTi
263885
263886
  return json2.data;
263886
263887
  }, maxRetries, initialSleepTime);
263887
263888
  }
263889
+ function appendHeaders(headers, additionalHeaders) {
263890
+ const defaultHeaders = typeof headers === "function" ? headers() : headers;
263891
+ const filteredAdditionalHeaders = Object.entries(additionalHeaders).filter(([_, value]) => value !== undefined);
263892
+ if (Array.isArray(defaultHeaders)) {
263893
+ return [...defaultHeaders, ...filteredAdditionalHeaders];
263894
+ }
263895
+ if (defaultHeaders instanceof Headers) {
263896
+ return new Headers([...defaultHeaders, ...filteredAdditionalHeaders]);
263897
+ }
263898
+ return {
263899
+ ...defaultHeaders,
263900
+ ...Object.fromEntries(filteredAdditionalHeaders)
263901
+ };
263902
+ }
263888
263903
 
263889
263904
  // ../../node_modules/environment/index.js
263890
263905
  var isBrowser = globalThis.window?.document !== undefined;
@@ -266138,6 +266153,9 @@ function getPincodeVerificationChallengeResponse({
266138
266153
  }
266139
266154
  function createSettleMintClient(options) {
266140
266155
  ensureServer();
266156
+ if (options.instance === STANDALONE_INSTANCE2) {
266157
+ throw new Error("Standalone instances cannot connect to the SettleMint platform");
266158
+ }
266141
266159
  const validatedOptions = options.anonymous ? validate2(exports_external.object({
266142
266160
  ...ClientOptionsSchema.shape,
266143
266161
  accessToken: exports_external.literal("")
@@ -267229,7 +267247,9 @@ async function validateSdkVersionFromCommand(command, interval = 5 * 60 * 1000)
267229
267247
  }
267230
267248
  await setLastSdkVersionCheck(new Date(now).toJSON());
267231
267249
  const instance = await getInstanceFromCommand(command);
267232
- await validateSdkVersion(instance);
267250
+ if (instance !== STANDALONE_INSTANCE2) {
267251
+ await validateSdkVersion(instance);
267252
+ }
267233
267253
  }
267234
267254
  async function validateSdkVersion(instance) {
267235
267255
  const settlemint = createSettleMintClient({
@@ -272854,297 +272874,13 @@ async function simulateBlocks(client, parameters) {
272854
272874
  init_exports();
272855
272875
  init_Errors();
272856
272876
 
272857
- // ../../node_modules/ox/node_modules/@noble/hashes/esm/_assert.js
272858
- function anumber2(n6) {
272859
- if (!Number.isSafeInteger(n6) || n6 < 0)
272860
- throw new Error("positive integer expected, got " + n6);
272861
- }
272862
- function isBytes3(a7) {
272863
- return a7 instanceof Uint8Array || ArrayBuffer.isView(a7) && a7.constructor.name === "Uint8Array";
272864
- }
272865
- function abytes3(b4, ...lengths) {
272866
- if (!isBytes3(b4))
272867
- throw new Error("Uint8Array expected");
272868
- if (lengths.length > 0 && !lengths.includes(b4.length))
272869
- throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b4.length);
272870
- }
272871
- function aexists2(instance, checkFinished = true) {
272872
- if (instance.destroyed)
272873
- throw new Error("Hash instance has been destroyed");
272874
- if (checkFinished && instance.finished)
272875
- throw new Error("Hash#digest() has already been called");
272876
- }
272877
- function aoutput2(out, instance) {
272878
- abytes3(out);
272879
- const min = instance.outputLen;
272880
- if (out.length < min) {
272881
- throw new Error("digestInto() expects output buffer of length at least " + min);
272882
- }
272883
- }
272884
-
272885
- // ../../node_modules/ox/node_modules/@noble/hashes/esm/utils.js
272886
- /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
272887
- function u322(arr) {
272888
- return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
272889
- }
272890
- var isLE2 = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
272891
- function byteSwap2(word2) {
272892
- return word2 << 24 & 4278190080 | word2 << 8 & 16711680 | word2 >>> 8 & 65280 | word2 >>> 24 & 255;
272893
- }
272894
- function byteSwap322(arr) {
272895
- for (let i6 = 0;i6 < arr.length; i6++) {
272896
- arr[i6] = byteSwap2(arr[i6]);
272897
- }
272898
- }
272899
- var hasHexBuiltin3 = typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function";
272900
- function utf8ToBytes3(str) {
272901
- if (typeof str !== "string")
272902
- throw new Error("utf8ToBytes expected string, got " + typeof str);
272903
- return new Uint8Array(new TextEncoder().encode(str));
272904
- }
272905
- function toBytes3(data) {
272906
- if (typeof data === "string")
272907
- data = utf8ToBytes3(data);
272908
- abytes3(data);
272909
- return data;
272910
- }
272911
- class Hash2 {
272912
- clone() {
272913
- return this._cloneInto();
272914
- }
272915
- }
272916
- function wrapConstructor2(hashCons) {
272917
- const hashC = (msg) => hashCons().update(toBytes3(msg)).digest();
272918
- const tmp = hashCons();
272919
- hashC.outputLen = tmp.outputLen;
272920
- hashC.blockLen = tmp.blockLen;
272921
- hashC.create = () => hashCons();
272922
- return hashC;
272923
- }
272924
- function wrapXOFConstructorWithOpts2(hashCons) {
272925
- const hashC = (msg, opts) => hashCons(opts).update(toBytes3(msg)).digest();
272926
- const tmp = hashCons({});
272927
- hashC.outputLen = tmp.outputLen;
272928
- hashC.blockLen = tmp.blockLen;
272929
- hashC.create = (opts) => hashCons(opts);
272930
- return hashC;
272931
- }
272932
-
272933
- // ../../node_modules/ox/node_modules/@noble/hashes/esm/_u64.js
272934
- var U32_MASK642 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
272935
- var _32n2 = /* @__PURE__ */ BigInt(32);
272936
- function fromBig2(n6, le4 = false) {
272937
- if (le4)
272938
- return { h: Number(n6 & U32_MASK642), l: Number(n6 >> _32n2 & U32_MASK642) };
272939
- return { h: Number(n6 >> _32n2 & U32_MASK642) | 0, l: Number(n6 & U32_MASK642) | 0 };
272940
- }
272941
- function split4(lst, le4 = false) {
272942
- let Ah = new Uint32Array(lst.length);
272943
- let Al = new Uint32Array(lst.length);
272944
- for (let i6 = 0;i6 < lst.length; i6++) {
272945
- const { h: h8, l: l3 } = fromBig2(lst[i6], le4);
272946
- [Ah[i6], Al[i6]] = [h8, l3];
272947
- }
272948
- return [Ah, Al];
272949
- }
272950
- var rotlSH2 = (h8, l3, s7) => h8 << s7 | l3 >>> 32 - s7;
272951
- var rotlSL2 = (h8, l3, s7) => l3 << s7 | h8 >>> 32 - s7;
272952
- var rotlBH2 = (h8, l3, s7) => l3 << s7 - 32 | h8 >>> 64 - s7;
272953
- var rotlBL2 = (h8, l3, s7) => h8 << s7 - 32 | l3 >>> 64 - s7;
272954
-
272955
- // ../../node_modules/ox/node_modules/@noble/hashes/esm/sha3.js
272956
- var SHA3_PI2 = [];
272957
- var SHA3_ROTL2 = [];
272958
- var _SHA3_IOTA2 = [];
272959
- var _0n7 = /* @__PURE__ */ BigInt(0);
272960
- var _1n7 = /* @__PURE__ */ BigInt(1);
272961
- var _2n5 = /* @__PURE__ */ BigInt(2);
272962
- var _7n2 = /* @__PURE__ */ BigInt(7);
272963
- var _256n2 = /* @__PURE__ */ BigInt(256);
272964
- var _0x71n2 = /* @__PURE__ */ BigInt(113);
272965
- for (let round = 0, R7 = _1n7, x6 = 1, y4 = 0;round < 24; round++) {
272966
- [x6, y4] = [y4, (2 * x6 + 3 * y4) % 5];
272967
- SHA3_PI2.push(2 * (5 * y4 + x6));
272968
- SHA3_ROTL2.push((round + 1) * (round + 2) / 2 % 64);
272969
- let t8 = _0n7;
272970
- for (let j3 = 0;j3 < 7; j3++) {
272971
- R7 = (R7 << _1n7 ^ (R7 >> _7n2) * _0x71n2) % _256n2;
272972
- if (R7 & _2n5)
272973
- t8 ^= _1n7 << (_1n7 << /* @__PURE__ */ BigInt(j3)) - _1n7;
272974
- }
272975
- _SHA3_IOTA2.push(t8);
272976
- }
272977
- var [SHA3_IOTA_H2, SHA3_IOTA_L2] = /* @__PURE__ */ split4(_SHA3_IOTA2, true);
272978
- var rotlH2 = (h8, l3, s7) => s7 > 32 ? rotlBH2(h8, l3, s7) : rotlSH2(h8, l3, s7);
272979
- var rotlL2 = (h8, l3, s7) => s7 > 32 ? rotlBL2(h8, l3, s7) : rotlSL2(h8, l3, s7);
272980
- function keccakP2(s7, rounds = 24) {
272981
- const B4 = new Uint32Array(5 * 2);
272982
- for (let round = 24 - rounds;round < 24; round++) {
272983
- for (let x6 = 0;x6 < 10; x6++)
272984
- B4[x6] = s7[x6] ^ s7[x6 + 10] ^ s7[x6 + 20] ^ s7[x6 + 30] ^ s7[x6 + 40];
272985
- for (let x6 = 0;x6 < 10; x6 += 2) {
272986
- const idx1 = (x6 + 8) % 10;
272987
- const idx0 = (x6 + 2) % 10;
272988
- const B0 = B4[idx0];
272989
- const B1 = B4[idx0 + 1];
272990
- const Th = rotlH2(B0, B1, 1) ^ B4[idx1];
272991
- const Tl = rotlL2(B0, B1, 1) ^ B4[idx1 + 1];
272992
- for (let y4 = 0;y4 < 50; y4 += 10) {
272993
- s7[x6 + y4] ^= Th;
272994
- s7[x6 + y4 + 1] ^= Tl;
272995
- }
272996
- }
272997
- let curH = s7[2];
272998
- let curL = s7[3];
272999
- for (let t8 = 0;t8 < 24; t8++) {
273000
- const shift = SHA3_ROTL2[t8];
273001
- const Th = rotlH2(curH, curL, shift);
273002
- const Tl = rotlL2(curH, curL, shift);
273003
- const PI = SHA3_PI2[t8];
273004
- curH = s7[PI];
273005
- curL = s7[PI + 1];
273006
- s7[PI] = Th;
273007
- s7[PI + 1] = Tl;
273008
- }
273009
- for (let y4 = 0;y4 < 50; y4 += 10) {
273010
- for (let x6 = 0;x6 < 10; x6++)
273011
- B4[x6] = s7[y4 + x6];
273012
- for (let x6 = 0;x6 < 10; x6++)
273013
- s7[y4 + x6] ^= ~B4[(x6 + 2) % 10] & B4[(x6 + 4) % 10];
273014
- }
273015
- s7[0] ^= SHA3_IOTA_H2[round];
273016
- s7[1] ^= SHA3_IOTA_L2[round];
273017
- }
273018
- B4.fill(0);
273019
- }
273020
-
273021
- class Keccak2 extends Hash2 {
273022
- constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
273023
- super();
273024
- this.pos = 0;
273025
- this.posOut = 0;
273026
- this.finished = false;
273027
- this.destroyed = false;
273028
- this.enableXOF = false;
273029
- this.blockLen = blockLen;
273030
- this.suffix = suffix;
273031
- this.outputLen = outputLen;
273032
- this.enableXOF = enableXOF;
273033
- this.rounds = rounds;
273034
- anumber2(outputLen);
273035
- if (0 >= this.blockLen || this.blockLen >= 200)
273036
- throw new Error("Sha3 supports only keccak-f1600 function");
273037
- this.state = new Uint8Array(200);
273038
- this.state32 = u322(this.state);
273039
- }
273040
- keccak() {
273041
- if (!isLE2)
273042
- byteSwap322(this.state32);
273043
- keccakP2(this.state32, this.rounds);
273044
- if (!isLE2)
273045
- byteSwap322(this.state32);
273046
- this.posOut = 0;
273047
- this.pos = 0;
273048
- }
273049
- update(data) {
273050
- aexists2(this);
273051
- const { blockLen, state } = this;
273052
- data = toBytes3(data);
273053
- const len = data.length;
273054
- for (let pos = 0;pos < len; ) {
273055
- const take2 = Math.min(blockLen - this.pos, len - pos);
273056
- for (let i6 = 0;i6 < take2; i6++)
273057
- state[this.pos++] ^= data[pos++];
273058
- if (this.pos === blockLen)
273059
- this.keccak();
273060
- }
273061
- return this;
273062
- }
273063
- finish() {
273064
- if (this.finished)
273065
- return;
273066
- this.finished = true;
273067
- const { state, suffix, pos, blockLen } = this;
273068
- state[pos] ^= suffix;
273069
- if ((suffix & 128) !== 0 && pos === blockLen - 1)
273070
- this.keccak();
273071
- state[blockLen - 1] ^= 128;
273072
- this.keccak();
273073
- }
273074
- writeInto(out) {
273075
- aexists2(this, false);
273076
- abytes3(out);
273077
- this.finish();
273078
- const bufferOut = this.state;
273079
- const { blockLen } = this;
273080
- for (let pos = 0, len = out.length;pos < len; ) {
273081
- if (this.posOut >= blockLen)
273082
- this.keccak();
273083
- const take2 = Math.min(blockLen - this.posOut, len - pos);
273084
- out.set(bufferOut.subarray(this.posOut, this.posOut + take2), pos);
273085
- this.posOut += take2;
273086
- pos += take2;
273087
- }
273088
- return out;
273089
- }
273090
- xofInto(out) {
273091
- if (!this.enableXOF)
273092
- throw new Error("XOF is not possible for this instance");
273093
- return this.writeInto(out);
273094
- }
273095
- xof(bytes) {
273096
- anumber2(bytes);
273097
- return this.xofInto(new Uint8Array(bytes));
273098
- }
273099
- digestInto(out) {
273100
- aoutput2(out, this);
273101
- if (this.finished)
273102
- throw new Error("digest() was already called");
273103
- this.writeInto(out);
273104
- this.destroy();
273105
- return out;
273106
- }
273107
- digest() {
273108
- return this.digestInto(new Uint8Array(this.outputLen));
273109
- }
273110
- destroy() {
273111
- this.destroyed = true;
273112
- this.state.fill(0);
273113
- }
273114
- _cloneInto(to) {
273115
- const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
273116
- to || (to = new Keccak2(blockLen, suffix, outputLen, enableXOF, rounds));
273117
- to.state32.set(this.state32);
273118
- to.pos = this.pos;
273119
- to.posOut = this.posOut;
273120
- to.finished = this.finished;
273121
- to.rounds = rounds;
273122
- to.suffix = suffix;
273123
- to.outputLen = outputLen;
273124
- to.enableXOF = enableXOF;
273125
- to.destroyed = this.destroyed;
273126
- return to;
273127
- }
273128
- }
273129
- var gen2 = (suffix, blockLen, outputLen) => wrapConstructor2(() => new Keccak2(blockLen, suffix, outputLen));
273130
- var sha3_2242 = /* @__PURE__ */ gen2(6, 144, 224 / 8);
273131
- var sha3_2562 = /* @__PURE__ */ gen2(6, 136, 256 / 8);
273132
- var sha3_3842 = /* @__PURE__ */ gen2(6, 104, 384 / 8);
273133
- var sha3_5122 = /* @__PURE__ */ gen2(6, 72, 512 / 8);
273134
- var keccak_2242 = /* @__PURE__ */ gen2(1, 144, 224 / 8);
273135
- var keccak_2562 = /* @__PURE__ */ gen2(1, 136, 256 / 8);
273136
- var keccak_3842 = /* @__PURE__ */ gen2(1, 104, 384 / 8);
273137
- var keccak_5122 = /* @__PURE__ */ gen2(1, 72, 512 / 8);
273138
- var genShake2 = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts2((opts = {}) => new Keccak2(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true));
273139
- var shake1282 = /* @__PURE__ */ genShake2(31, 168, 128 / 8);
273140
- var shake2562 = /* @__PURE__ */ genShake2(31, 136, 256 / 8);
273141
-
273142
272877
  // ../../node_modules/ox/_esm/core/Hash.js
272878
+ init_sha3();
273143
272879
  init_Bytes();
273144
272880
  init_Hex();
273145
272881
  function keccak2562(value4, options = {}) {
273146
272882
  const { as = typeof value4 === "string" ? "Hex" : "Bytes" } = options;
273147
- const bytes = keccak_2562(from(value4));
272883
+ const bytes = keccak_256(from(value4));
273148
272884
  if (as === "Bytes")
273149
272885
  return bytes;
273150
272886
  return fromBytes(bytes);
@@ -275032,15 +274768,18 @@ function createPublicClient(parameters) {
275032
274768
  });
275033
274769
  return client.extend(publicActions);
275034
274770
  }
274771
+ // ../../node_modules/viem/_esm/index.js
274772
+ init_isAddress();
274773
+
275035
274774
  // ../viem/dist/viem.mjs
275036
- var C4 = ((a7) => (a7.PINCODE = "PINCODE", a7.OTP = "OTP", a7.SECRET_CODES = "SECRET_CODES", a7))(C4 || {});
275037
- var u6 = ((i6) => (i6.SHA1 = "SHA1", i6.SHA224 = "SHA224", i6.SHA256 = "SHA256", i6.SHA384 = "SHA384", i6.SHA512 = "SHA512", i6.SHA3_224 = "SHA3-224", i6.SHA3_256 = "SHA3-256", i6.SHA3_384 = "SHA3-384", i6.SHA3_512 = "SHA3-512", i6))(u6 || {});
274775
+ var u6 = ((r6) => (r6.PINCODE = "PINCODE", r6.OTP = "OTP", r6.SECRET_CODES = "SECRET_CODES", r6))(u6 || {});
274776
+ var g5 = ((i6) => (i6.SHA1 = "SHA1", i6.SHA224 = "SHA224", i6.SHA256 = "SHA256", i6.SHA384 = "SHA384", i6.SHA512 = "SHA512", i6.SHA3_224 = "SHA3-224", i6.SHA3_256 = "SHA3-256", i6.SHA3_384 = "SHA3-384", i6.SHA3_512 = "SHA3-512", i6))(g5 || {});
275038
274777
  var R7 = exports_external.object({ accessToken: ApplicationAccessTokenSchema2.optional(), chainId: exports_external.string().optional(), chainName: exports_external.string(), rpcUrl: UrlOrPathSchema2, httpTransportConfig: exports_external.any().optional() });
275039
- var b4 = exports_external.object({ accessToken: ApplicationAccessTokenSchema2.optional(), rpcUrl: UrlOrPathSchema2 });
275040
- async function re4(t8) {
274778
+ var b4 = exports_external.object({ accessToken: ApplicationAccessTokenSchema2.optional(), rpcUrl: UrlOrPathSchema2, httpTransportConfig: exports_external.any().optional() });
274779
+ async function ae4(t8) {
275041
274780
  ensureServer();
275042
274781
  let e10 = validate2(b4, t8);
275043
- return createPublicClient({ transport: http(e10.rpcUrl, { fetchOptions: { headers: e10.accessToken ? { "x-auth-token": e10.accessToken } : undefined } }) }).getChainId();
274782
+ return createPublicClient({ transport: http(e10.rpcUrl, { ...e10.httpTransportConfig, fetchOptions: { ...e10?.httpTransportConfig?.fetchOptions, headers: appendHeaders(e10?.httpTransportConfig?.fetchOptions?.headers, { "x-auth-token": e10.accessToken }) } }) }).getChainId();
275044
274783
  }
275045
274784
 
275046
274785
  // src/commands/codegen/codegen-viem.ts
@@ -275052,7 +274791,7 @@ async function codegenViem(env2) {
275052
274791
  note("[Codegen] No RPC endpoints found, skipping Viem resources generation", "warn");
275053
274792
  return;
275054
274793
  }
275055
- const chainId = env2.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID ?? await re4({
274794
+ const chainId = env2.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID ?? await ae4({
275056
274795
  accessToken: env2.SETTLEMINT_ACCESS_TOKEN,
275057
274796
  rpcUrl: env2.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT
275058
274797
  });
@@ -275811,7 +275550,7 @@ async function serviceSecretPrompt({
275811
275550
  return defaultSecret;
275812
275551
  }
275813
275552
  if (isCi) {
275814
- return defaultSecret || "";
275553
+ return defaultSecret;
275815
275554
  }
275816
275555
  if (defaultSecret) {
275817
275556
  const keep = await esm_default4({
@@ -275838,10 +275577,10 @@ async function serviceUrlPrompt({
275838
275577
  }) {
275839
275578
  const autoAccept = !!accept || isCi;
275840
275579
  if (autoAccept && defaultUrl) {
275841
- return sanitizeInstanceUrl(defaultUrl);
275580
+ return new URL(defaultUrl).toString();
275842
275581
  }
275843
275582
  if (isCi) {
275844
- return sanitizeInstanceUrl(defaultUrl || "");
275583
+ return defaultUrl ? new URL(defaultUrl).toString() : undefined;
275845
275584
  }
275846
275585
  const serviceUrl = await esm_default2({
275847
275586
  message: example ? `${message} (eg ${example})` : message,
@@ -276122,9 +275861,68 @@ function getHdPrivateKeyEnv(service) {
276122
275861
  };
276123
275862
  }
276124
275863
 
275864
+ // ../utils/dist/logging.mjs
275865
+ var maskTokens4 = (output) => {
275866
+ return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
275867
+ };
275868
+ function createLogger(options = {}) {
275869
+ const { level = "warn", prefix = "" } = options;
275870
+ const logLevels = {
275871
+ debug: 0,
275872
+ info: 1,
275873
+ warn: 2,
275874
+ error: 3,
275875
+ none: 4
275876
+ };
275877
+ const currentLevelValue = logLevels[level];
275878
+ const formatArgs = (args) => {
275879
+ if (args.length === 0 || args.every((arg) => arg === undefined || arg === null)) {
275880
+ return "";
275881
+ }
275882
+ const formatted = args.map((arg) => {
275883
+ if (arg instanceof Error) {
275884
+ return `
275885
+ ${arg.stack || arg.message}`;
275886
+ }
275887
+ if (typeof arg === "object" && arg !== null) {
275888
+ return `
275889
+ ${JSON.stringify(arg, null, 2)}`;
275890
+ }
275891
+ return ` ${String(arg)}`;
275892
+ }).join("");
275893
+ return `, args:${formatted}`;
275894
+ };
275895
+ const shouldLog = (level2) => {
275896
+ return logLevels[level2] >= currentLevelValue;
275897
+ };
275898
+ return {
275899
+ debug: (message, ...args) => {
275900
+ if (shouldLog("debug")) {
275901
+ console.debug(`\x1B[32m${prefix}[DEBUG] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
275902
+ }
275903
+ },
275904
+ info: (message, ...args) => {
275905
+ if (shouldLog("info")) {
275906
+ console.info(`\x1B[34m${prefix}[INFO] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
275907
+ }
275908
+ },
275909
+ warn: (message, ...args) => {
275910
+ if (shouldLog("warn")) {
275911
+ console.warn(`\x1B[33m${prefix}[WARN] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
275912
+ }
275913
+ },
275914
+ error: (message, ...args) => {
275915
+ if (shouldLog("error")) {
275916
+ console.error(`\x1B[31m${prefix}[ERROR] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
275917
+ }
275918
+ }
275919
+ };
275920
+ }
275921
+ var logger = createLogger();
275922
+
276125
275923
  // src/commands/connect.ts
276126
275924
  function connectCommand() {
276127
- return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file). Use 'standalone' if your resources are not part of the SettleMint platform").description("Connects your project to your application on SettleMint").usage(createExamples([
275925
+ return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file). Use 'standalone' if your resources are not deployed on the SettleMint platform").description("Connects your dApp to your application").usage(createExamples([
276128
275926
  {
276129
275927
  description: "Connect to your environment",
276130
275928
  command: "connect"
@@ -276136,6 +275934,10 @@ function connectCommand() {
276136
275934
  {
276137
275935
  description: "Connect to your production environment",
276138
275936
  command: "connect --prod"
275937
+ },
275938
+ {
275939
+ description: "Connect to a standalone environment (when not using the SettleMint platform)",
275940
+ command: "connect --instance standalone"
276139
275941
  }
276140
275942
  ])).action(async ({ acceptDefaults, prod, instance }) => {
276141
275943
  intro("Connecting your dApp");
@@ -276146,7 +275948,7 @@ function connectCommand() {
276146
275948
  } else {
276147
275949
  await connectToPlatform(env2, selectedInstance, acceptDefaults, prod);
276148
275950
  }
276149
- outro("Connected to SettleMint");
275951
+ outro("dApp connected");
276150
275952
  });
276151
275953
  }
276152
275954
  async function connectToPlatform(env2, selectedInstance, acceptDefaults, prod) {
@@ -276448,11 +276250,23 @@ async function connectToStandalone(env2, acceptDefaults, prod) {
276448
276250
  });
276449
276251
  selectedServices[id] = {
276450
276252
  label: prompt.label,
276451
- result
276253
+ result,
276254
+ isSecret
276452
276255
  };
276453
276256
  }
276454
276257
  if (acceptDefaults) {
276455
- table("Selected services", Object.values(selectedServices).filter(Boolean));
276258
+ table("Selected services", Object.values(selectedServices).map((item) => {
276259
+ if (item.isSecret) {
276260
+ return {
276261
+ ...item,
276262
+ result: "********"
276263
+ };
276264
+ }
276265
+ return {
276266
+ ...item,
276267
+ result: item.result ? maskTokens4(item.result) : undefined
276268
+ };
276269
+ }).filter(Boolean));
276456
276270
  }
276457
276271
  await writeEnvSpinner(!!prod, {
276458
276272
  SETTLEMINT_INSTANCE: STANDALONE_INSTANCE2,
@@ -276461,8 +276275,8 @@ async function connectToStandalone(env2, acceptDefaults, prod) {
276461
276275
  SETTLEMINT_HASURA_ENDPOINT: selectedServices.hasuraEndpoint?.result,
276462
276276
  SETTLEMINT_HASURA_ADMIN_SECRET: selectedServices.hasuraAdminSecret?.result,
276463
276277
  SETTLEMINT_HASURA_DATABASE_URL: selectedServices.hasuraDatabaseUrl?.result,
276464
- SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: selectedServices.theGraphEndpoint ? [selectedServices.theGraphEndpoint.result] : [],
276465
- SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: selectedServices.theGraphEndpoint ? getSubgraphName(selectedServices.theGraphEndpoint.result) : undefined,
276278
+ SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: selectedServices.theGraphEndpoint?.result ? [selectedServices.theGraphEndpoint.result] : [],
276279
+ SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: selectedServices.theGraphEndpoint?.result ? getSubgraphName(selectedServices.theGraphEndpoint.result) : undefined,
276466
276280
  SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: selectedServices.portalGraphqlEndpoint?.result,
276467
276281
  SETTLEMINT_MINIO_ENDPOINT: selectedServices.minioEndpoint?.result,
276468
276282
  SETTLEMINT_MINIO_ACCESS_KEY: selectedServices.minioAccessKey?.result,
@@ -276888,12 +276702,12 @@ var U6 = l3((Ae3, G4) => {
276888
276702
  }
276889
276703
  });
276890
276704
  var et3 = l3((Re3, tt2) => {
276891
- var g5 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y4 = h8("path"), Bt2 = g5 ? ";" : ":", V5 = U6(), J3 = (t8) => Object.assign(new Error(`not found: ${t8}`), { code: "ENOENT" }), Q4 = (t8, e10) => {
276892
- let n6 = e10.colon || Bt2, r6 = t8.match(/\//) || g5 && t8.match(/\\/) ? [""] : [
276893
- ...g5 ? [process.cwd()] : [],
276705
+ var g6 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y4 = h8("path"), Bt2 = g6 ? ";" : ":", V5 = U6(), J3 = (t8) => Object.assign(new Error(`not found: ${t8}`), { code: "ENOENT" }), Q4 = (t8, e10) => {
276706
+ let n6 = e10.colon || Bt2, r6 = t8.match(/\//) || g6 && t8.match(/\\/) ? [""] : [
276707
+ ...g6 ? [process.cwd()] : [],
276894
276708
  ...(e10.path || process.env.PATH || "").split(n6)
276895
- ], s7 = g5 ? e10.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o8 = g5 ? s7.split(n6) : [""];
276896
- return g5 && t8.indexOf(".") !== -1 && o8[0] !== "" && o8.unshift(""), {
276709
+ ], s7 = g6 ? e10.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o8 = g6 ? s7.split(n6) : [""];
276710
+ return g6 && t8.indexOf(".") !== -1 && o8[0] !== "" && o8.unshift(""), {
276897
276711
  pathEnv: r6,
276898
276712
  pathExt: o8,
276899
276713
  pathExtExe: s7
@@ -276977,12 +276791,12 @@ var ct3 = l3((Ne3, it2) => {
276977
276791
  it2.exports = Yt2;
276978
276792
  });
276979
276793
  var ut3 = l3((qe2, P5) => {
276980
- var C5 = /([()\][%!^"`<>&|;, *?])/g;
276794
+ var C4 = /([()\][%!^"`<>&|;, *?])/g;
276981
276795
  function Vt2(t8) {
276982
- return t8 = t8.replace(C5, "^$1"), t8;
276796
+ return t8 = t8.replace(C4, "^$1"), t8;
276983
276797
  }
276984
276798
  function Jt2(t8, e10) {
276985
- return t8 = `${t8}`, t8 = t8.replace(/(\\*)"/g, "$1$1\\\""), t8 = t8.replace(/(\\*)$/, "$1$1"), t8 = `"${t8}"`, t8 = t8.replace(C5, "^$1"), e10 && (t8 = t8.replace(C5, "^$1")), t8;
276799
+ return t8 = `${t8}`, t8 = t8.replace(/(\\*)"/g, "$1$1\\\""), t8 = t8.replace(/(\\*)$/, "$1$1"), t8 = `"${t8}"`, t8 = t8.replace(C4, "^$1"), e10 && (t8 = t8.replace(C4, "^$1")), t8;
276986
276800
  }
276987
276801
  P5.exports.command = Vt2;
276988
276802
  P5.exports.argument = Jt2;
@@ -277012,14 +276826,14 @@ var ht3 = l3((je3, ft2) => {
277012
276826
  ft2.exports = te4;
277013
276827
  });
277014
276828
  var wt3 = l3((Fe3, Et2) => {
277015
- var ee4 = h8("path"), mt2 = ct3(), gt3 = ut3(), ne3 = ht3(), re5 = process.platform === "win32", se4 = /\.(?:com|exe)$/i, oe4 = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
276829
+ var ee4 = h8("path"), mt2 = ct3(), gt3 = ut3(), ne3 = ht3(), re4 = process.platform === "win32", se4 = /\.(?:com|exe)$/i, oe4 = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
277016
276830
  function ie4(t8) {
277017
276831
  t8.file = mt2(t8);
277018
276832
  let e10 = t8.file && ne3(t8.file);
277019
276833
  return e10 ? (t8.args.unshift(t8.file), t8.command = e10, mt2(t8)) : t8.file;
277020
276834
  }
277021
276835
  function ce3(t8) {
277022
- if (!re5)
276836
+ if (!re4)
277023
276837
  return t8;
277024
276838
  let e10 = ie4(t8), n6 = !se4.test(e10);
277025
276839
  if (t8.options.forceShell || n6) {
@@ -277057,7 +276871,7 @@ var bt3 = l3((ze3, vt2) => {
277057
276871
  spawnargs: t8.args
277058
276872
  });
277059
276873
  }
277060
- function ae4(t8, e10) {
276874
+ function ae5(t8, e10) {
277061
276875
  if (!S4)
277062
276876
  return;
277063
276877
  let n6 = t8.emit;
@@ -277077,7 +276891,7 @@ var bt3 = l3((ze3, vt2) => {
277077
276891
  return S4 && t8 === 1 && !e10.file ? k5(e10.original, "spawnSync") : null;
277078
276892
  }
277079
276893
  vt2.exports = {
277080
- hookChildProcess: ae4,
276894
+ hookChildProcess: ae5,
277081
276895
  verifyENOENT: xt2,
277082
276896
  verifyENOENTSync: le4,
277083
276897
  notFoundError: k5
@@ -277457,8 +277271,8 @@ async function detectPackageManager2(cwd2, options = {}) {
277457
277271
  const scriptArg = process.argv[1];
277458
277272
  if (scriptArg) {
277459
277273
  for (const packageManager of packageManagers) {
277460
- const re5 = new RegExp(`[/\\\\]\\.?${packageManager.command}`);
277461
- if (re5.test(scriptArg)) {
277274
+ const re4 = new RegExp(`[/\\\\]\\.?${packageManager.command}`);
277275
+ if (re4.test(scriptArg)) {
277462
277276
  return packageManager;
277463
277277
  }
277464
277278
  }
@@ -277523,7 +277337,7 @@ function w$1() {
277523
277337
  i$5 = 1;
277524
277338
  const v6 = (e10, r6) => {
277525
277339
  if (Number.isSafeInteger(e10))
277526
- e10 < 0 ? g5(e10, r6) : p5(e10, r6);
277340
+ e10 < 0 ? g6(e10, r6) : p5(e10, r6);
277527
277341
  else
277528
277342
  throw Error("cannot encode number outside of javascript safe integer range");
277529
277343
  return r6;
@@ -277531,7 +277345,7 @@ function w$1() {
277531
277345
  r6[0] = 128;
277532
277346
  for (var o8 = r6.length;o8 > 1; o8--)
277533
277347
  r6[o8 - 1] = e10 & 255, e10 = Math.floor(e10 / 256);
277534
- }, g5 = (e10, r6) => {
277348
+ }, g6 = (e10, r6) => {
277535
277349
  r6[0] = 255;
277536
277350
  var o8 = false;
277537
277351
  e10 = e10 * -1;
@@ -277599,7 +277413,7 @@ function E6() {
277599
277413
  if (e10 || (e10 = this.block = Buffer.alloc(512), t8 = 0), t8 || (t8 = 0), !(e10.length >= t8 + 512))
277600
277414
  throw new Error("need 512 bytes for header");
277601
277415
  const i6 = this.ctime || this.atime ? 130 : 155, h9 = L6(this.path || "", i6), l4 = h9[0], n6 = h9[1];
277602
- this.needPax = h9[2], this.needPax = m7(e10, t8, 100, l4) || this.needPax, this.needPax = c3(e10, t8 + 100, 8, this.mode) || this.needPax, this.needPax = c3(e10, t8 + 108, 8, this.uid) || this.needPax, this.needPax = c3(e10, t8 + 116, 8, this.gid) || this.needPax, this.needPax = c3(e10, t8 + 124, 12, this.size) || this.needPax, this.needPax = g5(e10, t8 + 136, 12, this.mtime) || this.needPax, e10[t8 + 156] = this[a7].charCodeAt(0), this.needPax = m7(e10, t8 + 157, 100, this.linkpath) || this.needPax, e10.write("ustar\x0000", t8 + 257, 8), this.needPax = m7(e10, t8 + 265, 32, this.uname) || this.needPax, this.needPax = m7(e10, t8 + 297, 32, this.gname) || this.needPax, this.needPax = c3(e10, t8 + 329, 8, this.devmaj) || this.needPax, this.needPax = c3(e10, t8 + 337, 8, this.devmin) || this.needPax, this.needPax = m7(e10, t8 + 345, i6, n6) || this.needPax, e10[t8 + 475] !== 0 ? this.needPax = m7(e10, t8 + 345, 155, n6) || this.needPax : (this.needPax = m7(e10, t8 + 345, 130, n6) || this.needPax, this.needPax = g5(e10, t8 + 476, 12, this.atime) || this.needPax, this.needPax = g5(e10, t8 + 488, 12, this.ctime) || this.needPax);
277416
+ this.needPax = h9[2], this.needPax = m7(e10, t8, 100, l4) || this.needPax, this.needPax = c3(e10, t8 + 100, 8, this.mode) || this.needPax, this.needPax = c3(e10, t8 + 108, 8, this.uid) || this.needPax, this.needPax = c3(e10, t8 + 116, 8, this.gid) || this.needPax, this.needPax = c3(e10, t8 + 124, 12, this.size) || this.needPax, this.needPax = g6(e10, t8 + 136, 12, this.mtime) || this.needPax, e10[t8 + 156] = this[a7].charCodeAt(0), this.needPax = m7(e10, t8 + 157, 100, this.linkpath) || this.needPax, e10.write("ustar\x0000", t8 + 257, 8), this.needPax = m7(e10, t8 + 265, 32, this.uname) || this.needPax, this.needPax = m7(e10, t8 + 297, 32, this.gname) || this.needPax, this.needPax = c3(e10, t8 + 329, 8, this.devmaj) || this.needPax, this.needPax = c3(e10, t8 + 337, 8, this.devmin) || this.needPax, this.needPax = m7(e10, t8 + 345, i6, n6) || this.needPax, e10[t8 + 475] !== 0 ? this.needPax = m7(e10, t8 + 345, 155, n6) || this.needPax : (this.needPax = m7(e10, t8 + 345, 130, n6) || this.needPax, this.needPax = g6(e10, t8 + 476, 12, this.atime) || this.needPax, this.needPax = g6(e10, t8 + 488, 12, this.ctime) || this.needPax);
277603
277417
  let S4 = 8 * 32;
277604
277418
  for (let p5 = t8;p5 < t8 + 148; p5++)
277605
277419
  S4 += e10[p5];
@@ -277634,7 +277448,7 @@ function E6() {
277634
277448
  l4 || (l4 = [s7.slice(0, 99), "", true]);
277635
277449
  }
277636
277450
  return l4;
277637
- }, d6 = (s7, e10, t8) => s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*/, ""), o8 = (s7, e10, t8) => N7(r6(s7, e10, t8)), N7 = (s7) => s7 === null ? null : new Date(s7 * 1000), r6 = (s7, e10, t8) => s7[e10] & 128 ? y4.parse(s7.slice(e10, e10 + t8)) : j3(s7, e10, t8), q7 = (s7) => isNaN(s7) ? null : s7, j3 = (s7, e10, t8) => q7(parseInt(s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v6 = { 12: 8589934591, 8: 2097151 }, c3 = (s7, e10, t8, i6) => i6 === null ? false : i6 > v6[t8] || i6 < 0 ? (y4.encode(i6, s7.slice(e10, e10 + t8)), true) : ($6(s7, e10, t8, i6), false), $6 = (s7, e10, t8, i6) => s7.write(_5(i6, t8), e10, t8, "ascii"), _5 = (s7, e10) => z4(Math.floor(s7).toString(8), e10), z4 = (s7, e10) => (s7.length === e10 - 1 ? s7 : new Array(e10 - s7.length - 1).join("0") + s7 + " ") + "\x00", g5 = (s7, e10, t8, i6) => i6 === null ? false : c3(s7, e10, t8, i6.getTime() / 1000), A5 = new Array(156).join("\x00"), m7 = (s7, e10, t8, i6) => i6 === null ? false : (s7.write(i6 + A5, e10, t8, "utf8"), i6.length !== Buffer.byteLength(i6) || i6.length > t8);
277451
+ }, d6 = (s7, e10, t8) => s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*/, ""), o8 = (s7, e10, t8) => N7(r6(s7, e10, t8)), N7 = (s7) => s7 === null ? null : new Date(s7 * 1000), r6 = (s7, e10, t8) => s7[e10] & 128 ? y4.parse(s7.slice(e10, e10 + t8)) : j3(s7, e10, t8), q7 = (s7) => isNaN(s7) ? null : s7, j3 = (s7, e10, t8) => q7(parseInt(s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v6 = { 12: 8589934591, 8: 2097151 }, c3 = (s7, e10, t8, i6) => i6 === null ? false : i6 > v6[t8] || i6 < 0 ? (y4.encode(i6, s7.slice(e10, e10 + t8)), true) : ($6(s7, e10, t8, i6), false), $6 = (s7, e10, t8, i6) => s7.write(_5(i6, t8), e10, t8, "ascii"), _5 = (s7, e10) => z4(Math.floor(s7).toString(8), e10), z4 = (s7, e10) => (s7.length === e10 - 1 ? s7 : new Array(e10 - s7.length - 1).join("0") + s7 + " ") + "\x00", g6 = (s7, e10, t8, i6) => i6 === null ? false : c3(s7, e10, t8, i6.getTime() / 1000), A5 = new Array(156).join("\x00"), m7 = (s7, e10, t8, i6) => i6 === null ? false : (s7.write(i6 + A5, e10, t8, "utf8"), i6.length !== Buffer.byteLength(i6) || i6.length > t8);
277638
277452
  return k5 = B4, k5;
277639
277453
  }
277640
277454
  var e$3;
@@ -277822,7 +277636,7 @@ function ft2() {
277822
277636
  if (X$1)
277823
277637
  return s$5;
277824
277638
  X$1 = 1;
277825
- const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q7 = ot2, G4 = ht4.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"), R9 = Symbol("emittingEnd"), g5 = Symbol("emittedError"), B4 = Symbol("closed"), Y4 = Symbol("read"), T4 = Symbol("flush"), $6 = Symbol("flushChunk"), f5 = Symbol("encoding"), c3 = Symbol("decoder"), M5 = Symbol("flowing"), S4 = Symbol("paused"), b5 = Symbol("resume"), i6 = Symbol("buffer"), a7 = Symbol("pipes"), n6 = Symbol("bufferLength"), j3 = Symbol("bufferPush"), I7 = Symbol("bufferShift"), o8 = Symbol("objectMode"), r6 = Symbol("destroyed"), P6 = Symbol("error"), x7 = Symbol("emitData"), V6 = Symbol("emitEnd"), N7 = Symbol("emitEnd2"), p5 = Symbol("async"), _5 = Symbol("abort"), O6 = Symbol("aborted"), E7 = Symbol("signal"), w6 = (h9) => Promise.resolve().then(h9), J3 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", K4 = J3 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), W6 = J3 && Symbol.iterator || Symbol("iterator not implemented"), k6 = (h9) => h9 === "end" || h9 === "finish" || h9 === "prefinish", tt2 = (h9) => h9 instanceof ArrayBuffer || typeof h9 == "object" && h9.constructor && h9.constructor.name === "ArrayBuffer" && h9.byteLength >= 0, et4 = (h9) => !Buffer.isBuffer(h9) && ArrayBuffer.isView(h9);
277639
+ const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q7 = ot2, G4 = ht4.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"), R9 = Symbol("emittingEnd"), g6 = Symbol("emittedError"), B4 = Symbol("closed"), Y4 = Symbol("read"), T4 = Symbol("flush"), $6 = Symbol("flushChunk"), f5 = Symbol("encoding"), c3 = Symbol("decoder"), M5 = Symbol("flowing"), S4 = Symbol("paused"), b5 = Symbol("resume"), i6 = Symbol("buffer"), a7 = Symbol("pipes"), n6 = Symbol("bufferLength"), j3 = Symbol("bufferPush"), I7 = Symbol("bufferShift"), o8 = Symbol("objectMode"), r6 = Symbol("destroyed"), P6 = Symbol("error"), x7 = Symbol("emitData"), V6 = Symbol("emitEnd"), N7 = Symbol("emitEnd2"), p5 = Symbol("async"), _5 = Symbol("abort"), O6 = Symbol("aborted"), E7 = Symbol("signal"), w6 = (h9) => Promise.resolve().then(h9), J3 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", K4 = J3 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), W6 = J3 && Symbol.iterator || Symbol("iterator not implemented"), k6 = (h9) => h9 === "end" || h9 === "finish" || h9 === "prefinish", tt2 = (h9) => h9 instanceof ArrayBuffer || typeof h9 == "object" && h9.constructor && h9.constructor.name === "ArrayBuffer" && h9.byteLength >= 0, et4 = (h9) => !Buffer.isBuffer(h9) && ArrayBuffer.isView(h9);
277826
277640
 
277827
277641
  class z4 {
277828
277642
  constructor(t8, e10, s7) {
@@ -277848,7 +277662,7 @@ function ft2() {
277848
277662
 
277849
277663
  class F3 extends q7 {
277850
277664
  constructor(t8) {
277851
- super(), this[M5] = false, this[S4] = false, this[a7] = [], this[i6] = [], this[o8] = t8 && t8.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t8 && t8.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t8 && !!t8.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[R9] = false, this[B4] = false, this[g5] = null, this.writable = true, this.readable = true, this[n6] = 0, this[r6] = false, t8 && t8.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i6] }), t8 && t8.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a7] }), this[E7] = t8 && t8.signal, this[O6] = false, this[E7] && (this[E7].addEventListener("abort", () => this[_5]()), this[E7].aborted && this[_5]());
277665
+ super(), this[M5] = false, this[S4] = false, this[a7] = [], this[i6] = [], this[o8] = t8 && t8.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t8 && t8.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t8 && !!t8.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[R9] = false, this[B4] = false, this[g6] = null, this.writable = true, this.readable = true, this[n6] = 0, this[r6] = false, t8 && t8.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i6] }), t8 && t8.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a7] }), this[E7] = t8 && t8.signal, this[O6] = false, this[E7] && (this[E7].addEventListener("abort", () => this[_5]()), this[E7].aborted && this[_5]());
277852
277666
  }
277853
277667
  get bufferLength() {
277854
277668
  return this[n6];
@@ -277959,7 +277773,7 @@ function ft2() {
277959
277773
  }
277960
277774
  on(t8, e10) {
277961
277775
  const s7 = super.on(t8, e10);
277962
- return t8 === "data" && !this[a7].length && !this.flowing ? this[b5]() : t8 === "readable" && this[n6] !== 0 ? super.emit("readable") : k6(t8) && this[y4] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[g5] && (this[p5] ? w6(() => e10.call(this, this[g5])) : e10.call(this, this[g5])), s7;
277776
+ return t8 === "data" && !this[a7].length && !this.flowing ? this[b5]() : t8 === "readable" && this[n6] !== 0 ? super.emit("readable") : k6(t8) && this[y4] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[g6] && (this[p5] ? w6(() => e10.call(this, this[g6])) : e10.call(this, this[g6])), s7;
277963
277777
  }
277964
277778
  get emittedEnd() {
277965
277779
  return this[y4];
@@ -277980,7 +277794,7 @@ function ft2() {
277980
277794
  const u7 = super.emit("close");
277981
277795
  return this.removeAllListeners("close"), u7;
277982
277796
  } else if (t8 === "error") {
277983
- this[g5] = e10, super.emit(P6, e10);
277797
+ this[g6] = e10, super.emit(P6, e10);
277984
277798
  const u7 = !this[E7] || this.listeners("error").length ? super.emit("error", e10) : false;
277985
277799
  return this[d6](), u7;
277986
277800
  } else if (t8 === "resume") {
@@ -278045,14 +277859,14 @@ function ft2() {
278045
277859
  return e10();
278046
277860
  let u7 = null, Q4 = null;
278047
277861
  const A5 = (L6) => {
278048
- this.removeListener("data", U7), this.removeListener("end", C5), this.removeListener(r6, D3), e10(), Q4(L6);
277862
+ this.removeListener("data", U7), this.removeListener("end", C4), this.removeListener(r6, D3), e10(), Q4(L6);
278049
277863
  }, U7 = (L6) => {
278050
- this.removeListener("error", A5), this.removeListener("end", C5), this.removeListener(r6, D3), this.pause(), u7({ value: L6, done: !!this[m7] });
278051
- }, C5 = () => {
277864
+ this.removeListener("error", A5), this.removeListener("end", C4), this.removeListener(r6, D3), this.pause(), u7({ value: L6, done: !!this[m7] });
277865
+ }, C4 = () => {
278052
277866
  this.removeListener("error", A5), this.removeListener("data", U7), this.removeListener(r6, D3), e10(), u7({ done: true });
278053
277867
  }, D3 = () => A5(new Error("stream destroyed"));
278054
277868
  return new Promise((L6, it2) => {
278055
- Q4 = it2, u7 = L6, this.once(r6, D3), this.once("error", A5), this.once("end", C5), this.once("data", U7);
277869
+ Q4 = it2, u7 = L6, this.once(r6, D3), this.once("error", A5), this.once("end", C4), this.once("data", U7);
278056
277870
  });
278057
277871
  }, throw: e10, return: e10, [K4]() {
278058
277872
  return this;
@@ -278198,7 +278012,7 @@ function tt2() {
278198
278012
  if (H$1)
278199
278013
  return j3;
278200
278014
  H$1 = 1;
278201
- const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x7 = ot2, N7 = ht4.StringDecoder, u7 = Symbol("EOF"), a7 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"), S4 = Symbol("emittingEnd"), E7 = Symbol("emittedError"), w6 = Symbol("closed"), P6 = Symbol("read"), L6 = Symbol("flush"), _6 = Symbol("flushChunk"), h9 = Symbol("encoding"), m7 = Symbol("decoder"), M5 = Symbol("flowing"), y4 = Symbol("paused"), p5 = Symbol("resume"), s7 = Symbol("bufferLength"), T5 = Symbol("bufferPush"), B4 = Symbol("bufferShift"), r6 = Symbol("objectMode"), n6 = Symbol("destroyed"), D3 = Symbol("emitData"), F3 = Symbol("emitEnd"), R9 = Symbol("emitEnd2"), d6 = Symbol("async"), b5 = (o8) => Promise.resolve().then(o8), C5 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $6 = C5 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), G4 = C5 && Symbol.iterator || Symbol("iterator not implemented"), V6 = (o8) => o8 === "end" || o8 === "finish" || o8 === "prefinish", v6 = (o8) => o8 instanceof ArrayBuffer || typeof o8 == "object" && o8.constructor && o8.constructor.name === "ArrayBuffer" && o8.byteLength >= 0, J3 = (o8) => !Buffer.isBuffer(o8) && ArrayBuffer.isView(o8);
278015
+ const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x7 = ot2, N7 = ht4.StringDecoder, u7 = Symbol("EOF"), a7 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"), S4 = Symbol("emittingEnd"), E7 = Symbol("emittedError"), w6 = Symbol("closed"), P6 = Symbol("read"), L6 = Symbol("flush"), _6 = Symbol("flushChunk"), h9 = Symbol("encoding"), m7 = Symbol("decoder"), M5 = Symbol("flowing"), y4 = Symbol("paused"), p5 = Symbol("resume"), s7 = Symbol("bufferLength"), T5 = Symbol("bufferPush"), B4 = Symbol("bufferShift"), r6 = Symbol("objectMode"), n6 = Symbol("destroyed"), D3 = Symbol("emitData"), F3 = Symbol("emitEnd"), R9 = Symbol("emitEnd2"), d6 = Symbol("async"), b5 = (o8) => Promise.resolve().then(o8), C4 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $6 = C4 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), G4 = C4 && Symbol.iterator || Symbol("iterator not implemented"), V6 = (o8) => o8 === "end" || o8 === "finish" || o8 === "prefinish", v6 = (o8) => o8 instanceof ArrayBuffer || typeof o8 == "object" && o8.constructor && o8.constructor.name === "ArrayBuffer" && o8.byteLength >= 0, J3 = (o8) => !Buffer.isBuffer(o8) && ArrayBuffer.isView(o8);
278202
278016
 
278203
278017
  class U7 {
278204
278018
  constructor(t8, e10, i6) {
@@ -278406,15 +278220,15 @@ function tt2() {
278406
278220
  if (this[u7])
278407
278221
  return Promise.resolve({ done: true });
278408
278222
  let i6 = null, l4 = null;
278409
- const f5 = (g5) => {
278410
- this.removeListener("data", A5), this.removeListener("end", O6), l4(g5);
278411
- }, A5 = (g5) => {
278412
- this.removeListener("error", f5), this.removeListener("end", O6), this.pause(), i6({ value: g5, done: !!this[u7] });
278223
+ const f5 = (g6) => {
278224
+ this.removeListener("data", A5), this.removeListener("end", O6), l4(g6);
278225
+ }, A5 = (g6) => {
278226
+ this.removeListener("error", f5), this.removeListener("end", O6), this.pause(), i6({ value: g6, done: !!this[u7] });
278413
278227
  }, O6 = () => {
278414
278228
  this.removeListener("error", f5), this.removeListener("data", A5), i6({ done: true });
278415
278229
  }, W6 = () => f5(new Error("stream destroyed"));
278416
- return new Promise((g5, z4) => {
278417
- l4 = z4, i6 = g5, this.once(n6, W6), this.once("error", f5), this.once("end", O6), this.once("data", A5);
278230
+ return new Promise((g6, z4) => {
278231
+ l4 = z4, i6 = g6, this.once(n6, W6), this.once("error", f5), this.once("end", O6), this.once("data", A5);
278418
278232
  });
278419
278233
  } };
278420
278234
  }
@@ -278432,11 +278246,11 @@ function tt2() {
278432
278246
  }
278433
278247
  }, j3;
278434
278248
  }
278435
- var C5;
278249
+ var C4;
278436
278250
  function J3() {
278437
- if (C5)
278251
+ if (C4)
278438
278252
  return i$3;
278439
- C5 = 1;
278253
+ C4 = 1;
278440
278254
  const w6 = j$1, n6 = P5.Buffer, z4 = O$2, u7 = i$3.constants = T4(), L6 = tt2(), E7 = n6.concat, c3 = Symbol("_superWrite");
278441
278255
 
278442
278256
  class d6 extends Error {
@@ -278447,13 +278261,13 @@ function J3() {
278447
278261
  return "ZlibError";
278448
278262
  }
278449
278263
  }
278450
- const Z4 = Symbol("opts"), p5 = Symbol("flushFlag"), I7 = Symbol("finishFlushFlag"), y4 = Symbol("fullFlushFlag"), t8 = Symbol("handle"), _6 = Symbol("onError"), f5 = Symbol("sawError"), F3 = Symbol("level"), S4 = Symbol("strategy"), g5 = Symbol("ended");
278264
+ const Z4 = Symbol("opts"), p5 = Symbol("flushFlag"), I7 = Symbol("finishFlushFlag"), y4 = Symbol("fullFlushFlag"), t8 = Symbol("handle"), _6 = Symbol("onError"), f5 = Symbol("sawError"), F3 = Symbol("level"), S4 = Symbol("strategy"), g6 = Symbol("ended");
278451
278265
 
278452
278266
  class x7 extends L6 {
278453
278267
  constructor(s7, e10) {
278454
278268
  if (!s7 || typeof s7 != "object")
278455
278269
  throw new TypeError("invalid options for ZlibBase constructor");
278456
- super(s7), this[f5] = false, this[g5] = false, this[Z4] = s7, this[p5] = s7.flush, this[I7] = s7.finishFlush;
278270
+ super(s7), this[f5] = false, this[g6] = false, this[Z4] = s7, this[p5] = s7.flush, this[I7] = s7.finishFlush;
278457
278271
  try {
278458
278272
  this[t8] = new z4[e10](s7);
278459
278273
  } catch (i6) {
@@ -278474,10 +278288,10 @@ function J3() {
278474
278288
  this.ended || (typeof s7 != "number" && (s7 = this[y4]), this.write(Object.assign(n6.alloc(0), { [p5]: s7 })));
278475
278289
  }
278476
278290
  end(s7, e10, i6) {
278477
- return s7 && this.write(s7, e10), this.flush(this[I7]), this[g5] = true, super.end(null, null, i6);
278291
+ return s7 && this.write(s7, e10), this.flush(this[I7]), this[g6] = true, super.end(null, null, i6);
278478
278292
  }
278479
278293
  get ended() {
278480
- return this[g5];
278294
+ return this[g6];
278481
278295
  }
278482
278296
  write(s7, e10, i6) {
278483
278297
  if (typeof e10 == "function" && (i6 = e10, e10 = "utf8"), typeof s7 == "string" && (s7 = n6.from(s7, e10)), this[f5])
@@ -278613,7 +278427,7 @@ function rt4() {
278613
278427
  if (F$2)
278614
278428
  return O$1;
278615
278429
  F$2 = 1;
278616
- const P6 = c$4(), $6 = E6(), v6 = nt2, W6 = c$3(), G4 = 1024 * 1024, k6 = u$3(), C6 = f$2(), x7 = J3(), { nextTick: j4 } = nt$1, B4 = Buffer.from([31, 139]), h9 = Symbol("state"), d6 = Symbol("writeEntry"), a7 = Symbol("readEntry"), I7 = Symbol("nextEntry"), U7 = Symbol("processEntry"), l4 = Symbol("extendedHeader"), y4 = Symbol("globalExtendedHeader"), c3 = Symbol("meta"), H4 = Symbol("emitMeta"), n6 = Symbol("buffer"), f5 = Symbol("queue"), u7 = Symbol("ended"), L6 = Symbol("emittedEnd"), b5 = Symbol("emit"), r6 = Symbol("unzip"), _6 = Symbol("consumeChunk"), g5 = Symbol("consumeChunkSub"), q7 = Symbol("consumeBody"), z4 = Symbol("consumeMeta"), Y4 = Symbol("consumeHeader"), N7 = Symbol("consuming"), D3 = Symbol("bufferConcat"), M5 = Symbol("maybeEnd"), S4 = Symbol("writing"), m7 = Symbol("aborted"), T5 = Symbol("onDone"), E$1 = Symbol("sawValidEntry"), R9 = Symbol("sawNullBlock"), A5 = Symbol("sawEOF"), V6 = Symbol("closeStream"), K4 = (X6) => true;
278430
+ const P6 = c$4(), $6 = E6(), v6 = nt2, W6 = c$3(), G4 = 1024 * 1024, k6 = u$3(), C5 = f$2(), x7 = J3(), { nextTick: j4 } = nt$1, B4 = Buffer.from([31, 139]), h9 = Symbol("state"), d6 = Symbol("writeEntry"), a7 = Symbol("readEntry"), I7 = Symbol("nextEntry"), U7 = Symbol("processEntry"), l4 = Symbol("extendedHeader"), y4 = Symbol("globalExtendedHeader"), c3 = Symbol("meta"), H4 = Symbol("emitMeta"), n6 = Symbol("buffer"), f5 = Symbol("queue"), u7 = Symbol("ended"), L6 = Symbol("emittedEnd"), b5 = Symbol("emit"), r6 = Symbol("unzip"), _6 = Symbol("consumeChunk"), g6 = Symbol("consumeChunkSub"), q7 = Symbol("consumeBody"), z4 = Symbol("consumeMeta"), Y4 = Symbol("consumeHeader"), N7 = Symbol("consuming"), D3 = Symbol("bufferConcat"), M5 = Symbol("maybeEnd"), S4 = Symbol("writing"), m7 = Symbol("aborted"), T5 = Symbol("onDone"), E$1 = Symbol("sawValidEntry"), R9 = Symbol("sawNullBlock"), A5 = Symbol("sawEOF"), V6 = Symbol("closeStream"), K4 = (X6) => true;
278617
278431
  return O$1 = P6(class extends v6 {
278618
278432
  constructor(t8) {
278619
278433
  t8 = t8 || {}, super(t8), this.file = t8.file || "", this[E$1] = null, this.on(T5, (s7) => {
@@ -278689,10 +278503,10 @@ function rt4() {
278689
278503
  switch (this[b5]("meta", this[c3]), t8.type) {
278690
278504
  case "ExtendedHeader":
278691
278505
  case "OldExtendedHeader":
278692
- this[l4] = C6.parse(this[c3], this[l4], false);
278506
+ this[l4] = C5.parse(this[c3], this[l4], false);
278693
278507
  break;
278694
278508
  case "GlobalExtendedHeader":
278695
- this[y4] = C6.parse(this[c3], this[y4], true);
278509
+ this[y4] = C5.parse(this[c3], this[y4], true);
278696
278510
  break;
278697
278511
  case "NextFileHasLongPath":
278698
278512
  case "OldGnuLongPath":
@@ -278765,18 +278579,18 @@ function rt4() {
278765
278579
  if (this[N7] = true, this[n6]) {
278766
278580
  this[D3](t8);
278767
278581
  const i6 = this[n6];
278768
- this[n6] = null, this[g5](i6);
278582
+ this[n6] = null, this[g6](i6);
278769
278583
  } else
278770
- this[g5](t8);
278584
+ this[g6](t8);
278771
278585
  for (;this[n6] && this[n6].length >= 512 && !this[m7] && !this[A5]; ) {
278772
278586
  const i6 = this[n6];
278773
- this[n6] = null, this[g5](i6);
278587
+ this[n6] = null, this[g6](i6);
278774
278588
  }
278775
278589
  this[N7] = false;
278776
278590
  }
278777
278591
  (!this[n6] || this[u7]) && this[M5]();
278778
278592
  }
278779
- [g5](t8) {
278593
+ [g6](t8) {
278780
278594
  let i6 = 0;
278781
278595
  const s7 = t8.length;
278782
278596
  for (;i6 + 512 <= s7 && !this[m7] && !this[A5]; )
@@ -278817,7 +278631,7 @@ function X6() {
278817
278631
  j4.oncomplete = G4, c3.writeBuffers(e10, i6, $6, j4);
278818
278632
  };
278819
278633
  }
278820
- const m7 = Symbol("_autoClose"), h9 = Symbol("_close"), g5 = Symbol("_ended"), s7 = Symbol("_fd"), B4 = Symbol("_finished"), o8 = Symbol("_flags"), x7 = Symbol("_flush"), z4 = Symbol("_handleChunk"), T5 = Symbol("_makeBuf"), q7 = Symbol("_mode"), E7 = Symbol("_needDrain"), d6 = Symbol("_onerror"), y4 = Symbol("_onopen"), W6 = Symbol("_onread"), _6 = Symbol("_onwrite"), a7 = Symbol("_open"), l4 = Symbol("_path"), u7 = Symbol("_pos"), n6 = Symbol("_queue"), S4 = Symbol("_read"), M5 = Symbol("_readSize"), f5 = Symbol("_reading"), k6 = Symbol("_remain"), N7 = Symbol("_size"), C6 = Symbol("_write"), b5 = Symbol("_writing"), F3 = Symbol("_defaultFlag"), p5 = Symbol("_errored");
278634
+ const m7 = Symbol("_autoClose"), h9 = Symbol("_close"), g6 = Symbol("_ended"), s7 = Symbol("_fd"), B4 = Symbol("_finished"), o8 = Symbol("_flags"), x7 = Symbol("_flush"), z4 = Symbol("_handleChunk"), T5 = Symbol("_makeBuf"), q7 = Symbol("_mode"), E7 = Symbol("_needDrain"), d6 = Symbol("_onerror"), y4 = Symbol("_onopen"), W6 = Symbol("_onread"), _6 = Symbol("_onwrite"), a7 = Symbol("_open"), l4 = Symbol("_path"), u7 = Symbol("_pos"), n6 = Symbol("_queue"), S4 = Symbol("_read"), M5 = Symbol("_readSize"), f5 = Symbol("_reading"), k6 = Symbol("_remain"), N7 = Symbol("_size"), C5 = Symbol("_write"), b5 = Symbol("_writing"), F3 = Symbol("_defaultFlag"), p5 = Symbol("_errored");
278821
278635
 
278822
278636
  class D3 extends H4 {
278823
278637
  constructor(t8, e10) {
@@ -278923,7 +278737,7 @@ function X6() {
278923
278737
 
278924
278738
  class O6 extends I7 {
278925
278739
  constructor(t8, e10) {
278926
- e10 = e10 || {}, super(e10), this.readable = false, this.writable = true, this[p5] = false, this[b5] = false, this[g5] = false, this[E7] = false, this[n6] = [], this[l4] = t8, this[s7] = typeof e10.fd == "number" ? e10.fd : null, this[q7] = e10.mode === undefined ? 438 : e10.mode, this[u7] = typeof e10.start == "number" ? e10.start : null, this[m7] = typeof e10.autoClose == "boolean" ? e10.autoClose : true;
278740
+ e10 = e10 || {}, super(e10), this.readable = false, this.writable = true, this[p5] = false, this[b5] = false, this[g6] = false, this[E7] = false, this[n6] = [], this[l4] = t8, this[s7] = typeof e10.fd == "number" ? e10.fd : null, this[q7] = e10.mode === undefined ? 438 : e10.mode, this[u7] = typeof e10.start == "number" ? e10.start : null, this[m7] = typeof e10.autoClose == "boolean" ? e10.autoClose : true;
278927
278741
  const i6 = this[u7] !== null ? "r+" : "w";
278928
278742
  this[F3] = e10.flags === undefined, this[o8] = this[F3] ? i6 : e10.flags, this[s7] === null && this[a7]();
278929
278743
  }
@@ -278951,22 +278765,22 @@ function X6() {
278951
278765
  this[F3] && this[o8] === "r+" && t8 && t8.code === "ENOENT" ? (this[o8] = "w", this[a7]()) : t8 ? this[d6](t8) : (this[s7] = e10, this.emit("open", e10), this[x7]());
278952
278766
  }
278953
278767
  end(t8, e10) {
278954
- return t8 && this.write(t8, e10), this[g5] = true, !this[b5] && !this[n6].length && typeof this[s7] == "number" && this[_6](null, 0), this;
278768
+ return t8 && this.write(t8, e10), this[g6] = true, !this[b5] && !this[n6].length && typeof this[s7] == "number" && this[_6](null, 0), this;
278955
278769
  }
278956
278770
  write(t8, e10) {
278957
- return typeof t8 == "string" && (t8 = Buffer.from(t8, e10)), this[g5] ? (this.emit("error", new Error("write() after end()")), false) : this[s7] === null || this[b5] || this[n6].length ? (this[n6].push(t8), this[E7] = true, false) : (this[b5] = true, this[C6](t8), true);
278771
+ return typeof t8 == "string" && (t8 = Buffer.from(t8, e10)), this[g6] ? (this.emit("error", new Error("write() after end()")), false) : this[s7] === null || this[b5] || this[n6].length ? (this[n6].push(t8), this[E7] = true, false) : (this[b5] = true, this[C5](t8), true);
278958
278772
  }
278959
- [C6](t8) {
278773
+ [C5](t8) {
278960
278774
  r6.write(this[s7], t8, 0, t8.length, this[u7], (e10, i6) => this[_6](e10, i6));
278961
278775
  }
278962
278776
  [_6](t8, e10) {
278963
- t8 ? this[d6](t8) : (this[u7] !== null && (this[u7] += e10), this[n6].length ? this[x7]() : (this[b5] = false, this[g5] && !this[B4] ? (this[B4] = true, this[h9](), this.emit("finish")) : this[E7] && (this[E7] = false, this.emit("drain"))));
278777
+ t8 ? this[d6](t8) : (this[u7] !== null && (this[u7] += e10), this[n6].length ? this[x7]() : (this[b5] = false, this[g6] && !this[B4] ? (this[B4] = true, this[h9](), this.emit("finish")) : this[E7] && (this[E7] = false, this.emit("drain"))));
278964
278778
  }
278965
278779
  [x7]() {
278966
278780
  if (this[n6].length === 0)
278967
- this[g5] && this[_6](null, 0);
278781
+ this[g6] && this[_6](null, 0);
278968
278782
  else if (this[n6].length === 1)
278969
- this[C6](this[n6].pop());
278783
+ this[C5](this[n6].pop());
278970
278784
  else {
278971
278785
  const t8 = this[n6];
278972
278786
  this[n6] = [], R9(this[s7], t8, this[u7], (e10, i6) => this[_6](e10, i6));
@@ -279001,7 +278815,7 @@ function X6() {
279001
278815
  this[s7] = null, r6.closeSync(t8), this.emit("close");
279002
278816
  }
279003
278817
  }
279004
- [C6](t8) {
278818
+ [C5](t8) {
279005
278819
  let e10 = true;
279006
278820
  try {
279007
278821
  this[_6](null, r6.writeSync(this[s7], t8, 0, t8.length, this[u7])), e10 = false;
@@ -279241,7 +279055,7 @@ function F$1() {
279241
279055
  };
279242
279056
  s7.forEach((l4) => S5(r6, l4, e10, n6, H4));
279243
279057
  });
279244
- }, C6 = (r6, e10, n6, t9) => {
279058
+ }, C5 = (r6, e10, n6, t9) => {
279245
279059
  if (typeof e10 == "string")
279246
279060
  try {
279247
279061
  const o8 = c3.lstatSync(a7.resolve(r6, e10));
@@ -279263,7 +279077,7 @@ function F$1() {
279263
279077
  return w6(r6, e10, n6);
279264
279078
  throw o8;
279265
279079
  }
279266
- return t9 && t9.length && t9.forEach((o8) => C6(r6, o8, e10, n6)), w6(r6, e10, n6);
279080
+ return t9 && t9.length && t9.forEach((o8) => C5(r6, o8, e10, n6)), w6(r6, e10, n6);
279267
279081
  };
279268
279082
  return y$12 = E7, E7.sync = m8, y$12;
279269
279083
  }
@@ -279272,7 +279086,7 @@ function H4() {
279272
279086
  if (R9)
279273
279087
  return r$1.exports;
279274
279088
  R9 = 1;
279275
- const g5 = S4(), l4 = V5, p5 = H$2, x7 = F$1(), y4 = a$7();
279089
+ const g6 = S4(), l4 = V5, p5 = H$2, x7 = F$1(), y4 = a$7();
279276
279090
 
279277
279091
  class D3 extends Error {
279278
279092
  constructor(e10, s7) {
@@ -279306,23 +279120,23 @@ function H4() {
279306
279120
  if (n6 === d6)
279307
279121
  return I7(n6, w6);
279308
279122
  if (u7)
279309
- return g5(n6, { mode: c3 }).then((k6) => w6(null, k6), w6);
279123
+ return g6(n6, { mode: c3 }).then((k6) => w6(null, k6), w6);
279310
279124
  const S5 = y4(p5.relative(d6, n6)).split("/");
279311
- C6(d6, S5, c3, h9, m8, d6, null, w6);
279125
+ C5(d6, S5, c3, h9, m8, d6, null, w6);
279312
279126
  };
279313
- const C6 = (n6, e10, s7, r6, c3, f5, t9, i6) => {
279127
+ const C5 = (n6, e10, s7, r6, c3, f5, t9, i6) => {
279314
279128
  if (!e10.length)
279315
279129
  return i6(null, t9);
279316
279130
  const a7 = e10.shift(), u7 = y4(p5.resolve(n6 + "/" + a7));
279317
279131
  if (v6(r6, u7))
279318
- return C6(u7, e10, s7, r6, c3, f5, t9, i6);
279132
+ return C5(u7, e10, s7, r6, c3, f5, t9, i6);
279319
279133
  l4.mkdir(u7, s7, j4(u7, e10, s7, r6, c3, f5, t9, i6));
279320
279134
  }, j4 = (n6, e10, s7, r6, c3, f5, t9, i6) => (a7) => {
279321
279135
  a7 ? l4.lstat(n6, (u7, m8) => {
279322
279136
  if (u7)
279323
279137
  u7.path = u7.path && y4(u7.path), i6(u7);
279324
279138
  else if (m8.isDirectory())
279325
- C6(n6, e10, s7, r6, c3, f5, t9, i6);
279139
+ C5(n6, e10, s7, r6, c3, f5, t9, i6);
279326
279140
  else if (c3)
279327
279141
  l4.unlink(n6, (h9) => {
279328
279142
  if (h9)
@@ -279334,7 +279148,7 @@ function H4() {
279334
279148
  return i6(new D3(n6, n6 + "/" + e10.join("/")));
279335
279149
  i6(a7);
279336
279150
  }
279337
- }) : (t9 = t9 || n6, C6(n6, e10, s7, r6, c3, f5, t9, i6));
279151
+ }) : (t9 = t9 || n6, C5(n6, e10, s7, r6, c3, f5, t9, i6));
279338
279152
  }, L6 = (n6) => {
279339
279153
  let e10 = false, s7 = "ENOTDIR";
279340
279154
  try {
@@ -279356,7 +279170,7 @@ function H4() {
279356
279170
  if (n6 === h9)
279357
279171
  return L6(h9), d6();
279358
279172
  if (a7)
279359
- return d6(g5.sync(n6, r6));
279173
+ return d6(g6.sync(n6, r6));
279360
279174
  const $6 = y4(p5.relative(h9, n6)).split("/");
279361
279175
  let S5 = null;
279362
279176
  for (let k6 = $6.shift(), o8 = h9;k6 && (o8 += "/" + k6); k6 = $6.shift())
@@ -279411,7 +279225,7 @@ function z4() {
279411
279225
  if (f$1)
279412
279226
  return u$1;
279413
279227
  f$1 = 1;
279414
- const l5 = j$1, m8 = a$12(), g5 = s7(), { join: d6 } = H$2, q7 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
279228
+ const l5 = j$1, m8 = a$12(), g6 = s7(), { join: d6 } = H$2, q7 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
279415
279229
  return u$1 = () => {
279416
279230
  const i7 = new Map, c3 = new Map, v6 = (e10) => e10.split("/").slice(0, -1).reduce((o8, r6) => (o8.length && (r6 = d6(o8[o8.length - 1], r6)), o8.push(r6 || "/"), o8), []), a8 = new Set, w6 = (e10) => {
279417
279231
  const s8 = c3.get(e10);
@@ -279434,7 +279248,7 @@ function z4() {
279434
279248
  }), a8.delete(e10), r6.forEach((t9) => p6(t9)), true;
279435
279249
  };
279436
279250
  return { check: h9, reserve: (e10, s8) => {
279437
- e10 = q7 ? ["win32 parallelization disabled"] : e10.map((r6) => g5(d6(m8(r6))).toLowerCase());
279251
+ e10 = q7 ? ["win32 parallelization disabled"] : e10.map((r6) => g6(d6(m8(r6))).toLowerCase());
279438
279252
  const o8 = new Set(e10.map((r6) => v6(r6)).reduce((r6, t9) => r6.concat(t9)));
279439
279253
  return c3.set(s8, { dirs: o8, paths: e10 }), e10.forEach((r6) => {
279440
279254
  const t9 = i7.get(r6);
@@ -279477,8 +279291,8 @@ function Os() {
279477
279291
  if (y4)
279478
279292
  return G4;
279479
279293
  y4 = 1;
279480
- const ss = j$1, is = rt4(), r6 = V5, es = X6(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z4(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q7 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N7 = Symbol("isReusable"), d6 = Symbol("makeFs"), U7 = Symbol("file"), F$12 = Symbol("directory"), O7 = Symbol("link"), B4 = Symbol("symlink"), z$1 = Symbol("hardlink"), W6 = Symbol("unsupported"), j4 = Symbol("checkPath"), b5 = Symbol("mkdir"), m8 = Symbol("onError"), $6 = Symbol("pending"), V$1 = Symbol("pend"), S5 = Symbol("unpend"), P6 = Symbol("ended"), A5 = Symbol("maybeClose"), x7 = Symbol("skip"), E7 = Symbol("doChown"), R10 = Symbol("uid"), _6 = Symbol("gid"), g5 = Symbol("checkedCwd"), X$12 = Ds, J4 = F3(), C6 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32", cs = 1024, as = (a8, s8) => {
279481
- if (!C6)
279294
+ const ss = j$1, is = rt4(), r6 = V5, es = X6(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z4(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q7 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N7 = Symbol("isReusable"), d6 = Symbol("makeFs"), U7 = Symbol("file"), F$12 = Symbol("directory"), O7 = Symbol("link"), B4 = Symbol("symlink"), z$1 = Symbol("hardlink"), W6 = Symbol("unsupported"), j4 = Symbol("checkPath"), b5 = Symbol("mkdir"), m8 = Symbol("onError"), $6 = Symbol("pending"), V$1 = Symbol("pend"), S5 = Symbol("unpend"), P6 = Symbol("ended"), A5 = Symbol("maybeClose"), x7 = Symbol("skip"), E7 = Symbol("doChown"), R10 = Symbol("uid"), _6 = Symbol("gid"), g6 = Symbol("checkedCwd"), X$12 = Ds, J4 = F3(), C5 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32", cs = 1024, as = (a8, s8) => {
279295
+ if (!C5)
279482
279296
  return r6.unlink(a8, s8);
279483
279297
  const i7 = a8 + ".DELETE." + X$12.randomBytes(16).toString("hex");
279484
279298
  r6.rename(a8, i7, (e11) => {
@@ -279487,7 +279301,7 @@ function Os() {
279487
279301
  r6.unlink(i7, s8);
279488
279302
  });
279489
279303
  }, us = (a8) => {
279490
- if (!C6)
279304
+ if (!C5)
279491
279305
  return r6.unlinkSync(a8);
279492
279306
  const s8 = a8 + ".DELETE." + X$12.randomBytes(16).toString("hex");
279493
279307
  r6.renameSync(a8, s8), r6.unlinkSync(s8);
@@ -279506,7 +279320,7 @@ function Os() {
279506
279320
  constructor(s8) {
279507
279321
  if (s8 || (s8 = {}), s8.ondone = (i7) => {
279508
279322
  this[P6] = true, this[A5]();
279509
- }, super(s8), this[g5] = false, this.reservations = ts(), this.transform = typeof s8.transform == "function" ? s8.transform : null, this.writable = true, this.readable = false, this[$6] = 0, this[P6] = false, this.dirCache = s8.dirCache || new Map, typeof s8.uid == "number" || typeof s8.gid == "number") {
279323
+ }, super(s8), this[g6] = false, this.reservations = ts(), this.transform = typeof s8.transform == "function" ? s8.transform : null, this.writable = true, this.readable = false, this[$6] = 0, this[P6] = false, this.dirCache = s8.dirCache || new Map, typeof s8.uid == "number" || typeof s8.gid == "number") {
279510
279324
  if (typeof s8.uid != "number" || typeof s8.gid != "number")
279511
279325
  throw new TypeError("cannot set owner without number uid and gid");
279512
279326
  if (s8.preserveOwner)
@@ -279514,7 +279328,7 @@ function Os() {
279514
279328
  this.uid = s8.uid, this.gid = s8.gid, this.setOwner = true;
279515
279329
  } else
279516
279330
  this.uid = null, this.gid = null, this.setOwner = false;
279517
- s8.preserveOwner === undefined && typeof s8.uid != "number" ? this.preserveOwner = process.getuid && process.getuid() === 0 : this.preserveOwner = !!s8.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null, this.maxDepth = typeof s8.maxDepth == "number" ? s8.maxDepth : cs, this.forceChown = s8.forceChown === true, this.win32 = !!s8.win32 || C6, this.newer = !!s8.newer, this.keep = !!s8.keep, this.noMtime = !!s8.noMtime, this.preservePaths = !!s8.preservePaths, this.unlink = !!s8.unlink, this.cwd = l5(w6.resolve(s8.cwd || process.cwd())), this.strip = +s8.strip || 0, this.processUmask = s8.noChmod ? 0 : process.umask(), this.umask = typeof s8.umask == "number" ? s8.umask : this.processUmask, this.dmode = s8.dmode || 511 & ~this.umask, this.fmode = s8.fmode || 438 & ~this.umask, this.on("entry", (i7) => this[H$12](i7));
279331
+ s8.preserveOwner === undefined && typeof s8.uid != "number" ? this.preserveOwner = process.getuid && process.getuid() === 0 : this.preserveOwner = !!s8.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null, this.maxDepth = typeof s8.maxDepth == "number" ? s8.maxDepth : cs, this.forceChown = s8.forceChown === true, this.win32 = !!s8.win32 || C5, this.newer = !!s8.newer, this.keep = !!s8.keep, this.noMtime = !!s8.noMtime, this.preservePaths = !!s8.preservePaths, this.unlink = !!s8.unlink, this.cwd = l5(w6.resolve(s8.cwd || process.cwd())), this.strip = +s8.strip || 0, this.processUmask = s8.noChmod ? 0 : process.umask(), this.umask = typeof s8.umask == "number" ? s8.umask : this.processUmask, this.dmode = s8.dmode || 511 & ~this.umask, this.fmode = s8.fmode || 438 & ~this.umask, this.on("entry", (i7) => this[H$12](i7));
279518
279332
  }
279519
279333
  warn(s8, i7, e11 = {}) {
279520
279334
  return (s8 === "TAR_BAD_ARCHIVE" || s8 === "TAR_ABORT") && (e11.recoverable = false), super.warn(s8, i7, e11);
@@ -279539,7 +279353,7 @@ function Os() {
279539
279353
  if (isFinite(this.maxDepth) && e11.length > this.maxDepth)
279540
279354
  return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: s8, path: i7, depth: e11.length, maxDepth: this.maxDepth }), false;
279541
279355
  if (!this.preservePaths) {
279542
- if (e11.includes("..") || C6 && /^[a-z]:\.\.$/i.test(e11[0]))
279356
+ if (e11.includes("..") || C5 && /^[a-z]:\.\.$/i.test(e11[0]))
279543
279357
  return this.warn("TAR_ENTRY_ERROR", "path contains '..'", { entry: s8, path: i7 }), false;
279544
279358
  const [t9, o9] = os(i7);
279545
279359
  t9 && (s8.path = o9, this.warn("TAR_ENTRY_INFO", `stripping ${t9} from absolute path`, { entry: s8, path: i7 }));
@@ -279659,7 +279473,7 @@ function Os() {
279659
279473
  this[S5](), s8.resume();
279660
279474
  }
279661
279475
  [N7](s8, i7) {
279662
- return s8.type === "File" && !this.unlink && i7.isFile() && i7.nlink <= 1 && !C6;
279476
+ return s8.type === "File" && !this.unlink && i7.isFile() && i7.nlink <= 1 && !C5;
279663
279477
  }
279664
279478
  [q7](s8) {
279665
279479
  this[V$1]();
@@ -279679,7 +279493,7 @@ function Os() {
279679
279493
  this[m8](h9, s8), e11();
279680
279494
  return;
279681
279495
  }
279682
- this[g5] = true, o9();
279496
+ this[g6] = true, o9();
279683
279497
  });
279684
279498
  }, o9 = () => {
279685
279499
  if (s8.absolute !== this.cwd) {
@@ -279715,7 +279529,7 @@ function Os() {
279715
279529
  as(s8.absolute, (n7) => this[d6](n7, s8, e11));
279716
279530
  });
279717
279531
  };
279718
- this[g5] ? o9() : t9();
279532
+ this[g6] ? o9() : t9();
279719
279533
  }
279720
279534
  [d6](s8, i7, e11) {
279721
279535
  if (s8) {
@@ -279755,11 +279569,11 @@ function Os() {
279755
279569
  return super[d6](s8, i7, () => {});
279756
279570
  }
279757
279571
  [q7](s8) {
279758
- if (this[v6](s8), !this[g5]) {
279572
+ if (this[v6](s8), !this[g6]) {
279759
279573
  const o9 = this[b5](this.cwd, this.dmode);
279760
279574
  if (o9)
279761
279575
  return this[m8](o9, s8);
279762
- this[g5] = true;
279576
+ this[g6] = true;
279763
279577
  }
279764
279578
  if (s8.absolute !== this.cwd) {
279765
279579
  const o9 = l5(w6.dirname(s8.absolute));
@@ -283518,6 +283332,17 @@ async function addressPrompt({
283518
283332
  node,
283519
283333
  hardhatConfig
283520
283334
  }) {
283335
+ if (!node) {
283336
+ return esm_default2({
283337
+ message: "Which private key address do you want to deploy from?",
283338
+ validate: (value4) => {
283339
+ if (!isAddress(value4)) {
283340
+ return "Invalid address";
283341
+ }
283342
+ return true;
283343
+ }
283344
+ });
283345
+ }
283521
283346
  const possiblePrivateKeys = node.privateKeys?.filter(isValidPrivateKey) ?? [];
283522
283347
  const defaultAddress = hardhatConfig.networks?.btp?.from ?? possiblePrivateKeys[0]?.address;
283523
283348
  const defaultPossible = accept && defaultAddress;
@@ -283616,19 +283441,25 @@ function hardhatDeployRemoteCommand() {
283616
283441
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
283617
283442
  const autoAccept = !!acceptDefaults || is_in_ci_default;
283618
283443
  const env2 = await loadEnv(false, !!prod);
283444
+ let node;
283445
+ let envHardhatConfig = {};
283619
283446
  const instance = await instancePrompt(env2, true);
283620
- const accessToken = await getApplicationOrPersonalAccessToken({
283621
- env: env2,
283622
- instance,
283623
- prefer: "application"
283624
- });
283625
- const settlemint = createSettleMintClient({
283626
- accessToken,
283627
- instance
283628
- });
283629
- const node = await selectTargetNode({ env: env2, blockchainNodeUniqueName, autoAccept, settlemint });
283630
- const envConfig = await settlemint.foundry.env(node.uniqueName);
283631
- const hardhatConfig = await getHardhatConfigData(envConfig);
283447
+ if (instance === STANDALONE_INSTANCE2) {
283448
+ envHardhatConfig.BTP_RPC_URL = env2.SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT ?? "";
283449
+ } else {
283450
+ const accessToken = await getApplicationOrPersonalAccessToken({
283451
+ env: env2,
283452
+ instance,
283453
+ prefer: "application"
283454
+ });
283455
+ const settlemint = createSettleMintClient({
283456
+ accessToken,
283457
+ instance
283458
+ });
283459
+ const node2 = await selectTargetNode({ env: env2, blockchainNodeUniqueName, autoAccept, settlemint });
283460
+ envHardhatConfig = await settlemint.foundry.env(node2.uniqueName);
283461
+ }
283462
+ const hardhatConfig = await getHardhatConfigData(envHardhatConfig);
283632
283463
  if (verify && !hardhatConfig?.etherscan?.apiKey) {
283633
283464
  cancel2("It is not possible to verify the deployment on this network unless you supply an Etherscan API key in the hardhat.config.ts file");
283634
283465
  }
@@ -283656,7 +283487,7 @@ function hardhatDeployRemoteCommand() {
283656
283487
  "--default-sender",
283657
283488
  address,
283658
283489
  module ?? "ignition/modules/main.ts"
283659
- ].filter(Boolean), { env: envConfig });
283490
+ ].filter(Boolean), { env: envHardhatConfig });
283660
283491
  const outputStr = output.join(`
283661
283492
  `);
283662
283493
  if (!outputStr.includes("Deploy cancelled")) {
@@ -284302,4 +284133,4 @@ async function sdkCliCommand(argv = process.argv) {
284302
284133
  // src/cli.ts
284303
284134
  sdkCliCommand();
284304
284135
 
284305
- //# debugId=EA8A32EF0B792C9964756E2164756E21
284136
+ //# debugId=AC9B4D58ED942A5E64756E2164756E21