@multiversx/sdk-dapp 2.12.7 → 2.12.9
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/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionData/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
- package/UI/TransactionInfo/components/DataField/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/AccountName.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-LBX3NVTC.js → chunk-25TTQGEX.js} +2 -2
- package/__chunks__/chunk-2BLNKKQV.js +2 -0
- package/__chunks__/chunk-2BTY3EO2.js +2 -0
- package/__chunks__/{chunk-KWX447BW.js → chunk-2PENUQYV.js} +2 -2
- package/__chunks__/{chunk-43KKXRC2.js → chunk-2PHNBV5S.js} +2 -2
- package/__chunks__/{chunk-OQEMXMDD.js → chunk-2SLPJGXG.js} +2 -2
- package/__chunks__/{chunk-HFQEDJ2B.js → chunk-3HZD5T6Q.js} +2 -2
- package/__chunks__/{chunk-GU3PXNAY.js → chunk-3IC3OYH5.js} +2 -2
- package/__chunks__/chunk-3OGDWVO7.js +2 -0
- package/__chunks__/{chunk-3JQJVPDO.js → chunk-3R7ET7XL.js} +2 -2
- package/__chunks__/chunk-3THCFE3J.js +2 -0
- package/__chunks__/{chunk-N2ZBQYKD.js → chunk-3WFJFXHY.js} +2 -2
- package/__chunks__/{chunk-BVZVVWO6.js → chunk-4CAZDF4D.js} +2 -2
- package/__chunks__/{chunk-KRXH6FKC.js → chunk-4FE3KVGP.js} +2 -2
- package/__chunks__/{chunk-WXFYRHD2.js → chunk-4JYZVFIV.js} +2 -2
- package/__chunks__/{chunk-ZMLTCUNQ.js → chunk-4KYCLIP2.js} +2 -2
- package/__chunks__/{chunk-OC7RHJY6.js → chunk-4T5TFHF6.js} +2 -2
- package/__chunks__/{chunk-A44Y55F7.js → chunk-4TCBBUSU.js} +2 -2
- package/__chunks__/{chunk-WROIAT2N.js → chunk-53Z7RDHU.js} +2 -2
- package/__chunks__/{chunk-7STA5D2T.js → chunk-56B7W2CE.js} +2 -2
- package/__chunks__/{chunk-4DGKR73R.js → chunk-56SUHXO3.js} +2 -2
- package/__chunks__/{chunk-LMH5D7PO.js → chunk-57NMXSRH.js} +2 -2
- package/__chunks__/{chunk-HLLGV3J2.js → chunk-5HZXCEQP.js} +2 -2
- package/__chunks__/{chunk-5RTGGHL7.js → chunk-5ICW6RLY.js} +2 -2
- package/__chunks__/{chunk-UHCLDQPY.js → chunk-5KKL6JIU.js} +2 -2
- package/__chunks__/{chunk-NGTYLR2P.js → chunk-5NDR2D3X.js} +2 -2
- package/__chunks__/chunk-5OHINNEN.js +2 -0
- package/__chunks__/chunk-5OYFXQSK.js +2 -0
- package/__chunks__/{chunk-YISI3TO4.js → chunk-5RPCQPBF.js} +2 -2
- package/__chunks__/{chunk-SINZVRGH.js → chunk-5WVG4JZ7.js} +2 -2
- package/__chunks__/{chunk-A5MGV2PF.js → chunk-5YGIUAD2.js} +2 -2
- package/__chunks__/{chunk-2YAOMBOW.js → chunk-5ZIX54TL.js} +2 -2
- package/__chunks__/{chunk-LNYWXGW7.js → chunk-6BNAALDP.js} +2 -2
- package/__chunks__/{chunk-A4OOIO54.js → chunk-6K4XJH5A.js} +2 -2
- package/__chunks__/{chunk-XD4W6G6Z.js → chunk-6OMJ6CE3.js} +2 -2
- package/__chunks__/{chunk-7CRTEUXQ.js → chunk-6QPBOXBF.js} +2 -2
- package/__chunks__/{chunk-N623YQX6.js → chunk-6WNGX2UB.js} +2 -2
- package/__chunks__/{chunk-RT4HX36Y.js → chunk-74BGZJCF.js} +2 -2
- package/__chunks__/chunk-75Q5SGBX.js +2 -0
- package/__chunks__/chunk-7ETWKK72.js +2 -0
- package/__chunks__/{chunk-6ACULWGS.js → chunk-7HNXQY2P.js} +2 -2
- package/__chunks__/chunk-7KVNUW4X.js +2 -0
- package/__chunks__/chunk-7N3S4X5Z.js +2 -0
- package/__chunks__/{chunk-WYNDSNTB.js → chunk-7UGNRV3L.js} +2 -2
- package/__chunks__/{chunk-XSU33MQE.js → chunk-7YF2VSF3.js} +2 -2
- package/__chunks__/chunk-7ZSWPMJ4.js +2 -0
- package/__chunks__/{chunk-WUCNNANV.js → chunk-A2CJZ723.js} +2 -2
- package/__chunks__/{chunk-TIQDH77C.js → chunk-AGTRHMNE.js} +2 -2
- package/__chunks__/{chunk-BDZY57A6.js → chunk-AHAGSUXW.js} +2 -2
- package/__chunks__/{chunk-42HHDBSD.js → chunk-AZUNNOQY.js} +2 -2
- package/__chunks__/{chunk-XKNQBRZO.js → chunk-B2SQFN7A.js} +2 -2
- package/__chunks__/{chunk-BZI5U74P.js → chunk-B76A3L37.js} +2 -2
- package/__chunks__/{chunk-M37NJUED.js → chunk-BB2CFNPA.js} +2 -2
- package/__chunks__/{chunk-QMAHFUXC.js → chunk-BKXGJHZ3.js} +2 -2
- package/__chunks__/{chunk-SGTU3REC.js → chunk-BMDDZG5S.js} +2 -2
- package/__chunks__/{chunk-5AT2CLST.js → chunk-BT4VUQHG.js} +2 -2
- package/__chunks__/{chunk-KJYPS4WM.js → chunk-BTVXK5F6.js} +2 -2
- package/__chunks__/chunk-BUNAZAQ2.js +2 -0
- package/__chunks__/{chunk-FX4ZAXUB.js → chunk-BVCSDUY7.js} +2 -2
- package/__chunks__/chunk-BZIYSYBS.js +2 -0
- package/__chunks__/chunk-C2O57ZZ3.js +2 -0
- package/__chunks__/{chunk-C46ILTGH.js → chunk-C3UPWTUL.js} +2 -2
- package/__chunks__/{chunk-INRJLH3K.js → chunk-C4JP2AAG.js} +2 -2
- package/__chunks__/{chunk-BFBJHILF.js → chunk-CE2CKTCJ.js} +2 -2
- package/__chunks__/{chunk-PFR5SUOK.js → chunk-CIY3BJYV.js} +2 -2
- package/__chunks__/{chunk-4NWSTAAZ.js → chunk-CLPQUX3I.js} +2 -2
- package/__chunks__/{chunk-GSAU65SR.js → chunk-CRFC2MYX.js} +1 -1
- package/__chunks__/{chunk-IE3ZZJWG.js → chunk-CS2PI52S.js} +2 -2
- package/__chunks__/{chunk-K4DOQKCI.js → chunk-CSONSW5S.js} +2 -2
- package/__chunks__/{chunk-U3IQKDUV.js → chunk-CXX3IDIG.js} +2 -2
- package/__chunks__/{chunk-D4GAJYCJ.js → chunk-DCD6EPNO.js} +2 -2
- package/__chunks__/{chunk-IB3UZXZV.js → chunk-DEHX5LRO.js} +2 -2
- package/__chunks__/{chunk-B3VMBKYV.js → chunk-DELOCRND.js} +2 -2
- package/__chunks__/{chunk-TPQDDLQV.js → chunk-DHI6DZRI.js} +2 -2
- package/__chunks__/{chunk-KCBVOAE5.js → chunk-DQAQI23Z.js} +2 -2
- package/__chunks__/{chunk-E6MPNKOA.js → chunk-DTARVI54.js} +2 -2
- package/__chunks__/{chunk-PW5QTCOQ.js → chunk-DZG4H2UO.js} +2 -2
- package/__chunks__/{chunk-PZZ4E52R.js → chunk-E2B7GAGB.js} +2 -2
- package/__chunks__/{chunk-2UCCB3MP.js → chunk-E3RKWI4F.js} +2 -2
- package/__chunks__/{chunk-H4XPIFVE.js → chunk-E5LS66QV.js} +2 -2
- package/__chunks__/{chunk-HOXLOOU2.js → chunk-EAK4AGOD.js} +2 -2
- package/__chunks__/{chunk-FBQHXG72.js → chunk-EDS2UEWP.js} +2 -2
- package/__chunks__/{chunk-CXFIBSLH.js → chunk-EHO2KJIN.js} +2 -2
- package/__chunks__/{chunk-3FNKFXI5.js → chunk-EIM6YCMX.js} +2 -2
- package/__chunks__/{chunk-UZUMPS4D.js → chunk-EK6G5G7U.js} +2 -2
- package/__chunks__/{chunk-ZTX5FNGQ.js → chunk-ELJKPLDZ.js} +2 -2
- package/__chunks__/chunk-EPKOUSPT.js +2 -0
- package/__chunks__/{chunk-LINILSAX.js → chunk-ERRCJ5WO.js} +2 -2
- package/__chunks__/{chunk-GXFGHRHG.js → chunk-ESUOJPFZ.js} +2 -2
- package/__chunks__/{chunk-UZJLDHFK.js → chunk-EZYQY5TX.js} +2 -2
- package/__chunks__/{chunk-OSOVIQYW.js → chunk-F5WM6Q4M.js} +2 -2
- package/__chunks__/{chunk-NHCAYUOL.js → chunk-FFPTTQ2Z.js} +2 -2
- package/__chunks__/{chunk-2CXJKNSP.js → chunk-FKMZQ6PI.js} +2 -2
- package/__chunks__/{chunk-VSOXJIE4.js → chunk-FLSN4Q5V.js} +2 -2
- package/__chunks__/{chunk-CM2GINJO.js → chunk-FPFBQQ56.js} +2 -2
- package/__chunks__/{chunk-TTWKANGP.js → chunk-FWJZ5654.js} +2 -2
- package/__chunks__/{chunk-AMMIWVOK.js → chunk-FWMS2ZOY.js} +2 -2
- package/__chunks__/{chunk-36LSGICN.js → chunk-FX6M2Z7X.js} +2 -2
- package/__chunks__/{chunk-H2RDZWXV.js → chunk-G5H7YRBS.js} +2 -2
- package/__chunks__/{chunk-54I3HE7Z.js → chunk-GCPJTM3M.js} +2 -2
- package/__chunks__/{chunk-ILQFJH3G.js → chunk-GGBYOLVR.js} +2 -2
- package/__chunks__/{chunk-3WXHT4F4.js → chunk-GXICS4HS.js} +2 -2
- package/__chunks__/{chunk-NKVZAB3K.js → chunk-GZIH5BDU.js} +2 -2
- package/__chunks__/{chunk-WIA67UCL.js → chunk-HC2MOVRO.js} +2 -2
- package/__chunks__/{chunk-J27DLS5B.js → chunk-HI2HYZIX.js} +2 -2
- package/__chunks__/{chunk-OB5OXBGC.js → chunk-HST2GGJ4.js} +2 -2
- package/__chunks__/{chunk-FWQBX5ZR.js → chunk-HTLZKHTZ.js} +2 -2
- package/__chunks__/{chunk-F6BJUWL4.js → chunk-I2SADEBF.js} +2 -2
- package/__chunks__/{chunk-P4JG3FOF.js → chunk-I5UOXQG3.js} +2 -2
- package/__chunks__/{chunk-A7T4ZPNP.js → chunk-IC4MBEJO.js} +2 -2
- package/__chunks__/{chunk-TRJJUI2H.js → chunk-IEO7HJFG.js} +2 -2
- package/__chunks__/{chunk-B76SBLRL.js → chunk-IFU3X6UL.js} +2 -2
- package/__chunks__/{chunk-BWVLB3EN.js → chunk-IGGV5BN5.js} +2 -2
- package/__chunks__/{chunk-I2ESI53D.js → chunk-IIMMZPAX.js} +2 -2
- package/__chunks__/{chunk-PHXT4KGL.js → chunk-ILVOI5JX.js} +2 -2
- package/__chunks__/{chunk-HM4ZNOAG.js → chunk-ILWO7NM5.js} +2 -2
- package/__chunks__/{chunk-UTYB5SVR.js → chunk-IT535HRO.js} +2 -2
- package/__chunks__/{chunk-UH2JJ2OH.js → chunk-ITEK3GYE.js} +2 -2
- package/__chunks__/{chunk-JSEXLEYA.js → chunk-ITKI3OPN.js} +2 -2
- package/__chunks__/{chunk-2JYLGADI.js → chunk-J2T752PE.js} +2 -2
- package/__chunks__/chunk-J3OGDCG6.js +2 -0
- package/__chunks__/chunk-JG3M6MK2.js +2 -0
- package/__chunks__/{chunk-EVT7EQKU.js → chunk-JIOI46EQ.js} +2 -2
- package/__chunks__/{chunk-MEYIRXHK.js → chunk-JRB42IEO.js} +2 -2
- package/__chunks__/{chunk-DR52VSGD.js → chunk-JRYWXEFU.js} +2 -2
- package/__chunks__/{chunk-YCDWRKZR.js → chunk-JTCS3OCP.js} +2 -2
- package/__chunks__/chunk-JXE4FVEW.js +2 -0
- package/__chunks__/{chunk-JURTWYMD.js → chunk-K3YZ6F2M.js} +2 -2
- package/__chunks__/chunk-K6C3JJYH.js +2 -0
- package/__chunks__/{chunk-NJUUQIZ7.js → chunk-K6FG7P75.js} +2 -2
- package/__chunks__/{chunk-U5CE3C53.js → chunk-K7AQ2IOB.js} +2 -2
- package/__chunks__/{chunk-6NACE4ST.js → chunk-KGRMH2D7.js} +2 -2
- package/__chunks__/chunk-KL2XL2VN.js +2 -0
- package/__chunks__/{chunk-KYUV4GGN.js → chunk-KLFHVD2M.js} +2 -2
- package/__chunks__/{chunk-PUXPL4MQ.js → chunk-KOCSFAOU.js} +2 -2
- package/__chunks__/{chunk-2ZZI3WWK.js → chunk-KQWUKJ5U.js} +2 -2
- package/__chunks__/chunk-KTELSCIW.js +2 -0
- package/__chunks__/{chunk-35NDQJYP.js → chunk-KYLDQLLP.js} +2 -2
- package/__chunks__/{chunk-5U7BHTBF.js → chunk-L4V3H4JN.js} +2 -2
- package/__chunks__/{chunk-3F7ZGRBB.js → chunk-L7CJYIRS.js} +2 -2
- package/__chunks__/chunk-LDLA5E7Y.js +2 -0
- package/__chunks__/{chunk-DP5HIL2M.js → chunk-LHPTACPO.js} +2 -2
- package/__chunks__/chunk-LI6PILSE.js +2 -0
- package/__chunks__/{chunk-LY757UDU.js → chunk-LKA7Z7XC.js} +2 -2
- package/__chunks__/{chunk-5HE6XUP4.js → chunk-LQYR4BQ4.js} +2 -2
- package/__chunks__/{chunk-AQ72WZBJ.js → chunk-LWWTVBER.js} +2 -2
- package/__chunks__/{chunk-XAGUELOI.js → chunk-LXWSWQO6.js} +2 -2
- package/__chunks__/{chunk-CDXLD3UX.js → chunk-LYF73EYO.js} +2 -2
- package/__chunks__/{chunk-LLKFSQJL.js → chunk-LZCS6ZYF.js} +2 -2
- package/__chunks__/{chunk-ZB5LRSUA.js → chunk-M2KURDCA.js} +2 -2
- package/__chunks__/chunk-MCKCARUG.js +2 -0
- package/__chunks__/chunk-MDEPBFNH.js +2 -0
- package/__chunks__/{chunk-UBGMYFYP.js → chunk-MDMDP7M4.js} +2 -2
- package/__chunks__/{chunk-URBTPPJQ.js → chunk-MEXHP4J3.js} +2 -2
- package/__chunks__/{chunk-E2X4CGZA.js → chunk-MGBNT5YC.js} +2 -2
- package/__chunks__/{chunk-EBNTLOIS.js → chunk-MMAQX7PZ.js} +2 -2
- package/__chunks__/{chunk-75DEF6KS.js → chunk-MMCZF45U.js} +2 -2
- package/__chunks__/{chunk-H2BDW4MQ.js → chunk-MV2L3RS5.js} +2 -2
- package/__chunks__/{chunk-UCZZ5H3Z.js → chunk-N4IWZRB4.js} +2 -2
- package/__chunks__/{chunk-BCXMOBSF.js → chunk-NAJM6SVE.js} +2 -2
- package/__chunks__/{chunk-ZXNFWJMH.js → chunk-NDJAQW5J.js} +2 -2
- package/__chunks__/{chunk-WWNMJLSX.js → chunk-NEJ5Y74B.js} +2 -2
- package/__chunks__/{chunk-NFTBRNA6.js → chunk-NFDTTOW7.js} +2 -2
- package/__chunks__/chunk-NGPND2WV.js +2 -0
- package/__chunks__/chunk-NOCNQEU6.js +2 -0
- package/__chunks__/{chunk-LNHJAXRU.js → chunk-NS3ODARJ.js} +2 -2
- package/__chunks__/{chunk-2JUQFS4O.js → chunk-NSFUSSUS.js} +2 -2
- package/__chunks__/{chunk-MAYO43ZD.js → chunk-NV6DLGYN.js} +2 -2
- package/__chunks__/{chunk-PVWWYI7D.js → chunk-NWGR33VA.js} +2 -2
- package/__chunks__/{chunk-VXNIDAW4.js → chunk-O2RCWISO.js} +2 -2
- package/__chunks__/{chunk-6RBPUPPU.js → chunk-O2V4CCMX.js} +2 -2
- package/__chunks__/{chunk-VXBWTSBA.js → chunk-O6MB6XKF.js} +2 -2
- package/__chunks__/{chunk-ZDEX2UMS.js → chunk-O6PZUAGB.js} +2 -2
- package/__chunks__/{chunk-AIQDX6K7.js → chunk-OBCB5GTS.js} +2 -2
- package/__chunks__/chunk-OGZDVTVE.js +2 -0
- package/__chunks__/{chunk-XD6XBD7M.js → chunk-OLNZJW3Z.js} +2 -2
- package/__chunks__/chunk-OMMQASLV.js +2 -0
- package/__chunks__/{chunk-PLHSIUIH.js → chunk-OSQQHPZM.js} +2 -2
- package/__chunks__/chunk-OVUMMVEK.js +2 -0
- package/__chunks__/{chunk-PED733EL.js → chunk-OXFLL7Y7.js} +2 -2
- package/__chunks__/chunk-P4YFVYE7.js +2 -0
- package/__chunks__/chunk-P7DX33YP.js +2 -0
- package/__chunks__/{chunk-W3ODGIKR.js → chunk-PCTAH6TR.js} +2 -2
- package/__chunks__/{chunk-COWK2W2W.js → chunk-PEMMY7FF.js} +2 -2
- package/__chunks__/{chunk-GZKFOA62.js → chunk-PEXA24OF.js} +2 -2
- package/__chunks__/{chunk-SWWGJTL5.js → chunk-PEY3BQ4R.js} +2 -2
- package/__chunks__/{chunk-56CSBJOA.js → chunk-PHIGKLSY.js} +2 -2
- package/__chunks__/chunk-PKHVN6YW.js +2 -0
- package/__chunks__/{chunk-ZM53UQ5W.js → chunk-PTVVMPSO.js} +2 -2
- package/__chunks__/{chunk-B5VQE4H2.js → chunk-PWH7DEFN.js} +2 -2
- package/__chunks__/{chunk-BDCWCPQD.js → chunk-PWR23BXD.js} +2 -2
- package/__chunks__/{chunk-YCH3M7LC.js → chunk-QEIPCSYQ.js} +2 -2
- package/__chunks__/{chunk-6DXVSPG6.js → chunk-QEKJFGEB.js} +2 -2
- package/__chunks__/{chunk-OHO5WVJC.js → chunk-QOEVYQ2J.js} +2 -2
- package/__chunks__/{chunk-SXQZTZRH.js → chunk-QW7HUS66.js} +2 -2
- package/__chunks__/{chunk-WGPDVKY5.js → chunk-QYHSBCZR.js} +2 -2
- package/__chunks__/{chunk-UX5PTPXR.js → chunk-QYNWZBUP.js} +2 -2
- package/__chunks__/{chunk-257M3QTY.js → chunk-R3SPPNHA.js} +2 -2
- package/__chunks__/{chunk-RKD5TB6H.js → chunk-R3SUSW6U.js} +2 -2
- package/__chunks__/{chunk-NTPBZBNQ.js → chunk-R7OFX7MT.js} +2 -2
- package/__chunks__/chunk-RAUSH6GD.js +2 -0
- package/__chunks__/chunk-RAXVRHEC.js +2 -0
- package/__chunks__/chunk-RISXNP5I.js +2 -0
- package/__chunks__/{chunk-CVNDZP76.js → chunk-RK7YWC7M.js} +2 -2
- package/__chunks__/chunk-RVTMBFZS.js +2 -0
- package/__chunks__/{chunk-CLPLALDF.js → chunk-RXPUGEMI.js} +2 -2
- package/__chunks__/{chunk-BYMPKNIX.js → chunk-RZUBAC4F.js} +2 -2
- package/__chunks__/{chunk-MFTEMWCU.js → chunk-S35I45ZQ.js} +2 -2
- package/__chunks__/{chunk-S6OFZ37Q.js → chunk-S6IMA7JA.js} +2 -2
- package/__chunks__/chunk-S6QS6J5L.js +2 -0
- package/__chunks__/chunk-S7HOS4OW.js +2 -0
- package/__chunks__/{chunk-G22LQ54W.js → chunk-SEOGCMB7.js} +2 -2
- package/__chunks__/{chunk-RCTS4E7X.js → chunk-SGABRPP2.js} +2 -2
- package/__chunks__/{chunk-ARN4TXNS.js → chunk-SGR4M32T.js} +2 -2
- package/__chunks__/{chunk-I75FKBLR.js → chunk-SO35Z4MW.js} +2 -2
- package/__chunks__/{chunk-4AI2UPIX.js → chunk-SPYQGKPN.js} +2 -2
- package/__chunks__/{chunk-6SQUT3SR.js → chunk-SQZGFLHB.js} +2 -2
- package/__chunks__/{chunk-TPFN52IW.js → chunk-SUJQA2GW.js} +2 -2
- package/__chunks__/{chunk-OUA5FLAV.js → chunk-SXIYWPTT.js} +2 -2
- package/__chunks__/{chunk-TYFF6L6K.js → chunk-SYFNYNRB.js} +2 -2
- package/__chunks__/{chunk-5LAIPB3D.js → chunk-SYGJB5IB.js} +2 -2
- package/__chunks__/{chunk-GWOBNRCO.js → chunk-T3H7IRS4.js} +2 -2
- package/__chunks__/chunk-T73GS72T.js +2 -0
- package/__chunks__/chunk-TILRG3KA.js +2 -0
- package/__chunks__/{chunk-IKIIFVAO.js → chunk-TIUQ37EG.js} +2 -2
- package/__chunks__/{chunk-6PBOXKX6.js → chunk-TN2C4EIK.js} +2 -2
- package/__chunks__/{chunk-EWPZVDAB.js → chunk-TPXVUJ4F.js} +2 -2
- package/__chunks__/{chunk-XPTZTIQ2.js → chunk-TQBVGRQJ.js} +2 -2
- package/__chunks__/{chunk-BX66MXW6.js → chunk-TSA6LFXL.js} +2 -2
- package/__chunks__/{chunk-OQFYWEIS.js → chunk-TUTBPOOU.js} +2 -2
- package/__chunks__/{chunk-HLAK36TW.js → chunk-TWVF7JWR.js} +2 -2
- package/__chunks__/{chunk-M2OXT3YO.js → chunk-U7MX6NMH.js} +2 -2
- package/__chunks__/{chunk-2AJOFYAV.js → chunk-UIVAIKSB.js} +2 -2
- package/__chunks__/{chunk-GVTQCXHP.js → chunk-UNO2T253.js} +2 -2
- package/__chunks__/{chunk-Q5C2SPDB.js → chunk-UNV3HNHX.js} +2 -2
- package/__chunks__/{chunk-IH33TIUO.js → chunk-UOWJXU7B.js} +2 -2
- package/__chunks__/{chunk-MRKRIB2A.js → chunk-UPAK55WQ.js} +2 -2
- package/__chunks__/{chunk-3GFG2A3U.js → chunk-V6TTX2GU.js} +2 -2
- package/__chunks__/chunk-V72DHDIE.js +2 -0
- package/__chunks__/{chunk-QXKIAILM.js → chunk-VAZCKIPF.js} +2 -2
- package/__chunks__/{chunk-4XMP5GTT.js → chunk-VKB64W7O.js} +2 -2
- package/__chunks__/{chunk-LOXGOWPI.js → chunk-VOBCK75J.js} +2 -2
- package/__chunks__/{chunk-4WHOJTZJ.js → chunk-VR6NBMGB.js} +2 -2
- package/__chunks__/chunk-VTUFVU5E.js +2 -0
- package/__chunks__/{chunk-RIJFBAYV.js → chunk-VVNOAZCN.js} +2 -2
- package/__chunks__/{chunk-Y3M4BQAH.js → chunk-VVNRFT4C.js} +2 -2
- package/__chunks__/{chunk-W3VTDJN2.js → chunk-VWJGXL3X.js} +2 -2
- package/__chunks__/{chunk-OUT3EF54.js → chunk-VX4YFYDE.js} +2 -2
- package/__chunks__/{chunk-JSYZ5XXA.js → chunk-W4VUUW4H.js} +2 -2
- package/__chunks__/{chunk-2VADEZKQ.js → chunk-W5VCGTY2.js} +2 -2
- package/__chunks__/{chunk-VKGQWWOB.js → chunk-WBROSYRH.js} +2 -2
- package/__chunks__/{chunk-KO26IQAN.js → chunk-WDIVU4TD.js} +2 -2
- package/__chunks__/{chunk-WDAY7K7O.js → chunk-WG32V2A5.js} +2 -2
- package/__chunks__/{chunk-NMJ6LNLI.js → chunk-WJOKG7OZ.js} +2 -2
- package/__chunks__/chunk-WRHANSVT.js +2 -0
- package/__chunks__/{chunk-TPS5KPXT.js → chunk-XBBPF73Z.js} +2 -2
- package/__chunks__/chunk-XCCT4TST.js +2 -0
- package/__chunks__/chunk-XKEURXOS.js +2 -0
- package/__chunks__/{chunk-RMWACIBX.js → chunk-XKGH4TXG.js} +2 -2
- package/__chunks__/{chunk-75GJK2GI.js → chunk-XQWVYVIL.js} +2 -2
- package/__chunks__/{chunk-JRSSYB2W.js → chunk-XUPYKS5D.js} +2 -2
- package/__chunks__/{chunk-A2UHFBXC.js → chunk-XWNVIHRK.js} +2 -2
- package/__chunks__/{chunk-MWQ7XWJ3.js → chunk-XY3MUJLX.js} +2 -2
- package/__chunks__/{chunk-IPHQVCKI.js → chunk-XZQYMTBX.js} +2 -2
- package/__chunks__/{chunk-4NQAIS37.js → chunk-Y4WVBCUE.js} +2 -2
- package/__chunks__/{chunk-G2WKJ6KK.js → chunk-Y6RIVHS3.js} +2 -2
- package/__chunks__/{chunk-CMXICFOE.js → chunk-Y7MXTBUL.js} +2 -2
- package/__chunks__/{chunk-TLFTE6OC.js → chunk-YE3SEFOS.js} +2 -2
- package/__chunks__/chunk-YNX3IGV3.js +2 -0
- package/__chunks__/{chunk-S5GCXB6J.js → chunk-YPR6PABP.js} +2 -2
- package/__chunks__/chunk-Z2B7ZPZQ.js +2 -0
- package/__chunks__/{chunk-HIONU7XT.js → chunk-Z2TCNCR5.js} +2 -2
- package/__chunks__/chunk-Z3L3GZGW.js +2 -0
- package/__chunks__/{chunk-7AD356MZ.js → chunk-Z5IV5H2B.js} +2 -2
- package/__chunks__/{chunk-CYKNXV5A.js → chunk-Z6T4QJTP.js} +2 -2
- package/__chunks__/{chunk-ND27OJ7I.js → chunk-ZAOOJQI2.js} +2 -2
- package/__chunks__/{chunk-NV22SU2V.js → chunk-ZB5AGTC4.js} +2 -2
- package/__chunks__/{chunk-XHHKUZ2U.js → chunk-ZBORIYHN.js} +2 -2
- package/__chunks__/chunk-ZCIQDTNG.js +2 -0
- package/__chunks__/{chunk-4UY6RTXV.js → chunk-ZGL5N2CM.js} +2 -2
- package/__chunks__/{chunk-LAZU73S2.js → chunk-ZH7PXPQS.js} +2 -2
- package/__chunks__/{chunk-VMW2UT4I.js → chunk-ZIEQGTNV.js} +2 -2
- package/__chunks__/{chunk-UQDIW6ZF.js → chunk-ZPDYQNBF.js} +2 -2
- package/__chunks__/{chunk-QWNXAJRR.js → chunk-ZYI33ZZI.js} +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +21 -21
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +6 -6
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +6 -6
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +6 -6
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +6 -6
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +14 -14
- package/__commonjs/UI/SignTransactionsModals/components/index.js +14 -14
- package/__commonjs/UI/SignTransactionsModals/index.js +21 -21
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +5 -5
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/index.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +2 -2
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +9 -9
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/index.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +9 -9
- package/__commonjs/UI/index.js +52 -52
- package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +5 -5
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +5 -5
- package/__commonjs/UI/ledger/index.js +7 -7
- package/__commonjs/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/__commonjs/constants/network.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/signMessage/useSignMessage.d.ts +1 -4
- package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
- package/__commonjs/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/__commonjs/hooks/transactions/index.js +1 -1
- package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
- package/__commonjs/services/index.js +1 -1
- package/__commonjs/services/transactions/index.js +1 -1
- package/__commonjs/services/transactions/sendTransactions.d.ts +1 -1
- package/__commonjs/services/transactions/sendTransactions.js +1 -1
- package/__commonjs/types/transactions.types.d.ts +1 -0
- package/__commonjs/types/transactions.types.js +1 -1
- package/__commonjs/utils/logout.js +1 -1
- package/__commonjs/utils/operations/calculateFeeLimit.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/LoginInfoListener.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.d.ts +1 -4
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/transactions/batch/useGetBatches.js +1 -1
- package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/hooks/transactions/batch/useTrackBatchTransactions.js +1 -1
- package/hooks/transactions/batch/useUpdateBatch.js +1 -1
- package/hooks/transactions/batch/useUpdateBatches.js +1 -1
- package/hooks/transactions/helpers/checkNeedsGuardianSigning.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/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/models/index.js +1 -1
- package/models/newTransaction.js +1 -1
- package/package.json +1 -1
- package/providers/accountProvider.js +1 -1
- package/providers/index.js +1 -1
- package/providers/utils.js +1 -1
- package/providers/webviewProvider/index.js +1 -1
- package/providers/webviewProvider/requestMethods.js +1 -1
- package/providers/webviewProvider/webviewProvider.js +1 -1
- package/reduxStore/DappProviderContext.js +1 -1
- package/reduxStore/commonActions.js +1 -1
- package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/reduxStore/persistConfig.js +1 -1
- package/reduxStore/persistedRootReducer.js +1 -1
- package/reduxStore/reducers.js +1 -1
- package/reduxStore/rootReducer.js +1 -1
- package/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/reduxStore/selectors/batchTransactionsSelectors.js +1 -1
- package/reduxStore/selectors/dappConfigSelector.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/batchTransactionsSlice.js +1 -1
- package/reduxStore/slices/dappConfigSlice.js +1 -1
- package/reduxStore/slices/dappModalsSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/slices/modalsSlice.js +1 -1
- package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/reduxStore/slices/toastsSlice.js +1 -1
- package/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/reduxStore/slices/transactionsSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
- package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/getBatchTransactionsStatus.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendBatchTransactions.js +1 -1
- package/services/transactions/sendTransactions.d.ts +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/index.js +1 -1
- package/types/transactions.types.d.ts +1 -0
- package/types/transactions.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/smartContracts.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/batch/updateBatchTransactionsStatuses.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/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/removeTransactionParamsFromUrl.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/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/validation/index.js +1 -1
- package/utils/validation/maxDecimals.js +1 -1
- package/utils/validation/stringIsFloat.js +1 -1
- package/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
- package/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-22OLJZCS.js +0 -2
- package/__chunks__/chunk-2P64IWEV.js +0 -2
- package/__chunks__/chunk-2TQ727TI.js +0 -2
- package/__chunks__/chunk-3E66U4NM.js +0 -2
- package/__chunks__/chunk-3HSI224D.js +0 -2
- package/__chunks__/chunk-4EVPEAAC.js +0 -2
- package/__chunks__/chunk-4ROA4IAP.js +0 -2
- package/__chunks__/chunk-554M7MC7.js +0 -2
- package/__chunks__/chunk-5IYO3P75.js +0 -2
- package/__chunks__/chunk-64OFEAPQ.js +0 -2
- package/__chunks__/chunk-64X5ELCG.js +0 -2
- package/__chunks__/chunk-67VZTXQO.js +0 -2
- package/__chunks__/chunk-7MBSMSCD.js +0 -2
- package/__chunks__/chunk-A3M2ZT2N.js +0 -2
- package/__chunks__/chunk-CAH5U2BC.js +0 -2
- package/__chunks__/chunk-D2YE4NU4.js +0 -2
- package/__chunks__/chunk-DDBXHWTW.js +0 -2
- package/__chunks__/chunk-E7ZMJK5T.js +0 -2
- package/__chunks__/chunk-EDUVKTUJ.js +0 -2
- package/__chunks__/chunk-EFR4FYH4.js +0 -2
- package/__chunks__/chunk-FHFSY4UV.js +0 -2
- package/__chunks__/chunk-GWOGB4RR.js +0 -2
- package/__chunks__/chunk-GZVP3ZXI.js +0 -2
- package/__chunks__/chunk-IW6SN7BF.js +0 -2
- package/__chunks__/chunk-JCNIVUOH.js +0 -2
- package/__chunks__/chunk-JQEIHESA.js +0 -2
- package/__chunks__/chunk-KV7GLUXD.js +0 -2
- package/__chunks__/chunk-LMFYIKOH.js +0 -2
- package/__chunks__/chunk-MLXPX23B.js +0 -2
- package/__chunks__/chunk-MXTJ27RN.js +0 -2
- package/__chunks__/chunk-N6SXDXRI.js +0 -2
- package/__chunks__/chunk-O5OTL554.js +0 -2
- package/__chunks__/chunk-OWRF45PP.js +0 -2
- package/__chunks__/chunk-OY6DZ7KU.js +0 -2
- package/__chunks__/chunk-P3DNG2RV.js +0 -2
- package/__chunks__/chunk-PCR2WU5P.js +0 -2
- package/__chunks__/chunk-Q4DPGKGE.js +0 -2
- package/__chunks__/chunk-R2BKZWTD.js +0 -2
- package/__chunks__/chunk-REFNSRHX.js +0 -2
- package/__chunks__/chunk-SB6Q3PIL.js +0 -2
- package/__chunks__/chunk-SWEULXYJ.js +0 -2
- package/__chunks__/chunk-T7V7454F.js +0 -2
- package/__chunks__/chunk-VRY2YA2B.js +0 -2
- package/__chunks__/chunk-VT4SCB2Q.js +0 -2
- package/__chunks__/chunk-WG2WVJQW.js +0 -2
- package/__chunks__/chunk-X6PPFAJP.js +0 -2
- package/__chunks__/chunk-XRVWJ3RL.js +0 -2
- package/__chunks__/chunk-XSXPHHSS.js +0 -2
- package/__chunks__/chunk-ZGKYWFGV.js +0 -2
- package/__chunks__/chunk-ZWEMOICZ.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Mi=Object.create;var ke=Object.defineProperty,_i=Object.defineProperties,Oi=Object.getOwnPropertyDescriptor,Fi=Object.getOwnPropertyDescriptors,Ui=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,Bi=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable;var Gr=(e,t,r)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Vt.call(t,r)&&Gr(e,r,t[r]);if(He)for(var r of He(t))Wr.call(t,r)&&Gr(e,r,t[r]);return e},S=(e,t)=>_i(e,Fi(t));var qe=(e,t)=>{var r={};for(var o in e)Vt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&He)for(var o of He(e))t.indexOf(o)<0&&Wr.call(e,o)&&(r[o]=e[o]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),le=(e,t)=>{for(var r in t)ke(e,r,{get:t[r],enumerable:!0})},Hr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ui(t))!Vt.call(e,i)&&i!==r&&ke(e,i,{get:()=>t[i],enumerable:!(o=Oi(t,i))||o.enumerable});return e};var w=(e,t,r)=>(r=e!=null?Mi(Bi(e)):{},Hr(t||!e||!e.__esModule?ke(r,"default",{value:e,enumerable:!0}):r,e)),Le=e=>Hr(ke({},"__esModule",{value:!0}),e);var C=(e,t,r)=>new Promise((o,i)=>{var p=m=>{try{d(r.next(m))}catch(f){i(f)}},l=m=>{try{d(r.throw(m))}catch(f){i(f)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(p,l);d((r=r.apply(e,t)).next())});var zr=je(ze=>{"use strict";n();ze.byteLength=$i;ze.toByteArray=Wi;ze.fromByteArray=ji;var q=[],V=[],Vi=typeof Uint8Array!="undefined"?Uint8Array:Array,$t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(pe=0,qr=$t.length;pe<qr;++pe)q[pe]=$t[pe],V[$t.charCodeAt(pe)]=pe;var pe,qr;V["-".charCodeAt(0)]=62;V["_".charCodeAt(0)]=63;function jr(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 $i(e){var t=jr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Gi(e,t,r){return(t+r)*3/4-r}function Wi(e){var t,r=jr(e),o=r[0],i=r[1],p=new Vi(Gi(e,o,i)),l=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=V[e.charCodeAt(m)]<<18|V[e.charCodeAt(m+1)]<<12|V[e.charCodeAt(m+2)]<<6|V[e.charCodeAt(m+3)],p[l++]=t>>16&255,p[l++]=t>>8&255,p[l++]=t&255;return i===2&&(t=V[e.charCodeAt(m)]<<2|V[e.charCodeAt(m+1)]>>4,p[l++]=t&255),i===1&&(t=V[e.charCodeAt(m)]<<10|V[e.charCodeAt(m+1)]<<4|V[e.charCodeAt(m+2)]>>2,p[l++]=t>>8&255,p[l++]=t&255),p}function Hi(e){return q[e>>18&63]+q[e>>12&63]+q[e>>6&63]+q[e&63]}function qi(e,t,r){for(var o,i=[],p=t;p<r;p+=3)o=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),i.push(Hi(o));return i.join("")}function ji(e){for(var t,r=e.length,o=r%3,i=[],p=16383,l=0,d=r-o;l<d;l+=p)i.push(qi(e,l,l+p>d?d:l+p));return o===1?(t=e[r-1],i.push(q[t>>2]+q[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(q[t>>10]+q[t>>4&63]+q[t<<2&63]+"=")),i.join("")}});var Kr=je(Gt=>{n();Gt.read=function(e,t,r,o,i){var p,l,d=i*8-o-1,m=(1<<d)-1,f=m>>1,h=-7,y=r?i-1:0,N=r?-1:1,v=e[t+y];for(y+=N,p=v&(1<<-h)-1,v>>=-h,h+=d;h>0;p=p*256+e[t+y],y+=N,h-=8);for(l=p&(1<<-h)-1,p>>=-h,h+=o;h>0;l=l*256+e[t+y],y+=N,h-=8);if(p===0)p=1-f;else{if(p===m)return l?NaN:(v?-1:1)*(1/0);l=l+Math.pow(2,o),p=p-f}return(v?-1:1)*l*Math.pow(2,p-o)};Gt.write=function(e,t,r,o,i,p){var l,d,m,f=p*8-i-1,h=(1<<f)-1,y=h>>1,N=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=o?0:p-1,H=o?1:-1,W=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,l=h):(l=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-l))<1&&(l--,m*=2),l+y>=1?t+=N/m:t+=N*Math.pow(2,1-y),t*m>=2&&(l++,m/=2),l+y>=h?(d=0,l=h):l+y>=1?(d=(t*m-1)*Math.pow(2,i),l=l+y):(d=t*Math.pow(2,y-1)*Math.pow(2,i),l=0));i>=8;e[r+v]=d&255,v+=H,d/=256,i-=8);for(l=l<<i|d,f+=i;f>0;e[r+v]=l&255,v+=H,l/=256,f-=8);e[r+v-H]|=W*128}});var cn=je(ye=>{"use strict";n();var Wt=zr(),Te=Kr(),Xr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ye.Buffer=u;ye.SlowBuffer=Ji;ye.INSPECT_MAX_BYTES=50;var Ke=2147483647;ye.kMaxLength=Ke;u.TYPED_ARRAY_SUPPORT=zi();!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 zi(){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 ee(e){if(e>Ke)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 zt(e)}return Jr(e,t,r)}u.poolSize=8192;function Jr(e,t,r){if(typeof e=="string")return Xi(e,t);if(ArrayBuffer.isView(e))return Yi(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(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return qt(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=Zi(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 Jr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Qr(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 Ki(e,t,r){return Qr(e),e<=0?ee(e):t!==void 0?typeof r=="string"?ee(e).fill(t,r):ee(e).fill(t):ee(e)}u.alloc=function(e,t,r){return Ki(e,t,r)};function zt(e){return Qr(e),ee(e<0?0:Kt(e)|0)}u.allocUnsafe=function(e){return zt(e)};u.allocUnsafeSlow=function(e){return zt(e)};function Xi(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=en(e,t)|0,o=ee(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Ht(e){for(var t=e.length<0?0:Kt(e.length)|0,r=ee(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Yi(e){if(j(e,Uint8Array)){var t=new Uint8Array(e);return qt(t.buffer,t.byteOffset,t.byteLength)}return Ht(e)}function qt(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 Zi(e){if(u.isBuffer(e)){var t=Kt(e.length)|0,r=ee(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Xt(e.length)?ee(0):Ht(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ht(e.data)}function Kt(e){if(e>=Ke)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ke.toString(16)+" bytes");return e|0}function Ji(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(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),j(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,p=0,l=Math.min(o,i);p<l;++p)if(t[p]!==r[p]){o=t[p],i=r[p];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),p=0;for(o=0;o<t.length;++o){var l=t[o];if(j(l,Uint8Array))p+l.length>i.length?u.from(l).copy(i,p):Uint8Array.prototype.set.call(i,l,p);else if(u.isBuffer(l))l.copy(i,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=l.length}return i};function en(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(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 jt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return an(e).length;default:if(i)return o?-1:jt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=en;function Qi(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 ls(this,t,r);case"utf8":case"utf-8":return rn(this,t,r);case"ascii":return as(this,t,r);case"latin1":case"binary":return cs(this,t,r);case"base64":return is(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ps(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function ue(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)ue(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)ue(this,r,r+3),ue(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)ue(this,r,r+7),ue(this,r+1,r+6),ue(this,r+2,r+5),ue(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?rn(this,0,t):Qi.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+">"};Xr&&(u.prototype[Xr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,p){if(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),p===void 0&&(p=this.length),r<0||o>t.length||i<0||p>this.length)throw new RangeError("out of range index");if(i>=p&&r>=o)return 0;if(i>=p)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,p>>>=0,this===t)return 0;for(var l=p-i,d=o-r,m=Math.min(l,d),f=this.slice(i,p),h=t.slice(r,o),y=0;y<m;++y)if(f[y]!==h[y]){l=f[y],d=h[y];break}return l<d?-1:d<l?1:0};function tn(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,Xt(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:Yr(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):Yr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Yr(e,t,r,o,i){var p=1,l=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;p=2,l/=2,d/=2,r/=2}function m(v,H){return p===1?v[H]:v.readUInt16BE(H*p)}var f;if(i){var h=-1;for(f=r;f<l;f++)if(m(e,f)===m(t,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===d)return h*p}else h!==-1&&(f-=f-h),h=-1}else for(r+d>l&&(r=l-d),f=r;f>=0;f--){for(var y=!0,N=0;N<d;N++)if(m(e,f+N)!==m(t,N)){y=!1;break}if(y)return f}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return tn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return tn(this,t,r,o,!1)};function es(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var p=t.length;o>p/2&&(o=p/2);for(var l=0;l<o;++l){var d=parseInt(t.substr(l*2,2),16);if(Xt(d))return l;e[r+l]=d}return l}function ts(e,t,r,o){return Xe(jt(t,e.length-r),e,r,o)}function rs(e,t,r,o){return Xe(ms(t),e,r,o)}function ns(e,t,r,o){return Xe(an(t),e,r,o)}function os(e,t,r,o){return Xe(gs(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-r;if((o===void 0||o>p)&&(o=p),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var l=!1;;)switch(i){case"hex":return es(this,t,r,o);case"utf8":case"utf-8":return ts(this,t,r,o);case"ascii":case"latin1":case"binary":return rs(this,t,r,o);case"base64":return ns(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return os(this,t,r,o);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function is(e,t,r){return t===0&&r===e.length?Wt.fromByteArray(e):Wt.fromByteArray(e.slice(t,r))}function rn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var p=e[i],l=null,d=p>239?4:p>223?3:p>191?2:1;if(i+d<=r){var m,f,h,y;switch(d){case 1:p<128&&(l=p);break;case 2:m=e[i+1],(m&192)===128&&(y=(p&31)<<6|m&63,y>127&&(l=y));break;case 3:m=e[i+1],f=e[i+2],(m&192)===128&&(f&192)===128&&(y=(p&15)<<12|(m&63)<<6|f&63,y>2047&&(y<55296||y>57343)&&(l=y));break;case 4:m=e[i+1],f=e[i+2],h=e[i+3],(m&192)===128&&(f&192)===128&&(h&192)===128&&(y=(p&15)<<18|(m&63)<<12|(f&63)<<6|h&63,y>65535&&y<1114112&&(l=y))}}l===null?(l=65533,d=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|l&1023),o.push(l),i+=d}return ss(o)}var Zr=4096;function ss(e){var t=e.length;if(t<=Zr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Zr));return r}function as(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 cs(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 ls(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",p=t;p<r;++p)i+=fs[e[p]];return i}function ps(e,t,r){for(var o=e.slice(t,r),i="",p=0;p<o.length-1;p+=2)i+=String.fromCharCode(o[p]+o[p+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function P(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||P(t,r,this.length);for(var i=this[t],p=1,l=0;++l<r&&(p*=256);)i+=this[t+l]*p;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||P(t,r,this.length);for(var i=this[t+--r],p=1;r>0&&(p*=256);)i+=this[t+--r]*p;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||P(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||P(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||P(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||P(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||P(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||P(t,r,this.length);for(var i=this[t],p=1,l=0;++l<r&&(p*=256);)i+=this[t+l]*p;return p*=128,i>=p&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||P(t,r,this.length);for(var i=r,p=1,l=this[t+--i];i>0&&(p*=256);)l+=this[t+--i]*p;return p*=128,l>=p&&(l-=Math.pow(2,8*r)),l};u.prototype.readInt8=function(t,r){return t=t>>>0,r||P(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||P(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||P(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||P(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||P(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||P(t,4,this.length),Te.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||P(t,4,this.length),Te.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||P(t,8,this.length),Te.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||P(t,8,this.length),Te.read(this,t,!1,52,8)};function _(e,t,r,o,i,p){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<p)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var p=Math.pow(2,8*o)-1;_(this,t,r,o,p,0)}var l=1,d=0;for(this[r]=t&255;++d<o&&(l*=256);)this[r+d]=t/l&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var p=Math.pow(2,8*o)-1;_(this,t,r,o,p,0)}var l=o-1,d=1;for(this[r+l]=t&255;--l>=0&&(d*=256);)this[r+l]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(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||_(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||_(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||_(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||_(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var p=Math.pow(2,8*o-1);_(this,t,r,o,p-1,-p)}var l=0,d=1,m=0;for(this[r]=t&255;++l<o&&(d*=256);)t<0&&m===0&&this[r+l-1]!==0&&(m=1),this[r+l]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var p=Math.pow(2,8*o-1);_(this,t,r,o,p-1,-p)}var l=o-1,d=1,m=0;for(this[r+l]=t&255;--l>=0&&(d*=256);)t<0&&m===0&&this[r+l+1]!==0&&(m=1),this[r+l]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(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||_(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||_(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||_(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||_(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 nn(e,t,r,o,i,p){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function on(e,t,r,o,i){return t=+t,r=r>>>0,i||nn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Te.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return on(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return on(this,t,r,!1,o)};function sn(e,t,r,o,i){return t=+t,r=r>>>0,i||nn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Te.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return sn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return sn(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var p=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),p};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var p=t.charCodeAt(0);(i==="utf8"&&p<128||i==="latin1")&&(t=p)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var l;if(typeof t=="number")for(l=r;l<o;++l)this[l]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(l=0;l<o-r;++l)this[l+r]=d[l%m]}return this};var us=/[^+/0-9A-Za-z-_]/g;function ds(e){if(e=e.split("=")[0],e=e.trim().replace(us,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function jt(e,t){t=t||1/0;for(var r,o=e.length,i=null,p=[],l=0;l<o;++l){if(r=e.charCodeAt(l),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&p.push(239,191,189);continue}else if(l+1===o){(t-=3)>-1&&p.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&p.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&p.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;p.push(r)}else if(r<2048){if((t-=2)<0)break;p.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;p.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;p.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return p}function ms(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function gs(e,t){for(var r,o,i,p=[],l=0;l<e.length&&!((t-=2)<0);++l)r=e.charCodeAt(l),o=r>>8,i=r%256,p.push(i),p.push(o);return p}function an(e){return Wt.toByteArray(ds(e))}function Xe(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 j(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Xt(e){return e!==e}var fs=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 mn=je((yc,dn)=>{n();var I=dn.exports={},z,K;function Yt(){throw new Error("setTimeout has not been defined")}function Zt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=Yt}catch(e){z=Yt}try{typeof clearTimeout=="function"?K=clearTimeout:K=Zt}catch(e){K=Zt}})();function ln(e){if(z===setTimeout)return setTimeout(e,0);if((z===Yt||!z)&&setTimeout)return z=setTimeout,setTimeout(e,0);try{return z(e,0)}catch(t){try{return z.call(null,e,0)}catch(r){return z.call(this,e,0)}}}function Ts(e){if(K===clearTimeout)return clearTimeout(e);if((K===Zt||!K)&&clearTimeout)return K=clearTimeout,clearTimeout(e);try{return K(e)}catch(t){try{return K.call(null,e)}catch(r){return K.call(this,e)}}}var te=[],he=!1,de,Ye=-1;function ys(){!he||!de||(he=!1,de.length?te=de.concat(te):Ye=-1,te.length&&pn())}function pn(){if(!he){var e=ln(ys);he=!0;for(var t=te.length;t;){for(de=te,te=[];++Ye<t;)de&&de[Ye].run();Ye=-1,t=te.length}de=null,he=!1,Ts(e)}}I.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];te.push(new un(e,t)),te.length===1&&!he&&ln(pn)};function un(e,t){this.fun=e,this.array=t}un.prototype.run=function(){this.fun.apply(null,this.array)};I.title="browser";I.browser=!0;I.env={};I.argv=[];I.version="";I.versions={};function re(){}I.on=re;I.addListener=re;I.once=re;I.off=re;I.removeListener=re;I.removeAllListeners=re;I.emit=re;I.prependListener=re;I.prependOnceListener=re;I.listeners=function(e){return[]};I.binding=function(e){throw new Error("process.binding is not supported")};I.cwd=function(){return"/"};I.chdir=function(e){throw new Error("process.chdir is not supported")};I.umask=function(){return 0}});var s,a,hc,n=T(()=>{s=w(cn()),a=w(mn()),hc=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 Jt,De,gn,fn=T(()=>{"use strict";n();Jt="error when signing",De="cancelled",gn="provider not initialized"});var Ze,Tn=T(()=>{"use strict";n();Ze=(o=>(o.signature="signature",o.sessionId="sessionId",o.status="status",o))(Ze||{})});var yn=T(()=>{"use strict";n()});var hn=T(()=>{"use strict";n()});var $=T(()=>{"use strict";n()});var xn=T(()=>{"use strict";n()});var Sn=T(()=>{"use strict";n()});var O=T(()=>{"use strict";n()});var wn=T(()=>{"use strict";n()});var bn=T(()=>{"use strict";n()});var vn=T(()=>{"use strict";n()});var M=T(()=>{"use strict";n();Tn();yn();hn();$();xn();Sn();O();wn();bn();vn()});var Qt,An,Uc,In,Bc,En,Vc,$c,Gc,kn=T(()=>{"use strict";n();M();Qt={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:An,egldLabel:Uc}=Qt["devnet"],{chainId:In,egldLabel:Bc}=Qt["testnet"],{chainId:En,egldLabel:Vc}=Qt["mainnet"],$c={["devnet"]:An,["testnet"]:In,["mainnet"]:En},Gc={[An]:"devnet",[In]:"testnet",[En]:"mainnet"}});var er=T(()=>{"use strict";n()});var Ln=T(()=>{"use strict";n()});var Dn,tr=T(()=>{"use strict";n();Dn="transaction-status-toast-id"});var X,Pn=T(()=>{"use strict";n();X=require("@multiversx/sdk-web-wallet-provider")});var Nn=T(()=>{"use strict";n()});var rr,nr,Rn,Je,Cn,xe,b=T(()=>{"use strict";n();fn();kn();er();Ln();tr();Pn();Nn();rr=5e4,nr=1e9,Rn=1,Je="logout",Cn="login",xe="0"});var Qe,or=T(()=>{"use strict";n();Qe=()=>Date.now()/1e3});var Mn=T(()=>{"use strict";n()});var _n=T(()=>{"use strict";n()});var ir=T(()=>{"use strict";n();or();Mn();_n()});var ar={};le(ar,{getItem:()=>xs,localStorageKeys:()=>ie,removeItem:()=>Ss,setItem:()=>hs});var ie,sr,hs,xs,Ss,Se=T(()=>{"use strict";n();ir();ie={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},sr=typeof localStorage!="undefined",hs=({key:e,data:t,expires:r})=>{!sr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},xs=e=>{if(!sr)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:Qe()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Ss=e=>{!sr||localStorage.removeItem(String(e))}});var cr={};le(cr,{clear:()=>Bn,getItem:()=>Fn,removeItem:()=>Un,setItem:()=>On,storage:()=>ws});var On,Fn,Un,Bn,ws,Vn=T(()=>{"use strict";n();On=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Fn=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},Un=e=>sessionStorage.removeItem(String(e)),Bn=()=>sessionStorage.clear(),ws={setItem:On,getItem:Fn,removeItem:Un,clear:Bn}});var me,we=T(()=>{"use strict";n();Se();Vn();me={session:cr,local:ar}});var lr,E,Pe,U=T(()=>{"use strict";n();lr=require("@reduxjs/toolkit");b();E=(0,lr.createAction)(Je),Pe=(0,lr.createAction)(Cn,e=>({payload:e}))});var ur,$n,Gn,et,pr,Wn,dr,Sl,mr,wl,bl,vl,Al,Il,El,kl,Ll,tt,rt=T(()=>{"use strict";n();ur=require("@multiversx/sdk-core"),$n=require("@reduxjs/toolkit"),Gn=require("redux-persist");b();we();Se();U();et={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:xe},pr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":et},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Wn=(0,$n.createSlice)({name:"accountInfoSlice",initialState:pr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new ur.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:et},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}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(E,()=>(me.local.removeItem(ie.loginExpiresAt),pr)),e.addCase(Pe,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new ur.Address(o).hex()}),e.addCase(Gn.REHYDRATE,(t,r)=>{var f;if(!((f=r.payload)!=null&&f.account))return;let{account:o}=r.payload,{address:i,shard:p,accounts:l,publicKey:d}=o;t.address=i,t.shard=p;let m=l&&i in l;t.accounts=m?l:pr.accounts,t.publicKey=d})}}),{setAccount:dr,setAddress:Sl,setAccountNonce:mr,setAccountShard:wl,setLedgerAccount:bl,updateLedgerAccount:vl,setWalletConnectAccount:Al,setIsAccountLoading:Il,setAccountLoadingError:El,setWebsocketEvent:kl,setWebsocketBatchEvent:Ll}=Wn.actions,tt=Wn.reducer});function Ne(){return new Date().setHours(new Date().getHours()+24)}function Re(e){me.local.setItem({key:ie.loginExpiresAt,data:e,expires:e})}var gr=T(()=>{"use strict";n();we();Se()});var qn,Hn,jn,Ul,Bl,Vl,$l,Gl,Wl,zn,Hl,nt,ot=T(()=>{"use strict";n();qn=require("@reduxjs/toolkit");gr();$();U();Hn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},jn=(0,qn.createSlice)({name:"loginInfoSlice",initialState:Hn,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(E,()=>Hn),e.addCase(Pe,(t,r)=>{t.loginMethod=r.payload.loginMethod,Re(Ne())})}}),{setLoginMethod:Ul,setWalletConnectLogin:Bl,setLedgerLogin:Vl,setTokenLogin:$l,setTokenLoginSignature:Gl,setWalletLogin:Wl,invalidateLoginSession:zn,setLogoutRoute:Hl}=jn.actions,nt=jn.reducer});var Xn,Kn,Yn,Kl,Xl,Yl,Zl,it,st=T(()=>{"use strict";n();Xn=require("@reduxjs/toolkit");U();Kn={},Yn=(0,Xn.createSlice)({name:"modalsSlice",initialState:Kn,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(E,()=>Kn)}}),{setTxSubmittedModal:Kl,setNotificationModal:Xl,clearTxSubmittedModal:Yl,clearNotificationModal:Zl}=Yn.actions,it=Yn.reducer});var at=T(()=>{"use strict";n()});var Zn=T(()=>{"use strict";n();at()});function fr(e){return e[Math.floor(Math.random()*e.length)]}var Jn=T(()=>{"use strict";n()});var Qn=T(()=>{"use strict";n();er()});var eo=T(()=>{"use strict";n();Zn();Jn();Qn()});var to,ro,Tr,vs,no,dp,mp,ct,lt=T(()=>{"use strict";n();to=require("@reduxjs/toolkit"),ro=w(require("lodash.omit"));eo();Tr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},vs={network:Tr,chainID:"-1"},no=(0,to.createSlice)({name:"appConfig",initialState:vs,reducers:{initializeNetworkConfig:(e,t)=>{let r=fr(t.payload.walletConnectBridgeAddresses),o=fr(t.payload.walletConnectV2RelayAddresses),i=(0,ro.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:dp,setChainID:mp}=no.actions,ct=no.reducer});var oo,yr,io,Ce,so,hr,pt,ut=T(()=>{"use strict";n();oo=require("@reduxjs/toolkit");M();U();yr={isSigning:!1,signedSessions:{}},io=(0,oo.createSlice)({name:"signedMessageInfoSliceState",initialState:yr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=o},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>yr},extraReducers:e=>{e.addCase(E,()=>yr)}}),{setSignSession:Ce,clearSignedMessageInfo:so,setSignSessionState:hr}=io.actions,pt=io.reducer});var co,lo,ao,po,Is,Es,Ip,Ep,kp,Lp,dt,mt=T(()=>{"use strict";n();co=require("@reduxjs/toolkit"),lo=require("redux-persist");tr();M();or();U();ao={customToasts:[],transactionToasts:[],failTransactionToast:null},po=(0,co.createSlice)({name:"toastsSlice",initialState:ao,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(S(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Qe(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=S(x({},t.payload),{toastId:Dn})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(E,()=>ao),e.addCase(lo.REHYDRATE,(t,r)=>{var i,p;let o=(p=(i=r.customToasts)==null?void 0:i.filter(l=>!("component"in l)))!=null?p:[];t.customToasts=o})}}),{addCustomToast:Is,removeCustomToast:Es,addTransactionToast:Ip,removeTransactionToast:Ep,addFailTransactionToast:kp,removeFailTransactionToast:Lp}=po.actions,dt=po.reducer});var uo,Sr,wr,br,ks,xr,mo,Rp,Cp,Mp,gt,ft=T(()=>{"use strict";n();uo=require("@reduxjs/toolkit");U();Sr="Transaction failed",wr="Transaction successful",br="Processing transaction",ks="Transaction submitted",xr={},mo=(0,uo.createSlice)({name:"transactionsInfo",initialState:xr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Sr,successMessage:(o==null?void 0:o.successMessage)||wr,processingMessage:(o==null?void 0:o.processingMessage)||br,submittedMessage:(o==null?void 0:o.submittedMessage)||ks,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>xr},extraReducers:e=>{e.addCase(E,()=>xr)}}),{clearTransactionsInfo:Rp,setTransactionsDisplayInfo:Cp,clearTransactionsInfoForSessionId:Mp}=mo.actions,gt=mo.reducer});function go(e){return e!=null&&(Os(e)||Vs(e))}function Tt(e){return e!=null&&(Fs(e)||$s(e))}function yt(e){return e!=null&&(Us(e)||Gs(e))}function fo(e){return e!=null&&Bs(e)}function Os(e){return e!=null&&Ds.includes(e)}function Fs(e){return e!=null&&Ps.includes(e)}function Us(e){return e!=null&&Ns.includes(e)}function Bs(e){return e!=null&&Rs.includes(e)}function Vs(e){return e!=null&&Cs.includes(e)}function $s(e){return e!=null&&Ms.includes(e)}function Gs(e){return e!=null&&_s.includes(e)}var Ds,Ps,Ns,Rs,Cs,Ms,_s,Ar=T(()=>{"use strict";n();$();Ds=["sent"],Ps=["success"],Ns=["fail","cancelled","timedOut"],Rs=["timedOut"],Cs=["pending"],Ms=["success"],_s=["fail","invalid"]});var To,yo,Me,Ws,ho,Wp,Hp,qp,jp,zp,Kp,Xp,Yp,Zp,Jp,ht,xt=T(()=>{"use strict";n();To=require("@reduxjs/toolkit"),yo=require("redux-persist");$();Ar();U();Me={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ws={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ho=(0,To.createSlice)({name:"transactionsSlice",initialState:Me,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,f;let{sessionId:r,transactions:o,errorMessage:i,status:p,redirectRoute:l}=t.payload,d=((m=e.customTransactionInformationForSessionId)==null?void 0:m[r])||Ws;e.signedTransactions[r]={transactions:o,status:p,errorMessage:i,redirectRoute:l,customTransactionInformation:d},((f=e==null?void 0:e.transactionsToSign)==null?void 0:f.sessionId)===r&&(e.transactionsToSign=Me.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:p}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),p!=null&&(e.signedTransactions[r].transactions=p))},updateSignedTransactionStatus:(e,t)=>{var d,m,f,h,y,N;let{sessionId:r,status:o,errorMessage:i,transactionHash:p}=t.payload,l=(m=(d=e.signedTransactions)==null?void 0:d[r])==null?void 0:m.transactions;if(l!=null){e.signedTransactions[r].transactions=l.map(W=>W.hash===p?S(x({},W),{status:o,errorMessage:i}):W);let v=(h=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:h.every(W=>Tt(W.status)),H=(N=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:N.every(W=>yt(W.status));v&&(e.signedTransactions[r].status="success"),H&&(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=Me.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Me.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(E,()=>Me),e.addCase(yo.REHYDRATE,(t,r)=>{var l;if(t.signTransactionsCancelMessage=null,!((l=r.payload)!=null&&l.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,p=Object.entries(o).reduce((d,[m,f])=>{let h=new Date(m),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(d[m]=f),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=p)})}}),{updateSignedTransactionStatus:Wp,updateSignedTransactions:Hp,setTransactionsToSign:qp,clearAllTransactionsToSign:jp,clearAllSignedTransactions:zp,clearSignedTransaction:Kp,clearTransactionToSign:Xp,setSignTransactionsError:Yp,setSignTransactionsCancelMessage:Zp,moveTransactionsToSignedState:Jp}=ho.actions,ht=ho.reducer});var xo,Ir,So,ru,nu,ou,iu,St,wt=T(()=>{"use strict";n();xo=require("@reduxjs/toolkit");U();Ir={},So=(0,xo.createSlice)({name:"batchTransactionsSlice",initialState:Ir,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Ir},extraReducers:e=>{e.addCase(E,()=>Ir)}}),{setBatchTransactions:ru,updateBatchTransactions:nu,clearBatchTransactions:ou,clearAllBatchTransactions:iu}=So.actions,St=So.reducer});var bo,wo,vo,lu,Ao,Er=T(()=>{"use strict";n();bo=require("@reduxjs/toolkit");U();wo={},vo=(0,bo.createSlice)({name:"dappConfigSlice",initialState:wo,reducers:{setDappConfig:(e,t)=>{e=x(x({},e),t.payload)}},extraReducers:e=>{e.addCase(E,()=>wo)}}),{setDappConfig:lu}=vo.actions,Ao=vo.reducer});var Y=T(()=>{"use strict";n();rt();ot();st();lt();ut();mt();ft();xt();wt();Er()});var kr=T(()=>{"use strict";n()});var Do,Lo,Po,_u,Ou,Fu,Uu,Bu,Vu,No,Ro=T(()=>{"use strict";n();Do=require("@reduxjs/toolkit");U();Lo={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Po=(0,Do.createSlice)({name:"dappModalsSlice",initialState:Lo,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(E,()=>Lo)}}),{setDappModalVisibility:_u,setDappModalHeaderVisibility:Ou,setDappModalFooterVisibility:Fu,setDappModalHeaderText:Uu,setDappModalFooterText:Bu,setDappModalConfig:Vu}=Po.actions,No=Po.reducer});var Co,zs,Ks,ge,Et=T(()=>{"use strict";n();Co=require("@reduxjs/toolkit");kr();rt();wt();Er();Ro();ot();st();lt();ut();mt();ft();xt();zs={["account"]:tt,["dappModal"]:No,["dappConfig"]:Ao,["loginInfo"]:nt,["modals"]:it,["networkConfig"]:ct,["signedMessageInfo"]:pt,["toasts"]:dt,["transactionsInfo"]:gt,["transactions"]:ht,["batchTransactions"]:St},Ks=(e={})=>(0,Co.combineReducers)(x(x({},zs),e)),ge=Ks});var Fo={};le(Fo,{default:()=>pa,sessionStorageReducers:()=>Lr});function ne(e,t=[]){return{key:e,version:1,storage:_o.default,blacklist:t}}var F,Mo,_o,Xs,_e,Ys,Zs,Js,Qs,ea,ta,ra,na,oa,ia,Oo,sa,Lr,aa,ca,la,pa,Uo=T(()=>{"use strict";n();F=require("redux-persist"),Mo=w(require("redux-persist/lib/storage")),_o=w(require("redux-persist/lib/storage/session"));Et();Y();rt();wt();ot();st();lt();ut();mt();ft();xt();kr();Xs={persistReducersStorageType:"localStorage"},_e={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Ys=ne(_e["account"]),Zs=ne(_e["loginInfo"]),Js=ne(_e["modals"]),Qs=ne(_e["networkConfig"]),ea={2:e=>S(x({},e),{networkConfig:Tr})};ta=ne("sdk-dapp-transactionsInfo"),ra=ne("sdk-dapp-transactions",["transactionsToSign"]),na=ne("sdk-dapp-batchTransactions",["batchTransactions"]),oa=ne("sdk-dapp-toasts"),ia=ne("sdk-dapp-signedMessageInfo"),Oo={key:"sdk-dapp-store",version:2,storage:Mo.default,whitelist:Object.keys(_e),migrate:(0,F.createMigrate)(ea,{debug:!1})},sa=S(x({},Oo),{whitelist:[]}),Lr={["toasts"]:(0,F.persistReducer)(oa,dt),["transactions"]:(0,F.persistReducer)(ra,ht),["transactionsInfo"]:(0,F.persistReducer)(ta,gt),["batchTransactions"]:(0,F.persistReducer)(na,St),["signedMessageInfo"]:(0,F.persistReducer)(ia,pt)},aa=S(x({},Lr),{["account"]:(0,F.persistReducer)(Ys,tt),["loginInfo"]:(0,F.persistReducer)(Zs,nt),["modals"]:(0,F.persistReducer)(Js,it),["networkConfig"]:(0,F.persistReducer)(Qs,ct)}),ca=Xs.persistReducersStorageType==="localStorage",la=ca?(0,F.persistReducer)(Oo,ge(Lr)):(0,F.persistReducer)(sa,ge(aa)),pa=la});var Bo={};le(Bo,{default:()=>ua});var ua,Vo=T(()=>{"use strict";n();Et();ua=ge()});var $o={};le($o,{default:()=>ma});var G,da,ma,Go=T(()=>{"use strict";n();G=require("redux-persist"),da=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],ma=da});var qo={};le(qo,{default:()=>Ho});function Ho(e){return(0,Wo.persistStore)(e)}var Wo,jo=T(()=>{"use strict";n();Wo=require("redux-persist")});var dc={};le(dc,{useGetLastSignedMessageSession:()=>nc,useGetSignMessageInfoStatus:()=>Br,useGetSignMessageSession:()=>oc,useSignMessage:()=>pc,verifyMessage:()=>uc});module.exports=Le(dc);n();n();n();var Jo=require("react"),ve=require("react-redux");n();var Dr=require("@reduxjs/toolkit"),Yo=require("react-redux/lib/utils/Subscription");Y();n();var Eo=w(require("lodash.throttle"));b();n();var Io=w(require("lodash.isequal")),bt=require("reselect");M();var g=(0,bt.createSelectorCreator)(bt.defaultMemoize,Io.default),vt=(e,t)=>e!=""&&Boolean(t);Y();gr();we();Se();var Hs=[Je],At=!1,qs=(0,Eo.default)(()=>{Re(Ne())},5e3),ko=e=>t=>r=>{var m;if(Hs.includes(r.type))return t(r);let o=e.getState(),i=me.local.getItem(ie.loginExpiresAt);if(!vt((m=o==null?void 0:o.loginInfo)==null?void 0:m.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return Re(Ne());let l=Date.now();return i-l<0&&!At?setTimeout(()=>{At=!0,e.dispatch(zn())},1e3):(At&&(At=!1),qs()),t(r)};n();n();function It(){return typeof sessionStorage!="undefined"}var zo=It()?(Uo(),Le(Fo)).default:(Vo(),Le(Bo)).default,Ko=It()?(Go(),Le($o)).default:[],Xo=It()?(jo(),Le(qo)).default:e=>e;Et();var L=(0,Dr.configureStore)({reducer:zo,middleware:e=>e({serializableCheck:{ignoredActions:[...Ko,mr.type,dr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(ko)}),Zo=(0,Yo.createSubscription)(L),Sd=Xo(L),wd=(0,Dr.configureStore)({reducer:ge});var ga={store:L,subscription:Zo},Pr=(0,Jo.createContext)(ga),Id=(0,ve.createStoreHook)(Pr),Qo=(0,ve.createDispatchHook)(Pr),Z=(0,ve.createSelectorHook)(Pr);n();n();Y();var J=e=>e.account,Oe=g(J,e=>e.address),kt=g(J,Oe,(e,t)=>t in e.accounts?e.accounts[t]:et),Dd=g(J,kt,(e,t)=>{let i=e,{accounts:r}=i,o=qe(i,["accounts"]);return S(x({},o),{account:t})}),Pd=g(kt,e=>e.balance),fa=g(kt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Nd=g(J,e=>e.shard),Rd=g(J,e=>e.ledgerAccount),Cd=g(J,e=>e.walletConnectAccount),Md=g(J,e=>e.isAccountLoading),_d=g(J,e=>e.accountLoadingError),Od=g(J,e=>e.websocketEvent),Fd=g(J,e=>e.websocketBatchEvent);n();var se=e=>e.loginInfo,$d=g(se,e=>e.loginMethod),Nr=g(se,Oe,(e,t)=>vt(e.loginMethod,t)),Gd=g(se,e=>e.walletConnectLogin),Wd=g(se,e=>e.ledgerLogin),ei=g(se,e=>e.walletLogin),Hd=g(se,e=>e.isLoginSessionInvalid),qd=g(se,e=>e.tokenLogin),jd=g(se,e=>e.logoutRoute);n();var ti=e=>e.modals,Xd=g(ti,e=>e.txSubmittedModal),Yd=g(ti,e=>e.notificationModal);n();var fe=e=>e.networkConfig,Ta=g(fe,e=>e.chainID),Qd=g(fe,e=>e.network.walletConnectBridgeAddress),em=g(fe,e=>e.network.walletConnectV2RelayAddress),tm=g(fe,e=>e.network.walletConnectV2ProjectId),rm=g(fe,e=>e.network.walletConnectV2Options),nm=g(fe,e=>e.network.walletConnectDeepLink),Lt=g(fe,e=>e.network),ya=g(Lt,e=>e.apiAddress),ri=g(Lt,e=>e.explorerAddress),ha=g(Lt,e=>e.egldLabel);n();var ae=e=>e.signedMessageInfo,ni=g(ae,e=>e.isSigning),oi=g(ae,e=>e.errorMessage),ii=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),si=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var Rr=e=>e.toasts,cm=g(Rr,e=>e.customToasts),lm=g(Rr,e=>e.transactionToasts),pm=g(Rr,e=>e.failTransactionToast);n();Y();var ai={errorMessage:Sr,successMessage:wr,processingMessage:br},xa=e=>e.transactionsInfo,gm=g(xa,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||ai);n();n();var Q=require("@multiversx/sdk-core"),li=require("@multiversx/sdk-core/out/signature");b();n();var Mr=require("@multiversx/sdk-core/out");n();n();function Cr(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}n();n();n();n();var ci=e=>{let t=e!=null?e:"";return Cr(t)?Mr.TransactionPayload.fromEncoded(t):new Mr.TransactionPayload(t)};function _r(e){var r,o,i;let t=new Q.Transaction(x(x({value:e.value.valueOf(),data:ci(e.data),nonce:e.nonce.valueOf(),receiver:new Q.Address(e.receiver),sender:new Q.Address(e.sender),gasLimit:(r=e.gasLimit.valueOf())!=null?r:rr,gasPrice:(o=e.gasPrice.valueOf())!=null?o:nr,chainID:e.chainID.valueOf(),version:new Q.TransactionVersion((i=e.version)!=null?i:Rn)},e.options?{options:new Q.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new Q.Address(e.guardian)}:{}));return e.guardianSignature&&t.applyGuardianSignature({hex:()=>e.guardianSignature||""}),t.applySignature(new li.Signature(e.signature)),t}n();n();n();n();n();var ba=require("@multiversx/sdk-core/out");n();b();n();var ui=require("@multiversx/sdk-core");M();n();var pi=require("@multiversx/sdk-core");function va(e){try{let t=new pi.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Fe(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&va(e)}n();n();n();var Aa=require("@multiversx/sdk-core"),Ia=w(require("bignumber.js"));$();n();n();n();n();n();n();n();O();n();n();O();n();n();n();var Ra=w(require("bignumber.js"));b();n();var Na=require("@multiversx/sdk-core"),Or=w(require("bignumber.js"));b();n();var Da=w(require("bignumber.js"));n();Or.default.config({ROUNDING_MODE:Or.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var Ca=require("@multiversx/sdk-core");b();n();var Ue=require("@multiversx/sdk-core"),_a=require("@multiversx/sdk-network-providers");b();n();n();var Ma=w(require("bignumber.js"));b();n();b();n();n();n();n();n();b();n();O();var Fa=["reDelegateRewards","claimRewards","unBond"],Ua=["wrapEgld","unwrapEgld"],Ba=["unStake"],Va=["unDelegate"];n();n();n();b();n();var Wa=w(require("bignumber.js"));n();n();O();n();var Ha=w(require("bignumber.js"));n();n();n();var ja=w(require("bignumber.js"));M();n();n();n();n();$();n();var Ka=require("@multiversx/sdk-web-wallet-provider");b();n();var yi=w(require("qs"));n();var Nt=e=>{let t=new URLSearchParams(e).toString(),r=window==null?void 0:window.location.pathname,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,i)})};n();var Be=()=>typeof window!="undefined";n();var za={search:Be()?window.location.search:"",removeParams:[]},Rt=(e,t=za)=>{var l;let r={},o=Be()?window.location.search:"",i=(l=t.search)!=null?l:o;if(i){let d=i?new URLSearchParams(i):[];r=Object.fromEntries(d)}let p={};return e.forEach(d=>{p[d]=r[d],delete r[d]}),t.removeParams!=null&&Object.keys(r).forEach(d=>{var f,h;let[m]=d.split("[");(((f=t.removeParams)==null?void 0:f.includes(d))||((h=t.removeParams)==null?void 0:h.includes(m)))&&delete r[d]}),{remainingParams:p,params:r,clearNavigationHistory:()=>Nt(r)}};var Ur=({removeParams:e,search:t})=>{let r=Be()?window.location.search:"",o=t!=null?t:r;if(!o)return{};let i=yi.default.parse(o.replace("?","")),p=Object.keys(i).filter(d=>!e.includes(d)),{remainingParams:l}=Rt(p,{search:t,removeParams:e});return Nt(l),l};n();n();n();n();O();n();n();n();var Xa=w(require("linkifyjs"));n();b();n();var Ya=w(require("bignumber.js"));n();M();n();n();$();n();$();n();n();n();O();n();O();n();var Za=w(require("bignumber.js"));b();O();n();O();n();var xi=require("react");M();n();n();O();n();n();var Ja=require("@multiversx/sdk-core/out"),Qa=w(require("bignumber.js"));O();n();M();n();n();M();var yx=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Si=require("react");M();n();var tc=require("react");O();var Ax=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Ar();var Mt=e=>e.transactions,Ve=g(Mt,e=>e.signedTransactions),lS=g(Mt,e=>e.signTransactionsError),pS=g(Mt,e=>e.signTransactionsCancelMessage),_t=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),uS=g(Ve,_t(go)),dS=g(Ve,_t(Tt)),mS=g(Ve,_t(yt)),gS=g(Ve,_t(fo)),fS=g(Mt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>_r(r)))||[]})}),TS=g(Ve,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});n();var rc=e=>e.dappConfig,xS=g(rc,e=>e.shouldUseWebViewProvider);var nc=()=>Z(ii);n();var oc=e=>{let t=Z(ae);if(!!e)return t.signedSessions[e]};n();var Br=()=>{let e=Z(ni),t=Z(oi);return{isPending:e,errorMessage:t}};n();var Ee=require("react"),Ft=require("@multiversx/sdk-core");b();n();n();n();n();var bi=require("@multiversx/sdk-extension-provider"),vi=require("@multiversx/sdk-hw-provider"),Ai=require("@multiversx/sdk-opera-provider"),Ii=require("@multiversx/sdk-web-wallet-provider");b();$();n();var Vr=Ae,wi=Vr;var $e=e=>{switch(e==null?void 0:e.constructor){case Ii.WalletProvider:return"wallet";case Vr:return"walletconnect";case wi:return"walletconnectv2";case vi.HWProvider:return"ledger";case bi.ExtensionProvider:return"extension";case Ai.OperaProvider:return"opera";case Ae:return"";default:return"extra"}};var oe=e=>`Unable to perform ${e}, Provider not initialized`,Ae=class{init(){return Promise.resolve(!1)}login(t){throw new Error(oe(`login with options: ${t}`))}logout(t){throw new Error(oe(`logout with options: ${t}`))}getAddress(){throw new Error(oe("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(oe(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(oe(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(oe(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(oe(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(oe(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(oe(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},$r=new Ae;var ic=$r;function B(){return ic||$r}var Ei=()=>{let e=B(),t=$e(e);return{provider:e,providerType:t}};Y();M();n();var Ot=require("@multiversx/sdk-core");n();$();n();n();function ki(){let e=B();return $e(e)}function Ge(e){return ki()===e}function Ie(){let e=window==null?void 0:window.location.search,t=L.getState(),r=B(),o=Oe(t),i=Nr(t),p=ei(t);if(!r)throw"provider not initialized";return Ge("ledger")&&i?new Promise(l=>{l(o)}):!Ge("")&&!Ge("wallet")&&!Ge("extra")?r.getAddress():new Promise(l=>{if(p!=null){let d=new URLSearchParams(e),m=Object.fromEntries(d);Fe(m.address)&&l(m.address)}i&&l(o),l("")})}var Li=r=>C(void 0,[r],function*({message:e,callbackRoute:t}){let o=yield Ie(),i=B(),p=window!=null&&window.location?`${window.location.origin}${t}`:`${t}`,l=new Ot.SignableMessage({address:new Ot.Address(o),message:s.Buffer.from(e,"ascii")});return yield i.signMessage(l,{callbackUrl:encodeURIComponent(p)})});n();n();n();n();var sc=w(require("axios"));n();n();n();Y();n();n();n();Y();n();U();M();n();ir();n();n();var cc=w(require("platform"));n();n();U();M();at();we();Se();n();n();n();n();n();n();n();n();n();$();n();at();n();n();n();n();we();n();n();n();Y();n();n();var lc=w(require("axios"));var pc=()=>{let e=Qo(),[t,r]=(0,Ee.useState)(""),i=Z(ae).signedSessions[t],{isPending:p,errorMessage:l}=Br(),d=window==null?void 0:window.location.search,{provider:m,providerType:f}=Ei(),h=f==="wallet",y=Z(si),N=()=>(e(so()),Ur({removeParams:Object.keys(Ze)})),v=({callbackRoute:D,errorMessage:k=De})=>{let A=k.includes(De),R=Date.now().toString();i||r(R),e(Ce({errorMessage:k,sessionId:R,signedSession:{callbackUrl:D,status:A?"cancelled":"failed"}}))},H=(D,k)=>{if(!D)return"";let A=new URL(D);return A.searchParams.get("sessionId")||A.searchParams.append("sessionId",k),`${h?window==null?void 0:window.location.origin:""}${A.pathname}${A.search}`},W=()=>C(void 0,null,function*(){var D;if(!h)try{if(!(yield(D=m==null?void 0:m.init)==null?void 0:D.call(m)))return}catch(k){let A=(k==null?void 0:k.message)||k||gn;console.error(A)}}),Di=A=>C(void 0,[A],function*({message:D,callbackRoute:k}){let R=yield Ie(),Bt=B(),Ri=encodeURIComponent(String(k)),Ci=new Ft.SignableMessage({address:new Ft.Address(R),message:s.Buffer.from(D,"ascii")});return Bt.signMessage(Ci,{callbackUrl:Ri})}),Pi=D=>C(void 0,null,function*(){let k=Date.now().toString();r(k);let A=H(D.callbackRoute,k);if(e(Ce({sessionId:k,signedSession:{status:"pending",message:D.message,callbackUrl:A}})),h)return Di(S(x({},D),{callbackRoute:A}));try{yield W()}catch(R){return v({errorMessage:String(R),callbackRoute:A})}try{let R=yield Li(S(x({},D),{callbackRoute:A}));return R.signature?e(Ce({sessionId:k,signedSession:{status:"signed",callbackUrl:A,message:D.message,signature:R.signature.toString("hex")}})):v({errorMessage:De,callbackRoute:A})}catch(R){let Bt=(R==null?void 0:R.message)||R||Jt;return v({errorMessage:Bt,callbackRoute:A})}}),Ni=()=>{if(d){let{remainingParams:{signature:D,sessionId:k,status:A},clearNavigationHistory:R}=Rt(Object.values(Ze));if(!k)return;if(r(k),["cancelled","failed"].includes(A))return v({errorMessage:A==="cancelled"?De:Jt});if(D&&A==="signed")return e(Ce({sessionId:t,signedSession:{signature:D,status:A}}));R()}};return(0,Ee.useEffect)(()=>{Ni()},[d]),(0,Ee.useEffect)(()=>{(p||l)&&!i&&e(hr({isSigning:!1,errorMessage:""}))},[]),(0,Ee.useEffect)(()=>{t&&!i&&!p&&e(hr({isSigning:!1,errorMessage:""}))},[t]),{onAbort:N,onCancel:v,signMessage:Pi,sessionId:t||y}};n();var We=require("@multiversx/sdk-core/out"),Ut=require("@multiversx/sdk-wallet"),uc=e=>{try{let{message:t,address:r,signature:o}=JSON.parse(e),i=s.Buffer.from(t.replace("0x",""),"hex"),p=s.Buffer.from(o.replace("0x",""),"hex"),l=new We.Address(r),d=new We.SignableMessage({address:l,message:i,signature:p}),m=new Ut.UserPublicKey(We.Address.fromString(r).pubkey());return{isVerified:new Ut.UserVerifier(m).verify(d.serializeForSigning(),d.getSignature()),message:i.toString(),address:r}}catch(t){return{isVerified:!1,message:"",address:""}}};0&&(module.exports={useGetLastSignedMessageSession,useGetSignMessageInfoStatus,useGetSignMessageSession,useSignMessage,verifyMessage});
|
|
1
|
+
"use strict";var Mi=Object.create;var ke=Object.defineProperty,_i=Object.defineProperties,Oi=Object.getOwnPropertyDescriptor,Fi=Object.getOwnPropertyDescriptors,Ui=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,Bi=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable;var Gr=(e,t,r)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Vt.call(t,r)&&Gr(e,r,t[r]);if(He)for(var r of He(t))Wr.call(t,r)&&Gr(e,r,t[r]);return e},S=(e,t)=>_i(e,Fi(t));var qe=(e,t)=>{var r={};for(var o in e)Vt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&He)for(var o of He(e))t.indexOf(o)<0&&Wr.call(e,o)&&(r[o]=e[o]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),le=(e,t)=>{for(var r in t)ke(e,r,{get:t[r],enumerable:!0})},Hr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ui(t))!Vt.call(e,i)&&i!==r&&ke(e,i,{get:()=>t[i],enumerable:!(o=Oi(t,i))||o.enumerable});return e};var w=(e,t,r)=>(r=e!=null?Mi(Bi(e)):{},Hr(t||!e||!e.__esModule?ke(r,"default",{value:e,enumerable:!0}):r,e)),Le=e=>Hr(ke({},"__esModule",{value:!0}),e);var C=(e,t,r)=>new Promise((o,i)=>{var p=m=>{try{d(r.next(m))}catch(f){i(f)}},l=m=>{try{d(r.throw(m))}catch(f){i(f)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(p,l);d((r=r.apply(e,t)).next())});var zr=je(ze=>{"use strict";n();ze.byteLength=$i;ze.toByteArray=Wi;ze.fromByteArray=ji;var q=[],V=[],Vi=typeof Uint8Array!="undefined"?Uint8Array:Array,$t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(pe=0,qr=$t.length;pe<qr;++pe)q[pe]=$t[pe],V[$t.charCodeAt(pe)]=pe;var pe,qr;V["-".charCodeAt(0)]=62;V["_".charCodeAt(0)]=63;function jr(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 $i(e){var t=jr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Gi(e,t,r){return(t+r)*3/4-r}function Wi(e){var t,r=jr(e),o=r[0],i=r[1],p=new Vi(Gi(e,o,i)),l=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=V[e.charCodeAt(m)]<<18|V[e.charCodeAt(m+1)]<<12|V[e.charCodeAt(m+2)]<<6|V[e.charCodeAt(m+3)],p[l++]=t>>16&255,p[l++]=t>>8&255,p[l++]=t&255;return i===2&&(t=V[e.charCodeAt(m)]<<2|V[e.charCodeAt(m+1)]>>4,p[l++]=t&255),i===1&&(t=V[e.charCodeAt(m)]<<10|V[e.charCodeAt(m+1)]<<4|V[e.charCodeAt(m+2)]>>2,p[l++]=t>>8&255,p[l++]=t&255),p}function Hi(e){return q[e>>18&63]+q[e>>12&63]+q[e>>6&63]+q[e&63]}function qi(e,t,r){for(var o,i=[],p=t;p<r;p+=3)o=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),i.push(Hi(o));return i.join("")}function ji(e){for(var t,r=e.length,o=r%3,i=[],p=16383,l=0,d=r-o;l<d;l+=p)i.push(qi(e,l,l+p>d?d:l+p));return o===1?(t=e[r-1],i.push(q[t>>2]+q[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(q[t>>10]+q[t>>4&63]+q[t<<2&63]+"=")),i.join("")}});var Kr=je(Gt=>{n();Gt.read=function(e,t,r,o,i){var p,l,d=i*8-o-1,m=(1<<d)-1,f=m>>1,h=-7,y=r?i-1:0,N=r?-1:1,v=e[t+y];for(y+=N,p=v&(1<<-h)-1,v>>=-h,h+=d;h>0;p=p*256+e[t+y],y+=N,h-=8);for(l=p&(1<<-h)-1,p>>=-h,h+=o;h>0;l=l*256+e[t+y],y+=N,h-=8);if(p===0)p=1-f;else{if(p===m)return l?NaN:(v?-1:1)*(1/0);l=l+Math.pow(2,o),p=p-f}return(v?-1:1)*l*Math.pow(2,p-o)};Gt.write=function(e,t,r,o,i,p){var l,d,m,f=p*8-i-1,h=(1<<f)-1,y=h>>1,N=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=o?0:p-1,H=o?1:-1,W=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,l=h):(l=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-l))<1&&(l--,m*=2),l+y>=1?t+=N/m:t+=N*Math.pow(2,1-y),t*m>=2&&(l++,m/=2),l+y>=h?(d=0,l=h):l+y>=1?(d=(t*m-1)*Math.pow(2,i),l=l+y):(d=t*Math.pow(2,y-1)*Math.pow(2,i),l=0));i>=8;e[r+v]=d&255,v+=H,d/=256,i-=8);for(l=l<<i|d,f+=i;f>0;e[r+v]=l&255,v+=H,l/=256,f-=8);e[r+v-H]|=W*128}});var cn=je(ye=>{"use strict";n();var Wt=zr(),Te=Kr(),Xr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ye.Buffer=u;ye.SlowBuffer=Ji;ye.INSPECT_MAX_BYTES=50;var Ke=2147483647;ye.kMaxLength=Ke;u.TYPED_ARRAY_SUPPORT=zi();!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 zi(){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 ee(e){if(e>Ke)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 zt(e)}return Jr(e,t,r)}u.poolSize=8192;function Jr(e,t,r){if(typeof e=="string")return Xi(e,t);if(ArrayBuffer.isView(e))return Yi(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(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return qt(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=Zi(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 Jr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Qr(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 Ki(e,t,r){return Qr(e),e<=0?ee(e):t!==void 0?typeof r=="string"?ee(e).fill(t,r):ee(e).fill(t):ee(e)}u.alloc=function(e,t,r){return Ki(e,t,r)};function zt(e){return Qr(e),ee(e<0?0:Kt(e)|0)}u.allocUnsafe=function(e){return zt(e)};u.allocUnsafeSlow=function(e){return zt(e)};function Xi(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=en(e,t)|0,o=ee(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Ht(e){for(var t=e.length<0?0:Kt(e.length)|0,r=ee(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Yi(e){if(j(e,Uint8Array)){var t=new Uint8Array(e);return qt(t.buffer,t.byteOffset,t.byteLength)}return Ht(e)}function qt(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 Zi(e){if(u.isBuffer(e)){var t=Kt(e.length)|0,r=ee(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Xt(e.length)?ee(0):Ht(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ht(e.data)}function Kt(e){if(e>=Ke)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ke.toString(16)+" bytes");return e|0}function Ji(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(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),j(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,p=0,l=Math.min(o,i);p<l;++p)if(t[p]!==r[p]){o=t[p],i=r[p];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),p=0;for(o=0;o<t.length;++o){var l=t[o];if(j(l,Uint8Array))p+l.length>i.length?u.from(l).copy(i,p):Uint8Array.prototype.set.call(i,l,p);else if(u.isBuffer(l))l.copy(i,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=l.length}return i};function en(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(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 jt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return an(e).length;default:if(i)return o?-1:jt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=en;function Qi(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 ls(this,t,r);case"utf8":case"utf-8":return rn(this,t,r);case"ascii":return as(this,t,r);case"latin1":case"binary":return cs(this,t,r);case"base64":return is(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ps(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function ue(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)ue(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)ue(this,r,r+3),ue(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)ue(this,r,r+7),ue(this,r+1,r+6),ue(this,r+2,r+5),ue(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?rn(this,0,t):Qi.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+">"};Xr&&(u.prototype[Xr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,p){if(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),p===void 0&&(p=this.length),r<0||o>t.length||i<0||p>this.length)throw new RangeError("out of range index");if(i>=p&&r>=o)return 0;if(i>=p)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,p>>>=0,this===t)return 0;for(var l=p-i,d=o-r,m=Math.min(l,d),f=this.slice(i,p),h=t.slice(r,o),y=0;y<m;++y)if(f[y]!==h[y]){l=f[y],d=h[y];break}return l<d?-1:d<l?1:0};function tn(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,Xt(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:Yr(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):Yr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Yr(e,t,r,o,i){var p=1,l=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;p=2,l/=2,d/=2,r/=2}function m(v,H){return p===1?v[H]:v.readUInt16BE(H*p)}var f;if(i){var h=-1;for(f=r;f<l;f++)if(m(e,f)===m(t,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===d)return h*p}else h!==-1&&(f-=f-h),h=-1}else for(r+d>l&&(r=l-d),f=r;f>=0;f--){for(var y=!0,N=0;N<d;N++)if(m(e,f+N)!==m(t,N)){y=!1;break}if(y)return f}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return tn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return tn(this,t,r,o,!1)};function es(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var p=t.length;o>p/2&&(o=p/2);for(var l=0;l<o;++l){var d=parseInt(t.substr(l*2,2),16);if(Xt(d))return l;e[r+l]=d}return l}function ts(e,t,r,o){return Xe(jt(t,e.length-r),e,r,o)}function rs(e,t,r,o){return Xe(ms(t),e,r,o)}function ns(e,t,r,o){return Xe(an(t),e,r,o)}function os(e,t,r,o){return Xe(gs(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-r;if((o===void 0||o>p)&&(o=p),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var l=!1;;)switch(i){case"hex":return es(this,t,r,o);case"utf8":case"utf-8":return ts(this,t,r,o);case"ascii":case"latin1":case"binary":return rs(this,t,r,o);case"base64":return ns(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return os(this,t,r,o);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function is(e,t,r){return t===0&&r===e.length?Wt.fromByteArray(e):Wt.fromByteArray(e.slice(t,r))}function rn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var p=e[i],l=null,d=p>239?4:p>223?3:p>191?2:1;if(i+d<=r){var m,f,h,y;switch(d){case 1:p<128&&(l=p);break;case 2:m=e[i+1],(m&192)===128&&(y=(p&31)<<6|m&63,y>127&&(l=y));break;case 3:m=e[i+1],f=e[i+2],(m&192)===128&&(f&192)===128&&(y=(p&15)<<12|(m&63)<<6|f&63,y>2047&&(y<55296||y>57343)&&(l=y));break;case 4:m=e[i+1],f=e[i+2],h=e[i+3],(m&192)===128&&(f&192)===128&&(h&192)===128&&(y=(p&15)<<18|(m&63)<<12|(f&63)<<6|h&63,y>65535&&y<1114112&&(l=y))}}l===null?(l=65533,d=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|l&1023),o.push(l),i+=d}return ss(o)}var Zr=4096;function ss(e){var t=e.length;if(t<=Zr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Zr));return r}function as(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 cs(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 ls(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",p=t;p<r;++p)i+=fs[e[p]];return i}function ps(e,t,r){for(var o=e.slice(t,r),i="",p=0;p<o.length-1;p+=2)i+=String.fromCharCode(o[p]+o[p+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function P(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||P(t,r,this.length);for(var i=this[t],p=1,l=0;++l<r&&(p*=256);)i+=this[t+l]*p;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||P(t,r,this.length);for(var i=this[t+--r],p=1;r>0&&(p*=256);)i+=this[t+--r]*p;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||P(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||P(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||P(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||P(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||P(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||P(t,r,this.length);for(var i=this[t],p=1,l=0;++l<r&&(p*=256);)i+=this[t+l]*p;return p*=128,i>=p&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||P(t,r,this.length);for(var i=r,p=1,l=this[t+--i];i>0&&(p*=256);)l+=this[t+--i]*p;return p*=128,l>=p&&(l-=Math.pow(2,8*r)),l};u.prototype.readInt8=function(t,r){return t=t>>>0,r||P(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||P(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||P(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||P(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||P(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||P(t,4,this.length),Te.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||P(t,4,this.length),Te.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||P(t,8,this.length),Te.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||P(t,8,this.length),Te.read(this,t,!1,52,8)};function _(e,t,r,o,i,p){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<p)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var p=Math.pow(2,8*o)-1;_(this,t,r,o,p,0)}var l=1,d=0;for(this[r]=t&255;++d<o&&(l*=256);)this[r+d]=t/l&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var p=Math.pow(2,8*o)-1;_(this,t,r,o,p,0)}var l=o-1,d=1;for(this[r+l]=t&255;--l>=0&&(d*=256);)this[r+l]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(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||_(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||_(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||_(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||_(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var p=Math.pow(2,8*o-1);_(this,t,r,o,p-1,-p)}var l=0,d=1,m=0;for(this[r]=t&255;++l<o&&(d*=256);)t<0&&m===0&&this[r+l-1]!==0&&(m=1),this[r+l]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var p=Math.pow(2,8*o-1);_(this,t,r,o,p-1,-p)}var l=o-1,d=1,m=0;for(this[r+l]=t&255;--l>=0&&(d*=256);)t<0&&m===0&&this[r+l+1]!==0&&(m=1),this[r+l]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(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||_(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||_(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||_(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||_(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 nn(e,t,r,o,i,p){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function on(e,t,r,o,i){return t=+t,r=r>>>0,i||nn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Te.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return on(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return on(this,t,r,!1,o)};function sn(e,t,r,o,i){return t=+t,r=r>>>0,i||nn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Te.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return sn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return sn(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var p=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),p};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var p=t.charCodeAt(0);(i==="utf8"&&p<128||i==="latin1")&&(t=p)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var l;if(typeof t=="number")for(l=r;l<o;++l)this[l]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(l=0;l<o-r;++l)this[l+r]=d[l%m]}return this};var us=/[^+/0-9A-Za-z-_]/g;function ds(e){if(e=e.split("=")[0],e=e.trim().replace(us,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function jt(e,t){t=t||1/0;for(var r,o=e.length,i=null,p=[],l=0;l<o;++l){if(r=e.charCodeAt(l),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&p.push(239,191,189);continue}else if(l+1===o){(t-=3)>-1&&p.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&p.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&p.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;p.push(r)}else if(r<2048){if((t-=2)<0)break;p.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;p.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;p.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return p}function ms(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function gs(e,t){for(var r,o,i,p=[],l=0;l<e.length&&!((t-=2)<0);++l)r=e.charCodeAt(l),o=r>>8,i=r%256,p.push(i),p.push(o);return p}function an(e){return Wt.toByteArray(ds(e))}function Xe(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 j(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Xt(e){return e!==e}var fs=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 mn=je((yc,dn)=>{n();var I=dn.exports={},z,K;function Yt(){throw new Error("setTimeout has not been defined")}function Zt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=Yt}catch(e){z=Yt}try{typeof clearTimeout=="function"?K=clearTimeout:K=Zt}catch(e){K=Zt}})();function ln(e){if(z===setTimeout)return setTimeout(e,0);if((z===Yt||!z)&&setTimeout)return z=setTimeout,setTimeout(e,0);try{return z(e,0)}catch(t){try{return z.call(null,e,0)}catch(r){return z.call(this,e,0)}}}function Ts(e){if(K===clearTimeout)return clearTimeout(e);if((K===Zt||!K)&&clearTimeout)return K=clearTimeout,clearTimeout(e);try{return K(e)}catch(t){try{return K.call(null,e)}catch(r){return K.call(this,e)}}}var te=[],he=!1,de,Ye=-1;function ys(){!he||!de||(he=!1,de.length?te=de.concat(te):Ye=-1,te.length&&pn())}function pn(){if(!he){var e=ln(ys);he=!0;for(var t=te.length;t;){for(de=te,te=[];++Ye<t;)de&&de[Ye].run();Ye=-1,t=te.length}de=null,he=!1,Ts(e)}}I.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];te.push(new un(e,t)),te.length===1&&!he&&ln(pn)};function un(e,t){this.fun=e,this.array=t}un.prototype.run=function(){this.fun.apply(null,this.array)};I.title="browser";I.browser=!0;I.env={};I.argv=[];I.version="";I.versions={};function re(){}I.on=re;I.addListener=re;I.once=re;I.off=re;I.removeListener=re;I.removeAllListeners=re;I.emit=re;I.prependListener=re;I.prependOnceListener=re;I.listeners=function(e){return[]};I.binding=function(e){throw new Error("process.binding is not supported")};I.cwd=function(){return"/"};I.chdir=function(e){throw new Error("process.chdir is not supported")};I.umask=function(){return 0}});var s,a,hc,n=T(()=>{s=w(cn()),a=w(mn()),hc=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 Jt,De,gn,fn=T(()=>{"use strict";n();Jt="error when signing",De="cancelled",gn="provider not initialized"});var Ze,Tn=T(()=>{"use strict";n();Ze=(o=>(o.signature="signature",o.sessionId="sessionId",o.status="status",o))(Ze||{})});var yn=T(()=>{"use strict";n()});var hn=T(()=>{"use strict";n()});var $=T(()=>{"use strict";n()});var xn=T(()=>{"use strict";n()});var Sn=T(()=>{"use strict";n()});var O=T(()=>{"use strict";n()});var wn=T(()=>{"use strict";n()});var bn=T(()=>{"use strict";n()});var vn=T(()=>{"use strict";n()});var M=T(()=>{"use strict";n();Tn();yn();hn();$();xn();Sn();O();wn();bn();vn()});var Qt,An,Uc,In,Bc,En,Vc,$c,Gc,kn=T(()=>{"use strict";n();M();Qt={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:An,egldLabel:Uc}=Qt["devnet"],{chainId:In,egldLabel:Bc}=Qt["testnet"],{chainId:En,egldLabel:Vc}=Qt["mainnet"],$c={["devnet"]:An,["testnet"]:In,["mainnet"]:En},Gc={[An]:"devnet",[In]:"testnet",[En]:"mainnet"}});var er=T(()=>{"use strict";n()});var Ln=T(()=>{"use strict";n()});var Dn,tr=T(()=>{"use strict";n();Dn="transaction-status-toast-id"});var X,Pn=T(()=>{"use strict";n();X=require("@multiversx/sdk-web-wallet-provider")});var Nn=T(()=>{"use strict";n()});var rr,nr,Rn,Je,Cn,xe,b=T(()=>{"use strict";n();fn();kn();er();Ln();tr();Pn();Nn();rr=5e4,nr=1e9,Rn=1,Je="logout",Cn="login",xe="0"});var Qe,or=T(()=>{"use strict";n();Qe=()=>Date.now()/1e3});var Mn=T(()=>{"use strict";n()});var _n=T(()=>{"use strict";n()});var ir=T(()=>{"use strict";n();or();Mn();_n()});var ar={};le(ar,{getItem:()=>xs,localStorageKeys:()=>ie,removeItem:()=>Ss,setItem:()=>hs});var ie,sr,hs,xs,Ss,Se=T(()=>{"use strict";n();ir();ie={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},sr=typeof localStorage!="undefined",hs=({key:e,data:t,expires:r})=>{!sr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},xs=e=>{if(!sr)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:Qe()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Ss=e=>{!sr||localStorage.removeItem(String(e))}});var cr={};le(cr,{clear:()=>Bn,getItem:()=>Fn,removeItem:()=>Un,setItem:()=>On,storage:()=>ws});var On,Fn,Un,Bn,ws,Vn=T(()=>{"use strict";n();On=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Fn=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},Un=e=>sessionStorage.removeItem(String(e)),Bn=()=>sessionStorage.clear(),ws={setItem:On,getItem:Fn,removeItem:Un,clear:Bn}});var me,we=T(()=>{"use strict";n();Se();Vn();me={session:cr,local:ar}});var lr,E,Pe,U=T(()=>{"use strict";n();lr=require("@reduxjs/toolkit");b();E=(0,lr.createAction)(Je),Pe=(0,lr.createAction)(Cn,e=>({payload:e}))});var ur,$n,Gn,et,pr,Wn,dr,Sl,mr,wl,bl,vl,Al,Il,El,kl,Ll,tt,rt=T(()=>{"use strict";n();ur=require("@multiversx/sdk-core"),$n=require("@reduxjs/toolkit"),Gn=require("redux-persist");b();we();Se();U();et={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:xe},pr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":et},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Wn=(0,$n.createSlice)({name:"accountInfoSlice",initialState:pr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new ur.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:et},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}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(E,()=>(me.local.removeItem(ie.loginExpiresAt),pr)),e.addCase(Pe,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new ur.Address(o).hex()}),e.addCase(Gn.REHYDRATE,(t,r)=>{var f;if(!((f=r.payload)!=null&&f.account))return;let{account:o}=r.payload,{address:i,shard:p,accounts:l,publicKey:d}=o;t.address=i,t.shard=p;let m=l&&i in l;t.accounts=m?l:pr.accounts,t.publicKey=d})}}),{setAccount:dr,setAddress:Sl,setAccountNonce:mr,setAccountShard:wl,setLedgerAccount:bl,updateLedgerAccount:vl,setWalletConnectAccount:Al,setIsAccountLoading:Il,setAccountLoadingError:El,setWebsocketEvent:kl,setWebsocketBatchEvent:Ll}=Wn.actions,tt=Wn.reducer});function Ne(){return new Date().setHours(new Date().getHours()+24)}function Re(e){me.local.setItem({key:ie.loginExpiresAt,data:e,expires:e})}var gr=T(()=>{"use strict";n();we();Se()});var qn,Hn,jn,Ul,Bl,Vl,$l,Gl,Wl,zn,Hl,nt,ot=T(()=>{"use strict";n();qn=require("@reduxjs/toolkit");gr();$();U();Hn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},jn=(0,qn.createSlice)({name:"loginInfoSlice",initialState:Hn,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(E,()=>Hn),e.addCase(Pe,(t,r)=>{t.loginMethod=r.payload.loginMethod,Re(Ne())})}}),{setLoginMethod:Ul,setWalletConnectLogin:Bl,setLedgerLogin:Vl,setTokenLogin:$l,setTokenLoginSignature:Gl,setWalletLogin:Wl,invalidateLoginSession:zn,setLogoutRoute:Hl}=jn.actions,nt=jn.reducer});var Xn,Kn,Yn,Kl,Xl,Yl,Zl,it,st=T(()=>{"use strict";n();Xn=require("@reduxjs/toolkit");U();Kn={},Yn=(0,Xn.createSlice)({name:"modalsSlice",initialState:Kn,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(E,()=>Kn)}}),{setTxSubmittedModal:Kl,setNotificationModal:Xl,clearTxSubmittedModal:Yl,clearNotificationModal:Zl}=Yn.actions,it=Yn.reducer});var at=T(()=>{"use strict";n()});var Zn=T(()=>{"use strict";n();at()});function fr(e){return e[Math.floor(Math.random()*e.length)]}var Jn=T(()=>{"use strict";n()});var Qn=T(()=>{"use strict";n();er()});var eo=T(()=>{"use strict";n();Zn();Jn();Qn()});var to,ro,Tr,vs,no,dp,mp,ct,lt=T(()=>{"use strict";n();to=require("@reduxjs/toolkit"),ro=w(require("lodash.omit"));eo();Tr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},vs={network:Tr,chainID:"-1"},no=(0,to.createSlice)({name:"appConfig",initialState:vs,reducers:{initializeNetworkConfig:(e,t)=>{let r=fr(t.payload.walletConnectBridgeAddresses),o=fr(t.payload.walletConnectV2RelayAddresses),i=(0,ro.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:dp,setChainID:mp}=no.actions,ct=no.reducer});var oo,yr,io,Ce,so,hr,pt,ut=T(()=>{"use strict";n();oo=require("@reduxjs/toolkit");M();U();yr={isSigning:!1,signedSessions:{}},io=(0,oo.createSlice)({name:"signedMessageInfoSliceState",initialState:yr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=o},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>yr},extraReducers:e=>{e.addCase(E,()=>yr)}}),{setSignSession:Ce,clearSignedMessageInfo:so,setSignSessionState:hr}=io.actions,pt=io.reducer});var co,lo,ao,po,Is,Es,Ip,Ep,kp,Lp,dt,mt=T(()=>{"use strict";n();co=require("@reduxjs/toolkit"),lo=require("redux-persist");tr();M();or();U();ao={customToasts:[],transactionToasts:[],failTransactionToast:null},po=(0,co.createSlice)({name:"toastsSlice",initialState:ao,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(S(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Qe(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=S(x({},t.payload),{toastId:Dn})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(E,()=>ao),e.addCase(lo.REHYDRATE,(t,r)=>{var i,p;let o=(p=(i=r.customToasts)==null?void 0:i.filter(l=>!("component"in l)))!=null?p:[];t.customToasts=o})}}),{addCustomToast:Is,removeCustomToast:Es,addTransactionToast:Ip,removeTransactionToast:Ep,addFailTransactionToast:kp,removeFailTransactionToast:Lp}=po.actions,dt=po.reducer});var uo,Sr,wr,br,ks,xr,mo,Rp,Cp,Mp,gt,ft=T(()=>{"use strict";n();uo=require("@reduxjs/toolkit");U();Sr="Transaction failed",wr="Transaction successful",br="Processing transaction",ks="Transaction submitted",xr={},mo=(0,uo.createSlice)({name:"transactionsInfo",initialState:xr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||Sr,successMessage:(o==null?void 0:o.successMessage)||wr,processingMessage:(o==null?void 0:o.processingMessage)||br,submittedMessage:(o==null?void 0:o.submittedMessage)||ks,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>xr},extraReducers:e=>{e.addCase(E,()=>xr)}}),{clearTransactionsInfo:Rp,setTransactionsDisplayInfo:Cp,clearTransactionsInfoForSessionId:Mp}=mo.actions,gt=mo.reducer});function go(e){return e!=null&&(Os(e)||Vs(e))}function Tt(e){return e!=null&&(Fs(e)||$s(e))}function yt(e){return e!=null&&(Us(e)||Gs(e))}function fo(e){return e!=null&&Bs(e)}function Os(e){return e!=null&&Ds.includes(e)}function Fs(e){return e!=null&&Ps.includes(e)}function Us(e){return e!=null&&Ns.includes(e)}function Bs(e){return e!=null&&Rs.includes(e)}function Vs(e){return e!=null&&Cs.includes(e)}function $s(e){return e!=null&&Ms.includes(e)}function Gs(e){return e!=null&&_s.includes(e)}var Ds,Ps,Ns,Rs,Cs,Ms,_s,Ar=T(()=>{"use strict";n();$();Ds=["sent"],Ps=["success"],Ns=["fail","cancelled","timedOut"],Rs=["timedOut"],Cs=["pending"],Ms=["success"],_s=["fail","invalid"]});var To,yo,Me,Ws,ho,Wp,Hp,qp,jp,zp,Kp,Xp,Yp,Zp,Jp,ht,xt=T(()=>{"use strict";n();To=require("@reduxjs/toolkit"),yo=require("redux-persist");$();Ar();U();Me={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ws={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},ho=(0,To.createSlice)({name:"transactionsSlice",initialState:Me,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,f;let{sessionId:r,transactions:o,errorMessage:i,status:p,redirectRoute:l}=t.payload,d=((m=e.customTransactionInformationForSessionId)==null?void 0:m[r])||Ws;e.signedTransactions[r]={transactions:o,status:p,errorMessage:i,redirectRoute:l,customTransactionInformation:d},((f=e==null?void 0:e.transactionsToSign)==null?void 0:f.sessionId)===r&&(e.transactionsToSign=Me.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:p}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),p!=null&&(e.signedTransactions[r].transactions=p))},updateSignedTransactionStatus:(e,t)=>{var d,m,f,h,y,N;let{sessionId:r,status:o,errorMessage:i,transactionHash:p}=t.payload,l=(m=(d=e.signedTransactions)==null?void 0:d[r])==null?void 0:m.transactions;if(l!=null){e.signedTransactions[r].transactions=l.map(W=>W.hash===p?S(x({},W),{status:o,errorMessage:i}):W);let v=(h=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:h.every(W=>Tt(W.status)),H=(N=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:N.every(W=>yt(W.status));v&&(e.signedTransactions[r].status="success"),H&&(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=Me.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Me.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(E,()=>Me),e.addCase(yo.REHYDRATE,(t,r)=>{var l;if(t.signTransactionsCancelMessage=null,!((l=r.payload)!=null&&l.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,p=Object.entries(o).reduce((d,[m,f])=>{let h=new Date(m),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(d[m]=f),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=p)})}}),{updateSignedTransactionStatus:Wp,updateSignedTransactions:Hp,setTransactionsToSign:qp,clearAllTransactionsToSign:jp,clearAllSignedTransactions:zp,clearSignedTransaction:Kp,clearTransactionToSign:Xp,setSignTransactionsError:Yp,setSignTransactionsCancelMessage:Zp,moveTransactionsToSignedState:Jp}=ho.actions,ht=ho.reducer});var xo,Ir,So,ru,nu,ou,iu,St,wt=T(()=>{"use strict";n();xo=require("@reduxjs/toolkit");U();Ir={},So=(0,xo.createSlice)({name:"batchTransactionsSlice",initialState:Ir,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Ir},extraReducers:e=>{e.addCase(E,()=>Ir)}}),{setBatchTransactions:ru,updateBatchTransactions:nu,clearBatchTransactions:ou,clearAllBatchTransactions:iu}=So.actions,St=So.reducer});var bo,wo,vo,lu,Ao,Er=T(()=>{"use strict";n();bo=require("@reduxjs/toolkit");U();wo={},vo=(0,bo.createSlice)({name:"dappConfigSlice",initialState:wo,reducers:{setDappConfig:(e,t)=>{e=x(x({},e),t.payload)}},extraReducers:e=>{e.addCase(E,()=>wo)}}),{setDappConfig:lu}=vo.actions,Ao=vo.reducer});var Y=T(()=>{"use strict";n();rt();ot();st();lt();ut();mt();ft();xt();wt();Er()});var kr=T(()=>{"use strict";n()});var Do,Lo,Po,_u,Ou,Fu,Uu,Bu,Vu,No,Ro=T(()=>{"use strict";n();Do=require("@reduxjs/toolkit");U();Lo={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Po=(0,Do.createSlice)({name:"dappModalsSlice",initialState:Lo,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(E,()=>Lo)}}),{setDappModalVisibility:_u,setDappModalHeaderVisibility:Ou,setDappModalFooterVisibility:Fu,setDappModalHeaderText:Uu,setDappModalFooterText:Bu,setDappModalConfig:Vu}=Po.actions,No=Po.reducer});var Co,zs,Ks,ge,Et=T(()=>{"use strict";n();Co=require("@reduxjs/toolkit");kr();rt();wt();Er();Ro();ot();st();lt();ut();mt();ft();xt();zs={["account"]:tt,["dappModal"]:No,["dappConfig"]:Ao,["loginInfo"]:nt,["modals"]:it,["networkConfig"]:ct,["signedMessageInfo"]:pt,["toasts"]:dt,["transactionsInfo"]:gt,["transactions"]:ht,["batchTransactions"]:St},Ks=(e={})=>(0,Co.combineReducers)(x(x({},zs),e)),ge=Ks});var Fo={};le(Fo,{default:()=>pa,sessionStorageReducers:()=>Lr});function ne(e,t=[]){return{key:e,version:1,storage:_o.default,blacklist:t}}var F,Mo,_o,Xs,_e,Ys,Zs,Js,Qs,ea,ta,ra,na,oa,ia,Oo,sa,Lr,aa,ca,la,pa,Uo=T(()=>{"use strict";n();F=require("redux-persist"),Mo=w(require("redux-persist/lib/storage")),_o=w(require("redux-persist/lib/storage/session"));Et();Y();rt();wt();ot();st();lt();ut();mt();ft();xt();kr();Xs={persistReducersStorageType:"localStorage"},_e={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Ys=ne(_e["account"]),Zs=ne(_e["loginInfo"]),Js=ne(_e["modals"]),Qs=ne(_e["networkConfig"]),ea={2:e=>S(x({},e),{networkConfig:Tr})};ta=ne("sdk-dapp-transactionsInfo"),ra=ne("sdk-dapp-transactions",["transactionsToSign"]),na=ne("sdk-dapp-batchTransactions",["batchTransactions"]),oa=ne("sdk-dapp-toasts"),ia=ne("sdk-dapp-signedMessageInfo"),Oo={key:"sdk-dapp-store",version:2,storage:Mo.default,whitelist:Object.keys(_e),migrate:(0,F.createMigrate)(ea,{debug:!1})},sa=S(x({},Oo),{whitelist:[]}),Lr={["toasts"]:(0,F.persistReducer)(oa,dt),["transactions"]:(0,F.persistReducer)(ra,ht),["transactionsInfo"]:(0,F.persistReducer)(ta,gt),["batchTransactions"]:(0,F.persistReducer)(na,St),["signedMessageInfo"]:(0,F.persistReducer)(ia,pt)},aa=S(x({},Lr),{["account"]:(0,F.persistReducer)(Ys,tt),["loginInfo"]:(0,F.persistReducer)(Zs,nt),["modals"]:(0,F.persistReducer)(Js,it),["networkConfig"]:(0,F.persistReducer)(Qs,ct)}),ca=Xs.persistReducersStorageType==="localStorage",la=ca?(0,F.persistReducer)(Oo,ge(Lr)):(0,F.persistReducer)(sa,ge(aa)),pa=la});var Bo={};le(Bo,{default:()=>ua});var ua,Vo=T(()=>{"use strict";n();Et();ua=ge()});var $o={};le($o,{default:()=>ma});var G,da,ma,Go=T(()=>{"use strict";n();G=require("redux-persist"),da=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],ma=da});var qo={};le(qo,{default:()=>Ho});function Ho(e){return(0,Wo.persistStore)(e)}var Wo,jo=T(()=>{"use strict";n();Wo=require("redux-persist")});var dc={};le(dc,{useGetLastSignedMessageSession:()=>nc,useGetSignMessageInfoStatus:()=>Br,useGetSignMessageSession:()=>oc,useSignMessage:()=>pc,verifyMessage:()=>uc});module.exports=Le(dc);n();n();n();var Jo=require("react"),ve=require("react-redux");n();var Dr=require("@reduxjs/toolkit"),Yo=require("react-redux/lib/utils/Subscription");Y();n();var Eo=w(require("lodash.throttle"));b();n();var Io=w(require("lodash.isequal")),bt=require("reselect");M();var g=(0,bt.createSelectorCreator)(bt.defaultMemoize,Io.default),vt=(e,t)=>e!=""&&Boolean(t);Y();gr();we();Se();var Hs=[Je],At=!1,qs=(0,Eo.default)(()=>{Re(Ne())},5e3),ko=e=>t=>r=>{var m;if(Hs.includes(r.type))return t(r);let o=e.getState(),i=me.local.getItem(ie.loginExpiresAt);if(!vt((m=o==null?void 0:o.loginInfo)==null?void 0:m.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return Re(Ne());let l=Date.now();return i-l<0&&!At?setTimeout(()=>{At=!0,e.dispatch(zn())},1e3):(At&&(At=!1),qs()),t(r)};n();n();function It(){return typeof sessionStorage!="undefined"}var zo=It()?(Uo(),Le(Fo)).default:(Vo(),Le(Bo)).default,Ko=It()?(Go(),Le($o)).default:[],Xo=It()?(jo(),Le(qo)).default:e=>e;Et();var L=(0,Dr.configureStore)({reducer:zo,middleware:e=>e({serializableCheck:{ignoredActions:[...Ko,mr.type,dr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(ko)}),Zo=(0,Yo.createSubscription)(L),Sd=Xo(L),wd=(0,Dr.configureStore)({reducer:ge});var ga={store:L,subscription:Zo},Pr=(0,Jo.createContext)(ga),Id=(0,ve.createStoreHook)(Pr),Qo=(0,ve.createDispatchHook)(Pr),Z=(0,ve.createSelectorHook)(Pr);n();n();Y();var J=e=>e.account,Oe=g(J,e=>e.address),kt=g(J,Oe,(e,t)=>t in e.accounts?e.accounts[t]:et),Dd=g(J,kt,(e,t)=>{let i=e,{accounts:r}=i,o=qe(i,["accounts"]);return S(x({},o),{account:t})}),Pd=g(kt,e=>e.balance),fa=g(kt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Nd=g(J,e=>e.shard),Rd=g(J,e=>e.ledgerAccount),Cd=g(J,e=>e.walletConnectAccount),Md=g(J,e=>e.isAccountLoading),_d=g(J,e=>e.accountLoadingError),Od=g(J,e=>e.websocketEvent),Fd=g(J,e=>e.websocketBatchEvent);n();var se=e=>e.loginInfo,$d=g(se,e=>e.loginMethod),Nr=g(se,Oe,(e,t)=>vt(e.loginMethod,t)),Gd=g(se,e=>e.walletConnectLogin),Wd=g(se,e=>e.ledgerLogin),ei=g(se,e=>e.walletLogin),Hd=g(se,e=>e.isLoginSessionInvalid),qd=g(se,e=>e.tokenLogin),jd=g(se,e=>e.logoutRoute);n();var ti=e=>e.modals,Xd=g(ti,e=>e.txSubmittedModal),Yd=g(ti,e=>e.notificationModal);n();var fe=e=>e.networkConfig,Ta=g(fe,e=>e.chainID),Qd=g(fe,e=>e.network.walletConnectBridgeAddress),em=g(fe,e=>e.network.walletConnectV2RelayAddress),tm=g(fe,e=>e.network.walletConnectV2ProjectId),rm=g(fe,e=>e.network.walletConnectV2Options),nm=g(fe,e=>e.network.walletConnectDeepLink),Lt=g(fe,e=>e.network),ya=g(Lt,e=>e.apiAddress),ri=g(Lt,e=>e.explorerAddress),ha=g(Lt,e=>e.egldLabel);n();var ae=e=>e.signedMessageInfo,ni=g(ae,e=>e.isSigning),oi=g(ae,e=>e.errorMessage),ii=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),si=g(ae,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var Rr=e=>e.toasts,cm=g(Rr,e=>e.customToasts),lm=g(Rr,e=>e.transactionToasts),pm=g(Rr,e=>e.failTransactionToast);n();Y();var ai={errorMessage:Sr,successMessage:wr,processingMessage:br},xa=e=>e.transactionsInfo,gm=g(xa,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||ai);n();n();var Q=require("@multiversx/sdk-core"),li=require("@multiversx/sdk-core/out/signature");b();n();var Mr=require("@multiversx/sdk-core/out");n();n();function Cr(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}n();n();n();n();var ci=e=>{let t=e!=null?e:"";return Cr(t)?Mr.TransactionPayload.fromEncoded(t):new Mr.TransactionPayload(t)};function _r(e){var r,o,i;let t=new Q.Transaction(x(x({value:e.value.valueOf(),data:ci(e.data),nonce:e.nonce.valueOf(),receiver:new Q.Address(e.receiver),sender:new Q.Address(e.sender),gasLimit:(r=e.gasLimit.valueOf())!=null?r:rr,gasPrice:(o=e.gasPrice.valueOf())!=null?o:nr,chainID:e.chainID.valueOf(),version:new Q.TransactionVersion((i=e.version)!=null?i:Rn)},e.options?{options:new Q.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new Q.Address(e.guardian)}:{}));return e.guardianSignature&&t.applyGuardianSignature({hex:()=>e.guardianSignature||""}),t.applySignature(new li.Signature(e.signature)),t}n();n();n();n();n();var ba=require("@multiversx/sdk-core/out");n();b();n();var ui=require("@multiversx/sdk-core");M();n();var pi=require("@multiversx/sdk-core");function va(e){try{let t=new pi.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Fe(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&va(e)}n();n();n();var Aa=require("@multiversx/sdk-core"),Ia=w(require("bignumber.js"));$();n();n();n();n();n();n();n();O();n();n();O();n();n();n();var Ra=w(require("bignumber.js"));b();n();var Na=require("@multiversx/sdk-core"),Or=w(require("bignumber.js"));b();n();var Da=w(require("bignumber.js"));n();Or.default.config({ROUNDING_MODE:Or.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var Ca=require("@multiversx/sdk-core");b();n();var Ue=require("@multiversx/sdk-core"),_a=require("@multiversx/sdk-network-providers");b();n();n();var Ma=w(require("bignumber.js"));b();n();b();n();n();n();n();n();b();n();O();var Fa=["reDelegateRewards","claimRewards","unBond"],Ua=["wrapEgld","unwrapEgld"],Ba=["unStake"],Va=["unDelegate"];n();n();n();b();n();var Wa=w(require("bignumber.js"));n();n();O();n();var Ha=w(require("bignumber.js"));n();n();n();var ja=w(require("bignumber.js"));M();n();n();n();n();$();n();var Ka=require("@multiversx/sdk-web-wallet-provider");b();n();var yi=w(require("qs"));n();var Nt=e=>{let t=new URLSearchParams(e).toString(),r=window==null?void 0:window.location.pathname,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,i)})};n();var Be=()=>typeof window!="undefined";n();var za={search:Be()?window.location.search:"",removeParams:[]},Rt=(e,t=za)=>{var l;let r={},o=Be()?window.location.search:"",i=(l=t.search)!=null?l:o;if(i){let d=i?new URLSearchParams(i):[];r=Object.fromEntries(d)}let p={};return e.forEach(d=>{p[d]=r[d],delete r[d]}),t.removeParams!=null&&Object.keys(r).forEach(d=>{var f,h;let[m]=d.split("[");(((f=t.removeParams)==null?void 0:f.includes(d))||((h=t.removeParams)==null?void 0:h.includes(m)))&&delete r[d]}),{remainingParams:p,params:r,clearNavigationHistory:()=>Nt(r)}};var Ur=({removeParams:e,search:t})=>{let r=Be()?window.location.search:"",o=t!=null?t:r;if(!o)return{};let i=yi.default.parse(o.replace("?","")),p=Object.keys(i).filter(d=>!e.includes(d)),{remainingParams:l}=Rt(p,{search:t,removeParams:e});return Nt(l),l};n();n();n();n();O();n();n();n();var Xa=w(require("linkifyjs"));n();b();n();var Ya=w(require("bignumber.js"));n();M();n();n();$();n();$();n();n();n();O();n();O();n();var Za=w(require("bignumber.js"));b();O();n();O();n();var xi=require("react");M();n();n();O();n();n();var Ja=require("@multiversx/sdk-core/out"),Qa=w(require("bignumber.js"));O();n();M();n();n();M();var yx=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Si=require("react");M();n();var tc=require("react");O();var Ax=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Ar();var Mt=e=>e.transactions,Ve=g(Mt,e=>e.signedTransactions),lS=g(Mt,e=>e.signTransactionsError),pS=g(Mt,e=>e.signTransactionsCancelMessage),_t=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),uS=g(Ve,_t(go)),dS=g(Ve,_t(Tt)),mS=g(Ve,_t(yt)),gS=g(Ve,_t(fo)),fS=g(Mt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>_r(r)))||[]})}),TS=g(Ve,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});n();var rc=e=>e.dappConfig,xS=g(rc,e=>e.shouldUseWebViewProvider);var nc=()=>Z(ii);n();var oc=e=>{let t=Z(ae);if(!!e)return t.signedSessions[e]};n();var Br=()=>{let e=Z(ni),t=Z(oi);return{isPending:e,errorMessage:t}};n();var Ee=require("react"),Ft=require("@multiversx/sdk-core");b();n();n();n();n();var bi=require("@multiversx/sdk-extension-provider"),vi=require("@multiversx/sdk-hw-provider"),Ai=require("@multiversx/sdk-opera-provider"),Ii=require("@multiversx/sdk-web-wallet-provider");b();$();n();var Vr=Ae,wi=Vr;var $e=e=>{switch(e==null?void 0:e.constructor){case Ii.WalletProvider:return"wallet";case Vr:return"walletconnect";case wi:return"walletconnectv2";case vi.HWProvider:return"ledger";case bi.ExtensionProvider:return"extension";case Ai.OperaProvider:return"opera";case Ae:return"";default:return"extra"}};var oe=e=>`Unable to perform ${e}, Provider not initialized`,Ae=class{init(){return Promise.resolve(!1)}login(t){throw new Error(oe(`login with options: ${t}`))}logout(t){throw new Error(oe(`logout with options: ${t}`))}getAddress(){throw new Error(oe("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(oe(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(oe(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(oe(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(oe(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(oe(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(oe(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},$r=new Ae;var ic=$r;function B(){return ic||$r}var Ei=()=>{let e=B(),t=$e(e);return{provider:e,providerType:t}};Y();M();n();var Ot=require("@multiversx/sdk-core");n();$();n();n();function ki(){let e=B();return $e(e)}function Ge(e){return ki()===e}function Ie(){let e=window==null?void 0:window.location.search,t=L.getState(),r=B(),o=Oe(t),i=Nr(t),p=ei(t);if(!r)throw"provider not initialized";return Ge("ledger")&&i?new Promise(l=>{l(o)}):!Ge("")&&!Ge("wallet")&&!Ge("extra")?r.getAddress():new Promise(l=>{if(p!=null){let d=new URLSearchParams(e),m=Object.fromEntries(d);Fe(m.address)&&l(m.address)}i&&l(o),l("")})}var Li=r=>C(void 0,[r],function*({message:e,callbackRoute:t}){let o=yield Ie(),i=B(),p=window!=null&&window.location?`${window.location.origin}${t}`:`${t}`,l=new Ot.SignableMessage({address:new Ot.Address(o),message:s.Buffer.from(e,"ascii")});return yield i.signMessage(l,{callbackUrl:encodeURIComponent(p)})});n();n();n();n();var sc=w(require("axios"));n();n();n();Y();n();n();n();Y();n();U();M();n();ir();n();n();var cc=w(require("platform"));n();n();U();M();at();we();Se();n();n();n();n();n();n();n();n();n();$();n();at();n();n();n();n();we();n();n();n();Y();n();n();var lc=w(require("axios"));var pc=()=>{let e=Qo(),[t,r]=(0,Ee.useState)(""),i=Z(ae).signedSessions[t],{isPending:p,errorMessage:l}=Br(),d=window==null?void 0:window.location.search,{provider:m,providerType:f}=Ei(),h=f==="wallet",y=Z(si),N=()=>(e(so()),Ur({removeParams:Object.keys(Ze)})),v=({callbackRoute:D,errorMessage:k=De})=>{let A=k.includes(De),R=Date.now().toString();i||r(R),e(Ce({errorMessage:k,sessionId:R,signedSession:{callbackUrl:D,status:A?"cancelled":"failed"}}))},H=(D,k)=>{if(!D)return"";let A=new URL(D);return A.searchParams.get("sessionId")||A.searchParams.append("sessionId",k),`${h?window==null?void 0:window.location.origin:""}${A.pathname}${A.search}`},W=()=>C(void 0,null,function*(){var D;if(!h)try{if(!(yield(D=m==null?void 0:m.init)==null?void 0:D.call(m)))return}catch(k){let A=(k==null?void 0:k.message)||k||gn;console.error(A)}}),Di=A=>C(void 0,[A],function*({message:D,callbackRoute:k}){let R=yield Ie(),Bt=B(),Ri=encodeURIComponent(String(k)),Ci=new Ft.SignableMessage({address:new Ft.Address(R),message:s.Buffer.from(D,"ascii")});return Bt.signMessage(Ci,{callbackUrl:Ri})}),Pi=D=>C(void 0,null,function*(){let k=Date.now().toString();r(k);let A=H(D.callbackRoute,k);if(e(Ce({sessionId:k,signedSession:{status:"pending",message:D.message,callbackUrl:A}})),h)return Di(S(x({},D),{callbackRoute:A}));try{yield W()}catch(R){return v({errorMessage:String(R),callbackRoute:A}),null}try{let R=yield Li(S(x({},D),{callbackRoute:A}));if(R.signature)return e(Ce({sessionId:k,signedSession:{status:"signed",callbackUrl:A,message:D.message,signature:R.signature.toString("hex")}})),R;v({errorMessage:De,callbackRoute:A})}catch(R){let Bt=(R==null?void 0:R.message)||R||Jt;v({errorMessage:Bt,callbackRoute:A})}return null}),Ni=()=>{if(d){let{remainingParams:{signature:D,sessionId:k,status:A},clearNavigationHistory:R}=Rt(Object.values(Ze));if(!k)return;if(r(k),["cancelled","failed"].includes(A))return v({errorMessage:A==="cancelled"?De:Jt});if(D&&A==="signed")return e(Ce({sessionId:t,signedSession:{signature:D,status:A}}));R()}};return(0,Ee.useEffect)(()=>{Ni()},[d]),(0,Ee.useEffect)(()=>{(p||l)&&!i&&e(hr({isSigning:!1,errorMessage:""}))},[]),(0,Ee.useEffect)(()=>{t&&!i&&!p&&e(hr({isSigning:!1,errorMessage:""}))},[t]),{onAbort:N,onCancel:v,signMessage:Pi,sessionId:t||y}};n();var We=require("@multiversx/sdk-core/out"),Ut=require("@multiversx/sdk-wallet"),uc=e=>{try{let{message:t,address:r,signature:o}=JSON.parse(e),i=s.Buffer.from(t.replace("0x",""),"hex"),p=s.Buffer.from(o.replace("0x",""),"hex"),l=new We.Address(r),d=new We.SignableMessage({address:l,message:i,signature:p}),m=new Ut.UserPublicKey(We.Address.fromString(r).pubkey());return{isVerified:new Ut.UserVerifier(m).verify(d.serializeForSigning(),d.getSignature()),message:i.toString(),address:r}}catch(t){return{isVerified:!1,message:"",address:""}}};0&&(module.exports={useGetLastSignedMessageSession,useGetSignMessageInfoStatus,useGetSignMessageSession,useSignMessage,verifyMessage});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -18,10 +18,7 @@ export interface SignedMessageParamsType {
|
|
|
18
18
|
export declare const useSignMessage: () => {
|
|
19
19
|
onAbort: () => Record<string, string>;
|
|
20
20
|
onCancel: ({ callbackRoute, errorMessage }: CancelPropsType) => void;
|
|
21
|
-
signMessage: (props: SignMessageType) => Promise<
|
|
22
|
-
payload: import("reduxStore/slices").SignedSessionPayloadType;
|
|
23
|
-
type: string;
|
|
24
|
-
}>;
|
|
21
|
+
signMessage: (props: SignMessageType) => Promise<SignableMessage | null>;
|
|
25
22
|
sessionId: string;
|
|
26
23
|
};
|
|
27
24
|
//# sourceMappingURL=useSignMessage.d.ts.map
|