@wormhole-foundation/wormhole-connect 1.0.0-beta.5-development → 1.0.0-beta.6-development

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 (146) hide show
  1. package/dist/assets/{ccip-B-OK94pJ.js → ccip-HS3Cs5py.js} +1 -1
  2. package/dist/assets/{evm-CPj7oFVL.js → evm-DyY55Fca.js} +4 -4
  3. package/dist/assets/{index-Ddso83Ti.js → index-CeF-n8om.js} +1 -1
  4. package/dist/assets/{index-DGFWhjyA.js → index-CqxhuXyT.js} +1 -1
  5. package/dist/assets/{index-BWMdho2w.js → index-CwoiJQ9y.js} +2 -2
  6. package/dist/assets/{index.es-VchQxXD4.js → index.es-BHZwRRXn.js} +2 -2
  7. package/dist/main.js +65 -65
  8. package/dist/src/AppRouter.d.ts.map +1 -1
  9. package/dist/src/consts/index.d.ts +0 -1
  10. package/dist/src/consts/index.d.ts.map +1 -1
  11. package/dist/src/routes/index.d.ts +0 -1
  12. package/dist/src/routes/index.d.ts.map +1 -1
  13. package/dist/src/sdklegacy/wormhole.d.ts +1 -38
  14. package/dist/src/sdklegacy/wormhole.d.ts.map +1 -1
  15. package/dist/src/store/redeem.d.ts +1 -4
  16. package/dist/src/store/redeem.d.ts.map +1 -1
  17. package/dist/src/telemetry/types.d.ts +2 -0
  18. package/dist/src/telemetry/types.d.ts.map +1 -1
  19. package/dist/src/utils/index.d.ts.map +1 -1
  20. package/dist/src/utils/transferValidation.d.ts +1 -2
  21. package/dist/src/utils/transferValidation.d.ts.map +1 -1
  22. package/dist/src/utils/wallet/index.d.ts +0 -1
  23. package/dist/src/utils/wallet/index.d.ts.map +1 -1
  24. package/dist/src/views/v2/Redeem/index.d.ts.map +1 -1
  25. package/lib/{algorand-DFJZIdnH.js → algorand-B3jpS4mY.js} +1 -1
  26. package/lib/{algorand-qEY4HHOc.mjs → algorand-CIOlvhGh.mjs} +3 -3
  27. package/lib/{aptos-BHw0JlTE.js → aptos-B7P6JL1S.js} +1 -1
  28. package/lib/{aptos-DoqExVYR.mjs → aptos-CKPSmGSC.mjs} +3 -3
  29. package/lib/{aptos-BCuZuiBG.mjs → aptos-CrnZjgsh.mjs} +1 -1
  30. package/lib/{aptos-D-S8DXGs.js → aptos-Cx4TaXYo.js} +2 -2
  31. package/lib/{ccip-CXJ3nCk_.js → ccip-B-q-r_A1.js} +1 -1
  32. package/lib/{ccip-_0LmpQds.mjs → ccip-pU66-Jja.mjs} +1 -1
  33. package/lib/{cosmos-DCgWSBll.js → cosmos-BDlV5WWM.js} +1 -1
  34. package/lib/{cosmos-0un-E2-0.mjs → cosmos-mLLSK_Nm.mjs} +6 -6
  35. package/lib/{cosmwasm-DvwgrLe6.mjs → cosmwasm-CGolR9gL.mjs} +7 -7
  36. package/lib/{cosmwasm-BsEhYnuw.js → cosmwasm-CViLVch6.js} +2 -2
  37. package/lib/{events-wpqGOay9.js → events-BSNN9qkd.js} +1 -1
  38. package/lib/{events-BL2eUG60.mjs → events-Dzr-GrPB.mjs} +1 -1
  39. package/lib/{evm-CkxKsuQ-.mjs → evm-BILIyDaj.mjs} +7 -7
  40. package/lib/{evm-BOrFw20j.js → evm-DMGYpAGT.js} +4 -4
  41. package/lib/{evm-kynWl8-i.mjs → evm-DXAiSRNs.mjs} +5 -5
  42. package/lib/{evm-B46tP5Ah.js → evm-ronpaGiZ.js} +1 -1
  43. package/lib/{index-CFVm1KSi.js → index-58isS1fK.js} +1 -1
  44. package/lib/{index-6gwCyfQU.js → index-AslWQnUt.js} +1 -1
  45. package/lib/{index-CLH7U4rp.mjs → index-BAErxF8G.mjs} +2 -2
  46. package/lib/{index-CDGktAjP.js → index-BHGS0dw3.js} +6 -6
  47. package/lib/{index-CNIDBiCc.js → index-BJQjdDt-.js} +1 -1
  48. package/lib/{index-QfqpopxL.js → index-BKDeZ8n5.js} +1 -1
  49. package/lib/{index-C4ri6eMC.js → index-BN2lROi0.js} +1 -1
  50. package/lib/{index-BWNh4wvK.js → index-BO5ATVUH.js} +1 -1
  51. package/lib/{index-DcbhKZoU.js → index-BRdg8SSa.js} +1 -1
  52. package/lib/{index-CTwzW64I.mjs → index-BTS53_Aj.mjs} +2 -2
  53. package/lib/{index-DVKptZW_.js → index-BVxqSkXh.js} +1 -1
  54. package/lib/{index-D0W1ZmqN.mjs → index-BWe8c3sQ.mjs} +2 -2
  55. package/lib/{index-D5SPCl8N.mjs → index-BdINnTi7.mjs} +2 -2
  56. package/lib/{index-yd8RiLQo.mjs → index-Be-kzEHF.mjs} +4 -4
  57. package/lib/{index-Cm3iq-IJ.mjs → index-BvbKk4T6.mjs} +1 -1
  58. package/lib/{index-CaFGZvKm.js → index-Byr7P1JY.js} +1 -1
  59. package/lib/{index-DojwGTf0.mjs → index-C1jcO7wH.mjs} +1 -1
  60. package/lib/{index-CjwA7HmM.mjs → index-C2DCdxRC.mjs} +36 -109
  61. package/lib/{index-DrQrqu4U.mjs → index-C2WFu8In.mjs} +2 -2
  62. package/lib/{index-SiA6wvOM.mjs → index-CAHXQCTs.mjs} +2 -2
  63. package/lib/{index-BVz1aMw3.js → index-CAcB_0Hd.js} +1 -1
  64. package/lib/{index-dZuWNqUJ.js → index-CHAdrAO4.js} +1 -1
  65. package/lib/{index-BOppeFAI.mjs → index-CMWEjIGj.mjs} +1 -1
  66. package/lib/{index-BTBmklHJ.mjs → index-CSKSjjgt.mjs} +2 -2
  67. package/lib/{index-Dw4gUoPq.mjs → index-CZj2FglQ.mjs} +2 -2
  68. package/lib/{index-CtJdy4GW.js → index-Cd8xotiJ.js} +1 -1
  69. package/lib/{index-IypSUdxl.mjs → index-Co1vTibS.mjs} +2 -2
  70. package/lib/{index-DC65dQZI.mjs → index-CruftbOC.mjs} +7 -7
  71. package/lib/{index-D6Sqxs9J.mjs → index-D6u6ZlbM.mjs} +4 -4
  72. package/lib/{index-CAkX47d8.js → index-DEAhtMw_.js} +1 -1
  73. package/lib/{index-ClRkhvNK.js → index-DFZ0Ndqh.js} +1 -1
  74. package/lib/{index-CPgdgK8L.js → index-DFa89Itc.js} +1 -1
  75. package/lib/{index-DvQkOUhD.mjs → index-DWKvilYv.mjs} +4 -4
  76. package/lib/{index-tKooq_Tx.mjs → index-DXCl1vFR.mjs} +3 -3
  77. package/lib/{index-Cb47usqO.mjs → index-Da7Cxyq1.mjs} +2 -2
  78. package/lib/{index-CUInBQd6.js → index-DbI4zYHg.js} +1 -1
  79. package/lib/{index-DIddLRbN.mjs → index-DiF1ira9.mjs} +1 -1
  80. package/lib/{index-BwCIDEBK.js → index-Dmko8wT8.js} +1 -1
  81. package/lib/{index-C7amSMG9.js → index-Dpzov1Io.js} +1 -1
  82. package/lib/{index-CkPaHAgJ.mjs → index-YNti7nIJ.mjs} +3 -3
  83. package/lib/{index-tKKMDrTV.js → index-ZD733qpV.js} +1 -1
  84. package/lib/{index-hWgZ0Dfs.js → index-bdAItiPr.js} +1 -1
  85. package/lib/{index-BHOu1oLq.mjs → index-e3UZ_0nd.mjs} +3 -3
  86. package/lib/{index-DICIR39L.js → index-g3eZpZJ1.js} +1 -1
  87. package/lib/{index-ClLbfY74.js → index-iXByZuY7.js} +1 -1
  88. package/lib/{index-fzN-meRd.mjs → index-mUmOCSLG.mjs} +1 -1
  89. package/lib/{index-DSSXLwpv.mjs → index-oMwdMcy1.mjs} +1 -1
  90. package/lib/{index-BNWJG0G4.js → index-wXdILngm.js} +1 -1
  91. package/lib/{index.es-BfpZO8dT.js → index.es-B6NnL7-2.js} +2 -2
  92. package/lib/{index.es-P5wvRtJq.mjs → index.es-DNGjs0VX.mjs} +5 -5
  93. package/lib/index.js +1 -1
  94. package/lib/index.mjs +1 -1
  95. package/lib/{libsodium-wrappers-BvMpC4vD.js → libsodium-wrappers-B21TAmoM.js} +1 -1
  96. package/lib/{libsodium-wrappers-BB6-Iffd.mjs → libsodium-wrappers-BKcruoKB.mjs} +1 -1
  97. package/lib/{pako.esm-C7QrkxRd.mjs → pako.esm-C_3vjkSx.mjs} +3 -3
  98. package/lib/{pako.esm-DlDLS2rv.js → pako.esm-x_RIwOhS.js} +1 -1
  99. package/lib/{pbkdf2-Di1EjoiV.js → pbkdf2-BiOly-Fb.js} +1 -1
  100. package/lib/{pbkdf2-DMV4l9Li.mjs → pbkdf2-h3af_qT8.mjs} +1 -1
  101. package/lib/{sei-RTyi_UJs.js → sei-CsiLK3q4.js} +1 -1
  102. package/lib/{sei-CnR3Aw9g.mjs → sei-J7Ndid0z.mjs} +4 -4
  103. package/lib/{signer-BAztlcE7.mjs → signer-Bqq-7pmw.mjs} +1 -1
  104. package/lib/{signer-CbhSUdvo.js → signer-DqTjY4LV.js} +1 -1
  105. package/lib/solana-CRL9xy7K.mjs +16 -0
  106. package/lib/{solana-Cglhypga.js → solana-Ce3qepls.js} +1 -1
  107. package/lib/{solana-CP3uz3z9.mjs → solana-DoXIYwUz.mjs} +4 -4
  108. package/lib/solana-rhlzUaN7.js +1 -0
  109. package/lib/{solanaEmbed.esm-DfSXcnar.mjs → solanaEmbed.esm-BDiuwARH.mjs} +4 -4
  110. package/lib/{solanaEmbed.esm-8VvaQIYa.js → solanaEmbed.esm-aEhVr3dz.js} +1 -1
  111. package/lib/src/AppRouter.d.ts.map +1 -1
  112. package/lib/src/consts/index.d.ts +0 -1
  113. package/lib/src/consts/index.d.ts.map +1 -1
  114. package/lib/src/routes/index.d.ts +0 -1
  115. package/lib/src/routes/index.d.ts.map +1 -1
  116. package/lib/src/sdklegacy/wormhole.d.ts +1 -38
  117. package/lib/src/sdklegacy/wormhole.d.ts.map +1 -1
  118. package/lib/src/store/redeem.d.ts +1 -4
  119. package/lib/src/store/redeem.d.ts.map +1 -1
  120. package/lib/src/telemetry/types.d.ts +2 -0
  121. package/lib/src/telemetry/types.d.ts.map +1 -1
  122. package/lib/src/utils/index.d.ts.map +1 -1
  123. package/lib/src/utils/transferValidation.d.ts +1 -2
  124. package/lib/src/utils/transferValidation.d.ts.map +1 -1
  125. package/lib/src/utils/wallet/index.d.ts +0 -1
  126. package/lib/src/utils/wallet/index.d.ts.map +1 -1
  127. package/lib/src/views/v2/Redeem/index.d.ts.map +1 -1
  128. package/lib/{sui-C73zQuHR.mjs → sui-Bd2bm_yF.mjs} +1 -1
  129. package/lib/{sui-BLA0P5P1.js → sui-CNNdjXyR.js} +2 -2
  130. package/lib/{sui-BMLSVXBy.js → sui-CthAG5pi.js} +1 -1
  131. package/lib/{sui-WPdV6u03.mjs → sui-sEkivVSe.mjs} +4 -4
  132. package/lib/{unsignedTransaction-BWLDqwPd.mjs → unsignedTransaction-CA2s3rKG.mjs} +2 -2
  133. package/lib/{unsignedTransaction-Cl0WbHFW.js → unsignedTransaction-qKKmqcBf.js} +1 -1
  134. package/lib/{utils-CA5brb9u.js → utils-Deb--_8V.js} +1 -1
  135. package/lib/{utils-Cd5O9nI7.mjs → utils-OPA3b1An.mjs} +2 -2
  136. package/package.json +1 -1
  137. package/dist/src/routes/utils.d.ts +0 -2
  138. package/dist/src/routes/utils.d.ts.map +0 -1
  139. package/dist/src/utils/sdk.d.ts +0 -19
  140. package/dist/src/utils/sdk.d.ts.map +0 -1
  141. package/lib/solana-Bkh_veaR.mjs +0 -16
  142. package/lib/solana-CKipdoh2.js +0 -1
  143. package/lib/src/routes/utils.d.ts +0 -2
  144. package/lib/src/routes/utils.d.ts.map +0 -1
  145. package/lib/src/utils/sdk.d.ts +0 -19
  146. package/lib/src/utils/sdk.d.ts.map +0 -1
