@dcl/shop 1.6.4-31480376613.commit-0bb9931 → 1.6.4-31494185742.commit-073ced9
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-D8Y6G4Y1.js → Activity-C_DyVCyA.js} +9 -9
- package/_assets/{AnimatedBackground-C7qBwvsp.js → AnimatedBackground-D-lT37GD.js} +6 -6
- package/_assets/{Assets-D1Myk4mW.js → Assets-D8cbC6MI.js} +24 -24
- package/_assets/{Authorizations-DHZOpUMW.js → Authorizations-D28tWhhS.js} +2 -2
- package/_assets/{Cart-Dn2sNZbI.js → Cart-DXK4vEap.js} +4 -4
- package/_assets/{CircularProgress-D7nr8zvc.js → CircularProgress-BAv9N7Ij.js} +6 -6
- package/_assets/{Collection-D_wOHgFg.js → Collection-DaTtdplL.js} +10 -10
- package/_assets/{CollectionCarousel-DCt4NWvX.js → CollectionCarousel-DDUpzk1C.js} +59 -59
- package/_assets/Confetti-BWDWjq04.js +18 -0
- package/_assets/{ConstantsUtil-lBURo-5M.js → ConstantsUtil-DmXobmYS.js} +2 -2
- package/_assets/{ContentClient-D47cn4cd.js → ContentClient-BbCCAUK1.js} +2 -2
- package/_assets/{Creator-BTvR4L5i.js → Creator-CShT8DwZ.js} +18 -18
- package/_assets/DeploymentBuilder-CZ2ntoDg.js +4 -0
- package/_assets/EmotePlaybackBar-QGZAZNmS.js +121 -0
- package/_assets/{ErrorNotice-BF2OJpNh.js → ErrorNotice-CQFq9JZk.js} +2 -2
- package/_assets/{ExchangeController-DA7i527B.js → ExchangeController-C5ccpgqt.js} +2 -2
- package/_assets/{Faq-DaK46DZt.js → Faq-B6YFpxai.js} +2 -2
- package/_assets/{GetCredits-CPwkY6zf.js → GetCredits-DI3PCkhf.js} +10 -10
- package/_assets/Grow-yI4yCXXZ.js +2 -0
- package/_assets/{HelpersUtil-BDeLwE1U.js → HelpersUtil-xC7DZviw.js} +2 -2
- package/_assets/{ItemDetail-DgCCo4Ga.js → ItemDetail-JKGUzC0P.js} +235 -351
- package/_assets/{JumpInIcon-DCKe9LOU.js → JumpInIcon-C5gGAnmP.js} +2 -2
- package/_assets/{LoadMore-rKbDGkef.js → LoadMore-DyZz_VHm.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-YalgApkM.js → ManaPricingBanner.styles-DbM4es1x.js} +7 -7
- package/_assets/{MyAssets-Do--yjZ7.js → MyAssets-DcViCKub.js} +8 -8
- package/_assets/{MyFavorites-DaSWflmb.js → MyFavorites-99_6-7XE.js} +6 -6
- package/_assets/{NetworkUtil-DXqn8-PK.js → NetworkUtil-BO3cBEpF.js} +2 -2
- package/_assets/{NotFound-C9IH0Jog.js → NotFound-BY1h7CTz.js} +2 -2
- package/_assets/NotificationsBell-CZ3MWxr8.js +142 -0
- package/_assets/OutfitDetail-CDebIzmE.js +368 -0
- package/_assets/OutfitPreview-BXChxeo1.js +7 -0
- package/_assets/{OutfitStudio-CIrUif98.js → OutfitStudio-UMriL_VN.js} +47 -47
- package/_assets/{PhArrowCircleDown-LMy4WE7D.js → PhArrowCircleDown-DBmTctYK.js} +5 -5
- package/_assets/{PhArrowClockwise-B7efjCn9.js → PhArrowClockwise-ZWBqR1iF.js} +4 -4
- package/_assets/{PhArrowDown-Bwdqa9_E.js → PhArrowDown-WIeXIufM.js} +4 -4
- package/_assets/{PhArrowLeft-DuBXpz8N.js → PhArrowLeft-DvlPA_kr.js} +3 -3
- package/_assets/{PhArrowRight-z9Dl361F.js → PhArrowRight-CcUcrmQK.js} +4 -4
- package/_assets/{PhArrowSquareOut-B8fjTbIa.js → PhArrowSquareOut-eQSuZWr9.js} +4 -4
- package/_assets/{PhArrowUp-DkrWYIAz.js → PhArrowUp-oNKVxFhx.js} +5 -5
- package/_assets/{PhArrowUpRight-BmMKHv_H.js → PhArrowUpRight-mk1FSkK1.js} +3 -3
- package/_assets/{PhArrowsClockwise-CvNc1TwT.js → PhArrowsClockwise-DvXb79Nq.js} +2 -2
- package/_assets/{PhArrowsDownUp-sU4tJwkL.js → PhArrowsDownUp-fJXobkfl.js} +5 -5
- package/_assets/{PhArrowsLeftRight-Inahzprd.js → PhArrowsLeftRight-DsRlafed.js} +3 -3
- package/_assets/{PhBank-BD-K_cfz.js → PhBank-BxBmdtlc.js} +5 -5
- package/_assets/{PhBrowser-DVRvcu4M.js → PhBrowser-TbGdYALn.js} +4 -4
- package/_assets/PhCaretDown-DjcNJ1zq.js +15 -0
- package/_assets/{PhCaretLeft-pF_g8dOz.js → PhCaretLeft-BkF0xuuP.js} +3 -3
- package/_assets/{PhCaretRight-Dl0sRgp0.js → PhCaretRight-cZcclogr.js} +3 -3
- package/_assets/PhCaretUp-BTUuw_V5.js +15 -0
- package/_assets/{PhCheck-D5l8KeSX.js → PhCheck-Dok-YRwJ.js} +4 -4
- package/_assets/{PhCircleHalf-BvUuifqe.js → PhCircleHalf-C_G0Deju.js} +4 -4
- package/_assets/{PhClock-BgqN1MJg.js → PhClock-DxtyCCHN.js} +3 -3
- package/_assets/{PhCompass-Dptb6Trt.js → PhCompass-Cr5Wk3ha.js} +4 -4
- package/_assets/{PhCopy-of33PGSB.js → PhCopy-DpSRSBDo.js} +5 -5
- package/_assets/{PhCreditCard-cGVosjKz.js → PhCreditCard-rQSlkLhU.js} +5 -5
- package/_assets/{PhCurrencyDollar-PwdaRdae.js → PhCurrencyDollar-DSXfHZr-.js} +4 -4
- package/_assets/{PhDesktop-Bhi2QPLf.js → PhDesktop-B8t_jyeP.js} +2 -2
- package/_assets/{PhDeviceMobile-CmgmYUdD.js → PhDeviceMobile-CKMo2R-O.js} +2 -2
- package/_assets/{PhDotsThree-Bp1v1FK6.js → PhDotsThree-CBBnUUK5.js} +3 -3
- package/_assets/{PhEnvelope-D6Hu8w_1.js → PhEnvelope-B3Ot4kfs.js} +4 -4
- package/_assets/{PhFunnelSimple-DKlL8A4i.js → PhFunnelSimple-ST58vUHY.js} +4 -4
- package/_assets/{PhGlobe-7uylPeNu.js → PhGlobe-B1QBE0Ic.js} +3 -3
- package/_assets/{PhIdentificationCard-BED247mY.js → PhIdentificationCard-CmHEoEuJ.js} +2 -2
- package/_assets/{PhImage-FOrY1Sk8.js → PhImage-BM2XMyb9.js} +5 -5
- package/_assets/{PhInfo-CaWDFvIR.js → PhInfo-DfmzAoRe.js} +4 -4
- package/_assets/{PhLightbulb-B75QV9EL.js → PhLightbulb-Dhfv4D4c.js} +2 -2
- package/_assets/{PhMagnifyingGlass-adS5yhrC.js → PhMagnifyingGlass-Djq6rEa-.js} +5 -5
- package/_assets/{PhPaperPlaneRight-BbRgMArn.js → PhPaperPlaneRight-d8LGOK8o.js} +4 -4
- package/_assets/{PhPlus-Bl3EEBwL.js → PhPlus-B6aOwiLq.js} +5 -5
- package/_assets/{PhPower-GunSTWQq.js → PhPower-DAs5tvdn.js} +3 -3
- package/_assets/{PhPuzzlePiece-BWgi2L03.js → PhPuzzlePiece-C5F9l0Xz.js} +4 -4
- package/_assets/{PhQrCode-D0-Wqehu.js → PhQrCode-DjCH9MIj.js} +2 -2
- package/_assets/{PhQuestion-DwVCTKdM.js → PhQuestion-Bd3_nr1y.js} +3 -3
- package/_assets/{PhQuestionMark-CgTbmVtJ.js → PhQuestionMark-Chm0gISn.js} +3 -3
- package/_assets/{PhSealCheck-Dk3N_Xq2.js → PhSealCheck-BighefRp.js} +2 -2
- package/_assets/{PhSignOut-BvXl5dyB.js → PhSignOut-X3VDO26Z.js} +2 -2
- package/_assets/{PhSpinner-DzLQccU8.js → PhSpinner-CMt3xHt0.js} +4 -4
- package/_assets/{PhTrash-TPE0FvJz.js → PhTrash-CBxSNELa.js} +2 -2
- package/_assets/{PhUser-D1oy0lLc.js → PhUser-zWIlEtkm.js} +5 -5
- package/_assets/{PhVault-ByF05VqU.js → PhVault-B5GZzffa.js} +2 -2
- package/_assets/{PhWallet-D75iTvtf.js → PhWallet-D6uFkw0p.js} +3 -3
- package/_assets/{PhWarning-Jaj21PeP.js → PhWarning-C2cnWjQI.js} +5 -5
- package/_assets/{PhWarningCircle-DBt_0tnC.js → PhWarningCircle-BN86yUC5.js} +4 -4
- package/_assets/{PhX-DZ578mpg.js → PhX-D9xXQPUU.js} +5 -5
- package/_assets/{StoreSettings-DiDEymfb.js → StoreSettings-BxrIpG7R.js} +2 -2
- package/_assets/{Success-W72Gr_yr.js → Success-tsWoidfO.js} +2 -2
- package/_assets/{SwapController-CwiooA4W.js → SwapController--Dxy-fxj.js} +2 -2
- package/_assets/{Tooltip-B3I8arON.js → Tooltip-DX2f1YE-.js} +3 -3
- package/_assets/{TradeService-a_NBc4yW.js → TradeService-B5FOQlxR.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-D3pkilIG.js → W3MFrameProviderSingleton-bFMDUf2u.js} +4 -4
- package/_assets/{WebCryptoP256-BgkA904K.js → WebCryptoP256-Bv9JCbZi.js} +2 -2
- package/_assets/{add-tNqIWcMg.js → add-CSXcCGk_.js} +2 -2
- package/_assets/{all-wallets-B8nlg7MV.js → all-wallets-DqZYwMwo.js} +3 -3
- package/_assets/{app-store-9-kKdmJ6.js → app-store-BefptbeL.js} +3 -3
- package/_assets/{apple-DvojoPdF.js → apple-Bfh__HiP.js} +2 -2
- package/_assets/{arrow-bottom--df_76nG.js → arrow-bottom-B24463bX.js} +2 -2
- package/_assets/{arrow-bottom-circle-B2DyGh2W.js → arrow-bottom-circle-u1TPNWtr.js} +2 -2
- package/_assets/{arrow-left-Fb0mZ7Y-.js → arrow-left-BvEq2K0o.js} +2 -2
- package/_assets/{arrow-right-BixOWpB1.js → arrow-right-W2XAOWM7.js} +2 -2
- package/_assets/arrow-top-nu1PUCK6.js +9 -0
- package/_assets/async-directive--Ed0QLAK.js +10 -0
- package/_assets/authorizations-L1fqOfS7.js +2 -0
- package/_assets/{bank-CMW6OQj8.js → bank-BBag9zS_.js} +3 -3
- package/_assets/{basic-DchQuRu2.js → basic-BRdM56H5.js} +2 -2
- package/_assets/{biconomy-CsEB28IW.js → biconomy-D7kEkRQQ.js} +2 -2
- package/_assets/{browseLayout.styles-g9AiUl5C.js → browseLayout.styles-Bx2-O-Vq.js} +8 -8
- package/_assets/{browser-DFE3CTqg.js → browser-CPTAYjan.js} +3 -3
- package/_assets/{browser-C14MabGh.js → browser-Cb7IZ4Q0.js} +2 -2
- package/_assets/{browser-ponyfill-NoPd19Nq.js → browser-ponyfill-hviyRt32.js} +2 -2
- package/_assets/{builder-CxSl0afD.js → builder-CdkuxPcB.js} +2 -2
- package/_assets/buy-J4GpDKQb.js +2 -0
- package/_assets/{buy-gasless-6eHLQLUv.js → buy-gasless-8aFOndAU.js} +2 -2
- package/_assets/{card-BVdWO709.js → card-C81sr-3j.js} +2 -2
- package/_assets/{ccip-DZYHSe6i.js → ccip-BfH4aWKo.js} +2 -2
- package/_assets/{ccip-DqGck39w.js → ccip-C8HxXURl.js} +2 -2
- package/_assets/{chains-7s4Wyd5G.js → chains-QljlkgmZ.js} +2 -2
- package/_assets/{checkmark-DjsMr40Z.js → checkmark-Bo-gp4Ll.js} +2 -2
- package/_assets/{checkmark-bold-DCuG-0NX.js → checkmark-bold-CrqYbcSP.js} +3 -3
- package/_assets/chevron-bottom-B7xC8zte.js +9 -0
- package/_assets/chevron-left-KdfBU_7V.js +9 -0
- package/_assets/{chevron-right-Bqz0HIJD.js → chevron-right-r7vxjQcl.js} +3 -3
- package/_assets/{chevron-top-Ce8rthjR.js → chevron-top-B9aXAl0y.js} +3 -3
- package/_assets/{chrome-store-CWYMTzwh.js → chrome-store-DtnWFF8y.js} +2 -2
- package/_assets/{class-map-HS20q_81.js → class-map-C1Xjz5Lx.js} +2 -2
- package/_assets/{clock-DNaUSRmN.js → clock-Baa7165K.js} +3 -3
- package/_assets/{close-Va7Wt97F.js → close-wDYvpJu8.js} +3 -3
- package/_assets/{coinPlaceholder-QyY4J5WZ.js → coinPlaceholder-De2q0FMg.js} +2 -2
- package/_assets/collectionPage.styles-BkgVOsrI.js +40 -0
- package/_assets/common-CiLGUgvc.js +2 -0
- package/_assets/{compass-gauDPeQF.js → compass-BP3lwd_h.js} +2 -2
- package/_assets/{controller-DtoJ-OaD.js → controller-D4ISB-Ux.js} +3 -3
- package/_assets/{copy-Cfnp8Gxd.js → copy-EHnRey4G.js} +2 -2
- package/_assets/{core-xPw2YS_6.js → core-K5DDMzgG.js} +5 -5
- package/_assets/createSvgIcon-jQ8w9P2p.js +75 -0
- package/_assets/cursor-BuTKrcda.js +4 -0
- package/_assets/{cursor-transparent-wEHWEbGv.js → cursor-transparent-7tV62vAu.js} +3 -3
- package/_assets/{custom-DX-ni0bf.js → custom-D0McaOeR.js} +2 -2
- package/_assets/{data-capture-DDUt2YHs.js → data-capture-B2MNUoEQ.js} +5 -5
- package/_assets/{dcl-schemas-GQNC2S4Z.js → dcl-schemas-B7N0eru-.js} +2 -2
- package/_assets/decimals-Brknvks1.js +2 -0
- package/_assets/decimals-nQjcHjdS.js +2 -0
- package/_assets/{desktop-wmxiQg3x.js → desktop-wbkE-tMP.js} +3 -3
- package/_assets/detectExtension-BQQNg9HL.js +2 -0
- package/_assets/{disconnect-CW0SedIh.js → disconnect-DR7Yq8KR.js} +3 -3
- package/_assets/{discord-r-2ftUs2.js → discord-BcAZXa5x.js} +3 -3
- package/_assets/{disposePreview-Cy4cRo5W.js → disposePreview-DOTMbNIL.js} +2 -2
- package/_assets/{email-BpdO4wU1.js → email-CvVmFKN_.js} +2 -2
- package/_assets/{embedded-wallet-CGXhcRnj.js → embedded-wallet-BgIDj_He.js} +2 -2
- package/_assets/emotion-styled.browser.esm-l1b-waPF.js +2 -0
- package/_assets/{engine-KDQOQrhD.js → engine-BXWuGVnM.js} +2 -2
- package/_assets/{errors-Brkvnldx.js → errors-BMbfdYXo.js} +2 -2
- package/_assets/estimate-l1-fee-CD8k5CcZ.js +2 -0
- package/_assets/eth_estimateGas-Sb0CyY7J.js +2 -0
- package/_assets/eth_getStorageAt-hwP6UkYl.js +2 -0
- package/_assets/eth_getTransactionCount-D6n8U-h9.js +2 -0
- package/_assets/ethereum-CdaH_wYa.js +2 -0
- package/_assets/{ethers-CUPuVG6E.js → ethers-BkKdfT9C.js} +2 -2
- package/_assets/{etherscan-DJ0SXy-j.js → etherscan-DmDyp2wT.js} +2 -2
- package/_assets/{events-BR9mruU0.js → events-BlrWpEou.js} +2 -2
- package/_assets/{exclamation-triangle-Cx-Rg-Q1.js → exclamation-triangle-COwloaAZ.js} +3 -3
- package/_assets/{execute-C99VvcVc.js → execute-Bgz1cqK3.js} +3 -3
- package/_assets/{extension-f7z5q8eX.js → extension-BXZVsCm9.js} +3 -3
- package/_assets/external-link-DY6qwfgd.js +9 -0
- package/_assets/extractIPFS-B_b734Ng.js +2 -0
- package/_assets/{facebook-CGRggpq_.js → facebook-Ce3bxU5i.js} +3 -3
- package/_assets/{farcaster-BDJUKKnv.js → farcaster-5HoyJqWe.js} +2 -2
- package/_assets/{features-DOohSNgk.js → features-CDKG7Hmz.js} +2 -2
- package/_assets/{fetchTokenMetadata-BDnZO97p.js → fetchTokenMetadata-CuIpFNuV.js} +3 -3
- package/_assets/{field.styles-TKt4L2KD.js → field.styles-BEMLDik4.js} +2 -2
- package/_assets/{filters-CC5vo2yt.js → filters-B_7HUVyj.js} +2 -2
- package/_assets/{fortmatic-BaGeZDMU.js → fortmatic-DJHaYrrp.js} +2 -2
- package/_assets/{get-bytecode-BixykfJN.js → get-bytecode-gNcBspSb.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-BSKjbFVc.js +2 -0
- package/_assets/{getBalance-DPyDJTKl.js → getBalance-Bdnv0kW5.js} +3 -3
- package/_assets/getInstalledModules-CJuZfnID.js +2 -0
- package/_assets/getNFT-CX_RJMGs.js +2 -0
- package/_assets/getNFT-DSm8i4P2.js +3 -0
- package/_assets/{github-EOSVHy2c.js → github-psRgdSRX.js} +3 -3
- package/_assets/{google-B7KfKj7W.js → google-zz0wXA6h.js} +3 -3
- package/_assets/{grid.styles-J0kTBoI2.js → grid.styles-DNxH7mV3.js} +2 -2
- package/_assets/{hashTypedData-DcXkmV5f.js → hashTypedData-CkPFl3_v.js} +2 -2
- package/_assets/{hashTypedData-BsX3fUxc.js → hashTypedData-D_L1qSVl.js} +2 -2
- package/_assets/{help-circle-BN_J5ISd.js → help-circle-CaVlHgtL.js} +3 -3
- package/_assets/{id-Be22hW3B.js → id-B-QQrIC1.js} +2 -2
- package/_assets/{image-Cn3EeNg1.js → image-C2jmt9mb.js} +2 -2
- package/_assets/{in-app-DZydcaQ1.js → in-app-C9E9dDZI.js} +2 -2
- package/_assets/in-app-wallet-calls-DPGYJ367.js +2 -0
- package/_assets/{index-B52RzpJA.js → index-4yhVggIG.js} +7 -7
- package/_assets/{index-8LX2pFjK.js → index-B0ccjlO6.js} +2 -2
- package/_assets/{index-CFMzpbyt.js → index-B6nKOltb.js} +5 -5
- package/_assets/index-B9GfX6nZ.js +2 -0
- package/_assets/{index-BrKObU0x.js → index-BEG59V5m.js} +2 -2
- package/_assets/{index-HraWNoBF.js → index-BFF4Wtrd.js} +2 -2
- package/_assets/{index-B_wakS41.js → index-BGwihxy_.js} +5 -5
- package/_assets/{index-CI24MaW_.js → index-BLgyhnOB.js} +4 -4
- package/_assets/{index-DWInL6jk.js → index-BM_MJWEH.js} +2 -2
- package/_assets/{index-DPvR_Oj-.js → index-BTX_br9V.js} +9 -9
- package/_assets/{index-BcBannTx.js → index-BU0s0YsV.js} +4 -4
- package/_assets/{index-B3lay0v6.js → index-BY__a_k2.js} +2 -2
- package/_assets/{index-vvKQ8mTM.js → index-BfnkwKPb.js} +2 -2
- package/_assets/{index-pqSlHrGo.js → index-Bgt4rfvD.js} +6 -6
- package/_assets/{index-BeDNyZpj.js → index-Bpwj5aZq.js} +4 -4
- package/_assets/{index-BL18QLtU.js → index-By-t24sM.js} +3 -3
- package/_assets/{index-BnsHRBeE.js → index-C28Y4GfS.js} +2 -2
- package/_assets/{index-DQCm5vaX.js → index-C5nsVAlg.js} +4 -4
- package/_assets/{index-BVfTPvK9.js → index-C8faQr7o.js} +6 -6
- package/_assets/{index-DOslveRj.js → index-CDOKfAP4.js} +2 -2
- package/_assets/{index-CUheiI-E.js → index-CEppIgvP.js} +2 -2
- package/_assets/{index-BMDu2mdy.js → index-CI_FtP_H.js} +2 -2
- package/_assets/{index-BcULiBCS.js → index-CP_iyrgK.js} +2 -2
- package/_assets/{index-WVfEF4b3.js → index-CX6GgppK.js} +2 -2
- package/_assets/{index-DsoyNhv-.js → index-CYvy7wCe.js} +3 -3
- package/_assets/{index-Uej0dSK3.js → index-CaCe6h0N.js} +2 -2
- package/_assets/{index-qKSuRCD6.js → index-Co9K1tjr.js} +4 -4
- package/_assets/{index-BhEa9XGv.js → index-CraVdd2d.js} +3 -3
- package/_assets/{index-Cw2Mzm-8.js → index-Cu5eVIZW.js} +362 -362
- package/_assets/{index-BWmu3BiF.js → index-CwNIDAnY.js} +2 -2
- package/_assets/{index-CuhZ_hWz.js → index-CzZWufck.js} +2 -2
- package/_assets/{index-DajzqRze.js → index-D6fPXOZ4.js} +2 -2
- package/_assets/{index-BVUfE7bm.js → index-DFnUCHot.js} +2 -2
- package/_assets/{index-BN1rpNEw.js → index-DJLxyn97.js} +2 -2
- package/_assets/{index-BEWPbHqK.js → index-DKaT9l79.js} +2 -2
- package/_assets/{index-C-nlat3H.js → index-DO45kEGr.js} +2 -2
- package/_assets/{index-B__8UZ2Y.js → index-DO_-UENh.js} +3 -3
- package/_assets/{index-CPyWbAeJ.js → index-DOzfFnyE.js} +4 -4
- package/_assets/index-DPpkCfLd.js +3 -0
- package/_assets/index-DRo9jHl4.js +20 -0
- package/_assets/{index-C7ue1mzF.js → index-DSP9Iqsl.js} +2 -2
- package/_assets/{index-B0z-GyUF.js → index-DTNGUu91.js} +4 -4
- package/_assets/{index-BX41uI4v.js → index-DTbvu0hT.js} +3 -3
- package/_assets/index-DYMM7Afr.js +2 -0
- package/_assets/{index-DIQ7F0eH.js → index-DYW8pzZb.js} +16 -16
- package/_assets/index-Dgc1gfL1.js +2 -0
- package/_assets/{index-Clbb31dZ.js → index-DmE5-xxa.js} +2 -2
- package/_assets/{index-r8KGLAPF.js → index-Doi6JSqd.js} +4 -4
- package/_assets/{index-BAqO9-Bf.js → index-Dp15POCn.js} +3 -3
- package/_assets/{index-By5RPCnU.js → index-DpMteDL_.js} +2 -2
- package/_assets/{index-Bs6whiAj.js → index-DqrCl0kP.js} +3 -3
- package/_assets/index-DweogHqy.js +31 -0
- package/_assets/{index-MWJqCMed.js → index-FGc7ie14.js} +4 -4
- package/_assets/{index-WV7ah7AN.js → index-QbWS9hvW.js} +7 -7
- package/_assets/{index-oMtL-8Re.js → index-S4yRhouQ.js} +3 -3
- package/_assets/{index-BjeFPZ5z.js → index-SVRM6Dll.js} +4 -4
- package/_assets/{index-CZasRrEA.js → index-SunvF2qC.js} +2 -2
- package/_assets/{index-B47oSrUZ.js → index-Vp2Cyuj4.js} +27 -27
- package/_assets/{index-BwYOC1g7.js → index-Z-om_lRF.js} +6 -6
- package/_assets/{index-CD6ZAwbw.js → index-aWFzd6wN.js} +2 -2
- package/_assets/{index-B4NGc66i.js → index-e1KWQKJ8.js} +2 -2
- package/_assets/{index-CyBLTYa7.js → index-fo9dMw9r.js} +2 -2
- package/_assets/{index-BZE48mP9.js → index-hoLwFlPj.js} +4 -4
- package/_assets/{index-g1PYBhHE.js → index-hwD8qF60.js} +2 -2
- package/_assets/{index-D8eojdJO.js → index-s1Nr5kQ7.js} +2 -2
- package/_assets/{index-B9vrVQnr.js → index-y_hMciTd.js} +3 -3
- package/_assets/{index-BGfUDEWl.js → index-zb1ns0z6.js} +2 -2
- package/_assets/{index.es-DTC1ULyQ.js → index.es-4--UzZWx.js} +2 -2
- package/_assets/{index.es-Diay8m1a.js → index.es-BDVK5TD-.js} +5 -5
- package/_assets/{index.es-BgTosg8l.js → index.es-Dx_CaY31.js} +2 -2
- package/_assets/{index.es-DOcz4_Vt.js → index.es-nq7gaPcg.js} +2 -2
- package/_assets/{info-CwfqZ_F5.js → info-OmyNm-OX.js} +2 -2
- package/_assets/{info-circle-DulYFvYW.js → info-circle-BXcv2mSp.js} +3 -3
- package/_assets/{items-empty-rljSVFED.js → items-empty-R5WK5PMK.js} +2 -2
- package/_assets/jsxRuntime.module-MtWsgs3K.js +2 -0
- package/_assets/{lightbulb-CE_dw_oh.js → lightbulb-BhYYPKCa.js} +3 -3
- package/_assets/{linkAccount-CW__m-WC.js → linkAccount-Ckk5_NQN.js} +2 -2
- package/_assets/{localBatchGatewayRequest-u70ohVze.js → localBatchGatewayRequest-DKK4zzfW.js} +2 -2
- package/_assets/{mail-DJ6kL25J.js → mail-BujAiJT_.js} +3 -3
- package/_assets/{mobile-fDCl_uHz.js → mobile-DbqgdYYl.js} +2 -2
- package/_assets/{more-C7_Whde7.js → more-DW0Ubi-A.js} +2 -2
- package/_assets/{native-Bo3oXbRP.js → native-CV9XiVhM.js} +2 -2
- package/_assets/{network-placeholder-Cz4dQYwV.js → network-placeholder-9yKv-UCl.js} +2 -2
- package/_assets/{networks-DRc-xttk.js → networks-CkKZfG02.js} +2 -2
- package/_assets/{nftPlaceholder-BihS-dFi.js → nftPlaceholder-Dp7HrYOG.js} +3 -3
- package/_assets/off-B06N3u5j.js +9 -0
- package/_assets/{onramp-DR2jE7ju.js → onramp-BFizGcOi.js} +2 -2
- package/_assets/openzeppelin-D8oUHnq0.js +2 -0
- package/_assets/ownerOf-WC38y5s4.js +2 -0
- package/_assets/parseNft-DR3O7nQ-.js +3 -0
- package/_assets/{parseSignature-pmUjv56d.js → parseSignature-DAMunqPV.js} +4 -4
- package/_assets/{parseSignature-D8LS2zK_.js → parseSignature-DY-_UuqO.js} +2 -2
- package/_assets/{passkeys-C7wzWFTM.js → passkeys-BNNATNLz.js} +2 -2
- package/_assets/{pay-with-exchange-BjDhbRAJ.js → pay-with-exchange-KOKj4Qv1.js} +2 -2
- package/_assets/{play-store-BoegC4yH.js → play-store-CGV0O_Jz.js} +2 -2
- package/_assets/{plus-CGZQ4v4u.js → plus-D8Do9lRK.js} +3 -3
- package/_assets/{prepare-contract-call-nLDmJVit.js → prepare-contract-call-oS4Lc2oD.js} +2 -2
- package/_assets/{qr-code-D4FwFoJ2.js → qr-code-CnvkPJlE.js} +3 -3
- package/_assets/{qr-overlay-CIPmMXer.js → qr-overlay-_xsParJI.js} +4 -4
- package/_assets/{react-BHaOXxRY.js → react-CqRdBiAM.js} +3 -3
- package/_assets/{receive-CcNZE2if.js → receive-iFQ-ua7F.js} +7 -7
- package/_assets/{recycle-horizontal-BQghFdmJ.js → recycle-horizontal-BUI1wFhc.js} +2 -2
- package/_assets/{ref-CRG-0jL7.js → ref-LkxlwUph.js} +3 -3
- package/_assets/{refresh-BeYZoKSh.js → refresh-gWkM7TpU.js} +3 -3
- package/_assets/{reown-logo-BUmcB6sW.js → reown-logo-CpiN-NOh.js} +3 -3
- package/_assets/{resolveImplementation-DXWpYEj6.js → resolveImplementation-Bi9lyu0O.js} +2 -2
- package/_assets/{resume-buy-BVqIQtWn.js → resume-buy-DHJviuUy.js} +2 -2
- package/_assets/{rpc-ClZWzOlg.js → rpc-BIlCH0jz.js} +4 -4
- package/_assets/sales-empty-Lf9utCfp.js +2 -0
- package/_assets/{search-b1pLcQ0Q.js → search-Wn0h8HYX.js} +3 -3
- package/_assets/{search-empty-BCkNykRb.js → search-empty-DZykHPpC.js} +2 -2
- package/_assets/{secp256k1-DYJNbcF0.js → secp256k1-CSkeOkSu.js} +2 -2
- package/_assets/{secp256k1-Cd3k2XKF.js → secp256k1-CbiIJIKg.js} +2 -2
- package/_assets/{secp256k1-CjE2VWX5.js → secp256k1-G7aCSHGh.js} +2 -2
- package/_assets/{send-lC4ra6w3.js → send-BbZytlP1.js} +2 -2
- package/_assets/{send-batch-transaction-DItZkY3I.js → send-batch-transaction-BqLEMuVz.js} +2 -2
- package/_assets/{send-eip712-transaction-DI-Pj8UW.js → send-eip712-transaction-DH4E2IQ9.js} +3 -3
- package/_assets/send-gasless-transaction-pZMOcEJp.js +3 -0
- package/_assets/{send-D5zRhoBQ.js → send-jLjxEmUL.js} +2 -2
- package/_assets/send-transaction-BHL0Ky_u.js +3 -0
- package/_assets/sendMetaTransaction-D4NV_Z2d.js +2 -0
- package/_assets/{sendRawTransaction-D1OfMqA1.js → sendRawTransaction-DaC7p3YL.js} +4 -4
- package/_assets/{sentry-Dpl2Rzxy.js → sentry-QT4W68kU.js} +3 -3
- package/_assets/{serializeTransaction-F_XNOr0Z.js → serializeTransaction-C8YsCGmE.js} +2 -2
- package/_assets/{session-proposal-DB1yG9nH.js → session-proposal-CZt3Am1G.js} +2 -2
- package/_assets/{session-request-j7iOt29A.js → session-request-D7Qvnbja.js} +3 -3
- package/_assets/{sha256-Di1SVFod.js → sha256-CKF7T__H.js} +2 -2
- package/_assets/{signing-DxdCqlSy.js → signing-DEU53TJs.js} +4 -4
- package/_assets/{skeleton.styles-zgOid3nY.js → skeleton.styles-DuzcTruM.js} +2 -2
- package/_assets/{socials-DJAqKU-U.js → socials-CDonRU5g.js} +2 -2
- package/_assets/styled-DQ0MS9K9.js +10 -0
- package/_assets/{swapHorizontal-B917A7vy.js → swapHorizontal-3Mejt9DE.js} +3 -3
- package/_assets/{swapHorizontalBold-BXr9TuPL.js → swapHorizontalBold-DkYUmHIw.js} +3 -3
- package/_assets/{swapHorizontalMedium-BK00_YJ-.js → swapHorizontalMedium-C-AChIRi.js} +2 -2
- package/_assets/{swapHorizontalRoundedBold-Bi8rzI9h.js → swapHorizontalRoundedBold-BtKMBAIU.js} +2 -2
- package/_assets/{swapVertical-Cw3vad0G.js → swapVertical-drqnjZhx.js} +3 -3
- package/_assets/{swaps-B-Tp5Qv4.js → swaps-BG4bZAwA.js} +2 -2
- package/_assets/{telegram-BddjnyZB.js → telegram-B0zQ2xux.js} +3 -3
- package/_assets/{thirdweb-BOZWFkQA.js → thirdweb-BultVWDe.js} +4 -4
- package/_assets/{three-dots-C6jZ-WFx.js → three-dots-CalKjIbH.js} +3 -3
- package/_assets/{to-serializable-transaction-CRendAr2.js → to-serializable-transaction-7GZIlUwa.js} +3 -3
- package/_assets/totalSupply-BjDXTRd5.js +2 -0
- package/_assets/{transaction-DkGLxYnP.js → transaction-DJJYB-bS.js} +2 -2
- package/_assets/transactionReceipt-BFqjWIk_.js +2 -0
- package/_assets/transactions-C66m8v56.js +17 -0
- package/_assets/{twitch-D8WrDbmL.js → twitch-DFJ9vbRU.js} +3 -3
- package/_assets/{twitterIcon-DlYypBM9.js → twitterIcon-PQaPXSEq.js} +3 -3
- package/_assets/{useCreditPacks-BPDUvy8q.js → useCreditPacks-64zBWb3r.js} +2 -2
- package/_assets/useInfiniteGrid-P2LEDNuS.js +2 -0
- package/_assets/useStore-B20REMrb.js +3 -0
- package/_assets/{useTheme-BcK-N9Fs.js → useTheme-D9eRcdtM.js} +2 -2
- package/_assets/{utils-K367Ne2k.js → utils-BvhP48Q2.js} +2 -2
- package/_assets/{verify-DkJJJlPs.js → verify-BkXjhgFz.js} +3 -3
- package/_assets/{verify-filled-Cu34rKfG.js → verify-filled-Bgl9j8Ps.js} +3 -3
- package/_assets/{verifyHash-BHb926ge.js → verifyHash-PLxZSWO1.js} +2 -2
- package/_assets/{w3m-modal-1cxICjRk.js → w3m-modal-BQhXXmny.js} +2 -2
- package/_assets/{w3m-modal-y2XhCIMG.js → w3m-modal-D2EQvtR2.js} +2 -2
- package/_assets/{wait-for-tx-receipt-DFNZcCoK.js → wait-for-tx-receipt-kuPicViV.js} +2 -2
- package/_assets/{wallet-C65hLKu5.js → wallet-h2At2yYW.js} +3 -3
- package/_assets/{wallet-placeholder-Bdb-3o1I.js → wallet-placeholder-BAdAxbaS.js} +2 -2
- package/_assets/{walletconnect-DadsNaAD.js → walletconnect-DGwNgL-R.js} +4 -4
- package/_assets/{wallets-DPBqMg7o.js → wallets-CUeCRpI2.js} +6 -6
- package/_assets/{warning-circle-DE3Cl0f1.js → warning-circle-BcDrWyl5.js} +2 -2
- package/_assets/{web-connector-Bgql32Uf.js → web-connector-7kv9dNjR.js} +4 -4
- package/_assets/{writeContract-CWEmZuYp.js → writeContract-Cpmv8aqh.js} +2 -2
- package/_assets/x-DoyXusK-.js +13 -0
- package/_assets/{zora-sepolia-c_zFjBRj.js → zora-sepolia-BIWjgzR4.js} +2 -2
- package/_assets/{zoraTestnet-B8xtjMH5.js → zoraTestnet-B4Im9dwk.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Confetti-MCo50BBJ.js +0 -18
- package/_assets/DeploymentBuilder-qk7PnHQx.js +0 -4
- package/_assets/Grow-jPHmsNlR.js +0 -2
- package/_assets/LazyEmoteControls-DnslqPZG.js +0 -3
- package/_assets/NotificationsBell-DeI14Ker.js +0 -142
- package/_assets/OutfitDetail-Buecr6Xb.js +0 -376
- package/_assets/OutfitPreview-CXccjyME.js +0 -7
- package/_assets/PhCaretDown-G6ZOf3Jn.js +0 -15
- package/_assets/PhCaretUp-CuwUNUkq.js +0 -15
- package/_assets/arrow-top-X36TCUPc.js +0 -9
- package/_assets/async-directive-DVKyJ8n3.js +0 -10
- package/_assets/authorizations-zGupbQDs.js +0 -2
- package/_assets/buy-CZ48Qb0B.js +0 -2
- package/_assets/chevron-bottom-D8_GkQ-J.js +0 -9
- package/_assets/chevron-left-9Zv2sApZ.js +0 -9
- package/_assets/collectionPage.styles-BG7xsIyB.js +0 -40
- package/_assets/common-BKs8BygA.js +0 -2
- package/_assets/createSvgIcon-TWSMDLRV.js +0 -75
- package/_assets/cursor-bva6Zsy2.js +0 -4
- package/_assets/decimals-CriYb_mR.js +0 -2
- package/_assets/decimals-dM6NWaYC.js +0 -2
- package/_assets/detectExtension-DKO4W8XW.js +0 -2
- package/_assets/emotion-styled.browser.esm-DqxM2tFY.js +0 -2
- package/_assets/estimate-l1-fee-CXjO5G6B.js +0 -2
- package/_assets/eth_estimateGas-Az-d7u81.js +0 -2
- package/_assets/eth_getStorageAt-DUjWCRH_.js +0 -2
- package/_assets/eth_getTransactionCount-DUedgx_K.js +0 -2
- package/_assets/ethereum-CGqNaPv8.js +0 -2
- package/_assets/external-link-DP_pNrc3.js +0 -9
- package/_assets/extractIPFS-BZARbAAN.js +0 -2
- package/_assets/get-ecosystem-wallet-info-BRBLaxAB.js +0 -2
- package/_assets/getInstalledModules-COw1E-0h.js +0 -2
- package/_assets/getNFT-BJqA-Dy5.js +0 -2
- package/_assets/getNFT-BZ6gJSTz.js +0 -3
- package/_assets/in-app-wallet-calls-95DziyxS.js +0 -2
- package/_assets/index-Bu7oJJ0x.js +0 -2
- package/_assets/index-CBxXauNU.js +0 -31
- package/_assets/index-CLWFGmUC.js +0 -20
- package/_assets/index-CxTOZKg9.js +0 -3
- package/_assets/index-D_5cEpKH.js +0 -2
- package/_assets/index-hDG9ZZQ9.js +0 -2
- package/_assets/jsxRuntime.module-hV4zW-M8.js +0 -2
- package/_assets/off-txTunFjX.js +0 -9
- package/_assets/openzeppelin-Bk9vo-GM.js +0 -2
- package/_assets/ownerOf-BODrSAnN.js +0 -2
- package/_assets/parseNft-DQbWG72w.js +0 -3
- package/_assets/sales-empty-CGZEK996.js +0 -2
- package/_assets/send-gasless-transaction-H_PFa7sP.js +0 -3
- package/_assets/send-transaction-BiXKHFMN.js +0 -3
- package/_assets/sendMetaTransaction-Bekk2SqJ.js +0 -2
- package/_assets/styled-6v9MWELU.js +0 -10
- package/_assets/totalSupply-DgwOpDBe.js +0 -2
- package/_assets/transactionReceipt-BcMA8FhJ.js +0 -2
- package/_assets/transactions-DejHNyTK.js +0 -17
- package/_assets/useInfiniteGrid-CFkyIjyn.js +0 -2
- package/_assets/useStore-BsXE3VXt.js +0 -3
- package/_assets/x-C7WtQF7V.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-GQNC2S4Z.js";import{g as ue}from"./react-BHaOXxRY.js";import{r as he}from"./events-BR9mruU0.js";import{_ as m}from"./index-Cw2Mzm-8.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]="3305ef7e-8adf-4166-bdcd-01f0efc68194",i._sentryDebugIdIdentifier="sentry-dbid-3305ef7e-8adf-4166-bdcd-01f0efc68194")}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-BaGeZDMU.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-B3lay0v6.js").then(c=>c.i),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11])).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-CPyWbAeJ.js").then(a=>a.h);return{createAppKit:s}},__vite__mapDeps([12,13,1,3,5,4,11,14,15,16,17,18,19,20,21,22,23])),{WagmiAdapter:t}=await m(async()=>{const{WagmiAdapter:s}=await import("./index-r8KGLAPF.js").then(a=>a.b);return{WagmiAdapter:s}},__vite__mapDeps([24,15,3,1,16,5,17,18,13,4,11,14,25,26,6,27,28,29])),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-DRc-xttk.js"),__vite__mapDeps([30,18,5,1,31,32,25,13,3,4,11,14,33,34,29])),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-HraWNoBF.js");return{Magic:a}},__vite__mapDeps([35,5,1,36])),{OAuthExtension:r}=await m(async()=>{const{OAuthExtension:a}=await import("./index-8LX2pFjK.js");return{OAuthExtension:a}},__vite__mapDeps([37,36,5,1,38,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-DPBqMg7o.js").then(f=>f.Q);return{EIP1193:u}},__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]));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-DPBqMg7o.js").then(se=>se.Q);return{EIP1193:ae}},__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]));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-DZydcaQ1.js");return{getUserEmail:o}},__vite__mapDeps([56,41,42,5,1,47,46,13,3,4,11,14,57,58]));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-BOZWFkQA.js").then(r=>r.t),__vite__mapDeps([59,42,5,1,41,40,13,3,4,11,14,43,44,45,60,61,62,63,64,65,54,66,67,68,69,53]))}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-DPBqMg7o.js").then(t=>t.Q),__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]))}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-7s4Wyd5G.js"),__vite__mapDeps([70,42,5,1,68,50]));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-DJHaYrrp.js","_assets/react-CqRdBiAM.js","_assets/index-BY__a_k2.js","_assets/dcl-schemas-B7N0eru-.js","_assets/ethers-BkKdfT9C.js","_assets/sentry-QT4W68kU.js","_assets/index-CX6GgppK.js","_assets/index-DKaT9l79.js","_assets/index-CEppIgvP.js","_assets/hooks.module-54Oj1-WJ.js","_assets/events-BlrWpEou.js","_assets/intl-AKLEHPeO.js","_assets/index-DOzfFnyE.js","_assets/index-Cu5eVIZW.js","_assets/index-l2QjlKjX.css","_assets/W3MFrameProviderSingleton-bFMDUf2u.js","_assets/index-e1KWQKJ8.js","_assets/browser-ponyfill-hviyRt32.js","_assets/NetworkUtil-BO3cBEpF.js","_assets/index-CzZWufck.js","_assets/index-OpYIGLSa.js","_assets/index-SVRM6Dll.js","_assets/index.es-nq7gaPcg.js","_assets/lit-element-wjYUA6aF.js","_assets/index-Doi6JSqd.js","_assets/sendRawTransaction-DaC7p3YL.js","_assets/index-Dgc1gfL1.js","_assets/store-80QKZ2rN.js","_assets/custom-D0McaOeR.js","_assets/writeContract-Cpmv8aqh.js","_assets/networks-CkKZfG02.js","_assets/zoraTestnet-B4Im9dwk.js","_assets/verifyHash-PLxZSWO1.js","_assets/secp256k1-CbiIJIKg.js","_assets/serializeTransaction-C8YsCGmE.js","_assets/index-BFF4Wtrd.js","_assets/index-hwD8qF60.js","_assets/index-B0ccjlO6.js","_assets/index-D6fPXOZ4.js","_assets/wallets-CUeCRpI2.js","_assets/signing-DEU53TJs.js","_assets/prepare-contract-call-oS4Lc2oD.js","_assets/utils-BvhP48Q2.js","_assets/to-serializable-transaction-7GZIlUwa.js","_assets/transaction-DJJYB-bS.js","_assets/get-bytecode-gNcBspSb.js","_assets/execute-Bgz1cqK3.js","_assets/detectExtension-BQQNg9HL.js","_assets/linkAccount-Ckk5_NQN.js","_assets/index-Bpwj5aZq.js","_assets/ethereum-CdaH_wYa.js","_assets/types-BeDU9GfL.js","_assets/hashTypedData-CkPFl3_v.js","_assets/send-transaction-BHL0Ky_u.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/index-zb1ns0z6.js","_assets/in-app-C9E9dDZI.js","_assets/passkeys-BNNATNLz.js","_assets/uint8-array-BMe04WIx.js","_assets/thirdweb-BultVWDe.js","_assets/wait-for-tx-receipt-kuPicViV.js","_assets/transactionReceipt-BFqjWIk_.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-Sb0CyY7J.js","_assets/eth_getStorageAt-hwP6UkYl.js","_assets/eth_getTransactionCount-D6n8U-h9.js","_assets/decimals-Brknvks1.js","_assets/decimals-nQjcHjdS.js","_assets/zora-sepolia-BIWjgzR4.js","_assets/send-batch-transaction-BqLEMuVz.js","_assets/chains-QljlkgmZ.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-B7N0eru-.js";import{g as ue}from"./react-CqRdBiAM.js";import{r as he}from"./events-BlrWpEou.js";import{_ as m}from"./index-Cu5eVIZW.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]="186b6b41-cd44-4511-851c-add831d44a84",i._sentryDebugIdIdentifier="sentry-dbid-186b6b41-cd44-4511-851c-add831d44a84")}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-DJHaYrrp.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-BY__a_k2.js").then(c=>c.i),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11])).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-DOzfFnyE.js").then(a=>a.h);return{createAppKit:s}},__vite__mapDeps([12,13,1,3,5,4,11,14,15,16,17,18,19,20,21,22,23])),{WagmiAdapter:t}=await m(async()=>{const{WagmiAdapter:s}=await import("./index-Doi6JSqd.js").then(a=>a.b);return{WagmiAdapter:s}},__vite__mapDeps([24,15,3,1,16,5,17,18,13,4,11,14,25,26,6,27,28,29])),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-CkKZfG02.js"),__vite__mapDeps([30,18,5,1,31,32,25,13,3,4,11,14,33,34,29])),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-BFF4Wtrd.js");return{Magic:a}},__vite__mapDeps([35,5,1,36])),{OAuthExtension:r}=await m(async()=>{const{OAuthExtension:a}=await import("./index-B0ccjlO6.js");return{OAuthExtension:a}},__vite__mapDeps([37,36,5,1,38,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-CUeCRpI2.js").then(f=>f.Q);return{EIP1193:u}},__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]));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-CUeCRpI2.js").then(se=>se.Q);return{EIP1193:ae}},__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]));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-C9E9dDZI.js");return{getUserEmail:o}},__vite__mapDeps([56,41,42,5,1,47,46,13,3,4,11,14,57,58]));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-BultVWDe.js").then(r=>r.t),__vite__mapDeps([59,42,5,1,41,40,13,3,4,11,14,43,44,45,60,61,62,63,64,65,54,66,67,68,69,53]))}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-CUeCRpI2.js").then(t=>t.Q),__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]))}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-QljlkgmZ.js"),__vite__mapDeps([70,42,5,1,68,50]));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-S4yRhouQ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as j}from"./index-
|
|
2
|
-
`+
|
|
3
|
-
`+new Array(
|
|
4
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{d as j}from"./index-CzZWufck.js";import"./react-CqRdBiAM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6b9490ef-194f-4cd1-8f39-f6ceae3e9a23",e._sentryDebugIdIdentifier="sentry-dbid-6b9490ef-194f-4cd1-8f39-f6ceae3e9a23")}catch{}})();/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function P(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function V(e,r){return Array.isArray(r)?r.length===0?!0:e?r.every(n=>typeof n=="string"):r.every(n=>Number.isSafeInteger(n)):!1}function B(e,r){if(typeof r!="string")throw new Error(`${e}: string expected`);return!0}function I(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function v(e){if(!Array.isArray(e))throw new Error("array expected")}function S(e,r){if(!V(!0,r))throw new Error(`${e}: array of strings expected`)}function K(e,r){if(!V(!1,r))throw new Error(`${e}: array of numbers expected`)}function J(...e){const r=l=>l,n=(l,u)=>i=>l(u(i)),h=e.map(l=>l.encode).reduceRight(n,r),d=e.map(l=>l.decode).reduce(n,r);return{encode:h,decode:d}}function Q(e){const r=typeof e=="string"?e.split(""):e,n=r.length;S("alphabet",r);const h=new Map(r.map((d,l)=>[d,l]));return{encode:d=>(v(d),d.map(l=>{if(!Number.isSafeInteger(l)||l<0||l>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${l}". Allowed: ${e}`);return r[l]})),decode:d=>(v(d),d.map(l=>{B("alphabet.decode",l);const u=h.get(l);if(u===void 0)throw new Error(`Unknown letter: "${l}". Allowed: ${e}`);return u}))}}function W(e=""){return B("join",e),{encode:r=>(S("join.decode",r),r.join(e)),decode:r=>(B("join.decode",r),r.split(e))}}function fe(e,r="="){return I(e),B("padding",r),{encode(n){for(S("padding.encode",n);n.length*e%8;)n.push(r);return n},decode(n){S("padding.decode",n);let h=n.length;if(h*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;h>0&&n[h-1]===r;h--)if((h-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,h)}}}function G(e,r,n){if(r<2)throw new Error(`convertRadix: invalid from=${r}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(v(e),!e.length)return[];let h=0;const d=[],l=Array.from(e,i=>{if(I(i),i<0||i>=r)throw new Error(`invalid integer: ${i}`);return i}),u=l.length;for(;;){let i=0,a=!0;for(let w=h;w<u;w++){const p=l[w],x=r*i,A=x+p;if(!Number.isSafeInteger(A)||x/r!==i||A-p!==x)throw new Error("convertRadix: carry overflow");const m=A/n;i=A%n;const s=Math.floor(m);if(l[w]=s,!Number.isSafeInteger(s)||s*n+i!==A)throw new Error("convertRadix: carry overflow");if(a)s?a=!1:h=w;else continue}if(d.push(i),a)break}for(let i=0;i<e.length-1&&e[i]===0;i++)d.push(0);return d.reverse()}const X=(e,r)=>r===0?e:X(r,e%r),$=(e,r)=>e+(r-X(e,r)),R=(()=>{let e=[];for(let r=0;r<40;r++)e.push(2**r);return e})();function F(e,r,n,h){if(v(e),r<=0||r>32)throw new Error(`convertRadix2: wrong from=${r}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if($(r,n)>32)throw new Error(`convertRadix2: carry overflow from=${r} to=${n} carryBits=${$(r,n)}`);let d=0,l=0;const u=R[r],i=R[n]-1,a=[];for(const w of e){if(I(w),w>=u)throw new Error(`convertRadix2: invalid data word=${w} from=${r}`);if(d=d<<r|w,l+r>32)throw new Error(`convertRadix2: carry overflow pos=${l} from=${r}`);for(l+=r;l>=n;l-=n)a.push((d>>l-n&i)>>>0);const p=R[l];if(p===void 0)throw new Error("invalid carry");d&=p-1}if(d=d<<n-l&i,!h&&l>=r)throw new Error("Excess padding");if(!h&&d>0)throw new Error(`Non-zero padding: ${d}`);return h&&l>0&&a.push(d>>>0),a}function ae(e){I(e);const r=2**8;return{encode:n=>{if(!P(n))throw new Error("radix.encode input should be Uint8Array");return G(Array.from(n),r,e)},decode:n=>(K("radix.decode",n),Uint8Array.from(G(n,e,r)))}}function se(e,r=!1){if(I(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if($(8,e)>32||$(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!P(n))throw new Error("radix2.encode input should be Uint8Array");return F(Array.from(n),8,e,!r)},decode:n=>(K("radix2.decode",n),Uint8Array.from(F(n,e,8,r)))}}const we=J(se(5),Q("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),fe(5),W("")),le=e=>J(ae(58),Q(e),W("")),ge=le("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function M(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Y(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?M(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function pe(e,r){r||(r=e.reduce((d,l)=>d+l.length,0));const n=Y(r);let h=0;for(const d of e)n.set(d,h),h+=d.length;return M(n)}function Z(e,r,n,h){return{name:e,prefix:r,encoder:{name:e,prefix:r,encode:n},decoder:{decode:h}}}const q=Z("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),T=Z("ascii","a",e=>{let r="a";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r},e=>{e=e.substring(1);const r=Y(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}),ee={utf8:q,"utf-8":q,hex:j.base16,latin1:T,ascii:T,binary:T,...j};function ye(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?M(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode(`${n.prefix}${e}`)}function Ae(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):n.encoder.encode(e).substring(1)}var H,N;function re(){if(N)return H;N=1;const e="Input must be an string, Buffer or Uint8Array";function r(u){let i;if(u instanceof Uint8Array)i=u;else if(typeof u=="string")i=new TextEncoder().encode(u);else throw new Error(e);return i}function n(u){return Array.prototype.map.call(u,function(i){return(i<16?"0":"")+i.toString(16)}).join("")}function h(u){return(4294967296+u).toString(16).substring(1)}function d(u,i,a){let w=`
|
|
2
|
+
`+u+" = ";for(let p=0;p<i.length;p+=2){if(a===32)w+=h(i[p]).toUpperCase(),w+=" ",w+=h(i[p+1]).toUpperCase();else if(a===64)w+=h(i[p+1]).toUpperCase(),w+=h(i[p]).toUpperCase();else throw new Error("Invalid size "+a);p%6===4?w+=`
|
|
3
|
+
`+new Array(u.length+4).join(" "):p<i.length-2&&(w+=" ")}console.log(w)}function l(u,i,a){let w=new Date().getTime();const p=new Uint8Array(i);for(let A=0;A<i;A++)p[A]=A%256;const x=new Date().getTime();console.log("Generated random input in "+(x-w)+"ms"),w=x;for(let A=0;A<a;A++){const m=u(p),s=new Date().getTime(),b=s-w;w=s,console.log("Hashed in "+b+"ms: "+m.substring(0,20)+"..."),console.log(Math.round(i/(1<<20)/(b/1e3)*100)/100+" MB PER SECOND")}}return H={normalizeInput:r,toHex:n,debugPrint:d,testSpeed:l},H}var C,O;function ue(){if(O)return C;O=1;const e=re();function r(t,c,o){const g=t[c]+t[o];let y=t[c+1]+t[o+1];g>=4294967296&&y++,t[c]=g,t[c+1]=y}function n(t,c,o,g){let y=t[c]+o;o<0&&(y+=4294967296);let k=t[c+1]+g;y>=4294967296&&k++,t[c]=y,t[c+1]=k}function h(t,c){return t[c]^t[c+1]<<8^t[c+2]<<16^t[c+3]<<24}function d(t,c,o,g,y,k){const ne=w[y],te=w[y+1],oe=w[k],ie=w[k+1];r(a,t,c),n(a,t,ne,te);let U=a[g]^a[t],E=a[g+1]^a[t+1];a[g]=E,a[g+1]=U,r(a,o,g),U=a[c]^a[o],E=a[c+1]^a[o+1],a[c]=U>>>24^E<<8,a[c+1]=E>>>24^U<<8,r(a,t,c),n(a,t,oe,ie),U=a[g]^a[t],E=a[g+1]^a[t+1],a[g]=U>>>16^E<<16,a[g+1]=E>>>16^U<<16,r(a,o,g),U=a[c]^a[o],E=a[c+1]^a[o+1],a[c]=E>>>31^U<<1,a[c+1]=U>>>31^E<<1}const l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],i=new Uint8Array(u.map(function(t){return t*2})),a=new Uint32Array(32),w=new Uint32Array(32);function p(t,c){let o=0;for(o=0;o<16;o++)a[o]=t.h[o],a[o+16]=l[o];for(a[24]=a[24]^t.t,a[25]=a[25]^t.t/4294967296,c&&(a[28]=~a[28],a[29]=~a[29]),o=0;o<32;o++)w[o]=h(t.b,4*o);for(o=0;o<12;o++)d(0,8,16,24,i[o*16+0],i[o*16+1]),d(2,10,18,26,i[o*16+2],i[o*16+3]),d(4,12,20,28,i[o*16+4],i[o*16+5]),d(6,14,22,30,i[o*16+6],i[o*16+7]),d(0,10,20,30,i[o*16+8],i[o*16+9]),d(2,12,22,24,i[o*16+10],i[o*16+11]),d(4,14,16,26,i[o*16+12],i[o*16+13]),d(6,8,18,28,i[o*16+14],i[o*16+15]);for(o=0;o<16;o++)t.h[o]=t.h[o]^a[o]^a[o+16]}const x=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function A(t,c,o,g){if(t===0||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(c&&c.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(o&&o.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(g&&g.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const y={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};x.fill(0),x[0]=t,c&&(x[1]=c.length),x[2]=1,x[3]=1,o&&x.set(o,32),g&&x.set(g,48);for(let k=0;k<16;k++)y.h[k]=l[k]^h(x,k*4);return c&&(m(y,c),y.c=128),y}function m(t,c){for(let o=0;o<c.length;o++)t.c===128&&(t.t+=t.c,p(t,!1),t.c=0),t.b[t.c++]=c[o]}function s(t){for(t.t+=t.c;t.c<128;)t.b[t.c++]=0;p(t,!0);const c=new Uint8Array(t.outlen);for(let o=0;o<t.outlen;o++)c[o]=t.h[o>>2]>>8*(o&3);return c}function b(t,c,o,g,y){o=o||64,t=e.normalizeInput(t),g&&(g=e.normalizeInput(g)),y&&(y=e.normalizeInput(y));const k=A(o,c,g,y);return m(k,t),s(k)}function f(t,c,o,g,y){const k=b(t,c,o,g,y);return e.toHex(k)}return C={blake2b:b,blake2bHex:f,blake2bInit:A,blake2bUpdate:m,blake2bFinal:s},C}var D,z;function ce(){if(z)return D;z=1;const e=re();function r(s,b){return s[b]^s[b+1]<<8^s[b+2]<<16^s[b+3]<<24}function n(s,b,f,t,c,o){u[s]=u[s]+u[b]+c,u[t]=h(u[t]^u[s],16),u[f]=u[f]+u[t],u[b]=h(u[b]^u[f],12),u[s]=u[s]+u[b]+o,u[t]=h(u[t]^u[s],8),u[f]=u[f]+u[t],u[b]=h(u[b]^u[f],7)}function h(s,b){return s>>>b^s<<32-b}const d=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),u=new Uint32Array(16),i=new Uint32Array(16);function a(s,b){let f=0;for(f=0;f<8;f++)u[f]=s.h[f],u[f+8]=d[f];for(u[12]^=s.t,u[13]^=s.t/4294967296,b&&(u[14]=~u[14]),f=0;f<16;f++)i[f]=r(s.b,4*f);for(f=0;f<10;f++)n(0,4,8,12,i[l[f*16+0]],i[l[f*16+1]]),n(1,5,9,13,i[l[f*16+2]],i[l[f*16+3]]),n(2,6,10,14,i[l[f*16+4]],i[l[f*16+5]]),n(3,7,11,15,i[l[f*16+6]],i[l[f*16+7]]),n(0,5,10,15,i[l[f*16+8]],i[l[f*16+9]]),n(1,6,11,12,i[l[f*16+10]],i[l[f*16+11]]),n(2,7,8,13,i[l[f*16+12]],i[l[f*16+13]]),n(3,4,9,14,i[l[f*16+14]],i[l[f*16+15]]);for(f=0;f<8;f++)s.h[f]^=u[f]^u[f+8]}function w(s,b){if(!(s>0&&s<=32))throw new Error("Incorrect output length, should be in [1, 32]");const f=b?b.length:0;if(b&&!(f>0&&f<=32))throw new Error("Incorrect key length, should be in [1, 32]");const t={h:new Uint32Array(d),b:new Uint8Array(64),c:0,t:0,outlen:s};return t.h[0]^=16842752^f<<8^s,f>0&&(p(t,b),t.c=64),t}function p(s,b){for(let f=0;f<b.length;f++)s.c===64&&(s.t+=s.c,a(s,!1),s.c=0),s.b[s.c++]=b[f]}function x(s){for(s.t+=s.c;s.c<64;)s.b[s.c++]=0;a(s,!0);const b=new Uint8Array(s.outlen);for(let f=0;f<s.outlen;f++)b[f]=s.h[f>>2]>>8*(f&3)&255;return b}function A(s,b,f){f=f||32,s=e.normalizeInput(s);const t=w(f,b);return p(t,s),x(t)}function m(s,b,f){const t=A(s,b,f);return e.toHex(t)}return D={blake2s:A,blake2sHex:m,blake2sInit:w,blake2sUpdate:p,blake2sFinal:x},D}var _,L;function de(){if(L)return _;L=1;const e=ue(),r=ce();return _={blake2b:e.blake2b,blake2bHex:e.blake2bHex,blake2bInit:e.blake2bInit,blake2bUpdate:e.blake2bUpdate,blake2bFinal:e.blake2bFinal,blake2s:r.blake2s,blake2sHex:r.blake2sHex,blake2sInit:r.blake2sInit,blake2sUpdate:r.blake2sUpdate,blake2sFinal:r.blake2sFinal},_}var xe=de();export{we as a,ge as b,pe as c,xe as d,ye as f,Ae as t};
|
|
4
|
+
//# sourceMappingURL=index-SVRM6Dll.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as g,b as e}from"./lit-element-wjYUA6aF.js";import{r as f,n as w,o as v}from"./class-map-
|
|
1
|
+
import{i as g,b as e}from"./lit-element-wjYUA6aF.js";import{r as f,n as w,o as v}from"./class-map-C1Xjz5Lx.js";import{d as y,r as k,e as P}from"./index-DOzfFnyE.js";import{c as b}from"./index-4yhVggIG.js";import"./index-BTX_br9V.js";import{H as x}from"./HelpersUtil-xC7DZviw.js";import{R as u,E as I}from"./W3MFrameProviderSingleton-bFMDUf2u.js";import"./index-B6nKOltb.js";import"./index-BM_MJWEH.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="d3157b23-7705-4077-9ad3-005d86dc7e56",t._sentryDebugIdIdentifier="sentry-dbid-d3157b23-7705-4077-9ad3-005d86dc7e56")}catch{}})();const A=y`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -208,4 +208,4 @@ import{i as g,b as e}from"./lit-element-wjYUA6aF.js";import{r as f,n as w,o as v
|
|
|
208
208
|
imageSrc=${this.imageSrc}
|
|
209
209
|
name=${this.name}
|
|
210
210
|
></wui-wallet-image>`:!this.showAllWallets&&!this.imageSrc?e`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`:null}templateStatus(){return this.loading?e`<wui-loading-spinner size="lg" color="accent-primary"></wui-loading-spinner>`:this.tagLabel&&this.tagVariant?e`<wui-tag size="sm" variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:null}};l.styles=[k,P,E];m([w({type:Array})],l.prototype,"walletImages",void 0);m([w()],l.prototype,"imageSrc",void 0);m([w()],l.prototype,"name",void 0);m([w()],l.prototype,"size",void 0);m([w()],l.prototype,"tagLabel",void 0);m([w()],l.prototype,"tagVariant",void 0);m([w()],l.prototype,"walletIcon",void 0);m([w()],l.prototype,"tabIdx",void 0);m([w({type:Array})],l.prototype,"namespaces",void 0);m([w({type:Boolean})],l.prototype,"disabled",void 0);m([w({type:Boolean})],l.prototype,"showAllWallets",void 0);m([w({type:Boolean})],l.prototype,"loading",void 0);m([w({type:String})],l.prototype,"loadingSpinnerColor",void 0);l=m([b("wui-list-wallet")],l);export{d as W,p as a};
|
|
211
|
-
//# sourceMappingURL=index-
|
|
211
|
+
//# sourceMappingURL=index-SunvF2qC.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,b as pe,r as p,L as he}from"./react-
|
|
1
|
+
import{j as e,b as pe,r as p,L as he}from"./react-CqRdBiAM.js";import{t as A,s as n,m as ge,p as xe,b as a,C as N,B,b_ as re,q as O,ap as oe,ae as me,bC as K,h as U,a6 as ue,o as fe,r as we,bB as be,I as G,aq as ye,as as ve,b$ as je,c0 as ke,c1 as $e,w as H}from"./index-Cu5eVIZW.js";import{c as Ce,i as Ie,R as Te,u as Se}from"./sales-empty-Lf9utCfp.js";import{S as Le,C as ze}from"./ManaPricingBanner.styles-DbM4es1x.js";import{F as V}from"./Faq-B6YFpxai.js";import{C as Y}from"./field.styles-BEMLDik4.js";import"./dcl-schemas-B7N0eru-.js";import"./sentry-QT4W68kU.js";import"./ethers-BkKdfT9C.js";import"./intl-AKLEHPeO.js";import"./buy-J4GpDKQb.js";import"./authorizations-L1fqOfS7.js";import"./sendMetaTransaction-D4NV_Z2d.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new s.Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="48a2acd2-08ea-4247-8125-c995a849d8fb",s._sentryDebugIdIdentifier="sentry-dbid-48a2acd2-08ea-4247-8125-c995a849d8fb")}catch{}})();function Ae({size:s=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function _e({size:s=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:_,radius:Re,z:Fe}=A,Ee=ge`
|
|
2
2
|
0% {
|
|
3
3
|
transform: scale(0);
|
|
4
4
|
opacity: 0;
|
|
@@ -17,8 +17,8 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
17
17
|
// Above the global DCL navbar so the backdrop dims the full viewport (navbar included).
|
|
18
18
|
z-index: ${Fe.overlay};
|
|
19
19
|
`,de=n.div`
|
|
20
|
-
background: ${
|
|
21
|
-
border-radius: ${
|
|
20
|
+
background: ${_.white};
|
|
21
|
+
border-radius: ${Re.card};
|
|
22
22
|
padding: 24px;
|
|
23
23
|
width: min(420px, 92vw);
|
|
24
24
|
margin: auto;
|
|
@@ -47,7 +47,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
47
47
|
height: 140px;
|
|
48
48
|
object-fit: contain;
|
|
49
49
|
align-self: center;
|
|
50
|
-
background: ${
|
|
50
|
+
background: ${_.media};
|
|
51
51
|
border-radius: 10px;
|
|
52
52
|
`;const Me=n.div`
|
|
53
53
|
position: sticky;
|
|
@@ -57,13 +57,13 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
57
57
|
gap: 10px;
|
|
58
58
|
margin-top: 6px;
|
|
59
59
|
padding-top: 8px;
|
|
60
|
-
background: ${
|
|
60
|
+
background: ${_.white};
|
|
61
61
|
`;n.div`
|
|
62
62
|
width: 56px;
|
|
63
63
|
height: 56px;
|
|
64
64
|
border-radius: 50%;
|
|
65
|
-
background: ${
|
|
66
|
-
color: ${
|
|
65
|
+
background: ${_.okStrong};
|
|
66
|
+
color: ${_.white};
|
|
67
67
|
font-size: 30px;
|
|
68
68
|
font-weight: 800;
|
|
69
69
|
display: grid;
|
|
@@ -78,7 +78,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
78
78
|
font-weight: 700;
|
|
79
79
|
font-size: 16px;
|
|
80
80
|
margin: 2px 0 0;
|
|
81
|
-
`;const{colors:u,gradients:Pe,radius:
|
|
81
|
+
`;const{colors:u,gradients:Pe,radius:Be}=A,Qe=n(de)`
|
|
82
82
|
width: min(460px, 94vw);
|
|
83
83
|
text-align: left;
|
|
84
84
|
align-items: stretch;
|
|
@@ -129,7 +129,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
129
129
|
`,Oe=n.span`
|
|
130
130
|
width: 34px;
|
|
131
131
|
height: 34px;
|
|
132
|
-
border-radius: ${
|
|
132
|
+
border-radius: ${Be.btn};
|
|
133
133
|
overflow: hidden;
|
|
134
134
|
background: ${u.media};
|
|
135
135
|
display: grid;
|
|
@@ -140,13 +140,13 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
140
140
|
height: 100%;
|
|
141
141
|
object-fit: contain;
|
|
142
142
|
}
|
|
143
|
-
`,
|
|
143
|
+
`,Ke=n.span`
|
|
144
144
|
font-weight: 600;
|
|
145
145
|
font-size: 14px;
|
|
146
146
|
white-space: nowrap;
|
|
147
147
|
overflow: hidden;
|
|
148
148
|
text-overflow: ellipsis;
|
|
149
|
-
`,
|
|
149
|
+
`,Ue=n.span`
|
|
150
150
|
font-weight: 700;
|
|
151
151
|
font-size: 13px;
|
|
152
152
|
color: ${u.text2};
|
|
@@ -159,10 +159,10 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
159
159
|
gap: 6px;
|
|
160
160
|
justify-content: flex-end;
|
|
161
161
|
min-width: 74px;
|
|
162
|
-
`,
|
|
162
|
+
`,He=n.span`
|
|
163
163
|
color: ${u.muted2};
|
|
164
164
|
font-weight: 600;
|
|
165
|
-
`,
|
|
165
|
+
`,Ve=n.span`
|
|
166
166
|
color: ${u.muted};
|
|
167
167
|
font-weight: 600;
|
|
168
168
|
`,Z=n.span`
|
|
@@ -189,7 +189,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
189
189
|
font-size: 12px;
|
|
190
190
|
`,Ze=n.p`
|
|
191
191
|
margin: 12px 0 0;
|
|
192
|
-
`;function et(s,d){switch(s==null?void 0:s.step){case"cancelling":return d?a("migrate.phaseCancelConfirm"):a("migrate.phaseCancel");case"confirming-cancel":return d?a("migrate.phaseConfirmingCancel"):a("migrate.phaseConfirmingCancelManaged");case"authorising":return d?a("migrate.phaseAuthoriseConfirm"):a("migrate.phaseAuthorise");case"signing":return d?a("migrate.phaseSignConfirm"):a("migrate.phaseSign");case"publishing":return a("migrate.phasePublishing");case"indexing":return a("migrate.phaseIndexing",{attempt:s.attempt,of:s.of});default:return d?a("migrate.statusConfirm"):a("migrate.statusAdding")}}function tt({queue:s,session:d,onClose:h,onDone:I}){const
|
|
192
|
+
`;function et(s,d){switch(s==null?void 0:s.step){case"cancelling":return d?a("migrate.phaseCancelConfirm"):a("migrate.phaseCancel");case"confirming-cancel":return d?a("migrate.phaseConfirmingCancel"):a("migrate.phaseConfirmingCancelManaged");case"authorising":return d?a("migrate.phaseAuthoriseConfirm"):a("migrate.phaseAuthorise");case"signing":return d?a("migrate.phaseSignConfirm"):a("migrate.phaseSign");case"publishing":return a("migrate.phasePublishing");case"indexing":return a("migrate.phaseIndexing",{attempt:s.attempt,of:s.of});default:return d?a("migrate.statusConfirm"):a("migrate.statusAdding")}}function tt({queue:s,session:d,onClose:h,onDone:I}){const Q=pe(),y=xe(d.providerType),[q,F]=p.useState(()=>s.map(()=>null)),[x,E]=p.useState(null),[l,b]=p.useState(()=>s.map(()=>"pending")),[v,w]=p.useState("running"),T=p.useRef(!1),j=p.useRef(!1);p.useEffect(()=>(j.current=!1,T.current||(T.current=!0,y&&Ce(s.map(i=>i.item),d.address).then(i=>{i&&E({approvals:i.approvals,total:i.total})}).catch(()=>{}),(async()=>{for(let i=0;i<s.length;i++){if(j.current)return;b(r=>r.map((c,g)=>g===i?"active":c));try{await Ie(s[i].item,s[i].priceCredits,d,{onPhase:r=>F(c=>c.map((g,z)=>z===i?r:g))}),me("Shop Migrated Listing",{item_id:s[i].item.itemId??s[i].item.oldTradeId??null,contract_address:s[i].item.contractAddress,new_price_credits:s[i].priceCredits,new_price_usd:K(s[i].priceCredits)}),b(r=>r.map((c,g)=>g===i?"done":c))}catch(r){if(r instanceof Te)U(r,{flow:"import_listing",step:"relist",itemId:s[i].item.itemId??s[i].item.oldTradeId}),b(c=>c.map((g,z)=>z===i?"unlisted":g));else{const c=r,g=c.code===4001||/reject|denied|cancel/i.test(c.message??"");g||U(r,{flow:"import_listing",itemId:s[i].item.itemId??s[i].item.oldTradeId}),b(z=>z.map((le,ce)=>ce===i?g?"skipped":"failed":le))}}}w("finished")})()),()=>{j.current=!0}),[]);const k=l.filter(t=>t==="done").length,M=l.findIndex(t=>t==="active"),D=Math.round(l.filter(t=>t!=="pending"&&t!=="active").length/s.length*100),C=l.filter(t=>t==="skipped").length,S=l.filter(t=>t==="failed").length,m=l.filter(t=>t==="unlisted").length,$=S+m;function L(){I({listed:k,failed:$,cancelled:C}),h()}const P=p.useRef(!1);return p.useEffect(()=>{v!=="finished"||P.current||(P.current=!0,!($>0)&&L())},[v,$]),v==="finished"?$===0?null:e.jsx(J,{role:"presentation",children:e.jsxs(de,{"data-failure":!0,role:"dialog","aria-modal":"true","data-testid":m>0?"migrate-unlisted":"migrate-failed",children:[e.jsx(Ye,{"aria-hidden":!0,children:e.jsx(_e,{size:72})}),e.jsx(X,{children:m>0?a("migrate.unlistedTitle"):a("migrate.failedTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[m>0?a("migrate.unlistedSummary",{count:m}):"",S>0?(m>0?" ":"")+a("migrate.failedSummary",{count:S}):"",k>0?" "+a("migrate.listedSummary",{count:k,currency:N.name}):"",C>0?" "+a("migrate.skippedSummary",{count:C}):""]}),e.jsxs(Me,{"data-actions":!0,children:[e.jsx(B,{variant:"ghost",onClick:L,children:a("getCredits.done")}),m>0?e.jsx(B,{variant:"purple",onClick:()=>{I({listed:k,failed:$,cancelled:C}),h(),Q(re)},children:a("migrate.goToMyAssets")}):null]})]})}):e.jsx(J,{role:"presentation",children:e.jsxs(Qe,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(X,{children:a("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[y?a("migrate.subConfirm"):a("migrate.subManaged")," ",M>=0?a("migrate.progressCount",{current:M+1,total:s.length}):""]}),e.jsx(qe,{children:e.jsx(De,{style:{width:`${D}%`}})}),e.jsx(We,{children:s.map((t,i)=>e.jsxs(Ne,{"data-status":l[i],children:[e.jsx(Oe,{children:t.item.thumbnail?e.jsx("img",{src:t.item.thumbnail,alt:""}):null}),e.jsx(Ke,{title:t.item.name,children:t.item.name||a("migrate.itemFallback")}),e.jsxs(Ue,{children:[e.jsx(O,{className:"ccy-mark"})," ",e.jsx(oe,{credits:t.priceCredits})]}),e.jsx(Ge,{"data-testid":l[i]==="active"?"migrate-active-status":void 0,children:l[i]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(Je,{className:"spinner","aria-hidden":!0})," ",et(q[i],y)]}):l[i]==="done"?e.jsx(Xe,{children:e.jsx(Ae,{})}):l[i]==="skipped"?e.jsx(Ve,{children:a("migrate.statusSkipped")}):l[i]==="failed"?e.jsx(Z,{children:a("migrate.statusFailed")}):l[i]==="unlisted"?e.jsx(Z,{title:a("migrate.unlistedTooltip"),children:a("migrate.statusUnlisted")}):e.jsx(He,{children:a("migrate.statusWaiting")})})]},t.item.oldTradeId))}),e.jsx(Ze,{className:"muted small",children:y?x?a(x.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:x.total}):a("migrate.hintConfirm"):a("migrate.hintManaged")})]})})}const it="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='84.837'%20height='84.837'%20viewBox='0%200%2084.837%2084.837'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M29.2935%2033.6675L43.5472%2044.36C44.4303%2045.0223%2045.5311%2045.3263%2046.6288%2045.2111C47.7266%2045.0959%2048.7403%2044.5699%2049.4666%2043.7387L77.4185%2011.7925'%20stroke='url(%23paint0_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3cpath%20id='Vector_2'%20d='M81.7935%2042.4178C81.7936%2050.6451%2079.2167%2058.6658%2074.4245%2065.3533C69.6323%2072.0409%2062.8657%2077.0594%2055.075%2079.7039C47.2843%2082.3485%2038.8609%2082.4862%2030.9879%2080.0978C23.1149%2077.7094%2016.1878%2072.9149%2011.1796%2066.3876C6.17126%2059.8603%203.33339%2051.9282%203.06452%2043.7053C2.79565%2035.4824%205.10927%2027.3818%209.68046%2020.5413C14.2516%2013.7008%2020.8507%208.46394%2028.5509%205.56634C36.251%202.66875%2044.6654%202.25594%2052.6122%204.38589'%20stroke='url(%23paint1_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_74'%20x1='27.7771'%20y1='28.5159'%20x2='111.866'%20y2='17.1154'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_74'%20x1='0.562175'%20y1='42.4235'%20x2='139.458'%20y2='29.3377'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",{colors:o,font:nt,media:f,radius:R}=A,at=n.div`
|
|
193
193
|
display: flex;
|
|
194
194
|
flex-direction: column;
|
|
195
195
|
align-items: center;
|
|
@@ -205,7 +205,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
205
205
|
justify-content: center;
|
|
206
206
|
gap: 24px;
|
|
207
207
|
padding: 16px;
|
|
208
|
-
border-radius: ${
|
|
208
|
+
border-radius: ${R.modal};
|
|
209
209
|
background: ${o.white};
|
|
210
210
|
text-align: center;
|
|
211
211
|
`,rt=n.span`
|
|
@@ -242,7 +242,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
242
242
|
width: 310px;
|
|
243
243
|
max-width: 100%;
|
|
244
244
|
padding-bottom: 16px;
|
|
245
|
-
`,pt=n(
|
|
245
|
+
`,pt=n(B)`
|
|
246
246
|
width: 100%;
|
|
247
247
|
height: 56px;
|
|
248
248
|
border-radius: 12px;
|
|
@@ -329,7 +329,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
329
329
|
place-items: center;
|
|
330
330
|
width: 20px;
|
|
331
331
|
height: 20px;
|
|
332
|
-
border-radius: ${
|
|
332
|
+
border-radius: ${R.pill};
|
|
333
333
|
background: ${o.dclRed};
|
|
334
334
|
font-weight: 600;
|
|
335
335
|
font-size: 12px;
|
|
@@ -384,7 +384,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
384
384
|
row-gap: 8px;
|
|
385
385
|
padding: 12px 24px 12px 0;
|
|
386
386
|
border: 1px solid ${o.gray4};
|
|
387
|
-
border-radius: ${
|
|
387
|
+
border-radius: ${R.card};
|
|
388
388
|
background: ${o.white};
|
|
389
389
|
overflow: hidden;
|
|
390
390
|
transition: opacity 0.25s ease;
|
|
@@ -484,7 +484,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
484
484
|
height: 42px;
|
|
485
485
|
padding: 8px;
|
|
486
486
|
border: 0.5px solid ${o.muted2};
|
|
487
|
-
border-radius: ${
|
|
487
|
+
border-radius: ${R.btn};
|
|
488
488
|
background: ${o.panel};
|
|
489
489
|
|
|
490
490
|
/* The OUTLINED credit glyph, not the filled gradient mark: the filled one is right for a price you are
|
|
@@ -520,7 +520,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
520
520
|
color: ${o.text};
|
|
521
521
|
text-align: right;
|
|
522
522
|
font-variant-numeric: tabular-nums;
|
|
523
|
-
`,
|
|
523
|
+
`,_t=n.div`
|
|
524
524
|
display: flex;
|
|
525
525
|
align-items: baseline;
|
|
526
526
|
gap: 4px;
|
|
@@ -532,14 +532,14 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
532
532
|
${f.maxWidth("mobile")} {
|
|
533
533
|
justify-content: center;
|
|
534
534
|
}
|
|
535
|
-
`,
|
|
535
|
+
`,Rt=n.span`
|
|
536
536
|
font-weight: 300;
|
|
537
537
|
font-size: 10px;
|
|
538
538
|
color: ${o.muted};
|
|
539
539
|
`,Ft=n.div`
|
|
540
540
|
height: 101px;
|
|
541
541
|
border: 1px solid transparent;
|
|
542
|
-
border-radius: ${
|
|
542
|
+
border-radius: ${R.card};
|
|
543
543
|
background: linear-gradient(100deg, #ededed 30%, #f7f7f7 50%, #ededed 70%);
|
|
544
544
|
background-size: 200% 100%;
|
|
545
545
|
animation: shimmer 1.3s infinite linear;
|
|
@@ -575,7 +575,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
575
575
|
justify-content: space-between;
|
|
576
576
|
gap: 12px;
|
|
577
577
|
}
|
|
578
|
-
`,
|
|
578
|
+
`,Bt=n.div`
|
|
579
579
|
display: flex;
|
|
580
580
|
align-items: center;
|
|
581
581
|
gap: 6px;
|
|
@@ -587,7 +587,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
587
587
|
width: 17px;
|
|
588
588
|
height: 17px;
|
|
589
589
|
}
|
|
590
|
-
`,
|
|
590
|
+
`,Qt=n.div`
|
|
591
591
|
font-size: 13px;
|
|
592
592
|
color: ${o.muted};
|
|
593
593
|
`,qt=n.span`
|
|
@@ -596,7 +596,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
596
596
|
${f.maxWidth("mobile")} {
|
|
597
597
|
display: none;
|
|
598
598
|
}
|
|
599
|
-
`,Dt=n(
|
|
599
|
+
`,Dt=n(B)`
|
|
600
600
|
flex: none;
|
|
601
601
|
min-width: 260px;
|
|
602
602
|
padding: 13px 24px;
|
|
@@ -622,5 +622,5 @@ import{j as e,b as pe,r as p,L as he}from"./react-BHaOXxRY.js";import{t as A,s a
|
|
|
622
622
|
font-size: 18px;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
`,W=[5e3,15e3,35e3],se=[{question:"faq.sellers.whatAreQ",answer:"faq.sellers.whatAreA"},{question:"faq.sellers.whyCreditsQ",answer:"faq.sellers.whyCreditsA"},{question:"faq.sellers.receiveCreditsQ",answer:"faq.sellers.receiveCreditsA"},{question:"faq.sellers.changePriceQ",answer:"faq.sellers.changePriceA"},{question:"faq.sellers.mustSwitchQ",answer:"faq.sellers.mustSwitchA"},{question:"faq.sellers.suggestedPriceQ",answer:"faq.sellers.suggestedPriceA"}],Wt="https://docs.decentraland.org";function Nt(s){try{return $e(BigInt(s))}catch{return null}}function ni(){const{session:s}=fe(),d=we(),{items:h,isLoading:I}=Se(),[
|
|
626
|
-
//# sourceMappingURL=index-
|
|
625
|
+
`,W=[5e3,15e3,35e3],se=[{question:"faq.sellers.whatAreQ",answer:"faq.sellers.whatAreA"},{question:"faq.sellers.whyCreditsQ",answer:"faq.sellers.whyCreditsA"},{question:"faq.sellers.receiveCreditsQ",answer:"faq.sellers.receiveCreditsA"},{question:"faq.sellers.changePriceQ",answer:"faq.sellers.changePriceA"},{question:"faq.sellers.mustSwitchQ",answer:"faq.sellers.mustSwitchA"},{question:"faq.sellers.suggestedPriceQ",answer:"faq.sellers.suggestedPriceA"}],Wt="https://docs.decentraland.org";function Nt(s){try{return $e(BigInt(s))}catch{return null}}function ni(){const{session:s}=fe(),d=we(),{items:h,isLoading:I}=Se(),[Q,y]=p.useState({}),[q,F]=p.useState(new Set),[x,E]=p.useState(null),l=p.useRef({timer:null,alive:!0,migrated:new Set});p.useEffect(()=>{const t=l.current;return t.alive=!0,()=>{t.alive=!1,t.timer&&clearTimeout(t.timer)}},[]),p.useEffect(()=>{h.length&&y(t=>{const i={...t};for(const r of h)i[r.oldTradeId]==null&&(i[r.oldTradeId]=r.suggestedCredits);return i})},[h]);const b=t=>!q.has(t),v=t=>Q[t.oldTradeId]??t.suggestedCredits,w=h.filter(t=>b(t.oldTradeId)),T=w.reduce((t,i)=>t+v(i),0),j=h.length>0&&w.length===h.length,k=w.length>0&&!j;function M(t,i){const r=i.replace(/[^\d]/g,"");y(c=>({...c,[t]:r===""?0:parseInt(r,10)}))}function D(t){F(i=>{const r=new Set(i);return r.has(t)?r.delete(t):r.add(t),r})}function C(){F(j?new Set(h.map(t=>t.oldTradeId)):new Set)}function S(t){return t.map(i=>({item:i,priceCredits:Math.max(1,v(i))}))}function m(t){const i=(r=[])=>r.filter(c=>!t.has(c.oldTradeId));d.setQueriesData({queryKey:["importable"]},r=>r&&{creations:i(r.creations),owned:i(r.owned)})}function $(t){return d.getQueriesData({queryKey:["importable"]}).flatMap(([,i])=>[...(i==null?void 0:i.creations)??[],...(i==null?void 0:i.owned)??[]]).some(i=>t.has(i.oldTradeId))}function L(t){const i=l.current;i.timer&&clearTimeout(i.timer),i.timer=setTimeout(()=>{d.refetchQueries({queryKey:["importable"]}).then(()=>{if(i.alive){if(!$(i.migrated)||t+1>=W.length){i.migrated.clear();return}m(i.migrated),L(t+1)}})},W[t]-(W[t-1]??0))}function P(t){if(t.failed===0&&t.cancelled===0&&t.listed>0&&(x!=null&&x.length)){const{migrated:i}=l.current;for(const r of x)i.add(r.item.oldTradeId);m(i),L(0)}else d.invalidateQueries({queryKey:["importable"]});d.invalidateQueries({queryKey:["shop-items"]}),d.invalidateQueries({queryKey:["catalog-items"]}),d.invalidateQueries({queryKey:["overview-listings"]}),d.invalidateQueries({queryKey:["upsell-listings"]}),d.invalidateQueries({queryKey:["my-assets"]}),d.invalidateQueries({queryKey:["collection-sale-state"]}),t.failed>0?H.error(a(t.listed>0?"importListings.toastPartial":"importListings.toastFailed")):t.listed>0&&H.success(a("importListings.toastUpdated"))}return!I&&h.length===0?e.jsxs(ee,{children:[e.jsx(at,{"data-testid":"import-empty",children:e.jsxs(st,{children:[e.jsx(rt,{"aria-hidden":!0,children:e.jsx("img",{src:it,alt:"",width:85,height:85})}),e.jsxs(ot,{children:[e.jsx(dt,{children:a("importListings.emptyTitle")}),e.jsx(lt,{children:a("importListings.emptyBody")})]}),e.jsx(ct,{children:e.jsx(pt,{as:he,to:re,variant:"purple",children:a("importListings.goToMyAssets")})})]})}),e.jsx(ae,{children:e.jsx(V,{title:"faq.title",entries:se,tone:"on-dark"})})]}):e.jsxs(ee,{children:[e.jsxs(ht,{children:[e.jsxs(gt,{children:[e.jsx(xt,{children:a("importListings.title")}),e.jsxs("div",{children:[e.jsx(mt,{children:a("importListings.lede",{currency:be(N.name)})}),e.jsxs(ut,{href:Wt,target:"_blank",rel:"noopener noreferrer",children:[a("importListings.learnMore"),e.jsx(G,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(ze,{tone:"on-dark"})]}),e.jsx(te,{}),e.jsxs(ft,{children:[e.jsxs(wt,{"data-testid":"import-progress",children:[e.jsx(bt,{"data-testid":"import-count",children:h.length}),a("importListings.updatePricing")]}),e.jsxs(yt,{children:[e.jsxs(vt,{children:[e.jsx(ie,{"data-tone":"on-dark",children:e.jsx(Y,{type:"checkbox",checked:j,ref:t=>{t&&(t.indeterminate=k)},"data-indeterminate":k,onChange:C,"data-testid":"import-select-all","aria-label":a("importListings.selectAllAria")})}),a("importListings.selectAll")]}),e.jsx(jt,{children:I?Array.from({length:4}).map((t,i)=>e.jsx(Ft,{},i)):h.map(t=>{const i=v(t),r=ye({...t,wearableCategory:t.wearableCategory??void 0}),c=Nt(t.manaWei);return e.jsxs(kt,{"data-off":b(t.oldTradeId)?void 0:!0,children:[e.jsxs($t,{children:[e.jsx(ie,{children:e.jsx(Y,{type:"checkbox",checked:b(t.oldTradeId),onChange:()=>D(t.oldTradeId),"data-testid":"import-row-check","aria-label":a("importListings.includeItem",{name:t.name})})}),e.jsx(Ct,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null})]}),e.jsxs(It,{children:[e.jsx(Tt,{title:t.name,children:t.name||a("importListings.itemFallback")}),e.jsxs(St,{children:[e.jsx(ne,{"data-variant":"rarity",style:{background:ke(t.rarity),color:je(t.rarity)},children:ve(t.rarity)}),r?e.jsx(ne,{"data-variant":"icon",children:e.jsx(G,{name:r,"aria-hidden":!0})}):null]})]}),e.jsxs(Lt,{children:[e.jsxs(zt,{children:[e.jsx(O,{}),e.jsx(At,{"data-testid":"imp-price-input",inputMode:"numeric",value:i.toLocaleString(),onChange:g=>M(t.oldTradeId,g.target.value),"aria-label":a("importListings.priceAria",{currency:N.name,name:t.name})})]}),e.jsxs(_t,{children:[e.jsxs("span",{children:["$",K(i).toFixed(2)]}),c?e.jsx(Rt,{children:a("importListings.wasMana",{amount:c})}):null]})]})]},t.oldTradeId)})})]})]}),e.jsx(te,{}),e.jsx(ae,{children:e.jsx(V,{title:"faq.title",entries:se,tone:"on-dark"})}),e.jsx(Et,{children:e.jsxs(Mt,{children:[e.jsxs(Pt,{children:[e.jsxs(Bt,{children:[e.jsx(O,{})," ",e.jsx(oe,{credits:T})]}),e.jsx(Qt,{children:a("importListings.selectedSummary",{count:w.length,usd:K(T).toFixed(2)})})]}),e.jsx(qt,{}),e.jsx(Dt,{variant:"red","data-testid":"import-list-all",disabled:w.length===0,onClick:()=>E(S(w)),children:a("importListings.listAll",{count:w.length})})]})}),x&&s?e.jsx(tt,{queue:x,session:s,onClose:()=>E(null),onDone:P}):null]})}export{ni as ImportListings};
|
|
626
|
+
//# sourceMappingURL=index-Vp2Cyuj4.js.map
|