@multiversx/sdk-dapp 2.8.5 → 2.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/Denominate/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/FormatAmount/FormatAmount.js +1 -1
- package/UI/FormatAmount/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionData/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
- package/UI/TransactionInfo/components/DataField/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-GS6HJLZT.js → chunk-23V4EWR6.js} +2 -2
- package/__chunks__/{chunk-VYDY4AQR.js → chunk-27HHZHC3.js} +2 -2
- package/__chunks__/{chunk-BA2ZPL2G.js → chunk-2BB6LW6O.js} +2 -2
- package/__chunks__/{chunk-XX66RRCJ.js → chunk-2DPI5E3W.js} +2 -2
- package/__chunks__/{chunk-FP26R7AX.js → chunk-2QUSEUT4.js} +2 -2
- package/__chunks__/{chunk-54ZTSEQ5.js → chunk-2QZSUGLK.js} +2 -2
- package/__chunks__/{chunk-YKKX7VTP.js → chunk-2YVBZL56.js} +2 -2
- package/__chunks__/{chunk-6METVVCY.js → chunk-3CUFCCHN.js} +2 -2
- package/__chunks__/{chunk-NSEU7FDE.js → chunk-3EOVBK4H.js} +2 -2
- package/__chunks__/chunk-3LTTE7Z4.js +2 -0
- package/__chunks__/{chunk-G5SFDK7J.js → chunk-3RRHOO6Q.js} +2 -2
- package/__chunks__/{chunk-W7LZILLC.js → chunk-3SFC2GLJ.js} +2 -2
- package/__chunks__/{chunk-EDDPV3NE.js → chunk-3Z4WULR6.js} +2 -2
- package/__chunks__/{chunk-DXPKJNDE.js → chunk-47J5ACB5.js} +2 -2
- package/__chunks__/{chunk-FXGUPH2W.js → chunk-47LI6T2V.js} +2 -2
- package/__chunks__/{chunk-EQJQRYF5.js → chunk-4ALRWZZQ.js} +2 -2
- package/__chunks__/chunk-4G4EWYKO.js +2 -0
- package/__chunks__/{chunk-SGK2VHTJ.js → chunk-4HQ3HNGC.js} +2 -2
- package/__chunks__/{chunk-PTJNZVG2.js → chunk-4JB5QVKY.js} +2 -2
- package/__chunks__/{chunk-WKA6UPHX.js → chunk-4JKMMUID.js} +2 -2
- package/__chunks__/{chunk-U46EN25L.js → chunk-4MGZX5SO.js} +2 -2
- package/__chunks__/{chunk-7WQENNA3.js → chunk-4MI42IXU.js} +2 -2
- package/__chunks__/{chunk-DV75PUIL.js → chunk-4P3LJAUR.js} +2 -2
- package/__chunks__/{chunk-2SSJ2YKM.js → chunk-4RKQJ2QT.js} +2 -2
- package/__chunks__/{chunk-ILLMOGA7.js → chunk-4Y7CGA35.js} +2 -2
- package/__chunks__/chunk-53BQDHVS.js +2 -0
- package/__chunks__/chunk-573MD3HA.js +2 -0
- package/__chunks__/{chunk-QNY7VVUN.js → chunk-5DS4QT2H.js} +2 -2
- package/__chunks__/{chunk-5XVRM6XP.js → chunk-5FF4GQ5B.js} +2 -2
- package/__chunks__/{chunk-VTAWEOCS.js → chunk-5MD4G7OU.js} +2 -2
- package/__chunks__/{chunk-TTYMX7BT.js → chunk-5WX4CALV.js} +2 -2
- package/__chunks__/chunk-67ZEEHNB.js +2 -0
- package/__chunks__/{chunk-LHDZVAZF.js → chunk-6A26JFI6.js} +2 -2
- package/__chunks__/chunk-6FUSRKDM.js +2 -0
- package/__chunks__/{chunk-WVD4J544.js → chunk-6K7DK4BV.js} +2 -2
- package/__chunks__/{chunk-26ZJFITF.js → chunk-6KSF6FWJ.js} +2 -2
- package/__chunks__/{chunk-KQ4YTMGX.js → chunk-6KY36DKF.js} +2 -2
- package/__chunks__/chunk-6LEY24MG.js +2 -0
- package/__chunks__/chunk-6LITAK4Z.js +2 -0
- package/__chunks__/{chunk-EK2OJMYC.js → chunk-6LW3MPXQ.js} +2 -2
- package/__chunks__/{chunk-5LVCTUUY.js → chunk-6UNQJUWL.js} +2 -2
- package/__chunks__/{chunk-QU5E3AUX.js → chunk-6YFMGTBJ.js} +2 -2
- package/__chunks__/chunk-72NPJ7U6.js +2 -0
- package/__chunks__/{chunk-QH6XD7FF.js → chunk-73KODBLR.js} +2 -2
- package/__chunks__/{chunk-2GLDUTJG.js → chunk-74RGGNQE.js} +2 -2
- package/__chunks__/{chunk-YQYOGTKG.js → chunk-77DECFQY.js} +2 -2
- package/__chunks__/{chunk-ZJ54DLN6.js → chunk-77JEI7XJ.js} +2 -2
- package/__chunks__/{chunk-KKYUPTDF.js → chunk-7IQDNRGT.js} +2 -2
- package/__chunks__/chunk-7JGJFFVM.js +2 -0
- package/__chunks__/{chunk-GHSMZJKF.js → chunk-7M3KNDRD.js} +2 -2
- package/__chunks__/chunk-7S7PQZ5T.js +2 -0
- package/__chunks__/{chunk-PFDSWMCA.js → chunk-A2IXF222.js} +2 -2
- package/__chunks__/{chunk-UCIOXYG7.js → chunk-A4SQDGPF.js} +2 -2
- package/__chunks__/{chunk-PF57YMQ4.js → chunk-A6LP7GVR.js} +2 -2
- package/__chunks__/{chunk-HNJYC4EB.js → chunk-AFPIMSQ3.js} +2 -2
- package/__chunks__/{chunk-5FJ5AR5R.js → chunk-AHQRHYRO.js} +2 -2
- package/__chunks__/{chunk-A43MGEZS.js → chunk-B25RPITH.js} +2 -2
- package/__chunks__/{chunk-2C3YYZ5L.js → chunk-B2RKB42J.js} +2 -2
- package/__chunks__/{chunk-X26JPWE6.js → chunk-B3AXHK5F.js} +2 -2
- package/__chunks__/{chunk-CRXWPZPY.js → chunk-B3ILFYYH.js} +2 -2
- package/__chunks__/{chunk-ACQNMKRR.js → chunk-BF2PN3VB.js} +2 -2
- package/__chunks__/{chunk-ZXSHG6WE.js → chunk-BFOC3ZMG.js} +2 -2
- package/__chunks__/{chunk-A3RVUJJA.js → chunk-BMJLZLZM.js} +2 -2
- package/__chunks__/chunk-BNEETMBI.js +2 -0
- package/__chunks__/chunk-BNMR3XO4.js +2 -0
- package/__chunks__/{chunk-RVD4LBUP.js → chunk-BOKSFKJF.js} +2 -2
- package/__chunks__/{chunk-KLOPABPR.js → chunk-BYS7QALE.js} +2 -2
- package/__chunks__/{chunk-OXWKNWBA.js → chunk-CI6Z2BAF.js} +2 -2
- package/__chunks__/{chunk-BOG7TTXG.js → chunk-COV3NRWK.js} +2 -2
- package/__chunks__/{chunk-R3S3GBRF.js → chunk-CPPFVM42.js} +2 -2
- package/__chunks__/{chunk-WNSHEGIH.js → chunk-CRI42HNH.js} +2 -2
- package/__chunks__/{chunk-GS5AQB2N.js → chunk-CUFA5NAA.js} +2 -2
- package/__chunks__/{chunk-XYVUQB6L.js → chunk-CY7H7XN3.js} +2 -2
- package/__chunks__/{chunk-A6CTPEDF.js → chunk-D2Z7XPJA.js} +2 -2
- package/__chunks__/{chunk-6RM5F6B7.js → chunk-D65VO5NP.js} +2 -2
- package/__chunks__/{chunk-SLHJHRDG.js → chunk-DCXJRPKX.js} +2 -2
- package/__chunks__/{chunk-YRCUGAVR.js → chunk-DF24IGER.js} +2 -2
- package/__chunks__/{chunk-V3FDAB7B.js → chunk-DG7FFCMC.js} +2 -2
- package/__chunks__/{chunk-4P3ESYFB.js → chunk-DHYV75O3.js} +2 -2
- package/__chunks__/{chunk-DR45L5ZW.js → chunk-DO7UWPFB.js} +2 -2
- package/__chunks__/{chunk-PW6YTJLG.js → chunk-DQ2PRTPV.js} +2 -2
- package/__chunks__/{chunk-CVQTFYDA.js → chunk-DQ74GUK3.js} +2 -2
- package/__chunks__/{chunk-35XRH5YO.js → chunk-DQLFYAJF.js} +2 -2
- package/__chunks__/chunk-DTX32CUJ.js +2 -0
- package/__chunks__/{chunk-LFRMYD5N.js → chunk-DU5JJJHS.js} +2 -2
- package/__chunks__/{chunk-6RRAKU4R.js → chunk-E7GX6TO4.js} +2 -2
- package/__chunks__/{chunk-MONFLPCV.js → chunk-EBMIHN52.js} +2 -2
- package/__chunks__/chunk-EBUFLVTW.js +2 -0
- package/__chunks__/{chunk-LQVOQZ2Z.js → chunk-EIHQ5QAQ.js} +2 -2
- package/__chunks__/{chunk-JSTXHRPF.js → chunk-EIYXU6DX.js} +2 -2
- package/__chunks__/{chunk-4UJNHEBL.js → chunk-ELIQXNO3.js} +2 -2
- package/__chunks__/{chunk-HHZV7D63.js → chunk-ELPKQVAL.js} +2 -2
- package/__chunks__/{chunk-U7RDI4SM.js → chunk-EN36KS5J.js} +2 -2
- package/__chunks__/{chunk-5G4U3FMS.js → chunk-EVFPM5QZ.js} +2 -2
- package/__chunks__/{chunk-7H5YSU4Q.js → chunk-EVUACURD.js} +2 -2
- package/__chunks__/{chunk-3UUAMXNQ.js → chunk-F2EJ4NBK.js} +2 -2
- package/__chunks__/{chunk-ZIKKB6YX.js → chunk-F4Z4BQFP.js} +2 -2
- package/__chunks__/{chunk-2736QXUL.js → chunk-F536LQRD.js} +2 -2
- package/__chunks__/{chunk-VWPPW3QQ.js → chunk-F5N57CYV.js} +2 -2
- package/__chunks__/{chunk-B2DXLHFG.js → chunk-FDH2IBTM.js} +2 -2
- package/__chunks__/{chunk-KAM4B4VN.js → chunk-FE2XDCKI.js} +2 -2
- package/__chunks__/{chunk-DH27IPAK.js → chunk-FNO4F4XU.js} +2 -2
- package/__chunks__/{chunk-6WERDF6Z.js → chunk-FOEPS273.js} +2 -2
- package/__chunks__/{chunk-WFPVM7XI.js → chunk-FOTM2EHF.js} +2 -2
- package/__chunks__/{chunk-HA6AP7PO.js → chunk-FXJLSZIP.js} +2 -2
- package/__chunks__/{chunk-7X3ATYAR.js → chunk-FXKLPJUW.js} +2 -2
- package/__chunks__/{chunk-BGSCXB2N.js → chunk-GG6RZBEW.js} +2 -2
- package/__chunks__/chunk-GHXKZA4W.js +2 -0
- package/__chunks__/{chunk-WYPOPDEK.js → chunk-GJBBAXJV.js} +2 -2
- package/__chunks__/chunk-GK63BH64.js +2 -0
- package/__chunks__/{chunk-YAFNHDUR.js → chunk-GNZDKRCA.js} +2 -2
- package/__chunks__/{chunk-IX2VX3E2.js → chunk-GPNUHVOM.js} +2 -2
- package/__chunks__/{chunk-5RGNESSR.js → chunk-GQMTJB4L.js} +2 -2
- package/__chunks__/{chunk-SU4SH37S.js → chunk-GSSXFF46.js} +2 -2
- package/__chunks__/{chunk-YRDNCWJW.js → chunk-GVMLSXIC.js} +2 -2
- package/__chunks__/{chunk-Z55BDNGH.js → chunk-GXOJLFD4.js} +2 -2
- package/__chunks__/chunk-GZMTC35J.js +2 -0
- package/__chunks__/chunk-H3LMBICV.js +2 -0
- package/__chunks__/{chunk-PIIC6ZNG.js → chunk-HEMJW4UP.js} +2 -2
- package/__chunks__/{chunk-XPX4OKXG.js → chunk-HF7ILRBL.js} +2 -2
- package/__chunks__/{chunk-GIYZHATY.js → chunk-HK7SHFC7.js} +2 -2
- package/__chunks__/chunk-HP3L7RUD.js +2 -0
- package/__chunks__/{chunk-NUZF7HJ7.js → chunk-HQYSBDE7.js} +2 -2
- package/__chunks__/{chunk-OIGIOS7N.js → chunk-HWDGDPLP.js} +2 -2
- package/__chunks__/{chunk-ZKPBZO4S.js → chunk-I3DMSSAU.js} +2 -2
- package/__chunks__/{chunk-5YDLOWAE.js → chunk-IAZWDFI7.js} +2 -2
- package/__chunks__/{chunk-GW7FG43P.js → chunk-IIXY6EVM.js} +2 -2
- package/__chunks__/{chunk-6GFHYUPK.js → chunk-ILI6V46A.js} +2 -2
- package/__chunks__/{chunk-UH6PGRAV.js → chunk-IQV54UKF.js} +2 -2
- package/__chunks__/{chunk-WFHOHG3Z.js → chunk-ISWYWGYF.js} +2 -2
- package/__chunks__/{chunk-2M25PYL7.js → chunk-IV2PWXWW.js} +2 -2
- package/__chunks__/chunk-J2VDNLD5.js +2 -0
- package/__chunks__/{chunk-CYMNJYOT.js → chunk-JAQOVDY4.js} +2 -2
- package/__chunks__/{chunk-VBV4IR3F.js → chunk-JTXTYAX4.js} +2 -2
- package/__chunks__/{chunk-2NB6K2AS.js → chunk-K4P3Q4G6.js} +2 -2
- package/__chunks__/{chunk-LXWQKMKY.js → chunk-K5AYECMY.js} +2 -2
- package/__chunks__/chunk-K6MC7S66.js +2 -0
- package/__chunks__/{chunk-QXBR6DSI.js → chunk-K7OKFHDI.js} +2 -2
- package/__chunks__/{chunk-TNJRCS6C.js → chunk-KCOIYEPV.js} +2 -2
- package/__chunks__/{chunk-AQQBB5MJ.js → chunk-KE3UZZPK.js} +2 -2
- package/__chunks__/{chunk-6UBKGHVU.js → chunk-KHTHET32.js} +2 -2
- package/__chunks__/{chunk-T2N2FLZB.js → chunk-KJD27PBB.js} +2 -2
- package/__chunks__/chunk-KKVFNX7Q.js +2 -0
- package/__chunks__/{chunk-SMAM2FXU.js → chunk-KO4CKUQ3.js} +2 -2
- package/__chunks__/chunk-KQCX4VG2.js +2 -0
- package/__chunks__/{chunk-4PSQ762B.js → chunk-KQM2BOQR.js} +2 -2
- package/__chunks__/{chunk-FPK4LCVU.js → chunk-KRGNGXNM.js} +2 -2
- package/__chunks__/chunk-KV6BSLXQ.js +2 -0
- package/__chunks__/chunk-KVAITXAV.js +2 -0
- package/__chunks__/{chunk-CRTGGESP.js → chunk-KZFZMU4Q.js} +2 -2
- package/__chunks__/{chunk-ALAK4GTA.js → chunk-L3JYP3XO.js} +2 -2
- package/__chunks__/{chunk-ZLXYL4KE.js → chunk-LF6VJNCF.js} +2 -2
- package/__chunks__/{chunk-DADEQIZ7.js → chunk-LKDW3XH3.js} +2 -2
- package/__chunks__/{chunk-DTI5KUZE.js → chunk-LKENFOWD.js} +2 -2
- package/__chunks__/chunk-LM64ZHBF.js +2 -0
- package/__chunks__/{chunk-BOR3D2OB.js → chunk-M2LAMT4S.js} +2 -2
- package/__chunks__/{chunk-2VLN4GAG.js → chunk-M43L3JXS.js} +2 -2
- package/__chunks__/{chunk-7J7LEURM.js → chunk-M7KYIVXW.js} +2 -2
- package/__chunks__/chunk-MAPKARLD.js +2 -0
- package/__chunks__/{chunk-UQD4NUXE.js → chunk-MDZPOO3F.js} +2 -2
- package/__chunks__/{chunk-WUOUATRU.js → chunk-MLSI3RC2.js} +2 -2
- package/__chunks__/{chunk-3JPJW72R.js → chunk-N6ZG65AM.js} +2 -2
- package/__chunks__/{chunk-VEWE7U4G.js → chunk-N7QEZOLU.js} +2 -2
- package/__chunks__/{chunk-3QT275JB.js → chunk-NANO4X2A.js} +2 -2
- package/__chunks__/{chunk-M7264WIR.js → chunk-NCR3TVLR.js} +2 -2
- package/__chunks__/{chunk-46W3A5KZ.js → chunk-NIBU432U.js} +2 -2
- package/__chunks__/{chunk-YHGIBDJL.js → chunk-NOBUX6VQ.js} +2 -2
- package/__chunks__/{chunk-JPDU4UXA.js → chunk-NZLLBXWM.js} +2 -2
- package/__chunks__/{chunk-XGJFR5OS.js → chunk-O65BW737.js} +2 -2
- package/__chunks__/{chunk-M2KXYI2A.js → chunk-OCVD7SVS.js} +2 -2
- package/__chunks__/{chunk-J6PK4YWJ.js → chunk-ODQ5XNPU.js} +2 -2
- package/__chunks__/chunk-OGWLSCJG.js +2 -0
- package/__chunks__/{chunk-HKTCXAEV.js → chunk-OM457L3M.js} +2 -2
- package/__chunks__/{chunk-FJ3QN3PS.js → chunk-OQAGSV22.js} +2 -2
- package/__chunks__/{chunk-FFWGADDT.js → chunk-P6MWBKH3.js} +2 -2
- package/__chunks__/{chunk-4CZXUHKR.js → chunk-P7STLJJI.js} +2 -2
- package/__chunks__/{chunk-23JSCKP4.js → chunk-PINKYRXT.js} +2 -2
- package/__chunks__/{chunk-6JLZW2OA.js → chunk-PJ6E34ZL.js} +2 -2
- package/__chunks__/chunk-PUOKVKOC.js +2 -0
- package/__chunks__/{chunk-WRWKNPRJ.js → chunk-QB3XGANM.js} +2 -2
- package/__chunks__/{chunk-FXN56EN4.js → chunk-QBRSJGQE.js} +2 -2
- package/__chunks__/chunk-QEZFF4AV.js +2 -0
- package/__chunks__/{chunk-RWPTHDGS.js → chunk-QNJU3UH4.js} +2 -2
- package/__chunks__/{chunk-COMCQ2RH.js → chunk-QPZBCE35.js} +2 -2
- package/__chunks__/{chunk-OYQQHGRD.js → chunk-QRLD5NAN.js} +2 -2
- package/__chunks__/{chunk-D76JYIBI.js → chunk-QUMYRH4H.js} +2 -2
- package/__chunks__/chunk-QUYE5ZBI.js +2 -0
- package/__chunks__/{chunk-JDTK5ZGT.js → chunk-QVBPB2T7.js} +2 -2
- package/__chunks__/{chunk-75OXB76N.js → chunk-R3FSXFX3.js} +2 -2
- package/__chunks__/chunk-RAERFN6K.js +2 -0
- package/__chunks__/chunk-RBHVYE2Y.js +2 -0
- package/__chunks__/chunk-RCD64P2M.js +2 -0
- package/__chunks__/{chunk-LMBBAIK5.js → chunk-RDWURAZH.js} +2 -2
- package/__chunks__/{chunk-NZN4JRXS.js → chunk-RRN3BAHE.js} +2 -2
- package/__chunks__/{chunk-QPM6EBHW.js → chunk-RXNYA6SF.js} +2 -2
- package/__chunks__/{chunk-4EVSF3PS.js → chunk-S7JDYKHM.js} +2 -2
- package/__chunks__/chunk-S7NHXRCC.js +2 -0
- package/__chunks__/{chunk-X2A2SM5T.js → chunk-SA6GTLVC.js} +2 -2
- package/__chunks__/{chunk-TXBKGILP.js → chunk-SBZWUOMH.js} +2 -2
- package/__chunks__/chunk-SCCXHHWP.js +2 -0
- package/__chunks__/{chunk-JNZ6IL2X.js → chunk-SHGJKBQ2.js} +2 -2
- package/__chunks__/{chunk-JQM25QQP.js → chunk-SL7V5DPB.js} +2 -2
- package/__chunks__/{chunk-WJB6D7BH.js → chunk-SOPJ4FVA.js} +2 -2
- package/__chunks__/{chunk-OX6HVB6Z.js → chunk-SS5LXDIB.js} +2 -2
- package/__chunks__/{chunk-STQRXGXK.js → chunk-SWIGSNZJ.js} +2 -2
- package/__chunks__/{chunk-VEDRIMSP.js → chunk-SZ4YBWGS.js} +2 -2
- package/__chunks__/{chunk-GVPT5QJS.js → chunk-T5NLJP65.js} +2 -2
- package/__chunks__/{chunk-I7HYXEHX.js → chunk-TFUYS7DO.js} +2 -2
- package/__chunks__/{chunk-ROV4X74D.js → chunk-TTCHRNRE.js} +2 -2
- package/__chunks__/chunk-TTS3WFEE.js +2 -0
- package/__chunks__/{chunk-4AOLZUI5.js → chunk-U6CY6KLT.js} +2 -2
- package/__chunks__/{chunk-KMLW3DOC.js → chunk-U6QHRFQ6.js} +2 -2
- package/__chunks__/{chunk-JSYMQHQS.js → chunk-U77UZINY.js} +2 -2
- package/__chunks__/{chunk-RTGCGOEH.js → chunk-UFDKARKU.js} +2 -2
- package/__chunks__/{chunk-UVZAZGRS.js → chunk-UHDCW2GI.js} +2 -2
- package/__chunks__/{chunk-U7ABFX65.js → chunk-UKXM7MVK.js} +2 -2
- package/__chunks__/{chunk-LVYMVB5S.js → chunk-UYKSTJCI.js} +2 -2
- package/__chunks__/{chunk-JR6UFMPN.js → chunk-V5CRB7KN.js} +2 -2
- package/__chunks__/{chunk-RWUGWUZ3.js → chunk-VAO473HJ.js} +2 -2
- package/__chunks__/{chunk-H3FNY2CC.js → chunk-VBLZKSYV.js} +2 -2
- package/__chunks__/chunk-VC4S5W27.js +2 -0
- package/__chunks__/{chunk-AIB7JPIU.js → chunk-VCVEL4JK.js} +2 -2
- package/__chunks__/{chunk-ZUIERUVA.js → chunk-VO7YQXK7.js} +2 -2
- package/__chunks__/{chunk-4UBNPFKQ.js → chunk-VTJ7ZV2L.js} +2 -2
- package/__chunks__/chunk-VUJTIQ5T.js +2 -0
- package/__chunks__/{chunk-VWCTHSCA.js → chunk-VVPMSN2M.js} +2 -2
- package/__chunks__/{chunk-CBNM53GV.js → chunk-VY4WH2HL.js} +2 -2
- package/__chunks__/{chunk-4DERMSXM.js → chunk-W7VTJPZR.js} +2 -2
- package/__chunks__/chunk-WEOPJLNL.js +2 -0
- package/__chunks__/chunk-WFAVXT4Z.js +2 -0
- package/__chunks__/{chunk-XC7MTS2B.js → chunk-WFXS633C.js} +2 -2
- package/__chunks__/{chunk-X7VSTJVD.js → chunk-WLSEVWTK.js} +2 -2
- package/__chunks__/{chunk-YHDMIMED.js → chunk-WPD43RUV.js} +2 -2
- package/__chunks__/{chunk-GFUPEEWS.js → chunk-WUBNBBRC.js} +2 -2
- package/__chunks__/chunk-WVWK6FVA.js +2 -0
- package/__chunks__/{chunk-XI6VMWXQ.js → chunk-WWSWE52T.js} +2 -2
- package/__chunks__/{chunk-UH7Q27YS.js → chunk-WXEXZGP7.js} +2 -2
- package/__chunks__/{chunk-PIFV6PQF.js → chunk-X2L7IGUP.js} +2 -2
- package/__chunks__/chunk-XBJLTGW4.js +2 -0
- package/__chunks__/{chunk-ERT7NKUC.js → chunk-XDDEM6PT.js} +2 -2
- package/__chunks__/{chunk-QB3UBBN7.js → chunk-XIHOENSC.js} +2 -2
- package/__chunks__/{chunk-3X2T57MR.js → chunk-XKMOG6SS.js} +2 -2
- package/__chunks__/{chunk-FOIFAZEF.js → chunk-XNHZJ2SC.js} +2 -2
- package/__chunks__/{chunk-PE7VNGP7.js → chunk-XRO5ERIE.js} +2 -2
- package/__chunks__/{chunk-3ULZPNUR.js → chunk-XT5BA43Z.js} +2 -2
- package/__chunks__/{chunk-FKD6BFBK.js → chunk-XTPO4MAO.js} +2 -2
- package/__chunks__/{chunk-PIJCCMC4.js → chunk-XUOXOTNR.js} +2 -2
- package/__chunks__/{chunk-NZ33RJGI.js → chunk-XUVVP5PW.js} +2 -2
- package/__chunks__/{chunk-VL5STY33.js → chunk-XUWCMUDF.js} +2 -2
- package/__chunks__/{chunk-4X3GINLE.js → chunk-XZOVSJUI.js} +2 -2
- package/__chunks__/{chunk-DCWRUDBH.js → chunk-YDIQ5IHA.js} +2 -2
- package/__chunks__/{chunk-EJNFO3FU.js → chunk-YKCZ2UKE.js} +2 -2
- package/__chunks__/{chunk-4BKMGOES.js → chunk-YKKS3O3Z.js} +2 -2
- package/__chunks__/{chunk-E5KBAFW4.js → chunk-YLMRTW5R.js} +2 -2
- package/__chunks__/{chunk-6UVEWZKX.js → chunk-YRHGZ4HS.js} +2 -2
- package/__chunks__/{chunk-IDUIQPIO.js → chunk-YU5OYJX7.js} +2 -2
- package/__chunks__/{chunk-BP5GRJNY.js → chunk-YUIINDCV.js} +2 -2
- package/__chunks__/{chunk-AMCEHQ3B.js → chunk-YWT4XNXN.js} +2 -2
- package/__chunks__/chunk-Z4BLO2TH.js +2 -0
- package/__chunks__/{chunk-KUQIYHQR.js → chunk-Z6PNQGOE.js} +2 -2
- package/__chunks__/{chunk-DCZOXC2M.js → chunk-Z7HQTVYF.js} +2 -2
- package/__chunks__/chunk-ZAFZIALH.js +2 -0
- package/__chunks__/{chunk-ITXDP2DE.js → chunk-ZD2DEAJR.js} +2 -2
- package/__chunks__/{chunk-4DLZ2JMF.js → chunk-ZEEWQEXA.js} +2 -2
- package/__chunks__/{chunk-SJ3GJK44.js → chunk-ZFSJ4FRX.js} +2 -2
- package/__chunks__/chunk-ZFSZJPYH.js +2 -0
- package/__chunks__/{chunk-RO7QNHOJ.js → chunk-ZRGSKGMW.js} +2 -2
- package/__commonjs/UI/TransactionInfo/TransactionInfo.js +29 -29
- package/__commonjs/UI/TransactionInfo/components/DataField/DataField.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/DataField/index.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/index.js +27 -27
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +8 -8
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +8 -8
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +31 -31
- package/__commonjs/UI/TransactionInfo/index.js +29 -29
- package/__commonjs/UI/TransactionsTable/components/TransactionReceiver.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/__commonjs/UI/index.js +51 -51
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/__commonjs/UI/ledger/index.js +1 -1
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/__commonjs/UI/pages/UnlockPage/index.js +1 -1
- package/__commonjs/UI/pages/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/__commonjs/UI/walletConnect/index.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/__commonjs/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/__commonjs/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/__commonjs/apiCalls/utils/index.js +1 -1
- package/__commonjs/components/ProviderInitializer.js +1 -1
- package/__commonjs/hooks/account/index.js +1 -1
- package/__commonjs/hooks/account/useGetAccount.js +1 -1
- package/__commonjs/hooks/account/useGetAccountInfo.js +1 -1
- package/__commonjs/hooks/account/useGetAccountProvider.js +1 -1
- package/__commonjs/hooks/account/useGetWebsocketEvent.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
- package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
- package/__commonjs/hooks/login/useLoginService.js +1 -1
- package/__commonjs/hooks/login/useOperaLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__commonjs/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/__commonjs/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/__commonjs/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/__commonjs/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/__commonjs/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/__commonjs/hooks/useGetNetworkConfig.js +1 -1
- package/__commonjs/reduxStore/selectors/index.js +1 -1
- package/__commonjs/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/__commonjs/services/index.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/getLatestBlockHash.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/index.js +1 -1
- package/__commonjs/services/nativeAuth/index.js +1 -1
- package/__commonjs/services/nativeAuth/methods/getToken.js +1 -1
- package/__commonjs/services/nativeAuth/nativeAuth.js +1 -1
- package/__commonjs/services/transactions/signTransactions.js +1 -1
- package/__commonjs/types/index.js +1 -1
- package/__commonjs/utils/account/getAccountShard.js +1 -1
- package/__commonjs/utils/account/getAddress.js +1 -1
- package/__commonjs/utils/account/signMessage.js +1 -1
- package/__commonjs/utils/getIsLoggedIn.js +1 -1
- package/__commonjs/utils/index.js +3 -3
- package/__commonjs/utils/logout.js +1 -1
- package/__commonjs/utils/network/getChainID.js +1 -1
- package/__commonjs/utils/network/getEgldLabel.js +1 -1
- package/__commonjs/utils/network/getNetworkConfig.js +1 -1
- package/__commonjs/utils/network/index.js +1 -1
- package/__commonjs/utils/transactions/getAllTransactionsLink.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/__commonjs/utils/transactions/getTransactionLink.js +1 -1
- package/__commonjs/utils/transactions/index.js +4 -4
- package/__commonjs/utils/transactions/transactionInfoHelpers/getScamFlag.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/index.js +4 -4
- package/__commonjs/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +5 -5
- package/__commonjs/wrappers/AppInitializer.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/accountConfig.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/server.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/models/index.js +1 -1
- package/models/newTransaction.js +1 -1
- package/package.json +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/dappModalsSelectors.js +1 -1
- package/reduxStore/selectors/helpers.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/modalsSelectors.js +1 -1
- package/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/reduxStore/selectors/toastsSelectors.js +1 -1
- package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/reduxStore/slices/accountInfoSlice.js +1 -1
- package/reduxStore/slices/dappModalsSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/slices/modalsSlice.js +1 -1
- package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/reduxStore/slices/toastsSlice.js +1 -1
- package/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/reduxStore/slices/transactionsSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/getLatestBlockHash.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/nativeAuth/index.js +1 -1
- package/services/nativeAuth/methods/getToken.js +1 -1
- package/services/nativeAuth/methods/index.js +1 -1
- package/services/nativeAuth/nativeAuth.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/signTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/utils.js +1 -1
- package/types/index.js +1 -1
- package/types/suspiciousLink.d.ts +1 -1
- package/types/suspiciousLink.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/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/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getScamFlag.d.ts +1 -1
- package/utils/transactions/transactionInfoHelpers/getScamFlag.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/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-257MQZJ7.js +0 -2
- package/__chunks__/chunk-2LLW6IVJ.js +0 -2
- package/__chunks__/chunk-2Q6WNGQ3.js +0 -2
- package/__chunks__/chunk-374772OF.js +0 -2
- package/__chunks__/chunk-3SRVL7NW.js +0 -2
- package/__chunks__/chunk-4SIXDSOL.js +0 -2
- package/__chunks__/chunk-4X5KCZ6J.js +0 -2
- package/__chunks__/chunk-5YY4FC5L.js +0 -2
- package/__chunks__/chunk-5ZXISSZ7.js +0 -2
- package/__chunks__/chunk-6T5YTSDO.js +0 -2
- package/__chunks__/chunk-72JZW4D4.js +0 -2
- package/__chunks__/chunk-77MJ4H2X.js +0 -2
- package/__chunks__/chunk-7BZUQTJT.js +0 -2
- package/__chunks__/chunk-D5NVSL2S.js +0 -2
- package/__chunks__/chunk-DJQVAF4K.js +0 -2
- package/__chunks__/chunk-EAK65F3A.js +0 -2
- package/__chunks__/chunk-ELLSRUGJ.js +0 -2
- package/__chunks__/chunk-FBDAZ2UU.js +0 -2
- package/__chunks__/chunk-GKFAI7FL.js +0 -2
- package/__chunks__/chunk-GSJZFGHK.js +0 -2
- package/__chunks__/chunk-GSOVFG26.js +0 -2
- package/__chunks__/chunk-GSUUHI7J.js +0 -2
- package/__chunks__/chunk-I42LQFAH.js +0 -2
- package/__chunks__/chunk-I6QS6Z2Y.js +0 -2
- package/__chunks__/chunk-ICXMCLJS.js +0 -2
- package/__chunks__/chunk-IOPYMHW4.js +0 -2
- package/__chunks__/chunk-IUGOLSWC.js +0 -2
- package/__chunks__/chunk-JCPJZUE5.js +0 -2
- package/__chunks__/chunk-JPYJYT7S.js +0 -2
- package/__chunks__/chunk-KCJKC2BG.js +0 -2
- package/__chunks__/chunk-LCU4TY25.js +0 -2
- package/__chunks__/chunk-LFCY6YND.js +0 -2
- package/__chunks__/chunk-LYKWMNOY.js +0 -2
- package/__chunks__/chunk-MW6CV76C.js +0 -2
- package/__chunks__/chunk-NB2UEIDR.js +0 -2
- package/__chunks__/chunk-NWBLGHEW.js +0 -2
- package/__chunks__/chunk-OTZ4VQBM.js +0 -2
- package/__chunks__/chunk-PHQITJCN.js +0 -2
- package/__chunks__/chunk-PQYTU7UW.js +0 -2
- package/__chunks__/chunk-QAVCUCZB.js +0 -2
- package/__chunks__/chunk-QKWFACPV.js +0 -2
- package/__chunks__/chunk-QYO7RWYF.js +0 -2
- package/__chunks__/chunk-RANC62GC.js +0 -2
- package/__chunks__/chunk-U76KYHMK.js +0 -2
- package/__chunks__/chunk-VAELNUTZ.js +0 -2
- package/__chunks__/chunk-WO7IDAN6.js +0 -2
- package/__chunks__/chunk-YUGUMBTX.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var hs=Object.create;var Ee=Object.defineProperty,xs=Object.defineProperties,Ss=Object.getOwnPropertyDescriptor,ws=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,vs=Object.getPrototypeOf,_t=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable;var en=(e,t,r)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))_t.call(t,r)&&en(e,r,t[r]);if(je)for(var r of je(t))tn.call(t,r)&&en(e,r,t[r]);return e},I=(e,t)=>xs(e,ws(t));var rn=(e,t)=>{var r={};for(var o in e)_t.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&je)for(var o of je(e))t.indexOf(o)<0&&tn.call(e,o)&&(r[o]=e[o]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pe=(e,t)=>{for(var r in t)Ee(e,r,{get:t[r],enumerable:!0})},nn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Is(t))!_t.call(e,i)&&i!==r&&Ee(e,i,{get:()=>t[i],enumerable:!(o=Ss(t,i))||o.enumerable});return e};var v=(e,t,r)=>(r=e!=null?hs(vs(e)):{},nn(t||!e||!e.__esModule?Ee(r,"default",{value:e,enumerable:!0}):r,e)),ke=e=>nn(Ee({},"__esModule",{value:!0}),e);var R=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(g){i(g)}},p=m=>{try{d(r.throw(m))}catch(g){i(g)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var an=ze(Ke=>{"use strict";n();Ke.byteLength=bs;Ke.toByteArray=ks;Ke.fromByteArray=Ns;var j=[],V=[],As=typeof Uint8Array!="undefined"?Uint8Array:Array,Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ue=0,on=Ot.length;ue<on;++ue)j[ue]=Ot[ue],V[Ot.charCodeAt(ue)]=ue;var ue,on;V["-".charCodeAt(0)]=62;V["_".charCodeAt(0)]=63;function sn(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 bs(e){var t=sn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Es(e,t,r){return(t+r)*3/4-r}function ks(e){var t,r=sn(e),o=r[0],i=r[1],l=new As(Es(e,o,i)),p=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)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=V[e.charCodeAt(m)]<<2|V[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=V[e.charCodeAt(m)]<<10|V[e.charCodeAt(m+1)]<<4|V[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ls(e){return j[e>>18&63]+j[e>>12&63]+j[e>>6&63]+j[e&63]}function Ds(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(Ls(o));return i.join("")}function Ns(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(Ds(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(j[t>>2]+j[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(j[t>>10]+j[t>>4&63]+j[t<<2&63]+"=")),i.join("")}});var cn=ze(Ft=>{n();Ft.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,g=m>>1,f=-7,T=r?i-1:0,w=r?-1:1,y=e[t+T];for(T+=w,l=y&(1<<-f)-1,y>>=-f,f+=d;f>0;l=l*256+e[t+T],T+=w,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+T],T+=w,f-=8);if(l===0)l=1-g;else{if(l===m)return p?NaN:(y?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(y?-1:1)*p*Math.pow(2,l-o)};Ft.write=function(e,t,r,o,i,l){var p,d,m,g=l*8-i-1,f=(1<<g)-1,T=f>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:l-1,A=o?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+T>=1?t+=w/m:t+=w*Math.pow(2,1-T),t*m>=2&&(p++,m/=2),p+T>=f?(d=0,p=f):p+T>=1?(d=(t*m-1)*Math.pow(2,i),p=p+T):(d=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+y]=d&255,y+=A,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+y]=p&255,y+=A,p/=256,g-=8);e[r+y-A]|=N*128}});var wn=ze(ye=>{"use strict";n();var Ut=an(),Te=cn(),ln=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ye.Buffer=u;ye.SlowBuffer=Os;ye.INSPECT_MAX_BYTES=50;var Ye=2147483647;ye.kMaxLength=Ye;u.TYPED_ARRAY_SUPPORT=Cs();!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 Cs(){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 J(e){if(e>Ye)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 Wt(e)}return dn(e,t,r)}u.poolSize=8192;function dn(e,t,r){if(typeof e=="string")return Ps(e,t);if(ArrayBuffer.isView(e))return Ms(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(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(z(e,SharedArrayBuffer)||e&&z(e.buffer,SharedArrayBuffer)))return $t(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=_s(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 dn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function mn(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 Rs(e,t,r){return mn(e),e<=0?J(e):t!==void 0?typeof r=="string"?J(e).fill(t,r):J(e).fill(t):J(e)}u.alloc=function(e,t,r){return Rs(e,t,r)};function Wt(e){return mn(e),J(e<0?0:Gt(e)|0)}u.allocUnsafe=function(e){return Wt(e)};u.allocUnsafeSlow=function(e){return Wt(e)};function Ps(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=gn(e,t)|0,o=J(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Bt(e){for(var t=e.length<0?0:Gt(e.length)|0,r=J(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Ms(e){if(z(e,Uint8Array)){var t=new Uint8Array(e);return $t(t.buffer,t.byteOffset,t.byteLength)}return Bt(e)}function $t(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 _s(e){if(u.isBuffer(e)){var t=Gt(e.length)|0,r=J(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ht(e.length)?J(0):Bt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Bt(e.data)}function Gt(e){if(e>=Ye)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ye.toString(16)+" bytes");return e|0}function Os(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(z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),z(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(z(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function gn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Vt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Sn(e).length;default:if(i)return o?-1:Vt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=gn;function Fs(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 zs(this,t,r);case"utf8":case"utf-8":return Tn(this,t,r);case"ascii":return qs(this,t,r);case"latin1":case"binary":return js(this,t,r);case"base64":return Gs(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ks(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function de(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)de(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)de(this,r,r+3),de(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)de(this,r,r+7),de(this,r+1,r+6),de(this,r+2,r+5),de(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Tn(this,0,t):Fs.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+">"};ln&&(u.prototype[ln]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),g=this.slice(i,l),f=t.slice(r,o),T=0;T<m;++T)if(g[T]!==f[T]){p=g[T],d=f[T];break}return p<d?-1:d<p?1:0};function fn(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,Ht(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:pn(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):pn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function pn(e,t,r,o,i){var l=1,p=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;l=2,p/=2,d/=2,r/=2}function m(y,A){return l===1?y[A]:y.readUInt16BE(A*l)}var g;if(i){var f=-1;for(g=r;g<p;g++)if(m(e,g)===m(t,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===d)return f*l}else f!==-1&&(g-=g-f),f=-1}else for(r+d>p&&(r=p-d),g=r;g>=0;g--){for(var T=!0,w=0;w<d;w++)if(m(e,g+w)!==m(t,w)){T=!1;break}if(T)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return fn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return fn(this,t,r,o,!1)};function Us(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(Ht(d))return p;e[r+p]=d}return p}function Bs(e,t,r,o){return Ze(Vt(t,e.length-r),e,r,o)}function $s(e,t,r,o){return Ze(Xs(t),e,r,o)}function Vs(e,t,r,o){return Ze(Sn(t),e,r,o)}function Ws(e,t,r,o){return Ze(Qs(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Us(this,t,r,o);case"utf8":case"utf-8":return Bs(this,t,r,o);case"ascii":case"latin1":case"binary":return $s(this,t,r,o);case"base64":return Vs(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ws(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Gs(e,t,r){return t===0&&r===e.length?Ut.fromByteArray(e):Ut.fromByteArray(e.slice(t,r))}function Tn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,g,f,T;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(T=(l&31)<<6|m&63,T>127&&(p=T));break;case 3:m=e[i+1],g=e[i+2],(m&192)===128&&(g&192)===128&&(T=(l&15)<<12|(m&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:m=e[i+1],g=e[i+2],f=e[i+3],(m&192)===128&&(g&192)===128&&(f&192)===128&&(T=(l&15)<<18|(m&63)<<12|(g&63)<<6|f&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Hs(o)}var un=4096;function Hs(e){var t=e.length;if(t<=un)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=un));return r}function qs(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 js(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 zs(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=Js[e[l]];return i}function Ks(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function D(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||D(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||D(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||D(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||D(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||D(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||D(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||D(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||D(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||D(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||D(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||D(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||D(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||D(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||D(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||D(t,4,this.length),Te.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||D(t,4,this.length),Te.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||D(t,8,this.length),Te.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||D(t,8,this.length),Te.read(this,t,!1,52,8)};function U(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;U(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;U(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(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||U(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||U(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||U(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||U(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);U(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);U(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(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||U(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||U(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||U(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||U(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 yn(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function hn(e,t,r,o,i){return t=+t,r=r>>>0,i||yn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Te.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return hn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return hn(this,t,r,!1,o)};function xn(e,t,r,o,i){return t=+t,r=r>>>0,i||yn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Te.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return xn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return xn(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var 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(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var Ys=/[^+/0-9A-Za-z-_]/g;function Zs(e){if(e=e.split("=")[0],e=e.trim().replace(Ys,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Vt(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Xs(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Qs(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function Sn(e){return Ut.toByteArray(Zs(e))}function Ze(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 z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ht(e){return e!==e}var Js=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 En=ze((Nc,bn)=>{n();var E=bn.exports={},K,Y;function qt(){throw new Error("setTimeout has not been defined")}function jt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?K=setTimeout:K=qt}catch(e){K=qt}try{typeof clearTimeout=="function"?Y=clearTimeout:Y=jt}catch(e){Y=jt}})();function In(e){if(K===setTimeout)return setTimeout(e,0);if((K===qt||!K)&&setTimeout)return K=setTimeout,setTimeout(e,0);try{return K(e,0)}catch(t){try{return K.call(null,e,0)}catch(r){return K.call(this,e,0)}}}function ea(e){if(Y===clearTimeout)return clearTimeout(e);if((Y===jt||!Y)&&clearTimeout)return Y=clearTimeout,clearTimeout(e);try{return Y(e)}catch(t){try{return Y.call(null,e)}catch(r){return Y.call(this,e)}}}var ee=[],he=!1,me,Xe=-1;function ta(){!he||!me||(he=!1,me.length?ee=me.concat(ee):Xe=-1,ee.length&&vn())}function vn(){if(!he){var e=In(ta);he=!0;for(var t=ee.length;t;){for(me=ee,ee=[];++Xe<t;)me&&me[Xe].run();Xe=-1,t=ee.length}me=null,he=!1,ea(e)}}E.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];ee.push(new An(e,t)),ee.length===1&&!he&&In(vn)};function An(e,t){this.fun=e,this.array=t}An.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function te(){}E.on=te;E.addListener=te;E.once=te;E.off=te;E.removeListener=te;E.removeAllListeners=te;E.emit=te;E.prependListener=te;E.prependOnceListener=te;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var s,a,Cc,n=x(()=>{s=v(wn()),a=v(En()),Cc=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 kn,zt=x(()=>{"use strict";n();kn="Transaction canceled"});var Ln=x(()=>{"use strict";n()});var Dn=x(()=>{"use strict";n()});var Nn=x(()=>{"use strict";n()});var W=x(()=>{"use strict";n()});var Cn=x(()=>{"use strict";n()});var Rn=x(()=>{"use strict";n()});var F=x(()=>{"use strict";n()});var Pn=x(()=>{"use strict";n()});var Mn=x(()=>{"use strict";n()});var H=x(()=>{"use strict";n();Ln();Dn();Nn();W();Cn();Rn();F();Pn();Mn()});var Kt,_n,Zc,On,Xc,Fn,Qc,Jc,el,Un=x(()=>{"use strict";n();H();Kt={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:_n,egldLabel:Zc}=Kt["devnet"],{chainId:On,egldLabel:Xc}=Kt["testnet"],{chainId:Fn,egldLabel:Qc}=Kt["mainnet"],Jc={["devnet"]:_n,["testnet"]:On,["mainnet"]:Fn},el={[_n]:"devnet",[On]:"testnet",[Fn]:"mainnet"}});var Yt,Zt=x(()=>{"use strict";n();Yt={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var Bn=x(()=>{"use strict";n()});var Qe,Xt=x(()=>{"use strict";n();Qe="transaction-status-toast-id"});var Z,$n=x(()=>{"use strict";n();Z=require("@multiversx/sdk-web-wallet-provider")});var Qt,Jt,Vn,Wn,er,Je,Gn,xe,b=x(()=>{"use strict";n();zt();Un();Zt();Bn();Xt();$n();Qt=5e4,Jt=1e9,Vn=1,Wn="/dapp/init",er="signSession",Je="logout",Gn="login",xe="0"});var et,tr=x(()=>{"use strict";n();et=()=>Date.now()/1e3});var Hn=x(()=>{"use strict";n()});var qn=x(()=>{"use strict";n()});var jn=x(()=>{"use strict";n();tr();Hn();qn()});var nr={};pe(nr,{getItem:()=>na,localStorageKeys:()=>ge,removeItem:()=>oa,setItem:()=>ra});var ge,rr,ra,na,oa,Le=x(()=>{"use strict";n();jn();ge={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},rr=typeof localStorage!="undefined",ra=({key:e,data:t,expires:r})=>{!rr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},na=e=>{if(!rr)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:et()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},oa=e=>{!rr||localStorage.removeItem(String(e))}});var or={};pe(or,{clear:()=>Zn,getItem:()=>Kn,removeItem:()=>Yn,setItem:()=>zn,storage:()=>ia});var zn,Kn,Yn,Zn,ia,Xn=x(()=>{"use strict";n();zn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Kn=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},Yn=e=>sessionStorage.removeItem(String(e)),Zn=()=>sessionStorage.clear(),ia={setItem:zn,getItem:Kn,removeItem:Yn,clear:Zn}});var Se,tt=x(()=>{"use strict";n();Le();Xn();Se={session:or,local:nr}});var ir,P,rt,re=x(()=>{"use strict";n();ir=require("@reduxjs/toolkit");b();P=(0,ir.createAction)(Je),rt=(0,ir.createAction)(Gn,e=>({payload:e}))});var ar,Qn,Jn,nt,sr,eo,to,Nl,ro,Cl,Rl,Pl,Ml,_l,Ol,Fl,no,cr=x(()=>{"use strict";n();ar=require("@multiversx/sdk-core"),Qn=require("@reduxjs/toolkit"),Jn=require("redux-persist");b();tt();Le();re();nt={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:xe},sr={address:"",websocketEvent:null,accounts:{"":nt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},eo=(0,Qn.createSlice)({name:"accountInfoSlice",initialState:sr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new ar.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:nt},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(P,()=>(Se.local.removeItem(ge.loginExpiresAt),sr)),e.addCase(rt,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new ar.Address(o).hex()}),e.addCase(Jn.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:sr.accounts,t.publicKey=d})}}),{setAccount:to,setAddress:Nl,setAccountNonce:ro,setAccountShard:Cl,setLedgerAccount:Rl,updateLedgerAccount:Pl,setWalletConnectAccount:Ml,setIsAccountLoading:_l,setAccountLoadingError:Ol,setWebsocketEvent:Fl}=eo.actions,no=eo.reducer});function De(){return new Date().setHours(new Date().getHours()+24)}function Ne(e){Se.local.setItem({key:ge.loginExpiresAt,data:e,expires:e})}var lr=x(()=>{"use strict";n();tt();Le()});var io,oo,so,zl,Kl,Yl,Zl,Xl,Ql,ao,Jl,co,ur=x(()=>{"use strict";n();io=require("@reduxjs/toolkit");lr();W();re();oo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},so=(0,io.createSlice)({name:"loginInfoSlice",initialState:oo,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(P,()=>oo),e.addCase(rt,(t,r)=>{t.loginMethod=r.payload.loginMethod,Ne(De())})}}),{setLoginMethod:zl,setWalletConnectLogin:Kl,setLedgerLogin:Yl,setTokenLogin:Zl,setTokenLoginSignature:Xl,setWalletLogin:Ql,invalidateLoginSession:ao,setLogoutRoute:Jl}=so.actions,co=so.reducer});var po,lo,uo,np,op,ip,sp,mo,dr=x(()=>{"use strict";n();po=require("@reduxjs/toolkit");re();lo={},uo=(0,po.createSlice)({name:"modalsSlice",initialState:lo,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(P,()=>lo)}}),{setTxSubmittedModal:np,setNotificationModal:op,clearTxSubmittedModal:ip,clearNotificationModal:sp}=uo.actions,mo=uo.reducer});var sa,mr,gr=x(()=>{"use strict";n();sa=!1,mr=(e,t=0)=>{sa||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});var go=x(()=>{"use strict";n();gr()});function fr(e){return e[Math.floor(Math.random()*e.length)]}var fo=x(()=>{"use strict";n()});function yo(e){let t=null;if((e==null?void 0:e.statusCode)in Yt){let r=e==null?void 0:e.statusCode,{message:o}=Yt[r];t=la.includes(r)?To:o}return{errorMessage:t,defaultErrorMessage:To}}var To,aa,ca,la,Tr=x(()=>{"use strict";n();Zt();To="Check if the MultiversX app is open on Ledger",aa=28161,ca=28160,la=[aa,ca]});var ho=x(()=>{"use strict";n();go();fo();Tr()});var xo,So,yr,pa,wo,Sp,wp,Io,hr=x(()=>{"use strict";n();xo=require("@reduxjs/toolkit"),So=v(require("lodash.omit"));ho();yr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},pa={network:yr,chainID:"-1"},wo=(0,xo.createSlice)({name:"appConfig",initialState:pa,reducers:{initializeNetworkConfig:(e,t)=>{let r=fr(t.payload.walletConnectBridgeAddresses),o=fr(t.payload.walletConnectV2RelayAddresses),i=(0,So.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=I(S(S({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Sp,setChainID:wp}=wo.actions,Io=wo.reducer});var vo,xr,Ao,kp,Lp,Dp,ot,it=x(()=>{"use strict";n();vo=require("@reduxjs/toolkit");H();re();xr={isSigning:!1,signedSessions:{}},Ao=(0,vo.createSlice)({name:"signedMessageInfoSliceState",initialState:xr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return I(S({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:I(S({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>S(S({},e),t.payload),clearSignedMessageInfo:()=>xr},extraReducers:e=>{e.addCase(P,()=>xr)}}),{setSignSession:kp,clearSignedMessageInfo:Lp,setSignSessionState:Dp}=Ao.actions,ot=Ao.reducer});var Eo,ko,bo,Lo,Fp,Do,Up,Bp,$p,Vp,st,at=x(()=>{"use strict";n();Eo=require("@reduxjs/toolkit"),ko=require("redux-persist");Xt();H();tr();re();bo={customToasts:[],transactionToasts:[],failTransactionToast:null},Lo=(0,Eo.createSlice)({name:"toastsSlice",initialState:bo,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(I(S({},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:et(),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=I(S({},t.payload),{toastId:Qe})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(P,()=>bo),e.addCase(ko.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:Fp,removeCustomToast:Do,addTransactionToast:Up,removeTransactionToast:Bp,addFailTransactionToast:$p,removeFailTransactionToast:Vp}=Lo.actions,st=Lo.reducer});var No,wr,Ir,vr,ua,Sr,Co,qp,jp,ct,lt,pt=x(()=>{"use strict";n();No=require("@reduxjs/toolkit");re();wr="Transaction failed",Ir="Transaction successful",vr="Processing transaction",ua="Transaction submitted",Sr={},Co=(0,No.createSlice)({name:"transactionsInfo",initialState:Sr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||wr,successMessage:(o==null?void 0:o.successMessage)||Ir,processingMessage:(o==null?void 0:o.processingMessage)||vr,submittedMessage:(o==null?void 0:o.submittedMessage)||ua,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Sr},extraReducers:e=>{e.addCase(P,()=>Sr)}}),{clearTransactionsInfo:qp,setTransactionsDisplayInfo:jp,clearTransactionsInfoForSessionId:ct}=Co.actions,lt=Co.reducer});function Ro(e){return e!=null&&(xa(e)||va(e))}function ut(e){return e!=null&&(Sa(e)||Aa(e))}function dt(e){return e!=null&&(wa(e)||ba(e))}function Po(e){return e!=null&&Ia(e)}function xa(e){return e!=null&&da.includes(e)}function Sa(e){return e!=null&&ma.includes(e)}function wa(e){return e!=null&&ga.includes(e)}function Ia(e){return e!=null&&fa.includes(e)}function va(e){return e!=null&&Ta.includes(e)}function Aa(e){return e!=null&&ya.includes(e)}function ba(e){return e!=null&&ha.includes(e)}var da,ma,ga,fa,Ta,ya,ha,Er=x(()=>{"use strict";n();W();da=["sent"],ma=["success"],ga=["fail","cancelled","timedOut"],fa=["timedOut"],Ta=["pending"],ya=["success"],ha=["fail","invalid"]});var Mo,_o,Ce,Ea,Oo,tu,ru,nu,mt,ou,iu,su,Fo,gt,we,ft,Tt=x(()=>{"use strict";n();Mo=require("@reduxjs/toolkit"),_o=require("redux-persist");W();Er();re();Ce={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ea={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Oo=(0,Mo.createSlice)({name:"transactionsSlice",initialState:Ce,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,d=((m=e.customTransactionInformationForSessionId)==null?void 0:m[r])||Ea;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:d},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=Ce.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=S(S({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var d,m,g,f,T,w;let{sessionId:r,status:o,errorMessage:i,transactionHash:l}=t.payload,p=(m=(d=e.signedTransactions)==null?void 0:d[r])==null?void 0:m.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(N=>N.hash===l?I(S({},N),{status:o,errorMessage:i}):N);let y=(f=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:f.every(N=>ut(N.status)),A=(w=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:w.every(N=>dt(N.status));y&&(e.signedTransactions[r].status="success"),A&&(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=Ce.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ce.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(P,()=>Ce),e.addCase(_o.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,g])=>{let f=new Date(m),T=new Date;return T.setHours(T.getHours()+5),T-f>0||(d[m]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:tu,updateSignedTransactions:ru,setTransactionsToSign:nu,clearAllTransactionsToSign:mt,clearAllSignedTransactions:ou,clearSignedTransaction:iu,clearTransactionToSign:su,setSignTransactionsError:Fo,setSignTransactionsCancelMessage:gt,moveTransactionsToSignedState:we}=Oo.actions,ft=Oo.reducer});var X=x(()=>{"use strict";n();cr();ur();dr();hr();it();at();pt();Tt()});var Or=x(()=>{"use strict";n()});var ti,ei,ri,lm,pm,um,dm,mm,gm,ni,oi=x(()=>{"use strict";n();ti=require("@reduxjs/toolkit");re();ei={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ri=(0,ti.createSlice)({name:"dappModalsSlice",initialState:ei,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=S({},t.payload)}},extraReducers:e=>{e.addCase(P,()=>ei)}}),{setDappModalVisibility:lm,setDappModalHeaderVisibility:pm,setDappModalFooterVisibility:um,setDappModalHeaderText:dm,setDappModalFooterText:mm,setDappModalConfig:gm}=ri.actions,ni=ri.reducer});var ii,Fa,Ua,Ie,vt=x(()=>{"use strict";n();ii=require("@reduxjs/toolkit");Or();cr();oi();ur();dr();hr();it();at();pt();Tt();Fa={["account"]:no,["dappModal"]:ni,["loginInfo"]:co,["modals"]:mo,["networkConfig"]:Io,["signedMessageInfo"]:ot,["toasts"]:st,["transactionsInfo"]:lt,["transactions"]:ft},Ua=(e={})=>(0,ii.combineReducers)(S(S({},Fa),e)),Ie=Ua});var pi={};pe(pi,{default:()=>Ha,getSessionStoragePersistConfig:()=>Fe,localStoragePersistConfig:()=>ci,sessionStorageReducers:()=>li});function Fe(e,t=[]){return{key:e,version:1,storage:ai.default,blacklist:t}}var se,si,ai,Ba,$a,Va,Wa,Ga,ci,li,Ha,ui=x(()=>{"use strict";n();se=require("redux-persist"),si=v(require("redux-persist/lib/storage")),ai=v(require("redux-persist/lib/storage/session"));vt();X();it();at();pt();Tt();Or();Ba={2:e=>I(S({},e),{networkConfig:yr})};$a=Fe("sdk-dapp-transactionsInfo"),Va=Fe("sdk-dapp-transactions",["transactionsToSign"]),Wa=Fe("sdk-dapp-toasts"),Ga=Fe("sdk-dapp-signedMessageInfo"),ci={key:"sdk-dapp-store",version:2,storage:si.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,se.createMigrate)(Ba,{debug:!1})},li={["toasts"]:(0,se.persistReducer)(Wa,st),["transactions"]:(0,se.persistReducer)(Va,ft),["transactionsInfo"]:(0,se.persistReducer)($a,lt),["signedMessageInfo"]:(0,se.persistReducer)(Ga,ot)},Ha=(0,se.persistReducer)(ci,Ie(li))});var di={};pe(di,{default:()=>qa});var qa,mi=x(()=>{"use strict";n();vt();qa=Ie()});var gi={};pe(gi,{default:()=>za});var G,ja,za,fi=x(()=>{"use strict";n();G=require("redux-persist"),ja=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],za=ja});var hi={};pe(hi,{default:()=>yi});function yi(e){return(0,Ti.persistStore)(e)}var Ti,xi=x(()=>{"use strict";n();Ti=require("redux-persist")});var bc={};pe(bc,{useSignTransactionsWithLedger:()=>Ac});module.exports=ke(bc);n();n();n();var Ri=v(require("axios"));n();n();X();n();var Uo=v(require("lodash.isequal")),yt=require("reselect");H();var h=(0,yt.createSelectorCreator)(yt.defaultMemoize,Uo.default),Re=(e,t)=>e!=""&&Boolean(t);var ne=e=>e.account,Pe=h(ne,e=>e.address),Me=h(ne,Pe,(e,t)=>t in e.accounts?e.accounts[t]:nt),Bo=h(ne,Me,(e,t)=>{let i=e,{accounts:r}=i,o=rn(i,["accounts"]);return I(S({},o),{account:t})}),wu=h(Me,e=>e.balance),$o=h(Me,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Iu=h(ne,e=>e.shard),vu=h(ne,e=>e.ledgerAccount),Au=h(ne,e=>e.walletConnectAccount),bu=h(ne,e=>e.isAccountLoading),Eu=h(ne,e=>e.accountLoadingError),ka=h(ne,e=>e.websocketEvent);n();var q=e=>e.loginInfo,Nu=h(q,e=>e.loginMethod),La=h(q,Pe,(e,t)=>Re(e.loginMethod,t)),Cu=h(q,e=>e.walletConnectLogin),Ru=h(q,e=>e.ledgerLogin),Pu=h(q,e=>e.walletLogin),Mu=h(q,e=>e.isLoginSessionInvalid),_u=h(q,e=>e.tokenLogin),Ou=h(q,e=>e.logoutRoute);n();var Vo=e=>e.modals,Bu=h(Vo,e=>e.txSubmittedModal),$u=h(Vo,e=>e.notificationModal);n();var oe=e=>e.networkConfig,Gu=h(oe,e=>e.chainID),Hu=h(oe,e=>e.network.walletConnectBridgeAddress),qu=h(oe,e=>e.network.walletConnectV2RelayAddress),ju=h(oe,e=>e.network.walletConnectV2ProjectId),zu=h(oe,e=>e.network.walletConnectV2Options),Ku=h(oe,e=>e.network.walletConnectDeepLink),_e=h(oe,e=>e.network),Wo=h(_e,e=>e.apiAddress),Go=h(_e,e=>e.explorerAddress),Ho=h(_e,e=>e.egldLabel);n();var kr=e=>e.signedMessageInfo,Xu=h(kr,e=>e.isSigning),Qu=h(kr,e=>e.errorMessage),Ju=h(kr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var Lr=e=>e.toasts,rd=h(Lr,e=>e.customToasts),nd=h(Lr,e=>e.transactionToasts),od=h(Lr,e=>e.failTransactionToast);n();X();var qo={errorMessage:wr,successMessage:Ir,processingMessage:vr},Da=e=>e.transactionsInfo,cd=h(Da,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||qo);n();n();var B=require("@multiversx/sdk-core");b();n();function Dr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function ht(e){var i,l,p;let{data:t}=e,r=Dr(t!=null?t:"")?B.TransactionPayload.fromEncoded(t):new B.TransactionPayload(t),o=new B.Transaction(S({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new B.Address(e.receiver),sender:new B.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Qt,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Jt,chainID:e.chainID.valueOf(),version:new B.TransactionVersion((p=e.version)!=null?p:Vn)},e.options?{options:new B.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new B.Address(e.sender)),o}n();Er();n();var Cr=v(require("bignumber.js"));H();n();n();function Nr(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0}function Oe(e){let t=e;try{let r=s.Buffer.from(e,"hex").toString();Nr(r)&&r.length>1&&(t=r)}catch(r){}return t}n();var jo=(e,t)=>{let r=[],o=e.indexOf(t,0);for(;o>=0;)r.push(o),o=e.indexOf(t,o+1);return r};function Ko(e){let t=[],r=0;try{if((e==null?void 0:e.startsWith("MultiESDTNFTTransfer"))&&(e==null?void 0:e.includes("@"))){let[,o,i,...l]=e==null?void 0:e.split("@");if(o){let p=new Cr.default(i,16).toNumber(),d=0;for(let T=0;T<p;T++){let w={type:"nftTransaction",data:"",receiver:o};for(let y=0;y<3;y++){switch(y){case 0:w.token=Oe(l[d]),w.data=l[d];break;case 1:{let A=l[d]&&l[d].length?l[d]:"";A?w.nonce=A:w.type="esdtTransaction",w.data=`${w.data}@${l[d]}`;break}case 2:w.amount=new Cr.default(l[d],16).toString(10),w.data=`${w.data}@${l[d]}`;break;default:break}r=d+1,d++}t[T]=w}let m=t.length!==p,g=t.some(T=>jo(T.data,"@").length!==2),f=t.some(T=>T.data.startsWith("@"));if(m||g||f)return[];if(l[r]){let T=l[r];for(let w=r+1;w<l.length;w++)T+="@"+l[w];t[p]={type:"scCall",data:T,receiver:o}}}}}catch(o){return console.error("failed parsing tx",o),t}return t}n();var Pr=require("@multiversx/sdk-core"),Mr=v(require("bignumber.js"));W();n();var Yo=require("@multiversx/sdk-core");function Na(e){try{let t=new Yo.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function xt(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Na(e)}var Rr={tokenId:"",amount:""},Ca=e=>e.split("@").map((l,p)=>[2,3].includes(p)?l:Oe(l));function _r(e){if(!e)return Rr;let t=e.startsWith("ESDTTransfer"),r=e.startsWith("ESDTNFTTransfer")&&e.includes("@");if(t){let[,o,i]=e.split("@");try{let l=s.Buffer.from(o,"hex").toString("ascii");if(!l)return Rr;let p=new Mr.default("0x"+i.replace("0x","")).toString(10);return{tokenId:l,amount:p}}catch(l){console.error("Error getting token from transaction data",l)}}if(r)try{let[,o,i,l,p]=Ca(e);if([o,i,l,p].every(d=>Boolean(d))&&xt(new Pr.Address(p).bech32()))return{tokenId:`${o}-${i}`,amount:new Mr.default(l,16).toString(10),collection:o,nonce:i,receiver:new Pr.Address(p).bech32()}}catch(o){}return Rr}n();function Zo({tokenId:e,erdLabel:t}){return Boolean(e&&e!==t)}n();n();var Pa=require("@multiversx/sdk-core/out");n();b();n();var Xo=require("@multiversx/sdk-core");H();n();n();n();n();W();function St(e){let r=Object.getPrototypeOf(e).toPlainObject!=null?e:ht(e);return I(S({},r.toPlainObject()),{hash:r.getHash().hex(),status:"pending"})}n();n();var Fr=require("@reduxjs/toolkit"),vi=require("react-redux/lib/utils/Subscription");X();n();var Qo=v(require("lodash.throttle"));b();X();lr();tt();Le();var Ma=[Je],wt=!1,_a=(0,Qo.default)(()=>{Ne(De())},5e3),Jo=e=>t=>r=>{var m;if(Ma.includes(r.type))return t(r);let o=e.getState(),i=Se.local.getItem(ge.loginExpiresAt);if(!Re((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 Ne(De());let p=Date.now();return i-p<0&&!wt?setTimeout(()=>{wt=!0,e.dispatch(ao())},1e3):(wt&&(wt=!1),_a()),t(r)};n();n();function It(){return typeof sessionStorage!="undefined"}var Si=It()?(ui(),ke(pi)).default:(mi(),ke(di)).default,wi=It()?(fi(),ke(gi)).default:[],Ii=It()?(xi(),ke(hi)).default:e=>e;vt();var M=(0,Fr.configureStore)({reducer:Si,middleware:e=>e({serializableCheck:{ignoredActions:[...wi,ro.type,to.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Jo)}),Ai=(0,vi.createSubscription)(M),Vm=Ii(M),Wm=(0,Fr.configureStore)({reducer:Ie});n();n();n();n();n();n();var Ue="accounts";n();n();n();n();F();n();n();F();n();n();n();var Ja=v(require("bignumber.js"));b();n();var Qa=require("@multiversx/sdk-core"),Ur=v(require("bignumber.js"));b();n();var Za=v(require("bignumber.js"));n();Ur.default.config({ROUNDING_MODE:Ur.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var ec=require("@multiversx/sdk-core");b();n();var Be=require("@multiversx/sdk-core"),rc=require("@multiversx/sdk-network-providers");b();n();n();var tc=v(require("bignumber.js"));b();n();b();n();n();n();n();n();b();n();F();var oc=["reDelegateRewards","claimRewards","unBond"],ic=["wrapEgld","unwrapEgld"],sc=["unStake"],ac=["unDelegate"];n();n();n();b();n();var pc=v(require("bignumber.js"));n();n();n();F();n();var uc=v(require("bignumber.js"));n();n();n();n();F();n();n();n();var mc=v(require("linkifyjs"));n();b();n();var gc=v(require("bignumber.js"));n();H();n();n();W();n();W();n();n();n();F();n();F();n();var fc=v(require("bignumber.js"));b();F();n();F();n();var Di=require("react");H();n();n();F();n();var Tc=require("@multiversx/sdk-core/out"),yc=v(require("bignumber.js"));F();n();F();n();n();W();var Dh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Ni=require("react");H();n();var xc=require("react");F();var Oh=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var kt=e=>e.transactions,$e=h(kt,e=>e.signedTransactions),Sx=h(kt,e=>e.signTransactionsError),Ci=h(kt,e=>e.signTransactionsCancelMessage),Lt=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),wx=h($e,Lt(Ro)),Ix=h($e,Lt(ut)),vx=h($e,Lt(dt)),Ax=h($e,Lt(Po)),Dt=h(kt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:I(S({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>ht(r)))||[]})}),bx=h($e,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Pi(e){return R(this,null,function*(){let{network:{apiAddress:t,apiTimeout:r}}=oe(M.getState()),{data:o}=yield Ri.default.get(`/${Ue}/${e}`,{baseURL:t,timeout:Number(r)});return o})}n();n();var Mi=require("react"),ve=require("react-redux");var Sc={store:M,subscription:Ai},$r=(0,Mi.createContext)(Sc),Wx=(0,ve.createStoreHook)($r),ce=(0,ve.createDispatchHook)($r),_=(0,ve.createSelectorHook)($r);var _i=()=>_(Bo);n();n();n();n();var Oi=require("@multiversx/sdk-extension-provider"),Fi=require("@multiversx/sdk-hw-provider"),Ui=require("@multiversx/sdk-opera-provider"),Bi=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),$i=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Vi=require("@multiversx/sdk-web-wallet-provider");b();W();var Ct=e=>{switch(e==null?void 0:e.constructor){case Vi.WalletProvider:return"wallet";case Bi.WalletConnectProvider:return"walletconnect";case $i.WalletConnectV2Provider:return"walletconnectv2";case Fi.HWProvider:return"ledger";case Oi.ExtensionProvider:return"extension";case Ui.OperaProvider:return"opera";case Nt:return"";default:return"extra"}};var ie=e=>`Unable to perform ${e}, Provider not initialized`,Nt=class{init(){return Promise.resolve(!1)}login(t){throw new Error(ie(`login with options: ${t}`))}logout(t){throw new Error(ie(`logout with options: ${t}`))}getAddress(){throw new Error(ie("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(ie(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(ie(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(ie(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(ie(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(ie(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(ie(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Vr=new Nt;var wc=Vr;function Ve(){return wc||Vr}var Rt=()=>{let e=Ve(),t=Ct(e);return{provider:e,providerType:t}};n();var fe=require("react");n();var We=require("react");var Wi={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Gi({transactions:e}){let[t,r]=(0,We.useState)({}),[o,i]=(0,We.useState)([]);function l(m,g){r(f=>I(S({},f),{[m]:g}))}function p(m,g){return t==null?Wi:m in t?t[m]:g!=null&&String(g)in t?t[g]:Wi}function d(){if(e&&e.length>0){let m=[];e.forEach((g,f)=>{let T=g.getData().toString(),w=Ko(T);if(w.length>0)w.forEach((y,A)=>{let N={transaction:g,multiTxData:y.data,transactionIndex:A};l(y.data,{tokenId:y.token?y.token:"",amount:y.amount?y.amount:"",type:y.type,nonce:y.nonce?y.nonce:"",multiTxData:y.data,receiver:y.receiver}),m.push(N)});else{let{tokenId:y,amount:A}=_r(g.getData().toString());y&&l(g.getData().toString(),{tokenId:y,amount:A,receiver:g.getReceiver().bech32()}),m.push({transaction:g,transactionIndex:f})}}),i(m)}}return(0,We.useEffect)(()=>{d()},[e==null?void 0:e.length]),{parsedTransactionsByDataField:t,getTxInfoByDataField:p,allTransactions:o}}Tr();var Pt={};function Hi({isLedger:e=!1,transactionsToSign:t,egldLabel:r,address:o,onCancel:i,onSignTransaction:l,onTransactionsSignError:p,onTransactionsSignSuccess:d,onGetScamAddressData:m}){var Kr,Yr,Zr;let[g,f]=(0,fe.useState)(0),[T,w]=(0,fe.useState)(),[y,A]=(0,fe.useState)(null),[N,$]=(0,fe.useState)(!1),{getTxInfoByDataField:le,allTransactions:L}=Gi({transactions:t}),O=g===L.length-1;(0,fe.useEffect)(()=>{qr()},[g,L]);function qr(){return R(this,null,function*(){var Jr;let k=L[g];if(k==null)return;let{transaction:C,multiTxData:Q}=k,Mt=C.getData().toString(),Xr=le(C.getData().toString(),Q),{tokenId:Qr}=Xr,be=C.getReceiver().toString(),fs=o!==be,Ts=be in Pt;if(fs&&!Ts&&m!=null){let qe=yield m(be);Pt=S(S({},Pt),qe!=null&&qe.scamInfo?{[be]:qe.scamInfo}:{})}let ys=Boolean(Qr&&Zo({tokenId:Qr,erdLabel:r}));A({transaction:C,receiverScamInfo:((Jr=Pt[be])==null?void 0:Jr.info)||null,transactionTokenInfo:Xr,isTokenTransaction:ys,dataField:Mt})})}function He(){f(0),w(void 0),$(!1)}function jr(){return R(this,null,function*(){try{if(y==null)return;$(e);let k=yield l(y.transaction),C={[g]:k},Q=T?S(S({},T),C):C;w(Q),O?Q&&(d(Object.values(Q)),He()):(f(Mt=>Mt+1),$(!1))}catch(k){console.error(k,"sign error");let{message:C}=k,Q=e?yo(k).errorMessage:null;He(),p(Q!=null?Q:C)}})}function ls(){try{if(y==null)return;y.transaction.getSignature().hex()?O||f(C=>C+1):jr()}catch(k){jr()}}let ps=g===0;function us(){ps?i==null||i():f(k=>k-1)}let zr=Boolean(((Kr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Kr.type)&&((Yr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Yr.multiTxData)&&!(y!=null&&y.dataField.endsWith((Zr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Zr.multiTxData)));function ds(){zr?f(k=>k+1):ls()}function ms(){f(k=>{let C=k+1;return C>(L==null?void 0:L.length)?k:C})}function gs(){f(k=>{let C=k-1;return C<0?k:C})}return{allTransactions:L,onSignTransaction:ds,onNext:ms,onPrev:gs,waitingForDevice:N,onAbort:us,isLastTransaction:O,isFirstTransaction:g===0,hasMultipleTransactions:L.length>1,shouldContinueWithoutSigning:zr,currentStep:g,signedTransactions:T,currentTransaction:y}}X();H();n();n();function qi(){let e=Ve();return Ct(e)}function ji(e){return qi()===e}gr();n();function zi(e){let t=Dt(M.getState()),r=Object.keys(e).length===(t==null?void 0:t.transactions.length);return e&&(e&&r)}n();zt();X();function Ki(){let e=ce();return t=>{e(mt()),e(ct(t)),e(gt(kn))}}n();var Ae=require("react"),Hr=require("@multiversx/sdk-extension-provider");b();n();n();var Wr=()=>_(Me);n();n();n();n();n();var Ge=v(require("react"));var PS=(0,Ge.createContext)({}),MS=M.getState();n();var Zi=v(require("react"));n();var Gr=v(require("react")),Ic=v(require("axios"));n();n();n();var Xi=require("react"),Qi=require("@multiversx/sdk-web-wallet-provider"),Ji=v(require("qs"));b();X();W();function es(e){let{search:t}=window.location,r=_(_e),o=ce();(0,Xi.useEffect)(()=>{if(t!=null){let i=Ji.default.parse(t.replace("?",""));if(i&&er in i){let l=String(i[er]),p=new Qi.WalletProvider(`${r.walletAddress}${Wn}`).getTransactionsFromWalletUrl();if(i.status==="cancelled"){o(we({sessionId:l,status:"cancelled"})),e(),history.pushState({},document==null?void 0:document.title,"?");return}p.length>0&&(o(we({sessionId:l,status:"signed",transactions:p.map(d=>St(d))})),history.pushState({},document==null?void 0:document.title,"?"))}}},[t])}X();n();n();n();n();var rs=v(require("axios"));n();n();var ts=e=>{let t=e!=null?e:Wo(M.getState());return t.endsWith("/")?t.slice(0,-1):t};function ns(e){return R(this,null,function*(){if(!e)return null;let r=`${ts()}/${Ue}/${e}`;try{let{data:o}=yield rs.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}function os(e){return R(this,null,function*(){return yield ns(e)})}n();function is(e){let t=M.getState(),r=$o(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}var vc=(e,t)=>t.map((r,o)=>(r.setNonce(e+o),r)),ss=()=>{let e=_(Pe);return t=>R(void 0,null,function*(){let r=yield os(e),o=is(r);return vc(o,t)})};var as=()=>{let e=ce(),{provider:t}=Rt(),{nonce:r}=Wr(),[o,i]=(0,Ae.useState)(null),[l,p]=(0,Ae.useState)(),[d,m]=(0,Ae.useState)([]),g=ss(),f=_(Dt),T=_(Ci),w=()=>R(void 0,null,function*(){var L;let $=Boolean(f==null?void 0:f.transactions),le=(L=f==null?void 0:f.transactions)!=null?L:[];if($){let O=yield g(le);m(O)}p($)});(0,Ae.useEffect)(()=>{w()},[f,r]);let y=()=>{i(null),e(gt(null))},A=$=>{y(),N($)};es(A);function N($){var L,O;let le=t instanceof Hr.ExtensionProvider;e(mt()),e(ct($)),e(Do(Qe)),le&&(y(),(O=(L=Hr.ExtensionProvider.getInstance())==null?void 0:L.cancelAction)==null||O.call(L))}return{error:o,canceledTransactionsMessage:T,clearTransactionStatusMessage:y,onAbort:A,setError:i,hasTransactions:l,transactionsToSign:f&&I(S({},f),{transactions:d})}};function cs({onCancel:e,verifyReceiverScam:t=!0}){let{transactionsToSign:r,hasTransactions:o}=as(),i=_(Ho),{account:{address:l}}=_i(),{provider:p}=Rt(),d=ce(),m=Ki(),{transactions:g,sessionId:f,callbackRoute:T,customTransactionInformation:w}=r||{};function y(O){f&&d(we({sessionId:f,status:"cancelled"})),d(Fo(O))}let A=T!=null&&window.location.pathname.includes(T);function N(O){!zi(O)||f&&(d(we({sessionId:f,status:"signed",transactions:O.map(He=>St(He))})),T!=null&&(w==null?void 0:w.redirectAfterSign)&&!A&&mr(T))}function $(){e(),m(f)}function le(O){return R(this,null,function*(){return yield p.signTransaction(O)})}let L=Hi({address:l,egldLabel:i,transactionsToSign:o?g:[],onGetScamAddressData:t?Pi:null,isLedger:ji("ledger"),onCancel:$,onSignTransaction:le,onTransactionsSignError:y,onTransactionsSignSuccess:N});return I(S({},L),{callbackRoute:T})}function Ac(e){return cs(e)}0&&(module.exports={useSignTransactionsWithLedger});
|
|
1
|
+
"use strict";var hs=Object.create;var Ee=Object.defineProperty,xs=Object.defineProperties,Ss=Object.getOwnPropertyDescriptor,ws=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,vs=Object.getPrototypeOf,_t=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable;var en=(e,t,r)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))_t.call(t,r)&&en(e,r,t[r]);if(je)for(var r of je(t))tn.call(t,r)&&en(e,r,t[r]);return e},I=(e,t)=>xs(e,ws(t));var rn=(e,t)=>{var r={};for(var o in e)_t.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&je)for(var o of je(e))t.indexOf(o)<0&&tn.call(e,o)&&(r[o]=e[o]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pe=(e,t)=>{for(var r in t)Ee(e,r,{get:t[r],enumerable:!0})},nn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Is(t))!_t.call(e,i)&&i!==r&&Ee(e,i,{get:()=>t[i],enumerable:!(o=Ss(t,i))||o.enumerable});return e};var v=(e,t,r)=>(r=e!=null?hs(vs(e)):{},nn(t||!e||!e.__esModule?Ee(r,"default",{value:e,enumerable:!0}):r,e)),ke=e=>nn(Ee({},"__esModule",{value:!0}),e);var P=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(g){i(g)}},p=m=>{try{d(r.throw(m))}catch(g){i(g)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var an=ze(Ke=>{"use strict";n();Ke.byteLength=bs;Ke.toByteArray=ks;Ke.fromByteArray=Ns;var j=[],V=[],As=typeof Uint8Array!="undefined"?Uint8Array:Array,Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ue=0,on=Ot.length;ue<on;++ue)j[ue]=Ot[ue],V[Ot.charCodeAt(ue)]=ue;var ue,on;V["-".charCodeAt(0)]=62;V["_".charCodeAt(0)]=63;function sn(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 bs(e){var t=sn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Es(e,t,r){return(t+r)*3/4-r}function ks(e){var t,r=sn(e),o=r[0],i=r[1],l=new As(Es(e,o,i)),p=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)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=V[e.charCodeAt(m)]<<2|V[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=V[e.charCodeAt(m)]<<10|V[e.charCodeAt(m+1)]<<4|V[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ls(e){return j[e>>18&63]+j[e>>12&63]+j[e>>6&63]+j[e&63]}function Ds(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(Ls(o));return i.join("")}function Ns(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(Ds(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(j[t>>2]+j[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(j[t>>10]+j[t>>4&63]+j[t<<2&63]+"=")),i.join("")}});var cn=ze(Ft=>{n();Ft.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,g=m>>1,f=-7,T=r?i-1:0,w=r?-1:1,y=e[t+T];for(T+=w,l=y&(1<<-f)-1,y>>=-f,f+=d;f>0;l=l*256+e[t+T],T+=w,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+T],T+=w,f-=8);if(l===0)l=1-g;else{if(l===m)return p?NaN:(y?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(y?-1:1)*p*Math.pow(2,l-o)};Ft.write=function(e,t,r,o,i,l){var p,d,m,g=l*8-i-1,f=(1<<g)-1,T=f>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:l-1,A=o?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+T>=1?t+=w/m:t+=w*Math.pow(2,1-T),t*m>=2&&(p++,m/=2),p+T>=f?(d=0,p=f):p+T>=1?(d=(t*m-1)*Math.pow(2,i),p=p+T):(d=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+y]=d&255,y+=A,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+y]=p&255,y+=A,p/=256,g-=8);e[r+y-A]|=N*128}});var wn=ze(ye=>{"use strict";n();var Ut=an(),Te=cn(),ln=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ye.Buffer=u;ye.SlowBuffer=Os;ye.INSPECT_MAX_BYTES=50;var Ye=2147483647;ye.kMaxLength=Ye;u.TYPED_ARRAY_SUPPORT=Cs();!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 Cs(){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 J(e){if(e>Ye)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 Wt(e)}return dn(e,t,r)}u.poolSize=8192;function dn(e,t,r){if(typeof e=="string")return Rs(e,t);if(ArrayBuffer.isView(e))return Ms(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(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(z(e,SharedArrayBuffer)||e&&z(e.buffer,SharedArrayBuffer)))return $t(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=_s(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 dn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function mn(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 Ps(e,t,r){return mn(e),e<=0?J(e):t!==void 0?typeof r=="string"?J(e).fill(t,r):J(e).fill(t):J(e)}u.alloc=function(e,t,r){return Ps(e,t,r)};function Wt(e){return mn(e),J(e<0?0:Gt(e)|0)}u.allocUnsafe=function(e){return Wt(e)};u.allocUnsafeSlow=function(e){return Wt(e)};function Rs(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=gn(e,t)|0,o=J(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Bt(e){for(var t=e.length<0?0:Gt(e.length)|0,r=J(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Ms(e){if(z(e,Uint8Array)){var t=new Uint8Array(e);return $t(t.buffer,t.byteOffset,t.byteLength)}return Bt(e)}function $t(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 _s(e){if(u.isBuffer(e)){var t=Gt(e.length)|0,r=J(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ht(e.length)?J(0):Bt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Bt(e.data)}function Gt(e){if(e>=Ye)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ye.toString(16)+" bytes");return e|0}function Os(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(z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),z(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(z(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function gn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Vt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Sn(e).length;default:if(i)return o?-1:Vt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=gn;function Fs(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 zs(this,t,r);case"utf8":case"utf-8":return Tn(this,t,r);case"ascii":return qs(this,t,r);case"latin1":case"binary":return js(this,t,r);case"base64":return Gs(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ks(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function de(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)de(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)de(this,r,r+3),de(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)de(this,r,r+7),de(this,r+1,r+6),de(this,r+2,r+5),de(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Tn(this,0,t):Fs.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+">"};ln&&(u.prototype[ln]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),g=this.slice(i,l),f=t.slice(r,o),T=0;T<m;++T)if(g[T]!==f[T]){p=g[T],d=f[T];break}return p<d?-1:d<p?1:0};function fn(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,Ht(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:pn(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):pn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function pn(e,t,r,o,i){var l=1,p=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;l=2,p/=2,d/=2,r/=2}function m(y,A){return l===1?y[A]:y.readUInt16BE(A*l)}var g;if(i){var f=-1;for(g=r;g<p;g++)if(m(e,g)===m(t,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===d)return f*l}else f!==-1&&(g-=g-f),f=-1}else for(r+d>p&&(r=p-d),g=r;g>=0;g--){for(var T=!0,w=0;w<d;w++)if(m(e,g+w)!==m(t,w)){T=!1;break}if(T)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return fn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return fn(this,t,r,o,!1)};function Us(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(Ht(d))return p;e[r+p]=d}return p}function Bs(e,t,r,o){return Ze(Vt(t,e.length-r),e,r,o)}function $s(e,t,r,o){return Ze(Xs(t),e,r,o)}function Vs(e,t,r,o){return Ze(Sn(t),e,r,o)}function Ws(e,t,r,o){return Ze(Qs(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Us(this,t,r,o);case"utf8":case"utf-8":return Bs(this,t,r,o);case"ascii":case"latin1":case"binary":return $s(this,t,r,o);case"base64":return Vs(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ws(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Gs(e,t,r){return t===0&&r===e.length?Ut.fromByteArray(e):Ut.fromByteArray(e.slice(t,r))}function Tn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,g,f,T;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(T=(l&31)<<6|m&63,T>127&&(p=T));break;case 3:m=e[i+1],g=e[i+2],(m&192)===128&&(g&192)===128&&(T=(l&15)<<12|(m&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:m=e[i+1],g=e[i+2],f=e[i+3],(m&192)===128&&(g&192)===128&&(f&192)===128&&(T=(l&15)<<18|(m&63)<<12|(g&63)<<6|f&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Hs(o)}var un=4096;function Hs(e){var t=e.length;if(t<=un)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=un));return r}function qs(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 js(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 zs(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=Js[e[l]];return i}function Ks(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function D(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||D(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||D(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||D(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||D(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||D(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||D(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||D(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||D(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||D(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||D(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||D(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||D(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||D(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||D(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||D(t,4,this.length),Te.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||D(t,4,this.length),Te.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||D(t,8,this.length),Te.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||D(t,8,this.length),Te.read(this,t,!1,52,8)};function U(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;U(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;U(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(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||U(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||U(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||U(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||U(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);U(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);U(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(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||U(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||U(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||U(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||U(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 yn(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function hn(e,t,r,o,i){return t=+t,r=r>>>0,i||yn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Te.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return hn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return hn(this,t,r,!1,o)};function xn(e,t,r,o,i){return t=+t,r=r>>>0,i||yn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Te.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return xn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return xn(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var 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(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var Ys=/[^+/0-9A-Za-z-_]/g;function Zs(e){if(e=e.split("=")[0],e=e.trim().replace(Ys,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Vt(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Xs(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Qs(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function Sn(e){return Ut.toByteArray(Zs(e))}function Ze(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 z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ht(e){return e!==e}var Js=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 En=ze((Nc,bn)=>{n();var E=bn.exports={},K,Y;function qt(){throw new Error("setTimeout has not been defined")}function jt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?K=setTimeout:K=qt}catch(e){K=qt}try{typeof clearTimeout=="function"?Y=clearTimeout:Y=jt}catch(e){Y=jt}})();function In(e){if(K===setTimeout)return setTimeout(e,0);if((K===qt||!K)&&setTimeout)return K=setTimeout,setTimeout(e,0);try{return K(e,0)}catch(t){try{return K.call(null,e,0)}catch(r){return K.call(this,e,0)}}}function ea(e){if(Y===clearTimeout)return clearTimeout(e);if((Y===jt||!Y)&&clearTimeout)return Y=clearTimeout,clearTimeout(e);try{return Y(e)}catch(t){try{return Y.call(null,e)}catch(r){return Y.call(this,e)}}}var ee=[],he=!1,me,Xe=-1;function ta(){!he||!me||(he=!1,me.length?ee=me.concat(ee):Xe=-1,ee.length&&vn())}function vn(){if(!he){var e=In(ta);he=!0;for(var t=ee.length;t;){for(me=ee,ee=[];++Xe<t;)me&&me[Xe].run();Xe=-1,t=ee.length}me=null,he=!1,ea(e)}}E.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];ee.push(new An(e,t)),ee.length===1&&!he&&In(vn)};function An(e,t){this.fun=e,this.array=t}An.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function te(){}E.on=te;E.addListener=te;E.once=te;E.off=te;E.removeListener=te;E.removeAllListeners=te;E.emit=te;E.prependListener=te;E.prependOnceListener=te;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var s,a,Cc,n=x(()=>{s=v(wn()),a=v(En()),Cc=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 kn,zt=x(()=>{"use strict";n();kn="Transaction canceled"});var Ln=x(()=>{"use strict";n()});var Dn=x(()=>{"use strict";n()});var Nn=x(()=>{"use strict";n()});var W=x(()=>{"use strict";n()});var Cn=x(()=>{"use strict";n()});var Pn=x(()=>{"use strict";n()});var F=x(()=>{"use strict";n()});var Rn=x(()=>{"use strict";n()});var Mn=x(()=>{"use strict";n()});var H=x(()=>{"use strict";n();Ln();Dn();Nn();W();Cn();Pn();F();Rn();Mn()});var Kt,_n,Zc,On,Xc,Fn,Qc,Jc,el,Un=x(()=>{"use strict";n();H();Kt={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:_n,egldLabel:Zc}=Kt["devnet"],{chainId:On,egldLabel:Xc}=Kt["testnet"],{chainId:Fn,egldLabel:Qc}=Kt["mainnet"],Jc={["devnet"]:_n,["testnet"]:On,["mainnet"]:Fn},el={[_n]:"devnet",[On]:"testnet",[Fn]:"mainnet"}});var Yt,Zt=x(()=>{"use strict";n();Yt={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var Bn=x(()=>{"use strict";n()});var Qe,Xt=x(()=>{"use strict";n();Qe="transaction-status-toast-id"});var Z,$n=x(()=>{"use strict";n();Z=require("@multiversx/sdk-web-wallet-provider")});var Qt,Jt,Vn,Wn,er,Je,Gn,xe,b=x(()=>{"use strict";n();zt();Un();Zt();Bn();Xt();$n();Qt=5e4,Jt=1e9,Vn=1,Wn="/dapp/init",er="signSession",Je="logout",Gn="login",xe="0"});var et,tr=x(()=>{"use strict";n();et=()=>Date.now()/1e3});var Hn=x(()=>{"use strict";n()});var qn=x(()=>{"use strict";n()});var jn=x(()=>{"use strict";n();tr();Hn();qn()});var nr={};pe(nr,{getItem:()=>na,localStorageKeys:()=>ge,removeItem:()=>oa,setItem:()=>ra});var ge,rr,ra,na,oa,Le=x(()=>{"use strict";n();jn();ge={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},rr=typeof localStorage!="undefined",ra=({key:e,data:t,expires:r})=>{!rr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},na=e=>{if(!rr)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:et()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},oa=e=>{!rr||localStorage.removeItem(String(e))}});var or={};pe(or,{clear:()=>Zn,getItem:()=>Kn,removeItem:()=>Yn,setItem:()=>zn,storage:()=>ia});var zn,Kn,Yn,Zn,ia,Xn=x(()=>{"use strict";n();zn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Kn=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},Yn=e=>sessionStorage.removeItem(String(e)),Zn=()=>sessionStorage.clear(),ia={setItem:zn,getItem:Kn,removeItem:Yn,clear:Zn}});var Se,tt=x(()=>{"use strict";n();Le();Xn();Se={session:or,local:nr}});var ir,R,rt,re=x(()=>{"use strict";n();ir=require("@reduxjs/toolkit");b();R=(0,ir.createAction)(Je),rt=(0,ir.createAction)(Gn,e=>({payload:e}))});var ar,Qn,Jn,nt,sr,eo,to,Nl,ro,Cl,Pl,Rl,Ml,_l,Ol,Fl,no,cr=x(()=>{"use strict";n();ar=require("@multiversx/sdk-core"),Qn=require("@reduxjs/toolkit"),Jn=require("redux-persist");b();tt();Le();re();nt={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:xe},sr={address:"",websocketEvent:null,accounts:{"":nt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},eo=(0,Qn.createSlice)({name:"accountInfoSlice",initialState:sr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new ar.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:nt},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(R,()=>(Se.local.removeItem(ge.loginExpiresAt),sr)),e.addCase(rt,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new ar.Address(o).hex()}),e.addCase(Jn.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:sr.accounts,t.publicKey=d})}}),{setAccount:to,setAddress:Nl,setAccountNonce:ro,setAccountShard:Cl,setLedgerAccount:Pl,updateLedgerAccount:Rl,setWalletConnectAccount:Ml,setIsAccountLoading:_l,setAccountLoadingError:Ol,setWebsocketEvent:Fl}=eo.actions,no=eo.reducer});function De(){return new Date().setHours(new Date().getHours()+24)}function Ne(e){Se.local.setItem({key:ge.loginExpiresAt,data:e,expires:e})}var lr=x(()=>{"use strict";n();tt();Le()});var io,oo,so,zl,Kl,Yl,Zl,Xl,Ql,ao,Jl,co,ur=x(()=>{"use strict";n();io=require("@reduxjs/toolkit");lr();W();re();oo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},so=(0,io.createSlice)({name:"loginInfoSlice",initialState:oo,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(R,()=>oo),e.addCase(rt,(t,r)=>{t.loginMethod=r.payload.loginMethod,Ne(De())})}}),{setLoginMethod:zl,setWalletConnectLogin:Kl,setLedgerLogin:Yl,setTokenLogin:Zl,setTokenLoginSignature:Xl,setWalletLogin:Ql,invalidateLoginSession:ao,setLogoutRoute:Jl}=so.actions,co=so.reducer});var po,lo,uo,np,op,ip,sp,mo,dr=x(()=>{"use strict";n();po=require("@reduxjs/toolkit");re();lo={},uo=(0,po.createSlice)({name:"modalsSlice",initialState:lo,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(R,()=>lo)}}),{setTxSubmittedModal:np,setNotificationModal:op,clearTxSubmittedModal:ip,clearNotificationModal:sp}=uo.actions,mo=uo.reducer});var sa,mr,gr=x(()=>{"use strict";n();sa=!1,mr=(e,t=0)=>{sa||setTimeout(()=>{window.location.href=e,window.location.assign(e)},t)}});var go=x(()=>{"use strict";n();gr()});function fr(e){return e[Math.floor(Math.random()*e.length)]}var fo=x(()=>{"use strict";n()});function yo(e){let t=null;if((e==null?void 0:e.statusCode)in Yt){let r=e==null?void 0:e.statusCode,{message:o}=Yt[r];t=la.includes(r)?To:o}return{errorMessage:t,defaultErrorMessage:To}}var To,aa,ca,la,Tr=x(()=>{"use strict";n();Zt();To="Check if the MultiversX app is open on Ledger",aa=28161,ca=28160,la=[aa,ca]});var ho=x(()=>{"use strict";n();go();fo();Tr()});var xo,So,yr,pa,wo,Sp,wp,Io,hr=x(()=>{"use strict";n();xo=require("@reduxjs/toolkit"),So=v(require("lodash.omit"));ho();yr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},pa={network:yr,chainID:"-1"},wo=(0,xo.createSlice)({name:"appConfig",initialState:pa,reducers:{initializeNetworkConfig:(e,t)=>{let r=fr(t.payload.walletConnectBridgeAddresses),o=fr(t.payload.walletConnectV2RelayAddresses),i=(0,So.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=I(S(S({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Sp,setChainID:wp}=wo.actions,Io=wo.reducer});var vo,xr,Ao,kp,Lp,Dp,ot,it=x(()=>{"use strict";n();vo=require("@reduxjs/toolkit");H();re();xr={isSigning:!1,signedSessions:{}},Ao=(0,vo.createSlice)({name:"signedMessageInfoSliceState",initialState:xr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return I(S({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:I(S({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>S(S({},e),t.payload),clearSignedMessageInfo:()=>xr},extraReducers:e=>{e.addCase(R,()=>xr)}}),{setSignSession:kp,clearSignedMessageInfo:Lp,setSignSessionState:Dp}=Ao.actions,ot=Ao.reducer});var Eo,ko,bo,Lo,Fp,Do,Up,Bp,$p,Vp,st,at=x(()=>{"use strict";n();Eo=require("@reduxjs/toolkit"),ko=require("redux-persist");Xt();H();tr();re();bo={customToasts:[],transactionToasts:[],failTransactionToast:null},Lo=(0,Eo.createSlice)({name:"toastsSlice",initialState:bo,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(I(S({},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:et(),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=I(S({},t.payload),{toastId:Qe})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(R,()=>bo),e.addCase(ko.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:Fp,removeCustomToast:Do,addTransactionToast:Up,removeTransactionToast:Bp,addFailTransactionToast:$p,removeFailTransactionToast:Vp}=Lo.actions,st=Lo.reducer});var No,wr,Ir,vr,ua,Sr,Co,qp,jp,ct,lt,pt=x(()=>{"use strict";n();No=require("@reduxjs/toolkit");re();wr="Transaction failed",Ir="Transaction successful",vr="Processing transaction",ua="Transaction submitted",Sr={},Co=(0,No.createSlice)({name:"transactionsInfo",initialState:Sr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||wr,successMessage:(o==null?void 0:o.successMessage)||Ir,processingMessage:(o==null?void 0:o.processingMessage)||vr,submittedMessage:(o==null?void 0:o.submittedMessage)||ua,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Sr},extraReducers:e=>{e.addCase(R,()=>Sr)}}),{clearTransactionsInfo:qp,setTransactionsDisplayInfo:jp,clearTransactionsInfoForSessionId:ct}=Co.actions,lt=Co.reducer});function Po(e){return e!=null&&(xa(e)||va(e))}function ut(e){return e!=null&&(Sa(e)||Aa(e))}function dt(e){return e!=null&&(wa(e)||ba(e))}function Ro(e){return e!=null&&Ia(e)}function xa(e){return e!=null&&da.includes(e)}function Sa(e){return e!=null&&ma.includes(e)}function wa(e){return e!=null&&ga.includes(e)}function Ia(e){return e!=null&&fa.includes(e)}function va(e){return e!=null&&Ta.includes(e)}function Aa(e){return e!=null&&ya.includes(e)}function ba(e){return e!=null&&ha.includes(e)}var da,ma,ga,fa,Ta,ya,ha,Er=x(()=>{"use strict";n();W();da=["sent"],ma=["success"],ga=["fail","cancelled","timedOut"],fa=["timedOut"],Ta=["pending"],ya=["success"],ha=["fail","invalid"]});var Mo,_o,Ce,Ea,Oo,tu,ru,nu,mt,ou,iu,su,Fo,gt,we,ft,Tt=x(()=>{"use strict";n();Mo=require("@reduxjs/toolkit"),_o=require("redux-persist");W();Er();re();Ce={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ea={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Oo=(0,Mo.createSlice)({name:"transactionsSlice",initialState:Ce,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,d=((m=e.customTransactionInformationForSessionId)==null?void 0:m[r])||Ea;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:d},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=Ce.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=S(S({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var d,m,g,f,T,w;let{sessionId:r,status:o,errorMessage:i,transactionHash:l}=t.payload,p=(m=(d=e.signedTransactions)==null?void 0:d[r])==null?void 0:m.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(N=>N.hash===l?I(S({},N),{status:o,errorMessage:i}):N);let y=(f=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:f.every(N=>ut(N.status)),A=(w=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:w.every(N=>dt(N.status));y&&(e.signedTransactions[r].status="success"),A&&(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=Ce.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ce.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(R,()=>Ce),e.addCase(_o.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,g])=>{let f=new Date(m),T=new Date;return T.setHours(T.getHours()+5),T-f>0||(d[m]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:tu,updateSignedTransactions:ru,setTransactionsToSign:nu,clearAllTransactionsToSign:mt,clearAllSignedTransactions:ou,clearSignedTransaction:iu,clearTransactionToSign:su,setSignTransactionsError:Fo,setSignTransactionsCancelMessage:gt,moveTransactionsToSignedState:we}=Oo.actions,ft=Oo.reducer});var X=x(()=>{"use strict";n();cr();ur();dr();hr();it();at();pt();Tt()});var Or=x(()=>{"use strict";n()});var ti,ei,ri,lm,pm,um,dm,mm,gm,ni,oi=x(()=>{"use strict";n();ti=require("@reduxjs/toolkit");re();ei={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ri=(0,ti.createSlice)({name:"dappModalsSlice",initialState:ei,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=S({},t.payload)}},extraReducers:e=>{e.addCase(R,()=>ei)}}),{setDappModalVisibility:lm,setDappModalHeaderVisibility:pm,setDappModalFooterVisibility:um,setDappModalHeaderText:dm,setDappModalFooterText:mm,setDappModalConfig:gm}=ri.actions,ni=ri.reducer});var ii,Fa,Ua,Ie,vt=x(()=>{"use strict";n();ii=require("@reduxjs/toolkit");Or();cr();oi();ur();dr();hr();it();at();pt();Tt();Fa={["account"]:no,["dappModal"]:ni,["loginInfo"]:co,["modals"]:mo,["networkConfig"]:Io,["signedMessageInfo"]:ot,["toasts"]:st,["transactionsInfo"]:lt,["transactions"]:ft},Ua=(e={})=>(0,ii.combineReducers)(S(S({},Fa),e)),Ie=Ua});var pi={};pe(pi,{default:()=>Ha,getSessionStoragePersistConfig:()=>Fe,localStoragePersistConfig:()=>ci,sessionStorageReducers:()=>li});function Fe(e,t=[]){return{key:e,version:1,storage:ai.default,blacklist:t}}var se,si,ai,Ba,$a,Va,Wa,Ga,ci,li,Ha,ui=x(()=>{"use strict";n();se=require("redux-persist"),si=v(require("redux-persist/lib/storage")),ai=v(require("redux-persist/lib/storage/session"));vt();X();it();at();pt();Tt();Or();Ba={2:e=>I(S({},e),{networkConfig:yr})};$a=Fe("sdk-dapp-transactionsInfo"),Va=Fe("sdk-dapp-transactions",["transactionsToSign"]),Wa=Fe("sdk-dapp-toasts"),Ga=Fe("sdk-dapp-signedMessageInfo"),ci={key:"sdk-dapp-store",version:2,storage:si.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,se.createMigrate)(Ba,{debug:!1})},li={["toasts"]:(0,se.persistReducer)(Wa,st),["transactions"]:(0,se.persistReducer)(Va,ft),["transactionsInfo"]:(0,se.persistReducer)($a,lt),["signedMessageInfo"]:(0,se.persistReducer)(Ga,ot)},Ha=(0,se.persistReducer)(ci,Ie(li))});var di={};pe(di,{default:()=>qa});var qa,mi=x(()=>{"use strict";n();vt();qa=Ie()});var gi={};pe(gi,{default:()=>za});var G,ja,za,fi=x(()=>{"use strict";n();G=require("redux-persist"),ja=[G.FLUSH,G.REHYDRATE,G.PAUSE,G.PERSIST,G.PURGE,G.REGISTER],za=ja});var hi={};pe(hi,{default:()=>yi});function yi(e){return(0,Ti.persistStore)(e)}var Ti,xi=x(()=>{"use strict";n();Ti=require("redux-persist")});var bc={};pe(bc,{useSignTransactionsWithLedger:()=>Ac});module.exports=ke(bc);n();n();n();var Pi=v(require("axios"));n();n();X();n();var Uo=v(require("lodash.isequal")),yt=require("reselect");H();var h=(0,yt.createSelectorCreator)(yt.defaultMemoize,Uo.default),Pe=(e,t)=>e!=""&&Boolean(t);var ne=e=>e.account,Re=h(ne,e=>e.address),Me=h(ne,Re,(e,t)=>t in e.accounts?e.accounts[t]:nt),Bo=h(ne,Me,(e,t)=>{let i=e,{accounts:r}=i,o=rn(i,["accounts"]);return I(S({},o),{account:t})}),wu=h(Me,e=>e.balance),$o=h(Me,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Iu=h(ne,e=>e.shard),vu=h(ne,e=>e.ledgerAccount),Au=h(ne,e=>e.walletConnectAccount),bu=h(ne,e=>e.isAccountLoading),Eu=h(ne,e=>e.accountLoadingError),ka=h(ne,e=>e.websocketEvent);n();var q=e=>e.loginInfo,Nu=h(q,e=>e.loginMethod),La=h(q,Re,(e,t)=>Pe(e.loginMethod,t)),Cu=h(q,e=>e.walletConnectLogin),Pu=h(q,e=>e.ledgerLogin),Ru=h(q,e=>e.walletLogin),Mu=h(q,e=>e.isLoginSessionInvalid),_u=h(q,e=>e.tokenLogin),Ou=h(q,e=>e.logoutRoute);n();var Vo=e=>e.modals,Bu=h(Vo,e=>e.txSubmittedModal),$u=h(Vo,e=>e.notificationModal);n();var oe=e=>e.networkConfig,Gu=h(oe,e=>e.chainID),Hu=h(oe,e=>e.network.walletConnectBridgeAddress),qu=h(oe,e=>e.network.walletConnectV2RelayAddress),ju=h(oe,e=>e.network.walletConnectV2ProjectId),zu=h(oe,e=>e.network.walletConnectV2Options),Ku=h(oe,e=>e.network.walletConnectDeepLink),_e=h(oe,e=>e.network),Wo=h(_e,e=>e.apiAddress),Go=h(_e,e=>e.explorerAddress),Ho=h(_e,e=>e.egldLabel);n();var kr=e=>e.signedMessageInfo,Xu=h(kr,e=>e.isSigning),Qu=h(kr,e=>e.errorMessage),Ju=h(kr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var Lr=e=>e.toasts,rd=h(Lr,e=>e.customToasts),nd=h(Lr,e=>e.transactionToasts),od=h(Lr,e=>e.failTransactionToast);n();X();var qo={errorMessage:wr,successMessage:Ir,processingMessage:vr},Da=e=>e.transactionsInfo,cd=h(Da,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||qo);n();n();var B=require("@multiversx/sdk-core");b();n();function Dr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function ht(e){var i,l,p;let{data:t}=e,r=Dr(t!=null?t:"")?B.TransactionPayload.fromEncoded(t):new B.TransactionPayload(t),o=new B.Transaction(S({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new B.Address(e.receiver),sender:new B.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:Qt,gasPrice:(l=e.gasPrice.valueOf())!=null?l:Jt,chainID:e.chainID.valueOf(),version:new B.TransactionVersion((p=e.version)!=null?p:Vn)},e.options?{options:new B.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new B.Address(e.sender)),o}n();Er();n();var Cr=v(require("bignumber.js"));H();n();n();function Nr(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0}function Oe(e){let t=e;try{let r=s.Buffer.from(e,"hex").toString();Nr(r)&&r.length>1&&(t=r)}catch(r){}return t}n();var jo=(e,t)=>{let r=[],o=e.indexOf(t,0);for(;o>=0;)r.push(o),o=e.indexOf(t,o+1);return r};function Ko(e){let t=[],r=0;try{if((e==null?void 0:e.startsWith("MultiESDTNFTTransfer"))&&(e==null?void 0:e.includes("@"))){let[,o,i,...l]=e==null?void 0:e.split("@");if(o){let p=new Cr.default(i,16).toNumber(),d=0;for(let T=0;T<p;T++){let w={type:"nftTransaction",data:"",receiver:o};for(let y=0;y<3;y++){switch(y){case 0:w.token=Oe(l[d]),w.data=l[d];break;case 1:{let A=l[d]&&l[d].length?l[d]:"";A?w.nonce=A:w.type="esdtTransaction",w.data=`${w.data}@${l[d]}`;break}case 2:w.amount=new Cr.default(l[d],16).toString(10),w.data=`${w.data}@${l[d]}`;break;default:break}r=d+1,d++}t[T]=w}let m=t.length!==p,g=t.some(T=>jo(T.data,"@").length!==2),f=t.some(T=>T.data.startsWith("@"));if(m||g||f)return[];if(l[r]){let T=l[r];for(let w=r+1;w<l.length;w++)T+="@"+l[w];t[p]={type:"scCall",data:T,receiver:o}}}}}catch(o){return console.error("failed parsing tx",o),t}return t}n();var Rr=require("@multiversx/sdk-core"),Mr=v(require("bignumber.js"));W();n();var Yo=require("@multiversx/sdk-core");function Na(e){try{let t=new Yo.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function xt(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Na(e)}var Pr={tokenId:"",amount:""},Ca=e=>e.split("@").map((l,p)=>[2,3].includes(p)?l:Oe(l));function _r(e){if(!e)return Pr;let t=e.startsWith("ESDTTransfer"),r=e.startsWith("ESDTNFTTransfer")&&e.includes("@");if(t){let[,o,i]=e.split("@");try{let l=s.Buffer.from(o,"hex").toString("ascii");if(!l)return Pr;let p=new Mr.default("0x"+i.replace("0x","")).toString(10);return{tokenId:l,amount:p}}catch(l){console.error("Error getting token from transaction data",l)}}if(r)try{let[,o,i,l,p]=Ca(e);if([o,i,l,p].every(d=>Boolean(d))&&xt(new Rr.Address(p).bech32()))return{tokenId:`${o}-${i}`,amount:new Mr.default(l,16).toString(10),collection:o,nonce:i,receiver:new Rr.Address(p).bech32()}}catch(o){}return Pr}n();function Zo({tokenId:e,erdLabel:t}){return Boolean(e&&e!==t)}n();n();var Ra=require("@multiversx/sdk-core/out");n();b();n();var Xo=require("@multiversx/sdk-core");H();n();n();n();n();W();function St(e){let r=Object.getPrototypeOf(e).toPlainObject!=null?e:ht(e);return I(S({},r.toPlainObject()),{hash:r.getHash().hex(),status:"pending"})}n();n();var Fr=require("@reduxjs/toolkit"),vi=require("react-redux/lib/utils/Subscription");X();n();var Qo=v(require("lodash.throttle"));b();X();lr();tt();Le();var Ma=[Je],wt=!1,_a=(0,Qo.default)(()=>{Ne(De())},5e3),Jo=e=>t=>r=>{var m;if(Ma.includes(r.type))return t(r);let o=e.getState(),i=Se.local.getItem(ge.loginExpiresAt);if(!Pe((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 Ne(De());let p=Date.now();return i-p<0&&!wt?setTimeout(()=>{wt=!0,e.dispatch(ao())},1e3):(wt&&(wt=!1),_a()),t(r)};n();n();function It(){return typeof sessionStorage!="undefined"}var Si=It()?(ui(),ke(pi)).default:(mi(),ke(di)).default,wi=It()?(fi(),ke(gi)).default:[],Ii=It()?(xi(),ke(hi)).default:e=>e;vt();var M=(0,Fr.configureStore)({reducer:Si,middleware:e=>e({serializableCheck:{ignoredActions:[...wi,ro.type,to.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Jo)}),Ai=(0,vi.createSubscription)(M),Vm=Ii(M),Wm=(0,Fr.configureStore)({reducer:Ie});n();n();n();n();n();n();var Ue="accounts";n();n();n();n();F();n();n();F();n();n();n();var Ja=v(require("bignumber.js"));b();n();var Qa=require("@multiversx/sdk-core"),Ur=v(require("bignumber.js"));b();n();var Za=v(require("bignumber.js"));n();Ur.default.config({ROUNDING_MODE:Ur.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var ec=require("@multiversx/sdk-core");b();n();var Be=require("@multiversx/sdk-core"),rc=require("@multiversx/sdk-network-providers");b();n();n();var tc=v(require("bignumber.js"));b();n();b();n();n();n();n();n();b();n();F();var oc=["reDelegateRewards","claimRewards","unBond"],ic=["wrapEgld","unwrapEgld"],sc=["unStake"],ac=["unDelegate"];n();n();n();b();n();var pc=v(require("bignumber.js"));n();n();n();F();n();var uc=v(require("bignumber.js"));n();n();n();n();F();n();n();n();var mc=v(require("linkifyjs"));n();b();n();var gc=v(require("bignumber.js"));n();H();n();n();W();n();W();n();n();n();F();n();F();n();var fc=v(require("bignumber.js"));b();F();n();F();n();var Di=require("react");H();n();n();F();n();var Tc=require("@multiversx/sdk-core/out"),yc=v(require("bignumber.js"));F();n();F();n();n();W();var Dh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Ni=require("react");H();n();var xc=require("react");F();var Oh=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var kt=e=>e.transactions,$e=h(kt,e=>e.signedTransactions),Sx=h(kt,e=>e.signTransactionsError),Ci=h(kt,e=>e.signTransactionsCancelMessage),Lt=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),wx=h($e,Lt(Po)),Ix=h($e,Lt(ut)),vx=h($e,Lt(dt)),Ax=h($e,Lt(Ro)),Dt=h(kt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:I(S({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>ht(r)))||[]})}),bx=h($e,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function Ri(e){return P(this,null,function*(){let{network:{apiAddress:t,apiTimeout:r}}=oe(M.getState()),{data:o}=yield Pi.default.get(`/${Ue}/${e}`,{baseURL:t,timeout:Number(r)});return o})}n();n();var Mi=require("react"),ve=require("react-redux");var Sc={store:M,subscription:Ai},$r=(0,Mi.createContext)(Sc),Wx=(0,ve.createStoreHook)($r),ce=(0,ve.createDispatchHook)($r),_=(0,ve.createSelectorHook)($r);var _i=()=>_(Bo);n();n();n();n();var Oi=require("@multiversx/sdk-extension-provider"),Fi=require("@multiversx/sdk-hw-provider"),Ui=require("@multiversx/sdk-opera-provider"),Bi=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),$i=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Vi=require("@multiversx/sdk-web-wallet-provider");b();W();var Ct=e=>{switch(e==null?void 0:e.constructor){case Vi.WalletProvider:return"wallet";case Bi.WalletConnectProvider:return"walletconnect";case $i.WalletConnectV2Provider:return"walletconnectv2";case Fi.HWProvider:return"ledger";case Oi.ExtensionProvider:return"extension";case Ui.OperaProvider:return"opera";case Nt:return"";default:return"extra"}};var ie=e=>`Unable to perform ${e}, Provider not initialized`,Nt=class{init(){return Promise.resolve(!1)}login(t){throw new Error(ie(`login with options: ${t}`))}logout(t){throw new Error(ie(`logout with options: ${t}`))}getAddress(){throw new Error(ie("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(ie(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(ie(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(ie(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(ie(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(ie(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(ie(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Vr=new Nt;var wc=Vr;function Ve(){return wc||Vr}var Pt=()=>{let e=Ve(),t=Ct(e);return{provider:e,providerType:t}};n();var fe=require("react");n();var We=require("react");var Wi={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Gi({transactions:e}){let[t,r]=(0,We.useState)({}),[o,i]=(0,We.useState)([]);function l(m,g){r(f=>I(S({},f),{[m]:g}))}function p(m,g){return t==null?Wi:m in t?t[m]:g!=null&&String(g)in t?t[g]:Wi}function d(){if(e&&e.length>0){let m=[];e.forEach((g,f)=>{let T=g.getData().toString(),w=Ko(T);if(w.length>0)w.forEach((y,A)=>{let N={transaction:g,multiTxData:y.data,transactionIndex:A};l(y.data,{tokenId:y.token?y.token:"",amount:y.amount?y.amount:"",type:y.type,nonce:y.nonce?y.nonce:"",multiTxData:y.data,receiver:y.receiver}),m.push(N)});else{let{tokenId:y,amount:A}=_r(g.getData().toString());y&&l(g.getData().toString(),{tokenId:y,amount:A,receiver:g.getReceiver().bech32()}),m.push({transaction:g,transactionIndex:f})}}),i(m)}}return(0,We.useEffect)(()=>{d()},[e==null?void 0:e.length]),{parsedTransactionsByDataField:t,getTxInfoByDataField:p,allTransactions:o}}Tr();var Rt={};function Hi({isLedger:e=!1,transactionsToSign:t,egldLabel:r,address:o,onCancel:i,onSignTransaction:l,onTransactionsSignError:p,onTransactionsSignSuccess:d,onGetScamAddressData:m}){var Kr,Yr,Zr;let[g,f]=(0,fe.useState)(0),[T,w]=(0,fe.useState)(),[y,A]=(0,fe.useState)(null),[N,$]=(0,fe.useState)(!1),{getTxInfoByDataField:le,allTransactions:L}=Gi({transactions:t}),O=g===L.length-1;(0,fe.useEffect)(()=>{qr()},[g,L]);function qr(){return P(this,null,function*(){var Jr;let k=L[g];if(k==null)return;let{transaction:C,multiTxData:Q}=k,Mt=C.getData().toString(),Xr=le(C.getData().toString(),Q),{tokenId:Qr}=Xr,be=C.getReceiver().toString(),fs=o!==be,Ts=be in Rt;if(fs&&!Ts&&m!=null){let qe=yield m(be);Rt=S(S({},Rt),qe!=null&&qe.scamInfo?{[be]:qe.scamInfo}:{})}let ys=Boolean(Qr&&Zo({tokenId:Qr,erdLabel:r}));A({transaction:C,receiverScamInfo:((Jr=Rt[be])==null?void 0:Jr.info)||null,transactionTokenInfo:Xr,isTokenTransaction:ys,dataField:Mt})})}function He(){f(0),w(void 0),$(!1)}function jr(){return P(this,null,function*(){try{if(y==null)return;$(e);let k=yield l(y.transaction),C={[g]:k},Q=T?S(S({},T),C):C;w(Q),O?Q&&(d(Object.values(Q)),He()):(f(Mt=>Mt+1),$(!1))}catch(k){console.error(k,"sign error");let{message:C}=k,Q=e?yo(k).errorMessage:null;He(),p(Q!=null?Q:C)}})}function ls(){try{if(y==null)return;y.transaction.getSignature().hex()?O||f(C=>C+1):jr()}catch(k){jr()}}let ps=g===0;function us(){ps?i==null||i():f(k=>k-1)}let zr=Boolean(((Kr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Kr.type)&&((Yr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Yr.multiTxData)&&!(y!=null&&y.dataField.endsWith((Zr=y==null?void 0:y.transactionTokenInfo)==null?void 0:Zr.multiTxData)));function ds(){zr?f(k=>k+1):ls()}function ms(){f(k=>{let C=k+1;return C>(L==null?void 0:L.length)?k:C})}function gs(){f(k=>{let C=k-1;return C<0?k:C})}return{allTransactions:L,onSignTransaction:ds,onNext:ms,onPrev:gs,waitingForDevice:N,onAbort:us,isLastTransaction:O,isFirstTransaction:g===0,hasMultipleTransactions:L.length>1,shouldContinueWithoutSigning:zr,currentStep:g,signedTransactions:T,currentTransaction:y}}X();H();n();n();function qi(){let e=Ve();return Ct(e)}function ji(e){return qi()===e}gr();n();function zi(e){let t=Dt(M.getState()),r=Object.keys(e).length===(t==null?void 0:t.transactions.length);return e&&(e&&r)}n();zt();X();function Ki(){let e=ce();return t=>{e(mt()),e(ct(t)),e(gt(kn))}}n();var Ae=require("react"),Hr=require("@multiversx/sdk-extension-provider");b();n();n();var Wr=()=>_(Me);n();n();n();n();n();var Ge=v(require("react"));var RS=(0,Ge.createContext)({}),MS=M.getState();n();var Zi=v(require("react"));n();var Gr=v(require("react")),Ic=v(require("axios"));n();n();n();var Xi=require("react"),Qi=require("@multiversx/sdk-web-wallet-provider"),Ji=v(require("qs"));b();X();W();function es(e){let{search:t}=window.location,r=_(_e),o=ce();(0,Xi.useEffect)(()=>{if(t!=null){let i=Ji.default.parse(t.replace("?",""));if(i&&er in i){let l=String(i[er]),p=new Qi.WalletProvider(`${r.walletAddress}${Wn}`).getTransactionsFromWalletUrl();if(i.status==="cancelled"){o(we({sessionId:l,status:"cancelled"})),e(),history.pushState({},document==null?void 0:document.title,"?");return}p.length>0&&(o(we({sessionId:l,status:"signed",transactions:p.map(d=>St(d))})),history.pushState({},document==null?void 0:document.title,"?"))}}},[t])}X();n();n();n();n();var rs=v(require("axios"));n();n();var ts=e=>{let t=e!=null?e:Wo(M.getState());return t.endsWith("/")?t.slice(0,-1):t};function ns(e){return P(this,null,function*(){if(!e)return null;let r=`${ts()}/${Ue}/${e}`;try{let{data:o}=yield rs.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}function os(e){return P(this,null,function*(){return yield ns(e)})}n();function is(e){let t=M.getState(),r=$o(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}var vc=(e,t)=>t.map((r,o)=>(r.setNonce(e+o),r)),ss=()=>{let e=_(Re);return t=>P(void 0,null,function*(){let r=yield os(e),o=is(r);return vc(o,t)})};var as=()=>{let e=ce(),{provider:t}=Pt(),{nonce:r}=Wr(),[o,i]=(0,Ae.useState)(null),[l,p]=(0,Ae.useState)(),[d,m]=(0,Ae.useState)([]),g=ss(),f=_(Dt),T=_(Ci),w=()=>P(void 0,null,function*(){var L;let $=Boolean(f==null?void 0:f.transactions),le=(L=f==null?void 0:f.transactions)!=null?L:[];if($){let O=yield g(le);m(O)}p($)});(0,Ae.useEffect)(()=>{w()},[f,r]);let y=()=>{i(null),e(gt(null))},A=$=>{y(),N($)};es(A);function N($){var L,O;let le=t instanceof Hr.ExtensionProvider;e(mt()),e(ct($)),e(Do(Qe)),le&&(y(),(O=(L=Hr.ExtensionProvider.getInstance())==null?void 0:L.cancelAction)==null||O.call(L))}return{error:o,canceledTransactionsMessage:T,clearTransactionStatusMessage:y,onAbort:A,setError:i,hasTransactions:l,transactionsToSign:f&&I(S({},f),{transactions:d})}};function cs({onCancel:e,verifyReceiverScam:t=!0}){let{transactionsToSign:r,hasTransactions:o}=as(),i=_(Ho),{account:{address:l}}=_i(),{provider:p}=Pt(),d=ce(),m=Ki(),{transactions:g,sessionId:f,callbackRoute:T,customTransactionInformation:w}=r||{};function y(O){f&&d(we({sessionId:f,status:"cancelled"})),d(Fo(O))}let A=T!=null&&window.location.pathname.includes(T);function N(O){!zi(O)||f&&(d(we({sessionId:f,status:"signed",transactions:O.map(He=>St(He))})),T!=null&&(w==null?void 0:w.redirectAfterSign)&&!A&&mr(T))}function $(){e(),m(f)}function le(O){return P(this,null,function*(){return yield p.signTransaction(O)})}let L=Hi({address:l,egldLabel:i,transactionsToSign:o?g:[],onGetScamAddressData:t?Ri:null,isLedger:ji("ledger"),onCancel:$,onSignTransaction:le,onTransactionsSignError:y,onTransactionsSignSuccess:N});return I(S({},L),{callbackRoute:T})}function Ac(e){return cs(e)}0&&(module.exports={useSignTransactionsWithLedger});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|