@dcl/shop 1.4.2-31321510979.commit-eaccdfa → 1.4.2-31321833858.commit-d05a541

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.
Files changed (220) hide show
  1. package/_assets/Activity-DsalM-e5.js +378 -0
  2. package/_assets/{AnimatedBackground-cJyJ3k37.js → AnimatedBackground-BOrNsqN1.js} +1 -1
  3. package/_assets/{Assets-CgKshhdA.js → Assets-QOoWiQL0.js} +2 -2
  4. package/_assets/{Assets.styles-C7r9wHQF.js → Assets.styles-CSP5Wb2u.js} +1 -1
  5. package/_assets/{Authorizations-BJbX0ZkC.js → Authorizations-C7ZkQpU3.js} +1 -1
  6. package/_assets/{Cart-DK4zdt7W.js → Cart-CwXY-en-.js} +1 -1
  7. package/_assets/{CircularProgress-BI-Efq9-.js → CircularProgress-DJGW52uC.js} +1 -1
  8. package/_assets/{Collection-Cf172utI.js → Collection-Dw81a56N.js} +4 -4
  9. package/_assets/{CollectionCarousel-BxoPvgOg.js → CollectionCarousel-mhAYGnTb.js} +19 -19
  10. package/_assets/{Confetti-D2X3FtD_.js → Confetti-BJzwqwTF.js} +1 -1
  11. package/_assets/{ConstantsUtil-BYkVBz19.js → ConstantsUtil-S9Rc8iab.js} +1 -1
  12. package/_assets/{ContentClient-BkLWw6Rk.js → ContentClient-ljReoKyO.js} +1 -1
  13. package/_assets/{Creator-BFj8KtJ0.js → Creator-D9b4j61f.js} +1 -1
  14. package/_assets/{DeploymentBuilder-8E575y44.js → DeploymentBuilder-DSxp43uX.js} +1 -1
  15. package/_assets/{ErrorNotice-BYO5Bvyc.js → ErrorNotice-B_DnZnpz.js} +1 -1
  16. package/_assets/{ExchangeController-BA0Eliky.js → ExchangeController-BnL43Mxg.js} +1 -1
  17. package/_assets/{Faq-CaXi1BNV.js → Faq-BkoPMwLV.js} +1 -1
  18. package/_assets/{GetCredits-khV-GXU_.js → GetCredits-CetTDoCs.js} +1 -1
  19. package/_assets/{Grow-DVmpJZOV.js → Grow-DL6epSiS.js} +1 -1
  20. package/_assets/{HelpersUtil-DynUp31-.js → HelpersUtil-BL1YqLJc.js} +1 -1
  21. package/_assets/{ItemDetail-DDdnprOE.js → ItemDetail-VFYUF0mL.js} +1 -1
  22. package/_assets/LazyEmoteControls-BGRwSFAr.js +2 -0
  23. package/_assets/{LoadMore-CYVBsAhd.js → LoadMore-DAmGHMVW.js} +1 -1
  24. package/_assets/{ManaPricingBanner.styles-C44WWkRh.js → ManaPricingBanner.styles-2dMknEFN.js} +1 -1
  25. package/_assets/{MyAssets-ogqvhbaY.js → MyAssets-BSO8VWKY.js} +2 -2
  26. package/_assets/{MyFavorites-D8erMGcd.js → MyFavorites-DHhBkxx8.js} +1 -1
  27. package/_assets/{NetworkUtil-BsEXGHJo.js → NetworkUtil-CmFj23VB.js} +1 -1
  28. package/_assets/{NotFound-D5seDwlz.js → NotFound-DH7CCo8Z.js} +1 -1
  29. package/_assets/{NotificationsBell-uJCcRX8e.js → NotificationsBell-C-ZXxEiI.js} +1 -1
  30. package/_assets/{OutfitDetail-Cnd07GLk.js → OutfitDetail-CFY6HZm6.js} +1 -1
  31. package/_assets/{OutfitPreview-BADnZcBi.js → OutfitPreview-DS6GhxsN.js} +1 -1
  32. package/_assets/{OutfitStudio-DsQnrk15.js → OutfitStudio-NVNd-hvf.js} +8 -8
  33. package/_assets/{StoreSettings-Du81JVhq.js → StoreSettings-CrZZUE9j.js} +1 -1
  34. package/_assets/{Success-CSByCd9s.js → Success-B-MnwiE5.js} +1 -1
  35. package/_assets/{SwapController-Dl69afRt.js → SwapController-Dbqbv3yv.js} +1 -1
  36. package/_assets/{Tooltip-Cz34W2WD.js → Tooltip-BV1YJ2nx.js} +1 -1
  37. package/_assets/{TradeService-DYWoUp2O.js → TradeService-BDhWL-iC.js} +1 -1
  38. package/_assets/{W3MFrameProviderSingleton-DMgnEflU.js → W3MFrameProviderSingleton-DkDY_Uhq.js} +3 -3
  39. package/_assets/{WebCryptoP256-DvJwZjAY.js → WebCryptoP256-dZsiPxua.js} +1 -1
  40. package/_assets/authorizations-DdXEl4SH.js +1 -0
  41. package/_assets/{basic-CgCNtuea.js → basic-BxS4xyCI.js} +1 -1
  42. package/_assets/{biconomy-ChCoIucR.js → biconomy-ChyCaDhZ.js} +1 -1
  43. package/_assets/{builder-UN5pIfno.js → builder-aNj3KtnQ.js} +1 -1
  44. package/_assets/{buy-BsMK5C0W.js → buy-ITSy499E.js} +1 -1
  45. package/_assets/buy-gasless-Qwo4-LdH.js +1 -0
  46. package/_assets/{categories-BoH_BcuN.js → categories-C_3TBHB6.js} +1 -1
  47. package/_assets/{ccip-BoCyT5Kw.js → ccip-DSAZ1Drq.js} +1 -1
  48. package/_assets/{ccip-ci60pO9_.js → ccip-q9rBWRrW.js} +1 -1
  49. package/_assets/{chains-BXxRVqOL.js → chains-C3ogoGMY.js} +1 -1
  50. package/_assets/{collectionPage.styles-BK-K9Hp7.js → collectionPage.styles-lQ1i3kYb.js} +4 -4
  51. package/_assets/{common-pfIErvdh.js → common-Du-luxO1.js} +1 -1
  52. package/_assets/{controller-Bmdml4vJ.js → controller-CjHTogUM.js} +2 -2
  53. package/_assets/{core-DSyHKtkv.js → core-BLRurbyU.js} +4 -4
  54. package/_assets/{createSvgIcon-B7oSzltn.js → createSvgIcon-DPRU4ebA.js} +1 -1
  55. package/_assets/{custom-CpeFfUh_.js → custom-DESM1TBo.js} +1 -1
  56. package/_assets/{data-capture-D82nwrKY.js → data-capture-Xahs7XND.js} +1 -1
  57. package/_assets/decimals-CA4WCN0k.js +1 -0
  58. package/_assets/{decimals-CufGxqGB.js → decimals-CN36TWfs.js} +1 -1
  59. package/_assets/{detectExtension-DJir-uLI.js → detectExtension-D5bfb7Ei.js} +1 -1
  60. package/_assets/{email-B3_G7aNG.js → email-BnVyGQjo.js} +1 -1
  61. package/_assets/{embedded-wallet-CbWrcRQY.js → embedded-wallet-BZeoh5V4.js} +1 -1
  62. package/_assets/{emotion-styled.browser.esm-mKrb76ZC.js → emotion-styled.browser.esm-ScvFm9x7.js} +1 -1
  63. package/_assets/{engine-Ck8sAaZu.js → engine-B-fLoDkH.js} +1 -1
  64. package/_assets/{errors-CvYDNXLT.js → errors-DXSAwVw4.js} +1 -1
  65. package/_assets/{estimate-l1-fee-BrAAemAM.js → estimate-l1-fee-BjJ_4KQn.js} +1 -1
  66. package/_assets/{eth_estimateGas-D9Pu3PNx.js → eth_estimateGas-VGXN9rx1.js} +1 -1
  67. package/_assets/{eth_getStorageAt-BSkNzsMl.js → eth_getStorageAt-xHOtLw9t.js} +1 -1
  68. package/_assets/{eth_getTransactionCount-DpXnQ6cd.js → eth_getTransactionCount-DeOan_M2.js} +1 -1
  69. package/_assets/{ethereum-D1MZ_SH0.js → ethereum-wAQ6oI96.js} +1 -1
  70. package/_assets/{ethers-BKEzvwKN.js → ethers-CHvw3dSr.js} +1 -1
  71. package/_assets/{execute-DFgCeynW.js → execute-DA2F3yom.js} +2 -2
  72. package/_assets/{extractIPFS-DuxYPj2T.js → extractIPFS-DYEe95Fe.js} +1 -1
  73. package/_assets/{features-CAYyw2t4.js → features-P2l_M4a9.js} +1 -1
  74. package/_assets/{fetchTokenMetadata-CpttgW84.js → fetchTokenMetadata-C1e9utql.js} +2 -2
  75. package/_assets/{field.styles-DKv8B53l.js → field.styles-DUhp2XSE.js} +1 -1
  76. package/_assets/{get-bytecode-CL7QG9KN.js → get-bytecode-C_QCCMoR.js} +1 -1
  77. package/_assets/get-ecosystem-wallet-info-D6ZqL22k.js +1 -0
  78. package/_assets/{getBalance-B2ObTKo9.js → getBalance-BRp_O879.js} +2 -2
  79. package/_assets/{getInstalledModules-OWhC7ilZ.js → getInstalledModules-TqMZVwQW.js} +1 -1
  80. package/_assets/getNFT-CxoCzDMN.js +1 -0
  81. package/_assets/{getNFT-DEL-8DlX.js → getNFT-D5BgP1-B.js} +2 -2
  82. package/_assets/{grid.styles-CLaodk5Q.js → grid.styles-8zRUQugb.js} +1 -1
  83. package/_assets/{hashTypedData-l-4TMklh.js → hashTypedData-BVfCehOr.js} +1 -1
  84. package/_assets/{hashTypedData-DejwI0fC.js → hashTypedData-DYCRMzzm.js} +1 -1
  85. package/_assets/{in-app-CAxC4Ivh.js → in-app-DkcHZ10N.js} +1 -1
  86. package/_assets/{in-app-wallet-calls-B4qBtbAF.js → in-app-wallet-calls-gnS8ZYX9.js} +1 -1
  87. package/_assets/{index-DqhO9Fg3.js → index--uTyu0uz.js} +1 -1
  88. package/_assets/{index-eNelMLKH.js → index-1ZLnfNGq.js} +1 -1
  89. package/_assets/{index-DakB46KR.js → index-2mvOLhCu.js} +1 -1
  90. package/_assets/{index-CEyMhxNB.js → index-B-uyLfLW.js} +1 -1
  91. package/_assets/{index-DEJfCl92.js → index-BElLBIDw.js} +1 -1
  92. package/_assets/{index-BxnUk4ME.js → index-BHVZE5-w.js} +1 -1
  93. package/_assets/{index-Bv9rCbrF.js → index-BHiuk7dd.js} +1 -1
  94. package/_assets/{index-BVi-9LKN.js → index-BKE2sklY.js} +1 -1
  95. package/_assets/{index-DP6QK5zD.js → index-BR-AXZqF.js} +1 -1
  96. package/_assets/{index-CRzzQfOr.js → index-BTUwiZLK.js} +1 -1
  97. package/_assets/{index-Bh6adykR.js → index-BVWvbmB_.js} +12 -12
  98. package/_assets/{index-Dhix6rUc.js → index-BYvgoigv.js} +1 -1
  99. package/_assets/{index-BYLXLXoc.js → index-B_1v6F0h.js} +1 -1
  100. package/_assets/{index-DvYOZ9Sr.js → index-B_3Ca4N6.js} +2 -2
  101. package/_assets/{index-Cmjegovo.js → index-BcxEq2Er.js} +1 -1
  102. package/_assets/{index-BMx0J1W7.js → index-BhcJRwSw.js} +1 -1
  103. package/_assets/{index-CK61l8v-.js → index-BiNtOaPH.js} +1 -1
  104. package/_assets/{index-DUOQXffc.js → index-Bl3tllG2.js} +1 -1
  105. package/_assets/{index-hKJudHRw.js → index-BqTYxdMG.js} +1 -1
  106. package/_assets/{index-DKT5zOvs.js → index-BsZqUcMW.js} +1 -1
  107. package/_assets/{index-DkPrBpEu.js → index-BtXchQlE.js} +1 -1
  108. package/_assets/{index-BLuTTbXE.js → index-CA_m9eDM.js} +1 -1
  109. package/_assets/{index-Zf4oaxuE.js → index-CEBe8Ks-.js} +1 -1
  110. package/_assets/{index-BfOmf_Cp.js → index-CI91n7ZK.js} +1 -1
  111. package/_assets/{index-1QstDrwj.js → index-CKQ7PP9t.js} +1 -1
  112. package/_assets/{index-9KWmRLJY.js → index-CNjkfqno.js} +1 -1
  113. package/_assets/{index-DFBE_Qdk.js → index-CSuR3VTG.js} +1 -1
  114. package/_assets/{index-DOLSZTRS.js → index-CVdDq8EF.js} +1 -1
  115. package/_assets/{index-R9nHgWvM.js → index-CYTl2aV_.js} +1 -1
  116. package/_assets/{index-Cumq3JZH.js → index-CaWADU3A.js} +3 -3
  117. package/_assets/{index-EF_jUQ8k.js → index-ChtghJjk.js} +1 -1
  118. package/_assets/{index-CzLF63y-.js → index-CstxEm24.js} +1 -1
  119. package/_assets/{index-BKv8igl6.js → index-CtmBq3lY.js} +1 -1
  120. package/_assets/{index-BJSqjAz5.js → index-CtnJfdje.js} +1 -1
  121. package/_assets/{index-BkyZYtvZ.js → index-CuEcRXk2.js} +1 -1
  122. package/_assets/{index-Cg55UGkV.js → index-Cy3K6TbO.js} +1 -1
  123. package/_assets/{index-DGlvMnC6.js → index-D0Sno89y.js} +1 -1
  124. package/_assets/{index-ChXE0-3A.js → index-D3Cq4bqb.js} +1 -1
  125. package/_assets/{index-DPwpeXbZ.js → index-DBV70okV.js} +1 -1
  126. package/_assets/{index-BHsHyxTp.js → index-DFbLJk0v.js} +1 -1
  127. package/_assets/{index-Bf9Jh6ty.js → index-DIXd4yr6.js} +3 -3
  128. package/_assets/{index-DiWnKuWQ.js → index-DJj7DNI5.js} +2 -2
  129. package/_assets/{index-BWHG3_yU.js → index-DKik1tqf.js} +1 -1
  130. package/_assets/{index-tslnPDXe.js → index-DNaUH0hG.js} +1 -1
  131. package/_assets/{index-Dcr_mOap.js → index-DOUhX2vd.js} +1 -1
  132. package/_assets/{index-CXVjVFyf.js → index-DWB648gE.js} +2 -2
  133. package/_assets/{index-BoAHsqWZ.js → index-DbCIRxku.js} +3 -3
  134. package/_assets/{index-BvqQC62-.js → index-DfVwZLZv.js} +1 -1
  135. package/_assets/{index-PKeNbFmQ.js → index-Di93FjoO.js} +1 -1
  136. package/_assets/{index-BeR8agGt.js → index-DoPvIZFo.js} +1 -1
  137. package/_assets/{index-D7lxJ3dw.js → index-Dziv-ztL.js} +1 -1
  138. package/_assets/{index-DawlAKc2.js → index-KCnWqTid.js} +1 -1
  139. package/_assets/{index-BbVTIE6o.js → index-LLZCscV-.js} +1 -1
  140. package/_assets/{index-DVLRWBza.js → index-RzZ2o1PM.js} +1 -1
  141. package/_assets/{index-D5hR2snR.js → index-UKBE5ufT.js} +1 -1
  142. package/_assets/{index-DiIBE3vJ.js → index-WtEb8Dou.js} +1 -1
  143. package/_assets/{index-BS30HDvk.js → index-XsdlViAm.js} +1 -1
  144. package/_assets/{index-C0Q2Xw9m.js → index-hraIPyUK.js} +2 -2
  145. package/_assets/{index-1hFNP4-J.js → index-nyMFoZlx.js} +1 -1
  146. package/_assets/{index-CPeIXfrM.js → index-oGGEVx4e.js} +1 -1
  147. package/_assets/{index-DHGhfu2F.js → index-pGuWMonI.js} +1 -1
  148. package/_assets/{index-Uf7j7Muh.js → index-xmwrM1gX.js} +1 -1
  149. package/_assets/{index.es-CpRZxgSI.js → index.es-1C-91fa0.js} +1 -1
  150. package/_assets/{index.es-mC-IwkBp.js → index.es-BSWBrpQe.js} +4 -4
  151. package/_assets/{index.es-BrdXKoNI.js → index.es-dMv11h1g.js} +1 -1
  152. package/_assets/{linkAccount-BC_9YSzE.js → linkAccount-BPOjpDQF.js} +1 -1
  153. package/_assets/{localBatchGatewayRequest-Sqedi9_T.js → localBatchGatewayRequest-DQhTBRSh.js} +1 -1
  154. package/_assets/{native-Dc2tC-qn.js → native-DDD_yqs5.js} +1 -1
  155. package/_assets/{networks-D1KxTI6W.js → networks-DuFCMSqt.js} +1 -1
  156. package/_assets/{onramp-DoImupnC.js → onramp-CB-lwIcL.js} +1 -1
  157. package/_assets/{openzeppelin-BgxtMme5.js → openzeppelin-BEzK-ytM.js} +1 -1
  158. package/_assets/{ownerOf-3KXrH0u3.js → ownerOf-CR0b_ZWL.js} +1 -1
  159. package/_assets/{parseNft-PSXPX8Qm.js → parseNft-CeR_0mFl.js} +2 -2
  160. package/_assets/{parseSignature-CYlDxQ9k.js → parseSignature-BXY4fDlp.js} +3 -3
  161. package/_assets/{parseSignature-DTi4uU4Z.js → parseSignature-DvIu4faj.js} +1 -1
  162. package/_assets/{passkeys-5lnypzRC.js → passkeys-DoXc4Xy7.js} +1 -1
  163. package/_assets/{pay-with-exchange-CWcjyYs3.js → pay-with-exchange-D3YRwRnQ.js} +1 -1
  164. package/_assets/{prepare-contract-call-Bc4Cpa9D.js → prepare-contract-call-CuOouwzZ.js} +1 -1
  165. package/_assets/{qr-overlay-NPhJDGVq.js → qr-overlay-BKsCOIA8.js} +1 -1
  166. package/_assets/{receive-VPgnkZS_.js → receive-B1KBfflU.js} +1 -1
  167. package/_assets/{resolveImplementation-fHRuJM82.js → resolveImplementation-rJZA8R7-.js} +1 -1
  168. package/_assets/{rpc-DZP--mgd.js → rpc-z-_gajTg.js} +1 -1
  169. package/_assets/{secp256k1-oNvcpUA1.js → secp256k1-CEt2uVIa.js} +1 -1
  170. package/_assets/{secp256k1-sqjfgWa7.js → secp256k1-DzPEUahX.js} +1 -1
  171. package/_assets/{secp256k1-C3Qb75Qb.js → secp256k1-Eu_UrDZQ.js} +1 -1
  172. package/_assets/{send-yMlzgxV3.js → send-BP56Pjq2.js} +1 -1
  173. package/_assets/{send-batch-transaction-C5BOzhrb.js → send-batch-transaction-E8tR0aO1.js} +1 -1
  174. package/_assets/{send-eip712-transaction-BfXD1pXX.js → send-eip712-transaction-6B8BaRp6.js} +2 -2
  175. package/_assets/send-gasless-transaction-BC0vYYGz.js +2 -0
  176. package/_assets/{send-transaction-DLLBmyZ2.js → send-transaction-Cyj6alac.js} +2 -2
  177. package/_assets/{sendMetaTransaction-DCqRrKxD.js → sendMetaTransaction-CxjN2iMp.js} +1 -1
  178. package/_assets/{sendRawTransaction-k2Sfh7AJ.js → sendRawTransaction-BZMjypDx.js} +3 -3
  179. package/_assets/{sentry-1ai9esXb.js → sentry-CUdtSPei.js} +1 -1
  180. package/_assets/{serializeTransaction-CwlY06pE.js → serializeTransaction-DdLuDvZh.js} +1 -1
  181. package/_assets/{session-proposal-BR4gno3D.js → session-proposal-Cb_IdGgx.js} +1 -1
  182. package/_assets/{session-request-DelvKYtg.js → session-request-CuiTHTkf.js} +2 -2
  183. package/_assets/{sha256-CeTmPq_Q.js → sha256-DsP9u1VJ.js} +1 -1
  184. package/_assets/{signing-DBPT8c_m.js → signing-B_TMY__g.js} +3 -3
  185. package/_assets/{skeleton.styles-S0BlHaZF.js → skeleton.styles-BZ8ZgFLU.js} +1 -1
  186. package/_assets/{socials-HhtoVIIu.js → socials-DDD9uvpM.js} +1 -1
  187. package/_assets/{styled-9SIjAP06.js → styled-KLwzgdoB.js} +1 -1
  188. package/_assets/{swaps-BzqeewT0.js → swaps-CjqUbBfb.js} +1 -1
  189. package/_assets/{thirdweb-YIX7a_02.js → thirdweb-0rujUNSl.js} +3 -3
  190. package/_assets/{to-serializable-transaction-DqDYMKiS.js → to-serializable-transaction-NCusZ8xl.js} +2 -2
  191. package/_assets/{totalSupply-7X9a1Ctp.js → totalSupply-u5fgMBD-.js} +1 -1
  192. package/_assets/{transaction-DcVIFcB7.js → transaction-C8mfivVb.js} +1 -1
  193. package/_assets/{transactionReceipt-CdHeShcY.js → transactionReceipt-BHjPvP-A.js} +1 -1
  194. package/_assets/{transactions-DG7v8Ic7.js → transactions-D0YLE766.js} +1 -1
  195. package/_assets/{useCreditPacks-vq0qzOlC.js → useCreditPacks-DhRruCBh.js} +1 -1
  196. package/_assets/{useImportable-BJCj_pDd.js → useImportable-COXp75Oi.js} +1 -1
  197. package/_assets/{useInfiniteGrid-BzWCN8NZ.js → useInfiniteGrid-CPaNhKNU.js} +1 -1
  198. package/_assets/{useStore-CQ5asPEA.js → useStore-a0qe_EW2.js} +2 -2
  199. package/_assets/useTheme-DgGKATWA.js +1 -0
  200. package/_assets/{utils-DPjdBMrV.js → utils-ClNpRN95.js} +1 -1
  201. package/_assets/{verifyHash-B6Vh-Wda.js → verifyHash-Czkmjbtb.js} +1 -1
  202. package/_assets/{w3m-modal-BBx0I47s.js → w3m-modal-CCQZ28h5.js} +1 -1
  203. package/_assets/{w3m-modal-DSuObTMF.js → w3m-modal-XkqIwsWW.js} +1 -1
  204. package/_assets/{wait-for-tx-receipt-dL7u4t_k.js → wait-for-tx-receipt-umHQbgNk.js} +1 -1
  205. package/_assets/{wallets-DUR60lPP.js → wallets-dFWYb-aD.js} +5 -5
  206. package/_assets/{web-connector-CehjxsVA.js → web-connector-B6I8EGFj.js} +3 -3
  207. package/_assets/{writeContract-C0-n2OaV.js → writeContract-C2tbGQyL.js} +1 -1
  208. package/_assets/{zora-sepolia-k6yl8DpC.js → zora-sepolia-CIZA49Ti.js} +1 -1
  209. package/_assets/{zoraTestnet-7xxdYXjY.js → zoraTestnet-Chf9u3j4.js} +1 -1
  210. package/index.html +11 -11
  211. package/package.json +2 -2
  212. package/_assets/Activity-Du3v4d55.js +0 -378
  213. package/_assets/LazyEmoteControls-BlgXCM-V.js +0 -2
  214. package/_assets/authorizations-CHiv1Pa7.js +0 -1
  215. package/_assets/buy-gasless-CChLhkv0.js +0 -1
  216. package/_assets/decimals-C8Nkd-f-.js +0 -1
  217. package/_assets/get-ecosystem-wallet-info-ClVaJBNf.js +0 -1
  218. package/_assets/getNFT-BSQnVoEz.js +0 -1
  219. package/_assets/send-gasless-transaction-DTd_ER_v.js +0 -2
  220. package/_assets/useTheme-BzrLLDZ8.js +0 -1
