@dcl/shop 1.11.2-33050849044.commit-d710ef0 → 1.11.2
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/_assets/{Activity-Cb8UPooR.js → Activity-BhrsqnTy.js} +8 -8
- package/_assets/{AnimatedBackground-DTrZDJA8.js → AnimatedBackground-DB2urHfN.js} +2 -2
- package/_assets/{Assets-BeMy0zBm.js → Assets-CEOKXfHN.js} +3 -3
- package/_assets/{Authorizations-DncizvNg.js → Authorizations-zY_jkrdd.js} +2 -2
- package/_assets/{Cart-DT8eTjju.js → Cart-CD3QMZMU.js} +2 -2
- package/_assets/{Collection-DCZ3YJU4.js → Collection-fLHFUGHo.js} +2 -2
- package/_assets/{CollectionCarousel-0tR5Mlt1.js → CollectionCarousel-Cs01J4sG.js} +3 -3
- package/_assets/{Confetti-ViY_Tl_x.js → Confetti-DI93CkCr.js} +4 -4
- package/_assets/{ConstantsUtil-CPnBLCKC.js → ConstantsUtil-9orAwS_V.js} +2 -2
- package/_assets/{ContentClient-BkKFRXIG.js → ContentClient-Dr4IkAbb.js} +2 -2
- package/_assets/{Creator-eDokOdG6.js → Creator-DGT3lqoW.js} +2 -2
- package/_assets/{DeploymentBuilder-sKGEh439.js → DeploymentBuilder-BsQ4GIy9.js} +2 -2
- package/_assets/{EmotePlaybackBar-Dhz63yAz.js → EmotePlaybackBar-WqjOzm12.js} +3 -3
- package/_assets/{ErrorNotice-CSHOj_36.js → ErrorNotice-BanVYx_o.js} +2 -2
- package/_assets/{ExchangeController-CsKQzi2K.js → ExchangeController-BWLF9BXM.js} +2 -2
- package/_assets/{Faq-DDRZibDb.js → Faq-Dt8RPaHZ.js} +2 -2
- package/_assets/{GetCredits-CpP-OsF7.js → GetCredits-BtM_F2J_.js} +2 -2
- package/_assets/{Grow-DCgFqXHz.js → Grow-DqnkmJ7j.js} +2 -2
- package/_assets/{HelpersUtil-iJ1yh8Qr.js → HelpersUtil-BtPtcaFe.js} +2 -2
- package/_assets/{ItemDetail-DwAqmdIu.js → ItemDetail-C28UgJKw.js} +2 -2
- package/_assets/{LoadMore-BwZO73du.js → LoadMore-hoiSVN2H.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-DGJbiC1Z.js → ManaPricingBanner.styles-rIYX7xjf.js} +2 -2
- package/_assets/{MyAssets-hcKLnv5g.js → MyAssets-BtAcjcuT.js} +2 -2
- package/_assets/{MyFavorites-Bp6GPtXE.js → MyFavorites-C3BVkIkn.js} +2 -2
- package/_assets/{NetworkUtil-DbL_V1jR.js → NetworkUtil-BIUbrPWa.js} +2 -2
- package/_assets/{NotFound-CTb_1gzv.js → NotFound-BgmQ5oFS.js} +2 -2
- package/_assets/{NotificationsBell--siTbfxL.js → NotificationsBell-Bjpu5hGT.js} +2 -2
- package/_assets/{OutfitDetail-pb_IcBaj.js → OutfitDetail-CIeX74fk.js} +2 -2
- package/_assets/{OutfitPreview-CSV0Ba-9.js → OutfitPreview-Clicok_x.js} +2 -2
- package/_assets/{OutfitStudio-CtmMGesj.js → OutfitStudio-DLStaax_.js} +2 -2
- package/_assets/{StoreSettings-8ag4TiMf.js → StoreSettings-DwoVLG99.js} +2 -2
- package/_assets/{Success-CYW7s5SU.js → Success-BKkeu6d7.js} +2 -2
- package/_assets/{SwapController-uLupOCWo.js → SwapController-Cnrhnusk.js} +2 -2
- package/_assets/{TradeService-CRFzT-Hr.js → TradeService-BgsoZh0O.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-Cb17Fn7X.js → W3MFrameProviderSingleton-DqaMm2mV.js} +4 -4
- package/_assets/{WebCryptoP256-CgN7P_px.js → WebCryptoP256-R5qc29Sl.js} +2 -2
- package/_assets/{authorizations-ChjDHhq0.js → authorizations-DC168PVR.js} +2 -2
- package/_assets/{basic-DJQVI2W6.js → basic-CcMC-Noe.js} +2 -2
- package/_assets/{biconomy-ZY5p1Lnz.js → biconomy-MuBR1fCG.js} +2 -2
- package/_assets/{browseLayout.styles-BGMKaxNl.js → browseLayout.styles-C_vn8XYJ.js} +2 -2
- package/_assets/{browser-DrZivzFf.js → browser-CTTbQgwQ.js} +2 -2
- package/_assets/{browser-ponyfill-BNOW_pBr.js → browser-ponyfill-2MY_3eYQ.js} +2 -2
- package/_assets/{builder-BfRqFJQ4.js → builder-CpxipFmE.js} +2 -2
- package/_assets/{buy-Cmc6VGNE.js → buy-C9vFcpIy.js} +2 -2
- package/_assets/{buy-gasless-SuVAuIoA.js → buy-gasless-Co1yjKqt.js} +2 -2
- package/_assets/{categories-CcQWbCI7.js → categories-DSulO5YB.js} +2 -2
- package/_assets/{ccip-DwiL0Ome.js → ccip-BGKWaLZd.js} +2 -2
- package/_assets/{ccip-DwRl-KxC.js → ccip-CIGFVe9f.js} +2 -2
- package/_assets/{chains-DsUWcPpA.js → chains-B_96BGTk.js} +2 -2
- package/_assets/collectionPage.styles-DUDsxvQH.js +40 -0
- package/_assets/{common-CraL5c5H.js → common-nayH6Qb7.js} +2 -2
- package/_assets/{controller-BuSjdOVC.js → controller-BoM50IGk.js} +3 -3
- package/_assets/{core-C68iFRG-.js → core-C6U0AzoB.js} +5 -5
- package/_assets/{createSvgIcon-CGmCpEG5.js → createSvgIcon-DLtjIgIX.js} +2 -2
- package/_assets/{custom-4GcYKxl5.js → custom-BDzyroM1.js} +2 -2
- package/_assets/{data-capture-Cyiav8vl.js → data-capture-Zb8-AfOh.js} +2 -2
- package/_assets/{dcl-schemas-Z_oWg9h9.js → dcl-schemas-OH8G4Ndl.js} +2 -2
- package/_assets/{decimals-Bq-S3aqE.js → decimals-DwmaOPpT.js} +2 -2
- package/_assets/{decimals-CArBdPn5.js → decimals-gxw11IoF.js} +2 -2
- package/_assets/{detectExtension-Dt_yYPg7.js → detectExtension-GZk2y11b.js} +2 -2
- package/_assets/{disposePreview-D4xN-rbE.js → disposePreview-CoU0o2LJ.js} +2 -2
- package/_assets/{email-CZ4jC6eQ.js → email-Bs2nQCjl.js} +2 -2
- package/_assets/{embedded-wallet-DZADS08N.js → embedded-wallet-DaMZY5wt.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-beWfTrJ9.js → emotion-styled.browser.esm-pl53fr_X.js} +2 -2
- package/_assets/{engine-BSXxNgo0.js → engine-_-Y9EygX.js} +2 -2
- package/_assets/{errors-BOK5UzVJ.js → errors-ISVrHVty.js} +2 -2
- package/_assets/{estimate-l1-fee-GVxA6iNo.js → estimate-l1-fee-C2MojaUq.js} +2 -2
- package/_assets/{eth_estimateGas-etehgmZh.js → eth_estimateGas-ByaJEeM-.js} +2 -2
- package/_assets/{eth_getStorageAt-CbdzG1l_.js → eth_getStorageAt-CfRtAGD-.js} +2 -2
- package/_assets/{eth_getTransactionCount-B5PZdzoN.js → eth_getTransactionCount-DCx1pf2k.js} +2 -2
- package/_assets/{ethereum-CS-n5Xr7.js → ethereum-BgVZC6F_.js} +2 -2
- package/_assets/{ethers-Cpz0Q6xx.js → ethers-DwK2TdL6.js} +2 -2
- package/_assets/{events-DACjjuYo.js → events-CSIN-_05.js} +2 -2
- package/_assets/{execute-D9BdF3-v.js → execute-wmZZdldV.js} +3 -3
- package/_assets/{extractIPFS-nIeATqsF.js → extractIPFS-BS6I288E.js} +2 -2
- package/_assets/{features-C_LEXfeO.js → features-DimRp-1s.js} +2 -2
- package/_assets/{fetchTokenMetadata-0K65OHg2.js → fetchTokenMetadata-DZy_tSZt.js} +3 -3
- package/_assets/{field.styles-Cc8geV5i.js → field.styles-6_NAJBdz.js} +2 -2
- package/_assets/{fortmatic-BQvAbAE8.js → fortmatic-D-iEWKOV.js} +2 -2
- package/_assets/{get-bytecode-CUOf1h_g.js → get-bytecode-We_Yud0L.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-CRF2DpN6.js → get-ecosystem-wallet-info-CZ2Y-cLY.js} +2 -2
- package/_assets/{getBalance-CZZhOPZE.js → getBalance-SeTBLCzL.js} +3 -3
- package/_assets/{getInstalledModules-jGEvSZtN.js → getInstalledModules-Dj-K4xQC.js} +2 -2
- package/_assets/{getNFT-CitsyjuX.js → getNFT-BCYWBTK4.js} +3 -3
- package/_assets/{getNFT-WfSacIBg.js → getNFT-BiPo4cEC.js} +2 -2
- package/_assets/{grid.styles-BgULreOR.js → grid.styles-DlGaOCzf.js} +2 -2
- package/_assets/{hashTypedData-C6vCQMAc.js → hashTypedData-Dr6t3Q-D.js} +2 -2
- package/_assets/{hashTypedData-ByJYgeO9.js → hashTypedData-OCiZaYsv.js} +2 -2
- package/_assets/{in-app-DelW162t.js → in-app-CVvPAYT7.js} +2 -2
- package/_assets/{in-app-wallet-calls-GZEjZInR.js → in-app-wallet-calls-ChA73nJF.js} +2 -2
- package/_assets/{index-CFDDMQJK.js → index-2aK4zhJE.js} +2 -2
- package/_assets/{index-CIKEzKBH.js → index-ARGrbe3A.js} +3 -3
- package/_assets/{index-BhStT_cc.js → index-Axq2dKdE.js} +2 -2
- package/_assets/{index-_K5f8PeG.js → index-B0OkSRGZ.js} +2 -2
- package/_assets/{index-Cw7Rqo2-.js → index-B1wSCmue.js} +2 -2
- package/_assets/{index-D4aVxZvs.js → index-B2uxq6bU.js} +2 -2
- package/_assets/{index-C_qbG0dy.js → index-B3Ji4DRo.js} +2 -2
- package/_assets/{index-nlnz8IwV.js → index-B9Up_SK0.js} +2 -2
- package/_assets/{index-CPtUYput.js → index-BACBbqlk.js} +2 -2
- package/_assets/{index-DNVhmP-g.js → index-BDJuqgxU.js} +2 -2
- package/_assets/{index-Ch-uhgiT.js → index-BHbHN01N.js} +2 -2
- package/_assets/{index-DgrGQPbb.js → index-BJA_2Ynv.js} +2 -2
- package/_assets/{index-j6WPFSGW.js → index-BPQVwfa5.js} +2 -2
- package/_assets/{index-BfFqEUOq.js → index-BPinodm9.js} +2 -2
- package/_assets/{index-Q6NI03qq.js → index-BWEvNyOP.js} +2 -2
- package/_assets/{index-CUxOFwrr.js → index-BiAbz-7Q.js} +2 -2
- package/_assets/{index-CnKfDln2.js → index-BjdjqJv4.js} +4 -4
- package/_assets/{index-vSQyyLPX.js → index-BlorBoCd.js} +2 -2
- package/_assets/{index-06nAp6_P.js → index-C3LVhWuY.js} +2 -2
- package/_assets/{index-B3hIuOjX.js → index-CATjpM0W.js} +2 -2
- package/_assets/{index-Bzl3YxsW.js → index-CFGlj3ri.js} +2 -2
- package/_assets/{index-BiFC9g1V.js → index-CGdQ1CYx.js} +3 -3
- package/_assets/{index-nAcepwRH.js → index-CK4WqWqO.js} +2 -2
- package/_assets/{index-478kymCd.js → index-CO9qakt0.js} +2 -2
- package/_assets/{index-qNV8isBD.js → index-CQvLWK26.js} +2 -2
- package/_assets/{index-zyHGk9oP.js → index-CS1VnyR1.js} +2 -2
- package/_assets/{index-D6uAgsgt.js → index-CUa90VgH.js} +2 -2
- package/_assets/{index-DLfuFdyq.js → index-CWThS2BY.js} +2 -2
- package/_assets/{index-Btp9BlB2.js → index-CY38y8q8.js} +2 -2
- package/_assets/{index-6H7SIWE4.js → index-CbMw0H1W.js} +3 -3
- package/_assets/{index-BQcRovWk.js → index-ChNIU-k1.js} +2 -2
- package/_assets/{index-DKaHo61X.js → index-Cj5zg5gT.js} +2 -2
- package/_assets/{index-0drXYznK.js → index-CmcTFc5W.js} +4 -4
- package/_assets/{index-DZwiznKc.js → index-CmcvBNcU.js} +2 -2
- package/_assets/{index-B3Z7srlP.js → index-Cst1nEOO.js} +2 -2
- package/_assets/{index-DrtJak5c.js → index-Ct9dUkSX.js} +2 -2
- package/_assets/{index-KxXBUjbr.js → index-CtayMM8a.js} +4 -4
- package/_assets/{index-oUqiABFT.js → index-D0Wlf6gr.js} +2 -2
- package/_assets/{index-BBxO56gH.js → index-D0q045Px.js} +2 -2
- package/_assets/{index-B_2Mo4bu.js → index-D1jUYM4a.js} +2 -2
- package/_assets/{index-COOTjCVL.js → index-D2CYJ9zD.js} +2 -2
- package/_assets/{index-C9Nt4S9K.js → index-D7_zDlZP.js} +2 -2
- package/_assets/{index-BhuPVo5e.js → index-D8QWWYMI.js} +2 -2
- package/_assets/{index-DeqZWYRQ.js → index-DAqd6v3r.js} +2 -2
- package/_assets/{index-DSfy1hBC.js → index-DCE7JXu8.js} +2 -2
- package/_assets/{index-0GqxSgjs.js → index-DGUzkX-I.js} +2 -2
- package/_assets/{index-HKZSXNsr.js → index-DGwAzxg5.js} +2 -2
- package/_assets/{index-ZdJgkDfq.js → index-DJXUib_8.js} +2 -2
- package/_assets/{index-_YF7EieY.js → index-DKiFTtAe.js} +3 -3
- package/_assets/{index-DRS8NbOe.js → index-DLKAGp7r.js} +2 -2
- package/_assets/{index-BMxAuVf4.js → index-DRR34LYo.js} +2 -2
- package/_assets/{index-Oc8g3W54.js → index-DZcNiUa1.js} +2 -2
- package/_assets/{index-MVmOAy4C.js → index-DejzmYQv.js} +2 -2
- package/_assets/{index-8ROQzz_g.js → index-DibFNBla.js} +2 -2
- package/_assets/{index-7k0c5Qcy.js → index-Dn8vBHwo.js} +2 -2
- package/_assets/{index-1oZGCxrR.js → index-Dxe6AOQE.js} +2 -2
- package/_assets/{index-Zw_hjMg7.js → index-G5AacsmF.js} +2 -2
- package/_assets/{index-CHxIVaGD.js → index-MZXf7D1W.js} +2 -2
- package/_assets/{index-C-bEpZKt.js → index-_-VFmxzj.js} +2 -2
- package/_assets/{index-DO2w-wQR.js → index-bJXcZSYa.js} +12 -12
- package/_assets/{index-BqDmiiZ-.js → index-ficvqfHi.js} +2 -2
- package/_assets/{index-B0FVA0eZ.js → index-gAex9EE8.js} +2 -2
- package/_assets/{index-YBa5NFZw.js → index-gm_D0aNI.js} +2 -2
- package/_assets/{index-Bl045Uro.js → index-n4qOUE64.js} +2 -2
- package/_assets/{index-DtNLghFi.js → index-nQ3hptXe.js} +2 -2
- package/_assets/{index-D3bYCsfh.js → index-ncctYqB-.js} +2 -2
- package/_assets/{index-RB8sYWdK.js → index-zkaZwO7E.js} +2 -2
- package/_assets/{index.es-BPsWV599.js → index.es-4xrWWZcO.js} +2 -2
- package/_assets/{index.es-DxzKuifY.js → index.es-CstVHWlV.js} +5 -5
- package/_assets/{index.es-Tp1KZ2HQ.js → index.es-DYbPPtM5.js} +2 -2
- package/_assets/{index.es-BOCjx120.js → index.es-DzLQ6Fnb.js} +2 -2
- package/_assets/items-empty-CpzVwMne.js +2 -0
- package/_assets/{jump-DErRvLju.js → jump-CVtY0iTz.js} +2 -2
- package/_assets/{linkAccount-YghbSYWp.js → linkAccount-6NTQv8aT.js} +2 -2
- package/_assets/{localBatchGatewayRequest-BExIf5_1.js → localBatchGatewayRequest-Dks7VfkN.js} +2 -2
- package/_assets/{native-c1T6eoXp.js → native-CXAGKkI7.js} +2 -2
- package/_assets/{networks-B-wEMoJV.js → networks-DtT18tMT.js} +2 -2
- package/_assets/{onramp-CDCcNQHe.js → onramp-CUVL5AKN.js} +2 -2
- package/_assets/{openzeppelin-CpRja1Th.js → openzeppelin-C6HmSX5F.js} +2 -2
- package/_assets/{ownerOf-C70qi64U.js → ownerOf-iHeO-A0L.js} +2 -2
- package/_assets/{parseNft-CZOYTgLm.js → parseNft-_qkiBgGY.js} +3 -3
- package/_assets/{parseSignature-DzR-8mQD.js → parseSignature-DCX2Homx.js} +4 -4
- package/_assets/{parseSignature-BEsyV8el.js → parseSignature-DpYJxwtD.js} +2 -2
- package/_assets/{passkeys-yBovAv90.js → passkeys-CaDDwDfa.js} +2 -2
- package/_assets/{pay-with-exchange-7bhrHbog.js → pay-with-exchange-mjjMFDoB.js} +2 -2
- package/_assets/{prepare-contract-call-h84PINiM.js → prepare-contract-call-B3PEXjk8.js} +2 -2
- package/_assets/{qr-overlay-WkRjHKs6.js → qr-overlay-Dte-FwLF.js} +4 -4
- package/_assets/{react-C_gdQiCE.js → react-Io5Wove7.js} +2 -2
- package/_assets/{receive-Do89clPB.js → receive-BOylnCCD.js} +2 -2
- package/_assets/{resolveImplementation-B9JWy09W.js → resolveImplementation-eqKe_Jd_.js} +2 -2
- package/_assets/{resume-buy-BC0M_EmE.js → resume-buy-l-MsHDN-.js} +2 -2
- package/_assets/{rpc-BSS6zm8k.js → rpc-Bd3ag8E4.js} +2 -2
- package/_assets/{sales-empty-DYbL-9_y.js → sales-empty-71lDTBeo.js} +2 -2
- package/_assets/{search-empty-CZAYhXXz.js → search-empty-C2pIWVz4.js} +2 -2
- package/_assets/{secp256k1-BBFBLxON.js → secp256k1-BCTY01q6.js} +2 -2
- package/_assets/{secp256k1-ZJxm9Bys.js → secp256k1-ChjjZr2n.js} +2 -2
- package/_assets/{secp256k1-BYDa0XLp.js → secp256k1-D89skxyt.js} +2 -2
- package/_assets/{send-ClRYnajv.js → send-BoRH3tdn.js} +2 -2
- package/_assets/{send-batch-transaction-DwvLC0W4.js → send-batch-transaction-qs3ijcbz.js} +2 -2
- package/_assets/{send-eip712-transaction-DvY1NVgK.js → send-eip712-transaction-BLU365vg.js} +3 -3
- package/_assets/{send-gasless-transaction-o1auSTit.js → send-gasless-transaction-COE6PePF.js} +3 -3
- package/_assets/{send-transaction-Br2a0g7W.js → send-transaction-DWia223-.js} +3 -3
- package/_assets/{sendMetaTransaction-Bu8b5LeI.js → sendMetaTransaction-Bnb1e1Oo.js} +2 -2
- package/_assets/{sendRawTransaction-BpeJI0sp.js → sendRawTransaction-QUpRtv1T.js} +4 -4
- package/_assets/{sentry-Cxy688Uv.js → sentry-faeuEJiQ.js} +3 -3
- package/_assets/{serializeTransaction-FQ6RV9RE.js → serializeTransaction-Bzap5VIj.js} +2 -2
- package/_assets/{session-proposal-C6u2LdKL.js → session-proposal-BRPQA6_F.js} +2 -2
- package/_assets/{session-request-w0C1Tobh.js → session-request-DE3BfIwL.js} +3 -3
- package/_assets/{sha256-CTCuMrwW.js → sha256-my9t8oLg.js} +2 -2
- package/_assets/{signing-D3zt3At6.js → signing-BKRnKKdl.js} +4 -4
- package/_assets/{skeleton.styles-B1HNltmx.js → skeleton.styles-Cjpy58bn.js} +2 -2
- package/_assets/{socials-DfbgvKTd.js → socials-CHs46oCs.js} +2 -2
- package/_assets/{styled-Cuj3EyKZ.js → styled-3e6FPpFM.js} +2 -2
- package/_assets/{swaps-b1I3uEg7.js → swaps-BQAfj8hR.js} +2 -2
- package/_assets/{thirdweb-auekSJDk.js → thirdweb-I3ycy-sq.js} +4 -4
- package/_assets/{to-serializable-transaction-CfmjnNDu.js → to-serializable-transaction-D4JXNF6K.js} +3 -3
- package/_assets/{totalSupply-BUwJKf4f.js → totalSupply-RRjcgrsd.js} +2 -2
- package/_assets/{transaction-DnOh3Eg-.js → transaction-CpNDZT6H.js} +2 -2
- package/_assets/{transactionReceipt-CqUJCou2.js → transactionReceipt-BsGymDgp.js} +2 -2
- package/_assets/{transactions-C3x5-V61.js → transactions-ZyGjrTz1.js} +2 -2
- package/_assets/{useCreditPacks-DCsNOyZ8.js → useCreditPacks-RKaHRtDl.js} +2 -2
- package/_assets/{useInfiniteGrid-R77Z-ty5.js → useInfiniteGrid-CKUOL3of.js} +2 -2
- package/_assets/{useStore-D2qLhY6J.js → useStore-zwLaMv5E.js} +3 -3
- package/_assets/{useTheme-BGjlT7WM.js → useTheme-6lXtg_We.js} +2 -2
- package/_assets/{utils-BtZfUVLs.js → utils-DmCacC3Z.js} +2 -2
- package/_assets/{verifyHash-DPHC3ZIF.js → verifyHash-BnLy1LQ8.js} +2 -2
- package/_assets/{w3m-modal-CbZN_Q63.js → w3m-modal-CqeYEpsp.js} +2 -2
- package/_assets/{w3m-modal-D0JziRdg.js → w3m-modal-igkHA2Yg.js} +2 -2
- package/_assets/{wait-for-tx-receipt-DZiNnQbl.js → wait-for-tx-receipt-BBZ5JG62.js} +2 -2
- package/_assets/{wallets-rH1kVf3P.js → wallets-BUa02PiV.js} +6 -6
- package/_assets/{web-connector-COam_ETk.js → web-connector-C7j-Aqf_.js} +4 -4
- package/_assets/{writeContract-14h9tGQE.js → writeContract-DUS_4K4j.js} +2 -2
- package/_assets/{zora-sepolia-CutqFesD.js → zora-sepolia-CDPQd0aL.js} +2 -2
- package/_assets/{zoraTestnet-bXAN-i92.js → zoraTestnet-DzzH_a_k.js} +2 -2
- package/index.html +11 -11
- package/package.json +1 -1
- package/_assets/collectionPage.styles-DVsIiXb2.js +0 -40
- package/_assets/items-empty-x6ksK26N.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/send-transaction-
|
|
2
|
-
import{af as ln,ag as it,ah as Re,ai as hn,aj as br,ak as wr,al as Q,h as xr,am as vr,an as yt,ao as ie,ap as H,ae as v,v as pn,aq as Er,ar as F,as as P,at as Fe,au as M,av as Ze,aw as yn,ax as Ft,ay as Ge,az as J,aA as Br,aB as gn,aC as mn,aD as bn,aE as Ir,aF as Ae,aG as wn,aH as Ar,aI as Pe,aJ as Tt,aK as Ce,aL as Pr,aM as Sr,aN as $r,aO as Tr,aP as De,aQ as me,u as Or,r as xn,e as ze,f as Ot,c as zr,aR as Nr,aS as _r,aT as Zt,aU as Lr,k as ue,aV as vn,T as En,b as Bn,a5 as zt}from"./prepare-contract-call-h84PINiM.js";import{c as Cr,e as Ur,w as Rr}from"./utils-BtZfUVLs.js";import{_ as gt}from"./index-DO2w-wQR.js";import{p as Dr,k as mt,l as Hr,g as ot,j as kr,e as In}from"./to-serializable-transaction-CfmjnNDu.js";import{g as jr}from"./get-bytecode-CUOf1h_g.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b8e50bb7-5e2c-4930-96c1-b2938c0baad4",e._sentryDebugIdIdentifier="sentry-dbid-b8e50bb7-5e2c-4930-96c1-b2938c0baad4")}catch{}})();/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Nt=BigInt(0),bt=BigInt(1);function ve(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function _t(e){if(!ve(e))throw new Error("Uint8Array expected")}function Se(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function Ue(e){const t=e.toString(16);return t.length&1?"0"+t:t}function An(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Nt:BigInt("0x"+e)}const Pn=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Mr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function $e(e){if(_t(e),Pn)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Mr[e[n]];return t}const ne={_0:48,_9:57,A:65,F:70,a:97,f:102};function Gt(e){if(e>=ne._0&&e<=ne._9)return e-ne._0;if(e>=ne.A&&e<=ne.F)return e-(ne.A-10);if(e>=ne.a&&e<=ne.f)return e-(ne.a-10)}function He(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Pn)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let s=0,i=0;s<n;s++,i+=2){const o=Gt(e.charCodeAt(i)),a=Gt(e.charCodeAt(i+1));if(o===void 0||a===void 0){const c=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}r[s]=o*16+a}return r}function he(e){return An($e(e))}function Sn(e){return _t(e),An($e(Uint8Array.from(e).reverse()))}function Te(e,t){return He(e.toString(16).padStart(t*2,"0"))}function $n(e,t){return Te(e,t).reverse()}function X(e,t,n){let r;if(typeof t=="string")try{r=He(t)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(ve(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=r.length;if(typeof n=="number"&&s!==n)throw new Error(e+" of length "+n+" expected, got "+s);return r}function ke(...e){let t=0;for(let r=0;r<e.length;r++){const s=e[r];_t(s),t+=s.length}const n=new Uint8Array(t);for(let r=0,s=0;r<e.length;r++){const i=e[r];n.set(i,s),s+=i.length}return n}const at=e=>typeof e=="bigint"&&Nt<=e;function Lt(e,t,n){return at(e)&&at(t)&&at(n)&&t<=e&&e<n}function we(e,t,n,r){if(!Lt(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function Vr(e){let t;for(t=0;e>Nt;e>>=bt,t+=1);return t}const We=e=>(bt<<BigInt(e))-bt,ct=e=>new Uint8Array(e),Wt=e=>Uint8Array.from(e);function qr(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=ct(e),s=ct(e),i=0;const o=()=>{r.fill(1),s.fill(0),i=0},a=(...f)=>n(s,r,...f),c=(f=ct(0))=>{s=a(Wt([0]),f),r=a(),f.length!==0&&(s=a(Wt([1]),f),r=a())},u=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let f=0;const l=[];for(;f<t;){r=a();const p=r.slice();l.push(p),f+=r.length}return ke(...l)};return(f,l)=>{o(),c(f);let p;for(;!(p=l(u()));)c();return o(),p}}const Fr={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||ve(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Ke(e,t,n={}){const r=(s,i,o)=>{const a=Fr[i];if(typeof a!="function")throw new Error("invalid validator function");const c=e[s];if(!(o&&c===void 0)&&!a(c,e))throw new Error("param "+String(s)+" is invalid. Expected "+i+", got "+c)};for(const[s,i]of Object.entries(t))r(s,i,!1);for(const[s,i]of Object.entries(n))r(s,i,!0);return e}function Kt(e){const t=new WeakMap;return(n,...r)=>{const s=t.get(n);if(s!==void 0)return s;const i=e(n,...r);return t.set(n,i),i}}function Zr(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const s=BigInt(32),i=BigInt(4294967295),o=Number(n>>s&i),a=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,a,r)}function Gr(e,t,n){return e&t^~e&n}function Wr(e,t,n){return e&t^e&n^t&n}class Kr extends ln{constructor(t,n,r,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=s,this.buffer=new Uint8Array(t),this.view=it(this.buffer)}update(t){Re(this);const{view:n,buffer:r,blockLen:s}=this;t=hn(t);const i=t.length;for(let o=0;o<i;){const a=Math.min(s-this.pos,i-o);if(a===s){const c=it(t);for(;s<=i-o;o+=s)this.process(c,o);continue}r.set(t.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===s&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Re(this),br(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:s,isLE:i}=this;let{pos:o}=this;n[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>s-o&&(this.process(r,0),o=0);for(let f=o;f<s;f++)n[f]=0;Zr(r,s-8,BigInt(this.length*8),i),this.process(r,0);const a=it(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<u;f++)a.setUint32(4*f,d[f],i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:s,finished:i,destroyed:o,pos:a}=this;return t.length=s,t.pos=a,t.finished=i,t.destroyed=o,s%n&&t.buffer.set(r),t}}const Yr=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ae=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ce=new Uint32Array(64);class Xr extends Kr{constructor(t=32){super(64,t,8,!1),this.A=ae[0]|0,this.B=ae[1]|0,this.C=ae[2]|0,this.D=ae[3]|0,this.E=ae[4]|0,this.F=ae[5]|0,this.G=ae[6]|0,this.H=ae[7]|0}get(){const{A:t,B:n,C:r,D:s,E:i,F:o,G:a,H:c}=this;return[t,n,r,s,i,o,a,c]}set(t,n,r,s,i,o,a,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=s|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(t,n){for(let f=0;f<16;f++,n+=4)ce[f]=t.getUint32(n,!1);for(let f=16;f<64;f++){const l=ce[f-15],p=ce[f-2],x=Q(l,7)^Q(l,18)^l>>>3,g=Q(p,17)^Q(p,19)^p>>>10;ce[f]=g+ce[f-7]+x+ce[f-16]|0}let{A:r,B:s,C:i,D:o,E:a,F:c,G:u,H:d}=this;for(let f=0;f<64;f++){const l=Q(a,6)^Q(a,11)^Q(a,25),p=d+l+Gr(a,c,u)+Yr[f]+ce[f]|0,g=(Q(r,2)^Q(r,13)^Q(r,22))+Wr(r,s,i)|0;d=u,u=c,c=a,a=o+p|0,o=i,i=s,s=r,r=p+g|0}r=r+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,d=d+this.H|0,this.set(r,s,i,o,a,c,u,d)}roundClean(){ce.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Qr=wr(()=>new Xr),Jr="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";function Lo(e){return e.toLowerCase()===Jr}const Co="0x0000000000000000000000000000000000000000";async function Uo(e,t){const n=await e({method:"eth_getBalance",params:[t.address,t.blockTag||"latest"]});return xr(n)}async function Ro({client:e,walletAddress:t,email:n,phone:r,id:s,externalWalletAddress:i,ecosystem:o}){if(!e.secretKey)throw new Error("A secret key is required to query for users. If you're making this request from the server, please add a secret key to your client.");const a=new URL(`${Cr("inAppWallet")}/api/2023-11-30/embedded-wallet/user-details`);if(t)a.searchParams.set("queryBy","walletAddress"),a.searchParams.set("walletAddress",t);else if(n)a.searchParams.set("queryBy","email"),a.searchParams.set("email",n);else if(r)a.searchParams.set("queryBy","phone"),a.searchParams.set("phone",r);else if(s)a.searchParams.set("queryBy","id"),a.searchParams.set("id",s);else if(i)a.searchParams.set("queryBy","externalWalletAddress"),a.searchParams.set("externalWalletAddress",i);else throw new Error("Please provide a walletAddress, email, phone, id, or externalWalletAddress to query for users.");const u=await Ur(e,o)(a.toString());if(!u.ok){const f=await u.text().catch(()=>"Unknown error");throw new Error(`Failed to get profiles. ${u.status} ${u.statusText}: ${f}`)}return(await u.json()).map(f=>({createdAt:f.createdAt,email:f.email,phone:f.phone,profiles:f.linkedAccounts.map(l=>({details:l.details,type:l.type==="siwe"?"wallet":l.type})),smartAccountAddress:f.smartAccountAddress,userId:f.userId,walletAddress:f.walletAddress}))[0]||null}function es(e){for(const t of e)if(typeof t!="string")return!1;return!0}function ts(e){return es(e)?Dr(e):e}function K(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=vr(yt(e));return n==="Bytes"?r:ie(r)}class ns extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const rs={checksum:new ns(8192)},ut=rs.checksum;function Tn(e,t={}){const{compressed:n}=t,{prefix:r,x:s,y:i}=e;if(n===!1||typeof s=="bigint"&&typeof i=="bigint"){if(r!==4)throw new Yt({prefix:r,cause:new us});return}if(n===!0||typeof s=="bigint"&&typeof i>"u"){if(r!==3&&r!==2)throw new Yt({prefix:r,cause:new cs});return}throw new as({publicKey:e})}function ss(e){const t=(()=>{if(pn(e))return On(e);if(Er(e))return is(e);const{prefix:n,x:r,y:s}=e;return typeof r=="bigint"&&typeof s=="bigint"?{prefix:n??4,x:r,y:s}:{prefix:n,x:r}})();return Tn(t),t}function is(e){return On(ie(e))}function On(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new fs({publicKey:e});if(e.length===130){const r=BigInt(F(e,0,32)),s=BigInt(F(e,32,64));return{prefix:4,x:r,y:s}}if(e.length===132){const r=Number(F(e,0,1)),s=BigInt(F(e,1,33)),i=BigInt(F(e,33,65));return{prefix:r,x:s,y:i}}const t=Number(F(e,0,1)),n=BigInt(F(e,1,33));return{prefix:t,x:n}}function os(e,t={}){Tn(e);const{prefix:n,x:r,y:s}=e,{includePrefix:i=!0}=t;return H(i?v(n,{size:1}):"0x",v(r,{size:32}),typeof s=="bigint"?v(s,{size:32}):"0x")}class as extends P{constructor({publicKey:t}){super(`Value \`${Fe(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class Yt extends P{constructor({prefix:t,cause:n}){super(`Prefix "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class cs extends P{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class us extends P{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let fs=class extends P{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${M(Ze(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const ds=/^0x[a-fA-F0-9]{40}$/;function ee(e,t={}){const{strict:n=!0}=t;if(!ds.test(e))throw new wt({address:e,cause:new zn});if(n){if(e.toLowerCase()===e)return;if(Ct(e)!==e)throw new wt({address:e,cause:new ps})}}function Ct(e){if(ut.has(e))return ut.get(e);ee(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=K(yn(t),{as:"Bytes"}),r=t.split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());const s=`0x${r.join("")}`;return ut.set(e,s),s}function ls(e,t={}){const{checksum:n=!1}=t;return ee(e),n?Ct(e):e}function hs(e,t={}){const n=K(`0x${os(e).slice(4)}`).substring(26);return ls(`0x${n}`,t)}function je(e,t={}){const{strict:n=!0}=t??{};try{return ee(e,{strict:n}),!0}catch{return!1}}class wt extends P{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class zn extends P{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class ps extends P{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function xt(e){let t=!0,n="",r=0,s="",i=!1;for(let o=0;o<e.length;o++){const a=e[o];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function","error",""].includes(s))s="";else if(s+=a,a===")"){i=!0;break}continue}if(a===" "){e[o-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}s+=a,n+=a}}if(!i)throw new P("Unable to normalize signature.");return s}function vt(e,t){const n=typeof e,r=t.type;switch(r){case"address":return je(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((s,i)=>vt(Object.values(e)[i],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(s=>vt(s,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Nn(e,t,n){for(const r in e){const s=e[r],i=t[r];if(s.type==="tuple"&&i.type==="tuple"&&"components"in s&&"components"in i)return Nn(s.components,i.components,n[r]);const o=[s.type,i.type];if(o.includes("address")&&o.includes("bytes20")?!0:o.includes("address")&&o.includes("string")?je(n[r],{strict:!1}):o.includes("address")&&o.includes("bytes")?je(n[r],{strict:!1}):!1)return o}}function ys(e,t={}){const{prepare:n=!0}=t,r=Array.isArray(e)?Ft(e):typeof e=="string"?Ft(e):e;return{...r,...n?{hash:be(r)}:{}}}function gs(e,t,n){const{args:r=[],prepare:s=!0}=n??{},i=pn(t,{strict:!1}),o=e.filter(u=>i?u.type==="function"||u.type==="error"?_n(u)===F(t,0,4):u.type==="event"?be(u)===t:!1:"name"in u&&u.name===t);if(o.length===0)throw new Me({name:t});if(o.length===1)return{...o[0],...s?{hash:be(o[0])}:{}};let a;for(const u of o){if(!("inputs"in u))continue;if(!r||r.length===0){if(!u.inputs||u.inputs.length===0)return{...u,...s?{hash:be(u)}:{}};continue}if(!u.inputs||u.inputs.length===0||u.inputs.length!==r.length)continue;if(r.every((f,l)=>{const p="inputs"in u&&u.inputs[l];return p?vt(f,p):!1})){if(a&&"inputs"in a&&a.inputs){const f=Nn(u.inputs,a.inputs,r);if(f)throw new bs({abiItem:u,type:f[0]},{abiItem:a,type:f[1]})}a=u}}const c=(()=>{if(a)return a;const[u,...d]=o;return{...u,overloads:d}})();if(!c)throw new Me({name:t});return{...c,...s?{hash:be(c)}:{}}}function _n(e){return F(be(e),0,4)}function ms(e){const t=typeof e=="string"?e:mt(e);return xt(t)}function be(e){return typeof e!="string"&&"hash"in e&&e.hash?e.hash:K(Ge(ms(e)))}class bs extends P{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${xt(mt(t.abiItem))}\`, and`,`\`${n.type}\` in \`${xt(mt(n.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Me extends P{constructor({name:t,data:n,type:r="item"}){const s=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${r}${s} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}class ws extends P{constructor({data:t}){super(`Selector size is invalid. Expected 4 bytes. Received ${M(t)} bytes ("${t}").`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}const xs=/^(.*)\[([0-9]*)\]$/,Ln=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ut=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Ho=2n**96n-1n,Xt=2n**256n-1n;function xe(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=Ht(t.type);if(i){const[o,a]=i;return Es(e,{...t,type:a},{checksumAddress:r,length:o,staticPosition:s})}if(t.type==="tuple")return Ps(e,t,{checksumAddress:r,staticPosition:s});if(t.type==="address")return vs(e,{checksum:r});if(t.type==="bool")return Bs(e);if(t.type.startsWith("bytes"))return Is(e,t,{staticPosition:s});if(t.type.startsWith("uint")||t.type.startsWith("int"))return As(e,t);if(t.type==="string")return Ss(e,{staticPosition:s});throw new kt(t.type)}const Qt=32,Et=32;function vs(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(i=>n?Ct(i):i)(ie(Br(r,-20))),32]}function Es(e,t,n){const{checksumAddress:r,length:s,staticPosition:i}=n;if(!s){const c=J(e.readBytes(Et)),u=i+c,d=u+Qt;e.setPosition(u);const f=J(e.readBytes(Qt)),l=Oe(t);let p=0;const x=[];for(let g=0;g<f;++g){e.setPosition(d+(l?g*32:p));const[h,m]=xe(e,t,{checksumAddress:r,staticPosition:d});p+=m,x.push(h)}return e.setPosition(i+32),[x,32]}if(Oe(t)){const c=J(e.readBytes(Et)),u=i+c,d=[];for(let f=0;f<s;++f){e.setPosition(u+f*32);const[l]=xe(e,t,{checksumAddress:r,staticPosition:u});d.push(l)}return e.setPosition(i+32),[d,32]}let o=0;const a=[];for(let c=0;c<s;++c){const[u,d]=xe(e,t,{checksumAddress:r,staticPosition:i+o});o+=d,a.push(u)}return[a,o]}function Bs(e){return[gn(e.readBytes(32),{size:32}),32]}function Is(e,t,{staticPosition:n}){const[r,s]=t.type.split("bytes");if(!s){const o=J(e.readBytes(32));e.setPosition(n+o);const a=J(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];const c=e.readBytes(a);return e.setPosition(n+32),[ie(c),32]}return[ie(e.readBytes(Number.parseInt(s),32)),32]}function As(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256"),s=e.readBytes(32);return[r>48?mn(s,{signed:n}):J(s,{signed:n}),32]}function Ps(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=t.components.length===0||t.components.some(({name:c})=>!c),o=i?[]:{};let a=0;if(Oe(t)){const c=J(e.readBytes(Et)),u=s+c;for(let d=0;d<t.components.length;++d){const f=t.components[d];e.setPosition(u+a);const[l,p]=xe(e,f,{checksumAddress:r,staticPosition:u});a+=p,o[i?d:f==null?void 0:f.name]=l}return e.setPosition(s+32),[o,32]}for(let c=0;c<t.components.length;++c){const u=t.components[c],[d,f]=xe(e,u,{checksumAddress:r,staticPosition:s});o[i?c:u==null?void 0:u.name]=d,a+=f}return[o,a]}function Ss(e,{staticPosition:t}){const n=J(e.readBytes(32)),r=t+n;e.setPosition(r);const s=J(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const i=e.readBytes(s,32),o=bn(Ir(i));return e.setPosition(t+32),[o,32]}function $s({checksumAddress:e,parameters:t,values:n}){const r=[];for(let s=0;s<t.length;s++)r.push(Rt({checksumAddress:e,parameter:t[s],value:n[s]}));return r}function Rt({checksumAddress:e=!1,parameter:t,value:n}){const r=t,s=Ht(r.type);if(s){const[i,o]=s;return Os(n,{checksumAddress:e,length:i,parameter:{...r,type:o}})}if(r.type==="tuple")return Cs(n,{checksumAddress:e,parameter:r});if(r.type==="address")return Ts(n,{checksum:e});if(r.type==="bool")return Ns(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const i=r.type.startsWith("int"),[,,o="256"]=Ut.exec(r.type)??[];return _s(n,{signed:i,size:Number(o)})}if(r.type.startsWith("bytes"))return zs(n,{type:r.type});if(r.type==="string")return Ls(n);throw new kt(r.type)}function Dt(e){let t=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?t+=32:t+=M(a)}const n=[],r=[];let s=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?(n.push(v(t+s,{size:32})),r.push(a),s+=M(a)):n.push(a)}return H(...n,...r)}function Ts(e,t){const{checksum:n=!1}=t;return ee(e,{strict:n}),{dynamic:!1,encoded:Ae(e.toLowerCase())}}function Os(e,t){const{checksumAddress:n,length:r,parameter:s}=t,i=r===null;if(!Array.isArray(e))throw new Vs(e);if(!i&&e.length!==r)throw new Ms({expectedLength:r,givenLength:e.length,type:`${s.type}[${r}]`});let o=!1;const a=[];for(let c=0;c<e.length;c++){const u=Rt({checksumAddress:n,parameter:s,value:e[c]});u.dynamic&&(o=!0),a.push(u)}if(i||o){const c=Dt(a);if(i){const u=v(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?H(u,c):u}}if(o)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:H(...a.map(({encoded:c})=>c))}}function zs(e,{type:t}){const[,n]=t.split("bytes"),r=M(e);if(!n){let s=e;return r%32!==0&&(s=Pe(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:H(Ae(v(r,{size:32})),s)}}if(r!==Number.parseInt(n))throw new Un({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:Pe(e)}}function Ns(e){if(typeof e!="boolean")throw new P(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ae(wn(e))}}function _s(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-r-1n:0n;if(e>r||e<s)throw new Ar({max:r.toString(),min:s.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:v(e,{size:32,signed:t})}}function Ls(e){const t=Ge(e),n=Math.ceil(M(t)/32),r=[];for(let s=0;s<n;s++)r.push(Pe(F(t,s*32,(s+1)*32)));return{dynamic:!0,encoded:H(Pe(v(M(t),{size:32})),...r)}}function Cs(e,t){const{checksumAddress:n,parameter:r}=t;let s=!1;const i=[];for(let o=0;o<r.components.length;o++){const a=r.components[o],c=Array.isArray(e)?o:a.name,u=Rt({checksumAddress:n,parameter:a,value:e[c]});i.push(u),u.dynamic&&(s=!0)}return{dynamic:s,encoded:s?Dt(i):H(...i.map(({encoded:o})=>o))}}function Ht(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function Oe(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(Oe);const n=Ht(e.type);return!!(n&&Oe({...e,type:n[1]}))}const Us={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Ds({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Rs({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Jt({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Jt({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Cn(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(Us);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class Jt extends P{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class Rs extends P{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class Ds extends P{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function Hs(e,t,n={}){const{as:r="Array",checksumAddress:s=!1}=n,i=typeof t=="string"?Tt(t):t,o=Cn(i);if(Ce(i)===0&&e.length>0)throw new js;if(Ce(i)&&Ce(i)<32)throw new ks({data:typeof t=="string"?t:ie(t),parameters:e,size:Ce(i)});let a=0;const c=r==="Array"?[]:{};for(let u=0;u<e.length;++u){const d=e[u];o.setPosition(a);const[f,l]=xe(o,d,{checksumAddress:s,staticPosition:0});a+=l,r==="Array"?c.push(f):c[d.name??u]=f}return c}function Ye(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new Rn({expectedLength:e.length,givenLength:t.length});const s=$s({checksumAddress:r,parameters:e,values:t}),i=Dt(s);return i.length===0?"0x":i}function Bt(e,t){if(e.length!==t.length)throw new Rn({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const s=e[r],i=t[r];n.push(Bt.encode(s,i))}return H(...n)}(function(e){function t(n,r,s=!1){if(n==="address"){const c=r;return ee(c),Ae(c.toLowerCase(),s?32:0)}if(n==="string")return Ge(r);if(n==="bytes")return r;if(n==="bool")return Ae(wn(r),s?32:1);const i=n.match(Ut);if(i){const[c,u,d="256"]=i,f=Number.parseInt(d)/8;return v(r,{size:s?32:f,signed:u==="int"})}const o=n.match(Ln);if(o){const[c,u]=o;if(Number.parseInt(u)!==(r.length-2)/2)throw new Un({expectedSize:Number.parseInt(u),value:r});return Pe(r,s?32:0)}const a=n.match(xs);if(a&&Array.isArray(r)){const[c,u]=a,d=[];for(let f=0;f<r.length;f++)d.push(t(u,r[f],!0));return d.length===0?"0x":H(...d)}throw new kt(n)}e.encode=t})(Bt||(Bt={}));class ks extends P{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${Hr(n)})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class js extends P{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class Ms extends P{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}let Un=class extends P{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${M(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}};class Rn extends P{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/send-transaction-DWia223-.js","_assets/index-bJXcZSYa.js","_assets/react-Io5Wove7.js","_assets/dcl-schemas-OH8G4Ndl.js","_assets/sentry-faeuEJiQ.js","_assets/ethers-DwK2TdL6.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/to-serializable-transaction-D4JXNF6K.js","_assets/prepare-contract-call-B3PEXjk8.js","_assets/utils-DmCacC3Z.js","_assets/transaction-CpNDZT6H.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{af as ln,ag as it,ah as Re,ai as hn,aj as br,ak as wr,al as Q,h as xr,am as vr,an as yt,ao as ie,ap as H,ae as v,v as pn,aq as Er,ar as F,as as P,at as Fe,au as M,av as Ze,aw as yn,ax as Ft,ay as Ge,az as J,aA as Br,aB as gn,aC as mn,aD as bn,aE as Ir,aF as Ae,aG as wn,aH as Ar,aI as Pe,aJ as Tt,aK as Ce,aL as Pr,aM as Sr,aN as $r,aO as Tr,aP as De,aQ as me,u as Or,r as xn,e as ze,f as Ot,c as zr,aR as Nr,aS as _r,aT as Zt,aU as Lr,k as ue,aV as vn,T as En,b as Bn,a5 as zt}from"./prepare-contract-call-B3PEXjk8.js";import{c as Cr,e as Ur,w as Rr}from"./utils-DmCacC3Z.js";import{_ as gt}from"./index-bJXcZSYa.js";import{p as Dr,k as mt,l as Hr,g as ot,j as kr,e as In}from"./to-serializable-transaction-D4JXNF6K.js";import{g as jr}from"./get-bytecode-We_Yud0L.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b8e50bb7-5e2c-4930-96c1-b2938c0baad4",e._sentryDebugIdIdentifier="sentry-dbid-b8e50bb7-5e2c-4930-96c1-b2938c0baad4")}catch{}})();/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Nt=BigInt(0),bt=BigInt(1);function ve(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function _t(e){if(!ve(e))throw new Error("Uint8Array expected")}function Se(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function Ue(e){const t=e.toString(16);return t.length&1?"0"+t:t}function An(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Nt:BigInt("0x"+e)}const Pn=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Mr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function $e(e){if(_t(e),Pn)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Mr[e[n]];return t}const ne={_0:48,_9:57,A:65,F:70,a:97,f:102};function Gt(e){if(e>=ne._0&&e<=ne._9)return e-ne._0;if(e>=ne.A&&e<=ne.F)return e-(ne.A-10);if(e>=ne.a&&e<=ne.f)return e-(ne.a-10)}function He(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Pn)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let s=0,i=0;s<n;s++,i+=2){const o=Gt(e.charCodeAt(i)),a=Gt(e.charCodeAt(i+1));if(o===void 0||a===void 0){const c=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}r[s]=o*16+a}return r}function he(e){return An($e(e))}function Sn(e){return _t(e),An($e(Uint8Array.from(e).reverse()))}function Te(e,t){return He(e.toString(16).padStart(t*2,"0"))}function $n(e,t){return Te(e,t).reverse()}function X(e,t,n){let r;if(typeof t=="string")try{r=He(t)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(ve(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=r.length;if(typeof n=="number"&&s!==n)throw new Error(e+" of length "+n+" expected, got "+s);return r}function ke(...e){let t=0;for(let r=0;r<e.length;r++){const s=e[r];_t(s),t+=s.length}const n=new Uint8Array(t);for(let r=0,s=0;r<e.length;r++){const i=e[r];n.set(i,s),s+=i.length}return n}const at=e=>typeof e=="bigint"&&Nt<=e;function Lt(e,t,n){return at(e)&&at(t)&&at(n)&&t<=e&&e<n}function we(e,t,n,r){if(!Lt(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function Vr(e){let t;for(t=0;e>Nt;e>>=bt,t+=1);return t}const We=e=>(bt<<BigInt(e))-bt,ct=e=>new Uint8Array(e),Wt=e=>Uint8Array.from(e);function qr(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=ct(e),s=ct(e),i=0;const o=()=>{r.fill(1),s.fill(0),i=0},a=(...f)=>n(s,r,...f),c=(f=ct(0))=>{s=a(Wt([0]),f),r=a(),f.length!==0&&(s=a(Wt([1]),f),r=a())},u=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let f=0;const l=[];for(;f<t;){r=a();const p=r.slice();l.push(p),f+=r.length}return ke(...l)};return(f,l)=>{o(),c(f);let p;for(;!(p=l(u()));)c();return o(),p}}const Fr={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||ve(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Ke(e,t,n={}){const r=(s,i,o)=>{const a=Fr[i];if(typeof a!="function")throw new Error("invalid validator function");const c=e[s];if(!(o&&c===void 0)&&!a(c,e))throw new Error("param "+String(s)+" is invalid. Expected "+i+", got "+c)};for(const[s,i]of Object.entries(t))r(s,i,!1);for(const[s,i]of Object.entries(n))r(s,i,!0);return e}function Kt(e){const t=new WeakMap;return(n,...r)=>{const s=t.get(n);if(s!==void 0)return s;const i=e(n,...r);return t.set(n,i),i}}function Zr(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const s=BigInt(32),i=BigInt(4294967295),o=Number(n>>s&i),a=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,a,r)}function Gr(e,t,n){return e&t^~e&n}function Wr(e,t,n){return e&t^e&n^t&n}class Kr extends ln{constructor(t,n,r,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=s,this.buffer=new Uint8Array(t),this.view=it(this.buffer)}update(t){Re(this);const{view:n,buffer:r,blockLen:s}=this;t=hn(t);const i=t.length;for(let o=0;o<i;){const a=Math.min(s-this.pos,i-o);if(a===s){const c=it(t);for(;s<=i-o;o+=s)this.process(c,o);continue}r.set(t.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===s&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Re(this),br(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:s,isLE:i}=this;let{pos:o}=this;n[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>s-o&&(this.process(r,0),o=0);for(let f=o;f<s;f++)n[f]=0;Zr(r,s-8,BigInt(this.length*8),i),this.process(r,0);const a=it(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<u;f++)a.setUint32(4*f,d[f],i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:s,finished:i,destroyed:o,pos:a}=this;return t.length=s,t.pos=a,t.finished=i,t.destroyed=o,s%n&&t.buffer.set(r),t}}const Yr=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ae=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ce=new Uint32Array(64);class Xr extends Kr{constructor(t=32){super(64,t,8,!1),this.A=ae[0]|0,this.B=ae[1]|0,this.C=ae[2]|0,this.D=ae[3]|0,this.E=ae[4]|0,this.F=ae[5]|0,this.G=ae[6]|0,this.H=ae[7]|0}get(){const{A:t,B:n,C:r,D:s,E:i,F:o,G:a,H:c}=this;return[t,n,r,s,i,o,a,c]}set(t,n,r,s,i,o,a,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=s|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(t,n){for(let f=0;f<16;f++,n+=4)ce[f]=t.getUint32(n,!1);for(let f=16;f<64;f++){const l=ce[f-15],p=ce[f-2],x=Q(l,7)^Q(l,18)^l>>>3,g=Q(p,17)^Q(p,19)^p>>>10;ce[f]=g+ce[f-7]+x+ce[f-16]|0}let{A:r,B:s,C:i,D:o,E:a,F:c,G:u,H:d}=this;for(let f=0;f<64;f++){const l=Q(a,6)^Q(a,11)^Q(a,25),p=d+l+Gr(a,c,u)+Yr[f]+ce[f]|0,g=(Q(r,2)^Q(r,13)^Q(r,22))+Wr(r,s,i)|0;d=u,u=c,c=a,a=o+p|0,o=i,i=s,s=r,r=p+g|0}r=r+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,d=d+this.H|0,this.set(r,s,i,o,a,c,u,d)}roundClean(){ce.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Qr=wr(()=>new Xr),Jr="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";function Lo(e){return e.toLowerCase()===Jr}const Co="0x0000000000000000000000000000000000000000";async function Uo(e,t){const n=await e({method:"eth_getBalance",params:[t.address,t.blockTag||"latest"]});return xr(n)}async function Ro({client:e,walletAddress:t,email:n,phone:r,id:s,externalWalletAddress:i,ecosystem:o}){if(!e.secretKey)throw new Error("A secret key is required to query for users. If you're making this request from the server, please add a secret key to your client.");const a=new URL(`${Cr("inAppWallet")}/api/2023-11-30/embedded-wallet/user-details`);if(t)a.searchParams.set("queryBy","walletAddress"),a.searchParams.set("walletAddress",t);else if(n)a.searchParams.set("queryBy","email"),a.searchParams.set("email",n);else if(r)a.searchParams.set("queryBy","phone"),a.searchParams.set("phone",r);else if(s)a.searchParams.set("queryBy","id"),a.searchParams.set("id",s);else if(i)a.searchParams.set("queryBy","externalWalletAddress"),a.searchParams.set("externalWalletAddress",i);else throw new Error("Please provide a walletAddress, email, phone, id, or externalWalletAddress to query for users.");const u=await Ur(e,o)(a.toString());if(!u.ok){const f=await u.text().catch(()=>"Unknown error");throw new Error(`Failed to get profiles. ${u.status} ${u.statusText}: ${f}`)}return(await u.json()).map(f=>({createdAt:f.createdAt,email:f.email,phone:f.phone,profiles:f.linkedAccounts.map(l=>({details:l.details,type:l.type==="siwe"?"wallet":l.type})),smartAccountAddress:f.smartAccountAddress,userId:f.userId,walletAddress:f.walletAddress}))[0]||null}function es(e){for(const t of e)if(typeof t!="string")return!1;return!0}function ts(e){return es(e)?Dr(e):e}function K(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=vr(yt(e));return n==="Bytes"?r:ie(r)}class ns extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const rs={checksum:new ns(8192)},ut=rs.checksum;function Tn(e,t={}){const{compressed:n}=t,{prefix:r,x:s,y:i}=e;if(n===!1||typeof s=="bigint"&&typeof i=="bigint"){if(r!==4)throw new Yt({prefix:r,cause:new us});return}if(n===!0||typeof s=="bigint"&&typeof i>"u"){if(r!==3&&r!==2)throw new Yt({prefix:r,cause:new cs});return}throw new as({publicKey:e})}function ss(e){const t=(()=>{if(pn(e))return On(e);if(Er(e))return is(e);const{prefix:n,x:r,y:s}=e;return typeof r=="bigint"&&typeof s=="bigint"?{prefix:n??4,x:r,y:s}:{prefix:n,x:r}})();return Tn(t),t}function is(e){return On(ie(e))}function On(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new fs({publicKey:e});if(e.length===130){const r=BigInt(F(e,0,32)),s=BigInt(F(e,32,64));return{prefix:4,x:r,y:s}}if(e.length===132){const r=Number(F(e,0,1)),s=BigInt(F(e,1,33)),i=BigInt(F(e,33,65));return{prefix:r,x:s,y:i}}const t=Number(F(e,0,1)),n=BigInt(F(e,1,33));return{prefix:t,x:n}}function os(e,t={}){Tn(e);const{prefix:n,x:r,y:s}=e,{includePrefix:i=!0}=t;return H(i?v(n,{size:1}):"0x",v(r,{size:32}),typeof s=="bigint"?v(s,{size:32}):"0x")}class as extends P{constructor({publicKey:t}){super(`Value \`${Fe(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class Yt extends P{constructor({prefix:t,cause:n}){super(`Prefix "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class cs extends P{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class us extends P{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let fs=class extends P{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${M(Ze(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const ds=/^0x[a-fA-F0-9]{40}$/;function ee(e,t={}){const{strict:n=!0}=t;if(!ds.test(e))throw new wt({address:e,cause:new zn});if(n){if(e.toLowerCase()===e)return;if(Ct(e)!==e)throw new wt({address:e,cause:new ps})}}function Ct(e){if(ut.has(e))return ut.get(e);ee(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=K(yn(t),{as:"Bytes"}),r=t.split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());const s=`0x${r.join("")}`;return ut.set(e,s),s}function ls(e,t={}){const{checksum:n=!1}=t;return ee(e),n?Ct(e):e}function hs(e,t={}){const n=K(`0x${os(e).slice(4)}`).substring(26);return ls(`0x${n}`,t)}function je(e,t={}){const{strict:n=!0}=t??{};try{return ee(e,{strict:n}),!0}catch{return!1}}class wt extends P{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class zn extends P{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class ps extends P{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function xt(e){let t=!0,n="",r=0,s="",i=!1;for(let o=0;o<e.length;o++){const a=e[o];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function","error",""].includes(s))s="";else if(s+=a,a===")"){i=!0;break}continue}if(a===" "){e[o-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}s+=a,n+=a}}if(!i)throw new P("Unable to normalize signature.");return s}function vt(e,t){const n=typeof e,r=t.type;switch(r){case"address":return je(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((s,i)=>vt(Object.values(e)[i],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(s=>vt(s,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Nn(e,t,n){for(const r in e){const s=e[r],i=t[r];if(s.type==="tuple"&&i.type==="tuple"&&"components"in s&&"components"in i)return Nn(s.components,i.components,n[r]);const o=[s.type,i.type];if(o.includes("address")&&o.includes("bytes20")?!0:o.includes("address")&&o.includes("string")?je(n[r],{strict:!1}):o.includes("address")&&o.includes("bytes")?je(n[r],{strict:!1}):!1)return o}}function ys(e,t={}){const{prepare:n=!0}=t,r=Array.isArray(e)?Ft(e):typeof e=="string"?Ft(e):e;return{...r,...n?{hash:be(r)}:{}}}function gs(e,t,n){const{args:r=[],prepare:s=!0}=n??{},i=pn(t,{strict:!1}),o=e.filter(u=>i?u.type==="function"||u.type==="error"?_n(u)===F(t,0,4):u.type==="event"?be(u)===t:!1:"name"in u&&u.name===t);if(o.length===0)throw new Me({name:t});if(o.length===1)return{...o[0],...s?{hash:be(o[0])}:{}};let a;for(const u of o){if(!("inputs"in u))continue;if(!r||r.length===0){if(!u.inputs||u.inputs.length===0)return{...u,...s?{hash:be(u)}:{}};continue}if(!u.inputs||u.inputs.length===0||u.inputs.length!==r.length)continue;if(r.every((f,l)=>{const p="inputs"in u&&u.inputs[l];return p?vt(f,p):!1})){if(a&&"inputs"in a&&a.inputs){const f=Nn(u.inputs,a.inputs,r);if(f)throw new bs({abiItem:u,type:f[0]},{abiItem:a,type:f[1]})}a=u}}const c=(()=>{if(a)return a;const[u,...d]=o;return{...u,overloads:d}})();if(!c)throw new Me({name:t});return{...c,...s?{hash:be(c)}:{}}}function _n(e){return F(be(e),0,4)}function ms(e){const t=typeof e=="string"?e:mt(e);return xt(t)}function be(e){return typeof e!="string"&&"hash"in e&&e.hash?e.hash:K(Ge(ms(e)))}class bs extends P{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${xt(mt(t.abiItem))}\`, and`,`\`${n.type}\` in \`${xt(mt(n.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Me extends P{constructor({name:t,data:n,type:r="item"}){const s=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${r}${s} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}class ws extends P{constructor({data:t}){super(`Selector size is invalid. Expected 4 bytes. Received ${M(t)} bytes ("${t}").`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}const xs=/^(.*)\[([0-9]*)\]$/,Ln=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ut=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Ho=2n**96n-1n,Xt=2n**256n-1n;function xe(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=Ht(t.type);if(i){const[o,a]=i;return Es(e,{...t,type:a},{checksumAddress:r,length:o,staticPosition:s})}if(t.type==="tuple")return Ps(e,t,{checksumAddress:r,staticPosition:s});if(t.type==="address")return vs(e,{checksum:r});if(t.type==="bool")return Bs(e);if(t.type.startsWith("bytes"))return Is(e,t,{staticPosition:s});if(t.type.startsWith("uint")||t.type.startsWith("int"))return As(e,t);if(t.type==="string")return Ss(e,{staticPosition:s});throw new kt(t.type)}const Qt=32,Et=32;function vs(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(i=>n?Ct(i):i)(ie(Br(r,-20))),32]}function Es(e,t,n){const{checksumAddress:r,length:s,staticPosition:i}=n;if(!s){const c=J(e.readBytes(Et)),u=i+c,d=u+Qt;e.setPosition(u);const f=J(e.readBytes(Qt)),l=Oe(t);let p=0;const x=[];for(let g=0;g<f;++g){e.setPosition(d+(l?g*32:p));const[h,m]=xe(e,t,{checksumAddress:r,staticPosition:d});p+=m,x.push(h)}return e.setPosition(i+32),[x,32]}if(Oe(t)){const c=J(e.readBytes(Et)),u=i+c,d=[];for(let f=0;f<s;++f){e.setPosition(u+f*32);const[l]=xe(e,t,{checksumAddress:r,staticPosition:u});d.push(l)}return e.setPosition(i+32),[d,32]}let o=0;const a=[];for(let c=0;c<s;++c){const[u,d]=xe(e,t,{checksumAddress:r,staticPosition:i+o});o+=d,a.push(u)}return[a,o]}function Bs(e){return[gn(e.readBytes(32),{size:32}),32]}function Is(e,t,{staticPosition:n}){const[r,s]=t.type.split("bytes");if(!s){const o=J(e.readBytes(32));e.setPosition(n+o);const a=J(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];const c=e.readBytes(a);return e.setPosition(n+32),[ie(c),32]}return[ie(e.readBytes(Number.parseInt(s),32)),32]}function As(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256"),s=e.readBytes(32);return[r>48?mn(s,{signed:n}):J(s,{signed:n}),32]}function Ps(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=t.components.length===0||t.components.some(({name:c})=>!c),o=i?[]:{};let a=0;if(Oe(t)){const c=J(e.readBytes(Et)),u=s+c;for(let d=0;d<t.components.length;++d){const f=t.components[d];e.setPosition(u+a);const[l,p]=xe(e,f,{checksumAddress:r,staticPosition:u});a+=p,o[i?d:f==null?void 0:f.name]=l}return e.setPosition(s+32),[o,32]}for(let c=0;c<t.components.length;++c){const u=t.components[c],[d,f]=xe(e,u,{checksumAddress:r,staticPosition:s});o[i?c:u==null?void 0:u.name]=d,a+=f}return[o,a]}function Ss(e,{staticPosition:t}){const n=J(e.readBytes(32)),r=t+n;e.setPosition(r);const s=J(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const i=e.readBytes(s,32),o=bn(Ir(i));return e.setPosition(t+32),[o,32]}function $s({checksumAddress:e,parameters:t,values:n}){const r=[];for(let s=0;s<t.length;s++)r.push(Rt({checksumAddress:e,parameter:t[s],value:n[s]}));return r}function Rt({checksumAddress:e=!1,parameter:t,value:n}){const r=t,s=Ht(r.type);if(s){const[i,o]=s;return Os(n,{checksumAddress:e,length:i,parameter:{...r,type:o}})}if(r.type==="tuple")return Cs(n,{checksumAddress:e,parameter:r});if(r.type==="address")return Ts(n,{checksum:e});if(r.type==="bool")return Ns(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const i=r.type.startsWith("int"),[,,o="256"]=Ut.exec(r.type)??[];return _s(n,{signed:i,size:Number(o)})}if(r.type.startsWith("bytes"))return zs(n,{type:r.type});if(r.type==="string")return Ls(n);throw new kt(r.type)}function Dt(e){let t=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?t+=32:t+=M(a)}const n=[],r=[];let s=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?(n.push(v(t+s,{size:32})),r.push(a),s+=M(a)):n.push(a)}return H(...n,...r)}function Ts(e,t){const{checksum:n=!1}=t;return ee(e,{strict:n}),{dynamic:!1,encoded:Ae(e.toLowerCase())}}function Os(e,t){const{checksumAddress:n,length:r,parameter:s}=t,i=r===null;if(!Array.isArray(e))throw new Vs(e);if(!i&&e.length!==r)throw new Ms({expectedLength:r,givenLength:e.length,type:`${s.type}[${r}]`});let o=!1;const a=[];for(let c=0;c<e.length;c++){const u=Rt({checksumAddress:n,parameter:s,value:e[c]});u.dynamic&&(o=!0),a.push(u)}if(i||o){const c=Dt(a);if(i){const u=v(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?H(u,c):u}}if(o)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:H(...a.map(({encoded:c})=>c))}}function zs(e,{type:t}){const[,n]=t.split("bytes"),r=M(e);if(!n){let s=e;return r%32!==0&&(s=Pe(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:H(Ae(v(r,{size:32})),s)}}if(r!==Number.parseInt(n))throw new Un({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:Pe(e)}}function Ns(e){if(typeof e!="boolean")throw new P(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ae(wn(e))}}function _s(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-r-1n:0n;if(e>r||e<s)throw new Ar({max:r.toString(),min:s.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:v(e,{size:32,signed:t})}}function Ls(e){const t=Ge(e),n=Math.ceil(M(t)/32),r=[];for(let s=0;s<n;s++)r.push(Pe(F(t,s*32,(s+1)*32)));return{dynamic:!0,encoded:H(Pe(v(M(t),{size:32})),...r)}}function Cs(e,t){const{checksumAddress:n,parameter:r}=t;let s=!1;const i=[];for(let o=0;o<r.components.length;o++){const a=r.components[o],c=Array.isArray(e)?o:a.name,u=Rt({checksumAddress:n,parameter:a,value:e[c]});i.push(u),u.dynamic&&(s=!0)}return{dynamic:s,encoded:s?Dt(i):H(...i.map(({encoded:o})=>o))}}function Ht(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function Oe(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(Oe);const n=Ht(e.type);return!!(n&&Oe({...e,type:n[1]}))}const Us={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Ds({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Rs({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Jt({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Jt({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Cn(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(Us);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class Jt extends P{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class Rs extends P{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class Ds extends P{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function Hs(e,t,n={}){const{as:r="Array",checksumAddress:s=!1}=n,i=typeof t=="string"?Tt(t):t,o=Cn(i);if(Ce(i)===0&&e.length>0)throw new js;if(Ce(i)&&Ce(i)<32)throw new ks({data:typeof t=="string"?t:ie(t),parameters:e,size:Ce(i)});let a=0;const c=r==="Array"?[]:{};for(let u=0;u<e.length;++u){const d=e[u];o.setPosition(a);const[f,l]=xe(o,d,{checksumAddress:s,staticPosition:0});a+=l,r==="Array"?c.push(f):c[d.name??u]=f}return c}function Ye(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new Rn({expectedLength:e.length,givenLength:t.length});const s=$s({checksumAddress:r,parameters:e,values:t}),i=Dt(s);return i.length===0?"0x":i}function Bt(e,t){if(e.length!==t.length)throw new Rn({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const s=e[r],i=t[r];n.push(Bt.encode(s,i))}return H(...n)}(function(e){function t(n,r,s=!1){if(n==="address"){const c=r;return ee(c),Ae(c.toLowerCase(),s?32:0)}if(n==="string")return Ge(r);if(n==="bytes")return r;if(n==="bool")return Ae(wn(r),s?32:1);const i=n.match(Ut);if(i){const[c,u,d="256"]=i,f=Number.parseInt(d)/8;return v(r,{size:s?32:f,signed:u==="int"})}const o=n.match(Ln);if(o){const[c,u]=o;if(Number.parseInt(u)!==(r.length-2)/2)throw new Un({expectedSize:Number.parseInt(u),value:r});return Pe(r,s?32:0)}const a=n.match(xs);if(a&&Array.isArray(r)){const[c,u]=a,d=[];for(let f=0;f<r.length;f++)d.push(t(u,r[f],!0));return d.length===0?"0x":H(...d)}throw new kt(n)}e.encode=t})(Bt||(Bt={}));class ks extends P{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${Hr(n)})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class js extends P{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class Ms extends P{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}let Un=class extends P{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${M(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}};class Rn extends P{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
|
|
3
3
|
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class Vs extends P{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class kt extends P{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function qs(e,t){var s;const{bytecode:n,args:r}=t;return H(n,(s=e.inputs)!=null&&s.length&&(r!=null&&r.length)?Ye(e.inputs,r):"0x")}function Fs(e){const t=e.find(n=>n.type==="constructor");if(!t)throw new Me({name:"constructor"});return t}function jo(e,t){const{overloads:n}=e;if(M(t)<4)throw new ws({data:t});if(e.inputs.length===0)return;const r=n?jt([e,...n],t):e;if(!(M(t)<=4))return Hs(r.inputs,F(t,4))}function Zs(e,...t){const{overloads:n}=e,r=n?jt([e,...n],e.name,{args:t[0]}):e,s=Gs(r),i=t.length>0?Ye(r.inputs,t[0]):void 0;return i?H(s,i):s}function Mo(e,t={}){return ys(e,t)}function jt(e,t,n){const r=gs(e,t,n);if(r.type!=="function")throw new Me({name:t,type:"function"});return r}function Gs(e){return _n(e)}function Mt(e){if(!e||e.length===0)return[];const t=[];for(const{address:n,storageKeys:r}of e){for(let s=0;s<r.length;s++)if(M(r[s])!==32)throw new Ws({storageKey:r[s]});n&&ee(n,{strict:!1}),t.push([n,r])}return t}class Ws extends P{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${M(t)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccessList.InvalidStorageKeySizeError"})}}function Ks(e,t){const{as:n}=t,r=Dn(e),s=Cn(new Uint8Array(r.length));return r.encode(s),n==="Hex"?ie(s.bytes):s.bytes}function Ne(e,t={}){const{as:n="Hex"}=t;return Ks(e,{as:n})}function Dn(e){return Array.isArray(e)?Ys(e.map(t=>Dn(t))):Xs(e)}function Ys(e){const t=e.reduce((s,i)=>s+i.length,0),n=Hn(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:i}of e)i(s)}}}function Xs(e){const t=typeof e=="string"?Tt(e):e,n=Hn(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function Hn(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new P("Length is too large.")}class kn extends ln{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,Pr(t);const r=hn(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,i=new Uint8Array(s);i.set(r.length>s?t.create().update(r).digest():r);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=t.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),i.fill(0)}update(t){return Re(this),this.iHash.update(t),this}digestInto(t){Re(this),Sr(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:s,destroyed:i,blockLen:o,outputLen:a}=this;return t=t,t.finished=s,t.destroyed=i,t.blockLen=o,t.outputLen=a,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const jn=(e,t,n)=>new kn(e,t).update(n).digest();jn.create=(e,t)=>new kn(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const D=BigInt(0),C=BigInt(1),le=BigInt(2),Qs=BigInt(3),It=BigInt(4),en=BigInt(5),tn=BigInt(8);function Z(e,t){const n=e%t;return n>=D?n:t+n}function Js(e,t,n){if(t<D)throw new Error("invalid exponent, negatives unsupported");if(n<=D)throw new Error("invalid modulus");if(n===C)return D;let r=C;for(;t>D;)t&C&&(r=r*e%n),e=e*e%n,t>>=C;return r}function W(e,t,n){let r=e;for(;t-- >D;)r*=r,r%=n;return r}function At(e,t){if(e===D)throw new Error("invert: expected non-zero number");if(t<=D)throw new Error("invert: expected positive modulus, got "+t);let n=Z(e,t),r=t,s=D,i=C;for(;n!==D;){const a=r/n,c=r%n,u=s-i*a;r=n,n=c,s=i,i=u}if(r!==C)throw new Error("invert: does not exist");return Z(s,t)}function ei(e){const t=(e-C)/le;let n,r,s;for(n=e-C,r=0;n%le===D;n/=le,r++);for(s=le;s<e&&Js(s,t,e)!==e-C;s++)if(s>1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const o=(e+C)/It;return function(c,u){const d=c.pow(u,o);if(!c.eql(c.sqr(d),u))throw new Error("Cannot find square root");return d}}const i=(n+C)/le;return function(a,c){if(a.pow(c,t)===a.neg(a.ONE))throw new Error("Cannot find square root");let u=r,d=a.pow(a.mul(a.ONE,s),n),f=a.pow(c,i),l=a.pow(c,n);for(;!a.eql(l,a.ONE);){if(a.eql(l,a.ZERO))return a.ZERO;let p=1;for(let g=a.sqr(l);p<u&&!a.eql(g,a.ONE);p++)g=a.sqr(g);const x=a.pow(d,C<<BigInt(u-p-1));d=a.sqr(x),f=a.mul(f,x),l=a.mul(l,d),u=p}return f}}function ti(e){if(e%It===Qs){const t=(e+C)/It;return function(r,s){const i=r.pow(s,t);if(!r.eql(r.sqr(i),s))throw new Error("Cannot find square root");return i}}if(e%tn===en){const t=(e-en)/tn;return function(r,s){const i=r.mul(s,le),o=r.pow(i,t),a=r.mul(s,o),c=r.mul(r.mul(a,le),o),u=r.mul(a,r.sub(c,r.ONE));if(!r.eql(r.sqr(u),s))throw new Error("Cannot find square root");return u}}return ei(e)}const ni=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ri(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=ni.reduce((r,s)=>(r[s]="function",r),t);return Ke(e,n)}function si(e,t,n){if(n<D)throw new Error("invalid exponent, negatives unsupported");if(n===D)return e.ONE;if(n===C)return t;let r=e.ONE,s=t;for(;n>D;)n&C&&(r=e.mul(r,s)),s=e.sqr(s),n>>=C;return r}function ii(e,t){const n=new Array(t.length),r=t.reduce((i,o,a)=>e.is0(o)?i:(n[a]=i,e.mul(i,o)),e.ONE),s=e.inv(r);return t.reduceRight((i,o,a)=>e.is0(o)?i:(n[a]=e.mul(i,n[a]),e.mul(i,o)),s),n}function Mn(e,t){const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Vn(e,t,n=!1,r={}){if(e<=D)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:s,nByteLength:i}=Mn(e,t);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let o;const a=Object.freeze({ORDER:e,isLE:n,BITS:s,BYTES:i,MASK:We(s),ZERO:D,ONE:C,create:c=>Z(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof c);return D<=c&&c<e},is0:c=>c===D,isOdd:c=>(c&C)===C,neg:c=>Z(-c,e),eql:(c,u)=>c===u,sqr:c=>Z(c*c,e),add:(c,u)=>Z(c+u,e),sub:(c,u)=>Z(c-u,e),mul:(c,u)=>Z(c*u,e),pow:(c,u)=>si(a,c,u),div:(c,u)=>Z(c*At(u,e),e),sqrN:c=>c*c,addN:(c,u)=>c+u,subN:(c,u)=>c-u,mulN:(c,u)=>c*u,inv:c=>At(c,e),sqrt:r.sqrt||(c=>(o||(o=ti(e)),o(a,c))),invertBatch:c=>ii(a,c),cmov:(c,u,d)=>d?u:c,toBytes:c=>n?$n(c,i):Te(c,i),fromBytes:c=>{if(c.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+c.length);return n?Sn(c):he(c)}});return Object.freeze(a)}function qn(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function Fn(e){const t=qn(e);return t+Math.ceil(t/2)}function oi(e,t,n=!1){const r=e.length,s=qn(t),i=Fn(t);if(r<16||r<i||r>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+r);const o=n?Sn(e):he(e),a=Z(o,t-C)+C;return n?$n(a,s):Te(a,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const nn=BigInt(0),Pt=BigInt(1);function ft(e,t){const n=t.negate();return e?n:t}function Zn(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function dt(e,t){Zn(e,t);const n=Math.ceil(t/e)+1,r=2**(e-1),s=2**e,i=We(e),o=BigInt(e);return{windows:n,windowSize:r,mask:i,maxNumber:s,shiftBy:o}}function rn(e,t,n){const{windowSize:r,mask:s,maxNumber:i,shiftBy:o}=n;let a=Number(e&s),c=e>>o;a>r&&(a-=i,c+=Pt);const u=t*r,d=u+Math.abs(a)-1,f=a===0,l=a<0,p=t%2!==0;return{nextN:c,offset:d,isZero:f,isNeg:l,isNegF:p,offsetF:u}}function ai(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error("invalid point at index "+r)})}function ci(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+r)})}const lt=new WeakMap,Gn=new WeakMap;function ht(e){return Gn.get(e)||1}function ui(e,t){return{constTimeNegate:ft,hasPrecomputes(n){return ht(n)!==1},unsafeLadder(n,r,s=e.ZERO){let i=n;for(;r>nn;)r&Pt&&(s=s.add(i)),i=i.double(),r>>=Pt;return s},precomputeWindow(n,r){const{windows:s,windowSize:i}=dt(r,t),o=[];let a=n,c=a;for(let u=0;u<s;u++){c=a,o.push(c);for(let d=1;d<i;d++)c=c.add(a),o.push(c);a=c.double()}return o},wNAF(n,r,s){let i=e.ZERO,o=e.BASE;const a=dt(n,t);for(let c=0;c<a.windows;c++){const{nextN:u,offset:d,isZero:f,isNeg:l,isNegF:p,offsetF:x}=rn(s,c,a);s=u,f?o=o.add(ft(p,r[x])):i=i.add(ft(l,r[d]))}return{p:i,f:o}},wNAFUnsafe(n,r,s,i=e.ZERO){const o=dt(n,t);for(let a=0;a<o.windows&&s!==nn;a++){const{nextN:c,offset:u,isZero:d,isNeg:f}=rn(s,a,o);if(s=c,!d){const l=r[u];i=i.add(f?l.negate():l)}}return i},getPrecomputes(n,r,s){let i=lt.get(r);return i||(i=this.precomputeWindow(r,n),n!==1&<.set(r,s(i))),i},wNAFCached(n,r,s){const i=ht(n);return this.wNAF(i,this.getPrecomputes(i,n,s),r)},wNAFCachedUnsafe(n,r,s,i){const o=ht(n);return o===1?this.unsafeLadder(n,r,i):this.wNAFUnsafe(o,this.getPrecomputes(o,n,s),r,i)},setWindowSize(n,r){Zn(r,t),Gn.set(n,r),lt.delete(n)}}}function fi(e,t,n,r){if(ai(n,e),ci(r,t),n.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const s=e.ZERO,i=Vr(BigInt(n.length)),o=i>12?i-3:i>4?i-2:i?2:1,a=We(o),c=new Array(Number(a)+1).fill(s),u=Math.floor((t.BITS-1)/o)*o;let d=s;for(let f=u;f>=0;f-=o){c.fill(s);for(let p=0;p<r.length;p++){const x=r[p],g=Number(x>>BigInt(f)&a);c[g]=c[g].add(n[p])}let l=s;for(let p=c.length-1,x=s;p>0;p--)x=x.add(c[p]),l=l.add(x);if(d=d.add(l),f!==0)for(let p=0;p<o;p++)d=d.double()}return d}function Wn(e){return ri(e.Fp),Ke(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Mn(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function sn(e){e.lowS!==void 0&&Se("lowS",e.lowS),e.prehash!==void 0&&Se("prehash",e.prehash)}function di(e){const t=Wn(e);Ke(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:s}=t;if(n){if(!r.eql(s,r.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...t})}class li extends Error{constructor(t=""){super(t)}}const re={Err:li,_tlv:{encode:(e,t)=>{const{Err:n}=re;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const r=t.length/2,s=Ue(r);if(s.length/2&128)throw new n("tlv.encode: long form length too big");const i=r>127?Ue(s.length/2|128):"";return Ue(e)+i+s+t},decode(e,t){const{Err:n}=re;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const s=t[r++],i=!!(s&128);let o=0;if(!i)o=s;else{const c=s&127;if(!c)throw new n("tlv.decode(long): indefinite length not supported");if(c>4)throw new n("tlv.decode(long): byte length is too big");const u=t.subarray(r,r+c);if(u.length!==c)throw new n("tlv.decode: length bytes not complete");if(u[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const d of u)o=o<<8|d;if(r+=c,o<128)throw new n("tlv.decode(long): not minimal encoding")}const a=t.subarray(r,r+o);if(a.length!==o)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(r+o)}}},_int:{encode(e){const{Err:t}=re;if(e<se)throw new t("integer: negative integers are not allowed");let n=Ue(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=re;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return he(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=re,s=X("signature",e),{v:i,l:o}=r.decode(48,s);if(o.length)throw new t("invalid signature: left bytes after parsing");const{v:a,l:c}=r.decode(2,i),{v:u,l:d}=r.decode(2,c);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(a),s:n.decode(u)}},hexFromSig(e){const{_tlv:t,_int:n}=re,r=t.encode(2,n.encode(e.r)),s=t.encode(2,n.encode(e.s)),i=r+s;return t.encode(48,i)}},se=BigInt(0),R=BigInt(1);BigInt(2);const on=BigInt(3);BigInt(4);function hi(e){const t=di(e),{Fp:n}=t,r=Vn(t.n,t.nBitLength),s=t.toBytes||((g,h,m)=>{const E=h.toAffine();return ke(Uint8Array.from([4]),n.toBytes(E.x),n.toBytes(E.y))}),i=t.fromBytes||(g=>{const h=g.subarray(1),m=n.fromBytes(h.subarray(0,n.BYTES)),E=n.fromBytes(h.subarray(n.BYTES,2*n.BYTES));return{x:m,y:E}});function o(g){const{a:h,b:m}=t,E=n.sqr(g),B=n.mul(E,g);return n.add(n.add(B,n.mul(g,h)),m)}if(!n.eql(n.sqr(t.Gy),o(t.Gx)))throw new Error("bad generator point: equation left != right");function a(g){return Lt(g,R,t.n)}function c(g){const{allowedPrivateKeyLengths:h,nByteLength:m,wrapPrivateKey:E,n:B}=t;if(h&&typeof g!="bigint"){if(ve(g)&&(g=$e(g)),typeof g!="string"||!h.includes(g.length))throw new Error("invalid private key");g=g.padStart(m*2,"0")}let O;try{O=typeof g=="bigint"?g:he(X("private key",g,m))}catch{throw new Error("invalid private key, expected hex or "+m+" bytes, got "+typeof g)}return E&&(O=Z(O,B)),we("private key",O,R,B),O}function u(g){if(!(g instanceof l))throw new Error("ProjectivePoint expected")}const d=Kt((g,h)=>{const{px:m,py:E,pz:B}=g;if(n.eql(B,n.ONE))return{x:m,y:E};const O=g.is0();h==null&&(h=O?n.ONE:n.inv(B));const N=n.mul(m,h),T=n.mul(E,h),I=n.mul(B,h);if(O)return{x:n.ZERO,y:n.ZERO};if(!n.eql(I,n.ONE))throw new Error("invZ was invalid");return{x:N,y:T}}),f=Kt(g=>{if(g.is0()){if(t.allowInfinityPoint&&!n.is0(g.py))return;throw new Error("bad point: ZERO")}const{x:h,y:m}=g.toAffine();if(!n.isValid(h)||!n.isValid(m))throw new Error("bad point: x or y not FE");const E=n.sqr(m),B=o(h);if(!n.eql(E,B))throw new Error("bad point: equation left != right");if(!g.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class l{constructor(h,m,E){if(h==null||!n.isValid(h))throw new Error("x required");if(m==null||!n.isValid(m))throw new Error("y required");if(E==null||!n.isValid(E))throw new Error("z required");this.px=h,this.py=m,this.pz=E,Object.freeze(this)}static fromAffine(h){const{x:m,y:E}=h||{};if(!h||!n.isValid(m)||!n.isValid(E))throw new Error("invalid affine point");if(h instanceof l)throw new Error("projective point not allowed");const B=O=>n.eql(O,n.ZERO);return B(m)&&B(E)?l.ZERO:new l(m,E,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(h){const m=n.invertBatch(h.map(E=>E.pz));return h.map((E,B)=>E.toAffine(m[B])).map(l.fromAffine)}static fromHex(h){const m=l.fromAffine(i(X("pointHex",h)));return m.assertValidity(),m}static fromPrivateKey(h){return l.BASE.multiply(c(h))}static msm(h,m){return fi(l,r,h,m)}_setWindowSize(h){x.setWindowSize(this,h)}assertValidity(){f(this)}hasEvenY(){const{y:h}=this.toAffine();if(n.isOdd)return!n.isOdd(h);throw new Error("Field doesn't support isOdd")}equals(h){u(h);const{px:m,py:E,pz:B}=this,{px:O,py:N,pz:T}=h,I=n.eql(n.mul(m,T),n.mul(O,B)),$=n.eql(n.mul(E,T),n.mul(N,B));return I&&$}negate(){return new l(this.px,n.neg(this.py),this.pz)}double(){const{a:h,b:m}=t,E=n.mul(m,on),{px:B,py:O,pz:N}=this;let T=n.ZERO,I=n.ZERO,$=n.ZERO,A=n.mul(B,B),k=n.mul(O,O),L=n.mul(N,N),_=n.mul(B,O);return _=n.add(_,_),$=n.mul(B,N),$=n.add($,$),T=n.mul(h,$),I=n.mul(E,L),I=n.add(T,I),T=n.sub(k,I),I=n.add(k,I),I=n.mul(T,I),T=n.mul(_,T),$=n.mul(E,$),L=n.mul(h,L),_=n.sub(A,L),_=n.mul(h,_),_=n.add(_,$),$=n.add(A,A),A=n.add($,A),A=n.add(A,L),A=n.mul(A,_),I=n.add(I,A),L=n.mul(O,N),L=n.add(L,L),A=n.mul(L,_),T=n.sub(T,A),$=n.mul(L,k),$=n.add($,$),$=n.add($,$),new l(T,I,$)}add(h){u(h);const{px:m,py:E,pz:B}=this,{px:O,py:N,pz:T}=h;let I=n.ZERO,$=n.ZERO,A=n.ZERO;const k=t.a,L=n.mul(t.b,on);let _=n.mul(m,O),G=n.mul(E,N),y=n.mul(B,T),b=n.add(m,E),w=n.add(O,N);b=n.mul(b,w),w=n.add(_,G),b=n.sub(b,w),w=n.add(m,B);let S=n.add(O,T);return w=n.mul(w,S),S=n.add(_,y),w=n.sub(w,S),S=n.add(E,B),I=n.add(N,T),S=n.mul(S,I),I=n.add(G,y),S=n.sub(S,I),A=n.mul(k,w),I=n.mul(L,y),A=n.add(I,A),I=n.sub(G,A),A=n.add(G,A),$=n.mul(I,A),G=n.add(_,_),G=n.add(G,_),y=n.mul(k,y),w=n.mul(L,w),G=n.add(G,y),y=n.sub(_,y),y=n.mul(k,y),w=n.add(w,y),_=n.mul(G,w),$=n.add($,_),_=n.mul(S,w),I=n.mul(b,I),I=n.sub(I,_),_=n.mul(b,G),A=n.mul(S,A),A=n.add(A,_),new l(I,$,A)}subtract(h){return this.add(h.negate())}is0(){return this.equals(l.ZERO)}wNAF(h){return x.wNAFCached(this,h,l.normalizeZ)}multiplyUnsafe(h){const{endo:m,n:E}=t;we("scalar",h,se,E);const B=l.ZERO;if(h===se)return B;if(this.is0()||h===R)return this;if(!m||x.hasPrecomputes(this))return x.wNAFCachedUnsafe(this,h,l.normalizeZ);let{k1neg:O,k1:N,k2neg:T,k2:I}=m.splitScalar(h),$=B,A=B,k=this;for(;N>se||I>se;)N&R&&($=$.add(k)),I&R&&(A=A.add(k)),k=k.double(),N>>=R,I>>=R;return O&&($=$.negate()),T&&(A=A.negate()),A=new l(n.mul(A.px,m.beta),A.py,A.pz),$.add(A)}multiply(h){const{endo:m,n:E}=t;we("scalar",h,R,E);let B,O;if(m){const{k1neg:N,k1:T,k2neg:I,k2:$}=m.splitScalar(h);let{p:A,f:k}=this.wNAF(T),{p:L,f:_}=this.wNAF($);A=x.constTimeNegate(N,A),L=x.constTimeNegate(I,L),L=new l(n.mul(L.px,m.beta),L.py,L.pz),B=A.add(L),O=k.add(_)}else{const{p:N,f:T}=this.wNAF(h);B=N,O=T}return l.normalizeZ([B,O])[0]}multiplyAndAddUnsafe(h,m,E){const B=l.BASE,O=(T,I)=>I===se||I===R||!T.equals(B)?T.multiplyUnsafe(I):T.multiply(I),N=O(this,m).add(O(h,E));return N.is0()?void 0:N}toAffine(h){return d(this,h)}isTorsionFree(){const{h,isTorsionFree:m}=t;if(h===R)return!0;if(m)return m(l,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h,clearCofactor:m}=t;return h===R?this:m?m(l,this):this.multiplyUnsafe(t.h)}toRawBytes(h=!0){return Se("isCompressed",h),this.assertValidity(),s(l,this,h)}toHex(h=!0){return Se("isCompressed",h),$e(this.toRawBytes(h))}}l.BASE=new l(t.Gx,t.Gy,n.ONE),l.ZERO=new l(n.ZERO,n.ONE,n.ZERO);const p=t.nBitLength,x=ui(l,t.endo?Math.ceil(p/2):p);return{CURVE:t,ProjectivePoint:l,normPrivateKeyToScalar:c,weierstrassEquation:o,isWithinCurveOrder:a}}function pi(e){const t=Wn(e);return Ke(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function yi(e){const t=pi(e),{Fp:n,n:r}=t,s=n.BYTES+1,i=2*n.BYTES+1;function o(y){return Z(y,r)}function a(y){return At(y,r)}const{ProjectivePoint:c,normPrivateKeyToScalar:u,weierstrassEquation:d,isWithinCurveOrder:f}=hi({...t,toBytes(y,b,w){const S=b.toAffine(),z=n.toBytes(S.x),U=ke;return Se("isCompressed",w),w?U(Uint8Array.from([b.hasEvenY()?2:3]),z):U(Uint8Array.from([4]),z,n.toBytes(S.y))},fromBytes(y){const b=y.length,w=y[0],S=y.subarray(1);if(b===s&&(w===2||w===3)){const z=he(S);if(!Lt(z,R,n.ORDER))throw new Error("Point is not on curve");const U=d(z);let V;try{V=n.sqrt(U)}catch(Y){const q=Y instanceof Error?": "+Y.message:"";throw new Error("Point is not on curve"+q)}const j=(V&R)===R;return(w&1)===1!==j&&(V=n.neg(V)),{x:z,y:V}}else if(b===i&&w===4){const z=n.fromBytes(S.subarray(0,n.BYTES)),U=n.fromBytes(S.subarray(n.BYTES,2*n.BYTES));return{x:z,y:U}}else{const z=s,U=i;throw new Error("invalid Point, expected length of "+z+", or uncompressed "+U+", got "+b)}}}),l=y=>$e(Te(y,t.nByteLength));function p(y){const b=r>>R;return y>b}function x(y){return p(y)?o(-y):y}const g=(y,b,w)=>he(y.slice(b,w));class h{constructor(b,w,S){we("r",b,R,r),we("s",w,R,r),this.r=b,this.s=w,S!=null&&(this.recovery=S),Object.freeze(this)}static fromCompact(b){const w=t.nByteLength;return b=X("compactSignature",b,w*2),new h(g(b,0,w),g(b,w,2*w))}static fromDER(b){const{r:w,s:S}=re.toSig(X("DER",b));return new h(w,S)}assertValidity(){}addRecoveryBit(b){return new h(this.r,this.s,b)}recoverPublicKey(b){const{r:w,s:S,recovery:z}=this,U=T(X("msgHash",b));if(z==null||![0,1,2,3].includes(z))throw new Error("recovery id invalid");const V=z===2||z===3?w+t.n:w;if(V>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const j=(z&1)===0?"02":"03",te=c.fromHex(j+l(V)),Y=a(V),q=o(-U*Y),pe=o(S*Y),oe=c.BASE.multiplyAndAddUnsafe(te,q,pe);if(!oe)throw new Error("point at infinify");return oe.assertValidity(),oe}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new h(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return He(this.toDERHex())}toDERHex(){return re.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return He(this.toCompactHex())}toCompactHex(){return l(this.r)+l(this.s)}}const m={isValidPrivateKey(y){try{return u(y),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const y=Fn(t.n);return oi(t.randomBytes(y),t.n)},precompute(y=8,b=c.BASE){return b._setWindowSize(y),b.multiply(BigInt(3)),b}};function E(y,b=!0){return c.fromPrivateKey(y).toRawBytes(b)}function B(y){const b=ve(y),w=typeof y=="string",S=(b||w)&&y.length;return b?S===s||S===i:w?S===2*s||S===2*i:y instanceof c}function O(y,b,w=!0){if(B(y))throw new Error("first arg must be private key");if(!B(b))throw new Error("second arg must be public key");return c.fromHex(b).multiply(u(y)).toRawBytes(w)}const N=t.bits2int||function(y){if(y.length>8192)throw new Error("input is too large");const b=he(y),w=y.length*8-t.nBitLength;return w>0?b>>BigInt(w):b},T=t.bits2int_modN||function(y){return o(N(y))},I=We(t.nBitLength);function $(y){return we("num < 2^"+t.nBitLength,y,se,I),Te(y,t.nByteLength)}function A(y,b,w=k){if(["recovered","canonical"].some(fe=>fe in w))throw new Error("sign() legacy options not supported");const{hash:S,randomBytes:z}=t;let{lowS:U,prehash:V,extraEntropy:j}=w;U==null&&(U=!0),y=X("msgHash",y),sn(w),V&&(y=X("prehashed msgHash",S(y)));const te=T(y),Y=u(b),q=[$(Y),$(te)];if(j!=null&&j!==!1){const fe=j===!0?z(n.BYTES):j;q.push(X("extraEntropy",fe))}const pe=ke(...q),oe=te;function rt(fe){const ye=N(fe);if(!f(ye))return;const st=a(ye),Ee=c.BASE.multiply(ye).toAffine(),de=o(Ee.x);if(de===se)return;const Be=o(st*o(oe+de*Y));if(Be===se)return;let Ie=(Ee.x===de?0:2)|Number(Ee.y&R),ge=Be;return U&&p(Be)&&(ge=x(Be),Ie^=1),new h(de,ge,Ie)}return{seed:pe,k2sig:rt}}const k={lowS:t.lowS,prehash:!1},L={lowS:t.lowS,prehash:!1};function _(y,b,w=k){const{seed:S,k2sig:z}=A(y,b,w),U=t;return qr(U.hash.outputLen,U.nByteLength,U.hmac)(S,z)}c.BASE._setWindowSize(8);function G(y,b,w,S=L){var Ie;const z=y;b=X("msgHash",b),w=X("publicKey",w);const{lowS:U,prehash:V,format:j}=S;if(sn(S),"strict"in S)throw new Error("options.strict was renamed to lowS");if(j!==void 0&&j!=="compact"&&j!=="der")throw new Error("format must be compact or der");const te=typeof z=="string"||ve(z),Y=!te&&!j&&typeof z=="object"&&z!==null&&typeof z.r=="bigint"&&typeof z.s=="bigint";if(!te&&!Y)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let q,pe;try{if(Y&&(q=new h(z.r,z.s)),te){try{j!=="compact"&&(q=h.fromDER(z))}catch(ge){if(!(ge instanceof re.Err))throw ge}!q&&j!=="der"&&(q=h.fromCompact(z))}pe=c.fromHex(w)}catch{return!1}if(!q||U&&q.hasHighS())return!1;V&&(b=t.hash(b));const{r:oe,s:rt}=q,fe=T(b),ye=a(rt),st=o(fe*ye),Ee=o(oe*ye),de=(Ie=c.BASE.multiplyAndAddUnsafe(pe,st,Ee))==null?void 0:Ie.toAffine();return de?o(de.x)===oe:!1}return{CURVE:t,getPublicKey:E,getSharedSecret:O,sign:_,verify:G,ProjectivePoint:c,Signature:h,utils:m}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function gi(e){return{hash:e,hmac:(t,...n)=>jn(e,t,Tr(...n)),randomBytes:$r}}function mi(e,t){const n=r=>yi({...e,...gi(r)});return{...n(t),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Kn=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),an=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),bi=BigInt(1),St=BigInt(2),cn=(e,t)=>(e+t/St)/t;function wi(e){const t=Kn,n=BigInt(3),r=BigInt(6),s=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),c=BigInt(88),u=e*e*e%t,d=u*u*e%t,f=W(d,n,t)*d%t,l=W(f,n,t)*d%t,p=W(l,St,t)*u%t,x=W(p,s,t)*p%t,g=W(x,i,t)*x%t,h=W(g,a,t)*g%t,m=W(h,c,t)*h%t,E=W(m,a,t)*g%t,B=W(E,n,t)*d%t,O=W(B,o,t)*x%t,N=W(O,r,t)*u%t,T=W(N,St,t);if(!$t.eql($t.sqr(T),e))throw new Error("Cannot find square root");return T}const $t=Vn(Kn,void 0,void 0,{sqrt:wi}),Xe=mi({a:BigInt(0),b:BigInt(7),Fp:$t,n:an,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=an,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-bi*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,o=BigInt("0x100000000000000000000000000000000"),a=cn(i*e,t),c=cn(-r*e,t);let u=Z(e-a*n-c*s,t),d=Z(-a*r-c*i,t);const f=u>o,l=d>o;if(f&&(u=t-u),l&&(d=t-d),u>o||d>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:f,k1:u,k2neg:l,k2:d}}}},Qr);BigInt(0);Xe.ProjectivePoint;function Yn(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new pt({signature:e});if(typeof e.s>"u")throw new pt({signature:e});if(n&&typeof e.yParity>"u")throw new pt({signature:e});if(e.r<0n||e.r>Xt)throw new Pi({value:e.r});if(e.s<0n||e.s>Xt)throw new Si({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new et({value:e.yParity})}function xi(e){return Xn(ie(e))}function Xn(e){if(e.length!==130&&e.length!==132)throw new Ai({signature:e});const t=BigInt(F(e,0,32)),n=BigInt(F(e,32,64)),r=(()=>{const s=+`0x${e.slice(130)}`;if(!Number.isNaN(s))try{return Je(s)}catch{throw new et({value:s})}})();return typeof r>"u"?{r:t,s:n}:{r:t,s:n,yParity:r}}function _e(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return vi(e)}function vi(e){const t=typeof e=="string"?Xn(e):e instanceof Uint8Array?xi(e):typeof e.r=="string"?Ei(e):e.v?Qn(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return Yn(t),t}function Qn(e){return{r:e.r,s:e.s,yParity:Je(e.v)}}function Ei(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof r!="number"&&(r=Je(n)),typeof r!="number")throw new et({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function Bi(e){Yn(e);const t=e.r,n=e.s;return H(v(t,{size:32}),v(n,{size:32}),typeof e.yParity=="number"?v(Jn(e.yParity),{size:1}):"0x")}function Ii(e){const{r:t,s:n,yParity:r}=e;return{r:v(t,{size:32}),s:v(n,{size:32}),yParity:r===0?"0x0":"0x1"}}function Qe(e){const{r:t,s:n,yParity:r}=e;return[r?"0x01":"0x",t===0n?"0x":De(v(t)),n===0n?"0x":De(v(n))]}function Je(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new er({value:e})}function Jn(e){if(e===0)return 27;if(e===1)return 28;throw new et({value:e})}class Ai extends P{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${M(Ze(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class pt extends P{constructor({signature:t}){super(`Signature \`${Fe(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class Pi extends P{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class Si extends P{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class et extends P{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class er extends P{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function Vo(e,t={}){return typeof e.chainId=="string"?$i(e):{...e,...t.signature}}function $i(e){const{address:t,chainId:n,nonce:r}=e,s=_e(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...s}}function qo(e){return Ti(e)}function Ti(e){return K(H("0x05",Ne(tr(e))))}function Oi(e){const{address:t,chainId:n,nonce:r,...s}=e;return{address:t,chainId:v(n),nonce:v(r),...Ii(s)}}function Fo(e){return e.map(Oi)}function tr(e){const{address:t,chainId:n,nonce:r}=e,s=_e(e);return[n?v(n):"0x",t,r?v(r):"0x",...s?Qe(s):[]]}function zi(e){if(!e||e.length===0)return[];const t=[];for(const n of e)t.push(tr(n));return t}let Ni=!1;function Zo(e={}){const{as:t="Hex"}=e,n=Xe.utils.randomPrivateKey();return t==="Hex"?ie(n):n}function Go(e){return hs(_i(e))}function _i(e){const{payload:t,signature:n}=e,{r,s,yParity:i}=n,a=new Xe.Signature(BigInt(r),BigInt(s)).addRecoveryBit(i).recoverPublicKey(Ze(t).substring(2));return ss(a)}function Li(e){const{extraEntropy:t=Ni,hash:n,payload:r,privateKey:s}=e,{r:i,s:o,recovery:a}=Xe.sign(yt(r),yt(s),{extraEntropy:typeof t=="boolean"?t:Ze(t).slice(2),lowS:!0,...n?{prehash:!0}:{}});return{r:i,s:o,yParity:a}}const un={wei:0,gwei:9,szabo:12,finney:15,ether:18};function Ci(e,t=0){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[s,i]=[n.slice(0,n.length-t),n.slice(n.length-t)];return i=i.replace(/(0+)$/,""),`${r?"-":""}${s||"0"}${i?`.${i}`:""}`}function Ve(e,t="wei"){return Ci(e,un.gwei-un[t])}function Wo(e,t=0){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new Ui({value:e});let[n="",r="0"]=e.split(".");const s=n.startsWith("-");if(s&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),t===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){const[i,o,a]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],c=Math.round(+`${o}.${a}`);c>9?r=`${BigInt(i)+BigInt(1)}0`.padStart(i.length+1,"0"):r=`${i}${c}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${s?"-":""}${n}${r}`)}class Ui extends P{constructor({value:t}){super(`Value \`${t}\` is not a valid decimal number.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalNumberError"})}}class Ri extends P{constructor({feeCap:t}={}){super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${t?` = ${Ve(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.FeeCapTooHighError"})}}class nr extends P{constructor({gasPrice:t}={}){super(`The gas price (\`gasPrice\`${t?` = ${Ve(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.GasPriceTooHighError"})}}class tt extends P{constructor({chainId:t}){super(typeof t<"u"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidChainIdError"})}}class Di extends P{constructor({maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${Ve(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Ve(n)} gwei`:""}).`].join(`
|
|
4
4
|
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.TipAboveFeeCapError"})}}function rr(e){const{chainId:t,gasPrice:n,to:r}=e;if(r&&ee(r,{strict:!1}),typeof t<"u"&&t<=0)throw new tt({chainId:t});if(n&&BigInt(n)>2n**256n-1n)throw new nr({gasPrice:n})}function Hi(e,t={}){const{chainId:n=0,gas:r,data:s,input:i,nonce:o,to:a,value:c,gasPrice:u}=e;rr(e);let d=[o?v(o):"0x",u?v(u):"0x",r?v(r):"0x",a??"0x",c?v(c):"0x",s??i??"0x"];const f=(()=>{if(t.signature)return{r:t.signature.r,s:t.signature.s,v:Jn(t.signature.yParity)};if(!(typeof e.r>"u"||typeof e.s>"u"))return{r:e.r,s:e.s,v:e.v}})();if(f){const l=(()=>{if(f.v>=35)return Math.floor((f.v-35)/2)>0?f.v:27+(f.v===35?0:1);if(n>0)return n*2+35+f.v-27;const p=27+(f.v===27?0:1);if(f.v!==p)throw new er({value:f.v});return p})();d=[...d,v(l),f.r===0n?"0x":De(v(f.r)),f.s===0n?"0x":De(v(f.s))]}else n>0&&(d=[...d,v(n),"0x","0x"]);return Ne(d)}const ki="0x02";function Vt(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:s}=e;if(t<=0)throw new tt({chainId:t});if(s&&ee(s,{strict:!1}),r&&BigInt(r)>2n**256n-1n)throw new Ri({feeCap:r});if(n&&r&&n>r)throw new Di({maxFeePerGas:r,maxPriorityFeePerGas:n})}function ji(e,t={}){const{chainId:n,gas:r,nonce:s,to:i,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:u,data:d,input:f}=e;Vt(e);const l=Mt(u),p=_e(t.signature||e),x=[v(n),s?v(s):"0x",c?v(c):"0x",a?v(a):"0x",r?v(r):"0x",i??"0x",o?v(o):"0x",d??f??"0x",l,...p?Qe(p):[]];return H(ki,Ne(x))}function sr(e){const{chainId:t,gasPrice:n,to:r}=e;if(t<=0)throw new tt({chainId:t});if(r&&ee(r,{strict:!1}),n&&BigInt(n)>2n**256n-1n)throw new nr({gasPrice:n})}function Mi(e,t={}){const{chainId:n,gas:r,data:s,input:i,nonce:o,to:a,value:c,accessList:u,gasPrice:d}=e;sr(e);const f=Mt(u),l=_e(t.signature||e),p=[v(n),o?v(o):"0x",d?v(d):"0x",r?v(r):"0x",a??"0x",c?v(c):"0x",s??i??"0x",f,...l?Qe(l):[]];return H("0x01",Ne(p))}const Vi="0x04";function ir(e){const{authorizationList:t}=e;if(t)for(const n of t){const{address:r,chainId:s}=n;if(r&&ee(r,{strict:!1}),Number(s)<0)throw new tt({chainId:s})}Vt(e)}function qi(e,t={}){const{authorizationList:n,chainId:r,gas:s,nonce:i,to:o,value:a,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:f,input:l}=e;ir(e);const p=Mt(d),x=zi(n),g=_e(t.signature||e),h=[v(r),i?v(i):"0x",u?v(u):"0x",c?v(c):"0x",s?v(s):"0x",o??"0x",a?v(a):"0x",f??l??"0x",p,x,...g?Qe(g):[]];return H(Vi,Ne(h))}function or(e){const{domain:t,message:n,primaryType:r,types:s}=e,i=(o,a)=>{for(const c of o){const{name:u,type:d}=c,f=a[u],l=d.match(Ut);if(l&&(typeof f=="number"||typeof f=="bigint")){const[,g,h]=l;v(f,{signed:g==="int",size:Number.parseInt(h??"")/8})}if(d==="address"&&typeof f=="string"&&!je(f))throw new wt({address:f,cause:new zn});const p=d.match(Ln);if(p){const[,g]=p;if(g&&M(f)!==Number.parseInt(g))throw new Wi({expectedSize:Number.parseInt(g),givenSize:M(f)})}const x=s[d];x&&(Ji(d),i(x,f))}};if(s.EIP712Domain&&t){if(typeof t!="object")throw new Ki({domain:t});i(s.EIP712Domain,t)}if(r!=="EIP712Domain")if(s[r])i(s[r],n);else throw new Yi({primaryType:r,types:s})}function Fi(e){const{domain:t={},message:n,primaryType:r}=e,s={EIP712Domain:nt(t),...e.types};or({domain:t,message:n,primaryType:r,types:s});const i=["0x19","0x01"];return t&&i.push(ar({domain:t,types:s})),r!=="EIP712Domain"&&i.push(cr({data:n,primaryType:r,types:s})),H(...i)}function Zi(e){const{primaryType:t,types:n}=e;let r="";const s=dr({primaryType:t,types:n});s.delete(t);const i=[t,...Array.from(s).sort()];for(const o of i)r+=`${o}(${(n[o]??[]).map(({name:a,type:c})=>`${c} ${a}`).join(",")})`;return r}function nt(e){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},typeof(e==null?void 0:e.chainId)=="number"&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function Ko(e){return K(Fi(e))}function ar(e){const{domain:t,types:n}=e;return cr({data:t,primaryType:"EIP712Domain",types:{...n,EIP712Domain:(n==null?void 0:n.EIP712Domain)||nt(t)}})}function cr(e){const{data:t,primaryType:n,types:r}=e,s=ur({data:t,primaryType:n,types:r});return K(s)}function Yo(e){const{domain:t,message:n,primaryType:r,types:s}=e,i=(c,u)=>{const d={...u};for(const f of c){const{name:l,type:p}=f;p==="address"&&(d[l]=d[l].toLowerCase())}return d},o=(()=>{if(!t)return{};const c=s.EIP712Domain??nt(t);return i(c,t)})(),a=(()=>{if(r!=="EIP712Domain")return s[r]?i(s[r],n):{}})();return Fe({domain:o,message:a,primaryType:r,types:s},(c,u)=>typeof u=="bigint"?u.toString():u)}function Gi(e){try{return or(e),!0}catch{return!1}}class Wi extends P{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TypedData.BytesSizeMismatchError"})}}class Ki extends P{constructor({domain:t}){super(`Invalid domain "${Fe(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TypedData.InvalidDomainError"})}}class Yi extends P{constructor({primaryType:t,types:n}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(n))}\`.`,{metaMessages:["Check that the primary type is a key in `types`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TypedData.InvalidPrimaryTypeError"})}}class Xi extends P{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TypedData.InvalidStructTypeError"})}}function ur(e){const{data:t,primaryType:n,types:r}=e,s=[{type:"bytes32"}],i=[Qi({primaryType:n,types:r})];for(const o of r[n]??[]){const[a,c]=fr({types:r,name:o.name,type:o.type,value:t[o.name]});s.push(a),i.push(c)}return Ye(s,i)}function Qi(e){const{primaryType:t,types:n}=e,r=Ge(Zi({primaryType:t,types:n}));return K(r)}function fr(e){let{types:t,name:n,type:r,value:s}=e;if(t[r]!==void 0)return[{type:"bytes32"},K(ur({data:s,primaryType:r,types:t}))];if(r==="bytes")return s=`0x${(s.length%2?"0":"")+s.slice(2)}`,[{type:"bytes32"},K(s,{as:"Hex"})];if(r==="string")return[{type:"bytes32"},K(yn(s),{as:"Hex"})];if(r.lastIndexOf("]")===r.length-1){const i=r.slice(0,r.lastIndexOf("[")),o=s.map(a=>fr({name:n,type:i,types:t,value:a}));return[{type:"bytes32"},K(Ye(o.map(([a])=>a),o.map(([,a])=>a)))]}return[{type:r},s]}function dr(e,t=new Set){const{primaryType:n,types:r}=e,s=n.match(/^\w*/u),i=s==null?void 0:s[0];if(t.has(i)||r[i]===void 0)return t;t.add(i);for(const o of r[i])dr({primaryType:o.type,types:r},t);return t}function Ji(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new Xi({type:e})}function fn(e){const{transaction:t}=e,n=eo(t),r=(()=>{if(e.signature)return"v"in e.signature&&typeof e.signature.v<"u"?Qn({r:me(e.signature.r),s:me(e.signature.s),v:Number(e.signature.v)}):{r:me(e.signature.r),s:me(e.signature.s),yParity:e.signature.yParity};if(!(typeof t.v>"u"&&typeof t.yParity>"u")){if(t.r===void 0||t.s===void 0)throw new Error("Invalid signature provided with transaction");return{r:typeof t.r=="bigint"?t.r:me(t.r),s:typeof t.s=="bigint"?t.s:me(t.s),yParity:typeof t.v<"u"&&typeof t.yParity>"u"?Je(Number(t.v)):Number(t.yParity)}}})();if(n==="eip1559"){const s=t;return Vt(s),ji(s,{signature:r})}if(n==="legacy"){const s=t;return rr(s),Hi(s,{signature:r})}if(n==="eip2930"){const s=t;return sr(s),Mi(s,{signature:r})}if(n==="eip7702"){const s=t;return ir(s),qi(s,{signature:r})}throw new Error("Invalid transaction type")}function eo(e){if(typeof e.type<"u")return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new Error("Invalid transaction type")}function Xo({transaction:e,privateKey:t}){const n=fn({transaction:e}),r=Li({payload:K(n),privateKey:t});return fn({transaction:{...e,...r}})}function to(e,t){const n=typeof t=="string"?{to:t}:t;switch(n.to){case"number":return so(e,n);case"bigint":return no(e,n);case"boolean":return ro(e,n);case"string":return io(e,n);default:return Or(e,n)}}function no(e,t={}){return mn(e,t)}function ro(e,t={}){return gn(e,t)}function so(e,t={}){return J(e,t)}function io(e,t={}){return bn(e,t)}function lr(e){return H(...e)}const Qo=Object.freeze(Object.defineProperty({__proto__:null,concatHex:lr},Symbol.toStringTag,{value:"Module"})),oo="0x6492649264926492649264926492649264926492649264926492649264926492",ao="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",co=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];function uo(e){if(F(e,-32)!==oo)throw new lo(e)}function fo(e){try{return uo(e),!0}catch{return!1}}class lo extends P{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WrappedSignature.InvalidWrappedSignatureError"})}}const ho="0x1626ba7e",po=[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],yo=[{type:"bytes4"}];async function go(e){return xn({contract:e.contract,method:[ho,po,yo],params:[e.hash,e.signature]})}const dn=new WeakSet;async function Le(e){if(dn.has(e))return!0;const n=await jr(e)!=="0x";return n&&dn.add(e),n}const mo=Object.freeze(Object.defineProperty({__proto__:null,isContractDeployed:Le},Symbol.toStringTag,{value:"Module"})),bo="0x6492649264926492649264926492649264926492649264926492649264926492";function qt({address:e,data:t,signature:n}){return lr([ze([{type:"address"},{type:"bytes"},{type:"bytes"}],[e,t,n]),bo])}const wo="0xfB688330379976DA81eB64Fe4BF50d7401763B9C";async function Jo({hash:e,signature:t,address:n,client:r,chain:s,accountFactory:i}){const o=(()=>{if(Ot(t))return t;if(typeof t=="object"&&"r"in t&&"s"in t)return Bi(t);if(t instanceof Uint8Array)return to(t,"hex");throw new Error(`Invalid signature type for signature ${t}: ${typeof t}`)})();if(await Le(ot({address:n,chain:s,client:r}))&&await qe({contract:ot({address:n,chain:s,client:r}),hash:e,signature:o}).catch(x=>(console.error("Error verifying EIP-1271 signature",x),!1)))return!0;const c=await(async()=>!i||fo(o)?o:qt({address:i.address,data:i.verificationCalldata,signature:o}))();let u;const d=await kr(s),f=ts(co);if(d)u={data:Zs(jt(f,"isValidSig"),[n,e,c]),to:wo};else{const p=Fs(f);u={data:qs(p,{args:[n,e,c],bytecode:ao})}}const l=zr({chain:s,client:r});try{const p=await Nr(l,u);return _r(p)}catch{return!!await qe({contract:ot({address:n,chain:s,client:r}),hash:e,signature:o}).catch(x=>(console.error("Error verifying EIP-1271 signature",x),!1))}}const xo="0x1626ba7e";async function qe({hash:e,signature:t,contract:n}){try{return await go({contract:n,hash:e,signature:t})===xo}catch(r){return console.error("Error verifying EIP-1271 signature",r),!1}}const vo=`Ethereum Signed Message:
|
|
5
|
-
`;function Eo(e,t){const n=typeof e=="string"?Zt(e):e.raw instanceof Uint8Array?e.raw:Lr(e.raw),r=Zt(`${vo}${n.length}`);return ue(vn(r,n),t)}function Bo(e){const{domain:t={},message:n,primaryType:r}=e,s={EIP712Domain:nt(t),...e.types};Gi({domain:t,message:n,primaryType:r,types:s});const i=["0x1901"];if(t&&i.push(ar({domain:t,types:s})),r!=="EIP712Domain"){const o=(()=>{const a=hr({data:n,primaryType:r,types:s});return ue(a)})();i.push(o)}return ue(vn(...i.map(o=>Tt(o))))}function hr({data:e,primaryType:t,types:n}){const r=[{type:"bytes32"}],s=[Io({primaryType:t,types:n})];if(!n[t])throw new Error("Invalid types");for(const i of n[t]){const[o,a]=yr({name:i.name,type:i.type,types:n,value:e[i.name]});r.push(o),s.push(a)}return ze(r,s)}function Io({primaryType:e,types:t}){const n=En(Ao({primaryType:e,types:t}));return ue(n)}function Ao({primaryType:e,types:t}){let n="";const r=pr({primaryType:e,types:t});r.delete(e);const s=[e,...Array.from(r).sort()];for(const i of s){if(!t[i])throw new Error("Invalid types");n+=`${i}(${t[i].map(({name:o,type:a})=>`${a} ${o}`).join(",")})`}return n}function pr({primaryType:e,types:t},n=new Set){const r=e.match(/^\w*/u),s=r==null?void 0:r[0];if(n.has(s)||t[s]===void 0)return n;n.add(s);for(const i of t[s])pr({primaryType:i.type,types:t},n);return n}function yr({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:"bytes32"},ue(hr({data:r,primaryType:n,types:e}))];if(n==="bytes")return r=`0x${(r.length%2?"0":"")+r.slice(2)}`,[{type:"bytes32"},ue(r)];if(n==="string")return[{type:"bytes32"},ue(En(r))];if(n.lastIndexOf("]")===n.length-1){const s=n.slice(0,n.lastIndexOf("[")),i=r.map(o=>yr({name:t,type:s,types:e,value:o}));return[{type:"bytes32"},ue(ze(i.map(([o])=>o),i.map(([,o])=>o)))]}return[{type:n},r]}async function ea(e){const{factoryContract:t,predictAddressOverride:n,adminAddress:r,accountSalt:s,accountAddress:i}=e;if(n)return n(t,r);if(i)return i;if(!r)throw new Error("Account address is required to predict the smart wallet address.");return Rr(async()=>{const o=s&&Ot(s)?s:Bn(s??"");let a,c=0;const u=3;for(;c<=u;)try{a=await xn({contract:t,method:"function getAddress(address, bytes) returns (address)",params:[r,o]});break}catch(d){if(c===u)throw d;const f=2**(c+1)*200;await new Promise(l=>setTimeout(l,f)),c++}if(!a)throw new Error(`No smart account address found for admin address ${r} and salt ${s}`);return a},{cacheKey:`${e.factoryContract.chain.id}-${e.factoryContract.address}-${e.adminAddress}-${e.accountSalt}`,cacheTime:1e3*60*60*24})}function gr(e){const{adminAddress:t,factoryContract:n,createAccountOverride:r,accountSalt:s}=e;if(r)return r(n,t);const i=s&&Ot(s)?s:Bn(s??"");return zt({contract:n,method:"function createAccount(address, bytes) returns (address)",params:[t,i]})}function ta(e){const{accountContract:t,transaction:n,executeOverride:r}=e;if(r)return r(t,n);let s=n.value||0n;return(n.chainId===295||n.chainId===296)&&(s=BigInt(s)/BigInt(10**10)),zt({contract:t,gas:n.gas?n.gas+21000n:void 0,method:"function execute(address, uint256, bytes)",params:[n.to||"",s,n.data||"0x"]})}function na(e){var o;const{accountContract:t,transactions:n,executeBatchOverride:r}=e;if(r)return r(t,n);let s=n.map(a=>a.value||0n);const i=(o=n[0])==null?void 0:o.chainId;return(i===295||i===296)&&(s=s.map(a=>BigInt(a)/BigInt(10**10))),zt({contract:t,method:"function executeBatch(address[], uint256[], bytes[])",params:[n.map(a=>a.to||""),s,n.map(a=>a.data||"0x")]})}async function Po({accountContract:e,factoryContract:t,options:n,message:r}){var c,u;const s=Eo(r);let i;const o=ze([{type:"bytes32"}],[s]);if(i=await n.personalAccount.signTypedData({domain:{chainId:n.chain.id,name:"Account",verifyingContract:e.address,version:"1"},message:{message:o},primaryType:"AccountMessage",types:{AccountMessage:[{name:"message",type:"bytes"}]}}),await Le(e)){if(await qe({contract:e,hash:s,signature:i}))return i;throw new Error("Failed to verify signature")}else{const d=gr({accountSalt:(c=n.overrides)==null?void 0:c.accountSalt,adminAddress:n.personalAccount.address,createAccountOverride:(u=n.overrides)==null?void 0:u.createAccount,factoryContract:t});if(!d)throw new Error("Create account override not provided");const f=await In(d);return qt({address:t.address,data:f,signature:i})}}async function So({accountContract:e,factoryContract:t,options:n,typedData:r}){var u,d,f,l,p;if(((d=(u=r.domain)==null?void 0:u.verifyingContract)==null?void 0:d.toLowerCase())===((f=e.address)==null?void 0:f.toLowerCase()))return n.personalAccount.signTypedData(r);const i=Bo(r);let o;const a=ze([{type:"bytes32"}],[i]);if(o=await n.personalAccount.signTypedData({domain:{chainId:n.chain.id,name:"Account",verifyingContract:e.address,version:"1"},message:{message:a},primaryType:"AccountMessage",types:{AccountMessage:[{name:"message",type:"bytes"}]}}),await Le(e)){if(await qe({contract:e,hash:i,signature:o}))return o;throw new Error("Failed to verify signature")}else{const x=gr({accountSalt:(l=n.overrides)==null?void 0:l.accountSalt,adminAddress:n.personalAccount.address,createAccountOverride:(p=n.overrides)==null?void 0:p.createAccount,factoryContract:t});if(!x)throw new Error("Create account override not provided");const g=await In(x);return qt({address:t.address,data:g,signature:o})}}async function mr(e){const{accountContract:t}=e,n=Date.now(),r=6e4,{isContractDeployed:s}=await gt(async()=>{const{isContractDeployed:o}=await Promise.resolve().then(()=>mo);return{isContractDeployed:o}},void 0);let i=await s(t);for(;!i;){if(Date.now()-n>r)throw new Error("Timeout: Smart account deployment not confirmed after 1 minute");await new Promise(o=>setTimeout(o,500)),i=await s(t)}}async function $o(e){const{chain:t,client:n,smartAccount:r,accountContract:s}=e;if(await Le(s))return;const[{sendTransaction:o},{prepareTransaction:a}]=await Promise.all([gt(()=>import("./send-transaction-
|
|
6
|
-
//# sourceMappingURL=signing-
|
|
5
|
+
`;function Eo(e,t){const n=typeof e=="string"?Zt(e):e.raw instanceof Uint8Array?e.raw:Lr(e.raw),r=Zt(`${vo}${n.length}`);return ue(vn(r,n),t)}function Bo(e){const{domain:t={},message:n,primaryType:r}=e,s={EIP712Domain:nt(t),...e.types};Gi({domain:t,message:n,primaryType:r,types:s});const i=["0x1901"];if(t&&i.push(ar({domain:t,types:s})),r!=="EIP712Domain"){const o=(()=>{const a=hr({data:n,primaryType:r,types:s});return ue(a)})();i.push(o)}return ue(vn(...i.map(o=>Tt(o))))}function hr({data:e,primaryType:t,types:n}){const r=[{type:"bytes32"}],s=[Io({primaryType:t,types:n})];if(!n[t])throw new Error("Invalid types");for(const i of n[t]){const[o,a]=yr({name:i.name,type:i.type,types:n,value:e[i.name]});r.push(o),s.push(a)}return ze(r,s)}function Io({primaryType:e,types:t}){const n=En(Ao({primaryType:e,types:t}));return ue(n)}function Ao({primaryType:e,types:t}){let n="";const r=pr({primaryType:e,types:t});r.delete(e);const s=[e,...Array.from(r).sort()];for(const i of s){if(!t[i])throw new Error("Invalid types");n+=`${i}(${t[i].map(({name:o,type:a})=>`${a} ${o}`).join(",")})`}return n}function pr({primaryType:e,types:t},n=new Set){const r=e.match(/^\w*/u),s=r==null?void 0:r[0];if(n.has(s)||t[s]===void 0)return n;n.add(s);for(const i of t[s])pr({primaryType:i.type,types:t},n);return n}function yr({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:"bytes32"},ue(hr({data:r,primaryType:n,types:e}))];if(n==="bytes")return r=`0x${(r.length%2?"0":"")+r.slice(2)}`,[{type:"bytes32"},ue(r)];if(n==="string")return[{type:"bytes32"},ue(En(r))];if(n.lastIndexOf("]")===n.length-1){const s=n.slice(0,n.lastIndexOf("[")),i=r.map(o=>yr({name:t,type:s,types:e,value:o}));return[{type:"bytes32"},ue(ze(i.map(([o])=>o),i.map(([,o])=>o)))]}return[{type:n},r]}async function ea(e){const{factoryContract:t,predictAddressOverride:n,adminAddress:r,accountSalt:s,accountAddress:i}=e;if(n)return n(t,r);if(i)return i;if(!r)throw new Error("Account address is required to predict the smart wallet address.");return Rr(async()=>{const o=s&&Ot(s)?s:Bn(s??"");let a,c=0;const u=3;for(;c<=u;)try{a=await xn({contract:t,method:"function getAddress(address, bytes) returns (address)",params:[r,o]});break}catch(d){if(c===u)throw d;const f=2**(c+1)*200;await new Promise(l=>setTimeout(l,f)),c++}if(!a)throw new Error(`No smart account address found for admin address ${r} and salt ${s}`);return a},{cacheKey:`${e.factoryContract.chain.id}-${e.factoryContract.address}-${e.adminAddress}-${e.accountSalt}`,cacheTime:1e3*60*60*24})}function gr(e){const{adminAddress:t,factoryContract:n,createAccountOverride:r,accountSalt:s}=e;if(r)return r(n,t);const i=s&&Ot(s)?s:Bn(s??"");return zt({contract:n,method:"function createAccount(address, bytes) returns (address)",params:[t,i]})}function ta(e){const{accountContract:t,transaction:n,executeOverride:r}=e;if(r)return r(t,n);let s=n.value||0n;return(n.chainId===295||n.chainId===296)&&(s=BigInt(s)/BigInt(10**10)),zt({contract:t,gas:n.gas?n.gas+21000n:void 0,method:"function execute(address, uint256, bytes)",params:[n.to||"",s,n.data||"0x"]})}function na(e){var o;const{accountContract:t,transactions:n,executeBatchOverride:r}=e;if(r)return r(t,n);let s=n.map(a=>a.value||0n);const i=(o=n[0])==null?void 0:o.chainId;return(i===295||i===296)&&(s=s.map(a=>BigInt(a)/BigInt(10**10))),zt({contract:t,method:"function executeBatch(address[], uint256[], bytes[])",params:[n.map(a=>a.to||""),s,n.map(a=>a.data||"0x")]})}async function Po({accountContract:e,factoryContract:t,options:n,message:r}){var c,u;const s=Eo(r);let i;const o=ze([{type:"bytes32"}],[s]);if(i=await n.personalAccount.signTypedData({domain:{chainId:n.chain.id,name:"Account",verifyingContract:e.address,version:"1"},message:{message:o},primaryType:"AccountMessage",types:{AccountMessage:[{name:"message",type:"bytes"}]}}),await Le(e)){if(await qe({contract:e,hash:s,signature:i}))return i;throw new Error("Failed to verify signature")}else{const d=gr({accountSalt:(c=n.overrides)==null?void 0:c.accountSalt,adminAddress:n.personalAccount.address,createAccountOverride:(u=n.overrides)==null?void 0:u.createAccount,factoryContract:t});if(!d)throw new Error("Create account override not provided");const f=await In(d);return qt({address:t.address,data:f,signature:i})}}async function So({accountContract:e,factoryContract:t,options:n,typedData:r}){var u,d,f,l,p;if(((d=(u=r.domain)==null?void 0:u.verifyingContract)==null?void 0:d.toLowerCase())===((f=e.address)==null?void 0:f.toLowerCase()))return n.personalAccount.signTypedData(r);const i=Bo(r);let o;const a=ze([{type:"bytes32"}],[i]);if(o=await n.personalAccount.signTypedData({domain:{chainId:n.chain.id,name:"Account",verifyingContract:e.address,version:"1"},message:{message:a},primaryType:"AccountMessage",types:{AccountMessage:[{name:"message",type:"bytes"}]}}),await Le(e)){if(await qe({contract:e,hash:i,signature:o}))return o;throw new Error("Failed to verify signature")}else{const x=gr({accountSalt:(l=n.overrides)==null?void 0:l.accountSalt,adminAddress:n.personalAccount.address,createAccountOverride:(p=n.overrides)==null?void 0:p.createAccount,factoryContract:t});if(!x)throw new Error("Create account override not provided");const g=await In(x);return qt({address:t.address,data:g,signature:o})}}async function mr(e){const{accountContract:t}=e,n=Date.now(),r=6e4,{isContractDeployed:s}=await gt(async()=>{const{isContractDeployed:o}=await Promise.resolve().then(()=>mo);return{isContractDeployed:o}},void 0);let i=await s(t);for(;!i;){if(Date.now()-n>r)throw new Error("Timeout: Smart account deployment not confirmed after 1 minute");await new Promise(o=>setTimeout(o,500)),i=await s(t)}}async function $o(e){const{chain:t,client:n,smartAccount:r,accountContract:s}=e;if(await Le(s))return;const[{sendTransaction:o},{prepareTransaction:a}]=await Promise.all([gt(()=>import("./send-transaction-DWia223-.js").then(d=>d.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),gt(()=>import("./prepare-contract-call-B3PEXjk8.js").then(d=>d.ca),__vite__mapDeps([9,10,4,2]))]),c=a({chain:t,client:n,gas:50000n,to:s.address,value:0n}),u=await o({account:r,transaction:c});return await mr({accountContract:s}),u}const ra=Object.freeze(Object.defineProperty({__proto__:null,confirmContractDeployment:mr,deploySmartAccount:$o,smartAccountSignMessage:Po,smartAccountSignTypedData:So},Symbol.toStringTag,{value:"Module"}));export{Xo as A,K as B,nt as C,Gi as D,Yo as E,qo as F,Fo as G,Li as H,Bi as I,Xe as J,Vo as K,Zo as L,mi as M,Jr as N,Vn as O,Qo as P,ra as Q,Co as Z,Le as a,ea as b,lr as c,ta as d,na as e,Qr as f,Wo as g,Mo as h,Lo as i,jo as j,Ci as k,Ko as l,Ho as m,Xn as n,no as o,gr as p,ro as q,Go as r,fn as s,so as t,io as u,Jo as v,$o as w,Uo as x,to as y,Ro as z};
|
|
6
|
+
//# sourceMappingURL=signing-BKRnKKdl.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{s as n}from"./index-
|
|
1
|
+
import{s as n}from"./index-bJXcZSYa.js";import"./react-Io5Wove7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="27be0b06-174e-4249-af8b-23267ff35a1c",e._sentryDebugIdIdentifier="sentry-dbid-27be0b06-174e-4249-af8b-23267ff35a1c")}catch{}})();const s=n.span`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
width: ${e=>e.width}px;
|
|
4
4
|
height: 1em;
|
|
5
5
|
vertical-align: -0.1em;
|
|
6
6
|
border-radius: 4px;
|
|
7
7
|
`;export{s as T};
|
|
8
|
-
//# sourceMappingURL=skeleton.styles-
|
|
8
|
+
//# sourceMappingURL=skeleton.styles-Cjpy58bn.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as I,b as c}from"./lit-element-wjYUA6aF.js";import{n as W,r as l,o as $}from"./class-map-DopF_Eyi.js";import{d as _}from"./index-
|
|
1
|
+
import{i as I,b as c}from"./lit-element-wjYUA6aF.js";import{n as W,r as l,o as $}from"./class-map-DopF_Eyi.js";import{d as _}from"./index-CtayMM8a.js";import{c as O}from"./index-D0Wlf6gr.js";import{O as A}from"./index-zkaZwO7E.js";import{e as T}from"./index-CY38y8q8.js";import{o as S,O as h,z as F,R as f,d as D,b as C,D as N,A as M,C as d,k as P,E as u,t as U,S as v,F as j,M as R,T as x}from"./W3MFrameProviderSingleton-DqaMm2mV.js";import"./index-BDJuqgxU.js";import{C as z}from"./ConstantsUtil-9orAwS_V.js";import"./index-DJXUib_8.js";import"./index-CS1VnyR1.js";import"./index-BJA_2Ynv.js";import"./index-bJXcZSYa.js";import"./react-Io5Wove7.js";import"./dcl-schemas-OH8G4Ndl.js";import"./sentry-faeuEJiQ.js";import"./ethers-DwK2TdL6.js";import"./intl-AKLEHPeO.js";import"./index-ARGrbe3A.js";import"./events-CSIN-_05.js";import"./index-CQvLWK26.js";import"./index-Cj5zg5gT.js";import"./index-OpYIGLSa.js";import"./index-DCE7JXu8.js";import"./index.es-DYbPPtM5.js";import"./browser-ponyfill-2MY_3eYQ.js";import"./NetworkUtil-BIUbrPWa.js";import"./ref-Uk7bJ2Ii.js";import"./async-directive-BF5rCMgn.js";import"./index-BPinodm9.js";import"./index-CFGlj3ri.js";import"./browser-CTTbQgwQ.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="786d8c06-b5c8-4a9e-9bce-48c4446cbc1a",t._sentryDebugIdIdentifier="sentry-dbid-786d8c06-b5c8-4a9e-9bce-48c4446cbc1a")}catch{}})();const q=_`
|
|
2
2
|
:host {
|
|
3
3
|
margin-top: ${({spacing:t})=>t[1]};
|
|
4
4
|
}
|
|
@@ -248,4 +248,4 @@ import{i as I,b as c}from"./lit-element-wjYUA6aF.js";import{n as W,r as l,o as $
|
|
|
248
248
|
<wui-icon size="sm" color="default" slot="iconRight" name="copy"></wui-icon>
|
|
249
249
|
Copy link
|
|
250
250
|
</wui-button>`}onCopyUri(){try{this.uri&&(C.copyToClopboard(this.uri),v.showSuccess("Link copied"))}catch{v.showError("Failed to copy")}}};w.styles=V;y([l()],w.prototype,"socialProvider",void 0);y([l()],w.prototype,"uri",void 0);y([l()],w.prototype,"ready",void 0);y([l()],w.prototype,"loading",void 0);y([l()],w.prototype,"remoteFeatures",void 0);w=y([O("w3m-connecting-farcaster-view")],w);export{L as W3mConnectSocialsView,w as W3mConnectingFarcasterView,m as W3mConnectingSocialView};
|
|
251
|
-
//# sourceMappingURL=socials-
|
|
251
|
+
//# sourceMappingURL=socials-CHs46oCs.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as F,g as xe}from"./react-
|
|
1
|
+
import{f as F,g as xe}from"./react-Io5Wove7.js";import{ch as Ee,cA as ae,bY as be,cB as Pe,cf as Te,cC as Re,bW as ge,bX as z,cD as ue,cE as Oe,cF as $e,cG as we,cH as Ce,j as Ae,T as Me}from"./index-bJXcZSYa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0c57d81d-f3ad-4e9f-8db9-aed103eeb024",e._sentryDebugIdIdentifier="sentry-dbid-0c57d81d-f3ad-4e9f-8db9-aed103eeb024")}catch{}})();const Fe=Object.freeze(Object.defineProperty({__proto__:null,default:Ee,isPlainObject:ae},Symbol.toStringTag,{value:"Module"})),je=Object.freeze(Object.defineProperty({__proto__:null,default:be},Symbol.toStringTag,{value:"Module"})),Ie=Object.freeze(Object.defineProperty({__proto__:null,default:Pe,private_createBreakpoints:Te,unstable_applyStyles:Re},Symbol.toStringTag,{value:"Module"})),Le=["sx"],qe=e=>{var n,a;const s={systemProps:{},otherProps:{}},d=(n=e==null||(a=e.theme)==null?void 0:a.unstable_sxConfig)!=null?n:ue;return Object.keys(e).forEach(u=>{d[u]?s.systemProps[u]=e[u]:s.otherProps[u]=e[u]}),s};function De(e){const{sx:n}=e,a=ge(e,Le),{systemProps:s,otherProps:d}=qe(a);let u;return Array.isArray(n)?u=[s,...n]:typeof n=="function"?u=(...T)=>{const v=n(...T);return ae(v)?z({},s,v):s}:u=z({},s,n),z({},d,{sx:u})}const Ne=Object.freeze(Object.defineProperty({__proto__:null,default:Oe,extendSxProp:De,unstable_createStyleFunctionSx:$e,unstable_defaultSxConfig:ue},Symbol.toStringTag,{value:"Module"}));var B={exports:{}},o={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-is.production.js
|
|
4
4
|
*
|
|
@@ -7,4 +7,4 @@ import{f as F,g as xe}from"./react-C_gdQiCE.js";import{ch as Ee,cA as ae,bY as b
|
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/var Q;function We(){if(Q)return o;Q=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),T=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),W=Symbol.for("react.view_transition"),Y=Symbol.for("react.client.reference");function p(t){if(typeof t=="object"&&t!==null){var j=t.$$typeof;switch(j){case e:switch(t=t.type,t){case a:case d:case s:case O:case $:case W:return t;default:switch(t=t&&t.$$typeof,t){case T:case v:case w:case R:return t;case u:return t;default:return j}}case n:return j}}}return o.ContextConsumer=u,o.ContextProvider=T,o.Element=e,o.ForwardRef=v,o.Fragment=a,o.Lazy=w,o.Memo=R,o.Portal=n,o.Profiler=d,o.StrictMode=s,o.Suspense=O,o.SuspenseList=$,o.isContextConsumer=function(t){return p(t)===u},o.isContextProvider=function(t){return p(t)===T},o.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===e},o.isForwardRef=function(t){return p(t)===v},o.isFragment=function(t){return p(t)===a},o.isLazy=function(t){return p(t)===w},o.isMemo=function(t){return p(t)===R},o.isPortal=function(t){return p(t)===n},o.isProfiler=function(t){return p(t)===d},o.isStrictMode=function(t){return p(t)===s},o.isSuspense=function(t){return p(t)===O},o.isSuspenseList=function(t){return p(t)===$},o.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===a||t===d||t===s||t===O||t===$||typeof t=="object"&&t!==null&&(t.$$typeof===w||t.$$typeof===R||t.$$typeof===T||t.$$typeof===u||t.$$typeof===v||t.$$typeof===Y||t.getModuleId!==void 0)},o.typeOf=p,o}var ee;function Ye(){return ee||(ee=1,B.exports=We()),B.exports}var te=Ye();const ke=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ie(e){const n=`${e}`.match(ke);return n&&n[1]||""}function le(e,n=""){return e.displayName||e.name||ie(e)||n}function re(e,n,a){const s=le(n);return e.displayName||(s!==""?`${a}(${s})`:a)}function Ve(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return le(e,"Component");if(typeof e=="object")switch(e.$$typeof){case te.ForwardRef:return re(e,e.render,"ForwardRef");case te.Memo:return re(e,e.type,"memo");default:return}}}const ze=Object.freeze(Object.defineProperty({__proto__:null,default:Ve,getFunctionName:ie},Symbol.toStringTag,{value:"Module"}));var g={},U={exports:{}},ne;function Be(){return ne||(ne=1,(function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(a){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var u in d)({}).hasOwnProperty.call(d,u)&&(a[u]=d[u])}return a},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(U)),U.exports}var G={exports:{}},oe;function Ue(){return oe||(oe=1,(function(e){function n(a,s){if(a==null)return{};var d={};for(var u in a)if({}.hasOwnProperty.call(a,u)){if(s.indexOf(u)!==-1)continue;d[u]=a[u]}return d}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(G)),G.exports}const Ge=F(we),He=F(Fe),Xe=F(je),Ze=F(ze),Je=F(Ie),Ke=F(Ne);var se;function Qe(){if(se)return g;se=1;var e=Ce();Object.defineProperty(g,"__esModule",{value:!0}),g.default=de,g.shouldForwardProp=p,g.systemDefaultTheme=void 0;var n=e(Be()),a=e(Ue()),s=w(Ge),d=He;e(Xe),e(Ze);var u=e(Je),T=e(Ke);const v=["ownerState"],O=["variants"],$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function R(r){if(typeof WeakMap!="function")return null;var l=new WeakMap,i=new WeakMap;return(R=function(c){return c?i:l})(r)}function w(r,l){if(r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var i=R(l);if(i&&i.has(r))return i.get(r);var c={__proto__:null},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in r)if(f!=="default"&&Object.prototype.hasOwnProperty.call(r,f)){var y=x?Object.getOwnPropertyDescriptor(r,f):null;y&&(y.get||y.set)?Object.defineProperty(c,f,y):c[f]=r[f]}return c.default=r,i&&i.set(r,c),c}function W(r){return Object.keys(r).length===0}function Y(r){return typeof r=="string"&&r.charCodeAt(0)>96}function p(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}function t(r,l){return l&&r&&typeof r=="object"&&r.styles&&!r.styles.startsWith("@layer")&&(r.styles=`@layer ${l}{${String(r.styles)}}`),r}const j=g.systemDefaultTheme=(0,u.default)(),fe=r=>r&&r.charAt(0).toLowerCase()+r.slice(1);function L({defaultTheme:r,theme:l,themeId:i}){return W(l)?r:l[i]||l}function ce(r){return r?(l,i)=>i[r]:null}function q(r,l,i){let{ownerState:c}=l,x=(0,a.default)(l,v);const f=typeof r=="function"?r((0,n.default)({ownerState:c},x)):r;if(Array.isArray(f))return f.flatMap(y=>q(y,(0,n.default)({ownerState:c},x),i));if(f&&typeof f=="object"&&Array.isArray(f.variants)){const{variants:y=[]}=f;let m=(0,a.default)(f,O);return y.forEach(_=>{let C=!0;if(typeof _.props=="function"?C=_.props((0,n.default)({ownerState:c},x,c)):Object.keys(_.props).forEach(E=>{(c==null?void 0:c[E])!==_.props[E]&&x[E]!==_.props[E]&&(C=!1)}),C){Array.isArray(m)||(m=[m]);const E=typeof _.style=="function"?_.style((0,n.default)({ownerState:c},x,c)):_.style;m.push(i?t((0,s.internal_serializeStyles)(E),i):E)}}),m}return i?t((0,s.internal_serializeStyles)(f),i):f}function de(r={}){const{themeId:l,defaultTheme:i=j,rootShouldForwardProp:c=p,slotShouldForwardProp:x=p}=r,f=y=>(0,T.default)((0,n.default)({},y,{theme:L((0,n.default)({},y,{defaultTheme:i,themeId:l}))}));return f.__mui_systemSx=!0,(y,k={})=>{(0,s.internal_processStyles)(y,S=>S.filter(b=>!(b!=null&&b.__mui_systemSx)));const{name:m,slot:_,skipVariantsResolver:C,skipSx:E,overridesResolver:H=ce(fe(_))}=k,pe=(0,a.default)(k,$),ye=m&&m.startsWith("Mui")||_?"components":"custom",_e=C!==void 0?C:_&&_!=="Root"&&_!=="root"||!1,me=E||!1;let Se,D=p;_==="Root"||_==="root"?D=c:_?D=x:Y(y)&&(D=void 0);const V=(0,s.default)(y,(0,n.default)({shouldForwardProp:D,label:Se},pe)),X=S=>typeof S=="function"&&S.__emotion_real!==S||(0,d.isPlainObject)(S)?b=>{const A=L({theme:b.theme,defaultTheme:i,themeId:l});return q(S,(0,n.default)({},b,{theme:A}),A.modularCssLayers?ye:void 0)}:S,Z=(S,...b)=>{let A=X(S);const I=b?b.map(X):[];m&&H&&I.push(P=>{const h=L((0,n.default)({},P,{defaultTheme:i,themeId:l}));if(!h.components||!h.components[m]||!h.components[m].styleOverrides)return null;const M=h.components[m].styleOverrides,N={};return Object.entries(M).forEach(([he,ve])=>{N[he]=q(ve,(0,n.default)({},P,{theme:h}),h.modularCssLayers?"theme":void 0)}),H(P,N)}),m&&!_e&&I.push(P=>{var h;const M=L((0,n.default)({},P,{defaultTheme:i,themeId:l})),N=M==null||(h=M.components)==null||(h=h[m])==null?void 0:h.variants;return q({variants:N},(0,n.default)({},P,{theme:M}),M.modularCssLayers?"theme":void 0)}),me||I.push(f);const J=I.length-b.length;if(Array.isArray(S)&&J>0){const P=new Array(J).fill("");A=[...S,...P],A.raw=[...S.raw,...P]}const K=V(A,...I);return y.muiName&&(K.muiName=y.muiName),K};return V.withConfig&&(Z.withConfig=V.withConfig),Z}}return g}var et=Qe();const tt=xe(et);function rt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const nt=e=>rt(e)&&e!=="classes",at=tt({themeId:Me,defaultTheme:Ae,rootShouldForwardProp:nt});export{nt as a,rt as b,De as e,Ge as r,at as s};
|
|
10
|
-
//# sourceMappingURL=styled-
|
|
10
|
+
//# sourceMappingURL=styled-3e6FPpFM.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as D,b as u}from"./lit-element-wjYUA6aF.js";import{r as l,n as m}from"./class-map-DopF_Eyi.js";import{d as C,r as N,e as V}from"./index-
|
|
1
|
+
import{i as D,b as u}from"./lit-element-wjYUA6aF.js";import{r as l,n as m}from"./class-map-DopF_Eyi.js";import{d as C,r as N,e as V}from"./index-CtayMM8a.js";import{c as E}from"./index-D0Wlf6gr.js";import"./index-DJXUib_8.js";import"./index-BDJuqgxU.js";import"./index-MZXf7D1W.js";import{C as S,N as p,d as F,E as W,R as I,b as M,M as K,l as Q,W as q}from"./W3MFrameProviderSingleton-DqaMm2mV.js";import{S as s}from"./SwapController-Cnrhnusk.js";import"./index-BJA_2Ynv.js";import"./index-DRR34LYo.js";import{M as U}from"./MathUtil-BvP0JcjY.js";import"./index-gm_D0aNI.js";import"./index-CFGlj3ri.js";import"./index-bJXcZSYa.js";import"./react-Io5Wove7.js";import"./dcl-schemas-OH8G4Ndl.js";import"./sentry-faeuEJiQ.js";import"./ethers-DwK2TdL6.js";import"./intl-AKLEHPeO.js";import"./index-ARGrbe3A.js";import"./events-CSIN-_05.js";import"./index-CQvLWK26.js";import"./index-Cj5zg5gT.js";import"./index-OpYIGLSa.js";import"./index-DCE7JXu8.js";import"./index.es-DYbPPtM5.js";import"./browser-ponyfill-2MY_3eYQ.js";import"./NetworkUtil-BIUbrPWa.js";import"./index-BPinodm9.js";import"./ref-Uk7bJ2Ii.js";import"./async-directive-BF5rCMgn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4ff41a41-6d51-42f2-be5b-3c096efb60e5",e._sentryDebugIdIdentifier="sentry-dbid-4ff41a41-6d51-42f2-be5b-3c096efb60e5")}catch{}})();const H={numericInputKeyDown(e,t,o){const i=["Backspace","Meta","Ctrl","a","A","c","C","x","X","v","V","ArrowLeft","ArrowRight","Tab"],r=e.metaKey||e.ctrlKey,n=e.key,a=n.toLocaleLowerCase(),c=a==="a",b=a==="c",$=a==="v",_=a==="x",A=n===",",R=n===".",B=n>="0"&&n<="9";!r&&(c||b||$||_)&&e.preventDefault(),t==="0"&&!A&&!R&&n==="0"&&e.preventDefault(),t==="0"&&B&&(o(n),e.preventDefault()),(A||R)&&(t||(o("0."),e.preventDefault()),(t!=null&&t.includes(".")||t!=null&&t.includes(","))&&e.preventDefault()),!B&&!i.includes(n)&&!R&&!A&&e.preventDefault()}},G=C`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
@@ -1049,4 +1049,4 @@ import{i as D,b as u}from"./lit-element-wjYUA6aF.js";import{r as l,n as m}from".
|
|
|
1049
1049
|
`)}
|
|
1050
1050
|
</wui-flex>
|
|
1051
1051
|
`:null}onSearchInputChange(t){this.searchValue=t.detail}handleSuggestedTokensScroll(){var o;const t=(o=this.renderRoot)==null?void 0:o.querySelector(".suggested-tokens-container");t&&(t.style.setProperty("--suggested-tokens-scroll--left-opacity",U.interpolate([0,100],[0,1],t.scrollLeft).toString()),t.style.setProperty("--suggested-tokens-scroll--right-opacity",U.interpolate([0,100],[0,1],t.scrollWidth-t.scrollLeft-t.offsetWidth).toString()))}handleTokenListScroll(){var o;const t=(o=this.renderRoot)==null?void 0:o.querySelector(".tokens");t&&(t.style.setProperty("--tokens-scroll--top-opacity",U.interpolate([0,100],[0,1],t.scrollTop).toString()),t.style.setProperty("--tokens-scroll--bottom-opacity",U.interpolate([0,100],[0,1],t.scrollHeight-t.scrollTop-t.offsetHeight).toString()))}filterTokensWithText(t,o){return t.filter(i=>`${i.symbol} ${i.name} ${i.address}`.toLowerCase().includes(o.toLowerCase())).sort((i,r)=>{const n=`${i.symbol} ${i.name} ${i.address}`.toLowerCase(),a=`${r.symbol} ${r.name} ${r.address}`.toLowerCase(),c=n.indexOf(o.toLowerCase()),b=a.indexOf(o.toLowerCase());return c-b})}};x.styles=re;v([l()],x.prototype,"interval",void 0);v([l()],x.prototype,"targetToken",void 0);v([l()],x.prototype,"sourceToken",void 0);v([l()],x.prototype,"sourceTokenAmount",void 0);v([l()],x.prototype,"toToken",void 0);v([l()],x.prototype,"myTokensWithBalance",void 0);v([l()],x.prototype,"popularTokens",void 0);v([l()],x.prototype,"suggestedTokens",void 0);v([l()],x.prototype,"tokensLoading",void 0);v([l()],x.prototype,"searchValue",void 0);x=v([E("w3m-swap-select-token-view")],x);export{h as W3mSwapPreviewView,x as W3mSwapSelectTokenView,d as W3mSwapView};
|
|
1052
|
-
//# sourceMappingURL=swaps-
|
|
1052
|
+
//# sourceMappingURL=swaps-BQAfj8hR.js.map
|