@multiversx/sdk-dapp 2.18.2 → 2.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/Denominate/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/FormatAmount/FormatAmount.js +1 -1
- package/UI/FormatAmount/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.d.ts +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/NftSftPreviewComponent.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/TokenAvatar/TokenAvatar.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/TokenAvatar/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/signWithDeviceModal.types.d.ts +2 -2
- package/UI/SignTransactionsModals/SignWithDeviceModal/signWithDeviceModal.types.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/signWithDeviceModalStyles.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/SignWaitingScreenModal/SignWaitingScreenModal.js +1 -1
- package/UI/SignTransactionsModals/components/SignWaitingScreenModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionData/TransactionData.js +1 -1
- package/UI/TransactionData/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
- package/UI/TransactionInfo/components/DataField/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/AccountName.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.d.ts +3 -3
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.d.ts +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.d.ts +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.d.ts +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerConnect.d.ts +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerConnect.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.d.ts +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/types.d.ts +5 -5
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/PairingList.d.ts +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/PairingList.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/walletConnect/types.d.ts +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-CQOPKBJ4.js → chunk-22VC4R7K.js} +2 -2
- package/__chunks__/{chunk-ZTNNSC7R.js → chunk-24J53LEC.js} +2 -2
- package/__chunks__/chunk-2C72KP6A.js +2 -0
- package/__chunks__/{chunk-LIW4PCNY.js → chunk-2CDW64DN.js} +2 -2
- package/__chunks__/{chunk-UQKM2HDK.js → chunk-2E6WPVY6.js} +2 -2
- package/__chunks__/chunk-2IMZOT2H.js +2 -0
- package/__chunks__/{chunk-6IQAWU35.js → chunk-2NDCTBEG.js} +2 -2
- package/__chunks__/{chunk-YYHL4BAK.js → chunk-2WVVDD2C.js} +2 -2
- package/__chunks__/{chunk-JOBNULEY.js → chunk-344IHPAB.js} +2 -2
- package/__chunks__/{chunk-SFZ5MFHL.js → chunk-34ENQWAT.js} +2 -2
- package/__chunks__/{chunk-57M2FVBQ.js → chunk-367PU443.js} +2 -2
- package/__chunks__/{chunk-63XOH7YD.js → chunk-36LXLVUV.js} +2 -2
- package/__chunks__/{chunk-MLWZMX2V.js → chunk-3HWAP6C6.js} +2 -2
- package/__chunks__/{chunk-G5EN47O4.js → chunk-3MI3U7YW.js} +2 -2
- package/__chunks__/{chunk-65WMZH4Q.js → chunk-3XAWW3EJ.js} +2 -2
- package/__chunks__/chunk-42MUHTN7.js +2 -0
- package/__chunks__/{chunk-6NO6QNNN.js → chunk-42XYV6ZQ.js} +2 -2
- package/__chunks__/{chunk-PVH3J453.js → chunk-47KSXGYA.js} +2 -2
- package/__chunks__/{chunk-L6D42VTI.js → chunk-4DSQACOH.js} +2 -2
- package/__chunks__/chunk-4ENWA37J.js +2 -0
- package/__chunks__/{chunk-DINIVACL.js → chunk-4G3TKNEU.js} +2 -2
- package/__chunks__/{chunk-FHJNRJBL.js → chunk-4G76SVVZ.js} +2 -2
- package/__chunks__/{chunk-CHENOWBR.js → chunk-4LDC6QPX.js} +2 -2
- package/__chunks__/chunk-4NZTOFHX.js +2 -0
- package/__chunks__/{chunk-VSFHBAPB.js → chunk-4O4HJWLO.js} +2 -2
- package/__chunks__/chunk-4TKU2AT7.js +2 -0
- package/__chunks__/{chunk-2LMVCI6Z.js → chunk-4TUDKHKW.js} +2 -2
- package/__chunks__/{chunk-U7WL5TLN.js → chunk-4YCXAYUS.js} +2 -2
- package/__chunks__/{chunk-XT4WAJCA.js → chunk-565ANTQJ.js} +2 -2
- package/__chunks__/{chunk-IXIWVP4B.js → chunk-5ARWYACS.js} +2 -2
- package/__chunks__/{chunk-SHQLVF2Z.js → chunk-5CEAXF3F.js} +2 -2
- package/__chunks__/{chunk-G4PNB37E.js → chunk-5E4CODUZ.js} +2 -2
- package/__chunks__/{chunk-UHBGZA5B.js → chunk-5EPRUJGX.js} +2 -2
- package/__chunks__/{chunk-OTKIU24A.js → chunk-5EXDJ436.js} +2 -2
- package/__chunks__/chunk-5IKI535G.js +2 -0
- package/__chunks__/{chunk-EWJHR55O.js → chunk-5J2WQIQP.js} +2 -2
- package/__chunks__/{chunk-ESCZOLEU.js → chunk-5KKZKMH3.js} +2 -2
- package/__chunks__/{chunk-F2UTR4BA.js → chunk-5VVOLVDM.js} +2 -2
- package/__chunks__/{chunk-6JRB3XNG.js → chunk-5ZVLIN32.js} +2 -2
- package/__chunks__/{chunk-SK3TX2JW.js → chunk-66C4TL75.js} +2 -2
- package/__chunks__/{chunk-JZB3RV5G.js → chunk-6AFQMMDN.js} +2 -2
- package/__chunks__/{chunk-OQYYJNPS.js → chunk-6CPFEOVO.js} +2 -2
- package/__chunks__/{chunk-V7HQL44Z.js → chunk-6DPNKAL3.js} +2 -2
- package/__chunks__/{chunk-4XWYF5MO.js → chunk-6FODTBJG.js} +2 -2
- package/__chunks__/{chunk-XJTC4BDE.js → chunk-6J3K7V46.js} +2 -2
- package/__chunks__/{chunk-42EH3TV6.js → chunk-6KCQ4IGK.js} +2 -2
- package/__chunks__/{chunk-HNYK75C6.js → chunk-6MF7U6SR.js} +2 -2
- package/__chunks__/chunk-6NCOJHJV.js +2 -0
- package/__chunks__/{chunk-7AHAWNZL.js → chunk-6TPQI6Z7.js} +2 -2
- package/__chunks__/{chunk-FIUVSWMG.js → chunk-6VSN353O.js} +2 -2
- package/__chunks__/chunk-6XKQ65JS.js +2 -0
- package/__chunks__/chunk-6YZRWV5E.js +2 -0
- package/__chunks__/{chunk-LLQTU6K6.js → chunk-6ZGHOE63.js} +2 -2
- package/__chunks__/{chunk-WZYJYVJB.js → chunk-74ZC3R6O.js} +2 -2
- package/__chunks__/chunk-7AXGCLMA.js +2 -0
- package/__chunks__/{chunk-5ZM7EFKY.js → chunk-7GFFC4SB.js} +2 -2
- package/__chunks__/{chunk-M7OMVMLA.js → chunk-7IITRMJ2.js} +2 -2
- package/__chunks__/{chunk-FON3HS2N.js → chunk-7LDB4QLC.js} +2 -2
- package/__chunks__/{chunk-PPFK5IIV.js → chunk-7M7XNPLL.js} +2 -2
- package/__chunks__/{chunk-UOCHSWSL.js → chunk-7Z4WI5WW.js} +2 -2
- package/__chunks__/{chunk-JSL4BMMU.js → chunk-A5DTA43U.js} +2 -2
- package/__chunks__/{chunk-EIFPQY36.js → chunk-A5QVCEFM.js} +2 -2
- package/__chunks__/{chunk-GYCPQZWA.js → chunk-AH67IENR.js} +2 -2
- package/__chunks__/{chunk-6YL2FMI2.js → chunk-AMAOFO4W.js} +2 -2
- package/__chunks__/chunk-AUWLQIRR.js +2 -0
- package/__chunks__/{chunk-MMR3BO5R.js → chunk-AWEMOQRC.js} +2 -2
- package/__chunks__/chunk-B4YCZXOZ.js +2 -0
- package/__chunks__/{chunk-F7LGWJLQ.js → chunk-B5HXMUGG.js} +2 -2
- package/__chunks__/{chunk-7OFVONHP.js → chunk-BA3RHK6Z.js} +2 -2
- package/__chunks__/{chunk-UYPUC3XT.js → chunk-BAAEUEII.js} +2 -2
- package/__chunks__/{chunk-ATDPWP3U.js → chunk-BNJSY7J5.js} +2 -2
- package/__chunks__/{chunk-I2QYCKTV.js → chunk-BXHTHOZR.js} +2 -2
- package/__chunks__/{chunk-R5V5OC25.js → chunk-BZTA2YRU.js} +2 -2
- package/__chunks__/{chunk-UHHLAXLL.js → chunk-C4BRHKXX.js} +2 -2
- package/__chunks__/{chunk-UEG6KXTS.js → chunk-C4LP5M5T.js} +2 -2
- package/__chunks__/{chunk-YEGZ5ICO.js → chunk-C6DYQAVM.js} +2 -2
- package/__chunks__/{chunk-IDMAUEZK.js → chunk-C6YOZHYR.js} +2 -2
- package/__chunks__/chunk-CITPVV7J.js +2 -0
- package/__chunks__/{chunk-JERJ3WUA.js → chunk-CL4FKRMX.js} +2 -2
- package/__chunks__/{chunk-BSL3SGZO.js → chunk-CPWIJX6B.js} +2 -2
- package/__chunks__/{chunk-KJW77TAP.js → chunk-CYPIH3WR.js} +2 -2
- package/__chunks__/{chunk-JBLSND4R.js → chunk-D24GB3MY.js} +2 -2
- package/__chunks__/{chunk-X44DH45Y.js → chunk-D3EPGPZZ.js} +2 -2
- package/__chunks__/{chunk-YP2XJKSG.js → chunk-D67YA73L.js} +2 -2
- package/__chunks__/{chunk-T7WCFDWM.js → chunk-DLFRO7LS.js} +2 -2
- package/__chunks__/{chunk-4JZIP4MZ.js → chunk-DPS3V6AF.js} +2 -2
- package/__chunks__/{chunk-R45OANTD.js → chunk-DQFDGC6B.js} +2 -2
- package/__chunks__/{chunk-VJKIGLYI.js → chunk-DTKMFSCW.js} +2 -2
- package/__chunks__/{chunk-6RINLDWT.js → chunk-E5D5O36P.js} +2 -2
- package/__chunks__/{chunk-IYKDEKFD.js → chunk-EAQVUEUM.js} +2 -2
- package/__chunks__/{chunk-2HAQT3SN.js → chunk-EBW4NNXZ.js} +2 -2
- package/__chunks__/{chunk-J3S4T7LR.js → chunk-EC3WSDRD.js} +2 -2
- package/__chunks__/{chunk-YIJYMGI3.js → chunk-EDQXUTZB.js} +2 -2
- package/__chunks__/{chunk-5U5YNFCY.js → chunk-EEV7NHTP.js} +2 -2
- package/__chunks__/{chunk-HOIFE66X.js → chunk-EFH7TKF4.js} +2 -2
- package/__chunks__/{chunk-PQWMWOCC.js → chunk-EHHQ7RCD.js} +2 -2
- package/__chunks__/{chunk-EALUHBYZ.js → chunk-EK34NSS7.js} +2 -2
- package/__chunks__/chunk-ERUKHBY5.js +2 -0
- package/__chunks__/{chunk-HRVVHIY5.js → chunk-EYJ2WVZX.js} +2 -2
- package/__chunks__/chunk-F34P34C2.js +2 -0
- package/__chunks__/{chunk-PM4TNZQ4.js → chunk-F65KGKAM.js} +2 -2
- package/__chunks__/{chunk-QIPOHLCA.js → chunk-FBFBUGZD.js} +2 -2
- package/__chunks__/{chunk-37OUENR6.js → chunk-FEUC2YSR.js} +2 -2
- package/__chunks__/chunk-FGSX7QMZ.js +2 -0
- package/__chunks__/{chunk-I27O7XAY.js → chunk-FHT2MFKD.js} +2 -2
- package/__chunks__/{chunk-5P6Y2T3Q.js → chunk-FKHPEWIA.js} +2 -2
- package/__chunks__/{chunk-D7LBBB6O.js → chunk-FPGLS3WS.js} +2 -2
- package/__chunks__/chunk-FXIZNFYO.js +2 -0
- package/__chunks__/{chunk-H57TVETW.js → chunk-FZHHZPGL.js} +2 -2
- package/__chunks__/chunk-FZRXZ642.js +2 -0
- package/__chunks__/chunk-G2XN6I7I.js +2 -0
- package/__chunks__/{chunk-ZCZRGT22.js → chunk-G54WHQ2U.js} +2 -2
- package/__chunks__/{chunk-OMZJPLBB.js → chunk-G7JGUBNV.js} +2 -2
- package/__chunks__/chunk-GA4MZQ5Q.js +2 -0
- package/__chunks__/{chunk-6EPF475O.js → chunk-GB2ERK5H.js} +2 -2
- package/__chunks__/chunk-GBQBTT2B.js +2 -0
- package/__chunks__/{chunk-OZW4OPS3.js → chunk-GBSPF2TY.js} +2 -2
- package/__chunks__/{chunk-F7PQBE5R.js → chunk-GGBLCTWH.js} +2 -2
- package/__chunks__/{chunk-75QHQTC6.js → chunk-GLF56QW4.js} +2 -2
- package/__chunks__/chunk-GLFCQ5ZP.js +2 -0
- package/__chunks__/{chunk-XUMRFXCP.js → chunk-GMEIQXNN.js} +2 -2
- package/__chunks__/{chunk-ZK4SSPBE.js → chunk-GT6C6CGD.js} +2 -2
- package/__chunks__/{chunk-7LEJP2LZ.js → chunk-GUZNQYXM.js} +2 -2
- package/__chunks__/{chunk-NSAHDTP4.js → chunk-GWFK42XY.js} +2 -2
- package/__chunks__/{chunk-HC3M22M5.js → chunk-H4ZUV52J.js} +2 -2
- package/__chunks__/chunk-HADT7GVE.js +2 -0
- package/__chunks__/{chunk-T2HFFFMD.js → chunk-HD5YQBXJ.js} +2 -2
- package/__chunks__/chunk-HDNZDBP3.js +2 -0
- package/__chunks__/chunk-HEUT7DZW.js +2 -0
- package/__chunks__/{chunk-S2UUP44S.js → chunk-HKFCYCAA.js} +2 -2
- package/__chunks__/{chunk-GYQ23MTM.js → chunk-HMCEFQG2.js} +2 -2
- package/__chunks__/{chunk-VOLFB77F.js → chunk-HPELT2OT.js} +2 -2
- package/__chunks__/{chunk-BRWO3B7M.js → chunk-HYFXV43S.js} +2 -2
- package/__chunks__/{chunk-IHWFSKBE.js → chunk-I3E4R7IN.js} +2 -2
- package/__chunks__/chunk-I4XNWAAW.js +2 -0
- package/__chunks__/{chunk-ALGFU3C4.js → chunk-IAPOUKV7.js} +2 -2
- package/__chunks__/{chunk-ZQIMVWAJ.js → chunk-IC6GQL3I.js} +2 -2
- package/__chunks__/{chunk-IPO2V7K6.js → chunk-ILDXWYV6.js} +2 -2
- package/__chunks__/{chunk-XXCWWWCV.js → chunk-IOYWE2MY.js} +2 -2
- package/__chunks__/chunk-IXHE4AK7.js +2 -0
- package/__chunks__/{chunk-3SQ7VNRQ.js → chunk-IYBA436S.js} +2 -2
- package/__chunks__/{chunk-FV3LSSPU.js → chunk-IYRMVZSK.js} +2 -2
- package/__chunks__/chunk-J4XLLDCU.js +2 -0
- package/__chunks__/{chunk-TIMBF64K.js → chunk-J57A4ZIV.js} +2 -2
- package/__chunks__/{chunk-6VBMKOXT.js → chunk-JGJJ3BAQ.js} +2 -2
- package/__chunks__/chunk-JLRRZLZW.js +2 -0
- package/__chunks__/{chunk-RMJM7N27.js → chunk-JMEN2BT6.js} +2 -2
- package/__chunks__/chunk-JNACYY4M.js +2 -0
- package/__chunks__/{chunk-K2YLAIKJ.js → chunk-JWOME4UV.js} +2 -2
- package/__chunks__/{chunk-NV5J2IHR.js → chunk-JYG4LB4L.js} +46 -2
- package/__chunks__/{chunk-JCP5VZIV.js → chunk-KB4HPG7K.js} +2 -2
- package/__chunks__/{chunk-VJ7EJTDT.js → chunk-KCIEHHK5.js} +2 -2
- package/__chunks__/{chunk-HWWZC2PJ.js → chunk-KGXAVPBN.js} +2 -2
- package/__chunks__/{chunk-O55ZEHYK.js → chunk-KO4JTE3R.js} +2 -2
- package/__chunks__/{chunk-H7ZDHPZS.js → chunk-KPTYCZ6X.js} +2 -2
- package/__chunks__/{chunk-JCAVKQCB.js → chunk-KQ6RHOUO.js} +2 -2
- package/__chunks__/{chunk-3EQ6PEPQ.js → chunk-KRAIIDVX.js} +2 -2
- package/__chunks__/{chunk-AGTFCXAF.js → chunk-KRTYTZWA.js} +2 -2
- package/__chunks__/{chunk-YL5SQL7A.js → chunk-KSAN5HHI.js} +2 -2
- package/__chunks__/{chunk-5DWSRIQ7.js → chunk-KXAQKQJ5.js} +2 -2
- package/__chunks__/{chunk-NXSPVF5F.js → chunk-L42M4ADI.js} +2 -2
- package/__chunks__/{chunk-5X2CUGXD.js → chunk-L6334IP4.js} +2 -2
- package/__chunks__/{chunk-K4OPGDIM.js → chunk-L66B6R36.js} +2 -2
- package/__chunks__/{chunk-P4Q7TRB7.js → chunk-LGDRHD5B.js} +2 -2
- package/__chunks__/{chunk-AROY756B.js → chunk-LK3U6VTM.js} +2 -2
- package/__chunks__/{chunk-OW2HARSM.js → chunk-LVLP56D3.js} +2 -2
- package/__chunks__/{chunk-JBOPJBHK.js → chunk-LVXGESWC.js} +2 -2
- package/__chunks__/{chunk-LLCFR6J2.js → chunk-LZ62MPUN.js} +2 -2
- package/__chunks__/{chunk-3NRFYI4L.js → chunk-LZIBKKGS.js} +2 -2
- package/__chunks__/chunk-M3AIC2VT.js +2 -0
- package/__chunks__/{chunk-CN4WMJ52.js → chunk-MEO3W33N.js} +2 -2
- package/__chunks__/{chunk-GLFSVBC3.js → chunk-MHIININZ.js} +2 -2
- package/__chunks__/{chunk-UGZMPK43.js → chunk-MI7XDXAY.js} +2 -2
- package/__chunks__/{chunk-HNTAU5RY.js → chunk-ML2ZA4N6.js} +2 -2
- package/__chunks__/{chunk-BCJ44OTW.js → chunk-MQRODDA2.js} +2 -2
- package/__chunks__/chunk-MWTBI345.js +2 -0
- package/__chunks__/{chunk-NXGU54SJ.js → chunk-MZSZYWJ4.js} +2 -2
- package/__chunks__/{chunk-JDNBXQS6.js → chunk-N7P7SN7L.js} +2 -2
- package/__chunks__/{chunk-NFMPXZDD.js → chunk-NA4KDV5C.js} +2 -2
- package/__chunks__/chunk-NB6A4R4P.js +2 -0
- package/__chunks__/{chunk-CCLMUL26.js → chunk-NBSDDDTS.js} +2 -2
- package/__chunks__/{chunk-CEZBTLKK.js → chunk-NDXT6B2G.js} +2 -2
- package/__chunks__/chunk-NETFZ33D.js +2 -0
- package/__chunks__/{chunk-G6P2ZSMV.js → chunk-NHQ7EJNH.js} +2 -2
- package/__chunks__/{chunk-AI5SVQMB.js → chunk-NJZGBPRS.js} +2 -2
- package/__chunks__/{chunk-HKZ3OASA.js → chunk-NKWGWB3J.js} +2 -2
- package/__chunks__/{chunk-BVJM6KBC.js → chunk-NQKVORAZ.js} +2 -2
- package/__chunks__/{chunk-K3ARAMEQ.js → chunk-NW5WYYVG.js} +2 -2
- package/__chunks__/{chunk-46ZOIIE2.js → chunk-O2A77OUA.js} +2 -2
- package/__chunks__/{chunk-VOH7HY47.js → chunk-O5SMSRMP.js} +2 -2
- package/__chunks__/{chunk-6J3IQQMO.js → chunk-OCXK564F.js} +2 -2
- package/__chunks__/chunk-ODMKQFPP.js +2 -0
- package/__chunks__/chunk-OSHWSKDM.js +2 -0
- package/__chunks__/chunk-OW5T4A3R.js +2 -0
- package/__chunks__/{chunk-TQI3XDG2.js → chunk-P2DADEQZ.js} +2 -2
- package/__chunks__/{chunk-5A5HL7VW.js → chunk-PGMLETW5.js} +2 -2
- package/__chunks__/{chunk-2WA2XC2F.js → chunk-PQBJB6BB.js} +2 -2
- package/__chunks__/chunk-PTLMCW33.js +2 -0
- package/__chunks__/chunk-PX36FZNY.js +2 -0
- package/__chunks__/{chunk-Y2XNU4N4.js → chunk-PZ55H2QS.js} +2 -2
- package/__chunks__/chunk-Q65BFOED.js +2 -0
- package/__chunks__/{chunk-CS2HR42U.js → chunk-QDMQFE7W.js} +2 -2
- package/__chunks__/{chunk-VZRSR4NG.js → chunk-QF23CR5L.js} +2 -2
- package/__chunks__/{chunk-O6ORWBIB.js → chunk-QGLM7F4A.js} +2 -2
- package/__chunks__/{chunk-25NFBJIK.js → chunk-QNL7U235.js} +2 -2
- package/__chunks__/{chunk-HJBXC7VN.js → chunk-QPQXLUA6.js} +1 -1
- package/__chunks__/{chunk-3LJKDWEF.js → chunk-QRKFS3YO.js} +2 -2
- package/__chunks__/{chunk-3T4KMDIW.js → chunk-R24Z2WHQ.js} +2 -2
- package/__chunks__/{chunk-7PDOXYNN.js → chunk-R4DM5IU4.js} +2 -2
- package/__chunks__/{chunk-2M53UG2E.js → chunk-R4OOGXMR.js} +2 -2
- package/__chunks__/{chunk-PQITXGBS.js → chunk-R4UQUGAB.js} +2 -2
- package/__chunks__/{chunk-6K6QJDS7.js → chunk-R5PP42IR.js} +2 -2
- package/__chunks__/chunk-RAJU6AAU.js +2 -0
- package/__chunks__/{chunk-WKW26PAR.js → chunk-RDJ4UFVR.js} +2 -2
- package/__chunks__/{chunk-NMDTBSPF.js → chunk-RHXO6KIS.js} +2 -2
- package/__chunks__/{chunk-OYUCK56S.js → chunk-RJMI4S65.js} +2 -2
- package/__chunks__/{chunk-UBLWOKN3.js → chunk-RL6ZMM3N.js} +2 -2
- package/__chunks__/{chunk-4GIFJMNL.js → chunk-RNSZOQME.js} +2 -2
- package/__chunks__/{chunk-ADWG3HJE.js → chunk-RPZLC2JA.js} +2 -2
- package/__chunks__/chunk-RR2RGZB3.js +2 -0
- package/__chunks__/{chunk-TTD4P2V2.js → chunk-RUKBHCZM.js} +2 -2
- package/__chunks__/{chunk-S2YSMYSV.js → chunk-RUV2IWSN.js} +2 -2
- package/__chunks__/{chunk-E3SDJWHV.js → chunk-RVJA4EYX.js} +2 -2
- package/__chunks__/{chunk-XYS7YPNU.js → chunk-RXLDQEIN.js} +2 -2
- package/__chunks__/{chunk-BTTZKFDB.js → chunk-RYKCWUDH.js} +2 -2
- package/__chunks__/chunk-S2KIEAKC.js +2 -0
- package/__chunks__/{chunk-YBVWKTOL.js → chunk-S3FQJPU2.js} +2 -2
- package/__chunks__/chunk-SDEIU7G7.js +2 -0
- package/__chunks__/chunk-SIW5FBP6.js +2 -0
- package/__chunks__/{chunk-AVSJFZUN.js → chunk-SKLNEX4G.js} +2 -2
- package/__chunks__/chunk-SMBTXKSN.js +2 -0
- package/__chunks__/{chunk-DQSHRAPQ.js → chunk-STC7SLYY.js} +2 -2
- package/__chunks__/{chunk-TH4T2ZT7.js → chunk-SY7QIZKW.js} +2 -2
- package/__chunks__/{chunk-T6CIHLJK.js → chunk-SZFGQMVV.js} +2 -2
- package/__chunks__/{chunk-KJPXC3CM.js → chunk-T35AJVML.js} +2 -2
- package/__chunks__/{chunk-VZ7DKDDV.js → chunk-T37AEPPG.js} +2 -2
- package/__chunks__/{chunk-CZDVI6KD.js → chunk-TAMP6EDO.js} +2 -2
- package/__chunks__/chunk-TAX3ODCH.js +2 -0
- package/__chunks__/{chunk-NQH2WPI4.js → chunk-TDBWE6B2.js} +2 -2
- package/__chunks__/{chunk-IZRCTDAE.js → chunk-TFKCXXAI.js} +2 -2
- package/__chunks__/{chunk-MQXG2QCL.js → chunk-TLNFPKZB.js} +2 -2
- package/__chunks__/{chunk-6DUDX3ZV.js → chunk-TQTMBYQP.js} +2 -2
- package/__chunks__/{chunk-KNDRZIUU.js → chunk-TWWOI7AE.js} +2 -2
- package/__chunks__/{chunk-JECEXPH4.js → chunk-TZG6KWPN.js} +2 -2
- package/__chunks__/{chunk-OF6TZTAD.js → chunk-U2K4RKN7.js} +2 -2
- package/__chunks__/chunk-U2NXGZNM.js +2 -0
- package/__chunks__/{chunk-6YSS3HKB.js → chunk-U4WAD2T2.js} +2 -2
- package/__chunks__/{chunk-DZL4ZTPK.js → chunk-UCHVI5OI.js} +2 -2
- package/__chunks__/{chunk-P4QD76XE.js → chunk-UDHFC4IE.js} +2 -2
- package/__chunks__/{chunk-JXRUBWRJ.js → chunk-UGLRI536.js} +2 -2
- package/__chunks__/{chunk-H3UGBWZ2.js → chunk-UGROT4II.js} +2 -2
- package/__chunks__/chunk-UHAV56KW.js +2 -0
- package/__chunks__/{chunk-TT3I5FG3.js → chunk-UHAZOWDF.js} +2 -2
- package/__chunks__/{chunk-F7BHLRXX.js → chunk-UMOZ6GXE.js} +2 -2
- package/__chunks__/{chunk-6UFTA2KE.js → chunk-UNNAJ64B.js} +2 -2
- package/__chunks__/{chunk-42RZZ2DN.js → chunk-UO5ZX6GN.js} +2 -2
- package/__chunks__/{chunk-F2EL7SI2.js → chunk-URV5VGR7.js} +2 -2
- package/__chunks__/{chunk-HVKIRZGI.js → chunk-UX6MKUWK.js} +2 -2
- package/__chunks__/{chunk-G3CGA6EN.js → chunk-UXT7LULZ.js} +2 -2
- package/__chunks__/{chunk-KLLMBYT2.js → chunk-VETI3GLW.js} +2 -2
- package/__chunks__/{chunk-IBBOWJQH.js → chunk-VHJ7CFJZ.js} +2 -2
- package/__chunks__/{chunk-6IC7HFGE.js → chunk-VIXP2HNX.js} +2 -2
- package/__chunks__/{chunk-Y75UFRU5.js → chunk-VNDKOOCB.js} +2 -2
- package/__chunks__/{chunk-II7EL2IW.js → chunk-VODRG26V.js} +2 -2
- package/__chunks__/{chunk-XJ7YVMAF.js → chunk-VT5BQUXE.js} +2 -2
- package/__chunks__/{chunk-2YD2X3HX.js → chunk-VTR6BXNR.js} +2 -2
- package/__chunks__/{chunk-PRWSMDU3.js → chunk-VWVMHICH.js} +2 -2
- package/__chunks__/chunk-W3TLFROK.js +2 -0
- package/__chunks__/{chunk-6MYAIIWI.js → chunk-W45IIKO4.js} +2 -2
- package/__chunks__/{chunk-YPFQX2L6.js → chunk-W5S4FBX3.js} +2 -2
- package/__chunks__/chunk-WADVQNZT.js +2 -0
- package/__chunks__/{chunk-5WP5EPQZ.js → chunk-WBGBZHG2.js} +2 -2
- package/__chunks__/{chunk-MJ5K23DD.js → chunk-WFSUDBMF.js} +2 -2
- package/__chunks__/{chunk-ZEIRAELP.js → chunk-WIT24GHQ.js} +2 -2
- package/__chunks__/{chunk-2EUGIZCD.js → chunk-WJZALUDQ.js} +2 -2
- package/__chunks__/{chunk-JHJYOCPK.js → chunk-WM2IQT5N.js} +2 -2
- package/__chunks__/{chunk-ZJ6GRZFP.js → chunk-WNROMTCY.js} +2 -2
- package/__chunks__/{chunk-2HGT5HUY.js → chunk-WPVECUGW.js} +2 -2
- package/__chunks__/{chunk-Y2ELF2XF.js → chunk-WRKQSJH4.js} +2 -2
- package/__chunks__/{chunk-ORYKT3AW.js → chunk-WXHFC2J6.js} +2 -2
- package/__chunks__/chunk-X2EWMY52.js +2 -0
- package/__chunks__/chunk-X7OUQZ64.js +2 -0
- package/__chunks__/{chunk-A7GRGXCZ.js → chunk-XDDNMEGZ.js} +2 -2
- package/__chunks__/{chunk-BT63GVIQ.js → chunk-XFYNMPLT.js} +2 -2
- package/__chunks__/{chunk-BPRFT4DY.js → chunk-XGA62SYU.js} +2 -2
- package/__chunks__/chunk-XIIHH5KJ.js +2 -0
- package/__chunks__/{chunk-GJZGEJB4.js → chunk-XKMCBLTW.js} +2 -2
- package/__chunks__/{chunk-A5VG4EB6.js → chunk-XOHUSHAE.js} +2 -2
- package/__chunks__/{chunk-AOH524ES.js → chunk-XQF3PREW.js} +2 -2
- package/__chunks__/{chunk-5A3G5NYW.js → chunk-XUIL4YVL.js} +2 -2
- package/__chunks__/{chunk-GN25ROQN.js → chunk-XW3URHSM.js} +2 -2
- package/__chunks__/{chunk-KV7MHI3X.js → chunk-XY6X72WE.js} +2 -2
- package/__chunks__/{chunk-D24QW6HX.js → chunk-XZCUB6I2.js} +2 -2
- package/__chunks__/{chunk-WRRXSW7G.js → chunk-Y263UO4L.js} +2 -2
- package/__chunks__/{chunk-ZFEJ5B2I.js → chunk-Y6ZQV6HJ.js} +2 -2
- package/__chunks__/chunk-YA46ZLAD.js +2 -0
- package/__chunks__/{chunk-IGYLTHBH.js → chunk-YC52HABJ.js} +2 -2
- package/__chunks__/{chunk-M2ZYFY4G.js → chunk-YEOGYQXP.js} +2 -2
- package/__chunks__/{chunk-EXLR262L.js → chunk-YEX42YX6.js} +2 -2
- package/__chunks__/{chunk-EDKQPABI.js → chunk-YINMDBB3.js} +2 -2
- package/__chunks__/{chunk-EYGEG2GI.js → chunk-YNE2MWFP.js} +2 -2
- package/__chunks__/chunk-YRTXAFVR.js +2 -0
- package/__chunks__/{chunk-NZTFDG6J.js → chunk-ZF46JJJ3.js} +2 -2
- package/__chunks__/{chunk-74MWN6L2.js → chunk-ZGWNHYWV.js} +2 -2
- package/__chunks__/{chunk-27R37OWX.js → chunk-ZLMOGDRX.js} +2 -2
- package/__chunks__/{chunk-3PP7DN5Q.js → chunk-ZP25LDCV.js} +2 -2
- package/__chunks__/{chunk-IMTOYSHP.js → chunk-ZSCIALZ4.js} +2 -2
- package/__chunks__/{chunk-OEEFIMER.js → chunk-ZTOSK6JE.js} +2 -2
- package/__chunks__/chunk-ZU64TNDV.js +2 -0
- package/__chunks__/{chunk-UXZSFWHY.js → chunk-ZXHO3MQD.js} +2 -2
- package/__commonjs/UI/DappModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +64 -20
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +59 -15
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +60 -16
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.d.ts +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +8 -8
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/TokenAvatar/TokenAvatar.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/TokenAvatar/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +8 -8
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +60 -16
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/signWithDeviceModal.types.d.ts +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/signWithDeviceModal.types.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/signWithDeviceModalStyles.js +46 -2
- package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +63 -19
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +63 -19
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +2 -2
- package/__commonjs/UI/SignTransactionsModals/index.js +64 -20
- package/__commonjs/UI/TransactionData/TransactionData.js +3 -3
- package/__commonjs/UI/TransactionData/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/DataDecode/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +8 -8
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationText.js +9 -9
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/TransactionStatus/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +7 -7
- package/__commonjs/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
- package/__commonjs/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/__commonjs/UI/TransactionsTable/components/TransactionIcon.js +10 -10
- package/__commonjs/UI/TransactionsTable/components/TransactionReceiver.js +5 -5
- package/__commonjs/UI/TransactionsTable/components/TransactionSender.js +5 -5
- package/__commonjs/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +3 -3
- package/__commonjs/UI/TransactionsTable/components/TransactionValue/index.js +3 -3
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/__commonjs/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +3 -3
- package/__commonjs/UI/extension/ExtensionLoginButton/index.js +3 -3
- package/__commonjs/UI/index.js +126 -82
- package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.d.ts +3 -3
- package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +6 -6
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +6 -6
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.d.ts +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.js +5 -5
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.d.ts +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.d.ts +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerConnect.d.ts +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.d.ts +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +6 -6
- package/__commonjs/UI/ledger/LedgerLoginContainer/types.d.ts +5 -5
- package/__commonjs/UI/ledger/LedgerLoginContainer/types.js +1 -1
- package/__commonjs/UI/ledger/index.js +6 -6
- package/__commonjs/UI/pages/UnlockPage/index.js +13 -13
- package/__commonjs/UI/pages/index.js +13 -13
- package/__commonjs/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +5 -5
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +5 -5
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/PairingList.d.ts +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +6 -6
- package/__commonjs/UI/walletConnect/index.js +5 -5
- package/__commonjs/UI/walletConnect/types.d.ts +1 -1
- package/__commonjs/UI/walletConnect/types.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/server.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/components/BatchTransactionsSender/BatchTransactionsSender.js +1 -1
- package/__commonjs/components/BatchTransactionsSender/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/__commonjs/components/ProviderInitializer.js +1 -1
- package/__commonjs/components/TransactionSender/TransactionSender.js +1 -1
- package/__commonjs/components/TransactionSender/index.js +1 -1
- package/__commonjs/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/__commonjs/components/TransactionsTracker/index.js +1 -1
- package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/__commonjs/hooks/account/useGetAccountProvider.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/transactions/batch/useGetBatchStatus.js +1 -1
- package/__commonjs/hooks/transactions/helpers/buildBatchId.js +1 -1
- package/__commonjs/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/__commonjs/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/__commonjs/hooks/useGetNetworkConfig.js +1 -1
- package/__commonjs/models/index.js +1 -1
- package/__commonjs/models/newTransaction.js +1 -1
- package/__commonjs/providers/accountProvider.js +1 -1
- package/__commonjs/providers/index.js +1 -1
- package/__commonjs/providers/utils.js +1 -1
- package/__commonjs/providers/webviewProvider/index.js +1 -1
- package/__commonjs/providers/webviewProvider/requestMethods.js +1 -1
- package/__commonjs/providers/webviewProvider/webviewProvider.js +1 -1
- package/__commonjs/reduxStore/persistedRootReducer.js +1 -1
- package/__commonjs/reduxStore/selectors/batchTransactionsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/dappConfigSelector.js +1 -1
- package/__commonjs/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/toastsSelectors.js +1 -1
- package/__commonjs/reduxStore/slices/accountInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/loginInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/modalsSlice.js +1 -1
- package/__commonjs/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/getAuthorizationInfo.d.ts +3 -1
- package/__commonjs/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/index.js +1 -1
- package/__commonjs/services/transactions/getTransactionsDetails.js +1 -1
- package/__commonjs/services/transactions/signTransactions.js +1 -1
- package/__commonjs/services/transactions/utils.js +1 -1
- package/__commonjs/types/index.js +1 -1
- package/__commonjs/types/transactions.types.d.ts +6 -6
- package/__commonjs/types/transactions.types.js +1 -1
- package/__commonjs/utils/account/getAccountProviderType.js +1 -1
- package/__commonjs/utils/account/refreshAccount.js +1 -1
- package/__commonjs/utils/logout.js +1 -1
- package/__commonjs/utils/network/getChainID.js +1 -1
- package/__commonjs/utils/operations/calculateFeeInFiat.js +1 -1
- package/__commonjs/utils/operations/calculateFeeLimit.js +1 -1
- package/__commonjs/utils/operations/denominate.js +1 -1
- package/__commonjs/utils/operations/formatAmount.js +1 -1
- package/__commonjs/utils/operations/index.js +1 -1
- package/__commonjs/utils/transactions/batch/getTransactionsStatus.js +1 -1
- package/__commonjs/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +2 -2
- package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/__commonjs/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +2 -2
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +3 -3
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/__commonjs/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
- package/__commonjs/wrappers/AppInitializer.js +1 -1
- package/__commonjs/wrappers/DappProvider/CustomComponents.js +1 -1
- package/__commonjs/wrappers/DappProvider/DappProvider.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/accountConfig.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/server.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/economics/getEconomicsInfo.js +1 -1
- package/apiCalls/economics/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/BatchTransactionsSender/BatchTransactionsSender.js +1 -1
- package/components/BatchTransactionsSender/index.js +1 -1
- package/components/BatchTransactionsTracker/BatchTransactionsTracker.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/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/economics/index.js +1 -1
- package/hooks/economics/useGetEgldPrice.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/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/toasts/index.js +1 -1
- package/hooks/toasts/useGetToasts.js +1 -1
- package/hooks/toasts/useTransactionsToasts.js +1 -1
- package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatches.js +1 -1
- package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
- package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/hooks/transactions/helpers/buildBatchId.js +1 -1
- package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/hooks/transactions/helpers/extractSessionId.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/models/index.js +1 -1
- package/models/newTransaction.js +1 -1
- package/package.json +2 -2
- package/providers/accountProvider.js +1 -1
- package/providers/index.js +1 -1
- package/providers/utils.js +1 -1
- package/providers/webviewProvider/index.js +1 -1
- package/providers/webviewProvider/requestMethods.js +1 -1
- package/providers/webviewProvider/webviewProvider.js +1 -1
- package/reduxStore/DappProviderContext.js +1 -1
- package/reduxStore/commonActions.js +1 -1
- package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/reduxStore/persistConfig.js +1 -1
- package/reduxStore/persistedRootReducer.js +1 -1
- package/reduxStore/reducers.js +1 -1
- package/reduxStore/rootReducer.js +1 -1
- package/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/reduxStore/selectors/batchTransactionsSelectors.js +1 -1
- package/reduxStore/selectors/dappConfigSelector.js +1 -1
- package/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/reduxStore/selectors/helpers.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/modalsSelectors.js +1 -1
- package/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/reduxStore/selectors/toastsSelectors.js +1 -1
- package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/reduxStore/slices/accountInfoSlice.js +1 -1
- package/reduxStore/slices/batchTransactionsSlice.js +1 -1
- package/reduxStore/slices/dappConfigSlice.js +1 -1
- package/reduxStore/slices/dappModalsSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/slices/modalsSlice.js +1 -1
- package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/reduxStore/slices/toastsSlice.js +1 -1
- package/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/reduxStore/slices/transactionsSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/getAuthorizationInfo.d.ts +3 -1
- package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
- package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/getBatchTransactionsStatus.js +1 -1
- package/services/transactions/getTransactionsDetails.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendBatchTransactions.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/signTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/updateSignedTransactions.js +1 -1
- package/services/transactions/utils.js +1 -1
- package/types/index.js +1 -1
- package/types/transactions.types.d.ts +6 -6
- package/types/transactions.types.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountProviderType.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getIsProviderEqualTo.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/getShardOfAddress.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/loginWithExternalProvider.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/setNonce.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/network/getChainID.js +1 -1
- package/utils/network/getEgldLabel.js +1 -1
- package/utils/network/getNetworkConfig.js +1 -1
- package/utils/network/index.js +1 -1
- package/utils/operations/calculateFeeInFiat.js +1 -1
- package/utils/operations/calculateFeeLimit.js +1 -1
- package/utils/operations/denominate.js +1 -1
- package/utils/operations/formatAmount.js +1 -1
- package/utils/operations/index.js +1 -1
- package/utils/operations/ledger/getLedgerVersionOptions.js +1 -1
- package/utils/operations/ledger/index.js +1 -1
- package/utils/operations/nominate.js +1 -1
- package/utils/operations/parseAmount.js +1 -1
- package/utils/smartContracts.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/batch/getTransactionsStatus.js +1 -1
- package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/utils/transactions/removeTransactionParamsFromUrl.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/utils/validation/index.js +1 -1
- package/utils/validation/maxDecimals.js +1 -1
- package/utils/validation/stringIsFloat.js +1 -1
- package/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
- package/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-35R5C7MN.js +0 -2
- package/__chunks__/chunk-3D32MGEE.js +0 -2
- package/__chunks__/chunk-3N6RH2JP.js +0 -2
- package/__chunks__/chunk-4VYUVWRW.js +0 -2
- package/__chunks__/chunk-7EHJK4G5.js +0 -2
- package/__chunks__/chunk-7RZUXOAZ.js +0 -2
- package/__chunks__/chunk-7WDUJALV.js +0 -2
- package/__chunks__/chunk-7WXFKNGH.js +0 -2
- package/__chunks__/chunk-BBXYGJKH.js +0 -2
- package/__chunks__/chunk-BJLU7HHL.js +0 -2
- package/__chunks__/chunk-C2NOKDGC.js +0 -2
- package/__chunks__/chunk-CPPYQ4DW.js +0 -2
- package/__chunks__/chunk-D2MKQ72N.js +0 -2
- package/__chunks__/chunk-DJWISBYW.js +0 -2
- package/__chunks__/chunk-ERRY7ECK.js +0 -2
- package/__chunks__/chunk-G37Y2HTH.js +0 -2
- package/__chunks__/chunk-GHIV4OIN.js +0 -2
- package/__chunks__/chunk-GJUSLKBO.js +0 -2
- package/__chunks__/chunk-GTAYGLQG.js +0 -2
- package/__chunks__/chunk-H46576BP.js +0 -2
- package/__chunks__/chunk-HMBMLPSS.js +0 -2
- package/__chunks__/chunk-IQD6BWUI.js +0 -2
- package/__chunks__/chunk-JPEA7JXL.js +0 -2
- package/__chunks__/chunk-JXF4EKNE.js +0 -2
- package/__chunks__/chunk-KBCK5CHZ.js +0 -2
- package/__chunks__/chunk-KGO3ICZY.js +0 -2
- package/__chunks__/chunk-KTN7SO2W.js +0 -2
- package/__chunks__/chunk-L42V2WLU.js +0 -2
- package/__chunks__/chunk-LXRSQCN2.js +0 -2
- package/__chunks__/chunk-M4L54IJ7.js +0 -2
- package/__chunks__/chunk-ME25HVH2.js +0 -2
- package/__chunks__/chunk-NGLTVQ5W.js +0 -2
- package/__chunks__/chunk-NN66LYBZ.js +0 -2
- package/__chunks__/chunk-O44B4VMC.js +0 -2
- package/__chunks__/chunk-PFCRTAA6.js +0 -2
- package/__chunks__/chunk-QN5222E2.js +0 -2
- package/__chunks__/chunk-QREIFWU7.js +0 -2
- package/__chunks__/chunk-R3FZPYHO.js +0 -2
- package/__chunks__/chunk-R3MQV5EP.js +0 -2
- package/__chunks__/chunk-RLRUMCN5.js +0 -2
- package/__chunks__/chunk-SKJVWOJX.js +0 -2
- package/__chunks__/chunk-UE4TVM3M.js +0 -2
- package/__chunks__/chunk-UH6MS3HS.js +0 -2
- package/__chunks__/chunk-UKSSLKD2.js +0 -2
- package/__chunks__/chunk-UX7ABBNS.js +0 -2
- package/__chunks__/chunk-UZAJTVD3.js +0 -2
- package/__chunks__/chunk-VBEHPPLP.js +0 -2
- package/__chunks__/chunk-VMJA5EFW.js +0 -2
- package/__chunks__/chunk-VSMZ25WQ.js +0 -2
- package/__chunks__/chunk-W7OGWII2.js +0 -2
- package/__chunks__/chunk-WF3V7QEW.js +0 -2
- package/__chunks__/chunk-WJKELUT6.js +0 -2
- package/__chunks__/chunk-WNO2O7HO.js +0 -2
- package/__chunks__/chunk-WU6J2NHX.js +0 -2
- package/__chunks__/chunk-X4STGR6Y.js +0 -2
- package/__chunks__/chunk-XAWYPY67.js +0 -2
- package/__chunks__/chunk-Z2KZXMKO.js +0 -2
- package/__chunks__/chunk-ZT6BNCEC.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ke=Object.create;var X=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var Qe=Object.getOwnPropertyNames;var Je=Object.getPrototypeOf,er=Object.prototype.hasOwnProperty;var rr=(t,e)=>()=>(t&&(e=t(t=0)),e);var $=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),tr=(t,e)=>{for(var r in e)X(t,r,{get:e[r],enumerable:!0})},ge=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Qe(e))!er.call(t,i)&&i!==r&&X(t,i,{get:()=>e[i],enumerable:!(n=Ze(e,i))||n.enumerable});return t};var H=(t,e,r)=>(r=t!=null?Ke(Je(t)):{},ge(e||!t||!t.__esModule?X(r,"default",{value:t,enumerable:!0}):r,t)),nr=t=>ge(X({},"__esModule",{value:!0}),t);var he=$(Y=>{"use strict";l();Y.byteLength=ar;Y.toByteArray=sr;Y.fromByteArray=pr;var _=[],v=[],ir=typeof Uint8Array!="undefined"?Uint8Array:Array,ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B=0,fe=ee.length;B<fe;++B)_[B]=ee[B],v[ee.charCodeAt(B)]=B;var B,fe;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function me(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function ar(t){var e=me(t),r=e[0],n=e[1];return(r+n)*3/4-n}function or(t,e,r){return(e+r)*3/4-r}function sr(t){var e,r=me(t),n=r[0],i=r[1],a=new ir(or(t,n,i)),o=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function lr(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function cr(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(lr(n));return i.join("")}function pr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push(cr(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(_[e>>2]+_[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(_[e>>10]+_[e>>4&63]+_[e<<2&63]+"=")),i.join("")}});var ye=$(re=>{l();re.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,p=(1<<c)-1,d=p>>1,g=-7,u=r?i-1:0,y=r?-1:1,T=t[e+u];for(u+=y,a=T&(1<<-g)-1,T>>=-g,g+=c;g>0;a=a*256+t[e+u],u+=y,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+u],u+=y,g-=8);if(a===0)a=1-d;else{if(a===p)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(T?-1:1)*o*Math.pow(2,a-n)};re.write=function(t,e,r,n,i,a){var o,c,p,d=a*8-i-1,g=(1<<d)-1,u=g>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:a-1,S=n?1:-1,z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+u>=1?e+=y/p:e+=y*Math.pow(2,1-u),e*p>=2&&(o++,p/=2),o+u>=g?(c=0,o=g):o+u>=1?(c=(e*p-1)*Math.pow(2,i),o=o+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;t[r+T]=c&255,T+=S,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;t[r+T]=o&255,T+=S,o/=256,d-=8);t[r+T-S]|=z*128}});var Ne=$(P=>{"use strict";l();var te=he(),M=ye(),xe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=hr;P.INSPECT_MAX_BYTES=50;var K=2147483647;P.kMaxLength=K;s.TYPED_ARRAY_SUPPORT=ur();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ur(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function N(t){if(t>K)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return oe(t)}return be(t,e,r)}s.poolSize=8192;function be(t,e,r){if(typeof t=="string")return gr(t,e);if(ArrayBuffer.isView(t))return fr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(k(t,ArrayBuffer)||t&&k(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(k(t,SharedArrayBuffer)||t&&k(t.buffer,SharedArrayBuffer)))return ie(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=mr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return be(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function ve(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function dr(t,e,r){return ve(t),t<=0?N(t):e!==void 0?typeof r=="string"?N(t).fill(e,r):N(t).fill(e):N(t)}s.alloc=function(t,e,r){return dr(t,e,r)};function oe(t){return ve(t),N(t<0?0:se(t)|0)}s.allocUnsafe=function(t){return oe(t)};s.allocUnsafeSlow=function(t){return oe(t)};function gr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Ie(t,e)|0,n=N(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ne(t){for(var e=t.length<0?0:se(t.length)|0,r=N(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function fr(t){if(k(t,Uint8Array)){var e=new Uint8Array(t);return ie(e.buffer,e.byteOffset,e.byteLength)}return ne(t)}function ie(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function mr(t){if(s.isBuffer(t)){var e=se(t.length)|0,r=N(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||le(t.length)?N(0):ne(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ne(t.data)}function se(t){if(t>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return t|0}function hr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),k(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(k(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function Ie(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||k(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ae(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:ae(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=Ie;function yr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Ar(this,e,r);case"utf8":case"utf-8":return ke(this,e,r);case"ascii":return kr(this,e,r);case"latin1":case"binary":return Er(this,e,r);case"base64":return Ir(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function U(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)U(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)U(this,r,r+3),U(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ke(this,0,e):yr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};xe&&(s.prototype[xe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,p=Math.min(o,c),d=this.slice(i,a),g=e.slice(r,n),u=0;u<p;++u)if(d[u]!==g[u]){o=d[u],c=g[u];break}return o<c?-1:c<o?1:0};function _e(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,le(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:we(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):we(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function we(t,e,r,n,i){var a=1,o=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,c/=2,r/=2}function p(T,S){return a===1?T[S]:T.readUInt16BE(S*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(p(t,d)===p(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){for(var u=!0,y=0;y<c;y++)if(p(t,d+y)!==p(e,y)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return _e(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return _e(this,e,r,n,!1)};function xr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(le(c))return o;t[r+o]=c}return o}function wr(t,e,r,n){return Z(ae(e,t.length-r),t,r,n)}function Tr(t,e,r,n){return Z(Lr(e),t,r,n)}function br(t,e,r,n){return Z(Se(e),t,r,n)}function vr(t,e,r,n){return Z(Fr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return xr(this,e,r,n);case"utf8":case"utf-8":return wr(this,e,r,n);case"ascii":case"latin1":case"binary":return Tr(this,e,r,n);case"base64":return br(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ir(t,e,r){return e===0&&r===t.length?te.fromByteArray(t):te.fromByteArray(t.slice(e,r))}function ke(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var p,d,g,u;switch(c){case 1:a<128&&(o=a);break;case 2:p=t[i+1],(p&192)===128&&(u=(a&31)<<6|p&63,u>127&&(o=u));break;case 3:p=t[i+1],d=t[i+2],(p&192)===128&&(d&192)===128&&(u=(a&15)<<12|(p&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:p=t[i+1],d=t[i+2],g=t[i+3],(p&192)===128&&(d&192)===128&&(g&192)===128&&(u=(a&15)<<18|(p&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(o=u))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return _r(n)}var Te=4096;function _r(t){var e=t.length;if(e<=Te)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Te));return r}function kr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Er(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Ar(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=Dr[t[a]];return i}function Rr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function w(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),M.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),M.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),M.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),M.read(this,e,!1,52,8)};function b(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var o=0,c=1,p=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&p===0&&this[r+o-1]!==0&&(p=1),this[r+o]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var o=n-1,c=1,p=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&p===0&&this[r+o+1]!==0&&(p=1),this[r+o]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ee(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ae(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,4,34028234663852886e22,-34028234663852886e22),M.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ae(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ae(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,8,17976931348623157e292,-17976931348623157e292),M.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%p]}return this};var Sr=/[^+/0-9A-Za-z-_]/g;function Nr(t){if(t=t.split("=")[0],t=t.trim().replace(Sr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ae(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Lr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Fr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Se(t){return te.toByteArray(Nr(t))}function Z(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function k(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function le(t){return t!==t}var Dr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Be=$((zr,Ce)=>{l();var x=Ce.exports={},E,A;function ce(){throw new Error("setTimeout has not been defined")}function pe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=ce}catch(t){E=ce}try{typeof clearTimeout=="function"?A=clearTimeout:A=pe}catch(t){A=pe}})();function Le(t){if(E===setTimeout)return setTimeout(t,0);if((E===ce||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function Cr(t){if(A===clearTimeout)return clearTimeout(t);if((A===pe||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(e){try{return A.call(null,t)}catch(r){return A.call(this,t)}}}var L=[],G=!1,O,Q=-1;function Br(){!G||!O||(G=!1,O.length?L=O.concat(L):Q=-1,L.length&&Fe())}function Fe(){if(!G){var t=Le(Br);G=!0;for(var e=L.length;e;){for(O=L,L=[];++Q<e;)O&&O[Q].run();Q=-1,e=L.length}O=null,G=!1,Cr(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new De(t,e)),L.length===1&&!G&&Le(Fe)};function De(t,e){this.fun=t,this.array=e}De.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function F(){}x.on=F;x.addListener=F;x.once=F;x.off=F;x.removeListener=F;x.removeAllListeners=F;x.emit=F;x.prependListener=F;x.prependOnceListener=F;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var f,m,qr,l=rr(()=>{f=H(Ne()),m=H(Be()),qr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Or={};tr(Or,{getValueFromActions:()=>Ur});module.exports=nr(Or);l();var je=H(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var ue={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:Ue,egldLabel:pt}=ue["devnet"],{chainId:Oe,egldLabel:ut}=ue["testnet"],{chainId:Me,egldLabel:dt}=ue["mainnet"];var gt={["devnet"]:Ue,["testnet"]:Oe,["mainnet"]:Me},ft={[Ue]:"devnet",[Oe]:"testnet",[Me]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");l();l();var J=18,Pe=4;var Ge="0";l();var ze=require("@multiversx/sdk-core"),C=H(require("bignumber.js"));l();var Ve=H(require("bignumber.js")),He=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Ve.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();function D(t){return{if:function(e){return e?{then:r=>r instanceof Function?D(r(t)):D(r)}:{then:()=>D(t)}},then:e=>e instanceof Function?D(e(t)):D(e),valueOf:function(){return t}}}C.default.config({ROUNDING_MODE:C.default.ROUND_FLOOR});function qe({input:t,decimals:e=J,digits:r=Pe,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){if(!He(t,!1))throw new Error("Invalid input");let o=new C.default(t).isNegative(),c=t;return o&&(c=t.substring(1)),D(c).then(()=>ze.TokenTransfer.fungibleFromBigInteger("",c,e).amountAsBigInteger.shiftedBy(-e).toFixed(e)).then(p=>{let d=new C.default(p);if(d.isZero())return Ge;let g=d.toString(10),[u,y]=g.split("."),T=new C.default(y||0),S=D(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(T.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),z=y&&r>=1&&r<=y.length&&T.isGreaterThan(0)&&new C.default(y.substring(0,r)).isZero(),Xe=d.toFormat(S);return D(g).if(a).then(Xe).if(Boolean(z)).then(q=>{let V=new C.default(u).isZero(),[I,W]=q.split("."),j=new Array(r-1).fill(0),$e=[...j,0].join(""),Ye=[...j,1].join("");return V?i?`<${I}.${Ye}`:n?`${I}.${W}`:I:`${I}.${$e}`}).if(Boolean(!z&&y)).then(q=>{let[V]=q.split("."),I=y.substring(0,S);if(n){let W=r-I.length;if(W>0){let j=Array(W).fill(0).join("");return I=`${I}${j}`,`${V}.${I}`}return q}return I?`${V}.${I}`:V}).valueOf()}).if(o).then(p=>`-${p}`).valueOf()}var de=t=>({egldValueData:{value:t,formattedValue:qe({input:t}),decimals:J}});var We=!1;function Ur(t){var r,n,i,a,o;return new je.default((n=(r=t.action)==null?void 0:r.arguments)==null?void 0:n.value).isNaN()?(We||(console.error(`Unable to interpret ${(o=t.action)==null?void 0:o.name} data for txHash: ${t.txHash}`),We=!0),de(t.value)):de((a=(i=t.action)==null?void 0:i.arguments)==null?void 0:a.value)}0&&(module.exports={getValueFromActions});
|
|
1
|
+
"use strict";var Ke=Object.create;var X=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var Qe=Object.getOwnPropertyNames;var Je=Object.getPrototypeOf,er=Object.prototype.hasOwnProperty;var rr=(t,e)=>()=>(t&&(e=t(t=0)),e);var $=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),tr=(t,e)=>{for(var r in e)X(t,r,{get:e[r],enumerable:!0})},ge=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Qe(e))!er.call(t,i)&&i!==r&&X(t,i,{get:()=>e[i],enumerable:!(n=Ze(e,i))||n.enumerable});return t};var H=(t,e,r)=>(r=t!=null?Ke(Je(t)):{},ge(e||!t||!t.__esModule?X(r,"default",{value:t,enumerable:!0}):r,t)),nr=t=>ge(X({},"__esModule",{value:!0}),t);var he=$(Y=>{"use strict";l();Y.byteLength=ar;Y.toByteArray=sr;Y.fromByteArray=ur;var _=[],v=[],ir=typeof Uint8Array!="undefined"?Uint8Array:Array,ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B=0,fe=ee.length;B<fe;++B)_[B]=ee[B],v[ee.charCodeAt(B)]=B;var B,fe;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function me(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function ar(t){var e=me(t),r=e[0],n=e[1];return(r+n)*3/4-n}function or(t,e,r){return(e+r)*3/4-r}function sr(t){var e,r=me(t),n=r[0],i=r[1],a=new ir(or(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function lr(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function cr(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(lr(n));return i.join("")}function ur(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push(cr(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(_[e>>2]+_[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(_[e>>10]+_[e>>4&63]+_[e<<2&63]+"=")),i.join("")}});var ye=$(re=>{l();re.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,d=u>>1,g=-7,p=r?i-1:0,y=r?-1:1,T=t[e+p];for(p+=y,a=T&(1<<-g)-1,T>>=-g,g+=c;g>0;a=a*256+t[e+p],p+=y,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+p],p+=y,g-=8);if(a===0)a=1-d;else{if(a===u)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(T?-1:1)*o*Math.pow(2,a-n)};re.write=function(t,e,r,n,i,a){var o,c,u,d=a*8-i-1,g=(1<<d)-1,p=g>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:a-1,S=n?1:-1,z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=y/u:e+=y*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=g?(c=0,o=g):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+T]=c&255,T+=S,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;t[r+T]=o&255,T+=S,o/=256,d-=8);t[r+T-S]|=z*128}});var Ne=$(P=>{"use strict";l();var te=he(),M=ye(),xe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=hr;P.INSPECT_MAX_BYTES=50;var K=2147483647;P.kMaxLength=K;s.TYPED_ARRAY_SUPPORT=pr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function pr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function N(t){if(t>K)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return oe(t)}return be(t,e,r)}s.poolSize=8192;function be(t,e,r){if(typeof t=="string")return gr(t,e);if(ArrayBuffer.isView(t))return fr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(k(t,ArrayBuffer)||t&&k(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(k(t,SharedArrayBuffer)||t&&k(t.buffer,SharedArrayBuffer)))return ie(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=mr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return be(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function ve(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function dr(t,e,r){return ve(t),t<=0?N(t):e!==void 0?typeof r=="string"?N(t).fill(e,r):N(t).fill(e):N(t)}s.alloc=function(t,e,r){return dr(t,e,r)};function oe(t){return ve(t),N(t<0?0:se(t)|0)}s.allocUnsafe=function(t){return oe(t)};s.allocUnsafeSlow=function(t){return oe(t)};function gr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Ie(t,e)|0,n=N(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ne(t){for(var e=t.length<0?0:se(t.length)|0,r=N(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function fr(t){if(k(t,Uint8Array)){var e=new Uint8Array(t);return ie(e.buffer,e.byteOffset,e.byteLength)}return ne(t)}function ie(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function mr(t){if(s.isBuffer(t)){var e=se(t.length)|0,r=N(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||le(t.length)?N(0):ne(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ne(t.data)}function se(t){if(t>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return t|0}function hr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),k(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(k(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function Ie(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||k(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ae(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:ae(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=Ie;function yr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Ar(this,e,r);case"utf8":case"utf-8":return ke(this,e,r);case"ascii":return kr(this,e,r);case"latin1":case"binary":return Er(this,e,r);case"base64":return Ir(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function U(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)U(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)U(this,r,r+3),U(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ke(this,0,e):yr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};xe&&(s.prototype[xe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),d=this.slice(i,a),g=e.slice(r,n),p=0;p<u;++p)if(d[p]!==g[p]){o=d[p],c=g[p];break}return o<c?-1:c<o?1:0};function _e(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,le(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:we(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):we(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function we(t,e,r,n,i){var a=1,o=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,c/=2,r/=2}function u(T,S){return a===1?T[S]:T.readUInt16BE(S*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(u(t,d)===u(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){for(var p=!0,y=0;y<c;y++)if(u(t,d+y)!==u(e,y)){p=!1;break}if(p)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return _e(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return _e(this,e,r,n,!1)};function xr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(le(c))return o;t[r+o]=c}return o}function wr(t,e,r,n){return Z(ae(e,t.length-r),t,r,n)}function Tr(t,e,r,n){return Z(Lr(e),t,r,n)}function br(t,e,r,n){return Z(Se(e),t,r,n)}function vr(t,e,r,n){return Z(Fr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return xr(this,e,r,n);case"utf8":case"utf-8":return wr(this,e,r,n);case"ascii":case"latin1":case"binary":return Tr(this,e,r,n);case"base64":return br(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ir(t,e,r){return e===0&&r===t.length?te.fromByteArray(t):te.fromByteArray(t.slice(e,r))}function ke(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,d,g,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(p=(a&15)<<12|(u&63)<<6|d&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],d=t[i+2],g=t[i+3],(u&192)===128&&(d&192)===128&&(g&192)===128&&(p=(a&15)<<18|(u&63)<<12|(d&63)<<6|g&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return _r(n)}var Te=4096;function _r(t){var e=t.length;if(e<=Te)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Te));return r}function kr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Er(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Ar(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=Dr[t[a]];return i}function Rr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function w(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),M.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),M.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),M.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),M.read(this,e,!1,52,8)};function b(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ee(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ae(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,4,34028234663852886e22,-34028234663852886e22),M.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ae(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ae(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,8,17976931348623157e292,-17976931348623157e292),M.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var Sr=/[^+/0-9A-Za-z-_]/g;function Nr(t){if(t=t.split("=")[0],t=t.trim().replace(Sr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ae(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Lr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Fr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Se(t){return te.toByteArray(Nr(t))}function Z(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function k(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function le(t){return t!==t}var Dr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Be=$((zr,Ce)=>{l();var x=Ce.exports={},E,A;function ce(){throw new Error("setTimeout has not been defined")}function ue(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=ce}catch(t){E=ce}try{typeof clearTimeout=="function"?A=clearTimeout:A=ue}catch(t){A=ue}})();function Le(t){if(E===setTimeout)return setTimeout(t,0);if((E===ce||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function Cr(t){if(A===clearTimeout)return clearTimeout(t);if((A===ue||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(e){try{return A.call(null,t)}catch(r){return A.call(this,t)}}}var L=[],G=!1,O,Q=-1;function Br(){!G||!O||(G=!1,O.length?L=O.concat(L):Q=-1,L.length&&Fe())}function Fe(){if(!G){var t=Le(Br);G=!0;for(var e=L.length;e;){for(O=L,L=[];++Q<e;)O&&O[Q].run();Q=-1,e=L.length}O=null,G=!1,Cr(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new De(t,e)),L.length===1&&!G&&Le(Fe)};function De(t,e){this.fun=t,this.array=e}De.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function F(){}x.on=F;x.addListener=F;x.once=F;x.off=F;x.removeListener=F;x.removeAllListeners=F;x.emit=F;x.prependListener=F;x.prependOnceListener=F;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var f,m,qr,l=rr(()=>{f=H(Ne()),m=H(Be()),qr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Or={};tr(Or,{getValueFromActions:()=>Ur});module.exports=nr(Or);l();var We=H(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var pe={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:Ue,egldLabel:ut}=pe["devnet"],{chainId:Oe,egldLabel:pt}=pe["testnet"],{chainId:Me,egldLabel:dt}=pe["mainnet"];var gt={["devnet"]:Ue,["testnet"]:Oe,["mainnet"]:Me},ft={[Ue]:"devnet",[Oe]:"testnet",[Me]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");l();l();var J=18,Pe=4;var Ge="0";l();var ze=require("@multiversx/sdk-core"),C=H(require("bignumber.js"));l();var Ve=H(require("bignumber.js")),He=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new Ve.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();function D(t){return{if:function(e){return e?{then:r=>r instanceof Function?D(r(t)):D(r)}:{then:()=>D(t)}},then:e=>e instanceof Function?D(e(t)):D(e),valueOf:function(){return t}}}C.default.config({ROUNDING_MODE:C.default.ROUND_FLOOR});function qe({input:t,decimals:e=J,digits:r=Pe,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){if(!He(t,!1))throw new Error("Invalid input");let o=new C.default(t).isNegative(),c=t;return o&&(c=t.substring(1)),D(c).then(()=>ze.TokenTransfer.fungibleFromBigInteger("",c,e).amountAsBigInteger.shiftedBy(-e).toFixed(e)).then(u=>{let d=new C.default(u);if(d.isZero())return Ge;let g=d.toString(10),[p,y]=g.split("."),T=new C.default(y||0),S=D(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(T.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),z=y&&r>=1&&r<=y.length&&T.isGreaterThan(0)&&new C.default(y.substring(0,r)).isZero(),Xe=d.toFormat(S);return D(g).if(a).then(Xe).if(Boolean(z)).then(q=>{let V=new C.default(p).isZero(),[I,j]=q.split("."),W=new Array(r-1).fill(0),$e=[...W,0].join(""),Ye=[...W,1].join("");return V?i?`<${I}.${Ye}`:n?`${I}.${j}`:I:`${I}.${$e}`}).if(Boolean(!z&&y)).then(q=>{let[V]=q.split("."),I=y.substring(0,S);if(n){let j=r-I.length;if(j>0){let W=Array(j).fill(0).join("");return I=`${I}${W}`,`${V}.${I}`}return q}return I?`${V}.${I}`:V}).valueOf()}).if(o).then(u=>`-${u}`).valueOf()}var de=t=>({egldValueData:{value:t,formattedValue:qe({input:t}),decimals:J}});var je=!1;function Ur(t){var r,n,i,a,o;return new We.default((n=(r=t.action)==null?void 0:r.arguments)==null?void 0:n.value).isNaN()?(je||(console.error(`Unable to interpret ${(o=t.action)==null?void 0:o.name} data for txHash: ${t.txHash}`),je=!0),de(t.value)):de((a=(i=t.action)==null?void 0:i.arguments)==null?void 0:a.value)}0&&(module.exports={getValueFromActions});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ze=Object.create;var X=Object.defineProperty;var Qe=Object.getOwnPropertyDescriptor;var Je=Object.getOwnPropertyNames;var er=Object.getPrototypeOf,rr=Object.prototype.hasOwnProperty;var tr=(t,e)=>()=>(t&&(e=t(t=0)),e);var $=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nr=(t,e)=>{for(var r in e)X(t,r,{get:e[r],enumerable:!0})},ge=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Je(e))!rr.call(t,i)&&i!==r&&X(t,i,{get:()=>e[i],enumerable:!(n=Qe(e,i))||n.enumerable});return t};var H=(t,e,r)=>(r=t!=null?Ze(er(t)):{},ge(e||!t||!t.__esModule?X(r,"default",{value:t,enumerable:!0}):r,t)),ir=t=>ge(X({},"__esModule",{value:!0}),t);var he=$(Y=>{"use strict";l();Y.byteLength=or;Y.toByteArray=lr;Y.fromByteArray=pr;var _=[],v=[],ar=typeof Uint8Array!="undefined"?Uint8Array:Array,ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B=0,fe=ee.length;B<fe;++B)_[B]=ee[B],v[ee.charCodeAt(B)]=B;var B,fe;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function me(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function or(t){var e=me(t),r=e[0],n=e[1];return(r+n)*3/4-n}function sr(t,e,r){return(e+r)*3/4-r}function lr(t){var e,r=me(t),n=r[0],i=r[1],a=new ar(sr(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function cr(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function ur(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(cr(n));return i.join("")}function pr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push(ur(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(_[e>>2]+_[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(_[e>>10]+_[e>>4&63]+_[e<<2&63]+"=")),i.join("")}});var ye=$(re=>{l();re.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,g=u>>1,f=-7,p=r?i-1:0,y=r?-1:1,T=t[e+p];for(p+=y,a=T&(1<<-f)-1,T>>=-f,f+=c;f>0;a=a*256+t[e+p],p+=y,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+t[e+p],p+=y,f-=8);if(a===0)a=1-g;else{if(a===u)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-g}return(T?-1:1)*o*Math.pow(2,a-n)};re.write=function(t,e,r,n,i,a){var o,c,u,g=a*8-i-1,f=(1<<g)-1,p=f>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:a-1,S=n?1:-1,z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=y/u:e+=y*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=f?(c=0,o=f):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+T]=c&255,T+=S,c/=256,i-=8);for(o=o<<i|c,g+=i;g>0;t[r+T]=o&255,T+=S,o/=256,g-=8);t[r+T-S]|=z*128}});var Ne=$(P=>{"use strict";l();var te=he(),M=ye(),xe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=yr;P.INSPECT_MAX_BYTES=50;var K=2147483647;P.kMaxLength=K;s.TYPED_ARRAY_SUPPORT=dr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function dr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function N(t){if(t>K)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return oe(t)}return be(t,e,r)}s.poolSize=8192;function be(t,e,r){if(typeof t=="string")return fr(t,e);if(ArrayBuffer.isView(t))return mr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(k(t,ArrayBuffer)||t&&k(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(k(t,SharedArrayBuffer)||t&&k(t.buffer,SharedArrayBuffer)))return ie(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=hr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return be(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function ve(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function gr(t,e,r){return ve(t),t<=0?N(t):e!==void 0?typeof r=="string"?N(t).fill(e,r):N(t).fill(e):N(t)}s.alloc=function(t,e,r){return gr(t,e,r)};function oe(t){return ve(t),N(t<0?0:se(t)|0)}s.allocUnsafe=function(t){return oe(t)};s.allocUnsafeSlow=function(t){return oe(t)};function fr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Ie(t,e)|0,n=N(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ne(t){for(var e=t.length<0?0:se(t.length)|0,r=N(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function mr(t){if(k(t,Uint8Array)){var e=new Uint8Array(t);return ie(e.buffer,e.byteOffset,e.byteLength)}return ne(t)}function ie(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function hr(t){if(s.isBuffer(t)){var e=se(t.length)|0,r=N(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||le(t.length)?N(0):ne(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ne(t.data)}function se(t){if(t>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return t|0}function yr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),k(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(k(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function Ie(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||k(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ae(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:ae(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=Ie;function xr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Rr(this,e,r);case"utf8":case"utf-8":return ke(this,e,r);case"ascii":return Er(this,e,r);case"latin1":case"binary":return Ar(this,e,r);case"base64":return _r(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function U(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)U(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)U(this,r,r+3),U(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ke(this,0,e):xr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};xe&&(s.prototype[xe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),g=this.slice(i,a),f=e.slice(r,n),p=0;p<u;++p)if(g[p]!==f[p]){o=g[p],c=f[p];break}return o<c?-1:c<o?1:0};function _e(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,le(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:we(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):we(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function we(t,e,r,n,i){var a=1,o=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,c/=2,r/=2}function u(T,S){return a===1?T[S]:T.readUInt16BE(S*a)}var g;if(i){var f=-1;for(g=r;g<o;g++)if(u(t,g)===u(e,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===c)return f*a}else f!==-1&&(g-=g-f),f=-1}else for(r+c>o&&(r=o-c),g=r;g>=0;g--){for(var p=!0,y=0;y<c;y++)if(u(t,g+y)!==u(e,y)){p=!1;break}if(p)return g}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return _e(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return _e(this,e,r,n,!1)};function wr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(le(c))return o;t[r+o]=c}return o}function Tr(t,e,r,n){return Z(ae(e,t.length-r),t,r,n)}function br(t,e,r,n){return Z(Fr(e),t,r,n)}function vr(t,e,r,n){return Z(Se(e),t,r,n)}function Ir(t,e,r,n){return Z(Dr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return wr(this,e,r,n);case"utf8":case"utf-8":return Tr(this,e,r,n);case"ascii":case"latin1":case"binary":return br(this,e,r,n);case"base64":return vr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ir(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _r(t,e,r){return e===0&&r===t.length?te.fromByteArray(t):te.fromByteArray(t.slice(e,r))}function ke(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,g,f,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],g=t[i+2],(u&192)===128&&(g&192)===128&&(p=(a&15)<<12|(u&63)<<6|g&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],g=t[i+2],f=t[i+3],(u&192)===128&&(g&192)===128&&(f&192)===128&&(p=(a&15)<<18|(u&63)<<12|(g&63)<<6|f&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return kr(n)}var Te=4096;function kr(t){var e=t.length;if(e<=Te)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Te));return r}function Er(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Ar(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Rr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=Cr[t[a]];return i}function Sr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function w(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),M.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),M.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),M.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),M.read(this,e,!1,52,8)};function b(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ee(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ae(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,4,34028234663852886e22,-34028234663852886e22),M.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ae(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ae(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,8,17976931348623157e292,-17976931348623157e292),M.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var Nr=/[^+/0-9A-Za-z-_]/g;function Lr(t){if(t=t.split("=")[0],t=t.trim().replace(Nr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ae(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Fr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Dr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Se(t){return te.toByteArray(Lr(t))}function Z(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function k(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function le(t){return t!==t}var Cr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Be=$((Wr,Ce)=>{l();var x=Ce.exports={},E,A;function ce(){throw new Error("setTimeout has not been defined")}function ue(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=ce}catch(t){E=ce}try{typeof clearTimeout=="function"?A=clearTimeout:A=ue}catch(t){A=ue}})();function Le(t){if(E===setTimeout)return setTimeout(t,0);if((E===ce||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function Br(t){if(A===clearTimeout)return clearTimeout(t);if((A===ue||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(e){try{return A.call(null,t)}catch(r){return A.call(this,t)}}}var L=[],G=!1,O,Q=-1;function Ur(){!G||!O||(G=!1,O.length?L=O.concat(L):Q=-1,L.length&&Fe())}function Fe(){if(!G){var t=Le(Ur);G=!0;for(var e=L.length;e;){for(O=L,L=[];++Q<e;)O&&O[Q].run();Q=-1,e=L.length}O=null,G=!1,Br(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new De(t,e)),L.length===1&&!G&&Le(Fe)};function De(t,e){this.fun=t,this.array=e}De.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function F(){}x.on=F;x.addListener=F;x.once=F;x.off=F;x.removeListener=F;x.removeAllListeners=F;x.emit=F;x.prependListener=F;x.prependOnceListener=F;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var d,m,jr,l=tr(()=>{d=H(Ne()),m=H(Be()),jr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Pr={};nr(Pr,{getValueFromDataField:()=>Mr});module.exports=ir(Pr);l();var Xe=H(require("bignumber.js"));l();l();function Or(t){try{let e=atob(t),r=btoa(e),n=d.Buffer.from(t,"base64").toString(),i=d.Buffer.from(n).toString("base64");if(t===r&&t===i||e===n)return!0}catch(e){return!1}return!1}function Ue(t){return Or(t)?atob(t):t}l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var pe={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:Oe,egldLabel:kt}=pe["devnet"],{chainId:Me,egldLabel:Et}=pe["testnet"],{chainId:Pe,egldLabel:At}=pe["mainnet"];var Rt={["devnet"]:Oe,["testnet"]:Me,["mainnet"]:Pe},St={[Oe]:"devnet",[Me]:"testnet",[Pe]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");l();l();var J=18,Ge=4;var Ve="0";l();var qe=require("@multiversx/sdk-core"),C=H(require("bignumber.js"));l();var He=H(require("bignumber.js")),ze=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new He.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();function D(t){return{if:function(e){return e?{then:r=>r instanceof Function?D(r(t)):D(r)}:{then:()=>D(t)}},then:e=>e instanceof Function?D(e(t)):D(e),valueOf:function(){return t}}}C.default.config({ROUNDING_MODE:C.default.ROUND_FLOOR});function We({input:t,decimals:e=J,digits:r=Ge,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){if(!ze(t,!1))throw new Error("Invalid input");let o=new C.default(t).isNegative(),c=t;return o&&(c=t.substring(1)),D(c).then(()=>qe.TokenTransfer.fungibleFromBigInteger("",c,e).amountAsBigInteger.shiftedBy(-e).toFixed(e)).then(u=>{let g=new C.default(u);if(g.isZero())return Ve;let f=g.toString(10),[p,y]=f.split("."),T=new C.default(y||0),S=D(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(T.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),z=y&&r>=1&&r<=y.length&&T.isGreaterThan(0)&&new C.default(y.substring(0,r)).isZero(),$e=g.toFormat(S);return D(f).if(a).then($e).if(Boolean(z)).then(q=>{let V=new C.default(p).isZero(),[I,W]=q.split("."),j=new Array(r-1).fill(0),Ye=[...j,0].join(""),Ke=[...j,1].join("");return V?i?`<${I}.${Ke}`:n?`${I}.${W}`:I:`${I}.${Ye}`}).if(Boolean(!z&&y)).then(q=>{let[V]=q.split("."),I=y.substring(0,S);if(n){let W=r-I.length;if(W>0){let j=Array(W).fill(0).join("");return I=`${I}${j}`,`${V}.${I}`}return q}return I?`${V}.${I}`:V}).valueOf()}).if(o).then(u=>`-${u}`).valueOf()}var de=t=>({egldValueData:{value:t,formattedValue:We({input:t}),decimals:J}});var je=!1;function Mr(t){var e;try{let n=Ue(t.data).replace(`${(e=t.action)==null?void 0:e.name}@`,""),i=new Xe.default(n,16);if(!i.isNaN())return de(i.toString(10))}catch(r){je||(console.error(`Unable to extract value for txHash: ${t.txHash}`),je=!0)}return de(t.value)}0&&(module.exports={getValueFromDataField});
|
|
1
|
+
"use strict";var Ze=Object.create;var X=Object.defineProperty;var Qe=Object.getOwnPropertyDescriptor;var Je=Object.getOwnPropertyNames;var er=Object.getPrototypeOf,rr=Object.prototype.hasOwnProperty;var tr=(t,e)=>()=>(t&&(e=t(t=0)),e);var $=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nr=(t,e)=>{for(var r in e)X(t,r,{get:e[r],enumerable:!0})},ge=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Je(e))!rr.call(t,i)&&i!==r&&X(t,i,{get:()=>e[i],enumerable:!(n=Qe(e,i))||n.enumerable});return t};var H=(t,e,r)=>(r=t!=null?Ze(er(t)):{},ge(e||!t||!t.__esModule?X(r,"default",{value:t,enumerable:!0}):r,t)),ir=t=>ge(X({},"__esModule",{value:!0}),t);var he=$(Y=>{"use strict";l();Y.byteLength=or;Y.toByteArray=lr;Y.fromByteArray=pr;var _=[],v=[],ar=typeof Uint8Array!="undefined"?Uint8Array:Array,ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(B=0,fe=ee.length;B<fe;++B)_[B]=ee[B],v[ee.charCodeAt(B)]=B;var B,fe;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function me(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function or(t){var e=me(t),r=e[0],n=e[1];return(r+n)*3/4-n}function sr(t,e,r){return(e+r)*3/4-r}function lr(t){var e,r=me(t),n=r[0],i=r[1],a=new ar(sr(t,n,i)),o=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function cr(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function ur(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(cr(n));return i.join("")}function pr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,c=r-n;o<c;o+=a)i.push(ur(t,o,o+a>c?c:o+a));return n===1?(e=t[r-1],i.push(_[e>>2]+_[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(_[e>>10]+_[e>>4&63]+_[e<<2&63]+"=")),i.join("")}});var ye=$(re=>{l();re.read=function(t,e,r,n,i){var a,o,c=i*8-n-1,u=(1<<c)-1,g=u>>1,f=-7,p=r?i-1:0,y=r?-1:1,T=t[e+p];for(p+=y,a=T&(1<<-f)-1,T>>=-f,f+=c;f>0;a=a*256+t[e+p],p+=y,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+t[e+p],p+=y,f-=8);if(a===0)a=1-g;else{if(a===u)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-g}return(T?-1:1)*o*Math.pow(2,a-n)};re.write=function(t,e,r,n,i,a){var o,c,u,g=a*8-i-1,f=(1<<g)-1,p=f>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:a-1,S=n?1:-1,z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?e+=y/u:e+=y*Math.pow(2,1-p),e*u>=2&&(o++,u/=2),o+p>=f?(c=0,o=f):o+p>=1?(c=(e*u-1)*Math.pow(2,i),o=o+p):(c=e*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[r+T]=c&255,T+=S,c/=256,i-=8);for(o=o<<i|c,g+=i;g>0;t[r+T]=o&255,T+=S,o/=256,g-=8);t[r+T-S]|=z*128}});var Ne=$(P=>{"use strict";l();var te=he(),M=ye(),xe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=yr;P.INSPECT_MAX_BYTES=50;var K=2147483647;P.kMaxLength=K;s.TYPED_ARRAY_SUPPORT=dr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function dr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function N(t){if(t>K)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return oe(t)}return be(t,e,r)}s.poolSize=8192;function be(t,e,r){if(typeof t=="string")return fr(t,e);if(ArrayBuffer.isView(t))return mr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(k(t,ArrayBuffer)||t&&k(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(k(t,SharedArrayBuffer)||t&&k(t.buffer,SharedArrayBuffer)))return ie(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=hr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return be(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function ve(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function gr(t,e,r){return ve(t),t<=0?N(t):e!==void 0?typeof r=="string"?N(t).fill(e,r):N(t).fill(e):N(t)}s.alloc=function(t,e,r){return gr(t,e,r)};function oe(t){return ve(t),N(t<0?0:se(t)|0)}s.allocUnsafe=function(t){return oe(t)};s.allocUnsafeSlow=function(t){return oe(t)};function fr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Ie(t,e)|0,n=N(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ne(t){for(var e=t.length<0?0:se(t.length)|0,r=N(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function mr(t){if(k(t,Uint8Array)){var e=new Uint8Array(t);return ie(e.buffer,e.byteOffset,e.byteLength)}return ne(t)}function ie(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function hr(t){if(s.isBuffer(t)){var e=se(t.length)|0,r=N(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||le(t.length)?N(0):ne(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ne(t.data)}function se(t){if(t>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return t|0}function yr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),k(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(k(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function Ie(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||k(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ae(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:ae(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=Ie;function xr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Rr(this,e,r);case"utf8":case"utf-8":return ke(this,e,r);case"ascii":return Er(this,e,r);case"latin1":case"binary":return Ar(this,e,r);case"base64":return _r(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function U(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)U(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)U(this,r,r+3),U(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ke(this,0,e):xr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};xe&&(s.prototype[xe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(k(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,c=n-r,u=Math.min(o,c),g=this.slice(i,a),f=e.slice(r,n),p=0;p<u;++p)if(g[p]!==f[p]){o=g[p],c=f[p];break}return o<c?-1:c<o?1:0};function _e(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,le(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:we(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):we(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function we(t,e,r,n,i){var a=1,o=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,c/=2,r/=2}function u(T,S){return a===1?T[S]:T.readUInt16BE(S*a)}var g;if(i){var f=-1;for(g=r;g<o;g++)if(u(t,g)===u(e,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===c)return f*a}else f!==-1&&(g-=g-f),f=-1}else for(r+c>o&&(r=o-c),g=r;g>=0;g--){for(var p=!0,y=0;y<c;y++)if(u(t,g+y)!==u(e,y)){p=!1;break}if(p)return g}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return _e(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return _e(this,e,r,n,!1)};function wr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(e.substr(o*2,2),16);if(le(c))return o;t[r+o]=c}return o}function Tr(t,e,r,n){return Z(ae(e,t.length-r),t,r,n)}function br(t,e,r,n){return Z(Fr(e),t,r,n)}function vr(t,e,r,n){return Z(Se(e),t,r,n)}function Ir(t,e,r,n){return Z(Dr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return wr(this,e,r,n);case"utf8":case"utf-8":return Tr(this,e,r,n);case"ascii":case"latin1":case"binary":return br(this,e,r,n);case"base64":return vr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ir(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _r(t,e,r){return e===0&&r===t.length?te.fromByteArray(t):te.fromByteArray(t.slice(e,r))}function ke(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=r){var u,g,f,p;switch(c){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)===128&&(p=(a&31)<<6|u&63,p>127&&(o=p));break;case 3:u=t[i+1],g=t[i+2],(u&192)===128&&(g&192)===128&&(p=(a&15)<<12|(u&63)<<6|g&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:u=t[i+1],g=t[i+2],f=t[i+3],(u&192)===128&&(g&192)===128&&(f&192)===128&&(p=(a&15)<<18|(u&63)<<12|(g&63)<<6|f&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return kr(n)}var Te=4096;function kr(t){var e=t.length;if(e<=Te)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Te));return r}function Er(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Ar(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Rr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=Cr[t[a]];return i}function Sr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function w(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),M.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),M.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),M.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),M.read(this,e,!1,52,8)};function b(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var o=1,c=0;for(this[r]=e&255;++c<n&&(o*=256);)this[r+c]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var o=n-1,c=1;for(this[r+o]=e&255;--o>=0&&(c*=256);)this[r+o]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var o=0,c=1,u=0;for(this[r]=e&255;++o<n&&(c*=256);)e<0&&u===0&&this[r+o-1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var o=n-1,c=1,u=0;for(this[r+o]=e&255;--o>=0&&(c*=256);)e<0&&u===0&&this[r+o+1]!==0&&(u=1),this[r+o]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ee(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ae(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,4,34028234663852886e22,-34028234663852886e22),M.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ae(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ae(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||Ee(t,e,r,8,17976931348623157e292,-17976931348623157e292),M.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=c[o%u]}return this};var Nr=/[^+/0-9A-Za-z-_]/g;function Lr(t){if(t=t.split("=")[0],t=t.trim().replace(Nr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ae(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Fr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Dr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Se(t){return te.toByteArray(Lr(t))}function Z(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function k(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function le(t){return t!==t}var Cr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Be=$((jr,Ce)=>{l();var x=Ce.exports={},E,A;function ce(){throw new Error("setTimeout has not been defined")}function ue(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=ce}catch(t){E=ce}try{typeof clearTimeout=="function"?A=clearTimeout:A=ue}catch(t){A=ue}})();function Le(t){if(E===setTimeout)return setTimeout(t,0);if((E===ce||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function Br(t){if(A===clearTimeout)return clearTimeout(t);if((A===ue||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(e){try{return A.call(null,t)}catch(r){return A.call(this,t)}}}var L=[],G=!1,O,Q=-1;function Ur(){!G||!O||(G=!1,O.length?L=O.concat(L):Q=-1,L.length&&Fe())}function Fe(){if(!G){var t=Le(Ur);G=!0;for(var e=L.length;e;){for(O=L,L=[];++Q<e;)O&&O[Q].run();Q=-1,e=L.length}O=null,G=!1,Br(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];L.push(new De(t,e)),L.length===1&&!G&&Le(Fe)};function De(t,e){this.fun=t,this.array=e}De.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function F(){}x.on=F;x.addListener=F;x.once=F;x.off=F;x.removeListener=F;x.removeAllListeners=F;x.emit=F;x.prependListener=F;x.prependOnceListener=F;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var d,m,Wr,l=tr(()=>{d=H(Ne()),m=H(Be()),Wr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Pr={};nr(Pr,{getValueFromDataField:()=>Mr});module.exports=ir(Pr);l();var Xe=H(require("bignumber.js"));l();l();function Or(t){try{let e=atob(t),r=btoa(e),n=d.Buffer.from(t,"base64").toString(),i=d.Buffer.from(n).toString("base64");if(t===r&&t===i||e===n)return!0}catch(e){return!1}return!1}function Ue(t){return Or(t)?atob(t):t}l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var pe={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:Oe,egldLabel:kt}=pe["devnet"],{chainId:Me,egldLabel:Et}=pe["testnet"],{chainId:Pe,egldLabel:At}=pe["mainnet"];var Rt={["devnet"]:Oe,["testnet"]:Me,["mainnet"]:Pe},St={[Oe]:"devnet",[Me]:"testnet",[Pe]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");l();l();var J=18,Ge=4;var Ve="0";l();var qe=require("@multiversx/sdk-core"),C=H(require("bignumber.js"));l();var He=H(require("bignumber.js")),ze=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new He.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();function D(t){return{if:function(e){return e?{then:r=>r instanceof Function?D(r(t)):D(r)}:{then:()=>D(t)}},then:e=>e instanceof Function?D(e(t)):D(e),valueOf:function(){return t}}}C.default.config({ROUNDING_MODE:C.default.ROUND_FLOOR});function je({input:t,decimals:e=J,digits:r=Ge,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:a=!1}){if(!ze(t,!1))throw new Error("Invalid input");let o=new C.default(t).isNegative(),c=t;return o&&(c=t.substring(1)),D(c).then(()=>qe.TokenTransfer.fungibleFromBigInteger("",c,e).amountAsBigInteger.shiftedBy(-e).toFixed(e)).then(u=>{let g=new C.default(u);if(g.isZero())return Ve;let f=g.toString(10),[p,y]=f.split("."),T=new C.default(y||0),S=D(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(T.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),z=y&&r>=1&&r<=y.length&&T.isGreaterThan(0)&&new C.default(y.substring(0,r)).isZero(),$e=g.toFormat(S);return D(f).if(a).then($e).if(Boolean(z)).then(q=>{let V=new C.default(p).isZero(),[I,j]=q.split("."),W=new Array(r-1).fill(0),Ye=[...W,0].join(""),Ke=[...W,1].join("");return V?i?`<${I}.${Ke}`:n?`${I}.${j}`:I:`${I}.${Ye}`}).if(Boolean(!z&&y)).then(q=>{let[V]=q.split("."),I=y.substring(0,S);if(n){let j=r-I.length;if(j>0){let W=Array(j).fill(0).join("");return I=`${I}${W}`,`${V}.${I}`}return q}return I?`${V}.${I}`:V}).valueOf()}).if(o).then(u=>`-${u}`).valueOf()}var de=t=>({egldValueData:{value:t,formattedValue:je({input:t}),decimals:J}});var We=!1;function Mr(t){var e;try{let n=Ue(t.data).replace(`${(e=t.action)==null?void 0:e.name}@`,""),i=new Xe.default(n,16);if(!i.isNaN())return de(i.toString(10))}catch(r){We||(console.error(`Unable to extract value for txHash: ${t.txHash}`),We=!0)}return de(t.value)}0&&(module.exports={getValueFromDataField});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var Rr=Object.create;var X=Object.defineProperty,Dr=Object.defineProperties,Lr=Object.getOwnPropertyDescriptor,Fr=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertyNames,Ae=Object.getOwnPropertySymbols,Cr=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable;var Re=(t,e,r)=>e in t?X(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,re=(t,e)=>{for(var r in e||(e={}))De.call(e,r)&&Re(t,r,e[r]);if(Ae)for(var r of Ae(e))Ur.call(e,r)&&Re(t,r,e[r]);return t},te=(t,e)=>Dr(t,Fr(e));var Br=(t,e)=>()=>(t&&(e=t(t=0)),e);var ne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Pr=(t,e)=>{for(var r in e)X(t,r,{get:e[r],enumerable:!0})},Le=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Or(e))!De.call(t,i)&&i!==r&&X(t,i,{get:()=>e[i],enumerable:!(n=Lr(e,i))||n.enumerable});return t};var M=(t,e,r)=>(r=t!=null?Rr(Cr(t)):{},Le(e||!t||!t.__esModule?X(r,"default",{value:t,enumerable:!0}):r,t)),Mr=t=>Le(X({},"__esModule",{value:!0}),t);var Ce=ne(ie=>{"use strict";s();ie.byteLength=$r;ie.toByteArray=Hr;ie.fromByteArray=zr;var S=[],I=[],Gr=typeof Uint8Array!="undefined"?Uint8Array:Array,pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(G=0,Fe=pe.length;G<Fe;++G)S[G]=pe[G],I[pe.charCodeAt(G)]=G;var G,Fe;I["-".charCodeAt(0)]=62;I["_".charCodeAt(0)]=63;function Oe(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function $r(t){var e=Oe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Vr(t,e,r){return(e+r)*3/4-r}function Hr(t){var e,r=Oe(t),n=r[0],i=r[1],o=new Gr(Vr(t,n,i)),a=0,c=i>0?n-4:n,d;for(d=0;d<c;d+=4)e=I[t.charCodeAt(d)]<<18|I[t.charCodeAt(d+1)]<<12|I[t.charCodeAt(d+2)]<<6|I[t.charCodeAt(d+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=I[t.charCodeAt(d)]<<2|I[t.charCodeAt(d+1)]>>4,o[a++]=e&255),i===1&&(e=I[t.charCodeAt(d)]<<10|I[t.charCodeAt(d+1)]<<4|I[t.charCodeAt(d+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function Wr(t){return S[t>>18&63]+S[t>>12&63]+S[t>>6&63]+S[t&63]}function qr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Wr(n));return i.join("")}function zr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(qr(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(S[e>>2]+S[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(S[e>>10]+S[e>>4&63]+S[e<<2&63]+"=")),i.join("")}});var Ue=ne(ge=>{s();ge.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,d=(1<<c)-1,m=d>>1,h=-7,f=r?i-1:0,y=r?-1:1,b=t[e+f];for(f+=y,o=b&(1<<-h)-1,b>>=-h,h+=c;h>0;o=o*256+t[e+f],f+=y,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+t[e+f],f+=y,h-=8);if(o===0)o=1-m;else{if(o===d)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-m}return(b?-1:1)*a*Math.pow(2,o-n)};ge.write=function(t,e,r,n,i,o){var a,c,d,m=o*8-i-1,h=(1<<m)-1,f=h>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,k=n?1:-1,Z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-a))<1&&(a--,d*=2),a+f>=1?e+=y/d:e+=y*Math.pow(2,1-f),e*d>=2&&(a++,d/=2),a+f>=h?(c=0,a=h):a+f>=1?(c=(e*d-1)*Math.pow(2,i),a=a+f):(c=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=k,c/=256,i-=8);for(a=a<<i|c,m+=i;m>0;t[r+b]=a&255,b+=k,a/=256,m-=8);t[r+b-k]|=Z*128}});var Xe=ne(q=>{"use strict";s();var de=Ce(),W=Ue(),Be=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=l;q.SlowBuffer=Qr;q.INSPECT_MAX_BYTES=50;var oe=2147483647;q.kMaxLength=oe;l.TYPED_ARRAY_SUPPORT=jr();!l.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 jr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.byteOffset}});function L(t){if(t>oe)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ye(t)}return Ge(t,e,r)}l.poolSize=8192;function Ge(t,e,r){if(typeof t=="string")return Xr(t,e);if(ArrayBuffer.isView(t))return Yr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(N(t,ArrayBuffer)||t&&N(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(N(t,SharedArrayBuffer)||t&&N(t.buffer,SharedArrayBuffer)))return fe(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return l.from(n,e,r);var i=Zr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return l.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l.from=function(t,e,r){return Ge(t,e,r)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function $e(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Kr(t,e,r){return $e(t),t<=0?L(t):e!==void 0?typeof r=="string"?L(t).fill(e,r):L(t).fill(e):L(t)}l.alloc=function(t,e,r){return Kr(t,e,r)};function ye(t){return $e(t),L(t<0?0:Te(t)|0)}l.allocUnsafe=function(t){return ye(t)};l.allocUnsafeSlow=function(t){return ye(t)};function Xr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Ve(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function me(t){for(var e=t.length<0?0:Te(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Yr(t){if(N(t,Uint8Array)){var e=new Uint8Array(t);return fe(e.buffer,e.byteOffset,e.byteLength)}return me(t)}function fe(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,l.prototype),n}function Zr(t){if(l.isBuffer(t)){var e=Te(t.length)|0,r=L(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||xe(t.length)?L(0):me(t);if(t.type==="Buffer"&&Array.isArray(t.data))return me(t.data)}function Te(t){if(t>=oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe.toString(16)+" bytes");return t|0}function Qr(t){return+t!=t&&(t=0),l.alloc(+t)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype};l.compare=function(e,r){if(N(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),N(r,Uint8Array)&&(r=l.from(r,r.offset,r.byteLength)),!l.isBuffer(e)||!l.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};l.isEncoding=function(e){switch(String(e).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}};l.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=l.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(N(a,Uint8Array))o+a.length>i.length?l.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(l.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function Ve(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||N(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return he(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ke(t).length;default:if(i)return n?-1:he(t).length;e=(""+e).toLowerCase(),i=!0}}l.byteLength=Ve;function Jr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return ct(this,e,r);case"utf8":case"utf-8":return We(this,e,r);case"ascii":return st(this,e,r);case"latin1":case"binary":return lt(this,e,r);case"base64":return ot(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function $(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}l.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)$(this,r,r+1);return this};l.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)$(this,r,r+3),$(this,r+1,r+2);return this};l.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)$(this,r,r+7),$(this,r+1,r+6),$(this,r+2,r+5),$(this,r+3,r+4);return this};l.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?We(this,0,e):Jr.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.inspect=function(){var e="",r=q.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Be&&(l.prototype[Be]=l.prototype.inspect);l.prototype.compare=function(e,r,n,i,o){if(N(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,d=Math.min(a,c),m=this.slice(i,o),h=e.slice(r,n),f=0;f<d;++f)if(m[f]!==h[f]){a=m[f],c=h[f];break}return a<c?-1:c<a?1:0};function He(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,xe(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=l.from(e,n)),l.isBuffer(e))return e.length===0?-1:Pe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Pe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Pe(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function d(b,k){return o===1?b[k]:b.readUInt16BE(k*o)}var m;if(i){var h=-1;for(m=r;m<a;m++)if(d(t,m)===d(e,h===-1?0:m-h)){if(h===-1&&(h=m),m-h+1===c)return h*o}else h!==-1&&(m-=m-h),h=-1}else for(r+c>a&&(r=a-c),m=r;m>=0;m--){for(var f=!0,y=0;y<c;y++)if(d(t,m+y)!==d(e,y)){f=!1;break}if(f)return m}return-1}l.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};l.prototype.indexOf=function(e,r,n){return He(this,e,r,n,!0)};l.prototype.lastIndexOf=function(e,r,n){return He(this,e,r,n,!1)};function et(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(xe(c))return a;t[r+a]=c}return a}function rt(t,e,r,n){return ae(he(e,t.length-r),t,r,n)}function tt(t,e,r,n){return ae(dt(e),t,r,n)}function nt(t,e,r,n){return ae(Ke(e),t,r,n)}function it(t,e,r,n){return ae(mt(e,t.length-r),t,r,n)}l.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return et(this,e,r,n);case"utf8":case"utf-8":return rt(this,e,r,n);case"ascii":case"latin1":case"binary":return tt(this,e,r,n);case"base64":return nt(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ot(t,e,r){return e===0&&r===t.length?de.fromByteArray(t):de.fromByteArray(t.slice(e,r))}function We(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var d,m,h,f;switch(c){case 1:o<128&&(a=o);break;case 2:d=t[i+1],(d&192)===128&&(f=(o&31)<<6|d&63,f>127&&(a=f));break;case 3:d=t[i+1],m=t[i+2],(d&192)===128&&(m&192)===128&&(f=(o&15)<<12|(d&63)<<6|m&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:d=t[i+1],m=t[i+2],h=t[i+3],(d&192)===128&&(m&192)===128&&(h&192)===128&&(f=(o&15)<<18|(d&63)<<12|(m&63)<<6|h&63,f>65535&&f<1114112&&(a=f))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return at(n)}var Me=4096;function at(t){var e=t.length;if(e<=Me)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Me));return r}function st(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function lt(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function ct(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=ft[t[o]];return i}function ut(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}l.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,l.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};l.prototype.readUintBE=l.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};l.prototype.readUint8=l.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};l.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};l.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),W.read(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),W.read(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),W.read(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),W.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};l.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,d=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&d===0&&this[r+a-1]!==0&&(d=1),this[r+a]=(e/c>>0)-d&255;return r+n};l.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,d=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&d===0&&this[r+a+1]!==0&&(d=1),this[r+a]=(e/c>>0)-d&255;return r+n};l.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};l.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};l.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function qe(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ze(t,e,r,n,i){return e=+e,r=r>>>0,i||qe(t,e,r,4,34028234663852886e22,-34028234663852886e22),W.write(t,e,r,n,23,4),r+4}l.prototype.writeFloatLE=function(e,r,n){return ze(this,e,r,!0,n)};l.prototype.writeFloatBE=function(e,r,n){return ze(this,e,r,!1,n)};function je(t,e,r,n,i){return e=+e,r=r>>>0,i||qe(t,e,r,8,17976931348623157e292,-17976931348623157e292),W.write(t,e,r,n,52,8),r+8}l.prototype.writeDoubleLE=function(e,r,n){return je(this,e,r,!0,n)};l.prototype.writeDoubleBE=function(e,r,n){return je(this,e,r,!1,n)};l.prototype.copy=function(e,r,n,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};l.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=l.isBuffer(e)?e:l.from(e,i),d=c.length;if(d===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%d]}return this};var pt=/[^+/0-9A-Za-z-_]/g;function gt(t){if(t=t.split("=")[0],t=t.trim().replace(pt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function he(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function dt(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function mt(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Ke(t){return de.toByteArray(gt(t))}function ae(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function N(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function xe(t){return t!==t}var ft=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var er=ne((Lt,Je)=>{s();var T=Je.exports={},_,A;function be(){throw new Error("setTimeout has not been defined")}function we(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=be}catch(t){_=be}try{typeof clearTimeout=="function"?A=clearTimeout:A=we}catch(t){A=we}})();function Ye(t){if(_===setTimeout)return setTimeout(t,0);if((_===be||!_)&&setTimeout)return _=setTimeout,setTimeout(t,0);try{return _(t,0)}catch(e){try{return _.call(null,t,0)}catch(r){return _.call(this,t,0)}}}function ht(t){if(A===clearTimeout)return clearTimeout(t);if((A===we||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(e){try{return A.call(null,t)}catch(r){return A.call(this,t)}}}var F=[],z=!1,V,se=-1;function yt(){!z||!V||(z=!1,V.length?F=V.concat(F):se=-1,F.length&&Ze())}function Ze(){if(!z){var t=Ye(yt);z=!0;for(var e=F.length;e;){for(V=F,F=[];++se<e;)V&&V[se].run();se=-1,e=F.length}V=null,z=!1,ht(t)}}T.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];F.push(new Qe(t,e)),F.length===1&&!z&&Ye(Ze)};function Qe(t,e){this.fun=t,this.array=e}Qe.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function O(){}T.on=O;T.addListener=O;T.once=O;T.off=O;T.removeListener=O;T.removeAllListeners=O;T.emit=O;T.prependListener=O;T.prependOnceListener=O;T.listeners=function(t){return[]};T.binding=function(t){throw new Error("process.binding is not supported")};T.cwd=function(){return"/"};T.chdir=function(t){throw new Error("process.chdir is not supported")};T.umask=function(){return 0}});var u,p,Ft,s=Br(()=>{u=M(Xe()),p=M(er()),Ft=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var St={};Pr(St,{getEgldValueData:()=>D,getTitleText:()=>wt,getValueFromActions:()=>kt,getValueFromDataField:()=>vt,getValueFromOperations:()=>Et});module.exports=Mr(St);s();s();s();s();s();s();s();s();s();s();s();s();s();s();s();s();s();var Ie=(n=>(n.nft="nft",n.esdt="esdt",n.egld="egld",n))(Ie||{});s();s();s();var ve={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:rr,egldLabel:en}=ve["devnet"],{chainId:tr,egldLabel:rn}=ve["testnet"],{chainId:nr,egldLabel:tn}=ve["mainnet"];var nn={["devnet"]:rr,["testnet"]:tr,["mainnet"]:nr},on={[rr]:"devnet",[tr]:"testnet",[nr]:"mainnet"};s();s();s();s();var R=require("@multiversx/sdk-web-wallet-provider");s();s();var E=18,le=4;var ce="0";s();var or=require("@multiversx/sdk-core"),U=M(require("bignumber.js"));s();var ir=M(require("bignumber.js")),Ee=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new ir.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};s();function C(t){return{if:function(e){return e?{then:r=>r instanceof Function?C(r(t)):C(r)}:{then:()=>C(t)}},then:e=>e instanceof Function?C(e(t)):C(e),valueOf:function(){return t}}}U.default.config({ROUNDING_MODE:U.default.ROUND_FLOOR});function B({input:t,decimals:e=E,digits:r=le,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!Ee(t,!1))throw new Error("Invalid input");let a=new U.default(t).isNegative(),c=t;return a&&(c=t.substring(1)),C(c).then(()=>or.TokenTransfer.fungibleFromBigInteger("",c,e).amountAsBigInteger.shiftedBy(-e).toFixed(e)).then(d=>{let m=new U.default(d);if(m.isZero())return ce;let h=m.toString(10),[f,y]=h.split("."),b=new U.default(y||0),k=C(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(b.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),Z=y&&r>=1&&r<=y.length&&b.isGreaterThan(0)&&new U.default(y.substring(0,r)).isZero(),Nr=m.toFormat(k);return C(h).if(o).then(Nr).if(Boolean(Z)).then(Q=>{let K=new U.default(f).isZero(),[v,J]=Q.split("."),ee=new Array(r-1).fill(0),_r=[...ee,0].join(""),Ar=[...ee,1].join("");return K?i?`<${v}.${Ar}`:n?`${v}.${J}`:v:`${v}.${_r}`}).if(Boolean(!Z&&y)).then(Q=>{let[K]=Q.split("."),v=y.substring(0,k);if(n){let J=r-v.length;if(J>0){let ee=Array(J).fill(0).join("");return v=`${v}${ee}`,`${K}.${v}`}return Q}return v?`${K}.${v}`:K}).valueOf()}).if(a).then(d=>`-${d}`).valueOf()}s();s();var Tt=require("@multiversx/sdk-core");s();var Y=require("@multiversx/sdk-core"),bt=require("@multiversx/sdk-network-providers");s();s();var xt=M(require("bignumber.js"));s();s();var ke={isEsdt:!1,isNft:!1,isEgld:!1};function ar(t){let e=t==null?void 0:t.split("-").length;return e===2?te(re({},ke),{isEsdt:!0}):e===3?te(re({},ke),{isNft:!0}):te(re({},ke),{isEgld:!0})}s();s();s();s();s();s();s();s();var P="accounts";var sr="blocks",lr="code",cr="collections";var ur="contracts";var pr="identities";var gr="locked-accounts",dr="logs",mr="miniblocks";var Se="nfts",fr="nodes",Ne="providers",hr="roles",_e="sc-results";var j="tokens";var H="transactions";var ue={shard:t=>`/${sr}?shard=${t}`,receiverShard:t=>`/${H}?receivershard=${t}`,senderShard:t=>`/${H}?sendershard=${t}`,transactionDetails:t=>`/${H}/${t}`,transactionDetailsScResults:t=>`/${H}/${t}/${_e}`,transactionDetailsLogs:t=>`/${H}/${t}/${dr}`,nodeDetails:t=>`/${fr}/${t}`,accountDetails:t=>`/${P}/${t}`,accountDetailsContractCode:t=>`/${P}/${t}/${lr}`,accountDetailsTokens:t=>`/${P}/${t}/${j}`,accountDetailsNfts:t=>`/${P}/${t}/${Se}`,accountDetailsScResults:t=>`/${P}/${t}/${_e}`,accountDetailsContracts:t=>`/${P}/${t}/${ur}`,identityDetails:t=>`/${pr}/${t}`,tokenDetails:t=>`/${j}/${t}`,tokenDetailsAccounts:t=>`/${j}/${t}/${P}`,tokenDetailsLockedAccounts:t=>`/${j}/${t}/${gr}`,tokenDetailsRoles:t=>`/${j}/${t}/${hr}`,collectionDetails:t=>`/${cr}/${t}`,nftDetails:t=>`/${Se}/${t}`,providerDetails:t=>`/${Ne}/${t}`,providerDetailsTransactions:t=>`/${Ne}/${t}/${H}`,miniblockDetails:t=>`/${mr}/${t}`};function yr({token:t,noValue:e,showLastNonZeroDecimal:r}){var m;let n=!e&&t.value&&t.type!=="NonFungibleESDT",i=t.decimals!=null,o="";t.type==="NonFungibleESDT"&&(o="NFT"),t.type==="SemiFungibleESDT"&&(o="SFT"),t.type==="MetaESDT"&&(o="Meta-ESDT");let a="";n&&i&&(a=i?B({input:t.value,decimals:t.decimals,digits:2,showLastNonZeroDecimal:r}):Number(t.value).toLocaleString("en"));let c=ue.nftDetails(String(t.identifier)),d=t.ticker===t.collection&&(m=t.identifier)!=null?m:t.ticker;return{badgeText:o,tokenFormattedAmount:n?a:null,tokenExplorerLink:c,tokenLinkText:d,token:t,noValue:e,showLastNonZeroDecimal:r}}s();function Tr({token:t,noValue:e,showLastNonZeroDecimal:r}){var c;let n=Boolean(!e&&t.value),i=n?B({input:t.value,decimals:(c=t.decimals)!=null?c:E,digits:2,showLastNonZeroDecimal:r,addCommas:!0}):null,o=ue.tokenDetails(String(t.token)),a=t.ticker;return{tokenExplorerLink:o,tokenFormattedAmount:i,showFormattedAmount:n,tokenLinkText:a,token:t,showLastNonZeroDecimal:r}}var wt=t=>{let e=t.map(n=>{let{isNft:i}=ar(n.type);if(i){let{badgeText:h,tokenFormattedAmount:f,tokenLinkText:y}=yr({token:n});return`${h!=null?`(${h}) `:""}${f} ${y}`}let{tokenFormattedAmount:o,tokenLinkText:a,token:c}=Tr({token:n}),d=c.collection?c.identifier:c.token;return`${o} ${a} (${d})`});return decodeURI(e.join("%0A"))};s();var D=t=>({egldValueData:{value:t,formattedValue:B({input:t}),decimals:E}});s();var wr=M(require("bignumber.js"));s();s();function It(t){try{let e=atob(t),r=btoa(e),n=u.Buffer.from(t,"base64").toString(),i=u.Buffer.from(n).toString("base64");if(t===r&&t===i||e===n)return!0}catch(e){return!1}return!1}function xr(t){return It(t)?atob(t):t}s();s();s();s();var br=!1;function vt(t){var e;try{let n=xr(t.data).replace(`${(e=t.action)==null?void 0:e.name}@`,""),i=new wr.default(n,16);if(!i.isNaN())return D(i.toString(10))}catch(r){br||(console.error(`Unable to extract value for txHash: ${t.txHash}`),br=!0)}return D(t.value)}s();s();var Ir=t=>{var r,n;return(n=(r=t==null?void 0:t.operations)==null?void 0:r.filter(i=>Object.values(Ie).includes(i.type)))!=null?n:[]};var vr=!1,Er=t=>{vr||(console.error(`Operations field missing for txHash: ${t}.
|
|
2
|
-
Unable to compute value field.`),vr=!0)};function Et(t){try{if(t.operations){let[e]=Ir(t);return D(e==null?void 0:e.value)}else Er(t.txHash)}catch(e){Er(t.txHash)}return D(t.value)}s();var
|
|
1
|
+
"use strict";var Rr=Object.create;var X=Object.defineProperty,Dr=Object.defineProperties,Lr=Object.getOwnPropertyDescriptor,Fr=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertyNames,Ae=Object.getOwnPropertySymbols,Cr=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable;var Re=(t,e,r)=>e in t?X(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,re=(t,e)=>{for(var r in e||(e={}))De.call(e,r)&&Re(t,r,e[r]);if(Ae)for(var r of Ae(e))Ur.call(e,r)&&Re(t,r,e[r]);return t},te=(t,e)=>Dr(t,Fr(e));var Br=(t,e)=>()=>(t&&(e=t(t=0)),e);var ne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Pr=(t,e)=>{for(var r in e)X(t,r,{get:e[r],enumerable:!0})},Le=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Or(e))!De.call(t,i)&&i!==r&&X(t,i,{get:()=>e[i],enumerable:!(n=Lr(e,i))||n.enumerable});return t};var M=(t,e,r)=>(r=t!=null?Rr(Cr(t)):{},Le(e||!t||!t.__esModule?X(r,"default",{value:t,enumerable:!0}):r,t)),Mr=t=>Le(X({},"__esModule",{value:!0}),t);var Ce=ne(ie=>{"use strict";s();ie.byteLength=$r;ie.toByteArray=Hr;ie.fromByteArray=zr;var N=[],I=[],Gr=typeof Uint8Array!="undefined"?Uint8Array:Array,pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(G=0,Fe=pe.length;G<Fe;++G)N[G]=pe[G],I[pe.charCodeAt(G)]=G;var G,Fe;I["-".charCodeAt(0)]=62;I["_".charCodeAt(0)]=63;function Oe(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function $r(t){var e=Oe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Vr(t,e,r){return(e+r)*3/4-r}function Hr(t){var e,r=Oe(t),n=r[0],i=r[1],o=new Gr(Vr(t,n,i)),a=0,c=i>0?n-4:n,d;for(d=0;d<c;d+=4)e=I[t.charCodeAt(d)]<<18|I[t.charCodeAt(d+1)]<<12|I[t.charCodeAt(d+2)]<<6|I[t.charCodeAt(d+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=I[t.charCodeAt(d)]<<2|I[t.charCodeAt(d+1)]>>4,o[a++]=e&255),i===1&&(e=I[t.charCodeAt(d)]<<10|I[t.charCodeAt(d+1)]<<4|I[t.charCodeAt(d+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function Wr(t){return N[t>>18&63]+N[t>>12&63]+N[t>>6&63]+N[t&63]}function qr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Wr(n));return i.join("")}function zr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(qr(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(N[e>>2]+N[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(N[e>>10]+N[e>>4&63]+N[e<<2&63]+"=")),i.join("")}});var Ue=ne(ge=>{s();ge.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,d=(1<<c)-1,m=d>>1,h=-7,f=r?i-1:0,y=r?-1:1,b=t[e+f];for(f+=y,o=b&(1<<-h)-1,b>>=-h,h+=c;h>0;o=o*256+t[e+f],f+=y,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+t[e+f],f+=y,h-=8);if(o===0)o=1-m;else{if(o===d)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-m}return(b?-1:1)*a*Math.pow(2,o-n)};ge.write=function(t,e,r,n,i,o){var a,c,d,m=o*8-i-1,h=(1<<m)-1,f=h>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,k=n?1:-1,Z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-a))<1&&(a--,d*=2),a+f>=1?e+=y/d:e+=y*Math.pow(2,1-f),e*d>=2&&(a++,d/=2),a+f>=h?(c=0,a=h):a+f>=1?(c=(e*d-1)*Math.pow(2,i),a=a+f):(c=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=k,c/=256,i-=8);for(a=a<<i|c,m+=i;m>0;t[r+b]=a&255,b+=k,a/=256,m-=8);t[r+b-k]|=Z*128}});var Xe=ne(q=>{"use strict";s();var de=Ce(),W=Ue(),Be=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=l;q.SlowBuffer=Qr;q.INSPECT_MAX_BYTES=50;var oe=2147483647;q.kMaxLength=oe;l.TYPED_ARRAY_SUPPORT=jr();!l.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 jr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.byteOffset}});function L(t){if(t>oe)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ye(t)}return Ge(t,e,r)}l.poolSize=8192;function Ge(t,e,r){if(typeof t=="string")return Xr(t,e);if(ArrayBuffer.isView(t))return Yr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(S(t,SharedArrayBuffer)||t&&S(t.buffer,SharedArrayBuffer)))return fe(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return l.from(n,e,r);var i=Zr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return l.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}l.from=function(t,e,r){return Ge(t,e,r)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function $e(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Kr(t,e,r){return $e(t),t<=0?L(t):e!==void 0?typeof r=="string"?L(t).fill(e,r):L(t).fill(e):L(t)}l.alloc=function(t,e,r){return Kr(t,e,r)};function ye(t){return $e(t),L(t<0?0:Te(t)|0)}l.allocUnsafe=function(t){return ye(t)};l.allocUnsafeSlow=function(t){return ye(t)};function Xr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Ve(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function me(t){for(var e=t.length<0?0:Te(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Yr(t){if(S(t,Uint8Array)){var e=new Uint8Array(t);return fe(e.buffer,e.byteOffset,e.byteLength)}return me(t)}function fe(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,l.prototype),n}function Zr(t){if(l.isBuffer(t)){var e=Te(t.length)|0,r=L(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||xe(t.length)?L(0):me(t);if(t.type==="Buffer"&&Array.isArray(t.data))return me(t.data)}function Te(t){if(t>=oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe.toString(16)+" bytes");return t|0}function Qr(t){return+t!=t&&(t=0),l.alloc(+t)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype};l.compare=function(e,r){if(S(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),S(r,Uint8Array)&&(r=l.from(r,r.offset,r.byteLength)),!l.isBuffer(e)||!l.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};l.isEncoding=function(e){switch(String(e).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}};l.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=l.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(S(a,Uint8Array))o+a.length>i.length?l.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(l.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function Ve(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return he(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ke(t).length;default:if(i)return n?-1:he(t).length;e=(""+e).toLowerCase(),i=!0}}l.byteLength=Ve;function Jr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return ct(this,e,r);case"utf8":case"utf-8":return We(this,e,r);case"ascii":return st(this,e,r);case"latin1":case"binary":return lt(this,e,r);case"base64":return ot(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function $(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}l.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)$(this,r,r+1);return this};l.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)$(this,r,r+3),$(this,r+1,r+2);return this};l.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)$(this,r,r+7),$(this,r+1,r+6),$(this,r+2,r+5),$(this,r+3,r+4);return this};l.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?We(this,0,e):Jr.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.inspect=function(){var e="",r=q.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Be&&(l.prototype[Be]=l.prototype.inspect);l.prototype.compare=function(e,r,n,i,o){if(S(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,d=Math.min(a,c),m=this.slice(i,o),h=e.slice(r,n),f=0;f<d;++f)if(m[f]!==h[f]){a=m[f],c=h[f];break}return a<c?-1:c<a?1:0};function He(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,xe(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=l.from(e,n)),l.isBuffer(e))return e.length===0?-1:Pe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Pe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Pe(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function d(b,k){return o===1?b[k]:b.readUInt16BE(k*o)}var m;if(i){var h=-1;for(m=r;m<a;m++)if(d(t,m)===d(e,h===-1?0:m-h)){if(h===-1&&(h=m),m-h+1===c)return h*o}else h!==-1&&(m-=m-h),h=-1}else for(r+c>a&&(r=a-c),m=r;m>=0;m--){for(var f=!0,y=0;y<c;y++)if(d(t,m+y)!==d(e,y)){f=!1;break}if(f)return m}return-1}l.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};l.prototype.indexOf=function(e,r,n){return He(this,e,r,n,!0)};l.prototype.lastIndexOf=function(e,r,n){return He(this,e,r,n,!1)};function et(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(xe(c))return a;t[r+a]=c}return a}function rt(t,e,r,n){return ae(he(e,t.length-r),t,r,n)}function tt(t,e,r,n){return ae(dt(e),t,r,n)}function nt(t,e,r,n){return ae(Ke(e),t,r,n)}function it(t,e,r,n){return ae(mt(e,t.length-r),t,r,n)}l.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return et(this,e,r,n);case"utf8":case"utf-8":return rt(this,e,r,n);case"ascii":case"latin1":case"binary":return tt(this,e,r,n);case"base64":return nt(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ot(t,e,r){return e===0&&r===t.length?de.fromByteArray(t):de.fromByteArray(t.slice(e,r))}function We(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var d,m,h,f;switch(c){case 1:o<128&&(a=o);break;case 2:d=t[i+1],(d&192)===128&&(f=(o&31)<<6|d&63,f>127&&(a=f));break;case 3:d=t[i+1],m=t[i+2],(d&192)===128&&(m&192)===128&&(f=(o&15)<<12|(d&63)<<6|m&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:d=t[i+1],m=t[i+2],h=t[i+3],(d&192)===128&&(m&192)===128&&(h&192)===128&&(f=(o&15)<<18|(d&63)<<12|(m&63)<<6|h&63,f>65535&&f<1114112&&(a=f))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return at(n)}var Me=4096;function at(t){var e=t.length;if(e<=Me)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Me));return r}function st(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function lt(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function ct(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=ft[t[o]];return i}function ut(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}l.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,l.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};l.prototype.readUintBE=l.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};l.prototype.readUint8=l.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};l.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};l.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),W.read(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),W.read(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),W.read(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),W.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};l.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,d=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&d===0&&this[r+a-1]!==0&&(d=1),this[r+a]=(e/c>>0)-d&255;return r+n};l.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,d=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&d===0&&this[r+a+1]!==0&&(d=1),this[r+a]=(e/c>>0)-d&255;return r+n};l.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};l.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};l.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function qe(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ze(t,e,r,n,i){return e=+e,r=r>>>0,i||qe(t,e,r,4,34028234663852886e22,-34028234663852886e22),W.write(t,e,r,n,23,4),r+4}l.prototype.writeFloatLE=function(e,r,n){return ze(this,e,r,!0,n)};l.prototype.writeFloatBE=function(e,r,n){return ze(this,e,r,!1,n)};function je(t,e,r,n,i){return e=+e,r=r>>>0,i||qe(t,e,r,8,17976931348623157e292,-17976931348623157e292),W.write(t,e,r,n,52,8),r+8}l.prototype.writeDoubleLE=function(e,r,n){return je(this,e,r,!0,n)};l.prototype.writeDoubleBE=function(e,r,n){return je(this,e,r,!1,n)};l.prototype.copy=function(e,r,n,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};l.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=l.isBuffer(e)?e:l.from(e,i),d=c.length;if(d===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%d]}return this};var pt=/[^+/0-9A-Za-z-_]/g;function gt(t){if(t=t.split("=")[0],t=t.trim().replace(pt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function he(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function dt(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function mt(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Ke(t){return de.toByteArray(gt(t))}function ae(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function S(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function xe(t){return t!==t}var ft=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var er=ne((Lt,Je)=>{s();var T=Je.exports={},_,A;function be(){throw new Error("setTimeout has not been defined")}function we(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=be}catch(t){_=be}try{typeof clearTimeout=="function"?A=clearTimeout:A=we}catch(t){A=we}})();function Ye(t){if(_===setTimeout)return setTimeout(t,0);if((_===be||!_)&&setTimeout)return _=setTimeout,setTimeout(t,0);try{return _(t,0)}catch(e){try{return _.call(null,t,0)}catch(r){return _.call(this,t,0)}}}function ht(t){if(A===clearTimeout)return clearTimeout(t);if((A===we||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(e){try{return A.call(null,t)}catch(r){return A.call(this,t)}}}var F=[],z=!1,V,se=-1;function yt(){!z||!V||(z=!1,V.length?F=V.concat(F):se=-1,F.length&&Ze())}function Ze(){if(!z){var t=Ye(yt);z=!0;for(var e=F.length;e;){for(V=F,F=[];++se<e;)V&&V[se].run();se=-1,e=F.length}V=null,z=!1,ht(t)}}T.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];F.push(new Qe(t,e)),F.length===1&&!z&&Ye(Ze)};function Qe(t,e){this.fun=t,this.array=e}Qe.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function O(){}T.on=O;T.addListener=O;T.once=O;T.off=O;T.removeListener=O;T.removeAllListeners=O;T.emit=O;T.prependListener=O;T.prependOnceListener=O;T.listeners=function(t){return[]};T.binding=function(t){throw new Error("process.binding is not supported")};T.cwd=function(){return"/"};T.chdir=function(t){throw new Error("process.chdir is not supported")};T.umask=function(){return 0}});var u,p,Ft,s=Br(()=>{u=M(Xe()),p=M(er()),Ft=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Nt={};Pr(Nt,{getEgldValueData:()=>D,getTitleText:()=>wt,getValueFromActions:()=>kt,getValueFromDataField:()=>vt,getValueFromOperations:()=>Et});module.exports=Mr(Nt);s();s();s();s();s();s();s();s();s();s();s();s();s();s();s();s();s();var Ie=(n=>(n.nft="nft",n.esdt="esdt",n.egld="egld",n))(Ie||{});s();s();s();var ve={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:rr,egldLabel:en}=ve["devnet"],{chainId:tr,egldLabel:rn}=ve["testnet"],{chainId:nr,egldLabel:tn}=ve["mainnet"];var nn={["devnet"]:rr,["testnet"]:tr,["mainnet"]:nr},on={[rr]:"devnet",[tr]:"testnet",[nr]:"mainnet"};s();s();s();s();var R=require("@multiversx/sdk-web-wallet-provider");s();s();var E=18,le=4;var ce="0";s();var or=require("@multiversx/sdk-core"),U=M(require("bignumber.js"));s();var ir=M(require("bignumber.js")),Ee=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new ir.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};s();function C(t){return{if:function(e){return e?{then:r=>r instanceof Function?C(r(t)):C(r)}:{then:()=>C(t)}},then:e=>e instanceof Function?C(e(t)):C(e),valueOf:function(){return t}}}U.default.config({ROUNDING_MODE:U.default.ROUND_FLOOR});function B({input:t,decimals:e=E,digits:r=le,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!Ee(t,!1))throw new Error("Invalid input");let a=new U.default(t).isNegative(),c=t;return a&&(c=t.substring(1)),C(c).then(()=>or.TokenTransfer.fungibleFromBigInteger("",c,e).amountAsBigInteger.shiftedBy(-e).toFixed(e)).then(d=>{let m=new U.default(d);if(m.isZero())return ce;let h=m.toString(10),[f,y]=h.split("."),b=new U.default(y||0),k=C(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(b.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),Z=y&&r>=1&&r<=y.length&&b.isGreaterThan(0)&&new U.default(y.substring(0,r)).isZero(),Sr=m.toFormat(k);return C(h).if(o).then(Sr).if(Boolean(Z)).then(Q=>{let K=new U.default(f).isZero(),[v,J]=Q.split("."),ee=new Array(r-1).fill(0),_r=[...ee,0].join(""),Ar=[...ee,1].join("");return K?i?`<${v}.${Ar}`:n?`${v}.${J}`:v:`${v}.${_r}`}).if(Boolean(!Z&&y)).then(Q=>{let[K]=Q.split("."),v=y.substring(0,k);if(n){let J=r-v.length;if(J>0){let ee=Array(J).fill(0).join("");return v=`${v}${ee}`,`${K}.${v}`}return Q}return v?`${K}.${v}`:K}).valueOf()}).if(a).then(d=>`-${d}`).valueOf()}s();s();var Tt=require("@multiversx/sdk-core");s();var Y=require("@multiversx/sdk-core"),bt=require("@multiversx/sdk-network-providers");s();s();var xt=M(require("bignumber.js"));s();s();var ke={isEsdt:!1,isNft:!1,isEgld:!1};function ar(t){let e=t==null?void 0:t.split("-").length;return e===2?te(re({},ke),{isEsdt:!0}):e===3?te(re({},ke),{isNft:!0}):te(re({},ke),{isEgld:!0})}s();s();s();s();s();s();s();s();var P="accounts";var sr="blocks",lr="code",cr="collections";var ur="contracts";var pr="identities";var gr="locked-accounts",dr="logs",mr="miniblocks";var Ne="nfts",fr="nodes",Se="providers",hr="roles",_e="sc-results";var j="tokens";var H="transactions";var ue={shard:t=>`/${sr}?shard=${t}`,receiverShard:t=>`/${H}?receivershard=${t}`,senderShard:t=>`/${H}?sendershard=${t}`,transactionDetails:t=>`/${H}/${t}`,transactionDetailsScResults:t=>`/${H}/${t}/${_e}`,transactionDetailsLogs:t=>`/${H}/${t}/${dr}`,nodeDetails:t=>`/${fr}/${t}`,accountDetails:t=>`/${P}/${t}`,accountDetailsContractCode:t=>`/${P}/${t}/${lr}`,accountDetailsTokens:t=>`/${P}/${t}/${j}`,accountDetailsNfts:t=>`/${P}/${t}/${Ne}`,accountDetailsScResults:t=>`/${P}/${t}/${_e}`,accountDetailsContracts:t=>`/${P}/${t}/${ur}`,identityDetails:t=>`/${pr}/${t}`,tokenDetails:t=>`/${j}/${t}`,tokenDetailsAccounts:t=>`/${j}/${t}/${P}`,tokenDetailsLockedAccounts:t=>`/${j}/${t}/${gr}`,tokenDetailsRoles:t=>`/${j}/${t}/${hr}`,collectionDetails:t=>`/${cr}/${t}`,nftDetails:t=>`/${Ne}/${t}`,providerDetails:t=>`/${Se}/${t}`,providerDetailsTransactions:t=>`/${Se}/${t}/${H}`,miniblockDetails:t=>`/${mr}/${t}`};function yr({token:t,noValue:e,showLastNonZeroDecimal:r}){var m;let n=!e&&t.value&&t.type!=="NonFungibleESDT",i=t.decimals!=null,o="";t.type==="NonFungibleESDT"&&(o="NFT"),t.type==="SemiFungibleESDT"&&(o="SFT"),t.type==="MetaESDT"&&(o="Meta-ESDT");let a="";n&&i&&(a=i?B({input:t.value,decimals:t.decimals,digits:2,showLastNonZeroDecimal:r}):Number(t.value).toLocaleString("en"));let c=ue.nftDetails(String(t.identifier)),d=t.ticker===t.collection&&(m=t.identifier)!=null?m:t.ticker;return{badgeText:o,tokenFormattedAmount:n?a:null,tokenExplorerLink:c,tokenLinkText:d,token:t,noValue:e,showLastNonZeroDecimal:r}}s();function Tr({token:t,noValue:e,showLastNonZeroDecimal:r}){var c;let n=Boolean(!e&&t.value),i=n?B({input:t.value,decimals:(c=t.decimals)!=null?c:E,digits:2,showLastNonZeroDecimal:r,addCommas:!0}):null,o=ue.tokenDetails(String(t.token)),a=t.ticker;return{tokenExplorerLink:o,tokenFormattedAmount:i,showFormattedAmount:n,tokenLinkText:a,token:t,showLastNonZeroDecimal:r}}var wt=t=>{let e=t.map(n=>{let{isNft:i}=ar(n.type);if(i){let{badgeText:h,tokenFormattedAmount:f,tokenLinkText:y}=yr({token:n});return`${h!=null?`(${h}) `:""}${f} ${y}`}let{tokenFormattedAmount:o,tokenLinkText:a,token:c}=Tr({token:n}),d=c.collection?c.identifier:c.token;return`${o} ${a} (${d})`});return decodeURI(e.join("%0A"))};s();var D=t=>({egldValueData:{value:t,formattedValue:B({input:t}),decimals:E}});s();var wr=M(require("bignumber.js"));s();s();function It(t){try{let e=atob(t),r=btoa(e),n=u.Buffer.from(t,"base64").toString(),i=u.Buffer.from(n).toString("base64");if(t===r&&t===i||e===n)return!0}catch(e){return!1}return!1}function xr(t){return It(t)?atob(t):t}s();s();s();s();var br=!1;function vt(t){var e;try{let n=xr(t.data).replace(`${(e=t.action)==null?void 0:e.name}@`,""),i=new wr.default(n,16);if(!i.isNaN())return D(i.toString(10))}catch(r){br||(console.error(`Unable to extract value for txHash: ${t.txHash}`),br=!0)}return D(t.value)}s();s();var Ir=t=>{var r,n;return(n=(r=t==null?void 0:t.operations)==null?void 0:r.filter(i=>Object.values(Ie).includes(i.type)))!=null?n:[]};var vr=!1,Er=t=>{vr||(console.error(`Operations field missing for txHash: ${t}.
|
|
2
|
+
Unable to compute value field.`),vr=!0)};function Et(t){try{if(t.operations){let[e]=Ir(t);return D(e==null?void 0:e.value)}else Er(t.txHash)}catch(e){Er(t.txHash)}return D(t.value)}s();var Nr=M(require("bignumber.js"));var kr=!1;function kt(t){var r,n,i,o,a;return new Nr.default((n=(r=t.action)==null?void 0:r.arguments)==null?void 0:n.value).isNaN()?(kr||(console.error(`Unable to interpret ${(a=t.action)==null?void 0:a.name} data for txHash: ${t.txHash}`),kr=!0),D(t.value)):D((o=(i=t.action)==null?void 0:i.arguments)==null?void 0:o.value)}0&&(module.exports={getEgldValueData,getTitleText,getValueFromActions,getValueFromDataField,getValueFromOperations});
|
|
3
3
|
/*!
|
|
4
4
|
* The buffer module from node.js, for the browser.
|
|
5
5
|
*
|