@multiversx/sdk-dapp 2.10.16 → 2.10.17

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 (964) hide show
  1. package/README.md +3 -3
  2. package/UI/DappModal/hooks/index.js +1 -1
  3. package/UI/DappModal/hooks/useDappModal.js +1 -1
  4. package/UI/DappModal/index.js +1 -1
  5. package/UI/Denominate/index.js +1 -1
  6. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  7. package/UI/ExplorerLink/index.js +1 -1
  8. package/UI/FormatAmount/FormatAmount.js +1 -1
  9. package/UI/FormatAmount/index.js +1 -1
  10. package/UI/ModalContainer/ModalContainer.js +1 -1
  11. package/UI/ModalContainer/index.js +1 -1
  12. package/UI/NotificationModal/NotificationModal.js +1 -1
  13. package/UI/NotificationModal/index.js +1 -1
  14. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  20. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  21. package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  22. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  23. package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +1 -1
  24. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  25. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  26. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  27. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  28. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  29. package/UI/SignTransactionsModals/components/index.js +1 -1
  30. package/UI/SignTransactionsModals/index.js +1 -1
  31. package/UI/TokenDetails/index.js +1 -1
  32. package/UI/TransactionData/index.js +1 -1
  33. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  34. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  35. package/UI/TransactionDetails/components/index.js +1 -1
  36. package/UI/TransactionDetails/index.js +1 -1
  37. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  38. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  39. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  40. package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
  41. package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
  42. package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
  43. package/UI/TransactionInfo/components/DataField/index.js +1 -1
  44. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  45. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  46. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  47. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  48. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  49. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  50. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  51. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  52. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  53. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  54. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  55. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  56. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  57. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
  58. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
  59. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  60. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  61. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  62. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  63. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  64. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  65. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  66. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  67. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  68. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  69. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  70. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  71. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  72. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  73. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  74. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  75. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  76. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  77. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  78. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  79. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  80. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  81. package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  82. package/UI/TransactionInfo/components/index.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
  84. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
  85. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
  86. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
  87. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  88. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  91. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
  92. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
  93. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
  99. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  100. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  101. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  102. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  103. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  104. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  105. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  106. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  107. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  108. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  109. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  110. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  111. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  112. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  113. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  114. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  115. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  116. package/UI/TransactionInfo/index.js +1 -1
  117. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  118. package/UI/TransactionsTable/components/AccountName.js +1 -1
  119. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  120. package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
  121. package/UI/TransactionsTable/components/ShardSpan.js +1 -1
  122. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  123. package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
  124. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  125. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  126. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  127. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  128. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  129. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  130. package/UI/TransactionsTable/components/index.js +1 -1
  131. package/UI/TransactionsTable/index.js +1 -1
  132. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  133. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  134. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  135. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  136. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
  137. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  138. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  139. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  140. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  141. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  142. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  143. package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
  144. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  145. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  146. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  147. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  148. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  149. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  150. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  151. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  152. package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
  153. package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
  154. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  155. package/UI/TransactionsToastList/components/index.js +1 -1
  156. package/UI/TransactionsToastList/index.js +1 -1
  157. package/UI/Trim/Trim.js +1 -1
  158. package/UI/Trim/index.js +1 -1
  159. package/UI/UsdValue/UsdValue.js +1 -1
  160. package/UI/UsdValue/index.js +1 -1
  161. package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
  162. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  163. package/UI/index.js +1 -1
  164. package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
  165. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  166. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  167. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  168. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  169. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  170. package/UI/ledger/index.js +1 -1
  171. package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
  172. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  173. package/UI/pages/UnlockPage/index.js +1 -1
  174. package/UI/pages/index.js +1 -1
  175. package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
  176. package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
  177. package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
  178. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  179. package/UI/walletConnect/WalletConnectLoginContainer/ImageWithFallback.d.ts +7 -0
  180. package/UI/walletConnect/WalletConnectLoginContainer/ImageWithFallback.js +2 -0
  181. package/UI/walletConnect/WalletConnectLoginContainer/PairingList.js +1 -1
  182. package/UI/walletConnect/WalletConnectLoginContainer/index.d.ts +1 -1
  183. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  184. package/UI/walletConnect/WalletConnectLoginContainer/walletConnectLoginContainerStyles.js +1 -1
  185. package/UI/walletConnect/index.js +1 -1
  186. package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
  187. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  188. package/__chunks__/{chunk-JJDEBWPU.js → chunk-24OJ7KCF.js} +2 -2
  189. package/__chunks__/{chunk-LQQXP7XC.js → chunk-24SGLNBY.js} +2 -2
  190. package/__chunks__/{chunk-HY2CW4MA.js → chunk-2A2MCZLD.js} +2 -2
  191. package/__chunks__/{chunk-7X6HMTFB.js → chunk-2AOPQAPV.js} +2 -2
  192. package/__chunks__/{chunk-APT6TZDP.js → chunk-2DM3MLLS.js} +2 -2
  193. package/__chunks__/chunk-2OPNEB2K.js +2 -0
  194. package/__chunks__/{chunk-H6JLXN4M.js → chunk-2OXZ65MK.js} +2 -2
  195. package/__chunks__/{chunk-UFEQ7YFP.js → chunk-2QLPNN7L.js} +2 -2
  196. package/__chunks__/{chunk-NFZ3DY2N.js → chunk-2RBD4FTR.js} +2 -2
  197. package/__chunks__/{chunk-SLDA4IQM.js → chunk-2YMRTE7T.js} +2 -2
  198. package/__chunks__/{chunk-7ZYCCREG.js → chunk-2ZEUNKTP.js} +2 -2
  199. package/__chunks__/{chunk-5DBVU5IQ.js → chunk-353VUEUC.js} +2 -2
  200. package/__chunks__/{chunk-XARG24JS.js → chunk-3EMJ6VHI.js} +2 -2
  201. package/__chunks__/{chunk-VNSV65R6.js → chunk-3IQVAJO6.js} +2 -2
  202. package/__chunks__/{chunk-3GOMAM3K.js → chunk-3LKAAPJM.js} +2 -2
  203. package/__chunks__/{chunk-CI77PDNR.js → chunk-3P57B6U6.js} +2 -2
  204. package/__chunks__/{chunk-QIKAC5BP.js → chunk-3R3VZI2S.js} +2 -2
  205. package/__chunks__/{chunk-3DG4MWZW.js → chunk-3RUHPLHA.js} +2 -2
  206. package/__chunks__/{chunk-VGLU5WHV.js → chunk-3VP4LJRB.js} +2 -2
  207. package/__chunks__/{chunk-4HUZXJU6.js → chunk-3WQODEBZ.js} +2 -2
  208. package/__chunks__/{chunk-MRRKFV6I.js → chunk-42RJQAFV.js} +2 -2
  209. package/__chunks__/{chunk-HYGRY4QB.js → chunk-4E5ZK46H.js} +2 -2
  210. package/__chunks__/{chunk-DYMENMQ5.js → chunk-4EOHXDP3.js} +2 -2
  211. package/__chunks__/chunk-4JGOLVJN.js +2 -0
  212. package/__chunks__/{chunk-EG5RSUPK.js → chunk-4PR6ZJ3J.js} +2 -2
  213. package/__chunks__/{chunk-56AHKWRJ.js → chunk-4Z6EY67I.js} +2 -2
  214. package/__chunks__/{chunk-ZM6K2FFG.js → chunk-5AR4CLDY.js} +2 -2
  215. package/__chunks__/{chunk-RC3NVNXX.js → chunk-5BB5RBNN.js} +2 -2
  216. package/__chunks__/chunk-5FGVAFZ7.js +2 -0
  217. package/__chunks__/chunk-5GQHZUMU.js +2 -0
  218. package/__chunks__/{chunk-TRUEH24M.js → chunk-5NPCXYNH.js} +2 -2
  219. package/__chunks__/{chunk-ODGQYPUL.js → chunk-5RD6HM3T.js} +2 -2
  220. package/__chunks__/chunk-5TM2W72O.js +2 -0
  221. package/__chunks__/{chunk-4V5LOWP7.js → chunk-5V4KCOPF.js} +2 -2
  222. package/__chunks__/{chunk-R7ADKYKL.js → chunk-5VPXKALT.js} +2 -2
  223. package/__chunks__/{chunk-A3EX3PIS.js → chunk-5ZQEV7DE.js} +2 -2
  224. package/__chunks__/chunk-62Y4445N.js +2 -0
  225. package/__chunks__/{chunk-64DC4TYB.js → chunk-63THRQDH.js} +2 -2
  226. package/__chunks__/{chunk-A3NKEWOX.js → chunk-6I3TXZZD.js} +2 -2
  227. package/__chunks__/{chunk-7BL6YWLN.js → chunk-6OVH2EJQ.js} +2 -2
  228. package/__chunks__/{chunk-BD5HTXC3.js → chunk-6P37SHMZ.js} +2 -2
  229. package/__chunks__/chunk-6PHQRATN.js +2 -0
  230. package/__chunks__/chunk-6X5R7OB5.js +2 -0
  231. package/__chunks__/{chunk-PVRNLQLY.js → chunk-76XGJS7U.js} +2 -2
  232. package/__chunks__/{chunk-6Z56IRF4.js → chunk-7DEKJTJ2.js} +2 -2
  233. package/__chunks__/{chunk-D5UBDY7T.js → chunk-7DOOD73B.js} +2 -2
  234. package/__chunks__/{chunk-YRXXO2IW.js → chunk-7IC3HZVB.js} +2 -2
  235. package/__chunks__/chunk-7KK5ED2S.js +2 -0
  236. package/__chunks__/{chunk-O4NXR6GC.js → chunk-7P4TXZMP.js} +2 -2
  237. package/__chunks__/{chunk-V4QDMLWO.js → chunk-7RNOZDML.js} +2 -2
  238. package/__chunks__/chunk-7SGCCT6C.js +2 -0
  239. package/__chunks__/{chunk-I7PAWXVF.js → chunk-7VKMKSMR.js} +2 -2
  240. package/__chunks__/{chunk-WCGXNTPB.js → chunk-A2CO2YVF.js} +2 -2
  241. package/__chunks__/{chunk-VHHIARAI.js → chunk-A6VL65WE.js} +2 -2
  242. package/__chunks__/{chunk-T6XHPPMM.js → chunk-A7BO3UNU.js} +2 -2
  243. package/__chunks__/{chunk-LBHWOAGE.js → chunk-ABJ5PPND.js} +2 -2
  244. package/__chunks__/{chunk-EE4UODBX.js → chunk-AHUFO6JJ.js} +2 -2
  245. package/__chunks__/{chunk-GTDRLMGZ.js → chunk-AKXLYENO.js} +2 -2
  246. package/__chunks__/chunk-ASB43WOA.js +2 -0
  247. package/__chunks__/{chunk-HEZ55RY6.js → chunk-AUBIXMVS.js} +2 -2
  248. package/__chunks__/{chunk-Z4UGGLNJ.js → chunk-B5NVVMR7.js} +2 -2
  249. package/__chunks__/{chunk-MISABUHS.js → chunk-B6PGANAK.js} +2 -2
  250. package/__chunks__/{chunk-HRCH4Y24.js → chunk-BKQNVPXF.js} +2 -2
  251. package/__chunks__/{chunk-FTYX6AG2.js → chunk-BOGJH656.js} +2 -2
  252. package/__chunks__/{chunk-7TWOE75A.js → chunk-BOQAP3DC.js} +2 -2
  253. package/__chunks__/{chunk-NOYJLD7U.js → chunk-BS736HVP.js} +2 -2
  254. package/__chunks__/{chunk-CWAWFXKQ.js → chunk-BT7NJ6MX.js} +2 -2
  255. package/__chunks__/{chunk-XVZN357I.js → chunk-BX64MMLT.js} +2 -2
  256. package/__chunks__/{chunk-XJK44YBP.js → chunk-BXDGZ253.js} +2 -2
  257. package/__chunks__/{chunk-YBAZ4ISZ.js → chunk-BY6S6WNQ.js} +2 -2
  258. package/__chunks__/{chunk-MDR6T623.js → chunk-C4A6VHGL.js} +2 -2
  259. package/__chunks__/{chunk-72SKNNY5.js → chunk-CJ4ECDKI.js} +2 -2
  260. package/__chunks__/chunk-CJLZ3B24.js +2 -0
  261. package/__chunks__/{chunk-ICNKI7XM.js → chunk-CNF7Y7AQ.js} +2 -2
  262. package/__chunks__/{chunk-PJGIRBV6.js → chunk-D5D6AV6G.js} +2 -2
  263. package/__chunks__/{chunk-VDVHL356.js → chunk-DBXOPGJW.js} +2 -2
  264. package/__chunks__/{chunk-7AOLP4UV.js → chunk-DFZAKONB.js} +2 -2
  265. package/__chunks__/{chunk-4B4RXNGS.js → chunk-E2AVLPGD.js} +2 -2
  266. package/__chunks__/chunk-E5TRYVLP.js +2 -0
  267. package/__chunks__/{chunk-VI4CEFAP.js → chunk-EC436OTI.js} +2 -2
  268. package/__chunks__/{chunk-MVA4RMOU.js → chunk-EDXKPRBF.js} +2 -2
  269. package/__chunks__/{chunk-67S3BFX7.js → chunk-EFJVIBBH.js} +2 -2
  270. package/__chunks__/{chunk-UP53FJ6K.js → chunk-EGRWVT4Y.js} +2 -2
  271. package/__chunks__/{chunk-EFBQ67ZU.js → chunk-EIXEFFD7.js} +2 -2
  272. package/__chunks__/{chunk-25LYYPSL.js → chunk-EJAEQJGS.js} +2 -2
  273. package/__chunks__/{chunk-STRKWZEN.js → chunk-EMVKGLD7.js} +2 -2
  274. package/__chunks__/{chunk-Q5YGWIM7.js → chunk-EO272DZL.js} +2 -2
  275. package/__chunks__/chunk-EOOIJMLH.js +2 -0
  276. package/__chunks__/{chunk-6XFZX4V3.js → chunk-ET7634GV.js} +2 -2
  277. package/__chunks__/{chunk-IIRSMPA2.js → chunk-EV2NV6KZ.js} +2 -2
  278. package/__chunks__/{chunk-FTPMKH6A.js → chunk-EWWU75VZ.js} +2 -2
  279. package/__chunks__/{chunk-2GCNFOBQ.js → chunk-F26JGGDS.js} +2 -2
  280. package/__chunks__/{chunk-HBF5SY7F.js → chunk-F4GULQAI.js} +2 -2
  281. package/__chunks__/chunk-F6AJXONI.js +2 -0
  282. package/__chunks__/{chunk-5QWRRMG2.js → chunk-F6RFYLMF.js} +2 -2
  283. package/__chunks__/{chunk-FA7ULR4S.js → chunk-FEEPN2KN.js} +4 -1
  284. package/__chunks__/chunk-FEWSMC4F.js +2 -0
  285. package/__chunks__/{chunk-VXUOWYMK.js → chunk-FK7CLTXE.js} +2 -2
  286. package/__chunks__/{chunk-UEHFZV3I.js → chunk-FQQWI2D4.js} +2 -2
  287. package/__chunks__/{chunk-6IBVLNVR.js → chunk-FVQ22MYZ.js} +2 -2
  288. package/__chunks__/{chunk-WLNBHZ2R.js → chunk-FX2OEKNY.js} +2 -2
  289. package/__chunks__/chunk-FX327RUW.js +2 -0
  290. package/__chunks__/chunk-FXQ35K3U.js +2 -0
  291. package/__chunks__/{chunk-FHXJESVH.js → chunk-FY63CB2A.js} +2 -2
  292. package/__chunks__/{chunk-SHDX7NR2.js → chunk-G3PZHPKZ.js} +2 -2
  293. package/__chunks__/{chunk-B2FPMM73.js → chunk-G3XJ7574.js} +2 -2
  294. package/__chunks__/{chunk-PFRXTPGY.js → chunk-GD6SCNZV.js} +2 -2
  295. package/__chunks__/{chunk-OKDSWITH.js → chunk-GE2RPCCV.js} +2 -2
  296. package/__chunks__/{chunk-CMF7545O.js → chunk-GE7XUQDI.js} +2 -2
  297. package/__chunks__/{chunk-BEP37UC6.js → chunk-GHPCUPU2.js} +2 -2
  298. package/__chunks__/{chunk-C2TUA5D7.js → chunk-GMCBRLKE.js} +2 -2
  299. package/__chunks__/{chunk-I55IS57L.js → chunk-GQQZ3U4O.js} +2 -2
  300. package/__chunks__/{chunk-YLMQQGTH.js → chunk-GY7525ST.js} +2 -2
  301. package/__chunks__/{chunk-TZGEIXX4.js → chunk-GYOCH7BN.js} +2 -2
  302. package/__chunks__/{chunk-LIHBSEAD.js → chunk-H367JQ46.js} +2 -2
  303. package/__chunks__/{chunk-3PTECJEN.js → chunk-H6OKWNQL.js} +2 -2
  304. package/__chunks__/{chunk-JQNDBEDA.js → chunk-HAVQLHXJ.js} +2 -2
  305. package/__chunks__/{chunk-TQ6BZ3YK.js → chunk-HDWH4ZRO.js} +2 -2
  306. package/__chunks__/{chunk-33H7HM36.js → chunk-HOFMVQXK.js} +2 -2
  307. package/__chunks__/chunk-HT6ZSM7P.js +2 -0
  308. package/__chunks__/{chunk-WFTVAB73.js → chunk-HTO5H5GO.js} +2 -2
  309. package/__chunks__/{chunk-R27UKMA6.js → chunk-HVCZPSWW.js} +2 -2
  310. package/__chunks__/chunk-I2NVMWNR.js +2 -0
  311. package/__chunks__/{chunk-JNHRBSPO.js → chunk-I3V5NNNC.js} +2 -2
  312. package/__chunks__/chunk-I5YYBZDP.js +2 -0
  313. package/__chunks__/{chunk-BBBZEERM.js → chunk-IBNOB7HH.js} +2 -2
  314. package/__chunks__/{chunk-P2BCRP5V.js → chunk-ICGFAZ6F.js} +2 -2
  315. package/__chunks__/{chunk-EDX2MNPG.js → chunk-IJYBKFJ4.js} +2 -2
  316. package/__chunks__/chunk-IMX3Z3RY.js +2 -0
  317. package/__chunks__/{chunk-4RC7VEYO.js → chunk-J6OT6HQZ.js} +2 -2
  318. package/__chunks__/{chunk-QXIBYDPP.js → chunk-JASKCX5T.js} +2 -2
  319. package/__chunks__/chunk-JCFXQJSI.js +2 -0
  320. package/__chunks__/{chunk-2PA72F75.js → chunk-JF2LFW3V.js} +2 -2
  321. package/__chunks__/chunk-JHW32CXC.js +2 -0
  322. package/__chunks__/{chunk-3HVIENSM.js → chunk-JLY4442Z.js} +2 -2
  323. package/__chunks__/{chunk-XJOLNCFK.js → chunk-JNKZSJNZ.js} +2 -2
  324. package/__chunks__/chunk-JOSJCDBR.js +2 -0
  325. package/__chunks__/chunk-JX5SSSLF.js +2 -0
  326. package/__chunks__/{chunk-QMQH5ULY.js → chunk-JXOKW4SL.js} +2 -2
  327. package/__chunks__/chunk-K2GW23ZC.js +2 -0
  328. package/__chunks__/{chunk-FERUHIYS.js → chunk-K2U5CLQE.js} +2 -2
  329. package/__chunks__/{chunk-V7FHBHU4.js → chunk-K7ZH2SJE.js} +2 -2
  330. package/__chunks__/chunk-KG4M4ACY.js +2 -0
  331. package/__chunks__/{chunk-IQVKUFGU.js → chunk-KGRJ6NTJ.js} +2 -2
  332. package/__chunks__/{chunk-FPQRZSTF.js → chunk-KJCMYCPS.js} +2 -2
  333. package/__chunks__/{chunk-MLGIGWWZ.js → chunk-KJE55U6V.js} +2 -2
  334. package/__chunks__/{chunk-ESBNZUXN.js → chunk-KMO3VZVQ.js} +2 -2
  335. package/__chunks__/{chunk-C7FH4AOI.js → chunk-KO3OTCSC.js} +2 -2
  336. package/__chunks__/chunk-KOCTQUOL.js +2 -0
  337. package/__chunks__/{chunk-CGC7JCKX.js → chunk-KRIHLOOP.js} +2 -2
  338. package/__chunks__/{chunk-JI42XC5O.js → chunk-KSOG6NO5.js} +2 -2
  339. package/__chunks__/{chunk-VTI5IUEC.js → chunk-KUYDWTU3.js} +2 -2
  340. package/__chunks__/chunk-KVVBB443.js +2 -0
  341. package/__chunks__/{chunk-P26LLO2D.js → chunk-KZZFZL5X.js} +2 -2
  342. package/__chunks__/{chunk-ID2G62VE.js → chunk-L57O22OD.js} +2 -2
  343. package/__chunks__/{chunk-YYEQ5OVG.js → chunk-LCNI2BNF.js} +2 -2
  344. package/__chunks__/{chunk-BQZWZAUY.js → chunk-LFKXTV7X.js} +2 -2
  345. package/__chunks__/chunk-LH46WQCP.js +2 -0
  346. package/__chunks__/{chunk-4X4DKRC3.js → chunk-LHCY2HW6.js} +2 -2
  347. package/__chunks__/{chunk-JGNCDJ62.js → chunk-LIIQO42Z.js} +2 -2
  348. package/__chunks__/chunk-LZLEOSIF.js +2 -0
  349. package/__chunks__/chunk-M263BCY6.js +2 -0
  350. package/__chunks__/chunk-M7JJAO3P.js +2 -0
  351. package/__chunks__/chunk-MT6AUSWR.js +2 -0
  352. package/__chunks__/{chunk-VJA3OS4V.js → chunk-MU3IENP2.js} +2 -2
  353. package/__chunks__/{chunk-LB2BFY3H.js → chunk-N2KE5OLS.js} +2 -2
  354. package/__chunks__/{chunk-AM6LBD2Y.js → chunk-N6A2MP6S.js} +2 -2
  355. package/__chunks__/{chunk-TDNCTPDS.js → chunk-NHEXKPFG.js} +2 -2
  356. package/__chunks__/{chunk-FOIN27NE.js → chunk-NHV5UWGF.js} +2 -2
  357. package/__chunks__/{chunk-QVZ7AIER.js → chunk-NO2XENP2.js} +2 -2
  358. package/__chunks__/chunk-NOGITS7R.js +2 -0
  359. package/__chunks__/{chunk-5H6LBSZM.js → chunk-NQTEJEB6.js} +2 -2
  360. package/__chunks__/{chunk-M4KXOW7P.js → chunk-NRIPFZ2O.js} +2 -2
  361. package/__chunks__/{chunk-IYZV7QCG.js → chunk-NUCIBJ4B.js} +2 -2
  362. package/__chunks__/{chunk-CVAD6EJ5.js → chunk-O2PLAER7.js} +2 -2
  363. package/__chunks__/{chunk-NWDZJJBT.js → chunk-OBYQB3UE.js} +2 -2
  364. package/__chunks__/{chunk-NFOZMVGI.js → chunk-OGD3H3N6.js} +2 -2
  365. package/__chunks__/{chunk-SLJ43T3X.js → chunk-OLQ65VS3.js} +2 -2
  366. package/__chunks__/{chunk-XEFCN2UF.js → chunk-ONX75UCI.js} +2 -2
  367. package/__chunks__/chunk-OUEPJKUR.js +2 -0
  368. package/__chunks__/{chunk-DQLINIBP.js → chunk-OXJSMSZX.js} +2 -2
  369. package/__chunks__/{chunk-HNE23OWE.js → chunk-OYT6COQO.js} +2 -2
  370. package/__chunks__/{chunk-TUDZ5KRU.js → chunk-P2HNYTSF.js} +2 -2
  371. package/__chunks__/{chunk-KA3CAMX7.js → chunk-P3FDUSLT.js} +2 -2
  372. package/__chunks__/{chunk-MK36FVJQ.js → chunk-P4IXJSAY.js} +2 -2
  373. package/__chunks__/{chunk-W7L7KEB6.js → chunk-P4RW434P.js} +2 -2
  374. package/__chunks__/{chunk-44X3EF7R.js → chunk-P7VDW7ZE.js} +2 -2
  375. package/__chunks__/{chunk-HOANVKA5.js → chunk-PBZX43A4.js} +2 -2
  376. package/__chunks__/{chunk-PTZVBHGW.js → chunk-PGPUQUEU.js} +2 -2
  377. package/__chunks__/{chunk-535RKD6M.js → chunk-PKCZS7U7.js} +2 -2
  378. package/__chunks__/{chunk-BQ6EKGFU.js → chunk-PQ7LBVAC.js} +2 -2
  379. package/__chunks__/{chunk-4YTCJ2WF.js → chunk-Q3YZ2723.js} +2 -2
  380. package/__chunks__/{chunk-HHBJDEI5.js → chunk-QCFETWAC.js} +2 -2
  381. package/__chunks__/chunk-QCG7SGOX.js +2 -0
  382. package/__chunks__/{chunk-KFFYCLNJ.js → chunk-QFKT22AW.js} +2 -2
  383. package/__chunks__/{chunk-6N5VY32R.js → chunk-QGIODHFK.js} +2 -2
  384. package/__chunks__/{chunk-ALQQT64V.js → chunk-QLWST6HJ.js} +2 -2
  385. package/__chunks__/{chunk-A2IKCHP3.js → chunk-QM237XII.js} +2 -2
  386. package/__chunks__/chunk-QNH7L3M6.js +2 -0
  387. package/__chunks__/{chunk-7YQNZ5P4.js → chunk-QRPURFAS.js} +2 -2
  388. package/__chunks__/{chunk-TWENT6YN.js → chunk-QRY35NB4.js} +2 -2
  389. package/__chunks__/chunk-QWY6SHHG.js +2 -0
  390. package/__chunks__/{chunk-2YSNVCBV.js → chunk-QX4DKR3D.js} +2 -2
  391. package/__chunks__/{chunk-BIWSS3BJ.js → chunk-QY7CJB4G.js} +2 -2
  392. package/__chunks__/{chunk-EB6HXNNY.js → chunk-R2YSMQ4I.js} +2 -2
  393. package/__chunks__/{chunk-YW57QDWN.js → chunk-R475WYSE.js} +2 -2
  394. package/__chunks__/{chunk-WKASIRAF.js → chunk-R76ZRE5A.js} +2 -2
  395. package/__chunks__/{chunk-LBLUZ7RI.js → chunk-RLU4NPC4.js} +2 -2
  396. package/__chunks__/{chunk-PASKU42C.js → chunk-RMD6HAI4.js} +2 -2
  397. package/__chunks__/{chunk-IV6DYDHK.js → chunk-RR356Z6D.js} +2 -2
  398. package/__chunks__/chunk-RRQEQ76C.js +2 -0
  399. package/__chunks__/{chunk-MR2IS7HI.js → chunk-RTPBDY4Q.js} +2 -2
  400. package/__chunks__/{chunk-RNVUI7T5.js → chunk-RVFDHAR7.js} +2 -2
  401. package/__chunks__/{chunk-N65WVSV2.js → chunk-RZP7K7XL.js} +2 -2
  402. package/__chunks__/{chunk-SFSXPOIO.js → chunk-S5BSIREW.js} +2 -2
  403. package/__chunks__/{chunk-PMCD5ZAT.js → chunk-S6OUF334.js} +2 -2
  404. package/__chunks__/{chunk-WLMHQ4N6.js → chunk-SA4WPLAS.js} +2 -2
  405. package/__chunks__/chunk-SADC2JUH.js +2 -0
  406. package/__chunks__/{chunk-HNPFS3FK.js → chunk-SAUXZHGQ.js} +2 -2
  407. package/__chunks__/{chunk-5FXUUUID.js → chunk-SF5FGOZB.js} +2 -2
  408. package/__chunks__/{chunk-XL32YOXR.js → chunk-SGTXMF4C.js} +2 -2
  409. package/__chunks__/{chunk-BTVZMKCD.js → chunk-SI3BPIM6.js} +2 -2
  410. package/__chunks__/{chunk-RBP2NLFO.js → chunk-SMNYUV4M.js} +2 -2
  411. package/__chunks__/{chunk-F3VFHLEI.js → chunk-SQCWRC3T.js} +2 -2
  412. package/__chunks__/chunk-SQGZEGO2.js +2 -0
  413. package/__chunks__/{chunk-SD4EHSNN.js → chunk-SQZPRBQJ.js} +2 -2
  414. package/__chunks__/{chunk-QBW6NGXK.js → chunk-T7DKVSBF.js} +2 -2
  415. package/__chunks__/chunk-THVMKNL7.js +2 -0
  416. package/__chunks__/{chunk-FSW3CZET.js → chunk-TJ222MQ4.js} +2 -2
  417. package/__chunks__/{chunk-A55WDU6L.js → chunk-TMEQ5IAI.js} +2 -2
  418. package/__chunks__/{chunk-OUVYD352.js → chunk-TPHV3KKL.js} +2 -2
  419. package/__chunks__/chunk-U5WH7XDN.js +2 -0
  420. package/__chunks__/{chunk-3PWLCKRL.js → chunk-U65BLT4U.js} +2 -2
  421. package/__chunks__/{chunk-SQNI4KUP.js → chunk-UBYTQURY.js} +2 -2
  422. package/__chunks__/chunk-UFAQWNZH.js +2 -0
  423. package/__chunks__/{chunk-67CUT27B.js → chunk-V2SBWOXY.js} +2 -2
  424. package/__chunks__/{chunk-XAZUU7SL.js → chunk-V3FFCD5I.js} +2 -2
  425. package/__chunks__/{chunk-72GWBK46.js → chunk-V4UF3ZPO.js} +2 -2
  426. package/__chunks__/{chunk-6LFQ6O6O.js → chunk-V52UR2GQ.js} +2 -2
  427. package/__chunks__/chunk-VE4KRWGC.js +2 -0
  428. package/__chunks__/chunk-VF3JB6E5.js +2 -0
  429. package/__chunks__/chunk-VFG6MPL7.js +2 -0
  430. package/__chunks__/{chunk-6SKFOK2M.js → chunk-VFIWMO3Z.js} +2 -2
  431. package/__chunks__/{chunk-L6GH2U6P.js → chunk-VL7EOLJA.js} +2 -2
  432. package/__chunks__/{chunk-LCO5R2BH.js → chunk-VLPVGL6U.js} +2 -2
  433. package/__chunks__/{chunk-VMPAE4NV.js → chunk-VMWLEDGI.js} +2 -2
  434. package/__chunks__/{chunk-7DFFSWVU.js → chunk-VUQGX2RG.js} +2 -2
  435. package/__chunks__/chunk-VYKIRYQG.js +2 -0
  436. package/__chunks__/{chunk-CT6ZTIJ6.js → chunk-W6SJ5T7V.js} +2 -2
  437. package/__chunks__/{chunk-MAO376S7.js → chunk-WAHBBIVA.js} +2 -2
  438. package/__chunks__/{chunk-WES4PTU5.js → chunk-WAKVWA2P.js} +2 -2
  439. package/__chunks__/{chunk-3NKORX5R.js → chunk-WBQEZGXF.js} +2 -2
  440. package/__chunks__/chunk-WGNSMBOL.js +2 -0
  441. package/__chunks__/{chunk-3M6DNWCB.js → chunk-WTZF74FI.js} +2 -2
  442. package/__chunks__/chunk-WUYXYYM2.js +2 -0
  443. package/__chunks__/{chunk-R4WZTTPT.js → chunk-WZ7N27VY.js} +2 -2
  444. package/__chunks__/{chunk-OCQXYTOS.js → chunk-XAK27FPP.js} +2 -2
  445. package/__chunks__/{chunk-KBNYB3FJ.js → chunk-XHAR7AGZ.js} +2 -2
  446. package/__chunks__/{chunk-XDO7HTVT.js → chunk-XHF4XEBJ.js} +2 -2
  447. package/__chunks__/{chunk-NOSM25LP.js → chunk-XK4BZEB4.js} +2 -2
  448. package/__chunks__/{chunk-3NNKUOLW.js → chunk-XL6XYI3G.js} +2 -2
  449. package/__chunks__/{chunk-QFWODHWG.js → chunk-XLCD2XA6.js} +2 -2
  450. package/__chunks__/{chunk-X2LPLBHT.js → chunk-XM4KUUW5.js} +2 -2
  451. package/__chunks__/{chunk-HIH3MEYF.js → chunk-XNB63NZM.js} +2 -2
  452. package/__chunks__/{chunk-L3N2U4UJ.js → chunk-XNZGF3PO.js} +2 -2
  453. package/__chunks__/{chunk-UMQSHIZY.js → chunk-XTKGZAYQ.js} +2 -2
  454. package/__chunks__/{chunk-OLS3M5CX.js → chunk-XWKJXLR5.js} +2 -2
  455. package/__chunks__/{chunk-FYAGCYUX.js → chunk-Y5FI3HHM.js} +2 -2
  456. package/__chunks__/{chunk-55RJ4CEA.js → chunk-YC4XSSW2.js} +2 -2
  457. package/__chunks__/{chunk-XF33DAZM.js → chunk-YDWYRAA7.js} +2 -2
  458. package/__chunks__/{chunk-OIYBDCB7.js → chunk-YHPEMIIR.js} +2 -2
  459. package/__chunks__/{chunk-JGAMPOJJ.js → chunk-YIQS65Q7.js} +2 -2
  460. package/__chunks__/{chunk-SDEXBQ7D.js → chunk-YP6ZL2GT.js} +2 -2
  461. package/__chunks__/chunk-YRIZOKJO.js +2 -0
  462. package/__chunks__/{chunk-OKVUWLHY.js → chunk-YWXELVTE.js} +2 -2
  463. package/__chunks__/chunk-YZC6D7ZZ.js +2 -0
  464. package/__chunks__/{chunk-646ESGYB.js → chunk-YZNOHKIO.js} +2 -2
  465. package/__chunks__/{chunk-4H7MOXLV.js → chunk-ZDVAKUDB.js} +2 -2
  466. package/__chunks__/{chunk-PJO6HLOP.js → chunk-ZJU7AUBQ.js} +2 -2
  467. package/__chunks__/{chunk-C3NPVNAI.js → chunk-ZMXT6PTT.js} +2 -2
  468. package/__chunks__/{chunk-TMSAYXTB.js → chunk-ZUAKIX6J.js} +2 -2
  469. package/__chunks__/chunk-ZWB67SM7.js +2 -0
  470. package/__chunks__/{chunk-XHVGPBGV.js → chunk-ZZ2X3CU4.js} +2 -2
  471. package/__commonjs/UI/DappModal/index.js +3 -3
  472. package/__commonjs/UI/Denominate/index.js +2 -2
  473. package/__commonjs/UI/FormatAmount/FormatAmount.js +3 -3
  474. package/__commonjs/UI/FormatAmount/index.js +2 -2
  475. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +2 -2
  476. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  477. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  478. package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +2 -2
  479. package/__commonjs/UI/SignTransactionsModals/components/index.js +6 -6
  480. package/__commonjs/UI/SignTransactionsModals/index.js +2 -2
  481. package/__commonjs/UI/TransactionData/index.js +1 -1
  482. package/__commonjs/UI/TransactionInfo/components/DataDecode/DataDecode.js +2 -2
  483. package/__commonjs/UI/TransactionInfo/components/DataDecode/index.js +2 -2
  484. package/__commonjs/UI/TransactionInfo/components/DataField/DataField.js +5 -5
  485. package/__commonjs/UI/TransactionInfo/components/DataField/index.js +5 -5
  486. package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +2 -2
  487. package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +2 -2
  488. package/__commonjs/UI/TransactionInfo/components/OperationsList/OperationList.js +2 -2
  489. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  490. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  491. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +2 -2
  492. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  493. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/index.js +2 -2
  494. package/__commonjs/UI/TransactionInfo/components/OperationsList/index.js +2 -2
  495. package/__commonjs/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +11 -11
  496. package/__commonjs/UI/TransactionInfo/components/ScResultsList/index.js +11 -11
  497. package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +4 -4
  498. package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/index.js +4 -4
  499. package/__commonjs/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +11 -11
  500. package/__commonjs/UI/TransactionInfo/components/TransactionLogs/index.js +11 -11
  501. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  502. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  503. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +2 -2
  504. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +2 -2
  505. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +2 -2
  506. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +2 -2
  507. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +2 -2
  508. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +2 -2
  509. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  510. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +3 -3
  511. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +2 -2
  512. package/__commonjs/UI/TransactionsTable/components/AccountName.js +2 -2
  513. package/__commonjs/UI/TransactionsTable/components/LockedTokenAddressIcon.js +2 -2
  514. package/__commonjs/UI/TransactionsTable/components/ScAddressIcon.js +2 -2
  515. package/__commonjs/UI/TransactionsTable/components/ShardSpan.js +1 -1
  516. package/__commonjs/UI/TransactionsTable/components/TransactionShardsTransition.js +3 -3
  517. package/__commonjs/UI/TransactionsTable/index.js +2 -2
  518. package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +12 -12
  519. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +9 -9
  520. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +9 -9
  521. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +10 -10
  522. package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +5 -5
  523. package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +12 -12
  524. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +2 -2
  525. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
  526. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
  527. package/__commonjs/UI/UsdValue/UsdValue.js +2 -2
  528. package/__commonjs/UI/UsdValue/index.js +2 -2
  529. package/__commonjs/UI/index.js +78 -75
  530. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.js +2 -2
  531. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +2 -2
  532. package/__commonjs/UI/pages/UnlockPage/index.js +22 -19
  533. package/__commonjs/UI/pages/index.js +22 -19
  534. package/__commonjs/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
  535. package/__commonjs/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
  536. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +10 -7
  537. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +10 -7
  538. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/ImageWithFallback.d.ts +7 -0
  539. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/ImageWithFallback.js +9 -0
  540. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/PairingList.js +5 -2
  541. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.d.ts +1 -1
  542. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +9 -6
  543. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/walletConnectLoginContainerStyles.js +5 -2
  544. package/__commonjs/UI/walletConnect/index.js +10 -7
  545. package/__commonjs/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
  546. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  547. package/__commonjs/__mocks__/accountConfig.js +1 -1
  548. package/__commonjs/__mocks__/index.js +1 -1
  549. package/__commonjs/__mocks__/server.js +1 -1
  550. package/__commonjs/__mocks__/utils/index.js +1 -1
  551. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  552. package/__commonjs/apiCalls/configuration/getApiAddressForChainId.js +1 -1
  553. package/__commonjs/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
  554. package/__commonjs/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
  555. package/__commonjs/apiCalls/configuration/index.js +1 -1
  556. package/__commonjs/apiCalls/index.js +1 -1
  557. package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
  558. package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
  559. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  560. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  561. package/__commonjs/components/LogoutListener/index.js +1 -1
  562. package/__commonjs/components/ProviderInitializer.js +1 -1
  563. package/__commonjs/constants/network.js +1 -1
  564. package/__commonjs/hooks/account/index.js +1 -1
  565. package/__commonjs/hooks/account/useGetAccountProvider.js +1 -1
  566. package/__commonjs/hooks/account/useGetIsLoggedIn.js +1 -1
  567. package/__commonjs/hooks/account/useGetLoginInfo.js +1 -1
  568. package/__commonjs/hooks/index.js +1 -1
  569. package/__commonjs/hooks/login/index.js +1 -1
  570. package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
  571. package/__commonjs/hooks/login/useLoginService.js +1 -1
  572. package/__commonjs/hooks/login/useOperaLogin.js +1 -1
  573. package/__commonjs/hooks/login/useWalletConnectLogin.js +1 -1
  574. package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
  575. package/__commonjs/hooks/login/useWebViewLogin.js +1 -1
  576. package/__commonjs/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  577. package/__commonjs/hooks/transactions/useCancelWalletConnectAction.js +1 -1
  578. package/__commonjs/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
  579. package/__commonjs/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  580. package/__commonjs/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  581. package/__commonjs/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  582. package/__commonjs/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
  583. package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  584. package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
  585. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  586. package/__commonjs/models/index.js +1 -1
  587. package/__commonjs/providers/accountProvider.js +1 -1
  588. package/__commonjs/providers/index.js +1 -1
  589. package/__commonjs/providers/utils.js +1 -1
  590. package/__commonjs/providers/webviewProvider/index.js +1 -1
  591. package/__commonjs/providers/webviewProvider/requestMethods.js +1 -1
  592. package/__commonjs/providers/webviewProvider/webviewProvider.js +1 -1
  593. package/__commonjs/reduxStore/DappProviderContext.js +1 -1
  594. package/__commonjs/reduxStore/commonActions.js +1 -1
  595. package/__commonjs/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  596. package/__commonjs/reduxStore/persistConfig.js +1 -1
  597. package/__commonjs/reduxStore/persistedRootReducer.js +1 -1
  598. package/__commonjs/reduxStore/reducers.js +1 -1
  599. package/__commonjs/reduxStore/selectors/accountInfoSelectors.js +1 -1
  600. package/__commonjs/reduxStore/selectors/dappModalsSelectors.js +1 -1
  601. package/__commonjs/reduxStore/selectors/helpers.js +1 -1
  602. package/__commonjs/reduxStore/selectors/loginInfoSelectors.js +1 -1
  603. package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
  604. package/__commonjs/reduxStore/selectors/networkConfigSelectors.js +1 -1
  605. package/__commonjs/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
  606. package/__commonjs/reduxStore/selectors/toastsSelectors.js +1 -1
  607. package/__commonjs/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  608. package/__commonjs/reduxStore/slices/accountInfoSlice.js +1 -1
  609. package/__commonjs/reduxStore/slices/dappModalsSlice.js +1 -1
  610. package/__commonjs/reduxStore/slices/index.js +1 -1
  611. package/__commonjs/reduxStore/slices/loginInfoSlice.js +1 -1
  612. package/__commonjs/reduxStore/slices/modalsSlice.js +1 -1
  613. package/__commonjs/reduxStore/slices/signedMessageInfoSlice.js +1 -1
  614. package/__commonjs/reduxStore/slices/toastsSlice.js +1 -1
  615. package/__commonjs/reduxStore/slices/transactionsInfoSlice.js +1 -1
  616. package/__commonjs/reduxStore/slices/transactionsSlice.js +1 -1
  617. package/__commonjs/reduxStore/store.js +1 -1
  618. package/__commonjs/services/transactions/clearTransactions.js +1 -1
  619. package/__commonjs/services/transactions/signTransactions.js +1 -1
  620. package/__commonjs/types/enums.types.d.ts +1 -2
  621. package/__commonjs/types/enums.types.js +1 -1
  622. package/__commonjs/types/index.js +1 -1
  623. package/__commonjs/utils/account/getAccountProviderType.js +1 -1
  624. package/__commonjs/utils/account/getAddress.js +1 -1
  625. package/__commonjs/utils/account/getIsProviderEqualTo.js +1 -1
  626. package/__commonjs/utils/account/getShardOfAddress.js +1 -1
  627. package/__commonjs/utils/account/loginWithExternalProvider.js +1 -1
  628. package/__commonjs/utils/account/refreshAccount.js +1 -1
  629. package/__commonjs/utils/account/signMessage.js +1 -1
  630. package/__commonjs/utils/logout.js +1 -1
  631. package/__commonjs/utils/operations/denominate.js +1 -1
  632. package/__commonjs/utils/operations/formatAmount.js +1 -1
  633. package/__commonjs/utils/operations/index.js +1 -1
  634. package/__commonjs/utils/platform/detectCurrentPlatform.js +1 -1
  635. package/__commonjs/utils/platform/index.js +1 -1
  636. package/__commonjs/utils/smartContracts.js +1 -1
  637. package/__commonjs/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
  638. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  639. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
  640. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
  641. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
  642. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  643. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  644. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/index.js +2 -2
  645. package/__commonjs/utils/transactions/getTokenFromData.js +1 -1
  646. package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
  647. package/__commonjs/utils/transactions/parseTransactionAfterSigning.js +1 -1
  648. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +3 -3
  649. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
  650. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
  651. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
  652. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +3 -3
  653. package/__commonjs/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
  654. package/__commonjs/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
  655. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  656. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  657. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
  658. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
  659. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
  660. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
  661. package/__commonjs/utils/transactions/transactionInfoHelpers/index.js +1 -1
  662. package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +3 -3
  663. package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
  664. package/__commonjs/utils/transactions/transactionStateByStatus.js +1 -1
  665. package/__commonjs/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
  666. package/__commonjs/web/hooks/index.js +1 -1
  667. package/__commonjs/web/hooks/useIdleTimer.js +1 -1
  668. package/__commonjs/web/index.js +1 -1
  669. package/__commonjs/wrappers/AppInitializer.js +1 -1
  670. package/__commonjs/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  671. package/__commonjs/wrappers/DappProvider/CustomComponents.js +1 -1
  672. package/__commonjs/wrappers/DappProvider/DappProvider.js +1 -1
  673. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  674. package/__commonjs/wrappers/index.js +1 -1
  675. package/__mocks__/accountConfig.js +1 -1
  676. package/__mocks__/index.js +1 -1
  677. package/__mocks__/server.js +1 -1
  678. package/__mocks__/utils/index.js +1 -1
  679. package/__mocks__/utils/renderWithProvider.js +1 -1
  680. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  681. package/apiCalls/accounts/index.js +1 -1
  682. package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
  683. package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
  684. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  685. package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
  686. package/apiCalls/configuration/index.js +1 -1
  687. package/apiCalls/getScamAddressData.js +1 -1
  688. package/apiCalls/index.js +1 -1
  689. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  690. package/apiCalls/transactions/index.js +1 -1
  691. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  692. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  693. package/apiCalls/utils/index.js +1 -1
  694. package/components/LogoutListener/LogoutListener.js +1 -1
  695. package/components/LogoutListener/helpers/index.js +1 -1
  696. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  697. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  698. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  699. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  700. package/components/LogoutListener/index.js +1 -1
  701. package/components/ProviderInitializer.js +1 -1
  702. package/components/TransactionSender/TransactionSender.js +1 -1
  703. package/components/TransactionSender/index.js +1 -1
  704. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  705. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  706. package/components/TransactionsTracker/index.js +1 -1
  707. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  708. package/constants/index.js +1 -1
  709. package/constants/network.js +1 -1
  710. package/hooks/account/index.js +1 -1
  711. package/hooks/account/useGetAccount.js +1 -1
  712. package/hooks/account/useGetAccountInfo.js +1 -1
  713. package/hooks/account/useGetAccountProvider.js +1 -1
  714. package/hooks/account/useGetIsLoggedIn.js +1 -1
  715. package/hooks/account/useGetLoginInfo.js +1 -1
  716. package/hooks/account/useGetWebsocketEvent.js +1 -1
  717. package/hooks/index.js +1 -1
  718. package/hooks/login/index.js +1 -1
  719. package/hooks/login/useExtensionLogin.js +1 -1
  720. package/hooks/login/useLedgerLogin.js +1 -1
  721. package/hooks/login/useLoginService.js +1 -1
  722. package/hooks/login/useOperaLogin.js +1 -1
  723. package/hooks/login/useWalletConnectLogin.js +1 -1
  724. package/hooks/login/useWalletConnectV2Login.js +1 -1
  725. package/hooks/login/useWebViewLogin.js +1 -1
  726. package/hooks/login/useWebWalletLogin.js +1 -1
  727. package/hooks/signMessage/index.js +1 -1
  728. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  729. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  730. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  731. package/hooks/signMessage/useSignMessage.js +1 -1
  732. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  733. package/hooks/transactions/helpers/index.js +1 -1
  734. package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  735. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  736. package/hooks/transactions/index.js +1 -1
  737. package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
  738. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  739. package/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
  740. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  741. package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
  742. package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  743. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  744. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  745. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  746. package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
  747. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  748. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  749. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  750. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  751. package/hooks/transactions/useGetTokenDetails.js +1 -1
  752. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  753. package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  754. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  755. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  756. package/hooks/transactions/useSignTransactions.js +1 -1
  757. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  758. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  759. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  760. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  761. package/hooks/useGetNetworkConfig.js +1 -1
  762. package/hooks/useGetNotification.js +1 -1
  763. package/hooks/userInterface/index.js +1 -1
  764. package/hooks/userInterface/useIsDappModalVisible.js +1 -1
  765. package/hooks/websocketListener/index.js +1 -1
  766. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  767. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  768. package/models/index.js +1 -1
  769. package/models/newTransaction.js +1 -1
  770. package/package.json +2 -2
  771. package/providers/accountProvider.js +1 -1
  772. package/providers/index.js +1 -1
  773. package/providers/utils.js +1 -1
  774. package/providers/webviewProvider/index.js +1 -1
  775. package/providers/webviewProvider/requestMethods.js +1 -1
  776. package/providers/webviewProvider/webviewProvider.js +1 -1
  777. package/reduxStore/DappProviderContext.js +1 -1
  778. package/reduxStore/commonActions.js +1 -1
  779. package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  780. package/reduxStore/persistConfig.js +1 -1
  781. package/reduxStore/persistedRootReducer.js +1 -1
  782. package/reduxStore/reducers.js +1 -1
  783. package/reduxStore/rootReducer.js +1 -1
  784. package/reduxStore/selectors/accountInfoSelectors.js +1 -1
  785. package/reduxStore/selectors/dappModalsSelectors.js +1 -1
  786. package/reduxStore/selectors/helpers.js +1 -1
  787. package/reduxStore/selectors/index.js +1 -1
  788. package/reduxStore/selectors/loginInfoSelectors.js +1 -1
  789. package/reduxStore/selectors/modalsSelectors.js +1 -1
  790. package/reduxStore/selectors/networkConfigSelectors.js +1 -1
  791. package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
  792. package/reduxStore/selectors/toastsSelectors.js +1 -1
  793. package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  794. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  795. package/reduxStore/slices/accountInfoSlice.js +1 -1
  796. package/reduxStore/slices/dappModalsSlice.js +1 -1
  797. package/reduxStore/slices/index.js +1 -1
  798. package/reduxStore/slices/loginInfoSlice.js +1 -1
  799. package/reduxStore/slices/modalsSlice.js +1 -1
  800. package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
  801. package/reduxStore/slices/toastsSlice.js +1 -1
  802. package/reduxStore/slices/transactionsInfoSlice.js +1 -1
  803. package/reduxStore/slices/transactionsSlice.js +1 -1
  804. package/reduxStore/store.js +1 -1
  805. package/services/index.js +1 -1
  806. package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
  807. package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
  808. package/services/nativeAuth/helpers/index.js +1 -1
  809. package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
  810. package/services/transactions/clearTransactions.js +1 -1
  811. package/services/transactions/index.js +1 -1
  812. package/services/transactions/isCrossShardTransaction.js +1 -1
  813. package/services/transactions/sendTransactions.js +1 -1
  814. package/services/transactions/signTransactions.js +1 -1
  815. package/services/transactions/transformAndSignTransactions.js +1 -1
  816. package/services/transactions/utils.js +1 -1
  817. package/types/enums.types.d.ts +1 -2
  818. package/types/enums.types.js +1 -1
  819. package/types/index.js +1 -1
  820. package/utils/account/getAccount.js +1 -1
  821. package/utils/account/getAccountBalance.js +1 -1
  822. package/utils/account/getAccountProviderType.js +1 -1
  823. package/utils/account/getAccountShard.js +1 -1
  824. package/utils/account/getAddress.js +1 -1
  825. package/utils/account/getIsProviderEqualTo.js +1 -1
  826. package/utils/account/getLatestNonce.js +1 -1
  827. package/utils/account/getShardOfAddress.js +1 -1
  828. package/utils/account/index.js +1 -1
  829. package/utils/account/loginWithExternalProvider.js +1 -1
  830. package/utils/account/refreshAccount.js +1 -1
  831. package/utils/account/setNonce.js +1 -1
  832. package/utils/account/signMessage.js +1 -1
  833. package/utils/getIsLoggedIn.js +1 -1
  834. package/utils/index.js +1 -1
  835. package/utils/logout.js +1 -1
  836. package/utils/network/getChainID.js +1 -1
  837. package/utils/network/getEgldLabel.js +1 -1
  838. package/utils/network/getNetworkConfig.js +1 -1
  839. package/utils/network/index.js +1 -1
  840. package/utils/operations/calculateFeeLimit.js +1 -1
  841. package/utils/operations/denominate.js +1 -1
  842. package/utils/operations/formatAmount.js +1 -1
  843. package/utils/operations/index.js +1 -1
  844. package/utils/operations/nominate.js +1 -1
  845. package/utils/operations/parseAmount.js +1 -1
  846. package/utils/platform/detectCurrentPlatform.js +1 -1
  847. package/utils/platform/index.js +1 -1
  848. package/utils/smartContracts.js +1 -1
  849. package/utils/toasts/customToastsActions.js +1 -1
  850. package/utils/toasts/index.js +1 -1
  851. package/utils/transactions/getAllTransactionsLink.js +1 -1
  852. package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
  853. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  854. package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
  855. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  856. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
  857. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
  858. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
  859. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
  860. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
  861. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  862. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  863. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  864. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  865. package/utils/transactions/getTokenFromData.js +1 -1
  866. package/utils/transactions/getTransactionLink.js +1 -1
  867. package/utils/transactions/index.js +1 -1
  868. package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
  869. package/utils/transactions/parseTransactionAfterSigning.js +1 -1
  870. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
  871. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
  872. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
  873. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
  874. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
  875. package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
  876. package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
  877. package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  878. package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  879. package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
  880. package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
  881. package/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
  882. package/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
  883. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  884. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
  885. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
  886. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
  887. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
  888. package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
  889. package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
  890. package/utils/transactions/transactionStateByStatus.js +1 -1
  891. package/utils/validation/index.js +1 -1
  892. package/utils/validation/maxDecimals.js +1 -1
  893. package/utils/validation/stringIsFloat.js +1 -1
  894. package/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
  895. package/web/hooks/index.js +1 -1
  896. package/web/hooks/useIdleTimer.js +1 -1
  897. package/web/index.js +1 -1
  898. package/wrappers/AppInitializer.js +1 -1
  899. package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
  900. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  901. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  902. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  903. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  904. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  905. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  906. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  907. package/wrappers/DappProvider/CustomComponents.js +1 -1
  908. package/wrappers/DappProvider/DappProvider.js +1 -1
  909. package/wrappers/DappProvider/index.js +1 -1
  910. package/wrappers/index.js +1 -1
  911. package/__chunks__/chunk-2KPRW74K.js +0 -2
  912. package/__chunks__/chunk-3YW6SLXC.js +0 -2
  913. package/__chunks__/chunk-4DS2Q5LW.js +0 -2
  914. package/__chunks__/chunk-5HRV72ZC.js +0 -2
  915. package/__chunks__/chunk-5ZXJXM3L.js +0 -2
  916. package/__chunks__/chunk-744DQ7ZI.js +0 -2
  917. package/__chunks__/chunk-7Z6F2U52.js +0 -2
  918. package/__chunks__/chunk-BAOVOANA.js +0 -2
  919. package/__chunks__/chunk-BCE6RONK.js +0 -2
  920. package/__chunks__/chunk-BLUG63Q2.js +0 -2
  921. package/__chunks__/chunk-BLWDDJJF.js +0 -2
  922. package/__chunks__/chunk-BRXBMHAS.js +0 -2
  923. package/__chunks__/chunk-C2NK6QSW.js +0 -2
  924. package/__chunks__/chunk-CDW2662X.js +0 -2
  925. package/__chunks__/chunk-CJO53GSR.js +0 -2
  926. package/__chunks__/chunk-CSHPES7K.js +0 -2
  927. package/__chunks__/chunk-CVRC3LLT.js +0 -2
  928. package/__chunks__/chunk-E3KA2FJ5.js +0 -2
  929. package/__chunks__/chunk-E6C3JWXL.js +0 -2
  930. package/__chunks__/chunk-EIUJUUMA.js +0 -2
  931. package/__chunks__/chunk-FCLS44BI.js +0 -2
  932. package/__chunks__/chunk-FLC53TPV.js +0 -2
  933. package/__chunks__/chunk-FTCWSZIB.js +0 -2
  934. package/__chunks__/chunk-G65FNHLP.js +0 -2
  935. package/__chunks__/chunk-GKK7U7J7.js +0 -2
  936. package/__chunks__/chunk-GMQ53JDD.js +0 -2
  937. package/__chunks__/chunk-GO5P7HHE.js +0 -2
  938. package/__chunks__/chunk-IJTARIG6.js +0 -2
  939. package/__chunks__/chunk-LEZT7BGE.js +0 -2
  940. package/__chunks__/chunk-LKUT6VEX.js +0 -2
  941. package/__chunks__/chunk-LTPOFFWE.js +0 -2
  942. package/__chunks__/chunk-LZSBQU7C.js +0 -2
  943. package/__chunks__/chunk-MM4TCQU3.js +0 -2
  944. package/__chunks__/chunk-MPH3OBOB.js +0 -2
  945. package/__chunks__/chunk-NGZ7GQV4.js +0 -2
  946. package/__chunks__/chunk-NMGB3ORJ.js +0 -2
  947. package/__chunks__/chunk-NVJ6UVZ3.js +0 -2
  948. package/__chunks__/chunk-OUJ2TGXC.js +0 -2
  949. package/__chunks__/chunk-Q27BCXDP.js +0 -2
  950. package/__chunks__/chunk-Q6BK2CI7.js +0 -2
  951. package/__chunks__/chunk-QHJZA2MO.js +0 -2
  952. package/__chunks__/chunk-QWJ446RL.js +0 -2
  953. package/__chunks__/chunk-R3TYUNXK.js +0 -2
  954. package/__chunks__/chunk-RGOYZTEJ.js +0 -2
  955. package/__chunks__/chunk-RUVW6WUN.js +0 -2
  956. package/__chunks__/chunk-T3ET46NT.js +0 -2
  957. package/__chunks__/chunk-UE5SMZSJ.js +0 -2
  958. package/__chunks__/chunk-UIGOLJ7B.js +0 -2
  959. package/__chunks__/chunk-VPN67LUL.js +0 -2
  960. package/__chunks__/chunk-VWLFZWE6.js +0 -2
  961. package/__chunks__/chunk-W7PLC5YB.js +0 -2
  962. package/__chunks__/chunk-XTIXKEXM.js +0 -2
  963. package/__chunks__/chunk-Z5J2KGZZ.js +0 -2
  964. package/__chunks__/chunk-ZWP2VUR6.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var ze=Object.create;var O=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames,ie=Object.getOwnPropertySymbols,Ve=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var ae=(t,e,r)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,se=(t,e)=>{for(var r in e||(e={}))oe.call(e,r)&&ae(t,r,e[r]);if(ie)for(var r of ie(e))je.call(e,r)&&ae(t,r,e[r]);return t};var We=(t,e)=>()=>(t&&(e=t(t=0)),e);var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xe=(t,e)=>{for(var r in e)O(t,r,{get:e[r],enumerable:!0})},le=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of He(e))!oe.call(t,i)&&i!==r&&O(t,i,{get:()=>e[i],enumerable:!(n=qe(e,i))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?ze(Ve(t)):{},le(e||!t||!t.__esModule?O(r,"default",{value:t,enumerable:!0}):r,t)),Ye=t=>le(O({},"__esModule",{value:!0}),t);var de=P(G=>{"use strict";p();G.byteLength=Qe;G.toByteArray=Je;G.fromByteArray=rr;var k=[],T=[],Ke=typeof Uint8Array!="undefined"?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,pe=V.length;N<pe;++N)k[N]=V[N],T[V.charCodeAt(N)]=N;var N,pe;T["-".charCodeAt(0)]=62;T["_".charCodeAt(0)]=63;function ue(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Qe(t){var e=ue(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Ze(t,e,r){return(e+r)*3/4-r}function Je(t){var e,r=ue(t),n=r[0],i=r[1],a=new Ke(Ze(t,n,i)),o=0,l=i>0?n-4:n,c;for(c=0;c<l;c+=4)e=T[t.charCodeAt(c)]<<18|T[t.charCodeAt(c+1)]<<12|T[t.charCodeAt(c+2)]<<6|T[t.charCodeAt(c+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=T[t.charCodeAt(c)]<<2|T[t.charCodeAt(c+1)]>>4,a[o++]=e&255),i===1&&(e=T[t.charCodeAt(c)]<<10|T[t.charCodeAt(c+1)]<<4|T[t.charCodeAt(c+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function $e(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function er(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push($e(n));return i.join("")}function rr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(er(t,o,o+a>l?l:o+a));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var ge=P(j=>{p();j.read=function(t,e,r,n,i){var a,o,l=i*8-n-1,c=(1<<l)-1,d=c>>1,g=-7,u=r?i-1:0,v=r?-1:1,b=t[e+u];for(u+=v,a=b&(1<<-g)-1,b>>=-g,g+=l;g>0;a=a*256+t[e+u],u+=v,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+u],u+=v,g-=8);if(a===0)a=1-d;else{if(a===c)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};j.write=function(t,e,r,n,i,a){var o,l,c,d=a*8-i-1,g=(1<<d)-1,u=g>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,C=n?1:-1,Ge=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+u>=1?e+=v/c:e+=v*Math.pow(2,1-u),e*c>=2&&(o++,c/=2),o+u>=g?(l=0,o=g):o+u>=1?(l=(e*c-1)*Math.pow(2,i),o=o+u):(l=e*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=l&255,b+=C,l/=256,i-=8);for(o=o<<i|l,d+=i;d>0;t[r+b]=o&255,b+=C,o/=256,d-=8);t[r+b-C]|=Ge*128}});var Ae=P(U=>{"use strict";p();var W=de(),B=ge(),fe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=sr;U.INSPECT_MAX_BYTES=50;var z=2147483647;U.kMaxLength=z;s.TYPED_ARRAY_SUPPORT=tr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function tr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function R(t){if(t>z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Q(t)}return ye(t,e,r)}s.poolSize=8192;function ye(t,e,r){if(typeof t=="string")return ir(t,e);if(ArrayBuffer.isView(t))return ar(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return Y(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=or(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return ye(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function xe(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function nr(t,e,r){return xe(t),t<=0?R(t):e!==void 0?typeof r=="string"?R(t).fill(e,r):R(t).fill(e):R(t)}s.alloc=function(t,e,r){return nr(t,e,r)};function Q(t){return xe(t),R(t<0?0:Z(t)|0)}s.allocUnsafe=function(t){return Q(t)};s.allocUnsafeSlow=function(t){return Q(t)};function ir(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=we(t,e)|0,n=R(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function X(t){for(var e=t.length<0?0:Z(t.length)|0,r=R(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function ar(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return Y(e.buffer,e.byteOffset,e.byteLength)}return X(t)}function Y(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function or(t){if(s.isBuffer(t)){var e=Z(t.length)|0,r=R(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||J(t.length)?R(0):X(t);if(t.type==="Buffer"&&Array.isArray(t.data))return X(t.data)}function Z(t){if(t>=z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+z.toString(16)+" bytes");return t|0}function sr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(_(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function we(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ie(t).length;default:if(i)return n?-1:K(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=we;function lr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return xr(this,e,r);case"utf8":case"utf-8":return Te(this,e,r);case"ascii":return hr(this,e,r);case"latin1":case"binary":return yr(this,e,r);case"base64":return fr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)F(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)F(this,r,r+3),F(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Te(this,0,e):lr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};fe&&(s.prototype[fe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,l=n-r,c=Math.min(o,l),d=this.slice(i,a),g=e.slice(r,n),u=0;u<c;++u)if(d[u]!==g[u]){o=d[u],l=g[u];break}return o<l?-1:l<o?1:0};function be(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,J(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:me(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):me(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function me(t,e,r,n,i){var a=1,o=t.length,l=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,l/=2,r/=2}function c(b,C){return a===1?b[C]:b.readUInt16BE(C*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(c(t,d)===c(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===l)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+l>o&&(r=o-l),d=r;d>=0;d--){for(var u=!0,v=0;v<l;v++)if(c(t,d+v)!==c(e,v)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return be(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return be(this,e,r,n,!1)};function cr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var l=parseInt(e.substr(o*2,2),16);if(J(l))return o;t[r+o]=l}return o}function pr(t,e,r,n){return q(K(e,t.length-r),t,r,n)}function ur(t,e,r,n){return q(vr(e),t,r,n)}function dr(t,e,r,n){return q(Ie(e),t,r,n)}function gr(t,e,r,n){return q(kr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return cr(this,e,r,n);case"utf8":case"utf-8":return pr(this,e,r,n);case"ascii":case"latin1":case"binary":return ur(this,e,r,n);case"base64":return dr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fr(t,e,r){return e===0&&r===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(e,r))}function Te(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,l=a>239?4:a>223?3:a>191?2:1;if(i+l<=r){var c,d,g,u;switch(l){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(u=(a&31)<<6|c&63,u>127&&(o=u));break;case 3:c=t[i+1],d=t[i+2],(c&192)===128&&(d&192)===128&&(u=(a&15)<<12|(c&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:c=t[i+1],d=t[i+2],g=t[i+3],(c&192)===128&&(d&192)===128&&(g&192)===128&&(u=(a&15)<<18|(c&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(o=u))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=l}return mr(n)}var he=4096;function mr(t){var e=t.length;if(e<=he)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=he));return r}function hr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function yr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function xr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=_r[t[a]];return i}function wr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!1,52,8)};function w(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=1,l=0;for(this[r]=e&255;++l<n&&(o*=256);)this[r+l]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=n-1,l=1;for(this[r+o]=e&255;--o>=0&&(l*=256);)this[r+o]=e/l&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=0,l=1,c=0;for(this[r]=e&255;++o<n&&(l*=256);)e<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=n-1,l=1,c=0;for(this[r+o]=e&255;--o>=0&&(l*=256);)e<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function ve(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ke(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,4,34028234663852886e22,-34028234663852886e22),B.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return ke(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return ke(this,e,r,!1,n)};function _e(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,8,17976931348623157e292,-17976931348623157e292),B.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return _e(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return _e(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var l=s.isBuffer(e)?e:s.from(e,i),c=l.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=l[o%c]}return this};var br=/[^+/0-9A-Za-z-_]/g;function Tr(t){if(t=t.split("=")[0],t=t.trim().replace(br,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function K(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function vr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function kr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Ie(t){return W.toByteArray(Tr(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function J(t){return t!==t}var _r=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ne=P((Pr,Le)=>{p();var y=Le.exports={},I,A;function $(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=$}catch(t){I=$}try{typeof clearTimeout=="function"?A=clearTimeout:A=ee}catch(t){A=ee}})();function Ee(t){if(I===setTimeout)return setTimeout(t,0);if((I===$||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(e){try{return I.call(null,t,0)}catch(r){return I.call(this,t,0)}}}function Ir(t){if(A===clearTimeout)return clearTimeout(t);if((A===ee||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(e){try{return A.call(null,t)}catch(r){return A.call(this,t)}}}var S=[],M=!1,D,H=-1;function Ar(){!M||!D||(M=!1,D.length?S=D.concat(S):H=-1,S.length&&Re())}function Re(){if(!M){var t=Ee(Ar);M=!0;for(var e=S.length;e;){for(D=S,S=[];++H<e;)D&&D[H].run();H=-1,e=S.length}D=null,M=!1,Ir(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];S.push(new Se(t,e)),S.length===1&&!M&&Ee(Re)};function Se(t,e){this.fun=t,this.array=e}Se.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function L(){}y.on=L;y.addListener=L;y.once=L;y.off=L;y.removeListener=L;y.removeAllListeners=L;y.emit=L;y.prependListener=L;y.prependOnceListener=L;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Gr,p=We(()=>{f=ce(Ae()),m=ce(Ne()),Gr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Cr={};Xe(Cr,{dappModalsSlice:()=>ne,default:()=>Dr,setDappModalConfig:()=>Fr,setDappModalFooterText:()=>Nr,setDappModalFooterVisibility:()=>Sr,setDappModalHeaderText:()=>Lr,setDappModalHeaderVisibility:()=>Rr,setDappModalVisibility:()=>Er});module.exports=Ye(Cr);p();var Pe=require("@reduxjs/toolkit");p();var te=require("@reduxjs/toolkit");p();p();p();p();p();p();p();p();p();p();p();p();p();var re={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Fe,egldLabel:at}=re["devnet"],{chainId:De,egldLabel:ot}=re["testnet"],{chainId:Ce,egldLabel:st}=re["mainnet"];var lt={["devnet"]:Fe,["testnet"]:De,["mainnet"]:Ce},ct={[Fe]:"devnet",[De]:"testnet",[Ce]:"mainnet"};p();p();p();p();var E=require("@multiversx/sdk-web-wallet-provider");p();var Be="logout",Ue="login";var Me=(0,te.createAction)(Be),It=(0,te.createAction)(Ue,t=>({payload:t}));var Oe={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ne=(0,Pe.createSlice)({name:"dappModalsSlice",initialState:Oe,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=se({},e.payload)}},extraReducers:t=>{t.addCase(Me,()=>Oe)}}),{setDappModalVisibility:Er,setDappModalHeaderVisibility:Rr,setDappModalFooterVisibility:Sr,setDappModalHeaderText:Lr,setDappModalFooterText:Nr,setDappModalConfig:Fr}=ne.actions,Dr=ne.reducer;0&&(module.exports={dappModalsSlice,setDappModalConfig,setDappModalFooterText,setDappModalFooterVisibility,setDappModalHeaderText,setDappModalHeaderVisibility,setDappModalVisibility});
1
+ "use strict";var ze=Object.create;var O=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames,ie=Object.getOwnPropertySymbols,Ve=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var ae=(t,e,r)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,se=(t,e)=>{for(var r in e||(e={}))oe.call(e,r)&&ae(t,r,e[r]);if(ie)for(var r of ie(e))je.call(e,r)&&ae(t,r,e[r]);return t};var We=(t,e)=>()=>(t&&(e=t(t=0)),e);var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xe=(t,e)=>{for(var r in e)O(t,r,{get:e[r],enumerable:!0})},le=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of He(e))!oe.call(t,i)&&i!==r&&O(t,i,{get:()=>e[i],enumerable:!(n=qe(e,i))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?ze(Ve(t)):{},le(e||!t||!t.__esModule?O(r,"default",{value:t,enumerable:!0}):r,t)),Ye=t=>le(O({},"__esModule",{value:!0}),t);var de=P(G=>{"use strict";p();G.byteLength=Qe;G.toByteArray=Je;G.fromByteArray=rr;var k=[],T=[],Ke=typeof Uint8Array!="undefined"?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,pe=V.length;N<pe;++N)k[N]=V[N],T[V.charCodeAt(N)]=N;var N,pe;T["-".charCodeAt(0)]=62;T["_".charCodeAt(0)]=63;function ue(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Qe(t){var e=ue(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Ze(t,e,r){return(e+r)*3/4-r}function Je(t){var e,r=ue(t),n=r[0],i=r[1],a=new Ke(Ze(t,n,i)),o=0,l=i>0?n-4:n,c;for(c=0;c<l;c+=4)e=T[t.charCodeAt(c)]<<18|T[t.charCodeAt(c+1)]<<12|T[t.charCodeAt(c+2)]<<6|T[t.charCodeAt(c+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=T[t.charCodeAt(c)]<<2|T[t.charCodeAt(c+1)]>>4,a[o++]=e&255),i===1&&(e=T[t.charCodeAt(c)]<<10|T[t.charCodeAt(c+1)]<<4|T[t.charCodeAt(c+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function $e(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function er(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push($e(n));return i.join("")}function rr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(er(t,o,o+a>l?l:o+a));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var ge=P(j=>{p();j.read=function(t,e,r,n,i){var a,o,l=i*8-n-1,c=(1<<l)-1,d=c>>1,g=-7,u=r?i-1:0,v=r?-1:1,b=t[e+u];for(u+=v,a=b&(1<<-g)-1,b>>=-g,g+=l;g>0;a=a*256+t[e+u],u+=v,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+u],u+=v,g-=8);if(a===0)a=1-d;else{if(a===c)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};j.write=function(t,e,r,n,i,a){var o,l,c,d=a*8-i-1,g=(1<<d)-1,u=g>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,C=n?1:-1,Ge=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+u>=1?e+=v/c:e+=v*Math.pow(2,1-u),e*c>=2&&(o++,c/=2),o+u>=g?(l=0,o=g):o+u>=1?(l=(e*c-1)*Math.pow(2,i),o=o+u):(l=e*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=l&255,b+=C,l/=256,i-=8);for(o=o<<i|l,d+=i;d>0;t[r+b]=o&255,b+=C,o/=256,d-=8);t[r+b-C]|=Ge*128}});var Ee=P(U=>{"use strict";p();var W=de(),B=ge(),me=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=sr;U.INSPECT_MAX_BYTES=50;var z=2147483647;U.kMaxLength=z;s.TYPED_ARRAY_SUPPORT=tr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function tr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function R(t){if(t>z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Q(t)}return ye(t,e,r)}s.poolSize=8192;function ye(t,e,r){if(typeof t=="string")return ir(t,e);if(ArrayBuffer.isView(t))return ar(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return Y(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=or(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return ye(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function xe(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function nr(t,e,r){return xe(t),t<=0?R(t):e!==void 0?typeof r=="string"?R(t).fill(e,r):R(t).fill(e):R(t)}s.alloc=function(t,e,r){return nr(t,e,r)};function Q(t){return xe(t),R(t<0?0:Z(t)|0)}s.allocUnsafe=function(t){return Q(t)};s.allocUnsafeSlow=function(t){return Q(t)};function ir(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=we(t,e)|0,n=R(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function X(t){for(var e=t.length<0?0:Z(t.length)|0,r=R(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function ar(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return Y(e.buffer,e.byteOffset,e.byteLength)}return X(t)}function Y(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function or(t){if(s.isBuffer(t)){var e=Z(t.length)|0,r=R(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||J(t.length)?R(0):X(t);if(t.type==="Buffer"&&Array.isArray(t.data))return X(t.data)}function Z(t){if(t>=z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+z.toString(16)+" bytes");return t|0}function sr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(_(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function we(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ie(t).length;default:if(i)return n?-1:K(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=we;function lr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return xr(this,e,r);case"utf8":case"utf-8":return Te(this,e,r);case"ascii":return hr(this,e,r);case"latin1":case"binary":return yr(this,e,r);case"base64":return mr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)F(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)F(this,r,r+3),F(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Te(this,0,e):lr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};me&&(s.prototype[me]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,l=n-r,c=Math.min(o,l),d=this.slice(i,a),g=e.slice(r,n),u=0;u<c;++u)if(d[u]!==g[u]){o=d[u],l=g[u];break}return o<l?-1:l<o?1:0};function be(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,J(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:fe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):fe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function fe(t,e,r,n,i){var a=1,o=t.length,l=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,l/=2,r/=2}function c(b,C){return a===1?b[C]:b.readUInt16BE(C*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(c(t,d)===c(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===l)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+l>o&&(r=o-l),d=r;d>=0;d--){for(var u=!0,v=0;v<l;v++)if(c(t,d+v)!==c(e,v)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return be(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return be(this,e,r,n,!1)};function cr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var l=parseInt(e.substr(o*2,2),16);if(J(l))return o;t[r+o]=l}return o}function pr(t,e,r,n){return q(K(e,t.length-r),t,r,n)}function ur(t,e,r,n){return q(vr(e),t,r,n)}function dr(t,e,r,n){return q(Ie(e),t,r,n)}function gr(t,e,r,n){return q(kr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return cr(this,e,r,n);case"utf8":case"utf-8":return pr(this,e,r,n);case"ascii":case"latin1":case"binary":return ur(this,e,r,n);case"base64":return dr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function mr(t,e,r){return e===0&&r===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(e,r))}function Te(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,l=a>239?4:a>223?3:a>191?2:1;if(i+l<=r){var c,d,g,u;switch(l){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(u=(a&31)<<6|c&63,u>127&&(o=u));break;case 3:c=t[i+1],d=t[i+2],(c&192)===128&&(d&192)===128&&(u=(a&15)<<12|(c&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:c=t[i+1],d=t[i+2],g=t[i+3],(c&192)===128&&(d&192)===128&&(g&192)===128&&(u=(a&15)<<18|(c&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(o=u))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=l}return fr(n)}var he=4096;function fr(t){var e=t.length;if(e<=he)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=he));return r}function hr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function yr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function xr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=_r[t[a]];return i}function wr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!1,52,8)};function w(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=1,l=0;for(this[r]=e&255;++l<n&&(o*=256);)this[r+l]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=n-1,l=1;for(this[r+o]=e&255;--o>=0&&(l*=256);)this[r+o]=e/l&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=0,l=1,c=0;for(this[r]=e&255;++o<n&&(l*=256);)e<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=n-1,l=1,c=0;for(this[r+o]=e&255;--o>=0&&(l*=256);)e<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function ve(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ke(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,4,34028234663852886e22,-34028234663852886e22),B.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return ke(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return ke(this,e,r,!1,n)};function _e(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,8,17976931348623157e292,-17976931348623157e292),B.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return _e(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return _e(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var l=s.isBuffer(e)?e:s.from(e,i),c=l.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=l[o%c]}return this};var br=/[^+/0-9A-Za-z-_]/g;function Tr(t){if(t=t.split("=")[0],t=t.trim().replace(br,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function K(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function vr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function kr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Ie(t){return W.toByteArray(Tr(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function J(t){return t!==t}var _r=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ne=P((Pr,Le)=>{p();var y=Le.exports={},I,E;function $(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=$}catch(t){I=$}try{typeof clearTimeout=="function"?E=clearTimeout:E=ee}catch(t){E=ee}})();function Ae(t){if(I===setTimeout)return setTimeout(t,0);if((I===$||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(e){try{return I.call(null,t,0)}catch(r){return I.call(this,t,0)}}}function Ir(t){if(E===clearTimeout)return clearTimeout(t);if((E===ee||!E)&&clearTimeout)return E=clearTimeout,clearTimeout(t);try{return E(t)}catch(e){try{return E.call(null,t)}catch(r){return E.call(this,t)}}}var S=[],M=!1,D,H=-1;function Er(){!M||!D||(M=!1,D.length?S=D.concat(S):H=-1,S.length&&Re())}function Re(){if(!M){var t=Ae(Er);M=!0;for(var e=S.length;e;){for(D=S,S=[];++H<e;)D&&D[H].run();H=-1,e=S.length}D=null,M=!1,Ir(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];S.push(new Se(t,e)),S.length===1&&!M&&Ae(Re)};function Se(t,e){this.fun=t,this.array=e}Se.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function L(){}y.on=L;y.addListener=L;y.once=L;y.off=L;y.removeListener=L;y.removeAllListeners=L;y.emit=L;y.prependListener=L;y.prependOnceListener=L;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var m,f,Gr,p=We(()=>{m=ce(Ee()),f=ce(Ne()),Gr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Cr={};Xe(Cr,{dappModalsSlice:()=>ne,default:()=>Dr,setDappModalConfig:()=>Fr,setDappModalFooterText:()=>Nr,setDappModalFooterVisibility:()=>Sr,setDappModalHeaderText:()=>Lr,setDappModalHeaderVisibility:()=>Rr,setDappModalVisibility:()=>Ar});module.exports=Ye(Cr);p();var Pe=require("@reduxjs/toolkit");p();var te=require("@reduxjs/toolkit");p();p();p();p();p();p();p();p();p();p();p();p();p();var re={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Fe,egldLabel:at}=re["devnet"],{chainId:De,egldLabel:ot}=re["testnet"],{chainId:Ce,egldLabel:st}=re["mainnet"];var lt={["devnet"]:Fe,["testnet"]:De,["mainnet"]:Ce},ct={[Fe]:"devnet",[De]:"testnet",[Ce]:"mainnet"};p();p();p();p();var A=require("@multiversx/sdk-web-wallet-provider");p();var Be="logout",Ue="login";var Me=(0,te.createAction)(Be),It=(0,te.createAction)(Ue,t=>({payload:t}));var Oe={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ne=(0,Pe.createSlice)({name:"dappModalsSlice",initialState:Oe,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=se({},e.payload)}},extraReducers:t=>{t.addCase(Me,()=>Oe)}}),{setDappModalVisibility:Ar,setDappModalHeaderVisibility:Rr,setDappModalFooterVisibility:Sr,setDappModalHeaderText:Lr,setDappModalFooterText:Nr,setDappModalConfig:Fr}=ne.actions,Dr=ne.reducer;0&&(module.exports={dappModalsSlice,setDappModalConfig,setDappModalFooterText,setDappModalFooterVisibility,setDappModalHeaderText,setDappModalHeaderVisibility,setDappModalVisibility});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Ur=Object.create;var H=Object.defineProperty,Or=Object.defineProperties,Gr=Object.getOwnPropertyDescriptor,zr=Object.getOwnPropertyDescriptors,Hr=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Wr=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable;var Ne=(t,e,r)=>e in t?H(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,v=(t,e)=>{for(var r in e||(e={}))Fe.call(e,r)&&Ne(t,r,e[r]);if(Ce)for(var r of Ce(e))qr.call(e,r)&&Ne(t,r,e[r]);return t},D=(t,e)=>Or(t,zr(e));var Vr=(t,e)=>()=>(t&&(e=t(t=0)),e);var V=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$=(t,e)=>{for(var r in e)H(t,r,{get:e[r],enumerable:!0})},Me=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Hr(e))!Fe.call(t,o)&&o!==r&&H(t,o,{get:()=>e[o],enumerable:!(n=Gr(e,o))||n.enumerable});return t};var ee=(t,e,r)=>(r=t!=null?Ur(Wr(t)):{},Me(e||!t||!t.__esModule?H(r,"default",{value:t,enumerable:!0}):r,t)),jr=t=>Me(H({},"__esModule",{value:!0}),t);var Be=V(j=>{"use strict";c();j.byteLength=Yr;j.toByteArray=Jr;j.fromByteArray=$r;var I=[],A=[],Kr=typeof Uint8Array!="undefined"?Uint8Array:Array,re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(P=0,De=re.length;P<De;++P)I[P]=re[P],A[re.charCodeAt(P)]=P;var P,De;A["-".charCodeAt(0)]=62;A["_".charCodeAt(0)]=63;function Pe(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Yr(t){var e=Pe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Xr(t,e,r){return(e+r)*3/4-r}function Jr(t){var e,r=Pe(t),n=r[0],o=r[1],i=new Kr(Xr(t,n,o)),a=0,u=o>0?n-4:n,l;for(l=0;l<u;l+=4)e=A[t.charCodeAt(l)]<<18|A[t.charCodeAt(l+1)]<<12|A[t.charCodeAt(l+2)]<<6|A[t.charCodeAt(l+3)],i[a++]=e>>16&255,i[a++]=e>>8&255,i[a++]=e&255;return o===2&&(e=A[t.charCodeAt(l)]<<2|A[t.charCodeAt(l+1)]>>4,i[a++]=e&255),o===1&&(e=A[t.charCodeAt(l)]<<10|A[t.charCodeAt(l+1)]<<4|A[t.charCodeAt(l+2)]>>2,i[a++]=e>>8&255,i[a++]=e&255),i}function Qr(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function Zr(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(Qr(n));return o.join("")}function $r(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Zr(t,a,a+i>u?u:a+i));return n===1?(e=t[r-1],o.push(I[e>>2]+I[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(I[e>>10]+I[e>>4&63]+I[e<<2&63]+"=")),o.join("")}});var Ue=V(te=>{c();te.read=function(t,e,r,n,o){var i,a,u=o*8-n-1,l=(1<<u)-1,m=l>>1,y=-7,f=r?o-1:0,x=r?-1:1,S=t[e+f];for(f+=x,i=S&(1<<-y)-1,S>>=-y,y+=u;y>0;i=i*256+t[e+f],f+=x,y-=8);for(a=i&(1<<-y)-1,i>>=-y,y+=n;y>0;a=a*256+t[e+f],f+=x,y-=8);if(i===0)i=1-m;else{if(i===l)return a?NaN:(S?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-m}return(S?-1:1)*a*Math.pow(2,i-n)};te.write=function(t,e,r,n,o,i){var a,u,l,m=i*8-o-1,y=(1<<m)-1,f=y>>1,x=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=n?0:i-1,M=n?1:-1,_=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=y):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?e+=x/l:e+=x*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=y?(u=0,a=y):a+f>=1?(u=(e*l-1)*Math.pow(2,o),a=a+f):(u=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+S]=u&255,S+=M,u/=256,o-=8);for(a=a<<o|u,m+=o;m>0;t[r+S]=a&255,S+=M,a/=256,m-=8);t[r+S-M]|=_*128}});var Qe=V(G=>{"use strict";c();var ne=Be(),O=Ue(),Oe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;G.Buffer=s;G.SlowBuffer=it;G.INSPECT_MAX_BYTES=50;var K=2147483647;G.kMaxLength=K;s.TYPED_ARRAY_SUPPORT=et();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function et(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function C(t){if(t>K)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return se(t)}return He(t,e,r)}s.poolSize=8192;function He(t,e,r){if(typeof t=="string")return tt(t,e);if(ArrayBuffer.isView(t))return nt(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(k(t,ArrayBuffer)||t&&k(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(k(t,SharedArrayBuffer)||t&&k(t.buffer,SharedArrayBuffer)))return ie(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var o=ot(t);if(o)return o;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return He(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function We(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function rt(t,e,r){return We(t),t<=0?C(t):e!==void 0?typeof r=="string"?C(t).fill(e,r):C(t).fill(e):C(t)}s.alloc=function(t,e,r){return rt(t,e,r)};function se(t){return We(t),C(t<0?0:ce(t)|0)}s.allocUnsafe=function(t){return se(t)};s.allocUnsafeSlow=function(t){return se(t)};function tt(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=qe(t,e)|0,n=C(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function oe(t){for(var e=t.length<0?0:ce(t.length)|0,r=C(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function nt(t){if(k(t,Uint8Array)){var e=new Uint8Array(t);return ie(e.buffer,e.byteOffset,e.byteLength)}return oe(t)}function ie(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function ot(t){if(s.isBuffer(t)){var e=ce(t.length)|0,r=C(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||le(t.length)?C(0):oe(t);if(t.type==="Buffer"&&Array.isArray(t.data))return oe(t.data)}function ce(t){if(t>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return t|0}function it(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),k(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=s.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(k(a,Uint8Array))i+a.length>o.length?s.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(s.isBuffer(a))a.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o};function qe(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||k(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ae(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Je(t).length;default:if(o)return n?-1:ae(t).length;e=(""+e).toLowerCase(),o=!0}}s.byteLength=qe;function at(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return yt(this,e,r);case"utf8":case"utf-8":return je(this,e,r);case"ascii":return mt(this,e,r);case"latin1":case"binary":return ft(this,e,r);case"base64":return dt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ht(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function B(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)B(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)B(this,r,r+3),B(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)B(this,r,r+7),B(this,r+1,r+6),B(this,r+2,r+5),B(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?je(this,0,e):at.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=G.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Oe&&(s.prototype[Oe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,o,i){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,u=n-r,l=Math.min(a,u),m=this.slice(o,i),y=e.slice(r,n),f=0;f<l;++f)if(m[f]!==y[f]){a=m[f],u=y[f];break}return a<u?-1:u<a?1:0};function Ve(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,le(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:Ge(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ge(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Ge(t,e,r,n,o){var i=1,a=t.length,u=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,u/=2,r/=2}function l(S,M){return i===1?S[M]:S.readUInt16BE(M*i)}var m;if(o){var y=-1;for(m=r;m<a;m++)if(l(t,m)===l(e,y===-1?0:m-y)){if(y===-1&&(y=m),m-y+1===u)return y*i}else y!==-1&&(m-=m-y),y=-1}else for(r+u>a&&(r=a-u),m=r;m>=0;m--){for(var f=!0,x=0;x<u;x++)if(l(t,m+x)!==l(e,x)){f=!1;break}if(f)return m}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Ve(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Ve(this,e,r,n,!1)};function st(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u=parseInt(e.substr(a*2,2),16);if(le(u))return a;t[r+a]=u}return a}function ct(t,e,r,n){return Y(ae(e,t.length-r),t,r,n)}function lt(t,e,r,n){return Y(St(e),t,r,n)}function ut(t,e,r,n){return Y(Je(e),t,r,n)}function pt(t,e,r,n){return Y(wt(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return st(this,e,r,n);case"utf8":case"utf-8":return ct(this,e,r,n);case"ascii":case"latin1":case"binary":return lt(this,e,r,n);case"base64":return ut(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pt(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function dt(t,e,r){return e===0&&r===t.length?ne.fromByteArray(t):ne.fromByteArray(t.slice(e,r))}function je(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,u=i>239?4:i>223?3:i>191?2:1;if(o+u<=r){var l,m,y,f;switch(u){case 1:i<128&&(a=i);break;case 2:l=t[o+1],(l&192)===128&&(f=(i&31)<<6|l&63,f>127&&(a=f));break;case 3:l=t[o+1],m=t[o+2],(l&192)===128&&(m&192)===128&&(f=(i&15)<<12|(l&63)<<6|m&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:l=t[o+1],m=t[o+2],y=t[o+3],(l&192)===128&&(m&192)===128&&(y&192)===128&&(f=(i&15)<<18|(l&63)<<12|(m&63)<<6|y&63,f>65535&&f<1114112&&(a=f))}}a===null?(a=65533,u=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=u}return gt(n)}var ze=4096;function gt(t){var e=t.length;if(e<=ze)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ze));return r}function mt(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function ft(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function yt(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=bt[t[i]];return o}function ht(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o=this.subarray(e,r);return Object.setPrototypeOf(o,s.prototype),o};function T(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||T(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return o};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||T(e,r,this.length);for(var o=this[e+--r],i=1;r>0&&(i*=256);)o+=this[e+--r]*i;return o};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||T(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||T(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||T(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||T(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||T(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||T(e,r,this.length);for(var o=r,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||T(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||T(e,4,this.length),O.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||T(e,4,this.length),O.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||T(e,8,this.length),O.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||T(e,8,this.length),O.read(this,e,!1,52,8)};function w(t,e,r,n,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;w(this,e,r,n,i,0)}var a=1,u=0;for(this[r]=e&255;++u<n&&(a*=256);)this[r+u]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;w(this,e,r,n,i,0)}var a=n-1,u=1;for(this[r+a]=e&255;--a>=0&&(u*=256);)this[r+a]=e/u&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);w(this,e,r,n,i-1,-i)}var a=0,u=1,l=0;for(this[r]=e&255;++a<n&&(u*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/u>>0)-l&255;return r+n};s.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);w(this,e,r,n,i-1,-i)}var a=n-1,u=1,l=0;for(this[r+a]=e&255;--a>=0&&(u*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/u>>0)-l&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ke(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ye(t,e,r,n,o){return e=+e,r=r>>>0,o||Ke(t,e,r,4,34028234663852886e22,-34028234663852886e22),O.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ye(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ye(this,e,r,!1,n)};function Xe(t,e,r,n,o){return e=+e,r=r>>>0,o||Ke(t,e,r,8,17976931348623157e292,-17976931348623157e292),O.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Xe(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Xe(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,o){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};s.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!s.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var u=s.isBuffer(e)?e:s.from(e,o),l=u.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=u[a%l]}return this};var Tt=/[^+/0-9A-Za-z-_]/g;function xt(t){if(t=t.split("=")[0],t=t.trim().replace(Tt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ae(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function St(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function wt(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Je(t){return ne.toByteArray(xt(t))}function Y(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function k(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function le(t){return t!==t}var bt=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()});var tr=V((On,rr)=>{c();var h=rr.exports={},E,L;function ue(){throw new Error("setTimeout has not been defined")}function pe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=ue}catch(t){E=ue}try{typeof clearTimeout=="function"?L=clearTimeout:L=pe}catch(t){L=pe}})();function Ze(t){if(E===setTimeout)return setTimeout(t,0);if((E===ue||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function vt(t){if(L===clearTimeout)return clearTimeout(t);if((L===pe||!L)&&clearTimeout)return L=clearTimeout,clearTimeout(t);try{return L(t)}catch(e){try{return L.call(null,t)}catch(r){return L.call(this,t)}}}var N=[],z=!1,U,X=-1;function At(){!z||!U||(z=!1,U.length?N=U.concat(N):X=-1,N.length&&$e())}function $e(){if(!z){var t=Ze(At);z=!0;for(var e=N.length;e;){for(U=N,N=[];++X<e;)U&&U[X].run();X=-1,e=N.length}U=null,z=!1,vt(t)}}h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];N.push(new er(t,e)),N.length===1&&!z&&Ze($e)};function er(t,e){this.fun=t,this.array=e}er.prototype.run=function(){this.fun.apply(null,this.array)};h.title="browser";h.browser=!0;h.env={};h.argv=[];h.version="";h.versions={};function F(){}h.on=F;h.addListener=F;h.once=F;h.off=F;h.removeListener=F;h.removeAllListeners=F;h.emit=F;h.prependListener=F;h.prependOnceListener=F;h.listeners=function(t){return[]};h.binding=function(t){throw new Error("process.binding is not supported")};h.cwd=function(){return"/"};h.chdir=function(t){throw new Error("process.chdir is not supported")};h.umask=function(){return 0}});var p,d,Gn,c=Vr(()=>{p=ee(Qe()),d=ee(tr()),Gn=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Mn={};$(Mn,{accountInfoSlice:()=>Se,addCustomToast:()=>on,addFailTransactionToast:()=>ln,addTransactionToast:()=>sn,clearAllSignedTransactions:()=>Ln,clearAllTransactionsToSign:()=>En,clearNotificationModal:()=>Jt,clearSignedMessageInfo:()=>rn,clearSignedTransaction:()=>Rn,clearTransactionToSign:()=>_n,clearTransactionsInfo:()=>pn,clearTransactionsInfoForSessionId:()=>gn,clearTxSubmittedModal:()=>Xt,defaultNetwork:()=>Ar,defaultTransactionErrorMessage:()=>_r,defaultTransactionProcessingMessage:()=>Nr,defaultTransactionSubmittedMessage:()=>Fr,defaultTransactionSuccessMessage:()=>Cr,emptyAccount:()=>xe,initializeNetworkConfig:()=>Zt,invalidateLoginSession:()=>Vt,loginInfoSlice:()=>we,modalsSlice:()=>be,moveTransactionsToSignedState:()=>Fn,networkConfigSlice:()=>Ae,removeCustomToast:()=>an,removeFailTransactionToast:()=>un,removeTransactionToast:()=>cn,setAccount:()=>Rt,setAccountLoadingError:()=>Bt,setAccountNonce:()=>Ct,setAccountShard:()=>Nt,setAddress:()=>_t,setChainID:()=>$t,setIsAccountLoading:()=>Pt,setLedgerAccount:()=>Ft,setLedgerLogin:()=>zt,setLoginMethod:()=>Ot,setLogoutRoute:()=>jt,setNotificationModal:()=>Yt,setSignSession:()=>en,setSignSessionState:()=>tn,setSignTransactionsCancelMessage:()=>Nn,setSignTransactionsError:()=>Cn,setTokenLogin:()=>Ht,setTokenLoginSignature:()=>Wt,setTransactionsDisplayInfo:()=>dn,setTransactionsToSign:()=>kn,setTxSubmittedModal:()=>Kt,setWalletConnectAccount:()=>Dt,setWalletConnectLogin:()=>Gt,setWalletLogin:()=>qt,setWebsocketEvent:()=>Ut,signTransactionsSlice:()=>Re,signedMessageInfoReducer:()=>nn,signedMessageInfoSlice:()=>ke,toastsSlice:()=>Ee,transactionsSlice:()=>_e,updateLedgerAccount:()=>Mt,updateSignedTransactionStatus:()=>An,updateSignedTransactions:()=>In});module.exports=jr(Mn);c();c();var Te=require("@multiversx/sdk-core"),mr=require("@reduxjs/toolkit"),fr=require("redux-persist");c();c();c();c();c();c();c();c();c();c();c();c();c();var de={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:nr,egldLabel:io}=de["devnet"],{chainId:or,egldLabel:ao}=de["testnet"],{chainId:ir,egldLabel:so}=de["mainnet"];var co={["devnet"]:nr,["testnet"]:or,["mainnet"]:ir},lo={[nr]:"devnet",[or]:"testnet",[ir]:"mainnet"};c();c();c();var ar="transaction-status-toast-id";c();var R=require("@multiversx/sdk-web-wallet-provider");c();var sr="logout",cr="login";var lr="0";c();var me={};$(me,{getItem:()=>kt,localStorageKeys:()=>W,removeItem:()=>Et,setItem:()=>It});c();c();c();var J=()=>Date.now()/1e3;c();c();var W={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ge=typeof localStorage!="undefined",It=({key:t,data:e,expires:r})=>{!ge||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},kt=t=>{if(!ge)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:J()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},Et=t=>{!ge||localStorage.removeItem(String(t))};var fe={};$(fe,{clear:()=>gr,getItem:()=>pr,removeItem:()=>dr,setItem:()=>ur,storage:()=>Lt});c();var ur=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},pr=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},dr=t=>sessionStorage.removeItem(String(t)),gr=()=>sessionStorage.clear(),Lt={setItem:ur,getItem:pr,removeItem:dr,clear:gr};var Q={session:fe,local:me};c();var ye=require("@reduxjs/toolkit");var b=(0,ye.createAction)(sr),Z=(0,ye.createAction)(cr,t=>({payload:t}));var xe={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:lr},he={address:"",websocketEvent:null,accounts:{"":xe},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Se=(0,mr.createSlice)({name:"accountInfoSlice",initialState:he,reducers:{setAddress:(t,e)=>{let r=e.payload;t.address=r,t.publicKey=new Te.Address(r).hex()},setAccount:(t,e)=>{let r=t.address===e.payload.address;t.accounts={[t.address]:r?e.payload:xe},t.shard=e.payload.shard,t.isAccountLoading=!1,t.accountLoadingError=null},setAccountNonce:(t,e)=>{let{address:r}=t;t.accounts[r].nonce=e.payload},setAccountShard:(t,e)=>{t.shard=e.payload},setLedgerAccount:(t,e)=>{t.ledgerAccount=e.payload},updateLedgerAccount:(t,e)=>{t.ledgerAccount!=null&&(t.ledgerAccount.index=e.payload.index,t.ledgerAccount.address=e.payload.address)},setWalletConnectAccount:(t,e)=>{t.walletConnectAccount=e.payload},setIsAccountLoading:(t,e)=>{t.isAccountLoading=e.payload,t.accountLoadingError=null},setAccountLoadingError:(t,e)=>{t.accountLoadingError=e.payload,t.isAccountLoading=!1},setWebsocketEvent:(t,e)=>{t.websocketEvent={timestamp:Date.now(),message:e.payload}}},extraReducers:t=>{t.addCase(b,()=>(Q.local.removeItem(W.loginExpiresAt),he)),t.addCase(Z,(e,r)=>{let{address:n}=r.payload;e.address=n,e.publicKey=new Te.Address(n).hex()}),t.addCase(fr.REHYDRATE,(e,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:n}=r.payload,{address:o,shard:i,accounts:a,publicKey:u}=n;e.address=o,e.shard=i;let l=a&&o in a;e.accounts=l?a:he.accounts,e.publicKey=u})}}),{setAccount:Rt,setAddress:_t,setAccountNonce:Ct,setAccountShard:Nt,setLedgerAccount:Ft,updateLedgerAccount:Mt,setWalletConnectAccount:Dt,setIsAccountLoading:Pt,setAccountLoadingError:Bt,setWebsocketEvent:Ut}=Se.actions,Ho=Se.reducer;c();var xr=require("@reduxjs/toolkit");c();function yr(){return new Date().setHours(new Date().getHours()+24)}function hr(t){Q.local.setItem({key:W.loginExpiresAt,data:t,expires:t})}var Tr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},we=(0,xr.createSlice)({name:"loginInfoSlice",initialState:Tr,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(b,()=>Tr),t.addCase(Z,(e,r)=>{e.loginMethod=r.payload.loginMethod,hr(yr())})}}),{setLoginMethod:Ot,setWalletConnectLogin:Gt,setLedgerLogin:zt,setTokenLogin:Ht,setTokenLoginSignature:Wt,setWalletLogin:qt,invalidateLoginSession:Vt,setLogoutRoute:jt}=we.actions,$o=we.reducer;c();var wr=require("@reduxjs/toolkit");var Sr={},be=(0,wr.createSlice)({name:"modalsSlice",initialState:Sr,reducers:{setTxSubmittedModal:(t,e)=>{t.txSubmittedModal=e.payload},setNotificationModal:(t,e)=>{t.notificationModal=e.payload},clearTxSubmittedModal:t=>{t.txSubmittedModal=void 0},clearNotificationModal:t=>{t.notificationModal=void 0}},extraReducers:t=>{t.addCase(b,()=>Sr)}}),{setTxSubmittedModal:Kt,setNotificationModal:Yt,clearTxSubmittedModal:Xt,clearNotificationModal:Jt}=be.actions,ni=be.reducer;c();var br=require("@reduxjs/toolkit"),vr=ee(require("lodash.omit"));c();c();c();c();function ve(t){return t[Math.floor(Math.random()*t.length)]}c();var Ar={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Qt={network:Ar,chainID:"-1"},Ae=(0,br.createSlice)({name:"appConfig",initialState:Qt,reducers:{initializeNetworkConfig:(t,e)=>{let r=ve(e.payload.walletConnectBridgeAddresses),n=ve(e.payload.walletConnectV2RelayAddresses),o=(0,vr.default)(e.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");t.network=D(v(v({},t.network),o),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(t,e)=>{t.chainID=e.payload}}}),{initializeNetworkConfig:Zt,setChainID:$t}=Ae.actions,xi=Ae.reducer;c();var Ir=require("@reduxjs/toolkit");var Ie={isSigning:!1,signedSessions:{}},ke=(0,Ir.createSlice)({name:"signedMessageInfoSliceState",initialState:Ie,reducers:{setSignSession:(t,e)=>{let{sessionId:r,signedSession:n,errorMessage:o}=e.payload;o&&(t.errorMessage=o),t.isSigning=n.status==="pending",t.signedSessions[r]=n},setSignSessionState:(t,e)=>v(v({},t),e.payload),clearSignedMessageInfo:()=>Ie},extraReducers:t=>{t.addCase(b,()=>Ie)}}),{setSignSession:en,clearSignedMessageInfo:rn,setSignSessionState:tn}=ke.actions,nn=ke.reducer;c();var Er=require("@reduxjs/toolkit"),Lr=require("redux-persist");var kr={customToasts:[],transactionToasts:[],failTransactionToast:null},Ee=(0,Er.createSlice)({name:"toastsSlice",initialState:kr,reducers:{addCustomToast:(t,e)=>{t.customToasts.push(D(v({},e.payload),{type:"custom",toastId:e.payload.toastId||`custom-toast-${t.customToasts.length+1}`}))},removeCustomToast:(t,e)=>{t.customToasts=t.customToasts.filter(r=>r.toastId!==e.payload)},addTransactionToast:(t,e)=>{t.transactionToasts.push({type:"transaction",startTimestamp:J(),toastId:e.payload||`custom-toast-${t.transactionToasts.length+1}`})},removeTransactionToast:(t,e)=>{t.transactionToasts=t.transactionToasts.filter(r=>r.toastId!==e.payload)},addFailTransactionToast:(t,e)=>{t.failTransactionToast=D(v({},e.payload),{toastId:ar})},removeFailTransactionToast:t=>{t.failTransactionToast=null}},extraReducers:t=>{t.addCase(b,()=>kr),t.addCase(Lr.REHYDRATE,(e,r)=>{var o,i;let n=(i=(o=r.customToasts)==null?void 0:o.filter(a=>!("component"in a)))!=null?i:[];e.customToasts=n})}}),{addCustomToast:on,removeCustomToast:an,addTransactionToast:sn,removeTransactionToast:cn,addFailTransactionToast:ln,removeFailTransactionToast:un}=Ee.actions,Ni=Ee.reducer;c();var Rr=require("@reduxjs/toolkit");var _r="Transaction failed",Cr="Transaction successful",Nr="Processing transaction",Fr="Transaction submitted",Le={},Re=(0,Rr.createSlice)({name:"transactionsInfo",initialState:Le,reducers:{setTransactionsDisplayInfo(t,e){let{sessionId:r,transactionsDisplayInfo:n}=e.payload;r!=null&&(t[r]={errorMessage:(n==null?void 0:n.errorMessage)||_r,successMessage:(n==null?void 0:n.successMessage)||Cr,processingMessage:(n==null?void 0:n.processingMessage)||Nr,submittedMessage:(n==null?void 0:n.submittedMessage)||Fr,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(t,e){e.payload!=null&&delete t[e.payload]},clearTransactionsInfo:()=>Le},extraReducers:t=>{t.addCase(b,()=>Le)}}),{clearTransactionsInfo:pn,setTransactionsDisplayInfo:dn,clearTransactionsInfoForSessionId:gn}=Re.actions,Pi=Re.reducer;c();var Pr=require("@reduxjs/toolkit"),Br=require("redux-persist");c();var Gi=["sent"],fn=["success"],yn=["fail","cancelled","timedOut"],zi=["timedOut"],Hi=["pending"],hn=["success"],Tn=["fail","invalid"];function Mr(t){return t!=null&&(xn(t)||wn(t))}function Dr(t){return t!=null&&(Sn(t)||bn(t))}function xn(t){return t!=null&&fn.includes(t)}function Sn(t){return t!=null&&yn.includes(t)}function wn(t){return t!=null&&hn.includes(t)}function bn(t){return t!=null&&Tn.includes(t)}var q={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},vn={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},_e=(0,Pr.createSlice)({name:"transactionsSlice",initialState:q,reducers:{moveTransactionsToSignedState:(t,e)=>{var l,m;let{sessionId:r,transactions:n,errorMessage:o,status:i,redirectRoute:a}=e.payload,u=((l=t.customTransactionInformationForSessionId)==null?void 0:l[r])||vn;t.signedTransactions[r]={transactions:n,status:i,errorMessage:o,redirectRoute:a,customTransactionInformation:u},((m=t==null?void 0:t.transactionsToSign)==null?void 0:m.sessionId)===r&&(t.transactionsToSign=q.transactionsToSign)},clearSignedTransaction:(t,e)=>{t.signedTransactions[e.payload]&&delete t.signedTransactions[e.payload]},clearTransactionToSign:t=>{t!=null&&t.transactionsToSign&&(t.transactionsToSign=null)},updateSignedTransaction:(t,e)=>{t.signedTransactions=v(v({},t.signedTransactions),e.payload)},updateSignedTransactions:(t,e)=>{let{sessionId:r,status:n,errorMessage:o,transactions:i}=e.payload;t.signedTransactions[r]!=null&&(t.signedTransactions[r].status=n,o!=null&&(t.signedTransactions[r].errorMessage=o),i!=null&&(t.signedTransactions[r].transactions=i))},updateSignedTransactionStatus:(t,e)=>{var u,l,m,y,f,x;let{sessionId:r,status:n,errorMessage:o,transactionHash:i}=e.payload,a=(l=(u=t.signedTransactions)==null?void 0:u[r])==null?void 0:l.transactions;if(a!=null){t.signedTransactions[r].transactions=a.map(_=>_.hash===i?D(v({},_),{status:n,errorMessage:o}):_);let S=(y=(m=t.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:y.every(_=>Mr(_.status)),M=(x=(f=t.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:x.every(_=>Dr(_.status));S&&(t.signedTransactions[r].status="success"),M&&(t.signedTransactions[r].status="fail")}},setTransactionsToSign:(t,e)=>{t.transactionsToSign=e.payload;let{sessionId:r,customTransactionInformation:n}=e.payload;t.customTransactionInformationForSessionId[r]=n,t.signTransactionsError=null},clearAllTransactionsToSign:t=>{t.transactionsToSign=q.transactionsToSign,t.signTransactionsError=null},clearAllSignedTransactions:t=>{t.signedTransactions=q.signedTransactions},setSignTransactionsError:(t,e)=>{t.signTransactionsError=e.payload},setSignTransactionsCancelMessage:(t,e)=>{t.signTransactionsCancelMessage=e.payload}},extraReducers:t=>{t.addCase(b,()=>q),t.addCase(Br.REHYDRATE,(e,r)=>{var a;if(e.signTransactionsCancelMessage=null,!((a=r.payload)!=null&&a.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:o}=r.payload.transactions,i=Object.entries(n).reduce((u,[l,m])=>{let y=new Date(l),f=new Date;return f.setHours(f.getHours()+5),f-y>0||(u[l]=m),u},{});o!=null&&(e.customTransactionInformationForSessionId=o),n!=null&&(e.signedTransactions=i)})}}),{updateSignedTransactionStatus:An,updateSignedTransactions:In,setTransactionsToSign:kn,clearAllTransactionsToSign:En,clearAllSignedTransactions:Ln,clearSignedTransaction:Rn,clearTransactionToSign:_n,setSignTransactionsError:Cn,setSignTransactionsCancelMessage:Nn,moveTransactionsToSignedState:Fn}=_e.actions,Xi=_e.reducer;0&&(module.exports={accountInfoSlice,addCustomToast,addFailTransactionToast,addTransactionToast,clearAllSignedTransactions,clearAllTransactionsToSign,clearNotificationModal,clearSignedMessageInfo,clearSignedTransaction,clearTransactionToSign,clearTransactionsInfo,clearTransactionsInfoForSessionId,clearTxSubmittedModal,defaultNetwork,defaultTransactionErrorMessage,defaultTransactionProcessingMessage,defaultTransactionSubmittedMessage,defaultTransactionSuccessMessage,emptyAccount,initializeNetworkConfig,invalidateLoginSession,loginInfoSlice,modalsSlice,moveTransactionsToSignedState,networkConfigSlice,removeCustomToast,removeFailTransactionToast,removeTransactionToast,setAccount,setAccountLoadingError,setAccountNonce,setAccountShard,setAddress,setChainID,setIsAccountLoading,setLedgerAccount,setLedgerLogin,setLoginMethod,setLogoutRoute,setNotificationModal,setSignSession,setSignSessionState,setSignTransactionsCancelMessage,setSignTransactionsError,setTokenLogin,setTokenLoginSignature,setTransactionsDisplayInfo,setTransactionsToSign,setTxSubmittedModal,setWalletConnectAccount,setWalletConnectLogin,setWalletLogin,setWebsocketEvent,signTransactionsSlice,signedMessageInfoReducer,signedMessageInfoSlice,toastsSlice,transactionsSlice,updateLedgerAccount,updateSignedTransactionStatus,updateSignedTransactions});
1
+ "use strict";var Ur=Object.create;var W=Object.defineProperty,Or=Object.defineProperties,Gr=Object.getOwnPropertyDescriptor,zr=Object.getOwnPropertyDescriptors,Wr=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Hr=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable;var Ne=(t,e,r)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,v=(t,e)=>{for(var r in e||(e={}))Fe.call(e,r)&&Ne(t,r,e[r]);if(Ce)for(var r of Ce(e))qr.call(e,r)&&Ne(t,r,e[r]);return t},D=(t,e)=>Or(t,zr(e));var Vr=(t,e)=>()=>(t&&(e=t(t=0)),e);var V=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$=(t,e)=>{for(var r in e)W(t,r,{get:e[r],enumerable:!0})},Me=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Wr(e))!Fe.call(t,o)&&o!==r&&W(t,o,{get:()=>e[o],enumerable:!(n=Gr(e,o))||n.enumerable});return t};var ee=(t,e,r)=>(r=t!=null?Ur(Hr(t)):{},Me(e||!t||!t.__esModule?W(r,"default",{value:t,enumerable:!0}):r,t)),jr=t=>Me(W({},"__esModule",{value:!0}),t);var Be=V(j=>{"use strict";c();j.byteLength=Yr;j.toByteArray=Jr;j.fromByteArray=$r;var A=[],I=[],Kr=typeof Uint8Array!="undefined"?Uint8Array:Array,re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(P=0,De=re.length;P<De;++P)A[P]=re[P],I[re.charCodeAt(P)]=P;var P,De;I["-".charCodeAt(0)]=62;I["_".charCodeAt(0)]=63;function Pe(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Yr(t){var e=Pe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Xr(t,e,r){return(e+r)*3/4-r}function Jr(t){var e,r=Pe(t),n=r[0],o=r[1],i=new Kr(Xr(t,n,o)),a=0,u=o>0?n-4:n,l;for(l=0;l<u;l+=4)e=I[t.charCodeAt(l)]<<18|I[t.charCodeAt(l+1)]<<12|I[t.charCodeAt(l+2)]<<6|I[t.charCodeAt(l+3)],i[a++]=e>>16&255,i[a++]=e>>8&255,i[a++]=e&255;return o===2&&(e=I[t.charCodeAt(l)]<<2|I[t.charCodeAt(l+1)]>>4,i[a++]=e&255),o===1&&(e=I[t.charCodeAt(l)]<<10|I[t.charCodeAt(l+1)]<<4|I[t.charCodeAt(l+2)]>>2,i[a++]=e>>8&255,i[a++]=e&255),i}function Qr(t){return A[t>>18&63]+A[t>>12&63]+A[t>>6&63]+A[t&63]}function Zr(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(Qr(n));return o.join("")}function $r(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Zr(t,a,a+i>u?u:a+i));return n===1?(e=t[r-1],o.push(A[e>>2]+A[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(A[e>>10]+A[e>>4&63]+A[e<<2&63]+"=")),o.join("")}});var Ue=V(te=>{c();te.read=function(t,e,r,n,o){var i,a,u=o*8-n-1,l=(1<<u)-1,m=l>>1,y=-7,f=r?o-1:0,x=r?-1:1,S=t[e+f];for(f+=x,i=S&(1<<-y)-1,S>>=-y,y+=u;y>0;i=i*256+t[e+f],f+=x,y-=8);for(a=i&(1<<-y)-1,i>>=-y,y+=n;y>0;a=a*256+t[e+f],f+=x,y-=8);if(i===0)i=1-m;else{if(i===l)return a?NaN:(S?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-m}return(S?-1:1)*a*Math.pow(2,i-n)};te.write=function(t,e,r,n,o,i){var a,u,l,m=i*8-o-1,y=(1<<m)-1,f=y>>1,x=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=n?0:i-1,M=n?1:-1,_=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=y):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?e+=x/l:e+=x*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=y?(u=0,a=y):a+f>=1?(u=(e*l-1)*Math.pow(2,o),a=a+f):(u=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+S]=u&255,S+=M,u/=256,o-=8);for(a=a<<o|u,m+=o;m>0;t[r+S]=a&255,S+=M,a/=256,m-=8);t[r+S-M]|=_*128}});var Qe=V(G=>{"use strict";c();var ne=Be(),O=Ue(),Oe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;G.Buffer=s;G.SlowBuffer=it;G.INSPECT_MAX_BYTES=50;var K=2147483647;G.kMaxLength=K;s.TYPED_ARRAY_SUPPORT=et();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function et(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function C(t){if(t>K)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return se(t)}return We(t,e,r)}s.poolSize=8192;function We(t,e,r){if(typeof t=="string")return tt(t,e);if(ArrayBuffer.isView(t))return nt(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(k(t,ArrayBuffer)||t&&k(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(k(t,SharedArrayBuffer)||t&&k(t.buffer,SharedArrayBuffer)))return ie(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var o=ot(t);if(o)return o;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return We(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function He(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function rt(t,e,r){return He(t),t<=0?C(t):e!==void 0?typeof r=="string"?C(t).fill(e,r):C(t).fill(e):C(t)}s.alloc=function(t,e,r){return rt(t,e,r)};function se(t){return He(t),C(t<0?0:ce(t)|0)}s.allocUnsafe=function(t){return se(t)};s.allocUnsafeSlow=function(t){return se(t)};function tt(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=qe(t,e)|0,n=C(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function oe(t){for(var e=t.length<0?0:ce(t.length)|0,r=C(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function nt(t){if(k(t,Uint8Array)){var e=new Uint8Array(t);return ie(e.buffer,e.byteOffset,e.byteLength)}return oe(t)}function ie(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function ot(t){if(s.isBuffer(t)){var e=ce(t.length)|0,r=C(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||le(t.length)?C(0):oe(t);if(t.type==="Buffer"&&Array.isArray(t.data))return oe(t.data)}function ce(t){if(t>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return t|0}function it(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),k(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=s.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(k(a,Uint8Array))i+a.length>o.length?s.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(s.isBuffer(a))a.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o};function qe(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||k(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ae(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Je(t).length;default:if(o)return n?-1:ae(t).length;e=(""+e).toLowerCase(),o=!0}}s.byteLength=qe;function at(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return yt(this,e,r);case"utf8":case"utf-8":return je(this,e,r);case"ascii":return mt(this,e,r);case"latin1":case"binary":return ft(this,e,r);case"base64":return dt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ht(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function B(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)B(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)B(this,r,r+3),B(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)B(this,r,r+7),B(this,r+1,r+6),B(this,r+2,r+5),B(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?je(this,0,e):at.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=G.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Oe&&(s.prototype[Oe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,o,i){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,u=n-r,l=Math.min(a,u),m=this.slice(o,i),y=e.slice(r,n),f=0;f<l;++f)if(m[f]!==y[f]){a=m[f],u=y[f];break}return a<u?-1:u<a?1:0};function Ve(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,le(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:Ge(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ge(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Ge(t,e,r,n,o){var i=1,a=t.length,u=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,u/=2,r/=2}function l(S,M){return i===1?S[M]:S.readUInt16BE(M*i)}var m;if(o){var y=-1;for(m=r;m<a;m++)if(l(t,m)===l(e,y===-1?0:m-y)){if(y===-1&&(y=m),m-y+1===u)return y*i}else y!==-1&&(m-=m-y),y=-1}else for(r+u>a&&(r=a-u),m=r;m>=0;m--){for(var f=!0,x=0;x<u;x++)if(l(t,m+x)!==l(e,x)){f=!1;break}if(f)return m}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Ve(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Ve(this,e,r,n,!1)};function st(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u=parseInt(e.substr(a*2,2),16);if(le(u))return a;t[r+a]=u}return a}function ct(t,e,r,n){return Y(ae(e,t.length-r),t,r,n)}function lt(t,e,r,n){return Y(St(e),t,r,n)}function ut(t,e,r,n){return Y(Je(e),t,r,n)}function pt(t,e,r,n){return Y(wt(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return st(this,e,r,n);case"utf8":case"utf-8":return ct(this,e,r,n);case"ascii":case"latin1":case"binary":return lt(this,e,r,n);case"base64":return ut(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pt(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function dt(t,e,r){return e===0&&r===t.length?ne.fromByteArray(t):ne.fromByteArray(t.slice(e,r))}function je(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,u=i>239?4:i>223?3:i>191?2:1;if(o+u<=r){var l,m,y,f;switch(u){case 1:i<128&&(a=i);break;case 2:l=t[o+1],(l&192)===128&&(f=(i&31)<<6|l&63,f>127&&(a=f));break;case 3:l=t[o+1],m=t[o+2],(l&192)===128&&(m&192)===128&&(f=(i&15)<<12|(l&63)<<6|m&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:l=t[o+1],m=t[o+2],y=t[o+3],(l&192)===128&&(m&192)===128&&(y&192)===128&&(f=(i&15)<<18|(l&63)<<12|(m&63)<<6|y&63,f>65535&&f<1114112&&(a=f))}}a===null?(a=65533,u=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=u}return gt(n)}var ze=4096;function gt(t){var e=t.length;if(e<=ze)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ze));return r}function mt(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function ft(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function yt(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=bt[t[i]];return o}function ht(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o=this.subarray(e,r);return Object.setPrototypeOf(o,s.prototype),o};function T(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||T(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return o};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||T(e,r,this.length);for(var o=this[e+--r],i=1;r>0&&(i*=256);)o+=this[e+--r]*i;return o};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||T(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||T(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||T(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||T(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||T(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||T(e,r,this.length);for(var o=r,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||T(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||T(e,4,this.length),O.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||T(e,4,this.length),O.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||T(e,8,this.length),O.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||T(e,8,this.length),O.read(this,e,!1,52,8)};function w(t,e,r,n,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;w(this,e,r,n,i,0)}var a=1,u=0;for(this[r]=e&255;++u<n&&(a*=256);)this[r+u]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;w(this,e,r,n,i,0)}var a=n-1,u=1;for(this[r+a]=e&255;--a>=0&&(u*=256);)this[r+a]=e/u&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);w(this,e,r,n,i-1,-i)}var a=0,u=1,l=0;for(this[r]=e&255;++a<n&&(u*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/u>>0)-l&255;return r+n};s.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);w(this,e,r,n,i-1,-i)}var a=n-1,u=1,l=0;for(this[r+a]=e&255;--a>=0&&(u*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/u>>0)-l&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ke(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ye(t,e,r,n,o){return e=+e,r=r>>>0,o||Ke(t,e,r,4,34028234663852886e22,-34028234663852886e22),O.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ye(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ye(this,e,r,!1,n)};function Xe(t,e,r,n,o){return e=+e,r=r>>>0,o||Ke(t,e,r,8,17976931348623157e292,-17976931348623157e292),O.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Xe(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Xe(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,o){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};s.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!s.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var u=s.isBuffer(e)?e:s.from(e,o),l=u.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=u[a%l]}return this};var Tt=/[^+/0-9A-Za-z-_]/g;function xt(t){if(t=t.split("=")[0],t=t.trim().replace(Tt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ae(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function St(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function wt(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Je(t){return ne.toByteArray(xt(t))}function Y(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function k(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function le(t){return t!==t}var bt=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()});var tr=V((On,rr)=>{c();var h=rr.exports={},E,L;function ue(){throw new Error("setTimeout has not been defined")}function pe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=ue}catch(t){E=ue}try{typeof clearTimeout=="function"?L=clearTimeout:L=pe}catch(t){L=pe}})();function Ze(t){if(E===setTimeout)return setTimeout(t,0);if((E===ue||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function vt(t){if(L===clearTimeout)return clearTimeout(t);if((L===pe||!L)&&clearTimeout)return L=clearTimeout,clearTimeout(t);try{return L(t)}catch(e){try{return L.call(null,t)}catch(r){return L.call(this,t)}}}var N=[],z=!1,U,X=-1;function It(){!z||!U||(z=!1,U.length?N=U.concat(N):X=-1,N.length&&$e())}function $e(){if(!z){var t=Ze(It);z=!0;for(var e=N.length;e;){for(U=N,N=[];++X<e;)U&&U[X].run();X=-1,e=N.length}U=null,z=!1,vt(t)}}h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];N.push(new er(t,e)),N.length===1&&!z&&Ze($e)};function er(t,e){this.fun=t,this.array=e}er.prototype.run=function(){this.fun.apply(null,this.array)};h.title="browser";h.browser=!0;h.env={};h.argv=[];h.version="";h.versions={};function F(){}h.on=F;h.addListener=F;h.once=F;h.off=F;h.removeListener=F;h.removeAllListeners=F;h.emit=F;h.prependListener=F;h.prependOnceListener=F;h.listeners=function(t){return[]};h.binding=function(t){throw new Error("process.binding is not supported")};h.cwd=function(){return"/"};h.chdir=function(t){throw new Error("process.chdir is not supported")};h.umask=function(){return 0}});var p,d,Gn,c=Vr(()=>{p=ee(Qe()),d=ee(tr()),Gn=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Mn={};$(Mn,{accountInfoSlice:()=>Se,addCustomToast:()=>on,addFailTransactionToast:()=>ln,addTransactionToast:()=>sn,clearAllSignedTransactions:()=>Ln,clearAllTransactionsToSign:()=>En,clearNotificationModal:()=>Jt,clearSignedMessageInfo:()=>rn,clearSignedTransaction:()=>Rn,clearTransactionToSign:()=>_n,clearTransactionsInfo:()=>pn,clearTransactionsInfoForSessionId:()=>gn,clearTxSubmittedModal:()=>Xt,defaultNetwork:()=>Ir,defaultTransactionErrorMessage:()=>_r,defaultTransactionProcessingMessage:()=>Nr,defaultTransactionSubmittedMessage:()=>Fr,defaultTransactionSuccessMessage:()=>Cr,emptyAccount:()=>xe,initializeNetworkConfig:()=>Zt,invalidateLoginSession:()=>Vt,loginInfoSlice:()=>we,modalsSlice:()=>be,moveTransactionsToSignedState:()=>Fn,networkConfigSlice:()=>Ie,removeCustomToast:()=>an,removeFailTransactionToast:()=>un,removeTransactionToast:()=>cn,setAccount:()=>Rt,setAccountLoadingError:()=>Bt,setAccountNonce:()=>Ct,setAccountShard:()=>Nt,setAddress:()=>_t,setChainID:()=>$t,setIsAccountLoading:()=>Pt,setLedgerAccount:()=>Ft,setLedgerLogin:()=>zt,setLoginMethod:()=>Ot,setLogoutRoute:()=>jt,setNotificationModal:()=>Yt,setSignSession:()=>en,setSignSessionState:()=>tn,setSignTransactionsCancelMessage:()=>Nn,setSignTransactionsError:()=>Cn,setTokenLogin:()=>Wt,setTokenLoginSignature:()=>Ht,setTransactionsDisplayInfo:()=>dn,setTransactionsToSign:()=>kn,setTxSubmittedModal:()=>Kt,setWalletConnectAccount:()=>Dt,setWalletConnectLogin:()=>Gt,setWalletLogin:()=>qt,setWebsocketEvent:()=>Ut,signTransactionsSlice:()=>Re,signedMessageInfoReducer:()=>nn,signedMessageInfoSlice:()=>ke,toastsSlice:()=>Ee,transactionsSlice:()=>_e,updateLedgerAccount:()=>Mt,updateSignedTransactionStatus:()=>In,updateSignedTransactions:()=>An});module.exports=jr(Mn);c();c();var Te=require("@multiversx/sdk-core"),mr=require("@reduxjs/toolkit"),fr=require("redux-persist");c();c();c();c();c();c();c();c();c();c();c();c();c();var de={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:nr,egldLabel:io}=de["devnet"],{chainId:or,egldLabel:ao}=de["testnet"],{chainId:ir,egldLabel:so}=de["mainnet"];var co={["devnet"]:nr,["testnet"]:or,["mainnet"]:ir},lo={[nr]:"devnet",[or]:"testnet",[ir]:"mainnet"};c();c();c();var ar="transaction-status-toast-id";c();var R=require("@multiversx/sdk-web-wallet-provider");c();var sr="logout",cr="login";var lr="0";c();var me={};$(me,{getItem:()=>kt,localStorageKeys:()=>H,removeItem:()=>Et,setItem:()=>At});c();c();c();var J=()=>Date.now()/1e3;c();c();var H={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ge=typeof localStorage!="undefined",At=({key:t,data:e,expires:r})=>{!ge||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},kt=t=>{if(!ge)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:J()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},Et=t=>{!ge||localStorage.removeItem(String(t))};var fe={};$(fe,{clear:()=>gr,getItem:()=>pr,removeItem:()=>dr,setItem:()=>ur,storage:()=>Lt});c();var ur=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},pr=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},dr=t=>sessionStorage.removeItem(String(t)),gr=()=>sessionStorage.clear(),Lt={setItem:ur,getItem:pr,removeItem:dr,clear:gr};var Q={session:fe,local:me};c();var ye=require("@reduxjs/toolkit");var b=(0,ye.createAction)(sr),Z=(0,ye.createAction)(cr,t=>({payload:t}));var xe={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:lr},he={address:"",websocketEvent:null,accounts:{"":xe},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Se=(0,mr.createSlice)({name:"accountInfoSlice",initialState:he,reducers:{setAddress:(t,e)=>{let r=e.payload;t.address=r,t.publicKey=new Te.Address(r).hex()},setAccount:(t,e)=>{let r=t.address===e.payload.address;t.accounts={[t.address]:r?e.payload:xe},t.shard=e.payload.shard,t.isAccountLoading=!1,t.accountLoadingError=null},setAccountNonce:(t,e)=>{let{address:r}=t;t.accounts[r].nonce=e.payload},setAccountShard:(t,e)=>{t.shard=e.payload},setLedgerAccount:(t,e)=>{t.ledgerAccount=e.payload},updateLedgerAccount:(t,e)=>{t.ledgerAccount!=null&&(t.ledgerAccount.index=e.payload.index,t.ledgerAccount.address=e.payload.address)},setWalletConnectAccount:(t,e)=>{t.walletConnectAccount=e.payload},setIsAccountLoading:(t,e)=>{t.isAccountLoading=e.payload,t.accountLoadingError=null},setAccountLoadingError:(t,e)=>{t.accountLoadingError=e.payload,t.isAccountLoading=!1},setWebsocketEvent:(t,e)=>{t.websocketEvent={timestamp:Date.now(),message:e.payload}}},extraReducers:t=>{t.addCase(b,()=>(Q.local.removeItem(H.loginExpiresAt),he)),t.addCase(Z,(e,r)=>{let{address:n}=r.payload;e.address=n,e.publicKey=new Te.Address(n).hex()}),t.addCase(fr.REHYDRATE,(e,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:n}=r.payload,{address:o,shard:i,accounts:a,publicKey:u}=n;e.address=o,e.shard=i;let l=a&&o in a;e.accounts=l?a:he.accounts,e.publicKey=u})}}),{setAccount:Rt,setAddress:_t,setAccountNonce:Ct,setAccountShard:Nt,setLedgerAccount:Ft,updateLedgerAccount:Mt,setWalletConnectAccount:Dt,setIsAccountLoading:Pt,setAccountLoadingError:Bt,setWebsocketEvent:Ut}=Se.actions,Wo=Se.reducer;c();var xr=require("@reduxjs/toolkit");c();function yr(){return new Date().setHours(new Date().getHours()+24)}function hr(t){Q.local.setItem({key:H.loginExpiresAt,data:t,expires:t})}var Tr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},we=(0,xr.createSlice)({name:"loginInfoSlice",initialState:Tr,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(b,()=>Tr),t.addCase(Z,(e,r)=>{e.loginMethod=r.payload.loginMethod,hr(yr())})}}),{setLoginMethod:Ot,setWalletConnectLogin:Gt,setLedgerLogin:zt,setTokenLogin:Wt,setTokenLoginSignature:Ht,setWalletLogin:qt,invalidateLoginSession:Vt,setLogoutRoute:jt}=we.actions,$o=we.reducer;c();var wr=require("@reduxjs/toolkit");var Sr={},be=(0,wr.createSlice)({name:"modalsSlice",initialState:Sr,reducers:{setTxSubmittedModal:(t,e)=>{t.txSubmittedModal=e.payload},setNotificationModal:(t,e)=>{t.notificationModal=e.payload},clearTxSubmittedModal:t=>{t.txSubmittedModal=void 0},clearNotificationModal:t=>{t.notificationModal=void 0}},extraReducers:t=>{t.addCase(b,()=>Sr)}}),{setTxSubmittedModal:Kt,setNotificationModal:Yt,clearTxSubmittedModal:Xt,clearNotificationModal:Jt}=be.actions,ni=be.reducer;c();var br=require("@reduxjs/toolkit"),vr=ee(require("lodash.omit"));c();c();c();c();function ve(t){return t[Math.floor(Math.random()*t.length)]}c();var Ir={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Qt={network:Ir,chainID:"-1"},Ie=(0,br.createSlice)({name:"appConfig",initialState:Qt,reducers:{initializeNetworkConfig:(t,e)=>{let r=ve(e.payload.walletConnectBridgeAddresses),n=ve(e.payload.walletConnectV2RelayAddresses),o=(0,vr.default)(e.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");t.network=D(v(v({},t.network),o),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(t,e)=>{t.chainID=e.payload}}}),{initializeNetworkConfig:Zt,setChainID:$t}=Ie.actions,xi=Ie.reducer;c();var Ar=require("@reduxjs/toolkit");var Ae={isSigning:!1,signedSessions:{}},ke=(0,Ar.createSlice)({name:"signedMessageInfoSliceState",initialState:Ae,reducers:{setSignSession:(t,e)=>{let{sessionId:r,signedSession:n,errorMessage:o}=e.payload;o&&(t.errorMessage=o),t.isSigning=n.status==="pending",t.signedSessions[r]=n},setSignSessionState:(t,e)=>v(v({},t),e.payload),clearSignedMessageInfo:()=>Ae},extraReducers:t=>{t.addCase(b,()=>Ae)}}),{setSignSession:en,clearSignedMessageInfo:rn,setSignSessionState:tn}=ke.actions,nn=ke.reducer;c();var Er=require("@reduxjs/toolkit"),Lr=require("redux-persist");var kr={customToasts:[],transactionToasts:[],failTransactionToast:null},Ee=(0,Er.createSlice)({name:"toastsSlice",initialState:kr,reducers:{addCustomToast:(t,e)=>{t.customToasts.push(D(v({},e.payload),{type:"custom",toastId:e.payload.toastId||`custom-toast-${t.customToasts.length+1}`}))},removeCustomToast:(t,e)=>{t.customToasts=t.customToasts.filter(r=>r.toastId!==e.payload)},addTransactionToast:(t,e)=>{t.transactionToasts.push({type:"transaction",startTimestamp:J(),toastId:e.payload||`custom-toast-${t.transactionToasts.length+1}`})},removeTransactionToast:(t,e)=>{t.transactionToasts=t.transactionToasts.filter(r=>r.toastId!==e.payload)},addFailTransactionToast:(t,e)=>{t.failTransactionToast=D(v({},e.payload),{toastId:ar})},removeFailTransactionToast:t=>{t.failTransactionToast=null}},extraReducers:t=>{t.addCase(b,()=>kr),t.addCase(Lr.REHYDRATE,(e,r)=>{var o,i;let n=(i=(o=r.customToasts)==null?void 0:o.filter(a=>!("component"in a)))!=null?i:[];e.customToasts=n})}}),{addCustomToast:on,removeCustomToast:an,addTransactionToast:sn,removeTransactionToast:cn,addFailTransactionToast:ln,removeFailTransactionToast:un}=Ee.actions,Ni=Ee.reducer;c();var Rr=require("@reduxjs/toolkit");var _r="Transaction failed",Cr="Transaction successful",Nr="Processing transaction",Fr="Transaction submitted",Le={},Re=(0,Rr.createSlice)({name:"transactionsInfo",initialState:Le,reducers:{setTransactionsDisplayInfo(t,e){let{sessionId:r,transactionsDisplayInfo:n}=e.payload;r!=null&&(t[r]={errorMessage:(n==null?void 0:n.errorMessage)||_r,successMessage:(n==null?void 0:n.successMessage)||Cr,processingMessage:(n==null?void 0:n.processingMessage)||Nr,submittedMessage:(n==null?void 0:n.submittedMessage)||Fr,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(t,e){e.payload!=null&&delete t[e.payload]},clearTransactionsInfo:()=>Le},extraReducers:t=>{t.addCase(b,()=>Le)}}),{clearTransactionsInfo:pn,setTransactionsDisplayInfo:dn,clearTransactionsInfoForSessionId:gn}=Re.actions,Pi=Re.reducer;c();var Pr=require("@reduxjs/toolkit"),Br=require("redux-persist");c();var Gi=["sent"],fn=["success"],yn=["fail","cancelled","timedOut"],zi=["timedOut"],Wi=["pending"],hn=["success"],Tn=["fail","invalid"];function Mr(t){return t!=null&&(xn(t)||wn(t))}function Dr(t){return t!=null&&(Sn(t)||bn(t))}function xn(t){return t!=null&&fn.includes(t)}function Sn(t){return t!=null&&yn.includes(t)}function wn(t){return t!=null&&hn.includes(t)}function bn(t){return t!=null&&Tn.includes(t)}var q={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},vn={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},_e=(0,Pr.createSlice)({name:"transactionsSlice",initialState:q,reducers:{moveTransactionsToSignedState:(t,e)=>{var l,m;let{sessionId:r,transactions:n,errorMessage:o,status:i,redirectRoute:a}=e.payload,u=((l=t.customTransactionInformationForSessionId)==null?void 0:l[r])||vn;t.signedTransactions[r]={transactions:n,status:i,errorMessage:o,redirectRoute:a,customTransactionInformation:u},((m=t==null?void 0:t.transactionsToSign)==null?void 0:m.sessionId)===r&&(t.transactionsToSign=q.transactionsToSign)},clearSignedTransaction:(t,e)=>{t.signedTransactions[e.payload]&&delete t.signedTransactions[e.payload]},clearTransactionToSign:t=>{t!=null&&t.transactionsToSign&&(t.transactionsToSign=null)},updateSignedTransaction:(t,e)=>{t.signedTransactions=v(v({},t.signedTransactions),e.payload)},updateSignedTransactions:(t,e)=>{let{sessionId:r,status:n,errorMessage:o,transactions:i}=e.payload;t.signedTransactions[r]!=null&&(t.signedTransactions[r].status=n,o!=null&&(t.signedTransactions[r].errorMessage=o),i!=null&&(t.signedTransactions[r].transactions=i))},updateSignedTransactionStatus:(t,e)=>{var u,l,m,y,f,x;let{sessionId:r,status:n,errorMessage:o,transactionHash:i}=e.payload,a=(l=(u=t.signedTransactions)==null?void 0:u[r])==null?void 0:l.transactions;if(a!=null){t.signedTransactions[r].transactions=a.map(_=>_.hash===i?D(v({},_),{status:n,errorMessage:o}):_);let S=(y=(m=t.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:y.every(_=>Mr(_.status)),M=(x=(f=t.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:x.every(_=>Dr(_.status));S&&(t.signedTransactions[r].status="success"),M&&(t.signedTransactions[r].status="fail")}},setTransactionsToSign:(t,e)=>{t.transactionsToSign=e.payload;let{sessionId:r,customTransactionInformation:n}=e.payload;t.customTransactionInformationForSessionId[r]=n,t.signTransactionsError=null},clearAllTransactionsToSign:t=>{t.transactionsToSign=q.transactionsToSign,t.signTransactionsError=null},clearAllSignedTransactions:t=>{t.signedTransactions=q.signedTransactions},setSignTransactionsError:(t,e)=>{t.signTransactionsError=e.payload},setSignTransactionsCancelMessage:(t,e)=>{t.signTransactionsCancelMessage=e.payload}},extraReducers:t=>{t.addCase(b,()=>q),t.addCase(Br.REHYDRATE,(e,r)=>{var a;if(e.signTransactionsCancelMessage=null,!((a=r.payload)!=null&&a.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:o}=r.payload.transactions,i=Object.entries(n).reduce((u,[l,m])=>{let y=new Date(l),f=new Date;return f.setHours(f.getHours()+5),f-y>0||(u[l]=m),u},{});o!=null&&(e.customTransactionInformationForSessionId=o),n!=null&&(e.signedTransactions=i)})}}),{updateSignedTransactionStatus:In,updateSignedTransactions:An,setTransactionsToSign:kn,clearAllTransactionsToSign:En,clearAllSignedTransactions:Ln,clearSignedTransaction:Rn,clearTransactionToSign:_n,setSignTransactionsError:Cn,setSignTransactionsCancelMessage:Nn,moveTransactionsToSignedState:Fn}=_e.actions,Xi=_e.reducer;0&&(module.exports={accountInfoSlice,addCustomToast,addFailTransactionToast,addTransactionToast,clearAllSignedTransactions,clearAllTransactionsToSign,clearNotificationModal,clearSignedMessageInfo,clearSignedTransaction,clearTransactionToSign,clearTransactionsInfo,clearTransactionsInfoForSessionId,clearTxSubmittedModal,defaultNetwork,defaultTransactionErrorMessage,defaultTransactionProcessingMessage,defaultTransactionSubmittedMessage,defaultTransactionSuccessMessage,emptyAccount,initializeNetworkConfig,invalidateLoginSession,loginInfoSlice,modalsSlice,moveTransactionsToSignedState,networkConfigSlice,removeCustomToast,removeFailTransactionToast,removeTransactionToast,setAccount,setAccountLoadingError,setAccountNonce,setAccountShard,setAddress,setChainID,setIsAccountLoading,setLedgerAccount,setLedgerLogin,setLoginMethod,setLogoutRoute,setNotificationModal,setSignSession,setSignSessionState,setSignTransactionsCancelMessage,setSignTransactionsError,setTokenLogin,setTokenLoginSignature,setTransactionsDisplayInfo,setTransactionsToSign,setTxSubmittedModal,setWalletConnectAccount,setWalletConnectLogin,setWalletLogin,setWebsocketEvent,signTransactionsSlice,signedMessageInfoReducer,signedMessageInfoSlice,toastsSlice,transactionsSlice,updateLedgerAccount,updateSignedTransactionStatus,updateSignedTransactions});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Qe=Object.create;var P=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var er=Object.getPrototypeOf,rr=Object.prototype.hasOwnProperty;var tr=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),H=(t,e)=>{for(var r in e)P(t,r,{get:e[r],enumerable:!0})},ce=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of $e(e))!rr.call(t,i)&&i!==r&&P(t,i,{get:()=>e[i],enumerable:!(n=Ze(e,i))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?Qe(er(t)):{},ce(e||!t||!t.__esModule?P(r,"default",{value:t,enumerable:!0}):r,t)),nr=t=>ce(P({},"__esModule",{value:!0}),t);var de=M(G=>{"use strict";l();G.byteLength=or;G.toByteArray=sr;G.fromByteArray=pr;var k=[],b=[],ir=typeof Uint8Array!="undefined"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,ue=j.length;N<ue;++N)k[N]=j[N],b[j.charCodeAt(N)]=N;var N,ue;b["-".charCodeAt(0)]=62;b["_".charCodeAt(0)]=63;function ge(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function or(t){var e=ge(t),r=e[0],n=e[1];return(r+n)*3/4-n}function ar(t,e,r){return(e+r)*3/4-r}function sr(t){var e,r=ge(t),n=r[0],i=r[1],o=new ir(ar(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=b[t.charCodeAt(p)]<<18|b[t.charCodeAt(p+1)]<<12|b[t.charCodeAt(p+2)]<<6|b[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=b[t.charCodeAt(p)]<<2|b[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=b[t.charCodeAt(p)]<<10|b[t.charCodeAt(p+1)]<<4|b[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function lr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function cr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(lr(n));return i.join("")}function pr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(cr(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var me=M(V=>{l();V.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,g=p>>1,d=-7,u=r?i-1:0,v=r?-1:1,T=t[e+u];for(u+=v,o=T&(1<<-d)-1,T>>=-d,d+=c;d>0;o=o*256+t[e+u],u+=v,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=n;d>0;a=a*256+t[e+u],u+=v,d-=8);if(o===0)o=1-g;else{if(o===p)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-g}return(T?-1:1)*a*Math.pow(2,o-n)};V.write=function(t,e,r,n,i,o){var a,c,p,g=o*8-i-1,d=(1<<g)-1,u=d>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,C=n?1:-1,Je=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=d):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+u>=1?e+=v/p:e+=v*Math.pow(2,1-u),e*p>=2&&(a++,p/=2),a+u>=d?(c=0,a=d):a+u>=1?(c=(e*p-1)*Math.pow(2,i),a=a+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+T]=c&255,T+=C,c/=256,i-=8);for(a=a<<i|c,g+=i;g>0;t[r+T]=a&255,T+=C,a/=256,g-=8);t[r+T-C]|=Je*128}});var Ee=M(U=>{"use strict";l();var K=de(),B=me(),fe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=hr;U.INSPECT_MAX_BYTES=50;var z=2147483647;U.kMaxLength=z;s.TYPED_ARRAY_SUPPORT=ur();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ur(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function A(t){if(t>z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Q(t)}return xe(t,e,r)}s.poolSize=8192;function xe(t,e,r){if(typeof t=="string")return dr(t,e);if(ArrayBuffer.isView(t))return mr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return Y(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=fr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return xe(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function we(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function gr(t,e,r){return we(t),t<=0?A(t):e!==void 0?typeof r=="string"?A(t).fill(e,r):A(t).fill(e):A(t)}s.alloc=function(t,e,r){return gr(t,e,r)};function Q(t){return we(t),A(t<0?0:Z(t)|0)}s.allocUnsafe=function(t){return Q(t)};s.allocUnsafeSlow=function(t){return Q(t)};function dr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Te(t,e)|0,n=A(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function X(t){for(var e=t.length<0?0:Z(t.length)|0,r=A(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function mr(t){if(I(t,Uint8Array)){var e=new Uint8Array(t);return Y(e.buffer,e.byteOffset,e.byteLength)}return X(t)}function Y(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function fr(t){if(s.isBuffer(t)){var e=Z(t.length)|0,r=A(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||$(t.length)?A(0):X(t);if(t.type==="Buffer"&&Array.isArray(t.data))return X(t.data)}function Z(t){if(t>=z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+z.toString(16)+" bytes");return t|0}function hr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(I(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function Te(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return _e(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=Te;function yr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Er(this,e,r);case"utf8":case"utf-8":return ve(this,e,r);case"ascii":return Lr(this,e,r);case"latin1":case"binary":return _r(this,e,r);case"base64":return kr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ar(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)F(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)F(this,r,r+3),F(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ve(this,0,e):yr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};fe&&(s.prototype[fe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),g=this.slice(i,o),d=e.slice(r,n),u=0;u<p;++u)if(g[u]!==d[u]){a=g[u],c=d[u];break}return a<c?-1:c<a?1:0};function be(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,$(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:he(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):he(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function he(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function p(T,C){return o===1?T[C]:T.readUInt16BE(C*o)}var g;if(i){var d=-1;for(g=r;g<a;g++)if(p(t,g)===p(e,d===-1?0:g-d)){if(d===-1&&(d=g),g-d+1===c)return d*o}else d!==-1&&(g-=g-d),d=-1}else for(r+c>a&&(r=a-c),g=r;g>=0;g--){for(var u=!0,v=0;v<c;v++)if(p(t,g+v)!==p(e,v)){u=!1;break}if(u)return g}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return be(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return be(this,e,r,n,!1)};function xr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if($(c))return a;t[r+a]=c}return a}function wr(t,e,r,n){return q(J(e,t.length-r),t,r,n)}function Tr(t,e,r,n){return q(Nr(e),t,r,n)}function br(t,e,r,n){return q(_e(e),t,r,n)}function vr(t,e,r,n){return q(Fr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return xr(this,e,r,n);case"utf8":case"utf-8":return wr(this,e,r,n);case"ascii":case"latin1":case"binary":return Tr(this,e,r,n);case"base64":return br(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vr(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function kr(t,e,r){return e===0&&r===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,r))}function ve(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var p,g,d,u;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(u=(o&31)<<6|p&63,u>127&&(a=u));break;case 3:p=t[i+1],g=t[i+2],(p&192)===128&&(g&192)===128&&(u=(o&15)<<12|(p&63)<<6|g&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:p=t[i+1],g=t[i+2],d=t[i+3],(p&192)===128&&(g&192)===128&&(d&192)===128&&(u=(o&15)<<18|(p&63)<<12|(g&63)<<6|d&63,u>65535&&u<1114112&&(a=u))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return Ir(n)}var ye=4096;function Ir(t){var e=t.length;if(e<=ye)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ye));return r}function Lr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function _r(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Er(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Dr[t[o]];return i}function Ar(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function ke(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ie(t,e,r,n,i){return e=+e,r=r>>>0,i||ke(t,e,r,4,34028234663852886e22,-34028234663852886e22),B.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ie(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ie(this,e,r,!1,n)};function Le(t,e,r,n,i){return e=+e,r=r>>>0,i||ke(t,e,r,8,17976931348623157e292,-17976931348623157e292),B.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Le(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Le(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var Sr=/[^+/0-9A-Za-z-_]/g;function Rr(t){if(t=t.split("=")[0],t=t.trim().replace(Sr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Nr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Fr(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function _e(t){return K.toByteArray(Rr(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function I(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function $(t){return t!==t}var Dr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Fe=M((et,Ne)=>{l();var y=Ne.exports={},L,_;function ee(){throw new Error("setTimeout has not been defined")}function re(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?L=setTimeout:L=ee}catch(t){L=ee}try{typeof clearTimeout=="function"?_=clearTimeout:_=re}catch(t){_=re}})();function Ae(t){if(L===setTimeout)return setTimeout(t,0);if((L===ee||!L)&&setTimeout)return L=setTimeout,setTimeout(t,0);try{return L(t,0)}catch(e){try{return L.call(null,t,0)}catch(r){return L.call(this,t,0)}}}function Cr(t){if(_===clearTimeout)return clearTimeout(t);if((_===re||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(t);try{return _(t)}catch(e){try{return _.call(null,t)}catch(r){return _.call(this,t)}}}var S=[],O=!1,D,W=-1;function Br(){!O||!D||(O=!1,D.length?S=D.concat(S):W=-1,S.length&&Se())}function Se(){if(!O){var t=Ae(Br);O=!0;for(var e=S.length;e;){for(D=S,S=[];++W<e;)D&&D[W].run();W=-1,e=S.length}D=null,O=!1,Cr(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];S.push(new Re(t,e)),S.length===1&&!O&&Ae(Se)};function Re(t,e){this.fun=t,this.array=e}Re.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function R(){}y.on=R;y.addListener=R;y.once=R;y.off=R;y.removeListener=R;y.removeAllListeners=R;y.emit=R;y.prependListener=R;y.prependOnceListener=R;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var m,f,rt,l=tr(()=>{m=pe(Ee()),f=pe(Fe()),rt=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Yr={};H(Yr,{default:()=>Xr,invalidateLoginSession:()=>Vr,loginInfoSlice:()=>le,setLedgerLogin:()=>qr,setLoginMethod:()=>Gr,setLogoutRoute:()=>Kr,setTokenLogin:()=>Wr,setTokenLoginSignature:()=>Hr,setWalletConnectLogin:()=>zr,setWalletLogin:()=>jr});module.exports=nr(Yr);l();var Ye=require("@reduxjs/toolkit");l();l();var ie={};H(ie,{getItem:()=>Or,localStorageKeys:()=>te,removeItem:()=>Pr,setItem:()=>Ur});l();l();l();var De=()=>Date.now()/1e3;l();l();var te={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ne=typeof localStorage!="undefined",Ur=({key:t,data:e,expires:r})=>{!ne||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Or=t=>{if(!ne)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:De()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},Pr=t=>{!ne||localStorage.removeItem(String(t))};var oe={};H(oe,{clear:()=>Oe,getItem:()=>Be,removeItem:()=>Ue,setItem:()=>Ce,storage:()=>Mr});l();var Ce=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Be=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},Ue=t=>sessionStorage.removeItem(String(t)),Oe=()=>sessionStorage.clear(),Mr={setItem:Ce,getItem:Be,removeItem:Ue,clear:Oe};var Pe={session:oe,local:ie};function Me(){return new Date().setHours(new Date().getHours()+24)}function Ge(t){Pe.local.setItem({key:te.loginExpiresAt,data:t,expires:t})}l();l();var se=require("@reduxjs/toolkit");l();l();l();l();l();l();l();l();l();l();l();l();var ae={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:ze,egldLabel:Ft}=ae["devnet"],{chainId:qe,egldLabel:Dt}=ae["testnet"],{chainId:We,egldLabel:Ct}=ae["mainnet"];var Bt={["devnet"]:ze,["testnet"]:qe,["mainnet"]:We},Ut={[ze]:"devnet",[qe]:"testnet",[We]:"mainnet"};l();l();l();l();var E=require("@multiversx/sdk-web-wallet-provider");l();var He="logout",je="login";var Ve=(0,se.createAction)(He),Ke=(0,se.createAction)(je,t=>({payload:t}));var Xe={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},le=(0,Ye.createSlice)({name:"loginInfoSlice",initialState:Xe,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(Ve,()=>Xe),t.addCase(Ke,(e,r)=>{e.loginMethod=r.payload.loginMethod,Ge(Me())})}}),{setLoginMethod:Gr,setWalletConnectLogin:zr,setLedgerLogin:qr,setTokenLogin:Wr,setTokenLoginSignature:Hr,setWalletLogin:jr,invalidateLoginSession:Vr,setLogoutRoute:Kr}=le.actions,Xr=le.reducer;0&&(module.exports={invalidateLoginSession,loginInfoSlice,setLedgerLogin,setLoginMethod,setLogoutRoute,setTokenLogin,setTokenLoginSignature,setWalletConnectLogin,setWalletLogin});
1
+ "use strict";var Qe=Object.create;var P=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var er=Object.getPrototypeOf,rr=Object.prototype.hasOwnProperty;var tr=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),H=(t,e)=>{for(var r in e)P(t,r,{get:e[r],enumerable:!0})},ce=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of $e(e))!rr.call(t,i)&&i!==r&&P(t,i,{get:()=>e[i],enumerable:!(n=Ze(e,i))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?Qe(er(t)):{},ce(e||!t||!t.__esModule?P(r,"default",{value:t,enumerable:!0}):r,t)),nr=t=>ce(P({},"__esModule",{value:!0}),t);var de=M(G=>{"use strict";l();G.byteLength=or;G.toByteArray=sr;G.fromByteArray=pr;var k=[],b=[],ir=typeof Uint8Array!="undefined"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(N=0,ue=j.length;N<ue;++N)k[N]=j[N],b[j.charCodeAt(N)]=N;var N,ue;b["-".charCodeAt(0)]=62;b["_".charCodeAt(0)]=63;function ge(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function or(t){var e=ge(t),r=e[0],n=e[1];return(r+n)*3/4-n}function ar(t,e,r){return(e+r)*3/4-r}function sr(t){var e,r=ge(t),n=r[0],i=r[1],o=new ir(ar(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=b[t.charCodeAt(p)]<<18|b[t.charCodeAt(p+1)]<<12|b[t.charCodeAt(p+2)]<<6|b[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=b[t.charCodeAt(p)]<<2|b[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=b[t.charCodeAt(p)]<<10|b[t.charCodeAt(p+1)]<<4|b[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function lr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function cr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(lr(n));return i.join("")}function pr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(cr(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var me=M(V=>{l();V.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,g=p>>1,d=-7,u=r?i-1:0,v=r?-1:1,T=t[e+u];for(u+=v,o=T&(1<<-d)-1,T>>=-d,d+=c;d>0;o=o*256+t[e+u],u+=v,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=n;d>0;a=a*256+t[e+u],u+=v,d-=8);if(o===0)o=1-g;else{if(o===p)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-g}return(T?-1:1)*a*Math.pow(2,o-n)};V.write=function(t,e,r,n,i,o){var a,c,p,g=o*8-i-1,d=(1<<g)-1,u=d>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,D=n?1:-1,Je=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=d):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+u>=1?e+=v/p:e+=v*Math.pow(2,1-u),e*p>=2&&(a++,p/=2),a+u>=d?(c=0,a=d):a+u>=1?(c=(e*p-1)*Math.pow(2,i),a=a+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+T]=c&255,T+=D,c/=256,i-=8);for(a=a<<i|c,g+=i;g>0;t[r+T]=a&255,T+=D,a/=256,g-=8);t[r+T-D]|=Je*128}});var Ee=M(U=>{"use strict";l();var K=de(),B=me(),fe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=hr;U.INSPECT_MAX_BYTES=50;var z=2147483647;U.kMaxLength=z;s.TYPED_ARRAY_SUPPORT=ur();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ur(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function A(t){if(t>z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Q(t)}return xe(t,e,r)}s.poolSize=8192;function xe(t,e,r){if(typeof t=="string")return dr(t,e);if(ArrayBuffer.isView(t))return mr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return Y(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=fr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return xe(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function we(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function gr(t,e,r){return we(t),t<=0?A(t):e!==void 0?typeof r=="string"?A(t).fill(e,r):A(t).fill(e):A(t)}s.alloc=function(t,e,r){return gr(t,e,r)};function Q(t){return we(t),A(t<0?0:Z(t)|0)}s.allocUnsafe=function(t){return Q(t)};s.allocUnsafeSlow=function(t){return Q(t)};function dr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Te(t,e)|0,n=A(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function X(t){for(var e=t.length<0?0:Z(t.length)|0,r=A(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function mr(t){if(I(t,Uint8Array)){var e=new Uint8Array(t);return Y(e.buffer,e.byteOffset,e.byteLength)}return X(t)}function Y(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function fr(t){if(s.isBuffer(t)){var e=Z(t.length)|0,r=A(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||$(t.length)?A(0):X(t);if(t.type==="Buffer"&&Array.isArray(t.data))return X(t.data)}function Z(t){if(t>=z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+z.toString(16)+" bytes");return t|0}function hr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(I(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function Te(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return _e(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=Te;function yr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Er(this,e,r);case"utf8":case"utf-8":return ve(this,e,r);case"ascii":return Lr(this,e,r);case"latin1":case"binary":return _r(this,e,r);case"base64":return kr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ar(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function F(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)F(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)F(this,r,r+3),F(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)F(this,r,r+7),F(this,r+1,r+6),F(this,r+2,r+5),F(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ve(this,0,e):yr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};fe&&(s.prototype[fe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),g=this.slice(i,o),d=e.slice(r,n),u=0;u<p;++u)if(g[u]!==d[u]){a=g[u],c=d[u];break}return a<c?-1:c<a?1:0};function be(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,$(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:he(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):he(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function he(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function p(T,D){return o===1?T[D]:T.readUInt16BE(D*o)}var g;if(i){var d=-1;for(g=r;g<a;g++)if(p(t,g)===p(e,d===-1?0:g-d)){if(d===-1&&(d=g),g-d+1===c)return d*o}else d!==-1&&(g-=g-d),d=-1}else for(r+c>a&&(r=a-c),g=r;g>=0;g--){for(var u=!0,v=0;v<c;v++)if(p(t,g+v)!==p(e,v)){u=!1;break}if(u)return g}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return be(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return be(this,e,r,n,!1)};function xr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if($(c))return a;t[r+a]=c}return a}function wr(t,e,r,n){return q(J(e,t.length-r),t,r,n)}function Tr(t,e,r,n){return q(Nr(e),t,r,n)}function br(t,e,r,n){return q(_e(e),t,r,n)}function vr(t,e,r,n){return q(Fr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return xr(this,e,r,n);case"utf8":case"utf-8":return wr(this,e,r,n);case"ascii":case"latin1":case"binary":return Tr(this,e,r,n);case"base64":return br(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vr(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function kr(t,e,r){return e===0&&r===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,r))}function ve(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var p,g,d,u;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(u=(o&31)<<6|p&63,u>127&&(a=u));break;case 3:p=t[i+1],g=t[i+2],(p&192)===128&&(g&192)===128&&(u=(o&15)<<12|(p&63)<<6|g&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:p=t[i+1],g=t[i+2],d=t[i+3],(p&192)===128&&(g&192)===128&&(d&192)===128&&(u=(o&15)<<18|(p&63)<<12|(g&63)<<6|d&63,u>65535&&u<1114112&&(a=u))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return Ir(n)}var ye=4096;function Ir(t){var e=t.length;if(e<=ye)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ye));return r}function Lr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function _r(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Er(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Cr[t[o]];return i}function Ar(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function ke(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ie(t,e,r,n,i){return e=+e,r=r>>>0,i||ke(t,e,r,4,34028234663852886e22,-34028234663852886e22),B.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ie(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ie(this,e,r,!1,n)};function Le(t,e,r,n,i){return e=+e,r=r>>>0,i||ke(t,e,r,8,17976931348623157e292,-17976931348623157e292),B.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Le(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Le(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var Sr=/[^+/0-9A-Za-z-_]/g;function Rr(t){if(t=t.split("=")[0],t=t.trim().replace(Sr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Nr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Fr(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function _e(t){return K.toByteArray(Rr(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function I(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function $(t){return t!==t}var Cr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Fe=M((et,Ne)=>{l();var y=Ne.exports={},L,_;function ee(){throw new Error("setTimeout has not been defined")}function re(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?L=setTimeout:L=ee}catch(t){L=ee}try{typeof clearTimeout=="function"?_=clearTimeout:_=re}catch(t){_=re}})();function Ae(t){if(L===setTimeout)return setTimeout(t,0);if((L===ee||!L)&&setTimeout)return L=setTimeout,setTimeout(t,0);try{return L(t,0)}catch(e){try{return L.call(null,t,0)}catch(r){return L.call(this,t,0)}}}function Dr(t){if(_===clearTimeout)return clearTimeout(t);if((_===re||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(t);try{return _(t)}catch(e){try{return _.call(null,t)}catch(r){return _.call(this,t)}}}var S=[],O=!1,C,W=-1;function Br(){!O||!C||(O=!1,C.length?S=C.concat(S):W=-1,S.length&&Se())}function Se(){if(!O){var t=Ae(Br);O=!0;for(var e=S.length;e;){for(C=S,S=[];++W<e;)C&&C[W].run();W=-1,e=S.length}C=null,O=!1,Dr(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];S.push(new Re(t,e)),S.length===1&&!O&&Ae(Se)};function Re(t,e){this.fun=t,this.array=e}Re.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function R(){}y.on=R;y.addListener=R;y.once=R;y.off=R;y.removeListener=R;y.removeAllListeners=R;y.emit=R;y.prependListener=R;y.prependOnceListener=R;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var m,f,rt,l=tr(()=>{m=pe(Ee()),f=pe(Fe()),rt=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Yr={};H(Yr,{default:()=>Xr,invalidateLoginSession:()=>Vr,loginInfoSlice:()=>le,setLedgerLogin:()=>qr,setLoginMethod:()=>Gr,setLogoutRoute:()=>Kr,setTokenLogin:()=>Wr,setTokenLoginSignature:()=>Hr,setWalletConnectLogin:()=>zr,setWalletLogin:()=>jr});module.exports=nr(Yr);l();var Ye=require("@reduxjs/toolkit");l();l();var ie={};H(ie,{getItem:()=>Or,localStorageKeys:()=>te,removeItem:()=>Pr,setItem:()=>Ur});l();l();l();var Ce=()=>Date.now()/1e3;l();l();var te={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ne=typeof localStorage!="undefined",Ur=({key:t,data:e,expires:r})=>{!ne||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Or=t=>{if(!ne)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Ce()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},Pr=t=>{!ne||localStorage.removeItem(String(t))};var oe={};H(oe,{clear:()=>Oe,getItem:()=>Be,removeItem:()=>Ue,setItem:()=>De,storage:()=>Mr});l();var De=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Be=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},Ue=t=>sessionStorage.removeItem(String(t)),Oe=()=>sessionStorage.clear(),Mr={setItem:De,getItem:Be,removeItem:Ue,clear:Oe};var Pe={session:oe,local:ie};function Me(){return new Date().setHours(new Date().getHours()+24)}function Ge(t){Pe.local.setItem({key:te.loginExpiresAt,data:t,expires:t})}l();l();var se=require("@reduxjs/toolkit");l();l();l();l();l();l();l();l();l();l();l();l();var ae={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:ze,egldLabel:Ft}=ae["devnet"],{chainId:qe,egldLabel:Ct}=ae["testnet"],{chainId:We,egldLabel:Dt}=ae["mainnet"];var Bt={["devnet"]:ze,["testnet"]:qe,["mainnet"]:We},Ut={[ze]:"devnet",[qe]:"testnet",[We]:"mainnet"};l();l();l();l();var E=require("@multiversx/sdk-web-wallet-provider");l();var He="logout",je="login";var Ve=(0,se.createAction)(He),Ke=(0,se.createAction)(je,t=>({payload:t}));var Xe={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},le=(0,Ye.createSlice)({name:"loginInfoSlice",initialState:Xe,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(Ve,()=>Xe),t.addCase(Ke,(e,r)=>{e.loginMethod=r.payload.loginMethod,Ge(Me())})}}),{setLoginMethod:Gr,setWalletConnectLogin:zr,setLedgerLogin:qr,setTokenLogin:Wr,setTokenLoginSignature:Hr,setWalletLogin:jr,invalidateLoginSession:Vr,setLogoutRoute:Kr}=le.actions,Xr=le.reducer;0&&(module.exports={invalidateLoginSession,loginInfoSlice,setLedgerLogin,setLoginMethod,setLogoutRoute,setTokenLogin,setTokenLoginSignature,setWalletConnectLogin,setWalletLogin});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *