@multiversx/sdk-dapp 2.10.4 → 2.10.5
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/README.md +4 -0
- 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/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/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/Progress/index.d.ts +2 -2
- package/UI/Progress/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/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/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/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/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/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/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/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/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.d.ts +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/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/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/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-PRWM5NXO.js → chunk-23AR74JT.js} +2 -2
- package/__chunks__/{chunk-VKDC3IWB.js → chunk-2ISPMCOR.js} +2 -2
- package/__chunks__/{chunk-5BCZMVXS.js → chunk-2IYNHVJL.js} +1 -1
- package/__chunks__/{chunk-ZT7BDVKR.js → chunk-2ZNMV4CY.js} +2 -2
- package/__chunks__/{chunk-33OCKJAV.js → chunk-3ICTRNAJ.js} +2 -2
- package/__chunks__/{chunk-URS4GMMU.js → chunk-3KCO4MXM.js} +2 -2
- package/__chunks__/{chunk-LYXQ7CIO.js → chunk-3NU4LLZB.js} +2 -2
- package/__chunks__/chunk-5HMS5KVK.js +2 -0
- package/__chunks__/{chunk-4RF32HNF.js → chunk-5SKFKZCR.js} +2 -2
- package/__chunks__/{chunk-VHYGEFUQ.js → chunk-5V6VYXL3.js} +2 -2
- package/__chunks__/{chunk-B22GF6DM.js → chunk-7REPD67L.js} +2 -2
- package/__chunks__/{chunk-LNJVLMB7.js → chunk-ARDY274Z.js} +2 -2
- package/__chunks__/chunk-ASAQ62V4.js +2 -0
- package/__chunks__/chunk-BUZJT76L.js +2 -0
- package/__chunks__/{chunk-CEULNEJE.js → chunk-C2YQPUWD.js} +2 -2
- package/__chunks__/{chunk-O6T3AYZU.js → chunk-C6JDAMLX.js} +2 -2
- package/__chunks__/{chunk-5XJEQUOW.js → chunk-CDOYWSYO.js} +2 -2
- package/__chunks__/{chunk-HKB7EFMV.js → chunk-CL4PMPHN.js} +2 -2
- package/__chunks__/{chunk-EUVACHJE.js → chunk-E4JTETZW.js} +2 -2
- package/__chunks__/{chunk-SDJZA4DK.js → chunk-FQGWBA4W.js} +2 -2
- package/__chunks__/chunk-FSGZYLZK.js +2 -0
- package/__chunks__/chunk-GVOVWBXS.js +2 -0
- package/__chunks__/{chunk-5SWCMULI.js → chunk-H7DVPZUN.js} +2 -2
- package/__chunks__/{chunk-KPWJNRVA.js → chunk-KL6JA2LY.js} +2 -2
- package/__chunks__/{chunk-V7L5LB27.js → chunk-LF2JB3GC.js} +2 -2
- package/__chunks__/{chunk-GHAQFK3S.js → chunk-MLWNORHX.js} +2 -2
- package/__chunks__/{chunk-7APG4MX7.js → chunk-MRHZ6VXL.js} +2 -2
- package/__chunks__/{chunk-UFHWS5AW.js → chunk-NVEJH4VD.js} +2 -2
- package/__chunks__/{chunk-JSSHU3EZ.js → chunk-OGWDYJ7D.js} +2 -2
- package/__chunks__/{chunk-IUPGQFMH.js → chunk-OSI6YIMO.js} +2 -2
- package/__chunks__/chunk-PO7P2NDG.js +2 -0
- package/__chunks__/{chunk-IKECFSKY.js → chunk-QDZ54HMC.js} +2 -2
- package/__chunks__/{chunk-XVSYJ5G4.js → chunk-QY35GWQL.js} +2 -2
- package/__chunks__/{chunk-XLC5AYSW.js → chunk-R3HRFF5X.js} +2 -2
- package/__chunks__/{chunk-S5MYJVLY.js → chunk-RCHECCGP.js} +2 -2
- package/__chunks__/chunk-TKIIHBF2.js +2 -0
- package/__chunks__/{chunk-NUIKMJXU.js → chunk-TMJYZR6V.js} +2 -2
- package/__chunks__/chunk-UFPATSSG.js +2 -0
- package/__chunks__/{chunk-WT2TPB6D.js → chunk-UQF6GCBQ.js} +2 -2
- package/__chunks__/chunk-WQMPD53F.js +2 -0
- package/__chunks__/{chunk-KV42JGDN.js → chunk-XAL5IR73.js} +2 -2
- package/__chunks__/chunk-XAQNBFSL.js +2 -0
- package/__chunks__/{chunk-XZT4X522.js → chunk-XNPGGZNV.js} +2 -2
- package/__commonjs/UI/DappModal/hooks/index.js +4 -4
- package/__commonjs/UI/DappModal/hooks/useDappModal.js +4 -4
- package/__commonjs/UI/DappModal/index.js +1 -1
- package/__commonjs/UI/ModalContainer/ModalContainer.js +1 -1
- package/__commonjs/UI/ModalContainer/index.js +1 -1
- package/__commonjs/UI/NotificationModal/index.js +1 -1
- package/__commonjs/UI/Progress/index.js +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +10 -10
- package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +10 -10
- package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +10 -10
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +8 -8
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +10 -10
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +12 -12
- package/__commonjs/UI/SignTransactionsModals/components/TransactionStatusToast.js +8 -8
- package/__commonjs/UI/SignTransactionsModals/components/index.js +10 -10
- package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/index.js +40 -40
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/index.js +1 -1
- package/__commonjs/UI/TransactionsTable/TransactionsTable.js +16 -16
- package/__commonjs/UI/TransactionsTable/index.js +17 -17
- package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +21 -21
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +22 -22
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +6 -6
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +22 -22
- package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +17 -17
- package/__commonjs/UI/TransactionsToastList/components/index.js +20 -20
- package/__commonjs/UI/TransactionsToastList/index.js +21 -21
- package/__commonjs/UI/index.js +73 -73
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +2 -2
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +4 -4
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +15 -15
- package/__commonjs/UI/ledger/index.js +4 -4
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +4 -4
- package/__commonjs/UI/pages/UnlockPage/index.js +1 -1
- package/__commonjs/UI/pages/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +4 -4
- package/__commonjs/UI/walletConnect/index.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +7 -7
- package/__commonjs/__mocks__/index.js +5 -5
- package/__commonjs/__mocks__/utils/index.js +5 -5
- package/__commonjs/__mocks__/utils/renderWithProvider.js +5 -5
- package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +3 -3
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +3 -3
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +11 -11
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +11 -11
- package/__commonjs/components/LogoutListener/index.js +1 -1
- package/__commonjs/components/TransactionStatusToast/FailedTransactionStatusToast.js +8 -8
- package/__commonjs/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/__commonjs/components/TransactionsTracker/index.js +1 -1
- package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +3 -3
- package/__commonjs/hooks/index.js +3 -3
- package/__commonjs/hooks/login/index.js +5 -5
- package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__commonjs/utils/index.js +2 -2
- package/__commonjs/utils/math.js +1 -1
- package/__commonjs/utils/progress/getRemainingValue.js +9 -0
- package/__commonjs/utils/progress/index.js +9 -0
- package/__commonjs/utils/sanitizeCallbackUrl.js +1 -1
- package/__commonjs/wrappers/DappProvider/CustomComponents.js +5 -5
- package/__commonjs/wrappers/DappProvider/index.js +6 -6
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/index.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/getNetworkConfig.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/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.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/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/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.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/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/package.json +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
- package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/index.js +1 -1
- package/services/nativeAuth/methods/getToken.js +1 -1
- package/services/nativeAuth/methods/getTokenExpiration.js +1 -1
- package/services/nativeAuth/methods/index.js +1 -1
- package/services/nativeAuth/nativeAuth.js +1 -1
- package/services/transactions/index.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/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/math.d.ts +5 -2
- package/utils/math.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/index.js +1 -1
- package/utils/progress/getRemainingValue.d.ts +11 -0
- package/utils/progress/getRemainingValue.js +2 -0
- package/utils/progress/index.d.ts +2 -0
- package/utils/progress/index.js +2 -0
- package/utils/sanitizeCallbackUrl.js +1 -1
- package/utils/tests/getRemainingValue.test.d.ts +2 -0
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/validation/index.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-3ARNSCNU.js +0 -2
- package/__chunks__/chunk-7H52FZED.js +0 -2
- package/__chunks__/chunk-CI5V2EIZ.js +0 -2
- package/__chunks__/chunk-E3ZZOQNR.js +0 -2
- package/__chunks__/chunk-F3USMPPZ.js +0 -2
- package/__chunks__/chunk-FN7XCOXT.js +0 -2
- package/__chunks__/chunk-PI5JHYWA.js +0 -2
- package/__chunks__/chunk-QXXPROXW.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var jw=Object.create;var _o=Object.defineProperty,eA=Object.defineProperties,tA=Object.getOwnPropertyDescriptor,nA=Object.getOwnPropertyDescriptors,rA=Object.getOwnPropertyNames,Yi=Object.getOwnPropertySymbols,oA=Object.getPrototypeOf,Ec=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable;var Af=(n,r,i)=>r in n?_o(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i,O=(n,r)=>{for(var i in r||(r={}))Ec.call(r,i)&&Af(n,i,r[i]);if(Yi)for(var i of Yi(r))If.call(r,i)&&Af(n,i,r[i]);return n},te=(n,r)=>eA(n,nA(r));var Zi=(n,r)=>{var i={};for(var c in n)Ec.call(n,c)&&r.indexOf(c)<0&&(i[c]=n[c]);if(n!=null&&Yi)for(var c of Yi(n))r.indexOf(c)<0&&If.call(n,c)&&(i[c]=n[c]);return i};var Q=(n,r)=>()=>(n&&(r=n(n=0)),r);var Lo=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports),rr=(n,r)=>{for(var i in r)_o(n,i,{get:r[i],enumerable:!0})},_f=(n,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of rA(r))!Ec.call(n,l)&&l!==i&&_o(n,l,{get:()=>r[l],enumerable:!(c=tA(r,l))||c.enumerable});return n};var ae=(n,r,i)=>(i=n!=null?jw(oA(n)):{},_f(r||!n||!n.__esModule?_o(i,"default",{value:n,enumerable:!0}):i,n)),bo=n=>_f(_o({},"__esModule",{value:!0}),n);var F=(n,r,i)=>new Promise((c,l)=>{var h=A=>{try{w(i.next(A))}catch(_){l(_)}},T=A=>{try{w(i.throw(A))}catch(_){l(_)}},w=A=>A.done?c(A.value):Promise.resolve(A.value).then(h,T);w((i=i.apply(n,r)).next())});var Ef=Lo(Xi=>{"use strict";a();Xi.byteLength=sA;Xi.toByteArray=cA;Xi.fromByteArray=pA;var en=[],Nt=[],iA=typeof Uint8Array!="undefined"?Uint8Array:Array,kc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(or=0,Lf=kc.length;or<Lf;++or)en[or]=kc[or],Nt[kc.charCodeAt(or)]=or;var or,Lf;Nt["-".charCodeAt(0)]=62;Nt["_".charCodeAt(0)]=63;function bf(n){var r=n.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=n.indexOf("=");i===-1&&(i=r);var c=i===r?0:4-i%4;return[i,c]}function sA(n){var r=bf(n),i=r[0],c=r[1];return(i+c)*3/4-c}function aA(n,r,i){return(r+i)*3/4-i}function cA(n){var r,i=bf(n),c=i[0],l=i[1],h=new iA(aA(n,c,l)),T=0,w=l>0?c-4:c,A;for(A=0;A<w;A+=4)r=Nt[n.charCodeAt(A)]<<18|Nt[n.charCodeAt(A+1)]<<12|Nt[n.charCodeAt(A+2)]<<6|Nt[n.charCodeAt(A+3)],h[T++]=r>>16&255,h[T++]=r>>8&255,h[T++]=r&255;return l===2&&(r=Nt[n.charCodeAt(A)]<<2|Nt[n.charCodeAt(A+1)]>>4,h[T++]=r&255),l===1&&(r=Nt[n.charCodeAt(A)]<<10|Nt[n.charCodeAt(A+1)]<<4|Nt[n.charCodeAt(A+2)]>>2,h[T++]=r>>8&255,h[T++]=r&255),h}function uA(n){return en[n>>18&63]+en[n>>12&63]+en[n>>6&63]+en[n&63]}function lA(n,r,i){for(var c,l=[],h=r;h<i;h+=3)c=(n[h]<<16&16711680)+(n[h+1]<<8&65280)+(n[h+2]&255),l.push(uA(c));return l.join("")}function pA(n){for(var r,i=n.length,c=i%3,l=[],h=16383,T=0,w=i-c;T<w;T+=h)l.push(lA(n,T,T+h>w?w:T+h));return c===1?(r=n[i-1],l.push(en[r>>2]+en[r<<4&63]+"==")):c===2&&(r=(n[i-2]<<8)+n[i-1],l.push(en[r>>10]+en[r>>4&63]+en[r<<2&63]+"=")),l.join("")}});var kf=Lo(Cc=>{a();Cc.read=function(n,r,i,c,l){var h,T,w=l*8-c-1,A=(1<<w)-1,_=A>>1,L=-7,P=i?l-1:0,M=i?-1:1,D=n[r+P];for(P+=M,h=D&(1<<-L)-1,D>>=-L,L+=w;L>0;h=h*256+n[r+P],P+=M,L-=8);for(T=h&(1<<-L)-1,h>>=-L,L+=c;L>0;T=T*256+n[r+P],P+=M,L-=8);if(h===0)h=1-_;else{if(h===A)return T?NaN:(D?-1:1)*(1/0);T=T+Math.pow(2,c),h=h-_}return(D?-1:1)*T*Math.pow(2,h-c)};Cc.write=function(n,r,i,c,l,h){var T,w,A,_=h*8-l-1,L=(1<<_)-1,P=L>>1,M=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=c?0:h-1,N=c?1:-1,G=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(w=isNaN(r)?1:0,T=L):(T=Math.floor(Math.log(r)/Math.LN2),r*(A=Math.pow(2,-T))<1&&(T--,A*=2),T+P>=1?r+=M/A:r+=M*Math.pow(2,1-P),r*A>=2&&(T++,A/=2),T+P>=L?(w=0,T=L):T+P>=1?(w=(r*A-1)*Math.pow(2,l),T=T+P):(w=r*Math.pow(2,P-1)*Math.pow(2,l),T=0));l>=8;n[i+D]=w&255,D+=N,w/=256,l-=8);for(T=T<<l|w,_+=l;_>0;n[i+D]=T&255,D+=N,T/=256,_-=8);n[i+D-N]|=G*128}});var $f=Lo(Mr=>{"use strict";a();var Pc=Ef(),Or=kf(),Cf=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Mr.Buffer=E;Mr.SlowBuffer=hA;Mr.INSPECT_MAX_BYTES=50;var Ji=2147483647;Mr.kMaxLength=Ji;E.TYPED_ARRAY_SUPPORT=fA();!E.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 fA(){try{var n=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(n,r),n.foo()===42}catch(i){return!1}}Object.defineProperty(E.prototype,"parent",{enumerable:!0,get:function(){if(!!E.isBuffer(this))return this.buffer}});Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(!!E.isBuffer(this))return this.byteOffset}});function Sn(n){if(n>Ji)throw new RangeError('The value "'+n+'" is invalid for option "size"');var r=new Uint8Array(n);return Object.setPrototypeOf(r,E.prototype),r}function E(n,r,i){if(typeof n=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Oc(n)}return Df(n,r,i)}E.poolSize=8192;function Df(n,r,i){if(typeof n=="string")return gA(n,r);if(ArrayBuffer.isView(n))return mA(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(tn(n,ArrayBuffer)||n&&tn(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(tn(n,SharedArrayBuffer)||n&&tn(n.buffer,SharedArrayBuffer)))return Dc(n,r,i);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var c=n.valueOf&&n.valueOf();if(c!=null&&c!==n)return E.from(c,r,i);var l=TA(n);if(l)return l;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return E.from(n[Symbol.toPrimitive]("string"),r,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}E.from=function(n,r,i){return Df(n,r,i)};Object.setPrototypeOf(E.prototype,Uint8Array.prototype);Object.setPrototypeOf(E,Uint8Array);function Nf(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function dA(n,r,i){return Nf(n),n<=0?Sn(n):r!==void 0?typeof i=="string"?Sn(n).fill(r,i):Sn(n).fill(r):Sn(n)}E.alloc=function(n,r,i){return dA(n,r,i)};function Oc(n){return Nf(n),Sn(n<0?0:Mc(n)|0)}E.allocUnsafe=function(n){return Oc(n)};E.allocUnsafeSlow=function(n){return Oc(n)};function gA(n,r){if((typeof r!="string"||r==="")&&(r="utf8"),!E.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var i=Of(n,r)|0,c=Sn(i),l=c.write(n,r);return l!==i&&(c=c.slice(0,l)),c}function Rc(n){for(var r=n.length<0?0:Mc(n.length)|0,i=Sn(r),c=0;c<r;c+=1)i[c]=n[c]&255;return i}function mA(n){if(tn(n,Uint8Array)){var r=new Uint8Array(n);return Dc(r.buffer,r.byteOffset,r.byteLength)}return Rc(n)}function Dc(n,r,i){if(r<0||n.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<r+(i||0))throw new RangeError('"length" is outside of buffer bounds');var c;return r===void 0&&i===void 0?c=new Uint8Array(n):i===void 0?c=new Uint8Array(n,r):c=new Uint8Array(n,r,i),Object.setPrototypeOf(c,E.prototype),c}function TA(n){if(E.isBuffer(n)){var r=Mc(n.length)|0,i=Sn(r);return i.length===0||n.copy(i,0,0,r),i}if(n.length!==void 0)return typeof n.length!="number"||Fc(n.length)?Sn(0):Rc(n);if(n.type==="Buffer"&&Array.isArray(n.data))return Rc(n.data)}function Mc(n){if(n>=Ji)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ji.toString(16)+" bytes");return n|0}function hA(n){return+n!=n&&(n=0),E.alloc(+n)}E.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==E.prototype};E.compare=function(r,i){if(tn(r,Uint8Array)&&(r=E.from(r,r.offset,r.byteLength)),tn(i,Uint8Array)&&(i=E.from(i,i.offset,i.byteLength)),!E.isBuffer(r)||!E.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;for(var c=r.length,l=i.length,h=0,T=Math.min(c,l);h<T;++h)if(r[h]!==i[h]){c=r[h],l=i[h];break}return c<l?-1:l<c?1:0};E.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}};E.concat=function(r,i){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return E.alloc(0);var c;if(i===void 0)for(i=0,c=0;c<r.length;++c)i+=r[c].length;var l=E.allocUnsafe(i),h=0;for(c=0;c<r.length;++c){var T=r[c];if(tn(T,Uint8Array))h+T.length>l.length?E.from(T).copy(l,h):Uint8Array.prototype.set.call(l,T,h);else if(E.isBuffer(T))T.copy(l,h);else throw new TypeError('"list" argument must be an Array of Buffers');h+=T.length}return l};function Of(n,r){if(E.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||tn(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var i=n.length,c=arguments.length>2&&arguments[2]===!0;if(!c&&i===0)return 0;for(var l=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return Nc(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return Gf(n).length;default:if(l)return c?-1:Nc(n).length;r=(""+r).toLowerCase(),l=!0}}E.byteLength=Of;function yA(n,r,i){var c=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(n||(n="utf8");;)switch(n){case"hex":return EA(this,r,i);case"utf8":case"utf-8":return Ff(this,r,i);case"ascii":return LA(this,r,i);case"latin1":case"binary":return bA(this,r,i);case"base64":return IA(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kA(this,r,i);default:if(c)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),c=!0}}E.prototype._isBuffer=!0;function ir(n,r,i){var c=n[r];n[r]=n[i],n[i]=c}E.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 i=0;i<r;i+=2)ir(this,i,i+1);return this};E.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 i=0;i<r;i+=4)ir(this,i,i+3),ir(this,i+1,i+2);return this};E.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 i=0;i<r;i+=8)ir(this,i,i+7),ir(this,i+1,i+6),ir(this,i+2,i+5),ir(this,i+3,i+4);return this};E.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Ff(this,0,r):yA.apply(this,arguments)};E.prototype.toLocaleString=E.prototype.toString;E.prototype.equals=function(r){if(!E.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:E.compare(this,r)===0};E.prototype.inspect=function(){var r="",i=Mr.INSPECT_MAX_BYTES;return r=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(r+=" ... "),"<Buffer "+r+">"};Cf&&(E.prototype[Cf]=E.prototype.inspect);E.prototype.compare=function(r,i,c,l,h){if(tn(r,Uint8Array)&&(r=E.from(r,r.offset,r.byteLength)),!E.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),c===void 0&&(c=r?r.length:0),l===void 0&&(l=0),h===void 0&&(h=this.length),i<0||c>r.length||l<0||h>this.length)throw new RangeError("out of range index");if(l>=h&&i>=c)return 0;if(l>=h)return-1;if(i>=c)return 1;if(i>>>=0,c>>>=0,l>>>=0,h>>>=0,this===r)return 0;for(var T=h-l,w=c-i,A=Math.min(T,w),_=this.slice(l,h),L=r.slice(i,c),P=0;P<A;++P)if(_[P]!==L[P]){T=_[P],w=L[P];break}return T<w?-1:w<T?1:0};function Mf(n,r,i,c,l){if(n.length===0)return-1;if(typeof i=="string"?(c=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,Fc(i)&&(i=l?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(l)return-1;i=n.length-1}else if(i<0)if(l)i=0;else return-1;if(typeof r=="string"&&(r=E.from(r,c)),E.isBuffer(r))return r.length===0?-1:Pf(n,r,i,c,l);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(n,r,i):Uint8Array.prototype.lastIndexOf.call(n,r,i):Pf(n,[r],i,c,l);throw new TypeError("val must be string, number or Buffer")}function Pf(n,r,i,c,l){var h=1,T=n.length,w=r.length;if(c!==void 0&&(c=String(c).toLowerCase(),c==="ucs2"||c==="ucs-2"||c==="utf16le"||c==="utf-16le")){if(n.length<2||r.length<2)return-1;h=2,T/=2,w/=2,i/=2}function A(D,N){return h===1?D[N]:D.readUInt16BE(N*h)}var _;if(l){var L=-1;for(_=i;_<T;_++)if(A(n,_)===A(r,L===-1?0:_-L)){if(L===-1&&(L=_),_-L+1===w)return L*h}else L!==-1&&(_-=_-L),L=-1}else for(i+w>T&&(i=T-w),_=i;_>=0;_--){for(var P=!0,M=0;M<w;M++)if(A(n,_+M)!==A(r,M)){P=!1;break}if(P)return _}return-1}E.prototype.includes=function(r,i,c){return this.indexOf(r,i,c)!==-1};E.prototype.indexOf=function(r,i,c){return Mf(this,r,i,c,!0)};E.prototype.lastIndexOf=function(r,i,c){return Mf(this,r,i,c,!1)};function xA(n,r,i,c){i=Number(i)||0;var l=n.length-i;c?(c=Number(c),c>l&&(c=l)):c=l;var h=r.length;c>h/2&&(c=h/2);for(var T=0;T<c;++T){var w=parseInt(r.substr(T*2,2),16);if(Fc(w))return T;n[i+T]=w}return T}function SA(n,r,i,c){return Qi(Nc(r,n.length-i),n,i,c)}function vA(n,r,i,c){return Qi(RA(r),n,i,c)}function wA(n,r,i,c){return Qi(Gf(r),n,i,c)}function AA(n,r,i,c){return Qi(DA(r,n.length-i),n,i,c)}E.prototype.write=function(r,i,c,l){if(i===void 0)l="utf8",c=this.length,i=0;else if(c===void 0&&typeof i=="string")l=i,c=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(c)?(c=c>>>0,l===void 0&&(l="utf8")):(l=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var h=this.length-i;if((c===void 0||c>h)&&(c=h),r.length>0&&(c<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");l||(l="utf8");for(var T=!1;;)switch(l){case"hex":return xA(this,r,i,c);case"utf8":case"utf-8":return SA(this,r,i,c);case"ascii":case"latin1":case"binary":return vA(this,r,i,c);case"base64":return wA(this,r,i,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return AA(this,r,i,c);default:if(T)throw new TypeError("Unknown encoding: "+l);l=(""+l).toLowerCase(),T=!0}};E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function IA(n,r,i){return r===0&&i===n.length?Pc.fromByteArray(n):Pc.fromByteArray(n.slice(r,i))}function Ff(n,r,i){i=Math.min(n.length,i);for(var c=[],l=r;l<i;){var h=n[l],T=null,w=h>239?4:h>223?3:h>191?2:1;if(l+w<=i){var A,_,L,P;switch(w){case 1:h<128&&(T=h);break;case 2:A=n[l+1],(A&192)===128&&(P=(h&31)<<6|A&63,P>127&&(T=P));break;case 3:A=n[l+1],_=n[l+2],(A&192)===128&&(_&192)===128&&(P=(h&15)<<12|(A&63)<<6|_&63,P>2047&&(P<55296||P>57343)&&(T=P));break;case 4:A=n[l+1],_=n[l+2],L=n[l+3],(A&192)===128&&(_&192)===128&&(L&192)===128&&(P=(h&15)<<18|(A&63)<<12|(_&63)<<6|L&63,P>65535&&P<1114112&&(T=P))}}T===null?(T=65533,w=1):T>65535&&(T-=65536,c.push(T>>>10&1023|55296),T=56320|T&1023),c.push(T),l+=w}return _A(c)}var Rf=4096;function _A(n){var r=n.length;if(r<=Rf)return String.fromCharCode.apply(String,n);for(var i="",c=0;c<r;)i+=String.fromCharCode.apply(String,n.slice(c,c+=Rf));return i}function LA(n,r,i){var c="";i=Math.min(n.length,i);for(var l=r;l<i;++l)c+=String.fromCharCode(n[l]&127);return c}function bA(n,r,i){var c="";i=Math.min(n.length,i);for(var l=r;l<i;++l)c+=String.fromCharCode(n[l]);return c}function EA(n,r,i){var c=n.length;(!r||r<0)&&(r=0),(!i||i<0||i>c)&&(i=c);for(var l="",h=r;h<i;++h)l+=NA[n[h]];return l}function kA(n,r,i){for(var c=n.slice(r,i),l="",h=0;h<c.length-1;h+=2)l+=String.fromCharCode(c[h]+c[h+1]*256);return l}E.prototype.slice=function(r,i){var c=this.length;r=~~r,i=i===void 0?c:~~i,r<0?(r+=c,r<0&&(r=0)):r>c&&(r=c),i<0?(i+=c,i<0&&(i=0)):i>c&&(i=c),i<r&&(i=r);var l=this.subarray(r,i);return Object.setPrototypeOf(l,E.prototype),l};function Ve(n,r,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+r>i)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUintLE=E.prototype.readUIntLE=function(r,i,c){r=r>>>0,i=i>>>0,c||Ve(r,i,this.length);for(var l=this[r],h=1,T=0;++T<i&&(h*=256);)l+=this[r+T]*h;return l};E.prototype.readUintBE=E.prototype.readUIntBE=function(r,i,c){r=r>>>0,i=i>>>0,c||Ve(r,i,this.length);for(var l=this[r+--i],h=1;i>0&&(h*=256);)l+=this[r+--i]*h;return l};E.prototype.readUint8=E.prototype.readUInt8=function(r,i){return r=r>>>0,i||Ve(r,1,this.length),this[r]};E.prototype.readUint16LE=E.prototype.readUInt16LE=function(r,i){return r=r>>>0,i||Ve(r,2,this.length),this[r]|this[r+1]<<8};E.prototype.readUint16BE=E.prototype.readUInt16BE=function(r,i){return r=r>>>0,i||Ve(r,2,this.length),this[r]<<8|this[r+1]};E.prototype.readUint32LE=E.prototype.readUInt32LE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};E.prototype.readUint32BE=E.prototype.readUInt32BE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};E.prototype.readIntLE=function(r,i,c){r=r>>>0,i=i>>>0,c||Ve(r,i,this.length);for(var l=this[r],h=1,T=0;++T<i&&(h*=256);)l+=this[r+T]*h;return h*=128,l>=h&&(l-=Math.pow(2,8*i)),l};E.prototype.readIntBE=function(r,i,c){r=r>>>0,i=i>>>0,c||Ve(r,i,this.length);for(var l=i,h=1,T=this[r+--l];l>0&&(h*=256);)T+=this[r+--l]*h;return h*=128,T>=h&&(T-=Math.pow(2,8*i)),T};E.prototype.readInt8=function(r,i){return r=r>>>0,i||Ve(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};E.prototype.readInt16LE=function(r,i){r=r>>>0,i||Ve(r,2,this.length);var c=this[r]|this[r+1]<<8;return c&32768?c|4294901760:c};E.prototype.readInt16BE=function(r,i){r=r>>>0,i||Ve(r,2,this.length);var c=this[r+1]|this[r]<<8;return c&32768?c|4294901760:c};E.prototype.readInt32LE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};E.prototype.readInt32BE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};E.prototype.readFloatLE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),Or.read(this,r,!0,23,4)};E.prototype.readFloatBE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),Or.read(this,r,!1,23,4)};E.prototype.readDoubleLE=function(r,i){return r=r>>>0,i||Ve(r,8,this.length),Or.read(this,r,!0,52,8)};E.prototype.readDoubleBE=function(r,i){return r=r>>>0,i||Ve(r,8,this.length),Or.read(this,r,!1,52,8)};function ft(n,r,i,c,l,h){if(!E.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>l||r<h)throw new RangeError('"value" argument is out of bounds');if(i+c>n.length)throw new RangeError("Index out of range")}E.prototype.writeUintLE=E.prototype.writeUIntLE=function(r,i,c,l){if(r=+r,i=i>>>0,c=c>>>0,!l){var h=Math.pow(2,8*c)-1;ft(this,r,i,c,h,0)}var T=1,w=0;for(this[i]=r&255;++w<c&&(T*=256);)this[i+w]=r/T&255;return i+c};E.prototype.writeUintBE=E.prototype.writeUIntBE=function(r,i,c,l){if(r=+r,i=i>>>0,c=c>>>0,!l){var h=Math.pow(2,8*c)-1;ft(this,r,i,c,h,0)}var T=c-1,w=1;for(this[i+T]=r&255;--T>=0&&(w*=256);)this[i+T]=r/w&255;return i+c};E.prototype.writeUint8=E.prototype.writeUInt8=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,1,255,0),this[i]=r&255,i+1};E.prototype.writeUint16LE=E.prototype.writeUInt16LE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,2,65535,0),this[i]=r&255,this[i+1]=r>>>8,i+2};E.prototype.writeUint16BE=E.prototype.writeUInt16BE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=r&255,i+2};E.prototype.writeUint32LE=E.prototype.writeUInt32LE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255,i+4};E.prototype.writeUint32BE=E.prototype.writeUInt32BE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};E.prototype.writeIntLE=function(r,i,c,l){if(r=+r,i=i>>>0,!l){var h=Math.pow(2,8*c-1);ft(this,r,i,c,h-1,-h)}var T=0,w=1,A=0;for(this[i]=r&255;++T<c&&(w*=256);)r<0&&A===0&&this[i+T-1]!==0&&(A=1),this[i+T]=(r/w>>0)-A&255;return i+c};E.prototype.writeIntBE=function(r,i,c,l){if(r=+r,i=i>>>0,!l){var h=Math.pow(2,8*c-1);ft(this,r,i,c,h-1,-h)}var T=c-1,w=1,A=0;for(this[i+T]=r&255;--T>=0&&(w*=256);)r<0&&A===0&&this[i+T+1]!==0&&(A=1),this[i+T]=(r/w>>0)-A&255;return i+c};E.prototype.writeInt8=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=r&255,i+1};E.prototype.writeInt16LE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,2,32767,-32768),this[i]=r&255,this[i+1]=r>>>8,i+2};E.prototype.writeInt16BE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=r&255,i+2};E.prototype.writeInt32LE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,4,2147483647,-2147483648),this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4};E.prototype.writeInt32BE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};function Uf(n,r,i,c,l,h){if(i+c>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Bf(n,r,i,c,l){return r=+r,i=i>>>0,l||Uf(n,r,i,4,34028234663852886e22,-34028234663852886e22),Or.write(n,r,i,c,23,4),i+4}E.prototype.writeFloatLE=function(r,i,c){return Bf(this,r,i,!0,c)};E.prototype.writeFloatBE=function(r,i,c){return Bf(this,r,i,!1,c)};function Wf(n,r,i,c,l){return r=+r,i=i>>>0,l||Uf(n,r,i,8,17976931348623157e292,-17976931348623157e292),Or.write(n,r,i,c,52,8),i+8}E.prototype.writeDoubleLE=function(r,i,c){return Wf(this,r,i,!0,c)};E.prototype.writeDoubleBE=function(r,i,c){return Wf(this,r,i,!1,c)};E.prototype.copy=function(r,i,c,l){if(!E.isBuffer(r))throw new TypeError("argument should be a Buffer");if(c||(c=0),!l&&l!==0&&(l=this.length),i>=r.length&&(i=r.length),i||(i=0),l>0&&l<c&&(l=c),l===c||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("sourceEnd out of bounds");l>this.length&&(l=this.length),r.length-i<l-c&&(l=r.length-i+c);var h=l-c;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,c,l):Uint8Array.prototype.set.call(r,this.subarray(c,l),i),h};E.prototype.fill=function(r,i,c,l){if(typeof r=="string"){if(typeof i=="string"?(l=i,i=0,c=this.length):typeof c=="string"&&(l=c,c=this.length),l!==void 0&&typeof l!="string")throw new TypeError("encoding must be a string");if(typeof l=="string"&&!E.isEncoding(l))throw new TypeError("Unknown encoding: "+l);if(r.length===1){var h=r.charCodeAt(0);(l==="utf8"&&h<128||l==="latin1")&&(r=h)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(i<0||this.length<i||this.length<c)throw new RangeError("Out of range index");if(c<=i)return this;i=i>>>0,c=c===void 0?this.length:c>>>0,r||(r=0);var T;if(typeof r=="number")for(T=i;T<c;++T)this[T]=r;else{var w=E.isBuffer(r)?r:E.from(r,l),A=w.length;if(A===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(T=0;T<c-i;++T)this[T+i]=w[T%A]}return this};var CA=/[^+/0-9A-Za-z-_]/g;function PA(n){if(n=n.split("=")[0],n=n.trim().replace(CA,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function Nc(n,r){r=r||1/0;for(var i,c=n.length,l=null,h=[],T=0;T<c;++T){if(i=n.charCodeAt(T),i>55295&&i<57344){if(!l){if(i>56319){(r-=3)>-1&&h.push(239,191,189);continue}else if(T+1===c){(r-=3)>-1&&h.push(239,191,189);continue}l=i;continue}if(i<56320){(r-=3)>-1&&h.push(239,191,189),l=i;continue}i=(l-55296<<10|i-56320)+65536}else l&&(r-=3)>-1&&h.push(239,191,189);if(l=null,i<128){if((r-=1)<0)break;h.push(i)}else if(i<2048){if((r-=2)<0)break;h.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;h.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;h.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return h}function RA(n){for(var r=[],i=0;i<n.length;++i)r.push(n.charCodeAt(i)&255);return r}function DA(n,r){for(var i,c,l,h=[],T=0;T<n.length&&!((r-=2)<0);++T)i=n.charCodeAt(T),c=i>>8,l=i%256,h.push(l),h.push(c);return h}function Gf(n){return Pc.toByteArray(PA(n))}function Qi(n,r,i,c){for(var l=0;l<c&&!(l+i>=r.length||l>=n.length);++l)r[l+i]=n[l];return l}function tn(n,r){return n instanceof r||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===r.name}function Fc(n){return n!==n}var NA=function(){for(var n="0123456789abcdef",r=new Array(256),i=0;i<16;++i)for(var c=i*16,l=0;l<16;++l)r[c+l]=n[i]+n[l];return r}()});var Kf=Lo((hL,zf)=>{a();var Fe=zf.exports={},nn,rn;function Uc(){throw new Error("setTimeout has not been defined")}function Bc(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?nn=setTimeout:nn=Uc}catch(n){nn=Uc}try{typeof clearTimeout=="function"?rn=clearTimeout:rn=Bc}catch(n){rn=Bc}})();function Hf(n){if(nn===setTimeout)return setTimeout(n,0);if((nn===Uc||!nn)&&setTimeout)return nn=setTimeout,setTimeout(n,0);try{return nn(n,0)}catch(r){try{return nn.call(null,n,0)}catch(i){return nn.call(this,n,0)}}}function OA(n){if(rn===clearTimeout)return clearTimeout(n);if((rn===Bc||!rn)&&clearTimeout)return rn=clearTimeout,clearTimeout(n);try{return rn(n)}catch(r){try{return rn.call(null,n)}catch(i){return rn.call(this,n)}}}var vn=[],Fr=!1,sr,ji=-1;function MA(){!Fr||!sr||(Fr=!1,sr.length?vn=sr.concat(vn):ji=-1,vn.length&&Vf())}function Vf(){if(!Fr){var n=Hf(MA);Fr=!0;for(var r=vn.length;r;){for(sr=vn,vn=[];++ji<r;)sr&&sr[ji].run();ji=-1,r=vn.length}sr=null,Fr=!1,OA(n)}}Fe.nextTick=function(n){var r=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)r[i-1]=arguments[i];vn.push(new qf(n,r)),vn.length===1&&!Fr&&Hf(Vf)};function qf(n,r){this.fun=n,this.array=r}qf.prototype.run=function(){this.fun.apply(null,this.array)};Fe.title="browser";Fe.browser=!0;Fe.env={};Fe.argv=[];Fe.version="";Fe.versions={};function wn(){}Fe.on=wn;Fe.addListener=wn;Fe.once=wn;Fe.off=wn;Fe.removeListener=wn;Fe.removeAllListeners=wn;Fe.emit=wn;Fe.prependListener=wn;Fe.prependOnceListener=wn;Fe.listeners=function(n){return[]};Fe.binding=function(n){throw new Error("process.binding is not supported")};Fe.cwd=function(){return"/"};Fe.chdir=function(n){throw new Error("process.chdir is not supported")};Fe.umask=function(){return 0}});var d,m,FA,g,a=Q(()=>{d=ae($f()),m=ae(Kf()),FA=function(n){function r(){var c=this||self;return delete n.prototype.__magic__,c}if(typeof globalThis=="object")return globalThis;if(this)return r();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:r});var i=__magic__;return i}(Object),g=FA});var Yf,ar,Zf,Xf,Jf,Fn,cr=Q(()=>{"use strict";a();Yf="error when signing",ar="Transaction canceled",Zf="error signing transaction",Xf="provider not initialized",Jf="You need a signer/valid signer to send a transaction,use either WalletProvider, LedgerProvider or WalletConnect",Fn="Action not allowed. User is logged in. Call logout() first"});var Qf=Q(()=>{"use strict";a()});var jf=Q(()=>{"use strict";a()});var ed=Q(()=>{"use strict";a()});var Ue=Q(()=>{"use strict";a()});var td=Q(()=>{"use strict";a()});var nd=Q(()=>{"use strict";a()});var dt=Q(()=>{"use strict";a()});var rd=Q(()=>{"use strict";a()});var od=Q(()=>{"use strict";a()});var qe=Q(()=>{"use strict";a();Qf();jf();ed();Ue();td();nd();dt();rd();od()});var Wc,id,ML,sd,FL,ad,UL,BL,WL,cd=Q(()=>{"use strict";a();qe();Wc={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:id,egldLabel:ML}=Wc["devnet"],{chainId:sd,egldLabel:FL}=Wc["testnet"],{chainId:ad,egldLabel:UL}=Wc["mainnet"],BL={["devnet"]:id,["testnet"]:sd,["mainnet"]:ad},WL={[id]:"devnet",[sd]:"testnet",[ad]:"mainnet"}});var Gc,$c=Q(()=>{"use strict";a();Gc={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var ud=Q(()=>{"use strict";a()});var Ur,Hc=Q(()=>{"use strict";a();Ur="transaction-status-toast-id"});var on,ld=Q(()=>{"use strict";a();on=require("@multiversx/sdk-web-wallet-provider")});var Eo,es,pd,fd,dd,ko,ts,gd,Br,Le=Q(()=>{"use strict";a();cr();cd();$c();ud();Hc();ld();Eo=5e4,es=1e9,pd=1,fd=1,dd="/dapp/init",ko="signSession",ts="logout",gd="login",Br="0"});var Wr,ns=Q(()=>{"use strict";a();Wr=()=>Date.now()/1e3});var md=Q(()=>{"use strict";a()});var Td=Q(()=>{"use strict";a()});var Vc=Q(()=>{"use strict";a();ns();md();Td()});var zc={};rr(zc,{getItem:()=>BA,localStorageKeys:()=>qt,removeItem:()=>WA,setItem:()=>UA});var qt,qc,UA,BA,WA,Gr=Q(()=>{"use strict";a();Vc();qt={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},qc=typeof localStorage!="undefined",UA=({key:n,data:r,expires:i})=>{!qc||localStorage.setItem(String(n),JSON.stringify({expires:i,data:r}))},BA=n=>{if(!qc)return;let r=localStorage.getItem(String(n));if(!r)return null;let i=JSON.parse(r);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Wr()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},WA=n=>{!qc||localStorage.removeItem(String(n))}});var Kc={};rr(Kc,{clear:()=>Sd,getItem:()=>yd,removeItem:()=>xd,setItem:()=>hd,storage:()=>GA});var hd,yd,xd,Sd,GA,vd=Q(()=>{"use strict";a();hd=({key:n,data:r,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:r}))},yd=n=>{let r=sessionStorage.getItem(String(n));if(!r)return null;let i=JSON.parse(r);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Date.now()>=i.expires?(sessionStorage.removeItem(String(n)),null):i.data},xd=n=>sessionStorage.removeItem(String(n)),Sd=()=>sessionStorage.clear(),GA={setItem:hd,getItem:yd,removeItem:xd,clear:Sd}});var sn,$r=Q(()=>{"use strict";a();Gr();vd();sn={session:Kc,local:zc}});var Yc,ze,Je,Qe=Q(()=>{"use strict";a();Yc=require("@reduxjs/toolkit");Le();ze=(0,Yc.createAction)(ts),Je=(0,Yc.createAction)(gd,n=>({payload:n}))});var Xc,wd,Ad,rs,Zc,Id,os,Tb,Jc,hb,Qc,_d,yb,xb,Sb,Ld,is,ss=Q(()=>{"use strict";a();Xc=require("@multiversx/sdk-core"),wd=require("@reduxjs/toolkit"),Ad=require("redux-persist");Le();$r();Gr();Qe();rs={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Br},Zc={address:"",websocketEvent:null,accounts:{"":rs},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Id=(0,wd.createSlice)({name:"accountInfoSlice",initialState:Zc,reducers:{setAddress:(n,r)=>{let i=r.payload;n.address=i,n.publicKey=new Xc.Address(i).hex()},setAccount:(n,r)=>{let i=n.address===r.payload.address;n.accounts={[n.address]:i?r.payload:rs},n.shard=r.payload.shard,n.isAccountLoading=!1,n.accountLoadingError=null},setAccountNonce:(n,r)=>{let{address:i}=n;n.accounts[i].nonce=r.payload},setAccountShard:(n,r)=>{n.shard=r.payload},setLedgerAccount:(n,r)=>{n.ledgerAccount=r.payload},updateLedgerAccount:(n,r)=>{n.ledgerAccount!=null&&(n.ledgerAccount.index=r.payload.index,n.ledgerAccount.address=r.payload.address)},setWalletConnectAccount:(n,r)=>{n.walletConnectAccount=r.payload},setIsAccountLoading:(n,r)=>{n.isAccountLoading=r.payload,n.accountLoadingError=null},setAccountLoadingError:(n,r)=>{n.accountLoadingError=r.payload,n.isAccountLoading=!1},setWebsocketEvent:(n,r)=>{n.websocketEvent={timestamp:Date.now(),message:r.payload}}},extraReducers:n=>{n.addCase(ze,()=>(sn.local.removeItem(qt.loginExpiresAt),Zc)),n.addCase(Je,(r,i)=>{let{address:c}=i.payload;r.address=c,r.publicKey=new Xc.Address(c).hex()}),n.addCase(Ad.REHYDRATE,(r,i)=>{var _;if(!((_=i.payload)!=null&&_.account))return;let{account:c}=i.payload,{address:l,shard:h,accounts:T,publicKey:w}=c;r.address=l,r.shard=h;let A=T&&l in T;r.accounts=A?T:Zc.accounts,r.publicKey=w})}}),{setAccount:os,setAddress:Tb,setAccountNonce:Jc,setAccountShard:hb,setLedgerAccount:Qc,updateLedgerAccount:_d,setWalletConnectAccount:yb,setIsAccountLoading:xb,setAccountLoadingError:Sb,setWebsocketEvent:Ld}=Id.actions,is=Id.reducer});function Co(){return new Date().setHours(new Date().getHours()+24)}function Po(n){sn.local.setItem({key:qt.loginExpiresAt,data:n,expires:n})}var jc=Q(()=>{"use strict";a();$r();Gr()});var Ed,bd,kd,Cb,as,Cd,cs,Pb,Pd,Rd,Rb,us,ls=Q(()=>{"use strict";a();Ed=require("@reduxjs/toolkit");jc();Ue();Qe();bd={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},kd=(0,Ed.createSlice)({name:"loginInfoSlice",initialState:bd,reducers:{setLoginMethod:(n,r)=>{n.loginMethod=r.payload},setTokenLogin:(n,r)=>{n.tokenLogin=r.payload},setTokenLoginSignature:(n,r)=>{(n==null?void 0:n.tokenLogin)!=null&&(n.tokenLogin.signature=r.payload)},setWalletLogin:(n,r)=>{n.walletLogin=r.payload},setWalletConnectLogin:(n,r)=>{n.walletConnectLogin=r.payload},setLedgerLogin:(n,r)=>{n.ledgerLogin=r.payload},invalidateLoginSession:n=>{n.isLoginSessionInvalid=!0},setLogoutRoute:(n,r)=>{n.logoutRoute=r.payload}},extraReducers:n=>{n.addCase(ze,()=>bd),n.addCase(Je,(r,i)=>{r.loginMethod=i.payload.loginMethod,Po(Co())})}}),{setLoginMethod:Cb,setWalletConnectLogin:as,setLedgerLogin:Cd,setTokenLogin:cs,setTokenLoginSignature:Pb,setWalletLogin:Pd,invalidateLoginSession:Rd,setLogoutRoute:Rb}=kd.actions,us=kd.reducer});var Nd,Dd,Od,Mb,$A,Fb,Md,ps,fs=Q(()=>{"use strict";a();Nd=require("@reduxjs/toolkit");Qe();Dd={},Od=(0,Nd.createSlice)({name:"modalsSlice",initialState:Dd,reducers:{setTxSubmittedModal:(n,r)=>{n.txSubmittedModal=r.payload},setNotificationModal:(n,r)=>{n.notificationModal=r.payload},clearTxSubmittedModal:n=>{n.txSubmittedModal=void 0},clearNotificationModal:n=>{n.notificationModal=void 0}},extraReducers:n=>{n.addCase(ze,()=>Dd)}}),{setTxSubmittedModal:Mb,setNotificationModal:$A,clearTxSubmittedModal:Fb,clearNotificationModal:Md}=Od.actions,ps=Od.reducer});var Fd,Ud,Hr,Ro=Q(()=>{"use strict";a();Fd=!1,Ud=(n=!0)=>{Fd=n},Hr=(n,r=0)=>{Fd||setTimeout(()=>{window.location.href=n,window.location.assign(n)},r)}});function zt({callbackRoute:n,onLoginRedirect:r,options:i}){let c=Boolean(n),l=typeof r=="function",h=l?0:HA;c&&n!=null&&setTimeout(()=>{if(l)return r(n,i);window.location.pathname.includes(n)||Hr(n)},h)}var HA,Bd=Q(()=>{"use strict";a();Ro();HA=200});function eu(n){return n[Math.floor(Math.random()*n.length)]}var Wd=Q(()=>{"use strict";a()});function ur(n){let r=null;if((n==null?void 0:n.statusCode)in Gc){let i=n==null?void 0:n.statusCode,{message:c}=Gc[i];r=zA.includes(i)?Gd:c}return{errorMessage:r,defaultErrorMessage:Gd}}var Gd,VA,qA,zA,tu=Q(()=>{"use strict";a();$c();Gd="Check if the MultiversX app is open on Ledger",VA=28161,qA=28160,zA=[VA,qA]});var lr=Q(()=>{"use strict";a();Bd();Wd();tu()});var $d,Hd,nu,KA,Vd,Jb,Qb,ds,gs=Q(()=>{"use strict";a();$d=require("@reduxjs/toolkit"),Hd=ae(require("lodash.omit"));lr();nu={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},KA={network:nu,chainID:"-1"},Vd=(0,$d.createSlice)({name:"appConfig",initialState:KA,reducers:{initializeNetworkConfig:(n,r)=>{let i=eu(r.payload.walletConnectBridgeAddresses),c=eu(r.payload.walletConnectV2RelayAddresses),l=(0,Hd.default)(r.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=te(O(O({},n.network),l),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:c})},setChainID:(n,r)=>{n.chainID=r.payload}}}),{initializeNetworkConfig:Jb,setChainID:Qb}=Vd.actions,ds=Vd.reducer});var qd,ru,zd,oE,iE,sE,ms,Ts=Q(()=>{"use strict";a();qd=require("@reduxjs/toolkit");qe();Qe();ru={isSigning:!1,signedSessions:{}},zd=(0,qd.createSlice)({name:"signedMessageInfoSliceState",initialState:ru,reducers:{setSignSession:(n,r)=>{let{sessionId:i,signedSession:c,errorMessage:l}=r.payload;return te(O({},n),{errorMessage:l!=null?l:n.errorMessage,isSigning:c.status==="pending",signedSessions:te(O({},n.signedSessions),{[i]:c})})},setSignSessionState:(n,r)=>O(O({},n),r.payload),clearSignedMessageInfo:()=>ru},extraReducers:n=>{n.addCase(ze,()=>ru)}}),{setSignSession:oE,clearSignedMessageInfo:iE,setSignSessionState:sE}=zd.actions,ms=zd.reducer});var Yd,Zd,Kd,Xd,YA,Do,gE,mE,TE,hE,hs,ys=Q(()=>{"use strict";a();Yd=require("@reduxjs/toolkit"),Zd=require("redux-persist");Hc();qe();ns();Qe();Kd={customToasts:[],transactionToasts:[],failTransactionToast:null},Xd=(0,Yd.createSlice)({name:"toastsSlice",initialState:Kd,reducers:{addCustomToast:(n,r)=>{n.customToasts.push(te(O({},r.payload),{type:"custom",toastId:r.payload.toastId||`custom-toast-${n.customToasts.length+1}`}))},removeCustomToast:(n,r)=>{n.customToasts=n.customToasts.filter(i=>i.toastId!==r.payload)},addTransactionToast:(n,r)=>{n.transactionToasts.push({type:"transaction",startTimestamp:Wr(),toastId:r.payload||`custom-toast-${n.transactionToasts.length+1}`})},removeTransactionToast:(n,r)=>{n.transactionToasts=n.transactionToasts.filter(i=>i.toastId!==r.payload)},addFailTransactionToast:(n,r)=>{n.failTransactionToast=te(O({},r.payload),{toastId:Ur})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(ze,()=>Kd),n.addCase(Zd.REHYDRATE,(r,i)=>{var l,h;let c=(h=(l=i.customToasts)==null?void 0:l.filter(T=>!("component"in T)))!=null?h:[];r.customToasts=c})}}),{addCustomToast:YA,removeCustomToast:Do,addTransactionToast:gE,removeTransactionToast:mE,addFailTransactionToast:TE,removeFailTransactionToast:hE}=Xd.actions,hs=Xd.reducer});var Jd,iu,su,au,ZA,ou,Qd,vE,XA,Vr,xs,Ss=Q(()=>{"use strict";a();Jd=require("@reduxjs/toolkit");Qe();iu="Transaction failed",su="Transaction successful",au="Processing transaction",ZA="Transaction submitted",ou={},Qd=(0,Jd.createSlice)({name:"transactionsInfo",initialState:ou,reducers:{setTransactionsDisplayInfo(n,r){let{sessionId:i,transactionsDisplayInfo:c}=r.payload;i!=null&&(n[i]={errorMessage:(c==null?void 0:c.errorMessage)||iu,successMessage:(c==null?void 0:c.successMessage)||su,processingMessage:(c==null?void 0:c.processingMessage)||au,submittedMessage:(c==null?void 0:c.submittedMessage)||ZA,transactionDuration:c==null?void 0:c.transactionDuration})},clearTransactionsInfoForSessionId(n,r){r.payload!=null&&delete n[r.payload]},clearTransactionsInfo:()=>ou},extraReducers:n=>{n.addCase(ze,()=>ou)}}),{clearTransactionsInfo:vE,setTransactionsDisplayInfo:XA,clearTransactionsInfoForSessionId:Vr}=Qd.actions,xs=Qd.reducer});function an(n){return n!=null&&(oI(n)||cI(n))}function Un(n){return n!=null&&(iI(n)||uI(n))}function Bn(n){return n!=null&&(sI(n)||lI(n))}function vs(n){return n!=null&&aI(n)}function oI(n){return n!=null&&JA.includes(n)}function iI(n){return n!=null&&QA.includes(n)}function sI(n){return n!=null&&jA.includes(n)}function aI(n){return n!=null&&eI.includes(n)}function cI(n){return n!=null&&tI.includes(n)}function uI(n){return n!=null&&nI.includes(n)}function lI(n){return n!=null&&rI.includes(n)}var JA,QA,jA,eI,tI,nI,rI,zr=Q(()=>{"use strict";a();Ue();JA=["sent"],QA=["success"],jA=["fail","cancelled","timedOut"],eI=["timedOut"],tI=["pending"],nI=["success"],rI=["fail","invalid"]});var jd,eg,No,pI,tg,Oo,ws,fI,Wn,ng,dI,CE,rg,fr,cn,As,Is=Q(()=>{"use strict";a();jd=require("@reduxjs/toolkit"),eg=require("redux-persist");Ue();zr();Qe();No={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},pI={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},tg=(0,jd.createSlice)({name:"transactionsSlice",initialState:No,reducers:{moveTransactionsToSignedState:(n,r)=>{var A,_;let{sessionId:i,transactions:c,errorMessage:l,status:h,redirectRoute:T}=r.payload,w=((A=n.customTransactionInformationForSessionId)==null?void 0:A[i])||pI;n.signedTransactions[i]={transactions:c,status:h,errorMessage:l,redirectRoute:T,customTransactionInformation:w},((_=n==null?void 0:n.transactionsToSign)==null?void 0:_.sessionId)===i&&(n.transactionsToSign=No.transactionsToSign)},clearSignedTransaction:(n,r)=>{n.signedTransactions[r.payload]&&delete n.signedTransactions[r.payload]},clearTransactionToSign:n=>{n!=null&&n.transactionsToSign&&(n.transactionsToSign=null)},updateSignedTransaction:(n,r)=>{n.signedTransactions=O(O({},n.signedTransactions),r.payload)},updateSignedTransactions:(n,r)=>{let{sessionId:i,status:c,errorMessage:l,transactions:h}=r.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=c,l!=null&&(n.signedTransactions[i].errorMessage=l),h!=null&&(n.signedTransactions[i].transactions=h))},updateSignedTransactionStatus:(n,r)=>{var w,A,_,L,P,M;let{sessionId:i,status:c,errorMessage:l,transactionHash:h}=r.payload,T=(A=(w=n.signedTransactions)==null?void 0:w[i])==null?void 0:A.transactions;if(T!=null){n.signedTransactions[i].transactions=T.map(G=>G.hash===h?te(O({},G),{status:c,errorMessage:l}):G);let D=(L=(_=n.signedTransactions[i])==null?void 0:_.transactions)==null?void 0:L.every(G=>Un(G.status)),N=(M=(P=n.signedTransactions[i])==null?void 0:P.transactions)==null?void 0:M.every(G=>Bn(G.status));D&&(n.signedTransactions[i].status="success"),N&&(n.signedTransactions[i].status="fail")}},setTransactionsToSign:(n,r)=>{n.transactionsToSign=r.payload;let{sessionId:i,customTransactionInformation:c}=r.payload;n.customTransactionInformationForSessionId[i]=c,n.signTransactionsError=null},clearAllTransactionsToSign:n=>{n.transactionsToSign=No.transactionsToSign,n.signTransactionsError=null},clearAllSignedTransactions:n=>{n.signedTransactions=No.signedTransactions},setSignTransactionsError:(n,r)=>{n.signTransactionsError=r.payload},setSignTransactionsCancelMessage:(n,r)=>{n.signTransactionsCancelMessage=r.payload}},extraReducers:n=>{n.addCase(ze,()=>No),n.addCase(eg.REHYDRATE,(r,i)=>{var T;if(r.signTransactionsCancelMessage=null,!((T=i.payload)!=null&&T.transactions))return;let{signedTransactions:c,customTransactionInformationForSessionId:l}=i.payload.transactions,h=Object.entries(c).reduce((w,[A,_])=>{let L=new Date(A),P=new Date;return P.setHours(P.getHours()+5),P-L>0||(w[A]=_),w},{});l!=null&&(r.customTransactionInformationForSessionId=l),c!=null&&(r.signedTransactions=h)})}}),{updateSignedTransactionStatus:Oo,updateSignedTransactions:ws,setTransactionsToSign:fI,clearAllTransactionsToSign:Wn,clearAllSignedTransactions:ng,clearSignedTransaction:dI,clearTransactionToSign:CE,setSignTransactionsError:rg,setSignTransactionsCancelMessage:fr,moveTransactionsToSignedState:cn}=tg.actions,As=tg.reducer});var Ee=Q(()=>{"use strict";a();ss();ls();fs();gs();Ts();ys();Ss();Is()});var cu=Q(()=>{"use strict";a()});var cg,ag,ug,e1,t1,n1,r1,o1,i1,lg,pg=Q(()=>{"use strict";a();cg=require("@reduxjs/toolkit");Qe();ag={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ug=(0,cg.createSlice)({name:"dappModalsSlice",initialState:ag,reducers:{setDappModalVisibility:(n,r)=>{n.visible=r.payload},setDappModalHeaderVisibility:(n,r)=>{n.modal.showHeader=r.payload},setDappModalFooterVisibility:(n,r)=>{n.modal.showFooter=r.payload},setDappModalHeaderText:(n,r)=>{n.modal.headerText=r.payload},setDappModalFooterText:(n,r)=>{n.modal.footerText=r.payload},setDappModalConfig:(n,r)=>{n.modal=O({},r.payload)}},extraReducers:n=>{n.addCase(ze,()=>ag)}}),{setDappModalVisibility:e1,setDappModalHeaderVisibility:t1,setDappModalFooterVisibility:n1,setDappModalHeaderText:r1,setDappModalFooterText:o1,setDappModalConfig:i1}=ug.actions,lg=ug.reducer});var fg,hI,yI,dr,Es=Q(()=>{"use strict";a();fg=require("@reduxjs/toolkit");cu();ss();pg();ls();fs();gs();Ts();ys();Ss();Is();hI={["account"]:is,["dappModal"]:lg,["loginInfo"]:us,["modals"]:ps,["networkConfig"]:ds,["signedMessageInfo"]:ms,["toasts"]:hs,["transactionsInfo"]:xs,["transactions"]:As},yI=(n={})=>(0,fg.combineReducers)(O(O({},hI),n)),dr=yI});var Tg={};rr(Tg,{default:()=>DI,sessionStorageReducers:()=>uu});function Gn(n,r=[]){return{key:n,version:1,storage:gg.default,blacklist:r}}var It,dg,gg,xI,Fo,SI,vI,wI,AI,II,_I,LI,bI,EI,mg,kI,uu,CI,PI,RI,DI,hg=Q(()=>{"use strict";a();It=require("redux-persist"),dg=ae(require("redux-persist/lib/storage")),gg=ae(require("redux-persist/lib/storage/session"));Es();Ee();ss();ls();fs();gs();Ts();ys();Ss();Is();cu();xI={persistReducersStorageType:"localStorage"},Fo={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},SI=Gn(Fo["account"]),vI=Gn(Fo["loginInfo"]),wI=Gn(Fo["modals"]),AI=Gn(Fo["networkConfig"]),II={2:n=>te(O({},n),{networkConfig:nu})};_I=Gn("sdk-dapp-transactionsInfo"),LI=Gn("sdk-dapp-transactions",["transactionsToSign"]),bI=Gn("sdk-dapp-toasts"),EI=Gn("sdk-dapp-signedMessageInfo"),mg={key:"sdk-dapp-store",version:2,storage:dg.default,whitelist:Object.keys(Fo),migrate:(0,It.createMigrate)(II,{debug:!1})},kI=te(O({},mg),{whitelist:[]}),uu={["toasts"]:(0,It.persistReducer)(bI,hs),["transactions"]:(0,It.persistReducer)(LI,As),["transactionsInfo"]:(0,It.persistReducer)(_I,xs),["signedMessageInfo"]:(0,It.persistReducer)(EI,ms)},CI=te(O({},uu),{["account"]:(0,It.persistReducer)(SI,is),["loginInfo"]:(0,It.persistReducer)(vI,us),["modals"]:(0,It.persistReducer)(wI,ps),["networkConfig"]:(0,It.persistReducer)(AI,ds)}),PI=xI.persistReducersStorageType==="localStorage",RI=PI?(0,It.persistReducer)(mg,dr(uu)):(0,It.persistReducer)(kI,dr(CI)),DI=RI});var yg={};rr(yg,{default:()=>NI});var NI,xg=Q(()=>{"use strict";a();Es();NI=dr()});var Sg={};rr(Sg,{default:()=>MI});var Ot,OI,MI,vg=Q(()=>{"use strict";a();Ot=require("redux-persist"),OI=[Ot.FLUSH,Ot.REHYDRATE,Ot.PAUSE,Ot.PERSIST,Ot.PURGE,Ot.REGISTER],MI=OI});var Ig={};rr(Ig,{default:()=>Ag});function Ag(n){return(0,wg.persistStore)(n)}var wg,_g=Q(()=>{"use strict";a();wg=require("redux-persist")});var Wm=Lo((to,Jo)=>{a();(function(){var n,r="4.17.21",i=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",h="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",w=500,A="__lodash_placeholder__",_=1,L=2,P=4,M=1,D=2,N=1,G=2,Z=4,z=8,B=16,V=32,ne=64,pe=128,Re=256,ce=512,et=30,tt="...",nt=800,Ce=16,Be=1,st=2,Tt=3,ye=1/0,we=9007199254740991,he=17976931348623157e292,ie=0/0,de=4294967295,at=de-1,Ie=de>>>1,j=[["ary",pe],["bind",N],["bindKey",G],["curry",z],["curryRight",B],["flip",ce],["partial",V],["partialRight",ne],["rearg",Re]],K="[object Arguments]",ue="[object Array]",Ye="[object AsyncFunction]",Ut="[object Boolean]",Xt="[object Date]",Kn="[object DOMException]",ri="[object Error]",oi="[object Function]",qu="[object GeneratorFunction]",Bt="[object Map]",oo="[object Number]",TT="[object Null]",ln="[object Object]",zu="[object Promise]",hT="[object Proxy]",io="[object RegExp]",Wt="[object Set]",so="[object String]",ii="[object Symbol]",yT="[object Undefined]",ao="[object WeakMap]",xT="[object WeakSet]",co="[object ArrayBuffer]",vr="[object DataView]",aa="[object Float32Array]",ca="[object Float64Array]",ua="[object Int8Array]",la="[object Int16Array]",pa="[object Int32Array]",fa="[object Uint8Array]",da="[object Uint8ClampedArray]",ga="[object Uint16Array]",ma="[object Uint32Array]",ST=/\b__p \+= '';/g,vT=/\b(__p \+=) '' \+/g,wT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ku=/&(?:amp|lt|gt|quot|#39);/g,Yu=/[&<>"']/g,AT=RegExp(Ku.source),IT=RegExp(Yu.source),_T=/<%-([\s\S]+?)%>/g,LT=/<%([\s\S]+?)%>/g,Zu=/<%=([\s\S]+?)%>/g,bT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ET=/^\w*$/,kT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,CT=RegExp(Ta.source),ha=/^\s+/,PT=/\s/,RT=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,DT=/\{\n\/\* \[wrapped with (.+)\] \*/,NT=/,? & /,OT=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,MT=/[()=,{}\[\]\/\s]/,FT=/\\(\\)?/g,UT=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xu=/\w*$/,BT=/^[-+]0x[0-9a-f]+$/i,WT=/^0b[01]+$/i,GT=/^\[object .+?Constructor\]$/,$T=/^0o[0-7]+$/i,HT=/^(?:0|[1-9]\d*)$/,VT=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,si=/($^)/,qT=/['\n\r\u2028\u2029\\]/g,ai="\\ud800-\\udfff",zT="\\u0300-\\u036f",KT="\\ufe20-\\ufe2f",YT="\\u20d0-\\u20ff",Ju=zT+KT+YT,Qu="\\u2700-\\u27bf",ju="a-z\\xdf-\\xf6\\xf8-\\xff",ZT="\\xac\\xb1\\xd7\\xf7",XT="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",JT="\\u2000-\\u206f",QT=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",el="A-Z\\xc0-\\xd6\\xd8-\\xde",tl="\\ufe0e\\ufe0f",nl=ZT+XT+JT+QT,ya="['\u2019]",jT="["+ai+"]",rl="["+nl+"]",ci="["+Ju+"]",ol="\\d+",eh="["+Qu+"]",il="["+ju+"]",sl="[^"+ai+nl+ol+Qu+ju+el+"]",xa="\\ud83c[\\udffb-\\udfff]",th="(?:"+ci+"|"+xa+")",al="[^"+ai+"]",Sa="(?:\\ud83c[\\udde6-\\uddff]){2}",va="[\\ud800-\\udbff][\\udc00-\\udfff]",wr="["+el+"]",cl="\\u200d",ul="(?:"+il+"|"+sl+")",nh="(?:"+wr+"|"+sl+")",ll="(?:"+ya+"(?:d|ll|m|re|s|t|ve))?",pl="(?:"+ya+"(?:D|LL|M|RE|S|T|VE))?",fl=th+"?",dl="["+tl+"]?",rh="(?:"+cl+"(?:"+[al,Sa,va].join("|")+")"+dl+fl+")*",oh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ih="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gl=dl+fl+rh,sh="(?:"+[eh,Sa,va].join("|")+")"+gl,ah="(?:"+[al+ci+"?",ci,Sa,va,jT].join("|")+")",ch=RegExp(ya,"g"),uh=RegExp(ci,"g"),wa=RegExp(xa+"(?="+xa+")|"+ah+gl,"g"),lh=RegExp([wr+"?"+il+"+"+ll+"(?="+[rl,wr,"$"].join("|")+")",nh+"+"+pl+"(?="+[rl,wr+ul,"$"].join("|")+")",wr+"?"+ul+"+"+ll,wr+"+"+pl,ih,oh,ol,sh].join("|"),"g"),ph=RegExp("["+cl+ai+Ju+tl+"]"),fh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gh=-1,ke={};ke[aa]=ke[ca]=ke[ua]=ke[la]=ke[pa]=ke[fa]=ke[da]=ke[ga]=ke[ma]=!0,ke[K]=ke[ue]=ke[co]=ke[Ut]=ke[vr]=ke[Xt]=ke[ri]=ke[oi]=ke[Bt]=ke[oo]=ke[ln]=ke[io]=ke[Wt]=ke[so]=ke[ao]=!1;var be={};be[K]=be[ue]=be[co]=be[vr]=be[Ut]=be[Xt]=be[aa]=be[ca]=be[ua]=be[la]=be[pa]=be[Bt]=be[oo]=be[ln]=be[io]=be[Wt]=be[so]=be[ii]=be[fa]=be[da]=be[ga]=be[ma]=!0,be[ri]=be[oi]=be[ao]=!1;var mh={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Th={"&":"&","<":"<",">":">",'"':""","'":"'"},hh={"&":"&","<":"<",">":">",""":'"',"'":"'"},yh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xh=parseFloat,Sh=parseInt,ml=typeof g=="object"&&g&&g.Object===Object&&g,vh=typeof self=="object"&&self&&self.Object===Object&&self,$e=ml||vh||Function("return this")(),Aa=typeof to=="object"&&to&&!to.nodeType&&to,Yn=Aa&&typeof Jo=="object"&&Jo&&!Jo.nodeType&&Jo,Tl=Yn&&Yn.exports===Aa,Ia=Tl&&ml.process,Lt=function(){try{var S=Yn&&Yn.require&&Yn.require("util").types;return S||Ia&&Ia.binding&&Ia.binding("util")}catch(b){}}(),hl=Lt&&Lt.isArrayBuffer,yl=Lt&&Lt.isDate,xl=Lt&&Lt.isMap,Sl=Lt&&Lt.isRegExp,vl=Lt&&Lt.isSet,wl=Lt&&Lt.isTypedArray;function ht(S,b,I){switch(I.length){case 0:return S.call(b);case 1:return S.call(b,I[0]);case 2:return S.call(b,I[0],I[1]);case 3:return S.call(b,I[0],I[1],I[2])}return S.apply(b,I)}function wh(S,b,I,W){for(var re=-1,xe=S==null?0:S.length;++re<xe;){var We=S[re];b(W,We,I(We),S)}return W}function bt(S,b){for(var I=-1,W=S==null?0:S.length;++I<W&&b(S[I],I,S)!==!1;);return S}function Ah(S,b){for(var I=S==null?0:S.length;I--&&b(S[I],I,S)!==!1;);return S}function Al(S,b){for(var I=-1,W=S==null?0:S.length;++I<W;)if(!b(S[I],I,S))return!1;return!0}function bn(S,b){for(var I=-1,W=S==null?0:S.length,re=0,xe=[];++I<W;){var We=S[I];b(We,I,S)&&(xe[re++]=We)}return xe}function ui(S,b){var I=S==null?0:S.length;return!!I&&Ar(S,b,0)>-1}function _a(S,b,I){for(var W=-1,re=S==null?0:S.length;++W<re;)if(I(b,S[W]))return!0;return!1}function Pe(S,b){for(var I=-1,W=S==null?0:S.length,re=Array(W);++I<W;)re[I]=b(S[I],I,S);return re}function En(S,b){for(var I=-1,W=b.length,re=S.length;++I<W;)S[re+I]=b[I];return S}function La(S,b,I,W){var re=-1,xe=S==null?0:S.length;for(W&&xe&&(I=S[++re]);++re<xe;)I=b(I,S[re],re,S);return I}function Ih(S,b,I,W){var re=S==null?0:S.length;for(W&&re&&(I=S[--re]);re--;)I=b(I,S[re],re,S);return I}function ba(S,b){for(var I=-1,W=S==null?0:S.length;++I<W;)if(b(S[I],I,S))return!0;return!1}var _h=Ea("length");function Lh(S){return S.split("")}function bh(S){return S.match(OT)||[]}function Il(S,b,I){var W;return I(S,function(re,xe,We){if(b(re,xe,We))return W=xe,!1}),W}function li(S,b,I,W){for(var re=S.length,xe=I+(W?1:-1);W?xe--:++xe<re;)if(b(S[xe],xe,S))return xe;return-1}function Ar(S,b,I){return b===b?Bh(S,b,I):li(S,_l,I)}function Eh(S,b,I,W){for(var re=I-1,xe=S.length;++re<xe;)if(W(S[re],b))return re;return-1}function _l(S){return S!==S}function Ll(S,b){var I=S==null?0:S.length;return I?Ca(S,b)/I:ie}function Ea(S){return function(b){return b==null?n:b[S]}}function ka(S){return function(b){return S==null?n:S[b]}}function bl(S,b,I,W,re){return re(S,function(xe,We,_e){I=W?(W=!1,xe):b(I,xe,We,_e)}),I}function kh(S,b){var I=S.length;for(S.sort(b);I--;)S[I]=S[I].value;return S}function Ca(S,b){for(var I,W=-1,re=S.length;++W<re;){var xe=b(S[W]);xe!==n&&(I=I===n?xe:I+xe)}return I}function Pa(S,b){for(var I=-1,W=Array(S);++I<S;)W[I]=b(I);return W}function Ch(S,b){return Pe(b,function(I){return[I,S[I]]})}function El(S){return S&&S.slice(0,Rl(S)+1).replace(ha,"")}function yt(S){return function(b){return S(b)}}function Ra(S,b){return Pe(b,function(I){return S[I]})}function uo(S,b){return S.has(b)}function kl(S,b){for(var I=-1,W=S.length;++I<W&&Ar(b,S[I],0)>-1;);return I}function Cl(S,b){for(var I=S.length;I--&&Ar(b,S[I],0)>-1;);return I}function Ph(S,b){for(var I=S.length,W=0;I--;)S[I]===b&&++W;return W}var Rh=ka(mh),Dh=ka(Th);function Nh(S){return"\\"+yh[S]}function Oh(S,b){return S==null?n:S[b]}function Ir(S){return ph.test(S)}function Mh(S){return fh.test(S)}function Fh(S){for(var b,I=[];!(b=S.next()).done;)I.push(b.value);return I}function Da(S){var b=-1,I=Array(S.size);return S.forEach(function(W,re){I[++b]=[re,W]}),I}function Pl(S,b){return function(I){return S(b(I))}}function kn(S,b){for(var I=-1,W=S.length,re=0,xe=[];++I<W;){var We=S[I];(We===b||We===A)&&(S[I]=A,xe[re++]=I)}return xe}function pi(S){var b=-1,I=Array(S.size);return S.forEach(function(W){I[++b]=W}),I}function Uh(S){var b=-1,I=Array(S.size);return S.forEach(function(W){I[++b]=[W,W]}),I}function Bh(S,b,I){for(var W=I-1,re=S.length;++W<re;)if(S[W]===b)return W;return-1}function Wh(S,b,I){for(var W=I+1;W--;)if(S[W]===b)return W;return W}function _r(S){return Ir(S)?$h(S):_h(S)}function Gt(S){return Ir(S)?Hh(S):Lh(S)}function Rl(S){for(var b=S.length;b--&&PT.test(S.charAt(b)););return b}var Gh=ka(hh);function $h(S){for(var b=wa.lastIndex=0;wa.test(S);)++b;return b}function Hh(S){return S.match(wa)||[]}function Vh(S){return S.match(lh)||[]}var qh=function S(b){b=b==null?$e:Cn.defaults($e.Object(),b,Cn.pick($e,dh));var I=b.Array,W=b.Date,re=b.Error,xe=b.Function,We=b.Math,_e=b.Object,Na=b.RegExp,zh=b.String,Et=b.TypeError,fi=I.prototype,Kh=xe.prototype,Lr=_e.prototype,di=b["__core-js_shared__"],gi=Kh.toString,ve=Lr.hasOwnProperty,Yh=0,Dl=function(){var e=/[^.]+$/.exec(di&&di.keys&&di.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mi=Lr.toString,Zh=gi.call(_e),Xh=$e._,Jh=Na("^"+gi.call(ve).replace(Ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ti=Tl?b.Buffer:n,Pn=b.Symbol,hi=b.Uint8Array,Nl=Ti?Ti.allocUnsafe:n,yi=Pl(_e.getPrototypeOf,_e),Ol=_e.create,Ml=Lr.propertyIsEnumerable,xi=fi.splice,Fl=Pn?Pn.isConcatSpreadable:n,lo=Pn?Pn.iterator:n,Zn=Pn?Pn.toStringTag:n,Si=function(){try{var e=er(_e,"defineProperty");return e({},"",{}),e}catch(t){}}(),Qh=b.clearTimeout!==$e.clearTimeout&&b.clearTimeout,jh=W&&W.now!==$e.Date.now&&W.now,ey=b.setTimeout!==$e.setTimeout&&b.setTimeout,vi=We.ceil,wi=We.floor,Oa=_e.getOwnPropertySymbols,ty=Ti?Ti.isBuffer:n,Ul=b.isFinite,ny=fi.join,ry=Pl(_e.keys,_e),Ge=We.max,Ze=We.min,oy=W.now,iy=b.parseInt,Bl=We.random,sy=fi.reverse,Ma=er(b,"DataView"),po=er(b,"Map"),Fa=er(b,"Promise"),br=er(b,"Set"),fo=er(b,"WeakMap"),go=er(_e,"create"),Ai=fo&&new fo,Er={},ay=tr(Ma),cy=tr(po),uy=tr(Fa),ly=tr(br),py=tr(fo),Ii=Pn?Pn.prototype:n,mo=Ii?Ii.valueOf:n,Wl=Ii?Ii.toString:n;function p(e){if(Ne(e)&&!oe(e)&&!(e instanceof me)){if(e instanceof kt)return e;if(ve.call(e,"__wrapped__"))return Gp(e)}return new kt(e)}var kr=function(){function e(){}return function(t){if(!De(t))return{};if(Ol)return Ol(t);e.prototype=t;var o=new e;return e.prototype=n,o}}();function _i(){}function kt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}p.templateSettings={escape:_T,evaluate:LT,interpolate:Zu,variable:"",imports:{_:p}},p.prototype=_i.prototype,p.prototype.constructor=p,kt.prototype=kr(_i.prototype),kt.prototype.constructor=kt;function me(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=de,this.__views__=[]}function fy(){var e=new me(this.__wrapped__);return e.__actions__=ct(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ct(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ct(this.__views__),e}function dy(){if(this.__filtered__){var e=new me(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function gy(){var e=this.__wrapped__.value(),t=this.__dir__,o=oe(e),s=t<0,u=o?e.length:0,f=Lx(0,u,this.__views__),y=f.start,x=f.end,v=x-y,k=s?x:y-1,C=this.__iteratees__,R=C.length,U=0,q=Ze(v,this.__takeCount__);if(!o||!s&&u==v&&q==v)return lp(e,this.__actions__);var X=[];e:for(;v--&&U<q;){k+=t;for(var le=-1,J=e[k];++le<R;){var ge=C[le],Te=ge.iteratee,vt=ge.type,it=Te(J);if(vt==st)J=it;else if(!it){if(vt==Be)continue e;break e}}X[U++]=J}return X}me.prototype=kr(_i.prototype),me.prototype.constructor=me;function Xn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var s=e[t];this.set(s[0],s[1])}}function my(){this.__data__=go?go(null):{},this.size=0}function Ty(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function hy(e){var t=this.__data__;if(go){var o=t[e];return o===T?n:o}return ve.call(t,e)?t[e]:n}function yy(e){var t=this.__data__;return go?t[e]!==n:ve.call(t,e)}function xy(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=go&&t===n?T:t,this}Xn.prototype.clear=my,Xn.prototype.delete=Ty,Xn.prototype.get=hy,Xn.prototype.has=yy,Xn.prototype.set=xy;function pn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var s=e[t];this.set(s[0],s[1])}}function Sy(){this.__data__=[],this.size=0}function vy(e){var t=this.__data__,o=Li(t,e);if(o<0)return!1;var s=t.length-1;return o==s?t.pop():xi.call(t,o,1),--this.size,!0}function wy(e){var t=this.__data__,o=Li(t,e);return o<0?n:t[o][1]}function Ay(e){return Li(this.__data__,e)>-1}function Iy(e,t){var o=this.__data__,s=Li(o,e);return s<0?(++this.size,o.push([e,t])):o[s][1]=t,this}pn.prototype.clear=Sy,pn.prototype.delete=vy,pn.prototype.get=wy,pn.prototype.has=Ay,pn.prototype.set=Iy;function fn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var s=e[t];this.set(s[0],s[1])}}function _y(){this.size=0,this.__data__={hash:new Xn,map:new(po||pn),string:new Xn}}function Ly(e){var t=Ui(this,e).delete(e);return this.size-=t?1:0,t}function by(e){return Ui(this,e).get(e)}function Ey(e){return Ui(this,e).has(e)}function ky(e,t){var o=Ui(this,e),s=o.size;return o.set(e,t),this.size+=o.size==s?0:1,this}fn.prototype.clear=_y,fn.prototype.delete=Ly,fn.prototype.get=by,fn.prototype.has=Ey,fn.prototype.set=ky;function Jn(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new fn;++t<o;)this.add(e[t])}function Cy(e){return this.__data__.set(e,T),this}function Py(e){return this.__data__.has(e)}Jn.prototype.add=Jn.prototype.push=Cy,Jn.prototype.has=Py;function $t(e){var t=this.__data__=new pn(e);this.size=t.size}function Ry(){this.__data__=new pn,this.size=0}function Dy(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Ny(e){return this.__data__.get(e)}function Oy(e){return this.__data__.has(e)}function My(e,t){var o=this.__data__;if(o instanceof pn){var s=o.__data__;if(!po||s.length<i-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new fn(s)}return o.set(e,t),this.size=o.size,this}$t.prototype.clear=Ry,$t.prototype.delete=Dy,$t.prototype.get=Ny,$t.prototype.has=Oy,$t.prototype.set=My;function Gl(e,t){var o=oe(e),s=!o&&nr(e),u=!o&&!s&&Mn(e),f=!o&&!s&&!u&&Dr(e),y=o||s||u||f,x=y?Pa(e.length,zh):[],v=x.length;for(var k in e)(t||ve.call(e,k))&&!(y&&(k=="length"||u&&(k=="offset"||k=="parent")||f&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||Tn(k,v)))&&x.push(k);return x}function $l(e){var t=e.length;return t?e[Ya(0,t-1)]:n}function Fy(e,t){return Bi(ct(e),Qn(t,0,e.length))}function Uy(e){return Bi(ct(e))}function Ua(e,t,o){(o!==n&&!Ht(e[t],o)||o===n&&!(t in e))&&dn(e,t,o)}function To(e,t,o){var s=e[t];(!(ve.call(e,t)&&Ht(s,o))||o===n&&!(t in e))&&dn(e,t,o)}function Li(e,t){for(var o=e.length;o--;)if(Ht(e[o][0],t))return o;return-1}function By(e,t,o,s){return Rn(e,function(u,f,y){t(s,u,o(u),y)}),s}function Hl(e,t){return e&&Qt(t,He(t),e)}function Wy(e,t){return e&&Qt(t,lt(t),e)}function dn(e,t,o){t=="__proto__"&&Si?Si(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function Ba(e,t){for(var o=-1,s=t.length,u=I(s),f=e==null;++o<s;)u[o]=f?n:xc(e,t[o]);return u}function Qn(e,t,o){return e===e&&(o!==n&&(e=e<=o?e:o),t!==n&&(e=e>=t?e:t)),e}function Ct(e,t,o,s,u,f){var y,x=t&_,v=t&L,k=t&P;if(o&&(y=u?o(e,s,u,f):o(e)),y!==n)return y;if(!De(e))return e;var C=oe(e);if(C){if(y=Ex(e),!x)return ct(e,y)}else{var R=Xe(e),U=R==oi||R==qu;if(Mn(e))return dp(e,x);if(R==ln||R==K||U&&!u){if(y=v||U?{}:Rp(e),!x)return v?hx(e,Wy(y,e)):Tx(e,Hl(y,e))}else{if(!be[R])return u?e:{};y=kx(e,R,x)}}f||(f=new $t);var q=f.get(e);if(q)return q;f.set(e,y),cf(e)?e.forEach(function(J){y.add(Ct(J,t,o,J,e,f))}):sf(e)&&e.forEach(function(J,ge){y.set(ge,Ct(J,t,o,ge,e,f))});var X=k?v?ic:oc:v?lt:He,le=C?n:X(e);return bt(le||e,function(J,ge){le&&(ge=J,J=e[ge]),To(y,ge,Ct(J,t,o,ge,e,f))}),y}function Gy(e){var t=He(e);return function(o){return Vl(o,e,t)}}function Vl(e,t,o){var s=o.length;if(e==null)return!s;for(e=_e(e);s--;){var u=o[s],f=t[u],y=e[u];if(y===n&&!(u in e)||!f(y))return!1}return!0}function ql(e,t,o){if(typeof e!="function")throw new Et(l);return Ao(function(){e.apply(n,o)},t)}function ho(e,t,o,s){var u=-1,f=ui,y=!0,x=e.length,v=[],k=t.length;if(!x)return v;o&&(t=Pe(t,yt(o))),s?(f=_a,y=!1):t.length>=i&&(f=uo,y=!1,t=new Jn(t));e:for(;++u<x;){var C=e[u],R=o==null?C:o(C);if(C=s||C!==0?C:0,y&&R===R){for(var U=k;U--;)if(t[U]===R)continue e;v.push(C)}else f(t,R,s)||v.push(C)}return v}var Rn=yp(Jt),zl=yp(Ga,!0);function $y(e,t){var o=!0;return Rn(e,function(s,u,f){return o=!!t(s,u,f),o}),o}function bi(e,t,o){for(var s=-1,u=e.length;++s<u;){var f=e[s],y=t(f);if(y!=null&&(x===n?y===y&&!St(y):o(y,x)))var x=y,v=f}return v}function Hy(e,t,o,s){var u=e.length;for(o=se(o),o<0&&(o=-o>u?0:u+o),s=s===n||s>u?u:se(s),s<0&&(s+=u),s=o>s?0:lf(s);o<s;)e[o++]=t;return e}function Kl(e,t){var o=[];return Rn(e,function(s,u,f){t(s,u,f)&&o.push(s)}),o}function Ke(e,t,o,s,u){var f=-1,y=e.length;for(o||(o=Px),u||(u=[]);++f<y;){var x=e[f];t>0&&o(x)?t>1?Ke(x,t-1,o,s,u):En(u,x):s||(u[u.length]=x)}return u}var Wa=xp(),Yl=xp(!0);function Jt(e,t){return e&&Wa(e,t,He)}function Ga(e,t){return e&&Yl(e,t,He)}function Ei(e,t){return bn(t,function(o){return hn(e[o])})}function jn(e,t){t=Nn(t,e);for(var o=0,s=t.length;e!=null&&o<s;)e=e[jt(t[o++])];return o&&o==s?e:n}function Zl(e,t,o){var s=t(e);return oe(e)?s:En(s,o(e))}function rt(e){return e==null?e===n?yT:TT:Zn&&Zn in _e(e)?_x(e):Ux(e)}function $a(e,t){return e>t}function Vy(e,t){return e!=null&&ve.call(e,t)}function qy(e,t){return e!=null&&t in _e(e)}function zy(e,t,o){return e>=Ze(t,o)&&e<Ge(t,o)}function Ha(e,t,o){for(var s=o?_a:ui,u=e[0].length,f=e.length,y=f,x=I(f),v=1/0,k=[];y--;){var C=e[y];y&&t&&(C=Pe(C,yt(t))),v=Ze(C.length,v),x[y]=!o&&(t||u>=120&&C.length>=120)?new Jn(y&&C):n}C=e[0];var R=-1,U=x[0];e:for(;++R<u&&k.length<v;){var q=C[R],X=t?t(q):q;if(q=o||q!==0?q:0,!(U?uo(U,X):s(k,X,o))){for(y=f;--y;){var le=x[y];if(!(le?uo(le,X):s(e[y],X,o)))continue e}U&&U.push(X),k.push(q)}}return k}function Ky(e,t,o,s){return Jt(e,function(u,f,y){t(s,o(u),f,y)}),s}function yo(e,t,o){t=Nn(t,e),e=Mp(e,t);var s=e==null?e:e[jt(Rt(t))];return s==null?n:ht(s,e,o)}function Xl(e){return Ne(e)&&rt(e)==K}function Yy(e){return Ne(e)&&rt(e)==co}function Zy(e){return Ne(e)&&rt(e)==Xt}function xo(e,t,o,s,u){return e===t?!0:e==null||t==null||!Ne(e)&&!Ne(t)?e!==e&&t!==t:Xy(e,t,o,s,xo,u)}function Xy(e,t,o,s,u,f){var y=oe(e),x=oe(t),v=y?ue:Xe(e),k=x?ue:Xe(t);v=v==K?ln:v,k=k==K?ln:k;var C=v==ln,R=k==ln,U=v==k;if(U&&Mn(e)){if(!Mn(t))return!1;y=!0,C=!1}if(U&&!C)return f||(f=new $t),y||Dr(e)?kp(e,t,o,s,u,f):Ax(e,t,v,o,s,u,f);if(!(o&M)){var q=C&&ve.call(e,"__wrapped__"),X=R&&ve.call(t,"__wrapped__");if(q||X){var le=q?e.value():e,J=X?t.value():t;return f||(f=new $t),u(le,J,o,s,f)}}return U?(f||(f=new $t),Ix(e,t,o,s,u,f)):!1}function Jy(e){return Ne(e)&&Xe(e)==Bt}function Va(e,t,o,s){var u=o.length,f=u,y=!s;if(e==null)return!f;for(e=_e(e);u--;){var x=o[u];if(y&&x[2]?x[1]!==e[x[0]]:!(x[0]in e))return!1}for(;++u<f;){x=o[u];var v=x[0],k=e[v],C=x[1];if(y&&x[2]){if(k===n&&!(v in e))return!1}else{var R=new $t;if(s)var U=s(k,C,v,e,t,R);if(!(U===n?xo(C,k,M|D,s,R):U))return!1}}return!0}function Jl(e){if(!De(e)||Dx(e))return!1;var t=hn(e)?Jh:GT;return t.test(tr(e))}function Qy(e){return Ne(e)&&rt(e)==io}function jy(e){return Ne(e)&&Xe(e)==Wt}function ex(e){return Ne(e)&&qi(e.length)&&!!ke[rt(e)]}function Ql(e){return typeof e=="function"?e:e==null?pt:typeof e=="object"?oe(e)?tp(e[0],e[1]):ep(e):vf(e)}function qa(e){if(!wo(e))return ry(e);var t=[];for(var o in _e(e))ve.call(e,o)&&o!="constructor"&&t.push(o);return t}function tx(e){if(!De(e))return Fx(e);var t=wo(e),o=[];for(var s in e)s=="constructor"&&(t||!ve.call(e,s))||o.push(s);return o}function za(e,t){return e<t}function jl(e,t){var o=-1,s=ut(e)?I(e.length):[];return Rn(e,function(u,f,y){s[++o]=t(u,f,y)}),s}function ep(e){var t=ac(e);return t.length==1&&t[0][2]?Np(t[0][0],t[0][1]):function(o){return o===e||Va(o,e,t)}}function tp(e,t){return uc(e)&&Dp(t)?Np(jt(e),t):function(o){var s=xc(o,e);return s===n&&s===t?Sc(o,e):xo(t,s,M|D)}}function ki(e,t,o,s,u){e!==t&&Wa(t,function(f,y){if(u||(u=new $t),De(f))nx(e,t,y,o,ki,s,u);else{var x=s?s(pc(e,y),f,y+"",e,t,u):n;x===n&&(x=f),Ua(e,y,x)}},lt)}function nx(e,t,o,s,u,f,y){var x=pc(e,o),v=pc(t,o),k=y.get(v);if(k){Ua(e,o,k);return}var C=f?f(x,v,o+"",e,t,y):n,R=C===n;if(R){var U=oe(v),q=!U&&Mn(v),X=!U&&!q&&Dr(v);C=v,U||q||X?oe(x)?C=x:Oe(x)?C=ct(x):q?(R=!1,C=dp(v,!0)):X?(R=!1,C=gp(v,!0)):C=[]:Io(v)||nr(v)?(C=x,nr(x)?C=pf(x):(!De(x)||hn(x))&&(C=Rp(v))):R=!1}R&&(y.set(v,C),u(C,v,s,f,y),y.delete(v)),Ua(e,o,C)}function np(e,t){var o=e.length;if(!!o)return t+=t<0?o:0,Tn(t,o)?e[t]:n}function rp(e,t,o){t.length?t=Pe(t,function(f){return oe(f)?function(y){return jn(y,f.length===1?f[0]:f)}:f}):t=[pt];var s=-1;t=Pe(t,yt(Y()));var u=jl(e,function(f,y,x){var v=Pe(t,function(k){return k(f)});return{criteria:v,index:++s,value:f}});return kh(u,function(f,y){return mx(f,y,o)})}function rx(e,t){return op(e,t,function(o,s){return Sc(e,s)})}function op(e,t,o){for(var s=-1,u=t.length,f={};++s<u;){var y=t[s],x=jn(e,y);o(x,y)&&So(f,Nn(y,e),x)}return f}function ox(e){return function(t){return jn(t,e)}}function Ka(e,t,o,s){var u=s?Eh:Ar,f=-1,y=t.length,x=e;for(e===t&&(t=ct(t)),o&&(x=Pe(e,yt(o)));++f<y;)for(var v=0,k=t[f],C=o?o(k):k;(v=u(x,C,v,s))>-1;)x!==e&&xi.call(x,v,1),xi.call(e,v,1);return e}function ip(e,t){for(var o=e?t.length:0,s=o-1;o--;){var u=t[o];if(o==s||u!==f){var f=u;Tn(u)?xi.call(e,u,1):Ja(e,u)}}return e}function Ya(e,t){return e+wi(Bl()*(t-e+1))}function ix(e,t,o,s){for(var u=-1,f=Ge(vi((t-e)/(o||1)),0),y=I(f);f--;)y[s?f:++u]=e,e+=o;return y}function Za(e,t){var o="";if(!e||t<1||t>we)return o;do t%2&&(o+=e),t=wi(t/2),t&&(e+=e);while(t);return o}function fe(e,t){return fc(Op(e,t,pt),e+"")}function sx(e){return $l(Nr(e))}function ax(e,t){var o=Nr(e);return Bi(o,Qn(t,0,o.length))}function So(e,t,o,s){if(!De(e))return e;t=Nn(t,e);for(var u=-1,f=t.length,y=f-1,x=e;x!=null&&++u<f;){var v=jt(t[u]),k=o;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(u!=y){var C=x[v];k=s?s(C,v,x):n,k===n&&(k=De(C)?C:Tn(t[u+1])?[]:{})}To(x,v,k),x=x[v]}return e}var sp=Ai?function(e,t){return Ai.set(e,t),e}:pt,cx=Si?function(e,t){return Si(e,"toString",{configurable:!0,enumerable:!1,value:wc(t),writable:!0})}:pt;function ux(e){return Bi(Nr(e))}function Pt(e,t,o){var s=-1,u=e.length;t<0&&(t=-t>u?0:u+t),o=o>u?u:o,o<0&&(o+=u),u=t>o?0:o-t>>>0,t>>>=0;for(var f=I(u);++s<u;)f[s]=e[s+t];return f}function lx(e,t){var o;return Rn(e,function(s,u,f){return o=t(s,u,f),!o}),!!o}function Ci(e,t,o){var s=0,u=e==null?s:e.length;if(typeof t=="number"&&t===t&&u<=Ie){for(;s<u;){var f=s+u>>>1,y=e[f];y!==null&&!St(y)&&(o?y<=t:y<t)?s=f+1:u=f}return u}return Xa(e,t,pt,o)}function Xa(e,t,o,s){var u=0,f=e==null?0:e.length;if(f===0)return 0;t=o(t);for(var y=t!==t,x=t===null,v=St(t),k=t===n;u<f;){var C=wi((u+f)/2),R=o(e[C]),U=R!==n,q=R===null,X=R===R,le=St(R);if(y)var J=s||X;else k?J=X&&(s||U):x?J=X&&U&&(s||!q):v?J=X&&U&&!q&&(s||!le):q||le?J=!1:J=s?R<=t:R<t;J?u=C+1:f=C}return Ze(f,at)}function ap(e,t){for(var o=-1,s=e.length,u=0,f=[];++o<s;){var y=e[o],x=t?t(y):y;if(!o||!Ht(x,v)){var v=x;f[u++]=y===0?0:y}}return f}function cp(e){return typeof e=="number"?e:St(e)?ie:+e}function xt(e){if(typeof e=="string")return e;if(oe(e))return Pe(e,xt)+"";if(St(e))return Wl?Wl.call(e):"";var t=e+"";return t=="0"&&1/e==-ye?"-0":t}function Dn(e,t,o){var s=-1,u=ui,f=e.length,y=!0,x=[],v=x;if(o)y=!1,u=_a;else if(f>=i){var k=t?null:vx(e);if(k)return pi(k);y=!1,u=uo,v=new Jn}else v=t?[]:x;e:for(;++s<f;){var C=e[s],R=t?t(C):C;if(C=o||C!==0?C:0,y&&R===R){for(var U=v.length;U--;)if(v[U]===R)continue e;t&&v.push(R),x.push(C)}else u(v,R,o)||(v!==x&&v.push(R),x.push(C))}return x}function Ja(e,t){return t=Nn(t,e),e=Mp(e,t),e==null||delete e[jt(Rt(t))]}function up(e,t,o,s){return So(e,t,o(jn(e,t)),s)}function Pi(e,t,o,s){for(var u=e.length,f=s?u:-1;(s?f--:++f<u)&&t(e[f],f,e););return o?Pt(e,s?0:f,s?f+1:u):Pt(e,s?f+1:0,s?u:f)}function lp(e,t){var o=e;return o instanceof me&&(o=o.value()),La(t,function(s,u){return u.func.apply(u.thisArg,En([s],u.args))},o)}function Qa(e,t,o){var s=e.length;if(s<2)return s?Dn(e[0]):[];for(var u=-1,f=I(s);++u<s;)for(var y=e[u],x=-1;++x<s;)x!=u&&(f[u]=ho(f[u]||y,e[x],t,o));return Dn(Ke(f,1),t,o)}function pp(e,t,o){for(var s=-1,u=e.length,f=t.length,y={};++s<u;){var x=s<f?t[s]:n;o(y,e[s],x)}return y}function ja(e){return Oe(e)?e:[]}function ec(e){return typeof e=="function"?e:pt}function Nn(e,t){return oe(e)?e:uc(e,t)?[e]:Wp(Se(e))}var px=fe;function On(e,t,o){var s=e.length;return o=o===n?s:o,!t&&o>=s?e:Pt(e,t,o)}var fp=Qh||function(e){return $e.clearTimeout(e)};function dp(e,t){if(t)return e.slice();var o=e.length,s=Nl?Nl(o):new e.constructor(o);return e.copy(s),s}function tc(e){var t=new e.constructor(e.byteLength);return new hi(t).set(new hi(e)),t}function fx(e,t){var o=t?tc(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function dx(e){var t=new e.constructor(e.source,Xu.exec(e));return t.lastIndex=e.lastIndex,t}function gx(e){return mo?_e(mo.call(e)):{}}function gp(e,t){var o=t?tc(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function mp(e,t){if(e!==t){var o=e!==n,s=e===null,u=e===e,f=St(e),y=t!==n,x=t===null,v=t===t,k=St(t);if(!x&&!k&&!f&&e>t||f&&y&&v&&!x&&!k||s&&y&&v||!o&&v||!u)return 1;if(!s&&!f&&!k&&e<t||k&&o&&u&&!s&&!f||x&&o&&u||!y&&u||!v)return-1}return 0}function mx(e,t,o){for(var s=-1,u=e.criteria,f=t.criteria,y=u.length,x=o.length;++s<y;){var v=mp(u[s],f[s]);if(v){if(s>=x)return v;var k=o[s];return v*(k=="desc"?-1:1)}}return e.index-t.index}function Tp(e,t,o,s){for(var u=-1,f=e.length,y=o.length,x=-1,v=t.length,k=Ge(f-y,0),C=I(v+k),R=!s;++x<v;)C[x]=t[x];for(;++u<y;)(R||u<f)&&(C[o[u]]=e[u]);for(;k--;)C[x++]=e[u++];return C}function hp(e,t,o,s){for(var u=-1,f=e.length,y=-1,x=o.length,v=-1,k=t.length,C=Ge(f-x,0),R=I(C+k),U=!s;++u<C;)R[u]=e[u];for(var q=u;++v<k;)R[q+v]=t[v];for(;++y<x;)(U||u<f)&&(R[q+o[y]]=e[u++]);return R}function ct(e,t){var o=-1,s=e.length;for(t||(t=I(s));++o<s;)t[o]=e[o];return t}function Qt(e,t,o,s){var u=!o;o||(o={});for(var f=-1,y=t.length;++f<y;){var x=t[f],v=s?s(o[x],e[x],x,o,e):n;v===n&&(v=e[x]),u?dn(o,x,v):To(o,x,v)}return o}function Tx(e,t){return Qt(e,cc(e),t)}function hx(e,t){return Qt(e,Cp(e),t)}function Ri(e,t){return function(o,s){var u=oe(o)?wh:By,f=t?t():{};return u(o,e,Y(s,2),f)}}function Cr(e){return fe(function(t,o){var s=-1,u=o.length,f=u>1?o[u-1]:n,y=u>2?o[2]:n;for(f=e.length>3&&typeof f=="function"?(u--,f):n,y&&ot(o[0],o[1],y)&&(f=u<3?n:f,u=1),t=_e(t);++s<u;){var x=o[s];x&&e(t,x,s,f)}return t})}function yp(e,t){return function(o,s){if(o==null)return o;if(!ut(o))return e(o,s);for(var u=o.length,f=t?u:-1,y=_e(o);(t?f--:++f<u)&&s(y[f],f,y)!==!1;);return o}}function xp(e){return function(t,o,s){for(var u=-1,f=_e(t),y=s(t),x=y.length;x--;){var v=y[e?x:++u];if(o(f[v],v,f)===!1)break}return t}}function yx(e,t,o){var s=t&N,u=vo(e);function f(){var y=this&&this!==$e&&this instanceof f?u:e;return y.apply(s?o:this,arguments)}return f}function Sp(e){return function(t){t=Se(t);var o=Ir(t)?Gt(t):n,s=o?o[0]:t.charAt(0),u=o?On(o,1).join(""):t.slice(1);return s[e]()+u}}function Pr(e){return function(t){return La(xf(yf(t).replace(ch,"")),e,"")}}function vo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=kr(e.prototype),s=e.apply(o,t);return De(s)?s:o}}function xx(e,t,o){var s=vo(e);function u(){for(var f=arguments.length,y=I(f),x=f,v=Rr(u);x--;)y[x]=arguments[x];var k=f<3&&y[0]!==v&&y[f-1]!==v?[]:kn(y,v);if(f-=k.length,f<o)return _p(e,t,Di,u.placeholder,n,y,k,n,n,o-f);var C=this&&this!==$e&&this instanceof u?s:e;return ht(C,this,y)}return u}function vp(e){return function(t,o,s){var u=_e(t);if(!ut(t)){var f=Y(o,3);t=He(t),o=function(x){return f(u[x],x,u)}}var y=e(t,o,s);return y>-1?u[f?t[y]:y]:n}}function wp(e){return mn(function(t){var o=t.length,s=o,u=kt.prototype.thru;for(e&&t.reverse();s--;){var f=t[s];if(typeof f!="function")throw new Et(l);if(u&&!y&&Fi(f)=="wrapper")var y=new kt([],!0)}for(s=y?s:o;++s<o;){f=t[s];var x=Fi(f),v=x=="wrapper"?sc(f):n;v&&lc(v[0])&&v[1]==(pe|z|V|Re)&&!v[4].length&&v[9]==1?y=y[Fi(v[0])].apply(y,v[3]):y=f.length==1&&lc(f)?y[x]():y.thru(f)}return function(){var k=arguments,C=k[0];if(y&&k.length==1&&oe(C))return y.plant(C).value();for(var R=0,U=o?t[R].apply(this,k):C;++R<o;)U=t[R].call(this,U);return U}})}function Di(e,t,o,s,u,f,y,x,v,k){var C=t&pe,R=t&N,U=t&G,q=t&(z|B),X=t&ce,le=U?n:vo(e);function J(){for(var ge=arguments.length,Te=I(ge),vt=ge;vt--;)Te[vt]=arguments[vt];if(q)var it=Rr(J),wt=Ph(Te,it);if(s&&(Te=Tp(Te,s,u,q)),f&&(Te=hp(Te,f,y,q)),ge-=wt,q&&ge<k){var Me=kn(Te,it);return _p(e,t,Di,J.placeholder,o,Te,Me,x,v,k-ge)}var Vt=R?o:this,xn=U?Vt[e]:e;return ge=Te.length,x?Te=Bx(Te,x):X&&ge>1&&Te.reverse(),C&&v<ge&&(Te.length=v),this&&this!==$e&&this instanceof J&&(xn=le||vo(xn)),xn.apply(Vt,Te)}return J}function Ap(e,t){return function(o,s){return Ky(o,e,t(s),{})}}function Ni(e,t){return function(o,s){var u;if(o===n&&s===n)return t;if(o!==n&&(u=o),s!==n){if(u===n)return s;typeof o=="string"||typeof s=="string"?(o=xt(o),s=xt(s)):(o=cp(o),s=cp(s)),u=e(o,s)}return u}}function nc(e){return mn(function(t){return t=Pe(t,yt(Y())),fe(function(o){var s=this;return e(t,function(u){return ht(u,s,o)})})})}function Oi(e,t){t=t===n?" ":xt(t);var o=t.length;if(o<2)return o?Za(t,e):t;var s=Za(t,vi(e/_r(t)));return Ir(t)?On(Gt(s),0,e).join(""):s.slice(0,e)}function Sx(e,t,o,s){var u=t&N,f=vo(e);function y(){for(var x=-1,v=arguments.length,k=-1,C=s.length,R=I(C+v),U=this&&this!==$e&&this instanceof y?f:e;++k<C;)R[k]=s[k];for(;v--;)R[k++]=arguments[++x];return ht(U,u?o:this,R)}return y}function Ip(e){return function(t,o,s){return s&&typeof s!="number"&&ot(t,o,s)&&(o=s=n),t=yn(t),o===n?(o=t,t=0):o=yn(o),s=s===n?t<o?1:-1:yn(s),ix(t,o,s,e)}}function Mi(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=Dt(t),o=Dt(o)),e(t,o)}}function _p(e,t,o,s,u,f,y,x,v,k){var C=t&z,R=C?y:n,U=C?n:y,q=C?f:n,X=C?n:f;t|=C?V:ne,t&=~(C?ne:V),t&Z||(t&=~(N|G));var le=[e,t,u,q,R,X,U,x,v,k],J=o.apply(n,le);return lc(e)&&Fp(J,le),J.placeholder=s,Up(J,e,t)}function rc(e){var t=We[e];return function(o,s){if(o=Dt(o),s=s==null?0:Ze(se(s),292),s&&Ul(o)){var u=(Se(o)+"e").split("e"),f=t(u[0]+"e"+(+u[1]+s));return u=(Se(f)+"e").split("e"),+(u[0]+"e"+(+u[1]-s))}return t(o)}}var vx=br&&1/pi(new br([,-0]))[1]==ye?function(e){return new br(e)}:_c;function Lp(e){return function(t){var o=Xe(t);return o==Bt?Da(t):o==Wt?Uh(t):Ch(t,e(t))}}function gn(e,t,o,s,u,f,y,x){var v=t&G;if(!v&&typeof e!="function")throw new Et(l);var k=s?s.length:0;if(k||(t&=~(V|ne),s=u=n),y=y===n?y:Ge(se(y),0),x=x===n?x:se(x),k-=u?u.length:0,t&ne){var C=s,R=u;s=u=n}var U=v?n:sc(e),q=[e,t,o,s,u,C,R,f,y,x];if(U&&Mx(q,U),e=q[0],t=q[1],o=q[2],s=q[3],u=q[4],x=q[9]=q[9]===n?v?0:e.length:Ge(q[9]-k,0),!x&&t&(z|B)&&(t&=~(z|B)),!t||t==N)var X=yx(e,t,o);else t==z||t==B?X=xx(e,t,x):(t==V||t==(N|V))&&!u.length?X=Sx(e,t,o,s):X=Di.apply(n,q);var le=U?sp:Fp;return Up(le(X,q),e,t)}function bp(e,t,o,s){return e===n||Ht(e,Lr[o])&&!ve.call(s,o)?t:e}function Ep(e,t,o,s,u,f){return De(e)&&De(t)&&(f.set(t,e),ki(e,t,n,Ep,f),f.delete(t)),e}function wx(e){return Io(e)?n:e}function kp(e,t,o,s,u,f){var y=o&M,x=e.length,v=t.length;if(x!=v&&!(y&&v>x))return!1;var k=f.get(e),C=f.get(t);if(k&&C)return k==t&&C==e;var R=-1,U=!0,q=o&D?new Jn:n;for(f.set(e,t),f.set(t,e);++R<x;){var X=e[R],le=t[R];if(s)var J=y?s(le,X,R,t,e,f):s(X,le,R,e,t,f);if(J!==n){if(J)continue;U=!1;break}if(q){if(!ba(t,function(ge,Te){if(!uo(q,Te)&&(X===ge||u(X,ge,o,s,f)))return q.push(Te)})){U=!1;break}}else if(!(X===le||u(X,le,o,s,f))){U=!1;break}}return f.delete(e),f.delete(t),U}function Ax(e,t,o,s,u,f,y){switch(o){case vr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case co:return!(e.byteLength!=t.byteLength||!f(new hi(e),new hi(t)));case Ut:case Xt:case oo:return Ht(+e,+t);case ri:return e.name==t.name&&e.message==t.message;case io:case so:return e==t+"";case Bt:var x=Da;case Wt:var v=s&M;if(x||(x=pi),e.size!=t.size&&!v)return!1;var k=y.get(e);if(k)return k==t;s|=D,y.set(e,t);var C=kp(x(e),x(t),s,u,f,y);return y.delete(e),C;case ii:if(mo)return mo.call(e)==mo.call(t)}return!1}function Ix(e,t,o,s,u,f){var y=o&M,x=oc(e),v=x.length,k=oc(t),C=k.length;if(v!=C&&!y)return!1;for(var R=v;R--;){var U=x[R];if(!(y?U in t:ve.call(t,U)))return!1}var q=f.get(e),X=f.get(t);if(q&&X)return q==t&&X==e;var le=!0;f.set(e,t),f.set(t,e);for(var J=y;++R<v;){U=x[R];var ge=e[U],Te=t[U];if(s)var vt=y?s(Te,ge,U,t,e,f):s(ge,Te,U,e,t,f);if(!(vt===n?ge===Te||u(ge,Te,o,s,f):vt)){le=!1;break}J||(J=U=="constructor")}if(le&&!J){var it=e.constructor,wt=t.constructor;it!=wt&&"constructor"in e&&"constructor"in t&&!(typeof it=="function"&&it instanceof it&&typeof wt=="function"&&wt instanceof wt)&&(le=!1)}return f.delete(e),f.delete(t),le}function mn(e){return fc(Op(e,n,Vp),e+"")}function oc(e){return Zl(e,He,cc)}function ic(e){return Zl(e,lt,Cp)}var sc=Ai?function(e){return Ai.get(e)}:_c;function Fi(e){for(var t=e.name+"",o=Er[t],s=ve.call(Er,t)?o.length:0;s--;){var u=o[s],f=u.func;if(f==null||f==e)return u.name}return t}function Rr(e){var t=ve.call(p,"placeholder")?p:e;return t.placeholder}function Y(){var e=p.iteratee||Ac;return e=e===Ac?Ql:e,arguments.length?e(arguments[0],arguments[1]):e}function Ui(e,t){var o=e.__data__;return Rx(t)?o[typeof t=="string"?"string":"hash"]:o.map}function ac(e){for(var t=He(e),o=t.length;o--;){var s=t[o],u=e[s];t[o]=[s,u,Dp(u)]}return t}function er(e,t){var o=Oh(e,t);return Jl(o)?o:n}function _x(e){var t=ve.call(e,Zn),o=e[Zn];try{e[Zn]=n;var s=!0}catch(f){}var u=mi.call(e);return s&&(t?e[Zn]=o:delete e[Zn]),u}var cc=Oa?function(e){return e==null?[]:(e=_e(e),bn(Oa(e),function(t){return Ml.call(e,t)}))}:Lc,Cp=Oa?function(e){for(var t=[];e;)En(t,cc(e)),e=yi(e);return t}:Lc,Xe=rt;(Ma&&Xe(new Ma(new ArrayBuffer(1)))!=vr||po&&Xe(new po)!=Bt||Fa&&Xe(Fa.resolve())!=zu||br&&Xe(new br)!=Wt||fo&&Xe(new fo)!=ao)&&(Xe=function(e){var t=rt(e),o=t==ln?e.constructor:n,s=o?tr(o):"";if(s)switch(s){case ay:return vr;case cy:return Bt;case uy:return zu;case ly:return Wt;case py:return ao}return t});function Lx(e,t,o){for(var s=-1,u=o.length;++s<u;){var f=o[s],y=f.size;switch(f.type){case"drop":e+=y;break;case"dropRight":t-=y;break;case"take":t=Ze(t,e+y);break;case"takeRight":e=Ge(e,t-y);break}}return{start:e,end:t}}function bx(e){var t=e.match(DT);return t?t[1].split(NT):[]}function Pp(e,t,o){t=Nn(t,e);for(var s=-1,u=t.length,f=!1;++s<u;){var y=jt(t[s]);if(!(f=e!=null&&o(e,y)))break;e=e[y]}return f||++s!=u?f:(u=e==null?0:e.length,!!u&&qi(u)&&Tn(y,u)&&(oe(e)||nr(e)))}function Ex(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&ve.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Rp(e){return typeof e.constructor=="function"&&!wo(e)?kr(yi(e)):{}}function kx(e,t,o){var s=e.constructor;switch(t){case co:return tc(e);case Ut:case Xt:return new s(+e);case vr:return fx(e,o);case aa:case ca:case ua:case la:case pa:case fa:case da:case ga:case ma:return gp(e,o);case Bt:return new s;case oo:case so:return new s(e);case io:return dx(e);case Wt:return new s;case ii:return gx(e)}}function Cx(e,t){var o=t.length;if(!o)return e;var s=o-1;return t[s]=(o>1?"& ":"")+t[s],t=t.join(o>2?", ":" "),e.replace(RT,`{
|
|
1
|
+
"use strict";var jw=Object.create;var _o=Object.defineProperty,eA=Object.defineProperties,tA=Object.getOwnPropertyDescriptor,nA=Object.getOwnPropertyDescriptors,rA=Object.getOwnPropertyNames,Yi=Object.getOwnPropertySymbols,oA=Object.getPrototypeOf,Ec=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable;var Af=(n,r,i)=>r in n?_o(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i,O=(n,r)=>{for(var i in r||(r={}))Ec.call(r,i)&&Af(n,i,r[i]);if(Yi)for(var i of Yi(r))If.call(r,i)&&Af(n,i,r[i]);return n},te=(n,r)=>eA(n,nA(r));var Zi=(n,r)=>{var i={};for(var c in n)Ec.call(n,c)&&r.indexOf(c)<0&&(i[c]=n[c]);if(n!=null&&Yi)for(var c of Yi(n))r.indexOf(c)<0&&If.call(n,c)&&(i[c]=n[c]);return i};var Q=(n,r)=>()=>(n&&(r=n(n=0)),r);var Lo=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports),rr=(n,r)=>{for(var i in r)_o(n,i,{get:r[i],enumerable:!0})},_f=(n,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of rA(r))!Ec.call(n,l)&&l!==i&&_o(n,l,{get:()=>r[l],enumerable:!(c=tA(r,l))||c.enumerable});return n};var ae=(n,r,i)=>(i=n!=null?jw(oA(n)):{},_f(r||!n||!n.__esModule?_o(i,"default",{value:n,enumerable:!0}):i,n)),bo=n=>_f(_o({},"__esModule",{value:!0}),n);var F=(n,r,i)=>new Promise((c,l)=>{var h=A=>{try{w(i.next(A))}catch(_){l(_)}},T=A=>{try{w(i.throw(A))}catch(_){l(_)}},w=A=>A.done?c(A.value):Promise.resolve(A.value).then(h,T);w((i=i.apply(n,r)).next())});var Ef=Lo(Xi=>{"use strict";s();Xi.byteLength=sA;Xi.toByteArray=cA;Xi.fromByteArray=pA;var en=[],Nt=[],iA=typeof Uint8Array!="undefined"?Uint8Array:Array,kc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(or=0,Lf=kc.length;or<Lf;++or)en[or]=kc[or],Nt[kc.charCodeAt(or)]=or;var or,Lf;Nt["-".charCodeAt(0)]=62;Nt["_".charCodeAt(0)]=63;function bf(n){var r=n.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=n.indexOf("=");i===-1&&(i=r);var c=i===r?0:4-i%4;return[i,c]}function sA(n){var r=bf(n),i=r[0],c=r[1];return(i+c)*3/4-c}function aA(n,r,i){return(r+i)*3/4-i}function cA(n){var r,i=bf(n),c=i[0],l=i[1],h=new iA(aA(n,c,l)),T=0,w=l>0?c-4:c,A;for(A=0;A<w;A+=4)r=Nt[n.charCodeAt(A)]<<18|Nt[n.charCodeAt(A+1)]<<12|Nt[n.charCodeAt(A+2)]<<6|Nt[n.charCodeAt(A+3)],h[T++]=r>>16&255,h[T++]=r>>8&255,h[T++]=r&255;return l===2&&(r=Nt[n.charCodeAt(A)]<<2|Nt[n.charCodeAt(A+1)]>>4,h[T++]=r&255),l===1&&(r=Nt[n.charCodeAt(A)]<<10|Nt[n.charCodeAt(A+1)]<<4|Nt[n.charCodeAt(A+2)]>>2,h[T++]=r>>8&255,h[T++]=r&255),h}function uA(n){return en[n>>18&63]+en[n>>12&63]+en[n>>6&63]+en[n&63]}function lA(n,r,i){for(var c,l=[],h=r;h<i;h+=3)c=(n[h]<<16&16711680)+(n[h+1]<<8&65280)+(n[h+2]&255),l.push(uA(c));return l.join("")}function pA(n){for(var r,i=n.length,c=i%3,l=[],h=16383,T=0,w=i-c;T<w;T+=h)l.push(lA(n,T,T+h>w?w:T+h));return c===1?(r=n[i-1],l.push(en[r>>2]+en[r<<4&63]+"==")):c===2&&(r=(n[i-2]<<8)+n[i-1],l.push(en[r>>10]+en[r>>4&63]+en[r<<2&63]+"=")),l.join("")}});var kf=Lo(Cc=>{s();Cc.read=function(n,r,i,c,l){var h,T,w=l*8-c-1,A=(1<<w)-1,_=A>>1,L=-7,P=i?l-1:0,M=i?-1:1,D=n[r+P];for(P+=M,h=D&(1<<-L)-1,D>>=-L,L+=w;L>0;h=h*256+n[r+P],P+=M,L-=8);for(T=h&(1<<-L)-1,h>>=-L,L+=c;L>0;T=T*256+n[r+P],P+=M,L-=8);if(h===0)h=1-_;else{if(h===A)return T?NaN:(D?-1:1)*(1/0);T=T+Math.pow(2,c),h=h-_}return(D?-1:1)*T*Math.pow(2,h-c)};Cc.write=function(n,r,i,c,l,h){var T,w,A,_=h*8-l-1,L=(1<<_)-1,P=L>>1,M=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=c?0:h-1,N=c?1:-1,G=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(w=isNaN(r)?1:0,T=L):(T=Math.floor(Math.log(r)/Math.LN2),r*(A=Math.pow(2,-T))<1&&(T--,A*=2),T+P>=1?r+=M/A:r+=M*Math.pow(2,1-P),r*A>=2&&(T++,A/=2),T+P>=L?(w=0,T=L):T+P>=1?(w=(r*A-1)*Math.pow(2,l),T=T+P):(w=r*Math.pow(2,P-1)*Math.pow(2,l),T=0));l>=8;n[i+D]=w&255,D+=N,w/=256,l-=8);for(T=T<<l|w,_+=l;_>0;n[i+D]=T&255,D+=N,T/=256,_-=8);n[i+D-N]|=G*128}});var $f=Lo(Mr=>{"use strict";s();var Pc=Ef(),Or=kf(),Cf=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Mr.Buffer=E;Mr.SlowBuffer=hA;Mr.INSPECT_MAX_BYTES=50;var Ji=2147483647;Mr.kMaxLength=Ji;E.TYPED_ARRAY_SUPPORT=fA();!E.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 fA(){try{var n=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(n,r),n.foo()===42}catch(i){return!1}}Object.defineProperty(E.prototype,"parent",{enumerable:!0,get:function(){if(!!E.isBuffer(this))return this.buffer}});Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(!!E.isBuffer(this))return this.byteOffset}});function Sn(n){if(n>Ji)throw new RangeError('The value "'+n+'" is invalid for option "size"');var r=new Uint8Array(n);return Object.setPrototypeOf(r,E.prototype),r}function E(n,r,i){if(typeof n=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Oc(n)}return Df(n,r,i)}E.poolSize=8192;function Df(n,r,i){if(typeof n=="string")return gA(n,r);if(ArrayBuffer.isView(n))return mA(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(tn(n,ArrayBuffer)||n&&tn(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(tn(n,SharedArrayBuffer)||n&&tn(n.buffer,SharedArrayBuffer)))return Dc(n,r,i);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var c=n.valueOf&&n.valueOf();if(c!=null&&c!==n)return E.from(c,r,i);var l=TA(n);if(l)return l;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return E.from(n[Symbol.toPrimitive]("string"),r,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}E.from=function(n,r,i){return Df(n,r,i)};Object.setPrototypeOf(E.prototype,Uint8Array.prototype);Object.setPrototypeOf(E,Uint8Array);function Nf(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function dA(n,r,i){return Nf(n),n<=0?Sn(n):r!==void 0?typeof i=="string"?Sn(n).fill(r,i):Sn(n).fill(r):Sn(n)}E.alloc=function(n,r,i){return dA(n,r,i)};function Oc(n){return Nf(n),Sn(n<0?0:Mc(n)|0)}E.allocUnsafe=function(n){return Oc(n)};E.allocUnsafeSlow=function(n){return Oc(n)};function gA(n,r){if((typeof r!="string"||r==="")&&(r="utf8"),!E.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var i=Of(n,r)|0,c=Sn(i),l=c.write(n,r);return l!==i&&(c=c.slice(0,l)),c}function Rc(n){for(var r=n.length<0?0:Mc(n.length)|0,i=Sn(r),c=0;c<r;c+=1)i[c]=n[c]&255;return i}function mA(n){if(tn(n,Uint8Array)){var r=new Uint8Array(n);return Dc(r.buffer,r.byteOffset,r.byteLength)}return Rc(n)}function Dc(n,r,i){if(r<0||n.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<r+(i||0))throw new RangeError('"length" is outside of buffer bounds');var c;return r===void 0&&i===void 0?c=new Uint8Array(n):i===void 0?c=new Uint8Array(n,r):c=new Uint8Array(n,r,i),Object.setPrototypeOf(c,E.prototype),c}function TA(n){if(E.isBuffer(n)){var r=Mc(n.length)|0,i=Sn(r);return i.length===0||n.copy(i,0,0,r),i}if(n.length!==void 0)return typeof n.length!="number"||Fc(n.length)?Sn(0):Rc(n);if(n.type==="Buffer"&&Array.isArray(n.data))return Rc(n.data)}function Mc(n){if(n>=Ji)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ji.toString(16)+" bytes");return n|0}function hA(n){return+n!=n&&(n=0),E.alloc(+n)}E.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==E.prototype};E.compare=function(r,i){if(tn(r,Uint8Array)&&(r=E.from(r,r.offset,r.byteLength)),tn(i,Uint8Array)&&(i=E.from(i,i.offset,i.byteLength)),!E.isBuffer(r)||!E.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;for(var c=r.length,l=i.length,h=0,T=Math.min(c,l);h<T;++h)if(r[h]!==i[h]){c=r[h],l=i[h];break}return c<l?-1:l<c?1:0};E.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}};E.concat=function(r,i){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return E.alloc(0);var c;if(i===void 0)for(i=0,c=0;c<r.length;++c)i+=r[c].length;var l=E.allocUnsafe(i),h=0;for(c=0;c<r.length;++c){var T=r[c];if(tn(T,Uint8Array))h+T.length>l.length?E.from(T).copy(l,h):Uint8Array.prototype.set.call(l,T,h);else if(E.isBuffer(T))T.copy(l,h);else throw new TypeError('"list" argument must be an Array of Buffers');h+=T.length}return l};function Of(n,r){if(E.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||tn(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var i=n.length,c=arguments.length>2&&arguments[2]===!0;if(!c&&i===0)return 0;for(var l=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return Nc(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return Gf(n).length;default:if(l)return c?-1:Nc(n).length;r=(""+r).toLowerCase(),l=!0}}E.byteLength=Of;function yA(n,r,i){var c=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(n||(n="utf8");;)switch(n){case"hex":return EA(this,r,i);case"utf8":case"utf-8":return Ff(this,r,i);case"ascii":return LA(this,r,i);case"latin1":case"binary":return bA(this,r,i);case"base64":return IA(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kA(this,r,i);default:if(c)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),c=!0}}E.prototype._isBuffer=!0;function ir(n,r,i){var c=n[r];n[r]=n[i],n[i]=c}E.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 i=0;i<r;i+=2)ir(this,i,i+1);return this};E.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 i=0;i<r;i+=4)ir(this,i,i+3),ir(this,i+1,i+2);return this};E.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 i=0;i<r;i+=8)ir(this,i,i+7),ir(this,i+1,i+6),ir(this,i+2,i+5),ir(this,i+3,i+4);return this};E.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Ff(this,0,r):yA.apply(this,arguments)};E.prototype.toLocaleString=E.prototype.toString;E.prototype.equals=function(r){if(!E.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:E.compare(this,r)===0};E.prototype.inspect=function(){var r="",i=Mr.INSPECT_MAX_BYTES;return r=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(r+=" ... "),"<Buffer "+r+">"};Cf&&(E.prototype[Cf]=E.prototype.inspect);E.prototype.compare=function(r,i,c,l,h){if(tn(r,Uint8Array)&&(r=E.from(r,r.offset,r.byteLength)),!E.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),c===void 0&&(c=r?r.length:0),l===void 0&&(l=0),h===void 0&&(h=this.length),i<0||c>r.length||l<0||h>this.length)throw new RangeError("out of range index");if(l>=h&&i>=c)return 0;if(l>=h)return-1;if(i>=c)return 1;if(i>>>=0,c>>>=0,l>>>=0,h>>>=0,this===r)return 0;for(var T=h-l,w=c-i,A=Math.min(T,w),_=this.slice(l,h),L=r.slice(i,c),P=0;P<A;++P)if(_[P]!==L[P]){T=_[P],w=L[P];break}return T<w?-1:w<T?1:0};function Mf(n,r,i,c,l){if(n.length===0)return-1;if(typeof i=="string"?(c=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,Fc(i)&&(i=l?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(l)return-1;i=n.length-1}else if(i<0)if(l)i=0;else return-1;if(typeof r=="string"&&(r=E.from(r,c)),E.isBuffer(r))return r.length===0?-1:Pf(n,r,i,c,l);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(n,r,i):Uint8Array.prototype.lastIndexOf.call(n,r,i):Pf(n,[r],i,c,l);throw new TypeError("val must be string, number or Buffer")}function Pf(n,r,i,c,l){var h=1,T=n.length,w=r.length;if(c!==void 0&&(c=String(c).toLowerCase(),c==="ucs2"||c==="ucs-2"||c==="utf16le"||c==="utf-16le")){if(n.length<2||r.length<2)return-1;h=2,T/=2,w/=2,i/=2}function A(D,N){return h===1?D[N]:D.readUInt16BE(N*h)}var _;if(l){var L=-1;for(_=i;_<T;_++)if(A(n,_)===A(r,L===-1?0:_-L)){if(L===-1&&(L=_),_-L+1===w)return L*h}else L!==-1&&(_-=_-L),L=-1}else for(i+w>T&&(i=T-w),_=i;_>=0;_--){for(var P=!0,M=0;M<w;M++)if(A(n,_+M)!==A(r,M)){P=!1;break}if(P)return _}return-1}E.prototype.includes=function(r,i,c){return this.indexOf(r,i,c)!==-1};E.prototype.indexOf=function(r,i,c){return Mf(this,r,i,c,!0)};E.prototype.lastIndexOf=function(r,i,c){return Mf(this,r,i,c,!1)};function xA(n,r,i,c){i=Number(i)||0;var l=n.length-i;c?(c=Number(c),c>l&&(c=l)):c=l;var h=r.length;c>h/2&&(c=h/2);for(var T=0;T<c;++T){var w=parseInt(r.substr(T*2,2),16);if(Fc(w))return T;n[i+T]=w}return T}function SA(n,r,i,c){return Qi(Nc(r,n.length-i),n,i,c)}function vA(n,r,i,c){return Qi(RA(r),n,i,c)}function wA(n,r,i,c){return Qi(Gf(r),n,i,c)}function AA(n,r,i,c){return Qi(DA(r,n.length-i),n,i,c)}E.prototype.write=function(r,i,c,l){if(i===void 0)l="utf8",c=this.length,i=0;else if(c===void 0&&typeof i=="string")l=i,c=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(c)?(c=c>>>0,l===void 0&&(l="utf8")):(l=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var h=this.length-i;if((c===void 0||c>h)&&(c=h),r.length>0&&(c<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");l||(l="utf8");for(var T=!1;;)switch(l){case"hex":return xA(this,r,i,c);case"utf8":case"utf-8":return SA(this,r,i,c);case"ascii":case"latin1":case"binary":return vA(this,r,i,c);case"base64":return wA(this,r,i,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return AA(this,r,i,c);default:if(T)throw new TypeError("Unknown encoding: "+l);l=(""+l).toLowerCase(),T=!0}};E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function IA(n,r,i){return r===0&&i===n.length?Pc.fromByteArray(n):Pc.fromByteArray(n.slice(r,i))}function Ff(n,r,i){i=Math.min(n.length,i);for(var c=[],l=r;l<i;){var h=n[l],T=null,w=h>239?4:h>223?3:h>191?2:1;if(l+w<=i){var A,_,L,P;switch(w){case 1:h<128&&(T=h);break;case 2:A=n[l+1],(A&192)===128&&(P=(h&31)<<6|A&63,P>127&&(T=P));break;case 3:A=n[l+1],_=n[l+2],(A&192)===128&&(_&192)===128&&(P=(h&15)<<12|(A&63)<<6|_&63,P>2047&&(P<55296||P>57343)&&(T=P));break;case 4:A=n[l+1],_=n[l+2],L=n[l+3],(A&192)===128&&(_&192)===128&&(L&192)===128&&(P=(h&15)<<18|(A&63)<<12|(_&63)<<6|L&63,P>65535&&P<1114112&&(T=P))}}T===null?(T=65533,w=1):T>65535&&(T-=65536,c.push(T>>>10&1023|55296),T=56320|T&1023),c.push(T),l+=w}return _A(c)}var Rf=4096;function _A(n){var r=n.length;if(r<=Rf)return String.fromCharCode.apply(String,n);for(var i="",c=0;c<r;)i+=String.fromCharCode.apply(String,n.slice(c,c+=Rf));return i}function LA(n,r,i){var c="";i=Math.min(n.length,i);for(var l=r;l<i;++l)c+=String.fromCharCode(n[l]&127);return c}function bA(n,r,i){var c="";i=Math.min(n.length,i);for(var l=r;l<i;++l)c+=String.fromCharCode(n[l]);return c}function EA(n,r,i){var c=n.length;(!r||r<0)&&(r=0),(!i||i<0||i>c)&&(i=c);for(var l="",h=r;h<i;++h)l+=NA[n[h]];return l}function kA(n,r,i){for(var c=n.slice(r,i),l="",h=0;h<c.length-1;h+=2)l+=String.fromCharCode(c[h]+c[h+1]*256);return l}E.prototype.slice=function(r,i){var c=this.length;r=~~r,i=i===void 0?c:~~i,r<0?(r+=c,r<0&&(r=0)):r>c&&(r=c),i<0?(i+=c,i<0&&(i=0)):i>c&&(i=c),i<r&&(i=r);var l=this.subarray(r,i);return Object.setPrototypeOf(l,E.prototype),l};function Ve(n,r,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+r>i)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUintLE=E.prototype.readUIntLE=function(r,i,c){r=r>>>0,i=i>>>0,c||Ve(r,i,this.length);for(var l=this[r],h=1,T=0;++T<i&&(h*=256);)l+=this[r+T]*h;return l};E.prototype.readUintBE=E.prototype.readUIntBE=function(r,i,c){r=r>>>0,i=i>>>0,c||Ve(r,i,this.length);for(var l=this[r+--i],h=1;i>0&&(h*=256);)l+=this[r+--i]*h;return l};E.prototype.readUint8=E.prototype.readUInt8=function(r,i){return r=r>>>0,i||Ve(r,1,this.length),this[r]};E.prototype.readUint16LE=E.prototype.readUInt16LE=function(r,i){return r=r>>>0,i||Ve(r,2,this.length),this[r]|this[r+1]<<8};E.prototype.readUint16BE=E.prototype.readUInt16BE=function(r,i){return r=r>>>0,i||Ve(r,2,this.length),this[r]<<8|this[r+1]};E.prototype.readUint32LE=E.prototype.readUInt32LE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};E.prototype.readUint32BE=E.prototype.readUInt32BE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};E.prototype.readIntLE=function(r,i,c){r=r>>>0,i=i>>>0,c||Ve(r,i,this.length);for(var l=this[r],h=1,T=0;++T<i&&(h*=256);)l+=this[r+T]*h;return h*=128,l>=h&&(l-=Math.pow(2,8*i)),l};E.prototype.readIntBE=function(r,i,c){r=r>>>0,i=i>>>0,c||Ve(r,i,this.length);for(var l=i,h=1,T=this[r+--l];l>0&&(h*=256);)T+=this[r+--l]*h;return h*=128,T>=h&&(T-=Math.pow(2,8*i)),T};E.prototype.readInt8=function(r,i){return r=r>>>0,i||Ve(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};E.prototype.readInt16LE=function(r,i){r=r>>>0,i||Ve(r,2,this.length);var c=this[r]|this[r+1]<<8;return c&32768?c|4294901760:c};E.prototype.readInt16BE=function(r,i){r=r>>>0,i||Ve(r,2,this.length);var c=this[r+1]|this[r]<<8;return c&32768?c|4294901760:c};E.prototype.readInt32LE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};E.prototype.readInt32BE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};E.prototype.readFloatLE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),Or.read(this,r,!0,23,4)};E.prototype.readFloatBE=function(r,i){return r=r>>>0,i||Ve(r,4,this.length),Or.read(this,r,!1,23,4)};E.prototype.readDoubleLE=function(r,i){return r=r>>>0,i||Ve(r,8,this.length),Or.read(this,r,!0,52,8)};E.prototype.readDoubleBE=function(r,i){return r=r>>>0,i||Ve(r,8,this.length),Or.read(this,r,!1,52,8)};function ft(n,r,i,c,l,h){if(!E.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>l||r<h)throw new RangeError('"value" argument is out of bounds');if(i+c>n.length)throw new RangeError("Index out of range")}E.prototype.writeUintLE=E.prototype.writeUIntLE=function(r,i,c,l){if(r=+r,i=i>>>0,c=c>>>0,!l){var h=Math.pow(2,8*c)-1;ft(this,r,i,c,h,0)}var T=1,w=0;for(this[i]=r&255;++w<c&&(T*=256);)this[i+w]=r/T&255;return i+c};E.prototype.writeUintBE=E.prototype.writeUIntBE=function(r,i,c,l){if(r=+r,i=i>>>0,c=c>>>0,!l){var h=Math.pow(2,8*c)-1;ft(this,r,i,c,h,0)}var T=c-1,w=1;for(this[i+T]=r&255;--T>=0&&(w*=256);)this[i+T]=r/w&255;return i+c};E.prototype.writeUint8=E.prototype.writeUInt8=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,1,255,0),this[i]=r&255,i+1};E.prototype.writeUint16LE=E.prototype.writeUInt16LE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,2,65535,0),this[i]=r&255,this[i+1]=r>>>8,i+2};E.prototype.writeUint16BE=E.prototype.writeUInt16BE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=r&255,i+2};E.prototype.writeUint32LE=E.prototype.writeUInt32LE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255,i+4};E.prototype.writeUint32BE=E.prototype.writeUInt32BE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};E.prototype.writeIntLE=function(r,i,c,l){if(r=+r,i=i>>>0,!l){var h=Math.pow(2,8*c-1);ft(this,r,i,c,h-1,-h)}var T=0,w=1,A=0;for(this[i]=r&255;++T<c&&(w*=256);)r<0&&A===0&&this[i+T-1]!==0&&(A=1),this[i+T]=(r/w>>0)-A&255;return i+c};E.prototype.writeIntBE=function(r,i,c,l){if(r=+r,i=i>>>0,!l){var h=Math.pow(2,8*c-1);ft(this,r,i,c,h-1,-h)}var T=c-1,w=1,A=0;for(this[i+T]=r&255;--T>=0&&(w*=256);)r<0&&A===0&&this[i+T+1]!==0&&(A=1),this[i+T]=(r/w>>0)-A&255;return i+c};E.prototype.writeInt8=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=r&255,i+1};E.prototype.writeInt16LE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,2,32767,-32768),this[i]=r&255,this[i+1]=r>>>8,i+2};E.prototype.writeInt16BE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=r&255,i+2};E.prototype.writeInt32LE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,4,2147483647,-2147483648),this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4};E.prototype.writeInt32BE=function(r,i,c){return r=+r,i=i>>>0,c||ft(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};function Uf(n,r,i,c,l,h){if(i+c>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Bf(n,r,i,c,l){return r=+r,i=i>>>0,l||Uf(n,r,i,4,34028234663852886e22,-34028234663852886e22),Or.write(n,r,i,c,23,4),i+4}E.prototype.writeFloatLE=function(r,i,c){return Bf(this,r,i,!0,c)};E.prototype.writeFloatBE=function(r,i,c){return Bf(this,r,i,!1,c)};function Wf(n,r,i,c,l){return r=+r,i=i>>>0,l||Uf(n,r,i,8,17976931348623157e292,-17976931348623157e292),Or.write(n,r,i,c,52,8),i+8}E.prototype.writeDoubleLE=function(r,i,c){return Wf(this,r,i,!0,c)};E.prototype.writeDoubleBE=function(r,i,c){return Wf(this,r,i,!1,c)};E.prototype.copy=function(r,i,c,l){if(!E.isBuffer(r))throw new TypeError("argument should be a Buffer");if(c||(c=0),!l&&l!==0&&(l=this.length),i>=r.length&&(i=r.length),i||(i=0),l>0&&l<c&&(l=c),l===c||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("sourceEnd out of bounds");l>this.length&&(l=this.length),r.length-i<l-c&&(l=r.length-i+c);var h=l-c;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,c,l):Uint8Array.prototype.set.call(r,this.subarray(c,l),i),h};E.prototype.fill=function(r,i,c,l){if(typeof r=="string"){if(typeof i=="string"?(l=i,i=0,c=this.length):typeof c=="string"&&(l=c,c=this.length),l!==void 0&&typeof l!="string")throw new TypeError("encoding must be a string");if(typeof l=="string"&&!E.isEncoding(l))throw new TypeError("Unknown encoding: "+l);if(r.length===1){var h=r.charCodeAt(0);(l==="utf8"&&h<128||l==="latin1")&&(r=h)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(i<0||this.length<i||this.length<c)throw new RangeError("Out of range index");if(c<=i)return this;i=i>>>0,c=c===void 0?this.length:c>>>0,r||(r=0);var T;if(typeof r=="number")for(T=i;T<c;++T)this[T]=r;else{var w=E.isBuffer(r)?r:E.from(r,l),A=w.length;if(A===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(T=0;T<c-i;++T)this[T+i]=w[T%A]}return this};var CA=/[^+/0-9A-Za-z-_]/g;function PA(n){if(n=n.split("=")[0],n=n.trim().replace(CA,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function Nc(n,r){r=r||1/0;for(var i,c=n.length,l=null,h=[],T=0;T<c;++T){if(i=n.charCodeAt(T),i>55295&&i<57344){if(!l){if(i>56319){(r-=3)>-1&&h.push(239,191,189);continue}else if(T+1===c){(r-=3)>-1&&h.push(239,191,189);continue}l=i;continue}if(i<56320){(r-=3)>-1&&h.push(239,191,189),l=i;continue}i=(l-55296<<10|i-56320)+65536}else l&&(r-=3)>-1&&h.push(239,191,189);if(l=null,i<128){if((r-=1)<0)break;h.push(i)}else if(i<2048){if((r-=2)<0)break;h.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;h.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;h.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return h}function RA(n){for(var r=[],i=0;i<n.length;++i)r.push(n.charCodeAt(i)&255);return r}function DA(n,r){for(var i,c,l,h=[],T=0;T<n.length&&!((r-=2)<0);++T)i=n.charCodeAt(T),c=i>>8,l=i%256,h.push(l),h.push(c);return h}function Gf(n){return Pc.toByteArray(PA(n))}function Qi(n,r,i,c){for(var l=0;l<c&&!(l+i>=r.length||l>=n.length);++l)r[l+i]=n[l];return l}function tn(n,r){return n instanceof r||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===r.name}function Fc(n){return n!==n}var NA=function(){for(var n="0123456789abcdef",r=new Array(256),i=0;i<16;++i)for(var c=i*16,l=0;l<16;++l)r[c+l]=n[i]+n[l];return r}()});var Kf=Lo((hL,zf)=>{s();var Fe=zf.exports={},nn,rn;function Uc(){throw new Error("setTimeout has not been defined")}function Bc(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?nn=setTimeout:nn=Uc}catch(n){nn=Uc}try{typeof clearTimeout=="function"?rn=clearTimeout:rn=Bc}catch(n){rn=Bc}})();function Hf(n){if(nn===setTimeout)return setTimeout(n,0);if((nn===Uc||!nn)&&setTimeout)return nn=setTimeout,setTimeout(n,0);try{return nn(n,0)}catch(r){try{return nn.call(null,n,0)}catch(i){return nn.call(this,n,0)}}}function OA(n){if(rn===clearTimeout)return clearTimeout(n);if((rn===Bc||!rn)&&clearTimeout)return rn=clearTimeout,clearTimeout(n);try{return rn(n)}catch(r){try{return rn.call(null,n)}catch(i){return rn.call(this,n)}}}var vn=[],Fr=!1,sr,ji=-1;function MA(){!Fr||!sr||(Fr=!1,sr.length?vn=sr.concat(vn):ji=-1,vn.length&&Vf())}function Vf(){if(!Fr){var n=Hf(MA);Fr=!0;for(var r=vn.length;r;){for(sr=vn,vn=[];++ji<r;)sr&&sr[ji].run();ji=-1,r=vn.length}sr=null,Fr=!1,OA(n)}}Fe.nextTick=function(n){var r=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)r[i-1]=arguments[i];vn.push(new qf(n,r)),vn.length===1&&!Fr&&Hf(Vf)};function qf(n,r){this.fun=n,this.array=r}qf.prototype.run=function(){this.fun.apply(null,this.array)};Fe.title="browser";Fe.browser=!0;Fe.env={};Fe.argv=[];Fe.version="";Fe.versions={};function wn(){}Fe.on=wn;Fe.addListener=wn;Fe.once=wn;Fe.off=wn;Fe.removeListener=wn;Fe.removeAllListeners=wn;Fe.emit=wn;Fe.prependListener=wn;Fe.prependOnceListener=wn;Fe.listeners=function(n){return[]};Fe.binding=function(n){throw new Error("process.binding is not supported")};Fe.cwd=function(){return"/"};Fe.chdir=function(n){throw new Error("process.chdir is not supported")};Fe.umask=function(){return 0}});var d,m,FA,g,s=Q(()=>{d=ae($f()),m=ae(Kf()),FA=function(n){function r(){var c=this||self;return delete n.prototype.__magic__,c}if(typeof globalThis=="object")return globalThis;if(this)return r();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:r});var i=__magic__;return i}(Object),g=FA});var Yf,ar,Zf,Xf,Jf,Fn,cr=Q(()=>{"use strict";s();Yf="error when signing",ar="Transaction canceled",Zf="error signing transaction",Xf="provider not initialized",Jf="You need a signer/valid signer to send a transaction,use either WalletProvider, LedgerProvider or WalletConnect",Fn="Action not allowed. User is logged in. Call logout() first"});var Qf=Q(()=>{"use strict";s()});var jf=Q(()=>{"use strict";s()});var ed=Q(()=>{"use strict";s()});var Ue=Q(()=>{"use strict";s()});var td=Q(()=>{"use strict";s()});var nd=Q(()=>{"use strict";s()});var dt=Q(()=>{"use strict";s()});var rd=Q(()=>{"use strict";s()});var od=Q(()=>{"use strict";s()});var qe=Q(()=>{"use strict";s();Qf();jf();ed();Ue();td();nd();dt();rd();od()});var Wc,id,ML,sd,FL,ad,UL,BL,WL,cd=Q(()=>{"use strict";s();qe();Wc={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:id,egldLabel:ML}=Wc["devnet"],{chainId:sd,egldLabel:FL}=Wc["testnet"],{chainId:ad,egldLabel:UL}=Wc["mainnet"],BL={["devnet"]:id,["testnet"]:sd,["mainnet"]:ad},WL={[id]:"devnet",[sd]:"testnet",[ad]:"mainnet"}});var Gc,$c=Q(()=>{"use strict";s();Gc={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var ud=Q(()=>{"use strict";s()});var Ur,Hc=Q(()=>{"use strict";s();Ur="transaction-status-toast-id"});var on,ld=Q(()=>{"use strict";s();on=require("@multiversx/sdk-web-wallet-provider")});var Eo,es,pd,fd,dd,ko,ts,gd,Br,Le=Q(()=>{"use strict";s();cr();cd();$c();ud();Hc();ld();Eo=5e4,es=1e9,pd=1,fd=1,dd="/dapp/init",ko="signSession",ts="logout",gd="login",Br="0"});var Wr,ns=Q(()=>{"use strict";s();Wr=()=>Date.now()/1e3});var md=Q(()=>{"use strict";s()});var Td=Q(()=>{"use strict";s()});var Vc=Q(()=>{"use strict";s();ns();md();Td()});var zc={};rr(zc,{getItem:()=>BA,localStorageKeys:()=>qt,removeItem:()=>WA,setItem:()=>UA});var qt,qc,UA,BA,WA,Gr=Q(()=>{"use strict";s();Vc();qt={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},qc=typeof localStorage!="undefined",UA=({key:n,data:r,expires:i})=>{!qc||localStorage.setItem(String(n),JSON.stringify({expires:i,data:r}))},BA=n=>{if(!qc)return;let r=localStorage.getItem(String(n));if(!r)return null;let i=JSON.parse(r);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Wr()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},WA=n=>{!qc||localStorage.removeItem(String(n))}});var Kc={};rr(Kc,{clear:()=>Sd,getItem:()=>yd,removeItem:()=>xd,setItem:()=>hd,storage:()=>GA});var hd,yd,xd,Sd,GA,vd=Q(()=>{"use strict";s();hd=({key:n,data:r,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:r}))},yd=n=>{let r=sessionStorage.getItem(String(n));if(!r)return null;let i=JSON.parse(r);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Date.now()>=i.expires?(sessionStorage.removeItem(String(n)),null):i.data},xd=n=>sessionStorage.removeItem(String(n)),Sd=()=>sessionStorage.clear(),GA={setItem:hd,getItem:yd,removeItem:xd,clear:Sd}});var sn,$r=Q(()=>{"use strict";s();Gr();vd();sn={session:Kc,local:zc}});var Yc,ze,Je,Qe=Q(()=>{"use strict";s();Yc=require("@reduxjs/toolkit");Le();ze=(0,Yc.createAction)(ts),Je=(0,Yc.createAction)(gd,n=>({payload:n}))});var Xc,wd,Ad,rs,Zc,Id,os,Tb,Jc,hb,Qc,_d,yb,xb,Sb,Ld,is,ss=Q(()=>{"use strict";s();Xc=require("@multiversx/sdk-core"),wd=require("@reduxjs/toolkit"),Ad=require("redux-persist");Le();$r();Gr();Qe();rs={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Br},Zc={address:"",websocketEvent:null,accounts:{"":rs},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Id=(0,wd.createSlice)({name:"accountInfoSlice",initialState:Zc,reducers:{setAddress:(n,r)=>{let i=r.payload;n.address=i,n.publicKey=new Xc.Address(i).hex()},setAccount:(n,r)=>{let i=n.address===r.payload.address;n.accounts={[n.address]:i?r.payload:rs},n.shard=r.payload.shard,n.isAccountLoading=!1,n.accountLoadingError=null},setAccountNonce:(n,r)=>{let{address:i}=n;n.accounts[i].nonce=r.payload},setAccountShard:(n,r)=>{n.shard=r.payload},setLedgerAccount:(n,r)=>{n.ledgerAccount=r.payload},updateLedgerAccount:(n,r)=>{n.ledgerAccount!=null&&(n.ledgerAccount.index=r.payload.index,n.ledgerAccount.address=r.payload.address)},setWalletConnectAccount:(n,r)=>{n.walletConnectAccount=r.payload},setIsAccountLoading:(n,r)=>{n.isAccountLoading=r.payload,n.accountLoadingError=null},setAccountLoadingError:(n,r)=>{n.accountLoadingError=r.payload,n.isAccountLoading=!1},setWebsocketEvent:(n,r)=>{n.websocketEvent={timestamp:Date.now(),message:r.payload}}},extraReducers:n=>{n.addCase(ze,()=>(sn.local.removeItem(qt.loginExpiresAt),Zc)),n.addCase(Je,(r,i)=>{let{address:c}=i.payload;r.address=c,r.publicKey=new Xc.Address(c).hex()}),n.addCase(Ad.REHYDRATE,(r,i)=>{var _;if(!((_=i.payload)!=null&&_.account))return;let{account:c}=i.payload,{address:l,shard:h,accounts:T,publicKey:w}=c;r.address=l,r.shard=h;let A=T&&l in T;r.accounts=A?T:Zc.accounts,r.publicKey=w})}}),{setAccount:os,setAddress:Tb,setAccountNonce:Jc,setAccountShard:hb,setLedgerAccount:Qc,updateLedgerAccount:_d,setWalletConnectAccount:yb,setIsAccountLoading:xb,setAccountLoadingError:Sb,setWebsocketEvent:Ld}=Id.actions,is=Id.reducer});function Co(){return new Date().setHours(new Date().getHours()+24)}function Po(n){sn.local.setItem({key:qt.loginExpiresAt,data:n,expires:n})}var jc=Q(()=>{"use strict";s();$r();Gr()});var Ed,bd,kd,Cb,as,Cd,cs,Pb,Pd,Rd,Rb,us,ls=Q(()=>{"use strict";s();Ed=require("@reduxjs/toolkit");jc();Ue();Qe();bd={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},kd=(0,Ed.createSlice)({name:"loginInfoSlice",initialState:bd,reducers:{setLoginMethod:(n,r)=>{n.loginMethod=r.payload},setTokenLogin:(n,r)=>{n.tokenLogin=r.payload},setTokenLoginSignature:(n,r)=>{(n==null?void 0:n.tokenLogin)!=null&&(n.tokenLogin.signature=r.payload)},setWalletLogin:(n,r)=>{n.walletLogin=r.payload},setWalletConnectLogin:(n,r)=>{n.walletConnectLogin=r.payload},setLedgerLogin:(n,r)=>{n.ledgerLogin=r.payload},invalidateLoginSession:n=>{n.isLoginSessionInvalid=!0},setLogoutRoute:(n,r)=>{n.logoutRoute=r.payload}},extraReducers:n=>{n.addCase(ze,()=>bd),n.addCase(Je,(r,i)=>{r.loginMethod=i.payload.loginMethod,Po(Co())})}}),{setLoginMethod:Cb,setWalletConnectLogin:as,setLedgerLogin:Cd,setTokenLogin:cs,setTokenLoginSignature:Pb,setWalletLogin:Pd,invalidateLoginSession:Rd,setLogoutRoute:Rb}=kd.actions,us=kd.reducer});var Nd,Dd,Od,Mb,$A,Fb,Md,ps,fs=Q(()=>{"use strict";s();Nd=require("@reduxjs/toolkit");Qe();Dd={},Od=(0,Nd.createSlice)({name:"modalsSlice",initialState:Dd,reducers:{setTxSubmittedModal:(n,r)=>{n.txSubmittedModal=r.payload},setNotificationModal:(n,r)=>{n.notificationModal=r.payload},clearTxSubmittedModal:n=>{n.txSubmittedModal=void 0},clearNotificationModal:n=>{n.notificationModal=void 0}},extraReducers:n=>{n.addCase(ze,()=>Dd)}}),{setTxSubmittedModal:Mb,setNotificationModal:$A,clearTxSubmittedModal:Fb,clearNotificationModal:Md}=Od.actions,ps=Od.reducer});var Fd,Ud,Hr,Ro=Q(()=>{"use strict";s();Fd=!1,Ud=(n=!0)=>{Fd=n},Hr=(n,r=0)=>{Fd||setTimeout(()=>{window.location.href=n,window.location.assign(n)},r)}});function zt({callbackRoute:n,onLoginRedirect:r,options:i}){let c=Boolean(n),l=typeof r=="function",h=l?0:HA;c&&n!=null&&setTimeout(()=>{if(l)return r(n,i);window.location.pathname.includes(n)||Hr(n)},h)}var HA,Bd=Q(()=>{"use strict";s();Ro();HA=200});function eu(n){return n[Math.floor(Math.random()*n.length)]}var Wd=Q(()=>{"use strict";s()});function ur(n){let r=null;if((n==null?void 0:n.statusCode)in Gc){let i=n==null?void 0:n.statusCode,{message:c}=Gc[i];r=zA.includes(i)?Gd:c}return{errorMessage:r,defaultErrorMessage:Gd}}var Gd,VA,qA,zA,tu=Q(()=>{"use strict";s();$c();Gd="Check if the MultiversX app is open on Ledger",VA=28161,qA=28160,zA=[VA,qA]});var lr=Q(()=>{"use strict";s();Bd();Wd();tu()});var $d,Hd,nu,KA,Vd,Jb,Qb,ds,gs=Q(()=>{"use strict";s();$d=require("@reduxjs/toolkit"),Hd=ae(require("lodash.omit"));lr();nu={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},KA={network:nu,chainID:"-1"},Vd=(0,$d.createSlice)({name:"appConfig",initialState:KA,reducers:{initializeNetworkConfig:(n,r)=>{let i=eu(r.payload.walletConnectBridgeAddresses),c=eu(r.payload.walletConnectV2RelayAddresses),l=(0,Hd.default)(r.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=te(O(O({},n.network),l),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:c})},setChainID:(n,r)=>{n.chainID=r.payload}}}),{initializeNetworkConfig:Jb,setChainID:Qb}=Vd.actions,ds=Vd.reducer});var qd,ru,zd,oE,iE,sE,ms,Ts=Q(()=>{"use strict";s();qd=require("@reduxjs/toolkit");qe();Qe();ru={isSigning:!1,signedSessions:{}},zd=(0,qd.createSlice)({name:"signedMessageInfoSliceState",initialState:ru,reducers:{setSignSession:(n,r)=>{let{sessionId:i,signedSession:c,errorMessage:l}=r.payload;return te(O({},n),{errorMessage:l!=null?l:n.errorMessage,isSigning:c.status==="pending",signedSessions:te(O({},n.signedSessions),{[i]:c})})},setSignSessionState:(n,r)=>O(O({},n),r.payload),clearSignedMessageInfo:()=>ru},extraReducers:n=>{n.addCase(ze,()=>ru)}}),{setSignSession:oE,clearSignedMessageInfo:iE,setSignSessionState:sE}=zd.actions,ms=zd.reducer});var Yd,Zd,Kd,Xd,YA,Do,gE,mE,TE,hE,hs,ys=Q(()=>{"use strict";s();Yd=require("@reduxjs/toolkit"),Zd=require("redux-persist");Hc();qe();ns();Qe();Kd={customToasts:[],transactionToasts:[],failTransactionToast:null},Xd=(0,Yd.createSlice)({name:"toastsSlice",initialState:Kd,reducers:{addCustomToast:(n,r)=>{n.customToasts.push(te(O({},r.payload),{type:"custom",toastId:r.payload.toastId||`custom-toast-${n.customToasts.length+1}`}))},removeCustomToast:(n,r)=>{n.customToasts=n.customToasts.filter(i=>i.toastId!==r.payload)},addTransactionToast:(n,r)=>{n.transactionToasts.push({type:"transaction",startTimestamp:Wr(),toastId:r.payload||`custom-toast-${n.transactionToasts.length+1}`})},removeTransactionToast:(n,r)=>{n.transactionToasts=n.transactionToasts.filter(i=>i.toastId!==r.payload)},addFailTransactionToast:(n,r)=>{n.failTransactionToast=te(O({},r.payload),{toastId:Ur})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(ze,()=>Kd),n.addCase(Zd.REHYDRATE,(r,i)=>{var l,h;let c=(h=(l=i.customToasts)==null?void 0:l.filter(T=>!("component"in T)))!=null?h:[];r.customToasts=c})}}),{addCustomToast:YA,removeCustomToast:Do,addTransactionToast:gE,removeTransactionToast:mE,addFailTransactionToast:TE,removeFailTransactionToast:hE}=Xd.actions,hs=Xd.reducer});var Jd,iu,su,au,ZA,ou,Qd,vE,XA,Vr,xs,Ss=Q(()=>{"use strict";s();Jd=require("@reduxjs/toolkit");Qe();iu="Transaction failed",su="Transaction successful",au="Processing transaction",ZA="Transaction submitted",ou={},Qd=(0,Jd.createSlice)({name:"transactionsInfo",initialState:ou,reducers:{setTransactionsDisplayInfo(n,r){let{sessionId:i,transactionsDisplayInfo:c}=r.payload;i!=null&&(n[i]={errorMessage:(c==null?void 0:c.errorMessage)||iu,successMessage:(c==null?void 0:c.successMessage)||su,processingMessage:(c==null?void 0:c.processingMessage)||au,submittedMessage:(c==null?void 0:c.submittedMessage)||ZA,transactionDuration:c==null?void 0:c.transactionDuration})},clearTransactionsInfoForSessionId(n,r){r.payload!=null&&delete n[r.payload]},clearTransactionsInfo:()=>ou},extraReducers:n=>{n.addCase(ze,()=>ou)}}),{clearTransactionsInfo:vE,setTransactionsDisplayInfo:XA,clearTransactionsInfoForSessionId:Vr}=Qd.actions,xs=Qd.reducer});function an(n){return n!=null&&(oI(n)||cI(n))}function Un(n){return n!=null&&(iI(n)||uI(n))}function Bn(n){return n!=null&&(sI(n)||lI(n))}function vs(n){return n!=null&&aI(n)}function oI(n){return n!=null&&JA.includes(n)}function iI(n){return n!=null&&QA.includes(n)}function sI(n){return n!=null&&jA.includes(n)}function aI(n){return n!=null&&eI.includes(n)}function cI(n){return n!=null&&tI.includes(n)}function uI(n){return n!=null&&nI.includes(n)}function lI(n){return n!=null&&rI.includes(n)}var JA,QA,jA,eI,tI,nI,rI,zr=Q(()=>{"use strict";s();Ue();JA=["sent"],QA=["success"],jA=["fail","cancelled","timedOut"],eI=["timedOut"],tI=["pending"],nI=["success"],rI=["fail","invalid"]});var jd,eg,No,pI,tg,Oo,ws,fI,Wn,ng,dI,CE,rg,fr,cn,As,Is=Q(()=>{"use strict";s();jd=require("@reduxjs/toolkit"),eg=require("redux-persist");Ue();zr();Qe();No={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},pI={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},tg=(0,jd.createSlice)({name:"transactionsSlice",initialState:No,reducers:{moveTransactionsToSignedState:(n,r)=>{var A,_;let{sessionId:i,transactions:c,errorMessage:l,status:h,redirectRoute:T}=r.payload,w=((A=n.customTransactionInformationForSessionId)==null?void 0:A[i])||pI;n.signedTransactions[i]={transactions:c,status:h,errorMessage:l,redirectRoute:T,customTransactionInformation:w},((_=n==null?void 0:n.transactionsToSign)==null?void 0:_.sessionId)===i&&(n.transactionsToSign=No.transactionsToSign)},clearSignedTransaction:(n,r)=>{n.signedTransactions[r.payload]&&delete n.signedTransactions[r.payload]},clearTransactionToSign:n=>{n!=null&&n.transactionsToSign&&(n.transactionsToSign=null)},updateSignedTransaction:(n,r)=>{n.signedTransactions=O(O({},n.signedTransactions),r.payload)},updateSignedTransactions:(n,r)=>{let{sessionId:i,status:c,errorMessage:l,transactions:h}=r.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=c,l!=null&&(n.signedTransactions[i].errorMessage=l),h!=null&&(n.signedTransactions[i].transactions=h))},updateSignedTransactionStatus:(n,r)=>{var w,A,_,L,P,M;let{sessionId:i,status:c,errorMessage:l,transactionHash:h}=r.payload,T=(A=(w=n.signedTransactions)==null?void 0:w[i])==null?void 0:A.transactions;if(T!=null){n.signedTransactions[i].transactions=T.map(G=>G.hash===h?te(O({},G),{status:c,errorMessage:l}):G);let D=(L=(_=n.signedTransactions[i])==null?void 0:_.transactions)==null?void 0:L.every(G=>Un(G.status)),N=(M=(P=n.signedTransactions[i])==null?void 0:P.transactions)==null?void 0:M.every(G=>Bn(G.status));D&&(n.signedTransactions[i].status="success"),N&&(n.signedTransactions[i].status="fail")}},setTransactionsToSign:(n,r)=>{n.transactionsToSign=r.payload;let{sessionId:i,customTransactionInformation:c}=r.payload;n.customTransactionInformationForSessionId[i]=c,n.signTransactionsError=null},clearAllTransactionsToSign:n=>{n.transactionsToSign=No.transactionsToSign,n.signTransactionsError=null},clearAllSignedTransactions:n=>{n.signedTransactions=No.signedTransactions},setSignTransactionsError:(n,r)=>{n.signTransactionsError=r.payload},setSignTransactionsCancelMessage:(n,r)=>{n.signTransactionsCancelMessage=r.payload}},extraReducers:n=>{n.addCase(ze,()=>No),n.addCase(eg.REHYDRATE,(r,i)=>{var T;if(r.signTransactionsCancelMessage=null,!((T=i.payload)!=null&&T.transactions))return;let{signedTransactions:c,customTransactionInformationForSessionId:l}=i.payload.transactions,h=Object.entries(c).reduce((w,[A,_])=>{let L=new Date(A),P=new Date;return P.setHours(P.getHours()+5),P-L>0||(w[A]=_),w},{});l!=null&&(r.customTransactionInformationForSessionId=l),c!=null&&(r.signedTransactions=h)})}}),{updateSignedTransactionStatus:Oo,updateSignedTransactions:ws,setTransactionsToSign:fI,clearAllTransactionsToSign:Wn,clearAllSignedTransactions:ng,clearSignedTransaction:dI,clearTransactionToSign:CE,setSignTransactionsError:rg,setSignTransactionsCancelMessage:fr,moveTransactionsToSignedState:cn}=tg.actions,As=tg.reducer});var Ee=Q(()=>{"use strict";s();ss();ls();fs();gs();Ts();ys();Ss();Is()});var cu=Q(()=>{"use strict";s()});var cg,ag,ug,e1,t1,n1,r1,o1,i1,lg,pg=Q(()=>{"use strict";s();cg=require("@reduxjs/toolkit");Qe();ag={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ug=(0,cg.createSlice)({name:"dappModalsSlice",initialState:ag,reducers:{setDappModalVisibility:(n,r)=>{n.visible=r.payload},setDappModalHeaderVisibility:(n,r)=>{n.modal.showHeader=r.payload},setDappModalFooterVisibility:(n,r)=>{n.modal.showFooter=r.payload},setDappModalHeaderText:(n,r)=>{n.modal.headerText=r.payload},setDappModalFooterText:(n,r)=>{n.modal.footerText=r.payload},setDappModalConfig:(n,r)=>{n.modal=O({},r.payload)}},extraReducers:n=>{n.addCase(ze,()=>ag)}}),{setDappModalVisibility:e1,setDappModalHeaderVisibility:t1,setDappModalFooterVisibility:n1,setDappModalHeaderText:r1,setDappModalFooterText:o1,setDappModalConfig:i1}=ug.actions,lg=ug.reducer});var fg,hI,yI,dr,Es=Q(()=>{"use strict";s();fg=require("@reduxjs/toolkit");cu();ss();pg();ls();fs();gs();Ts();ys();Ss();Is();hI={["account"]:is,["dappModal"]:lg,["loginInfo"]:us,["modals"]:ps,["networkConfig"]:ds,["signedMessageInfo"]:ms,["toasts"]:hs,["transactionsInfo"]:xs,["transactions"]:As},yI=(n={})=>(0,fg.combineReducers)(O(O({},hI),n)),dr=yI});var Tg={};rr(Tg,{default:()=>DI,sessionStorageReducers:()=>uu});function Gn(n,r=[]){return{key:n,version:1,storage:gg.default,blacklist:r}}var It,dg,gg,xI,Fo,SI,vI,wI,AI,II,_I,LI,bI,EI,mg,kI,uu,CI,PI,RI,DI,hg=Q(()=>{"use strict";s();It=require("redux-persist"),dg=ae(require("redux-persist/lib/storage")),gg=ae(require("redux-persist/lib/storage/session"));Es();Ee();ss();ls();fs();gs();Ts();ys();Ss();Is();cu();xI={persistReducersStorageType:"localStorage"},Fo={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},SI=Gn(Fo["account"]),vI=Gn(Fo["loginInfo"]),wI=Gn(Fo["modals"]),AI=Gn(Fo["networkConfig"]),II={2:n=>te(O({},n),{networkConfig:nu})};_I=Gn("sdk-dapp-transactionsInfo"),LI=Gn("sdk-dapp-transactions",["transactionsToSign"]),bI=Gn("sdk-dapp-toasts"),EI=Gn("sdk-dapp-signedMessageInfo"),mg={key:"sdk-dapp-store",version:2,storage:dg.default,whitelist:Object.keys(Fo),migrate:(0,It.createMigrate)(II,{debug:!1})},kI=te(O({},mg),{whitelist:[]}),uu={["toasts"]:(0,It.persistReducer)(bI,hs),["transactions"]:(0,It.persistReducer)(LI,As),["transactionsInfo"]:(0,It.persistReducer)(_I,xs),["signedMessageInfo"]:(0,It.persistReducer)(EI,ms)},CI=te(O({},uu),{["account"]:(0,It.persistReducer)(SI,is),["loginInfo"]:(0,It.persistReducer)(vI,us),["modals"]:(0,It.persistReducer)(wI,ps),["networkConfig"]:(0,It.persistReducer)(AI,ds)}),PI=xI.persistReducersStorageType==="localStorage",RI=PI?(0,It.persistReducer)(mg,dr(uu)):(0,It.persistReducer)(kI,dr(CI)),DI=RI});var yg={};rr(yg,{default:()=>NI});var NI,xg=Q(()=>{"use strict";s();Es();NI=dr()});var Sg={};rr(Sg,{default:()=>MI});var Ot,OI,MI,vg=Q(()=>{"use strict";s();Ot=require("redux-persist"),OI=[Ot.FLUSH,Ot.REHYDRATE,Ot.PAUSE,Ot.PERSIST,Ot.PURGE,Ot.REGISTER],MI=OI});var Ig={};rr(Ig,{default:()=>Ag});function Ag(n){return(0,wg.persistStore)(n)}var wg,_g=Q(()=>{"use strict";s();wg=require("redux-persist")});var Wm=Lo((to,Jo)=>{s();(function(){var n,r="4.17.21",i=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",h="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",w=500,A="__lodash_placeholder__",_=1,L=2,P=4,M=1,D=2,N=1,G=2,Z=4,z=8,B=16,V=32,ne=64,pe=128,Re=256,ce=512,et=30,tt="...",nt=800,Ce=16,Be=1,st=2,Tt=3,ye=1/0,we=9007199254740991,he=17976931348623157e292,ie=0/0,de=4294967295,at=de-1,Ie=de>>>1,j=[["ary",pe],["bind",N],["bindKey",G],["curry",z],["curryRight",B],["flip",ce],["partial",V],["partialRight",ne],["rearg",Re]],K="[object Arguments]",ue="[object Array]",Ye="[object AsyncFunction]",Ut="[object Boolean]",Xt="[object Date]",Kn="[object DOMException]",ri="[object Error]",oi="[object Function]",qu="[object GeneratorFunction]",Bt="[object Map]",oo="[object Number]",TT="[object Null]",ln="[object Object]",zu="[object Promise]",hT="[object Proxy]",io="[object RegExp]",Wt="[object Set]",so="[object String]",ii="[object Symbol]",yT="[object Undefined]",ao="[object WeakMap]",xT="[object WeakSet]",co="[object ArrayBuffer]",vr="[object DataView]",aa="[object Float32Array]",ca="[object Float64Array]",ua="[object Int8Array]",la="[object Int16Array]",pa="[object Int32Array]",fa="[object Uint8Array]",da="[object Uint8ClampedArray]",ga="[object Uint16Array]",ma="[object Uint32Array]",ST=/\b__p \+= '';/g,vT=/\b(__p \+=) '' \+/g,wT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ku=/&(?:amp|lt|gt|quot|#39);/g,Yu=/[&<>"']/g,AT=RegExp(Ku.source),IT=RegExp(Yu.source),_T=/<%-([\s\S]+?)%>/g,LT=/<%([\s\S]+?)%>/g,Zu=/<%=([\s\S]+?)%>/g,bT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ET=/^\w*$/,kT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,CT=RegExp(Ta.source),ha=/^\s+/,PT=/\s/,RT=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,DT=/\{\n\/\* \[wrapped with (.+)\] \*/,NT=/,? & /,OT=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,MT=/[()=,{}\[\]\/\s]/,FT=/\\(\\)?/g,UT=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xu=/\w*$/,BT=/^[-+]0x[0-9a-f]+$/i,WT=/^0b[01]+$/i,GT=/^\[object .+?Constructor\]$/,$T=/^0o[0-7]+$/i,HT=/^(?:0|[1-9]\d*)$/,VT=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,si=/($^)/,qT=/['\n\r\u2028\u2029\\]/g,ai="\\ud800-\\udfff",zT="\\u0300-\\u036f",KT="\\ufe20-\\ufe2f",YT="\\u20d0-\\u20ff",Ju=zT+KT+YT,Qu="\\u2700-\\u27bf",ju="a-z\\xdf-\\xf6\\xf8-\\xff",ZT="\\xac\\xb1\\xd7\\xf7",XT="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",JT="\\u2000-\\u206f",QT=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",el="A-Z\\xc0-\\xd6\\xd8-\\xde",tl="\\ufe0e\\ufe0f",nl=ZT+XT+JT+QT,ya="['\u2019]",jT="["+ai+"]",rl="["+nl+"]",ci="["+Ju+"]",ol="\\d+",eh="["+Qu+"]",il="["+ju+"]",sl="[^"+ai+nl+ol+Qu+ju+el+"]",xa="\\ud83c[\\udffb-\\udfff]",th="(?:"+ci+"|"+xa+")",al="[^"+ai+"]",Sa="(?:\\ud83c[\\udde6-\\uddff]){2}",va="[\\ud800-\\udbff][\\udc00-\\udfff]",wr="["+el+"]",cl="\\u200d",ul="(?:"+il+"|"+sl+")",nh="(?:"+wr+"|"+sl+")",ll="(?:"+ya+"(?:d|ll|m|re|s|t|ve))?",pl="(?:"+ya+"(?:D|LL|M|RE|S|T|VE))?",fl=th+"?",dl="["+tl+"]?",rh="(?:"+cl+"(?:"+[al,Sa,va].join("|")+")"+dl+fl+")*",oh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ih="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gl=dl+fl+rh,sh="(?:"+[eh,Sa,va].join("|")+")"+gl,ah="(?:"+[al+ci+"?",ci,Sa,va,jT].join("|")+")",ch=RegExp(ya,"g"),uh=RegExp(ci,"g"),wa=RegExp(xa+"(?="+xa+")|"+ah+gl,"g"),lh=RegExp([wr+"?"+il+"+"+ll+"(?="+[rl,wr,"$"].join("|")+")",nh+"+"+pl+"(?="+[rl,wr+ul,"$"].join("|")+")",wr+"?"+ul+"+"+ll,wr+"+"+pl,ih,oh,ol,sh].join("|"),"g"),ph=RegExp("["+cl+ai+Ju+tl+"]"),fh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gh=-1,ke={};ke[aa]=ke[ca]=ke[ua]=ke[la]=ke[pa]=ke[fa]=ke[da]=ke[ga]=ke[ma]=!0,ke[K]=ke[ue]=ke[co]=ke[Ut]=ke[vr]=ke[Xt]=ke[ri]=ke[oi]=ke[Bt]=ke[oo]=ke[ln]=ke[io]=ke[Wt]=ke[so]=ke[ao]=!1;var be={};be[K]=be[ue]=be[co]=be[vr]=be[Ut]=be[Xt]=be[aa]=be[ca]=be[ua]=be[la]=be[pa]=be[Bt]=be[oo]=be[ln]=be[io]=be[Wt]=be[so]=be[ii]=be[fa]=be[da]=be[ga]=be[ma]=!0,be[ri]=be[oi]=be[ao]=!1;var mh={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Th={"&":"&","<":"<",">":">",'"':""","'":"'"},hh={"&":"&","<":"<",">":">",""":'"',"'":"'"},yh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xh=parseFloat,Sh=parseInt,ml=typeof g=="object"&&g&&g.Object===Object&&g,vh=typeof self=="object"&&self&&self.Object===Object&&self,$e=ml||vh||Function("return this")(),Aa=typeof to=="object"&&to&&!to.nodeType&&to,Yn=Aa&&typeof Jo=="object"&&Jo&&!Jo.nodeType&&Jo,Tl=Yn&&Yn.exports===Aa,Ia=Tl&&ml.process,Lt=function(){try{var S=Yn&&Yn.require&&Yn.require("util").types;return S||Ia&&Ia.binding&&Ia.binding("util")}catch(b){}}(),hl=Lt&&Lt.isArrayBuffer,yl=Lt&&Lt.isDate,xl=Lt&&Lt.isMap,Sl=Lt&&Lt.isRegExp,vl=Lt&&Lt.isSet,wl=Lt&&Lt.isTypedArray;function ht(S,b,I){switch(I.length){case 0:return S.call(b);case 1:return S.call(b,I[0]);case 2:return S.call(b,I[0],I[1]);case 3:return S.call(b,I[0],I[1],I[2])}return S.apply(b,I)}function wh(S,b,I,W){for(var re=-1,xe=S==null?0:S.length;++re<xe;){var We=S[re];b(W,We,I(We),S)}return W}function bt(S,b){for(var I=-1,W=S==null?0:S.length;++I<W&&b(S[I],I,S)!==!1;);return S}function Ah(S,b){for(var I=S==null?0:S.length;I--&&b(S[I],I,S)!==!1;);return S}function Al(S,b){for(var I=-1,W=S==null?0:S.length;++I<W;)if(!b(S[I],I,S))return!1;return!0}function bn(S,b){for(var I=-1,W=S==null?0:S.length,re=0,xe=[];++I<W;){var We=S[I];b(We,I,S)&&(xe[re++]=We)}return xe}function ui(S,b){var I=S==null?0:S.length;return!!I&&Ar(S,b,0)>-1}function _a(S,b,I){for(var W=-1,re=S==null?0:S.length;++W<re;)if(I(b,S[W]))return!0;return!1}function Pe(S,b){for(var I=-1,W=S==null?0:S.length,re=Array(W);++I<W;)re[I]=b(S[I],I,S);return re}function En(S,b){for(var I=-1,W=b.length,re=S.length;++I<W;)S[re+I]=b[I];return S}function La(S,b,I,W){var re=-1,xe=S==null?0:S.length;for(W&&xe&&(I=S[++re]);++re<xe;)I=b(I,S[re],re,S);return I}function Ih(S,b,I,W){var re=S==null?0:S.length;for(W&&re&&(I=S[--re]);re--;)I=b(I,S[re],re,S);return I}function ba(S,b){for(var I=-1,W=S==null?0:S.length;++I<W;)if(b(S[I],I,S))return!0;return!1}var _h=Ea("length");function Lh(S){return S.split("")}function bh(S){return S.match(OT)||[]}function Il(S,b,I){var W;return I(S,function(re,xe,We){if(b(re,xe,We))return W=xe,!1}),W}function li(S,b,I,W){for(var re=S.length,xe=I+(W?1:-1);W?xe--:++xe<re;)if(b(S[xe],xe,S))return xe;return-1}function Ar(S,b,I){return b===b?Bh(S,b,I):li(S,_l,I)}function Eh(S,b,I,W){for(var re=I-1,xe=S.length;++re<xe;)if(W(S[re],b))return re;return-1}function _l(S){return S!==S}function Ll(S,b){var I=S==null?0:S.length;return I?Ca(S,b)/I:ie}function Ea(S){return function(b){return b==null?n:b[S]}}function ka(S){return function(b){return S==null?n:S[b]}}function bl(S,b,I,W,re){return re(S,function(xe,We,_e){I=W?(W=!1,xe):b(I,xe,We,_e)}),I}function kh(S,b){var I=S.length;for(S.sort(b);I--;)S[I]=S[I].value;return S}function Ca(S,b){for(var I,W=-1,re=S.length;++W<re;){var xe=b(S[W]);xe!==n&&(I=I===n?xe:I+xe)}return I}function Pa(S,b){for(var I=-1,W=Array(S);++I<S;)W[I]=b(I);return W}function Ch(S,b){return Pe(b,function(I){return[I,S[I]]})}function El(S){return S&&S.slice(0,Rl(S)+1).replace(ha,"")}function yt(S){return function(b){return S(b)}}function Ra(S,b){return Pe(b,function(I){return S[I]})}function uo(S,b){return S.has(b)}function kl(S,b){for(var I=-1,W=S.length;++I<W&&Ar(b,S[I],0)>-1;);return I}function Cl(S,b){for(var I=S.length;I--&&Ar(b,S[I],0)>-1;);return I}function Ph(S,b){for(var I=S.length,W=0;I--;)S[I]===b&&++W;return W}var Rh=ka(mh),Dh=ka(Th);function Nh(S){return"\\"+yh[S]}function Oh(S,b){return S==null?n:S[b]}function Ir(S){return ph.test(S)}function Mh(S){return fh.test(S)}function Fh(S){for(var b,I=[];!(b=S.next()).done;)I.push(b.value);return I}function Da(S){var b=-1,I=Array(S.size);return S.forEach(function(W,re){I[++b]=[re,W]}),I}function Pl(S,b){return function(I){return S(b(I))}}function kn(S,b){for(var I=-1,W=S.length,re=0,xe=[];++I<W;){var We=S[I];(We===b||We===A)&&(S[I]=A,xe[re++]=I)}return xe}function pi(S){var b=-1,I=Array(S.size);return S.forEach(function(W){I[++b]=W}),I}function Uh(S){var b=-1,I=Array(S.size);return S.forEach(function(W){I[++b]=[W,W]}),I}function Bh(S,b,I){for(var W=I-1,re=S.length;++W<re;)if(S[W]===b)return W;return-1}function Wh(S,b,I){for(var W=I+1;W--;)if(S[W]===b)return W;return W}function _r(S){return Ir(S)?$h(S):_h(S)}function Gt(S){return Ir(S)?Hh(S):Lh(S)}function Rl(S){for(var b=S.length;b--&&PT.test(S.charAt(b)););return b}var Gh=ka(hh);function $h(S){for(var b=wa.lastIndex=0;wa.test(S);)++b;return b}function Hh(S){return S.match(wa)||[]}function Vh(S){return S.match(lh)||[]}var qh=function S(b){b=b==null?$e:Cn.defaults($e.Object(),b,Cn.pick($e,dh));var I=b.Array,W=b.Date,re=b.Error,xe=b.Function,We=b.Math,_e=b.Object,Na=b.RegExp,zh=b.String,Et=b.TypeError,fi=I.prototype,Kh=xe.prototype,Lr=_e.prototype,di=b["__core-js_shared__"],gi=Kh.toString,ve=Lr.hasOwnProperty,Yh=0,Dl=function(){var e=/[^.]+$/.exec(di&&di.keys&&di.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mi=Lr.toString,Zh=gi.call(_e),Xh=$e._,Jh=Na("^"+gi.call(ve).replace(Ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ti=Tl?b.Buffer:n,Pn=b.Symbol,hi=b.Uint8Array,Nl=Ti?Ti.allocUnsafe:n,yi=Pl(_e.getPrototypeOf,_e),Ol=_e.create,Ml=Lr.propertyIsEnumerable,xi=fi.splice,Fl=Pn?Pn.isConcatSpreadable:n,lo=Pn?Pn.iterator:n,Zn=Pn?Pn.toStringTag:n,Si=function(){try{var e=er(_e,"defineProperty");return e({},"",{}),e}catch(t){}}(),Qh=b.clearTimeout!==$e.clearTimeout&&b.clearTimeout,jh=W&&W.now!==$e.Date.now&&W.now,ey=b.setTimeout!==$e.setTimeout&&b.setTimeout,vi=We.ceil,wi=We.floor,Oa=_e.getOwnPropertySymbols,ty=Ti?Ti.isBuffer:n,Ul=b.isFinite,ny=fi.join,ry=Pl(_e.keys,_e),Ge=We.max,Ze=We.min,oy=W.now,iy=b.parseInt,Bl=We.random,sy=fi.reverse,Ma=er(b,"DataView"),po=er(b,"Map"),Fa=er(b,"Promise"),br=er(b,"Set"),fo=er(b,"WeakMap"),go=er(_e,"create"),Ai=fo&&new fo,Er={},ay=tr(Ma),cy=tr(po),uy=tr(Fa),ly=tr(br),py=tr(fo),Ii=Pn?Pn.prototype:n,mo=Ii?Ii.valueOf:n,Wl=Ii?Ii.toString:n;function p(e){if(Ne(e)&&!oe(e)&&!(e instanceof me)){if(e instanceof kt)return e;if(ve.call(e,"__wrapped__"))return Gp(e)}return new kt(e)}var kr=function(){function e(){}return function(t){if(!De(t))return{};if(Ol)return Ol(t);e.prototype=t;var o=new e;return e.prototype=n,o}}();function _i(){}function kt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}p.templateSettings={escape:_T,evaluate:LT,interpolate:Zu,variable:"",imports:{_:p}},p.prototype=_i.prototype,p.prototype.constructor=p,kt.prototype=kr(_i.prototype),kt.prototype.constructor=kt;function me(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=de,this.__views__=[]}function fy(){var e=new me(this.__wrapped__);return e.__actions__=ct(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ct(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ct(this.__views__),e}function dy(){if(this.__filtered__){var e=new me(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function gy(){var e=this.__wrapped__.value(),t=this.__dir__,o=oe(e),a=t<0,u=o?e.length:0,f=Lx(0,u,this.__views__),y=f.start,x=f.end,v=x-y,k=a?x:y-1,C=this.__iteratees__,R=C.length,U=0,q=Ze(v,this.__takeCount__);if(!o||!a&&u==v&&q==v)return lp(e,this.__actions__);var X=[];e:for(;v--&&U<q;){k+=t;for(var le=-1,J=e[k];++le<R;){var ge=C[le],Te=ge.iteratee,vt=ge.type,it=Te(J);if(vt==st)J=it;else if(!it){if(vt==Be)continue e;break e}}X[U++]=J}return X}me.prototype=kr(_i.prototype),me.prototype.constructor=me;function Xn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function my(){this.__data__=go?go(null):{},this.size=0}function Ty(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function hy(e){var t=this.__data__;if(go){var o=t[e];return o===T?n:o}return ve.call(t,e)?t[e]:n}function yy(e){var t=this.__data__;return go?t[e]!==n:ve.call(t,e)}function xy(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=go&&t===n?T:t,this}Xn.prototype.clear=my,Xn.prototype.delete=Ty,Xn.prototype.get=hy,Xn.prototype.has=yy,Xn.prototype.set=xy;function pn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Sy(){this.__data__=[],this.size=0}function vy(e){var t=this.__data__,o=Li(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():xi.call(t,o,1),--this.size,!0}function wy(e){var t=this.__data__,o=Li(t,e);return o<0?n:t[o][1]}function Ay(e){return Li(this.__data__,e)>-1}function Iy(e,t){var o=this.__data__,a=Li(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}pn.prototype.clear=Sy,pn.prototype.delete=vy,pn.prototype.get=wy,pn.prototype.has=Ay,pn.prototype.set=Iy;function fn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function _y(){this.size=0,this.__data__={hash:new Xn,map:new(po||pn),string:new Xn}}function Ly(e){var t=Ui(this,e).delete(e);return this.size-=t?1:0,t}function by(e){return Ui(this,e).get(e)}function Ey(e){return Ui(this,e).has(e)}function ky(e,t){var o=Ui(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}fn.prototype.clear=_y,fn.prototype.delete=Ly,fn.prototype.get=by,fn.prototype.has=Ey,fn.prototype.set=ky;function Jn(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new fn;++t<o;)this.add(e[t])}function Cy(e){return this.__data__.set(e,T),this}function Py(e){return this.__data__.has(e)}Jn.prototype.add=Jn.prototype.push=Cy,Jn.prototype.has=Py;function $t(e){var t=this.__data__=new pn(e);this.size=t.size}function Ry(){this.__data__=new pn,this.size=0}function Dy(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Ny(e){return this.__data__.get(e)}function Oy(e){return this.__data__.has(e)}function My(e,t){var o=this.__data__;if(o instanceof pn){var a=o.__data__;if(!po||a.length<i-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new fn(a)}return o.set(e,t),this.size=o.size,this}$t.prototype.clear=Ry,$t.prototype.delete=Dy,$t.prototype.get=Ny,$t.prototype.has=Oy,$t.prototype.set=My;function Gl(e,t){var o=oe(e),a=!o&&nr(e),u=!o&&!a&&Mn(e),f=!o&&!a&&!u&&Dr(e),y=o||a||u||f,x=y?Pa(e.length,zh):[],v=x.length;for(var k in e)(t||ve.call(e,k))&&!(y&&(k=="length"||u&&(k=="offset"||k=="parent")||f&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||Tn(k,v)))&&x.push(k);return x}function $l(e){var t=e.length;return t?e[Ya(0,t-1)]:n}function Fy(e,t){return Bi(ct(e),Qn(t,0,e.length))}function Uy(e){return Bi(ct(e))}function Ua(e,t,o){(o!==n&&!Ht(e[t],o)||o===n&&!(t in e))&&dn(e,t,o)}function To(e,t,o){var a=e[t];(!(ve.call(e,t)&&Ht(a,o))||o===n&&!(t in e))&&dn(e,t,o)}function Li(e,t){for(var o=e.length;o--;)if(Ht(e[o][0],t))return o;return-1}function By(e,t,o,a){return Rn(e,function(u,f,y){t(a,u,o(u),y)}),a}function Hl(e,t){return e&&Qt(t,He(t),e)}function Wy(e,t){return e&&Qt(t,lt(t),e)}function dn(e,t,o){t=="__proto__"&&Si?Si(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function Ba(e,t){for(var o=-1,a=t.length,u=I(a),f=e==null;++o<a;)u[o]=f?n:xc(e,t[o]);return u}function Qn(e,t,o){return e===e&&(o!==n&&(e=e<=o?e:o),t!==n&&(e=e>=t?e:t)),e}function Ct(e,t,o,a,u,f){var y,x=t&_,v=t&L,k=t&P;if(o&&(y=u?o(e,a,u,f):o(e)),y!==n)return y;if(!De(e))return e;var C=oe(e);if(C){if(y=Ex(e),!x)return ct(e,y)}else{var R=Xe(e),U=R==oi||R==qu;if(Mn(e))return dp(e,x);if(R==ln||R==K||U&&!u){if(y=v||U?{}:Rp(e),!x)return v?hx(e,Wy(y,e)):Tx(e,Hl(y,e))}else{if(!be[R])return u?e:{};y=kx(e,R,x)}}f||(f=new $t);var q=f.get(e);if(q)return q;f.set(e,y),cf(e)?e.forEach(function(J){y.add(Ct(J,t,o,J,e,f))}):sf(e)&&e.forEach(function(J,ge){y.set(ge,Ct(J,t,o,ge,e,f))});var X=k?v?ic:oc:v?lt:He,le=C?n:X(e);return bt(le||e,function(J,ge){le&&(ge=J,J=e[ge]),To(y,ge,Ct(J,t,o,ge,e,f))}),y}function Gy(e){var t=He(e);return function(o){return Vl(o,e,t)}}function Vl(e,t,o){var a=o.length;if(e==null)return!a;for(e=_e(e);a--;){var u=o[a],f=t[u],y=e[u];if(y===n&&!(u in e)||!f(y))return!1}return!0}function ql(e,t,o){if(typeof e!="function")throw new Et(l);return Ao(function(){e.apply(n,o)},t)}function ho(e,t,o,a){var u=-1,f=ui,y=!0,x=e.length,v=[],k=t.length;if(!x)return v;o&&(t=Pe(t,yt(o))),a?(f=_a,y=!1):t.length>=i&&(f=uo,y=!1,t=new Jn(t));e:for(;++u<x;){var C=e[u],R=o==null?C:o(C);if(C=a||C!==0?C:0,y&&R===R){for(var U=k;U--;)if(t[U]===R)continue e;v.push(C)}else f(t,R,a)||v.push(C)}return v}var Rn=yp(Jt),zl=yp(Ga,!0);function $y(e,t){var o=!0;return Rn(e,function(a,u,f){return o=!!t(a,u,f),o}),o}function bi(e,t,o){for(var a=-1,u=e.length;++a<u;){var f=e[a],y=t(f);if(y!=null&&(x===n?y===y&&!St(y):o(y,x)))var x=y,v=f}return v}function Hy(e,t,o,a){var u=e.length;for(o=se(o),o<0&&(o=-o>u?0:u+o),a=a===n||a>u?u:se(a),a<0&&(a+=u),a=o>a?0:lf(a);o<a;)e[o++]=t;return e}function Kl(e,t){var o=[];return Rn(e,function(a,u,f){t(a,u,f)&&o.push(a)}),o}function Ke(e,t,o,a,u){var f=-1,y=e.length;for(o||(o=Px),u||(u=[]);++f<y;){var x=e[f];t>0&&o(x)?t>1?Ke(x,t-1,o,a,u):En(u,x):a||(u[u.length]=x)}return u}var Wa=xp(),Yl=xp(!0);function Jt(e,t){return e&&Wa(e,t,He)}function Ga(e,t){return e&&Yl(e,t,He)}function Ei(e,t){return bn(t,function(o){return hn(e[o])})}function jn(e,t){t=Nn(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[jt(t[o++])];return o&&o==a?e:n}function Zl(e,t,o){var a=t(e);return oe(e)?a:En(a,o(e))}function rt(e){return e==null?e===n?yT:TT:Zn&&Zn in _e(e)?_x(e):Ux(e)}function $a(e,t){return e>t}function Vy(e,t){return e!=null&&ve.call(e,t)}function qy(e,t){return e!=null&&t in _e(e)}function zy(e,t,o){return e>=Ze(t,o)&&e<Ge(t,o)}function Ha(e,t,o){for(var a=o?_a:ui,u=e[0].length,f=e.length,y=f,x=I(f),v=1/0,k=[];y--;){var C=e[y];y&&t&&(C=Pe(C,yt(t))),v=Ze(C.length,v),x[y]=!o&&(t||u>=120&&C.length>=120)?new Jn(y&&C):n}C=e[0];var R=-1,U=x[0];e:for(;++R<u&&k.length<v;){var q=C[R],X=t?t(q):q;if(q=o||q!==0?q:0,!(U?uo(U,X):a(k,X,o))){for(y=f;--y;){var le=x[y];if(!(le?uo(le,X):a(e[y],X,o)))continue e}U&&U.push(X),k.push(q)}}return k}function Ky(e,t,o,a){return Jt(e,function(u,f,y){t(a,o(u),f,y)}),a}function yo(e,t,o){t=Nn(t,e),e=Mp(e,t);var a=e==null?e:e[jt(Rt(t))];return a==null?n:ht(a,e,o)}function Xl(e){return Ne(e)&&rt(e)==K}function Yy(e){return Ne(e)&&rt(e)==co}function Zy(e){return Ne(e)&&rt(e)==Xt}function xo(e,t,o,a,u){return e===t?!0:e==null||t==null||!Ne(e)&&!Ne(t)?e!==e&&t!==t:Xy(e,t,o,a,xo,u)}function Xy(e,t,o,a,u,f){var y=oe(e),x=oe(t),v=y?ue:Xe(e),k=x?ue:Xe(t);v=v==K?ln:v,k=k==K?ln:k;var C=v==ln,R=k==ln,U=v==k;if(U&&Mn(e)){if(!Mn(t))return!1;y=!0,C=!1}if(U&&!C)return f||(f=new $t),y||Dr(e)?kp(e,t,o,a,u,f):Ax(e,t,v,o,a,u,f);if(!(o&M)){var q=C&&ve.call(e,"__wrapped__"),X=R&&ve.call(t,"__wrapped__");if(q||X){var le=q?e.value():e,J=X?t.value():t;return f||(f=new $t),u(le,J,o,a,f)}}return U?(f||(f=new $t),Ix(e,t,o,a,u,f)):!1}function Jy(e){return Ne(e)&&Xe(e)==Bt}function Va(e,t,o,a){var u=o.length,f=u,y=!a;if(e==null)return!f;for(e=_e(e);u--;){var x=o[u];if(y&&x[2]?x[1]!==e[x[0]]:!(x[0]in e))return!1}for(;++u<f;){x=o[u];var v=x[0],k=e[v],C=x[1];if(y&&x[2]){if(k===n&&!(v in e))return!1}else{var R=new $t;if(a)var U=a(k,C,v,e,t,R);if(!(U===n?xo(C,k,M|D,a,R):U))return!1}}return!0}function Jl(e){if(!De(e)||Dx(e))return!1;var t=hn(e)?Jh:GT;return t.test(tr(e))}function Qy(e){return Ne(e)&&rt(e)==io}function jy(e){return Ne(e)&&Xe(e)==Wt}function ex(e){return Ne(e)&&qi(e.length)&&!!ke[rt(e)]}function Ql(e){return typeof e=="function"?e:e==null?pt:typeof e=="object"?oe(e)?tp(e[0],e[1]):ep(e):vf(e)}function qa(e){if(!wo(e))return ry(e);var t=[];for(var o in _e(e))ve.call(e,o)&&o!="constructor"&&t.push(o);return t}function tx(e){if(!De(e))return Fx(e);var t=wo(e),o=[];for(var a in e)a=="constructor"&&(t||!ve.call(e,a))||o.push(a);return o}function za(e,t){return e<t}function jl(e,t){var o=-1,a=ut(e)?I(e.length):[];return Rn(e,function(u,f,y){a[++o]=t(u,f,y)}),a}function ep(e){var t=ac(e);return t.length==1&&t[0][2]?Np(t[0][0],t[0][1]):function(o){return o===e||Va(o,e,t)}}function tp(e,t){return uc(e)&&Dp(t)?Np(jt(e),t):function(o){var a=xc(o,e);return a===n&&a===t?Sc(o,e):xo(t,a,M|D)}}function ki(e,t,o,a,u){e!==t&&Wa(t,function(f,y){if(u||(u=new $t),De(f))nx(e,t,y,o,ki,a,u);else{var x=a?a(pc(e,y),f,y+"",e,t,u):n;x===n&&(x=f),Ua(e,y,x)}},lt)}function nx(e,t,o,a,u,f,y){var x=pc(e,o),v=pc(t,o),k=y.get(v);if(k){Ua(e,o,k);return}var C=f?f(x,v,o+"",e,t,y):n,R=C===n;if(R){var U=oe(v),q=!U&&Mn(v),X=!U&&!q&&Dr(v);C=v,U||q||X?oe(x)?C=x:Oe(x)?C=ct(x):q?(R=!1,C=dp(v,!0)):X?(R=!1,C=gp(v,!0)):C=[]:Io(v)||nr(v)?(C=x,nr(x)?C=pf(x):(!De(x)||hn(x))&&(C=Rp(v))):R=!1}R&&(y.set(v,C),u(C,v,a,f,y),y.delete(v)),Ua(e,o,C)}function np(e,t){var o=e.length;if(!!o)return t+=t<0?o:0,Tn(t,o)?e[t]:n}function rp(e,t,o){t.length?t=Pe(t,function(f){return oe(f)?function(y){return jn(y,f.length===1?f[0]:f)}:f}):t=[pt];var a=-1;t=Pe(t,yt(Y()));var u=jl(e,function(f,y,x){var v=Pe(t,function(k){return k(f)});return{criteria:v,index:++a,value:f}});return kh(u,function(f,y){return mx(f,y,o)})}function rx(e,t){return op(e,t,function(o,a){return Sc(e,a)})}function op(e,t,o){for(var a=-1,u=t.length,f={};++a<u;){var y=t[a],x=jn(e,y);o(x,y)&&So(f,Nn(y,e),x)}return f}function ox(e){return function(t){return jn(t,e)}}function Ka(e,t,o,a){var u=a?Eh:Ar,f=-1,y=t.length,x=e;for(e===t&&(t=ct(t)),o&&(x=Pe(e,yt(o)));++f<y;)for(var v=0,k=t[f],C=o?o(k):k;(v=u(x,C,v,a))>-1;)x!==e&&xi.call(x,v,1),xi.call(e,v,1);return e}function ip(e,t){for(var o=e?t.length:0,a=o-1;o--;){var u=t[o];if(o==a||u!==f){var f=u;Tn(u)?xi.call(e,u,1):Ja(e,u)}}return e}function Ya(e,t){return e+wi(Bl()*(t-e+1))}function ix(e,t,o,a){for(var u=-1,f=Ge(vi((t-e)/(o||1)),0),y=I(f);f--;)y[a?f:++u]=e,e+=o;return y}function Za(e,t){var o="";if(!e||t<1||t>we)return o;do t%2&&(o+=e),t=wi(t/2),t&&(e+=e);while(t);return o}function fe(e,t){return fc(Op(e,t,pt),e+"")}function sx(e){return $l(Nr(e))}function ax(e,t){var o=Nr(e);return Bi(o,Qn(t,0,o.length))}function So(e,t,o,a){if(!De(e))return e;t=Nn(t,e);for(var u=-1,f=t.length,y=f-1,x=e;x!=null&&++u<f;){var v=jt(t[u]),k=o;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(u!=y){var C=x[v];k=a?a(C,v,x):n,k===n&&(k=De(C)?C:Tn(t[u+1])?[]:{})}To(x,v,k),x=x[v]}return e}var sp=Ai?function(e,t){return Ai.set(e,t),e}:pt,cx=Si?function(e,t){return Si(e,"toString",{configurable:!0,enumerable:!1,value:wc(t),writable:!0})}:pt;function ux(e){return Bi(Nr(e))}function Pt(e,t,o){var a=-1,u=e.length;t<0&&(t=-t>u?0:u+t),o=o>u?u:o,o<0&&(o+=u),u=t>o?0:o-t>>>0,t>>>=0;for(var f=I(u);++a<u;)f[a]=e[a+t];return f}function lx(e,t){var o;return Rn(e,function(a,u,f){return o=t(a,u,f),!o}),!!o}function Ci(e,t,o){var a=0,u=e==null?a:e.length;if(typeof t=="number"&&t===t&&u<=Ie){for(;a<u;){var f=a+u>>>1,y=e[f];y!==null&&!St(y)&&(o?y<=t:y<t)?a=f+1:u=f}return u}return Xa(e,t,pt,o)}function Xa(e,t,o,a){var u=0,f=e==null?0:e.length;if(f===0)return 0;t=o(t);for(var y=t!==t,x=t===null,v=St(t),k=t===n;u<f;){var C=wi((u+f)/2),R=o(e[C]),U=R!==n,q=R===null,X=R===R,le=St(R);if(y)var J=a||X;else k?J=X&&(a||U):x?J=X&&U&&(a||!q):v?J=X&&U&&!q&&(a||!le):q||le?J=!1:J=a?R<=t:R<t;J?u=C+1:f=C}return Ze(f,at)}function ap(e,t){for(var o=-1,a=e.length,u=0,f=[];++o<a;){var y=e[o],x=t?t(y):y;if(!o||!Ht(x,v)){var v=x;f[u++]=y===0?0:y}}return f}function cp(e){return typeof e=="number"?e:St(e)?ie:+e}function xt(e){if(typeof e=="string")return e;if(oe(e))return Pe(e,xt)+"";if(St(e))return Wl?Wl.call(e):"";var t=e+"";return t=="0"&&1/e==-ye?"-0":t}function Dn(e,t,o){var a=-1,u=ui,f=e.length,y=!0,x=[],v=x;if(o)y=!1,u=_a;else if(f>=i){var k=t?null:vx(e);if(k)return pi(k);y=!1,u=uo,v=new Jn}else v=t?[]:x;e:for(;++a<f;){var C=e[a],R=t?t(C):C;if(C=o||C!==0?C:0,y&&R===R){for(var U=v.length;U--;)if(v[U]===R)continue e;t&&v.push(R),x.push(C)}else u(v,R,o)||(v!==x&&v.push(R),x.push(C))}return x}function Ja(e,t){return t=Nn(t,e),e=Mp(e,t),e==null||delete e[jt(Rt(t))]}function up(e,t,o,a){return So(e,t,o(jn(e,t)),a)}function Pi(e,t,o,a){for(var u=e.length,f=a?u:-1;(a?f--:++f<u)&&t(e[f],f,e););return o?Pt(e,a?0:f,a?f+1:u):Pt(e,a?f+1:0,a?u:f)}function lp(e,t){var o=e;return o instanceof me&&(o=o.value()),La(t,function(a,u){return u.func.apply(u.thisArg,En([a],u.args))},o)}function Qa(e,t,o){var a=e.length;if(a<2)return a?Dn(e[0]):[];for(var u=-1,f=I(a);++u<a;)for(var y=e[u],x=-1;++x<a;)x!=u&&(f[u]=ho(f[u]||y,e[x],t,o));return Dn(Ke(f,1),t,o)}function pp(e,t,o){for(var a=-1,u=e.length,f=t.length,y={};++a<u;){var x=a<f?t[a]:n;o(y,e[a],x)}return y}function ja(e){return Oe(e)?e:[]}function ec(e){return typeof e=="function"?e:pt}function Nn(e,t){return oe(e)?e:uc(e,t)?[e]:Wp(Se(e))}var px=fe;function On(e,t,o){var a=e.length;return o=o===n?a:o,!t&&o>=a?e:Pt(e,t,o)}var fp=Qh||function(e){return $e.clearTimeout(e)};function dp(e,t){if(t)return e.slice();var o=e.length,a=Nl?Nl(o):new e.constructor(o);return e.copy(a),a}function tc(e){var t=new e.constructor(e.byteLength);return new hi(t).set(new hi(e)),t}function fx(e,t){var o=t?tc(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function dx(e){var t=new e.constructor(e.source,Xu.exec(e));return t.lastIndex=e.lastIndex,t}function gx(e){return mo?_e(mo.call(e)):{}}function gp(e,t){var o=t?tc(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function mp(e,t){if(e!==t){var o=e!==n,a=e===null,u=e===e,f=St(e),y=t!==n,x=t===null,v=t===t,k=St(t);if(!x&&!k&&!f&&e>t||f&&y&&v&&!x&&!k||a&&y&&v||!o&&v||!u)return 1;if(!a&&!f&&!k&&e<t||k&&o&&u&&!a&&!f||x&&o&&u||!y&&u||!v)return-1}return 0}function mx(e,t,o){for(var a=-1,u=e.criteria,f=t.criteria,y=u.length,x=o.length;++a<y;){var v=mp(u[a],f[a]);if(v){if(a>=x)return v;var k=o[a];return v*(k=="desc"?-1:1)}}return e.index-t.index}function Tp(e,t,o,a){for(var u=-1,f=e.length,y=o.length,x=-1,v=t.length,k=Ge(f-y,0),C=I(v+k),R=!a;++x<v;)C[x]=t[x];for(;++u<y;)(R||u<f)&&(C[o[u]]=e[u]);for(;k--;)C[x++]=e[u++];return C}function hp(e,t,o,a){for(var u=-1,f=e.length,y=-1,x=o.length,v=-1,k=t.length,C=Ge(f-x,0),R=I(C+k),U=!a;++u<C;)R[u]=e[u];for(var q=u;++v<k;)R[q+v]=t[v];for(;++y<x;)(U||u<f)&&(R[q+o[y]]=e[u++]);return R}function ct(e,t){var o=-1,a=e.length;for(t||(t=I(a));++o<a;)t[o]=e[o];return t}function Qt(e,t,o,a){var u=!o;o||(o={});for(var f=-1,y=t.length;++f<y;){var x=t[f],v=a?a(o[x],e[x],x,o,e):n;v===n&&(v=e[x]),u?dn(o,x,v):To(o,x,v)}return o}function Tx(e,t){return Qt(e,cc(e),t)}function hx(e,t){return Qt(e,Cp(e),t)}function Ri(e,t){return function(o,a){var u=oe(o)?wh:By,f=t?t():{};return u(o,e,Y(a,2),f)}}function Cr(e){return fe(function(t,o){var a=-1,u=o.length,f=u>1?o[u-1]:n,y=u>2?o[2]:n;for(f=e.length>3&&typeof f=="function"?(u--,f):n,y&&ot(o[0],o[1],y)&&(f=u<3?n:f,u=1),t=_e(t);++a<u;){var x=o[a];x&&e(t,x,a,f)}return t})}function yp(e,t){return function(o,a){if(o==null)return o;if(!ut(o))return e(o,a);for(var u=o.length,f=t?u:-1,y=_e(o);(t?f--:++f<u)&&a(y[f],f,y)!==!1;);return o}}function xp(e){return function(t,o,a){for(var u=-1,f=_e(t),y=a(t),x=y.length;x--;){var v=y[e?x:++u];if(o(f[v],v,f)===!1)break}return t}}function yx(e,t,o){var a=t&N,u=vo(e);function f(){var y=this&&this!==$e&&this instanceof f?u:e;return y.apply(a?o:this,arguments)}return f}function Sp(e){return function(t){t=Se(t);var o=Ir(t)?Gt(t):n,a=o?o[0]:t.charAt(0),u=o?On(o,1).join(""):t.slice(1);return a[e]()+u}}function Pr(e){return function(t){return La(xf(yf(t).replace(ch,"")),e,"")}}function vo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=kr(e.prototype),a=e.apply(o,t);return De(a)?a:o}}function xx(e,t,o){var a=vo(e);function u(){for(var f=arguments.length,y=I(f),x=f,v=Rr(u);x--;)y[x]=arguments[x];var k=f<3&&y[0]!==v&&y[f-1]!==v?[]:kn(y,v);if(f-=k.length,f<o)return _p(e,t,Di,u.placeholder,n,y,k,n,n,o-f);var C=this&&this!==$e&&this instanceof u?a:e;return ht(C,this,y)}return u}function vp(e){return function(t,o,a){var u=_e(t);if(!ut(t)){var f=Y(o,3);t=He(t),o=function(x){return f(u[x],x,u)}}var y=e(t,o,a);return y>-1?u[f?t[y]:y]:n}}function wp(e){return mn(function(t){var o=t.length,a=o,u=kt.prototype.thru;for(e&&t.reverse();a--;){var f=t[a];if(typeof f!="function")throw new Et(l);if(u&&!y&&Fi(f)=="wrapper")var y=new kt([],!0)}for(a=y?a:o;++a<o;){f=t[a];var x=Fi(f),v=x=="wrapper"?sc(f):n;v&&lc(v[0])&&v[1]==(pe|z|V|Re)&&!v[4].length&&v[9]==1?y=y[Fi(v[0])].apply(y,v[3]):y=f.length==1&&lc(f)?y[x]():y.thru(f)}return function(){var k=arguments,C=k[0];if(y&&k.length==1&&oe(C))return y.plant(C).value();for(var R=0,U=o?t[R].apply(this,k):C;++R<o;)U=t[R].call(this,U);return U}})}function Di(e,t,o,a,u,f,y,x,v,k){var C=t&pe,R=t&N,U=t&G,q=t&(z|B),X=t&ce,le=U?n:vo(e);function J(){for(var ge=arguments.length,Te=I(ge),vt=ge;vt--;)Te[vt]=arguments[vt];if(q)var it=Rr(J),wt=Ph(Te,it);if(a&&(Te=Tp(Te,a,u,q)),f&&(Te=hp(Te,f,y,q)),ge-=wt,q&&ge<k){var Me=kn(Te,it);return _p(e,t,Di,J.placeholder,o,Te,Me,x,v,k-ge)}var Vt=R?o:this,xn=U?Vt[e]:e;return ge=Te.length,x?Te=Bx(Te,x):X&&ge>1&&Te.reverse(),C&&v<ge&&(Te.length=v),this&&this!==$e&&this instanceof J&&(xn=le||vo(xn)),xn.apply(Vt,Te)}return J}function Ap(e,t){return function(o,a){return Ky(o,e,t(a),{})}}function Ni(e,t){return function(o,a){var u;if(o===n&&a===n)return t;if(o!==n&&(u=o),a!==n){if(u===n)return a;typeof o=="string"||typeof a=="string"?(o=xt(o),a=xt(a)):(o=cp(o),a=cp(a)),u=e(o,a)}return u}}function nc(e){return mn(function(t){return t=Pe(t,yt(Y())),fe(function(o){var a=this;return e(t,function(u){return ht(u,a,o)})})})}function Oi(e,t){t=t===n?" ":xt(t);var o=t.length;if(o<2)return o?Za(t,e):t;var a=Za(t,vi(e/_r(t)));return Ir(t)?On(Gt(a),0,e).join(""):a.slice(0,e)}function Sx(e,t,o,a){var u=t&N,f=vo(e);function y(){for(var x=-1,v=arguments.length,k=-1,C=a.length,R=I(C+v),U=this&&this!==$e&&this instanceof y?f:e;++k<C;)R[k]=a[k];for(;v--;)R[k++]=arguments[++x];return ht(U,u?o:this,R)}return y}function Ip(e){return function(t,o,a){return a&&typeof a!="number"&&ot(t,o,a)&&(o=a=n),t=yn(t),o===n?(o=t,t=0):o=yn(o),a=a===n?t<o?1:-1:yn(a),ix(t,o,a,e)}}function Mi(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=Dt(t),o=Dt(o)),e(t,o)}}function _p(e,t,o,a,u,f,y,x,v,k){var C=t&z,R=C?y:n,U=C?n:y,q=C?f:n,X=C?n:f;t|=C?V:ne,t&=~(C?ne:V),t&Z||(t&=~(N|G));var le=[e,t,u,q,R,X,U,x,v,k],J=o.apply(n,le);return lc(e)&&Fp(J,le),J.placeholder=a,Up(J,e,t)}function rc(e){var t=We[e];return function(o,a){if(o=Dt(o),a=a==null?0:Ze(se(a),292),a&&Ul(o)){var u=(Se(o)+"e").split("e"),f=t(u[0]+"e"+(+u[1]+a));return u=(Se(f)+"e").split("e"),+(u[0]+"e"+(+u[1]-a))}return t(o)}}var vx=br&&1/pi(new br([,-0]))[1]==ye?function(e){return new br(e)}:_c;function Lp(e){return function(t){var o=Xe(t);return o==Bt?Da(t):o==Wt?Uh(t):Ch(t,e(t))}}function gn(e,t,o,a,u,f,y,x){var v=t&G;if(!v&&typeof e!="function")throw new Et(l);var k=a?a.length:0;if(k||(t&=~(V|ne),a=u=n),y=y===n?y:Ge(se(y),0),x=x===n?x:se(x),k-=u?u.length:0,t&ne){var C=a,R=u;a=u=n}var U=v?n:sc(e),q=[e,t,o,a,u,C,R,f,y,x];if(U&&Mx(q,U),e=q[0],t=q[1],o=q[2],a=q[3],u=q[4],x=q[9]=q[9]===n?v?0:e.length:Ge(q[9]-k,0),!x&&t&(z|B)&&(t&=~(z|B)),!t||t==N)var X=yx(e,t,o);else t==z||t==B?X=xx(e,t,x):(t==V||t==(N|V))&&!u.length?X=Sx(e,t,o,a):X=Di.apply(n,q);var le=U?sp:Fp;return Up(le(X,q),e,t)}function bp(e,t,o,a){return e===n||Ht(e,Lr[o])&&!ve.call(a,o)?t:e}function Ep(e,t,o,a,u,f){return De(e)&&De(t)&&(f.set(t,e),ki(e,t,n,Ep,f),f.delete(t)),e}function wx(e){return Io(e)?n:e}function kp(e,t,o,a,u,f){var y=o&M,x=e.length,v=t.length;if(x!=v&&!(y&&v>x))return!1;var k=f.get(e),C=f.get(t);if(k&&C)return k==t&&C==e;var R=-1,U=!0,q=o&D?new Jn:n;for(f.set(e,t),f.set(t,e);++R<x;){var X=e[R],le=t[R];if(a)var J=y?a(le,X,R,t,e,f):a(X,le,R,e,t,f);if(J!==n){if(J)continue;U=!1;break}if(q){if(!ba(t,function(ge,Te){if(!uo(q,Te)&&(X===ge||u(X,ge,o,a,f)))return q.push(Te)})){U=!1;break}}else if(!(X===le||u(X,le,o,a,f))){U=!1;break}}return f.delete(e),f.delete(t),U}function Ax(e,t,o,a,u,f,y){switch(o){case vr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case co:return!(e.byteLength!=t.byteLength||!f(new hi(e),new hi(t)));case Ut:case Xt:case oo:return Ht(+e,+t);case ri:return e.name==t.name&&e.message==t.message;case io:case so:return e==t+"";case Bt:var x=Da;case Wt:var v=a&M;if(x||(x=pi),e.size!=t.size&&!v)return!1;var k=y.get(e);if(k)return k==t;a|=D,y.set(e,t);var C=kp(x(e),x(t),a,u,f,y);return y.delete(e),C;case ii:if(mo)return mo.call(e)==mo.call(t)}return!1}function Ix(e,t,o,a,u,f){var y=o&M,x=oc(e),v=x.length,k=oc(t),C=k.length;if(v!=C&&!y)return!1;for(var R=v;R--;){var U=x[R];if(!(y?U in t:ve.call(t,U)))return!1}var q=f.get(e),X=f.get(t);if(q&&X)return q==t&&X==e;var le=!0;f.set(e,t),f.set(t,e);for(var J=y;++R<v;){U=x[R];var ge=e[U],Te=t[U];if(a)var vt=y?a(Te,ge,U,t,e,f):a(ge,Te,U,e,t,f);if(!(vt===n?ge===Te||u(ge,Te,o,a,f):vt)){le=!1;break}J||(J=U=="constructor")}if(le&&!J){var it=e.constructor,wt=t.constructor;it!=wt&&"constructor"in e&&"constructor"in t&&!(typeof it=="function"&&it instanceof it&&typeof wt=="function"&&wt instanceof wt)&&(le=!1)}return f.delete(e),f.delete(t),le}function mn(e){return fc(Op(e,n,Vp),e+"")}function oc(e){return Zl(e,He,cc)}function ic(e){return Zl(e,lt,Cp)}var sc=Ai?function(e){return Ai.get(e)}:_c;function Fi(e){for(var t=e.name+"",o=Er[t],a=ve.call(Er,t)?o.length:0;a--;){var u=o[a],f=u.func;if(f==null||f==e)return u.name}return t}function Rr(e){var t=ve.call(p,"placeholder")?p:e;return t.placeholder}function Y(){var e=p.iteratee||Ac;return e=e===Ac?Ql:e,arguments.length?e(arguments[0],arguments[1]):e}function Ui(e,t){var o=e.__data__;return Rx(t)?o[typeof t=="string"?"string":"hash"]:o.map}function ac(e){for(var t=He(e),o=t.length;o--;){var a=t[o],u=e[a];t[o]=[a,u,Dp(u)]}return t}function er(e,t){var o=Oh(e,t);return Jl(o)?o:n}function _x(e){var t=ve.call(e,Zn),o=e[Zn];try{e[Zn]=n;var a=!0}catch(f){}var u=mi.call(e);return a&&(t?e[Zn]=o:delete e[Zn]),u}var cc=Oa?function(e){return e==null?[]:(e=_e(e),bn(Oa(e),function(t){return Ml.call(e,t)}))}:Lc,Cp=Oa?function(e){for(var t=[];e;)En(t,cc(e)),e=yi(e);return t}:Lc,Xe=rt;(Ma&&Xe(new Ma(new ArrayBuffer(1)))!=vr||po&&Xe(new po)!=Bt||Fa&&Xe(Fa.resolve())!=zu||br&&Xe(new br)!=Wt||fo&&Xe(new fo)!=ao)&&(Xe=function(e){var t=rt(e),o=t==ln?e.constructor:n,a=o?tr(o):"";if(a)switch(a){case ay:return vr;case cy:return Bt;case uy:return zu;case ly:return Wt;case py:return ao}return t});function Lx(e,t,o){for(var a=-1,u=o.length;++a<u;){var f=o[a],y=f.size;switch(f.type){case"drop":e+=y;break;case"dropRight":t-=y;break;case"take":t=Ze(t,e+y);break;case"takeRight":e=Ge(e,t-y);break}}return{start:e,end:t}}function bx(e){var t=e.match(DT);return t?t[1].split(NT):[]}function Pp(e,t,o){t=Nn(t,e);for(var a=-1,u=t.length,f=!1;++a<u;){var y=jt(t[a]);if(!(f=e!=null&&o(e,y)))break;e=e[y]}return f||++a!=u?f:(u=e==null?0:e.length,!!u&&qi(u)&&Tn(y,u)&&(oe(e)||nr(e)))}function Ex(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&ve.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Rp(e){return typeof e.constructor=="function"&&!wo(e)?kr(yi(e)):{}}function kx(e,t,o){var a=e.constructor;switch(t){case co:return tc(e);case Ut:case Xt:return new a(+e);case vr:return fx(e,o);case aa:case ca:case ua:case la:case pa:case fa:case da:case ga:case ma:return gp(e,o);case Bt:return new a;case oo:case so:return new a(e);case io:return dx(e);case Wt:return new a;case ii:return gx(e)}}function Cx(e,t){var o=t.length;if(!o)return e;var a=o-1;return t[a]=(o>1?"& ":"")+t[a],t=t.join(o>2?", ":" "),e.replace(RT,`{
|
|
2
2
|
/* [wrapped with `+t+`] */
|
|
3
|
-
`)}function Px(e){return oe(e)||nr(e)||!!(Fl&&e&&e[Fl])}function Tn(e,t){var o=typeof e;return t=t==null?we:t,!!t&&(o=="number"||o!="symbol"&&HT.test(e))&&e>-1&&e%1==0&&e<t}function ot(e,t,o){if(!De(o))return!1;var s=typeof t;return(s=="number"?ut(o)&&Tn(t,o.length):s=="string"&&t in o)?Ht(o[t],e):!1}function uc(e,t){if(oe(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||St(e)?!0:ET.test(e)||!bT.test(e)||t!=null&&e in _e(t)}function Rx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function lc(e){var t=Fi(e),o=p[t];if(typeof o!="function"||!(t in me.prototype))return!1;if(e===o)return!0;var s=sc(o);return!!s&&e===s[0]}function Dx(e){return!!Dl&&Dl in e}var Nx=di?hn:bc;function wo(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Lr;return e===o}function Dp(e){return e===e&&!De(e)}function Np(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==n||e in _e(o))}}function Ox(e){var t=Hi(e,function(s){return o.size===w&&o.clear(),s}),o=t.cache;return t}function Mx(e,t){var o=e[1],s=t[1],u=o|s,f=u<(N|G|pe),y=s==pe&&o==z||s==pe&&o==Re&&e[7].length<=t[8]||s==(pe|Re)&&t[7].length<=t[8]&&o==z;if(!(f||y))return e;s&N&&(e[2]=t[2],u|=o&N?0:Z);var x=t[3];if(x){var v=e[3];e[3]=v?Tp(v,x,t[4]):x,e[4]=v?kn(e[3],A):t[4]}return x=t[5],x&&(v=e[5],e[5]=v?hp(v,x,t[6]):x,e[6]=v?kn(e[5],A):t[6]),x=t[7],x&&(e[7]=x),s&pe&&(e[8]=e[8]==null?t[8]:Ze(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}function Fx(e){var t=[];if(e!=null)for(var o in _e(e))t.push(o);return t}function Ux(e){return mi.call(e)}function Op(e,t,o){return t=Ge(t===n?e.length-1:t,0),function(){for(var s=arguments,u=-1,f=Ge(s.length-t,0),y=I(f);++u<f;)y[u]=s[t+u];u=-1;for(var x=I(t+1);++u<t;)x[u]=s[u];return x[t]=o(y),ht(e,this,x)}}function Mp(e,t){return t.length<2?e:jn(e,Pt(t,0,-1))}function Bx(e,t){for(var o=e.length,s=Ze(t.length,o),u=ct(e);s--;){var f=t[s];e[s]=Tn(f,o)?u[f]:n}return e}function pc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Fp=Bp(sp),Ao=ey||function(e,t){return $e.setTimeout(e,t)},fc=Bp(cx);function Up(e,t,o){var s=t+"";return fc(e,Cx(s,Wx(bx(s),o)))}function Bp(e){var t=0,o=0;return function(){var s=oy(),u=Ce-(s-o);if(o=s,u>0){if(++t>=nt)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Bi(e,t){var o=-1,s=e.length,u=s-1;for(t=t===n?s:t;++o<t;){var f=Ya(o,u),y=e[f];e[f]=e[o],e[o]=y}return e.length=t,e}var Wp=Ox(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kT,function(o,s,u,f){t.push(u?f.replace(FT,"$1"):s||o)}),t});function jt(e){if(typeof e=="string"||St(e))return e;var t=e+"";return t=="0"&&1/e==-ye?"-0":t}function tr(e){if(e!=null){try{return gi.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Wx(e,t){return bt(j,function(o){var s="_."+o[0];t&o[1]&&!ui(e,s)&&e.push(s)}),e.sort()}function Gp(e){if(e instanceof me)return e.clone();var t=new kt(e.__wrapped__,e.__chain__);return t.__actions__=ct(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gx(e,t,o){(o?ot(e,t,o):t===n)?t=1:t=Ge(se(t),0);var s=e==null?0:e.length;if(!s||t<1)return[];for(var u=0,f=0,y=I(vi(s/t));u<s;)y[f++]=Pt(e,u,u+=t);return y}function $x(e){for(var t=-1,o=e==null?0:e.length,s=0,u=[];++t<o;){var f=e[t];f&&(u[s++]=f)}return u}function Hx(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),o=arguments[0],s=e;s--;)t[s-1]=arguments[s];return En(oe(o)?ct(o):[o],Ke(t,1))}var Vx=fe(function(e,t){return Oe(e)?ho(e,Ke(t,1,Oe,!0)):[]}),qx=fe(function(e,t){var o=Rt(t);return Oe(o)&&(o=n),Oe(e)?ho(e,Ke(t,1,Oe,!0),Y(o,2)):[]}),zx=fe(function(e,t){var o=Rt(t);return Oe(o)&&(o=n),Oe(e)?ho(e,Ke(t,1,Oe,!0),n,o):[]});function Kx(e,t,o){var s=e==null?0:e.length;return s?(t=o||t===n?1:se(t),Pt(e,t<0?0:t,s)):[]}function Yx(e,t,o){var s=e==null?0:e.length;return s?(t=o||t===n?1:se(t),t=s-t,Pt(e,0,t<0?0:t)):[]}function Zx(e,t){return e&&e.length?Pi(e,Y(t,3),!0,!0):[]}function Xx(e,t){return e&&e.length?Pi(e,Y(t,3),!0):[]}function Jx(e,t,o,s){var u=e==null?0:e.length;return u?(o&&typeof o!="number"&&ot(e,t,o)&&(o=0,s=u),Hy(e,t,o,s)):[]}function $p(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var u=o==null?0:se(o);return u<0&&(u=Ge(s+u,0)),li(e,Y(t,3),u)}function Hp(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var u=s-1;return o!==n&&(u=se(o),u=o<0?Ge(s+u,0):Ze(u,s-1)),li(e,Y(t,3),u,!0)}function Vp(e){var t=e==null?0:e.length;return t?Ke(e,1):[]}function Qx(e){var t=e==null?0:e.length;return t?Ke(e,ye):[]}function jx(e,t){var o=e==null?0:e.length;return o?(t=t===n?1:se(t),Ke(e,t)):[]}function eS(e){for(var t=-1,o=e==null?0:e.length,s={};++t<o;){var u=e[t];s[u[0]]=u[1]}return s}function qp(e){return e&&e.length?e[0]:n}function tS(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var u=o==null?0:se(o);return u<0&&(u=Ge(s+u,0)),Ar(e,t,u)}function nS(e){var t=e==null?0:e.length;return t?Pt(e,0,-1):[]}var rS=fe(function(e){var t=Pe(e,ja);return t.length&&t[0]===e[0]?Ha(t):[]}),oS=fe(function(e){var t=Rt(e),o=Pe(e,ja);return t===Rt(o)?t=n:o.pop(),o.length&&o[0]===e[0]?Ha(o,Y(t,2)):[]}),iS=fe(function(e){var t=Rt(e),o=Pe(e,ja);return t=typeof t=="function"?t:n,t&&o.pop(),o.length&&o[0]===e[0]?Ha(o,n,t):[]});function sS(e,t){return e==null?"":ny.call(e,t)}function Rt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function aS(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var u=s;return o!==n&&(u=se(o),u=u<0?Ge(s+u,0):Ze(u,s-1)),t===t?Wh(e,t,u):li(e,_l,u,!0)}function cS(e,t){return e&&e.length?np(e,se(t)):n}var uS=fe(zp);function zp(e,t){return e&&e.length&&t&&t.length?Ka(e,t):e}function lS(e,t,o){return e&&e.length&&t&&t.length?Ka(e,t,Y(o,2)):e}function pS(e,t,o){return e&&e.length&&t&&t.length?Ka(e,t,n,o):e}var fS=mn(function(e,t){var o=e==null?0:e.length,s=Ba(e,t);return ip(e,Pe(t,function(u){return Tn(u,o)?+u:u}).sort(mp)),s});function dS(e,t){var o=[];if(!(e&&e.length))return o;var s=-1,u=[],f=e.length;for(t=Y(t,3);++s<f;){var y=e[s];t(y,s,e)&&(o.push(y),u.push(s))}return ip(e,u),o}function dc(e){return e==null?e:sy.call(e)}function gS(e,t,o){var s=e==null?0:e.length;return s?(o&&typeof o!="number"&&ot(e,t,o)?(t=0,o=s):(t=t==null?0:se(t),o=o===n?s:se(o)),Pt(e,t,o)):[]}function mS(e,t){return Ci(e,t)}function TS(e,t,o){return Xa(e,t,Y(o,2))}function hS(e,t){var o=e==null?0:e.length;if(o){var s=Ci(e,t);if(s<o&&Ht(e[s],t))return s}return-1}function yS(e,t){return Ci(e,t,!0)}function xS(e,t,o){return Xa(e,t,Y(o,2),!0)}function SS(e,t){var o=e==null?0:e.length;if(o){var s=Ci(e,t,!0)-1;if(Ht(e[s],t))return s}return-1}function vS(e){return e&&e.length?ap(e):[]}function wS(e,t){return e&&e.length?ap(e,Y(t,2)):[]}function AS(e){var t=e==null?0:e.length;return t?Pt(e,1,t):[]}function IS(e,t,o){return e&&e.length?(t=o||t===n?1:se(t),Pt(e,0,t<0?0:t)):[]}function _S(e,t,o){var s=e==null?0:e.length;return s?(t=o||t===n?1:se(t),t=s-t,Pt(e,t<0?0:t,s)):[]}function LS(e,t){return e&&e.length?Pi(e,Y(t,3),!1,!0):[]}function bS(e,t){return e&&e.length?Pi(e,Y(t,3)):[]}var ES=fe(function(e){return Dn(Ke(e,1,Oe,!0))}),kS=fe(function(e){var t=Rt(e);return Oe(t)&&(t=n),Dn(Ke(e,1,Oe,!0),Y(t,2))}),CS=fe(function(e){var t=Rt(e);return t=typeof t=="function"?t:n,Dn(Ke(e,1,Oe,!0),n,t)});function PS(e){return e&&e.length?Dn(e):[]}function RS(e,t){return e&&e.length?Dn(e,Y(t,2)):[]}function DS(e,t){return t=typeof t=="function"?t:n,e&&e.length?Dn(e,n,t):[]}function gc(e){if(!(e&&e.length))return[];var t=0;return e=bn(e,function(o){if(Oe(o))return t=Ge(o.length,t),!0}),Pa(t,function(o){return Pe(e,Ea(o))})}function Kp(e,t){if(!(e&&e.length))return[];var o=gc(e);return t==null?o:Pe(o,function(s){return ht(t,n,s)})}var NS=fe(function(e,t){return Oe(e)?ho(e,t):[]}),OS=fe(function(e){return Qa(bn(e,Oe))}),MS=fe(function(e){var t=Rt(e);return Oe(t)&&(t=n),Qa(bn(e,Oe),Y(t,2))}),FS=fe(function(e){var t=Rt(e);return t=typeof t=="function"?t:n,Qa(bn(e,Oe),n,t)}),US=fe(gc);function BS(e,t){return pp(e||[],t||[],To)}function WS(e,t){return pp(e||[],t||[],So)}var GS=fe(function(e){var t=e.length,o=t>1?e[t-1]:n;return o=typeof o=="function"?(e.pop(),o):n,Kp(e,o)});function Yp(e){var t=p(e);return t.__chain__=!0,t}function $S(e,t){return t(e),e}function Wi(e,t){return t(e)}var HS=mn(function(e){var t=e.length,o=t?e[0]:0,s=this.__wrapped__,u=function(f){return Ba(f,e)};return t>1||this.__actions__.length||!(s instanceof me)||!Tn(o)?this.thru(u):(s=s.slice(o,+o+(t?1:0)),s.__actions__.push({func:Wi,args:[u],thisArg:n}),new kt(s,this.__chain__).thru(function(f){return t&&!f.length&&f.push(n),f}))});function VS(){return Yp(this)}function qS(){return new kt(this.value(),this.__chain__)}function zS(){this.__values__===n&&(this.__values__=uf(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function KS(){return this}function YS(e){for(var t,o=this;o instanceof _i;){var s=Gp(o);s.__index__=0,s.__values__=n,t?u.__wrapped__=s:t=s;var u=s;o=o.__wrapped__}return u.__wrapped__=e,t}function ZS(){var e=this.__wrapped__;if(e instanceof me){var t=e;return this.__actions__.length&&(t=new me(this)),t=t.reverse(),t.__actions__.push({func:Wi,args:[dc],thisArg:n}),new kt(t,this.__chain__)}return this.thru(dc)}function XS(){return lp(this.__wrapped__,this.__actions__)}var JS=Ri(function(e,t,o){ve.call(e,o)?++e[o]:dn(e,o,1)});function QS(e,t,o){var s=oe(e)?Al:$y;return o&&ot(e,t,o)&&(t=n),s(e,Y(t,3))}function jS(e,t){var o=oe(e)?bn:Kl;return o(e,Y(t,3))}var ev=vp($p),tv=vp(Hp);function nv(e,t){return Ke(Gi(e,t),1)}function rv(e,t){return Ke(Gi(e,t),ye)}function ov(e,t,o){return o=o===n?1:se(o),Ke(Gi(e,t),o)}function Zp(e,t){var o=oe(e)?bt:Rn;return o(e,Y(t,3))}function Xp(e,t){var o=oe(e)?Ah:zl;return o(e,Y(t,3))}var iv=Ri(function(e,t,o){ve.call(e,o)?e[o].push(t):dn(e,o,[t])});function sv(e,t,o,s){e=ut(e)?e:Nr(e),o=o&&!s?se(o):0;var u=e.length;return o<0&&(o=Ge(u+o,0)),zi(e)?o<=u&&e.indexOf(t,o)>-1:!!u&&Ar(e,t,o)>-1}var av=fe(function(e,t,o){var s=-1,u=typeof t=="function",f=ut(e)?I(e.length):[];return Rn(e,function(y){f[++s]=u?ht(t,y,o):yo(y,t,o)}),f}),cv=Ri(function(e,t,o){dn(e,o,t)});function Gi(e,t){var o=oe(e)?Pe:jl;return o(e,Y(t,3))}function uv(e,t,o,s){return e==null?[]:(oe(t)||(t=t==null?[]:[t]),o=s?n:o,oe(o)||(o=o==null?[]:[o]),rp(e,t,o))}var lv=Ri(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function pv(e,t,o){var s=oe(e)?La:bl,u=arguments.length<3;return s(e,Y(t,4),o,u,Rn)}function fv(e,t,o){var s=oe(e)?Ih:bl,u=arguments.length<3;return s(e,Y(t,4),o,u,zl)}function dv(e,t){var o=oe(e)?bn:Kl;return o(e,Vi(Y(t,3)))}function gv(e){var t=oe(e)?$l:sx;return t(e)}function mv(e,t,o){(o?ot(e,t,o):t===n)?t=1:t=se(t);var s=oe(e)?Fy:ax;return s(e,t)}function Tv(e){var t=oe(e)?Uy:ux;return t(e)}function hv(e){if(e==null)return 0;if(ut(e))return zi(e)?_r(e):e.length;var t=Xe(e);return t==Bt||t==Wt?e.size:qa(e).length}function yv(e,t,o){var s=oe(e)?ba:lx;return o&&ot(e,t,o)&&(t=n),s(e,Y(t,3))}var xv=fe(function(e,t){if(e==null)return[];var o=t.length;return o>1&&ot(e,t[0],t[1])?t=[]:o>2&&ot(t[0],t[1],t[2])&&(t=[t[0]]),rp(e,Ke(t,1),[])}),$i=jh||function(){return $e.Date.now()};function Sv(e,t){if(typeof t!="function")throw new Et(l);return e=se(e),function(){if(--e<1)return t.apply(this,arguments)}}function Jp(e,t,o){return t=o?n:t,t=e&&t==null?e.length:t,gn(e,pe,n,n,n,n,t)}function Qp(e,t){var o;if(typeof t!="function")throw new Et(l);return e=se(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var mc=fe(function(e,t,o){var s=N;if(o.length){var u=kn(o,Rr(mc));s|=V}return gn(e,s,t,o,u)}),jp=fe(function(e,t,o){var s=N|G;if(o.length){var u=kn(o,Rr(jp));s|=V}return gn(t,s,e,o,u)});function ef(e,t,o){t=o?n:t;var s=gn(e,z,n,n,n,n,n,t);return s.placeholder=ef.placeholder,s}function tf(e,t,o){t=o?n:t;var s=gn(e,B,n,n,n,n,n,t);return s.placeholder=tf.placeholder,s}function nf(e,t,o){var s,u,f,y,x,v,k=0,C=!1,R=!1,U=!0;if(typeof e!="function")throw new Et(l);t=Dt(t)||0,De(o)&&(C=!!o.leading,R="maxWait"in o,f=R?Ge(Dt(o.maxWait)||0,t):f,U="trailing"in o?!!o.trailing:U);function q(Me){var Vt=s,xn=u;return s=u=n,k=Me,y=e.apply(xn,Vt),y}function X(Me){return k=Me,x=Ao(ge,t),C?q(Me):y}function le(Me){var Vt=Me-v,xn=Me-k,wf=t-Vt;return R?Ze(wf,f-xn):wf}function J(Me){var Vt=Me-v,xn=Me-k;return v===n||Vt>=t||Vt<0||R&&xn>=f}function ge(){var Me=$i();if(J(Me))return Te(Me);x=Ao(ge,le(Me))}function Te(Me){return x=n,U&&s?q(Me):(s=u=n,y)}function vt(){x!==n&&fp(x),k=0,s=v=u=x=n}function it(){return x===n?y:Te($i())}function wt(){var Me=$i(),Vt=J(Me);if(s=arguments,u=this,v=Me,Vt){if(x===n)return X(v);if(R)return fp(x),x=Ao(ge,t),q(v)}return x===n&&(x=Ao(ge,t)),y}return wt.cancel=vt,wt.flush=it,wt}var vv=fe(function(e,t){return ql(e,1,t)}),wv=fe(function(e,t,o){return ql(e,Dt(t)||0,o)});function Av(e){return gn(e,ce)}function Hi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Et(l);var o=function(){var s=arguments,u=t?t.apply(this,s):s[0],f=o.cache;if(f.has(u))return f.get(u);var y=e.apply(this,s);return o.cache=f.set(u,y)||f,y};return o.cache=new(Hi.Cache||fn),o}Hi.Cache=fn;function Vi(e){if(typeof e!="function")throw new Et(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Iv(e){return Qp(2,e)}var _v=px(function(e,t){t=t.length==1&&oe(t[0])?Pe(t[0],yt(Y())):Pe(Ke(t,1),yt(Y()));var o=t.length;return fe(function(s){for(var u=-1,f=Ze(s.length,o);++u<f;)s[u]=t[u].call(this,s[u]);return ht(e,this,s)})}),Tc=fe(function(e,t){var o=kn(t,Rr(Tc));return gn(e,V,n,t,o)}),rf=fe(function(e,t){var o=kn(t,Rr(rf));return gn(e,ne,n,t,o)}),Lv=mn(function(e,t){return gn(e,Re,n,n,n,t)});function bv(e,t){if(typeof e!="function")throw new Et(l);return t=t===n?t:se(t),fe(e,t)}function Ev(e,t){if(typeof e!="function")throw new Et(l);return t=t==null?0:Ge(se(t),0),fe(function(o){var s=o[t],u=On(o,0,t);return s&&En(u,s),ht(e,this,u)})}function kv(e,t,o){var s=!0,u=!0;if(typeof e!="function")throw new Et(l);return De(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),nf(e,t,{leading:s,maxWait:t,trailing:u})}function Cv(e){return Jp(e,1)}function Pv(e,t){return Tc(ec(t),e)}function Rv(){if(!arguments.length)return[];var e=arguments[0];return oe(e)?e:[e]}function Dv(e){return Ct(e,P)}function Nv(e,t){return t=typeof t=="function"?t:n,Ct(e,P,t)}function Ov(e){return Ct(e,_|P)}function Mv(e,t){return t=typeof t=="function"?t:n,Ct(e,_|P,t)}function Fv(e,t){return t==null||Vl(e,t,He(t))}function Ht(e,t){return e===t||e!==e&&t!==t}var Uv=Mi($a),Bv=Mi(function(e,t){return e>=t}),nr=Xl(function(){return arguments}())?Xl:function(e){return Ne(e)&&ve.call(e,"callee")&&!Ml.call(e,"callee")},oe=I.isArray,Wv=hl?yt(hl):Yy;function ut(e){return e!=null&&qi(e.length)&&!hn(e)}function Oe(e){return Ne(e)&&ut(e)}function Gv(e){return e===!0||e===!1||Ne(e)&&rt(e)==Ut}var Mn=ty||bc,$v=yl?yt(yl):Zy;function Hv(e){return Ne(e)&&e.nodeType===1&&!Io(e)}function Vv(e){if(e==null)return!0;if(ut(e)&&(oe(e)||typeof e=="string"||typeof e.splice=="function"||Mn(e)||Dr(e)||nr(e)))return!e.length;var t=Xe(e);if(t==Bt||t==Wt)return!e.size;if(wo(e))return!qa(e).length;for(var o in e)if(ve.call(e,o))return!1;return!0}function qv(e,t){return xo(e,t)}function zv(e,t,o){o=typeof o=="function"?o:n;var s=o?o(e,t):n;return s===n?xo(e,t,n,o):!!s}function hc(e){if(!Ne(e))return!1;var t=rt(e);return t==ri||t==Kn||typeof e.message=="string"&&typeof e.name=="string"&&!Io(e)}function Kv(e){return typeof e=="number"&&Ul(e)}function hn(e){if(!De(e))return!1;var t=rt(e);return t==oi||t==qu||t==Ye||t==hT}function of(e){return typeof e=="number"&&e==se(e)}function qi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=we}function De(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ne(e){return e!=null&&typeof e=="object"}var sf=xl?yt(xl):Jy;function Yv(e,t){return e===t||Va(e,t,ac(t))}function Zv(e,t,o){return o=typeof o=="function"?o:n,Va(e,t,ac(t),o)}function Xv(e){return af(e)&&e!=+e}function Jv(e){if(Nx(e))throw new re(c);return Jl(e)}function Qv(e){return e===null}function jv(e){return e==null}function af(e){return typeof e=="number"||Ne(e)&&rt(e)==oo}function Io(e){if(!Ne(e)||rt(e)!=ln)return!1;var t=yi(e);if(t===null)return!0;var o=ve.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&gi.call(o)==Zh}var yc=Sl?yt(Sl):Qy;function e0(e){return of(e)&&e>=-we&&e<=we}var cf=vl?yt(vl):jy;function zi(e){return typeof e=="string"||!oe(e)&&Ne(e)&&rt(e)==so}function St(e){return typeof e=="symbol"||Ne(e)&&rt(e)==ii}var Dr=wl?yt(wl):ex;function t0(e){return e===n}function n0(e){return Ne(e)&&Xe(e)==ao}function r0(e){return Ne(e)&&rt(e)==xT}var o0=Mi(za),i0=Mi(function(e,t){return e<=t});function uf(e){if(!e)return[];if(ut(e))return zi(e)?Gt(e):ct(e);if(lo&&e[lo])return Fh(e[lo]());var t=Xe(e),o=t==Bt?Da:t==Wt?pi:Nr;return o(e)}function yn(e){if(!e)return e===0?e:0;if(e=Dt(e),e===ye||e===-ye){var t=e<0?-1:1;return t*he}return e===e?e:0}function se(e){var t=yn(e),o=t%1;return t===t?o?t-o:t:0}function lf(e){return e?Qn(se(e),0,de):0}function Dt(e){if(typeof e=="number")return e;if(St(e))return ie;if(De(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=De(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=El(e);var o=WT.test(e);return o||$T.test(e)?Sh(e.slice(2),o?2:8):BT.test(e)?ie:+e}function pf(e){return Qt(e,lt(e))}function s0(e){return e?Qn(se(e),-we,we):e===0?e:0}function Se(e){return e==null?"":xt(e)}var a0=Cr(function(e,t){if(wo(t)||ut(t)){Qt(t,He(t),e);return}for(var o in t)ve.call(t,o)&&To(e,o,t[o])}),ff=Cr(function(e,t){Qt(t,lt(t),e)}),Ki=Cr(function(e,t,o,s){Qt(t,lt(t),e,s)}),c0=Cr(function(e,t,o,s){Qt(t,He(t),e,s)}),u0=mn(Ba);function l0(e,t){var o=kr(e);return t==null?o:Hl(o,t)}var p0=fe(function(e,t){e=_e(e);var o=-1,s=t.length,u=s>2?t[2]:n;for(u&&ot(t[0],t[1],u)&&(s=1);++o<s;)for(var f=t[o],y=lt(f),x=-1,v=y.length;++x<v;){var k=y[x],C=e[k];(C===n||Ht(C,Lr[k])&&!ve.call(e,k))&&(e[k]=f[k])}return e}),f0=fe(function(e){return e.push(n,Ep),ht(df,n,e)});function d0(e,t){return Il(e,Y(t,3),Jt)}function g0(e,t){return Il(e,Y(t,3),Ga)}function m0(e,t){return e==null?e:Wa(e,Y(t,3),lt)}function T0(e,t){return e==null?e:Yl(e,Y(t,3),lt)}function h0(e,t){return e&&Jt(e,Y(t,3))}function y0(e,t){return e&&Ga(e,Y(t,3))}function x0(e){return e==null?[]:Ei(e,He(e))}function S0(e){return e==null?[]:Ei(e,lt(e))}function xc(e,t,o){var s=e==null?n:jn(e,t);return s===n?o:s}function v0(e,t){return e!=null&&Pp(e,t,Vy)}function Sc(e,t){return e!=null&&Pp(e,t,qy)}var w0=Ap(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=mi.call(t)),e[t]=o},wc(pt)),A0=Ap(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=mi.call(t)),ve.call(e,t)?e[t].push(o):e[t]=[o]},Y),I0=fe(yo);function He(e){return ut(e)?Gl(e):qa(e)}function lt(e){return ut(e)?Gl(e,!0):tx(e)}function _0(e,t){var o={};return t=Y(t,3),Jt(e,function(s,u,f){dn(o,t(s,u,f),s)}),o}function L0(e,t){var o={};return t=Y(t,3),Jt(e,function(s,u,f){dn(o,u,t(s,u,f))}),o}var b0=Cr(function(e,t,o){ki(e,t,o)}),df=Cr(function(e,t,o,s){ki(e,t,o,s)}),E0=mn(function(e,t){var o={};if(e==null)return o;var s=!1;t=Pe(t,function(f){return f=Nn(f,e),s||(s=f.length>1),f}),Qt(e,ic(e),o),s&&(o=Ct(o,_|L|P,wx));for(var u=t.length;u--;)Ja(o,t[u]);return o});function k0(e,t){return gf(e,Vi(Y(t)))}var C0=mn(function(e,t){return e==null?{}:rx(e,t)});function gf(e,t){if(e==null)return{};var o=Pe(ic(e),function(s){return[s]});return t=Y(t),op(e,o,function(s,u){return t(s,u[0])})}function P0(e,t,o){t=Nn(t,e);var s=-1,u=t.length;for(u||(u=1,e=n);++s<u;){var f=e==null?n:e[jt(t[s])];f===n&&(s=u,f=o),e=hn(f)?f.call(e):f}return e}function R0(e,t,o){return e==null?e:So(e,t,o)}function D0(e,t,o,s){return s=typeof s=="function"?s:n,e==null?e:So(e,t,o,s)}var mf=Lp(He),Tf=Lp(lt);function N0(e,t,o){var s=oe(e),u=s||Mn(e)||Dr(e);if(t=Y(t,4),o==null){var f=e&&e.constructor;u?o=s?new f:[]:De(e)?o=hn(f)?kr(yi(e)):{}:o={}}return(u?bt:Jt)(e,function(y,x,v){return t(o,y,x,v)}),o}function O0(e,t){return e==null?!0:Ja(e,t)}function M0(e,t,o){return e==null?e:up(e,t,ec(o))}function F0(e,t,o,s){return s=typeof s=="function"?s:n,e==null?e:up(e,t,ec(o),s)}function Nr(e){return e==null?[]:Ra(e,He(e))}function U0(e){return e==null?[]:Ra(e,lt(e))}function B0(e,t,o){return o===n&&(o=t,t=n),o!==n&&(o=Dt(o),o=o===o?o:0),t!==n&&(t=Dt(t),t=t===t?t:0),Qn(Dt(e),t,o)}function W0(e,t,o){return t=yn(t),o===n?(o=t,t=0):o=yn(o),e=Dt(e),zy(e,t,o)}function G0(e,t,o){if(o&&typeof o!="boolean"&&ot(e,t,o)&&(t=o=n),o===n&&(typeof t=="boolean"?(o=t,t=n):typeof e=="boolean"&&(o=e,e=n)),e===n&&t===n?(e=0,t=1):(e=yn(e),t===n?(t=e,e=0):t=yn(t)),e>t){var s=e;e=t,t=s}if(o||e%1||t%1){var u=Bl();return Ze(e+u*(t-e+xh("1e-"+((u+"").length-1))),t)}return Ya(e,t)}var $0=Pr(function(e,t,o){return t=t.toLowerCase(),e+(o?hf(t):t)});function hf(e){return vc(Se(e).toLowerCase())}function yf(e){return e=Se(e),e&&e.replace(VT,Rh).replace(uh,"")}function H0(e,t,o){e=Se(e),t=xt(t);var s=e.length;o=o===n?s:Qn(se(o),0,s);var u=o;return o-=t.length,o>=0&&e.slice(o,u)==t}function V0(e){return e=Se(e),e&&IT.test(e)?e.replace(Yu,Dh):e}function q0(e){return e=Se(e),e&&CT.test(e)?e.replace(Ta,"\\$&"):e}var z0=Pr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),K0=Pr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),Y0=Sp("toLowerCase");function Z0(e,t,o){e=Se(e),t=se(t);var s=t?_r(e):0;if(!t||s>=t)return e;var u=(t-s)/2;return Oi(wi(u),o)+e+Oi(vi(u),o)}function X0(e,t,o){e=Se(e),t=se(t);var s=t?_r(e):0;return t&&s<t?e+Oi(t-s,o):e}function J0(e,t,o){e=Se(e),t=se(t);var s=t?_r(e):0;return t&&s<t?Oi(t-s,o)+e:e}function Q0(e,t,o){return o||t==null?t=0:t&&(t=+t),iy(Se(e).replace(ha,""),t||0)}function j0(e,t,o){return(o?ot(e,t,o):t===n)?t=1:t=se(t),Za(Se(e),t)}function ew(){var e=arguments,t=Se(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var tw=Pr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function nw(e,t,o){return o&&typeof o!="number"&&ot(e,t,o)&&(t=o=n),o=o===n?de:o>>>0,o?(e=Se(e),e&&(typeof t=="string"||t!=null&&!yc(t))&&(t=xt(t),!t&&Ir(e))?On(Gt(e),0,o):e.split(t,o)):[]}var rw=Pr(function(e,t,o){return e+(o?" ":"")+vc(t)});function ow(e,t,o){return e=Se(e),o=o==null?0:Qn(se(o),0,e.length),t=xt(t),e.slice(o,o+t.length)==t}function iw(e,t,o){var s=p.templateSettings;o&&ot(e,t,o)&&(t=n),e=Se(e),t=Ki({},t,s,bp);var u=Ki({},t.imports,s.imports,bp),f=He(u),y=Ra(u,f),x,v,k=0,C=t.interpolate||si,R="__p += '",U=Na((t.escape||si).source+"|"+C.source+"|"+(C===Zu?UT:si).source+"|"+(t.evaluate||si).source+"|$","g"),q="//# sourceURL="+(ve.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gh+"]")+`
|
|
3
|
+
`)}function Px(e){return oe(e)||nr(e)||!!(Fl&&e&&e[Fl])}function Tn(e,t){var o=typeof e;return t=t==null?we:t,!!t&&(o=="number"||o!="symbol"&&HT.test(e))&&e>-1&&e%1==0&&e<t}function ot(e,t,o){if(!De(o))return!1;var a=typeof t;return(a=="number"?ut(o)&&Tn(t,o.length):a=="string"&&t in o)?Ht(o[t],e):!1}function uc(e,t){if(oe(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||St(e)?!0:ET.test(e)||!bT.test(e)||t!=null&&e in _e(t)}function Rx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function lc(e){var t=Fi(e),o=p[t];if(typeof o!="function"||!(t in me.prototype))return!1;if(e===o)return!0;var a=sc(o);return!!a&&e===a[0]}function Dx(e){return!!Dl&&Dl in e}var Nx=di?hn:bc;function wo(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Lr;return e===o}function Dp(e){return e===e&&!De(e)}function Np(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==n||e in _e(o))}}function Ox(e){var t=Hi(e,function(a){return o.size===w&&o.clear(),a}),o=t.cache;return t}function Mx(e,t){var o=e[1],a=t[1],u=o|a,f=u<(N|G|pe),y=a==pe&&o==z||a==pe&&o==Re&&e[7].length<=t[8]||a==(pe|Re)&&t[7].length<=t[8]&&o==z;if(!(f||y))return e;a&N&&(e[2]=t[2],u|=o&N?0:Z);var x=t[3];if(x){var v=e[3];e[3]=v?Tp(v,x,t[4]):x,e[4]=v?kn(e[3],A):t[4]}return x=t[5],x&&(v=e[5],e[5]=v?hp(v,x,t[6]):x,e[6]=v?kn(e[5],A):t[6]),x=t[7],x&&(e[7]=x),a&pe&&(e[8]=e[8]==null?t[8]:Ze(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}function Fx(e){var t=[];if(e!=null)for(var o in _e(e))t.push(o);return t}function Ux(e){return mi.call(e)}function Op(e,t,o){return t=Ge(t===n?e.length-1:t,0),function(){for(var a=arguments,u=-1,f=Ge(a.length-t,0),y=I(f);++u<f;)y[u]=a[t+u];u=-1;for(var x=I(t+1);++u<t;)x[u]=a[u];return x[t]=o(y),ht(e,this,x)}}function Mp(e,t){return t.length<2?e:jn(e,Pt(t,0,-1))}function Bx(e,t){for(var o=e.length,a=Ze(t.length,o),u=ct(e);a--;){var f=t[a];e[a]=Tn(f,o)?u[f]:n}return e}function pc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Fp=Bp(sp),Ao=ey||function(e,t){return $e.setTimeout(e,t)},fc=Bp(cx);function Up(e,t,o){var a=t+"";return fc(e,Cx(a,Wx(bx(a),o)))}function Bp(e){var t=0,o=0;return function(){var a=oy(),u=Ce-(a-o);if(o=a,u>0){if(++t>=nt)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Bi(e,t){var o=-1,a=e.length,u=a-1;for(t=t===n?a:t;++o<t;){var f=Ya(o,u),y=e[f];e[f]=e[o],e[o]=y}return e.length=t,e}var Wp=Ox(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kT,function(o,a,u,f){t.push(u?f.replace(FT,"$1"):a||o)}),t});function jt(e){if(typeof e=="string"||St(e))return e;var t=e+"";return t=="0"&&1/e==-ye?"-0":t}function tr(e){if(e!=null){try{return gi.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Wx(e,t){return bt(j,function(o){var a="_."+o[0];t&o[1]&&!ui(e,a)&&e.push(a)}),e.sort()}function Gp(e){if(e instanceof me)return e.clone();var t=new kt(e.__wrapped__,e.__chain__);return t.__actions__=ct(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gx(e,t,o){(o?ot(e,t,o):t===n)?t=1:t=Ge(se(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var u=0,f=0,y=I(vi(a/t));u<a;)y[f++]=Pt(e,u,u+=t);return y}function $x(e){for(var t=-1,o=e==null?0:e.length,a=0,u=[];++t<o;){var f=e[t];f&&(u[a++]=f)}return u}function Hx(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return En(oe(o)?ct(o):[o],Ke(t,1))}var Vx=fe(function(e,t){return Oe(e)?ho(e,Ke(t,1,Oe,!0)):[]}),qx=fe(function(e,t){var o=Rt(t);return Oe(o)&&(o=n),Oe(e)?ho(e,Ke(t,1,Oe,!0),Y(o,2)):[]}),zx=fe(function(e,t){var o=Rt(t);return Oe(o)&&(o=n),Oe(e)?ho(e,Ke(t,1,Oe,!0),n,o):[]});function Kx(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===n?1:se(t),Pt(e,t<0?0:t,a)):[]}function Yx(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===n?1:se(t),t=a-t,Pt(e,0,t<0?0:t)):[]}function Zx(e,t){return e&&e.length?Pi(e,Y(t,3),!0,!0):[]}function Xx(e,t){return e&&e.length?Pi(e,Y(t,3),!0):[]}function Jx(e,t,o,a){var u=e==null?0:e.length;return u?(o&&typeof o!="number"&&ot(e,t,o)&&(o=0,a=u),Hy(e,t,o,a)):[]}function $p(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var u=o==null?0:se(o);return u<0&&(u=Ge(a+u,0)),li(e,Y(t,3),u)}function Hp(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var u=a-1;return o!==n&&(u=se(o),u=o<0?Ge(a+u,0):Ze(u,a-1)),li(e,Y(t,3),u,!0)}function Vp(e){var t=e==null?0:e.length;return t?Ke(e,1):[]}function Qx(e){var t=e==null?0:e.length;return t?Ke(e,ye):[]}function jx(e,t){var o=e==null?0:e.length;return o?(t=t===n?1:se(t),Ke(e,t)):[]}function eS(e){for(var t=-1,o=e==null?0:e.length,a={};++t<o;){var u=e[t];a[u[0]]=u[1]}return a}function qp(e){return e&&e.length?e[0]:n}function tS(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var u=o==null?0:se(o);return u<0&&(u=Ge(a+u,0)),Ar(e,t,u)}function nS(e){var t=e==null?0:e.length;return t?Pt(e,0,-1):[]}var rS=fe(function(e){var t=Pe(e,ja);return t.length&&t[0]===e[0]?Ha(t):[]}),oS=fe(function(e){var t=Rt(e),o=Pe(e,ja);return t===Rt(o)?t=n:o.pop(),o.length&&o[0]===e[0]?Ha(o,Y(t,2)):[]}),iS=fe(function(e){var t=Rt(e),o=Pe(e,ja);return t=typeof t=="function"?t:n,t&&o.pop(),o.length&&o[0]===e[0]?Ha(o,n,t):[]});function sS(e,t){return e==null?"":ny.call(e,t)}function Rt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function aS(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var u=a;return o!==n&&(u=se(o),u=u<0?Ge(a+u,0):Ze(u,a-1)),t===t?Wh(e,t,u):li(e,_l,u,!0)}function cS(e,t){return e&&e.length?np(e,se(t)):n}var uS=fe(zp);function zp(e,t){return e&&e.length&&t&&t.length?Ka(e,t):e}function lS(e,t,o){return e&&e.length&&t&&t.length?Ka(e,t,Y(o,2)):e}function pS(e,t,o){return e&&e.length&&t&&t.length?Ka(e,t,n,o):e}var fS=mn(function(e,t){var o=e==null?0:e.length,a=Ba(e,t);return ip(e,Pe(t,function(u){return Tn(u,o)?+u:u}).sort(mp)),a});function dS(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,u=[],f=e.length;for(t=Y(t,3);++a<f;){var y=e[a];t(y,a,e)&&(o.push(y),u.push(a))}return ip(e,u),o}function dc(e){return e==null?e:sy.call(e)}function gS(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&ot(e,t,o)?(t=0,o=a):(t=t==null?0:se(t),o=o===n?a:se(o)),Pt(e,t,o)):[]}function mS(e,t){return Ci(e,t)}function TS(e,t,o){return Xa(e,t,Y(o,2))}function hS(e,t){var o=e==null?0:e.length;if(o){var a=Ci(e,t);if(a<o&&Ht(e[a],t))return a}return-1}function yS(e,t){return Ci(e,t,!0)}function xS(e,t,o){return Xa(e,t,Y(o,2),!0)}function SS(e,t){var o=e==null?0:e.length;if(o){var a=Ci(e,t,!0)-1;if(Ht(e[a],t))return a}return-1}function vS(e){return e&&e.length?ap(e):[]}function wS(e,t){return e&&e.length?ap(e,Y(t,2)):[]}function AS(e){var t=e==null?0:e.length;return t?Pt(e,1,t):[]}function IS(e,t,o){return e&&e.length?(t=o||t===n?1:se(t),Pt(e,0,t<0?0:t)):[]}function _S(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===n?1:se(t),t=a-t,Pt(e,t<0?0:t,a)):[]}function LS(e,t){return e&&e.length?Pi(e,Y(t,3),!1,!0):[]}function bS(e,t){return e&&e.length?Pi(e,Y(t,3)):[]}var ES=fe(function(e){return Dn(Ke(e,1,Oe,!0))}),kS=fe(function(e){var t=Rt(e);return Oe(t)&&(t=n),Dn(Ke(e,1,Oe,!0),Y(t,2))}),CS=fe(function(e){var t=Rt(e);return t=typeof t=="function"?t:n,Dn(Ke(e,1,Oe,!0),n,t)});function PS(e){return e&&e.length?Dn(e):[]}function RS(e,t){return e&&e.length?Dn(e,Y(t,2)):[]}function DS(e,t){return t=typeof t=="function"?t:n,e&&e.length?Dn(e,n,t):[]}function gc(e){if(!(e&&e.length))return[];var t=0;return e=bn(e,function(o){if(Oe(o))return t=Ge(o.length,t),!0}),Pa(t,function(o){return Pe(e,Ea(o))})}function Kp(e,t){if(!(e&&e.length))return[];var o=gc(e);return t==null?o:Pe(o,function(a){return ht(t,n,a)})}var NS=fe(function(e,t){return Oe(e)?ho(e,t):[]}),OS=fe(function(e){return Qa(bn(e,Oe))}),MS=fe(function(e){var t=Rt(e);return Oe(t)&&(t=n),Qa(bn(e,Oe),Y(t,2))}),FS=fe(function(e){var t=Rt(e);return t=typeof t=="function"?t:n,Qa(bn(e,Oe),n,t)}),US=fe(gc);function BS(e,t){return pp(e||[],t||[],To)}function WS(e,t){return pp(e||[],t||[],So)}var GS=fe(function(e){var t=e.length,o=t>1?e[t-1]:n;return o=typeof o=="function"?(e.pop(),o):n,Kp(e,o)});function Yp(e){var t=p(e);return t.__chain__=!0,t}function $S(e,t){return t(e),e}function Wi(e,t){return t(e)}var HS=mn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,u=function(f){return Ba(f,e)};return t>1||this.__actions__.length||!(a instanceof me)||!Tn(o)?this.thru(u):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:Wi,args:[u],thisArg:n}),new kt(a,this.__chain__).thru(function(f){return t&&!f.length&&f.push(n),f}))});function VS(){return Yp(this)}function qS(){return new kt(this.value(),this.__chain__)}function zS(){this.__values__===n&&(this.__values__=uf(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function KS(){return this}function YS(e){for(var t,o=this;o instanceof _i;){var a=Gp(o);a.__index__=0,a.__values__=n,t?u.__wrapped__=a:t=a;var u=a;o=o.__wrapped__}return u.__wrapped__=e,t}function ZS(){var e=this.__wrapped__;if(e instanceof me){var t=e;return this.__actions__.length&&(t=new me(this)),t=t.reverse(),t.__actions__.push({func:Wi,args:[dc],thisArg:n}),new kt(t,this.__chain__)}return this.thru(dc)}function XS(){return lp(this.__wrapped__,this.__actions__)}var JS=Ri(function(e,t,o){ve.call(e,o)?++e[o]:dn(e,o,1)});function QS(e,t,o){var a=oe(e)?Al:$y;return o&&ot(e,t,o)&&(t=n),a(e,Y(t,3))}function jS(e,t){var o=oe(e)?bn:Kl;return o(e,Y(t,3))}var ev=vp($p),tv=vp(Hp);function nv(e,t){return Ke(Gi(e,t),1)}function rv(e,t){return Ke(Gi(e,t),ye)}function ov(e,t,o){return o=o===n?1:se(o),Ke(Gi(e,t),o)}function Zp(e,t){var o=oe(e)?bt:Rn;return o(e,Y(t,3))}function Xp(e,t){var o=oe(e)?Ah:zl;return o(e,Y(t,3))}var iv=Ri(function(e,t,o){ve.call(e,o)?e[o].push(t):dn(e,o,[t])});function sv(e,t,o,a){e=ut(e)?e:Nr(e),o=o&&!a?se(o):0;var u=e.length;return o<0&&(o=Ge(u+o,0)),zi(e)?o<=u&&e.indexOf(t,o)>-1:!!u&&Ar(e,t,o)>-1}var av=fe(function(e,t,o){var a=-1,u=typeof t=="function",f=ut(e)?I(e.length):[];return Rn(e,function(y){f[++a]=u?ht(t,y,o):yo(y,t,o)}),f}),cv=Ri(function(e,t,o){dn(e,o,t)});function Gi(e,t){var o=oe(e)?Pe:jl;return o(e,Y(t,3))}function uv(e,t,o,a){return e==null?[]:(oe(t)||(t=t==null?[]:[t]),o=a?n:o,oe(o)||(o=o==null?[]:[o]),rp(e,t,o))}var lv=Ri(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function pv(e,t,o){var a=oe(e)?La:bl,u=arguments.length<3;return a(e,Y(t,4),o,u,Rn)}function fv(e,t,o){var a=oe(e)?Ih:bl,u=arguments.length<3;return a(e,Y(t,4),o,u,zl)}function dv(e,t){var o=oe(e)?bn:Kl;return o(e,Vi(Y(t,3)))}function gv(e){var t=oe(e)?$l:sx;return t(e)}function mv(e,t,o){(o?ot(e,t,o):t===n)?t=1:t=se(t);var a=oe(e)?Fy:ax;return a(e,t)}function Tv(e){var t=oe(e)?Uy:ux;return t(e)}function hv(e){if(e==null)return 0;if(ut(e))return zi(e)?_r(e):e.length;var t=Xe(e);return t==Bt||t==Wt?e.size:qa(e).length}function yv(e,t,o){var a=oe(e)?ba:lx;return o&&ot(e,t,o)&&(t=n),a(e,Y(t,3))}var xv=fe(function(e,t){if(e==null)return[];var o=t.length;return o>1&&ot(e,t[0],t[1])?t=[]:o>2&&ot(t[0],t[1],t[2])&&(t=[t[0]]),rp(e,Ke(t,1),[])}),$i=jh||function(){return $e.Date.now()};function Sv(e,t){if(typeof t!="function")throw new Et(l);return e=se(e),function(){if(--e<1)return t.apply(this,arguments)}}function Jp(e,t,o){return t=o?n:t,t=e&&t==null?e.length:t,gn(e,pe,n,n,n,n,t)}function Qp(e,t){var o;if(typeof t!="function")throw new Et(l);return e=se(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var mc=fe(function(e,t,o){var a=N;if(o.length){var u=kn(o,Rr(mc));a|=V}return gn(e,a,t,o,u)}),jp=fe(function(e,t,o){var a=N|G;if(o.length){var u=kn(o,Rr(jp));a|=V}return gn(t,a,e,o,u)});function ef(e,t,o){t=o?n:t;var a=gn(e,z,n,n,n,n,n,t);return a.placeholder=ef.placeholder,a}function tf(e,t,o){t=o?n:t;var a=gn(e,B,n,n,n,n,n,t);return a.placeholder=tf.placeholder,a}function nf(e,t,o){var a,u,f,y,x,v,k=0,C=!1,R=!1,U=!0;if(typeof e!="function")throw new Et(l);t=Dt(t)||0,De(o)&&(C=!!o.leading,R="maxWait"in o,f=R?Ge(Dt(o.maxWait)||0,t):f,U="trailing"in o?!!o.trailing:U);function q(Me){var Vt=a,xn=u;return a=u=n,k=Me,y=e.apply(xn,Vt),y}function X(Me){return k=Me,x=Ao(ge,t),C?q(Me):y}function le(Me){var Vt=Me-v,xn=Me-k,wf=t-Vt;return R?Ze(wf,f-xn):wf}function J(Me){var Vt=Me-v,xn=Me-k;return v===n||Vt>=t||Vt<0||R&&xn>=f}function ge(){var Me=$i();if(J(Me))return Te(Me);x=Ao(ge,le(Me))}function Te(Me){return x=n,U&&a?q(Me):(a=u=n,y)}function vt(){x!==n&&fp(x),k=0,a=v=u=x=n}function it(){return x===n?y:Te($i())}function wt(){var Me=$i(),Vt=J(Me);if(a=arguments,u=this,v=Me,Vt){if(x===n)return X(v);if(R)return fp(x),x=Ao(ge,t),q(v)}return x===n&&(x=Ao(ge,t)),y}return wt.cancel=vt,wt.flush=it,wt}var vv=fe(function(e,t){return ql(e,1,t)}),wv=fe(function(e,t,o){return ql(e,Dt(t)||0,o)});function Av(e){return gn(e,ce)}function Hi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Et(l);var o=function(){var a=arguments,u=t?t.apply(this,a):a[0],f=o.cache;if(f.has(u))return f.get(u);var y=e.apply(this,a);return o.cache=f.set(u,y)||f,y};return o.cache=new(Hi.Cache||fn),o}Hi.Cache=fn;function Vi(e){if(typeof e!="function")throw new Et(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Iv(e){return Qp(2,e)}var _v=px(function(e,t){t=t.length==1&&oe(t[0])?Pe(t[0],yt(Y())):Pe(Ke(t,1),yt(Y()));var o=t.length;return fe(function(a){for(var u=-1,f=Ze(a.length,o);++u<f;)a[u]=t[u].call(this,a[u]);return ht(e,this,a)})}),Tc=fe(function(e,t){var o=kn(t,Rr(Tc));return gn(e,V,n,t,o)}),rf=fe(function(e,t){var o=kn(t,Rr(rf));return gn(e,ne,n,t,o)}),Lv=mn(function(e,t){return gn(e,Re,n,n,n,t)});function bv(e,t){if(typeof e!="function")throw new Et(l);return t=t===n?t:se(t),fe(e,t)}function Ev(e,t){if(typeof e!="function")throw new Et(l);return t=t==null?0:Ge(se(t),0),fe(function(o){var a=o[t],u=On(o,0,t);return a&&En(u,a),ht(e,this,u)})}function kv(e,t,o){var a=!0,u=!0;if(typeof e!="function")throw new Et(l);return De(o)&&(a="leading"in o?!!o.leading:a,u="trailing"in o?!!o.trailing:u),nf(e,t,{leading:a,maxWait:t,trailing:u})}function Cv(e){return Jp(e,1)}function Pv(e,t){return Tc(ec(t),e)}function Rv(){if(!arguments.length)return[];var e=arguments[0];return oe(e)?e:[e]}function Dv(e){return Ct(e,P)}function Nv(e,t){return t=typeof t=="function"?t:n,Ct(e,P,t)}function Ov(e){return Ct(e,_|P)}function Mv(e,t){return t=typeof t=="function"?t:n,Ct(e,_|P,t)}function Fv(e,t){return t==null||Vl(e,t,He(t))}function Ht(e,t){return e===t||e!==e&&t!==t}var Uv=Mi($a),Bv=Mi(function(e,t){return e>=t}),nr=Xl(function(){return arguments}())?Xl:function(e){return Ne(e)&&ve.call(e,"callee")&&!Ml.call(e,"callee")},oe=I.isArray,Wv=hl?yt(hl):Yy;function ut(e){return e!=null&&qi(e.length)&&!hn(e)}function Oe(e){return Ne(e)&&ut(e)}function Gv(e){return e===!0||e===!1||Ne(e)&&rt(e)==Ut}var Mn=ty||bc,$v=yl?yt(yl):Zy;function Hv(e){return Ne(e)&&e.nodeType===1&&!Io(e)}function Vv(e){if(e==null)return!0;if(ut(e)&&(oe(e)||typeof e=="string"||typeof e.splice=="function"||Mn(e)||Dr(e)||nr(e)))return!e.length;var t=Xe(e);if(t==Bt||t==Wt)return!e.size;if(wo(e))return!qa(e).length;for(var o in e)if(ve.call(e,o))return!1;return!0}function qv(e,t){return xo(e,t)}function zv(e,t,o){o=typeof o=="function"?o:n;var a=o?o(e,t):n;return a===n?xo(e,t,n,o):!!a}function hc(e){if(!Ne(e))return!1;var t=rt(e);return t==ri||t==Kn||typeof e.message=="string"&&typeof e.name=="string"&&!Io(e)}function Kv(e){return typeof e=="number"&&Ul(e)}function hn(e){if(!De(e))return!1;var t=rt(e);return t==oi||t==qu||t==Ye||t==hT}function of(e){return typeof e=="number"&&e==se(e)}function qi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=we}function De(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ne(e){return e!=null&&typeof e=="object"}var sf=xl?yt(xl):Jy;function Yv(e,t){return e===t||Va(e,t,ac(t))}function Zv(e,t,o){return o=typeof o=="function"?o:n,Va(e,t,ac(t),o)}function Xv(e){return af(e)&&e!=+e}function Jv(e){if(Nx(e))throw new re(c);return Jl(e)}function Qv(e){return e===null}function jv(e){return e==null}function af(e){return typeof e=="number"||Ne(e)&&rt(e)==oo}function Io(e){if(!Ne(e)||rt(e)!=ln)return!1;var t=yi(e);if(t===null)return!0;var o=ve.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&gi.call(o)==Zh}var yc=Sl?yt(Sl):Qy;function e0(e){return of(e)&&e>=-we&&e<=we}var cf=vl?yt(vl):jy;function zi(e){return typeof e=="string"||!oe(e)&&Ne(e)&&rt(e)==so}function St(e){return typeof e=="symbol"||Ne(e)&&rt(e)==ii}var Dr=wl?yt(wl):ex;function t0(e){return e===n}function n0(e){return Ne(e)&&Xe(e)==ao}function r0(e){return Ne(e)&&rt(e)==xT}var o0=Mi(za),i0=Mi(function(e,t){return e<=t});function uf(e){if(!e)return[];if(ut(e))return zi(e)?Gt(e):ct(e);if(lo&&e[lo])return Fh(e[lo]());var t=Xe(e),o=t==Bt?Da:t==Wt?pi:Nr;return o(e)}function yn(e){if(!e)return e===0?e:0;if(e=Dt(e),e===ye||e===-ye){var t=e<0?-1:1;return t*he}return e===e?e:0}function se(e){var t=yn(e),o=t%1;return t===t?o?t-o:t:0}function lf(e){return e?Qn(se(e),0,de):0}function Dt(e){if(typeof e=="number")return e;if(St(e))return ie;if(De(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=De(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=El(e);var o=WT.test(e);return o||$T.test(e)?Sh(e.slice(2),o?2:8):BT.test(e)?ie:+e}function pf(e){return Qt(e,lt(e))}function s0(e){return e?Qn(se(e),-we,we):e===0?e:0}function Se(e){return e==null?"":xt(e)}var a0=Cr(function(e,t){if(wo(t)||ut(t)){Qt(t,He(t),e);return}for(var o in t)ve.call(t,o)&&To(e,o,t[o])}),ff=Cr(function(e,t){Qt(t,lt(t),e)}),Ki=Cr(function(e,t,o,a){Qt(t,lt(t),e,a)}),c0=Cr(function(e,t,o,a){Qt(t,He(t),e,a)}),u0=mn(Ba);function l0(e,t){var o=kr(e);return t==null?o:Hl(o,t)}var p0=fe(function(e,t){e=_e(e);var o=-1,a=t.length,u=a>2?t[2]:n;for(u&&ot(t[0],t[1],u)&&(a=1);++o<a;)for(var f=t[o],y=lt(f),x=-1,v=y.length;++x<v;){var k=y[x],C=e[k];(C===n||Ht(C,Lr[k])&&!ve.call(e,k))&&(e[k]=f[k])}return e}),f0=fe(function(e){return e.push(n,Ep),ht(df,n,e)});function d0(e,t){return Il(e,Y(t,3),Jt)}function g0(e,t){return Il(e,Y(t,3),Ga)}function m0(e,t){return e==null?e:Wa(e,Y(t,3),lt)}function T0(e,t){return e==null?e:Yl(e,Y(t,3),lt)}function h0(e,t){return e&&Jt(e,Y(t,3))}function y0(e,t){return e&&Ga(e,Y(t,3))}function x0(e){return e==null?[]:Ei(e,He(e))}function S0(e){return e==null?[]:Ei(e,lt(e))}function xc(e,t,o){var a=e==null?n:jn(e,t);return a===n?o:a}function v0(e,t){return e!=null&&Pp(e,t,Vy)}function Sc(e,t){return e!=null&&Pp(e,t,qy)}var w0=Ap(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=mi.call(t)),e[t]=o},wc(pt)),A0=Ap(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=mi.call(t)),ve.call(e,t)?e[t].push(o):e[t]=[o]},Y),I0=fe(yo);function He(e){return ut(e)?Gl(e):qa(e)}function lt(e){return ut(e)?Gl(e,!0):tx(e)}function _0(e,t){var o={};return t=Y(t,3),Jt(e,function(a,u,f){dn(o,t(a,u,f),a)}),o}function L0(e,t){var o={};return t=Y(t,3),Jt(e,function(a,u,f){dn(o,u,t(a,u,f))}),o}var b0=Cr(function(e,t,o){ki(e,t,o)}),df=Cr(function(e,t,o,a){ki(e,t,o,a)}),E0=mn(function(e,t){var o={};if(e==null)return o;var a=!1;t=Pe(t,function(f){return f=Nn(f,e),a||(a=f.length>1),f}),Qt(e,ic(e),o),a&&(o=Ct(o,_|L|P,wx));for(var u=t.length;u--;)Ja(o,t[u]);return o});function k0(e,t){return gf(e,Vi(Y(t)))}var C0=mn(function(e,t){return e==null?{}:rx(e,t)});function gf(e,t){if(e==null)return{};var o=Pe(ic(e),function(a){return[a]});return t=Y(t),op(e,o,function(a,u){return t(a,u[0])})}function P0(e,t,o){t=Nn(t,e);var a=-1,u=t.length;for(u||(u=1,e=n);++a<u;){var f=e==null?n:e[jt(t[a])];f===n&&(a=u,f=o),e=hn(f)?f.call(e):f}return e}function R0(e,t,o){return e==null?e:So(e,t,o)}function D0(e,t,o,a){return a=typeof a=="function"?a:n,e==null?e:So(e,t,o,a)}var mf=Lp(He),Tf=Lp(lt);function N0(e,t,o){var a=oe(e),u=a||Mn(e)||Dr(e);if(t=Y(t,4),o==null){var f=e&&e.constructor;u?o=a?new f:[]:De(e)?o=hn(f)?kr(yi(e)):{}:o={}}return(u?bt:Jt)(e,function(y,x,v){return t(o,y,x,v)}),o}function O0(e,t){return e==null?!0:Ja(e,t)}function M0(e,t,o){return e==null?e:up(e,t,ec(o))}function F0(e,t,o,a){return a=typeof a=="function"?a:n,e==null?e:up(e,t,ec(o),a)}function Nr(e){return e==null?[]:Ra(e,He(e))}function U0(e){return e==null?[]:Ra(e,lt(e))}function B0(e,t,o){return o===n&&(o=t,t=n),o!==n&&(o=Dt(o),o=o===o?o:0),t!==n&&(t=Dt(t),t=t===t?t:0),Qn(Dt(e),t,o)}function W0(e,t,o){return t=yn(t),o===n?(o=t,t=0):o=yn(o),e=Dt(e),zy(e,t,o)}function G0(e,t,o){if(o&&typeof o!="boolean"&&ot(e,t,o)&&(t=o=n),o===n&&(typeof t=="boolean"?(o=t,t=n):typeof e=="boolean"&&(o=e,e=n)),e===n&&t===n?(e=0,t=1):(e=yn(e),t===n?(t=e,e=0):t=yn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var u=Bl();return Ze(e+u*(t-e+xh("1e-"+((u+"").length-1))),t)}return Ya(e,t)}var $0=Pr(function(e,t,o){return t=t.toLowerCase(),e+(o?hf(t):t)});function hf(e){return vc(Se(e).toLowerCase())}function yf(e){return e=Se(e),e&&e.replace(VT,Rh).replace(uh,"")}function H0(e,t,o){e=Se(e),t=xt(t);var a=e.length;o=o===n?a:Qn(se(o),0,a);var u=o;return o-=t.length,o>=0&&e.slice(o,u)==t}function V0(e){return e=Se(e),e&&IT.test(e)?e.replace(Yu,Dh):e}function q0(e){return e=Se(e),e&&CT.test(e)?e.replace(Ta,"\\$&"):e}var z0=Pr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),K0=Pr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),Y0=Sp("toLowerCase");function Z0(e,t,o){e=Se(e),t=se(t);var a=t?_r(e):0;if(!t||a>=t)return e;var u=(t-a)/2;return Oi(wi(u),o)+e+Oi(vi(u),o)}function X0(e,t,o){e=Se(e),t=se(t);var a=t?_r(e):0;return t&&a<t?e+Oi(t-a,o):e}function J0(e,t,o){e=Se(e),t=se(t);var a=t?_r(e):0;return t&&a<t?Oi(t-a,o)+e:e}function Q0(e,t,o){return o||t==null?t=0:t&&(t=+t),iy(Se(e).replace(ha,""),t||0)}function j0(e,t,o){return(o?ot(e,t,o):t===n)?t=1:t=se(t),Za(Se(e),t)}function ew(){var e=arguments,t=Se(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var tw=Pr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function nw(e,t,o){return o&&typeof o!="number"&&ot(e,t,o)&&(t=o=n),o=o===n?de:o>>>0,o?(e=Se(e),e&&(typeof t=="string"||t!=null&&!yc(t))&&(t=xt(t),!t&&Ir(e))?On(Gt(e),0,o):e.split(t,o)):[]}var rw=Pr(function(e,t,o){return e+(o?" ":"")+vc(t)});function ow(e,t,o){return e=Se(e),o=o==null?0:Qn(se(o),0,e.length),t=xt(t),e.slice(o,o+t.length)==t}function iw(e,t,o){var a=p.templateSettings;o&&ot(e,t,o)&&(t=n),e=Se(e),t=Ki({},t,a,bp);var u=Ki({},t.imports,a.imports,bp),f=He(u),y=Ra(u,f),x,v,k=0,C=t.interpolate||si,R="__p += '",U=Na((t.escape||si).source+"|"+C.source+"|"+(C===Zu?UT:si).source+"|"+(t.evaluate||si).source+"|$","g"),q="//# sourceURL="+(ve.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gh+"]")+`
|
|
4
4
|
`;e.replace(U,function(J,ge,Te,vt,it,wt){return Te||(Te=vt),R+=e.slice(k,wt).replace(qT,Nh),ge&&(x=!0,R+=`' +
|
|
5
5
|
__e(`+ge+`) +
|
|
6
6
|
'`),it&&(v=!0,R+=`';
|
|
@@ -17,7 +17,7 @@ __p += '`),Te&&(R+=`' +
|
|
|
17
17
|
function print() { __p += __j.call(arguments, '') }
|
|
18
18
|
`:`;
|
|
19
19
|
`)+R+`return __p
|
|
20
|
-
}`;var le=Sf(function(){return xe(f,q+"return "+R).apply(n,y)});if(le.source=R,hc(le))throw le;return le}function sw(e){return Se(e).toLowerCase()}function aw(e){return Se(e).toUpperCase()}function cw(e,t,o){if(e=Se(e),e&&(o||t===n))return El(e);if(!e||!(t=xt(t)))return e;var s=Gt(e),u=Gt(t),f=kl(s,u),y=Cl(s,u)+1;return On(s,f,y).join("")}function uw(e,t,o){if(e=Se(e),e&&(o||t===n))return e.slice(0,Rl(e)+1);if(!e||!(t=xt(t)))return e;var s=Gt(e),u=Cl(s,Gt(t))+1;return On(s,0,u).join("")}function lw(e,t,o){if(e=Se(e),e&&(o||t===n))return e.replace(ha,"");if(!e||!(t=xt(t)))return e;var s=Gt(e),u=kl(s,Gt(t));return On(s,u).join("")}function pw(e,t){var o=et,s=tt;if(De(t)){var u="separator"in t?t.separator:u;o="length"in t?se(t.length):o,s="omission"in t?xt(t.omission):s}e=Se(e);var f=e.length;if(Ir(e)){var y=Gt(e);f=y.length}if(o>=f)return e;var x=o-_r(s);if(x<1)return s;var v=y?On(y,0,x).join(""):e.slice(0,x);if(u===n)return v+s;if(y&&(x+=v.length-x),yc(u)){if(e.slice(x).search(u)){var k,C=v;for(u.global||(u=Na(u.source,Se(Xu.exec(u))+"g")),u.lastIndex=0;k=u.exec(C);)var R=k.index;v=v.slice(0,R===n?x:R)}}else if(e.indexOf(xt(u),x)!=x){var U=v.lastIndexOf(u);U>-1&&(v=v.slice(0,U))}return v+s}function fw(e){return e=Se(e),e&&AT.test(e)?e.replace(Ku,Gh):e}var dw=Pr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),vc=Sp("toUpperCase");function xf(e,t,o){return e=Se(e),t=o?n:t,t===n?Mh(e)?Vh(e):bh(e):e.match(t)||[]}var Sf=fe(function(e,t){try{return ht(e,n,t)}catch(o){return hc(o)?o:new re(o)}}),gw=mn(function(e,t){return bt(t,function(o){o=jt(o),dn(e,o,mc(e[o],e))}),e});function mw(e){var t=e==null?0:e.length,o=Y();return e=t?Pe(e,function(s){if(typeof s[1]!="function")throw new Et(l);return[o(s[0]),s[1]]}):[],fe(function(s){for(var u=-1;++u<t;){var f=e[u];if(ht(f[0],this,s))return ht(f[1],this,s)}})}function Tw(e){return Gy(Ct(e,_))}function wc(e){return function(){return e}}function hw(e,t){return e==null||e!==e?t:e}var yw=wp(),xw=wp(!0);function pt(e){return e}function Ac(e){return Ql(typeof e=="function"?e:Ct(e,_))}function Sw(e){return ep(Ct(e,_))}function vw(e,t){return tp(e,Ct(t,_))}var ww=fe(function(e,t){return function(o){return yo(o,e,t)}}),Aw=fe(function(e,t){return function(o){return yo(e,o,t)}});function Ic(e,t,o){var s=He(t),u=Ei(t,s);o==null&&!(De(t)&&(u.length||!s.length))&&(o=t,t=e,e=this,u=Ei(t,He(t)));var f=!(De(o)&&"chain"in o)||!!o.chain,y=hn(e);return bt(u,function(x){var v=t[x];e[x]=v,y&&(e.prototype[x]=function(){var k=this.__chain__;if(f||k){var C=e(this.__wrapped__),R=C.__actions__=ct(this.__actions__);return R.push({func:v,args:arguments,thisArg:e}),C.__chain__=k,C}return v.apply(e,En([this.value()],arguments))})}),e}function Iw(){return $e._===this&&($e._=Xh),this}function _c(){}function _w(e){return e=se(e),fe(function(t){return np(t,e)})}var Lw=nc(Pe),bw=nc(Al),Ew=nc(ba);function vf(e){return uc(e)?Ea(jt(e)):ox(e)}function kw(e){return function(t){return e==null?n:jn(e,t)}}var Cw=Ip(),Pw=Ip(!0);function Lc(){return[]}function bc(){return!1}function Rw(){return{}}function Dw(){return""}function Nw(){return!0}function Ow(e,t){if(e=se(e),e<1||e>we)return[];var o=de,s=Ze(e,de);t=Y(t),e-=de;for(var u=Pa(s,t);++o<e;)t(o);return u}function Mw(e){return oe(e)?Pe(e,jt):St(e)?[e]:ct(Wp(Se(e)))}function Fw(e){var t=++Yh;return Se(e)+t}var Uw=Ni(function(e,t){return e+t},0),Bw=rc("ceil"),Ww=Ni(function(e,t){return e/t},1),Gw=rc("floor");function $w(e){return e&&e.length?bi(e,pt,$a):n}function Hw(e,t){return e&&e.length?bi(e,Y(t,2),$a):n}function Vw(e){return Ll(e,pt)}function qw(e,t){return Ll(e,Y(t,2))}function zw(e){return e&&e.length?bi(e,pt,za):n}function Kw(e,t){return e&&e.length?bi(e,Y(t,2),za):n}var Yw=Ni(function(e,t){return e*t},1),Zw=rc("round"),Xw=Ni(function(e,t){return e-t},0);function Jw(e){return e&&e.length?Ca(e,pt):0}function Qw(e,t){return e&&e.length?Ca(e,Y(t,2)):0}return p.after=Sv,p.ary=Jp,p.assign=a0,p.assignIn=ff,p.assignInWith=Ki,p.assignWith=c0,p.at=u0,p.before=Qp,p.bind=mc,p.bindAll=gw,p.bindKey=jp,p.castArray=Rv,p.chain=Yp,p.chunk=Gx,p.compact=$x,p.concat=Hx,p.cond=mw,p.conforms=Tw,p.constant=wc,p.countBy=JS,p.create=l0,p.curry=ef,p.curryRight=tf,p.debounce=nf,p.defaults=p0,p.defaultsDeep=f0,p.defer=vv,p.delay=wv,p.difference=Vx,p.differenceBy=qx,p.differenceWith=zx,p.drop=Kx,p.dropRight=Yx,p.dropRightWhile=Zx,p.dropWhile=Xx,p.fill=Jx,p.filter=jS,p.flatMap=nv,p.flatMapDeep=rv,p.flatMapDepth=ov,p.flatten=Vp,p.flattenDeep=Qx,p.flattenDepth=jx,p.flip=Av,p.flow=yw,p.flowRight=xw,p.fromPairs=eS,p.functions=x0,p.functionsIn=S0,p.groupBy=iv,p.initial=nS,p.intersection=rS,p.intersectionBy=oS,p.intersectionWith=iS,p.invert=w0,p.invertBy=A0,p.invokeMap=av,p.iteratee=Ac,p.keyBy=cv,p.keys=He,p.keysIn=lt,p.map=Gi,p.mapKeys=_0,p.mapValues=L0,p.matches=Sw,p.matchesProperty=vw,p.memoize=Hi,p.merge=b0,p.mergeWith=df,p.method=ww,p.methodOf=Aw,p.mixin=Ic,p.negate=Vi,p.nthArg=_w,p.omit=E0,p.omitBy=k0,p.once=Iv,p.orderBy=uv,p.over=Lw,p.overArgs=_v,p.overEvery=bw,p.overSome=Ew,p.partial=Tc,p.partialRight=rf,p.partition=lv,p.pick=C0,p.pickBy=gf,p.property=vf,p.propertyOf=kw,p.pull=uS,p.pullAll=zp,p.pullAllBy=lS,p.pullAllWith=pS,p.pullAt=fS,p.range=Cw,p.rangeRight=Pw,p.rearg=Lv,p.reject=dv,p.remove=dS,p.rest=bv,p.reverse=dc,p.sampleSize=mv,p.set=R0,p.setWith=D0,p.shuffle=Tv,p.slice=gS,p.sortBy=xv,p.sortedUniq=vS,p.sortedUniqBy=wS,p.split=nw,p.spread=Ev,p.tail=AS,p.take=IS,p.takeRight=_S,p.takeRightWhile=LS,p.takeWhile=bS,p.tap=$S,p.throttle=kv,p.thru=Wi,p.toArray=uf,p.toPairs=mf,p.toPairsIn=Tf,p.toPath=Mw,p.toPlainObject=pf,p.transform=N0,p.unary=Cv,p.union=ES,p.unionBy=kS,p.unionWith=CS,p.uniq=PS,p.uniqBy=RS,p.uniqWith=DS,p.unset=O0,p.unzip=gc,p.unzipWith=Kp,p.update=M0,p.updateWith=F0,p.values=Nr,p.valuesIn=U0,p.without=NS,p.words=xf,p.wrap=Pv,p.xor=OS,p.xorBy=MS,p.xorWith=FS,p.zip=US,p.zipObject=BS,p.zipObjectDeep=WS,p.zipWith=GS,p.entries=mf,p.entriesIn=Tf,p.extend=ff,p.extendWith=Ki,Ic(p,p),p.add=Uw,p.attempt=Sf,p.camelCase=$0,p.capitalize=hf,p.ceil=Bw,p.clamp=B0,p.clone=Dv,p.cloneDeep=Ov,p.cloneDeepWith=Mv,p.cloneWith=Nv,p.conformsTo=Fv,p.deburr=yf,p.defaultTo=hw,p.divide=Ww,p.endsWith=H0,p.eq=Ht,p.escape=V0,p.escapeRegExp=q0,p.every=QS,p.find=ev,p.findIndex=$p,p.findKey=d0,p.findLast=tv,p.findLastIndex=Hp,p.findLastKey=g0,p.floor=Gw,p.forEach=Zp,p.forEachRight=Xp,p.forIn=m0,p.forInRight=T0,p.forOwn=h0,p.forOwnRight=y0,p.get=xc,p.gt=Uv,p.gte=Bv,p.has=v0,p.hasIn=Sc,p.head=qp,p.identity=pt,p.includes=sv,p.indexOf=tS,p.inRange=W0,p.invoke=I0,p.isArguments=nr,p.isArray=oe,p.isArrayBuffer=Wv,p.isArrayLike=ut,p.isArrayLikeObject=Oe,p.isBoolean=Gv,p.isBuffer=Mn,p.isDate=$v,p.isElement=Hv,p.isEmpty=Vv,p.isEqual=qv,p.isEqualWith=zv,p.isError=hc,p.isFinite=Kv,p.isFunction=hn,p.isInteger=of,p.isLength=qi,p.isMap=sf,p.isMatch=Yv,p.isMatchWith=Zv,p.isNaN=Xv,p.isNative=Jv,p.isNil=jv,p.isNull=Qv,p.isNumber=af,p.isObject=De,p.isObjectLike=Ne,p.isPlainObject=Io,p.isRegExp=yc,p.isSafeInteger=e0,p.isSet=cf,p.isString=zi,p.isSymbol=St,p.isTypedArray=Dr,p.isUndefined=t0,p.isWeakMap=n0,p.isWeakSet=r0,p.join=sS,p.kebabCase=z0,p.last=Rt,p.lastIndexOf=aS,p.lowerCase=K0,p.lowerFirst=Y0,p.lt=o0,p.lte=i0,p.max=$w,p.maxBy=Hw,p.mean=Vw,p.meanBy=qw,p.min=zw,p.minBy=Kw,p.stubArray=Lc,p.stubFalse=bc,p.stubObject=Rw,p.stubString=Dw,p.stubTrue=Nw,p.multiply=Yw,p.nth=cS,p.noConflict=Iw,p.noop=_c,p.now=$i,p.pad=Z0,p.padEnd=X0,p.padStart=J0,p.parseInt=Q0,p.random=G0,p.reduce=pv,p.reduceRight=fv,p.repeat=j0,p.replace=ew,p.result=P0,p.round=Zw,p.runInContext=S,p.sample=gv,p.size=hv,p.snakeCase=tw,p.some=yv,p.sortedIndex=mS,p.sortedIndexBy=TS,p.sortedIndexOf=hS,p.sortedLastIndex=yS,p.sortedLastIndexBy=xS,p.sortedLastIndexOf=SS,p.startCase=rw,p.startsWith=ow,p.subtract=Xw,p.sum=Jw,p.sumBy=Qw,p.template=iw,p.times=Ow,p.toFinite=yn,p.toInteger=se,p.toLength=lf,p.toLower=sw,p.toNumber=Dt,p.toSafeInteger=s0,p.toString=Se,p.toUpper=aw,p.trim=cw,p.trimEnd=uw,p.trimStart=lw,p.truncate=pw,p.unescape=fw,p.uniqueId=Fw,p.upperCase=dw,p.upperFirst=vc,p.each=Zp,p.eachRight=Xp,p.first=qp,Ic(p,function(){var e={};return Jt(p,function(t,o){ve.call(p.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),p.VERSION=r,bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){p[e].placeholder=p}),bt(["drop","take"],function(e,t){me.prototype[e]=function(o){o=o===n?1:Ge(se(o),0);var s=this.__filtered__&&!t?new me(this):this.clone();return s.__filtered__?s.__takeCount__=Ze(o,s.__takeCount__):s.__views__.push({size:Ze(o,de),type:e+(s.__dir__<0?"Right":"")}),s},me.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),bt(["filter","map","takeWhile"],function(e,t){var o=t+1,s=o==Be||o==Tt;me.prototype[e]=function(u){var f=this.clone();return f.__iteratees__.push({iteratee:Y(u,3),type:o}),f.__filtered__=f.__filtered__||s,f}}),bt(["head","last"],function(e,t){var o="take"+(t?"Right":"");me.prototype[e]=function(){return this[o](1).value()[0]}}),bt(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");me.prototype[e]=function(){return this.__filtered__?new me(this):this[o](1)}}),me.prototype.compact=function(){return this.filter(pt)},me.prototype.find=function(e){return this.filter(e).head()},me.prototype.findLast=function(e){return this.reverse().find(e)},me.prototype.invokeMap=fe(function(e,t){return typeof e=="function"?new me(this):this.map(function(o){return yo(o,e,t)})}),me.prototype.reject=function(e){return this.filter(Vi(Y(e)))},me.prototype.slice=function(e,t){e=se(e);var o=this;return o.__filtered__&&(e>0||t<0)?new me(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==n&&(t=se(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},me.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},me.prototype.toArray=function(){return this.take(de)},Jt(me.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),s=/^(?:head|last)$/.test(t),u=p[s?"take"+(t=="last"?"Right":""):t],f=s||/^find/.test(t);!u||(p.prototype[t]=function(){var y=this.__wrapped__,x=s?[1]:arguments,v=y instanceof me,k=x[0],C=v||oe(y),R=function(ge){var Te=u.apply(p,En([ge],x));return s&&U?Te[0]:Te};C&&o&&typeof k=="function"&&k.length!=1&&(v=C=!1);var U=this.__chain__,q=!!this.__actions__.length,X=f&&!U,le=v&&!q;if(!f&&C){y=le?y:new me(this);var J=e.apply(y,x);return J.__actions__.push({func:Wi,args:[R],thisArg:n}),new kt(J,U)}return X&&le?e.apply(this,x):(J=this.thru(R),X?s?J.value()[0]:J.value():J)})}),bt(["pop","push","shift","sort","splice","unshift"],function(e){var t=fi[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",s=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var u=arguments;if(s&&!this.__chain__){var f=this.value();return t.apply(oe(f)?f:[],u)}return this[o](function(y){return t.apply(oe(y)?y:[],u)})}}),Jt(me.prototype,function(e,t){var o=p[t];if(o){var s=o.name+"";ve.call(Er,s)||(Er[s]=[]),Er[s].push({name:t,func:o})}}),Er[Di(n,G).name]=[{name:"wrapper",func:n}],me.prototype.clone=fy,me.prototype.reverse=dy,me.prototype.value=gy,p.prototype.at=HS,p.prototype.chain=VS,p.prototype.commit=qS,p.prototype.next=zS,p.prototype.plant=YS,p.prototype.reverse=ZS,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=XS,p.prototype.first=p.prototype.head,lo&&(p.prototype[lo]=KS),p},Cn=qh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?($e._=Cn,define(function(){return Cn})):Yn?((Yn.exports=Cn)._=Cn,Aa._=Cn):$e._=Cn}).call(to)});var fL={};rr(fL,{useCheckTransactionStatus:()=>L_,useDebounce:()=>eL,useExtensionLogin:()=>jm,useGetAccount:()=>qn,useGetAccountInfo:()=>Ou,useGetAccountProvider:()=>_n,useGetActiveTransactionsStatus:()=>b_,useGetFailedTransactions:()=>E_,useGetIsLoggedIn:()=>U_,useGetLastPendingTransactionHash:()=>k_,useGetLoginInfo:()=>Fu,useGetNetworkConfig:()=>Ho,useGetNotification:()=>y_,useGetPendingTransactions:()=>Vo,useGetSignTransactionsError:()=>C_,useGetSignedTransactions:()=>Ru,useGetSuccessfulTransactions:()=>P_,useGetTokenDetails:()=>D_,useGetTransactionDisplayInfo:()=>N_,useGetWebsocketEvent:()=>B_,useGetWebsocketUrl:()=>iL,useIsDappModalVisible:()=>pL,useLedgerLogin:()=>sT,useOperaLogin:()=>tT,useParseMultiEsdtTransferData:()=>Du,useParseSignedTransactions:()=>Yo,useRegisterWebsocketListener:()=>lL,useSignMultipleTransactions:()=>Nu,useSignTransactions:()=>W_,useSignTransactionsCommonData:()=>Zo,useSignTransactionsWithDevice:()=>Wu,useSignTransactionsWithLedger:()=>G_,useTrackTransactionStatus:()=>j_,useUpdateEffect:()=>Tr,useWalletConnectLogin:()=>cT,useWalletConnectV2Login:()=>lT,useWebWalletLogin:()=>oT});module.exports=bo(fL);a();a();a();var Pg=require("react"),Kr=require("react-redux");a();var lu=require("@reduxjs/toolkit"),kg=require("react-redux/lib/utils/Subscription");Ee();a();var ig=ae(require("lodash.throttle"));Le();a();var og=ae(require("lodash.isequal")),_s=require("reselect");qe();var H=(0,_s.createSelectorCreator)(_s.defaultMemoize,og.default),Mo=(n,r)=>n!=""&&Boolean(r);Ee();jc();$r();Gr();var gI=[ts],Ls=!1,mI=(0,ig.default)(()=>{Po(Co())},5e3),sg=n=>r=>i=>{var A;if(gI.includes(i.type))return r(i);let c=n.getState(),l=sn.local.getItem(qt.loginExpiresAt);if(!Mo((A=c==null?void 0:c.loginInfo)==null?void 0:A.loginMethod,c==null?void 0:c.account.address))return r(i);if(l==null)return Po(Co());let T=Date.now();return l-T<0&&!Ls?setTimeout(()=>{Ls=!0,n.dispatch(Rd())},1e3):(Ls&&(Ls=!1),mI()),r(i)};a();a();function bs(){return typeof sessionStorage!="undefined"}var Lg=bs()?(hg(),bo(Tg)).default:(xg(),bo(yg)).default,bg=bs()?(vg(),bo(Sg)).default:[],Eg=bs()?(_g(),bo(Ig)).default:n=>n;Es();var ee=(0,lu.configureStore)({reducer:Lg,middleware:n=>n({serializableCheck:{ignoredActions:[...bg,Jc.type,os.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(sg)}),Cg=(0,kg.createSubscription)(ee),M1=Eg(ee),F1=(0,lu.configureStore)({reducer:dr});var FI={store:ee,subscription:Cg},pu=(0,Pg.createContext)(FI),G1=(0,Kr.createStoreHook)(pu),Ae=(0,Kr.createDispatchHook)(pu),$=(0,Kr.createSelectorHook)(pu);a();a();Ee();var An=n=>n.account,$n=H(An,n=>n.address),Yr=H(An,$n,(n,r)=>r in n.accounts?n.accounts[r]:rs),Rg=H(An,Yr,(n,r)=>{let l=n,{accounts:i}=l,c=Zi(l,["accounts"]);return te(O({},c),{account:r})}),UI=H(Yr,n=>n.balance),Dg=H(Yr,n=>{var r;return((r=n==null?void 0:n.nonce)==null?void 0:r.valueOf())||0}),q1=H(An,n=>n.shard),Ng=H(An,n=>n.ledgerAccount),z1=H(An,n=>n.walletConnectAccount),K1=H(An,n=>n.isAccountLoading),Y1=H(An,n=>n.accountLoadingError),ks=H(An,n=>n.websocketEvent);a();var Mt=n=>n.loginInfo,Q1=H(Mt,n=>n.loginMethod),Zr=H(Mt,$n,(n,r)=>Mo(n.loginMethod,r)),j1=H(Mt,n=>n.walletConnectLogin),ek=H(Mt,n=>n.ledgerLogin),Og=H(Mt,n=>n.walletLogin),tk=H(Mt,n=>n.isLoginSessionInvalid),Cs=H(Mt,n=>n.tokenLogin),nk=H(Mt,n=>n.logoutRoute);a();var Mg=n=>n.modals,ik=H(Mg,n=>n.txSubmittedModal),Fg=H(Mg,n=>n.notificationModal);a();var Kt=n=>n.networkConfig,Uo=H(Kt,n=>n.chainID),Ug=H(Kt,n=>n.network.walletConnectBridgeAddress),Bg=H(Kt,n=>n.network.walletConnectV2RelayAddress),Wg=H(Kt,n=>n.network.walletConnectV2ProjectId),Gg=H(Kt,n=>n.network.walletConnectV2Options),Ps=H(Kt,n=>n.network.walletConnectDeepLink),Yt=H(Kt,n=>n.network),Rs=H(Yt,n=>n.apiAddress),$g=H(Yt,n=>n.explorerAddress),fu=H(Yt,n=>n.egldLabel);a();var du=n=>n.signedMessageInfo,lk=H(du,n=>n.isSigning),pk=H(du,n=>n.errorMessage),fk=H(du,n=>{let r=Object.keys(n.signedSessions),i=r.length;return n.signedSessions[r[i-1]]});a();var gu=n=>n.toasts,mk=H(gu,n=>n.customToasts),Tk=H(gu,n=>n.transactionToasts),hk=H(gu,n=>n.failTransactionToast);a();Ee();var Hg={errorMessage:iu,successMessage:su,processingMessage:au},BI=n=>n.transactionsInfo,Vg=H(BI,(n,r)=>r,(n,r)=>r!=null&&(n==null?void 0:n[Number(r)])||Hg);a();a();var _t=require("@multiversx/sdk-core");Le();a();function Ds(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(r){return!1}}function gr(n){return Ds(n)?atob(n):n}function Bo(n){var l,h,T;let{data:r}=n,i=Ds(r!=null?r:"")?_t.TransactionPayload.fromEncoded(r):new _t.TransactionPayload(r),c=new _t.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new _t.Address(n.receiver),sender:new _t.Address(n.sender),gasLimit:(l=n.gasLimit.valueOf())!=null?l:Eo,gasPrice:(h=n.gasPrice.valueOf())!=null?h:es,chainID:n.chainID.valueOf(),version:new _t.TransactionVersion((T=n.version)!=null?T:pd)},n.options?{options:new _t.TransactionOptions(n.options)}:{}));return c.applySignature({hex:()=>n.signature||""},new _t.Address(n.sender)),c}a();a();function WI(n,r){let i=new URLSearchParams(n),c=Object.fromEntries(i);return{nextUrlParams:new URLSearchParams(O(O({},c),r)).toString(),params:c}}function qg({callbackUrl:n,urlParams:r={}}){let i=n;if(Object.entries(r).length>0){let{search:c,origin:l,pathname:h}=new URL(n),{nextUrlParams:T}=WI(c,r);i=`${l}${h}?${T}`}return i}a();a();a();var $I=require("@multiversx/sdk-core/out");a();Le();a();var Kg=require("@multiversx/sdk-core");qe();a();var zg=require("@multiversx/sdk-core");function HI(n){try{let r=new zg.Address(n);return Boolean(r.bech32())}catch(r){return!1}}function Xr(n){return(n==null?void 0:n.startsWith("erd"))&&n.length===62&&/^\w+$/.test(n)&&HI(n)}a();a();a();var hu=require("@multiversx/sdk-core"),yu=ae(require("bignumber.js"));Ue();a();a();function mu(n){for(let r=0;r<n.length;r++)if(n.charCodeAt(r)>127)return!1;return!0}function Wo(n){let r=n;try{let i=d.Buffer.from(n,"hex").toString();mu(i)&&i.length>1&&(r=i)}catch(i){}return r}var Tu={tokenId:"",amount:""},VI=n=>n.split("@").map((h,T)=>[2,3].includes(T)?h:Wo(h));function xu(n){if(!n)return Tu;let r=n.startsWith("ESDTTransfer"),i=n.startsWith("ESDTNFTTransfer")&&n.includes("@");if(r){let[,c,l]=n.split("@");try{let h=d.Buffer.from(c,"hex").toString("ascii");if(!h)return Tu;let T=new yu.default("0x"+l.replace("0x","")).toString(10);return{tokenId:h,amount:T}}catch(h){console.error("Error getting token from transaction data",h)}}if(i)try{let[,c,l,h,T]=VI(n);if([c,l,h,T].every(w=>Boolean(w))&&Xr(new hu.Address(T).bech32()))return{tokenId:`${c}-${l}`,amount:new yu.default(h,16).toString(10),collection:c,nonce:l,receiver:new hu.Address(T).bech32()}}catch(c){}return Tu}a();a();a();var Go="accounts";var Su="tokens",vu="blocks";var wu="collections";a();a();a();a();dt();a();a();dt();a();a();a();var XI=ae(require("bignumber.js"));Le();a();var ZI=require("@multiversx/sdk-core"),Au=ae(require("bignumber.js"));Le();a();var KI=ae(require("bignumber.js"));a();Au.default.config({ROUNDING_MODE:Au.default.ROUND_FLOOR});a();a();a();Le();a();a();a();a();Le();a();Le();a();var JI=require("@multiversx/sdk-core");Le();a();var $o=require("@multiversx/sdk-core"),e_=require("@multiversx/sdk-network-providers");Le();a();a();var QI=ae(require("bignumber.js"));Le();a();Le();a();var Iu={isEsdt:!1,isNft:!1,isEgld:!1};function _u(n){let r=n==null?void 0:n.split("-").length;return r===2?te(O({},Iu),{isEsdt:!0}):r===3?te(O({},Iu),{isNft:!0}):te(O({},Iu),{isEgld:!0})}a();a();a();a();Le();a();dt();var n_=["reDelegateRewards","claimRewards","unBond"],r_=["wrapEgld","unwrapEgld"],o_=["unStake"],i_=["unDelegate"];a();a();a();Le();a();var c_=ae(require("bignumber.js"));a();a();a();a();dt();a();var u_=ae(require("bignumber.js"));a();a();function jg({tokenId:n,erdLabel:r}){return Boolean(n&&n!==r)}a();var bu=ae(require("bignumber.js"));qe();a();var em=(n,r)=>{let i=[],c=n.indexOf(r,0);for(;c>=0;)i.push(c),c=n.indexOf(r,c+1);return i};function tm(n){let r=[],i=0;try{if((n==null?void 0:n.startsWith("MultiESDTNFTTransfer"))&&(n==null?void 0:n.includes("@"))){let[,c,l,...h]=n==null?void 0:n.split("@");if(c){let T=new bu.default(l,16).toNumber(),w=0;for(let P=0;P<T;P++){let M={type:"nftTransaction",data:"",receiver:c};for(let D=0;D<3;D++){switch(D){case 0:M.token=Wo(h[w]),M.data=h[w];break;case 1:{let N=h[w]&&h[w].length?h[w]:"";N?M.nonce=N:M.type="esdtTransaction",M.data=`${M.data}@${h[w]}`;break}case 2:M.amount=new bu.default(h[w],16).toString(10),M.data=`${M.data}@${h[w]}`;break;default:break}i=w+1,w++}r[P]=M}let A=r.length!==T,_=r.some(P=>em(P.data,"@").length!==2),L=r.some(P=>P.data.startsWith("@"));if(A||_||L)return[];if(h[i]){let P=h[i];for(let M=i+1;M<h.length;M++)P+="@"+h[M];r[T]={type:"scCall",data:P,receiver:c}}}}}catch(c){return console.error("failed parsing tx",c),r}return r}a();a();a();Ue();function Jr(n){let i=Object.getPrototypeOf(n).toPlainObject!=null?n:Bo(n);return te(O({},i.toPlainObject()),{hash:i.getHash().hex(),status:"pending"})}a();a();a();a();dt();a();a();a();var p_=ae(require("linkifyjs"));a();Le();a();var f_=ae(require("bignumber.js"));a();qe();a();a();Ue();a();Ue();a();a();a();dt();a();dt();a();var d_=ae(require("bignumber.js"));Le();dt();a();dt();a();var rm=require("react");qe();a();a();dt();a();a();var g_=require("@multiversx/sdk-core/out"),m_=ae(require("bignumber.js"));dt();a();qe();a();a();qe();var XN=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];a();var om=require("react");qe();a();var h_=require("react");dt();var rO=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];zr();var Fs=n=>n.transactions,mr=H(Fs,n=>n.signedTransactions),im=H(Fs,n=>n.signTransactionsError),Us=H(Fs,n=>n.signTransactionsCancelMessage),Bs=n=>r=>Object.entries(r).reduce((i,[c,l])=>(n(l.status)&&(i[c]=l),i),{}),Ws=H(mr,Bs(an)),Gs=H(mr,Bs(Un)),$s=H(mr,Bs(Bn)),sm=H(mr,Bs(vs)),Hs=H(Fs,n=>{var r;return(n==null?void 0:n.transactionsToSign)==null?null:te(O({},n.transactionsToSign),{transactions:((r=n==null?void 0:n.transactionsToSign)==null?void 0:r.transactions.map(i=>Bo(i)))||[]})}),am=H(mr,(n,r)=>r,(n,r)=>r!=null?(n==null?void 0:n[r])||{}:{});var Ho=()=>$(Kt);a();var Vs=require("react");function Tr(n,r=[]){let i=(0,Vs.useRef)(!0);(0,Vs.useEffect)(()=>{i.current?i.current=!1:n()},r)}a();Ee();function y_(){let n=$(Fg),r=Ae();return{notification:n,clearNotification:()=>r(Md())}}a();a();a();a();function Vo(){let n=$(Ws),r=Object.entries(n),i=(r==null?void 0:r.length)>0;return{pendingTransactions:n,pendingTransactionsArray:r,hasPendingTransactions:i}}a();a();a();a();var cm=require("@multiversx/sdk-extension-provider"),um=require("@multiversx/sdk-hw-provider"),lm=require("@multiversx/sdk-opera-provider"),pm=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),fm=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Eu=require("@multiversx/sdk-web-wallet-provider");Le();Ue();var x_="/dapp/init",Vn=n=>{switch(n==null?void 0:n.constructor){case Eu.WalletProvider:return"wallet";case pm.WalletConnectProvider:return"walletconnect";case fm.WalletConnectV2Provider:return"walletconnectv2";case um.HWProvider:return"ledger";case cm.ExtensionProvider:return"extension";case lm.OperaProvider:return"opera";case qs:return"";default:return"extra"}},dm=n=>new Eu.WalletProvider(`${n}${x_}`),gm=n=>F(void 0,null,function*(){if(!n.isInitialized())throw new Error("Unable to get version. Provider not initialized");let r=n.hwApp,{contractData:i,version:c}=yield r.getAppConfiguration();return{version:c,dataEnabled:i===fd}}),In=n=>`Unable to perform ${n}, Provider not initialized`,qs=class{init(){return Promise.resolve(!1)}login(r){throw new Error(In(`login with options: ${r}`))}logout(r){throw new Error(In(`logout with options: ${r}`))}getAddress(){throw new Error(In("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(r,i){throw new Error(In(`sendTransaction with transactions: ${r} options: ${i}`))}signTransaction(r,i){throw new Error(In(`signTransaction with transactions: ${r} options: ${i}`))}signTransactions(r,i){throw new Error(In(`signTransactions with transactions: ${r} options: ${i}`))}signMessage(r,i){throw new Error(In(`signTransactions with ${r} and options ${i}`))}sendCustomMessage({method:r,params:i}){throw new Error(In(`sendCustomMessage with method: ${r} params: ${i}`))}sendCustomRequest(r){throw new Error(In(`sendSessionEvent with options: ${r}`))}ping(){return Promise.resolve(!1)}},ku=new qs;var mm=ku;function Zt(n){mm=n}function gt(){return mm||ku}Ee();a();a();var hm=ae(require("axios"));a();a();var Tm=n=>{let r=n!=null?n:Rs(ee.getState());return r.endsWith("/")?r.slice(0,-1):r};function ym(n){return F(this,null,function*(){if(!n)return null;let i=`${Tm()}/${Go}/${n}`;try{let{data:c}=yield hm.default.get(i);return c}catch(c){console.error("error fetching configuration for ",i)}return null})}function Qr(n){return F(this,null,function*(){return yield ym(n)})}a();Ue();a();a();function xm(){let n=gt();return Vn(n)}function mt(n){return xm()===n}function qo(){let{search:n}=window.location,r=ee.getState(),i=gt(),c=$n(r),l=Zr(r),h=Og(r);if(!i)throw"provider not initialized";return mt("ledger")&&l?new Promise(T=>{T(c)}):!mt("")&&!mt("wallet")&&!mt("extra")?i.getAddress():new Promise(T=>{if(h!=null){let w=new URLSearchParams(n),A=Object.fromEntries(w);Xr(A.address)&&T(A.address)}l&&T(c),T("")})}a();function zo(n){let r=ee.getState(),i=Dg(r);return n?i&&!isNaN(i)?Math.max(i,n.nonce):n.nonce:i}var Sm=()=>F(void 0,null,function*(){try{let n=yield qo();try{let r=yield Qr(n);if(r!=null){let i=te(O({},r),{nonce:zo(r)});return ee.dispatch(os(i)),i}}catch(r){console.error("Failed getting account ",r)}}catch(n){console.error("Failed getting address ",n)}return null});function zs(){return F(this,null,function*(){let n=gt();if(n==null)throw"Provider not initialized";if(!n.isInitialized||n.isInitialized())return Sm();try{if(!n.init)throw"Current provider does not have init() function";return(yield n.init())?Sm():void 0}catch(r){console.error("Failed initializing provider ",r)}})}zr();a();a();a();var S_=ae(require("axios"));a();var vm=ae(require("axios"));function wm(n){return F(this,null,function*(){let r=Rs(ee.getState()),i=n.map(l=>l.hash),{data:c}=yield vm.default.get(`${r}/transactions`,{params:{hashes:i.join(","),withScResults:!0}});return n.map(({hash:l,previousStatus:h})=>{let T=c.find(w=>(w==null?void 0:w.txHash)===l);return{hash:l,data:T==null?void 0:T.data,invalidTransaction:T==null,status:T==null?void 0:T.status,results:T==null?void 0:T.results,sender:T==null?void 0:T.sender,receiver:T==null?void 0:T.receiver,previousStatus:h,hasStatusChanged:T&&T.status!==h}})})}a();var w_=ae(require("axios"));a();a();var A_=ae(require("axios"));a();var I_=ae(require("axios"));a();Ee();Ue();a();a();Ee();a();a();var Im=require("@multiversx/sdk-core");a();Qe();qe();a();zr();function _m(n,r){return n.reduce((c,{status:l,hash:h})=>(h!=null&&!r.includes(h)&&an(l)&&c.push({hash:h,previousStatus:l}),c),[])}a();Ee();Ue();function Lm({results:n,hash:r,sessionId:i}){let c=n==null?void 0:n.find(l=>(l==null?void 0:l.returnMessage)!=="");ee.dispatch(Oo({transactionHash:r,sessionId:i,status:"fail",errorMessage:c==null?void 0:c.returnMessage})),ee.dispatch(ws({sessionId:i,status:"fail",errorMessage:c==null?void 0:c.returnMessage}))}a();Ee();qe();function Cu(n){ee.dispatch(ws({sessionId:n,status:"timedOut"}))}var Ks={},Pu=[];function __({serverTransaction:n,sessionId:r,customTransactionInformation:i,shouldRefreshBalance:c}){let{hash:l,status:h,results:T,invalidTransaction:w,hasStatusChanged:A}=n;try{if(Pu.includes(l))return;if(Ks[l]>30){Cu(r);return}if(w||an(h)){Ks[l]=Ks[l]?Ks[l]+1:1;return}A&&(Un(h)&&(i==null?void 0:i.completedTransactionsDelay)!=null?(Pu.push(l),setTimeout(()=>ee.dispatch(Oo({sessionId:r,status:"success",transactionHash:l})),i==null?void 0:i.completedTransactionsDelay)):ee.dispatch(Oo({sessionId:r,status:h,transactionHash:l}))),c||zs(),Bn(h)&&Lm({sessionId:r,hash:l,results:T})}catch(_){console.error(_),Cu(r)}}function bm(h){return F(this,arguments,function*({sessionId:n,transactionBatch:{transactions:r,customTransactionInformation:i},getTransactionsByHash:c=wm,shouldRefreshBalance:l}){try{if(r==null)return;let T=_m(r,Pu),w=yield c(T);for(let A of w)__({serverTransaction:A,sessionId:n,customTransactionInformation:i,shouldRefreshBalance:l})}catch(T){console.error(T)}})}function L_(){let{pendingTransactionsArray:n}=Vo();function r(i){return F(this,null,function*(){let c=n.filter(([l,h])=>l!=null&&an(h.status));if(c.length>0)for(let[l,h]of c)yield bm(O({sessionId:l,transactionBatch:h},i));i.shouldRefreshBalance&&zs()})}return r}a();function b_(){var A,_,L;let n=$(sm),r=$($s),i=$(Gs),c=$(Ws),l=((A=Object.keys(c))==null?void 0:A.length)>0,h=!l&&((_=Object.keys(n))==null?void 0:_.length)>0,T=!l&&!h&&((L=Object.keys(r))==null?void 0:L.length)>0,w=!l&&!h&&!T&&Object.keys(i).length>0;return{pending:l,timedOut:h,fail:T,success:w}}a();function E_(){let n=$($s),r=Object.entries(n),i=(r==null?void 0:r.length)>0;return{failedTransactions:n,failedTransactionsArray:r,hasFailedTransactions:i}}a();qe();var k_=()=>{var c,l;let{hasPendingTransactions:n,pendingTransactions:r}=Vo();if(!n)return"";let i=Object.keys(r).sort().reverse();for(let h of i){let w=(l=(c=r[h].transactions)==null?void 0:c.filter(A=>A.status==="pending"))!=null?l:[];if(w.length>0)return w[w.length-1].hash}return""};a();var C_=()=>$(im);a();function Ru(){let n=$(mr),r=Object.entries(n),i=(r==null?void 0:r.length)>0;return{signedTransactions:n,signedTransactionsArray:r,hasSignedTransactions:i}}a();function P_(){let n=$(Gs),r=Object.entries(n),i=(r==null?void 0:r.length)>0;return{successfulTransactions:n,successfulTransactionsArray:r,hasSuccessfulTransactions:i}}a();var Em=ae(require("axios")),km=ae(require("swr"));var R_=n=>Em.default.get(n).then(r=>r.data);function D_({tokenId:n}){var M;let{network:r}=Ho(),{isEsdt:i,isNft:c}=_u(n),l=i?Su:wu,h=n;if(c){let[D,N]=n.split("-");h=`${D}-${N}`}let{data:T,error:w}=(0,km.default)(Boolean(h)?`${r.apiAddress}/${l}/${h}`:null,R_);if(!h)return{tokenDecimals:Number(r.decimals),tokenLabel:"",tokenAvatar:""};let A=T?T==null?void 0:T.decimals:Number(r.decimals),_=T?T==null?void 0:T.name:"",L=T?`${(M=T==null?void 0:T.assets)==null?void 0:M.svgUrl}`:"",P=T==null?void 0:T.assets;return{tokenDecimals:A,tokenLabel:_,tokenAvatar:L,assets:P,error:w}}a();function N_(n){return $(r=>Vg(r,n))}a();var Ko=require("react");var Cm={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Du({transactions:n}){let[r,i]=(0,Ko.useState)({}),[c,l]=(0,Ko.useState)([]);function h(A,_){i(L=>te(O({},L),{[A]:_}))}function T(A,_){return r==null?Cm:A in r?r[A]:_!=null&&String(_)in r?r[_]:Cm}function w(){if(n&&n.length>0){let A=[];n.forEach((_,L)=>{let P=_.getData().toString(),M=tm(P);if(M.length>0)M.forEach((D,N)=>{let G={transaction:_,multiTxData:D.data,transactionIndex:N};h(D.data,{tokenId:D.token?D.token:"",amount:D.amount?D.amount:"",type:D.type,nonce:D.nonce?D.nonce:"",multiTxData:D.data,receiver:D.receiver}),A.push(G)});else{let{tokenId:D,amount:N}=xu(_.getData().toString());D&&h(_.getData().toString(),{tokenId:D,amount:N,receiver:_.getReceiver().bech32()}),A.push({transaction:_,transactionIndex:L})}}),l(A)}}return(0,Ko.useEffect)(()=>{w()},[n==null?void 0:n.length]),{parsedTransactionsByDataField:r,getTxInfoByDataField:T,allTransactions:c}}a();var Pm=require("react"),Rm=require("@multiversx/sdk-web-wallet-provider"),Dm=ae(require("qs"));Le();Ee();Ue();function Yo(n){let{search:r}=window.location,i=$(Yt),c=Ae();(0,Pm.useEffect)(()=>{if(r!=null){let l=Dm.default.parse(r.replace("?",""));if(l&&ko in l){let h=String(l[ko]),T=new Rm.WalletProvider(`${i.walletAddress}${dd}`).getTransactionsFromWalletUrl();if(l.status==="cancelled"){c(cn({sessionId:h,status:"cancelled"})),n(),history.pushState({},document==null?void 0:document.title,"?");return}T.length>0&&(c(cn({sessionId:h,status:"signed",transactions:T.map(w=>Jr(w))})),history.pushState({},document==null?void 0:document.title,"?"))}}},[r])}a();var hr=require("react");tu();var Ys={};function Nu({isLedger:n=!1,transactionsToSign:r,egldLabel:i,address:c,onCancel:l,onSignTransaction:h,onTransactionsSignError:T,onTransactionsSignSuccess:w,onGetScamAddressData:A}){var Tt,ye,we;let[_,L]=(0,hr.useState)(0),[P,M]=(0,hr.useState)(),[D,N]=(0,hr.useState)(null),[G,Z]=(0,hr.useState)(!1),{getTxInfoByDataField:z,allTransactions:B}=Du({transactions:r}),V=_===B.length-1;(0,hr.useEffect)(()=>{ne()},[_,B]);function ne(){return F(this,null,function*(){var Xt;let he=B[_];if(he==null)return;let{transaction:ie,multiTxData:de}=he,at=ie.getData().toString(),Ie=z(ie.getData().toString(),de),{tokenId:j}=Ie,K=ie.getReceiver().toString(),ue=c!==K,Ye=K in Ys;if(ue&&!Ye&&A!=null){let Kn=yield A(K);Ys=O(O({},Ys),Kn!=null&&Kn.scamInfo?{[K]:Kn.scamInfo}:{})}let Ut=Boolean(j&&jg({tokenId:j,erdLabel:i}));N({transaction:ie,receiverScamInfo:((Xt=Ys[K])==null?void 0:Xt.info)||null,transactionTokenInfo:Ie,isTokenTransaction:Ut,dataField:at})})}function pe(){L(0),M(void 0),Z(!1)}function Re(){return F(this,null,function*(){try{if(D==null)return;Z(n);let he=yield h(D.transaction),ie={[_]:he},de=P?O(O({},P),ie):ie;M(de),V?de&&(w(Object.values(de)),pe()):(L(at=>at+1),Z(!1))}catch(he){console.error(he,"sign error");let{message:ie}=he,de=n?ur(he).errorMessage:null;pe(),T(de!=null?de:ie)}})}function ce(){try{if(D==null)return;D.transaction.getSignature().hex()?V||L(ie=>ie+1):Re()}catch(he){Re()}}let et=_===0;function tt(){et?l==null||l():L(he=>he-1)}let nt=Boolean(((Tt=D==null?void 0:D.transactionTokenInfo)==null?void 0:Tt.type)&&((ye=D==null?void 0:D.transactionTokenInfo)==null?void 0:ye.multiTxData)&&!(D!=null&&D.dataField.endsWith((we=D==null?void 0:D.transactionTokenInfo)==null?void 0:we.multiTxData)));function Ce(){nt?L(he=>he+1):ce()}function Be(){L(he=>{let ie=he+1;return ie>(B==null?void 0:B.length)?he:ie})}function st(){L(he=>{let ie=he-1;return ie<0?he:ie})}return{allTransactions:B,onSignTransaction:Ce,onNext:Be,onPrev:st,waitingForDevice:G,onAbort:tt,isLastTransaction:V,isFirstTransaction:_===0,hasMultipleTransactions:B.length>1,shouldContinueWithoutSigning:nt,currentStep:_,signedTransactions:P,currentTransaction:D}}a();var Xo=require("react"),Bu=require("@multiversx/sdk-extension-provider");Le();a();var _n=()=>{let n=gt(),r=Vn(n);return{provider:n,providerType:r}};Ee();Ue();a();a();function Zs(n){let r=Hs(ee.getState()),i=Object.keys(n).length===(r==null?void 0:r.transactions.length);return n&&(n&&i)}a();var O_=(n,r)=>r.map((i,c)=>(i.setNonce(n+c),i)),Xs=()=>{let n=$($n);return r=>F(void 0,null,function*(){let i=yield Qr(n),c=zo(i);return O_(c,r)})};a();var eo=require("react"),Uu=require("@multiversx/sdk-extension-provider");Le();a();a();var Ou=()=>$(Rg);a();var qn=()=>$(Yr);a();a();a();a();a();var jr=ae(require("react"));var M_=(0,jr.createContext)({}),CB=ee.getState();function Js(){let n=(0,jr.useContext)(M_);if(n===void 0||Object.values(n).length===0)throw new Error("useAxiosInterceptorContext must be used within an AxiosInterceptorContextProvider");return n}a();var Nm=ae(require("react"));a();var Mu=ae(require("react")),F_=ae(require("axios"));var Fu=()=>{try{let{loginInfo:n,isLoggedIn:r}=Js();return te(O({},n),{isLoggedIn:r})}catch(n){let r=$(Mt),i=$(Zr);return te(O({},r),{isLoggedIn:i})}};a();var U_=()=>{let{isLoggedIn:n}=Fu();return n};a();var B_=()=>$(ks);Ee();var Zo=()=>{let n=Ae(),{provider:r}=_n(),{nonce:i}=qn(),[c,l]=(0,eo.useState)(null),[h,T]=(0,eo.useState)(),[w,A]=(0,eo.useState)([]),_=Xs(),L=$(Hs),P=$(Us),M=()=>F(void 0,null,function*(){var B;let Z=Boolean(L==null?void 0:L.transactions),z=(B=L==null?void 0:L.transactions)!=null?B:[];if(Z){let V=yield _(z);A(V)}T(Z)});(0,eo.useEffect)(()=>{M()},[L,i]);let D=()=>{l(null),n(fr(null))},N=Z=>{D(),G(Z)};Yo(N);function G(Z){var B,V;let z=r instanceof Uu.ExtensionProvider;n(Wn()),n(Vr(Z)),n(Do(Ur)),z&&(D(),(V=(B=Uu.ExtensionProvider.getInstance())==null?void 0:B.cancelAction)==null||V.call(B))}return{error:c,canceledTransactionsMessage:P,clearTransactionStatusMessage:D,onAbort:N,setError:l,hasTransactions:h,transactionsToSign:L&&te(O({},L),{transactions:w})}};var W_=()=>{let n=Ae(),r=(0,Xo.useRef)("/"),{provider:i}=_n(),c=Vn(i),l=(0,Xo.useRef)(!1),h=Xs(),T=$(Us),{transactionsToSign:w,error:A,setError:_,hasTransactions:L,onAbort:P,clearTransactionStatusMessage:M}=Zo();Yo(P);function D(B){var ne,pe;let V=i instanceof Bu.ExtensionProvider;n(Wn()),n(Vr(B)),n(Do(Ur)),l.current=!1,V&&(M(),(pe=(ne=Bu.ExtensionProvider.getInstance())==null?void 0:ne.cancelAction)==null||pe.call(ne))}let N=(B,V)=>{c==="walletconnectv2"&&(B=ar);let pe=B.includes(ar);if(D(V),pe){n(fr(ar));return}_(B)},G=(B,V,ne="")=>{let pe={[ko]:V},Re=`${window.location.origin}${ne}`,ce=qg({callbackUrl:Re,urlParams:pe});i.signTransactions(B,{callbackUrl:encodeURIComponent(ce)})},Z=()=>F(void 0,null,function*(){var nt;if(l.current||!w)return;let{sessionId:B,transactions:V,callbackRoute:ne,customTransactionInformation:pe}=w,{redirectAfterSign:Re}=pe,ce=ne||window.location.pathname,et=window.location.pathname.includes(ce),tt=Re&&!et;try{if(!(yield(nt=i==null?void 0:i.init)==null?void 0:nt.call(i)))return}catch(Ce){let Be=(Ce==null?void 0:Ce.message)||Ce||Xf;console.error(Be),N(Be);return}try{l.current=!0;let Ce=yield i.signTransactions(V);if(l.current=!1,!Zs(Ce))return;let st=Object.values(Ce).map(ye=>Jr(ye)),Tt={sessionId:B,transactions:st,status:"signed"};tt&&(Tt.redirectRoute=ce),n(cn(Tt))}catch(Ce){l.current=!1;let Be=(Ce==null?void 0:Ce.message)||Ce||Zf;console.error(Be),n(cn({sessionId:B,status:"cancelled"})),N(Be.includes("cancel")?ar:Be,B)}}),z=()=>F(void 0,null,function*(){if(!w)return;M();let{sessionId:B,transactions:V,callbackRoute:ne}=w;if(!i){console.error(Jf);return}r.current=ne||window.location.pathname;try{let pe=c==="wallet",Re=yield h(V);if(pe)return G(Re,B,ne);Z()}catch(pe){let ce=(pe==null?void 0:pe.message)||Yf;console.error(ce),N(ce,B),n(cn({sessionId:B,status:"cancelled"})),console.error(ce,pe)}});return(0,Xo.useEffect)(()=>{L?z():l.current=!1},[w,L]),{error:A,canceledTransactionsMessage:T,onAbort:P,hasTransactions:L,callbackRoute:r.current,sessionId:w==null?void 0:w.sessionId,transactions:w==null?void 0:w.transactions}};a();a();var Om=ae(require("axios"));function Mm(n){return F(this,null,function*(){let{network:{apiAddress:r,apiTimeout:i}}=Kt(ee.getState()),{data:c}=yield Om.default.get(`/${Go}/${n}`,{baseURL:r,timeout:Number(i)});return c})}Ee();qe();Ro();a();cr();Ee();function Fm(){let n=Ae();return r=>{n(Wn()),n(Vr(r)),n(fr(ar))}}function Wu({onCancel:n,verifyReceiverScam:r=!0}){let{transactionsToSign:i,hasTransactions:c}=Zo(),l=$(fu),{account:{address:h}}=Ou(),{provider:T}=_n(),w=Ae(),A=Fm(),{transactions:_,sessionId:L,callbackRoute:P,customTransactionInformation:M}=i||{};function D(V){L&&w(cn({sessionId:L,status:"cancelled"})),w(rg(V))}let N=P!=null&&window.location.pathname.includes(P);function G(V){!Zs(V)||L&&(w(cn({sessionId:L,status:"signed",transactions:V.map(pe=>Jr(pe))})),P!=null&&(M==null?void 0:M.redirectAfterSign)&&!N&&Hr(P))}function Z(){n(),A(L)}function z(V){return F(this,null,function*(){return yield T.signTransaction(V)})}let B=Nu({address:h,egldLabel:l,transactionsToSign:c?_:[],onGetScamAddressData:r?Mm:null,isLedger:mt("ledger"),onCancel:Z,onSignTransaction:z,onTransactionsSignError:D,onTransactionsSignSuccess:G});return te(O({},B),{callbackRoute:P})}a();function G_(n){return Wu(n)}a();var ei=require("react");a();a();a();Ee();function Um(){ee.dispatch(ng())}function Bm(){ee.dispatch(Wn())}a();a();var V_=ae(require("bignumber.js"));Le();Ee();qe();a();var H_=ae(require("bignumber.js"));Le();a();var q_=require("@multiversx/sdk-core"),z_=ae(require("bignumber.js"));Le();a();a();a();a();Le();a();var Gm=ae(Wm());var Qs=n=>{if(!n||!(0,Gm.isString)(n))return null;let r=n.split(".");if(r.length!==4)return console.error("Invalid loginToken. You may be trying to decode a nativeAuthToken. Try using decodeNativeAuthToken method instead"),null;try{let[i,c,l,h]=r,T=JSON.parse(gr(h)),w=gr(i);return{ttl:Number(l),extraInfo:T,origin:w,blockHash:c}}catch(i){return console.error(`Error trying to decode ${n}:`,i),null}};a();function K_(n){return Object.prototype.toString.call(n)==="[object String]"}var $m=n=>{var i;if(!n||!K_(n))return null;let r=n.split(".");if(r.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[c,l,h]=r,T=gr(c),w=gr(l),A=Qs(w);if(!A)return{address:T,body:w,signature:h,blockHash:"",origin:"",ttl:0};let _=te(O({},A),{address:T,body:w,signature:h});return(i=A.extraInfo)!=null&&i.timestamp||delete _.extraInfo,_}catch(c){return null}};a();var Y_=n=>n.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),no=n=>Y_(d.Buffer.from(n,"utf8").toString("base64"));a();a();a();var Z_=ae(require("bignumber.js"));a();var qm=ae(require("axios"));a();a();a();function Hm(n){return F(this,null,function*(){return yield new Promise(r=>{setTimeout(()=>r(),n)})})}a();var Vm=(n,r,i,c=0)=>F(void 0,null,function*(){try{return yield n(...i)}catch(l){return c<r.retries?((r==null?void 0:r.delay)!=null&&(yield Hm(r.delay)),yield Vm(n,r,i,c+1)):null}}),js=(n,r={retries:5,delay:500})=>(...i)=>F(void 0,null,function*(){return yield Vm(n,r,i)});var X_=4,J_=3e4,ea={current:null},yr={current:null},Q_=js((n,r)=>F(void 0,null,function*(){let{data:i}=yield qm.default.get(`${n}/${vu}?from=${X_}&size=1&fields=hash,timestamp${r?"&shard="+r:""}`),[c]=i;return c}));function zm(n,r){return F(this,null,function*(){if(n==null)throw new Error("missing api url");let i=Date.now();if(ea.current!=null&&i<ea.current.timestamp*1e3+J_)return ea.current;if(yr.current!=null)return yield yr.current;yr.current=Q_(n,r);try{let c=yield yr.current;if(c==null)throw yr.current=null,new Error("could not get block hash");return ea.current={hash:c.hash,timestamp:c.timestamp},yr.current=null,c}catch(c){return yr.current=null,null}})}a();a();ns();var Km=n=>{let r=$m(n);if(!r)return{isExpired:!1};let i=Wr(),{ttl:c,extraInfo:l}=r,h=l==null?void 0:l.timestamp;if(!h)return{isExpired:!1};let T=h+c,w=i>T,A=T-i;return{isExpired:w,expiresAt:T,secondsUntilExpires:A}};a();var Ym,Qo={origin:typeof window!="undefined"?(Ym=window==null?void 0:window.location)==null?void 0:Ym.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},jo=n=>{var i,c,l,h,T;return n===!0?Qo:{origin:(i=n==null?void 0:n.origin)!=null?i:Qo.origin,blockHashShard:(c=n==null?void 0:n.blockHashShard)!=null?c:null,expirySeconds:(l=n==null?void 0:n.expirySeconds)!=null?l:Qo.expirySeconds,apiAddress:(h=n==null?void 0:n.apiAddress)!=null?h:Qo.apiAddress,tokenExpirationToastWarningSeconds:(T=n==null?void 0:n.tokenExpirationToastWarningSeconds)!=null?T:Qo.tokenExpirationToastWarningSeconds}};a();var Zm=({address:n,token:r,signature:i})=>{let c=no(n),l=no(r);return`${c}.${l}.${i}`};var Xm=n=>{let{origin:r,apiAddress:i,expirySeconds:c,blockHashShard:l}=jo(n);return{getNativeAuthConfig:jo,initialize:(...A)=>F(void 0,[...A],function*(T={},w){if(!i||!r)return"";let _=w!=null?w:yield zm(i,l),{hash:L,timestamp:P}=_,M=no(JSON.stringify(O(O({},T),P?{timestamp:P}:{})));return`${no(r)}.${L}.${c}.${M}`}),getToken:Zm,getTokenExpiration:Km}};Ue();zr();function j_({transactionId:n,onSuccess:r,onFail:i,onCancelled:c,onTimedOut:l}){var ne;let{signedTransactionsArray:h}=Ru(),T=mt("wallet"),[w]=h.length>0?h[h.length-1]:[],A=(ne=n!=null?n:w)!=null?ne:null,_=T?A:n,L=$(pe=>am(pe,_)),{status:P,transactions:M,errorMessage:D}=L,N=an(P),G=Bn(P),Z=vs(P),z=Un(P),B=P==="cancelled";function V(){T&&(Um(),Bm())}return(0,ei.useEffect)(()=>{z&&r&&r(_)},[z]),(0,ei.useEffect)(()=>{G&&i&&(i(_,D),V())},[G]),(0,ei.useEffect)(()=>{B&&c&&(c(_),V())},[B]),(0,ei.useEffect)(()=>{Z&&(l?l(_):i==null||i(_,"timeout"))},[Z]),_==null?{}:L==null?{errorMessage:"No transaction to track"}:{isPending:N,isSuccessful:z,isFailed:G,isCancelled:B,errorMessage:D,status:P,transactions:M}}a();var ta=require("react"),eL=(n,r)=>{let[i,c]=(0,ta.useState)(n);return(0,ta.useEffect)(()=>{let h=setTimeout(()=>c(n),r);return()=>clearTimeout(h)},[n]),i};a();a();var Gu=require("react"),Qm=require("@multiversx/sdk-extension-provider");cr();Qe();Ue();a();function je(){return Zr(ee.getState())}lr();a();var Jm=require("react"),na=require("@multiversx/sdk-core");Ee();var tL=(n,r)=>{var i;return r?r===!0?n:(i=r.apiAddress)!=null?i:n:null},Ft=n=>{let r=$(Yt),i=$(Cs),c=(0,Jm.useRef)(i==null?void 0:i.loginToken),l=tL(r.apiAddress,n),h=jo(O(O({},n===!0?{}:n),l?{apiAddress:l}:{})),T=Boolean(n),w=Xm(h),{address:A}=qn(),_=Ae(),L=N=>{c.current=N,_(cs(O({loginToken:N},l?{nativeAuthConfig:h}:{})))},P=()=>F(void 0,null,function*(){try{return yield w.initialize()}catch(N){console.error("Unable to get block. Login failed.",N);return}}),M=({address:N,signature:G})=>{let Z=c.current;if(!Z)throw"Token not found. Call `setLoginToken` first.";if(!T){_(cs({loginToken:Z,signature:G}));return}let z=w.getToken({address:N,token:Z,signature:G});_(cs(O({loginToken:Z,signature:G,nativeAuthToken:z},l?{nativeAuthConfig:h}:{})))};return{configuration:h,setLoginToken:L,getNativeAuthLoginToken:P,setTokenLoginInfo:M,refreshNativeAuthTokenLogin:G=>F(void 0,[G],function*({signMessageCallback:N}){let Z=yield P();if(c.current=Z,!Z)return;let z=new na.SignableMessage({address:new na.Address(A),message:d.Buffer.from(Z)}),B=yield N(z,{});M({address:A,signature:B.toJSON().signature})})}};var jm=({callbackRoute:n,token:r,nativeAuth:i,onLoginRedirect:c})=>{let[l,h]=(0,Gu.useState)(""),[T,w]=(0,Gu.useState)(!1),A=i!=null,_=Ft(i),L=r,P=Ae(),M=je();function D(){return F(this,null,function*(){if(M)throw new Error(Fn);w(!0);let G=Qm.ExtensionProvider.getInstance();try{if(!(yield G.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let z=encodeURIComponent(`${window.location.origin}${n!=null?n:window.location.pathname}`);if(A&&!L&&(L=yield _.getNativeAuthLoginToken(),!L)){console.warn("Fetching block failed. Login cancelled.");return}L&&_.setLoginToken(L);let B=O({callbackUrl:z},L&&{token:L});yield G.login(B),Zt(G);let{signature:V,address:ne}=G.account;if(!ne){w(!1),console.warn("Login cancelled.");return}V&&L&&_.setTokenLoginInfo({signature:V,address:ne}),P(Je({address:ne,loginMethod:"extension"})),zt({callbackRoute:n,onLoginRedirect:c,options:{signature:V,address:ne}})}catch(Z){console.error("error loging in",Z),h("error logging in"+Z.message)}finally{w(!1)}})}let N=Boolean(l);return[D,{loginFailed:N,error:l,isLoading:T&&!N,isLoggedIn:M&&!N}]};a();var $u=require("react"),eT=require("@multiversx/sdk-opera-provider");cr();Qe();Ue();lr();var tT=({callbackRoute:n,token:r,nativeAuth:i,onLoginRedirect:c})=>{let[l,h]=(0,$u.useState)(""),[T,w]=(0,$u.useState)(!1),A=i!=null,_=Ft(i),L=r,P=Ae(),M=je();function D(){return F(this,null,function*(){if(M)throw new Error(Fn);w(!0);let G=eT.OperaProvider.getInstance();try{if(!(yield G.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let z=encodeURIComponent(`${window.location.origin}${n!=null?n:window.location.pathname}`);if(A&&!L&&(L=yield _.getNativeAuthLoginToken(),!L)){console.warn("Fetching block failed. Login cancelled.");return}L&&_.setLoginToken(L);let B=O({callbackUrl:z},L&&{token:L});yield G.login(B),Zt(G);let{signature:V,address:ne}=G.account;if(!ne){w(!1),console.warn("Login cancelled.");return}V&&L&&_.setTokenLoginInfo({signature:V,address:ne}),P(Je({address:ne,loginMethod:"opera"})),zt({callbackRoute:n,onLoginRedirect:c,options:{signature:V,address:ne}})}catch(Z){console.error("error loging in",Z),h("error logging in"+Z.message)}finally{w(!1)}})}let N=Boolean(l);return[D,{loginFailed:N,error:l,isLoading:T&&!N,isLoggedIn:M&&!N}]};a();var Vu=require("react");cr();Ee();a();a();a();Vc();a();a();var nL=ae(require("platform"));a();Qe();qe();Ro();$r();Gr();var rL=n=>{let r=sn.local.getItem(qt.logoutEvent),{data:i}=r?JSON.parse(r):{data:n};n===i&&(sn.local.setItem({key:qt.logoutEvent,data:n,expires:0}),sn.local.removeItem(qt.logoutEvent))};function ra(n,r,i=!0){return F(this,null,function*(){let c=gt(),l=Vn(c),h=je(),T=l==="wallet";if(i&&(c==null?void 0:c.relogin)!=null)return yield c.relogin();if(!h||!c){Hu(n,r,!1);return}try{let w=yield qo();rL(w)}catch(w){Hu(n,r,!1),console.error("error fetching logout address",w)}T&&Ud(),ee.dispatch(ze());try{let A=T&&!n?window.location.origin:n;T?setTimeout(()=>{c.logout({callbackUrl:A})}):(yield c.logout({callbackUrl:A}),Hu(n,r,T))}catch(w){console.error("error logging out",w)}})}function Hu(n,r,i){n&&!i&&(typeof r=="function"?r(n):Hr(n))}a();a();a();a();a();a();Ro();$r();a();a();a();Ee();a();a();var nT=ae(require("axios"));function oa(n){return F(this,null,function*(){try{let{data:r}=yield nT.default.get(`${n}/websocket/config`);return`wss://${r.url}`}catch(r){throw console.error(r),new Error("Can not get websocket url")}})}a();var rT=(n,r=["address"])=>{let i=new URL(n),c=new URLSearchParams(i.search);r.forEach(h=>c.delete(h));let l=Array.from(c.values()).length>0?"?":"";return`${i.origin}${i.pathname}${l}${c.toString()}`};var oT=({callbackRoute:n,token:r,nativeAuth:i,redirectDelayMilliseconds:c=100})=>{let[l,h]=(0,Vu.useState)(""),[T,w]=(0,Vu.useState)(!1),A=$(Yt),_=Ae(),L=je(),P=Boolean(i),M=Ft(i),D=r;function N(){return F(this,null,function*(){if(L)throw new Error(Fn);try{w(!0);let Z=dm(A.walletAddress),z=new Date,B=z.setMinutes(z.getMinutes()+3)/1e3,V={data:{},expires:B};if(P&&!D&&(D=yield M.getNativeAuthLoginToken(),!D)){console.warn("Login cancelled.");return}D&&M.setLoginToken(D);let ne=`${window.location.origin}${n}`;new URLSearchParams(document.location.search).get("address")||_(Pd(V));let ce=rT(ne),et=encodeURIComponent(ce),tt=te(O({callbackUrl:et},D&&{token:D}),{redirectDelayMilliseconds:c});yield Z.login(tt)}catch(Z){console.error(Z),h("error logging in"+Z.message)}finally{w(!1)}})}let G=Boolean(l);return[N,{error:l,loginFailed:G,isLoading:T&&!G,isLoggedIn:L&&!G}]};a();var ti=require("react"),ia=require("@multiversx/sdk-hw-provider");cr();Qe();Ee();Ue();lr();a();var xr=require("react"),oL=10,iT=()=>{let[n,r]=(0,xr.useState)(""),[i,c]=(0,xr.useState)(!1),[l,h]=(0,xr.useState)(0),[T,w]=(0,xr.useState)([]),[A,_]=(0,xr.useState)(null),[L,P]=(0,xr.useState)(!1);return{accounts:T,setAccounts:w,isLoading:i,setIsLoading:c,setShowAddressList:P,showAddressList:L,startIndex:l,selectedAddress:A,onGoToPrevPage:()=>{_(null),h(G=>G===0?0:G-1)},onGoToNextPage:()=>{_(null),h(G=>G+1)},onSelectAddress:G=>{_(G)},error:n,setError:r,defaultAddressesPerPage:oL}};var ro="Check if the MultiversX App is open on Ledger";function sT({callbackRoute:n,token:r,addressesPerPage:i,nativeAuth:c,onLoginRedirect:l}){let h=$(Ng),T=Ae(),w=je(),A=c!=null,_=Ft(c),L=r,{accounts:P,setAccounts:M,isLoading:D,setIsLoading:N,setShowAddressList:G,showAddressList:Z,startIndex:z,selectedAddress:B,onGoToPrevPage:V,onGoToNextPage:ne,onSelectAddress:pe,error:Re,setError:ce,defaultAddressesPerPage:et}=iT(),tt=i!=null?i:et,nt=new ia.HWProvider,[Ce,Be]=(0,ti.useState)(""),[st,Tt]=(0,ti.useState)(!1);function ye({provider:j,address:K,index:ue,signature:Ye}){Zt(j),T(Cd({index:ue,loginType:"ledger"})),Ye&&_.setTokenLoginInfo({signature:Ye,address:K}),T(Je({address:K,loginMethod:"ledger"})),zt({callbackRoute:n,onLoginRedirect:l,options:{address:K,signature:Ye}})}let we=(j,K="")=>{let{errorMessage:ue}=ur(j);ue&&ce(`${ue}.${K}`),N(!1),console.warn(j),T(Qc(null))};function he(j){return F(this,null,function*(){if(B==null)return!1;let{index:K}=B;if(A&&!L&&(L=yield _.getNativeAuthLoginToken(),!L)){console.warn("Fetching block failed. Login cancelled.");return}if(L){_.setLoginToken(L);try{let ue=yield j.tokenLogin({token:d.Buffer.from(`${L}{}`),addressIndex:K});ye({address:ue.address,provider:j,index:K,signature:ue.signature.hex()})}catch(ue){we(ue,". Update MultiversX App to continue.")}}else try{let ue=yield j.login({addressIndex:K});ye({address:ue,provider:j,index:K})}catch(ue){return we(ue),!1}return!0})}function ie(){return F(this,null,function*(){try{if(N(!0),B==null)return!1;T(h?_d(B):Qc(te(O({},B),{version:Ce,hasContractDataEnabled:st})));let j=new ia.HWProvider;if(!(yield j.init()))return ce(ro),console.warn(ro),!1;N(!1),yield he(j)}catch(j){let{errorMessage:K}=ur(j);K&&ce(K),console.warn(ro,j)}finally{N(!1)}return G(!1),!0})}function de(){return F(this,null,function*(){try{if(N(!0),!(yield nt.init())){ce(ro),console.warn(ro),N(!1);return}let K=yield nt.getAccounts(z,tt),ue=yield gm(nt);Be(ue.version),Tt(ue.dataEnabled),M(K),N(!1)}catch(j){let{errorMessage:K,defaultErrorMessage:ue}=ur(j);ce(K!=null?K:ue),console.error("error",j),N(!1)}})}function at(){return F(this,null,function*(){if(w)throw new Error(Fn);ce("");try{if(N(!0),h!=null){let j=new ia.HWProvider;if(!(yield j.init())||!B){console.warn(ro);return}let ue=yield j.login({addressIndex:B.index.valueOf()});if(Zt(j),!ue){N(!1),console.warn("Login cancelled.");return}T(Je({address:ue,loginMethod:"ledger"})),zt({callbackRoute:n,onLoginRedirect:l})}else(P==null?void 0:P.length)>0||(yield de()),G(!0)}catch(j){console.error("error ",j);let{defaultErrorMessage:K}=ur();ce(K)}finally{N(!1)}})}(0,ti.useEffect)(()=>{de()},[z]);let Ie=Boolean(Re);return[at,{loginFailed:Ie,isLoggedIn:w&&!Ie,error:Re,isLoading:D&&!Ie},{accounts:P,showAddressList:Z,startIndex:z,selectedAddress:B,version:Ce,contractDataEnabled:st,onGoToPrevPage:V,onGoToNextPage:ne,onSelectAddress:pe,onConfirmSelectedAddress:ie}]}a();var zn=require("react"),aT=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Qe();Ee();Ue();lr();var cT=({logoutRoute:n,callbackRoute:r,nativeAuth:i,token:c,onLoginRedirect:l})=>{let h=Ae(),T=15e3,w=i!=null,A=Ft(i),_=c,[L,P]=(0,zn.useState)(""),[M,D]=(0,zn.useState)(""),{provider:N}=_n(),G=$(Ug),Z=$(Ps),z=(0,zn.useRef)(N),B=(0,zn.useRef)(!0),V,ne=Boolean(M),pe=!ne,Re=ne?`${Z}?wallet-connect=${encodeURIComponent(M)}`:"";(0,zn.useEffect)(()=>{tt();let ye=setInterval(()=>{tt()},T);return()=>clearInterval(ye)},[N]),Tr(()=>{!c||Be()},[c]),Tr(()=>{z.current=N},[N]);let ce=()=>{ra(n)},et=()=>{B.current=!1};function tt(){return F(this,null,function*(){var he,ie;if(N==null||!mt("walletconnect")||!Boolean((ie=(he=z.current)==null?void 0:he.walletConnector)==null?void 0:ie.connected))return;let we={method:"heartbeat",params:{}};try{yield z.current.sendCustomMessage(we)}catch(de){console.error("Connection lost",de),ce()}})}function nt(){return F(this,null,function*(){var ye;try{let we=z.current;if(je()||we==null||!mt("walletconnect"))return;if(!B.current){try{yield(ye=z.current)==null?void 0:ye.logout()}catch(j){console.warn("Unable to logout")}return}let ie=yield we.getAddress();if(!ie){console.warn("Login cancelled.");return}let de=yield we.getSignature(),at={address:ie,loginMethod:"walletconnect"},Ie={logoutRoute:n,loginType:"walletConnect",callbackRoute:r!=null?r:window.location.href};h(as(Ie)),de&&A.setTokenLoginInfo({signature:de,address:ie}),h(Je(at)),we.walletConnector.on("heartbeat",()=>{clearInterval(V),V=setInterval(()=>{console.log("xPortal Mobile Wallet Connection Lost"),ce(),clearInterval(V)},15e4)}),zt({callbackRoute:r,onLoginRedirect:l,options:{address:ie,signature:de}})}catch(we){P("Invalid address"),console.error(we)}})}function Ce(ye=!0){return F(this,null,function*(){var de,at;let we=ye&&!M;if(!G||((at=(de=z==null?void 0:z.current)==null?void 0:de.isInitialized)==null?void 0:at.call(de))&&!we)return;let he={onClientLogin:nt,onClientLogout:ce},ie=new aT.WalletConnectProvider(G,he);yield ie.init(),B.current=!0,Zt(ie),z.current=ie,ye&&Be()})}function Be(){return F(this,null,function*(){var ie;if(!G)return;let ye=yield(ie=z.current)==null?void 0:ie.login();if(!Boolean(ye))return;if(w&&!_&&(_=yield A.getNativeAuthLoginToken(),!_)){console.warn("Fetching block failed. Login cancelled.");return}if(!_){D(ye);return}A.setLoginToken(_);let he=`${ye}&token=${_}`;D(he)})}let st=Boolean(L),Tt=je();return[Ce,{error:L,loginFailed:st,isLoading:pe&&!st,isLoggedIn:Tt&&!st},{uriDeepLink:Re,walletConnectUri:M,cancelLogin:et}]};a();var un=require("react"),uT=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Qe();Ee();Ue();lr();var lT=({callbackRoute:n,logoutRoute:r,token:i,nativeAuth:c,onLoginRedirect:l})=>{let h=Ae(),T=c!=null,w=Ft(c),A=i,[_,L]=(0,un.useState)(""),[P,M]=(0,un.useState)(""),[D,N]=(0,un.useState)(!0),[G,Z]=(0,un.useState)([]),z=gt(),B=$(Bg),V=$(Wg),ne=$(Gg),pe=$(Uo),Re=$(Ps),ce=(0,un.useRef)(z),et=(0,un.useRef)(!0),tt=["erd_cancelAction","multiversx_cancelAction"],nt=D?"":`${Re}?wallet-connect=${encodeURIComponent(P)}`;Tr(()=>{!i||ie()},[i]),Tr(()=>{ce.current=z},[z]),(0,un.useEffect)(()=>{N(!Boolean(P))},[P]);let Ce=()=>{ra(r)},Be=Ie=>{console.log("wc2 session event: ",Ie)},st=()=>{et.current=!1};function Tt(){return F(this,null,function*(){var Ie;try{let j=ce.current;if(je()||j==null||!mt("walletconnectv2"))return;if(!et.current){try{yield(Ie=ce.current)==null?void 0:Ie.logout()}catch(Kn){console.warn("Unable to logout")}return}let ue=yield j.getAddress();if(!ue){console.warn("Login cancelled.");return}let Ye=yield j.getSignature(),Ut={address:ue,loginMethod:"walletconnectv2"},Xt={logoutRoute:r,loginType:"walletconnectv2",callbackRoute:n!=null?n:window.location.href};h(as(Xt)),Ye&&w.setTokenLoginInfo({signature:Ye,address:ue}),h(Je(Ut)),zt({callbackRoute:n,onLoginRedirect:l,options:{address:ue,signature:Ye}})}catch(j){L("Invalid address"),console.error(j)}})}function ye(Ie=!0){return F(this,null,function*(){if(!V||!B){L("Invalid WalletConnect setup");return}let j={onClientLogin:Tt,onClientLogout:Ce,onClientEvent:Be},K=new uT.WalletConnectV2Provider(j,pe,B,V,ne);yield K.init(),et.current=!0,Zt(K),Z(K.pairings),ce.current=K,Ie&&ie()})}function we(Ie){return F(this,null,function*(){var j,K,ue;if(!B||!V){L("Invalid WalletConnect setup");return}if(!Ie||!Ie.topic){L("Expired connection");return}try{let{approval:Ye}=yield(j=ce.current)==null?void 0:j.connect({topic:Ie.topic,methods:tt});if(T&&!A&&(A=yield w.getNativeAuthLoginToken(),!A)){console.warn("Fetching block failed. Login cancelled.");return}A&&w.setLoginToken(A);try{yield(K=ce.current)==null?void 0:K.login({approval:Ye,token:A})}catch(Ut){L("User rejected existing connection proposal"),N(!0),yield ye()}}catch(Ye){console.error("Unable to connect to existing session",Ye),L("Unable to connect to existing session")}finally{Z((ue=ce.current)==null?void 0:ue.pairings)}})}function he(Ie){return F(this,null,function*(){var j,K;try{Ie&&(yield(j=ce.current)==null?void 0:j.logout({topic:Ie}))}catch(ue){console.error("Unable to remove existing pairing",ue),L("Unable to remove existing pairing")}finally{Z((K=ce.current)==null?void 0:K.pairings)}})}function ie(){return F(this,null,function*(){var Ie,j;if(!B||!V){L("Invalid WalletConnect setup");return}try{let{uri:K,approval:ue}=yield(Ie=ce.current)==null?void 0:Ie.connect({methods:tt});if(!Boolean(K))return;if(M(K),T&&!A&&(A=yield w.getNativeAuthLoginToken(),!A)){console.warn("Fetching block failed. Login cancelled.");return}A&&w.setLoginToken(A);try{yield(j=ce.current)==null?void 0:j.login({approval:ue,token:A})}catch(Ut){L("User rejected connection proposal"),N(!0),yield ye()}}catch(K){console.error("Unable to connect",K)}})}let de=Boolean(_),at=je();return[ye,{error:_,loginFailed:de,isLoading:D&&!de,isLoggedIn:at&&!de},{uriDeepLink:nt,walletConnectUri:P,cancelLogin:st,connectExisting:we,removeExistingPairing:he,wcPairings:G}]};a();a();var ni=require("react");function iL(n){let[r,i]=(0,ni.useState)(),[c,l]=(0,ni.useState)();function h(){return F(this,null,function*(){try{let T=yield oa(n);i(T)}catch(T){l(T)}})}return(0,ni.useEffect)(()=>{h()},[]),{data:r,error:c,getUrl:h}}a();var dT=require("react");a();var Sr=require("react"),pT=require("socket.io-client");Ee();a();var Ln={current:null,status:"not_initialized"};var sL=3e3,aL=3,cL=500,uL=1e3;function fT(){let n=(0,Sr.useRef)(null),{address:r}=qn(),i=Ae(),{network:c}=Ho(),l=T=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{i(Ld(T))},uL)},h=(0,Sr.useCallback)(js(()=>F(this,null,function*(){Ln.status="pending";let T=yield oa(c.apiAddress);if(T==null){console.warn("Can not get websocket url");return}Ln.current=(0,pT.io)(T,{forceNew:!0,reconnectionAttempts:aL,timeout:sL,query:{address:r}}),Ln.status="completed",Ln.current.onAny(w=>{l(w)})}),{retries:2,delay:cL}),[r]);(0,Sr.useEffect)(()=>{r&&Ln.status==="not_initialized"&&!Ln.current&&h()},[r,Ln.current]),(0,Sr.useEffect)(()=>()=>{var T;(T=Ln.current)==null||T.close(),n.current&&clearTimeout(n.current)},[])}function lL(n){fT();let r=$(ks);(0,dT.useEffect)(()=>{let i=r==null?void 0:r.message;i&&n(i)},[n,r])}a();a();a();var gT=n=>n.dappModal,mT=H(gT,n=>n.visible),sa=H(gT,n=>n.modal),W3=H(sa,n=>n.showHeader),G3=H(sa,n=>n.showFooter),$3=H(sa,n=>n.headerText),H3=H(sa,n=>n.footerText);var pL=()=>$(mT);0&&(module.exports={useCheckTransactionStatus,useDebounce,useExtensionLogin,useGetAccount,useGetAccountInfo,useGetAccountProvider,useGetActiveTransactionsStatus,useGetFailedTransactions,useGetIsLoggedIn,useGetLastPendingTransactionHash,useGetLoginInfo,useGetNetworkConfig,useGetNotification,useGetPendingTransactions,useGetSignTransactionsError,useGetSignedTransactions,useGetSuccessfulTransactions,useGetTokenDetails,useGetTransactionDisplayInfo,useGetWebsocketEvent,useGetWebsocketUrl,useIsDappModalVisible,useLedgerLogin,useOperaLogin,useParseMultiEsdtTransferData,useParseSignedTransactions,useRegisterWebsocketListener,useSignMultipleTransactions,useSignTransactions,useSignTransactionsCommonData,useSignTransactionsWithDevice,useSignTransactionsWithLedger,useTrackTransactionStatus,useUpdateEffect,useWalletConnectLogin,useWalletConnectV2Login,useWebWalletLogin});
|
|
20
|
+
}`;var le=Sf(function(){return xe(f,q+"return "+R).apply(n,y)});if(le.source=R,hc(le))throw le;return le}function sw(e){return Se(e).toLowerCase()}function aw(e){return Se(e).toUpperCase()}function cw(e,t,o){if(e=Se(e),e&&(o||t===n))return El(e);if(!e||!(t=xt(t)))return e;var a=Gt(e),u=Gt(t),f=kl(a,u),y=Cl(a,u)+1;return On(a,f,y).join("")}function uw(e,t,o){if(e=Se(e),e&&(o||t===n))return e.slice(0,Rl(e)+1);if(!e||!(t=xt(t)))return e;var a=Gt(e),u=Cl(a,Gt(t))+1;return On(a,0,u).join("")}function lw(e,t,o){if(e=Se(e),e&&(o||t===n))return e.replace(ha,"");if(!e||!(t=xt(t)))return e;var a=Gt(e),u=kl(a,Gt(t));return On(a,u).join("")}function pw(e,t){var o=et,a=tt;if(De(t)){var u="separator"in t?t.separator:u;o="length"in t?se(t.length):o,a="omission"in t?xt(t.omission):a}e=Se(e);var f=e.length;if(Ir(e)){var y=Gt(e);f=y.length}if(o>=f)return e;var x=o-_r(a);if(x<1)return a;var v=y?On(y,0,x).join(""):e.slice(0,x);if(u===n)return v+a;if(y&&(x+=v.length-x),yc(u)){if(e.slice(x).search(u)){var k,C=v;for(u.global||(u=Na(u.source,Se(Xu.exec(u))+"g")),u.lastIndex=0;k=u.exec(C);)var R=k.index;v=v.slice(0,R===n?x:R)}}else if(e.indexOf(xt(u),x)!=x){var U=v.lastIndexOf(u);U>-1&&(v=v.slice(0,U))}return v+a}function fw(e){return e=Se(e),e&&AT.test(e)?e.replace(Ku,Gh):e}var dw=Pr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),vc=Sp("toUpperCase");function xf(e,t,o){return e=Se(e),t=o?n:t,t===n?Mh(e)?Vh(e):bh(e):e.match(t)||[]}var Sf=fe(function(e,t){try{return ht(e,n,t)}catch(o){return hc(o)?o:new re(o)}}),gw=mn(function(e,t){return bt(t,function(o){o=jt(o),dn(e,o,mc(e[o],e))}),e});function mw(e){var t=e==null?0:e.length,o=Y();return e=t?Pe(e,function(a){if(typeof a[1]!="function")throw new Et(l);return[o(a[0]),a[1]]}):[],fe(function(a){for(var u=-1;++u<t;){var f=e[u];if(ht(f[0],this,a))return ht(f[1],this,a)}})}function Tw(e){return Gy(Ct(e,_))}function wc(e){return function(){return e}}function hw(e,t){return e==null||e!==e?t:e}var yw=wp(),xw=wp(!0);function pt(e){return e}function Ac(e){return Ql(typeof e=="function"?e:Ct(e,_))}function Sw(e){return ep(Ct(e,_))}function vw(e,t){return tp(e,Ct(t,_))}var ww=fe(function(e,t){return function(o){return yo(o,e,t)}}),Aw=fe(function(e,t){return function(o){return yo(e,o,t)}});function Ic(e,t,o){var a=He(t),u=Ei(t,a);o==null&&!(De(t)&&(u.length||!a.length))&&(o=t,t=e,e=this,u=Ei(t,He(t)));var f=!(De(o)&&"chain"in o)||!!o.chain,y=hn(e);return bt(u,function(x){var v=t[x];e[x]=v,y&&(e.prototype[x]=function(){var k=this.__chain__;if(f||k){var C=e(this.__wrapped__),R=C.__actions__=ct(this.__actions__);return R.push({func:v,args:arguments,thisArg:e}),C.__chain__=k,C}return v.apply(e,En([this.value()],arguments))})}),e}function Iw(){return $e._===this&&($e._=Xh),this}function _c(){}function _w(e){return e=se(e),fe(function(t){return np(t,e)})}var Lw=nc(Pe),bw=nc(Al),Ew=nc(ba);function vf(e){return uc(e)?Ea(jt(e)):ox(e)}function kw(e){return function(t){return e==null?n:jn(e,t)}}var Cw=Ip(),Pw=Ip(!0);function Lc(){return[]}function bc(){return!1}function Rw(){return{}}function Dw(){return""}function Nw(){return!0}function Ow(e,t){if(e=se(e),e<1||e>we)return[];var o=de,a=Ze(e,de);t=Y(t),e-=de;for(var u=Pa(a,t);++o<e;)t(o);return u}function Mw(e){return oe(e)?Pe(e,jt):St(e)?[e]:ct(Wp(Se(e)))}function Fw(e){var t=++Yh;return Se(e)+t}var Uw=Ni(function(e,t){return e+t},0),Bw=rc("ceil"),Ww=Ni(function(e,t){return e/t},1),Gw=rc("floor");function $w(e){return e&&e.length?bi(e,pt,$a):n}function Hw(e,t){return e&&e.length?bi(e,Y(t,2),$a):n}function Vw(e){return Ll(e,pt)}function qw(e,t){return Ll(e,Y(t,2))}function zw(e){return e&&e.length?bi(e,pt,za):n}function Kw(e,t){return e&&e.length?bi(e,Y(t,2),za):n}var Yw=Ni(function(e,t){return e*t},1),Zw=rc("round"),Xw=Ni(function(e,t){return e-t},0);function Jw(e){return e&&e.length?Ca(e,pt):0}function Qw(e,t){return e&&e.length?Ca(e,Y(t,2)):0}return p.after=Sv,p.ary=Jp,p.assign=a0,p.assignIn=ff,p.assignInWith=Ki,p.assignWith=c0,p.at=u0,p.before=Qp,p.bind=mc,p.bindAll=gw,p.bindKey=jp,p.castArray=Rv,p.chain=Yp,p.chunk=Gx,p.compact=$x,p.concat=Hx,p.cond=mw,p.conforms=Tw,p.constant=wc,p.countBy=JS,p.create=l0,p.curry=ef,p.curryRight=tf,p.debounce=nf,p.defaults=p0,p.defaultsDeep=f0,p.defer=vv,p.delay=wv,p.difference=Vx,p.differenceBy=qx,p.differenceWith=zx,p.drop=Kx,p.dropRight=Yx,p.dropRightWhile=Zx,p.dropWhile=Xx,p.fill=Jx,p.filter=jS,p.flatMap=nv,p.flatMapDeep=rv,p.flatMapDepth=ov,p.flatten=Vp,p.flattenDeep=Qx,p.flattenDepth=jx,p.flip=Av,p.flow=yw,p.flowRight=xw,p.fromPairs=eS,p.functions=x0,p.functionsIn=S0,p.groupBy=iv,p.initial=nS,p.intersection=rS,p.intersectionBy=oS,p.intersectionWith=iS,p.invert=w0,p.invertBy=A0,p.invokeMap=av,p.iteratee=Ac,p.keyBy=cv,p.keys=He,p.keysIn=lt,p.map=Gi,p.mapKeys=_0,p.mapValues=L0,p.matches=Sw,p.matchesProperty=vw,p.memoize=Hi,p.merge=b0,p.mergeWith=df,p.method=ww,p.methodOf=Aw,p.mixin=Ic,p.negate=Vi,p.nthArg=_w,p.omit=E0,p.omitBy=k0,p.once=Iv,p.orderBy=uv,p.over=Lw,p.overArgs=_v,p.overEvery=bw,p.overSome=Ew,p.partial=Tc,p.partialRight=rf,p.partition=lv,p.pick=C0,p.pickBy=gf,p.property=vf,p.propertyOf=kw,p.pull=uS,p.pullAll=zp,p.pullAllBy=lS,p.pullAllWith=pS,p.pullAt=fS,p.range=Cw,p.rangeRight=Pw,p.rearg=Lv,p.reject=dv,p.remove=dS,p.rest=bv,p.reverse=dc,p.sampleSize=mv,p.set=R0,p.setWith=D0,p.shuffle=Tv,p.slice=gS,p.sortBy=xv,p.sortedUniq=vS,p.sortedUniqBy=wS,p.split=nw,p.spread=Ev,p.tail=AS,p.take=IS,p.takeRight=_S,p.takeRightWhile=LS,p.takeWhile=bS,p.tap=$S,p.throttle=kv,p.thru=Wi,p.toArray=uf,p.toPairs=mf,p.toPairsIn=Tf,p.toPath=Mw,p.toPlainObject=pf,p.transform=N0,p.unary=Cv,p.union=ES,p.unionBy=kS,p.unionWith=CS,p.uniq=PS,p.uniqBy=RS,p.uniqWith=DS,p.unset=O0,p.unzip=gc,p.unzipWith=Kp,p.update=M0,p.updateWith=F0,p.values=Nr,p.valuesIn=U0,p.without=NS,p.words=xf,p.wrap=Pv,p.xor=OS,p.xorBy=MS,p.xorWith=FS,p.zip=US,p.zipObject=BS,p.zipObjectDeep=WS,p.zipWith=GS,p.entries=mf,p.entriesIn=Tf,p.extend=ff,p.extendWith=Ki,Ic(p,p),p.add=Uw,p.attempt=Sf,p.camelCase=$0,p.capitalize=hf,p.ceil=Bw,p.clamp=B0,p.clone=Dv,p.cloneDeep=Ov,p.cloneDeepWith=Mv,p.cloneWith=Nv,p.conformsTo=Fv,p.deburr=yf,p.defaultTo=hw,p.divide=Ww,p.endsWith=H0,p.eq=Ht,p.escape=V0,p.escapeRegExp=q0,p.every=QS,p.find=ev,p.findIndex=$p,p.findKey=d0,p.findLast=tv,p.findLastIndex=Hp,p.findLastKey=g0,p.floor=Gw,p.forEach=Zp,p.forEachRight=Xp,p.forIn=m0,p.forInRight=T0,p.forOwn=h0,p.forOwnRight=y0,p.get=xc,p.gt=Uv,p.gte=Bv,p.has=v0,p.hasIn=Sc,p.head=qp,p.identity=pt,p.includes=sv,p.indexOf=tS,p.inRange=W0,p.invoke=I0,p.isArguments=nr,p.isArray=oe,p.isArrayBuffer=Wv,p.isArrayLike=ut,p.isArrayLikeObject=Oe,p.isBoolean=Gv,p.isBuffer=Mn,p.isDate=$v,p.isElement=Hv,p.isEmpty=Vv,p.isEqual=qv,p.isEqualWith=zv,p.isError=hc,p.isFinite=Kv,p.isFunction=hn,p.isInteger=of,p.isLength=qi,p.isMap=sf,p.isMatch=Yv,p.isMatchWith=Zv,p.isNaN=Xv,p.isNative=Jv,p.isNil=jv,p.isNull=Qv,p.isNumber=af,p.isObject=De,p.isObjectLike=Ne,p.isPlainObject=Io,p.isRegExp=yc,p.isSafeInteger=e0,p.isSet=cf,p.isString=zi,p.isSymbol=St,p.isTypedArray=Dr,p.isUndefined=t0,p.isWeakMap=n0,p.isWeakSet=r0,p.join=sS,p.kebabCase=z0,p.last=Rt,p.lastIndexOf=aS,p.lowerCase=K0,p.lowerFirst=Y0,p.lt=o0,p.lte=i0,p.max=$w,p.maxBy=Hw,p.mean=Vw,p.meanBy=qw,p.min=zw,p.minBy=Kw,p.stubArray=Lc,p.stubFalse=bc,p.stubObject=Rw,p.stubString=Dw,p.stubTrue=Nw,p.multiply=Yw,p.nth=cS,p.noConflict=Iw,p.noop=_c,p.now=$i,p.pad=Z0,p.padEnd=X0,p.padStart=J0,p.parseInt=Q0,p.random=G0,p.reduce=pv,p.reduceRight=fv,p.repeat=j0,p.replace=ew,p.result=P0,p.round=Zw,p.runInContext=S,p.sample=gv,p.size=hv,p.snakeCase=tw,p.some=yv,p.sortedIndex=mS,p.sortedIndexBy=TS,p.sortedIndexOf=hS,p.sortedLastIndex=yS,p.sortedLastIndexBy=xS,p.sortedLastIndexOf=SS,p.startCase=rw,p.startsWith=ow,p.subtract=Xw,p.sum=Jw,p.sumBy=Qw,p.template=iw,p.times=Ow,p.toFinite=yn,p.toInteger=se,p.toLength=lf,p.toLower=sw,p.toNumber=Dt,p.toSafeInteger=s0,p.toString=Se,p.toUpper=aw,p.trim=cw,p.trimEnd=uw,p.trimStart=lw,p.truncate=pw,p.unescape=fw,p.uniqueId=Fw,p.upperCase=dw,p.upperFirst=vc,p.each=Zp,p.eachRight=Xp,p.first=qp,Ic(p,function(){var e={};return Jt(p,function(t,o){ve.call(p.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),p.VERSION=r,bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){p[e].placeholder=p}),bt(["drop","take"],function(e,t){me.prototype[e]=function(o){o=o===n?1:Ge(se(o),0);var a=this.__filtered__&&!t?new me(this):this.clone();return a.__filtered__?a.__takeCount__=Ze(o,a.__takeCount__):a.__views__.push({size:Ze(o,de),type:e+(a.__dir__<0?"Right":"")}),a},me.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),bt(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==Be||o==Tt;me.prototype[e]=function(u){var f=this.clone();return f.__iteratees__.push({iteratee:Y(u,3),type:o}),f.__filtered__=f.__filtered__||a,f}}),bt(["head","last"],function(e,t){var o="take"+(t?"Right":"");me.prototype[e]=function(){return this[o](1).value()[0]}}),bt(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");me.prototype[e]=function(){return this.__filtered__?new me(this):this[o](1)}}),me.prototype.compact=function(){return this.filter(pt)},me.prototype.find=function(e){return this.filter(e).head()},me.prototype.findLast=function(e){return this.reverse().find(e)},me.prototype.invokeMap=fe(function(e,t){return typeof e=="function"?new me(this):this.map(function(o){return yo(o,e,t)})}),me.prototype.reject=function(e){return this.filter(Vi(Y(e)))},me.prototype.slice=function(e,t){e=se(e);var o=this;return o.__filtered__&&(e>0||t<0)?new me(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==n&&(t=se(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},me.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},me.prototype.toArray=function(){return this.take(de)},Jt(me.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),u=p[a?"take"+(t=="last"?"Right":""):t],f=a||/^find/.test(t);!u||(p.prototype[t]=function(){var y=this.__wrapped__,x=a?[1]:arguments,v=y instanceof me,k=x[0],C=v||oe(y),R=function(ge){var Te=u.apply(p,En([ge],x));return a&&U?Te[0]:Te};C&&o&&typeof k=="function"&&k.length!=1&&(v=C=!1);var U=this.__chain__,q=!!this.__actions__.length,X=f&&!U,le=v&&!q;if(!f&&C){y=le?y:new me(this);var J=e.apply(y,x);return J.__actions__.push({func:Wi,args:[R],thisArg:n}),new kt(J,U)}return X&&le?e.apply(this,x):(J=this.thru(R),X?a?J.value()[0]:J.value():J)})}),bt(["pop","push","shift","sort","splice","unshift"],function(e){var t=fi[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var u=arguments;if(a&&!this.__chain__){var f=this.value();return t.apply(oe(f)?f:[],u)}return this[o](function(y){return t.apply(oe(y)?y:[],u)})}}),Jt(me.prototype,function(e,t){var o=p[t];if(o){var a=o.name+"";ve.call(Er,a)||(Er[a]=[]),Er[a].push({name:t,func:o})}}),Er[Di(n,G).name]=[{name:"wrapper",func:n}],me.prototype.clone=fy,me.prototype.reverse=dy,me.prototype.value=gy,p.prototype.at=HS,p.prototype.chain=VS,p.prototype.commit=qS,p.prototype.next=zS,p.prototype.plant=YS,p.prototype.reverse=ZS,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=XS,p.prototype.first=p.prototype.head,lo&&(p.prototype[lo]=KS),p},Cn=qh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?($e._=Cn,define(function(){return Cn})):Yn?((Yn.exports=Cn)._=Cn,Aa._=Cn):$e._=Cn}).call(to)});var fL={};rr(fL,{useCheckTransactionStatus:()=>L_,useDebounce:()=>eL,useExtensionLogin:()=>jm,useGetAccount:()=>qn,useGetAccountInfo:()=>Ou,useGetAccountProvider:()=>_n,useGetActiveTransactionsStatus:()=>b_,useGetFailedTransactions:()=>E_,useGetIsLoggedIn:()=>U_,useGetLastPendingTransactionHash:()=>k_,useGetLoginInfo:()=>Fu,useGetNetworkConfig:()=>Ho,useGetNotification:()=>y_,useGetPendingTransactions:()=>Vo,useGetSignTransactionsError:()=>C_,useGetSignedTransactions:()=>Ru,useGetSuccessfulTransactions:()=>P_,useGetTokenDetails:()=>D_,useGetTransactionDisplayInfo:()=>N_,useGetWebsocketEvent:()=>B_,useGetWebsocketUrl:()=>iL,useIsDappModalVisible:()=>pL,useLedgerLogin:()=>sT,useOperaLogin:()=>tT,useParseMultiEsdtTransferData:()=>Du,useParseSignedTransactions:()=>Yo,useRegisterWebsocketListener:()=>lL,useSignMultipleTransactions:()=>Nu,useSignTransactions:()=>W_,useSignTransactionsCommonData:()=>Zo,useSignTransactionsWithDevice:()=>Wu,useSignTransactionsWithLedger:()=>G_,useTrackTransactionStatus:()=>j_,useUpdateEffect:()=>Tr,useWalletConnectLogin:()=>cT,useWalletConnectV2Login:()=>lT,useWebWalletLogin:()=>oT});module.exports=bo(fL);s();s();s();var Pg=require("react"),Kr=require("react-redux");s();var lu=require("@reduxjs/toolkit"),kg=require("react-redux/lib/utils/Subscription");Ee();s();var ig=ae(require("lodash.throttle"));Le();s();var og=ae(require("lodash.isequal")),_s=require("reselect");qe();var H=(0,_s.createSelectorCreator)(_s.defaultMemoize,og.default),Mo=(n,r)=>n!=""&&Boolean(r);Ee();jc();$r();Gr();var gI=[ts],Ls=!1,mI=(0,ig.default)(()=>{Po(Co())},5e3),sg=n=>r=>i=>{var A;if(gI.includes(i.type))return r(i);let c=n.getState(),l=sn.local.getItem(qt.loginExpiresAt);if(!Mo((A=c==null?void 0:c.loginInfo)==null?void 0:A.loginMethod,c==null?void 0:c.account.address))return r(i);if(l==null)return Po(Co());let T=Date.now();return l-T<0&&!Ls?setTimeout(()=>{Ls=!0,n.dispatch(Rd())},1e3):(Ls&&(Ls=!1),mI()),r(i)};s();s();function bs(){return typeof sessionStorage!="undefined"}var Lg=bs()?(hg(),bo(Tg)).default:(xg(),bo(yg)).default,bg=bs()?(vg(),bo(Sg)).default:[],Eg=bs()?(_g(),bo(Ig)).default:n=>n;Es();var ee=(0,lu.configureStore)({reducer:Lg,middleware:n=>n({serializableCheck:{ignoredActions:[...bg,Jc.type,os.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(sg)}),Cg=(0,kg.createSubscription)(ee),M1=Eg(ee),F1=(0,lu.configureStore)({reducer:dr});var FI={store:ee,subscription:Cg},pu=(0,Pg.createContext)(FI),G1=(0,Kr.createStoreHook)(pu),Ae=(0,Kr.createDispatchHook)(pu),$=(0,Kr.createSelectorHook)(pu);s();s();Ee();var An=n=>n.account,$n=H(An,n=>n.address),Yr=H(An,$n,(n,r)=>r in n.accounts?n.accounts[r]:rs),Rg=H(An,Yr,(n,r)=>{let l=n,{accounts:i}=l,c=Zi(l,["accounts"]);return te(O({},c),{account:r})}),UI=H(Yr,n=>n.balance),Dg=H(Yr,n=>{var r;return((r=n==null?void 0:n.nonce)==null?void 0:r.valueOf())||0}),q1=H(An,n=>n.shard),Ng=H(An,n=>n.ledgerAccount),z1=H(An,n=>n.walletConnectAccount),K1=H(An,n=>n.isAccountLoading),Y1=H(An,n=>n.accountLoadingError),ks=H(An,n=>n.websocketEvent);s();var Mt=n=>n.loginInfo,Q1=H(Mt,n=>n.loginMethod),Zr=H(Mt,$n,(n,r)=>Mo(n.loginMethod,r)),j1=H(Mt,n=>n.walletConnectLogin),ek=H(Mt,n=>n.ledgerLogin),Og=H(Mt,n=>n.walletLogin),tk=H(Mt,n=>n.isLoginSessionInvalid),Cs=H(Mt,n=>n.tokenLogin),nk=H(Mt,n=>n.logoutRoute);s();var Mg=n=>n.modals,ik=H(Mg,n=>n.txSubmittedModal),Fg=H(Mg,n=>n.notificationModal);s();var Kt=n=>n.networkConfig,Uo=H(Kt,n=>n.chainID),Ug=H(Kt,n=>n.network.walletConnectBridgeAddress),Bg=H(Kt,n=>n.network.walletConnectV2RelayAddress),Wg=H(Kt,n=>n.network.walletConnectV2ProjectId),Gg=H(Kt,n=>n.network.walletConnectV2Options),Ps=H(Kt,n=>n.network.walletConnectDeepLink),Yt=H(Kt,n=>n.network),Rs=H(Yt,n=>n.apiAddress),$g=H(Yt,n=>n.explorerAddress),fu=H(Yt,n=>n.egldLabel);s();var du=n=>n.signedMessageInfo,lk=H(du,n=>n.isSigning),pk=H(du,n=>n.errorMessage),fk=H(du,n=>{let r=Object.keys(n.signedSessions),i=r.length;return n.signedSessions[r[i-1]]});s();var gu=n=>n.toasts,mk=H(gu,n=>n.customToasts),Tk=H(gu,n=>n.transactionToasts),hk=H(gu,n=>n.failTransactionToast);s();Ee();var Hg={errorMessage:iu,successMessage:su,processingMessage:au},BI=n=>n.transactionsInfo,Vg=H(BI,(n,r)=>r,(n,r)=>r!=null&&(n==null?void 0:n[Number(r)])||Hg);s();s();var _t=require("@multiversx/sdk-core");Le();s();function Ds(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(r){return!1}}function gr(n){return Ds(n)?atob(n):n}function Bo(n){var l,h,T;let{data:r}=n,i=Ds(r!=null?r:"")?_t.TransactionPayload.fromEncoded(r):new _t.TransactionPayload(r),c=new _t.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new _t.Address(n.receiver),sender:new _t.Address(n.sender),gasLimit:(l=n.gasLimit.valueOf())!=null?l:Eo,gasPrice:(h=n.gasPrice.valueOf())!=null?h:es,chainID:n.chainID.valueOf(),version:new _t.TransactionVersion((T=n.version)!=null?T:pd)},n.options?{options:new _t.TransactionOptions(n.options)}:{}));return c.applySignature({hex:()=>n.signature||""},new _t.Address(n.sender)),c}s();s();function WI(n,r){let i=new URLSearchParams(n),c=Object.fromEntries(i);return{nextUrlParams:new URLSearchParams(O(O({},c),r)).toString(),params:c}}function qg({callbackUrl:n,urlParams:r={}}){let i=n;if(Object.entries(r).length>0){let{search:c,origin:l,pathname:h}=new URL(n),{nextUrlParams:T}=WI(c,r);i=`${l}${h}?${T}`}return i}s();s();s();var $I=require("@multiversx/sdk-core/out");s();Le();s();var Kg=require("@multiversx/sdk-core");qe();s();var zg=require("@multiversx/sdk-core");function HI(n){try{let r=new zg.Address(n);return Boolean(r.bech32())}catch(r){return!1}}function Xr(n){return(n==null?void 0:n.startsWith("erd"))&&n.length===62&&/^\w+$/.test(n)&&HI(n)}s();s();s();var hu=require("@multiversx/sdk-core"),yu=ae(require("bignumber.js"));Ue();s();s();function mu(n){for(let r=0;r<n.length;r++)if(n.charCodeAt(r)>127)return!1;return!0}function Wo(n){let r=n;try{let i=d.Buffer.from(n,"hex").toString();mu(i)&&i.length>1&&(r=i)}catch(i){}return r}var Tu={tokenId:"",amount:""},VI=n=>n.split("@").map((h,T)=>[2,3].includes(T)?h:Wo(h));function xu(n){if(!n)return Tu;let r=n.startsWith("ESDTTransfer"),i=n.startsWith("ESDTNFTTransfer")&&n.includes("@");if(r){let[,c,l]=n.split("@");try{let h=d.Buffer.from(c,"hex").toString("ascii");if(!h)return Tu;let T=new yu.default("0x"+l.replace("0x","")).toString(10);return{tokenId:h,amount:T}}catch(h){console.error("Error getting token from transaction data",h)}}if(i)try{let[,c,l,h,T]=VI(n);if([c,l,h,T].every(w=>Boolean(w))&&Xr(new hu.Address(T).bech32()))return{tokenId:`${c}-${l}`,amount:new yu.default(h,16).toString(10),collection:c,nonce:l,receiver:new hu.Address(T).bech32()}}catch(c){}return Tu}s();s();s();var Go="accounts";var Su="tokens",vu="blocks";var wu="collections";s();s();s();s();dt();s();s();dt();s();s();s();var XI=ae(require("bignumber.js"));Le();s();var ZI=require("@multiversx/sdk-core"),Au=ae(require("bignumber.js"));Le();s();var KI=ae(require("bignumber.js"));s();Au.default.config({ROUNDING_MODE:Au.default.ROUND_FLOOR});s();s();s();Le();s();s();s();s();Le();s();Le();s();var JI=require("@multiversx/sdk-core");Le();s();var $o=require("@multiversx/sdk-core"),e_=require("@multiversx/sdk-network-providers");Le();s();s();var QI=ae(require("bignumber.js"));Le();s();Le();s();var Iu={isEsdt:!1,isNft:!1,isEgld:!1};function _u(n){let r=n==null?void 0:n.split("-").length;return r===2?te(O({},Iu),{isEsdt:!0}):r===3?te(O({},Iu),{isNft:!0}):te(O({},Iu),{isEgld:!0})}s();s();s();s();Le();s();dt();var n_=["reDelegateRewards","claimRewards","unBond"],r_=["wrapEgld","unwrapEgld"],o_=["unStake"],i_=["unDelegate"];s();s();s();Le();s();var c_=ae(require("bignumber.js"));s();s();s();s();dt();s();var u_=ae(require("bignumber.js"));s();s();function jg({tokenId:n,erdLabel:r}){return Boolean(n&&n!==r)}s();var bu=ae(require("bignumber.js"));qe();s();var em=(n,r)=>{let i=[],c=n.indexOf(r,0);for(;c>=0;)i.push(c),c=n.indexOf(r,c+1);return i};function tm(n){let r=[],i=0;try{if((n==null?void 0:n.startsWith("MultiESDTNFTTransfer"))&&(n==null?void 0:n.includes("@"))){let[,c,l,...h]=n==null?void 0:n.split("@");if(c){let T=new bu.default(l,16).toNumber(),w=0;for(let P=0;P<T;P++){let M={type:"nftTransaction",data:"",receiver:c};for(let D=0;D<3;D++){switch(D){case 0:M.token=Wo(h[w]),M.data=h[w];break;case 1:{let N=h[w]&&h[w].length?h[w]:"";N?M.nonce=N:M.type="esdtTransaction",M.data=`${M.data}@${h[w]}`;break}case 2:M.amount=new bu.default(h[w],16).toString(10),M.data=`${M.data}@${h[w]}`;break;default:break}i=w+1,w++}r[P]=M}let A=r.length!==T,_=r.some(P=>em(P.data,"@").length!==2),L=r.some(P=>P.data.startsWith("@"));if(A||_||L)return[];if(h[i]){let P=h[i];for(let M=i+1;M<h.length;M++)P+="@"+h[M];r[T]={type:"scCall",data:P,receiver:c}}}}}catch(c){return console.error("failed parsing tx",c),r}return r}s();s();s();Ue();function Jr(n){let i=Object.getPrototypeOf(n).toPlainObject!=null?n:Bo(n);return te(O({},i.toPlainObject()),{hash:i.getHash().hex(),status:"pending"})}s();s();s();s();dt();s();s();s();var p_=ae(require("linkifyjs"));s();Le();s();var f_=ae(require("bignumber.js"));s();qe();s();s();Ue();s();Ue();s();s();s();dt();s();dt();s();var d_=ae(require("bignumber.js"));Le();dt();s();dt();s();var rm=require("react");qe();s();s();dt();s();s();var g_=require("@multiversx/sdk-core/out"),m_=ae(require("bignumber.js"));dt();s();qe();s();s();qe();var XN=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var om=require("react");qe();s();var h_=require("react");dt();var rO=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];zr();var Fs=n=>n.transactions,mr=H(Fs,n=>n.signedTransactions),im=H(Fs,n=>n.signTransactionsError),Us=H(Fs,n=>n.signTransactionsCancelMessage),Bs=n=>r=>Object.entries(r).reduce((i,[c,l])=>(n(l.status)&&(i[c]=l),i),{}),Ws=H(mr,Bs(an)),Gs=H(mr,Bs(Un)),$s=H(mr,Bs(Bn)),sm=H(mr,Bs(vs)),Hs=H(Fs,n=>{var r;return(n==null?void 0:n.transactionsToSign)==null?null:te(O({},n.transactionsToSign),{transactions:((r=n==null?void 0:n.transactionsToSign)==null?void 0:r.transactions.map(i=>Bo(i)))||[]})}),am=H(mr,(n,r)=>r,(n,r)=>r!=null?(n==null?void 0:n[r])||{}:{});var Ho=()=>$(Kt);s();var Vs=require("react");function Tr(n,r=[]){let i=(0,Vs.useRef)(!0);(0,Vs.useEffect)(()=>{i.current?i.current=!1:n()},r)}s();Ee();function y_(){let n=$(Fg),r=Ae();return{notification:n,clearNotification:()=>r(Md())}}s();s();s();s();function Vo(){let n=$(Ws),r=Object.entries(n),i=(r==null?void 0:r.length)>0;return{pendingTransactions:n,pendingTransactionsArray:r,hasPendingTransactions:i}}s();s();s();s();var cm=require("@multiversx/sdk-extension-provider"),um=require("@multiversx/sdk-hw-provider"),lm=require("@multiversx/sdk-opera-provider"),pm=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),fm=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Eu=require("@multiversx/sdk-web-wallet-provider");Le();Ue();var x_="/dapp/init",Vn=n=>{switch(n==null?void 0:n.constructor){case Eu.WalletProvider:return"wallet";case pm.WalletConnectProvider:return"walletconnect";case fm.WalletConnectV2Provider:return"walletconnectv2";case um.HWProvider:return"ledger";case cm.ExtensionProvider:return"extension";case lm.OperaProvider:return"opera";case qs:return"";default:return"extra"}},dm=n=>new Eu.WalletProvider(`${n}${x_}`),gm=n=>F(void 0,null,function*(){if(!n.isInitialized())throw new Error("Unable to get version. Provider not initialized");let r=n.hwApp,{contractData:i,version:c}=yield r.getAppConfiguration();return{version:c,dataEnabled:i===fd}}),In=n=>`Unable to perform ${n}, Provider not initialized`,qs=class{init(){return Promise.resolve(!1)}login(r){throw new Error(In(`login with options: ${r}`))}logout(r){throw new Error(In(`logout with options: ${r}`))}getAddress(){throw new Error(In("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(r,i){throw new Error(In(`sendTransaction with transactions: ${r} options: ${i}`))}signTransaction(r,i){throw new Error(In(`signTransaction with transactions: ${r} options: ${i}`))}signTransactions(r,i){throw new Error(In(`signTransactions with transactions: ${r} options: ${i}`))}signMessage(r,i){throw new Error(In(`signTransactions with ${r} and options ${i}`))}sendCustomMessage({method:r,params:i}){throw new Error(In(`sendCustomMessage with method: ${r} params: ${i}`))}sendCustomRequest(r){throw new Error(In(`sendSessionEvent with options: ${r}`))}ping(){return Promise.resolve(!1)}},ku=new qs;var mm=ku;function Zt(n){mm=n}function gt(){return mm||ku}Ee();s();s();var hm=ae(require("axios"));s();s();var Tm=n=>{let r=n!=null?n:Rs(ee.getState());return r.endsWith("/")?r.slice(0,-1):r};function ym(n){return F(this,null,function*(){if(!n)return null;let i=`${Tm()}/${Go}/${n}`;try{let{data:c}=yield hm.default.get(i);return c}catch(c){console.error("error fetching configuration for ",i)}return null})}function Qr(n){return F(this,null,function*(){return yield ym(n)})}s();Ue();s();s();function xm(){let n=gt();return Vn(n)}function mt(n){return xm()===n}function qo(){let{search:n}=window.location,r=ee.getState(),i=gt(),c=$n(r),l=Zr(r),h=Og(r);if(!i)throw"provider not initialized";return mt("ledger")&&l?new Promise(T=>{T(c)}):!mt("")&&!mt("wallet")&&!mt("extra")?i.getAddress():new Promise(T=>{if(h!=null){let w=new URLSearchParams(n),A=Object.fromEntries(w);Xr(A.address)&&T(A.address)}l&&T(c),T("")})}s();function zo(n){let r=ee.getState(),i=Dg(r);return n?i&&!isNaN(i)?Math.max(i,n.nonce):n.nonce:i}var Sm=()=>F(void 0,null,function*(){try{let n=yield qo();try{let r=yield Qr(n);if(r!=null){let i=te(O({},r),{nonce:zo(r)});return ee.dispatch(os(i)),i}}catch(r){console.error("Failed getting account ",r)}}catch(n){console.error("Failed getting address ",n)}return null});function zs(){return F(this,null,function*(){let n=gt();if(n==null)throw"Provider not initialized";if(!n.isInitialized||n.isInitialized())return Sm();try{if(!n.init)throw"Current provider does not have init() function";return(yield n.init())?Sm():void 0}catch(r){console.error("Failed initializing provider ",r)}})}zr();s();s();s();var S_=ae(require("axios"));s();var vm=ae(require("axios"));function wm(n){return F(this,null,function*(){let r=Rs(ee.getState()),i=n.map(l=>l.hash),{data:c}=yield vm.default.get(`${r}/transactions`,{params:{hashes:i.join(","),withScResults:!0}});return n.map(({hash:l,previousStatus:h})=>{let T=c.find(w=>(w==null?void 0:w.txHash)===l);return{hash:l,data:T==null?void 0:T.data,invalidTransaction:T==null,status:T==null?void 0:T.status,results:T==null?void 0:T.results,sender:T==null?void 0:T.sender,receiver:T==null?void 0:T.receiver,previousStatus:h,hasStatusChanged:T&&T.status!==h}})})}s();var w_=ae(require("axios"));s();s();var A_=ae(require("axios"));s();var I_=ae(require("axios"));s();Ee();Ue();s();s();Ee();s();s();var Im=require("@multiversx/sdk-core");s();Qe();qe();s();zr();function _m(n,r){return n.reduce((c,{status:l,hash:h})=>(h!=null&&!r.includes(h)&&an(l)&&c.push({hash:h,previousStatus:l}),c),[])}s();Ee();Ue();function Lm({results:n,hash:r,sessionId:i}){let c=n==null?void 0:n.find(l=>(l==null?void 0:l.returnMessage)!=="");ee.dispatch(Oo({transactionHash:r,sessionId:i,status:"fail",errorMessage:c==null?void 0:c.returnMessage})),ee.dispatch(ws({sessionId:i,status:"fail",errorMessage:c==null?void 0:c.returnMessage}))}s();Ee();qe();function Cu(n){ee.dispatch(ws({sessionId:n,status:"timedOut"}))}var Ks={},Pu=[];function __({serverTransaction:n,sessionId:r,customTransactionInformation:i,shouldRefreshBalance:c}){let{hash:l,status:h,results:T,invalidTransaction:w,hasStatusChanged:A}=n;try{if(Pu.includes(l))return;if(Ks[l]>30){Cu(r);return}if(w||an(h)){Ks[l]=Ks[l]?Ks[l]+1:1;return}A&&(Un(h)&&(i==null?void 0:i.completedTransactionsDelay)!=null?(Pu.push(l),setTimeout(()=>ee.dispatch(Oo({sessionId:r,status:"success",transactionHash:l})),i==null?void 0:i.completedTransactionsDelay)):ee.dispatch(Oo({sessionId:r,status:h,transactionHash:l}))),c||zs(),Bn(h)&&Lm({sessionId:r,hash:l,results:T})}catch(_){console.error(_),Cu(r)}}function bm(h){return F(this,arguments,function*({sessionId:n,transactionBatch:{transactions:r,customTransactionInformation:i},getTransactionsByHash:c=wm,shouldRefreshBalance:l}){try{if(r==null)return;let T=_m(r,Pu),w=yield c(T);for(let A of w)__({serverTransaction:A,sessionId:n,customTransactionInformation:i,shouldRefreshBalance:l})}catch(T){console.error(T)}})}function L_(){let{pendingTransactionsArray:n}=Vo();function r(i){return F(this,null,function*(){let c=n.filter(([l,h])=>l!=null&&an(h.status));if(c.length>0)for(let[l,h]of c)yield bm(O({sessionId:l,transactionBatch:h},i));i.shouldRefreshBalance&&zs()})}return r}s();function b_(){var A,_,L;let n=$(sm),r=$($s),i=$(Gs),c=$(Ws),l=((A=Object.keys(c))==null?void 0:A.length)>0,h=!l&&((_=Object.keys(n))==null?void 0:_.length)>0,T=!l&&!h&&((L=Object.keys(r))==null?void 0:L.length)>0,w=!l&&!h&&!T&&Object.keys(i).length>0;return{pending:l,timedOut:h,fail:T,success:w}}s();function E_(){let n=$($s),r=Object.entries(n),i=(r==null?void 0:r.length)>0;return{failedTransactions:n,failedTransactionsArray:r,hasFailedTransactions:i}}s();qe();var k_=()=>{var c,l;let{hasPendingTransactions:n,pendingTransactions:r}=Vo();if(!n)return"";let i=Object.keys(r).sort().reverse();for(let h of i){let w=(l=(c=r[h].transactions)==null?void 0:c.filter(A=>A.status==="pending"))!=null?l:[];if(w.length>0)return w[w.length-1].hash}return""};s();var C_=()=>$(im);s();function Ru(){let n=$(mr),r=Object.entries(n),i=(r==null?void 0:r.length)>0;return{signedTransactions:n,signedTransactionsArray:r,hasSignedTransactions:i}}s();function P_(){let n=$(Gs),r=Object.entries(n),i=(r==null?void 0:r.length)>0;return{successfulTransactions:n,successfulTransactionsArray:r,hasSuccessfulTransactions:i}}s();var Em=ae(require("axios")),km=ae(require("swr"));var R_=n=>Em.default.get(n).then(r=>r.data);function D_({tokenId:n}){var M;let{network:r}=Ho(),{isEsdt:i,isNft:c}=_u(n),l=i?Su:wu,h=n;if(c){let[D,N]=n.split("-");h=`${D}-${N}`}let{data:T,error:w}=(0,km.default)(Boolean(h)?`${r.apiAddress}/${l}/${h}`:null,R_);if(!h)return{tokenDecimals:Number(r.decimals),tokenLabel:"",tokenAvatar:""};let A=T?T==null?void 0:T.decimals:Number(r.decimals),_=T?T==null?void 0:T.name:"",L=T?`${(M=T==null?void 0:T.assets)==null?void 0:M.svgUrl}`:"",P=T==null?void 0:T.assets;return{tokenDecimals:A,tokenLabel:_,tokenAvatar:L,assets:P,error:w}}s();function N_(n){return $(r=>Vg(r,n))}s();var Ko=require("react");var Cm={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Du({transactions:n}){let[r,i]=(0,Ko.useState)({}),[c,l]=(0,Ko.useState)([]);function h(A,_){i(L=>te(O({},L),{[A]:_}))}function T(A,_){return r==null?Cm:A in r?r[A]:_!=null&&String(_)in r?r[_]:Cm}function w(){if(n&&n.length>0){let A=[];n.forEach((_,L)=>{let P=_.getData().toString(),M=tm(P);if(M.length>0)M.forEach((D,N)=>{let G={transaction:_,multiTxData:D.data,transactionIndex:N};h(D.data,{tokenId:D.token?D.token:"",amount:D.amount?D.amount:"",type:D.type,nonce:D.nonce?D.nonce:"",multiTxData:D.data,receiver:D.receiver}),A.push(G)});else{let{tokenId:D,amount:N}=xu(_.getData().toString());D&&h(_.getData().toString(),{tokenId:D,amount:N,receiver:_.getReceiver().bech32()}),A.push({transaction:_,transactionIndex:L})}}),l(A)}}return(0,Ko.useEffect)(()=>{w()},[n==null?void 0:n.length]),{parsedTransactionsByDataField:r,getTxInfoByDataField:T,allTransactions:c}}s();var Pm=require("react"),Rm=require("@multiversx/sdk-web-wallet-provider"),Dm=ae(require("qs"));Le();Ee();Ue();function Yo(n){let{search:r}=window.location,i=$(Yt),c=Ae();(0,Pm.useEffect)(()=>{if(r!=null){let l=Dm.default.parse(r.replace("?",""));if(l&&ko in l){let h=String(l[ko]),T=new Rm.WalletProvider(`${i.walletAddress}${dd}`).getTransactionsFromWalletUrl();if(l.status==="cancelled"){c(cn({sessionId:h,status:"cancelled"})),n(),history.pushState({},document==null?void 0:document.title,"?");return}T.length>0&&(c(cn({sessionId:h,status:"signed",transactions:T.map(w=>Jr(w))})),history.pushState({},document==null?void 0:document.title,"?"))}}},[r])}s();var hr=require("react");tu();var Ys={};function Nu({isLedger:n=!1,transactionsToSign:r,egldLabel:i,address:c,onCancel:l,onSignTransaction:h,onTransactionsSignError:T,onTransactionsSignSuccess:w,onGetScamAddressData:A}){var Tt,ye,we;let[_,L]=(0,hr.useState)(0),[P,M]=(0,hr.useState)(),[D,N]=(0,hr.useState)(null),[G,Z]=(0,hr.useState)(!1),{getTxInfoByDataField:z,allTransactions:B}=Du({transactions:r}),V=_===B.length-1;(0,hr.useEffect)(()=>{ne()},[_,B]);function ne(){return F(this,null,function*(){var Xt;let he=B[_];if(he==null)return;let{transaction:ie,multiTxData:de}=he,at=ie.getData().toString(),Ie=z(ie.getData().toString(),de),{tokenId:j}=Ie,K=ie.getReceiver().toString(),ue=c!==K,Ye=K in Ys;if(ue&&!Ye&&A!=null){let Kn=yield A(K);Ys=O(O({},Ys),Kn!=null&&Kn.scamInfo?{[K]:Kn.scamInfo}:{})}let Ut=Boolean(j&&jg({tokenId:j,erdLabel:i}));N({transaction:ie,receiverScamInfo:((Xt=Ys[K])==null?void 0:Xt.info)||null,transactionTokenInfo:Ie,isTokenTransaction:Ut,dataField:at})})}function pe(){L(0),M(void 0),Z(!1)}function Re(){return F(this,null,function*(){try{if(D==null)return;Z(n);let he=yield h(D.transaction),ie={[_]:he},de=P?O(O({},P),ie):ie;M(de),V?de&&(w(Object.values(de)),pe()):(L(at=>at+1),Z(!1))}catch(he){console.error(he,"sign error");let{message:ie}=he,de=n?ur(he).errorMessage:null;pe(),T(de!=null?de:ie)}})}function ce(){try{if(D==null)return;D.transaction.getSignature().hex()?V||L(ie=>ie+1):Re()}catch(he){Re()}}let et=_===0;function tt(){et?l==null||l():L(he=>he-1)}let nt=Boolean(((Tt=D==null?void 0:D.transactionTokenInfo)==null?void 0:Tt.type)&&((ye=D==null?void 0:D.transactionTokenInfo)==null?void 0:ye.multiTxData)&&!(D!=null&&D.dataField.endsWith((we=D==null?void 0:D.transactionTokenInfo)==null?void 0:we.multiTxData)));function Ce(){nt?L(he=>he+1):ce()}function Be(){L(he=>{let ie=he+1;return ie>(B==null?void 0:B.length)?he:ie})}function st(){L(he=>{let ie=he-1;return ie<0?he:ie})}return{allTransactions:B,onSignTransaction:Ce,onNext:Be,onPrev:st,waitingForDevice:G,onAbort:tt,isLastTransaction:V,isFirstTransaction:_===0,hasMultipleTransactions:B.length>1,shouldContinueWithoutSigning:nt,currentStep:_,signedTransactions:P,currentTransaction:D}}s();var Xo=require("react"),Bu=require("@multiversx/sdk-extension-provider");Le();s();var _n=()=>{let n=gt(),r=Vn(n);return{provider:n,providerType:r}};Ee();Ue();s();s();function Zs(n){let r=Hs(ee.getState()),i=Object.keys(n).length===(r==null?void 0:r.transactions.length);return n&&(n&&i)}s();var O_=(n,r)=>r.map((i,c)=>(i.setNonce(n+c),i)),Xs=()=>{let n=$($n);return r=>F(void 0,null,function*(){let i=yield Qr(n),c=zo(i);return O_(c,r)})};s();var eo=require("react"),Uu=require("@multiversx/sdk-extension-provider");Le();s();s();var Ou=()=>$(Rg);s();var qn=()=>$(Yr);s();s();s();s();s();var jr=ae(require("react"));var M_=(0,jr.createContext)({}),CB=ee.getState();function Js(){let n=(0,jr.useContext)(M_);if(n===void 0||Object.values(n).length===0)throw new Error("useAxiosInterceptorContext must be used within an AxiosInterceptorContextProvider");return n}s();var Nm=ae(require("react"));s();var Mu=ae(require("react")),F_=ae(require("axios"));var Fu=()=>{try{let{loginInfo:n,isLoggedIn:r}=Js();return te(O({},n),{isLoggedIn:r})}catch(n){let r=$(Mt),i=$(Zr);return te(O({},r),{isLoggedIn:i})}};s();var U_=()=>{let{isLoggedIn:n}=Fu();return n};s();var B_=()=>$(ks);Ee();var Zo=()=>{let n=Ae(),{provider:r}=_n(),{nonce:i}=qn(),[c,l]=(0,eo.useState)(null),[h,T]=(0,eo.useState)(),[w,A]=(0,eo.useState)([]),_=Xs(),L=$(Hs),P=$(Us),M=()=>F(void 0,null,function*(){var B;let Z=Boolean(L==null?void 0:L.transactions),z=(B=L==null?void 0:L.transactions)!=null?B:[];if(Z){let V=yield _(z);A(V)}T(Z)});(0,eo.useEffect)(()=>{M()},[L,i]);let D=()=>{l(null),n(fr(null))},N=Z=>{D(),G(Z)};Yo(N);function G(Z){var B,V;let z=r instanceof Uu.ExtensionProvider;n(Wn()),n(Vr(Z)),n(Do(Ur)),z&&(D(),(V=(B=Uu.ExtensionProvider.getInstance())==null?void 0:B.cancelAction)==null||V.call(B))}return{error:c,canceledTransactionsMessage:P,clearTransactionStatusMessage:D,onAbort:N,setError:l,hasTransactions:h,transactionsToSign:L&&te(O({},L),{transactions:w})}};var W_=()=>{let n=Ae(),r=(0,Xo.useRef)("/"),{provider:i}=_n(),c=Vn(i),l=(0,Xo.useRef)(!1),h=Xs(),T=$(Us),{transactionsToSign:w,error:A,setError:_,hasTransactions:L,onAbort:P,clearTransactionStatusMessage:M}=Zo();Yo(P);function D(B){var ne,pe;let V=i instanceof Bu.ExtensionProvider;n(Wn()),n(Vr(B)),n(Do(Ur)),l.current=!1,V&&(M(),(pe=(ne=Bu.ExtensionProvider.getInstance())==null?void 0:ne.cancelAction)==null||pe.call(ne))}let N=(B,V)=>{c==="walletconnectv2"&&(B=ar);let pe=B.includes(ar);if(D(V),pe){n(fr(ar));return}_(B)},G=(B,V,ne="")=>{let pe={[ko]:V},Re=`${window.location.origin}${ne}`,ce=qg({callbackUrl:Re,urlParams:pe});i.signTransactions(B,{callbackUrl:encodeURIComponent(ce)})},Z=()=>F(void 0,null,function*(){var nt;if(l.current||!w)return;let{sessionId:B,transactions:V,callbackRoute:ne,customTransactionInformation:pe}=w,{redirectAfterSign:Re}=pe,ce=ne||window.location.pathname,et=window.location.pathname.includes(ce),tt=Re&&!et;try{if(!(yield(nt=i==null?void 0:i.init)==null?void 0:nt.call(i)))return}catch(Ce){let Be=(Ce==null?void 0:Ce.message)||Ce||Xf;console.error(Be),N(Be);return}try{l.current=!0;let Ce=yield i.signTransactions(V);if(l.current=!1,!Zs(Ce))return;let st=Object.values(Ce).map(ye=>Jr(ye)),Tt={sessionId:B,transactions:st,status:"signed"};tt&&(Tt.redirectRoute=ce),n(cn(Tt))}catch(Ce){l.current=!1;let Be=(Ce==null?void 0:Ce.message)||Ce||Zf;console.error(Be),n(cn({sessionId:B,status:"cancelled"})),N(Be.includes("cancel")?ar:Be,B)}}),z=()=>F(void 0,null,function*(){if(!w)return;M();let{sessionId:B,transactions:V,callbackRoute:ne}=w;if(!i){console.error(Jf);return}r.current=ne||window.location.pathname;try{let pe=c==="wallet",Re=yield h(V);if(pe)return G(Re,B,ne);Z()}catch(pe){let ce=(pe==null?void 0:pe.message)||Yf;console.error(ce),N(ce,B),n(cn({sessionId:B,status:"cancelled"})),console.error(ce,pe)}});return(0,Xo.useEffect)(()=>{L?z():l.current=!1},[w,L]),{error:A,canceledTransactionsMessage:T,onAbort:P,hasTransactions:L,callbackRoute:r.current,sessionId:w==null?void 0:w.sessionId,transactions:w==null?void 0:w.transactions}};s();s();var Om=ae(require("axios"));function Mm(n){return F(this,null,function*(){let{network:{apiAddress:r,apiTimeout:i}}=Kt(ee.getState()),{data:c}=yield Om.default.get(`/${Go}/${n}`,{baseURL:r,timeout:Number(i)});return c})}Ee();qe();Ro();s();cr();Ee();function Fm(){let n=Ae();return r=>{n(Wn()),n(Vr(r)),n(fr(ar))}}function Wu({onCancel:n,verifyReceiverScam:r=!0}){let{transactionsToSign:i,hasTransactions:c}=Zo(),l=$(fu),{account:{address:h}}=Ou(),{provider:T}=_n(),w=Ae(),A=Fm(),{transactions:_,sessionId:L,callbackRoute:P,customTransactionInformation:M}=i||{};function D(V){L&&w(cn({sessionId:L,status:"cancelled"})),w(rg(V))}let N=P!=null&&window.location.pathname.includes(P);function G(V){!Zs(V)||L&&(w(cn({sessionId:L,status:"signed",transactions:V.map(pe=>Jr(pe))})),P!=null&&(M==null?void 0:M.redirectAfterSign)&&!N&&Hr(P))}function Z(){n(),A(L)}function z(V){return F(this,null,function*(){return yield T.signTransaction(V)})}let B=Nu({address:h,egldLabel:l,transactionsToSign:c?_:[],onGetScamAddressData:r?Mm:null,isLedger:mt("ledger"),onCancel:Z,onSignTransaction:z,onTransactionsSignError:D,onTransactionsSignSuccess:G});return te(O({},B),{callbackRoute:P})}s();function G_(n){return Wu(n)}s();var ei=require("react");s();s();s();Ee();function Um(){ee.dispatch(ng())}function Bm(){ee.dispatch(Wn())}s();s();var V_=ae(require("bignumber.js"));Le();Ee();qe();s();var H_=ae(require("bignumber.js"));Le();s();var q_=require("@multiversx/sdk-core"),z_=ae(require("bignumber.js"));Le();s();s();s();s();Le();s();var Gm=ae(Wm());var Qs=n=>{if(!n||!(0,Gm.isString)(n))return null;let r=n.split(".");if(r.length!==4)return console.error("Invalid loginToken. You may be trying to decode a nativeAuthToken. Try using decodeNativeAuthToken method instead"),null;try{let[i,c,l,h]=r,T=JSON.parse(gr(h)),w=gr(i);return{ttl:Number(l),extraInfo:T,origin:w,blockHash:c}}catch(i){return console.error(`Error trying to decode ${n}:`,i),null}};s();function K_(n){return Object.prototype.toString.call(n)==="[object String]"}var $m=n=>{var i;if(!n||!K_(n))return null;let r=n.split(".");if(r.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[c,l,h]=r,T=gr(c),w=gr(l),A=Qs(w);if(!A)return{address:T,body:w,signature:h,blockHash:"",origin:"",ttl:0};let _=te(O({},A),{address:T,body:w,signature:h});return(i=A.extraInfo)!=null&&i.timestamp||delete _.extraInfo,_}catch(c){return null}};s();var Y_=n=>n.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),no=n=>Y_(d.Buffer.from(n,"utf8").toString("base64"));s();s();s();var Z_=ae(require("bignumber.js"));s();var qm=ae(require("axios"));s();s();s();function Hm(n){return F(this,null,function*(){return yield new Promise(r=>{setTimeout(()=>r(),n)})})}s();var Vm=(n,r,i,c=0)=>F(void 0,null,function*(){try{return yield n(...i)}catch(l){return c<r.retries?((r==null?void 0:r.delay)!=null&&(yield Hm(r.delay)),yield Vm(n,r,i,c+1)):null}}),js=(n,r={retries:5,delay:500})=>(...i)=>F(void 0,null,function*(){return yield Vm(n,r,i)});var X_=4,J_=3e4,ea={current:null},yr={current:null},Q_=js((n,r)=>F(void 0,null,function*(){let{data:i}=yield qm.default.get(`${n}/${vu}?from=${X_}&size=1&fields=hash,timestamp${r?"&shard="+r:""}`),[c]=i;return c}));function zm(n,r){return F(this,null,function*(){if(n==null)throw new Error("missing api url");let i=Date.now();if(ea.current!=null&&i<ea.current.timestamp*1e3+J_)return ea.current;if(yr.current!=null)return yield yr.current;yr.current=Q_(n,r);try{let c=yield yr.current;if(c==null)throw yr.current=null,new Error("could not get block hash");return ea.current={hash:c.hash,timestamp:c.timestamp},yr.current=null,c}catch(c){return yr.current=null,null}})}s();s();ns();var Km=n=>{let r=$m(n);if(!r)return{isExpired:!1};let i=Wr(),{ttl:c,extraInfo:l}=r,h=l==null?void 0:l.timestamp;if(!h)return{isExpired:!1};let T=h+c,w=i>T,A=T-i;return{isExpired:w,expiresAt:T,secondsUntilExpires:A}};s();var Ym,Qo={origin:typeof window!="undefined"?(Ym=window==null?void 0:window.location)==null?void 0:Ym.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},jo=n=>{var i,c,l,h,T;return n===!0?Qo:{origin:(i=n==null?void 0:n.origin)!=null?i:Qo.origin,blockHashShard:(c=n==null?void 0:n.blockHashShard)!=null?c:null,expirySeconds:(l=n==null?void 0:n.expirySeconds)!=null?l:Qo.expirySeconds,apiAddress:(h=n==null?void 0:n.apiAddress)!=null?h:Qo.apiAddress,tokenExpirationToastWarningSeconds:(T=n==null?void 0:n.tokenExpirationToastWarningSeconds)!=null?T:Qo.tokenExpirationToastWarningSeconds}};s();var Zm=({address:n,token:r,signature:i})=>{let c=no(n),l=no(r);return`${c}.${l}.${i}`};var Xm=n=>{let{origin:r,apiAddress:i,expirySeconds:c,blockHashShard:l}=jo(n);return{getNativeAuthConfig:jo,initialize:(...A)=>F(void 0,[...A],function*(T={},w){if(!i||!r)return"";let _=w!=null?w:yield zm(i,l),{hash:L,timestamp:P}=_,M=no(JSON.stringify(O(O({},T),P?{timestamp:P}:{})));return`${no(r)}.${L}.${c}.${M}`}),getToken:Zm,getTokenExpiration:Km}};Ue();zr();function j_({transactionId:n,onSuccess:r,onFail:i,onCancelled:c,onTimedOut:l}){var ne;let{signedTransactionsArray:h}=Ru(),T=mt("wallet"),[w]=h.length>0?h[h.length-1]:[],A=(ne=n!=null?n:w)!=null?ne:null,_=T?A:n,L=$(pe=>am(pe,_)),{status:P,transactions:M,errorMessage:D}=L,N=an(P),G=Bn(P),Z=vs(P),z=Un(P),B=P==="cancelled";function V(){T&&(Um(),Bm())}return(0,ei.useEffect)(()=>{z&&r&&r(_)},[z]),(0,ei.useEffect)(()=>{G&&i&&(i(_,D),V())},[G]),(0,ei.useEffect)(()=>{B&&c&&(c(_),V())},[B]),(0,ei.useEffect)(()=>{Z&&(l?l(_):i==null||i(_,"timeout"))},[Z]),_==null?{}:L==null?{errorMessage:"No transaction to track"}:{isPending:N,isSuccessful:z,isFailed:G,isCancelled:B,errorMessage:D,status:P,transactions:M}}s();var ta=require("react"),eL=(n,r)=>{let[i,c]=(0,ta.useState)(n);return(0,ta.useEffect)(()=>{let h=setTimeout(()=>c(n),r);return()=>clearTimeout(h)},[n]),i};s();s();var Gu=require("react"),Qm=require("@multiversx/sdk-extension-provider");cr();Qe();Ue();s();function je(){return Zr(ee.getState())}lr();s();var Jm=require("react"),na=require("@multiversx/sdk-core");Ee();var tL=(n,r)=>{var i;return r?r===!0?n:(i=r.apiAddress)!=null?i:n:null},Ft=n=>{let r=$(Yt),i=$(Cs),c=(0,Jm.useRef)(i==null?void 0:i.loginToken),l=tL(r.apiAddress,n),h=jo(O(O({},n===!0?{}:n),l?{apiAddress:l}:{})),T=Boolean(n),w=Xm(h),{address:A}=qn(),_=Ae(),L=N=>{c.current=N,_(cs(O({loginToken:N},l?{nativeAuthConfig:h}:{})))},P=()=>F(void 0,null,function*(){try{return yield w.initialize()}catch(N){console.error("Unable to get block. Login failed.",N);return}}),M=({address:N,signature:G})=>{let Z=c.current;if(!Z)throw"Token not found. Call `setLoginToken` first.";if(!T){_(cs({loginToken:Z,signature:G}));return}let z=w.getToken({address:N,token:Z,signature:G});_(cs(O({loginToken:Z,signature:G,nativeAuthToken:z},l?{nativeAuthConfig:h}:{})))};return{configuration:h,setLoginToken:L,getNativeAuthLoginToken:P,setTokenLoginInfo:M,refreshNativeAuthTokenLogin:G=>F(void 0,[G],function*({signMessageCallback:N}){let Z=yield P();if(c.current=Z,!Z)return;let z=new na.SignableMessage({address:new na.Address(A),message:d.Buffer.from(Z)}),B=yield N(z,{});M({address:A,signature:B.toJSON().signature})})}};var jm=({callbackRoute:n,token:r,nativeAuth:i,onLoginRedirect:c})=>{let[l,h]=(0,Gu.useState)(""),[T,w]=(0,Gu.useState)(!1),A=i!=null,_=Ft(i),L=r,P=Ae(),M=je();function D(){return F(this,null,function*(){if(M)throw new Error(Fn);w(!0);let G=Qm.ExtensionProvider.getInstance();try{if(!(yield G.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let z=encodeURIComponent(`${window.location.origin}${n!=null?n:window.location.pathname}`);if(A&&!L&&(L=yield _.getNativeAuthLoginToken(),!L)){console.warn("Fetching block failed. Login cancelled.");return}L&&_.setLoginToken(L);let B=O({callbackUrl:z},L&&{token:L});yield G.login(B),Zt(G);let{signature:V,address:ne}=G.account;if(!ne){w(!1),console.warn("Login cancelled.");return}V&&L&&_.setTokenLoginInfo({signature:V,address:ne}),P(Je({address:ne,loginMethod:"extension"})),zt({callbackRoute:n,onLoginRedirect:c,options:{signature:V,address:ne}})}catch(Z){console.error("error loging in",Z),h("error logging in"+Z.message)}finally{w(!1)}})}let N=Boolean(l);return[D,{loginFailed:N,error:l,isLoading:T&&!N,isLoggedIn:M&&!N}]};s();var $u=require("react"),eT=require("@multiversx/sdk-opera-provider");cr();Qe();Ue();lr();var tT=({callbackRoute:n,token:r,nativeAuth:i,onLoginRedirect:c})=>{let[l,h]=(0,$u.useState)(""),[T,w]=(0,$u.useState)(!1),A=i!=null,_=Ft(i),L=r,P=Ae(),M=je();function D(){return F(this,null,function*(){if(M)throw new Error(Fn);w(!0);let G=eT.OperaProvider.getInstance();try{if(!(yield G.init())){console.warn("Something went wrong trying to redirect to wallet login..");return}let z=encodeURIComponent(`${window.location.origin}${n!=null?n:window.location.pathname}`);if(A&&!L&&(L=yield _.getNativeAuthLoginToken(),!L)){console.warn("Fetching block failed. Login cancelled.");return}L&&_.setLoginToken(L);let B=O({callbackUrl:z},L&&{token:L});yield G.login(B),Zt(G);let{signature:V,address:ne}=G.account;if(!ne){w(!1),console.warn("Login cancelled.");return}V&&L&&_.setTokenLoginInfo({signature:V,address:ne}),P(Je({address:ne,loginMethod:"opera"})),zt({callbackRoute:n,onLoginRedirect:c,options:{signature:V,address:ne}})}catch(Z){console.error("error loging in",Z),h("error logging in"+Z.message)}finally{w(!1)}})}let N=Boolean(l);return[D,{loginFailed:N,error:l,isLoading:T&&!N,isLoggedIn:M&&!N}]};s();var Vu=require("react");cr();Ee();s();s();s();Vc();s();s();var nL=ae(require("platform"));s();Qe();qe();Ro();$r();Gr();var rL=n=>{let r=sn.local.getItem(qt.logoutEvent),{data:i}=r?JSON.parse(r):{data:n};n===i&&(sn.local.setItem({key:qt.logoutEvent,data:n,expires:0}),sn.local.removeItem(qt.logoutEvent))};function ra(n,r,i=!0){return F(this,null,function*(){let c=gt(),l=Vn(c),h=je(),T=l==="wallet";if(i&&(c==null?void 0:c.relogin)!=null)return yield c.relogin();if(!h||!c){Hu(n,r,!1);return}try{let w=yield qo();rL(w)}catch(w){Hu(n,r,!1),console.error("error fetching logout address",w)}T&&Ud(),ee.dispatch(ze());try{let A=T&&!n?window.location.origin:n;T?setTimeout(()=>{c.logout({callbackUrl:A})}):(yield c.logout({callbackUrl:A}),Hu(n,r,T))}catch(w){console.error("error logging out",w)}})}function Hu(n,r,i){n&&!i&&(typeof r=="function"?r(n):Hr(n))}s();s();s();s();s();s();s();s();Ro();$r();s();s();s();Ee();s();s();var nT=ae(require("axios"));function oa(n){return F(this,null,function*(){try{let{data:r}=yield nT.default.get(`${n}/websocket/config`);return`wss://${r.url}`}catch(r){throw console.error(r),new Error("Can not get websocket url")}})}s();var rT=(n,r=["address"])=>{let i=new URL(n),c=new URLSearchParams(i.search);r.forEach(T=>c.delete(T));let l=Array.from(c.values()).length>0?"?":"",h=i.pathname==="/"&&!n.endsWith("/")?"":i.pathname;return`${i.origin}${h}${l}${c.toString()}`};var oT=({callbackRoute:n,token:r,nativeAuth:i,redirectDelayMilliseconds:c=100})=>{let[l,h]=(0,Vu.useState)(""),[T,w]=(0,Vu.useState)(!1),A=$(Yt),_=Ae(),L=je(),P=Boolean(i),M=Ft(i),D=r;function N(){return F(this,null,function*(){if(L)throw new Error(Fn);try{w(!0);let Z=dm(A.walletAddress),z=new Date,B=z.setMinutes(z.getMinutes()+3)/1e3,V={data:{},expires:B};if(P&&!D&&(D=yield M.getNativeAuthLoginToken(),!D)){console.warn("Login cancelled.");return}D&&M.setLoginToken(D);let ne=`${window.location.origin}${n}`;new URLSearchParams(document.location.search).get("address")||_(Pd(V));let ce=rT(ne),et=encodeURIComponent(ce),tt=te(O({callbackUrl:et},D&&{token:D}),{redirectDelayMilliseconds:c});yield Z.login(tt)}catch(Z){console.error(Z),h("error logging in"+Z.message)}finally{w(!1)}})}let G=Boolean(l);return[N,{error:l,loginFailed:G,isLoading:T&&!G,isLoggedIn:L&&!G}]};s();var ti=require("react"),ia=require("@multiversx/sdk-hw-provider");cr();Qe();Ee();Ue();lr();s();var xr=require("react"),oL=10,iT=()=>{let[n,r]=(0,xr.useState)(""),[i,c]=(0,xr.useState)(!1),[l,h]=(0,xr.useState)(0),[T,w]=(0,xr.useState)([]),[A,_]=(0,xr.useState)(null),[L,P]=(0,xr.useState)(!1);return{accounts:T,setAccounts:w,isLoading:i,setIsLoading:c,setShowAddressList:P,showAddressList:L,startIndex:l,selectedAddress:A,onGoToPrevPage:()=>{_(null),h(G=>G===0?0:G-1)},onGoToNextPage:()=>{_(null),h(G=>G+1)},onSelectAddress:G=>{_(G)},error:n,setError:r,defaultAddressesPerPage:oL}};var ro="Check if the MultiversX App is open on Ledger";function sT({callbackRoute:n,token:r,addressesPerPage:i,nativeAuth:c,onLoginRedirect:l}){let h=$(Ng),T=Ae(),w=je(),A=c!=null,_=Ft(c),L=r,{accounts:P,setAccounts:M,isLoading:D,setIsLoading:N,setShowAddressList:G,showAddressList:Z,startIndex:z,selectedAddress:B,onGoToPrevPage:V,onGoToNextPage:ne,onSelectAddress:pe,error:Re,setError:ce,defaultAddressesPerPage:et}=iT(),tt=i!=null?i:et,nt=new ia.HWProvider,[Ce,Be]=(0,ti.useState)(""),[st,Tt]=(0,ti.useState)(!1);function ye({provider:j,address:K,index:ue,signature:Ye}){Zt(j),T(Cd({index:ue,loginType:"ledger"})),Ye&&_.setTokenLoginInfo({signature:Ye,address:K}),T(Je({address:K,loginMethod:"ledger"})),zt({callbackRoute:n,onLoginRedirect:l,options:{address:K,signature:Ye}})}let we=(j,K="")=>{let{errorMessage:ue}=ur(j);ue&&ce(`${ue}.${K}`),N(!1),console.warn(j),T(Qc(null))};function he(j){return F(this,null,function*(){if(B==null)return!1;let{index:K}=B;if(A&&!L&&(L=yield _.getNativeAuthLoginToken(),!L)){console.warn("Fetching block failed. Login cancelled.");return}if(L){_.setLoginToken(L);try{let ue=yield j.tokenLogin({token:d.Buffer.from(`${L}{}`),addressIndex:K});ye({address:ue.address,provider:j,index:K,signature:ue.signature.hex()})}catch(ue){we(ue,". Update MultiversX App to continue.")}}else try{let ue=yield j.login({addressIndex:K});ye({address:ue,provider:j,index:K})}catch(ue){return we(ue),!1}return!0})}function ie(){return F(this,null,function*(){try{if(N(!0),B==null)return!1;T(h?_d(B):Qc(te(O({},B),{version:Ce,hasContractDataEnabled:st})));let j=new ia.HWProvider;if(!(yield j.init()))return ce(ro),console.warn(ro),!1;N(!1),yield he(j)}catch(j){let{errorMessage:K}=ur(j);K&&ce(K),console.warn(ro,j)}finally{N(!1)}return G(!1),!0})}function de(){return F(this,null,function*(){try{if(N(!0),!(yield nt.init())){ce(ro),console.warn(ro),N(!1);return}let K=yield nt.getAccounts(z,tt),ue=yield gm(nt);Be(ue.version),Tt(ue.dataEnabled),M(K),N(!1)}catch(j){let{errorMessage:K,defaultErrorMessage:ue}=ur(j);ce(K!=null?K:ue),console.error("error",j),N(!1)}})}function at(){return F(this,null,function*(){if(w)throw new Error(Fn);ce("");try{if(N(!0),h!=null){let j=new ia.HWProvider;if(!(yield j.init())||!B){console.warn(ro);return}let ue=yield j.login({addressIndex:B.index.valueOf()});if(Zt(j),!ue){N(!1),console.warn("Login cancelled.");return}T(Je({address:ue,loginMethod:"ledger"})),zt({callbackRoute:n,onLoginRedirect:l})}else(P==null?void 0:P.length)>0||(yield de()),G(!0)}catch(j){console.error("error ",j);let{defaultErrorMessage:K}=ur();ce(K)}finally{N(!1)}})}(0,ti.useEffect)(()=>{de()},[z]);let Ie=Boolean(Re);return[at,{loginFailed:Ie,isLoggedIn:w&&!Ie,error:Re,isLoading:D&&!Ie},{accounts:P,showAddressList:Z,startIndex:z,selectedAddress:B,version:Ce,contractDataEnabled:st,onGoToPrevPage:V,onGoToNextPage:ne,onSelectAddress:pe,onConfirmSelectedAddress:ie}]}s();var zn=require("react"),aT=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Qe();Ee();Ue();lr();var cT=({logoutRoute:n,callbackRoute:r,nativeAuth:i,token:c,onLoginRedirect:l})=>{let h=Ae(),T=15e3,w=i!=null,A=Ft(i),_=c,[L,P]=(0,zn.useState)(""),[M,D]=(0,zn.useState)(""),{provider:N}=_n(),G=$(Ug),Z=$(Ps),z=(0,zn.useRef)(N),B=(0,zn.useRef)(!0),V,ne=Boolean(M),pe=!ne,Re=ne?`${Z}?wallet-connect=${encodeURIComponent(M)}`:"";(0,zn.useEffect)(()=>{tt();let ye=setInterval(()=>{tt()},T);return()=>clearInterval(ye)},[N]),Tr(()=>{!c||Be()},[c]),Tr(()=>{z.current=N},[N]);let ce=()=>{ra(n)},et=()=>{B.current=!1};function tt(){return F(this,null,function*(){var he,ie;if(N==null||!mt("walletconnect")||!Boolean((ie=(he=z.current)==null?void 0:he.walletConnector)==null?void 0:ie.connected))return;let we={method:"heartbeat",params:{}};try{yield z.current.sendCustomMessage(we)}catch(de){console.error("Connection lost",de),ce()}})}function nt(){return F(this,null,function*(){var ye;try{let we=z.current;if(je()||we==null||!mt("walletconnect"))return;if(!B.current){try{yield(ye=z.current)==null?void 0:ye.logout()}catch(j){console.warn("Unable to logout")}return}let ie=yield we.getAddress();if(!ie){console.warn("Login cancelled.");return}let de=yield we.getSignature(),at={address:ie,loginMethod:"walletconnect"},Ie={logoutRoute:n,loginType:"walletConnect",callbackRoute:r!=null?r:window.location.href};h(as(Ie)),de&&A.setTokenLoginInfo({signature:de,address:ie}),h(Je(at)),we.walletConnector.on("heartbeat",()=>{clearInterval(V),V=setInterval(()=>{console.log("xPortal Mobile Wallet Connection Lost"),ce(),clearInterval(V)},15e4)}),zt({callbackRoute:r,onLoginRedirect:l,options:{address:ie,signature:de}})}catch(we){P("Invalid address"),console.error(we)}})}function Ce(ye=!0){return F(this,null,function*(){var de,at;let we=ye&&!M;if(!G||((at=(de=z==null?void 0:z.current)==null?void 0:de.isInitialized)==null?void 0:at.call(de))&&!we)return;let he={onClientLogin:nt,onClientLogout:ce},ie=new aT.WalletConnectProvider(G,he);yield ie.init(),B.current=!0,Zt(ie),z.current=ie,ye&&Be()})}function Be(){return F(this,null,function*(){var ie;if(!G)return;let ye=yield(ie=z.current)==null?void 0:ie.login();if(!Boolean(ye))return;if(w&&!_&&(_=yield A.getNativeAuthLoginToken(),!_)){console.warn("Fetching block failed. Login cancelled.");return}if(!_){D(ye);return}A.setLoginToken(_);let he=`${ye}&token=${_}`;D(he)})}let st=Boolean(L),Tt=je();return[Ce,{error:L,loginFailed:st,isLoading:pe&&!st,isLoggedIn:Tt&&!st},{uriDeepLink:Re,walletConnectUri:M,cancelLogin:et}]};s();var un=require("react"),uT=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Qe();Ee();Ue();lr();var lT=({callbackRoute:n,logoutRoute:r,token:i,nativeAuth:c,onLoginRedirect:l})=>{let h=Ae(),T=c!=null,w=Ft(c),A=i,[_,L]=(0,un.useState)(""),[P,M]=(0,un.useState)(""),[D,N]=(0,un.useState)(!0),[G,Z]=(0,un.useState)([]),z=gt(),B=$(Bg),V=$(Wg),ne=$(Gg),pe=$(Uo),Re=$(Ps),ce=(0,un.useRef)(z),et=(0,un.useRef)(!0),tt=["erd_cancelAction","multiversx_cancelAction"],nt=D?"":`${Re}?wallet-connect=${encodeURIComponent(P)}`;Tr(()=>{!i||ie()},[i]),Tr(()=>{ce.current=z},[z]),(0,un.useEffect)(()=>{N(!Boolean(P))},[P]);let Ce=()=>{ra(r)},Be=Ie=>{console.log("wc2 session event: ",Ie)},st=()=>{et.current=!1};function Tt(){return F(this,null,function*(){var Ie;try{let j=ce.current;if(je()||j==null||!mt("walletconnectv2"))return;if(!et.current){try{yield(Ie=ce.current)==null?void 0:Ie.logout()}catch(Kn){console.warn("Unable to logout")}return}let ue=yield j.getAddress();if(!ue){console.warn("Login cancelled.");return}let Ye=yield j.getSignature(),Ut={address:ue,loginMethod:"walletconnectv2"},Xt={logoutRoute:r,loginType:"walletconnectv2",callbackRoute:n!=null?n:window.location.href};h(as(Xt)),Ye&&w.setTokenLoginInfo({signature:Ye,address:ue}),h(Je(Ut)),zt({callbackRoute:n,onLoginRedirect:l,options:{address:ue,signature:Ye}})}catch(j){L("Invalid address"),console.error(j)}})}function ye(Ie=!0){return F(this,null,function*(){if(!V||!B){L("Invalid WalletConnect setup");return}let j={onClientLogin:Tt,onClientLogout:Ce,onClientEvent:Be},K=new uT.WalletConnectV2Provider(j,pe,B,V,ne);yield K.init(),et.current=!0,Zt(K),Z(K.pairings),ce.current=K,Ie&&ie()})}function we(Ie){return F(this,null,function*(){var j,K,ue;if(!B||!V){L("Invalid WalletConnect setup");return}if(!Ie||!Ie.topic){L("Expired connection");return}try{let{approval:Ye}=yield(j=ce.current)==null?void 0:j.connect({topic:Ie.topic,methods:tt});if(T&&!A&&(A=yield w.getNativeAuthLoginToken(),!A)){console.warn("Fetching block failed. Login cancelled.");return}A&&w.setLoginToken(A);try{yield(K=ce.current)==null?void 0:K.login({approval:Ye,token:A})}catch(Ut){L("User rejected existing connection proposal"),N(!0),yield ye()}}catch(Ye){console.error("Unable to connect to existing session",Ye),L("Unable to connect to existing session")}finally{Z((ue=ce.current)==null?void 0:ue.pairings)}})}function he(Ie){return F(this,null,function*(){var j,K;try{Ie&&(yield(j=ce.current)==null?void 0:j.logout({topic:Ie}))}catch(ue){console.error("Unable to remove existing pairing",ue),L("Unable to remove existing pairing")}finally{Z((K=ce.current)==null?void 0:K.pairings)}})}function ie(){return F(this,null,function*(){var Ie,j;if(!B||!V){L("Invalid WalletConnect setup");return}try{let{uri:K,approval:ue}=yield(Ie=ce.current)==null?void 0:Ie.connect({methods:tt});if(!Boolean(K))return;if(M(K),T&&!A&&(A=yield w.getNativeAuthLoginToken(),!A)){console.warn("Fetching block failed. Login cancelled.");return}A&&w.setLoginToken(A);try{yield(j=ce.current)==null?void 0:j.login({approval:ue,token:A})}catch(Ut){L("User rejected connection proposal"),N(!0),yield ye()}}catch(K){console.error("Unable to connect",K)}})}let de=Boolean(_),at=je();return[ye,{error:_,loginFailed:de,isLoading:D&&!de,isLoggedIn:at&&!de},{uriDeepLink:nt,walletConnectUri:P,cancelLogin:st,connectExisting:we,removeExistingPairing:he,wcPairings:G}]};s();s();var ni=require("react");function iL(n){let[r,i]=(0,ni.useState)(),[c,l]=(0,ni.useState)();function h(){return F(this,null,function*(){try{let T=yield oa(n);i(T)}catch(T){l(T)}})}return(0,ni.useEffect)(()=>{h()},[]),{data:r,error:c,getUrl:h}}s();var dT=require("react");s();var Sr=require("react"),pT=require("socket.io-client");Ee();s();var Ln={current:null,status:"not_initialized"};var sL=3e3,aL=3,cL=500,uL=1e3;function fT(){let n=(0,Sr.useRef)(null),{address:r}=qn(),i=Ae(),{network:c}=Ho(),l=T=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{i(Ld(T))},uL)},h=(0,Sr.useCallback)(js(()=>F(this,null,function*(){Ln.status="pending";let T=yield oa(c.apiAddress);if(T==null){console.warn("Can not get websocket url");return}Ln.current=(0,pT.io)(T,{forceNew:!0,reconnectionAttempts:aL,timeout:sL,query:{address:r}}),Ln.status="completed",Ln.current.onAny(w=>{l(w)})}),{retries:2,delay:cL}),[r]);(0,Sr.useEffect)(()=>{r&&Ln.status==="not_initialized"&&!Ln.current&&h()},[r,Ln.current]),(0,Sr.useEffect)(()=>()=>{var T;(T=Ln.current)==null||T.close(),n.current&&clearTimeout(n.current)},[])}function lL(n){fT();let r=$(ks);(0,dT.useEffect)(()=>{let i=r==null?void 0:r.message;i&&n(i)},[n,r])}s();s();s();var gT=n=>n.dappModal,mT=H(gT,n=>n.visible),sa=H(gT,n=>n.modal),z3=H(sa,n=>n.showHeader),K3=H(sa,n=>n.showFooter),Y3=H(sa,n=>n.headerText),Z3=H(sa,n=>n.footerText);var pL=()=>$(mT);0&&(module.exports={useCheckTransactionStatus,useDebounce,useExtensionLogin,useGetAccount,useGetAccountInfo,useGetAccountProvider,useGetActiveTransactionsStatus,useGetFailedTransactions,useGetIsLoggedIn,useGetLastPendingTransactionHash,useGetLoginInfo,useGetNetworkConfig,useGetNotification,useGetPendingTransactions,useGetSignTransactionsError,useGetSignedTransactions,useGetSuccessfulTransactions,useGetTokenDetails,useGetTransactionDisplayInfo,useGetWebsocketEvent,useGetWebsocketUrl,useIsDappModalVisible,useLedgerLogin,useOperaLogin,useParseMultiEsdtTransferData,useParseSignedTransactions,useRegisterWebsocketListener,useSignMultipleTransactions,useSignTransactions,useSignTransactionsCommonData,useSignTransactionsWithDevice,useSignTransactionsWithLedger,useTrackTransactionStatus,useUpdateEffect,useWalletConnectLogin,useWalletConnectV2Login,useWebWalletLogin});
|
|
21
21
|
/*!
|
|
22
22
|
* The buffer module from node.js, for the browser.
|
|
23
23
|
*
|