@@ -9031,7 +9031,6 @@ const initialState$4 = {
9031
9031
  isInvalidVaa: !1,
9032
9032
  route: void 0,
9033
9033
  transferDestInfo: void 0,
9034
- deliveryStatus: void 0,
9035
9034
  isResumeTx: !1,
9036
9035
  timestamp: 0
9037
9036
  }, redeemSlice = createSlice({
@@ -9064,9 +9063,6 @@ const initialState$4 = {
9064
9063
  T[e] = initialState$4[e];
9065
9064
  });
9066
9065
  },
9067
- setDeliveryStatus: (T, { payload: e }) => {
9068
- T.deliveryStatus = e;
9069
- },
9070
9066
  setInvalidVaa: (T, { payload: e }) => {
9071
9067
  T.isInvalidVaa = e;
9072
9068
  },
@@ -9087,7 +9083,6 @@ const initialState$4 = {
9087
9083
  setTransferDestInfo,
9088
9084
  clearRedeem,
9089
9085
  setRoute: setRoute$2,
9090
- setDeliveryStatus,
9091
9086
  setIsResumeTx,
9092
9087
  setTimestamp
9093
9088
  } = redeemSlice.actions, redeemReducer = redeemSlice.reducer;
@@ -89538,43 +89533,6 @@ class WormholeContext extends MultiProvider {
89538
89533
  getContext(C) {
89539
89534
  return this;
89540
89535
  }
89541
- /**
89542
- * Checks if a transfer has been completed or not
89543
- *
89544
- * @param destChain The destination chain name or id
89545
- * @param signedVAA The Signed VAA bytes
89546
- * @returns True if the transfer has been completed, otherwise false
89547
- */
89548
- async isTransferCompleted(C, $) {
89549
- return await this.getContext(C).isTransferCompleted(C, $);
89550
- }
89551
- /**
89552
- * Format an address to a 32-byte universal address, which can be utilized by the Wormhole contracts
89553
- *
89554
- * @param address The address as a string
89555
- * @returns The address as a 32-byte Wormhole address
89556
- */
89557
- formatAddress(C, $) {
89558
- return this.getContext($).formatAddress(C);
89559
- }
89560
- /**
89561
- * Parse an address from a 32-byte universal address to a canonical address
89562
- *
89563
- * @param address The 32-byte wormhole address
89564
- * @returns The address in the blockchain specific format
89565
- */
89566
- parseAddress(C, $) {
89567
- return this.getContext($).parseAddress(C);
89568
- }
89569
- /**
89570
- * Fetches the wrapped native token ID for a given chain
89571
- *
89572
- * @param chain The chain name or id
89573
- * @returns The native token ID
89574
- */
89575
- async getWrappedNativeTokenId(C) {
89576
- return await this.getContext(C).getWrappedNativeTokenId(C);
89577
- }
89578
89536
  /**
89579
89537
  * Get the default config for Mainnet or Testnet
89580
89538
  *
@@ -89584,31 +89542,6 @@ class WormholeContext extends MultiProvider {
89584
89542
  static getConfig(C) {
89585
89543
  return C === "Mainnet" ? MAINNET_CONFIG : C === "Devnet" ? DEVNET_CONFIG : TESTNET_CONFIG;
89586
89544
  }
89587
- // BEGIN stubbed methods for SDKV2 migration
89588
- // TODO SDKV2
89589
- sign() {
89590
- console.log("TODO remove");
89591
- }
89592
- async approve(C, $, V, J) {
89593
- return !0;
89594
- }
89595
- getCurrentBlock() {
89596
- return 0;
89597
- }
89598
- /* @ts-ignore */
89599
- mustGetProvider(C) {
89600
- console.log("TODO remove");
89601
- }
89602
- get contracts() {
89603
- return {
89604
- mustGetCore(C) {
89605
- console.log("TODO remove");
89606
- },
89607
- mustGetBridge(C) {
89608
- console.log("TODO remove");
89609
- }
89610
- };
89611
- }
89612
89545
  }
89613
89546
  const fa = class fa extends Error {
89614
89547
  constructor() {
@@ -89948,7 +89881,7 @@ const { chains: chains$3 } = CONFIG.MAINNET, MAINNET_CHAINS = {
89948
89881
  }
89949
89882
  return T;
89950
89883
  }
89951
- }, capitalize$1 = (T) => T[0].toUpperCase() + T.slice(1), __vite_import_meta_env__$2 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, REACT_APP_CONNECT_GIT_HASH: "d90abfc17d7f6dabad6e4eaf30e06236336df324", REACT_APP_CONNECT_VERSION: "1.0.0-beta.5-development", SSR: !1 }, {
89884
+ }, capitalize$1 = (T) => T[0].toUpperCase() + T.slice(1), __vite_import_meta_env__$2 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, REACT_APP_CONNECT_GIT_HASH: "66567716b06cd59468bd3f6c21d89fba8d52a52d", REACT_APP_CONNECT_VERSION: "1.0.0-beta.6-development", SSR: !1 }, {
89952
89885
  REACT_APP_ETHEREUM_RPC,
89953
89886
  REACT_APP_SOLANA_RPC,
89954
89887
  REACT_APP_POLYGON_RPC,
@@ -91644,7 +91577,7 @@ const { chains: chains$3 } = CONFIG.MAINNET, MAINNET_CHAINS = {
91644
91577
  icon: Icon.MANTLE,
91645
91578
  maxBlockSearch: 2e3
91646
91579
  }
91647
- }, __vite_import_meta_env__$1 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, REACT_APP_CONNECT_GIT_HASH: "d90abfc17d7f6dabad6e4eaf30e06236336df324", REACT_APP_CONNECT_VERSION: "1.0.0-beta.5-development", SSR: !1 }, {
91580
+ }, __vite_import_meta_env__$1 = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, REACT_APP_CONNECT_GIT_HASH: "66567716b06cd59468bd3f6c21d89fba8d52a52d", REACT_APP_CONNECT_VERSION: "1.0.0-beta.6-development", SSR: !1 }, {
91648
91581
  REACT_APP_SEPOLIA_RPC,
91649
91582
  REACT_APP_BSC_TESTNET_RPC,
91650
91583
  REACT_APP_FUJI_RPC,
@@ -92288,7 +92221,7 @@ const { chains: chains$3 } = CONFIG.MAINNET, MAINNET_CHAINS = {
92288
92221
  icon: Icon.OSMO,
92289
92222
  maxBlockSearch: 0
92290
92223
  }
92291
- }, __vite_import_meta_env__ = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, REACT_APP_CONNECT_GIT_HASH: "d90abfc17d7f6dabad6e4eaf30e06236336df324", REACT_APP_CONNECT_VERSION: "1.0.0-beta.5-development", SSR: !1 }, {
92224
+ }, __vite_import_meta_env__ = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, REACT_APP_CONNECT_GIT_HASH: "66567716b06cd59468bd3f6c21d89fba8d52a52d", REACT_APP_CONNECT_VERSION: "1.0.0-beta.6-development", SSR: !1 }, {
92292
92225
  REACT_APP_ETHEREUM_DEVNET_RPC,
92293
92226
  REACT_APP_OSMOSIS_DEVNET_RPC,
92294
92227
  REACT_APP_WORMCHAIN_DEVNET_RPC,
@@ -92352,7 +92285,7 @@ const { chains: chains$3 } = CONFIG.MAINNET, MAINNET_CHAINS = {
92352
92285
  index: 0,
92353
92286
  keys: ["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
92354
92287
  }
92355
- }, WORMSCAN = "https://wormholescan.io/#/", CONNECT_VERSION = "1.0.0-beta.5-development", CONNECT_GIT_HASH = "d90abfc17d7f6dabad6e4eaf30e06236336df324", CHAIN_ORDER = [
92288
+ }, WORMSCAN = "https://wormholescan.io/#/", CONNECT_VERSION = "1.0.0-beta.6-development", CONNECT_GIT_HASH = "66567716b06cd59468bd3f6c21d89fba8d52a52d", CHAIN_ORDER = [
92356
92289
  "Ethereum",
92357
92290
  "Solana",
92358
92291
  "Arbitrum",
@@ -97951,7 +97884,7 @@ class SDKConverter {
97951
97884
  );
97952
97885
  }
97953
97886
  }
97954
- const evm = async () => (await import("./evm-kynWl8-i.mjs")).default, solana$1 = async () => (await import("./solana-Bkh_veaR.mjs")).default, aptos$1 = async () => (await import("./aptos-DoqExVYR.mjs").then((T) => T.a)).default, sui = async () => (await import("./sui-WPdV6u03.mjs").then((T) => T.s)).default, cosmwasm = async () => (await import("./cosmwasm-DvwgrLe6.mjs").then((T) => T.Q)).default, algorand = async () => (await import("./algorand-qEY4HHOc.mjs").then((T) => T.a)).default;
97887
+ const evm = async () => (await import("./evm-DXAiSRNs.mjs")).default, solana$1 = async () => (await import("./solana-CRL9xy7K.mjs")).default, aptos$1 = async () => (await import("./aptos-CKPSmGSC.mjs").then((T) => T.a)).default, sui = async () => (await import("./sui-sEkivVSe.mjs").then((T) => T.s)).default, cosmwasm = async () => (await import("./cosmwasm-CGolR9gL.mjs").then((T) => T.Q)).default, algorand = async () => (await import("./algorand-CIOlvhGh.mjs").then((T) => T.a)).default;
97955
97888
  var eventemitter3 = { exports: {} };
