@wormhole-foundation/wormhole-connect 0.3.12-beta.1-development → 0.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/assets/{ccip-C0Iz_nok.js → ccip-CocV8yB9.js} +1 -1
  2. package/dist/assets/{evm-B5qVdwyN.js → evm-BCHTSsxK.js} +4 -4
  3. package/dist/assets/index-CoIbnMKD.js +2 -0
  4. package/dist/assets/{index-BkIhfZLh.js → index-MLWSqkmC.js} +1 -1
  5. package/dist/assets/{index.es-PkZnUVth.js → index.es-BiixD3RO.js} +2 -2
  6. package/dist/main.js +4 -4
  7. package/lib/{algorand-D1Mkmiy4.mjs → algorand-DsP9aKWl.mjs} +4 -4
  8. package/lib/{algorand-CUfqqtUV.js → algorand-eXccnrCU.js} +1 -1
  9. package/lib/{aptos-DOeN9kqv.js → aptos-3CZnOOfq.js} +2 -2
  10. package/lib/{aptos-vbmQLK_l.js → aptos-B2OLLOlg.js} +1 -1
  11. package/lib/{aptos-VkkWW0aR.mjs → aptos-Bv3nDvax.mjs} +1 -1
  12. package/lib/{aptos-DpLX6gJH.mjs → aptos-D8gbIchx.mjs} +4 -4
  13. package/lib/{browser-BUrzVnDe.js → browser-Bn1qwjLm.js} +1 -1
  14. package/lib/{browser-BmNyVybH.mjs → browser-DlWxOLZX.mjs} +2 -2
  15. package/lib/{ccip-C9WDWec4.mjs → ccip-BZfUB9j4.mjs} +1 -1
  16. package/lib/{ccip-BYW328UL.js → ccip-CsyJv9a0.js} +1 -1
  17. package/lib/{chain-Fd-WQzeJ.js → chain-D5AOvPgB.js} +1 -1
  18. package/lib/{chain-DfczCeEf.mjs → chain-DKCnEQGr.mjs} +1 -1
  19. package/lib/{cosmos-B6d_jh55.js → cosmos-D60ErM9c.js} +1 -1
  20. package/lib/{cosmos-Bb6izxWU.mjs → cosmos-DdMsP3Xb.mjs} +3 -3
  21. package/lib/{cosmwasm-BzpoOEHD.js → cosmwasm-A-iur38A.js} +2 -2
  22. package/lib/{cosmwasm-DcZ_Pytj.mjs → cosmwasm-CVl5FMK8.mjs} +6 -6
  23. package/lib/{create-D5fTyOgd.mjs → create-C6FJqFGQ.mjs} +1 -1
  24. package/lib/{create-BnV3GEvg.js → create-qTTAZEuM.js} +1 -1
  25. package/lib/{ens-validation.es6-BmZCZ7DK.js → ens-validation.es6-DBtwapbx.js} +1 -1
  26. package/lib/{ens-validation.es6-DLLbDCy1.mjs → ens-validation.es6-Dzjz9A6H.mjs} +2 -2
  27. package/lib/{evm-DkigQrlE.mjs → evm--Jtx_TN_.mjs} +6 -6
  28. package/lib/{evm-DR7KLDFn.js → evm-DxS0QRu-.js} +4 -4
  29. package/lib/{evm-C85V7Qp8.mjs → evm-ElW4TkgJ.mjs} +6 -6
  30. package/lib/{evm-BNILDEhY.js → evm-La94iYcP.js} +2 -2
  31. package/lib/{index-C27HjAr4.js → index-2luUak7r.js} +1 -1
  32. package/lib/{index-Dxdp0jG-.js → index-3bbveAQd.js} +1 -1
  33. package/lib/{index-CTE8aV0o.js → index-6JK2KXZR.js} +1 -1
  34. package/lib/{index-DxDhvUYN.mjs → index-9QuWXS0d.mjs} +4 -4
  35. package/lib/{index-BMGavzfJ.mjs → index-B-8eKuYx.mjs} +3 -3
  36. package/lib/{index-qH5DPtR8.js → index-B5UrJ3R0.js} +1 -1
  37. package/lib/{index-DUPF-4q_.mjs → index-B8QmOEmB.mjs} +4 -4
  38. package/lib/{index-DJ16fykt.mjs → index-BE635aC1.mjs} +3 -3
  39. package/lib/{index-BbRvzk7e.mjs → index-BJEw3qiN.mjs} +5 -5
  40. package/lib/{index-C96QkAry.mjs → index-BSZNhSAi.mjs} +4 -4
  41. package/lib/{index-QJvkw42I.js → index-BmWel1uO.js} +1 -1
  42. package/lib/{index-BEW9Dtlk.mjs → index-BpeQ2zfk.mjs} +5 -5
  43. package/lib/{index-4ptIAKr5.js → index-Bpk79NsA.js} +1 -1
  44. package/lib/{index-DGiIFYRA.js → index-BxnXFplu.js} +1 -1
  45. package/lib/{index-nHUtFn3B.js → index-BzrMFsLZ.js} +4 -4
  46. package/lib/{index-BPiLn9_Y.mjs → index-C3AalOOt.mjs} +4 -4
  47. package/lib/{index-CF69Lt5m.mjs → index-C46QJUdT.mjs} +4 -4
  48. package/lib/{index-Lk5WQmH1.js → index-C5_IW6ZB.js} +1 -1
  49. package/lib/index-CGMRtKmw.js +1 -0
  50. package/lib/{index-ooUsH0gc.mjs → index-CKwKd-BZ.mjs} +1 -1
  51. package/lib/{index-bRSQr-fv.js → index-CQ4sYLNm.js} +1 -1
  52. package/lib/{index-ehIXKdHq.js → index-CVW9fQKj.js} +1 -1
  53. package/lib/{index-CH2FOplR.mjs → index-CabopkLM.mjs} +2 -2
  54. package/lib/{index-DKqTC9TH.mjs → index-Cc1icmQX.mjs} +5 -5
  55. package/lib/{index-BoP3_j3T.js → index-CcF8vTrz.js} +1 -1
  56. package/lib/{index-qOfoHBwU.mjs → index-CeFWxpd6.mjs} +92 -62
  57. package/lib/{index-CxOlBFLQ.js → index-CnAVH7Pn.js} +1 -1
  58. package/lib/{index-CSjWfqV9.mjs → index-Co6BPUyW.mjs} +4 -4
  59. package/lib/{index-d8xDqAdV.mjs → index-Cy_JDgLX.mjs} +3 -3
  60. package/lib/{index-21Bd4i8f.mjs → index-CzjS5BYI.mjs} +1 -1
  61. package/lib/{index-C56TkoYA.mjs → index-D19hYI6q.mjs} +2 -2
  62. package/lib/{index-C7ypcyA-.js → index-D3AQ56s9.js} +1 -1
  63. package/lib/{index-BKsQ2DuA.js → index-D8oMnzkE.js} +1 -1
  64. package/lib/{index-CWR9dOu-.mjs → index-DHti1Srl.mjs} +6 -6
  65. package/lib/{index-C_x8vyWv.js → index-DV4C_0AO.js} +1 -1
  66. package/lib/{index-8NF2oe6W.js → index-DWNKf9h9.js} +1 -1
  67. package/lib/{index-CxtUZ69m.js → index-DcMMztM9.js} +1 -1
  68. package/lib/{index-lMLcXh0u.mjs → index-G-UVRs5W.mjs} +4 -4
  69. package/lib/{index-D8HkPUPB.js → index-ScjSw6c9.js} +1 -1
  70. package/lib/{index-pnwYgnlF.js → index-XPYOjl5L.js} +1 -1
  71. package/lib/{index-BmBTbsnN.mjs → index-ZwcNorsB.mjs} +4 -4
  72. package/lib/{index-DcwUbEoN.mjs → index-e2BD9BAO.mjs} +2 -2
  73. package/lib/{index-Bd_470bu.js → index-hVAqPrRu.js} +1 -1
  74. package/lib/{index-DPz9KK82.mjs → index-oXVQ9hP6.mjs} +4 -4
  75. package/lib/{index-Dl_mwF08.mjs → index-r3h1vFDJ.mjs} +4 -4
  76. package/lib/{index-MVjgUF1Y.js → index-teJM2gf9.js} +1 -1
  77. package/lib/{index.es-DHPSjFTn.mjs → index.es-B_Sm9RUu.mjs} +4 -4
  78. package/lib/{index.es-CmpYz8Wc.js → index.es-DoyD4mm0.js} +2 -2
  79. package/lib/index.js +1 -1
  80. package/lib/index.mjs +1 -1
  81. package/lib/{libsodium-wrappers-BwRWtXuq.js → libsodium-wrappers-DUeLf4UF.js} +1 -1
  82. package/lib/{libsodium-wrappers-BfA_VRAU.mjs → libsodium-wrappers-tOa7WewD.mjs} +1 -1
  83. package/lib/{sei-Ax_7QSLh.mjs → sei-B6kA_xto.mjs} +2 -2
  84. package/lib/{sei-voCz9s5C.js → sei-Dsh35qJH.js} +1 -1
  85. package/lib/{solana-Db-pegbm.js → solana-3l6_IpMo.js} +1 -1
  86. package/lib/{solana-BXs4RXqb.mjs → solana-B0T5-GTG.mjs} +3 -3
  87. package/lib/{solana-C-laU2n9.mjs → solana-BKu7ZEyd.mjs} +6 -6
  88. package/lib/{solana-DmVnmBCh.js → solana-DxZRfZC7.js} +2 -2
  89. package/lib/{solanaEmbed.esm-BvuPCMpl.mjs → solanaEmbed.esm-BCUjAHAB.mjs} +2 -2
  90. package/lib/{solanaEmbed.esm-Xi2f_Ulg.js → solanaEmbed.esm-BfLMQHAY.js} +1 -1
  91. package/lib/{sui-CdzVSFeU.js → sui-A03wTQ01.js} +2 -2
  92. package/lib/{sui-6NTukgkQ.js → sui-CQdykRga.js} +1 -1
  93. package/lib/{sui-COz8WbyV.mjs → sui-D5Lc_xEX.mjs} +4 -4
  94. package/lib/{sui-CXnVs7fm.mjs → sui-XxWiyiIK.mjs} +1 -1
  95. package/lib/{unsignedTransaction-fw4RiaZz.js → unsignedTransaction-B1m8rYzv.js} +1 -1
  96. package/lib/{unsignedTransaction-CCBYM-n2.mjs → unsignedTransaction-DUrFOHBP.mjs} +2 -2
  97. package/package.json +1 -1
  98. package/dist/assets/index-hleU7c2q.js +0 -2
  99. package/lib/index-BCpD_HId.js +0 -1
@@ -213003,33 +213003,59 @@ function modifySignTransaction(e, ...Re) {
213003
213003
  return e(Fe);
213004
213004
  };
213005
213005
  }
213006
- async function sendAndConfirmTransactionsWithRetry(e, Re, Fe, Qe, qe = 0, Je) {
213006
+ async function sendAndConfirmTransactionsWithRetry(e, Re, Fe, Qe, qe = 0, Je = "finalized") {
213007
213007
  if (Qe.length == 0)
213008
213008
  return Promise.reject("No transactions provided to send.");
213009
- const We = Je == null ? void 0 : Je.commitment;
213010
- let Ke = 0;
213011
- const Xe = [];
213012
- for (const Ze of Qe) {
213013
- for (; Ke <= qe; )
213009
+ let We = 0;
213010
+ const Ke = [];
213011
+ for (const Xe of Qe) {
213012
+ for (; We <= qe; )
213014
213013
  try {
213015
- const ht = await e.getLatestBlockhash(We);
213016
- Ze.recentBlockhash = ht.blockhash, Ze.feePayer = new PublicKey$4(Fe);
213017
- const Qn = await Re(Ze).catch(($n) => null);
213018
- if (Qn === null)
213019
- return Promise.reject("Failed to sign transaction.");
213020
- const Dt = await e.sendRawTransaction(Qn.serialize(), Je), Un = await e.confirmTransaction({
213021
- signature: Dt,
213022
- ...ht
213023
- }, We);
213024
- Xe.push({ signature: Dt, response: Un });
213014
+ const Ze = await signSendAndConfirmTransaction(e, Re, Fe, Xe, Je);
213015
+ Ke.push(Ze);
213025
213016
  break;
213026
- } catch (ht) {
213027
- console.error(ht), ++Ke;
213017
+ } catch (Ze) {
213018
+ console.error(Ze), ++We;
213028
213019
  }
213029
- if (Ke > qe)
213020
+ if (We > qe)
213030
213021
  return Promise.reject("Reached the maximum number of retries.");
213031
213022
  }
213032
- return Promise.resolve(Xe);
213023
+ return Promise.resolve(Ke);
213024
+ }
213025
+ async function signSendAndConfirmTransaction(e, Re, Fe, Qe, qe = "finalized", Je = 5e3) {
213026
+ const { blockhash: We, lastValidBlockHeight: Ke } = await e.getLatestBlockhash({
213027
+ commitment: qe
213028
+ });
213029
+ Qe.recentBlockhash = We, Qe.feePayer = new PublicKey$4(Fe);
213030
+ const Xe = await Re(Qe);
213031
+ let Ze = null, ht = null, Qn = 1, Dt = "";
213032
+ const Un = Xe.serialize(), $n = {
213033
+ skipPreflight: !0,
213034
+ maxRetries: 0,
213035
+ preFlightCommitment: qe
213036
+ // See PR and linked issue for why setting this matters: https://github.com/anza-xyz/agave/pull/483
213037
+ };
213038
+ for (Dt = await e.sendRawTransaction(Un, $n), Ze = e.confirmTransaction({
213039
+ signature: Dt,
213040
+ blockhash: We,
213041
+ lastValidBlockHeight: Ke
213042
+ }, qe); !ht && (ht = await Promise.race([
213043
+ Ze,
213044
+ new Promise((Hn) => setTimeout(() => {
213045
+ Hn(null);
213046
+ }, Je))
213047
+ ]), !ht); ) {
213048
+ console.log(`Tx not confirmed after ${Je * Qn++}ms, resending`);
213049
+ try {
213050
+ await e.sendRawTransaction(Un, $n);
213051
+ } catch (Hn) {
213052
+ console.error("Failed to resend transaction:", Hn);
213053
+ }
213054
+ }
213055
+ return {
213056
+ signature: Dt,
213057
+ response: ht
213058
+ };
213033
213059
  }
213034
213060
  function deriveClaimKey$1(e, Re, Fe, Qe) {
213035
213061
  const qe = typeof Re == "string" ? dist$7.Buffer.from(Re, "hex") : dist$7.Buffer.from(Re);
@@ -215287,31 +215313,33 @@ function coder$1() {
215287
215313
  return new TokenBridgeCoder(IDL$6);
215288
215314
  }
215289
215315
  const DEFAULT_FEE_PERCENTILE = 0.5;
215290
- async function addComputeBudget(e, Re, Fe = [], Qe = DEFAULT_FEE_PERCENTILE, qe = 0) {
215291
- Fe.length === 0 && (Fe = Re.instructions.flatMap((We) => We.keys).map((We) => We.isWritable ? We.pubkey : null).filter((We) => We !== null));
215292
- const Je = await determineComputeBudget(e, Re, Fe, DEFAULT_FEE_PERCENTILE, qe);
215293
- Re.add(...Je);
215316
+ async function addComputeBudget(e, Re, Fe = [], Qe = DEFAULT_FEE_PERCENTILE, qe = 0, Je = !1) {
215317
+ Fe.length === 0 && (Fe = Re.instructions.flatMap((Ke) => Ke.keys).map((Ke) => Ke.isWritable ? Ke.pubkey : null).filter((Ke) => Ke !== null));
215318
+ const We = await determineComputeBudget(e, Re, Fe, Qe, qe, Je);
215319
+ Re.add(...We);
215294
215320
  }
215295
- async function determineComputeBudget(e, Re, Fe = [], Qe = DEFAULT_FEE_PERCENTILE, qe = 0) {
215296
- var Ke;
215297
- let Je = 25e4, We = 1;
215321
+ async function determineComputeBudget(e, Re, Fe = [], Qe = DEFAULT_FEE_PERCENTILE, qe = 0, Je = !1) {
215322
+ var Xe;
215323
+ let We = 25e4, Ke = 1;
215298
215324
  try {
215299
- const Xe = await e.simulateTransaction(Re);
215300
- Xe.value.err && console.error(`Error simulating Solana transaction: ${Xe.value.err}`), (Ke = Xe == null ? void 0 : Xe.value) != null && Ke.unitsConsumed && (Je = Math.round(Xe.value.unitsConsumed * 1.2));
215301
- } catch (Xe) {
215302
- console.error(`Failed to calculate compute unit limit for Solana transaction: ${Xe}`);
215325
+ const Ze = await e.simulateTransaction(Re);
215326
+ if (Ze.value.err && (console.error(`Error simulating Solana transaction: ${Ze.value.err}`), Je))
215327
+ throw new Error(`Error simulating Solana transaction: ${Ze.value.err}`);
215328
+ (Xe = Ze == null ? void 0 : Ze.value) != null && Xe.unitsConsumed && (We = Math.round(Ze.value.unitsConsumed * 1.2));
215329
+ } catch (Ze) {
215330
+ console.error(`Failed to calculate compute unit limit for Solana transaction: ${Ze}`);
215303
215331
  }
215304
215332
  try {
215305
- We = await determinePriorityFee(e, Fe, Qe);
215306
- } catch (Xe) {
215307
- console.error(`Failed to calculate compute unit price for Solana transaction: ${Xe}`);
215333
+ Ke = await determinePriorityFee(e, Fe, Qe);
215334
+ } catch (Ze) {
215335
+ console.error(`Failed to calculate compute unit price for Solana transaction: ${Ze}`);
215308
215336
  }
215309
- return We = Math.max(We, qe), console.info(`Setting Solana compute unit budget to ${Je} units`), console.info(`Setting Solana compute unit price to ${We} microLamports`), [
215337
+ return Ke = Math.max(Ke, qe), console.info(`Setting Solana compute unit budget to ${We} units`), console.info(`Setting Solana compute unit price to ${Ke} microLamports`), [
215310
215338
  ComputeBudgetProgram.setComputeUnitLimit({
215311
- units: Je
215339
+ units: We
215312
215340
  }),
215313
215341
  ComputeBudgetProgram.setComputeUnitPrice({
215314
- microLamports: We
215342
+ microLamports: Ke
215315
215343
  })
215316
215344
  ];
215317
215345
  }
@@ -295980,11 +296008,13 @@ async function postVaaWithRetry(e, Re, Fe, Qe, qe, Je, We) {
295980
296008
  console.error("Failed to check if VAA has already been posted:", Qn);
295981
296009
  }
295982
296010
  const { unsignedTransactions: Ke, signers: Xe } = await createPostSignedVaaTransactions(e, Fe, Qe, qe, We), Ze = Ke.pop();
296011
+ if (!Ze)
296012
+ throw new Error("No postVaaTransaction");
295983
296013
  Ze.feePayer = new PublicKey$4(Qe);
295984
296014
  for (const Qn of Ke)
295985
- Qn.feePayer = new PublicKey$4(Qe), await addComputeBudget(e, Qn);
295986
- const ht = await sendAndConfirmTransactionsWithRetry(e, modifySignTransaction(Re, ...Xe), Qe.toString(), Ke, Je);
295987
- return await addComputeBudget(e, Ze), ht.push(...await sendAndConfirmTransactionsWithRetry(e, Re, Qe.toString(), [Ze], Je)), ht;
296015
+ Qn.feePayer = new PublicKey$4(Qe), await addComputeBudget(e, Qn, [], 0.75, 1, !0);
296016
+ const ht = await sendAndConfirmTransactionsWithRetry(e, modifySignTransaction(Re, ...Xe), Qe.toString(), Ke, Je, We);
296017
+ return await addComputeBudget(e, Ze, [], 0.75, 1, !0), ht.push(...await sendAndConfirmTransactionsWithRetry(e, Re, Qe.toString(), [Ze], Je, We)), ht;
295988
296018
  }
295989
296019
  async function createPostSignedVaaTransactions(e, Re, Fe, Qe, qe) {
295990
296020
  const Je = utils$R.isBytes(Qe) ? parseVaa$1(Qe) : Qe, We = Keypair.generate(), Ke = await createVerifySignaturesInstructions(e, Re, Fe, Je, We.publicKey, qe), Xe = [];
@@ -299864,7 +299894,7 @@ const sortTokens = (e, Re) => {
299864
299894
  return e;
299865
299895
  }
299866
299896
  };
299867
- var define_import_meta_env_default$3 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.12-beta.1-development" };
299897
+ var define_import_meta_env_default$3 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.12" };
299868
299898
  const {
299869
299899
  REACT_APP_ETHEREUM_RPC,
299870
299900
  REACT_APP_SOLANA_RPC,
@@ -303307,7 +303337,7 @@ const {
303307
303337
  }
303308
303338
  }
303309
303339
  };
303310
- var define_import_meta_env_default$2 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.12-beta.1-development" };
303340
+ var define_import_meta_env_default$2 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.12" };
303311
303341
  const {
303312
303342
  REACT_APP_GOERLI_RPC,
303313
303343
  REACT_APP_SEPOLIA_RPC,
@@ -305724,7 +305754,7 @@ const {
305724
305754
  }
305725
305755
  }
305726
305756
  };
305727
- var define_import_meta_env_default$1 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.12-beta.1-development" };
305757
+ var define_import_meta_env_default$1 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.12" };
305728
305758
  const {
305729
305759
  REACT_APP_ETHEREUM_DEVNET_RPC,
305730
305760
  REACT_APP_OSMOSIS_DEVNET_RPC,
@@ -305844,7 +305874,7 @@ const {
305844
305874
  index: 0,
305845
305875
  keys: ["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
305846
305876
  }
305847
- }, WORMSCAN = "https://wormholescan.io/#/", AVAILABLE_MARKETS_URL = "https://portalbridge.com/docs/faqs/liquid-markets/", CONNECT_VERSION = "0.3.12-beta.1-development";
305877
+ }, WORMSCAN = "https://wormholescan.io/#/", AVAILABLE_MARKETS_URL = "https://portalbridge.com/docs/faqs/liquid-markets/", CONNECT_VERSION = "0.3.12";
305848
305878
  function wrapEventHandler(e) {
305849
305879
  return function(Re) {
305850
305880
  var Qe;
@@ -319982,7 +320012,7 @@ class SDKConverter {
319982
320012
  );
319983
320013
  }
319984
320014
  }
319985
- var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.12-beta.1-development" };
320015
+ var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.12" };
319986
320016
  function buildConfig(e) {
319987
320017
  var Ze, ht;
319988
320018
  const Re = ((e == null ? void 0 : e.network) || (e == null ? void 0 : e.env) || // TODO remove; deprecated
@@ -320456,7 +320486,7 @@ const walletConnection = {
320456
320486
  if (Fe.getNetworkInfo().chainId !== e) {
320457
320487
  if (Qe.context === Context.ETH)
320458
320488
  try {
320459
- const { switchChain: Je } = await import("./evm-C85V7Qp8.mjs").then((We) => We.f);
320489
+ const { switchChain: Je } = await import("./evm-ElW4TkgJ.mjs").then((We) => We.f);
320460
320490
  await Je(Fe, e);
320461
320491
  } catch (Je) {
320462
320492
  if (Je instanceof NotSupported)
@@ -320464,7 +320494,7 @@ const walletConnection = {
320464
320494
  throw Je;
320465
320495
  }
320466
320496
  if (Qe.context === Context.COSMOS) {
320467
- const { switchChain: Je } = await import("./cosmos-Bb6izxWU.mjs");
320497
+ const { switchChain: Je } = await import("./cosmos-DdMsP3Xb.mjs");
320468
320498
  await Je(Fe, e);
320469
320499
  }
320470
320500
  return Fe.getAddress();
@@ -320473,7 +320503,7 @@ const walletConnection = {
320473
320503
  const Re = walletConnection[e];
320474
320504
  Re && await Re.disconnect();
320475
320505
  }, watchAsset = async (e, Re) => {
320476
- const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-C85V7Qp8.mjs").then((qe) => qe.f);
320506
+ const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-ElW4TkgJ.mjs").then((qe) => qe.f);
320477
320507
  await Qe(e, Fe);
320478
320508
  }, signAndSendTransaction = async (e, Re, Fe, Qe = {}) => {
320479
320509
  const qe = config$1.chains[e], Je = walletConnection[Fe];
@@ -320483,23 +320513,23 @@ const walletConnection = {
320483
320513
  case Context.ETH:
320484
320514
  return Re.transactionHash;
320485
320515
  case Context.SOLANA: {
320486
- const { signAndSendTransaction: We } = await import("./solana-BXs4RXqb.mjs");
320516
+ const { signAndSendTransaction: We } = await import("./solana-B0T5-GTG.mjs");
320487
320517
  return (await We(Re, Je, Qe)).id;
320488
320518
  }
320489
320519
  case Context.SUI: {
320490
- const { signAndSendTransaction: We } = await import("./sui-CXnVs7fm.mjs");
320520
+ const { signAndSendTransaction: We } = await import("./sui-XxWiyiIK.mjs");
320491
320521
  return (await We(Re, Je)).id;
320492
320522
  }
320493
320523
  case Context.APTOS: {
320494
- const { signAndSendTransaction: We } = await import("./aptos-VkkWW0aR.mjs");
320524
+ const { signAndSendTransaction: We } = await import("./aptos-Bv3nDvax.mjs");
320495
320525
  return (await We(Re, Je)).id;
320496
320526
  }
320497
320527
  case Context.SEI: {
320498
- const { signAndSendTransaction: We } = await import("./sei-Ax_7QSLh.mjs");
320528
+ const { signAndSendTransaction: We } = await import("./sei-B6kA_xto.mjs");
320499
320529
  return (await We(Re, Je)).id;
320500
320530
  }
320501
320531
  case Context.COSMOS: {
320502
- const { signAndSendTransaction: We } = await import("./cosmos-Bb6izxWU.mjs");
320532
+ const { signAndSendTransaction: We } = await import("./cosmos-DdMsP3Xb.mjs");
320503
320533
  return (await We(Re, Je)).id;
320504
320534
  }
320505
320535
  default:
@@ -320532,39 +320562,39 @@ const walletConnection = {
320532
320562
  if (e === void 0)
320533
320563
  return [];
320534
320564
  if (e.context === Context.ETH) {
320535
- const { wallets: Re } = await import("./evm-C85V7Qp8.mjs").then((Fe) => Fe.f);
320565
+ const { wallets: Re } = await import("./evm-ElW4TkgJ.mjs").then((Fe) => Fe.f);
320536
320566
  return Object.values(mapWallets(Re, Context.ETH));
320537
320567
  } else if (e.context === Context.SOLANA) {
320538
- const { fetchOptions: Re } = await import("./solana-BXs4RXqb.mjs"), Fe = Re();
320568
+ const { fetchOptions: Re } = await import("./solana-B0T5-GTG.mjs"), Fe = Re();
320539
320569
  return Object.values(mapWallets(Fe, Context.SOLANA));
320540
320570
  } else if (e.context === Context.SUI) {
320541
- const Fe = await (await import("./sui-CXnVs7fm.mjs")).fetchOptions();
320571
+ const Fe = await (await import("./sui-XxWiyiIK.mjs")).fetchOptions();
320542
320572
  return Object.values(mapWallets(Fe, Context.SUI));
320543
320573
  } else if (e.context === Context.APTOS) {
320544
- const Fe = (await import("./aptos-VkkWW0aR.mjs")).fetchOptions();
320574
+ const Fe = (await import("./aptos-Bv3nDvax.mjs")).fetchOptions();
320545
320575
  return Object.values(mapWallets(Fe, Context.APTOS));
320546
320576
  } else if (e.context === Context.SEI) {
320547
- const Fe = await (await import("./sei-Ax_7QSLh.mjs")).fetchOptions();
320577
+ const Fe = await (await import("./sei-B6kA_xto.mjs")).fetchOptions();
320548
320578
  return Object.values(mapWallets(Fe, Context.SEI));
320549
320579
  } else if (e.context === Context.COSMOS)
320550
320580
  if (e.id === CHAIN_ID_EVMOS$1) {
320551
320581
  const {
320552
320582
  wallets: { cosmosEvm: Re }
320553
- } = await import("./cosmos-Bb6izxWU.mjs");
320583
+ } = await import("./cosmos-DdMsP3Xb.mjs");
320554
320584
  return Object.values(
320555
320585
  mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
320556
320586
  );
320557
320587
  } else if (e.id === CHAIN_ID_INJECTIVE$1) {
320558
320588
  const {
320559
320589
  wallets: { cosmosEvm: Re }
320560
- } = await import("./cosmos-Bb6izxWU.mjs");
320590
+ } = await import("./cosmos-DdMsP3Xb.mjs");
320561
320591
  return Object.values(
320562
320592
  mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
320563
320593
  );
320564
320594
  } else {
320565
320595
  const {
320566
320596
  wallets: { cosmos: Re }
320567
- } = await import("./cosmos-Bb6izxWU.mjs");
320597
+ } = await import("./cosmos-DdMsP3Xb.mjs");
320568
320598
  return Object.values(mapWallets(Re, Context.COSMOS));
320569
320599
  }
320570
320600
  return [];
@@ -339241,7 +339271,7 @@ const getMessageSolana = async (e) => {
339241
339271
  relayerFee: Zn || "",
339242
339272
  relayingType: Zn ? NttRelayingType.Special : NttRelayingType.Manual
339243
339273
  };
339244
- }, evm = async () => (await import("./evm-DkigQrlE.mjs").then((e) => e.f)).default, solana = async () => (await import("./solana-C-laU2n9.mjs").then((e) => e.s)).default, aptos = async () => (await import("./aptos-DpLX6gJH.mjs").then((e) => e.e)).default, sui = async () => (await import("./sui-COz8WbyV.mjs").then((e) => e.s)).default, cosmwasm = async () => (await import("./cosmwasm-DcZ_Pytj.mjs").then((e) => e.a3)).default, algorand = async () => (await import("./algorand-D1Mkmiy4.mjs").then((e) => e.b)).default;
339274
+ }, evm = async () => (await import("./evm--Jtx_TN_.mjs").then((e) => e.f)).default, solana = async () => (await import("./solana-BKu7ZEyd.mjs").then((e) => e.s)).default, aptos = async () => (await import("./aptos-D8gbIchx.mjs").then((e) => e.e)).default, sui = async () => (await import("./sui-D5Lc_xEX.mjs").then((e) => e.s)).default, cosmwasm = async () => (await import("./cosmwasm-CVl5FMK8.mjs").then((e) => e.a3)).default, algorand = async () => (await import("./algorand-DsP9aKWl.mjs").then((e) => e.b)).default;
339245
339275
  class SDKv2Route extends RouteAbstract {
339246
339276
  constructor(Fe, Qe, qe) {
339247
339277
  super();
@@ -1 +1 @@
1
- "use strict";var y=Object.defineProperty;var g=(d,e,t)=>e in d?y(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var i=(d,e,t)=>(g(d,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-nHUtFn3B.js"),o=require("./aptos-DOeN9kqv.js"),f=require("./chain-Fd-WQzeJ.js");class k{constructor(e,t,s,n,a=!1){i(this,"transaction");i(this,"network");i(this,"chain");i(this,"description");i(this,"parallelizable");this.transaction=e,this.network=t,this.chain=s,this.description=n,this.parallelizable=a}}const w=[{name:"tokenBridgeAddress",...r.universalAddressItem},{name:"chain",...r.chainItem()},{name:"domainSeparator",binary:"bytes",custom:r.bytes.encode(o.APTOS_SEPARATOR),omit:!0},{name:"tokenId",...r.universalAddressItem},{name:"domainSeparator",binary:"bytes",custom:new Uint8Array([255]),omit:!0}],m=d=>r.serializeLayout(w,d);class c{constructor(e,t,s,n){i(this,"network");i(this,"chain");i(this,"connection");i(this,"contracts");i(this,"chainId");i(this,"tokenBridgeAddress");this.network=e,this.chain=t,this.connection=s,this.contracts=n,this.chainId=r.toChainId(t);const a=n.tokenBridge;if(!a)throw new Error(`TokenBridge contract Address for chain ${t} not found`);this.tokenBridgeAddress=a}static async fromRpc(e,t){const[s,n]=await o.AptosPlatform.chainFromRpc(e),a=t[n];if(a.network!==s)throw new Error("Network mismatch "+a.network+" !== "+s);return new c(s,n,e,a.contracts)}async isWrappedAsset(e){try{return await this.getOriginalAsset(e),!0}catch{return!1}}async getOriginalAsset(e){const t=e.toString().split(o.APTOS_SEPARATOR);let s;if(s=(await this.connection.getAccountResource(t[0],`${this.tokenBridgeAddress}::state::OriginInfo`)).data,!s)throw r.ErrNotWrapped;const n=r.toChain(parseInt(s.token_chain.number)),a=new r.UniversalAddress(s.token_address.external_address);return{chain:n,address:a}}async hasWrappedAsset(e){try{return await this.getWrappedAsset(e),!0}catch{}return!1}async getWrappedAsset(e){const t=await this.getAssetFullyQualifiedType(e);if(!t)throw new Error("Invalid asset address.");return await this.connection.getAccountResource(o.coalesceModuleAddress(t),`${this.tokenBridgeAddress}::state::OriginInfo`),r.toNative(this.chain,t)}async isTransferCompleted(e){const s=(await this.connection.getAccountResource(this.tokenBridgeAddress,`${this.tokenBridgeAddress}::state::State`)).data.consumed_vaas.elems.handle;try{return await this.connection.getTableItem(s,{key_type:"vector<u8>",value_type:"u8",key:`0x${r.dist.Buffer.from(r.keccak_256(e.hash)).toString("hex")}`}),!0}catch{return!1}}async getWrappedNative(){return r.toNative(this.chain,o.APTOS_COIN)}async*createAttestation(e,t){const s={chain:this.chain,address:new o.AptosAddress(e)},n=await this.getAssetFullyQualifiedType(s);if(!n)throw new Error("Invalid asset address.");yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::attest_token::attest_token_entry`,type_arguments:[n],arguments:[]},"Aptos.AttestToken")}async*submitAttestation(e,t){yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::wrapped::create_wrapped_coin_type`,type_arguments:[],arguments:[r.serialize(e)]},"Aptos.CreateWrappedCoinType");const s=await this.getAssetFullyQualifiedType(e.payload.token);if(!s)throw new Error("Invalid asset address.");yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::wrapped::create_wrapped_coin`,type_arguments:[s],arguments:[r.serialize(e)]},"Aptos.CreateWrappedCoin")}async*transfer(e,t,s,n,a){const A=0n,h=0n,l=r.isNative(s)?o.APTOS_COIN:s.toString(),u=t.address.toUniversalAddress().toUint8Array(),p=r.toChainId(t.chain);a?yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::transfer_tokens::transfer_tokens_with_payload_entry`,type_arguments:[l],arguments:[n,p,u,h,a]},"Aptos.TransferTokensWithPayload"):yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::transfer_tokens::transfer_tokens_entry`,type_arguments:[l],arguments:[n,p,u,A,h]},"Aptos.TransferTokens")}async*redeem(e,t,s=!0){const n=t.payload.token.chain===this.chain?await this.getTypeFromExternalAddress(t.payload.token.address.toString()):await this.getAssetFullyQualifiedType(t.payload.token);if(!n)throw new Error("Invalid asset address.");yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::complete_transfer::submit_vaa_and_register_entry`,type_arguments:[n],arguments:[r.serialize(t)]},"Aptos.CompleteTransfer")}async getAssetFullyQualifiedType(e){return e.chain===this.chain?o.isValidAptosType(e.address.toString())?e.address.toString():null:`${c.getForeignAssetAddress(this.chain,this.tokenBridgeAddress,e)}::coin::T`}async getTypeFromExternalAddress(e){try{const t=(await this.connection.getAccountResource(this.tokenBridgeAddress,`${this.tokenBridgeAddress}::state::State`)).data,{handle:s}=t.native_infos,n=await this.connection.getTableItem(s,{key_type:`${this.tokenBridgeAddress}::token_hash::TokenHash`,value_type:"0x1::type_info::TypeInfo",key:{hash:e}});return n?[n.account_address,r.hex.decode(n.module_name),r.hex.decode(n.struct_name)].join(o.APTOS_SEPARATOR):null}catch{return null}}static getForeignAssetAddress(e,t,s){if(r.isNative(s.address))throw new Error("Invalid token address");const n=m({chain:s.chain,tokenBridgeAddress:new o.AptosAddress(t).toUniversalAddress(),tokenId:s.address.toUniversalAddress()});return r.hex.encode(r.sha3_256(n),!0)}createUnsignedTx(e,t,s=!1){return new k(e,this.network,this.chain,t,s)}}f.registerProtocol("Aptos","TokenBridge",c);exports.AptosTokenBridge=c;
1
+ "use strict";var y=Object.defineProperty;var g=(d,e,t)=>e in d?y(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var i=(d,e,t)=>(g(d,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-BzrMFsLZ.js"),o=require("./aptos-3CZnOOfq.js"),f=require("./chain-D5AOvPgB.js");class k{constructor(e,t,s,n,a=!1){i(this,"transaction");i(this,"network");i(this,"chain");i(this,"description");i(this,"parallelizable");this.transaction=e,this.network=t,this.chain=s,this.description=n,this.parallelizable=a}}const w=[{name:"tokenBridgeAddress",...r.universalAddressItem},{name:"chain",...r.chainItem()},{name:"domainSeparator",binary:"bytes",custom:r.bytes.encode(o.APTOS_SEPARATOR),omit:!0},{name:"tokenId",...r.universalAddressItem},{name:"domainSeparator",binary:"bytes",custom:new Uint8Array([255]),omit:!0}],m=d=>r.serializeLayout(w,d);class c{constructor(e,t,s,n){i(this,"network");i(this,"chain");i(this,"connection");i(this,"contracts");i(this,"chainId");i(this,"tokenBridgeAddress");this.network=e,this.chain=t,this.connection=s,this.contracts=n,this.chainId=r.toChainId(t);const a=n.tokenBridge;if(!a)throw new Error(`TokenBridge contract Address for chain ${t} not found`);this.tokenBridgeAddress=a}static async fromRpc(e,t){const[s,n]=await o.AptosPlatform.chainFromRpc(e),a=t[n];if(a.network!==s)throw new Error("Network mismatch "+a.network+" !== "+s);return new c(s,n,e,a.contracts)}async isWrappedAsset(e){try{return await this.getOriginalAsset(e),!0}catch{return!1}}async getOriginalAsset(e){const t=e.toString().split(o.APTOS_SEPARATOR);let s;if(s=(await this.connection.getAccountResource(t[0],`${this.tokenBridgeAddress}::state::OriginInfo`)).data,!s)throw r.ErrNotWrapped;const n=r.toChain(parseInt(s.token_chain.number)),a=new r.UniversalAddress(s.token_address.external_address);return{chain:n,address:a}}async hasWrappedAsset(e){try{return await this.getWrappedAsset(e),!0}catch{}return!1}async getWrappedAsset(e){const t=await this.getAssetFullyQualifiedType(e);if(!t)throw new Error("Invalid asset address.");return await this.connection.getAccountResource(o.coalesceModuleAddress(t),`${this.tokenBridgeAddress}::state::OriginInfo`),r.toNative(this.chain,t)}async isTransferCompleted(e){const s=(await this.connection.getAccountResource(this.tokenBridgeAddress,`${this.tokenBridgeAddress}::state::State`)).data.consumed_vaas.elems.handle;try{return await this.connection.getTableItem(s,{key_type:"vector<u8>",value_type:"u8",key:`0x${r.dist.Buffer.from(r.keccak_256(e.hash)).toString("hex")}`}),!0}catch{return!1}}async getWrappedNative(){return r.toNative(this.chain,o.APTOS_COIN)}async*createAttestation(e,t){const s={chain:this.chain,address:new o.AptosAddress(e)},n=await this.getAssetFullyQualifiedType(s);if(!n)throw new Error("Invalid asset address.");yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::attest_token::attest_token_entry`,type_arguments:[n],arguments:[]},"Aptos.AttestToken")}async*submitAttestation(e,t){yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::wrapped::create_wrapped_coin_type`,type_arguments:[],arguments:[r.serialize(e)]},"Aptos.CreateWrappedCoinType");const s=await this.getAssetFullyQualifiedType(e.payload.token);if(!s)throw new Error("Invalid asset address.");yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::wrapped::create_wrapped_coin`,type_arguments:[s],arguments:[r.serialize(e)]},"Aptos.CreateWrappedCoin")}async*transfer(e,t,s,n,a){const A=0n,h=0n,l=r.isNative(s)?o.APTOS_COIN:s.toString(),u=t.address.toUniversalAddress().toUint8Array(),p=r.toChainId(t.chain);a?yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::transfer_tokens::transfer_tokens_with_payload_entry`,type_arguments:[l],arguments:[n,p,u,h,a]},"Aptos.TransferTokensWithPayload"):yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::transfer_tokens::transfer_tokens_entry`,type_arguments:[l],arguments:[n,p,u,A,h]},"Aptos.TransferTokens")}async*redeem(e,t,s=!0){const n=t.payload.token.chain===this.chain?await this.getTypeFromExternalAddress(t.payload.token.address.toString()):await this.getAssetFullyQualifiedType(t.payload.token);if(!n)throw new Error("Invalid asset address.");yield this.createUnsignedTx({function:`${this.tokenBridgeAddress}::complete_transfer::submit_vaa_and_register_entry`,type_arguments:[n],arguments:[r.serialize(t)]},"Aptos.CompleteTransfer")}async getAssetFullyQualifiedType(e){return e.chain===this.chain?o.isValidAptosType(e.address.toString())?e.address.toString():null:`${c.getForeignAssetAddress(this.chain,this.tokenBridgeAddress,e)}::coin::T`}async getTypeFromExternalAddress(e){try{const t=(await this.connection.getAccountResource(this.tokenBridgeAddress,`${this.tokenBridgeAddress}::state::State`)).data,{handle:s}=t.native_infos,n=await this.connection.getTableItem(s,{key_type:`${this.tokenBridgeAddress}::token_hash::TokenHash`,value_type:"0x1::type_info::TypeInfo",key:{hash:e}});return n?[n.account_address,r.hex.decode(n.module_name),r.hex.decode(n.struct_name)].join(o.APTOS_SEPARATOR):null}catch{return null}}static getForeignAssetAddress(e,t,s){if(r.isNative(s.address))throw new Error("Invalid token address");const n=m({chain:s.chain,tokenBridgeAddress:new o.AptosAddress(t).toUniversalAddress(),tokenId:s.address.toUniversalAddress()});return r.hex.encode(r.sha3_256(n),!0)}createUnsignedTx(e,t,s=!1){return new k(e,this.network,this.chain,t,s)}}f.registerProtocol("Aptos","TokenBridge",c);exports.AptosTokenBridge=c;
@@ -1,11 +1,11 @@
1
1
  var lr = Object.defineProperty;
2
2
  var fr = (t, e, n) => e in t ? lr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var B = (t, e, n) => (fr(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- import { d as L, g as lt, a as hr, n as gr, b as Ie, c as mr, e as be, f as Ae, h as pr, i as yr, B as wr, j as ft, k as Sr, S as kr, l as br, m as Ar } from "./index-BmBTbsnN.mjs";
5
- import { n as I, aH as V, aI as g, aJ as S, aK as j, aL as P, aM as fe, aN as Re, aO as ne, aP as Bn, aQ as re, a2 as X, aF as O, aG as Xt, aR as Xe, aS as Mr, aT as Tr, aU as Br, aV as Cr, aW as Ir, c9 as ce, d as A, ca as ke, cb as W, cc as Qt, cd as vr, bp as x, aC as Er, au as Cn, ce as In, c5 as kt, c6 as Pr, az as xe, bO as Mt, b5 as Rr } from "./index-qOfoHBwU.mjs";
4
+ import { d as L, g as lt, a as hr, n as gr, b as Ie, c as mr, e as be, f as Ae, h as pr, i as yr, B as wr, j as ft, k as Sr, S as kr, l as br, m as Ar } from "./index-ZwcNorsB.mjs";
5
+ import { n as I, aH as V, aI as g, aJ as S, aK as j, aL as P, aM as fe, aN as Re, aO as ne, aP as Bn, aQ as re, a2 as X, aF as O, aG as Xt, aR as Xe, aS as Mr, aT as Tr, aU as Br, aV as Cr, aW as Ir, c9 as ce, d as A, ca as ke, cb as W, cc as Qt, cd as vr, bp as x, aC as Er, au as Cn, ce as In, c5 as kt, c6 as Pr, az as xe, bO as Mt, b5 as Rr } from "./index-CeFWxpd6.mjs";
6
6
  import { c as xr } from "./index-DpFNxVts.mjs";
7
- import { S as qe, a as q, b as vn, _ as En } from "./solana-C-laU2n9.mjs";
8
- import { r as Pn } from "./chain-DfczCeEf.mjs";
7
+ import { S as qe, a as q, b as vn, _ as En } from "./solana-BKu7ZEyd.mjs";
8
+ import { r as Pn } from "./chain-DKCnEQGr.mjs";
9
9
  class Wr extends TypeError {
10
10
  constructor(e, n) {
11
11
  let r;
@@ -1,9 +1,9 @@
1
1
  var Nt = Object.defineProperty;
2
2
  var Dt = (s, e, t) => e in s ? Nt(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var Z = (s, e, t) => (Dt(s, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { n as b, aH as C, aI as p, aJ as y, aK as U, aL as T, aM as X, aN as ae, aO as H, aP as st, aQ as j, a2 as W, aF as Ae, aG as qe, aR as he, aS as Wt, aT as zt, aU as Lt, aV as Ut, aW as Ft, cb as Ve, c9 as qt, ca as Vt, ce as rt, d as se, cj as He, c1 as at, at as Ht, c2 as je, c0 as jt, c3 as Ge } from "./index-qOfoHBwU.mjs";
5
- import { r as Gt } from "./chain-DfczCeEf.mjs";
6
- import { a as xe, S as $t, b as Jt, _ as Xt } from "./solana-C-laU2n9.mjs";
4
+ import { n as b, aH as C, aI as p, aJ as y, aK as U, aL as T, aM as X, aN as ae, aO as H, aP as st, aQ as j, a2 as W, aF as Ae, aG as qe, aR as he, aS as Wt, aT as zt, aU as Lt, aV as Ut, aW as Ft, cb as Ve, c9 as qt, ca as Vt, ce as rt, d as se, cj as He, c1 as at, at as Ht, c2 as je, c0 as jt, c3 as Ge } from "./index-CeFWxpd6.mjs";
5
+ import { r as Gt } from "./chain-DKCnEQGr.mjs";
6
+ import { a as xe, S as $t, b as Jt, _ as Xt } from "./solana-BKu7ZEyd.mjs";
7
7
  import { c as it } from "./index-DpFNxVts.mjs";
8
8
  class Yt extends TypeError {
9
9
  constructor(e, t) {
@@ -1,4 +1,4 @@
1
- import { o as P, d as Z, q as Ye, bV as Ze, as as it } from "./index-qOfoHBwU.mjs";
1
+ import { o as P, d as Z, q as Ye, bV as Ze, as as it } from "./index-CeFWxpd6.mjs";
2
2
  var Je = {}, Qe = { exports: {} }, je = {};
3
3
  (function(o) {
4
4
  o.fetch = n(P.fetch) && n(P.ReadableStream), o.writableStream = n(P.WritableStream), o.abortController = n(P.AbortController);
@@ -1,7 +1,7 @@
1
1
  const fe = Symbol(), ee = Object.getPrototypeOf, G = /* @__PURE__ */ new WeakMap(), me = (e) => e && (G.has(e) ? G.get(e) : ee(e) === Object.prototype || ee(e) === Array.prototype), ge = (e) => me(e) && e[fe] || null, te = (e, t = !0) => {
2
2
  G.set(e, t);
3
3
  };
4
- var z = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.12-beta.1-development" };
4
+ var z = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1, REACT_APP_CONNECT_VERSION: "0.3.12" };
5
5
  const q = (e) => typeof e == "object" && e !== null, A = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakSet(), he = (e = Object.is, t = (n, h) => new Proxy(n, h), s = (n) => q(n) && !x.has(n) && (Array.isArray(n) || !(Symbol.iterator in n)) && !(n instanceof WeakMap) && !(n instanceof WeakSet) && !(n instanceof Error) && !(n instanceof Number) && !(n instanceof Date) && !(n instanceof String) && !(n instanceof RegExp) && !(n instanceof ArrayBuffer), r = (n) => {
6
6
  switch (n.status) {
7
7
  case "fulfilled":
@@ -392,7 +392,7 @@ class ke {
392
392
  }
393
393
  async initUi() {
394
394
  if (typeof window < "u") {
395
- await import("./index-DcwUbEoN.mjs");
395
+ await import("./index-e2BD9BAO.mjs");
396
396
  const t = document.createElement("wcm-modal");
397
397
  document.body.insertAdjacentElement("beforeend", t), w.setIsUiLoaded(!0);
398
398
  }
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("./index-nHUtFn3B.js"),iu=require("./dijkstra-CtFxn7S9.js"),P=require("./browser-BUrzVnDe.js"),L=require("./index-Dxdp0jG-.js");let nu=class extends P.r{constructor(e){super(e),this.events=new H.eventsExports.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async request(e,r){return this.requestStrict(P.formatJsonRpcRequest(e.method,e.params||[],e.id||P.getBigIntRpcId().toString()),r)}async requestStrict(e,r){return new Promise(async(i,n)=>{if(!this.connection.connected)try{await this.open()}catch(s){n(s)}this.events.on(`${e.id}`,s=>{P.isJsonRpcError(s)?n(s.error):i(s.result)});try{await this.connection.send(e,r)}catch(s){n(s)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),P.isJsonRpcResponse(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}};var su=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],i=0;i<t.rangeCount;i++)r.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(n){t.addRange(n)}),e&&e.focus()}},ou=su,So={"text/plain":"Text","text/html":"Url",default:"Text"},au="Copy to clipboard: #{key}, Enter";function cu(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function hu(t,e){var r,i,n,s,o,c,h=!1;e||(e={}),r=e.debug||!1;try{n=ou(),s=document.createRange(),o=document.getSelection(),c=document.createElement("span"),c.textContent=t,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(d){if(d.stopPropagation(),e.format)if(d.preventDefault(),typeof d.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=So[e.format]||So.default;window.clipboardData.setData(m,t)}else d.clipboardData.clearData(),d.clipboardData.setData(e.format,t);e.onCopy&&(d.preventDefault(),e.onCopy(d.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),o.addRange(s);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");h=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),h=!0}catch(m){r&&console.error("unable to copy using clipboardData: ",m),r&&console.error("falling back to prompt"),i=cu("message"in e?e.message:au),window.prompt(i,t)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(s):o.removeAllRanges()),c&&document.body.removeChild(c),n()}return h}var lu=hu,uu={}.toString,zs=Array.isArray||function(t){return uu.call(t)=="[object Array]"},js={},he={};Object.defineProperty(he,"__esModule",{value:!0});var yc=he.getLocalStorage=Cc=he.getLocalStorageOrThrow=xc=he.getCrypto=Mc=he.getCryptoOrThrow=Ic=he.getLocation=Sc=he.getLocationOrThrow=Ec=he.getNavigator=Ac=he.getNavigatorOrThrow=_c=he.getDocument=bc=he.getDocumentOrThrow=wc=he.getFromWindowOrThrow=vc=he.getFromWindow=void 0;function kr(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}var vc=he.getFromWindow=kr;function ri(t){const e=kr(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}var wc=he.getFromWindowOrThrow=ri;function fu(){return ri("document")}var bc=he.getDocumentOrThrow=fu;function du(){return kr("document")}var _c=he.getDocument=du;function pu(){return ri("navigator")}var Ac=he.getNavigatorOrThrow=pu;function gu(){return kr("navigator")}var Ec=he.getNavigator=gu;function mu(){return ri("location")}var Sc=he.getLocationOrThrow=mu;function yu(){return kr("location")}var Ic=he.getLocation=yu;function vu(){return ri("crypto")}var Mc=he.getCryptoOrThrow=vu;function wu(){return kr("crypto")}var xc=he.getCrypto=wu;function bu(){return ri("localStorage")}var Cc=he.getLocalStorageOrThrow=bu;function _u(){return kr("localStorage")}yc=he.getLocalStorage=_u;Object.defineProperty(js,"__esModule",{value:!0});var Nc=js.getWindowMetadata=void 0;const Io=he;function Au(){let t,e;try{t=Io.getDocumentOrThrow(),e=Io.getLocationOrThrow()}catch{return null}function r(){const m=t.getElementsByTagName("link"),b=[];for(let A=0;A<m.length;A++){const E=m[A],x=E.getAttribute("rel");if(x&&x.toLowerCase().indexOf("icon")>-1){const I=E.getAttribute("href");if(I)if(I.toLowerCase().indexOf("https:")===-1&&I.toLowerCase().indexOf("http:")===-1&&I.indexOf("//")!==0){let C=e.protocol+"//"+e.host;if(I.indexOf("/")===0)C+=I;else{const R=e.pathname.split("/");R.pop();const T=R.join("/");C+=T+"/"+I}b.push(C)}else if(I.indexOf("//")===0){const C=e.protocol+I;b.push(C)}else b.push(I)}}return b}function i(...m){const b=t.getElementsByTagName("meta");for(let A=0;A<b.length;A++){const E=b[A],x=["itemprop","property","name"].map(I=>E.getAttribute(I)).filter(I=>I?m.includes(I):!1);if(x.length&&x){const I=E.getAttribute("content");if(I)return I}}return""}function n(){let m=i("name","og:site_name","og:title","twitter:title");return m||(m=t.title),m}function s(){return i("description","og:description","twitter:description","keywords")}const o=n(),c=s(),h=e.origin,u=r();return{description:c,url:h,icons:u,name:o}}Nc=js.getWindowMetadata=Au;var Eu=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var i=Array(t),n=0,e=0;e<r;e++)for(var s=arguments[e],o=0,c=s.length;o<c;o++,n++)i[n]=s[o];return i},Su=function(){function t(e,r,i){this.name=e,this.version=r,this.os=i,this.type="browser"}return t}(),Iu=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=H.dist.process.platform}return t}(),Mu=function(){function t(e,r,i,n){this.name=e,this.version=r,this.os=i,this.bot=n,this.type="bot-device"}return t}(),xu=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),Cu=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),Nu=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Ru=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Mo=3,Pu=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",Nu]],xo=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Tu(t){return t?Co(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Cu:typeof navigator<"u"?Co(navigator.userAgent):ku()}function Ou(t){return t!==""&&Pu.reduce(function(e,r){var i=r[0],n=r[1];if(e)return e;var s=n.exec(t);return!!s&&[i,s]},!1)}function Co(t){var e=Ou(t);if(!e)return null;var r=e[0],i=e[1];if(r==="searchbot")return new xu;var n=i[1]&&i[1].split(/[._]/).slice(0,3);n?n.length<Mo&&(n=Eu(n,Fu(Mo-n.length))):n=[];var s=n.join("."),o=Bu(t),c=Ru.exec(t);return c&&c[1]?new Mu(r,s,o,c[1]):new Su(r,s,o)}function Bu(t){for(var e=0,r=xo.length;e<r;e++){var i=xo[e],n=i[0],s=i[1],o=s.exec(t);if(o)return n}return null}function ku(){var t=typeof H.dist.process<"u"&&H.dist.process.version;return t?new Iu(H.dist.process.version.slice(1)):null}function Fu(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}function Ks(t){return Tu(t)}function gn(){const t=Ks();return t&&t.os?t.os:void 0}function Rc(){const t=gn();return t?t.toLowerCase().includes("android"):!1}function Pc(){const t=gn();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Du(){return gn()?Rc()||Pc():!1}function Tc(){const t=Ks();return t&&t.name?t.name.toLowerCase()==="node":!1}function qu(){return!Tc()&&!!Oc()}const Lu=vc,Uu=wc,$u=bc,zu=_c,ju=Ac,Oc=Ec,Ku=Sc,Vu=Ic,Hu=Mc,Wu=xc,Ju=Cc,mn=yc;function Qu(){return Nc()}function Gu(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch{return t}}function Yu(t){return typeof t=="string"?t:JSON.stringify(t)}const Bc=Gu,kc=Yu;function Fc(t,e){const r=kc(e),i=mn();i&&i.setItem(t,r)}function Xu(t){let e=null,r=null;const i=mn();return i&&(r=i.getItem(t)),e=r&&Bc(r),e}function Zu(t){const e=mn();e&&e.removeItem(t)}const Dc="WALLETCONNECT_DEEPLINK_CHOICE";function ef(t,e){const r=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${r}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${r}`:""}function tf(t){const e=t.href.split("?")[0];Fc(Dc,Object.assign(Object.assign({},t),{href:e}))}function qc(t,e){return t.filter(r=>r.name.toLowerCase().includes(e.toLowerCase()))[0]}function rf(t,e){let r=t;return e&&(r=e.map(i=>qc(t,i)).filter(Boolean)),r}const Lc="https://registry.walletconnect.com";function nf(){return Lc+"/api/v2/wallets"}function sf(){return Lc+"/api/v2/dapps"}function Uc(t,e="mobile"){var r;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(r=t.image_url.sm)!==null&&r!==void 0?r:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function of(t,e="mobile"){return Object.values(t).filter(r=>!!r[e].universal||!!r[e].native).map(r=>Uc(r,e))}const af=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:Ks,detectOS:gn,formatIOSMobile:ef,formatMobileRegistry:of,formatMobileRegistryEntry:Uc,getClientMeta:Qu,getCrypto:Wu,getCryptoOrThrow:Hu,getDappRegistryUrl:sf,getDocument:zu,getDocumentOrThrow:$u,getFromWindow:Lu,getFromWindowOrThrow:Uu,getLocal:Xu,getLocalStorage:mn,getLocalStorageOrThrow:Ju,getLocation:Vu,getLocationOrThrow:Ku,getMobileLinkRegistry:rf,getMobileRegistryEntry:qc,getNavigator:Oc,getNavigatorOrThrow:ju,getWalletRegistryUrl:nf,isAndroid:Rc,isBrowser:qu,isIOS:Pc,isMobile:Du,isNode:Tc,mobileLinkChoiceKey:Dc,removeLocal:Zu,safeJsonParse:Bc,safeJsonStringify:kc,saveMobileLinkInfo:tf,setLocal:Fc},Symbol.toStringTag,{value:"Module"})),cf=H.getAugmentedNamespace(af);var Pi={},hf=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},$c={},fr={},lf=zs;function uf(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42}catch{return!1}}ne.TYPED_ARRAY_SUPPORT=uf();var No=ne.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function ne(t,e,r){return!ne.TYPED_ARRAY_SUPPORT&&!(this instanceof ne)?new ne(t,e,r):typeof t=="number"?zc(this,t):vf(this,t,e,r)}ne.TYPED_ARRAY_SUPPORT&&(ne.prototype.__proto__=Uint8Array.prototype,ne.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&ne[Symbol.species]===ne&&Object.defineProperty(ne,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function Vs(t){if(t>=No)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+No.toString(16)+" bytes");return t|0}function ff(t){return t!==t}function Jr(t,e){var r;return ne.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=ne.prototype):(r=t,r===null&&(r=new ne(e)),r.length=e),r}function zc(t,e){var r=Jr(t,e<0?0:Vs(e)|0);if(!ne.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)r[i]=0;return r}function df(t,e){var r=Kc(e)|0,i=Jr(t,r),n=i.write(e);return n!==r&&(i=i.slice(0,n)),i}function ws(t,e){for(var r=e.length<0?0:Vs(e.length)|0,i=Jr(t,r),n=0;n<r;n+=1)i[n]=e[n]&255;return i}function pf(t,e,r,i){if(r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");var n;return r===void 0&&i===void 0?n=new Uint8Array(e):i===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,i),ne.TYPED_ARRAY_SUPPORT?n.__proto__=ne.prototype:n=ws(t,n),n}function gf(t,e){if(ne.isBuffer(e)){var r=Vs(e.length)|0,i=Jr(t,r);return i.length===0||e.copy(i,0,0,r),i}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||ff(e.length)?Jr(t,0):ws(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return ws(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function jc(t,e){e=e||1/0;for(var r,i=t.length,n=null,s=[],o=0;o<i;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function Kc(t){if(ne.isBuffer(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;return e===0?0:jc(t).length}function mf(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function yf(t,e,r,i){return mf(jc(e,t.length-r),t,r,i)}function vf(t,e,r,i){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?pf(t,e,r,i):typeof e=="string"?df(t,e):gf(t,e)}ne.prototype.write=function(e,r,i){r===void 0?(i=this.length,r=0):i===void 0&&typeof r=="string"?(i=this.length,r=0):isFinite(r)&&(r=r|0,isFinite(i)?i=i|0:i=void 0);var n=this.length-r;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return yf(this,e,r,i)};ne.prototype.slice=function(e,r){var i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);var n;if(ne.TYPED_ARRAY_SUPPORT)n=this.subarray(e,r),n.__proto__=ne.prototype;else{var s=r-e;n=new ne(s,void 0);for(var o=0;o<s;++o)n[o]=this[o+e]}return n};ne.prototype.copy=function(e,r,i,n){if(i||(i=0),!n&&n!==0&&(n=this.length),r>=e.length&&(r=e.length),r||(r=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-r<n-i&&(n=e.length-r+i);var s=n-i,o;if(this===e&&i<r&&r<n)for(o=s-1;o>=0;--o)e[o+r]=this[o+i];else if(s<1e3||!ne.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+r]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),r);return s};ne.prototype.fill=function(e,r,i){if(typeof e=="string"){if(typeof r=="string"?(r=0,i=this.length):typeof i=="string"&&(i=this.length),e.length===1){var n=e.charCodeAt(0);n<256&&(e=n)}}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<i;++s)this[s]=e;else{var o=ne.isBuffer(e)?e:new ne(e),c=o.length;for(s=0;s<i-r;++s)this[s+r]=o[s%c]}return this};ne.concat=function(e,r){if(!lf(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Jr(null,0);var i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;var n=zc(null,r),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!ne.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n};ne.byteLength=Kc;ne.prototype._isBuffer=!0;ne.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};fr.alloc=function(t){var e=new ne(t);return e.fill(0),e};fr.from=function(t){return new ne(t)};var yt={},Hs,wf=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];yt.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};yt.getSymbolTotalCodewords=function(e){return wf[e]};yt.getBCHDigit=function(t){for(var e=0;t!==0;)e++,t>>>=1;return e};yt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Hs=e};yt.isKanjiModeEnabled=function(){return typeof Hs<"u"};yt.toSJIS=function(e){return Hs(e)};var yn={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(r){if(typeof r!="string")throw new Error("Param is not a string");var i=r.toLowerCase();switch(i){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+r)}}t.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},t.from=function(i,n){if(t.isValid(i))return i;try{return e(i)}catch{return n}}})(yn);function Vc(){this.buffer=[],this.length=0}Vc.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var bf=Vc,Ro=fr;function Ti(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=Ro.alloc(t*t),this.reservedBit=Ro.alloc(t*t)}Ti.prototype.set=function(t,e,r,i){var n=t*this.size+e;this.data[n]=r,i&&(this.reservedBit[n]=!0)};Ti.prototype.get=function(t,e){return this.data[t*this.size+e]};Ti.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Ti.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var _f=Ti,Hc={};(function(t){var e=yt.getSymbolSize;t.getRowColCoords=function(i){if(i===1)return[];for(var n=Math.floor(i/7)+2,s=e(i),o=s===145?26:Math.ceil((s-13)/(2*n-2))*2,c=[s-7],h=1;h<n-1;h++)c[h]=c[h-1]-o;return c.push(6),c.reverse()},t.getPositions=function(i){for(var n=[],s=t.getRowColCoords(i),o=s.length,c=0;c<o;c++)for(var h=0;h<o;h++)c===0&&h===0||c===0&&h===o-1||c===o-1&&h===0||n.push([s[c],s[h]]);return n}})(Hc);var Wc={},Af=yt.getSymbolSize,Po=7;Wc.getPositions=function(e){var r=Af(e);return[[0,0],[r-Po,0],[0,r-Po]]};var Jc={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){for(var s=n.size,o=0,c=0,h=0,u=null,d=null,m=0;m<s;m++){c=h=0,u=d=null;for(var b=0;b<s;b++){var A=n.get(m,b);A===u?c++:(c>=5&&(o+=e.N1+(c-5)),u=A,c=1),A=n.get(b,m),A===d?h++:(h>=5&&(o+=e.N1+(h-5)),d=A,h=1)}c>=5&&(o+=e.N1+(c-5)),h>=5&&(o+=e.N1+(h-5))}return o},t.getPenaltyN2=function(n){for(var s=n.size,o=0,c=0;c<s-1;c++)for(var h=0;h<s-1;h++){var u=n.get(c,h)+n.get(c,h+1)+n.get(c+1,h)+n.get(c+1,h+1);(u===4||u===0)&&o++}return o*e.N2},t.getPenaltyN3=function(n){for(var s=n.size,o=0,c=0,h=0,u=0;u<s;u++){c=h=0;for(var d=0;d<s;d++)c=c<<1&2047|n.get(u,d),d>=10&&(c===1488||c===93)&&o++,h=h<<1&2047|n.get(d,u),d>=10&&(h===1488||h===93)&&o++}return o*e.N3},t.getPenaltyN4=function(n){for(var s=0,o=n.data.length,c=0;c<o;c++)s+=n.data[c];var h=Math.abs(Math.ceil(s*100/o/5)-10);return h*e.N4};function r(i,n,s){switch(i){case t.Patterns.PATTERN000:return(n+s)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return s%3===0;case t.Patterns.PATTERN011:return(n+s)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2===0;case t.Patterns.PATTERN101:return n*s%2+n*s%3===0;case t.Patterns.PATTERN110:return(n*s%2+n*s%3)%2===0;case t.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}t.applyMask=function(n,s){for(var o=s.size,c=0;c<o;c++)for(var h=0;h<o;h++)s.isReserved(h,c)||s.xor(h,c,r(n,h,c))},t.getBestMask=function(n,s){for(var o=Object.keys(t.Patterns).length,c=0,h=1/0,u=0;u<o;u++){s(u),t.applyMask(u,n);var d=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(u,n),d<h&&(h=d,c=u)}return c}})(Jc);var vn={},cr=yn,Ui=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],$i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];vn.getBlocksCount=function(e,r){switch(r){case cr.L:return Ui[(e-1)*4+0];case cr.M:return Ui[(e-1)*4+1];case cr.Q:return Ui[(e-1)*4+2];case cr.H:return Ui[(e-1)*4+3];default:return}};vn.getTotalCodewordsCount=function(e,r){switch(r){case cr.L:return $i[(e-1)*4+0];case cr.M:return $i[(e-1)*4+1];case cr.Q:return $i[(e-1)*4+2];case cr.H:return $i[(e-1)*4+3];default:return}};var Qc={},wn={},Gc=fr,bi=Gc.alloc(512),tn=Gc.alloc(256);(function(){for(var e=1,r=0;r<255;r++)bi[r]=e,tn[e]=r,e<<=1,e&256&&(e^=285);for(r=255;r<512;r++)bi[r]=bi[r-255]})();wn.log=function(e){if(e<1)throw new Error("log("+e+")");return tn[e]};wn.exp=function(e){return bi[e]};wn.mul=function(e,r){return e===0||r===0?0:bi[tn[e]+tn[r]]};(function(t){var e=fr,r=wn;t.mul=function(n,s){for(var o=e.alloc(n.length+s.length-1),c=0;c<n.length;c++)for(var h=0;h<s.length;h++)o[c+h]^=r.mul(n[c],s[h]);return o},t.mod=function(n,s){for(var o=e.from(n);o.length-s.length>=0;){for(var c=o[0],h=0;h<s.length;h++)o[h]^=r.mul(s[h],c);for(var u=0;u<o.length&&o[u]===0;)u++;o=o.slice(u)}return o},t.generateECPolynomial=function(n){for(var s=e.from([1]),o=0;o<n;o++)s=t.mul(s,[1,r.exp(o)]);return s}})(Qc);var To=fr,Yc=Qc,Ef=H.bufferPolyfill.Buffer;function Ws(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}Ws.prototype.initialize=function(e){this.degree=e,this.genPoly=Yc.generateECPolynomial(this.degree)};Ws.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var r=To.alloc(this.degree),i=Ef.concat([e,r],e.length+this.degree),n=Yc.mod(i,this.genPoly),s=this.degree-n.length;if(s>0){var o=To.alloc(this.degree);return n.copy(o,s),o}return n};var Sf=Ws,Xc={},dr={},Js={};Js.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Ut={},Zc="[0-9]+",If="[A-Z $%*+\\-./:]+",Ii="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ii=Ii.replace(/u/g,"\\u");var Mf="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ii+`)(?:.|[\r
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("./index-BzrMFsLZ.js"),iu=require("./dijkstra-CtFxn7S9.js"),P=require("./browser-Bn1qwjLm.js"),L=require("./index-3bbveAQd.js");let nu=class extends P.r{constructor(e){super(e),this.events=new H.eventsExports.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async request(e,r){return this.requestStrict(P.formatJsonRpcRequest(e.method,e.params||[],e.id||P.getBigIntRpcId().toString()),r)}async requestStrict(e,r){return new Promise(async(i,n)=>{if(!this.connection.connected)try{await this.open()}catch(s){n(s)}this.events.on(`${e.id}`,s=>{P.isJsonRpcError(s)?n(s.error):i(s.result)});try{await this.connection.send(e,r)}catch(s){n(s)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),P.isJsonRpcResponse(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}};var su=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],i=0;i<t.rangeCount;i++)r.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(n){t.addRange(n)}),e&&e.focus()}},ou=su,So={"text/plain":"Text","text/html":"Url",default:"Text"},au="Copy to clipboard: #{key}, Enter";function cu(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function hu(t,e){var r,i,n,s,o,c,h=!1;e||(e={}),r=e.debug||!1;try{n=ou(),s=document.createRange(),o=document.getSelection(),c=document.createElement("span"),c.textContent=t,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(d){if(d.stopPropagation(),e.format)if(d.preventDefault(),typeof d.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=So[e.format]||So.default;window.clipboardData.setData(m,t)}else d.clipboardData.clearData(),d.clipboardData.setData(e.format,t);e.onCopy&&(d.preventDefault(),e.onCopy(d.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),o.addRange(s);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");h=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),h=!0}catch(m){r&&console.error("unable to copy using clipboardData: ",m),r&&console.error("falling back to prompt"),i=cu("message"in e?e.message:au),window.prompt(i,t)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(s):o.removeAllRanges()),c&&document.body.removeChild(c),n()}return h}var lu=hu,uu={}.toString,zs=Array.isArray||function(t){return uu.call(t)=="[object Array]"},js={},he={};Object.defineProperty(he,"__esModule",{value:!0});var yc=he.getLocalStorage=Cc=he.getLocalStorageOrThrow=xc=he.getCrypto=Mc=he.getCryptoOrThrow=Ic=he.getLocation=Sc=he.getLocationOrThrow=Ec=he.getNavigator=Ac=he.getNavigatorOrThrow=_c=he.getDocument=bc=he.getDocumentOrThrow=wc=he.getFromWindowOrThrow=vc=he.getFromWindow=void 0;function kr(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}var vc=he.getFromWindow=kr;function ri(t){const e=kr(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}var wc=he.getFromWindowOrThrow=ri;function fu(){return ri("document")}var bc=he.getDocumentOrThrow=fu;function du(){return kr("document")}var _c=he.getDocument=du;function pu(){return ri("navigator")}var Ac=he.getNavigatorOrThrow=pu;function gu(){return kr("navigator")}var Ec=he.getNavigator=gu;function mu(){return ri("location")}var Sc=he.getLocationOrThrow=mu;function yu(){return kr("location")}var Ic=he.getLocation=yu;function vu(){return ri("crypto")}var Mc=he.getCryptoOrThrow=vu;function wu(){return kr("crypto")}var xc=he.getCrypto=wu;function bu(){return ri("localStorage")}var Cc=he.getLocalStorageOrThrow=bu;function _u(){return kr("localStorage")}yc=he.getLocalStorage=_u;Object.defineProperty(js,"__esModule",{value:!0});var Nc=js.getWindowMetadata=void 0;const Io=he;function Au(){let t,e;try{t=Io.getDocumentOrThrow(),e=Io.getLocationOrThrow()}catch{return null}function r(){const m=t.getElementsByTagName("link"),b=[];for(let A=0;A<m.length;A++){const E=m[A],x=E.getAttribute("rel");if(x&&x.toLowerCase().indexOf("icon")>-1){const I=E.getAttribute("href");if(I)if(I.toLowerCase().indexOf("https:")===-1&&I.toLowerCase().indexOf("http:")===-1&&I.indexOf("//")!==0){let C=e.protocol+"//"+e.host;if(I.indexOf("/")===0)C+=I;else{const R=e.pathname.split("/");R.pop();const T=R.join("/");C+=T+"/"+I}b.push(C)}else if(I.indexOf("//")===0){const C=e.protocol+I;b.push(C)}else b.push(I)}}return b}function i(...m){const b=t.getElementsByTagName("meta");for(let A=0;A<b.length;A++){const E=b[A],x=["itemprop","property","name"].map(I=>E.getAttribute(I)).filter(I=>I?m.includes(I):!1);if(x.length&&x){const I=E.getAttribute("content");if(I)return I}}return""}function n(){let m=i("name","og:site_name","og:title","twitter:title");return m||(m=t.title),m}function s(){return i("description","og:description","twitter:description","keywords")}const o=n(),c=s(),h=e.origin,u=r();return{description:c,url:h,icons:u,name:o}}Nc=js.getWindowMetadata=Au;var Eu=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var i=Array(t),n=0,e=0;e<r;e++)for(var s=arguments[e],o=0,c=s.length;o<c;o++,n++)i[n]=s[o];return i},Su=function(){function t(e,r,i){this.name=e,this.version=r,this.os=i,this.type="browser"}return t}(),Iu=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=H.dist.process.platform}return t}(),Mu=function(){function t(e,r,i,n){this.name=e,this.version=r,this.os=i,this.bot=n,this.type="bot-device"}return t}(),xu=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),Cu=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),Nu=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Ru=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Mo=3,Pu=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",Nu]],xo=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Tu(t){return t?Co(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Cu:typeof navigator<"u"?Co(navigator.userAgent):ku()}function Ou(t){return t!==""&&Pu.reduce(function(e,r){var i=r[0],n=r[1];if(e)return e;var s=n.exec(t);return!!s&&[i,s]},!1)}function Co(t){var e=Ou(t);if(!e)return null;var r=e[0],i=e[1];if(r==="searchbot")return new xu;var n=i[1]&&i[1].split(/[._]/).slice(0,3);n?n.length<Mo&&(n=Eu(n,Fu(Mo-n.length))):n=[];var s=n.join("."),o=Bu(t),c=Ru.exec(t);return c&&c[1]?new Mu(r,s,o,c[1]):new Su(r,s,o)}function Bu(t){for(var e=0,r=xo.length;e<r;e++){var i=xo[e],n=i[0],s=i[1],o=s.exec(t);if(o)return n}return null}function ku(){var t=typeof H.dist.process<"u"&&H.dist.process.version;return t?new Iu(H.dist.process.version.slice(1)):null}function Fu(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}function Ks(t){return Tu(t)}function gn(){const t=Ks();return t&&t.os?t.os:void 0}function Rc(){const t=gn();return t?t.toLowerCase().includes("android"):!1}function Pc(){const t=gn();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Du(){return gn()?Rc()||Pc():!1}function Tc(){const t=Ks();return t&&t.name?t.name.toLowerCase()==="node":!1}function qu(){return!Tc()&&!!Oc()}const Lu=vc,Uu=wc,$u=bc,zu=_c,ju=Ac,Oc=Ec,Ku=Sc,Vu=Ic,Hu=Mc,Wu=xc,Ju=Cc,mn=yc;function Qu(){return Nc()}function Gu(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch{return t}}function Yu(t){return typeof t=="string"?t:JSON.stringify(t)}const Bc=Gu,kc=Yu;function Fc(t,e){const r=kc(e),i=mn();i&&i.setItem(t,r)}function Xu(t){let e=null,r=null;const i=mn();return i&&(r=i.getItem(t)),e=r&&Bc(r),e}function Zu(t){const e=mn();e&&e.removeItem(t)}const Dc="WALLETCONNECT_DEEPLINK_CHOICE";function ef(t,e){const r=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${r}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${r}`:""}function tf(t){const e=t.href.split("?")[0];Fc(Dc,Object.assign(Object.assign({},t),{href:e}))}function qc(t,e){return t.filter(r=>r.name.toLowerCase().includes(e.toLowerCase()))[0]}function rf(t,e){let r=t;return e&&(r=e.map(i=>qc(t,i)).filter(Boolean)),r}const Lc="https://registry.walletconnect.com";function nf(){return Lc+"/api/v2/wallets"}function sf(){return Lc+"/api/v2/dapps"}function Uc(t,e="mobile"){var r;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(r=t.image_url.sm)!==null&&r!==void 0?r:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function of(t,e="mobile"){return Object.values(t).filter(r=>!!r[e].universal||!!r[e].native).map(r=>Uc(r,e))}const af=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:Ks,detectOS:gn,formatIOSMobile:ef,formatMobileRegistry:of,formatMobileRegistryEntry:Uc,getClientMeta:Qu,getCrypto:Wu,getCryptoOrThrow:Hu,getDappRegistryUrl:sf,getDocument:zu,getDocumentOrThrow:$u,getFromWindow:Lu,getFromWindowOrThrow:Uu,getLocal:Xu,getLocalStorage:mn,getLocalStorageOrThrow:Ju,getLocation:Vu,getLocationOrThrow:Ku,getMobileLinkRegistry:rf,getMobileRegistryEntry:qc,getNavigator:Oc,getNavigatorOrThrow:ju,getWalletRegistryUrl:nf,isAndroid:Rc,isBrowser:qu,isIOS:Pc,isMobile:Du,isNode:Tc,mobileLinkChoiceKey:Dc,removeLocal:Zu,safeJsonParse:Bc,safeJsonStringify:kc,saveMobileLinkInfo:tf,setLocal:Fc},Symbol.toStringTag,{value:"Module"})),cf=H.getAugmentedNamespace(af);var Pi={},hf=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},$c={},fr={},lf=zs;function uf(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42}catch{return!1}}ne.TYPED_ARRAY_SUPPORT=uf();var No=ne.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function ne(t,e,r){return!ne.TYPED_ARRAY_SUPPORT&&!(this instanceof ne)?new ne(t,e,r):typeof t=="number"?zc(this,t):vf(this,t,e,r)}ne.TYPED_ARRAY_SUPPORT&&(ne.prototype.__proto__=Uint8Array.prototype,ne.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&ne[Symbol.species]===ne&&Object.defineProperty(ne,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function Vs(t){if(t>=No)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+No.toString(16)+" bytes");return t|0}function ff(t){return t!==t}function Jr(t,e){var r;return ne.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=ne.prototype):(r=t,r===null&&(r=new ne(e)),r.length=e),r}function zc(t,e){var r=Jr(t,e<0?0:Vs(e)|0);if(!ne.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)r[i]=0;return r}function df(t,e){var r=Kc(e)|0,i=Jr(t,r),n=i.write(e);return n!==r&&(i=i.slice(0,n)),i}function ws(t,e){for(var r=e.length<0?0:Vs(e.length)|0,i=Jr(t,r),n=0;n<r;n+=1)i[n]=e[n]&255;return i}function pf(t,e,r,i){if(r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");var n;return r===void 0&&i===void 0?n=new Uint8Array(e):i===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,i),ne.TYPED_ARRAY_SUPPORT?n.__proto__=ne.prototype:n=ws(t,n),n}function gf(t,e){if(ne.isBuffer(e)){var r=Vs(e.length)|0,i=Jr(t,r);return i.length===0||e.copy(i,0,0,r),i}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||ff(e.length)?Jr(t,0):ws(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return ws(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function jc(t,e){e=e||1/0;for(var r,i=t.length,n=null,s=[],o=0;o<i;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function Kc(t){if(ne.isBuffer(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;return e===0?0:jc(t).length}function mf(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function yf(t,e,r,i){return mf(jc(e,t.length-r),t,r,i)}function vf(t,e,r,i){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?pf(t,e,r,i):typeof e=="string"?df(t,e):gf(t,e)}ne.prototype.write=function(e,r,i){r===void 0?(i=this.length,r=0):i===void 0&&typeof r=="string"?(i=this.length,r=0):isFinite(r)&&(r=r|0,isFinite(i)?i=i|0:i=void 0);var n=this.length-r;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return yf(this,e,r,i)};ne.prototype.slice=function(e,r){var i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);var n;if(ne.TYPED_ARRAY_SUPPORT)n=this.subarray(e,r),n.__proto__=ne.prototype;else{var s=r-e;n=new ne(s,void 0);for(var o=0;o<s;++o)n[o]=this[o+e]}return n};ne.prototype.copy=function(e,r,i,n){if(i||(i=0),!n&&n!==0&&(n=this.length),r>=e.length&&(r=e.length),r||(r=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-r<n-i&&(n=e.length-r+i);var s=n-i,o;if(this===e&&i<r&&r<n)for(o=s-1;o>=0;--o)e[o+r]=this[o+i];else if(s<1e3||!ne.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+r]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),r);return s};ne.prototype.fill=function(e,r,i){if(typeof e=="string"){if(typeof r=="string"?(r=0,i=this.length):typeof i=="string"&&(i=this.length),e.length===1){var n=e.charCodeAt(0);n<256&&(e=n)}}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<i;++s)this[s]=e;else{var o=ne.isBuffer(e)?e:new ne(e),c=o.length;for(s=0;s<i-r;++s)this[s+r]=o[s%c]}return this};ne.concat=function(e,r){if(!lf(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Jr(null,0);var i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;var n=zc(null,r),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!ne.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n};ne.byteLength=Kc;ne.prototype._isBuffer=!0;ne.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};fr.alloc=function(t){var e=new ne(t);return e.fill(0),e};fr.from=function(t){return new ne(t)};var yt={},Hs,wf=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];yt.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};yt.getSymbolTotalCodewords=function(e){return wf[e]};yt.getBCHDigit=function(t){for(var e=0;t!==0;)e++,t>>>=1;return e};yt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Hs=e};yt.isKanjiModeEnabled=function(){return typeof Hs<"u"};yt.toSJIS=function(e){return Hs(e)};var yn={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(r){if(typeof r!="string")throw new Error("Param is not a string");var i=r.toLowerCase();switch(i){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+r)}}t.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},t.from=function(i,n){if(t.isValid(i))return i;try{return e(i)}catch{return n}}})(yn);function Vc(){this.buffer=[],this.length=0}Vc.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var bf=Vc,Ro=fr;function Ti(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=Ro.alloc(t*t),this.reservedBit=Ro.alloc(t*t)}Ti.prototype.set=function(t,e,r,i){var n=t*this.size+e;this.data[n]=r,i&&(this.reservedBit[n]=!0)};Ti.prototype.get=function(t,e){return this.data[t*this.size+e]};Ti.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Ti.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var _f=Ti,Hc={};(function(t){var e=yt.getSymbolSize;t.getRowColCoords=function(i){if(i===1)return[];for(var n=Math.floor(i/7)+2,s=e(i),o=s===145?26:Math.ceil((s-13)/(2*n-2))*2,c=[s-7],h=1;h<n-1;h++)c[h]=c[h-1]-o;return c.push(6),c.reverse()},t.getPositions=function(i){for(var n=[],s=t.getRowColCoords(i),o=s.length,c=0;c<o;c++)for(var h=0;h<o;h++)c===0&&h===0||c===0&&h===o-1||c===o-1&&h===0||n.push([s[c],s[h]]);return n}})(Hc);var Wc={},Af=yt.getSymbolSize,Po=7;Wc.getPositions=function(e){var r=Af(e);return[[0,0],[r-Po,0],[0,r-Po]]};var Jc={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){for(var s=n.size,o=0,c=0,h=0,u=null,d=null,m=0;m<s;m++){c=h=0,u=d=null;for(var b=0;b<s;b++){var A=n.get(m,b);A===u?c++:(c>=5&&(o+=e.N1+(c-5)),u=A,c=1),A=n.get(b,m),A===d?h++:(h>=5&&(o+=e.N1+(h-5)),d=A,h=1)}c>=5&&(o+=e.N1+(c-5)),h>=5&&(o+=e.N1+(h-5))}return o},t.getPenaltyN2=function(n){for(var s=n.size,o=0,c=0;c<s-1;c++)for(var h=0;h<s-1;h++){var u=n.get(c,h)+n.get(c,h+1)+n.get(c+1,h)+n.get(c+1,h+1);(u===4||u===0)&&o++}return o*e.N2},t.getPenaltyN3=function(n){for(var s=n.size,o=0,c=0,h=0,u=0;u<s;u++){c=h=0;for(var d=0;d<s;d++)c=c<<1&2047|n.get(u,d),d>=10&&(c===1488||c===93)&&o++,h=h<<1&2047|n.get(d,u),d>=10&&(h===1488||h===93)&&o++}return o*e.N3},t.getPenaltyN4=function(n){for(var s=0,o=n.data.length,c=0;c<o;c++)s+=n.data[c];var h=Math.abs(Math.ceil(s*100/o/5)-10);return h*e.N4};function r(i,n,s){switch(i){case t.Patterns.PATTERN000:return(n+s)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return s%3===0;case t.Patterns.PATTERN011:return(n+s)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2===0;case t.Patterns.PATTERN101:return n*s%2+n*s%3===0;case t.Patterns.PATTERN110:return(n*s%2+n*s%3)%2===0;case t.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}t.applyMask=function(n,s){for(var o=s.size,c=0;c<o;c++)for(var h=0;h<o;h++)s.isReserved(h,c)||s.xor(h,c,r(n,h,c))},t.getBestMask=function(n,s){for(var o=Object.keys(t.Patterns).length,c=0,h=1/0,u=0;u<o;u++){s(u),t.applyMask(u,n);var d=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(u,n),d<h&&(h=d,c=u)}return c}})(Jc);var vn={},cr=yn,Ui=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],$i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];vn.getBlocksCount=function(e,r){switch(r){case cr.L:return Ui[(e-1)*4+0];case cr.M:return Ui[(e-1)*4+1];case cr.Q:return Ui[(e-1)*4+2];case cr.H:return Ui[(e-1)*4+3];default:return}};vn.getTotalCodewordsCount=function(e,r){switch(r){case cr.L:return $i[(e-1)*4+0];case cr.M:return $i[(e-1)*4+1];case cr.Q:return $i[(e-1)*4+2];case cr.H:return $i[(e-1)*4+3];default:return}};var Qc={},wn={},Gc=fr,bi=Gc.alloc(512),tn=Gc.alloc(256);(function(){for(var e=1,r=0;r<255;r++)bi[r]=e,tn[e]=r,e<<=1,e&256&&(e^=285);for(r=255;r<512;r++)bi[r]=bi[r-255]})();wn.log=function(e){if(e<1)throw new Error("log("+e+")");return tn[e]};wn.exp=function(e){return bi[e]};wn.mul=function(e,r){return e===0||r===0?0:bi[tn[e]+tn[r]]};(function(t){var e=fr,r=wn;t.mul=function(n,s){for(var o=e.alloc(n.length+s.length-1),c=0;c<n.length;c++)for(var h=0;h<s.length;h++)o[c+h]^=r.mul(n[c],s[h]);return o},t.mod=function(n,s){for(var o=e.from(n);o.length-s.length>=0;){for(var c=o[0],h=0;h<s.length;h++)o[h]^=r.mul(s[h],c);for(var u=0;u<o.length&&o[u]===0;)u++;o=o.slice(u)}return o},t.generateECPolynomial=function(n){for(var s=e.from([1]),o=0;o<n;o++)s=t.mul(s,[1,r.exp(o)]);return s}})(Qc);var To=fr,Yc=Qc,Ef=H.bufferPolyfill.Buffer;function Ws(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}Ws.prototype.initialize=function(e){this.degree=e,this.genPoly=Yc.generateECPolynomial(this.degree)};Ws.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var r=To.alloc(this.degree),i=Ef.concat([e,r],e.length+this.degree),n=Yc.mod(i,this.genPoly),s=this.degree-n.length;if(s>0){var o=To.alloc(this.degree);return n.copy(o,s),o}return n};var Sf=Ws,Xc={},dr={},Js={};Js.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Ut={},Zc="[0-9]+",If="[A-Z $%*+\\-./:]+",Ii="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ii=Ii.replace(/u/g,"\\u");var Mf="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ii+`)(?:.|[\r
2
2
  ]))+`;Ut.KANJI=new RegExp(Ii,"g");Ut.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Ut.BYTE=new RegExp(Mf,"g");Ut.NUMERIC=new RegExp(Zc,"g");Ut.ALPHANUMERIC=new RegExp(If,"g");var xf=new RegExp("^"+Ii+"$"),Cf=new RegExp("^"+Zc+"$"),Nf=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ut.testKanji=function(e){return xf.test(e)};Ut.testNumeric=function(e){return Cf.test(e)};Ut.testAlphanumeric=function(e){return Nf.test(e)};(function(t){var e=Js,r=Ut;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},t.getBestModeForData=function(s){return r.testNumeric(s)?t.NUMERIC:r.testAlphanumeric(s)?t.ALPHANUMERIC:r.testKanji(s)?t.KANJI:t.BYTE},t.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},t.isValid=function(s){return s&&s.bit&&s.ccBits};function i(n){if(typeof n!="string")throw new Error("Param is not a string");var s=n.toLowerCase();switch(s){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+n)}}t.from=function(s,o){if(t.isValid(s))return s;try{return i(s)}catch{return o}}})(dr);(function(t){var e=yt,r=vn,i=yn,n=dr,s=Js,o=zs,c=7973,h=e.getBCHDigit(c);function u(A,E,x){for(var I=1;I<=40;I++)if(E<=t.getCapacity(I,x,A))return I}function d(A,E){return n.getCharCountIndicator(A,E)+4}function m(A,E){var x=0;return A.forEach(function(I){var C=d(I.mode,E);x+=C+I.getBitsLength()}),x}function b(A,E){for(var x=1;x<=40;x++){var I=m(A,x);if(I<=t.getCapacity(x,E,n.MIXED))return x}}t.from=function(E,x){return s.isValid(E)?parseInt(E,10):x},t.getCapacity=function(E,x,I){if(!s.isValid(E))throw new Error("Invalid QR Code version");typeof I>"u"&&(I=n.BYTE);var C=e.getSymbolTotalCodewords(E),R=r.getTotalCodewordsCount(E,x),T=(C-R)*8;if(I===n.MIXED)return T;var N=T-d(I,E);switch(I){case n.NUMERIC:return Math.floor(N/10*3);case n.ALPHANUMERIC:return Math.floor(N/11*2);case n.KANJI:return Math.floor(N/13);case n.BYTE:default:return Math.floor(N/8)}},t.getBestVersionForData=function(E,x){var I,C=i.from(x,i.M);if(o(E)){if(E.length>1)return b(E,C);if(E.length===0)return 1;I=E[0]}else I=E;return u(I.mode,I.getLength(),C)},t.getEncodedBits=function(E){if(!s.isValid(E)||E<7)throw new Error("Invalid QR Code version");for(var x=E<<12;e.getBCHDigit(x)-h>=0;)x^=c<<e.getBCHDigit(x)-h;return E<<12|x}})(Xc);var eh={},bs=yt,th=1335,Rf=21522,Oo=bs.getBCHDigit(th);eh.getEncodedBits=function(e,r){for(var i=e.bit<<3|r,n=i<<10;bs.getBCHDigit(n)-Oo>=0;)n^=th<<bs.getBCHDigit(n)-Oo;return(i<<10|n)^Rf};var rh={},Pf=dr;function Qr(t){this.mode=Pf.NUMERIC,this.data=t.toString()}Qr.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};Qr.prototype.getLength=function(){return this.data.length};Qr.prototype.getBitsLength=function(){return Qr.getBitsLength(this.data.length)};Qr.prototype.write=function(e){var r,i,n;for(r=0;r+3<=this.data.length;r+=3)i=this.data.substr(r,3),n=parseInt(i,10),e.put(n,10);var s=this.data.length-r;s>0&&(i=this.data.substr(r),n=parseInt(i,10),e.put(n,s*3+1))};var Tf=Qr,Of=dr,$n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Gr(t){this.mode=Of.ALPHANUMERIC,this.data=t}Gr.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Gr.prototype.getLength=function(){return this.data.length};Gr.prototype.getBitsLength=function(){return Gr.getBitsLength(this.data.length)};Gr.prototype.write=function(e){var r;for(r=0;r+2<=this.data.length;r+=2){var i=$n.indexOf(this.data[r])*45;i+=$n.indexOf(this.data[r+1]),e.put(i,11)}this.data.length%2&&e.put($n.indexOf(this.data[r]),6)};var Bf=Gr,kf=fr,Ff=dr;function Yr(t){this.mode=Ff.BYTE,this.data=kf.from(t)}Yr.getBitsLength=function(e){return e*8};Yr.prototype.getLength=function(){return this.data.length};Yr.prototype.getBitsLength=function(){return Yr.getBitsLength(this.data.length)};Yr.prototype.write=function(t){for(var e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};var Df=Yr,qf=dr,Lf=yt;function Xr(t){this.mode=qf.KANJI,this.data=t}Xr.getBitsLength=function(e){return e*13};Xr.prototype.getLength=function(){return this.data.length};Xr.prototype.getBitsLength=function(){return Xr.getBitsLength(this.data.length)};Xr.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var r=Lf.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
3
3
  Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};var Uf=Xr;(function(t){var e=dr,r=Tf,i=Bf,n=Df,s=Uf,o=Ut,c=yt,h=iu.dijkstraExports;function u(C){return unescape(encodeURIComponent(C)).length}function d(C,R,T){for(var N=[],F;(F=C.exec(T))!==null;)N.push({data:F[0],index:F.index,mode:R,length:F[0].length});return N}function m(C){var R=d(o.NUMERIC,e.NUMERIC,C),T=d(o.ALPHANUMERIC,e.ALPHANUMERIC,C),N,F;c.isKanjiModeEnabled()?(N=d(o.BYTE,e.BYTE,C),F=d(o.KANJI,e.KANJI,C)):(N=d(o.BYTE_KANJI,e.BYTE,C),F=[]);var D=R.concat(T,N,F);return D.sort(function(U,j){return U.index-j.index}).map(function(U){return{data:U.data,mode:U.mode,length:U.length}})}function b(C,R){switch(R){case e.NUMERIC:return r.getBitsLength(C);case e.ALPHANUMERIC:return i.getBitsLength(C);case e.KANJI:return s.getBitsLength(C);case e.BYTE:return n.getBitsLength(C)}}function A(C){return C.reduce(function(R,T){var N=R.length-1>=0?R[R.length-1]:null;return N&&N.mode===T.mode?(R[R.length-1].data+=T.data,R):(R.push(T),R)},[])}function E(C){for(var R=[],T=0;T<C.length;T++){var N=C[T];switch(N.mode){case e.NUMERIC:R.push([N,{data:N.data,mode:e.ALPHANUMERIC,length:N.length},{data:N.data,mode:e.BYTE,length:N.length}]);break;case e.ALPHANUMERIC:R.push([N,{data:N.data,mode:e.BYTE,length:N.length}]);break;case e.KANJI:R.push([N,{data:N.data,mode:e.BYTE,length:u(N.data)}]);break;case e.BYTE:R.push([{data:N.data,mode:e.BYTE,length:u(N.data)}])}}return R}function x(C,R){for(var T={},N={start:{}},F=["start"],D=0;D<C.length;D++){for(var U=C[D],j=[],Z=0;Z<U.length;Z++){var oe=U[Z],ee=""+D+Z;j.push(ee),T[ee]={node:oe,lastCount:0},N[ee]={};for(var ae=0;ae<F.length;ae++){var a=F[ae];T[a]&&T[a].node.mode===oe.mode?(N[a][ee]=b(T[a].lastCount+oe.length,oe.mode)-b(T[a].lastCount,oe.mode),T[a].lastCount+=oe.length):(T[a]&&(T[a].lastCount=oe.length),N[a][ee]=b(oe.length,oe.mode)+4+e.getCharCountIndicator(oe.mode,R))}}F=j}for(ae=0;ae<F.length;ae++)N[F[ae]].end=0;return{map:N,table:T}}function I(C,R){var T,N=e.getBestModeForData(C);if(T=e.from(R,N),T!==e.BYTE&&T.bit<N.bit)throw new Error('"'+C+'" cannot be encoded with mode '+e.toString(T)+`.
4
4
  Suggested mode is: `+e.toString(N));switch(T===e.KANJI&&!c.isKanjiModeEnabled()&&(T=e.BYTE),T){case e.NUMERIC:return new r(C);case e.ALPHANUMERIC:return new i(C);case e.KANJI:return new s(C);case e.BYTE:return new n(C)}}t.fromArray=function(R){return R.reduce(function(T,N){return typeof N=="string"?T.push(I(N,null)):N.data&&T.push(I(N.data,N.mode)),T},[])},t.fromString=function(R,T){for(var N=m(R,c.isKanjiModeEnabled()),F=E(N),D=x(F,T),U=h.find_path(D.map,"start","end"),j=[],Z=1;Z<U.length-1;Z++)j.push(D.table[U[Z]].node);return t.fromArray(A(j))},t.rawSplit=function(R){return t.fromArray(m(R,c.isKanjiModeEnabled()))}})(rh);var Bo=fr,bn=yt,zn=yn,$f=bf,zf=_f,jf=Hc,Kf=Wc,_s=Jc,As=vn,Vf=Sf,rn=Xc,Hf=eh,Wf=dr,jn=rh,Jf=zs;function Qf(t,e){for(var r=t.size,i=Kf.getPositions(e),n=0;n<i.length;n++)for(var s=i[n][0],o=i[n][1],c=-1;c<=7;c++)if(!(s+c<=-1||r<=s+c))for(var h=-1;h<=7;h++)o+h<=-1||r<=o+h||(c>=0&&c<=6&&(h===0||h===6)||h>=0&&h<=6&&(c===0||c===6)||c>=2&&c<=4&&h>=2&&h<=4?t.set(s+c,o+h,!0,!0):t.set(s+c,o+h,!1,!0))}function Gf(t){for(var e=t.size,r=8;r<e-8;r++){var i=r%2===0;t.set(r,6,i,!0),t.set(6,r,i,!0)}}function Yf(t,e){for(var r=jf.getPositions(e),i=0;i<r.length;i++)for(var n=r[i][0],s=r[i][1],o=-2;o<=2;o++)for(var c=-2;c<=2;c++)o===-2||o===2||c===-2||c===2||o===0&&c===0?t.set(n+o,s+c,!0,!0):t.set(n+o,s+c,!1,!0)}function Xf(t,e){for(var r=t.size,i=rn.getEncodedBits(e),n,s,o,c=0;c<18;c++)n=Math.floor(c/3),s=c%3+r-8-3,o=(i>>c&1)===1,t.set(n,s,o,!0),t.set(s,n,o,!0)}function Kn(t,e,r){var i=t.size,n=Hf.getEncodedBits(e,r),s,o;for(s=0;s<15;s++)o=(n>>s&1)===1,s<6?t.set(s,8,o,!0):s<8?t.set(s+1,8,o,!0):t.set(i-15+s,8,o,!0),s<8?t.set(8,i-s-1,o,!0):s<9?t.set(8,15-s-1+1,o,!0):t.set(8,15-s-1,o,!0);t.set(i-8,8,1,!0)}function Zf(t,e){for(var r=t.size,i=-1,n=r-1,s=7,o=0,c=r-1;c>0;c-=2)for(c===6&&c--;;){for(var h=0;h<2;h++)if(!t.isReserved(n,c-h)){var u=!1;o<e.length&&(u=(e[o]>>>s&1)===1),t.set(n,c-h,u),s--,s===-1&&(o++,s=7)}if(n+=i,n<0||r<=n){n-=i,i=-i;break}}}function ed(t,e,r){var i=new $f;r.forEach(function(u){i.put(u.mode.bit,4),i.put(u.getLength(),Wf.getCharCountIndicator(u.mode,t)),u.write(i)});var n=bn.getSymbolTotalCodewords(t),s=As.getTotalCodewordsCount(t,e),o=(n-s)*8;for(i.getLengthInBits()+4<=o&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);for(var c=(o-i.getLengthInBits())/8,h=0;h<c;h++)i.put(h%2?17:236,8);return td(i,t,e)}function td(t,e,r){for(var i=bn.getSymbolTotalCodewords(e),n=As.getTotalCodewordsCount(e,r),s=i-n,o=As.getBlocksCount(e,r),c=i%o,h=o-c,u=Math.floor(i/o),d=Math.floor(s/o),m=d+1,b=u-d,A=new Vf(b),E=0,x=new Array(o),I=new Array(o),C=0,R=Bo.from(t.buffer),T=0;T<o;T++){var N=T<h?d:m;x[T]=R.slice(E,E+N),I[T]=A.encode(x[T]),E+=N,C=Math.max(C,N)}var F=Bo.alloc(i),D=0,U,j;for(U=0;U<C;U++)for(j=0;j<o;j++)U<x[j].length&&(F[D++]=x[j][U]);for(U=0;U<b;U++)for(j=0;j<o;j++)F[D++]=I[j][U];return F}function rd(t,e,r,i){var n;if(Jf(t))n=jn.fromArray(t);else if(typeof t=="string"){var s=e;if(!s){var o=jn.rawSplit(t);s=rn.getBestVersionForData(o,r)}n=jn.fromString(t,s||40)}else throw new Error("Invalid data");var c=rn.getBestVersionForData(n,r);if(!c)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=c;else if(e<c)throw new Error(`
@@ -1 +1 @@
1
- "use strict";var u=Object.defineProperty;var w=(i,e,r)=>e in i?u(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r;var c=(i,e,r)=>(w(i,typeof e!="symbol"?e+"":e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./cosmwasm-BzpoOEHD.js"),l=require("./create-BnV3GEvg.js"),h=require("./index-nHUtFn3B.js"),g=require("./chain-Fd-WQzeJ.js");class o{constructor(e,r,s,t){c(this,"network");c(this,"chain");c(this,"rpc");c(this,"contracts");c(this,"coreAddress");this.network=e,this.chain=r,this.rpc=s,this.contracts=t;const n=this.contracts.coreBridge;if(!n)throw new Error(`Wormhole Token Bridge contract for domain ${r} not found`);this.coreAddress=n}getGuardianSet(e){throw new Error("Method not implemented.")}getGuardianSetIndex(){throw new Error("Method not implemented.")}getMessageFee(){throw new Error("Method not implemented.")}static async fromRpc(e,r){const[s,t]=await m.CosmwasmPlatform.chainFromRpc(e),n=r[t];if(n.network!==s)throw new Error(`Network mismatch: ${n.network} != ${s}`);return new o(s,t,e,n.contracts)}async*publishMessage(e,r,s,t){throw new Error("Method not implemented.")}async*verifyMessage(e,r){throw new Error("Not implemented.")}async parseTransaction(e){const r=await this.rpc.getTx(e);if(!r)throw new Error("No transaction found for txid: "+e);return[o.parseWormholeMessageId(this.chain,this.coreAddress,r)]}async parseMessages(e){const r=await this.rpc.getTx(e);if(!r)throw new Error("No transaction found for txid: "+e);return[o.parseWormholeMessage(this.chain,this.coreAddress,r)]}static parseWormholeMessage(e,r,s){const t=s.events.filter(a=>a.type==="wasm"&&a.attributes[0].key==="_contract_address"&&a.attributes[0].value===r);if(t.length===0)throw new Error("No wormhole message found in tx");t.length>1&&console.error(`Expected single message, found ${t.length}`);const[n]=t,d=Object.fromEntries(n.attributes.map(a=>[a.key.split(".")[1],a.value]));return l.createVAA("Uint8Array",{emitterChain:e,emitterAddress:new h.UniversalAddress(h.hex.decode(d.sender)),sequence:BigInt(d.sequence),guardianSet:0,timestamp:Number(d.block_time),consistencyLevel:0,nonce:Number(d.nonce),signatures:[],payload:h.hex.decode(d.message)})}static parseWormholeMessageId(e,r,s){const t=o.parseWormholeMessage(e,r,s);return{chain:t.emitterChain,emitter:t.emitterAddress,sequence:t.sequence}}}g.registerProtocol(m._platform,"WormholeCore",o);exports.CosmwasmWormholeCore=o;
1
+ "use strict";var u=Object.defineProperty;var w=(i,e,r)=>e in i?u(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r;var c=(i,e,r)=>(w(i,typeof e!="symbol"?e+"":e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./cosmwasm-A-iur38A.js"),l=require("./create-qTTAZEuM.js"),h=require("./index-BzrMFsLZ.js"),g=require("./chain-D5AOvPgB.js");class o{constructor(e,r,s,t){c(this,"network");c(this,"chain");c(this,"rpc");c(this,"contracts");c(this,"coreAddress");this.network=e,this.chain=r,this.rpc=s,this.contracts=t;const n=this.contracts.coreBridge;if(!n)throw new Error(`Wormhole Token Bridge contract for domain ${r} not found`);this.coreAddress=n}getGuardianSet(e){throw new Error("Method not implemented.")}getGuardianSetIndex(){throw new Error("Method not implemented.")}getMessageFee(){throw new Error("Method not implemented.")}static async fromRpc(e,r){const[s,t]=await m.CosmwasmPlatform.chainFromRpc(e),n=r[t];if(n.network!==s)throw new Error(`Network mismatch: ${n.network} != ${s}`);return new o(s,t,e,n.contracts)}async*publishMessage(e,r,s,t){throw new Error("Method not implemented.")}async*verifyMessage(e,r){throw new Error("Not implemented.")}async parseTransaction(e){const r=await this.rpc.getTx(e);if(!r)throw new Error("No transaction found for txid: "+e);return[o.parseWormholeMessageId(this.chain,this.coreAddress,r)]}async parseMessages(e){const r=await this.rpc.getTx(e);if(!r)throw new Error("No transaction found for txid: "+e);return[o.parseWormholeMessage(this.chain,this.coreAddress,r)]}static parseWormholeMessage(e,r,s){const t=s.events.filter(a=>a.type==="wasm"&&a.attributes[0].key==="_contract_address"&&a.attributes[0].value===r);if(t.length===0)throw new Error("No wormhole message found in tx");t.length>1&&console.error(`Expected single message, found ${t.length}`);const[n]=t,d=Object.fromEntries(n.attributes.map(a=>[a.key.split(".")[1],a.value]));return l.createVAA("Uint8Array",{emitterChain:e,emitterAddress:new h.UniversalAddress(h.hex.decode(d.sender)),sequence:BigInt(d.sequence),guardianSet:0,timestamp:Number(d.block_time),consistencyLevel:0,nonce:Number(d.nonce),signatures:[],payload:h.hex.decode(d.message)})}static parseWormholeMessageId(e,r,s){const t=o.parseWormholeMessage(e,r,s);return{chain:t.emitterChain,emitter:t.emitterAddress,sequence:t.sequence}}}g.registerProtocol(m._platform,"WormholeCore",o);exports.CosmwasmWormholeCore=o;
@@ -1,12 +1,12 @@
1
1
  var yu = Object.defineProperty;
2
2
  var bu = (e, t, n) => t in e ? yu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var at = (e, t, n) => (bu(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { o as h, $ as Vr, T as vu, d as et, w as ma, U as wu, V as fa, X as ku, Y as _u, be as Su, Z as Pu, r as ha, bh as Us, bi as pa, aj as jt, ak as Au, bk as Fr, al as Tu, b4 as vi, ay as Eu, bp as wi, az as Cu, cn as Mu } from "./index-qOfoHBwU.mjs";
5
- import { t as Bt, c as Wr, m as Ou } from "./ens-validation.es6-DLLbDCy1.mjs";
6
- import { k as ju, b as Bu, c as Ru, t as ga, d as Iu, v as $u, p as Nu, q as xu, e as Du, f as Uu, g as qu, h as ya, i as Hu, j as Vu, l as Fu, m as Wu, n as Ju, o as Gu, r as Lu, s as zu, u as Ku, w as Qu, x as Zu, y as Xu, z as Yu, A as ed, B as td, D as nd, E as rd, F as od, H as sd, I as ba, J as id, K as ad, L as cd, M as ud, N as dd, O as ki, G as Nt, C as es, a as _i, P as ld, Q as Si, R as ts, S as Pi, T as Ai, U as Ti, V as Ei, W as Ci, X as Mi, Y as md, Z as fd, _ as hd } from "./cosmwasm-DcZ_Pytj.mjs";
7
- import { CosmwasmWormholeCore as pd } from "./index-lMLcXh0u.mjs";
8
- import { c as gd, C as yd } from "./unsignedTransaction-CCBYM-n2.mjs";
9
- import { r as bd } from "./chain-DfczCeEf.mjs";
4
+ import { o as h, $ as Vr, T as vu, d as et, w as ma, U as wu, V as fa, X as ku, Y as _u, be as Su, Z as Pu, r as ha, bh as Us, bi as pa, aj as jt, ak as Au, bk as Fr, al as Tu, b4 as vi, ay as Eu, bp as wi, az as Cu, cn as Mu } from "./index-CeFWxpd6.mjs";
5
+ import { t as Bt, c as Wr, m as Ou } from "./ens-validation.es6-Dzjz9A6H.mjs";
6
+ import { k as ju, b as Bu, c as Ru, t as ga, d as Iu, v as $u, p as Nu, q as xu, e as Du, f as Uu, g as qu, h as ya, i as Hu, j as Vu, l as Fu, m as Wu, n as Ju, o as Gu, r as Lu, s as zu, u as Ku, w as Qu, x as Zu, y as Xu, z as Yu, A as ed, B as td, D as nd, E as rd, F as od, H as sd, I as ba, J as id, K as ad, L as cd, M as ud, N as dd, O as ki, G as Nt, C as es, a as _i, P as ld, Q as Si, R as ts, S as Pi, T as Ai, U as Ti, V as Ei, W as Ci, X as Mi, Y as md, Z as fd, _ as hd } from "./cosmwasm-CVl5FMK8.mjs";
7
+ import { CosmwasmWormholeCore as pd } from "./index-G-UVRs5W.mjs";
8
+ import { c as gd, C as yd } from "./unsignedTransaction-DUrFOHBP.mjs";
9
+ import { r as bd } from "./chain-DKCnEQGr.mjs";
10
10
  function vd(e) {
11
11
  return e.id !== void 0 && e.pending !== void 0 && e.data !== void 0;
12
12
  }