@multiversx/sdk-dapp 2.8.7 → 2.9.0-alpha.0

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 (943) hide show
  1. package/UI/DappModal/hooks/index.js +1 -1
  2. package/UI/DappModal/hooks/useDappModal.js +1 -1
  3. package/UI/DappModal/index.js +1 -1
  4. package/UI/Denominate/index.js +1 -1
  5. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  6. package/UI/ExplorerLink/index.js +1 -1
  7. package/UI/FormatAmount/FormatAmount.js +1 -1
  8. package/UI/FormatAmount/index.js +1 -1
  9. package/UI/ModalContainer/ModalContainer.js +1 -1
  10. package/UI/ModalContainer/index.js +1 -1
  11. package/UI/NotificationModal/index.js +1 -1
  12. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  20. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  21. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  22. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  23. package/UI/SignTransactionsModals/components/index.js +1 -1
  24. package/UI/SignTransactionsModals/index.js +1 -1
  25. package/UI/TokenDetails/index.js +1 -1
  26. package/UI/TransactionData/index.js +1 -1
  27. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  28. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  29. package/UI/TransactionDetails/components/index.js +1 -1
  30. package/UI/TransactionDetails/index.js +1 -1
  31. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  32. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  33. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  34. package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
  35. package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
  36. package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
  37. package/UI/TransactionInfo/components/DataField/index.js +1 -1
  38. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  39. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  40. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  41. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  42. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  43. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  44. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  45. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  46. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  47. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  48. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  49. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  50. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  51. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
  52. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
  53. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  54. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  55. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  56. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  57. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  58. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  59. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  60. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  61. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  62. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  63. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  64. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  65. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  66. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  67. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  68. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  69. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  70. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  71. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  72. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  73. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  74. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  75. package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  76. package/UI/TransactionInfo/components/index.js +1 -1
  77. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
  78. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
  79. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
  80. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
  81. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  82. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  84. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  85. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
  86. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
  87. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
  88. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
  91. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
  92. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
  93. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  99. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  100. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  101. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  102. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  103. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  104. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  105. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  106. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  107. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  108. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  109. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  110. package/UI/TransactionInfo/index.js +1 -1
  111. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  112. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  113. package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
  114. package/UI/TransactionsTable/components/ShardSpan.js +1 -1
  115. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  116. package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
  117. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  118. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  119. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  120. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  121. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  122. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  123. package/UI/TransactionsTable/components/index.js +1 -1
  124. package/UI/TransactionsTable/index.js +1 -1
  125. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  126. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  127. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  128. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  129. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
  130. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  131. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  132. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  133. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  134. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  135. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  136. package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
  137. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  138. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  139. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  140. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  141. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  142. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  143. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  144. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  145. package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
  146. package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
  147. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  148. package/UI/TransactionsToastList/components/index.js +1 -1
  149. package/UI/TransactionsToastList/index.js +1 -1
  150. package/UI/UsdValue/UsdValue.js +1 -1
  151. package/UI/UsdValue/index.js +1 -1
  152. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  153. package/UI/index.js +1 -1
  154. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  155. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  156. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  157. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  158. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  159. package/UI/ledger/index.js +1 -1
  160. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  161. package/UI/pages/UnlockPage/index.js +1 -1
  162. package/UI/pages/index.js +1 -1
  163. package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
  164. package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
  165. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  166. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  167. package/UI/walletConnect/index.js +1 -1
  168. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  169. package/__chunks__/{chunk-2DKPFSTT.js → chunk-25LYYPSL.js} +2 -2
  170. package/__chunks__/{chunk-V5CRB7KN.js → chunk-2DAZJTY7.js} +2 -2
  171. package/__chunks__/{chunk-BMJLZLZM.js → chunk-2G7BO52P.js} +2 -2
  172. package/__chunks__/{chunk-VSXOMCDB.js → chunk-2JGSECMC.js} +2 -2
  173. package/__chunks__/{chunk-NAKSKDVH.js → chunk-2MN2JEL5.js} +2 -2
  174. package/__chunks__/{chunk-423Z6LGX.js → chunk-2QEIR6TS.js} +2 -2
  175. package/__chunks__/{chunk-5R432HI2.js → chunk-2UFNSJOJ.js} +2 -2
  176. package/__chunks__/{chunk-R2G53LUI.js → chunk-32HLRTV3.js} +2 -2
  177. package/__chunks__/{chunk-6UNAWFJ2.js → chunk-33B2EA3V.js} +2 -2
  178. package/__chunks__/{chunk-525WM2BT.js → chunk-343YDU2S.js} +2 -2
  179. package/__chunks__/{chunk-WWLOW2S3.js → chunk-346RZSEQ.js} +2 -2
  180. package/__chunks__/{chunk-IHIUGJRW.js → chunk-35T5H5IL.js} +2 -2
  181. package/__chunks__/{chunk-R3FSXFX3.js → chunk-3ADB74GU.js} +2 -2
  182. package/__chunks__/{chunk-GY336JML.js → chunk-3BQODYHQ.js} +2 -2
  183. package/__chunks__/{chunk-QVCVZLRQ.js → chunk-3CRW4ZUP.js} +2 -2
  184. package/__chunks__/{chunk-KO4CKUQ3.js → chunk-3D56FBAG.js} +2 -2
  185. package/__chunks__/{chunk-YFDYMEP5.js → chunk-3DOTBYW5.js} +2 -2
  186. package/__chunks__/{chunk-XIHOENSC.js → chunk-3OTU3LGP.js} +2 -2
  187. package/__chunks__/{chunk-7XE7OVZZ.js → chunk-3UYWEUYO.js} +2 -2
  188. package/__chunks__/{chunk-XKMOG6SS.js → chunk-3VNANIQN.js} +2 -2
  189. package/__chunks__/chunk-3ZPW6NBW.js +2 -0
  190. package/__chunks__/{chunk-KDNMJ7M2.js → chunk-43MUHJXP.js} +2 -2
  191. package/__chunks__/{chunk-FXKLPJUW.js → chunk-4AXBEAVW.js} +2 -2
  192. package/__chunks__/{chunk-UHDCW2GI.js → chunk-4CUEYG5L.js} +2 -2
  193. package/__chunks__/{chunk-74QKDRVQ.js → chunk-4DXDAPGH.js} +2 -2
  194. package/__chunks__/{chunk-CEPGJ4CK.js → chunk-4E4GWX4K.js} +2 -2
  195. package/__chunks__/chunk-4MGGEDE4.js +2 -0
  196. package/__chunks__/{chunk-TRBK7QQ6.js → chunk-4YGLWJYP.js} +2 -2
  197. package/__chunks__/{chunk-Z7HQTVYF.js → chunk-4ZPZ6AIU.js} +2 -2
  198. package/__chunks__/{chunk-TOZA3Q3T.js → chunk-54NEP2BY.js} +2 -2
  199. package/__chunks__/{chunk-W37FQYGP.js → chunk-54NTEZC5.js} +2 -2
  200. package/__chunks__/{chunk-OM457L3M.js → chunk-57KTNTD4.js} +2 -2
  201. package/__chunks__/{chunk-GFKBUR52.js → chunk-5A4BF2DQ.js} +2 -2
  202. package/__chunks__/{chunk-USUOFVP7.js → chunk-5AOQJY3W.js} +2 -2
  203. package/__chunks__/chunk-5E3Y7WDX.js +2 -0
  204. package/__chunks__/{chunk-4JKMMUID.js → chunk-5IU2LKSN.js} +2 -2
  205. package/__chunks__/{chunk-CN4TUEV7.js → chunk-5JSXSHFD.js} +2 -2
  206. package/__chunks__/{chunk-6UNQJUWL.js → chunk-5LIDVEDY.js} +2 -2
  207. package/__chunks__/{chunk-Z6PNQGOE.js → chunk-5LIPZK7I.js} +2 -2
  208. package/__chunks__/{chunk-TQVFVFKS.js → chunk-5SFT27AY.js} +2 -2
  209. package/__chunks__/chunk-5T2INUJ2.js +2 -0
  210. package/__chunks__/chunk-5TSTJK3D.js +2 -0
  211. package/__chunks__/{chunk-OCKI3V27.js → chunk-62SL73B6.js} +2 -2
  212. package/__chunks__/chunk-65MQPHO4.js +2 -0
  213. package/__chunks__/chunk-6A6EWHUH.js +2 -0
  214. package/__chunks__/{chunk-CJT4DITV.js → chunk-6ALJIJJR.js} +2 -2
  215. package/__chunks__/{chunk-NDJHFLTL.js → chunk-6CPLHN5F.js} +2 -2
  216. package/__chunks__/{chunk-DF24IGER.js → chunk-6NPKQKN5.js} +2 -2
  217. package/__chunks__/{chunk-4P3LJAUR.js → chunk-6O5L57GH.js} +2 -2
  218. package/__chunks__/{chunk-2DPI5E3W.js → chunk-6PSLWD7K.js} +2 -2
  219. package/__chunks__/{chunk-HGAKSUJP.js → chunk-6QQMWPZL.js} +2 -2
  220. package/__chunks__/{chunk-DHYV75O3.js → chunk-6TWOJZGW.js} +2 -2
  221. package/__chunks__/chunk-6W7S3EE3.js +2 -0
  222. package/__chunks__/{chunk-4HQ3HNGC.js → chunk-73F5VFES.js} +2 -2
  223. package/__chunks__/{chunk-ADE5S3WR.js → chunk-7CR6PT46.js} +2 -2
  224. package/__chunks__/{chunk-VXVGC3OH.js → chunk-7G3CGRHQ.js} +2 -2
  225. package/__chunks__/{chunk-BDA7V4NQ.js → chunk-7JYNYESQ.js} +2 -2
  226. package/__chunks__/{chunk-B25RPITH.js → chunk-7NYPVHED.js} +2 -2
  227. package/__chunks__/{chunk-MLSI3RC2.js → chunk-7RDCJEBM.js} +2 -2
  228. package/__chunks__/{chunk-YUIINDCV.js → chunk-7S2XISHG.js} +2 -2
  229. package/__chunks__/{chunk-UG55ZHGL.js → chunk-7UD2BXEK.js} +2 -2
  230. package/__chunks__/{chunk-KGGATDBD.js → chunk-7XH5QF3M.js} +2 -2
  231. package/__chunks__/chunk-A3YTVQRT.js +2 -0
  232. package/__chunks__/chunk-A453JAS3.js +2 -0
  233. package/__chunks__/{chunk-5LEO57S4.js → chunk-A6UEBWYM.js} +2 -2
  234. package/__chunks__/chunk-ABVMFLA3.js +2 -0
  235. package/__chunks__/{chunk-YMP4Z5XY.js → chunk-AJBKM66B.js} +2 -2
  236. package/__chunks__/{chunk-F2EJ4NBK.js → chunk-AK245ZB2.js} +2 -2
  237. package/__chunks__/{chunk-KHTHET32.js → chunk-ALP3UNP6.js} +2 -2
  238. package/__chunks__/{chunk-JXDUGSUA.js → chunk-AMFO52WL.js} +2 -2
  239. package/__chunks__/{chunk-XWDYQGE2.js → chunk-AOEAP24C.js} +2 -2
  240. package/__chunks__/{chunk-CRIOGAAJ.js → chunk-ARBTLT3C.js} +2 -2
  241. package/__chunks__/chunk-B3TAZ7VX.js +2 -0
  242. package/__chunks__/{chunk-A4SQDGPF.js → chunk-B4DRNYML.js} +2 -2
  243. package/__chunks__/chunk-BAT5BA5V.js +2 -0
  244. package/__chunks__/{chunk-U6QHRFQ6.js → chunk-BKMSVP62.js} +2 -2
  245. package/__chunks__/{chunk-5WX4CALV.js → chunk-BKSSTINX.js} +2 -2
  246. package/__chunks__/{chunk-USTDS2O5.js → chunk-BMG5SADY.js} +2 -2
  247. package/__chunks__/{chunk-FGT3C4FE.js → chunk-BPPVSU25.js} +1 -1
  248. package/__chunks__/chunk-BRPCFDIZ.js +2 -0
  249. package/__chunks__/{chunk-CJH2YV7X.js → chunk-BT4PUPX2.js} +2 -2
  250. package/__chunks__/{chunk-SMISCEQS.js → chunk-BTUNYV43.js} +2 -2
  251. package/__chunks__/{chunk-WKD2ES4V.js → chunk-BVRV3PPZ.js} +2 -2
  252. package/__chunks__/chunk-BZONU76B.js +2 -0
  253. package/__chunks__/{chunk-UWE6TJ47.js → chunk-C7BZLCLN.js} +2 -2
  254. package/__chunks__/chunk-CDW2662X.js +2 -0
  255. package/__chunks__/{chunk-MO7GMDSI.js → chunk-CFAUACCS.js} +2 -2
  256. package/__chunks__/{chunk-MDZPOO3F.js → chunk-CJEHVP77.js} +2 -2
  257. package/__chunks__/{chunk-ELIQXNO3.js → chunk-CNNCGA7P.js} +2 -2
  258. package/__chunks__/chunk-COL2EXNW.js +2 -0
  259. package/__chunks__/{chunk-IIAD2DSC.js → chunk-CPACYSUZ.js} +2 -2
  260. package/__chunks__/chunk-CSS5DPJE.js +2 -0
  261. package/__chunks__/{chunk-QUMYRH4H.js → chunk-CTO4KDRF.js} +2 -2
  262. package/__chunks__/chunk-CUPMM5UN.js +2 -0
  263. package/__chunks__/{chunk-M47D4COH.js → chunk-CWZS67S7.js} +2 -2
  264. package/__chunks__/{chunk-LF6VJNCF.js → chunk-CXXTFRHA.js} +2 -2
  265. package/__chunks__/{chunk-T6GIIILG.js → chunk-CZZL3SSJ.js} +2 -2
  266. package/__chunks__/{chunk-UX2EZNAX.js → chunk-D6AVFA2D.js} +2 -2
  267. package/__chunks__/{chunk-Q7U3WZCF.js → chunk-DLO34CIZ.js} +2 -2
  268. package/__chunks__/{chunk-77DECFQY.js → chunk-DTN6DYVS.js} +2 -2
  269. package/__chunks__/chunk-DXE4AAU7.js +2 -0
  270. package/__chunks__/{chunk-4ALRWZZQ.js → chunk-E36MIU6P.js} +2 -2
  271. package/__chunks__/chunk-E4X4P3T6.js +2 -0
  272. package/__chunks__/{chunk-5FBZWQQA.js → chunk-EFMJXVWX.js} +2 -2
  273. package/__chunks__/chunk-EPJMBI2O.js +2 -0
  274. package/__chunks__/{chunk-RJFWI3UU.js → chunk-ESLOIYNE.js} +2 -2
  275. package/__chunks__/{chunk-FSAAWDVV.js → chunk-EXCSAEHQ.js} +2 -2
  276. package/__chunks__/chunk-EZWQ7DMD.js +2 -0
  277. package/__chunks__/{chunk-73KODBLR.js → chunk-FIPS3NHS.js} +2 -2
  278. package/__chunks__/chunk-FPDWY2JO.js +2 -0
  279. package/__chunks__/{chunk-XZ5MLYGD.js → chunk-G3RFZTTV.js} +2 -2
  280. package/__chunks__/{chunk-52J7F3R2.js → chunk-GFUPPZJ2.js} +2 -2
  281. package/__chunks__/chunk-GIPQCOE2.js +2 -0
  282. package/__chunks__/{chunk-5RFLO6MR.js → chunk-GN2RX6OL.js} +2 -2
  283. package/__chunks__/{chunk-FGJI7F7M.js → chunk-GRYUK7ET.js} +2 -2
  284. package/__chunks__/{chunk-BOKSFKJF.js → chunk-H3R6VXAV.js} +2 -2
  285. package/__chunks__/{chunk-ILI6V46A.js → chunk-HACCGAKC.js} +2 -2
  286. package/__chunks__/chunk-HIX6QXZ4.js +2 -0
  287. package/__chunks__/{chunk-A2IXF222.js → chunk-HJ7GDMMX.js} +2 -2
  288. package/__chunks__/{chunk-CUFA5NAA.js → chunk-HOM67ZP7.js} +2 -2
  289. package/__chunks__/{chunk-TEFRLAUL.js → chunk-HPXVUIJL.js} +2 -2
  290. package/__chunks__/{chunk-YLOIJNV2.js → chunk-HWLMQLGK.js} +2 -2
  291. package/__chunks__/{chunk-CPEIGU6U.js → chunk-I4BUST3H.js} +2 -2
  292. package/__chunks__/{chunk-SJ6DPXLM.js → chunk-I6GRLA2C.js} +2 -2
  293. package/__chunks__/{chunk-PVKKZXYP.js → chunk-IMJ3U2BY.js} +2 -2
  294. package/__chunks__/{chunk-N7ACY27N.js → chunk-IMPGP7LI.js} +2 -2
  295. package/__chunks__/{chunk-5GEXET3C.js → chunk-IOQUQ7V7.js} +2 -2
  296. package/__chunks__/{chunk-HER7NR3P.js → chunk-IUSHI4WG.js} +2 -2
  297. package/__chunks__/chunk-IYGHEIZB.js +2 -0
  298. package/__chunks__/{chunk-YPLFH5NC.js → chunk-J3Q7UDAZ.js} +2 -2
  299. package/__chunks__/{chunk-IIXY6EVM.js → chunk-J6HSKOGJ.js} +2 -2
  300. package/__chunks__/{chunk-S7JDYKHM.js → chunk-J7NMG22C.js} +2 -2
  301. package/__chunks__/chunk-JCD6DJSC.js +2 -0
  302. package/__chunks__/{chunk-4R3QOQZE.js → chunk-JDVLHQF6.js} +2 -2
  303. package/__chunks__/{chunk-4JB5QVKY.js → chunk-JIXAK2AC.js} +2 -2
  304. package/__chunks__/{chunk-3KOYQHTR.js → chunk-JJWH3JYM.js} +2 -2
  305. package/__chunks__/{chunk-SLLPTUAV.js → chunk-JK6ABF64.js} +2 -2
  306. package/__chunks__/{chunk-ZEEWQEXA.js → chunk-JK6EDPQT.js} +2 -2
  307. package/__chunks__/chunk-JWP3WLIN.js +2 -0
  308. package/__chunks__/{chunk-7WWHCPMS.js → chunk-JWSBC5DB.js} +2 -2
  309. package/__chunks__/{chunk-I3DMSSAU.js → chunk-K5UIZVZV.js} +2 -2
  310. package/__chunks__/{chunk-KX4A4RXW.js → chunk-KDEQ2GAX.js} +2 -2
  311. package/__chunks__/{chunk-CRI42HNH.js → chunk-KEIOQVXN.js} +2 -2
  312. package/__chunks__/{chunk-U77UZINY.js → chunk-KG3U55NF.js} +2 -2
  313. package/__chunks__/{chunk-P6MWBKH3.js → chunk-KHHNKZRB.js} +2 -2
  314. package/__chunks__/{chunk-SOPJ4FVA.js → chunk-KV6GSWNL.js} +2 -2
  315. package/__chunks__/{chunk-VS7YJKJM.js → chunk-KYC5JNJB.js} +2 -2
  316. package/__chunks__/{chunk-BYS7QALE.js → chunk-KYVILTBF.js} +2 -2
  317. package/__chunks__/chunk-L5DW2DTN.js +2 -0
  318. package/__chunks__/chunk-L5UKH2NP.js +2 -0
  319. package/__chunks__/{chunk-M22NL7FJ.js → chunk-LES3U47Z.js} +2 -2
  320. package/__chunks__/{chunk-7YFFVZWN.js → chunk-LF5ZKC66.js} +2 -2
  321. package/__chunks__/{chunk-XTX67ABL.js → chunk-LF6FN6K3.js} +2 -2
  322. package/__chunks__/{chunk-K4P3Q4G6.js → chunk-LGPEIIM7.js} +2 -2
  323. package/__chunks__/{chunk-HJFWUTN2.js → chunk-LJ2OXL2R.js} +2 -2
  324. package/__chunks__/{chunk-HEMJW4UP.js → chunk-LLTQNIPQ.js} +2 -2
  325. package/__chunks__/{chunk-KE3UZZPK.js → chunk-LRZYNP4X.js} +2 -2
  326. package/__chunks__/{chunk-R5P34PUZ.js → chunk-LSJH4COT.js} +2 -2
  327. package/__chunks__/{chunk-UYKSTJCI.js → chunk-LU3DM6HR.js} +2 -2
  328. package/__chunks__/chunk-LWC25W2W.js +2 -0
  329. package/__chunks__/{chunk-HHGHERF3.js → chunk-M4KXOW7P.js} +2 -2
  330. package/__chunks__/{chunk-66KNLCQD.js → chunk-MC4SKRI3.js} +2 -2
  331. package/__chunks__/{chunk-VVPMSN2M.js → chunk-MCGMQBME.js} +2 -2
  332. package/__chunks__/{chunk-T4FS5XNS.js → chunk-MCX4AA63.js} +2 -2
  333. package/__chunks__/{chunk-UXBGGKWU.js → chunk-MDGIGD6R.js} +2 -2
  334. package/__chunks__/{chunk-HWDGDPLP.js → chunk-MIKIMQR2.js} +2 -2
  335. package/__chunks__/{chunk-DQLFYAJF.js → chunk-MOA4IRT5.js} +2 -2
  336. package/__chunks__/chunk-MYN7DB3X.js +2 -0
  337. package/__chunks__/{chunk-A2MJT5TB.js → chunk-N45VBFNK.js} +2 -2
  338. package/__chunks__/chunk-NA2AEGMU.js +2 -0
  339. package/__chunks__/{chunk-D3E65LJ5.js → chunk-NEHGYCY2.js} +2 -2
  340. package/__chunks__/{chunk-ACE3TC2R.js → chunk-NJQRX7E2.js} +2 -2
  341. package/__chunks__/{chunk-JFOJHUMM.js → chunk-NQ247DLE.js} +2 -2
  342. package/__chunks__/chunk-NTCEKYNN.js +2 -0
  343. package/__chunks__/{chunk-ADCSG5DO.js → chunk-NYNRNXOR.js} +2 -2
  344. package/__chunks__/{chunk-AFLDYYSB.js → chunk-O4ZYTYXZ.js} +2 -2
  345. package/__chunks__/{chunk-AJ2VY4SZ.js → chunk-OAXLOJDD.js} +2 -2
  346. package/__chunks__/chunk-OE5DHTVR.js +2 -0
  347. package/__chunks__/chunk-OGZP3W4S.js +2 -0
  348. package/__chunks__/{chunk-BBL4ZXHW.js → chunk-ONIRIDYD.js} +2 -2
  349. package/__chunks__/{chunk-BKMTF6D2.js → chunk-OPNNXGAJ.js} +2 -2
  350. package/__chunks__/chunk-OXJW5VJL.js +2 -0
  351. package/__chunks__/{chunk-RXNYA6SF.js → chunk-P6MRRO6I.js} +2 -2
  352. package/__chunks__/{chunk-YU5OYJX7.js → chunk-PCHRWVXC.js} +2 -2
  353. package/__chunks__/{chunk-C6OSBOOY.js → chunk-PGYJ74AD.js} +2 -2
  354. package/__chunks__/{chunk-5MMAS7IS.js → chunk-PHYN544Z.js} +2 -2
  355. package/__chunks__/chunk-PMKQQMDY.js +2 -0
  356. package/__chunks__/{chunk-DG7FFCMC.js → chunk-PMREAIGI.js} +2 -2
  357. package/__chunks__/{chunk-VPHC377M.js → chunk-PNSNXL7L.js} +2 -2
  358. package/__chunks__/{chunk-UTDBQNDV.js → chunk-PVQIICYI.js} +2 -2
  359. package/__chunks__/{chunk-EVUACURD.js → chunk-Q3OVBMP3.js} +2 -2
  360. package/__chunks__/{chunk-RHQ3FWWV.js → chunk-Q5WC7I3O.js} +2 -2
  361. package/__chunks__/{chunk-QL7RMPDI.js → chunk-QD5QDTC3.js} +2 -2
  362. package/__chunks__/{chunk-737AN7JD.js → chunk-QGGGF3OX.js} +2 -2
  363. package/__chunks__/{chunk-WWSWE52T.js → chunk-QNUO32JN.js} +2 -2
  364. package/__chunks__/{chunk-YKCZ2UKE.js → chunk-QOZBVOHT.js} +2 -2
  365. package/__chunks__/chunk-QRLJYAVK.js +2 -0
  366. package/__chunks__/{chunk-ROMNQSAY.js → chunk-QWPQS6G5.js} +2 -2
  367. package/__chunks__/{chunk-ODQ5XNPU.js → chunk-R4B6ID2N.js} +2 -2
  368. package/__chunks__/{chunk-KGYURMEO.js → chunk-R6AS2UYG.js} +2 -2
  369. package/__chunks__/{chunk-7BA6MF76.js → chunk-RLVLE6UU.js} +2 -2
  370. package/__chunks__/{chunk-YRHGZ4HS.js → chunk-S2KUPUGA.js} +2 -2
  371. package/__chunks__/{chunk-6R7WMG4C.js → chunk-S653XWKA.js} +2 -2
  372. package/__chunks__/{chunk-ENVPO3OR.js → chunk-SBN47C2G.js} +2 -2
  373. package/__chunks__/{chunk-SAFQFQIH.js → chunk-SDDHDY7Z.js} +2 -2
  374. package/__chunks__/{chunk-NANO4X2A.js → chunk-SFP5Q2SB.js} +2 -2
  375. package/__chunks__/chunk-SGEONHJN.js +2 -0
  376. package/__chunks__/{chunk-LKDW3XH3.js → chunk-SGNT3E2X.js} +2 -2
  377. package/__chunks__/{chunk-NQ5XJOIL.js → chunk-SLZBO3FX.js} +2 -2
  378. package/__chunks__/{chunk-WX5BAI2J.js → chunk-SSGU33XK.js} +2 -2
  379. package/__chunks__/{chunk-KCOIYEPV.js → chunk-SXJLOBGK.js} +2 -2
  380. package/__chunks__/{chunk-32VBXZXR.js → chunk-SYT2T7G2.js} +2 -2
  381. package/__chunks__/{chunk-M2X2JVAM.js → chunk-SZ3VLYKT.js} +2 -2
  382. package/__chunks__/{chunk-GCYQRVDH.js → chunk-T2CFMPMF.js} +2 -2
  383. package/__chunks__/{chunk-GBQ5D4O5.js → chunk-T2MFBGAA.js} +2 -2
  384. package/__chunks__/{chunk-QB3XGANM.js → chunk-T2MIRLFN.js} +2 -2
  385. package/__chunks__/{chunk-YKKS3O3Z.js → chunk-T34J5F2S.js} +2 -2
  386. package/__chunks__/{chunk-CY7H7XN3.js → chunk-T3NGVEED.js} +2 -2
  387. package/__chunks__/{chunk-RU373C7L.js → chunk-T4Q37HLR.js} +2 -2
  388. package/__chunks__/{chunk-NNVTUWMR.js → chunk-TAYARQBC.js} +2 -2
  389. package/__chunks__/{chunk-F4Z4BQFP.js → chunk-TGPRRERJ.js} +2 -2
  390. package/__chunks__/{chunk-UMD2MTE3.js → chunk-TJUHE354.js} +2 -2
  391. package/__chunks__/chunk-TKQGS7L2.js +2 -0
  392. package/__chunks__/{chunk-GXOJLFD4.js → chunk-TTBVJAYG.js} +2 -2
  393. package/__chunks__/{chunk-2KFSLVEO.js → chunk-TTZVNWAK.js} +2 -2
  394. package/__chunks__/{chunk-4NPCJKVQ.js → chunk-TWSAY73D.js} +2 -2
  395. package/__chunks__/{chunk-EN36KS5J.js → chunk-TZ6IR7KY.js} +2 -2
  396. package/__chunks__/{chunk-YWT4XNXN.js → chunk-U2ELIFGD.js} +2 -2
  397. package/__chunks__/{chunk-WXZKC7M3.js → chunk-U7BHVZDF.js} +2 -2
  398. package/__chunks__/{chunk-LVCV5JOX.js → chunk-UB7XMLMC.js} +2 -2
  399. package/__chunks__/{chunk-M7AJLAY3.js → chunk-UFE22DXI.js} +2 -2
  400. package/__chunks__/chunk-UGAJ6X3Z.js +2 -0
  401. package/__chunks__/chunk-UGJIORNP.js +2 -0
  402. package/__chunks__/{chunk-ANO63HEG.js → chunk-UIXYMFD4.js} +2 -2
  403. package/__chunks__/{chunk-XXUDAIKI.js → chunk-UM2Z6I3Z.js} +2 -2
  404. package/__chunks__/{chunk-COV3NRWK.js → chunk-UNW4PYCC.js} +2 -2
  405. package/__chunks__/{chunk-UIRTEEAJ.js → chunk-UPCMC3JF.js} +2 -2
  406. package/__chunks__/{chunk-GPNUHVOM.js → chunk-UWZL6MUF.js} +2 -2
  407. package/__chunks__/{chunk-YLMRTW5R.js → chunk-UZ5EL5IA.js} +2 -2
  408. package/__chunks__/{chunk-W2FZFACI.js → chunk-VGVAZOOL.js} +2 -2
  409. package/__chunks__/{chunk-MDNDUSGB.js → chunk-VHHIARAI.js} +2 -2
  410. package/__chunks__/{chunk-EBMIHN52.js → chunk-VOS5AZ4K.js} +2 -2
  411. package/__chunks__/{chunk-XT5BA43Z.js → chunk-VZZVQSTN.js} +2 -2
  412. package/__chunks__/{chunk-IC5Y7E5N.js → chunk-W4GD6OCO.js} +2 -2
  413. package/__chunks__/{chunk-XNHZJ2SC.js → chunk-W5D3A5ES.js} +2 -2
  414. package/__chunks__/{chunk-B3ILFYYH.js → chunk-WB2WVDZA.js} +2 -2
  415. package/__chunks__/{chunk-LBJUKBPW.js → chunk-WCGXNTPB.js} +2 -2
  416. package/__chunks__/{chunk-A6EXXYVU.js → chunk-WJHMRQCO.js} +2 -2
  417. package/__chunks__/{chunk-WYFQSQAM.js → chunk-WKN5JWWQ.js} +2 -2
  418. package/__chunks__/chunk-WR6IIZFW.js +2 -0
  419. package/__chunks__/{chunk-KTYRUFXV.js → chunk-WRKQTXD4.js} +2 -2
  420. package/__chunks__/{chunk-2C65GIQZ.js → chunk-WU2RFM5A.js} +2 -2
  421. package/__chunks__/{chunk-P7STLJJI.js → chunk-X7SBGOMA.js} +2 -2
  422. package/__chunks__/{chunk-IK27WK4F.js → chunk-XACM7U6A.js} +2 -2
  423. package/__chunks__/{chunk-PINKYRXT.js → chunk-XARXYP2R.js} +2 -2
  424. package/__chunks__/{chunk-FNO4F4XU.js → chunk-XGTZDEYC.js} +2 -2
  425. package/__chunks__/chunk-XHHJUHQV.js +2 -0
  426. package/__chunks__/{chunk-HQJKEU6C.js → chunk-XRHEAXKK.js} +2 -2
  427. package/__chunks__/{chunk-23EGU54D.js → chunk-XVZERATD.js} +2 -2
  428. package/__chunks__/{chunk-TXM7RATR.js → chunk-Y5PCCHR4.js} +2 -2
  429. package/__chunks__/{chunk-X2L7IGUP.js → chunk-Y7U5PXM4.js} +2 -2
  430. package/__chunks__/chunk-YABBPNUR.js +2 -0
  431. package/__chunks__/{chunk-E7MY3TPU.js → chunk-YCWMLUF4.js} +2 -2
  432. package/__chunks__/{chunk-3VGDFLNR.js → chunk-YGKDW2MQ.js} +2 -2
  433. package/__chunks__/{chunk-6PTMJTAR.js → chunk-YJXND7MN.js} +2 -2
  434. package/__chunks__/{chunk-X3JF7AJ7.js → chunk-YLMQQGTH.js} +2 -2
  435. package/__chunks__/{chunk-6YFMGTBJ.js → chunk-YRLJP2A7.js} +2 -2
  436. package/__chunks__/{chunk-NMZHNNDO.js → chunk-YRR6KBN2.js} +2 -2
  437. package/__chunks__/chunk-YW6K2R7N.js +2 -0
  438. package/__chunks__/chunk-YWMWYHIA.js +2 -0
  439. package/__chunks__/{chunk-JWQRJOLL.js → chunk-YYBTFRCM.js} +2 -2
  440. package/__chunks__/{chunk-WUBNBBRC.js → chunk-Z2VZSXDK.js} +2 -2
  441. package/__chunks__/{chunk-S3J7OTBF.js → chunk-Z3ZWK4EM.js} +2 -2
  442. package/__chunks__/{chunk-IOHWBSIX.js → chunk-Z4ABT7NG.js} +2 -2
  443. package/__chunks__/{chunk-EB7DKY7Z.js → chunk-ZCM6WCXA.js} +2 -2
  444. package/__chunks__/chunk-ZQIOXJ4W.js +2 -0
  445. package/__chunks__/{chunk-MBOASZBJ.js → chunk-ZSU24JZ5.js} +2 -2
  446. package/__chunks__/chunk-ZTWKQMJR.js +2 -0
  447. package/__chunks__/{chunk-HGTG6QDV.js → chunk-ZVZUXZJ7.js} +2 -2
  448. package/__chunks__/chunk-ZX7JX6JP.js +2 -0
  449. package/__commonjs/UI/DappModal/hooks/index.js +1 -1
  450. package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
  451. package/__commonjs/UI/NotificationModal/index.js +4 -4
  452. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +22 -22
  453. package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +5 -5
  454. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  455. package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  456. package/__commonjs/UI/SignTransactionsModals/components/index.js +7 -7
  457. package/__commonjs/UI/SignTransactionsModals/index.js +22 -22
  458. package/__commonjs/UI/TransactionInfo/components/DataDecode/DataDecode.js +5 -5
  459. package/__commonjs/UI/TransactionInfo/components/DataDecode/index.js +5 -5
  460. package/__commonjs/UI/TransactionInfo/components/DataField/DataField.js +3 -3
  461. package/__commonjs/UI/TransactionInfo/components/DataField/index.js +3 -3
  462. package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +2 -2
  463. package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +2 -2
  464. package/__commonjs/UI/TransactionInfo/components/OperationsList/OperationList.js +10 -10
  465. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationText.js +7 -7
  466. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +4 -4
  467. package/__commonjs/UI/TransactionInfo/components/OperationsList/index.js +10 -10
  468. package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +4 -4
  469. package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +6 -6
  470. package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +3 -3
  471. package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +4 -4
  472. package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +4 -4
  473. package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/index.js +4 -4
  474. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +4 -4
  475. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +4 -4
  476. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +4 -4
  477. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +4 -4
  478. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +2 -2
  479. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +2 -2
  480. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +4 -4
  481. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +4 -4
  482. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +3 -3
  483. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +3 -3
  484. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +5 -5
  485. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +5 -5
  486. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +4 -4
  487. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +4 -4
  488. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +11 -11
  489. package/__commonjs/UI/TransactionsTable/components/LockedTokenAddressIcon.js +2 -2
  490. package/__commonjs/UI/TransactionsTable/components/ScAddressIcon.js +2 -2
  491. package/__commonjs/UI/TransactionsTable/components/ShardSpan.js +1 -1
  492. package/__commonjs/UI/TransactionsTable/components/TransactionHash.js +6 -6
  493. package/__commonjs/UI/TransactionsTable/index.js +11 -11
  494. package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +8 -8
  495. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
  496. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +4 -4
  497. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +6 -6
  498. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +4 -4
  499. package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
  500. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +8 -8
  501. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +8 -8
  502. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
  503. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
  504. package/__commonjs/UI/TransactionsToastList/components/index.js +1 -1
  505. package/__commonjs/UI/TransactionsToastList/index.js +8 -8
  506. package/__commonjs/UI/UsdValue/UsdValue.js +2 -2
  507. package/__commonjs/UI/UsdValue/index.js +2 -2
  508. package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
  509. package/__commonjs/UI/index.js +74 -74
  510. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +1 -1
  511. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.js +2 -2
  512. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +10 -10
  513. package/__commonjs/UI/ledger/index.js +1 -1
  514. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  515. package/__commonjs/UI/pages/UnlockPage/index.js +12 -12
  516. package/__commonjs/UI/pages/index.js +12 -12
  517. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +7 -7
  518. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +5 -5
  519. package/__commonjs/UI/walletConnect/index.js +7 -7
  520. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  521. package/__commonjs/__mocks__/accountConfig.js +1 -1
  522. package/__commonjs/__mocks__/index.js +1 -1
  523. package/__commonjs/__mocks__/server.js +1 -1
  524. package/__commonjs/__mocks__/utils/index.js +1 -1
  525. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  526. package/__commonjs/apiCalls/configuration/getApiAddressForChainId.js +1 -1
  527. package/__commonjs/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
  528. package/__commonjs/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
  529. package/__commonjs/apiCalls/configuration/index.js +1 -1
  530. package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
  531. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  532. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  533. package/__commonjs/components/LogoutListener/index.js +1 -1
  534. package/__commonjs/components/ProviderInitializer.js +1 -1
  535. package/__commonjs/constants/network.js +1 -1
  536. package/__commonjs/hooks/account/index.js +1 -1
  537. package/__commonjs/hooks/account/useGetAccountProvider.js +1 -1
  538. package/__commonjs/hooks/index.js +1 -1
  539. package/__commonjs/hooks/login/index.js +1 -1
  540. package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
  541. package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
  542. package/__commonjs/hooks/login/useLoginService.js +1 -1
  543. package/__commonjs/hooks/login/useOperaLogin.js +1 -1
  544. package/__commonjs/hooks/login/useWalletConnectLogin.js +1 -1
  545. package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
  546. package/__commonjs/hooks/login/useWebViewLogin.js +1 -1
  547. package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
  548. package/__commonjs/hooks/signMessage/index.js +1 -1
  549. package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
  550. package/__commonjs/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  551. package/__commonjs/hooks/transactions/useCancelWalletConnectAction.js +1 -1
  552. package/__commonjs/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
  553. package/__commonjs/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  554. package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  555. package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
  556. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  557. package/__commonjs/hooks/transactions/useTrackTransactionStatus.js +1 -1
  558. package/__commonjs/hooks/userInterface/index.js +1 -1
  559. package/__commonjs/hooks/userInterface/useIsDappModalVisible.js +1 -1
  560. package/__commonjs/hooks/websocketListener/index.js +1 -1
  561. package/__commonjs/providers/accountProvider.js +1 -1
  562. package/__commonjs/providers/index.js +1 -1
  563. package/__commonjs/providers/utils.js +1 -1
  564. package/__commonjs/providers/webviewProvider/index.js +1 -1
  565. package/__commonjs/providers/webviewProvider/requestMethods.js +1 -1
  566. package/__commonjs/providers/webviewProvider/webviewProvider.js +1 -1
  567. package/__commonjs/reduxStore/DappProviderContext.js +1 -1
  568. package/__commonjs/reduxStore/commonActions.js +1 -1
  569. package/__commonjs/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  570. package/__commonjs/reduxStore/persistConfig.js +1 -1
  571. package/__commonjs/reduxStore/selectors/accountInfoSelectors.js +1 -1
  572. package/__commonjs/reduxStore/selectors/dappModalsSelectors.js +1 -1
  573. package/__commonjs/reduxStore/selectors/helpers.js +1 -1
  574. package/__commonjs/reduxStore/selectors/loginInfoSelectors.js +1 -1
  575. package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
  576. package/__commonjs/reduxStore/selectors/networkConfigSelectors.js +1 -1
  577. package/__commonjs/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
  578. package/__commonjs/reduxStore/selectors/toastsSelectors.js +1 -1
  579. package/__commonjs/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  580. package/__commonjs/reduxStore/slices/accountInfoSlice.js +1 -1
  581. package/__commonjs/reduxStore/slices/index.js +1 -1
  582. package/__commonjs/reduxStore/slices/modalsSlice.js +1 -1
  583. package/__commonjs/reduxStore/slices/signedMessageInfoSlice.js +1 -1
  584. package/__commonjs/reduxStore/slices/toastsSlice.js +1 -1
  585. package/__commonjs/reduxStore/slices/transactionsInfoSlice.js +1 -1
  586. package/__commonjs/reduxStore/store.js +1 -1
  587. package/__commonjs/services/index.js +1 -1
  588. package/__commonjs/services/nativeAuth/helpers/getLatestBlockHash.js +1 -1
  589. package/__commonjs/services/nativeAuth/helpers/index.js +1 -1
  590. package/__commonjs/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
  591. package/__commonjs/services/nativeAuth/index.js +1 -1
  592. package/__commonjs/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
  593. package/__commonjs/services/nativeAuth/methods/getToken.js +1 -1
  594. package/__commonjs/services/nativeAuth/methods/index.js +1 -1
  595. package/__commonjs/services/nativeAuth/nativeAuth.js +1 -1
  596. package/__commonjs/services/transactions/isCrossShardTransaction.js +1 -1
  597. package/__commonjs/services/transactions/signTransactions.js +1 -1
  598. package/__commonjs/services/transactions/utils.js +1 -1
  599. package/__commonjs/types/enums.types.js +1 -1
  600. package/__commonjs/types/index.js +1 -1
  601. package/__commonjs/utils/account/getAccount.js +1 -1
  602. package/__commonjs/utils/account/getAccountProviderType.js +1 -1
  603. package/__commonjs/utils/account/getAddress.js +1 -1
  604. package/__commonjs/utils/account/getIsProviderEqualTo.js +1 -1
  605. package/__commonjs/utils/account/getLatestNonce.js +1 -1
  606. package/__commonjs/utils/account/index.js +1 -1
  607. package/__commonjs/utils/account/refreshAccount.js +1 -1
  608. package/__commonjs/utils/account/setNonce.js +1 -1
  609. package/__commonjs/utils/account/signMessage.js +1 -1
  610. package/__commonjs/utils/index.js +2 -2
  611. package/__commonjs/utils/logout.js +1 -1
  612. package/__commonjs/utils/operations/calculateFeeLimit.js +1 -1
  613. package/__commonjs/utils/operations/denominate.js +1 -1
  614. package/__commonjs/utils/operations/formatAmount.js +1 -1
  615. package/__commonjs/utils/operations/index.js +1 -1
  616. package/__commonjs/utils/platform/detectCurrentPlatform.js +1 -1
  617. package/__commonjs/utils/smartContracts.js +1 -1
  618. package/__commonjs/utils/toasts/customToastsActions.js +1 -1
  619. package/__commonjs/utils/toasts/index.js +1 -1
  620. package/__commonjs/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
  621. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
  622. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  623. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
  624. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
  625. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
  626. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  627. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  628. package/__commonjs/utils/transactions/getTokenFromData.js +1 -1
  629. package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
  630. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
  631. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
  632. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
  633. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
  634. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
  635. package/__commonjs/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
  636. package/__commonjs/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
  637. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  638. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  639. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
  640. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
  641. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
  642. package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +5 -5
  643. package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
  644. package/__commonjs/utils/transactions/transactionStateByStatus.js +1 -1
  645. package/__commonjs/utils/validation/maxDecimals.js +1 -1
  646. package/__commonjs/web/hooks/index.js +1 -1
  647. package/__commonjs/web/hooks/useIdleTimer.js +1 -1
  648. package/__commonjs/web/index.js +1 -1
  649. package/__commonjs/wrappers/AppInitializer.js +1 -1
  650. package/__commonjs/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  651. package/__commonjs/wrappers/DappProvider/CustomComponents.js +1 -1
  652. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  653. package/__commonjs/wrappers/index.js +1 -1
  654. package/__mocks__/accountConfig.js +1 -1
  655. package/__mocks__/index.js +1 -1
  656. package/__mocks__/server.js +1 -1
  657. package/__mocks__/utils/index.js +1 -1
  658. package/__mocks__/utils/renderWithProvider.js +1 -1
  659. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  660. package/apiCalls/accounts/index.js +1 -1
  661. package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
  662. package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
  663. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  664. package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
  665. package/apiCalls/configuration/index.js +1 -1
  666. package/apiCalls/getScamAddressData.js +1 -1
  667. package/apiCalls/index.js +1 -1
  668. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  669. package/apiCalls/transactions/index.js +1 -1
  670. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  671. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  672. package/apiCalls/utils/index.js +1 -1
  673. package/components/LogoutListener/LogoutListener.js +1 -1
  674. package/components/LogoutListener/helpers/index.js +1 -1
  675. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  676. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  677. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  678. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  679. package/components/LogoutListener/index.js +1 -1
  680. package/components/ProviderInitializer.js +1 -1
  681. package/components/TransactionSender/TransactionSender.js +1 -1
  682. package/components/TransactionSender/index.js +1 -1
  683. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  684. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  685. package/components/TransactionsTracker/index.js +1 -1
  686. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  687. package/constants/index.js +1 -1
  688. package/constants/network.js +1 -1
  689. package/hooks/account/index.js +1 -1
  690. package/hooks/account/useGetAccount.js +1 -1
  691. package/hooks/account/useGetAccountInfo.js +1 -1
  692. package/hooks/account/useGetAccountProvider.js +1 -1
  693. package/hooks/account/useGetIsLoggedIn.js +1 -1
  694. package/hooks/account/useGetLoginInfo.js +1 -1
  695. package/hooks/account/useGetWebsocketEvent.js +1 -1
  696. package/hooks/index.js +1 -1
  697. package/hooks/login/index.js +1 -1
  698. package/hooks/login/useExtensionLogin.js +1 -1
  699. package/hooks/login/useLedgerLogin.js +1 -1
  700. package/hooks/login/useLoginService.js +1 -1
  701. package/hooks/login/useOperaLogin.js +1 -1
  702. package/hooks/login/useWalletConnectLogin.js +1 -1
  703. package/hooks/login/useWalletConnectV2Login.js +1 -1
  704. package/hooks/login/useWebViewLogin.js +1 -1
  705. package/hooks/login/useWebWalletLogin.js +1 -1
  706. package/hooks/signMessage/index.js +1 -1
  707. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  708. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  709. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  710. package/hooks/signMessage/useSignMessage.js +1 -1
  711. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  712. package/hooks/transactions/helpers/index.js +1 -1
  713. package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  714. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  715. package/hooks/transactions/index.js +1 -1
  716. package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
  717. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  718. package/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
  719. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  720. package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
  721. package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  722. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  723. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  724. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  725. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  726. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  727. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  728. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  729. package/hooks/transactions/useGetTokenDetails.js +1 -1
  730. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  731. package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  732. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  733. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  734. package/hooks/transactions/useSignTransactions.js +1 -1
  735. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  736. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  737. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  738. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  739. package/hooks/useGetNetworkConfig.js +1 -1
  740. package/hooks/useGetNotification.js +1 -1
  741. package/hooks/userInterface/index.js +1 -1
  742. package/hooks/userInterface/useIsDappModalVisible.js +1 -1
  743. package/hooks/websocketListener/index.js +1 -1
  744. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  745. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  746. package/models/index.js +1 -1
  747. package/models/newTransaction.js +1 -1
  748. package/package.json +2 -2
  749. package/providers/accountProvider.js +1 -1
  750. package/providers/index.js +1 -1
  751. package/providers/utils.js +1 -1
  752. package/providers/webviewProvider/index.js +1 -1
  753. package/providers/webviewProvider/requestMethods.js +1 -1
  754. package/providers/webviewProvider/webviewProvider.js +1 -1
  755. package/reduxStore/DappProviderContext.js +1 -1
  756. package/reduxStore/commonActions.js +1 -1
  757. package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  758. package/reduxStore/persistConfig.js +1 -1
  759. package/reduxStore/persistedRootReducer.d.ts +1 -1
  760. package/reduxStore/persistedRootReducer.js +1 -1
  761. package/reduxStore/reducers.js +1 -1
  762. package/reduxStore/rootReducer.js +1 -1
  763. package/reduxStore/selectors/accountInfoSelectors.js +1 -1
  764. package/reduxStore/selectors/dappModalsSelectors.js +1 -1
  765. package/reduxStore/selectors/helpers.js +1 -1
  766. package/reduxStore/selectors/index.js +1 -1
  767. package/reduxStore/selectors/loginInfoSelectors.js +1 -1
  768. package/reduxStore/selectors/modalsSelectors.js +1 -1
  769. package/reduxStore/selectors/networkConfigSelectors.js +1 -1
  770. package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
  771. package/reduxStore/selectors/toastsSelectors.js +1 -1
  772. package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  773. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  774. package/reduxStore/slices/accountInfoSlice.js +1 -1
  775. package/reduxStore/slices/dappModalsSlice.js +1 -1
  776. package/reduxStore/slices/index.js +1 -1
  777. package/reduxStore/slices/loginInfoSlice.js +1 -1
  778. package/reduxStore/slices/modalsSlice.js +1 -1
  779. package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
  780. package/reduxStore/slices/toastsSlice.js +1 -1
  781. package/reduxStore/slices/transactionsInfoSlice.js +1 -1
  782. package/reduxStore/slices/transactionsSlice.js +1 -1
  783. package/reduxStore/store.js +1 -1
  784. package/services/index.js +1 -1
  785. package/services/nativeAuth/helpers/getLatestBlockHash.d.ts +1 -1
  786. package/services/nativeAuth/helpers/getLatestBlockHash.js +1 -1
  787. package/services/nativeAuth/helpers/index.js +1 -1
  788. package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
  789. package/services/nativeAuth/index.js +1 -1
  790. package/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
  791. package/services/nativeAuth/methods/getToken.js +1 -1
  792. package/services/nativeAuth/methods/index.js +1 -1
  793. package/services/nativeAuth/nativeAuth.js +1 -1
  794. package/services/transactions/clearTransactions.js +1 -1
  795. package/services/transactions/index.js +1 -1
  796. package/services/transactions/isCrossShardTransaction.js +1 -1
  797. package/services/transactions/sendTransactions.js +1 -1
  798. package/services/transactions/signTransactions.js +1 -1
  799. package/services/transactions/transformAndSignTransactions.js +1 -1
  800. package/services/transactions/utils.js +1 -1
  801. package/types/enums.types.d.ts +2 -1
  802. package/types/enums.types.js +1 -1
  803. package/types/index.js +1 -1
  804. package/types/login.types.d.ts +1 -0
  805. package/types/login.types.js +1 -1
  806. package/utils/account/getAccount.js +1 -1
  807. package/utils/account/getAccountBalance.js +1 -1
  808. package/utils/account/getAccountProviderType.js +1 -1
  809. package/utils/account/getAccountShard.js +1 -1
  810. package/utils/account/getAddress.js +1 -1
  811. package/utils/account/getIsProviderEqualTo.js +1 -1
  812. package/utils/account/getLatestNonce.js +1 -1
  813. package/utils/account/getShardOfAddress.js +1 -1
  814. package/utils/account/index.js +1 -1
  815. package/utils/account/loginWithExternalProvider.js +1 -1
  816. package/utils/account/refreshAccount.js +1 -1
  817. package/utils/account/setNonce.js +1 -1
  818. package/utils/account/signMessage.js +1 -1
  819. package/utils/getIsLoggedIn.js +1 -1
  820. package/utils/index.js +1 -1
  821. package/utils/logout.js +1 -1
  822. package/utils/network/getChainID.js +1 -1
  823. package/utils/network/getEgldLabel.js +1 -1
  824. package/utils/network/getNetworkConfig.js +1 -1
  825. package/utils/network/index.js +1 -1
  826. package/utils/operations/calculateFeeLimit.js +1 -1
  827. package/utils/operations/denominate.js +1 -1
  828. package/utils/operations/formatAmount.js +1 -1
  829. package/utils/operations/index.js +1 -1
  830. package/utils/operations/nominate.js +1 -1
  831. package/utils/operations/parseAmount.js +1 -1
  832. package/utils/platform/detectCurrentPlatform.js +1 -1
  833. package/utils/smartContracts.js +1 -1
  834. package/utils/toasts/customToastsActions.js +1 -1
  835. package/utils/toasts/index.js +1 -1
  836. package/utils/transactions/getAllTransactionsLink.js +1 -1
  837. package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
  838. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  839. package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
  840. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  841. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
  842. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
  843. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
  844. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
  845. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
  846. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  847. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  848. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  849. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  850. package/utils/transactions/getTokenFromData.js +1 -1
  851. package/utils/transactions/getTransactionLink.js +1 -1
  852. package/utils/transactions/index.js +1 -1
  853. package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
  854. package/utils/transactions/parseTransactionAfterSigning.js +1 -1
  855. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
  856. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
  857. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
  858. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
  859. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
  860. package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
  861. package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
  862. package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  863. package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  864. package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
  865. package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
  866. package/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
  867. package/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
  868. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  869. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
  870. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
  871. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
  872. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
  873. package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
  874. package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
  875. package/utils/transactions/transactionStateByStatus.js +1 -1
  876. package/utils/validation/index.js +1 -1
  877. package/utils/validation/maxDecimals.js +1 -1
  878. package/utils/validation/stringIsFloat.js +1 -1
  879. package/web/hooks/index.js +1 -1
  880. package/web/hooks/useIdleTimer.js +1 -1
  881. package/web/index.js +1 -1
  882. package/wrappers/AppInitializer.js +1 -1
  883. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  884. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  885. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  886. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  887. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  888. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  889. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  890. package/wrappers/DappProvider/CustomComponents.js +1 -1
  891. package/wrappers/DappProvider/index.js +1 -1
  892. package/wrappers/index.js +1 -1
  893. package/__chunks__/chunk-3EYFCRQJ.js +0 -2
  894. package/__chunks__/chunk-3F3J26IL.js +0 -2
  895. package/__chunks__/chunk-3LTTE7Z4.js +0 -2
  896. package/__chunks__/chunk-3XYPMC5Z.js +0 -2
  897. package/__chunks__/chunk-3YOLWVYN.js +0 -2
  898. package/__chunks__/chunk-42BPBN4G.js +0 -2
  899. package/__chunks__/chunk-43CTUMZY.js +0 -2
  900. package/__chunks__/chunk-573MD3HA.js +0 -2
  901. package/__chunks__/chunk-7CRYWUS6.js +0 -2
  902. package/__chunks__/chunk-7NADEOVW.js +0 -2
  903. package/__chunks__/chunk-7ZZWUK5N.js +0 -2
  904. package/__chunks__/chunk-A4RZQEKA.js +0 -2
  905. package/__chunks__/chunk-AJVN5NMC.js +0 -2
  906. package/__chunks__/chunk-BQOSJ42S.js +0 -2
  907. package/__chunks__/chunk-BQY4YEPO.js +0 -2
  908. package/__chunks__/chunk-CKRLCHHT.js +0 -2
  909. package/__chunks__/chunk-CX7JJAI7.js +0 -2
  910. package/__chunks__/chunk-D3DU3GYZ.js +0 -2
  911. package/__chunks__/chunk-FAPWAQOI.js +0 -2
  912. package/__chunks__/chunk-FLNAHHFO.js +0 -2
  913. package/__chunks__/chunk-G4FTNX3C.js +0 -2
  914. package/__chunks__/chunk-GNJAE3HJ.js +0 -2
  915. package/__chunks__/chunk-GQMTJB4L.js +0 -2
  916. package/__chunks__/chunk-JAEDB3IA.js +0 -2
  917. package/__chunks__/chunk-KCCZWHLF.js +0 -2
  918. package/__chunks__/chunk-KQCX4VG2.js +0 -2
  919. package/__chunks__/chunk-KQF4EULM.js +0 -2
  920. package/__chunks__/chunk-KX4VZFVE.js +0 -2
  921. package/__chunks__/chunk-LG6WIZHT.js +0 -2
  922. package/__chunks__/chunk-LM64ZHBF.js +0 -2
  923. package/__chunks__/chunk-MAPKARLD.js +0 -2
  924. package/__chunks__/chunk-N7H3FMAE.js +0 -2
  925. package/__chunks__/chunk-P2E3TG5U.js +0 -2
  926. package/__chunks__/chunk-PURPYWQM.js +0 -2
  927. package/__chunks__/chunk-RBHVYE2Y.js +0 -2
  928. package/__chunks__/chunk-RGJUSITX.js +0 -2
  929. package/__chunks__/chunk-RQ5KJRJY.js +0 -2
  930. package/__chunks__/chunk-S6DXOR2S.js +0 -2
  931. package/__chunks__/chunk-SCCXHHWP.js +0 -2
  932. package/__chunks__/chunk-SPNCRNER.js +0 -2
  933. package/__chunks__/chunk-T6SOZMFL.js +0 -2
  934. package/__chunks__/chunk-TGSNOZEZ.js +0 -2
  935. package/__chunks__/chunk-TTS3WFEE.js +0 -2
  936. package/__chunks__/chunk-UC3M6BHM.js +0 -2
  937. package/__chunks__/chunk-WALAONSP.js +0 -2
  938. package/__chunks__/chunk-XCBMXPY5.js +0 -2
  939. package/__chunks__/chunk-Y3CLO3PP.js +0 -2
  940. package/__chunks__/chunk-YA6SZOY2.js +0 -2
  941. package/__chunks__/chunk-YBGCB57C.js +0 -2
  942. package/__chunks__/chunk-Z4BLO2TH.js +0 -2
  943. package/__chunks__/chunk-Z6WGQSRM.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var Uo=Object.create;var fe=Object.defineProperty,$o=Object.defineProperties,Vo=Object.getOwnPropertyDescriptor,Wo=Object.getOwnPropertyDescriptors,Go=Object.getOwnPropertyNames,De=Object.getOwnPropertySymbols,Ho=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable;var gr=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))yt.call(t,r)&&gr(e,r,t[r]);if(De)for(var r of De(t))mr.call(t,r)&&gr(e,r,t[r]);return e},S=(e,t)=>$o(e,Wo(t));var fr=(e,t)=>{var r={};for(var o in e)yt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&De)for(var o of De(e))t.indexOf(o)<0&&mr.call(e,o)&&(r[o]=e[o]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oe=(e,t)=>{for(var r in t)fe(e,r,{get:t[r],enumerable:!0})},Tr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Go(t))!yt.call(e,i)&&i!==r&&fe(e,i,{get:()=>t[i],enumerable:!(o=Vo(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Uo(Ho(e)):{},Tr(t||!e||!e.__esModule?fe(r,"default",{value:e,enumerable:!0}):r,e)),Te=e=>Tr(fe({},"__esModule",{value:!0}),e);var J=(e,t,r)=>new Promise((o,i)=>{var p=d=>{try{g(r.next(d))}catch(T){i(T)}},l=d=>{try{g(r.throw(d))}catch(T){i(T)}},g=d=>d.done?o(d.value):Promise.resolve(d.value).then(p,l);g((r=r.apply(e,t)).next())});var xr=Ne(Re=>{"use strict";n();Re.byteLength=zo;Re.toByteArray=Ko;Re.fromByteArray=Xo;var U=[],P=[],qo=typeof Uint8Array!="undefined"?Uint8Array:Array,ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ie=0,yr=ht.length;ie<yr;++ie)U[ie]=ht[ie],P[ht.charCodeAt(ie)]=ie;var ie,yr;P["-".charCodeAt(0)]=62;P["_".charCodeAt(0)]=63;function hr(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 o=r===t?0:4-r%4;return[r,o]}function zo(e){var t=hr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function jo(e,t,r){return(t+r)*3/4-r}function Ko(e){var t,r=hr(e),o=r[0],i=r[1],p=new qo(jo(e,o,i)),l=0,g=i>0?o-4:o,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)],p[l++]=t>>16&255,p[l++]=t>>8&255,p[l++]=t&255;return i===2&&(t=P[e.charCodeAt(d)]<<2|P[e.charCodeAt(d+1)]>>4,p[l++]=t&255),i===1&&(t=P[e.charCodeAt(d)]<<10|P[e.charCodeAt(d+1)]<<4|P[e.charCodeAt(d+2)]>>2,p[l++]=t>>8&255,p[l++]=t&255),p}function Yo(e){return U[e>>18&63]+U[e>>12&63]+U[e>>6&63]+U[e&63]}function Zo(e,t,r){for(var o,i=[],p=t;p<r;p+=3)o=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),i.push(Yo(o));return i.join("")}function Xo(e){for(var t,r=e.length,o=r%3,i=[],p=16383,l=0,g=r-o;l<g;l+=p)i.push(Zo(e,l,l+p>g?g:l+p));return o===1?(t=e[r-1],i.push(U[t>>2]+U[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(U[t>>10]+U[t>>4&63]+U[t<<2&63]+"=")),i.join("")}});var Sr=Ne(xt=>{n();xt.read=function(e,t,r,o,i){var p,l,g=i*8-o-1,d=(1<<g)-1,T=d>>1,h=-7,y=r?i-1:0,k=r?-1:1,L=e[t+y];for(y+=k,p=L&(1<<-h)-1,L>>=-h,h+=g;h>0;p=p*256+e[t+y],y+=k,h-=8);for(l=p&(1<<-h)-1,p>>=-h,h+=o;h>0;l=l*256+e[t+y],y+=k,h-=8);if(p===0)p=1-T;else{if(p===d)return l?NaN:(L?-1:1)*(1/0);l=l+Math.pow(2,o),p=p-T}return(L?-1:1)*l*Math.pow(2,p-o)};xt.write=function(e,t,r,o,i,p){var l,g,d,T=p*8-i-1,h=(1<<T)-1,y=h>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=o?0:p-1,Q=o?1:-1,q=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,l=h):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+y>=1?t+=k/d:t+=k*Math.pow(2,1-y),t*d>=2&&(l++,d/=2),l+y>=h?(g=0,l=h):l+y>=1?(g=(t*d-1)*Math.pow(2,i),l=l+y):(g=t*Math.pow(2,y-1)*Math.pow(2,i),l=0));i>=8;e[r+L]=g&255,L+=Q,g/=256,i-=8);for(l=l<<i|g,T+=i;T>0;e[r+L]=l&255,L+=Q,l/=256,T-=8);e[r+L-Q]|=q*128}});var Pr=Ne(ue=>{"use strict";n();var St=xr(),pe=Sr(),wr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ue.Buffer=u;ue.SlowBuffer=ni;ue.INSPECT_MAX_BYTES=50;var Ce=2147483647;ue.kMaxLength=Ce;u.TYPED_ARRAY_SUPPORT=Qo();!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 Qo(){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 z(e){if(e>Ce)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 vt(e)}return vr(e,t,r)}u.poolSize=8192;function vr(e,t,r){if(typeof e=="string")return ei(e,t);if(ArrayBuffer.isView(e))return ti(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($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&($(e,SharedArrayBuffer)||e&&$(e.buffer,SharedArrayBuffer)))return At(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=ri(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 vr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Ir(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 Jo(e,t,r){return Ir(e),e<=0?z(e):t!==void 0?typeof r=="string"?z(e).fill(t,r):z(e).fill(t):z(e)}u.alloc=function(e,t,r){return Jo(e,t,r)};function vt(e){return Ir(e),z(e<0?0:It(e)|0)}u.allocUnsafe=function(e){return vt(e)};u.allocUnsafeSlow=function(e){return vt(e)};function ei(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Er(e,t)|0,o=z(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function wt(e){for(var t=e.length<0?0:It(e.length)|0,r=z(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function ti(e){if($(e,Uint8Array)){var t=new Uint8Array(e);return At(t.buffer,t.byteOffset,t.byteLength)}return wt(e)}function At(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 o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function ri(e){if(u.isBuffer(e)){var t=It(e.length)|0,r=z(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Et(e.length)?z(0):wt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return wt(e.data)}function It(e){if(e>=Ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ce.toString(16)+" bytes");return e|0}function ni(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($(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),$(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 o=t.length,i=r.length,p=0,l=Math.min(o,i);p<l;++p)if(t[p]!==r[p]){o=t[p],i=r[p];break}return o<i?-1:i<o?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 o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),p=0;for(o=0;o<t.length;++o){var l=t[o];if($(l,Uint8Array))p+l.length>i.length?u.from(l).copy(i,p):Uint8Array.prototype.set.call(i,l,p);else if(u.isBuffer(l))l.copy(i,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=l.length}return i};function Er(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(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,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return bt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Cr(e).length;default:if(i)return o?-1:bt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Er;function oi(e,t,r){var o=!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 mi(this,t,r);case"utf8":case"utf-8":return Lr(this,t,r);case"ascii":return di(this,t,r);case"latin1":case"binary":return gi(this,t,r);case"base64":return pi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fi(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function se(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}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)se(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)se(this,r,r+3),se(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)se(this,r,r+7),se(this,r+1,r+6),se(this,r+2,r+5),se(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Lr(this,0,t):oi.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=ue.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};wr&&(u.prototype[wr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,p){if($(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),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),p===void 0&&(p=this.length),r<0||o>t.length||i<0||p>this.length)throw new RangeError("out of range index");if(i>=p&&r>=o)return 0;if(i>=p)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,p>>>=0,this===t)return 0;for(var l=p-i,g=o-r,d=Math.min(l,g),T=this.slice(i,p),h=t.slice(r,o),y=0;y<d;++y)if(T[y]!==h[y]){l=T[y],g=h[y];break}return l<g?-1:g<l?1:0};function kr(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Et(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,o)),u.isBuffer(t))return t.length===0?-1:Ar(e,t,r,o,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):Ar(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Ar(e,t,r,o,i){var p=1,l=e.length,g=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;p=2,l/=2,g/=2,r/=2}function d(L,Q){return p===1?L[Q]:L.readUInt16BE(Q*p)}var T;if(i){var h=-1;for(T=r;T<l;T++)if(d(e,T)===d(t,h===-1?0:T-h)){if(h===-1&&(h=T),T-h+1===g)return h*p}else h!==-1&&(T-=T-h),h=-1}else for(r+g>l&&(r=l-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,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return kr(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return kr(this,t,r,o,!1)};function ii(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var p=t.length;o>p/2&&(o=p/2);for(var l=0;l<o;++l){var g=parseInt(t.substr(l*2,2),16);if(Et(g))return l;e[r+l]=g}return l}function si(e,t,r,o){return Pe(bt(t,e.length-r),e,r,o)}function ai(e,t,r,o){return Pe(hi(t),e,r,o)}function ci(e,t,r,o){return Pe(Cr(t),e,r,o)}function li(e,t,r,o){return Pe(xi(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-r;if((o===void 0||o>p)&&(o=p),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var l=!1;;)switch(i){case"hex":return ii(this,t,r,o);case"utf8":case"utf-8":return si(this,t,r,o);case"ascii":case"latin1":case"binary":return ai(this,t,r,o);case"base64":return ci(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return li(this,t,r,o);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pi(e,t,r){return t===0&&r===e.length?St.fromByteArray(e):St.fromByteArray(e.slice(t,r))}function Lr(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var p=e[i],l=null,g=p>239?4:p>223?3:p>191?2:1;if(i+g<=r){var d,T,h,y;switch(g){case 1:p<128&&(l=p);break;case 2:d=e[i+1],(d&192)===128&&(y=(p&31)<<6|d&63,y>127&&(l=y));break;case 3:d=e[i+1],T=e[i+2],(d&192)===128&&(T&192)===128&&(y=(p&15)<<12|(d&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(l=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=(p&15)<<18|(d&63)<<12|(T&63)<<6|h&63,y>65535&&y<1114112&&(l=y))}}l===null?(l=65533,g=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|l&1023),o.push(l),i+=g}return ui(o)}var br=4096;function ui(e){var t=e.length;if(t<=br)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=br));return r}function di(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function gi(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function mi(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",p=t;p<r;++p)i+=Si[e[p]];return i}function fi(e,t,r){for(var o=e.slice(t,r),i="",p=0;p<o.length-1;p+=2)i+=String.fromCharCode(o[p]+o[p+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function v(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,o){t=t>>>0,r=r>>>0,o||v(t,r,this.length);for(var i=this[t],p=1,l=0;++l<r&&(p*=256);)i+=this[t+l]*p;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||v(t,r,this.length);for(var i=this[t+--r],p=1;r>0&&(p*=256);)i+=this[t+--r]*p;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||v(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||v(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||v(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||v(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||v(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||v(t,r,this.length);for(var i=this[t],p=1,l=0;++l<r&&(p*=256);)i+=this[t+l]*p;return p*=128,i>=p&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||v(t,r,this.length);for(var i=r,p=1,l=this[t+--i];i>0&&(p*=256);)l+=this[t+--i]*p;return p*=128,l>=p&&(l-=Math.pow(2,8*r)),l};u.prototype.readInt8=function(t,r){return t=t>>>0,r||v(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||v(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||v(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||v(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||v(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||v(t,4,this.length),pe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||v(t,4,this.length),pe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||v(t,8,this.length),pe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||v(t,8,this.length),pe.read(this,t,!1,52,8)};function N(e,t,r,o,i,p){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<p)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var p=Math.pow(2,8*o)-1;N(this,t,r,o,p,0)}var l=1,g=0;for(this[r]=t&255;++g<o&&(l*=256);)this[r+g]=t/l&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var p=Math.pow(2,8*o)-1;N(this,t,r,o,p,0)}var l=o-1,g=1;for(this[r+l]=t&255;--l>=0&&(g*=256);)this[r+l]=t/g&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||N(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||N(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,o){return t=+t,r=r>>>0,o||N(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,o){return t=+t,r=r>>>0,o||N(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,o){return t=+t,r=r>>>0,o||N(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,o,i){if(t=+t,r=r>>>0,!i){var p=Math.pow(2,8*o-1);N(this,t,r,o,p-1,-p)}var l=0,g=1,d=0;for(this[r]=t&255;++l<o&&(g*=256);)t<0&&d===0&&this[r+l-1]!==0&&(d=1),this[r+l]=(t/g>>0)-d&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var p=Math.pow(2,8*o-1);N(this,t,r,o,p-1,-p)}var l=o-1,g=1,d=0;for(this[r+l]=t&255;--l>=0&&(g*=256);)t<0&&d===0&&this[r+l+1]!==0&&(d=1),this[r+l]=(t/g>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||N(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||N(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||N(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||N(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,o){return t=+t,r=r>>>0,o||N(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 Dr(e,t,r,o,i,p){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Nr(e,t,r,o,i){return t=+t,r=r>>>0,i||Dr(e,t,r,4,34028234663852886e22,-34028234663852886e22),pe.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Nr(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Nr(this,t,r,!1,o)};function Rr(e,t,r,o,i){return t=+t,r=r>>>0,i||Dr(e,t,r,8,17976931348623157e292,-17976931348623157e292),pe.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return Rr(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return Rr(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=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-o&&(i=t.length-r+o);var p=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),p};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=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 p=t.charCodeAt(0);(i==="utf8"&&p<128||i==="latin1")&&(t=p)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var l;if(typeof t=="number")for(l=r;l<o;++l)this[l]=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(l=0;l<o-r;++l)this[l+r]=g[l%d]}return this};var Ti=/[^+/0-9A-Za-z-_]/g;function yi(e){if(e=e.split("=")[0],e=e.trim().replace(Ti,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function bt(e,t){t=t||1/0;for(var r,o=e.length,i=null,p=[],l=0;l<o;++l){if(r=e.charCodeAt(l),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&p.push(239,191,189);continue}else if(l+1===o){(t-=3)>-1&&p.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&p.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&p.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;p.push(r)}else if(r<2048){if((t-=2)<0)break;p.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;p.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;p.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return p}function hi(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function xi(e,t){for(var r,o,i,p=[],l=0;l<e.length&&!((t-=2)<0);++l)r=e.charCodeAt(l),o=r>>8,i=r%256,p.push(i),p.push(o);return p}function Cr(e){return St.toByteArray(yi(e))}function Pe(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function $(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Et(e){return e!==e}var Si=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var Br=Ne((aa,Fr)=>{n();var w=Fr.exports={},V,W;function kt(){throw new Error("setTimeout has not been defined")}function Lt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?V=setTimeout:V=kt}catch(e){V=kt}try{typeof clearTimeout=="function"?W=clearTimeout:W=Lt}catch(e){W=Lt}})();function _r(e){if(V===setTimeout)return setTimeout(e,0);if((V===kt||!V)&&setTimeout)return V=setTimeout,setTimeout(e,0);try{return V(e,0)}catch(t){try{return V.call(null,e,0)}catch(r){return V.call(this,e,0)}}}function wi(e){if(W===clearTimeout)return clearTimeout(e);if((W===Lt||!W)&&clearTimeout)return W=clearTimeout,clearTimeout(e);try{return W(e)}catch(t){try{return W.call(null,e)}catch(r){return W.call(this,e)}}}var j=[],de=!1,ae,_e=-1;function Ai(){!de||!ae||(de=!1,ae.length?j=ae.concat(j):_e=-1,j.length&&Mr())}function Mr(){if(!de){var e=_r(Ai);de=!0;for(var t=j.length;t;){for(ae=j,j=[];++_e<t;)ae&&ae[_e].run();_e=-1,t=j.length}ae=null,de=!1,wi(e)}}w.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];j.push(new Or(e,t)),j.length===1&&!de&&_r(Mr)};function Or(e,t){this.fun=e,this.array=t}Or.prototype.run=function(){this.fun.apply(null,this.array)};w.title="browser";w.browser=!0;w.env={};w.argv=[];w.version="";w.versions={};function K(){}w.on=K;w.addListener=K;w.once=K;w.off=K;w.removeListener=K;w.removeAllListeners=K;w.emit=K;w.prependListener=K;w.prependOnceListener=K;w.listeners=function(e){return[]};w.binding=function(e){throw new Error("process.binding is not supported")};w.cwd=function(){return"/"};w.chdir=function(e){throw new Error("process.chdir is not supported")};w.umask=function(){return 0}});var s,a,ca,n=f(()=>{s=A(Pr()),a=A(Br()),ca=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}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 Ur=f(()=>{"use strict";n()});var $r=f(()=>{"use strict";n()});var Vr=f(()=>{"use strict";n()});var Wr=f(()=>{"use strict";n()});var _=f(()=>{"use strict";n()});var Gr=f(()=>{"use strict";n()});var Hr=f(()=>{"use strict";n()});var D=f(()=>{"use strict";n()});var qr=f(()=>{"use strict";n()});var zr=f(()=>{"use strict";n()});var M=f(()=>{"use strict";n();$r();Vr();Wr();_();Gr();Hr();D();qr();zr()});var Dt,jr,ka,Kr,La,Yr,Da,Na,Ra,Zr=f(()=>{"use strict";n();M();Dt={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:jr,egldLabel:ka}=Dt["devnet"],{chainId:Kr,egldLabel:La}=Dt["testnet"],{chainId:Yr,egldLabel:Da}=Dt["mainnet"],Na={["devnet"]:jr,["testnet"]:Kr,["mainnet"]:Yr},Ra={[jr]:"devnet",[Kr]:"testnet",[Yr]:"mainnet"}});var Nt=f(()=>{"use strict";n()});var Xr=f(()=>{"use strict";n()});var Qr,Rt=f(()=>{"use strict";n();Qr="transaction-status-toast-id"});var G,Jr=f(()=>{"use strict";n();G=require("@multiversx/sdk-web-wallet-provider")});var Ct,Pt,en,Me,tn,ge,b=f(()=>{"use strict";n();Ur();Zr();Nt();Xr();Rt();Jr();Ct=5e4,Pt=1e9,en=1,Me="logout",tn="login",ge="0"});var Mt,I,he,F=f(()=>{"use strict";n();Mt=require("@reduxjs/toolkit");b();I=(0,Mt.createAction)(Me),he=(0,Mt.createAction)(tn,e=>({payload:e}))});var Be,Ot=f(()=>{"use strict";n();Be=()=>Date.now()/1e3});var ln=f(()=>{"use strict";n()});var pn=f(()=>{"use strict";n()});var un=f(()=>{"use strict";n();Ot();ln();pn()});var Bt={};oe(Bt,{getItem:()=>Ii,localStorageKeys:()=>B,removeItem:()=>Ei,setItem:()=>vi});var B,Ft,vi,Ii,Ei,me=f(()=>{"use strict";n();un();B={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Ft=typeof localStorage!="undefined",vi=({key:e,data:t,expires:r})=>{!Ft||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ii=e=>{if(!Ft)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:Be()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Ei=e=>{!Ft||localStorage.removeItem(String(e))}});var Ut={};oe(Ut,{clear:()=>fn,getItem:()=>gn,removeItem:()=>mn,setItem:()=>dn,storage:()=>ki});var dn,gn,mn,fn,ki,Tn=f(()=>{"use strict";n();dn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},gn=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},mn=e=>sessionStorage.removeItem(String(e)),fn=()=>sessionStorage.clear(),ki={setItem:dn,getItem:gn,removeItem:mn,clear:fn}});var H,xe=f(()=>{"use strict";n();me();Tn();H={session:Ut,local:Bt}});var Vt,yn,hn,Ue,$t,xn,Wt,yc,Gt,hc,xc,Sc,wc,Ac,bc,vc,$e,Ve=f(()=>{"use strict";n();Vt=require("@multiversx/sdk-core"),yn=require("@reduxjs/toolkit"),hn=require("redux-persist");b();xe();me();F();Ue={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ge},$t={address:"",websocketEvent:null,accounts:{"":Ue},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},xn=(0,yn.createSlice)({name:"accountInfoSlice",initialState:$t,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Vt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Ue},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(I,()=>(H.local.removeItem(B.loginExpiresAt),$t)),e.addCase(he,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Vt.Address(o).hex()}),e.addCase(hn.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:o}=r.payload,{address:i,shard:p,accounts:l,publicKey:g}=o;t.address=i,t.shard=p;let d=l&&i in l;t.accounts=d?l:$t.accounts,t.publicKey=g})}}),{setAccount:Wt,setAddress:yc,setAccountNonce:Gt,setAccountShard:hc,setLedgerAccount:xc,updateLedgerAccount:Sc,setWalletConnectAccount:wc,setIsAccountLoading:Ac,setAccountLoadingError:bc,setWebsocketEvent:vc}=xn.actions,$e=xn.reducer});function Se(){return new Date().setHours(new Date().getHours()+24)}function we(e){H.local.setItem({key:B.loginExpiresAt,data:e,expires:e})}var Ht=f(()=>{"use strict";n();xe();me()});var wn,Sn,An,_c,Mc,Oc,Fc,Bc,Uc,bn,$c,We,Ge=f(()=>{"use strict";n();wn=require("@reduxjs/toolkit");Ht();_();F();Sn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},An=(0,wn.createSlice)({name:"loginInfoSlice",initialState:Sn,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(I,()=>Sn),e.addCase(he,(t,r)=>{t.loginMethod=r.payload.loginMethod,we(Se())})}}),{setLoginMethod:_c,setWalletConnectLogin:Mc,setLedgerLogin:Oc,setTokenLogin:Fc,setTokenLoginSignature:Bc,setWalletLogin:Uc,invalidateLoginSession:bn,setLogoutRoute:$c}=An.actions,We=An.reducer});var In,vn,En,Hc,qc,zc,jc,He,qe=f(()=>{"use strict";n();In=require("@reduxjs/toolkit");F();vn={},En=(0,In.createSlice)({name:"modalsSlice",initialState:vn,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(I,()=>vn)}}),{setTxSubmittedModal:Hc,setNotificationModal:qc,clearTxSubmittedModal:zc,clearNotificationModal:jc}=En.actions,He=En.reducer});var kn,Ln,qt,zt=f(()=>{"use strict";n();kn=!1,Ln=(e=!0)=>{kn=e},qt=(e,t=0)=>{kn||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});var Dn=f(()=>{"use strict";n();zt()});function jt(e){return e[Math.floor(Math.random()*e.length)]}var Nn=f(()=>{"use strict";n()});var Rn=f(()=>{"use strict";n();Nt()});var Cn=f(()=>{"use strict";n();Dn();Nn();Rn()});var Pn,_n,Kt,Li,Mn,cl,ll,ze,je=f(()=>{"use strict";n();Pn=require("@reduxjs/toolkit"),_n=A(require("lodash.omit"));Cn();Kt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Li={network:Kt,chainID:"-1"},Mn=(0,Pn.createSlice)({name:"appConfig",initialState:Li,reducers:{initializeNetworkConfig:(e,t)=>{let r=jt(t.payload.walletConnectBridgeAddresses),o=jt(t.payload.walletConnectV2RelayAddresses),i=(0,_n.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:cl,setChainID:ll}=Mn.actions,ze=Mn.reducer});var On,Yt,Fn,fl,Tl,yl,Ke,Ye=f(()=>{"use strict";n();On=require("@reduxjs/toolkit");M();F();Yt={isSigning:!1,signedSessions:{}},Fn=(0,On.createSlice)({name:"signedMessageInfoSliceState",initialState:Yt,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return S(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:S(x({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Yt},extraReducers:e=>{e.addCase(I,()=>Yt)}}),{setSignSession:fl,clearSignedMessageInfo:Tl,setSignSessionState:yl}=Fn.actions,Ke=Fn.reducer});var Un,$n,Bn,Vn,Il,El,kl,Ll,Dl,Nl,Ze,Xe=f(()=>{"use strict";n();Un=require("@reduxjs/toolkit"),$n=require("redux-persist");Rt();M();Ot();F();Bn={customToasts:[],transactionToasts:[],failTransactionToast:null},Vn=(0,Un.createSlice)({name:"toastsSlice",initialState:Bn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(S(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:Be(),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=S(x({},t.payload),{toastId:Qr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(I,()=>Bn),e.addCase($n.REHYDRATE,(t,r)=>{var i,p;let o=(p=(i=r.customToasts)==null?void 0:i.filter(l=>!("component"in l)))!=null?p:[];t.customToasts=o})}}),{addCustomToast:Il,removeCustomToast:El,addTransactionToast:kl,removeTransactionToast:Ll,addFailTransactionToast:Dl,removeFailTransactionToast:Nl}=Vn.actions,Ze=Vn.reducer});var Wn,Xt,Qt,Jt,Di,Zt,Gn,_l,Ml,Ol,Qe,Je=f(()=>{"use strict";n();Wn=require("@reduxjs/toolkit");F();Xt="Transaction failed",Qt="Transaction successful",Jt="Processing transaction",Di="Transaction submitted",Zt={},Gn=(0,Wn.createSlice)({name:"transactionsInfo",initialState:Zt,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Xt,successMessage:(o==null?void 0:o.successMessage)||Qt,processingMessage:(o==null?void 0:o.processingMessage)||Jt,submittedMessage:(o==null?void 0:o.submittedMessage)||Di,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Zt},extraReducers:e=>{e.addCase(I,()=>Zt)}}),{clearTransactionsInfo:_l,setTransactionsDisplayInfo:Ml,clearTransactionsInfoForSessionId:Ol}=Gn.actions,Qe=Gn.reducer});function Hn(e){return e!=null&&(Bi(e)||Wi(e))}function et(e){return e!=null&&(Ui(e)||Gi(e))}function tt(e){return e!=null&&($i(e)||Hi(e))}function qn(e){return e!=null&&Vi(e)}function Bi(e){return e!=null&&Ri.includes(e)}function Ui(e){return e!=null&&Ci.includes(e)}function $i(e){return e!=null&&Pi.includes(e)}function Vi(e){return e!=null&&_i.includes(e)}function Wi(e){return e!=null&&Mi.includes(e)}function Gi(e){return e!=null&&Oi.includes(e)}function Hi(e){return e!=null&&Fi.includes(e)}var Ri,Ci,Pi,_i,Mi,Oi,Fi,tr=f(()=>{"use strict";n();_();Ri=["sent"],Ci=["success"],Pi=["fail","cancelled","timedOut"],_i=["timedOut"],Mi=["pending"],Oi=["success"],Fi=["fail","invalid"]});var zn,jn,Ae,qi,Kn,ql,zl,jl,Kl,Yl,Zl,Xl,Ql,Jl,ep,rt,nt=f(()=>{"use strict";n();zn=require("@reduxjs/toolkit"),jn=require("redux-persist");_();tr();F();Ae={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},qi={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Kn=(0,zn.createSlice)({name:"transactionsSlice",initialState:Ae,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,T;let{sessionId:r,transactions:o,errorMessage:i,status:p,redirectRoute:l}=t.payload,g=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||qi;e.signedTransactions[r]={transactions:o,status:p,errorMessage:i,redirectRoute:l,customTransactionInformation:g},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=Ae.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:o,errorMessage:i,transactions:p}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),p!=null&&(e.signedTransactions[r].transactions=p))},updateSignedTransactionStatus:(e,t)=>{var g,d,T,h,y,k;let{sessionId:r,status:o,errorMessage:i,transactionHash:p}=t.payload,l=(d=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:d.transactions;if(l!=null){e.signedTransactions[r].transactions=l.map(q=>q.hash===p?S(x({},q),{status:o,errorMessage:i}):q);let L=(h=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:h.every(q=>et(q.status)),Q=(k=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:k.every(q=>tt(q.status));L&&(e.signedTransactions[r].status="success"),Q&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Ae.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ae.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(I,()=>Ae),e.addCase(jn.REHYDRATE,(t,r)=>{var l;if(t.signTransactionsCancelMessage=null,!((l=r.payload)!=null&&l.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,p=Object.entries(o).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),o!=null&&(t.signedTransactions=p)})}}),{updateSignedTransactionStatus:ql,updateSignedTransactions:zl,setTransactionsToSign:jl,clearAllTransactionsToSign:Kl,clearAllSignedTransactions:Yl,clearSignedTransaction:Zl,clearTransactionToSign:Xl,setSignTransactionsError:Ql,setSignTransactionsCancelMessage:Jl,moveTransactionsToSignedState:ep}=Kn.actions,rt=Kn.reducer});var ee=f(()=>{"use strict";n();Ve();Ge();qe();je();Ye();Xe();Je();nt()});var rr=f(()=>{"use strict";n()});var Jn,Qn,eo,vp,Ip,Ep,kp,Lp,Dp,to,ro=f(()=>{"use strict";n();Jn=require("@reduxjs/toolkit");F();Qn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},eo=(0,Jn.createSlice)({name:"dappModalsSlice",initialState:Qn,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(I,()=>Qn)}}),{setDappModalVisibility:vp,setDappModalHeaderVisibility:Ip,setDappModalFooterVisibility:Ep,setDappModalHeaderText:kp,setDappModalFooterText:Lp,setDappModalConfig:Dp}=eo.actions,to=eo.reducer});var no,Yi,Zi,ce,ct=f(()=>{"use strict";n();no=require("@reduxjs/toolkit");rr();Ve();ro();Ge();qe();je();Ye();Xe();Je();nt();Yi={["account"]:$e,["dappModal"]:to,["loginInfo"]:We,["modals"]:He,["networkConfig"]:ze,["signedMessageInfo"]:Ke,["toasts"]:Ze,["transactionsInfo"]:Qe,["transactions"]:rt},Zi=(e={})=>(0,no.combineReducers)(x(x({},Yi),e)),ce=Zi});var ao={};oe(ao,{default:()=>us,sessionStorageReducers:()=>nr});function te(e,t=[]){return{key:e,version:1,storage:io.default,blacklist:t}}var R,oo,io,Xi,be,Qi,Ji,es,ts,rs,ns,os,is,ss,so,as,nr,cs,ls,ps,us,co=f(()=>{"use strict";n();R=require("redux-persist"),oo=A(require("redux-persist/lib/storage")),io=A(require("redux-persist/lib/storage/session"));ct();ee();Ve();Ge();qe();je();Ye();Xe();Je();nt();rr();Xi={persistReducersStorageType:"localStorage"},be={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Qi=te(be["account"]),Ji=te(be["loginInfo"]),es=te(be["modals"]),ts=te(be["networkConfig"]),rs={2:e=>S(x({},e),{networkConfig:Kt})};ns=te("sdk-dapp-transactionsInfo"),os=te("sdk-dapp-transactions",["transactionsToSign"]),is=te("sdk-dapp-toasts"),ss=te("sdk-dapp-signedMessageInfo"),so={key:"sdk-dapp-store",version:2,storage:oo.default,whitelist:Object.keys(be),migrate:(0,R.createMigrate)(rs,{debug:!1})},as=S(x({},so),{whitelist:[]}),nr={["toasts"]:(0,R.persistReducer)(is,Ze),["transactions"]:(0,R.persistReducer)(os,rt),["transactionsInfo"]:(0,R.persistReducer)(ns,Qe),["signedMessageInfo"]:(0,R.persistReducer)(ss,Ke)},cs=S(x({},nr),{["account"]:(0,R.persistReducer)(Qi,$e),["loginInfo"]:(0,R.persistReducer)(Ji,We),["modals"]:(0,R.persistReducer)(es,He),["networkConfig"]:(0,R.persistReducer)(ts,ze)}),ls=Xi.persistReducersStorageType==="localStorage",ps=ls?(0,R.persistReducer)(so,ce(nr)):(0,R.persistReducer)(as,ce(cs)),us=ps});var lo={};oe(lo,{default:()=>ds});var ds,po=f(()=>{"use strict";n();ct();ds=ce()});var uo={};oe(uo,{default:()=>ms});var O,gs,ms,go=f(()=>{"use strict";n();O=require("redux-persist"),gs=[O.FLUSH,O.REHYDRATE,O.PAUSE,O.PERSIST,O.PURGE,O.REGISTER],ms=gs});var To={};oe(To,{default:()=>fo});function fo(e){return(0,mo.persistStore)(e)}var mo,yo=f(()=>{"use strict";n();mo=require("redux-persist")});var ra={};oe(ra,{logout:()=>ta});module.exports=Te(ra);n();n();n();n();var rn=require("@multiversx/sdk-extension-provider"),nn=require("@multiversx/sdk-hw-provider"),on=require("@multiversx/sdk-opera-provider"),sn=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),an=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),cn=require("@multiversx/sdk-web-wallet-provider");b();_();var Fe=e=>{switch(e==null?void 0:e.constructor){case cn.WalletProvider:return"wallet";case sn.WalletConnectProvider:return"walletconnect";case an.WalletConnectV2Provider:return"walletconnectv2";case nn.HWProvider:return"ledger";case rn.ExtensionProvider:return"extension";case on.OperaProvider:return"opera";case Oe:return"";default:return"extra"}};var Y=e=>`Unable to perform ${e}, Provider not initialized`,Oe=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Y(`login with options: ${t}`))}logout(t){throw new Error(Y(`logout with options: ${t}`))}getAddress(){throw new Error(Y("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Y(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Y(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Y(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Y(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Y(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Y(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},_t=new Oe;var bi=_t;function Z(){return bi||_t}F();n();var or=require("@reduxjs/toolkit"),wo=require("react-redux/lib/utils/Subscription");ee();n();var Zn=A(require("lodash.throttle"));b();n();var Yn=A(require("lodash.isequal")),ot=require("reselect");M();var m=(0,ot.createSelectorCreator)(ot.defaultMemoize,Yn.default),it=(e,t)=>e!=""&&Boolean(t);ee();Ht();xe();me();var zi=[Me],st=!1,ji=(0,Zn.default)(()=>{we(Se())},5e3),Xn=e=>t=>r=>{var d;if(zi.includes(r.type))return t(r);let o=e.getState(),i=H.local.getItem(B.loginExpiresAt);if(!it((d=o==null?void 0:o.loginInfo)==null?void 0:d.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return we(Se());let l=Date.now();return i-l<0&&!st?setTimeout(()=>{st=!0,e.dispatch(bn())},1e3):(st&&(st=!1),ji()),t(r)};n();n();function at(){return typeof sessionStorage!="undefined"}var ho=at()?(co(),Te(ao)).default:(po(),Te(lo)).default,xo=at()?(go(),Te(uo)).default:[],So=at()?(yo(),Te(To)).default:e=>e;ct();var E=(0,or.configureStore)({reducer:ho,middleware:e=>e({serializableCheck:{ignoredActions:[...xo,Gt.type,Wt.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Xn)}),su=(0,wo.createSubscription)(E),au=So(E),cu=(0,or.configureStore)({reducer:ce});M();n();n();n();ee();var X=e=>e.account,ve=m(X,e=>e.address),lt=m(X,ve,(e,t)=>t in e.accounts?e.accounts[t]:Ue),du=m(X,lt,(e,t)=>{let i=e,{accounts:r}=i,o=fr(i,["accounts"]);return S(x({},o),{account:t})}),gu=m(lt,e=>e.balance),fs=m(lt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),mu=m(X,e=>e.shard),fu=m(X,e=>e.ledgerAccount),Tu=m(X,e=>e.walletConnectAccount),yu=m(X,e=>e.isAccountLoading),hu=m(X,e=>e.accountLoadingError),xu=m(X,e=>e.websocketEvent);n();var re=e=>e.loginInfo,bu=m(re,e=>e.loginMethod),pt=m(re,ve,(e,t)=>it(e.loginMethod,t)),vu=m(re,e=>e.walletConnectLogin),Iu=m(re,e=>e.ledgerLogin),Ao=m(re,e=>e.walletLogin),Eu=m(re,e=>e.isLoginSessionInvalid),ku=m(re,e=>e.tokenLogin),Lu=m(re,e=>e.logoutRoute);n();var bo=e=>e.modals,Ru=m(bo,e=>e.txSubmittedModal),Cu=m(bo,e=>e.notificationModal);n();var le=e=>e.networkConfig,Mu=m(le,e=>e.chainID),Ou=m(le,e=>e.network.walletConnectBridgeAddress),Fu=m(le,e=>e.network.walletConnectV2RelayAddress),Bu=m(le,e=>e.network.walletConnectV2ProjectId),Uu=m(le,e=>e.network.walletConnectV2Options),$u=m(le,e=>e.network.walletConnectDeepLink),ir=m(le,e=>e.network),Ts=m(ir,e=>e.apiAddress),vo=m(ir,e=>e.explorerAddress),Vu=m(ir,e=>e.egldLabel);n();var sr=e=>e.signedMessageInfo,Hu=m(sr,e=>e.isSigning),qu=m(sr,e=>e.errorMessage),zu=m(sr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var ar=e=>e.toasts,Yu=m(ar,e=>e.customToasts),Zu=m(ar,e=>e.transactionToasts),Xu=m(ar,e=>e.failTransactionToast);n();ee();var Io={errorMessage:Xt,successMessage:Qt,processingMessage:Jt},ys=e=>e.transactionsInfo,td=m(ys,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Io);n();n();var C=require("@multiversx/sdk-core");b();n();function cr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function lr(e){var i,p,l;let{data:t}=e,r=cr(t!=null?t:"")?C.TransactionPayload.fromEncoded(t):new C.TransactionPayload(t),o=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:Ct,gasPrice:(p=e.gasPrice.valueOf())!=null?p:Pt,chainID:e.chainID.valueOf(),version:new C.TransactionVersion((l=e.version)!=null?l:en)},e.options?{options:new C.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new C.Address(e.sender)),o}n();tr();n();var xs=A(require("bignumber.js"));M();n();n();n();n();var ws=require("@multiversx/sdk-core"),As=A(require("bignumber.js"));_();n();var Lo=require("@multiversx/sdk-core");function Ss(e){try{let t=new Lo.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Ie(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Ss(e)}n();n();n();var vs=require("@multiversx/sdk-core/out");n();b();n();var Do=require("@multiversx/sdk-core");M();n();n();n();n();_();n();n();n();n();n();n();n();n();n();n();n();D();n();n();D();n();n();n();var Rs=A(require("bignumber.js"));b();n();var Ns=require("@multiversx/sdk-core"),pr=A(require("bignumber.js"));b();n();var Ls=A(require("bignumber.js"));n();pr.default.config({ROUNDING_MODE:pr.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var Cs=require("@multiversx/sdk-core");b();n();var Ee=require("@multiversx/sdk-core"),_s=require("@multiversx/sdk-network-providers");b();n();n();var Ps=A(require("bignumber.js"));b();n();b();n();n();n();n();n();b();n();D();var Os=["reDelegateRewards","claimRewards","unBond"],Fs=["wrapEgld","unwrapEgld"],Bs=["unStake"],Us=["unDelegate"];n();n();n();b();n();var Ws=A(require("bignumber.js"));n();n();n();D();n();var Gs=A(require("bignumber.js"));n();n();n();n();D();n();n();n();var qs=A(require("linkifyjs"));n();b();n();var zs=A(require("bignumber.js"));n();M();n();n();_();n();_();n();n();n();D();n();D();n();var js=A(require("bignumber.js"));b();D();n();D();n();var _o=require("react");M();n();n();D();n();var Ks=require("@multiversx/sdk-core/out"),Ys=A(require("bignumber.js"));D();n();D();n();n();_();var Cy=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Mo=require("react");M();n();var Xs=require("react");D();var Uy=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var mt=e=>e.transactions,ke=m(mt,e=>e.signedTransactions),bh=m(mt,e=>e.signTransactionsError),vh=m(mt,e=>e.signTransactionsCancelMessage),ft=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Ih=m(ke,ft(Hn)),Eh=m(ke,ft(et)),kh=m(ke,ft(tt)),Lh=m(ke,ft(qn)),Dh=m(mt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>lr(r)))||[]})}),Nh=m(ke,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Oo(){return pt(E.getState())}n();n();_();n();n();function Fo(){let e=Z();return Fe(e)}function Le(e){return Fo()===e}function Tt(){let{search:e}=window.location,t=E.getState(),r=Z(),o=ve(t),i=pt(t),p=Ao(t);if(!r)throw"provider not initialized";return Le("ledger")&&i?new Promise(l=>{l(o)}):!Le("")&&!Le("wallet")&&!Le("extra")?r.getAddress():new Promise(l=>{if(p!=null){let g=new URLSearchParams(e),d=Object.fromEntries(g);Ie(d.address)&&l(d.address)}i&&l(o),l("")})}n();n();var Qs=A(require("axios"));n();n();n();ee();n();n();n();ee();n();var Bo=require("@multiversx/sdk-core");n();F();M();zt();xe();me();var ea=e=>{let t=H.local.getItem(B.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(H.local.setItem({key:B.logoutEvent,data:e,expires:0}),H.local.removeItem(B.logoutEvent))};function ta(e,t,r=!0){return J(this,null,function*(){let o=Z(),i=Fe(o),p=Oo(),l=i==="wallet";if(r&&(o==null?void 0:o.relogin)!=null)return yield o.relogin();if(!p||!o){dr(e,t,!1);return}try{let g=yield Tt();ea(g)}catch(g){dr(e,t,!1),console.error("error fetching logout address",g)}l&&Ln(),E.dispatch(I());try{let d=l&&!e?window.location.origin:e;l?setTimeout(()=>{o.logout({callbackUrl:d})}):(yield o.logout({callbackUrl:d}),dr(e,t,l))}catch(g){console.error("error logging out",g)}})}function dr(e,t,r){e&&!r&&(typeof t=="function"?t(e):qt(e))}0&&(module.exports={logout});
1
+ "use strict";var Uo=Object.create;var fe=Object.defineProperty,$o=Object.defineProperties,Vo=Object.getOwnPropertyDescriptor,Wo=Object.getOwnPropertyDescriptors,Go=Object.getOwnPropertyNames,De=Object.getOwnPropertySymbols,Ho=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable;var gr=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))yt.call(t,r)&&gr(e,r,t[r]);if(De)for(var r of De(t))mr.call(t,r)&&gr(e,r,t[r]);return e},S=(e,t)=>$o(e,Wo(t));var fr=(e,t)=>{var r={};for(var o in e)yt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&De)for(var o of De(e))t.indexOf(o)<0&&mr.call(e,o)&&(r[o]=e[o]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oe=(e,t)=>{for(var r in t)fe(e,r,{get:t[r],enumerable:!0})},Tr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Go(t))!yt.call(e,i)&&i!==r&&fe(e,i,{get:()=>t[i],enumerable:!(o=Vo(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Uo(Ho(e)):{},Tr(t||!e||!e.__esModule?fe(r,"default",{value:e,enumerable:!0}):r,e)),Te=e=>Tr(fe({},"__esModule",{value:!0}),e);var J=(e,t,r)=>new Promise((o,i)=>{var p=d=>{try{g(r.next(d))}catch(T){i(T)}},l=d=>{try{g(r.throw(d))}catch(T){i(T)}},g=d=>d.done?o(d.value):Promise.resolve(d.value).then(p,l);g((r=r.apply(e,t)).next())});var xr=Ne(Re=>{"use strict";n();Re.byteLength=zo;Re.toByteArray=Ko;Re.fromByteArray=Xo;var U=[],C=[],qo=typeof Uint8Array!="undefined"?Uint8Array:Array,ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ie=0,yr=ht.length;ie<yr;++ie)U[ie]=ht[ie],C[ht.charCodeAt(ie)]=ie;var ie,yr;C["-".charCodeAt(0)]=62;C["_".charCodeAt(0)]=63;function hr(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 o=r===t?0:4-r%4;return[r,o]}function zo(e){var t=hr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function jo(e,t,r){return(t+r)*3/4-r}function Ko(e){var t,r=hr(e),o=r[0],i=r[1],p=new qo(jo(e,o,i)),l=0,g=i>0?o-4:o,d;for(d=0;d<g;d+=4)t=C[e.charCodeAt(d)]<<18|C[e.charCodeAt(d+1)]<<12|C[e.charCodeAt(d+2)]<<6|C[e.charCodeAt(d+3)],p[l++]=t>>16&255,p[l++]=t>>8&255,p[l++]=t&255;return i===2&&(t=C[e.charCodeAt(d)]<<2|C[e.charCodeAt(d+1)]>>4,p[l++]=t&255),i===1&&(t=C[e.charCodeAt(d)]<<10|C[e.charCodeAt(d+1)]<<4|C[e.charCodeAt(d+2)]>>2,p[l++]=t>>8&255,p[l++]=t&255),p}function Yo(e){return U[e>>18&63]+U[e>>12&63]+U[e>>6&63]+U[e&63]}function Zo(e,t,r){for(var o,i=[],p=t;p<r;p+=3)o=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),i.push(Yo(o));return i.join("")}function Xo(e){for(var t,r=e.length,o=r%3,i=[],p=16383,l=0,g=r-o;l<g;l+=p)i.push(Zo(e,l,l+p>g?g:l+p));return o===1?(t=e[r-1],i.push(U[t>>2]+U[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(U[t>>10]+U[t>>4&63]+U[t<<2&63]+"=")),i.join("")}});var Sr=Ne(xt=>{n();xt.read=function(e,t,r,o,i){var p,l,g=i*8-o-1,d=(1<<g)-1,T=d>>1,h=-7,y=r?i-1:0,E=r?-1:1,L=e[t+y];for(y+=E,p=L&(1<<-h)-1,L>>=-h,h+=g;h>0;p=p*256+e[t+y],y+=E,h-=8);for(l=p&(1<<-h)-1,p>>=-h,h+=o;h>0;l=l*256+e[t+y],y+=E,h-=8);if(p===0)p=1-T;else{if(p===d)return l?NaN:(L?-1:1)*(1/0);l=l+Math.pow(2,o),p=p-T}return(L?-1:1)*l*Math.pow(2,p-o)};xt.write=function(e,t,r,o,i,p){var l,g,d,T=p*8-i-1,h=(1<<T)-1,y=h>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=o?0:p-1,Q=o?1:-1,q=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,l=h):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+y>=1?t+=E/d:t+=E*Math.pow(2,1-y),t*d>=2&&(l++,d/=2),l+y>=h?(g=0,l=h):l+y>=1?(g=(t*d-1)*Math.pow(2,i),l=l+y):(g=t*Math.pow(2,y-1)*Math.pow(2,i),l=0));i>=8;e[r+L]=g&255,L+=Q,g/=256,i-=8);for(l=l<<i|g,T+=i;T>0;e[r+L]=l&255,L+=Q,l/=256,T-=8);e[r+L-Q]|=q*128}});var Cr=Ne(ue=>{"use strict";n();var St=xr(),pe=Sr(),wr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ue.Buffer=u;ue.SlowBuffer=ni;ue.INSPECT_MAX_BYTES=50;var Pe=2147483647;ue.kMaxLength=Pe;u.TYPED_ARRAY_SUPPORT=Qo();!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 Qo(){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 z(e){if(e>Pe)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 vt(e)}return vr(e,t,r)}u.poolSize=8192;function vr(e,t,r){if(typeof e=="string")return ei(e,t);if(ArrayBuffer.isView(e))return ti(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($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&($(e,SharedArrayBuffer)||e&&$(e.buffer,SharedArrayBuffer)))return At(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=ri(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 vr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Ir(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 Jo(e,t,r){return Ir(e),e<=0?z(e):t!==void 0?typeof r=="string"?z(e).fill(t,r):z(e).fill(t):z(e)}u.alloc=function(e,t,r){return Jo(e,t,r)};function vt(e){return Ir(e),z(e<0?0:It(e)|0)}u.allocUnsafe=function(e){return vt(e)};u.allocUnsafeSlow=function(e){return vt(e)};function ei(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=kr(e,t)|0,o=z(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function wt(e){for(var t=e.length<0?0:It(e.length)|0,r=z(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function ti(e){if($(e,Uint8Array)){var t=new Uint8Array(e);return At(t.buffer,t.byteOffset,t.byteLength)}return wt(e)}function At(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 o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function ri(e){if(u.isBuffer(e)){var t=It(e.length)|0,r=z(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||kt(e.length)?z(0):wt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return wt(e.data)}function It(e){if(e>=Pe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Pe.toString(16)+" bytes");return e|0}function ni(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($(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),$(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 o=t.length,i=r.length,p=0,l=Math.min(o,i);p<l;++p)if(t[p]!==r[p]){o=t[p],i=r[p];break}return o<i?-1:i<o?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 o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),p=0;for(o=0;o<t.length;++o){var l=t[o];if($(l,Uint8Array))p+l.length>i.length?u.from(l).copy(i,p):Uint8Array.prototype.set.call(i,l,p);else if(u.isBuffer(l))l.copy(i,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=l.length}return i};function kr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(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,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return bt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Pr(e).length;default:if(i)return o?-1:bt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=kr;function oi(e,t,r){var o=!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 mi(this,t,r);case"utf8":case"utf-8":return Lr(this,t,r);case"ascii":return di(this,t,r);case"latin1":case"binary":return gi(this,t,r);case"base64":return pi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fi(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function se(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}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)se(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)se(this,r,r+3),se(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)se(this,r,r+7),se(this,r+1,r+6),se(this,r+2,r+5),se(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Lr(this,0,t):oi.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=ue.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};wr&&(u.prototype[wr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,p){if($(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),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),p===void 0&&(p=this.length),r<0||o>t.length||i<0||p>this.length)throw new RangeError("out of range index");if(i>=p&&r>=o)return 0;if(i>=p)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,p>>>=0,this===t)return 0;for(var l=p-i,g=o-r,d=Math.min(l,g),T=this.slice(i,p),h=t.slice(r,o),y=0;y<d;++y)if(T[y]!==h[y]){l=T[y],g=h[y];break}return l<g?-1:g<l?1:0};function Er(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,kt(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,o)),u.isBuffer(t))return t.length===0?-1:Ar(e,t,r,o,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):Ar(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Ar(e,t,r,o,i){var p=1,l=e.length,g=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;p=2,l/=2,g/=2,r/=2}function d(L,Q){return p===1?L[Q]:L.readUInt16BE(Q*p)}var T;if(i){var h=-1;for(T=r;T<l;T++)if(d(e,T)===d(t,h===-1?0:T-h)){if(h===-1&&(h=T),T-h+1===g)return h*p}else h!==-1&&(T-=T-h),h=-1}else for(r+g>l&&(r=l-g),T=r;T>=0;T--){for(var y=!0,E=0;E<g;E++)if(d(e,T+E)!==d(t,E)){y=!1;break}if(y)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Er(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Er(this,t,r,o,!1)};function ii(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var p=t.length;o>p/2&&(o=p/2);for(var l=0;l<o;++l){var g=parseInt(t.substr(l*2,2),16);if(kt(g))return l;e[r+l]=g}return l}function si(e,t,r,o){return Ce(bt(t,e.length-r),e,r,o)}function ai(e,t,r,o){return Ce(hi(t),e,r,o)}function ci(e,t,r,o){return Ce(Pr(t),e,r,o)}function li(e,t,r,o){return Ce(xi(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-r;if((o===void 0||o>p)&&(o=p),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var l=!1;;)switch(i){case"hex":return ii(this,t,r,o);case"utf8":case"utf-8":return si(this,t,r,o);case"ascii":case"latin1":case"binary":return ai(this,t,r,o);case"base64":return ci(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return li(this,t,r,o);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pi(e,t,r){return t===0&&r===e.length?St.fromByteArray(e):St.fromByteArray(e.slice(t,r))}function Lr(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var p=e[i],l=null,g=p>239?4:p>223?3:p>191?2:1;if(i+g<=r){var d,T,h,y;switch(g){case 1:p<128&&(l=p);break;case 2:d=e[i+1],(d&192)===128&&(y=(p&31)<<6|d&63,y>127&&(l=y));break;case 3:d=e[i+1],T=e[i+2],(d&192)===128&&(T&192)===128&&(y=(p&15)<<12|(d&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(l=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=(p&15)<<18|(d&63)<<12|(T&63)<<6|h&63,y>65535&&y<1114112&&(l=y))}}l===null?(l=65533,g=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|l&1023),o.push(l),i+=g}return ui(o)}var br=4096;function ui(e){var t=e.length;if(t<=br)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=br));return r}function di(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function gi(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function mi(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",p=t;p<r;++p)i+=Si[e[p]];return i}function fi(e,t,r){for(var o=e.slice(t,r),i="",p=0;p<o.length-1;p+=2)i+=String.fromCharCode(o[p]+o[p+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function v(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,o){t=t>>>0,r=r>>>0,o||v(t,r,this.length);for(var i=this[t],p=1,l=0;++l<r&&(p*=256);)i+=this[t+l]*p;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||v(t,r,this.length);for(var i=this[t+--r],p=1;r>0&&(p*=256);)i+=this[t+--r]*p;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||v(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||v(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||v(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||v(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||v(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||v(t,r,this.length);for(var i=this[t],p=1,l=0;++l<r&&(p*=256);)i+=this[t+l]*p;return p*=128,i>=p&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||v(t,r,this.length);for(var i=r,p=1,l=this[t+--i];i>0&&(p*=256);)l+=this[t+--i]*p;return p*=128,l>=p&&(l-=Math.pow(2,8*r)),l};u.prototype.readInt8=function(t,r){return t=t>>>0,r||v(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||v(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||v(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||v(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||v(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||v(t,4,this.length),pe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||v(t,4,this.length),pe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||v(t,8,this.length),pe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||v(t,8,this.length),pe.read(this,t,!1,52,8)};function N(e,t,r,o,i,p){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<p)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var p=Math.pow(2,8*o)-1;N(this,t,r,o,p,0)}var l=1,g=0;for(this[r]=t&255;++g<o&&(l*=256);)this[r+g]=t/l&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var p=Math.pow(2,8*o)-1;N(this,t,r,o,p,0)}var l=o-1,g=1;for(this[r+l]=t&255;--l>=0&&(g*=256);)this[r+l]=t/g&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||N(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||N(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,o){return t=+t,r=r>>>0,o||N(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,o){return t=+t,r=r>>>0,o||N(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,o){return t=+t,r=r>>>0,o||N(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,o,i){if(t=+t,r=r>>>0,!i){var p=Math.pow(2,8*o-1);N(this,t,r,o,p-1,-p)}var l=0,g=1,d=0;for(this[r]=t&255;++l<o&&(g*=256);)t<0&&d===0&&this[r+l-1]!==0&&(d=1),this[r+l]=(t/g>>0)-d&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var p=Math.pow(2,8*o-1);N(this,t,r,o,p-1,-p)}var l=o-1,g=1,d=0;for(this[r+l]=t&255;--l>=0&&(g*=256);)t<0&&d===0&&this[r+l+1]!==0&&(d=1),this[r+l]=(t/g>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||N(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||N(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||N(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||N(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,o){return t=+t,r=r>>>0,o||N(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 Dr(e,t,r,o,i,p){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Nr(e,t,r,o,i){return t=+t,r=r>>>0,i||Dr(e,t,r,4,34028234663852886e22,-34028234663852886e22),pe.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Nr(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Nr(this,t,r,!1,o)};function Rr(e,t,r,o,i){return t=+t,r=r>>>0,i||Dr(e,t,r,8,17976931348623157e292,-17976931348623157e292),pe.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return Rr(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return Rr(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=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-o&&(i=t.length-r+o);var p=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),p};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=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 p=t.charCodeAt(0);(i==="utf8"&&p<128||i==="latin1")&&(t=p)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var l;if(typeof t=="number")for(l=r;l<o;++l)this[l]=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(l=0;l<o-r;++l)this[l+r]=g[l%d]}return this};var Ti=/[^+/0-9A-Za-z-_]/g;function yi(e){if(e=e.split("=")[0],e=e.trim().replace(Ti,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function bt(e,t){t=t||1/0;for(var r,o=e.length,i=null,p=[],l=0;l<o;++l){if(r=e.charCodeAt(l),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&p.push(239,191,189);continue}else if(l+1===o){(t-=3)>-1&&p.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&p.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&p.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;p.push(r)}else if(r<2048){if((t-=2)<0)break;p.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;p.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;p.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return p}function hi(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function xi(e,t){for(var r,o,i,p=[],l=0;l<e.length&&!((t-=2)<0);++l)r=e.charCodeAt(l),o=r>>8,i=r%256,p.push(i),p.push(o);return p}function Pr(e){return St.toByteArray(yi(e))}function Ce(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function $(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function kt(e){return e!==e}var Si=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var Br=Ne((aa,Fr)=>{n();var w=Fr.exports={},V,W;function Et(){throw new Error("setTimeout has not been defined")}function Lt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?V=setTimeout:V=Et}catch(e){V=Et}try{typeof clearTimeout=="function"?W=clearTimeout:W=Lt}catch(e){W=Lt}})();function _r(e){if(V===setTimeout)return setTimeout(e,0);if((V===Et||!V)&&setTimeout)return V=setTimeout,setTimeout(e,0);try{return V(e,0)}catch(t){try{return V.call(null,e,0)}catch(r){return V.call(this,e,0)}}}function wi(e){if(W===clearTimeout)return clearTimeout(e);if((W===Lt||!W)&&clearTimeout)return W=clearTimeout,clearTimeout(e);try{return W(e)}catch(t){try{return W.call(null,e)}catch(r){return W.call(this,e)}}}var j=[],de=!1,ae,_e=-1;function Ai(){!de||!ae||(de=!1,ae.length?j=ae.concat(j):_e=-1,j.length&&Mr())}function Mr(){if(!de){var e=_r(Ai);de=!0;for(var t=j.length;t;){for(ae=j,j=[];++_e<t;)ae&&ae[_e].run();_e=-1,t=j.length}ae=null,de=!1,wi(e)}}w.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];j.push(new Or(e,t)),j.length===1&&!de&&_r(Mr)};function Or(e,t){this.fun=e,this.array=t}Or.prototype.run=function(){this.fun.apply(null,this.array)};w.title="browser";w.browser=!0;w.env={};w.argv=[];w.version="";w.versions={};function K(){}w.on=K;w.addListener=K;w.once=K;w.off=K;w.removeListener=K;w.removeAllListeners=K;w.emit=K;w.prependListener=K;w.prependOnceListener=K;w.listeners=function(e){return[]};w.binding=function(e){throw new Error("process.binding is not supported")};w.cwd=function(){return"/"};w.chdir=function(e){throw new Error("process.chdir is not supported")};w.umask=function(){return 0}});var s,a,ca,n=f(()=>{s=A(Cr()),a=A(Br()),ca=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}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 Ur=f(()=>{"use strict";n()});var $r=f(()=>{"use strict";n()});var Vr=f(()=>{"use strict";n()});var Wr=f(()=>{"use strict";n()});var _=f(()=>{"use strict";n()});var Gr=f(()=>{"use strict";n()});var Hr=f(()=>{"use strict";n()});var D=f(()=>{"use strict";n()});var qr=f(()=>{"use strict";n()});var zr=f(()=>{"use strict";n()});var M=f(()=>{"use strict";n();$r();Vr();Wr();_();Gr();Hr();D();qr();zr()});var Dt,jr,Ea,Kr,La,Yr,Da,Na,Ra,Zr=f(()=>{"use strict";n();M();Dt={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:jr,egldLabel:Ea}=Dt["devnet"],{chainId:Kr,egldLabel:La}=Dt["testnet"],{chainId:Yr,egldLabel:Da}=Dt["mainnet"],Na={["devnet"]:jr,["testnet"]:Kr,["mainnet"]:Yr},Ra={[jr]:"devnet",[Kr]:"testnet",[Yr]:"mainnet"}});var Nt=f(()=>{"use strict";n()});var Xr=f(()=>{"use strict";n()});var Qr,Rt=f(()=>{"use strict";n();Qr="transaction-status-toast-id"});var G,Jr=f(()=>{"use strict";n();G=require("@multiversx/sdk-web-wallet-provider")});var Pt,Ct,en,Me,tn,ge,b=f(()=>{"use strict";n();Ur();Zr();Nt();Xr();Rt();Jr();Pt=5e4,Ct=1e9,en=1,Me="logout",tn="login",ge="0"});var Mt,I,he,F=f(()=>{"use strict";n();Mt=require("@reduxjs/toolkit");b();I=(0,Mt.createAction)(Me),he=(0,Mt.createAction)(tn,e=>({payload:e}))});var Be,Ot=f(()=>{"use strict";n();Be=()=>Date.now()/1e3});var ln=f(()=>{"use strict";n()});var pn=f(()=>{"use strict";n()});var un=f(()=>{"use strict";n();Ot();ln();pn()});var Bt={};oe(Bt,{getItem:()=>Ii,localStorageKeys:()=>B,removeItem:()=>ki,setItem:()=>vi});var B,Ft,vi,Ii,ki,me=f(()=>{"use strict";n();un();B={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Ft=typeof localStorage!="undefined",vi=({key:e,data:t,expires:r})=>{!Ft||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ii=e=>{if(!Ft)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:Be()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ki=e=>{!Ft||localStorage.removeItem(String(e))}});var Ut={};oe(Ut,{clear:()=>fn,getItem:()=>gn,removeItem:()=>mn,setItem:()=>dn,storage:()=>Ei});var dn,gn,mn,fn,Ei,Tn=f(()=>{"use strict";n();dn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},gn=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},mn=e=>sessionStorage.removeItem(String(e)),fn=()=>sessionStorage.clear(),Ei={setItem:dn,getItem:gn,removeItem:mn,clear:fn}});var H,xe=f(()=>{"use strict";n();me();Tn();H={session:Ut,local:Bt}});var Vt,yn,hn,Ue,$t,xn,Wt,yc,Gt,hc,xc,Sc,wc,Ac,bc,vc,$e,Ve=f(()=>{"use strict";n();Vt=require("@multiversx/sdk-core"),yn=require("@reduxjs/toolkit"),hn=require("redux-persist");b();xe();me();F();Ue={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ge},$t={address:"",websocketEvent:null,accounts:{"":Ue},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},xn=(0,yn.createSlice)({name:"accountInfoSlice",initialState:$t,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Vt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Ue},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(I,()=>(H.local.removeItem(B.loginExpiresAt),$t)),e.addCase(he,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Vt.Address(o).hex()}),e.addCase(hn.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:o}=r.payload,{address:i,shard:p,accounts:l,publicKey:g}=o;t.address=i,t.shard=p;let d=l&&i in l;t.accounts=d?l:$t.accounts,t.publicKey=g})}}),{setAccount:Wt,setAddress:yc,setAccountNonce:Gt,setAccountShard:hc,setLedgerAccount:xc,updateLedgerAccount:Sc,setWalletConnectAccount:wc,setIsAccountLoading:Ac,setAccountLoadingError:bc,setWebsocketEvent:vc}=xn.actions,$e=xn.reducer});function Se(){return new Date().setHours(new Date().getHours()+24)}function we(e){H.local.setItem({key:B.loginExpiresAt,data:e,expires:e})}var Ht=f(()=>{"use strict";n();xe();me()});var wn,Sn,An,_c,Mc,Oc,Fc,Bc,Uc,bn,$c,We,Ge=f(()=>{"use strict";n();wn=require("@reduxjs/toolkit");Ht();_();F();Sn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},An=(0,wn.createSlice)({name:"loginInfoSlice",initialState:Sn,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(I,()=>Sn),e.addCase(he,(t,r)=>{t.loginMethod=r.payload.loginMethod,we(Se())})}}),{setLoginMethod:_c,setWalletConnectLogin:Mc,setLedgerLogin:Oc,setTokenLogin:Fc,setTokenLoginSignature:Bc,setWalletLogin:Uc,invalidateLoginSession:bn,setLogoutRoute:$c}=An.actions,We=An.reducer});var In,vn,kn,Hc,qc,zc,jc,He,qe=f(()=>{"use strict";n();In=require("@reduxjs/toolkit");F();vn={},kn=(0,In.createSlice)({name:"modalsSlice",initialState:vn,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(I,()=>vn)}}),{setTxSubmittedModal:Hc,setNotificationModal:qc,clearTxSubmittedModal:zc,clearNotificationModal:jc}=kn.actions,He=kn.reducer});var En,Ln,qt,zt=f(()=>{"use strict";n();En=!1,Ln=(e=!0)=>{En=e},qt=(e,t=0)=>{En||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});var Dn=f(()=>{"use strict";n();zt()});function jt(e){return e[Math.floor(Math.random()*e.length)]}var Nn=f(()=>{"use strict";n()});var Rn=f(()=>{"use strict";n();Nt()});var Pn=f(()=>{"use strict";n();Dn();Nn();Rn()});var Cn,_n,Kt,Li,Mn,cl,ll,ze,je=f(()=>{"use strict";n();Cn=require("@reduxjs/toolkit"),_n=A(require("lodash.omit"));Pn();Kt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Li={network:Kt,chainID:"-1"},Mn=(0,Cn.createSlice)({name:"appConfig",initialState:Li,reducers:{initializeNetworkConfig:(e,t)=>{let r=jt(t.payload.walletConnectBridgeAddresses),o=jt(t.payload.walletConnectV2RelayAddresses),i=(0,_n.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:cl,setChainID:ll}=Mn.actions,ze=Mn.reducer});var On,Yt,Fn,fl,Tl,yl,Ke,Ye=f(()=>{"use strict";n();On=require("@reduxjs/toolkit");M();F();Yt={isSigning:!1,signedSessions:{}},Fn=(0,On.createSlice)({name:"signedMessageInfoSliceState",initialState:Yt,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return S(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:S(x({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Yt},extraReducers:e=>{e.addCase(I,()=>Yt)}}),{setSignSession:fl,clearSignedMessageInfo:Tl,setSignSessionState:yl}=Fn.actions,Ke=Fn.reducer});var Un,$n,Bn,Vn,Il,kl,El,Ll,Dl,Nl,Ze,Xe=f(()=>{"use strict";n();Un=require("@reduxjs/toolkit"),$n=require("redux-persist");Rt();M();Ot();F();Bn={customToasts:[],transactionToasts:[],failTransactionToast:null},Vn=(0,Un.createSlice)({name:"toastsSlice",initialState:Bn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(S(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:Be(),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=S(x({},t.payload),{toastId:Qr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(I,()=>Bn),e.addCase($n.REHYDRATE,(t,r)=>{var i,p;let o=(p=(i=r.customToasts)==null?void 0:i.filter(l=>!("component"in l)))!=null?p:[];t.customToasts=o})}}),{addCustomToast:Il,removeCustomToast:kl,addTransactionToast:El,removeTransactionToast:Ll,addFailTransactionToast:Dl,removeFailTransactionToast:Nl}=Vn.actions,Ze=Vn.reducer});var Wn,Xt,Qt,Jt,Di,Zt,Gn,_l,Ml,Ol,Qe,Je=f(()=>{"use strict";n();Wn=require("@reduxjs/toolkit");F();Xt="Transaction failed",Qt="Transaction successful",Jt="Processing transaction",Di="Transaction submitted",Zt={},Gn=(0,Wn.createSlice)({name:"transactionsInfo",initialState:Zt,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Xt,successMessage:(o==null?void 0:o.successMessage)||Qt,processingMessage:(o==null?void 0:o.processingMessage)||Jt,submittedMessage:(o==null?void 0:o.submittedMessage)||Di,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Zt},extraReducers:e=>{e.addCase(I,()=>Zt)}}),{clearTransactionsInfo:_l,setTransactionsDisplayInfo:Ml,clearTransactionsInfoForSessionId:Ol}=Gn.actions,Qe=Gn.reducer});function Hn(e){return e!=null&&(Bi(e)||Wi(e))}function et(e){return e!=null&&(Ui(e)||Gi(e))}function tt(e){return e!=null&&($i(e)||Hi(e))}function qn(e){return e!=null&&Vi(e)}function Bi(e){return e!=null&&Ri.includes(e)}function Ui(e){return e!=null&&Pi.includes(e)}function $i(e){return e!=null&&Ci.includes(e)}function Vi(e){return e!=null&&_i.includes(e)}function Wi(e){return e!=null&&Mi.includes(e)}function Gi(e){return e!=null&&Oi.includes(e)}function Hi(e){return e!=null&&Fi.includes(e)}var Ri,Pi,Ci,_i,Mi,Oi,Fi,tr=f(()=>{"use strict";n();_();Ri=["sent"],Pi=["success"],Ci=["fail","cancelled","timedOut"],_i=["timedOut"],Mi=["pending"],Oi=["success"],Fi=["fail","invalid"]});var zn,jn,Ae,qi,Kn,ql,zl,jl,Kl,Yl,Zl,Xl,Ql,Jl,ep,rt,nt=f(()=>{"use strict";n();zn=require("@reduxjs/toolkit"),jn=require("redux-persist");_();tr();F();Ae={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},qi={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Kn=(0,zn.createSlice)({name:"transactionsSlice",initialState:Ae,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,T;let{sessionId:r,transactions:o,errorMessage:i,status:p,redirectRoute:l}=t.payload,g=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||qi;e.signedTransactions[r]={transactions:o,status:p,errorMessage:i,redirectRoute:l,customTransactionInformation:g},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=Ae.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:o,errorMessage:i,transactions:p}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),p!=null&&(e.signedTransactions[r].transactions=p))},updateSignedTransactionStatus:(e,t)=>{var g,d,T,h,y,E;let{sessionId:r,status:o,errorMessage:i,transactionHash:p}=t.payload,l=(d=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:d.transactions;if(l!=null){e.signedTransactions[r].transactions=l.map(q=>q.hash===p?S(x({},q),{status:o,errorMessage:i}):q);let L=(h=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:h.every(q=>et(q.status)),Q=(E=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:E.every(q=>tt(q.status));L&&(e.signedTransactions[r].status="success"),Q&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Ae.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ae.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(I,()=>Ae),e.addCase(jn.REHYDRATE,(t,r)=>{var l;if(t.signTransactionsCancelMessage=null,!((l=r.payload)!=null&&l.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,p=Object.entries(o).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),o!=null&&(t.signedTransactions=p)})}}),{updateSignedTransactionStatus:ql,updateSignedTransactions:zl,setTransactionsToSign:jl,clearAllTransactionsToSign:Kl,clearAllSignedTransactions:Yl,clearSignedTransaction:Zl,clearTransactionToSign:Xl,setSignTransactionsError:Ql,setSignTransactionsCancelMessage:Jl,moveTransactionsToSignedState:ep}=Kn.actions,rt=Kn.reducer});var ee=f(()=>{"use strict";n();Ve();Ge();qe();je();Ye();Xe();Je();nt()});var rr=f(()=>{"use strict";n()});var Jn,Qn,eo,vp,Ip,kp,Ep,Lp,Dp,to,ro=f(()=>{"use strict";n();Jn=require("@reduxjs/toolkit");F();Qn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},eo=(0,Jn.createSlice)({name:"dappModalsSlice",initialState:Qn,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(I,()=>Qn)}}),{setDappModalVisibility:vp,setDappModalHeaderVisibility:Ip,setDappModalFooterVisibility:kp,setDappModalHeaderText:Ep,setDappModalFooterText:Lp,setDappModalConfig:Dp}=eo.actions,to=eo.reducer});var no,Yi,Zi,ce,ct=f(()=>{"use strict";n();no=require("@reduxjs/toolkit");rr();Ve();ro();Ge();qe();je();Ye();Xe();Je();nt();Yi={["account"]:$e,["dappModal"]:to,["loginInfo"]:We,["modals"]:He,["networkConfig"]:ze,["signedMessageInfo"]:Ke,["toasts"]:Ze,["transactionsInfo"]:Qe,["transactions"]:rt},Zi=(e={})=>(0,no.combineReducers)(x(x({},Yi),e)),ce=Zi});var ao={};oe(ao,{default:()=>us,sessionStorageReducers:()=>nr});function te(e,t=[]){return{key:e,version:1,storage:io.default,blacklist:t}}var R,oo,io,Xi,be,Qi,Ji,es,ts,rs,ns,os,is,ss,so,as,nr,cs,ls,ps,us,co=f(()=>{"use strict";n();R=require("redux-persist"),oo=A(require("redux-persist/lib/storage")),io=A(require("redux-persist/lib/storage/session"));ct();ee();Ve();Ge();qe();je();Ye();Xe();Je();nt();rr();Xi={persistReducersStorageType:"localStorage"},be={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Qi=te(be["account"]),Ji=te(be["loginInfo"]),es=te(be["modals"]),ts=te(be["networkConfig"]),rs={2:e=>S(x({},e),{networkConfig:Kt})};ns=te("sdk-dapp-transactionsInfo"),os=te("sdk-dapp-transactions",["transactionsToSign"]),is=te("sdk-dapp-toasts"),ss=te("sdk-dapp-signedMessageInfo"),so={key:"sdk-dapp-store",version:2,storage:oo.default,whitelist:Object.keys(be),migrate:(0,R.createMigrate)(rs,{debug:!1})},as=S(x({},so),{whitelist:[]}),nr={["toasts"]:(0,R.persistReducer)(is,Ze),["transactions"]:(0,R.persistReducer)(os,rt),["transactionsInfo"]:(0,R.persistReducer)(ns,Qe),["signedMessageInfo"]:(0,R.persistReducer)(ss,Ke)},cs=S(x({},nr),{["account"]:(0,R.persistReducer)(Qi,$e),["loginInfo"]:(0,R.persistReducer)(Ji,We),["modals"]:(0,R.persistReducer)(es,He),["networkConfig"]:(0,R.persistReducer)(ts,ze)}),ls=Xi.persistReducersStorageType==="localStorage",ps=ls?(0,R.persistReducer)(so,ce(nr)):(0,R.persistReducer)(as,ce(cs)),us=ps});var lo={};oe(lo,{default:()=>ds});var ds,po=f(()=>{"use strict";n();ct();ds=ce()});var uo={};oe(uo,{default:()=>ms});var O,gs,ms,go=f(()=>{"use strict";n();O=require("redux-persist"),gs=[O.FLUSH,O.REHYDRATE,O.PAUSE,O.PERSIST,O.PURGE,O.REGISTER],ms=gs});var To={};oe(To,{default:()=>fo});function fo(e){return(0,mo.persistStore)(e)}var mo,yo=f(()=>{"use strict";n();mo=require("redux-persist")});var ra={};oe(ra,{logout:()=>ta});module.exports=Te(ra);n();n();n();n();var rn=require("@multiversx/sdk-extension-provider"),nn=require("@multiversx/sdk-hw-provider"),on=require("@multiversx/sdk-opera-provider"),sn=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),an=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),cn=require("@multiversx/sdk-web-wallet-provider");b();_();var Fe=e=>{switch(e==null?void 0:e.constructor){case cn.WalletProvider:return"wallet";case sn.WalletConnectProvider:return"walletconnect";case an.WalletConnectV2Provider:return"walletconnectv2";case nn.HWProvider:return"ledger";case rn.ExtensionProvider:return"extension";case on.OperaProvider:return"opera";case Oe:return"";default:return"extra"}};var Y=e=>`Unable to perform ${e}, Provider not initialized`,Oe=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Y(`login with options: ${t}`))}logout(t){throw new Error(Y(`logout with options: ${t}`))}getAddress(){throw new Error(Y("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Y(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Y(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Y(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Y(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Y(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Y(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},_t=new Oe;var bi=_t;function Z(){return bi||_t}F();n();var or=require("@reduxjs/toolkit"),wo=require("react-redux/lib/utils/Subscription");ee();n();var Zn=A(require("lodash.throttle"));b();n();var Yn=A(require("lodash.isequal")),ot=require("reselect");M();var m=(0,ot.createSelectorCreator)(ot.defaultMemoize,Yn.default),it=(e,t)=>e!=""&&Boolean(t);ee();Ht();xe();me();var zi=[Me],st=!1,ji=(0,Zn.default)(()=>{we(Se())},5e3),Xn=e=>t=>r=>{var d;if(zi.includes(r.type))return t(r);let o=e.getState(),i=H.local.getItem(B.loginExpiresAt);if(!it((d=o==null?void 0:o.loginInfo)==null?void 0:d.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return we(Se());let l=Date.now();return i-l<0&&!st?setTimeout(()=>{st=!0,e.dispatch(bn())},1e3):(st&&(st=!1),ji()),t(r)};n();n();function at(){return typeof sessionStorage!="undefined"}var ho=at()?(co(),Te(ao)).default:(po(),Te(lo)).default,xo=at()?(go(),Te(uo)).default:[],So=at()?(yo(),Te(To)).default:e=>e;ct();var k=(0,or.configureStore)({reducer:ho,middleware:e=>e({serializableCheck:{ignoredActions:[...xo,Gt.type,Wt.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Xn)}),su=(0,wo.createSubscription)(k),au=So(k),cu=(0,or.configureStore)({reducer:ce});M();n();n();n();ee();var X=e=>e.account,ve=m(X,e=>e.address),lt=m(X,ve,(e,t)=>t in e.accounts?e.accounts[t]:Ue),du=m(X,lt,(e,t)=>{let i=e,{accounts:r}=i,o=fr(i,["accounts"]);return S(x({},o),{account:t})}),gu=m(lt,e=>e.balance),fs=m(lt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),mu=m(X,e=>e.shard),fu=m(X,e=>e.ledgerAccount),Tu=m(X,e=>e.walletConnectAccount),yu=m(X,e=>e.isAccountLoading),hu=m(X,e=>e.accountLoadingError),xu=m(X,e=>e.websocketEvent);n();var re=e=>e.loginInfo,bu=m(re,e=>e.loginMethod),pt=m(re,ve,(e,t)=>it(e.loginMethod,t)),vu=m(re,e=>e.walletConnectLogin),Iu=m(re,e=>e.ledgerLogin),Ao=m(re,e=>e.walletLogin),ku=m(re,e=>e.isLoginSessionInvalid),Eu=m(re,e=>e.tokenLogin),Lu=m(re,e=>e.logoutRoute);n();var bo=e=>e.modals,Ru=m(bo,e=>e.txSubmittedModal),Pu=m(bo,e=>e.notificationModal);n();var le=e=>e.networkConfig,Mu=m(le,e=>e.chainID),Ou=m(le,e=>e.network.walletConnectBridgeAddress),Fu=m(le,e=>e.network.walletConnectV2RelayAddress),Bu=m(le,e=>e.network.walletConnectV2ProjectId),Uu=m(le,e=>e.network.walletConnectV2Options),$u=m(le,e=>e.network.walletConnectDeepLink),ir=m(le,e=>e.network),Ts=m(ir,e=>e.apiAddress),vo=m(ir,e=>e.explorerAddress),Vu=m(ir,e=>e.egldLabel);n();var sr=e=>e.signedMessageInfo,Hu=m(sr,e=>e.isSigning),qu=m(sr,e=>e.errorMessage),zu=m(sr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var ar=e=>e.toasts,Yu=m(ar,e=>e.customToasts),Zu=m(ar,e=>e.transactionToasts),Xu=m(ar,e=>e.failTransactionToast);n();ee();var Io={errorMessage:Xt,successMessage:Qt,processingMessage:Jt},ys=e=>e.transactionsInfo,td=m(ys,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Io);n();n();var P=require("@multiversx/sdk-core");b();n();function cr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function lr(e){var i,p,l;let{data:t}=e,r=cr(t!=null?t:"")?P.TransactionPayload.fromEncoded(t):new P.TransactionPayload(t),o=new P.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new P.Address(e.receiver),sender:new P.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Pt,gasPrice:(p=e.gasPrice.valueOf())!=null?p:Ct,chainID:e.chainID.valueOf(),version:new P.TransactionVersion((l=e.version)!=null?l:en)},e.options?{options:new P.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new P.Address(e.sender)),o}n();tr();n();var xs=A(require("bignumber.js"));M();n();n();n();n();var ws=require("@multiversx/sdk-core"),As=A(require("bignumber.js"));_();n();var Lo=require("@multiversx/sdk-core");function Ss(e){try{let t=new Lo.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Ie(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Ss(e)}n();n();n();var vs=require("@multiversx/sdk-core/out");n();b();n();var Do=require("@multiversx/sdk-core");M();n();n();n();n();_();n();n();n();n();n();n();n();n();n();n();n();D();n();n();D();n();n();n();var Rs=A(require("bignumber.js"));b();n();var Ns=require("@multiversx/sdk-core"),pr=A(require("bignumber.js"));b();n();var Ls=A(require("bignumber.js"));n();pr.default.config({ROUNDING_MODE:pr.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var Ps=require("@multiversx/sdk-core");b();n();var ke=require("@multiversx/sdk-core"),_s=require("@multiversx/sdk-network-providers");b();n();n();var Cs=A(require("bignumber.js"));b();n();b();n();n();n();n();n();b();n();D();var Os=["reDelegateRewards","claimRewards","unBond"],Fs=["wrapEgld","unwrapEgld"],Bs=["unStake"],Us=["unDelegate"];n();n();n();b();n();var Ws=A(require("bignumber.js"));n();n();n();D();n();var Gs=A(require("bignumber.js"));n();n();n();n();D();n();n();n();var qs=A(require("linkifyjs"));n();b();n();var zs=A(require("bignumber.js"));n();M();n();n();_();n();_();n();n();n();D();n();D();n();var js=A(require("bignumber.js"));b();D();n();D();n();var _o=require("react");M();n();n();D();n();var Ks=require("@multiversx/sdk-core/out"),Ys=A(require("bignumber.js"));D();n();D();n();n();_();var Py=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Mo=require("react");M();n();var Xs=require("react");D();var Uy=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var mt=e=>e.transactions,Ee=m(mt,e=>e.signedTransactions),bh=m(mt,e=>e.signTransactionsError),vh=m(mt,e=>e.signTransactionsCancelMessage),ft=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Ih=m(Ee,ft(Hn)),kh=m(Ee,ft(et)),Eh=m(Ee,ft(tt)),Lh=m(Ee,ft(qn)),Dh=m(mt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>lr(r)))||[]})}),Nh=m(Ee,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Oo(){return pt(k.getState())}n();n();_();n();n();function Fo(){let e=Z();return Fe(e)}function Le(e){return Fo()===e}function Tt(){let{search:e}=window.location,t=k.getState(),r=Z(),o=ve(t),i=pt(t),p=Ao(t);if(!r)throw"provider not initialized";return Le("ledger")&&i?new Promise(l=>{l(o)}):!Le("")&&!Le("wallet")&&!Le("extra")?r.getAddress():new Promise(l=>{if(p!=null){let g=new URLSearchParams(e),d=Object.fromEntries(g);Ie(d.address)&&l(d.address)}i&&l(o),l("")})}n();n();var Qs=A(require("axios"));n();n();n();ee();n();n();n();ee();n();var Bo=require("@multiversx/sdk-core");n();F();M();zt();xe();me();var ea=e=>{let t=H.local.getItem(B.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(H.local.setItem({key:B.logoutEvent,data:e,expires:0}),H.local.removeItem(B.logoutEvent))};function ta(e,t,r=!0){return J(this,null,function*(){let o=Z(),i=Fe(o),p=Oo(),l=i==="wallet";if(r&&(o==null?void 0:o.relogin)!=null)return yield o.relogin();if(!p||!o){dr(e,t,!1);return}try{let g=yield Tt();ea(g)}catch(g){dr(e,t,!1),console.error("error fetching logout address",g)}l&&Ln(),k.dispatch(I());try{let d=l&&!e?window.location.origin:e;l?setTimeout(()=>{o.logout({callbackUrl:d})}):(yield o.logout({callbackUrl:d}),dr(e,t,l))}catch(g){console.error("error logging out",g)}})}function dr(e,t,r){e&&!r&&(typeof t=="function"?t(e):qt(e))}0&&(module.exports={logout});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Ge=Object.create;var M=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var ze=Object.getOwnPropertyNames;var je=Object.getPrototypeOf,He=Object.prototype.hasOwnProperty;var Ve=(t,e)=>()=>(t&&(e=t(t=0)),e);var G=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),We=(t,e)=>{for(var r in e)M(t,r,{get:e[r],enumerable:!0})},ae=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ze(e))!He.call(t,i)&&i!==r&&M(t,i,{get:()=>e[i],enumerable:!(n=qe(e,i))||n.enumerable});return t};var q=(t,e,r)=>(r=t!=null?Ge(je(t)):{},ae(e||!t||!t.__esModule?M(r,"default",{value:t,enumerable:!0}):r,t)),Ye=t=>ae(M({},"__esModule",{value:!0}),t);var le=G(z=>{"use strict";l();z.byteLength=Qe;z.toByteArray=Ke;z.fromByteArray=er;var I=[],v=[],Xe=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,oe=Y.length;C<oe;++C)I[C]=Y[C],v[Y.charCodeAt(C)]=C;var C,oe;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function se(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Qe(t){var e=se(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Ze(t,e,r){return(e+r)*3/4-r}function Ke(t){var e,r=se(t),n=r[0],i=r[1],a=new Xe(Ze(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function Je(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function $e(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(Je(n));return i.join("")}function er(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push($e(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(I[e>>2]+I[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(I[e>>10]+I[e>>4&63]+I[e<<2&63]+"=")),i.join("")}});var ce=G(X=>{l();X.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,d=u>>1,g=-7,p=r?i-1:0,w=r?-1:1,b=t[e+p];for(p+=w,a=b&(1<<-g)-1,b>>=-g,g+=c;g>0;a=a*256+t[e+p],p+=w,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=w,g-=8);if(a===0)a=1-d;else{if(a===u)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};X.write=function(t,e,r,n,i,a){var o,c,u,d=a*8-i-1,g=(1<<d)-1,p=g>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,F=n?1:-1,Me=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=w/u:e+=w*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=g?(c=0,o=g):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=c&255,b+=F,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;t[r+b]=o&255,b+=F,o/=256,d-=8);t[r+b-F]|=Me*128}});var ve=G(P=>{"use strict";l();var Q=le(),U=ce(),ue=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=or;P.INSPECT_MAX_BYTES=50;var j=2147483647;P.kMaxLength=j;s.TYPED_ARRAY_SUPPORT=rr();!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 rr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function S(t){if(t>j)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(t)}return ge(t,e,r)}s.poolSize=8192;function ge(t,e,r){if(typeof t=="string")return nr(t,e);if(ArrayBuffer.isView(t))return ir(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return K(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=ar(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return ge(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function fe(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 tr(t,e,r){return fe(t),t<=0?S(t):e!==void 0?typeof r=="string"?S(t).fill(e,r):S(t).fill(e):S(t)}s.alloc=function(t,e,r){return tr(t,e,r)};function $(t){return fe(t),S(t<0?0:ee(t)|0)}s.allocUnsafe=function(t){return $(t)};s.allocUnsafeSlow=function(t){return $(t)};function nr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=me(t,e)|0,n=S(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Z(t){for(var e=t.length<0?0:ee(t.length)|0,r=S(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function ir(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return K(e.buffer,e.byteOffset,e.byteLength)}return Z(t)}function K(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function ar(t){if(s.isBuffer(t)){var e=ee(t.length)|0,r=S(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||re(t.length)?S(0):Z(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Z(t.data)}function ee(t){if(t>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return t|0}function or(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(_(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function me(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Te(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=me;function sr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return yr(this,e,r);case"utf8":case"utf-8":return ye(this,e,r);case"ascii":return mr(this,e,r);case"latin1":case"binary":return hr(this,e,r);case"base64":return gr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function D(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)D(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)D(this,r,r+3),D(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)D(this,r,r+7),D(this,r+1,r+6),D(this,r+2,r+5),D(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ye(this,0,e):sr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};ue&&(s.prototype[ue]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),d=this.slice(i,a),g=e.slice(r,n),p=0;p<u;++p)if(d[p]!==g[p]){o=d[p],c=g[p];break}return o<c?-1:c<o?1:0};function he(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,re(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:pe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):pe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function pe(t,e,r,n,i){var a=1,o=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,c/=2,r/=2}function u(b,F){return a===1?b[F]:b.readUInt16BE(F*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(u(t,d)===u(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){for(var p=!0,w=0;w<c;w++)if(u(t,d+w)!==u(e,w)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return he(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return he(this,e,r,n,!1)};function lr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(re(c))return o;t[r+o]=c}return o}function cr(t,e,r,n){return H(J(e,t.length-r),t,r,n)}function ur(t,e,r,n){return H(Tr(e),t,r,n)}function pr(t,e,r,n){return H(Te(e),t,r,n)}function dr(t,e,r,n){return H(vr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return lr(this,e,r,n);case"utf8":case"utf-8":return cr(this,e,r,n);case"ascii":case"latin1":case"binary":return ur(this,e,r,n);case"base64":return pr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function gr(t,e,r){return e===0&&r===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,r))}function ye(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,d,g,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(p=(a&15)<<12|(u&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],d=t[i+2],g=t[i+3],(u&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(u&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return fr(n)}var de=4096;function fr(t){var e=t.length;if(e<=de)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=de));return r}function mr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function hr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function yr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=kr[t[a]];return i}function xr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!1,52,8)};function T(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function xe(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function we(t,e,r,n,i){return e=+e,r=r>>>0,i||xe(t,e,r,4,34028234663852886e22,-34028234663852886e22),U.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return we(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return we(this,e,r,!1,n)};function be(t,e,r,n,i){return e=+e,r=r>>>0,i||xe(t,e,r,8,17976931348623157e292,-17976931348623157e292),U.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return be(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return be(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var wr=/[^+/0-9A-Za-z-_]/g;function br(t){if(t=t.split("=")[0],t=t.trim().replace(wr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Tr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function vr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Te(t){return Q.toByteArray(br(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function re(t){return t!==t}var kr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Re=G((Fr,Ee)=>{l();var y=Ee.exports={},E,R;function te(){throw new Error("setTimeout has not been defined")}function ne(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=te}catch(t){E=te}try{typeof clearTimeout=="function"?R=clearTimeout:R=ne}catch(t){R=ne}})();function ke(t){if(E===setTimeout)return setTimeout(t,0);if((E===te||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function Ir(t){if(R===clearTimeout)return clearTimeout(t);if((R===ne||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var L=[],O=!1,B,V=-1;function _r(){!O||!B||(O=!1,B.length?L=B.concat(L):V=-1,L.length&&Ie())}function Ie(){if(!O){var t=ke(_r);O=!0;for(var e=L.length;e;){for(B=L,L=[];++V<e;)B&&B[V].run();V=-1,e=L.length}B=null,O=!1,Ir(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new _e(t,e)),L.length===1&&!O&&ke(Ie)};function _e(t,e){this.fun=t,this.array=e}_e.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function N(){}y.on=N;y.addListener=N;y.once=N;y.off=N;y.removeListener=N;y.removeAllListeners=N;y.emit=N;y.prependListener=N;y.prependOnceListener=N;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Cr,l=Ve(()=>{f=q(ve()),m=q(Re()),Cr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Rr={};We(Rr,{calculateFeeLimit:()=>Er});module.exports=Ye(Rr);l();var k=require("@multiversx/sdk-core"),Oe=require("@multiversx/sdk-network-providers");l();l();l();l();l();l();l();l();l();l();l();l();l();var ie={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:Ae,egldLabel:Jr}=ie["devnet"],{chainId:Se,egldLabel:$r}=ie["testnet"],{chainId:Le,egldLabel:et}=ie["mainnet"];var rt={["devnet"]:Ae,["testnet"]:Se,["mainnet"]:Le},tt={[Ae]:"devnet",[Se]:"testnet",[Le]:"mainnet"};l();l();l();l();var A=require("@multiversx/sdk-web-wallet-provider");var Ne=5e4,Fe=1e9;var W="0";l();l();var Ce=q(require("bignumber.js")),De=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Ce.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();var Be=q(require("bignumber.js"));var Ue=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===W;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,i=new Be.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};l();l();var Pe={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Er({minGasLimit:t=String(Ne),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:a,defaultGasPrice:o=String(Fe),chainId:c}){let u=n||"",d=De(e)?e:t,g=Ue(r)?r:o,p=new k.Transaction({nonce:0,value:k.TokenPayment.egldFromAmount("0"),receiver:new k.Address(Pe.to),sender:new k.Address(Pe.to),gasPrice:parseInt(g),gasLimit:parseInt(d),data:new k.TransactionPayload(u.trim()),chainID:c,version:new k.TransactionVersion(1)}),w=new Oe.NetworkConfig;w.MinGasLimit=parseInt(t),w.GasPerDataByte=parseInt(i),w.GasPriceModifier=parseFloat(a);try{return p.computeFee(w).toString(10)}catch(b){return W}}0&&(module.exports={calculateFeeLimit});
1
+ "use strict";var Ge=Object.create;var M=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var ze=Object.getOwnPropertyNames;var je=Object.getPrototypeOf,He=Object.prototype.hasOwnProperty;var Ve=(t,e)=>()=>(t&&(e=t(t=0)),e);var G=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),We=(t,e)=>{for(var r in e)M(t,r,{get:e[r],enumerable:!0})},ae=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ze(e))!He.call(t,i)&&i!==r&&M(t,i,{get:()=>e[i],enumerable:!(n=qe(e,i))||n.enumerable});return t};var q=(t,e,r)=>(r=t!=null?Ge(je(t)):{},ae(e||!t||!t.__esModule?M(r,"default",{value:t,enumerable:!0}):r,t)),Ye=t=>ae(M({},"__esModule",{value:!0}),t);var le=G(z=>{"use strict";l();z.byteLength=Qe;z.toByteArray=Ke;z.fromByteArray=er;var I=[],v=[],Xe=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,oe=Y.length;C<oe;++C)I[C]=Y[C],v[Y.charCodeAt(C)]=C;var C,oe;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function se(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Qe(t){var e=se(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Ze(t,e,r){return(e+r)*3/4-r}function Ke(t){var e,r=se(t),n=r[0],i=r[1],a=new Xe(Ze(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function Je(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function $e(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(Je(n));return i.join("")}function er(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push($e(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(I[e>>2]+I[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(I[e>>10]+I[e>>4&63]+I[e<<2&63]+"=")),i.join("")}});var ce=G(X=>{l();X.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,d=u>>1,g=-7,p=r?i-1:0,w=r?-1:1,b=t[e+p];for(p+=w,a=b&(1<<-g)-1,b>>=-g,g+=c;g>0;a=a*256+t[e+p],p+=w,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=w,g-=8);if(a===0)a=1-d;else{if(a===u)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};X.write=function(t,e,r,n,i,a){var o,c,u,d=a*8-i-1,g=(1<<d)-1,p=g>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,F=n?1:-1,Me=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=w/u:e+=w*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=g?(c=0,o=g):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=c&255,b+=F,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;t[r+b]=o&255,b+=F,o/=256,d-=8);t[r+b-F]|=Me*128}});var ve=G(P=>{"use strict";l();var Q=le(),U=ce(),ue=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=or;P.INSPECT_MAX_BYTES=50;var j=2147483647;P.kMaxLength=j;s.TYPED_ARRAY_SUPPORT=rr();!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 rr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function S(t){if(t>j)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(t)}return ge(t,e,r)}s.poolSize=8192;function ge(t,e,r){if(typeof t=="string")return nr(t,e);if(ArrayBuffer.isView(t))return ir(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return K(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=ar(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return ge(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function fe(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 tr(t,e,r){return fe(t),t<=0?S(t):e!==void 0?typeof r=="string"?S(t).fill(e,r):S(t).fill(e):S(t)}s.alloc=function(t,e,r){return tr(t,e,r)};function $(t){return fe(t),S(t<0?0:ee(t)|0)}s.allocUnsafe=function(t){return $(t)};s.allocUnsafeSlow=function(t){return $(t)};function nr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=me(t,e)|0,n=S(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Z(t){for(var e=t.length<0?0:ee(t.length)|0,r=S(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function ir(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return K(e.buffer,e.byteOffset,e.byteLength)}return Z(t)}function K(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function ar(t){if(s.isBuffer(t)){var e=ee(t.length)|0,r=S(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||re(t.length)?S(0):Z(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Z(t.data)}function ee(t){if(t>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return t|0}function or(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(_(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function me(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Te(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=me;function sr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return yr(this,e,r);case"utf8":case"utf-8":return ye(this,e,r);case"ascii":return mr(this,e,r);case"latin1":case"binary":return hr(this,e,r);case"base64":return gr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function D(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)D(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)D(this,r,r+3),D(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)D(this,r,r+7),D(this,r+1,r+6),D(this,r+2,r+5),D(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ye(this,0,e):sr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};ue&&(s.prototype[ue]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),d=this.slice(i,a),g=e.slice(r,n),p=0;p<u;++p)if(d[p]!==g[p]){o=d[p],c=g[p];break}return o<c?-1:c<o?1:0};function he(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,re(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:pe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):pe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function pe(t,e,r,n,i){var a=1,o=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,c/=2,r/=2}function u(b,F){return a===1?b[F]:b.readUInt16BE(F*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(u(t,d)===u(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){for(var p=!0,w=0;w<c;w++)if(u(t,d+w)!==u(e,w)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return he(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return he(this,e,r,n,!1)};function lr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(re(c))return o;t[r+o]=c}return o}function cr(t,e,r,n){return H(J(e,t.length-r),t,r,n)}function ur(t,e,r,n){return H(Tr(e),t,r,n)}function pr(t,e,r,n){return H(Te(e),t,r,n)}function dr(t,e,r,n){return H(vr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return lr(this,e,r,n);case"utf8":case"utf-8":return cr(this,e,r,n);case"ascii":case"latin1":case"binary":return ur(this,e,r,n);case"base64":return pr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function gr(t,e,r){return e===0&&r===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,r))}function ye(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,d,g,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(p=(a&15)<<12|(u&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],d=t[i+2],g=t[i+3],(u&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(u&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return fr(n)}var de=4096;function fr(t){var e=t.length;if(e<=de)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=de));return r}function mr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function hr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function yr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=kr[t[a]];return i}function xr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!1,52,8)};function T(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function xe(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function we(t,e,r,n,i){return e=+e,r=r>>>0,i||xe(t,e,r,4,34028234663852886e22,-34028234663852886e22),U.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return we(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return we(this,e,r,!1,n)};function be(t,e,r,n,i){return e=+e,r=r>>>0,i||xe(t,e,r,8,17976931348623157e292,-17976931348623157e292),U.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return be(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return be(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var wr=/[^+/0-9A-Za-z-_]/g;function br(t){if(t=t.split("=")[0],t=t.trim().replace(wr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Tr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function vr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Te(t){return Q.toByteArray(br(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function re(t){return t!==t}var kr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Ae=G((Fr,Ee)=>{l();var y=Ee.exports={},E,A;function te(){throw new Error("setTimeout has not been defined")}function ne(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=te}catch(t){E=te}try{typeof clearTimeout=="function"?A=clearTimeout:A=ne}catch(t){A=ne}})();function ke(t){if(E===setTimeout)return setTimeout(t,0);if((E===te||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function Ir(t){if(A===clearTimeout)return clearTimeout(t);if((A===ne||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(e){try{return A.call(null,t)}catch(r){return A.call(this,t)}}}var L=[],O=!1,B,V=-1;function _r(){!O||!B||(O=!1,B.length?L=B.concat(L):V=-1,L.length&&Ie())}function Ie(){if(!O){var t=ke(_r);O=!0;for(var e=L.length;e;){for(B=L,L=[];++V<e;)B&&B[V].run();V=-1,e=L.length}B=null,O=!1,Ir(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new _e(t,e)),L.length===1&&!O&&ke(Ie)};function _e(t,e){this.fun=t,this.array=e}_e.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function N(){}y.on=N;y.addListener=N;y.once=N;y.off=N;y.removeListener=N;y.removeAllListeners=N;y.emit=N;y.prependListener=N;y.prependOnceListener=N;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Cr,l=Ve(()=>{f=q(ve()),m=q(Ae()),Cr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Ar={};We(Ar,{calculateFeeLimit:()=>Er});module.exports=Ye(Ar);l();var k=require("@multiversx/sdk-core"),Oe=require("@multiversx/sdk-network-providers");l();l();l();l();l();l();l();l();l();l();l();l();l();var ie={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:Re,egldLabel:Jr}=ie["devnet"],{chainId:Se,egldLabel:$r}=ie["testnet"],{chainId:Le,egldLabel:et}=ie["mainnet"];var rt={["devnet"]:Re,["testnet"]:Se,["mainnet"]:Le},tt={[Re]:"devnet",[Se]:"testnet",[Le]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");var Ne=5e4,Fe=1e9;var W="0";l();l();var Ce=q(require("bignumber.js")),De=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Ce.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();var Be=q(require("bignumber.js"));var Ue=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===W;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,i=new Be.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};l();l();var Pe={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Er({minGasLimit:t=String(Ne),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:a,defaultGasPrice:o=String(Fe),chainId:c}){let u=n||"",d=De(e)?e:t,g=Ue(r)?r:o,p=new k.Transaction({nonce:0,value:k.TokenPayment.egldFromAmount("0"),receiver:new k.Address(Pe.to),sender:new k.Address(Pe.to),gasPrice:parseInt(g),gasLimit:parseInt(d),data:new k.TransactionPayload(u.trim()),chainID:c,version:new k.TransactionVersion(1)}),w=new Oe.NetworkConfig;w.MinGasLimit=parseInt(t),w.GasPerDataByte=parseInt(i),w.GasPriceModifier=parseFloat(a);try{return p.computeFee(w).toString(10)}catch(b){return W}}0&&(module.exports={calculateFeeLimit});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *