@dcl/shop 1.13.1-35146304116.commit-0532a2b → 1.13.1-35147466824.commit-691c71e
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-CUoq5Ec_.js → Activity-B_D0SGqX.js} +7 -7
- package/_assets/{AnimatedBackground-CkSS8iDv.js → AnimatedBackground-CwQmxOFi.js} +6 -6
- package/_assets/{Assets-SQGh-_eg.js → Assets-VVrgUxpf.js} +14 -14
- package/_assets/{Authorizations-L1Pu4suv.js → Authorizations-Bepgew8q.js} +10 -10
- package/_assets/{Cart-CyKZk7CM.js → Cart-8uayDrxo.js} +9 -9
- package/_assets/{Collection-DeDyoluW.js → Collection-GfGftuMU.js} +7 -7
- package/_assets/{CollectionCarousel-DM2JN-Og.js → CollectionCarousel-CrO5pEgo.js} +14 -14
- package/_assets/Confetti-D8VQEKfB.js +18 -0
- package/_assets/{ConstantsUtil-CzAq2JlG.js → ConstantsUtil-BQvpBpQu.js} +2 -2
- package/_assets/{ContentClient-CwohpHEJ.js → ContentClient-HMgCjCsc.js} +2 -2
- package/_assets/{Creator-CXCzrdUF.js → Creator-D-qT8exB.js} +46 -46
- package/_assets/{DeploymentBuilder-CXqgptK8.js → DeploymentBuilder-BbyLDwPt.js} +4 -4
- package/_assets/{EmotePlaybackBar-B-oE6PfU.js → EmotePlaybackBar-CaJAXuFm.js} +19 -19
- package/_assets/{ErrorNotice-BjKorbeP.js → ErrorNotice-DgLTEx75.js} +2 -2
- package/_assets/Event-F8QeIya1.js +72 -0
- package/_assets/{ExchangeController-Ca1vSNQH.js → ExchangeController-7TtAhy38.js} +2 -2
- package/_assets/{Faq-BVnO4obf.js → Faq-DGPgsE0y.js} +2 -2
- package/_assets/{GetCredits-uWqqViY_.js → GetCredits-Dy4K0Tve.js} +11 -11
- package/_assets/{Grow-EG3kvKvE.js → Grow-aL4So4Ma.js} +2 -2
- package/_assets/HelpersUtil-BQh8MsBd.js +63 -0
- package/_assets/{ItemDetail-D9wpx_7k.js → ItemDetail-DH3C6g1a.js} +33 -33
- package/_assets/LoadMore-CAovcyRj.js +8 -0
- package/_assets/{ManaPricingBanner.styles-BQp5Kq1w.js → ManaPricingBanner.styles-DlZ7ilpc.js} +3 -3
- package/_assets/{MyAssets-pm-zUWXo.js → MyAssets-A6dazeyv.js} +14 -14
- package/_assets/{MyFavorites-CrlDOLqd.js → MyFavorites-DuT_Xsaf.js} +9 -9
- package/_assets/{NetworkUtil-D5060_28.js → NetworkUtil-BtYJyuKu.js} +2 -2
- package/_assets/NotFound-C2JeBVxZ.js +18 -0
- package/_assets/{NotificationsBell--z2laYR4.js → NotificationsBell-BdWtXFrk.js} +2 -2
- package/_assets/{OutfitDetail-C45j_NQH.js → OutfitDetail-CvA6YqRb.js} +5 -5
- package/_assets/OutfitPreview-RpSf5VhQ.js +7 -0
- package/_assets/{OutfitStudio-BQAYSFVW.js → OutfitStudio-C_fP6Tdr.js} +2 -2
- package/_assets/{PhArrowCircleDown-Bmy0XPqd.js → PhArrowCircleDown-oZRgIV6I.js} +5 -5
- package/_assets/{PhArrowClockwise-Bklo7MBV.js → PhArrowClockwise-D6H6uB8s.js} +3 -3
- package/_assets/{PhArrowDown-CBjJCstB.js → PhArrowDown-CRBvhObC.js} +4 -4
- package/_assets/{PhArrowLeft-BCeYPtMx.js → PhArrowLeft-iC7ALVz_.js} +3 -3
- package/_assets/{PhArrowRight-Ch61WxZn.js → PhArrowRight-BMhSphsR.js} +4 -4
- package/_assets/{PhArrowSquareOut-Bk5nSBoz.js → PhArrowSquareOut-BGOFtcYV.js} +4 -4
- package/_assets/{PhArrowUp-CzPwFe1F.js → PhArrowUp-DaOakyLF.js} +5 -5
- package/_assets/{PhArrowUpRight-DF87CEc7.js → PhArrowUpRight-Dv-X4w2R.js} +4 -4
- package/_assets/{PhArrowsClockwise-D5XWB216.js → PhArrowsClockwise-DnI7mFlV.js} +4 -4
- package/_assets/{PhArrowsDownUp-CVtoWYS-.js → PhArrowsDownUp-BT1rp80C.js} +5 -5
- package/_assets/{PhArrowsLeftRight-Cu83Wp7y.js → PhArrowsLeftRight-3JEyJt0N.js} +3 -3
- package/_assets/{PhBank-BjB_uqsX.js → PhBank-DlTySila.js} +3 -3
- package/_assets/{PhBrowser-CW3ZGiB7.js → PhBrowser-CxUZLRbi.js} +4 -4
- package/_assets/PhCaretDown-Co8viBJv.js +15 -0
- package/_assets/{PhCaretLeft-DPSFahQA.js → PhCaretLeft-ScH02zvv.js} +4 -4
- package/_assets/PhCaretRight-CG-ZCjvT.js +15 -0
- package/_assets/{PhCaretUp-Bit2hvKo.js → PhCaretUp-SXVNZaJo.js} +4 -4
- package/_assets/{PhCheck-BHmNQJ6P.js → PhCheck-DETGkRRi.js} +3 -3
- package/_assets/{PhCircleHalf-AD4oTWoj.js → PhCircleHalf-BN36Nweh.js} +4 -4
- package/_assets/{PhClock-3t4anT3D.js → PhClock-DPd3K2DL.js} +3 -3
- package/_assets/{PhCompass-DpvhkfDj.js → PhCompass-F0g-SfuH.js} +5 -5
- package/_assets/{PhCopy-We2XYWCm.js → PhCopy-CzpD7rrG.js} +5 -5
- package/_assets/{PhCreditCard-BBnTMXbe.js → PhCreditCard-NnI7YcNP.js} +4 -4
- package/_assets/{PhCurrencyDollar-dPV4byY8.js → PhCurrencyDollar-Bst29vzW.js} +4 -4
- package/_assets/{PhDesktop-DVuLe5q1.js → PhDesktop-CFSSNEkS.js} +2 -2
- package/_assets/{PhDeviceMobile-D6knI_PD.js → PhDeviceMobile-Dd2ijltg.js} +5 -5
- package/_assets/{PhDotsThree-D_uTiViU.js → PhDotsThree-CI5y9TIg.js} +4 -4
- package/_assets/{PhEnvelope-Bkk7fDMT.js → PhEnvelope-DrQ5vbHf.js} +2 -2
- package/_assets/{PhFunnelSimple-BVx2yoJC.js → PhFunnelSimple-CI4FOzkp.js} +4 -4
- package/_assets/{PhGlobe-BUa1rAnN.js → PhGlobe-DR2SpSWA.js} +2 -2
- package/_assets/{PhIdentificationCard-D7mCEldI.js → PhIdentificationCard-5YfSRHO7.js} +3 -3
- package/_assets/{PhImage-DN8upEaC.js → PhImage-D7dVXxCI.js} +2 -2
- package/_assets/{PhInfo-BRv5JqkG.js → PhInfo-DNTh1xhU.js} +4 -4
- package/_assets/{PhLightbulb-LZ8Bksrw.js → PhLightbulb-BfCndXXI.js} +4 -4
- package/_assets/{PhMagnifyingGlass-Nlml1ksU.js → PhMagnifyingGlass-DB41rFTM.js} +2 -2
- package/_assets/{PhPaperPlaneRight-QfFyGr7O.js → PhPaperPlaneRight-D6oxeO8G.js} +4 -4
- package/_assets/{PhPlus-C6YKBVJU.js → PhPlus-B90Q_jSC.js} +3 -3
- package/_assets/{PhPower-BtHcdIUq.js → PhPower-B3OeVFPP.js} +4 -4
- package/_assets/{PhPuzzlePiece-D5mYYrHE.js → PhPuzzlePiece-DMvneE8o.js} +4 -4
- package/_assets/{PhQrCode-MfgEx90-.js → PhQrCode-B1ogONq9.js} +4 -4
- package/_assets/{PhQuestion-BHeGiiUF.js → PhQuestion-BGPtjzO3.js} +2 -2
- package/_assets/{PhQuestionMark-DNtDU6-_.js → PhQuestionMark-Bx5KlE6e.js} +4 -4
- package/_assets/{PhSealCheck-CDWno5AE.js → PhSealCheck-kDiKrn8v.js} +3 -3
- package/_assets/{PhSignOut-BWUfOWAY.js → PhSignOut-C40w8abk.js} +4 -4
- package/_assets/{PhSpinner-Chbk-Rrh.js → PhSpinner-BnCR7oBU.js} +3 -3
- package/_assets/{PhTrash-CknzCMhK.js → PhTrash-Dx6EnoNj.js} +2 -2
- package/_assets/{PhUser-DBmpCM-x.js → PhUser-BMrVwUFx.js} +3 -3
- package/_assets/{PhVault-B_-lceT6.js → PhVault-CJhJgRMl.js} +2 -2
- package/_assets/{PhWallet-DzHci4bI.js → PhWallet-DUAwnObx.js} +3 -3
- package/_assets/{PhWarning-DNajgYKH.js → PhWarning-DQNslokT.js} +3 -3
- package/_assets/{PhWarningCircle-DaWHEJd0.js → PhWarningCircle-p1EFi5p4.js} +2 -2
- package/_assets/{PhX-o_0aqvnZ.js → PhX-cY2Ff_Gl.js} +4 -4
- package/_assets/{SaleCountdown-BF0I20W5.js → SaleCountdown-BOp8aJfy.js} +2 -2
- package/_assets/{Spinner-BA7Ut7Kf.js → Spinner-BynqtNdl.js} +4 -4
- package/_assets/{StoreSettings-yx6fb2zF.js → StoreSettings-CbPna8kP.js} +13 -13
- package/_assets/{Success-NX2ENRib.js → Success-bg8XK0yM.js} +11 -11
- package/_assets/{SwapController-DEOB6qkC.js → SwapController-FBcxo_2T.js} +2 -2
- package/_assets/{TradeService-B3hWo7M3.js → TradeService-B10-pJNL.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-B6rhAVVy.js → W3MFrameProviderSingleton-D0jWw1Cc.js} +4 -4
- package/_assets/{WebCryptoP256-BeNxJSfZ.js → WebCryptoP256-sEn4Ph9s.js} +2 -2
- package/_assets/{add-DMqlCS_5.js → add-WhTS4Lmx.js} +2 -2
- package/_assets/{all-wallets-jltIqTjt.js → all-wallets-BjG4VftA.js} +2 -2
- package/_assets/{app-store-8U-XnKiq.js → app-store-BU7T42Cx.js} +3 -3
- package/_assets/{apple-DqtIUOT7.js → apple-CawmhmSa.js} +2 -2
- package/_assets/{arrow-bottom-PA3nOuzV.js → arrow-bottom-CnNmrvB7.js} +2 -2
- package/_assets/{arrow-bottom-circle-C-CSXtk9.js → arrow-bottom-circle-4Fk8ZSin.js} +3 -3
- package/_assets/arrow-left-CfMYQlcz.js +9 -0
- package/_assets/arrow-right-QKHuTr9a.js +9 -0
- package/_assets/{arrow-top-BAZtnW6A.js → arrow-top-B19eH9mc.js} +2 -2
- package/_assets/{async-directive-C0XTxdV5.js → async-directive-BTrBVINo.js} +3 -3
- package/_assets/{authorizations-B83pvCo5.js → authorizations-mOwNJkid.js} +2 -2
- package/_assets/{bank-C-8Jh-Iw.js → bank-CvCwnNxT.js} +3 -3
- package/_assets/{basic-X15YC4vH.js → basic-Dxa7jgJV.js} +2 -2
- package/_assets/{biconomy-CN8DzcqS.js → biconomy-BX2NYC5K.js} +2 -2
- package/_assets/{browseLayout.styles-BKjgHcP6.js → browseLayout.styles-DdpwxtcS.js} +12 -12
- package/_assets/{browser-CE_WgHCW.js → browser-D4AM3MwN.js} +2 -2
- package/_assets/{browser-BLhgq6bj.js → browser-DSvDuDU2.js} +2 -2
- package/_assets/{browser-BXKNeaZx.js → browser-D_6XKzYg.js} +2 -2
- package/_assets/{browser-ponyfill-rx4ABrHQ.js → browser-ponyfill-BNascxOI.js} +2 -2
- package/_assets/{builder-e1EitLO9.js → builder-B5xu14hD.js} +2 -2
- package/_assets/{buy-D7nFmJT8.js → buy-DhVTrZNv.js} +2 -2
- package/_assets/buy-gasless-CaOBmjwx.js +2 -0
- package/_assets/{card-Uc0KebvL.js → card-Bs7vF3ws.js} +2 -2
- package/_assets/{categories-CBw6i6jK.js → categories-CVmtX9AQ.js} +3 -3
- package/_assets/{ccip-CSmx0Ukl.js → ccip-BqWqT45T.js} +2 -2
- package/_assets/{ccip-WSZ1SOI1.js → ccip-DrB-HQcA.js} +2 -2
- package/_assets/{chains-CSz4uaiN.js → chains-D7KB36RB.js} +2 -2
- package/_assets/{checkmark-bold-BwTefyx7.js → checkmark-bold-CwL3zpGi.js} +3 -3
- package/_assets/{checkmark-7uWcPB0u.js → checkmark-e3BzxNSm.js} +2 -2
- package/_assets/chevron-bottom-DVpGPQvJ.js +9 -0
- package/_assets/{chevron-left-DKH1P9Pf.js → chevron-left-CSISn9Tl.js} +3 -3
- package/_assets/chevron-right-D0n7Onzs.js +9 -0
- package/_assets/{chevron-top-Dn0py8bk.js → chevron-top-BSRcfV5m.js} +2 -2
- package/_assets/{chrome-store-DUbm69Gl.js → chrome-store-B9E5S_r1.js} +3 -3
- package/_assets/{class-map-C7I-HYAi.js → class-map-BaReYv7k.js} +5 -5
- package/_assets/{clock-CMav6VuQ.js → clock-98t-BkG5.js} +2 -2
- package/_assets/{close-Byftwzmc.js → close-BnCucYZG.js} +2 -2
- package/_assets/{coinPlaceholder-C0F4r6oU.js → coinPlaceholder-rH-MsidA.js} +2 -2
- package/_assets/collectionPage.styles-brmBi9Tl.js +41 -0
- package/_assets/common-7XkB6e5H.js +2 -0
- package/_assets/{compass-CPDOuTyF.js → compass-C4iPyfoB.js} +2 -2
- package/_assets/{controller-BZ74u9Mx.js → controller-B1_lWq9z.js} +3 -3
- package/_assets/{copy-CjXNbdx3.js → copy-Db_EXK-k.js} +3 -3
- package/_assets/{core-DArcUITf.js → core-AITNuvVU.js} +5 -5
- package/_assets/{createSvgIcon-D90PXHtL.js → createSvgIcon-Dm_EPzPD.js} +6 -6
- package/_assets/crumbs.styles-CWDzzCAG.js +10 -0
- package/_assets/{cursor-D-SkqFO5.js → cursor-BLyA32Y6.js} +3 -3
- package/_assets/{cursor-transparent-RE6Zec8w.js → cursor-transparent-is8_6H5o.js} +3 -3
- package/_assets/{custom-C1-1hU-n.js → custom-xkj1tLSz.js} +2 -2
- package/_assets/{data-capture-BlpHZAMp.js → data-capture-DAJqMG1k.js} +2 -2
- package/_assets/{dcl-schemas-DwpPH57a.js → dcl-schemas-CmSCesR5.js} +2 -2
- package/_assets/decimals-BHfME2e2.js +2 -0
- package/_assets/decimals-DfUPuYV7.js +2 -0
- package/_assets/{desktop-tp0dY4sR.js → desktop-w7YXG_JM.js} +3 -3
- package/_assets/detectExtension-DkHb3fXD.js +2 -0
- package/_assets/{disconnect-PN0ATTQe.js → disconnect-BoVeWInH.js} +3 -3
- package/_assets/{discord-ISYEjXZK.js → discord-CmXuPXeB.js} +3 -3
- package/_assets/{disposePreview-HoZr4ggw.js → disposePreview-DVwGA7Ub.js} +2 -2
- package/_assets/{email-C0VnJMNG.js → email-Hk4429M_.js} +2 -2
- package/_assets/{embedded-wallet-Bi2n7sef.js → embedded-wallet-BkIMq9yg.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-DA7w4htd.js → emotion-styled.browser.esm-DjDg2ZB8.js} +2 -2
- package/_assets/{engine-Bztsdwml.js → engine-XG_XgfGd.js} +2 -2
- package/_assets/errors-u0_epNfV.js +2 -0
- package/_assets/estimate-l1-fee-5EJiMKoX.js +2 -0
- package/_assets/eth_estimateGas-DwKvWYPo.js +2 -0
- package/_assets/eth_getStorageAt-C5p-8MAr.js +2 -0
- package/_assets/eth_getTransactionCount-t66aQ8TR.js +2 -0
- package/_assets/ethereum-BCdz72n5.js +2 -0
- package/_assets/{ethers-1M1CfdDX.js → ethers-tJNwaRFg.js} +2 -2
- package/_assets/{etherscan-CjB1AtvG.js → etherscan-C6oDVSRT.js} +3 -3
- package/_assets/{events-ChynmAya.js → events-h2iFxkMp.js} +2 -2
- package/_assets/{exclamation-triangle-Vw_jmJIs.js → exclamation-triangle-DeoEkpAd.js} +2 -2
- package/_assets/{execute-CMhgmHrV.js → execute-z2O707m9.js} +3 -3
- package/_assets/{extension-p5vqJTq0.js → extension-BC4u9PFt.js} +3 -3
- package/_assets/external-link-D1_8iC7n.js +9 -0
- package/_assets/{extractIPFS-Dmk6yNJt.js → extractIPFS-BfApxnTo.js} +2 -2
- package/_assets/{facebook-BdpnpvkK.js → facebook-BfvFcXpk.js} +3 -3
- package/_assets/{farcaster-DyedtTLV.js → farcaster-DBSK9Oxt.js} +2 -2
- package/_assets/{features-BOeSwrw7.js → features-NisBD24W.js} +2 -2
- package/_assets/fetchTokenMetadata-DWdccaM6.js +3 -0
- package/_assets/{field.styles-CjXfWCnd.js → field.styles-DGvQ3_KI.js} +4 -4
- package/_assets/{filters-CMt2xly-.js → filters-Bx7yqePJ.js} +2 -2
- package/_assets/{fortmatic-q9_51_t1.js → fortmatic-CzuM5VkM.js} +2 -2
- package/_assets/{get-bytecode-C9C09tyO.js → get-bytecode-oe9dgjT_.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-BQa2CpBc.js +2 -0
- package/_assets/{getBalance-B3PyAxk9.js → getBalance-Db2IDw6o.js} +3 -3
- package/_assets/getInstalledModules-DQi2Ywnx.js +2 -0
- package/_assets/getNFT-B3EOo0zp.js +3 -0
- package/_assets/getNFT-DHGI8HoZ.js +2 -0
- package/_assets/{github-DpuVIU6C.js → github-Bir9JlcK.js} +3 -3
- package/_assets/{google-BwS7c7G5.js → google-BlkSyDA4.js} +2 -2
- package/_assets/grid.styles-Cw2pwIs-.js +15 -0
- package/_assets/{hashTypedData-CwOONztK.js → hashTypedData-C3YI5ahi.js} +2 -2
- package/_assets/{hashTypedData-CHOe753o.js → hashTypedData-oPzuFATg.js} +2 -2
- package/_assets/{help-circle-D4e71YxP.js → help-circle-DA-n1pkO.js} +3 -3
- package/_assets/{id-CkCU8Jqk.js → id-UrGKP3rm.js} +3 -3
- package/_assets/{image-BgNr9PHW.js → image-D3PTNca-.js} +2 -2
- package/_assets/{import-DTtBPLJq.js → import-BWdTYI20.js} +2 -2
- package/_assets/{in-app-CxjWjLLj.js → in-app-w7g8Nhc9.js} +2 -2
- package/_assets/{in-app-wallet-calls-BmK7j5xu.js → in-app-wallet-calls-CgxzzkFg.js} +2 -2
- package/_assets/{index-mp-W7rgu.js → index-0e3v9CpE.js} +2 -2
- package/_assets/{index-Du3ibQ0n.js → index-6ybT_yl_.js} +2 -2
- package/_assets/{index-D4G9X1ch.js → index-B8_xh5D1.js} +7 -7
- package/_assets/{index-Dzt-Eb9V.js → index-BEL4VIeu.js} +2 -2
- package/_assets/{index-DBONtw7H.js → index-BG7qJ3Aa.js} +311 -279
- package/_assets/{index-B4g6oTgw.js → index-BH-VYf5l.js} +4 -4
- package/_assets/{index-DQb-ID00.js → index-BIxaiAEl.js} +3 -3
- package/_assets/{index-Drj3_D29.css → index-BJz1Up2I.css} +1 -1
- package/_assets/{index-C17qo1Vn.js → index-BLtuf6m4.js} +2 -2
- package/_assets/{index-Dwa5YPI2.js → index-BNnbhKYu.js} +9 -9
- package/_assets/{index-p-Gdk04N.js → index-BZuTbleF.js} +2 -2
- package/_assets/{index-DIYaVDaM.js → index-Bcl-5AK7.js} +4 -4
- package/_assets/{index-CI-biK0J.js → index-Bj2y_yjG.js} +7 -7
- package/_assets/{index-CnEhIH6s.js → index-BldJs_X4.js} +2 -2
- package/_assets/{index-CyRKYgX3.js → index-BqYsqQ5e.js} +4 -4
- package/_assets/{index-mA2FGc2n.js → index-BsuCjDRM.js} +2 -2
- package/_assets/{index-CkhwV11V.js → index-BwhcvSEl.js} +4 -4
- package/_assets/{index-BwmG-IHr.js → index-Bx9moibP.js} +4 -4
- package/_assets/{index-Lm6gRDgk.js → index-BzFKKsMe.js} +2 -2
- package/_assets/{index-BX1TYBrh.js → index-C1EVlgG9.js} +10 -10
- package/_assets/{index-2O4398aF.js → index-C6fxHuUK.js} +2 -2
- package/_assets/{index-lzsOd2r-.js → index-CA1VPaBS.js} +2 -2
- package/_assets/{index-D5ygN-7N.js → index-CBg-Sm5h.js} +3 -3
- package/_assets/{index-B4MGZXnJ.js → index-CFhF41J2.js} +3 -3
- package/_assets/{index-AKVaFU6R.js → index-CNhiEbnP.js} +4 -4
- package/_assets/{index-o4QA-YgI.js → index-CTw0n0JC.js} +4 -4
- package/_assets/{index-DSo-HA-Q.js → index-CY3hUb7S.js} +3 -3
- package/_assets/{index-BBshwWxl.js → index-C_yfqMNU.js} +2 -2
- package/_assets/{index-MW2iAiMi.js → index-CekZ5Iqg.js} +4 -4
- package/_assets/{index-DMqzgHxy.js → index-CjFqn_i1.js} +2 -2
- package/_assets/{index-DcFBuCAU.js → index-CxQ0CvH_.js} +2 -2
- package/_assets/{index-DT0ol44j.js → index-CynamobY.js} +2 -2
- package/_assets/{index-BvktIHhu.js → index-D24CLlPA.js} +3 -3
- package/_assets/{index-CtQRm-uR.js → index-D39wCCYL.js} +4 -4
- package/_assets/{index-8pBNkHhZ.js → index-D3jPbs8j.js} +2 -2
- package/_assets/{index-ZDi0sa76.js → index-D6ySRUMB.js} +2 -2
- package/_assets/{index-C9YXrqLC.js → index-DBFGegL3.js} +3 -3
- package/_assets/{index-CNCV5gb2.js → index-DBeNYttS.js} +2 -2
- package/_assets/{index-CaMOVOnV.js → index-DC6Ttv02.js} +4 -4
- package/_assets/{index-Dx5GsTV9.js → index-DHqGt_jn.js} +3 -3
- package/_assets/{index-BG18kxxr.js → index-DJpAryBd.js} +2 -2
- package/_assets/{index-qIZigzaT.js → index-DJxFrgnc.js} +2 -2
- package/_assets/{index-BxDOHc7K.js → index-DLmetrvd.js} +2 -2
- package/_assets/index-DRTZJdSM.js +2 -0
- package/_assets/{index-BmpyzmIh.js → index-DSpJHztY.js} +2 -2
- package/_assets/{index-CjJbgwsG.js → index-DTRYM8Jl.js} +2 -2
- package/_assets/index-DW6FMcTo.js +2 -0
- package/_assets/{index-Ei6ZjPB-.js → index-DdLWviF_.js} +6 -6
- package/_assets/{index-BmCV7OM0.js → index-DgvZWtVI.js} +2 -2
- package/_assets/{index-Wiz3KnKQ.js → index-Dk_RFoYO.js} +2 -2
- package/_assets/{index-BWmCSXNe.js → index-DtFBTuiv.js} +2 -2
- package/_assets/{index-sAHSTD-e.js → index-EnFBokn9.js} +5 -5
- package/_assets/{index-Nl1WGeRF.js → index-JgBnlWsC.js} +2 -2
- package/_assets/{index-DSUMm5bM.js → index-Y7bxplKw.js} +3 -3
- package/_assets/{index-CArhbxfh.js → index-ZrIhKrUY.js} +9 -9
- package/_assets/{index-D4mLzE5t.js → index-_5dLlQT_.js} +2 -2
- package/_assets/{index-BRPC-KxV.js → index-_TZGGhWP.js} +2 -2
- package/_assets/{index-Cxm44GCk.js → index-c8OkQC3w.js} +2 -2
- package/_assets/{index-DPzFuzjH.js → index-dD-qY7M-.js} +15 -15
- package/_assets/{index-DArg0qfu.js → index-fEiPFyrn.js} +2 -2
- package/_assets/{index-DuT7MyhP.js → index-lSclNpXC.js} +2 -2
- package/_assets/{index-Dp05ebh4.js → index-nANjwUMg.js} +2 -2
- package/_assets/{index-DB-g40Lk.js → index-qirgQBq5.js} +2 -2
- package/_assets/{index-Bbna9UA6.js → index-sYKgsd2E.js} +2 -2
- package/_assets/{index-BdcOwi8k.js → index-umccxemy.js} +2 -2
- package/_assets/{index-CzFmHLD1.js → index-w25QikzJ.js} +2 -2
- package/_assets/{index-DwPwW3EN.js → index-xWBB44w4.js} +5 -5
- package/_assets/{index-Dy1jWaGR.js → index-xYE9fkjq.js} +2 -2
- package/_assets/{index.es-D1GXqsQd.js → index.es-BIKI7JLq.js} +5 -5
- package/_assets/{index.es-RB1w60M4.js → index.es-D7qMhur5.js} +2 -2
- package/_assets/{index.es-BojIKfcn.js → index.es-Gw4AHyZB.js} +2 -2
- package/_assets/{index.es-Bu43E8Od.js → index.es-__1hkKpa.js} +2 -2
- package/_assets/{info-CULnZZaj.js → info-Dsmi8VWW.js} +3 -3
- package/_assets/{info-circle-lLJ-CNp2.js → info-circle-CppZa7vK.js} +2 -2
- package/_assets/{items-empty-DLLWCTVk.js → items-empty-BkXBlSAo.js} +2 -2
- package/_assets/jsxRuntime.module-Q9HBaTr-.js +2 -0
- package/_assets/{jump-BPwh2vZy.js → jump-Dh2r-J5T.js} +2 -2
- package/_assets/{lightbulb-4T7s9a-o.js → lightbulb-B2s8QgKQ.js} +2 -2
- package/_assets/linkAccount-Bev4yuZS.js +2 -0
- package/_assets/{localBatchGatewayRequest-DwX7OXdU.js → localBatchGatewayRequest-D0XhtVRB.js} +2 -2
- package/_assets/{mail-DhJDk7cH.js → mail-CZ9ghbH-.js} +2 -2
- package/_assets/{mobile-CydJ5WdV.js → mobile-D7KL87qI.js} +2 -2
- package/_assets/{modal.styles-XB3kPZSk.js → modal.styles-CUboNT-w.js} +2 -2
- package/_assets/{more-Dg2B8rio.js → more-C1vsI2Vu.js} +3 -3
- package/_assets/{native-CVoJihlN.js → native-I31DoDqU.js} +2 -2
- package/_assets/{network-placeholder-h8TrKQkX.js → network-placeholder-C6sglFRh.js} +2 -2
- package/_assets/{networks-k-5FUkuC.js → networks-CeoMEJlu.js} +2 -2
- package/_assets/{nftPlaceholder-B4g7qDN6.js → nftPlaceholder-ByX0V9oA.js} +3 -3
- package/_assets/off-B5vm0egN.js +9 -0
- package/_assets/{onramp-BlfVZmFE.js → onramp-BIEWKelE.js} +2 -2
- package/_assets/openzeppelin-Bi1GA2cJ.js +2 -0
- package/_assets/ownerOf-yybzNeeI.js +2 -0
- package/_assets/parseNft-wHStJKpc.js +3 -0
- package/_assets/{parseSignature-UG1Z-iRF.js → parseSignature-DCfeEmC8.js} +4 -4
- package/_assets/{parseSignature-C8wluzrl.js → parseSignature-Dzal_2R6.js} +2 -2
- package/_assets/{passkeys-BgD3qEUS.js → passkeys-Cm45YlML.js} +2 -2
- package/_assets/{pay-with-exchange-Dul7TqcO.js → pay-with-exchange-BKmd6iRp.js} +2 -2
- package/_assets/{play-store-B1ADa5-a.js → play-store-BBusJ15a.js} +2 -2
- package/_assets/{plus-CkIDGwOx.js → plus-QdPNUgRE.js} +2 -2
- package/_assets/{prepare-contract-call-BDx98mcK.js → prepare-contract-call-CP8gdRn0.js} +2 -2
- package/_assets/{qr-code-DInpw8H9.js → qr-code-SdYLFk2z.js} +2 -2
- package/_assets/{qr-overlay-CzJOf0PR.js → qr-overlay-pc4SHTdg.js} +4 -4
- package/_assets/{react-VV7ruaEe.js → react-BaEtM5XJ.js} +3 -3
- package/_assets/{receive-Mbh48-Du.js → receive-BrKrTaHR.js} +12 -12
- package/_assets/{recycle-horizontal-frlUVLoe.js → recycle-horizontal-SCXYOpJq.js} +3 -3
- package/_assets/{ref-BDtPbYkK.js → ref-DRxYb1N1.js} +3 -3
- package/_assets/{refresh-BJgYdDWe.js → refresh-eticwJ3S.js} +3 -3
- package/_assets/{reown-logo-CptpO-OK.js → reown-logo-C2dHPSrm.js} +2 -2
- package/_assets/{resolveImplementation-C-Bp0jW1.js → resolveImplementation-Cn9CmlXV.js} +2 -2
- package/_assets/{resume-buy-lwwrCAQL.js → resume-buy-DjpxQ16x.js} +2 -2
- package/_assets/{rpc-dS3qUOUv.js → rpc-CtaMLsF-.js} +2 -2
- package/_assets/{sales-empty-CdZ6YLiR.js → sales-empty-CEW_7w0S.js} +2 -2
- package/_assets/{search-CovtTjFk.js → search-CeQ1H1CU.js} +2 -2
- package/_assets/{search-empty-Xv_q1rjS.js → search-empty-CXnXGBuW.js} +2 -2
- package/_assets/{secp256k1-CzYB4UO1.js → secp256k1-2lPahONa.js} +2 -2
- package/_assets/{secp256k1-B29fjO3k.js → secp256k1-Cw5yUkzd.js} +2 -2
- package/_assets/{secp256k1-BYEzJ9Ar.js → secp256k1-OfpsBHCS.js} +2 -2
- package/_assets/{send-Kib-9VTx.js → send-BAtrg0LJ.js} +2 -2
- package/_assets/{send-BqmhOSPb.js → send-Bo03Ql2I.js} +2 -2
- package/_assets/{send-batch-transaction-Bsec8aWl.js → send-batch-transaction-BpcguXC6.js} +2 -2
- package/_assets/{send-eip712-transaction-B8xB6E7z.js → send-eip712-transaction-Bd6QC-Sw.js} +3 -3
- package/_assets/send-gasless-transaction-Y66RJHE0.js +3 -0
- package/_assets/send-transaction-DXMKNLAk.js +3 -0
- package/_assets/{sendMetaTransaction-ZH8zQFka.js → sendMetaTransaction-BIO5pykC.js} +2 -2
- package/_assets/{sendRawTransaction-Dj_4qH3D.js → sendRawTransaction-DRzDGfBS.js} +4 -4
- package/_assets/{sentry-o0F_Elyr.js → sentry-CpILff32.js} +3 -3
- package/_assets/{serializeTransaction-Ci108h6S.js → serializeTransaction-BTmx-nT5.js} +2 -2
- package/_assets/{session-proposal-DoiJdtGZ.js → session-proposal-Cdm62cOe.js} +2 -2
- package/_assets/session-request-CRquTW31.js +3 -0
- package/_assets/{sha256-DKc8_pkb.js → sha256-7kFStUiX.js} +2 -2
- package/_assets/sha3-CheitC6D.js +2 -0
- package/_assets/signin-empty-BTSk9lYx.js +2 -0
- package/_assets/{signing-B2ulpOrN.js → signing-CQjkeZoU.js} +4 -4
- package/_assets/{skeleton.styles-V94rqky6.js → skeleton.styles-ClyzppIO.js} +2 -2
- package/_assets/{socials-Oa6dTfHZ.js → socials-DADzSqnT.js} +2 -2
- package/_assets/{styled-DyNfGwco.js → styled-CjWYLp6b.js} +3 -3
- package/_assets/{swapHorizontal-BzkqO77h.js → swapHorizontal-C6GakaRf.js} +3 -3
- package/_assets/{swapHorizontalBold-Ci7CW-Ps.js → swapHorizontalBold-oeP-_O-R.js} +2 -2
- package/_assets/{swapHorizontalMedium-BIJFHqWY.js → swapHorizontalMedium-C64EXSWD.js} +3 -3
- package/_assets/{swapHorizontalRoundedBold-DgbOKQnq.js → swapHorizontalRoundedBold-CHgP6XK-.js} +2 -2
- package/_assets/{swapVertical-AbfbZRwH.js → swapVertical-8SLU7RpO.js} +2 -2
- package/_assets/{swaps-COfyeTsO.js → swaps-UA0cD3BW.js} +2 -2
- package/_assets/{telegram-D7G_eJ_b.js → telegram-CF91ES6s.js} +2 -2
- package/_assets/{thirdweb-DI7ZaNzU.js → thirdweb-y-wkF1vZ.js} +4 -4
- package/_assets/{three-dots-OoMaedcW.js → three-dots-BsCoLPC9.js} +2 -2
- package/_assets/{to-serializable-transaction-By8QfhXP.js → to-serializable-transaction-thDAMGtK.js} +3 -3
- package/_assets/totalSupply-Cpawfqqv.js +2 -0
- package/_assets/{transaction-B1xgjYJ6.js → transaction-DJRXk5oN.js} +2 -2
- package/_assets/transactionReceipt-B67AwtOj.js +2 -0
- package/_assets/transactions-CfUmlRJ6.js +17 -0
- package/_assets/{twitch-XFZ_dW-0.js → twitch-BranWKeM.js} +2 -2
- package/_assets/{twitterIcon-DFIrOz7L.js → twitterIcon-BfIWT5DS.js} +3 -3
- package/_assets/{useCreditPacks-DgnQhl__.js → useCreditPacks-CQnl_Fa8.js} +2 -2
- package/_assets/{useInfiniteGrid-CqEvXCvo.js → useInfiniteGrid-CV3Vck1D.js} +2 -2
- package/_assets/useStore-W0Q-z1uf.js +3 -0
- package/_assets/useTheme-CDcFqXEY.js +2 -0
- package/_assets/{utils-ClhrwhHu.js → utils-uSRrzKHh.js} +2 -2
- package/_assets/{verify-CtqWYnsr.js → verify-DcO5QuX7.js} +3 -3
- package/_assets/{verify-filled-db_bDI2X.js → verify-filled-CKp8XQqI.js} +3 -3
- package/_assets/{verifyHash-CUVRY0V6.js → verifyHash-BGhiKEhq.js} +2 -2
- package/_assets/{w3m-modal-Cl3xsdnY.js → w3m-modal-6m_XMwwg.js} +2 -2
- package/_assets/{w3m-modal-BGMNR53_.js → w3m-modal-DGE9Js41.js} +2 -2
- package/_assets/wait-for-tx-receipt-CEm8zMyI.js +2 -0
- package/_assets/{wallet-C7Nkm-1r.js → wallet-BHCiGpYx.js} +3 -3
- package/_assets/{wallet-placeholder-BAZfiJ4M.js → wallet-placeholder-BVguMNEt.js} +2 -2
- package/_assets/{walletconnect-jD4HJXgj.js → walletconnect-9t1WJh4k.js} +4 -4
- package/_assets/{wallets-B1ZJrwjj.js → wallets-D7Q9xQCT.js} +6 -6
- package/_assets/{warning-circle-DG9C8ETA.js → warning-circle-II7Vcaxs.js} +2 -2
- package/_assets/{web-connector-Dq-fpFU2.js → web-connector-nXRPn9Z3.js} +4 -4
- package/_assets/{writeContract-BvArkAMz.js → writeContract-CZeJcaDt.js} +2 -2
- package/_assets/x-D0s8LW19.js +13 -0
- package/_assets/{zora-sepolia-IkBJSEG_.js → zora-sepolia-CI048TsY.js} +2 -2
- package/_assets/{zoraTestnet-DP3dbXZ6.js → zoraTestnet-C9v3YIE6.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Confetti-BLxVbH5o.js +0 -18
- package/_assets/Event-_99dGtyj.js +0 -2
- package/_assets/HelpersUtil-BAFzVkMb.js +0 -63
- package/_assets/LoadMore-DE7YSrmA.js +0 -8
- package/_assets/NotFound-DWWysD5r.js +0 -18
- package/_assets/OutfitPreview-DrOdc6y-.js +0 -7
- package/_assets/PhCaretDown-PT_hkshh.js +0 -15
- package/_assets/PhCaretRight-EEBUAb9H.js +0 -15
- package/_assets/arrow-left-Cddzsk1s.js +0 -9
- package/_assets/arrow-right-FkB0kPcW.js +0 -9
- package/_assets/buy-gasless-DNEVxdLb.js +0 -2
- package/_assets/chevron-bottom-CJ9Wl9Xm.js +0 -9
- package/_assets/chevron-right-DeNTJHBI.js +0 -9
- package/_assets/collectionPage.styles-CGv38BAV.js +0 -41
- package/_assets/common-CsauCio8.js +0 -2
- package/_assets/crumbs.styles-B_xC21o-.js +0 -10
- package/_assets/decimals-DM3o8F2C.js +0 -2
- package/_assets/decimals-aCEDG5JH.js +0 -2
- package/_assets/detectExtension-0ov0Rrws.js +0 -2
- package/_assets/errors-CNu2839_.js +0 -2
- package/_assets/estimate-l1-fee-B-J8ubtj.js +0 -2
- package/_assets/eth_estimateGas-PqNhqizJ.js +0 -2
- package/_assets/eth_getStorageAt-OHBtIi6n.js +0 -2
- package/_assets/eth_getTransactionCount-3Fo1K1in.js +0 -2
- package/_assets/ethereum-DgDIagMf.js +0 -2
- package/_assets/external-link-6l8BDrnZ.js +0 -9
- package/_assets/fetchTokenMetadata-B3gG8lNZ.js +0 -3
- package/_assets/get-ecosystem-wallet-info-Md6d1ElT.js +0 -2
- package/_assets/getInstalledModules-Cc3eGsGW.js +0 -2
- package/_assets/getNFT-08MzaPPL.js +0 -2
- package/_assets/getNFT-Ct0fZovm.js +0 -3
- package/_assets/grid.styles-DLJDk6Da.js +0 -15
- package/_assets/index-Bldxc1rA.js +0 -2
- package/_assets/index-BlsDk8cY.js +0 -2
- package/_assets/jsxRuntime.module-gjtb1wYS.js +0 -2
- package/_assets/linkAccount-D8t0rhjQ.js +0 -2
- package/_assets/off-UwuZMWU-.js +0 -9
- package/_assets/openzeppelin-CHH76T2R.js +0 -2
- package/_assets/ownerOf-BsF3HIfV.js +0 -2
- package/_assets/parseNft-fbo1tW69.js +0 -3
- package/_assets/send-gasless-transaction-DOAZoiru.js +0 -3
- package/_assets/send-transaction-C8HId9c-.js +0 -3
- package/_assets/session-request-D9ZfIWnv.js +0 -3
- package/_assets/sha3-Djo6RzzD.js +0 -2
- package/_assets/signin-empty-0RVG8Orx.js +0 -2
- package/_assets/totalSupply-BFOzDnZo.js +0 -2
- package/_assets/transactionReceipt-D8BwP6qt.js +0 -2
- package/_assets/transactions-Bphi4uNv.js +0 -17
- package/_assets/useStore-BxEjYiKk.js +0 -3
- package/_assets/useTheme-BSSQBx8D.js +0 -2
- package/_assets/wait-for-tx-receipt-CL_z5VGg.js +0 -2
- package/_assets/x-B-2M90IQ.js +0 -13
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/fortmatic-
|
|
2
|
-
var ce=Object.defineProperty;var de=(i,n,e)=>n in i?ce(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var d=(i,n,e)=>de(i,typeof n!="symbol"?n+"":n,e);import{e as h,f as l,g}from"./dcl-schemas-DwpPH57a.js";import{g as ue}from"./react-VV7ruaEe.js";import{r as he}from"./events-ChynmAya.js";import{_ as m}from"./index-DBONtw7H.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new i.Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="a7ad7e1e-f74b-41ea-a127-55281874b066",i._sentryDebugIdIdentifier="sentry-dbid-a7ad7e1e-f74b-41ea-a127-55281874b066")}catch{}})();var C;(function(i){i.Update="Web3ReactUpdate",i.Error="Web3ReactError",i.Deactivate="Web3ReactDeactivate"})(C||(C={}));const le={clientId:"e1adce863fe287bb6cf0e3fd90bdb77f",chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY]},pe={storageKey:"decentraland-connect-storage-key",[l.ProviderType.INJECTED]:{},[l.ProviderType.FORTMATIC]:{apiKeys:{[h.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[h.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:A(l.ProviderType.FORTMATIC)},[l.ProviderType.NETWORK]:{urls:A(l.ProviderType.NETWORK)},[l.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:A(l.ProviderType.WALLET_LINK)},[l.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:A(l.ProviderType.WALLET_CONNECT_V2),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.ARBITRUM_MAINNET,h.ChainId.OPTIMISM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC_TEST]:{apiKey:"pk_live_CE856A4938B36648",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},thirdweb:le};function I(){return pe}function A(i){const n={[h.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[h.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[h.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[h.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[h.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[h.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[h.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[h.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[h.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let e="";switch(i){case l.ProviderType.WALLET_LINK:e="walletlink";break;case l.ProviderType.FORTMATIC:e="fortmatic";break;case l.ProviderType.MAGIC:e="magic";break;case l.ProviderType.MAGIC_TEST:e="magic";break;case l.ProviderType.WALLET_CONNECT_V2:e="walletconnect-v2";break;case l.ProviderType.THIRDWEB:e="thirdweb";break}if(e){const t=Object.keys(n);for(const r of t)n[r]+=`?project=${e}`}return n}var $=he();const je=ue($);function fe(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n}var E=(function(i){fe(n,i);function n(t){var r,o=t===void 0?{}:t,s=o.supportedChainIds;return r=i.call(this)||this,r.supportedChainIds=s,r}var e=n.prototype;return e.emitUpdate=function(r){this.emit(C.Update,r)},e.emitError=function(r){this.emit(C.Error,r)},e.emitDeactivate=function(){this.emit(C.Deactivate)},n})($.EventEmitter);class z extends E{constructor(e){const t=I()[g.ProviderType.FORTMATIC],r=Object.keys(t.apiKeys).map(o=>Number(o));if(!r.includes(e))throw new Error(`Invariant error: Unsupported chainId ${e}`);super({supportedChainIds:r});d(this,"apiKey");d(this,"chainId");d(this,"rpcUrl");d(this,"fortmatic");this.apiKey=t.apiKeys[e],this.chainId=e,this.rpcUrl=t.urls[e]}async activate(){if(!this.fortmatic){const{default:t}=await m(async()=>{const{default:r}=await import("./fortmatic-q9_51_t1.js").then(o=>o.f);return{default:r}},__vite__mapDeps([0,1]));this.fortmatic=new t(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const e=await this.fortmatic.getProvider().enable().then(t=>t[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:e}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(e=>e[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function j(){return j=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}return i},j.apply(this,arguments)}function q(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n}function D(i){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(i)}function L(i,n){return L=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},L(i,n)}function ve(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(i,n,e){return ve()?O=Reflect.construct:O=function(r,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(r,a),u=new c;return s&&L(u,s.prototype),u},O.apply(null,arguments)}function we(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function S(i){var n=typeof Map=="function"?new Map:void 0;return S=function(t){if(t===null||!we(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return O(t,arguments,D(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L(r,t)},S(i)}function b(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function P(i,n){try{var e=i()}catch(t){return n(t)}return e&&e.then?e.then(void 0,n):e}function y(i){return i.hasOwnProperty("result")?i.result:i}var k=(function(i){q(n,i);function n(){var e;return e=i.call(this)||this,e.name=e.constructor.name,e.message="No Ethereum provider was found on window.ethereum.",e}return n})(S(Error)),ge=(function(i){q(n,i);function n(){var e;return e=i.call(this)||this,e.name=e.constructor.name,e.message="The user rejected the request.",e}return n})(S(Error)),me=(function(i){q(n,i);function n(t){var r;return r=i.call(this,t)||this,r.handleNetworkChanged=r.handleNetworkChanged.bind(b(r)),r.handleChainChanged=r.handleChainChanged.bind(b(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(b(r)),r.handleClose=r.handleClose.bind(b(r)),r}var e=n.prototype;return e.handleChainChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.handleAccountsChanged=function(r){r.length===0?this.emitDeactivate():this.emitUpdate({account:r[0]})},e.handleClose=function(r,o){this.emitDeactivate()},e.handleNetworkChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.activate=function(){try{var r=function(f){if(o)return f;function p(){return j({provider:window.ethereum},a?{account:a}:{})}var v=(function(){if(!a)return Promise.resolve(window.ethereum.enable().then(function(T){return T&&y(T)[0]})).then(function(T){a=T})})();return v&&v.then?v.then(p):p(v)},o=!1,s=this;if(!window.ethereum)throw new k;window.ethereum.on&&(window.ethereum.on("chainChanged",s.handleChainChanged),window.ethereum.on("accountsChanged",s.handleAccountsChanged),window.ethereum.on("close",s.handleClose),window.ethereum.on("networkChanged",s.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var a,c=P(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(u){return y(u)[0]})).then(function(u){a=u})},function(u){if(u.code===4001)throw new ge});return Promise.resolve(c&&c.then?c.then(r):r(c))}catch(u){return Promise.reject(u)}},e.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(r){return Promise.reject(r)}},e.getChainId=function(){try{var r=function(){function c(){if(!o)try{o=y(window.ethereum.send({method:"net_version"}))}catch{}return o||(window.ethereum.isDapper?o=y(window.ethereum.cachedResults.net_version):o=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),o}var u=(function(){if(!o){var f=P(function(){return Promise.resolve(window.ethereum.send("net_version").then(y)).then(function(p){o=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var o,s=P(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(y)).then(function(a){o=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.getAccount=function(){try{var r=function(){function c(){return o||(o=y(window.ethereum.send({method:"eth_accounts"}))[0]),o}var u=(function(){if(!o){var f=P(function(){return Promise.resolve(window.ethereum.enable().then(function(p){return y(p)[0]})).then(function(p){o=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var o,s=P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(a){return y(a)[0]})).then(function(a){o=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},e.isAuthorized=function(){try{return window.ethereum?Promise.resolve(P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(r){return y(r).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(r){return Promise.reject(r)}},n})(E);class G extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const Ie=60*1e3;class J extends me{constructor(n){super({supportedChainIds:[n]})}async activate(){const n=new Promise((t,r)=>{setTimeout(()=>{r(new G)},Ie)}),e=super.activate();return Promise.race([e,n])}}var ye="Invariant failed";function V(i,n){throw new Error(ye)}function Y(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,N(i,n)}function K(i){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(i)}function N(i,n){return N=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},N(i,n)}function Ce(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(i,n,e){return Ce()?R=Reflect.construct:R=function(r,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(r,a),u=new c;return s&&N(u,s.prototype),u},R.apply(null,arguments)}function Ee(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function W(i){var n=typeof Map=="function"?new Map:void 0;return W=function(t){if(t===null||!Ee(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return R(t,arguments,K(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N(r,t)},W(i)}var U=(function(i){Y(n,i);function n(e,t,r){var o;return o=i.call(this)||this,o.code=t,o.data=r,o.name=o.constructor.name,o.message=e,o}return n})(W(Error)),Ae=function(n,e){var t=this,r=this;this.isMetaMask=!1,this.sendAsync=function(s,a){console.log("sendAsync",s.method,s.params),r.request(s.method,s.params).then(function(c){return a(null,{jsonrpc:"2.0",id:s.id,result:c})}).catch(function(c){return a(c,null)})},this.request=function(s,a){try{return typeof s!="string"&&(a=s.params,s=s.method),Promise.resolve(fetch(t.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:s,params:a}),headers:{"Content-Type":"application/json"}})).then(function(c){if(!c.ok)throw new U(c.status+": "+c.statusText,-32e3);return Promise.resolve(c.json()).then(function(u){if("error"in u){var f,p,v;throw new U(u==null||(f=u.error)==null?void 0:f.message,u==null||(p=u.error)==null?void 0:p.code,u==null||(v=u.error)==null?void 0:v.data)}else{if("result"in u)return u.result;throw new U("Received unexpected JSON-RPC response to "+s+" request.",-32e3,u)}})})}catch(c){return Promise.reject(c)}},this.chainId=n,this.url=e;var o=new URL(e);this.host=o.host,this.path=o.pathname},Te=(function(i){Y(n,i);function n(t){var r,o=t.urls,s=t.defaultChainId;return s||Object.keys(o).length===1||V(),r=i.call(this,{supportedChainIds:Object.keys(o).map(function(a){return Number(a)})})||this,r.currentChainId=s||Number(Object.keys(o)[0]),r.providers=Object.keys(o).reduce(function(a,c){return a[Number(c)]=new Ae(Number(c),o[Number(c)]),a},{}),r}var e=n.prototype;return e.activate=function(){try{var r=this;return Promise.resolve({provider:r.providers[r.currentChainId],chainId:r.currentChainId,account:null})}catch(o){return Promise.reject(o)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.providers[r.currentChainId])}catch(o){return Promise.reject(o)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.currentChainId)}catch(o){return Promise.reject(o)}},e.getAccount=function(){return Promise.resolve(null)},e.deactivate=function(){},e.changeChainId=function(r){Object.keys(this.providers).includes(r.toString())||V(),this.currentChainId=r,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:r})},n})(E);class Q extends Te{constructor(n){super({urls:I()[l.ProviderType.NETWORK].urls,defaultChainId:n})}}function x(){return x=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}return i},x.apply(this,arguments)}function Pe(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,F(i,n)}function F(i,n){return F=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},F(i,n)}function B(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}var _e=1,Ne=(function(i){Pe(n,i);function n(t){var r,o=t.url,s=t.appName,a=t.appLogoUrl,c=t.darkMode,u=t.supportedChainIds;return r=i.call(this,{supportedChainIds:u})||this,r.url=o,r.appName=s,r.appLogoUrl=a,r.darkMode=c||!1,r.handleChainChanged=r.handleChainChanged.bind(B(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(B(r)),r}var e=n.prototype;return e.activate=function(){try{var r=this,o=function(){return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(c){var u=c[0];return r.provider.on("chainChanged",r.handleChainChanged),r.provider.on("accountsChanged",r.handleAccountsChanged),{provider:r.provider,account:u}})},s=(function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)r.provider=window.ethereum;else{var a=(function(){if(!r.walletLink)return Promise.resolve(m(()=>import("./index-p-Gdk04N.js").then(c=>c.i),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11,12])).then(function(c){var u;return(u=c==null?void 0:c.default)!=null?u:c})).then(function(c){r.walletLink=new c(x({appName:r.appName,darkMode:r.darkMode},r.appLogoUrl?{appLogoUrl:r.appLogoUrl}:{})),r.provider=r.walletLink.makeWeb3Provider(r.url,_e)})})();if(a&&a.then)return a.then(function(){})}})();return Promise.resolve(s&&s.then?s.then(o):o(s))}catch(a){return Promise.reject(a)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.provider)}catch(o){return Promise.reject(o)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.provider.chainId)}catch(o){return Promise.reject(o)}},e.getAccount=function(){try{var r=this;return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(o){return o[0]})}catch(o){return Promise.reject(o)}},e.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},e.close=function(){try{var r=this;return r.provider.close(),r.emitDeactivate(),Promise.resolve()}catch(o){return Promise.reject(o)}},e.handleChainChanged=function(r){this.emitUpdate({chainId:r})},e.handleAccountsChanged=function(r){this.emitUpdate({account:r[0]})},n})(E);class X extends Ne{constructor(n){const e=I()[g.ProviderType.WALLET_LINK],t=e.urls[n];if(!t)throw new Error(`Unsupported chainId for WalletLink: ${n}. Supported chains: ${Object.keys(e.urls).join(", ")}`);super({url:t,appName:e.appName,supportedChainIds:[n]})}}class Me{}class Z extends Me{get(n){const e=window.localStorage.getItem(n);return e===null?void 0:e}set(n,e){window.localStorage.setItem(n,e)}remove(n){window.localStorage.removeItem(n)}removeRegExp(n){for(let e=localStorage.length-1;e>=0;e--){const t=localStorage.key(e);t&&n.test(t)&&localStorage.removeItem(t)}}}const be={[g.ChainId.ETHEREUM_MAINNET]:"mainnet",[g.ChainId.ETHEREUM_SEPOLIA]:"sepolia",[g.ChainId.MATIC_MAINNET]:"polygon",[g.ChainId.MATIC_AMOY]:"polygonAmoy",[g.ChainId.ARBITRUM_MAINNET]:"arbitrum",[g.ChainId.OPTIMISM_MAINNET]:"optimism",[g.ChainId.AVALANCHE_MAINNET]:"avalanche",[g.ChainId.BSC_MAINNET]:"bsc",[g.ChainId.FANTOM_MAINNET]:"fantom"},w=class w extends E{constructor(e){super({supportedChainIds:w.configuration.chains});d(this,"desiredChainId");d(this,"appKit");d(this,"provider");d(this,"accountUnsubscribe");d(this,"networkUnsubscribe");d(this,"initAppKit",async()=>{if(w.sharedAppKit)return this.appKit=w.sharedAppKit,this.appKit;const{createAppKit:e}=await m(async()=>{const{createAppKit:s}=await import("./index-AKVaFU6R.js").then(a=>a.h);return{createAppKit:s}},__vite__mapDeps([13,14,1,3,5,4,12,15,16,17,18,19,20,21,22,23,24])),{WagmiAdapter:t}=await m(async()=>{const{WagmiAdapter:s}=await import("./index-MW2iAiMi.js").then(a=>a.b);return{WagmiAdapter:s}},__vite__mapDeps([25,16,3,1,17,5,18,19,14,4,12,15,26,27,6,28,29,30])),r=await this.getNetworks(),o=new t({networks:r,projectId:w.configuration.projectId});return this.appKit=e({adapters:[o],projectId:w.configuration.projectId,networks:r,defaultNetwork:r[0],metadata:{name:"Decentraland",description:"Decentraland - Virtual World",url:typeof window<"u"?window.location.origin:"https://decentraland.org",icons:["https://decentraland.org/favicon.ico"]},themeMode:"dark",themeVariables:{"--w3m-z-index":3e3},features:{analytics:!1,email:!1,socials:!1,onramp:!1,swaps:!1},enableInjected:!0,enableEIP6963:!0}),w.sharedAppKit=this.appKit,await this.waitForSessionRestore(),this.appKit});d(this,"waitForSessionRestore",async()=>{const e=this.appKit;if(!e)return;const t=e.getAccount();if((t==null?void 0:t.status)==="connected"||(t==null?void 0:t.status)==="disconnected")return;const r=t!=null&&t.status?5e3:500;return new Promise(o=>{const s=setTimeout(()=>{a==null||a(),o()},r),a=e.subscribeAccount(c=>{((c==null?void 0:c.status)==="connected"||(c==null?void 0:c.status)==="disconnected")&&(clearTimeout(s),a==null||a(),o())},"eip155")})});d(this,"validateRestoredSession",async e=>{try{const t=e.getWalletProvider();return t?(await t.request({method:"eth_chainId"}),!0):!1}catch(t){return w.isStaleSessionError(t)?!1:(console.warn("Error validating WalletConnect session:",t),!0)}});d(this,"openModalAndWaitForConnection",async()=>{const e=this.requireAppKit(),t=()=>new Promise((r,o)=>{let s=!1;const a=(p,v)=>{s||(s=!0,clearTimeout(c),p==null||p(),v==null||v())},c=setTimeout(()=>{a(),o(new Error("Connection timeout"))},3e5),u=e.subscribeAccount(p=>{p!=null&&p.isConnected&&(p!=null&&p.address)&&(a(u,f),r(p.address))},"eip155"),f=e.subscribeState(p=>{!p.open&&!e.getAddress("eip155")&&(a(u,f),o(new Error("User closed the modal without connecting")))})});try{await e.open({view:"Connect"}),await t()}catch(r){if(w.isStaleSessionError(r)){if(console.warn("Stale session detected, retrying connection..."),w.clearStorage(),await this.initAppKit(),!this.appKit)throw new Error("AppKit reinitialization failed");await this.appKit.open({view:"Connect"}),await t()}else throw r}});d(this,"activate",async()=>{try{await this.initAppKit()}catch(c){if(console.error("Error initializing AppKit",c),w.isStaleSessionError(c))console.warn("WalletConnect session is stale, clearing storage and retrying..."),w.clearStorage(),await this.initAppKit();else throw c}const e=this.requireAppKit(),t=e.getAccount();(t==null?void 0:t.status)==="connected"&&(t==null?void 0:t.address)?await this.validateRestoredSession(e)||(console.warn("Restored WalletConnect session is stale, clearing and prompting reconnection..."),w.clearStorage(),await this.initAppKit(),await this.openModalAndWaitForConnection()):await this.openModalAndWaitForConnection();const o=e.getWalletProvider();if(!o)throw new Error("Failed to get wallet provider after connection");this.provider=o,this.accountUnsubscribe=e.subscribeAccount(c=>{c!=null&&c.address&&this.handleAccountsChanged([c.address])},"eip155"),this.networkUnsubscribe=e.subscribeCaipNetworkChange(c=>{c!=null&&c.id&&this.handleChainChanged(c.id)});const s=e.getAddress("eip155");return{chainId:e.getChainId()||this.desiredChainId,account:s||null,provider:this.provider}});d(this,"getProvider",async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider});d(this,"getChainId",async()=>this.requireAppKit().getChainId()??this.desiredChainId);d(this,"getAccount",async()=>this.requireAppKit().getAddress("eip155")??null);d(this,"getWalletName",()=>{var e,t,r;return(r=(t=(e=this.appKit)==null?void 0:e.getWalletInfo)==null?void 0:t.call(e,"eip155"))==null?void 0:r.name});d(this,"deactivate",()=>{});d(this,"clearInstance",()=>{var t,r;const e=this.provider;if(e){this.provider=void 0;try{(t=this.accountUnsubscribe)==null||t.call(this),(r=this.networkUnsubscribe)==null||r.call(this)}catch(o){console.warn("Error unsubscribing from AppKit events:",o)}return this.accountUnsubscribe=void 0,this.networkUnsubscribe=void 0,e}});d(this,"close",async()=>{var t;if(this.clearInstance()){try{await((t=this.appKit)==null?void 0:t.disconnect())}catch(r){console.warn("Error during WalletConnect disconnect:",r)}this.appKit=void 0}});d(this,"handleAccountsChanged",e=>{this.emitUpdate({account:e[0]})});d(this,"handleChainChanged",e=>{this.emitUpdate({chainId:e})});d(this,"handleDisconnect",()=>{this.clearInstance(),this.emitDeactivate()});this.desiredChainId=e}requireAppKit(){if(!this.appKit)throw new Error("AppKit is not initialized");return this.appKit}static isStaleSessionError(e){if(e instanceof Error){const t=e.message.toLowerCase();return t.includes("no matching key")||t.includes("session topic doesn't exist")||t.includes("missing or invalid")||t.includes("expired")||t.includes("user rejected methods")||t.includes("is not configured")||t.includes("cannot read properties")||t.includes("undefined is not an object")}return!1}async getNetworks(){const e=w.configuration.chains,t=await m(()=>import("./networks-k-5FUkuC.js"),__vite__mapDeps([31,19,5,1,32,33,26,14,3,4,12,15,34,35,30])),r=e.map(s=>{const a=be[s];if(a)return t[a]}).filter(s=>s!==void 0);if(r.length===0)throw new Error("No supported networks found for WalletConnect");const o=r.find(s=>s.id===this.desiredChainId);if(o){const s=r.filter(a=>a.id!==this.desiredChainId);return[o,...s]}return[r[0],...r.slice(1)]}};d(w,"configuration",I()[g.ProviderType.WALLET_CONNECT_V2]),d(w,"clearStorage",(e=new Z)=>{e.removeRegExp(new RegExp("^wc@2:")),e.removeRegExp(new RegExp("^@appkit")),w.sharedAppKit=null}),d(w,"sharedAppKit",null);let _=w;class H extends E{constructor(e,t=!1){super({supportedChainIds:I()[g.ProviderType.MAGIC].chains});d(this,"isTest");d(this,"chainId");d(this,"account");d(this,"magic");d(this,"activate",async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const t=await this.getProvider(),r=await t.request({method:"eth_accounts"});return this.account=r[0]??null,{provider:t,chainId:this.chainId,account:this.account}});d(this,"getProvider",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const e=await this.magic.wallet.getProvider();return{...e,isMagic:!0,request:new Proxy(e.request,{apply:async(t,r,o)=>{var s,a,c;if(((s=o[0])==null?void 0:s.method)==="wallet_switchEthereumChain")try{const u=parseInt((c=(a=o[0])==null?void 0:a.params[0])==null?void 0:c.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(u)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(u),this.emitUpdate({chainId:u}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return t.bind(e)(...o)}}),sendAsync:new Proxy(e.send,{apply:async(t,r,o)=>t.bind(e)(...o)})}});d(this,"getChainId",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId});d(this,"getAccount",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account});d(this,"getEmail",async()=>{try{if(!this.magic||!await this.magic.user.isLoggedIn())return;const t=await this.magic.user.getInfo();return(t==null?void 0:t.email)??void 0}catch{return}});d(this,"deactivate",()=>{});d(this,"buildMagicInstance",async e=>{const{Magic:t}=await m(async()=>{const{Magic:a}=await import("./index-Lm6gRDgk.js");return{Magic:a}},__vite__mapDeps([36,5,1,37])),{OAuthExtension:r}=await m(async()=>{const{OAuthExtension:a}=await import("./index-Du3ibQ0n.js");return{OAuthExtension:a}},__vite__mapDeps([38,37,5,1,39,7,8,4,10,3])),o=I()[this.isTest?g.ProviderType.MAGIC_TEST:g.ProviderType.MAGIC],s=o.urls[e];if(!s)throw new Error(`Unsupported chainId for Magic: ${e}. Supported chains: ${Object.keys(o.urls).join(", ")}`);return new t(o.apiKey,{extensions:[new r],network:{rpcUrl:s,chainId:e}})});this.isTest=t,this.chainId=e,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}class ee extends H{constructor(n){super(n,!0)}}class te extends E{constructor(e){var t;super({supportedChainIds:((t=I().thirdweb)==null?void 0:t.chains)??[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA]});d(this,"chainId");d(this,"client");d(this,"wallet");d(this,"chain");d(this,"eip1193Provider");d(this,"activate",async()=>{const e=await this.getClient(),t=await this.getWallet();let r;try{r=await t.autoConnect({client:e})}catch{throw new Error("Thirdweb: No active session. User must authenticate first.")}if(!r)throw new Error("Thirdweb: No active session. User must authenticate first.");const o=await this.getChain(),{EIP1193:s}=await m(async()=>{const{EIP1193:u}=await import("./wallets-B1ZJrwjj.js").then(f=>f.Q);return{EIP1193:u}},__vite__mapDeps([40,41,42,43,5,1,14,3,4,12,15,44,45,46,47,48,49,50,51,52,28,53,54,55,20,17,21,56,22]));return this.eip1193Provider=s.toProvider({wallet:t,chain:o,client:e}),{provider:await this.getProvider(),chainId:this.chainId,account:r.address}});d(this,"getProvider",async()=>{if(!this.eip1193Provider)throw new Error("Thirdweb: wallet is not connected. Call activate() first.");const e=this.eip1193Provider;return{...e,isDapper:!1,isFortmatic:!1,isMetamask:!1,isMagic:!1,isThirdweb:!0,request:new Proxy(e.request,{apply:async(t,r,o)=>{var a,c,u,f;if(((a=o[0])==null?void 0:a.method)==="wallet_switchEthereumChain"){const p=(f=(u=(c=o[0])==null?void 0:c.params)==null?void 0:u[0])==null?void 0:f.chainId,v=parseInt(p,16);if(this.supportedChainIds&&!this.supportedChainIds.includes(v))throw new Error("Thirdweb: unsupported chain");this.chainId=v,this.chain=null,this.eip1193Provider=null;const T=await this.getClient(),ne=await this.getWallet(),ie=await this.getChain(),{EIP1193:oe}=await m(async()=>{const{EIP1193:ae}=await import("./wallets-B1ZJrwjj.js").then(se=>se.Q);return{EIP1193:ae}},__vite__mapDeps([40,41,42,43,5,1,14,3,4,12,15,44,45,46,47,48,49,50,51,52,28,53,54,55,20,17,21,56,22]));return this.eip1193Provider=oe.toProvider({wallet:ne,chain:ie,client:T}),this.emitUpdate({chainId:v}),null}return Reflect.apply(t,e,o)}}),sendAsync:new Proxy(e.request,{apply:async(t,r,o)=>Reflect.apply(t,e,o)})}});d(this,"getChainId",async()=>this.chainId);d(this,"getAccount",async()=>{if(!this.wallet)return null;try{const e=this.wallet.getAccount();return(e==null?void 0:e.address)??null}catch{return null}});d(this,"getEmail",async()=>{try{const e=await this.getClient(),{getUserEmail:t}=await m(async()=>{const{getUserEmail:o}=await import("./in-app-CxjWjLLj.js");return{getUserEmail:o}},__vite__mapDeps([57,42,43,5,1,48,47,14,3,4,12,15,58,59]));return await t({client:e})??void 0}catch{return}});d(this,"deactivate",()=>{});this.chainId=e,this.client=null,this.wallet=null,this.chain=null,this.eip1193Provider=null}async getClient(){if(this.client)return this.client;let e;try{e=await m(()=>import("./thirdweb-DI7ZaNzU.js").then(r=>r.t),__vite__mapDeps([60,43,5,1,42,41,14,3,4,12,15,44,45,46,61,62,63,64,65,66,55,67,68,69,70,54]))}catch{throw new Error("Thirdweb: thirdweb package is not installed.")}const t=I().thirdweb;return this.client=e.createThirdwebClient({clientId:t.clientId}),this.client}async getWallet(){if(this.wallet)return this.wallet;let e;try{e=await m(()=>import("./wallets-B1ZJrwjj.js").then(t=>t.Q),__vite__mapDeps([40,41,42,43,5,1,14,3,4,12,15,44,45,46,47,48,49,50,51,52,28,53,54,55,20,17,21,56,22]))}catch{throw new Error("Thirdweb: thirdweb package is not installed. Run: npm install thirdweb")}return this.wallet=e.inAppWallet(),this.wallet}async getChain(){if(this.chain)return this.chain;const e=await m(()=>import("./chains-CSz4uaiN.js"),__vite__mapDeps([71,43,5,1,69,51]));return this.chain=e.defineChain(this.chainId),this.chain}async close(){this.wallet&&await this.wallet.disconnect(),this.wallet=null,this.chain=null,this.eip1193Provider=null}}class M{constructor(n){d(this,"provider");d(this,"id",0);d(this,"on",(n,e)=>this.provider.on(n,e));d(this,"emit",(n,...e)=>this.provider.emit(n,e));d(this,"removeListener",(n,e)=>this.provider.removeListener(n,e));d(this,"request",async({method:n,params:e})=>this.isModernProvider()?this.provider.request({method:n,params:e}):this.send(n,e));d(this,"sendAsync",async(n,e)=>this.hasSendAsync()?this.provider.sendAsync(n,(t,r)=>{r&&!Object.prototype.hasOwnProperty.call(r,"result")?e(t,{id:0,jsonrpc:"2.0",result:r}):e(t,r)}):this.send(n,e));this.provider=n}static adapt(n){const e=new M(n);return{...n,on:e.on,emit:e.emit,removeListener:e.removeListener,request:e.request,sendAsync:e.sendAsync,send:e.send.bind(e)}}async send(n,e){let t,r,o;const s=typeof e=="function";if(s){const a=n;r=a.params||[],t=a.method,o=e}else t=n,r=e||[],o=(a,c)=>{if(a)throw a;return c};if(this.isModernProvider()){const[a,c]=await this.provider.request({method:t,params:r}).then(f=>[null,f]).catch(f=>[f,void 0]);return o(a,s?{id:"",jsonrpc:"2.0",result:c}:c)}else{this.patchOldMobile();const[a,c]=s?await new Promise(u=>this.provider.send(n,(f,p)=>{u([f,p])})):await new Promise(u=>this.provider.send({jsonrpc:"2.0",id:++this.id,method:t,params:r},(f,p)=>{const v=p;u([(v==null?void 0:v.error)??f,(v==null?void 0:v.result)??p])}));return o(a,c)}}isModernProvider(){return"request"in this.provider&&typeof this.provider.request=="function"}hasSendAsync(){return typeof this.provider.sendAsync=="function"}patchOldMobile(){this.provider&&!this.provider.isDapper&&!this.provider.isFortmatic&&!this.provider.isMetamask&&this.hasSendAsync()&&this.provider.send!==this.provider.sendAsync&&(this.provider.send=this.provider.sendAsync.bind(this.provider))}}class re{constructor(n){d(this,"storage");d(this,"connector");d(this,"promiseOfConnection");d(this,"getWalletName",()=>{if(this.connector instanceof _)return this.connector.getWalletName()});d(this,"clearConnectionData",()=>{const{storageKey:n}=I();this.storage.remove(n),_.clearStorage(this.storage)});d(this,"handleWeb3ReactDeactivate",async()=>{try{await this.disconnect()}catch(n){console.error(n)}});this.storage=n}async connect(n,e=h.ChainId.ETHEREUM_MAINNET){if(this.connector)try{await this.disconnect()}catch(a){console.error("Error disconnecting previous connection",a)}const t=this.buildConnector(n,e);t.on(C.Deactivate,this.handleWeb3ReactDeactivate);let{provider:r,account:o}={};try{const a=await t.activate();r=a.provider,o=a.account}catch(a){throw console.error("Error activating the connector",a),a}(n===l.ProviderType.MAGIC||n===l.ProviderType.MAGIC_TEST||n===l.ProviderType.THIRDWEB)&&t.on(C.Update,({chainId:a})=>{a&&this.setConnectionData(n,a)});let s=e;if(n===l.ProviderType.INJECTED){const a=await r.request({method:"eth_chainId"});s=a?parseInt(a,16):s}return this.connector=t,this.setConnectionData(n,s),{provider:M.adapt(r),providerType:n,account:o||"",chainId:s}}isConnected(){return!!this.connector&&!!this.getConnectionData()}async tryPreviousConnection(){const n=this.getConnectionData();if(!n)throw new Error("Could not find a valid provider. Make sure to call the `connect` method first");if(this.connector){const[t,r]=await Promise.all([this.connector.getProvider(),this.connector.getAccount()]);return{provider:t,providerType:n.providerType,chainId:n.chainId,account:r||""}}let e;try{e=this.promiseOfConnection?await this.promiseOfConnection:await(this.promiseOfConnection=this.connect(n.providerType,n.chainId))}finally{this.promiseOfConnection=void 0}return{...e,chainId:this.getConnectionData().chainId}}getAvailableProviders(){const n=[l.ProviderType.FORTMATIC,l.ProviderType.WALLET_CONNECT,l.ProviderType.WALLET_LINK];return typeof window<"u"&&window.ethereum!==void 0?n.unshift(l.ProviderType.INJECTED):n.unshift(l.ProviderType.METAMASK_MOBILE),n}async disconnect(){this.connector&&(this.connector.removeAllListeners(C.Deactivate),this.connector.removeAllListeners(C.Update),this.connector.deactivate(),this.isClosableConnector()&&await this.connector.close()),this.clearConnectionData(),this.connector=void 0}async getProvider(){if(!this.connector)throw new Error("No valid connector found. Please .connect() first");return this.connector.getProvider()}async getEmail(){const n=this.connector;if(n!=null&&n.getEmail)try{return await n.getEmail()}catch{return}}async createProvider(n,e=h.ChainId.ETHEREUM_MAINNET){const r=await this.buildConnector(n,e).getProvider();return M.adapt(r)}buildConnector(n,e){switch(n){case l.ProviderType.INJECTED:return new J(e);case l.ProviderType.FORTMATIC:return new z(e);case l.ProviderType.MAGIC:return new H(e);case l.ProviderType.MAGIC_TEST:return new ee(e);case l.ProviderType.WALLET_LINK:return new X(e);case l.ProviderType.NETWORK:return new Q(e);case l.ProviderType.WALLET_CONNECT_V2:return new _(e);case l.ProviderType.THIRDWEB:return new te(e);default:throw new Error(`Invalid provider ${n}`)}}getConnectionData(){const{storageKey:n}=I(),e=this.storage.get(n);try{return e?JSON.parse(e):void 0}catch(t){console.error("Error parsing connection data",t);return}}storeConnectionData(n,e){this.setConnectionData(n,e)}setConnectionData(n,e){const{storageKey:t}=I(),r=JSON.stringify({providerType:n,chainId:e});this.storage.set(t,r)}isClosableConnector(){return this.connector&&"close"in this.connector}}const Oe=new re(new Z),De=Object.freeze(Object.defineProperty({__proto__:null,AbstractConnector:E,ConnectionManager:re,ErrorUnlockingWallet:G,FortmaticConnector:z,InjectedConnector:J,MagicConnector:H,MagicTestConnector:ee,NetworkConnector:Q,ProviderAdapter:M,ThirdwebConnector:te,WalletConnectV2Connector:_,WalletLinkConnector:X,connection:Oe,getConfiguration:I,getRpcUrls:A},Symbol.toStringTag,{value:"Module"}));export{je as N,Oe as c,$ as e,De as i};
|
|
3
|
-
//# sourceMappingURL=index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/fortmatic-CzuM5VkM.js","_assets/react-BaEtM5XJ.js","_assets/index-BZuTbleF.js","_assets/dcl-schemas-CmSCesR5.js","_assets/ethers-tJNwaRFg.js","_assets/sentry-CpILff32.js","_assets/index-D3jPbs8j.js","_assets/index-DJpAryBd.js","_assets/index-sYKgsd2E.js","_assets/hooks.module-54Oj1-WJ.js","_assets/events-h2iFxkMp.js","_assets/browser-DSvDuDU2.js","_assets/intl-AKLEHPeO.js","_assets/index-CNhiEbnP.js","_assets/index-BG7qJ3Aa.js","_assets/index-BJz1Up2I.css","_assets/W3MFrameProviderSingleton-D0jWw1Cc.js","_assets/index-BldJs_X4.js","_assets/browser-ponyfill-BNascxOI.js","_assets/NetworkUtil-BtYJyuKu.js","_assets/index-DgvZWtVI.js","_assets/index-OpYIGLSa.js","_assets/index-DBeNYttS.js","_assets/index.es-__1hkKpa.js","_assets/lit-element-wjYUA6aF.js","_assets/index-CekZ5Iqg.js","_assets/sendRawTransaction-DRzDGfBS.js","_assets/index-DRTZJdSM.js","_assets/store-80QKZ2rN.js","_assets/custom-xkj1tLSz.js","_assets/writeContract-CZeJcaDt.js","_assets/networks-CeoMEJlu.js","_assets/zoraTestnet-C9v3YIE6.js","_assets/verifyHash-BGhiKEhq.js","_assets/secp256k1-2lPahONa.js","_assets/serializeTransaction-BTmx-nT5.js","_assets/index-BzFKKsMe.js","_assets/index-Dk_RFoYO.js","_assets/index-6ybT_yl_.js","_assets/index-0e3v9CpE.js","_assets/wallets-D7Q9xQCT.js","_assets/signing-CQjkeZoU.js","_assets/prepare-contract-call-CP8gdRn0.js","_assets/utils-uSRrzKHh.js","_assets/to-serializable-transaction-thDAMGtK.js","_assets/transaction-DJRXk5oN.js","_assets/get-bytecode-oe9dgjT_.js","_assets/execute-z2O707m9.js","_assets/detectExtension-DkHb3fXD.js","_assets/linkAccount-Bev4yuZS.js","_assets/index-BqYsqQ5e.js","_assets/ethereum-BCdz72n5.js","_assets/types-BeDU9GfL.js","_assets/hashTypedData-C3YI5ahi.js","_assets/send-transaction-DXMKNLAk.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/index-CjFqn_i1.js","_assets/in-app-w7g8Nhc9.js","_assets/passkeys-Cm45YlML.js","_assets/uint8-array-BMe04WIx.js","_assets/thirdweb-y-wkF1vZ.js","_assets/wait-for-tx-receipt-CEm8zMyI.js","_assets/transactionReceipt-B67AwtOj.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-DwKvWYPo.js","_assets/eth_getStorageAt-C5p-8MAr.js","_assets/eth_getTransactionCount-t66aQ8TR.js","_assets/decimals-DfUPuYV7.js","_assets/decimals-BHfME2e2.js","_assets/zora-sepolia-CI048TsY.js","_assets/send-batch-transaction-BpcguXC6.js","_assets/chains-D7KB36RB.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var ce=Object.defineProperty;var de=(i,n,e)=>n in i?ce(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var d=(i,n,e)=>de(i,typeof n!="symbol"?n+"":n,e);import{e as h,f as l,g}from"./dcl-schemas-CmSCesR5.js";import{g as ue}from"./react-BaEtM5XJ.js";import{r as he}from"./events-h2iFxkMp.js";import{_ as m}from"./index-BG7qJ3Aa.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new i.Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="5dcd1e36-09e9-4187-8bcf-d430e93f6ae5",i._sentryDebugIdIdentifier="sentry-dbid-5dcd1e36-09e9-4187-8bcf-d430e93f6ae5")}catch{}})();var C;(function(i){i.Update="Web3ReactUpdate",i.Error="Web3ReactError",i.Deactivate="Web3ReactDeactivate"})(C||(C={}));const le={clientId:"e1adce863fe287bb6cf0e3fd90bdb77f",chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY]},pe={storageKey:"decentraland-connect-storage-key",[l.ProviderType.INJECTED]:{},[l.ProviderType.FORTMATIC]:{apiKeys:{[h.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[h.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:A(l.ProviderType.FORTMATIC)},[l.ProviderType.NETWORK]:{urls:A(l.ProviderType.NETWORK)},[l.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:A(l.ProviderType.WALLET_LINK)},[l.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:A(l.ProviderType.WALLET_CONNECT_V2),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.ARBITRUM_MAINNET,h.ChainId.OPTIMISM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC_TEST]:{apiKey:"pk_live_CE856A4938B36648",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},thirdweb:le};function I(){return pe}function A(i){const n={[h.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[h.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[h.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[h.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[h.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[h.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[h.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[h.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[h.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let e="";switch(i){case l.ProviderType.WALLET_LINK:e="walletlink";break;case l.ProviderType.FORTMATIC:e="fortmatic";break;case l.ProviderType.MAGIC:e="magic";break;case l.ProviderType.MAGIC_TEST:e="magic";break;case l.ProviderType.WALLET_CONNECT_V2:e="walletconnect-v2";break;case l.ProviderType.THIRDWEB:e="thirdweb";break}if(e){const t=Object.keys(n);for(const r of t)n[r]+=`?project=${e}`}return n}var $=he();const je=ue($);function fe(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n}var E=(function(i){fe(n,i);function n(t){var r,o=t===void 0?{}:t,s=o.supportedChainIds;return r=i.call(this)||this,r.supportedChainIds=s,r}var e=n.prototype;return e.emitUpdate=function(r){this.emit(C.Update,r)},e.emitError=function(r){this.emit(C.Error,r)},e.emitDeactivate=function(){this.emit(C.Deactivate)},n})($.EventEmitter);class z extends E{constructor(e){const t=I()[g.ProviderType.FORTMATIC],r=Object.keys(t.apiKeys).map(o=>Number(o));if(!r.includes(e))throw new Error(`Invariant error: Unsupported chainId ${e}`);super({supportedChainIds:r});d(this,"apiKey");d(this,"chainId");d(this,"rpcUrl");d(this,"fortmatic");this.apiKey=t.apiKeys[e],this.chainId=e,this.rpcUrl=t.urls[e]}async activate(){if(!this.fortmatic){const{default:t}=await m(async()=>{const{default:r}=await import("./fortmatic-CzuM5VkM.js").then(o=>o.f);return{default:r}},__vite__mapDeps([0,1]));this.fortmatic=new t(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const e=await this.fortmatic.getProvider().enable().then(t=>t[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:e}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(e=>e[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function j(){return j=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}return i},j.apply(this,arguments)}function q(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n}function D(i){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(i)}function L(i,n){return L=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},L(i,n)}function ve(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(i,n,e){return ve()?O=Reflect.construct:O=function(r,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(r,a),u=new c;return s&&L(u,s.prototype),u},O.apply(null,arguments)}function we(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function S(i){var n=typeof Map=="function"?new Map:void 0;return S=function(t){if(t===null||!we(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return O(t,arguments,D(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L(r,t)},S(i)}function b(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function P(i,n){try{var e=i()}catch(t){return n(t)}return e&&e.then?e.then(void 0,n):e}function y(i){return i.hasOwnProperty("result")?i.result:i}var k=(function(i){q(n,i);function n(){var e;return e=i.call(this)||this,e.name=e.constructor.name,e.message="No Ethereum provider was found on window.ethereum.",e}return n})(S(Error)),ge=(function(i){q(n,i);function n(){var e;return e=i.call(this)||this,e.name=e.constructor.name,e.message="The user rejected the request.",e}return n})(S(Error)),me=(function(i){q(n,i);function n(t){var r;return r=i.call(this,t)||this,r.handleNetworkChanged=r.handleNetworkChanged.bind(b(r)),r.handleChainChanged=r.handleChainChanged.bind(b(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(b(r)),r.handleClose=r.handleClose.bind(b(r)),r}var e=n.prototype;return e.handleChainChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.handleAccountsChanged=function(r){r.length===0?this.emitDeactivate():this.emitUpdate({account:r[0]})},e.handleClose=function(r,o){this.emitDeactivate()},e.handleNetworkChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.activate=function(){try{var r=function(f){if(o)return f;function p(){return j({provider:window.ethereum},a?{account:a}:{})}var v=(function(){if(!a)return Promise.resolve(window.ethereum.enable().then(function(T){return T&&y(T)[0]})).then(function(T){a=T})})();return v&&v.then?v.then(p):p(v)},o=!1,s=this;if(!window.ethereum)throw new k;window.ethereum.on&&(window.ethereum.on("chainChanged",s.handleChainChanged),window.ethereum.on("accountsChanged",s.handleAccountsChanged),window.ethereum.on("close",s.handleClose),window.ethereum.on("networkChanged",s.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var a,c=P(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(u){return y(u)[0]})).then(function(u){a=u})},function(u){if(u.code===4001)throw new ge});return Promise.resolve(c&&c.then?c.then(r):r(c))}catch(u){return Promise.reject(u)}},e.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(r){return Promise.reject(r)}},e.getChainId=function(){try{var r=function(){function c(){if(!o)try{o=y(window.ethereum.send({method:"net_version"}))}catch{}return o||(window.ethereum.isDapper?o=y(window.ethereum.cachedResults.net_version):o=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),o}var u=(function(){if(!o){var f=P(function(){return Promise.resolve(window.ethereum.send("net_version").then(y)).then(function(p){o=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var o,s=P(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(y)).then(function(a){o=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.getAccount=function(){try{var r=function(){function c(){return o||(o=y(window.ethereum.send({method:"eth_accounts"}))[0]),o}var u=(function(){if(!o){var f=P(function(){return Promise.resolve(window.ethereum.enable().then(function(p){return y(p)[0]})).then(function(p){o=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var o,s=P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(a){return y(a)[0]})).then(function(a){o=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},e.isAuthorized=function(){try{return window.ethereum?Promise.resolve(P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(r){return y(r).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(r){return Promise.reject(r)}},n})(E);class G extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const Ie=60*1e3;class J extends me{constructor(n){super({supportedChainIds:[n]})}async activate(){const n=new Promise((t,r)=>{setTimeout(()=>{r(new G)},Ie)}),e=super.activate();return Promise.race([e,n])}}var ye="Invariant failed";function V(i,n){throw new Error(ye)}function Y(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,N(i,n)}function K(i){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(i)}function N(i,n){return N=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},N(i,n)}function Ce(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(i,n,e){return Ce()?R=Reflect.construct:R=function(r,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(r,a),u=new c;return s&&N(u,s.prototype),u},R.apply(null,arguments)}function Ee(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function W(i){var n=typeof Map=="function"?new Map:void 0;return W=function(t){if(t===null||!Ee(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return R(t,arguments,K(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N(r,t)},W(i)}var U=(function(i){Y(n,i);function n(e,t,r){var o;return o=i.call(this)||this,o.code=t,o.data=r,o.name=o.constructor.name,o.message=e,o}return n})(W(Error)),Ae=function(n,e){var t=this,r=this;this.isMetaMask=!1,this.sendAsync=function(s,a){console.log("sendAsync",s.method,s.params),r.request(s.method,s.params).then(function(c){return a(null,{jsonrpc:"2.0",id:s.id,result:c})}).catch(function(c){return a(c,null)})},this.request=function(s,a){try{return typeof s!="string"&&(a=s.params,s=s.method),Promise.resolve(fetch(t.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:s,params:a}),headers:{"Content-Type":"application/json"}})).then(function(c){if(!c.ok)throw new U(c.status+": "+c.statusText,-32e3);return Promise.resolve(c.json()).then(function(u){if("error"in u){var f,p,v;throw new U(u==null||(f=u.error)==null?void 0:f.message,u==null||(p=u.error)==null?void 0:p.code,u==null||(v=u.error)==null?void 0:v.data)}else{if("result"in u)return u.result;throw new U("Received unexpected JSON-RPC response to "+s+" request.",-32e3,u)}})})}catch(c){return Promise.reject(c)}},this.chainId=n,this.url=e;var o=new URL(e);this.host=o.host,this.path=o.pathname},Te=(function(i){Y(n,i);function n(t){var r,o=t.urls,s=t.defaultChainId;return s||Object.keys(o).length===1||V(),r=i.call(this,{supportedChainIds:Object.keys(o).map(function(a){return Number(a)})})||this,r.currentChainId=s||Number(Object.keys(o)[0]),r.providers=Object.keys(o).reduce(function(a,c){return a[Number(c)]=new Ae(Number(c),o[Number(c)]),a},{}),r}var e=n.prototype;return e.activate=function(){try{var r=this;return Promise.resolve({provider:r.providers[r.currentChainId],chainId:r.currentChainId,account:null})}catch(o){return Promise.reject(o)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.providers[r.currentChainId])}catch(o){return Promise.reject(o)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.currentChainId)}catch(o){return Promise.reject(o)}},e.getAccount=function(){return Promise.resolve(null)},e.deactivate=function(){},e.changeChainId=function(r){Object.keys(this.providers).includes(r.toString())||V(),this.currentChainId=r,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:r})},n})(E);class Q extends Te{constructor(n){super({urls:I()[l.ProviderType.NETWORK].urls,defaultChainId:n})}}function x(){return x=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}return i},x.apply(this,arguments)}function Pe(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,F(i,n)}function F(i,n){return F=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},F(i,n)}function B(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}var _e=1,Ne=(function(i){Pe(n,i);function n(t){var r,o=t.url,s=t.appName,a=t.appLogoUrl,c=t.darkMode,u=t.supportedChainIds;return r=i.call(this,{supportedChainIds:u})||this,r.url=o,r.appName=s,r.appLogoUrl=a,r.darkMode=c||!1,r.handleChainChanged=r.handleChainChanged.bind(B(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(B(r)),r}var e=n.prototype;return e.activate=function(){try{var r=this,o=function(){return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(c){var u=c[0];return r.provider.on("chainChanged",r.handleChainChanged),r.provider.on("accountsChanged",r.handleAccountsChanged),{provider:r.provider,account:u}})},s=(function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)r.provider=window.ethereum;else{var a=(function(){if(!r.walletLink)return Promise.resolve(m(()=>import("./index-BZuTbleF.js").then(c=>c.i),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11,12])).then(function(c){var u;return(u=c==null?void 0:c.default)!=null?u:c})).then(function(c){r.walletLink=new c(x({appName:r.appName,darkMode:r.darkMode},r.appLogoUrl?{appLogoUrl:r.appLogoUrl}:{})),r.provider=r.walletLink.makeWeb3Provider(r.url,_e)})})();if(a&&a.then)return a.then(function(){})}})();return Promise.resolve(s&&s.then?s.then(o):o(s))}catch(a){return Promise.reject(a)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.provider)}catch(o){return Promise.reject(o)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.provider.chainId)}catch(o){return Promise.reject(o)}},e.getAccount=function(){try{var r=this;return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(o){return o[0]})}catch(o){return Promise.reject(o)}},e.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},e.close=function(){try{var r=this;return r.provider.close(),r.emitDeactivate(),Promise.resolve()}catch(o){return Promise.reject(o)}},e.handleChainChanged=function(r){this.emitUpdate({chainId:r})},e.handleAccountsChanged=function(r){this.emitUpdate({account:r[0]})},n})(E);class X extends Ne{constructor(n){const e=I()[g.ProviderType.WALLET_LINK],t=e.urls[n];if(!t)throw new Error(`Unsupported chainId for WalletLink: ${n}. Supported chains: ${Object.keys(e.urls).join(", ")}`);super({url:t,appName:e.appName,supportedChainIds:[n]})}}class Me{}class Z extends Me{get(n){const e=window.localStorage.getItem(n);return e===null?void 0:e}set(n,e){window.localStorage.setItem(n,e)}remove(n){window.localStorage.removeItem(n)}removeRegExp(n){for(let e=localStorage.length-1;e>=0;e--){const t=localStorage.key(e);t&&n.test(t)&&localStorage.removeItem(t)}}}const be={[g.ChainId.ETHEREUM_MAINNET]:"mainnet",[g.ChainId.ETHEREUM_SEPOLIA]:"sepolia",[g.ChainId.MATIC_MAINNET]:"polygon",[g.ChainId.MATIC_AMOY]:"polygonAmoy",[g.ChainId.ARBITRUM_MAINNET]:"arbitrum",[g.ChainId.OPTIMISM_MAINNET]:"optimism",[g.ChainId.AVALANCHE_MAINNET]:"avalanche",[g.ChainId.BSC_MAINNET]:"bsc",[g.ChainId.FANTOM_MAINNET]:"fantom"},w=class w extends E{constructor(e){super({supportedChainIds:w.configuration.chains});d(this,"desiredChainId");d(this,"appKit");d(this,"provider");d(this,"accountUnsubscribe");d(this,"networkUnsubscribe");d(this,"initAppKit",async()=>{if(w.sharedAppKit)return this.appKit=w.sharedAppKit,this.appKit;const{createAppKit:e}=await m(async()=>{const{createAppKit:s}=await import("./index-CNhiEbnP.js").then(a=>a.h);return{createAppKit:s}},__vite__mapDeps([13,14,1,3,5,4,12,15,16,17,18,19,20,21,22,23,24])),{WagmiAdapter:t}=await m(async()=>{const{WagmiAdapter:s}=await import("./index-CekZ5Iqg.js").then(a=>a.b);return{WagmiAdapter:s}},__vite__mapDeps([25,16,3,1,17,5,18,19,14,4,12,15,26,27,6,28,29,30])),r=await this.getNetworks(),o=new t({networks:r,projectId:w.configuration.projectId});return this.appKit=e({adapters:[o],projectId:w.configuration.projectId,networks:r,defaultNetwork:r[0],metadata:{name:"Decentraland",description:"Decentraland - Virtual World",url:typeof window<"u"?window.location.origin:"https://decentraland.org",icons:["https://decentraland.org/favicon.ico"]},themeMode:"dark",themeVariables:{"--w3m-z-index":3e3},features:{analytics:!1,email:!1,socials:!1,onramp:!1,swaps:!1},enableInjected:!0,enableEIP6963:!0}),w.sharedAppKit=this.appKit,await this.waitForSessionRestore(),this.appKit});d(this,"waitForSessionRestore",async()=>{const e=this.appKit;if(!e)return;const t=e.getAccount();if((t==null?void 0:t.status)==="connected"||(t==null?void 0:t.status)==="disconnected")return;const r=t!=null&&t.status?5e3:500;return new Promise(o=>{const s=setTimeout(()=>{a==null||a(),o()},r),a=e.subscribeAccount(c=>{((c==null?void 0:c.status)==="connected"||(c==null?void 0:c.status)==="disconnected")&&(clearTimeout(s),a==null||a(),o())},"eip155")})});d(this,"validateRestoredSession",async e=>{try{const t=e.getWalletProvider();return t?(await t.request({method:"eth_chainId"}),!0):!1}catch(t){return w.isStaleSessionError(t)?!1:(console.warn("Error validating WalletConnect session:",t),!0)}});d(this,"openModalAndWaitForConnection",async()=>{const e=this.requireAppKit(),t=()=>new Promise((r,o)=>{let s=!1;const a=(p,v)=>{s||(s=!0,clearTimeout(c),p==null||p(),v==null||v())},c=setTimeout(()=>{a(),o(new Error("Connection timeout"))},3e5),u=e.subscribeAccount(p=>{p!=null&&p.isConnected&&(p!=null&&p.address)&&(a(u,f),r(p.address))},"eip155"),f=e.subscribeState(p=>{!p.open&&!e.getAddress("eip155")&&(a(u,f),o(new Error("User closed the modal without connecting")))})});try{await e.open({view:"Connect"}),await t()}catch(r){if(w.isStaleSessionError(r)){if(console.warn("Stale session detected, retrying connection..."),w.clearStorage(),await this.initAppKit(),!this.appKit)throw new Error("AppKit reinitialization failed");await this.appKit.open({view:"Connect"}),await t()}else throw r}});d(this,"activate",async()=>{try{await this.initAppKit()}catch(c){if(console.error("Error initializing AppKit",c),w.isStaleSessionError(c))console.warn("WalletConnect session is stale, clearing storage and retrying..."),w.clearStorage(),await this.initAppKit();else throw c}const e=this.requireAppKit(),t=e.getAccount();(t==null?void 0:t.status)==="connected"&&(t==null?void 0:t.address)?await this.validateRestoredSession(e)||(console.warn("Restored WalletConnect session is stale, clearing and prompting reconnection..."),w.clearStorage(),await this.initAppKit(),await this.openModalAndWaitForConnection()):await this.openModalAndWaitForConnection();const o=e.getWalletProvider();if(!o)throw new Error("Failed to get wallet provider after connection");this.provider=o,this.accountUnsubscribe=e.subscribeAccount(c=>{c!=null&&c.address&&this.handleAccountsChanged([c.address])},"eip155"),this.networkUnsubscribe=e.subscribeCaipNetworkChange(c=>{c!=null&&c.id&&this.handleChainChanged(c.id)});const s=e.getAddress("eip155");return{chainId:e.getChainId()||this.desiredChainId,account:s||null,provider:this.provider}});d(this,"getProvider",async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider});d(this,"getChainId",async()=>this.requireAppKit().getChainId()??this.desiredChainId);d(this,"getAccount",async()=>this.requireAppKit().getAddress("eip155")??null);d(this,"getWalletName",()=>{var e,t,r;return(r=(t=(e=this.appKit)==null?void 0:e.getWalletInfo)==null?void 0:t.call(e,"eip155"))==null?void 0:r.name});d(this,"deactivate",()=>{});d(this,"clearInstance",()=>{var t,r;const e=this.provider;if(e){this.provider=void 0;try{(t=this.accountUnsubscribe)==null||t.call(this),(r=this.networkUnsubscribe)==null||r.call(this)}catch(o){console.warn("Error unsubscribing from AppKit events:",o)}return this.accountUnsubscribe=void 0,this.networkUnsubscribe=void 0,e}});d(this,"close",async()=>{var t;if(this.clearInstance()){try{await((t=this.appKit)==null?void 0:t.disconnect())}catch(r){console.warn("Error during WalletConnect disconnect:",r)}this.appKit=void 0}});d(this,"handleAccountsChanged",e=>{this.emitUpdate({account:e[0]})});d(this,"handleChainChanged",e=>{this.emitUpdate({chainId:e})});d(this,"handleDisconnect",()=>{this.clearInstance(),this.emitDeactivate()});this.desiredChainId=e}requireAppKit(){if(!this.appKit)throw new Error("AppKit is not initialized");return this.appKit}static isStaleSessionError(e){if(e instanceof Error){const t=e.message.toLowerCase();return t.includes("no matching key")||t.includes("session topic doesn't exist")||t.includes("missing or invalid")||t.includes("expired")||t.includes("user rejected methods")||t.includes("is not configured")||t.includes("cannot read properties")||t.includes("undefined is not an object")}return!1}async getNetworks(){const e=w.configuration.chains,t=await m(()=>import("./networks-CeoMEJlu.js"),__vite__mapDeps([31,19,5,1,32,33,26,14,3,4,12,15,34,35,30])),r=e.map(s=>{const a=be[s];if(a)return t[a]}).filter(s=>s!==void 0);if(r.length===0)throw new Error("No supported networks found for WalletConnect");const o=r.find(s=>s.id===this.desiredChainId);if(o){const s=r.filter(a=>a.id!==this.desiredChainId);return[o,...s]}return[r[0],...r.slice(1)]}};d(w,"configuration",I()[g.ProviderType.WALLET_CONNECT_V2]),d(w,"clearStorage",(e=new Z)=>{e.removeRegExp(new RegExp("^wc@2:")),e.removeRegExp(new RegExp("^@appkit")),w.sharedAppKit=null}),d(w,"sharedAppKit",null);let _=w;class H extends E{constructor(e,t=!1){super({supportedChainIds:I()[g.ProviderType.MAGIC].chains});d(this,"isTest");d(this,"chainId");d(this,"account");d(this,"magic");d(this,"activate",async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const t=await this.getProvider(),r=await t.request({method:"eth_accounts"});return this.account=r[0]??null,{provider:t,chainId:this.chainId,account:this.account}});d(this,"getProvider",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const e=await this.magic.wallet.getProvider();return{...e,isMagic:!0,request:new Proxy(e.request,{apply:async(t,r,o)=>{var s,a,c;if(((s=o[0])==null?void 0:s.method)==="wallet_switchEthereumChain")try{const u=parseInt((c=(a=o[0])==null?void 0:a.params[0])==null?void 0:c.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(u)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(u),this.emitUpdate({chainId:u}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return t.bind(e)(...o)}}),sendAsync:new Proxy(e.send,{apply:async(t,r,o)=>t.bind(e)(...o)})}});d(this,"getChainId",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId});d(this,"getAccount",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account});d(this,"getEmail",async()=>{try{if(!this.magic||!await this.magic.user.isLoggedIn())return;const t=await this.magic.user.getInfo();return(t==null?void 0:t.email)??void 0}catch{return}});d(this,"deactivate",()=>{});d(this,"buildMagicInstance",async e=>{const{Magic:t}=await m(async()=>{const{Magic:a}=await import("./index-BzFKKsMe.js");return{Magic:a}},__vite__mapDeps([36,5,1,37])),{OAuthExtension:r}=await m(async()=>{const{OAuthExtension:a}=await import("./index-6ybT_yl_.js");return{OAuthExtension:a}},__vite__mapDeps([38,37,5,1,39,7,8,4,10,3])),o=I()[this.isTest?g.ProviderType.MAGIC_TEST:g.ProviderType.MAGIC],s=o.urls[e];if(!s)throw new Error(`Unsupported chainId for Magic: ${e}. Supported chains: ${Object.keys(o.urls).join(", ")}`);return new t(o.apiKey,{extensions:[new r],network:{rpcUrl:s,chainId:e}})});this.isTest=t,this.chainId=e,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}class ee extends H{constructor(n){super(n,!0)}}class te extends E{constructor(e){var t;super({supportedChainIds:((t=I().thirdweb)==null?void 0:t.chains)??[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA]});d(this,"chainId");d(this,"client");d(this,"wallet");d(this,"chain");d(this,"eip1193Provider");d(this,"activate",async()=>{const e=await this.getClient(),t=await this.getWallet();let r;try{r=await t.autoConnect({client:e})}catch{throw new Error("Thirdweb: No active session. User must authenticate first.")}if(!r)throw new Error("Thirdweb: No active session. User must authenticate first.");const o=await this.getChain(),{EIP1193:s}=await m(async()=>{const{EIP1193:u}=await import("./wallets-D7Q9xQCT.js").then(f=>f.Q);return{EIP1193:u}},__vite__mapDeps([40,41,42,43,5,1,14,3,4,12,15,44,45,46,47,48,49,50,51,52,28,53,54,55,20,17,21,56,22]));return this.eip1193Provider=s.toProvider({wallet:t,chain:o,client:e}),{provider:await this.getProvider(),chainId:this.chainId,account:r.address}});d(this,"getProvider",async()=>{if(!this.eip1193Provider)throw new Error("Thirdweb: wallet is not connected. Call activate() first.");const e=this.eip1193Provider;return{...e,isDapper:!1,isFortmatic:!1,isMetamask:!1,isMagic:!1,isThirdweb:!0,request:new Proxy(e.request,{apply:async(t,r,o)=>{var a,c,u,f;if(((a=o[0])==null?void 0:a.method)==="wallet_switchEthereumChain"){const p=(f=(u=(c=o[0])==null?void 0:c.params)==null?void 0:u[0])==null?void 0:f.chainId,v=parseInt(p,16);if(this.supportedChainIds&&!this.supportedChainIds.includes(v))throw new Error("Thirdweb: unsupported chain");this.chainId=v,this.chain=null,this.eip1193Provider=null;const T=await this.getClient(),ne=await this.getWallet(),ie=await this.getChain(),{EIP1193:oe}=await m(async()=>{const{EIP1193:ae}=await import("./wallets-D7Q9xQCT.js").then(se=>se.Q);return{EIP1193:ae}},__vite__mapDeps([40,41,42,43,5,1,14,3,4,12,15,44,45,46,47,48,49,50,51,52,28,53,54,55,20,17,21,56,22]));return this.eip1193Provider=oe.toProvider({wallet:ne,chain:ie,client:T}),this.emitUpdate({chainId:v}),null}return Reflect.apply(t,e,o)}}),sendAsync:new Proxy(e.request,{apply:async(t,r,o)=>Reflect.apply(t,e,o)})}});d(this,"getChainId",async()=>this.chainId);d(this,"getAccount",async()=>{if(!this.wallet)return null;try{const e=this.wallet.getAccount();return(e==null?void 0:e.address)??null}catch{return null}});d(this,"getEmail",async()=>{try{const e=await this.getClient(),{getUserEmail:t}=await m(async()=>{const{getUserEmail:o}=await import("./in-app-w7g8Nhc9.js");return{getUserEmail:o}},__vite__mapDeps([57,42,43,5,1,48,47,14,3,4,12,15,58,59]));return await t({client:e})??void 0}catch{return}});d(this,"deactivate",()=>{});this.chainId=e,this.client=null,this.wallet=null,this.chain=null,this.eip1193Provider=null}async getClient(){if(this.client)return this.client;let e;try{e=await m(()=>import("./thirdweb-y-wkF1vZ.js").then(r=>r.t),__vite__mapDeps([60,43,5,1,42,41,14,3,4,12,15,44,45,46,61,62,63,64,65,66,55,67,68,69,70,54]))}catch{throw new Error("Thirdweb: thirdweb package is not installed.")}const t=I().thirdweb;return this.client=e.createThirdwebClient({clientId:t.clientId}),this.client}async getWallet(){if(this.wallet)return this.wallet;let e;try{e=await m(()=>import("./wallets-D7Q9xQCT.js").then(t=>t.Q),__vite__mapDeps([40,41,42,43,5,1,14,3,4,12,15,44,45,46,47,48,49,50,51,52,28,53,54,55,20,17,21,56,22]))}catch{throw new Error("Thirdweb: thirdweb package is not installed. Run: npm install thirdweb")}return this.wallet=e.inAppWallet(),this.wallet}async getChain(){if(this.chain)return this.chain;const e=await m(()=>import("./chains-D7KB36RB.js"),__vite__mapDeps([71,43,5,1,69,51]));return this.chain=e.defineChain(this.chainId),this.chain}async close(){this.wallet&&await this.wallet.disconnect(),this.wallet=null,this.chain=null,this.eip1193Provider=null}}class M{constructor(n){d(this,"provider");d(this,"id",0);d(this,"on",(n,e)=>this.provider.on(n,e));d(this,"emit",(n,...e)=>this.provider.emit(n,e));d(this,"removeListener",(n,e)=>this.provider.removeListener(n,e));d(this,"request",async({method:n,params:e})=>this.isModernProvider()?this.provider.request({method:n,params:e}):this.send(n,e));d(this,"sendAsync",async(n,e)=>this.hasSendAsync()?this.provider.sendAsync(n,(t,r)=>{r&&!Object.prototype.hasOwnProperty.call(r,"result")?e(t,{id:0,jsonrpc:"2.0",result:r}):e(t,r)}):this.send(n,e));this.provider=n}static adapt(n){const e=new M(n);return{...n,on:e.on,emit:e.emit,removeListener:e.removeListener,request:e.request,sendAsync:e.sendAsync,send:e.send.bind(e)}}async send(n,e){let t,r,o;const s=typeof e=="function";if(s){const a=n;r=a.params||[],t=a.method,o=e}else t=n,r=e||[],o=(a,c)=>{if(a)throw a;return c};if(this.isModernProvider()){const[a,c]=await this.provider.request({method:t,params:r}).then(f=>[null,f]).catch(f=>[f,void 0]);return o(a,s?{id:"",jsonrpc:"2.0",result:c}:c)}else{this.patchOldMobile();const[a,c]=s?await new Promise(u=>this.provider.send(n,(f,p)=>{u([f,p])})):await new Promise(u=>this.provider.send({jsonrpc:"2.0",id:++this.id,method:t,params:r},(f,p)=>{const v=p;u([(v==null?void 0:v.error)??f,(v==null?void 0:v.result)??p])}));return o(a,c)}}isModernProvider(){return"request"in this.provider&&typeof this.provider.request=="function"}hasSendAsync(){return typeof this.provider.sendAsync=="function"}patchOldMobile(){this.provider&&!this.provider.isDapper&&!this.provider.isFortmatic&&!this.provider.isMetamask&&this.hasSendAsync()&&this.provider.send!==this.provider.sendAsync&&(this.provider.send=this.provider.sendAsync.bind(this.provider))}}class re{constructor(n){d(this,"storage");d(this,"connector");d(this,"promiseOfConnection");d(this,"getWalletName",()=>{if(this.connector instanceof _)return this.connector.getWalletName()});d(this,"clearConnectionData",()=>{const{storageKey:n}=I();this.storage.remove(n),_.clearStorage(this.storage)});d(this,"handleWeb3ReactDeactivate",async()=>{try{await this.disconnect()}catch(n){console.error(n)}});this.storage=n}async connect(n,e=h.ChainId.ETHEREUM_MAINNET){if(this.connector)try{await this.disconnect()}catch(a){console.error("Error disconnecting previous connection",a)}const t=this.buildConnector(n,e);t.on(C.Deactivate,this.handleWeb3ReactDeactivate);let{provider:r,account:o}={};try{const a=await t.activate();r=a.provider,o=a.account}catch(a){throw console.error("Error activating the connector",a),a}(n===l.ProviderType.MAGIC||n===l.ProviderType.MAGIC_TEST||n===l.ProviderType.THIRDWEB)&&t.on(C.Update,({chainId:a})=>{a&&this.setConnectionData(n,a)});let s=e;if(n===l.ProviderType.INJECTED){const a=await r.request({method:"eth_chainId"});s=a?parseInt(a,16):s}return this.connector=t,this.setConnectionData(n,s),{provider:M.adapt(r),providerType:n,account:o||"",chainId:s}}isConnected(){return!!this.connector&&!!this.getConnectionData()}async tryPreviousConnection(){const n=this.getConnectionData();if(!n)throw new Error("Could not find a valid provider. Make sure to call the `connect` method first");if(this.connector){const[t,r]=await Promise.all([this.connector.getProvider(),this.connector.getAccount()]);return{provider:t,providerType:n.providerType,chainId:n.chainId,account:r||""}}let e;try{e=this.promiseOfConnection?await this.promiseOfConnection:await(this.promiseOfConnection=this.connect(n.providerType,n.chainId))}finally{this.promiseOfConnection=void 0}return{...e,chainId:this.getConnectionData().chainId}}getAvailableProviders(){const n=[l.ProviderType.FORTMATIC,l.ProviderType.WALLET_CONNECT,l.ProviderType.WALLET_LINK];return typeof window<"u"&&window.ethereum!==void 0?n.unshift(l.ProviderType.INJECTED):n.unshift(l.ProviderType.METAMASK_MOBILE),n}async disconnect(){this.connector&&(this.connector.removeAllListeners(C.Deactivate),this.connector.removeAllListeners(C.Update),this.connector.deactivate(),this.isClosableConnector()&&await this.connector.close()),this.clearConnectionData(),this.connector=void 0}async getProvider(){if(!this.connector)throw new Error("No valid connector found. Please .connect() first");return this.connector.getProvider()}async getEmail(){const n=this.connector;if(n!=null&&n.getEmail)try{return await n.getEmail()}catch{return}}async createProvider(n,e=h.ChainId.ETHEREUM_MAINNET){const r=await this.buildConnector(n,e).getProvider();return M.adapt(r)}buildConnector(n,e){switch(n){case l.ProviderType.INJECTED:return new J(e);case l.ProviderType.FORTMATIC:return new z(e);case l.ProviderType.MAGIC:return new H(e);case l.ProviderType.MAGIC_TEST:return new ee(e);case l.ProviderType.WALLET_LINK:return new X(e);case l.ProviderType.NETWORK:return new Q(e);case l.ProviderType.WALLET_CONNECT_V2:return new _(e);case l.ProviderType.THIRDWEB:return new te(e);default:throw new Error(`Invalid provider ${n}`)}}getConnectionData(){const{storageKey:n}=I(),e=this.storage.get(n);try{return e?JSON.parse(e):void 0}catch(t){console.error("Error parsing connection data",t);return}}storeConnectionData(n,e){this.setConnectionData(n,e)}setConnectionData(n,e){const{storageKey:t}=I(),r=JSON.stringify({providerType:n,chainId:e});this.storage.set(t,r)}isClosableConnector(){return this.connector&&"close"in this.connector}}const Oe=new re(new Z),De=Object.freeze(Object.defineProperty({__proto__:null,AbstractConnector:E,ConnectionManager:re,ErrorUnlockingWallet:G,FortmaticConnector:z,InjectedConnector:J,MagicConnector:H,MagicTestConnector:ee,NetworkConnector:Q,ProviderAdapter:M,ThirdwebConnector:te,WalletConnectV2Connector:_,WalletLinkConnector:X,connection:Oe,getConfiguration:I,getRpcUrls:A},Symbol.toStringTag,{value:"Module"}));export{je as N,Oe as c,$ as e,De as i};
|
|
3
|
+
//# sourceMappingURL=index-Y7bxplKw.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import{w as
|
|
1
|
+
import{w as f,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x}from"./class-map-BaReYv7k.js";import{c as v,U as $}from"./index-Bj2y_yjG.js";import"./index-DSpJHztY.js";import{d as b,r as y,e as z}from"./index-CNhiEbnP.js";import"./index-CY3hUb7S.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]="13bf177b-328c-465a-b3ce-17fe131a0eec",e._sentryDebugIdIdentifier="sentry-dbid-13bf177b-328c-465a-b3ce-17fe131a0eec")}catch{}})();const S=f`<svg width="86" height="96" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
|
|
4
4
|
/>
|
|
5
|
-
</svg>`,k=
|
|
5
|
+
</svg>`,k=f`<svg viewBox="0 0 48 54" fill="none">
|
|
6
6
|
<path
|
|
7
7
|
d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
|
|
8
8
|
/>
|
|
9
|
-
</svg>`,I=
|
|
9
|
+
</svg>`,I=f`
|
|
10
10
|
<svg fill="none" viewBox="0 0 36 40">
|
|
11
11
|
<path
|
|
12
12
|
d="M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z"
|
|
13
13
|
/>
|
|
14
14
|
</svg>
|
|
15
|
-
`,C=
|
|
15
|
+
`,C=b`
|
|
16
16
|
:host {
|
|
17
17
|
position: relative;
|
|
18
18
|
border-radius: inherit;
|
|
@@ -65,7 +65,7 @@ import{w as g,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x
|
|
|
65
65
|
--local-width: var(--apkt-width-network-${this.size});
|
|
66
66
|
--local-height: var(--apkt-height-network-${this.size});
|
|
67
67
|
--local-icon-size: var(--apkt-spacing-${t[this.size]});
|
|
68
|
-
`,l`${this.templateVisual()} ${this.svgTemplate()} `}svgTemplate(){return this.round?null:this.networkImagesBySize[this.size]}templateVisual(){return this.imageSrc?l`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:l`<wui-icon size="inherit" color="default" name="networkPlaceholder"></wui-icon>`}};u.styles=[y,C];m([o()],u.prototype,"size",void 0);m([o()],u.prototype,"name",void 0);m([o({type:Object})],u.prototype,"networkImagesBySize",void 0);m([o()],u.prototype,"imageSrc",void 0);m([o({type:Boolean})],u.prototype,"selected",void 0);m([o({type:Boolean})],u.prototype,"round",void 0);u=m([
|
|
68
|
+
`,l`${this.templateVisual()} ${this.svgTemplate()} `}svgTemplate(){return this.round?null:this.networkImagesBySize[this.size]}templateVisual(){return this.imageSrc?l`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:l`<wui-icon size="inherit" color="default" name="networkPlaceholder"></wui-icon>`}};u.styles=[y,C];m([o()],u.prototype,"size",void 0);m([o()],u.prototype,"name",void 0);m([o({type:Object})],u.prototype,"networkImagesBySize",void 0);m([o()],u.prototype,"imageSrc",void 0);m([o({type:Boolean})],u.prototype,"selected",void 0);m([o({type:Boolean})],u.prototype,"round",void 0);u=m([v("wui-network-image")],u);const _=b`
|
|
69
69
|
:host {
|
|
70
70
|
position: relative;
|
|
71
71
|
background-color: ${({tokens:e})=>e.theme.foregroundTertiary};
|
|
@@ -138,7 +138,7 @@ import{w as g,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x
|
|
|
138
138
|
border: 2px solid ${({tokens:e})=>e.theme.backgroundPrimary};
|
|
139
139
|
padding: 1px;
|
|
140
140
|
}
|
|
141
|
-
`;var
|
|
141
|
+
`;var g=function(e,t,r,a){var s=arguments.length,i=s<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,r):a,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,a);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(i=(s<3?n(i):s>3?n(t,r,i):n(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i};let p=class extends w{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let t="1";return this.size==="lg"?t="4":this.size==="md"?t="2":this.size==="sm"&&(t="1"),this.style.cssText=`
|
|
142
142
|
--local-border-radius: var(--apkt-borderRadius-${t});
|
|
143
143
|
`,this.dataset.size=this.size,this.imageSrc&&(this.dataset.image="true"),this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),l`
|
|
144
144
|
<wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
|
|
@@ -147,7 +147,7 @@ import{w as g,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x
|
|
|
147
147
|
size="inherit"
|
|
148
148
|
color="inherit"
|
|
149
149
|
name="wallet"
|
|
150
|
-
></wui-icon>`}};p.styles=[y,_];
|
|
150
|
+
></wui-icon>`}};p.styles=[y,_];g([o()],p.prototype,"size",void 0);g([o()],p.prototype,"name",void 0);g([o()],p.prototype,"imageSrc",void 0);g([o()],p.prototype,"walletIcon",void 0);g([o({type:Boolean})],p.prototype,"installed",void 0);g([o()],p.prototype,"badgeSize",void 0);p=g([v("wui-wallet-image")],p);const j=b`
|
|
151
151
|
button {
|
|
152
152
|
display: flex;
|
|
153
153
|
align-items: center;
|
|
@@ -221,5 +221,5 @@ import{w as g,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x
|
|
|
221
221
|
<wui-text variant="lg-regular" color="primary">
|
|
222
222
|
${$.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?16:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"})}
|
|
223
223
|
</wui-text>
|
|
224
|
-
`}rightImageTemplate(){return l`<wui-icon name="chevronBottom" size="sm" color="default"></wui-icon>`}};c.styles=[y,z,j];h([o()],c.prototype,"address",void 0);h([o()],c.prototype,"profileName",void 0);h([o()],c.prototype,"alt",void 0);h([o()],c.prototype,"imageSrc",void 0);h([o()],c.prototype,"icon",void 0);h([o()],c.prototype,"iconSize",void 0);h([o({type:Boolean})],c.prototype,"enableGreenCircle",void 0);h([o({type:Boolean})],c.prototype,"loading",void 0);h([o({type:Number})],c.prototype,"charsStart",void 0);h([o({type:Number})],c.prototype,"charsEnd",void 0);c=h([
|
|
225
|
-
//# sourceMappingURL=index-
|
|
224
|
+
`}rightImageTemplate(){return l`<wui-icon name="chevronBottom" size="sm" color="default"></wui-icon>`}};c.styles=[y,z,j];h([o()],c.prototype,"address",void 0);h([o()],c.prototype,"profileName",void 0);h([o()],c.prototype,"alt",void 0);h([o()],c.prototype,"imageSrc",void 0);h([o()],c.prototype,"icon",void 0);h([o()],c.prototype,"iconSize",void 0);h([o({type:Boolean})],c.prototype,"enableGreenCircle",void 0);h([o({type:Boolean})],c.prototype,"loading",void 0);h([o({type:Number})],c.prototype,"charsStart",void 0);h([o({type:Number})],c.prototype,"charsEnd",void 0);c=h([v("wui-wallet-switch")],c);export{k as n};
|
|
225
|
+
//# sourceMappingURL=index-ZrIhKrUY.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as f,b as d}from"./lit-element-wjYUA6aF.js";import{n as a}from"./class-map-
|
|
1
|
+
import{i as f,b as d}from"./lit-element-wjYUA6aF.js";import{n as a}from"./class-map-BaReYv7k.js";import{c as p}from"./index-Bj2y_yjG.js";import"./index-DSpJHztY.js";import{d as b,r as g,e as w}from"./index-CNhiEbnP.js";import{N as m}from"./W3MFrameProviderSingleton-D0jWw1Cc.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]="27143b99-8080-4c6b-aea3-a3e86a76e931",e._sentryDebugIdIdentifier="sentry-dbid-27143b99-8080-4c6b-aea3-a3e86a76e931")}catch{}})();const h=b`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
@@ -76,4 +76,4 @@ import{i as f,b as d}from"./lit-element-wjYUA6aF.js";import{n as a}from"./class-
|
|
|
76
76
|
</wui-flex>
|
|
77
77
|
</button>
|
|
78
78
|
`}visualTemplate(){return this.tokenName&&this.tokenImageUrl?d`<wui-image alt=${this.tokenName} src=${this.tokenImageUrl}></wui-image>`:d`<wui-icon name="coinPlaceholder" color="default"></wui-icon>`}};o.styles=[g,w,h];r([a()],o.prototype,"tokenName",void 0);r([a()],o.prototype,"tokenImageUrl",void 0);r([a({type:Number})],o.prototype,"tokenValue",void 0);r([a()],o.prototype,"tokenAmount",void 0);r([a()],o.prototype,"tokenCurrency",void 0);r([a({type:Boolean})],o.prototype,"clickable",void 0);o=r([p("wui-list-token")],o);
|
|
79
|
-
//# sourceMappingURL=index-
|
|
79
|
+
//# sourceMappingURL=index-_5dLlQT_.js.map
|