@multiversx/sdk-dapp 2.14.4 → 2.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/Denominate/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/FormatAmount/FormatAmount.js +1 -1
- package/UI/FormatAmount/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/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/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/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-Z5J4KYS4.js → chunk-227PIFHJ.js} +2 -2
- package/__chunks__/{chunk-Y45HECK3.js → chunk-26JJZN6W.js} +2 -2
- package/__chunks__/{chunk-PQH2E33V.js → chunk-2A55W5J6.js} +2 -2
- package/__chunks__/{chunk-FMHS53L2.js → chunk-2ANYBRLN.js} +2 -2
- package/__chunks__/{chunk-FALDLO5J.js → chunk-2FD27C7T.js} +2 -2
- package/__chunks__/{chunk-635DGGEZ.js → chunk-2FXGMQ3S.js} +2 -2
- package/__chunks__/{chunk-XPO7HQNJ.js → chunk-2HJBIJXJ.js} +2 -2
- package/__chunks__/{chunk-WYC35YN5.js → chunk-2KOT5A6U.js} +2 -2
- package/__chunks__/{chunk-4HLBG6FV.js → chunk-2UZ4MFQC.js} +2 -2
- package/__chunks__/{chunk-OKNX6OPM.js → chunk-2VK6P4O6.js} +2 -2
- package/__chunks__/chunk-2XUNKBEM.js +2 -0
- package/__chunks__/chunk-2ZG27GCE.js +2 -0
- package/__chunks__/{chunk-JDDXX4XK.js → chunk-3CBN7R3F.js} +2 -2
- package/__chunks__/chunk-3PHJ6U5C.js +2 -0
- package/__chunks__/{chunk-JSD4JECW.js → chunk-3S3MPIFQ.js} +2 -2
- package/__chunks__/{chunk-ZOO6MTHQ.js → chunk-3TZTKPJN.js} +2 -2
- package/__chunks__/{chunk-SXXNWPUP.js → chunk-44IAI5C5.js} +2 -2
- package/__chunks__/{chunk-RL3UM3UC.js → chunk-44JKED6W.js} +2 -2
- package/__chunks__/{chunk-DDBEV3M5.js → chunk-44SOBIJT.js} +2 -2
- package/__chunks__/{chunk-EW3SEUQV.js → chunk-4B3DD27S.js} +2 -2
- package/__chunks__/{chunk-NKHBIONP.js → chunk-4FEECUQR.js} +2 -2
- package/__chunks__/chunk-4HQ2JNNI.js +2 -0
- package/__chunks__/{chunk-NAUXCAHX.js → chunk-4OZD3S6I.js} +2 -2
- package/__chunks__/{chunk-4M4ZG6UK.js → chunk-4PBZBL4S.js} +2 -2
- package/__chunks__/chunk-4QQFMIZ5.js +2 -0
- package/__chunks__/{chunk-SD2GJCO7.js → chunk-4TFTP5RO.js} +2 -2
- package/__chunks__/chunk-4UOL7BFP.js +2 -0
- package/__chunks__/{chunk-CEWLSMXS.js → chunk-4WRW2TDW.js} +2 -2
- package/__chunks__/{chunk-Z54DAJHV.js → chunk-4ZEQOJG2.js} +2 -2
- package/__chunks__/{chunk-5JPDPSOU.js → chunk-525SCMTB.js} +2 -2
- package/__chunks__/{chunk-QEWHY26T.js → chunk-5AIM25YR.js} +2 -2
- package/__chunks__/{chunk-LNQARCOO.js → chunk-5DIICYEZ.js} +2 -2
- package/__chunks__/{chunk-PZODOGW5.js → chunk-5IZBRUG5.js} +2 -2
- package/__chunks__/{chunk-YKAKLVB7.js → chunk-5JVZM4CL.js} +2 -2
- package/__chunks__/{chunk-NUWNMCYM.js → chunk-5SF7X4NC.js} +2 -2
- package/__chunks__/{chunk-EVOUYW77.js → chunk-5YEUVHSB.js} +2 -2
- package/__chunks__/{chunk-KKG5HGC2.js → chunk-5YRF6I4O.js} +2 -2
- package/__chunks__/{chunk-G67YB5IT.js → chunk-665ZPR6B.js} +2 -2
- package/__chunks__/{chunk-OBKYH7E7.js → chunk-66P7X5DN.js} +2 -2
- package/__chunks__/{chunk-RS66KCFE.js → chunk-6AKAKOPX.js} +2 -2
- package/__chunks__/chunk-6AR2UXRZ.js +2 -0
- package/__chunks__/{chunk-6VU3LZIS.js → chunk-6CN7FOSZ.js} +2 -2
- package/__chunks__/{chunk-AJJUE6BQ.js → chunk-6ECO56AR.js} +2 -2
- package/__chunks__/{chunk-EFBSLWOT.js → chunk-6GNYCS7K.js} +2 -2
- package/__chunks__/chunk-6K3CHAPG.js +2 -0
- package/__chunks__/{chunk-TMXR7CZN.js → chunk-6MJZZVQA.js} +2 -2
- package/__chunks__/{chunk-ZRF45QPZ.js → chunk-6NIVPKD7.js} +2 -2
- package/__chunks__/{chunk-E6ARLC2I.js → chunk-6NMX4F2R.js} +2 -2
- package/__chunks__/{chunk-W7WSJP4R.js → chunk-6NXHTQAA.js} +2 -2
- package/__chunks__/{chunk-JFYYTG2B.js → chunk-6O3PJDHO.js} +2 -2
- package/__chunks__/{chunk-F2IU3HVC.js → chunk-6QQ4ACXD.js} +2 -2
- package/__chunks__/{chunk-K7TKWQTX.js → chunk-6RZZWFZ6.js} +2 -2
- package/__chunks__/{chunk-FI4EFU5H.js → chunk-6SGPN45M.js} +2 -2
- package/__chunks__/{chunk-JCB2UFE6.js → chunk-6SOFNFU6.js} +2 -2
- package/__chunks__/{chunk-TP3Q54FK.js → chunk-6T5ZW7AW.js} +2 -2
- package/__chunks__/{chunk-TQBXI4DC.js → chunk-6WFCZYRD.js} +2 -2
- package/__chunks__/{chunk-5UZMHOUB.js → chunk-6XJPIMGH.js} +2 -2
- package/__chunks__/{chunk-4WQJMUQT.js → chunk-765YOT7P.js} +2 -2
- package/__chunks__/{chunk-ZMMAM33G.js → chunk-76NPWQ5Z.js} +2 -2
- package/__chunks__/{chunk-DGMWAKSQ.js → chunk-76ZQIMBX.js} +2 -2
- package/__chunks__/{chunk-J4WGRY4B.js → chunk-77SS4NMA.js} +2 -2
- package/__chunks__/{chunk-D7WB3QEQ.js → chunk-7BUVO7AQ.js} +2 -2
- package/__chunks__/{chunk-JTR3JIF5.js → chunk-7BXW2FRM.js} +2 -2
- package/__chunks__/chunk-7JRIYN7J.js +2 -0
- package/__chunks__/{chunk-NXSPBH7F.js → chunk-7KX3VWAE.js} +2 -2
- package/__chunks__/chunk-7OKOV3MZ.js +2 -0
- package/__chunks__/{chunk-2SAKHJIZ.js → chunk-7Q5LVGH4.js} +2 -2
- package/__chunks__/{chunk-QOTHHSFI.js → chunk-7QVOCGYL.js} +2 -2
- package/__chunks__/{chunk-75LIHOT7.js → chunk-7R4A7NYZ.js} +2 -2
- package/__chunks__/chunk-7ZWZBQHR.js +2 -0
- package/__chunks__/{chunk-YZKG4SBK.js → chunk-A3HDQGOE.js} +2 -2
- package/__chunks__/{chunk-ZT5PGSCX.js → chunk-A4YXJB4N.js} +2 -2
- package/__chunks__/{chunk-3SHFG3Q2.js → chunk-AFMFEKJL.js} +2 -2
- package/__chunks__/{chunk-GMBHZ3VM.js → chunk-ALVLGOUI.js} +2 -2
- package/__chunks__/chunk-AORB4GL3.js +2 -0
- package/__chunks__/chunk-ARKROIYU.js +2 -0
- package/__chunks__/{chunk-C6FBV65M.js → chunk-B4RZVRF6.js} +2 -2
- package/__chunks__/chunk-B526DLZX.js +2 -0
- package/__chunks__/{chunk-IUPOWYEB.js → chunk-BBX7PGVI.js} +2 -2
- package/__chunks__/{chunk-7EKFPJ4U.js → chunk-BEKJAGWB.js} +2 -2
- package/__chunks__/{chunk-TNWHUSBS.js → chunk-BJPUISKJ.js} +2 -2
- package/__chunks__/{chunk-S2KRJP2S.js → chunk-BP6UJLJ6.js} +2 -2
- package/__chunks__/{chunk-CCPH6YBW.js → chunk-BPQSY3MV.js} +2 -2
- package/__chunks__/chunk-BS3WPNZX.js +2 -0
- package/__chunks__/{chunk-665NO27H.js → chunk-BXRTMNNC.js} +2 -2
- package/__chunks__/{chunk-AVYCZJNR.js → chunk-BZUP773Y.js} +2 -2
- package/__chunks__/{chunk-CIIGMUYW.js → chunk-C4VVSJRA.js} +2 -2
- package/__chunks__/{chunk-KXYIK2NA.js → chunk-CFH7TTFD.js} +2 -2
- package/__chunks__/{chunk-QEE3NIKR.js → chunk-CI7VJAOZ.js} +2 -2
- package/__chunks__/{chunk-LDQULRQM.js → chunk-CIZ4CC3A.js} +2 -2
- package/__chunks__/{chunk-4P42QTUO.js → chunk-CK56GYBV.js} +2 -2
- package/__chunks__/{chunk-AURFLPJI.js → chunk-CP22U32T.js} +2 -2
- package/__chunks__/{chunk-HXXADXWC.js → chunk-CTECXHBH.js} +2 -2
- package/__chunks__/{chunk-URQFLH5U.js → chunk-CVKAF7GU.js} +2 -2
- package/__chunks__/{chunk-B3T5YNKO.js → chunk-CVR4KWI2.js} +2 -2
- package/__chunks__/{chunk-2T3SZVFQ.js → chunk-CWKDQAE3.js} +2 -2
- package/__chunks__/{chunk-CF2SJYLM.js → chunk-CYBBIALG.js} +2 -2
- package/__chunks__/{chunk-CNFWXUMD.js → chunk-CYCBNOOH.js} +2 -2
- package/__chunks__/chunk-D4NNYQNI.js +2 -0
- package/__chunks__/{chunk-KQBWXEGB.js → chunk-D5PG3KPY.js} +2 -2
- package/__chunks__/{chunk-SZOZTDWH.js → chunk-DDDEBD3H.js} +2 -2
- package/__chunks__/chunk-DDUHPX5B.js +2 -0
- package/__chunks__/{chunk-7EH2JVA7.js → chunk-DK32AR5A.js} +2 -2
- package/__chunks__/{chunk-XNI2WT7G.js → chunk-DOLHFGAO.js} +2 -2
- package/__chunks__/chunk-DPRAO3PV.js +2 -0
- package/__chunks__/{chunk-7YAAJ7LN.js → chunk-DRRZLU37.js} +2 -2
- package/__chunks__/{chunk-CAPUQHFB.js → chunk-E4BMLWJQ.js} +2 -2
- package/__chunks__/{chunk-263MHKKC.js → chunk-EAVFFW6D.js} +2 -2
- package/__chunks__/{chunk-UVV6SVD7.js → chunk-EB7ZWTSY.js} +2 -2
- package/__chunks__/{chunk-RJ7SJMWT.js → chunk-EBIEPCKP.js} +2 -2
- package/__chunks__/{chunk-VB6VZREF.js → chunk-ECECRARS.js} +2 -2
- package/__chunks__/{chunk-WAEYJOW2.js → chunk-ECFQRKBQ.js} +2 -2
- package/__chunks__/{chunk-V6IICA5I.js → chunk-EDSXRVJA.js} +2 -2
- package/__chunks__/{chunk-QDMQLFXE.js → chunk-EJEYIK7H.js} +2 -2
- package/__chunks__/{chunk-HR35FFSQ.js → chunk-EONQ6O2S.js} +2 -2
- package/__chunks__/{chunk-Y6GGQYWM.js → chunk-EPKDDRNV.js} +2 -2
- package/__chunks__/{chunk-6C4DO7CC.js → chunk-EQGTLK7B.js} +2 -2
- package/__chunks__/{chunk-PZHE5BUA.js → chunk-ERD7M4J6.js} +2 -2
- package/__chunks__/{chunk-UTT6IDXI.js → chunk-ET5PWW6U.js} +2 -2
- package/__chunks__/{chunk-HEO7KJU5.js → chunk-EU5G4DAQ.js} +2 -2
- package/__chunks__/{chunk-M233YJDK.js → chunk-EZCQPLF5.js} +1 -1
- package/__chunks__/{chunk-XT2LQFA3.js → chunk-F23EI64H.js} +2 -2
- package/__chunks__/{chunk-J4FVDFZJ.js → chunk-F4RR2MI3.js} +2 -2
- package/__chunks__/{chunk-LKEL6F45.js → chunk-FDSL4UNE.js} +2 -2
- package/__chunks__/{chunk-RA4VBSV4.js → chunk-FLTQKQXZ.js} +2 -2
- package/__chunks__/chunk-FM4NFE7O.js +2 -0
- package/__chunks__/chunk-FPG3XYE5.js +2 -0
- package/__chunks__/{chunk-NWXRQXN3.js → chunk-FQCOLVNB.js} +2 -2
- package/__chunks__/{chunk-LG7JWTT4.js → chunk-FS2Y3TRJ.js} +2 -2
- package/__chunks__/{chunk-FG74WDBQ.js → chunk-FUNQ3ZDS.js} +2 -2
- package/__chunks__/{chunk-SLS4RCYR.js → chunk-FXLGORZY.js} +2 -2
- package/__chunks__/chunk-G3URCKTB.js +2 -0
- package/__chunks__/{chunk-RUM7PECI.js → chunk-G77DU7KW.js} +2 -2
- package/__chunks__/{chunk-EUKXYU34.js → chunk-GBXV2IZ4.js} +2 -2
- package/__chunks__/{chunk-NQYHKHB7.js → chunk-GCUAS5W3.js} +2 -2
- package/__chunks__/{chunk-F72QCCQU.js → chunk-GDBNKPWX.js} +2 -2
- package/__chunks__/{chunk-GAYS6IZO.js → chunk-GEPT4RMT.js} +2 -2
- package/__chunks__/{chunk-QEHQ4T4K.js → chunk-GFEGGQCU.js} +2 -2
- package/__chunks__/{chunk-2LCMVQG2.js → chunk-GHWA4ARO.js} +2 -2
- package/__chunks__/{chunk-H2KQWRZO.js → chunk-GJVP752J.js} +2 -2
- package/__chunks__/{chunk-K34TH3BZ.js → chunk-GXIFDTPZ.js} +2 -2
- package/__chunks__/{chunk-V2Z6FH3E.js → chunk-H4MEI7MA.js} +2 -2
- package/__chunks__/{chunk-IN5ODNNJ.js → chunk-HDWDCB2R.js} +2 -2
- package/__chunks__/{chunk-HUNAKHPM.js → chunk-HEGJ6VWU.js} +2 -2
- package/__chunks__/{chunk-7Q3LNSP3.js → chunk-HGWCS4DV.js} +2 -2
- package/__chunks__/{chunk-HTSOC23O.js → chunk-HIZU3X76.js} +2 -2
- package/__chunks__/{chunk-NBOVG4WO.js → chunk-HLWM6AOP.js} +2 -2
- package/__chunks__/{chunk-354E6SKU.js → chunk-HM2JAQZ7.js} +2 -2
- package/__chunks__/{chunk-VLRIBNO6.js → chunk-HN2WAZKY.js} +2 -2
- package/__chunks__/{chunk-5774QZTU.js → chunk-HWNBOBAT.js} +2 -2
- package/__chunks__/{chunk-BPCYDSCL.js → chunk-I5CZZRD7.js} +2 -2
- package/__chunks__/{chunk-ZGSSETC7.js → chunk-IDUEKWWT.js} +2 -2
- package/__chunks__/{chunk-CUVIIQZB.js → chunk-IDUIPLAQ.js} +2 -2
- package/__chunks__/{chunk-KD7CSMP4.js → chunk-IGVPSOQ4.js} +2 -2
- package/__chunks__/{chunk-7CWJCONI.js → chunk-IHDP5XEC.js} +2 -2
- package/__chunks__/{chunk-POJG76RP.js → chunk-II4IN5DB.js} +2 -2
- package/__chunks__/{chunk-GPWFUCIZ.js → chunk-IMDOREFA.js} +2 -2
- package/__chunks__/{chunk-DQPZUP6J.js → chunk-IPLHIKSY.js} +2 -2
- package/__chunks__/chunk-IQ5OX26L.js +2 -0
- package/__chunks__/{chunk-MUC4VQA2.js → chunk-IR6Q7XJQ.js} +2 -2
- package/__chunks__/chunk-IW77FXTJ.js +2 -0
- package/__chunks__/{chunk-YGTOOJZ3.js → chunk-IWDQTSSG.js} +2 -2
- package/__chunks__/chunk-IZMAZFVM.js +2 -0
- package/__chunks__/{chunk-DNCC3B7Y.js → chunk-J2JMQETZ.js} +2 -2
- package/__chunks__/chunk-J2TI3CAX.js +2 -0
- package/__chunks__/{chunk-MR4I4XVG.js → chunk-J7FBMLQ6.js} +2 -2
- package/__chunks__/{chunk-ZBBCMRJS.js → chunk-JAN62SAY.js} +2 -2
- package/__chunks__/{chunk-KWBJ25RP.js → chunk-JFOTWZDD.js} +2 -2
- package/__chunks__/chunk-JKRWLHHP.js +2 -0
- package/__chunks__/chunk-JNVJGABW.js +2 -0
- package/__chunks__/{chunk-ZT3JSTYM.js → chunk-JZCTMZUP.js} +2 -2
- package/__chunks__/{chunk-NC6BLARV.js → chunk-K6HD2LUU.js} +2 -2
- package/__chunks__/{chunk-ZODSGB7E.js → chunk-K7CFWXYR.js} +2 -2
- package/__chunks__/{chunk-RDTHAMCD.js → chunk-KHOT73K6.js} +2 -2
- package/__chunks__/{chunk-PF6FZ5CA.js → chunk-KJ6IYXXB.js} +2 -2
- package/__chunks__/chunk-KMTMHRTW.js +2 -0
- package/__chunks__/{chunk-MHCO27HW.js → chunk-KUOT65C2.js} +2 -2
- package/__chunks__/{chunk-VQ45VOHN.js → chunk-KXQXYJIC.js} +2 -2
- package/__chunks__/chunk-KYDM7QYU.js +2 -0
- package/__chunks__/chunk-L2ANYTTN.js +2 -0
- package/__chunks__/{chunk-52Y6CHVB.js → chunk-LJ5EBQ4E.js} +2 -2
- package/__chunks__/chunk-LPNATKOR.js +2 -0
- package/__chunks__/{chunk-TTCT34VS.js → chunk-MELE4A6V.js} +2 -2
- package/__chunks__/{chunk-XQVTILMR.js → chunk-MGUISXI5.js} +2 -2
- package/__chunks__/chunk-MPPYOTPN.js +2 -0
- package/__chunks__/{chunk-I4B5HNQT.js → chunk-MRRNEHRM.js} +2 -2
- package/__chunks__/{chunk-RTBLJLK5.js → chunk-MSBGM7BG.js} +2 -2
- package/__chunks__/{chunk-SSVGMOQH.js → chunk-MX7JP4OW.js} +2 -2
- package/__chunks__/{chunk-ICDXNBEF.js → chunk-N5KCBNN7.js} +2 -2
- package/__chunks__/{chunk-XTRVDWXV.js → chunk-N7VAIKYW.js} +2 -2
- package/__chunks__/chunk-NBLZPBHG.js +2 -0
- package/__chunks__/{chunk-ASQNM7MJ.js → chunk-NFN6MTGN.js} +2 -2
- package/__chunks__/{chunk-ELRQPILJ.js → chunk-NFPE676M.js} +2 -2
- package/__chunks__/{chunk-LFMDBIML.js → chunk-NISVU2KT.js} +2 -2
- package/__chunks__/{chunk-2ARPMXJR.js → chunk-NJPGFJBL.js} +2 -2
- package/__chunks__/{chunk-UP3FFMFW.js → chunk-NLMBU66C.js} +2 -2
- package/__chunks__/{chunk-U47YYGAI.js → chunk-NPRDBTUP.js} +2 -2
- package/__chunks__/{chunk-LHMTZEA5.js → chunk-NSXHCQC6.js} +2 -2
- package/__chunks__/{chunk-Z2RFL7UF.js → chunk-NUNXT2KE.js} +2 -2
- package/__chunks__/{chunk-T74FZLQO.js → chunk-NVA6E3I6.js} +2 -2
- package/__chunks__/{chunk-5FUU6YT7.js → chunk-NYHN24U7.js} +2 -2
- package/__chunks__/{chunk-CPPN5BPT.js → chunk-O52NWXAX.js} +2 -2
- package/__chunks__/{chunk-V24SSAOI.js → chunk-OC6LCJE5.js} +2 -2
- package/__chunks__/chunk-OCZDIQJM.js +2 -0
- package/__chunks__/{chunk-OATDAXFL.js → chunk-OFG2RO5M.js} +2 -2
- package/__chunks__/{chunk-VTAICDRX.js → chunk-OGJRVFBF.js} +2 -2
- package/__chunks__/{chunk-KMJBEARC.js → chunk-OPELHEUB.js} +2 -2
- package/__chunks__/chunk-P2O5DNPS.js +2 -0
- package/__chunks__/{chunk-3GKFYHC4.js → chunk-P77MVAQ7.js} +2 -2
- package/__chunks__/{chunk-DPOE6IK4.js → chunk-PB2NHRDS.js} +2 -2
- package/__chunks__/{chunk-OZN64XXH.js → chunk-PIBTVAIY.js} +2 -2
- package/__chunks__/{chunk-O2NVMOWV.js → chunk-PJ5K3BAU.js} +2 -2
- package/__chunks__/{chunk-C6OR4CE7.js → chunk-PKDX3PWA.js} +2 -2
- package/__chunks__/chunk-PPPPPTWM.js +2 -0
- package/__chunks__/{chunk-FPKDA4WW.js → chunk-PSRES75R.js} +2 -2
- package/__chunks__/{chunk-5I67BWZ4.js → chunk-PTGSTIKB.js} +2 -2
- package/__chunks__/{chunk-NRQ2QOKI.js → chunk-PY3AVURP.js} +2 -2
- package/__chunks__/{chunk-GW4ANP64.js → chunk-PYUC7YWQ.js} +2 -2
- package/__chunks__/{chunk-SIX6M33Q.js → chunk-QDXDSARH.js} +2 -2
- package/__chunks__/{chunk-FEKRLY4Y.js → chunk-QEP5V6BV.js} +2 -2
- package/__chunks__/{chunk-QB7FSZIJ.js → chunk-QFV655NJ.js} +2 -2
- package/__chunks__/{chunk-AE6EUIEY.js → chunk-QGAFKW2D.js} +2 -2
- package/__chunks__/{chunk-LR4KN3NQ.js → chunk-QIRTYV7I.js} +2 -2
- package/__chunks__/{chunk-W2ZGLITQ.js → chunk-QP7Y7FM5.js} +2 -2
- package/__chunks__/{chunk-QPHDB4SX.js → chunk-QPDQZJIR.js} +2 -2
- package/__chunks__/{chunk-7I6VVHPW.js → chunk-QQFTXUF5.js} +2 -2
- package/__chunks__/{chunk-VEMADCAG.js → chunk-QTZRTNDJ.js} +2 -2
- package/__chunks__/{chunk-OE2TXZIV.js → chunk-QWW24CB3.js} +2 -2
- package/__chunks__/chunk-R5C7QWUE.js +2 -0
- package/__chunks__/chunk-RCUGYIFV.js +2 -0
- package/__chunks__/{chunk-N4AS4WKH.js → chunk-RDFIXOD2.js} +2 -2
- package/__chunks__/{chunk-AS5LF45F.js → chunk-RGTMLNLV.js} +2 -2
- package/__chunks__/{chunk-EWSOJLDO.js → chunk-RIE5RNRH.js} +2 -2
- package/__chunks__/chunk-RJ7L3LSO.js +2 -0
- package/__chunks__/{chunk-HBUYUYG7.js → chunk-RNUXTNSV.js} +2 -2
- package/__chunks__/chunk-RZRPUUJG.js +2 -0
- package/__chunks__/{chunk-CSTEEV34.js → chunk-S5MM2EWQ.js} +2 -2
- package/__chunks__/{chunk-JIE46P3A.js → chunk-SBF35KV2.js} +2 -2
- package/__chunks__/{chunk-SORRN44I.js → chunk-SHNLEWQL.js} +2 -2
- package/__chunks__/{chunk-7HYW3VNZ.js → chunk-SHUQU5VZ.js} +2 -2
- package/__chunks__/{chunk-WHY2O6VY.js → chunk-SPHRRX4G.js} +2 -2
- package/__chunks__/{chunk-RCTNLZQ4.js → chunk-SUZ6MJ5T.js} +2 -2
- package/__chunks__/{chunk-NJ4CAC4K.js → chunk-SX33GNB7.js} +2 -2
- package/__chunks__/{chunk-UJFVVD7I.js → chunk-SYLWJWPH.js} +2 -2
- package/__chunks__/{chunk-IGYIKLFD.js → chunk-SZ74YBY4.js} +2 -2
- package/__chunks__/{chunk-KXH5PIYO.js → chunk-T23GFE32.js} +2 -2
- package/__chunks__/{chunk-5QP3BKN6.js → chunk-TC7ZKZBH.js} +2 -2
- package/__chunks__/{chunk-U7KBDVS6.js → chunk-TFHPV32E.js} +2 -2
- package/__chunks__/chunk-TGKOFZA6.js +2 -0
- package/__chunks__/{chunk-7QGLKL3O.js → chunk-TISLGMSV.js} +2 -2
- package/__chunks__/{chunk-MUAY6CGW.js → chunk-TL7TEZ2W.js} +2 -2
- package/__chunks__/{chunk-RRSKW4X3.js → chunk-TLTHNUIC.js} +2 -2
- package/__chunks__/{chunk-2O6TN52D.js → chunk-TND4YGPU.js} +2 -2
- package/__chunks__/{chunk-OMEP276V.js → chunk-TOHJ5Z62.js} +2 -2
- package/__chunks__/{chunk-F4GPMVZ3.js → chunk-TPM3TS6U.js} +2 -2
- package/__chunks__/{chunk-5ATU6BWE.js → chunk-TSZZ3U7B.js} +2 -2
- package/__chunks__/{chunk-XBMWOW2U.js → chunk-TUNVB2YQ.js} +2 -2
- package/__chunks__/{chunk-VFPMVVL7.js → chunk-TWHOHGFZ.js} +2 -2
- package/__chunks__/chunk-TWQWSK2Y.js +2 -0
- package/__chunks__/{chunk-NWAWFX5O.js → chunk-TZH67S4T.js} +2 -2
- package/__chunks__/{chunk-VWYE2PDV.js → chunk-TZURT6JT.js} +2 -2
- package/__chunks__/{chunk-E73S2DQF.js → chunk-TZVL2PLD.js} +2 -2
- package/__chunks__/{chunk-5PH62EO2.js → chunk-U7LXSR4V.js} +2 -2
- package/__chunks__/{chunk-7HF7RMSM.js → chunk-U7MZFICS.js} +2 -2
- package/__chunks__/{chunk-RBHZ2TA2.js → chunk-UHV6PTOI.js} +2 -2
- package/__chunks__/{chunk-AILGLGLT.js → chunk-UIQYWHBC.js} +2 -2
- package/__chunks__/{chunk-D3FMLDSW.js → chunk-ULMTIDGZ.js} +2 -2
- package/__chunks__/chunk-UQMGB6GS.js +2 -0
- package/__chunks__/{chunk-CLBIWLXP.js → chunk-UV2TKIMV.js} +2 -2
- package/__chunks__/{chunk-ZLJZXJMQ.js → chunk-UX4Y2OL4.js} +2 -2
- package/__chunks__/{chunk-PEFNQYFJ.js → chunk-V5WTTIX5.js} +2 -2
- package/__chunks__/{chunk-AXIF35TD.js → chunk-VCZKO4K3.js} +2 -2
- package/__chunks__/{chunk-HESHBYEE.js → chunk-VD3BFO4N.js} +2 -2
- package/__chunks__/chunk-VE2ECT2B.js +2 -0
- package/__chunks__/{chunk-72AKFMHW.js → chunk-VGOFY3CC.js} +2 -2
- package/__chunks__/{chunk-XX6WKYPF.js → chunk-VQIJNR2Y.js} +2 -2
- package/__chunks__/{chunk-7B66IZJD.js → chunk-VXHEOXPJ.js} +2 -2
- package/__chunks__/{chunk-J5WPVXJV.js → chunk-VXXQX2NX.js} +2 -2
- package/__chunks__/{chunk-UDWLOK2I.js → chunk-W3CSKBCR.js} +2 -2
- package/__chunks__/{chunk-MALUP4TG.js → chunk-W3KXYTDC.js} +2 -2
- package/__chunks__/chunk-W4MZ4QSC.js +2 -0
- package/__chunks__/{chunk-GKYDXH5T.js → chunk-W4WKCPA4.js} +2 -2
- package/__chunks__/{chunk-7LLTMYSC.js → chunk-W5K3CDBQ.js} +2 -2
- package/__chunks__/chunk-W64FNS32.js +2 -0
- package/__chunks__/{chunk-4NXNLUI5.js → chunk-WHX4MZVD.js} +2 -2
- package/__chunks__/{chunk-4CNJEAQC.js → chunk-WIQLJFDL.js} +2 -2
- package/__chunks__/{chunk-4K3BXOL5.js → chunk-WLHFDR3E.js} +2 -2
- package/__chunks__/chunk-WMJYYAXE.js +2 -0
- package/__chunks__/{chunk-JVFR4K57.js → chunk-WOUYL4LT.js} +2 -2
- package/__chunks__/{chunk-U2YJMXQE.js → chunk-WVUTLYCS.js} +2 -2
- package/__chunks__/{chunk-ZXF7VTXT.js → chunk-WYIJSVQE.js} +2 -2
- package/__chunks__/{chunk-WLZPLFLW.js → chunk-X6MCSWM3.js} +2 -2
- package/__chunks__/{chunk-KMIS2BLG.js → chunk-XB5O3C4D.js} +2 -2
- package/__chunks__/chunk-XJQLYDXU.js +2 -0
- package/__chunks__/{chunk-5GJJYCFY.js → chunk-XMD5LLYN.js} +2 -2
- package/__chunks__/{chunk-RRWWPA5B.js → chunk-XNWSUWXK.js} +2 -2
- package/__chunks__/{chunk-LI2YTG6T.js → chunk-Y7SHZXXR.js} +2 -2
- package/__chunks__/{chunk-LRHEZBAD.js → chunk-YAVS5Q37.js} +2 -2
- package/__chunks__/{chunk-IRCCOKO6.js → chunk-YQGR3E75.js} +2 -2
- package/__chunks__/{chunk-N3ETS4IR.js → chunk-YUCV3UZQ.js} +2 -2
- package/__chunks__/{chunk-EN4QJLZ5.js → chunk-YV2BBHKC.js} +2 -2
- package/__chunks__/{chunk-365T27J6.js → chunk-Z4LZPGDO.js} +2 -2
- package/__chunks__/{chunk-D5UI3QA4.js → chunk-Z57KKFKL.js} +2 -2
- package/__chunks__/chunk-Z7IGO4GT.js +2 -0
- package/__chunks__/chunk-ZBU2YQWY.js +2 -0
- package/__chunks__/{chunk-BOG6ROSF.js → chunk-ZF6DOWZM.js} +2 -2
- package/__chunks__/chunk-ZL4YHWHP.js +2 -0
- package/__chunks__/{chunk-FBCMHXWZ.js → chunk-ZP57YSDQ.js} +2 -2
- package/__chunks__/{chunk-ZJGQI44X.js → chunk-ZR4ASV64.js} +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +3 -3
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +3 -3
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +3 -3
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/NftSftPreviewComponent.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/index.js +1 -1
- 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 +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +3 -3
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +3 -3
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +3 -3
- package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +3 -3
- package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +3 -3
- package/__commonjs/UI/SignTransactionsModals/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/DataDecode/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +11 -11
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +11 -11
- package/__commonjs/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/__commonjs/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/__commonjs/UI/index.js +4 -4
- package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +2 -2
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/__commonjs/UI/ledger/index.js +1 -1
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/__commonjs/UI/pages/UnlockPage/index.js +1 -1
- package/__commonjs/UI/pages/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +4 -4
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +4 -4
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +5 -5
- package/__commonjs/UI/walletConnect/index.js +4 -4
- 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__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/apiCalls/economics/getEconomicsInfo.js +1 -1
- package/__commonjs/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/__commonjs/components/ProviderInitializer.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/constants/index.js +1 -1
- package/__commonjs/hooks/account/useGetAccount.js +1 -1
- package/__commonjs/hooks/account/useGetAccountInfo.js +1 -1
- package/__commonjs/hooks/account/useGetWebsocketEvent.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
- package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
- package/__commonjs/hooks/login/useLoginService.js +1 -1
- package/__commonjs/hooks/login/useOperaLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__commonjs/hooks/transactions/helpers/buildBatchId.js +1 -1
- package/__commonjs/reduxStore/persistConfig.js +1 -1
- package/__commonjs/reduxStore/selectors/batchTransactionsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/dappConfigSelector.js +1 -1
- package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
- package/__commonjs/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/__commonjs/services/index.js +1 -1
- package/__commonjs/services/nativeAuth/index.js +1 -1
- package/__commonjs/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
- package/__commonjs/services/nativeAuth/methods/index.js +1 -1
- package/__commonjs/services/nativeAuth/nativeAuth.d.ts +3 -1
- package/__commonjs/services/nativeAuth/nativeAuth.js +1 -1
- package/__commonjs/types/login.types.d.ts +3 -0
- package/__commonjs/utils/account/signMessage.js +1 -1
- package/__commonjs/utils/operations/calculateFeeInFiat.js +1 -1
- package/__commonjs/utils/operations/denominate.js +1 -1
- package/__commonjs/utils/operations/formatAmount.js +1 -1
- package/__commonjs/utils/transactions/batch/getTransactionsStatus.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.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/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/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/useWalletConnectLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/toasts/index.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 +1 -1
- package/providers/accountProvider.js +1 -1
- package/providers/index.js +1 -1
- package/providers/utils.js +1 -1
- package/providers/webviewProvider/index.js +1 -1
- package/providers/webviewProvider/requestMethods.js +1 -1
- package/providers/webviewProvider/webviewProvider.js +1 -1
- package/reduxStore/DappProviderContext.js +1 -1
- package/reduxStore/commonActions.js +1 -1
- package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/reduxStore/persistConfig.js +1 -1
- package/reduxStore/persistedRootReducer.js +1 -1
- package/reduxStore/reducers.js +1 -1
- package/reduxStore/rootReducer.js +1 -1
- package/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/reduxStore/selectors/batchTransactionsSelectors.js +1 -1
- package/reduxStore/selectors/dappConfigSelector.js +1 -1
- package/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/reduxStore/selectors/helpers.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/modalsSelectors.js +1 -1
- package/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/reduxStore/selectors/toastsSelectors.js +1 -1
- package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/reduxStore/slices/accountInfoSlice.js +1 -1
- package/reduxStore/slices/batchTransactionsSlice.js +1 -1
- package/reduxStore/slices/dappConfigSlice.js +1 -1
- package/reduxStore/slices/dappModalsSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/slices/modalsSlice.js +1 -1
- package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/reduxStore/slices/toastsSlice.js +1 -1
- package/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/reduxStore/slices/transactionsSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
- package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/nativeAuth/index.js +1 -1
- package/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
- package/services/nativeAuth/methods/index.js +1 -1
- package/services/nativeAuth/nativeAuth.d.ts +3 -1
- package/services/nativeAuth/nativeAuth.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/login.types.d.ts +3 -0
- package/types/login.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-2HOVLPAI.js +0 -2
- package/__chunks__/chunk-4UG2JBYU.js +0 -2
- package/__chunks__/chunk-63OV72OW.js +0 -2
- package/__chunks__/chunk-6P4JKU7O.js +0 -2
- package/__chunks__/chunk-74RR42GW.js +0 -2
- package/__chunks__/chunk-7CT27RQT.js +0 -2
- package/__chunks__/chunk-7PHB4IHW.js +0 -2
- package/__chunks__/chunk-7RBYOO2J.js +0 -2
- package/__chunks__/chunk-AMNHI3QW.js +0 -2
- package/__chunks__/chunk-BPKJAHYT.js +0 -2
- package/__chunks__/chunk-CIE6DSGF.js +0 -2
- package/__chunks__/chunk-COW7WUHF.js +0 -2
- package/__chunks__/chunk-DPZA5556.js +0 -2
- package/__chunks__/chunk-DWAZWPSE.js +0 -2
- package/__chunks__/chunk-E5THMW5I.js +0 -2
- package/__chunks__/chunk-EQZEJKTR.js +0 -2
- package/__chunks__/chunk-EVXF2BOI.js +0 -2
- package/__chunks__/chunk-FD3VYCS4.js +0 -2
- package/__chunks__/chunk-FFXOJXGN.js +0 -2
- package/__chunks__/chunk-FUIWFYYW.js +0 -2
- package/__chunks__/chunk-FZVPLZOE.js +0 -2
- package/__chunks__/chunk-HPFY6NOU.js +0 -2
- package/__chunks__/chunk-IGROQXUZ.js +0 -2
- package/__chunks__/chunk-IPRFCS7D.js +0 -2
- package/__chunks__/chunk-M6BI7ILE.js +0 -2
- package/__chunks__/chunk-MAIOHYCR.js +0 -2
- package/__chunks__/chunk-MAN7DZAK.js +0 -2
- package/__chunks__/chunk-MFK5TIXS.js +0 -2
- package/__chunks__/chunk-MQRTP6HG.js +0 -2
- package/__chunks__/chunk-MUQB6NZD.js +0 -2
- package/__chunks__/chunk-N4YDENJI.js +0 -2
- package/__chunks__/chunk-OIMSUDOK.js +0 -2
- package/__chunks__/chunk-OPNKJA4L.js +0 -2
- package/__chunks__/chunk-QJRS3XXT.js +0 -2
- package/__chunks__/chunk-R34ULZDI.js +0 -2
- package/__chunks__/chunk-T73DKVUT.js +0 -2
- package/__chunks__/chunk-UDIL7X3Z.js +0 -2
- package/__chunks__/chunk-UMMB4MY5.js +0 -2
- package/__chunks__/chunk-UQPS2RPU.js +0 -2
- package/__chunks__/chunk-WKVTOFIT.js +0 -2
- package/__chunks__/chunk-WPNTJLX5.js +0 -2
- package/__chunks__/chunk-WWYZM6K6.js +0 -2
- package/__chunks__/chunk-WZSDWRXM.js +0 -2
- package/__chunks__/chunk-XWK5XUNJ.js +0 -2
- package/__chunks__/chunk-Y4M6VSON.js +0 -2
- package/__chunks__/chunk-ZKKCLJG5.js +0 -2
- package/__chunks__/chunk-ZPLMSLJT.js +0 -2
- package/__chunks__/chunk-ZS5RFDLW.js +0 -2
- package/__chunks__/chunk-ZS72QLFO.js +0 -2
- package/__chunks__/chunk-ZY4AUE6X.js +0 -2
- package/__chunks__/chunk-ZZ2E3JAN.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ir=Object.create;var b=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var Lr=Object.getPrototypeOf,kr=Object.prototype.hasOwnProperty;var Rr=(e,r)=>()=>(e&&(r=e(e=0)),r);var W=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),_r=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},tr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Sr(r))!kr.call(e,n)&&n!==t&&b(e,n,{get:()=>r[n],enumerable:!(i=Cr(r,n))||i.enumerable});return e};var er=(e,r,t)=>(t=e!=null?Ir(Lr(e)):{},tr(r||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),Mr=e=>tr(b({},"__esModule",{value:!0}),e);var or=W(H=>{"use strict";F();H.byteLength=Nr;H.toByteArray=Wr;H.fromByteArray=qr;var A=[],m=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(I=0,ir=z.length;I<ir;++I)A[I]=z[I],m[z.charCodeAt(I)]=I;var I,ir;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function Nr(e){var r=nr(e),t=r[0],i=r[1];return(t+i)*3/4-i}function br(e,r,t){return(r+t)*3/4-t}function Wr(e){var r,t=nr(e),i=t[0],n=t[1],o=new Dr(br(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Hr(e){return A[e>>18&63]+A[e>>12&63]+A[e>>6&63]+A[e&63]}function Yr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Hr(i));return n.join("")}function qr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push(Yr(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(A[r>>2]+A[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(A[r>>10]+A[r>>4&63]+A[r<<2&63]+"=")),n.join("")}});var ur=W(J=>{F();J.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,o=x&(1<<-l)-1,x>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=E,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=i;l>0;u=u*256+e[r+p],p+=E,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(x?-1:1)*u*Math.pow(2,o-i)};J.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,l=(1<<c)-1,p=l>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,L=i?1:-1,Ur=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;e[t+x]=h&255,x+=L,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+x]=u&255,x+=L,u/=256,c-=8);e[t+x-L]|=Ur*128}});var Fr=W(R=>{"use strict";F();var Q=or(),k=ur(),ar=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;R.Buffer=a;R.SlowBuffer=Vr;R.INSPECT_MAX_BYTES=50;var q=2147483647;R.kMaxLength=q;a.TYPED_ARRAY_SUPPORT=Xr();!a.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 Xr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function d(e){if(e>q)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(e)}return pr(e,r,t)}a.poolSize=8192;function pr(e,r,t){if(typeof e=="string")return zr(e,r);if(ArrayBuffer.isView(e))return Jr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return K(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=Qr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return pr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function cr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Gr(e,r,t){return cr(e),e<=0?d(e):r!==void 0?typeof t=="string"?d(e).fill(r,t):d(e).fill(r):d(e)}a.alloc=function(e,r,t){return Gr(e,r,t)};function Z(e){return cr(e),d(e<0?0:$(e)|0)}a.allocUnsafe=function(e){return Z(e)};a.allocUnsafeSlow=function(e){return Z(e)};function zr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=lr(e,r)|0,i=d(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function V(e){for(var r=e.length<0?0:$(e.length)|0,t=d(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Jr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return K(r.buffer,r.byteOffset,r.byteLength)}return V(e)}function K(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function Qr(e){if(a.isBuffer(e)){var r=$(e.length)|0,t=d(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||P(e.length)?d(0):V(e);if(e.type==="Buffer"&&Array.isArray(e.data))return V(e.data)}function $(e){if(e>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return e|0}function Vr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function lr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Er(e).length;default:if(n)return i?-1:O(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Kr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return nt(this,r,t);case"utf8":case"utf-8":return wr(this,r,t);case"ascii":return et(this,r,t);case"latin1":case"binary":return it(this,r,t);case"base64":return rt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):Kr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=R.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ar&&(a.prototype[ar]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function sr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,P(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:hr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):hr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function hr(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var c;if(n){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return sr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return sr(this,r,t,i,!1)};function Or(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if(P(h))return u;e[t+u]=h}return u}function Zr(e,r,t,i){return X(O(r,e.length-t),e,t,i)}function $r(e,r,t,i){return X(ht(r),e,t,i)}function Pr(e,r,t,i){return X(Er(r),e,t,i)}function jr(e,r,t,i){return X(ft(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Or(this,r,t,i);case"utf8":case"utf-8":return Zr(this,r,t,i);case"ascii":case"latin1":case"binary":return $r(this,r,t,i);case"base64":return Pr(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rt(e,r,t){return r===0&&t===e.length?Q.fromByteArray(e):Q.fromByteArray(e.slice(r,t))}function wr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return tt(i)}var fr=4096;function tt(e){var r=e.length;if(r<=fr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=fr));return t}function et(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function it(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function nt(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=pt[e[o]];return n}function ot(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),k.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),k.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),k.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),k.read(this,r,!1,52,8)};function y(e,r,t,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function yr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,4,34028234663852886e22,-34028234663852886e22),k.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return xr(this,r,t,!1,i)};function mr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,8,17976931348623157e292,-17976931348623157e292),k.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return mr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return mr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-t;++u)this[u+t]=h[u%f]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function at(e){if(e=e.split("=")[0],e=e.trim().replace(ut,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function O(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ht(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ft(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function Er(e){return Q.toByteArray(at(e))}function X(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function P(e){return e!==e}var pt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var dr=W((Ft,vr)=>{F();var s=vr.exports={},g,v;function j(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?g=setTimeout:g=j}catch(e){g=j}try{typeof clearTimeout=="function"?v=clearTimeout:v=rr}catch(e){v=rr}})();function Ar(e){if(g===setTimeout)return setTimeout(e,0);if((g===j||!g)&&setTimeout)return g=setTimeout,setTimeout(e,0);try{return g(e,0)}catch(r){try{return g.call(null,e,0)}catch(t){return g.call(this,e,0)}}}function ct(e){if(v===clearTimeout)return clearTimeout(e);if((v===rr||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var T=[],_=!1,S,G=-1;function lt(){!_||!S||(_=!1,S.length?T=S.concat(T):G=-1,T.length&&Br())}function Br(){if(!_){var e=Ar(lt);_=!0;for(var r=T.length;r;){for(S=T,T=[];++G<r;)S&&S[G].run();G=-1,r=T.length}S=null,_=!1,ct(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new gr(e,r)),T.length===1&&!_&&Ar(Br)};function gr(e,r){this.fun=e,this.array=r}gr.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function U(){}s.on=U;s.addListener=U;s.once=U;s.off=U;s.removeListener=U;s.removeAllListeners=U;s.emit=U;s.prependListener=U;s.prependOnceListener=U;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var M,D,At,F=Rr(()=>{M=er(Fr()),D=er(dr()),At=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var wt={};_r(wt,{getNativeAuthConfig:()=>st});module.exports=Mr(wt);F();var Tr,N={origin:typeof window!="undefined"?(Tr=window==null?void 0:window.location)==null?void 0:Tr.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},st=e=>{var t,i,n,o,u;return e===!0?N:{origin:(t=e==null?void 0:e.origin)!=null?t:N.origin,blockHashShard:(i=e==null?void 0:e.blockHashShard)!=null?i:null,expirySeconds:(n=e==null?void 0:e.expirySeconds)!=null?n:N.expirySeconds,apiAddress:(o=e==null?void 0:e.apiAddress)!=null?o:N.apiAddress,tokenExpirationToastWarningSeconds:(u=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?u:N.tokenExpirationToastWarningSeconds}};0&&(module.exports={getNativeAuthConfig});
|
|
1
|
+
"use strict";var Ir=Object.create;var b=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var Lr=Object.getPrototypeOf,kr=Object.prototype.hasOwnProperty;var Rr=(e,r)=>()=>(e&&(r=e(e=0)),r);var W=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),_r=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},tr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Sr(r))!kr.call(e,n)&&n!==t&&b(e,n,{get:()=>r[n],enumerable:!(i=Cr(r,n))||i.enumerable});return e};var er=(e,r,t)=>(t=e!=null?Ir(Lr(e)):{},tr(r||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),Mr=e=>tr(b({},"__esModule",{value:!0}),e);var ur=W(H=>{"use strict";F();H.byteLength=Nr;H.toByteArray=Wr;H.fromByteArray=qr;var A=[],m=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(I=0,ir=z.length;I<ir;++I)A[I]=z[I],m[z.charCodeAt(I)]=I;var I,ir;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function Nr(e){var r=nr(e),t=r[0],i=r[1];return(t+i)*3/4-i}function br(e,r,t){return(r+t)*3/4-t}function Wr(e){var r,t=nr(e),i=t[0],n=t[1],u=new Dr(br(e,i,n)),o=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],u[o++]=r>>16&255,u[o++]=r>>8&255,u[o++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,u[o++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,u[o++]=r>>8&255,u[o++]=r&255),u}function Hr(e){return A[e>>18&63]+A[e>>12&63]+A[e>>6&63]+A[e&63]}function Yr(e,r,t){for(var i,n=[],u=r;u<t;u+=3)i=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(e[u+2]&255),n.push(Hr(i));return n.join("")}function qr(e){for(var r,t=e.length,i=t%3,n=[],u=16383,o=0,h=t-i;o<h;o+=u)n.push(Yr(e,o,o+u>h?h:o+u));return i===1?(r=e[t-1],n.push(A[r>>2]+A[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(A[r>>10]+A[r>>4&63]+A[r<<2&63]+"=")),n.join("")}});var or=W(J=>{F();J.read=function(e,r,t,i,n){var u,o,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,u=x&(1<<-l)-1,x>>=-l,l+=h;l>0;u=u*256+e[r+p],p+=E,l-=8);for(o=u&(1<<-l)-1,u>>=-l,l+=i;l>0;o=o*256+e[r+p],p+=E,l-=8);if(u===0)u=1-c;else{if(u===f)return o?NaN:(x?-1:1)*(1/0);o=o+Math.pow(2,i),u=u-c}return(x?-1:1)*o*Math.pow(2,u-i)};J.write=function(e,r,t,i,n,u){var o,h,f,c=u*8-n-1,l=(1<<c)-1,p=l>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:u-1,L=i?1:-1,Ur=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,o=l):(o=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-o))<1&&(o--,f*=2),o+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(o++,f/=2),o+p>=l?(h=0,o=l):o+p>=1?(h=(r*f-1)*Math.pow(2,n),o=o+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),o=0));n>=8;e[t+x]=h&255,x+=L,h/=256,n-=8);for(o=o<<n|h,c+=n;c>0;e[t+x]=o&255,x+=L,o/=256,c-=8);e[t+x-L]|=Ur*128}});var Fr=W(R=>{"use strict";F();var Q=ur(),k=or(),ar=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;R.Buffer=a;R.SlowBuffer=Vr;R.INSPECT_MAX_BYTES=50;var q=2147483647;R.kMaxLength=q;a.TYPED_ARRAY_SUPPORT=Xr();!a.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 Xr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function d(e){if(e>q)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(e)}return pr(e,r,t)}a.poolSize=8192;function pr(e,r,t){if(typeof e=="string")return zr(e,r);if(ArrayBuffer.isView(e))return Jr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return K(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=Qr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return pr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function cr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Gr(e,r,t){return cr(e),e<=0?d(e):r!==void 0?typeof t=="string"?d(e).fill(r,t):d(e).fill(r):d(e)}a.alloc=function(e,r,t){return Gr(e,r,t)};function Z(e){return cr(e),d(e<0?0:$(e)|0)}a.allocUnsafe=function(e){return Z(e)};a.allocUnsafeSlow=function(e){return Z(e)};function zr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=lr(e,r)|0,i=d(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function V(e){for(var r=e.length<0?0:$(e.length)|0,t=d(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Jr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return K(r.buffer,r.byteOffset,r.byteLength)}return V(e)}function K(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function Qr(e){if(a.isBuffer(e)){var r=$(e.length)|0,t=d(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||P(e.length)?d(0):V(e);if(e.type==="Buffer"&&Array.isArray(e.data))return V(e.data)}function $(e){if(e>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return e|0}function Vr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,u=0,o=Math.min(i,n);u<o;++u)if(r[u]!==t[u]){i=r[u],n=t[u];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),u=0;for(i=0;i<r.length;++i){var o=r[i];if(B(o,Uint8Array))u+o.length>n.length?a.from(o).copy(n,u):Uint8Array.prototype.set.call(n,o,u);else if(a.isBuffer(o))o.copy(n,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=o.length}return n};function lr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Er(e).length;default:if(n)return i?-1:O(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Kr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return nt(this,r,t);case"utf8":case"utf-8":return wr(this,r,t);case"ascii":return et(this,r,t);case"latin1":case"binary":return it(this,r,t);case"base64":return rt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):Kr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=R.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ar&&(a.prototype[ar]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,u){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),u===void 0&&(u=this.length),t<0||i>r.length||n<0||u>this.length)throw new RangeError("out of range index");if(n>=u&&t>=i)return 0;if(n>=u)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,u>>>=0,this===r)return 0;for(var o=u-n,h=i-t,f=Math.min(o,h),c=this.slice(n,u),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){o=c[p],h=l[p];break}return o<h?-1:h<o?1:0};function sr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,P(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:hr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):hr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function hr(e,r,t,i,n){var u=1,o=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;u=2,o/=2,h/=2,t/=2}function f(x,L){return u===1?x[L]:x.readUInt16BE(L*u)}var c;if(n){var l=-1;for(c=t;c<o;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*u}else l!==-1&&(c-=c-l),l=-1}else for(t+h>o&&(t=o-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return sr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return sr(this,r,t,i,!1)};function Or(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var u=r.length;i>u/2&&(i=u/2);for(var o=0;o<i;++o){var h=parseInt(r.substr(o*2,2),16);if(P(h))return o;e[t+o]=h}return o}function Zr(e,r,t,i){return X(O(r,e.length-t),e,t,i)}function $r(e,r,t,i){return X(ht(r),e,t,i)}function Pr(e,r,t,i){return X(Er(r),e,t,i)}function jr(e,r,t,i){return X(ft(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var u=this.length-t;if((i===void 0||i>u)&&(i=u),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return Or(this,r,t,i);case"utf8":case"utf-8":return Zr(this,r,t,i);case"ascii":case"latin1":case"binary":return $r(this,r,t,i);case"base64":return Pr(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(this,r,t,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rt(e,r,t){return r===0&&t===e.length?Q.fromByteArray(e):Q.fromByteArray(e.slice(r,t))}function wr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var u=e[n],o=null,h=u>239?4:u>223?3:u>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:u<128&&(o=u);break;case 2:f=e[n+1],(f&192)===128&&(p=(u&31)<<6|f&63,p>127&&(o=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(u&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(u&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,h=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=h}return tt(i)}var fr=4096;function tt(e){var r=e.length;if(r<=fr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=fr));return t}function et(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function it(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function nt(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",u=r;u<t;++u)n+=pt[e[u]];return n}function ut(e,r,t){for(var i=e.slice(r,t),n="",u=0;u<i.length-1;u+=2)n+=String.fromCharCode(i[u]+i[u+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],u=1,o=0;++o<t&&(u*=256);)n+=this[r+o]*u;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],u=1;t>0&&(u*=256);)n+=this[r+--t]*u;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],u=1,o=0;++o<t&&(u*=256);)n+=this[r+o]*u;return u*=128,n>=u&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,u=1,o=this[r+--n];n>0&&(u*=256);)o+=this[r+--n]*u;return u*=128,o>=u&&(o-=Math.pow(2,8*t)),o};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),k.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),k.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),k.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),k.read(this,r,!1,52,8)};function y(e,r,t,i,n,u){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<u)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var u=Math.pow(2,8*i)-1;y(this,r,t,i,u,0)}var o=1,h=0;for(this[t]=r&255;++h<i&&(o*=256);)this[t+h]=r/o&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var u=Math.pow(2,8*i)-1;y(this,r,t,i,u,0)}var o=i-1,h=1;for(this[t+o]=r&255;--o>=0&&(h*=256);)this[t+o]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var u=Math.pow(2,8*i-1);y(this,r,t,i,u-1,-u)}var o=0,h=1,f=0;for(this[t]=r&255;++o<i&&(h*=256);)r<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var u=Math.pow(2,8*i-1);y(this,r,t,i,u-1,-u)}var o=i-1,h=1,f=0;for(this[t+o]=r&255;--o>=0&&(h*=256);)r<0&&f===0&&this[t+o+1]!==0&&(f=1),this[t+o]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function yr(e,r,t,i,n,u){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,4,34028234663852886e22,-34028234663852886e22),k.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return xr(this,r,t,!1,i)};function mr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,8,17976931348623157e292,-17976931348623157e292),k.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return mr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return mr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var u=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),u};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var u=r.charCodeAt(0);(n==="utf8"&&u<128||n==="latin1")&&(r=u)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var o;if(typeof r=="number")for(o=t;o<i;++o)this[o]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<i-t;++o)this[o+t]=h[o%f]}return this};var ot=/[^+/0-9A-Za-z-_]/g;function at(e){if(e=e.split("=")[0],e=e.trim().replace(ot,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function O(e,r){r=r||1/0;for(var t,i=e.length,n=null,u=[],o=0;o<i;++o){if(t=e.charCodeAt(o),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(o+1===i){(r-=3)>-1&&u.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&u.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;u.push(t)}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function ht(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ft(e,r){for(var t,i,n,u=[],o=0;o<e.length&&!((r-=2)<0);++o)t=e.charCodeAt(o),i=t>>8,n=t%256,u.push(n),u.push(i);return u}function Er(e){return Q.toByteArray(at(e))}function X(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function P(e){return e!==e}var pt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var dr=W((Ft,gr)=>{F();var s=gr.exports={},v,g;function j(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?v=setTimeout:v=j}catch(e){v=j}try{typeof clearTimeout=="function"?g=clearTimeout:g=rr}catch(e){g=rr}})();function Ar(e){if(v===setTimeout)return setTimeout(e,0);if((v===j||!v)&&setTimeout)return v=setTimeout,setTimeout(e,0);try{return v(e,0)}catch(r){try{return v.call(null,e,0)}catch(t){return v.call(this,e,0)}}}function ct(e){if(g===clearTimeout)return clearTimeout(e);if((g===rr||!g)&&clearTimeout)return g=clearTimeout,clearTimeout(e);try{return g(e)}catch(r){try{return g.call(null,e)}catch(t){return g.call(this,e)}}}var T=[],_=!1,S,G=-1;function lt(){!_||!S||(_=!1,S.length?T=S.concat(T):G=-1,T.length&&Br())}function Br(){if(!_){var e=Ar(lt);_=!0;for(var r=T.length;r;){for(S=T,T=[];++G<r;)S&&S[G].run();G=-1,r=T.length}S=null,_=!1,ct(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new vr(e,r)),T.length===1&&!_&&Ar(Br)};function vr(e,r){this.fun=e,this.array=r}vr.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function U(){}s.on=U;s.addListener=U;s.once=U;s.off=U;s.removeListener=U;s.removeAllListeners=U;s.emit=U;s.prependListener=U;s.prependOnceListener=U;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var M,D,At,F=Rr(()=>{M=er(Fr()),D=er(dr()),At=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var wt={};_r(wt,{getNativeAuthConfig:()=>st});module.exports=Mr(wt);F();var Tr,N={origin:typeof window!="undefined"?(Tr=window==null?void 0:window.location)==null?void 0:Tr.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},st=e=>{var t,i,n,u,o,h;return e===!0?N:{origin:(t=e==null?void 0:e.origin)!=null?t:N.origin,blockHashShard:(i=e==null?void 0:e.blockHashShard)!=null?i:null,expirySeconds:(n=e==null?void 0:e.expirySeconds)!=null?n:N.expirySeconds,apiAddress:(u=e==null?void 0:e.apiAddress)!=null?u:N.apiAddress,tokenExpirationToastWarningSeconds:(o=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?o:N.tokenExpirationToastWarningSeconds,extraInfo:(h=e==null?void 0:e.extraInfo)!=null?h:{}}};0&&(module.exports={getNativeAuthConfig});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ft=Object.create;var q=Object.defineProperty,pt=Object.defineProperties,ht=Object.getOwnPropertyDescriptor,ct=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertyNames,ar=Object.getOwnPropertySymbols,lt=Object.getPrototypeOf,pr=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var fr=(e,r,t)=>r in e?q(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,hr=(e,r)=>{for(var t in r||(r={}))pr.call(r,t)&&fr(e,t,r[t]);if(ar)for(var t of ar(r))yt.call(r,t)&&fr(e,t,r[t]);return e},cr=(e,r)=>pt(e,ct(r));var xt=(e,r)=>()=>(e&&(r=e(e=0)),r);var T=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),wt=(e,r)=>{for(var t in r)q(e,t,{get:r[t],enumerable:!0})},sr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of st(r))!pr.call(e,i)&&i!==t&&q(e,i,{get:()=>r[i],enumerable:!(n=ht(r,i))||n.enumerable});return e};var X=(e,r,t)=>(t=e!=null?ft(lt(e)):{},sr(r||!e||!e.__esModule?q(t,"default",{value:e,enumerable:!0}):t,e)),mt=e=>sr(q({},"__esModule",{value:!0}),e);var xr=T(G=>{"use strict";h();G.byteLength=gt;G.toByteArray=Tt;G.fromByteArray=vt;var v=[],F=[],dt=typeof Uint8Array!="undefined"?Uint8Array:Array,$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,lr=$.length;C<lr;++C)v[C]=$[C],F[$.charCodeAt(C)]=C;var C,lr;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function yr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function gt(e){var r=yr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function Et(e,r,t){return(r+t)*3/4-t}function Tt(e){var r,t=yr(e),n=t[0],i=t[1],o=new dt(Et(e,n,i)),u=0,f=i>0?n-4:n,p;for(p=0;p<f;p+=4)r=F[e.charCodeAt(p)]<<18|F[e.charCodeAt(p+1)]<<12|F[e.charCodeAt(p+2)]<<6|F[e.charCodeAt(p+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=F[e.charCodeAt(p)]<<2|F[e.charCodeAt(p+1)]>>4,o[u++]=r&255),i===1&&(r=F[e.charCodeAt(p)]<<10|F[e.charCodeAt(p+1)]<<4|F[e.charCodeAt(p+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Ft(e){return v[e>>18&63]+v[e>>12&63]+v[e>>6&63]+v[e&63]}function At(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Ft(n));return i.join("")}function vt(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,f=t-n;u<f;u+=o)i.push(At(e,u,u+o>f?f:u+o));return n===1?(r=e[t-1],i.push(v[r>>2]+v[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(v[r>>10]+v[r>>4&63]+v[r<<2&63]+"=")),i.join("")}});var wr=T(J=>{h();J.read=function(e,r,t,n,i){var o,u,f=i*8-n-1,p=(1<<f)-1,s=p>>1,l=-7,c=t?i-1:0,A=t?-1:1,E=e[r+c];for(c+=A,o=E&(1<<-l)-1,E>>=-l,l+=f;l>0;o=o*256+e[r+c],c+=A,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+c],c+=A,l-=8);if(o===0)o=1-s;else{if(o===p)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-s}return(E?-1:1)*u*Math.pow(2,o-n)};J.write=function(e,r,t,n,i,o){var u,f,p,s=o*8-i-1,l=(1<<s)-1,c=l>>1,A=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:o-1,D=n?1:-1,at=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-u))<1&&(u--,p*=2),u+c>=1?r+=A/p:r+=A*Math.pow(2,1-c),r*p>=2&&(u++,p/=2),u+c>=l?(f=0,u=l):u+c>=1?(f=(r*p-1)*Math.pow(2,i),u=u+c):(f=r*Math.pow(2,c-1)*Math.pow(2,i),u=0));i>=8;e[t+E]=f&255,E+=D,f/=256,i-=8);for(u=u<<i|f,s+=i;s>0;e[t+E]=u&255,E+=D,u/=256,s-=8);e[t+E-D]|=at*128}});var Sr=T(M=>{"use strict";h();var z=xr(),_=wr(),mr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=a;M.SlowBuffer=kt;M.INSPECT_MAX_BYTES=50;var H=2147483647;M.kMaxLength=H;a.TYPED_ARRAY_SUPPORT=Bt();!a.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 Bt(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function b(e){if(e>H)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return P(e)}return Er(e,r,t)}a.poolSize=8192;function Er(e,r,t){if(typeof e=="string")return It(e,r);if(ArrayBuffer.isView(e))return bt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return K(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=St(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return Er(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function Tr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Ut(e,r,t){return Tr(e),e<=0?b(e):r!==void 0?typeof t=="string"?b(e).fill(r,t):b(e).fill(r):b(e)}a.alloc=function(e,r,t){return Ut(e,r,t)};function P(e){return Tr(e),b(e<0?0:rr(e)|0)}a.allocUnsafe=function(e){return P(e)};a.allocUnsafeSlow=function(e){return P(e)};function It(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=Fr(e,r)|0,n=b(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function Q(e){for(var r=e.length<0?0:rr(e.length)|0,t=b(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function bt(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return K(r.buffer,r.byteOffset,r.byteLength)}return Q(e)}function K(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function St(e){if(a.isBuffer(e)){var r=rr(e.length)|0,t=b(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||tr(e.length)?b(0):Q(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Q(e.data)}function rr(e){if(e>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return e|0}function kt(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(B(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function Fr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return br(e).length;default:if(i)return n?-1:Z(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=Fr;function Ct(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Wt(this,r,t);case"utf8":case"utf-8":return vr(this,r,t);case"ascii":return qt(this,r,t);case"latin1":case"binary":return Ot(this,r,t);case"base64":return Nt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function L(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)L(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)L(this,t,t+3),L(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)L(this,t,t+7),L(this,t+1,t+6),L(this,t+2,t+5),L(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?vr(this,0,r):Ct.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};mr&&(a.prototype[mr]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,f=n-t,p=Math.min(u,f),s=this.slice(i,o),l=r.slice(t,n),c=0;c<p;++c)if(s[c]!==l[c]){u=s[c],f=l[c];break}return u<f?-1:f<u?1:0};function Ar(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,tr(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:dr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):dr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function dr(e,r,t,n,i){var o=1,u=e.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,f/=2,t/=2}function p(E,D){return o===1?E[D]:E.readUInt16BE(D*o)}var s;if(i){var l=-1;for(s=t;s<u;s++)if(p(e,s)===p(r,l===-1?0:s-l)){if(l===-1&&(l=s),s-l+1===f)return l*o}else l!==-1&&(s-=s-l),l=-1}else for(t+f>u&&(t=u-f),s=t;s>=0;s--){for(var c=!0,A=0;A<f;A++)if(p(e,s+A)!==p(r,A)){c=!1;break}if(c)return s}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return Ar(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return Ar(this,r,t,n,!1)};function Lt(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var f=parseInt(r.substr(u*2,2),16);if(tr(f))return u;e[t+u]=f}return u}function Rt(e,r,t,n){return Y(Z(r,e.length-t),e,t,n)}function Dt(e,r,t,n){return Y(Vt(r),e,t,n)}function _t(e,r,t,n){return Y(br(r),e,t,n)}function Mt(e,r,t,n){return Y(Xt(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Lt(this,r,t,n);case"utf8":case"utf-8":return Rt(this,r,t,n);case"ascii":case"latin1":case"binary":return Dt(this,r,t,n);case"base64":return _t(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mt(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Nt(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function vr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,f=o>239?4:o>223?3:o>191?2:1;if(i+f<=t){var p,s,l,c;switch(f){case 1:o<128&&(u=o);break;case 2:p=e[i+1],(p&192)===128&&(c=(o&31)<<6|p&63,c>127&&(u=c));break;case 3:p=e[i+1],s=e[i+2],(p&192)===128&&(s&192)===128&&(c=(o&15)<<12|(p&63)<<6|s&63,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:p=e[i+1],s=e[i+2],l=e[i+3],(p&192)===128&&(s&192)===128&&(l&192)===128&&(c=(o&15)<<18|(p&63)<<12|(s&63)<<6|l&63,c>65535&&c<1114112&&(u=c))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=f}return jt(n)}var gr=4096;function jt(e){var r=e.length;if(r<=gr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=gr));return t}function qt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Ot(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function Wt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=$t[e[o]];return i}function Gt(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function d(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||d(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||d(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||d(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||d(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||d(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||d(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||d(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||d(r,4,this.length),_.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||d(r,4,this.length),_.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||d(r,8,this.length),_.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||d(r,8,this.length),_.read(this,r,!1,52,8)};function g(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=1,f=0;for(this[t]=r&255;++f<n&&(u*=256);)this[t+f]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=n-1,f=1;for(this[t+u]=r&255;--u>=0&&(f*=256);)this[t+u]=r/f&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=0,f=1,p=0;for(this[t]=r&255;++u<n&&(f*=256);)r<0&&p===0&&this[t+u-1]!==0&&(p=1),this[t+u]=(r/f>>0)-p&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=n-1,f=1,p=0;for(this[t+u]=r&255;--u>=0&&(f*=256);)r<0&&p===0&&this[t+u+1]!==0&&(p=1),this[t+u]=(r/f>>0)-p&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function Br(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ur(e,r,t,n,i){return r=+r,t=t>>>0,i||Br(e,r,t,4,34028234663852886e22,-34028234663852886e22),_.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return Ur(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return Ur(this,r,t,!1,n)};function Ir(e,r,t,n,i){return r=+r,t=t>>>0,i||Br(e,r,t,8,17976931348623157e292,-17976931348623157e292),_.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return Ir(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return Ir(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var f=a.isBuffer(r)?r:a.from(r,i),p=f.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=f[u%p]}return this};var Ht=/[^+/0-9A-Za-z-_]/g;function Yt(e){if(e=e.split("=")[0],e=e.trim().replace(Ht,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Z(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function Vt(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Xt(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function br(e){return z.toByteArray(Yt(e))}function Y(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function tr(e){return e!==e}var $t=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Dr=T((Le,Rr)=>{h();var m=Rr.exports={},U,I;function er(){throw new Error("setTimeout has not been defined")}function nr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?U=setTimeout:U=er}catch(e){U=er}try{typeof clearTimeout=="function"?I=clearTimeout:I=nr}catch(e){I=nr}})();function kr(e){if(U===setTimeout)return setTimeout(e,0);if((U===er||!U)&&setTimeout)return U=setTimeout,setTimeout(e,0);try{return U(e,0)}catch(r){try{return U.call(null,e,0)}catch(t){return U.call(this,e,0)}}}function Jt(e){if(I===clearTimeout)return clearTimeout(e);if((I===nr||!I)&&clearTimeout)return I=clearTimeout,clearTimeout(e);try{return I(e)}catch(r){try{return I.call(null,e)}catch(t){return I.call(this,e)}}}var S=[],N=!1,R,V=-1;function zt(){!N||!R||(N=!1,R.length?S=R.concat(S):V=-1,S.length&&Cr())}function Cr(){if(!N){var e=kr(zt);N=!0;for(var r=S.length;r;){for(R=S,S=[];++V<r;)R&&R[V].run();V=-1,r=S.length}R=null,N=!1,Jt(e)}}m.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];S.push(new Lr(e,r)),S.length===1&&!N&&kr(Cr)};function Lr(e,r){this.fun=e,this.array=r}Lr.prototype.run=function(){this.fun.apply(null,this.array)};m.title="browser";m.browser=!0;m.env={};m.argv=[];m.version="";m.versions={};function k(){}m.on=k;m.addListener=k;m.once=k;m.off=k;m.removeListener=k;m.removeAllListeners=k;m.emit=k;m.prependListener=k;m.prependOnceListener=k;m.listeners=function(e){return[]};m.binding=function(e){throw new Error("process.binding is not supported")};m.cwd=function(){return"/"};m.chdir=function(e){throw new Error("process.chdir is not supported")};m.umask=function(){return 0}});var x,w,Qt,y,h=xt(()=>{x=X(Sr()),w=X(Dr()),Qt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object),y=Qt});var Nr=T((Me,Mr)=>{h();var Zt=typeof y=="object"&&y&&y.Object===Object&&y;Mr.exports=Zt});var qr=T((Ne,jr)=>{h();var Pt=Nr(),re=typeof self=="object"&&self&&self.Object===Object&&self,te=Pt||re||Function("return this")();jr.exports=te});var ir=T((je,Or)=>{h();var ee=qr(),ne=ee.Symbol;Or.exports=ne});var Yr=T((qe,Hr)=>{h();var Wr=ir(),Gr=Object.prototype,ie=Gr.hasOwnProperty,oe=Gr.toString,O=Wr?Wr.toStringTag:void 0;function ue(e){var r=ie.call(e,O),t=e[O];try{e[O]=void 0;var n=!0}catch(o){}var i=oe.call(e);return n&&(r?e[O]=t:delete e[O]),i}Hr.exports=ue});var Xr=T((Oe,Vr)=>{h();var ae=Object.prototype,fe=ae.toString;function pe(e){return fe.call(e)}Vr.exports=pe});var Qr=T((We,zr)=>{h();var $r=ir(),he=Yr(),ce=Xr(),se="[object Null]",le="[object Undefined]",Jr=$r?$r.toStringTag:void 0;function ye(e){return e==null?e===void 0?le:se:Jr&&Jr in Object(e)?he(e):ce(e)}zr.exports=ye});var Zr=T((Ge,Kr)=>{h();var xe=Array.isArray;Kr.exports=xe});var rt=T((He,Pr)=>{h();function we(e){return e!=null&&typeof e=="object"}Pr.exports=we});var et=T((Ye,tt)=>{h();var me=Qr(),de=Zr(),ge=rt(),Ee="[object String]";function Te(e){return typeof e=="string"||!de(e)&&ge(e)&&me(e)==Ee}tt.exports=Te});var Ie={};wt(Ie,{getNativeAuthConfig:()=>ve,getToken:()=>Ue,getTokenExpiration:()=>Ae});module.exports=mt(Ie);h();h();h();var _r=()=>Date.now()/1e3;h();h();function Kt(e){try{let r=atob(e),t=btoa(r),n=x.Buffer.from(e,"base64").toString(),i=x.Buffer.from(n).toString("base64");if(e===t&&e===i||r===n)return!0}catch(r){return!1}return!1}function j(e){return Kt(e)?atob(e):e}h();var nt=X(et());var it=e=>{if(!e||!(0,nt.default)(e))return null;let r=e.split(".");if(r.length!==4)return null;try{let[t,n,i,o]=r,u=JSON.parse(j(o)),f=j(t);return{ttl:Number(i),extraInfo:u,origin:f,blockHash:n}}catch(t){return console.error(`Error trying to decode ${e}:`,t),null}};function Fe(e){return Object.prototype.toString.call(e)==="[object String]"}var ot=e=>{var t;if(!e||!Fe(e))return null;let r=e.split(".");if(r.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[n,i,o]=r,u=j(n),f=j(i),p=it(f);if(!p)return{address:u,body:f,signature:o,blockHash:"",origin:"",ttl:0};let s=cr(hr({},p),{address:u,body:f,signature:o});return(t=p.extraInfo)!=null&&t.timestamp||delete s.extraInfo,s}catch(n){return null}};var or={isExpired:!1},Ae=e=>{if(!e)return or;let r=ot(e);if(!r)return or;let t=_r(),{ttl:n,extraInfo:i}=r,o=i==null?void 0:i.timestamp;if(!o)return or;let u=o+n,f=t>u,p=u-t;return{isExpired:f,expiresAt:u,secondsUntilExpires:p}};h();var ut,W={origin:typeof window!="undefined"?(ut=window==null?void 0:window.location)==null?void 0:ut.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},ve=e=>{var t,n,i,o,u;return e===!0?W:{origin:(t=e==null?void 0:e.origin)!=null?t:W.origin,blockHashShard:(n=e==null?void 0:e.blockHashShard)!=null?n:null,expirySeconds:(i=e==null?void 0:e.expirySeconds)!=null?i:W.expirySeconds,apiAddress:(o=e==null?void 0:e.apiAddress)!=null?o:W.apiAddress,tokenExpirationToastWarningSeconds:(u=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?u:W.tokenExpirationToastWarningSeconds}};h();h();var Be=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),ur=e=>Be(x.Buffer.from(e,"utf8").toString("base64"));var Ue=({address:e,token:r,signature:t})=>{let n=ur(e),i=ur(r);return`${n}.${i}.${t}`};0&&(module.exports={getNativeAuthConfig,getToken,getTokenExpiration});
|
|
1
|
+
"use strict";var pt=Object.create;var q=Object.defineProperty,ft=Object.defineProperties,ht=Object.getOwnPropertyDescriptor,ct=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertyNames,ar=Object.getOwnPropertySymbols,lt=Object.getPrototypeOf,fr=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var pr=(e,r,t)=>r in e?q(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,hr=(e,r)=>{for(var t in r||(r={}))fr.call(r,t)&&pr(e,t,r[t]);if(ar)for(var t of ar(r))yt.call(r,t)&&pr(e,t,r[t]);return e},cr=(e,r)=>ft(e,ct(r));var xt=(e,r)=>()=>(e&&(r=e(e=0)),r);var T=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),wt=(e,r)=>{for(var t in r)q(e,t,{get:r[t],enumerable:!0})},sr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of st(r))!fr.call(e,i)&&i!==t&&q(e,i,{get:()=>r[i],enumerable:!(n=ht(r,i))||n.enumerable});return e};var X=(e,r,t)=>(t=e!=null?pt(lt(e)):{},sr(r||!e||!e.__esModule?q(t,"default",{value:e,enumerable:!0}):t,e)),mt=e=>sr(q({},"__esModule",{value:!0}),e);var xr=T(G=>{"use strict";h();G.byteLength=gt;G.toByteArray=Tt;G.fromByteArray=vt;var v=[],F=[],dt=typeof Uint8Array!="undefined"?Uint8Array:Array,$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,lr=$.length;C<lr;++C)v[C]=$[C],F[$.charCodeAt(C)]=C;var C,lr;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function yr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function gt(e){var r=yr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function Et(e,r,t){return(r+t)*3/4-t}function Tt(e){var r,t=yr(e),n=t[0],i=t[1],o=new dt(Et(e,n,i)),u=0,p=i>0?n-4:n,f;for(f=0;f<p;f+=4)r=F[e.charCodeAt(f)]<<18|F[e.charCodeAt(f+1)]<<12|F[e.charCodeAt(f+2)]<<6|F[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=F[e.charCodeAt(f)]<<2|F[e.charCodeAt(f+1)]>>4,o[u++]=r&255),i===1&&(r=F[e.charCodeAt(f)]<<10|F[e.charCodeAt(f+1)]<<4|F[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Ft(e){return v[e>>18&63]+v[e>>12&63]+v[e>>6&63]+v[e&63]}function At(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Ft(n));return i.join("")}function vt(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,p=t-n;u<p;u+=o)i.push(At(e,u,u+o>p?p:u+o));return n===1?(r=e[t-1],i.push(v[r>>2]+v[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(v[r>>10]+v[r>>4&63]+v[r<<2&63]+"=")),i.join("")}});var wr=T(J=>{h();J.read=function(e,r,t,n,i){var o,u,p=i*8-n-1,f=(1<<p)-1,s=f>>1,l=-7,c=t?i-1:0,A=t?-1:1,E=e[r+c];for(c+=A,o=E&(1<<-l)-1,E>>=-l,l+=p;l>0;o=o*256+e[r+c],c+=A,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+c],c+=A,l-=8);if(o===0)o=1-s;else{if(o===f)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-s}return(E?-1:1)*u*Math.pow(2,o-n)};J.write=function(e,r,t,n,i,o){var u,p,f,s=o*8-i-1,l=(1<<s)-1,c=l>>1,A=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:o-1,D=n?1:-1,at=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(p=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+c>=1?r+=A/f:r+=A*Math.pow(2,1-c),r*f>=2&&(u++,f/=2),u+c>=l?(p=0,u=l):u+c>=1?(p=(r*f-1)*Math.pow(2,i),u=u+c):(p=r*Math.pow(2,c-1)*Math.pow(2,i),u=0));i>=8;e[t+E]=p&255,E+=D,p/=256,i-=8);for(u=u<<i|p,s+=i;s>0;e[t+E]=u&255,E+=D,u/=256,s-=8);e[t+E-D]|=at*128}});var Sr=T(M=>{"use strict";h();var z=xr(),_=wr(),mr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=a;M.SlowBuffer=kt;M.INSPECT_MAX_BYTES=50;var H=2147483647;M.kMaxLength=H;a.TYPED_ARRAY_SUPPORT=Bt();!a.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 Bt(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function b(e){if(e>H)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return P(e)}return Er(e,r,t)}a.poolSize=8192;function Er(e,r,t){if(typeof e=="string")return Ut(e,r);if(ArrayBuffer.isView(e))return bt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return K(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=St(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return Er(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function Tr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function It(e,r,t){return Tr(e),e<=0?b(e):r!==void 0?typeof t=="string"?b(e).fill(r,t):b(e).fill(r):b(e)}a.alloc=function(e,r,t){return It(e,r,t)};function P(e){return Tr(e),b(e<0?0:rr(e)|0)}a.allocUnsafe=function(e){return P(e)};a.allocUnsafeSlow=function(e){return P(e)};function Ut(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=Fr(e,r)|0,n=b(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function Q(e){for(var r=e.length<0?0:rr(e.length)|0,t=b(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function bt(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return K(r.buffer,r.byteOffset,r.byteLength)}return Q(e)}function K(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function St(e){if(a.isBuffer(e)){var r=rr(e.length)|0,t=b(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||tr(e.length)?b(0):Q(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Q(e.data)}function rr(e){if(e>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return e|0}function kt(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(B(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function Fr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return br(e).length;default:if(i)return n?-1:Z(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=Fr;function Ct(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Wt(this,r,t);case"utf8":case"utf-8":return vr(this,r,t);case"ascii":return qt(this,r,t);case"latin1":case"binary":return Ot(this,r,t);case"base64":return Nt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function L(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)L(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)L(this,t,t+3),L(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)L(this,t,t+7),L(this,t+1,t+6),L(this,t+2,t+5),L(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?vr(this,0,r):Ct.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};mr&&(a.prototype[mr]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,p=n-t,f=Math.min(u,p),s=this.slice(i,o),l=r.slice(t,n),c=0;c<f;++c)if(s[c]!==l[c]){u=s[c],p=l[c];break}return u<p?-1:p<u?1:0};function Ar(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,tr(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:dr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):dr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function dr(e,r,t,n,i){var o=1,u=e.length,p=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,p/=2,t/=2}function f(E,D){return o===1?E[D]:E.readUInt16BE(D*o)}var s;if(i){var l=-1;for(s=t;s<u;s++)if(f(e,s)===f(r,l===-1?0:s-l)){if(l===-1&&(l=s),s-l+1===p)return l*o}else l!==-1&&(s-=s-l),l=-1}else for(t+p>u&&(t=u-p),s=t;s>=0;s--){for(var c=!0,A=0;A<p;A++)if(f(e,s+A)!==f(r,A)){c=!1;break}if(c)return s}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return Ar(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return Ar(this,r,t,n,!1)};function Lt(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var p=parseInt(r.substr(u*2,2),16);if(tr(p))return u;e[t+u]=p}return u}function Rt(e,r,t,n){return Y(Z(r,e.length-t),e,t,n)}function Dt(e,r,t,n){return Y(Vt(r),e,t,n)}function _t(e,r,t,n){return Y(br(r),e,t,n)}function Mt(e,r,t,n){return Y(Xt(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Lt(this,r,t,n);case"utf8":case"utf-8":return Rt(this,r,t,n);case"ascii":case"latin1":case"binary":return Dt(this,r,t,n);case"base64":return _t(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mt(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Nt(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function vr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,p=o>239?4:o>223?3:o>191?2:1;if(i+p<=t){var f,s,l,c;switch(p){case 1:o<128&&(u=o);break;case 2:f=e[i+1],(f&192)===128&&(c=(o&31)<<6|f&63,c>127&&(u=c));break;case 3:f=e[i+1],s=e[i+2],(f&192)===128&&(s&192)===128&&(c=(o&15)<<12|(f&63)<<6|s&63,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:f=e[i+1],s=e[i+2],l=e[i+3],(f&192)===128&&(s&192)===128&&(l&192)===128&&(c=(o&15)<<18|(f&63)<<12|(s&63)<<6|l&63,c>65535&&c<1114112&&(u=c))}}u===null?(u=65533,p=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=p}return jt(n)}var gr=4096;function jt(e){var r=e.length;if(r<=gr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=gr));return t}function qt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Ot(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function Wt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=$t[e[o]];return i}function Gt(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function d(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||d(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||d(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||d(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||d(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||d(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||d(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||d(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||d(r,4,this.length),_.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||d(r,4,this.length),_.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||d(r,8,this.length),_.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||d(r,8,this.length),_.read(this,r,!1,52,8)};function g(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=1,p=0;for(this[t]=r&255;++p<n&&(u*=256);)this[t+p]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=n-1,p=1;for(this[t+u]=r&255;--u>=0&&(p*=256);)this[t+u]=r/p&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=0,p=1,f=0;for(this[t]=r&255;++u<n&&(p*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/p>>0)-f&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=n-1,p=1,f=0;for(this[t+u]=r&255;--u>=0&&(p*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/p>>0)-f&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function Br(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ir(e,r,t,n,i){return r=+r,t=t>>>0,i||Br(e,r,t,4,34028234663852886e22,-34028234663852886e22),_.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return Ir(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return Ir(this,r,t,!1,n)};function Ur(e,r,t,n,i){return r=+r,t=t>>>0,i||Br(e,r,t,8,17976931348623157e292,-17976931348623157e292),_.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return Ur(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return Ur(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var p=a.isBuffer(r)?r:a.from(r,i),f=p.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=p[u%f]}return this};var Ht=/[^+/0-9A-Za-z-_]/g;function Yt(e){if(e=e.split("=")[0],e=e.trim().replace(Ht,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Z(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function Vt(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Xt(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function br(e){return z.toByteArray(Yt(e))}function Y(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function tr(e){return e!==e}var $t=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Dr=T((Le,Rr)=>{h();var m=Rr.exports={},I,U;function er(){throw new Error("setTimeout has not been defined")}function nr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=er}catch(e){I=er}try{typeof clearTimeout=="function"?U=clearTimeout:U=nr}catch(e){U=nr}})();function kr(e){if(I===setTimeout)return setTimeout(e,0);if((I===er||!I)&&setTimeout)return I=setTimeout,setTimeout(e,0);try{return I(e,0)}catch(r){try{return I.call(null,e,0)}catch(t){return I.call(this,e,0)}}}function Jt(e){if(U===clearTimeout)return clearTimeout(e);if((U===nr||!U)&&clearTimeout)return U=clearTimeout,clearTimeout(e);try{return U(e)}catch(r){try{return U.call(null,e)}catch(t){return U.call(this,e)}}}var S=[],N=!1,R,V=-1;function zt(){!N||!R||(N=!1,R.length?S=R.concat(S):V=-1,S.length&&Cr())}function Cr(){if(!N){var e=kr(zt);N=!0;for(var r=S.length;r;){for(R=S,S=[];++V<r;)R&&R[V].run();V=-1,r=S.length}R=null,N=!1,Jt(e)}}m.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];S.push(new Lr(e,r)),S.length===1&&!N&&kr(Cr)};function Lr(e,r){this.fun=e,this.array=r}Lr.prototype.run=function(){this.fun.apply(null,this.array)};m.title="browser";m.browser=!0;m.env={};m.argv=[];m.version="";m.versions={};function k(){}m.on=k;m.addListener=k;m.once=k;m.off=k;m.removeListener=k;m.removeAllListeners=k;m.emit=k;m.prependListener=k;m.prependOnceListener=k;m.listeners=function(e){return[]};m.binding=function(e){throw new Error("process.binding is not supported")};m.cwd=function(){return"/"};m.chdir=function(e){throw new Error("process.chdir is not supported")};m.umask=function(){return 0}});var x,w,Qt,y,h=xt(()=>{x=X(Sr()),w=X(Dr()),Qt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object),y=Qt});var Nr=T((Me,Mr)=>{h();var Zt=typeof y=="object"&&y&&y.Object===Object&&y;Mr.exports=Zt});var qr=T((Ne,jr)=>{h();var Pt=Nr(),re=typeof self=="object"&&self&&self.Object===Object&&self,te=Pt||re||Function("return this")();jr.exports=te});var ir=T((je,Or)=>{h();var ee=qr(),ne=ee.Symbol;Or.exports=ne});var Yr=T((qe,Hr)=>{h();var Wr=ir(),Gr=Object.prototype,ie=Gr.hasOwnProperty,oe=Gr.toString,O=Wr?Wr.toStringTag:void 0;function ue(e){var r=ie.call(e,O),t=e[O];try{e[O]=void 0;var n=!0}catch(o){}var i=oe.call(e);return n&&(r?e[O]=t:delete e[O]),i}Hr.exports=ue});var Xr=T((Oe,Vr)=>{h();var ae=Object.prototype,pe=ae.toString;function fe(e){return pe.call(e)}Vr.exports=fe});var Qr=T((We,zr)=>{h();var $r=ir(),he=Yr(),ce=Xr(),se="[object Null]",le="[object Undefined]",Jr=$r?$r.toStringTag:void 0;function ye(e){return e==null?e===void 0?le:se:Jr&&Jr in Object(e)?he(e):ce(e)}zr.exports=ye});var Zr=T((Ge,Kr)=>{h();var xe=Array.isArray;Kr.exports=xe});var rt=T((He,Pr)=>{h();function we(e){return e!=null&&typeof e=="object"}Pr.exports=we});var et=T((Ye,tt)=>{h();var me=Qr(),de=Zr(),ge=rt(),Ee="[object String]";function Te(e){return typeof e=="string"||!de(e)&&ge(e)&&me(e)==Ee}tt.exports=Te});var Ue={};wt(Ue,{getNativeAuthConfig:()=>ve,getToken:()=>Ie,getTokenExpiration:()=>Ae});module.exports=mt(Ue);h();h();h();var _r=()=>Date.now()/1e3;h();h();function Kt(e){try{let r=atob(e),t=btoa(r),n=x.Buffer.from(e,"base64").toString(),i=x.Buffer.from(n).toString("base64");if(e===t&&e===i||r===n)return!0}catch(r){return!1}return!1}function j(e){return Kt(e)?atob(e):e}h();var nt=X(et());var it=e=>{if(!e||!(0,nt.default)(e))return null;let r=e.split(".");if(r.length!==4)return null;try{let[t,n,i,o]=r,u=JSON.parse(j(o)),p=j(t);return{ttl:Number(i),extraInfo:u,origin:p,blockHash:n}}catch(t){return console.error(`Error trying to decode ${e}:`,t),null}};function Fe(e){return Object.prototype.toString.call(e)==="[object String]"}var ot=e=>{var t;if(!e||!Fe(e))return null;let r=e.split(".");if(r.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[n,i,o]=r,u=j(n),p=j(i),f=it(p);if(!f)return{address:u,body:p,signature:o,blockHash:"",origin:"",ttl:0};let s=cr(hr({},f),{address:u,body:p,signature:o});return(t=f.extraInfo)!=null&&t.timestamp||delete s.extraInfo,s}catch(n){return null}};var or={isExpired:!1},Ae=e=>{if(!e)return or;let r=ot(e);if(!r)return or;let t=_r(),{ttl:n,extraInfo:i}=r,o=i==null?void 0:i.timestamp;if(!o)return or;let u=o+n,p=t>u,f=u-t;return{isExpired:p,expiresAt:u,secondsUntilExpires:f}};h();var ut,W={origin:typeof window!="undefined"?(ut=window==null?void 0:window.location)==null?void 0:ut.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},ve=e=>{var t,n,i,o,u,p;return e===!0?W:{origin:(t=e==null?void 0:e.origin)!=null?t:W.origin,blockHashShard:(n=e==null?void 0:e.blockHashShard)!=null?n:null,expirySeconds:(i=e==null?void 0:e.expirySeconds)!=null?i:W.expirySeconds,apiAddress:(o=e==null?void 0:e.apiAddress)!=null?o:W.apiAddress,tokenExpirationToastWarningSeconds:(u=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?u:W.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{}}};h();h();var Be=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),ur=e=>Be(x.Buffer.from(e,"utf8").toString("base64"));var Ie=({address:e,token:r,signature:t})=>{let n=ur(e),i=ur(r);return`${n}.${i}.${t}`};0&&(module.exports={getNativeAuthConfig,getToken,getTokenExpiration});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -7,7 +7,9 @@ export declare const nativeAuth: (config?: NativeAuthConfigType) => {
|
|
|
7
7
|
expirySeconds: number;
|
|
8
8
|
tokenExpirationToastWarningSeconds: number;
|
|
9
9
|
};
|
|
10
|
-
initialize: (extraInfo?:
|
|
10
|
+
initialize: (extraInfo?: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
} | undefined, latestBlockInfo?: LatestBlockHashType) => Promise<string>;
|
|
11
13
|
getToken: ({ address, token, signature }: {
|
|
12
14
|
address: string;
|
|
13
15
|
token: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var gt=Object.create;var j=Object.defineProperty,Tt=Object.defineProperties,At=Object.getOwnPropertyDescriptor,Ft=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertyNames,hr=Object.getOwnPropertySymbols,Bt=Object.getPrototypeOf,yr=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable;var lr=(e,r,t)=>r in e?j(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,G=(e,r)=>{for(var t in r||(r={}))yr.call(r,t)&&lr(e,t,r[t]);if(hr)for(var t of hr(r))It.call(r,t)&&lr(e,t,r[t]);return e},xr=(e,r)=>Tt(e,Ft(r));var Nt=(e,r)=>()=>(e&&(r=e(e=0)),r);var A=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),St=(e,r)=>{for(var t in r)j(e,t,{get:r[t],enumerable:!0})},mr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of vt(r))!yr.call(e,i)&&i!==t&&j(e,i,{get:()=>r[i],enumerable:!(n=At(r,i))||n.enumerable});return e};var K=(e,r,t)=>(t=e!=null?gt(Bt(e)):{},mr(r||!e||!e.__esModule?j(t,"default",{value:e,enumerable:!0}):t,e)),bt=e=>mr(j({},"__esModule",{value:!0}),e);var v=(e,r,t)=>new Promise((n,i)=>{var o=c=>{try{s(t.next(c))}catch(f){i(f)}},u=c=>{try{s(t.throw(c))}catch(f){i(f)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,u);s((t=t.apply(e,r)).next())});var Er=A(Y=>{"use strict";p();Y.byteLength=Ct;Y.toByteArray=Ot;Y.fromByteArray=_t;var B=[],F=[],Ut=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(k=0,wr=Q.length;k<wr;++k)B[k]=Q[k],F[Q.charCodeAt(k)]=k;var k,wr;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function dr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function Ct(e){var r=dr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function kt(e,r,t){return(r+t)*3/4-t}function Ot(e){var r,t=dr(e),n=t[0],i=t[1],o=new Ut(kt(e,n,i)),u=0,s=i>0?n-4:n,c;for(c=0;c<s;c+=4)r=F[e.charCodeAt(c)]<<18|F[e.charCodeAt(c+1)]<<12|F[e.charCodeAt(c+2)]<<6|F[e.charCodeAt(c+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=F[e.charCodeAt(c)]<<2|F[e.charCodeAt(c+1)]>>4,o[u++]=r&255),i===1&&(r=F[e.charCodeAt(c)]<<10|F[e.charCodeAt(c+1)]<<4|F[e.charCodeAt(c+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Dt(e){return B[e>>18&63]+B[e>>12&63]+B[e>>6&63]+B[e&63]}function Lt(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Dt(n));return i.join("")}function _t(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,s=t-n;u<s;u+=o)i.push(Lt(e,u,u+o>s?s:u+o));return n===1?(r=e[t-1],i.push(B[r>>2]+B[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(B[r>>10]+B[r>>4&63]+B[r<<2&63]+"=")),i.join("")}});var gr=A(Z=>{p();Z.read=function(e,r,t,n,i){var o,u,s=i*8-n-1,c=(1<<s)-1,f=c>>1,l=-7,h=t?i-1:0,T=t?-1:1,E=e[r+h];for(h+=T,o=E&(1<<-l)-1,E>>=-l,l+=s;l>0;o=o*256+e[r+h],h+=T,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+h],h+=T,l-=8);if(o===0)o=1-f;else{if(o===c)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-f}return(E?-1:1)*u*Math.pow(2,o-n)};Z.write=function(e,r,t,n,i,o){var u,s,c,f=o*8-i-1,l=(1<<f)-1,h=l>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:o-1,_=n?1:-1,Et=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+h>=1?r+=T/c:r+=T*Math.pow(2,1-h),r*c>=2&&(u++,c/=2),u+h>=l?(s=0,u=l):u+h>=1?(s=(r*c-1)*Math.pow(2,i),u=u+h):(s=r*Math.pow(2,h-1)*Math.pow(2,i),u=0));i>=8;e[t+E]=s&255,E+=_,s/=256,i-=8);for(u=u<<i|s,f+=i;f>0;e[t+E]=u&255,E+=_,u/=256,f-=8);e[t+E-_]|=Et*128}});var Or=A(M=>{"use strict";p();var rr=Er(),R=gr(),Tr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=a;M.SlowBuffer=jt;M.INSPECT_MAX_BYTES=50;var V=2147483647;M.kMaxLength=V;a.TYPED_ARRAY_SUPPORT=Rt();!a.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 Rt(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function b(e){if(e>V)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ir(e)}return vr(e,r,t)}a.poolSize=8192;function vr(e,r,t){if(typeof e=="string")return Pt(e,r);if(ArrayBuffer.isView(e))return Ht(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return er(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=qt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return vr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function Br(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Mt(e,r,t){return Br(e),e<=0?b(e):r!==void 0?typeof t=="string"?b(e).fill(r,t):b(e).fill(r):b(e)}a.alloc=function(e,r,t){return Mt(e,r,t)};function ir(e){return Br(e),b(e<0?0:or(e)|0)}a.allocUnsafe=function(e){return ir(e)};a.allocUnsafeSlow=function(e){return ir(e)};function Pt(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=Ir(e,r)|0,n=b(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function tr(e){for(var r=e.length<0?0:or(e.length)|0,t=b(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function Ht(e){if(I(e,Uint8Array)){var r=new Uint8Array(e);return er(r.buffer,r.byteOffset,r.byteLength)}return tr(e)}function er(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function qt(e){if(a.isBuffer(e)){var r=or(e.length)|0,t=b(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||ur(e.length)?b(0):tr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return tr(e.data)}function or(e){if(e>=V)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V.toString(16)+" bytes");return e|0}function jt(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(I(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),I(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(I(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function Ir(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return nr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return kr(e).length;default:if(i)return n?-1:nr(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=Ir;function Gt(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Zt(this,r,t);case"utf8":case"utf-8":return Sr(this,r,t);case"ascii":return Xt(this,r,t);case"latin1":case"binary":return Qt(this,r,t);case"base64":return zt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function O(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)O(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)O(this,t,t+3),O(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)O(this,t,t+7),O(this,t+1,t+6),O(this,t+2,t+5),O(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Sr(this,0,r):Gt.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};Tr&&(a.prototype[Tr]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(I(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,s=n-t,c=Math.min(u,s),f=this.slice(i,o),l=r.slice(t,n),h=0;h<c;++h)if(f[h]!==l[h]){u=f[h],s=l[h];break}return u<s?-1:s<u?1:0};function Nr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ur(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:Ar(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Ar(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Ar(e,r,t,n,i){var o=1,u=e.length,s=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,s/=2,t/=2}function c(E,_){return o===1?E[_]:E.readUInt16BE(_*o)}var f;if(i){var l=-1;for(f=t;f<u;f++)if(c(e,f)===c(r,l===-1?0:f-l)){if(l===-1&&(l=f),f-l+1===s)return l*o}else l!==-1&&(f-=f-l),l=-1}else for(t+s>u&&(t=u-s),f=t;f>=0;f--){for(var h=!0,T=0;T<s;T++)if(c(e,f+T)!==c(r,T)){h=!1;break}if(h)return f}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return Nr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return Nr(this,r,t,n,!1)};function Wt(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var s=parseInt(r.substr(u*2,2),16);if(ur(s))return u;e[t+u]=s}return u}function $t(e,r,t,n){return z(nr(r,e.length-t),e,t,n)}function Kt(e,r,t,n){return z(ne(r),e,t,n)}function Yt(e,r,t,n){return z(kr(r),e,t,n)}function Vt(e,r,t,n){return z(ie(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Wt(this,r,t,n);case"utf8":case"utf-8":return $t(this,r,t,n);case"ascii":case"latin1":case"binary":return Kt(this,r,t,n);case"base64":return Yt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zt(e,r,t){return r===0&&t===e.length?rr.fromByteArray(e):rr.fromByteArray(e.slice(r,t))}function Sr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=t){var c,f,l,h;switch(s){case 1:o<128&&(u=o);break;case 2:c=e[i+1],(c&192)===128&&(h=(o&31)<<6|c&63,h>127&&(u=h));break;case 3:c=e[i+1],f=e[i+2],(c&192)===128&&(f&192)===128&&(h=(o&15)<<12|(c&63)<<6|f&63,h>2047&&(h<55296||h>57343)&&(u=h));break;case 4:c=e[i+1],f=e[i+2],l=e[i+3],(c&192)===128&&(f&192)===128&&(l&192)===128&&(h=(o&15)<<18|(c&63)<<12|(f&63)<<6|l&63,h>65535&&h<1114112&&(u=h))}}u===null?(u=65533,s=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=s}return Jt(n)}var Fr=4096;function Jt(e){var r=e.length;if(r<=Fr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Fr));return t}function Xt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Qt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function Zt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=oe[e[o]];return i}function re(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function d(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||d(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||d(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||d(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||d(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||d(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||d(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||d(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||d(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||d(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||d(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||d(r,8,this.length),R.read(this,r,!1,52,8)};function g(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=1,s=0;for(this[t]=r&255;++s<n&&(u*=256);)this[t+s]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=n-1,s=1;for(this[t+u]=r&255;--u>=0&&(s*=256);)this[t+u]=r/s&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=0,s=1,c=0;for(this[t]=r&255;++u<n&&(s*=256);)r<0&&c===0&&this[t+u-1]!==0&&(c=1),this[t+u]=(r/s>>0)-c&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=n-1,s=1,c=0;for(this[t+u]=r&255;--u>=0&&(s*=256);)r<0&&c===0&&this[t+u+1]!==0&&(c=1),this[t+u]=(r/s>>0)-c&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function br(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ur(e,r,t,n,i){return r=+r,t=t>>>0,i||br(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return Ur(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return Ur(this,r,t,!1,n)};function Cr(e,r,t,n,i){return r=+r,t=t>>>0,i||br(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return Cr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return Cr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var s=a.isBuffer(r)?r:a.from(r,i),c=s.length;if(c===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=s[u%c]}return this};var te=/[^+/0-9A-Za-z-_]/g;function ee(e){if(e=e.split("=")[0],e=e.trim().replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nr(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ne(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ie(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function kr(e){return rr.toByteArray(ee(e))}function z(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function I(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function ur(e){return e!==e}var oe=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Mr=A(($e,Rr)=>{p();var w=Rr.exports={},N,S;function ar(){throw new Error("setTimeout has not been defined")}function sr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?N=setTimeout:N=ar}catch(e){N=ar}try{typeof clearTimeout=="function"?S=clearTimeout:S=sr}catch(e){S=sr}})();function Dr(e){if(N===setTimeout)return setTimeout(e,0);if((N===ar||!N)&&setTimeout)return N=setTimeout,setTimeout(e,0);try{return N(e,0)}catch(r){try{return N.call(null,e,0)}catch(t){return N.call(this,e,0)}}}function ue(e){if(S===clearTimeout)return clearTimeout(e);if((S===sr||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(e);try{return S(e)}catch(r){try{return S.call(null,e)}catch(t){return S.call(this,e)}}}var U=[],P=!1,D,J=-1;function ae(){!P||!D||(P=!1,D.length?U=D.concat(U):J=-1,U.length&&Lr())}function Lr(){if(!P){var e=Dr(ae);P=!0;for(var r=U.length;r;){for(D=U,U=[];++J<r;)D&&D[J].run();J=-1,r=U.length}D=null,P=!1,ue(e)}}w.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new _r(e,r)),U.length===1&&!P&&Dr(Lr)};function _r(e,r){this.fun=e,this.array=r}_r.prototype.run=function(){this.fun.apply(null,this.array)};w.title="browser";w.browser=!0;w.env={};w.argv=[];w.version="";w.versions={};function C(){}w.on=C;w.addListener=C;w.once=C;w.off=C;w.removeListener=C;w.removeAllListeners=C;w.emit=C;w.prependListener=C;w.prependOnceListener=C;w.listeners=function(e){return[]};w.binding=function(e){throw new Error("process.binding is not supported")};w.cwd=function(){return"/"};w.chdir=function(e){throw new Error("process.chdir is not supported")};w.umask=function(){return 0}});var x,m,se,y,p=Nt(()=>{x=K(Or()),m=K(Mr()),se=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object),y=se});var Yr=A((sn,Kr)=>{p();var ye=typeof y=="object"&&y&&y.Object===Object&&y;Kr.exports=ye});var zr=A((cn,Vr)=>{p();var xe=Yr(),me=typeof self=="object"&&self&&self.Object===Object&&self,we=xe||me||Function("return this")();Vr.exports=we});var cr=A((pn,Jr)=>{p();var de=zr(),Ee=de.Symbol;Jr.exports=Ee});var rt=A((fn,Zr)=>{p();var Xr=cr(),Qr=Object.prototype,ge=Qr.hasOwnProperty,Te=Qr.toString,W=Xr?Xr.toStringTag:void 0;function Ae(e){var r=ge.call(e,W),t=e[W];try{e[W]=void 0;var n=!0}catch(o){}var i=Te.call(e);return n&&(r?e[W]=t:delete e[W]),i}Zr.exports=Ae});var et=A((hn,tt)=>{p();var Fe=Object.prototype,ve=Fe.toString;function Be(e){return ve.call(e)}tt.exports=Be});var ut=A((ln,ot)=>{p();var nt=cr(),Ie=rt(),Ne=et(),Se="[object Null]",be="[object Undefined]",it=nt?nt.toStringTag:void 0;function Ue(e){return e==null?e===void 0?be:Se:it&&it in Object(e)?Ie(e):Ne(e)}ot.exports=Ue});var st=A((yn,at)=>{p();var Ce=Array.isArray;at.exports=Ce});var pt=A((xn,ct)=>{p();function ke(e){return e!=null&&typeof e=="object"}ct.exports=ke});var ht=A((mn,ft)=>{p();var Oe=ut(),De=st(),Le=pt(),_e="[object String]";function Re(e){return typeof e=="string"||!De(e)&&Le(e)&&Oe(e)==_e}ft.exports=Re});var He={};St(He,{nativeAuth:()=>Pe});module.exports=bt(He);p();p();var ce=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),H=e=>ce(x.Buffer.from(e,"utf8").toString("base64"));p();var Gr=K(require("axios"));p();var Pr="blocks";p();p();p();function Hr(e){return v(this,null,function*(){return yield new Promise(r=>{setTimeout(()=>r(),e)})})}p();var qr=(e,r,t,n=0)=>v(void 0,null,function*(){try{return yield e(...t)}catch(i){return n<r.retries?((r==null?void 0:r.delay)!=null&&(yield Hr(r.delay)),yield qr(e,r,t,n+1)):null}}),jr=(e,r={retries:5,delay:500})=>(...t)=>v(void 0,null,function*(){return yield qr(e,r,t)});var pe=4,fe=3e4,X={current:null},L={current:null},he=jr((e,r)=>v(void 0,null,function*(){let{data:t}=yield Gr.default.get(`${e}/${Pr}?from=${pe}&size=1&fields=hash,timestamp${r?"&shard="+r:""}`),[n]=t;return n}));function Wr(e,r){return v(this,null,function*(){if(e==null)throw new Error("missing api url");let t=Date.now();if(X.current!=null&&t<X.current.timestamp*1e3+fe)return X.current;if(L.current!=null)return yield L.current;L.current=he(e,r);try{let n=yield L.current;if(n==null)throw L.current=null,new Error("could not get block hash");return X.current={hash:n.hash,timestamp:n.timestamp},L.current=null,n}catch(n){return L.current=null,null}})}p();p();p();var $r=()=>Date.now()/1e3;p();p();function le(e){try{let r=atob(e),t=btoa(r),n=x.Buffer.from(e,"base64").toString(),i=x.Buffer.from(n).toString("base64");if(e===t&&e===i||r===n)return!0}catch(r){return!1}return!1}function q(e){return le(e)?atob(e):e}p();var lt=K(ht());var yt=e=>{if(!e||!(0,lt.default)(e))return null;let r=e.split(".");if(r.length!==4)return null;try{let[t,n,i,o]=r,u=JSON.parse(q(o)),s=q(t);return{ttl:Number(i),extraInfo:u,origin:s,blockHash:n}}catch(t){return console.error(`Error trying to decode ${e}:`,t),null}};function Me(e){return Object.prototype.toString.call(e)==="[object String]"}var xt=e=>{var t;if(!e||!Me(e))return null;let r=e.split(".");if(r.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[n,i,o]=r,u=q(n),s=q(i),c=yt(s);if(!c)return{address:u,body:s,signature:o,blockHash:"",origin:"",ttl:0};let f=xr(G({},c),{address:u,body:s,signature:o});return(t=c.extraInfo)!=null&&t.timestamp||delete f.extraInfo,f}catch(n){return null}};var pr={isExpired:!1},mt=e=>{if(!e)return pr;let r=xt(e);if(!r)return pr;let t=$r(),{ttl:n,extraInfo:i}=r,o=i==null?void 0:i.timestamp;if(!o)return pr;let u=o+n,s=t>u,c=u-t;return{isExpired:s,expiresAt:u,secondsUntilExpires:c}};p();var wt,$={origin:typeof window!="undefined"?(wt=window==null?void 0:window.location)==null?void 0:wt.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},fr=e=>{var t,n,i,o,u;return e===!0?$:{origin:(t=e==null?void 0:e.origin)!=null?t:$.origin,blockHashShard:(n=e==null?void 0:e.blockHashShard)!=null?n:null,expirySeconds:(i=e==null?void 0:e.expirySeconds)!=null?i:$.expirySeconds,apiAddress:(o=e==null?void 0:e.apiAddress)!=null?o:$.apiAddress,tokenExpirationToastWarningSeconds:(u=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?u:$.tokenExpirationToastWarningSeconds}};p();var dt=({address:e,token:r,signature:t})=>{let n=H(e),i=H(r);return`${n}.${i}.${t}`};var Pe=e=>{let{origin:r,apiAddress:t,expirySeconds:n,blockHashShard:i}=fr(e);return{getNativeAuthConfig:fr,initialize:(...c)=>v(void 0,[...c],function*(u={},s){if(!t||!r)return"";let f=s!=null?s:yield Wr(t,i),{hash:l,timestamp:h}=f,T=H(JSON.stringify(G(G({},u),h?{timestamp:h}:{})));return`${H(r)}.${l}.${n}.${T}`}),getToken:dt,getTokenExpiration:mt}};0&&(module.exports={nativeAuth});
|
|
1
|
+
"use strict";var gt=Object.create;var j=Object.defineProperty,Tt=Object.defineProperties,At=Object.getOwnPropertyDescriptor,Ft=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertyNames,hr=Object.getOwnPropertySymbols,Bt=Object.getPrototypeOf,yr=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable;var lr=(e,r,t)=>r in e?j(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,G=(e,r)=>{for(var t in r||(r={}))yr.call(r,t)&&lr(e,t,r[t]);if(hr)for(var t of hr(r))It.call(r,t)&&lr(e,t,r[t]);return e},xr=(e,r)=>Tt(e,Ft(r));var Nt=(e,r)=>()=>(e&&(r=e(e=0)),r);var A=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),St=(e,r)=>{for(var t in r)j(e,t,{get:r[t],enumerable:!0})},mr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of vt(r))!yr.call(e,i)&&i!==t&&j(e,i,{get:()=>r[i],enumerable:!(n=At(r,i))||n.enumerable});return e};var K=(e,r,t)=>(t=e!=null?gt(Bt(e)):{},mr(r||!e||!e.__esModule?j(t,"default",{value:e,enumerable:!0}):t,e)),bt=e=>mr(j({},"__esModule",{value:!0}),e);var v=(e,r,t)=>new Promise((n,i)=>{var o=c=>{try{s(t.next(c))}catch(f){i(f)}},u=c=>{try{s(t.throw(c))}catch(f){i(f)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,u);s((t=t.apply(e,r)).next())});var Er=A(Y=>{"use strict";p();Y.byteLength=Ct;Y.toByteArray=Ot;Y.fromByteArray=_t;var B=[],F=[],Ut=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(k=0,wr=Q.length;k<wr;++k)B[k]=Q[k],F[Q.charCodeAt(k)]=k;var k,wr;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function dr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function Ct(e){var r=dr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function kt(e,r,t){return(r+t)*3/4-t}function Ot(e){var r,t=dr(e),n=t[0],i=t[1],o=new Ut(kt(e,n,i)),u=0,s=i>0?n-4:n,c;for(c=0;c<s;c+=4)r=F[e.charCodeAt(c)]<<18|F[e.charCodeAt(c+1)]<<12|F[e.charCodeAt(c+2)]<<6|F[e.charCodeAt(c+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=F[e.charCodeAt(c)]<<2|F[e.charCodeAt(c+1)]>>4,o[u++]=r&255),i===1&&(r=F[e.charCodeAt(c)]<<10|F[e.charCodeAt(c+1)]<<4|F[e.charCodeAt(c+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Dt(e){return B[e>>18&63]+B[e>>12&63]+B[e>>6&63]+B[e&63]}function Lt(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Dt(n));return i.join("")}function _t(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,s=t-n;u<s;u+=o)i.push(Lt(e,u,u+o>s?s:u+o));return n===1?(r=e[t-1],i.push(B[r>>2]+B[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(B[r>>10]+B[r>>4&63]+B[r<<2&63]+"=")),i.join("")}});var gr=A(Z=>{p();Z.read=function(e,r,t,n,i){var o,u,s=i*8-n-1,c=(1<<s)-1,f=c>>1,l=-7,h=t?i-1:0,T=t?-1:1,E=e[r+h];for(h+=T,o=E&(1<<-l)-1,E>>=-l,l+=s;l>0;o=o*256+e[r+h],h+=T,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+h],h+=T,l-=8);if(o===0)o=1-f;else{if(o===c)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-f}return(E?-1:1)*u*Math.pow(2,o-n)};Z.write=function(e,r,t,n,i,o){var u,s,c,f=o*8-i-1,l=(1<<f)-1,h=l>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:o-1,_=n?1:-1,Et=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+h>=1?r+=T/c:r+=T*Math.pow(2,1-h),r*c>=2&&(u++,c/=2),u+h>=l?(s=0,u=l):u+h>=1?(s=(r*c-1)*Math.pow(2,i),u=u+h):(s=r*Math.pow(2,h-1)*Math.pow(2,i),u=0));i>=8;e[t+E]=s&255,E+=_,s/=256,i-=8);for(u=u<<i|s,f+=i;f>0;e[t+E]=u&255,E+=_,u/=256,f-=8);e[t+E-_]|=Et*128}});var Or=A(M=>{"use strict";p();var rr=Er(),R=gr(),Tr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=a;M.SlowBuffer=jt;M.INSPECT_MAX_BYTES=50;var V=2147483647;M.kMaxLength=V;a.TYPED_ARRAY_SUPPORT=Rt();!a.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 Rt(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function b(e){if(e>V)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ir(e)}return vr(e,r,t)}a.poolSize=8192;function vr(e,r,t){if(typeof e=="string")return Pt(e,r);if(ArrayBuffer.isView(e))return Ht(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return er(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=qt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return vr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function Br(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Mt(e,r,t){return Br(e),e<=0?b(e):r!==void 0?typeof t=="string"?b(e).fill(r,t):b(e).fill(r):b(e)}a.alloc=function(e,r,t){return Mt(e,r,t)};function ir(e){return Br(e),b(e<0?0:or(e)|0)}a.allocUnsafe=function(e){return ir(e)};a.allocUnsafeSlow=function(e){return ir(e)};function Pt(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=Ir(e,r)|0,n=b(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function tr(e){for(var r=e.length<0?0:or(e.length)|0,t=b(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function Ht(e){if(I(e,Uint8Array)){var r=new Uint8Array(e);return er(r.buffer,r.byteOffset,r.byteLength)}return tr(e)}function er(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function qt(e){if(a.isBuffer(e)){var r=or(e.length)|0,t=b(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||ur(e.length)?b(0):tr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return tr(e.data)}function or(e){if(e>=V)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V.toString(16)+" bytes");return e|0}function jt(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(I(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),I(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(I(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function Ir(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return nr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return kr(e).length;default:if(i)return n?-1:nr(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=Ir;function Gt(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Zt(this,r,t);case"utf8":case"utf-8":return Sr(this,r,t);case"ascii":return Xt(this,r,t);case"latin1":case"binary":return Qt(this,r,t);case"base64":return zt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function O(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)O(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)O(this,t,t+3),O(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)O(this,t,t+7),O(this,t+1,t+6),O(this,t+2,t+5),O(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Sr(this,0,r):Gt.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};Tr&&(a.prototype[Tr]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(I(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,s=n-t,c=Math.min(u,s),f=this.slice(i,o),l=r.slice(t,n),h=0;h<c;++h)if(f[h]!==l[h]){u=f[h],s=l[h];break}return u<s?-1:s<u?1:0};function Nr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ur(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:Ar(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Ar(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Ar(e,r,t,n,i){var o=1,u=e.length,s=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,s/=2,t/=2}function c(E,_){return o===1?E[_]:E.readUInt16BE(_*o)}var f;if(i){var l=-1;for(f=t;f<u;f++)if(c(e,f)===c(r,l===-1?0:f-l)){if(l===-1&&(l=f),f-l+1===s)return l*o}else l!==-1&&(f-=f-l),l=-1}else for(t+s>u&&(t=u-s),f=t;f>=0;f--){for(var h=!0,T=0;T<s;T++)if(c(e,f+T)!==c(r,T)){h=!1;break}if(h)return f}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return Nr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return Nr(this,r,t,n,!1)};function Wt(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var s=parseInt(r.substr(u*2,2),16);if(ur(s))return u;e[t+u]=s}return u}function $t(e,r,t,n){return z(nr(r,e.length-t),e,t,n)}function Kt(e,r,t,n){return z(ne(r),e,t,n)}function Yt(e,r,t,n){return z(kr(r),e,t,n)}function Vt(e,r,t,n){return z(ie(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Wt(this,r,t,n);case"utf8":case"utf-8":return $t(this,r,t,n);case"ascii":case"latin1":case"binary":return Kt(this,r,t,n);case"base64":return Yt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zt(e,r,t){return r===0&&t===e.length?rr.fromByteArray(e):rr.fromByteArray(e.slice(r,t))}function Sr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=t){var c,f,l,h;switch(s){case 1:o<128&&(u=o);break;case 2:c=e[i+1],(c&192)===128&&(h=(o&31)<<6|c&63,h>127&&(u=h));break;case 3:c=e[i+1],f=e[i+2],(c&192)===128&&(f&192)===128&&(h=(o&15)<<12|(c&63)<<6|f&63,h>2047&&(h<55296||h>57343)&&(u=h));break;case 4:c=e[i+1],f=e[i+2],l=e[i+3],(c&192)===128&&(f&192)===128&&(l&192)===128&&(h=(o&15)<<18|(c&63)<<12|(f&63)<<6|l&63,h>65535&&h<1114112&&(u=h))}}u===null?(u=65533,s=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=s}return Jt(n)}var Fr=4096;function Jt(e){var r=e.length;if(r<=Fr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Fr));return t}function Xt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Qt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function Zt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=oe[e[o]];return i}function re(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function d(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||d(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||d(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||d(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||d(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||d(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||d(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||d(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||d(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||d(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||d(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||d(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||d(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||d(r,8,this.length),R.read(this,r,!1,52,8)};function g(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=1,s=0;for(this[t]=r&255;++s<n&&(u*=256);)this[t+s]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=n-1,s=1;for(this[t+u]=r&255;--u>=0&&(s*=256);)this[t+u]=r/s&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=0,s=1,c=0;for(this[t]=r&255;++u<n&&(s*=256);)r<0&&c===0&&this[t+u-1]!==0&&(c=1),this[t+u]=(r/s>>0)-c&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=n-1,s=1,c=0;for(this[t+u]=r&255;--u>=0&&(s*=256);)r<0&&c===0&&this[t+u+1]!==0&&(c=1),this[t+u]=(r/s>>0)-c&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function br(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ur(e,r,t,n,i){return r=+r,t=t>>>0,i||br(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return Ur(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return Ur(this,r,t,!1,n)};function Cr(e,r,t,n,i){return r=+r,t=t>>>0,i||br(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return Cr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return Cr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var s=a.isBuffer(r)?r:a.from(r,i),c=s.length;if(c===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=s[u%c]}return this};var te=/[^+/0-9A-Za-z-_]/g;function ee(e){if(e=e.split("=")[0],e=e.trim().replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nr(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ne(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ie(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function kr(e){return rr.toByteArray(ee(e))}function z(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function I(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function ur(e){return e!==e}var oe=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Mr=A(($e,Rr)=>{p();var w=Rr.exports={},N,S;function ar(){throw new Error("setTimeout has not been defined")}function sr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?N=setTimeout:N=ar}catch(e){N=ar}try{typeof clearTimeout=="function"?S=clearTimeout:S=sr}catch(e){S=sr}})();function Dr(e){if(N===setTimeout)return setTimeout(e,0);if((N===ar||!N)&&setTimeout)return N=setTimeout,setTimeout(e,0);try{return N(e,0)}catch(r){try{return N.call(null,e,0)}catch(t){return N.call(this,e,0)}}}function ue(e){if(S===clearTimeout)return clearTimeout(e);if((S===sr||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(e);try{return S(e)}catch(r){try{return S.call(null,e)}catch(t){return S.call(this,e)}}}var U=[],P=!1,D,J=-1;function ae(){!P||!D||(P=!1,D.length?U=D.concat(U):J=-1,U.length&&Lr())}function Lr(){if(!P){var e=Dr(ae);P=!0;for(var r=U.length;r;){for(D=U,U=[];++J<r;)D&&D[J].run();J=-1,r=U.length}D=null,P=!1,ue(e)}}w.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new _r(e,r)),U.length===1&&!P&&Dr(Lr)};function _r(e,r){this.fun=e,this.array=r}_r.prototype.run=function(){this.fun.apply(null,this.array)};w.title="browser";w.browser=!0;w.env={};w.argv=[];w.version="";w.versions={};function C(){}w.on=C;w.addListener=C;w.once=C;w.off=C;w.removeListener=C;w.removeAllListeners=C;w.emit=C;w.prependListener=C;w.prependOnceListener=C;w.listeners=function(e){return[]};w.binding=function(e){throw new Error("process.binding is not supported")};w.cwd=function(){return"/"};w.chdir=function(e){throw new Error("process.chdir is not supported")};w.umask=function(){return 0}});var x,m,se,y,p=Nt(()=>{x=K(Or()),m=K(Mr()),se=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object),y=se});var Yr=A((sn,Kr)=>{p();var ye=typeof y=="object"&&y&&y.Object===Object&&y;Kr.exports=ye});var zr=A((cn,Vr)=>{p();var xe=Yr(),me=typeof self=="object"&&self&&self.Object===Object&&self,we=xe||me||Function("return this")();Vr.exports=we});var cr=A((pn,Jr)=>{p();var de=zr(),Ee=de.Symbol;Jr.exports=Ee});var rt=A((fn,Zr)=>{p();var Xr=cr(),Qr=Object.prototype,ge=Qr.hasOwnProperty,Te=Qr.toString,W=Xr?Xr.toStringTag:void 0;function Ae(e){var r=ge.call(e,W),t=e[W];try{e[W]=void 0;var n=!0}catch(o){}var i=Te.call(e);return n&&(r?e[W]=t:delete e[W]),i}Zr.exports=Ae});var et=A((hn,tt)=>{p();var Fe=Object.prototype,ve=Fe.toString;function Be(e){return ve.call(e)}tt.exports=Be});var ut=A((ln,ot)=>{p();var nt=cr(),Ie=rt(),Ne=et(),Se="[object Null]",be="[object Undefined]",it=nt?nt.toStringTag:void 0;function Ue(e){return e==null?e===void 0?be:Se:it&&it in Object(e)?Ie(e):Ne(e)}ot.exports=Ue});var st=A((yn,at)=>{p();var Ce=Array.isArray;at.exports=Ce});var pt=A((xn,ct)=>{p();function ke(e){return e!=null&&typeof e=="object"}ct.exports=ke});var ht=A((mn,ft)=>{p();var Oe=ut(),De=st(),Le=pt(),_e="[object String]";function Re(e){return typeof e=="string"||!De(e)&&Le(e)&&Oe(e)==_e}ft.exports=Re});var He={};St(He,{nativeAuth:()=>Pe});module.exports=bt(He);p();p();var ce=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),H=e=>ce(x.Buffer.from(e,"utf8").toString("base64"));p();var Gr=K(require("axios"));p();var Pr="blocks";p();p();p();function Hr(e){return v(this,null,function*(){return yield new Promise(r=>{setTimeout(()=>r(),e)})})}p();var qr=(e,r,t,n=0)=>v(void 0,null,function*(){try{return yield e(...t)}catch(i){return n<r.retries?((r==null?void 0:r.delay)!=null&&(yield Hr(r.delay)),yield qr(e,r,t,n+1)):null}}),jr=(e,r={retries:5,delay:500})=>(...t)=>v(void 0,null,function*(){return yield qr(e,r,t)});var pe=4,fe=3e4,X={current:null},L={current:null},he=jr((e,r)=>v(void 0,null,function*(){let{data:t}=yield Gr.default.get(`${e}/${Pr}?from=${pe}&size=1&fields=hash,timestamp${r?"&shard="+r:""}`),[n]=t;return n}));function Wr(e,r){return v(this,null,function*(){if(e==null)throw new Error("missing api url");let t=Date.now();if(X.current!=null&&t<X.current.timestamp*1e3+fe)return X.current;if(L.current!=null)return yield L.current;L.current=he(e,r);try{let n=yield L.current;if(n==null)throw L.current=null,new Error("could not get block hash");return X.current={hash:n.hash,timestamp:n.timestamp},L.current=null,n}catch(n){return L.current=null,null}})}p();p();p();var $r=()=>Date.now()/1e3;p();p();function le(e){try{let r=atob(e),t=btoa(r),n=x.Buffer.from(e,"base64").toString(),i=x.Buffer.from(n).toString("base64");if(e===t&&e===i||r===n)return!0}catch(r){return!1}return!1}function q(e){return le(e)?atob(e):e}p();var lt=K(ht());var yt=e=>{if(!e||!(0,lt.default)(e))return null;let r=e.split(".");if(r.length!==4)return null;try{let[t,n,i,o]=r,u=JSON.parse(q(o)),s=q(t);return{ttl:Number(i),extraInfo:u,origin:s,blockHash:n}}catch(t){return console.error(`Error trying to decode ${e}:`,t),null}};function Me(e){return Object.prototype.toString.call(e)==="[object String]"}var xt=e=>{var t;if(!e||!Me(e))return null;let r=e.split(".");if(r.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[n,i,o]=r,u=q(n),s=q(i),c=yt(s);if(!c)return{address:u,body:s,signature:o,blockHash:"",origin:"",ttl:0};let f=xr(G({},c),{address:u,body:s,signature:o});return(t=c.extraInfo)!=null&&t.timestamp||delete f.extraInfo,f}catch(n){return null}};var pr={isExpired:!1},mt=e=>{if(!e)return pr;let r=xt(e);if(!r)return pr;let t=$r(),{ttl:n,extraInfo:i}=r,o=i==null?void 0:i.timestamp;if(!o)return pr;let u=o+n,s=t>u,c=u-t;return{isExpired:s,expiresAt:u,secondsUntilExpires:c}};p();var wt,$={origin:typeof window!="undefined"?(wt=window==null?void 0:window.location)==null?void 0:wt.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},fr=e=>{var t,n,i,o,u,s;return e===!0?$:{origin:(t=e==null?void 0:e.origin)!=null?t:$.origin,blockHashShard:(n=e==null?void 0:e.blockHashShard)!=null?n:null,expirySeconds:(i=e==null?void 0:e.expirySeconds)!=null?i:$.expirySeconds,apiAddress:(o=e==null?void 0:e.apiAddress)!=null?o:$.apiAddress,tokenExpirationToastWarningSeconds:(u=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?u:$.tokenExpirationToastWarningSeconds,extraInfo:(s=e==null?void 0:e.extraInfo)!=null?s:{}}};p();var dt=({address:e,token:r,signature:t})=>{let n=H(e),i=H(r);return`${n}.${i}.${t}`};var Pe=e=>{let{origin:r,apiAddress:t,expirySeconds:n,blockHashShard:i,extraInfo:o}=fr(e);return{getNativeAuthConfig:fr,initialize:(s,c)=>v(void 0,null,function*(){if(!t||!r)return"";let f=c!=null?c:yield Wr(t,i),{hash:l,timestamp:h}=f,T=H(JSON.stringify(G(G({},s!=null?s:o),h?{timestamp:h}:{})));return`${H(r)}.${l}.${n}.${T}`}),getToken:dt,getTokenExpiration:mt}};0&&(module.exports={nativeAuth});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -19,6 +19,9 @@ export interface NativeAuthConfigType {
|
|
|
19
19
|
apiAddress?: string;
|
|
20
20
|
expirySeconds?: number;
|
|
21
21
|
blockHashShard?: number;
|
|
22
|
+
extraInfo?: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
22
25
|
/**
|
|
23
26
|
* Displays a logout toast warning before token expiration. Defaults to 5 minutes.
|
|
24
27
|
*
|