@multiversx/sdk-dapp 2.10.16 → 2.10.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/UI/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/Denominate/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/FormatAmount/FormatAmount.js +1 -1
- package/UI/FormatAmount/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionData/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
- package/UI/TransactionInfo/components/DataField/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/AccountName.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/ImageWithFallback.d.ts +7 -0
- package/UI/walletConnect/WalletConnectLoginContainer/ImageWithFallback.js +2 -0
- package/UI/walletConnect/WalletConnectLoginContainer/PairingList.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.d.ts +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/walletConnectLoginContainerStyles.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-JJDEBWPU.js → chunk-24OJ7KCF.js} +2 -2
- package/__chunks__/{chunk-LQQXP7XC.js → chunk-24SGLNBY.js} +2 -2
- package/__chunks__/{chunk-HY2CW4MA.js → chunk-2A2MCZLD.js} +2 -2
- package/__chunks__/{chunk-7X6HMTFB.js → chunk-2AOPQAPV.js} +2 -2
- package/__chunks__/{chunk-APT6TZDP.js → chunk-2DM3MLLS.js} +2 -2
- package/__chunks__/chunk-2OPNEB2K.js +2 -0
- package/__chunks__/{chunk-H6JLXN4M.js → chunk-2OXZ65MK.js} +2 -2
- package/__chunks__/{chunk-UFEQ7YFP.js → chunk-2QLPNN7L.js} +2 -2
- package/__chunks__/{chunk-NFZ3DY2N.js → chunk-2RBD4FTR.js} +2 -2
- package/__chunks__/{chunk-SLDA4IQM.js → chunk-2YMRTE7T.js} +2 -2
- package/__chunks__/{chunk-7ZYCCREG.js → chunk-2ZEUNKTP.js} +2 -2
- package/__chunks__/{chunk-5DBVU5IQ.js → chunk-353VUEUC.js} +2 -2
- package/__chunks__/{chunk-XARG24JS.js → chunk-3EMJ6VHI.js} +2 -2
- package/__chunks__/{chunk-VNSV65R6.js → chunk-3IQVAJO6.js} +2 -2
- package/__chunks__/{chunk-3GOMAM3K.js → chunk-3LKAAPJM.js} +2 -2
- package/__chunks__/{chunk-CI77PDNR.js → chunk-3P57B6U6.js} +2 -2
- package/__chunks__/{chunk-QIKAC5BP.js → chunk-3R3VZI2S.js} +2 -2
- package/__chunks__/{chunk-3DG4MWZW.js → chunk-3RUHPLHA.js} +2 -2
- package/__chunks__/{chunk-VGLU5WHV.js → chunk-3VP4LJRB.js} +2 -2
- package/__chunks__/{chunk-4HUZXJU6.js → chunk-3WQODEBZ.js} +2 -2
- package/__chunks__/{chunk-MRRKFV6I.js → chunk-42RJQAFV.js} +2 -2
- package/__chunks__/{chunk-HYGRY4QB.js → chunk-4E5ZK46H.js} +2 -2
- package/__chunks__/{chunk-DYMENMQ5.js → chunk-4EOHXDP3.js} +2 -2
- package/__chunks__/chunk-4JGOLVJN.js +2 -0
- package/__chunks__/{chunk-EG5RSUPK.js → chunk-4PR6ZJ3J.js} +2 -2
- package/__chunks__/{chunk-56AHKWRJ.js → chunk-4Z6EY67I.js} +2 -2
- package/__chunks__/{chunk-ZM6K2FFG.js → chunk-5AR4CLDY.js} +2 -2
- package/__chunks__/{chunk-RC3NVNXX.js → chunk-5BB5RBNN.js} +2 -2
- package/__chunks__/chunk-5FGVAFZ7.js +2 -0
- package/__chunks__/chunk-5GQHZUMU.js +2 -0
- package/__chunks__/{chunk-TRUEH24M.js → chunk-5NPCXYNH.js} +2 -2
- package/__chunks__/{chunk-ODGQYPUL.js → chunk-5RD6HM3T.js} +2 -2
- package/__chunks__/chunk-5TM2W72O.js +2 -0
- package/__chunks__/{chunk-4V5LOWP7.js → chunk-5V4KCOPF.js} +2 -2
- package/__chunks__/{chunk-R7ADKYKL.js → chunk-5VPXKALT.js} +2 -2
- package/__chunks__/{chunk-A3EX3PIS.js → chunk-5ZQEV7DE.js} +2 -2
- package/__chunks__/chunk-62Y4445N.js +2 -0
- package/__chunks__/{chunk-64DC4TYB.js → chunk-63THRQDH.js} +2 -2
- package/__chunks__/{chunk-A3NKEWOX.js → chunk-6I3TXZZD.js} +2 -2
- package/__chunks__/{chunk-7BL6YWLN.js → chunk-6OVH2EJQ.js} +2 -2
- package/__chunks__/{chunk-BD5HTXC3.js → chunk-6P37SHMZ.js} +2 -2
- package/__chunks__/chunk-6PHQRATN.js +2 -0
- package/__chunks__/chunk-6X5R7OB5.js +2 -0
- package/__chunks__/{chunk-PVRNLQLY.js → chunk-76XGJS7U.js} +2 -2
- package/__chunks__/{chunk-6Z56IRF4.js → chunk-7DEKJTJ2.js} +2 -2
- package/__chunks__/{chunk-D5UBDY7T.js → chunk-7DOOD73B.js} +2 -2
- package/__chunks__/{chunk-YRXXO2IW.js → chunk-7IC3HZVB.js} +2 -2
- package/__chunks__/chunk-7KK5ED2S.js +2 -0
- package/__chunks__/{chunk-O4NXR6GC.js → chunk-7P4TXZMP.js} +2 -2
- package/__chunks__/{chunk-V4QDMLWO.js → chunk-7RNOZDML.js} +2 -2
- package/__chunks__/chunk-7SGCCT6C.js +2 -0
- package/__chunks__/{chunk-I7PAWXVF.js → chunk-7VKMKSMR.js} +2 -2
- package/__chunks__/{chunk-WCGXNTPB.js → chunk-A2CO2YVF.js} +2 -2
- package/__chunks__/{chunk-VHHIARAI.js → chunk-A6VL65WE.js} +2 -2
- package/__chunks__/{chunk-T6XHPPMM.js → chunk-A7BO3UNU.js} +2 -2
- package/__chunks__/{chunk-LBHWOAGE.js → chunk-ABJ5PPND.js} +2 -2
- package/__chunks__/{chunk-EE4UODBX.js → chunk-AHUFO6JJ.js} +2 -2
- package/__chunks__/{chunk-GTDRLMGZ.js → chunk-AKXLYENO.js} +2 -2
- package/__chunks__/chunk-ASB43WOA.js +2 -0
- package/__chunks__/{chunk-HEZ55RY6.js → chunk-AUBIXMVS.js} +2 -2
- package/__chunks__/{chunk-Z4UGGLNJ.js → chunk-B5NVVMR7.js} +2 -2
- package/__chunks__/{chunk-MISABUHS.js → chunk-B6PGANAK.js} +2 -2
- package/__chunks__/{chunk-HRCH4Y24.js → chunk-BKQNVPXF.js} +2 -2
- package/__chunks__/{chunk-FTYX6AG2.js → chunk-BOGJH656.js} +2 -2
- package/__chunks__/{chunk-7TWOE75A.js → chunk-BOQAP3DC.js} +2 -2
- package/__chunks__/{chunk-NOYJLD7U.js → chunk-BS736HVP.js} +2 -2
- package/__chunks__/{chunk-CWAWFXKQ.js → chunk-BT7NJ6MX.js} +2 -2
- package/__chunks__/{chunk-XVZN357I.js → chunk-BX64MMLT.js} +2 -2
- package/__chunks__/{chunk-XJK44YBP.js → chunk-BXDGZ253.js} +2 -2
- package/__chunks__/{chunk-YBAZ4ISZ.js → chunk-BY6S6WNQ.js} +2 -2
- package/__chunks__/{chunk-MDR6T623.js → chunk-C4A6VHGL.js} +2 -2
- package/__chunks__/{chunk-72SKNNY5.js → chunk-CJ4ECDKI.js} +2 -2
- package/__chunks__/chunk-CJLZ3B24.js +2 -0
- package/__chunks__/{chunk-ICNKI7XM.js → chunk-CNF7Y7AQ.js} +2 -2
- package/__chunks__/{chunk-PJGIRBV6.js → chunk-D5D6AV6G.js} +2 -2
- package/__chunks__/{chunk-VDVHL356.js → chunk-DBXOPGJW.js} +2 -2
- package/__chunks__/{chunk-7AOLP4UV.js → chunk-DFZAKONB.js} +2 -2
- package/__chunks__/{chunk-4B4RXNGS.js → chunk-E2AVLPGD.js} +2 -2
- package/__chunks__/chunk-E5TRYVLP.js +2 -0
- package/__chunks__/{chunk-VI4CEFAP.js → chunk-EC436OTI.js} +2 -2
- package/__chunks__/{chunk-MVA4RMOU.js → chunk-EDXKPRBF.js} +2 -2
- package/__chunks__/{chunk-67S3BFX7.js → chunk-EFJVIBBH.js} +2 -2
- package/__chunks__/{chunk-UP53FJ6K.js → chunk-EGRWVT4Y.js} +2 -2
- package/__chunks__/{chunk-EFBQ67ZU.js → chunk-EIXEFFD7.js} +2 -2
- package/__chunks__/{chunk-25LYYPSL.js → chunk-EJAEQJGS.js} +2 -2
- package/__chunks__/{chunk-STRKWZEN.js → chunk-EMVKGLD7.js} +2 -2
- package/__chunks__/{chunk-Q5YGWIM7.js → chunk-EO272DZL.js} +2 -2
- package/__chunks__/chunk-EOOIJMLH.js +2 -0
- package/__chunks__/{chunk-6XFZX4V3.js → chunk-ET7634GV.js} +2 -2
- package/__chunks__/{chunk-IIRSMPA2.js → chunk-EV2NV6KZ.js} +2 -2
- package/__chunks__/{chunk-FTPMKH6A.js → chunk-EWWU75VZ.js} +2 -2
- package/__chunks__/{chunk-2GCNFOBQ.js → chunk-F26JGGDS.js} +2 -2
- package/__chunks__/{chunk-HBF5SY7F.js → chunk-F4GULQAI.js} +2 -2
- package/__chunks__/chunk-F6AJXONI.js +2 -0
- package/__chunks__/{chunk-5QWRRMG2.js → chunk-F6RFYLMF.js} +2 -2
- package/__chunks__/{chunk-FA7ULR4S.js → chunk-FEEPN2KN.js} +4 -1
- package/__chunks__/chunk-FEWSMC4F.js +2 -0
- package/__chunks__/{chunk-VXUOWYMK.js → chunk-FK7CLTXE.js} +2 -2
- package/__chunks__/{chunk-UEHFZV3I.js → chunk-FQQWI2D4.js} +2 -2
- package/__chunks__/{chunk-6IBVLNVR.js → chunk-FVQ22MYZ.js} +2 -2
- package/__chunks__/{chunk-WLNBHZ2R.js → chunk-FX2OEKNY.js} +2 -2
- package/__chunks__/chunk-FX327RUW.js +2 -0
- package/__chunks__/chunk-FXQ35K3U.js +2 -0
- package/__chunks__/{chunk-FHXJESVH.js → chunk-FY63CB2A.js} +2 -2
- package/__chunks__/{chunk-SHDX7NR2.js → chunk-G3PZHPKZ.js} +2 -2
- package/__chunks__/{chunk-B2FPMM73.js → chunk-G3XJ7574.js} +2 -2
- package/__chunks__/{chunk-PFRXTPGY.js → chunk-GD6SCNZV.js} +2 -2
- package/__chunks__/{chunk-OKDSWITH.js → chunk-GE2RPCCV.js} +2 -2
- package/__chunks__/{chunk-CMF7545O.js → chunk-GE7XUQDI.js} +2 -2
- package/__chunks__/{chunk-BEP37UC6.js → chunk-GHPCUPU2.js} +2 -2
- package/__chunks__/{chunk-C2TUA5D7.js → chunk-GMCBRLKE.js} +2 -2
- package/__chunks__/{chunk-I55IS57L.js → chunk-GQQZ3U4O.js} +2 -2
- package/__chunks__/{chunk-YLMQQGTH.js → chunk-GY7525ST.js} +2 -2
- package/__chunks__/{chunk-TZGEIXX4.js → chunk-GYOCH7BN.js} +2 -2
- package/__chunks__/{chunk-LIHBSEAD.js → chunk-H367JQ46.js} +2 -2
- package/__chunks__/{chunk-3PTECJEN.js → chunk-H6OKWNQL.js} +2 -2
- package/__chunks__/{chunk-JQNDBEDA.js → chunk-HAVQLHXJ.js} +2 -2
- package/__chunks__/{chunk-TQ6BZ3YK.js → chunk-HDWH4ZRO.js} +2 -2
- package/__chunks__/{chunk-33H7HM36.js → chunk-HOFMVQXK.js} +2 -2
- package/__chunks__/chunk-HT6ZSM7P.js +2 -0
- package/__chunks__/{chunk-WFTVAB73.js → chunk-HTO5H5GO.js} +2 -2
- package/__chunks__/{chunk-R27UKMA6.js → chunk-HVCZPSWW.js} +2 -2
- package/__chunks__/chunk-I2NVMWNR.js +2 -0
- package/__chunks__/{chunk-JNHRBSPO.js → chunk-I3V5NNNC.js} +2 -2
- package/__chunks__/chunk-I5YYBZDP.js +2 -0
- package/__chunks__/{chunk-BBBZEERM.js → chunk-IBNOB7HH.js} +2 -2
- package/__chunks__/{chunk-P2BCRP5V.js → chunk-ICGFAZ6F.js} +2 -2
- package/__chunks__/{chunk-EDX2MNPG.js → chunk-IJYBKFJ4.js} +2 -2
- package/__chunks__/chunk-IMX3Z3RY.js +2 -0
- package/__chunks__/{chunk-4RC7VEYO.js → chunk-J6OT6HQZ.js} +2 -2
- package/__chunks__/{chunk-QXIBYDPP.js → chunk-JASKCX5T.js} +2 -2
- package/__chunks__/chunk-JCFXQJSI.js +2 -0
- package/__chunks__/{chunk-2PA72F75.js → chunk-JF2LFW3V.js} +2 -2
- package/__chunks__/chunk-JHW32CXC.js +2 -0
- package/__chunks__/{chunk-3HVIENSM.js → chunk-JLY4442Z.js} +2 -2
- package/__chunks__/{chunk-XJOLNCFK.js → chunk-JNKZSJNZ.js} +2 -2
- package/__chunks__/chunk-JOSJCDBR.js +2 -0
- package/__chunks__/chunk-JX5SSSLF.js +2 -0
- package/__chunks__/{chunk-QMQH5ULY.js → chunk-JXOKW4SL.js} +2 -2
- package/__chunks__/chunk-K2GW23ZC.js +2 -0
- package/__chunks__/{chunk-FERUHIYS.js → chunk-K2U5CLQE.js} +2 -2
- package/__chunks__/{chunk-V7FHBHU4.js → chunk-K7ZH2SJE.js} +2 -2
- package/__chunks__/chunk-KG4M4ACY.js +2 -0
- package/__chunks__/{chunk-IQVKUFGU.js → chunk-KGRJ6NTJ.js} +2 -2
- package/__chunks__/{chunk-FPQRZSTF.js → chunk-KJCMYCPS.js} +2 -2
- package/__chunks__/{chunk-MLGIGWWZ.js → chunk-KJE55U6V.js} +2 -2
- package/__chunks__/{chunk-ESBNZUXN.js → chunk-KMO3VZVQ.js} +2 -2
- package/__chunks__/{chunk-C7FH4AOI.js → chunk-KO3OTCSC.js} +2 -2
- package/__chunks__/chunk-KOCTQUOL.js +2 -0
- package/__chunks__/{chunk-CGC7JCKX.js → chunk-KRIHLOOP.js} +2 -2
- package/__chunks__/{chunk-JI42XC5O.js → chunk-KSOG6NO5.js} +2 -2
- package/__chunks__/{chunk-VTI5IUEC.js → chunk-KUYDWTU3.js} +2 -2
- package/__chunks__/chunk-KVVBB443.js +2 -0
- package/__chunks__/{chunk-P26LLO2D.js → chunk-KZZFZL5X.js} +2 -2
- package/__chunks__/{chunk-ID2G62VE.js → chunk-L57O22OD.js} +2 -2
- package/__chunks__/{chunk-YYEQ5OVG.js → chunk-LCNI2BNF.js} +2 -2
- package/__chunks__/{chunk-BQZWZAUY.js → chunk-LFKXTV7X.js} +2 -2
- package/__chunks__/chunk-LH46WQCP.js +2 -0
- package/__chunks__/{chunk-4X4DKRC3.js → chunk-LHCY2HW6.js} +2 -2
- package/__chunks__/{chunk-JGNCDJ62.js → chunk-LIIQO42Z.js} +2 -2
- package/__chunks__/chunk-LZLEOSIF.js +2 -0
- package/__chunks__/chunk-M263BCY6.js +2 -0
- package/__chunks__/chunk-M7JJAO3P.js +2 -0
- package/__chunks__/chunk-MT6AUSWR.js +2 -0
- package/__chunks__/{chunk-VJA3OS4V.js → chunk-MU3IENP2.js} +2 -2
- package/__chunks__/{chunk-LB2BFY3H.js → chunk-N2KE5OLS.js} +2 -2
- package/__chunks__/{chunk-AM6LBD2Y.js → chunk-N6A2MP6S.js} +2 -2
- package/__chunks__/{chunk-TDNCTPDS.js → chunk-NHEXKPFG.js} +2 -2
- package/__chunks__/{chunk-FOIN27NE.js → chunk-NHV5UWGF.js} +2 -2
- package/__chunks__/{chunk-QVZ7AIER.js → chunk-NO2XENP2.js} +2 -2
- package/__chunks__/chunk-NOGITS7R.js +2 -0
- package/__chunks__/{chunk-5H6LBSZM.js → chunk-NQTEJEB6.js} +2 -2
- package/__chunks__/{chunk-M4KXOW7P.js → chunk-NRIPFZ2O.js} +2 -2
- package/__chunks__/{chunk-IYZV7QCG.js → chunk-NUCIBJ4B.js} +2 -2
- package/__chunks__/{chunk-CVAD6EJ5.js → chunk-O2PLAER7.js} +2 -2
- package/__chunks__/{chunk-NWDZJJBT.js → chunk-OBYQB3UE.js} +2 -2
- package/__chunks__/{chunk-NFOZMVGI.js → chunk-OGD3H3N6.js} +2 -2
- package/__chunks__/{chunk-SLJ43T3X.js → chunk-OLQ65VS3.js} +2 -2
- package/__chunks__/{chunk-XEFCN2UF.js → chunk-ONX75UCI.js} +2 -2
- package/__chunks__/chunk-OUEPJKUR.js +2 -0
- package/__chunks__/{chunk-DQLINIBP.js → chunk-OXJSMSZX.js} +2 -2
- package/__chunks__/{chunk-HNE23OWE.js → chunk-OYT6COQO.js} +2 -2
- package/__chunks__/{chunk-TUDZ5KRU.js → chunk-P2HNYTSF.js} +2 -2
- package/__chunks__/{chunk-KA3CAMX7.js → chunk-P3FDUSLT.js} +2 -2
- package/__chunks__/{chunk-MK36FVJQ.js → chunk-P4IXJSAY.js} +2 -2
- package/__chunks__/{chunk-W7L7KEB6.js → chunk-P4RW434P.js} +2 -2
- package/__chunks__/{chunk-44X3EF7R.js → chunk-P7VDW7ZE.js} +2 -2
- package/__chunks__/{chunk-HOANVKA5.js → chunk-PBZX43A4.js} +2 -2
- package/__chunks__/{chunk-PTZVBHGW.js → chunk-PGPUQUEU.js} +2 -2
- package/__chunks__/{chunk-535RKD6M.js → chunk-PKCZS7U7.js} +2 -2
- package/__chunks__/{chunk-BQ6EKGFU.js → chunk-PQ7LBVAC.js} +2 -2
- package/__chunks__/{chunk-4YTCJ2WF.js → chunk-Q3YZ2723.js} +2 -2
- package/__chunks__/{chunk-HHBJDEI5.js → chunk-QCFETWAC.js} +2 -2
- package/__chunks__/chunk-QCG7SGOX.js +2 -0
- package/__chunks__/{chunk-KFFYCLNJ.js → chunk-QFKT22AW.js} +2 -2
- package/__chunks__/{chunk-6N5VY32R.js → chunk-QGIODHFK.js} +2 -2
- package/__chunks__/{chunk-ALQQT64V.js → chunk-QLWST6HJ.js} +2 -2
- package/__chunks__/{chunk-A2IKCHP3.js → chunk-QM237XII.js} +2 -2
- package/__chunks__/chunk-QNH7L3M6.js +2 -0
- package/__chunks__/{chunk-7YQNZ5P4.js → chunk-QRPURFAS.js} +2 -2
- package/__chunks__/{chunk-TWENT6YN.js → chunk-QRY35NB4.js} +2 -2
- package/__chunks__/chunk-QWY6SHHG.js +2 -0
- package/__chunks__/{chunk-2YSNVCBV.js → chunk-QX4DKR3D.js} +2 -2
- package/__chunks__/{chunk-BIWSS3BJ.js → chunk-QY7CJB4G.js} +2 -2
- package/__chunks__/{chunk-EB6HXNNY.js → chunk-R2YSMQ4I.js} +2 -2
- package/__chunks__/{chunk-YW57QDWN.js → chunk-R475WYSE.js} +2 -2
- package/__chunks__/{chunk-WKASIRAF.js → chunk-R76ZRE5A.js} +2 -2
- package/__chunks__/{chunk-LBLUZ7RI.js → chunk-RLU4NPC4.js} +2 -2
- package/__chunks__/{chunk-PASKU42C.js → chunk-RMD6HAI4.js} +2 -2
- package/__chunks__/{chunk-IV6DYDHK.js → chunk-RR356Z6D.js} +2 -2
- package/__chunks__/chunk-RRQEQ76C.js +2 -0
- package/__chunks__/{chunk-MR2IS7HI.js → chunk-RTPBDY4Q.js} +2 -2
- package/__chunks__/{chunk-RNVUI7T5.js → chunk-RVFDHAR7.js} +2 -2
- package/__chunks__/{chunk-N65WVSV2.js → chunk-RZP7K7XL.js} +2 -2
- package/__chunks__/{chunk-SFSXPOIO.js → chunk-S5BSIREW.js} +2 -2
- package/__chunks__/{chunk-PMCD5ZAT.js → chunk-S6OUF334.js} +2 -2
- package/__chunks__/{chunk-WLMHQ4N6.js → chunk-SA4WPLAS.js} +2 -2
- package/__chunks__/chunk-SADC2JUH.js +2 -0
- package/__chunks__/{chunk-HNPFS3FK.js → chunk-SAUXZHGQ.js} +2 -2
- package/__chunks__/{chunk-5FXUUUID.js → chunk-SF5FGOZB.js} +2 -2
- package/__chunks__/{chunk-XL32YOXR.js → chunk-SGTXMF4C.js} +2 -2
- package/__chunks__/{chunk-BTVZMKCD.js → chunk-SI3BPIM6.js} +2 -2
- package/__chunks__/{chunk-RBP2NLFO.js → chunk-SMNYUV4M.js} +2 -2
- package/__chunks__/{chunk-F3VFHLEI.js → chunk-SQCWRC3T.js} +2 -2
- package/__chunks__/chunk-SQGZEGO2.js +2 -0
- package/__chunks__/{chunk-SD4EHSNN.js → chunk-SQZPRBQJ.js} +2 -2
- package/__chunks__/{chunk-QBW6NGXK.js → chunk-T7DKVSBF.js} +2 -2
- package/__chunks__/chunk-THVMKNL7.js +2 -0
- package/__chunks__/{chunk-FSW3CZET.js → chunk-TJ222MQ4.js} +2 -2
- package/__chunks__/{chunk-A55WDU6L.js → chunk-TMEQ5IAI.js} +2 -2
- package/__chunks__/{chunk-OUVYD352.js → chunk-TPHV3KKL.js} +2 -2
- package/__chunks__/chunk-U5WH7XDN.js +2 -0
- package/__chunks__/{chunk-3PWLCKRL.js → chunk-U65BLT4U.js} +2 -2
- package/__chunks__/{chunk-SQNI4KUP.js → chunk-UBYTQURY.js} +2 -2
- package/__chunks__/chunk-UFAQWNZH.js +2 -0
- package/__chunks__/{chunk-67CUT27B.js → chunk-V2SBWOXY.js} +2 -2
- package/__chunks__/{chunk-XAZUU7SL.js → chunk-V3FFCD5I.js} +2 -2
- package/__chunks__/{chunk-72GWBK46.js → chunk-V4UF3ZPO.js} +2 -2
- package/__chunks__/{chunk-6LFQ6O6O.js → chunk-V52UR2GQ.js} +2 -2
- package/__chunks__/chunk-VE4KRWGC.js +2 -0
- package/__chunks__/chunk-VF3JB6E5.js +2 -0
- package/__chunks__/chunk-VFG6MPL7.js +2 -0
- package/__chunks__/{chunk-6SKFOK2M.js → chunk-VFIWMO3Z.js} +2 -2
- package/__chunks__/{chunk-L6GH2U6P.js → chunk-VL7EOLJA.js} +2 -2
- package/__chunks__/{chunk-LCO5R2BH.js → chunk-VLPVGL6U.js} +2 -2
- package/__chunks__/{chunk-VMPAE4NV.js → chunk-VMWLEDGI.js} +2 -2
- package/__chunks__/{chunk-7DFFSWVU.js → chunk-VUQGX2RG.js} +2 -2
- package/__chunks__/chunk-VYKIRYQG.js +2 -0
- package/__chunks__/{chunk-CT6ZTIJ6.js → chunk-W6SJ5T7V.js} +2 -2
- package/__chunks__/{chunk-MAO376S7.js → chunk-WAHBBIVA.js} +2 -2
- package/__chunks__/{chunk-WES4PTU5.js → chunk-WAKVWA2P.js} +2 -2
- package/__chunks__/{chunk-3NKORX5R.js → chunk-WBQEZGXF.js} +2 -2
- package/__chunks__/chunk-WGNSMBOL.js +2 -0
- package/__chunks__/{chunk-3M6DNWCB.js → chunk-WTZF74FI.js} +2 -2
- package/__chunks__/chunk-WUYXYYM2.js +2 -0
- package/__chunks__/{chunk-R4WZTTPT.js → chunk-WZ7N27VY.js} +2 -2
- package/__chunks__/{chunk-OCQXYTOS.js → chunk-XAK27FPP.js} +2 -2
- package/__chunks__/{chunk-KBNYB3FJ.js → chunk-XHAR7AGZ.js} +2 -2
- package/__chunks__/{chunk-XDO7HTVT.js → chunk-XHF4XEBJ.js} +2 -2
- package/__chunks__/{chunk-NOSM25LP.js → chunk-XK4BZEB4.js} +2 -2
- package/__chunks__/{chunk-3NNKUOLW.js → chunk-XL6XYI3G.js} +2 -2
- package/__chunks__/{chunk-QFWODHWG.js → chunk-XLCD2XA6.js} +2 -2
- package/__chunks__/{chunk-X2LPLBHT.js → chunk-XM4KUUW5.js} +2 -2
- package/__chunks__/{chunk-HIH3MEYF.js → chunk-XNB63NZM.js} +2 -2
- package/__chunks__/{chunk-L3N2U4UJ.js → chunk-XNZGF3PO.js} +2 -2
- package/__chunks__/{chunk-UMQSHIZY.js → chunk-XTKGZAYQ.js} +2 -2
- package/__chunks__/{chunk-OLS3M5CX.js → chunk-XWKJXLR5.js} +2 -2
- package/__chunks__/{chunk-FYAGCYUX.js → chunk-Y5FI3HHM.js} +2 -2
- package/__chunks__/{chunk-55RJ4CEA.js → chunk-YC4XSSW2.js} +2 -2
- package/__chunks__/{chunk-XF33DAZM.js → chunk-YDWYRAA7.js} +2 -2
- package/__chunks__/{chunk-OIYBDCB7.js → chunk-YHPEMIIR.js} +2 -2
- package/__chunks__/{chunk-JGAMPOJJ.js → chunk-YIQS65Q7.js} +2 -2
- package/__chunks__/{chunk-SDEXBQ7D.js → chunk-YP6ZL2GT.js} +2 -2
- package/__chunks__/chunk-YRIZOKJO.js +2 -0
- package/__chunks__/{chunk-OKVUWLHY.js → chunk-YWXELVTE.js} +2 -2
- package/__chunks__/chunk-YZC6D7ZZ.js +2 -0
- package/__chunks__/{chunk-646ESGYB.js → chunk-YZNOHKIO.js} +2 -2
- package/__chunks__/{chunk-4H7MOXLV.js → chunk-ZDVAKUDB.js} +2 -2
- package/__chunks__/{chunk-PJO6HLOP.js → chunk-ZJU7AUBQ.js} +2 -2
- package/__chunks__/{chunk-C3NPVNAI.js → chunk-ZMXT6PTT.js} +2 -2
- package/__chunks__/{chunk-TMSAYXTB.js → chunk-ZUAKIX6J.js} +2 -2
- package/__chunks__/chunk-ZWB67SM7.js +2 -0
- package/__chunks__/{chunk-XHVGPBGV.js → chunk-ZZ2X3CU4.js} +2 -2
- package/__commonjs/UI/DappModal/index.js +3 -3
- package/__commonjs/UI/Denominate/index.js +2 -2
- package/__commonjs/UI/FormatAmount/FormatAmount.js +3 -3
- package/__commonjs/UI/FormatAmount/index.js +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +2 -2
- package/__commonjs/UI/SignTransactionsModals/components/index.js +6 -6
- package/__commonjs/UI/SignTransactionsModals/index.js +2 -2
- package/__commonjs/UI/TransactionData/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/DataDecode/DataDecode.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/DataDecode/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/DataField/DataField.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/DataField/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/OperationsList/OperationList.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/OperationsList/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +11 -11
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/index.js +11 -11
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +11 -11
- package/__commonjs/UI/TransactionInfo/components/TransactionLogs/index.js +11 -11
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +3 -3
- package/__commonjs/UI/TransactionsTable/TransactionsTable.js +2 -2
- package/__commonjs/UI/TransactionsTable/components/AccountName.js +2 -2
- package/__commonjs/UI/TransactionsTable/components/LockedTokenAddressIcon.js +2 -2
- package/__commonjs/UI/TransactionsTable/components/ScAddressIcon.js +2 -2
- package/__commonjs/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/__commonjs/UI/TransactionsTable/components/TransactionShardsTransition.js +3 -3
- package/__commonjs/UI/TransactionsTable/index.js +2 -2
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +12 -12
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +9 -9
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +9 -9
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +10 -10
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +5 -5
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +12 -12
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +2 -2
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/__commonjs/UI/UsdValue/UsdValue.js +2 -2
- package/__commonjs/UI/UsdValue/index.js +2 -2
- package/__commonjs/UI/index.js +78 -75
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.js +2 -2
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +2 -2
- package/__commonjs/UI/pages/UnlockPage/index.js +22 -19
- package/__commonjs/UI/pages/index.js +22 -19
- package/__commonjs/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +10 -7
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +10 -7
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/ImageWithFallback.d.ts +7 -0
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/ImageWithFallback.js +9 -0
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/PairingList.js +5 -2
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.d.ts +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +9 -6
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/walletConnectLoginContainerStyles.js +5 -2
- package/__commonjs/UI/walletConnect/index.js +10 -7
- package/__commonjs/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__commonjs/__mocks__/accountConfig.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/server.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/__commonjs/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/__commonjs/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/__commonjs/apiCalls/configuration/index.js +1 -1
- package/__commonjs/apiCalls/index.js +1 -1
- package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/__commonjs/components/LogoutListener/index.js +1 -1
- package/__commonjs/components/ProviderInitializer.js +1 -1
- package/__commonjs/constants/network.js +1 -1
- package/__commonjs/hooks/account/index.js +1 -1
- package/__commonjs/hooks/account/useGetAccountProvider.js +1 -1
- package/__commonjs/hooks/account/useGetIsLoggedIn.js +1 -1
- package/__commonjs/hooks/account/useGetLoginInfo.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
- package/__commonjs/hooks/login/useLoginService.js +1 -1
- package/__commonjs/hooks/login/useOperaLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
- package/__commonjs/hooks/login/useWebViewLogin.js +1 -1
- package/__commonjs/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/__commonjs/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/__commonjs/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
- package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/models/index.js +1 -1
- package/__commonjs/providers/accountProvider.js +1 -1
- package/__commonjs/providers/index.js +1 -1
- package/__commonjs/providers/utils.js +1 -1
- package/__commonjs/providers/webviewProvider/index.js +1 -1
- package/__commonjs/providers/webviewProvider/requestMethods.js +1 -1
- package/__commonjs/providers/webviewProvider/webviewProvider.js +1 -1
- package/__commonjs/reduxStore/DappProviderContext.js +1 -1
- package/__commonjs/reduxStore/commonActions.js +1 -1
- package/__commonjs/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/__commonjs/reduxStore/persistConfig.js +1 -1
- package/__commonjs/reduxStore/persistedRootReducer.js +1 -1
- package/__commonjs/reduxStore/reducers.js +1 -1
- package/__commonjs/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/helpers.js +1 -1
- package/__commonjs/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/toastsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/slices/accountInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/dappModalsSlice.js +1 -1
- package/__commonjs/reduxStore/slices/index.js +1 -1
- package/__commonjs/reduxStore/slices/loginInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/modalsSlice.js +1 -1
- package/__commonjs/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/toastsSlice.js +1 -1
- package/__commonjs/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/transactionsSlice.js +1 -1
- package/__commonjs/reduxStore/store.js +1 -1
- package/__commonjs/services/transactions/clearTransactions.js +1 -1
- package/__commonjs/services/transactions/signTransactions.js +1 -1
- package/__commonjs/types/enums.types.d.ts +1 -2
- package/__commonjs/types/enums.types.js +1 -1
- package/__commonjs/types/index.js +1 -1
- package/__commonjs/utils/account/getAccountProviderType.js +1 -1
- package/__commonjs/utils/account/getAddress.js +1 -1
- package/__commonjs/utils/account/getIsProviderEqualTo.js +1 -1
- package/__commonjs/utils/account/getShardOfAddress.js +1 -1
- package/__commonjs/utils/account/loginWithExternalProvider.js +1 -1
- package/__commonjs/utils/account/refreshAccount.js +1 -1
- package/__commonjs/utils/account/signMessage.js +1 -1
- package/__commonjs/utils/logout.js +1 -1
- package/__commonjs/utils/operations/denominate.js +1 -1
- package/__commonjs/utils/operations/formatAmount.js +1 -1
- package/__commonjs/utils/operations/index.js +1 -1
- package/__commonjs/utils/platform/detectCurrentPlatform.js +1 -1
- package/__commonjs/utils/platform/index.js +1 -1
- package/__commonjs/utils/smartContracts.js +1 -1
- package/__commonjs/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/index.js +2 -2
- package/__commonjs/utils/transactions/getTokenFromData.js +1 -1
- package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/__commonjs/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +3 -3
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +3 -3
- package/__commonjs/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +3 -3
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/__commonjs/utils/transactions/transactionStateByStatus.js +1 -1
- package/__commonjs/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
- package/__commonjs/web/hooks/index.js +1 -1
- package/__commonjs/web/hooks/useIdleTimer.js +1 -1
- package/__commonjs/web/index.js +1 -1
- package/__commonjs/wrappers/AppInitializer.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/__commonjs/wrappers/DappProvider/CustomComponents.js +1 -1
- package/__commonjs/wrappers/DappProvider/DappProvider.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/accountConfig.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/server.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/models/index.js +1 -1
- package/models/newTransaction.js +1 -1
- package/package.json +2 -2
- package/providers/accountProvider.js +1 -1
- package/providers/index.js +1 -1
- package/providers/utils.js +1 -1
- package/providers/webviewProvider/index.js +1 -1
- package/providers/webviewProvider/requestMethods.js +1 -1
- package/providers/webviewProvider/webviewProvider.js +1 -1
- package/reduxStore/DappProviderContext.js +1 -1
- package/reduxStore/commonActions.js +1 -1
- package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/reduxStore/persistConfig.js +1 -1
- package/reduxStore/persistedRootReducer.js +1 -1
- package/reduxStore/reducers.js +1 -1
- package/reduxStore/rootReducer.js +1 -1
- package/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/reduxStore/selectors/helpers.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/modalsSelectors.js +1 -1
- package/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/reduxStore/selectors/toastsSelectors.js +1 -1
- package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/reduxStore/slices/accountInfoSlice.js +1 -1
- package/reduxStore/slices/dappModalsSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/slices/modalsSlice.js +1 -1
- package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/reduxStore/slices/toastsSlice.js +1 -1
- package/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/reduxStore/slices/transactionsSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
- package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/signTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/utils.js +1 -1
- package/types/enums.types.d.ts +1 -2
- package/types/enums.types.js +1 -1
- package/types/index.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountProviderType.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getIsProviderEqualTo.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/getShardOfAddress.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/loginWithExternalProvider.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/setNonce.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/network/getChainID.js +1 -1
- package/utils/network/getEgldLabel.js +1 -1
- package/utils/network/getNetworkConfig.js +1 -1
- package/utils/network/index.js +1 -1
- package/utils/operations/calculateFeeLimit.js +1 -1
- package/utils/operations/denominate.js +1 -1
- package/utils/operations/formatAmount.js +1 -1
- package/utils/operations/index.js +1 -1
- package/utils/operations/nominate.js +1 -1
- package/utils/operations/parseAmount.js +1 -1
- package/utils/platform/detectCurrentPlatform.js +1 -1
- package/utils/platform/index.js +1 -1
- package/utils/smartContracts.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/utils/transactions/getTokenFromData.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/utils/transactions/transactionStateByStatus.js +1 -1
- package/utils/validation/index.js +1 -1
- package/utils/validation/maxDecimals.js +1 -1
- package/utils/validation/stringIsFloat.js +1 -1
- package/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
- package/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-2KPRW74K.js +0 -2
- package/__chunks__/chunk-3YW6SLXC.js +0 -2
- package/__chunks__/chunk-4DS2Q5LW.js +0 -2
- package/__chunks__/chunk-5HRV72ZC.js +0 -2
- package/__chunks__/chunk-5ZXJXM3L.js +0 -2
- package/__chunks__/chunk-744DQ7ZI.js +0 -2
- package/__chunks__/chunk-7Z6F2U52.js +0 -2
- package/__chunks__/chunk-BAOVOANA.js +0 -2
- package/__chunks__/chunk-BCE6RONK.js +0 -2
- package/__chunks__/chunk-BLUG63Q2.js +0 -2
- package/__chunks__/chunk-BLWDDJJF.js +0 -2
- package/__chunks__/chunk-BRXBMHAS.js +0 -2
- package/__chunks__/chunk-C2NK6QSW.js +0 -2
- package/__chunks__/chunk-CDW2662X.js +0 -2
- package/__chunks__/chunk-CJO53GSR.js +0 -2
- package/__chunks__/chunk-CSHPES7K.js +0 -2
- package/__chunks__/chunk-CVRC3LLT.js +0 -2
- package/__chunks__/chunk-E3KA2FJ5.js +0 -2
- package/__chunks__/chunk-E6C3JWXL.js +0 -2
- package/__chunks__/chunk-EIUJUUMA.js +0 -2
- package/__chunks__/chunk-FCLS44BI.js +0 -2
- package/__chunks__/chunk-FLC53TPV.js +0 -2
- package/__chunks__/chunk-FTCWSZIB.js +0 -2
- package/__chunks__/chunk-G65FNHLP.js +0 -2
- package/__chunks__/chunk-GKK7U7J7.js +0 -2
- package/__chunks__/chunk-GMQ53JDD.js +0 -2
- package/__chunks__/chunk-GO5P7HHE.js +0 -2
- package/__chunks__/chunk-IJTARIG6.js +0 -2
- package/__chunks__/chunk-LEZT7BGE.js +0 -2
- package/__chunks__/chunk-LKUT6VEX.js +0 -2
- package/__chunks__/chunk-LTPOFFWE.js +0 -2
- package/__chunks__/chunk-LZSBQU7C.js +0 -2
- package/__chunks__/chunk-MM4TCQU3.js +0 -2
- package/__chunks__/chunk-MPH3OBOB.js +0 -2
- package/__chunks__/chunk-NGZ7GQV4.js +0 -2
- package/__chunks__/chunk-NMGB3ORJ.js +0 -2
- package/__chunks__/chunk-NVJ6UVZ3.js +0 -2
- package/__chunks__/chunk-OUJ2TGXC.js +0 -2
- package/__chunks__/chunk-Q27BCXDP.js +0 -2
- package/__chunks__/chunk-Q6BK2CI7.js +0 -2
- package/__chunks__/chunk-QHJZA2MO.js +0 -2
- package/__chunks__/chunk-QWJ446RL.js +0 -2
- package/__chunks__/chunk-R3TYUNXK.js +0 -2
- package/__chunks__/chunk-RGOYZTEJ.js +0 -2
- package/__chunks__/chunk-RUVW6WUN.js +0 -2
- package/__chunks__/chunk-T3ET46NT.js +0 -2
- package/__chunks__/chunk-UE5SMZSJ.js +0 -2
- package/__chunks__/chunk-UIGOLJ7B.js +0 -2
- package/__chunks__/chunk-VPN67LUL.js +0 -2
- package/__chunks__/chunk-VWLFZWE6.js +0 -2
- package/__chunks__/chunk-W7PLC5YB.js +0 -2
- package/__chunks__/chunk-XTIXKEXM.js +0 -2
- package/__chunks__/chunk-Z5J2KGZZ.js +0 -2
- package/__chunks__/chunk-ZWP2VUR6.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var $o=Object.create;var Te=Object.defineProperty,Vo=Object.defineProperties,Wo=Object.getOwnPropertyDescriptor,Go=Object.getOwnPropertyDescriptors,Ho=Object.getOwnPropertyNames,Ne=Object.getOwnPropertySymbols,qo=Object.getPrototypeOf,ht=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable;var mr=(e,t,r)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))ht.call(t,r)&&mr(e,r,t[r]);if(Ne)for(var r of Ne(t))fr.call(t,r)&&mr(e,r,t[r]);return e},w=(e,t)=>Vo(e,Go(t));var Tr=(e,t)=>{var r={};for(var o in e)ht.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ne)for(var o of Ne(e))t.indexOf(o)<0&&fr.call(e,o)&&(r[o]=e[o]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var Pe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oe=(e,t)=>{for(var r in t)Te(e,r,{get:t[r],enumerable:!0})},yr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ho(t))!ht.call(e,i)&&i!==r&&Te(e,i,{get:()=>t[i],enumerable:!(o=Wo(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?$o(qo(e)):{},yr(t||!e||!e.__esModule?Te(r,"default",{value:e,enumerable:!0}):r,e)),ye=e=>yr(Te({},"__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 Sr=Pe(Re=>{"use strict";n();Re.byteLength=jo;Re.toByteArray=Yo;Re.fromByteArray=Qo;var B=[],_=[],zo=typeof Uint8Array!="undefined"?Uint8Array:Array,xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ie=0,hr=xt.length;ie<hr;++ie)B[ie]=xt[ie],_[xt.charCodeAt(ie)]=ie;var ie,hr;_["-".charCodeAt(0)]=62;_["_".charCodeAt(0)]=63;function xr(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 jo(e){var t=xr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Ko(e,t,r){return(t+r)*3/4-r}function Yo(e){var t,r=xr(e),o=r[0],i=r[1],p=new zo(Ko(e,o,i)),l=0,g=i>0?o-4:o,d;for(d=0;d<g;d+=4)t=_[e.charCodeAt(d)]<<18|_[e.charCodeAt(d+1)]<<12|_[e.charCodeAt(d+2)]<<6|_[e.charCodeAt(d+3)],p[l++]=t>>16&255,p[l++]=t>>8&255,p[l++]=t&255;return i===2&&(t=_[e.charCodeAt(d)]<<2|_[e.charCodeAt(d+1)]>>4,p[l++]=t&255),i===1&&(t=_[e.charCodeAt(d)]<<10|_[e.charCodeAt(d+1)]<<4|_[e.charCodeAt(d+2)]>>2,p[l++]=t>>8&255,p[l++]=t&255),p}function Zo(e){return B[e>>18&63]+B[e>>12&63]+B[e>>6&63]+B[e&63]}function Xo(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(Zo(o));return i.join("")}function Qo(e){for(var t,r=e.length,o=r%3,i=[],p=16383,l=0,g=r-o;l<g;l+=p)i.push(Xo(e,l,l+p>g?g:l+p));return o===1?(t=e[r-1],i.push(B[t>>2]+B[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(B[t>>10]+B[t>>4&63]+B[t<<2&63]+"=")),i.join("")}});var wr=Pe(St=>{n();St.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)};St.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 _r=Pe(ue=>{"use strict";n();var wt=Sr(),pe=wr(),Ar=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ue.Buffer=u;ue.SlowBuffer=oi;ue.INSPECT_MAX_BYTES=50;var Ce=2147483647;ue.kMaxLength=Ce;u.TYPED_ARRAY_SUPPORT=Jo();!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 Jo(){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 bt(e)}return br(e,t,r)}u.poolSize=8192;function br(e,t,r){if(typeof e=="string")return ti(e,t);if(ArrayBuffer.isView(e))return ri(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 It(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=ni(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 br(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Er(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 ei(e,t,r){return Er(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 ei(e,t,r)};function bt(e){return Er(e),z(e<0?0:Et(e)|0)}u.allocUnsafe=function(e){return bt(e)};u.allocUnsafeSlow=function(e){return bt(e)};function ti(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 At(e){for(var t=e.length<0?0:Et(e.length)|0,r=z(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function ri(e){if($(e,Uint8Array)){var t=new Uint8Array(e);return It(t.buffer,t.byteOffset,t.byteLength)}return At(e)}function It(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 ni(e){if(u.isBuffer(e)){var t=Et(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):At(e);if(e.type==="Buffer"&&Array.isArray(e.data))return At(e.data)}function Et(e){if(e>=Ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ce.toString(16)+" bytes");return e|0}function oi(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 vt(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:vt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=kr;function ii(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 fi(this,t,r);case"utf8":case"utf-8":return Dr(this,t,r);case"ascii":return gi(this,t,r);case"latin1":case"binary":return mi(this,t,r);case"base64":return ui(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ti(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?Dr(this,0,t):ii.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+">"};Ar&&(u.prototype[Ar]=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 Lr(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:Ir(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):Ir(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Ir(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 Lr(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Lr(this,t,r,o,!1)};function si(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 ai(e,t,r,o){return _e(vt(t,e.length-r),e,r,o)}function ci(e,t,r,o){return _e(xi(t),e,r,o)}function li(e,t,r,o){return _e(Cr(t),e,r,o)}function pi(e,t,r,o){return _e(Si(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 si(this,t,r,o);case"utf8":case"utf-8":return ai(this,t,r,o);case"ascii":case"latin1":case"binary":return ci(this,t,r,o);case"base64":return li(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pi(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 ui(e,t,r){return t===0&&r===e.length?wt.fromByteArray(e):wt.fromByteArray(e.slice(t,r))}function Dr(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 di(o)}var vr=4096;function di(e){var t=e.length;if(t<=vr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=vr));return r}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]&127);return o}function mi(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 fi(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+=wi[e[p]];return i}function Ti(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 D(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;D(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;D(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||D(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||D(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||D(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||D(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||D(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);D(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);D(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||D(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||D(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||D(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||D(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||D(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 Nr(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 Pr(e,t,r,o,i){return t=+t,r=r>>>0,i||Nr(e,t,r,4,34028234663852886e22,-34028234663852886e22),pe.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Pr(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Pr(this,t,r,!1,o)};function Rr(e,t,r,o,i){return t=+t,r=r>>>0,i||Nr(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 yi=/[^+/0-9A-Za-z-_]/g;function hi(e){if(e=e.split("=")[0],e=e.trim().replace(yi,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function vt(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 xi(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Si(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 wt.toByteArray(hi(e))}function _e(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 wi=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=Pe((ca,Ur)=>{n();var S=Ur.exports={},V,W;function Lt(){throw new Error("setTimeout has not been defined")}function Dt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?V=setTimeout:V=Lt}catch(e){V=Lt}try{typeof clearTimeout=="function"?W=clearTimeout:W=Dt}catch(e){W=Dt}})();function Mr(e){if(V===setTimeout)return setTimeout(e,0);if((V===Lt||!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 Ai(e){if(W===clearTimeout)return clearTimeout(e);if((W===Dt||!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,Me=-1;function Ii(){!de||!ae||(de=!1,ae.length?j=ae.concat(j):Me=-1,j.length&&Or())}function Or(){if(!de){var e=Mr(Ii);de=!0;for(var t=j.length;t;){for(ae=j,j=[];++Me<t;)ae&&ae[Me].run();Me=-1,t=j.length}ae=null,de=!1,Ai(e)}}S.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];j.push(new Fr(e,t)),j.length===1&&!de&&Mr(Or)};function Fr(e,t){this.fun=e,this.array=t}Fr.prototype.run=function(){this.fun.apply(null,this.array)};S.title="browser";S.browser=!0;S.env={};S.argv=[];S.version="";S.versions={};function K(){}S.on=K;S.addListener=K;S.once=K;S.off=K;S.removeListener=K;S.removeAllListeners=K;S.emit=K;S.prependListener=K;S.prependOnceListener=K;S.listeners=function(e){return[]};S.binding=function(e){throw new Error("process.binding is not supported")};S.cwd=function(){return"/"};S.chdir=function(e){throw new Error("process.chdir is not supported")};S.umask=function(){return 0}});var s,a,la,n=f(()=>{s=A(_r()),a=A(Br()),la=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 $r=f(()=>{"use strict";n()});var Vr=f(()=>{"use strict";n()});var Wr=f(()=>{"use strict";n()});var Gr=f(()=>{"use strict";n()});var O=f(()=>{"use strict";n()});var Hr=f(()=>{"use strict";n()});var qr=f(()=>{"use strict";n()});var N=f(()=>{"use strict";n()});var zr=f(()=>{"use strict";n()});var jr=f(()=>{"use strict";n()});var P=f(()=>{"use strict";n();Vr();Wr();Gr();O();Hr();qr();N();zr();jr()});var Nt,Kr,La,Yr,Da,Zr,Na,Pa,Ra,Xr=f(()=>{"use strict";n();P();Nt={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:Kr,egldLabel:La}=Nt["devnet"],{chainId:Yr,egldLabel:Da}=Nt["testnet"],{chainId:Zr,egldLabel:Na}=Nt["mainnet"],Pa={["devnet"]:Kr,["testnet"]:Yr,["mainnet"]:Zr},Ra={[Kr]:"devnet",[Yr]:"testnet",[Zr]:"mainnet"}});var Pt=f(()=>{"use strict";n()});var Qr=f(()=>{"use strict";n()});var Jr,Rt=f(()=>{"use strict";n();Jr="transaction-status-toast-id"});var G,en=f(()=>{"use strict";n();G=require("@multiversx/sdk-web-wallet-provider")});var tn=f(()=>{"use strict";n()});var Ct,_t,rn,Oe,nn,ge,I=f(()=>{"use strict";n();$r();Xr();Pt();Qr();Rt();en();tn();Ct=5e4,_t=1e9,rn=1,Oe="logout",nn="login",ge="0"});var Ft,b,xe,F=f(()=>{"use strict";n();Ft=require("@reduxjs/toolkit");I();b=(0,Ft.createAction)(Oe),xe=(0,Ft.createAction)(nn,e=>({payload:e}))});var Ue,Ut=f(()=>{"use strict";n();Ue=()=>Date.now()/1e3});var pn=f(()=>{"use strict";n()});var un=f(()=>{"use strict";n()});var dn=f(()=>{"use strict";n();Ut();pn();un()});var $t={};oe($t,{getItem:()=>Ei,localStorageKeys:()=>U,removeItem:()=>ki,setItem:()=>bi});var U,Bt,bi,Ei,ki,fe=f(()=>{"use strict";n();dn();U={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Bt=typeof localStorage!="undefined",bi=({key:e,data:t,expires:r})=>{!Bt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ei=e=>{if(!Bt)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:Ue()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ki=e=>{!Bt||localStorage.removeItem(String(e))}});var Vt={};oe(Vt,{clear:()=>Tn,getItem:()=>mn,removeItem:()=>fn,setItem:()=>gn,storage:()=>Li});var gn,mn,fn,Tn,Li,yn=f(()=>{"use strict";n();gn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},mn=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},fn=e=>sessionStorage.removeItem(String(e)),Tn=()=>sessionStorage.clear(),Li={setItem:gn,getItem:mn,removeItem:fn,clear:Tn}});var H,Se=f(()=>{"use strict";n();fe();yn();H={session:Vt,local:$t}});var Gt,hn,xn,Be,Wt,Sn,Ht,vc,qt,bc,Ec,kc,Lc,Dc,Nc,Pc,$e,Ve=f(()=>{"use strict";n();Gt=require("@multiversx/sdk-core"),hn=require("@reduxjs/toolkit"),xn=require("redux-persist");I();Se();fe();F();Be={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ge},Wt={address:"",websocketEvent:null,accounts:{"":Be},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Sn=(0,hn.createSlice)({name:"accountInfoSlice",initialState:Wt,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Gt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Be},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(b,()=>(H.local.removeItem(U.loginExpiresAt),Wt)),e.addCase(xe,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Gt.Address(o).hex()}),e.addCase(xn.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:Wt.accounts,t.publicKey=g})}}),{setAccount:Ht,setAddress:vc,setAccountNonce:qt,setAccountShard:bc,setLedgerAccount:Ec,updateLedgerAccount:kc,setWalletConnectAccount:Lc,setIsAccountLoading:Dc,setAccountLoadingError:Nc,setWebsocketEvent:Pc}=Sn.actions,$e=Sn.reducer});function we(){return new Date().setHours(new Date().getHours()+24)}function Ae(e){H.local.setItem({key:U.loginExpiresAt,data:e,expires:e})}var zt=f(()=>{"use strict";n();Se();fe()});var An,wn,In,Vc,Wc,Gc,Hc,qc,zc,vn,jc,We,Ge=f(()=>{"use strict";n();An=require("@reduxjs/toolkit");zt();O();F();wn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},In=(0,An.createSlice)({name:"loginInfoSlice",initialState:wn,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(b,()=>wn),e.addCase(xe,(t,r)=>{t.loginMethod=r.payload.loginMethod,Ae(we())})}}),{setLoginMethod:Vc,setWalletConnectLogin:Wc,setLedgerLogin:Gc,setTokenLogin:Hc,setTokenLoginSignature:qc,setWalletLogin:zc,invalidateLoginSession:vn,setLogoutRoute:jc}=In.actions,We=In.reducer});var En,bn,kn,Xc,Qc,Jc,el,He,qe=f(()=>{"use strict";n();En=require("@reduxjs/toolkit");F();bn={},kn=(0,En.createSlice)({name:"modalsSlice",initialState:bn,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(b,()=>bn)}}),{setTxSubmittedModal:Xc,setNotificationModal:Qc,clearTxSubmittedModal:Jc,clearNotificationModal:el}=kn.actions,He=kn.reducer});var Ln,Dn,jt,Kt=f(()=>{"use strict";n();Ln=!1,Dn=(e=!0)=>{Ln=e},jt=(e,t=0)=>{Ln||setTimeout(()=>{!window||(window.location.href=e,window.location.assign(e))},t)}});var Nn=f(()=>{"use strict";n();Kt()});function Yt(e){return e[Math.floor(Math.random()*e.length)]}var Pn=f(()=>{"use strict";n()});var Rn=f(()=>{"use strict";n();Pt()});var Cn=f(()=>{"use strict";n();Nn();Pn();Rn()});var _n,Mn,Zt,Di,On,fl,Tl,ze,je=f(()=>{"use strict";n();_n=require("@reduxjs/toolkit"),Mn=A(require("lodash.omit"));Cn();Zt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Di={network:Zt,chainID:"-1"},On=(0,_n.createSlice)({name:"appConfig",initialState:Di,reducers:{initializeNetworkConfig:(e,t)=>{let r=Yt(t.payload.walletConnectBridgeAddresses),o=Yt(t.payload.walletConnectV2RelayAddresses),i=(0,Mn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:fl,setChainID:Tl}=On.actions,ze=On.reducer});var Fn,Xt,Un,Al,Il,vl,Ke,Ye=f(()=>{"use strict";n();Fn=require("@reduxjs/toolkit");P();F();Xt={isSigning:!1,signedSessions:{}},Un=(0,Fn.createSlice)({name:"signedMessageInfoSliceState",initialState:Xt,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=o},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Xt},extraReducers:e=>{e.addCase(b,()=>Xt)}}),{setSignSession:Al,clearSignedMessageInfo:Il,setSignSessionState:vl}=Un.actions,Ke=Un.reducer});var $n,Vn,Bn,Wn,Rl,Cl,_l,Ml,Ol,Fl,Ze,Xe=f(()=>{"use strict";n();$n=require("@reduxjs/toolkit"),Vn=require("redux-persist");Rt();P();Ut();F();Bn={customToasts:[],transactionToasts:[],failTransactionToast:null},Wn=(0,$n.createSlice)({name:"toastsSlice",initialState:Bn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(w(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ue(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=w(x({},t.payload),{toastId:Jr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(b,()=>Bn),e.addCase(Vn.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:Rl,removeCustomToast:Cl,addTransactionToast:_l,removeTransactionToast:Ml,addFailTransactionToast:Ol,removeFailTransactionToast:Fl}=Wn.actions,Ze=Wn.reducer});var Gn,Jt,er,tr,Ni,Qt,Hn,Vl,Wl,Gl,Qe,Je=f(()=>{"use strict";n();Gn=require("@reduxjs/toolkit");F();Jt="Transaction failed",er="Transaction successful",tr="Processing transaction",Ni="Transaction submitted",Qt={},Hn=(0,Gn.createSlice)({name:"transactionsInfo",initialState:Qt,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Jt,successMessage:(o==null?void 0:o.successMessage)||er,processingMessage:(o==null?void 0:o.processingMessage)||tr,submittedMessage:(o==null?void 0:o.submittedMessage)||Ni,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Qt},extraReducers:e=>{e.addCase(b,()=>Qt)}}),{clearTransactionsInfo:Vl,setTransactionsDisplayInfo:Wl,clearTransactionsInfoForSessionId:Gl}=Hn.actions,Qe=Hn.reducer});function qn(e){return e!=null&&(Bi(e)||Gi(e))}function et(e){return e!=null&&($i(e)||Hi(e))}function tt(e){return e!=null&&(Vi(e)||qi(e))}function zn(e){return e!=null&&Wi(e)}function Bi(e){return e!=null&&Ri.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)}function qi(e){return e!=null&&Ui.includes(e)}var Ri,Ci,_i,Mi,Oi,Fi,Ui,nr=f(()=>{"use strict";n();O();Ri=["sent"],Ci=["success"],_i=["fail","cancelled","timedOut"],Mi=["timedOut"],Oi=["pending"],Fi=["success"],Ui=["fail","invalid"]});var jn,Kn,Ie,zi,Yn,Ql,Jl,ep,tp,rp,np,op,ip,sp,ap,rt,nt=f(()=>{"use strict";n();jn=require("@reduxjs/toolkit"),Kn=require("redux-persist");O();nr();F();Ie={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},zi={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Yn=(0,jn.createSlice)({name:"transactionsSlice",initialState:Ie,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])||zi;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=Ie.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?w(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=Ie.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ie.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(b,()=>Ie),e.addCase(Kn.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:Jl,setTransactionsToSign:ep,clearAllTransactionsToSign:tp,clearAllSignedTransactions:rp,clearSignedTransaction:np,clearTransactionToSign:op,setSignTransactionsError:ip,setSignTransactionsCancelMessage:sp,moveTransactionsToSignedState:ap}=Yn.actions,rt=Yn.reducer});var ee=f(()=>{"use strict";n();Ve();Ge();qe();je();Ye();Xe();Je();nt()});var or=f(()=>{"use strict";n()});var eo,Jn,to,Pp,Rp,Cp,_p,Mp,Op,ro,no=f(()=>{"use strict";n();eo=require("@reduxjs/toolkit");F();Jn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},to=(0,eo.createSlice)({name:"dappModalsSlice",initialState:Jn,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(b,()=>Jn)}}),{setDappModalVisibility:Pp,setDappModalHeaderVisibility:Rp,setDappModalFooterVisibility:Cp,setDappModalHeaderText:_p,setDappModalFooterText:Mp,setDappModalConfig:Op}=to.actions,ro=to.reducer});var oo,Zi,Xi,ce,ct=f(()=>{"use strict";n();oo=require("@reduxjs/toolkit");or();Ve();no();Ge();qe();je();Ye();Xe();Je();nt();Zi={["account"]:$e,["dappModal"]:ro,["loginInfo"]:We,["modals"]:He,["networkConfig"]:ze,["signedMessageInfo"]:Ke,["toasts"]:Ze,["transactionsInfo"]:Qe,["transactions"]:rt},Xi=(e={})=>(0,oo.combineReducers)(x(x({},Zi),e)),ce=Xi});var co={};oe(co,{default:()=>ds,sessionStorageReducers:()=>ir});function te(e,t=[]){return{key:e,version:1,storage:so.default,blacklist:t}}var R,io,so,Qi,ve,Ji,es,ts,rs,ns,os,is,ss,as,ao,cs,ir,ls,ps,us,ds,lo=f(()=>{"use strict";n();R=require("redux-persist"),io=A(require("redux-persist/lib/storage")),so=A(require("redux-persist/lib/storage/session"));ct();ee();Ve();Ge();qe();je();Ye();Xe();Je();nt();or();Qi={persistReducersStorageType:"localStorage"},ve={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Ji=te(ve["account"]),es=te(ve["loginInfo"]),ts=te(ve["modals"]),rs=te(ve["networkConfig"]),ns={2:e=>w(x({},e),{networkConfig:Zt})};os=te("sdk-dapp-transactionsInfo"),is=te("sdk-dapp-transactions",["transactionsToSign"]),ss=te("sdk-dapp-toasts"),as=te("sdk-dapp-signedMessageInfo"),ao={key:"sdk-dapp-store",version:2,storage:io.default,whitelist:Object.keys(ve),migrate:(0,R.createMigrate)(ns,{debug:!1})},cs=w(x({},ao),{whitelist:[]}),ir={["toasts"]:(0,R.persistReducer)(ss,Ze),["transactions"]:(0,R.persistReducer)(is,rt),["transactionsInfo"]:(0,R.persistReducer)(os,Qe),["signedMessageInfo"]:(0,R.persistReducer)(as,Ke)},ls=w(x({},ir),{["account"]:(0,R.persistReducer)(Ji,$e),["loginInfo"]:(0,R.persistReducer)(es,We),["modals"]:(0,R.persistReducer)(ts,He),["networkConfig"]:(0,R.persistReducer)(rs,ze)}),ps=Qi.persistReducersStorageType==="localStorage",us=ps?(0,R.persistReducer)(ao,ce(ir)):(0,R.persistReducer)(cs,ce(ls)),ds=us});var po={};oe(po,{default:()=>gs});var gs,uo=f(()=>{"use strict";n();ct();gs=ce()});var go={};oe(go,{default:()=>fs});var M,ms,fs,mo=f(()=>{"use strict";n();M=require("redux-persist"),ms=[M.FLUSH,M.REHYDRATE,M.PAUSE,M.PERSIST,M.PURGE,M.REGISTER],fs=ms});var yo={};oe(yo,{default:()=>To});function To(e){return(0,fo.persistStore)(e)}var fo,ho=f(()=>{"use strict";n();fo=require("redux-persist")});var na={};oe(na,{logout:()=>ra});module.exports=ye(na);n();n();n();n();var sn=require("@multiversx/sdk-extension-provider"),an=require("@multiversx/sdk-hw-provider"),cn=require("@multiversx/sdk-opera-provider"),ln=require("@multiversx/sdk-web-wallet-provider");I();O();n();var Mt=me,on=Mt;var Fe=e=>{switch(e==null?void 0:e.constructor){case ln.WalletProvider:return"wallet";case Mt:return"walletconnect";case on:return"walletconnectv2";case an.HWProvider:return"ledger";case sn.ExtensionProvider:return"extension";case cn.OperaProvider:return"opera";case me:return"";default:return"extra"}};var Y=e=>`Unable to perform ${e}, Provider not initialized`,me=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)}},Ot=new me;var vi=Ot;function Z(){return vi||Ot}F();n();var sr=require("@reduxjs/toolkit"),Ao=require("react-redux/lib/utils/Subscription");ee();n();var Xn=A(require("lodash.throttle"));I();n();var Zn=A(require("lodash.isequal")),ot=require("reselect");P();var m=(0,ot.createSelectorCreator)(ot.defaultMemoize,Zn.default),it=(e,t)=>e!=""&&Boolean(t);ee();zt();Se();fe();var ji=[Oe],st=!1,Ki=(0,Xn.default)(()=>{Ae(we())},5e3),Qn=e=>t=>r=>{var d;if(ji.includes(r.type))return t(r);let o=e.getState(),i=H.local.getItem(U.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 Ae(we());let l=Date.now();return i-l<0&&!st?setTimeout(()=>{st=!0,e.dispatch(vn())},1e3):(st&&(st=!1),Ki()),t(r)};n();n();function at(){return typeof sessionStorage!="undefined"}var xo=at()?(lo(),ye(co)).default:(uo(),ye(po)).default,So=at()?(mo(),ye(go)).default:[],wo=at()?(ho(),ye(yo)).default:e=>e;ct();var E=(0,sr.configureStore)({reducer:xo,middleware:e=>e({serializableCheck:{ignoredActions:[...So,qt.type,Ht.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Qn)}),gu=(0,Ao.createSubscription)(E),mu=wo(E),fu=(0,sr.configureStore)({reducer:ce});P();n();n();n();ee();var X=e=>e.account,be=m(X,e=>e.address),lt=m(X,be,(e,t)=>t in e.accounts?e.accounts[t]:Be),xu=m(X,lt,(e,t)=>{let i=e,{accounts:r}=i,o=Tr(i,["accounts"]);return w(x({},o),{account:t})}),Su=m(lt,e=>e.balance),Ts=m(lt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),wu=m(X,e=>e.shard),Au=m(X,e=>e.ledgerAccount),Iu=m(X,e=>e.walletConnectAccount),vu=m(X,e=>e.isAccountLoading),bu=m(X,e=>e.accountLoadingError),Eu=m(X,e=>e.websocketEvent);n();var re=e=>e.loginInfo,Nu=m(re,e=>e.loginMethod),pt=m(re,be,(e,t)=>it(e.loginMethod,t)),Pu=m(re,e=>e.walletConnectLogin),Ru=m(re,e=>e.ledgerLogin),Io=m(re,e=>e.walletLogin),Cu=m(re,e=>e.isLoginSessionInvalid),_u=m(re,e=>e.tokenLogin),Mu=m(re,e=>e.logoutRoute);n();var vo=e=>e.modals,Uu=m(vo,e=>e.txSubmittedModal),Bu=m(vo,e=>e.notificationModal);n();var le=e=>e.networkConfig,Wu=m(le,e=>e.chainID),Gu=m(le,e=>e.network.walletConnectBridgeAddress),Hu=m(le,e=>e.network.walletConnectV2RelayAddress),qu=m(le,e=>e.network.walletConnectV2ProjectId),zu=m(le,e=>e.network.walletConnectV2Options),ju=m(le,e=>e.network.walletConnectDeepLink),ar=m(le,e=>e.network),ys=m(ar,e=>e.apiAddress),bo=m(ar,e=>e.explorerAddress),Ku=m(ar,e=>e.egldLabel);n();var ut=e=>e.signedMessageInfo,Xu=m(ut,e=>e.isSigning),Qu=m(ut,e=>e.errorMessage),Ju=m(ut,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),ed=m(ut,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var cr=e=>e.toasts,nd=m(cr,e=>e.customToasts),od=m(cr,e=>e.transactionToasts),id=m(cr,e=>e.failTransactionToast);n();ee();var Eo={errorMessage:Jt,successMessage:er,processingMessage:tr},hs=e=>e.transactionsInfo,ld=m(hs,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Eo);n();n();var C=require("@multiversx/sdk-core");I();n();function lr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function pr(e){var i,p,l;let{data:t}=e,r=lr(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:_t,chainID:e.chainID.valueOf(),version:new C.TransactionVersion((l=e.version)!=null?l:rn)},e.options?{options:new C.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new C.Address(e.sender)),o}n();n();n();n();n();var Ss=require("@multiversx/sdk-core/out");n();I();n();var Lo=require("@multiversx/sdk-core");P();n();var ko=require("@multiversx/sdk-core");function ws(e){try{let t=new ko.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Ee(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&ws(e)}n();n();n();var Is=require("@multiversx/sdk-core"),vs=A(require("bignumber.js"));O();n();n();n();n();n();n();n();n();n();N();n();n();N();n();n();n();var Ps=A(require("bignumber.js"));I();n();var Ns=require("@multiversx/sdk-core"),ur=A(require("bignumber.js"));I();n();var Ls=A(require("bignumber.js"));n();ur.default.config({ROUNDING_MODE:ur.default.ROUND_FLOOR});n();n();n();I();n();n();n();n();I();n();I();n();var Rs=require("@multiversx/sdk-core");I();n();var ke=require("@multiversx/sdk-core"),_s=require("@multiversx/sdk-network-providers");I();n();n();var Cs=A(require("bignumber.js"));I();n();I();n();n();n();n();n();I();n();N();var Os=["reDelegateRewards","claimRewards","unBond"],Fs=["wrapEgld","unwrapEgld"],Us=["unStake"],Bs=["unDelegate"];n();n();n();I();n();var Ws=A(require("bignumber.js"));n();n();n();n();N();n();var Gs=A(require("bignumber.js"));n();n();n();var qs=A(require("bignumber.js"));P();n();n();n();n();O();n();n();n();n();N();n();n();n();var zs=A(require("linkifyjs"));n();I();n();var js=A(require("bignumber.js"));n();P();n();n();O();n();O();n();n();n();N();n();N();n();var Ks=A(require("bignumber.js"));I();N();n();N();n();var Mo=require("react");P();n();n();N();n();n();var Ys=require("@multiversx/sdk-core/out"),Zs=A(require("bignumber.js"));N();n();P();n();n();P();var Yy=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Oo=require("react");P();n();var Qs=require("react");N();var rh=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];nr();var ft=e=>e.transactions,Le=m(ft,e=>e.signedTransactions),$h=m(ft,e=>e.signTransactionsError),Vh=m(ft,e=>e.signTransactionsCancelMessage),Tt=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Wh=m(Le,Tt(qn)),Gh=m(Le,Tt(et)),Hh=m(Le,Tt(tt)),qh=m(Le,Tt(zn)),zh=m(ft,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>pr(r)))||[]})}),jh=m(Le,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Fo(){return pt(E.getState())}n();n();O();n();n();function Uo(){let e=Z();return Fe(e)}function De(e){return Uo()===e}function yt(){let e=window==null?void 0:window.location.search,t=E.getState(),r=Z(),o=be(t),i=pt(t),p=Io(t);if(!r)throw"provider not initialized";return De("ledger")&&i?new Promise(l=>{l(o)}):!De("")&&!De("wallet")&&!De("extra")?r.getAddress():new Promise(l=>{if(p!=null){let g=new URLSearchParams(e),d=Object.fromEntries(g);Ee(d.address)&&l(d.address)}i&&l(o),l("")})}n();n();var Js=A(require("axios"));n();n();n();ee();n();n();n();ee();n();var Bo=require("@multiversx/sdk-core");n();F();P();Kt();Se();fe();var ta=e=>{let t=H.local.getItem(U.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(H.local.setItem({key:U.logoutEvent,data:e,expires:0}),H.local.removeItem(U.logoutEvent))};function ra(e,t,r=!0){return J(this,null,function*(){let o=Z(),i=Fe(o),p=Fo(),l=i==="wallet";if(r&&(o==null?void 0:o.relogin)!=null)return yield o.relogin();if(!p||!o){gr(e,t,!1);return}try{let g=yield yt();ta(g)}catch(g){gr(e,t,!1),console.error("error fetching logout address",g)}l&&Dn(),E.dispatch(b());try{let d=l&&!e?window==null?void 0:window.location.origin:e;l?setTimeout(()=>{o.logout({callbackUrl:d})}):(yield o.logout({callbackUrl:d}),gr(e,t,l))}catch(g){console.error("error logging out",g)}})}function gr(e,t,r){e&&!r&&(typeof t=="function"?t(e):jt(e))}0&&(module.exports={logout});
|
|
1
|
+
"use strict";var $o=Object.create;var Te=Object.defineProperty,Vo=Object.defineProperties,Wo=Object.getOwnPropertyDescriptor,Go=Object.getOwnPropertyDescriptors,Ho=Object.getOwnPropertyNames,Ne=Object.getOwnPropertySymbols,qo=Object.getPrototypeOf,ht=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable;var mr=(e,t,r)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))ht.call(t,r)&&mr(e,r,t[r]);if(Ne)for(var r of Ne(t))fr.call(t,r)&&mr(e,r,t[r]);return e},w=(e,t)=>Vo(e,Go(t));var Tr=(e,t)=>{var r={};for(var o in e)ht.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ne)for(var o of Ne(e))t.indexOf(o)<0&&fr.call(e,o)&&(r[o]=e[o]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var Pe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oe=(e,t)=>{for(var r in t)Te(e,r,{get:t[r],enumerable:!0})},yr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ho(t))!ht.call(e,i)&&i!==r&&Te(e,i,{get:()=>t[i],enumerable:!(o=Wo(t,i))||o.enumerable});return e};var I=(e,t,r)=>(r=e!=null?$o(qo(e)):{},yr(t||!e||!e.__esModule?Te(r,"default",{value:e,enumerable:!0}):r,e)),ye=e=>yr(Te({},"__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 Sr=Pe(Re=>{"use strict";n();Re.byteLength=jo;Re.toByteArray=Yo;Re.fromByteArray=Qo;var B=[],_=[],zo=typeof Uint8Array!="undefined"?Uint8Array:Array,xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ie=0,hr=xt.length;ie<hr;++ie)B[ie]=xt[ie],_[xt.charCodeAt(ie)]=ie;var ie,hr;_["-".charCodeAt(0)]=62;_["_".charCodeAt(0)]=63;function xr(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 jo(e){var t=xr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Ko(e,t,r){return(t+r)*3/4-r}function Yo(e){var t,r=xr(e),o=r[0],i=r[1],p=new zo(Ko(e,o,i)),l=0,g=i>0?o-4:o,d;for(d=0;d<g;d+=4)t=_[e.charCodeAt(d)]<<18|_[e.charCodeAt(d+1)]<<12|_[e.charCodeAt(d+2)]<<6|_[e.charCodeAt(d+3)],p[l++]=t>>16&255,p[l++]=t>>8&255,p[l++]=t&255;return i===2&&(t=_[e.charCodeAt(d)]<<2|_[e.charCodeAt(d+1)]>>4,p[l++]=t&255),i===1&&(t=_[e.charCodeAt(d)]<<10|_[e.charCodeAt(d+1)]<<4|_[e.charCodeAt(d+2)]>>2,p[l++]=t>>8&255,p[l++]=t&255),p}function Zo(e){return B[e>>18&63]+B[e>>12&63]+B[e>>6&63]+B[e&63]}function Xo(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(Zo(o));return i.join("")}function Qo(e){for(var t,r=e.length,o=r%3,i=[],p=16383,l=0,g=r-o;l<g;l+=p)i.push(Xo(e,l,l+p>g?g:l+p));return o===1?(t=e[r-1],i.push(B[t>>2]+B[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(B[t>>10]+B[t>>4&63]+B[t<<2&63]+"=")),i.join("")}});var wr=Pe(St=>{n();St.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)};St.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 _r=Pe(ue=>{"use strict";n();var wt=Sr(),pe=wr(),Ir=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ue.Buffer=u;ue.SlowBuffer=oi;ue.INSPECT_MAX_BYTES=50;var Ce=2147483647;ue.kMaxLength=Ce;u.TYPED_ARRAY_SUPPORT=Jo();!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 Jo(){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 bt(e)}return br(e,t,r)}u.poolSize=8192;function br(e,t,r){if(typeof e=="string")return ti(e,t);if(ArrayBuffer.isView(e))return ri(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 vt(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=ni(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 br(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Er(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 ei(e,t,r){return Er(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 ei(e,t,r)};function bt(e){return Er(e),z(e<0?0:Et(e)|0)}u.allocUnsafe=function(e){return bt(e)};u.allocUnsafeSlow=function(e){return bt(e)};function ti(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 It(e){for(var t=e.length<0?0:Et(e.length)|0,r=z(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function ri(e){if($(e,Uint8Array)){var t=new Uint8Array(e);return vt(t.buffer,t.byteOffset,t.byteLength)}return It(e)}function vt(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 ni(e){if(u.isBuffer(e)){var t=Et(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):It(e);if(e.type==="Buffer"&&Array.isArray(e.data))return It(e.data)}function Et(e){if(e>=Ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ce.toString(16)+" bytes");return e|0}function oi(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 At(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:At(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=kr;function ii(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 fi(this,t,r);case"utf8":case"utf-8":return Dr(this,t,r);case"ascii":return gi(this,t,r);case"latin1":case"binary":return mi(this,t,r);case"base64":return ui(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ti(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?Dr(this,0,t):ii.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+">"};Ir&&(u.prototype[Ir]=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 Lr(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:vr(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):vr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function vr(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 Lr(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Lr(this,t,r,o,!1)};function si(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 ai(e,t,r,o){return _e(At(t,e.length-r),e,r,o)}function ci(e,t,r,o){return _e(xi(t),e,r,o)}function li(e,t,r,o){return _e(Cr(t),e,r,o)}function pi(e,t,r,o){return _e(Si(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 si(this,t,r,o);case"utf8":case"utf-8":return ai(this,t,r,o);case"ascii":case"latin1":case"binary":return ci(this,t,r,o);case"base64":return li(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pi(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 ui(e,t,r){return t===0&&r===e.length?wt.fromByteArray(e):wt.fromByteArray(e.slice(t,r))}function Dr(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 di(o)}var Ar=4096;function di(e){var t=e.length;if(t<=Ar)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Ar));return r}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]&127);return o}function mi(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 fi(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+=wi[e[p]];return i}function Ti(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 A(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||A(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||A(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||A(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||A(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||A(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||A(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||A(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||A(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||A(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||A(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||A(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||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||A(t,4,this.length),pe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||A(t,4,this.length),pe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||A(t,8,this.length),pe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||A(t,8,this.length),pe.read(this,t,!1,52,8)};function D(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;D(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;D(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||D(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||D(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||D(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||D(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||D(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);D(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);D(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||D(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||D(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||D(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||D(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||D(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 Nr(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 Pr(e,t,r,o,i){return t=+t,r=r>>>0,i||Nr(e,t,r,4,34028234663852886e22,-34028234663852886e22),pe.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Pr(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Pr(this,t,r,!1,o)};function Rr(e,t,r,o,i){return t=+t,r=r>>>0,i||Nr(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 yi=/[^+/0-9A-Za-z-_]/g;function hi(e){if(e=e.split("=")[0],e=e.trim().replace(yi,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function At(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 xi(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Si(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 wt.toByteArray(hi(e))}function _e(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 wi=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=Pe((ca,Ur)=>{n();var S=Ur.exports={},V,W;function Lt(){throw new Error("setTimeout has not been defined")}function Dt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?V=setTimeout:V=Lt}catch(e){V=Lt}try{typeof clearTimeout=="function"?W=clearTimeout:W=Dt}catch(e){W=Dt}})();function Mr(e){if(V===setTimeout)return setTimeout(e,0);if((V===Lt||!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 Ii(e){if(W===clearTimeout)return clearTimeout(e);if((W===Dt||!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,Me=-1;function vi(){!de||!ae||(de=!1,ae.length?j=ae.concat(j):Me=-1,j.length&&Or())}function Or(){if(!de){var e=Mr(vi);de=!0;for(var t=j.length;t;){for(ae=j,j=[];++Me<t;)ae&&ae[Me].run();Me=-1,t=j.length}ae=null,de=!1,Ii(e)}}S.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];j.push(new Fr(e,t)),j.length===1&&!de&&Mr(Or)};function Fr(e,t){this.fun=e,this.array=t}Fr.prototype.run=function(){this.fun.apply(null,this.array)};S.title="browser";S.browser=!0;S.env={};S.argv=[];S.version="";S.versions={};function K(){}S.on=K;S.addListener=K;S.once=K;S.off=K;S.removeListener=K;S.removeAllListeners=K;S.emit=K;S.prependListener=K;S.prependOnceListener=K;S.listeners=function(e){return[]};S.binding=function(e){throw new Error("process.binding is not supported")};S.cwd=function(){return"/"};S.chdir=function(e){throw new Error("process.chdir is not supported")};S.umask=function(){return 0}});var s,a,la,n=f(()=>{s=I(_r()),a=I(Br()),la=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 $r=f(()=>{"use strict";n()});var Vr=f(()=>{"use strict";n()});var Wr=f(()=>{"use strict";n()});var Gr=f(()=>{"use strict";n()});var O=f(()=>{"use strict";n()});var Hr=f(()=>{"use strict";n()});var qr=f(()=>{"use strict";n()});var N=f(()=>{"use strict";n()});var zr=f(()=>{"use strict";n()});var jr=f(()=>{"use strict";n()});var P=f(()=>{"use strict";n();Vr();Wr();Gr();O();Hr();qr();N();zr();jr()});var Nt,Kr,La,Yr,Da,Zr,Na,Pa,Ra,Xr=f(()=>{"use strict";n();P();Nt={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:Kr,egldLabel:La}=Nt["devnet"],{chainId:Yr,egldLabel:Da}=Nt["testnet"],{chainId:Zr,egldLabel:Na}=Nt["mainnet"],Pa={["devnet"]:Kr,["testnet"]:Yr,["mainnet"]:Zr},Ra={[Kr]:"devnet",[Yr]:"testnet",[Zr]:"mainnet"}});var Pt=f(()=>{"use strict";n()});var Qr=f(()=>{"use strict";n()});var Jr,Rt=f(()=>{"use strict";n();Jr="transaction-status-toast-id"});var G,en=f(()=>{"use strict";n();G=require("@multiversx/sdk-web-wallet-provider")});var tn=f(()=>{"use strict";n()});var Ct,_t,rn,Oe,nn,ge,v=f(()=>{"use strict";n();$r();Xr();Pt();Qr();Rt();en();tn();Ct=5e4,_t=1e9,rn=1,Oe="logout",nn="login",ge="0"});var Ft,b,xe,F=f(()=>{"use strict";n();Ft=require("@reduxjs/toolkit");v();b=(0,Ft.createAction)(Oe),xe=(0,Ft.createAction)(nn,e=>({payload:e}))});var Ue,Ut=f(()=>{"use strict";n();Ue=()=>Date.now()/1e3});var pn=f(()=>{"use strict";n()});var un=f(()=>{"use strict";n()});var dn=f(()=>{"use strict";n();Ut();pn();un()});var $t={};oe($t,{getItem:()=>Ei,localStorageKeys:()=>U,removeItem:()=>ki,setItem:()=>bi});var U,Bt,bi,Ei,ki,fe=f(()=>{"use strict";n();dn();U={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Bt=typeof localStorage!="undefined",bi=({key:e,data:t,expires:r})=>{!Bt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ei=e=>{if(!Bt)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:Ue()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ki=e=>{!Bt||localStorage.removeItem(String(e))}});var Vt={};oe(Vt,{clear:()=>Tn,getItem:()=>mn,removeItem:()=>fn,setItem:()=>gn,storage:()=>Li});var gn,mn,fn,Tn,Li,yn=f(()=>{"use strict";n();gn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},mn=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},fn=e=>sessionStorage.removeItem(String(e)),Tn=()=>sessionStorage.clear(),Li={setItem:gn,getItem:mn,removeItem:fn,clear:Tn}});var H,Se=f(()=>{"use strict";n();fe();yn();H={session:Vt,local:$t}});var Gt,hn,xn,Be,Wt,Sn,Ht,Ac,qt,bc,Ec,kc,Lc,Dc,Nc,Pc,$e,Ve=f(()=>{"use strict";n();Gt=require("@multiversx/sdk-core"),hn=require("@reduxjs/toolkit"),xn=require("redux-persist");v();Se();fe();F();Be={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ge},Wt={address:"",websocketEvent:null,accounts:{"":Be},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Sn=(0,hn.createSlice)({name:"accountInfoSlice",initialState:Wt,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Gt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Be},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(b,()=>(H.local.removeItem(U.loginExpiresAt),Wt)),e.addCase(xe,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Gt.Address(o).hex()}),e.addCase(xn.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:Wt.accounts,t.publicKey=g})}}),{setAccount:Ht,setAddress:Ac,setAccountNonce:qt,setAccountShard:bc,setLedgerAccount:Ec,updateLedgerAccount:kc,setWalletConnectAccount:Lc,setIsAccountLoading:Dc,setAccountLoadingError:Nc,setWebsocketEvent:Pc}=Sn.actions,$e=Sn.reducer});function we(){return new Date().setHours(new Date().getHours()+24)}function Ie(e){H.local.setItem({key:U.loginExpiresAt,data:e,expires:e})}var zt=f(()=>{"use strict";n();Se();fe()});var In,wn,vn,Vc,Wc,Gc,Hc,qc,zc,An,jc,We,Ge=f(()=>{"use strict";n();In=require("@reduxjs/toolkit");zt();O();F();wn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},vn=(0,In.createSlice)({name:"loginInfoSlice",initialState:wn,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(b,()=>wn),e.addCase(xe,(t,r)=>{t.loginMethod=r.payload.loginMethod,Ie(we())})}}),{setLoginMethod:Vc,setWalletConnectLogin:Wc,setLedgerLogin:Gc,setTokenLogin:Hc,setTokenLoginSignature:qc,setWalletLogin:zc,invalidateLoginSession:An,setLogoutRoute:jc}=vn.actions,We=vn.reducer});var En,bn,kn,Xc,Qc,Jc,el,He,qe=f(()=>{"use strict";n();En=require("@reduxjs/toolkit");F();bn={},kn=(0,En.createSlice)({name:"modalsSlice",initialState:bn,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(b,()=>bn)}}),{setTxSubmittedModal:Xc,setNotificationModal:Qc,clearTxSubmittedModal:Jc,clearNotificationModal:el}=kn.actions,He=kn.reducer});var Ln,Dn,jt,Kt=f(()=>{"use strict";n();Ln=!1,Dn=(e=!0)=>{Ln=e},jt=(e,t=0)=>{Ln||setTimeout(()=>{!window||(window.location.href=e,window.location.assign(e))},t)}});var Nn=f(()=>{"use strict";n();Kt()});function Yt(e){return e[Math.floor(Math.random()*e.length)]}var Pn=f(()=>{"use strict";n()});var Rn=f(()=>{"use strict";n();Pt()});var Cn=f(()=>{"use strict";n();Nn();Pn();Rn()});var _n,Mn,Zt,Di,On,fl,Tl,ze,je=f(()=>{"use strict";n();_n=require("@reduxjs/toolkit"),Mn=I(require("lodash.omit"));Cn();Zt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Di={network:Zt,chainID:"-1"},On=(0,_n.createSlice)({name:"appConfig",initialState:Di,reducers:{initializeNetworkConfig:(e,t)=>{let r=Yt(t.payload.walletConnectBridgeAddresses),o=Yt(t.payload.walletConnectV2RelayAddresses),i=(0,Mn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:fl,setChainID:Tl}=On.actions,ze=On.reducer});var Fn,Xt,Un,Il,vl,Al,Ke,Ye=f(()=>{"use strict";n();Fn=require("@reduxjs/toolkit");P();F();Xt={isSigning:!1,signedSessions:{}},Un=(0,Fn.createSlice)({name:"signedMessageInfoSliceState",initialState:Xt,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=o},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Xt},extraReducers:e=>{e.addCase(b,()=>Xt)}}),{setSignSession:Il,clearSignedMessageInfo:vl,setSignSessionState:Al}=Un.actions,Ke=Un.reducer});var $n,Vn,Bn,Wn,Rl,Cl,_l,Ml,Ol,Fl,Ze,Xe=f(()=>{"use strict";n();$n=require("@reduxjs/toolkit"),Vn=require("redux-persist");Rt();P();Ut();F();Bn={customToasts:[],transactionToasts:[],failTransactionToast:null},Wn=(0,$n.createSlice)({name:"toastsSlice",initialState:Bn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(w(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ue(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=w(x({},t.payload),{toastId:Jr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(b,()=>Bn),e.addCase(Vn.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:Rl,removeCustomToast:Cl,addTransactionToast:_l,removeTransactionToast:Ml,addFailTransactionToast:Ol,removeFailTransactionToast:Fl}=Wn.actions,Ze=Wn.reducer});var Gn,Jt,er,tr,Ni,Qt,Hn,Vl,Wl,Gl,Qe,Je=f(()=>{"use strict";n();Gn=require("@reduxjs/toolkit");F();Jt="Transaction failed",er="Transaction successful",tr="Processing transaction",Ni="Transaction submitted",Qt={},Hn=(0,Gn.createSlice)({name:"transactionsInfo",initialState:Qt,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Jt,successMessage:(o==null?void 0:o.successMessage)||er,processingMessage:(o==null?void 0:o.processingMessage)||tr,submittedMessage:(o==null?void 0:o.submittedMessage)||Ni,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Qt},extraReducers:e=>{e.addCase(b,()=>Qt)}}),{clearTransactionsInfo:Vl,setTransactionsDisplayInfo:Wl,clearTransactionsInfoForSessionId:Gl}=Hn.actions,Qe=Hn.reducer});function qn(e){return e!=null&&(Bi(e)||Gi(e))}function et(e){return e!=null&&($i(e)||Hi(e))}function tt(e){return e!=null&&(Vi(e)||qi(e))}function zn(e){return e!=null&&Wi(e)}function Bi(e){return e!=null&&Ri.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)}function qi(e){return e!=null&&Ui.includes(e)}var Ri,Ci,_i,Mi,Oi,Fi,Ui,nr=f(()=>{"use strict";n();O();Ri=["sent"],Ci=["success"],_i=["fail","cancelled","timedOut"],Mi=["timedOut"],Oi=["pending"],Fi=["success"],Ui=["fail","invalid"]});var jn,Kn,ve,zi,Yn,Ql,Jl,ep,tp,rp,np,op,ip,sp,ap,rt,nt=f(()=>{"use strict";n();jn=require("@reduxjs/toolkit"),Kn=require("redux-persist");O();nr();F();ve={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},zi={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Yn=(0,jn.createSlice)({name:"transactionsSlice",initialState:ve,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])||zi;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=ve.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?w(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=ve.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=ve.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(b,()=>ve),e.addCase(Kn.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:Jl,setTransactionsToSign:ep,clearAllTransactionsToSign:tp,clearAllSignedTransactions:rp,clearSignedTransaction:np,clearTransactionToSign:op,setSignTransactionsError:ip,setSignTransactionsCancelMessage:sp,moveTransactionsToSignedState:ap}=Yn.actions,rt=Yn.reducer});var ee=f(()=>{"use strict";n();Ve();Ge();qe();je();Ye();Xe();Je();nt()});var or=f(()=>{"use strict";n()});var eo,Jn,to,Pp,Rp,Cp,_p,Mp,Op,ro,no=f(()=>{"use strict";n();eo=require("@reduxjs/toolkit");F();Jn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},to=(0,eo.createSlice)({name:"dappModalsSlice",initialState:Jn,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(b,()=>Jn)}}),{setDappModalVisibility:Pp,setDappModalHeaderVisibility:Rp,setDappModalFooterVisibility:Cp,setDappModalHeaderText:_p,setDappModalFooterText:Mp,setDappModalConfig:Op}=to.actions,ro=to.reducer});var oo,Zi,Xi,ce,ct=f(()=>{"use strict";n();oo=require("@reduxjs/toolkit");or();Ve();no();Ge();qe();je();Ye();Xe();Je();nt();Zi={["account"]:$e,["dappModal"]:ro,["loginInfo"]:We,["modals"]:He,["networkConfig"]:ze,["signedMessageInfo"]:Ke,["toasts"]:Ze,["transactionsInfo"]:Qe,["transactions"]:rt},Xi=(e={})=>(0,oo.combineReducers)(x(x({},Zi),e)),ce=Xi});var co={};oe(co,{default:()=>ds,sessionStorageReducers:()=>ir});function te(e,t=[]){return{key:e,version:1,storage:so.default,blacklist:t}}var R,io,so,Qi,Ae,Ji,es,ts,rs,ns,os,is,ss,as,ao,cs,ir,ls,ps,us,ds,lo=f(()=>{"use strict";n();R=require("redux-persist"),io=I(require("redux-persist/lib/storage")),so=I(require("redux-persist/lib/storage/session"));ct();ee();Ve();Ge();qe();je();Ye();Xe();Je();nt();or();Qi={persistReducersStorageType:"localStorage"},Ae={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Ji=te(Ae["account"]),es=te(Ae["loginInfo"]),ts=te(Ae["modals"]),rs=te(Ae["networkConfig"]),ns={2:e=>w(x({},e),{networkConfig:Zt})};os=te("sdk-dapp-transactionsInfo"),is=te("sdk-dapp-transactions",["transactionsToSign"]),ss=te("sdk-dapp-toasts"),as=te("sdk-dapp-signedMessageInfo"),ao={key:"sdk-dapp-store",version:2,storage:io.default,whitelist:Object.keys(Ae),migrate:(0,R.createMigrate)(ns,{debug:!1})},cs=w(x({},ao),{whitelist:[]}),ir={["toasts"]:(0,R.persistReducer)(ss,Ze),["transactions"]:(0,R.persistReducer)(is,rt),["transactionsInfo"]:(0,R.persistReducer)(os,Qe),["signedMessageInfo"]:(0,R.persistReducer)(as,Ke)},ls=w(x({},ir),{["account"]:(0,R.persistReducer)(Ji,$e),["loginInfo"]:(0,R.persistReducer)(es,We),["modals"]:(0,R.persistReducer)(ts,He),["networkConfig"]:(0,R.persistReducer)(rs,ze)}),ps=Qi.persistReducersStorageType==="localStorage",us=ps?(0,R.persistReducer)(ao,ce(ir)):(0,R.persistReducer)(cs,ce(ls)),ds=us});var po={};oe(po,{default:()=>gs});var gs,uo=f(()=>{"use strict";n();ct();gs=ce()});var go={};oe(go,{default:()=>fs});var M,ms,fs,mo=f(()=>{"use strict";n();M=require("redux-persist"),ms=[M.FLUSH,M.REHYDRATE,M.PAUSE,M.PERSIST,M.PURGE,M.REGISTER],fs=ms});var yo={};oe(yo,{default:()=>To});function To(e){return(0,fo.persistStore)(e)}var fo,ho=f(()=>{"use strict";n();fo=require("redux-persist")});var na={};oe(na,{logout:()=>ra});module.exports=ye(na);n();n();n();n();var sn=require("@multiversx/sdk-extension-provider"),an=require("@multiversx/sdk-hw-provider"),cn=require("@multiversx/sdk-opera-provider"),ln=require("@multiversx/sdk-web-wallet-provider");v();O();n();var Mt=me,on=Mt;var Fe=e=>{switch(e==null?void 0:e.constructor){case ln.WalletProvider:return"wallet";case Mt:return"walletconnect";case on:return"walletconnectv2";case an.HWProvider:return"ledger";case sn.ExtensionProvider:return"extension";case cn.OperaProvider:return"opera";case me:return"";default:return"extra"}};var Y=e=>`Unable to perform ${e}, Provider not initialized`,me=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)}},Ot=new me;var Ai=Ot;function Z(){return Ai||Ot}F();n();var sr=require("@reduxjs/toolkit"),Io=require("react-redux/lib/utils/Subscription");ee();n();var Xn=I(require("lodash.throttle"));v();n();var Zn=I(require("lodash.isequal")),ot=require("reselect");P();var m=(0,ot.createSelectorCreator)(ot.defaultMemoize,Zn.default),it=(e,t)=>e!=""&&Boolean(t);ee();zt();Se();fe();var ji=[Oe],st=!1,Ki=(0,Xn.default)(()=>{Ie(we())},5e3),Qn=e=>t=>r=>{var d;if(ji.includes(r.type))return t(r);let o=e.getState(),i=H.local.getItem(U.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 Ie(we());let l=Date.now();return i-l<0&&!st?setTimeout(()=>{st=!0,e.dispatch(An())},1e3):(st&&(st=!1),Ki()),t(r)};n();n();function at(){return typeof sessionStorage!="undefined"}var xo=at()?(lo(),ye(co)).default:(uo(),ye(po)).default,So=at()?(mo(),ye(go)).default:[],wo=at()?(ho(),ye(yo)).default:e=>e;ct();var E=(0,sr.configureStore)({reducer:xo,middleware:e=>e({serializableCheck:{ignoredActions:[...So,qt.type,Ht.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Qn)}),gu=(0,Io.createSubscription)(E),mu=wo(E),fu=(0,sr.configureStore)({reducer:ce});P();n();n();n();ee();var X=e=>e.account,be=m(X,e=>e.address),lt=m(X,be,(e,t)=>t in e.accounts?e.accounts[t]:Be),xu=m(X,lt,(e,t)=>{let i=e,{accounts:r}=i,o=Tr(i,["accounts"]);return w(x({},o),{account:t})}),Su=m(lt,e=>e.balance),Ts=m(lt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),wu=m(X,e=>e.shard),Iu=m(X,e=>e.ledgerAccount),vu=m(X,e=>e.walletConnectAccount),Au=m(X,e=>e.isAccountLoading),bu=m(X,e=>e.accountLoadingError),Eu=m(X,e=>e.websocketEvent);n();var re=e=>e.loginInfo,Nu=m(re,e=>e.loginMethod),pt=m(re,be,(e,t)=>it(e.loginMethod,t)),Pu=m(re,e=>e.walletConnectLogin),Ru=m(re,e=>e.ledgerLogin),vo=m(re,e=>e.walletLogin),Cu=m(re,e=>e.isLoginSessionInvalid),_u=m(re,e=>e.tokenLogin),Mu=m(re,e=>e.logoutRoute);n();var Ao=e=>e.modals,Uu=m(Ao,e=>e.txSubmittedModal),Bu=m(Ao,e=>e.notificationModal);n();var le=e=>e.networkConfig,Wu=m(le,e=>e.chainID),Gu=m(le,e=>e.network.walletConnectBridgeAddress),Hu=m(le,e=>e.network.walletConnectV2RelayAddress),qu=m(le,e=>e.network.walletConnectV2ProjectId),zu=m(le,e=>e.network.walletConnectV2Options),ju=m(le,e=>e.network.walletConnectDeepLink),ar=m(le,e=>e.network),ys=m(ar,e=>e.apiAddress),bo=m(ar,e=>e.explorerAddress),Ku=m(ar,e=>e.egldLabel);n();var ut=e=>e.signedMessageInfo,Xu=m(ut,e=>e.isSigning),Qu=m(ut,e=>e.errorMessage),Ju=m(ut,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),ed=m(ut,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var cr=e=>e.toasts,nd=m(cr,e=>e.customToasts),od=m(cr,e=>e.transactionToasts),id=m(cr,e=>e.failTransactionToast);n();ee();var Eo={errorMessage:Jt,successMessage:er,processingMessage:tr},hs=e=>e.transactionsInfo,ld=m(hs,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Eo);n();n();var C=require("@multiversx/sdk-core");v();n();function lr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function pr(e){var i,p,l;let{data:t}=e,r=lr(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:_t,chainID:e.chainID.valueOf(),version:new C.TransactionVersion((l=e.version)!=null?l:rn)},e.options?{options:new C.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new C.Address(e.sender)),o}n();n();n();n();n();var Ss=require("@multiversx/sdk-core/out");n();v();n();var Lo=require("@multiversx/sdk-core");P();n();var ko=require("@multiversx/sdk-core");function ws(e){try{let t=new ko.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Ee(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&ws(e)}n();n();n();var vs=require("@multiversx/sdk-core"),As=I(require("bignumber.js"));O();n();n();n();n();n();n();n();n();n();N();n();n();N();n();n();n();var Ps=I(require("bignumber.js"));v();n();var Ns=require("@multiversx/sdk-core"),ur=I(require("bignumber.js"));v();n();var Ls=I(require("bignumber.js"));n();ur.default.config({ROUNDING_MODE:ur.default.ROUND_FLOOR});n();n();n();v();n();n();n();n();v();n();v();n();var Rs=require("@multiversx/sdk-core");v();n();var ke=require("@multiversx/sdk-core"),_s=require("@multiversx/sdk-network-providers");v();n();n();var Cs=I(require("bignumber.js"));v();n();v();n();n();n();n();n();v();n();N();var Os=["reDelegateRewards","claimRewards","unBond"],Fs=["wrapEgld","unwrapEgld"],Us=["unStake"],Bs=["unDelegate"];n();n();n();v();n();var Ws=I(require("bignumber.js"));n();n();n();n();N();n();var Gs=I(require("bignumber.js"));n();n();n();var qs=I(require("bignumber.js"));P();n();n();n();n();O();n();n();n();n();N();n();n();n();var zs=I(require("linkifyjs"));n();v();n();var js=I(require("bignumber.js"));n();P();n();n();O();n();O();n();n();n();N();n();N();n();var Ks=I(require("bignumber.js"));v();N();n();N();n();var Mo=require("react");P();n();n();N();n();n();var Ys=require("@multiversx/sdk-core/out"),Zs=I(require("bignumber.js"));N();n();P();n();n();P();var Yy=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Oo=require("react");P();n();var Qs=require("react");N();var rh=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];nr();var ft=e=>e.transactions,Le=m(ft,e=>e.signedTransactions),$h=m(ft,e=>e.signTransactionsError),Vh=m(ft,e=>e.signTransactionsCancelMessage),Tt=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Wh=m(Le,Tt(qn)),Gh=m(Le,Tt(et)),Hh=m(Le,Tt(tt)),qh=m(Le,Tt(zn)),zh=m(ft,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>pr(r)))||[]})}),jh=m(Le,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Fo(){return pt(E.getState())}n();n();O();n();n();function Uo(){let e=Z();return Fe(e)}function De(e){return Uo()===e}function yt(){let e=window==null?void 0:window.location.search,t=E.getState(),r=Z(),o=be(t),i=pt(t),p=vo(t);if(!r)throw"provider not initialized";return De("ledger")&&i?new Promise(l=>{l(o)}):!De("")&&!De("wallet")&&!De("extra")?r.getAddress():new Promise(l=>{if(p!=null){let g=new URLSearchParams(e),d=Object.fromEntries(g);Ee(d.address)&&l(d.address)}i&&l(o),l("")})}n();n();var Js=I(require("axios"));n();n();n();ee();n();n();n();ee();n();var Bo=require("@multiversx/sdk-core");n();F();P();Kt();Se();fe();var ta=e=>{let t=H.local.getItem(U.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(H.local.setItem({key:U.logoutEvent,data:e,expires:0}),H.local.removeItem(U.logoutEvent))};function ra(e,t,r=!0){return J(this,null,function*(){let o=Z(),i=Fe(o),p=Fo(),l=i==="wallet";if(r&&(o==null?void 0:o.relogin)!=null)return yield o.relogin();if(!p||!o){gr(e,t,!1);return}try{let g=yield yt();ta(g)}catch(g){gr(e,t,!1),console.error("error fetching logout address",g)}l&&Dn(),E.dispatch(b());try{let d=l&&!e?window==null?void 0:window.location.origin:e;l?setTimeout(()=>{o.logout({callbackUrl:d})}):(yield o.logout({callbackUrl:d}),gr(e,t,l))}catch(g){console.error("error logging out",g)}})}function gr(e,t,r){e&&!r&&(typeof t=="function"?t(e):jt(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 $e=Object.create;var W=Object.defineProperty;var Ye=Object.getOwnPropertyDescriptor;var Ze=Object.getOwnPropertyNames;var Ke=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var Je=(t,e)=>()=>(t&&(e=t(t=0)),e);var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),er=(t,e)=>{for(var r in e)W(t,r,{get:e[r],enumerable:!0})},ge=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ze(e))!Qe.call(t,i)&&i!==r&&W(t,i,{get:()=>e[i],enumerable:!(n=Ye(e,i))||n.enumerable});return t};var $=(t,e,r)=>(r=t!=null?$e(Ke(t)):{},ge(e||!t||!t.__esModule?W(r,"default",{value:t,enumerable:!0}):r,t)),rr=t=>ge(W({},"__esModule",{value:!0}),t);var he=X(Y=>{"use strict";u();Y.byteLength=nr;Y.toByteArray=ar;Y.fromByteArray=lr;var I=[],v=[],tr=typeof Uint8Array!="undefined"?Uint8Array:Array,re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B=0,me=re.length;B<me;++B)I[B]=re[B],v[re.charCodeAt(B)]=B;var B,me;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function fe(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 nr(t){var e=fe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function ir(t,e,r){return(e+r)*3/4-r}function ar(t){var e,r=fe(t),n=r[0],i=r[1],a=new tr(ir(t,n,i)),o=0,l=i>0?n-4:n,c;for(c=0;c<l;c+=4)e=v[t.charCodeAt(c)]<<18|v[t.charCodeAt(c+1)]<<12|v[t.charCodeAt(c+2)]<<6|v[t.charCodeAt(c+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(c)]<<2|v[t.charCodeAt(c+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(c)]<<10|v[t.charCodeAt(c+1)]<<4|v[t.charCodeAt(c+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function or(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function sr(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(or(n));return i.join("")}function lr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(sr(t,o,o+a>l?l: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 ye=X(te=>{u();te.read=function(t,e,r,n,i){var a,o,l=i*8-n-1,c=(1<<l)-1,d=c>>1,g=-7,p=r?i-1:0,y=r?-1:1,b=t[e+p];for(p+=y,a=b&(1<<-g)-1,b>>=-g,g+=l;g>0;a=a*256+t[e+p],p+=y,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=y,g-=8);if(a===0)a=1-d;else{if(a===c)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};te.write=function(t,e,r,n,i,a){var o,l,c,d=a*8-i-1,g=(1<<d)-1,p=g>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,S=n?1:-1,q=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+p>=1?e+=y/c:e+=y*Math.pow(2,1-p),e*c>=2&&(o++,c/=2),o+p>=g?(l=0,o=g):o+p>=1?(l=(e*c-1)*Math.pow(2,i),o=o+p):(l=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=l&255,b+=S,l/=256,i-=8);for(o=o<<i|l,d+=i;d>0;t[r+b]=o&255,b+=S,o/=256,d-=8);t[r+b-S]|=q*128}});var Le=X(M=>{"use strict";u();var ne=he(),P=ye(),xe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=s;M.SlowBuffer=mr;M.INSPECT_MAX_BYTES=50;var Z=2147483647;M.kMaxLength=Z;s.TYPED_ARRAY_SUPPORT=cr();!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 cr(){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 L(t){if(t>Z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return se(t)}return Te(t,e,r)}s.poolSize=8192;function Te(t,e,r){if(typeof t=="string")return pr(t,e);if(ArrayBuffer.isView(t))return dr(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 ae(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=gr(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 Te(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function ve(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 ur(t,e,r){return ve(t),t<=0?L(t):e!==void 0?typeof r=="string"?L(t).fill(e,r):L(t).fill(e):L(t)}s.alloc=function(t,e,r){return ur(t,e,r)};function se(t){return ve(t),L(t<0?0:le(t)|0)}s.allocUnsafe=function(t){return se(t)};s.allocUnsafeSlow=function(t){return se(t)};function pr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=ke(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ie(t){for(var e=t.length<0?0:le(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function dr(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return ae(e.buffer,e.byteOffset,e.byteLength)}return ie(t)}function ae(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 gr(t){if(s.isBuffer(t)){var e=le(t.length)|0,r=L(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ce(t.length)?L(0):ie(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ie(t.data)}function le(t){if(t>=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return t|0}function mr(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 ke(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 oe(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:oe(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=ke;function fr(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 _r(this,e,r);case"utf8":case"utf-8":return _e(this,e,r);case"ascii":return kr(this,e,r);case"latin1":case"binary":return Ir(this,e,r);case"base64":return Tr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Er(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function U(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)U(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)U(this,r,r+3),U(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)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?_e(this,0,e):fr.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=M.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};xe&&(s.prototype[xe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,l=n-r,c=Math.min(o,l),d=this.slice(i,a),g=e.slice(r,n),p=0;p<c;++p)if(d[p]!==g[p]){o=d[p],l=g[p];break}return o<l?-1:l<o?1:0};function Ie(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,ce(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:we(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):we(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function we(t,e,r,n,i){var a=1,o=t.length,l=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,l/=2,r/=2}function c(b,S){return a===1?b[S]:b.readUInt16BE(S*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(c(t,d)===c(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===l)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+l>o&&(r=o-l),d=r;d>=0;d--){for(var p=!0,y=0;y<l;y++)if(c(t,d+y)!==c(e,y)){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 Ie(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Ie(this,e,r,n,!1)};function hr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var l=parseInt(e.substr(o*2,2),16);if(ce(l))return o;t[r+o]=l}return o}function yr(t,e,r,n){return K(oe(e,t.length-r),t,r,n)}function xr(t,e,r,n){return K(Sr(e),t,r,n)}function wr(t,e,r,n){return K(Se(e),t,r,n)}function br(t,e,r,n){return K(Lr(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 hr(this,e,r,n);case"utf8":case"utf-8":return yr(this,e,r,n);case"ascii":case"latin1":case"binary":return xr(this,e,r,n);case"base64":return wr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return br(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 Tr(t,e,r){return e===0&&r===t.length?ne.fromByteArray(t):ne.fromByteArray(t.slice(e,r))}function _e(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,l=a>239?4:a>223?3:a>191?2:1;if(i+l<=r){var c,d,g,p;switch(l){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(p=(a&31)<<6|c&63,p>127&&(o=p));break;case 3:c=t[i+1],d=t[i+2],(c&192)===128&&(d&192)===128&&(p=(a&15)<<12|(c&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:c=t[i+1],d=t[i+2],g=t[i+3],(c&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(c&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=l}return vr(n)}var be=4096;function vr(t){var e=t.length;if(e<=be)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=be));return r}function kr(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 Ir(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 _r(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+=Nr[t[a]];return i}function Er(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 w(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||w(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||w(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||w(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(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||w(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||w(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||w(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||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(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||w(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||w(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||w(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||w(e,4,this.length),P.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),P.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),P.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),P.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,l=0;for(this[r]=e&255;++l<n&&(o*=256);)this[r+l]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=n-1,l=1;for(this[r+o]=e&255;--o>=0&&(l*=256);)this[r+o]=e/l&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||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,l=1,c=0;for(this[r]=e&255;++o<n&&(l*=256);)e<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=n-1,l=1,c=0;for(this[r+o]=e&255;--o>=0&&(l*=256);)e<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||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 Ee(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 Ae(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,4,34028234663852886e22,-34028234663852886e22),P.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ae(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ae(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,8,17976931348623157e292,-17976931348623157e292),P.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var l=s.isBuffer(e)?e:s.from(e,i),c=l.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=l[o%c]}return this};var Ar=/[^+/0-9A-Za-z-_]/g;function Rr(t){if(t=t.split("=")[0],t=t.trim().replace(Ar,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function oe(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 Sr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Lr(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 Se(t){return ne.toByteArray(Rr(t))}function K(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 ce(t){return t!==t}var Nr=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 Be=X((zr,Ce)=>{u();var x=Ce.exports={},E,A;function ue(){throw new Error("setTimeout has not been defined")}function pe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=ue}catch(t){E=ue}try{typeof clearTimeout=="function"?A=clearTimeout:A=pe}catch(t){A=pe}})();function Ne(t){if(E===setTimeout)return setTimeout(t,0);if((E===ue||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function Fr(t){if(A===clearTimeout)return clearTimeout(t);if((A===pe||!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 N=[],G=!1,O,Q=-1;function Dr(){!G||!O||(G=!1,O.length?N=O.concat(N):Q=-1,N.length&&Fe())}function Fe(){if(!G){var t=Ne(Dr);G=!0;for(var e=N.length;e;){for(O=N,N=[];++Q<e;)O&&O[Q].run();Q=-1,e=N.length}O=null,G=!1,Fr(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];N.push(new De(t,e)),N.length===1&&!G&&Ne(Fe)};function De(t,e){this.fun=t,this.array=e}De.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function F(){}x.on=F;x.addListener=F;x.once=F;x.off=F;x.removeListener=F;x.removeAllListeners=F;x.emit=F;x.prependListener=F;x.prependOnceListener=F;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var m,f,qr,u=Je(()=>{m=$(Le()),f=$(Be()),qr=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 Br={};er(Br,{denominate:()=>Cr});module.exports=rr(Br);u();u();u();u();u();u();u();u();u();u();u();u();u();u();var de={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ue,egldLabel:st}=de["devnet"],{chainId:Oe,egldLabel:lt}=de["testnet"],{chainId:Pe,egldLabel:ct}=de["mainnet"];var ut={["devnet"]:Ue,["testnet"]:Oe,["mainnet"]:Pe},pt={[Ue]:"devnet",[Oe]:"testnet",[Pe]:"mainnet"};u();u();u();u();var R=require("@multiversx/sdk-web-wallet-provider");u();var J=18,ee=4;var Me="0";u();var qe=require("@multiversx/sdk-core"),C=$(require("bignumber.js"));u();var Ge=$(require("bignumber.js")),ze=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Ge.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};u();function D(t){return{if:function(e){return e?{then:r=>r instanceof Function?D(r(t)):D(r)}:{then:()=>D(t)}},then:e=>e instanceof Function?D(e(t)):D(e),valueOf:function(){return t}}}C.default.config({ROUNDING_MODE:C.default.ROUND_FLOOR});function je({input:t,decimals:e=J,digits:r=ee,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){if(!ze(t,!1))throw new Error("Invalid input");let o=new C.default(t).isNegative(),l=t;return o&&(l=t.substring(1)),D(l).then(()=>qe.TokenPayment.fungibleFromBigInteger("",l,e).toRationalNumber()).then(c=>{let d=new C.default(c);if(d.isZero())return Me;let g=d.toString(10),[p,y]=g.split("."),b=new C.default(y||0),S=D(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(b.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),q=y&&r>=1&&r<=y.length&&b.isGreaterThan(0)&&new C.default(y.substring(0,r)).isZero(),Ve=d.toFormat(S);return D(g).if(a).then(Ve).if(Boolean(q)).then(j=>{let z=new C.default(p).isZero(),[k,H]=j.split("."),V=new Array(r-1).fill(0),We=[...V,0].join(""),Xe=[...V,1].join("");return z?i?`<${k}.${Xe}`:n?`${k}.${H}`:k:`${k}.${We}`}).if(Boolean(!q&&y)).then(j=>{let[z]=j.split("."),k=y.substring(0,S);if(n){let H=r-k.length;if(H>0){let V=Array(H).fill(0).join("");return k=`${k}${V}`,`${z}.${k}`}return j}return k?`${z}.${k}`:z}).valueOf()}).if(o).then(c=>`-${c}`).valueOf()}var He=!1;function Cr({input:t,denomination:e=J,decimals:r=ee,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){return He||(console.warn('!!! Be aware !!! The "denominate" function is deprecated. Please use "formatAmount" instead.'),He=!0),je({input:t,decimals:e,addCommas:a,digits:r,showIsLessThanDecimalsLabel:i,showLastNonZeroDecimal:n})}0&&(module.exports={denominate});
|
|
1
|
+
"use strict";var $e=Object.create;var W=Object.defineProperty;var Ye=Object.getOwnPropertyDescriptor;var Ze=Object.getOwnPropertyNames;var Ke=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var Je=(t,e)=>()=>(t&&(e=t(t=0)),e);var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),er=(t,e)=>{for(var r in e)W(t,r,{get:e[r],enumerable:!0})},ge=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ze(e))!Qe.call(t,i)&&i!==r&&W(t,i,{get:()=>e[i],enumerable:!(n=Ye(e,i))||n.enumerable});return t};var $=(t,e,r)=>(r=t!=null?$e(Ke(t)):{},ge(e||!t||!t.__esModule?W(r,"default",{value:t,enumerable:!0}):r,t)),rr=t=>ge(W({},"__esModule",{value:!0}),t);var he=X(Y=>{"use strict";u();Y.byteLength=nr;Y.toByteArray=ar;Y.fromByteArray=lr;var I=[],v=[],tr=typeof Uint8Array!="undefined"?Uint8Array:Array,re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B=0,me=re.length;B<me;++B)I[B]=re[B],v[re.charCodeAt(B)]=B;var B,me;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function fe(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 nr(t){var e=fe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function ir(t,e,r){return(e+r)*3/4-r}function ar(t){var e,r=fe(t),n=r[0],i=r[1],a=new tr(ir(t,n,i)),o=0,l=i>0?n-4:n,c;for(c=0;c<l;c+=4)e=v[t.charCodeAt(c)]<<18|v[t.charCodeAt(c+1)]<<12|v[t.charCodeAt(c+2)]<<6|v[t.charCodeAt(c+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(c)]<<2|v[t.charCodeAt(c+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(c)]<<10|v[t.charCodeAt(c+1)]<<4|v[t.charCodeAt(c+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function or(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function sr(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(or(n));return i.join("")}function lr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(sr(t,o,o+a>l?l: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 ye=X(te=>{u();te.read=function(t,e,r,n,i){var a,o,l=i*8-n-1,c=(1<<l)-1,d=c>>1,g=-7,p=r?i-1:0,y=r?-1:1,b=t[e+p];for(p+=y,a=b&(1<<-g)-1,b>>=-g,g+=l;g>0;a=a*256+t[e+p],p+=y,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=y,g-=8);if(a===0)a=1-d;else{if(a===c)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};te.write=function(t,e,r,n,i,a){var o,l,c,d=a*8-i-1,g=(1<<d)-1,p=g>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,S=n?1:-1,q=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+p>=1?e+=y/c:e+=y*Math.pow(2,1-p),e*c>=2&&(o++,c/=2),o+p>=g?(l=0,o=g):o+p>=1?(l=(e*c-1)*Math.pow(2,i),o=o+p):(l=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=l&255,b+=S,l/=256,i-=8);for(o=o<<i|l,d+=i;d>0;t[r+b]=o&255,b+=S,o/=256,d-=8);t[r+b-S]|=q*128}});var Le=X(M=>{"use strict";u();var ne=he(),P=ye(),xe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=s;M.SlowBuffer=mr;M.INSPECT_MAX_BYTES=50;var Z=2147483647;M.kMaxLength=Z;s.TYPED_ARRAY_SUPPORT=cr();!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 cr(){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 L(t){if(t>Z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return se(t)}return Te(t,e,r)}s.poolSize=8192;function Te(t,e,r){if(typeof t=="string")return pr(t,e);if(ArrayBuffer.isView(t))return dr(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 ae(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=gr(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 Te(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function ve(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 ur(t,e,r){return ve(t),t<=0?L(t):e!==void 0?typeof r=="string"?L(t).fill(e,r):L(t).fill(e):L(t)}s.alloc=function(t,e,r){return ur(t,e,r)};function se(t){return ve(t),L(t<0?0:le(t)|0)}s.allocUnsafe=function(t){return se(t)};s.allocUnsafeSlow=function(t){return se(t)};function pr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=ke(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ie(t){for(var e=t.length<0?0:le(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function dr(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return ae(e.buffer,e.byteOffset,e.byteLength)}return ie(t)}function ae(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 gr(t){if(s.isBuffer(t)){var e=le(t.length)|0,r=L(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ce(t.length)?L(0):ie(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ie(t.data)}function le(t){if(t>=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return t|0}function mr(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 ke(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 oe(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:oe(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=ke;function fr(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 _r(this,e,r);case"utf8":case"utf-8":return _e(this,e,r);case"ascii":return kr(this,e,r);case"latin1":case"binary":return Ir(this,e,r);case"base64":return Tr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Er(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function U(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)U(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)U(this,r,r+3),U(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)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?_e(this,0,e):fr.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=M.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};xe&&(s.prototype[xe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,l=n-r,c=Math.min(o,l),d=this.slice(i,a),g=e.slice(r,n),p=0;p<c;++p)if(d[p]!==g[p]){o=d[p],l=g[p];break}return o<l?-1:l<o?1:0};function Ie(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,ce(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:we(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):we(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function we(t,e,r,n,i){var a=1,o=t.length,l=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,l/=2,r/=2}function c(b,S){return a===1?b[S]:b.readUInt16BE(S*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(c(t,d)===c(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===l)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+l>o&&(r=o-l),d=r;d>=0;d--){for(var p=!0,y=0;y<l;y++)if(c(t,d+y)!==c(e,y)){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 Ie(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Ie(this,e,r,n,!1)};function hr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var l=parseInt(e.substr(o*2,2),16);if(ce(l))return o;t[r+o]=l}return o}function yr(t,e,r,n){return K(oe(e,t.length-r),t,r,n)}function xr(t,e,r,n){return K(Sr(e),t,r,n)}function wr(t,e,r,n){return K(Se(e),t,r,n)}function br(t,e,r,n){return K(Lr(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 hr(this,e,r,n);case"utf8":case"utf-8":return yr(this,e,r,n);case"ascii":case"latin1":case"binary":return xr(this,e,r,n);case"base64":return wr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return br(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 Tr(t,e,r){return e===0&&r===t.length?ne.fromByteArray(t):ne.fromByteArray(t.slice(e,r))}function _e(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,l=a>239?4:a>223?3:a>191?2:1;if(i+l<=r){var c,d,g,p;switch(l){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(p=(a&31)<<6|c&63,p>127&&(o=p));break;case 3:c=t[i+1],d=t[i+2],(c&192)===128&&(d&192)===128&&(p=(a&15)<<12|(c&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:c=t[i+1],d=t[i+2],g=t[i+3],(c&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(c&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=l}return vr(n)}var be=4096;function vr(t){var e=t.length;if(e<=be)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=be));return r}function kr(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 Ir(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 _r(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+=Nr[t[a]];return i}function Er(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 w(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||w(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||w(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||w(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(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||w(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||w(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||w(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||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(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||w(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||w(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||w(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||w(e,4,this.length),P.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),P.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),P.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),P.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,l=0;for(this[r]=e&255;++l<n&&(o*=256);)this[r+l]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=n-1,l=1;for(this[r+o]=e&255;--o>=0&&(l*=256);)this[r+o]=e/l&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||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,l=1,c=0;for(this[r]=e&255;++o<n&&(l*=256);)e<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=n-1,l=1,c=0;for(this[r+o]=e&255;--o>=0&&(l*=256);)e<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||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 Ee(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 Ae(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,4,34028234663852886e22,-34028234663852886e22),P.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ae(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ae(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,8,17976931348623157e292,-17976931348623157e292),P.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var l=s.isBuffer(e)?e:s.from(e,i),c=l.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=l[o%c]}return this};var Ar=/[^+/0-9A-Za-z-_]/g;function Rr(t){if(t=t.split("=")[0],t=t.trim().replace(Ar,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function oe(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 Sr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Lr(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 Se(t){return ne.toByteArray(Rr(t))}function K(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 ce(t){return t!==t}var Nr=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 Be=X((zr,Ce)=>{u();var x=Ce.exports={},E,A;function ue(){throw new Error("setTimeout has not been defined")}function pe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=ue}catch(t){E=ue}try{typeof clearTimeout=="function"?A=clearTimeout:A=pe}catch(t){A=pe}})();function Ne(t){if(E===setTimeout)return setTimeout(t,0);if((E===ue||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function Fr(t){if(A===clearTimeout)return clearTimeout(t);if((A===pe||!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 N=[],G=!1,O,Q=-1;function Dr(){!G||!O||(G=!1,O.length?N=O.concat(N):Q=-1,N.length&&Fe())}function Fe(){if(!G){var t=Ne(Dr);G=!0;for(var e=N.length;e;){for(O=N,N=[];++Q<e;)O&&O[Q].run();Q=-1,e=N.length}O=null,G=!1,Fr(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];N.push(new De(t,e)),N.length===1&&!G&&Ne(Fe)};function De(t,e){this.fun=t,this.array=e}De.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function F(){}x.on=F;x.addListener=F;x.once=F;x.off=F;x.removeListener=F;x.removeAllListeners=F;x.emit=F;x.prependListener=F;x.prependOnceListener=F;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var m,f,qr,u=Je(()=>{m=$(Le()),f=$(Be()),qr=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 Br={};er(Br,{denominate:()=>Cr});module.exports=rr(Br);u();u();u();u();u();u();u();u();u();u();u();u();u();u();var de={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ue,egldLabel:st}=de["devnet"],{chainId:Oe,egldLabel:lt}=de["testnet"],{chainId:Pe,egldLabel:ct}=de["mainnet"];var ut={["devnet"]:Ue,["testnet"]:Oe,["mainnet"]:Pe},pt={[Ue]:"devnet",[Oe]:"testnet",[Pe]:"mainnet"};u();u();u();u();var R=require("@multiversx/sdk-web-wallet-provider");u();var J=18,ee=4;var Me="0";u();var qe=require("@multiversx/sdk-core"),C=$(require("bignumber.js"));u();var Ge=$(require("bignumber.js")),ze=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Ge.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};u();function D(t){return{if:function(e){return e?{then:r=>r instanceof Function?D(r(t)):D(r)}:{then:()=>D(t)}},then:e=>e instanceof Function?D(e(t)):D(e),valueOf:function(){return t}}}C.default.config({ROUNDING_MODE:C.default.ROUND_FLOOR});function je({input:t,decimals:e=J,digits:r=ee,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){if(!ze(t,!1))throw new Error("Invalid input");let o=new C.default(t).isNegative(),l=t;return o&&(l=t.substring(1)),D(l).then(()=>qe.TokenPayment.fungibleFromBigInteger("",l,e).toRationalNumber()).then(c=>{let d=new C.default(c);if(d.isZero())return Me;let g=d.toString(10),[p,y]=g.split("."),b=new C.default(y||0),S=D(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(b.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),q=y&&r>=1&&r<=y.length&&b.isGreaterThan(0)&&new C.default(y.substring(0,r)).isZero(),He=d.toFormat(S);return D(g).if(a).then(He).if(Boolean(q)).then(j=>{let z=new C.default(p).isZero(),[k,V]=j.split("."),H=new Array(r-1).fill(0),We=[...H,0].join(""),Xe=[...H,1].join("");return z?i?`<${k}.${Xe}`:n?`${k}.${V}`:k:`${k}.${We}`}).if(Boolean(!q&&y)).then(j=>{let[z]=j.split("."),k=y.substring(0,S);if(n){let V=r-k.length;if(V>0){let H=Array(V).fill(0).join("");return k=`${k}${H}`,`${z}.${k}`}return j}return k?`${z}.${k}`:z}).valueOf()}).if(o).then(c=>`-${c}`).valueOf()}var Ve=!1;function Cr({input:t,denomination:e=J,decimals:r=ee,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){return Ve||(console.warn('!!! Be aware !!! The "denominate" function is deprecated. Please use "formatAmount" instead.'),Ve=!0),je({input:t,decimals:e,addCommas:a,digits:r,showIsLessThanDecimalsLabel:i,showLastNonZeroDecimal:n})}0&&(module.exports={denominate});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|