@@ -1 +1 @@
1
- import{bf as n,bg as t}from"./index-Bh6adykR.js";const e="https://wearable-preview.decentraland.zone",a="https://decentraland.zone/account",o="https://decentraland.zone/profile",_="https://decentraland.zone/marketplace",R="https://decentraland.zone/shop",c="https://decentraland.zone/builder",s="https://decentraland.zone/dao",d="https://decentraland.zone/governance",L="https://decentraland.zone/events",U="https://decentraland.zone/places",r="https://decentraland.org/create/",E="https://docs.decentraland.org/player/",l="https://decentraland.zone/download/creator-hub/",O="https://decentraland.zone/download/",A="https://decentraland.zone/download_success/",T="ea2ybdmmn1kv",p="master",N="18g1DzIyBxvu0steSwKyQr",S="https://cms.decentraland.org",C="https://decentraland.zone/marketplace/names/claim",h="https://decentraland.zone/marketplace/lands",D="https://decentraland.zone/marketplace/account",I="https://decentraland.zone/create/",g="https://studios.decentraland.zone/",$="https://decentraland.zone/builder/collections",P="https://decentraland.zone/builder/names",i="https://decentraland.zone/builder/worlds?tab=dcl",m="https://decentraland.zone/builder/land",B="https://decentraland.zone/events/me/",M="https://decentraland.zone/places/favorites/",V="https://docs.decentraland.org/player/",y="https://docs.decentraland.org/creator/",G="https://decentraland.zone/blog/",u="https://docs.decentraland.org/contributor/",b="https://decentraland.zone/governance/transparency/",F="https://decentraland.zone/governance/proposals/",K="https://decentraland.zone/dao/grants/",Y="https://decentraland.zone/governance/projects/",v="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",z="https://decentraland.zone/marketplace/settings",f="https://dcl.gg/discord",w="https://reddit.com/r/decentraland",H="https://github.com/decentraland",W="https://x.com/decentraland",k="https://instagram.com/decentraland_foundation/",x="https://youtube.com/@decentraland_foundation",j="https://tiktok.com/@decentraland_fdn",Q="https://linkedin.com/company/decentralandorg",J="https://decentraland.zone/privacy",X="https://decentraland.zone/terms",q="https://decentraland.zone/content",Z="https://decentraland.zone/ethics",tt="https://decentraland.org/help",nt="mailto:hello@decentraland.org",et="https://docs.decentraland.org/faqs/decentraland-101",at="https://docs.decentraland.org",ot="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",_t="https://download-gateway.decentraland.zone",Rt="https://decentraland.zone/top-scenes",ct="https://testflight.apple.com/join/KF4r3jlU",st="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",dt={WEARABLE_PREVIEW_URL:e,ACCOUNT_URL:a,PROFILE_URL:o,MARKETPLACE_URL:_,SHOP_URL:R,BUILDER_URL:c,DAO_URL:s,GOVERNANCE_URL:d,EVENTS_URL:L,PLACES_URL:U,CREATE_URL:r,LEARN_URL:E,CREATOR_HUB_URL:l,DOWNLOAD_URL:O,DOWNLOAD_SUCCESS_URL:A,CONTENTFUL_SPACE_ID:T,CONTENTFUL_ENV:p,CONTENTFUL_NAVBAR_ENTRY_ID:N,CONTENTFUL_CONTENTFUL_CDN_URL:S,MARKETPLACE_NAMES_URL:C,MARKETPLACE_LANDS_URL:h,MARKETPLACE_MY_ASSETS_URL:D,LANDING_CREATORS_URL:I,STUDIOS_URL:g,BUILDER_WEARABLE_EMOTES_URL:$,BUILDER_NAMES_URL:P,BUILDER_WORLDS_URL:i,BUILDER_LAND_URL:m,EVENTS_MY_EVENTS:B,PLACES_MY_FAVORITE_URL:M,DOCS_ABOUT_URL:V,DOCS_CREATORS_URL:y,BLOG_URL:G,DOCS_CONTRIBUTOR_URL:u,GOVERNANCE_TRANSPARENCY_URL:b,GOVERNANCE_PROPOSALS_URL:F,DAO_GRANTS_URL:K,GOVERNANCE_PROJECTS_URL:Y,DOCS_DAO_URL:v,MARKETPLACE_SETTINGS_URL:z,DISCORD_URL:f,REDDIT_URL:w,GITHUB_URL:H,X_URL:W,INSTAGRAM_URL:k,YOUTUBE_URL:x,TIKTOK_URL:j,LINKEDIN_URL:Q,PRIVACY_POLICY_URL:J,TERMS_OF_USE_URL:X,CONTENT_POLICY_URL:q,CODE_OF_ETHICS_URL:Z,SUPPORT_URL:tt,EMAIL_HELLO_URL:nt,FAQ_URL:et,DOCS_URL:at,BEEHIV_SUBSCRIPTION_URL:ot,AUTO_SIGNING_BASE_URL:_t,TOP_SCENES_URL:Rt,IOS_STORE_URL:ct,ANDROID_STORE_URL:st},Lt="https://wearable-preview.decentraland.org",Ut="https://decentraland.org/account",rt="https://decentraland.org/profile",Et="https://decentraland.org/marketplace",lt="https://decentraland.org/shop",Ot="https://decentraland.org/builder",At="https://decentraland.org/dao",Tt="https://decentraland.org/governance",pt="https://decentraland.org/events",Nt="https://decentraland.org/places",St="https://decentraland.org/create/",Ct="https://docs.decentraland.org/player/",ht="https://decentraland.org/download/creator-hub/",Dt="https://decentraland.org/download/",It="https://decentraland.org/download_success/",gt="ea2ybdmmn1kv",$t="master",Pt="18g1DzIyBxvu0steSwKyQr",it="https://cms.decentraland.org",mt="https://decentraland.org/marketplace/names/claim",Bt="https://decentraland.org/marketplace/lands",Mt="https://decentraland.org/marketplace/account",Vt="https://decentraland.org/create/",yt="https://studios.decentraland.org/",Gt="https://decentraland.org/builder/collections",ut="https://decentraland.org/builder/names",bt="https://decentraland.org/builder/worlds?tab=dcl",Ft="https://decentraland.org/builder/land",Kt="https://decentraland.org/events/me/",Yt="https://decentraland.org/places/favorites/",vt="https://docs.decentraland.org/player/",zt="https://docs.decentraland.org/creator/",ft="https://decentraland.org/blog/",wt="https://docs.decentraland.org/contributor/",Ht="https://decentraland.org/governance/transparency/",Wt="https://decentraland.org/governance/proposals/",kt="https://decentraland.org/dao/grants/",xt="https://decentraland.org/governance/projects/",jt="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",Qt="https://decentraland.org/marketplace/settings",Jt="https://dcl.gg/discord",Xt="https://reddit.com/r/decentraland",qt="https://github.com/decentraland",Zt="https://x.com/decentraland",tn="https://instagram.com/decentraland_foundation/",nn="https://youtube.com/@decentraland_foundation",en="https://tiktok.com/@decentraland_fdn",an="https://linkedin.com/company/decentralandorg",on="https://decentraland.org/privacy",_n="https://decentraland.org/terms",Rn="https://decentraland.org/content",cn="https://decentraland.org/ethics",sn="https://decentraland.org/help",dn="mailto:hello@decentraland.org",Ln="https://docs.decentraland.org/faqs/decentraland-101",Un="https://docs.decentraland.org",rn="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",En="https://download-gateway.decentraland.org",ln="https://decentraland.org/top-scenes",On="https://testflight.apple.com/join/KF4r3jlU",An="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",Tn={WEARABLE_PREVIEW_URL:Lt,ACCOUNT_URL:Ut,PROFILE_URL:rt,MARKETPLACE_URL:Et,SHOP_URL:lt,BUILDER_URL:Ot,DAO_URL:At,GOVERNANCE_URL:Tt,EVENTS_URL:pt,PLACES_URL:Nt,CREATE_URL:St,LEARN_URL:Ct,CREATOR_HUB_URL:ht,DOWNLOAD_URL:Dt,DOWNLOAD_SUCCESS_URL:It,CONTENTFUL_SPACE_ID:gt,CONTENTFUL_ENV:$t,CONTENTFUL_NAVBAR_ENTRY_ID:Pt,CONTENTFUL_CONTENTFUL_CDN_URL:it,MARKETPLACE_NAMES_URL:mt,MARKETPLACE_LANDS_URL:Bt,MARKETPLACE_MY_ASSETS_URL:Mt,LANDING_CREATORS_URL:Vt,STUDIOS_URL:yt,BUILDER_WEARABLE_EMOTES_URL:Gt,BUILDER_NAMES_URL:ut,BUILDER_WORLDS_URL:bt,BUILDER_LAND_URL:Ft,EVENTS_MY_EVENTS:Kt,PLACES_MY_FAVORITE_URL:Yt,DOCS_ABOUT_URL:vt,DOCS_CREATORS_URL:zt,BLOG_URL:ft,DOCS_CONTRIBUTOR_URL:wt,GOVERNANCE_TRANSPARENCY_URL:Ht,GOVERNANCE_PROPOSALS_URL:Wt,DAO_GRANTS_URL:kt,GOVERNANCE_PROJECTS_URL:xt,DOCS_DAO_URL:jt,MARKETPLACE_SETTINGS_URL:Qt,DISCORD_URL:Jt,REDDIT_URL:Xt,GITHUB_URL:qt,X_URL:Zt,INSTAGRAM_URL:tn,YOUTUBE_URL:nn,TIKTOK_URL:en,LINKEDIN_URL:an,PRIVACY_POLICY_URL:on,TERMS_OF_USE_URL:_n,CONTENT_POLICY_URL:Rn,CODE_OF_ETHICS_URL:cn,SUPPORT_URL:sn,EMAIL_HELLO_URL:dn,FAQ_URL:Ln,DOCS_URL:Un,BEEHIV_SUBSCRIPTION_URL:rn,AUTO_SIGNING_BASE_URL:En,TOP_SCENES_URL:ln,IOS_STORE_URL:On,ANDROID_STORE_URL:An},pn="https://wearable-preview.decentraland.today",Nn="https://decentraland.today/account",Sn="https://decentraland.today/profile",Cn="https://decentraland.today/marketplace",hn="https://decentraland.today/shop",Dn="https://decentraland.today/builder",In="https://decentraland.today/dao",gn="https://decentraland.today/governance",$n="https://decentraland.zone/events",Pn="https://decentraland.zone/places",mn="https://decentraland.today/create/",Bn="https://docs.decentraland.org/player/",Mn="https://decentraland.today/download/creator-hub/",Vn="https://decentraland.today/download/",yn="https://decentraland.today/download_success/",Gn="ea2ybdmmn1kv",un="master",bn="18g1DzIyBxvu0steSwKyQr",Fn="https://cms.decentraland.org",Kn="https://decentraland.today/marketplace/names/claim",Yn="https://decentraland.today/marketplace/lands",vn="https://decentraland.today/marketplace/account",zn="https://decentraland.today/create/",fn="https://studios.decentraland.today/",wn="https://decentraland.today/builder/collections",Hn="https://decentraland.today/builder/names",Wn="https://decentraland.today/builder/worlds?tab=dcl",kn="https://decentraland.today/builder/land",xn="https://decentraland.today/events/me/",jn="https://decentraland.today/places/favorites/",Qn="https://docs.decentraland.org/player/",Jn="https://docs.decentraland.org/creator/",Xn="https://decentraland.today/blog/",qn="https://docs.decentraland.org/contributor/",Zn="https://decentraland.today/governance/transparency/",te="https://decentraland.today/governance/proposals/",ne="https://decentraland.today/dao/grants/",ee="https://decentraland.today/governance/projects/",ae="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",oe="https://decentraland.today/marketplace/settings",_e="https://dcl.gg/discord",Re="https://reddit.com/r/decentraland",ce="https://github.com/decentraland",se="https://x.com/decentraland",de="https://instagram.com/decentraland_foundation/",Le="https://youtube.com/@decentraland_foundation",Ue="https://tiktok.com/@decentraland_fdn",re="https://linkedin.com/company/decentralandorg",Ee="https://decentraland.org/privacy",le="https://decentraland.org/terms",Oe="https://decentraland.org/content",Ae="https://decentraland.org/ethics",Te="https://decentraland.org/help",pe="mailto:hello@decentraland.org",Ne="https://docs.decentraland.org/faqs/decentraland-101",Se="https://docs.decentraland.org",Ce="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",he="https://download-gateway.decentraland.zone",De="https://decentraland.zone/top-scenes",Ie="https://testflight.apple.com/join/KF4r3jlU",ge="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",$e={WEARABLE_PREVIEW_URL:pn,ACCOUNT_URL:Nn,PROFILE_URL:Sn,MARKETPLACE_URL:Cn,SHOP_URL:hn,BUILDER_URL:Dn,DAO_URL:In,GOVERNANCE_URL:gn,EVENTS_URL:$n,PLACES_URL:Pn,CREATE_URL:mn,LEARN_URL:Bn,CREATOR_HUB_URL:Mn,DOWNLOAD_URL:Vn,DOWNLOAD_SUCCESS_URL:yn,CONTENTFUL_SPACE_ID:Gn,CONTENTFUL_ENV:un,CONTENTFUL_NAVBAR_ENTRY_ID:bn,CONTENTFUL_CONTENTFUL_CDN_URL:Fn,MARKETPLACE_NAMES_URL:Kn,MARKETPLACE_LANDS_URL:Yn,MARKETPLACE_MY_ASSETS_URL:vn,LANDING_CREATORS_URL:zn,STUDIOS_URL:fn,BUILDER_WEARABLE_EMOTES_URL:wn,BUILDER_NAMES_URL:Hn,BUILDER_WORLDS_URL:Wn,BUILDER_LAND_URL:kn,EVENTS_MY_EVENTS:xn,PLACES_MY_FAVORITE_URL:jn,DOCS_ABOUT_URL:Qn,DOCS_CREATORS_URL:Jn,BLOG_URL:Xn,DOCS_CONTRIBUTOR_URL:qn,GOVERNANCE_TRANSPARENCY_URL:Zn,GOVERNANCE_PROPOSALS_URL:te,DAO_GRANTS_URL:ne,GOVERNANCE_PROJECTS_URL:ee,DOCS_DAO_URL:ae,MARKETPLACE_SETTINGS_URL:oe,DISCORD_URL:_e,REDDIT_URL:Re,GITHUB_URL:ce,X_URL:se,INSTAGRAM_URL:de,YOUTUBE_URL:Le,TIKTOK_URL:Ue,LINKEDIN_URL:re,PRIVACY_POLICY_URL:Ee,TERMS_OF_USE_URL:le,CONTENT_POLICY_URL:Oe,CODE_OF_ETHICS_URL:Ae,SUPPORT_URL:Te,EMAIL_HELLO_URL:pe,FAQ_URL:Ne,DOCS_URL:Se,BEEHIV_SUBSCRIPTION_URL:Ce,AUTO_SIGNING_BASE_URL:he,TOP_SCENES_URL:De,IOS_STORE_URL:Ie,ANDROID_STORE_URL:ge},ie=n({[t.DEVELOPMENT]:dt,[t.STAGING]:$e,[t.PRODUCTION]:Tn});export{ie as c};
1
+ import{bf as n,bg as t}from"./index-BVWvbmB_.js";const e="https://wearable-preview.decentraland.zone",a="https://decentraland.zone/account",o="https://decentraland.zone/profile",_="https://decentraland.zone/marketplace",R="https://decentraland.zone/shop",c="https://decentraland.zone/builder",s="https://decentraland.zone/dao",d="https://decentraland.zone/governance",L="https://decentraland.zone/events",U="https://decentraland.zone/places",r="https://decentraland.org/create/",E="https://docs.decentraland.org/player/",l="https://decentraland.zone/download/creator-hub/",O="https://decentraland.zone/download/",A="https://decentraland.zone/download_success/",T="ea2ybdmmn1kv",p="master",N="18g1DzIyBxvu0steSwKyQr",S="https://cms.decentraland.org",C="https://decentraland.zone/marketplace/names/claim",h="https://decentraland.zone/marketplace/lands",D="https://decentraland.zone/marketplace/account",I="https://decentraland.zone/create/",g="https://studios.decentraland.zone/",$="https://decentraland.zone/builder/collections",P="https://decentraland.zone/builder/names",i="https://decentraland.zone/builder/worlds?tab=dcl",m="https://decentraland.zone/builder/land",B="https://decentraland.zone/events/me/",M="https://decentraland.zone/places/favorites/",V="https://docs.decentraland.org/player/",y="https://docs.decentraland.org/creator/",G="https://decentraland.zone/blog/",u="https://docs.decentraland.org/contributor/",b="https://decentraland.zone/governance/transparency/",F="https://decentraland.zone/governance/proposals/",K="https://decentraland.zone/dao/grants/",Y="https://decentraland.zone/governance/projects/",v="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",z="https://decentraland.zone/marketplace/settings",f="https://dcl.gg/discord",w="https://reddit.com/r/decentraland",H="https://github.com/decentraland",W="https://x.com/decentraland",k="https://instagram.com/decentraland_foundation/",x="https://youtube.com/@decentraland_foundation",j="https://tiktok.com/@decentraland_fdn",Q="https://linkedin.com/company/decentralandorg",J="https://decentraland.zone/privacy",X="https://decentraland.zone/terms",q="https://decentraland.zone/content",Z="https://decentraland.zone/ethics",tt="https://decentraland.org/help",nt="mailto:hello@decentraland.org",et="https://docs.decentraland.org/faqs/decentraland-101",at="https://docs.decentraland.org",ot="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",_t="https://download-gateway.decentraland.zone",Rt="https://decentraland.zone/top-scenes",ct="https://testflight.apple.com/join/KF4r3jlU",st="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",dt={WEARABLE_PREVIEW_URL:e,ACCOUNT_URL:a,PROFILE_URL:o,MARKETPLACE_URL:_,SHOP_URL:R,BUILDER_URL:c,DAO_URL:s,GOVERNANCE_URL:d,EVENTS_URL:L,PLACES_URL:U,CREATE_URL:r,LEARN_URL:E,CREATOR_HUB_URL:l,DOWNLOAD_URL:O,DOWNLOAD_SUCCESS_URL:A,CONTENTFUL_SPACE_ID:T,CONTENTFUL_ENV:p,CONTENTFUL_NAVBAR_ENTRY_ID:N,CONTENTFUL_CONTENTFUL_CDN_URL:S,MARKETPLACE_NAMES_URL:C,MARKETPLACE_LANDS_URL:h,MARKETPLACE_MY_ASSETS_URL:D,LANDING_CREATORS_URL:I,STUDIOS_URL:g,BUILDER_WEARABLE_EMOTES_URL:$,BUILDER_NAMES_URL:P,BUILDER_WORLDS_URL:i,BUILDER_LAND_URL:m,EVENTS_MY_EVENTS:B,PLACES_MY_FAVORITE_URL:M,DOCS_ABOUT_URL:V,DOCS_CREATORS_URL:y,BLOG_URL:G,DOCS_CONTRIBUTOR_URL:u,GOVERNANCE_TRANSPARENCY_URL:b,GOVERNANCE_PROPOSALS_URL:F,DAO_GRANTS_URL:K,GOVERNANCE_PROJECTS_URL:Y,DOCS_DAO_URL:v,MARKETPLACE_SETTINGS_URL:z,DISCORD_URL:f,REDDIT_URL:w,GITHUB_URL:H,X_URL:W,INSTAGRAM_URL:k,YOUTUBE_URL:x,TIKTOK_URL:j,LINKEDIN_URL:Q,PRIVACY_POLICY_URL:J,TERMS_OF_USE_URL:X,CONTENT_POLICY_URL:q,CODE_OF_ETHICS_URL:Z,SUPPORT_URL:tt,EMAIL_HELLO_URL:nt,FAQ_URL:et,DOCS_URL:at,BEEHIV_SUBSCRIPTION_URL:ot,AUTO_SIGNING_BASE_URL:_t,TOP_SCENES_URL:Rt,IOS_STORE_URL:ct,ANDROID_STORE_URL:st},Lt="https://wearable-preview.decentraland.org",Ut="https://decentraland.org/account",rt="https://decentraland.org/profile",Et="https://decentraland.org/marketplace",lt="https://decentraland.org/shop",Ot="https://decentraland.org/builder",At="https://decentraland.org/dao",Tt="https://decentraland.org/governance",pt="https://decentraland.org/events",Nt="https://decentraland.org/places",St="https://decentraland.org/create/",Ct="https://docs.decentraland.org/player/",ht="https://decentraland.org/download/creator-hub/",Dt="https://decentraland.org/download/",It="https://decentraland.org/download_success/",gt="ea2ybdmmn1kv",$t="master",Pt="18g1DzIyBxvu0steSwKyQr",it="https://cms.decentraland.org",mt="https://decentraland.org/marketplace/names/claim",Bt="https://decentraland.org/marketplace/lands",Mt="https://decentraland.org/marketplace/account",Vt="https://decentraland.org/create/",yt="https://studios.decentraland.org/",Gt="https://decentraland.org/builder/collections",ut="https://decentraland.org/builder/names",bt="https://decentraland.org/builder/worlds?tab=dcl",Ft="https://decentraland.org/builder/land",Kt="https://decentraland.org/events/me/",Yt="https://decentraland.org/places/favorites/",vt="https://docs.decentraland.org/player/",zt="https://docs.decentraland.org/creator/",ft="https://decentraland.org/blog/",wt="https://docs.decentraland.org/contributor/",Ht="https://decentraland.org/governance/transparency/",Wt="https://decentraland.org/governance/proposals/",kt="https://decentraland.org/dao/grants/",xt="https://decentraland.org/governance/projects/",jt="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",Qt="https://decentraland.org/marketplace/settings",Jt="https://dcl.gg/discord",Xt="https://reddit.com/r/decentraland",qt="https://github.com/decentraland",Zt="https://x.com/decentraland",tn="https://instagram.com/decentraland_foundation/",nn="https://youtube.com/@decentraland_foundation",en="https://tiktok.com/@decentraland_fdn",an="https://linkedin.com/company/decentralandorg",on="https://decentraland.org/privacy",_n="https://decentraland.org/terms",Rn="https://decentraland.org/content",cn="https://decentraland.org/ethics",sn="https://decentraland.org/help",dn="mailto:hello@decentraland.org",Ln="https://docs.decentraland.org/faqs/decentraland-101",Un="https://docs.decentraland.org",rn="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",En="https://download-gateway.decentraland.org",ln="https://decentraland.org/top-scenes",On="https://testflight.apple.com/join/KF4r3jlU",An="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",Tn={WEARABLE_PREVIEW_URL:Lt,ACCOUNT_URL:Ut,PROFILE_URL:rt,MARKETPLACE_URL:Et,SHOP_URL:lt,BUILDER_URL:Ot,DAO_URL:At,GOVERNANCE_URL:Tt,EVENTS_URL:pt,PLACES_URL:Nt,CREATE_URL:St,LEARN_URL:Ct,CREATOR_HUB_URL:ht,DOWNLOAD_URL:Dt,DOWNLOAD_SUCCESS_URL:It,CONTENTFUL_SPACE_ID:gt,CONTENTFUL_ENV:$t,CONTENTFUL_NAVBAR_ENTRY_ID:Pt,CONTENTFUL_CONTENTFUL_CDN_URL:it,MARKETPLACE_NAMES_URL:mt,MARKETPLACE_LANDS_URL:Bt,MARKETPLACE_MY_ASSETS_URL:Mt,LANDING_CREATORS_URL:Vt,STUDIOS_URL:yt,BUILDER_WEARABLE_EMOTES_URL:Gt,BUILDER_NAMES_URL:ut,BUILDER_WORLDS_URL:bt,BUILDER_LAND_URL:Ft,EVENTS_MY_EVENTS:Kt,PLACES_MY_FAVORITE_URL:Yt,DOCS_ABOUT_URL:vt,DOCS_CREATORS_URL:zt,BLOG_URL:ft,DOCS_CONTRIBUTOR_URL:wt,GOVERNANCE_TRANSPARENCY_URL:Ht,GOVERNANCE_PROPOSALS_URL:Wt,DAO_GRANTS_URL:kt,GOVERNANCE_PROJECTS_URL:xt,DOCS_DAO_URL:jt,MARKETPLACE_SETTINGS_URL:Qt,DISCORD_URL:Jt,REDDIT_URL:Xt,GITHUB_URL:qt,X_URL:Zt,INSTAGRAM_URL:tn,YOUTUBE_URL:nn,TIKTOK_URL:en,LINKEDIN_URL:an,PRIVACY_POLICY_URL:on,TERMS_OF_USE_URL:_n,CONTENT_POLICY_URL:Rn,CODE_OF_ETHICS_URL:cn,SUPPORT_URL:sn,EMAIL_HELLO_URL:dn,FAQ_URL:Ln,DOCS_URL:Un,BEEHIV_SUBSCRIPTION_URL:rn,AUTO_SIGNING_BASE_URL:En,TOP_SCENES_URL:ln,IOS_STORE_URL:On,ANDROID_STORE_URL:An},pn="https://wearable-preview.decentraland.today",Nn="https://decentraland.today/account",Sn="https://decentraland.today/profile",Cn="https://decentraland.today/marketplace",hn="https://decentraland.today/shop",Dn="https://decentraland.today/builder",In="https://decentraland.today/dao",gn="https://decentraland.today/governance",$n="https://decentraland.zone/events",Pn="https://decentraland.zone/places",mn="https://decentraland.today/create/",Bn="https://docs.decentraland.org/player/",Mn="https://decentraland.today/download/creator-hub/",Vn="https://decentraland.today/download/",yn="https://decentraland.today/download_success/",Gn="ea2ybdmmn1kv",un="master",bn="18g1DzIyBxvu0steSwKyQr",Fn="https://cms.decentraland.org",Kn="https://decentraland.today/marketplace/names/claim",Yn="https://decentraland.today/marketplace/lands",vn="https://decentraland.today/marketplace/account",zn="https://decentraland.today/create/",fn="https://studios.decentraland.today/",wn="https://decentraland.today/builder/collections",Hn="https://decentraland.today/builder/names",Wn="https://decentraland.today/builder/worlds?tab=dcl",kn="https://decentraland.today/builder/land",xn="https://decentraland.today/events/me/",jn="https://decentraland.today/places/favorites/",Qn="https://docs.decentraland.org/player/",Jn="https://docs.decentraland.org/creator/",Xn="https://decentraland.today/blog/",qn="https://docs.decentraland.org/contributor/",Zn="https://decentraland.today/governance/transparency/",te="https://decentraland.today/governance/proposals/",ne="https://decentraland.today/dao/grants/",ee="https://decentraland.today/governance/projects/",ae="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",oe="https://decentraland.today/marketplace/settings",_e="https://dcl.gg/discord",Re="https://reddit.com/r/decentraland",ce="https://github.com/decentraland",se="https://x.com/decentraland",de="https://instagram.com/decentraland_foundation/",Le="https://youtube.com/@decentraland_foundation",Ue="https://tiktok.com/@decentraland_fdn",re="https://linkedin.com/company/decentralandorg",Ee="https://decentraland.org/privacy",le="https://decentraland.org/terms",Oe="https://decentraland.org/content",Ae="https://decentraland.org/ethics",Te="https://decentraland.org/help",pe="mailto:hello@decentraland.org",Ne="https://docs.decentraland.org/faqs/decentraland-101",Se="https://docs.decentraland.org",Ce="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",he="https://download-gateway.decentraland.zone",De="https://decentraland.zone/top-scenes",Ie="https://testflight.apple.com/join/KF4r3jlU",ge="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",$e={WEARABLE_PREVIEW_URL:pn,ACCOUNT_URL:Nn,PROFILE_URL:Sn,MARKETPLACE_URL:Cn,SHOP_URL:hn,BUILDER_URL:Dn,DAO_URL:In,GOVERNANCE_URL:gn,EVENTS_URL:$n,PLACES_URL:Pn,CREATE_URL:mn,LEARN_URL:Bn,CREATOR_HUB_URL:Mn,DOWNLOAD_URL:Vn,DOWNLOAD_SUCCESS_URL:yn,CONTENTFUL_SPACE_ID:Gn,CONTENTFUL_ENV:un,CONTENTFUL_NAVBAR_ENTRY_ID:bn,CONTENTFUL_CONTENTFUL_CDN_URL:Fn,MARKETPLACE_NAMES_URL:Kn,MARKETPLACE_LANDS_URL:Yn,MARKETPLACE_MY_ASSETS_URL:vn,LANDING_CREATORS_URL:zn,STUDIOS_URL:fn,BUILDER_WEARABLE_EMOTES_URL:wn,BUILDER_NAMES_URL:Hn,BUILDER_WORLDS_URL:Wn,BUILDER_LAND_URL:kn,EVENTS_MY_EVENTS:xn,PLACES_MY_FAVORITE_URL:jn,DOCS_ABOUT_URL:Qn,DOCS_CREATORS_URL:Jn,BLOG_URL:Xn,DOCS_CONTRIBUTOR_URL:qn,GOVERNANCE_TRANSPARENCY_URL:Zn,GOVERNANCE_PROPOSALS_URL:te,DAO_GRANTS_URL:ne,GOVERNANCE_PROJECTS_URL:ee,DOCS_DAO_URL:ae,MARKETPLACE_SETTINGS_URL:oe,DISCORD_URL:_e,REDDIT_URL:Re,GITHUB_URL:ce,X_URL:se,INSTAGRAM_URL:de,YOUTUBE_URL:Le,TIKTOK_URL:Ue,LINKEDIN_URL:re,PRIVACY_POLICY_URL:Ee,TERMS_OF_USE_URL:le,CONTENT_POLICY_URL:Oe,CODE_OF_ETHICS_URL:Ae,SUPPORT_URL:Te,EMAIL_HELLO_URL:pe,FAQ_URL:Ne,DOCS_URL:Se,BEEHIV_SUBSCRIPTION_URL:Ce,AUTO_SIGNING_BASE_URL:he,TOP_SCENES_URL:De,IOS_STORE_URL:Ie,ANDROID_STORE_URL:ge},ie=n({[t.DEVELOPMENT]:dt,[t.STAGING]:$e,[t.PRODUCTION]:Tn});export{ie as c};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/fortmatic-HaPICQeD.js","_assets/react-BYHuwl8r.js","_assets/index-CK61l8v-.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-BKEzvwKN.js","_assets/sentry-1ai9esXb.js","_assets/index-COjgItKg.js","_assets/index-1hFNP4-J.js","_assets/index-BX3lLNL7.js","_assets/hooks.module-C4R15-Vr.js","_assets/events-DQ172AOg.js","_assets/intl-CBcMB1D2.js","_assets/index-BoAHsqWZ.js","_assets/index-Bh6adykR.js","_assets/index-l2QjlKjX.css","_assets/W3MFrameProviderSingleton-DMgnEflU.js","_assets/index-BWHG3_yU.js","_assets/browser-ponyfill-Dj0kiq3a.js","_assets/NetworkUtil-BsEXGHJo.js","_assets/index-BeR8agGt.js","_assets/index-nibyPLVP.js","_assets/index-DqhO9Fg3.js","_assets/index.es-CpRZxgSI.js","_assets/lit-element-B3y9oplH.js","_assets/index-Cumq3JZH.js","_assets/sendRawTransaction-k2Sfh7AJ.js","_assets/index-DbLpdy-5.js","_assets/store-CraP4F4Y.js","_assets/custom-CpeFfUh_.js","_assets/writeContract-C0-n2OaV.js","_assets/networks-D1KxTI6W.js","_assets/zoraTestnet-7xxdYXjY.js","_assets/verifyHash-B6Vh-Wda.js","_assets/secp256k1-C3Qb75Qb.js","_assets/serializeTransaction-CwlY06pE.js","_assets/index-DHGhfu2F.js","_assets/index-DUOQXffc.js","_assets/index-BxnUk4ME.js","_assets/index-PKeNbFmQ.js","_assets/wallets-DUR60lPP.js","_assets/signing-DBPT8c_m.js","_assets/prepare-contract-call-Bc4Cpa9D.js","_assets/utils-DPjdBMrV.js","_assets/to-serializable-transaction-DqDYMKiS.js","_assets/transaction-DcVIFcB7.js","_assets/get-bytecode-CL7QG9KN.js","_assets/execute-DFgCeynW.js","_assets/detectExtension-DJir-uLI.js","_assets/linkAccount-BC_9YSzE.js","_assets/index-Bf9Jh6ty.js","_assets/ethereum-D1MZ_SH0.js","_assets/types-DC0Zmj1B.js","_assets/hashTypedData-DejwI0fC.js","_assets/send-transaction-DLLBmyZ2.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/index-CJdot1dH.js","_assets/in-app-CAxC4Ivh.js","_assets/passkeys-5lnypzRC.js","_assets/uint8-array-CjVHUazS.js","_assets/thirdweb-YIX7a_02.js","_assets/wait-for-tx-receipt-dL7u4t_k.js","_assets/transactionReceipt-CdHeShcY.js","_assets/sleep-mAKpSMLY.js","_assets/eth_estimateGas-D9Pu3PNx.js","_assets/eth_getStorageAt-BSkNzsMl.js","_assets/eth_getTransactionCount-DpXnQ6cd.js","_assets/decimals-C8Nkd-f-.js","_assets/decimals-CufGxqGB.js","_assets/zora-sepolia-k6yl8DpC.js","_assets/send-batch-transaction-C5BOzhrb.js","_assets/chains-BXxRVqOL.js"])))=>i.map(i=>d[i]);
2
- var ce=Object.defineProperty;var de=(o,n,e)=>n in o?ce(o,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[n]=e;var d=(o,n,e)=>de(o,typeof n!="symbol"?n+"":n,e);import{e as h,f as l,g}from"./dcl-schemas-CmtP3U6y.js";import{g as ue}from"./react-BYHuwl8r.js";import{r as he}from"./events-DQ172AOg.js";import{_ as m}from"./index-Bh6adykR.js";var C;(function(o){o.Update="Web3ReactUpdate",o.Error="Web3ReactError",o.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(o){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(o){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(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}var E=(function(o){fe(n,o);function n(t){var r,i=t===void 0?{}:t,s=i.supportedChainIds;return r=o.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(i=>Number(i));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-HaPICQeD.js").then(i=>i.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(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}return o},j.apply(this,arguments)}function q(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}function K(o){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(o)}function L(o,n){return L=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},L(o,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(o,n,e){return ve()?O=Reflect.construct:O=function(r,i,s){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(r,a),u=new c;return s&&L(u,s.prototype),u},O.apply(null,arguments)}function we(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function S(o){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,K(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L(r,t)},S(o)}function b(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function P(o,n){try{var e=o()}catch(t){return n(t)}return e&&e.then?e.then(void 0,n):e}function y(o){return o.hasOwnProperty("result")?o.result:o}var k=(function(o){q(n,o);function n(){var e;return e=o.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(o){q(n,o);function n(){var e;return e=o.call(this)||this,e.name=e.constructor.name,e.message="The user rejected the request.",e}return n})(S(Error)),me=(function(o){q(n,o);function n(t){var r;return r=o.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,i){this.emitDeactivate()},e.handleNetworkChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.activate=function(){try{var r=function(f){if(i)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)},i=!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(!i)try{i=y(window.ethereum.send({method:"net_version"}))}catch{}return i||(window.ethereum.isDapper?i=y(window.ethereum.cachedResults.net_version):i=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),i}var u=(function(){if(!i){var f=P(function(){return Promise.resolve(window.ethereum.send("net_version").then(y)).then(function(p){i=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 i,s=P(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(y)).then(function(a){i=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 i||(i=y(window.ethereum.send({method:"eth_accounts"}))[0]),i}var u=(function(){if(!i){var f=P(function(){return Promise.resolve(window.ethereum.enable().then(function(p){return y(p)[0]})).then(function(p){i=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 i,s=P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(a){return y(a)[0]})).then(function(a){i=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(o,n){throw new Error(ye)}function Y(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,N(o,n)}function D(o){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(o)}function N(o,n){return N=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},N(o,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(o,n,e){return Ce()?R=Reflect.construct:R=function(r,i,s){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(r,a),u=new c;return s&&N(u,s.prototype),u},R.apply(null,arguments)}function Ee(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function W(o){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,D(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N(r,t)},W(o)}var U=(function(o){Y(n,o);function n(e,t,r){var i;return i=o.call(this)||this,i.code=t,i.data=r,i.name=i.constructor.name,i.message=e,i}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 i=new URL(e);this.host=i.host,this.path=i.pathname},Te=(function(o){Y(n,o);function n(t){var r,i=t.urls,s=t.defaultChainId;return s||Object.keys(i).length===1||V(),r=o.call(this,{supportedChainIds:Object.keys(i).map(function(a){return Number(a)})})||this,r.currentChainId=s||Number(Object.keys(i)[0]),r.providers=Object.keys(i).reduce(function(a,c){return a[Number(c)]=new Ae(Number(c),i[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(i){return Promise.reject(i)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.providers[r.currentChainId])}catch(i){return Promise.reject(i)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.currentChainId)}catch(i){return Promise.reject(i)}},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(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}return o},x.apply(this,arguments)}function Pe(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,F(o,n)}function F(o,n){return F=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},F(o,n)}function B(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}var _e=1,Ne=(function(o){Pe(n,o);function n(t){var r,i=t.url,s=t.appName,a=t.appLogoUrl,c=t.darkMode,u=t.supportedChainIds;return r=o.call(this,{supportedChainIds:u})||this,r.url=i,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,i=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-CK61l8v-.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(i):i(s))}catch(a){return Promise.reject(a)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.provider)}catch(i){return Promise.reject(i)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.provider.chainId)}catch(i){return Promise.reject(i)}},e.getAccount=function(){try{var r=this;return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(i){return i[0]})}catch(i){return Promise.reject(i)}},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(i){return Promise.reject(i)}},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-BoAHsqWZ.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-Cumq3JZH.js").then(a=>a.b);return{WagmiAdapter:s}},__vite__mapDeps([24,15,3,16,1,5,17,18,13,4,11,14,25,26,6,27,28,29])),r=await this.getNetworks(),i=new t({networks:r,projectId:w.configuration.projectId});return this.appKit=e({adapters:[i],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(i=>{const s=setTimeout(()=>{a==null||a(),i()},r),a=e.subscribeAccount(c=>{((c==null?void 0:c.status)==="connected"||(c==null?void 0:c.status)==="disconnected")&&(clearTimeout(s),a==null||a(),i())},"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,i)=>{let s=!1;const a=(p,v)=>{s||(s=!0,clearTimeout(c),p==null||p(),v==null||v())},c=setTimeout(()=>{a(),i(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),i(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 i=e.getWalletProvider();if(!i)throw new Error("Failed to get wallet provider after connection");this.provider=i,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(i){console.warn("Error unsubscribing from AppKit events:",i)}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-D1KxTI6W.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 i=r.find(s=>s.id===this.desiredChainId);if(i){const s=r.filter(a=>a.id!==this.desiredChainId);return[i,...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,i)=>{var s,a,c;if(((s=i[0])==null?void 0:s.method)==="wallet_switchEthereumChain")try{const u=parseInt((c=(a=i[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)(...i)}}),sendAsync:new Proxy(e.send,{apply:async(t,r,i)=>t.bind(e)(...i)})}});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-DHGhfu2F.js");return{Magic:a}},__vite__mapDeps([35,5,1,36])),{OAuthExtension:r}=await m(async()=>{const{OAuthExtension:a}=await import("./index-BxnUk4ME.js");return{OAuthExtension:a}},__vite__mapDeps([37,36,5,1,38,7,8,4,10,3])),i=I()[this.isTest?g.ProviderType.MAGIC_TEST:g.ProviderType.MAGIC],s=i.urls[e];if(!s)throw new Error(`Unsupported chainId for Magic: ${e}. Supported chains: ${Object.keys(i.urls).join(", ")}`);return new t(i.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 i=await this.getChain(),{EIP1193:s}=await m(async()=>{const{EIP1193:u}=await import("./wallets-DUR60lPP.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:i,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,i)=>{var a,c,u,f;if(((a=i[0])==null?void 0:a.method)==="wallet_switchEthereumChain"){const p=(f=(u=(c=i[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-DUR60lPP.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,i)}}),sendAsync:new Proxy(e.request,{apply:async(t,r,i)=>Reflect.apply(t,e,i)})}});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:i}=await import("./in-app-CAxC4Ivh.js");return{getUserEmail:i}},__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-YIX7a_02.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-DUR60lPP.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-BXxRVqOL.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,i;const s=typeof e=="function";if(s){const a=n;r=a.params||[],t=a.method,i=e}else t=n,r=e||[],i=(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 i(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 i(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:i}={};try{const a=await t.activate();r=a.provider,i=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:i||"",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),Ke=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,Ke as i};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/fortmatic-HaPICQeD.js","_assets/react-BYHuwl8r.js","_assets/index-BiNtOaPH.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-CHvw3dSr.js","_assets/sentry-CUdtSPei.js","_assets/index-COjgItKg.js","_assets/index-nyMFoZlx.js","_assets/index-BX3lLNL7.js","_assets/hooks.module-C4R15-Vr.js","_assets/events-DQ172AOg.js","_assets/intl-CBcMB1D2.js","_assets/index-DbCIRxku.js","_assets/index-BVWvbmB_.js","_assets/index-l2QjlKjX.css","_assets/W3MFrameProviderSingleton-DkDY_Uhq.js","_assets/index-DKik1tqf.js","_assets/browser-ponyfill-Dj0kiq3a.js","_assets/NetworkUtil-CmFj23VB.js","_assets/index-DoPvIZFo.js","_assets/index-nibyPLVP.js","_assets/index--uTyu0uz.js","_assets/index.es-1C-91fa0.js","_assets/lit-element-B3y9oplH.js","_assets/index-CaWADU3A.js","_assets/sendRawTransaction-BZMjypDx.js","_assets/index-DbLpdy-5.js","_assets/store-CraP4F4Y.js","_assets/custom-DESM1TBo.js","_assets/writeContract-C2tbGQyL.js","_assets/networks-DuFCMSqt.js","_assets/zoraTestnet-Chf9u3j4.js","_assets/verifyHash-Czkmjbtb.js","_assets/secp256k1-Eu_UrDZQ.js","_assets/serializeTransaction-DdLuDvZh.js","_assets/index-pGuWMonI.js","_assets/index-Bl3tllG2.js","_assets/index-BHVZE5-w.js","_assets/index-Di93FjoO.js","_assets/wallets-dFWYb-aD.js","_assets/signing-B_TMY__g.js","_assets/prepare-contract-call-CuOouwzZ.js","_assets/utils-ClNpRN95.js","_assets/to-serializable-transaction-NCusZ8xl.js","_assets/transaction-C8mfivVb.js","_assets/get-bytecode-C_QCCMoR.js","_assets/execute-DA2F3yom.js","_assets/detectExtension-D5bfb7Ei.js","_assets/linkAccount-BPOjpDQF.js","_assets/index-DIXd4yr6.js","_assets/ethereum-wAQ6oI96.js","_assets/types-DC0Zmj1B.js","_assets/hashTypedData-DYCRMzzm.js","_assets/send-transaction-Cyj6alac.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/index-CJdot1dH.js","_assets/in-app-DkcHZ10N.js","_assets/passkeys-DoXc4Xy7.js","_assets/uint8-array-CjVHUazS.js","_assets/thirdweb-0rujUNSl.js","_assets/wait-for-tx-receipt-umHQbgNk.js","_assets/transactionReceipt-BHjPvP-A.js","_assets/sleep-mAKpSMLY.js","_assets/eth_estimateGas-VGXN9rx1.js","_assets/eth_getStorageAt-xHOtLw9t.js","_assets/eth_getTransactionCount-DeOan_M2.js","_assets/decimals-CA4WCN0k.js","_assets/decimals-CN36TWfs.js","_assets/zora-sepolia-CIZA49Ti.js","_assets/send-batch-transaction-E8tR0aO1.js","_assets/chains-C3ogoGMY.js"])))=>i.map(i=>d[i]);
2
+ var ce=Object.defineProperty;var de=(o,n,e)=>n in o?ce(o,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[n]=e;var d=(o,n,e)=>de(o,typeof n!="symbol"?n+"":n,e);import{e as h,f as l,g}from"./dcl-schemas-CmtP3U6y.js";import{g as ue}from"./react-BYHuwl8r.js";import{r as he}from"./events-DQ172AOg.js";import{_ as m}from"./index-BVWvbmB_.js";var C;(function(o){o.Update="Web3ReactUpdate",o.Error="Web3ReactError",o.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(o){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(o){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(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}var E=(function(o){fe(n,o);function n(t){var r,i=t===void 0?{}:t,s=i.supportedChainIds;return r=o.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(i=>Number(i));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-HaPICQeD.js").then(i=>i.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(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}return o},j.apply(this,arguments)}function q(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}function K(o){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(o)}function L(o,n){return L=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},L(o,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(o,n,e){return ve()?O=Reflect.construct:O=function(r,i,s){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(r,a),u=new c;return s&&L(u,s.prototype),u},O.apply(null,arguments)}function we(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function S(o){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,K(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L(r,t)},S(o)}function b(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function P(o,n){try{var e=o()}catch(t){return n(t)}return e&&e.then?e.then(void 0,n):e}function y(o){return o.hasOwnProperty("result")?o.result:o}var k=(function(o){q(n,o);function n(){var e;return e=o.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(o){q(n,o);function n(){var e;return e=o.call(this)||this,e.name=e.constructor.name,e.message="The user rejected the request.",e}return n})(S(Error)),me=(function(o){q(n,o);function n(t){var r;return r=o.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,i){this.emitDeactivate()},e.handleNetworkChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.activate=function(){try{var r=function(f){if(i)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)},i=!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(!i)try{i=y(window.ethereum.send({method:"net_version"}))}catch{}return i||(window.ethereum.isDapper?i=y(window.ethereum.cachedResults.net_version):i=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),i}var u=(function(){if(!i){var f=P(function(){return Promise.resolve(window.ethereum.send("net_version").then(y)).then(function(p){i=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 i,s=P(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(y)).then(function(a){i=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 i||(i=y(window.ethereum.send({method:"eth_accounts"}))[0]),i}var u=(function(){if(!i){var f=P(function(){return Promise.resolve(window.ethereum.enable().then(function(p){return y(p)[0]})).then(function(p){i=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 i,s=P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(a){return y(a)[0]})).then(function(a){i=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(o,n){throw new Error(ye)}function Y(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,N(o,n)}function D(o){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(o)}function N(o,n){return N=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},N(o,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(o,n,e){return Ce()?R=Reflect.construct:R=function(r,i,s){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(r,a),u=new c;return s&&N(u,s.prototype),u},R.apply(null,arguments)}function Ee(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function W(o){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,D(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N(r,t)},W(o)}var U=(function(o){Y(n,o);function n(e,t,r){var i;return i=o.call(this)||this,i.code=t,i.data=r,i.name=i.constructor.name,i.message=e,i}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 i=new URL(e);this.host=i.host,this.path=i.pathname},Te=(function(o){Y(n,o);function n(t){var r,i=t.urls,s=t.defaultChainId;return s||Object.keys(i).length===1||V(),r=o.call(this,{supportedChainIds:Object.keys(i).map(function(a){return Number(a)})})||this,r.currentChainId=s||Number(Object.keys(i)[0]),r.providers=Object.keys(i).reduce(function(a,c){return a[Number(c)]=new Ae(Number(c),i[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(i){return Promise.reject(i)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.providers[r.currentChainId])}catch(i){return Promise.reject(i)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.currentChainId)}catch(i){return Promise.reject(i)}},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(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}return o},x.apply(this,arguments)}function Pe(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,F(o,n)}function F(o,n){return F=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},F(o,n)}function B(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}var _e=1,Ne=(function(o){Pe(n,o);function n(t){var r,i=t.url,s=t.appName,a=t.appLogoUrl,c=t.darkMode,u=t.supportedChainIds;return r=o.call(this,{supportedChainIds:u})||this,r.url=i,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,i=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-BiNtOaPH.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(i):i(s))}catch(a){return Promise.reject(a)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.provider)}catch(i){return Promise.reject(i)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.provider.chainId)}catch(i){return Promise.reject(i)}},e.getAccount=function(){try{var r=this;return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(i){return i[0]})}catch(i){return Promise.reject(i)}},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(i){return Promise.reject(i)}},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-DbCIRxku.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-CaWADU3A.js").then(a=>a.b);return{WagmiAdapter:s}},__vite__mapDeps([24,15,3,16,1,5,17,18,13,4,11,14,25,26,6,27,28,29])),r=await this.getNetworks(),i=new t({networks:r,projectId:w.configuration.projectId});return this.appKit=e({adapters:[i],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(i=>{const s=setTimeout(()=>{a==null||a(),i()},r),a=e.subscribeAccount(c=>{((c==null?void 0:c.status)==="connected"||(c==null?void 0:c.status)==="disconnected")&&(clearTimeout(s),a==null||a(),i())},"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,i)=>{let s=!1;const a=(p,v)=>{s||(s=!0,clearTimeout(c),p==null||p(),v==null||v())},c=setTimeout(()=>{a(),i(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),i(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 i=e.getWalletProvider();if(!i)throw new Error("Failed to get wallet provider after connection");this.provider=i,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(i){console.warn("Error unsubscribing from AppKit events:",i)}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-DuFCMSqt.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 i=r.find(s=>s.id===this.desiredChainId);if(i){const s=r.filter(a=>a.id!==this.desiredChainId);return[i,...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,i)=>{var s,a,c;if(((s=i[0])==null?void 0:s.method)==="wallet_switchEthereumChain")try{const u=parseInt((c=(a=i[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)(...i)}}),sendAsync:new Proxy(e.send,{apply:async(t,r,i)=>t.bind(e)(...i)})}});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-pGuWMonI.js");return{Magic:a}},__vite__mapDeps([35,5,1,36])),{OAuthExtension:r}=await m(async()=>{const{OAuthExtension:a}=await import("./index-BHVZE5-w.js");return{OAuthExtension:a}},__vite__mapDeps([37,36,5,1,38,7,8,4,10,3])),i=I()[this.isTest?g.ProviderType.MAGIC_TEST:g.ProviderType.MAGIC],s=i.urls[e];if(!s)throw new Error(`Unsupported chainId for Magic: ${e}. Supported chains: ${Object.keys(i.urls).join(", ")}`);return new t(i.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 i=await this.getChain(),{EIP1193:s}=await m(async()=>{const{EIP1193:u}=await import("./wallets-dFWYb-aD.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:i,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,i)=>{var a,c,u,f;if(((a=i[0])==null?void 0:a.method)==="wallet_switchEthereumChain"){const p=(f=(u=(c=i[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-dFWYb-aD.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,i)}}),sendAsync:new Proxy(e.request,{apply:async(t,r,i)=>Reflect.apply(t,e,i)})}});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:i}=await import("./in-app-DkcHZ10N.js");return{getUserEmail:i}},__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-0rujUNSl.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-dFWYb-aD.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-C3ogoGMY.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,i;const s=typeof e=="function";if(s){const a=n;r=a.params||[],t=a.method,i=e}else t=n,r=e||[],i=(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 i(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 i(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:i}={};try{const a=await t.activate();r=a.provider,i=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:i||"",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),Ke=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,Ke as i};