@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 zs=Object.create;var gt=Object.defineProperty,Ks=Object.defineProperties,Ys=Object.getOwnPropertyDescriptor,Zs=Object.getOwnPropertyDescriptors,Xs=Object.getOwnPropertyNames,Dt=Object.getOwnPropertySymbols,Js=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable;var Nn=(e,t,r)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))Lr.call(t,r)&&Nn(e,r,t[r]);if(Dt)for(var r of Dt(t))Dn.call(t,r)&&Nn(e,r,t[r]);return e},k=(e,t)=>Ks(e,Zs(t));var Cr=(e,t)=>{var r={};for(var o in e)Lr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Dt)for(var o of Dt(e))t.indexOf(o)<0&&Dn.call(e,o)&&(r[o]=e[o]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var Rt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fe=(e,t)=>{for(var r in t)gt(e,r,{get:t[r],enumerable:!0})},Rn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Xs(t))!Lr.call(e,i)&&i!==r&>(e,i,{get:()=>t[i],enumerable:!(o=Ys(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?zs(Js(e)):{},Rn(t||!e||!e.__esModule?gt(r,"default",{value:e,enumerable:!0}):r,e)),ft=e=>Rn(gt({},"__esModule",{value:!0}),e);var S=(e,t,r)=>new Promise((o,i)=>{var l=d=>{try{m(r.next(d))}catch(g){i(g)}},p=d=>{try{m(r.throw(d))}catch(g){i(g)}},m=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,p);m((r=r.apply(e,t)).next())});var On=Rt(Mt=>{"use strict";n();Mt.byteLength=ea;Mt.toByteArray=ra;Mt.fromByteArray=ia;var le=[],ne=[],Qs=typeof Uint8Array!="undefined"?Uint8Array:Array,Pr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ue=0,Mn=Pr.length;Ue<Mn;++Ue)le[Ue]=Pr[Ue],ne[Pr.charCodeAt(Ue)]=Ue;var Ue,Mn;ne["-".charCodeAt(0)]=62;ne["_".charCodeAt(0)]=63;function _n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function ea(e){var t=_n(e),r=t[0],o=t[1];return(r+o)*3/4-o}function ta(e,t,r){return(t+r)*3/4-r}function ra(e){var t,r=_n(e),o=r[0],i=r[1],l=new Qs(ta(e,o,i)),p=0,m=i>0?o-4:o,d;for(d=0;d<m;d+=4)t=ne[e.charCodeAt(d)]<<18|ne[e.charCodeAt(d+1)]<<12|ne[e.charCodeAt(d+2)]<<6|ne[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=ne[e.charCodeAt(d)]<<2|ne[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=ne[e.charCodeAt(d)]<<10|ne[e.charCodeAt(d+1)]<<4|ne[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function na(e){return le[e>>18&63]+le[e>>12&63]+le[e>>6&63]+le[e&63]}function oa(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(na(o));return i.join("")}function ia(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,m=r-o;p<m;p+=l)i.push(oa(e,p,p+l>m?m:p+l));return o===1?(t=e[r-1],i.push(le[t>>2]+le[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(le[t>>10]+le[t>>4&63]+le[t<<2&63]+"=")),i.join("")}});var Fn=Rt(Nr=>{n();Nr.read=function(e,t,r,o,i){var l,p,m=i*8-o-1,d=(1<<m)-1,g=d>>1,T=-7,f=r?i-1:0,b=r?-1:1,C=e[t+f];for(f+=b,l=C&(1<<-T)-1,C>>=-T,T+=m;T>0;l=l*256+e[t+f],f+=b,T-=8);for(p=l&(1<<-T)-1,l>>=-T,T+=o;T>0;p=p*256+e[t+f],f+=b,T-=8);if(l===0)l=1-g;else{if(l===d)return p?NaN:(C?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(C?-1:1)*p*Math.pow(2,l-o)};Nr.write=function(e,t,r,o,i,l){var p,m,d,g=l*8-i-1,T=(1<<g)-1,f=T>>1,b=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=o?0:l-1,I=o?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=T):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+f>=1?t+=b/d:t+=b*Math.pow(2,1-f),t*d>=2&&(p++,d/=2),p+f>=T?(m=0,p=T):p+f>=1?(m=(t*d-1)*Math.pow(2,i),p=p+f):(m=t*Math.pow(2,f-1)*Math.pow(2,i),p=0));i>=8;e[r+C]=m&255,C+=I,m/=256,i-=8);for(p=p<<i|m,g+=i;g>0;e[r+C]=p&255,C+=I,p/=256,g-=8);e[r+C-I]|=v*128}});var Zn=Rt(Ye=>{"use strict";n();var Dr=On(),Ke=Fn(),Un=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ye.Buffer=u;Ye.SlowBuffer=ua;Ye.INSPECT_MAX_BYTES=50;var _t=2147483647;Ye.kMaxLength=_t;u.TYPED_ARRAY_SUPPORT=sa();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function sa(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function xe(e){if(e>_t)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Or(e)}return Vn(e,t,r)}u.poolSize=8192;function Vn(e,t,r){if(typeof e=="string")return ca(e,t);if(ArrayBuffer.isView(e))return la(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(pe(e,ArrayBuffer)||e&&pe(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(pe(e,SharedArrayBuffer)||e&&pe(e.buffer,SharedArrayBuffer)))return Mr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=pa(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return Vn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Wn(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function aa(e,t,r){return Wn(e),e<=0?xe(e):t!==void 0?typeof r=="string"?xe(e).fill(t,r):xe(e).fill(t):xe(e)}u.alloc=function(e,t,r){return aa(e,t,r)};function Or(e){return Wn(e),xe(e<0?0:Fr(e)|0)}u.allocUnsafe=function(e){return Or(e)};u.allocUnsafeSlow=function(e){return Or(e)};function ca(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Gn(e,t)|0,o=xe(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Rr(e){for(var t=e.length<0?0:Fr(e.length)|0,r=xe(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function la(e){if(pe(e,Uint8Array)){var t=new Uint8Array(e);return Mr(t.buffer,t.byteOffset,t.byteLength)}return Rr(e)}function Mr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function pa(e){if(u.isBuffer(e)){var t=Fr(e.length)|0,r=xe(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ur(e.length)?xe(0):Rr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Rr(e.data)}function Fr(e){if(e>=_t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_t.toString(16)+" bytes");return e|0}function ua(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(pe(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),pe(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(pe(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Gn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||pe(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _r(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Yn(e).length;default:if(i)return o?-1:_r(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Gn;function da(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return va(this,t,r);case"utf8":case"utf-8":return jn(this,t,r);case"ascii":return Sa(this,t,r);case"latin1":case"binary":return wa(this,t,r);case"base64":return ha(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Aa(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function Be(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)Be(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)Be(this,r,r+3),Be(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)Be(this,r,r+7),Be(this,r+1,r+6),Be(this,r+2,r+5),Be(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?jn(this,0,t):da.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=Ye.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Un&&(u.prototype[Un]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(pe(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,m=o-r,d=Math.min(p,m),g=this.slice(i,l),T=t.slice(r,o),f=0;f<d;++f)if(g[f]!==T[f]){p=g[f],m=T[f];break}return p<m?-1:m<p?1:0};function Hn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ur(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:Bn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Bn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Bn(e,t,r,o,i){var l=1,p=e.length,m=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,m/=2,r/=2}function d(C,I){return l===1?C[I]:C.readUInt16BE(I*l)}var g;if(i){var T=-1;for(g=r;g<p;g++)if(d(e,g)===d(t,T===-1?0:g-T)){if(T===-1&&(T=g),g-T+1===m)return T*l}else T!==-1&&(g-=g-T),T=-1}else for(r+m>p&&(r=p-m),g=r;g>=0;g--){for(var f=!0,b=0;b<m;b++)if(d(e,g+b)!==d(t,b)){f=!1;break}if(f)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Hn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Hn(this,t,r,o,!1)};function ma(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var m=parseInt(t.substr(p*2,2),16);if(Ur(m))return p;e[r+p]=m}return p}function ga(e,t,r,o){return Ot(_r(t,e.length-r),e,r,o)}function fa(e,t,r,o){return Ot(ka(t),e,r,o)}function Ta(e,t,r,o){return Ot(Yn(t),e,r,o)}function ya(e,t,r,o){return Ot(Ea(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return ma(this,t,r,o);case"utf8":case"utf-8":return ga(this,t,r,o);case"ascii":case"latin1":case"binary":return fa(this,t,r,o);case"base64":return Ta(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ya(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ha(e,t,r){return t===0&&r===e.length?Dr.fromByteArray(e):Dr.fromByteArray(e.slice(t,r))}function jn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,m=l>239?4:l>223?3:l>191?2:1;if(i+m<=r){var d,g,T,f;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(f=(l&31)<<6|d&63,f>127&&(p=f));break;case 3:d=e[i+1],g=e[i+2],(d&192)===128&&(g&192)===128&&(f=(l&15)<<12|(d&63)<<6|g&63,f>2047&&(f<55296||f>57343)&&(p=f));break;case 4:d=e[i+1],g=e[i+2],T=e[i+3],(d&192)===128&&(g&192)===128&&(T&192)===128&&(f=(l&15)<<18|(d&63)<<12|(g&63)<<6|T&63,f>65535&&f<1114112&&(p=f))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=m}return xa(o)}var $n=4096;function xa(e){var t=e.length;if(t<=$n)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=$n));return r}function Sa(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function wa(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function va(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=La[e[l]];return i}function Aa(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function F(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||F(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||F(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||F(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||F(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||F(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||F(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||F(t,4,this.length),Ke.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||F(t,4,this.length),Ke.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||F(t,8,this.length),Ke.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||F(t,8,this.length),Ke.read(this,t,!1,52,8)};function K(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;K(this,t,r,o,l,0)}var p=1,m=0;for(this[r]=t&255;++m<o&&(p*=256);)this[r+m]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;K(this,t,r,o,l,0)}var p=o-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);K(this,t,r,o,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<o&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);K(this,t,r,o,l-1,-l)}var p=o-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function qn(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function zn(e,t,r,o,i){return t=+t,r=r>>>0,i||qn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Ke.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return zn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return zn(this,t,r,!1,o)};function Kn(e,t,r,o,i){return t=+t,r=r>>>0,i||qn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Ke.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return Kn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return Kn(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var m=u.isBuffer(t)?t:u.from(t,i),d=m.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=m[p%d]}return this};var Ia=/[^+/0-9A-Za-z-_]/g;function ba(e){if(e=e.split("=")[0],e=e.trim().replace(Ia,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function _r(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function ka(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Ea(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function Yn(e){return Dr.toByteArray(ba(e))}function Ot(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function pe(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ur(e){return e!==e}var La=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var to=Rt((Nl,eo)=>{n();var R=eo.exports={},ue,de;function Br(){throw new Error("setTimeout has not been defined")}function $r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ue=setTimeout:ue=Br}catch(e){ue=Br}try{typeof clearTimeout=="function"?de=clearTimeout:de=$r}catch(e){de=$r}})();function Xn(e){if(ue===setTimeout)return setTimeout(e,0);if((ue===Br||!ue)&&setTimeout)return ue=setTimeout,setTimeout(e,0);try{return ue(e,0)}catch(t){try{return ue.call(null,e,0)}catch(r){return ue.call(this,e,0)}}}function Ca(e){if(de===clearTimeout)return clearTimeout(e);if((de===$r||!de)&&clearTimeout)return de=clearTimeout,clearTimeout(e);try{return de(e)}catch(t){try{return de.call(null,e)}catch(r){return de.call(this,e)}}}var Se=[],Ze=!1,$e,Ft=-1;function Pa(){!Ze||!$e||(Ze=!1,$e.length?Se=$e.concat(Se):Ft=-1,Se.length&&Jn())}function Jn(){if(!Ze){var e=Xn(Pa);Ze=!0;for(var t=Se.length;t;){for($e=Se,Se=[];++Ft<t;)$e&&$e[Ft].run();Ft=-1,t=Se.length}$e=null,Ze=!1,Ca(e)}}R.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Se.push(new Qn(e,t)),Se.length===1&&!Ze&&Xn(Jn)};function Qn(e,t){this.fun=e,this.array=t}Qn.prototype.run=function(){this.fun.apply(null,this.array)};R.title="browser";R.browser=!0;R.env={};R.argv=[];R.version="";R.versions={};function we(){}R.on=we;R.addListener=we;R.once=we;R.off=we;R.removeListener=we;R.removeAllListeners=we;R.emit=we;R.prependListener=we;R.prependOnceListener=we;R.listeners=function(e){return[]};R.binding=function(e){throw new Error("process.binding is not supported")};R.cwd=function(){return"/"};R.chdir=function(e){throw new Error("process.chdir is not supported")};R.umask=function(){return 0}});var s,a,Dl,n=x(()=>{s=A(Zn()),a=A(to()),Dl=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var ro=x(()=>{"use strict";n()});var no=x(()=>{"use strict";n()});var oo=x(()=>{"use strict";n()});var io=x(()=>{"use strict";n()});var H=x(()=>{"use strict";n()});var so=x(()=>{"use strict";n()});var ao=x(()=>{"use strict";n()});var j=x(()=>{"use strict";n()});var co=x(()=>{"use strict";n()});var lo=x(()=>{"use strict";n()});var Z=x(()=>{"use strict";n();no();oo();io();H();so();ao();j();co();lo()});var Tt,po,Xl,uo,Jl,mo,Ql,ep,Na,yt=x(()=>{"use strict";n();Z();Tt={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:po,egldLabel:Xl}=Tt["devnet"],{chainId:uo,egldLabel:Jl}=Tt["testnet"],{chainId:mo,egldLabel:Ql}=Tt["mainnet"],ep={["devnet"]:po,["testnet"]:uo,["mainnet"]:mo},Na={[po]:"devnet",[uo]:"testnet",[mo]:"mainnet"}});var Vr=x(()=>{"use strict";n()});var go=x(()=>{"use strict";n()});var fo,Wr=x(()=>{"use strict";n();fo="transaction-status-toast-id"});var me,To=x(()=>{"use strict";n();me=require("@multiversx/sdk-web-wallet-provider")});var Gr,Hr,yo,ho,Ut,xo,Xe,M=x(()=>{"use strict";n();ro();yt();Vr();go();Wr();To();Gr=5e4,Hr=1e9,yo=1,ho=1,Ut="logout",xo="login",Xe="0"});var Je,Bt=x(()=>{"use strict";n();Je=()=>Date.now()/1e3});var So=x(()=>{"use strict";n()});var wo=x(()=>{"use strict";n()});var vo=x(()=>{"use strict";n();Bt();So();wo()});var qr={};Fe(qr,{getItem:()=>Ra,localStorageKeys:()=>se,removeItem:()=>Ma,setItem:()=>Da});var se,jr,Da,Ra,Ma,Qe=x(()=>{"use strict";n();vo();se={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},jr=typeof localStorage!="undefined",Da=({key:e,data:t,expires:r})=>{!jr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ra=e=>{if(!jr)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Je()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Ma=e=>{!jr||localStorage.removeItem(String(e))}});var zr={};Fe(zr,{clear:()=>ko,getItem:()=>Io,removeItem:()=>bo,setItem:()=>Ao,storage:()=>_a});var Ao,Io,bo,ko,_a,Eo=x(()=>{"use strict";n();Ao=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Io=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},bo=e=>sessionStorage.removeItem(String(e)),ko=()=>sessionStorage.clear(),_a={setItem:Ao,getItem:Io,removeItem:bo,clear:ko}});var ge,ht=x(()=>{"use strict";n();Qe();Eo();ge={session:zr,local:qr}});var Kr,_,X,q=x(()=>{"use strict";n();Kr=require("@reduxjs/toolkit");M();_=(0,Kr.createAction)(Ut),X=(0,Kr.createAction)(xo,e=>({payload:e}))});var Zr,Lo,Co,$t,Yr,Po,et,Pp,Xr,Np,No,Dp,Rp,tt,Do,Mp,Vt,Wt=x(()=>{"use strict";n();Zr=require("@multiversx/sdk-core"),Lo=require("@reduxjs/toolkit"),Co=require("redux-persist");M();ht();Qe();q();$t={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Xe},Yr={address:"",websocketEvent:null,accounts:{"":$t},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Po=(0,Lo.createSlice)({name:"accountInfoSlice",initialState:Yr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Zr.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:$t},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(_,()=>(ge.local.removeItem(se.loginExpiresAt),Yr)),e.addCase(X,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Zr.Address(o).hex()}),e.addCase(Co.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:m}=o;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Yr.accounts,t.publicKey=m})}}),{setAccount:et,setAddress:Pp,setAccountNonce:Xr,setAccountShard:Np,setLedgerAccount:No,updateLedgerAccount:Dp,setWalletConnectAccount:Rp,setIsAccountLoading:tt,setAccountLoadingError:Do,setWebsocketEvent:Mp}=Po.actions,Vt=Po.reducer});function xt(){return new Date().setHours(new Date().getHours()+24)}function St(e){ge.local.setItem({key:se.loginExpiresAt,data:e,expires:e})}var Jr=x(()=>{"use strict";n();ht();Qe()});var Mo,Ro,_o,Hp,Gt,jp,Ee,qp,Qr,Oo,zp,Ht,jt=x(()=>{"use strict";n();Mo=require("@reduxjs/toolkit");Jr();H();q();Ro={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},_o=(0,Mo.createSlice)({name:"loginInfoSlice",initialState:Ro,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(_,()=>Ro),e.addCase(X,(t,r)=>{t.loginMethod=r.payload.loginMethod,St(xt())})}}),{setLoginMethod:Hp,setWalletConnectLogin:Gt,setLedgerLogin:jp,setTokenLogin:Ee,setTokenLoginSignature:qp,setWalletLogin:Qr,invalidateLoginSession:Oo,setLogoutRoute:zp}=_o.actions,Ht=_o.reducer});var Uo,Fo,Bo,Xp,Jp,Qp,eu,qt,zt=x(()=>{"use strict";n();Uo=require("@reduxjs/toolkit");q();Fo={},Bo=(0,Uo.createSlice)({name:"modalsSlice",initialState:Fo,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(_,()=>Fo)}}),{setTxSubmittedModal:Xp,setNotificationModal:Jp,clearTxSubmittedModal:Qp,clearNotificationModal:eu}=Bo.actions,qt=Bo.reducer});var $o,Vo,Kt,en=x(()=>{"use strict";n();$o=!1,Vo=(e=!0)=>{$o=e},Kt=(e,t=0)=>{$o||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});function Yt({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function",l=i?0:Oa;o&&e!=null&&setTimeout(()=>{if(i)return t(e,r);window.location.pathname.includes(e)||Kt(e)},l)}var Oa,Wo=x(()=>{"use strict";n();en();Oa=200});function tn(e){return e[Math.floor(Math.random()*e.length)]}var Go=x(()=>{"use strict";n()});var Ho=x(()=>{"use strict";n();Vr()});var Zt=x(()=>{"use strict";n();Wo();Go();Ho()});var jo,qo,rn,Fa,zo,fu,Ko,Xt,Jt=x(()=>{"use strict";n();jo=require("@reduxjs/toolkit"),qo=A(require("lodash.omit"));Zt();rn={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Fa={network:rn,chainID:"-1"},zo=(0,jo.createSlice)({name:"appConfig",initialState:Fa,reducers:{initializeNetworkConfig:(e,t)=>{let r=tn(t.payload.walletConnectBridgeAddresses),o=tn(t.payload.walletConnectV2RelayAddresses),i=(0,qo.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=k(h(h({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:fu,setChainID:Ko}=zo.actions,Xt=zo.reducer});var Yo,nn,Zo,wu,vu,Au,Qt,er=x(()=>{"use strict";n();Yo=require("@reduxjs/toolkit");Z();q();nn={isSigning:!1,signedSessions:{}},Zo=(0,Yo.createSlice)({name:"signedMessageInfoSliceState",initialState:nn,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return k(h({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:k(h({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>h(h({},e),t.payload),clearSignedMessageInfo:()=>nn},extraReducers:e=>{e.addCase(_,()=>nn)}}),{setSignSession:wu,clearSignedMessageInfo:vu,setSignSessionState:Au}=Zo.actions,Qt=Zo.reducer});var Jo,Qo,Xo,ei,Nu,Du,Ru,Mu,_u,Ou,tr,rr=x(()=>{"use strict";n();Jo=require("@reduxjs/toolkit"),Qo=require("redux-persist");Wr();Z();Bt();q();Xo={customToasts:[],transactionToasts:[],failTransactionToast:null},ei=(0,Jo.createSlice)({name:"toastsSlice",initialState:Xo,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(k(h({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Je(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=k(h({},t.payload),{toastId:fo})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(_,()=>Xo),e.addCase(Qo.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:Nu,removeCustomToast:Du,addTransactionToast:Ru,removeTransactionToast:Mu,addFailTransactionToast:_u,removeFailTransactionToast:Ou}=ei.actions,tr=ei.reducer});var ti,sn,an,cn,Ua,on,ri,$u,Vu,Wu,nr,or=x(()=>{"use strict";n();ti=require("@reduxjs/toolkit");q();sn="Transaction failed",an="Transaction successful",cn="Processing transaction",Ua="Transaction submitted",on={},ri=(0,ti.createSlice)({name:"transactionsInfo",initialState:on,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||sn,successMessage:(o==null?void 0:o.successMessage)||an,processingMessage:(o==null?void 0:o.processingMessage)||cn,submittedMessage:(o==null?void 0:o.submittedMessage)||Ua,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>on},extraReducers:e=>{e.addCase(_,()=>on)}}),{clearTransactionsInfo:$u,setTransactionsDisplayInfo:Vu,clearTransactionsInfoForSessionId:Wu}=ri.actions,nr=ri.reducer});function ni(e){return e!=null&&(za(e)||Xa(e))}function ir(e){return e!=null&&(Ka(e)||Ja(e))}function sr(e){return e!=null&&(Ya(e)||Qa(e))}function oi(e){return e!=null&&Za(e)}function za(e){return e!=null&&$a.includes(e)}function Ka(e){return e!=null&&Va.includes(e)}function Ya(e){return e!=null&&Wa.includes(e)}function Za(e){return e!=null&&Ga.includes(e)}function Xa(e){return e!=null&&Ha.includes(e)}function Ja(e){return e!=null&&ja.includes(e)}function Qa(e){return e!=null&&qa.includes(e)}var $a,Va,Wa,Ga,Ha,ja,qa,pn=x(()=>{"use strict";n();H();$a=["sent"],Va=["success"],Wa=["fail","cancelled","timedOut"],Ga=["timedOut"],Ha=["pending"],ja=["success"],qa=["fail","invalid"]});var ii,si,wt,ec,ai,Xu,Ju,Qu,ed,td,rd,nd,od,id,sd,ar,cr=x(()=>{"use strict";n();ii=require("@reduxjs/toolkit"),si=require("redux-persist");H();pn();q();wt={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ec={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ai=(0,ii.createSlice)({name:"transactionsSlice",initialState:wt,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,m=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||ec;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:m},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=wt.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=h(h({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,d,g,T,f,b;let{sessionId:r,status:o,errorMessage:i,transactionHash:l}=t.payload,p=(d=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(v=>v.hash===l?k(h({},v),{status:o,errorMessage:i}):v);let C=(T=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:T.every(v=>ir(v.status)),I=(b=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:b.every(v=>sr(v.status));C&&(e.signedTransactions[r].status="success"),I&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=wt.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=wt.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(_,()=>wt),e.addCase(si.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((m,[d,g])=>{let T=new Date(d),f=new Date;return f.setHours(f.getHours()+5),f-T>0||(m[d]=g),m},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Xu,updateSignedTransactions:Ju,setTransactionsToSign:Qu,clearAllTransactionsToSign:ed,clearAllSignedTransactions:td,clearSignedTransaction:rd,clearTransactionToSign:nd,setSignTransactionsError:od,setSignTransactionsCancelMessage:id,moveTransactionsToSignedState:sd}=ai.actions,ar=ai.reducer});var J=x(()=>{"use strict";n();Wt();jt();zt();Jt();er();rr();or();cr()});var Tn=x(()=>{"use strict";n()});var Pi,Ci,Ni,Jm,Qm,eg,tg,rg,ng,Di,Ri=x(()=>{"use strict";n();Pi=require("@reduxjs/toolkit");q();Ci={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Ni=(0,Pi.createSlice)({name:"dappModalsSlice",initialState:Ci,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=h({},t.payload)}},extraReducers:e=>{e.addCase(_,()=>Ci)}}),{setDappModalVisibility:Jm,setDappModalHeaderVisibility:Qm,setDappModalFooterVisibility:eg,setDappModalHeaderText:tg,setDappModalFooterText:rg,setDappModalConfig:ng}=Ni.actions,Di=Ni.reducer});var Mi,gc,fc,Ge,fr=x(()=>{"use strict";n();Mi=require("@reduxjs/toolkit");Tn();Wt();Ri();jt();zt();Jt();er();rr();or();cr();gc={["account"]:Vt,["dappModal"]:Di,["loginInfo"]:Ht,["modals"]:qt,["networkConfig"]:Xt,["signedMessageInfo"]:Qt,["toasts"]:tr,["transactionsInfo"]:nr,["transactions"]:ar},fc=(e={})=>(0,Mi.combineReducers)(h(h({},gc),e)),Ge=fc});var Ui={};Fe(Ui,{default:()=>Pc,sessionStorageReducers:()=>yn});function Pe(e,t=[]){return{key:e,version:1,storage:Oi.default,blacklist:t}}var ee,_i,Oi,Tc,It,yc,hc,xc,Sc,wc,vc,Ac,Ic,bc,Fi,kc,yn,Ec,Lc,Cc,Pc,Bi=x(()=>{"use strict";n();ee=require("redux-persist"),_i=A(require("redux-persist/lib/storage")),Oi=A(require("redux-persist/lib/storage/session"));fr();J();Wt();jt();zt();Jt();er();rr();or();cr();Tn();Tc={persistReducersStorageType:"localStorage"},It={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},yc=Pe(It["account"]),hc=Pe(It["loginInfo"]),xc=Pe(It["modals"]),Sc=Pe(It["networkConfig"]),wc={2:e=>k(h({},e),{networkConfig:rn})};vc=Pe("sdk-dapp-transactionsInfo"),Ac=Pe("sdk-dapp-transactions",["transactionsToSign"]),Ic=Pe("sdk-dapp-toasts"),bc=Pe("sdk-dapp-signedMessageInfo"),Fi={key:"sdk-dapp-store",version:2,storage:_i.default,whitelist:Object.keys(It),migrate:(0,ee.createMigrate)(wc,{debug:!1})},kc=k(h({},Fi),{whitelist:[]}),yn={["toasts"]:(0,ee.persistReducer)(Ic,tr),["transactions"]:(0,ee.persistReducer)(Ac,ar),["transactionsInfo"]:(0,ee.persistReducer)(vc,nr),["signedMessageInfo"]:(0,ee.persistReducer)(bc,Qt)},Ec=k(h({},yn),{["account"]:(0,ee.persistReducer)(yc,Vt),["loginInfo"]:(0,ee.persistReducer)(hc,Ht),["modals"]:(0,ee.persistReducer)(xc,qt),["networkConfig"]:(0,ee.persistReducer)(Sc,Xt)}),Lc=Tc.persistReducersStorageType==="localStorage",Cc=Lc?(0,ee.persistReducer)(Fi,Ge(yn)):(0,ee.persistReducer)(kc,Ge(Ec)),Pc=Cc});var $i={};Fe($i,{default:()=>Nc});var Nc,Vi=x(()=>{"use strict";n();fr();Nc=Ge()});var Wi={};Fe(Wi,{default:()=>Rc});var oe,Dc,Rc,Gi=x(()=>{"use strict";n();oe=require("redux-persist"),Dc=[oe.FLUSH,oe.REHYDRATE,oe.PAUSE,oe.PERSIST,oe.PURGE,oe.REGISTER],Rc=Dc});var qi={};Fe(qi,{default:()=>ji});function ji(e){return(0,Hi.persistStore)(e)}var Hi,zi=x(()=>{"use strict";n();Hi=require("redux-persist")});var bl={};Fe(bl,{ProviderInitializer:()=>Il});module.exports=ft(bl);n();var be=require("react"),Gs=require("@multiversx/sdk-extension-provider"),Hs=require("@multiversx/sdk-hw-provider"),js=require("@multiversx/sdk-opera-provider");n();n();n();var sl=A(require("axios"));n();n();J();n();var ci=A(require("lodash.isequal")),lr=require("reselect");Z();var y=(0,lr.createSelectorCreator)(lr.defaultMemoize,ci.default),vt=(e,t)=>e!=""&&Boolean(t);var Ae=e=>e.account,Ve=y(Ae,e=>e.address),rt=y(Ae,Ve,(e,t)=>t in e.accounts?e.accounts[t]:$t),tc=y(Ae,rt,(e,t)=>{let i=e,{accounts:r}=i,o=Cr(i,["accounts"]);return k(h({},o),{account:t})}),wd=y(rt,e=>e.balance),li=y(rt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),vd=y(Ae,e=>e.shard),pi=y(Ae,e=>e.ledgerAccount),Ad=y(Ae,e=>e.walletConnectAccount),Id=y(Ae,e=>e.isAccountLoading),bd=y(Ae,e=>e.accountLoadingError),rc=y(Ae,e=>e.websocketEvent);n();var ae=e=>e.loginInfo,ui=y(ae,e=>e.loginMethod),We=y(ae,Ve,(e,t)=>vt(e.loginMethod,t)),di=y(ae,e=>e.walletConnectLogin),mi=y(ae,e=>e.ledgerLogin),pr=y(ae,e=>e.walletLogin),Cd=y(ae,e=>e.isLoginSessionInvalid),ur=y(ae,e=>e.tokenLogin),gi=y(ae,e=>e.logoutRoute);n();var fi=e=>e.modals,Dd=y(fi,e=>e.txSubmittedModal),Rd=y(fi,e=>e.notificationModal);n();var Le=e=>e.networkConfig,Ti=y(Le,e=>e.chainID),yi=y(Le,e=>e.network.walletConnectBridgeAddress),hi=y(Le,e=>e.network.walletConnectV2RelayAddress),xi=y(Le,e=>e.network.walletConnectV2ProjectId),Si=y(Le,e=>e.network.walletConnectV2Options),dr=y(Le,e=>e.network.walletConnectDeepLink),Ce=y(Le,e=>e.network),un=y(Ce,e=>e.apiAddress),wi=y(Ce,e=>e.explorerAddress),Od=y(Ce,e=>e.egldLabel);n();var dn=e=>e.signedMessageInfo,Bd=y(dn,e=>e.isSigning),$d=y(dn,e=>e.errorMessage),Vd=y(dn,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var mn=e=>e.toasts,Hd=y(mn,e=>e.customToasts),jd=y(mn,e=>e.transactionToasts),qd=y(mn,e=>e.failTransactionToast);n();J();var vi={errorMessage:sn,successMessage:an,processingMessage:cn},nc=e=>e.transactionsInfo,Zd=y(nc,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||vi);n();n();var Q=require("@multiversx/sdk-core");M();n();function gn(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function nt(e){return atob(e)}function fn(e){var i,l,p;let{data:t}=e,r=gn(t!=null?t:"")?Q.TransactionPayload.fromEncoded(t):new Q.TransactionPayload(t),o=new Q.Transaction(h({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new Q.Address(e.receiver),sender:new Q.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Gr,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Hr,chainID:e.chainID.valueOf(),version:new Q.TransactionVersion((p=e.version)!=null?p:yo)},e.options?{options:new Q.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new Q.Address(e.sender)),o}n();pn();n();var ic=A(require("bignumber.js"));Z();n();n();n();n();var ac=require("@multiversx/sdk-core"),cc=A(require("bignumber.js"));H();n();var bi=require("@multiversx/sdk-core");function sc(e){try{let t=new bi.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function At(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&sc(e)}n();n();n();var pc=require("@multiversx/sdk-core/out");n();M();n();var ki=require("@multiversx/sdk-core");Z();n();n();n();n();H();n();n();var hn=require("@reduxjs/toolkit"),Xi=require("react-redux/lib/utils/Subscription");J();n();var Ei=A(require("lodash.throttle"));M();J();Jr();ht();Qe();var uc=[Ut],mr=!1,dc=(0,Ei.default)(()=>{St(xt())},5e3),Li=e=>t=>r=>{var d;if(uc.includes(r.type))return t(r);let o=e.getState(),i=ge.local.getItem(se.loginExpiresAt);if(!vt((d=o==null?void 0:o.loginInfo)==null?void 0:d.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return St(xt());let p=Date.now();return i-p<0&&!mr?setTimeout(()=>{mr=!0,e.dispatch(Oo())},1e3):(mr&&(mr=!1),dc()),t(r)};n();n();function gr(){return typeof sessionStorage!="undefined"}var Ki=gr()?(Bi(),ft(Ui)).default:(Vi(),ft($i)).default,Yi=gr()?(Gi(),ft(Wi)).default:[],Zi=gr()?(zi(),ft(qi)).default:e=>e;fr();var L=(0,hn.configureStore)({reducer:Ki,middleware:e=>e({serializableCheck:{ignoredActions:[...Yi,Xr.type,et.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Li)}),Ji=(0,Xi.createSubscription)(L),Mg=Zi(L),_g=(0,hn.configureStore)({reducer:Ge});n();n();n();n();n();n();var Qi="network/config";var Tr="accounts";var xn="blocks";n();n();n();n();j();n();n();j();n();n();n();var Bc=A(require("bignumber.js"));M();n();var Uc=require("@multiversx/sdk-core"),Sn=A(require("bignumber.js"));M();n();var Oc=A(require("bignumber.js"));n();Sn.default.config({ROUNDING_MODE:Sn.default.ROUND_FLOOR});n();n();n();M();n();n();n();n();M();n();M();n();var $c=require("@multiversx/sdk-core");M();n();var bt=require("@multiversx/sdk-core"),Wc=require("@multiversx/sdk-network-providers");M();n();n();var Vc=A(require("bignumber.js"));M();n();M();n();n();n();n();n();M();n();j();var Hc=["reDelegateRewards","claimRewards","unBond"],jc=["wrapEgld","unwrapEgld"],qc=["unStake"],zc=["unDelegate"];n();n();n();M();n();var Zc=A(require("bignumber.js"));n();n();n();j();n();var Xc=A(require("bignumber.js"));n();n();n();n();j();n();n();n();var Qc=A(require("linkifyjs"));n();M();n();var el=A(require("bignumber.js"));n();Z();n();n();H();n();H();n();n();n();j();n();j();n();var tl=A(require("bignumber.js"));M();j();n();j();n();var is=require("react");Z();n();n();j();n();var rl=require("@multiversx/sdk-core/out"),nl=A(require("bignumber.js"));j();n();j();n();n();H();var Sx=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var ss=require("react");Z();n();var il=require("react");j();var Ex=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var Sr=e=>e.transactions,kt=y(Sr,e=>e.signedTransactions),uS=y(Sr,e=>e.signTransactionsError),dS=y(Sr,e=>e.signTransactionsCancelMessage),wr=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),mS=y(kt,wr(ni)),gS=y(kt,wr(ir)),fS=y(kt,wr(sr)),TS=y(kt,wr(oi)),yS=y(Sr,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:k(h({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>fn(r)))||[]})}),hS=y(kt,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});n();var al=A(require("axios"));n();var ll=A(require("axios"));n();n();var pl=A(require("axios"));n();var ul=A(require("axios"));n();n();n();var cs=A(require("axios"));n();n();var vr=e=>{let t=e!=null?e:un(L.getState());return t.endsWith("/")?t.slice(0,-1):t};function ls(e){return S(this,null,function*(){if(!e)return null;let r=`${vr()}/${Tr}/${e}`;try{let{data:o}=yield cs.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}n();n();yt();n();var dl=A(require("axios"));n();var ps=A(require("axios"));function us(){return S(this,null,function*(){var r;let t=`${vr()}/${Qi}`;try{let{data:o}=yield ps.default.get(t);if(o!=null)return(r=o==null?void 0:o.data)==null?void 0:r.config}catch(o){console.error("error fetching configuration for ",t)}return null})}n();yt();n();yt();n();var ml=A(require("axios"));n();var Ns=require("react"),br=require("@multiversx/sdk-core");n();n();n();var ds=require("react"),ot=require("react-redux");var gl={store:L,subscription:Ji},vn=(0,ds.createContext)(gl),Hw=(0,ot.createStoreHook)(vn),fe=(0,ot.createDispatchHook)(vn),E=(0,ot.createSelectorHook)(vn);n();var An=()=>E(rt);n();n();n();n();n();var Et=A(require("react"));var iv=(0,Et.createContext)({}),sv=L.getState();n();var gs=A(require("react"));n();var In=A(require("react")),fl=A(require("axios"));n();n();n();n();n();var fs=require("@multiversx/sdk-extension-provider"),Ts=require("@multiversx/sdk-hw-provider"),ys=require("@multiversx/sdk-opera-provider"),hs=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),xs=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),bn=require("@multiversx/sdk-web-wallet-provider");M();H();var Tl="/dapp/init",it=e=>{switch(e==null?void 0:e.constructor){case bn.WalletProvider:return"wallet";case hs.WalletConnectProvider:return"walletconnect";case xs.WalletConnectV2Provider:return"walletconnectv2";case Ts.HWProvider:return"ledger";case fs.ExtensionProvider:return"extension";case ys.OperaProvider:return"opera";case Ar:return"";default:return"extra"}},Ss=e=>new bn.WalletProvider(`${e}${Tl}`),ws=e=>S(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let t=e.hwApp,{contractData:r,version:o}=yield t.getAppConfiguration();return{version:o,dataEnabled:r===ho}}),Ie=e=>`Unable to perform ${e}, Provider not initialized`,Ar=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Ie(`login with options: ${t}`))}logout(t){throw new Error(Ie(`logout with options: ${t}`))}getAddress(){throw new Error(Ie("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Ie(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Ie(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Ie(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Ie(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Ie(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Ie(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Lt=new Ar;var kn=Lt,vs=null;function Te(e){kn=e}function As(){vs!=null&&(kn=vs)}function te(){return kn||Lt}var Is=()=>{let e=te(),t=it(e);return{provider:e,providerType:t}};n();J();n();n();n();var yl=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),st=e=>yl(s.Buffer.from(e,"utf8").toString("base64"));n();var bs=A(require("axios"));var hl=4e4,En=null,at={current:null},Ln={current:!1};function ks(e){return S(this,null,function*(){if(e==null)throw new Error("missing api url");if(En!=null&&Date.now()<En&&at.current!=null)return at.current;{if(Ln.current)return yield Sl();Ln.current=!0,at.current=null;let r=yield xl(e);return at.current=r,En=Date.now()+hl,Ln.current=!1,r}})}function xl(e){return S(this,null,function*(){let{data:t}=yield bs.default.get(`${e}/${xn}?size=1&fields=hash,timestamp`),[r]=t;return r})}function Sl(){return S(this,null,function*(){return new Promise((e,t)=>{let r,o=setInterval(()=>{at.current!=null&&(e(at.current),clearInterval(o),clearTimeout(r))},50);r=setTimeout(()=>{clearInterval(o),t("could not generate new token")},1e4)})})}n();var Es,Ct={hostname:typeof window!="undefined"?(Es=window==null?void 0:window.location)==null?void 0:Es.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Pt=e=>{var r,o,i,l;return e===!0?Ct:{hostname:(r=e==null?void 0:e.hostname)!=null?r:Ct.hostname,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:Ct.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:Ct.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:Ct.tokenExpirationToastWarningSeconds}};n();n();n();function wl(e){return Object.prototype.toString.call(e)==="[object String]"}var Ir=e=>{if(!e||!wl(e))return null;try{let[t,r,o]=e.split("."),i=nt(t),l=nt(r),[p,m,d,g]=l.split("."),T=JSON.parse(nt(g)),f=nt(p),b={ttl:Number(d),address:i,extraInfo:T,host:f,signature:o,blockHash:m,body:l};return g==="e30"&&delete b.extraInfo,b}catch(t){return null}};var Ls=({address:e,token:t,signature:r})=>{let o=st(e),i=st(t);return`${o}.${i}.${r}`};n();Bt();var Cs=e=>{let t=Ir(e);if(!t)return{isExpired:!1};let r=Je(),{ttl:o,extraInfo:i}=t,l=i.timestamp;if(!l)return{isExpired:!1};let p=l+o,m=r>p,d=p-r;return{isExpired:m,expiresAt:p,secondsUntilExpires:d}};var Ps=e=>{let{hostname:t,apiAddress:r,expirySeconds:o}=Pt(e);return{getNativeAuthConfig:Pt,initialize:(...p)=>S(void 0,[...p],function*(l={}){let{hash:m,timestamp:d}=yield ks(r),g=st(JSON.stringify(h(h({},l),d?{timestamp:d}:{})));return`${st(t)}.${m}.${o}.${g}`}),getToken:Ls,getTokenExpiration:Cs}};n();var vl=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},ct=e=>{let t=E(Ce),r=E(ur),o=(0,Ns.useRef)(r==null?void 0:r.loginToken),i=vl(t.apiAddress,e),l=Pt(h(h({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),m=Ps(l),{address:d}=An(),g=fe(),T=I=>{o.current=I,g(Ee(h({loginToken:I},i?{nativeAuthConfig:l}:{})))},f=()=>S(void 0,null,function*(){try{return yield m.initialize()}catch(I){console.error("Unable to get block. Login failed.",I);return}}),b=({address:I,signature:v})=>{let U=o.current;if(!U)throw"Token not found. Call `setLoginToken` first.";if(!p){g(Ee({loginToken:U,signature:v}));return}let N=m.getToken({address:I,token:U,signature:v});g(Ee(h({loginToken:U,signature:v,nativeAuthToken:N},i?{nativeAuthConfig:l}:{})))};return{configuration:l,setLoginToken:T,getNativeAuthLoginToken:f,setTokenLoginInfo:b,refreshNativeAuthTokenLogin:v=>S(void 0,[v],function*({signMessageCallback:I}){let U=yield f();if(o.current=U,!U)return;let N=new br.SignableMessage({address:new br.Address(d),message:s.Buffer.from(U)}),re=yield I(N,{});b({address:d,signature:re.toJSON().signature})})}};n();var Me=require("react"),Ms=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");n();var kr=require("react");function lt(e,t=[]){let r=(0,kr.useRef)(!0);(0,kr.useEffect)(()=>{r.current?r.current=!1:e()},t)}q();J();H();n();n();function Ds(){let e=te();return it(e)}function ye(e){return Ds()===e}n();function De(){return We(L.getState())}Zt();n();q();Z();n();n();H();function Re(){let{search:e}=window.location,t=L.getState(),r=te(),o=Ve(t),i=We(t),l=pr(t);if(!r)throw"provider not initialized";return ye("ledger")&&i?new Promise(p=>{p(o)}):!ye("")&&!ye("wallet")&&!ye("extra")?r.getAddress():new Promise(p=>{if(l!=null){let m=new URLSearchParams(e),d=Object.fromEntries(m);At(d.address)&&p(d.address)}i&&p(o),p("")})}n();function Nt(e){return S(this,null,function*(){return yield ls(e)})}n();J();n();function Cn(e){let t=L.getState(),r=li(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();n();J();n();var Rs=require("@multiversx/sdk-core");n();q();Z();en();ht();Qe();var Al=e=>{let t=ge.local.getItem(se.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(ge.local.setItem({key:se.logoutEvent,data:e,expires:0}),ge.local.removeItem(se.logoutEvent))};function He(e,t,r=!0){return S(this,null,function*(){let o=te(),i=it(o),l=De(),p=i==="wallet";if(r&&(o==null?void 0:o.relogin)!=null)return yield o.relogin();if(!l||!o){Pn(e,t,!1);return}try{let m=yield Re();Al(m)}catch(m){Pn(e,t,!1),console.error("error fetching logout address",m)}p&&Vo(),L.dispatch(_());try{let d=p&&!e?window.location.origin:e;p?setTimeout(()=>{o.logout({callbackUrl:d})}):(yield o.logout({callbackUrl:d}),Pn(e,t,p))}catch(m){console.error("error logging out",m)}})}function Pn(e,t,r){e&&!r&&(typeof t=="function"?t(e):Kt(e))}var _s=({logoutRoute:e,callbackRoute:t,nativeAuth:r,token:o,onLoginRedirect:i})=>{let l=fe(),p=15e3,m=r!=null,d=ct(r),g=o,[T,f]=(0,Me.useState)(""),[b,C]=(0,Me.useState)(""),{provider:I}=Is(),v=E(yi),U=E(dr),N=(0,Me.useRef)(I),re=(0,Me.useRef)(!0),ce,je=Boolean(b),pt=!je,ut=je?`${U}?wallet-connect=${encodeURIComponent(b)}`:"";(0,Me.useEffect)(()=>{Oe();let D=setInterval(()=>{Oe()},p);return()=>clearInterval(D)},[I]),lt(()=>{!o||qe()},[o]),lt(()=>{N.current=I},[I]);let B=()=>{He(e)},_e=()=>{re.current=!1};function Oe(){return S(this,null,function*(){var Y,$;if(I==null||!ye("walletconnect")||!Boolean(($=(Y=N.current)==null?void 0:Y.walletConnector)==null?void 0:$.connected))return;let W={method:"heartbeat",params:{}};try{yield N.current.sendCustomMessage(W)}catch(z){console.error("Connection lost",z),B()}})}function dt(){return S(this,null,function*(){var D;try{let W=N.current;if(De()||W==null||!ye("walletconnect"))return;if(!re.current){try{yield(D=N.current)==null?void 0:D.logout()}catch(V){console.warn("Unable to logout")}return}let $=yield W.getAddress();if(!$){console.warn("Login cancelled.");return}let z=yield W.getSignature(),ze={address:$,loginMethod:"walletconnect"},O={logoutRoute:e,loginType:"walletConnect",callbackRoute:t!=null?t:window.location.href};l(Gt(O)),z&&d.setTokenLoginInfo({signature:z,address:$}),l(X(ze)),W.walletConnector.on("heartbeat",()=>{clearInterval(ce),ce=setInterval(()=>{console.log("xPortal Mobile Wallet Connection Lost"),B(),clearInterval(ce)},15e4)}),Yt({callbackRoute:t,onLoginRedirect:i,options:{address:$,signature:z}})}catch(W){f("Invalid address"),console.error(W)}})}function mt(D=!0){return S(this,null,function*(){var z,ze;let W=D&&!b;if(!v||((ze=(z=N==null?void 0:N.current)==null?void 0:z.isInitialized)==null?void 0:ze.call(z))&&!W)return;let Y={onClientLogin:dt,onClientLogout:B},$=new Ms.WalletConnectProvider(v,Y);yield $.init(),re.current=!0,Te($),N.current=$,D&&qe()})}function qe(){return S(this,null,function*(){var $;if(!v)return;let D=yield($=N.current)==null?void 0:$.login();if(!Boolean(D))return;if(m&&!g&&(g=yield d.getNativeAuthLoginToken(),!g)){console.warn("Fetching block failed. Login cancelled.");return}if(!g){C(D);return}d.setLoginToken(g);let Y=`${D}&token=${g}`;C(Y)})}let w=Boolean(T),P=De();return[mt,{error:T,loginFailed:w,isLoading:pt&&!w,isLoggedIn:P&&!w},{uriDeepLink:ut,walletConnectUri:b,cancelLogin:_e}]};n();var he=require("react"),Os=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");q();J();H();Zt();var Fs=({callbackRoute:e,logoutRoute:t,token:r,nativeAuth:o,onLoginRedirect:i})=>{let l=fe(),p=o!=null,m=ct(o),d=r,[g,T]=(0,he.useState)(""),[f,b]=(0,he.useState)(""),[C,I]=(0,he.useState)(!0),[v,U]=(0,he.useState)([]),N=te(),re=E(hi),ce=E(xi),je=E(Si),pt=E(Ti),ut=E(dr),B=(0,he.useRef)(N),_e=(0,he.useRef)(!0),Oe=["erd_cancelAction"],dt=C?"":`${ut}?wallet-connect=${encodeURIComponent(f)}`;lt(()=>{!r||$()},[r]),lt(()=>{B.current=N},[N]),(0,he.useEffect)(()=>{I(!Boolean(f))},[f]);let mt=()=>{He(t)},qe=O=>{console.log("wc2 session event: ",O)},w=()=>{_e.current=!1};function P(){return S(this,null,function*(){var O;try{let V=B.current;if(De()||V==null||!ye("walletconnectv2"))return;if(!_e.current){try{yield(O=B.current)==null?void 0:O.logout()}catch(kl){console.warn("Unable to logout")}return}let ie=yield V.getAddress();if(!ie){console.warn("Login cancelled.");return}let ke=yield V.getSignature(),Er={address:ie,loginMethod:"walletconnectv2"},qs={logoutRoute:t,loginType:"walletconnectv2",callbackRoute:e!=null?e:window.location.href};l(Gt(qs)),ke&&m.setTokenLoginInfo({signature:ke,address:ie}),l(X(Er)),Yt({callbackRoute:e,onLoginRedirect:i,options:{address:ie,signature:ke}})}catch(V){T("Invalid address"),console.error(V)}})}function D(O=!0){return S(this,null,function*(){if(!ce||!re){T("Invalid WalletConnect setup");return}let V={onClientLogin:P,onClientLogout:mt,onClientEvent:qe},G=new Os.WalletConnectV2Provider(V,pt,re,ce,je);yield G.init(),_e.current=!0,Te(G),U(G.pairings),B.current=G,O&&$()})}function W(O){return S(this,null,function*(){var V,G,ie;if(!re||!ce){T("Invalid WalletConnect setup");return}if(!O||!O.topic){T("Expired connection");return}try{let{approval:ke}=yield(V=B.current)==null?void 0:V.connect({topic:O.topic,methods:Oe});if(p&&!d&&(d=yield m.getNativeAuthLoginToken(),!d)){console.warn("Fetching block failed. Login cancelled.");return}d&&m.setLoginToken(d);try{yield(G=B.current)==null?void 0:G.login({approval:ke,token:d})}catch(Er){T("User rejected existing connection proposal"),I(!0),yield D()}}catch(ke){console.error("Unable to connect to existing session",ke),T("Unable to connect to existing session")}finally{U((ie=B.current)==null?void 0:ie.pairings)}})}function Y(O){return S(this,null,function*(){var V,G;try{O&&(yield(V=B.current)==null?void 0:V.logout({topic:O}))}catch(ie){console.error("Unable to remove existing pairing",ie),T("Unable to remove existing pairing")}finally{U((G=B.current)==null?void 0:G.pairings)}})}function $(){return S(this,null,function*(){var O,V;if(!re||!ce){T("Invalid WalletConnect setup");return}try{let{uri:G,approval:ie}=yield(O=B.current)==null?void 0:O.connect({methods:Oe});if(!Boolean(G))return;if(b(G),p&&!d&&(d=yield m.getNativeAuthLoginToken(),!d)){console.warn("Fetching block failed. Login cancelled.");return}d&&m.setLoginToken(d);try{yield(V=B.current)==null?void 0:V.login({approval:ie,token:d})}catch(Er){T("User rejected connection proposal"),I(!0),yield D()}}catch(G){console.error("Unable to connect",G)}})}let z=Boolean(g),ze=De();return[D,{error:g,loginFailed:z,isLoading:C&&!z,isLoggedIn:ze&&!z},{uriDeepLink:dt,walletConnectUri:f,cancelLogin:w,connectExisting:W,removeExistingPairing:Y,wcPairings:v}]};q();J();H();n();n();var Us=e=>{let t=new URLSearchParams(e).toString(),{pathname:r}=window.location,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window.history.replaceState({},document==null?void 0:document.title,i)})};var Bs=e=>{var o;let t={};if((o=window==null?void 0:window.location)!=null&&o.search){let i=new URLSearchParams(window.location.search);t=Object.fromEntries(i)}let r={};return e.forEach(i=>{r[i]=t[i],delete t[i]}),{remainingParams:r,clearNavigationHistory:()=>Us(t)}};n();var Vs=require("react");n();q();J();Z();function $s(e,t){let r=Ir(e);if(r==null)return;let o=t!=null?t:L.dispatch,{signature:i,address:l}=r;i&&e&&l&&(o(_()),setTimeout(()=>{o(Ee({loginToken:e,signature:i,nativeAuthToken:e})),o(X({address:l,loginMethod:"extra"}))}))}function Ws(){var l;let e=fe(),t=typeof window!="undefined"?(l=window==null?void 0:window.location)==null?void 0:l.search:"",r=new URLSearchParams(t),o=Object.fromEntries(r),i=o==null?void 0:o.accessToken;(0,Vs.useEffect)(()=>{$s(i,e)},[i])}function Il(){let e=E(Ce),t=E(di),r=E(ui),o=E(pr),i=E(Ve),l=E(pi),p=E(mi),m=E(We),d=E(gi),[g,T]=(0,be.useState)(),f=E(ur),b=f==null?void 0:f.nativeAuthConfig,C=ct(b||!1),I=(0,be.useRef)(!1),v=fe();Ws();let{callbackRoute:U,logoutRoute:N}=t||{callbackRoute:"",logoutRoute:""},[re]=_s({callbackRoute:U,logoutRoute:N}),[ce]=Fs({callbackRoute:U,logoutRoute:N});(0,be.useEffect)(()=>{je()},[e]),(0,be.useEffect)(()=>{qe()},[r]),(0,be.useEffect)(()=>{ut()},[i,e]),(0,be.useEffect)(()=>{pt()},[l,m,g]);function je(){return S(this,null,function*(){try{let w=yield us();w&&v(Ko(w.erd_chain_id))}catch(w){console.error("failed refreshing chainId ",w)}})}function pt(){l==null&&p!=null&&g&&v(No({index:p.index,address:i,hasContractDataEnabled:g.dataEnabled,version:g.version}))}function ut(){return S(this,null,function*(){if(v(tt(!0)),I.current){I.current=!1,v(tt(!1));return}if(i)try{let w=yield Nt(i);w&&v(et(k(h({},w),{address:i,nonce:w.nonce.valueOf()})))}catch(w){v(Do("Failed getting account")),console.error("Failed getting account ",w)}v(tt(!1))})}function B(){return S(this,null,function*(){let w=Ss(e.walletAddress);if(Te(w),o!=null){try{let P=yield Re(),{clearNavigationHistory:D,remainingParams:{signature:W}}=Bs(["signature","loginToken","address"]);if(!P)return Te(Lt),v(Ee(null)),v(Qr(null)),D();W&&C.setTokenLoginInfo({signature:W,address:P});let Y=yield Nt(P);Y&&(I.current=!0,v(tt(!0)),v(X({address:P,loginMethod:"wallet"})),v(et(k(h({},Y),{nonce:Cn(Y)}))),v(tt(!1))),D()}catch(P){console.error("Failed authenticating wallet user ",P)}v(Qr(null))}})}function _e(){return S(this,null,function*(){let w=new Hs.HWProvider,P=w.isInitialized();if(P||(P=yield w.init()),!P&&m){console.warn("Could not initialise ledger app"),He(d);return}return(p==null?void 0:p.index)!=null&&(w.addressIndex=p.index),w})}function Oe(){return S(this,null,function*(){try{let w=yield _e();if(!w)return;let P=yield ws(w);Te(w),T(P)}catch(w){console.error("Could not initialise ledger app",w),He(d)}})}function dt(){return S(this,null,function*(){try{let w=yield Re(),P=Gs.ExtensionProvider.getInstance().setAddress(w);(yield P.init())?Te(P):console.error("Could not initialise extension, make sure MultiversX wallet extension is installed.")}catch(w){console.error("Unable to login to ExtensionProvider",w)}})}function mt(){return S(this,null,function*(){try{let w=yield Re(),P=js.OperaProvider.getInstance().setAddress(w);(yield P.init())?Te(P):console.error("Could not initialise opera crypto wallet, make sure that opera crypto wallet is installed.")}catch(w){console.error("Unable to login to OperaProvider",w)}})}function qe(){if(r!=null)switch(r){case"ledger":{Oe();break}case"walletconnect":{re(!1);break}case"walletconnectv2":{ce(!1);break}case"extension":{dt();break}case"opera":{mt();break}case"extra":{As();break}case"wallet":case"":{B();break}default:return}}return null}0&&(module.exports={ProviderInitializer});
|
|
1
|
+
"use strict";var zs=Object.create;var gt=Object.defineProperty,Ks=Object.defineProperties,Ys=Object.getOwnPropertyDescriptor,Zs=Object.getOwnPropertyDescriptors,Xs=Object.getOwnPropertyNames,Dt=Object.getOwnPropertySymbols,Js=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable;var Nn=(e,t,r)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))Lr.call(t,r)&&Nn(e,r,t[r]);if(Dt)for(var r of Dt(t))Dn.call(t,r)&&Nn(e,r,t[r]);return e},k=(e,t)=>Ks(e,Zs(t));var Cr=(e,t)=>{var r={};for(var o in e)Lr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Dt)for(var o of Dt(e))t.indexOf(o)<0&&Dn.call(e,o)&&(r[o]=e[o]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var Rt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fe=(e,t)=>{for(var r in t)gt(e,r,{get:t[r],enumerable:!0})},Rn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Xs(t))!Lr.call(e,i)&&i!==r&>(e,i,{get:()=>t[i],enumerable:!(o=Ys(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?zs(Js(e)):{},Rn(t||!e||!e.__esModule?gt(r,"default",{value:e,enumerable:!0}):r,e)),ft=e=>Rn(gt({},"__esModule",{value:!0}),e);var S=(e,t,r)=>new Promise((o,i)=>{var l=d=>{try{m(r.next(d))}catch(g){i(g)}},p=d=>{try{m(r.throw(d))}catch(g){i(g)}},m=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,p);m((r=r.apply(e,t)).next())});var On=Rt(Mt=>{"use strict";n();Mt.byteLength=ea;Mt.toByteArray=ra;Mt.fromByteArray=ia;var le=[],ne=[],Qs=typeof Uint8Array!="undefined"?Uint8Array:Array,Pr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ue=0,Mn=Pr.length;Ue<Mn;++Ue)le[Ue]=Pr[Ue],ne[Pr.charCodeAt(Ue)]=Ue;var Ue,Mn;ne["-".charCodeAt(0)]=62;ne["_".charCodeAt(0)]=63;function _n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function ea(e){var t=_n(e),r=t[0],o=t[1];return(r+o)*3/4-o}function ta(e,t,r){return(t+r)*3/4-r}function ra(e){var t,r=_n(e),o=r[0],i=r[1],l=new Qs(ta(e,o,i)),p=0,m=i>0?o-4:o,d;for(d=0;d<m;d+=4)t=ne[e.charCodeAt(d)]<<18|ne[e.charCodeAt(d+1)]<<12|ne[e.charCodeAt(d+2)]<<6|ne[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=ne[e.charCodeAt(d)]<<2|ne[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=ne[e.charCodeAt(d)]<<10|ne[e.charCodeAt(d+1)]<<4|ne[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function na(e){return le[e>>18&63]+le[e>>12&63]+le[e>>6&63]+le[e&63]}function oa(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(na(o));return i.join("")}function ia(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,m=r-o;p<m;p+=l)i.push(oa(e,p,p+l>m?m:p+l));return o===1?(t=e[r-1],i.push(le[t>>2]+le[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(le[t>>10]+le[t>>4&63]+le[t<<2&63]+"=")),i.join("")}});var Fn=Rt(Nr=>{n();Nr.read=function(e,t,r,o,i){var l,p,m=i*8-o-1,d=(1<<m)-1,g=d>>1,T=-7,f=r?i-1:0,b=r?-1:1,C=e[t+f];for(f+=b,l=C&(1<<-T)-1,C>>=-T,T+=m;T>0;l=l*256+e[t+f],f+=b,T-=8);for(p=l&(1<<-T)-1,l>>=-T,T+=o;T>0;p=p*256+e[t+f],f+=b,T-=8);if(l===0)l=1-g;else{if(l===d)return p?NaN:(C?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(C?-1:1)*p*Math.pow(2,l-o)};Nr.write=function(e,t,r,o,i,l){var p,m,d,g=l*8-i-1,T=(1<<g)-1,f=T>>1,b=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=o?0:l-1,I=o?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=T):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+f>=1?t+=b/d:t+=b*Math.pow(2,1-f),t*d>=2&&(p++,d/=2),p+f>=T?(m=0,p=T):p+f>=1?(m=(t*d-1)*Math.pow(2,i),p=p+f):(m=t*Math.pow(2,f-1)*Math.pow(2,i),p=0));i>=8;e[r+C]=m&255,C+=I,m/=256,i-=8);for(p=p<<i|m,g+=i;g>0;e[r+C]=p&255,C+=I,p/=256,g-=8);e[r+C-I]|=v*128}});var Zn=Rt(Ye=>{"use strict";n();var Dr=On(),Ke=Fn(),Un=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ye.Buffer=u;Ye.SlowBuffer=ua;Ye.INSPECT_MAX_BYTES=50;var _t=2147483647;Ye.kMaxLength=_t;u.TYPED_ARRAY_SUPPORT=sa();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function sa(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function xe(e){if(e>_t)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Or(e)}return Vn(e,t,r)}u.poolSize=8192;function Vn(e,t,r){if(typeof e=="string")return ca(e,t);if(ArrayBuffer.isView(e))return la(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(pe(e,ArrayBuffer)||e&&pe(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(pe(e,SharedArrayBuffer)||e&&pe(e.buffer,SharedArrayBuffer)))return Mr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=pa(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return Vn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Wn(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function aa(e,t,r){return Wn(e),e<=0?xe(e):t!==void 0?typeof r=="string"?xe(e).fill(t,r):xe(e).fill(t):xe(e)}u.alloc=function(e,t,r){return aa(e,t,r)};function Or(e){return Wn(e),xe(e<0?0:Fr(e)|0)}u.allocUnsafe=function(e){return Or(e)};u.allocUnsafeSlow=function(e){return Or(e)};function ca(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Gn(e,t)|0,o=xe(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Rr(e){for(var t=e.length<0?0:Fr(e.length)|0,r=xe(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function la(e){if(pe(e,Uint8Array)){var t=new Uint8Array(e);return Mr(t.buffer,t.byteOffset,t.byteLength)}return Rr(e)}function Mr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function pa(e){if(u.isBuffer(e)){var t=Fr(e.length)|0,r=xe(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ur(e.length)?xe(0):Rr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Rr(e.data)}function Fr(e){if(e>=_t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_t.toString(16)+" bytes");return e|0}function ua(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(pe(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),pe(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(pe(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Gn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||pe(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _r(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Yn(e).length;default:if(i)return o?-1:_r(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Gn;function da(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return va(this,t,r);case"utf8":case"utf-8":return jn(this,t,r);case"ascii":return Sa(this,t,r);case"latin1":case"binary":return wa(this,t,r);case"base64":return ha(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Aa(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function Be(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)Be(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)Be(this,r,r+3),Be(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)Be(this,r,r+7),Be(this,r+1,r+6),Be(this,r+2,r+5),Be(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?jn(this,0,t):da.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=Ye.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Un&&(u.prototype[Un]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(pe(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,m=o-r,d=Math.min(p,m),g=this.slice(i,l),T=t.slice(r,o),f=0;f<d;++f)if(g[f]!==T[f]){p=g[f],m=T[f];break}return p<m?-1:m<p?1:0};function Hn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ur(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:Bn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Bn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Bn(e,t,r,o,i){var l=1,p=e.length,m=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,m/=2,r/=2}function d(C,I){return l===1?C[I]:C.readUInt16BE(I*l)}var g;if(i){var T=-1;for(g=r;g<p;g++)if(d(e,g)===d(t,T===-1?0:g-T)){if(T===-1&&(T=g),g-T+1===m)return T*l}else T!==-1&&(g-=g-T),T=-1}else for(r+m>p&&(r=p-m),g=r;g>=0;g--){for(var f=!0,b=0;b<m;b++)if(d(e,g+b)!==d(t,b)){f=!1;break}if(f)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Hn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Hn(this,t,r,o,!1)};function ma(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var m=parseInt(t.substr(p*2,2),16);if(Ur(m))return p;e[r+p]=m}return p}function ga(e,t,r,o){return Ot(_r(t,e.length-r),e,r,o)}function fa(e,t,r,o){return Ot(ka(t),e,r,o)}function Ta(e,t,r,o){return Ot(Yn(t),e,r,o)}function ya(e,t,r,o){return Ot(Ea(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return ma(this,t,r,o);case"utf8":case"utf-8":return ga(this,t,r,o);case"ascii":case"latin1":case"binary":return fa(this,t,r,o);case"base64":return Ta(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ya(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ha(e,t,r){return t===0&&r===e.length?Dr.fromByteArray(e):Dr.fromByteArray(e.slice(t,r))}function jn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,m=l>239?4:l>223?3:l>191?2:1;if(i+m<=r){var d,g,T,f;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(f=(l&31)<<6|d&63,f>127&&(p=f));break;case 3:d=e[i+1],g=e[i+2],(d&192)===128&&(g&192)===128&&(f=(l&15)<<12|(d&63)<<6|g&63,f>2047&&(f<55296||f>57343)&&(p=f));break;case 4:d=e[i+1],g=e[i+2],T=e[i+3],(d&192)===128&&(g&192)===128&&(T&192)===128&&(f=(l&15)<<18|(d&63)<<12|(g&63)<<6|T&63,f>65535&&f<1114112&&(p=f))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=m}return xa(o)}var $n=4096;function xa(e){var t=e.length;if(t<=$n)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=$n));return r}function Sa(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function wa(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function va(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=La[e[l]];return i}function Aa(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function F(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||F(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||F(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||F(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||F(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||F(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||F(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||F(t,4,this.length),Ke.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||F(t,4,this.length),Ke.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||F(t,8,this.length),Ke.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||F(t,8,this.length),Ke.read(this,t,!1,52,8)};function K(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;K(this,t,r,o,l,0)}var p=1,m=0;for(this[r]=t&255;++m<o&&(p*=256);)this[r+m]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;K(this,t,r,o,l,0)}var p=o-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);K(this,t,r,o,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<o&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);K(this,t,r,o,l-1,-l)}var p=o-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||K(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function qn(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function zn(e,t,r,o,i){return t=+t,r=r>>>0,i||qn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Ke.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return zn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return zn(this,t,r,!1,o)};function Kn(e,t,r,o,i){return t=+t,r=r>>>0,i||qn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Ke.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return Kn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return Kn(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var m=u.isBuffer(t)?t:u.from(t,i),d=m.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=m[p%d]}return this};var Ia=/[^+/0-9A-Za-z-_]/g;function ba(e){if(e=e.split("=")[0],e=e.trim().replace(Ia,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function _r(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function ka(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Ea(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function Yn(e){return Dr.toByteArray(ba(e))}function Ot(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function pe(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ur(e){return e!==e}var La=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var to=Rt((Nl,eo)=>{n();var R=eo.exports={},ue,de;function Br(){throw new Error("setTimeout has not been defined")}function $r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ue=setTimeout:ue=Br}catch(e){ue=Br}try{typeof clearTimeout=="function"?de=clearTimeout:de=$r}catch(e){de=$r}})();function Xn(e){if(ue===setTimeout)return setTimeout(e,0);if((ue===Br||!ue)&&setTimeout)return ue=setTimeout,setTimeout(e,0);try{return ue(e,0)}catch(t){try{return ue.call(null,e,0)}catch(r){return ue.call(this,e,0)}}}function Ca(e){if(de===clearTimeout)return clearTimeout(e);if((de===$r||!de)&&clearTimeout)return de=clearTimeout,clearTimeout(e);try{return de(e)}catch(t){try{return de.call(null,e)}catch(r){return de.call(this,e)}}}var Se=[],Ze=!1,$e,Ft=-1;function Pa(){!Ze||!$e||(Ze=!1,$e.length?Se=$e.concat(Se):Ft=-1,Se.length&&Jn())}function Jn(){if(!Ze){var e=Xn(Pa);Ze=!0;for(var t=Se.length;t;){for($e=Se,Se=[];++Ft<t;)$e&&$e[Ft].run();Ft=-1,t=Se.length}$e=null,Ze=!1,Ca(e)}}R.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Se.push(new Qn(e,t)),Se.length===1&&!Ze&&Xn(Jn)};function Qn(e,t){this.fun=e,this.array=t}Qn.prototype.run=function(){this.fun.apply(null,this.array)};R.title="browser";R.browser=!0;R.env={};R.argv=[];R.version="";R.versions={};function we(){}R.on=we;R.addListener=we;R.once=we;R.off=we;R.removeListener=we;R.removeAllListeners=we;R.emit=we;R.prependListener=we;R.prependOnceListener=we;R.listeners=function(e){return[]};R.binding=function(e){throw new Error("process.binding is not supported")};R.cwd=function(){return"/"};R.chdir=function(e){throw new Error("process.chdir is not supported")};R.umask=function(){return 0}});var s,a,Dl,n=x(()=>{s=A(Zn()),a=A(to()),Dl=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var ro=x(()=>{"use strict";n()});var no=x(()=>{"use strict";n()});var oo=x(()=>{"use strict";n()});var io=x(()=>{"use strict";n()});var H=x(()=>{"use strict";n()});var so=x(()=>{"use strict";n()});var ao=x(()=>{"use strict";n()});var j=x(()=>{"use strict";n()});var co=x(()=>{"use strict";n()});var lo=x(()=>{"use strict";n()});var Z=x(()=>{"use strict";n();no();oo();io();H();so();ao();j();co();lo()});var Tt,po,Xl,uo,Jl,mo,Ql,ep,Na,yt=x(()=>{"use strict";n();Z();Tt={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:po,egldLabel:Xl}=Tt["devnet"],{chainId:uo,egldLabel:Jl}=Tt["testnet"],{chainId:mo,egldLabel:Ql}=Tt["mainnet"],ep={["devnet"]:po,["testnet"]:uo,["mainnet"]:mo},Na={[po]:"devnet",[uo]:"testnet",[mo]:"mainnet"}});var Vr=x(()=>{"use strict";n()});var go=x(()=>{"use strict";n()});var fo,Wr=x(()=>{"use strict";n();fo="transaction-status-toast-id"});var me,To=x(()=>{"use strict";n();me=require("@multiversx/sdk-web-wallet-provider")});var Gr,Hr,yo,ho,Ut,xo,Xe,M=x(()=>{"use strict";n();ro();yt();Vr();go();Wr();To();Gr=5e4,Hr=1e9,yo=1,ho=1,Ut="logout",xo="login",Xe="0"});var Je,Bt=x(()=>{"use strict";n();Je=()=>Date.now()/1e3});var So=x(()=>{"use strict";n()});var wo=x(()=>{"use strict";n()});var vo=x(()=>{"use strict";n();Bt();So();wo()});var qr={};Fe(qr,{getItem:()=>Ra,localStorageKeys:()=>se,removeItem:()=>Ma,setItem:()=>Da});var se,jr,Da,Ra,Ma,Qe=x(()=>{"use strict";n();vo();se={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},jr=typeof localStorage!="undefined",Da=({key:e,data:t,expires:r})=>{!jr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Ra=e=>{if(!jr)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Je()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Ma=e=>{!jr||localStorage.removeItem(String(e))}});var zr={};Fe(zr,{clear:()=>ko,getItem:()=>Io,removeItem:()=>bo,setItem:()=>Ao,storage:()=>_a});var Ao,Io,bo,ko,_a,Eo=x(()=>{"use strict";n();Ao=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Io=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},bo=e=>sessionStorage.removeItem(String(e)),ko=()=>sessionStorage.clear(),_a={setItem:Ao,getItem:Io,removeItem:bo,clear:ko}});var ge,ht=x(()=>{"use strict";n();Qe();Eo();ge={session:zr,local:qr}});var Kr,_,X,q=x(()=>{"use strict";n();Kr=require("@reduxjs/toolkit");M();_=(0,Kr.createAction)(Ut),X=(0,Kr.createAction)(xo,e=>({payload:e}))});var Zr,Lo,Co,$t,Yr,Po,et,Pp,Xr,Np,No,Dp,Rp,tt,Do,Mp,Vt,Wt=x(()=>{"use strict";n();Zr=require("@multiversx/sdk-core"),Lo=require("@reduxjs/toolkit"),Co=require("redux-persist");M();ht();Qe();q();$t={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Xe},Yr={address:"",websocketEvent:null,accounts:{"":$t},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Po=(0,Lo.createSlice)({name:"accountInfoSlice",initialState:Yr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Zr.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:$t},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(_,()=>(ge.local.removeItem(se.loginExpiresAt),Yr)),e.addCase(X,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Zr.Address(o).hex()}),e.addCase(Co.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:m}=o;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Yr.accounts,t.publicKey=m})}}),{setAccount:et,setAddress:Pp,setAccountNonce:Xr,setAccountShard:Np,setLedgerAccount:No,updateLedgerAccount:Dp,setWalletConnectAccount:Rp,setIsAccountLoading:tt,setAccountLoadingError:Do,setWebsocketEvent:Mp}=Po.actions,Vt=Po.reducer});function xt(){return new Date().setHours(new Date().getHours()+24)}function St(e){ge.local.setItem({key:se.loginExpiresAt,data:e,expires:e})}var Jr=x(()=>{"use strict";n();ht();Qe()});var Mo,Ro,_o,Hp,Gt,jp,Ee,qp,Qr,Oo,zp,Ht,jt=x(()=>{"use strict";n();Mo=require("@reduxjs/toolkit");Jr();H();q();Ro={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},_o=(0,Mo.createSlice)({name:"loginInfoSlice",initialState:Ro,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(_,()=>Ro),e.addCase(X,(t,r)=>{t.loginMethod=r.payload.loginMethod,St(xt())})}}),{setLoginMethod:Hp,setWalletConnectLogin:Gt,setLedgerLogin:jp,setTokenLogin:Ee,setTokenLoginSignature:qp,setWalletLogin:Qr,invalidateLoginSession:Oo,setLogoutRoute:zp}=_o.actions,Ht=_o.reducer});var Uo,Fo,Bo,Xp,Jp,Qp,eu,qt,zt=x(()=>{"use strict";n();Uo=require("@reduxjs/toolkit");q();Fo={},Bo=(0,Uo.createSlice)({name:"modalsSlice",initialState:Fo,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(_,()=>Fo)}}),{setTxSubmittedModal:Xp,setNotificationModal:Jp,clearTxSubmittedModal:Qp,clearNotificationModal:eu}=Bo.actions,qt=Bo.reducer});var $o,Vo,Kt,en=x(()=>{"use strict";n();$o=!1,Vo=(e=!0)=>{$o=e},Kt=(e,t=0)=>{$o||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});function Yt({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function",l=i?0:Oa;o&&e!=null&&setTimeout(()=>{if(i)return t(e,r);window.location.pathname.includes(e)||Kt(e)},l)}var Oa,Wo=x(()=>{"use strict";n();en();Oa=200});function tn(e){return e[Math.floor(Math.random()*e.length)]}var Go=x(()=>{"use strict";n()});var Ho=x(()=>{"use strict";n();Vr()});var Zt=x(()=>{"use strict";n();Wo();Go();Ho()});var jo,qo,rn,Fa,zo,fu,Ko,Xt,Jt=x(()=>{"use strict";n();jo=require("@reduxjs/toolkit"),qo=A(require("lodash.omit"));Zt();rn={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Fa={network:rn,chainID:"-1"},zo=(0,jo.createSlice)({name:"appConfig",initialState:Fa,reducers:{initializeNetworkConfig:(e,t)=>{let r=tn(t.payload.walletConnectBridgeAddresses),o=tn(t.payload.walletConnectV2RelayAddresses),i=(0,qo.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=k(h(h({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:fu,setChainID:Ko}=zo.actions,Xt=zo.reducer});var Yo,nn,Zo,wu,vu,Au,Qt,er=x(()=>{"use strict";n();Yo=require("@reduxjs/toolkit");Z();q();nn={isSigning:!1,signedSessions:{}},Zo=(0,Yo.createSlice)({name:"signedMessageInfoSliceState",initialState:nn,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return k(h({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:k(h({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>h(h({},e),t.payload),clearSignedMessageInfo:()=>nn},extraReducers:e=>{e.addCase(_,()=>nn)}}),{setSignSession:wu,clearSignedMessageInfo:vu,setSignSessionState:Au}=Zo.actions,Qt=Zo.reducer});var Jo,Qo,Xo,ei,Nu,Du,Ru,Mu,_u,Ou,tr,rr=x(()=>{"use strict";n();Jo=require("@reduxjs/toolkit"),Qo=require("redux-persist");Wr();Z();Bt();q();Xo={customToasts:[],transactionToasts:[],failTransactionToast:null},ei=(0,Jo.createSlice)({name:"toastsSlice",initialState:Xo,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(k(h({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Je(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=k(h({},t.payload),{toastId:fo})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(_,()=>Xo),e.addCase(Qo.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:Nu,removeCustomToast:Du,addTransactionToast:Ru,removeTransactionToast:Mu,addFailTransactionToast:_u,removeFailTransactionToast:Ou}=ei.actions,tr=ei.reducer});var ti,sn,an,cn,Ua,on,ri,$u,Vu,Wu,nr,or=x(()=>{"use strict";n();ti=require("@reduxjs/toolkit");q();sn="Transaction failed",an="Transaction successful",cn="Processing transaction",Ua="Transaction submitted",on={},ri=(0,ti.createSlice)({name:"transactionsInfo",initialState:on,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||sn,successMessage:(o==null?void 0:o.successMessage)||an,processingMessage:(o==null?void 0:o.processingMessage)||cn,submittedMessage:(o==null?void 0:o.submittedMessage)||Ua,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>on},extraReducers:e=>{e.addCase(_,()=>on)}}),{clearTransactionsInfo:$u,setTransactionsDisplayInfo:Vu,clearTransactionsInfoForSessionId:Wu}=ri.actions,nr=ri.reducer});function ni(e){return e!=null&&(za(e)||Xa(e))}function ir(e){return e!=null&&(Ka(e)||Ja(e))}function sr(e){return e!=null&&(Ya(e)||Qa(e))}function oi(e){return e!=null&&Za(e)}function za(e){return e!=null&&$a.includes(e)}function Ka(e){return e!=null&&Va.includes(e)}function Ya(e){return e!=null&&Wa.includes(e)}function Za(e){return e!=null&&Ga.includes(e)}function Xa(e){return e!=null&&Ha.includes(e)}function Ja(e){return e!=null&&ja.includes(e)}function Qa(e){return e!=null&&qa.includes(e)}var $a,Va,Wa,Ga,Ha,ja,qa,pn=x(()=>{"use strict";n();H();$a=["sent"],Va=["success"],Wa=["fail","cancelled","timedOut"],Ga=["timedOut"],Ha=["pending"],ja=["success"],qa=["fail","invalid"]});var ii,si,wt,ec,ai,Xu,Ju,Qu,ed,td,rd,nd,od,id,sd,ar,cr=x(()=>{"use strict";n();ii=require("@reduxjs/toolkit"),si=require("redux-persist");H();pn();q();wt={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ec={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ai=(0,ii.createSlice)({name:"transactionsSlice",initialState:wt,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,m=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||ec;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:m},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=wt.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=h(h({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,d,g,T,f,b;let{sessionId:r,status:o,errorMessage:i,transactionHash:l}=t.payload,p=(d=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(v=>v.hash===l?k(h({},v),{status:o,errorMessage:i}):v);let C=(T=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:T.every(v=>ir(v.status)),I=(b=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:b.every(v=>sr(v.status));C&&(e.signedTransactions[r].status="success"),I&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=wt.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=wt.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(_,()=>wt),e.addCase(si.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((m,[d,g])=>{let T=new Date(d),f=new Date;return f.setHours(f.getHours()+5),f-T>0||(m[d]=g),m},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Xu,updateSignedTransactions:Ju,setTransactionsToSign:Qu,clearAllTransactionsToSign:ed,clearAllSignedTransactions:td,clearSignedTransaction:rd,clearTransactionToSign:nd,setSignTransactionsError:od,setSignTransactionsCancelMessage:id,moveTransactionsToSignedState:sd}=ai.actions,ar=ai.reducer});var J=x(()=>{"use strict";n();Wt();jt();zt();Jt();er();rr();or();cr()});var Tn=x(()=>{"use strict";n()});var Pi,Ci,Ni,Jm,Qm,eg,tg,rg,ng,Di,Ri=x(()=>{"use strict";n();Pi=require("@reduxjs/toolkit");q();Ci={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Ni=(0,Pi.createSlice)({name:"dappModalsSlice",initialState:Ci,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=h({},t.payload)}},extraReducers:e=>{e.addCase(_,()=>Ci)}}),{setDappModalVisibility:Jm,setDappModalHeaderVisibility:Qm,setDappModalFooterVisibility:eg,setDappModalHeaderText:tg,setDappModalFooterText:rg,setDappModalConfig:ng}=Ni.actions,Di=Ni.reducer});var Mi,gc,fc,Ge,fr=x(()=>{"use strict";n();Mi=require("@reduxjs/toolkit");Tn();Wt();Ri();jt();zt();Jt();er();rr();or();cr();gc={["account"]:Vt,["dappModal"]:Di,["loginInfo"]:Ht,["modals"]:qt,["networkConfig"]:Xt,["signedMessageInfo"]:Qt,["toasts"]:tr,["transactionsInfo"]:nr,["transactions"]:ar},fc=(e={})=>(0,Mi.combineReducers)(h(h({},gc),e)),Ge=fc});var Ui={};Fe(Ui,{default:()=>Pc,sessionStorageReducers:()=>yn});function Pe(e,t=[]){return{key:e,version:1,storage:Oi.default,blacklist:t}}var ee,_i,Oi,Tc,It,yc,hc,xc,Sc,wc,vc,Ac,Ic,bc,Fi,kc,yn,Ec,Lc,Cc,Pc,Bi=x(()=>{"use strict";n();ee=require("redux-persist"),_i=A(require("redux-persist/lib/storage")),Oi=A(require("redux-persist/lib/storage/session"));fr();J();Wt();jt();zt();Jt();er();rr();or();cr();Tn();Tc={persistReducersStorageType:"localStorage"},It={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},yc=Pe(It["account"]),hc=Pe(It["loginInfo"]),xc=Pe(It["modals"]),Sc=Pe(It["networkConfig"]),wc={2:e=>k(h({},e),{networkConfig:rn})};vc=Pe("sdk-dapp-transactionsInfo"),Ac=Pe("sdk-dapp-transactions",["transactionsToSign"]),Ic=Pe("sdk-dapp-toasts"),bc=Pe("sdk-dapp-signedMessageInfo"),Fi={key:"sdk-dapp-store",version:2,storage:_i.default,whitelist:Object.keys(It),migrate:(0,ee.createMigrate)(wc,{debug:!1})},kc=k(h({},Fi),{whitelist:[]}),yn={["toasts"]:(0,ee.persistReducer)(Ic,tr),["transactions"]:(0,ee.persistReducer)(Ac,ar),["transactionsInfo"]:(0,ee.persistReducer)(vc,nr),["signedMessageInfo"]:(0,ee.persistReducer)(bc,Qt)},Ec=k(h({},yn),{["account"]:(0,ee.persistReducer)(yc,Vt),["loginInfo"]:(0,ee.persistReducer)(hc,Ht),["modals"]:(0,ee.persistReducer)(xc,qt),["networkConfig"]:(0,ee.persistReducer)(Sc,Xt)}),Lc=Tc.persistReducersStorageType==="localStorage",Cc=Lc?(0,ee.persistReducer)(Fi,Ge(yn)):(0,ee.persistReducer)(kc,Ge(Ec)),Pc=Cc});var $i={};Fe($i,{default:()=>Nc});var Nc,Vi=x(()=>{"use strict";n();fr();Nc=Ge()});var Wi={};Fe(Wi,{default:()=>Rc});var oe,Dc,Rc,Gi=x(()=>{"use strict";n();oe=require("redux-persist"),Dc=[oe.FLUSH,oe.REHYDRATE,oe.PAUSE,oe.PERSIST,oe.PURGE,oe.REGISTER],Rc=Dc});var qi={};Fe(qi,{default:()=>ji});function ji(e){return(0,Hi.persistStore)(e)}var Hi,zi=x(()=>{"use strict";n();Hi=require("redux-persist")});var bl={};Fe(bl,{ProviderInitializer:()=>Il});module.exports=ft(bl);n();var be=require("react"),Gs=require("@multiversx/sdk-extension-provider"),Hs=require("@multiversx/sdk-hw-provider"),js=require("@multiversx/sdk-opera-provider");n();n();n();var sl=A(require("axios"));n();n();J();n();var ci=A(require("lodash.isequal")),lr=require("reselect");Z();var y=(0,lr.createSelectorCreator)(lr.defaultMemoize,ci.default),vt=(e,t)=>e!=""&&Boolean(t);var Ae=e=>e.account,Ve=y(Ae,e=>e.address),rt=y(Ae,Ve,(e,t)=>t in e.accounts?e.accounts[t]:$t),tc=y(Ae,rt,(e,t)=>{let i=e,{accounts:r}=i,o=Cr(i,["accounts"]);return k(h({},o),{account:t})}),wd=y(rt,e=>e.balance),li=y(rt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),vd=y(Ae,e=>e.shard),pi=y(Ae,e=>e.ledgerAccount),Ad=y(Ae,e=>e.walletConnectAccount),Id=y(Ae,e=>e.isAccountLoading),bd=y(Ae,e=>e.accountLoadingError),rc=y(Ae,e=>e.websocketEvent);n();var ae=e=>e.loginInfo,ui=y(ae,e=>e.loginMethod),We=y(ae,Ve,(e,t)=>vt(e.loginMethod,t)),di=y(ae,e=>e.walletConnectLogin),mi=y(ae,e=>e.ledgerLogin),pr=y(ae,e=>e.walletLogin),Cd=y(ae,e=>e.isLoginSessionInvalid),ur=y(ae,e=>e.tokenLogin),gi=y(ae,e=>e.logoutRoute);n();var fi=e=>e.modals,Dd=y(fi,e=>e.txSubmittedModal),Rd=y(fi,e=>e.notificationModal);n();var Le=e=>e.networkConfig,Ti=y(Le,e=>e.chainID),yi=y(Le,e=>e.network.walletConnectBridgeAddress),hi=y(Le,e=>e.network.walletConnectV2RelayAddress),xi=y(Le,e=>e.network.walletConnectV2ProjectId),Si=y(Le,e=>e.network.walletConnectV2Options),dr=y(Le,e=>e.network.walletConnectDeepLink),Ce=y(Le,e=>e.network),un=y(Ce,e=>e.apiAddress),wi=y(Ce,e=>e.explorerAddress),Od=y(Ce,e=>e.egldLabel);n();var dn=e=>e.signedMessageInfo,Bd=y(dn,e=>e.isSigning),$d=y(dn,e=>e.errorMessage),Vd=y(dn,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var mn=e=>e.toasts,Hd=y(mn,e=>e.customToasts),jd=y(mn,e=>e.transactionToasts),qd=y(mn,e=>e.failTransactionToast);n();J();var vi={errorMessage:sn,successMessage:an,processingMessage:cn},nc=e=>e.transactionsInfo,Zd=y(nc,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||vi);n();n();var Q=require("@multiversx/sdk-core");M();n();function gn(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function nt(e){return atob(e)}function fn(e){var i,l,p;let{data:t}=e,r=gn(t!=null?t:"")?Q.TransactionPayload.fromEncoded(t):new Q.TransactionPayload(t),o=new Q.Transaction(h({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new Q.Address(e.receiver),sender:new Q.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Gr,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Hr,chainID:e.chainID.valueOf(),version:new Q.TransactionVersion((p=e.version)!=null?p:yo)},e.options?{options:new Q.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new Q.Address(e.sender)),o}n();pn();n();var ic=A(require("bignumber.js"));Z();n();n();n();n();var ac=require("@multiversx/sdk-core"),cc=A(require("bignumber.js"));H();n();var bi=require("@multiversx/sdk-core");function sc(e){try{let t=new bi.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function At(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&sc(e)}n();n();n();var pc=require("@multiversx/sdk-core/out");n();M();n();var ki=require("@multiversx/sdk-core");Z();n();n();n();n();H();n();n();var hn=require("@reduxjs/toolkit"),Xi=require("react-redux/lib/utils/Subscription");J();n();var Ei=A(require("lodash.throttle"));M();J();Jr();ht();Qe();var uc=[Ut],mr=!1,dc=(0,Ei.default)(()=>{St(xt())},5e3),Li=e=>t=>r=>{var d;if(uc.includes(r.type))return t(r);let o=e.getState(),i=ge.local.getItem(se.loginExpiresAt);if(!vt((d=o==null?void 0:o.loginInfo)==null?void 0:d.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return St(xt());let p=Date.now();return i-p<0&&!mr?setTimeout(()=>{mr=!0,e.dispatch(Oo())},1e3):(mr&&(mr=!1),dc()),t(r)};n();n();function gr(){return typeof sessionStorage!="undefined"}var Ki=gr()?(Bi(),ft(Ui)).default:(Vi(),ft($i)).default,Yi=gr()?(Gi(),ft(Wi)).default:[],Zi=gr()?(zi(),ft(qi)).default:e=>e;fr();var L=(0,hn.configureStore)({reducer:Ki,middleware:e=>e({serializableCheck:{ignoredActions:[...Yi,Xr.type,et.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Li)}),Ji=(0,Xi.createSubscription)(L),Mg=Zi(L),_g=(0,hn.configureStore)({reducer:Ge});n();n();n();n();n();n();var Qi="network/config";var Tr="accounts";var xn="blocks";n();n();n();n();j();n();n();j();n();n();n();var Bc=A(require("bignumber.js"));M();n();var Uc=require("@multiversx/sdk-core"),Sn=A(require("bignumber.js"));M();n();var Oc=A(require("bignumber.js"));n();Sn.default.config({ROUNDING_MODE:Sn.default.ROUND_FLOOR});n();n();n();M();n();n();n();n();M();n();M();n();var $c=require("@multiversx/sdk-core");M();n();var bt=require("@multiversx/sdk-core"),Wc=require("@multiversx/sdk-network-providers");M();n();n();var Vc=A(require("bignumber.js"));M();n();M();n();n();n();n();n();M();n();j();var Hc=["reDelegateRewards","claimRewards","unBond"],jc=["wrapEgld","unwrapEgld"],qc=["unStake"],zc=["unDelegate"];n();n();n();M();n();var Zc=A(require("bignumber.js"));n();n();n();j();n();var Xc=A(require("bignumber.js"));n();n();n();n();j();n();n();n();var Qc=A(require("linkifyjs"));n();M();n();var el=A(require("bignumber.js"));n();Z();n();n();H();n();H();n();n();n();j();n();j();n();var tl=A(require("bignumber.js"));M();j();n();j();n();var is=require("react");Z();n();n();j();n();var rl=require("@multiversx/sdk-core/out"),nl=A(require("bignumber.js"));j();n();j();n();n();H();var Sx=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var ss=require("react");Z();n();var il=require("react");j();var Ex=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var Sr=e=>e.transactions,kt=y(Sr,e=>e.signedTransactions),uS=y(Sr,e=>e.signTransactionsError),dS=y(Sr,e=>e.signTransactionsCancelMessage),wr=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),mS=y(kt,wr(ni)),gS=y(kt,wr(ir)),fS=y(kt,wr(sr)),TS=y(kt,wr(oi)),yS=y(Sr,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:k(h({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>fn(r)))||[]})}),hS=y(kt,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});n();var al=A(require("axios"));n();var ll=A(require("axios"));n();n();var pl=A(require("axios"));n();var ul=A(require("axios"));n();n();n();var cs=A(require("axios"));n();n();var vr=e=>{let t=e!=null?e:un(L.getState());return t.endsWith("/")?t.slice(0,-1):t};function ls(e){return S(this,null,function*(){if(!e)return null;let r=`${vr()}/${Tr}/${e}`;try{let{data:o}=yield cs.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}n();n();yt();n();var dl=A(require("axios"));n();var ps=A(require("axios"));function us(){return S(this,null,function*(){var r;let t=`${vr()}/${Qi}`;try{let{data:o}=yield ps.default.get(t);if(o!=null)return(r=o==null?void 0:o.data)==null?void 0:r.config}catch(o){console.error("error fetching configuration for ",t)}return null})}n();yt();n();yt();n();var ml=A(require("axios"));n();var Ns=require("react"),br=require("@multiversx/sdk-core");n();n();n();var ds=require("react"),ot=require("react-redux");var gl={store:L,subscription:Ji},vn=(0,ds.createContext)(gl),Hw=(0,ot.createStoreHook)(vn),fe=(0,ot.createDispatchHook)(vn),E=(0,ot.createSelectorHook)(vn);n();var An=()=>E(rt);n();n();n();n();n();var Et=A(require("react"));var iv=(0,Et.createContext)({}),sv=L.getState();n();var gs=A(require("react"));n();var In=A(require("react")),fl=A(require("axios"));n();n();n();n();n();var fs=require("@multiversx/sdk-extension-provider"),Ts=require("@multiversx/sdk-hw-provider"),ys=require("@multiversx/sdk-opera-provider"),hs=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),xs=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),bn=require("@multiversx/sdk-web-wallet-provider");M();H();var Tl="/dapp/init",it=e=>{switch(e==null?void 0:e.constructor){case bn.WalletProvider:return"wallet";case hs.WalletConnectProvider:return"walletconnect";case xs.WalletConnectV2Provider:return"walletconnectv2";case Ts.HWProvider:return"ledger";case fs.ExtensionProvider:return"extension";case ys.OperaProvider:return"opera";case Ar:return"";default:return"extra"}},Ss=e=>new bn.WalletProvider(`${e}${Tl}`),ws=e=>S(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let t=e.hwApp,{contractData:r,version:o}=yield t.getAppConfiguration();return{version:o,dataEnabled:r===ho}}),Ie=e=>`Unable to perform ${e}, Provider not initialized`,Ar=class{init(){return Promise.resolve(!1)}login(t){throw new Error(Ie(`login with options: ${t}`))}logout(t){throw new Error(Ie(`logout with options: ${t}`))}getAddress(){throw new Error(Ie("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(Ie(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(Ie(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(Ie(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(Ie(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(Ie(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(Ie(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Lt=new Ar;var kn=Lt,vs=null;function Te(e){kn=e}function As(){vs!=null&&(kn=vs)}function te(){return kn||Lt}var Is=()=>{let e=te(),t=it(e);return{provider:e,providerType:t}};n();J();n();n();n();var yl=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),st=e=>yl(s.Buffer.from(e,"utf8").toString("base64"));n();var bs=A(require("axios"));var hl=4e4,En=null,at={current:null},Ln={current:!1};function ks(e,t){return S(this,null,function*(){if(e==null)throw new Error("missing api url");if(En!=null&&Date.now()<En&&at.current!=null)return at.current;{if(Ln.current)return yield Sl();Ln.current=!0,at.current=null;let o=yield xl(e,t);return at.current=o,En=Date.now()+hl,Ln.current=!1,o}})}function xl(e,t){return S(this,null,function*(){let{data:r}=yield bs.default.get(`${e}/${xn}?size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[o]=r;return o})}function Sl(){return S(this,null,function*(){return new Promise((e,t)=>{let r,o=setInterval(()=>{at.current!=null&&(e(at.current),clearInterval(o),clearTimeout(r))},50);r=setTimeout(()=>{clearInterval(o),t("could not generate new token")},1e4)})})}n();var Es,Ct={hostname:typeof window!="undefined"?(Es=window==null?void 0:window.location)==null?void 0:Es.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Pt=e=>{var r,o,i,l,p;return e===!0?Ct:{hostname:(r=e==null?void 0:e.hostname)!=null?r:Ct.hostname,blockHashShard:(o=e==null?void 0:e.blockHashShard)!=null?o:null,expirySeconds:(i=e==null?void 0:e.expirySeconds)!=null?i:Ct.expirySeconds,apiAddress:(l=e==null?void 0:e.apiAddress)!=null?l:Ct.apiAddress,tokenExpirationToastWarningSeconds:(p=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?p:Ct.tokenExpirationToastWarningSeconds}};n();n();n();function wl(e){return Object.prototype.toString.call(e)==="[object String]"}var Ir=e=>{if(!e||!wl(e))return null;try{let[t,r,o]=e.split("."),i=nt(t),l=nt(r),[p,m,d,g]=l.split("."),T=JSON.parse(nt(g)),f=nt(p),b={ttl:Number(d),address:i,extraInfo:T,host:f,signature:o,blockHash:m,body:l};return g==="e30"&&delete b.extraInfo,b}catch(t){return null}};var Ls=({address:e,token:t,signature:r})=>{let o=st(e),i=st(t);return`${o}.${i}.${r}`};n();Bt();var Cs=e=>{let t=Ir(e);if(!t)return{isExpired:!1};let r=Je(),{ttl:o,extraInfo:i}=t,l=i.timestamp;if(!l)return{isExpired:!1};let p=l+o,m=r>p,d=p-r;return{isExpired:m,expiresAt:p,secondsUntilExpires:d}};var Ps=e=>{let{hostname:t,apiAddress:r,expirySeconds:o,blockHashShard:i}=Pt(e);return{getNativeAuthConfig:Pt,initialize:(...m)=>S(void 0,[...m],function*(p={}){let{hash:d,timestamp:g}=yield ks(r,i),T=st(JSON.stringify(h(h({},p),g?{timestamp:g}:{})));return`${st(t)}.${d}.${o}.${T}`}),getToken:Ls,getTokenExpiration:Cs}};n();var vl=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},ct=e=>{let t=E(Ce),r=E(ur),o=(0,Ns.useRef)(r==null?void 0:r.loginToken),i=vl(t.apiAddress,e),l=Pt(h(h({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),m=Ps(l),{address:d}=An(),g=fe(),T=I=>{o.current=I,g(Ee(h({loginToken:I},i?{nativeAuthConfig:l}:{})))},f=()=>S(void 0,null,function*(){try{return yield m.initialize()}catch(I){console.error("Unable to get block. Login failed.",I);return}}),b=({address:I,signature:v})=>{let U=o.current;if(!U)throw"Token not found. Call `setLoginToken` first.";if(!p){g(Ee({loginToken:U,signature:v}));return}let N=m.getToken({address:I,token:U,signature:v});g(Ee(h({loginToken:U,signature:v,nativeAuthToken:N},i?{nativeAuthConfig:l}:{})))};return{configuration:l,setLoginToken:T,getNativeAuthLoginToken:f,setTokenLoginInfo:b,refreshNativeAuthTokenLogin:v=>S(void 0,[v],function*({signMessageCallback:I}){let U=yield f();if(o.current=U,!U)return;let N=new br.SignableMessage({address:new br.Address(d),message:s.Buffer.from(U)}),re=yield I(N,{});b({address:d,signature:re.toJSON().signature})})}};n();var Me=require("react"),Ms=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");n();var kr=require("react");function lt(e,t=[]){let r=(0,kr.useRef)(!0);(0,kr.useEffect)(()=>{r.current?r.current=!1:e()},t)}q();J();H();n();n();function Ds(){let e=te();return it(e)}function ye(e){return Ds()===e}n();function De(){return We(L.getState())}Zt();n();q();Z();n();n();H();function Re(){let{search:e}=window.location,t=L.getState(),r=te(),o=Ve(t),i=We(t),l=pr(t);if(!r)throw"provider not initialized";return ye("ledger")&&i?new Promise(p=>{p(o)}):!ye("")&&!ye("wallet")&&!ye("extra")?r.getAddress():new Promise(p=>{if(l!=null){let m=new URLSearchParams(e),d=Object.fromEntries(m);At(d.address)&&p(d.address)}i&&p(o),p("")})}n();function Nt(e){return S(this,null,function*(){return yield ls(e)})}n();J();n();function Cn(e){let t=L.getState(),r=li(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();n();J();n();var Rs=require("@multiversx/sdk-core");n();q();Z();en();ht();Qe();var Al=e=>{let t=ge.local.getItem(se.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(ge.local.setItem({key:se.logoutEvent,data:e,expires:0}),ge.local.removeItem(se.logoutEvent))};function He(e,t,r=!0){return S(this,null,function*(){let o=te(),i=it(o),l=De(),p=i==="wallet";if(r&&(o==null?void 0:o.relogin)!=null)return yield o.relogin();if(!l||!o){Pn(e,t,!1);return}try{let m=yield Re();Al(m)}catch(m){Pn(e,t,!1),console.error("error fetching logout address",m)}p&&Vo(),L.dispatch(_());try{let d=p&&!e?window.location.origin:e;p?setTimeout(()=>{o.logout({callbackUrl:d})}):(yield o.logout({callbackUrl:d}),Pn(e,t,p))}catch(m){console.error("error logging out",m)}})}function Pn(e,t,r){e&&!r&&(typeof t=="function"?t(e):Kt(e))}var _s=({logoutRoute:e,callbackRoute:t,nativeAuth:r,token:o,onLoginRedirect:i})=>{let l=fe(),p=15e3,m=r!=null,d=ct(r),g=o,[T,f]=(0,Me.useState)(""),[b,C]=(0,Me.useState)(""),{provider:I}=Is(),v=E(yi),U=E(dr),N=(0,Me.useRef)(I),re=(0,Me.useRef)(!0),ce,je=Boolean(b),pt=!je,ut=je?`${U}?wallet-connect=${encodeURIComponent(b)}`:"";(0,Me.useEffect)(()=>{Oe();let D=setInterval(()=>{Oe()},p);return()=>clearInterval(D)},[I]),lt(()=>{!o||qe()},[o]),lt(()=>{N.current=I},[I]);let B=()=>{He(e)},_e=()=>{re.current=!1};function Oe(){return S(this,null,function*(){var Y,$;if(I==null||!ye("walletconnect")||!Boolean(($=(Y=N.current)==null?void 0:Y.walletConnector)==null?void 0:$.connected))return;let W={method:"heartbeat",params:{}};try{yield N.current.sendCustomMessage(W)}catch(z){console.error("Connection lost",z),B()}})}function dt(){return S(this,null,function*(){var D;try{let W=N.current;if(De()||W==null||!ye("walletconnect"))return;if(!re.current){try{yield(D=N.current)==null?void 0:D.logout()}catch(V){console.warn("Unable to logout")}return}let $=yield W.getAddress();if(!$){console.warn("Login cancelled.");return}let z=yield W.getSignature(),ze={address:$,loginMethod:"walletconnect"},O={logoutRoute:e,loginType:"walletConnect",callbackRoute:t!=null?t:window.location.href};l(Gt(O)),z&&d.setTokenLoginInfo({signature:z,address:$}),l(X(ze)),W.walletConnector.on("heartbeat",()=>{clearInterval(ce),ce=setInterval(()=>{console.log("xPortal Mobile Wallet Connection Lost"),B(),clearInterval(ce)},15e4)}),Yt({callbackRoute:t,onLoginRedirect:i,options:{address:$,signature:z}})}catch(W){f("Invalid address"),console.error(W)}})}function mt(D=!0){return S(this,null,function*(){var z,ze;let W=D&&!b;if(!v||((ze=(z=N==null?void 0:N.current)==null?void 0:z.isInitialized)==null?void 0:ze.call(z))&&!W)return;let Y={onClientLogin:dt,onClientLogout:B},$=new Ms.WalletConnectProvider(v,Y);yield $.init(),re.current=!0,Te($),N.current=$,D&&qe()})}function qe(){return S(this,null,function*(){var $;if(!v)return;let D=yield($=N.current)==null?void 0:$.login();if(!Boolean(D))return;if(m&&!g&&(g=yield d.getNativeAuthLoginToken(),!g)){console.warn("Fetching block failed. Login cancelled.");return}if(!g){C(D);return}d.setLoginToken(g);let Y=`${D}&token=${g}`;C(Y)})}let w=Boolean(T),P=De();return[mt,{error:T,loginFailed:w,isLoading:pt&&!w,isLoggedIn:P&&!w},{uriDeepLink:ut,walletConnectUri:b,cancelLogin:_e}]};n();var he=require("react"),Os=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");q();J();H();Zt();var Fs=({callbackRoute:e,logoutRoute:t,token:r,nativeAuth:o,onLoginRedirect:i})=>{let l=fe(),p=o!=null,m=ct(o),d=r,[g,T]=(0,he.useState)(""),[f,b]=(0,he.useState)(""),[C,I]=(0,he.useState)(!0),[v,U]=(0,he.useState)([]),N=te(),re=E(hi),ce=E(xi),je=E(Si),pt=E(Ti),ut=E(dr),B=(0,he.useRef)(N),_e=(0,he.useRef)(!0),Oe=["erd_cancelAction","multiversx_cancelAction"],dt=C?"":`${ut}?wallet-connect=${encodeURIComponent(f)}`;lt(()=>{!r||$()},[r]),lt(()=>{B.current=N},[N]),(0,he.useEffect)(()=>{I(!Boolean(f))},[f]);let mt=()=>{He(t)},qe=O=>{console.log("wc2 session event: ",O)},w=()=>{_e.current=!1};function P(){return S(this,null,function*(){var O;try{let V=B.current;if(De()||V==null||!ye("walletconnectv2"))return;if(!_e.current){try{yield(O=B.current)==null?void 0:O.logout()}catch(kl){console.warn("Unable to logout")}return}let ie=yield V.getAddress();if(!ie){console.warn("Login cancelled.");return}let ke=yield V.getSignature(),Er={address:ie,loginMethod:"walletconnectv2"},qs={logoutRoute:t,loginType:"walletconnectv2",callbackRoute:e!=null?e:window.location.href};l(Gt(qs)),ke&&m.setTokenLoginInfo({signature:ke,address:ie}),l(X(Er)),Yt({callbackRoute:e,onLoginRedirect:i,options:{address:ie,signature:ke}})}catch(V){T("Invalid address"),console.error(V)}})}function D(O=!0){return S(this,null,function*(){if(!ce||!re){T("Invalid WalletConnect setup");return}let V={onClientLogin:P,onClientLogout:mt,onClientEvent:qe},G=new Os.WalletConnectV2Provider(V,pt,re,ce,je);yield G.init(),_e.current=!0,Te(G),U(G.pairings),B.current=G,O&&$()})}function W(O){return S(this,null,function*(){var V,G,ie;if(!re||!ce){T("Invalid WalletConnect setup");return}if(!O||!O.topic){T("Expired connection");return}try{let{approval:ke}=yield(V=B.current)==null?void 0:V.connect({topic:O.topic,methods:Oe});if(p&&!d&&(d=yield m.getNativeAuthLoginToken(),!d)){console.warn("Fetching block failed. Login cancelled.");return}d&&m.setLoginToken(d);try{yield(G=B.current)==null?void 0:G.login({approval:ke,token:d})}catch(Er){T("User rejected existing connection proposal"),I(!0),yield D()}}catch(ke){console.error("Unable to connect to existing session",ke),T("Unable to connect to existing session")}finally{U((ie=B.current)==null?void 0:ie.pairings)}})}function Y(O){return S(this,null,function*(){var V,G;try{O&&(yield(V=B.current)==null?void 0:V.logout({topic:O}))}catch(ie){console.error("Unable to remove existing pairing",ie),T("Unable to remove existing pairing")}finally{U((G=B.current)==null?void 0:G.pairings)}})}function $(){return S(this,null,function*(){var O,V;if(!re||!ce){T("Invalid WalletConnect setup");return}try{let{uri:G,approval:ie}=yield(O=B.current)==null?void 0:O.connect({methods:Oe});if(!Boolean(G))return;if(b(G),p&&!d&&(d=yield m.getNativeAuthLoginToken(),!d)){console.warn("Fetching block failed. Login cancelled.");return}d&&m.setLoginToken(d);try{yield(V=B.current)==null?void 0:V.login({approval:ie,token:d})}catch(Er){T("User rejected connection proposal"),I(!0),yield D()}}catch(G){console.error("Unable to connect",G)}})}let z=Boolean(g),ze=De();return[D,{error:g,loginFailed:z,isLoading:C&&!z,isLoggedIn:ze&&!z},{uriDeepLink:dt,walletConnectUri:f,cancelLogin:w,connectExisting:W,removeExistingPairing:Y,wcPairings:v}]};q();J();H();n();n();var Us=e=>{let t=new URLSearchParams(e).toString(),{pathname:r}=window.location,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window.history.replaceState({},document==null?void 0:document.title,i)})};var Bs=e=>{var o;let t={};if((o=window==null?void 0:window.location)!=null&&o.search){let i=new URLSearchParams(window.location.search);t=Object.fromEntries(i)}let r={};return e.forEach(i=>{r[i]=t[i],delete t[i]}),{remainingParams:r,clearNavigationHistory:()=>Us(t)}};n();var Vs=require("react");n();q();J();Z();function $s(e,t){let r=Ir(e);if(r==null)return;let o=t!=null?t:L.dispatch,{signature:i,address:l}=r;i&&e&&l&&(o(_()),setTimeout(()=>{o(Ee({loginToken:e,signature:i,nativeAuthToken:e})),o(X({address:l,loginMethod:"extra"}))}))}function Ws(){var l;let e=fe(),t=typeof window!="undefined"?(l=window==null?void 0:window.location)==null?void 0:l.search:"",r=new URLSearchParams(t),o=Object.fromEntries(r),i=o==null?void 0:o.accessToken;(0,Vs.useEffect)(()=>{$s(i,e)},[i])}function Il(){let e=E(Ce),t=E(di),r=E(ui),o=E(pr),i=E(Ve),l=E(pi),p=E(mi),m=E(We),d=E(gi),[g,T]=(0,be.useState)(),f=E(ur),b=f==null?void 0:f.nativeAuthConfig,C=ct(b||!1),I=(0,be.useRef)(!1),v=fe();Ws();let{callbackRoute:U,logoutRoute:N}=t||{callbackRoute:"",logoutRoute:""},[re]=_s({callbackRoute:U,logoutRoute:N}),[ce]=Fs({callbackRoute:U,logoutRoute:N});(0,be.useEffect)(()=>{je()},[e]),(0,be.useEffect)(()=>{qe()},[r]),(0,be.useEffect)(()=>{ut()},[i,e]),(0,be.useEffect)(()=>{pt()},[l,m,g]);function je(){return S(this,null,function*(){try{let w=yield us();w&&v(Ko(w.erd_chain_id))}catch(w){console.error("failed refreshing chainId ",w)}})}function pt(){l==null&&p!=null&&g&&v(No({index:p.index,address:i,hasContractDataEnabled:g.dataEnabled,version:g.version}))}function ut(){return S(this,null,function*(){if(v(tt(!0)),I.current){I.current=!1,v(tt(!1));return}if(i)try{let w=yield Nt(i);w&&v(et(k(h({},w),{address:i,nonce:w.nonce.valueOf()})))}catch(w){v(Do("Failed getting account")),console.error("Failed getting account ",w)}v(tt(!1))})}function B(){return S(this,null,function*(){let w=Ss(e.walletAddress);if(Te(w),o!=null){try{let P=yield Re(),{clearNavigationHistory:D,remainingParams:{signature:W}}=Bs(["signature","loginToken","address"]);if(!P)return Te(Lt),v(Ee(null)),v(Qr(null)),D();W&&C.setTokenLoginInfo({signature:W,address:P});let Y=yield Nt(P);Y&&(I.current=!0,v(tt(!0)),v(X({address:P,loginMethod:"wallet"})),v(et(k(h({},Y),{nonce:Cn(Y)}))),v(tt(!1))),D()}catch(P){console.error("Failed authenticating wallet user ",P)}v(Qr(null))}})}function _e(){return S(this,null,function*(){let w=new Hs.HWProvider,P=w.isInitialized();if(P||(P=yield w.init()),!P&&m){console.warn("Could not initialise ledger app"),He(d);return}return(p==null?void 0:p.index)!=null&&(w.addressIndex=p.index),w})}function Oe(){return S(this,null,function*(){try{let w=yield _e();if(!w)return;let P=yield ws(w);Te(w),T(P)}catch(w){console.error("Could not initialise ledger app",w),He(d)}})}function dt(){return S(this,null,function*(){try{let w=yield Re(),P=Gs.ExtensionProvider.getInstance().setAddress(w);(yield P.init())?Te(P):console.error("Could not initialise extension, make sure MultiversX wallet extension is installed.")}catch(w){console.error("Unable to login to ExtensionProvider",w)}})}function mt(){return S(this,null,function*(){try{let w=yield Re(),P=js.OperaProvider.getInstance().setAddress(w);(yield P.init())?Te(P):console.error("Could not initialise opera crypto wallet, make sure that opera crypto wallet is installed.")}catch(w){console.error("Unable to login to OperaProvider",w)}})}function qe(){if(r!=null)switch(r){case"ledger":{Oe();break}case"walletconnect":{re(!1);break}case"walletconnectv2":{ce(!1);break}case"extension":{dt();break}case"opera":{mt();break}case"extra":{As();break}case"wallet":case"":{B();break}default:return}}return null}0&&(module.exports={ProviderInitializer});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Lr=Object.create;var P=Object.defineProperty;var _r=Object.getOwnPropertyDescriptor;var Er=Object.getOwnPropertyNames;var Rr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty;var Ur=(t,r)=>()=>(t&&(r=t(t=0)),r);var M=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Dr=(t,r)=>{for(var e in r)P(t,e,{get:r[e],enumerable:!0})},ir=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Er(r))!Cr.call(t,i)&&i!==e&&P(t,i,{get:()=>r[i],enumerable:!(n=_r(r,i))||n.enumerable});return t};var ar=(t,r,e)=>(e=t!=null?Lr(Rr(t)):{},ir(r||!t||!t.__esModule?P(e,"default",{value:t,enumerable:!0}):e,t)),Nr=t=>ir(P({},"__esModule",{value:!0}),t);var pr=M(G=>{"use strict";g();G.byteLength=Mr;G.toByteArray=Or;G.fromByteArray=Yr;var F=[],v=[],Pr=typeof Uint8Array!="undefined"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,or=z.length;_<or;++_)F[_]=z[_],v[z.charCodeAt(_)]=_;var _,or;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function sr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function Mr(t){var r=sr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function Gr(t,r,e){return(r+e)*3/4-e}function Or(t){var r,e=sr(t),n=e[0],i=e[1],a=new Pr(Gr(t,n,i)),o=0,p=i>0?n-4:n,u;for(u=0;u<p;u+=4)r=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=r&255),i===1&&(r=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function Hr(t){return F[t>>18&63]+F[t>>12&63]+F[t>>6&63]+F[t&63]}function qr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(Hr(n));return i.join("")}function Yr(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,p=e-n;o<p;o+=a)i.push(qr(t,o,o+a>p?p:o+a));return n===1?(r=t[e-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var ur=M(W=>{g();W.read=function(t,r,e,n,i){var a,o,p=i*8-n-1,u=(1<<p)-1,c=u>>1,f=-7,l=e?i-1:0,k=e?-1:1,T=t[r+l];for(l+=k,a=T&(1<<-f)-1,T>>=-f,f+=p;f>0;a=a*256+t[r+l],l+=k,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+t[r+l],l+=k,f-=8);if(a===0)a=1-c;else{if(a===u)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(T?-1:1)*o*Math.pow(2,a-n)};W.write=function(t,r,e,n,i,a){var o,p,u,c=a*8-i-1,f=(1<<c)-1,l=f>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:a-1,C=n?1:-1,Sr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(p=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+l>=1?r+=k/u:r+=k*Math.pow(2,1-l),r*u>=2&&(o++,u/=2),o+l>=f?(p=0,o=f):o+l>=1?(p=(r*u-1)*Math.pow(2,i),o=o+l):(p=r*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[e+T]=p&255,T+=C,p/=256,i-=8);for(o=o<<i|p,c+=i;c>0;t[e+T]=o&255,T+=C,o/=256,c-=8);t[e+T-C]|=Sr*128}});var kr=M(D=>{"use strict";g();var Q=pr(),U=ur(),lr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=s;D.SlowBuffer=Jr;D.INSPECT_MAX_BYTES=50;var O=2147483647;D.kMaxLength=O;s.TYPED_ARRAY_SUPPORT=zr();!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 zr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function B(t){if(t>O)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(t)}return gr(t,r,e)}s.poolSize=8192;function gr(t,r,e){if(typeof t=="string")return Qr(t,r);if(ArrayBuffer.isView(t))return Vr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return X(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,r,e);var i=Xr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return gr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function hr(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 Wr(t,r,e){return hr(t),t<=0?B(t):r!==void 0?typeof e=="string"?B(t).fill(r,e):B(t).fill(r):B(t)}s.alloc=function(t,r,e){return Wr(t,r,e)};function j(t){return hr(t),B(t<0?0:K(t)|0)}s.allocUnsafe=function(t){return j(t)};s.allocUnsafeSlow=function(t){return j(t)};function Qr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=dr(t,r)|0,n=B(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function V(t){for(var r=t.length<0?0:K(t.length)|0,e=B(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function Vr(t){if(I(t,Uint8Array)){var r=new Uint8Array(t);return X(r.buffer,r.byteOffset,r.byteLength)}return V(t)}function X(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function Xr(t){if(s.isBuffer(t)){var r=K(t.length)|0,e=B(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||Z(t.length)?B(0):V(t);if(t.type==="Buffer"&&Array.isArray(t.data))return V(t.data)}function K(t){if(t>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return t|0}function Jr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(I(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 dr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return vr(t).length;default:if(i)return n?-1:J(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=dr;function jr(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return oe(this,r,e);case"utf8":case"utf-8":return yr(this,r,e);case"ascii":return ie(this,r,e);case"latin1":case"binary":return ae(this,r,e);case"base64":return te(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function E(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)E(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):jr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=D.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};lr&&(s.prototype[lr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,p=n-e,u=Math.min(o,p),c=this.slice(i,a),f=r.slice(e,n),l=0;l<u;++l)if(c[l]!==f[l]){o=c[l],p=f[l];break}return o<p?-1:p<o?1:0};function mr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,Z(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:cr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):cr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function cr(t,r,e,n,i){var a=1,o=t.length,p=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,p/=2,e/=2}function u(T,C){return a===1?T[C]:T.readUInt16BE(C*a)}var c;if(i){var f=-1;for(c=e;c<o;c++)if(u(t,c)===u(r,f===-1?0:c-f)){if(f===-1&&(f=c),c-f+1===p)return f*a}else f!==-1&&(c-=c-f),f=-1}else for(e+p>o&&(e=o-p),c=e;c>=0;c--){for(var l=!0,k=0;k<p;k++)if(u(t,c+k)!==u(r,k)){l=!1;break}if(l)return c}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return mr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return mr(this,r,e,n,!1)};function Kr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var p=parseInt(r.substr(o*2,2),16);if(Z(p))return o;t[e+o]=p}return o}function Zr(t,r,e,n){return H(J(r,t.length-e),t,e,n)}function $r(t,r,e,n){return H(le(r),t,e,n)}function re(t,r,e,n){return H(vr(r),t,e,n)}function ee(t,r,e,n){return H(ce(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Kr(this,r,e,n);case"utf8":case"utf-8":return Zr(this,r,e,n);case"ascii":case"latin1":case"binary":return $r(this,r,e,n);case"base64":return re(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function te(t,r,e){return r===0&&e===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(r,e))}function yr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,p=a>239?4:a>223?3:a>191?2:1;if(i+p<=e){var u,c,f,l;switch(p){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(l=(a&31)<<6|u&63,l>127&&(o=l));break;case 3:u=t[i+1],c=t[i+2],(u&192)===128&&(c&192)===128&&(l=(a&15)<<12|(u&63)<<6|c&63,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:u=t[i+1],c=t[i+2],f=t[i+3],(u&192)===128&&(c&192)===128&&(f&192)===128&&(l=(a&15)<<18|(u&63)<<12|(c&63)<<6|f&63,l>65535&&l<1114112&&(o=l))}}o===null?(o=65533,p=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=p}return ne(n)}var fr=4096;function ne(t){var r=t.length;if(r<=fr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=fr));return e}function ie(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ae(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function oe(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=fe[t[a]];return i}function se(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function d(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||d(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||d(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||d(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||d(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||d(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||d(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||d(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||d(r,4,this.length),U.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||d(r,4,this.length),U.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||d(r,8,this.length),U.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||d(r,8,this.length),U.read(this,r,!1,52,8)};function w(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,r,e,n,a,0)}var o=1,p=0;for(this[e]=r&255;++p<n&&(o*=256);)this[e+p]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,r,e,n,a,0)}var o=n-1,p=1;for(this[e+o]=r&255;--o>=0&&(p*=256);)this[e+o]=r/p&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);w(this,r,e,n,a-1,-a)}var o=0,p=1,u=0;for(this[e]=r&255;++o<n&&(p*=256);)r<0&&u===0&&this[e+o-1]!==0&&(u=1),this[e+o]=(r/p>>0)-u&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);w(this,r,e,n,a-1,-a)}var o=n-1,p=1,u=0;for(this[e+o]=r&255;--o>=0&&(p*=256);)r<0&&u===0&&this[e+o+1]!==0&&(u=1),this[e+o]=(r/p>>0)-u&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function xr(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function wr(t,r,e,n,i){return r=+r,e=e>>>0,i||xr(t,r,e,4,34028234663852886e22,-34028234663852886e22),U.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return wr(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return wr(this,r,e,!1,n)};function Tr(t,r,e,n,i){return r=+r,e=e>>>0,i||xr(t,r,e,8,17976931348623157e292,-17976931348623157e292),U.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return Tr(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return Tr(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var p=s.isBuffer(r)?r:s.from(r,i),u=p.length;if(u===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=p[o%u]}return this};var pe=/[^+/0-9A-Za-z-_]/g;function ue(t){if(t=t.split("=")[0],t=t.trim().replace(pe,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function le(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ce(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function vr(t){return Q.toByteArray(ue(t))}function H(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function I(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function Z(t){return t!==t}var fe=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Br=M((be,Ar)=>{g();var h=Ar.exports={},b,A;function $(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=$}catch(t){b=$}try{typeof clearTimeout=="function"?A=clearTimeout:A=rr}catch(t){A=rr}})();function Fr(t){if(b===setTimeout)return setTimeout(t,0);if((b===$||!b)&&setTimeout)return b=setTimeout,setTimeout(t,0);try{return b(t,0)}catch(r){try{return b.call(null,t,0)}catch(e){return b.call(this,t,0)}}}function ge(t){if(A===clearTimeout)return clearTimeout(t);if((A===rr||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(r){try{return A.call(null,t)}catch(e){return A.call(this,t)}}}var S=[],N=!1,R,q=-1;function he(){!N||!R||(N=!1,R.length?S=R.concat(S):q=-1,S.length&&Ir())}function Ir(){if(!N){var t=Fr(he);N=!0;for(var r=S.length;r;){for(R=S,S=[];++q<r;)R&&R[q].run();q=-1,r=S.length}R=null,N=!1,ge(t)}}h.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];S.push(new br(t,r)),S.length===1&&!N&&Fr(Ir)};function br(t,r){this.fun=t,this.array=r}br.prototype.run=function(){this.fun.apply(null,this.array)};h.title="browser";h.browser=!0;h.env={};h.argv=[];h.version="";h.versions={};function L(){}h.on=L;h.addListener=L;h.once=L;h.off=L;h.removeListener=L;h.removeAllListeners=L;h.emit=L;h.prependListener=L;h.prependOnceListener=L;h.listeners=function(t){return[]};h.binding=function(t){throw new Error("process.binding is not supported")};h.cwd=function(){return"/"};h.chdir=function(t){throw new Error("process.chdir is not supported")};h.umask=function(){return 0}});var m,y,Ae,g=Ur(()=>{m=ar(kr()),y=ar(Br()),Ae=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Te={};Dr(Te,{DEVNET_CHAIN_ID:()=>er,DEVNET_EGLD_LABEL:()=>de,MAINNET_CHAIN_ID:()=>nr,MAINNET_EGLD_LABEL:()=>ye,TESTNET_CHAIN_ID:()=>tr,TESTNET_EGLD_LABEL:()=>me,chainIdByEnvironment:()=>xe,chainIdToEnvironment:()=>we,fallbackNetworkConfigurations:()=>Y});module.exports=Nr(Te);g();g();g();g();g();g();g();g();g();g();g();var Y={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:er,egldLabel:de}=Y["devnet"],{chainId:tr,egldLabel:me}=Y["testnet"],{chainId:nr,egldLabel:ye}=Y["mainnet"];var xe={["devnet"]:er,["testnet"]:tr,["mainnet"]:nr},we={[er]:"devnet",[tr]:"testnet",[nr]:"mainnet"};0&&(module.exports={DEVNET_CHAIN_ID,DEVNET_EGLD_LABEL,MAINNET_CHAIN_ID,MAINNET_EGLD_LABEL,TESTNET_CHAIN_ID,TESTNET_EGLD_LABEL,chainIdByEnvironment,chainIdToEnvironment,fallbackNetworkConfigurations});
|
|
1
|
+
"use strict";var Lr=Object.create;var P=Object.defineProperty;var _r=Object.getOwnPropertyDescriptor;var Er=Object.getOwnPropertyNames;var Rr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty;var Ur=(t,r)=>()=>(t&&(r=t(t=0)),r);var M=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Nr=(t,r)=>{for(var e in r)P(t,e,{get:r[e],enumerable:!0})},ir=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Er(r))!Cr.call(t,i)&&i!==e&&P(t,i,{get:()=>r[i],enumerable:!(n=_r(r,i))||n.enumerable});return t};var ar=(t,r,e)=>(e=t!=null?Lr(Rr(t)):{},ir(r||!t||!t.__esModule?P(e,"default",{value:t,enumerable:!0}):e,t)),Dr=t=>ir(P({},"__esModule",{value:!0}),t);var pr=M(G=>{"use strict";g();G.byteLength=Mr;G.toByteArray=Hr;G.fromByteArray=Yr;var F=[],v=[],Pr=typeof Uint8Array!="undefined"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,or=z.length;_<or;++_)F[_]=z[_],v[z.charCodeAt(_)]=_;var _,or;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function sr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function Mr(t){var r=sr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function Gr(t,r,e){return(r+e)*3/4-e}function Hr(t){var r,e=sr(t),n=e[0],i=e[1],a=new Pr(Gr(t,n,i)),o=0,p=i>0?n-4:n,u;for(u=0;u<p;u+=4)r=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=r&255),i===1&&(r=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function Or(t){return F[t>>18&63]+F[t>>12&63]+F[t>>6&63]+F[t&63]}function qr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(Or(n));return i.join("")}function Yr(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,p=e-n;o<p;o+=a)i.push(qr(t,o,o+a>p?p:o+a));return n===1?(r=t[e-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var ur=M(Q=>{g();Q.read=function(t,r,e,n,i){var a,o,p=i*8-n-1,u=(1<<p)-1,c=u>>1,f=-7,l=e?i-1:0,k=e?-1:1,T=t[r+l];for(l+=k,a=T&(1<<-f)-1,T>>=-f,f+=p;f>0;a=a*256+t[r+l],l+=k,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+t[r+l],l+=k,f-=8);if(a===0)a=1-c;else{if(a===u)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(T?-1:1)*o*Math.pow(2,a-n)};Q.write=function(t,r,e,n,i,a){var o,p,u,c=a*8-i-1,f=(1<<c)-1,l=f>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:a-1,C=n?1:-1,Sr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(p=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+l>=1?r+=k/u:r+=k*Math.pow(2,1-l),r*u>=2&&(o++,u/=2),o+l>=f?(p=0,o=f):o+l>=1?(p=(r*u-1)*Math.pow(2,i),o=o+l):(p=r*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[e+T]=p&255,T+=C,p/=256,i-=8);for(o=o<<i|p,c+=i;c>0;t[e+T]=o&255,T+=C,o/=256,c-=8);t[e+T-C]|=Sr*128}});var kr=M(N=>{"use strict";g();var W=pr(),U=ur(),lr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;N.Buffer=s;N.SlowBuffer=Jr;N.INSPECT_MAX_BYTES=50;var H=2147483647;N.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=zr();!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 zr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function B(t){if(t>H)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(t)}return gr(t,r,e)}s.poolSize=8192;function gr(t,r,e){if(typeof t=="string")return Wr(t,r);if(ArrayBuffer.isView(t))return Xr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return V(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,r,e);var i=Vr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return gr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function hr(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 Qr(t,r,e){return hr(t),t<=0?B(t):r!==void 0?typeof e=="string"?B(t).fill(r,e):B(t).fill(r):B(t)}s.alloc=function(t,r,e){return Qr(t,r,e)};function j(t){return hr(t),B(t<0?0:K(t)|0)}s.allocUnsafe=function(t){return j(t)};s.allocUnsafeSlow=function(t){return j(t)};function Wr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=dr(t,r)|0,n=B(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function X(t){for(var r=t.length<0?0:K(t.length)|0,e=B(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function Xr(t){if(I(t,Uint8Array)){var r=new Uint8Array(t);return V(r.buffer,r.byteOffset,r.byteLength)}return X(t)}function V(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function Vr(t){if(s.isBuffer(t)){var r=K(t.length)|0,e=B(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||Z(t.length)?B(0):X(t);if(t.type==="Buffer"&&Array.isArray(t.data))return X(t.data)}function K(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function Jr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(I(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 dr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return vr(t).length;default:if(i)return n?-1:J(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=dr;function jr(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return oe(this,r,e);case"utf8":case"utf-8":return yr(this,r,e);case"ascii":return ie(this,r,e);case"latin1":case"binary":return ae(this,r,e);case"base64":return te(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function E(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)E(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):jr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=N.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};lr&&(s.prototype[lr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,p=n-e,u=Math.min(o,p),c=this.slice(i,a),f=r.slice(e,n),l=0;l<u;++l)if(c[l]!==f[l]){o=c[l],p=f[l];break}return o<p?-1:p<o?1:0};function mr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,Z(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:cr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):cr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function cr(t,r,e,n,i){var a=1,o=t.length,p=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,p/=2,e/=2}function u(T,C){return a===1?T[C]:T.readUInt16BE(C*a)}var c;if(i){var f=-1;for(c=e;c<o;c++)if(u(t,c)===u(r,f===-1?0:c-f)){if(f===-1&&(f=c),c-f+1===p)return f*a}else f!==-1&&(c-=c-f),f=-1}else for(e+p>o&&(e=o-p),c=e;c>=0;c--){for(var l=!0,k=0;k<p;k++)if(u(t,c+k)!==u(r,k)){l=!1;break}if(l)return c}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return mr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return mr(this,r,e,n,!1)};function Kr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var p=parseInt(r.substr(o*2,2),16);if(Z(p))return o;t[e+o]=p}return o}function Zr(t,r,e,n){return O(J(r,t.length-e),t,e,n)}function $r(t,r,e,n){return O(le(r),t,e,n)}function re(t,r,e,n){return O(vr(r),t,e,n)}function ee(t,r,e,n){return O(ce(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Kr(this,r,e,n);case"utf8":case"utf-8":return Zr(this,r,e,n);case"ascii":case"latin1":case"binary":return $r(this,r,e,n);case"base64":return re(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function te(t,r,e){return r===0&&e===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(r,e))}function yr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,p=a>239?4:a>223?3:a>191?2:1;if(i+p<=e){var u,c,f,l;switch(p){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(l=(a&31)<<6|u&63,l>127&&(o=l));break;case 3:u=t[i+1],c=t[i+2],(u&192)===128&&(c&192)===128&&(l=(a&15)<<12|(u&63)<<6|c&63,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:u=t[i+1],c=t[i+2],f=t[i+3],(u&192)===128&&(c&192)===128&&(f&192)===128&&(l=(a&15)<<18|(u&63)<<12|(c&63)<<6|f&63,l>65535&&l<1114112&&(o=l))}}o===null?(o=65533,p=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=p}return ne(n)}var fr=4096;function ne(t){var r=t.length;if(r<=fr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=fr));return e}function ie(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ae(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function oe(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=fe[t[a]];return i}function se(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function d(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||d(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||d(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||d(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||d(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||d(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||d(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||d(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||d(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||d(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||d(r,4,this.length),U.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||d(r,4,this.length),U.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||d(r,8,this.length),U.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||d(r,8,this.length),U.read(this,r,!1,52,8)};function w(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,r,e,n,a,0)}var o=1,p=0;for(this[e]=r&255;++p<n&&(o*=256);)this[e+p]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,r,e,n,a,0)}var o=n-1,p=1;for(this[e+o]=r&255;--o>=0&&(p*=256);)this[e+o]=r/p&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);w(this,r,e,n,a-1,-a)}var o=0,p=1,u=0;for(this[e]=r&255;++o<n&&(p*=256);)r<0&&u===0&&this[e+o-1]!==0&&(u=1),this[e+o]=(r/p>>0)-u&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);w(this,r,e,n,a-1,-a)}var o=n-1,p=1,u=0;for(this[e+o]=r&255;--o>=0&&(p*=256);)r<0&&u===0&&this[e+o+1]!==0&&(u=1),this[e+o]=(r/p>>0)-u&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||w(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function xr(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function wr(t,r,e,n,i){return r=+r,e=e>>>0,i||xr(t,r,e,4,34028234663852886e22,-34028234663852886e22),U.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return wr(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return wr(this,r,e,!1,n)};function Tr(t,r,e,n,i){return r=+r,e=e>>>0,i||xr(t,r,e,8,17976931348623157e292,-17976931348623157e292),U.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return Tr(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return Tr(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var p=s.isBuffer(r)?r:s.from(r,i),u=p.length;if(u===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=p[o%u]}return this};var pe=/[^+/0-9A-Za-z-_]/g;function ue(t){if(t=t.split("=")[0],t=t.trim().replace(pe,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function le(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ce(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function vr(t){return W.toByteArray(ue(t))}function O(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function I(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function Z(t){return t!==t}var fe=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Br=M((be,Ar)=>{g();var h=Ar.exports={},b,A;function $(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=$}catch(t){b=$}try{typeof clearTimeout=="function"?A=clearTimeout:A=rr}catch(t){A=rr}})();function Fr(t){if(b===setTimeout)return setTimeout(t,0);if((b===$||!b)&&setTimeout)return b=setTimeout,setTimeout(t,0);try{return b(t,0)}catch(r){try{return b.call(null,t,0)}catch(e){return b.call(this,t,0)}}}function ge(t){if(A===clearTimeout)return clearTimeout(t);if((A===rr||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(r){try{return A.call(null,t)}catch(e){return A.call(this,t)}}}var S=[],D=!1,R,q=-1;function he(){!D||!R||(D=!1,R.length?S=R.concat(S):q=-1,S.length&&Ir())}function Ir(){if(!D){var t=Fr(he);D=!0;for(var r=S.length;r;){for(R=S,S=[];++q<r;)R&&R[q].run();q=-1,r=S.length}R=null,D=!1,ge(t)}}h.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];S.push(new br(t,r)),S.length===1&&!D&&Fr(Ir)};function br(t,r){this.fun=t,this.array=r}br.prototype.run=function(){this.fun.apply(null,this.array)};h.title="browser";h.browser=!0;h.env={};h.argv=[];h.version="";h.versions={};function L(){}h.on=L;h.addListener=L;h.once=L;h.off=L;h.removeListener=L;h.removeAllListeners=L;h.emit=L;h.prependListener=L;h.prependOnceListener=L;h.listeners=function(t){return[]};h.binding=function(t){throw new Error("process.binding is not supported")};h.cwd=function(){return"/"};h.chdir=function(t){throw new Error("process.chdir is not supported")};h.umask=function(){return 0}});var m,y,Ae,g=Ur(()=>{m=ar(kr()),y=ar(Br()),Ae=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Te={};Nr(Te,{DEVNET_CHAIN_ID:()=>er,DEVNET_EGLD_LABEL:()=>de,MAINNET_CHAIN_ID:()=>nr,MAINNET_EGLD_LABEL:()=>ye,TESTNET_CHAIN_ID:()=>tr,TESTNET_EGLD_LABEL:()=>me,chainIdByEnvironment:()=>xe,chainIdToEnvironment:()=>we,fallbackNetworkConfigurations:()=>Y});module.exports=Dr(Te);g();g();g();g();g();g();g();g();g();g();g();var Y={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:er,egldLabel:de}=Y["devnet"],{chainId:tr,egldLabel:me}=Y["testnet"],{chainId:nr,egldLabel:ye}=Y["mainnet"];var xe={["devnet"]:er,["testnet"]:tr,["mainnet"]:nr},we={[er]:"devnet",[tr]:"testnet",[nr]:"mainnet"};0&&(module.exports={DEVNET_CHAIN_ID,DEVNET_EGLD_LABEL,MAINNET_CHAIN_ID,MAINNET_EGLD_LABEL,TESTNET_CHAIN_ID,TESTNET_EGLD_LABEL,chainIdByEnvironment,chainIdToEnvironment,fallbackNetworkConfigurations});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|