97956
97889
  (function(T) {
97957
97890
  var e = Object.prototype.hasOwnProperty, C = "~";
@@ -98294,14 +98227,14 @@ const walletConnection = {
98294
98227
  if (C.getNetworkInfo().chainId !== T) {
98295
98228
  if ($.context === Context.ETH)
98296
98229
  try {
98297
- const { switchChain: J } = await import("./evm-CkxKsuQ-.mjs").then((ee) => ee.j);
98230
+ const { switchChain: J } = await import("./evm-BILIyDaj.mjs").then((ee) => ee.j);
98298
98231
  await J(C, T);
98299
98232
  } catch (J) {
98300
98233
  if (J instanceof NotSupported) return;
98301
98234
  throw J;
98302
98235
  }
98303
98236
  if ($.context === Context.COSMOS) {
98304
- const { switchChain: J } = await import("./cosmos-0un-E2-0.mjs");
98237
+ const { switchChain: J } = await import("./cosmos-mLLSK_Nm.mjs");
98305
98238
  await J(C, T);
98306
98239
  }
98307
98240
  return C.getAddress();
@@ -98314,7 +98247,7 @@ const walletConnection = {
98314
98247
  if (!J)
98315
98248
  throw new Error("wallet is undefined");
98316
98249
  if (V.context === Context.ETH) {
98317
- const { signAndSendTransaction: ee } = await import("./evm-CkxKsuQ-.mjs").then((ne) => ne.j);
98250
+ const { signAndSendTransaction: ee } = await import("./evm-BILIyDaj.mjs").then((ne) => ne.j);
98318
98251
  return await ee(
98319
98252
  e,
98320
98253
  J,
@@ -98322,20 +98255,20 @@ const walletConnection = {
98322
98255
  $
98323
98256
  );
98324
98257
  } else if (V.context === Context.SOLANA) {
98325
- const { signAndSendTransaction: ee } = await import("./solana-CP3uz3z9.mjs");
98258
+ const { signAndSendTransaction: ee } = await import("./solana-DoXIYwUz.mjs");
98326
98259
  return await ee(
98327
98260
  e,
98328
98261
  J,
98329
98262
  $
98330
98263
  );
98331
98264
  } else if (V.context === Context.SUI) {
98332
- const { signAndSendTransaction: ee } = await import("./sui-C73zQuHR.mjs");
98265
+ const { signAndSendTransaction: ee } = await import("./sui-Bd2bm_yF.mjs");
98333
98266
  return (await ee(
98334
98267
  e,
98335
98268
  J
98336
98269
  )).id;
98337
98270
  } else if (V.context === Context.APTOS) {
98338
- const { signAndSendTransaction: ee } = await import("./aptos-BCuZuiBG.mjs");
98271
+ const { signAndSendTransaction: ee } = await import("./aptos-CrnZjgsh.mjs");
98339
98272
  return (await ee(
98340
98273
  e,
98341
98274
  J
@@ -98357,39 +98290,39 @@ const walletConnection = {
98357
98290
  if (T === void 0)
98358
98291
  return [];
98359
98292
  if (T.context === Context.ETH) {
98360
- const { wallets: e } = await import("./evm-CkxKsuQ-.mjs").then((C) => C.j);
98293
+ const { wallets: e } = await import("./evm-BILIyDaj.mjs").then((C) => C.j);
98361
98294
  return Object.values(mapWallets(e, Context.ETH));
98362
98295
  } else if (T.context === Context.SOLANA) {
98363
- const { fetchOptions: e } = await import("./solana-CP3uz3z9.mjs"), C = e();
98296
+ const { fetchOptions: e } = await import("./solana-DoXIYwUz.mjs"), C = e();
98364
98297
  return Object.values(mapWallets(C, Context.SOLANA));
98365
98298
  } else if (T.context === Context.SUI) {
98366
- const C = await (await import("./sui-C73zQuHR.mjs")).fetchOptions();
98299
+ const C = await (await import("./sui-Bd2bm_yF.mjs")).fetchOptions();
98367
98300
  return Object.values(mapWallets(C, Context.SUI));
98368
98301
  } else if (T.context === Context.APTOS) {
98369
- const C = (await import("./aptos-BCuZuiBG.mjs")).fetchOptions();
98302
+ const C = (await import("./aptos-CrnZjgsh.mjs")).fetchOptions();
98370
98303
  return Object.values(mapWallets(C, Context.APTOS));
98371
98304
  } else if (T.context === Context.SEI) {
98372
- const C = await (await import("./sei-CnR3Aw9g.mjs")).fetchOptions();
98305
+ const C = await (await import("./sei-J7Ndid0z.mjs")).fetchOptions();
98373
98306
  return Object.values(mapWallets(C, Context.SEI));
98374
98307
  } else if (T.context === Context.COSMOS)
98375
98308
  if (T.key === "Evmos") {
98376
98309
  const {
98377
98310
  wallets: { cosmosEvm: e }
98378
- } = await import("./cosmos-0un-E2-0.mjs");
98311
+ } = await import("./cosmos-mLLSK_Nm.mjs");
98379
98312
  return Object.values(
98380
98313
  mapWallets(e, Context.COSMOS, ["OKX Wallet"])
98381
98314
  );
98382
98315
  } else if (T.key === "Injective") {
98383
98316
  const {
98384
98317
  wallets: { cosmosEvm: e }
98385
- } = await import("./cosmos-0un-E2-0.mjs");
98318
+ } = await import("./cosmos-mLLSK_Nm.mjs");
98386
98319
  return Object.values(
98387
98320
  mapWallets(e, Context.COSMOS, ["OKX Wallet"])
98388
98321
  );
98389
98322
  } else {
98390
98323
  const {
98391
98324
  wallets: { cosmos: e }
98392
- } = await import("./cosmos-0un-E2-0.mjs");
98325
+ } = await import("./cosmos-mLLSK_Nm.mjs");
98393
98326
  return Object.values(mapWallets(e, Context.COSMOS));
98394
98327
  }
98395
98328
  return [];
@@ -110903,7 +110836,7 @@ function scale(T, e, C) {
110903
110836
  registerProtocol(_platform$1, "Ntt", EvmNtt);
110904
110837
  class SolanaChain extends ChainContext {
110905
110838
  async getTokenAccount(e, C) {
110906
- const { getAssociatedTokenAddress: $ } = await import("./index-DojwGTf0.mjs"), V = new SolanaAddress(C).unwrap(), J = new SolanaAddress(e).unwrap(), ee = await $(V, J);
110839
+ const { getAssociatedTokenAddress: $ } = await import("./index-C1jcO7wH.mjs"), V = new SolanaAddress(C).unwrap(), J = new SolanaAddress(e).unwrap(), ee = await $(V, J);
110907
110840
  return {
110908
110841
  chain: this.chain,
110909
110842
  address: new SolanaAddress(ee.toString())
@@ -145505,7 +145438,7 @@ const useFetchSupportedRoutes = () => {
145505
145438
  "49HqitRzdnhYjgTEAhgGpCfsjdTeMbUTU6cyR4JV1R7k2Eej9rGT8JpFiYDa4tZM6RZiFrHmMzgSrhHEqpDYKBe5B2ufNsL",
145506
145439
  "884Bz8UH63aYsjVdkfWfScRYWZGGNbjFL7pztqvWNSrtYT4reFSwyvkCj9KEGUtheHhhMUj87ciTBFyzoesrMJ4L1FvSoxL"
145507
145440
  ])
145508
- ), CCTP_MAX_TRANSFER_LIMIT = 1e6, validateFromChain = (T) => !T || !config$2.chains[T] ? "Select a source chain" : "", validateToChain = (T, e) => {
145441
+ ), validateFromChain = (T) => !T || !config$2.chains[T] ? "Select a source chain" : "", validateToChain = (T, e) => {
145509
145442
  if (!T || !config$2.chains[T]) return "Select a destination chain";
145510
145443
  if (e && T === e)
145511
145444
  return "Source chain and destination chain cannot be the same";
@@ -145535,18 +145468,16 @@ const useFetchSupportedRoutes = () => {
145535
145468
  return `${T} not available on ${e}, select a different token`;
145536
145469
  }
145537
145470
  return C.some((V) => V.key === T) ? "" : "No route available for this token, please select another";
145538
- }, validateAmount = (T, e, C, $) => {
145471
+ }, validateAmount = (T, e, C) => {
145539
145472
  if (T === "") return "";
145540
- const V = Number.parseFloat(T);
145541
- if (isNaN(V)) return "Amount must be a number";
145542
- if (V <= 0) return "Amount must be greater than 0";
145473
+ const $ = Number.parseFloat(T);
145474
+ if (isNaN($)) return "Amount must be a number";
145475
+ if ($ <= 0) return "Amount must be greater than 0";
145543
145476
  if (e) {
145544
- const J = Number.parseFloat(e.replace(",", ""));
145545
- if (V > J) return "Amount exceeds available balance.";
145477
+ const V = Number.parseFloat(e.replace(",", ""));
145478
+ if ($ > V) return "Amount exceeds available balance.";
145546
145479
  }
145547
- return $ && V >= CCTP_MAX_TRANSFER_LIMIT ? `Your transaction exceeds the maximum transfer limit of ${Intl.NumberFormat(
145548
- "en-EN"
145549
- ).format(CCTP_MAX_TRANSFER_LIMIT)} USDC. Please use a different amount.` : V > C ? `At the moment, amount cannot exceed ${C}` : "";
145480
+ return $ > C ? `At the moment, amount cannot exceed ${C}` : "";
145550
145481
  }, checkAddressIsSanctioned = (T) => SANCTIONED_WALLETS.has(T) || SANCTIONED_WALLETS.has("0x" + T), validateWallet = async (T, e) => {
145551
145482
  if (!T.address) return "Wallet not connected";
145552
145483
  try {
@@ -145567,10 +145498,6 @@ const useFetchSupportedRoutes = () => {
145567
145498
  if (!T) return !1;
145568
145499
  const e = config$2.routes.get(T);
145569
145500
  return e ? e.AUTOMATIC_DEPOSIT : !1;
145570
- }, isCctp = (T, e, C, $) => {
145571
- var ee, te, ne, ie;
145572
- return ((ee = config$2.tokens[T]) == null ? void 0 : ee.symbol) === "USDC" && ((te = config$2.tokens[e]) == null ? void 0 : te.symbol) === "USDC" && ((ne = config$2.tokens[T]) == null ? void 0 : ne.nativeChain) === C && ((ie = config$2.tokens[e]) == null ? void 0 : ie.nativeChain) === $ && (!!$ && //CCTP_CHAINS.includes(toChain) && TODO SDKV2
145573
- !!C);
145574
145501
  }, validateAll = async (T, e, C) => {
145575
145502
  const {
145576
145503
  fromChain: $,
@@ -145586,7 +145513,7 @@ const useFetchSupportedRoutes = () => {
145586
145513
  fe.address,
145587
145514
  $,
145588
145515
  J
145589
- ), we = getMaxAmt(ie), Te = isCctp(J, ee, $, V), Ee = {
145516
+ ), we = getMaxAmt(ie), Te = {
145590
145517
  sendingWallet: await validateWallet(fe, $),
145591
145518
  receivingWallet: await validateWallet(he, V),
145592
145519
  fromChain: validateFromChain($),
@@ -145596,17 +145523,16 @@ const useFetchSupportedRoutes = () => {
145596
145523
  amount: validateAmount(
145597
145524
  te,
145598
145525
  (xe == null ? void 0 : xe.balance) || null,
145599
- we,
145600
- Te
145526
+ we
145601
145527
  ),
145602
145528
  toNativeToken: "",
145603
145529
  relayerFee: "",
145604
145530
  receiveAmount: ""
145605
145531
  };
145606
- return be ? ie === "AutomaticNtt" ? Ee : {
145607
- ...Ee,
145532
+ return be ? ie === "AutomaticNtt" ? Te : {
145533
+ ...Te,
145608
145534
  toNativeToken: validateToNativeAmt(ue, de)
145609
- } : Ee;
145535
+ } : Te;
145610
145536
  }, isTransferValid = (T) => {
145611
145537
  for (const e of Object.values(T))
145612
145538
  if (e)
@@ -151407,7 +151333,7 @@ const useStyles$4 = makeStyles()((T) => ({
151407
151333
  },
151408
151334
  claimButton: {
151409
151335
  backgroundColor: T.palette.warning.light,
151410
- color: T.palette.background.default,
151336
+ color: T.palette.warning.contrastText ?? T.palette.background.default,
151411
151337
  "&:hover": {
151412
151338
  backgroundColor: T.palette.warning.main
151413
151339
  }
@@ -152434,7 +152360,8 @@ function AppRouter(T) {
152434
152360
  const { classes: e } = useStyles(), C = useDispatch(), $ = useContext(RouteContext);
152435
152361
  React__default.useEffect(() => {
152436
152362
  isEmptyObject(T.config) || (setConfig(T.config), C(clearTransfer())), config$2.triggerEvent({
152437
- type: "load"
152363
+ type: "load",
152364
+ config: T.config
152438
152365
  });
152439
152366
  }, []);
152440
152367
  const V = useSelector((te) => te.router.route), J = usePrevious(V), { hasExternalSearch: ee } = useExternalSearch();
@@ -1,8 +1,8 @@
1
1
  var J = Object.defineProperty;
2
2
  var K = (n, f, e) => f in n ? J(n, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[f] = e;
3
3
  var d = (n, f, e) => K(n, typeof f != "symbol" ? f + "" : f, e);
4
- import { ar as y, bS as f0, bT as z, bU as p, bV as e0, bW as a0, bX as t0, bY as _, bZ as b0, b_ as n0, b$ as d0, aj as L, c0 as O, E as v, a as C, c1 as D, u as U, bL as u, c2 as H, c3 as c0, c4 as N, bP as q, bQ as j, a8 as s0, c5 as i0, c6 as I, bE as S, aA as $, bR as V, _ as Q } from "./index-CjwA7HmM.mjs";
5
- import "./index-DIddLRbN.mjs";
4
+ import { ar as y, bS as f0, bT as z, bU as p, bV as e0, bW as a0, bX as t0, bY as _, bZ as b0, b_ as n0, b$ as d0, aj as L, c0 as O, E as v, a as C, c1 as D, u as U, bL as u, c2 as H, c3 as c0, c4 as N, bP as q, bQ as j, a8 as s0, c5 as i0, c6 as I, bE as S, aA as $, bR as V, _ as Q } from "./index-C2DCdxRC.mjs";
5
+ import "./index-DiF1ira9.mjs";
6
6
  const r0 = new RegExp("^bytes([0-9]+)$"), p0 = new RegExp("^(u?int)([0-9]*)$"), y0 = new RegExp("^(.*)\\[([0-9]*)\\]$");
7
7
  function X(n, f, e) {
8
8
  switch (n) {
@@ -1,6 +1,6 @@
1
- import { n as _t, s as ce, T as N, o as ot, R as Do, a as C, t as H, p as K, y as gt } from "./index-D0W1ZmqN.mjs";
1
+ import { n as _t, s as ce, T as N, o as ot, R as Do, a as C, t as H, p as K, y as gt } from "./index-BWe8c3sQ.mjs";
2
2
  import { d as Uo } from "./dijkstra-BZM-8g-B.mjs";
3
- import { Z as Wo } from "./index-CjwA7HmM.mjs";
3
+ import { Z as Wo } from "./index-C2DCdxRC.mjs";
4
4
  /**
5
5
  * @license
6
6
  * Copyright 2019 Google LLC
@@ -1 +1 @@
1
- "use strict";const me=Symbol(),se=Object.getPrototypeOf,G=new WeakMap,he=e=>e&&(G.has(e)?G.get(e):se(e)===Object.prototype||se(e)===Array.prototype),ge=e=>he(e)&&e[me]||null,ne=(e,t=!0)=>{G.set(e,t)},H={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,REACT_APP_CONNECT_GIT_HASH:"d90abfc17d7f6dabad6e4eaf30e06236336df324",REACT_APP_CONNECT_VERSION:"1.0.0-beta.5-development",SSR:!1},F=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,g)=>new Proxy(n,g),s=n=>F(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=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,g,I=r)=>{const v=l.get(n);if((v==null?void 0:v[0])===g)return v[1];const w=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return ne(w,!0),l.set(n,[g,w]),Reflect.ownKeys(n).forEach(_=>{if(Object.getOwnPropertyDescriptor(w,_))return;const L=Reflect.get(n,_),M={value:L,enumerable:!0,configurable:!0};if(x.has(L))ne(L,!1);else if(L instanceof Promise)delete M.value,M.get=()=>I(L);else if(A.has(L)){const[b,q]=A.get(L);M.value=c(b,q(),I)}Object.defineProperty(w,_,M)}),Object.preventExtensions(w)},m=new WeakMap,f=[1,1],W=n=>{if(!F(n))throw new Error("object required");const g=m.get(n);if(g)return g;let I=f[0];const v=new Set,w=(a,i=++f[0])=>{I!==i&&(I=i,v.forEach(o=>o(a,i)))};let _=f[1];const L=(a=++f[1])=>(_!==a&&!v.size&&(_=a,b.forEach(([i])=>{const o=i[1](a);o>I&&(I=o)})),I),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],w(h,o)},b=new Map,q=(a,i)=>{if((H?"production":void 0)!=="production"&&b.has(a))throw new Error("prop listener already exists");if(v.size){const o=i[3](M(a));b.set(a,[i,o])}else b.set(a,[i])},te=a=>{var i;const o=b.get(a);o&&(b.delete(a),(i=o[1])==null||i.call(o))},pe=a=>(v.add(a),v.size===1&&b.forEach(([o,h],k)=>{if((H?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const T=o[3](M(k));b.set(k,[o,T])}),()=>{v.delete(a),v.size===0&&b.forEach(([o,h],k)=>{h&&(h(),b.set(k,[o]))})}),J=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),$=t(J,{deleteProperty(a,i){const o=Reflect.get(a,i);te(i);const h=Reflect.deleteProperty(a,i);return h&&w(["delete",[i],o]),h},set(a,i,o,h){const k=Reflect.has(a,i),T=Reflect.get(a,i,h);if(k&&(e(T,o)||m.has(o)&&e(T,m.get(o))))return!0;te(i),F(o)&&(o=ge(o)||o);let V=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,w(["resolve",[i],C])}).catch(C=>{o.status="rejected",o.reason=C,w(["reject",[i],C])});else{!A.has(o)&&s(o)&&(V=W(o));const C=!x.has(V)&&A.get(V);C&&q(i,C)}return Reflect.set(a,i,V,h),w(["set",[i],o,T]),!0}});m.set(n,$);const fe=[J,L,c,pe];return A.set($,fe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&($[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(J,a,i)}),$})=>[W,A,x,e,t,s,r,l,c,m,f],[ye]=be();function j(e={}){return ye(e)}function D(e,t,s){const r=A.get(e);(H?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(g=>{c.push(g),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ve(e,t){const s=A.get(e);(H?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),ee={state:d,subscribe(e){return D(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return u.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=ee.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ue={state:p,subscribe(e){return D(p.events,()=>e(ve(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},E=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),y={state:E,subscribe(e){return D(E,()=>e(E))},setChains(e){E.chains=e},setWalletConnectUri(e){E.walletConnectUri=e},setIsCustomDesktop(e){E.isCustomDesktop=e},setIsCustomMobile(e){E.isCustomMobile=e},setIsDataLoaded(e){E.isDataLoaded=e},setIsUiLoaded(e){E.isUiLoaded=e},setIsAuth(e){E.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),U={state:B,subscribe(e){return D(B,()=>e(B))},setConfig(e){var t,s;ue.initialize(),y.setChains(e.chains),y.setIsAuth(!!e.enableAuthMode),y.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),y.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),u.setModalVersionInStorage(),Object.assign(B,e)}};var Ie=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))Ee.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Oe.call(t,s)&&re(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",X="wcm",Y="js-2.6.2";async function K(e,t){const s=Le({sdkType:X,sdkVersion:Y},t),r=new URL(e,Q);return r.searchParams.append("projectId",U.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const P={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${U.state.projectId}&sdkType=${X}&sdkVersion=${Y}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${U.state.projectId}&sdkType=${X}&sdkVersion=${Y}`}};var We=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ae=(e,t,s)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,je=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&ae(e,s,t[s]);if(ie)for(var s of ie(t))Ae.call(t,s)&&ae(e,s,t[s]);return e};const le=u.isMobile(),O=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Me={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=U.state;if(e==="NONE"||t==="ALL"&&!e)return O.recomendedWallets;if(u.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await P.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),W=e.indexOf(m.id);return f-W}),O.recomendedWallets=l}else{const{chains:s,isAuth:r}=y.state,l=s==null?void 0:s.join(","),c=u.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=le?await P.getMobileListings(m):await P.getDesktopListings(m);O.recomendedWallets=Object.values(f)}return O.recomendedWallets},async getWallets(e){const t=je({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=U.state,{recomendedWallets:l}=O;if(r==="ALL")return O.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),y.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:W}=le?await P.getMobileListings(t):await P.getDesktopListings(t),n=Object.values(f),g=m?"search":"wallets";return O[g]={listings:[...O[g].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return P.getWalletImageUrl(e)},getAssetImageUrl(e){return P.getAssetImageUrl(e)},resetSearch(){O.search={listings:[],total:0,page:1}}},N=j({open:!1}),z={state:N,subscribe(e){return D(N,()=>e(N))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=y.state;if(u.removeWalletConnectDeepLink(),y.setWalletConnectUri(e==null?void 0:e.uri),y.setChains(e==null?void 0:e.chains),ee.reset("ConnectWallet"),s&&r)N.open=!0,t();else{const l=setInterval(()=>{const c=y.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),N.open=!0,t())},200)}})},close(){N.open=!1}};var Pe=Object.defineProperty,ce=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,de=(e,t,s)=>t in e?Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&de(e,s,t[s]);if(ce)for(var s of ce(t))Ue.call(t,s)&&de(e,s,t[s]);return e};function _e(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const R=j({themeMode:_e()?"dark":"light"}),Z={state:R,subscribe(e){return D(R,()=>e(R))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(R.themeMode=t),s&&(R.themeVariables=De({},s))}},S=j({open:!1,message:"",variant:"success"}),ke={state:S,subscribe(e){return D(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class Ne{constructor(t){this.openModal=z.open,this.closeModal=z.close,this.subscribeModal=z.subscribe,this.setTheme=Z.setThemeConfig,Z.setThemeConfig(t),U.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-6gwCyfQU.js"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),y.setIsUiLoaded(!0)}}}const Te=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:Ne},Symbol.toStringTag,{value:"Module"}));exports.R=ue;exports.T=ee;exports.a=u;exports.index=Te;exports.ne=Z;exports.oe=ke;exports.p=y;exports.se=z;exports.te=Me;exports.y=U;
1
+ "use strict";const me=Symbol(),se=Object.getPrototypeOf,G=new WeakMap,he=e=>e&&(G.has(e)?G.get(e):se(e)===Object.prototype||se(e)===Array.prototype),ge=e=>he(e)&&e[me]||null,ne=(e,t=!0)=>{G.set(e,t)},H={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,REACT_APP_CONNECT_GIT_HASH:"66567716b06cd59468bd3f6c21d89fba8d52a52d",REACT_APP_CONNECT_VERSION:"1.0.0-beta.6-development",SSR:!1},F=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,g)=>new Proxy(n,g),s=n=>F(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=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,g,I=r)=>{const v=l.get(n);if((v==null?void 0:v[0])===g)return v[1];const w=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return ne(w,!0),l.set(n,[g,w]),Reflect.ownKeys(n).forEach(_=>{if(Object.getOwnPropertyDescriptor(w,_))return;const L=Reflect.get(n,_),M={value:L,enumerable:!0,configurable:!0};if(x.has(L))ne(L,!1);else if(L instanceof Promise)delete M.value,M.get=()=>I(L);else if(A.has(L)){const[b,q]=A.get(L);M.value=c(b,q(),I)}Object.defineProperty(w,_,M)}),Object.preventExtensions(w)},m=new WeakMap,f=[1,1],W=n=>{if(!F(n))throw new Error("object required");const g=m.get(n);if(g)return g;let I=f[0];const v=new Set,w=(a,i=++f[0])=>{I!==i&&(I=i,v.forEach(o=>o(a,i)))};let _=f[1];const L=(a=++f[1])=>(_!==a&&!v.size&&(_=a,b.forEach(([i])=>{const o=i[1](a);o>I&&(I=o)})),I),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],w(h,o)},b=new Map,q=(a,i)=>{if((H?"production":void 0)!=="production"&&b.has(a))throw new Error("prop listener already exists");if(v.size){const o=i[3](M(a));b.set(a,[i,o])}else b.set(a,[i])},te=a=>{var i;const o=b.get(a);o&&(b.delete(a),(i=o[1])==null||i.call(o))},pe=a=>(v.add(a),v.size===1&&b.forEach(([o,h],k)=>{if((H?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const T=o[3](M(k));b.set(k,[o,T])}),()=>{v.delete(a),v.size===0&&b.forEach(([o,h],k)=>{h&&(h(),b.set(k,[o]))})}),J=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),$=t(J,{deleteProperty(a,i){const o=Reflect.get(a,i);te(i);const h=Reflect.deleteProperty(a,i);return h&&w(["delete",[i],o]),h},set(a,i,o,h){const k=Reflect.has(a,i),T=Reflect.get(a,i,h);if(k&&(e(T,o)||m.has(o)&&e(T,m.get(o))))return!0;te(i),F(o)&&(o=ge(o)||o);let V=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,w(["resolve",[i],C])}).catch(C=>{o.status="rejected",o.reason=C,w(["reject",[i],C])});else{!A.has(o)&&s(o)&&(V=W(o));const C=!x.has(V)&&A.get(V);C&&q(i,C)}return Reflect.set(a,i,V,h),w(["set",[i],o,T]),!0}});m.set(n,$);const fe=[J,L,c,pe];return A.set($,fe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&($[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(J,a,i)}),$})=>[W,A,x,e,t,s,r,l,c,m,f],[ye]=be();function j(e={}){return ye(e)}function D(e,t,s){const r=A.get(e);(H?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(g=>{c.push(g),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ve(e,t){const s=A.get(e);(H?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),ee={state:d,subscribe(e){return D(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return u.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=ee.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ue={state:p,subscribe(e){return D(p.events,()=>e(ve(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},E=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),y={state:E,subscribe(e){return D(E,()=>e(E))},setChains(e){E.chains=e},setWalletConnectUri(e){E.walletConnectUri=e},setIsCustomDesktop(e){E.isCustomDesktop=e},setIsCustomMobile(e){E.isCustomMobile=e},setIsDataLoaded(e){E.isDataLoaded=e},setIsUiLoaded(e){E.isUiLoaded=e},setIsAuth(e){E.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),U={state:B,subscribe(e){return D(B,()=>e(B))},setConfig(e){var t,s;ue.initialize(),y.setChains(e.chains),y.setIsAuth(!!e.enableAuthMode),y.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),y.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),u.setModalVersionInStorage(),Object.assign(B,e)}};var Ie=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))Ee.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Oe.call(t,s)&&re(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",X="wcm",Y="js-2.6.2";async function K(e,t){const s=Le({sdkType:X,sdkVersion:Y},t),r=new URL(e,Q);return r.searchParams.append("projectId",U.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const P={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${U.state.projectId}&sdkType=${X}&sdkVersion=${Y}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${U.state.projectId}&sdkType=${X}&sdkVersion=${Y}`}};var We=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ae=(e,t,s)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,je=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&ae(e,s,t[s]);if(ie)for(var s of ie(t))Ae.call(t,s)&&ae(e,s,t[s]);return e};const le=u.isMobile(),O=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Me={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=U.state;if(e==="NONE"||t==="ALL"&&!e)return O.recomendedWallets;if(u.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await P.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),W=e.indexOf(m.id);return f-W}),O.recomendedWallets=l}else{const{chains:s,isAuth:r}=y.state,l=s==null?void 0:s.join(","),c=u.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=le?await P.getMobileListings(m):await P.getDesktopListings(m);O.recomendedWallets=Object.values(f)}return O.recomendedWallets},async getWallets(e){const t=je({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=U.state,{recomendedWallets:l}=O;if(r==="ALL")return O.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),y.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:W}=le?await P.getMobileListings(t):await P.getDesktopListings(t),n=Object.values(f),g=m?"search":"wallets";return O[g]={listings:[...O[g].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return P.getWalletImageUrl(e)},getAssetImageUrl(e){return P.getAssetImageUrl(e)},resetSearch(){O.search={listings:[],total:0,page:1}}},N=j({open:!1}),z={state:N,subscribe(e){return D(N,()=>e(N))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=y.state;if(u.removeWalletConnectDeepLink(),y.setWalletConnectUri(e==null?void 0:e.uri),y.setChains(e==null?void 0:e.chains),ee.reset("ConnectWallet"),s&&r)N.open=!0,t();else{const l=setInterval(()=>{const c=y.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),N.open=!0,t())},200)}})},close(){N.open=!1}};var Pe=Object.defineProperty,ce=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,de=(e,t,s)=>t in e?Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&de(e,s,t[s]);if(ce)for(var s of ce(t))Ue.call(t,s)&&de(e,s,t[s]);return e};function _e(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const R=j({themeMode:_e()?"dark":"light"}),Z={state:R,subscribe(e){return D(R,()=>e(R))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(R.themeMode=t),s&&(R.themeVariables=De({},s))}},S=j({open:!1,message:"",variant:"success"}),ke={state:S,subscribe(e){return D(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class Ne{constructor(t){this.openModal=z.open,this.closeModal=z.close,this.subscribeModal=z.subscribe,this.setTheme=Z.setThemeConfig,Z.setThemeConfig(t),U.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-AslWQnUt.js"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),y.setIsUiLoaded(!0)}}}const Te=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:Ne},Symbol.toStringTag,{value:"Module"}));exports.R=ue;exports.T=ee;exports.a=u;exports.index=Te;exports.ne=Z;exports.oe=ke;exports.p=y;exports.se=z;exports.te=Me;exports.y=U;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("./index-CDGktAjP.js"),Bl=require("./dijkstra-CtFxn7S9.js"),Vt=require("./events-wpqGOay9.js"),$=require("./index-DVKptZW_.js"),K=require("./index-CtJdy4GW.js");let kl=class extends $.r{constructor(e){super(e),this.events=new Vt.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($.formatJsonRpcRequest(e.method,e.params||[],e.id||$.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=>{$.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),$.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 Dl=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()}},Ul=Dl,Po={"text/plain":"Text","text/html":"Url",default:"Text"},Ll="Copy to clipboard: #{key}, Enter";function ql(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function $l(t,e){var r,i,n,s,o,a,h=!1;e||(e={}),r=e.debug||!1;try{n=Ul(),s=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(p){if(p.stopPropagation(),e.format)if(p.preventDefault(),typeof p.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=Po[e.format]||Po.default;window.clipboardData.setData(y,t)}else p.clipboardData.clearData(),p.clipboardData.setData(e.format,t);e.onCopy&&(p.preventDefault(),e.onCopy(p.clipboardData))}),document.body.appendChild(a),s.selectNodeContents(a),o.addRange(s);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");h=!0}catch(p){r&&console.error("unable to copy using execCommand: ",p),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),h=!0}catch(y){r&&console.error("unable to copy using clipboardData: ",y),r&&console.error("falling back to prompt"),i=ql("message"in e?e.message:Ll),window.prompt(i,t)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(s):o.removeAllRanges()),a&&document.body.removeChild(a),n()}return h}var zl=$l,jl={}.toString,Zs=Array.isArray||function(t){return jl.call(t)=="[object Array]"},Kl=Z.requireElliptic(),eo={},ze={};Object.defineProperty(ze,"__esModule",{value:!0});var Oc=ze.getLocalStorage=Hc=ze.getLocalStorageOrThrow=Kc=ze.getCrypto=jc=ze.getCryptoOrThrow=zc=ze.getLocation=$c=ze.getLocationOrThrow=qc=ze.getNavigator=Lc=ze.getNavigatorOrThrow=Uc=ze.getDocument=Dc=ze.getDocumentOrThrow=kc=ze.getFromWindowOrThrow=Bc=ze.getFromWindow=void 0;function Ur(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}var Bc=ze.getFromWindow=Ur;function si(t){const e=Ur(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}var kc=ze.getFromWindowOrThrow=si;function Hl(){return si("document")}var Dc=ze.getDocumentOrThrow=Hl;function Vl(){return Ur("document")}var Uc=ze.getDocument=Vl;function Jl(){return si("navigator")}var Lc=ze.getNavigatorOrThrow=Jl;function Wl(){return Ur("navigator")}var qc=ze.getNavigator=Wl;function Gl(){return si("location")}var $c=ze.getLocationOrThrow=Gl;function Ql(){return Ur("location")}var zc=ze.getLocation=Ql;function Yl(){return si("crypto")}var jc=ze.getCryptoOrThrow=Yl;function Xl(){return Ur("crypto")}var Kc=ze.getCrypto=Xl;function Zl(){return si("localStorage")}var Hc=ze.getLocalStorageOrThrow=Zl;function ef(){return Ur("localStorage")}Oc=ze.getLocalStorage=ef;Object.defineProperty(eo,"__esModule",{value:!0});var Vc=eo.getWindowMetadata=void 0;const To=ze;function tf(){let t,e;try{t=To.getDocumentOrThrow(),e=To.getLocationOrThrow()}catch{return null}function r(){const y=t.getElementsByTagName("link"),C=[];for(let E=0;E<y.length;E++){const v=y[E],k=v.getAttribute("rel");if(k&&k.toLowerCase().indexOf("icon")>-1){const B=v.getAttribute("href");if(B)if(B.toLowerCase().indexOf("https:")===-1&&B.toLowerCase().indexOf("http:")===-1&&B.indexOf("//")!==0){let U=e.protocol+"//"+e.host;if(B.indexOf("/")===0)U+=B;else{const A=e.pathname.split("/");A.pop();const F=A.join("/");U+=F+"/"+B}C.push(U)}else if(B.indexOf("//")===0){const U=e.protocol+B;C.push(U)}else C.push(B)}}return C}function i(...y){const C=t.getElementsByTagName("meta");for(let E=0;E<C.length;E++){const v=C[E],k=["itemprop","property","name"].map(B=>v.getAttribute(B)).filter(B=>B?y.includes(B):!1);if(k.length&&k){const B=v.getAttribute("content");if(B)return B}}return""}function n(){let y=i("name","og:site_name","og:title","twitter:title");return y||(y=t.title),y}function s(){return i("description","og:description","twitter:description","keywords")}const o=n(),a=s(),h=e.origin,d=r();return{description:a,url:h,icons:d,name:o}}Vc=eo.getWindowMetadata=tf;var rf=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,a=s.length;o<a;o++,n++)i[n]=s[o];return i},nf=function(){function t(e,r,i){this.name=e,this.version=r,this.os=i,this.type="browser"}return t}(),sf=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=Z.dist.process.platform}return t}(),of=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}(),af=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),cf=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),hf=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,uf=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Oo=3,lf=[["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",hf]],Bo=[["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 ff(t){return t?ko(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new cf:typeof navigator<"u"?ko(navigator.userAgent):gf()}function df(t){return t!==""&&lf.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 ko(t){var e=df(t);if(!e)return null;var r=e[0],i=e[1];if(r==="searchbot")return new af;var n=i[1]&&i[1].split(/[._]/).slice(0,3);n?n.length<Oo&&(n=rf(n,mf(Oo-n.length))):n=[];var s=n.join("."),o=pf(t),a=uf.exec(t);return a&&a[1]?new of(r,s,o,a[1]):new nf(r,s,o)}function pf(t){for(var e=0,r=Bo.length;e<r;e++){var i=Bo[e],n=i[0],s=i[1],o=s.exec(t);if(o)return n}return null}function gf(){var t=typeof Z.dist.process<"u"&&Z.dist.process.version;return t?new sf(Z.dist.process.version.slice(1)):null}function mf(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}function to(t){return ff(t)}function En(){const t=to();return t&&t.os?t.os:void 0}function Jc(){const t=En();return t?t.toLowerCase().includes("android"):!1}function Wc(){const t=En();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function yf(){return En()?Jc()||Wc():!1}function Gc(){const t=to();return t&&t.name?t.name.toLowerCase()==="node":!1}function wf(){return!Gc()&&!!Qc()}const vf=Bc,bf=kc,_f=Dc,Af=Uc,Ef=Lc,Qc=qc,Sf=$c,If=zc,Mf=jc,Nf=Kc,xf=Hc,Sn=Oc;function Cf(){return Vc()}function Ff(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 Rf(t){return typeof t=="string"?t:JSON.stringify(t)}const Yc=Ff,Xc=Rf;function Zc(t,e){const r=Xc(e),i=Sn();i&&i.setItem(t,r)}function Pf(t){let e=null,r=null;const i=Sn();return i&&(r=i.getItem(t)),e=r&&Yc(r),e}function Tf(t){const e=Sn();e&&e.removeItem(t)}const eh="WALLETCONNECT_DEEPLINK_CHOICE";function Of(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 Bf(t){const e=t.href.split("?")[0];Zc(eh,Object.assign(Object.assign({},t),{href:e}))}function th(t,e){return t.filter(r=>r.name.toLowerCase().includes(e.toLowerCase()))[0]}function kf(t,e){let r=t;return e&&(r=e.map(i=>th(t,i)).filter(Boolean)),r}const rh="https://registry.walletconnect.com";function Df(){return rh+"/api/v2/wallets"}function Uf(){return rh+"/api/v2/dapps"}function ih(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 Lf(t,e="mobile"){return Object.values(t).filter(r=>!!r[e].universal||!!r[e].native).map(r=>ih(r,e))}const qf=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:to,detectOS:En,formatIOSMobile:Of,formatMobileRegistry:Lf,formatMobileRegistryEntry:ih,getClientMeta:Cf,getCrypto:Nf,getCryptoOrThrow:Mf,getDappRegistryUrl:Uf,getDocument:Af,getDocumentOrThrow:_f,getFromWindow:vf,getFromWindowOrThrow:bf,getLocal:Pf,getLocalStorage:Sn,getLocalStorageOrThrow:xf,getLocation:If,getLocationOrThrow:Sf,getMobileLinkRegistry:kf,getMobileRegistryEntry:th,getNavigator:Qc,getNavigatorOrThrow:Ef,getWalletRegistryUrl:Df,isAndroid:Jc,isBrowser:wf,isIOS:Wc,isMobile:yf,isNode:Gc,mobileLinkChoiceKey:eh,removeLocal:Tf,safeJsonParse:Yc,safeJsonStringify:Xc,saveMobileLinkInfo:Bf,setLocal:Zc},Symbol.toStringTag,{value:"Module"})),$f=Z.getAugmentedNamespace(qf);var Oi={},zf=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},nh={},Fr={},jf=Zs;function Kf(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42}catch{return!1}}Pe.TYPED_ARRAY_SUPPORT=Kf();var Do=Pe.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function Pe(t,e,r){return!Pe.TYPED_ARRAY_SUPPORT&&!(this instanceof Pe)?new Pe(t,e,r):typeof t=="number"?sh(this,t):Yf(this,t,e,r)}Pe.TYPED_ARRAY_SUPPORT&&(Pe.prototype.__proto__=Uint8Array.prototype,Pe.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&Pe[Symbol.species]===Pe&&Object.defineProperty(Pe,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function ro(t){if(t>=Do)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Do.toString(16)+" bytes");return t|0}function Hf(t){return t!==t}function Yr(t,e){var r;return Pe.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=Pe.prototype):(r=t,r===null&&(r=new Pe(e)),r.length=e),r}function sh(t,e){var r=Yr(t,e<0?0:ro(e)|0);if(!Pe.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)r[i]=0;return r}function Vf(t,e){var r=ah(e)|0,i=Yr(t,r),n=i.write(e);return n!==r&&(i=i.slice(0,n)),i}function Ms(t,e){for(var r=e.length<0?0:ro(e.length)|0,i=Yr(t,r),n=0;n<r;n+=1)i[n]=e[n]&255;return i}function Jf(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),Pe.TYPED_ARRAY_SUPPORT?n.__proto__=Pe.prototype:n=Ms(t,n),n}function Wf(t,e){if(Pe.isBuffer(e)){var r=ro(e.length)|0,i=Yr(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"||Hf(e.length)?Yr(t,0):Ms(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ms(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function oh(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 ah(t){if(Pe.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:oh(t).length}function Gf(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 Qf(t,e,r,i){return Gf(oh(e,t.length-r),t,r,i)}function Yf(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?Jf(t,e,r,i):typeof e=="string"?Vf(t,e):Wf(t,e)}Pe.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 Qf(this,e,r,i)};Pe.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(Pe.TYPED_ARRAY_SUPPORT)n=this.subarray(e,r),n.__proto__=Pe.prototype;else{var s=r-e;n=new Pe(s,void 0);for(var o=0;o<s;++o)n[o]=this[o+e]}return n};Pe.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||!Pe.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};Pe.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=Pe.isBuffer(e)?e:new Pe(e),a=o.length;for(s=0;s<i-r;++s)this[s+r]=o[s%a]}return this};Pe.concat=function(e,r){if(!jf(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Yr(null,0);var i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;var n=sh(null,r),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!Pe.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n};Pe.byteLength=ah;Pe.prototype._isBuffer=!0;Pe.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};Fr.alloc=function(t){var e=new Pe(t);return e.fill(0),e};Fr.from=function(t){return new Pe(t)};var Pt={},io,Xf=[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];Pt.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};Pt.getSymbolTotalCodewords=function(e){return Xf[e]};Pt.getBCHDigit=function(t){for(var e=0;t!==0;)e++,t>>>=1;return e};Pt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');io=e};Pt.isKanjiModeEnabled=function(){return typeof io<"u"};Pt.toSJIS=function(e){return io(e)};var In={};(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}}})(In);function ch(){this.buffer=[],this.length=0}ch.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 Zf=ch,Uo=Fr;function Bi(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=Uo.alloc(t*t),this.reservedBit=Uo.alloc(t*t)}Bi.prototype.set=function(t,e,r,i){var n=t*this.size+e;this.data[n]=r,i&&(this.reservedBit[n]=!0)};Bi.prototype.get=function(t,e){return this.data[t*this.size+e]};Bi.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Bi.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var ed=Bi,hh={};(function(t){var e=Pt.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,a=[s-7],h=1;h<n-1;h++)a[h]=a[h-1]-o;return a.push(6),a.reverse()},t.getPositions=function(i){for(var n=[],s=t.getRowColCoords(i),o=s.length,a=0;a<o;a++)for(var h=0;h<o;h++)a===0&&h===0||a===0&&h===o-1||a===o-1&&h===0||n.push([s[a],s[h]]);return n}})(hh);var uh={},td=Pt.getSymbolSize,Lo=7;uh.getPositions=function(e){var r=td(e);return[[0,0],[r-Lo,0],[0,r-Lo]]};var lh={};(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,a=0,h=0,d=null,p=null,y=0;y<s;y++){a=h=0,d=p=null;for(var C=0;C<s;C++){var E=n.get(y,C);E===d?a++:(a>=5&&(o+=e.N1+(a-5)),d=E,a=1),E=n.get(C,y),E===p?h++:(h>=5&&(o+=e.N1+(h-5)),p=E,h=1)}a>=5&&(o+=e.N1+(a-5)),h>=5&&(o+=e.N1+(h-5))}return o},t.getPenaltyN2=function(n){for(var s=n.size,o=0,a=0;a<s-1;a++)for(var h=0;h<s-1;h++){var d=n.get(a,h)+n.get(a,h+1)+n.get(a+1,h)+n.get(a+1,h+1);(d===4||d===0)&&o++}return o*e.N2},t.getPenaltyN3=function(n){for(var s=n.size,o=0,a=0,h=0,d=0;d<s;d++){a=h=0;for(var p=0;p<s;p++)a=a<<1&2047|n.get(d,p),p>=10&&(a===1488||a===93)&&o++,h=h<<1&2047|n.get(p,d),p>=10&&(h===1488||h===93)&&o++}return o*e.N3},t.getPenaltyN4=function(n){for(var s=0,o=n.data.length,a=0;a<o;a++)s+=n.data[a];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,a=0;a<o;a++)for(var h=0;h<o;h++)s.isReserved(h,a)||s.xor(h,a,r(n,h,a))},t.getBestMask=function(n,s){for(var o=Object.keys(t.Patterns).length,a=0,h=1/0,d=0;d<o;d++){s(d),t.applyMask(d,n);var p=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(d,n),p<h&&(h=p,a=d)}return a}})(lh);var Mn={},xr=In,Vi=[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],Ji=[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];Mn.getBlocksCount=function(e,r){switch(r){case xr.L:return Vi[(e-1)*4+0];case xr.M:return Vi[(e-1)*4+1];case xr.Q:return Vi[(e-1)*4+2];case xr.H:return Vi[(e-1)*4+3];default:return}};Mn.getTotalCodewordsCount=function(e,r){switch(r){case xr.L:return Ji[(e-1)*4+0];case xr.M:return Ji[(e-1)*4+1];case xr.Q:return Ji[(e-1)*4+2];case xr.H:return Ji[(e-1)*4+3];default:return}};var fh={},Nn={},dh=Fr,_i=dh.alloc(512),cn=dh.alloc(256);(function(){for(var e=1,r=0;r<255;r++)_i[r]=e,cn[e]=r,e<<=1,e&256&&(e^=285);for(r=255;r<512;r++)_i[r]=_i[r-255]})();Nn.log=function(e){if(e<1)throw new Error("log("+e+")");return cn[e]};Nn.exp=function(e){return _i[e]};Nn.mul=function(e,r){return e===0||r===0?0:_i[cn[e]+cn[r]]};(function(t){var e=Fr,r=Nn;t.mul=function(n,s){for(var o=e.alloc(n.length+s.length-1),a=0;a<n.length;a++)for(var h=0;h<s.length;h++)o[a+h]^=r.mul(n[a],s[h]);return o},t.mod=function(n,s){for(var o=e.from(n);o.length-s.length>=0;){for(var a=o[0],h=0;h<s.length;h++)o[h]^=r.mul(s[h],a);for(var d=0;d<o.length&&o[d]===0;)d++;o=o.slice(d)}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}})(fh);var qo=Fr,ph=fh,rd=Z.bufferPolyfill.Buffer;function no(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}no.prototype.initialize=function(e){this.degree=e,this.genPoly=ph.generateECPolynomial(this.degree)};no.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var r=qo.alloc(this.degree),i=rd.concat([e,r],e.length+this.degree),n=ph.mod(i,this.genPoly),s=this.degree-n.length;if(s>0){var o=qo.alloc(this.degree);return n.copy(o,s),o}return n};var id=no,gh={},Rr={},so={};so.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var nr={},mh="[0-9]+",nd="[A-Z $%*+\\-./:]+",Ni="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ni=Ni.replace(/u/g,"\\u");var sd="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ni+`)(?:.|[\r
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("./index-BHGS0dw3.js"),Bl=require("./dijkstra-CtFxn7S9.js"),Vt=require("./events-BSNN9qkd.js"),$=require("./index-BVxqSkXh.js"),K=require("./index-Cd8xotiJ.js");let kl=class extends $.r{constructor(e){super(e),this.events=new Vt.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($.formatJsonRpcRequest(e.method,e.params||[],e.id||$.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=>{$.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),$.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 Dl=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()}},Ul=Dl,Po={"text/plain":"Text","text/html":"Url",default:"Text"},Ll="Copy to clipboard: #{key}, Enter";function ql(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function $l(t,e){var r,i,n,s,o,a,h=!1;e||(e={}),r=e.debug||!1;try{n=Ul(),s=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(p){if(p.stopPropagation(),e.format)if(p.preventDefault(),typeof p.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=Po[e.format]||Po.default;window.clipboardData.setData(y,t)}else p.clipboardData.clearData(),p.clipboardData.setData(e.format,t);e.onCopy&&(p.preventDefault(),e.onCopy(p.clipboardData))}),document.body.appendChild(a),s.selectNodeContents(a),o.addRange(s);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");h=!0}catch(p){r&&console.error("unable to copy using execCommand: ",p),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),h=!0}catch(y){r&&console.error("unable to copy using clipboardData: ",y),r&&console.error("falling back to prompt"),i=ql("message"in e?e.message:Ll),window.prompt(i,t)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(s):o.removeAllRanges()),a&&document.body.removeChild(a),n()}return h}var zl=$l,jl={}.toString,Zs=Array.isArray||function(t){return jl.call(t)=="[object Array]"},Kl=Z.requireElliptic(),eo={},ze={};Object.defineProperty(ze,"__esModule",{value:!0});var Oc=ze.getLocalStorage=Hc=ze.getLocalStorageOrThrow=Kc=ze.getCrypto=jc=ze.getCryptoOrThrow=zc=ze.getLocation=$c=ze.getLocationOrThrow=qc=ze.getNavigator=Lc=ze.getNavigatorOrThrow=Uc=ze.getDocument=Dc=ze.getDocumentOrThrow=kc=ze.getFromWindowOrThrow=Bc=ze.getFromWindow=void 0;function Ur(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}var Bc=ze.getFromWindow=Ur;function si(t){const e=Ur(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}var kc=ze.getFromWindowOrThrow=si;function Hl(){return si("document")}var Dc=ze.getDocumentOrThrow=Hl;function Vl(){return Ur("document")}var Uc=ze.getDocument=Vl;function Jl(){return si("navigator")}var Lc=ze.getNavigatorOrThrow=Jl;function Wl(){return Ur("navigator")}var qc=ze.getNavigator=Wl;function Gl(){return si("location")}var $c=ze.getLocationOrThrow=Gl;function Ql(){return Ur("location")}var zc=ze.getLocation=Ql;function Yl(){return si("crypto")}var jc=ze.getCryptoOrThrow=Yl;function Xl(){return Ur("crypto")}var Kc=ze.getCrypto=Xl;function Zl(){return si("localStorage")}var Hc=ze.getLocalStorageOrThrow=Zl;function ef(){return Ur("localStorage")}Oc=ze.getLocalStorage=ef;Object.defineProperty(eo,"__esModule",{value:!0});var Vc=eo.getWindowMetadata=void 0;const To=ze;function tf(){let t,e;try{t=To.getDocumentOrThrow(),e=To.getLocationOrThrow()}catch{return null}function r(){const y=t.getElementsByTagName("link"),C=[];for(let E=0;E<y.length;E++){const v=y[E],k=v.getAttribute("rel");if(k&&k.toLowerCase().indexOf("icon")>-1){const B=v.getAttribute("href");if(B)if(B.toLowerCase().indexOf("https:")===-1&&B.toLowerCase().indexOf("http:")===-1&&B.indexOf("//")!==0){let U=e.protocol+"//"+e.host;if(B.indexOf("/")===0)U+=B;else{const A=e.pathname.split("/");A.pop();const F=A.join("/");U+=F+"/"+B}C.push(U)}else if(B.indexOf("//")===0){const U=e.protocol+B;C.push(U)}else C.push(B)}}return C}function i(...y){const C=t.getElementsByTagName("meta");for(let E=0;E<C.length;E++){const v=C[E],k=["itemprop","property","name"].map(B=>v.getAttribute(B)).filter(B=>B?y.includes(B):!1);if(k.length&&k){const B=v.getAttribute("content");if(B)return B}}return""}function n(){let y=i("name","og:site_name","og:title","twitter:title");return y||(y=t.title),y}function s(){return i("description","og:description","twitter:description","keywords")}const o=n(),a=s(),h=e.origin,d=r();return{description:a,url:h,icons:d,name:o}}Vc=eo.getWindowMetadata=tf;var rf=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,a=s.length;o<a;o++,n++)i[n]=s[o];return i},nf=function(){function t(e,r,i){this.name=e,this.version=r,this.os=i,this.type="browser"}return t}(),sf=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=Z.dist.process.platform}return t}(),of=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}(),af=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),cf=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),hf=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,uf=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Oo=3,lf=[["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",hf]],Bo=[["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 ff(t){return t?ko(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new cf:typeof navigator<"u"?ko(navigator.userAgent):gf()}function df(t){return t!==""&&lf.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 ko(t){var e=df(t);if(!e)return null;var r=e[0],i=e[1];if(r==="searchbot")return new af;var n=i[1]&&i[1].split(/[._]/).slice(0,3);n?n.length<Oo&&(n=rf(n,mf(Oo-n.length))):n=[];var s=n.join("."),o=pf(t),a=uf.exec(t);return a&&a[1]?new of(r,s,o,a[1]):new nf(r,s,o)}function pf(t){for(var e=0,r=Bo.length;e<r;e++){var i=Bo[e],n=i[0],s=i[1],o=s.exec(t);if(o)return n}return null}function gf(){var t=typeof Z.dist.process<"u"&&Z.dist.process.version;return t?new sf(Z.dist.process.version.slice(1)):null}function mf(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}function to(t){return ff(t)}function En(){const t=to();return t&&t.os?t.os:void 0}function Jc(){const t=En();return t?t.toLowerCase().includes("android"):!1}function Wc(){const t=En();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function yf(){return En()?Jc()||Wc():!1}function Gc(){const t=to();return t&&t.name?t.name.toLowerCase()==="node":!1}function wf(){return!Gc()&&!!Qc()}const vf=Bc,bf=kc,_f=Dc,Af=Uc,Ef=Lc,Qc=qc,Sf=$c,If=zc,Mf=jc,Nf=Kc,xf=Hc,Sn=Oc;function Cf(){return Vc()}function Ff(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 Rf(t){return typeof t=="string"?t:JSON.stringify(t)}const Yc=Ff,Xc=Rf;function Zc(t,e){const r=Xc(e),i=Sn();i&&i.setItem(t,r)}function Pf(t){let e=null,r=null;const i=Sn();return i&&(r=i.getItem(t)),e=r&&Yc(r),e}function Tf(t){const e=Sn();e&&e.removeItem(t)}const eh="WALLETCONNECT_DEEPLINK_CHOICE";function Of(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 Bf(t){const e=t.href.split("?")[0];Zc(eh,Object.assign(Object.assign({},t),{href:e}))}function th(t,e){return t.filter(r=>r.name.toLowerCase().includes(e.toLowerCase()))[0]}function kf(t,e){let r=t;return e&&(r=e.map(i=>th(t,i)).filter(Boolean)),r}const rh="https://registry.walletconnect.com";function Df(){return rh+"/api/v2/wallets"}function Uf(){return rh+"/api/v2/dapps"}function ih(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 Lf(t,e="mobile"){return Object.values(t).filter(r=>!!r[e].universal||!!r[e].native).map(r=>ih(r,e))}const qf=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:to,detectOS:En,formatIOSMobile:Of,formatMobileRegistry:Lf,formatMobileRegistryEntry:ih,getClientMeta:Cf,getCrypto:Nf,getCryptoOrThrow:Mf,getDappRegistryUrl:Uf,getDocument:Af,getDocumentOrThrow:_f,getFromWindow:vf,getFromWindowOrThrow:bf,getLocal:Pf,getLocalStorage:Sn,getLocalStorageOrThrow:xf,getLocation:If,getLocationOrThrow:Sf,getMobileLinkRegistry:kf,getMobileRegistryEntry:th,getNavigator:Qc,getNavigatorOrThrow:Ef,getWalletRegistryUrl:Df,isAndroid:Jc,isBrowser:wf,isIOS:Wc,isMobile:yf,isNode:Gc,mobileLinkChoiceKey:eh,removeLocal:Tf,safeJsonParse:Yc,safeJsonStringify:Xc,saveMobileLinkInfo:Bf,setLocal:Zc},Symbol.toStringTag,{value:"Module"})),$f=Z.getAugmentedNamespace(qf);var Oi={},zf=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},nh={},Fr={},jf=Zs;function Kf(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42}catch{return!1}}Pe.TYPED_ARRAY_SUPPORT=Kf();var Do=Pe.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function Pe(t,e,r){return!Pe.TYPED_ARRAY_SUPPORT&&!(this instanceof Pe)?new Pe(t,e,r):typeof t=="number"?sh(this,t):Yf(this,t,e,r)}Pe.TYPED_ARRAY_SUPPORT&&(Pe.prototype.__proto__=Uint8Array.prototype,Pe.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&Pe[Symbol.species]===Pe&&Object.defineProperty(Pe,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function ro(t){if(t>=Do)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Do.toString(16)+" bytes");return t|0}function Hf(t){return t!==t}function Yr(t,e){var r;return Pe.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=Pe.prototype):(r=t,r===null&&(r=new Pe(e)),r.length=e),r}function sh(t,e){var r=Yr(t,e<0?0:ro(e)|0);if(!Pe.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)r[i]=0;return r}function Vf(t,e){var r=ah(e)|0,i=Yr(t,r),n=i.write(e);return n!==r&&(i=i.slice(0,n)),i}function Ms(t,e){for(var r=e.length<0?0:ro(e.length)|0,i=Yr(t,r),n=0;n<r;n+=1)i[n]=e[n]&255;return i}function Jf(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),Pe.TYPED_ARRAY_SUPPORT?n.__proto__=Pe.prototype:n=Ms(t,n),n}function Wf(t,e){if(Pe.isBuffer(e)){var r=ro(e.length)|0,i=Yr(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"||Hf(e.length)?Yr(t,0):Ms(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ms(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function oh(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 ah(t){if(Pe.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:oh(t).length}function Gf(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 Qf(t,e,r,i){return Gf(oh(e,t.length-r),t,r,i)}function Yf(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?Jf(t,e,r,i):typeof e=="string"?Vf(t,e):Wf(t,e)}Pe.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 Qf(this,e,r,i)};Pe.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(Pe.TYPED_ARRAY_SUPPORT)n=this.subarray(e,r),n.__proto__=Pe.prototype;else{var s=r-e;n=new Pe(s,void 0);for(var o=0;o<s;++o)n[o]=this[o+e]}return n};Pe.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||!Pe.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};Pe.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=Pe.isBuffer(e)?e:new Pe(e),a=o.length;for(s=0;s<i-r;++s)this[s+r]=o[s%a]}return this};Pe.concat=function(e,r){if(!jf(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Yr(null,0);var i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;var n=sh(null,r),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!Pe.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n};Pe.byteLength=ah;Pe.prototype._isBuffer=!0;Pe.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};Fr.alloc=function(t){var e=new Pe(t);return e.fill(0),e};Fr.from=function(t){return new Pe(t)};var Pt={},io,Xf=[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];Pt.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};Pt.getSymbolTotalCodewords=function(e){return Xf[e]};Pt.getBCHDigit=function(t){for(var e=0;t!==0;)e++,t>>>=1;return e};Pt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');io=e};Pt.isKanjiModeEnabled=function(){return typeof io<"u"};Pt.toSJIS=function(e){return io(e)};var In={};(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}}})(In);function ch(){this.buffer=[],this.length=0}ch.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 Zf=ch,Uo=Fr;function Bi(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=Uo.alloc(t*t),this.reservedBit=Uo.alloc(t*t)}Bi.prototype.set=function(t,e,r,i){var n=t*this.size+e;this.data[n]=r,i&&(this.reservedBit[n]=!0)};Bi.prototype.get=function(t,e){return this.data[t*this.size+e]};Bi.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Bi.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var ed=Bi,hh={};(function(t){var e=Pt.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,a=[s-7],h=1;h<n-1;h++)a[h]=a[h-1]-o;return a.push(6),a.reverse()},t.getPositions=function(i){for(var n=[],s=t.getRowColCoords(i),o=s.length,a=0;a<o;a++)for(var h=0;h<o;h++)a===0&&h===0||a===0&&h===o-1||a===o-1&&h===0||n.push([s[a],s[h]]);return n}})(hh);var uh={},td=Pt.getSymbolSize,Lo=7;uh.getPositions=function(e){var r=td(e);return[[0,0],[r-Lo,0],[0,r-Lo]]};var lh={};(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,a=0,h=0,d=null,p=null,y=0;y<s;y++){a=h=0,d=p=null;for(var C=0;C<s;C++){var E=n.get(y,C);E===d?a++:(a>=5&&(o+=e.N1+(a-5)),d=E,a=1),E=n.get(C,y),E===p?h++:(h>=5&&(o+=e.N1+(h-5)),p=E,h=1)}a>=5&&(o+=e.N1+(a-5)),h>=5&&(o+=e.N1+(h-5))}return o},t.getPenaltyN2=function(n){for(var s=n.size,o=0,a=0;a<s-1;a++)for(var h=0;h<s-1;h++){var d=n.get(a,h)+n.get(a,h+1)+n.get(a+1,h)+n.get(a+1,h+1);(d===4||d===0)&&o++}return o*e.N2},t.getPenaltyN3=function(n){for(var s=n.size,o=0,a=0,h=0,d=0;d<s;d++){a=h=0;for(var p=0;p<s;p++)a=a<<1&2047|n.get(d,p),p>=10&&(a===1488||a===93)&&o++,h=h<<1&2047|n.get(p,d),p>=10&&(h===1488||h===93)&&o++}return o*e.N3},t.getPenaltyN4=function(n){for(var s=0,o=n.data.length,a=0;a<o;a++)s+=n.data[a];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,a=0;a<o;a++)for(var h=0;h<o;h++)s.isReserved(h,a)||s.xor(h,a,r(n,h,a))},t.getBestMask=function(n,s){for(var o=Object.keys(t.Patterns).length,a=0,h=1/0,d=0;d<o;d++){s(d),t.applyMask(d,n);var p=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(d,n),p<h&&(h=p,a=d)}return a}})(lh);var Mn={},xr=In,Vi=[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],Ji=[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];Mn.getBlocksCount=function(e,r){switch(r){case xr.L:return Vi[(e-1)*4+0];case xr.M:return Vi[(e-1)*4+1];case xr.Q:return Vi[(e-1)*4+2];case xr.H:return Vi[(e-1)*4+3];default:return}};Mn.getTotalCodewordsCount=function(e,r){switch(r){case xr.L:return Ji[(e-1)*4+0];case xr.M:return Ji[(e-1)*4+1];case xr.Q:return Ji[(e-1)*4+2];case xr.H:return Ji[(e-1)*4+3];default:return}};var fh={},Nn={},dh=Fr,_i=dh.alloc(512),cn=dh.alloc(256);(function(){for(var e=1,r=0;r<255;r++)_i[r]=e,cn[e]=r,e<<=1,e&256&&(e^=285);for(r=255;r<512;r++)_i[r]=_i[r-255]})();Nn.log=function(e){if(e<1)throw new Error("log("+e+")");return cn[e]};Nn.exp=function(e){return _i[e]};Nn.mul=function(e,r){return e===0||r===0?0:_i[cn[e]+cn[r]]};(function(t){var e=Fr,r=Nn;t.mul=function(n,s){for(var o=e.alloc(n.length+s.length-1),a=0;a<n.length;a++)for(var h=0;h<s.length;h++)o[a+h]^=r.mul(n[a],s[h]);return o},t.mod=function(n,s){for(var o=e.from(n);o.length-s.length>=0;){for(var a=o[0],h=0;h<s.length;h++)o[h]^=r.mul(s[h],a);for(var d=0;d<o.length&&o[d]===0;)d++;o=o.slice(d)}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}})(fh);var qo=Fr,ph=fh,rd=Z.bufferPolyfill.Buffer;function no(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}no.prototype.initialize=function(e){this.degree=e,this.genPoly=ph.generateECPolynomial(this.degree)};no.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var r=qo.alloc(this.degree),i=rd.concat([e,r],e.length+this.degree),n=ph.mod(i,this.genPoly),s=this.degree-n.length;if(s>0){var o=qo.alloc(this.degree);return n.copy(o,s),o}return n};var id=no,gh={},Rr={},so={};so.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var nr={},mh="[0-9]+",nd="[A-Z $%*+\\-./:]+",Ni="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ni=Ni.replace(/u/g,"\\u");var sd="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ni+`)(?:.|[\r
2
2
  ]))+`;nr.KANJI=new RegExp(Ni,"g");nr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");nr.BYTE=new RegExp(sd,"g");nr.NUMERIC=new RegExp(mh,"g");nr.ALPHANUMERIC=new RegExp(nd,"g");var od=new RegExp("^"+Ni+"$"),ad=new RegExp("^"+mh+"$"),cd=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");nr.testKanji=function(e){return od.test(e)};nr.testNumeric=function(e){return ad.test(e)};nr.testAlphanumeric=function(e){return cd.test(e)};(function(t){var e=so,r=nr;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}}})(Rr);(function(t){var e=Pt,r=Mn,i=In,n=Rr,s=so,o=Zs,a=7973,h=e.getBCHDigit(a);function d(E,v,k){for(var B=1;B<=40;B++)if(v<=t.getCapacity(B,k,E))return B}function p(E,v){return n.getCharCountIndicator(E,v)+4}function y(E,v){var k=0;return E.forEach(function(B){var U=p(B.mode,v);k+=U+B.getBitsLength()}),k}function C(E,v){for(var k=1;k<=40;k++){var B=y(E,k);if(B<=t.getCapacity(k,v,n.MIXED))return k}}t.from=function(v,k){return s.isValid(v)?parseInt(v,10):k},t.getCapacity=function(v,k,B){if(!s.isValid(v))throw new Error("Invalid QR Code version");typeof B>"u"&&(B=n.BYTE);var U=e.getSymbolTotalCodewords(v),A=r.getTotalCodewordsCount(v,k),F=(U-A)*8;if(B===n.MIXED)return F;var R=F-p(B,v);switch(B){case n.NUMERIC:return Math.floor(R/10*3);case n.ALPHANUMERIC:return Math.floor(R/11*2);case n.KANJI:return Math.floor(R/13);case n.BYTE:default:return Math.floor(R/8)}},t.getBestVersionForData=function(v,k){var B,U=i.from(k,i.M);if(o(v)){if(v.length>1)return C(v,U);if(v.length===0)return 1;B=v[0]}else B=v;return d(B.mode,B.getLength(),U)},t.getEncodedBits=function(v){if(!s.isValid(v)||v<7)throw new Error("Invalid QR Code version");for(var k=v<<12;e.getBCHDigit(k)-h>=0;)k^=a<<e.getBCHDigit(k)-h;return v<<12|k}})(gh);var yh={},Ns=Pt,wh=1335,hd=21522,$o=Ns.getBCHDigit(wh);yh.getEncodedBits=function(e,r){for(var i=e.bit<<3|r,n=i<<10;Ns.getBCHDigit(n)-$o>=0;)n^=wh<<Ns.getBCHDigit(n)-$o;return(i<<10|n)^hd};var vh={},ud=Rr;function Xr(t){this.mode=ud.NUMERIC,this.data=t.toString()}Xr.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};Xr.prototype.getLength=function(){return this.data.length};Xr.prototype.getBitsLength=function(){return Xr.getBitsLength(this.data.length)};Xr.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 ld=Xr,fd=Rr,Qn=["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 Zr(t){this.mode=fd.ALPHANUMERIC,this.data=t}Zr.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Zr.prototype.getLength=function(){return this.data.length};Zr.prototype.getBitsLength=function(){return Zr.getBitsLength(this.data.length)};Zr.prototype.write=function(e){var r;for(r=0;r+2<=this.data.length;r+=2){var i=Qn.indexOf(this.data[r])*45;i+=Qn.indexOf(this.data[r+1]),e.put(i,11)}this.data.length%2&&e.put(Qn.indexOf(this.data[r]),6)};var dd=Zr,pd=Fr,gd=Rr;function ei(t){this.mode=gd.BYTE,this.data=pd.from(t)}ei.getBitsLength=function(e){return e*8};ei.prototype.getLength=function(){return this.data.length};ei.prototype.getBitsLength=function(){return ei.getBitsLength(this.data.length)};ei.prototype.write=function(t){for(var e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};var md=ei,yd=Rr,wd=Pt;function ti(t){this.mode=yd.KANJI,this.data=t}ti.getBitsLength=function(e){return e*13};ti.prototype.getLength=function(){return this.data.length};ti.prototype.getBitsLength=function(){return ti.getBitsLength(this.data.length)};ti.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var r=wd.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 vd=ti;(function(t){var e=Rr,r=ld,i=dd,n=md,s=vd,o=nr,a=Pt,h=Bl.dijkstraExports;function d(U){return unescape(encodeURIComponent(U)).length}function p(U,A,F){for(var R=[],O;(O=U.exec(F))!==null;)R.push({data:O[0],index:O.index,mode:A,length:O[0].length});return R}function y(U){var A=p(o.NUMERIC,e.NUMERIC,U),F=p(o.ALPHANUMERIC,e.ALPHANUMERIC,U),R,O;a.isKanjiModeEnabled()?(R=p(o.BYTE,e.BYTE,U),O=p(o.KANJI,e.KANJI,U)):(R=p(o.BYTE_KANJI,e.BYTE,U),O=[]);var D=A.concat(F,R,O);return D.sort(function(L,q){return L.index-q.index}).map(function(L){return{data:L.data,mode:L.mode,length:L.length}})}function C(U,A){switch(A){case e.NUMERIC:return r.getBitsLength(U);case e.ALPHANUMERIC:return i.getBitsLength(U);case e.KANJI:return s.getBitsLength(U);case e.BYTE:return n.getBitsLength(U)}}function E(U){return U.reduce(function(A,F){var R=A.length-1>=0?A[A.length-1]:null;return R&&R.mode===F.mode?(A[A.length-1].data+=F.data,A):(A.push(F),A)},[])}function v(U){for(var A=[],F=0;F<U.length;F++){var R=U[F];switch(R.mode){case e.NUMERIC:A.push([R,{data:R.data,mode:e.ALPHANUMERIC,length:R.length},{data:R.data,mode:e.BYTE,length:R.length}]);break;case e.ALPHANUMERIC:A.push([R,{data:R.data,mode:e.BYTE,length:R.length}]);break;case e.KANJI:A.push([R,{data:R.data,mode:e.BYTE,length:d(R.data)}]);break;case e.BYTE:A.push([{data:R.data,mode:e.BYTE,length:d(R.data)}])}}return A}function k(U,A){for(var F={},R={start:{}},O=["start"],D=0;D<U.length;D++){for(var L=U[D],q=[],Q=0;Q<L.length;Q++){var ee=L[Q],te=""+D+Q;q.push(te),F[te]={node:ee,lastCount:0},R[te]={};for(var xe=0;xe<O.length;xe++){var c=O[xe];F[c]&&F[c].node.mode===ee.mode?(R[c][te]=C(F[c].lastCount+ee.length,ee.mode)-C(F[c].lastCount,ee.mode),F[c].lastCount+=ee.length):(F[c]&&(F[c].lastCount=ee.length),R[c][te]=C(ee.length,ee.mode)+4+e.getCharCountIndicator(ee.mode,A))}}O=q}for(xe=0;xe<O.length;xe++)R[O[xe]].end=0;return{map:R,table:F}}function B(U,A){var F,R=e.getBestModeForData(U);if(F=e.from(A,R),F!==e.BYTE&&F.bit<R.bit)throw new Error('"'+U+'" cannot be encoded with mode '+e.toString(F)+`.
4
4
  Suggested mode is: `+e.toString(R));switch(F===e.KANJI&&!a.isKanjiModeEnabled()&&(F=e.BYTE),F){case e.NUMERIC:return new r(U);case e.ALPHANUMERIC:return new i(U);case e.KANJI:return new s(U);case e.BYTE:return new n(U)}}t.fromArray=function(A){return A.reduce(function(F,R){return typeof R=="string"?F.push(B(R,null)):R.data&&F.push(B(R.data,R.mode)),F},[])},t.fromString=function(A,F){for(var R=y(A,a.isKanjiModeEnabled()),O=v(R),D=k(O,F),L=h.find_path(D.map,"start","end"),q=[],Q=1;Q<L.length-1;Q++)q.push(D.table[L[Q]].node);return t.fromArray(E(q))},t.rawSplit=function(A){return t.fromArray(y(A,a.isKanjiModeEnabled()))}})(vh);var zo=Fr,xn=Pt,Yn=In,bd=Zf,_d=ed,Ad=hh,Ed=uh,xs=lh,Cs=Mn,Sd=id,hn=gh,Id=yh,Md=Rr,Xn=vh,Nd=Zs;function xd(t,e){for(var r=t.size,i=Ed.getPositions(e),n=0;n<i.length;n++)for(var s=i[n][0],o=i[n][1],a=-1;a<=7;a++)if(!(s+a<=-1||r<=s+a))for(var h=-1;h<=7;h++)o+h<=-1||r<=o+h||(a>=0&&a<=6&&(h===0||h===6)||h>=0&&h<=6&&(a===0||a===6)||a>=2&&a<=4&&h>=2&&h<=4?t.set(s+a,o+h,!0,!0):t.set(s+a,o+h,!1,!0))}function Cd(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 Fd(t,e){for(var r=Ad.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 a=-2;a<=2;a++)o===-2||o===2||a===-2||a===2||o===0&&a===0?t.set(n+o,s+a,!0,!0):t.set(n+o,s+a,!1,!0)}function Rd(t,e){for(var r=t.size,i=hn.getEncodedBits(e),n,s,o,a=0;a<18;a++)n=Math.floor(a/3),s=a%3+r-8-3,o=(i>>a&1)===1,t.set(n,s,o,!0),t.set(s,n,o,!0)}function Zn(t,e,r){var i=t.size,n=Id.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 Pd(t,e){for(var r=t.size,i=-1,n=r-1,s=7,o=0,a=r-1;a>0;a-=2)for(a===6&&a--;;){for(var h=0;h<2;h++)if(!t.isReserved(n,a-h)){var d=!1;o<e.length&&(d=(e[o]>>>s&1)===1),t.set(n,a-h,d),s--,s===-1&&(o++,s=7)}if(n+=i,n<0||r<=n){n-=i,i=-i;break}}}function Td(t,e,r){var i=new bd;r.forEach(function(d){i.put(d.mode.bit,4),i.put(d.getLength(),Md.getCharCountIndicator(d.mode,t)),d.write(i)});var n=xn.getSymbolTotalCodewords(t),s=Cs.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 a=(o-i.getLengthInBits())/8,h=0;h<a;h++)i.put(h%2?17:236,8);return Od(i,t,e)}function Od(t,e,r){for(var i=xn.getSymbolTotalCodewords(e),n=Cs.getTotalCodewordsCount(e,r),s=i-n,o=Cs.getBlocksCount(e,r),a=i%o,h=o-a,d=Math.floor(i/o),p=Math.floor(s/o),y=p+1,C=d-p,E=new Sd(C),v=0,k=new Array(o),B=new Array(o),U=0,A=zo.from(t.buffer),F=0;F<o;F++){var R=F<h?p:y;k[F]=A.slice(v,v+R),B[F]=E.encode(k[F]),v+=R,U=Math.max(U,R)}var O=zo.alloc(i),D=0,L,q;for(L=0;L<U;L++)for(q=0;q<o;q++)L<k[q].length&&(O[D++]=k[q][L]);for(L=0;L<C;L++)for(q=0;q<o;q++)O[D++]=B[q][L];return O}function Bd(t,e,r,i){var n;if(Nd(t))n=Xn.fromArray(t);else if(typeof t=="string"){var s=e;if(!s){var o=Xn.rawSplit(t);s=hn.getBestVersionForData(o,r)}n=Xn.fromString(t,s||40)}else throw new Error("Invalid data");var a=hn.getBestVersionForData(n,r);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=a;else if(e<a)throw new Error(`
@@ -1,7 +1,7 @@
1
1
  var Pt = Object.defineProperty;
2
2
  var _t = (e, t, r) => t in e ? Pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var f = (e, t, r) => _t(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { aX as c, bw as A, bA as z, bz as U, Z as l, cf as le, bB as G, by as S, bx as V, cg as Ge, ch as Ze, ci as Wt, cj as It, ck as Ut, cl as Nt, cm as O, cn as E, a8 as y, co as b, cp as Ft, cq as ye, c9 as dt, cr as xt, cs as lt, ct as zt, cu as Ot, cv as Q, cw as Lt, cx as Z, cy as H, cz as Dt, cA as qt, cB as Kt, cC as Vt, cD as Se, cE as Gt, cF as v, cG as Zt, e as oe, S as k, c7 as Ce, c8 as Ht, p as $, ce as Be, cH as Yt, cI as Qt, b6 as se, a$ as L, a5 as Xt, cJ as ft, bR as mt, g as gt } from "./index-CjwA7HmM.mjs";
4
+ import { aX as c, bw as A, bA as z, bz as U, Z as l, cf as le, bB as G, by as S, bx as V, cg as Ge, ch as Ze, ci as Wt, cj as It, ck as Ut, cl as Nt, cm as O, cn as E, a8 as y, co as b, cp as Ft, cq as ye, c9 as dt, cr as xt, cs as lt, ct as zt, cu as Ot, cv as Q, cw as Lt, cx as Z, cy as H, cz as Dt, cA as qt, cB as Kt, cC as Vt, cD as Se, cE as Gt, cF as v, cG as Zt, e as oe, S as k, c7 as Ce, c8 as Ht, p as $, ce as Be, cH as Yt, cI as Qt, b6 as se, a$ as L, a5 as Xt, cJ as ft, bR as mt, g as gt } from "./index-C2DCdxRC.mjs";
5
5
  const M = new c("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
6
6
  new c("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
7
7
  const Ae = new c("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"), D = new c("So11111111111111111111111111111111111111112");