@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 bo=Object.create;var de=Object.defineProperty,Io=Object.defineProperties,Ao=Object.getOwnPropertyDescriptor,vo=Object.getOwnPropertyDescriptors,ko=Object.getOwnPropertyNames,we=Object.getOwnPropertySymbols,Eo=Object.getPrototypeOf,ct=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable;var Jt=(e,t,r)=>t in e?de(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))ct.call(t,r)&&Jt(e,r,t[r]);if(we)for(var r of we(t))er.call(t,r)&&Jt(e,r,t[r]);return e},w=(e,t)=>Io(e,vo(t));var tr=(e,t)=>{var r={};for(var n in e)ct.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&we)for(var n of we(e))t.indexOf(n)<0&&er.call(e,n)&&(r[n]=e[n]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var be=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),X=(e,t)=>{for(var r in t)de(e,r,{get:t[r],enumerable:!0})},rr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ko(t))!ct.call(e,i)&&i!==r&&de(e,i,{get:()=>t[i],enumerable:!(n=Ao(t,i))||n.enumerable});return e};var b=(e,t,r)=>(r=e!=null?bo(Eo(e)):{},rr(t||!e||!e.__esModule?de(r,"default",{value:e,enumerable:!0}):r,e)),ge=e=>rr(de({},"__esModule",{value:!0}),e);var ir=be(Ie=>{"use strict";o();Ie.byteLength=Do;Ie.toByteArray=Ro;Ie.fromByteArray=Po;var M=[],_=[],Lo=typeof Uint8Array!="undefined"?Uint8Array:Array,lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Q=0,nr=lt.length;Q<nr;++Q)M[Q]=lt[Q],_[lt.charCodeAt(Q)]=Q;var Q,nr;_["-".charCodeAt(0)]=62;_["_".charCodeAt(0)]=63;function or(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Do(e){var t=or(e),r=t[0],n=t[1];return(r+n)*3/4-n}function No(e,t,r){return(t+r)*3/4-r}function Ro(e){var t,r=or(e),n=r[0],i=r[1],l=new Lo(No(e,n,i)),p=0,g=i>0?n-4:n,d;for(d=0;d<g;d+=4)t=_[e.charCodeAt(d)]<<18|_[e.charCodeAt(d+1)]<<12|_[e.charCodeAt(d+2)]<<6|_[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=_[e.charCodeAt(d)]<<2|_[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=_[e.charCodeAt(d)]<<10|_[e.charCodeAt(d+1)]<<4|_[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Co(e){return M[e>>18&63]+M[e>>12&63]+M[e>>6&63]+M[e&63]}function _o(e,t,r){for(var n,i=[],l=t;l<r;l+=3)n=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(Co(n));return i.join("")}function Po(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,g=r-n;p<g;p+=l)i.push(_o(e,p,p+l>g?g:p+l));return n===1?(t=e[r-1],i.push(M[t>>2]+M[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(M[t>>10]+M[t>>4&63]+M[t<<2&63]+"=")),i.join("")}});var ar=be(pt=>{o();pt.read=function(e,t,r,n,i){var l,p,g=i*8-n-1,d=(1<<g)-1,T=d>>1,h=-7,y=r?i-1:0,k=r?-1:1,E=e[t+y];for(y+=k,l=E&(1<<-h)-1,E>>=-h,h+=g;h>0;l=l*256+e[t+y],y+=k,h-=8);for(p=l&(1<<-h)-1,l>>=-h,h+=n;h>0;p=p*256+e[t+y],y+=k,h-=8);if(l===0)l=1-T;else{if(l===d)return p?NaN:(E?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-T}return(E?-1:1)*p*Math.pow(2,l-n)};pt.write=function(e,t,r,n,i,l){var p,g,d,T=l*8-i-1,h=(1<<T)-1,y=h>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:l-1,z=n?1:-1,V=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,p=h):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+y>=1?t+=k/d:t+=k*Math.pow(2,1-y),t*d>=2&&(p++,d/=2),p+y>=h?(g=0,p=h):p+y>=1?(g=(t*d-1)*Math.pow(2,i),p=p+y):(g=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+E]=g&255,E+=z,g/=256,i-=8);for(p=p<<i|g,T+=i;T>0;e[r+E]=p&255,E+=z,p/=256,T-=8);e[r+E-z]|=V*128}});var xr=be(ie=>{"use strict";o();var ut=ir(),oe=ar(),sr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ie.Buffer=u;ie.SlowBuffer=Vo;ie.INSPECT_MAX_BYTES=50;var Ae=2147483647;ie.kMaxLength=Ae;u.TYPED_ARRAY_SUPPORT=Mo();!u.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 Mo(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function $(e){if(e>Ae)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ft(e)}return pr(e,t,r)}u.poolSize=8192;function pr(e,t,r){if(typeof e=="string")return Fo(e,t);if(ArrayBuffer.isView(e))return Bo(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return gt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return u.from(n,t,r);var i=Uo(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return pr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function ur(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Oo(e,t,r){return ur(e),e<=0?$(e):t!==void 0?typeof r=="string"?$(e).fill(t,r):$(e).fill(t):$(e)}u.alloc=function(e,t,r){return Oo(e,t,r)};function ft(e){return ur(e),$(e<0?0:Tt(e)|0)}u.allocUnsafe=function(e){return ft(e)};u.allocUnsafeSlow=function(e){return ft(e)};function Fo(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=dr(e,t)|0,n=$(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function dt(e){for(var t=e.length<0?0:Tt(e.length)|0,r=$(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function Bo(e){if(O(e,Uint8Array)){var t=new Uint8Array(e);return gt(t.buffer,t.byteOffset,t.byteLength)}return dt(e)}function gt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function Uo(e){if(u.isBuffer(e)){var t=Tt(e.length)|0,r=$(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||yt(e.length)?$(0):dt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return dt(e.data)}function Tt(e){if(e>=Ae)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ae.toString(16)+" bytes");return e|0}function Vo(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(O(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),O(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var n=t.length,i=r.length,l=0,p=Math.min(n,i);l<p;++l)if(t[l]!==r[l]){n=t[l],i=r[l];break}return n<i?-1:i<n?1:0};u.isEncoding=function(t){switch(String(t).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}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=u.allocUnsafe(r),l=0;for(n=0;n<t.length;++n){var p=t[n];if(O(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function dr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return mt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return hr(e).length;default:if(i)return n?-1:mt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=dr;function $o(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Xo(this,t,r);case"utf8":case"utf-8":return mr(this,t,r);case"ascii":return Yo(this,t,r);case"latin1":case"binary":return Zo(this,t,r);case"base64":return zo(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qo(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function J(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)J(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)J(this,r,r+3),J(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)J(this,r,r+7),J(this,r+1,r+6),J(this,r+2,r+5),J(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?mr(this,0,t):$o.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=ie.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};sr&&(u.prototype[sr]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(O(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||n>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=n)return 0;if(i>=l)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,g=n-r,d=Math.min(p,g),T=this.slice(i,l),h=t.slice(r,n),y=0;y<d;++y)if(T[y]!==h[y]){p=T[y],g=h[y];break}return p<g?-1:g<p?1:0};function gr(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,yt(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,n)),u.isBuffer(t))return t.length===0?-1:cr(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):cr(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function cr(e,t,r,n,i){var l=1,p=e.length,g=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,g/=2,r/=2}function d(E,z){return l===1?E[z]:E.readUInt16BE(z*l)}var T;if(i){var h=-1;for(T=r;T<p;T++)if(d(e,T)===d(t,h===-1?0:T-h)){if(h===-1&&(h=T),T-h+1===g)return h*l}else h!==-1&&(T-=T-h),h=-1}else for(r+g>p&&(r=p-g),T=r;T>=0;T--){for(var y=!0,k=0;k<g;k++)if(d(e,T+k)!==d(t,k)){y=!1;break}if(y)return T}return-1}u.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};u.prototype.indexOf=function(t,r,n){return gr(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return gr(this,t,r,n,!1)};function Go(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var l=t.length;n>l/2&&(n=l/2);for(var p=0;p<n;++p){var g=parseInt(t.substr(p*2,2),16);if(yt(g))return p;e[r+p]=g}return p}function Ho(e,t,r,n){return ve(mt(t,e.length-r),e,r,n)}function Wo(e,t,r,n){return ve(ti(t),e,r,n)}function qo(e,t,r,n){return ve(hr(t),e,r,n)}function jo(e,t,r,n){return ve(ri(t,e.length-r),e,r,n)}u.prototype.write=function(t,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 l=this.length-r;if((n===void 0||n>l)&&(n=l),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Go(this,t,r,n);case"utf8":case"utf-8":return Ho(this,t,r,n);case"ascii":case"latin1":case"binary":return Wo(this,t,r,n);case"base64":return qo(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jo(this,t,r,n);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zo(e,t,r){return t===0&&r===e.length?ut.fromByteArray(e):ut.fromByteArray(e.slice(t,r))}function mr(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l=e[i],p=null,g=l>239?4:l>223?3:l>191?2:1;if(i+g<=r){var d,T,h,y;switch(g){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(y=(l&31)<<6|d&63,y>127&&(p=y));break;case 3:d=e[i+1],T=e[i+2],(d&192)===128&&(T&192)===128&&(y=(l&15)<<12|(d&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:d=e[i+1],T=e[i+2],h=e[i+3],(d&192)===128&&(T&192)===128&&(h&192)===128&&(y=(l&15)<<18|(d&63)<<12|(T&63)<<6|h&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,g=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=g}return Ko(n)}var lr=4096;function Ko(e){var t=e.length;if(t<=lr)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=lr));return r}function Yo(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function Zo(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Xo(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",l=t;l<r;++l)i+=ni[e[l]];return i}function Qo(e,t,r){for(var n=e.slice(t,r),i="",l=0;l<n.length-1;l+=2)i+=String.fromCharCode(n[l]+n[l+1]*256);return i}u.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function A(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||A(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||A(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||A(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||A(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||A(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||A(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||A(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||A(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||A(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||A(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||A(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||A(t,4,this.length),oe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||A(t,4,this.length),oe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||A(t,8,this.length),oe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||A(t,8,this.length),oe.read(this,t,!1,52,8)};function L(e,t,r,n,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;L(this,t,r,n,l,0)}var p=1,g=0;for(this[r]=t&255;++g<n&&(p*=256);)this[r+g]=t/p&255;return r+n};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;L(this,t,r,n,l,0)}var p=n-1,g=1;for(this[r+p]=t&255;--p>=0&&(g*=256);)this[r+p]=t/g&255;return r+n};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);L(this,t,r,n,l-1,-l)}var p=0,g=1,d=0;for(this[r]=t&255;++p<n&&(g*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);L(this,t,r,n,l-1,-l)}var p=n-1,g=1,d=0;for(this[r+p]=t&255;--p>=0&&(g*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function fr(e,t,r,n,i,l){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Tr(e,t,r,n,i){return t=+t,r=r>>>0,i||fr(e,t,r,4,34028234663852886e22,-34028234663852886e22),oe.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return Tr(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return Tr(this,t,r,!1,n)};function yr(e,t,r,n,i){return t=+t,r=r>>>0,i||fr(e,t,r,8,17976931348623157e292,-17976931348623157e292),oe.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return yr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return yr(this,t,r,!1,n)};u.prototype.copy=function(t,r,n,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.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),t.length-r<i-n&&(i=t.length-r+n);var l=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),l};u.prototype.fill=function(t,r,n,i){if(typeof t=="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"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));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,t||(t=0);var p;if(typeof t=="number")for(p=r;p<n;++p)this[p]=t;else{var g=u.isBuffer(t)?t:u.from(t,i),d=g.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<n-r;++p)this[p+r]=g[p%d]}return this};var Jo=/[^+/0-9A-Za-z-_]/g;function ei(e){if(e=e.split("=")[0],e=e.trim().replace(Jo,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function mt(e,t){t=t||1/0;for(var r,n=e.length,i=null,l=[],p=0;p<n;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===n){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function ti(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ri(e,t){for(var r,n,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),n=r>>8,i=r%256,l.push(i),l.push(n);return l}function hr(e){return ut.toByteArray(ei(e))}function ve(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function O(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function yt(e){return e!==e}var ni=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()});var Ar=be((Ua,Ir)=>{o();var S=Ir.exports={},F,B;function ht(){throw new Error("setTimeout has not been defined")}function xt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?F=setTimeout:F=ht}catch(e){F=ht}try{typeof clearTimeout=="function"?B=clearTimeout:B=xt}catch(e){B=xt}})();function Sr(e){if(F===setTimeout)return setTimeout(e,0);if((F===ht||!F)&&setTimeout)return F=setTimeout,setTimeout(e,0);try{return F(e,0)}catch(t){try{return F.call(null,e,0)}catch(r){return F.call(this,e,0)}}}function oi(e){if(B===clearTimeout)return clearTimeout(e);if((B===xt||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(e);try{return B(e)}catch(t){try{return B.call(null,e)}catch(r){return B.call(this,e)}}}var G=[],ae=!1,ee,ke=-1;function ii(){!ae||!ee||(ae=!1,ee.length?G=ee.concat(G):ke=-1,G.length&&wr())}function wr(){if(!ae){var e=Sr(ii);ae=!0;for(var t=G.length;t;){for(ee=G,G=[];++ke<t;)ee&&ee[ke].run();ke=-1,t=G.length}ee=null,ae=!1,oi(e)}}S.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];G.push(new br(e,t)),G.length===1&&!ae&&Sr(wr)};function br(e,t){this.fun=e,this.array=t}br.prototype.run=function(){this.fun.apply(null,this.array)};S.title="browser";S.browser=!0;S.env={};S.argv=[];S.version="";S.versions={};function H(){}S.on=H;S.addListener=H;S.once=H;S.off=H;S.removeListener=H;S.removeAllListeners=H;S.emit=H;S.prependListener=H;S.prependOnceListener=H;S.listeners=function(e){return[]};S.binding=function(e){throw new Error("process.binding is not supported")};S.cwd=function(){return"/"};S.chdir=function(e){throw new Error("process.chdir is not supported")};S.umask=function(){return 0}});var a,s,Va,o=f(()=>{a=b(xr()),s=b(Ar()),Va=function(e){function t(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var vr=f(()=>{"use strict";o()});var kr=f(()=>{"use strict";o()});var Er=f(()=>{"use strict";o()});var Lr=f(()=>{"use strict";o()});var W=f(()=>{"use strict";o()});var Dr=f(()=>{"use strict";o()});var Nr=f(()=>{"use strict";o()});var D=f(()=>{"use strict";o()});var Rr=f(()=>{"use strict";o()});var Cr=f(()=>{"use strict";o()});var N=f(()=>{"use strict";o();kr();Er();Lr();W();Dr();Nr();D();Rr();Cr()});var St,_r,is,Pr,as,Mr,ss,cs,ls,Or=f(()=>{"use strict";o();N();St={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:_r,egldLabel:is}=St["devnet"],{chainId:Pr,egldLabel:as}=St["testnet"],{chainId:Mr,egldLabel:ss}=St["mainnet"],cs={["devnet"]:_r,["testnet"]:Pr,["mainnet"]:Mr},ls={[_r]:"devnet",[Pr]:"testnet",[Mr]:"mainnet"}});var wt=f(()=>{"use strict";o()});var Fr=f(()=>{"use strict";o()});var Br,bt=f(()=>{"use strict";o();Br="transaction-status-toast-id"});var U,Ur=f(()=>{"use strict";o();U=require("@multiversx/sdk-web-wallet-provider")});var Vr=f(()=>{"use strict";o()});var It,At,$r,Ee,Gr,se,I=f(()=>{"use strict";o();vr();Or();wt();Fr();bt();Ur();Vr();It=5e4,At=1e9,$r=1,Ee="logout",Gr="login",se="0"});var Le,vt=f(()=>{"use strict";o();Le=()=>Date.now()/1e3});var Hr=f(()=>{"use strict";o()});var Wr=f(()=>{"use strict";o()});var qr=f(()=>{"use strict";o();vt();Hr();Wr()});var Et={};X(Et,{getItem:()=>si,localStorageKeys:()=>te,removeItem:()=>ci,setItem:()=>ai});var te,kt,ai,si,ci,me=f(()=>{"use strict";o();qr();te={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},kt=typeof localStorage!="undefined",ai=({key:e,data:t,expires:r})=>{!kt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},si=e=>{if(!kt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Le()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ci=e=>{!kt||localStorage.removeItem(String(e))}});var Lt={};X(Lt,{clear:()=>Yr,getItem:()=>zr,removeItem:()=>Kr,setItem:()=>jr,storage:()=>li});var jr,zr,Kr,Yr,li,Zr=f(()=>{"use strict";o();jr=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},zr=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},Kr=e=>sessionStorage.removeItem(String(e)),Yr=()=>sessionStorage.clear(),li={setItem:jr,getItem:zr,removeItem:Kr,clear:Yr}});var ce,De=f(()=>{"use strict";o();me();Zr();ce={session:Lt,local:Et}});var Dt,v,Ne,q=f(()=>{"use strict";o();Dt=require("@reduxjs/toolkit");I();v=(0,Dt.createAction)(Ee),Ne=(0,Dt.createAction)(Gr,e=>({payload:e}))});var Rt,Xr,Qr,Re,Nt,Jr,en,$s,tn,Gs,Hs,Ws,qs,js,zs,Ks,Ce,_e=f(()=>{"use strict";o();Rt=require("@multiversx/sdk-core"),Xr=require("@reduxjs/toolkit"),Qr=require("redux-persist");I();De();me();q();Re={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:se},Nt={address:"",websocketEvent:null,accounts:{"":Re},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Jr=(0,Xr.createSlice)({name:"accountInfoSlice",initialState:Nt,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Rt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Re},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(v,()=>(ce.local.removeItem(te.loginExpiresAt),Nt)),e.addCase(Ne,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new Rt.Address(n).hex()}),e.addCase(Qr.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:n}=r.payload,{address:i,shard:l,accounts:p,publicKey:g}=n;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Nt.accounts,t.publicKey=g})}}),{setAccount:en,setAddress:$s,setAccountNonce:tn,setAccountShard:Gs,setLedgerAccount:Hs,updateLedgerAccount:Ws,setWalletConnectAccount:qs,setIsAccountLoading:js,setAccountLoadingError:zs,setWebsocketEvent:Ks}=Jr.actions,Ce=Jr.reducer});function fe(){return new Date().setHours(new Date().getHours()+24)}function Te(e){ce.local.setItem({key:te.loginExpiresAt,data:e,expires:e})}var Ct=f(()=>{"use strict";o();De();me()});var nn,rn,on,oc,ic,ac,sc,cc,lc,an,pc,Pe,Me=f(()=>{"use strict";o();nn=require("@reduxjs/toolkit");Ct();W();q();rn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},on=(0,nn.createSlice)({name:"loginInfoSlice",initialState:rn,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(v,()=>rn),e.addCase(Ne,(t,r)=>{t.loginMethod=r.payload.loginMethod,Te(fe())})}}),{setLoginMethod:oc,setWalletConnectLogin:ic,setLedgerLogin:ac,setTokenLogin:sc,setTokenLoginSignature:cc,setWalletLogin:lc,invalidateLoginSession:an,setLogoutRoute:pc}=on.actions,Pe=on.reducer});var cn,sn,ln,mc,fc,Tc,yc,Oe,Fe=f(()=>{"use strict";o();cn=require("@reduxjs/toolkit");q();sn={},ln=(0,cn.createSlice)({name:"modalsSlice",initialState:sn,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(v,()=>sn)}}),{setTxSubmittedModal:mc,setNotificationModal:fc,clearTxSubmittedModal:Tc,clearNotificationModal:yc}=ln.actions,Oe=ln.reducer});var pn=f(()=>{"use strict";o()});var un=f(()=>{"use strict";o();pn()});function _t(e){return e[Math.floor(Math.random()*e.length)]}var dn=f(()=>{"use strict";o()});var gn=f(()=>{"use strict";o();wt()});var mn=f(()=>{"use strict";o();un();dn();gn()});var fn,Tn,Pt,ui,yn,_c,Pc,Be,Ue=f(()=>{"use strict";o();fn=require("@reduxjs/toolkit"),Tn=b(require("lodash.omit"));mn();Pt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ui={network:Pt,chainID:"-1"},yn=(0,fn.createSlice)({name:"appConfig",initialState:ui,reducers:{initializeNetworkConfig:(e,t)=>{let r=_t(t.payload.walletConnectBridgeAddresses),n=_t(t.payload.walletConnectV2RelayAddresses),i=(0,Tn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:_c,setChainID:Pc}=yn.actions,Be=yn.reducer});var hn,Mt,xn,Vc,$c,Gc,Ve,$e=f(()=>{"use strict";o();hn=require("@reduxjs/toolkit");N();q();Mt={isSigning:!1,signedSessions:{}},xn=(0,hn.createSlice)({name:"signedMessageInfoSliceState",initialState:Mt,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=n.status==="pending",e.signedSessions[r]=n},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Mt},extraReducers:e=>{e.addCase(v,()=>Mt)}}),{setSignSession:Vc,clearSignedMessageInfo:$c,setSignSessionState:Gc}=xn.actions,Ve=xn.reducer});var wn,bn,Sn,In,Zc,Xc,Qc,Jc,el,tl,Ge,He=f(()=>{"use strict";o();wn=require("@reduxjs/toolkit"),bn=require("redux-persist");bt();N();vt();q();Sn={customToasts:[],transactionToasts:[],failTransactionToast:null},In=(0,wn.createSlice)({name:"toastsSlice",initialState:Sn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(w(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Le(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=w(x({},t.payload),{toastId:Br})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(v,()=>Sn),e.addCase(bn.REHYDRATE,(t,r)=>{var i,l;let n=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=n})}}),{addCustomToast:Zc,removeCustomToast:Xc,addTransactionToast:Qc,removeTransactionToast:Jc,addFailTransactionToast:el,removeFailTransactionToast:tl}=In.actions,Ge=In.reducer});var An,Ft,Bt,Ut,di,Ot,vn,il,al,sl,We,qe=f(()=>{"use strict";o();An=require("@reduxjs/toolkit");q();Ft="Transaction failed",Bt="Transaction successful",Ut="Processing transaction",di="Transaction submitted",Ot={},vn=(0,An.createSlice)({name:"transactionsInfo",initialState:Ot,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||Ft,successMessage:(n==null?void 0:n.successMessage)||Bt,processingMessage:(n==null?void 0:n.processingMessage)||Ut,submittedMessage:(n==null?void 0:n.submittedMessage)||di,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Ot},extraReducers:e=>{e.addCase(v,()=>Ot)}}),{clearTransactionsInfo:il,setTransactionsDisplayInfo:al,clearTransactionsInfoForSessionId:sl}=vn.actions,We=vn.reducer});function kn(e){return e!=null&&(wi(e)||vi(e))}function ze(e){return e!=null&&(bi(e)||ki(e))}function Ke(e){return e!=null&&(Ii(e)||Ei(e))}function En(e){return e!=null&&Ai(e)}function wi(e){return e!=null&&mi.includes(e)}function bi(e){return e!=null&&fi.includes(e)}function Ii(e){return e!=null&&Ti.includes(e)}function Ai(e){return e!=null&&yi.includes(e)}function vi(e){return e!=null&&hi.includes(e)}function ki(e){return e!=null&&xi.includes(e)}function Ei(e){return e!=null&&Si.includes(e)}var mi,fi,Ti,yi,hi,xi,Si,Vt=f(()=>{"use strict";o();W();mi=["sent"],fi=["success"],Ti=["fail","cancelled","timedOut"],yi=["timedOut"],hi=["pending"],xi=["success"],Si=["fail","invalid"]});var Ln,Dn,ye,Li,Nn,Tl,yl,hl,xl,Sl,wl,bl,Il,Al,vl,Ye,Ze=f(()=>{"use strict";o();Ln=require("@reduxjs/toolkit"),Dn=require("redux-persist");W();Vt();q();ye={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Li={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Nn=(0,Ln.createSlice)({name:"transactionsSlice",initialState:ye,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,T;let{sessionId:r,transactions:n,errorMessage:i,status:l,redirectRoute:p}=t.payload,g=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||Li;e.signedTransactions[r]={transactions:n,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=ye.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:n,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=n,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var g,d,T,h,y,k;let{sessionId:r,status:n,errorMessage:i,transactionHash:l}=t.payload,p=(d=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(V=>V.hash===l?w(x({},V),{status:n,errorMessage:i}):V);let E=(h=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:h.every(V=>ze(V.status)),z=(k=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:k.every(V=>Ke(V.status));E&&(e.signedTransactions[r].status="success"),z&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:n}=t.payload;e.customTransactionInformationForSessionId[r]=n,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=ye.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=ye.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(v,()=>ye),e.addCase(Dn.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(n).reduce((g,[d,T])=>{let h=new Date(d),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(g[d]=T),g},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Tl,updateSignedTransactions:yl,setTransactionsToSign:hl,clearAllTransactionsToSign:xl,clearAllSignedTransactions:Sl,clearSignedTransaction:wl,clearTransactionToSign:bl,setSignTransactionsError:Il,setSignTransactionsCancelMessage:Al,moveTransactionsToSignedState:vl}=Nn.actions,Ye=Nn.reducer});var le=f(()=>{"use strict";o();_e();Me();Fe();Ue();$e();He();qe();Ze()});var $t=f(()=>{"use strict";o()});var Mn,Pn,On,Yl,Zl,Xl,Ql,Jl,ep,Fn,Bn=f(()=>{"use strict";o();Mn=require("@reduxjs/toolkit");q();Pn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},On=(0,Mn.createSlice)({name:"dappModalsSlice",initialState:Pn,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(v,()=>Pn)}}),{setDappModalVisibility:Yl,setDappModalHeaderVisibility:Zl,setDappModalFooterVisibility:Xl,setDappModalHeaderText:Ql,setDappModalFooterText:Jl,setDappModalConfig:ep}=On.actions,Fn=On.reducer});var Un,Ci,_i,re,tt=f(()=>{"use strict";o();Un=require("@reduxjs/toolkit");$t();_e();Bn();Me();Fe();Ue();$e();He();qe();Ze();Ci={["account"]:Ce,["dappModal"]:Fn,["loginInfo"]:Pe,["modals"]:Oe,["networkConfig"]:Be,["signedMessageInfo"]:Ve,["toasts"]:Ge,["transactionsInfo"]:We,["transactions"]:Ye},_i=(e={})=>(0,Un.combineReducers)(x(x({},Ci),e)),re=_i});var Hn={};X(Hn,{default:()=>Ki,sessionStorageReducers:()=>Gt});function K(e,t=[]){return{key:e,version:1,storage:$n.default,blacklist:t}}var R,Vn,$n,Pi,he,Mi,Oi,Fi,Bi,Ui,Vi,$i,Gi,Hi,Gn,Wi,Gt,qi,ji,zi,Ki,Wn=f(()=>{"use strict";o();R=require("redux-persist"),Vn=b(require("redux-persist/lib/storage")),$n=b(require("redux-persist/lib/storage/session"));tt();le();_e();Me();Fe();Ue();$e();He();qe();Ze();$t();Pi={persistReducersStorageType:"localStorage"},he={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Mi=K(he["account"]),Oi=K(he["loginInfo"]),Fi=K(he["modals"]),Bi=K(he["networkConfig"]),Ui={2:e=>w(x({},e),{networkConfig:Pt})};Vi=K("sdk-dapp-transactionsInfo"),$i=K("sdk-dapp-transactions",["transactionsToSign"]),Gi=K("sdk-dapp-toasts"),Hi=K("sdk-dapp-signedMessageInfo"),Gn={key:"sdk-dapp-store",version:2,storage:Vn.default,whitelist:Object.keys(he),migrate:(0,R.createMigrate)(Ui,{debug:!1})},Wi=w(x({},Gn),{whitelist:[]}),Gt={["toasts"]:(0,R.persistReducer)(Gi,Ge),["transactions"]:(0,R.persistReducer)($i,Ye),["transactionsInfo"]:(0,R.persistReducer)(Vi,We),["signedMessageInfo"]:(0,R.persistReducer)(Hi,Ve)},qi=w(x({},Gt),{["account"]:(0,R.persistReducer)(Mi,Ce),["loginInfo"]:(0,R.persistReducer)(Oi,Pe),["modals"]:(0,R.persistReducer)(Fi,Oe),["networkConfig"]:(0,R.persistReducer)(Bi,Be)}),ji=Pi.persistReducersStorageType==="localStorage",zi=ji?(0,R.persistReducer)(Gn,re(Gt)):(0,R.persistReducer)(Wi,re(qi)),Ki=zi});var qn={};X(qn,{default:()=>Yi});var Yi,jn=f(()=>{"use strict";o();tt();Yi=re()});var zn={};X(zn,{default:()=>Xi});var P,Zi,Xi,Kn=f(()=>{"use strict";o();P=require("redux-persist"),Zi=[P.FLUSH,P.REHYDRATE,P.PAUSE,P.PERSIST,P.PURGE,P.REGISTER],Xi=Zi});var Xn={};X(Xn,{default:()=>Zn});function Zn(e){return(0,Yn.persistStore)(e)}var Yn,Qn=f(()=>{"use strict";o();Yn=require("redux-persist")});var Pa={};X(Pa,{useGetLastPendingTransactionHash:()=>_a});module.exports=ge(Pa);o();o();o();var oo=require("react"),ue=require("react-redux");o();var Ht=require("@reduxjs/toolkit"),ro=require("react-redux/lib/utils/Subscription");le();o();var Cn=b(require("lodash.throttle"));I();o();var Rn=b(require("lodash.isequal")),Xe=require("reselect");N();var m=(0,Xe.createSelectorCreator)(Xe.defaultMemoize,Rn.default),Qe=(e,t)=>e!=""&&Boolean(t);le();Ct();De();me();var Di=[Ee],Je=!1,Ni=(0,Cn.default)(()=>{Te(fe())},5e3),_n=e=>t=>r=>{var d;if(Di.includes(r.type))return t(r);let n=e.getState(),i=ce.local.getItem(te.loginExpiresAt);if(!Qe((d=n==null?void 0:n.loginInfo)==null?void 0:d.loginMethod,n==null?void 0:n.account.address))return t(r);if(i==null)return Te(fe());let p=Date.now();return i-p<0&&!Je?setTimeout(()=>{Je=!0,e.dispatch(an())},1e3):(Je&&(Je=!1),Ni()),t(r)};o();o();function et(){return typeof sessionStorage!="undefined"}var Jn=et()?(Wn(),ge(Hn)).default:(jn(),ge(qn)).default,eo=et()?(Kn(),ge(zn)).default:[],to=et()?(Qn(),ge(Xn)).default:e=>e;tt();var pe=(0,Ht.configureStore)({reducer:Jn,middleware:e=>e({serializableCheck:{ignoredActions:[...eo,tn.type,en.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(_n)}),no=(0,ro.createSubscription)(pe),Rp=to(pe),Cp=(0,Ht.configureStore)({reducer:re});var Qi={store:pe,subscription:no},Wt=(0,oo.createContext)(Qi),Op=(0,ue.createStoreHook)(Wt),Fp=(0,ue.createDispatchHook)(Wt),io=(0,ue.createSelectorHook)(Wt);o();o();le();var j=e=>e.account,qt=m(j,e=>e.address),jt=m(j,qt,(e,t)=>t in e.accounts?e.accounts[t]:Re),$p=m(j,jt,(e,t)=>{let i=e,{accounts:r}=i,n=tr(i,["accounts"]);return w(x({},n),{account:t})}),Gp=m(jt,e=>e.balance),Hp=m(jt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Wp=m(j,e=>e.shard),qp=m(j,e=>e.ledgerAccount),jp=m(j,e=>e.walletConnectAccount),zp=m(j,e=>e.isAccountLoading),Kp=m(j,e=>e.accountLoadingError),Yp=m(j,e=>e.websocketEvent);o();var Y=e=>e.loginInfo,Jp=m(Y,e=>e.loginMethod),eu=m(Y,qt,(e,t)=>Qe(e.loginMethod,t)),tu=m(Y,e=>e.walletConnectLogin),ru=m(Y,e=>e.ledgerLogin),nu=m(Y,e=>e.walletLogin),ou=m(Y,e=>e.isLoginSessionInvalid),iu=m(Y,e=>e.tokenLogin),au=m(Y,e=>e.logoutRoute);o();var ao=e=>e.modals,lu=m(ao,e=>e.txSubmittedModal),pu=m(ao,e=>e.notificationModal);o();var ne=e=>e.networkConfig,gu=m(ne,e=>e.chainID),mu=m(ne,e=>e.network.walletConnectBridgeAddress),fu=m(ne,e=>e.network.walletConnectV2RelayAddress),Tu=m(ne,e=>e.network.walletConnectV2ProjectId),yu=m(ne,e=>e.network.walletConnectV2Options),hu=m(ne,e=>e.network.walletConnectDeepLink),zt=m(ne,e=>e.network),xu=m(zt,e=>e.apiAddress),so=m(zt,e=>e.explorerAddress),Su=m(zt,e=>e.egldLabel);o();var rt=e=>e.signedMessageInfo,Iu=m(rt,e=>e.isSigning),Au=m(rt,e=>e.errorMessage),vu=m(rt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),ku=m(rt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});o();var Kt=e=>e.toasts,Du=m(Kt,e=>e.customToasts),Nu=m(Kt,e=>e.transactionToasts),Ru=m(Kt,e=>e.failTransactionToast);o();le();var co={errorMessage:Ft,successMessage:Bt,processingMessage:Ut},Ji=e=>e.transactionsInfo,Mu=m(Ji,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||co);o();o();var C=require("@multiversx/sdk-core");I();o();function Yt(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Zt(e){var i,l,p;let{data:t}=e,r=Yt(t!=null?t:"")?C.TransactionPayload.fromEncoded(t):new C.TransactionPayload(t),n=new C.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new C.Address(e.receiver),sender:new C.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:It,gasPrice:(l=e.gasPrice.valueOf())!=null?l:At,chainID:e.chainID.valueOf(),version:new C.TransactionVersion((p=e.version)!=null?p:$r)},e.options?{options:new C.TransactionOptions(e.options)}:{}));return n.applySignature({hex:()=>e.signature||""},new C.Address(e.sender)),n}o();o();o();o();o();var ta=require("@multiversx/sdk-core/out");o();I();o();var po=require("@multiversx/sdk-core");N();o();var ra=require("@multiversx/sdk-core");o();o();o();var oa=require("@multiversx/sdk-core"),ia=b(require("bignumber.js"));W();o();o();o();o();o();o();o();o();o();D();o();o();D();o();o();o();var ua=b(require("bignumber.js"));I();o();var pa=require("@multiversx/sdk-core"),Xt=b(require("bignumber.js"));I();o();var ca=b(require("bignumber.js"));o();Xt.default.config({ROUNDING_MODE:Xt.default.ROUND_FLOOR});o();o();o();I();o();o();o();o();I();o();I();o();var da=require("@multiversx/sdk-core");I();o();var xe=require("@multiversx/sdk-core"),ma=require("@multiversx/sdk-network-providers");I();o();o();var ga=b(require("bignumber.js"));I();o();I();o();o();o();o();o();I();o();D();var Ta=["reDelegateRewards","claimRewards","unBond"],ya=["wrapEgld","unwrapEgld"],ha=["unStake"],xa=["unDelegate"];o();o();o();I();o();var ba=b(require("bignumber.js"));o();o();o();o();D();o();var Ia=b(require("bignumber.js"));o();o();o();var va=b(require("bignumber.js"));N();o();o();o();o();W();o();o();o();o();D();o();o();o();var ka=b(require("linkifyjs"));o();I();o();var Ea=b(require("bignumber.js"));o();N();o();o();W();o();W();o();o();o();D();o();D();o();var La=b(require("bignumber.js"));I();D();o();D();o();var ho=require("react");N();o();o();D();o();o();var Da=require("@multiversx/sdk-core/out"),Na=b(require("bignumber.js"));D();o();N();o();o();N();var by=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var xo=require("react");N();o();var Ca=require("react");D();var Dy=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Vt();var at=e=>e.transactions,Se=m(at,e=>e.signedTransactions),gh=m(at,e=>e.signTransactionsError),mh=m(at,e=>e.signTransactionsCancelMessage),st=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),So=m(Se,st(kn)),fh=m(Se,st(ze)),Th=m(Se,st(Ke)),yh=m(Se,st(En)),hh=m(at,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Zt(r)))||[]})}),xh=m(Se,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function wo(){let e=io(So),t=Object.entries(e),r=(t==null?void 0:t.length)>0;return{pendingTransactions:e,pendingTransactionsArray:t,hasPendingTransactions:r}}N();var _a=()=>{var n,i;let{hasPendingTransactions:e,pendingTransactions:t}=wo();if(!e)return"";let r=Object.keys(t).sort().reverse();for(let l of r){let g=(i=(n=t[l].transactions)==null?void 0:n.filter(d=>d.status==="pending"))!=null?i:[];if(g.length>0)return g[g.length-1].hash}return""};0&&(module.exports={useGetLastPendingTransactionHash});
1
+ "use strict";var bo=Object.create;var de=Object.defineProperty,Io=Object.defineProperties,Ao=Object.getOwnPropertyDescriptor,vo=Object.getOwnPropertyDescriptors,ko=Object.getOwnPropertyNames,we=Object.getOwnPropertySymbols,Eo=Object.getPrototypeOf,ct=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable;var Jt=(e,t,r)=>t in e?de(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))ct.call(t,r)&&Jt(e,r,t[r]);if(we)for(var r of we(t))er.call(t,r)&&Jt(e,r,t[r]);return e},w=(e,t)=>Io(e,vo(t));var tr=(e,t)=>{var r={};for(var n in e)ct.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&we)for(var n of we(e))t.indexOf(n)<0&&er.call(e,n)&&(r[n]=e[n]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var be=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),X=(e,t)=>{for(var r in t)de(e,r,{get:t[r],enumerable:!0})},rr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ko(t))!ct.call(e,i)&&i!==r&&de(e,i,{get:()=>t[i],enumerable:!(n=Ao(t,i))||n.enumerable});return e};var b=(e,t,r)=>(r=e!=null?bo(Eo(e)):{},rr(t||!e||!e.__esModule?de(r,"default",{value:e,enumerable:!0}):r,e)),ge=e=>rr(de({},"__esModule",{value:!0}),e);var ir=be(Ie=>{"use strict";o();Ie.byteLength=Do;Ie.toByteArray=Ro;Ie.fromByteArray=_o;var M=[],P=[],Lo=typeof Uint8Array!="undefined"?Uint8Array:Array,lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Q=0,nr=lt.length;Q<nr;++Q)M[Q]=lt[Q],P[lt.charCodeAt(Q)]=Q;var Q,nr;P["-".charCodeAt(0)]=62;P["_".charCodeAt(0)]=63;function or(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Do(e){var t=or(e),r=t[0],n=t[1];return(r+n)*3/4-n}function No(e,t,r){return(t+r)*3/4-r}function Ro(e){var t,r=or(e),n=r[0],i=r[1],l=new Lo(No(e,n,i)),p=0,g=i>0?n-4:n,d;for(d=0;d<g;d+=4)t=P[e.charCodeAt(d)]<<18|P[e.charCodeAt(d+1)]<<12|P[e.charCodeAt(d+2)]<<6|P[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=P[e.charCodeAt(d)]<<2|P[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=P[e.charCodeAt(d)]<<10|P[e.charCodeAt(d+1)]<<4|P[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Co(e){return M[e>>18&63]+M[e>>12&63]+M[e>>6&63]+M[e&63]}function Po(e,t,r){for(var n,i=[],l=t;l<r;l+=3)n=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(Co(n));return i.join("")}function _o(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,g=r-n;p<g;p+=l)i.push(Po(e,p,p+l>g?g:p+l));return n===1?(t=e[r-1],i.push(M[t>>2]+M[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(M[t>>10]+M[t>>4&63]+M[t<<2&63]+"=")),i.join("")}});var ar=be(pt=>{o();pt.read=function(e,t,r,n,i){var l,p,g=i*8-n-1,d=(1<<g)-1,T=d>>1,h=-7,y=r?i-1:0,k=r?-1:1,E=e[t+y];for(y+=k,l=E&(1<<-h)-1,E>>=-h,h+=g;h>0;l=l*256+e[t+y],y+=k,h-=8);for(p=l&(1<<-h)-1,l>>=-h,h+=n;h>0;p=p*256+e[t+y],y+=k,h-=8);if(l===0)l=1-T;else{if(l===d)return p?NaN:(E?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-T}return(E?-1:1)*p*Math.pow(2,l-n)};pt.write=function(e,t,r,n,i,l){var p,g,d,T=l*8-i-1,h=(1<<T)-1,y=h>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:l-1,z=n?1:-1,V=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,p=h):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+y>=1?t+=k/d:t+=k*Math.pow(2,1-y),t*d>=2&&(p++,d/=2),p+y>=h?(g=0,p=h):p+y>=1?(g=(t*d-1)*Math.pow(2,i),p=p+y):(g=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+E]=g&255,E+=z,g/=256,i-=8);for(p=p<<i|g,T+=i;T>0;e[r+E]=p&255,E+=z,p/=256,T-=8);e[r+E-z]|=V*128}});var xr=be(ie=>{"use strict";o();var ut=ir(),oe=ar(),sr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ie.Buffer=u;ie.SlowBuffer=Vo;ie.INSPECT_MAX_BYTES=50;var Ae=2147483647;ie.kMaxLength=Ae;u.TYPED_ARRAY_SUPPORT=Mo();!u.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 Mo(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function $(e){if(e>Ae)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ft(e)}return pr(e,t,r)}u.poolSize=8192;function pr(e,t,r){if(typeof e=="string")return Fo(e,t);if(ArrayBuffer.isView(e))return Bo(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return gt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return u.from(n,t,r);var i=Uo(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return pr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function ur(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Oo(e,t,r){return ur(e),e<=0?$(e):t!==void 0?typeof r=="string"?$(e).fill(t,r):$(e).fill(t):$(e)}u.alloc=function(e,t,r){return Oo(e,t,r)};function ft(e){return ur(e),$(e<0?0:Tt(e)|0)}u.allocUnsafe=function(e){return ft(e)};u.allocUnsafeSlow=function(e){return ft(e)};function Fo(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=dr(e,t)|0,n=$(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function dt(e){for(var t=e.length<0?0:Tt(e.length)|0,r=$(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function Bo(e){if(O(e,Uint8Array)){var t=new Uint8Array(e);return gt(t.buffer,t.byteOffset,t.byteLength)}return dt(e)}function gt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function Uo(e){if(u.isBuffer(e)){var t=Tt(e.length)|0,r=$(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||yt(e.length)?$(0):dt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return dt(e.data)}function Tt(e){if(e>=Ae)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ae.toString(16)+" bytes");return e|0}function Vo(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(O(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),O(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var n=t.length,i=r.length,l=0,p=Math.min(n,i);l<p;++l)if(t[l]!==r[l]){n=t[l],i=r[l];break}return n<i?-1:i<n?1:0};u.isEncoding=function(t){switch(String(t).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}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=u.allocUnsafe(r),l=0;for(n=0;n<t.length;++n){var p=t[n];if(O(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function dr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return mt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return hr(e).length;default:if(i)return n?-1:mt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=dr;function $o(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Xo(this,t,r);case"utf8":case"utf-8":return mr(this,t,r);case"ascii":return Yo(this,t,r);case"latin1":case"binary":return Zo(this,t,r);case"base64":return zo(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qo(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function J(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)J(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)J(this,r,r+3),J(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)J(this,r,r+7),J(this,r+1,r+6),J(this,r+2,r+5),J(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?mr(this,0,t):$o.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=ie.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};sr&&(u.prototype[sr]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(O(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||n>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=n)return 0;if(i>=l)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,g=n-r,d=Math.min(p,g),T=this.slice(i,l),h=t.slice(r,n),y=0;y<d;++y)if(T[y]!==h[y]){p=T[y],g=h[y];break}return p<g?-1:g<p?1:0};function gr(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,yt(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,n)),u.isBuffer(t))return t.length===0?-1:cr(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):cr(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function cr(e,t,r,n,i){var l=1,p=e.length,g=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,g/=2,r/=2}function d(E,z){return l===1?E[z]:E.readUInt16BE(z*l)}var T;if(i){var h=-1;for(T=r;T<p;T++)if(d(e,T)===d(t,h===-1?0:T-h)){if(h===-1&&(h=T),T-h+1===g)return h*l}else h!==-1&&(T-=T-h),h=-1}else for(r+g>p&&(r=p-g),T=r;T>=0;T--){for(var y=!0,k=0;k<g;k++)if(d(e,T+k)!==d(t,k)){y=!1;break}if(y)return T}return-1}u.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};u.prototype.indexOf=function(t,r,n){return gr(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return gr(this,t,r,n,!1)};function Go(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var l=t.length;n>l/2&&(n=l/2);for(var p=0;p<n;++p){var g=parseInt(t.substr(p*2,2),16);if(yt(g))return p;e[r+p]=g}return p}function Ho(e,t,r,n){return ve(mt(t,e.length-r),e,r,n)}function Wo(e,t,r,n){return ve(ti(t),e,r,n)}function qo(e,t,r,n){return ve(hr(t),e,r,n)}function jo(e,t,r,n){return ve(ri(t,e.length-r),e,r,n)}u.prototype.write=function(t,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 l=this.length-r;if((n===void 0||n>l)&&(n=l),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Go(this,t,r,n);case"utf8":case"utf-8":return Ho(this,t,r,n);case"ascii":case"latin1":case"binary":return Wo(this,t,r,n);case"base64":return qo(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jo(this,t,r,n);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zo(e,t,r){return t===0&&r===e.length?ut.fromByteArray(e):ut.fromByteArray(e.slice(t,r))}function mr(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l=e[i],p=null,g=l>239?4:l>223?3:l>191?2:1;if(i+g<=r){var d,T,h,y;switch(g){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(y=(l&31)<<6|d&63,y>127&&(p=y));break;case 3:d=e[i+1],T=e[i+2],(d&192)===128&&(T&192)===128&&(y=(l&15)<<12|(d&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:d=e[i+1],T=e[i+2],h=e[i+3],(d&192)===128&&(T&192)===128&&(h&192)===128&&(y=(l&15)<<18|(d&63)<<12|(T&63)<<6|h&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,g=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=g}return Ko(n)}var lr=4096;function Ko(e){var t=e.length;if(t<=lr)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=lr));return r}function Yo(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function Zo(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Xo(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",l=t;l<r;++l)i+=ni[e[l]];return i}function Qo(e,t,r){for(var n=e.slice(t,r),i="",l=0;l<n.length-1;l+=2)i+=String.fromCharCode(n[l]+n[l+1]*256);return i}u.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function A(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||A(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||A(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||A(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||A(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||A(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||A(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||A(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||A(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||A(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||A(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||A(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||A(t,4,this.length),oe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||A(t,4,this.length),oe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||A(t,8,this.length),oe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||A(t,8,this.length),oe.read(this,t,!1,52,8)};function L(e,t,r,n,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;L(this,t,r,n,l,0)}var p=1,g=0;for(this[r]=t&255;++g<n&&(p*=256);)this[r+g]=t/p&255;return r+n};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;L(this,t,r,n,l,0)}var p=n-1,g=1;for(this[r+p]=t&255;--p>=0&&(g*=256);)this[r+p]=t/g&255;return r+n};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);L(this,t,r,n,l-1,-l)}var p=0,g=1,d=0;for(this[r]=t&255;++p<n&&(g*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);L(this,t,r,n,l-1,-l)}var p=n-1,g=1,d=0;for(this[r+p]=t&255;--p>=0&&(g*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||L(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function fr(e,t,r,n,i,l){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Tr(e,t,r,n,i){return t=+t,r=r>>>0,i||fr(e,t,r,4,34028234663852886e22,-34028234663852886e22),oe.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return Tr(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return Tr(this,t,r,!1,n)};function yr(e,t,r,n,i){return t=+t,r=r>>>0,i||fr(e,t,r,8,17976931348623157e292,-17976931348623157e292),oe.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return yr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return yr(this,t,r,!1,n)};u.prototype.copy=function(t,r,n,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.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),t.length-r<i-n&&(i=t.length-r+n);var l=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),l};u.prototype.fill=function(t,r,n,i){if(typeof t=="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"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));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,t||(t=0);var p;if(typeof t=="number")for(p=r;p<n;++p)this[p]=t;else{var g=u.isBuffer(t)?t:u.from(t,i),d=g.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<n-r;++p)this[p+r]=g[p%d]}return this};var Jo=/[^+/0-9A-Za-z-_]/g;function ei(e){if(e=e.split("=")[0],e=e.trim().replace(Jo,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function mt(e,t){t=t||1/0;for(var r,n=e.length,i=null,l=[],p=0;p<n;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===n){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function ti(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ri(e,t){for(var r,n,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),n=r>>8,i=r%256,l.push(i),l.push(n);return l}function hr(e){return ut.toByteArray(ei(e))}function ve(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function O(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function yt(e){return e!==e}var ni=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()});var Ar=be((Ua,Ir)=>{o();var S=Ir.exports={},F,B;function ht(){throw new Error("setTimeout has not been defined")}function xt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?F=setTimeout:F=ht}catch(e){F=ht}try{typeof clearTimeout=="function"?B=clearTimeout:B=xt}catch(e){B=xt}})();function Sr(e){if(F===setTimeout)return setTimeout(e,0);if((F===ht||!F)&&setTimeout)return F=setTimeout,setTimeout(e,0);try{return F(e,0)}catch(t){try{return F.call(null,e,0)}catch(r){return F.call(this,e,0)}}}function oi(e){if(B===clearTimeout)return clearTimeout(e);if((B===xt||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(e);try{return B(e)}catch(t){try{return B.call(null,e)}catch(r){return B.call(this,e)}}}var G=[],ae=!1,ee,ke=-1;function ii(){!ae||!ee||(ae=!1,ee.length?G=ee.concat(G):ke=-1,G.length&&wr())}function wr(){if(!ae){var e=Sr(ii);ae=!0;for(var t=G.length;t;){for(ee=G,G=[];++ke<t;)ee&&ee[ke].run();ke=-1,t=G.length}ee=null,ae=!1,oi(e)}}S.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];G.push(new br(e,t)),G.length===1&&!ae&&Sr(wr)};function br(e,t){this.fun=e,this.array=t}br.prototype.run=function(){this.fun.apply(null,this.array)};S.title="browser";S.browser=!0;S.env={};S.argv=[];S.version="";S.versions={};function H(){}S.on=H;S.addListener=H;S.once=H;S.off=H;S.removeListener=H;S.removeAllListeners=H;S.emit=H;S.prependListener=H;S.prependOnceListener=H;S.listeners=function(e){return[]};S.binding=function(e){throw new Error("process.binding is not supported")};S.cwd=function(){return"/"};S.chdir=function(e){throw new Error("process.chdir is not supported")};S.umask=function(){return 0}});var a,s,Va,o=f(()=>{a=b(xr()),s=b(Ar()),Va=function(e){function t(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var vr=f(()=>{"use strict";o()});var kr=f(()=>{"use strict";o()});var Er=f(()=>{"use strict";o()});var Lr=f(()=>{"use strict";o()});var W=f(()=>{"use strict";o()});var Dr=f(()=>{"use strict";o()});var Nr=f(()=>{"use strict";o()});var D=f(()=>{"use strict";o()});var Rr=f(()=>{"use strict";o()});var Cr=f(()=>{"use strict";o()});var N=f(()=>{"use strict";o();kr();Er();Lr();W();Dr();Nr();D();Rr();Cr()});var St,Pr,is,_r,as,Mr,ss,cs,ls,Or=f(()=>{"use strict";o();N();St={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:Pr,egldLabel:is}=St["devnet"],{chainId:_r,egldLabel:as}=St["testnet"],{chainId:Mr,egldLabel:ss}=St["mainnet"],cs={["devnet"]:Pr,["testnet"]:_r,["mainnet"]:Mr},ls={[Pr]:"devnet",[_r]:"testnet",[Mr]:"mainnet"}});var wt=f(()=>{"use strict";o()});var Fr=f(()=>{"use strict";o()});var Br,bt=f(()=>{"use strict";o();Br="transaction-status-toast-id"});var U,Ur=f(()=>{"use strict";o();U=require("@multiversx/sdk-web-wallet-provider")});var Vr=f(()=>{"use strict";o()});var It,At,$r,Ee,Gr,se,I=f(()=>{"use strict";o();vr();Or();wt();Fr();bt();Ur();Vr();It=5e4,At=1e9,$r=1,Ee="logout",Gr="login",se="0"});var Le,vt=f(()=>{"use strict";o();Le=()=>Date.now()/1e3});var Hr=f(()=>{"use strict";o()});var Wr=f(()=>{"use strict";o()});var qr=f(()=>{"use strict";o();vt();Hr();Wr()});var Et={};X(Et,{getItem:()=>si,localStorageKeys:()=>te,removeItem:()=>ci,setItem:()=>ai});var te,kt,ai,si,ci,me=f(()=>{"use strict";o();qr();te={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},kt=typeof localStorage!="undefined",ai=({key:e,data:t,expires:r})=>{!kt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},si=e=>{if(!kt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Le()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ci=e=>{!kt||localStorage.removeItem(String(e))}});var Lt={};X(Lt,{clear:()=>Yr,getItem:()=>zr,removeItem:()=>Kr,setItem:()=>jr,storage:()=>li});var jr,zr,Kr,Yr,li,Zr=f(()=>{"use strict";o();jr=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},zr=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},Kr=e=>sessionStorage.removeItem(String(e)),Yr=()=>sessionStorage.clear(),li={setItem:jr,getItem:zr,removeItem:Kr,clear:Yr}});var ce,De=f(()=>{"use strict";o();me();Zr();ce={session:Lt,local:Et}});var Dt,v,Ne,q=f(()=>{"use strict";o();Dt=require("@reduxjs/toolkit");I();v=(0,Dt.createAction)(Ee),Ne=(0,Dt.createAction)(Gr,e=>({payload:e}))});var Rt,Xr,Qr,Re,Nt,Jr,en,$s,tn,Gs,Hs,Ws,qs,js,zs,Ks,Ce,Pe=f(()=>{"use strict";o();Rt=require("@multiversx/sdk-core"),Xr=require("@reduxjs/toolkit"),Qr=require("redux-persist");I();De();me();q();Re={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:se},Nt={address:"",websocketEvent:null,accounts:{"":Re},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Jr=(0,Xr.createSlice)({name:"accountInfoSlice",initialState:Nt,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Rt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Re},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(v,()=>(ce.local.removeItem(te.loginExpiresAt),Nt)),e.addCase(Ne,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new Rt.Address(n).hex()}),e.addCase(Qr.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:n}=r.payload,{address:i,shard:l,accounts:p,publicKey:g}=n;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Nt.accounts,t.publicKey=g})}}),{setAccount:en,setAddress:$s,setAccountNonce:tn,setAccountShard:Gs,setLedgerAccount:Hs,updateLedgerAccount:Ws,setWalletConnectAccount:qs,setIsAccountLoading:js,setAccountLoadingError:zs,setWebsocketEvent:Ks}=Jr.actions,Ce=Jr.reducer});function fe(){return new Date().setHours(new Date().getHours()+24)}function Te(e){ce.local.setItem({key:te.loginExpiresAt,data:e,expires:e})}var Ct=f(()=>{"use strict";o();De();me()});var nn,rn,on,oc,ic,ac,sc,cc,lc,an,pc,_e,Me=f(()=>{"use strict";o();nn=require("@reduxjs/toolkit");Ct();W();q();rn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},on=(0,nn.createSlice)({name:"loginInfoSlice",initialState:rn,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(v,()=>rn),e.addCase(Ne,(t,r)=>{t.loginMethod=r.payload.loginMethod,Te(fe())})}}),{setLoginMethod:oc,setWalletConnectLogin:ic,setLedgerLogin:ac,setTokenLogin:sc,setTokenLoginSignature:cc,setWalletLogin:lc,invalidateLoginSession:an,setLogoutRoute:pc}=on.actions,_e=on.reducer});var cn,sn,ln,mc,fc,Tc,yc,Oe,Fe=f(()=>{"use strict";o();cn=require("@reduxjs/toolkit");q();sn={},ln=(0,cn.createSlice)({name:"modalsSlice",initialState:sn,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(v,()=>sn)}}),{setTxSubmittedModal:mc,setNotificationModal:fc,clearTxSubmittedModal:Tc,clearNotificationModal:yc}=ln.actions,Oe=ln.reducer});var pn=f(()=>{"use strict";o()});var un=f(()=>{"use strict";o();pn()});function Pt(e){return e[Math.floor(Math.random()*e.length)]}var dn=f(()=>{"use strict";o()});var gn=f(()=>{"use strict";o();wt()});var mn=f(()=>{"use strict";o();un();dn();gn()});var fn,Tn,_t,ui,yn,Pc,_c,Be,Ue=f(()=>{"use strict";o();fn=require("@reduxjs/toolkit"),Tn=b(require("lodash.omit"));mn();_t={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ui={network:_t,chainID:"-1"},yn=(0,fn.createSlice)({name:"appConfig",initialState:ui,reducers:{initializeNetworkConfig:(e,t)=>{let r=Pt(t.payload.walletConnectBridgeAddresses),n=Pt(t.payload.walletConnectV2RelayAddresses),i=(0,Tn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Pc,setChainID:_c}=yn.actions,Be=yn.reducer});var hn,Mt,xn,Vc,$c,Gc,Ve,$e=f(()=>{"use strict";o();hn=require("@reduxjs/toolkit");N();q();Mt={isSigning:!1,signedSessions:{}},xn=(0,hn.createSlice)({name:"signedMessageInfoSliceState",initialState:Mt,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=n.status==="pending",e.signedSessions[r]=n},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Mt},extraReducers:e=>{e.addCase(v,()=>Mt)}}),{setSignSession:Vc,clearSignedMessageInfo:$c,setSignSessionState:Gc}=xn.actions,Ve=xn.reducer});var wn,bn,Sn,In,Zc,Xc,Qc,Jc,el,tl,Ge,He=f(()=>{"use strict";o();wn=require("@reduxjs/toolkit"),bn=require("redux-persist");bt();N();vt();q();Sn={customToasts:[],transactionToasts:[],failTransactionToast:null},In=(0,wn.createSlice)({name:"toastsSlice",initialState:Sn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(w(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Le(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=w(x({},t.payload),{toastId:Br})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(v,()=>Sn),e.addCase(bn.REHYDRATE,(t,r)=>{var i,l;let n=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=n})}}),{addCustomToast:Zc,removeCustomToast:Xc,addTransactionToast:Qc,removeTransactionToast:Jc,addFailTransactionToast:el,removeFailTransactionToast:tl}=In.actions,Ge=In.reducer});var An,Ft,Bt,Ut,di,Ot,vn,il,al,sl,We,qe=f(()=>{"use strict";o();An=require("@reduxjs/toolkit");q();Ft="Transaction failed",Bt="Transaction successful",Ut="Processing transaction",di="Transaction submitted",Ot={},vn=(0,An.createSlice)({name:"transactionsInfo",initialState:Ot,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||Ft,successMessage:(n==null?void 0:n.successMessage)||Bt,processingMessage:(n==null?void 0:n.processingMessage)||Ut,submittedMessage:(n==null?void 0:n.submittedMessage)||di,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Ot},extraReducers:e=>{e.addCase(v,()=>Ot)}}),{clearTransactionsInfo:il,setTransactionsDisplayInfo:al,clearTransactionsInfoForSessionId:sl}=vn.actions,We=vn.reducer});function kn(e){return e!=null&&(wi(e)||vi(e))}function ze(e){return e!=null&&(bi(e)||ki(e))}function Ke(e){return e!=null&&(Ii(e)||Ei(e))}function En(e){return e!=null&&Ai(e)}function wi(e){return e!=null&&mi.includes(e)}function bi(e){return e!=null&&fi.includes(e)}function Ii(e){return e!=null&&Ti.includes(e)}function Ai(e){return e!=null&&yi.includes(e)}function vi(e){return e!=null&&hi.includes(e)}function ki(e){return e!=null&&xi.includes(e)}function Ei(e){return e!=null&&Si.includes(e)}var mi,fi,Ti,yi,hi,xi,Si,Vt=f(()=>{"use strict";o();W();mi=["sent"],fi=["success"],Ti=["fail","cancelled","timedOut"],yi=["timedOut"],hi=["pending"],xi=["success"],Si=["fail","invalid"]});var Ln,Dn,ye,Li,Nn,Tl,yl,hl,xl,Sl,wl,bl,Il,Al,vl,Ye,Ze=f(()=>{"use strict";o();Ln=require("@reduxjs/toolkit"),Dn=require("redux-persist");W();Vt();q();ye={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Li={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Nn=(0,Ln.createSlice)({name:"transactionsSlice",initialState:ye,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,T;let{sessionId:r,transactions:n,errorMessage:i,status:l,redirectRoute:p}=t.payload,g=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||Li;e.signedTransactions[r]={transactions:n,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=ye.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:n,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=n,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var g,d,T,h,y,k;let{sessionId:r,status:n,errorMessage:i,transactionHash:l}=t.payload,p=(d=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(V=>V.hash===l?w(x({},V),{status:n,errorMessage:i}):V);let E=(h=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:h.every(V=>ze(V.status)),z=(k=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:k.every(V=>Ke(V.status));E&&(e.signedTransactions[r].status="success"),z&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:n}=t.payload;e.customTransactionInformationForSessionId[r]=n,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=ye.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=ye.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(v,()=>ye),e.addCase(Dn.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(n).reduce((g,[d,T])=>{let h=new Date(d),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(g[d]=T),g},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Tl,updateSignedTransactions:yl,setTransactionsToSign:hl,clearAllTransactionsToSign:xl,clearAllSignedTransactions:Sl,clearSignedTransaction:wl,clearTransactionToSign:bl,setSignTransactionsError:Il,setSignTransactionsCancelMessage:Al,moveTransactionsToSignedState:vl}=Nn.actions,Ye=Nn.reducer});var le=f(()=>{"use strict";o();Pe();Me();Fe();Ue();$e();He();qe();Ze()});var $t=f(()=>{"use strict";o()});var Mn,_n,On,Yl,Zl,Xl,Ql,Jl,ep,Fn,Bn=f(()=>{"use strict";o();Mn=require("@reduxjs/toolkit");q();_n={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},On=(0,Mn.createSlice)({name:"dappModalsSlice",initialState:_n,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(v,()=>_n)}}),{setDappModalVisibility:Yl,setDappModalHeaderVisibility:Zl,setDappModalFooterVisibility:Xl,setDappModalHeaderText:Ql,setDappModalFooterText:Jl,setDappModalConfig:ep}=On.actions,Fn=On.reducer});var Un,Ci,Pi,re,tt=f(()=>{"use strict";o();Un=require("@reduxjs/toolkit");$t();Pe();Bn();Me();Fe();Ue();$e();He();qe();Ze();Ci={["account"]:Ce,["dappModal"]:Fn,["loginInfo"]:_e,["modals"]:Oe,["networkConfig"]:Be,["signedMessageInfo"]:Ve,["toasts"]:Ge,["transactionsInfo"]:We,["transactions"]:Ye},Pi=(e={})=>(0,Un.combineReducers)(x(x({},Ci),e)),re=Pi});var Hn={};X(Hn,{default:()=>Ki,sessionStorageReducers:()=>Gt});function K(e,t=[]){return{key:e,version:1,storage:$n.default,blacklist:t}}var R,Vn,$n,_i,he,Mi,Oi,Fi,Bi,Ui,Vi,$i,Gi,Hi,Gn,Wi,Gt,qi,ji,zi,Ki,Wn=f(()=>{"use strict";o();R=require("redux-persist"),Vn=b(require("redux-persist/lib/storage")),$n=b(require("redux-persist/lib/storage/session"));tt();le();Pe();Me();Fe();Ue();$e();He();qe();Ze();$t();_i={persistReducersStorageType:"localStorage"},he={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Mi=K(he["account"]),Oi=K(he["loginInfo"]),Fi=K(he["modals"]),Bi=K(he["networkConfig"]),Ui={2:e=>w(x({},e),{networkConfig:_t})};Vi=K("sdk-dapp-transactionsInfo"),$i=K("sdk-dapp-transactions",["transactionsToSign"]),Gi=K("sdk-dapp-toasts"),Hi=K("sdk-dapp-signedMessageInfo"),Gn={key:"sdk-dapp-store",version:2,storage:Vn.default,whitelist:Object.keys(he),migrate:(0,R.createMigrate)(Ui,{debug:!1})},Wi=w(x({},Gn),{whitelist:[]}),Gt={["toasts"]:(0,R.persistReducer)(Gi,Ge),["transactions"]:(0,R.persistReducer)($i,Ye),["transactionsInfo"]:(0,R.persistReducer)(Vi,We),["signedMessageInfo"]:(0,R.persistReducer)(Hi,Ve)},qi=w(x({},Gt),{["account"]:(0,R.persistReducer)(Mi,Ce),["loginInfo"]:(0,R.persistReducer)(Oi,_e),["modals"]:(0,R.persistReducer)(Fi,Oe),["networkConfig"]:(0,R.persistReducer)(Bi,Be)}),ji=_i.persistReducersStorageType==="localStorage",zi=ji?(0,R.persistReducer)(Gn,re(Gt)):(0,R.persistReducer)(Wi,re(qi)),Ki=zi});var qn={};X(qn,{default:()=>Yi});var Yi,jn=f(()=>{"use strict";o();tt();Yi=re()});var zn={};X(zn,{default:()=>Xi});var _,Zi,Xi,Kn=f(()=>{"use strict";o();_=require("redux-persist"),Zi=[_.FLUSH,_.REHYDRATE,_.PAUSE,_.PERSIST,_.PURGE,_.REGISTER],Xi=Zi});var Xn={};X(Xn,{default:()=>Zn});function Zn(e){return(0,Yn.persistStore)(e)}var Yn,Qn=f(()=>{"use strict";o();Yn=require("redux-persist")});var _a={};X(_a,{useGetLastPendingTransactionHash:()=>Pa});module.exports=ge(_a);o();o();o();var oo=require("react"),ue=require("react-redux");o();var Ht=require("@reduxjs/toolkit"),ro=require("react-redux/lib/utils/Subscription");le();o();var Cn=b(require("lodash.throttle"));I();o();var Rn=b(require("lodash.isequal")),Xe=require("reselect");N();var m=(0,Xe.createSelectorCreator)(Xe.defaultMemoize,Rn.default),Qe=(e,t)=>e!=""&&Boolean(t);le();Ct();De();me();var Di=[Ee],Je=!1,Ni=(0,Cn.default)(()=>{Te(fe())},5e3),Pn=e=>t=>r=>{var d;if(Di.includes(r.type))return t(r);let n=e.getState(),i=ce.local.getItem(te.loginExpiresAt);if(!Qe((d=n==null?void 0:n.loginInfo)==null?void 0:d.loginMethod,n==null?void 0:n.account.address))return t(r);if(i==null)return Te(fe());let p=Date.now();return i-p<0&&!Je?setTimeout(()=>{Je=!0,e.dispatch(an())},1e3):(Je&&(Je=!1),Ni()),t(r)};o();o();function et(){return typeof sessionStorage!="undefined"}var Jn=et()?(Wn(),ge(Hn)).default:(jn(),ge(qn)).default,eo=et()?(Kn(),ge(zn)).default:[],to=et()?(Qn(),ge(Xn)).default:e=>e;tt();var pe=(0,Ht.configureStore)({reducer:Jn,middleware:e=>e({serializableCheck:{ignoredActions:[...eo,tn.type,en.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Pn)}),no=(0,ro.createSubscription)(pe),Rp=to(pe),Cp=(0,Ht.configureStore)({reducer:re});var Qi={store:pe,subscription:no},Wt=(0,oo.createContext)(Qi),Op=(0,ue.createStoreHook)(Wt),Fp=(0,ue.createDispatchHook)(Wt),io=(0,ue.createSelectorHook)(Wt);o();o();le();var j=e=>e.account,qt=m(j,e=>e.address),jt=m(j,qt,(e,t)=>t in e.accounts?e.accounts[t]:Re),$p=m(j,jt,(e,t)=>{let i=e,{accounts:r}=i,n=tr(i,["accounts"]);return w(x({},n),{account:t})}),Gp=m(jt,e=>e.balance),Hp=m(jt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Wp=m(j,e=>e.shard),qp=m(j,e=>e.ledgerAccount),jp=m(j,e=>e.walletConnectAccount),zp=m(j,e=>e.isAccountLoading),Kp=m(j,e=>e.accountLoadingError),Yp=m(j,e=>e.websocketEvent);o();var Y=e=>e.loginInfo,Jp=m(Y,e=>e.loginMethod),eu=m(Y,qt,(e,t)=>Qe(e.loginMethod,t)),tu=m(Y,e=>e.walletConnectLogin),ru=m(Y,e=>e.ledgerLogin),nu=m(Y,e=>e.walletLogin),ou=m(Y,e=>e.isLoginSessionInvalid),iu=m(Y,e=>e.tokenLogin),au=m(Y,e=>e.logoutRoute);o();var ao=e=>e.modals,lu=m(ao,e=>e.txSubmittedModal),pu=m(ao,e=>e.notificationModal);o();var ne=e=>e.networkConfig,gu=m(ne,e=>e.chainID),mu=m(ne,e=>e.network.walletConnectBridgeAddress),fu=m(ne,e=>e.network.walletConnectV2RelayAddress),Tu=m(ne,e=>e.network.walletConnectV2ProjectId),yu=m(ne,e=>e.network.walletConnectV2Options),hu=m(ne,e=>e.network.walletConnectDeepLink),zt=m(ne,e=>e.network),xu=m(zt,e=>e.apiAddress),so=m(zt,e=>e.explorerAddress),Su=m(zt,e=>e.egldLabel);o();var rt=e=>e.signedMessageInfo,Iu=m(rt,e=>e.isSigning),Au=m(rt,e=>e.errorMessage),vu=m(rt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),ku=m(rt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});o();var Kt=e=>e.toasts,Du=m(Kt,e=>e.customToasts),Nu=m(Kt,e=>e.transactionToasts),Ru=m(Kt,e=>e.failTransactionToast);o();le();var co={errorMessage:Ft,successMessage:Bt,processingMessage:Ut},Ji=e=>e.transactionsInfo,Mu=m(Ji,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||co);o();o();var C=require("@multiversx/sdk-core");I();o();function Yt(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Zt(e){var i,l,p;let{data:t}=e,r=Yt(t!=null?t:"")?C.TransactionPayload.fromEncoded(t):new C.TransactionPayload(t),n=new C.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new C.Address(e.receiver),sender:new C.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:It,gasPrice:(l=e.gasPrice.valueOf())!=null?l:At,chainID:e.chainID.valueOf(),version:new C.TransactionVersion((p=e.version)!=null?p:$r)},e.options?{options:new C.TransactionOptions(e.options)}:{}));return n.applySignature({hex:()=>e.signature||""},new C.Address(e.sender)),n}o();o();o();o();o();var ta=require("@multiversx/sdk-core/out");o();I();o();var po=require("@multiversx/sdk-core");N();o();var ra=require("@multiversx/sdk-core");o();o();o();var oa=require("@multiversx/sdk-core"),ia=b(require("bignumber.js"));W();o();o();o();o();o();o();o();o();o();D();o();o();D();o();o();o();var ua=b(require("bignumber.js"));I();o();var pa=require("@multiversx/sdk-core"),Xt=b(require("bignumber.js"));I();o();var ca=b(require("bignumber.js"));o();Xt.default.config({ROUNDING_MODE:Xt.default.ROUND_FLOOR});o();o();o();I();o();o();o();o();I();o();I();o();var da=require("@multiversx/sdk-core");I();o();var xe=require("@multiversx/sdk-core"),ma=require("@multiversx/sdk-network-providers");I();o();o();var ga=b(require("bignumber.js"));I();o();I();o();o();o();o();o();I();o();D();var Ta=["reDelegateRewards","claimRewards","unBond"],ya=["wrapEgld","unwrapEgld"],ha=["unStake"],xa=["unDelegate"];o();o();o();I();o();var ba=b(require("bignumber.js"));o();o();o();o();D();o();var Ia=b(require("bignumber.js"));o();o();o();var va=b(require("bignumber.js"));N();o();o();o();o();W();o();o();o();o();D();o();o();o();var ka=b(require("linkifyjs"));o();I();o();var Ea=b(require("bignumber.js"));o();N();o();o();W();o();W();o();o();o();D();o();D();o();var La=b(require("bignumber.js"));I();D();o();D();o();var ho=require("react");N();o();o();D();o();o();var Da=require("@multiversx/sdk-core/out"),Na=b(require("bignumber.js"));D();o();N();o();o();N();var by=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var xo=require("react");N();o();var Ca=require("react");D();var Dy=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Vt();var at=e=>e.transactions,Se=m(at,e=>e.signedTransactions),gh=m(at,e=>e.signTransactionsError),mh=m(at,e=>e.signTransactionsCancelMessage),st=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),So=m(Se,st(kn)),fh=m(Se,st(ze)),Th=m(Se,st(Ke)),yh=m(Se,st(En)),hh=m(at,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Zt(r)))||[]})}),xh=m(Se,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function wo(){let e=io(So),t=Object.entries(e),r=(t==null?void 0:t.length)>0;return{pendingTransactions:e,pendingTransactionsArray:t,hasPendingTransactions:r}}N();var Pa=()=>{var n,i;let{hasPendingTransactions:e,pendingTransactions:t}=wo();if(!e)return"";let r=Object.keys(t).sort().reverse();for(let l of r){let g=(i=(n=t[l].transactions)==null?void 0:n.filter(d=>d.status==="pending"))!=null?i:[];if(g.length>0)return g[g.length-1].hash}return""};0&&(module.exports={useGetLastPendingTransactionHash});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Wr=Object.create;var P=Object.defineProperty,Yr=Object.defineProperties,zr=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,Xr=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable;var pr=(t,r,e)=>r in t?P(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,lr=(t,r)=>{for(var e in r||(r={}))cr.call(r,e)&&pr(t,e,r[e]);if(ur)for(var e of ur(r))Vr.call(r,e)&&pr(t,e,r[e]);return t},fr=(t,r)=>Yr(t,$r(r));var Jr=(t,r)=>()=>(t&&(r=t(t=0)),r);var O=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Kr=(t,r)=>{for(var e in r)P(t,e,{get:r[e],enumerable:!0})},gr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Qr(r))!cr.call(t,i)&&i!==e&&P(t,i,{get:()=>r[i],enumerable:!(n=zr(r,i))||n.enumerable});return t};var H=(t,r,e)=>(e=t!=null?Wr(Xr(t)):{},gr(r||!t||!t.__esModule?P(e,"default",{value:t,enumerable:!0}):e,t)),jr=t=>gr(P({},"__esModule",{value:!0}),t);var yr=O(G=>{"use strict";f();G.byteLength=re;G.toByteArray=te;G.fromByteArray=ae;var I=[],F=[],Zr=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(E=0,hr=Q.length;E<hr;++E)I[E]=Q[E],F[Q.charCodeAt(E)]=E;var E,hr;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function dr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function re(t){var r=dr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function ee(t,r,e){return(r+e)*3/4-e}function te(t){var r,e=dr(t),n=e[0],i=e[1],a=new Zr(ee(t,n,i)),o=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=F[t.charCodeAt(p)]<<18|F[t.charCodeAt(p+1)]<<12|F[t.charCodeAt(p+2)]<<6|F[t.charCodeAt(p+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=F[t.charCodeAt(p)]<<2|F[t.charCodeAt(p+1)]>>4,a[o++]=r&255),i===1&&(r=F[t.charCodeAt(p)]<<10|F[t.charCodeAt(p+1)]<<4|F[t.charCodeAt(p+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function ne(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function ie(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(ne(n));return i.join("")}function ae(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,u=e-n;o<u;o+=a)i.push(ie(t,o,o+a>u?u:o+a));return n===1?(r=t[e-1],i.push(I[r>>2]+I[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(I[r>>10]+I[r>>4&63]+I[r<<2&63]+"=")),i.join("")}});var mr=O(X=>{f();X.read=function(t,r,e,n,i){var a,o,u=i*8-n-1,p=(1<<u)-1,l=p>>1,g=-7,c=e?i-1:0,d=e?-1:1,h=t[r+c];for(c+=d,a=h&(1<<-g)-1,h>>=-g,g+=u;g>0;a=a*256+t[r+c],c+=d,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[r+c],c+=d,g-=8);if(a===0)a=1-l;else{if(a===p)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(h?-1:1)*o*Math.pow(2,a-n)};X.write=function(t,r,e,n,i,a){var o,u,p,l=a*8-i-1,g=(1<<l)-1,c=g>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,v=n?1:-1,$=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=g):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+c>=1?r+=d/p:r+=d*Math.pow(2,1-c),r*p>=2&&(o++,p/=2),o+c>=g?(u=0,o=g):o+c>=1?(u=(r*p-1)*Math.pow(2,i),o=o+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[e+h]=u&255,h+=v,u/=256,i-=8);for(o=o<<i|u,l+=i;l>0;t[e+h]=o&255,h+=v,o/=256,l-=8);t[e+h-v]|=$*128}});var _r=O(C=>{"use strict";f();var V=yr(),L=mr(),xr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;C.Buffer=s;C.SlowBuffer=le;C.INSPECT_MAX_BYTES=50;var q=2147483647;C.kMaxLength=q;s.TYPED_ARRAY_SUPPORT=oe();!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 oe(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){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>q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(t)}return vr(t,r,e)}s.poolSize=8192;function vr(t,r,e){if(typeof t=="string")return ue(t,r);if(ArrayBuffer.isView(t))return pe(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(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(S(t,SharedArrayBuffer)||t&&S(t.buffer,SharedArrayBuffer)))return K(t,r,e);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,r,e);var i=ce(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);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,r,e){return vr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function kr(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 se(t,r,e){return kr(t),t<=0?A(t):r!==void 0?typeof e=="string"?A(t).fill(r,e):A(t).fill(r):A(t)}s.alloc=function(t,r,e){return se(t,r,e)};function Z(t){return kr(t),A(t<0?0:rr(t)|0)}s.allocUnsafe=function(t){return Z(t)};s.allocUnsafeSlow=function(t){return Z(t)};function ue(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=Fr(t,r)|0,n=A(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function J(t){for(var r=t.length<0?0:rr(t.length)|0,e=A(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function pe(t){if(S(t,Uint8Array)){var r=new Uint8Array(t);return K(r.buffer,r.byteOffset,r.byteLength)}return J(t)}function K(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function ce(t){if(s.isBuffer(t)){var r=rr(t.length)|0,e=A(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||er(t.length)?A(0):J(t);if(t.type==="Buffer"&&Array.isArray(t.data))return J(t.data)}function rr(t){if(t>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return t|0}function le(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(S(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),S(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).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(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(S(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 Fr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(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 e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Rr(t).length;default:if(i)return n?-1:j(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=Fr;function fe(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ke(this,r,e);case"utf8":case"utf-8":return Sr(this,r,e);case"ascii":return we(this,r,e);case"latin1":case"binary":return ve(this,r,e);case"base64":return xe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function D(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)D(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)D(this,e,e+3),D(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)D(this,e,e+7),D(this,e+1,e+6),D(this,e+2,e+5),D(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Sr(this,0,r):fe.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=C.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};xr&&(s.prototype[xr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(S(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=n-e,p=Math.min(o,u),l=this.slice(i,a),g=r.slice(e,n),c=0;c<p;++c)if(l[c]!==g[c]){o=l[c],u=g[c];break}return o<u?-1:u<o?1:0};function Ir(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,er(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:Tr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):Tr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function Tr(t,r,e,n,i){var a=1,o=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,u/=2,e/=2}function p(h,v){return a===1?h[v]:h.readUInt16BE(v*a)}var l;if(i){var g=-1;for(l=e;l<o;l++)if(p(t,l)===p(r,g===-1?0:l-g)){if(g===-1&&(g=l),l-g+1===u)return g*a}else g!==-1&&(l-=l-g),g=-1}else for(e+u>o&&(e=o-u),l=e;l>=0;l--){for(var c=!0,d=0;d<u;d++)if(p(t,l+d)!==p(r,d)){c=!1;break}if(c)return l}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return Ir(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return Ir(this,r,e,n,!1)};function ge(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var u=parseInt(r.substr(o*2,2),16);if(er(u))return o;t[e+o]=u}return o}function he(t,r,e,n){return W(j(r,t.length-e),t,e,n)}function de(t,r,e,n){return W(be(r),t,e,n)}function ye(t,r,e,n){return W(Rr(r),t,e,n)}function me(t,r,e,n){return W(Be(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>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-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return ge(this,r,e,n);case"utf8":case"utf-8":return he(this,r,e,n);case"ascii":case"latin1":case"binary":return de(this,r,e,n);case"base64":return ye(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,r,e,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 xe(t,r,e){return r===0&&e===t.length?V.fromByteArray(t):V.fromByteArray(t.slice(r,e))}function Sr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=e){var p,l,g,c;switch(u){case 1:a<128&&(o=a);break;case 2:p=t[i+1],(p&192)===128&&(c=(a&31)<<6|p&63,c>127&&(o=c));break;case 3:p=t[i+1],l=t[i+2],(p&192)===128&&(l&192)===128&&(c=(a&15)<<12|(p&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:p=t[i+1],l=t[i+2],g=t[i+3],(p&192)===128&&(l&192)===128&&(g&192)===128&&(c=(a&15)<<18|(p&63)<<12|(l&63)<<6|g&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=u}return Te(n)}var wr=4096;function Te(t){var r=t.length;if(r<=wr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=wr));return e}function we(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ve(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ke(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=Ae[t[a]];return i}function Fe(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function w(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),L.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),L.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),L.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),L.read(this,r,!1,52,8)};function k(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;k(this,r,e,n,a,0)}var o=1,u=0;for(this[e]=r&255;++u<n&&(o*=256);)this[e+u]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;k(this,r,e,n,a,0)}var o=n-1,u=1;for(this[e+o]=r&255;--o>=0&&(u*=256);)this[e+o]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);k(this,r,e,n,a-1,-a)}var o=0,u=1,p=0;for(this[e]=r&255;++o<n&&(u*=256);)r<0&&p===0&&this[e+o-1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);k(this,r,e,n,a-1,-a)}var o=n-1,u=1,p=0;for(this[e+o]=r&255;--o>=0&&(u*=256);)r<0&&p===0&&this[e+o+1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function br(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Br(t,r,e,n,i){return r=+r,e=e>>>0,i||br(t,r,e,4,34028234663852886e22,-34028234663852886e22),L.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return Br(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return Br(this,r,e,!1,n)};function Ar(t,r,e,n,i){return r=+r,e=e>>>0,i||br(t,r,e,8,17976931348623157e292,-17976931348623157e292),L.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return Ar(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return Ar(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<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),r.length-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=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(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=u[o%p]}return this};var Ie=/[^+/0-9A-Za-z-_]/g;function Se(t){if(t=t.split("=")[0],t=t.trim().replace(Ie,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function j(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function be(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Be(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function Rr(t){return V.toByteArray(Se(t))}function W(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function S(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function er(t){return t!==t}var Ae=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Cr=O((He,Lr)=>{f();var x=Lr.exports={},b,B;function tr(){throw new Error("setTimeout has not been defined")}function nr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=tr}catch(t){b=tr}try{typeof clearTimeout=="function"?B=clearTimeout:B=nr}catch(t){B=nr}})();function Er(t){if(b===setTimeout)return setTimeout(t,0);if((b===tr||!b)&&setTimeout)return b=setTimeout,setTimeout(t,0);try{return b(t,0)}catch(r){try{return b.call(null,t,0)}catch(e){return b.call(this,t,0)}}}function Re(t){if(B===clearTimeout)return clearTimeout(t);if((B===nr||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(r){try{return B.call(null,t)}catch(e){return B.call(this,t)}}}var R=[],N=!1,U,Y=-1;function _e(){!N||!U||(N=!1,U.length?R=U.concat(R):Y=-1,R.length&&Dr())}function Dr(){if(!N){var t=Er(_e);N=!0;for(var r=R.length;r;){for(U=R,R=[];++Y<r;)U&&U[Y].run();Y=-1,r=R.length}U=null,N=!1,Re(t)}}x.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];R.push(new Ur(t,r)),R.length===1&&!N&&Er(Dr)};function Ur(t,r){this.fun=t,this.array=r}Ur.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function _(){}x.on=_;x.addListener=_;x.once=_;x.off=_;x.removeListener=_;x.removeAllListeners=_;x.emit=_;x.prependListener=_;x.prependOnceListener=_;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var y,m,Ge,f=Jr(()=>{y=H(_r()),m=H(Cr()),Ge=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Ce={};Kr(Ce,{useParseMultiEsdtTransferData:()=>Le});module.exports=jr(Ce);f();var M=require("react");f();var ar=require("@multiversx/sdk-core"),or=H(require("bignumber.js"));f();f();var Nr=require("@multiversx/sdk-core");function Ee(t){try{let r=new Nr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Pr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&Ee(t)}f();f();function Mr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function z(t){let r=t;try{let e=y.Buffer.from(t,"hex").toString();Mr(e)&&e.length>1&&(r=e)}catch(e){}return r}var ir={tokenId:"",amount:""},Ue=t=>t.split("@").map((a,o)=>[2,3].includes(o)?a:z(a));function Or(t){if(!t)return ir;let r=t.startsWith("ESDTTransfer"),e=t.startsWith("ESDTNFTTransfer")&&t.includes("@");if(r){let[,n,i]=t.split("@");try{let a=y.Buffer.from(n,"hex").toString("ascii");if(!a)return ir;let o=new or.default("0x"+i.replace("0x","")).toString(10);return{tokenId:a,amount:o}}catch(a){console.error("Error getting token from transaction data",a)}}if(e)try{let[,n,i,a,o]=Ue(t);if([n,i,a,o].every(u=>Boolean(u))&&Pr(new ar.Address(o).bech32()))return{tokenId:`${n}-${i}`,amount:new or.default(a,16).toString(10),collection:n,nonce:i,receiver:new ar.Address(o).bech32()}}catch(n){}return ir}f();var sr=H(require("bignumber.js"));f();f();f();f();f();f();f();f();f();f();var Hr=(t,r)=>{let e=[],n=t.indexOf(r,0);for(;n>=0;)e.push(n),n=t.indexOf(r,n+1);return e};function Gr(t){let r=[],e=0;try{if((t==null?void 0:t.startsWith("MultiESDTNFTTransfer"))&&(t==null?void 0:t.includes("@"))){let[,n,i,...a]=t==null?void 0:t.split("@");if(n){let o=new sr.default(i,16).toNumber(),u=0;for(let c=0;c<o;c++){let d={type:"nftTransaction",data:"",receiver:n};for(let h=0;h<3;h++){switch(h){case 0:d.token=z(a[u]),d.data=a[u];break;case 1:{let v=a[u]&&a[u].length?a[u]:"";v&&v!=="00"?d.nonce=v:d.type="esdtTransaction",d.data=`${d.data}@${a[u]}`;break}case 2:d.amount=new sr.default(a[u],16).toString(10),d.data=`${d.data}@${a[u]}`;break;default:break}e=u+1,u++}r[c]=d}let p=r.length!==o,l=r.some(c=>Hr(c.data,"@").length!==2),g=r.some(c=>c.data.startsWith("@"));if(p||l||g)return[];if(a[e]){let c=a[e];for(let d=e+1;d<a.length;d++)c+="@"+a[d];r[o]={type:"scCall",data:c,receiver:n}}}}}catch(n){return console.error("failed parsing tx",n),r}return r}var qr={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Le({transactions:t}){let[r,e]=(0,M.useState)({}),[n,i]=(0,M.useState)([]);function a(p,l){e(g=>fr(lr({},g),{[p]:l}))}function o(p,l){return r==null?qr:p in r?r[p]:l!=null&&String(l)in r?r[l]:qr}function u(){if(t&&t.length>0){let p=[];t.forEach((l,g)=>{let c=l.getData().toString(),d=Gr(c);if(d.length>0)d.forEach((h,v)=>{let $={transaction:l,multiTxData:h.data,transactionIndex:v};a(h.data,{tokenId:h.token?h.token:"",amount:h.amount?h.amount:"",type:h.type,nonce:h.nonce?h.nonce:"",multiTxData:h.data,receiver:h.receiver}),p.push($)});else{let{tokenId:h,amount:v}=Or(l.getData().toString());h&&a(l.getData().toString(),{tokenId:h,amount:v,receiver:l.getReceiver().bech32()}),p.push({transaction:l,transactionIndex:g})}}),i(p)}}return(0,M.useEffect)(()=>{u()},[t==null?void 0:t.length]),{parsedTransactionsByDataField:r,getTxInfoByDataField:o,allTransactions:n}}0&&(module.exports={useParseMultiEsdtTransferData});
1
+ "use strict";var Wr=Object.create;var P=Object.defineProperty,Yr=Object.defineProperties,zr=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,Vr=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable;var pr=(t,r,e)=>r in t?P(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,lr=(t,r)=>{for(var e in r||(r={}))cr.call(r,e)&&pr(t,e,r[e]);if(ur)for(var e of ur(r))Xr.call(r,e)&&pr(t,e,r[e]);return t},fr=(t,r)=>Yr(t,$r(r));var Jr=(t,r)=>()=>(t&&(r=t(t=0)),r);var O=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Kr=(t,r)=>{for(var e in r)P(t,e,{get:r[e],enumerable:!0})},gr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Qr(r))!cr.call(t,i)&&i!==e&&P(t,i,{get:()=>r[i],enumerable:!(n=zr(r,i))||n.enumerable});return t};var H=(t,r,e)=>(e=t!=null?Wr(Vr(t)):{},gr(r||!t||!t.__esModule?P(e,"default",{value:t,enumerable:!0}):e,t)),jr=t=>gr(P({},"__esModule",{value:!0}),t);var yr=O(G=>{"use strict";f();G.byteLength=re;G.toByteArray=te;G.fromByteArray=ae;var I=[],F=[],Zr=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(D=0,hr=Q.length;D<hr;++D)I[D]=Q[D],F[Q.charCodeAt(D)]=D;var D,hr;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function dr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function re(t){var r=dr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function ee(t,r,e){return(r+e)*3/4-e}function te(t){var r,e=dr(t),n=e[0],i=e[1],a=new Zr(ee(t,n,i)),o=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=F[t.charCodeAt(p)]<<18|F[t.charCodeAt(p+1)]<<12|F[t.charCodeAt(p+2)]<<6|F[t.charCodeAt(p+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=F[t.charCodeAt(p)]<<2|F[t.charCodeAt(p+1)]>>4,a[o++]=r&255),i===1&&(r=F[t.charCodeAt(p)]<<10|F[t.charCodeAt(p+1)]<<4|F[t.charCodeAt(p+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function ne(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function ie(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(ne(n));return i.join("")}function ae(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,u=e-n;o<u;o+=a)i.push(ie(t,o,o+a>u?u:o+a));return n===1?(r=t[e-1],i.push(I[r>>2]+I[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(I[r>>10]+I[r>>4&63]+I[r<<2&63]+"=")),i.join("")}});var mr=O(V=>{f();V.read=function(t,r,e,n,i){var a,o,u=i*8-n-1,p=(1<<u)-1,l=p>>1,g=-7,c=e?i-1:0,d=e?-1:1,h=t[r+c];for(c+=d,a=h&(1<<-g)-1,h>>=-g,g+=u;g>0;a=a*256+t[r+c],c+=d,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[r+c],c+=d,g-=8);if(a===0)a=1-l;else{if(a===p)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(h?-1:1)*o*Math.pow(2,a-n)};V.write=function(t,r,e,n,i,a){var o,u,p,l=a*8-i-1,g=(1<<l)-1,c=g>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,v=n?1:-1,$=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=g):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+c>=1?r+=d/p:r+=d*Math.pow(2,1-c),r*p>=2&&(o++,p/=2),o+c>=g?(u=0,o=g):o+c>=1?(u=(r*p-1)*Math.pow(2,i),o=o+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[e+h]=u&255,h+=v,u/=256,i-=8);for(o=o<<i|u,l+=i;l>0;t[e+h]=o&255,h+=v,o/=256,l-=8);t[e+h-v]|=$*128}});var Er=O(C=>{"use strict";f();var X=yr(),L=mr(),xr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;C.Buffer=s;C.SlowBuffer=le;C.INSPECT_MAX_BYTES=50;var q=2147483647;C.kMaxLength=q;s.TYPED_ARRAY_SUPPORT=oe();!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 oe(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){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>q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(t)}return vr(t,r,e)}s.poolSize=8192;function vr(t,r,e){if(typeof t=="string")return ue(t,r);if(ArrayBuffer.isView(t))return pe(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(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(S(t,SharedArrayBuffer)||t&&S(t.buffer,SharedArrayBuffer)))return K(t,r,e);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,r,e);var i=ce(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);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,r,e){return vr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function kr(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 se(t,r,e){return kr(t),t<=0?A(t):r!==void 0?typeof e=="string"?A(t).fill(r,e):A(t).fill(r):A(t)}s.alloc=function(t,r,e){return se(t,r,e)};function Z(t){return kr(t),A(t<0?0:rr(t)|0)}s.allocUnsafe=function(t){return Z(t)};s.allocUnsafeSlow=function(t){return Z(t)};function ue(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=Fr(t,r)|0,n=A(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function J(t){for(var r=t.length<0?0:rr(t.length)|0,e=A(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function pe(t){if(S(t,Uint8Array)){var r=new Uint8Array(t);return K(r.buffer,r.byteOffset,r.byteLength)}return J(t)}function K(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function ce(t){if(s.isBuffer(t)){var r=rr(t.length)|0,e=A(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||er(t.length)?A(0):J(t);if(t.type==="Buffer"&&Array.isArray(t.data))return J(t.data)}function rr(t){if(t>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return t|0}function le(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(S(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),S(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).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(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(S(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 Fr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(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 e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Rr(t).length;default:if(i)return n?-1:j(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=Fr;function fe(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ke(this,r,e);case"utf8":case"utf-8":return Sr(this,r,e);case"ascii":return we(this,r,e);case"latin1":case"binary":return ve(this,r,e);case"base64":return xe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function _(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)_(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)_(this,e,e+3),_(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)_(this,e,e+7),_(this,e+1,e+6),_(this,e+2,e+5),_(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Sr(this,0,r):fe.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=C.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};xr&&(s.prototype[xr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(S(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=n-e,p=Math.min(o,u),l=this.slice(i,a),g=r.slice(e,n),c=0;c<p;++c)if(l[c]!==g[c]){o=l[c],u=g[c];break}return o<u?-1:u<o?1:0};function Ir(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,er(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:Tr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):Tr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function Tr(t,r,e,n,i){var a=1,o=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,u/=2,e/=2}function p(h,v){return a===1?h[v]:h.readUInt16BE(v*a)}var l;if(i){var g=-1;for(l=e;l<o;l++)if(p(t,l)===p(r,g===-1?0:l-g)){if(g===-1&&(g=l),l-g+1===u)return g*a}else g!==-1&&(l-=l-g),g=-1}else for(e+u>o&&(e=o-u),l=e;l>=0;l--){for(var c=!0,d=0;d<u;d++)if(p(t,l+d)!==p(r,d)){c=!1;break}if(c)return l}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return Ir(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return Ir(this,r,e,n,!1)};function ge(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var u=parseInt(r.substr(o*2,2),16);if(er(u))return o;t[e+o]=u}return o}function he(t,r,e,n){return W(j(r,t.length-e),t,e,n)}function de(t,r,e,n){return W(be(r),t,e,n)}function ye(t,r,e,n){return W(Rr(r),t,e,n)}function me(t,r,e,n){return W(Be(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>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-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return ge(this,r,e,n);case"utf8":case"utf-8":return he(this,r,e,n);case"ascii":case"latin1":case"binary":return de(this,r,e,n);case"base64":return ye(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,r,e,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 xe(t,r,e){return r===0&&e===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(r,e))}function Sr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=e){var p,l,g,c;switch(u){case 1:a<128&&(o=a);break;case 2:p=t[i+1],(p&192)===128&&(c=(a&31)<<6|p&63,c>127&&(o=c));break;case 3:p=t[i+1],l=t[i+2],(p&192)===128&&(l&192)===128&&(c=(a&15)<<12|(p&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:p=t[i+1],l=t[i+2],g=t[i+3],(p&192)===128&&(l&192)===128&&(g&192)===128&&(c=(a&15)<<18|(p&63)<<12|(l&63)<<6|g&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=u}return Te(n)}var wr=4096;function Te(t){var r=t.length;if(r<=wr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=wr));return e}function we(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ve(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ke(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=Ae[t[a]];return i}function Fe(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function w(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),L.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),L.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),L.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),L.read(this,r,!1,52,8)};function k(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;k(this,r,e,n,a,0)}var o=1,u=0;for(this[e]=r&255;++u<n&&(o*=256);)this[e+u]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;k(this,r,e,n,a,0)}var o=n-1,u=1;for(this[e+o]=r&255;--o>=0&&(u*=256);)this[e+o]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);k(this,r,e,n,a-1,-a)}var o=0,u=1,p=0;for(this[e]=r&255;++o<n&&(u*=256);)r<0&&p===0&&this[e+o-1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);k(this,r,e,n,a-1,-a)}var o=n-1,u=1,p=0;for(this[e+o]=r&255;--o>=0&&(u*=256);)r<0&&p===0&&this[e+o+1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function br(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Br(t,r,e,n,i){return r=+r,e=e>>>0,i||br(t,r,e,4,34028234663852886e22,-34028234663852886e22),L.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return Br(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return Br(this,r,e,!1,n)};function Ar(t,r,e,n,i){return r=+r,e=e>>>0,i||br(t,r,e,8,17976931348623157e292,-17976931348623157e292),L.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return Ar(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return Ar(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<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),r.length-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=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(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=u[o%p]}return this};var Ie=/[^+/0-9A-Za-z-_]/g;function Se(t){if(t=t.split("=")[0],t=t.trim().replace(Ie,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function j(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function be(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Be(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function Rr(t){return X.toByteArray(Se(t))}function W(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function S(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function er(t){return t!==t}var Ae=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Cr=O((He,Lr)=>{f();var x=Lr.exports={},b,B;function tr(){throw new Error("setTimeout has not been defined")}function nr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=tr}catch(t){b=tr}try{typeof clearTimeout=="function"?B=clearTimeout:B=nr}catch(t){B=nr}})();function Dr(t){if(b===setTimeout)return setTimeout(t,0);if((b===tr||!b)&&setTimeout)return b=setTimeout,setTimeout(t,0);try{return b(t,0)}catch(r){try{return b.call(null,t,0)}catch(e){return b.call(this,t,0)}}}function Re(t){if(B===clearTimeout)return clearTimeout(t);if((B===nr||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(r){try{return B.call(null,t)}catch(e){return B.call(this,t)}}}var R=[],N=!1,U,Y=-1;function Ee(){!N||!U||(N=!1,U.length?R=U.concat(R):Y=-1,R.length&&_r())}function _r(){if(!N){var t=Dr(Ee);N=!0;for(var r=R.length;r;){for(U=R,R=[];++Y<r;)U&&U[Y].run();Y=-1,r=R.length}U=null,N=!1,Re(t)}}x.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];R.push(new Ur(t,r)),R.length===1&&!N&&Dr(_r)};function Ur(t,r){this.fun=t,this.array=r}Ur.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function E(){}x.on=E;x.addListener=E;x.once=E;x.off=E;x.removeListener=E;x.removeAllListeners=E;x.emit=E;x.prependListener=E;x.prependOnceListener=E;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var y,m,Ge,f=Jr(()=>{y=H(Er()),m=H(Cr()),Ge=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Ce={};Kr(Ce,{useParseMultiEsdtTransferData:()=>Le});module.exports=jr(Ce);f();var M=require("react");f();var ar=require("@multiversx/sdk-core"),or=H(require("bignumber.js"));f();f();var Nr=require("@multiversx/sdk-core");function De(t){try{let r=new Nr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Pr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&De(t)}f();f();function Mr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function z(t){let r=t;try{let e=y.Buffer.from(t,"hex").toString();Mr(e)&&e.length>1&&(r=e)}catch(e){}return r}var ir={tokenId:"",amount:""},Ue=t=>t.split("@").map((a,o)=>[2,3].includes(o)?a:z(a));function Or(t){if(!t)return ir;let r=t.startsWith("ESDTTransfer"),e=t.startsWith("ESDTNFTTransfer")&&t.includes("@");if(r){let[,n,i]=t.split("@");try{let a=y.Buffer.from(n,"hex").toString("ascii");if(!a)return ir;let o=new or.default("0x"+i.replace("0x","")).toString(10);return{tokenId:a,amount:o}}catch(a){console.error("Error getting token from transaction data",a)}}if(e)try{let[,n,i,a,o]=Ue(t);if([n,i,a,o].every(u=>Boolean(u))&&Pr(new ar.Address(o).bech32()))return{tokenId:`${n}-${i}`,amount:new or.default(a,16).toString(10),collection:n,nonce:i,receiver:new ar.Address(o).bech32()}}catch(n){}return ir}f();var sr=H(require("bignumber.js"));f();f();f();f();f();f();f();f();f();f();var Hr=(t,r)=>{let e=[],n=t.indexOf(r,0);for(;n>=0;)e.push(n),n=t.indexOf(r,n+1);return e};function Gr(t){let r=[],e=0;try{if((t==null?void 0:t.startsWith("MultiESDTNFTTransfer"))&&(t==null?void 0:t.includes("@"))){let[,n,i,...a]=t==null?void 0:t.split("@");if(n){let o=new sr.default(i,16).toNumber(),u=0;for(let c=0;c<o;c++){let d={type:"nftTransaction",data:"",receiver:n};for(let h=0;h<3;h++){switch(h){case 0:d.token=z(a[u]),d.data=a[u];break;case 1:{let v=a[u]&&a[u].length?a[u]:"";v&&v!=="00"?d.nonce=v:d.type="esdtTransaction",d.data=`${d.data}@${a[u]}`;break}case 2:d.amount=new sr.default(a[u],16).toString(10),d.data=`${d.data}@${a[u]}`;break;default:break}e=u+1,u++}r[c]=d}let p=r.length!==o,l=r.some(c=>Hr(c.data,"@").length!==2),g=r.some(c=>c.data.startsWith("@"));if(p||l||g)return[];if(a[e]){let c=a[e];for(let d=e+1;d<a.length;d++)c+="@"+a[d];r[o]={type:"scCall",data:c,receiver:n}}}}}catch(n){return console.error("failed parsing tx",n),r}return r}var qr={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Le({transactions:t}){let[r,e]=(0,M.useState)({}),[n,i]=(0,M.useState)([]);function a(p,l){e(g=>fr(lr({},g),{[p]:l}))}function o(p,l){return r==null?qr:p in r?r[p]:l!=null&&String(l)in r?r[l]:qr}function u(){if(t&&t.length>0){let p=[];t.forEach((l,g)=>{let c=l.getData().toString(),d=Gr(c);if(d.length>0)d.forEach((h,v)=>{let $={transaction:l,multiTxData:h.data,transactionIndex:v};a(h.data,{tokenId:h.token?h.token:"",amount:h.amount?h.amount:"",type:h.type,nonce:h.nonce?h.nonce:"",multiTxData:h.data,receiver:h.receiver}),p.push($)});else{let{tokenId:h,amount:v}=Or(l.getData().toString());h&&a(l.getData().toString(),{tokenId:h,amount:v,receiver:l.getReceiver().bech32()}),p.push({transaction:l,transactionIndex:g})}}),i(p)}}return(0,M.useEffect)(()=>{u()},[t==null?void 0:t.length]),{parsedTransactionsByDataField:r,getTxInfoByDataField:o,allTransactions:n}}0&&(module.exports={useParseMultiEsdtTransferData});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *