@multiversx/sdk-dapp 2.8.7 → 2.9.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.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/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/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.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/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/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-2DKPFSTT.js → chunk-25LYYPSL.js} +2 -2
- package/__chunks__/{chunk-V5CRB7KN.js → chunk-2DAZJTY7.js} +2 -2
- package/__chunks__/{chunk-BMJLZLZM.js → chunk-2G7BO52P.js} +2 -2
- package/__chunks__/{chunk-VSXOMCDB.js → chunk-2JGSECMC.js} +2 -2
- package/__chunks__/{chunk-NAKSKDVH.js → chunk-2MN2JEL5.js} +2 -2
- package/__chunks__/{chunk-423Z6LGX.js → chunk-2QEIR6TS.js} +2 -2
- package/__chunks__/{chunk-5R432HI2.js → chunk-2UFNSJOJ.js} +2 -2
- package/__chunks__/{chunk-R2G53LUI.js → chunk-32HLRTV3.js} +2 -2
- package/__chunks__/{chunk-6UNAWFJ2.js → chunk-33B2EA3V.js} +2 -2
- package/__chunks__/{chunk-525WM2BT.js → chunk-343YDU2S.js} +2 -2
- package/__chunks__/{chunk-WWLOW2S3.js → chunk-346RZSEQ.js} +2 -2
- package/__chunks__/{chunk-IHIUGJRW.js → chunk-35T5H5IL.js} +2 -2
- package/__chunks__/{chunk-R3FSXFX3.js → chunk-3ADB74GU.js} +2 -2
- package/__chunks__/{chunk-GY336JML.js → chunk-3BQODYHQ.js} +2 -2
- package/__chunks__/{chunk-QVCVZLRQ.js → chunk-3CRW4ZUP.js} +2 -2
- package/__chunks__/{chunk-KO4CKUQ3.js → chunk-3D56FBAG.js} +2 -2
- package/__chunks__/{chunk-YFDYMEP5.js → chunk-3DOTBYW5.js} +2 -2
- package/__chunks__/{chunk-XIHOENSC.js → chunk-3OTU3LGP.js} +2 -2
- package/__chunks__/{chunk-7XE7OVZZ.js → chunk-3UYWEUYO.js} +2 -2
- package/__chunks__/{chunk-XKMOG6SS.js → chunk-3VNANIQN.js} +2 -2
- package/__chunks__/chunk-3ZPW6NBW.js +2 -0
- package/__chunks__/{chunk-KDNMJ7M2.js → chunk-43MUHJXP.js} +2 -2
- package/__chunks__/{chunk-FXKLPJUW.js → chunk-4AXBEAVW.js} +2 -2
- package/__chunks__/{chunk-UHDCW2GI.js → chunk-4CUEYG5L.js} +2 -2
- package/__chunks__/{chunk-74QKDRVQ.js → chunk-4DXDAPGH.js} +2 -2
- package/__chunks__/{chunk-CEPGJ4CK.js → chunk-4E4GWX4K.js} +2 -2
- package/__chunks__/chunk-4MGGEDE4.js +2 -0
- package/__chunks__/{chunk-TRBK7QQ6.js → chunk-4YGLWJYP.js} +2 -2
- package/__chunks__/{chunk-Z7HQTVYF.js → chunk-4ZPZ6AIU.js} +2 -2
- package/__chunks__/{chunk-TOZA3Q3T.js → chunk-54NEP2BY.js} +2 -2
- package/__chunks__/{chunk-W37FQYGP.js → chunk-54NTEZC5.js} +2 -2
- package/__chunks__/{chunk-OM457L3M.js → chunk-57KTNTD4.js} +2 -2
- package/__chunks__/{chunk-GFKBUR52.js → chunk-5A4BF2DQ.js} +2 -2
- package/__chunks__/{chunk-USUOFVP7.js → chunk-5AOQJY3W.js} +2 -2
- package/__chunks__/chunk-5E3Y7WDX.js +2 -0
- package/__chunks__/{chunk-4JKMMUID.js → chunk-5IU2LKSN.js} +2 -2
- package/__chunks__/{chunk-CN4TUEV7.js → chunk-5JSXSHFD.js} +2 -2
- package/__chunks__/{chunk-6UNQJUWL.js → chunk-5LIDVEDY.js} +2 -2
- package/__chunks__/{chunk-Z6PNQGOE.js → chunk-5LIPZK7I.js} +2 -2
- package/__chunks__/{chunk-TQVFVFKS.js → chunk-5SFT27AY.js} +2 -2
- package/__chunks__/chunk-5T2INUJ2.js +2 -0
- package/__chunks__/chunk-5TSTJK3D.js +2 -0
- package/__chunks__/{chunk-OCKI3V27.js → chunk-62SL73B6.js} +2 -2
- package/__chunks__/chunk-65MQPHO4.js +2 -0
- package/__chunks__/chunk-6A6EWHUH.js +2 -0
- package/__chunks__/{chunk-CJT4DITV.js → chunk-6ALJIJJR.js} +2 -2
- package/__chunks__/{chunk-NDJHFLTL.js → chunk-6CPLHN5F.js} +2 -2
- package/__chunks__/{chunk-DF24IGER.js → chunk-6NPKQKN5.js} +2 -2
- package/__chunks__/{chunk-4P3LJAUR.js → chunk-6O5L57GH.js} +2 -2
- package/__chunks__/{chunk-2DPI5E3W.js → chunk-6PSLWD7K.js} +2 -2
- package/__chunks__/{chunk-HGAKSUJP.js → chunk-6QQMWPZL.js} +2 -2
- package/__chunks__/{chunk-DHYV75O3.js → chunk-6TWOJZGW.js} +2 -2
- package/__chunks__/chunk-6W7S3EE3.js +2 -0
- package/__chunks__/{chunk-4HQ3HNGC.js → chunk-73F5VFES.js} +2 -2
- package/__chunks__/{chunk-ADE5S3WR.js → chunk-7CR6PT46.js} +2 -2
- package/__chunks__/{chunk-VXVGC3OH.js → chunk-7G3CGRHQ.js} +2 -2
- package/__chunks__/{chunk-BDA7V4NQ.js → chunk-7JYNYESQ.js} +2 -2
- package/__chunks__/{chunk-B25RPITH.js → chunk-7NYPVHED.js} +2 -2
- package/__chunks__/{chunk-MLSI3RC2.js → chunk-7RDCJEBM.js} +2 -2
- package/__chunks__/{chunk-YUIINDCV.js → chunk-7S2XISHG.js} +2 -2
- package/__chunks__/{chunk-UG55ZHGL.js → chunk-7UD2BXEK.js} +2 -2
- package/__chunks__/{chunk-KGGATDBD.js → chunk-7XH5QF3M.js} +2 -2
- package/__chunks__/chunk-A3YTVQRT.js +2 -0
- package/__chunks__/chunk-A453JAS3.js +2 -0
- package/__chunks__/{chunk-5LEO57S4.js → chunk-A6UEBWYM.js} +2 -2
- package/__chunks__/chunk-ABVMFLA3.js +2 -0
- package/__chunks__/{chunk-YMP4Z5XY.js → chunk-AJBKM66B.js} +2 -2
- package/__chunks__/{chunk-F2EJ4NBK.js → chunk-AK245ZB2.js} +2 -2
- package/__chunks__/{chunk-KHTHET32.js → chunk-ALP3UNP6.js} +2 -2
- package/__chunks__/{chunk-JXDUGSUA.js → chunk-AMFO52WL.js} +2 -2
- package/__chunks__/{chunk-XWDYQGE2.js → chunk-AOEAP24C.js} +2 -2
- package/__chunks__/{chunk-CRIOGAAJ.js → chunk-ARBTLT3C.js} +2 -2
- package/__chunks__/chunk-B3TAZ7VX.js +2 -0
- package/__chunks__/{chunk-A4SQDGPF.js → chunk-B4DRNYML.js} +2 -2
- package/__chunks__/chunk-BAT5BA5V.js +2 -0
- package/__chunks__/{chunk-U6QHRFQ6.js → chunk-BKMSVP62.js} +2 -2
- package/__chunks__/{chunk-5WX4CALV.js → chunk-BKSSTINX.js} +2 -2
- package/__chunks__/{chunk-USTDS2O5.js → chunk-BMG5SADY.js} +2 -2
- package/__chunks__/{chunk-FGT3C4FE.js → chunk-BPPVSU25.js} +1 -1
- package/__chunks__/chunk-BRPCFDIZ.js +2 -0
- package/__chunks__/{chunk-CJH2YV7X.js → chunk-BT4PUPX2.js} +2 -2
- package/__chunks__/{chunk-SMISCEQS.js → chunk-BTUNYV43.js} +2 -2
- package/__chunks__/{chunk-WKD2ES4V.js → chunk-BVRV3PPZ.js} +2 -2
- package/__chunks__/chunk-BZONU76B.js +2 -0
- package/__chunks__/{chunk-UWE6TJ47.js → chunk-C7BZLCLN.js} +2 -2
- package/__chunks__/chunk-CDW2662X.js +2 -0
- package/__chunks__/{chunk-MO7GMDSI.js → chunk-CFAUACCS.js} +2 -2
- package/__chunks__/{chunk-MDZPOO3F.js → chunk-CJEHVP77.js} +2 -2
- package/__chunks__/{chunk-ELIQXNO3.js → chunk-CNNCGA7P.js} +2 -2
- package/__chunks__/chunk-COL2EXNW.js +2 -0
- package/__chunks__/{chunk-IIAD2DSC.js → chunk-CPACYSUZ.js} +2 -2
- package/__chunks__/chunk-CSS5DPJE.js +2 -0
- package/__chunks__/{chunk-QUMYRH4H.js → chunk-CTO4KDRF.js} +2 -2
- package/__chunks__/chunk-CUPMM5UN.js +2 -0
- package/__chunks__/{chunk-M47D4COH.js → chunk-CWZS67S7.js} +2 -2
- package/__chunks__/{chunk-LF6VJNCF.js → chunk-CXXTFRHA.js} +2 -2
- package/__chunks__/{chunk-T6GIIILG.js → chunk-CZZL3SSJ.js} +2 -2
- package/__chunks__/{chunk-UX2EZNAX.js → chunk-D6AVFA2D.js} +2 -2
- package/__chunks__/{chunk-Q7U3WZCF.js → chunk-DLO34CIZ.js} +2 -2
- package/__chunks__/{chunk-77DECFQY.js → chunk-DTN6DYVS.js} +2 -2
- package/__chunks__/chunk-DXE4AAU7.js +2 -0
- package/__chunks__/{chunk-4ALRWZZQ.js → chunk-E36MIU6P.js} +2 -2
- package/__chunks__/chunk-E4X4P3T6.js +2 -0
- package/__chunks__/{chunk-5FBZWQQA.js → chunk-EFMJXVWX.js} +2 -2
- package/__chunks__/chunk-EPJMBI2O.js +2 -0
- package/__chunks__/{chunk-RJFWI3UU.js → chunk-ESLOIYNE.js} +2 -2
- package/__chunks__/{chunk-FSAAWDVV.js → chunk-EXCSAEHQ.js} +2 -2
- package/__chunks__/chunk-EZWQ7DMD.js +2 -0
- package/__chunks__/{chunk-73KODBLR.js → chunk-FIPS3NHS.js} +2 -2
- package/__chunks__/chunk-FPDWY2JO.js +2 -0
- package/__chunks__/{chunk-XZ5MLYGD.js → chunk-G3RFZTTV.js} +2 -2
- package/__chunks__/{chunk-52J7F3R2.js → chunk-GFUPPZJ2.js} +2 -2
- package/__chunks__/chunk-GIPQCOE2.js +2 -0
- package/__chunks__/{chunk-5RFLO6MR.js → chunk-GN2RX6OL.js} +2 -2
- package/__chunks__/{chunk-FGJI7F7M.js → chunk-GRYUK7ET.js} +2 -2
- package/__chunks__/{chunk-BOKSFKJF.js → chunk-H3R6VXAV.js} +2 -2
- package/__chunks__/{chunk-ILI6V46A.js → chunk-HACCGAKC.js} +2 -2
- package/__chunks__/chunk-HIX6QXZ4.js +2 -0
- package/__chunks__/{chunk-A2IXF222.js → chunk-HJ7GDMMX.js} +2 -2
- package/__chunks__/{chunk-CUFA5NAA.js → chunk-HOM67ZP7.js} +2 -2
- package/__chunks__/{chunk-TEFRLAUL.js → chunk-HPXVUIJL.js} +2 -2
- package/__chunks__/{chunk-YLOIJNV2.js → chunk-HWLMQLGK.js} +2 -2
- package/__chunks__/{chunk-CPEIGU6U.js → chunk-I4BUST3H.js} +2 -2
- package/__chunks__/{chunk-SJ6DPXLM.js → chunk-I6GRLA2C.js} +2 -2
- package/__chunks__/{chunk-PVKKZXYP.js → chunk-IMJ3U2BY.js} +2 -2
- package/__chunks__/{chunk-N7ACY27N.js → chunk-IMPGP7LI.js} +2 -2
- package/__chunks__/{chunk-5GEXET3C.js → chunk-IOQUQ7V7.js} +2 -2
- package/__chunks__/{chunk-HER7NR3P.js → chunk-IUSHI4WG.js} +2 -2
- package/__chunks__/chunk-IYGHEIZB.js +2 -0
- package/__chunks__/{chunk-YPLFH5NC.js → chunk-J3Q7UDAZ.js} +2 -2
- package/__chunks__/{chunk-IIXY6EVM.js → chunk-J6HSKOGJ.js} +2 -2
- package/__chunks__/{chunk-S7JDYKHM.js → chunk-J7NMG22C.js} +2 -2
- package/__chunks__/chunk-JCD6DJSC.js +2 -0
- package/__chunks__/{chunk-4R3QOQZE.js → chunk-JDVLHQF6.js} +2 -2
- package/__chunks__/{chunk-4JB5QVKY.js → chunk-JIXAK2AC.js} +2 -2
- package/__chunks__/{chunk-3KOYQHTR.js → chunk-JJWH3JYM.js} +2 -2
- package/__chunks__/{chunk-SLLPTUAV.js → chunk-JK6ABF64.js} +2 -2
- package/__chunks__/{chunk-ZEEWQEXA.js → chunk-JK6EDPQT.js} +2 -2
- package/__chunks__/chunk-JWP3WLIN.js +2 -0
- package/__chunks__/{chunk-7WWHCPMS.js → chunk-JWSBC5DB.js} +2 -2
- package/__chunks__/{chunk-I3DMSSAU.js → chunk-K5UIZVZV.js} +2 -2
- package/__chunks__/{chunk-KX4A4RXW.js → chunk-KDEQ2GAX.js} +2 -2
- package/__chunks__/{chunk-CRI42HNH.js → chunk-KEIOQVXN.js} +2 -2
- package/__chunks__/{chunk-U77UZINY.js → chunk-KG3U55NF.js} +2 -2
- package/__chunks__/{chunk-P6MWBKH3.js → chunk-KHHNKZRB.js} +2 -2
- package/__chunks__/{chunk-SOPJ4FVA.js → chunk-KV6GSWNL.js} +2 -2
- package/__chunks__/{chunk-VS7YJKJM.js → chunk-KYC5JNJB.js} +2 -2
- package/__chunks__/{chunk-BYS7QALE.js → chunk-KYVILTBF.js} +2 -2
- package/__chunks__/chunk-L5DW2DTN.js +2 -0
- package/__chunks__/chunk-L5UKH2NP.js +2 -0
- package/__chunks__/{chunk-M22NL7FJ.js → chunk-LES3U47Z.js} +2 -2
- package/__chunks__/{chunk-7YFFVZWN.js → chunk-LF5ZKC66.js} +2 -2
- package/__chunks__/{chunk-XTX67ABL.js → chunk-LF6FN6K3.js} +2 -2
- package/__chunks__/{chunk-K4P3Q4G6.js → chunk-LGPEIIM7.js} +2 -2
- package/__chunks__/{chunk-HJFWUTN2.js → chunk-LJ2OXL2R.js} +2 -2
- package/__chunks__/{chunk-HEMJW4UP.js → chunk-LLTQNIPQ.js} +2 -2
- package/__chunks__/{chunk-KE3UZZPK.js → chunk-LRZYNP4X.js} +2 -2
- package/__chunks__/{chunk-R5P34PUZ.js → chunk-LSJH4COT.js} +2 -2
- package/__chunks__/{chunk-UYKSTJCI.js → chunk-LU3DM6HR.js} +2 -2
- package/__chunks__/chunk-LWC25W2W.js +2 -0
- package/__chunks__/{chunk-HHGHERF3.js → chunk-M4KXOW7P.js} +2 -2
- package/__chunks__/{chunk-66KNLCQD.js → chunk-MC4SKRI3.js} +2 -2
- package/__chunks__/{chunk-VVPMSN2M.js → chunk-MCGMQBME.js} +2 -2
- package/__chunks__/{chunk-T4FS5XNS.js → chunk-MCX4AA63.js} +2 -2
- package/__chunks__/{chunk-UXBGGKWU.js → chunk-MDGIGD6R.js} +2 -2
- package/__chunks__/{chunk-HWDGDPLP.js → chunk-MIKIMQR2.js} +2 -2
- package/__chunks__/{chunk-DQLFYAJF.js → chunk-MOA4IRT5.js} +2 -2
- package/__chunks__/chunk-MYN7DB3X.js +2 -0
- package/__chunks__/{chunk-A2MJT5TB.js → chunk-N45VBFNK.js} +2 -2
- package/__chunks__/chunk-NA2AEGMU.js +2 -0
- package/__chunks__/{chunk-D3E65LJ5.js → chunk-NEHGYCY2.js} +2 -2
- package/__chunks__/{chunk-ACE3TC2R.js → chunk-NJQRX7E2.js} +2 -2
- package/__chunks__/{chunk-JFOJHUMM.js → chunk-NQ247DLE.js} +2 -2
- package/__chunks__/chunk-NTCEKYNN.js +2 -0
- package/__chunks__/{chunk-ADCSG5DO.js → chunk-NYNRNXOR.js} +2 -2
- package/__chunks__/{chunk-AFLDYYSB.js → chunk-O4ZYTYXZ.js} +2 -2
- package/__chunks__/{chunk-AJ2VY4SZ.js → chunk-OAXLOJDD.js} +2 -2
- package/__chunks__/chunk-OE5DHTVR.js +2 -0
- package/__chunks__/chunk-OGZP3W4S.js +2 -0
- package/__chunks__/{chunk-BBL4ZXHW.js → chunk-ONIRIDYD.js} +2 -2
- package/__chunks__/{chunk-BKMTF6D2.js → chunk-OPNNXGAJ.js} +2 -2
- package/__chunks__/chunk-OXJW5VJL.js +2 -0
- package/__chunks__/{chunk-RXNYA6SF.js → chunk-P6MRRO6I.js} +2 -2
- package/__chunks__/{chunk-YU5OYJX7.js → chunk-PCHRWVXC.js} +2 -2
- package/__chunks__/{chunk-C6OSBOOY.js → chunk-PGYJ74AD.js} +2 -2
- package/__chunks__/{chunk-5MMAS7IS.js → chunk-PHYN544Z.js} +2 -2
- package/__chunks__/chunk-PMKQQMDY.js +2 -0
- package/__chunks__/{chunk-DG7FFCMC.js → chunk-PMREAIGI.js} +2 -2
- package/__chunks__/{chunk-VPHC377M.js → chunk-PNSNXL7L.js} +2 -2
- package/__chunks__/{chunk-UTDBQNDV.js → chunk-PVQIICYI.js} +2 -2
- package/__chunks__/{chunk-EVUACURD.js → chunk-Q3OVBMP3.js} +2 -2
- package/__chunks__/{chunk-RHQ3FWWV.js → chunk-Q5WC7I3O.js} +2 -2
- package/__chunks__/{chunk-QL7RMPDI.js → chunk-QD5QDTC3.js} +2 -2
- package/__chunks__/{chunk-737AN7JD.js → chunk-QGGGF3OX.js} +2 -2
- package/__chunks__/{chunk-WWSWE52T.js → chunk-QNUO32JN.js} +2 -2
- package/__chunks__/{chunk-YKCZ2UKE.js → chunk-QOZBVOHT.js} +2 -2
- package/__chunks__/chunk-QRLJYAVK.js +2 -0
- package/__chunks__/{chunk-ROMNQSAY.js → chunk-QWPQS6G5.js} +2 -2
- package/__chunks__/{chunk-ODQ5XNPU.js → chunk-R4B6ID2N.js} +2 -2
- package/__chunks__/{chunk-KGYURMEO.js → chunk-R6AS2UYG.js} +2 -2
- package/__chunks__/{chunk-7BA6MF76.js → chunk-RLVLE6UU.js} +2 -2
- package/__chunks__/{chunk-YRHGZ4HS.js → chunk-S2KUPUGA.js} +2 -2
- package/__chunks__/{chunk-6R7WMG4C.js → chunk-S653XWKA.js} +2 -2
- package/__chunks__/{chunk-ENVPO3OR.js → chunk-SBN47C2G.js} +2 -2
- package/__chunks__/{chunk-SAFQFQIH.js → chunk-SDDHDY7Z.js} +2 -2
- package/__chunks__/{chunk-NANO4X2A.js → chunk-SFP5Q2SB.js} +2 -2
- package/__chunks__/chunk-SGEONHJN.js +2 -0
- package/__chunks__/{chunk-LKDW3XH3.js → chunk-SGNT3E2X.js} +2 -2
- package/__chunks__/{chunk-NQ5XJOIL.js → chunk-SLZBO3FX.js} +2 -2
- package/__chunks__/{chunk-WX5BAI2J.js → chunk-SSGU33XK.js} +2 -2
- package/__chunks__/{chunk-KCOIYEPV.js → chunk-SXJLOBGK.js} +2 -2
- package/__chunks__/{chunk-32VBXZXR.js → chunk-SYT2T7G2.js} +2 -2
- package/__chunks__/{chunk-M2X2JVAM.js → chunk-SZ3VLYKT.js} +2 -2
- package/__chunks__/{chunk-GCYQRVDH.js → chunk-T2CFMPMF.js} +2 -2
- package/__chunks__/{chunk-GBQ5D4O5.js → chunk-T2MFBGAA.js} +2 -2
- package/__chunks__/{chunk-QB3XGANM.js → chunk-T2MIRLFN.js} +2 -2
- package/__chunks__/{chunk-YKKS3O3Z.js → chunk-T34J5F2S.js} +2 -2
- package/__chunks__/{chunk-CY7H7XN3.js → chunk-T3NGVEED.js} +2 -2
- package/__chunks__/{chunk-RU373C7L.js → chunk-T4Q37HLR.js} +2 -2
- package/__chunks__/{chunk-NNVTUWMR.js → chunk-TAYARQBC.js} +2 -2
- package/__chunks__/{chunk-F4Z4BQFP.js → chunk-TGPRRERJ.js} +2 -2
- package/__chunks__/{chunk-UMD2MTE3.js → chunk-TJUHE354.js} +2 -2
- package/__chunks__/chunk-TKQGS7L2.js +2 -0
- package/__chunks__/{chunk-GXOJLFD4.js → chunk-TTBVJAYG.js} +2 -2
- package/__chunks__/{chunk-2KFSLVEO.js → chunk-TTZVNWAK.js} +2 -2
- package/__chunks__/{chunk-4NPCJKVQ.js → chunk-TWSAY73D.js} +2 -2
- package/__chunks__/{chunk-EN36KS5J.js → chunk-TZ6IR7KY.js} +2 -2
- package/__chunks__/{chunk-YWT4XNXN.js → chunk-U2ELIFGD.js} +2 -2
- package/__chunks__/{chunk-WXZKC7M3.js → chunk-U7BHVZDF.js} +2 -2
- package/__chunks__/{chunk-LVCV5JOX.js → chunk-UB7XMLMC.js} +2 -2
- package/__chunks__/{chunk-M7AJLAY3.js → chunk-UFE22DXI.js} +2 -2
- package/__chunks__/chunk-UGAJ6X3Z.js +2 -0
- package/__chunks__/chunk-UGJIORNP.js +2 -0
- package/__chunks__/{chunk-ANO63HEG.js → chunk-UIXYMFD4.js} +2 -2
- package/__chunks__/{chunk-XXUDAIKI.js → chunk-UM2Z6I3Z.js} +2 -2
- package/__chunks__/{chunk-COV3NRWK.js → chunk-UNW4PYCC.js} +2 -2
- package/__chunks__/{chunk-UIRTEEAJ.js → chunk-UPCMC3JF.js} +2 -2
- package/__chunks__/{chunk-GPNUHVOM.js → chunk-UWZL6MUF.js} +2 -2
- package/__chunks__/{chunk-YLMRTW5R.js → chunk-UZ5EL5IA.js} +2 -2
- package/__chunks__/{chunk-W2FZFACI.js → chunk-VGVAZOOL.js} +2 -2
- package/__chunks__/{chunk-MDNDUSGB.js → chunk-VHHIARAI.js} +2 -2
- package/__chunks__/{chunk-EBMIHN52.js → chunk-VOS5AZ4K.js} +2 -2
- package/__chunks__/{chunk-XT5BA43Z.js → chunk-VZZVQSTN.js} +2 -2
- package/__chunks__/{chunk-IC5Y7E5N.js → chunk-W4GD6OCO.js} +2 -2
- package/__chunks__/{chunk-XNHZJ2SC.js → chunk-W5D3A5ES.js} +2 -2
- package/__chunks__/{chunk-B3ILFYYH.js → chunk-WB2WVDZA.js} +2 -2
- package/__chunks__/{chunk-LBJUKBPW.js → chunk-WCGXNTPB.js} +2 -2
- package/__chunks__/{chunk-A6EXXYVU.js → chunk-WJHMRQCO.js} +2 -2
- package/__chunks__/{chunk-WYFQSQAM.js → chunk-WKN5JWWQ.js} +2 -2
- package/__chunks__/chunk-WR6IIZFW.js +2 -0
- package/__chunks__/{chunk-KTYRUFXV.js → chunk-WRKQTXD4.js} +2 -2
- package/__chunks__/{chunk-2C65GIQZ.js → chunk-WU2RFM5A.js} +2 -2
- package/__chunks__/{chunk-P7STLJJI.js → chunk-X7SBGOMA.js} +2 -2
- package/__chunks__/{chunk-IK27WK4F.js → chunk-XACM7U6A.js} +2 -2
- package/__chunks__/{chunk-PINKYRXT.js → chunk-XARXYP2R.js} +2 -2
- package/__chunks__/{chunk-FNO4F4XU.js → chunk-XGTZDEYC.js} +2 -2
- package/__chunks__/chunk-XHHJUHQV.js +2 -0
- package/__chunks__/{chunk-HQJKEU6C.js → chunk-XRHEAXKK.js} +2 -2
- package/__chunks__/{chunk-23EGU54D.js → chunk-XVZERATD.js} +2 -2
- package/__chunks__/{chunk-TXM7RATR.js → chunk-Y5PCCHR4.js} +2 -2
- package/__chunks__/{chunk-X2L7IGUP.js → chunk-Y7U5PXM4.js} +2 -2
- package/__chunks__/chunk-YABBPNUR.js +2 -0
- package/__chunks__/{chunk-E7MY3TPU.js → chunk-YCWMLUF4.js} +2 -2
- package/__chunks__/{chunk-3VGDFLNR.js → chunk-YGKDW2MQ.js} +2 -2
- package/__chunks__/{chunk-6PTMJTAR.js → chunk-YJXND7MN.js} +2 -2
- package/__chunks__/{chunk-X3JF7AJ7.js → chunk-YLMQQGTH.js} +2 -2
- package/__chunks__/{chunk-6YFMGTBJ.js → chunk-YRLJP2A7.js} +2 -2
- package/__chunks__/{chunk-NMZHNNDO.js → chunk-YRR6KBN2.js} +2 -2
- package/__chunks__/chunk-YW6K2R7N.js +2 -0
- package/__chunks__/chunk-YWMWYHIA.js +2 -0
- package/__chunks__/{chunk-JWQRJOLL.js → chunk-YYBTFRCM.js} +2 -2
- package/__chunks__/{chunk-WUBNBBRC.js → chunk-Z2VZSXDK.js} +2 -2
- package/__chunks__/{chunk-S3J7OTBF.js → chunk-Z3ZWK4EM.js} +2 -2
- package/__chunks__/{chunk-IOHWBSIX.js → chunk-Z4ABT7NG.js} +2 -2
- package/__chunks__/{chunk-EB7DKY7Z.js → chunk-ZCM6WCXA.js} +2 -2
- package/__chunks__/chunk-ZQIOXJ4W.js +2 -0
- package/__chunks__/{chunk-MBOASZBJ.js → chunk-ZSU24JZ5.js} +2 -2
- package/__chunks__/chunk-ZTWKQMJR.js +2 -0
- package/__chunks__/{chunk-HGTG6QDV.js → chunk-ZVZUXZJ7.js} +2 -2
- package/__chunks__/chunk-ZX7JX6JP.js +2 -0
- package/__commonjs/UI/DappModal/hooks/index.js +1 -1
- package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
- package/__commonjs/UI/NotificationModal/index.js +4 -4
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +22 -22
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +5 -5
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +7 -7
- package/__commonjs/UI/SignTransactionsModals/index.js +22 -22
- package/__commonjs/UI/TransactionInfo/components/DataDecode/DataDecode.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/DataDecode/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/DataField/DataField.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/DataField/index.js +3 -3
- 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 +10 -10
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationText.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/OperationsList/index.js +10 -10
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +6 -6
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +4 -4
- package/__commonjs/UI/TransactionsTable/TransactionsTable.js +11 -11
- 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/TransactionHash.js +6 -6
- package/__commonjs/UI/TransactionsTable/index.js +11 -11
- package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +6 -6
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +8 -8
- 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/TransactionsToastList/components/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/index.js +8 -8
- package/__commonjs/UI/UsdValue/UsdValue.js +2 -2
- package/__commonjs/UI/UsdValue/index.js +2 -2
- package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/__commonjs/UI/index.js +74 -74
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.js +2 -2
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +10 -10
- package/__commonjs/UI/ledger/index.js +1 -1
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/__commonjs/UI/pages/UnlockPage/index.js +12 -12
- package/__commonjs/UI/pages/index.js +12 -12
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +7 -7
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +5 -5
- package/__commonjs/UI/walletConnect/index.js +7 -7
- 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/components/LogoutListener/LogoutListener.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/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
- package/__commonjs/hooks/login/useLedgerLogin.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/login/useWebWalletLogin.js +1 -1
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/signMessage/useSignMessage.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/manageTimedOutTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/__commonjs/hooks/userInterface/index.js +1 -1
- package/__commonjs/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/__commonjs/hooks/websocketListener/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/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/index.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/store.js +1 -1
- package/__commonjs/services/index.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/getLatestBlockHash.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/index.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/__commonjs/services/nativeAuth/index.js +1 -1
- package/__commonjs/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
- package/__commonjs/services/nativeAuth/methods/getToken.js +1 -1
- package/__commonjs/services/nativeAuth/methods/index.js +1 -1
- package/__commonjs/services/nativeAuth/nativeAuth.js +1 -1
- package/__commonjs/services/transactions/isCrossShardTransaction.js +1 -1
- package/__commonjs/services/transactions/signTransactions.js +1 -1
- package/__commonjs/services/transactions/utils.js +1 -1
- package/__commonjs/types/enums.types.js +1 -1
- package/__commonjs/types/index.js +1 -1
- package/__commonjs/utils/account/getAccount.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/getLatestNonce.js +1 -1
- package/__commonjs/utils/account/index.js +1 -1
- package/__commonjs/utils/account/refreshAccount.js +1 -1
- package/__commonjs/utils/account/setNonce.js +1 -1
- package/__commonjs/utils/account/signMessage.js +1 -1
- package/__commonjs/utils/index.js +2 -2
- package/__commonjs/utils/logout.js +1 -1
- package/__commonjs/utils/operations/calculateFeeLimit.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/smartContracts.js +1 -1
- package/__commonjs/utils/toasts/customToastsActions.js +1 -1
- package/__commonjs/utils/toasts/index.js +1 -1
- package/__commonjs/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.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/getValueFromOperations.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/getTokenFromData.js +1 -1
- package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- 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 +1 -1
- 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/getTransactionStatus.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +5 -5
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/__commonjs/utils/transactions/transactionStateByStatus.js +1 -1
- package/__commonjs/utils/validation/maxDecimals.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/LoginInfoListener.js +1 -1
- package/__commonjs/wrappers/DappProvider/CustomComponents.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/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.d.ts +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/getLatestBlockHash.d.ts +1 -1
- package/services/nativeAuth/helpers/getLatestBlockHash.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/nativeAuth/index.js +1 -1
- package/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
- package/services/nativeAuth/methods/getToken.js +1 -1
- package/services/nativeAuth/methods/index.js +1 -1
- package/services/nativeAuth/nativeAuth.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 +2 -1
- package/types/enums.types.js +1 -1
- package/types/index.js +1 -1
- package/types/login.types.d.ts +1 -0
- package/types/login.types.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/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/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/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/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-3EYFCRQJ.js +0 -2
- package/__chunks__/chunk-3F3J26IL.js +0 -2
- package/__chunks__/chunk-3LTTE7Z4.js +0 -2
- package/__chunks__/chunk-3XYPMC5Z.js +0 -2
- package/__chunks__/chunk-3YOLWVYN.js +0 -2
- package/__chunks__/chunk-42BPBN4G.js +0 -2
- package/__chunks__/chunk-43CTUMZY.js +0 -2
- package/__chunks__/chunk-573MD3HA.js +0 -2
- package/__chunks__/chunk-7CRYWUS6.js +0 -2
- package/__chunks__/chunk-7NADEOVW.js +0 -2
- package/__chunks__/chunk-7ZZWUK5N.js +0 -2
- package/__chunks__/chunk-A4RZQEKA.js +0 -2
- package/__chunks__/chunk-AJVN5NMC.js +0 -2
- package/__chunks__/chunk-BQOSJ42S.js +0 -2
- package/__chunks__/chunk-BQY4YEPO.js +0 -2
- package/__chunks__/chunk-CKRLCHHT.js +0 -2
- package/__chunks__/chunk-CX7JJAI7.js +0 -2
- package/__chunks__/chunk-D3DU3GYZ.js +0 -2
- package/__chunks__/chunk-FAPWAQOI.js +0 -2
- package/__chunks__/chunk-FLNAHHFO.js +0 -2
- package/__chunks__/chunk-G4FTNX3C.js +0 -2
- package/__chunks__/chunk-GNJAE3HJ.js +0 -2
- package/__chunks__/chunk-GQMTJB4L.js +0 -2
- package/__chunks__/chunk-JAEDB3IA.js +0 -2
- package/__chunks__/chunk-KCCZWHLF.js +0 -2
- package/__chunks__/chunk-KQCX4VG2.js +0 -2
- package/__chunks__/chunk-KQF4EULM.js +0 -2
- package/__chunks__/chunk-KX4VZFVE.js +0 -2
- package/__chunks__/chunk-LG6WIZHT.js +0 -2
- package/__chunks__/chunk-LM64ZHBF.js +0 -2
- package/__chunks__/chunk-MAPKARLD.js +0 -2
- package/__chunks__/chunk-N7H3FMAE.js +0 -2
- package/__chunks__/chunk-P2E3TG5U.js +0 -2
- package/__chunks__/chunk-PURPYWQM.js +0 -2
- package/__chunks__/chunk-RBHVYE2Y.js +0 -2
- package/__chunks__/chunk-RGJUSITX.js +0 -2
- package/__chunks__/chunk-RQ5KJRJY.js +0 -2
- package/__chunks__/chunk-S6DXOR2S.js +0 -2
- package/__chunks__/chunk-SCCXHHWP.js +0 -2
- package/__chunks__/chunk-SPNCRNER.js +0 -2
- package/__chunks__/chunk-T6SOZMFL.js +0 -2
- package/__chunks__/chunk-TGSNOZEZ.js +0 -2
- package/__chunks__/chunk-TTS3WFEE.js +0 -2
- package/__chunks__/chunk-UC3M6BHM.js +0 -2
- package/__chunks__/chunk-WALAONSP.js +0 -2
- package/__chunks__/chunk-XCBMXPY5.js +0 -2
- package/__chunks__/chunk-Y3CLO3PP.js +0 -2
- package/__chunks__/chunk-YA6SZOY2.js +0 -2
- package/__chunks__/chunk-YBGCB57C.js +0 -2
- package/__chunks__/chunk-Z4BLO2TH.js +0 -2
- package/__chunks__/chunk-Z6WGQSRM.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Qn=Object.create;var ce=Object.defineProperty,Zn=Object.defineProperties,$n=Object.getOwnPropertyDescriptor,eo=Object.getOwnPropertyDescriptors,to=Object.getOwnPropertyNames,ye=Object.getOwnPropertySymbols,ro=Object.getPrototypeOf,Xe=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var Rt=(t,e,r)=>e in t?ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e||(e={}))Xe.call(e,r)&&Rt(t,r,e[r]);if(ye)for(var r of ye(e))Ct.call(e,r)&&Rt(t,r,e[r]);return t},v=(t,e)=>Zn(t,eo(e));var _t=(t,e)=>{var r={};for(var n in t)Xe.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&ye)for(var n of ye(t))e.indexOf(n)<0&&Ct.call(t,n)&&(r[n]=t[n]);return r};var m=(t,e)=>()=>(t&&(e=t(t=0)),e);var he=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Y=(t,e)=>{for(var r in e)ce(t,r,{get:e[r],enumerable:!0})},Nt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of to(e))!Xe.call(t,o)&&o!==r&&ce(t,o,{get:()=>e[o],enumerable:!(n=$n(e,o))||n.enumerable});return t};var _=(t,e,r)=>(r=t!=null?Qn(ro(t)):{},Nt(e||!t||!t.__esModule?ce(r,"default",{value:t,enumerable:!0}):r,t)),le=t=>Nt(ce({},"__esModule",{value:!0}),t);var Mt=(t,e,r)=>new Promise((n,o)=>{var i=l=>{try{p(r.next(l))}catch(f){o(f)}},a=l=>{try{p(r.throw(l))}catch(f){o(f)}},p=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);p((r=r.apply(t,e)).next())});var Dt=he(Te=>{"use strict";s();Te.byteLength=oo;Te.toByteArray=ao;Te.fromByteArray=lo;var P=[],L=[],no=typeof Uint8Array!="undefined"?Uint8Array:Array,Je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(X=0,Pt=Je.length;X<Pt;++X)P[X]=Je[X],L[Je.charCodeAt(X)]=X;var X,Pt;L["-".charCodeAt(0)]=62;L["_".charCodeAt(0)]=63;function Ft(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 oo(t){var e=Ft(t),r=e[0],n=e[1];return(r+n)*3/4-n}function io(t,e,r){return(e+r)*3/4-r}function ao(t){var e,r=Ft(t),n=r[0],o=r[1],i=new no(io(t,n,o)),a=0,p=o>0?n-4:n,l;for(l=0;l<p;l+=4)e=L[t.charCodeAt(l)]<<18|L[t.charCodeAt(l+1)]<<12|L[t.charCodeAt(l+2)]<<6|L[t.charCodeAt(l+3)],i[a++]=e>>16&255,i[a++]=e>>8&255,i[a++]=e&255;return o===2&&(e=L[t.charCodeAt(l)]<<2|L[t.charCodeAt(l+1)]>>4,i[a++]=e&255),o===1&&(e=L[t.charCodeAt(l)]<<10|L[t.charCodeAt(l+1)]<<4|L[t.charCodeAt(l+2)]>>2,i[a++]=e>>8&255,i[a++]=e&255),i}function so(t){return P[t>>18&63]+P[t>>12&63]+P[t>>6&63]+P[t&63]}function co(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(so(n));return o.join("")}function lo(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,p=r-n;a<p;a+=i)o.push(co(t,a,a+i>p?p:a+i));return n===1?(e=t[r-1],o.push(P[e>>2]+P[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(P[e>>10]+P[e>>4&63]+P[e<<2&63]+"=")),o.join("")}});var Bt=he(Qe=>{s();Qe.read=function(t,e,r,n,o){var i,a,p=o*8-n-1,l=(1<<p)-1,f=l>>1,h=-7,y=r?o-1:0,S=r?-1:1,b=t[e+y];for(y+=S,i=b&(1<<-h)-1,b>>=-h,h+=p;h>0;i=i*256+t[e+y],y+=S,h-=8);for(a=i&(1<<-h)-1,i>>=-h,h+=n;h>0;a=a*256+t[e+y],y+=S,h-=8);if(i===0)i=1-f;else{if(i===l)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-f}return(b?-1:1)*a*Math.pow(2,i-n)};Qe.write=function(t,e,r,n,o,i){var a,p,l,f=i*8-o-1,h=(1<<f)-1,y=h>>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,M=n?1:-1,C=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+y>=1?e+=S/l:e+=S*Math.pow(2,1-y),e*l>=2&&(a++,l/=2),a+y>=h?(p=0,a=h):a+y>=1?(p=(e*l-1)*Math.pow(2,o),a=a+y):(p=e*Math.pow(2,y-1)*Math.pow(2,o),a=0));o>=8;t[r+b]=p&255,b+=M,p/=256,o-=8);for(a=a<<o|p,f+=o;f>0;t[r+b]=a&255,b+=M,a/=256,f-=8);t[r+b-M]|=C*128}});var Jt=he(re=>{"use strict";s();var Ze=Dt(),te=Bt(),Ot=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;re.Buffer=c;re.SlowBuffer=yo;re.INSPECT_MAX_BYTES=50;var xe=2147483647;re.kMaxLength=xe;c.TYPED_ARRAY_SUPPORT=po();!c.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 po(){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(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function U(t){if(t>xe)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(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 rt(t)}return Vt(t,e,r)}c.poolSize=8192;function Vt(t,e,r){if(typeof t=="string")return go(t,e);if(ArrayBuffer.isView(t))return fo(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(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(F(t,SharedArrayBuffer)||t&&F(t.buffer,SharedArrayBuffer)))return et(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 c.from(n,e,r);var o=mo(t);if(o)return o;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.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)}c.from=function(t,e,r){return Vt(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function qt(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 uo(t,e,r){return qt(t),t<=0?U(t):e!==void 0?typeof r=="string"?U(t).fill(e,r):U(t).fill(e):U(t)}c.alloc=function(t,e,r){return uo(t,e,r)};function rt(t){return qt(t),U(t<0?0:nt(t)|0)}c.allocUnsafe=function(t){return rt(t)};c.allocUnsafeSlow=function(t){return rt(t)};function go(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Ht(t,e)|0,n=U(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function $e(t){for(var e=t.length<0?0:nt(t.length)|0,r=U(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function fo(t){if(F(t,Uint8Array)){var e=new Uint8Array(t);return et(e.buffer,e.byteOffset,e.byteLength)}return $e(t)}function et(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,c.prototype),n}function mo(t){if(c.isBuffer(t)){var e=nt(t.length)|0,r=U(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ot(t.length)?U(0):$e(t);if(t.type==="Buffer"&&Array.isArray(t.data))return $e(t.data)}function nt(t){if(t>=xe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+xe.toString(16)+" bytes");return t|0}function yo(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(F(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),F(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};c.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}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=c.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(F(a,Uint8Array))i+a.length>o.length?c.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(c.isBuffer(a))a.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o};function Ht(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return tt(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Xt(t).length;default:if(o)return n?-1:tt(t).length;e=(""+e).toLowerCase(),o=!0}}c.byteLength=Ht;function ho(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 Eo(this,e,r);case"utf8":case"utf-8":return Wt(this,e,r);case"ascii":return Ao(this,e,r);case"latin1":case"binary":return ko(this,e,r);case"base64":return Io(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lo(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function J(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.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)J(this,r,r+1);return this};c.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)J(this,r,r+3),J(this,r+1,r+2);return this};c.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)J(this,r,r+7),J(this,r+1,r+6),J(this,r+2,r+5),J(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Wt(this,0,e):ho.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=re.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ot&&(c.prototype[Ot]=c.prototype.inspect);c.prototype.compare=function(e,r,n,o,i){if(F(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,p=n-r,l=Math.min(a,p),f=this.slice(o,i),h=e.slice(r,n),y=0;y<l;++y)if(f[y]!==h[y]){a=f[y],p=h[y];break}return a<p?-1:p<a?1:0};function zt(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ot(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:Ut(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ut(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Ut(t,e,r,n,o){var i=1,a=t.length,p=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,p/=2,r/=2}function l(b,M){return i===1?b[M]:b.readUInt16BE(M*i)}var f;if(o){var h=-1;for(f=r;f<a;f++)if(l(t,f)===l(e,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===p)return h*i}else h!==-1&&(f-=f-h),h=-1}else for(r+p>a&&(r=a-p),f=r;f>=0;f--){for(var y=!0,S=0;S<p;S++)if(l(t,f+S)!==l(e,S)){y=!1;break}if(y)return f}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return zt(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return zt(this,e,r,n,!1)};function To(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var p=parseInt(e.substr(a*2,2),16);if(ot(p))return a;t[r+a]=p}return a}function xo(t,e,r,n){return Se(tt(e,t.length-r),t,r,n)}function So(t,e,r,n){return Se(_o(e),t,r,n)}function wo(t,e,r,n){return Se(Xt(e),t,r,n)}function bo(t,e,r,n){return Se(No(e,t.length-r),t,r,n)}c.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return To(this,e,r,n);case"utf8":case"utf-8":return xo(this,e,r,n);case"ascii":case"latin1":case"binary":return So(this,e,r,n);case"base64":return wo(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bo(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Io(t,e,r){return e===0&&r===t.length?Ze.fromByteArray(t):Ze.fromByteArray(t.slice(e,r))}function Wt(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,p=i>239?4:i>223?3:i>191?2:1;if(o+p<=r){var l,f,h,y;switch(p){case 1:i<128&&(a=i);break;case 2:l=t[o+1],(l&192)===128&&(y=(i&31)<<6|l&63,y>127&&(a=y));break;case 3:l=t[o+1],f=t[o+2],(l&192)===128&&(f&192)===128&&(y=(i&15)<<12|(l&63)<<6|f&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:l=t[o+1],f=t[o+2],h=t[o+3],(l&192)===128&&(f&192)===128&&(h&192)===128&&(y=(i&15)<<18|(l&63)<<12|(f&63)<<6|h&63,y>65535&&y<1114112&&(a=y))}}a===null?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=p}return vo(n)}var Gt=4096;function vo(t){var e=t.length;if(e<=Gt)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Gt));return r}function Ao(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function ko(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function Eo(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=Mo[t[i]];return o}function Lo(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o=this.subarray(e,r);return Object.setPrototypeOf(o,c.prototype),o};function I(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")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return o};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e+--r],i=1;r>0&&(i*=256);)o+=this[e+--r]*i;return o};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||I(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||I(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||I(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=r,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};c.prototype.readInt8=function(e,r){return e=e>>>0,r||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||I(e,4,this.length),te.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||I(e,4,this.length),te.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||I(e,8,this.length),te.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||I(e,8,this.length),te.read(this,e,!1,52,8)};function k(t,e,r,n,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;k(this,e,r,n,i,0)}var a=1,p=0;for(this[r]=e&255;++p<n&&(a*=256);)this[r+p]=e/a&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;k(this,e,r,n,i,0)}var a=n-1,p=1;for(this[r+a]=e&255;--a>=0&&(p*=256);)this[r+a]=e/p&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||k(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};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||k(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};c.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);k(this,e,r,n,i-1,-i)}var a=0,p=1,l=0;for(this[r]=e&255;++a<n&&(p*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/p>>0)-l&255;return r+n};c.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);k(this,e,r,n,i-1,-i)}var a=n-1,p=1,l=0;for(this[r+a]=e&255;--a>=0&&(p*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/p>>0)-l&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||k(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};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||k(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 jt(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Kt(t,e,r,n,o){return e=+e,r=r>>>0,o||jt(t,e,r,4,34028234663852886e22,-34028234663852886e22),te.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return Kt(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return Kt(this,e,r,!1,n)};function Yt(t,e,r,n,o){return e=+e,r=r>>>0,o||jt(t,e,r,8,17976931348623157e292,-17976931348623157e292),te.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return Yt(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return Yt(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,o){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};c.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var p=c.isBuffer(e)?e:c.from(e,o),l=p.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=p[a%l]}return this};var Ro=/[^+/0-9A-Za-z-_]/g;function Co(t){if(t=t.split("=")[0],t=t.trim().replace(Ro,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function tt(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function _o(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function No(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Xt(t){return Ze.toByteArray(Co(t))}function Se(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function F(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ot(t){return t!==t}var Mo=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()});var tr=he((Ni,er)=>{s();var w=er.exports={},D,B;function it(){throw new Error("setTimeout has not been defined")}function at(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?D=setTimeout:D=it}catch(t){D=it}try{typeof clearTimeout=="function"?B=clearTimeout:B=at}catch(t){B=at}})();function Qt(t){if(D===setTimeout)return setTimeout(t,0);if((D===it||!D)&&setTimeout)return D=setTimeout,setTimeout(t,0);try{return D(t,0)}catch(e){try{return D.call(null,t,0)}catch(r){return D.call(this,t,0)}}}function Po(t){if(B===clearTimeout)return clearTimeout(t);if((B===at||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(e){try{return B.call(null,t)}catch(r){return B.call(this,t)}}}var G=[],ne=!1,Q,we=-1;function Fo(){!ne||!Q||(ne=!1,Q.length?G=Q.concat(G):we=-1,G.length&&Zt())}function Zt(){if(!ne){var t=Qt(Fo);ne=!0;for(var e=G.length;e;){for(Q=G,G=[];++we<e;)Q&&Q[we].run();we=-1,e=G.length}Q=null,ne=!1,Po(t)}}w.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];G.push(new $t(t,e)),G.length===1&&!ne&&Qt(Zt)};function $t(t,e){this.fun=t,this.array=e}$t.prototype.run=function(){this.fun.apply(null,this.array)};w.title="browser";w.browser=!0;w.env={};w.argv=[];w.version="";w.versions={};function V(){}w.on=V;w.addListener=V;w.once=V;w.off=V;w.removeListener=V;w.removeAllListeners=V;w.emit=V;w.prependListener=V;w.prependOnceListener=V;w.listeners=function(t){return[]};w.binding=function(t){throw new Error("process.binding is not supported")};w.cwd=function(){return"/"};w.chdir=function(t){throw new Error("process.chdir is not supported")};w.umask=function(){return 0}});var u,d,Mi,s=m(()=>{u=_(Jt()),d=_(tr()),Mi=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var rr=m(()=>{"use strict";s()});var nr=m(()=>{"use strict";s()});var or=m(()=>{"use strict";s()});var ir=m(()=>{"use strict";s()});var pe=m(()=>{"use strict";s()});var ar=m(()=>{"use strict";s()});var sr=m(()=>{"use strict";s()});var cr=m(()=>{"use strict";s()});var lr=m(()=>{"use strict";s()});var pr=m(()=>{"use strict";s()});var oe=m(()=>{"use strict";s();nr();or();ir();pe();ar();sr();cr();lr();pr()});var st,ur,Zi,dr,$i,gr,ea,ta,ra,fr=m(()=>{"use strict";s();oe();st={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:ur,egldLabel:Zi}=st["devnet"],{chainId:dr,egldLabel:$i}=st["testnet"],{chainId:gr,egldLabel:ea}=st["mainnet"],ta={["devnet"]:ur,["testnet"]:dr,["mainnet"]:gr},ra={[ur]:"devnet",[dr]:"testnet",[gr]:"mainnet"}});var ct=m(()=>{"use strict";s()});var mr=m(()=>{"use strict";s()});var yr,lt=m(()=>{"use strict";s();yr="transaction-status-toast-id"});var O,hr=m(()=>{"use strict";s();O=require("@multiversx/sdk-web-wallet-provider")});var Tr,xr,be,Sr,Ie,wr,ie,q=m(()=>{"use strict";s();rr();fr();ct();mr();lt();hr();Tr=.01,xr=1500,be=5e4,Sr=1e9,Ie="logout",wr="login",ie="0"});var ve,pt=m(()=>{"use strict";s();ve=()=>Date.now()/1e3});var br=m(()=>{"use strict";s()});var Ir=m(()=>{"use strict";s()});var vr=m(()=>{"use strict";s();pt();br();Ir()});var dt={};Y(dt,{getItem:()=>Bo,localStorageKeys:()=>Z,removeItem:()=>Oo,setItem:()=>Do});var Z,ut,Do,Bo,Oo,ue=m(()=>{"use strict";s();vr();Z={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ut=typeof localStorage!="undefined",Do=({key:t,data:e,expires:r})=>{!ut||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Bo=t=>{if(!ut)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:ve()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},Oo=t=>{!ut||localStorage.removeItem(String(t))}});var gt={};Y(gt,{clear:()=>Lr,getItem:()=>kr,removeItem:()=>Er,setItem:()=>Ar,storage:()=>Uo});var Ar,kr,Er,Lr,Uo,Rr=m(()=>{"use strict";s();Ar=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},kr=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},Er=t=>sessionStorage.removeItem(String(t)),Lr=()=>sessionStorage.clear(),Uo={setItem:Ar,getItem:kr,removeItem:Er,clear:Lr}});var ae,Ae=m(()=>{"use strict";s();ue();Rr();ae={session:gt,local:dt}});var ft,A,ke,H=m(()=>{"use strict";s();ft=require("@reduxjs/toolkit");q();A=(0,ft.createAction)(Ie),ke=(0,ft.createAction)(wr,t=>({payload:t}))});var yt,Cr,_r,Ee,mt,Nr,Mr,Na,Pr,Ma,Pa,Fa,Da,Ba,Oa,Ua,Le,Re=m(()=>{"use strict";s();yt=require("@multiversx/sdk-core"),Cr=require("@reduxjs/toolkit"),_r=require("redux-persist");q();Ae();ue();H();Ee={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ie},mt={address:"",websocketEvent:null,accounts:{"":Ee},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Nr=(0,Cr.createSlice)({name:"accountInfoSlice",initialState:mt,reducers:{setAddress:(t,e)=>{let r=e.payload;t.address=r,t.publicKey=new yt.Address(r).hex()},setAccount:(t,e)=>{let r=t.address===e.payload.address;t.accounts={[t.address]:r?e.payload:Ee},t.shard=e.payload.shard,t.isAccountLoading=!1,t.accountLoadingError=null},setAccountNonce:(t,e)=>{let{address:r}=t;t.accounts[r].nonce=e.payload},setAccountShard:(t,e)=>{t.shard=e.payload},setLedgerAccount:(t,e)=>{t.ledgerAccount=e.payload},updateLedgerAccount:(t,e)=>{t.ledgerAccount!=null&&(t.ledgerAccount.index=e.payload.index,t.ledgerAccount.address=e.payload.address)},setWalletConnectAccount:(t,e)=>{t.walletConnectAccount=e.payload},setIsAccountLoading:(t,e)=>{t.isAccountLoading=e.payload,t.accountLoadingError=null},setAccountLoadingError:(t,e)=>{t.accountLoadingError=e.payload,t.isAccountLoading=!1},setWebsocketEvent:(t,e)=>{t.websocketEvent={timestamp:Date.now(),message:e.payload}}},extraReducers:t=>{t.addCase(A,()=>(ae.local.removeItem(Z.loginExpiresAt),mt)),t.addCase(ke,(e,r)=>{let{address:n}=r.payload;e.address=n,e.publicKey=new yt.Address(n).hex()}),t.addCase(_r.REHYDRATE,(e,r)=>{var f;if(!((f=r.payload)!=null&&f.account))return;let{account:n}=r.payload,{address:o,shard:i,accounts:a,publicKey:p}=n;e.address=o,e.shard=i;let l=a&&o in a;e.accounts=l?a:mt.accounts,e.publicKey=p})}}),{setAccount:Mr,setAddress:Na,setAccountNonce:Pr,setAccountShard:Ma,setLedgerAccount:Pa,updateLedgerAccount:Fa,setWalletConnectAccount:Da,setIsAccountLoading:Ba,setAccountLoadingError:Oa,setWebsocketEvent:Ua}=Nr.actions,Le=Nr.reducer});function de(){return new Date().setHours(new Date().getHours()+24)}function ge(t){ae.local.setItem({key:Z.loginExpiresAt,data:t,expires:t})}var ht=m(()=>{"use strict";s();Ae();ue()});var Dr,Fr,Br,Xa,Ja,Qa,Za,$a,es,Or,ts,Ce,_e=m(()=>{"use strict";s();Dr=require("@reduxjs/toolkit");ht();pe();H();Fr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Br=(0,Dr.createSlice)({name:"loginInfoSlice",initialState:Fr,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(A,()=>Fr),t.addCase(ke,(e,r)=>{e.loginMethod=r.payload.loginMethod,ge(de())})}}),{setLoginMethod:Xa,setWalletConnectLogin:Ja,setLedgerLogin:Qa,setTokenLogin:Za,setTokenLoginSignature:$a,setWalletLogin:es,invalidateLoginSession:Or,setLogoutRoute:ts}=Br.actions,Ce=Br.reducer});var Gr,Ur,Vr,is,Tt,as,ss,Ne,Me=m(()=>{"use strict";s();Gr=require("@reduxjs/toolkit");H();Ur={},Vr=(0,Gr.createSlice)({name:"modalsSlice",initialState:Ur,reducers:{setTxSubmittedModal:(t,e)=>{t.txSubmittedModal=e.payload},setNotificationModal:(t,e)=>{t.notificationModal=e.payload},clearTxSubmittedModal:t=>{t.txSubmittedModal=void 0},clearNotificationModal:t=>{t.notificationModal=void 0}},extraReducers:t=>{t.addCase(A,()=>Ur)}}),{setTxSubmittedModal:is,setNotificationModal:Tt,clearTxSubmittedModal:as,clearNotificationModal:ss}=Vr.actions,Ne=Vr.reducer});var qr=m(()=>{"use strict";s()});var Hr=m(()=>{"use strict";s();qr()});function xt(t){return t[Math.floor(Math.random()*t.length)]}var zr=m(()=>{"use strict";s()});var Wr=m(()=>{"use strict";s();ct()});var jr=m(()=>{"use strict";s();Hr();zr();Wr()});var Kr,Yr,St,Vo,Xr,Is,vs,Pe,Fe=m(()=>{"use strict";s();Kr=require("@reduxjs/toolkit"),Yr=_(require("lodash.omit"));jr();St={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Vo={network:St,chainID:"-1"},Xr=(0,Kr.createSlice)({name:"appConfig",initialState:Vo,reducers:{initializeNetworkConfig:(t,e)=>{let r=xt(e.payload.walletConnectBridgeAddresses),n=xt(e.payload.walletConnectV2RelayAddresses),o=(0,Yr.default)(e.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");t.network=v(T(T({},t.network),o),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(t,e)=>{t.chainID=e.payload}}}),{initializeNetworkConfig:Is,setChainID:vs}=Xr.actions,Pe=Xr.reducer});var Jr,wt,Qr,Cs,_s,Ns,De,Be=m(()=>{"use strict";s();Jr=require("@reduxjs/toolkit");oe();H();wt={isSigning:!1,signedSessions:{}},Qr=(0,Jr.createSlice)({name:"signedMessageInfoSliceState",initialState:wt,reducers:{setSignSession:(t,e)=>{let{sessionId:r,signedSession:n,errorMessage:o}=e.payload;return v(T({},t),{errorMessage:o!=null?o:t.errorMessage,isSigning:n.status==="pending",signedSessions:v(T({},t.signedSessions),{[r]:n})})},setSignSessionState:(t,e)=>T(T({},t),e.payload),clearSignedMessageInfo:()=>wt},extraReducers:t=>{t.addCase(A,()=>wt)}}),{setSignSession:Cs,clearSignedMessageInfo:_s,setSignSessionState:Ns}=Qr.actions,De=Qr.reducer});var $r,en,Zr,tn,Gs,Vs,qs,Hs,zs,Ws,Oe,Ue=m(()=>{"use strict";s();$r=require("@reduxjs/toolkit"),en=require("redux-persist");lt();oe();pt();H();Zr={customToasts:[],transactionToasts:[],failTransactionToast:null},tn=(0,$r.createSlice)({name:"toastsSlice",initialState:Zr,reducers:{addCustomToast:(t,e)=>{t.customToasts.push(v(T({},e.payload),{type:"custom",toastId:e.payload.toastId||`custom-toast-${t.customToasts.length+1}`}))},removeCustomToast:(t,e)=>{t.customToasts=t.customToasts.filter(r=>r.toastId!==e.payload)},addTransactionToast:(t,e)=>{t.transactionToasts.push({type:"transaction",startTimestamp:ve(),toastId:e.payload||`custom-toast-${t.transactionToasts.length+1}`})},removeTransactionToast:(t,e)=>{t.transactionToasts=t.transactionToasts.filter(r=>r.toastId!==e.payload)},addFailTransactionToast:(t,e)=>{t.failTransactionToast=v(T({},e.payload),{toastId:yr})},removeFailTransactionToast:t=>{t.failTransactionToast=null}},extraReducers:t=>{t.addCase(A,()=>Zr),t.addCase(en.REHYDRATE,(e,r)=>{var o,i;let n=(i=(o=r.customToasts)==null?void 0:o.filter(a=>!("component"in a)))!=null?i:[];e.customToasts=n})}}),{addCustomToast:Gs,removeCustomToast:Vs,addTransactionToast:qs,removeTransactionToast:Hs,addFailTransactionToast:zs,removeFailTransactionToast:Ws}=tn.actions,Oe=tn.reducer});var rn,qo,Ho,zo,Wo,bt,nn,Xs,on,Js,Ge,Ve=m(()=>{"use strict";s();rn=require("@reduxjs/toolkit");H();qo="Transaction failed",Ho="Transaction successful",zo="Processing transaction",Wo="Transaction submitted",bt={},nn=(0,rn.createSlice)({name:"transactionsInfo",initialState:bt,reducers:{setTransactionsDisplayInfo(t,e){let{sessionId:r,transactionsDisplayInfo:n}=e.payload;r!=null&&(t[r]={errorMessage:(n==null?void 0:n.errorMessage)||qo,successMessage:(n==null?void 0:n.successMessage)||Ho,processingMessage:(n==null?void 0:n.processingMessage)||zo,submittedMessage:(n==null?void 0:n.submittedMessage)||Wo,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(t,e){e.payload!=null&&delete t[e.payload]},clearTransactionsInfo:()=>bt},extraReducers:t=>{t.addCase(A,()=>bt)}}),{clearTransactionsInfo:Xs,setTransactionsDisplayInfo:on,clearTransactionsInfoForSessionId:Js}=nn.actions,Ge=nn.reducer});function an(t){return t!=null&&(Qo(t)||$o(t))}function sn(t){return t!=null&&(Zo(t)||ei(t))}function Qo(t){return t!=null&&Ko.includes(t)}function Zo(t){return t!=null&&Yo.includes(t)}function $o(t){return t!=null&&Xo.includes(t)}function ei(t){return t!=null&&Jo.includes(t)}var ec,Ko,Yo,tc,rc,Xo,Jo,cn=m(()=>{"use strict";s();pe();ec=["sent"],Ko=["success"],Yo=["fail","cancelled","timedOut"],tc=["timedOut"],rc=["pending"],Xo=["success"],Jo=["fail","invalid"]});var ln,pn,fe,ti,un,lc,pc,dn,uc,dc,gc,fc,mc,gn,yc,qe,He=m(()=>{"use strict";s();ln=require("@reduxjs/toolkit"),pn=require("redux-persist");pe();cn();H();fe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ti={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},un=(0,ln.createSlice)({name:"transactionsSlice",initialState:fe,reducers:{moveTransactionsToSignedState:(t,e)=>{var l,f;let{sessionId:r,transactions:n,errorMessage:o,status:i,redirectRoute:a}=e.payload,p=((l=t.customTransactionInformationForSessionId)==null?void 0:l[r])||ti;t.signedTransactions[r]={transactions:n,status:i,errorMessage:o,redirectRoute:a,customTransactionInformation:p},((f=t==null?void 0:t.transactionsToSign)==null?void 0:f.sessionId)===r&&(t.transactionsToSign=fe.transactionsToSign)},clearSignedTransaction:(t,e)=>{t.signedTransactions[e.payload]&&delete t.signedTransactions[e.payload]},clearTransactionToSign:t=>{t!=null&&t.transactionsToSign&&(t.transactionsToSign=null)},updateSignedTransaction:(t,e)=>{t.signedTransactions=T(T({},t.signedTransactions),e.payload)},updateSignedTransactions:(t,e)=>{let{sessionId:r,status:n,errorMessage:o,transactions:i}=e.payload;t.signedTransactions[r]!=null&&(t.signedTransactions[r].status=n,o!=null&&(t.signedTransactions[r].errorMessage=o),i!=null&&(t.signedTransactions[r].transactions=i))},updateSignedTransactionStatus:(t,e)=>{var p,l,f,h,y,S;let{sessionId:r,status:n,errorMessage:o,transactionHash:i}=e.payload,a=(l=(p=t.signedTransactions)==null?void 0:p[r])==null?void 0:l.transactions;if(a!=null){t.signedTransactions[r].transactions=a.map(C=>C.hash===i?v(T({},C),{status:n,errorMessage:o}):C);let b=(h=(f=t.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:h.every(C=>an(C.status)),M=(S=(y=t.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:S.every(C=>sn(C.status));b&&(t.signedTransactions[r].status="success"),M&&(t.signedTransactions[r].status="fail")}},setTransactionsToSign:(t,e)=>{t.transactionsToSign=e.payload;let{sessionId:r,customTransactionInformation:n}=e.payload;t.customTransactionInformationForSessionId[r]=n,t.signTransactionsError=null},clearAllTransactionsToSign:t=>{t.transactionsToSign=fe.transactionsToSign,t.signTransactionsError=null},clearAllSignedTransactions:t=>{t.signedTransactions=fe.signedTransactions},setSignTransactionsError:(t,e)=>{t.signTransactionsError=e.payload},setSignTransactionsCancelMessage:(t,e)=>{t.signTransactionsCancelMessage=e.payload}},extraReducers:t=>{t.addCase(A,()=>fe),t.addCase(pn.REHYDRATE,(e,r)=>{var a;if(e.signTransactionsCancelMessage=null,!((a=r.payload)!=null&&a.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:o}=r.payload.transactions,i=Object.entries(n).reduce((p,[l,f])=>{let h=new Date(l),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(p[l]=f),p},{});o!=null&&(e.customTransactionInformationForSessionId=o),n!=null&&(e.signedTransactions=i)})}}),{updateSignedTransactionStatus:lc,updateSignedTransactions:pc,setTransactionsToSign:dn,clearAllTransactionsToSign:uc,clearAllSignedTransactions:dc,clearSignedTransaction:gc,clearTransactionToSign:fc,setSignTransactionsError:mc,setSignTransactionsCancelMessage:gn,moveTransactionsToSignedState:yc}=un.actions,qe=un.reducer});var se=m(()=>{"use strict";s();Re();_e();Me();Fe();Be();Ue();Ve();He()});var At=m(()=>{"use strict";s()});var wn,Sn,bn,sl,cl,ll,pl,ul,dl,In,vn=m(()=>{"use strict";s();wn=require("@reduxjs/toolkit");H();Sn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},bn=(0,wn.createSlice)({name:"dappModalsSlice",initialState:Sn,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=T({},e.payload)}},extraReducers:t=>{t.addCase(A,()=>Sn)}}),{setDappModalVisibility:sl,setDappModalHeaderVisibility:cl,setDappModalFooterVisibility:ll,setDappModalHeaderText:pl,setDappModalFooterText:ul,setDappModalConfig:dl}=bn.actions,In=bn.reducer});var An,ai,si,ee,Ke=m(()=>{"use strict";s();An=require("@reduxjs/toolkit");At();Re();vn();_e();Me();Fe();Be();Ue();Ve();He();ai={["account"]:Le,["dappModal"]:In,["loginInfo"]:Ce,["modals"]:Ne,["networkConfig"]:Pe,["signedMessageInfo"]:De,["toasts"]:Oe,["transactionsInfo"]:Ge,["transactions"]:qe},si=(t={})=>(0,An.combineReducers)(T(T({},ai),t)),ee=si});var Rn={};Y(Rn,{default:()=>bi,sessionStorageReducers:()=>kt});function j(t,e=[]){return{key:t,version:1,storage:En.default,blacklist:e}}var E,kn,En,ci,me,li,pi,ui,di,gi,fi,mi,yi,hi,Ln,Ti,kt,xi,Si,wi,bi,Cn=m(()=>{"use strict";s();E=require("redux-persist"),kn=_(require("redux-persist/lib/storage")),En=_(require("redux-persist/lib/storage/session"));Ke();se();Re();_e();Me();Fe();Be();Ue();Ve();He();At();ci={persistReducersStorageType:"localStorage"},me={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},li=j(me["account"]),pi=j(me["loginInfo"]),ui=j(me["modals"]),di=j(me["networkConfig"]),gi={2:t=>v(T({},t),{networkConfig:St})};fi=j("sdk-dapp-transactionsInfo"),mi=j("sdk-dapp-transactions",["transactionsToSign"]),yi=j("sdk-dapp-toasts"),hi=j("sdk-dapp-signedMessageInfo"),Ln={key:"sdk-dapp-store",version:2,storage:kn.default,whitelist:Object.keys(me),migrate:(0,E.createMigrate)(gi,{debug:!1})},Ti=v(T({},Ln),{whitelist:[]}),kt={["toasts"]:(0,E.persistReducer)(yi,Oe),["transactions"]:(0,E.persistReducer)(mi,qe),["transactionsInfo"]:(0,E.persistReducer)(fi,Ge),["signedMessageInfo"]:(0,E.persistReducer)(hi,De)},xi=v(T({},kt),{["account"]:(0,E.persistReducer)(li,Le),["loginInfo"]:(0,E.persistReducer)(pi,Ce),["modals"]:(0,E.persistReducer)(ui,Ne),["networkConfig"]:(0,E.persistReducer)(di,Pe)}),Si=ci.persistReducersStorageType==="localStorage",wi=Si?(0,E.persistReducer)(Ln,ee(kt)):(0,E.persistReducer)(Ti,ee(xi)),bi=wi});var _n={};Y(_n,{default:()=>Ii});var Ii,Nn=m(()=>{"use strict";s();Ke();Ii=ee()});var Mn={};Y(Mn,{default:()=>Ai});var R,vi,Ai,Pn=m(()=>{"use strict";s();R=require("redux-persist"),vi=[R.FLUSH,R.REHYDRATE,R.PAUSE,R.PERSIST,R.PURGE,R.REGISTER],Ai=vi});var Bn={};Y(Bn,{default:()=>Dn});function Dn(t){return(0,Fn.persistStore)(t)}var Fn,On=m(()=>{"use strict";s();Fn=require("redux-persist")});var Ei={};Y(Ei,{signTransactions:()=>ki});module.exports=le(Ei);s();var Jn=_(require("bignumber.js"));q();s();se();s();var fn=_(require("lodash.isequal")),ze=require("reselect");oe();var x=(0,ze.createSelectorCreator)(ze.defaultMemoize,fn.default),mn=(t,e)=>t!=""&&Boolean(e);var z=t=>t.account,ri=x(z,t=>t.address),It=x(z,ri,(t,e)=>e in t.accounts?t.accounts[e]:Ee),_c=x(z,It,(t,e)=>{let o=t,{accounts:r}=o,n=_t(o,["accounts"]);return v(T({},n),{account:e})}),yn=x(It,t=>t.balance),Nc=x(It,t=>{var e;return((e=t==null?void 0:t.nonce)==null?void 0:e.valueOf())||0}),Mc=x(z,t=>t.shard),Pc=x(z,t=>t.ledgerAccount),Fc=x(z,t=>t.walletConnectAccount),Dc=x(z,t=>t.isAccountLoading),Bc=x(z,t=>t.accountLoadingError),Oc=x(z,t=>t.websocketEvent);s();var $=t=>t.networkConfig,hn=x($,t=>t.chainID),Vc=x($,t=>t.network.walletConnectBridgeAddress),qc=x($,t=>t.network.walletConnectV2RelayAddress),Hc=x($,t=>t.network.walletConnectV2ProjectId),zc=x($,t=>t.network.walletConnectV2Options),Wc=x($,t=>t.network.walletConnectDeepLink),vt=x($,t=>t.network),jc=x(vt,t=>t.apiAddress),Kc=x(vt,t=>t.explorerAddress),Yc=x(vt,t=>t.egldLabel);se();s();var Et=require("@reduxjs/toolkit"),qn=require("react-redux/lib/utils/Subscription");se();s();var Tn=_(require("lodash.throttle"));q();se();ht();Ae();ue();var ni=[Ie],We=!1,oi=(0,Tn.default)(()=>{ge(de())},5e3),xn=t=>e=>r=>{var l;if(ni.includes(r.type))return e(r);let n=t.getState(),o=ae.local.getItem(Z.loginExpiresAt);if(!mn((l=n==null?void 0:n.loginInfo)==null?void 0:l.loginMethod,n==null?void 0:n.account.address))return e(r);if(o==null)return ge(de());let a=Date.now();return o-a<0&&!We?setTimeout(()=>{We=!0,t.dispatch(Or())},1e3):(We&&(We=!1),oi()),e(r)};s();s();function je(){return typeof sessionStorage!="undefined"}var Un=je()?(Cn(),le(Rn)).default:(Nn(),le(_n)).default,Gn=je()?(Pn(),le(Mn)).default:[],Vn=je()?(On(),le(Bn)).default:t=>t;Ke();var W=(0,Et.configureStore)({reducer:Un,middleware:t=>t({serializableCheck:{ignoredActions:[...Gn,Pr.type,Mr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(xn)}),Hl=(0,qn.createSubscription)(W),zl=Vn(W),Wl=(0,Et.configureStore)({reducer:ee});oe();s();var Hn=_(require("bignumber.js"));q();var Ye=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===ie;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,o=new Hn.default(n);return o.toString(10)===n&&o.comparedTo(0)>=0};s();var Lt=_(require("bignumber.js"));q();s();var N=require("@multiversx/sdk-core"),Kn=require("@multiversx/sdk-network-providers");q();s();s();var zn=_(require("bignumber.js")),Wn=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new zn.default(r),o=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=o};s();q();s();var jn={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Yn({minGasLimit:t=String(be),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:o,gasPriceModifier:i,defaultGasPrice:a=String(Sr),chainId:p}){let l=n||"",f=Wn(e)?e:t,h=Ye(r)?r:a,y=new N.Transaction({nonce:0,value:N.TokenPayment.egldFromAmount("0"),receiver:new N.Address(jn.to),sender:new N.Address(jn.to),gasPrice:parseInt(h),gasLimit:parseInt(f),data:new N.TransactionPayload(l.trim()),chainID:p,version:new N.TransactionVersion(1)}),S=new Kn.NetworkConfig;S.MinGasLimit=parseInt(t),S.GasPerDataByte=parseInt(o),S.GasPriceModifier=parseFloat(i);try{return y.computeFee(S).toString(10)}catch(b){return ie}}function Xn(t,e){let r=new Lt.default(0);return t.forEach(n=>{let o=Yn({gasPerDataByte:String(xr),gasPriceModifier:String(Tr),minGasLimit:String(e),gasLimit:n.getGasLimit().valueOf().toString(),gasPrice:n.getGasPrice().valueOf().toString(),data:n.getData().toString(),chainId:n.getChainID().valueOf()});r=r.plus(new Lt.default(o))}),r}function ki(i){return Mt(this,arguments,function*({transactions:t,callbackRoute:e,minGasLimit:r=be,customTransactionInformation:n,transactionsDisplayInfo:o}){let a=W.getState(),p=Date.now().toString(),l=yn(a),f=hn(a),h=Array.isArray(t)?t:[t],y=Xn(h,r);if(!new Jn.default(Ye(l)?l:"0").minus(y).isGreaterThan(0)){let K={type:"warning",iconClassName:"text-warning",title:"Insufficient EGLD funds",description:"Current EGLD balance cannot cover the transaction fees."};return W.dispatch(Tt(K)),{error:"insufficient funds",sessionId:null}}if(!(h==null?void 0:h.every(K=>K.getChainID().valueOf()===f.valueOf()))){let K={type:"warning",iconClassName:"text-warning",title:"Network change detected",description:"The application tried to change the transaction network"};return W.dispatch(Tt(K)),{error:"Invalid ChainID",sessionId:null}}let C={sessionId:p,callbackRoute:e,customTransactionInformation:n,transactions:h.map(K=>K.toPlainObject())};return W.dispatch(gn(null)),W.dispatch(dn(C)),W.dispatch(on({sessionId:p,transactionsDisplayInfo:o})),{sessionId:p}})}0&&(module.exports={signTransactions});
|
|
1
|
+
"use strict";var Qn=Object.create;var ce=Object.defineProperty,Zn=Object.defineProperties,$n=Object.getOwnPropertyDescriptor,eo=Object.getOwnPropertyDescriptors,to=Object.getOwnPropertyNames,ye=Object.getOwnPropertySymbols,ro=Object.getPrototypeOf,Xe=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var Rt=(t,e,r)=>e in t?ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e||(e={}))Xe.call(e,r)&&Rt(t,r,e[r]);if(ye)for(var r of ye(e))Ct.call(e,r)&&Rt(t,r,e[r]);return t},v=(t,e)=>Zn(t,eo(e));var _t=(t,e)=>{var r={};for(var n in t)Xe.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&ye)for(var n of ye(t))e.indexOf(n)<0&&Ct.call(t,n)&&(r[n]=t[n]);return r};var f=(t,e)=>()=>(t&&(e=t(t=0)),e);var he=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Y=(t,e)=>{for(var r in e)ce(t,r,{get:e[r],enumerable:!0})},Nt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of to(e))!Xe.call(t,o)&&o!==r&&ce(t,o,{get:()=>e[o],enumerable:!(n=$n(e,o))||n.enumerable});return t};var _=(t,e,r)=>(r=t!=null?Qn(ro(t)):{},Nt(e||!t||!t.__esModule?ce(r,"default",{value:t,enumerable:!0}):r,t)),le=t=>Nt(ce({},"__esModule",{value:!0}),t);var Mt=(t,e,r)=>new Promise((n,o)=>{var i=l=>{try{p(r.next(l))}catch(m){o(m)}},a=l=>{try{p(r.throw(l))}catch(m){o(m)}},p=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);p((r=r.apply(t,e)).next())});var Dt=he(Te=>{"use strict";s();Te.byteLength=oo;Te.toByteArray=ao;Te.fromByteArray=lo;var P=[],L=[],no=typeof Uint8Array!="undefined"?Uint8Array:Array,Je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(X=0,Pt=Je.length;X<Pt;++X)P[X]=Je[X],L[Je.charCodeAt(X)]=X;var X,Pt;L["-".charCodeAt(0)]=62;L["_".charCodeAt(0)]=63;function Ft(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 oo(t){var e=Ft(t),r=e[0],n=e[1];return(r+n)*3/4-n}function io(t,e,r){return(e+r)*3/4-r}function ao(t){var e,r=Ft(t),n=r[0],o=r[1],i=new no(io(t,n,o)),a=0,p=o>0?n-4:n,l;for(l=0;l<p;l+=4)e=L[t.charCodeAt(l)]<<18|L[t.charCodeAt(l+1)]<<12|L[t.charCodeAt(l+2)]<<6|L[t.charCodeAt(l+3)],i[a++]=e>>16&255,i[a++]=e>>8&255,i[a++]=e&255;return o===2&&(e=L[t.charCodeAt(l)]<<2|L[t.charCodeAt(l+1)]>>4,i[a++]=e&255),o===1&&(e=L[t.charCodeAt(l)]<<10|L[t.charCodeAt(l+1)]<<4|L[t.charCodeAt(l+2)]>>2,i[a++]=e>>8&255,i[a++]=e&255),i}function so(t){return P[t>>18&63]+P[t>>12&63]+P[t>>6&63]+P[t&63]}function co(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(so(n));return o.join("")}function lo(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,p=r-n;a<p;a+=i)o.push(co(t,a,a+i>p?p:a+i));return n===1?(e=t[r-1],o.push(P[e>>2]+P[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(P[e>>10]+P[e>>4&63]+P[e<<2&63]+"=")),o.join("")}});var Bt=he(Qe=>{s();Qe.read=function(t,e,r,n,o){var i,a,p=o*8-n-1,l=(1<<p)-1,m=l>>1,h=-7,y=r?o-1:0,S=r?-1:1,b=t[e+y];for(y+=S,i=b&(1<<-h)-1,b>>=-h,h+=p;h>0;i=i*256+t[e+y],y+=S,h-=8);for(a=i&(1<<-h)-1,i>>=-h,h+=n;h>0;a=a*256+t[e+y],y+=S,h-=8);if(i===0)i=1-m;else{if(i===l)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-m}return(b?-1:1)*a*Math.pow(2,i-n)};Qe.write=function(t,e,r,n,o,i){var a,p,l,m=i*8-o-1,h=(1<<m)-1,y=h>>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,M=n?1:-1,C=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+y>=1?e+=S/l:e+=S*Math.pow(2,1-y),e*l>=2&&(a++,l/=2),a+y>=h?(p=0,a=h):a+y>=1?(p=(e*l-1)*Math.pow(2,o),a=a+y):(p=e*Math.pow(2,y-1)*Math.pow(2,o),a=0));o>=8;t[r+b]=p&255,b+=M,p/=256,o-=8);for(a=a<<o|p,m+=o;m>0;t[r+b]=a&255,b+=M,a/=256,m-=8);t[r+b-M]|=C*128}});var Jt=he(re=>{"use strict";s();var Ze=Dt(),te=Bt(),Ot=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;re.Buffer=c;re.SlowBuffer=yo;re.INSPECT_MAX_BYTES=50;var xe=2147483647;re.kMaxLength=xe;c.TYPED_ARRAY_SUPPORT=po();!c.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 po(){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(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function U(t){if(t>xe)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(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 rt(t)}return Vt(t,e,r)}c.poolSize=8192;function Vt(t,e,r){if(typeof t=="string")return go(t,e);if(ArrayBuffer.isView(t))return mo(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(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(F(t,SharedArrayBuffer)||t&&F(t.buffer,SharedArrayBuffer)))return et(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 c.from(n,e,r);var o=fo(t);if(o)return o;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.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)}c.from=function(t,e,r){return Vt(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function qt(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 uo(t,e,r){return qt(t),t<=0?U(t):e!==void 0?typeof r=="string"?U(t).fill(e,r):U(t).fill(e):U(t)}c.alloc=function(t,e,r){return uo(t,e,r)};function rt(t){return qt(t),U(t<0?0:nt(t)|0)}c.allocUnsafe=function(t){return rt(t)};c.allocUnsafeSlow=function(t){return rt(t)};function go(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Ht(t,e)|0,n=U(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function $e(t){for(var e=t.length<0?0:nt(t.length)|0,r=U(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function mo(t){if(F(t,Uint8Array)){var e=new Uint8Array(t);return et(e.buffer,e.byteOffset,e.byteLength)}return $e(t)}function et(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,c.prototype),n}function fo(t){if(c.isBuffer(t)){var e=nt(t.length)|0,r=U(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ot(t.length)?U(0):$e(t);if(t.type==="Buffer"&&Array.isArray(t.data))return $e(t.data)}function nt(t){if(t>=xe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+xe.toString(16)+" bytes");return t|0}function yo(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(F(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),F(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};c.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}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=c.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(F(a,Uint8Array))i+a.length>o.length?c.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(c.isBuffer(a))a.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o};function Ht(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return tt(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Xt(t).length;default:if(o)return n?-1:tt(t).length;e=(""+e).toLowerCase(),o=!0}}c.byteLength=Ht;function ho(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 Eo(this,e,r);case"utf8":case"utf-8":return jt(this,e,r);case"ascii":return Ao(this,e,r);case"latin1":case"binary":return ko(this,e,r);case"base64":return Io(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lo(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function J(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.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)J(this,r,r+1);return this};c.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)J(this,r,r+3),J(this,r+1,r+2);return this};c.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)J(this,r,r+7),J(this,r+1,r+6),J(this,r+2,r+5),J(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?jt(this,0,e):ho.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=re.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ot&&(c.prototype[Ot]=c.prototype.inspect);c.prototype.compare=function(e,r,n,o,i){if(F(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,p=n-r,l=Math.min(a,p),m=this.slice(o,i),h=e.slice(r,n),y=0;y<l;++y)if(m[y]!==h[y]){a=m[y],p=h[y];break}return a<p?-1:p<a?1:0};function zt(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ot(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:Ut(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ut(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Ut(t,e,r,n,o){var i=1,a=t.length,p=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,p/=2,r/=2}function l(b,M){return i===1?b[M]:b.readUInt16BE(M*i)}var m;if(o){var h=-1;for(m=r;m<a;m++)if(l(t,m)===l(e,h===-1?0:m-h)){if(h===-1&&(h=m),m-h+1===p)return h*i}else h!==-1&&(m-=m-h),h=-1}else for(r+p>a&&(r=a-p),m=r;m>=0;m--){for(var y=!0,S=0;S<p;S++)if(l(t,m+S)!==l(e,S)){y=!1;break}if(y)return m}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return zt(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return zt(this,e,r,n,!1)};function To(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var p=parseInt(e.substr(a*2,2),16);if(ot(p))return a;t[r+a]=p}return a}function xo(t,e,r,n){return Se(tt(e,t.length-r),t,r,n)}function So(t,e,r,n){return Se(_o(e),t,r,n)}function wo(t,e,r,n){return Se(Xt(e),t,r,n)}function bo(t,e,r,n){return Se(No(e,t.length-r),t,r,n)}c.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return To(this,e,r,n);case"utf8":case"utf-8":return xo(this,e,r,n);case"ascii":case"latin1":case"binary":return So(this,e,r,n);case"base64":return wo(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bo(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Io(t,e,r){return e===0&&r===t.length?Ze.fromByteArray(t):Ze.fromByteArray(t.slice(e,r))}function jt(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,p=i>239?4:i>223?3:i>191?2:1;if(o+p<=r){var l,m,h,y;switch(p){case 1:i<128&&(a=i);break;case 2:l=t[o+1],(l&192)===128&&(y=(i&31)<<6|l&63,y>127&&(a=y));break;case 3:l=t[o+1],m=t[o+2],(l&192)===128&&(m&192)===128&&(y=(i&15)<<12|(l&63)<<6|m&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:l=t[o+1],m=t[o+2],h=t[o+3],(l&192)===128&&(m&192)===128&&(h&192)===128&&(y=(i&15)<<18|(l&63)<<12|(m&63)<<6|h&63,y>65535&&y<1114112&&(a=y))}}a===null?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=p}return vo(n)}var Gt=4096;function vo(t){var e=t.length;if(e<=Gt)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Gt));return r}function Ao(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function ko(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function Eo(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=Mo[t[i]];return o}function Lo(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o=this.subarray(e,r);return Object.setPrototypeOf(o,c.prototype),o};function I(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")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return o};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e+--r],i=1;r>0&&(i*=256);)o+=this[e+--r]*i;return o};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||I(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||I(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||I(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||I(e,r,this.length);for(var o=r,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};c.prototype.readInt8=function(e,r){return e=e>>>0,r||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||I(e,4,this.length),te.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||I(e,4,this.length),te.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||I(e,8,this.length),te.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||I(e,8,this.length),te.read(this,e,!1,52,8)};function k(t,e,r,n,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;k(this,e,r,n,i,0)}var a=1,p=0;for(this[r]=e&255;++p<n&&(a*=256);)this[r+p]=e/a&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;k(this,e,r,n,i,0)}var a=n-1,p=1;for(this[r+a]=e&255;--a>=0&&(p*=256);)this[r+a]=e/p&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||k(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};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||k(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};c.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);k(this,e,r,n,i-1,-i)}var a=0,p=1,l=0;for(this[r]=e&255;++a<n&&(p*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/p>>0)-l&255;return r+n};c.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);k(this,e,r,n,i-1,-i)}var a=n-1,p=1,l=0;for(this[r+a]=e&255;--a>=0&&(p*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/p>>0)-l&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||k(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||k(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};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||k(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 Wt(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Kt(t,e,r,n,o){return e=+e,r=r>>>0,o||Wt(t,e,r,4,34028234663852886e22,-34028234663852886e22),te.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return Kt(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return Kt(this,e,r,!1,n)};function Yt(t,e,r,n,o){return e=+e,r=r>>>0,o||Wt(t,e,r,8,17976931348623157e292,-17976931348623157e292),te.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return Yt(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return Yt(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,o){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};c.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var p=c.isBuffer(e)?e:c.from(e,o),l=p.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=p[a%l]}return this};var Ro=/[^+/0-9A-Za-z-_]/g;function Co(t){if(t=t.split("=")[0],t=t.trim().replace(Ro,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function tt(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function _o(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function No(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Xt(t){return Ze.toByteArray(Co(t))}function Se(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function F(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ot(t){return t!==t}var Mo=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()});var tr=he((Ni,er)=>{s();var w=er.exports={},D,B;function it(){throw new Error("setTimeout has not been defined")}function at(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?D=setTimeout:D=it}catch(t){D=it}try{typeof clearTimeout=="function"?B=clearTimeout:B=at}catch(t){B=at}})();function Qt(t){if(D===setTimeout)return setTimeout(t,0);if((D===it||!D)&&setTimeout)return D=setTimeout,setTimeout(t,0);try{return D(t,0)}catch(e){try{return D.call(null,t,0)}catch(r){return D.call(this,t,0)}}}function Po(t){if(B===clearTimeout)return clearTimeout(t);if((B===at||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(e){try{return B.call(null,t)}catch(r){return B.call(this,t)}}}var G=[],ne=!1,Q,we=-1;function Fo(){!ne||!Q||(ne=!1,Q.length?G=Q.concat(G):we=-1,G.length&&Zt())}function Zt(){if(!ne){var t=Qt(Fo);ne=!0;for(var e=G.length;e;){for(Q=G,G=[];++we<e;)Q&&Q[we].run();we=-1,e=G.length}Q=null,ne=!1,Po(t)}}w.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];G.push(new $t(t,e)),G.length===1&&!ne&&Qt(Zt)};function $t(t,e){this.fun=t,this.array=e}$t.prototype.run=function(){this.fun.apply(null,this.array)};w.title="browser";w.browser=!0;w.env={};w.argv=[];w.version="";w.versions={};function V(){}w.on=V;w.addListener=V;w.once=V;w.off=V;w.removeListener=V;w.removeAllListeners=V;w.emit=V;w.prependListener=V;w.prependOnceListener=V;w.listeners=function(t){return[]};w.binding=function(t){throw new Error("process.binding is not supported")};w.cwd=function(){return"/"};w.chdir=function(t){throw new Error("process.chdir is not supported")};w.umask=function(){return 0}});var u,d,Mi,s=f(()=>{u=_(Jt()),d=_(tr()),Mi=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var rr=f(()=>{"use strict";s()});var nr=f(()=>{"use strict";s()});var or=f(()=>{"use strict";s()});var ir=f(()=>{"use strict";s()});var pe=f(()=>{"use strict";s()});var ar=f(()=>{"use strict";s()});var sr=f(()=>{"use strict";s()});var cr=f(()=>{"use strict";s()});var lr=f(()=>{"use strict";s()});var pr=f(()=>{"use strict";s()});var oe=f(()=>{"use strict";s();nr();or();ir();pe();ar();sr();cr();lr();pr()});var st,ur,Zi,dr,$i,gr,ea,ta,ra,mr=f(()=>{"use strict";s();oe();st={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:ur,egldLabel:Zi}=st["devnet"],{chainId:dr,egldLabel:$i}=st["testnet"],{chainId:gr,egldLabel:ea}=st["mainnet"],ta={["devnet"]:ur,["testnet"]:dr,["mainnet"]:gr},ra={[ur]:"devnet",[dr]:"testnet",[gr]:"mainnet"}});var ct=f(()=>{"use strict";s()});var fr=f(()=>{"use strict";s()});var yr,lt=f(()=>{"use strict";s();yr="transaction-status-toast-id"});var O,hr=f(()=>{"use strict";s();O=require("@multiversx/sdk-web-wallet-provider")});var Tr,xr,be,Sr,Ie,wr,ie,q=f(()=>{"use strict";s();rr();mr();ct();fr();lt();hr();Tr=.01,xr=1500,be=5e4,Sr=1e9,Ie="logout",wr="login",ie="0"});var ve,pt=f(()=>{"use strict";s();ve=()=>Date.now()/1e3});var br=f(()=>{"use strict";s()});var Ir=f(()=>{"use strict";s()});var vr=f(()=>{"use strict";s();pt();br();Ir()});var dt={};Y(dt,{getItem:()=>Bo,localStorageKeys:()=>Z,removeItem:()=>Oo,setItem:()=>Do});var Z,ut,Do,Bo,Oo,ue=f(()=>{"use strict";s();vr();Z={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ut=typeof localStorage!="undefined",Do=({key:t,data:e,expires:r})=>{!ut||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Bo=t=>{if(!ut)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:ve()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},Oo=t=>{!ut||localStorage.removeItem(String(t))}});var gt={};Y(gt,{clear:()=>Lr,getItem:()=>kr,removeItem:()=>Er,setItem:()=>Ar,storage:()=>Uo});var Ar,kr,Er,Lr,Uo,Rr=f(()=>{"use strict";s();Ar=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},kr=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},Er=t=>sessionStorage.removeItem(String(t)),Lr=()=>sessionStorage.clear(),Uo={setItem:Ar,getItem:kr,removeItem:Er,clear:Lr}});var ae,Ae=f(()=>{"use strict";s();ue();Rr();ae={session:gt,local:dt}});var mt,A,ke,H=f(()=>{"use strict";s();mt=require("@reduxjs/toolkit");q();A=(0,mt.createAction)(Ie),ke=(0,mt.createAction)(wr,t=>({payload:t}))});var yt,Cr,_r,Ee,ft,Nr,Mr,Na,Pr,Ma,Pa,Fa,Da,Ba,Oa,Ua,Le,Re=f(()=>{"use strict";s();yt=require("@multiversx/sdk-core"),Cr=require("@reduxjs/toolkit"),_r=require("redux-persist");q();Ae();ue();H();Ee={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ie},ft={address:"",websocketEvent:null,accounts:{"":Ee},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Nr=(0,Cr.createSlice)({name:"accountInfoSlice",initialState:ft,reducers:{setAddress:(t,e)=>{let r=e.payload;t.address=r,t.publicKey=new yt.Address(r).hex()},setAccount:(t,e)=>{let r=t.address===e.payload.address;t.accounts={[t.address]:r?e.payload:Ee},t.shard=e.payload.shard,t.isAccountLoading=!1,t.accountLoadingError=null},setAccountNonce:(t,e)=>{let{address:r}=t;t.accounts[r].nonce=e.payload},setAccountShard:(t,e)=>{t.shard=e.payload},setLedgerAccount:(t,e)=>{t.ledgerAccount=e.payload},updateLedgerAccount:(t,e)=>{t.ledgerAccount!=null&&(t.ledgerAccount.index=e.payload.index,t.ledgerAccount.address=e.payload.address)},setWalletConnectAccount:(t,e)=>{t.walletConnectAccount=e.payload},setIsAccountLoading:(t,e)=>{t.isAccountLoading=e.payload,t.accountLoadingError=null},setAccountLoadingError:(t,e)=>{t.accountLoadingError=e.payload,t.isAccountLoading=!1},setWebsocketEvent:(t,e)=>{t.websocketEvent={timestamp:Date.now(),message:e.payload}}},extraReducers:t=>{t.addCase(A,()=>(ae.local.removeItem(Z.loginExpiresAt),ft)),t.addCase(ke,(e,r)=>{let{address:n}=r.payload;e.address=n,e.publicKey=new yt.Address(n).hex()}),t.addCase(_r.REHYDRATE,(e,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:n}=r.payload,{address:o,shard:i,accounts:a,publicKey:p}=n;e.address=o,e.shard=i;let l=a&&o in a;e.accounts=l?a:ft.accounts,e.publicKey=p})}}),{setAccount:Mr,setAddress:Na,setAccountNonce:Pr,setAccountShard:Ma,setLedgerAccount:Pa,updateLedgerAccount:Fa,setWalletConnectAccount:Da,setIsAccountLoading:Ba,setAccountLoadingError:Oa,setWebsocketEvent:Ua}=Nr.actions,Le=Nr.reducer});function de(){return new Date().setHours(new Date().getHours()+24)}function ge(t){ae.local.setItem({key:Z.loginExpiresAt,data:t,expires:t})}var ht=f(()=>{"use strict";s();Ae();ue()});var Dr,Fr,Br,Xa,Ja,Qa,Za,$a,es,Or,ts,Ce,_e=f(()=>{"use strict";s();Dr=require("@reduxjs/toolkit");ht();pe();H();Fr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Br=(0,Dr.createSlice)({name:"loginInfoSlice",initialState:Fr,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(A,()=>Fr),t.addCase(ke,(e,r)=>{e.loginMethod=r.payload.loginMethod,ge(de())})}}),{setLoginMethod:Xa,setWalletConnectLogin:Ja,setLedgerLogin:Qa,setTokenLogin:Za,setTokenLoginSignature:$a,setWalletLogin:es,invalidateLoginSession:Or,setLogoutRoute:ts}=Br.actions,Ce=Br.reducer});var Gr,Ur,Vr,is,Tt,as,ss,Ne,Me=f(()=>{"use strict";s();Gr=require("@reduxjs/toolkit");H();Ur={},Vr=(0,Gr.createSlice)({name:"modalsSlice",initialState:Ur,reducers:{setTxSubmittedModal:(t,e)=>{t.txSubmittedModal=e.payload},setNotificationModal:(t,e)=>{t.notificationModal=e.payload},clearTxSubmittedModal:t=>{t.txSubmittedModal=void 0},clearNotificationModal:t=>{t.notificationModal=void 0}},extraReducers:t=>{t.addCase(A,()=>Ur)}}),{setTxSubmittedModal:is,setNotificationModal:Tt,clearTxSubmittedModal:as,clearNotificationModal:ss}=Vr.actions,Ne=Vr.reducer});var qr=f(()=>{"use strict";s()});var Hr=f(()=>{"use strict";s();qr()});function xt(t){return t[Math.floor(Math.random()*t.length)]}var zr=f(()=>{"use strict";s()});var jr=f(()=>{"use strict";s();ct()});var Wr=f(()=>{"use strict";s();Hr();zr();jr()});var Kr,Yr,St,Vo,Xr,Is,vs,Pe,Fe=f(()=>{"use strict";s();Kr=require("@reduxjs/toolkit"),Yr=_(require("lodash.omit"));Wr();St={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Vo={network:St,chainID:"-1"},Xr=(0,Kr.createSlice)({name:"appConfig",initialState:Vo,reducers:{initializeNetworkConfig:(t,e)=>{let r=xt(e.payload.walletConnectBridgeAddresses),n=xt(e.payload.walletConnectV2RelayAddresses),o=(0,Yr.default)(e.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");t.network=v(T(T({},t.network),o),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(t,e)=>{t.chainID=e.payload}}}),{initializeNetworkConfig:Is,setChainID:vs}=Xr.actions,Pe=Xr.reducer});var Jr,wt,Qr,Cs,_s,Ns,De,Be=f(()=>{"use strict";s();Jr=require("@reduxjs/toolkit");oe();H();wt={isSigning:!1,signedSessions:{}},Qr=(0,Jr.createSlice)({name:"signedMessageInfoSliceState",initialState:wt,reducers:{setSignSession:(t,e)=>{let{sessionId:r,signedSession:n,errorMessage:o}=e.payload;return v(T({},t),{errorMessage:o!=null?o:t.errorMessage,isSigning:n.status==="pending",signedSessions:v(T({},t.signedSessions),{[r]:n})})},setSignSessionState:(t,e)=>T(T({},t),e.payload),clearSignedMessageInfo:()=>wt},extraReducers:t=>{t.addCase(A,()=>wt)}}),{setSignSession:Cs,clearSignedMessageInfo:_s,setSignSessionState:Ns}=Qr.actions,De=Qr.reducer});var $r,en,Zr,tn,Gs,Vs,qs,Hs,zs,js,Oe,Ue=f(()=>{"use strict";s();$r=require("@reduxjs/toolkit"),en=require("redux-persist");lt();oe();pt();H();Zr={customToasts:[],transactionToasts:[],failTransactionToast:null},tn=(0,$r.createSlice)({name:"toastsSlice",initialState:Zr,reducers:{addCustomToast:(t,e)=>{t.customToasts.push(v(T({},e.payload),{type:"custom",toastId:e.payload.toastId||`custom-toast-${t.customToasts.length+1}`}))},removeCustomToast:(t,e)=>{t.customToasts=t.customToasts.filter(r=>r.toastId!==e.payload)},addTransactionToast:(t,e)=>{t.transactionToasts.push({type:"transaction",startTimestamp:ve(),toastId:e.payload||`custom-toast-${t.transactionToasts.length+1}`})},removeTransactionToast:(t,e)=>{t.transactionToasts=t.transactionToasts.filter(r=>r.toastId!==e.payload)},addFailTransactionToast:(t,e)=>{t.failTransactionToast=v(T({},e.payload),{toastId:yr})},removeFailTransactionToast:t=>{t.failTransactionToast=null}},extraReducers:t=>{t.addCase(A,()=>Zr),t.addCase(en.REHYDRATE,(e,r)=>{var o,i;let n=(i=(o=r.customToasts)==null?void 0:o.filter(a=>!("component"in a)))!=null?i:[];e.customToasts=n})}}),{addCustomToast:Gs,removeCustomToast:Vs,addTransactionToast:qs,removeTransactionToast:Hs,addFailTransactionToast:zs,removeFailTransactionToast:js}=tn.actions,Oe=tn.reducer});var rn,qo,Ho,zo,jo,bt,nn,Xs,on,Js,Ge,Ve=f(()=>{"use strict";s();rn=require("@reduxjs/toolkit");H();qo="Transaction failed",Ho="Transaction successful",zo="Processing transaction",jo="Transaction submitted",bt={},nn=(0,rn.createSlice)({name:"transactionsInfo",initialState:bt,reducers:{setTransactionsDisplayInfo(t,e){let{sessionId:r,transactionsDisplayInfo:n}=e.payload;r!=null&&(t[r]={errorMessage:(n==null?void 0:n.errorMessage)||qo,successMessage:(n==null?void 0:n.successMessage)||Ho,processingMessage:(n==null?void 0:n.processingMessage)||zo,submittedMessage:(n==null?void 0:n.submittedMessage)||jo,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(t,e){e.payload!=null&&delete t[e.payload]},clearTransactionsInfo:()=>bt},extraReducers:t=>{t.addCase(A,()=>bt)}}),{clearTransactionsInfo:Xs,setTransactionsDisplayInfo:on,clearTransactionsInfoForSessionId:Js}=nn.actions,Ge=nn.reducer});function an(t){return t!=null&&(Qo(t)||$o(t))}function sn(t){return t!=null&&(Zo(t)||ei(t))}function Qo(t){return t!=null&&Ko.includes(t)}function Zo(t){return t!=null&&Yo.includes(t)}function $o(t){return t!=null&&Xo.includes(t)}function ei(t){return t!=null&&Jo.includes(t)}var ec,Ko,Yo,tc,rc,Xo,Jo,cn=f(()=>{"use strict";s();pe();ec=["sent"],Ko=["success"],Yo=["fail","cancelled","timedOut"],tc=["timedOut"],rc=["pending"],Xo=["success"],Jo=["fail","invalid"]});var ln,pn,me,ti,un,lc,pc,dn,uc,dc,gc,mc,fc,gn,yc,qe,He=f(()=>{"use strict";s();ln=require("@reduxjs/toolkit"),pn=require("redux-persist");pe();cn();H();me={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ti={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},un=(0,ln.createSlice)({name:"transactionsSlice",initialState:me,reducers:{moveTransactionsToSignedState:(t,e)=>{var l,m;let{sessionId:r,transactions:n,errorMessage:o,status:i,redirectRoute:a}=e.payload,p=((l=t.customTransactionInformationForSessionId)==null?void 0:l[r])||ti;t.signedTransactions[r]={transactions:n,status:i,errorMessage:o,redirectRoute:a,customTransactionInformation:p},((m=t==null?void 0:t.transactionsToSign)==null?void 0:m.sessionId)===r&&(t.transactionsToSign=me.transactionsToSign)},clearSignedTransaction:(t,e)=>{t.signedTransactions[e.payload]&&delete t.signedTransactions[e.payload]},clearTransactionToSign:t=>{t!=null&&t.transactionsToSign&&(t.transactionsToSign=null)},updateSignedTransaction:(t,e)=>{t.signedTransactions=T(T({},t.signedTransactions),e.payload)},updateSignedTransactions:(t,e)=>{let{sessionId:r,status:n,errorMessage:o,transactions:i}=e.payload;t.signedTransactions[r]!=null&&(t.signedTransactions[r].status=n,o!=null&&(t.signedTransactions[r].errorMessage=o),i!=null&&(t.signedTransactions[r].transactions=i))},updateSignedTransactionStatus:(t,e)=>{var p,l,m,h,y,S;let{sessionId:r,status:n,errorMessage:o,transactionHash:i}=e.payload,a=(l=(p=t.signedTransactions)==null?void 0:p[r])==null?void 0:l.transactions;if(a!=null){t.signedTransactions[r].transactions=a.map(C=>C.hash===i?v(T({},C),{status:n,errorMessage:o}):C);let b=(h=(m=t.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:h.every(C=>an(C.status)),M=(S=(y=t.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:S.every(C=>sn(C.status));b&&(t.signedTransactions[r].status="success"),M&&(t.signedTransactions[r].status="fail")}},setTransactionsToSign:(t,e)=>{t.transactionsToSign=e.payload;let{sessionId:r,customTransactionInformation:n}=e.payload;t.customTransactionInformationForSessionId[r]=n,t.signTransactionsError=null},clearAllTransactionsToSign:t=>{t.transactionsToSign=me.transactionsToSign,t.signTransactionsError=null},clearAllSignedTransactions:t=>{t.signedTransactions=me.signedTransactions},setSignTransactionsError:(t,e)=>{t.signTransactionsError=e.payload},setSignTransactionsCancelMessage:(t,e)=>{t.signTransactionsCancelMessage=e.payload}},extraReducers:t=>{t.addCase(A,()=>me),t.addCase(pn.REHYDRATE,(e,r)=>{var a;if(e.signTransactionsCancelMessage=null,!((a=r.payload)!=null&&a.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:o}=r.payload.transactions,i=Object.entries(n).reduce((p,[l,m])=>{let h=new Date(l),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(p[l]=m),p},{});o!=null&&(e.customTransactionInformationForSessionId=o),n!=null&&(e.signedTransactions=i)})}}),{updateSignedTransactionStatus:lc,updateSignedTransactions:pc,setTransactionsToSign:dn,clearAllTransactionsToSign:uc,clearAllSignedTransactions:dc,clearSignedTransaction:gc,clearTransactionToSign:mc,setSignTransactionsError:fc,setSignTransactionsCancelMessage:gn,moveTransactionsToSignedState:yc}=un.actions,qe=un.reducer});var se=f(()=>{"use strict";s();Re();_e();Me();Fe();Be();Ue();Ve();He()});var At=f(()=>{"use strict";s()});var wn,Sn,bn,sl,cl,ll,pl,ul,dl,In,vn=f(()=>{"use strict";s();wn=require("@reduxjs/toolkit");H();Sn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},bn=(0,wn.createSlice)({name:"dappModalsSlice",initialState:Sn,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=T({},e.payload)}},extraReducers:t=>{t.addCase(A,()=>Sn)}}),{setDappModalVisibility:sl,setDappModalHeaderVisibility:cl,setDappModalFooterVisibility:ll,setDappModalHeaderText:pl,setDappModalFooterText:ul,setDappModalConfig:dl}=bn.actions,In=bn.reducer});var An,ai,si,ee,Ke=f(()=>{"use strict";s();An=require("@reduxjs/toolkit");At();Re();vn();_e();Me();Fe();Be();Ue();Ve();He();ai={["account"]:Le,["dappModal"]:In,["loginInfo"]:Ce,["modals"]:Ne,["networkConfig"]:Pe,["signedMessageInfo"]:De,["toasts"]:Oe,["transactionsInfo"]:Ge,["transactions"]:qe},si=(t={})=>(0,An.combineReducers)(T(T({},ai),t)),ee=si});var Rn={};Y(Rn,{default:()=>bi,sessionStorageReducers:()=>kt});function W(t,e=[]){return{key:t,version:1,storage:En.default,blacklist:e}}var E,kn,En,ci,fe,li,pi,ui,di,gi,mi,fi,yi,hi,Ln,Ti,kt,xi,Si,wi,bi,Cn=f(()=>{"use strict";s();E=require("redux-persist"),kn=_(require("redux-persist/lib/storage")),En=_(require("redux-persist/lib/storage/session"));Ke();se();Re();_e();Me();Fe();Be();Ue();Ve();He();At();ci={persistReducersStorageType:"localStorage"},fe={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},li=W(fe["account"]),pi=W(fe["loginInfo"]),ui=W(fe["modals"]),di=W(fe["networkConfig"]),gi={2:t=>v(T({},t),{networkConfig:St})};mi=W("sdk-dapp-transactionsInfo"),fi=W("sdk-dapp-transactions",["transactionsToSign"]),yi=W("sdk-dapp-toasts"),hi=W("sdk-dapp-signedMessageInfo"),Ln={key:"sdk-dapp-store",version:2,storage:kn.default,whitelist:Object.keys(fe),migrate:(0,E.createMigrate)(gi,{debug:!1})},Ti=v(T({},Ln),{whitelist:[]}),kt={["toasts"]:(0,E.persistReducer)(yi,Oe),["transactions"]:(0,E.persistReducer)(fi,qe),["transactionsInfo"]:(0,E.persistReducer)(mi,Ge),["signedMessageInfo"]:(0,E.persistReducer)(hi,De)},xi=v(T({},kt),{["account"]:(0,E.persistReducer)(li,Le),["loginInfo"]:(0,E.persistReducer)(pi,Ce),["modals"]:(0,E.persistReducer)(ui,Ne),["networkConfig"]:(0,E.persistReducer)(di,Pe)}),Si=ci.persistReducersStorageType==="localStorage",wi=Si?(0,E.persistReducer)(Ln,ee(kt)):(0,E.persistReducer)(Ti,ee(xi)),bi=wi});var _n={};Y(_n,{default:()=>Ii});var Ii,Nn=f(()=>{"use strict";s();Ke();Ii=ee()});var Mn={};Y(Mn,{default:()=>Ai});var R,vi,Ai,Pn=f(()=>{"use strict";s();R=require("redux-persist"),vi=[R.FLUSH,R.REHYDRATE,R.PAUSE,R.PERSIST,R.PURGE,R.REGISTER],Ai=vi});var Bn={};Y(Bn,{default:()=>Dn});function Dn(t){return(0,Fn.persistStore)(t)}var Fn,On=f(()=>{"use strict";s();Fn=require("redux-persist")});var Ei={};Y(Ei,{signTransactions:()=>ki});module.exports=le(Ei);s();var Jn=_(require("bignumber.js"));q();s();se();s();var mn=_(require("lodash.isequal")),ze=require("reselect");oe();var x=(0,ze.createSelectorCreator)(ze.defaultMemoize,mn.default),fn=(t,e)=>t!=""&&Boolean(e);var z=t=>t.account,ri=x(z,t=>t.address),It=x(z,ri,(t,e)=>e in t.accounts?t.accounts[e]:Ee),_c=x(z,It,(t,e)=>{let o=t,{accounts:r}=o,n=_t(o,["accounts"]);return v(T({},n),{account:e})}),yn=x(It,t=>t.balance),Nc=x(It,t=>{var e;return((e=t==null?void 0:t.nonce)==null?void 0:e.valueOf())||0}),Mc=x(z,t=>t.shard),Pc=x(z,t=>t.ledgerAccount),Fc=x(z,t=>t.walletConnectAccount),Dc=x(z,t=>t.isAccountLoading),Bc=x(z,t=>t.accountLoadingError),Oc=x(z,t=>t.websocketEvent);s();var $=t=>t.networkConfig,hn=x($,t=>t.chainID),Vc=x($,t=>t.network.walletConnectBridgeAddress),qc=x($,t=>t.network.walletConnectV2RelayAddress),Hc=x($,t=>t.network.walletConnectV2ProjectId),zc=x($,t=>t.network.walletConnectV2Options),jc=x($,t=>t.network.walletConnectDeepLink),vt=x($,t=>t.network),Wc=x(vt,t=>t.apiAddress),Kc=x(vt,t=>t.explorerAddress),Yc=x(vt,t=>t.egldLabel);se();s();var Et=require("@reduxjs/toolkit"),qn=require("react-redux/lib/utils/Subscription");se();s();var Tn=_(require("lodash.throttle"));q();se();ht();Ae();ue();var ni=[Ie],je=!1,oi=(0,Tn.default)(()=>{ge(de())},5e3),xn=t=>e=>r=>{var l;if(ni.includes(r.type))return e(r);let n=t.getState(),o=ae.local.getItem(Z.loginExpiresAt);if(!fn((l=n==null?void 0:n.loginInfo)==null?void 0:l.loginMethod,n==null?void 0:n.account.address))return e(r);if(o==null)return ge(de());let a=Date.now();return o-a<0&&!je?setTimeout(()=>{je=!0,t.dispatch(Or())},1e3):(je&&(je=!1),oi()),e(r)};s();s();function We(){return typeof sessionStorage!="undefined"}var Un=We()?(Cn(),le(Rn)).default:(Nn(),le(_n)).default,Gn=We()?(Pn(),le(Mn)).default:[],Vn=We()?(On(),le(Bn)).default:t=>t;Ke();var j=(0,Et.configureStore)({reducer:Un,middleware:t=>t({serializableCheck:{ignoredActions:[...Gn,Pr.type,Mr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(xn)}),Hl=(0,qn.createSubscription)(j),zl=Vn(j),jl=(0,Et.configureStore)({reducer:ee});oe();s();var Hn=_(require("bignumber.js"));q();var Ye=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===ie;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,o=new Hn.default(n);return o.toString(10)===n&&o.comparedTo(0)>=0};s();var Lt=_(require("bignumber.js"));q();s();var N=require("@multiversx/sdk-core"),Kn=require("@multiversx/sdk-network-providers");q();s();s();var zn=_(require("bignumber.js")),jn=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new zn.default(r),o=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=o};s();q();s();var Wn={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Yn({minGasLimit:t=String(be),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:o,gasPriceModifier:i,defaultGasPrice:a=String(Sr),chainId:p}){let l=n||"",m=jn(e)?e:t,h=Ye(r)?r:a,y=new N.Transaction({nonce:0,value:N.TokenPayment.egldFromAmount("0"),receiver:new N.Address(Wn.to),sender:new N.Address(Wn.to),gasPrice:parseInt(h),gasLimit:parseInt(m),data:new N.TransactionPayload(l.trim()),chainID:p,version:new N.TransactionVersion(1)}),S=new Kn.NetworkConfig;S.MinGasLimit=parseInt(t),S.GasPerDataByte=parseInt(o),S.GasPriceModifier=parseFloat(i);try{return y.computeFee(S).toString(10)}catch(b){return ie}}function Xn(t,e){let r=new Lt.default(0);return t.forEach(n=>{let o=Yn({gasPerDataByte:String(xr),gasPriceModifier:String(Tr),minGasLimit:String(e),gasLimit:n.getGasLimit().valueOf().toString(),gasPrice:n.getGasPrice().valueOf().toString(),data:n.getData().toString(),chainId:n.getChainID().valueOf()});r=r.plus(new Lt.default(o))}),r}function ki(i){return Mt(this,arguments,function*({transactions:t,callbackRoute:e,minGasLimit:r=be,customTransactionInformation:n,transactionsDisplayInfo:o}){let a=j.getState(),p=Date.now().toString(),l=yn(a),m=hn(a),h=Array.isArray(t)?t:[t],y=Xn(h,r);if(!new Jn.default(Ye(l)?l:"0").minus(y).isGreaterThan(0)){let K={type:"warning",iconClassName:"text-warning",title:"Insufficient EGLD funds",description:"Current EGLD balance cannot cover the transaction fees."};return j.dispatch(Tt(K)),{error:"insufficient funds",sessionId:null}}if(!(h==null?void 0:h.every(K=>K.getChainID().valueOf()===m.valueOf()))){let K={type:"warning",iconClassName:"text-warning",title:"Network change detected",description:"The application tried to change the transaction network"};return j.dispatch(Tt(K)),{error:"Invalid ChainID",sessionId:null}}let C={sessionId:p,callbackRoute:e,customTransactionInformation:n,transactions:h.map(K=>K.toPlainObject())};return j.dispatch(gn(null)),j.dispatch(dn(C)),j.dispatch(on({sessionId:p,transactionsDisplayInfo:o})),{sessionId:p}})}0&&(module.exports={signTransactions});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var He=Object.create;var G=Object.defineProperty;var Ve=Object.getOwnPropertyDescriptor;var We=Object.getOwnPropertyNames;var Ye=Object.getPrototypeOf,Xe=Object.prototype.hasOwnProperty;var Qe=(t,e)=>()=>(t&&(e=t(t=0)),e);var q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ze=(t,e)=>{for(var r in e)G(t,r,{get:e[r],enumerable:!0})},oe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of We(e))!Xe.call(t,i)&&i!==r&&G(t,i,{get:()=>e[i],enumerable:!(n=Ve(e,i))||n.enumerable});return t};var M=(t,e,r)=>(r=t!=null?He(Ye(t)):{},oe(e||!t||!t.__esModule?G(r,"default",{value:t,enumerable:!0}):r,t)),Ke=t=>oe(G({},"__esModule",{value:!0}),t);var ce=q(z=>{"use strict";l();z.byteLength=$e;z.toByteArray=rr;z.fromByteArray=ir;var I=[],v=[],Je=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,se=Y.length;C<se;++C)I[C]=Y[C],v[Y.charCodeAt(C)]=C;var C,se;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function le(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 $e(t){var e=le(t),r=e[0],n=e[1];return(r+n)*3/4-n}function er(t,e,r){return(e+r)*3/4-r}function rr(t){var e,r=le(t),n=r[0],i=r[1],a=new Je(er(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function tr(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function nr(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(tr(n));return i.join("")}function ir(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push(nr(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(I[e>>2]+I[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(I[e>>10]+I[e>>4&63]+I[e<<2&63]+"=")),i.join("")}});var ue=q(X=>{l();X.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,d=u>>1,g=-7,p=r?i-1:0,w=r?-1:1,b=t[e+p];for(p+=w,a=b&(1<<-g)-1,b>>=-g,g+=c;g>0;a=a*256+t[e+p],p+=w,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=w,g-=8);if(a===0)a=1-d;else{if(a===u)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};X.write=function(t,e,r,n,i,a){var o,c,u,d=a*8-i-1,g=(1<<d)-1,p=g>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,F=n?1:-1,je=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=w/u:e+=w*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=g?(c=0,o=g):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=c&255,b+=F,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;t[r+b]=o&255,b+=F,o/=256,d-=8);t[r+b-F]|=je*128}});var ke=q(P=>{"use strict";l();var Q=ce(),U=ue(),pe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=ur;P.INSPECT_MAX_BYTES=50;var j=2147483647;P.kMaxLength=j;s.TYPED_ARRAY_SUPPORT=ar();!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 ar(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function S(t){if(t>j)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(t)}return fe(t,e,r)}s.poolSize=8192;function fe(t,e,r){if(typeof t=="string")return sr(t,e);if(ArrayBuffer.isView(t))return lr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return K(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=cr(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 fe(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function me(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 or(t,e,r){return me(t),t<=0?S(t):e!==void 0?typeof r=="string"?S(t).fill(e,r):S(t).fill(e):S(t)}s.alloc=function(t,e,r){return or(t,e,r)};function $(t){return me(t),S(t<0?0:ee(t)|0)}s.allocUnsafe=function(t){return $(t)};s.allocUnsafeSlow=function(t){return $(t)};function sr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=he(t,e)|0,n=S(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Z(t){for(var e=t.length<0?0:ee(t.length)|0,r=S(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function lr(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return K(e.buffer,e.byteOffset,e.byteLength)}return Z(t)}function K(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function cr(t){if(s.isBuffer(t)){var e=ee(t.length)|0,r=S(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||re(t.length)?S(0):Z(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Z(t.data)}function ee(t){if(t>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return t|0}function ur(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 he(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ve(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=he;function pr(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 Tr(this,e,r);case"utf8":case"utf-8":return xe(this,e,r);case"ascii":return wr(this,e,r);case"latin1":case"binary":return br(this,e,r);case"base64":return yr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function D(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)D(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)D(this,r,r+3),D(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)D(this,r,r+7),D(this,r+1,r+6),D(this,r+2,r+5),D(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?xe(this,0,e):pr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};pe&&(s.prototype[pe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),d=this.slice(i,a),g=e.slice(r,n),p=0;p<u;++p)if(d[p]!==g[p]){o=d[p],c=g[p];break}return o<c?-1:c<o?1:0};function ye(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,re(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:de(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):de(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function de(t,e,r,n,i){var a=1,o=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,c/=2,r/=2}function u(b,F){return a===1?b[F]:b.readUInt16BE(F*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(u(t,d)===u(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){for(var p=!0,w=0;w<c;w++)if(u(t,d+w)!==u(e,w)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return ye(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return ye(this,e,r,n,!1)};function dr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(re(c))return o;t[r+o]=c}return o}function gr(t,e,r,n){return H(J(e,t.length-r),t,r,n)}function fr(t,e,r,n){return H(_r(e),t,r,n)}function mr(t,e,r,n){return H(ve(e),t,r,n)}function hr(t,e,r,n){return H(Er(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 dr(this,e,r,n);case"utf8":case"utf-8":return gr(this,e,r,n);case"ascii":case"latin1":case"binary":return fr(this,e,r,n);case"base64":return mr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hr(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 yr(t,e,r){return e===0&&r===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,r))}function xe(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,d,g,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(p=(a&15)<<12|(u&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],d=t[i+2],g=t[i+3],(u&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(u&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return xr(n)}var ge=4096;function xr(t){var e=t.length;if(e<=ge)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ge));return r}function wr(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 br(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 Tr(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+=Ar[t[a]];return i}function vr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!1,52,8)};function T(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function we(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 be(t,e,r,n,i){return e=+e,r=r>>>0,i||we(t,e,r,4,34028234663852886e22,-34028234663852886e22),U.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return be(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return be(this,e,r,!1,n)};function Te(t,e,r,n,i){return e=+e,r=r>>>0,i||we(t,e,r,8,17976931348623157e292,-17976931348623157e292),U.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Te(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Te(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var kr=/[^+/0-9A-Za-z-_]/g;function Ir(t){if(t=t.split("=")[0],t=t.trim().replace(kr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function _r(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Er(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 ve(t){return Q.toByteArray(Ir(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function re(t){return t!==t}var Ar=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Re=q((Ur,Ae)=>{l();var y=Ae.exports={},E,A;function te(){throw new Error("setTimeout has not been defined")}function ne(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=te}catch(t){E=te}try{typeof clearTimeout=="function"?A=clearTimeout:A=ne}catch(t){A=ne}})();function Ie(t){if(E===setTimeout)return setTimeout(t,0);if((E===te||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function Rr(t){if(A===clearTimeout)return clearTimeout(t);if((A===ne||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(e){try{return A.call(null,t)}catch(r){return A.call(this,t)}}}var L=[],O=!1,B,V=-1;function Sr(){!O||!B||(O=!1,B.length?L=B.concat(L):V=-1,L.length&&_e())}function _e(){if(!O){var t=Ie(Sr);O=!0;for(var e=L.length;e;){for(B=L,L=[];++V<e;)B&&B[V].run();V=-1,e=L.length}B=null,O=!1,Rr(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new Ee(t,e)),L.length===1&&!O&&Ie(_e)};function Ee(t,e){this.fun=t,this.array=e}Ee.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function N(){}y.on=N;y.addListener=N;y.once=N;y.off=N;y.removeListener=N;y.removeAllListeners=N;y.emit=N;y.prependListener=N;y.prependOnceListener=N;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Pr,l=Qe(()=>{f=M(ke()),m=M(Re()),Pr=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 Nr={};Ze(Nr,{calcTotalFee:()=>Lr});module.exports=Ke(Nr);l();var ae=M(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();l();l();var ie={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Se,egldLabel:tt}=ie["devnet"],{chainId:Le,egldLabel:nt}=ie["testnet"],{chainId:Ne,egldLabel:it}=ie["mainnet"];var at={["devnet"]:Se,["testnet"]:Le,["mainnet"]:Ne},ot={[Se]:"devnet",[Le]:"testnet",[Ne]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");var Fe=.01,Ce=1500,De=5e4,Be=1e9;var W="0";l();var k=require("@multiversx/sdk-core"),qe=require("@multiversx/sdk-network-providers");l();l();var Ue=M(require("bignumber.js")),Pe=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Ue.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();var Oe=M(require("bignumber.js"));var Me=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===W;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,i=new Oe.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};l();l();var Ge={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function ze({minGasLimit:t=String(De),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:a,defaultGasPrice:o=String(Be),chainId:c}){let u=n||"",d=Pe(e)?e:t,g=Me(r)?r:o,p=new k.Transaction({nonce:0,value:k.TokenPayment.egldFromAmount("0"),receiver:new k.Address(Ge.to),sender:new k.Address(Ge.to),gasPrice:parseInt(g),gasLimit:parseInt(d),data:new k.TransactionPayload(u.trim()),chainID:c,version:new k.TransactionVersion(1)}),w=new qe.NetworkConfig;w.MinGasLimit=parseInt(t),w.GasPerDataByte=parseInt(i),w.GasPriceModifier=parseFloat(a);try{return p.computeFee(w).toString(10)}catch(b){return W}}function Lr(t,e){let r=new ae.default(0);return t.forEach(n=>{let i=ze({gasPerDataByte:String(Ce),gasPriceModifier:String(Fe),minGasLimit:String(e),gasLimit:n.getGasLimit().valueOf().toString(),gasPrice:n.getGasPrice().valueOf().toString(),data:n.getData().toString(),chainId:n.getChainID().valueOf()});r=r.plus(new ae.default(i))}),r}0&&(module.exports={calcTotalFee});
|
|
1
|
+
"use strict";var He=Object.create;var G=Object.defineProperty;var Ve=Object.getOwnPropertyDescriptor;var We=Object.getOwnPropertyNames;var Ye=Object.getPrototypeOf,Xe=Object.prototype.hasOwnProperty;var Qe=(t,e)=>()=>(t&&(e=t(t=0)),e);var q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ze=(t,e)=>{for(var r in e)G(t,r,{get:e[r],enumerable:!0})},oe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of We(e))!Xe.call(t,i)&&i!==r&&G(t,i,{get:()=>e[i],enumerable:!(n=Ve(e,i))||n.enumerable});return t};var M=(t,e,r)=>(r=t!=null?He(Ye(t)):{},oe(e||!t||!t.__esModule?G(r,"default",{value:t,enumerable:!0}):r,t)),Ke=t=>oe(G({},"__esModule",{value:!0}),t);var ce=q(z=>{"use strict";l();z.byteLength=$e;z.toByteArray=rr;z.fromByteArray=ir;var I=[],v=[],Je=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(D=0,se=Y.length;D<se;++D)I[D]=Y[D],v[Y.charCodeAt(D)]=D;var D,se;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function le(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 $e(t){var e=le(t),r=e[0],n=e[1];return(r+n)*3/4-n}function er(t,e,r){return(e+r)*3/4-r}function rr(t){var e,r=le(t),n=r[0],i=r[1],a=new Je(er(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function tr(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function nr(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(tr(n));return i.join("")}function ir(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push(nr(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(I[e>>2]+I[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(I[e>>10]+I[e>>4&63]+I[e<<2&63]+"=")),i.join("")}});var ue=q(X=>{l();X.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,d=u>>1,g=-7,p=r?i-1:0,w=r?-1:1,b=t[e+p];for(p+=w,a=b&(1<<-g)-1,b>>=-g,g+=c;g>0;a=a*256+t[e+p],p+=w,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=w,g-=8);if(a===0)a=1-d;else{if(a===u)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};X.write=function(t,e,r,n,i,a){var o,c,u,d=a*8-i-1,g=(1<<d)-1,p=g>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,F=n?1:-1,je=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=w/u:e+=w*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=g?(c=0,o=g):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=c&255,b+=F,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;t[r+b]=o&255,b+=F,o/=256,d-=8);t[r+b-F]|=je*128}});var ke=q(P=>{"use strict";l();var Q=ce(),U=ue(),pe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=ur;P.INSPECT_MAX_BYTES=50;var j=2147483647;P.kMaxLength=j;s.TYPED_ARRAY_SUPPORT=ar();!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 ar(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function S(t){if(t>j)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(t)}return fe(t,e,r)}s.poolSize=8192;function fe(t,e,r){if(typeof t=="string")return sr(t,e);if(ArrayBuffer.isView(t))return lr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return K(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=cr(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 fe(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function me(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 or(t,e,r){return me(t),t<=0?S(t):e!==void 0?typeof r=="string"?S(t).fill(e,r):S(t).fill(e):S(t)}s.alloc=function(t,e,r){return or(t,e,r)};function $(t){return me(t),S(t<0?0:ee(t)|0)}s.allocUnsafe=function(t){return $(t)};s.allocUnsafeSlow=function(t){return $(t)};function sr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=he(t,e)|0,n=S(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Z(t){for(var e=t.length<0?0:ee(t.length)|0,r=S(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function lr(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return K(e.buffer,e.byteOffset,e.byteLength)}return Z(t)}function K(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function cr(t){if(s.isBuffer(t)){var e=ee(t.length)|0,r=S(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||re(t.length)?S(0):Z(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Z(t.data)}function ee(t){if(t>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return t|0}function ur(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 he(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ve(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=he;function pr(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 Tr(this,e,r);case"utf8":case"utf-8":return xe(this,e,r);case"ascii":return wr(this,e,r);case"latin1":case"binary":return br(this,e,r);case"base64":return yr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function C(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)C(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)C(this,r,r+3),C(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)C(this,r,r+7),C(this,r+1,r+6),C(this,r+2,r+5),C(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?xe(this,0,e):pr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};pe&&(s.prototype[pe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),d=this.slice(i,a),g=e.slice(r,n),p=0;p<u;++p)if(d[p]!==g[p]){o=d[p],c=g[p];break}return o<c?-1:c<o?1:0};function ye(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,re(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:de(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):de(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function de(t,e,r,n,i){var a=1,o=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,c/=2,r/=2}function u(b,F){return a===1?b[F]:b.readUInt16BE(F*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(u(t,d)===u(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){for(var p=!0,w=0;w<c;w++)if(u(t,d+w)!==u(e,w)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return ye(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return ye(this,e,r,n,!1)};function dr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(re(c))return o;t[r+o]=c}return o}function gr(t,e,r,n){return H(J(e,t.length-r),t,r,n)}function fr(t,e,r,n){return H(_r(e),t,r,n)}function mr(t,e,r,n){return H(ve(e),t,r,n)}function hr(t,e,r,n){return H(Er(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 dr(this,e,r,n);case"utf8":case"utf-8":return gr(this,e,r,n);case"ascii":case"latin1":case"binary":return fr(this,e,r,n);case"base64":return mr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hr(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 yr(t,e,r){return e===0&&r===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,r))}function xe(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,d,g,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(p=(a&15)<<12|(u&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],d=t[i+2],g=t[i+3],(u&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(u&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return xr(n)}var ge=4096;function xr(t){var e=t.length;if(e<=ge)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ge));return r}function wr(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 br(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 Tr(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+=Ar[t[a]];return i}function vr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),U.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),U.read(this,e,!1,52,8)};function T(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;T(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);T(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||T(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function we(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 be(t,e,r,n,i){return e=+e,r=r>>>0,i||we(t,e,r,4,34028234663852886e22,-34028234663852886e22),U.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return be(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return be(this,e,r,!1,n)};function Te(t,e,r,n,i){return e=+e,r=r>>>0,i||we(t,e,r,8,17976931348623157e292,-17976931348623157e292),U.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Te(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Te(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var kr=/[^+/0-9A-Za-z-_]/g;function Ir(t){if(t=t.split("=")[0],t=t.trim().replace(kr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function _r(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Er(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 ve(t){return Q.toByteArray(Ir(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function re(t){return t!==t}var Ar=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Re=q((Ur,Ae)=>{l();var y=Ae.exports={},E,A;function te(){throw new Error("setTimeout has not been defined")}function ne(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=te}catch(t){E=te}try{typeof clearTimeout=="function"?A=clearTimeout:A=ne}catch(t){A=ne}})();function Ie(t){if(E===setTimeout)return setTimeout(t,0);if((E===te||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function Rr(t){if(A===clearTimeout)return clearTimeout(t);if((A===ne||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(e){try{return A.call(null,t)}catch(r){return A.call(this,t)}}}var L=[],O=!1,B,V=-1;function Sr(){!O||!B||(O=!1,B.length?L=B.concat(L):V=-1,L.length&&_e())}function _e(){if(!O){var t=Ie(Sr);O=!0;for(var e=L.length;e;){for(B=L,L=[];++V<e;)B&&B[V].run();V=-1,e=L.length}B=null,O=!1,Rr(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new Ee(t,e)),L.length===1&&!O&&Ie(_e)};function Ee(t,e){this.fun=t,this.array=e}Ee.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function N(){}y.on=N;y.addListener=N;y.once=N;y.off=N;y.removeListener=N;y.removeAllListeners=N;y.emit=N;y.prependListener=N;y.prependOnceListener=N;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Pr,l=Qe(()=>{f=M(ke()),m=M(Re()),Pr=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 Nr={};Ze(Nr,{calcTotalFee:()=>Lr});module.exports=Ke(Nr);l();var ae=M(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();l();l();var ie={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Se,egldLabel:tt}=ie["devnet"],{chainId:Le,egldLabel:nt}=ie["testnet"],{chainId:Ne,egldLabel:it}=ie["mainnet"];var at={["devnet"]:Se,["testnet"]:Le,["mainnet"]:Ne},ot={[Se]:"devnet",[Le]:"testnet",[Ne]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");var Fe=.01,De=1500,Ce=5e4,Be=1e9;var W="0";l();var k=require("@multiversx/sdk-core"),qe=require("@multiversx/sdk-network-providers");l();l();var Ue=M(require("bignumber.js")),Pe=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Ue.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();var Oe=M(require("bignumber.js"));var Me=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split(".");if(r)for(;r.charAt(r.length-1)===W;)r=r.slice(0,-1);let n=r?[e,r].join("."):e,i=new Oe.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};l();l();var Ge={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function ze({minGasLimit:t=String(Ce),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:a,defaultGasPrice:o=String(Be),chainId:c}){let u=n||"",d=Pe(e)?e:t,g=Me(r)?r:o,p=new k.Transaction({nonce:0,value:k.TokenPayment.egldFromAmount("0"),receiver:new k.Address(Ge.to),sender:new k.Address(Ge.to),gasPrice:parseInt(g),gasLimit:parseInt(d),data:new k.TransactionPayload(u.trim()),chainID:c,version:new k.TransactionVersion(1)}),w=new qe.NetworkConfig;w.MinGasLimit=parseInt(t),w.GasPerDataByte=parseInt(i),w.GasPriceModifier=parseFloat(a);try{return p.computeFee(w).toString(10)}catch(b){return W}}function Lr(t,e){let r=new ae.default(0);return t.forEach(n=>{let i=ze({gasPerDataByte:String(De),gasPriceModifier:String(Fe),minGasLimit:String(e),gasLimit:n.getGasLimit().valueOf().toString(),gasPrice:n.getGasPrice().valueOf().toString(),data:n.getData().toString(),chainId:n.getChainID().valueOf()});r=r.plus(new ae.default(i))}),r}0&&(module.exports={calcTotalFee});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|