@meshsdk/core 1.5.7-beta.1 → 1.5.8

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.
package/dist/core.js CHANGED
@@ -1,24 +1,12 @@
1
- import * as n from "@emurgo/cardano-serialization-lib-asmjs";
2
- import j from "axios";
3
- import { mnemonicToEntropy as ye, generateMnemonic as $e } from "bip39";
4
- import { COSEKey as Ce, COSESign1 as ze, Label as J, Int as _t, BigNum as Kt, KeyType as We, AlgorithmId as we, CBORValue as Nt, HeaderMap as Wt, Headers as Je, ProtectedHeaderMap as je, COSESign1Builder as Xe } from "@emurgo/cardano-message-signing-asmjs";
5
- const Ze = ["testnet", "preview", "preprod", "mainnet"], ts = (s) => Ze.includes(s);
6
- let es = (s) => crypto.getRandomValues(new Uint8Array(s)), ss = (s, e, t) => {
7
- let r = (2 << Math.log(s.length - 1) / Math.LN2) - 1, a = -~(1.6 * r * e / s.length);
8
- return (i = e) => {
9
- let o = "";
10
- for (; ; ) {
11
- let c = t(a), u = a;
12
- for (; u--; )
13
- if (o += s[c[u] & r] || "", o.length === i)
14
- return o;
15
- }
16
- };
17
- }, Be = (s, e = 21) => ss(s, e, es);
18
- const Ee = {
1
+ import { customAlphabet as ye } from "nanoid";
2
+ import * as i from "@emurgo/cardano-serialization-lib-nodejs";
3
+ import L from "axios";
4
+ import { mnemonicToEntropy as Ce, generateMnemonic as $e } from "bip39";
5
+ import { COSEKey as we, COSESign1 as ze, Label as j, Int as yt, BigNum as Nt, KeyType as We, AlgorithmId as Be, CBORValue as Pt, HeaderMap as Wt, Headers as Je, ProtectedHeaderMap as je, COSESign1Builder as Xe } from "@emurgo/cardano-message-signing-nodejs";
6
+ const Ze = ["testnet", "preview", "preprod", "mainnet"], ts = (s) => Ze.includes(s), xe = {
19
7
  mem: 7e6,
20
8
  steps: 3e9
21
- }, q = {
9
+ }, G = {
22
10
  epoch: 0,
23
11
  coinsPerUTxOSize: "4310",
24
12
  priceMem: 0.0577,
@@ -39,23 +27,23 @@ const Ee = {
39
27
  maxTxExSteps: "10000000000",
40
28
  maxBlockExMem: "80000000",
41
29
  maxBlockExSteps: "40000000000"
42
- }, kt = 2147483648, Et = {
43
- V1: n.Language.new_plutus_v1(),
44
- V2: n.Language.new_plutus_v2()
45
- }, F = 56, rs = {
46
- CERT: n.RedeemerTag.new_cert(),
47
- MINT: n.RedeemerTag.new_mint(),
48
- REWARD: n.RedeemerTag.new_reward(),
49
- SPEND: n.RedeemerTag.new_spend()
50
- }, xt = {
30
+ }, Ut = 2147483648, xt = {
31
+ V1: i.Language.new_plutus_v1(),
32
+ V2: i.Language.new_plutus_v2()
33
+ }, M = 56, es = {
34
+ CERT: i.RedeemerTag.new_cert(),
35
+ MINT: i.RedeemerTag.new_mint(),
36
+ REWARD: i.RedeemerTag.new_reward(),
37
+ SPEND: i.RedeemerTag.new_spend()
38
+ }, Et = {
51
39
  testnet: ["74", "1598400", "1595967616", "432000"],
52
40
  preview: ["183", "15811222", "1682467200", "86400"],
53
41
  preprod: ["65", "26438400", "1682121600", "432000"],
54
42
  mainnet: ["208", "4492800", "1596059091", "432000"]
55
43
  }, Jt = {
56
- ALONZO: n.TxBuilderConstants.plutus_alonzo_cost_models(),
44
+ ALONZO: i.TxBuilderConstants.plutus_alonzo_cost_models(),
57
45
  BABBAGE: (() => {
58
- const s = n.Costmdls.new(), e = n.CostModel.new();
46
+ const s = i.Costmdls.new(), e = i.CostModel.new();
59
47
  Object.values({
60
48
  "addInteger-cpu-arguments-intercept": 205665,
61
49
  "addInteger-cpu-arguments-slope": 812,
@@ -223,8 +211,8 @@ const Ee = {
223
211
  "verifyEd25519Signature-cpu-arguments-intercept": 57996947,
224
212
  "verifyEd25519Signature-cpu-arguments-slope": 18975,
225
213
  "verifyEd25519Signature-memory-arguments": 10
226
- }).forEach((r, a) => e.set(a, n.Int.new_i32(r)));
227
- const t = n.CostModel.new();
214
+ }).forEach((r, a) => e.set(a, i.Int.new_i32(r)));
215
+ const t = i.CostModel.new();
228
216
  return Object.values({
229
217
  "addInteger-cpu-arguments-intercept": 205665,
230
218
  "addInteger-cpu-arguments-slope": 812,
@@ -401,9 +389,9 @@ const Ee = {
401
389
  "verifySchnorrSecp256k1Signature-cpu-arguments-intercept": 38887044,
402
390
  "verifySchnorrSecp256k1Signature-cpu-arguments-slope": 32947,
403
391
  "verifySchnorrSecp256k1Signature-memory-arguments": 10
404
- }).forEach((r, a) => t.set(a, n.Int.new_i32(r))), s.insert(n.Language.new_plutus_v1(), e), s.insert(n.Language.new_plutus_v2(), t), s;
392
+ }).forEach((r, a) => t.set(a, i.Int.new_i32(r))), s.insert(i.Language.new_plutus_v1(), e), s.insert(i.Language.new_plutus_v2(), t), s;
405
393
  })()
406
- }, as = {
394
+ }, ss = {
407
395
  ALONZO: {
408
396
  V1: "a141005901d59f1a000302590001011a00060bc719026d00011a000249f01903e800011a000249f018201a0025cea81971f70419744d186419744d186419744d186419744d186419744d186419744d18641864186419744d18641a000249f018201a000249f018201a000249f018201a000249f01903e800011a000249f018201a000249f01903e800081a000242201a00067e2318760001011a000249f01903e800081a000249f01a0001b79818f7011a000249f0192710011a0002155e19052e011903e81a000249f01903e8011a000249f018201a000249f018201a000249f0182001011a000249f0011a000249f0041a000194af18f8011a000194af18f8011a0002377c190556011a0002bdea1901f1011a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000242201a00067e23187600010119f04c192bd200011a000249f018201a000242201a00067e2318760001011a000242201a00067e2318760001011a0025cea81971f704001a000141bb041a000249f019138800011a000249f018201a000302590001011a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a00330da70101ff"
409
397
  },
@@ -411,15 +399,15 @@ const Ee = {
411
399
  V1: "a141005901b69f1a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201a009063b91903fd0aff",
412
400
  V2: "a20198af1a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a0011b22c1a0005fdde00021a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201b00000004a817c8001b00000004a817c8001a009063b91903fd0a1b00000004a817c800001b00000004a817c80041005901b69f1a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201a009063b91903fd0aff"
413
401
  }
414
- }, Tt = {
415
- [n.NetworkInfo.testnet().network_id()]: "8d18d786e92776c824607fd8e193ec535c79dc61ea2405ddf3b09fe3",
416
- [n.NetworkInfo.mainnet().network_id()]: "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a"
417
- }, ns = {
402
+ }, Mt = {
403
+ [i.NetworkInfo.testnet().network_id()]: "8d18d786e92776c824607fd8e193ec535c79dc61ea2405ddf3b09fe3",
404
+ [i.NetworkInfo.mainnet().network_id()]: "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a"
405
+ }, rs = {
418
406
  mainnet: "wss://ogmios-api.mainnet.dandelion.link",
419
407
  preprod: "wss://ogmios-api.iohk-preprod.dandelion.link",
420
408
  preview: "__TBD_SOON_TM__",
421
409
  testnet: "wss://ogmios-api.testnet.dandelion.link"
422
- }, is = {
410
+ }, as = {
423
411
  LQ: "da8c30857834c6ae7203935b89278c532b3995245295456f993e1d244c51",
424
412
  MIN: "29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c64d494e",
425
413
  NTX: "edfd7a1d77bcb8b884c474bdc92a16002d1fb720e454fa6e993444794e5458",
@@ -457,125 +445,126 @@ const Ee = {
457
445
  "nufi",
458
446
  "gerowallet",
459
447
  "typhoncip30",
460
- "vespr"
461
- ], os = (s, e, t = "5000000") => {
462
- const r = n.BigNum.from_str(s.get("lovelace") ?? "0").checked_add(n.BigNum.from_str(t)), a = e.filter((c) => c.output.amount.filter((u) => u.unit !== "lovelace").some((u) => s.has(u.unit))), i = gs(a);
448
+ "vespr",
449
+ "yoroi"
450
+ ], ns = (s, e, t = "5000000") => {
451
+ const r = i.BigNum.from_str(s.get("lovelace") ?? "0").checked_add(i.BigNum.from_str(t)), a = e.filter((c) => c.output.amount.filter((u) => u.unit !== "lovelace").some((u) => s.has(u.unit))), n = us(a);
463
452
  return [
464
- ...i.less_than(r) ? ds(r.clamped_sub(i).to_str(), e.filter((c) => !a.some((u) => u.input.txHash === c.input.txHash && u.input.outputIndex === c.input.outputIndex))) : [],
453
+ ...n.less_than(r) ? As(r.clamped_sub(n).to_str(), e.filter((c) => !a.some((u) => u.input.txHash === c.input.txHash && u.input.outputIndex === c.input.outputIndex))) : [],
465
454
  ...a
466
455
  ];
467
- }, Ar = (s, e, t = !1, { maxTxSize: r, minFeeA: a, minFeeB: i } = q) => {
468
- const o = e.filter((g) => xe(g) === !1).sort(Mt), c = n.BigNum.from_str(Ge(r, a, i)), u = t ? n.BigNum.from_str(s).checked_add(c).to_str() : s;
469
- return gt(o, /* @__PURE__ */ new Map([
456
+ }, ir = (s, e, t = !1, { maxTxSize: r, minFeeA: a, minFeeB: n } = G) => {
457
+ const o = e.filter((g) => Ee(g) === !1).sort(Ht), c = i.BigNum.from_str(Le(r, a, n)), u = t ? i.BigNum.from_str(s).checked_add(c).to_str() : s;
458
+ return lt(o, /* @__PURE__ */ new Map([
470
459
  ["lovelace", u]
471
460
  ]));
472
- }, cs = (s, e, t = !1, r = q) => {
473
- const a = e.filter(xe).sort(Mt), i = As(r), o = s.get("lovelace") ?? "0", c = t ? n.BigNum.from_str(o).checked_add(i).to_str() : o;
474
- return s.set("lovelace", c), gt(a, s);
475
- }, us = (s, e) => Array.from(e, (t) => ({ unit: t[0], quantity: n.BigNum.from_str(t[1]) })).every((t) => s.filter((r) => r.output.amount.find((a) => a.unit === t.unit) !== void 0).reduce((r, a) => {
476
- const i = a.output.amount.reduce((o, c) => o.checked_add(n.BigNum.from_str(t.unit === c.unit ? c.quantity : "0")), n.BigNum.from_str("0"));
477
- return r.checked_add(i);
478
- }, n.BigNum.from_str("0")).less_than(t.quantity) === !1), Mt = (s, e) => {
479
- var a, i;
480
- const t = n.BigNum.from_str(((a = s.output.amount.find((o) => o.unit === "lovelace")) == null ? void 0 : a.quantity) ?? "0");
481
- return n.BigNum.from_str(((i = e.output.amount.find((o) => o.unit === "lovelace")) == null ? void 0 : i.quantity) ?? "0").compare(t);
482
- }, As = (s) => {
461
+ }, is = (s, e, t = !1, r = G) => {
462
+ const a = e.filter(Ee).sort(Ht), n = cs(r), o = s.get("lovelace") ?? "0", c = t ? i.BigNum.from_str(o).checked_add(n).to_str() : o;
463
+ return s.set("lovelace", c), lt(a, s);
464
+ }, os = (s, e) => Array.from(e, (t) => ({ unit: t[0], quantity: i.BigNum.from_str(t[1]) })).every((t) => s.filter((r) => r.output.amount.find((a) => a.unit === t.unit) !== void 0).reduce((r, a) => {
465
+ const n = a.output.amount.reduce((o, c) => o.checked_add(i.BigNum.from_str(t.unit === c.unit ? c.quantity : "0")), i.BigNum.from_str("0"));
466
+ return r.checked_add(n);
467
+ }, i.BigNum.from_str("0")).less_than(t.quantity) === !1), Ht = (s, e) => {
468
+ var a, n;
469
+ const t = i.BigNum.from_str(((a = s.output.amount.find((o) => o.unit === "lovelace")) == null ? void 0 : a.quantity) ?? "0");
470
+ return i.BigNum.from_str(((n = e.output.amount.find((o) => o.unit === "lovelace")) == null ? void 0 : n.quantity) ?? "0").compare(t);
471
+ }, cs = (s) => {
483
472
  const { maxTxSize: e, minFeeA: t, minFeeB: r } = s;
484
- return n.BigNum.from_str(Ge(e, t, r));
485
- }, xe = (s) => s.output.amount.length > 1, gs = (s) => s.reduce((e, t) => {
473
+ return i.BigNum.from_str(Le(e, t, r));
474
+ }, Ee = (s) => s.output.amount.length > 1, us = (s) => s.reduce((e, t) => {
486
475
  var a;
487
- const r = ((a = t.output.amount.find((i) => i.unit === "lovelace")) == null ? void 0 : a.quantity) ?? "0";
488
- return e.checked_add(n.BigNum.from_str(r));
489
- }, n.BigNum.from_str("0")), ds = (s, e) => {
490
- const t = e.sort(Mt);
491
- return gt(t, /* @__PURE__ */ new Map([
476
+ const r = ((a = t.output.amount.find((n) => n.unit === "lovelace")) == null ? void 0 : a.quantity) ?? "0";
477
+ return e.checked_add(i.BigNum.from_str(r));
478
+ }, i.BigNum.from_str("0")), As = (s, e) => {
479
+ const t = e.sort(Ht);
480
+ return lt(t, /* @__PURE__ */ new Map([
492
481
  ["lovelace", s]
493
482
  ]));
494
- }, gt = (s, e, t = []) => s.length === 0 || us(t, e) ? t : ls(s[0], e) ? gt(s.slice(1), e, [...t, s[0]]) : gt(s.slice(1), e, t), ls = (s, e) => Array.from(e.keys()).some((t) => s.output.amount.find((r) => r.unit === t) !== void 0), hs = (s, e) => {
495
- const t = ms(e), r = ps(s, e);
483
+ }, lt = (s, e, t = []) => s.length === 0 || os(t, e) ? t : ds(s[0], e) ? lt(s.slice(1), e, [...t, s[0]]) : lt(s.slice(1), e, t), ds = (s, e) => Array.from(e.keys()).some((t) => s.output.amount.find((r) => r.unit === t) !== void 0), gs = (s, e) => {
484
+ const t = hs(e), r = Is(s, e);
496
485
  return {
497
- coseKey: b(t.to_bytes()),
498
- coseSign1: b(r.to_bytes())
486
+ coseKey: D(t.to_bytes()),
487
+ coseSign1: D(r.to_bytes())
499
488
  };
500
- }, gr = (s, e, { key: t, signature: r }) => {
489
+ }, or = (s, e, { key: t, signature: r }) => {
501
490
  var o, c;
502
- const a = Ce.from_bytes(m(t)), i = ze.from_bytes(m(r));
491
+ const a = we.from_bytes(m(t)), n = ze.from_bytes(m(r));
503
492
  if ((s == null ? void 0 : s.length) > 0) {
504
- const u = b(i.payload() ?? new Uint8Array());
493
+ const u = D(n.payload() ?? new Uint8Array());
505
494
  if (S(s) !== u)
506
495
  return !1;
507
496
  }
508
497
  if ((e == null ? void 0 : e.length) > 0) {
509
- const A = (o = i.headers().protected().deserialized_headers().header(J.new_text("address"))) == null ? void 0 : o.as_bytes();
498
+ const A = (o = n.headers().protected().deserialized_headers().header(j.new_text("address"))) == null ? void 0 : o.as_bytes();
510
499
  if (A === void 0)
511
500
  throw new Error("Couldn't find a signer address in signature");
512
- const d = (c = a.header(J.new_int(_t.new_negative(Kt.from_str("2"))))) == null ? void 0 : c.as_bytes();
513
- if (d === void 0)
501
+ const l = (c = a.header(j.new_int(yt.new_negative(Nt.from_str("2"))))) == null ? void 0 : c.as_bytes();
502
+ if (l === void 0)
514
503
  throw new Error("Couldn't find a signer key in signature");
515
- const g = et(b(A)), I = Rs(b(d));
516
- if (Is(e, g, I) === !1)
504
+ const g = st(D(A)), I = Vs(D(l));
505
+ if (ls(e, g, I) === !1)
517
506
  throw new Error("Couldn't check signature because of address mismatch");
518
- const _ = Ls(b(i.signature())), x = i.signed_data().to_bytes();
519
- return I.verify(x, _);
507
+ const f = Os(D(n.signature())), y = n.signed_data().to_bytes();
508
+ return I.verify(y, f);
520
509
  }
521
510
  return !1;
522
- }, Is = (s, e, t) => {
511
+ }, ls = (s, e, t) => {
523
512
  if (s !== e.to_bech32())
524
513
  return !1;
525
514
  try {
526
- return At(s) === t.hash().to_hex();
515
+ return dt(s) === t.hash().to_hex();
527
516
  } catch {
528
517
  return !1;
529
518
  }
530
- }, ms = (s) => {
531
- const e = Ce.new(J.from_key_type(We.OKP));
532
- return e.set_algorithm_id(J.from_algorithm_id(we.EdDSA)), e.set_header(J.new_int(_t.new_negative(Kt.from_str("1"))), Nt.new_int(_t.new_i32(6))), e.set_header(J.new_int(_t.new_negative(Kt.from_str("2"))), Nt.new_bytes(s.key.to_public().as_bytes())), e;
533
- }, ps = (s, e) => {
519
+ }, hs = (s) => {
520
+ const e = we.new(j.from_key_type(We.OKP));
521
+ return e.set_algorithm_id(j.from_algorithm_id(Be.EdDSA)), e.set_header(j.new_int(yt.new_negative(Nt.from_str("1"))), Pt.new_int(yt.new_i32(6))), e.set_header(j.new_int(yt.new_negative(Nt.from_str("2"))), Pt.new_bytes(s.key.to_public().as_bytes())), e;
522
+ }, Is = (s, e) => {
534
523
  const t = Wt.new(), r = Wt.new();
535
- t.set_algorithm_id(J.from_algorithm_id(we.EdDSA)), t.set_header(J.new_text("address"), Nt.new_bytes(e.address.to_bytes()));
536
- const a = Je.new(je.new(t), r), i = Xe.new(a, m(s.payload), !1);
537
- s.externalAAD !== void 0 && i.set_external_aad(m(s.externalAAD));
538
- const o = i.make_data_to_sign(), c = e.key.sign(o.to_bytes());
539
- return i.build(c.to_bytes());
524
+ t.set_algorithm_id(j.from_algorithm_id(Be.EdDSA)), t.set_header(j.new_text("address"), Pt.new_bytes(e.address.to_bytes()));
525
+ const a = Je.new(je.new(t), r), n = Xe.new(a, m(s.payload), !1);
526
+ s.externalAAD !== void 0 && n.set_external_aad(m(s.externalAAD));
527
+ const o = n.make_data_to_sign(), c = e.key.sign(o.to_bytes());
528
+ return n.build(c.to_bytes());
540
529
  };
541
530
  var Xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Se = {}, Q = { exports: {} };
542
- G.notEqual = _s;
543
- G.notOk = ys;
544
- G.equal = fs;
545
- G.ok = G;
546
- var Qe = G;
547
- function fs(s, e, t) {
548
- G(s == e, t);
531
+ R.notEqual = ps;
532
+ R.notOk = fs;
533
+ R.equal = ms;
534
+ R.ok = R;
535
+ var Qe = R;
536
+ function ms(s, e, t) {
537
+ R(s == e, t);
549
538
  }
550
- function _s(s, e, t) {
551
- G(s != e, t);
539
+ function ps(s, e, t) {
540
+ R(s != e, t);
552
541
  }
553
- function ys(s, e) {
554
- G(!s, e);
542
+ function fs(s, e) {
543
+ R(!s, e);
555
544
  }
556
- function G(s, e) {
545
+ function R(s, e) {
557
546
  if (!s)
558
547
  throw new Error(e || "AssertionError");
559
548
  }
560
- var M = { exports: {} };
561
- function Cs(s) {
549
+ var O = { exports: {} };
550
+ function _s(s) {
562
551
  throw new Error('Could not dynamically require "' + s + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
563
552
  }
564
- var ws = Ht;
565
- Ht.supported = typeof WebAssembly < "u";
566
- function Ht(s) {
567
- if (!Ht.supported)
553
+ var ys = Ot;
554
+ Ot.supported = typeof WebAssembly < "u";
555
+ function Ot(s) {
556
+ if (!Ot.supported)
568
557
  return null;
569
- var e = s && s.imports, t = Bs("AGFzbQEAAAABEANgAn9/AGADf39/AGABfwADBQQAAQICBQUBAQroBwdNBQZtZW1vcnkCAAxibGFrZTJiX2luaXQAAA5ibGFrZTJiX3VwZGF0ZQABDWJsYWtlMmJfZmluYWwAAhBibGFrZTJiX2NvbXByZXNzAAMK00AElgMAIABCADcDACAAQQhqQgA3AwAgAEEQakIANwMAIABBGGpCADcDACAAQSBqQgA3AwAgAEEoakIANwMAIABBMGpCADcDACAAQThqQgA3AwAgAEHAAGpCADcDACAAQcgAakIANwMAIABB0ABqQgA3AwAgAEHYAGpCADcDACAAQeAAakIANwMAIABB6ABqQgA3AwAgAEHwAGpCADcDACAAQfgAakIANwMAIABBgAFqQoiS853/zPmE6gBBACkDAIU3AwAgAEGIAWpCu86qptjQ67O7f0EIKQMAhTcDACAAQZABakKr8NP0r+68tzxBECkDAIU3AwAgAEGYAWpC8e30+KWn/aelf0EYKQMAhTcDACAAQaABakLRhZrv+s+Uh9EAQSApAwCFNwMAIABBqAFqQp/Y+dnCkdqCm39BKCkDAIU3AwAgAEGwAWpC6/qG2r+19sEfQTApAwCFNwMAIABBuAFqQvnC+JuRo7Pw2wBBOCkDAIU3AwAgAEHAAWpCADcDACAAQcgBakIANwMAIABB0AFqQgA3AwALbQEDfyAAQcABaiEDIABByAFqIQQgBCkDAKchBQJAA0AgASACRg0BIAVBgAFGBEAgAyADKQMAIAWtfDcDAEEAIQUgABADCyAAIAVqIAEtAAA6AAAgBUEBaiEFIAFBAWohAQwACwsgBCAFrTcDAAtkAQN/IABBwAFqIQEgAEHIAWohAiABIAEpAwAgAikDAHw3AwAgAEHQAWpCfzcDACACKQMApyEDAkADQCADQYABRg0BIAAgA2pBADoAACADQQFqIQMMAAsLIAIgA603AwAgABADC+U7AiB+CX8gAEGAAWohISAAQYgBaiEiIABBkAFqISMgAEGYAWohJCAAQaABaiElIABBqAFqISYgAEGwAWohJyAAQbgBaiEoICEpAwAhASAiKQMAIQIgIykDACEDICQpAwAhBCAlKQMAIQUgJikDACEGICcpAwAhByAoKQMAIQhCiJLznf/M+YTqACEJQrvOqqbY0Ouzu38hCkKr8NP0r+68tzwhC0Lx7fT4paf9p6V/IQxC0YWa7/rPlIfRACENQp/Y+dnCkdqCm38hDkLr+obav7X2wR8hD0L5wvibkaOz8NsAIRAgACkDACERIABBCGopAwAhEiAAQRBqKQMAIRMgAEEYaikDACEUIABBIGopAwAhFSAAQShqKQMAIRYgAEEwaikDACEXIABBOGopAwAhGCAAQcAAaikDACEZIABByABqKQMAIRogAEHQAGopAwAhGyAAQdgAaikDACEcIABB4ABqKQMAIR0gAEHoAGopAwAhHiAAQfAAaikDACEfIABB+ABqKQMAISAgDSAAQcABaikDAIUhDSAPIABB0AFqKQMAhSEPIAEgBSARfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgEnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBN8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAUfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgFXx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBZ8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAXfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggGHx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBl8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAafHwhASAQIAGF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iiEGIAIgByARfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgE3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBx8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAYfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgFnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBR8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFICEgISkDACABIAmFhTcDACAiICIpAwAgAiAKhYU3AwAgIyAjKQMAIAMgC4WFNwMAICQgJCkDACAEIAyFhTcDACAlICUpAwAgBSANhYU3AwAgJiAmKQMAIAYgDoWFNwMAICcgJykDACAHIA+FhTcDACAoICgpAwAgCCAQhYU3AwAL"), r = null, a = {
558
+ var e = s && s.imports, t = Cs("AGFzbQEAAAABEANgAn9/AGADf39/AGABfwADBQQAAQICBQUBAQroBwdNBQZtZW1vcnkCAAxibGFrZTJiX2luaXQAAA5ibGFrZTJiX3VwZGF0ZQABDWJsYWtlMmJfZmluYWwAAhBibGFrZTJiX2NvbXByZXNzAAMK00AElgMAIABCADcDACAAQQhqQgA3AwAgAEEQakIANwMAIABBGGpCADcDACAAQSBqQgA3AwAgAEEoakIANwMAIABBMGpCADcDACAAQThqQgA3AwAgAEHAAGpCADcDACAAQcgAakIANwMAIABB0ABqQgA3AwAgAEHYAGpCADcDACAAQeAAakIANwMAIABB6ABqQgA3AwAgAEHwAGpCADcDACAAQfgAakIANwMAIABBgAFqQoiS853/zPmE6gBBACkDAIU3AwAgAEGIAWpCu86qptjQ67O7f0EIKQMAhTcDACAAQZABakKr8NP0r+68tzxBECkDAIU3AwAgAEGYAWpC8e30+KWn/aelf0EYKQMAhTcDACAAQaABakLRhZrv+s+Uh9EAQSApAwCFNwMAIABBqAFqQp/Y+dnCkdqCm39BKCkDAIU3AwAgAEGwAWpC6/qG2r+19sEfQTApAwCFNwMAIABBuAFqQvnC+JuRo7Pw2wBBOCkDAIU3AwAgAEHAAWpCADcDACAAQcgBakIANwMAIABB0AFqQgA3AwALbQEDfyAAQcABaiEDIABByAFqIQQgBCkDAKchBQJAA0AgASACRg0BIAVBgAFGBEAgAyADKQMAIAWtfDcDAEEAIQUgABADCyAAIAVqIAEtAAA6AAAgBUEBaiEFIAFBAWohAQwACwsgBCAFrTcDAAtkAQN/IABBwAFqIQEgAEHIAWohAiABIAEpAwAgAikDAHw3AwAgAEHQAWpCfzcDACACKQMApyEDAkADQCADQYABRg0BIAAgA2pBADoAACADQQFqIQMMAAsLIAIgA603AwAgABADC+U7AiB+CX8gAEGAAWohISAAQYgBaiEiIABBkAFqISMgAEGYAWohJCAAQaABaiElIABBqAFqISYgAEGwAWohJyAAQbgBaiEoICEpAwAhASAiKQMAIQIgIykDACEDICQpAwAhBCAlKQMAIQUgJikDACEGICcpAwAhByAoKQMAIQhCiJLznf/M+YTqACEJQrvOqqbY0Ouzu38hCkKr8NP0r+68tzwhC0Lx7fT4paf9p6V/IQxC0YWa7/rPlIfRACENQp/Y+dnCkdqCm38hDkLr+obav7X2wR8hD0L5wvibkaOz8NsAIRAgACkDACERIABBCGopAwAhEiAAQRBqKQMAIRMgAEEYaikDACEUIABBIGopAwAhFSAAQShqKQMAIRYgAEEwaikDACEXIABBOGopAwAhGCAAQcAAaikDACEZIABByABqKQMAIRogAEHQAGopAwAhGyAAQdgAaikDACEcIABB4ABqKQMAIR0gAEHoAGopAwAhHiAAQfAAaikDACEfIABB+ABqKQMAISAgDSAAQcABaikDAIUhDSAPIABB0AFqKQMAhSEPIAEgBSARfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgEnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBN8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAUfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCo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FQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgIHx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIB58fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAXfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgEnx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIB18fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByARfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgE3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBx8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAYfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgFnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBR8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFICEgISkDACABIAmFhTcDACAiICIpAwAgAiAKhYU3AwAgIyAjKQMAIAMgC4WFNwMAICQgJCkDACAEIAyFhTcDACAlICUpAwAgBSANhYU3AwAgJiAmKQMAIAYgDoWFNwMAICcgJykDACAHIA+FhTcDACAoICgpAwAgCCAQhYU3AwAL"), r = null, a = {
570
559
  buffer: t,
571
560
  memory: null,
572
561
  exports: null,
573
- realloc: i,
562
+ realloc: n,
574
563
  onload: o
575
564
  };
576
565
  return o(function() {
577
566
  }), a;
578
- function i(u) {
567
+ function n(u) {
579
568
  a.exports.memory.grow(Math.ceil(Math.abs(u - a.memory.length) / 65536)), a.memory = new Uint8Array(a.exports.memory.buffer);
580
569
  }
581
570
  function o(u) {
@@ -598,82 +587,82 @@ function Ht(s) {
598
587
  a.exports = u.instance.exports, a.memory = a.exports.memory && a.exports.memory.buffer && new Uint8Array(a.exports.memory.buffer);
599
588
  }
600
589
  }
601
- function Bs(s) {
602
- return typeof atob == "function" ? new Uint8Array(atob(s).split("").map(Es)) : new (Cs("buffer")).Buffer(s, "base64");
590
+ function Cs(s) {
591
+ return typeof atob == "function" ? new Uint8Array(atob(s).split("").map(ws)) : new (_s("buffer")).Buffer(s, "base64");
603
592
  }
604
- function Es(s) {
593
+ function ws(s) {
605
594
  return s.charCodeAt(0);
606
595
  }
607
- var K = Qe, f = ws(), V = 64, yt = [];
608
- M.exports = D;
609
- var Zt = M.exports.BYTES_MIN = 16, te = M.exports.BYTES_MAX = 64;
610
- M.exports.BYTES = 32;
611
- var ee = M.exports.KEYBYTES_MIN = 16, se = M.exports.KEYBYTES_MAX = 64;
612
- M.exports.KEYBYTES = 32;
613
- var re = M.exports.SALTBYTES = 16, ae = M.exports.PERSONALBYTES = 16;
614
- function D(s, e, t, r, a) {
615
- if (!(this instanceof D))
616
- return new D(s, e, t, r, a);
617
- if (!(f && f.exports))
596
+ var P = Qe, _ = ys(), Y = 64, Ct = [];
597
+ O.exports = v;
598
+ var Zt = O.exports.BYTES_MIN = 16, te = O.exports.BYTES_MAX = 64;
599
+ O.exports.BYTES = 32;
600
+ var ee = O.exports.KEYBYTES_MIN = 16, se = O.exports.KEYBYTES_MAX = 64;
601
+ O.exports.KEYBYTES = 32;
602
+ var re = O.exports.SALTBYTES = 16, ae = O.exports.PERSONALBYTES = 16;
603
+ function v(s, e, t, r, a) {
604
+ if (!(this instanceof v))
605
+ return new v(s, e, t, r, a);
606
+ if (!(_ && _.exports))
618
607
  throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");
619
- s || (s = 32), a !== !0 && (K(s >= Zt, "digestLength must be at least " + Zt + ", was given " + s), K(s <= te, "digestLength must be at most " + te + ", was given " + s), e != null && K(e.length >= ee, "key must be at least " + ee + ", was given " + e.length), e != null && K(e.length <= se, "key must be at least " + se + ", was given " + e.length), t != null && K(t.length === re, "salt must be exactly " + re + ", was given " + t.length), r != null && K(r.length === ae, "personal must be exactly " + ae + ", was given " + r.length)), yt.length || (yt.push(V), V += 216), this.digestLength = s, this.finalized = !1, this.pointer = yt.pop(), f.memory.fill(0, 0, 64), f.memory[0] = this.digestLength, f.memory[1] = e ? e.length : 0, f.memory[2] = 1, f.memory[3] = 1, t && f.memory.set(t, 32), r && f.memory.set(r, 48), this.pointer + 216 > f.memory.length && f.realloc(this.pointer + 216), f.exports.blake2b_init(this.pointer, this.digestLength), e && (this.update(e), f.memory.fill(0, V, V + e.length), f.memory[this.pointer + 200] = 128);
608
+ s || (s = 32), a !== !0 && (P(s >= Zt, "digestLength must be at least " + Zt + ", was given " + s), P(s <= te, "digestLength must be at most " + te + ", was given " + s), e != null && P(e.length >= ee, "key must be at least " + ee + ", was given " + e.length), e != null && P(e.length <= se, "key must be at least " + se + ", was given " + e.length), t != null && P(t.length === re, "salt must be exactly " + re + ", was given " + t.length), r != null && P(r.length === ae, "personal must be exactly " + ae + ", was given " + r.length)), Ct.length || (Ct.push(Y), Y += 216), this.digestLength = s, this.finalized = !1, this.pointer = Ct.pop(), _.memory.fill(0, 0, 64), _.memory[0] = this.digestLength, _.memory[1] = e ? e.length : 0, _.memory[2] = 1, _.memory[3] = 1, t && _.memory.set(t, 32), r && _.memory.set(r, 48), this.pointer + 216 > _.memory.length && _.realloc(this.pointer + 216), _.exports.blake2b_init(this.pointer, this.digestLength), e && (this.update(e), _.memory.fill(0, Y, Y + e.length), _.memory[this.pointer + 200] = 128);
620
609
  }
621
- D.prototype.update = function(s) {
622
- return K(this.finalized === !1, "Hash instance finalized"), K(s, "input must be TypedArray or Buffer"), V + s.length > f.memory.length && f.realloc(V + s.length), f.memory.set(s, V), f.exports.blake2b_update(this.pointer, V, V + s.length), this;
610
+ v.prototype.update = function(s) {
611
+ return P(this.finalized === !1, "Hash instance finalized"), P(s, "input must be TypedArray or Buffer"), Y + s.length > _.memory.length && _.realloc(Y + s.length), _.memory.set(s, Y), _.exports.blake2b_update(this.pointer, Y, Y + s.length), this;
623
612
  };
624
- D.prototype.digest = function(s) {
625
- if (K(this.finalized === !1, "Hash instance finalized"), this.finalized = !0, yt.push(this.pointer), f.exports.blake2b_final(this.pointer), !s || s === "binary")
626
- return f.memory.slice(this.pointer + 128, this.pointer + 128 + this.digestLength);
613
+ v.prototype.digest = function(s) {
614
+ if (P(this.finalized === !1, "Hash instance finalized"), this.finalized = !0, Ct.push(this.pointer), _.exports.blake2b_final(this.pointer), !s || s === "binary")
615
+ return _.memory.slice(this.pointer + 128, this.pointer + 128 + this.digestLength);
627
616
  if (s === "hex")
628
- return Ss(f.memory, this.pointer + 128, this.digestLength);
629
- K(s.length >= this.digestLength, "input must be TypedArray or Buffer");
617
+ return xs(_.memory, this.pointer + 128, this.digestLength);
618
+ P(s.length >= this.digestLength, "input must be TypedArray or Buffer");
630
619
  for (var e = 0; e < this.digestLength; e++)
631
- s[e] = f.memory[this.pointer + 128 + e];
620
+ s[e] = _.memory[this.pointer + 128 + e];
632
621
  return s;
633
622
  };
634
- D.prototype.final = D.prototype.digest;
635
- D.WASM = f && f.buffer;
636
- D.SUPPORTED = typeof WebAssembly < "u";
637
- D.ready = function(s) {
638
- if (s || (s = xs), !f)
623
+ v.prototype.final = v.prototype.digest;
624
+ v.WASM = _ && _.buffer;
625
+ v.SUPPORTED = typeof WebAssembly < "u";
626
+ v.ready = function(s) {
627
+ if (s || (s = Bs), !_)
639
628
  return s(new Error("WebAssembly not supported"));
640
629
  var e = new Promise(function(t, r) {
641
- f.onload(function(a) {
630
+ _.onload(function(a) {
642
631
  a ? r() : t(), s(a);
643
632
  });
644
633
  });
645
634
  return e;
646
635
  };
647
- D.prototype.ready = D.ready;
648
- function xs() {
636
+ v.prototype.ready = v.ready;
637
+ function Bs() {
649
638
  }
650
- function Ss(s, e, t) {
639
+ function xs(s, e, t) {
651
640
  for (var r = "", a = 0; a < t; a++)
652
- r += Qs(s[e + a]);
641
+ r += Es(s[e + a]);
653
642
  return r;
654
643
  }
655
- function Qs(s) {
644
+ function Es(s) {
656
645
  return s < 16 ? "0" + s.toString(16) : s.toString(16);
657
646
  }
658
- var bs = M.exports, W = Qe, dt = bs;
659
- function It(s, e, t) {
647
+ var J = Qe, ht = O.exports;
648
+ function mt(s, e, t) {
660
649
  var r = s[e] + s[t], a = s[e + 1] + s[t + 1];
661
650
  r >= 4294967296 && a++, s[e] = r, s[e + 1] = a;
662
651
  }
663
652
  function ne(s, e, t, r) {
664
653
  var a = s[e] + t;
665
654
  t < 0 && (a += 4294967296);
666
- var i = s[e + 1] + r;
667
- a >= 4294967296 && i++, s[e] = a, s[e + 1] = i;
655
+ var n = s[e + 1] + r;
656
+ a >= 4294967296 && n++, s[e] = a, s[e + 1] = n;
668
657
  }
669
658
  function be(s, e) {
670
659
  return s[e] ^ s[e + 1] << 8 ^ s[e + 2] << 16 ^ s[e + 3] << 24;
671
660
  }
672
- function $(s, e, t, r, a, i) {
673
- var o = ut[a], c = ut[a + 1], u = ut[i], A = ut[i + 1];
674
- It(h, s, e), ne(h, s, o, c);
675
- var d = h[r] ^ h[s], g = h[r + 1] ^ h[s + 1];
676
- h[r] = g, h[r + 1] = d, It(h, t, r), d = h[e] ^ h[t], g = h[e + 1] ^ h[t + 1], h[e] = d >>> 24 ^ g << 8, h[e + 1] = g >>> 24 ^ d << 8, It(h, s, e), ne(h, s, u, A), d = h[r] ^ h[s], g = h[r + 1] ^ h[s + 1], h[r] = d >>> 16 ^ g << 16, h[r + 1] = g >>> 16 ^ d << 16, It(h, t, r), d = h[e] ^ h[t], g = h[e + 1] ^ h[t + 1], h[e] = g >>> 31 ^ d << 1, h[e + 1] = d >>> 31 ^ g << 1;
661
+ function z(s, e, t, r, a, n) {
662
+ var o = At[a], c = At[a + 1], u = At[n], A = At[n + 1];
663
+ mt(h, s, e), ne(h, s, o, c);
664
+ var l = h[r] ^ h[s], g = h[r + 1] ^ h[s + 1];
665
+ h[r] = g, h[r + 1] = l, mt(h, t, r), l = h[e] ^ h[t], g = h[e + 1] ^ h[t + 1], h[e] = l >>> 24 ^ g << 8, h[e + 1] = g >>> 24 ^ l << 8, mt(h, s, e), ne(h, s, u, A), l = h[r] ^ h[s], g = h[r + 1] ^ h[s + 1], h[r] = l >>> 16 ^ g << 16, h[r + 1] = g >>> 16 ^ l << 16, mt(h, t, r), l = h[e] ^ h[t], g = h[e + 1] ^ h[t + 1], h[e] = g >>> 31 ^ l << 1, h[e + 1] = l >>> 31 ^ g << 1;
677
666
  }
678
667
  var De = new Uint32Array([
679
668
  4089235720,
@@ -692,7 +681,7 @@ var De = new Uint32Array([
692
681
  528734635,
693
682
  327033209,
694
683
  1541459225
695
- ]), Ds = [
684
+ ]), Ss = [
696
685
  0,
697
686
  1,
698
687
  2,
@@ -885,118 +874,102 @@ var De = new Uint32Array([
885
874
  7,
886
875
  5,
887
876
  3
888
- ], B = new Uint8Array(Ds.map(function(s) {
877
+ ], x = new Uint8Array(Ss.map(function(s) {
889
878
  return s * 2;
890
- })), h = new Uint32Array(32), ut = new Uint32Array(32);
879
+ })), h = new Uint32Array(32), At = new Uint32Array(32);
891
880
  function ve(s, e) {
892
881
  var t = 0;
893
882
  for (t = 0; t < 16; t++)
894
883
  h[t] = s.h[t], h[t + 16] = De[t];
895
884
  for (h[24] = h[24] ^ s.t, h[25] = h[25] ^ s.t / 4294967296, e && (h[28] = ~h[28], h[29] = ~h[29]), t = 0; t < 32; t++)
896
- ut[t] = be(s.b, 4 * t);
885
+ At[t] = be(s.b, 4 * t);
897
886
  for (t = 0; t < 12; t++)
898
- $(0, 8, 16, 24, B[t * 16 + 0], B[t * 16 + 1]), $(2, 10, 18, 26, B[t * 16 + 2], B[t * 16 + 3]), $(4, 12, 20, 28, B[t * 16 + 4], B[t * 16 + 5]), $(6, 14, 22, 30, B[t * 16 + 6], B[t * 16 + 7]), $(0, 10, 20, 30, B[t * 16 + 8], B[t * 16 + 9]), $(2, 12, 22, 24, B[t * 16 + 10], B[t * 16 + 11]), $(4, 14, 16, 26, B[t * 16 + 12], B[t * 16 + 13]), $(6, 8, 18, 28, B[t * 16 + 14], B[t * 16 + 15]);
887
+ z(0, 8, 16, 24, x[t * 16 + 0], x[t * 16 + 1]), z(2, 10, 18, 26, x[t * 16 + 2], x[t * 16 + 3]), z(4, 12, 20, 28, x[t * 16 + 4], x[t * 16 + 5]), z(6, 14, 22, 30, x[t * 16 + 6], x[t * 16 + 7]), z(0, 10, 20, 30, x[t * 16 + 8], x[t * 16 + 9]), z(2, 12, 22, 24, x[t * 16 + 10], x[t * 16 + 11]), z(4, 14, 16, 26, x[t * 16 + 12], x[t * 16 + 13]), z(6, 8, 18, 28, x[t * 16 + 14], x[t * 16 + 15]);
899
888
  for (t = 0; t < 16; t++)
900
889
  s.h[t] = s.h[t] ^ h[t] ^ h[t + 16];
901
890
  }
902
- var z = new Uint8Array([
891
+ var W = new Uint8Array([
903
892
  0,
904
893
  0,
905
894
  0,
906
895
  0,
907
- // 0: outlen, keylen, fanout, depth
908
896
  0,
909
897
  0,
910
898
  0,
911
899
  0,
912
- // 4: leaf length, sequential mode
913
900
  0,
914
901
  0,
915
902
  0,
916
903
  0,
917
- // 8: node offset
918
904
  0,
919
905
  0,
920
906
  0,
921
907
  0,
922
- // 12: node offset
923
908
  0,
924
909
  0,
925
910
  0,
926
911
  0,
927
- // 16: node depth, inner length, rfu
928
912
  0,
929
913
  0,
930
914
  0,
931
915
  0,
932
- // 20: rfu
933
916
  0,
934
917
  0,
935
918
  0,
936
919
  0,
937
- // 24: rfu
938
920
  0,
939
921
  0,
940
922
  0,
941
923
  0,
942
- // 28: rfu
943
924
  0,
944
925
  0,
945
926
  0,
946
927
  0,
947
- // 32: salt
948
928
  0,
949
929
  0,
950
930
  0,
951
931
  0,
952
- // 36: salt
953
932
  0,
954
933
  0,
955
934
  0,
956
935
  0,
957
- // 40: salt
958
936
  0,
959
937
  0,
960
938
  0,
961
939
  0,
962
- // 44: salt
963
940
  0,
964
941
  0,
965
942
  0,
966
943
  0,
967
- // 48: personal
968
944
  0,
969
945
  0,
970
946
  0,
971
947
  0,
972
- // 52: personal
973
948
  0,
974
949
  0,
975
950
  0,
976
951
  0,
977
- // 56: personal
978
952
  0,
979
953
  0,
980
954
  0,
981
955
  0
982
- // 60: personal
983
956
  ]);
984
- function at(s, e, t, r) {
985
- z.fill(0), this.b = new Uint8Array(128), this.h = new Uint32Array(16), this.t = 0, this.c = 0, this.outlen = s, z[0] = s, e && (z[1] = e.length), z[2] = 1, z[3] = 1, t && z.set(t, 32), r && z.set(r, 48);
957
+ function nt(s, e, t, r) {
958
+ W.fill(0), this.b = new Uint8Array(128), this.h = new Uint32Array(16), this.t = 0, this.c = 0, this.outlen = s, W[0] = s, e && (W[1] = e.length), W[2] = 1, W[3] = 1, t && W.set(t, 32), r && W.set(r, 48);
986
959
  for (var a = 0; a < 16; a++)
987
- this.h[a] = De[a] ^ be(z, a * 4);
960
+ this.h[a] = De[a] ^ be(W, a * 4);
988
961
  e && (ke(this, e), this.c = 128);
989
962
  }
990
- at.prototype.update = function(s) {
991
- return W(s != null, "input must be Uint8Array or Buffer"), ke(this, s), this;
963
+ nt.prototype.update = function(s) {
964
+ return J(s != null, "input must be Uint8Array or Buffer"), ke(this, s), this;
992
965
  };
993
- at.prototype.digest = function(s) {
966
+ nt.prototype.digest = function(s) {
994
967
  var e = !s || s === "binary" || s === "hex" ? new Uint8Array(this.outlen) : s;
995
- return W(e.length >= this.outlen, "out must have at least outlen bytes of space"), vs(this, e), s === "hex" ? ks(e) : e;
968
+ return J(e.length >= this.outlen, "out must have at least outlen bytes of space"), Qs(this, e), s === "hex" ? bs(e) : e;
996
969
  };
997
- at.prototype.final = at.prototype.digest;
998
- at.ready = function(s) {
999
- dt.ready(function() {
970
+ nt.prototype.final = nt.prototype.digest;
971
+ nt.ready = function(s) {
972
+ ht.ready(function() {
1000
973
  s();
1001
974
  });
1002
975
  };
@@ -1004,7 +977,7 @@ function ke(s, e) {
1004
977
  for (var t = 0; t < e.length; t++)
1005
978
  s.c === 128 && (s.t += s.c, ve(s, !1), s.c = 0), s.b[s.c++] = e[t];
1006
979
  }
1007
- function vs(s, e) {
980
+ function Qs(s, e) {
1008
981
  for (s.t += s.c; s.c < 128; )
1009
982
  s.b[s.c++] = 0;
1010
983
  ve(s, !0);
@@ -1012,86 +985,86 @@ function vs(s, e) {
1012
985
  e[t] = s.h[t >> 2] >> 8 * (t & 3);
1013
986
  return e;
1014
987
  }
1015
- function ks(s) {
988
+ function bs(s) {
1016
989
  for (var e = "", t = 0; t < s.length; t++)
1017
- e += Us(s[t]);
990
+ e += Ds(s[t]);
1018
991
  return e;
1019
992
  }
1020
- function Us(s) {
993
+ function Ds(s) {
1021
994
  return s < 16 ? "0" + s.toString(16) : s.toString(16);
1022
995
  }
1023
- var Ue = at;
1024
- Q.exports = function(e, t, r, a, i) {
1025
- return i !== !0 && (W(e >= ie, "outlen must be at least " + ie + ", was given " + e), W(e <= oe, "outlen must be at most " + oe + ", was given " + e), t != null && W(t.length >= ce, "key must be at least " + ce + ", was given " + t.length), t != null && W(t.length <= ue, "key must be at most " + ue + ", was given " + t.length), r != null && W(r.length === Ae, "salt must be exactly " + Ae + ", was given " + r.length), a != null && W(a.length === ge, "personal must be exactly " + ge + ", was given " + a.length)), new Ue(e, t, r, a);
996
+ var Ue = nt;
997
+ Q.exports = function(e, t, r, a, n) {
998
+ return n !== !0 && (J(e >= ie, "outlen must be at least " + ie + ", was given " + e), J(e <= oe, "outlen must be at most " + oe + ", was given " + e), t != null && J(t.length >= ce, "key must be at least " + ce + ", was given " + t.length), t != null && J(t.length <= ue, "key must be at most " + ue + ", was given " + t.length), r != null && J(r.length === Ae, "salt must be exactly " + Ae + ", was given " + r.length), a != null && J(a.length === de, "personal must be exactly " + de + ", was given " + a.length)), new Ue(e, t, r, a);
1026
999
  };
1027
1000
  Q.exports.ready = function(s) {
1028
- dt.ready(function() {
1001
+ ht.ready(function() {
1029
1002
  s();
1030
1003
  });
1031
1004
  };
1032
- Q.exports.WASM_SUPPORTED = dt.SUPPORTED;
1005
+ Q.exports.WASM_SUPPORTED = ht.SUPPORTED;
1033
1006
  Q.exports.WASM_LOADED = !1;
1034
1007
  var ie = Q.exports.BYTES_MIN = 16, oe = Q.exports.BYTES_MAX = 64;
1035
1008
  Q.exports.BYTES = 32;
1036
1009
  var ce = Q.exports.KEYBYTES_MIN = 16, ue = Q.exports.KEYBYTES_MAX = 64;
1037
1010
  Q.exports.KEYBYTES = 32;
1038
- var Ae = Q.exports.SALTBYTES = 16, ge = Q.exports.PERSONALBYTES = 16;
1039
- dt.ready(function(s) {
1040
- s || (Q.exports.WASM_LOADED = !0, Ue = dt);
1011
+ var Ae = Q.exports.SALTBYTES = 16, de = Q.exports.PERSONALBYTES = 16;
1012
+ ht.ready(function(s) {
1013
+ s || (Q.exports.WASM_LOADED = !0, Ue = ht);
1041
1014
  });
1042
- var Ks = Q.exports, nt = {};
1043
- Object.defineProperty(nt, "__esModule", { value: !0 });
1044
- nt.bech32m = nt.bech32 = void 0;
1015
+ var it = {};
1016
+ Object.defineProperty(it, "__esModule", { value: !0 });
1017
+ it.bech32m = it.bech32 = void 0;
1045
1018
  const St = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", Ke = {};
1046
1019
  for (let s = 0; s < St.length; s++) {
1047
1020
  const e = St.charAt(s);
1048
1021
  Ke[e] = s;
1049
1022
  }
1050
- function rt(s) {
1023
+ function at(s) {
1051
1024
  const e = s >> 25;
1052
1025
  return (s & 33554431) << 5 ^ -(e >> 0 & 1) & 996825010 ^ -(e >> 1 & 1) & 642813549 ^ -(e >> 2 & 1) & 513874426 ^ -(e >> 3 & 1) & 1027748829 ^ -(e >> 4 & 1) & 705979059;
1053
1026
  }
1054
- function de(s) {
1027
+ function ge(s) {
1055
1028
  let e = 1;
1056
1029
  for (let t = 0; t < s.length; ++t) {
1057
1030
  const r = s.charCodeAt(t);
1058
1031
  if (r < 33 || r > 126)
1059
1032
  return "Invalid prefix (" + s + ")";
1060
- e = rt(e) ^ r >> 5;
1033
+ e = at(e) ^ r >> 5;
1061
1034
  }
1062
- e = rt(e);
1035
+ e = at(e);
1063
1036
  for (let t = 0; t < s.length; ++t) {
1064
1037
  const r = s.charCodeAt(t);
1065
- e = rt(e) ^ r & 31;
1038
+ e = at(e) ^ r & 31;
1066
1039
  }
1067
1040
  return e;
1068
1041
  }
1069
- function Ot(s, e, t, r) {
1070
- let a = 0, i = 0;
1042
+ function Vt(s, e, t, r) {
1043
+ let a = 0, n = 0;
1071
1044
  const o = (1 << t) - 1, c = [];
1072
1045
  for (let u = 0; u < s.length; ++u)
1073
- for (a = a << e | s[u], i += e; i >= t; )
1074
- i -= t, c.push(a >> i & o);
1046
+ for (a = a << e | s[u], n += e; n >= t; )
1047
+ n -= t, c.push(a >> n & o);
1075
1048
  if (r)
1076
- i > 0 && c.push(a << t - i & o);
1049
+ n > 0 && c.push(a << t - n & o);
1077
1050
  else {
1078
- if (i >= e)
1051
+ if (n >= e)
1079
1052
  return "Excess padding";
1080
- if (a << t - i & o)
1053
+ if (a << t - n & o)
1081
1054
  return "Non-zero padding";
1082
1055
  }
1083
1056
  return c;
1084
1057
  }
1085
- function Ns(s) {
1086
- return Ot(s, 8, 5, !0);
1058
+ function vs(s) {
1059
+ return Vt(s, 8, 5, !0);
1087
1060
  }
1088
- function Ps(s) {
1089
- const e = Ot(s, 5, 8, !1);
1061
+ function ks(s) {
1062
+ const e = Vt(s, 5, 8, !1);
1090
1063
  if (Array.isArray(e))
1091
1064
  return e;
1092
1065
  }
1093
- function Fs(s) {
1094
- const e = Ot(s, 5, 8, !1);
1066
+ function Us(s) {
1067
+ const e = Vt(s, 5, 8, !1);
1095
1068
  if (Array.isArray(e))
1096
1069
  return e;
1097
1070
  throw new Error(e);
@@ -1103,24 +1076,24 @@ function Ne(s) {
1103
1076
  if (u = u || 90, o.length + 7 + c.length > u)
1104
1077
  throw new TypeError("Exceeds length limit");
1105
1078
  o = o.toLowerCase();
1106
- let A = de(o);
1079
+ let A = ge(o);
1107
1080
  if (typeof A == "string")
1108
1081
  throw new Error(A);
1109
- let d = o + "1";
1082
+ let l = o + "1";
1110
1083
  for (let g = 0; g < c.length; ++g) {
1111
1084
  const I = c[g];
1112
- if (I >> 5)
1085
+ if (I >> 5 !== 0)
1113
1086
  throw new Error("Non 5-bit word");
1114
- A = rt(A) ^ I, d += St.charAt(I);
1087
+ A = at(A) ^ I, l += St.charAt(I);
1115
1088
  }
1116
1089
  for (let g = 0; g < 6; ++g)
1117
- A = rt(A);
1090
+ A = at(A);
1118
1091
  A ^= e;
1119
1092
  for (let g = 0; g < 6; ++g) {
1120
1093
  const I = A >> (5 - g) * 5 & 31;
1121
- d += St.charAt(I);
1094
+ l += St.charAt(I);
1122
1095
  }
1123
- return d;
1096
+ return l;
1124
1097
  }
1125
1098
  function r(o, c) {
1126
1099
  if (c = c || 90, o.length < 8)
@@ -1131,32 +1104,32 @@ function Ne(s) {
1131
1104
  if (o !== u && o !== A)
1132
1105
  return "Mixed-case string " + o;
1133
1106
  o = u;
1134
- const d = o.lastIndexOf("1");
1135
- if (d === -1)
1107
+ const l = o.lastIndexOf("1");
1108
+ if (l === -1)
1136
1109
  return "No separator character for " + o;
1137
- if (d === 0)
1110
+ if (l === 0)
1138
1111
  return "Missing prefix for " + o;
1139
- const g = o.slice(0, d), I = o.slice(d + 1);
1112
+ const g = o.slice(0, l), I = o.slice(l + 1);
1140
1113
  if (I.length < 6)
1141
1114
  return "Data too short";
1142
- let _ = de(g);
1143
- if (typeof _ == "string")
1144
- return _;
1145
- const x = [];
1146
- for (let H = 0; H < I.length; ++H) {
1147
- const R = I.charAt(H), p = Ke[R];
1115
+ let f = ge(g);
1116
+ if (typeof f == "string")
1117
+ return f;
1118
+ const y = [];
1119
+ for (let b = 0; b < I.length; ++b) {
1120
+ const k = I.charAt(b), p = Ke[k];
1148
1121
  if (p === void 0)
1149
- return "Unknown character " + R;
1150
- _ = rt(_) ^ p, !(H + 6 >= I.length) && x.push(p);
1122
+ return "Unknown character " + k;
1123
+ f = at(f) ^ p, !(b + 6 >= I.length) && y.push(p);
1151
1124
  }
1152
- return _ !== e ? "Invalid checksum for " + o : { prefix: g, words: x };
1125
+ return f !== e ? "Invalid checksum for " + o : { prefix: g, words: y };
1153
1126
  }
1154
1127
  function a(o, c) {
1155
1128
  const u = r(o, c);
1156
1129
  if (typeof u == "object")
1157
1130
  return u;
1158
1131
  }
1159
- function i(o, c) {
1132
+ function n(o, c) {
1160
1133
  const u = r(o, c);
1161
1134
  if (typeof u == "object")
1162
1135
  return u;
@@ -1164,58 +1137,57 @@ function Ne(s) {
1164
1137
  }
1165
1138
  return {
1166
1139
  decodeUnsafe: a,
1167
- decode: i,
1140
+ decode: n,
1168
1141
  encode: t,
1169
- toWords: Ns,
1170
- fromWordsUnsafe: Ps,
1171
- fromWords: Fs
1142
+ toWords: vs,
1143
+ fromWordsUnsafe: ks,
1144
+ fromWords: Us
1172
1145
  };
1173
1146
  }
1174
- nt.bech32 = Ne("bech32");
1175
- nt.bech32m = Ne("bech32m");
1176
- var Ts = Xt && Xt.__importDefault || function(s) {
1147
+ it.bech32 = Ne("bech32");
1148
+ it.bech32m = Ne("bech32m");
1149
+ var Ks = Xt && Xt.__importDefault || function(s) {
1177
1150
  return s && s.__esModule ? s : { default: s };
1178
1151
  };
1179
1152
  Object.defineProperty(Se, "__esModule", { value: !0 });
1180
- const Ms = Ts(Ks), mt = nt, Ut = "asset";
1181
- let Hs = class Ct {
1153
+ const Ns = Ks(Q.exports), pt = it, Kt = "asset";
1154
+ class gt {
1182
1155
  constructor(e) {
1183
1156
  this.hashBuf = e;
1184
1157
  }
1185
1158
  static fromHash(e) {
1186
- return new Ct(e);
1159
+ return new gt(e);
1187
1160
  }
1188
1161
  static fromParts(e, t) {
1189
- const r = (0, Ms.default)(20).update(new Uint8Array([...e, ...t])).digest("binary");
1190
- return Ct.fromHash(r);
1162
+ const r = (0, Ns.default)(20).update(new Uint8Array([...e, ...t])).digest("binary");
1163
+ return gt.fromHash(r);
1191
1164
  }
1192
1165
  static fromBech32(e) {
1193
- const { prefix: t, words: r } = mt.bech32.decode(e);
1194
- if (t !== Ut)
1166
+ const { prefix: t, words: r } = pt.bech32.decode(e);
1167
+ if (t !== Kt)
1195
1168
  throw new Error("Invalid asset fingerprint");
1196
- const a = Buffer.from(mt.bech32.fromWords(r));
1197
- return Ct.fromHash(a);
1169
+ const a = Buffer.from(pt.bech32.fromWords(r));
1170
+ return gt.fromHash(a);
1198
1171
  }
1199
1172
  fingerprint() {
1200
- const e = mt.bech32.toWords(this.hashBuf);
1201
- return mt.bech32.encode(Ut, e);
1173
+ const e = pt.bech32.toWords(this.hashBuf);
1174
+ return pt.bech32.encode(Kt, e);
1202
1175
  }
1203
1176
  hash() {
1204
1177
  return Buffer.from(this.hashBuf).toString("hex");
1205
1178
  }
1206
1179
  prefix() {
1207
- return Ut;
1180
+ return Kt;
1208
1181
  }
1209
- // The last six characters of the data part form a checksum and contain no information
1210
1182
  checksum() {
1211
1183
  return this.fingerprint().slice(-6);
1212
1184
  }
1213
- };
1214
- var Os = Se.default = Hs;
1215
- const Vs = Os, Ys = (s, e) => {
1216
- const t = qs(s), r = t.derive(kt + 1852).derive(kt + 1815).derive(kt + e), a = r.derive(0).derive(0).to_raw_key(), i = r.derive(2).derive(0).to_raw_key();
1217
- return r.free(), t.free(), { paymentKey: a, stakeKey: i };
1218
- }, et = (s) => n.Address.from_bytes(m(s)), qs = (s) => n.Bip32PrivateKey.from_bytes(m(s)), Gs = (s) => n.DataHash.from_bytes(m(s)), P = (s) => n.Ed25519KeyHash.from_bytes(m(s)), Ls = (s) => n.Ed25519Signature.from_bytes(m(s)), bt = (s) => n.NativeScript.from_bytes(m(s)), Rs = (s) => n.PublicKey.from_bytes(m(s)), Pe = (s) => n.PlutusData.from_bytes(m(s)), it = (s, e) => n.PlutusScript.from_bytes_with_version(m(s), Et[e]), $s = (s) => n.ScriptRef.from_bytes(m(s)), zs = (s) => n.ScriptHash.from_bytes(m(s)), Y = (s) => n.Transaction.from_bytes(m(s)), Fe = (s) => n.TransactionHash.from_bytes(m(s)), le = (s) => n.TransactionUnspentOutput.from_bytes(m(s)), Ws = (s) => n.TransactionWitnessSet.from_bytes(m(s)), Js = (s) => n.Value.from_bytes(m(s)), T = (s) => n.Address.from_bech32(s), Vt = (s) => n.BaseAddress.from_address(T(s)), Te = (s) => n.EnterpriseAddress.from_address(T(s)), Me = (s) => n.RewardAddress.from_address(T(s)), b = (s) => Buffer.from(s).toString("hex"), m = (s) => s.length % 2 === 0 && /^[0-9A-F]*$/i.test(s) ? Buffer.from(s, "hex") : Buffer.from(s, "utf-8"), Dt = (s) => {
1185
+ }
1186
+ var Ps = Se.default = gt;
1187
+ const Fs = Ps, Ts = (s, e) => {
1188
+ const t = Ms(s), r = t.derive(Ut + 1852).derive(Ut + 1815).derive(Ut + e), a = r.derive(0).derive(0).to_raw_key(), n = r.derive(2).derive(0).to_raw_key();
1189
+ return r.free(), t.free(), { paymentKey: a, stakeKey: n };
1190
+ }, st = (s) => i.Address.from_bytes(m(s)), Ms = (s) => i.Bip32PrivateKey.from_bytes(m(s)), Hs = (s) => i.DataHash.from_bytes(m(s)), T = (s) => i.Ed25519KeyHash.from_bytes(m(s)), Os = (s) => i.Ed25519Signature.from_bytes(m(s)), bt = (s) => i.NativeScript.from_bytes(m(s)), Vs = (s) => i.PublicKey.from_bytes(m(s)), Pe = (s) => i.PlutusData.from_bytes(m(s)), ot = (s, e) => i.PlutusScript.from_bytes_with_version(m(s), xt[e]), Ys = (s) => i.ScriptRef.from_bytes(m(s)), qs = (s) => i.ScriptHash.from_bytes(m(s)), q = (s) => i.Transaction.from_bytes(m(s)), Fe = (s) => i.TransactionHash.from_bytes(m(s)), le = (s) => i.TransactionUnspentOutput.from_bytes(m(s)), Ls = (s) => i.TransactionWitnessSet.from_bytes(m(s)), Gs = (s) => i.Value.from_bytes(m(s)), H = (s) => i.Address.from_bech32(s), Yt = (s) => i.BaseAddress.from_address(H(s)), Te = (s) => i.EnterpriseAddress.from_address(H(s)), Me = (s) => i.RewardAddress.from_address(H(s)), D = (s) => Buffer.from(s).toString("hex"), m = (s) => s.length % 2 === 0 && /^[0-9A-F]*$/i.test(s) ? Buffer.from(s, "hex") : Buffer.from(s, "utf-8"), Dt = (s) => {
1219
1191
  const e = (t) => {
1220
1192
  const r = new Array();
1221
1193
  for (let a = 0; a < t.len(); a += 1)
@@ -1223,21 +1195,21 @@ const Vs = Os, Ys = (s, e) => {
1223
1195
  return r;
1224
1196
  };
1225
1197
  switch (s.kind()) {
1226
- case n.NativeScriptKind.ScriptAll: {
1198
+ case i.NativeScriptKind.ScriptAll: {
1227
1199
  const t = s.as_script_all();
1228
1200
  return {
1229
1201
  type: "all",
1230
1202
  scripts: e(t.native_scripts())
1231
1203
  };
1232
1204
  }
1233
- case n.NativeScriptKind.ScriptAny: {
1205
+ case i.NativeScriptKind.ScriptAny: {
1234
1206
  const t = s.as_script_any();
1235
1207
  return {
1236
1208
  type: "any",
1237
1209
  scripts: e(t.native_scripts())
1238
1210
  };
1239
1211
  }
1240
- case n.NativeScriptKind.ScriptNOfK: {
1212
+ case i.NativeScriptKind.ScriptNOfK: {
1241
1213
  const t = s.as_script_n_of_k();
1242
1214
  return {
1243
1215
  type: "atLeast",
@@ -1245,47 +1217,53 @@ const Vs = Os, Ys = (s, e) => {
1245
1217
  scripts: e(t.native_scripts())
1246
1218
  };
1247
1219
  }
1248
- case n.NativeScriptKind.TimelockStart:
1220
+ case i.NativeScriptKind.TimelockStart: {
1221
+ const t = s.as_timelock_start();
1249
1222
  return {
1250
1223
  type: "after",
1251
- slot: s.as_timelock_start().slot_bignum().to_str()
1224
+ slot: t.slot_bignum().to_str()
1252
1225
  };
1253
- case n.NativeScriptKind.TimelockExpiry:
1226
+ }
1227
+ case i.NativeScriptKind.TimelockExpiry: {
1228
+ const t = s.as_timelock_expiry();
1254
1229
  return {
1255
1230
  type: "before",
1256
- slot: s.as_timelock_expiry().slot_bignum().to_str()
1231
+ slot: t.slot_bignum().to_str()
1257
1232
  };
1258
- case n.NativeScriptKind.ScriptPubkey:
1233
+ }
1234
+ case i.NativeScriptKind.ScriptPubkey: {
1235
+ const t = s.as_script_pubkey();
1259
1236
  return {
1260
1237
  type: "sig",
1261
- keyHash: s.as_script_pubkey().addr_keyhash().to_hex()
1238
+ keyHash: t.addr_keyhash().to_hex()
1262
1239
  };
1240
+ }
1263
1241
  default:
1264
1242
  throw new Error(`Script Kind: ${s.kind()}, is not supported`);
1265
1243
  }
1266
1244
  }, vt = (s) => {
1267
1245
  const e = (t) => {
1268
- const r = n.NativeScripts.new();
1246
+ const r = i.NativeScripts.new();
1269
1247
  return t.forEach((a) => {
1270
1248
  r.add(vt(a));
1271
1249
  }), r;
1272
1250
  };
1273
1251
  switch (s.type) {
1274
1252
  case "all":
1275
- return n.NativeScript.new_script_all(n.ScriptAll.new(e(s.scripts)));
1253
+ return i.NativeScript.new_script_all(i.ScriptAll.new(e(s.scripts)));
1276
1254
  case "any":
1277
- return n.NativeScript.new_script_any(n.ScriptAny.new(e(s.scripts)));
1255
+ return i.NativeScript.new_script_any(i.ScriptAny.new(e(s.scripts)));
1278
1256
  case "atLeast":
1279
- return n.NativeScript.new_script_n_of_k(n.ScriptNOfK.new(s.required, e(s.scripts)));
1257
+ return i.NativeScript.new_script_n_of_k(i.ScriptNOfK.new(s.required, e(s.scripts)));
1280
1258
  case "after":
1281
- return n.NativeScript.new_timelock_start(n.TimelockStart.new_timelockstart(n.BigNum.from_str(s.slot)));
1259
+ return i.NativeScript.new_timelock_start(i.TimelockStart.new_timelockstart(i.BigNum.from_str(s.slot)));
1282
1260
  case "before":
1283
- return n.NativeScript.new_timelock_expiry(n.TimelockExpiry.new_timelockexpiry(n.BigNum.from_str(s.slot)));
1261
+ return i.NativeScript.new_timelock_expiry(i.TimelockExpiry.new_timelockexpiry(i.BigNum.from_str(s.slot)));
1284
1262
  case "sig":
1285
- return n.NativeScript.new_script_pubkey(n.ScriptPubkey.new(P(s.keyHash)));
1263
+ return i.NativeScript.new_script_pubkey(i.ScriptPubkey.new(T(s.keyHash)));
1286
1264
  }
1287
1265
  }, wt = (s) => {
1288
- var r, a, i;
1266
+ var r, a, n;
1289
1267
  const e = (o) => {
1290
1268
  const c = [];
1291
1269
  for (let u = 0; u < o.len(); u += 1)
@@ -1294,90 +1272,90 @@ const Vs = Os, Ys = (s, e) => {
1294
1272
  }, t = (o) => {
1295
1273
  const c = /* @__PURE__ */ new Map();
1296
1274
  for (let u = 0; u < o.len(); u += 1) {
1297
- const A = o.keys().get(u), d = o.get(A) ?? n.PlutusData.from_hex(S("NO_ITEM_FOUND_INSIDE_GOLD_ROOM"));
1298
- c.set(wt(A), wt(d));
1275
+ const A = o.keys().get(u), l = o.get(A) ?? i.PlutusData.from_hex(S("NO_ITEM_FOUND_INSIDE_GOLD_ROOM"));
1276
+ c.set(wt(A), wt(l));
1299
1277
  }
1300
1278
  return c;
1301
1279
  };
1302
1280
  switch (s.kind()) {
1303
- case n.PlutusDataKind.Bytes:
1304
- return b(s.as_bytes() ?? new Uint8Array());
1305
- case n.PlutusDataKind.Integer:
1281
+ case i.PlutusDataKind.Bytes:
1282
+ return D(s.as_bytes() ?? new Uint8Array());
1283
+ case i.PlutusDataKind.Integer:
1306
1284
  return parseInt(((r = s.as_integer()) == null ? void 0 : r.to_str()) ?? "0", 10);
1307
- case n.PlutusDataKind.List:
1308
- return e(s.as_list() ?? n.PlutusList.new());
1309
- case n.PlutusDataKind.Map:
1310
- return t(s.as_map() ?? n.PlutusMap.new());
1311
- case n.PlutusDataKind.ConstrPlutusData:
1285
+ case i.PlutusDataKind.List:
1286
+ return e(s.as_list() ?? i.PlutusList.new());
1287
+ case i.PlutusDataKind.Map:
1288
+ return t(s.as_map() ?? i.PlutusMap.new());
1289
+ case i.PlutusDataKind.ConstrPlutusData:
1312
1290
  return {
1313
1291
  alternative: parseInt(((a = s.as_constr_plutus_data()) == null ? void 0 : a.alternative().to_str()) ?? "0", 10),
1314
- fields: e(((i = s.as_constr_plutus_data()) == null ? void 0 : i.data()) ?? n.PlutusList.new())
1292
+ fields: e(((n = s.as_constr_plutus_data()) == null ? void 0 : n.data()) ?? i.PlutusList.new())
1315
1293
  };
1316
1294
  default:
1317
1295
  throw new Error(`PlutusData Kind: ${s.kind()}, is not supported`);
1318
1296
  }
1319
- }, Z = (s) => {
1297
+ }, tt = (s) => {
1320
1298
  const e = (t) => {
1321
- const r = n.PlutusList.new();
1299
+ const r = i.PlutusList.new();
1322
1300
  return t.forEach((a) => {
1323
- r.add(Z(a));
1301
+ r.add(tt(a));
1324
1302
  }), r;
1325
1303
  };
1326
1304
  switch (typeof s) {
1327
1305
  case "string":
1328
- return n.PlutusData.new_bytes(m(s));
1306
+ return i.PlutusData.new_bytes(m(s));
1329
1307
  case "number":
1330
- return n.PlutusData.new_integer(n.BigInt.from_str(s.toString()));
1308
+ return i.PlutusData.new_integer(i.BigInt.from_str(s.toString()));
1331
1309
  case "object":
1332
1310
  if (s instanceof Array) {
1333
1311
  const t = e(s);
1334
- return n.PlutusData.new_list(t);
1312
+ return i.PlutusData.new_list(t);
1335
1313
  } else if (s instanceof Map) {
1336
- const t = n.PlutusMap.new();
1314
+ const t = i.PlutusMap.new();
1337
1315
  return s.forEach((r, a) => {
1338
- t.insert(Z(a), Z(r));
1339
- }), n.PlutusData.new_map(t);
1316
+ t.insert(tt(a), tt(r));
1317
+ }), i.PlutusData.new_map(t);
1340
1318
  } else
1341
- return n.PlutusData.new_constr_plutus_data(n.ConstrPlutusData.new(n.BigNum.from_str(s.alternative.toString()), e(s.fields)));
1319
+ return i.PlutusData.new_constr_plutus_data(i.ConstrPlutusData.new(i.BigNum.from_str(s.alternative.toString()), e(s.fields)));
1342
1320
  }
1343
- }, js = (s) => {
1344
- const e = n.Relays.new();
1321
+ }, Rs = (s) => {
1322
+ const e = i.Relays.new();
1345
1323
  throw s.relays.forEach((t) => {
1346
- e.add(Xs(t));
1324
+ e.add($s(t));
1347
1325
  }), new Error("toPoolParams not implemented.");
1348
1326
  }, He = (s) => {
1349
- const e = (t) => rs[t];
1350
- return n.Redeemer.new(e(s.tag), n.BigNum.from_str(s.index.toString()), Z(s.data), n.ExUnits.new(n.BigNum.from_str(s.budget.mem.toString()), n.BigNum.from_str(s.budget.steps.toString())));
1351
- }, Xs = (s) => {
1327
+ const e = (t) => es[t];
1328
+ return i.Redeemer.new(e(s.tag), i.BigNum.from_str(s.index.toString()), tt(s.data), i.ExUnits.new(i.BigNum.from_str(s.budget.mem.toString()), i.BigNum.from_str(s.budget.steps.toString())));
1329
+ }, $s = (s) => {
1352
1330
  switch (s.type) {
1353
1331
  case "SingleHostAddr": {
1354
- const e = s.IPV4 ? n.Ipv4.new(new Uint8Array(s.IPV4.split(".").map((r) => parseInt(r)))) : void 0, t = s.IPV6 ? n.Ipv6.new(m(s.IPV6.replaceAll(":", ""))) : void 0;
1355
- return n.Relay.new_single_host_addr(n.SingleHostAddr.new(s.port, e, t));
1332
+ const e = s.IPV4 ? i.Ipv4.new(new Uint8Array(s.IPV4.split(".").map((r) => parseInt(r)))) : void 0, t = s.IPV6 ? i.Ipv6.new(m(s.IPV6.replaceAll(":", ""))) : void 0;
1333
+ return i.Relay.new_single_host_addr(i.SingleHostAddr.new(s.port, e, t));
1356
1334
  }
1357
1335
  case "SingleHostName":
1358
- return n.Relay.new_single_host_name(n.SingleHostName.new(s.port, n.DNSRecordAorAAAA.new(s.domainName)));
1336
+ return i.Relay.new_single_host_name(i.SingleHostName.new(s.port, i.DNSRecordAorAAAA.new(s.domainName)));
1359
1337
  case "MultiHostName":
1360
- return n.Relay.new_multi_host_name(n.MultiHostName.new(n.DNSRecordSRV.new(s.domainName)));
1338
+ return i.Relay.new_multi_host_name(i.MultiHostName.new(i.DNSRecordSRV.new(s.domainName)));
1361
1339
  }
1362
1340
  }, Oe = (s) => {
1363
1341
  if (s.is_plutus_script()) {
1364
1342
  const t = s.plutus_script();
1365
1343
  return {
1366
1344
  code: t.to_hex(),
1367
- version: Object.keys(Et).find((r) => Et[r].to_hex() === t.language_version().to_hex())
1345
+ version: Object.keys(xt).find((r) => xt[r].to_hex() === t.language_version().to_hex())
1368
1346
  };
1369
1347
  }
1370
1348
  const e = s.native_script();
1371
1349
  return Dt(e);
1372
- }, lt = (s) => {
1350
+ }, ct = (s) => {
1373
1351
  if ("code" in s) {
1374
- const e = it(s.code, s.version);
1375
- return n.ScriptRef.new_plutus_script(e);
1352
+ const e = ot(s.code, s.version);
1353
+ return i.ScriptRef.new_plutus_script(e);
1376
1354
  }
1377
- return n.ScriptRef.new_native_script(vt(s));
1355
+ return i.ScriptRef.new_native_script(vt(s));
1378
1356
  }, Qt = (s) => {
1379
- var a, i, o;
1380
- const e = s.output().has_data_hash() ? (a = s.output().data_hash()) == null ? void 0 : a.to_hex() : void 0, t = s.output().has_plutus_data() ? (i = s.output().plutus_data()) == null ? void 0 : i.to_hex() : void 0, r = s.output().has_script_ref() ? (o = s.output().script_ref()) == null ? void 0 : o.to_hex() : void 0;
1357
+ var a, n, o;
1358
+ const e = s.output().has_data_hash() ? (a = s.output().data_hash()) == null ? void 0 : a.to_hex() : void 0, t = s.output().has_plutus_data() ? (n = s.output().plutus_data()) == null ? void 0 : n.to_hex() : void 0, r = s.output().has_script_ref() ? (o = s.output().script_ref()) == null ? void 0 : o.to_hex() : void 0;
1381
1359
  return {
1382
1360
  input: {
1383
1361
  outputIndex: s.input().index(),
@@ -1391,121 +1369,121 @@ const Vs = Os, Ys = (s, e) => {
1391
1369
  scriptRef: r
1392
1370
  }
1393
1371
  };
1394
- }, N = (s) => {
1395
- const e = n.TransactionInput.new(Fe(s.input.txHash), s.input.outputIndex), t = n.TransactionOutput.new(T(s.output.address), Bt(s.output.amount));
1396
- return s.output.dataHash !== void 0 && t.set_data_hash(Gs(s.output.dataHash)), s.output.plutusData !== void 0 && t.set_plutus_data(Pe(s.output.plutusData)), s.output.scriptRef !== void 0 && t.set_script_ref($s(s.output.scriptRef)), n.TransactionUnspentOutput.new(e, t);
1372
+ }, F = (s) => {
1373
+ const e = i.TransactionInput.new(Fe(s.input.txHash), s.input.outputIndex), t = i.TransactionOutput.new(H(s.output.address), Bt(s.output.amount));
1374
+ return s.output.dataHash !== void 0 && t.set_data_hash(Hs(s.output.dataHash)), s.output.plutusData !== void 0 && t.set_plutus_data(Pe(s.output.plutusData)), s.output.scriptRef !== void 0 && t.set_script_ref(Ys(s.output.scriptRef)), i.TransactionUnspentOutput.new(e, t);
1397
1375
  }, he = (s) => {
1398
1376
  const e = s.split(".")[1] ?? "0", t = `${parseInt(e, 10)}`, r = "1" + "0".repeat(e.length);
1399
- return n.UnitInterval.new(n.BigNum.from_str(t), n.BigNum.from_str(r));
1400
- }, S = (s) => s.length % 2 === 0 && /^[0-9A-F]*$/i.test(s) ? s : b(Buffer.from(s, "utf-8")), Yt = (s) => Buffer.from(s, "hex").toString("utf-8"), Ve = (s) => {
1377
+ return i.UnitInterval.new(i.BigNum.from_str(t), i.BigNum.from_str(r));
1378
+ }, S = (s) => s.length % 2 === 0 && /^[0-9A-F]*$/i.test(s) ? s : D(Buffer.from(s, "utf-8")), qt = (s) => Buffer.from(s, "hex").toString("utf-8"), Ve = (s) => {
1401
1379
  const e = [
1402
1380
  { unit: "lovelace", quantity: s.coin().to_str() }
1403
1381
  ], t = s.multiasset();
1404
1382
  if (t !== void 0) {
1405
1383
  const r = t.keys();
1406
1384
  for (let a = 0; a < r.len(); a += 1) {
1407
- const i = r.get(a), o = t.get(i);
1385
+ const n = r.get(a), o = t.get(n);
1408
1386
  if (o !== void 0) {
1409
1387
  const c = o.keys();
1410
1388
  for (let u = 0; u < c.len(); u += 1) {
1411
- const A = c.get(u), d = o.get(A) ?? n.BigNum.from_str("0"), g = i.to_hex() + b(A.name());
1412
- e.push({ unit: g, quantity: d.to_str() });
1389
+ const A = c.get(u), l = o.get(A) ?? i.BigNum.from_str("0"), g = n.to_hex() + D(A.name());
1390
+ e.push({ unit: g, quantity: l.to_str() });
1413
1391
  }
1414
1392
  }
1415
1393
  }
1416
1394
  }
1417
1395
  return e;
1418
1396
  }, Bt = (s) => {
1419
- const e = s.find((i) => i.unit === "lovelace"), t = Array.from(new Set(s.filter((i) => i.unit !== "lovelace").map((i) => i.unit.slice(0, F)))), r = n.MultiAsset.new();
1420
- t.forEach((i) => {
1421
- const o = n.Assets.new();
1422
- s.filter((c) => c.unit.slice(0, F) === i).forEach((c) => {
1423
- o.insert(n.AssetName.new(m(c.unit.slice(F))), n.BigNum.from_str(c.quantity));
1424
- }), r.insert(zs(i), o);
1397
+ const e = s.find((n) => n.unit === "lovelace"), t = Array.from(new Set(s.filter((n) => n.unit !== "lovelace").map((n) => n.unit.slice(0, M)))), r = i.MultiAsset.new();
1398
+ t.forEach((n) => {
1399
+ const o = i.Assets.new();
1400
+ s.filter((c) => c.unit.slice(0, M) === n).forEach((c) => {
1401
+ o.insert(i.AssetName.new(m(c.unit.slice(M))), i.BigNum.from_str(c.quantity));
1402
+ }), r.insert(qs(n), o);
1425
1403
  });
1426
- const a = n.Value.new(n.BigNum.from_str(e ? e.quantity : "0"));
1404
+ const a = i.Value.new(i.BigNum.from_str(e ? e.quantity : "0"));
1427
1405
  return (s.length > 1 || !e) && a.set_multiasset(r), a;
1428
- }, Ie = (s, e, t) => n.BaseAddress.new(s, n.StakeCredential.from_keyhash(e), n.StakeCredential.from_keyhash(t)), Ye = (s, e = "") => n.Bip32PrivateKey.from_bip39_entropy(m(s), m(S(e))), me = (s) => n.DataCost.new_coins_per_byte(n.BigNum.from_str(s)), Zs = (s) => {
1406
+ }, Ie = (s, e, t) => i.BaseAddress.new(s, i.StakeCredential.from_keyhash(e), i.StakeCredential.from_keyhash(t)), Ye = (s, e = "") => i.Bip32PrivateKey.from_bip39_entropy(m(s), m(S(e))), me = (s) => i.DataCost.new_coins_per_byte(i.BigNum.from_str(s)), zs = (s) => {
1429
1407
  if (typeof s != "object" || !("input" in s))
1430
- return n.DatumSource.new(Z(s));
1431
- const e = N(s);
1408
+ return i.DatumSource.new(tt(s));
1409
+ const e = F(s);
1432
1410
  if (e.output().has_plutus_data())
1433
- return n.DatumSource.new_ref_input(e.input());
1411
+ return i.DatumSource.new_ref_input(e.input());
1434
1412
  throw new Error(`No inline datum found in UTxO: ${e.input().transaction_id().to_hex()}`);
1435
- }, pe = (s, e) => n.EnterpriseAddress.new(s, n.StakeCredential.from_keyhash(e)), fe = (s, e) => {
1413
+ }, pe = (s, e) => i.EnterpriseAddress.new(s, i.StakeCredential.from_keyhash(e)), fe = (s, e) => {
1436
1414
  if (typeof s == "string")
1437
- return n.MintWitness.new_native_script(bt(s));
1415
+ return i.MintWitness.new_native_script(bt(s));
1438
1416
  if (e === void 0)
1439
1417
  throw new Error("Minting with plutus requires a redeemer to be defined");
1440
1418
  if (e.tag !== "MINT")
1441
1419
  throw new Error("Minting redeemer's tag must be defined as 'MINT'");
1442
- return n.MintWitness.new_plutus_script(qe(s), He({
1420
+ return i.MintWitness.new_plutus_script(qe(s), He({
1443
1421
  tag: "MINT",
1444
1422
  index: 0,
1445
- budget: Ee,
1423
+ budget: xe,
1446
1424
  data: {
1447
1425
  alternative: 0,
1448
1426
  fields: []
1449
1427
  },
1450
1428
  ...e
1451
1429
  }));
1452
- }, Pt = (s, e) => n.RewardAddress.new(s, n.StakeCredential.from_keyhash(e)), qe = (s) => {
1430
+ }, Ft = (s, e) => i.RewardAddress.new(s, i.StakeCredential.from_keyhash(e)), qe = (s) => {
1453
1431
  if ("code" in s)
1454
- return n.PlutusScriptSource.new(it(s.code, s.version));
1455
- const e = N(s);
1432
+ return i.PlutusScriptSource.new(ot(s.code, s.version));
1433
+ const e = F(s);
1456
1434
  if (e.output().has_script_ref()) {
1457
1435
  const t = e.output().script_ref();
1458
1436
  if (t.is_plutus_script()) {
1459
- const r = Oe(t), a = it(r.code, r.version).hash();
1460
- return n.PlutusScriptSource.new_ref_input_with_lang_ver(a, e.input(), Et[r.version]);
1437
+ const r = Oe(t), a = ot(r.code, r.version).hash();
1438
+ return i.PlutusScriptSource.new_ref_input_with_lang_ver(a, e.input(), xt[r.version]);
1461
1439
  }
1462
1440
  }
1463
1441
  throw new Error(`No plutus script reference found in UTxO: ${e.input().transaction_id().to_hex()}`);
1464
- }, pt = (s) => {
1465
- const e = n.ScriptPubkey.new(s);
1466
- return n.NativeScript.new_script_pubkey(e);
1467
- }, tr = (s = q) => {
1468
- const e = n.TransactionBuilderConfigBuilder.new().coins_per_utxo_byte(n.BigNum.from_str(s.coinsPerUTxOSize)).ex_unit_prices(n.ExUnitPrices.new(he(s.priceMem.toString()), he(s.priceStep.toString()))).fee_algo(n.LinearFee.new(n.BigNum.from_str(s.minFeeA.toString()), n.BigNum.from_str(s.minFeeB.toString()))).key_deposit(n.BigNum.from_str(s.keyDeposit)).max_tx_size(s.maxTxSize).max_value_size(parseInt(s.maxValSize, 10)).pool_deposit(n.BigNum.from_str(s.poolDeposit)).build();
1469
- return n.TransactionBuilder.new(e);
1442
+ }, ft = (s) => {
1443
+ const e = i.ScriptPubkey.new(s);
1444
+ return i.NativeScript.new_script_pubkey(e);
1445
+ }, Ws = (s = G) => {
1446
+ const e = i.TransactionBuilderConfigBuilder.new().coins_per_utxo_byte(i.BigNum.from_str(s.coinsPerUTxOSize)).ex_unit_prices(i.ExUnitPrices.new(he(s.priceMem.toString()), he(s.priceStep.toString()))).fee_algo(i.LinearFee.new(i.BigNum.from_str(s.minFeeA.toString()), i.BigNum.from_str(s.minFeeB.toString()))).key_deposit(i.BigNum.from_str(s.keyDeposit)).max_tx_size(s.maxTxSize).max_value_size(parseInt(s.maxValSize, 10)).pool_deposit(i.BigNum.from_str(s.poolDeposit)).build();
1447
+ return i.TransactionBuilder.new(e);
1470
1448
  }, _e = (s) => {
1471
- const e = n.TxInputsBuilder.new();
1472
- return s.map((t) => t instanceof n.TransactionUnspentOutput ? t : N(t)).forEach((t) => {
1449
+ const e = i.TxInputsBuilder.new();
1450
+ return s.map((t) => t instanceof i.TransactionUnspentOutput ? t : F(t)).forEach((t) => {
1473
1451
  e.add_input(t.output().address(), t.input(), t.output().amount());
1474
1452
  }), e;
1475
- }, ft = (s) => {
1453
+ }, _t = (s) => {
1476
1454
  if (typeof s == "string")
1477
- return n.TransactionOutputBuilder.new().with_address(T(s));
1478
- let e = n.TransactionOutputBuilder.new().with_address(T(s.address));
1455
+ return i.TransactionOutputBuilder.new().with_address(H(s));
1456
+ let e = i.TransactionOutputBuilder.new().with_address(H(s.address));
1479
1457
  if (s.datum) {
1480
- const { value: t, inline: r } = s.datum, a = Z(t);
1481
- e = e.with_data_hash(n.hash_plutus_data(a)), r && (e = e.with_plutus_data(a));
1458
+ const { value: t, inline: r } = s.datum, a = tt(t);
1459
+ e = e.with_data_hash(i.hash_plutus_data(a)), r && (e = e.with_plutus_data(a));
1482
1460
  }
1483
1461
  if (s.script) {
1484
- const t = lt(s.script);
1462
+ const t = ct(s.script);
1485
1463
  e = e.with_script_ref(t);
1486
1464
  }
1487
1465
  return e;
1488
- }, ot = (s) => {
1489
- const e = s.slice(0, F), t = s.includes(".") ? S(s.split(".")[1]) : s.slice(F);
1466
+ }, X = (s) => {
1467
+ const e = s.slice(0, M), t = s.includes(".") ? S(s.split(".")[1]) : s.slice(M);
1490
1468
  return { policyId: e, assetName: t };
1491
- }, l = (s) => j.isAxiosError(s) ? s.response ? JSON.stringify({
1469
+ }, d = (s) => L.isAxiosError(s) ? s.response ? JSON.stringify({
1492
1470
  data: s.response.data,
1493
1471
  headers: s.response.headers,
1494
1472
  status: s.response.status
1495
- }) : s.request ? JSON.stringify(s.request) : s.message : JSON.stringify(s), dr = (s) => {
1496
- const e = Z(s);
1497
- return n.hash_plutus_data(e).to_hex();
1498
- }, lr = (s, e = Date.now()) => {
1499
- if (xt[s]) {
1500
- const [t, r, a, i] = xt[s];
1501
- return parseInt(n.BigNum.from_str(e.toString()).div_floor(n.BigNum.from_str("1000")).checked_sub(n.BigNum.from_str(a)).div_floor(n.BigNum.from_str(i)).checked_add(n.BigNum.from_str(t)).to_str(), 10);
1473
+ }) : s.request ? JSON.stringify(s.request) : s.message : JSON.stringify(s), cr = (s) => {
1474
+ const e = tt(s);
1475
+ return i.hash_plutus_data(e).to_hex();
1476
+ }, ur = (s, e = Date.now()) => {
1477
+ if (Et[s]) {
1478
+ const [t, r, a, n] = Et[s];
1479
+ return parseInt(i.BigNum.from_str(e.toString()).div_floor(i.BigNum.from_str("1000")).checked_sub(i.BigNum.from_str(a)).div_floor(i.BigNum.from_str(n)).checked_add(i.BigNum.from_str(t)).to_str(), 10);
1502
1480
  }
1503
1481
  throw new Error(`Couldn't resolve EpochNo for network: ${s}`);
1504
- }, er = (s, e) => Vs.fromParts(m(s), m(e)).fingerprint(), hr = (s, e) => as[s][e], Ir = (s) => vt(s).hash().to_hex(), st = (s) => {
1482
+ }, Js = (s, e) => Fs.fromParts(m(s), m(e)).fingerprint(), Ar = (s, e) => ss[s][e], dr = (s) => vt(s).hash().to_hex(), rt = (s) => {
1505
1483
  var e, t;
1506
1484
  try {
1507
1485
  const r = [
1508
- (e = Vt(s)) == null ? void 0 : e.payment_cred().to_keyhash(),
1486
+ (e = Yt(s)) == null ? void 0 : e.payment_cred().to_keyhash(),
1509
1487
  (t = Te(s)) == null ? void 0 : t.payment_cred().to_keyhash()
1510
1488
  ].find((a) => a !== void 0);
1511
1489
  if (r !== void 0)
@@ -1514,10 +1492,10 @@ const Vs = Os, Ys = (s, e) => {
1514
1492
  } catch (r) {
1515
1493
  throw new Error(`An error occurred during resolvePaymentKeyHash: ${r}.`);
1516
1494
  }
1517
- }, mr = (s, e = 0) => {
1518
- const t = it(s.code, s.version);
1519
- return n.EnterpriseAddress.new(e, n.StakeCredential.from_scripthash(t.hash())).to_address().to_bech32();
1520
- }, pr = (s) => {
1495
+ }, gr = (s, e = 0) => {
1496
+ const t = ot(s.code, s.version);
1497
+ return i.EnterpriseAddress.new(e, i.StakeCredential.from_scripthash(t.hash())).to_address().to_bech32();
1498
+ }, lr = (s) => {
1521
1499
  try {
1522
1500
  const e = Te(s), t = e == null ? void 0 : e.payment_cred().to_scripthash();
1523
1501
  if (t !== void 0)
@@ -1526,29 +1504,29 @@ const Vs = Os, Ys = (s, e) => {
1526
1504
  } catch (e) {
1527
1505
  throw new Error(`An error occurred during resolveScriptHash: ${e}.`);
1528
1506
  }
1529
- }, fr = (s) => n.Ed25519KeyHash.from_hex(s).to_bech32("pool1"), _r = (s) => {
1530
- const e = ye(s.join(" ")), t = Ye(e), r = t.to_bech32();
1507
+ }, hr = (s) => i.Ed25519KeyHash.from_hex(s).to_bech32("pool1"), Ir = (s) => {
1508
+ const e = Ce(s.join(" ")), t = Ye(e), r = t.to_bech32();
1531
1509
  return t.free(), r;
1532
- }, yr = (s) => lt(s).to_hex(), Cr = (s, e = Date.now()) => {
1533
- if (xt[s]) {
1534
- const [t, r, a] = xt[s];
1535
- return n.BigNum.from_str(e.toString()).div_floor(n.BigNum.from_str("1000")).checked_sub(n.BigNum.from_str(a)).checked_add(n.BigNum.from_str(r)).to_str();
1510
+ }, mr = (s) => ct(s).to_hex(), pr = (s, e = Date.now()) => {
1511
+ if (Et[s]) {
1512
+ const [t, r, a] = Et[s];
1513
+ return i.BigNum.from_str(e.toString()).div_floor(i.BigNum.from_str("1000")).checked_sub(i.BigNum.from_str(a)).checked_add(i.BigNum.from_str(r)).to_str();
1536
1514
  }
1537
1515
  throw new Error(`Couldn't resolve SlotNo for network: ${s}`);
1538
- }, qt = (s) => {
1516
+ }, kt = (s) => {
1539
1517
  try {
1540
- const e = T(s), t = Vt(s), r = t == null ? void 0 : t.stake_cred().to_keyhash();
1518
+ const e = H(s), t = Yt(s), r = t == null ? void 0 : t.stake_cred().to_keyhash();
1541
1519
  if (r !== void 0)
1542
- return Pt(e.network_id(), r).to_address().to_bech32();
1520
+ return Ft(e.network_id(), r).to_address().to_bech32();
1543
1521
  throw new Error(`Couldn't resolve reward address from address: ${s}`);
1544
1522
  } catch (e) {
1545
1523
  throw new Error(`An error occurred during resolveRewardAddress: ${e}.`);
1546
1524
  }
1547
- }, At = (s) => {
1525
+ }, dt = (s) => {
1548
1526
  var e, t;
1549
1527
  try {
1550
1528
  const r = [
1551
- (e = Vt(s)) == null ? void 0 : e.stake_cred().to_keyhash(),
1529
+ (e = Yt(s)) == null ? void 0 : e.stake_cred().to_keyhash(),
1552
1530
  (t = Me(s)) == null ? void 0 : t.payment_cred().to_keyhash()
1553
1531
  ].find((a) => a !== void 0);
1554
1532
  if (r !== void 0)
@@ -1557,44 +1535,44 @@ const Vs = Os, Ys = (s, e) => {
1557
1535
  } catch (r) {
1558
1536
  throw new Error(`An error occurred during resolveStakeKeyHash: ${r}.`);
1559
1537
  }
1560
- }, Ge = (s, e = q.minFeeA, t = q.minFeeB) => (BigInt(e) * BigInt(s) + BigInt(t)).toString(), sr = (s) => {
1561
- const e = Y(s).body();
1562
- return n.hash_transaction(e).to_hex();
1563
- }, wr = (s = "", e = 32) => {
1538
+ }, Le = (s, e = G.minFeeA, t = G.minFeeB) => (BigInt(e) * BigInt(s) + BigInt(t)).toString(), js = (s) => {
1539
+ const e = q(s).body();
1540
+ return i.hash_transaction(e).to_hex();
1541
+ }, fr = (s = "", e = 32) => {
1564
1542
  if (e <= 0 || e > 2048)
1565
1543
  throw new Error("Length must be bewteen 1 and 2048");
1566
- const r = Be("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")(e);
1544
+ const r = ye("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")(e);
1567
1545
  return S(`${s}${r}`);
1568
- }, Le = (s, e) => {
1546
+ }, Ge = (s, e) => {
1569
1547
  const t = s.vkeys();
1570
1548
  if (t !== void 0) {
1571
1549
  const r = /* @__PURE__ */ new Set();
1572
- for (let i = 0; i < t.len(); i += 1)
1573
- r.add(t.get(i).to_hex());
1574
- for (let i = 0; i < e.len(); i += 1)
1575
- r.add(e.get(i).to_hex());
1576
- const a = n.Vkeywitnesses.new();
1577
- return r.forEach((i) => {
1578
- a.add(n.Vkeywitness.from_hex(i));
1550
+ for (let n = 0; n < t.len(); n += 1)
1551
+ r.add(t.get(n).to_hex());
1552
+ for (let n = 0; n < e.len(); n += 1)
1553
+ r.add(e.get(n).to_hex());
1554
+ const a = i.Vkeywitnesses.new();
1555
+ return r.forEach((n) => {
1556
+ a.add(i.Vkeywitness.from_hex(n));
1579
1557
  }), a;
1580
1558
  }
1581
1559
  return e;
1582
- }, Br = (s) => wt(Pe(s)), Er = (s) => Y(s).to_js_value();
1583
- class xr {
1560
+ }, _r = (s) => wt(Pe(s)), yr = (s) => q(s).to_js_value();
1561
+ class Cr {
1584
1562
  _axiosInstance;
1585
1563
  constructor(...e) {
1586
1564
  if (typeof e[0] == "string" && e[0].startsWith("http"))
1587
- this._axiosInstance = j.create({ baseURL: e[0] });
1565
+ this._axiosInstance = L.create({ baseURL: e[0] });
1588
1566
  else {
1589
1567
  const t = e[0], r = t.slice(0, 7);
1590
- this._axiosInstance = j.create({
1568
+ this._axiosInstance = L.create({
1591
1569
  baseURL: `https://cardano-${r}.blockfrost.io/api/v${e[1] ?? 0}`,
1592
1570
  headers: { project_id: t }
1593
1571
  });
1594
1572
  }
1595
1573
  }
1596
1574
  async fetchAccountInfo(e) {
1597
- const t = e.startsWith("addr") ? qt(e) : e;
1575
+ const t = e.startsWith("addr") ? kt(e) : e;
1598
1576
  try {
1599
1577
  const { data: r, status: a } = await this._axiosInstance.get(`accounts/${t}`);
1600
1578
  if (a === 200)
@@ -1605,28 +1583,28 @@ class xr {
1605
1583
  rewards: r.withdrawable_amount,
1606
1584
  withdrawals: r.withdrawals_sum
1607
1585
  };
1608
- throw l(r);
1586
+ throw d(r);
1609
1587
  } catch (r) {
1610
- throw l(r);
1588
+ throw d(r);
1611
1589
  }
1612
1590
  }
1613
1591
  async fetchAddressUTxOs(e, t) {
1614
- const r = t !== void 0 ? `/${t}` : "", a = `addresses/${e}/utxos` + r, i = async (u = 1, A = []) => {
1615
- const { data: d, status: g } = await this._axiosInstance.get(`${a}?page=${u}`);
1592
+ const r = t !== void 0 ? `/${t}` : "", a = `addresses/${e}/utxos` + r, n = async (u = 1, A = []) => {
1593
+ const { data: l, status: g } = await this._axiosInstance.get(`${a}?page=${u}`);
1616
1594
  if (g === 200)
1617
- return d.length > 0 ? i(u + 1, [...A, ...await Promise.all(d.map(c))]) : A;
1618
- throw l(d);
1595
+ return l.length > 0 ? n(u + 1, [...A, ...await Promise.all(l.map(c))]) : A;
1596
+ throw d(l);
1619
1597
  }, o = async (u) => {
1620
1598
  if (u) {
1621
- const { data: A, status: d } = await this._axiosInstance.get(`scripts/${u}`);
1622
- if (d === 200) {
1599
+ const { data: A, status: l } = await this._axiosInstance.get(`scripts/${u}`);
1600
+ if (l === 200) {
1623
1601
  const g = A.type.startsWith("plutus") ? {
1624
1602
  code: await this.fetchPlutusScriptCBOR(u),
1625
1603
  version: A.type.replace("plutus", "")
1626
1604
  } : await this.fetchNativeScriptJSON(u);
1627
- return lt(g).to_hex();
1605
+ return ct(g).to_hex();
1628
1606
  }
1629
- throw l(A);
1607
+ throw d(A);
1630
1608
  }
1631
1609
  }, c = async (u) => ({
1632
1610
  input: {
@@ -1642,17 +1620,17 @@ class xr {
1642
1620
  }
1643
1621
  });
1644
1622
  try {
1645
- return await i();
1623
+ return await n();
1646
1624
  } catch {
1647
1625
  return [];
1648
1626
  }
1649
1627
  }
1650
1628
  async fetchAssetAddresses(e) {
1651
1629
  const t = async (r = 1, a = []) => {
1652
- const { policyId: i, assetName: o } = ot(e), { data: c, status: u } = await this._axiosInstance.get(`assets/${i}${o}/addresses?page=${r}`);
1630
+ const { policyId: n, assetName: o } = X(e), { data: c, status: u } = await this._axiosInstance.get(`assets/${n}${o}/addresses?page=${r}`);
1653
1631
  if (u === 200)
1654
1632
  return c.length > 0 ? t(r + 1, [...a, ...c]) : a;
1655
- throw l(c);
1633
+ throw d(c);
1656
1634
  };
1657
1635
  try {
1658
1636
  return await t();
@@ -1662,14 +1640,14 @@ class xr {
1662
1640
  }
1663
1641
  async fetchAssetMetadata(e) {
1664
1642
  try {
1665
- const { policyId: t, assetName: r } = ot(e), { data: a, status: i } = await this._axiosInstance.get(`assets/${t}${r}`);
1666
- if (i === 200)
1643
+ const { policyId: t, assetName: r } = X(e), { data: a, status: n } = await this._axiosInstance.get(`assets/${t}${r}`);
1644
+ if (n === 200)
1667
1645
  return {
1668
1646
  ...a.onchain_metadata
1669
1647
  };
1670
- throw l(a);
1648
+ throw d(a);
1671
1649
  } catch (t) {
1672
- throw l(t);
1650
+ throw d(t);
1673
1651
  }
1674
1652
  }
1675
1653
  async fetchBlockInfo(e) {
@@ -1693,9 +1671,9 @@ class xr {
1693
1671
  txCount: t.tx_count,
1694
1672
  VRFKey: t.block_vrf
1695
1673
  };
1696
- throw l(t);
1674
+ throw d(t);
1697
1675
  } catch (t) {
1698
- throw l(t);
1676
+ throw d(t);
1699
1677
  }
1700
1678
  }
1701
1679
  async fetchCollectionAssets(e, t = 1) {
@@ -1703,25 +1681,25 @@ class xr {
1703
1681
  const { data: r, status: a } = await this._axiosInstance.get(`assets/policy/${e}?page=${t}`);
1704
1682
  if (a === 200)
1705
1683
  return {
1706
- assets: r.map((i) => ({
1707
- unit: i.asset,
1708
- quantity: i.quantity
1684
+ assets: r.map((n) => ({
1685
+ unit: n.asset,
1686
+ quantity: n.quantity
1709
1687
  })),
1710
1688
  next: r.length === 100 ? t + 1 : null
1711
1689
  };
1712
- throw l(r);
1690
+ throw d(r);
1713
1691
  } catch {
1714
1692
  return { assets: [], next: null };
1715
1693
  }
1716
1694
  }
1717
1695
  async fetchHandleAddress(e) {
1718
1696
  try {
1719
- const t = S(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`assets/${Tt[1]}${t}/addresses`);
1697
+ const t = S(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`assets/${Mt[1]}${t}/addresses`);
1720
1698
  if (a === 200)
1721
1699
  return r[0].address;
1722
- throw l(r);
1700
+ throw d(r);
1723
1701
  } catch (t) {
1724
- throw l(t);
1702
+ throw d(t);
1725
1703
  }
1726
1704
  }
1727
1705
  async fetchProtocolParameters(e = Number.NaN) {
@@ -1750,9 +1728,9 @@ class xr {
1750
1728
  priceMem: t.price_mem,
1751
1729
  priceStep: t.price_step
1752
1730
  };
1753
- throw l(t);
1731
+ throw d(t);
1754
1732
  } catch (t) {
1755
- throw l(t);
1733
+ throw d(t);
1756
1734
  }
1757
1735
  }
1758
1736
  async fetchTxInfo(e) {
@@ -1770,17 +1748,17 @@ class xr {
1770
1748
  slot: t.slot.toString(),
1771
1749
  size: t.size
1772
1750
  };
1773
- throw l(t);
1751
+ throw d(t);
1774
1752
  } catch (t) {
1775
- throw l(t);
1753
+ throw d(t);
1776
1754
  }
1777
1755
  }
1778
1756
  onTxConfirmed(e, t, r = 100) {
1779
1757
  let a = 0;
1780
- const i = setInterval(() => {
1781
- a >= r && clearInterval(i), this.fetchTxInfo(e).then((o) => {
1758
+ const n = setInterval(() => {
1759
+ a >= r && clearInterval(n), this.fetchTxInfo(e).then((o) => {
1782
1760
  this.fetchBlockInfo(o.block).then((c) => {
1783
- (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(i), t());
1761
+ (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(n), t());
1784
1762
  }).catch(() => {
1785
1763
  a += 1;
1786
1764
  });
@@ -1794,54 +1772,54 @@ class xr {
1794
1772
  const t = { "Content-Type": "application/cbor" }, { data: r, status: a } = await this._axiosInstance.post("tx/submit", m(e), { headers: t });
1795
1773
  if (a === 200)
1796
1774
  return r;
1797
- throw l(r);
1775
+ throw d(r);
1798
1776
  } catch (t) {
1799
- throw l(t);
1777
+ throw d(t);
1800
1778
  }
1801
1779
  }
1802
1780
  async fetchPlutusScriptCBOR(e) {
1803
1781
  const { data: t, status: r } = await this._axiosInstance.get(`scripts/${e}/cbor`);
1804
1782
  if (r === 200)
1805
1783
  return t.cbor;
1806
- throw l(t);
1784
+ throw d(t);
1807
1785
  }
1808
1786
  async fetchNativeScriptJSON(e) {
1809
1787
  const { data: t, status: r } = await this._axiosInstance.get(`scripts/${e}/json`);
1810
1788
  if (r === 200)
1811
1789
  return t.json;
1812
- throw l(t);
1790
+ throw d(t);
1813
1791
  }
1814
1792
  }
1815
- class Sr {
1793
+ class wr {
1816
1794
  _axiosInstance;
1817
1795
  constructor(e, t, r) {
1818
- const a = r.host ?? "ipfs.infura.io", i = r.port ?? 5001, o = r.version ?? 0;
1819
- this._axiosInstance = j.create({
1820
- baseURL: `https://${a}:${i}/api/v${o}`,
1796
+ const a = r.host ?? "ipfs.infura.io", n = r.port ?? 5001, o = r.version ?? 0;
1797
+ this._axiosInstance = L.create({
1798
+ baseURL: `https://${a}:${n}/api/v${o}`,
1821
1799
  auth: { username: e, password: t }
1822
1800
  });
1823
1801
  }
1824
1802
  async uploadContent(e, t = !1) {
1825
1803
  try {
1826
- const r = { "Content-Type": "multipart/form-data" }, { data: a, status: i } = await this._axiosInstance.post(`add?recursive=${t}`, e, { headers: r });
1827
- if (i === 200)
1804
+ const r = { "Content-Type": "multipart/form-data" }, { data: a, status: n } = await this._axiosInstance.post(`add?recursive=${t}`, e, { headers: r });
1805
+ if (n === 200)
1828
1806
  return a;
1829
- throw l(a);
1807
+ throw d(a);
1830
1808
  } catch (r) {
1831
- throw l(r);
1809
+ throw d(r);
1832
1810
  }
1833
1811
  }
1834
1812
  }
1835
- class Qr {
1813
+ class Br {
1836
1814
  _axiosInstance;
1837
1815
  constructor(...e) {
1838
- typeof e[0] == "string" && e[0].startsWith("http") ? this._axiosInstance = j.create({ baseURL: e[0] }) : this._axiosInstance = j.create({
1816
+ typeof e[0] == "string" && e[0].startsWith("http") ? this._axiosInstance = L.create({ baseURL: e[0] }) : this._axiosInstance = L.create({
1839
1817
  baseURL: `https://${e[0]}.koios.rest/api/v${e[1] ?? 0}`
1840
1818
  });
1841
1819
  }
1842
1820
  async fetchAccountInfo(e) {
1843
1821
  try {
1844
- const t = e.startsWith("addr") ? qt(e) : e, { data: r, status: a } = await this._axiosInstance.post("account_info", { _stake_addresses: [t] });
1822
+ const t = e.startsWith("addr") ? kt(e) : e, { data: r, status: a } = await this._axiosInstance.post("account_info", { _stake_addresses: [t] });
1845
1823
  if (a === 200)
1846
1824
  return {
1847
1825
  poolId: r[0].delegated_pool,
@@ -1850,24 +1828,24 @@ class Qr {
1850
1828
  rewards: r[0].rewards_available,
1851
1829
  withdrawals: r[0].withdrawals
1852
1830
  };
1853
- throw l(r);
1831
+ throw d(r);
1854
1832
  } catch (t) {
1855
- throw l(t);
1833
+ throw d(t);
1856
1834
  }
1857
1835
  }
1858
1836
  async fetchAddressUTxOs(e, t) {
1859
1837
  const r = (a) => {
1860
1838
  if (a) {
1861
- const i = a.type.startsWith("plutus") ? {
1839
+ const n = a.type.startsWith("plutus") ? {
1862
1840
  code: a.bytes,
1863
1841
  version: a.type.replace("plutus", "")
1864
1842
  } : Dt(bt(a.bytes));
1865
- return lt(i).to_hex();
1843
+ return ct(n).to_hex();
1866
1844
  }
1867
1845
  };
1868
1846
  try {
1869
- const { data: a, status: i } = await this._axiosInstance.post("address_info", { _addresses: [e] });
1870
- if (i === 200) {
1847
+ const { data: a, status: n } = await this._axiosInstance.post("address_info", { _addresses: [e] });
1848
+ if (n === 200) {
1871
1849
  const o = a.flatMap((c) => c.utxo_set).map((c) => {
1872
1850
  var u;
1873
1851
  return {
@@ -1892,34 +1870,34 @@ class Qr {
1892
1870
  });
1893
1871
  return t !== void 0 ? o.filter((c) => c.output.amount.find((u) => u.unit === t) !== void 0) : o;
1894
1872
  }
1895
- throw l(a);
1873
+ throw d(a);
1896
1874
  } catch {
1897
1875
  return [];
1898
1876
  }
1899
1877
  }
1900
1878
  async fetchAssetAddresses(e) {
1901
1879
  try {
1902
- const { policyId: t, assetName: r } = ot(e), { data: a, status: i } = await this._axiosInstance.get(`asset_address_list?_asset_policy=${t}&_asset_name=${r}`);
1903
- if (i === 200)
1880
+ const { policyId: t, assetName: r } = X(e), { data: a, status: n } = await this._axiosInstance.get(`asset_address_list?_asset_policy=${t}&_asset_name=${r}`);
1881
+ if (n === 200)
1904
1882
  return a.map((o) => ({
1905
1883
  address: o.payment_address,
1906
1884
  quantity: o.quantity
1907
1885
  }));
1908
- throw l(a);
1886
+ throw d(a);
1909
1887
  } catch (t) {
1910
- throw l(t);
1888
+ throw d(t);
1911
1889
  }
1912
1890
  }
1913
1891
  async fetchAssetMetadata(e) {
1914
1892
  try {
1915
- const { policyId: t, assetName: r } = ot(e), { data: a, status: i } = await this._axiosInstance.get(`asset_info?_asset_policy=${t}&_asset_name=${r}`);
1916
- if (i === 200)
1893
+ const { policyId: t, assetName: r } = X(e), { data: a, status: n } = await this._axiosInstance.get(`asset_info?_asset_policy=${t}&_asset_name=${r}`);
1894
+ if (n === 200)
1917
1895
  return {
1918
- ...a[0].minting_tx_metadata[721][t][Yt(r)]
1896
+ ...a[0].minting_tx_metadata[721][t][qt(r)]
1919
1897
  };
1920
- throw l(a);
1898
+ throw d(a);
1921
1899
  } catch (t) {
1922
- throw l(t);
1900
+ throw d(t);
1923
1901
  }
1924
1902
  }
1925
1903
  async fetchBlockInfo(e) {
@@ -1943,9 +1921,9 @@ class Qr {
1943
1921
  txCount: t[0].tx_count,
1944
1922
  VRFKey: t[0].vrf_key
1945
1923
  };
1946
- throw l(t);
1924
+ throw d(t);
1947
1925
  } catch (t) {
1948
- throw l(t);
1926
+ throw d(t);
1949
1927
  }
1950
1928
  }
1951
1929
  async fetchCollectionAssets(e, t = 0) {
@@ -1953,25 +1931,25 @@ class Qr {
1953
1931
  const { data: r, status: a } = await this._axiosInstance.get(`asset_policy_info?_asset_policy=${e}&limit=100&offset=${t}`);
1954
1932
  if (a === 200)
1955
1933
  return {
1956
- assets: r.map((i) => ({
1957
- unit: `${e}${i.asset_name}`,
1958
- quantity: i.total_supply
1934
+ assets: r.map((n) => ({
1935
+ unit: `${e}${n.asset_name}`,
1936
+ quantity: n.total_supply
1959
1937
  })),
1960
1938
  next: r.length === 100 ? t + 100 : null
1961
1939
  };
1962
- throw l(r);
1940
+ throw d(r);
1963
1941
  } catch (r) {
1964
- throw l(r);
1942
+ throw d(r);
1965
1943
  }
1966
1944
  }
1967
1945
  async fetchHandleAddress(e) {
1968
1946
  try {
1969
- const t = S(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`asset_address_list?_asset_policy=${Tt[1]}&_asset_name=${t}`);
1947
+ const t = S(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`asset_address_list?_asset_policy=${Mt[1]}&_asset_name=${t}`);
1970
1948
  if (a === 200)
1971
1949
  return r[0].payment_address;
1972
- throw l(r);
1950
+ throw d(r);
1973
1951
  } catch (t) {
1974
- throw l(t);
1952
+ throw d(t);
1975
1953
  }
1976
1954
  }
1977
1955
  async fetchProtocolParameters(e) {
@@ -2000,16 +1978,16 @@ class Qr {
2000
1978
  priceMem: t[0].price_mem,
2001
1979
  priceStep: t[0].price_step
2002
1980
  };
2003
- throw l(t);
1981
+ throw d(t);
2004
1982
  } catch (t) {
2005
- throw l(t);
1983
+ throw d(t);
2006
1984
  }
2007
1985
  }
2008
1986
  async fetchTxInfo(e) {
2009
1987
  var t, r;
2010
1988
  try {
2011
- const { data: a, status: i } = await this._axiosInstance.post("tx_info", { _tx_hashes: [e] });
2012
- if (i === 200)
1989
+ const { data: a, status: n } = await this._axiosInstance.post("tx_info", { _tx_hashes: [e] });
1990
+ if (n === 200)
2013
1991
  return {
2014
1992
  block: a[0].block_hash,
2015
1993
  deposit: a[0].deposit,
@@ -2021,17 +1999,17 @@ class Qr {
2021
1999
  slot: a[0].absolute_slot.toString(),
2022
2000
  size: a[0].tx_size
2023
2001
  };
2024
- throw l(a);
2002
+ throw d(a);
2025
2003
  } catch (a) {
2026
- throw l(a);
2004
+ throw d(a);
2027
2005
  }
2028
2006
  }
2029
2007
  onTxConfirmed(e, t, r = 100) {
2030
2008
  let a = 0;
2031
- const i = setInterval(() => {
2032
- a >= r && clearInterval(i), this.fetchTxInfo(e).then((o) => {
2009
+ const n = setInterval(() => {
2010
+ a >= r && clearInterval(n), this.fetchTxInfo(e).then((o) => {
2033
2011
  this.fetchBlockInfo(o.block).then((c) => {
2034
- (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(i), t());
2012
+ (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(n), t());
2035
2013
  }).catch(() => {
2036
2014
  a += 1;
2037
2015
  });
@@ -2045,25 +2023,25 @@ class Qr {
2045
2023
  const t = { "Content-Type": "application/cbor" }, { data: r, status: a } = await this._axiosInstance.post("submittx", m(e), { headers: t });
2046
2024
  if (a === 202)
2047
2025
  return r;
2048
- throw l(r);
2026
+ throw d(r);
2049
2027
  } catch (t) {
2050
- throw l(t);
2028
+ throw d(t);
2051
2029
  }
2052
2030
  }
2053
2031
  }
2054
- class br {
2032
+ class xr {
2055
2033
  _baseUrl;
2056
2034
  constructor(...e) {
2057
- this._baseUrl = ts(e[0]) ? ns[e[0]] : e[0];
2035
+ this._baseUrl = ts(e[0]) ? rs[e[0]] : e[0];
2058
2036
  }
2059
2037
  async evaluateTx(e) {
2060
2038
  const t = await this.open();
2061
2039
  return this.send(t, "EvaluateTx", {
2062
2040
  evaluate: e
2063
2041
  }), new Promise((r, a) => {
2064
- t.addEventListener("message", (i) => {
2042
+ t.addEventListener("message", (n) => {
2065
2043
  try {
2066
- const { result: o } = JSON.parse(i.data);
2044
+ const { result: o } = JSON.parse(n.data);
2067
2045
  o.EvaluationResult ? r(Object.keys(o.EvaluationResult).map((c) => ({
2068
2046
  index: parseInt(c.split(":")[1], 10),
2069
2047
  tag: c.split(":")[0].toUpperCase(),
@@ -2092,9 +2070,9 @@ class br {
2092
2070
  return this.send(t, "SubmitTx", {
2093
2071
  submit: e
2094
2072
  }), new Promise((r, a) => {
2095
- t.addEventListener("message", (i) => {
2073
+ t.addEventListener("message", (n) => {
2096
2074
  try {
2097
- const { result: o } = JSON.parse(i.data);
2075
+ const { result: o } = JSON.parse(n.data);
2098
2076
  o.SubmitSuccess ? r(o.SubmitSuccess.txId) : a(o.SubmitFail), t.close();
2099
2077
  } catch (o) {
2100
2078
  a(o);
@@ -2118,10 +2096,10 @@ class br {
2118
2096
  }));
2119
2097
  }
2120
2098
  }
2121
- class Dr {
2099
+ class Er {
2122
2100
  _axiosInstance;
2123
2101
  constructor(e, t, r, a = 1) {
2124
- this._axiosInstance = j.create({
2102
+ this._axiosInstance = L.create({
2125
2103
  baseURL: `https://cardano-${e}.tangocrypto.com/${t}/v${a}`,
2126
2104
  headers: { "x-api-key": r }
2127
2105
  });
@@ -2138,14 +2116,14 @@ class Dr {
2138
2116
  steps: a.unit_steps
2139
2117
  }
2140
2118
  }));
2141
- throw l(t);
2119
+ throw d(t);
2142
2120
  } catch (t) {
2143
- throw l(t);
2121
+ throw d(t);
2144
2122
  }
2145
2123
  }
2146
2124
  async fetchAccountInfo(e) {
2147
2125
  try {
2148
- const t = e.startsWith("addr") ? qt(e) : e, { data: r, status: a } = await this._axiosInstance.get(`wallets/${t}`);
2126
+ const t = e.startsWith("addr") ? kt(e) : e, { data: r, status: a } = await this._axiosInstance.get(`wallets/${t}`);
2149
2127
  if (a === 200)
2150
2128
  return {
2151
2129
  poolId: r.pool_id,
@@ -2154,40 +2132,40 @@ class Dr {
2154
2132
  rewards: r.rewards_sum,
2155
2133
  withdrawals: r.withdrawals_sum
2156
2134
  };
2157
- throw l(r);
2135
+ throw d(r);
2158
2136
  } catch (t) {
2159
- throw l(t);
2137
+ throw d(t);
2160
2138
  }
2161
2139
  }
2162
2140
  async fetchAddressUTxOs(e, t) {
2163
- const r = t !== void 0 ? `/assets/${t}` : "", a = `addresses/${e}${r}/utxos?size=50`, i = async (A = "", d = []) => {
2164
- var _;
2141
+ const r = t !== void 0 ? `/assets/${t}` : "", a = `addresses/${e}${r}/utxos?size=50`, n = async (A = "", l = []) => {
2142
+ var f;
2165
2143
  const { data: g, status: I } = await this._axiosInstance.get(`${a}&cursor=${A}`);
2166
2144
  if (I === 200)
2167
- return g.cursor !== null && ((_ = g.cursor) == null ? void 0 : _.length) > 0 ? i(g.cursor, [...d, ...g.data.map(u)]) : g.data.map(u);
2168
- throw l(g);
2169
- }, o = (A, d) => {
2145
+ return g.cursor !== null && ((f = g.cursor) == null ? void 0 : f.length) > 0 ? n(g.cursor, [...l, ...g.data.map(u)]) : g.data.map(u);
2146
+ throw d(g);
2147
+ }, o = (A, l) => {
2170
2148
  const g = [{
2171
2149
  unit: "lovelace",
2172
2150
  quantity: A.toString()
2173
2151
  }];
2174
- return d.forEach((I) => {
2175
- const _ = S(I.asset_name);
2152
+ return l.forEach((I) => {
2153
+ const f = S(I.asset_name);
2176
2154
  g.push({
2177
- unit: `${I.policy_id}${_}`,
2155
+ unit: `${I.policy_id}${f}`,
2178
2156
  quantity: I.quantity.toString()
2179
2157
  });
2180
2158
  }), g;
2181
2159
  }, c = (A) => {
2182
2160
  if (A) {
2183
- const d = A.type.startsWith("plutus") ? {
2161
+ const l = A.type.startsWith("plutus") ? {
2184
2162
  code: A.code,
2185
2163
  version: A.type.replace("plutus", "")
2186
2164
  } : Dt(bt(A.json));
2187
- return lt(d).to_hex();
2165
+ return ct(l).to_hex();
2188
2166
  }
2189
2167
  }, u = (A) => {
2190
- var d;
2168
+ var l;
2191
2169
  return {
2192
2170
  input: {
2193
2171
  outputIndex: A.index,
@@ -2197,13 +2175,13 @@ class Dr {
2197
2175
  address: e,
2198
2176
  amount: o(A.value, A.assets),
2199
2177
  dataHash: void 0,
2200
- plutusData: ((d = A.inline_datum) == null ? void 0 : d.value_raw) ?? void 0,
2178
+ plutusData: ((l = A.inline_datum) == null ? void 0 : l.value_raw) ?? void 0,
2201
2179
  scriptRef: c(A.reference_script)
2202
2180
  }
2203
2181
  };
2204
2182
  };
2205
2183
  try {
2206
- return await i();
2184
+ return await n();
2207
2185
  } catch {
2208
2186
  return [];
2209
2187
  }
@@ -2212,12 +2190,12 @@ class Dr {
2212
2190
  const t = (a) => ({
2213
2191
  address: a.address,
2214
2192
  quantity: a.quantity.toString()
2215
- }), r = async (a = "", i = []) => {
2216
- var d;
2217
- const { policyId: o, assetName: c } = ot(e), { data: u, status: A } = await this._axiosInstance.get(`assets/${o}${c}/addresses?size=100&cursor=${a}`);
2193
+ }), r = async (a = "", n = []) => {
2194
+ var l;
2195
+ const { policyId: o, assetName: c } = X(e), { data: u, status: A } = await this._axiosInstance.get(`assets/${o}${c}/addresses?size=100&cursor=${a}`);
2218
2196
  if (A === 200)
2219
- return u.cursor !== null && ((d = u.cursor) == null ? void 0 : d.length) > 0 ? r(u.cursor, [...i, ...u.data.map(t)]) : u.data.map(t);
2220
- throw l(u);
2197
+ return u.cursor !== null && ((l = u.cursor) == null ? void 0 : l.length) > 0 ? r(u.cursor, [...n, ...u.data.map(t)]) : u.data.map(t);
2198
+ throw d(u);
2221
2199
  };
2222
2200
  try {
2223
2201
  return await r();
@@ -2228,14 +2206,14 @@ class Dr {
2228
2206
  async fetchAssetMetadata(e) {
2229
2207
  var t;
2230
2208
  try {
2231
- const { policyId: r, assetName: a } = ot(e), { data: i, status: o } = await this._axiosInstance.get(`assets/${r}${a}`);
2209
+ const { policyId: r, assetName: a } = X(e), { data: n, status: o } = await this._axiosInstance.get(`assets/${r}${a}`);
2232
2210
  if (o === 200)
2233
2211
  return {
2234
- ...(t = i.metadata.find((c) => c.label === 721)) == null ? void 0 : t.json[r][Yt(a)]
2212
+ ...(t = n.metadata.find((c) => c.label === 721)) == null ? void 0 : t.json[r][qt(a)]
2235
2213
  };
2236
- throw l(i);
2214
+ throw d(n);
2237
2215
  } catch (r) {
2238
- throw l(r);
2216
+ throw d(r);
2239
2217
  }
2240
2218
  }
2241
2219
  async fetchBlockInfo(e) {
@@ -2259,9 +2237,9 @@ class Dr {
2259
2237
  txCount: t.tx_count,
2260
2238
  VRFKey: t.vrf_key
2261
2239
  };
2262
- throw l(t);
2240
+ throw d(t);
2263
2241
  } catch (t) {
2264
- throw l(t);
2242
+ throw d(t);
2265
2243
  }
2266
2244
  }
2267
2245
  async fetchCollectionAssets(e, t = "") {
@@ -2269,25 +2247,25 @@ class Dr {
2269
2247
  const { data: r, status: a } = await this._axiosInstance.get(`policies/${e}/assets?size=100&cursor=${t}`);
2270
2248
  if (a === 200)
2271
2249
  return {
2272
- assets: r.data.map((i) => ({
2273
- unit: `${i.policy_id}${i.asset_name}`,
2274
- quantity: i.quantity
2250
+ assets: r.data.map((n) => ({
2251
+ unit: `${n.policy_id}${n.asset_name}`,
2252
+ quantity: n.quantity
2275
2253
  })),
2276
2254
  next: r.cursor
2277
2255
  };
2278
- throw l(r);
2256
+ throw d(r);
2279
2257
  } catch {
2280
2258
  return { assets: [], next: null };
2281
2259
  }
2282
2260
  }
2283
2261
  async fetchHandleAddress(e) {
2284
2262
  try {
2285
- const t = S(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`assets/${Tt[1]}${t}/addresses`);
2263
+ const t = S(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`assets/${Mt[1]}${t}/addresses`);
2286
2264
  if (a === 200)
2287
2265
  return r.data[0].address;
2288
- throw l(r);
2266
+ throw d(r);
2289
2267
  } catch (t) {
2290
- throw l(t);
2268
+ throw d(t);
2291
2269
  }
2292
2270
  }
2293
2271
  async fetchProtocolParameters(e) {
@@ -2316,9 +2294,9 @@ class Dr {
2316
2294
  priceMem: t.price_mem,
2317
2295
  priceStep: t.price_step
2318
2296
  };
2319
- throw l(t);
2297
+ throw d(t);
2320
2298
  } catch (t) {
2321
- throw l(t);
2299
+ throw d(t);
2322
2300
  }
2323
2301
  }
2324
2302
  async fetchTxInfo(e) {
@@ -2336,17 +2314,17 @@ class Dr {
2336
2314
  slot: t.block.slot_no.toString(),
2337
2315
  size: t.size
2338
2316
  };
2339
- throw l(t);
2317
+ throw d(t);
2340
2318
  } catch (t) {
2341
- throw l(t);
2319
+ throw d(t);
2342
2320
  }
2343
2321
  }
2344
2322
  onTxConfirmed(e, t, r = 100) {
2345
2323
  let a = 0;
2346
- const i = setInterval(() => {
2347
- a >= r && clearInterval(i), this.fetchTxInfo(e).then((o) => {
2324
+ const n = setInterval(() => {
2325
+ a >= r && clearInterval(n), this.fetchTxInfo(e).then((o) => {
2348
2326
  this.fetchBlockInfo(o.block).then((c) => {
2349
- (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(i), t());
2327
+ (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(n), t());
2350
2328
  }).catch(() => {
2351
2329
  a += 1;
2352
2330
  });
@@ -2360,67 +2338,317 @@ class Dr {
2360
2338
  const t = { "Content-Type": "application/json" }, { data: r, status: a } = await this._axiosInstance.post("transactions/submit", { tx: e }, { headers: t });
2361
2339
  if (a === 200)
2362
2340
  return r.tx_id;
2363
- throw l(r);
2341
+ throw d(r);
2364
2342
  } catch (t) {
2365
- throw l(t);
2343
+ throw d(t);
2366
2344
  }
2367
2345
  }
2368
2346
  }
2369
- class vr {
2347
+ class Sr {
2348
+ _axiosInstance;
2349
+ submitUrl;
2350
+ constructor({ network: e, apiKey: t, turboSubmit: r = !1 }) {
2351
+ this._axiosInstance = L.create({
2352
+ baseURL: `https://${e}.gomaestro-api.org/v1`,
2353
+ headers: { "api-key": t }
2354
+ }), this.submitUrl = r ? "txmanager" : "txmanager/turbosubmit";
2355
+ }
2356
+ async fetchAccountInfo(e) {
2357
+ const t = e.startsWith("addr") ? kt(e) : e;
2358
+ try {
2359
+ const { data: r, status: a } = await this._axiosInstance.get(`accounts/${t}`);
2360
+ if (a === 200) {
2361
+ const n = r.data;
2362
+ return {
2363
+ poolId: n.delegated_pool,
2364
+ active: n.registered,
2365
+ balance: n.total_balance.toString(),
2366
+ rewards: n.rewards_available.toString(),
2367
+ withdrawals: n.total_withdrawn.toString()
2368
+ };
2369
+ }
2370
+ throw d(r);
2371
+ } catch (r) {
2372
+ throw d(r);
2373
+ }
2374
+ }
2375
+ async fetchAddressUTxOs(e, t) {
2376
+ const r = (() => e.startsWith("addr_vkh") || e.startsWith("addr_shared_vkh") ? `addresses/cred/${e}` : `addresses/${e}`)(), a = t ? `&asset=${t}` : "", n = (u) => {
2377
+ if (u.reference_script) {
2378
+ const A = u.reference_script.type === "native" ? u.reference_script.json : {
2379
+ code: u.reference_script.bytes,
2380
+ version: u.reference_script.type.replace("plutusv", "V")
2381
+ };
2382
+ return ct(A).to_hex();
2383
+ } else
2384
+ return;
2385
+ }, o = async (u = null, A = []) => {
2386
+ const l = u === null ? "" : `&cursor=${u}`, { data: g, status: I } = await this._axiosInstance.get(`${r}/utxos?count=100${a}${l}`);
2387
+ if (I === 200) {
2388
+ const y = g.data.map(c), b = [...A, ...y], k = g.next_cursor;
2389
+ return k == null ? b : o(k, b);
2390
+ }
2391
+ throw d(g);
2392
+ }, c = (u) => {
2393
+ var A, l;
2394
+ return {
2395
+ input: {
2396
+ outputIndex: u.index,
2397
+ txHash: u.tx_hash
2398
+ },
2399
+ output: {
2400
+ address: e,
2401
+ amount: u.assets.map((g) => ({
2402
+ unit: g.unit,
2403
+ quantity: g.amount.toString()
2404
+ })),
2405
+ dataHash: (A = u.datum) == null ? void 0 : A.hash,
2406
+ plutusData: (l = u.datum) == null ? void 0 : l.bytes,
2407
+ scriptRef: n(u)
2408
+ }
2409
+ };
2410
+ };
2411
+ try {
2412
+ return await o();
2413
+ } catch {
2414
+ return [];
2415
+ }
2416
+ }
2417
+ async fetchAssetAddresses(e) {
2418
+ const { policyId: t, assetName: r } = X(e), a = async (n = null, o = []) => {
2419
+ const c = n === null ? "" : `&cursor=${n}`, { data: u, status: A } = await this._axiosInstance.get(`assets/${t}${r}/addresses?count=100${c}`);
2420
+ if (A === 200) {
2421
+ const g = u.data.map((y) => ({ address: y.address, quantity: y.amount.toString() })), I = u.next_cursor, f = [...o, ...g];
2422
+ return I == null ? f : a(I, f);
2423
+ }
2424
+ throw d(u);
2425
+ };
2426
+ try {
2427
+ return await a();
2428
+ } catch {
2429
+ return [];
2430
+ }
2431
+ }
2432
+ async fetchAssetMetadata(e) {
2433
+ try {
2434
+ const { policyId: t, assetName: r } = X(e), { data: a, status: n } = await this._axiosInstance.get(`assets/${t}${r}`);
2435
+ if (n === 200) {
2436
+ const o = a.data;
2437
+ return {
2438
+ ...o.asset_standards.cip25_metadata,
2439
+ ...o.asset_standards.cip68_metadata
2440
+ };
2441
+ }
2442
+ throw d(a);
2443
+ } catch (t) {
2444
+ throw d(t);
2445
+ }
2446
+ }
2447
+ async fetchBlockInfo(e) {
2448
+ var t;
2449
+ try {
2450
+ const { data: r, status: a } = await this._axiosInstance.get(`blocks/${e}`);
2451
+ if (a === 200) {
2452
+ const n = r.data;
2453
+ return {
2454
+ confirmations: n.confirmations,
2455
+ epoch: n.epoch,
2456
+ epochSlot: n.epoch_slot.toString(),
2457
+ fees: n.total_fees.toString(),
2458
+ hash: n.hash,
2459
+ nextBlock: n.next_block ?? "",
2460
+ operationalCertificate: (t = n.operational_certificate) == null ? void 0 : t.hot_vkey,
2461
+ output: n.total_output_lovelace ?? "0",
2462
+ previousBlock: n.previous_block,
2463
+ size: n.size,
2464
+ slot: n.absolute_slot.toString(),
2465
+ slotLeader: n.block_producer ?? "",
2466
+ time: Date.parse(n.timestamp) / 1e3,
2467
+ txCount: n.tx_hashes.length,
2468
+ VRFKey: i.VRFVKey.from_hex(n.vrf_key).to_bech32("vrf_vk")
2469
+ };
2470
+ }
2471
+ throw d(r);
2472
+ } catch (r) {
2473
+ throw d(r);
2474
+ }
2475
+ }
2476
+ async fetchCollectionAssets(e, t) {
2477
+ try {
2478
+ const { data: r, status: a } = await this._axiosInstance.get(`assets/policy/${e}?count=100${t ? `&cursor=${t}` : ""}`);
2479
+ if (console.log(r), a === 200)
2480
+ return {
2481
+ assets: r.data.map((o) => ({
2482
+ unit: e + o.asset_name,
2483
+ quantity: o.total_supply.toString()
2484
+ })),
2485
+ next: r.next_cursor
2486
+ };
2487
+ throw d(r);
2488
+ } catch {
2489
+ return { assets: [], next: null };
2490
+ }
2491
+ }
2492
+ async fetchHandleAddress(e) {
2493
+ try {
2494
+ const t = e.charAt(0) === "$" ? e.substring(1) : e, { data: r, status: a } = await this._axiosInstance.get(`ecosystem/adahandle/${t}`);
2495
+ if (a === 200)
2496
+ return r.data;
2497
+ throw d(r);
2498
+ } catch (t) {
2499
+ throw d(t);
2500
+ }
2501
+ }
2502
+ async fetchProtocolParameters(e = Number.NaN) {
2503
+ if (!isNaN(e))
2504
+ throw new Error("Maestro only supports fetching Protocol parameters of the latest completed epoch.");
2505
+ const t = (r) => {
2506
+ const a = r.indexOf("/");
2507
+ return parseInt(r.slice(0, a)) / parseInt(r.slice(a + 1));
2508
+ };
2509
+ try {
2510
+ const { data: r, status: a } = await this._axiosInstance.get("protocol-params");
2511
+ if (a === 200) {
2512
+ const n = r.data;
2513
+ try {
2514
+ const { data: o, status: c } = await this._axiosInstance.get("epochs/current");
2515
+ if (c === 200) {
2516
+ const u = o.data;
2517
+ return {
2518
+ coinsPerUTxOSize: n.coins_per_utxo_byte.toString(),
2519
+ collateralPercent: parseInt(n.collateral_percentage),
2520
+ decentralisation: 0,
2521
+ epoch: parseInt(u.epoch_no),
2522
+ keyDeposit: n.stake_key_deposit.toString(),
2523
+ maxBlockExMem: n.max_execution_units_per_block.memory.toString(),
2524
+ maxBlockExSteps: n.max_execution_units_per_block.steps.toString(),
2525
+ maxBlockHeaderSize: parseInt(n.max_block_header_size),
2526
+ maxBlockSize: parseInt(n.max_block_body_size),
2527
+ maxCollateralInputs: parseInt(n.max_collateral_inputs),
2528
+ maxTxExMem: n.max_execution_units_per_transaction.memory.toString(),
2529
+ maxTxExSteps: n.max_execution_units_per_transaction.steps.toString(),
2530
+ maxTxSize: parseInt(n.max_tx_size),
2531
+ maxValSize: n.max_value_size.toString(),
2532
+ minFeeA: n.min_fee_coefficient,
2533
+ minFeeB: n.min_fee_constant,
2534
+ minPoolCost: n.min_pool_cost.toString(),
2535
+ poolDeposit: n.pool_deposit.toString(),
2536
+ priceMem: t(n.prices.memory),
2537
+ priceStep: t(n.prices.steps)
2538
+ };
2539
+ }
2540
+ throw d(o);
2541
+ } catch (o) {
2542
+ throw d(o);
2543
+ }
2544
+ }
2545
+ throw d(r);
2546
+ } catch (r) {
2547
+ throw d(r);
2548
+ }
2549
+ }
2550
+ async fetchTxInfo(e) {
2551
+ try {
2552
+ const { data: t, status: r } = await this._axiosInstance.get(`transactions/${e}`);
2553
+ if (r === 200) {
2554
+ const a = t.data;
2555
+ return {
2556
+ block: a.block_hash,
2557
+ deposit: a.deposit.toString(),
2558
+ fees: a.fee.toString(),
2559
+ hash: a.tx_hash,
2560
+ index: a.block_tx_index,
2561
+ invalidAfter: a.invalid_hereafter ?? "",
2562
+ invalidBefore: a.invalid_before ?? "",
2563
+ slot: a.block_absolute_slot.toString(),
2564
+ size: a.size - 1
2565
+ };
2566
+ }
2567
+ throw d(t);
2568
+ } catch (t) {
2569
+ throw d(t);
2570
+ }
2571
+ }
2572
+ onTxConfirmed(e, t, r = 100) {
2573
+ let a = 0;
2574
+ const n = setInterval(() => {
2575
+ a >= r && clearInterval(n), this.fetchTxInfo(e).then((o) => {
2576
+ this.fetchBlockInfo(o.block).then((c) => {
2577
+ (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(n), t());
2578
+ }).catch(() => {
2579
+ a += 1;
2580
+ });
2581
+ }).catch(() => {
2582
+ a += 1;
2583
+ });
2584
+ }, 5e3);
2585
+ }
2586
+ async submitTx(e) {
2587
+ try {
2588
+ const t = { "Content-Type": "application/cbor" }, { data: r, status: a } = await this._axiosInstance.post(this.submitUrl, m(e), { headers: t });
2589
+ if (a === 202)
2590
+ return r;
2591
+ throw d(r);
2592
+ } catch (t) {
2593
+ throw d(t);
2594
+ }
2595
+ }
2596
+ }
2597
+ class Qr {
2370
2598
  static withOneSignature(e) {
2371
- const t = P(st(e));
2372
- return pt(t).to_hex();
2599
+ const t = T(rt(e));
2600
+ return ft(t).to_hex();
2373
2601
  }
2374
2602
  static withAtLeastNSignatures(e, t) {
2375
- const r = n.NativeScripts.new();
2376
- e.forEach((i) => {
2377
- const o = P(st(i));
2378
- r.add(pt(o));
2603
+ const r = i.NativeScripts.new();
2604
+ e.forEach((n) => {
2605
+ const o = T(rt(n));
2606
+ r.add(ft(o));
2379
2607
  });
2380
- const a = n.ScriptNOfK.new(t, r);
2381
- return n.NativeScript.new_script_any(a).to_hex();
2608
+ const a = i.ScriptNOfK.new(t, r);
2609
+ return i.NativeScript.new_script_any(a).to_hex();
2382
2610
  }
2383
2611
  static withAnySignature(e) {
2384
- const t = n.NativeScripts.new();
2612
+ const t = i.NativeScripts.new();
2385
2613
  e.forEach((a) => {
2386
- const i = P(st(a));
2387
- t.add(pt(i));
2614
+ const n = T(rt(a));
2615
+ t.add(ft(n));
2388
2616
  });
2389
- const r = n.ScriptAny.new(t);
2390
- return n.NativeScript.new_script_any(r).to_hex();
2617
+ const r = i.ScriptAny.new(t);
2618
+ return i.NativeScript.new_script_any(r).to_hex();
2391
2619
  }
2392
2620
  static withAllSignatures(e) {
2393
- const t = n.NativeScripts.new();
2621
+ const t = i.NativeScripts.new();
2394
2622
  e.forEach((a) => {
2395
- const i = P(st(a));
2396
- t.add(pt(i));
2623
+ const n = T(rt(a));
2624
+ t.add(ft(n));
2397
2625
  });
2398
- const r = n.ScriptAll.new(t);
2399
- return n.NativeScript.new_script_any(r).to_hex();
2626
+ const r = i.ScriptAll.new(t);
2627
+ return i.NativeScript.new_script_any(r).to_hex();
2400
2628
  }
2401
2629
  static fromNativeScript(e) {
2402
2630
  return vt(e).to_hex();
2403
2631
  }
2404
2632
  }
2405
- function X(s, e, t, r) {
2406
- var a = arguments.length, i = a < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, o;
2633
+ function Z(s, e, t, r) {
2634
+ var a = arguments.length, n = a < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, o;
2407
2635
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2408
- i = Reflect.decorate(s, e, t, r);
2636
+ n = Reflect.decorate(s, e, t, r);
2409
2637
  else
2410
2638
  for (var c = s.length - 1; c >= 0; c--)
2411
- (o = s[c]) && (i = (a < 3 ? o(i) : a > 3 ? o(e, t, i) : o(e, t)) || i);
2412
- return a > 3 && i && Object.defineProperty(e, t, i), i;
2639
+ (o = s[c]) && (n = (a < 3 ? o(n) : a > 3 ? o(e, t, n) : o(e, t)) || n);
2640
+ return a > 3 && n && Object.defineProperty(e, t, n), n;
2413
2641
  }
2414
- const rr = (s) => class extends s {
2642
+ const Xs = (s) => class extends s {
2415
2643
  __visits = [];
2416
- }, tt = () => function(s, e, t) {
2644
+ }, et = () => function(s, e, t) {
2417
2645
  const r = t.value;
2418
2646
  t.value = function(...a) {
2419
- const i = r.call(this, ...a);
2420
- return this.__visits && this.__visits.push(e), i;
2647
+ const n = r.call(this, ...a);
2648
+ return this.__visits && this.__visits.push(e), n;
2421
2649
  };
2422
2650
  };
2423
- let L = class {
2651
+ let $ = class {
2424
2652
  _changeAddress;
2425
2653
  _txOutputs = /* @__PURE__ */ new Map();
2426
2654
  _recipients = /* @__PURE__ */ new Map();
@@ -2435,29 +2663,29 @@ let L = class {
2435
2663
  _txInputsBuilder;
2436
2664
  _txWithdrawals;
2437
2665
  constructor(e = {}) {
2438
- this._era = e.era, this._initiator = e.initiator, this._mintBuilder = n.MintBuilder.new(), this._protocolParameters = e.parameters ?? q, this._txBuilder = tr(e.parameters), this._txCertificates = n.Certificates.new(), this._txInputsBuilder = n.TxInputsBuilder.new(), this._txWithdrawals = n.Withdrawals.new();
2666
+ this._era = e.era, this._initiator = e.initiator, this._mintBuilder = i.MintBuilder.new(), this._protocolParameters = e.parameters ?? G, this._txBuilder = Ws(e.parameters), this._txCertificates = i.Certificates.new(), this._txInputsBuilder = i.TxInputsBuilder.new(), this._txWithdrawals = i.Withdrawals.new();
2439
2667
  }
2440
2668
  static maskMetadata(e, t = "BABBAGE") {
2441
- var i;
2442
- const r = Y(e), a = (i = r.auxiliary_data()) == null ? void 0 : i.metadata();
2669
+ var n;
2670
+ const r = q(e), a = (n = r.auxiliary_data()) == null ? void 0 : n.metadata();
2443
2671
  if (a !== void 0) {
2444
- const o = n.GeneralTransactionMetadata.new();
2672
+ const o = i.GeneralTransactionMetadata.new();
2445
2673
  for (let u = 0; u < a.len(); u += 1) {
2446
- const A = a.keys().get(u), d = a.get(A);
2447
- o.insert(A, n.TransactionMetadatum.from_hex("0".repeat(((d == null ? void 0 : d.to_hex()) ?? "").length)));
2674
+ const A = a.keys().get(u), l = a.get(A);
2675
+ o.insert(A, i.TransactionMetadatum.from_hex("0".repeat(((l == null ? void 0 : l.to_hex()) ?? "").length)));
2448
2676
  }
2449
2677
  const c = r.auxiliary_data();
2450
- return c !== void 0 && (c.set_metadata(o), c.set_prefer_alonzo_format(t === "ALONZO")), n.Transaction.new(r.body(), r.witness_set(), c).to_hex();
2678
+ return c !== void 0 && (c.set_metadata(o), c.set_prefer_alonzo_format(t === "ALONZO")), i.Transaction.new(r.body(), r.witness_set(), c).to_hex();
2451
2679
  }
2452
2680
  return e;
2453
2681
  }
2454
2682
  static readMetadata(e) {
2455
2683
  var r, a;
2456
- return ((a = (r = Y(e).auxiliary_data()) == null ? void 0 : r.metadata()) == null ? void 0 : a.to_hex()) ?? "";
2684
+ return ((a = (r = q(e).auxiliary_data()) == null ? void 0 : r.metadata()) == null ? void 0 : a.to_hex()) ?? "";
2457
2685
  }
2458
2686
  static writeMetadata(e, t, r = "BABBAGE") {
2459
- const a = Y(e), i = a.auxiliary_data() ?? n.AuxiliaryData.new();
2460
- return i.set_metadata(n.GeneralTransactionMetadata.from_hex(t)), i.set_prefer_alonzo_format(r === "ALONZO"), n.Transaction.new(a.body(), a.witness_set(), i).to_hex();
2687
+ const a = q(e), n = a.auxiliary_data() ?? i.AuxiliaryData.new();
2688
+ return n.set_metadata(i.GeneralTransactionMetadata.from_hex(t)), n.set_prefer_alonzo_format(r === "ALONZO"), i.Transaction.new(a.body(), a.witness_set(), n).to_hex();
2461
2689
  }
2462
2690
  get size() {
2463
2691
  return this._txBuilder.full_size();
@@ -2470,39 +2698,39 @@ let L = class {
2470
2698
  }
2471
2699
  }
2472
2700
  burnAsset(e, t, r) {
2473
- const a = this._totalBurns.has(t.unit) ? n.BigNum.from_str(this._totalBurns.get(t.unit) ?? "0").checked_add(n.BigNum.from_str(t.quantity)).to_str() : t.quantity;
2474
- return this._mintBuilder.add_asset(fe(e, r), n.AssetName.new(m(t.unit.slice(F))), n.Int.new_negative(n.BigNum.from_str(t.quantity))), this._totalBurns.set(t.unit, a), this;
2701
+ const a = this._totalBurns.has(t.unit) ? i.BigNum.from_str(this._totalBurns.get(t.unit) ?? "0").checked_add(i.BigNum.from_str(t.quantity)).to_str() : t.quantity;
2702
+ return this._mintBuilder.add_asset(fe(e, r), i.AssetName.new(m(t.unit.slice(M))), i.Int.new_negative(i.BigNum.from_str(t.quantity))), this._totalBurns.set(t.unit, a), this;
2475
2703
  }
2476
2704
  delegateStake(e, t) {
2477
- const r = n.Certificate.new_stake_delegation(n.StakeDelegation.new(n.StakeCredential.from_keyhash(P(At(e))), n.Ed25519KeyHash.from_bech32(t)));
2705
+ const r = i.Certificate.new_stake_delegation(i.StakeDelegation.new(i.StakeCredential.from_keyhash(T(dt(e))), i.Ed25519KeyHash.from_bech32(t)));
2478
2706
  return this._txCertificates.add(r), this;
2479
2707
  }
2480
2708
  deregisterStake(e) {
2481
- const t = n.Certificate.new_stake_deregistration(n.StakeDeregistration.new(n.StakeCredential.from_keyhash(P(At(e)))));
2709
+ const t = i.Certificate.new_stake_deregistration(i.StakeDeregistration.new(i.StakeCredential.from_keyhash(T(dt(e)))));
2482
2710
  return this._txCertificates.add(t), this;
2483
2711
  }
2484
2712
  mintAsset(e, t, r) {
2485
- var A, d;
2713
+ var A, l;
2486
2714
  const a = (g, I) => {
2487
- const _ = typeof g == "string" ? bt(g).hash().to_hex() : i(g).hash().to_hex(), x = S(I.assetName);
2715
+ const f = typeof g == "string" ? bt(g).hash().to_hex() : n(g).hash().to_hex(), y = S(I.assetName);
2488
2716
  return {
2489
- unit: `${_}${x}`,
2717
+ unit: `${f}${y}`,
2490
2718
  quantity: I.assetQuantity
2491
2719
  };
2492
- }, i = (g) => {
2720
+ }, n = (g) => {
2493
2721
  if ("code" in g)
2494
- return it(g.code, g.version);
2495
- const I = N(g);
2722
+ return ot(g.code, g.version);
2723
+ const I = F(g);
2496
2724
  if (I.output().has_script_ref()) {
2497
- const _ = I.output().script_ref();
2498
- if (_.is_plutus_script()) {
2499
- const x = Oe(_);
2500
- return it(x.code, x.version);
2725
+ const f = I.output().script_ref();
2726
+ if (f.is_plutus_script()) {
2727
+ const y = Oe(f);
2728
+ return ot(y.code, y.version);
2501
2729
  }
2502
2730
  }
2503
2731
  throw new Error(`No plutus script reference found in UTxO: ${I.input().transaction_id().to_hex()}`);
2504
- }, o = a(e, t), u = n.BigNum.from_str(((A = this._totalMints.get(o.unit)) == null ? void 0 : A.assetQuantity) ?? "0").checked_add(n.BigNum.from_str(o.quantity));
2505
- return this._mintBuilder.add_asset(fe(e, r), n.AssetName.new(m(S(t.assetName))), n.Int.new(n.BigNum.from_str(o.quantity))), this._recipients.has(t.recipient) ? (d = this._recipients.get(t.recipient)) == null || d.push(o) : this._recipients.set(t.recipient, [o]), this._totalMints.set(o.unit, {
2732
+ }, o = a(e, t), u = i.BigNum.from_str(((A = this._totalMints.get(o.unit)) == null ? void 0 : A.assetQuantity) ?? "0").checked_add(i.BigNum.from_str(o.quantity));
2733
+ return this._mintBuilder.add_asset(fe(e, r), i.AssetName.new(m(S(t.assetName))), i.Int.new(i.BigNum.from_str(o.quantity))), this._recipients.has(t.recipient) ? (l = this._recipients.get(t.recipient)) == null || l.push(o) : this._recipients.set(t.recipient, [o]), this._totalMints.set(o.unit, {
2506
2734
  ...t,
2507
2735
  assetQuantity: u.to_str()
2508
2736
  }), this;
@@ -2510,178 +2738,95 @@ let L = class {
2510
2738
  redeemValue(e) {
2511
2739
  const t = {
2512
2740
  tag: "SPEND",
2513
- budget: Ee,
2741
+ budget: xe,
2514
2742
  index: this._txInputsBuilder.inputs().len(),
2515
2743
  data: {
2516
2744
  alternative: 0,
2517
2745
  fields: []
2518
2746
  },
2519
2747
  ...e.redeemer
2520
- }, r = N(e.value), a = n.PlutusWitness.new_with_ref(qe(e.script), Zs(e.datum), He(t));
2748
+ }, r = F(e.value), a = i.PlutusWitness.new_with_ref(qe(e.script), zs(e.datum), He(t));
2521
2749
  return this._txInputsBuilder.add_plutus_script_input(a, r.input(), r.output().amount()), this;
2522
2750
  }
2523
2751
  registerStake(e) {
2524
- const t = n.Certificate.new_stake_registration(n.StakeRegistration.new(n.StakeCredential.from_keyhash(P(At(e)))));
2752
+ const t = i.Certificate.new_stake_registration(i.StakeRegistration.new(i.StakeCredential.from_keyhash(T(dt(e)))));
2525
2753
  return this._txCertificates.add(t), this;
2526
2754
  }
2527
2755
  registerPool(e) {
2528
- const t = n.Certificate.new_pool_registration(n.PoolRegistration.new(js(e)));
2756
+ const t = i.Certificate.new_pool_registration(i.PoolRegistration.new(Rs(e)));
2529
2757
  return this._txCertificates.add(t), this;
2530
2758
  }
2531
2759
  retirePool(e, t) {
2532
- const r = n.Certificate.new_pool_retirement(n.PoolRetirement.new(n.Ed25519KeyHash.from_bech32(e), t));
2760
+ const r = i.Certificate.new_pool_retirement(i.PoolRetirement.new(i.Ed25519KeyHash.from_bech32(e), t));
2533
2761
  return this._txCertificates.add(r), this;
2534
2762
  }
2535
- /**
2536
- * Adds an output to the transaction.
2537
- *
2538
- * @param recipient The recipient of the output.
2539
- * @param assets The assets to send.
2540
- * @returns The transaction builder.
2541
- * @see {@link https://meshjs.dev/apis/transaction#sendAssets}
2542
- */
2543
2763
  sendAssets(e, t) {
2544
2764
  const r = Bt(t), a = r.multiasset();
2545
2765
  if (r.is_zero() || a === void 0)
2546
2766
  return this;
2547
- const i = ft(e).next(), o = r.coin().is_zero() ? i.with_asset_and_min_required_coin_by_utxo_cost(a, me(this._protocolParameters.coinsPerUTxOSize)).build() : i.with_coin_and_asset(r.coin(), a).build();
2767
+ const n = _t(e).next(), o = r.coin().is_zero() ? n.with_asset_and_min_required_coin_by_utxo_cost(a, me(this._protocolParameters.coinsPerUTxOSize)).build() : n.with_coin_and_asset(r.coin(), a).build();
2548
2768
  return t.forEach((c) => {
2549
2769
  this.setTxOutput(c);
2550
2770
  }), this._txBuilder.add_output(o), this;
2551
2771
  }
2552
- /**
2553
- * Adds a transaction output to the transaction.
2554
- *
2555
- * @param {Recipient} recipient The recipient of the transaction.
2556
- * @param {string} lovelace The amount of lovelace to send.
2557
- * @returns {Transaction} The Transaction object.
2558
- * @see {@link https://meshjs.dev/apis/transaction#sendAda}
2559
- */
2560
2772
  sendLovelace(e, t) {
2561
- const a = ft(e).next().with_coin(n.BigNum.from_str(t)).build();
2773
+ const a = _t(e).next().with_coin(i.BigNum.from_str(t)).build();
2562
2774
  return this.setTxOutput({
2563
2775
  unit: "lovelace",
2564
2776
  quantity: t
2565
2777
  }), this._txBuilder.add_output(a), this;
2566
2778
  }
2567
- /**
2568
- * Adds stable coins transaction output to the transaction.
2569
- * @param {Recipient} recipient The recipient of the transaction.
2570
- * @param {Token} ticker The ticker of the token to send.
2571
- * @param {string} amount The amount of the token to send.
2572
- * @returns {Transaction} The Transaction object.
2573
- * @see {@link https://meshjs.dev/apis/transaction#sendToken}
2574
- */
2575
2779
  sendToken(e, t, r) {
2576
2780
  return this.sendAssets(e, [{
2577
2781
  quantity: r,
2578
- unit: is[t]
2782
+ unit: as[t]
2579
2783
  }]), this;
2580
2784
  }
2581
- /**
2582
- * Adds an output to the transaction.
2583
- *
2584
- * @param {Recipient} recipient The recipient of the output.
2585
- * @param {UTxO} value The UTxO value of the output.
2586
- * @returns {Transaction} The Transaction object.
2587
- */
2588
2785
  sendValue(e, t) {
2589
- const r = Bt(t.output.amount), i = ft(e).next().with_value(r).build();
2786
+ const r = Bt(t.output.amount), n = _t(e).next().with_value(r).build();
2590
2787
  return t.output.amount.forEach((o) => {
2591
2788
  this.setTxOutput(o);
2592
- }), this._txBuilder.add_output(i), this;
2593
- }
2594
- /**
2595
- * Sets the change address for the transaction.
2596
- *
2597
- * @param {string} changeAddress The change address.
2598
- * @returns {Transaction} The Transaction object.
2599
- */
2789
+ }), this._txBuilder.add_output(n), this;
2790
+ }
2600
2791
  setChangeAddress(e) {
2601
- return this._changeAddress = T(e), this;
2602
- }
2603
- /**
2604
- * Sets the collateral for the transaction.
2605
- *
2606
- * @param {UTxO[]} collateral - Set the UTxO for collateral.
2607
- * @returns {Transaction} The Transaction object.
2608
- */
2792
+ return this._changeAddress = H(e), this;
2793
+ }
2609
2794
  setCollateral(e) {
2610
2795
  const t = _e(e);
2611
2796
  return this._txBuilder.set_collateral(t), this;
2612
2797
  }
2613
- /**
2614
- * Add a JSON metadata entry to the transaction.
2615
- *
2616
- * @param {number} key The key to use for the metadata entry.
2617
- * @param {unknown} value The value to use for the metadata entry.
2618
- * @returns {Transaction} The Transaction object.
2619
- * @see {@link https://meshjs.dev/apis/transaction#setMetadata}
2620
- */
2621
2798
  setMetadata(e, t) {
2622
- return this._txBuilder.add_json_metadatum_with_schema(n.BigNum.from_str(e.toString()), JSON.stringify(t), n.MetadataJsonSchema.NoConversions), this;
2623
- }
2624
- /**
2625
- * Sets the required signers for the transaction.
2626
- *
2627
- * @param {string[]} addresses The addresses of the required signers.
2628
- * @returns {Transaction} The Transaction object.
2629
- */
2799
+ return this._txBuilder.add_json_metadatum_with_schema(i.BigNum.from_str(e.toString()), JSON.stringify(t), i.MetadataJsonSchema.NoConversions), this;
2800
+ }
2630
2801
  setRequiredSigners(e) {
2631
- return Array.from(new Set(e.map((r) => r.startsWith("addr") ? st(r) : At(r)).map((r) => P(r)))).forEach((r) => {
2802
+ return Array.from(new Set(e.map((r) => r.startsWith("addr") ? rt(r) : dt(r)).map((r) => T(r)))).forEach((r) => {
2632
2803
  this._txBuilder.add_required_signer(r);
2633
2804
  }), this;
2634
2805
  }
2635
- /**
2636
- * Sets the start slot for the transaction.
2637
- *
2638
- * @param {string} slot The start slot for the transaction.
2639
- * @returns {Transaction} The Transaction object.
2640
- * @see {@link https://meshjs.dev/apis/transaction#setTimeLimit}
2641
- */
2642
2806
  setTimeToStart(e) {
2643
- return this._txBuilder.set_validity_start_interval_bignum(n.BigNum.from_str(e)), this;
2644
- }
2645
- /**
2646
- * Set the time to live for the transaction.
2647
- *
2648
- * @param {string} slot The slot number to expire the transaction at.
2649
- * @returns {Transaction} The Transaction object.
2650
- * @see {@link https://meshjs.dev/apis/transaction#setTimeLimit}
2651
- */
2807
+ return this._txBuilder.set_validity_start_interval_bignum(i.BigNum.from_str(e)), this;
2808
+ }
2652
2809
  setTimeToExpire(e) {
2653
- return this._txBuilder.set_ttl_bignum(n.BigNum.from_str(e)), this;
2654
- }
2655
- /**
2656
- * Sets the inputs for the transaction.
2657
- *
2658
- * @param {UTxO[]} inputs The inputs to set.
2659
- * @returns {Transaction} The transaction.
2660
- */
2810
+ return this._txBuilder.set_ttl_bignum(i.BigNum.from_str(e)), this;
2811
+ }
2661
2812
  setTxInputs(e) {
2662
- return e.map((t) => N(t)).forEach((t) => {
2813
+ return e.map((t) => F(t)).forEach((t) => {
2663
2814
  this._txInputsBuilder.add_input(t.output().address(), t.input(), t.output().amount());
2664
2815
  }), this;
2665
2816
  }
2666
- /**
2667
- * Sets the reference inputs for the transaction.
2668
- *
2669
- * @param {UTxO[]} inputs The reference inputs to set.
2670
- * @returns {Transaction} The transaction.
2671
- */
2672
2817
  setTxRefInputs(e) {
2673
- return e.map((t) => N(t)).forEach((t) => {
2818
+ return e.map((t) => F(t)).forEach((t) => {
2674
2819
  this._txBuilder.add_reference_input(t.input());
2675
2820
  }), this;
2676
2821
  }
2677
2822
  withdrawRewards(e, t) {
2678
2823
  const r = Me(e);
2679
- return r !== void 0 && this._txWithdrawals.insert(r, n.BigNum.from_str(t)), this;
2824
+ return r !== void 0 && this._txWithdrawals.insert(r, i.BigNum.from_str(t)), this;
2680
2825
  }
2681
2826
  async addBurnInputsIfNeeded() {
2682
2827
  if (this._initiator && this._totalBurns.size > 0 && this.notVisited("setTxInputs")) {
2683
2828
  const e = await this._initiator.getUsedUTxOs();
2684
- cs(this._totalBurns, e.map((r) => Qt(r))).map((r) => N(r)).forEach((r) => {
2829
+ is(this._totalBurns, e.map((r) => Qt(r))).map((r) => F(r)).forEach((r) => {
2685
2830
  this._txInputsBuilder.add_input(r.output().address(), r.input(), r.output().amount());
2686
2831
  });
2687
2832
  }
@@ -2701,14 +2846,14 @@ let L = class {
2701
2846
  }
2702
2847
  async addRequiredSignersIfNeeded() {
2703
2848
  if (this._initiator && this.notVisited("setRequiredSigners")) {
2704
- const e = await this._initiator.getUsedAddress(), t = st(e.to_bech32());
2705
- this._txBuilder.add_required_signer(P(t));
2849
+ const e = await this._initiator.getUsedAddress(), t = rt(e.to_bech32());
2850
+ this._txBuilder.add_required_signer(T(t));
2706
2851
  }
2707
2852
  }
2708
2853
  async addTxInputsAsNeeded() {
2709
2854
  if (this.notVisited("setTxInputs")) {
2710
2855
  const e = await this.filterAvailableUTxOs();
2711
- os(this._txOutputs, e.map((r) => Qt(r))).map((r) => N(r)).forEach((r) => {
2856
+ ns(this._txOutputs, e.map((r) => Qt(r))).map((r) => F(r)).forEach((r) => {
2712
2857
  this._txInputsBuilder.add_input(r.output().address(), r.input(), r.output().amount());
2713
2858
  });
2714
2859
  }
@@ -2719,10 +2864,12 @@ let L = class {
2719
2864
  }
2720
2865
  async forgeAssetsIfNeeded() {
2721
2866
  const e = (t, r) => {
2722
- const a = t.data.assetName, i = t.data.metadata, o = t.unit.slice(0, F);
2867
+ const a = t.data.assetName, n = t.data.metadata, o = t.unit.slice(0, M);
2868
+ if (t.data.label === "777")
2869
+ return n;
2723
2870
  if (r && r[o]) {
2724
2871
  const { [o]: c, ...u } = r, A = {
2725
- [a]: i,
2872
+ [a]: n,
2726
2873
  ...c
2727
2874
  };
2728
2875
  return {
@@ -2734,18 +2881,18 @@ let L = class {
2734
2881
  }
2735
2882
  return r !== void 0 ? {
2736
2883
  [o]: {
2737
- [a]: i
2884
+ [a]: n
2738
2885
  },
2739
2886
  ...r
2740
2887
  } : {
2741
- [o]: { [a]: i }
2888
+ [o]: { [a]: n }
2742
2889
  };
2743
2890
  };
2744
2891
  await this.addBurnInputsIfNeeded(), Array.from(this._totalMints, (t) => ({
2745
2892
  unit: t[0],
2746
2893
  data: t[1]
2747
2894
  })).reduce((t, r) => t.set(r.data.label, e(r, t.get(r.data.label))), /* @__PURE__ */ new Map()).forEach((t, r) => {
2748
- this._txBuilder.add_json_metadatum(n.BigNum.from_str(r), JSON.stringify(t));
2895
+ this._txBuilder.add_json_metadatum(i.BigNum.from_str(r), JSON.stringify(t));
2749
2896
  }), this.addMintOutputs();
2750
2897
  }
2751
2898
  async filterAvailableUTxOs(e = []) {
@@ -2755,7 +2902,7 @@ let L = class {
2755
2902
  this._recipients.forEach((e, t) => {
2756
2903
  const a = Bt(e).multiasset();
2757
2904
  if (a !== void 0) {
2758
- const o = ft(t).next().with_asset_and_min_required_coin_by_utxo_cost(a, me(this._protocolParameters.coinsPerUTxOSize)).build();
2905
+ const o = _t(t).next().with_asset_and_min_required_coin_by_utxo_cost(a, me(this._protocolParameters.coinsPerUTxOSize)).build();
2759
2906
  this._txBuilder.add_output(o);
2760
2907
  }
2761
2908
  });
@@ -2764,35 +2911,35 @@ let L = class {
2764
2911
  return this.__visits.includes(e) === !1;
2765
2912
  }
2766
2913
  setTxOutput(e) {
2767
- const r = n.BigNum.from_str(this._txOutputs.get(e.unit) ?? "0").checked_add(n.BigNum.from_str(e.quantity)).to_str();
2914
+ const r = i.BigNum.from_str(this._txOutputs.get(e.unit) ?? "0").checked_add(i.BigNum.from_str(e.quantity)).to_str();
2768
2915
  this._txOutputs.set(e.unit, r);
2769
2916
  }
2770
2917
  };
2771
- X([
2772
- tt()
2773
- ], L.prototype, "mintAsset", null);
2774
- X([
2775
- tt()
2776
- ], L.prototype, "redeemValue", null);
2777
- X([
2778
- tt()
2779
- ], L.prototype, "sendAssets", null);
2780
- X([
2781
- tt()
2782
- ], L.prototype, "sendValue", null);
2783
- X([
2784
- tt()
2785
- ], L.prototype, "setCollateral", null);
2786
- X([
2787
- tt()
2788
- ], L.prototype, "setRequiredSigners", null);
2789
- X([
2790
- tt()
2791
- ], L.prototype, "setTxInputs", null);
2792
- L = X([
2793
- rr
2794
- ], L);
2795
- class C {
2918
+ Z([
2919
+ et()
2920
+ ], $.prototype, "mintAsset", null);
2921
+ Z([
2922
+ et()
2923
+ ], $.prototype, "redeemValue", null);
2924
+ Z([
2925
+ et()
2926
+ ], $.prototype, "sendAssets", null);
2927
+ Z([
2928
+ et()
2929
+ ], $.prototype, "sendValue", null);
2930
+ Z([
2931
+ et()
2932
+ ], $.prototype, "setCollateral", null);
2933
+ Z([
2934
+ et()
2935
+ ], $.prototype, "setRequiredSigners", null);
2936
+ Z([
2937
+ et()
2938
+ ], $.prototype, "setTxInputs", null);
2939
+ $ = Z([
2940
+ Xs
2941
+ ], $);
2942
+ class w {
2796
2943
  _networkId;
2797
2944
  _encryptedSecret;
2798
2945
  constructor(e, t) {
@@ -2800,9 +2947,9 @@ class C {
2800
2947
  }
2801
2948
  getAccount(e, t) {
2802
2949
  return this.accountContext(e, t, (r, a) => {
2803
- const i = Ie(this._networkId, r.to_public().hash(), a.to_public().hash()).to_address().to_bech32(), o = pe(this._networkId, r.to_public().hash()).to_address().to_bech32(), c = Pt(this._networkId, a.to_public().hash()).to_address().to_bech32();
2950
+ const n = Ie(this._networkId, r.to_public().hash(), a.to_public().hash()).to_address().to_bech32(), o = pe(this._networkId, r.to_public().hash()).to_address().to_bech32(), c = Ft(this._networkId, a.to_public().hash()).to_address().to_bech32();
2804
2951
  return {
2805
- baseAddress: i,
2952
+ baseAddress: n,
2806
2953
  enterpriseAddress: o,
2807
2954
  rewardAddress: c
2808
2955
  };
@@ -2810,28 +2957,28 @@ class C {
2810
2957
  }
2811
2958
  signData(e, t, r, a) {
2812
2959
  try {
2813
- return this.accountContext(e, t, (i, o) => {
2960
+ return this.accountContext(e, t, (n, o) => {
2814
2961
  const c = { payload: a }, u = {
2815
- address: C.resolveAddress(this._networkId, r, i, o),
2816
- key: r.startsWith("stake") ? o : i
2817
- }, { coseSign1: A, coseKey: d } = hs(c, u);
2818
- return { signature: A, key: d };
2962
+ address: w.resolveAddress(this._networkId, r, n, o),
2963
+ key: r.startsWith("stake") ? o : n
2964
+ }, { coseSign1: A, coseKey: l } = gs(c, u);
2965
+ return { signature: A, key: l };
2819
2966
  });
2820
- } catch (i) {
2821
- throw new Error(`An error occurred during signData: ${i}.`);
2967
+ } catch (n) {
2968
+ throw new Error(`An error occurred during signData: ${n}.`);
2822
2969
  }
2823
2970
  }
2824
- signTx(e, t, r, a, i) {
2971
+ signTx(e, t, r, a, n) {
2825
2972
  try {
2826
- const o = Fe(sr(a));
2973
+ const o = Fe(js(a));
2827
2974
  return this.accountContext(e, t, (c, u) => {
2828
- const A = n.Vkeywitnesses.new();
2829
- return C.resolveSigners(a, r, c.to_public().hash().to_hex()).forEach((g) => {
2975
+ const A = i.Vkeywitnesses.new();
2976
+ return w.resolveSigners(a, r, c.to_public().hash().to_hex()).forEach((g) => {
2830
2977
  if (g === c.to_public().hash().to_hex())
2831
- A.add(n.make_vkey_witness(o, c));
2978
+ A.add(i.make_vkey_witness(o, c));
2832
2979
  else if (g === u.to_public().hash().to_hex())
2833
- A.add(n.make_vkey_witness(o, u));
2834
- else if (i === !1)
2980
+ A.add(i.make_vkey_witness(o, u));
2981
+ else if (n === !1)
2835
2982
  throw new Error(`Missing key witness for: ${g}`);
2836
2983
  }), A;
2837
2984
  });
@@ -2840,130 +2987,130 @@ class C {
2840
2987
  }
2841
2988
  }
2842
2989
  static encryptMnemonic(e, t) {
2843
- const r = ye(e.join(" ")), a = Ye(r), i = b(a.as_bytes());
2844
- return a.free(), C.encrypt(i, t);
2990
+ const r = Ce(e.join(" ")), a = Ye(r), n = D(a.as_bytes());
2991
+ return a.free(), w.encrypt(n, t);
2845
2992
  }
2846
2993
  static encryptPrivateKey(e, t) {
2847
- const r = n.Bip32PrivateKey.from_bech32(e), a = b(r.as_bytes());
2848
- return r.free(), C.encrypt(a, t);
2994
+ const r = i.Bip32PrivateKey.from_bech32(e), a = D(r.as_bytes());
2995
+ return r.free(), w.encrypt(a, t);
2849
2996
  }
2850
2997
  static encryptSigningKeys(e, t, r) {
2851
- const a = C.encrypt(e.slice(4), r), i = C.encrypt(t.slice(4), r);
2852
- return [a, i];
2998
+ const a = w.encrypt(e.slice(4), r), n = w.encrypt(t.slice(4), r);
2999
+ return [a, n];
2853
3000
  }
2854
3001
  static generateMnemonic(e = 256) {
2855
3002
  return $e(e).split(" ");
2856
3003
  }
2857
3004
  accountContext(e, t, r) {
2858
- const { paymentKey: a, stakeKey: i } = C.resolveKeys(e, t, this._encryptedSecret), o = r(a, i);
2859
- return a.free(), i.free(), o;
3005
+ const { paymentKey: a, stakeKey: n } = w.resolveKeys(e, t, this._encryptedSecret), o = r(a, n);
3006
+ return a.free(), n.free(), o;
2860
3007
  }
2861
3008
  static decrypt(e, t) {
2862
3009
  try {
2863
- return n.decrypt_with_password(S(t), e);
3010
+ return i.decrypt_with_password(S(t), e);
2864
3011
  } catch {
2865
3012
  throw new Error("The password is incorrect.");
2866
3013
  }
2867
3014
  }
2868
3015
  static encrypt(e, t) {
2869
- const r = Be("0123456789abcdef"), a = r(64), i = r(24);
2870
- return n.encrypt_with_password(S(t), a, i, e);
3016
+ const r = ye("0123456789abcdef"), a = r(64), n = r(24);
3017
+ return i.encrypt_with_password(S(t), a, n, e);
2871
3018
  }
2872
3019
  static resolveAddress(e, t, r, a) {
2873
- const i = [
3020
+ const n = [
2874
3021
  Ie(e, r.to_public().hash(), a.to_public().hash()),
2875
3022
  pe(e, r.to_public().hash()),
2876
- Pt(e, a.to_public().hash())
3023
+ Ft(e, a.to_public().hash())
2877
3024
  ].find((o) => o.to_address().to_bech32() === t);
2878
- if (i !== void 0)
2879
- return i.to_address();
3025
+ if (n !== void 0)
3026
+ return n.to_address();
2880
3027
  throw new Error(`Address: ${t} doesn't belong to this account.`);
2881
3028
  }
2882
3029
  static resolveKeys(e, t, r) {
2883
3030
  if (typeof r == "string") {
2884
- const o = C.decrypt(r, t);
2885
- return Ys(o, e);
3031
+ const o = w.decrypt(r, t);
3032
+ return Ts(o, e);
2886
3033
  }
2887
- const a = C.decrypt(r[0], t), i = C.decrypt(r[1], t);
3034
+ const a = w.decrypt(r[0], t), n = w.decrypt(r[1], t);
2888
3035
  return {
2889
- paymentKey: n.PrivateKey.from_hex(a),
2890
- stakeKey: n.PrivateKey.from_hex(i)
3036
+ paymentKey: i.PrivateKey.from_hex(a),
3037
+ stakeKey: i.PrivateKey.from_hex(n)
2891
3038
  };
2892
3039
  }
2893
3040
  static resolveSigners(e, t, r) {
2894
3041
  const a = (c) => {
2895
- const u = (p, E = [], w = 0) => {
2896
- var ht, ct, Gt, Lt, Rt;
2897
- if (p === void 0 || w >= p.len())
3042
+ const u = (p, E = [], B = 0) => {
3043
+ var It, ut, Lt, Gt, Rt;
3044
+ if (p === void 0 || B >= p.len())
2898
3045
  return E;
2899
- const v = p.get(w), k = new Array();
2900
- switch (v.kind()) {
2901
- case n.CertificateKind.StakeDeregistration: {
2902
- const y = (ht = v.as_stake_deregistration()) == null ? void 0 : ht.stake_credential(), O = (y == null ? void 0 : y.kind()) === n.StakeCredKind.Key ? y.to_keyhash() : void 0;
2903
- O && k.push(O.to_hex());
3046
+ const U = p.get(B), K = new Array();
3047
+ switch (U.kind()) {
3048
+ case i.CertificateKind.StakeDeregistration: {
3049
+ const C = (It = U.as_stake_deregistration()) == null ? void 0 : It.stake_credential(), V = (C == null ? void 0 : C.kind()) === i.StakeCredKind.Key ? C.to_keyhash() : void 0;
3050
+ V && K.push(V.to_hex());
2904
3051
  break;
2905
3052
  }
2906
- case n.CertificateKind.StakeDelegation: {
2907
- const y = (ct = v.as_stake_delegation()) == null ? void 0 : ct.stake_credential(), O = (y == null ? void 0 : y.kind()) === n.StakeCredKind.Key ? y.to_keyhash() : void 0;
2908
- O && k.push(O.to_hex());
3053
+ case i.CertificateKind.StakeDelegation: {
3054
+ const C = (ut = U.as_stake_delegation()) == null ? void 0 : ut.stake_credential(), V = (C == null ? void 0 : C.kind()) === i.StakeCredKind.Key ? C.to_keyhash() : void 0;
3055
+ V && K.push(V.to_hex());
2909
3056
  break;
2910
3057
  }
2911
- case n.CertificateKind.PoolRegistration: {
2912
- const y = (Gt = v.as_pool_registration()) == null ? void 0 : Gt.pool_params().pool_owners();
2913
- k.push(...d(y));
3058
+ case i.CertificateKind.PoolRegistration: {
3059
+ const C = (Lt = U.as_pool_registration()) == null ? void 0 : Lt.pool_params().pool_owners();
3060
+ K.push(...l(C));
2914
3061
  break;
2915
3062
  }
2916
- case n.CertificateKind.PoolRetirement: {
2917
- const y = (Lt = v.as_pool_retirement()) == null ? void 0 : Lt.pool_keyhash();
2918
- y && k.push(y.to_hex());
3063
+ case i.CertificateKind.PoolRetirement: {
3064
+ const C = (Gt = U.as_pool_retirement()) == null ? void 0 : Gt.pool_keyhash();
3065
+ C && K.push(C.to_hex());
2919
3066
  break;
2920
3067
  }
2921
- case n.CertificateKind.MoveInstantaneousRewardsCert: {
2922
- const y = (Rt = v.as_move_instantaneous_rewards_cert()) == null ? void 0 : Rt.move_instantaneous_reward().as_to_stake_creds();
2923
- if (y)
2924
- for (let O = 0; O < y.len(); O += 1) {
2925
- const $t = y.keys().get(O), zt = $t.kind() === n.StakeCredKind.Key ? $t.to_keyhash() : void 0;
2926
- zt && k.push(zt.to_hex());
3068
+ case i.CertificateKind.MoveInstantaneousRewardsCert: {
3069
+ const C = (Rt = U.as_move_instantaneous_rewards_cert()) == null ? void 0 : Rt.move_instantaneous_reward().as_to_stake_creds();
3070
+ if (C)
3071
+ for (let V = 0; V < C.len(); V += 1) {
3072
+ const $t = C.keys().get(V), zt = $t.kind() === i.StakeCredKind.Key ? $t.to_keyhash() : void 0;
3073
+ zt && K.push(zt.to_hex());
2927
3074
  }
2928
3075
  break;
2929
3076
  }
2930
3077
  }
2931
- return u(p, [...E, ...k], w + 1);
2932
- }, A = (p, E = [], w = 0) => {
2933
- if (p === void 0 || w >= p.len())
3078
+ return u(p, [...E, ...K], B + 1);
3079
+ }, A = (p, E = [], B = 0) => {
3080
+ if (p === void 0 || B >= p.len())
2934
3081
  return E;
2935
- const v = p.get(w).index(), k = p.get(w).transaction_id(), ht = t.find((ct) => ct.input.outputIndex === v && ct.input.txHash === k.to_hex()) !== void 0 ? r : "OUR_PRINCESS_IS_IN_ANOTHER_CASTLE";
2936
- return A(p, [...E, ht], w + 1);
2937
- }, d = (p, E = [], w = 0) => p === void 0 || w >= p.len() ? E : d(p, [...E, p.get(w).to_hex()], w + 1), g = (p, E = [], w = 0) => {
2938
- if (p === void 0 || w >= p.len())
3082
+ const U = p.get(B).index(), K = p.get(B).transaction_id(), It = t.find((ut) => ut.input.outputIndex === U && ut.input.txHash === K.to_hex()) !== void 0 ? r : "OUR_PRINCESS_IS_IN_ANOTHER_CASTLE";
3083
+ return A(p, [...E, It], B + 1);
3084
+ }, l = (p, E = [], B = 0) => p === void 0 || B >= p.len() ? E : l(p, [...E, p.get(B).to_hex()], B + 1), g = (p, E = [], B = 0) => {
3085
+ if (p === void 0 || B >= p.len())
2939
3086
  return E;
2940
- const v = p.keys().get(w).payment_cred(), k = v.kind() === n.StakeCredKind.Key ? v.to_keyhash() : void 0;
2941
- return g(p, k ? [...E, k.to_hex()] : E, w + 1);
2942
- }, I = c.certs(), _ = c.collateral(), x = c.inputs(), H = c.required_signers(), R = c.withdrawals();
3087
+ const U = p.keys().get(B).payment_cred(), K = U.kind() === i.StakeCredKind.Key ? U.to_keyhash() : void 0;
3088
+ return g(p, K ? [...E, K.to_hex()] : E, B + 1);
3089
+ }, I = c.certs(), f = c.collateral(), y = c.inputs(), b = c.required_signers(), k = c.withdrawals();
2943
3090
  return [
2944
3091
  ...u(I),
2945
- ...A(_),
2946
- ...A(x),
2947
- ...d(H),
2948
- ...g(R)
3092
+ ...A(f),
3093
+ ...A(y),
3094
+ ...l(b),
3095
+ ...g(k)
2949
3096
  ];
2950
- }, i = (c) => {
2951
- const u = (d, g = []) => {
2952
- var I, _, x, H;
2953
- if (d)
2954
- for (let R = 0; R < d.len(); R += 1) {
2955
- const p = d.get(R);
3097
+ }, n = (c) => {
3098
+ const u = (l, g = []) => {
3099
+ var I, f, y, b;
3100
+ if (l)
3101
+ for (let k = 0; k < l.len(); k += 1) {
3102
+ const p = l.get(k);
2956
3103
  switch (p.kind()) {
2957
- case n.NativeScriptKind.ScriptPubkey: {
3104
+ case i.NativeScriptKind.ScriptPubkey: {
2958
3105
  const E = (I = p.as_script_pubkey()) == null ? void 0 : I.addr_keyhash().to_hex();
2959
3106
  return E ? [...g, E] : g;
2960
3107
  }
2961
- case n.NativeScriptKind.ScriptAll:
2962
- return u((_ = p.as_script_all()) == null ? void 0 : _.native_scripts(), g);
2963
- case n.NativeScriptKind.ScriptAny:
2964
- return u((x = p.as_script_any()) == null ? void 0 : x.native_scripts(), g);
2965
- case n.NativeScriptKind.ScriptNOfK:
2966
- return u((H = p.as_script_n_of_k()) == null ? void 0 : H.native_scripts(), g);
3108
+ case i.NativeScriptKind.ScriptAll:
3109
+ return u((f = p.as_script_all()) == null ? void 0 : f.native_scripts(), g);
3110
+ case i.NativeScriptKind.ScriptAny:
3111
+ return u((y = p.as_script_any()) == null ? void 0 : y.native_scripts(), g);
3112
+ case i.NativeScriptKind.ScriptNOfK:
3113
+ return u((b = p.as_script_n_of_k()) == null ? void 0 : b.native_scripts(), g);
2967
3114
  }
2968
3115
  }
2969
3116
  return g;
@@ -2971,61 +3118,61 @@ class C {
2971
3118
  return [
2972
3119
  ...u(A)
2973
3120
  ];
2974
- }, o = Y(e);
3121
+ }, o = q(e);
2975
3122
  return /* @__PURE__ */ new Set([
2976
3123
  ...a(o.body()),
2977
- ...i(o.witness_set())
3124
+ ...n(o.witness_set())
2978
3125
  ]);
2979
3126
  }
2980
3127
  }
2981
- const U = "MARI0TIME";
2982
- class Ur {
3128
+ const N = "MARI0TIME";
3129
+ class Dr {
2983
3130
  _fetcher;
2984
3131
  _submitter;
2985
3132
  _wallet;
2986
3133
  constructor(e) {
2987
3134
  switch (this._fetcher = e.fetcher, this._submitter = e.submitter, e.key.type) {
2988
3135
  case "mnemonic":
2989
- this._wallet = new C(e.networkId, C.encryptMnemonic(e.key.words, U));
3136
+ this._wallet = new w(e.networkId, w.encryptMnemonic(e.key.words, N));
2990
3137
  break;
2991
3138
  case "root":
2992
- this._wallet = new C(e.networkId, C.encryptPrivateKey(e.key.bech32, U));
3139
+ this._wallet = new w(e.networkId, w.encryptPrivateKey(e.key.bech32, N));
2993
3140
  break;
2994
3141
  case "cli":
2995
- this._wallet = new C(e.networkId, C.encryptSigningKeys(e.key.payment, e.key.stake ?? "f0".repeat(34), U));
3142
+ this._wallet = new w(e.networkId, w.encryptSigningKeys(e.key.payment, e.key.stake ?? "f0".repeat(34), N));
2996
3143
  }
2997
3144
  }
2998
3145
  getBaseAddress(e = 0) {
2999
- return this._wallet.getAccount(e, U).baseAddress;
3146
+ return this._wallet.getAccount(e, N).baseAddress;
3000
3147
  }
3001
3148
  getPaymentAddress(e = 0) {
3002
- return this._wallet.getAccount(e, U).enterpriseAddress;
3149
+ return this._wallet.getAccount(e, N).enterpriseAddress;
3003
3150
  }
3004
3151
  getRewardAddress(e = 0) {
3005
- return this._wallet.getAccount(e, U).rewardAddress;
3152
+ return this._wallet.getAccount(e, N).rewardAddress;
3006
3153
  }
3007
3154
  getUsedAddress(e = 0) {
3008
- const t = this._wallet.getAccount(e, U);
3009
- return T(t.enterpriseAddress);
3155
+ const t = this._wallet.getAccount(e, N);
3156
+ return H(t.enterpriseAddress);
3010
3157
  }
3011
- getUsedCollateral(e = q.maxCollateralInputs) {
3158
+ getUsedCollateral(e = G.maxCollateralInputs) {
3012
3159
  throw new Error("getUsedCollateral not implemented.");
3013
3160
  }
3014
3161
  async getUsedUTxOs(e = 0) {
3015
- const t = this._wallet.getAccount(e, U);
3016
- return (await this._fetcher.fetchAddressUTxOs(t.enterpriseAddress)).map((a) => N(a));
3162
+ const t = this._wallet.getAccount(e, N);
3163
+ return (await this._fetcher.fetchAddressUTxOs(t.enterpriseAddress)).map((a) => F(a));
3017
3164
  }
3018
3165
  signData(e, t, r = 0) {
3019
3166
  try {
3020
- return this._wallet.signData(r, U, e, t);
3167
+ return this._wallet.signData(r, N, e, t);
3021
3168
  } catch (a) {
3022
3169
  throw new Error(`[AppWallet] An error occurred during signData: ${a}.`);
3023
3170
  }
3024
3171
  }
3025
3172
  async signTx(e, t = !1, r = 0) {
3026
3173
  try {
3027
- const a = this._wallet.getAccount(r, U), i = await this._fetcher.fetchAddressUTxOs(a.enterpriseAddress), o = this._wallet.signTx(r, U, i, e, t), c = Y(e), u = c.witness_set(), A = Le(u, o);
3028
- return u.set_vkeys(A), n.Transaction.new(c.body(), u, c.auxiliary_data()).to_hex();
3174
+ const a = this._wallet.getAccount(r, N), n = await this._fetcher.fetchAddressUTxOs(a.enterpriseAddress), o = this._wallet.signTx(r, N, n, e, t), c = q(e), u = c.witness_set(), A = Ge(u, o);
3175
+ return u.set_vkeys(A), i.Transaction.new(c.body(), u, c.auxiliary_data()).to_hex();
3029
3176
  } catch (a) {
3030
3177
  throw new Error(`[AppWallet] An error occurred during signTx: ${a}.`);
3031
3178
  }
@@ -3034,10 +3181,10 @@ class Ur {
3034
3181
  return this._submitter.submitTx(e);
3035
3182
  }
3036
3183
  static brew(e = 256) {
3037
- return C.generateMnemonic(e);
3184
+ return w.generateMnemonic(e);
3038
3185
  }
3039
3186
  }
3040
- class Ft {
3187
+ class Tt {
3041
3188
  _walletInstance;
3042
3189
  constructor(e) {
3043
3190
  this._walletInstance = e;
@@ -3051,9 +3198,9 @@ class Ft {
3051
3198
  }
3052
3199
  static async enable(e) {
3053
3200
  try {
3054
- const t = await Ft.resolveInstance(e);
3201
+ const t = await Tt.resolveInstance(e);
3055
3202
  if (t !== void 0)
3056
- return new Ft(t);
3203
+ return new Tt(t);
3057
3204
  throw new Error(`Couldn't create an instance of wallet: ${e}`);
3058
3205
  } catch (t) {
3059
3206
  throw new Error(`[BrowserWallet] An error occurred during enable: ${t}.`);
@@ -3061,38 +3208,38 @@ class Ft {
3061
3208
  }
3062
3209
  async getBalance() {
3063
3210
  const e = await this._walletInstance.getBalance();
3064
- return Ve(Js(e));
3211
+ return Ve(Gs(e));
3065
3212
  }
3066
3213
  async getChangeAddress() {
3067
3214
  const e = await this._walletInstance.getChangeAddress();
3068
- return et(e).to_bech32();
3215
+ return st(e).to_bech32();
3069
3216
  }
3070
- async getCollateral(e = q.maxCollateralInputs) {
3217
+ async getCollateral(e = G.maxCollateralInputs) {
3071
3218
  return (await this.getUsedCollateral(e)).map((r) => Qt(r));
3072
3219
  }
3073
3220
  getNetworkId() {
3074
3221
  return this._walletInstance.getNetworkId();
3075
3222
  }
3076
3223
  async getRewardAddresses() {
3077
- return (await this._walletInstance.getRewardAddresses()).map((t) => et(t).to_bech32());
3224
+ return (await this._walletInstance.getRewardAddresses()).map((t) => st(t).to_bech32());
3078
3225
  }
3079
3226
  async getUnusedAddresses() {
3080
- return (await this._walletInstance.getUnusedAddresses()).map((t) => et(t).to_bech32());
3227
+ return (await this._walletInstance.getUnusedAddresses()).map((t) => st(t).to_bech32());
3081
3228
  }
3082
3229
  async getUsedAddresses() {
3083
- return (await this._walletInstance.getUsedAddresses()).map((t) => et(t).to_bech32());
3230
+ return (await this._walletInstance.getUsedAddresses()).map((t) => st(t).to_bech32());
3084
3231
  }
3085
3232
  async getUtxos() {
3086
3233
  return (await this.getUsedUTxOs()).map((t) => Qt(t));
3087
3234
  }
3088
3235
  signData(e, t) {
3089
- const r = T(e).to_hex();
3236
+ const r = H(e).to_hex();
3090
3237
  return this._walletInstance.signData(r, S(t));
3091
3238
  }
3092
3239
  async signTx(e, t = !1) {
3093
3240
  try {
3094
- const r = Y(e), a = r.witness_set(), i = await this._walletInstance.signTx(e, t), o = Ws(i).vkeys() ?? n.Vkeywitnesses.new(), c = Le(a, o);
3095
- return a.set_vkeys(c), b(n.Transaction.new(r.body(), a, r.auxiliary_data()).to_bytes());
3241
+ const r = q(e), a = r.witness_set(), n = await this._walletInstance.signTx(e, t), o = Ls(n).vkeys() ?? i.Vkeywitnesses.new(), c = Ge(a, o);
3242
+ return a.set_vkeys(c), D(i.Transaction.new(r.body(), a, r.auxiliary_data()).to_bytes());
3096
3243
  } catch (r) {
3097
3244
  throw new Error(`[BrowserWallet] An error occurred during signTx: ${JSON.stringify(r)}.`);
3098
3245
  }
@@ -3102,9 +3249,9 @@ class Ft {
3102
3249
  }
3103
3250
  async getUsedAddress() {
3104
3251
  const e = await this._walletInstance.getUsedAddresses();
3105
- return et(e[0]);
3252
+ return st(e[0]);
3106
3253
  }
3107
- async getUsedCollateral(e = q.maxCollateralInputs) {
3254
+ async getUsedCollateral(e = G.maxCollateralInputs) {
3108
3255
  return (await this._walletInstance.experimental.getCollateral() ?? []).map((r) => le(r)).slice(0, e);
3109
3256
  }
3110
3257
  async getUsedUTxOs() {
@@ -3112,12 +3259,12 @@ class Ft {
3112
3259
  }
3113
3260
  async getAssets() {
3114
3261
  return (await this.getBalance()).filter((t) => t.unit !== "lovelace").map((t) => {
3115
- const r = t.unit.slice(0, F), a = t.unit.slice(F), i = er(r, a);
3262
+ const r = t.unit.slice(0, M), a = t.unit.slice(M), n = Js(r, a);
3116
3263
  return {
3117
3264
  unit: t.unit,
3118
3265
  policyId: r,
3119
- assetName: Yt(a),
3120
- fingerprint: i,
3266
+ assetName: qt(a),
3267
+ fingerprint: n,
3121
3268
  quantity: t.quantity
3122
3269
  };
3123
3270
  });
@@ -3131,7 +3278,7 @@ class Ft {
3131
3278
  }
3132
3279
  async getPolicyIds() {
3133
3280
  const e = await this.getBalance();
3134
- return Array.from(new Set(e.map((t) => t.unit.slice(0, F)))).filter((t) => t !== "lovelace");
3281
+ return Array.from(new Set(e.map((t) => t.unit.slice(0, M)))).filter((t) => t !== "lovelace");
3135
3282
  }
3136
3283
  static resolveInstance(e) {
3137
3284
  if (window.cardano === void 0)
@@ -3140,25 +3287,24 @@ class Ft {
3140
3287
  return t == null ? void 0 : t.enable();
3141
3288
  }
3142
3289
  }
3143
- const Re = "http://localhost:4000/", ar = "http://localhost:5000/", nr = `${Re}access`, ir = `${Re}transaction/signtx`;
3144
- class Kr {
3290
+ const Re = "http://localhost:4000/", Zs = "http://localhost:5000/", tr = `${Re}access`, er = `${Re}transaction/signtx`;
3291
+ class vr {
3145
3292
  static getAxiosInstance() {
3146
- return j.create({
3147
- baseURL: ar,
3293
+ return L.create({
3294
+ baseURL: Zs,
3148
3295
  withCredentials: !0
3149
3296
  });
3150
3297
  }
3151
3298
  static getAppId() {
3152
3299
  return window.location.hostname;
3153
3300
  }
3154
- // TODO, popup blocker issue, need to create html modal instead
3155
3301
  static async openMinaFrontend(e) {
3156
3302
  const t = this.getAppId();
3157
3303
  e.includes("?") ? e = `${e}&appId=${t}` : e = `${e}?appId=${t}`;
3158
3304
  const r = "left=100,top=100,width=540,height=540", a = window.open(e, "meshWindow", r);
3159
- return a || console.error("the window did not open", a), await (async () => new Promise((i) => {
3305
+ return a || console.error("the window did not open", a), await (async () => new Promise((n) => {
3160
3306
  window.addEventListener("message", async (o) => {
3161
- o.data.target == "minaWallet" && i(o.data);
3307
+ o.data.target == "minaWallet" && n(o.data);
3162
3308
  });
3163
3309
  }))();
3164
3310
  }
@@ -3178,7 +3324,7 @@ class Kr {
3178
3324
  }
3179
3325
  }
3180
3326
  static async enable() {
3181
- return await this.get("wallet/getuserwalletsmeta") === void 0 ? await this.openMinaFrontend(nr) : !0;
3327
+ return await this.get("wallet/getuserwalletsmeta") === void 0 ? await this.openMinaFrontend(tr) : !0;
3182
3328
  }
3183
3329
  static async getChangeAddress(e = void 0, t = void 0) {
3184
3330
  return await this.get("wallet/getchangeaddress", {
@@ -3195,11 +3341,11 @@ class Kr {
3195
3341
  static async signTx(e, t = !1) {
3196
3342
  const r = await this.get("wallet/getuserwalletsmeta");
3197
3343
  if (console.log("userWalletsMeta", r), r) {
3198
- const a = await this.openMinaFrontend(`${ir}?unsignedTx=${e}&partialSign=${t}`);
3199
- if (a instanceof n.Vkeywitnesses) {
3200
- const i = Y(e), o = i.witness_set();
3344
+ const a = await this.openMinaFrontend(`${er}?unsignedTx=${e}&partialSign=${t}`);
3345
+ if (a instanceof i.Vkeywitnesses) {
3346
+ const n = q(e), o = n.witness_set();
3201
3347
  o.set_vkeys(a);
3202
- const c = n.Transaction.new(i.body(), o, i.auxiliary_data()).to_hex();
3348
+ const c = i.Transaction.new(n.body(), o, n.auxiliary_data()).to_hex();
3203
3349
  return console.log("signedTx", c), c;
3204
3350
  }
3205
3351
  } else
@@ -3207,41 +3353,42 @@ class Kr {
3207
3353
  }
3208
3354
  }
3209
3355
  export {
3210
- Ur as AppWallet,
3211
- xr as BlockfrostProvider,
3212
- Ft as BrowserWallet,
3213
- C as EmbeddedWallet,
3214
- vr as ForgeScript,
3215
- Sr as InfuraProvider,
3216
- Qr as KoiosProvider,
3217
- Kr as MinaWallet,
3218
- br as OgmiosProvider,
3219
- Dr as TangoProvider,
3220
- L as Transaction,
3221
- gr as checkSignature,
3222
- wr as generateNonce,
3356
+ Dr as AppWallet,
3357
+ Cr as BlockfrostProvider,
3358
+ Tt as BrowserWallet,
3359
+ w as EmbeddedWallet,
3360
+ Qr as ForgeScript,
3361
+ wr as InfuraProvider,
3362
+ Br as KoiosProvider,
3363
+ Sr as MaestroProvider,
3364
+ vr as MinaWallet,
3365
+ xr as OgmiosProvider,
3366
+ Er as TangoProvider,
3367
+ $ as Transaction,
3368
+ or as checkSignature,
3369
+ fr as generateNonce,
3223
3370
  ts as isNetwork,
3224
- os as keepRelevant,
3225
- Ar as largestFirst,
3226
- cs as largestFirstMultiAsset,
3227
- ot as parseAssetUnit,
3228
- l as parseHttpError,
3229
- Br as readPlutusData,
3230
- Er as readTransaction,
3231
- dr as resolveDataHash,
3232
- lr as resolveEpochNo,
3233
- er as resolveFingerprint,
3234
- hr as resolveLanguageView,
3235
- Ir as resolveNativeScriptHash,
3236
- st as resolvePaymentKeyHash,
3237
- mr as resolvePlutusScriptAddress,
3238
- pr as resolvePlutusScriptHash,
3239
- fr as resolvePoolId,
3240
- _r as resolvePrivateKey,
3241
- qt as resolveRewardAddress,
3242
- yr as resolveScriptRef,
3243
- Cr as resolveSlotNo,
3244
- At as resolveStakeKeyHash,
3245
- Ge as resolveTxFees,
3246
- sr as resolveTxHash
3371
+ ns as keepRelevant,
3372
+ ir as largestFirst,
3373
+ is as largestFirstMultiAsset,
3374
+ X as parseAssetUnit,
3375
+ d as parseHttpError,
3376
+ _r as readPlutusData,
3377
+ yr as readTransaction,
3378
+ cr as resolveDataHash,
3379
+ ur as resolveEpochNo,
3380
+ Js as resolveFingerprint,
3381
+ Ar as resolveLanguageView,
3382
+ dr as resolveNativeScriptHash,
3383
+ rt as resolvePaymentKeyHash,
3384
+ gr as resolvePlutusScriptAddress,
3385
+ lr as resolvePlutusScriptHash,
3386
+ hr as resolvePoolId,
3387
+ Ir as resolvePrivateKey,
3388
+ kt as resolveRewardAddress,
3389
+ mr as resolveScriptRef,
3390
+ pr as resolveSlotNo,
3391
+ dt as resolveStakeKeyHash,
3392
+ Le as resolveTxFees,
3393
+ js as resolveTxHash
3247
3394
  };