@multiversx/sdk-dapp 2.8.8 → 2.9.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/Denominate/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/FormatAmount/FormatAmount.js +1 -1
- package/UI/FormatAmount/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionData/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
- package/UI/TransactionInfo/components/DataField/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-2DKPFSTT.js → chunk-25LYYPSL.js} +2 -2
- package/__chunks__/{chunk-NB6RUSDN.js → chunk-2DAZJTY7.js} +2 -2
- package/__chunks__/{chunk-ZXXEZGKT.js → chunk-2G7BO52P.js} +2 -2
- package/__chunks__/{chunk-UC3BL6OL.js → chunk-2JGSECMC.js} +2 -2
- package/__chunks__/{chunk-I6WCVWCL.js → chunk-2MN2JEL5.js} +2 -2
- package/__chunks__/{chunk-LLJWVYQI.js → chunk-2QEIR6TS.js} +2 -2
- package/__chunks__/{chunk-NQ25VRP6.js → chunk-2UFNSJOJ.js} +2 -2
- package/__chunks__/{chunk-OHZF3UCF.js → chunk-32HLRTV3.js} +2 -2
- package/__chunks__/{chunk-TF5GKSWN.js → chunk-33B2EA3V.js} +2 -2
- package/__chunks__/{chunk-JUFYXNHH.js → chunk-343YDU2S.js} +2 -2
- package/__chunks__/{chunk-QCA255CH.js → chunk-346RZSEQ.js} +2 -2
- package/__chunks__/chunk-37OCRXKG.js +2 -0
- package/__chunks__/{chunk-CUXSI37S.js → chunk-3ADB74GU.js} +2 -2
- package/__chunks__/{chunk-A2UYY3JW.js → chunk-3BQODYHQ.js} +2 -2
- package/__chunks__/{chunk-QVCVZLRQ.js → chunk-3CRW4ZUP.js} +2 -2
- package/__chunks__/{chunk-XHKQRSQL.js → chunk-3D56FBAG.js} +2 -2
- package/__chunks__/{chunk-BS36A7LR.js → chunk-3DOTBYW5.js} +2 -2
- package/__chunks__/{chunk-2EA2VIB5.js → chunk-3OTU3LGP.js} +2 -2
- package/__chunks__/{chunk-AASOI2YB.js → chunk-3VNANIQN.js} +2 -2
- package/__chunks__/chunk-3ZPW6NBW.js +2 -0
- package/__chunks__/{chunk-6OGZDOZO.js → chunk-4AXBEAVW.js} +2 -2
- package/__chunks__/{chunk-ZMSSS4XY.js → chunk-4CUEYG5L.js} +2 -2
- package/__chunks__/{chunk-4NUCA54E.js → chunk-4DXDAPGH.js} +2 -2
- package/__chunks__/{chunk-W5XV2MWO.js → chunk-4E4GWX4K.js} +2 -2
- package/__chunks__/{chunk-KN33FON4.js → chunk-4EUXBDOP.js} +2 -2
- package/__chunks__/chunk-4MGGEDE4.js +2 -0
- package/__chunks__/{chunk-VZTQJF5K.js → chunk-4YGLWJYP.js} +2 -2
- package/__chunks__/{chunk-C4IGVF3G.js → chunk-4ZPZ6AIU.js} +2 -2
- package/__chunks__/{chunk-5L64ER7E.js → chunk-54NEP2BY.js} +2 -2
- package/__chunks__/{chunk-2TL4GHIJ.js → chunk-57KTNTD4.js} +2 -2
- package/__chunks__/{chunk-QZVP3TCG.js → chunk-5A4BF2DQ.js} +2 -2
- package/__chunks__/{chunk-DXSPO7EM.js → chunk-5BOZYUAE.js} +2 -2
- package/__chunks__/chunk-5E3Y7WDX.js +2 -0
- package/__chunks__/{chunk-FCAEZL4W.js → chunk-5IU2LKSN.js} +2 -2
- package/__chunks__/{chunk-BBPTFRVE.js → chunk-5JSXSHFD.js} +2 -2
- package/__chunks__/{chunk-4A25I5EO.js → chunk-5LIDVEDY.js} +2 -2
- package/__chunks__/{chunk-F6GZHJMJ.js → chunk-5LIPZK7I.js} +2 -2
- package/__chunks__/{chunk-CMG3PZXL.js → chunk-5SFT27AY.js} +2 -2
- package/__chunks__/chunk-5T2INUJ2.js +2 -0
- package/__chunks__/{chunk-4JAU6EN6.js → chunk-62SL73B6.js} +2 -2
- package/__chunks__/chunk-65MQPHO4.js +2 -0
- package/__chunks__/chunk-6A6EWHUH.js +2 -0
- package/__chunks__/{chunk-I5GXT2NM.js → chunk-6ALJIJJR.js} +2 -2
- package/__chunks__/{chunk-GQPWCE2U.js → chunk-6CPLHN5F.js} +2 -2
- package/__chunks__/{chunk-SKUZQREX.js → chunk-6NPKQKN5.js} +2 -2
- package/__chunks__/{chunk-2UFASAE6.js → chunk-6O5L57GH.js} +2 -2
- package/__chunks__/{chunk-DUYNNDUF.js → chunk-6PSLWD7K.js} +2 -2
- package/__chunks__/{chunk-DSXLBCJZ.js → chunk-6QQMWPZL.js} +2 -2
- package/__chunks__/{chunk-GMVQCQ3Y.js → chunk-6T4HLUJ5.js} +2 -2
- package/__chunks__/{chunk-EDUYDVLW.js → chunk-6TWOJZGW.js} +2 -2
- package/__chunks__/chunk-6W7S3EE3.js +2 -0
- package/__chunks__/{chunk-BWYB6R6W.js → chunk-73F5VFES.js} +2 -2
- package/__chunks__/{chunk-3RPV34NB.js → chunk-7CR6PT46.js} +2 -2
- package/__chunks__/{chunk-OQIVIERX.js → chunk-7G3CGRHQ.js} +2 -2
- package/__chunks__/{chunk-6DTOQEIQ.js → chunk-7NYPVHED.js} +2 -2
- package/__chunks__/{chunk-ZF6KDUMI.js → chunk-7RDCJEBM.js} +2 -2
- package/__chunks__/{chunk-X6LCE6DY.js → chunk-7S2XISHG.js} +2 -2
- package/__chunks__/{chunk-W4D7AG72.js → chunk-7UD2BXEK.js} +2 -2
- package/__chunks__/{chunk-3SGMXEQG.js → chunk-7XH5QF3M.js} +2 -2
- package/__chunks__/chunk-A3YTVQRT.js +2 -0
- package/__chunks__/chunk-A453JAS3.js +2 -0
- package/__chunks__/{chunk-KDE7GIIV.js → chunk-A6UEBWYM.js} +2 -2
- package/__chunks__/chunk-ABVMFLA3.js +2 -0
- package/__chunks__/{chunk-FOSUR33Y.js → chunk-AJBKM66B.js} +2 -2
- package/__chunks__/{chunk-4PGVVXDY.js → chunk-AK245ZB2.js} +2 -2
- package/__chunks__/{chunk-JYF2TWOA.js → chunk-ALP3UNP6.js} +2 -2
- package/__chunks__/{chunk-54UVT7XD.js → chunk-AMFO52WL.js} +2 -2
- package/__chunks__/{chunk-L6O2YAE3.js → chunk-AOEAP24C.js} +2 -2
- package/__chunks__/{chunk-QHROAYMM.js → chunk-ARBTLT3C.js} +2 -2
- package/__chunks__/chunk-B3TAZ7VX.js +2 -0
- package/__chunks__/{chunk-RRJM3255.js → chunk-B4DRNYML.js} +2 -2
- package/__chunks__/chunk-BAT5BA5V.js +2 -0
- package/__chunks__/{chunk-SLKZO7VS.js → chunk-BKMSVP62.js} +2 -2
- package/__chunks__/{chunk-GIZIGQZP.js → chunk-BKSSTINX.js} +2 -2
- package/__chunks__/{chunk-JJGJCN5V.js → chunk-BMG5SADY.js} +2 -2
- package/__chunks__/chunk-BRPCFDIZ.js +2 -0
- package/__chunks__/{chunk-5IKM5Q2S.js → chunk-BTUNYV43.js} +2 -2
- package/__chunks__/{chunk-OHTQWFS7.js → chunk-BVRV3PPZ.js} +2 -2
- package/__chunks__/chunk-BZONU76B.js +2 -0
- package/__chunks__/{chunk-NY463RKX.js → chunk-C3S2OS2F.js} +2 -2
- package/__chunks__/{chunk-WUF7FKNG.js → chunk-C54IH7AJ.js} +2 -2
- package/__chunks__/{chunk-UWE6TJ47.js → chunk-C7BZLCLN.js} +2 -2
- package/__chunks__/chunk-CDW2662X.js +2 -0
- package/__chunks__/{chunk-HJGXNUQZ.js → chunk-CFAUACCS.js} +2 -2
- package/__chunks__/{chunk-POFMPPLE.js → chunk-CJEHVP77.js} +2 -2
- package/__chunks__/{chunk-XHBL2F6G.js → chunk-CNNCGA7P.js} +2 -2
- package/__chunks__/chunk-COL2EXNW.js +2 -0
- package/__chunks__/{chunk-62DW3AHE.js → chunk-CPACYSUZ.js} +2 -2
- package/__chunks__/chunk-CSS5DPJE.js +2 -0
- package/__chunks__/{chunk-22AVS7E3.js → chunk-CTO4KDRF.js} +2 -2
- package/__chunks__/{chunk-ZJECAQPC.js → chunk-CWZS67S7.js} +2 -2
- package/__chunks__/{chunk-AF4A42IE.js → chunk-CXXTFRHA.js} +2 -2
- package/__chunks__/{chunk-MMCZ3ASQ.js → chunk-CZZL3SSJ.js} +2 -2
- package/__chunks__/{chunk-AO6HRN56.js → chunk-D6AVFA2D.js} +2 -2
- package/__chunks__/{chunk-XDH6CNY3.js → chunk-DLO34CIZ.js} +2 -2
- package/__chunks__/{chunk-OIT7AZTZ.js → chunk-DQML7BH2.js} +2 -2
- package/__chunks__/{chunk-ZJQA5LBM.js → chunk-DTN6DYVS.js} +2 -2
- package/__chunks__/chunk-DXE4AAU7.js +2 -0
- package/__chunks__/{chunk-PYO6CNJL.js → chunk-E36MIU6P.js} +2 -2
- package/__chunks__/chunk-E4X4P3T6.js +2 -0
- package/__chunks__/{chunk-IAU7HZOA.js → chunk-EFMJXVWX.js} +2 -2
- package/__chunks__/{chunk-XP6VAPF7.js → chunk-EHIOPQMM.js} +2 -2
- package/__chunks__/chunk-EPJMBI2O.js +2 -0
- package/__chunks__/{chunk-BTPNQ5FQ.js → chunk-ESLOIYNE.js} +2 -2
- package/__chunks__/{chunk-WEXCOWWF.js → chunk-EXCSAEHQ.js} +2 -2
- package/__chunks__/chunk-EZWQ7DMD.js +2 -0
- package/__chunks__/{chunk-OMSJSEKB.js → chunk-F2HBY53M.js} +2 -2
- package/__chunks__/{chunk-ATNLLNOK.js → chunk-FIPS3NHS.js} +2 -2
- package/__chunks__/chunk-FPDWY2JO.js +2 -0
- package/__chunks__/{chunk-GPLG6N3Y.js → chunk-G3RFZTTV.js} +2 -2
- package/__chunks__/{chunk-CSUG3NQC.js → chunk-GRYUK7ET.js} +2 -2
- package/__chunks__/{chunk-IDNYXXUU.js → chunk-H3R6VXAV.js} +2 -2
- package/__chunks__/{chunk-OMBMT76D.js → chunk-HACCGAKC.js} +2 -2
- package/__chunks__/chunk-HIX6QXZ4.js +2 -0
- package/__chunks__/{chunk-ZPNSZFF2.js → chunk-HJ7GDMMX.js} +2 -2
- package/__chunks__/{chunk-5ZHWPLU6.js → chunk-HOM67ZP7.js} +2 -2
- package/__chunks__/{chunk-B3LFKKXC.js → chunk-HPXVUIJL.js} +2 -2
- package/__chunks__/{chunk-34MJDZ4X.js → chunk-HWLMQLGK.js} +2 -2
- package/__chunks__/{chunk-HLAK3KWC.js → chunk-I4BUST3H.js} +2 -2
- package/__chunks__/{chunk-MCPXAAQH.js → chunk-I6GRLA2C.js} +2 -2
- package/__chunks__/{chunk-NY3SRBV3.js → chunk-IB6Q7I2M.js} +2 -2
- package/__chunks__/{chunk-Q5JVMVSG.js → chunk-IMJ3U2BY.js} +2 -2
- package/__chunks__/{chunk-Q2LHZHWH.js → chunk-IOQUQ7V7.js} +2 -2
- package/__chunks__/chunk-IYGHEIZB.js +2 -0
- package/__chunks__/{chunk-YPLFH5NC.js → chunk-J3Q7UDAZ.js} +2 -2
- package/__chunks__/{chunk-PFP32GAJ.js → chunk-J6HSKOGJ.js} +2 -2
- package/__chunks__/{chunk-6K3QMAWT.js → chunk-J7NMG22C.js} +2 -2
- package/__chunks__/chunk-JCD6DJSC.js +2 -0
- package/__chunks__/{chunk-3AWXVQPI.js → chunk-JDVLHQF6.js} +2 -2
- package/__chunks__/{chunk-K2TOOZFP.js → chunk-JIXAK2AC.js} +2 -2
- package/__chunks__/{chunk-SY4VVHFA.js → chunk-JJWH3JYM.js} +2 -2
- package/__chunks__/{chunk-FFSZJG62.js → chunk-JK6ABF64.js} +2 -2
- package/__chunks__/{chunk-IOSHQZNU.js → chunk-JK6EDPQT.js} +2 -2
- package/__chunks__/{chunk-CURMR3DQ.js → chunk-JRJFNQAZ.js} +2 -2
- package/__chunks__/chunk-JWP3WLIN.js +2 -0
- package/__chunks__/{chunk-F4OB26CT.js → chunk-JWSBC5DB.js} +2 -2
- package/__chunks__/{chunk-JKQBUYK2.js → chunk-K5UIZVZV.js} +2 -2
- package/__chunks__/{chunk-ZAKI6HUY.js → chunk-KAKTGT5L.js} +2 -2
- package/__chunks__/{chunk-E63OT5BJ.js → chunk-KDEQ2GAX.js} +2 -2
- package/__chunks__/{chunk-2CN5KU25.js → chunk-KEIOQVXN.js} +2 -2
- package/__chunks__/{chunk-QDCY7OOZ.js → chunk-KG3U55NF.js} +2 -2
- package/__chunks__/{chunk-QN46IB4K.js → chunk-KHHNKZRB.js} +2 -2
- package/__chunks__/{chunk-VCAA4VGH.js → chunk-KV6GSWNL.js} +2 -2
- package/__chunks__/{chunk-XIS6CC4U.js → chunk-KVNDDYVB.js} +2 -2
- package/__chunks__/{chunk-JKA54IGW.js → chunk-KYC5JNJB.js} +2 -2
- package/__chunks__/{chunk-6QZHGHIR.js → chunk-KYVILTBF.js} +2 -2
- package/__chunks__/chunk-L5DW2DTN.js +2 -0
- package/__chunks__/chunk-L5UKH2NP.js +2 -0
- package/__chunks__/{chunk-TIXHEZXL.js → chunk-LES3U47Z.js} +2 -2
- package/__chunks__/{chunk-U2U4MUGT.js → chunk-LF6FN6K3.js} +2 -2
- package/__chunks__/{chunk-FHE5FVE7.js → chunk-LGPEIIM7.js} +2 -2
- package/__chunks__/{chunk-B47CQIA7.js → chunk-LJ2OXL2R.js} +2 -2
- package/__chunks__/{chunk-HYYC56WM.js → chunk-LLTQNIPQ.js} +2 -2
- package/__chunks__/{chunk-TMWKLAQA.js → chunk-LRZYNP4X.js} +2 -2
- package/__chunks__/{chunk-WGZ6HMXJ.js → chunk-LSJH4COT.js} +2 -2
- package/__chunks__/{chunk-FKFPHPFX.js → chunk-LU3DM6HR.js} +2 -2
- package/__chunks__/chunk-LWC25W2W.js +2 -0
- package/__chunks__/{chunk-AY5CRAVB.js → chunk-LWE4XOKK.js} +2 -2
- package/__chunks__/{chunk-HHGHERF3.js → chunk-M4KXOW7P.js} +2 -2
- package/__chunks__/{chunk-JCYM4TK6.js → chunk-MC4SKRI3.js} +2 -2
- package/__chunks__/{chunk-SIEJ3BGE.js → chunk-MCGMQBME.js} +2 -2
- package/__chunks__/{chunk-QANWJPQL.js → chunk-MCX4AA63.js} +2 -2
- package/__chunks__/{chunk-5RS2KBDW.js → chunk-MDGIGD6R.js} +2 -2
- package/__chunks__/{chunk-ZU7HQJ2E.js → chunk-MIKIMQR2.js} +2 -2
- package/__chunks__/{chunk-KGF5QO63.js → chunk-MOA4IRT5.js} +2 -2
- package/__chunks__/{chunk-ITRHXPQX.js → chunk-MWHEEN6B.js} +2 -2
- package/__chunks__/chunk-MYN7DB3X.js +2 -0
- package/__chunks__/{chunk-4KWGNHHC.js → chunk-N45VBFNK.js} +2 -2
- package/__chunks__/chunk-NA2AEGMU.js +2 -0
- package/__chunks__/{chunk-35CA4MUL.js → chunk-NEHGYCY2.js} +2 -2
- package/__chunks__/{chunk-JWAY75CZ.js → chunk-NJQRX7E2.js} +2 -2
- package/__chunks__/{chunk-PNLICGB5.js → chunk-NQ247DLE.js} +2 -2
- package/__chunks__/chunk-NTCEKYNN.js +2 -0
- package/__chunks__/{chunk-WFUHPFAH.js → chunk-NYNRNXOR.js} +2 -2
- package/__chunks__/{chunk-7HKAHQUX.js → chunk-O4ZYTYXZ.js} +2 -2
- package/__chunks__/{chunk-LZ4RLZRI.js → chunk-OAXLOJDD.js} +2 -2
- package/__chunks__/chunk-OE5DHTVR.js +2 -0
- package/__chunks__/chunk-OGZP3W4S.js +2 -0
- package/__chunks__/{chunk-CDZFXCBL.js → chunk-OPNNXGAJ.js} +2 -2
- package/__chunks__/chunk-OXJW5VJL.js +2 -0
- package/__chunks__/{chunk-OARRFKEW.js → chunk-P6MRRO6I.js} +2 -2
- package/__chunks__/{chunk-XRA7MBOO.js → chunk-PCHRWVXC.js} +2 -2
- package/__chunks__/{chunk-FOTIYLGS.js → chunk-PGYJ74AD.js} +2 -2
- package/__chunks__/{chunk-67CWWMJV.js → chunk-PHYN544Z.js} +2 -2
- package/__chunks__/{chunk-DF2AQYO7.js → chunk-PMREAIGI.js} +2 -2
- package/__chunks__/{chunk-NTZ4J3ZX.js → chunk-PNSNXL7L.js} +2 -2
- package/__chunks__/{chunk-RDJETZ3F.js → chunk-PXUGFT47.js} +2 -2
- package/__chunks__/{chunk-L4OGNGVR.js → chunk-Q3OVBMP3.js} +2 -2
- package/__chunks__/{chunk-R5Z4JV3X.js → chunk-Q5WC7I3O.js} +2 -2
- package/__chunks__/{chunk-QZWFDZZ3.js → chunk-QD5QDTC3.js} +2 -2
- package/__chunks__/{chunk-42I454QK.js → chunk-QGGGF3OX.js} +2 -2
- package/__chunks__/{chunk-GW6MOKMY.js → chunk-QNUO32JN.js} +2 -2
- package/__chunks__/{chunk-3WJ37IJQ.js → chunk-QOZBVOHT.js} +2 -2
- package/__chunks__/{chunk-ANAT47NF.js → chunk-R4B6ID2N.js} +2 -2
- package/__chunks__/{chunk-RNVBV4W2.js → chunk-R6AS2UYG.js} +2 -2
- package/__chunks__/{chunk-5F5AUJIV.js → chunk-RLVLE6UU.js} +2 -2
- package/__chunks__/{chunk-SBWX3IYZ.js → chunk-S2KUPUGA.js} +2 -2
- package/__chunks__/chunk-S4BLIW3B.js +2 -0
- package/__chunks__/{chunk-GSH4BYXB.js → chunk-S653XWKA.js} +2 -2
- package/__chunks__/{chunk-PWZQTMIM.js → chunk-SBN47C2G.js} +2 -2
- package/__chunks__/{chunk-J36BPK32.js → chunk-SFP5Q2SB.js} +2 -2
- package/__chunks__/{chunk-GG736LLW.js → chunk-SGNT3E2X.js} +2 -2
- package/__chunks__/{chunk-7C6XIICR.js → chunk-SLZBO3FX.js} +2 -2
- package/__chunks__/{chunk-L6CEZHRZ.js → chunk-SXJLOBGK.js} +2 -2
- package/__chunks__/{chunk-CDWLWJH3.js → chunk-SYT2T7G2.js} +2 -2
- package/__chunks__/{chunk-SN6WAH6B.js → chunk-SZ3VLYKT.js} +2 -2
- package/__chunks__/{chunk-IPE5DLSE.js → chunk-T2CFMPMF.js} +2 -2
- package/__chunks__/{chunk-GBQ5D4O5.js → chunk-T2MFBGAA.js} +2 -2
- package/__chunks__/{chunk-E7PHXPI7.js → chunk-T2MIRLFN.js} +2 -2
- package/__chunks__/{chunk-AM7A2OOW.js → chunk-T34J5F2S.js} +2 -2
- package/__chunks__/chunk-T37QL64L.js +2 -0
- package/__chunks__/{chunk-KMTJAVQJ.js → chunk-T3NGVEED.js} +2 -2
- package/__chunks__/{chunk-AZWOFPFX.js → chunk-T4Q37HLR.js} +2 -2
- package/__chunks__/{chunk-ULRLEVOX.js → chunk-TAYARQBC.js} +2 -2
- package/__chunks__/{chunk-3P3MCUKK.js → chunk-TFQXTJWG.js} +2 -2
- package/__chunks__/chunk-TFVFRNSM.js +2 -0
- package/__chunks__/{chunk-JRM3LDSG.js → chunk-TGPRRERJ.js} +2 -2
- package/__chunks__/{chunk-4HLBQPQN.js → chunk-TJUHE354.js} +2 -2
- package/__chunks__/chunk-TKQGS7L2.js +2 -0
- package/__chunks__/{chunk-E66WVYJC.js → chunk-TTBVJAYG.js} +2 -2
- package/__chunks__/{chunk-GJLPTW4K.js → chunk-TTZVNWAK.js} +2 -2
- package/__chunks__/{chunk-Y6PJXZ2E.js → chunk-TWSAY73D.js} +2 -2
- package/__chunks__/{chunk-EDAS6Z7S.js → chunk-TZ6IR7KY.js} +2 -2
- package/__chunks__/{chunk-TZY5QRK7.js → chunk-U2ELIFGD.js} +2 -2
- package/__chunks__/{chunk-GSUIWNNM.js → chunk-U7BHVZDF.js} +2 -2
- package/__chunks__/{chunk-A2D7YVXP.js → chunk-UB7XMLMC.js} +2 -2
- package/__chunks__/{chunk-QM7QGMRH.js → chunk-UFE22DXI.js} +2 -2
- package/__chunks__/chunk-UGAJ6X3Z.js +2 -0
- package/__chunks__/chunk-UGJIORNP.js +2 -0
- package/__chunks__/{chunk-25PTVHEB.js → chunk-UIXYMFD4.js} +2 -2
- package/__chunks__/{chunk-4QHVTLCL.js → chunk-UM2Z6I3Z.js} +2 -2
- package/__chunks__/{chunk-QWB6ASJZ.js → chunk-UNW4PYCC.js} +2 -2
- package/__chunks__/{chunk-UIRTEEAJ.js → chunk-UPCMC3JF.js} +2 -2
- package/__chunks__/{chunk-ZUJVT2UK.js → chunk-UWZL6MUF.js} +2 -2
- package/__chunks__/{chunk-U53EBQ6E.js → chunk-UZ5EL5IA.js} +2 -2
- package/__chunks__/{chunk-W6TJJEHF.js → chunk-VGVAZOOL.js} +2 -2
- package/__chunks__/{chunk-MDNDUSGB.js → chunk-VHHIARAI.js} +2 -2
- package/__chunks__/{chunk-AWP342D7.js → chunk-VOS5AZ4K.js} +2 -2
- package/__chunks__/{chunk-Z7JWZURJ.js → chunk-VZZVQSTN.js} +2 -2
- package/__chunks__/{chunk-ZOMDIW6A.js → chunk-W4GD6OCO.js} +2 -2
- package/__chunks__/{chunk-VU5G7W7V.js → chunk-W5D3A5ES.js} +2 -2
- package/__chunks__/{chunk-6XRDVX6C.js → chunk-WB2WVDZA.js} +2 -2
- package/__chunks__/{chunk-LBJUKBPW.js → chunk-WCGXNTPB.js} +2 -2
- package/__chunks__/{chunk-SUHRUIOX.js → chunk-WJHMRQCO.js} +2 -2
- package/__chunks__/chunk-WR6IIZFW.js +2 -0
- package/__chunks__/{chunk-EKK5P7LA.js → chunk-WRKOOEXZ.js} +2 -2
- package/__chunks__/{chunk-OR4L5DIF.js → chunk-WRKQTXD4.js} +2 -2
- package/__chunks__/{chunk-5XAXZ3NX.js → chunk-WU2RFM5A.js} +2 -2
- package/__chunks__/{chunk-7CGLDJOD.js → chunk-X7SBGOMA.js} +2 -2
- package/__chunks__/{chunk-BB5K7AMG.js → chunk-XACM7U6A.js} +2 -2
- package/__chunks__/{chunk-OOZSFHYH.js → chunk-XARXYP2R.js} +2 -2
- package/__chunks__/{chunk-DCYIMALR.js → chunk-XGTZDEYC.js} +2 -2
- package/__chunks__/{chunk-UKVVZZPC.js → chunk-XRHEAXKK.js} +2 -2
- package/__chunks__/{chunk-OYAY4A6E.js → chunk-XVZERATD.js} +2 -2
- package/__chunks__/{chunk-TXM7RATR.js → chunk-Y5PCCHR4.js} +2 -2
- package/__chunks__/{chunk-L4RGRP2I.js → chunk-Y7U5PXM4.js} +2 -2
- package/__chunks__/chunk-YABBPNUR.js +2 -0
- package/__chunks__/{chunk-6PZJ6OYX.js → chunk-YCWMLUF4.js} +2 -2
- package/__chunks__/{chunk-5X3T3BM4.js → chunk-YGKDW2MQ.js} +2 -2
- package/__chunks__/{chunk-ZCM6OSDK.js → chunk-YJXND7MN.js} +2 -2
- package/__chunks__/{chunk-X3JF7AJ7.js → chunk-YLMQQGTH.js} +2 -2
- package/__chunks__/{chunk-RVD7ASJL.js → chunk-YRIWEATY.js} +2 -2
- package/__chunks__/{chunk-NYM7F3NU.js → chunk-YRLJP2A7.js} +2 -2
- package/__chunks__/{chunk-O7TAHBTL.js → chunk-YRR6KBN2.js} +2 -2
- package/__chunks__/{chunk-WZ4T4C6J.js → chunk-YRS6U35R.js} +2 -2
- package/__chunks__/chunk-YW6K2R7N.js +2 -0
- package/__chunks__/chunk-YWMWYHIA.js +2 -0
- package/__chunks__/{chunk-EVWIXAZV.js → chunk-YYBTFRCM.js} +2 -2
- package/__chunks__/{chunk-FNE7PA64.js → chunk-Z2VZSXDK.js} +2 -2
- package/__chunks__/{chunk-RNUOTUNR.js → chunk-Z3ZWK4EM.js} +2 -2
- package/__chunks__/{chunk-PEYRK6DJ.js → chunk-Z4ABT7NG.js} +2 -2
- package/__chunks__/{chunk-Z56HIYKS.js → chunk-ZCM6WCXA.js} +2 -2
- package/__chunks__/{chunk-LO2RKWHN.js → chunk-ZMRSOKUW.js} +2 -2
- package/__chunks__/chunk-ZQIOXJ4W.js +2 -0
- package/__chunks__/chunk-ZTWKQMJR.js +2 -0
- package/__chunks__/chunk-ZX7JX6JP.js +2 -0
- package/__commonjs/UI/DappModal/hooks/index.js +1 -1
- package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +22 -22
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +5 -5
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +22 -22
- package/__commonjs/UI/TransactionInfo/components/DataDecode/DataDecode.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/DataDecode/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/DataField/DataField.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/DataField/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/OperationsList/OperationList.js +10 -10
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationText.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/OperationsList/index.js +10 -10
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +6 -6
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +4 -4
- package/__commonjs/UI/TransactionsTable/components/LockedTokenAddressIcon.js +2 -2
- package/__commonjs/UI/TransactionsTable/components/ScAddressIcon.js +2 -2
- package/__commonjs/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/__commonjs/UI/TransactionsTable/components/TransactionHash.js +6 -6
- package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +9 -9
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/index.js +9 -9
- package/__commonjs/UI/UsdValue/UsdValue.js +2 -2
- package/__commonjs/UI/UsdValue/index.js +2 -2
- package/__commonjs/UI/index.js +74 -74
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +7 -7
- package/__commonjs/UI/pages/UnlockPage/index.js +10 -10
- package/__commonjs/UI/pages/index.js +10 -10
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +5 -5
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +5 -5
- package/__commonjs/UI/walletConnect/index.js +5 -5
- package/__commonjs/__mocks__/accountConfig.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/server.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/__commonjs/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/__commonjs/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/__commonjs/apiCalls/configuration/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
- package/__commonjs/components/ProviderInitializer.js +1 -1
- package/__commonjs/constants/network.js +1 -1
- package/__commonjs/hooks/account/index.js +1 -1
- package/__commonjs/hooks/account/useGetAccountProvider.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
- package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
- package/__commonjs/hooks/login/useLoginService.js +1 -1
- package/__commonjs/hooks/login/useOperaLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
- package/__commonjs/hooks/login/useWebViewLogin.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
- package/__commonjs/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/__commonjs/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/__commonjs/hooks/userInterface/index.js +1 -1
- package/__commonjs/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/__commonjs/providers/accountProvider.js +1 -1
- package/__commonjs/providers/index.js +1 -1
- package/__commonjs/providers/utils.js +1 -1
- package/__commonjs/providers/webviewProvider/index.js +1 -1
- package/__commonjs/providers/webviewProvider/requestMethods.js +1 -1
- package/__commonjs/providers/webviewProvider/webviewProvider.js +1 -1
- package/__commonjs/reduxStore/DappProviderContext.js +1 -1
- package/__commonjs/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/__commonjs/reduxStore/persistConfig.js +1 -1
- package/__commonjs/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/helpers.js +1 -1
- package/__commonjs/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/toastsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/slices/accountInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/dappModalsSlice.js +1 -1
- package/__commonjs/reduxStore/slices/index.js +1 -1
- package/__commonjs/reduxStore/slices/modalsSlice.js +1 -1
- package/__commonjs/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/__commonjs/reduxStore/store.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/__commonjs/services/transactions/isCrossShardTransaction.js +1 -1
- package/__commonjs/services/transactions/signTransactions.js +1 -1
- package/__commonjs/services/transactions/utils.js +1 -1
- package/__commonjs/types/enums.types.js +1 -1
- package/__commonjs/types/index.js +1 -1
- package/__commonjs/utils/account/getAccount.js +1 -1
- package/__commonjs/utils/account/getAccountProviderType.js +1 -1
- package/__commonjs/utils/account/getAddress.js +1 -1
- package/__commonjs/utils/account/getIsProviderEqualTo.js +1 -1
- package/__commonjs/utils/account/getLatestNonce.js +1 -1
- package/__commonjs/utils/account/index.js +1 -1
- package/__commonjs/utils/account/refreshAccount.js +1 -1
- package/__commonjs/utils/account/setNonce.js +1 -1
- package/__commonjs/utils/account/signMessage.js +1 -1
- package/__commonjs/utils/index.js +2 -2
- package/__commonjs/utils/logout.js +1 -1
- package/__commonjs/utils/operations/calculateFeeLimit.js +1 -1
- package/__commonjs/utils/operations/denominate.js +1 -1
- package/__commonjs/utils/operations/formatAmount.js +1 -1
- package/__commonjs/utils/operations/index.js +1 -1
- package/__commonjs/utils/operations/nominate.js +1 -1
- package/__commonjs/utils/platform/detectCurrentPlatform.js +1 -1
- package/__commonjs/utils/smartContracts.js +1 -1
- package/__commonjs/utils/toasts/customToastsActions.js +1 -1
- package/__commonjs/utils/toasts/index.js +1 -1
- package/__commonjs/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/getTokenFromData.js +1 -1
- package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +3 -3
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/__commonjs/utils/transactions/transactionStateByStatus.js +1 -1
- package/__commonjs/utils/validation/maxDecimals.js +1 -1
- package/__commonjs/web/hooks/index.js +1 -1
- package/__commonjs/web/hooks/useIdleTimer.js +1 -1
- package/__commonjs/web/index.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/accountConfig.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/server.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/models/index.js +1 -1
- package/models/newTransaction.js +1 -1
- package/package.json +2 -2
- package/providers/accountProvider.js +1 -1
- package/providers/index.js +1 -1
- package/providers/utils.js +1 -1
- package/providers/webviewProvider/index.js +1 -1
- package/providers/webviewProvider/requestMethods.js +1 -1
- package/providers/webviewProvider/webviewProvider.js +1 -1
- package/reduxStore/DappProviderContext.js +1 -1
- package/reduxStore/commonActions.js +1 -1
- package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/reduxStore/persistConfig.js +1 -1
- package/reduxStore/persistedRootReducer.d.ts +1 -1
- package/reduxStore/persistedRootReducer.js +1 -1
- package/reduxStore/reducers.js +1 -1
- package/reduxStore/rootReducer.js +1 -1
- package/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/reduxStore/selectors/helpers.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/modalsSelectors.js +1 -1
- package/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/reduxStore/selectors/toastsSelectors.js +1 -1
- package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/reduxStore/slices/accountInfoSlice.js +1 -1
- package/reduxStore/slices/dappModalsSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/slices/modalsSlice.js +1 -1
- package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/reduxStore/slices/toastsSlice.js +1 -1
- package/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/reduxStore/slices/transactionsSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/signTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/utils.js +1 -1
- package/types/enums.types.d.ts +2 -1
- package/types/enums.types.js +1 -1
- package/types/index.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountProviderType.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getIsProviderEqualTo.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/getShardOfAddress.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/loginWithExternalProvider.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/setNonce.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/network/getChainID.js +1 -1
- package/utils/network/getEgldLabel.js +1 -1
- package/utils/network/getNetworkConfig.js +1 -1
- package/utils/network/index.js +1 -1
- package/utils/operations/calculateFeeLimit.js +1 -1
- package/utils/operations/denominate.js +1 -1
- package/utils/operations/formatAmount.js +1 -1
- package/utils/operations/index.js +1 -1
- package/utils/operations/nominate.js +1 -1
- package/utils/operations/parseAmount.js +1 -1
- package/utils/platform/detectCurrentPlatform.js +1 -1
- package/utils/smartContracts.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/utils/transactions/getTokenFromData.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/utils/transactions/transactionStateByStatus.js +1 -1
- package/utils/validation/index.js +1 -1
- package/utils/validation/maxDecimals.js +1 -1
- package/utils/validation/stringIsFloat.js +1 -1
- package/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-2ZTVJLOJ.js +0 -2
- package/__chunks__/chunk-37KH4Z57.js +0 -2
- package/__chunks__/chunk-3O4GBHR3.js +0 -2
- package/__chunks__/chunk-43CTUMZY.js +0 -2
- package/__chunks__/chunk-4DKSPOQC.js +0 -2
- package/__chunks__/chunk-52LWAKUU.js +0 -2
- package/__chunks__/chunk-66VVLQWA.js +0 -2
- package/__chunks__/chunk-6E7UMUAT.js +0 -2
- package/__chunks__/chunk-7PMD4JRS.js +0 -2
- package/__chunks__/chunk-A274U45O.js +0 -2
- package/__chunks__/chunk-A6R7V6U3.js +0 -2
- package/__chunks__/chunk-AJX7U6NK.js +0 -2
- package/__chunks__/chunk-BBDZAYAU.js +0 -2
- package/__chunks__/chunk-BFSRVA3J.js +0 -2
- package/__chunks__/chunk-BQ4N52MW.js +0 -2
- package/__chunks__/chunk-DKQCBXAE.js +0 -2
- package/__chunks__/chunk-EIE6T4QD.js +0 -2
- package/__chunks__/chunk-F7E7BINB.js +0 -2
- package/__chunks__/chunk-FA2UEZM2.js +0 -2
- package/__chunks__/chunk-FLZGZET2.js +0 -2
- package/__chunks__/chunk-FRNVGEYR.js +0 -2
- package/__chunks__/chunk-GNEQWXJE.js +0 -2
- package/__chunks__/chunk-GZIWNMCW.js +0 -2
- package/__chunks__/chunk-IL5JDJWD.js +0 -2
- package/__chunks__/chunk-IUPXRKIH.js +0 -2
- package/__chunks__/chunk-JDGBXBDB.js +0 -2
- package/__chunks__/chunk-KW6HYOXT.js +0 -2
- package/__chunks__/chunk-LIOPBJAR.js +0 -2
- package/__chunks__/chunk-LLFZUOHV.js +0 -2
- package/__chunks__/chunk-LNMQ6RED.js +0 -2
- package/__chunks__/chunk-MBF7VDMJ.js +0 -2
- package/__chunks__/chunk-MQNEHNFG.js +0 -2
- package/__chunks__/chunk-OEMRN6RA.js +0 -2
- package/__chunks__/chunk-OWV63OFS.js +0 -2
- package/__chunks__/chunk-P7ETYQLM.js +0 -2
- package/__chunks__/chunk-PJU2UKAU.js +0 -2
- package/__chunks__/chunk-QWA762UQ.js +0 -2
- package/__chunks__/chunk-RLBSVH7A.js +0 -2
- package/__chunks__/chunk-UXUA2YCT.js +0 -2
- package/__chunks__/chunk-VLFWEDOB.js +0 -2
- package/__chunks__/chunk-VMEHK3CK.js +0 -2
- package/__chunks__/chunk-VRE5TYWU.js +0 -2
- package/__chunks__/chunk-W5XMZRTH.js +0 -2
- package/__chunks__/chunk-WDVYNUMZ.js +0 -2
- package/__chunks__/chunk-Y4MABHXD.js +0 -2
- package/__chunks__/chunk-YR7YPWTF.js +0 -2
- package/__chunks__/chunk-ZJPGJ7QI.js +0 -2
- package/__chunks__/chunk-ZSB5Q3QB.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Wr=Object.create;var P=Object.defineProperty,Yr=Object.defineProperties,zr=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,Xr=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable;var pr=(t,r,e)=>r in t?P(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,lr=(t,r)=>{for(var e in r||(r={}))cr.call(r,e)&&pr(t,e,r[e]);if(ur)for(var e of ur(r))Vr.call(r,e)&&pr(t,e,r[e]);return t},fr=(t,r)=>Yr(t,$r(r));var Jr=(t,r)=>()=>(t&&(r=t(t=0)),r);var O=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Kr=(t,r)=>{for(var e in r)P(t,e,{get:r[e],enumerable:!0})},gr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Qr(r))!cr.call(t,i)&&i!==e&&P(t,i,{get:()=>r[i],enumerable:!(n=zr(r,i))||n.enumerable});return t};var H=(t,r,e)=>(e=t!=null?Wr(Xr(t)):{},gr(r||!t||!t.__esModule?P(e,"default",{value:t,enumerable:!0}):e,t)),jr=t=>gr(P({},"__esModule",{value:!0}),t);var yr=O(G=>{"use strict";f();G.byteLength=re;G.toByteArray=te;G.fromByteArray=ae;var I=[],F=[],Zr=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,hr=Q.length;_<hr;++_)I[_]=Q[_],F[Q.charCodeAt(_)]=_;var _,hr;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function dr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function re(t){var r=dr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function ee(t,r,e){return(r+e)*3/4-e}function te(t){var r,e=dr(t),n=e[0],i=e[1],a=new Zr(ee(t,n,i)),o=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=F[t.charCodeAt(p)]<<18|F[t.charCodeAt(p+1)]<<12|F[t.charCodeAt(p+2)]<<6|F[t.charCodeAt(p+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=F[t.charCodeAt(p)]<<2|F[t.charCodeAt(p+1)]>>4,a[o++]=r&255),i===1&&(r=F[t.charCodeAt(p)]<<10|F[t.charCodeAt(p+1)]<<4|F[t.charCodeAt(p+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function ne(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function ie(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(ne(n));return i.join("")}function ae(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,u=e-n;o<u;o+=a)i.push(ie(t,o,o+a>u?u:o+a));return n===1?(r=t[e-1],i.push(I[r>>2]+I[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(I[r>>10]+I[r>>4&63]+I[r<<2&63]+"=")),i.join("")}});var mr=O(X=>{f();X.read=function(t,r,e,n,i){var a,o,u=i*8-n-1,p=(1<<u)-1,l=p>>1,g=-7,c=e?i-1:0,d=e?-1:1,h=t[r+c];for(c+=d,a=h&(1<<-g)-1,h>>=-g,g+=u;g>0;a=a*256+t[r+c],c+=d,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[r+c],c+=d,g-=8);if(a===0)a=1-l;else{if(a===p)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(h?-1:1)*o*Math.pow(2,a-n)};X.write=function(t,r,e,n,i,a){var o,u,p,l=a*8-i-1,g=(1<<l)-1,c=g>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,v=n?1:-1,$=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=g):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+c>=1?r+=d/p:r+=d*Math.pow(2,1-c),r*p>=2&&(o++,p/=2),o+c>=g?(u=0,o=g):o+c>=1?(u=(r*p-1)*Math.pow(2,i),o=o+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[e+h]=u&255,h+=v,u/=256,i-=8);for(o=o<<i|u,l+=i;l>0;t[e+h]=o&255,h+=v,o/=256,l-=8);t[e+h-v]|=$*128}});var Er=O(C=>{"use strict";f();var V=yr(),L=mr(),xr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;C.Buffer=s;C.SlowBuffer=le;C.INSPECT_MAX_BYTES=50;var q=2147483647;C.kMaxLength=q;s.TYPED_ARRAY_SUPPORT=oe();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function oe(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function A(t){if(t>q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(t)}return kr(t,r,e)}s.poolSize=8192;function kr(t,r,e){if(typeof t=="string")return ue(t,r);if(ArrayBuffer.isView(t))return pe(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(S(t,SharedArrayBuffer)||t&&S(t.buffer,SharedArrayBuffer)))return K(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,r,e);var i=ce(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return kr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function vr(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function se(t,r,e){return vr(t),t<=0?A(t):r!==void 0?typeof e=="string"?A(t).fill(r,e):A(t).fill(r):A(t)}s.alloc=function(t,r,e){return se(t,r,e)};function Z(t){return vr(t),A(t<0?0:rr(t)|0)}s.allocUnsafe=function(t){return Z(t)};s.allocUnsafeSlow=function(t){return Z(t)};function ue(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=Fr(t,r)|0,n=A(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function J(t){for(var r=t.length<0?0:rr(t.length)|0,e=A(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function pe(t){if(S(t,Uint8Array)){var r=new Uint8Array(t);return K(r.buffer,r.byteOffset,r.byteLength)}return J(t)}function K(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function ce(t){if(s.isBuffer(t)){var r=rr(t.length)|0,e=A(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||er(t.length)?A(0):J(t);if(t.type==="Buffer"&&Array.isArray(t.data))return J(t.data)}function rr(t){if(t>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return t|0}function le(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(S(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),S(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(S(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function Fr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Rr(t).length;default:if(i)return n?-1:j(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=Fr;function fe(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ve(this,r,e);case"utf8":case"utf-8":return Sr(this,r,e);case"ascii":return we(this,r,e);case"latin1":case"binary":return ke(this,r,e);case"base64":return xe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function D(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)D(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)D(this,e,e+3),D(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)D(this,e,e+7),D(this,e+1,e+6),D(this,e+2,e+5),D(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Sr(this,0,r):fe.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=C.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};xr&&(s.prototype[xr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(S(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=n-e,p=Math.min(o,u),l=this.slice(i,a),g=r.slice(e,n),c=0;c<p;++c)if(l[c]!==g[c]){o=l[c],u=g[c];break}return o<u?-1:u<o?1:0};function Ir(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,er(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:Tr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):Tr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function Tr(t,r,e,n,i){var a=1,o=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,u/=2,e/=2}function p(h,v){return a===1?h[v]:h.readUInt16BE(v*a)}var l;if(i){var g=-1;for(l=e;l<o;l++)if(p(t,l)===p(r,g===-1?0:l-g)){if(g===-1&&(g=l),l-g+1===u)return g*a}else g!==-1&&(l-=l-g),g=-1}else for(e+u>o&&(e=o-u),l=e;l>=0;l--){for(var c=!0,d=0;d<u;d++)if(p(t,l+d)!==p(r,d)){c=!1;break}if(c)return l}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return Ir(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return Ir(this,r,e,n,!1)};function ge(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var u=parseInt(r.substr(o*2,2),16);if(er(u))return o;t[e+o]=u}return o}function he(t,r,e,n){return W(j(r,t.length-e),t,e,n)}function de(t,r,e,n){return W(be(r),t,e,n)}function ye(t,r,e,n){return W(Rr(r),t,e,n)}function me(t,r,e,n){return W(Be(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return ge(this,r,e,n);case"utf8":case"utf-8":return he(this,r,e,n);case"ascii":case"latin1":case"binary":return de(this,r,e,n);case"base64":return ye(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xe(t,r,e){return r===0&&e===t.length?V.fromByteArray(t):V.fromByteArray(t.slice(r,e))}function Sr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=e){var p,l,g,c;switch(u){case 1:a<128&&(o=a);break;case 2:p=t[i+1],(p&192)===128&&(c=(a&31)<<6|p&63,c>127&&(o=c));break;case 3:p=t[i+1],l=t[i+2],(p&192)===128&&(l&192)===128&&(c=(a&15)<<12|(p&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:p=t[i+1],l=t[i+2],g=t[i+3],(p&192)===128&&(l&192)===128&&(g&192)===128&&(c=(a&15)<<18|(p&63)<<12|(l&63)<<6|g&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=u}return Te(n)}var wr=4096;function Te(t){var r=t.length;if(r<=wr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=wr));return e}function we(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ke(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ve(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=Ae[t[a]];return i}function Fe(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function w(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),L.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),L.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),L.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),L.read(this,r,!1,52,8)};function k(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;k(this,r,e,n,a,0)}var o=1,u=0;for(this[e]=r&255;++u<n&&(o*=256);)this[e+u]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;k(this,r,e,n,a,0)}var o=n-1,u=1;for(this[e+o]=r&255;--o>=0&&(u*=256);)this[e+o]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);k(this,r,e,n,a-1,-a)}var o=0,u=1,p=0;for(this[e]=r&255;++o<n&&(u*=256);)r<0&&p===0&&this[e+o-1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);k(this,r,e,n,a-1,-a)}var o=n-1,u=1,p=0;for(this[e+o]=r&255;--o>=0&&(u*=256);)r<0&&p===0&&this[e+o+1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||k(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function br(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Br(t,r,e,n,i){return r=+r,e=e>>>0,i||br(t,r,e,4,34028234663852886e22,-34028234663852886e22),L.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return Br(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return Br(this,r,e,!1,n)};function Ar(t,r,e,n,i){return r=+r,e=e>>>0,i||br(t,r,e,8,17976931348623157e292,-17976931348623157e292),L.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return Ar(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return Ar(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=u[o%p]}return this};var Ie=/[^+/0-9A-Za-z-_]/g;function Se(t){if(t=t.split("=")[0],t=t.trim().replace(Ie,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function j(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function be(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Be(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function Rr(t){return V.toByteArray(Se(t))}function W(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function S(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function er(t){return t!==t}var Ae=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Cr=O((He,Lr)=>{f();var x=Lr.exports={},b,B;function tr(){throw new Error("setTimeout has not been defined")}function nr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=tr}catch(t){b=tr}try{typeof clearTimeout=="function"?B=clearTimeout:B=nr}catch(t){B=nr}})();function _r(t){if(b===setTimeout)return setTimeout(t,0);if((b===tr||!b)&&setTimeout)return b=setTimeout,setTimeout(t,0);try{return b(t,0)}catch(r){try{return b.call(null,t,0)}catch(e){return b.call(this,t,0)}}}function Re(t){if(B===clearTimeout)return clearTimeout(t);if((B===nr||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(r){try{return B.call(null,t)}catch(e){return B.call(this,t)}}}var R=[],N=!1,U,Y=-1;function Ee(){!N||!U||(N=!1,U.length?R=U.concat(R):Y=-1,R.length&&Dr())}function Dr(){if(!N){var t=_r(Ee);N=!0;for(var r=R.length;r;){for(U=R,R=[];++Y<r;)U&&U[Y].run();Y=-1,r=R.length}U=null,N=!1,Re(t)}}x.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];R.push(new Ur(t,r)),R.length===1&&!N&&_r(Dr)};function Ur(t,r){this.fun=t,this.array=r}Ur.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function E(){}x.on=E;x.addListener=E;x.once=E;x.off=E;x.removeListener=E;x.removeAllListeners=E;x.emit=E;x.prependListener=E;x.prependOnceListener=E;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var y,m,Ge,f=Jr(()=>{y=H(Er()),m=H(Cr()),Ge=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Ce={};Kr(Ce,{useParseMultiEsdtTransferData:()=>Le});module.exports=jr(Ce);f();var M=require("react");f();var ar=require("@multiversx/sdk-core"),or=H(require("bignumber.js"));f();f();var Nr=require("@multiversx/sdk-core");function _e(t){try{let r=new Nr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Pr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&_e(t)}f();f();function Mr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function z(t){let r=t;try{let e=y.Buffer.from(t,"hex").toString();Mr(e)&&e.length>1&&(r=e)}catch(e){}return r}var ir={tokenId:"",amount:""},Ue=t=>t.split("@").map((a,o)=>[2,3].includes(o)?a:z(a));function Or(t){if(!t)return ir;let r=t.startsWith("ESDTTransfer"),e=t.startsWith("ESDTNFTTransfer")&&t.includes("@");if(r){let[,n,i]=t.split("@");try{let a=y.Buffer.from(n,"hex").toString("ascii");if(!a)return ir;let o=new or.default("0x"+i.replace("0x","")).toString(10);return{tokenId:a,amount:o}}catch(a){console.error("Error getting token from transaction data",a)}}if(e)try{let[,n,i,a,o]=Ue(t);if([n,i,a,o].every(u=>Boolean(u))&&Pr(new ar.Address(o).bech32()))return{tokenId:`${n}-${i}`,amount:new or.default(a,16).toString(10),collection:n,nonce:i,receiver:new ar.Address(o).bech32()}}catch(n){}return ir}f();var sr=H(require("bignumber.js"));f();f();f();f();f();f();f();f();f();f();var Hr=(t,r)=>{let e=[],n=t.indexOf(r,0);for(;n>=0;)e.push(n),n=t.indexOf(r,n+1);return e};function Gr(t){let r=[],e=0;try{if((t==null?void 0:t.startsWith("MultiESDTNFTTransfer"))&&(t==null?void 0:t.includes("@"))){let[,n,i,...a]=t==null?void 0:t.split("@");if(n){let o=new sr.default(i,16).toNumber(),u=0;for(let c=0;c<o;c++){let d={type:"nftTransaction",data:"",receiver:n};for(let h=0;h<3;h++){switch(h){case 0:d.token=z(a[u]),d.data=a[u];break;case 1:{let v=a[u]&&a[u].length?a[u]:"";v?d.nonce=v:d.type="esdtTransaction",d.data=`${d.data}@${a[u]}`;break}case 2:d.amount=new sr.default(a[u],16).toString(10),d.data=`${d.data}@${a[u]}`;break;default:break}e=u+1,u++}r[c]=d}let p=r.length!==o,l=r.some(c=>Hr(c.data,"@").length!==2),g=r.some(c=>c.data.startsWith("@"));if(p||l||g)return[];if(a[e]){let c=a[e];for(let d=e+1;d<a.length;d++)c+="@"+a[d];r[o]={type:"scCall",data:c,receiver:n}}}}}catch(n){return console.error("failed parsing tx",n),r}return r}var qr={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Le({transactions:t}){let[r,e]=(0,M.useState)({}),[n,i]=(0,M.useState)([]);function a(p,l){e(g=>fr(lr({},g),{[p]:l}))}function o(p,l){return r==null?qr:p in r?r[p]:l!=null&&String(l)in r?r[l]:qr}function u(){if(t&&t.length>0){let p=[];t.forEach((l,g)=>{let c=l.getData().toString(),d=Gr(c);if(d.length>0)d.forEach((h,v)=>{let $={transaction:l,multiTxData:h.data,transactionIndex:v};a(h.data,{tokenId:h.token?h.token:"",amount:h.amount?h.amount:"",type:h.type,nonce:h.nonce?h.nonce:"",multiTxData:h.data,receiver:h.receiver}),p.push($)});else{let{tokenId:h,amount:v}=Or(l.getData().toString());h&&a(l.getData().toString(),{tokenId:h,amount:v,receiver:l.getReceiver().bech32()}),p.push({transaction:l,transactionIndex:g})}}),i(p)}}return(0,M.useEffect)(()=>{u()},[t==null?void 0:t.length]),{parsedTransactionsByDataField:r,getTxInfoByDataField:o,allTransactions:n}}0&&(module.exports={useParseMultiEsdtTransferData});
|
|
1
|
+
"use strict";var Wr=Object.create;var P=Object.defineProperty,Yr=Object.defineProperties,zr=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,Xr=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable;var pr=(t,r,e)=>r in t?P(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,lr=(t,r)=>{for(var e in r||(r={}))cr.call(r,e)&&pr(t,e,r[e]);if(ur)for(var e of ur(r))Jr.call(r,e)&&pr(t,e,r[e]);return t},fr=(t,r)=>Yr(t,$r(r));var Kr=(t,r)=>()=>(t&&(r=t(t=0)),r);var O=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Vr=(t,r)=>{for(var e in r)P(t,e,{get:r[e],enumerable:!0})},gr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Qr(r))!cr.call(t,i)&&i!==e&&P(t,i,{get:()=>r[i],enumerable:!(n=zr(r,i))||n.enumerable});return t};var H=(t,r,e)=>(e=t!=null?Wr(Xr(t)):{},gr(r||!t||!t.__esModule?P(e,"default",{value:t,enumerable:!0}):e,t)),jr=t=>gr(P({},"__esModule",{value:!0}),t);var yr=O(G=>{"use strict";f();G.byteLength=re;G.toByteArray=te;G.fromByteArray=ae;var I=[],F=[],Zr=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(E=0,hr=Q.length;E<hr;++E)I[E]=Q[E],F[Q.charCodeAt(E)]=E;var E,hr;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function dr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function re(t){var r=dr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function ee(t,r,e){return(r+e)*3/4-e}function te(t){var r,e=dr(t),n=e[0],i=e[1],a=new Zr(ee(t,n,i)),o=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=F[t.charCodeAt(p)]<<18|F[t.charCodeAt(p+1)]<<12|F[t.charCodeAt(p+2)]<<6|F[t.charCodeAt(p+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=F[t.charCodeAt(p)]<<2|F[t.charCodeAt(p+1)]>>4,a[o++]=r&255),i===1&&(r=F[t.charCodeAt(p)]<<10|F[t.charCodeAt(p+1)]<<4|F[t.charCodeAt(p+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function ne(t){return I[t>>18&63]+I[t>>12&63]+I[t>>6&63]+I[t&63]}function ie(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(ne(n));return i.join("")}function ae(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,u=e-n;o<u;o+=a)i.push(ie(t,o,o+a>u?u:o+a));return n===1?(r=t[e-1],i.push(I[r>>2]+I[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(I[r>>10]+I[r>>4&63]+I[r<<2&63]+"=")),i.join("")}});var mr=O(X=>{f();X.read=function(t,r,e,n,i){var a,o,u=i*8-n-1,p=(1<<u)-1,l=p>>1,g=-7,c=e?i-1:0,d=e?-1:1,h=t[r+c];for(c+=d,a=h&(1<<-g)-1,h>>=-g,g+=u;g>0;a=a*256+t[r+c],c+=d,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[r+c],c+=d,g-=8);if(a===0)a=1-l;else{if(a===p)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(h?-1:1)*o*Math.pow(2,a-n)};X.write=function(t,r,e,n,i,a){var o,u,p,l=a*8-i-1,g=(1<<l)-1,c=g>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,k=n?1:-1,$=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=g):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+c>=1?r+=d/p:r+=d*Math.pow(2,1-c),r*p>=2&&(o++,p/=2),o+c>=g?(u=0,o=g):o+c>=1?(u=(r*p-1)*Math.pow(2,i),o=o+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[e+h]=u&255,h+=k,u/=256,i-=8);for(o=o<<i|u,l+=i;l>0;t[e+h]=o&255,h+=k,o/=256,l-=8);t[e+h-k]|=$*128}});var _r=O(C=>{"use strict";f();var J=yr(),L=mr(),xr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;C.Buffer=s;C.SlowBuffer=le;C.INSPECT_MAX_BYTES=50;var q=2147483647;C.kMaxLength=q;s.TYPED_ARRAY_SUPPORT=oe();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function oe(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function A(t){if(t>q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(t)}return vr(t,r,e)}s.poolSize=8192;function vr(t,r,e){if(typeof t=="string")return ue(t,r);if(ArrayBuffer.isView(t))return pe(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(S(t,SharedArrayBuffer)||t&&S(t.buffer,SharedArrayBuffer)))return V(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,r,e);var i=ce(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return vr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function kr(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function se(t,r,e){return kr(t),t<=0?A(t):r!==void 0?typeof e=="string"?A(t).fill(r,e):A(t).fill(r):A(t)}s.alloc=function(t,r,e){return se(t,r,e)};function Z(t){return kr(t),A(t<0?0:rr(t)|0)}s.allocUnsafe=function(t){return Z(t)};s.allocUnsafeSlow=function(t){return Z(t)};function ue(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=Fr(t,r)|0,n=A(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function K(t){for(var r=t.length<0?0:rr(t.length)|0,e=A(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function pe(t){if(S(t,Uint8Array)){var r=new Uint8Array(t);return V(r.buffer,r.byteOffset,r.byteLength)}return K(t)}function V(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function ce(t){if(s.isBuffer(t)){var r=rr(t.length)|0,e=A(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||er(t.length)?A(0):K(t);if(t.type==="Buffer"&&Array.isArray(t.data))return K(t.data)}function rr(t){if(t>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return t|0}function le(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(S(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),S(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(S(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function Fr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Rr(t).length;default:if(i)return n?-1:j(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=Fr;function fe(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ke(this,r,e);case"utf8":case"utf-8":return Sr(this,r,e);case"ascii":return we(this,r,e);case"latin1":case"binary":return ve(this,r,e);case"base64":return xe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function D(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)D(this,e,e+1);return this};s.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)D(this,e,e+3),D(this,e+1,e+2);return this};s.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)D(this,e,e+7),D(this,e+1,e+6),D(this,e+2,e+5),D(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Sr(this,0,r):fe.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=C.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};xr&&(s.prototype[xr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(S(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=n-e,p=Math.min(o,u),l=this.slice(i,a),g=r.slice(e,n),c=0;c<p;++c)if(l[c]!==g[c]){o=l[c],u=g[c];break}return o<u?-1:u<o?1:0};function Ir(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,er(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:Tr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):Tr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function Tr(t,r,e,n,i){var a=1,o=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,u/=2,e/=2}function p(h,k){return a===1?h[k]:h.readUInt16BE(k*a)}var l;if(i){var g=-1;for(l=e;l<o;l++)if(p(t,l)===p(r,g===-1?0:l-g)){if(g===-1&&(g=l),l-g+1===u)return g*a}else g!==-1&&(l-=l-g),g=-1}else for(e+u>o&&(e=o-u),l=e;l>=0;l--){for(var c=!0,d=0;d<u;d++)if(p(t,l+d)!==p(r,d)){c=!1;break}if(c)return l}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return Ir(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return Ir(this,r,e,n,!1)};function ge(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var u=parseInt(r.substr(o*2,2),16);if(er(u))return o;t[e+o]=u}return o}function he(t,r,e,n){return W(j(r,t.length-e),t,e,n)}function de(t,r,e,n){return W(be(r),t,e,n)}function ye(t,r,e,n){return W(Rr(r),t,e,n)}function me(t,r,e,n){return W(Be(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return ge(this,r,e,n);case"utf8":case"utf-8":return he(this,r,e,n);case"ascii":case"latin1":case"binary":return de(this,r,e,n);case"base64":return ye(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xe(t,r,e){return r===0&&e===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(r,e))}function Sr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=e){var p,l,g,c;switch(u){case 1:a<128&&(o=a);break;case 2:p=t[i+1],(p&192)===128&&(c=(a&31)<<6|p&63,c>127&&(o=c));break;case 3:p=t[i+1],l=t[i+2],(p&192)===128&&(l&192)===128&&(c=(a&15)<<12|(p&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:p=t[i+1],l=t[i+2],g=t[i+3],(p&192)===128&&(l&192)===128&&(g&192)===128&&(c=(a&15)<<18|(p&63)<<12|(l&63)<<6|g&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=u}return Te(n)}var wr=4096;function Te(t){var r=t.length;if(r<=wr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=wr));return e}function we(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ve(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ke(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=Ae[t[a]];return i}function Fe(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function w(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),L.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),L.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),L.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),L.read(this,r,!1,52,8)};function v(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;v(this,r,e,n,a,0)}var o=1,u=0;for(this[e]=r&255;++u<n&&(o*=256);)this[e+u]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;v(this,r,e,n,a,0)}var o=n-1,u=1;for(this[e+o]=r&255;--o>=0&&(u*=256);)this[e+o]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);v(this,r,e,n,a-1,-a)}var o=0,u=1,p=0;for(this[e]=r&255;++o<n&&(u*=256);)r<0&&p===0&&this[e+o-1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);v(this,r,e,n,a-1,-a)}var o=n-1,u=1,p=0;for(this[e+o]=r&255;--o>=0&&(u*=256);)r<0&&p===0&&this[e+o+1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function br(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Br(t,r,e,n,i){return r=+r,e=e>>>0,i||br(t,r,e,4,34028234663852886e22,-34028234663852886e22),L.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return Br(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return Br(this,r,e,!1,n)};function Ar(t,r,e,n,i){return r=+r,e=e>>>0,i||br(t,r,e,8,17976931348623157e292,-17976931348623157e292),L.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return Ar(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return Ar(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=u[o%p]}return this};var Ie=/[^+/0-9A-Za-z-_]/g;function Se(t){if(t=t.split("=")[0],t=t.trim().replace(Ie,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function j(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function be(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Be(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function Rr(t){return J.toByteArray(Se(t))}function W(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function S(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function er(t){return t!==t}var Ae=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Cr=O((He,Lr)=>{f();var x=Lr.exports={},b,B;function tr(){throw new Error("setTimeout has not been defined")}function nr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=tr}catch(t){b=tr}try{typeof clearTimeout=="function"?B=clearTimeout:B=nr}catch(t){B=nr}})();function Er(t){if(b===setTimeout)return setTimeout(t,0);if((b===tr||!b)&&setTimeout)return b=setTimeout,setTimeout(t,0);try{return b(t,0)}catch(r){try{return b.call(null,t,0)}catch(e){return b.call(this,t,0)}}}function Re(t){if(B===clearTimeout)return clearTimeout(t);if((B===nr||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(r){try{return B.call(null,t)}catch(e){return B.call(this,t)}}}var R=[],N=!1,U,Y=-1;function _e(){!N||!U||(N=!1,U.length?R=U.concat(R):Y=-1,R.length&&Dr())}function Dr(){if(!N){var t=Er(_e);N=!0;for(var r=R.length;r;){for(U=R,R=[];++Y<r;)U&&U[Y].run();Y=-1,r=R.length}U=null,N=!1,Re(t)}}x.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];R.push(new Ur(t,r)),R.length===1&&!N&&Er(Dr)};function Ur(t,r){this.fun=t,this.array=r}Ur.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function _(){}x.on=_;x.addListener=_;x.once=_;x.off=_;x.removeListener=_;x.removeAllListeners=_;x.emit=_;x.prependListener=_;x.prependOnceListener=_;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var y,m,Ge,f=Kr(()=>{y=H(_r()),m=H(Cr()),Ge=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Ce={};Vr(Ce,{useParseMultiEsdtTransferData:()=>Le});module.exports=jr(Ce);f();var M=require("react");f();var ar=require("@multiversx/sdk-core"),or=H(require("bignumber.js"));f();f();var Nr=require("@multiversx/sdk-core");function Ee(t){try{let r=new Nr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Pr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&Ee(t)}f();f();function Mr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function z(t){let r=t;try{let e=y.Buffer.from(t,"hex").toString();Mr(e)&&e.length>1&&(r=e)}catch(e){}return r}var ir={tokenId:"",amount:""},Ue=t=>t.split("@").map((a,o)=>[2,3].includes(o)?a:z(a));function Or(t){if(!t)return ir;let r=t.startsWith("ESDTTransfer"),e=t.startsWith("ESDTNFTTransfer")&&t.includes("@");if(r){let[,n,i]=t.split("@");try{let a=y.Buffer.from(n,"hex").toString("ascii");if(!a)return ir;let o=new or.default("0x"+i.replace("0x","")).toString(10);return{tokenId:a,amount:o}}catch(a){console.error("Error getting token from transaction data",a)}}if(e)try{let[,n,i,a,o]=Ue(t);if([n,i,a,o].every(u=>Boolean(u))&&Pr(new ar.Address(o).bech32()))return{tokenId:`${n}-${i}`,amount:new or.default(a,16).toString(10),collection:n,nonce:i,receiver:new ar.Address(o).bech32()}}catch(n){}return ir}f();var sr=H(require("bignumber.js"));f();f();f();f();f();f();f();f();f();f();var Hr=(t,r)=>{let e=[],n=t.indexOf(r,0);for(;n>=0;)e.push(n),n=t.indexOf(r,n+1);return e};function Gr(t){let r=[],e=0;try{if((t==null?void 0:t.startsWith("MultiESDTNFTTransfer"))&&(t==null?void 0:t.includes("@"))){let[,n,i,...a]=t==null?void 0:t.split("@");if(n){let o=new sr.default(i,16).toNumber(),u=0;for(let c=0;c<o;c++){let d={type:"nftTransaction",data:"",receiver:n};for(let h=0;h<3;h++){switch(h){case 0:d.token=z(a[u]),d.data=a[u];break;case 1:{let k=a[u]&&a[u].length?a[u]:"";k?d.nonce=k:d.type="esdtTransaction",d.data=`${d.data}@${a[u]}`;break}case 2:d.amount=new sr.default(a[u],16).toString(10),d.data=`${d.data}@${a[u]}`;break;default:break}e=u+1,u++}r[c]=d}let p=r.length!==o,l=r.some(c=>Hr(c.data,"@").length!==2),g=r.some(c=>c.data.startsWith("@"));if(p||l||g)return[];if(a[e]){let c=a[e];for(let d=e+1;d<a.length;d++)c+="@"+a[d];r[o]={type:"scCall",data:c,receiver:n}}}}}catch(n){return console.error("failed parsing tx",n),r}return r}var qr={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Le({transactions:t}){let[r,e]=(0,M.useState)({}),[n,i]=(0,M.useState)([]);function a(p,l){e(g=>fr(lr({},g),{[p]:l}))}function o(p,l){return r==null?qr:p in r?r[p]:l!=null&&String(l)in r?r[l]:qr}function u(){if(t&&t.length>0){let p=[];t.forEach((l,g)=>{let c=l.getData().toString(),d=Gr(c);if(d.length>0)d.forEach((h,k)=>{let $={transaction:l,multiTxData:h.data,transactionIndex:k};a(h.data,{tokenId:h.token?h.token:"",amount:h.amount?h.amount:"",type:h.type,nonce:h.nonce?h.nonce:"",multiTxData:h.data,receiver:h.receiver}),p.push($)});else{let{tokenId:h,amount:k}=Or(l.getData().toString());h&&a(l.getData().toString(),{tokenId:h,amount:k,receiver:l.getReceiver().bech32()}),p.push({transaction:l,transactionIndex:g})}}),i(p)}}return(0,M.useEffect)(()=>{u()},[t==null?void 0:t.length]),{parsedTransactionsByDataField:r,getTxInfoByDataField:o,allTransactions:n}}0&&(module.exports={useParseMultiEsdtTransferData});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Fi=Object.create;var Ne=Object.defineProperty,Ui=Object.defineProperties,Bi=Object.getOwnPropertyDescriptor,$i=Object.getOwnPropertyDescriptors,Vi=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,Wi=Object.getPrototypeOf,Gt=Object.prototype.hasOwnProperty,Hr=Object.prototype.propertyIsEnumerable;var Gr=(e,t,r)=>t in e?Ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Gt.call(t,r)&&Gr(e,r,t[r]);if(je)for(var r of je(t))Hr.call(t,r)&&Gr(e,r,t[r]);return e},S=(e,t)=>Ui(e,$i(t));var qr=(e,t)=>{var r={};for(var o in e)Gt.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&&Hr.call(e,o)&&(r[o]=e[o]);return r};var y=(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)Ne(e,r,{get:t[r],enumerable:!0})},jr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Vi(t))!Gt.call(e,i)&&i!==r&&Ne(e,i,{get:()=>t[i],enumerable:!(o=Bi(t,i))||o.enumerable});return e};var w=(e,t,r)=>(r=e!=null?Fi(Wi(e)):{},jr(t||!e||!e.__esModule?Ne(r,"default",{value:e,enumerable:!0}):r,e)),De=e=>jr(Ne({},"__esModule",{value:!0}),e);var U=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(T){i(T)}},p=m=>{try{d(r.throw(m))}catch(T){i(T)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Yr=ze(Ke=>{"use strict";n();Ke.byteLength=Hi;Ke.toByteArray=ji;Ke.fromByteArray=Yi;var j=[],G=[],Gi=typeof Uint8Array!="undefined"?Uint8Array:Array,Ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ue=0,zr=Ht.length;ue<zr;++ue)j[ue]=Ht[ue],G[Ht.charCodeAt(ue)]=ue;var ue,zr;G["-".charCodeAt(0)]=62;G["_".charCodeAt(0)]=63;function Kr(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 Hi(e){var t=Kr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function qi(e,t,r){return(t+r)*3/4-r}function ji(e){var t,r=Kr(e),o=r[0],i=r[1],l=new Gi(qi(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=G[e.charCodeAt(m)]<<18|G[e.charCodeAt(m+1)]<<12|G[e.charCodeAt(m+2)]<<6|G[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=G[e.charCodeAt(m)]<<2|G[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=G[e.charCodeAt(m)]<<10|G[e.charCodeAt(m+1)]<<4|G[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function zi(e){return j[e>>18&63]+j[e>>12&63]+j[e>>6&63]+j[e&63]}function Ki(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(zi(o));return i.join("")}function Yi(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(Ki(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 Zr=ze(qt=>{n();qt.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,T=m>>1,f=-7,h=r?i-1:0,E=r?-1:1,b=e[t+h];for(h+=E,l=b&(1<<-f)-1,b>>=-f,f+=d;f>0;l=l*256+e[t+h],h+=E,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+h],h+=E,f-=8);if(l===0)l=1-T;else{if(l===m)return p?NaN:(b?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-T}return(b?-1:1)*p*Math.pow(2,l-o)};qt.write=function(e,t,r,o,i,l){var p,d,m,T=l*8-i-1,f=(1<<T)-1,h=f>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=o?0:l-1,N=o?1:-1,O=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+h>=1?t+=E/m:t+=E*Math.pow(2,1-h),t*m>=2&&(p++,m/=2),p+h>=f?(d=0,p=f):p+h>=1?(d=(t*m-1)*Math.pow(2,i),p=p+h):(d=t*Math.pow(2,h-1)*Math.pow(2,i),p=0));i>=8;e[r+b]=d&255,b+=N,d/=256,i-=8);for(p=p<<i|d,T+=i;T>0;e[r+b]=p&255,b+=N,p/=256,T-=8);e[r+b-N]|=O*128}});var pn=ze(Se=>{"use strict";n();var jt=Yr(),xe=Zr(),Xr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Se.Buffer=u;Se.SlowBuffer=ts;Se.INSPECT_MAX_BYTES=50;var Ye=2147483647;Se.kMaxLength=Ye;u.TYPED_ARRAY_SUPPORT=Zi();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Zi(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function Q(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 Zt(e)}return en(e,t,r)}u.poolSize=8192;function en(e,t,r){if(typeof e=="string")return Qi(e,t);if(ArrayBuffer.isView(e))return Ji(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 Kt(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=es(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 en(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function tn(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 Xi(e,t,r){return tn(e),e<=0?Q(e):t!==void 0?typeof r=="string"?Q(e).fill(t,r):Q(e).fill(t):Q(e)}u.alloc=function(e,t,r){return Xi(e,t,r)};function Zt(e){return tn(e),Q(e<0?0:Xt(e)|0)}u.allocUnsafe=function(e){return Zt(e)};u.allocUnsafeSlow=function(e){return Zt(e)};function Qi(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=rn(e,t)|0,o=Q(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function zt(e){for(var t=e.length<0?0:Xt(e.length)|0,r=Q(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Ji(e){if(z(e,Uint8Array)){var t=new Uint8Array(e);return Kt(t.buffer,t.byteOffset,t.byteLength)}return zt(e)}function Kt(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 es(e){if(u.isBuffer(e)){var t=Xt(e.length)|0,r=Q(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Qt(e.length)?Q(0):zt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return zt(e.data)}function Xt(e){if(e>=Ye)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ye.toString(16)+" bytes");return e|0}function ts(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 rn(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 Yt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ln(e).length;default:if(i)return o?-1:Yt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=rn;function rs(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 ds(this,t,r);case"utf8":case"utf-8":return on(this,t,r);case"ascii":return ps(this,t,r);case"latin1":case"binary":return us(this,t,r);case"base64":return cs(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ms(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?on(this,0,t):rs.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=Se.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Xr&&(u.prototype[Xr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,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),T=this.slice(i,l),f=t.slice(r,o),h=0;h<m;++h)if(T[h]!==f[h]){p=T[h],d=f[h];break}return p<d?-1:d<p?1:0};function nn(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,Qt(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:Qr(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):Qr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Qr(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(b,N){return l===1?b[N]:b.readUInt16BE(N*l)}var T;if(i){var f=-1;for(T=r;T<p;T++)if(m(e,T)===m(t,f===-1?0:T-f)){if(f===-1&&(f=T),T-f+1===d)return f*l}else f!==-1&&(T-=T-f),f=-1}else for(r+d>p&&(r=p-d),T=r;T>=0;T--){for(var h=!0,E=0;E<d;E++)if(m(e,T+E)!==m(t,E)){h=!1;break}if(h)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return nn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return nn(this,t,r,o,!1)};function ns(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(Qt(d))return p;e[r+p]=d}return p}function os(e,t,r,o){return Ze(Yt(t,e.length-r),e,r,o)}function is(e,t,r,o){return Ze(Ts(t),e,r,o)}function ss(e,t,r,o){return Ze(ln(t),e,r,o)}function as(e,t,r,o){return Ze(ys(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 ns(this,t,r,o);case"utf8":case"utf-8":return os(this,t,r,o);case"ascii":case"latin1":case"binary":return is(this,t,r,o);case"base64":return ss(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return as(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 cs(e,t,r){return t===0&&r===e.length?jt.fromByteArray(e):jt.fromByteArray(e.slice(t,r))}function on(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,T,f,h;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(h=(l&31)<<6|m&63,h>127&&(p=h));break;case 3:m=e[i+1],T=e[i+2],(m&192)===128&&(T&192)===128&&(h=(l&15)<<12|(m&63)<<6|T&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:m=e[i+1],T=e[i+2],f=e[i+3],(m&192)===128&&(T&192)===128&&(f&192)===128&&(h=(l&15)<<18|(m&63)<<12|(T&63)<<6|f&63,h>65535&&h<1114112&&(p=h))}}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 ls(o)}var Jr=4096;function ls(e){var t=e.length;if(t<=Jr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Jr));return r}function ps(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 us(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 ds(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+=hs[e[l]];return i}function ms(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 k(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||k(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||k(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||k(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||k(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||k(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||k(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||k(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||k(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||k(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||k(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||k(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||k(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||k(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||k(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||k(t,4,this.length),xe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||k(t,4,this.length),xe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||k(t,8,this.length),xe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||k(t,8,this.length),xe.read(this,t,!1,52,8)};function _(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;_(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;_(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||_(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);_(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);_(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||_(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function sn(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 an(e,t,r,o,i){return t=+t,r=r>>>0,i||sn(e,t,r,4,34028234663852886e22,-34028234663852886e22),xe.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return an(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return an(this,t,r,!1,o)};function cn(e,t,r,o,i){return t=+t,r=r>>>0,i||sn(e,t,r,8,17976931348623157e292,-17976931348623157e292),xe.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return cn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return cn(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 gs=/[^+/0-9A-Za-z-_]/g;function fs(e){if(e=e.split("=")[0],e=e.trim().replace(gs,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Yt(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 Ts(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ys(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 ln(e){return jt.toByteArray(fs(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 Qt(e){return e!==e}var hs=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 fn=ze((ic,gn)=>{n();var v=gn.exports={},K,Y;function Jt(){throw new Error("setTimeout has not been defined")}function er(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?K=setTimeout:K=Jt}catch(e){K=Jt}try{typeof clearTimeout=="function"?Y=clearTimeout:Y=er}catch(e){Y=er}})();function un(e){if(K===setTimeout)return setTimeout(e,0);if((K===Jt||!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 xs(e){if(Y===clearTimeout)return clearTimeout(e);if((Y===er||!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 J=[],we=!1,me,Xe=-1;function Ss(){!we||!me||(we=!1,me.length?J=me.concat(J):Xe=-1,J.length&&dn())}function dn(){if(!we){var e=un(Ss);we=!0;for(var t=J.length;t;){for(me=J,J=[];++Xe<t;)me&&me[Xe].run();Xe=-1,t=J.length}me=null,we=!1,xs(e)}}v.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];J.push(new mn(e,t)),J.length===1&&!we&&un(dn)};function mn(e,t){this.fun=e,this.array=t}mn.prototype.run=function(){this.fun.apply(null,this.array)};v.title="browser";v.browser=!0;v.env={};v.argv=[];v.version="";v.versions={};function ee(){}v.on=ee;v.addListener=ee;v.once=ee;v.off=ee;v.removeListener=ee;v.removeAllListeners=ee;v.emit=ee;v.prependListener=ee;v.prependOnceListener=ee;v.listeners=function(e){return[]};v.binding=function(e){throw new Error("process.binding is not supported")};v.cwd=function(){return"/"};v.chdir=function(e){throw new Error("process.chdir is not supported")};v.umask=function(){return 0}});var s,a,sc,n=y(()=>{s=w(pn()),a=w(fn()),sc=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 Tn,Ce,yn,hn,xn,Sn=y(()=>{"use strict";n();Tn="error when signing",Ce="Transaction canceled",yn="error signing transaction",hn="provider not initialized",xn="You need a signer/valid signer to send a transaction,use either WalletProvider, LedgerProvider or WalletConnect"});var wn=y(()=>{"use strict";n()});var In=y(()=>{"use strict";n()});var An=y(()=>{"use strict";n()});var B=y(()=>{"use strict";n()});var bn=y(()=>{"use strict";n()});var vn=y(()=>{"use strict";n()});var C=y(()=>{"use strict";n()});var En=y(()=>{"use strict";n()});var kn=y(()=>{"use strict";n()});var Z=y(()=>{"use strict";n();wn();In();An();B();bn();vn();C();En();kn()});var tr,Ln,vc,Nn,Ec,Dn,kc,Lc,Nc,Cn=y(()=>{"use strict";n();Z();tr={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:Ln,egldLabel:vc}=tr["devnet"],{chainId:Nn,egldLabel:Ec}=tr["testnet"],{chainId:Dn,egldLabel:kc}=tr["mainnet"],Lc={["devnet"]:Ln,["testnet"]:Nn,["mainnet"]:Dn},Nc={[Ln]:"devnet",[Nn]:"testnet",[Dn]:"mainnet"}});var rr=y(()=>{"use strict";n()});var Rn=y(()=>{"use strict";n()});var Ie,nr=y(()=>{"use strict";n();Ie="transaction-status-toast-id"});var X,Pn=y(()=>{"use strict";n();X=require("@multiversx/sdk-web-wallet-provider")});var or,ir,_n,Mn,Re,Qe,On,Ae,A=y(()=>{"use strict";n();Sn();Cn();rr();Rn();nr();Pn();or=5e4,ir=1e9,_n=1,Mn="/dapp/init",Re="signSession",Qe="logout",On="login",Ae="0"});var rt,lr=y(()=>{"use strict";n();rt=()=>Date.now()/1e3});var Gn=y(()=>{"use strict";n()});var Hn=y(()=>{"use strict";n()});var qn=y(()=>{"use strict";n();lr();Gn();Hn()});var ur={};pe(ur,{getItem:()=>As,localStorageKeys:()=>ge,removeItem:()=>bs,setItem:()=>Is});var ge,pr,Is,As,bs,Pe=y(()=>{"use strict";n();qn();ge={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},pr=typeof localStorage!="undefined",Is=({key:e,data:t,expires:r})=>{!pr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},As=e=>{if(!pr)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:rt()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},bs=e=>{!pr||localStorage.removeItem(String(e))}});var dr={};pe(dr,{clear:()=>Yn,getItem:()=>zn,removeItem:()=>Kn,setItem:()=>jn,storage:()=>vs});var jn,zn,Kn,Yn,vs,Zn=y(()=>{"use strict";n();jn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},zn=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},Kn=e=>sessionStorage.removeItem(String(e)),Yn=()=>sessionStorage.clear(),vs={setItem:jn,getItem:zn,removeItem:Kn,clear:Yn}});var be,nt=y(()=>{"use strict";n();Pe();Zn();be={session:dr,local:ur}});var mr,L,ot,re=y(()=>{"use strict";n();mr=require("@reduxjs/toolkit");A();L=(0,mr.createAction)(Qe),ot=(0,mr.createAction)(On,e=>({payload:e}))});var fr,Xn,Qn,it,gr,Jn,eo,yl,to,hl,xl,Sl,wl,Il,Al,bl,st,at=y(()=>{"use strict";n();fr=require("@multiversx/sdk-core"),Xn=require("@reduxjs/toolkit"),Qn=require("redux-persist");A();nt();Pe();re();it={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Ae},gr={address:"",websocketEvent:null,accounts:{"":it},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Jn=(0,Xn.createSlice)({name:"accountInfoSlice",initialState:gr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new fr.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:it},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(L,()=>(be.local.removeItem(ge.loginExpiresAt),gr)),e.addCase(ot,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new fr.Address(o).hex()}),e.addCase(Qn.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.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:gr.accounts,t.publicKey=d})}}),{setAccount:eo,setAddress:yl,setAccountNonce:to,setAccountShard:hl,setLedgerAccount:xl,updateLedgerAccount:Sl,setWalletConnectAccount:wl,setIsAccountLoading:Il,setAccountLoadingError:Al,setWebsocketEvent:bl}=Jn.actions,st=Jn.reducer});function _e(){return new Date().setHours(new Date().getHours()+24)}function Me(e){be.local.setItem({key:ge.loginExpiresAt,data:e,expires:e})}var Tr=y(()=>{"use strict";n();nt();Pe()});var no,ro,oo,_l,Ml,Ol,Fl,Ul,Bl,io,$l,ct,lt=y(()=>{"use strict";n();no=require("@reduxjs/toolkit");Tr();B();re();ro={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},oo=(0,no.createSlice)({name:"loginInfoSlice",initialState:ro,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(L,()=>ro),e.addCase(ot,(t,r)=>{t.loginMethod=r.payload.loginMethod,Me(_e())})}}),{setLoginMethod:_l,setWalletConnectLogin:Ml,setLedgerLogin:Ol,setTokenLogin:Fl,setTokenLoginSignature:Ul,setWalletLogin:Bl,invalidateLoginSession:io,setLogoutRoute:$l}=oo.actions,ct=oo.reducer});var ao,so,co,Hl,ql,jl,zl,pt,ut=y(()=>{"use strict";n();ao=require("@reduxjs/toolkit");re();so={},co=(0,ao.createSlice)({name:"modalsSlice",initialState:so,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(L,()=>so)}}),{setTxSubmittedModal:Hl,setNotificationModal:ql,clearTxSubmittedModal:jl,clearNotificationModal:zl}=co.actions,pt=co.reducer});var lo=y(()=>{"use strict";n()});var po=y(()=>{"use strict";n();lo()});function yr(e){return e[Math.floor(Math.random()*e.length)]}var uo=y(()=>{"use strict";n()});var mo=y(()=>{"use strict";n();rr()});var go=y(()=>{"use strict";n();po();uo();mo()});var fo,To,hr,Es,yo,lp,pp,dt,mt=y(()=>{"use strict";n();fo=require("@reduxjs/toolkit"),To=w(require("lodash.omit"));go();hr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Es={network:hr,chainID:"-1"},yo=(0,fo.createSlice)({name:"appConfig",initialState:Es,reducers:{initializeNetworkConfig:(e,t)=>{let r=yr(t.payload.walletConnectBridgeAddresses),o=yr(t.payload.walletConnectV2RelayAddresses),i=(0,To.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:lp,setChainID:pp}=yo.actions,dt=yo.reducer});var ho,xr,xo,Tp,yp,hp,gt,ft=y(()=>{"use strict";n();ho=require("@reduxjs/toolkit");Z();re();xr={isSigning:!1,signedSessions:{}},xo=(0,ho.createSlice)({name:"signedMessageInfoSliceState",initialState:xr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return S(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:S(x({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>xr},extraReducers:e=>{e.addCase(L,()=>xr)}}),{setSignSession:Tp,clearSignedMessageInfo:yp,setSignSessionState:hp}=xo.actions,gt=xo.reducer});var wo,Io,So,Ao,Ep,Tt,kp,Lp,Np,Dp,yt,ht=y(()=>{"use strict";n();wo=require("@reduxjs/toolkit"),Io=require("redux-persist");nr();Z();lr();re();So={customToasts:[],transactionToasts:[],failTransactionToast:null},Ao=(0,wo.createSlice)({name:"toastsSlice",initialState:So,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(S(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:rt(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=S(x({},t.payload),{toastId:Ie})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(L,()=>So),e.addCase(Io.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:Ep,removeCustomToast:Tt,addTransactionToast:kp,removeTransactionToast:Lp,addFailTransactionToast:Np,removeFailTransactionToast:Dp}=Ao.actions,yt=Ao.reducer});var bo,wr,Ir,Ar,ks,Sr,vo,_p,Mp,xt,St,wt=y(()=>{"use strict";n();bo=require("@reduxjs/toolkit");re();wr="Transaction failed",Ir="Transaction successful",Ar="Processing transaction",ks="Transaction submitted",Sr={},vo=(0,bo.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)||Ar,submittedMessage:(o==null?void 0:o.submittedMessage)||ks,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Sr},extraReducers:e=>{e.addCase(L,()=>Sr)}}),{clearTransactionsInfo:_p,setTransactionsDisplayInfo:Mp,clearTransactionsInfoForSessionId:xt}=vo.actions,St=vo.reducer});function Eo(e){return e!=null&&(Ms(e)||Bs(e))}function It(e){return e!=null&&(Os(e)||$s(e))}function At(e){return e!=null&&(Fs(e)||Vs(e))}function ko(e){return e!=null&&Us(e)}function Ms(e){return e!=null&&Ls.includes(e)}function Os(e){return e!=null&&Ns.includes(e)}function Fs(e){return e!=null&&Ds.includes(e)}function Us(e){return e!=null&&Cs.includes(e)}function Bs(e){return e!=null&&Rs.includes(e)}function $s(e){return e!=null&&Ps.includes(e)}function Vs(e){return e!=null&&_s.includes(e)}var Ls,Ns,Ds,Cs,Rs,Ps,_s,Er=y(()=>{"use strict";n();B();Ls=["sent"],Ns=["success"],Ds=["fail","cancelled","timedOut"],Cs=["timedOut"],Rs=["pending"],Ps=["success"],_s=["fail","invalid"]});var Lo,No,Oe,Ws,Do,Hp,qp,jp,bt,zp,Kp,Yp,Zp,vt,fe,Et,kt=y(()=>{"use strict";n();Lo=require("@reduxjs/toolkit"),No=require("redux-persist");B();Er();re();Oe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ws={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Do=(0,Lo.createSlice)({name:"transactionsSlice",initialState:Oe,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,T;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,d=((m=e.customTransactionInformationForSessionId)==null?void 0:m[r])||Ws;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:d},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=Oe.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions: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,T,f,h,E;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(O=>O.hash===l?S(x({},O),{status:o,errorMessage:i}):O);let b=(f=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:f.every(O=>It(O.status)),N=(E=(h=e.signedTransactions[r])==null?void 0:h.transactions)==null?void 0:E.every(O=>At(O.status));b&&(e.signedTransactions[r].status="success"),N&&(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=Oe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Oe.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(L,()=>Oe),e.addCase(No.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,T])=>{let f=new Date(m),h=new Date;return h.setHours(h.getHours()+5),h-f>0||(d[m]=T),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Hp,updateSignedTransactions:qp,setTransactionsToSign:jp,clearAllTransactionsToSign:bt,clearAllSignedTransactions:zp,clearSignedTransaction:Kp,clearTransactionToSign:Yp,setSignTransactionsError:Zp,setSignTransactionsCancelMessage:vt,moveTransactionsToSignedState:fe}=Do.actions,Et=Do.reducer});var ne=y(()=>{"use strict";n();at();lt();ut();mt();ft();ht();wt();kt()});var kr=y(()=>{"use strict";n()});var Mo,_o,Oo,Su,wu,Iu,Au,bu,vu,Fo,Uo=y(()=>{"use strict";n();Mo=require("@reduxjs/toolkit");re();_o={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Oo=(0,Mo.createSlice)({name:"dappModalsSlice",initialState:_o,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(L,()=>_o)}}),{setDappModalVisibility:Su,setDappModalHeaderVisibility:wu,setDappModalFooterVisibility:Iu,setDappModalHeaderText:Au,setDappModalFooterText:bu,setDappModalConfig:vu}=Oo.actions,Fo=Oo.reducer});var Bo,js,zs,Te,Ct=y(()=>{"use strict";n();Bo=require("@reduxjs/toolkit");kr();at();Uo();lt();ut();mt();ft();ht();wt();kt();js={["account"]:st,["dappModal"]:Fo,["loginInfo"]:ct,["modals"]:pt,["networkConfig"]:dt,["signedMessageInfo"]:gt,["toasts"]:yt,["transactionsInfo"]:St,["transactions"]:Et},zs=(e={})=>(0,Bo.combineReducers)(x(x({},js),e)),Te=zs});var Go={};pe(Go,{default:()=>ca,sessionStorageReducers:()=>Lr});function ae(e,t=[]){return{key:e,version:1,storage:Vo.default,blacklist:t}}var $,$o,Vo,Ks,Ue,Ys,Zs,Xs,Qs,Js,ea,ta,ra,na,Wo,oa,Lr,ia,sa,aa,ca,Ho=y(()=>{"use strict";n();$=require("redux-persist"),$o=w(require("redux-persist/lib/storage")),Vo=w(require("redux-persist/lib/storage/session"));Ct();ne();at();lt();ut();mt();ft();ht();wt();kt();kr();Ks={persistReducersStorageType:"localStorage"},Ue={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Ys=ae(Ue["account"]),Zs=ae(Ue["loginInfo"]),Xs=ae(Ue["modals"]),Qs=ae(Ue["networkConfig"]),Js={2:e=>S(x({},e),{networkConfig:hr})};ea=ae("sdk-dapp-transactionsInfo"),ta=ae("sdk-dapp-transactions",["transactionsToSign"]),ra=ae("sdk-dapp-toasts"),na=ae("sdk-dapp-signedMessageInfo"),Wo={key:"sdk-dapp-store",version:2,storage:$o.default,whitelist:Object.keys(Ue),migrate:(0,$.createMigrate)(Js,{debug:!1})},oa=S(x({},Wo),{whitelist:[]}),Lr={["toasts"]:(0,$.persistReducer)(ra,yt),["transactions"]:(0,$.persistReducer)(ta,Et),["transactionsInfo"]:(0,$.persistReducer)(ea,St),["signedMessageInfo"]:(0,$.persistReducer)(na,gt)},ia=S(x({},Lr),{["account"]:(0,$.persistReducer)(Ys,st),["loginInfo"]:(0,$.persistReducer)(Zs,ct),["modals"]:(0,$.persistReducer)(Xs,pt),["networkConfig"]:(0,$.persistReducer)(Qs,dt)}),sa=Ks.persistReducersStorageType==="localStorage",aa=sa?(0,$.persistReducer)(Wo,Te(Lr)):(0,$.persistReducer)(oa,Te(ia)),ca=aa});var qo={};pe(qo,{default:()=>la});var la,jo=y(()=>{"use strict";n();Ct();la=Te()});var zo={};pe(zo,{default:()=>ua});var H,pa,ua,Ko=y(()=>{"use strict";n();H=require("redux-persist"),pa=[H.FLUSH,H.REHYDRATE,H.PAUSE,H.PERSIST,H.PURGE,H.REGISTER],ua=pa});var Xo={};pe(Xo,{default:()=>Zo});function Zo(e){return(0,Yo.persistStore)(e)}var Yo,Qo=y(()=>{"use strict";n();Yo=require("redux-persist")});var ec={};pe(ec,{useSignTransactions:()=>Ja});module.exports=De(ec);n();var qe=require("react"),$r=require("@multiversx/sdk-extension-provider");A();n();n();n();n();var Fn=require("@multiversx/sdk-extension-provider"),Un=require("@multiversx/sdk-hw-provider"),Bn=require("@multiversx/sdk-opera-provider"),$n=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),Vn=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Wn=require("@multiversx/sdk-web-wallet-provider");A();B();var et=e=>{switch(e==null?void 0:e.constructor){case Wn.WalletProvider:return"wallet";case $n.WalletConnectProvider:return"walletconnect";case Vn.WalletConnectV2Provider:return"walletconnectv2";case Un.HWProvider:return"ledger";case Fn.ExtensionProvider:return"extension";case Bn.OperaProvider:return"opera";case Je:return"";default:return"extra"}};var te=e=>`Unable to perform ${e}, Provider not initialized`,Je=class{init(){return Promise.resolve(!1)}login(t){throw new Error(te(`login with options: ${t}`))}logout(t){throw new Error(te(`logout with options: ${t}`))}getAddress(){throw new Error(te("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(te(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(te(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(te(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(te(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(te(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(te(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},ar=new Je;var ws=ar;function cr(){return ws||ar}var tt=()=>{let e=cr(),t=et(e);return{provider:e,providerType:t}};n();var wi=require("react"),Ii=require("@multiversx/sdk-web-wallet-provider"),Ai=w(require("qs"));A();n();var oi=require("react"),ve=require("react-redux");n();var Nr=require("@reduxjs/toolkit"),ri=require("react-redux/lib/utils/Subscription");ne();n();var Ro=w(require("lodash.throttle"));A();n();var Co=w(require("lodash.isequal")),Lt=require("reselect");Z();var g=(0,Lt.createSelectorCreator)(Lt.defaultMemoize,Co.default),Fe=(e,t)=>e!=""&&Boolean(t);ne();Tr();nt();Pe();var Gs=[Qe],Nt=!1,Hs=(0,Ro.default)(()=>{Me(_e())},5e3),Po=e=>t=>r=>{var m;if(Gs.includes(r.type))return t(r);let o=e.getState(),i=be.local.getItem(ge.loginExpiresAt);if(!Fe((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 Me(_e());let p=Date.now();return i-p<0&&!Nt?setTimeout(()=>{Nt=!0,e.dispatch(io())},1e3):(Nt&&(Nt=!1),Hs()),t(r)};n();n();function Dt(){return typeof sessionStorage!="undefined"}var Jo=Dt()?(Ho(),De(Go)).default:(jo(),De(qo)).default,ei=Dt()?(Ko(),De(zo)).default:[],ti=Dt()?(Qo(),De(Xo)).default:e=>e;Ct();var M=(0,Nr.configureStore)({reducer:Jo,middleware:e=>e({serializableCheck:{ignoredActions:[...ei,to.type,eo.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Po)}),ni=(0,ri.createSubscription)(M),rd=ti(M),nd=(0,Nr.configureStore)({reducer:Te});var da={store:M,subscription:ni},Dr=(0,oi.createContext)(da),ad=(0,ve.createStoreHook)(Dr),Ee=(0,ve.createDispatchHook)(Dr),R=(0,ve.createSelectorHook)(Dr);n();n();ne();var oe=e=>e.account,Be=g(oe,e=>e.address),$e=g(oe,Be,(e,t)=>t in e.accounts?e.accounts[t]:it),ma=g(oe,$e,(e,t)=>{let i=e,{accounts:r}=i,o=qr(i,["accounts"]);return S(x({},o),{account:t})}),ud=g($e,e=>e.balance),ii=g($e,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),dd=g(oe,e=>e.shard),md=g(oe,e=>e.ledgerAccount),gd=g(oe,e=>e.walletConnectAccount),fd=g(oe,e=>e.isAccountLoading),Td=g(oe,e=>e.accountLoadingError),ga=g(oe,e=>e.websocketEvent);n();var q=e=>e.loginInfo,Sd=g(q,e=>e.loginMethod),fa=g(q,Be,(e,t)=>Fe(e.loginMethod,t)),wd=g(q,e=>e.walletConnectLogin),Id=g(q,e=>e.ledgerLogin),Ad=g(q,e=>e.walletLogin),bd=g(q,e=>e.isLoginSessionInvalid),vd=g(q,e=>e.tokenLogin),Ed=g(q,e=>e.logoutRoute);n();var si=e=>e.modals,Nd=g(si,e=>e.txSubmittedModal),Dd=g(si,e=>e.notificationModal);n();var ye=e=>e.networkConfig,Pd=g(ye,e=>e.chainID),_d=g(ye,e=>e.network.walletConnectBridgeAddress),Md=g(ye,e=>e.network.walletConnectV2RelayAddress),Od=g(ye,e=>e.network.walletConnectV2ProjectId),Fd=g(ye,e=>e.network.walletConnectV2Options),Ud=g(ye,e=>e.network.walletConnectDeepLink),Ve=g(ye,e=>e.network),ai=g(Ve,e=>e.apiAddress),ci=g(Ve,e=>e.explorerAddress),Bd=g(Ve,e=>e.egldLabel);n();var Cr=e=>e.signedMessageInfo,Wd=g(Cr,e=>e.isSigning),Gd=g(Cr,e=>e.errorMessage),Hd=g(Cr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var Rr=e=>e.toasts,zd=g(Rr,e=>e.customToasts),Kd=g(Rr,e=>e.transactionToasts),Yd=g(Rr,e=>e.failTransactionToast);n();ne();var li={errorMessage:wr,successMessage:Ir,processingMessage:Ar},Ta=e=>e.transactionsInfo,Jd=g(Ta,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||li);n();n();var V=require("@multiversx/sdk-core");A();n();function Pr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Rt(e){var i,l,p;let{data:t}=e,r=Pr(t!=null?t:"")?V.TransactionPayload.fromEncoded(t):new V.TransactionPayload(t),o=new V.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new V.Address(e.receiver),sender:new V.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:or,gasPrice:(l=e.gasPrice.valueOf())!=null?l:ir,chainID:e.chainID.valueOf(),version:new V.TransactionVersion((p=e.version)!=null?p:_n)},e.options?{options:new V.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new V.Address(e.sender)),o}n();Er();n();var ha=w(require("bignumber.js"));Z();n();n();n();n();var Sa=require("@multiversx/sdk-core"),wa=w(require("bignumber.js"));B();n();var xa=require("@multiversx/sdk-core");n();n();n();var Aa=require("@multiversx/sdk-core/out");n();A();n();var mi=require("@multiversx/sdk-core");Z();n();function ba(e,t){let r=new URLSearchParams(e),o=Object.fromEntries(r);return{nextUrlParams:new URLSearchParams(x(x({},o),t)).toString(),params:o}}function gi({callbackUrl:e,urlParams:t={}}){let r=e;if(Object.entries(t).length>0){let{search:o,origin:i,pathname:l}=new URL(e),{nextUrlParams:p}=ba(o,t);r=`${i}${l}?${p}`}return r}n();n();n();B();function Pt(e){let r=Object.getPrototypeOf(e).toPlainObject!=null?e:Rt(e);return S(x({},r.toPlainObject()),{hash:r.getHash().hex(),status:"pending"})}n();n();n();n();n();n();n();var _r="accounts";n();n();n();n();C();n();n();C();n();n();n();var Da=w(require("bignumber.js"));A();n();var Na=require("@multiversx/sdk-core"),Mr=w(require("bignumber.js"));A();n();var ka=w(require("bignumber.js"));n();Mr.default.config({ROUNDING_MODE:Mr.default.ROUND_FLOOR});n();n();n();A();n();n();n();n();A();n();A();n();var Ca=require("@multiversx/sdk-core");A();n();var We=require("@multiversx/sdk-core"),Pa=require("@multiversx/sdk-network-providers");A();n();n();var Ra=w(require("bignumber.js"));A();n();A();n();n();n();n();n();A();n();C();var Ma=["reDelegateRewards","claimRewards","unBond"],Oa=["wrapEgld","unwrapEgld"],Fa=["unStake"],Ua=["unDelegate"];n();n();n();A();n();var Va=w(require("bignumber.js"));n();n();n();C();n();var Wa=w(require("bignumber.js"));n();n();n();n();C();n();n();n();var Ha=w(require("linkifyjs"));n();A();n();var qa=w(require("bignumber.js"));n();Z();n();n();B();n();B();n();n();n();C();n();C();n();var ja=w(require("bignumber.js"));A();C();n();C();n();var xi=require("react");Z();n();n();C();n();var za=require("@multiversx/sdk-core/out"),Ka=w(require("bignumber.js"));C();n();C();n();n();B();var Dh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Si=require("react");Z();n();var Za=require("react");C();var Fh=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var Ft=e=>e.transactions,Ge=g(Ft,e=>e.signedTransactions),wx=g(Ft,e=>e.signTransactionsError),Ut=g(Ft,e=>e.signTransactionsCancelMessage),Bt=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Ix=g(Ge,Bt(Eo)),Ax=g(Ge,Bt(It)),bx=g(Ge,Bt(At)),vx=g(Ge,Bt(ko)),$t=g(Ft,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Rt(r)))||[]})}),Ex=g(Ge,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});ne();B();function Vt(e){let{search:t}=window.location,r=R(Ve),o=Ee();(0,wi.useEffect)(()=>{if(t!=null){let i=Ai.default.parse(t.replace("?",""));if(i&&Re in i){let l=String(i[Re]),p=new Ii.WalletProvider(`${r.walletAddress}${Mn}`).getTransactionsFromWalletUrl();if(i.status==="cancelled"){o(fe({sessionId:l,status:"cancelled"})),e(),history.pushState({},document==null?void 0:document.title,"?");return}p.length>0&&(o(fe({sessionId:l,status:"signed",transactions:p.map(d=>Pt(d))})),history.pushState({},document==null?void 0:document.title,"?"))}}},[t])}ne();B();n();n();function bi(e){let t=$t(M.getState()),r=Object.keys(e).length===(t==null?void 0:t.transactions.length);return e&&(e&&r)}n();n();n();var Ei=w(require("axios"));n();n();var vi=e=>{let t=e!=null?e:ai(M.getState());return t.endsWith("/")?t.slice(0,-1):t};function ki(e){return U(this,null,function*(){if(!e)return null;let r=`${vi()}/${_r}/${e}`;try{let{data:o}=yield Ei.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}function Li(e){return U(this,null,function*(){return yield ki(e)})}n();function Ni(e){let t=M.getState(),r=ii(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}var Xa=(e,t)=>t.map((r,o)=>(r.setNonce(e+o),r)),Wt=()=>{let e=R(Be);return t=>U(void 0,null,function*(){let r=yield Li(e),o=Ni(r);return Xa(o,t)})};n();var ke=require("react"),Br=require("@multiversx/sdk-extension-provider");A();n();n();n();var Fr=()=>R($e);n();n();n();n();n();var He=w(require("react"));var kS=(0,He.createContext)({}),LS=M.getState();n();var Ci=w(require("react"));n();var Ur=w(require("react")),Qa=w(require("axios"));n();n();ne();var Ri=()=>{let e=Ee(),{provider:t}=tt(),{nonce:r}=Fr(),[o,i]=(0,ke.useState)(null),[l,p]=(0,ke.useState)(),[d,m]=(0,ke.useState)([]),T=Wt(),f=R($t),h=R(Ut),E=()=>U(void 0,null,function*(){var I;let ie=Boolean(f==null?void 0:f.transactions),Le=(I=f==null?void 0:f.transactions)!=null?I:[];if(ie){let P=yield T(Le);m(P)}p(ie)});(0,ke.useEffect)(()=>{E()},[f,r]);let b=()=>{i(null),e(vt(null))},N=ie=>{b(),O(ie)};Vt(N);function O(ie){var I,P;let Le=t instanceof Br.ExtensionProvider;e(bt()),e(xt(ie)),e(Tt(Ie)),Le&&(b(),(P=(I=Br.ExtensionProvider.getInstance())==null?void 0:I.cancelAction)==null||P.call(I))}return{error:o,canceledTransactionsMessage:h,clearTransactionStatusMessage:b,onAbort:N,setError:i,hasTransactions:l,transactionsToSign:f&&S(x({},f),{transactions:d})}};var Ja=()=>{let e=Ee(),t=(0,qe.useRef)("/"),{provider:r}=tt(),o=et(r),i=(0,qe.useRef)(!1),l=Wt(),p=R(Ut),{transactionsToSign:d,error:m,setError:T,hasTransactions:f,onAbort:h,clearTransactionStatusMessage:E}=Ri();Vt(h);function b(I){var W,D;let P=r instanceof $r.ExtensionProvider;e(bt()),e(xt(I)),e(Tt(Ie)),i.current=!1,P&&(E(),(D=(W=$r.ExtensionProvider.getInstance())==null?void 0:W.cancelAction)==null||D.call(W))}let N=(I,P)=>{o==="walletconnectv2"&&(I=Ce);let D=I.includes(Ce);if(b(P),D){e(vt(Ce));return}T(I)},O=(I,P,W="")=>{let D={[Re]:P},he=`${window.location.origin}${W}`,se=gi({callbackUrl:he,urlParams:D});r.signTransactions(I,{callbackUrl:encodeURIComponent(se)})},ie=()=>U(void 0,null,function*(){var Vr;if(i.current)return;let{sessionId:I,transactions:P,callbackRoute:W,customTransactionInformation:D}=d,{redirectAfterSign:he}=D,se=W||window.location.pathname,Pi=window.location.pathname.includes(se),_i=he&&!Pi;try{if(!(yield(Vr=r==null?void 0:r.init)==null?void 0:Vr.call(r)))return}catch(F){let le=(F==null?void 0:F.message)||F||hn;console.error(le),N(le);return}try{i.current=!0;let F=yield r.signTransactions(P);if(i.current=!1,!bi(F))return;let Mi=Object.values(F).map(Oi=>Pt(Oi)),Wr={sessionId:I,transactions:Mi,status:"signed"};_i&&(Wr.redirectRoute=se),e(fe(Wr))}catch(F){i.current=!1;let le=(F==null?void 0:F.message)||F||yn;console.error(le),e(fe({sessionId:I,status:"cancelled"})),N(le.includes("cancel")?Ce:le,I)}}),Le=()=>U(void 0,null,function*(){if(!d)return;E();let{sessionId:I,transactions:P,callbackRoute:W}=d;if(!r){console.error(xn);return}t.current=W||window.location.pathname;try{let D=o==="wallet",he=yield l(P);if(D)return O(he,I,W);ie()}catch(D){let se=(D==null?void 0:D.message)||Tn;console.error(se),N(se,I),e(fe({sessionId:I,status:"cancelled"})),console.error(se,D)}});return(0,qe.useEffect)(()=>{f&&Le()},[d,f]),{error:m,canceledTransactionsMessage:p,onAbort:h,hasTransactions:f,callbackRoute:t.current,sessionId:d==null?void 0:d.sessionId,transactions:d==null?void 0:d.transactions}};0&&(module.exports={useSignTransactions});
|
|
1
|
+
"use strict";var Fi=Object.create;var Ne=Object.defineProperty,Ui=Object.defineProperties,Bi=Object.getOwnPropertyDescriptor,$i=Object.getOwnPropertyDescriptors,Vi=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,Wi=Object.getPrototypeOf,Gt=Object.prototype.hasOwnProperty,Hr=Object.prototype.propertyIsEnumerable;var Gr=(e,t,r)=>t in e?Ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Gt.call(t,r)&&Gr(e,r,t[r]);if(je)for(var r of je(t))Hr.call(t,r)&&Gr(e,r,t[r]);return e},S=(e,t)=>Ui(e,$i(t));var qr=(e,t)=>{var r={};for(var o in e)Gt.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&&Hr.call(e,o)&&(r[o]=e[o]);return r};var y=(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)Ne(e,r,{get:t[r],enumerable:!0})},jr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Vi(t))!Gt.call(e,i)&&i!==r&&Ne(e,i,{get:()=>t[i],enumerable:!(o=Bi(t,i))||o.enumerable});return e};var w=(e,t,r)=>(r=e!=null?Fi(Wi(e)):{},jr(t||!e||!e.__esModule?Ne(r,"default",{value:e,enumerable:!0}):r,e)),De=e=>jr(Ne({},"__esModule",{value:!0}),e);var U=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(T){i(T)}},p=m=>{try{d(r.throw(m))}catch(T){i(T)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Yr=ze(Ke=>{"use strict";n();Ke.byteLength=Hi;Ke.toByteArray=ji;Ke.fromByteArray=Yi;var j=[],G=[],Gi=typeof Uint8Array!="undefined"?Uint8Array:Array,Ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ue=0,zr=Ht.length;ue<zr;++ue)j[ue]=Ht[ue],G[Ht.charCodeAt(ue)]=ue;var ue,zr;G["-".charCodeAt(0)]=62;G["_".charCodeAt(0)]=63;function Kr(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 Hi(e){var t=Kr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function qi(e,t,r){return(t+r)*3/4-r}function ji(e){var t,r=Kr(e),o=r[0],i=r[1],l=new Gi(qi(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=G[e.charCodeAt(m)]<<18|G[e.charCodeAt(m+1)]<<12|G[e.charCodeAt(m+2)]<<6|G[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=G[e.charCodeAt(m)]<<2|G[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=G[e.charCodeAt(m)]<<10|G[e.charCodeAt(m+1)]<<4|G[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function zi(e){return j[e>>18&63]+j[e>>12&63]+j[e>>6&63]+j[e&63]}function Ki(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(zi(o));return i.join("")}function Yi(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(Ki(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 Zr=ze(qt=>{n();qt.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,T=m>>1,f=-7,h=r?i-1:0,E=r?-1:1,v=e[t+h];for(h+=E,l=v&(1<<-f)-1,v>>=-f,f+=d;f>0;l=l*256+e[t+h],h+=E,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+h],h+=E,f-=8);if(l===0)l=1-T;else{if(l===m)return p?NaN:(v?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-T}return(v?-1:1)*p*Math.pow(2,l-o)};qt.write=function(e,t,r,o,i,l){var p,d,m,T=l*8-i-1,f=(1<<T)-1,h=f>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=o?0:l-1,N=o?1:-1,O=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+h>=1?t+=E/m:t+=E*Math.pow(2,1-h),t*m>=2&&(p++,m/=2),p+h>=f?(d=0,p=f):p+h>=1?(d=(t*m-1)*Math.pow(2,i),p=p+h):(d=t*Math.pow(2,h-1)*Math.pow(2,i),p=0));i>=8;e[r+v]=d&255,v+=N,d/=256,i-=8);for(p=p<<i|d,T+=i;T>0;e[r+v]=p&255,v+=N,p/=256,T-=8);e[r+v-N]|=O*128}});var pn=ze(Se=>{"use strict";n();var jt=Yr(),xe=Zr(),Xr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Se.Buffer=u;Se.SlowBuffer=ts;Se.INSPECT_MAX_BYTES=50;var Ye=2147483647;Se.kMaxLength=Ye;u.TYPED_ARRAY_SUPPORT=Zi();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Zi(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function Q(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 Zt(e)}return en(e,t,r)}u.poolSize=8192;function en(e,t,r){if(typeof e=="string")return Qi(e,t);if(ArrayBuffer.isView(e))return Ji(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 Kt(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=es(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 en(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function tn(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 Xi(e,t,r){return tn(e),e<=0?Q(e):t!==void 0?typeof r=="string"?Q(e).fill(t,r):Q(e).fill(t):Q(e)}u.alloc=function(e,t,r){return Xi(e,t,r)};function Zt(e){return tn(e),Q(e<0?0:Xt(e)|0)}u.allocUnsafe=function(e){return Zt(e)};u.allocUnsafeSlow=function(e){return Zt(e)};function Qi(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=rn(e,t)|0,o=Q(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function zt(e){for(var t=e.length<0?0:Xt(e.length)|0,r=Q(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function Ji(e){if(z(e,Uint8Array)){var t=new Uint8Array(e);return Kt(t.buffer,t.byteOffset,t.byteLength)}return zt(e)}function Kt(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 es(e){if(u.isBuffer(e)){var t=Xt(e.length)|0,r=Q(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Qt(e.length)?Q(0):zt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return zt(e.data)}function Xt(e){if(e>=Ye)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ye.toString(16)+" bytes");return e|0}function ts(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 rn(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 Yt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ln(e).length;default:if(i)return o?-1:Yt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=rn;function rs(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 ds(this,t,r);case"utf8":case"utf-8":return on(this,t,r);case"ascii":return ps(this,t,r);case"latin1":case"binary":return us(this,t,r);case"base64":return cs(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ms(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?on(this,0,t):rs.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=Se.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Xr&&(u.prototype[Xr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,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),T=this.slice(i,l),f=t.slice(r,o),h=0;h<m;++h)if(T[h]!==f[h]){p=T[h],d=f[h];break}return p<d?-1:d<p?1:0};function nn(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,Qt(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:Qr(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):Qr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Qr(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(v,N){return l===1?v[N]:v.readUInt16BE(N*l)}var T;if(i){var f=-1;for(T=r;T<p;T++)if(m(e,T)===m(t,f===-1?0:T-f)){if(f===-1&&(f=T),T-f+1===d)return f*l}else f!==-1&&(T-=T-f),f=-1}else for(r+d>p&&(r=p-d),T=r;T>=0;T--){for(var h=!0,E=0;E<d;E++)if(m(e,T+E)!==m(t,E)){h=!1;break}if(h)return T}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return nn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return nn(this,t,r,o,!1)};function ns(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(Qt(d))return p;e[r+p]=d}return p}function os(e,t,r,o){return Ze(Yt(t,e.length-r),e,r,o)}function is(e,t,r,o){return Ze(Ts(t),e,r,o)}function ss(e,t,r,o){return Ze(ln(t),e,r,o)}function as(e,t,r,o){return Ze(ys(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 ns(this,t,r,o);case"utf8":case"utf-8":return os(this,t,r,o);case"ascii":case"latin1":case"binary":return is(this,t,r,o);case"base64":return ss(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return as(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 cs(e,t,r){return t===0&&r===e.length?jt.fromByteArray(e):jt.fromByteArray(e.slice(t,r))}function on(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,T,f,h;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(h=(l&31)<<6|m&63,h>127&&(p=h));break;case 3:m=e[i+1],T=e[i+2],(m&192)===128&&(T&192)===128&&(h=(l&15)<<12|(m&63)<<6|T&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:m=e[i+1],T=e[i+2],f=e[i+3],(m&192)===128&&(T&192)===128&&(f&192)===128&&(h=(l&15)<<18|(m&63)<<12|(T&63)<<6|f&63,h>65535&&h<1114112&&(p=h))}}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 ls(o)}var Jr=4096;function ls(e){var t=e.length;if(t<=Jr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Jr));return r}function ps(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 us(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 ds(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+=hs[e[l]];return i}function ms(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 k(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||k(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||k(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||k(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||k(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||k(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||k(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||k(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||k(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||k(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||k(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||k(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||k(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||k(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||k(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||k(t,4,this.length),xe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||k(t,4,this.length),xe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||k(t,8,this.length),xe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||k(t,8,this.length),xe.read(this,t,!1,52,8)};function _(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;_(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;_(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||_(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);_(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);_(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||_(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function sn(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 an(e,t,r,o,i){return t=+t,r=r>>>0,i||sn(e,t,r,4,34028234663852886e22,-34028234663852886e22),xe.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return an(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return an(this,t,r,!1,o)};function cn(e,t,r,o,i){return t=+t,r=r>>>0,i||sn(e,t,r,8,17976931348623157e292,-17976931348623157e292),xe.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return cn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return cn(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 gs=/[^+/0-9A-Za-z-_]/g;function fs(e){if(e=e.split("=")[0],e=e.trim().replace(gs,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Yt(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 Ts(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ys(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 ln(e){return jt.toByteArray(fs(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 Qt(e){return e!==e}var hs=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 fn=ze((ic,gn)=>{n();var b=gn.exports={},K,Y;function Jt(){throw new Error("setTimeout has not been defined")}function er(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?K=setTimeout:K=Jt}catch(e){K=Jt}try{typeof clearTimeout=="function"?Y=clearTimeout:Y=er}catch(e){Y=er}})();function un(e){if(K===setTimeout)return setTimeout(e,0);if((K===Jt||!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 xs(e){if(Y===clearTimeout)return clearTimeout(e);if((Y===er||!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 J=[],we=!1,me,Xe=-1;function Ss(){!we||!me||(we=!1,me.length?J=me.concat(J):Xe=-1,J.length&&dn())}function dn(){if(!we){var e=un(Ss);we=!0;for(var t=J.length;t;){for(me=J,J=[];++Xe<t;)me&&me[Xe].run();Xe=-1,t=J.length}me=null,we=!1,xs(e)}}b.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];J.push(new mn(e,t)),J.length===1&&!we&&un(dn)};function mn(e,t){this.fun=e,this.array=t}mn.prototype.run=function(){this.fun.apply(null,this.array)};b.title="browser";b.browser=!0;b.env={};b.argv=[];b.version="";b.versions={};function ee(){}b.on=ee;b.addListener=ee;b.once=ee;b.off=ee;b.removeListener=ee;b.removeAllListeners=ee;b.emit=ee;b.prependListener=ee;b.prependOnceListener=ee;b.listeners=function(e){return[]};b.binding=function(e){throw new Error("process.binding is not supported")};b.cwd=function(){return"/"};b.chdir=function(e){throw new Error("process.chdir is not supported")};b.umask=function(){return 0}});var s,a,sc,n=y(()=>{s=w(pn()),a=w(fn()),sc=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 Tn,Re,yn,hn,xn,Sn=y(()=>{"use strict";n();Tn="error when signing",Re="Transaction canceled",yn="error signing transaction",hn="provider not initialized",xn="You need a signer/valid signer to send a transaction,use either WalletProvider, LedgerProvider or WalletConnect"});var wn=y(()=>{"use strict";n()});var In=y(()=>{"use strict";n()});var An=y(()=>{"use strict";n()});var B=y(()=>{"use strict";n()});var vn=y(()=>{"use strict";n()});var bn=y(()=>{"use strict";n()});var R=y(()=>{"use strict";n()});var En=y(()=>{"use strict";n()});var kn=y(()=>{"use strict";n()});var Z=y(()=>{"use strict";n();wn();In();An();B();vn();bn();R();En();kn()});var tr,Ln,bc,Nn,Ec,Dn,kc,Lc,Nc,Rn=y(()=>{"use strict";n();Z();tr={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:Ln,egldLabel:bc}=tr["devnet"],{chainId:Nn,egldLabel:Ec}=tr["testnet"],{chainId:Dn,egldLabel:kc}=tr["mainnet"],Lc={["devnet"]:Ln,["testnet"]:Nn,["mainnet"]:Dn},Nc={[Ln]:"devnet",[Nn]:"testnet",[Dn]:"mainnet"}});var rr=y(()=>{"use strict";n()});var Cn=y(()=>{"use strict";n()});var Ie,nr=y(()=>{"use strict";n();Ie="transaction-status-toast-id"});var X,Pn=y(()=>{"use strict";n();X=require("@multiversx/sdk-web-wallet-provider")});var or,ir,_n,Mn,Ce,Qe,On,Ae,A=y(()=>{"use strict";n();Sn();Rn();rr();Cn();nr();Pn();or=5e4,ir=1e9,_n=1,Mn="/dapp/init",Ce="signSession",Qe="logout",On="login",Ae="0"});var rt,lr=y(()=>{"use strict";n();rt=()=>Date.now()/1e3});var Gn=y(()=>{"use strict";n()});var Hn=y(()=>{"use strict";n()});var qn=y(()=>{"use strict";n();lr();Gn();Hn()});var ur={};pe(ur,{getItem:()=>As,localStorageKeys:()=>ge,removeItem:()=>vs,setItem:()=>Is});var ge,pr,Is,As,vs,Pe=y(()=>{"use strict";n();qn();ge={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},pr=typeof localStorage!="undefined",Is=({key:e,data:t,expires:r})=>{!pr||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},As=e=>{if(!pr)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:rt()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},vs=e=>{!pr||localStorage.removeItem(String(e))}});var dr={};pe(dr,{clear:()=>Yn,getItem:()=>zn,removeItem:()=>Kn,setItem:()=>jn,storage:()=>bs});var jn,zn,Kn,Yn,bs,Zn=y(()=>{"use strict";n();jn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},zn=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},Kn=e=>sessionStorage.removeItem(String(e)),Yn=()=>sessionStorage.clear(),bs={setItem:jn,getItem:zn,removeItem:Kn,clear:Yn}});var ve,nt=y(()=>{"use strict";n();Pe();Zn();ve={session:dr,local:ur}});var mr,L,ot,re=y(()=>{"use strict";n();mr=require("@reduxjs/toolkit");A();L=(0,mr.createAction)(Qe),ot=(0,mr.createAction)(On,e=>({payload:e}))});var fr,Xn,Qn,it,gr,Jn,eo,yl,to,hl,xl,Sl,wl,Il,Al,vl,st,at=y(()=>{"use strict";n();fr=require("@multiversx/sdk-core"),Xn=require("@reduxjs/toolkit"),Qn=require("redux-persist");A();nt();Pe();re();it={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Ae},gr={address:"",websocketEvent:null,accounts:{"":it},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Jn=(0,Xn.createSlice)({name:"accountInfoSlice",initialState:gr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new fr.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:it},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(L,()=>(ve.local.removeItem(ge.loginExpiresAt),gr)),e.addCase(ot,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new fr.Address(o).hex()}),e.addCase(Qn.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.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:gr.accounts,t.publicKey=d})}}),{setAccount:eo,setAddress:yl,setAccountNonce:to,setAccountShard:hl,setLedgerAccount:xl,updateLedgerAccount:Sl,setWalletConnectAccount:wl,setIsAccountLoading:Il,setAccountLoadingError:Al,setWebsocketEvent:vl}=Jn.actions,st=Jn.reducer});function _e(){return new Date().setHours(new Date().getHours()+24)}function Me(e){ve.local.setItem({key:ge.loginExpiresAt,data:e,expires:e})}var Tr=y(()=>{"use strict";n();nt();Pe()});var no,ro,oo,_l,Ml,Ol,Fl,Ul,Bl,io,$l,ct,lt=y(()=>{"use strict";n();no=require("@reduxjs/toolkit");Tr();B();re();ro={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},oo=(0,no.createSlice)({name:"loginInfoSlice",initialState:ro,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(L,()=>ro),e.addCase(ot,(t,r)=>{t.loginMethod=r.payload.loginMethod,Me(_e())})}}),{setLoginMethod:_l,setWalletConnectLogin:Ml,setLedgerLogin:Ol,setTokenLogin:Fl,setTokenLoginSignature:Ul,setWalletLogin:Bl,invalidateLoginSession:io,setLogoutRoute:$l}=oo.actions,ct=oo.reducer});var ao,so,co,Hl,ql,jl,zl,pt,ut=y(()=>{"use strict";n();ao=require("@reduxjs/toolkit");re();so={},co=(0,ao.createSlice)({name:"modalsSlice",initialState:so,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(L,()=>so)}}),{setTxSubmittedModal:Hl,setNotificationModal:ql,clearTxSubmittedModal:jl,clearNotificationModal:zl}=co.actions,pt=co.reducer});var lo=y(()=>{"use strict";n()});var po=y(()=>{"use strict";n();lo()});function yr(e){return e[Math.floor(Math.random()*e.length)]}var uo=y(()=>{"use strict";n()});var mo=y(()=>{"use strict";n();rr()});var go=y(()=>{"use strict";n();po();uo();mo()});var fo,To,hr,Es,yo,lp,pp,dt,mt=y(()=>{"use strict";n();fo=require("@reduxjs/toolkit"),To=w(require("lodash.omit"));go();hr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Es={network:hr,chainID:"-1"},yo=(0,fo.createSlice)({name:"appConfig",initialState:Es,reducers:{initializeNetworkConfig:(e,t)=>{let r=yr(t.payload.walletConnectBridgeAddresses),o=yr(t.payload.walletConnectV2RelayAddresses),i=(0,To.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:lp,setChainID:pp}=yo.actions,dt=yo.reducer});var ho,xr,xo,Tp,yp,hp,gt,ft=y(()=>{"use strict";n();ho=require("@reduxjs/toolkit");Z();re();xr={isSigning:!1,signedSessions:{}},xo=(0,ho.createSlice)({name:"signedMessageInfoSliceState",initialState:xr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;return S(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:o.status==="pending",signedSessions:S(x({},e.signedSessions),{[r]:o})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>xr},extraReducers:e=>{e.addCase(L,()=>xr)}}),{setSignSession:Tp,clearSignedMessageInfo:yp,setSignSessionState:hp}=xo.actions,gt=xo.reducer});var wo,Io,So,Ao,Ep,Tt,kp,Lp,Np,Dp,yt,ht=y(()=>{"use strict";n();wo=require("@reduxjs/toolkit"),Io=require("redux-persist");nr();Z();lr();re();So={customToasts:[],transactionToasts:[],failTransactionToast:null},Ao=(0,wo.createSlice)({name:"toastsSlice",initialState:So,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(S(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:rt(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=S(x({},t.payload),{toastId:Ie})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(L,()=>So),e.addCase(Io.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:Ep,removeCustomToast:Tt,addTransactionToast:kp,removeTransactionToast:Lp,addFailTransactionToast:Np,removeFailTransactionToast:Dp}=Ao.actions,yt=Ao.reducer});var vo,wr,Ir,Ar,ks,Sr,bo,_p,Mp,xt,St,wt=y(()=>{"use strict";n();vo=require("@reduxjs/toolkit");re();wr="Transaction failed",Ir="Transaction successful",Ar="Processing transaction",ks="Transaction submitted",Sr={},bo=(0,vo.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)||Ar,submittedMessage:(o==null?void 0:o.submittedMessage)||ks,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Sr},extraReducers:e=>{e.addCase(L,()=>Sr)}}),{clearTransactionsInfo:_p,setTransactionsDisplayInfo:Mp,clearTransactionsInfoForSessionId:xt}=bo.actions,St=bo.reducer});function Eo(e){return e!=null&&(Ms(e)||Bs(e))}function It(e){return e!=null&&(Os(e)||$s(e))}function At(e){return e!=null&&(Fs(e)||Vs(e))}function ko(e){return e!=null&&Us(e)}function Ms(e){return e!=null&&Ls.includes(e)}function Os(e){return e!=null&&Ns.includes(e)}function Fs(e){return e!=null&&Ds.includes(e)}function Us(e){return e!=null&&Rs.includes(e)}function Bs(e){return e!=null&&Cs.includes(e)}function $s(e){return e!=null&&Ps.includes(e)}function Vs(e){return e!=null&&_s.includes(e)}var Ls,Ns,Ds,Rs,Cs,Ps,_s,Er=y(()=>{"use strict";n();B();Ls=["sent"],Ns=["success"],Ds=["fail","cancelled","timedOut"],Rs=["timedOut"],Cs=["pending"],Ps=["success"],_s=["fail","invalid"]});var Lo,No,Oe,Ws,Do,Hp,qp,jp,vt,zp,Kp,Yp,Zp,bt,fe,Et,kt=y(()=>{"use strict";n();Lo=require("@reduxjs/toolkit"),No=require("redux-persist");B();Er();re();Oe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ws={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Do=(0,Lo.createSlice)({name:"transactionsSlice",initialState:Oe,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,T;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p}=t.payload,d=((m=e.customTransactionInformationForSessionId)==null?void 0:m[r])||Ws;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:d},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=Oe.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions: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,T,f,h,E;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(O=>O.hash===l?S(x({},O),{status:o,errorMessage:i}):O);let v=(f=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:f.every(O=>It(O.status)),N=(E=(h=e.signedTransactions[r])==null?void 0:h.transactions)==null?void 0:E.every(O=>At(O.status));v&&(e.signedTransactions[r].status="success"),N&&(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=Oe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Oe.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(L,()=>Oe),e.addCase(No.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,T])=>{let f=new Date(m),h=new Date;return h.setHours(h.getHours()+5),h-f>0||(d[m]=T),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Hp,updateSignedTransactions:qp,setTransactionsToSign:jp,clearAllTransactionsToSign:vt,clearAllSignedTransactions:zp,clearSignedTransaction:Kp,clearTransactionToSign:Yp,setSignTransactionsError:Zp,setSignTransactionsCancelMessage:bt,moveTransactionsToSignedState:fe}=Do.actions,Et=Do.reducer});var ne=y(()=>{"use strict";n();at();lt();ut();mt();ft();ht();wt();kt()});var kr=y(()=>{"use strict";n()});var Mo,_o,Oo,Su,wu,Iu,Au,vu,bu,Fo,Uo=y(()=>{"use strict";n();Mo=require("@reduxjs/toolkit");re();_o={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Oo=(0,Mo.createSlice)({name:"dappModalsSlice",initialState:_o,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(L,()=>_o)}}),{setDappModalVisibility:Su,setDappModalHeaderVisibility:wu,setDappModalFooterVisibility:Iu,setDappModalHeaderText:Au,setDappModalFooterText:vu,setDappModalConfig:bu}=Oo.actions,Fo=Oo.reducer});var Bo,js,zs,Te,Rt=y(()=>{"use strict";n();Bo=require("@reduxjs/toolkit");kr();at();Uo();lt();ut();mt();ft();ht();wt();kt();js={["account"]:st,["dappModal"]:Fo,["loginInfo"]:ct,["modals"]:pt,["networkConfig"]:dt,["signedMessageInfo"]:gt,["toasts"]:yt,["transactionsInfo"]:St,["transactions"]:Et},zs=(e={})=>(0,Bo.combineReducers)(x(x({},js),e)),Te=zs});var Go={};pe(Go,{default:()=>ca,sessionStorageReducers:()=>Lr});function ae(e,t=[]){return{key:e,version:1,storage:Vo.default,blacklist:t}}var $,$o,Vo,Ks,Ue,Ys,Zs,Xs,Qs,Js,ea,ta,ra,na,Wo,oa,Lr,ia,sa,aa,ca,Ho=y(()=>{"use strict";n();$=require("redux-persist"),$o=w(require("redux-persist/lib/storage")),Vo=w(require("redux-persist/lib/storage/session"));Rt();ne();at();lt();ut();mt();ft();ht();wt();kt();kr();Ks={persistReducersStorageType:"localStorage"},Ue={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Ys=ae(Ue["account"]),Zs=ae(Ue["loginInfo"]),Xs=ae(Ue["modals"]),Qs=ae(Ue["networkConfig"]),Js={2:e=>S(x({},e),{networkConfig:hr})};ea=ae("sdk-dapp-transactionsInfo"),ta=ae("sdk-dapp-transactions",["transactionsToSign"]),ra=ae("sdk-dapp-toasts"),na=ae("sdk-dapp-signedMessageInfo"),Wo={key:"sdk-dapp-store",version:2,storage:$o.default,whitelist:Object.keys(Ue),migrate:(0,$.createMigrate)(Js,{debug:!1})},oa=S(x({},Wo),{whitelist:[]}),Lr={["toasts"]:(0,$.persistReducer)(ra,yt),["transactions"]:(0,$.persistReducer)(ta,Et),["transactionsInfo"]:(0,$.persistReducer)(ea,St),["signedMessageInfo"]:(0,$.persistReducer)(na,gt)},ia=S(x({},Lr),{["account"]:(0,$.persistReducer)(Ys,st),["loginInfo"]:(0,$.persistReducer)(Zs,ct),["modals"]:(0,$.persistReducer)(Xs,pt),["networkConfig"]:(0,$.persistReducer)(Qs,dt)}),sa=Ks.persistReducersStorageType==="localStorage",aa=sa?(0,$.persistReducer)(Wo,Te(Lr)):(0,$.persistReducer)(oa,Te(ia)),ca=aa});var qo={};pe(qo,{default:()=>la});var la,jo=y(()=>{"use strict";n();Rt();la=Te()});var zo={};pe(zo,{default:()=>ua});var H,pa,ua,Ko=y(()=>{"use strict";n();H=require("redux-persist"),pa=[H.FLUSH,H.REHYDRATE,H.PAUSE,H.PERSIST,H.PURGE,H.REGISTER],ua=pa});var Xo={};pe(Xo,{default:()=>Zo});function Zo(e){return(0,Yo.persistStore)(e)}var Yo,Qo=y(()=>{"use strict";n();Yo=require("redux-persist")});var ec={};pe(ec,{useSignTransactions:()=>Ja});module.exports=De(ec);n();var qe=require("react"),$r=require("@multiversx/sdk-extension-provider");A();n();n();n();n();var Fn=require("@multiversx/sdk-extension-provider"),Un=require("@multiversx/sdk-hw-provider"),Bn=require("@multiversx/sdk-opera-provider"),$n=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),Vn=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Wn=require("@multiversx/sdk-web-wallet-provider");A();B();var et=e=>{switch(e==null?void 0:e.constructor){case Wn.WalletProvider:return"wallet";case $n.WalletConnectProvider:return"walletconnect";case Vn.WalletConnectV2Provider:return"walletconnectv2";case Un.HWProvider:return"ledger";case Fn.ExtensionProvider:return"extension";case Bn.OperaProvider:return"opera";case Je:return"";default:return"extra"}};var te=e=>`Unable to perform ${e}, Provider not initialized`,Je=class{init(){return Promise.resolve(!1)}login(t){throw new Error(te(`login with options: ${t}`))}logout(t){throw new Error(te(`logout with options: ${t}`))}getAddress(){throw new Error(te("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(te(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(te(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(te(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(te(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(te(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(te(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},ar=new Je;var ws=ar;function cr(){return ws||ar}var tt=()=>{let e=cr(),t=et(e);return{provider:e,providerType:t}};n();var wi=require("react"),Ii=require("@multiversx/sdk-web-wallet-provider"),Ai=w(require("qs"));A();n();var oi=require("react"),be=require("react-redux");n();var Nr=require("@reduxjs/toolkit"),ri=require("react-redux/lib/utils/Subscription");ne();n();var Co=w(require("lodash.throttle"));A();n();var Ro=w(require("lodash.isequal")),Lt=require("reselect");Z();var g=(0,Lt.createSelectorCreator)(Lt.defaultMemoize,Ro.default),Fe=(e,t)=>e!=""&&Boolean(t);ne();Tr();nt();Pe();var Gs=[Qe],Nt=!1,Hs=(0,Co.default)(()=>{Me(_e())},5e3),Po=e=>t=>r=>{var m;if(Gs.includes(r.type))return t(r);let o=e.getState(),i=ve.local.getItem(ge.loginExpiresAt);if(!Fe((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 Me(_e());let p=Date.now();return i-p<0&&!Nt?setTimeout(()=>{Nt=!0,e.dispatch(io())},1e3):(Nt&&(Nt=!1),Hs()),t(r)};n();n();function Dt(){return typeof sessionStorage!="undefined"}var Jo=Dt()?(Ho(),De(Go)).default:(jo(),De(qo)).default,ei=Dt()?(Ko(),De(zo)).default:[],ti=Dt()?(Qo(),De(Xo)).default:e=>e;Rt();var M=(0,Nr.configureStore)({reducer:Jo,middleware:e=>e({serializableCheck:{ignoredActions:[...ei,to.type,eo.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Po)}),ni=(0,ri.createSubscription)(M),rd=ti(M),nd=(0,Nr.configureStore)({reducer:Te});var da={store:M,subscription:ni},Dr=(0,oi.createContext)(da),ad=(0,be.createStoreHook)(Dr),Ee=(0,be.createDispatchHook)(Dr),C=(0,be.createSelectorHook)(Dr);n();n();ne();var oe=e=>e.account,Be=g(oe,e=>e.address),$e=g(oe,Be,(e,t)=>t in e.accounts?e.accounts[t]:it),ma=g(oe,$e,(e,t)=>{let i=e,{accounts:r}=i,o=qr(i,["accounts"]);return S(x({},o),{account:t})}),ud=g($e,e=>e.balance),ii=g($e,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),dd=g(oe,e=>e.shard),md=g(oe,e=>e.ledgerAccount),gd=g(oe,e=>e.walletConnectAccount),fd=g(oe,e=>e.isAccountLoading),Td=g(oe,e=>e.accountLoadingError),ga=g(oe,e=>e.websocketEvent);n();var q=e=>e.loginInfo,Sd=g(q,e=>e.loginMethod),fa=g(q,Be,(e,t)=>Fe(e.loginMethod,t)),wd=g(q,e=>e.walletConnectLogin),Id=g(q,e=>e.ledgerLogin),Ad=g(q,e=>e.walletLogin),vd=g(q,e=>e.isLoginSessionInvalid),bd=g(q,e=>e.tokenLogin),Ed=g(q,e=>e.logoutRoute);n();var si=e=>e.modals,Nd=g(si,e=>e.txSubmittedModal),Dd=g(si,e=>e.notificationModal);n();var ye=e=>e.networkConfig,Pd=g(ye,e=>e.chainID),_d=g(ye,e=>e.network.walletConnectBridgeAddress),Md=g(ye,e=>e.network.walletConnectV2RelayAddress),Od=g(ye,e=>e.network.walletConnectV2ProjectId),Fd=g(ye,e=>e.network.walletConnectV2Options),Ud=g(ye,e=>e.network.walletConnectDeepLink),Ve=g(ye,e=>e.network),ai=g(Ve,e=>e.apiAddress),ci=g(Ve,e=>e.explorerAddress),Bd=g(Ve,e=>e.egldLabel);n();var Rr=e=>e.signedMessageInfo,Wd=g(Rr,e=>e.isSigning),Gd=g(Rr,e=>e.errorMessage),Hd=g(Rr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});n();var Cr=e=>e.toasts,zd=g(Cr,e=>e.customToasts),Kd=g(Cr,e=>e.transactionToasts),Yd=g(Cr,e=>e.failTransactionToast);n();ne();var li={errorMessage:wr,successMessage:Ir,processingMessage:Ar},Ta=e=>e.transactionsInfo,Jd=g(Ta,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||li);n();n();var V=require("@multiversx/sdk-core");A();n();function Pr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Ct(e){var i,l,p;let{data:t}=e,r=Pr(t!=null?t:"")?V.TransactionPayload.fromEncoded(t):new V.TransactionPayload(t),o=new V.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new V.Address(e.receiver),sender:new V.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:or,gasPrice:(l=e.gasPrice.valueOf())!=null?l:ir,chainID:e.chainID.valueOf(),version:new V.TransactionVersion((p=e.version)!=null?p:_n)},e.options?{options:new V.TransactionOptions(e.options)}:{}));return o.applySignature({hex:()=>e.signature||""},new V.Address(e.sender)),o}n();Er();n();var ha=w(require("bignumber.js"));Z();n();n();n();n();var Sa=require("@multiversx/sdk-core"),wa=w(require("bignumber.js"));B();n();var xa=require("@multiversx/sdk-core");n();n();n();var Aa=require("@multiversx/sdk-core/out");n();A();n();var mi=require("@multiversx/sdk-core");Z();n();function va(e,t){let r=new URLSearchParams(e),o=Object.fromEntries(r);return{nextUrlParams:new URLSearchParams(x(x({},o),t)).toString(),params:o}}function gi({callbackUrl:e,urlParams:t={}}){let r=e;if(Object.entries(t).length>0){let{search:o,origin:i,pathname:l}=new URL(e),{nextUrlParams:p}=va(o,t);r=`${i}${l}?${p}`}return r}n();n();n();B();function Pt(e){let r=Object.getPrototypeOf(e).toPlainObject!=null?e:Ct(e);return S(x({},r.toPlainObject()),{hash:r.getHash().hex(),status:"pending"})}n();n();n();n();n();n();n();var _r="accounts";n();n();n();n();R();n();n();R();n();n();n();var Da=w(require("bignumber.js"));A();n();var Na=require("@multiversx/sdk-core"),Mr=w(require("bignumber.js"));A();n();var ka=w(require("bignumber.js"));n();Mr.default.config({ROUNDING_MODE:Mr.default.ROUND_FLOOR});n();n();n();A();n();n();n();n();A();n();A();n();var Ra=require("@multiversx/sdk-core");A();n();var We=require("@multiversx/sdk-core"),Pa=require("@multiversx/sdk-network-providers");A();n();n();var Ca=w(require("bignumber.js"));A();n();A();n();n();n();n();n();A();n();R();var Ma=["reDelegateRewards","claimRewards","unBond"],Oa=["wrapEgld","unwrapEgld"],Fa=["unStake"],Ua=["unDelegate"];n();n();n();A();n();var Va=w(require("bignumber.js"));n();n();n();R();n();var Wa=w(require("bignumber.js"));n();n();n();n();R();n();n();n();var Ha=w(require("linkifyjs"));n();A();n();var qa=w(require("bignumber.js"));n();Z();n();n();B();n();B();n();n();n();R();n();R();n();var ja=w(require("bignumber.js"));A();R();n();R();n();var xi=require("react");Z();n();n();R();n();var za=require("@multiversx/sdk-core/out"),Ka=w(require("bignumber.js"));R();n();R();n();n();B();var Dh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Si=require("react");Z();n();var Za=require("react");R();var Fh=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var Ft=e=>e.transactions,Ge=g(Ft,e=>e.signedTransactions),wx=g(Ft,e=>e.signTransactionsError),Ut=g(Ft,e=>e.signTransactionsCancelMessage),Bt=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Ix=g(Ge,Bt(Eo)),Ax=g(Ge,Bt(It)),vx=g(Ge,Bt(At)),bx=g(Ge,Bt(ko)),$t=g(Ft,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Ct(r)))||[]})}),Ex=g(Ge,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});ne();B();function Vt(e){let{search:t}=window.location,r=C(Ve),o=Ee();(0,wi.useEffect)(()=>{if(t!=null){let i=Ai.default.parse(t.replace("?",""));if(i&&Ce in i){let l=String(i[Ce]),p=new Ii.WalletProvider(`${r.walletAddress}${Mn}`).getTransactionsFromWalletUrl();if(i.status==="cancelled"){o(fe({sessionId:l,status:"cancelled"})),e(),history.pushState({},document==null?void 0:document.title,"?");return}p.length>0&&(o(fe({sessionId:l,status:"signed",transactions:p.map(d=>Pt(d))})),history.pushState({},document==null?void 0:document.title,"?"))}}},[t])}ne();B();n();n();function vi(e){let t=$t(M.getState()),r=Object.keys(e).length===(t==null?void 0:t.transactions.length);return e&&(e&&r)}n();n();n();var Ei=w(require("axios"));n();n();var bi=e=>{let t=e!=null?e:ai(M.getState());return t.endsWith("/")?t.slice(0,-1):t};function ki(e){return U(this,null,function*(){if(!e)return null;let r=`${bi()}/${_r}/${e}`;try{let{data:o}=yield Ei.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}function Li(e){return U(this,null,function*(){return yield ki(e)})}n();function Ni(e){let t=M.getState(),r=ii(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}var Xa=(e,t)=>t.map((r,o)=>(r.setNonce(e+o),r)),Wt=()=>{let e=C(Be);return t=>U(void 0,null,function*(){let r=yield Li(e),o=Ni(r);return Xa(o,t)})};n();var ke=require("react"),Br=require("@multiversx/sdk-extension-provider");A();n();n();n();var Fr=()=>C($e);n();n();n();n();n();var He=w(require("react"));var kS=(0,He.createContext)({}),LS=M.getState();n();var Ri=w(require("react"));n();var Ur=w(require("react")),Qa=w(require("axios"));n();n();ne();var Ci=()=>{let e=Ee(),{provider:t}=tt(),{nonce:r}=Fr(),[o,i]=(0,ke.useState)(null),[l,p]=(0,ke.useState)(),[d,m]=(0,ke.useState)([]),T=Wt(),f=C($t),h=C(Ut),E=()=>U(void 0,null,function*(){var I;let ie=Boolean(f==null?void 0:f.transactions),Le=(I=f==null?void 0:f.transactions)!=null?I:[];if(ie){let P=yield T(Le);m(P)}p(ie)});(0,ke.useEffect)(()=>{E()},[f,r]);let v=()=>{i(null),e(bt(null))},N=ie=>{v(),O(ie)};Vt(N);function O(ie){var I,P;let Le=t instanceof Br.ExtensionProvider;e(vt()),e(xt(ie)),e(Tt(Ie)),Le&&(v(),(P=(I=Br.ExtensionProvider.getInstance())==null?void 0:I.cancelAction)==null||P.call(I))}return{error:o,canceledTransactionsMessage:h,clearTransactionStatusMessage:v,onAbort:N,setError:i,hasTransactions:l,transactionsToSign:f&&S(x({},f),{transactions:d})}};var Ja=()=>{let e=Ee(),t=(0,qe.useRef)("/"),{provider:r}=tt(),o=et(r),i=(0,qe.useRef)(!1),l=Wt(),p=C(Ut),{transactionsToSign:d,error:m,setError:T,hasTransactions:f,onAbort:h,clearTransactionStatusMessage:E}=Ci();Vt(h);function v(I){var W,D;let P=r instanceof $r.ExtensionProvider;e(vt()),e(xt(I)),e(Tt(Ie)),i.current=!1,P&&(E(),(D=(W=$r.ExtensionProvider.getInstance())==null?void 0:W.cancelAction)==null||D.call(W))}let N=(I,P)=>{o==="walletconnectv2"&&(I=Re);let D=I.includes(Re);if(v(P),D){e(bt(Re));return}T(I)},O=(I,P,W="")=>{let D={[Ce]:P},he=`${window.location.origin}${W}`,se=gi({callbackUrl:he,urlParams:D});r.signTransactions(I,{callbackUrl:encodeURIComponent(se)})},ie=()=>U(void 0,null,function*(){var Vr;if(i.current)return;let{sessionId:I,transactions:P,callbackRoute:W,customTransactionInformation:D}=d,{redirectAfterSign:he}=D,se=W||window.location.pathname,Pi=window.location.pathname.includes(se),_i=he&&!Pi;try{if(!(yield(Vr=r==null?void 0:r.init)==null?void 0:Vr.call(r)))return}catch(F){let le=(F==null?void 0:F.message)||F||hn;console.error(le),N(le);return}try{i.current=!0;let F=yield r.signTransactions(P);if(i.current=!1,!vi(F))return;let Mi=Object.values(F).map(Oi=>Pt(Oi)),Wr={sessionId:I,transactions:Mi,status:"signed"};_i&&(Wr.redirectRoute=se),e(fe(Wr))}catch(F){i.current=!1;let le=(F==null?void 0:F.message)||F||yn;console.error(le),e(fe({sessionId:I,status:"cancelled"})),N(le.includes("cancel")?Re:le,I)}}),Le=()=>U(void 0,null,function*(){if(!d)return;E();let{sessionId:I,transactions:P,callbackRoute:W}=d;if(!r){console.error(xn);return}t.current=W||window.location.pathname;try{let D=o==="wallet",he=yield l(P);if(D)return O(he,I,W);ie()}catch(D){let se=(D==null?void 0:D.message)||Tn;console.error(se),N(se,I),e(fe({sessionId:I,status:"cancelled"})),console.error(se,D)}});return(0,qe.useEffect)(()=>{f&&Le()},[d,f]),{error:m,canceledTransactionsMessage:p,onAbort:h,hasTransactions:f,callbackRoute:t.current,sessionId:d==null?void 0:d.sessionId,transactions:d==null?void 0:d.transactions}};0&&(module.exports={useSignTransactions});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|