@dcl/shop 1.0.0 → 1.0.1

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 (177) hide show
  1. package/_assets/Activity-CYc4haGG.js +378 -0
  2. package/_assets/{AnimatedBackground-CHiOSgJ6.js → AnimatedBackground-DEshz0c2.js} +1 -1
  3. package/_assets/{Assets-1KVsmH01.js → Assets-D5sxwFuc.js} +6 -6
  4. package/_assets/{Assets.styles-BUHnZ7Nb.js → Assets.styles-c5XuGAG4.js} +1 -1
  5. package/_assets/{Authorizations-BGlyC4dr.js → Authorizations-m488Gyk0.js} +1 -1
  6. package/_assets/{Cart-afrKtZvj.js → Cart-Ctyse8xg.js} +2 -2
  7. package/_assets/{CircularProgress-K7JjSpPZ.js → CircularProgress-CB7Frwx7.js} +1 -1
  8. package/_assets/{Collection-B0G71rJV.js → Collection-CS-PKjRf.js} +8 -8
  9. package/_assets/{CollectionCarousel-B4hzcKRb.js → CollectionCarousel-DhrBSU2o.js} +13 -13
  10. package/_assets/{Confetti-BBhDY6Q2.js → Confetti-z9mEz7Mo.js} +1 -1
  11. package/_assets/{Creator-CYC3eVKx.js → Creator-BMYJiMCB.js} +5 -5
  12. package/_assets/{ErrorNotice-CnPcFEw_.js → ErrorNotice-BG4CBNkl.js} +1 -1
  13. package/_assets/{ExchangeController-BAefeOHy.js → ExchangeController-CLyfn8FH.js} +1 -1
  14. package/_assets/{Faq-D03YByjo.js → Faq-D7gV7iYA.js} +1 -1
  15. package/_assets/{GetCredits-Cyw0rRMV.js → GetCredits-CL7K_M9H.js} +10 -10
  16. package/_assets/{Grow-CPwRVF9g.js → Grow-Ccwk3GHr.js} +1 -1
  17. package/_assets/{HelpersUtil-DJC0aWJi.js → HelpersUtil-tyC-vTbQ.js} +1 -1
  18. package/_assets/{ItemDetail-DSuMCjR9.js → ItemDetail-DwY7HKZL.js} +28 -28
  19. package/_assets/LazyEmoteControls-BNHGzPTO.js +2 -0
  20. package/_assets/{LoadMore-CMAFsns3.js → LoadMore-BLHzgyNQ.js} +1 -1
  21. package/_assets/{ManaPricingBanner.styles-Bb7BS6EM.js → ManaPricingBanner.styles-G4jy5obg.js} +1 -1
  22. package/_assets/{MyAssets-C5lGRPqP.js → MyAssets-BpBrCfKj.js} +4 -4
  23. package/_assets/{MyFavorites-C1t1o6Li.js → MyFavorites-eakG4vL0.js} +1 -1
  24. package/_assets/{NotFound-Bdi_fN5j.js → NotFound-By_5zIVf.js} +1 -1
  25. package/_assets/{NotificationsBell-BQk3EV9b.js → NotificationsBell-DVM7TZeA.js} +1 -1
  26. package/_assets/{OutfitDetail-D3Mwl6KR.js → OutfitDetail-CKImDsVr.js} +1 -1
  27. package/_assets/{OutfitPreview-BpWwkAro.js → OutfitPreview-BDsx1Zln.js} +1 -1
  28. package/_assets/{OutfitStudio-BL7OYD9h.js → OutfitStudio-BNP0n5pI.js} +4 -4
  29. package/_assets/{StoreSettings-BNhzJJib.js → StoreSettings-CMOSmEWV.js} +6 -6
  30. package/_assets/{Success-Cnu7oCbI.js → Success-DKTCAGfP.js} +1 -1
  31. package/_assets/{SwapController-BD23YCPw.js → SwapController-B6jVCCgh.js} +1 -1
  32. package/_assets/{Tooltip-tAvMrdFp.js → Tooltip-CnjWof_H.js} +1 -1
  33. package/_assets/{TradeService-a2JgoWq2.js → TradeService-DqBS7JER.js} +1 -1
  34. package/_assets/{W3MFrameProviderSingleton-CPDmjNiA.js → W3MFrameProviderSingleton-BNh7T9LS.js} +3 -3
  35. package/_assets/{WebCryptoP256-DIEJtB0I.js → WebCryptoP256-DVUZQ3fN.js} +1 -1
  36. package/_assets/{authorizations-HgwrWkaa.js → authorizations-CE0HtqU4.js} +1 -1
  37. package/_assets/{basic-B3qEjJvY.js → basic-sWTPOMIW.js} +1 -1
  38. package/_assets/{biconomy-CzcDC8vB.js → biconomy-Gn8OlgoU.js} +1 -1
  39. package/_assets/{builder-TZGldT6a.js → builder-DeMyTCI7.js} +1 -1
  40. package/_assets/buy-BF3MKHeK.js +1 -0
  41. package/_assets/buy-gasless-C6Uiz2ft.js +1 -0
  42. package/_assets/{categories-B3DJZe02.js → categories-e7ryjlpc.js} +1 -1
  43. package/_assets/{ccip-CB03B_MW.js → ccip-BGow4NM2.js} +1 -1
  44. package/_assets/{ccip-VI2-jJnV.js → ccip-C8QxGeVJ.js} +1 -1
  45. package/_assets/{collectionPage.styles-DXfFyRiH.js → collectionPage.styles-DGJTp7Uw.js} +4 -4
  46. package/_assets/{controller-CEo6ipG_.js → controller-Ct0gOkSO.js} +2 -2
  47. package/_assets/{core-DmqfUS4f.js → core-BPejI2Uv.js} +4 -4
  48. package/_assets/{createSvgIcon-WfOAVB94.js → createSvgIcon-CfV25Qvu.js} +3 -3
  49. package/_assets/{custom-bIxIBqCn.js → custom-CtkIvR1q.js} +1 -1
  50. package/_assets/{data-capture-Dtaj6ehs.js → data-capture-ChzQjncq.js} +1 -1
  51. package/_assets/{email-DBXWS-p0.js → email-DTmn4SUk.js} +1 -1
  52. package/_assets/{embedded-wallet-DqlpsZRk.js → embedded-wallet-zOEVMj8r.js} +1 -1
  53. package/_assets/{emotion-styled.browser.esm-pOAX0dMa.js → emotion-styled.browser.esm-ftlGzXhy.js} +1 -1
  54. package/_assets/{engine-gP8vp-2g.js → engine-C84VS8MU.js} +1 -1
  55. package/_assets/{errors-WNvNILsF.js → errors-jURSB57c.js} +1 -1
  56. package/_assets/{estimate-l1-fee-X1cvAsdL.js → estimate-l1-fee-BK9aiTEg.js} +1 -1
  57. package/_assets/{execute-V2l_cDAW.js → execute-BJdfX8go.js} +2 -2
  58. package/_assets/{features-CFR_-yBt.js → features-CEPVrrJh.js} +1 -1
  59. package/_assets/{fetchTokenMetadata-Do5GLuIQ.js → fetchTokenMetadata-Cg8LhGF6.js} +2 -2
  60. package/_assets/{field.styles-ciG_OcBi.js → field.styles-BO_2AHCA.js} +1 -1
  61. package/_assets/{get-ecosystem-wallet-info-CyDTxLgQ.js → get-ecosystem-wallet-info-DN7GFeAM.js} +1 -1
  62. package/_assets/{getBalance-7wKu8RUe.js → getBalance-CCluSQca.js} +1 -1
  63. package/_assets/{getNFT-DecLUThv.js → getNFT-B3tNxOax.js} +1 -1
  64. package/_assets/{getNFT-BbpUiMXR.js → getNFT-C7PC0iJF.js} +1 -1
  65. package/_assets/{grid.styles-Caahz6PS.js → grid.styles-DRngdZfp.js} +1 -1
  66. package/_assets/{hashTypedData-Ca524zaX.js → hashTypedData-BPxQrISG.js} +1 -1
  67. package/_assets/{hashTypedData-C9kgxiiE.js → hashTypedData-ulq3qXHW.js} +1 -1
  68. package/_assets/{in-app-B-disnkm.js → in-app-C_sI0Q7l.js} +1 -1
  69. package/_assets/{in-app-wallet-calls-3yighozE.js → in-app-wallet-calls-ozqkkU0m.js} +1 -1
  70. package/_assets/{index-DCMLwiSR.js → index-0wuiFD-D.js} +1 -1
  71. package/_assets/{index-BBX5Tona.js → index-2bLJt5nu.js} +1 -1
  72. package/_assets/{index-DvjyzmjB.js → index-B-0HDufu.js} +1 -1
  73. package/_assets/{index-CFziwAGz.js → index-B1yZmsbg.js} +1 -1
  74. package/_assets/{index-DsH_mBtT.js → index-B2h0kzTR.js} +7 -7
  75. package/_assets/{index-o0b8cjRQ.js → index-B41s2t0I.js} +1 -1
  76. package/_assets/{index-CEDBhmGn.js → index-B4Sh4DUY.js} +1 -1
  77. package/_assets/{index-CEnhHz30.js → index-B4VWghxR.js} +1 -1
  78. package/_assets/{index-2-BWsekC.js → index-B4ldzGrT.js} +1 -1
  79. package/_assets/{index-CONyzZZC.js → index-B8hnFmS-.js} +3 -3
  80. package/_assets/{index-D58OkhU1.js → index-BCbVNwA6.js} +1 -1
  81. package/_assets/{index-8xcbpK09.js → index-BCqRbjcA.js} +1 -1
  82. package/_assets/{index-CUAEZ5zJ.js → index-BG93ruhj.js} +1 -1
  83. package/_assets/{index-CmlH9TBP.js → index-BLtmHnvk.js} +1 -1
  84. package/_assets/{index-DxB85HDB.js → index-BQAoWWgI.js} +1 -1
  85. package/_assets/{index-BrU_i04f.js → index-BQbGdQCn.js} +1 -1
  86. package/_assets/{index-D9iAFl4E.js → index-BZo86GEs.js} +1 -1
  87. package/_assets/{index-BMFVFrWl.js → index-Bfbo1-y3.js} +3 -3
  88. package/_assets/{index-DRI1gQSo.js → index-Bk3FocQt.js} +1 -1
  89. package/_assets/{index-C616xNgB.js → index-BpBLqmY7.js} +19 -19
  90. package/_assets/{index-BjEDpwxR.js → index-BqQA-htt.js} +1 -1
  91. package/_assets/{index-DEw1jYQT.js → index-BsAc5Nb_.js} +1 -1
  92. package/_assets/{index-CjhGjrdW.js → index-BwT65Ui0.js} +1 -1
  93. package/_assets/{index-DNvcQt0s.js → index-BwpU8az-.js} +3 -3
  94. package/_assets/{index-DCAUOF_r.js → index-C1ABS6aZ.js} +1 -1
  95. package/_assets/{index-p0fxtTsZ.js → index-C21U9leN.js} +2 -2
  96. package/_assets/{index-CO_xP_3N.js → index-C6jWze3p.js} +1 -1
  97. package/_assets/{index-CAl290ro.js → index-C7gyW2pC.js} +1 -1
  98. package/_assets/{index-CyITvpDL.js → index-C8N5dIBi.js} +1 -1
  99. package/_assets/{index-CGcb9Mz3.js → index-CFj3lX4u.js} +1 -1
  100. package/_assets/{index--1pBMb8n.js → index-CPVal8wI.js} +1 -1
  101. package/_assets/{index-BuImQh6o.js → index-Ca2t9jnc.js} +1 -1
  102. package/_assets/{index-yiECqJCb.js → index-Ce2J3RrX.js} +1 -1
  103. package/_assets/{index-Gw3Mauv_.js → index-Cutc7nXs.js} +1 -1
  104. package/_assets/{index-JuH5W7YS.js → index-D3CBiscc.js} +2 -2
  105. package/_assets/{index-CZBUgvRB.js → index-D7sH_woo.js} +1 -1
  106. package/_assets/{index-N5sgh9IC.js → index-DEpHjDox.js} +1 -1
  107. package/_assets/{index-Bd7SNoIN.js → index-DNUmp9qJ.js} +2 -2
  108. package/_assets/{index-DKghJgJj.js → index-DPJNY0Ni.js} +1 -1
  109. package/_assets/{index-BLCTVSaC.js → index-DPh8zvp5.js} +1 -1
  110. package/_assets/{index-Eip3e8N8.js → index-DUeFbNWb.js} +1 -1
  111. package/_assets/{index-C3MGLBUO.js → index-D_qvzN-5.js} +1 -1
  112. package/_assets/{index-DUmo7598.js → index-DisgA_Kp.js} +1 -1
  113. package/_assets/{index-BdQllJHM.js → index-DmYn7FTm.js} +1 -1
  114. package/_assets/{index-tCYP1O3W.js → index-DmouEX3z.js} +1 -1
  115. package/_assets/{index-BQB7qYN1.js → index-DrdjzH9k.js} +1 -1
  116. package/_assets/{index-DJOlt1Iv.js → index-G_9AGT2d.js} +1 -1
  117. package/_assets/{index-CdFrv2eV.js → index-YX6Ay2YX.js} +1 -1
  118. package/_assets/{index-Dag4zALf.js → index-aOhbQl_e.js} +1 -1
  119. package/_assets/{index-CKkE-eRE.js → index-js8gBwwu.js} +1 -1
  120. package/_assets/{index-B6l73M7K.js → index-sAHvnz2N.js} +1 -1
  121. package/_assets/{index-p4Ph7ugv.js → index-yJr5AHy6.js} +1 -1
  122. package/_assets/{index.es-C5PJ78RX.js → index.es-CAm13D3S.js} +1 -1
  123. package/_assets/{index.es-DF_hlZIu.js → index.es-_sMtTPSc.js} +4 -4
  124. package/_assets/{index.es-D73EniUm.js → index.es-nXwNgZDa.js} +1 -1
  125. package/_assets/{localBatchGatewayRequest-DvkdRgNo.js → localBatchGatewayRequest-DldZ90JU.js} +1 -1
  126. package/_assets/{networks-7b-i0dnd.js → networks-A_3lFdbQ.js} +1 -1
  127. package/_assets/{onramp-CoF8bFaS.js → onramp-uIn5Hze6.js} +1 -1
  128. package/_assets/{openzeppelin-DcsEW8tQ.js → openzeppelin-K0lueS2f.js} +1 -1
  129. package/_assets/{parseNft-CNJ2CwyE.js → parseNft-B8gQqMLe.js} +2 -2
  130. package/_assets/{parseSignature-whU_pkfu.js → parseSignature-DzYQN9v3.js} +3 -3
  131. package/_assets/{parseSignature-D0-1k6Yx.js → parseSignature-eP7njmVY.js} +1 -1
  132. package/_assets/{passkeys-SqHHDvyI.js → passkeys-CdjlkSrV.js} +1 -1
  133. package/_assets/{pay-with-exchange-Cvr7dd94.js → pay-with-exchange-2kPfthhA.js} +1 -1
  134. package/_assets/{qr-overlay-HlBTd234.js → qr-overlay-lH0GRusa.js} +1 -1
  135. package/_assets/{receive-HPltMi_i.js → receive-D9VTDtK7.js} +1 -1
  136. package/_assets/{resolveImplementation-CM1yFlGf.js → resolveImplementation-BBpjC548.js} +1 -1
  137. package/_assets/{rpc-CPS_djFB.js → rpc-QKrpJtdm.js} +1 -1
  138. package/_assets/{secp256k1-ChRNiO68.js → secp256k1-BC1FlI33.js} +1 -1
  139. package/_assets/{secp256k1-CQmdb_AD.js → secp256k1-CYkRl_Jj.js} +1 -1
  140. package/_assets/{secp256k1-DUTfCpIK.js → secp256k1-DhRlT0ib.js} +1 -1
  141. package/_assets/{send-zy_Vr6BQ.js → send-BR0llNO1.js} +1 -1
  142. package/_assets/{send-batch-transaction-Vn4JOFM5.js → send-batch-transaction-BCKT8nBl.js} +1 -1
  143. package/_assets/{send-eip712-transaction-Qvibiwhe.js → send-eip712-transaction-DJ0zmOUy.js} +2 -2
  144. package/_assets/{send-gasless-transaction-DQLcvFHt.js → send-gasless-transaction-BjdM8j2X.js} +2 -2
  145. package/_assets/{send-transaction-CZ0kapdy.js → send-transaction-C8RVBMn9.js} +2 -2
  146. package/_assets/{sendMetaTransaction-Ba_-1nOk.js → sendMetaTransaction-CcYdCbY-.js} +1 -1
  147. package/_assets/{sendRawTransaction-BUz1EYd8.js → sendRawTransaction-daS8Cqba.js} +3 -3
  148. package/_assets/{serializeTransaction-B8qCVIIu.js → serializeTransaction-hW8PYHkl.js} +1 -1
  149. package/_assets/{session-proposal-BqO43SKO.js → session-proposal-CqH6oHj9.js} +1 -1
  150. package/_assets/{session-request-DbQI-hjo.js → session-request-BWv_wt41.js} +2 -2
  151. package/_assets/{signing-CVGndCRE.js → signing-BqfCVU3I.js} +3 -3
  152. package/_assets/{skeleton.styles-K9f1Sxf1.js → skeleton.styles-DagyoT5y.js} +1 -1
  153. package/_assets/{socials-CNOGl_eO.js → socials-D4goIlBt.js} +1 -1
  154. package/_assets/{styled-CljNQW-J.js → styled-CoVCpn99.js} +1 -1
  155. package/_assets/{swaps-D5haogfk.js → swaps-GJ4U9DHL.js} +1 -1
  156. package/_assets/{thirdweb-CC2bk-Up.js → thirdweb-F_-Px602.js} +3 -3
  157. package/_assets/{to-serializable-transaction-BB0M9pw8.js → to-serializable-transaction-BkPY6iHK.js} +2 -2
  158. package/_assets/{transactionReceipt-puJsrtjz.js → transactionReceipt-iJ97NYxd.js} +1 -1
  159. package/_assets/{transactions-BnYHwdat.js → transactions-Cl8fRRc0.js} +1 -1
  160. package/_assets/{useCreditPacks-xyyhS_80.js → useCreditPacks-Dsfos9wm.js} +1 -1
  161. package/_assets/{useImportable-Bh7jH6e9.js → useImportable-Bn9l5AUn.js} +1 -1
  162. package/_assets/{useInfiniteGrid-CV4TXaLn.js → useInfiniteGrid-VPnx9W8Q.js} +1 -1
  163. package/_assets/{useTheme-Czw2-J4G.js → useTheme-D2_ZQh6-.js} +1 -1
  164. package/_assets/{verifyHash-CAYWYGEG.js → verifyHash-DlqrxU4F.js} +1 -1
  165. package/_assets/{w3m-modal-Fr29zvJe.js → w3m-modal-BTAbPei6.js} +1 -1
  166. package/_assets/{w3m-modal-DtofW43q.js → w3m-modal-DRnBD4CD.js} +1 -1
  167. package/_assets/{wait-for-tx-receipt-mfzWqQ40.js → wait-for-tx-receipt-CETDDyPM.js} +1 -1
  168. package/_assets/{wallets-DT2LKaVF.js → wallets-91m5q0QW.js} +5 -5
  169. package/_assets/{web-connector-4TZSYYzx.js → web-connector-qXgR2Q4O.js} +3 -3
  170. package/_assets/{writeContract-CEQ0n4-z.js → writeContract-IIDoxAya.js} +1 -1
  171. package/_assets/{zoraTestnet-Cd1Th5ww.js → zoraTestnet-ev6ZVcwL.js} +1 -1
  172. package/index.html +11 -11
  173. package/package.json +2 -2
  174. package/_assets/Activity-CJO4ONwi.js +0 -371
  175. package/_assets/LazyEmoteControls-D-xqLU4A.js +0 -2
  176. package/_assets/buy-CuFubBZY.js +0 -1
  177. package/_assets/buy-gasless-DO6cBuJ3.js +0 -1
@@ -1 +1 @@
1
- import{r as i,j as e,R as He}from"./react-BYHuwl8r.js";import{n as G}from"./dcl-schemas-CmtP3U6y.js";import{c as y}from"./index-B6l73M7K.js";import{n as t,S as Fe}from"./emotion-styled.browser.esm-pOAX0dMa.js";import{w as ie,b$ as C,c0 as r}from"./index-C616xNgB.js";import"./clsx-WwvpwSg0.js";import"./styled-CljNQW-J.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";function k(o){return Math.floor(o).toLocaleString("en-US")}const Ce=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45 89.9999C69.8528 89.9999 89.9999 69.8528 89.9999 45C89.9999 20.1472 69.8528 0 45 0C20.1472 0 0 20.1472 0 45C0 69.8528 20.1472 89.9999 45 89.9999Z",fill:"url(#dcl-nav0)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 80.9996C25.515 86.6471 34.875 89.9996 45 89.9996C55.125 89.9996 64.485 86.6471 72 80.9996H18Z",fill:"#FF2D55"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 71.9996C11.565 75.397 14.603 78.435 18 80.9996H72C75.398 78.435 78.435 75.397 81 71.9996H9Z",fill:"#FFA25A"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 62.9997H3.758C5.153 66.2172 6.93 69.2322 9 71.9997H60.39V62.9997H60.368Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.883 29.25V63H60.008L31.883 29.25Z",fill:"url(#dcl-nav1)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.758 63H31.883V29.25L3.758 63Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 47.25V72H81L60.368 47.25Z",fill:"url(#dcl-nav2)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.757 72H60.367V47.25L39.757 72Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 40.5C66.58 40.5 71.618 35.463 71.618 29.25C71.618 23.037 66.58 18 60.368 18C54.154 18 49.118 23.037 49.118 29.25C49.118 35.463 54.154 40.5 60.368 40.5Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.882 22.5C34.989 22.5 37.507 19.981 37.507 16.875C37.507 13.768 34.989 11.25 31.882 11.25C28.776 11.25 26.257 13.768 26.257 16.875C26.257 19.981 28.776 22.5 31.882 22.5Z",fill:"#FFC95B"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"dcl-nav0",x1:"45",y1:"-18.64",x2:"-18.64",y2:"45",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FF2D55"}),e.jsx("stop",{offset:"1",stopColor:"#FFBC5B"})]}),e.jsxs("linearGradient",{id:"dcl-nav1",x1:"31.873",y1:"29.25",x2:"31.873",y2:"63",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]}),e.jsxs("linearGradient",{id:"dcl-nav2",x1:"60.36",y1:"47.25",x2:"60.36",y2:"72",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]})]})]})}),Re=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M3 6H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 12H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 18H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),We=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),re=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),De=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M15 12.5L10 7.5L5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),me=i.memo(function(n){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 2H14V6",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66699 9.33333L14.0003 2",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ne=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M7.5 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.333 14.1667L17.4997 10.0001L13.333 5.83337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M17.5 10H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),se=i.memo(function(n){return e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",stroke:"currentColor",strokeWidth:"1"}),e.jsx("path",{d:"M8.5 3.5V2C8.5 1.17157 7.82843 0.5 7 0.5H2C1.17157 0.5 0.5 1.17157 0.5 2V7C0.5 7.82843 1.17157 8.5 2 8.5H3.5",stroke:"currentColor",strokeWidth:"1"})]})}),Ue=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 10C11.3807 10 12.5 8.88071 12.5 7.5C12.5 6.11929 11.3807 5 10 5C8.61929 5 7.5 6.11929 7.5 7.5C7.5 8.88071 8.61929 10 10 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 16.25C5 14.1789 7.23858 12.5 10 12.5C12.7614 12.5 15 14.1789 15 16.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ze=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M15.8333 7.5L13.3333 3.33337H6.66667L4.16667 7.5L2.5 16.6667H17.5L15.8333 7.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66667 3.33337L7.5 7.50004L10 9.16671L12.5 7.50004L13.3333 3.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Oe=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.1666 10C16.1666 9.58337 16.1249 9.16671 16.0416 8.75004L17.9166 7.27087L16.4166 4.72921L14.1666 5.52087C13.5416 4.97921 12.8124 4.56254 11.9999 4.31254L11.6666 1.66671H8.33325L7.99992 4.31254C7.18742 4.56254 6.45825 4.97921 5.83325 5.52087L3.58325 4.72921L2.08325 7.27087L3.95825 8.75004C3.87492 9.16671 3.83325 9.58337 3.83325 10C3.83325 10.4167 3.87492 10.8334 3.95825 11.25L2.08325 12.7292L3.58325 15.2709L5.83325 14.4792C6.45825 15.0209 7.18742 15.4375 7.99992 15.6875L8.33325 18.3334H11.6666L11.9999 15.6875C12.8124 15.4375 13.5416 15.0209 14.1666 14.4792L16.4166 15.2709L17.9166 12.7292L16.0416 11.25C16.1249 10.8334 16.1666 10.4167 16.1666 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ve=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M5 1.66663L2.5 4.99996V16.6666C2.5 17.1087 2.67559 17.5326 2.98816 17.8452C3.30072 18.1577 3.72464 18.3333 4.16667 18.3333H15.8333C16.2754 18.3333 16.6993 18.1577 17.0118 17.8452C17.3244 17.5326 17.5 17.1087 17.5 16.6666V4.99996L15 1.66663H5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.3334 8.33337C13.3334 9.21743 12.9822 10.0653 12.3571 10.6904C11.7319 11.3155 10.8841 11.6667 10.0001 11.6667C9.11603 11.6667 8.26818 11.3155 7.64306 10.6904C7.01794 10.0653 6.66675 9.21743 6.66675 8.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})});i.memo(function(n){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M12 21.75C13.1 21.75 14 20.85 14 19.75H10C10 20.85 10.89 21.75 12 21.75ZM18 15.75V10.75C18 7.68 16.36 5.11 13.5 4.43V3.75C13.5 2.92 12.83 2.25 12 2.25C11.17 2.25 10.5 2.92 10.5 3.75V4.43C7.63 5.11 6 7.67 6 10.75V15.75L4 17.75V18.75H20V17.75L18 15.75Z",fill:"#FCFCFC"})})});const le=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40Z",fill:"#25292E"}),e.jsx("path",{d:"M11.7 21.1L20 26.0143L28.2857 21.1L20 32.8L11.7 21.1Z",fill:"white",fillOpacity:"0.8"}),e.jsx("path",{d:"M20 24.1857L11.7 19.2714L20 6.20001L28.3 19.2714L20 24.1857Z",fill:"white"})]})}),Be=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{width:"40",height:"40",rx:"20",fill:"white"}),e.jsx("path",{d:"M20 0C9 0 0 9 0 20C0 31 8.85714 40 20 40C31.1429 40 40 31.1429 40 20C40 8.85714 31 0 20 0ZM31.8571 20.1429C31.8571 20.4286 31.7143 20.8571 31.4286 21L25.7143 24.2857C25.4286 24.4286 25 24.4286 24.7143 24.2857L22.5714 23V20L25.1429 21.5714L29.1429 19.2857V14.7143L25.1429 12.4286L21.4286 14.5714V26.2857C21.4286 26.5714 21.2857 27 21 27.1429L15.2857 30.4286C15 30.5714 14.5714 30.5714 14.2857 30.4286L8.57143 27.1429C8.28571 27 8.14286 26.7143 8.14286 26.2857V19.7143C8.14286 19.4286 8.28571 19 8.57143 18.8571L14.2857 15.5714C14.5714 15.4286 15 15.4286 15.2857 15.5714L17.4286 16.8571V20L14.8571 18.4286L10.8571 20.7143V25.2857L14.8571 27.5714L18.8571 25.2857V13.7143C18.8571 13.4286 19 13 19.2857 12.8571L25 9.57143C25.2857 9.42857 25.7143 9.42857 26 9.57143L31.4286 12.8571C31.7143 13 31.8571 13.2857 31.8571 13.7143V20.1429Z",fill:"#8247E5"})]})}),Te=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 1C30.4286 1 39 9.57143 39 20C39 30.4286 30.4286 39 20 39C9.57143 39 1 30.4286 1 20C1 9.57143 9.57143 1 20 1Z",fill:"#2D374B",stroke:"#96BEDC",strokeWidth:"1.4"}),e.jsx("path",{d:"M16.4286 10.7143C14.2857 10.7143 12 11.2857 11 13L2 27L3 29L5 32L19 10.7143H16.4286Z",fill:"white"}),e.jsx("path",{d:"M20.8571 10.7143L7 33.5L9 36L11.5 37L27.4286 10.7143H20.8571Z",fill:"white"}),e.jsx("path",{d:"M20.1428 26.5714L27.5 37.5L32.5 34L23.8571 20.1429L20.1428 26.5714ZM36.8571 28.8571L38 27.5L28.4286 12.5714L25.1428 18.1429L34.5 33L36.4286 29.8571C36.7143 29.5714 36.8571 29.2857 37 28.8571C36.8571 29 36.8571 28.8571 36.8571 28.8571Z",fill:"#28A0F0"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0731 2.14834C10.1438 2.14834 2.14834 10.1438 2.14834 20.0731C2.14834 29.9915 10.133 37.8517 20.0731 37.8517C29.8616 37.8517 37.8517 29.9969 37.8517 20.0731C37.8517 10.133 29.9915 2.14834 20.0731 2.14834ZM0 20.0731C0 8.95736 8.95736 0 20.0731 0C31.1996 0 40 8.96822 40 20.0731C40 31.1942 31.0372 40 20.0731 40C8.96822 40 0 31.1996 0 20.0731Z",fill:"#96BEDC"})]})}),ze=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40C31.0457 40 40 31.0457 40 20Z",fill:"#FF3131"}),e.jsx("path",{d:"M13.1714 26.2143C17.0286 26.2143 20.1143 23.0714 20.1143 18.5286C20.1143 15.4 18.0143 13.1 14.4286 13.1C10.5429 13.1 7.5 16.2429 7.5 20.7857C7.5 23.9286 9.64286 26.2143 13.1714 26.2143ZM14.3571 15.7143C15.8714 15.7143 16.8429 16.8714 16.8429 18.7143C16.8429 21.4286 15.2571 23.6 13.2571 23.6C11.7429 23.6 10.7714 22.4286 10.7714 20.6C10.7714 17.9 12.3571 15.7143 14.3429 15.7143H14.3571ZM23.4714 13.3143L20.7857 26H24.0143L24.8 22.2857H26.9C30.3714 22.2857 32.6286 20.3143 32.6286 17.1429C32.6286 14.8429 30.9571 13.3143 28.2 13.3143H23.4857H23.4714ZM26.1857 15.8H27.5286C28.7143 15.8 29.3857 16.3429 29.3857 17.4286C29.3857 18.8571 28.4143 19.8571 26.9 19.8571H25.3143L26.1714 15.8H26.1857Z",fill:"white"})]})}),_e=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 0C31.0471 0 40 8.95286 40 20C40 31.0471 31.0471 40 20 40C8.95286 40 0 31.0471 0 20C0 8.95286 8.95286 0 20 0Z",fill:"#F0B90B"}),e.jsx("path",{d:"M10.9914 20L11.0057 25.2886L15.5 27.9314V31.0286L8.37714 26.8514V18.4543L10.9914 20ZM10.9914 14.7114V17.7929L8.37428 16.2457V13.1629L10.9914 11.6157L13.6214 13.1629L10.9929 14.7114H10.9914ZM17.3771 13.1629L19.9943 11.6157L22.6229 13.1629L19.9943 14.7114L17.3771 13.1629Z",fill:"white"}),e.jsx("path",{d:"M12.8829 24.1929V21.0957L15.5 22.6443V25.7257L12.8829 24.1929ZM17.3771 29.0414L19.9943 30.59L22.6229 29.0414V32.1229L19.9943 33.6714L17.3771 32.1229V29.0414ZM26.3771 13.1629L28.9943 11.6157L31.6229 13.1629V16.2457L28.9943 17.7929V14.7114L26.3771 13.1629ZM28.9943 25.2886L29.0086 20L31.6243 18.4514V26.85L24.5014 31.0272V27.9314L28.9943 25.2886Z",fill:"white"}),e.jsx("path",{d:"M27.1171 24.1928L24.5 25.7257V22.6443L27.1171 21.0957V24.1928Z",fill:"white"}),e.jsx("path",{d:"M27.1171 15.8072L27.1314 18.9043L22.6243 21.5472V26.85L20.0086 28.3829L17.3914 26.85V21.5486L12.8843 18.9043V15.8072L15.5129 14.26L19.9914 16.9172L24.4986 14.26L27.1271 15.8072H27.1171ZM12.8829 10.5214L19.9929 6.32858L27.1171 10.5214L24.5 12.0686L19.9943 9.41144L15.5 12.0686L12.8829 10.5214Z",fill:"white"})]})}),$e=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#E84142"}),e.jsx("path",{d:"M27.0552 20.5197C27.7484 19.3226 28.8691 19.3226 29.5592 20.5197L33.8738 28.0946C34.567 29.291 34 30.2674 32.612 30.2674H23.9211C22.5513 30.2674 21.9842 29.291 22.6593 28.0946L27.0552 20.5197ZM18.709 5.93692C19.4014 4.74055 20.504 4.74055 21.1972 5.93692L22.1577 7.67194L24.4251 11.6562C24.6972 12.2182 24.8386 12.8346 24.8386 13.459C24.8386 14.0835 24.6972 14.6998 24.4251 15.2618L16.8186 28.4409C16.479 28.9688 16.0198 29.4093 15.4781 29.7267C14.9365 30.044 14.3277 30.2292 13.7011 30.2674H7.38566C6.00001 30.2674 5.43298 29.3068 6.12383 28.0946L18.709 5.93692Z",fill:"white"})]})}),Pe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#13B5EC"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 16.125L26 13.5V18.75L21.5 16.125ZM26 27.375L20 30.875L14 27.375V21.25L20 24.75L26 21.25V27.375ZM14 13.5L18.5 16.125L14 18.75V13.5ZM20.75 17.375L25.25 20L20.75 22.625V17.375ZM19.25 22.625L14.75 20L19.25 17.375V22.625ZM25.25 12.25L20 15.25L14.75 12.25L20 9.125L25.25 12.25ZM12.5 11.75V28.125L20 32.375L27.5 28.125V11.75L20 7.5L12.5 11.75Z",fill:"white"})]})}),Ge=new Set([1,5,42,4,3,11155111]),Ke=new Set([137,80002,80001]),Ye={56:_e,10:ze,42161:Te,250:Pe,43114:$e};function ae({chainId:o,...n}){const l=Ye[o];return l?e.jsx(l,{...n}):Ge.has(o)?e.jsx(le,{...n}):Ke.has(o)?e.jsx(Be,{...n}):e.jsx(le,{...n})}const be=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M9.864 6.952C9.864 4.968 8.264 3.32 6.28 3.32C4.296 3.32 2.696 4.968 2.696 6.952C2.696 8.92 4.296 10.52 6.28 10.52C8.264 10.52 9.864 8.92 9.864 6.952ZM9.032 6.952C9.032 8.456 7.688 9.688 6.28 9.688C4.728 9.688 3.528 8.488 3.528 6.952C3.528 5.432 4.728 4.152 6.28 4.152C7.704 4.152 9.032 5.432 9.032 6.952ZM12.248 10.424V3.544L6.28 0.12L0.312 3.544V10.424L6.28 13.848L12.248 10.424ZM11.192 9.832L6.296 12.632L1.368 9.832V4.184L6.28 1.336L11.192 4.184V9.832Z",fill:"#FF2D55"})})}),we=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0L24 12L12 24L0 12L12 0ZM12.0002 3.36001L20.6402 12L12.0002 20.64L3.36023 12L12.0002 3.36001ZM12.0009 16.32C14.3868 16.32 16.3209 14.3859 16.3209 12C16.3209 9.61415 14.3868 7.68002 12.0009 7.68002C9.61507 7.68002 7.68094 9.61415 7.68094 12C7.68094 14.3859 9.61507 16.32 12.0009 16.32Z",fill:"#FCFCFC"})})}),Xe=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M13.1318 0.891714L18.5 6.29015V14.0226L13.125 19.5831H6.26758L0.891602 14.0216V6.29113L6.26074 0.891714H13.1318Z",stroke:"currentColor",strokeWidth:"1.78379"}),e.jsx("path",{d:"M7.81758 5.13837C8.7606 4.70684 9.80743 4.55428 10.8344 4.69871C11.8613 4.84315 12.8255 5.27853 13.6129 5.95344L12.0562 7.76966C11.6155 7.39196 11.076 7.1483 10.5012 7.06747C9.92652 6.98664 9.34068 7.07201 8.81294 7.31351C8.28519 7.555 7.8376 7.94253 7.52307 8.43029C7.20854 8.91805 7.0402 9.48566 7.03796 10.066C7.03572 10.6464 7.19967 11.2153 7.51042 11.7054C7.82117 12.1956 8.26576 12.5866 8.79162 12.8322C9.31748 13.0777 9.90265 13.1676 10.478 13.0912C11.0533 13.0148 11.5947 12.7753 12.0383 12.4011L13.581 14.2293C12.7884 14.8981 11.8209 15.326 10.7928 15.4625C9.7648 15.599 8.71916 15.4384 7.7795 14.9996C6.83984 14.5608 6.04542 13.8621 5.49014 12.9863C4.93485 12.1104 4.64191 11.0938 4.64592 10.0568C4.64992 9.01972 4.95071 8.00549 5.51274 7.13393C6.07478 6.26236 6.87456 5.5699 7.81758 5.13837Z",fill:"currentColor"})]})}),qe={signIn:"SIGN IN",signingIn:"SIGNING IN...",whatsOn:"Explore",shop:"Shop",shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",names:"Names",land:"Land",merch:"Merch",create:"Create",createInDecentraland:"Create in Decentraland",publishWearablesEmotes:"Publish Wearables & Emotes",publishLand:"Manage Land",creatorDocumentation:"Creator Documentation",learn:"Learn",getStarted:"Get Started",startCreating:"Start Creating",seeWhatsNew:"See What's New",viewProfile:"View Profile",myAssets:"My Assets",accountSettings:"Account Settings",marketplaceAuthorizations:"Marketplace Authorizations",walletAddress:"User ID",addressCopied:"Copied!",logout:"Log Out",creditsExpiringIn:"Expiring in {days} days",creditsValueNote:"(1 Credit = 1 MANA in value)"};function Je(){const o=y.get("SHOP_URL"),n=y.get("BUILDER_URL"),l=y.get("EVENTS_URL"),h=y.get("CREATE_URL"),f=y.get("BLOG_URL"),w=y.get("MARKETPLACE_LANDS_URL");return{whatsOn:{label:"whatsOn",url:l},shop:{label:"shop",items:[{label:"shopAll",url:o},{label:"wearables",url:`${o}/items?category=wearable`},{label:"emotes",url:`${o}/items?category=emote`},{label:"names",url:`${o}/items?category=names`},{label:"land",url:w},{label:"merch",url:"https://store.decentraland.org/",isExternal:!0}]},create:{label:"create",items:[{label:"createInDecentraland",url:h},{label:"publishWearablesEmotes",url:`${n}/collections`},{label:"publishLand",url:`${n}/land`},{label:"creatorDocumentation",url:"https://docs.decentraland.org/creator",isExternal:!0}]},learn:{label:"learn",url:f}}}let ee=null;function ve(){return ee||(ee=Je()),ee}let te=null;function Qe(){return te||(te=[{label:"viewProfile",url:y.get("PROFILE_URL"),icon:"account"},{label:"myAssets",url:y.get("MARKETPLACE_MY_ASSETS_URL"),icon:"wearable"},{label:"accountSettings",url:y.get("ACCOUNT_URL"),icon:"settings"},{label:"marketplaceAuthorizations",url:y.get("MARKETPLACE_SETTINGS_URL"),icon:"shopping"}]),te}const Le=["shop","create"],je="Inter, Helvetica, Arial, sans-serif",A="@media (max-width: 991px)",x="@media (min-width: 992px)",et={navbar:1100},tt="0px 1.333px 24px rgba(0,0,0,0.12), 0px 8px 13.333px rgba(0,0,0,0.14), 0px 4px 6.667px rgba(0,0,0,0.2)",K="rgba(38, 38, 38, 0.8)",ke="0.5px solid #5E5B67",Y="0 2px 20px 16px rgba(0, 0, 0, 0.25)",E="blur(12.5px)",ye=ie({"0%":{opacity:1},"50%":{opacity:.5},"100%":{opacity:1}}),X=ie({from:{opacity:0},to:{opacity:1}}),ot=ie({"0%, 100%":{transform:"rotate(0deg)"},"25%":{transform:"rotate(8deg)"},"50%":{transform:"rotate(-8deg)"},"75%":{transform:"rotate(4deg)"}}),nt=t("nav")({position:"fixed",top:0,left:0,right:0,zIndex:et.navbar,fontFamily:je,display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:-1,background:"rgba(22, 21, 24, 0.75)",boxShadow:tt,backdropFilter:"saturate(1.8) blur(20px)",WebkitBackdropFilter:"saturate(1.8) blur(20px)",transition:"background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease"},[A]:{height:64,padding:"12px 16px"},[x]:{height:92,padding:"16px 54px","&::before":{background:"rgba(22, 21, 24, 0.4)"}}}),it=t("div")({display:"flex",alignItems:"center",[A]:{gap:12},[x]:{gap:48},"& .mobile-only":{display:"flex",[x]:{display:"none"}},"& .desktop-only":{display:"none",[x]:{display:"flex"}}}),rt=t("div")({display:"flex",alignItems:"center",gap:16,[x]:{gap:48}}),st=t("div")({display:"flex",alignItems:"center",gap:12,[x]:{gap:24}}),lt=t("a")({display:"flex",alignItems:"center",flexShrink:0,width:40,height:40,"& svg":{width:"100%",height:"100%"}}),at=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:8,color:r.white,cursor:"pointer",flexShrink:0,transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.15)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.2)"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},[x]:{display:"none"}}),dt=t("button")({all:"unset",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 22px",border:`1px solid ${r.softWhite}`,borderRadius:6,fontFamily:je,fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:r.softWhite,cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)",borderColor:"rgba(255, 255, 255, 0.7)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.12)"},"&:disabled":{opacity:.5,pointerEvents:"none"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2}}),ct=t("div")(({open:o})=>({position:"fixed",top:64,left:0,right:0,bottom:0,zIndex:1099,pointerEvents:o?"auto":"none",backgroundColor:o?"rgba(0, 0, 0, 0.3)":"transparent",transition:"background-color 0.25s ease",[x]:{display:"none"}})),pt=t("div")(({open:o})=>({position:"fixed",top:64,left:0,right:0,zIndex:1100,maxHeight:o?"calc(100vh - 64px)":0,overflowY:"auto",background:K,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:o?Y:"none",padding:o?12:"0 12px",transition:"max-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease",[x]:{display:"none"}})),oe=t("div")({borderBottom:"0.5px solid rgba(255, 255, 255, 0.1)"}),de=t("a")({display:"flex",alignItems:"center",padding:"24px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:r.white,textDecoration:"none","&:hover":{color:r.gray5},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2}}),ht=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"24px 16px",boxSizing:"border-box",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:r.white,cursor:"pointer","&:hover":{color:r.gray5},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:20,height:20,flexShrink:0,transition:"transform 0.2s ease"}}),ut=t("div")(({open:o})=>({maxHeight:o?500:0,overflow:"hidden",transition:"max-height 0.25s ease"})),ft=t("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray4,textDecoration:"none","&:hover":{color:r.white},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),Ie=i.memo(function({open:n,onClose:l,i18n:h}){const f=ve(),[w,b]=i.useState(null),s=i.useCallback(u=>{b(a=>a===u?null:u)},[]);return e.jsxs(e.Fragment,{children:[e.jsx(ct,{open:n,onClick:l}),e.jsxs(pt,{open:n,role:"navigation","aria-label":"Mobile navigation",children:[e.jsx(oe,{children:e.jsx(de,{href:f.whatsOn.url,children:h[f.whatsOn.label]})}),Le.map(u=>{var d;const a=f[u],g=w===u;return e.jsxs(oe,{children:[e.jsxs(ht,{onClick:()=>s(u),"aria-expanded":g,children:[h[a.label],g?e.jsx(De,{}):e.jsx(re,{})]}),e.jsx(ut,{open:g,children:(d=a.items)==null?void 0:d.map(c=>e.jsxs(ft,{href:c.url,target:c.isExternal?"_blank":void 0,rel:c.isExternal?"noopener noreferrer":void 0,children:[h[c.label],c.isExternal&&e.jsx(me,{})]},c.label))})]},u)}),e.jsx(oe,{children:e.jsx(de,{href:f.learn.url,children:h[f.learn.label]})})]})]})});Ie.displayName="MobileMenu";const xt=t("div")({display:"none",[x]:{display:"flex",alignItems:"center",gap:24}}),gt=t("button")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:r.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:20,height:20,transition:"transform 0.2s ease",flexShrink:0}}),ce=t("a")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:r.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2}}),Ct=t(gt)({paddingRight:16}),mt=t("div")({position:"relative",paddingBottom:8,marginBottom:-8,cursor:"pointer"}),bt=t("div")({position:"absolute",top:"100%",left:0,marginTop:2,minWidth:220,background:K,backdropFilter:E,WebkitBackdropFilter:E,border:ke,borderRadius:12,boxShadow:Y,padding:12,animation:`${X} 0.15s ease forwards`}),wt=t("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"8px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray4,textDecoration:"none",borderRadius:12,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:r.white},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),Me=i.memo(function({desktopDropdown:n,onOpenDropdown:l,onScheduleCloseDropdown:h,activePage:f,i18n:w}){const b=ve();return e.jsxs(xt,{children:[e.jsx(ce,{href:b.whatsOn.url,className:f==="whatsOn"?"active":void 0,children:w[b.whatsOn.label]}),Le.map(s=>{var u;return e.jsxs(mt,{onMouseEnter:()=>l(s),onMouseLeave:h,children:[e.jsxs(Ct,{className:f===s?"active":void 0,"aria-expanded":n===s,"aria-haspopup":"true",onClick:()=>{var g;const a=(g=b[s].items)==null?void 0:g[0];a&&window.open(a.url,"_self")},children:[w[b[s].label],e.jsx(re,{style:{transform:n===s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),n===s&&e.jsx(bt,{children:(u=b[s].items)==null?void 0:u.map(a=>e.jsxs(wt,{href:a.url,target:a.isExternal?"_blank":void 0,rel:a.isExternal?"noopener noreferrer":void 0,children:[w[a.label],a.isExternal&&e.jsx(me,{})]},a.label))})]},s)}),e.jsx(ce,{href:b.learn.url,className:f==="learn"?"active":void 0,children:w[b.learn.label]})]})});Me.displayName="NavLinks";const vt=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,borderRadius:100,backgroundColor:"#FF4BED",border:"2px solid rgba(255, 255, 255, 0.5)",overflow:"hidden",[A]:{width:40,height:40},[x]:{width:48,height:48},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"&.loading":{animation:`${ye} 1.5s ease-in-out infinite`}}),Lt=t("img")({borderRadius:100,objectFit:"cover",width:"100%",height:"100%"}),jt=t("div")({position:"relative"}),kt=t("div")({position:"fixed",top:92,right:54,zIndex:1201,background:K,backdropFilter:E,WebkitBackdropFilter:E,border:ke,borderRadius:12,boxShadow:Y,display:"none",padding:12,gap:24,animation:`${X} 0.15s ease forwards`,minWidth:484,[x]:{display:"flex"}}),yt=t("div")({width:151,minHeight:240,borderRadius:12,border:"0.5px solid #c640cd",background:"linear-gradient(180deg, rgba(198, 64, 205, 0.2) 0%, rgba(105, 31, 169, 0.2) 100%)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0}),It=t("img")({width:"100%",height:"auto",objectFit:"contain",objectPosition:"center"}),pe=t("div")({display:"flex",flexDirection:"column",paddingRight:12,paddingTop:4,paddingBottom:4,flex:1,minWidth:0,[A]:{gap:12}}),Mt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:r.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),St=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.gray4}),At=t("div")({display:"flex",alignItems:"center",gap:8,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.softWhite,lineHeight:1.75}),Et=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:r.softWhite,opacity:.7,transition:"opacity 0.15s ease","&:hover":{opacity:1}}),Ht=t("a")({display:"flex",alignItems:"center",gap:12,padding:"8px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:r.gray4,textDecoration:"none",whiteSpace:"nowrap",cursor:"pointer",transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.05)"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:20,height:20,flexShrink:0}}),ne=t("div")({height:.5,backgroundColor:"rgba(255, 255, 255, 0.1)",margin:"8px 0"}),Ft=t("button")({all:"unset",display:"flex",alignItems:"center",gap:12,padding:"12px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:r.gray4,cursor:"pointer",whiteSpace:"nowrap",transition:"color 0.15s ease","&:hover":{color:C.primary},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:18,height:18}}),Rt=t("button")(({selected:o})=>({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,width:"100%",boxSizing:"border-box",padding:"4px 16px",paddingLeft:16,borderRadius:4,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:12,fontWeight:400,letterSpacing:.46,textTransform:"uppercase",color:"white",cursor:"pointer",transition:"background-color 0.15s ease, color 0.15s ease",background:o?"rgba(255, 255, 255, 0.2)":"transparent","&:hover":{background:o?"rgba(255, 255, 255, 0.2)":"rgba(255, 255, 255, 0.1)"},"& svg":{width:16,height:16,flexShrink:0},...o?{"&::before":{content:'""',position:"absolute",left:4,top:"50%",transform:"translateY(-50%)",width:8,height:8,borderRadius:4,backgroundColor:"#34CE77"}}:{}})),Wt=t("div")({position:"fixed",top:64,left:0,right:0,zIndex:1201,background:K,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:Y,padding:"24px 12px",animation:`${X} 0.15s ease forwards`,[x]:{display:"none"}}),Dt=t("div")({display:"flex",alignItems:"center",gap:12,paddingBottom:8}),Nt=t("div")({width:73,height:73,borderRadius:100,border:"3px solid rgba(255, 255, 255, 0.5)",backgroundColor:"#FF4BED",overflow:"hidden",flexShrink:0,"&.loading":{animation:`${ye} 1.5s ease-in-out infinite`}}),Ut=t("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0}),Zt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:r.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Ot=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.gray4}),Vt=t("div")({display:"flex",alignItems:"center",gap:6,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.softWhite,lineHeight:1.75}),Bt=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:r.softWhite,transition:"opacity 0.15s ease","&:hover":{opacity:.7},"& svg":{width:20,height:20}}),Tt=t("div")({position:"absolute",top:"calc(100% + 4px)",left:0,minWidth:150,display:"flex",flexDirection:"column",gap:2,padding:4,background:r.gray0,backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:8,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",zIndex:10}),zt=t("div")({display:"flex",alignItems:"center",flexWrap:"wrap",gap:"12px 24px",paddingTop:8,width:"100%"}),_t=t("div")({display:"flex",alignItems:"center",gap:6}),he=t("div")(({clickable:o})=>({display:"flex",alignItems:"center",gap:2,cursor:o?"pointer":"default",color:"white"})),ue=t("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:16,letterSpacing:-.8,whiteSpace:"nowrap"}),$t=t("div")({position:"relative"}),Pt=t("div")({display:"flex",alignItems:"center",gap:8,width:150,padding:"4px 4px 4px 8px",backgroundColor:r.gray0,borderRadius:8,cursor:"pointer",whiteSpace:"nowrap",boxSizing:"border-box"}),Gt=t("div")({width:16,height:16,display:"flex",flexShrink:0}),Kt=t("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:"white",flex:1}),Yt={account:Ue,wearable:Ze,settings:Oe,shopping:Ve},Xt="https://peer.decentraland.org/content/contents/";function fe(o){if(o){if(o.startsWith("http://")||o.startsWith("https://")||o.startsWith("data:"))return o;if(/^[a-zA-Z0-9]+$/.test(o))return`${Xt}${o}`}}const qt={1:"Ethereum",11155111:"Sepolia",137:"Polygon",80002:"Amoy",56:"BSC",43114:"Avalanche",42161:"Arbitrum",10:"Optimism",250:"Fantom"};function xe(o){return qt[o]??`Chain ${o}`}const Se=i.memo(function({isLoadingProfile:n,address:l,avatar:h,userCardOpen:f,onToggleUserCard:w,onClickSignOut:b,selectedChain:s,chains:u,onSelectChain:a,manaBalances:g,onClickBalance:d,i18n:c}){var V,$,P,S;const L=fe(($=(V=h==null?void 0:h.avatar)==null?void 0:V.snapshots)==null?void 0:$.face256),[H,q]=i.useState(),[N,B]=i.useState(!1);i.useEffect(()=>{B(!1)},[L]);const J=L?H===L:!1,F=fe((S=(P=h==null?void 0:h.avatar)==null?void 0:P.snapshots)==null?void 0:S.body),U=(h==null?void 0:h.name)||(l?`${l.slice(0,6)}...${l.slice(-4)}`:""),T=l?`${l.slice(0,6)}...${l.slice(-4)}`:"",[j,I]=i.useState(!1),[Z,z]=i.useState(!1),M=i.useCallback(()=>{l&&navigator.clipboard.writeText(l).then(()=>{I(!0),setTimeout(()=>I(!1),2e3)}).catch(()=>{})},[l]),Q=i.useCallback(p=>{p!==s&&(a==null||a(p)),z(!1)},[s,a]),R=s!==void 0&&u&&u.length>0||g&&Object.keys(g).length>0,O=()=>R?e.jsxs(zt,{children:[g&&e.jsxs(_t,{children:[g.ETHEREUM!==void 0&&e.jsxs(he,{clickable:!!d,onClick:()=>d==null?void 0:d(G.Network.ETHEREUM),children:[e.jsx(be,{}),e.jsx(ue,{children:k(g.ETHEREUM)})]}),g.MATIC!==void 0&&e.jsxs(he,{clickable:!!d,onClick:()=>d==null?void 0:d(G.Network.MATIC),children:[e.jsx(we,{}),e.jsx(ue,{children:k(g.MATIC)})]})]}),s!==void 0&&u&&u.length>0&&e.jsxs($t,{children:[e.jsxs(Pt,{onClick:()=>z(p=>!p),children:[e.jsx(Gt,{children:e.jsx(ae,{chainId:s})}),e.jsx(Kt,{children:xe(s)}),e.jsx(re,{style:{width:20,height:20,flexShrink:0,color:"white",transform:Z?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),Z&&e.jsx(Tt,{role:"listbox","aria-label":"Select chain",children:u.map(p=>{const v=p===s;return e.jsxs(Rt,{selected:v,role:"option","aria-selected":v,onClick:()=>Q(p),children:[e.jsx(ae,{chainId:p}),xe(p)]},p)})})]})]}):null,W=()=>!L||N?e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",padding:6},children:e.jsx(Ce,{style:{width:"100%",height:"100%"}})}):e.jsx(Lt,{src:L,alt:"",onLoad:()=>q(L),onError:()=>B(!0),style:{opacity:J?1:0}}),_=()=>e.jsxs(e.Fragment,{children:[Qe().map(p=>{const v=Yt[p.icon];return e.jsxs(Ht,{href:p.url,children:[v&&e.jsx(v,{}),c[p.label]]},p.label)}),e.jsx(ne,{}),e.jsxs(Ft,{onClick:b,children:[e.jsx(Ne,{}),c.logout]})]});return e.jsxs(e.Fragment,{children:[e.jsxs(jt,{children:[e.jsx(vt,{onClick:w,"aria-label":"User menu","aria-expanded":f,"aria-haspopup":"true",className:n?"loading":void 0,children:!n&&W()}),f&&e.jsxs(kt,{onClick:p=>p.stopPropagation(),children:[e.jsx(yt,{children:F?e.jsx(It,{src:F,alt:""}):null}),e.jsxs(pe,{children:[e.jsxs("div",{style:{paddingLeft:16,paddingBottom:8,display:"flex",flexDirection:"column",gap:4},children:[e.jsx(Mt,{title:U,children:U}),e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(St,{children:c.walletAddress}),e.jsxs(At,{children:[j?c.addressCopied:T,e.jsx(Et,{onClick:M,"aria-label":"Copy address",children:e.jsx(se,{})})]})]}),O()]}),e.jsx(ne,{}),_()]})]})]}),f&&e.jsxs(Wt,{"data-mobile-user-card":!0,onClick:p=>p.stopPropagation(),children:[e.jsxs(Dt,{children:[e.jsx(Nt,{className:n?"loading":void 0,children:!n&&W()}),e.jsxs(Ut,{children:[e.jsx(Zt,{title:U,children:U}),e.jsx(Ot,{children:c.walletAddress}),e.jsxs(Vt,{children:[j?c.addressCopied:T,e.jsx(Bt,{onClick:M,"aria-label":"Copy address",children:e.jsx(se,{})})]}),O()]})]}),e.jsx(ne,{}),e.jsx(pe,{children:_()})]})]})});Se.displayName="UserCardPanel";const Jt=He.memo(o=>e.jsxs(Fe,{viewBox:"0 0 20 21",...o,children:[e.jsx("path",{d:"M13.1318 0.891714L18.5 6.29015V14.0226L13.125 19.5831H6.26758L0.891602 14.0216V6.29113L6.26074 0.891714H13.1318Z",stroke:"currentColor",strokeWidth:"1.78379",fill:"none"}),e.jsx("path",{d:"M7.81758 5.13837C8.7606 4.70684 9.80743 4.55428 10.8344 4.69871C11.8613 4.84315 12.8255 5.27853 13.6129 5.95344L12.0562 7.76966C11.6155 7.39196 11.076 7.1483 10.5012 7.06747C9.92652 6.98664 9.34068 7.07201 8.81294 7.31351C8.28519 7.555 7.8376 7.94253 7.52307 8.43029C7.20854 8.91805 7.0402 9.48566 7.03796 10.066C7.03572 10.6464 7.19967 11.2153 7.51042 11.7054C7.82117 12.1956 8.26576 12.5866 8.79162 12.8322C9.31748 13.0777 9.90265 13.1676 10.478 13.0912C11.0533 13.0148 11.5947 12.7753 12.0383 12.4011L13.581 14.2293C12.7884 14.8981 11.8209 15.326 10.7928 15.4625C9.7648 15.599 8.71916 15.4384 7.7795 14.9996C6.83984 14.5608 6.04542 13.8621 5.49014 12.9863C4.93485 12.1104 4.64191 11.0938 4.64592 10.0568C4.64992 9.01972 4.95071 8.00549 5.51274 7.13393C6.07478 6.26236 6.87456 5.5699 7.81758 5.13837Z",fill:"currentColor"})]})),Ae=t("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,cursor:"pointer",color:"#A0ABFF",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,flexShrink:0,transition:"opacity 0.15s ease","&:hover":{opacity:.8},"&:hover .credits-tooltip":{opacity:1,pointerEvents:"auto"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2,borderRadius:4},"&& svg":{flexShrink:0},[A]:{fontSize:12,letterSpacing:-.6,"&& svg":{width:14,height:14}},[x]:{fontSize:16,letterSpacing:-.8,"&& svg":{width:20,height:20}}}),Qt=t("div")({position:"absolute",top:"calc(100% + 4px)",left:"50%",transform:"translateX(-50%)",background:"#43404A",padding:8,borderRadius:8,boxShadow:"0 2px 8px rgba(0,0,0,0.3)",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:1.4,color:"#ECEBED",whiteSpace:"normal",textAlign:"center",minWidth:140,opacity:0,pointerEvents:"none",transition:"opacity 0.15s ease",zIndex:10}),eo=t(Ae)({color:r.softWhite}),to=t("div")({display:"flex",alignItems:"center",flexShrink:0,[A]:{gap:4},[x]:{gap:12}}),ge=t("button")(({clickable:o})=>({all:"unset",display:"flex",alignItems:"center",cursor:o?"pointer":"default",color:r.softWhite,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,flexShrink:0,transition:"opacity 0.15s ease","&:hover":o?{opacity:.8}:void 0,"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2,borderRadius:4},[A]:{gap:2,fontSize:12,letterSpacing:-.6,"& svg":{width:14,height:14,flexShrink:0}},[x]:{gap:4,fontWeight:600,fontSize:16,letterSpacing:-.8,"& svg":{width:20,height:20,flexShrink:0}}})),oo=t("div")({display:"flex",flexShrink:0,[A]:{flexDirection:"column-reverse",alignItems:"flex-end",justifyContent:"center",gap:4},[x]:{flexDirection:"row",alignItems:"center",gap:24}});function no(o){const n=o-Date.now();return Math.max(0,Math.ceil(n/(1e3*60*60*24)))}const io=i.memo(function({isSignedIn:n,isSigningIn:l,isLoadingProfile:h=!1,address:f,avatar:w,i18n:b,notificationSlot:s,selectedChain:u,chains:a,onSelectChain:g,manaBalances:d,onClickBalance:c,showManaBalancesInNavbar:L=!1,creditsBalance:H,onClickCredits:q,shopCreditsBalance:N,onClickShopCredits:B,activePage:J,onToggleUserCard:F,onClickSignIn:U,onClickSignOut:T}){const j={...qe,...b},[I,Z]=i.useState(!1),[z,M]=i.useState(null),[Q,R]=i.useState(!1),O=i.useRef(null),W=i.useRef(null),_=i.useCallback(()=>{Z(m=>(m||(M(null),R(!1)),!m))},[]),V=i.useCallback(()=>{Z(!1)},[]),$=i.useCallback(m=>{W.current&&(clearTimeout(W.current),W.current=null),M(m),R(!1)},[]),P=i.useCallback(()=>{W.current=setTimeout(()=>{M(null)},300)},[]),S=i.useCallback(()=>{M(null)},[]),p=i.useCallback(()=>{R(m=>{const D=!m;return D&&(M(null),Z(!1)),F==null||F(D),D})},[F]),v=i.useCallback(()=>{R(!1)},[]);return i.useEffect(()=>{function m(D){const Ee=D.target;O.current&&!O.current.contains(Ee)&&(S(),v())}return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[S,v]),i.useEffect(()=>{const m=()=>{v(),S()};return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[v,S]),i.useEffect(()=>{function m(D){D.key==="Escape"&&(S(),v(),V())}return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[S,v,V]),i.useEffect(()=>(I?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[I]),e.jsxs(e.Fragment,{children:[e.jsxs(nt,{ref:O,children:[e.jsxs(it,{children:[e.jsx(lt,{href:"https://decentraland.org","aria-label":"Decentraland Home",children:e.jsx(Ce,{})}),e.jsx(Me,{desktopDropdown:z,onOpenDropdown:$,onScheduleCloseDropdown:P,activePage:J,i18n:j})]}),e.jsxs(rt,{children:[n&&e.jsxs(st,{children:[(H||N!==void 0||L&&d)&&e.jsxs(oo,{children:[H&&e.jsxs(Ae,{onClick:q,"aria-label":`${k(H.balance)} credits`,children:[e.jsx(Jt,{}),k(H.balance),e.jsxs(Qt,{className:"credits-tooltip",children:[j.creditsExpiringIn.replace("{days}",String(no(H.expiresAt))),e.jsx("br",{}),j.creditsValueNote]})]}),L&&d&&e.jsxs(to,{children:[d.ETHEREUM!==void 0&&e.jsxs(ge,{clickable:!!c,onClick:c?()=>c(G.Network.ETHEREUM):void 0,"aria-label":`${k(d.ETHEREUM)} MANA on Ethereum`,children:[e.jsx(be,{}),k(d.ETHEREUM)]}),d.MATIC!==void 0&&e.jsxs(ge,{clickable:!!c,onClick:c?()=>c(G.Network.MATIC):void 0,"aria-label":`${k(d.MATIC)} MANA on Polygon`,children:[e.jsx(we,{}),k(d.MATIC)]})]}),N!==void 0&&e.jsxs(eo,{onClick:B,"aria-label":`${k(N)} shop credits`,children:[e.jsx(Xe,{}),k(N)]})]}),s&&e.jsx("div",{onClick:()=>{R(!1),M(null)},children:s}),e.jsx(Se,{isLoadingProfile:h,address:f,avatar:w,userCardOpen:Q,onToggleUserCard:p,onClickSignOut:T,selectedChain:u,chains:a,onSelectChain:g,manaBalances:L?void 0:d,onClickBalance:L?void 0:c,i18n:j})]}),!n&&e.jsx(dt,{onClick:U,disabled:l,children:l?j.signingIn:j.signIn}),e.jsx(at,{onClick:_,"aria-label":I?"Close menu":"Open menu","aria-expanded":I,children:I?e.jsx(We,{}):e.jsx(Re,{})})]})]}),e.jsx(Ie,{open:I,onClose:V,i18n:j})]})});io.displayName="Navbar";const go=t("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,color:r.white,cursor:"pointer",flexShrink:0,borderRadius:4,"&.has-unread":{animation:`${ot} 0.8s`,animationIterationCount:4},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:24,height:24}}),Co=t("span")({position:"absolute",top:-4,right:-6,minWidth:16,height:16,borderRadius:8,backgroundColor:C.primary,color:"#fff",fontSize:10,fontWeight:700,fontFamily:"Inter, Helvetica, Arial, sans-serif",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 4px",lineHeight:1,pointerEvents:"none"}),mo=t("div")({position:"relative"}),bo=t("div")({position:"absolute",top:"100%",right:-12,marginTop:16,width:390,maxHeight:"70vh",zIndex:1102,background:"rgba(38, 38, 38, 0.8)",backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:12,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden",paddingTop:12,paddingBottom:24,animation:`${X} 0.15s ease forwards`,[A]:{position:"fixed",top:64,left:0,right:0,width:"auto",maxHeight:"calc(100vh - 64px)",borderRadius:0}}),wo=t("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 12px 12px 24px",borderBottom:"0.5px solid #5E5B67"}),vo=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:"#FCFCFC"}),Lo=t("div")({display:"flex",flexDirection:"column",overflowY:"auto",flex:1}),jo=t("div")({display:"flex",alignItems:"flex-start",gap:8,padding:"8px 16px",borderRadius:8,cursor:"pointer",transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}}),ko=t("div")({width:56,height:56,borderRadius:"50%",backgroundColor:"rgba(103, 99, 112, 0.4)",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden","& img, & svg":{width:48,height:48,objectFit:"cover"}}),yo=t("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0,flex:1}),Io=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:"#FCFCFC",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Mo=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:"20px",color:"#ECEBED",maxWidth:280,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),So=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,color:"#A09BA8"}),Ao=t("div")({width:8,height:8,borderRadius:4,backgroundColor:"#FF2D55",flexShrink:0,alignSelf:"center"}),Eo=t("div")({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px 80px",gap:8,color:r.gray3,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:16,textAlign:"center"});export{go as BellButton,io as Navbar,Co as NotificationBadge,Ao as NotificationDot,Eo as NotificationEmpty,wo as NotificationHeader,yo as NotificationItemContent,Mo as NotificationItemDescription,ko as NotificationItemImage,So as NotificationItemTime,Io as NotificationItemTitle,Lo as NotificationList,jo as NotificationListItem,bo as NotificationPanel,vo as NotificationTitle,mo as NotificationWrapper};
1
+ import{r as i,j as e,R as He}from"./react-BYHuwl8r.js";import{n as G}from"./dcl-schemas-CmtP3U6y.js";import{c as y}from"./index-sAHvnz2N.js";import{n as t,S as Fe}from"./emotion-styled.browser.esm-ftlGzXhy.js";import{w as ie,c0 as C,c1 as r}from"./index-BpBLqmY7.js";import"./clsx-WwvpwSg0.js";import"./styled-CoVCpn99.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";function k(o){return Math.floor(o).toLocaleString("en-US")}const Ce=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45 89.9999C69.8528 89.9999 89.9999 69.8528 89.9999 45C89.9999 20.1472 69.8528 0 45 0C20.1472 0 0 20.1472 0 45C0 69.8528 20.1472 89.9999 45 89.9999Z",fill:"url(#dcl-nav0)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 80.9996C25.515 86.6471 34.875 89.9996 45 89.9996C55.125 89.9996 64.485 86.6471 72 80.9996H18Z",fill:"#FF2D55"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 71.9996C11.565 75.397 14.603 78.435 18 80.9996H72C75.398 78.435 78.435 75.397 81 71.9996H9Z",fill:"#FFA25A"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 62.9997H3.758C5.153 66.2172 6.93 69.2322 9 71.9997H60.39V62.9997H60.368Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.883 29.25V63H60.008L31.883 29.25Z",fill:"url(#dcl-nav1)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.758 63H31.883V29.25L3.758 63Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 47.25V72H81L60.368 47.25Z",fill:"url(#dcl-nav2)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.757 72H60.367V47.25L39.757 72Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 40.5C66.58 40.5 71.618 35.463 71.618 29.25C71.618 23.037 66.58 18 60.368 18C54.154 18 49.118 23.037 49.118 29.25C49.118 35.463 54.154 40.5 60.368 40.5Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.882 22.5C34.989 22.5 37.507 19.981 37.507 16.875C37.507 13.768 34.989 11.25 31.882 11.25C28.776 11.25 26.257 13.768 26.257 16.875C26.257 19.981 28.776 22.5 31.882 22.5Z",fill:"#FFC95B"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"dcl-nav0",x1:"45",y1:"-18.64",x2:"-18.64",y2:"45",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FF2D55"}),e.jsx("stop",{offset:"1",stopColor:"#FFBC5B"})]}),e.jsxs("linearGradient",{id:"dcl-nav1",x1:"31.873",y1:"29.25",x2:"31.873",y2:"63",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]}),e.jsxs("linearGradient",{id:"dcl-nav2",x1:"60.36",y1:"47.25",x2:"60.36",y2:"72",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]})]})]})}),Re=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M3 6H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 12H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 18H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),We=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),re=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),De=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M15 12.5L10 7.5L5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),me=i.memo(function(n){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 2H14V6",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66699 9.33333L14.0003 2",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ne=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M7.5 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.333 14.1667L17.4997 10.0001L13.333 5.83337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M17.5 10H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),se=i.memo(function(n){return e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",stroke:"currentColor",strokeWidth:"1"}),e.jsx("path",{d:"M8.5 3.5V2C8.5 1.17157 7.82843 0.5 7 0.5H2C1.17157 0.5 0.5 1.17157 0.5 2V7C0.5 7.82843 1.17157 8.5 2 8.5H3.5",stroke:"currentColor",strokeWidth:"1"})]})}),Ue=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 10C11.3807 10 12.5 8.88071 12.5 7.5C12.5 6.11929 11.3807 5 10 5C8.61929 5 7.5 6.11929 7.5 7.5C7.5 8.88071 8.61929 10 10 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 16.25C5 14.1789 7.23858 12.5 10 12.5C12.7614 12.5 15 14.1789 15 16.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ze=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M15.8333 7.5L13.3333 3.33337H6.66667L4.16667 7.5L2.5 16.6667H17.5L15.8333 7.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66667 3.33337L7.5 7.50004L10 9.16671L12.5 7.50004L13.3333 3.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Oe=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.1666 10C16.1666 9.58337 16.1249 9.16671 16.0416 8.75004L17.9166 7.27087L16.4166 4.72921L14.1666 5.52087C13.5416 4.97921 12.8124 4.56254 11.9999 4.31254L11.6666 1.66671H8.33325L7.99992 4.31254C7.18742 4.56254 6.45825 4.97921 5.83325 5.52087L3.58325 4.72921L2.08325 7.27087L3.95825 8.75004C3.87492 9.16671 3.83325 9.58337 3.83325 10C3.83325 10.4167 3.87492 10.8334 3.95825 11.25L2.08325 12.7292L3.58325 15.2709L5.83325 14.4792C6.45825 15.0209 7.18742 15.4375 7.99992 15.6875L8.33325 18.3334H11.6666L11.9999 15.6875C12.8124 15.4375 13.5416 15.0209 14.1666 14.4792L16.4166 15.2709L17.9166 12.7292L16.0416 11.25C16.1249 10.8334 16.1666 10.4167 16.1666 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ve=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M5 1.66663L2.5 4.99996V16.6666C2.5 17.1087 2.67559 17.5326 2.98816 17.8452C3.30072 18.1577 3.72464 18.3333 4.16667 18.3333H15.8333C16.2754 18.3333 16.6993 18.1577 17.0118 17.8452C17.3244 17.5326 17.5 17.1087 17.5 16.6666V4.99996L15 1.66663H5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.3334 8.33337C13.3334 9.21743 12.9822 10.0653 12.3571 10.6904C11.7319 11.3155 10.8841 11.6667 10.0001 11.6667C9.11603 11.6667 8.26818 11.3155 7.64306 10.6904C7.01794 10.0653 6.66675 9.21743 6.66675 8.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})});i.memo(function(n){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M12 21.75C13.1 21.75 14 20.85 14 19.75H10C10 20.85 10.89 21.75 12 21.75ZM18 15.75V10.75C18 7.68 16.36 5.11 13.5 4.43V3.75C13.5 2.92 12.83 2.25 12 2.25C11.17 2.25 10.5 2.92 10.5 3.75V4.43C7.63 5.11 6 7.67 6 10.75V15.75L4 17.75V18.75H20V17.75L18 15.75Z",fill:"#FCFCFC"})})});const le=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40Z",fill:"#25292E"}),e.jsx("path",{d:"M11.7 21.1L20 26.0143L28.2857 21.1L20 32.8L11.7 21.1Z",fill:"white",fillOpacity:"0.8"}),e.jsx("path",{d:"M20 24.1857L11.7 19.2714L20 6.20001L28.3 19.2714L20 24.1857Z",fill:"white"})]})}),Be=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{width:"40",height:"40",rx:"20",fill:"white"}),e.jsx("path",{d:"M20 0C9 0 0 9 0 20C0 31 8.85714 40 20 40C31.1429 40 40 31.1429 40 20C40 8.85714 31 0 20 0ZM31.8571 20.1429C31.8571 20.4286 31.7143 20.8571 31.4286 21L25.7143 24.2857C25.4286 24.4286 25 24.4286 24.7143 24.2857L22.5714 23V20L25.1429 21.5714L29.1429 19.2857V14.7143L25.1429 12.4286L21.4286 14.5714V26.2857C21.4286 26.5714 21.2857 27 21 27.1429L15.2857 30.4286C15 30.5714 14.5714 30.5714 14.2857 30.4286L8.57143 27.1429C8.28571 27 8.14286 26.7143 8.14286 26.2857V19.7143C8.14286 19.4286 8.28571 19 8.57143 18.8571L14.2857 15.5714C14.5714 15.4286 15 15.4286 15.2857 15.5714L17.4286 16.8571V20L14.8571 18.4286L10.8571 20.7143V25.2857L14.8571 27.5714L18.8571 25.2857V13.7143C18.8571 13.4286 19 13 19.2857 12.8571L25 9.57143C25.2857 9.42857 25.7143 9.42857 26 9.57143L31.4286 12.8571C31.7143 13 31.8571 13.2857 31.8571 13.7143V20.1429Z",fill:"#8247E5"})]})}),Te=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 1C30.4286 1 39 9.57143 39 20C39 30.4286 30.4286 39 20 39C9.57143 39 1 30.4286 1 20C1 9.57143 9.57143 1 20 1Z",fill:"#2D374B",stroke:"#96BEDC",strokeWidth:"1.4"}),e.jsx("path",{d:"M16.4286 10.7143C14.2857 10.7143 12 11.2857 11 13L2 27L3 29L5 32L19 10.7143H16.4286Z",fill:"white"}),e.jsx("path",{d:"M20.8571 10.7143L7 33.5L9 36L11.5 37L27.4286 10.7143H20.8571Z",fill:"white"}),e.jsx("path",{d:"M20.1428 26.5714L27.5 37.5L32.5 34L23.8571 20.1429L20.1428 26.5714ZM36.8571 28.8571L38 27.5L28.4286 12.5714L25.1428 18.1429L34.5 33L36.4286 29.8571C36.7143 29.5714 36.8571 29.2857 37 28.8571C36.8571 29 36.8571 28.8571 36.8571 28.8571Z",fill:"#28A0F0"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0731 2.14834C10.1438 2.14834 2.14834 10.1438 2.14834 20.0731C2.14834 29.9915 10.133 37.8517 20.0731 37.8517C29.8616 37.8517 37.8517 29.9969 37.8517 20.0731C37.8517 10.133 29.9915 2.14834 20.0731 2.14834ZM0 20.0731C0 8.95736 8.95736 0 20.0731 0C31.1996 0 40 8.96822 40 20.0731C40 31.1942 31.0372 40 20.0731 40C8.96822 40 0 31.1996 0 20.0731Z",fill:"#96BEDC"})]})}),ze=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40C31.0457 40 40 31.0457 40 20Z",fill:"#FF3131"}),e.jsx("path",{d:"M13.1714 26.2143C17.0286 26.2143 20.1143 23.0714 20.1143 18.5286C20.1143 15.4 18.0143 13.1 14.4286 13.1C10.5429 13.1 7.5 16.2429 7.5 20.7857C7.5 23.9286 9.64286 26.2143 13.1714 26.2143ZM14.3571 15.7143C15.8714 15.7143 16.8429 16.8714 16.8429 18.7143C16.8429 21.4286 15.2571 23.6 13.2571 23.6C11.7429 23.6 10.7714 22.4286 10.7714 20.6C10.7714 17.9 12.3571 15.7143 14.3429 15.7143H14.3571ZM23.4714 13.3143L20.7857 26H24.0143L24.8 22.2857H26.9C30.3714 22.2857 32.6286 20.3143 32.6286 17.1429C32.6286 14.8429 30.9571 13.3143 28.2 13.3143H23.4857H23.4714ZM26.1857 15.8H27.5286C28.7143 15.8 29.3857 16.3429 29.3857 17.4286C29.3857 18.8571 28.4143 19.8571 26.9 19.8571H25.3143L26.1714 15.8H26.1857Z",fill:"white"})]})}),_e=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 0C31.0471 0 40 8.95286 40 20C40 31.0471 31.0471 40 20 40C8.95286 40 0 31.0471 0 20C0 8.95286 8.95286 0 20 0Z",fill:"#F0B90B"}),e.jsx("path",{d:"M10.9914 20L11.0057 25.2886L15.5 27.9314V31.0286L8.37714 26.8514V18.4543L10.9914 20ZM10.9914 14.7114V17.7929L8.37428 16.2457V13.1629L10.9914 11.6157L13.6214 13.1629L10.9929 14.7114H10.9914ZM17.3771 13.1629L19.9943 11.6157L22.6229 13.1629L19.9943 14.7114L17.3771 13.1629Z",fill:"white"}),e.jsx("path",{d:"M12.8829 24.1929V21.0957L15.5 22.6443V25.7257L12.8829 24.1929ZM17.3771 29.0414L19.9943 30.59L22.6229 29.0414V32.1229L19.9943 33.6714L17.3771 32.1229V29.0414ZM26.3771 13.1629L28.9943 11.6157L31.6229 13.1629V16.2457L28.9943 17.7929V14.7114L26.3771 13.1629ZM28.9943 25.2886L29.0086 20L31.6243 18.4514V26.85L24.5014 31.0272V27.9314L28.9943 25.2886Z",fill:"white"}),e.jsx("path",{d:"M27.1171 24.1928L24.5 25.7257V22.6443L27.1171 21.0957V24.1928Z",fill:"white"}),e.jsx("path",{d:"M27.1171 15.8072L27.1314 18.9043L22.6243 21.5472V26.85L20.0086 28.3829L17.3914 26.85V21.5486L12.8843 18.9043V15.8072L15.5129 14.26L19.9914 16.9172L24.4986 14.26L27.1271 15.8072H27.1171ZM12.8829 10.5214L19.9929 6.32858L27.1171 10.5214L24.5 12.0686L19.9943 9.41144L15.5 12.0686L12.8829 10.5214Z",fill:"white"})]})}),$e=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#E84142"}),e.jsx("path",{d:"M27.0552 20.5197C27.7484 19.3226 28.8691 19.3226 29.5592 20.5197L33.8738 28.0946C34.567 29.291 34 30.2674 32.612 30.2674H23.9211C22.5513 30.2674 21.9842 29.291 22.6593 28.0946L27.0552 20.5197ZM18.709 5.93692C19.4014 4.74055 20.504 4.74055 21.1972 5.93692L22.1577 7.67194L24.4251 11.6562C24.6972 12.2182 24.8386 12.8346 24.8386 13.459C24.8386 14.0835 24.6972 14.6998 24.4251 15.2618L16.8186 28.4409C16.479 28.9688 16.0198 29.4093 15.4781 29.7267C14.9365 30.044 14.3277 30.2292 13.7011 30.2674H7.38566C6.00001 30.2674 5.43298 29.3068 6.12383 28.0946L18.709 5.93692Z",fill:"white"})]})}),Pe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#13B5EC"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 16.125L26 13.5V18.75L21.5 16.125ZM26 27.375L20 30.875L14 27.375V21.25L20 24.75L26 21.25V27.375ZM14 13.5L18.5 16.125L14 18.75V13.5ZM20.75 17.375L25.25 20L20.75 22.625V17.375ZM19.25 22.625L14.75 20L19.25 17.375V22.625ZM25.25 12.25L20 15.25L14.75 12.25L20 9.125L25.25 12.25ZM12.5 11.75V28.125L20 32.375L27.5 28.125V11.75L20 7.5L12.5 11.75Z",fill:"white"})]})}),Ge=new Set([1,5,42,4,3,11155111]),Ke=new Set([137,80002,80001]),Ye={56:_e,10:ze,42161:Te,250:Pe,43114:$e};function ae({chainId:o,...n}){const l=Ye[o];return l?e.jsx(l,{...n}):Ge.has(o)?e.jsx(le,{...n}):Ke.has(o)?e.jsx(Be,{...n}):e.jsx(le,{...n})}const be=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M9.864 6.952C9.864 4.968 8.264 3.32 6.28 3.32C4.296 3.32 2.696 4.968 2.696 6.952C2.696 8.92 4.296 10.52 6.28 10.52C8.264 10.52 9.864 8.92 9.864 6.952ZM9.032 6.952C9.032 8.456 7.688 9.688 6.28 9.688C4.728 9.688 3.528 8.488 3.528 6.952C3.528 5.432 4.728 4.152 6.28 4.152C7.704 4.152 9.032 5.432 9.032 6.952ZM12.248 10.424V3.544L6.28 0.12L0.312 3.544V10.424L6.28 13.848L12.248 10.424ZM11.192 9.832L6.296 12.632L1.368 9.832V4.184L6.28 1.336L11.192 4.184V9.832Z",fill:"#FF2D55"})})}),we=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0L24 12L12 24L0 12L12 0ZM12.0002 3.36001L20.6402 12L12.0002 20.64L3.36023 12L12.0002 3.36001ZM12.0009 16.32C14.3868 16.32 16.3209 14.3859 16.3209 12C16.3209 9.61415 14.3868 7.68002 12.0009 7.68002C9.61507 7.68002 7.68094 9.61415 7.68094 12C7.68094 14.3859 9.61507 16.32 12.0009 16.32Z",fill:"#FCFCFC"})})}),Xe=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M13.1318 0.891714L18.5 6.29015V14.0226L13.125 19.5831H6.26758L0.891602 14.0216V6.29113L6.26074 0.891714H13.1318Z",stroke:"currentColor",strokeWidth:"1.78379"}),e.jsx("path",{d:"M7.81758 5.13837C8.7606 4.70684 9.80743 4.55428 10.8344 4.69871C11.8613 4.84315 12.8255 5.27853 13.6129 5.95344L12.0562 7.76966C11.6155 7.39196 11.076 7.1483 10.5012 7.06747C9.92652 6.98664 9.34068 7.07201 8.81294 7.31351C8.28519 7.555 7.8376 7.94253 7.52307 8.43029C7.20854 8.91805 7.0402 9.48566 7.03796 10.066C7.03572 10.6464 7.19967 11.2153 7.51042 11.7054C7.82117 12.1956 8.26576 12.5866 8.79162 12.8322C9.31748 13.0777 9.90265 13.1676 10.478 13.0912C11.0533 13.0148 11.5947 12.7753 12.0383 12.4011L13.581 14.2293C12.7884 14.8981 11.8209 15.326 10.7928 15.4625C9.7648 15.599 8.71916 15.4384 7.7795 14.9996C6.83984 14.5608 6.04542 13.8621 5.49014 12.9863C4.93485 12.1104 4.64191 11.0938 4.64592 10.0568C4.64992 9.01972 4.95071 8.00549 5.51274 7.13393C6.07478 6.26236 6.87456 5.5699 7.81758 5.13837Z",fill:"currentColor"})]})}),qe={signIn:"SIGN IN",signingIn:"SIGNING IN...",whatsOn:"Explore",shop:"Shop",shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",names:"Names",land:"Land",merch:"Merch",create:"Create",createInDecentraland:"Create in Decentraland",publishWearablesEmotes:"Publish Wearables & Emotes",publishLand:"Manage Land",creatorDocumentation:"Creator Documentation",learn:"Learn",getStarted:"Get Started",startCreating:"Start Creating",seeWhatsNew:"See What's New",viewProfile:"View Profile",myAssets:"My Assets",accountSettings:"Account Settings",marketplaceAuthorizations:"Marketplace Authorizations",walletAddress:"User ID",addressCopied:"Copied!",logout:"Log Out",creditsExpiringIn:"Expiring in {days} days",creditsValueNote:"(1 Credit = 1 MANA in value)"};function Je(){const o=y.get("SHOP_URL"),n=y.get("BUILDER_URL"),l=y.get("EVENTS_URL"),h=y.get("CREATE_URL"),f=y.get("BLOG_URL"),w=y.get("MARKETPLACE_LANDS_URL");return{whatsOn:{label:"whatsOn",url:l},shop:{label:"shop",items:[{label:"shopAll",url:o},{label:"wearables",url:`${o}/items?category=wearable`},{label:"emotes",url:`${o}/items?category=emote`},{label:"names",url:`${o}/items?category=names`},{label:"land",url:w},{label:"merch",url:"https://store.decentraland.org/",isExternal:!0}]},create:{label:"create",items:[{label:"createInDecentraland",url:h},{label:"publishWearablesEmotes",url:`${n}/collections`},{label:"publishLand",url:`${n}/land`},{label:"creatorDocumentation",url:"https://docs.decentraland.org/creator",isExternal:!0}]},learn:{label:"learn",url:f}}}let ee=null;function ve(){return ee||(ee=Je()),ee}let te=null;function Qe(){return te||(te=[{label:"viewProfile",url:y.get("PROFILE_URL"),icon:"account"},{label:"myAssets",url:y.get("MARKETPLACE_MY_ASSETS_URL"),icon:"wearable"},{label:"accountSettings",url:y.get("ACCOUNT_URL"),icon:"settings"},{label:"marketplaceAuthorizations",url:y.get("MARKETPLACE_SETTINGS_URL"),icon:"shopping"}]),te}const Le=["shop","create"],je="Inter, Helvetica, Arial, sans-serif",A="@media (max-width: 991px)",x="@media (min-width: 992px)",et={navbar:1100},tt="0px 1.333px 24px rgba(0,0,0,0.12), 0px 8px 13.333px rgba(0,0,0,0.14), 0px 4px 6.667px rgba(0,0,0,0.2)",K="rgba(38, 38, 38, 0.8)",ke="0.5px solid #5E5B67",Y="0 2px 20px 16px rgba(0, 0, 0, 0.25)",E="blur(12.5px)",ye=ie({"0%":{opacity:1},"50%":{opacity:.5},"100%":{opacity:1}}),X=ie({from:{opacity:0},to:{opacity:1}}),ot=ie({"0%, 100%":{transform:"rotate(0deg)"},"25%":{transform:"rotate(8deg)"},"50%":{transform:"rotate(-8deg)"},"75%":{transform:"rotate(4deg)"}}),nt=t("nav")({position:"fixed",top:0,left:0,right:0,zIndex:et.navbar,fontFamily:je,display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:-1,background:"rgba(22, 21, 24, 0.75)",boxShadow:tt,backdropFilter:"saturate(1.8) blur(20px)",WebkitBackdropFilter:"saturate(1.8) blur(20px)",transition:"background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease"},[A]:{height:64,padding:"12px 16px"},[x]:{height:92,padding:"16px 54px","&::before":{background:"rgba(22, 21, 24, 0.4)"}}}),it=t("div")({display:"flex",alignItems:"center",[A]:{gap:12},[x]:{gap:48},"& .mobile-only":{display:"flex",[x]:{display:"none"}},"& .desktop-only":{display:"none",[x]:{display:"flex"}}}),rt=t("div")({display:"flex",alignItems:"center",gap:16,[x]:{gap:48}}),st=t("div")({display:"flex",alignItems:"center",gap:12,[x]:{gap:24}}),lt=t("a")({display:"flex",alignItems:"center",flexShrink:0,width:40,height:40,"& svg":{width:"100%",height:"100%"}}),at=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:8,color:r.white,cursor:"pointer",flexShrink:0,transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.15)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.2)"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},[x]:{display:"none"}}),dt=t("button")({all:"unset",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 22px",border:`1px solid ${r.softWhite}`,borderRadius:6,fontFamily:je,fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:r.softWhite,cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)",borderColor:"rgba(255, 255, 255, 0.7)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.12)"},"&:disabled":{opacity:.5,pointerEvents:"none"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2}}),ct=t("div")(({open:o})=>({position:"fixed",top:64,left:0,right:0,bottom:0,zIndex:1099,pointerEvents:o?"auto":"none",backgroundColor:o?"rgba(0, 0, 0, 0.3)":"transparent",transition:"background-color 0.25s ease",[x]:{display:"none"}})),pt=t("div")(({open:o})=>({position:"fixed",top:64,left:0,right:0,zIndex:1100,maxHeight:o?"calc(100vh - 64px)":0,overflowY:"auto",background:K,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:o?Y:"none",padding:o?12:"0 12px",transition:"max-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease",[x]:{display:"none"}})),oe=t("div")({borderBottom:"0.5px solid rgba(255, 255, 255, 0.1)"}),de=t("a")({display:"flex",alignItems:"center",padding:"24px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:r.white,textDecoration:"none","&:hover":{color:r.gray5},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2}}),ht=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"24px 16px",boxSizing:"border-box",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:r.white,cursor:"pointer","&:hover":{color:r.gray5},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:20,height:20,flexShrink:0,transition:"transform 0.2s ease"}}),ut=t("div")(({open:o})=>({maxHeight:o?500:0,overflow:"hidden",transition:"max-height 0.25s ease"})),ft=t("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray4,textDecoration:"none","&:hover":{color:r.white},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),Ie=i.memo(function({open:n,onClose:l,i18n:h}){const f=ve(),[w,b]=i.useState(null),s=i.useCallback(u=>{b(a=>a===u?null:u)},[]);return e.jsxs(e.Fragment,{children:[e.jsx(ct,{open:n,onClick:l}),e.jsxs(pt,{open:n,role:"navigation","aria-label":"Mobile navigation",children:[e.jsx(oe,{children:e.jsx(de,{href:f.whatsOn.url,children:h[f.whatsOn.label]})}),Le.map(u=>{var d;const a=f[u],g=w===u;return e.jsxs(oe,{children:[e.jsxs(ht,{onClick:()=>s(u),"aria-expanded":g,children:[h[a.label],g?e.jsx(De,{}):e.jsx(re,{})]}),e.jsx(ut,{open:g,children:(d=a.items)==null?void 0:d.map(c=>e.jsxs(ft,{href:c.url,target:c.isExternal?"_blank":void 0,rel:c.isExternal?"noopener noreferrer":void 0,children:[h[c.label],c.isExternal&&e.jsx(me,{})]},c.label))})]},u)}),e.jsx(oe,{children:e.jsx(de,{href:f.learn.url,children:h[f.learn.label]})})]})]})});Ie.displayName="MobileMenu";const xt=t("div")({display:"none",[x]:{display:"flex",alignItems:"center",gap:24}}),gt=t("button")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:r.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:20,height:20,transition:"transform 0.2s ease",flexShrink:0}}),ce=t("a")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:r.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2}}),Ct=t(gt)({paddingRight:16}),mt=t("div")({position:"relative",paddingBottom:8,marginBottom:-8,cursor:"pointer"}),bt=t("div")({position:"absolute",top:"100%",left:0,marginTop:2,minWidth:220,background:K,backdropFilter:E,WebkitBackdropFilter:E,border:ke,borderRadius:12,boxShadow:Y,padding:12,animation:`${X} 0.15s ease forwards`}),wt=t("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"8px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:r.gray4,textDecoration:"none",borderRadius:12,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:r.white},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),Me=i.memo(function({desktopDropdown:n,onOpenDropdown:l,onScheduleCloseDropdown:h,activePage:f,i18n:w}){const b=ve();return e.jsxs(xt,{children:[e.jsx(ce,{href:b.whatsOn.url,className:f==="whatsOn"?"active":void 0,children:w[b.whatsOn.label]}),Le.map(s=>{var u;return e.jsxs(mt,{onMouseEnter:()=>l(s),onMouseLeave:h,children:[e.jsxs(Ct,{className:f===s?"active":void 0,"aria-expanded":n===s,"aria-haspopup":"true",onClick:()=>{var g;const a=(g=b[s].items)==null?void 0:g[0];a&&window.open(a.url,"_self")},children:[w[b[s].label],e.jsx(re,{style:{transform:n===s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),n===s&&e.jsx(bt,{children:(u=b[s].items)==null?void 0:u.map(a=>e.jsxs(wt,{href:a.url,target:a.isExternal?"_blank":void 0,rel:a.isExternal?"noopener noreferrer":void 0,children:[w[a.label],a.isExternal&&e.jsx(me,{})]},a.label))})]},s)}),e.jsx(ce,{href:b.learn.url,className:f==="learn"?"active":void 0,children:w[b.learn.label]})]})});Me.displayName="NavLinks";const vt=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,borderRadius:100,backgroundColor:"#FF4BED",border:"2px solid rgba(255, 255, 255, 0.5)",overflow:"hidden",[A]:{width:40,height:40},[x]:{width:48,height:48},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"&.loading":{animation:`${ye} 1.5s ease-in-out infinite`}}),Lt=t("img")({borderRadius:100,objectFit:"cover",width:"100%",height:"100%"}),jt=t("div")({position:"relative"}),kt=t("div")({position:"fixed",top:92,right:54,zIndex:1201,background:K,backdropFilter:E,WebkitBackdropFilter:E,border:ke,borderRadius:12,boxShadow:Y,display:"none",padding:12,gap:24,animation:`${X} 0.15s ease forwards`,minWidth:484,[x]:{display:"flex"}}),yt=t("div")({width:151,minHeight:240,borderRadius:12,border:"0.5px solid #c640cd",background:"linear-gradient(180deg, rgba(198, 64, 205, 0.2) 0%, rgba(105, 31, 169, 0.2) 100%)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0}),It=t("img")({width:"100%",height:"auto",objectFit:"contain",objectPosition:"center"}),pe=t("div")({display:"flex",flexDirection:"column",paddingRight:12,paddingTop:4,paddingBottom:4,flex:1,minWidth:0,[A]:{gap:12}}),Mt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:r.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),St=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.gray4}),At=t("div")({display:"flex",alignItems:"center",gap:8,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.softWhite,lineHeight:1.75}),Et=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:r.softWhite,opacity:.7,transition:"opacity 0.15s ease","&:hover":{opacity:1}}),Ht=t("a")({display:"flex",alignItems:"center",gap:12,padding:"8px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:r.gray4,textDecoration:"none",whiteSpace:"nowrap",cursor:"pointer",transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{color:r.white,backgroundColor:"rgba(255, 255, 255, 0.05)"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:20,height:20,flexShrink:0}}),ne=t("div")({height:.5,backgroundColor:"rgba(255, 255, 255, 0.1)",margin:"8px 0"}),Ft=t("button")({all:"unset",display:"flex",alignItems:"center",gap:12,padding:"12px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:r.gray4,cursor:"pointer",whiteSpace:"nowrap",transition:"color 0.15s ease","&:hover":{color:C.primary},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:18,height:18}}),Rt=t("button")(({selected:o})=>({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,width:"100%",boxSizing:"border-box",padding:"4px 16px",paddingLeft:16,borderRadius:4,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:12,fontWeight:400,letterSpacing:.46,textTransform:"uppercase",color:"white",cursor:"pointer",transition:"background-color 0.15s ease, color 0.15s ease",background:o?"rgba(255, 255, 255, 0.2)":"transparent","&:hover":{background:o?"rgba(255, 255, 255, 0.2)":"rgba(255, 255, 255, 0.1)"},"& svg":{width:16,height:16,flexShrink:0},...o?{"&::before":{content:'""',position:"absolute",left:4,top:"50%",transform:"translateY(-50%)",width:8,height:8,borderRadius:4,backgroundColor:"#34CE77"}}:{}})),Wt=t("div")({position:"fixed",top:64,left:0,right:0,zIndex:1201,background:K,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:Y,padding:"24px 12px",animation:`${X} 0.15s ease forwards`,[x]:{display:"none"}}),Dt=t("div")({display:"flex",alignItems:"center",gap:12,paddingBottom:8}),Nt=t("div")({width:73,height:73,borderRadius:100,border:"3px solid rgba(255, 255, 255, 0.5)",backgroundColor:"#FF4BED",overflow:"hidden",flexShrink:0,"&.loading":{animation:`${ye} 1.5s ease-in-out infinite`}}),Ut=t("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0}),Zt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:r.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Ot=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.gray4}),Vt=t("div")({display:"flex",alignItems:"center",gap:6,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:r.softWhite,lineHeight:1.75}),Bt=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:r.softWhite,transition:"opacity 0.15s ease","&:hover":{opacity:.7},"& svg":{width:20,height:20}}),Tt=t("div")({position:"absolute",top:"calc(100% + 4px)",left:0,minWidth:150,display:"flex",flexDirection:"column",gap:2,padding:4,background:r.gray0,backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:8,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",zIndex:10}),zt=t("div")({display:"flex",alignItems:"center",flexWrap:"wrap",gap:"12px 24px",paddingTop:8,width:"100%"}),_t=t("div")({display:"flex",alignItems:"center",gap:6}),he=t("div")(({clickable:o})=>({display:"flex",alignItems:"center",gap:2,cursor:o?"pointer":"default",color:"white"})),ue=t("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:16,letterSpacing:-.8,whiteSpace:"nowrap"}),$t=t("div")({position:"relative"}),Pt=t("div")({display:"flex",alignItems:"center",gap:8,width:150,padding:"4px 4px 4px 8px",backgroundColor:r.gray0,borderRadius:8,cursor:"pointer",whiteSpace:"nowrap",boxSizing:"border-box"}),Gt=t("div")({width:16,height:16,display:"flex",flexShrink:0}),Kt=t("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:"white",flex:1}),Yt={account:Ue,wearable:Ze,settings:Oe,shopping:Ve},Xt="https://peer.decentraland.org/content/contents/";function fe(o){if(o){if(o.startsWith("http://")||o.startsWith("https://")||o.startsWith("data:"))return o;if(/^[a-zA-Z0-9]+$/.test(o))return`${Xt}${o}`}}const qt={1:"Ethereum",11155111:"Sepolia",137:"Polygon",80002:"Amoy",56:"BSC",43114:"Avalanche",42161:"Arbitrum",10:"Optimism",250:"Fantom"};function xe(o){return qt[o]??`Chain ${o}`}const Se=i.memo(function({isLoadingProfile:n,address:l,avatar:h,userCardOpen:f,onToggleUserCard:w,onClickSignOut:b,selectedChain:s,chains:u,onSelectChain:a,manaBalances:g,onClickBalance:d,i18n:c}){var V,$,P,S;const L=fe(($=(V=h==null?void 0:h.avatar)==null?void 0:V.snapshots)==null?void 0:$.face256),[H,q]=i.useState(),[N,B]=i.useState(!1);i.useEffect(()=>{B(!1)},[L]);const J=L?H===L:!1,F=fe((S=(P=h==null?void 0:h.avatar)==null?void 0:P.snapshots)==null?void 0:S.body),U=(h==null?void 0:h.name)||(l?`${l.slice(0,6)}...${l.slice(-4)}`:""),T=l?`${l.slice(0,6)}...${l.slice(-4)}`:"",[j,I]=i.useState(!1),[Z,z]=i.useState(!1),M=i.useCallback(()=>{l&&navigator.clipboard.writeText(l).then(()=>{I(!0),setTimeout(()=>I(!1),2e3)}).catch(()=>{})},[l]),Q=i.useCallback(p=>{p!==s&&(a==null||a(p)),z(!1)},[s,a]),R=s!==void 0&&u&&u.length>0||g&&Object.keys(g).length>0,O=()=>R?e.jsxs(zt,{children:[g&&e.jsxs(_t,{children:[g.ETHEREUM!==void 0&&e.jsxs(he,{clickable:!!d,onClick:()=>d==null?void 0:d(G.Network.ETHEREUM),children:[e.jsx(be,{}),e.jsx(ue,{children:k(g.ETHEREUM)})]}),g.MATIC!==void 0&&e.jsxs(he,{clickable:!!d,onClick:()=>d==null?void 0:d(G.Network.MATIC),children:[e.jsx(we,{}),e.jsx(ue,{children:k(g.MATIC)})]})]}),s!==void 0&&u&&u.length>0&&e.jsxs($t,{children:[e.jsxs(Pt,{onClick:()=>z(p=>!p),children:[e.jsx(Gt,{children:e.jsx(ae,{chainId:s})}),e.jsx(Kt,{children:xe(s)}),e.jsx(re,{style:{width:20,height:20,flexShrink:0,color:"white",transform:Z?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),Z&&e.jsx(Tt,{role:"listbox","aria-label":"Select chain",children:u.map(p=>{const v=p===s;return e.jsxs(Rt,{selected:v,role:"option","aria-selected":v,onClick:()=>Q(p),children:[e.jsx(ae,{chainId:p}),xe(p)]},p)})})]})]}):null,W=()=>!L||N?e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",padding:6},children:e.jsx(Ce,{style:{width:"100%",height:"100%"}})}):e.jsx(Lt,{src:L,alt:"",onLoad:()=>q(L),onError:()=>B(!0),style:{opacity:J?1:0}}),_=()=>e.jsxs(e.Fragment,{children:[Qe().map(p=>{const v=Yt[p.icon];return e.jsxs(Ht,{href:p.url,children:[v&&e.jsx(v,{}),c[p.label]]},p.label)}),e.jsx(ne,{}),e.jsxs(Ft,{onClick:b,children:[e.jsx(Ne,{}),c.logout]})]});return e.jsxs(e.Fragment,{children:[e.jsxs(jt,{children:[e.jsx(vt,{onClick:w,"aria-label":"User menu","aria-expanded":f,"aria-haspopup":"true",className:n?"loading":void 0,children:!n&&W()}),f&&e.jsxs(kt,{onClick:p=>p.stopPropagation(),children:[e.jsx(yt,{children:F?e.jsx(It,{src:F,alt:""}):null}),e.jsxs(pe,{children:[e.jsxs("div",{style:{paddingLeft:16,paddingBottom:8,display:"flex",flexDirection:"column",gap:4},children:[e.jsx(Mt,{title:U,children:U}),e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(St,{children:c.walletAddress}),e.jsxs(At,{children:[j?c.addressCopied:T,e.jsx(Et,{onClick:M,"aria-label":"Copy address",children:e.jsx(se,{})})]})]}),O()]}),e.jsx(ne,{}),_()]})]})]}),f&&e.jsxs(Wt,{"data-mobile-user-card":!0,onClick:p=>p.stopPropagation(),children:[e.jsxs(Dt,{children:[e.jsx(Nt,{className:n?"loading":void 0,children:!n&&W()}),e.jsxs(Ut,{children:[e.jsx(Zt,{title:U,children:U}),e.jsx(Ot,{children:c.walletAddress}),e.jsxs(Vt,{children:[j?c.addressCopied:T,e.jsx(Bt,{onClick:M,"aria-label":"Copy address",children:e.jsx(se,{})})]}),O()]})]}),e.jsx(ne,{}),e.jsx(pe,{children:_()})]})]})});Se.displayName="UserCardPanel";const Jt=He.memo(o=>e.jsxs(Fe,{viewBox:"0 0 20 21",...o,children:[e.jsx("path",{d:"M13.1318 0.891714L18.5 6.29015V14.0226L13.125 19.5831H6.26758L0.891602 14.0216V6.29113L6.26074 0.891714H13.1318Z",stroke:"currentColor",strokeWidth:"1.78379",fill:"none"}),e.jsx("path",{d:"M7.81758 5.13837C8.7606 4.70684 9.80743 4.55428 10.8344 4.69871C11.8613 4.84315 12.8255 5.27853 13.6129 5.95344L12.0562 7.76966C11.6155 7.39196 11.076 7.1483 10.5012 7.06747C9.92652 6.98664 9.34068 7.07201 8.81294 7.31351C8.28519 7.555 7.8376 7.94253 7.52307 8.43029C7.20854 8.91805 7.0402 9.48566 7.03796 10.066C7.03572 10.6464 7.19967 11.2153 7.51042 11.7054C7.82117 12.1956 8.26576 12.5866 8.79162 12.8322C9.31748 13.0777 9.90265 13.1676 10.478 13.0912C11.0533 13.0148 11.5947 12.7753 12.0383 12.4011L13.581 14.2293C12.7884 14.8981 11.8209 15.326 10.7928 15.4625C9.7648 15.599 8.71916 15.4384 7.7795 14.9996C6.83984 14.5608 6.04542 13.8621 5.49014 12.9863C4.93485 12.1104 4.64191 11.0938 4.64592 10.0568C4.64992 9.01972 4.95071 8.00549 5.51274 7.13393C6.07478 6.26236 6.87456 5.5699 7.81758 5.13837Z",fill:"currentColor"})]})),Ae=t("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,cursor:"pointer",color:"#A0ABFF",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,flexShrink:0,transition:"opacity 0.15s ease","&:hover":{opacity:.8},"&:hover .credits-tooltip":{opacity:1,pointerEvents:"auto"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2,borderRadius:4},"&& svg":{flexShrink:0},[A]:{fontSize:12,letterSpacing:-.6,"&& svg":{width:14,height:14}},[x]:{fontSize:16,letterSpacing:-.8,"&& svg":{width:20,height:20}}}),Qt=t("div")({position:"absolute",top:"calc(100% + 4px)",left:"50%",transform:"translateX(-50%)",background:"#43404A",padding:8,borderRadius:8,boxShadow:"0 2px 8px rgba(0,0,0,0.3)",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:1.4,color:"#ECEBED",whiteSpace:"normal",textAlign:"center",minWidth:140,opacity:0,pointerEvents:"none",transition:"opacity 0.15s ease",zIndex:10}),eo=t(Ae)({color:r.softWhite}),to=t("div")({display:"flex",alignItems:"center",flexShrink:0,[A]:{gap:4},[x]:{gap:12}}),ge=t("button")(({clickable:o})=>({all:"unset",display:"flex",alignItems:"center",cursor:o?"pointer":"default",color:r.softWhite,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,flexShrink:0,transition:"opacity 0.15s ease","&:hover":o?{opacity:.8}:void 0,"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2,borderRadius:4},[A]:{gap:2,fontSize:12,letterSpacing:-.6,"& svg":{width:14,height:14,flexShrink:0}},[x]:{gap:4,fontWeight:600,fontSize:16,letterSpacing:-.8,"& svg":{width:20,height:20,flexShrink:0}}})),oo=t("div")({display:"flex",flexShrink:0,[A]:{flexDirection:"column-reverse",alignItems:"flex-end",justifyContent:"center",gap:4},[x]:{flexDirection:"row",alignItems:"center",gap:24}});function no(o){const n=o-Date.now();return Math.max(0,Math.ceil(n/(1e3*60*60*24)))}const io=i.memo(function({isSignedIn:n,isSigningIn:l,isLoadingProfile:h=!1,address:f,avatar:w,i18n:b,notificationSlot:s,selectedChain:u,chains:a,onSelectChain:g,manaBalances:d,onClickBalance:c,showManaBalancesInNavbar:L=!1,creditsBalance:H,onClickCredits:q,shopCreditsBalance:N,onClickShopCredits:B,activePage:J,onToggleUserCard:F,onClickSignIn:U,onClickSignOut:T}){const j={...qe,...b},[I,Z]=i.useState(!1),[z,M]=i.useState(null),[Q,R]=i.useState(!1),O=i.useRef(null),W=i.useRef(null),_=i.useCallback(()=>{Z(m=>(m||(M(null),R(!1)),!m))},[]),V=i.useCallback(()=>{Z(!1)},[]),$=i.useCallback(m=>{W.current&&(clearTimeout(W.current),W.current=null),M(m),R(!1)},[]),P=i.useCallback(()=>{W.current=setTimeout(()=>{M(null)},300)},[]),S=i.useCallback(()=>{M(null)},[]),p=i.useCallback(()=>{R(m=>{const D=!m;return D&&(M(null),Z(!1)),F==null||F(D),D})},[F]),v=i.useCallback(()=>{R(!1)},[]);return i.useEffect(()=>{function m(D){const Ee=D.target;O.current&&!O.current.contains(Ee)&&(S(),v())}return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[S,v]),i.useEffect(()=>{const m=()=>{v(),S()};return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[v,S]),i.useEffect(()=>{function m(D){D.key==="Escape"&&(S(),v(),V())}return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[S,v,V]),i.useEffect(()=>(I?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[I]),e.jsxs(e.Fragment,{children:[e.jsxs(nt,{ref:O,children:[e.jsxs(it,{children:[e.jsx(lt,{href:"https://decentraland.org","aria-label":"Decentraland Home",children:e.jsx(Ce,{})}),e.jsx(Me,{desktopDropdown:z,onOpenDropdown:$,onScheduleCloseDropdown:P,activePage:J,i18n:j})]}),e.jsxs(rt,{children:[n&&e.jsxs(st,{children:[(H||N!==void 0||L&&d)&&e.jsxs(oo,{children:[H&&e.jsxs(Ae,{onClick:q,"aria-label":`${k(H.balance)} credits`,children:[e.jsx(Jt,{}),k(H.balance),e.jsxs(Qt,{className:"credits-tooltip",children:[j.creditsExpiringIn.replace("{days}",String(no(H.expiresAt))),e.jsx("br",{}),j.creditsValueNote]})]}),L&&d&&e.jsxs(to,{children:[d.ETHEREUM!==void 0&&e.jsxs(ge,{clickable:!!c,onClick:c?()=>c(G.Network.ETHEREUM):void 0,"aria-label":`${k(d.ETHEREUM)} MANA on Ethereum`,children:[e.jsx(be,{}),k(d.ETHEREUM)]}),d.MATIC!==void 0&&e.jsxs(ge,{clickable:!!c,onClick:c?()=>c(G.Network.MATIC):void 0,"aria-label":`${k(d.MATIC)} MANA on Polygon`,children:[e.jsx(we,{}),k(d.MATIC)]})]}),N!==void 0&&e.jsxs(eo,{onClick:B,"aria-label":`${k(N)} shop credits`,children:[e.jsx(Xe,{}),k(N)]})]}),s&&e.jsx("div",{onClick:()=>{R(!1),M(null)},children:s}),e.jsx(Se,{isLoadingProfile:h,address:f,avatar:w,userCardOpen:Q,onToggleUserCard:p,onClickSignOut:T,selectedChain:u,chains:a,onSelectChain:g,manaBalances:L?void 0:d,onClickBalance:L?void 0:c,i18n:j})]}),!n&&e.jsx(dt,{onClick:U,disabled:l,children:l?j.signingIn:j.signIn}),e.jsx(at,{onClick:_,"aria-label":I?"Close menu":"Open menu","aria-expanded":I,children:I?e.jsx(We,{}):e.jsx(Re,{})})]})]}),e.jsx(Ie,{open:I,onClose:V,i18n:j})]})});io.displayName="Navbar";const go=t("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,color:r.white,cursor:"pointer",flexShrink:0,borderRadius:4,"&.has-unread":{animation:`${ot} 0.8s`,animationIterationCount:4},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:24,height:24}}),Co=t("span")({position:"absolute",top:-4,right:-6,minWidth:16,height:16,borderRadius:8,backgroundColor:C.primary,color:"#fff",fontSize:10,fontWeight:700,fontFamily:"Inter, Helvetica, Arial, sans-serif",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 4px",lineHeight:1,pointerEvents:"none"}),mo=t("div")({position:"relative"}),bo=t("div")({position:"absolute",top:"100%",right:-12,marginTop:16,width:390,maxHeight:"70vh",zIndex:1102,background:"rgba(38, 38, 38, 0.8)",backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:12,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden",paddingTop:12,paddingBottom:24,animation:`${X} 0.15s ease forwards`,[A]:{position:"fixed",top:64,left:0,right:0,width:"auto",maxHeight:"calc(100vh - 64px)",borderRadius:0}}),wo=t("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 12px 12px 24px",borderBottom:"0.5px solid #5E5B67"}),vo=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:"#FCFCFC"}),Lo=t("div")({display:"flex",flexDirection:"column",overflowY:"auto",flex:1}),jo=t("div")({display:"flex",alignItems:"flex-start",gap:8,padding:"8px 16px",borderRadius:8,cursor:"pointer",transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}}),ko=t("div")({width:56,height:56,borderRadius:"50%",backgroundColor:"rgba(103, 99, 112, 0.4)",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden","& img, & svg":{width:48,height:48,objectFit:"cover"}}),yo=t("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0,flex:1}),Io=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:"#FCFCFC",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),Mo=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:"20px",color:"#ECEBED",maxWidth:280,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),So=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,color:"#A09BA8"}),Ao=t("div")({width:8,height:8,borderRadius:4,backgroundColor:"#FF2D55",flexShrink:0,alignSelf:"center"}),Eo=t("div")({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px 80px",gap:8,color:r.gray3,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:16,textAlign:"center"});export{go as BellButton,io as Navbar,Co as NotificationBadge,Ao as NotificationDot,Eo as NotificationEmpty,wo as NotificationHeader,yo as NotificationItemContent,Mo as NotificationItemDescription,ko as NotificationItemImage,So as NotificationItemTime,Io as NotificationItemTitle,Lo as NotificationList,jo as NotificationListItem,bo as NotificationPanel,vo as NotificationTitle,mo as NotificationWrapper};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-3yighozE.js","_assets/wait-for-tx-receipt-mfzWqQ40.js","_assets/transactionReceipt-puJsrtjz.js","_assets/prepare-contract-call-DDzIRXLv.js","_assets/utils-BQF5MiO5.js","_assets/sentry-Dx-KuLV3.js","_assets/react-BYHuwl8r.js","_assets/to-serializable-transaction-BB0M9pw8.js","_assets/index-C616xNgB.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-BYP7oMPZ.css","_assets/transaction-Col-q-Ce.js","_assets/sleep-mAKpSMLY.js","_assets/send-batch-transaction-Vn4JOFM5.js","_assets/send-transaction-CZ0kapdy.js","_assets/execute-V2l_cDAW.js","_assets/detectExtension-DX7grDLh.js","_assets/eth_getTransactionCount-Ck8bEyl_.js","_assets/index-Bd7SNoIN.js","_assets/signing-CVGndCRE.js","_assets/get-bytecode-BRKTQsHC.js","_assets/send-eip712-transaction-Qvibiwhe.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sha256-CfLwtdyC.js","_assets/linkAccount-BtAQZlYa.js","_assets/wallets-DT2LKaVF.js","_assets/store-CraP4F4Y.js","_assets/hashTypedData-Ca524zaX.js","_assets/index-JuH5W7YS.js","_assets/events-DQ172AOg.js","_assets/index-N5sgh9IC.js","_assets/index-w01WQ1OT.js","_assets/index-nibyPLVP.js","_assets/index-CJdot1dH.js","_assets/index-DCAUOF_r.js","_assets/ethereum-CBeS7QFR.js","_assets/types-DC0Zmj1B.js"])))=>i.map(i=>d[i]);
2
- import{_ as b}from"./index-C616xNgB.js";import{e as R}from"./ethereum-CBeS7QFR.js";import{s as M}from"./types-DC0Zmj1B.js";import{f as D,e as I,a as v,w as B}from"./utils-BQF5MiO5.js";import{p as W,g as V}from"./get-bytecode-BRKTQsHC.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-BB0M9pw8.js";import{r as $,e as N}from"./execute-V2l_cDAW.js";import{g as f,a4 as U,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-DDzIRXLv.js";const Ae="0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c",q="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",Y="0x4be0ddfebca9a5a4a617dee4dece99e7c862dceb",w="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",Z="0x0000000071727De22E5E9d8BAf0edAc6f37da032",K=50000n,Ce=t=>J(t||w)==="v0.7"?Y:q,E=t=>{const e=D().bundler;return e.startsWith("localhost:")?`http://${e}/v2?chain=${t.id}`:`https://${t.id}.${e}/v2`},J=t=>{const e=f(t);if(e===w)return"v0.6";if(e===Z)return"v0.7";throw new Error("Unknown paymaster version")};function Q(t={}){return U({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return U({filters:t,signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function ee(t){const{receipt:e}=t,n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs,status:e.status,to:e.to?e.to:null,transactionHash:e.transactionHash,transactionIndex:e.transactionIndex,type:e.type};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),{...t,actualGasCost:BigInt(t.actualGasCost),actualGasUsed:BigInt(t.actualGasUsed),nonce:BigInt(t.nonce),receipt:n,userOpHash:t.userOpHash}}const xe=()=>{const t=BigInt(Math.floor(Math.random()*4294967296)),e=BigInt(Math.floor(Math.random()*4294967296)),n=BigInt(Math.floor(Math.random()*4294967296)),r=BigInt(Math.floor(Math.random()*4294967296)),o=BigInt(Math.floor(Math.random()*4294967296)),p=BigInt(Math.floor(Math.random()*4294967296));return t<<BigInt(160)|e<<BigInt(128)|n<<BigInt(96)|r<<BigInt(64)|o<<BigInt(32)|p};function _(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,n==null||k(n)?n:z(n)]))}async function Ie(t){return d({...t,operation:"eth_sendUserOperation",params:[_(t.userOp),t.options.entrypointAddress??w]})}async function Ue(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[_(t.userOp),t.options.entrypointAddress??w,e??{}]});return{callGasLimit:y(n.callGasLimit)+K,paymasterPostOpGasLimit:n.paymasterPostOpGasLimit!==void 0?y(n.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:n.paymasterVerificationGasLimit!==void 0?y(n.paymasterVerificationGasLimit):void 0,preVerificationGas:y(n.preVerificationGas),verificationGas:n.verificationGas!==void 0?y(n.verificationGas):void 0,verificationGasLimit:y(n.verificationGasLimit)}}async function Ee(t){const e=await d({...t,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxFeePerGas:y(e.maxFeePerGas),maxPriorityFeePerGas:y(e.maxPriorityFeePerGas)}}async function _e(t){var n,r;const e=await te(t);if(e){if(e.success===!1){const p=(r=(n=W({events:[Q(),X()],logs:e.logs})[0])==null?void 0:n.args)==null?void 0:r.revertReason;if(!p)throw new Error(`UserOp failed at txHash: ${e.receipt.transactionHash}`);const a=F({data:p});throw new Error(`UserOp failed with reason: '${a.args.join(",")}' at txHash: ${e.receipt.transactionHash}`)}return e.receipt}}async function te(t){const e=await d({operation:"eth_getUserOperationReceipt",options:t,params:[t.userOpHash]});if(e)return ee(e)}async function Pe(t){const e=await d({operation:"zk_paymasterData",options:t.options,params:[t.transaction]});return{paymaster:e.paymaster,paymasterInput:e.paymasterInput}}async function ne(t){const e=await d({...t,operation:"tw_execute",params:[t.eoaAddress,t.wrappedCalls,t.signature,t.authorization]});if(!e.queueId)throw new Error(`Error executing 7702 transaction: ${g(e)}`);return{transactionId:e.queueId}}async function ae(t){return{transactionHash:(await d({...t,operation:"tw_getTransactionHash",params:[t.transactionId]})).transactionHash}}async function Ge(t){return{transactionHash:(await d({operation:"zk_broadcastTransaction",options:t.options,params:[{...t.transaction,signedTransaction:t.signedTransaction}]})).transactionHash}}async function d(t){const{options:e,operation:n,params:r}=t,o=e.bundlerUrl??E(e.chain),a=await I(e.client)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:n,params:r}),headers:{"Content-Type":"application/json"},method:"POST"}),i=await a.json();if(!a.ok||i.error){let s=i.error||a.statusText;typeof s=="object"&&(s=g(s));const u=i.code||"UNKNOWN";throw new Error(`${n} error: ${s}
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-ozqkkU0m.js","_assets/wait-for-tx-receipt-CETDDyPM.js","_assets/transactionReceipt-iJ97NYxd.js","_assets/prepare-contract-call-DDzIRXLv.js","_assets/utils-BQF5MiO5.js","_assets/sentry-Dx-KuLV3.js","_assets/react-BYHuwl8r.js","_assets/to-serializable-transaction-BkPY6iHK.js","_assets/index-BpBLqmY7.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-BYP7oMPZ.css","_assets/transaction-Col-q-Ce.js","_assets/sleep-mAKpSMLY.js","_assets/send-batch-transaction-BCKT8nBl.js","_assets/send-transaction-C8RVBMn9.js","_assets/execute-BJdfX8go.js","_assets/detectExtension-DX7grDLh.js","_assets/eth_getTransactionCount-Ck8bEyl_.js","_assets/index-DNUmp9qJ.js","_assets/signing-BqfCVU3I.js","_assets/get-bytecode-BRKTQsHC.js","_assets/send-eip712-transaction-DJ0zmOUy.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sha256-CfLwtdyC.js","_assets/linkAccount-BtAQZlYa.js","_assets/wallets-91m5q0QW.js","_assets/store-CraP4F4Y.js","_assets/hashTypedData-BPxQrISG.js","_assets/index-D3CBiscc.js","_assets/events-DQ172AOg.js","_assets/index-DEpHjDox.js","_assets/index-w01WQ1OT.js","_assets/index-nibyPLVP.js","_assets/index-CJdot1dH.js","_assets/index-C1ABS6aZ.js","_assets/ethereum-CBeS7QFR.js","_assets/types-DC0Zmj1B.js"])))=>i.map(i=>d[i]);
2
+ import{_ as b}from"./index-BpBLqmY7.js";import{e as R}from"./ethereum-CBeS7QFR.js";import{s as M}from"./types-DC0Zmj1B.js";import{f as D,e as I,a as v,w as B}from"./utils-BQF5MiO5.js";import{p as W,g as V}from"./get-bytecode-BRKTQsHC.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-BkPY6iHK.js";import{r as $,e as N}from"./execute-BJdfX8go.js";import{g as f,a4 as U,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-DDzIRXLv.js";const Ae="0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c",q="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",Y="0x4be0ddfebca9a5a4a617dee4dece99e7c862dceb",w="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",Z="0x0000000071727De22E5E9d8BAf0edAc6f37da032",K=50000n,Ce=t=>J(t||w)==="v0.7"?Y:q,E=t=>{const e=D().bundler;return e.startsWith("localhost:")?`http://${e}/v2?chain=${t.id}`:`https://${t.id}.${e}/v2`},J=t=>{const e=f(t);if(e===w)return"v0.6";if(e===Z)return"v0.7";throw new Error("Unknown paymaster version")};function Q(t={}){return U({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return U({filters:t,signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function ee(t){const{receipt:e}=t,n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs,status:e.status,to:e.to?e.to:null,transactionHash:e.transactionHash,transactionIndex:e.transactionIndex,type:e.type};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),{...t,actualGasCost:BigInt(t.actualGasCost),actualGasUsed:BigInt(t.actualGasUsed),nonce:BigInt(t.nonce),receipt:n,userOpHash:t.userOpHash}}const xe=()=>{const t=BigInt(Math.floor(Math.random()*4294967296)),e=BigInt(Math.floor(Math.random()*4294967296)),n=BigInt(Math.floor(Math.random()*4294967296)),r=BigInt(Math.floor(Math.random()*4294967296)),o=BigInt(Math.floor(Math.random()*4294967296)),p=BigInt(Math.floor(Math.random()*4294967296));return t<<BigInt(160)|e<<BigInt(128)|n<<BigInt(96)|r<<BigInt(64)|o<<BigInt(32)|p};function _(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,n==null||k(n)?n:z(n)]))}async function Ie(t){return d({...t,operation:"eth_sendUserOperation",params:[_(t.userOp),t.options.entrypointAddress??w]})}async function Ue(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[_(t.userOp),t.options.entrypointAddress??w,e??{}]});return{callGasLimit:y(n.callGasLimit)+K,paymasterPostOpGasLimit:n.paymasterPostOpGasLimit!==void 0?y(n.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:n.paymasterVerificationGasLimit!==void 0?y(n.paymasterVerificationGasLimit):void 0,preVerificationGas:y(n.preVerificationGas),verificationGas:n.verificationGas!==void 0?y(n.verificationGas):void 0,verificationGasLimit:y(n.verificationGasLimit)}}async function Ee(t){const e=await d({...t,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxFeePerGas:y(e.maxFeePerGas),maxPriorityFeePerGas:y(e.maxPriorityFeePerGas)}}async function _e(t){var n,r;const e=await te(t);if(e){if(e.success===!1){const p=(r=(n=W({events:[Q(),X()],logs:e.logs})[0])==null?void 0:n.args)==null?void 0:r.revertReason;if(!p)throw new Error(`UserOp failed at txHash: ${e.receipt.transactionHash}`);const a=F({data:p});throw new Error(`UserOp failed with reason: '${a.args.join(",")}' at txHash: ${e.receipt.transactionHash}`)}return e.receipt}}async function te(t){const e=await d({operation:"eth_getUserOperationReceipt",options:t,params:[t.userOpHash]});if(e)return ee(e)}async function Pe(t){const e=await d({operation:"zk_paymasterData",options:t.options,params:[t.transaction]});return{paymaster:e.paymaster,paymasterInput:e.paymasterInput}}async function ne(t){const e=await d({...t,operation:"tw_execute",params:[t.eoaAddress,t.wrappedCalls,t.signature,t.authorization]});if(!e.queueId)throw new Error(`Error executing 7702 transaction: ${g(e)}`);return{transactionId:e.queueId}}async function ae(t){return{transactionHash:(await d({...t,operation:"tw_getTransactionHash",params:[t.transactionId]})).transactionHash}}async function Ge(t){return{transactionHash:(await d({operation:"zk_broadcastTransaction",options:t.options,params:[{...t.transaction,signedTransaction:t.signedTransaction}]})).transactionHash}}async function d(t){const{options:e,operation:n,params:r}=t,o=e.bundlerUrl??E(e.chain),a=await I(e.client)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:n,params:r}),headers:{"Content-Type":"application/json"},method:"POST"}),i=await a.json();if(!a.ok||i.error){let s=i.error||a.statusText;typeof s=="object"&&(s=g(s));const u=i.code||"UNKNOWN";throw new Error(`${n} error: ${s}
3
3
  Status: ${a.status}
4
- Code: ${u}`)}return i.result}async function ie(t){const{client:e,chain:n,bundlerUrl:r}=t,o=r??E(n),p=`delegation-contract:${o}`;return B(async()=>{var u;const i=await I(e)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:"tw_getDelegationContract",params:[]}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw new Error(`Failed to fetch delegation contract: ${i.status} ${i.statusText}`);const s=await i.json();if(s.error)throw new Error(`Delegation contract RPC error: ${JSON.stringify(s.error)}`);if(!((u=s.result)!=null&&u.delegationContract))throw new Error("Invalid response: missing delegationContract in result");return s.result.delegationContract},{cacheKey:p,cacheTime:1440*60*1e3})}const se=t=>{const{client:e,adminAccount:n,sponsorGas:r}=t,o=async a=>{var A,C,x;const i=a[0];if(!i)throw new Error("No transactions provided");const s=v(i.chainId),u=H({address:n.address,chain:s,client:e,abi:ue});let c=(A=i.authorizationList)==null?void 0:A[0];const m=await ie({client:e,chain:s});if(c&&((C=c.address)==null?void 0:C.toLowerCase())!==m.toLowerCase())throw new Error(`Authorization address does not match expected delegation contract address. Expected ${m} but got ${c.address}`);if(!c&&!await oe(u,m)){let T=i.nonce?BigInt(i.nonce):BigInt(await re({client:e,address:n.address,chain:s}));T+=r?0n:1n;const h=await((x=n.signAuthorization)==null?void 0:x.call(n,{address:f(m),chainId:i.chainId,nonce:T}));if(!h)throw new Error("Failed to sign authorization");c=h}if(r){const l={calls:a.map(L=>({data:L.data??"0x",target:f(L.to??""),value:L.value??0n})),uid:$()},T=await n.signTypedData({domain:{chainId:i.chainId,name:"MinimalAccount",verifyingContract:u.address,version:"1"},message:l,primaryType:"WrappedCalls",types:{Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],WrappedCalls:[{name:"calls",type:"Call[]"},{name:"uid",type:"bytes32"}]}}),h=await ne({authorization:c,eoaAddress:f(n.address),options:{chain:v(i.chainId),client:e},signature:T,wrappedCalls:l});return{transactionHash:await pe({options:{chain:v(i.chainId),client:e},transactionId:h.transactionId})}}const S=N({calls:a.map(l=>({data:l.data??"0x",target:f(l.to??""),value:l.value??0n})),contract:u,overrides:{authorizationList:c?[c]:void 0,value:a.reduce((l,T)=>l+(T.value??0n),0n)}}),G=await O({from:n.address,transaction:S});return n.sendTransaction(G)},p={address:n.address,sendBatchTransaction:async a=>o(a),sendTransaction:async a=>o([a]),signMessage:({message:a,originalMessage:i,chainId:s})=>n.signMessage({chainId:s,message:a,originalMessage:i}),signTypedData:a=>n.signTypedData(a),sendCalls:async a=>{const{inAppWalletSendCalls:i}=await b(async()=>{const{inAppWalletSendCalls:S}=await import("./in-app-wallet-calls-3yighozE.js");return{inAppWalletSendCalls:S}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),s=a.calls[0];if(!s)throw new Error("No calls to send");const u=s.client,c=s.chain||a.chain,m=await i({account:p,calls:a.calls,chain:c});return{chain:c,client:u,id:m}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:i}=await b(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-3yighozE.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:i}=await b(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-3yighozE.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:r??!1}}})};return p};async function re(t){const{client:e,address:n,chain:r}=t,o=j({chain:r,client:e});return await b(async()=>{const{eth_getTransactionCount:a}=await import("./eth_getTransactionCount-Ck8bEyl_.js");return{eth_getTransactionCount:a}},__vite__mapDeps([19,3,4,5,6])).then(({eth_getTransactionCount:a})=>a(o,{address:f(n),blockTag:"pending"}))}async function oe(t,e){const n=await V(t),r=n.length>0&&n.startsWith("0xef0100"),o=`0x${n.slice(8,48)}`;return r&&o.toLowerCase()===e.toLowerCase()}async function pe(t){const e=t.timeoutMs||3e5,n=t.intervalMs||1e3,r=Date.now()+e;for(;Date.now()<r;){const o=await ae({options:t.options,transactionId:t.transactionId});if(o.transactionHash)return o.transactionHash;await new Promise(p=>setTimeout(p,n))}throw new Error(`Timeout waiting for transaction to be mined on chain ${t.options.chain.id} with transactionId: ${t.transactionId}`)}const ue=[{type:"receive",stateMutability:"payable"},{type:"function",name:"createSessionWithSig",inputs:[{name:"sessionSpec",type:"tuple",internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeWithSig",inputs:[{name:"wrappedCalls",type:"tuple",internalType:"struct WrappedCalls",components:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getCallPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSessionExpirationForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getSessionStateForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct SessionLib.SessionState",components:[{name:"transferValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callParams",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"getTransferPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"isWildcardSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"Executed",inputs:[{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"},{name:"data",type:"bytes",indexed:!1,internalType:"bytes"}],anonymous:!1},{type:"event",name:"SessionCreated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"sessionSpec",type:"tuple",indexed:!1,internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1},{type:"event",name:"ValueReceived",inputs:[{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AllowanceExceeded",inputs:[{name:"allowanceUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint64",internalType:"uint64"}]},{type:"error",name:"CallPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"CallReverted",inputs:[]},{type:"error",name:"ConditionFailed",inputs:[{name:"param",type:"bytes32",internalType:"bytes32"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"condition",type:"uint8",internalType:"uint8"}]},{type:"error",name:"InvalidDataLength",inputs:[{name:"actualLength",type:"uint256",internalType:"uint256"},{name:"expectedLength",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidSignature",inputs:[{name:"msgSender",type:"address",internalType:"address"},{name:"thisAddress",type:"address",internalType:"address"}]},{type:"error",name:"LifetimeUsageExceeded",inputs:[{name:"lifetimeUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MaxValueExceeded",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoCallsToExecute",inputs:[]},{type:"error",name:"SessionExpired",inputs:[]},{type:"error",name:"SessionExpiresTooSoon",inputs:[]},{type:"error",name:"SessionZeroSigner",inputs:[]},{type:"error",name:"TransferPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"UIDAlreadyProcessed",inputs:[]}];function ce(t){return t.id==="inApp"||t.id==="embedded"}async function le(t,e,n){var p,a,i,s;if(((p=e==null?void 0:e.auth)==null?void 0:p.mode)!=="popup"&&((a=e==null?void 0:e.auth)==null?void 0:a.mode)!==void 0&&n.authenticateWithRedirect){const u=t.strategy;M.includes(u)&&await n.authenticateWithRedirect(u,(i=e==null?void 0:e.auth)==null?void 0:i.mode,(s=e==null?void 0:e.auth)==null?void 0:s.redirectUrl)}const o=(await n.connect(t)).user.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function ye(t,e,n){t.authResult&&n.loginWithAuthToken&&await n.loginWithAuthToken(t.authResult);const r=await me(n);if(!r)throw new Error("Failed to authenticate user.");const o=r.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function de(t){const{connectSmartAccount:e}=await b(async()=>{const{connectSmartAccount:n}=await import("./index-Bd7SNoIN.js");return{connectSmartAccount:n}},__vite__mapDeps([20,8,6,9,5,10,11,12,13,3,4,7,17,18,21,22,23,24,25,16,26,27,28,29,30,31,32,33,34,35,36,37,38]));return e({chain:t.chain,client:t.client,personalAccount:t.authAccount},t.smartAccountOptions)}async function me(t){const e=await t.getUser();switch(e.status){case"Logged In, Wallet Initialized":return e}}async function P(t){const{createOptions:e,authAccount:n,desiredChain:r,client:o}=t;let p,a;const i=e&&"executionMode"in e?e.executionMode:void 0;if(i&&(i.mode==="EIP4337"?p=i.smartAccount:i.mode==="EIP7702"&&(a=i)),e&&"smartAccount"in e&&(e!=null&&e.smartAccount)&&(p=e.smartAccount),p){const[s,u]=await de({authAccount:n,chain:r,client:o,smartAccountOptions:p});return{account:s,adminAccount:n,chain:u}}if(a){const s=r;if(!s)throw new Error("Chain is required for EIP-7702 execution, pass a chain when connecting the inAppWallet.");return{account:se({adminAccount:n,client:o,sponsorGas:a.sponsorGas}),adminAccount:n,chain:s}}return{account:n,chain:r||R}}const Re=Object.freeze(Object.defineProperty({__proto__:null,autoConnectInAppWallet:ye,connectInAppWallet:le,isInAppWallet:ce},Symbol.toStringTag,{value:"Module"}));export{Ae as D,w as E,J as a,_e as b,Ee as c,xe as d,Ue as e,Z as f,E as g,_ as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
4
+ Code: ${u}`)}return i.result}async function ie(t){const{client:e,chain:n,bundlerUrl:r}=t,o=r??E(n),p=`delegation-contract:${o}`;return B(async()=>{var u;const i=await I(e)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:"tw_getDelegationContract",params:[]}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw new Error(`Failed to fetch delegation contract: ${i.status} ${i.statusText}`);const s=await i.json();if(s.error)throw new Error(`Delegation contract RPC error: ${JSON.stringify(s.error)}`);if(!((u=s.result)!=null&&u.delegationContract))throw new Error("Invalid response: missing delegationContract in result");return s.result.delegationContract},{cacheKey:p,cacheTime:1440*60*1e3})}const se=t=>{const{client:e,adminAccount:n,sponsorGas:r}=t,o=async a=>{var A,C,x;const i=a[0];if(!i)throw new Error("No transactions provided");const s=v(i.chainId),u=H({address:n.address,chain:s,client:e,abi:ue});let c=(A=i.authorizationList)==null?void 0:A[0];const m=await ie({client:e,chain:s});if(c&&((C=c.address)==null?void 0:C.toLowerCase())!==m.toLowerCase())throw new Error(`Authorization address does not match expected delegation contract address. Expected ${m} but got ${c.address}`);if(!c&&!await oe(u,m)){let T=i.nonce?BigInt(i.nonce):BigInt(await re({client:e,address:n.address,chain:s}));T+=r?0n:1n;const h=await((x=n.signAuthorization)==null?void 0:x.call(n,{address:f(m),chainId:i.chainId,nonce:T}));if(!h)throw new Error("Failed to sign authorization");c=h}if(r){const l={calls:a.map(L=>({data:L.data??"0x",target:f(L.to??""),value:L.value??0n})),uid:$()},T=await n.signTypedData({domain:{chainId:i.chainId,name:"MinimalAccount",verifyingContract:u.address,version:"1"},message:l,primaryType:"WrappedCalls",types:{Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],WrappedCalls:[{name:"calls",type:"Call[]"},{name:"uid",type:"bytes32"}]}}),h=await ne({authorization:c,eoaAddress:f(n.address),options:{chain:v(i.chainId),client:e},signature:T,wrappedCalls:l});return{transactionHash:await pe({options:{chain:v(i.chainId),client:e},transactionId:h.transactionId})}}const S=N({calls:a.map(l=>({data:l.data??"0x",target:f(l.to??""),value:l.value??0n})),contract:u,overrides:{authorizationList:c?[c]:void 0,value:a.reduce((l,T)=>l+(T.value??0n),0n)}}),G=await O({from:n.address,transaction:S});return n.sendTransaction(G)},p={address:n.address,sendBatchTransaction:async a=>o(a),sendTransaction:async a=>o([a]),signMessage:({message:a,originalMessage:i,chainId:s})=>n.signMessage({chainId:s,message:a,originalMessage:i}),signTypedData:a=>n.signTypedData(a),sendCalls:async a=>{const{inAppWalletSendCalls:i}=await b(async()=>{const{inAppWalletSendCalls:S}=await import("./in-app-wallet-calls-ozqkkU0m.js");return{inAppWalletSendCalls:S}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),s=a.calls[0];if(!s)throw new Error("No calls to send");const u=s.client,c=s.chain||a.chain,m=await i({account:p,calls:a.calls,chain:c});return{chain:c,client:u,id:m}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:i}=await b(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-ozqkkU0m.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:i}=await b(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-ozqkkU0m.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:r??!1}}})};return p};async function re(t){const{client:e,address:n,chain:r}=t,o=j({chain:r,client:e});return await b(async()=>{const{eth_getTransactionCount:a}=await import("./eth_getTransactionCount-Ck8bEyl_.js");return{eth_getTransactionCount:a}},__vite__mapDeps([19,3,4,5,6])).then(({eth_getTransactionCount:a})=>a(o,{address:f(n),blockTag:"pending"}))}async function oe(t,e){const n=await V(t),r=n.length>0&&n.startsWith("0xef0100"),o=`0x${n.slice(8,48)}`;return r&&o.toLowerCase()===e.toLowerCase()}async function pe(t){const e=t.timeoutMs||3e5,n=t.intervalMs||1e3,r=Date.now()+e;for(;Date.now()<r;){const o=await ae({options:t.options,transactionId:t.transactionId});if(o.transactionHash)return o.transactionHash;await new Promise(p=>setTimeout(p,n))}throw new Error(`Timeout waiting for transaction to be mined on chain ${t.options.chain.id} with transactionId: ${t.transactionId}`)}const ue=[{type:"receive",stateMutability:"payable"},{type:"function",name:"createSessionWithSig",inputs:[{name:"sessionSpec",type:"tuple",internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeWithSig",inputs:[{name:"wrappedCalls",type:"tuple",internalType:"struct WrappedCalls",components:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getCallPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSessionExpirationForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getSessionStateForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct SessionLib.SessionState",components:[{name:"transferValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callParams",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"getTransferPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"isWildcardSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"Executed",inputs:[{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"},{name:"data",type:"bytes",indexed:!1,internalType:"bytes"}],anonymous:!1},{type:"event",name:"SessionCreated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"sessionSpec",type:"tuple",indexed:!1,internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1},{type:"event",name:"ValueReceived",inputs:[{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AllowanceExceeded",inputs:[{name:"allowanceUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint64",internalType:"uint64"}]},{type:"error",name:"CallPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"CallReverted",inputs:[]},{type:"error",name:"ConditionFailed",inputs:[{name:"param",type:"bytes32",internalType:"bytes32"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"condition",type:"uint8",internalType:"uint8"}]},{type:"error",name:"InvalidDataLength",inputs:[{name:"actualLength",type:"uint256",internalType:"uint256"},{name:"expectedLength",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidSignature",inputs:[{name:"msgSender",type:"address",internalType:"address"},{name:"thisAddress",type:"address",internalType:"address"}]},{type:"error",name:"LifetimeUsageExceeded",inputs:[{name:"lifetimeUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MaxValueExceeded",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoCallsToExecute",inputs:[]},{type:"error",name:"SessionExpired",inputs:[]},{type:"error",name:"SessionExpiresTooSoon",inputs:[]},{type:"error",name:"SessionZeroSigner",inputs:[]},{type:"error",name:"TransferPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"UIDAlreadyProcessed",inputs:[]}];function ce(t){return t.id==="inApp"||t.id==="embedded"}async function le(t,e,n){var p,a,i,s;if(((p=e==null?void 0:e.auth)==null?void 0:p.mode)!=="popup"&&((a=e==null?void 0:e.auth)==null?void 0:a.mode)!==void 0&&n.authenticateWithRedirect){const u=t.strategy;M.includes(u)&&await n.authenticateWithRedirect(u,(i=e==null?void 0:e.auth)==null?void 0:i.mode,(s=e==null?void 0:e.auth)==null?void 0:s.redirectUrl)}const o=(await n.connect(t)).user.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function ye(t,e,n){t.authResult&&n.loginWithAuthToken&&await n.loginWithAuthToken(t.authResult);const r=await me(n);if(!r)throw new Error("Failed to authenticate user.");const o=r.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function de(t){const{connectSmartAccount:e}=await b(async()=>{const{connectSmartAccount:n}=await import("./index-DNUmp9qJ.js");return{connectSmartAccount:n}},__vite__mapDeps([20,8,6,9,5,10,11,12,13,3,4,7,17,18,21,22,23,24,25,16,26,27,28,29,30,31,32,33,34,35,36,37,38]));return e({chain:t.chain,client:t.client,personalAccount:t.authAccount},t.smartAccountOptions)}async function me(t){const e=await t.getUser();switch(e.status){case"Logged In, Wallet Initialized":return e}}async function P(t){const{createOptions:e,authAccount:n,desiredChain:r,client:o}=t;let p,a;const i=e&&"executionMode"in e?e.executionMode:void 0;if(i&&(i.mode==="EIP4337"?p=i.smartAccount:i.mode==="EIP7702"&&(a=i)),e&&"smartAccount"in e&&(e!=null&&e.smartAccount)&&(p=e.smartAccount),p){const[s,u]=await de({authAccount:n,chain:r,client:o,smartAccountOptions:p});return{account:s,adminAccount:n,chain:u}}if(a){const s=r;if(!s)throw new Error("Chain is required for EIP-7702 execution, pass a chain when connecting the inAppWallet.");return{account:se({adminAccount:n,client:o,sponsorGas:a.sponsorGas}),adminAccount:n,chain:s}}return{account:n,chain:r||R}}const Re=Object.freeze(Object.defineProperty({__proto__:null,autoConnectInAppWallet:ye,connectInAppWallet:le,isInAppWallet:ce},Symbol.toStringTag,{value:"Module"}));export{Ae as D,w as E,J as a,_e as b,Ee as c,xe as d,Ue as e,Z as f,E as g,_ as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
@@ -1,4 +1,4 @@
1
- import{a as h,i as d,b as a}from"./lit-element-B3y9oplH.js";import{d as w,r as x,e as b}from"./index-DNvcQt0s.js";import{c as m}from"./index-tCYP1O3W.js";import"./index-CAl290ro.js";import{O as c,E as g,l as v,C,W as _,R as $}from"./W3MFrameProviderSingleton-CPDmjNiA.js";import{r as R}from"./class-map-CxwNmq0D.js";const T=h``;var O=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends d{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return!e&&!r?null:a`
1
+ import{a as h,i as d,b as a}from"./lit-element-B3y9oplH.js";import{d as w,r as x,e as b}from"./index-BwpU8az-.js";import{c as m}from"./index-DmouEX3z.js";import"./index-C7gyW2pC.js";import{O as c,E as g,l as v,C,W as _,R as $}from"./W3MFrameProviderSingleton-BNh7T9LS.js";import{r as R}from"./class-map-CxwNmq0D.js";const T=h``;var O=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends d{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return!e&&!r?null:a`
2
2
  <wui-flex
3
3
  .padding=${["4","3","3","3"]}
4
4
  flexDirection="column"
@@ -1 +1 @@
1
- import{c as r}from"./parseSignature-D0-1k6Yx.js";import{B as y,E as f,a as v,b as A,F as S,W as I,d as F,e as R,f as x,g as C,p as B,l as N,n as P,p as D,h as U,s as w,z as L}from"./parseSignature-D0-1k6Yx.js";import{I as H,c as k,a as z,p as q,w as V}from"./custom-bIxIBqCn.js";import{h as s}from"./W3MFrameProviderSingleton-CPDmjNiA.js";import{U as G,c as j,f as W,s as K,w as Z,a as J}from"./W3MFrameProviderSingleton-CPDmjNiA.js";import{A as X,a as Y,B as _,b as $,C as aa,D as ra,E as oa,F as sa,c as ea,H as ta,I as ia,d as na,e as ca,f as da,g as Ea,h as pa,i as ua,j as la,k as ma,l as Ta,J as ga,L as ba,M as ha,m as ya,N as fa,n as va,o as Aa,P as Sa,p as Ia,q as Fa,R as Ra,r as xa,s as Ca,t as Ba,u as Na,S as Pa,v as Da,w as Ua,x as wa,T as La,y as Ma,z as Ha,G as ka,U as za,K as qa,O as Va,Q as Oa,V as Ga,W as ja,X as Wa,Y as Ka,Z as Za,_ as Ja,$ as Qa,a0 as Xa,a1 as Ya,a2 as _a,a3 as $a,a4 as ar,a5 as rr,a6 as or,a7 as sr,a8 as er,a9 as tr,aa as ir,ab as nr,ac as cr,ad as dr,ae as Er,af as pr,ag as ur,ah as lr,ai as mr,aj as Tr,ak as gr,al as br,am as hr,an as yr,ao as fr,ap as vr,a1 as Ar}from"./NetworkUtil-DXqql1Wz.js";import{A as Ir,a as Fr,b as Rr,c as xr,d as Cr,e as Br,f as Nr,g as Pr,h as Dr,i as Ur,j as wr,k as Lr,l as Mr,m as Hr,n as kr,o as zr,p as qr,B as Vr,q as Or,r as Gr,C as jr,s as Wr,t as Kr,u as Zr,v as Jr,w as Qr,x as Xr,y as Yr,z as _r,D as $r,E as ao,F as ro,G as oo,H as so,I as eo,J as to,K as io,L as no,M as co,N as Eo,O as po,P as uo,Q as lo,R as mo,S as To,T as go,U as bo,V as ho,W as yo,X as fo,Y as vo,Z as Ao,_ as So,$ as Io,a0 as Fo,a1 as Ro,a2 as xo,a3 as Co,a4 as Bo,a5 as No,a6 as Po,a7 as Do,a8 as Uo,a9 as wo,aa as Lo,ab as Mo,ac as Ho,ad as ko,ae as zo,af as qo,ag as Vo,ah as Oo,ai as Go,aj as jo,ak as Wo,al as Ko,am as Zo,an as Jo,ao as Qo,ap as Xo,aq as Yo,ar as _o,as as $o,at as as,au as rs,av as os,aw as ss,ax as es,ay as ts,az as is,aA as ns,aB as cs,aC as ds,aD as Es,aE as ps,aF as us,aG as ls,aH as ms,aI as Ts,aJ as gs,aK as bs,aL as hs,aM as ys,aN as fs,aM as vs,aO as As,aP as Ss,aQ as Is,aR as Fs,aS as Rs,aT as xs,aU as Cs,aV as Bs,aW as Ns,aX as Ps,aY as Ds,aZ as Us,a_ as ws,a$ as Ls,b0 as Ms,b1 as Hs,b2 as ks,b3 as zs,b4 as qs,aL as Vs,aM as Os,b4 as Gs,aN as js,aM as Ws,b5 as Ks,b6 as Zs,aA as Js}from"./sendRawTransaction-BUz1EYd8.js";import{I as Xs,a as Ys,b as _s,g as $s,h as ae,c as re,d as oe,e as se,p as ee,t as te,v as ie}from"./hashTypedData-C9kgxiiE.js";import{d as ce,e as de,a as Ee}from"./localBatchGatewayRequest-DvkdRgNo.js";import{ccipRequest as ue,ccipRequest as le,offchainLookup as me,offchainLookupAbiItem as Te,offchainLookupSignature as ge}from"./ccip-CB03B_MW.js";import{d as t}from"./verifyHash-CAYWYGEG.js";import{e as he,p as ye,a as fe,s as ve,s as Ae}from"./verifyHash-CAYWYGEG.js";import{a as Ie,b as Fe,c as Re,s as xe,d as Ce}from"./serializeTransaction-B8qCVIIu.js";import"./secp256k1-DUTfCpIK.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-w01WQ1OT.js";import"./react-BYHuwl8r.js";import"./sentry-Dx-KuLV3.js";import"./index-JuH5W7YS.js";import"./events-DQ172AOg.js";import"./index-C616xNgB.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Dj0kiq3a.js";export{Ir as AbiConstructorNotFoundError,Fr as AbiConstructorParamsNotFoundError,Rr as AbiDecodingDataSizeTooSmallError,xr as AbiDecodingZeroDataError,Cr as AbiEncodingArrayLengthMismatchError,Br as AbiEncodingBytesSizeMismatchError,Nr as AbiEncodingLengthMismatchError,Pr as AbiErrorInputsNotFoundError,Dr as AbiErrorNotFoundError,Ur as AbiErrorSignatureNotFoundError,wr as AbiEventNotFoundError,Lr as AbiEventSignatureEmptyTopicsError,Mr as AbiEventSignatureNotFoundError,Hr as AbiFunctionNotFoundError,kr as AbiFunctionOutputsNotFoundError,zr as AbiFunctionSignatureNotFoundError,qr as AccountStateConflictError,X as AtomicReadyWalletRejectedUpgradeError,Y as AtomicityNotSupportedError,_ as BaseError,Vr as BaseFeeScalarError,Or as BlockNotFoundError,y as BundleFailedError,$ as BundleTooLargeError,Gr as BytesSizeMismatchError,jr as CallExecutionError,aa as ChainDisconnectedError,Wr as ChainDoesNotSupportContract,Kr as ChainMismatchError,Zr as ChainNotFoundError,Jr as CircularReferenceError,Qr as ClientChainNotConfiguredError,Xr as ContractFunctionExecutionError,Yr as ContractFunctionRevertedError,_r as ContractFunctionZeroDataError,$r as CounterfactualDeploymentFailedError,ao as DecodeLogDataMismatch,ro as DecodeLogTopicsMismatch,ra as DuplicateIdError,oo as Eip1559FeesNotSupportedError,f as EnsAvatarInvalidNftUriError,v as EnsAvatarUnsupportedNamespaceError,A as EnsAvatarUriResolutionError,so as EstimateGasExecutionError,oa as ExecutionRevertedError,sa as FeeCapTooHighError,ea as FeeCapTooLowError,S as FilterTypeNotSupportedError,ta as HttpRequestError,ia as InsufficientFundsError,na as IntegerOutOfRangeError,ca as InternalRpcError,da as IntrinsicGasTooHighError,Ea as IntrinsicGasTooLowError,eo as InvalidAbiDecodingTypeError,to as InvalidAbiEncodingTypeError,io as InvalidAbiItemError,no as InvalidAbiParametersError,co as InvalidAbiTypeParameterError,Eo as InvalidAddressError,po as InvalidArrayError,pa as InvalidBytesBooleanError,uo as InvalidChainIdError,H as InvalidDecimalNumberError,lo as InvalidDefinitionTypeError,Xs as InvalidDomainError,mo as InvalidFunctionModifierError,ua as InvalidHexBooleanError,la as InvalidInputRpcError,To as InvalidLegacyVError,go as InvalidModifierError,bo as InvalidParameterError,ma as InvalidParamsRpcError,ho as InvalidParenthesisError,Ys as InvalidPrimaryTypeError,Ta as InvalidRequestRpcError,yo as InvalidSerializableTransactionError,fo as InvalidSignatureError,vo as InvalidStorageKeySizeError,Ao as InvalidStructSignatureError,_s as InvalidStructTypeError,ga as JsonRpcVersionUnsupportedError,ba as LimitExceededRpcError,So as MaxFeePerGasTooLowError,ha as MethodNotFoundRpcError,ya as MethodNotSupportedRpcError,fa as NonceMaxValueError,va as NonceTooHighError,Aa as NonceTooLowError,Sa as ParseRpcError,Ia as ProviderDisconnectedError,Fa as ProviderRpcError,Io as RawContractError,Ra as ResourceNotFoundRpcError,xa as ResourceUnavailableRpcError,Ca as ResponseBodyTooLargeError,Ba as RpcError,Na as RpcRequestError,Pa as SizeExceedsPaddingSizeError,Da as SizeOverflowError,Ua as SliceOffsetOutOfBoundsError,Fo as SolidityProtectedKeywordError,Ro as StateAssignmentConflictError,wa as SwitchChainError,La as TimeoutError,Ma as TipAboveFeeCapError,xo as TransactionExecutionError,Co as TransactionNotFoundError,Bo as TransactionReceiptNotFoundError,Ha as TransactionRejectedRpcError,ka as TransactionTypeNotSupportedError,za as UnauthorizedProviderError,qa as UnknownBundleIdError,Va as UnknownNodeError,Oa as UnknownRpcError,No as UnknownSignatureError,Po as UnknownTypeError,Ga as UnsupportedChainIdError,ja as UnsupportedNonOptionalCapabilityError,Do as UnsupportedPackedAbiType,Wa as UnsupportedProviderMethodError,G as UrlRequiredError,Ka as UserRejectedRequestError,I as WaitForCallsStatusTimeoutError,Uo as WaitForTransactionReceiptTimeoutError,wo as assertCurrentChain,Lo as assertRequest,Ie as assertTransactionEIP1559,Fe as assertTransactionEIP2930,Re as assertTransactionLegacy,Mo as blobsToCommitments,Ho as blobsToProofs,Za as boolToBytes,Ja as boolToHex,ko as bytesToBigInt,zo as bytesToBool,Qa as bytesToHex,qo as bytesToNumber,Vo as bytesToString,ue as ccipFetch,le as ccipRequest,Oo as checksumAddress,Go as commitmentToVersionedHash,jo as commitmentsToVersionedHashes,Wo as concat,Ko as concatBytes,Zo as concatHex,k as createClient,F as createNonceManager,r as createPublicClient,j as createTransport,z as custom,Jo as decodeAbiParameters,Qo as decodeErrorResult,Xo as decodeEventLog,ce as decodeFunctionData,Yo as decodeFunctionResult,_o as defineBlock,t as defineChain,$o as defineTransaction,as as defineTransactionReceipt,rs as defineTransactionRequest,os as deploylessCallViaBytecodeBytecode,ss as deploylessCallViaFactoryBytecode,es as encodeAbiParameters,ts as encodeDeployData,de as encodeErrorResult,R as encodeEventTopics,is as encodeFunctionData,Ee as encodeFunctionResult,x as encodePacked,Xa as erc20Abi,Ya as erc6492SignatureValidatorAbi,ns as erc6492SignatureValidatorByteCode,C as ethAddress,_a as etherUnits,he as extendSchema,W as fallback,cs as formatBlock,ds as formatEther,$a as formatGwei,Es as formatLog,ps as formatTransaction,us as formatTransactionReceipt,ls as formatTransactionRequest,ar as formatUnits,rr as fromHex,ms as getAbiItem,Ts as getAddress,gs as getChainContractAddress,bs as getContractError,hs as getEventSelector,ys as getEventSignature,fs as getFunctionSelector,vs as getFunctionSignature,As as getTransactionType,$s as getTypesForEIP712Domain,or as gweiUnits,ae as hashDomain,re as hashMessage,oe as hashStruct,se as hashTypedData,sr as hexToBigInt,er as hexToBool,tr as hexToBytes,ir as hexToNumber,B as hexToSignature,nr as hexToString,s as http,Ss as isAddress,Is as isAddressEqual,cr as isHex,Fs as keccak256,N as labelhash,Rs as maxUint16,xs as maxUint256,dr as multicall3Abi,P as namehash,Er as numberToBytes,pr as numberToHex,me as offchainLookup,Te as offchainLookupAbiItem,ge as offchainLookupSignature,ur as pad,lr as padBytes,mr as padHex,Cs as parseAbi,ye as parseAbiItem,fe as parseAbiParameters,Bs as parseEventLogs,D as parseSignature,q as parseUnits,Ns as prepareEncodeFunctionData,ee as presignMessagePrefix,U as publicActions,Ps as recoverAddress,Ds as recoverPublicKey,Us as rpcTransactionType,xe as serializeAccessList,w as serializeErc6492Signature,ve as serializeSignature,Ce as serializeTransaction,ws as sha256,K as shouldThrow,Ae as signatureToHex,Tr as size,Ls as slice,Ms as sliceBytes,Hs as sliceHex,gr as stringToBytes,br as stringToHex,hr as stringify,ks as toBlobSidecars,zs as toBlobs,yr as toBytes,qs as toEventHash,Vs as toEventSelector,Os as toEventSignature,Gs as toFunctionHash,js as toFunctionSelector,Ws as toFunctionSignature,fr as toHex,te as toPrefixedMessage,Ks as toRlp,Zs as transactionType,vr as trim,Ar as universalSignatureValidatorAbi,Js as universalSignatureValidatorByteCode,ie as validateTypedData,V as withCache,Z as withRetry,J as withTimeout,L as zeroAddress};
1
+ import{c as r}from"./parseSignature-eP7njmVY.js";import{B as y,E as f,a as v,b as A,F as S,W as I,d as F,e as R,f as x,g as C,p as B,l as N,n as P,p as D,h as U,s as w,z as L}from"./parseSignature-eP7njmVY.js";import{I as H,c as k,a as z,p as q,w as V}from"./custom-CtkIvR1q.js";import{h as s}from"./W3MFrameProviderSingleton-BNh7T9LS.js";import{U as G,c as j,f as W,s as K,w as Z,a as J}from"./W3MFrameProviderSingleton-BNh7T9LS.js";import{A as X,a as Y,B as _,b as $,C as aa,D as ra,E as oa,F as sa,c as ea,H as ta,I as ia,d as na,e as ca,f as da,g as Ea,h as pa,i as ua,j as la,k as ma,l as Ta,J as ga,L as ba,M as ha,m as ya,N as fa,n as va,o as Aa,P as Sa,p as Ia,q as Fa,R as Ra,r as xa,s as Ca,t as Ba,u as Na,S as Pa,v as Da,w as Ua,x as wa,T as La,y as Ma,z as Ha,G as ka,U as za,K as qa,O as Va,Q as Oa,V as Ga,W as ja,X as Wa,Y as Ka,Z as Za,_ as Ja,$ as Qa,a0 as Xa,a1 as Ya,a2 as _a,a3 as $a,a4 as ar,a5 as rr,a6 as or,a7 as sr,a8 as er,a9 as tr,aa as ir,ab as nr,ac as cr,ad as dr,ae as Er,af as pr,ag as ur,ah as lr,ai as mr,aj as Tr,ak as gr,al as br,am as hr,an as yr,ao as fr,ap as vr,a1 as Ar}from"./NetworkUtil-DXqql1Wz.js";import{A as Ir,a as Fr,b as Rr,c as xr,d as Cr,e as Br,f as Nr,g as Pr,h as Dr,i as Ur,j as wr,k as Lr,l as Mr,m as Hr,n as kr,o as zr,p as qr,B as Vr,q as Or,r as Gr,C as jr,s as Wr,t as Kr,u as Zr,v as Jr,w as Qr,x as Xr,y as Yr,z as _r,D as $r,E as ao,F as ro,G as oo,H as so,I as eo,J as to,K as io,L as no,M as co,N as Eo,O as po,P as uo,Q as lo,R as mo,S as To,T as go,U as bo,V as ho,W as yo,X as fo,Y as vo,Z as Ao,_ as So,$ as Io,a0 as Fo,a1 as Ro,a2 as xo,a3 as Co,a4 as Bo,a5 as No,a6 as Po,a7 as Do,a8 as Uo,a9 as wo,aa as Lo,ab as Mo,ac as Ho,ad as ko,ae as zo,af as qo,ag as Vo,ah as Oo,ai as Go,aj as jo,ak as Wo,al as Ko,am as Zo,an as Jo,ao as Qo,ap as Xo,aq as Yo,ar as _o,as as $o,at as as,au as rs,av as os,aw as ss,ax as es,ay as ts,az as is,aA as ns,aB as cs,aC as ds,aD as Es,aE as ps,aF as us,aG as ls,aH as ms,aI as Ts,aJ as gs,aK as bs,aL as hs,aM as ys,aN as fs,aM as vs,aO as As,aP as Ss,aQ as Is,aR as Fs,aS as Rs,aT as xs,aU as Cs,aV as Bs,aW as Ns,aX as Ps,aY as Ds,aZ as Us,a_ as ws,a$ as Ls,b0 as Ms,b1 as Hs,b2 as ks,b3 as zs,b4 as qs,aL as Vs,aM as Os,b4 as Gs,aN as js,aM as Ws,b5 as Ks,b6 as Zs,aA as Js}from"./sendRawTransaction-daS8Cqba.js";import{I as Xs,a as Ys,b as _s,g as $s,h as ae,c as re,d as oe,e as se,p as ee,t as te,v as ie}from"./hashTypedData-ulq3qXHW.js";import{d as ce,e as de,a as Ee}from"./localBatchGatewayRequest-DldZ90JU.js";import{ccipRequest as ue,ccipRequest as le,offchainLookup as me,offchainLookupAbiItem as Te,offchainLookupSignature as ge}from"./ccip-BGow4NM2.js";import{d as t}from"./verifyHash-DlqrxU4F.js";import{e as he,p as ye,a as fe,s as ve,s as Ae}from"./verifyHash-DlqrxU4F.js";import{a as Ie,b as Fe,c as Re,s as xe,d as Ce}from"./serializeTransaction-hW8PYHkl.js";import"./secp256k1-DhRlT0ib.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-w01WQ1OT.js";import"./react-BYHuwl8r.js";import"./sentry-Dx-KuLV3.js";import"./index-D3CBiscc.js";import"./events-DQ172AOg.js";import"./index-BpBLqmY7.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Dj0kiq3a.js";export{Ir as AbiConstructorNotFoundError,Fr as AbiConstructorParamsNotFoundError,Rr as AbiDecodingDataSizeTooSmallError,xr as AbiDecodingZeroDataError,Cr as AbiEncodingArrayLengthMismatchError,Br as AbiEncodingBytesSizeMismatchError,Nr as AbiEncodingLengthMismatchError,Pr as AbiErrorInputsNotFoundError,Dr as AbiErrorNotFoundError,Ur as AbiErrorSignatureNotFoundError,wr as AbiEventNotFoundError,Lr as AbiEventSignatureEmptyTopicsError,Mr as AbiEventSignatureNotFoundError,Hr as AbiFunctionNotFoundError,kr as AbiFunctionOutputsNotFoundError,zr as AbiFunctionSignatureNotFoundError,qr as AccountStateConflictError,X as AtomicReadyWalletRejectedUpgradeError,Y as AtomicityNotSupportedError,_ as BaseError,Vr as BaseFeeScalarError,Or as BlockNotFoundError,y as BundleFailedError,$ as BundleTooLargeError,Gr as BytesSizeMismatchError,jr as CallExecutionError,aa as ChainDisconnectedError,Wr as ChainDoesNotSupportContract,Kr as ChainMismatchError,Zr as ChainNotFoundError,Jr as CircularReferenceError,Qr as ClientChainNotConfiguredError,Xr as ContractFunctionExecutionError,Yr as ContractFunctionRevertedError,_r as ContractFunctionZeroDataError,$r as CounterfactualDeploymentFailedError,ao as DecodeLogDataMismatch,ro as DecodeLogTopicsMismatch,ra as DuplicateIdError,oo as Eip1559FeesNotSupportedError,f as EnsAvatarInvalidNftUriError,v as EnsAvatarUnsupportedNamespaceError,A as EnsAvatarUriResolutionError,so as EstimateGasExecutionError,oa as ExecutionRevertedError,sa as FeeCapTooHighError,ea as FeeCapTooLowError,S as FilterTypeNotSupportedError,ta as HttpRequestError,ia as InsufficientFundsError,na as IntegerOutOfRangeError,ca as InternalRpcError,da as IntrinsicGasTooHighError,Ea as IntrinsicGasTooLowError,eo as InvalidAbiDecodingTypeError,to as InvalidAbiEncodingTypeError,io as InvalidAbiItemError,no as InvalidAbiParametersError,co as InvalidAbiTypeParameterError,Eo as InvalidAddressError,po as InvalidArrayError,pa as InvalidBytesBooleanError,uo as InvalidChainIdError,H as InvalidDecimalNumberError,lo as InvalidDefinitionTypeError,Xs as InvalidDomainError,mo as InvalidFunctionModifierError,ua as InvalidHexBooleanError,la as InvalidInputRpcError,To as InvalidLegacyVError,go as InvalidModifierError,bo as InvalidParameterError,ma as InvalidParamsRpcError,ho as InvalidParenthesisError,Ys as InvalidPrimaryTypeError,Ta as InvalidRequestRpcError,yo as InvalidSerializableTransactionError,fo as InvalidSignatureError,vo as InvalidStorageKeySizeError,Ao as InvalidStructSignatureError,_s as InvalidStructTypeError,ga as JsonRpcVersionUnsupportedError,ba as LimitExceededRpcError,So as MaxFeePerGasTooLowError,ha as MethodNotFoundRpcError,ya as MethodNotSupportedRpcError,fa as NonceMaxValueError,va as NonceTooHighError,Aa as NonceTooLowError,Sa as ParseRpcError,Ia as ProviderDisconnectedError,Fa as ProviderRpcError,Io as RawContractError,Ra as ResourceNotFoundRpcError,xa as ResourceUnavailableRpcError,Ca as ResponseBodyTooLargeError,Ba as RpcError,Na as RpcRequestError,Pa as SizeExceedsPaddingSizeError,Da as SizeOverflowError,Ua as SliceOffsetOutOfBoundsError,Fo as SolidityProtectedKeywordError,Ro as StateAssignmentConflictError,wa as SwitchChainError,La as TimeoutError,Ma as TipAboveFeeCapError,xo as TransactionExecutionError,Co as TransactionNotFoundError,Bo as TransactionReceiptNotFoundError,Ha as TransactionRejectedRpcError,ka as TransactionTypeNotSupportedError,za as UnauthorizedProviderError,qa as UnknownBundleIdError,Va as UnknownNodeError,Oa as UnknownRpcError,No as UnknownSignatureError,Po as UnknownTypeError,Ga as UnsupportedChainIdError,ja as UnsupportedNonOptionalCapabilityError,Do as UnsupportedPackedAbiType,Wa as UnsupportedProviderMethodError,G as UrlRequiredError,Ka as UserRejectedRequestError,I as WaitForCallsStatusTimeoutError,Uo as WaitForTransactionReceiptTimeoutError,wo as assertCurrentChain,Lo as assertRequest,Ie as assertTransactionEIP1559,Fe as assertTransactionEIP2930,Re as assertTransactionLegacy,Mo as blobsToCommitments,Ho as blobsToProofs,Za as boolToBytes,Ja as boolToHex,ko as bytesToBigInt,zo as bytesToBool,Qa as bytesToHex,qo as bytesToNumber,Vo as bytesToString,ue as ccipFetch,le as ccipRequest,Oo as checksumAddress,Go as commitmentToVersionedHash,jo as commitmentsToVersionedHashes,Wo as concat,Ko as concatBytes,Zo as concatHex,k as createClient,F as createNonceManager,r as createPublicClient,j as createTransport,z as custom,Jo as decodeAbiParameters,Qo as decodeErrorResult,Xo as decodeEventLog,ce as decodeFunctionData,Yo as decodeFunctionResult,_o as defineBlock,t as defineChain,$o as defineTransaction,as as defineTransactionReceipt,rs as defineTransactionRequest,os as deploylessCallViaBytecodeBytecode,ss as deploylessCallViaFactoryBytecode,es as encodeAbiParameters,ts as encodeDeployData,de as encodeErrorResult,R as encodeEventTopics,is as encodeFunctionData,Ee as encodeFunctionResult,x as encodePacked,Xa as erc20Abi,Ya as erc6492SignatureValidatorAbi,ns as erc6492SignatureValidatorByteCode,C as ethAddress,_a as etherUnits,he as extendSchema,W as fallback,cs as formatBlock,ds as formatEther,$a as formatGwei,Es as formatLog,ps as formatTransaction,us as formatTransactionReceipt,ls as formatTransactionRequest,ar as formatUnits,rr as fromHex,ms as getAbiItem,Ts as getAddress,gs as getChainContractAddress,bs as getContractError,hs as getEventSelector,ys as getEventSignature,fs as getFunctionSelector,vs as getFunctionSignature,As as getTransactionType,$s as getTypesForEIP712Domain,or as gweiUnits,ae as hashDomain,re as hashMessage,oe as hashStruct,se as hashTypedData,sr as hexToBigInt,er as hexToBool,tr as hexToBytes,ir as hexToNumber,B as hexToSignature,nr as hexToString,s as http,Ss as isAddress,Is as isAddressEqual,cr as isHex,Fs as keccak256,N as labelhash,Rs as maxUint16,xs as maxUint256,dr as multicall3Abi,P as namehash,Er as numberToBytes,pr as numberToHex,me as offchainLookup,Te as offchainLookupAbiItem,ge as offchainLookupSignature,ur as pad,lr as padBytes,mr as padHex,Cs as parseAbi,ye as parseAbiItem,fe as parseAbiParameters,Bs as parseEventLogs,D as parseSignature,q as parseUnits,Ns as prepareEncodeFunctionData,ee as presignMessagePrefix,U as publicActions,Ps as recoverAddress,Ds as recoverPublicKey,Us as rpcTransactionType,xe as serializeAccessList,w as serializeErc6492Signature,ve as serializeSignature,Ce as serializeTransaction,ws as sha256,K as shouldThrow,Ae as signatureToHex,Tr as size,Ls as slice,Ms as sliceBytes,Hs as sliceHex,gr as stringToBytes,br as stringToHex,hr as stringify,ks as toBlobSidecars,zs as toBlobs,yr as toBytes,qs as toEventHash,Vs as toEventSelector,Os as toEventSignature,Gs as toFunctionHash,js as toFunctionSelector,Ws as toFunctionSignature,fr as toHex,te as toPrefixedMessage,Ks as toRlp,Zs as transactionType,vr as trim,Ar as universalSignatureValidatorAbi,Js as universalSignatureValidatorByteCode,ie as validateTypedData,V as withCache,Z as withRetry,J as withTimeout,L as zeroAddress};
@@ -1,4 +1,4 @@
1
- import{w as f,i as w,b as l}from"./lit-element-B3y9oplH.js";import{n as o,o as y}from"./class-map-CxwNmq0D.js";import{c as v,U as $}from"./index-tCYP1O3W.js";import"./index-CEnhHz30.js";import{d as b,r as x,e as z}from"./index-DNvcQt0s.js";import"./index-CyITvpDL.js";const S=f`<svg width="86" height="96" fill="none">
1
+ import{w as f,i as w,b as l}from"./lit-element-B3y9oplH.js";import{n as o,o as y}from"./class-map-CxwNmq0D.js";import{c as v,U as $}from"./index-DmouEX3z.js";import"./index-B4VWghxR.js";import{d as b,r as x,e as z}from"./index-BwpU8az-.js";import"./index-C8N5dIBi.js";const S=f`<svg width="86" height="96" fill="none">
2
2
  <path
3
3
  d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
4
4
  />
@@ -1,4 +1,4 @@
1
- import{i as b,b as c}from"./lit-element-B3y9oplH.js";import{n}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-tCYP1O3W.js";import"./index-p4Ph7ugv.js";import{d as g,r as m,e as h}from"./index-DNvcQt0s.js";const v=g`
1
+ import{i as b,b as c}from"./lit-element-B3y9oplH.js";import{n}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-DmouEX3z.js";import"./index-yJr5AHy6.js";import{d as g,r as m,e as h}from"./index-BwpU8az-.js";const v=g`
2
2
  :host {
3
3
  width: var(--local-width);
4
4
  }
@@ -1,2 +1,2 @@
1
- import{c1 as j,u as k,c2 as g,c3 as _,ak as M,al as h,c4 as F,c5 as I,c6 as R,c7 as V,j as z,T as O,c8 as L}from"./index-C616xNgB.js";import{c9 as Me,ca as Oe,cb as we,K as $e,cc as Ee,cd as Pe,ce as Te,cf as je,cg as ke,w as _e,ch as Fe,ci as Ie,cj as Re,ck as Ve,cl as ze}from"./index-C616xNgB.js";import{u as Ae}from"./useTheme-Czw2-J4G.js";import{s as He,s as Be}from"./styled-CljNQW-J.js";import{j as A}from"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";function C(e){const{theme:t,name:n,props:s}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?s:j(t.components[n].defaultProps,s)}function H({props:e,name:t,defaultTheme:n,themeId:s}){let r=k(n);return r=r[s]||r,C({theme:r,name:t,props:e})}function $(e,t=0,n=1){return _(e,t,n)}function B(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(s=>s+s)),n?`rgb${n.length===4?"a":""}(${n.map((s,r)=>r<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function U(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function f(e){if(e.type)return e;if(e.charAt(0)==="#")return f(B(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(g(9,e));let s=e.substring(t+1,e.length-1),r;if(n==="color"){if(s=s.split(" "),r=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(g(10,r))}else s=s.split(",");return s=s.map(o=>parseFloat(o)),{type:n,values:s,colorSpace:r}}function S(e){const{type:t,colorSpace:n}=e;let{values:s}=e;return t.indexOf("rgb")!==-1?s=s.map((r,o)=>o<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),t.indexOf("color")!==-1?s=`${n} ${s.join(" ")}`:s=`${s.join(", ")}`,`${t}(${s})`}function ie(e){if(e.indexOf("#")===0)return e;const{values:t}=f(e);return`#${t.map((n,s)=>U(s===3?Math.round(255*n):n)).join("")}`}function G(e){e=f(e);const{values:t}=e,n=t[0],s=t[1]/100,r=t[2]/100,o=s*Math.min(r,1-r),p=(c,m=(c+n/30)%12)=>r-o*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const i=[Math.round(p(0)*255),Math.round(p(8)*255),Math.round(p(4)*255)];return e.type==="hsla"&&(l+="a",i.push(t[3])),S({type:l,values:i})}function w(e){e=f(e);let t=e.type==="hsl"||e.type==="hsla"?f(G(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oe(e,t){const n=w(e),s=w(t);return(Math.max(n,s)+.05)/(Math.min(n,s)+.05)}function pe(e,t){return e=f(e),t=$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,S(e)}function W(e,t){if(e=f(e),t=$(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return S(e)}function D(e,t){if(e=f(e),t=$(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return S(e)}function ue(e,t=.15){return w(e)>.5?W(e,t):D(e,t)}const K=["defaultProps","mixins","overrides","palette","props","styleOverrides"],N=["type","mode"];function me(e){const{defaultProps:t={},mixins:n={},overrides:s={},palette:r={},props:o={},styleOverrides:p={}}=e,l=M(e,K),i=h({},l,{components:{}});Object.keys(t).forEach(a=>{const u=i.components[a]||{};u.defaultProps=t[a],i.components[a]=u}),Object.keys(o).forEach(a=>{const u=i.components[a]||{};u.defaultProps=o[a],i.components[a]=u}),Object.keys(p).forEach(a=>{const u=i.components[a]||{};u.styleOverrides=p[a],i.components[a]=u}),Object.keys(s).forEach(a=>{const u=i.components[a]||{};u.styleOverrides=s[a],i.components[a]=u}),i.spacing=F(e.spacing);const c=I(e.breakpoints||{}),m=i.spacing;i.mixins=h({gutters:(a={})=>h({paddingLeft:m(2),paddingRight:m(2)},a,{[c.up("sm")]:h({paddingLeft:m(3),paddingRight:m(3)},a[c.up("sm")])})},n);const{type:y,mode:x}=r,v=M(r,N),b=x||y||"light";return i.palette=h({text:{hint:b==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:b,type:b},v),i}function le(e,...t){return R(V({unstable_strictMode:!0},e),...t)}let E=!1;function ce(e){return E||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(`
1
+ import{c2 as j,u as k,c3 as g,c4 as _,ak as M,al as h,c5 as F,c6 as I,c7 as R,c8 as V,j as z,T as O,c9 as L}from"./index-BpBLqmY7.js";import{ca as Me,cb as Oe,cc as we,K as $e,cd as Ee,ce as Pe,cf as Te,cg as je,ch as ke,w as _e,ci as Fe,cj as Ie,ck as Re,cl as Ve,cm as ze}from"./index-BpBLqmY7.js";import{u as Ae}from"./useTheme-D2_ZQh6-.js";import{s as He,s as Be}from"./styled-CoVCpn99.js";import{j as A}from"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";function C(e){const{theme:t,name:n,props:s}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?s:j(t.components[n].defaultProps,s)}function H({props:e,name:t,defaultTheme:n,themeId:s}){let r=k(n);return r=r[s]||r,C({theme:r,name:t,props:e})}function $(e,t=0,n=1){return _(e,t,n)}function B(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(s=>s+s)),n?`rgb${n.length===4?"a":""}(${n.map((s,r)=>r<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function U(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function f(e){if(e.type)return e;if(e.charAt(0)==="#")return f(B(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(g(9,e));let s=e.substring(t+1,e.length-1),r;if(n==="color"){if(s=s.split(" "),r=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(g(10,r))}else s=s.split(",");return s=s.map(o=>parseFloat(o)),{type:n,values:s,colorSpace:r}}function S(e){const{type:t,colorSpace:n}=e;let{values:s}=e;return t.indexOf("rgb")!==-1?s=s.map((r,o)=>o<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),t.indexOf("color")!==-1?s=`${n} ${s.join(" ")}`:s=`${s.join(", ")}`,`${t}(${s})`}function ie(e){if(e.indexOf("#")===0)return e;const{values:t}=f(e);return`#${t.map((n,s)=>U(s===3?Math.round(255*n):n)).join("")}`}function G(e){e=f(e);const{values:t}=e,n=t[0],s=t[1]/100,r=t[2]/100,o=s*Math.min(r,1-r),p=(c,m=(c+n/30)%12)=>r-o*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const i=[Math.round(p(0)*255),Math.round(p(8)*255),Math.round(p(4)*255)];return e.type==="hsla"&&(l+="a",i.push(t[3])),S({type:l,values:i})}function w(e){e=f(e);let t=e.type==="hsl"||e.type==="hsla"?f(G(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oe(e,t){const n=w(e),s=w(t);return(Math.max(n,s)+.05)/(Math.min(n,s)+.05)}function pe(e,t){return e=f(e),t=$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,S(e)}function W(e,t){if(e=f(e),t=$(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return S(e)}function D(e,t){if(e=f(e),t=$(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return S(e)}function ue(e,t=.15){return w(e)>.5?W(e,t):D(e,t)}const K=["defaultProps","mixins","overrides","palette","props","styleOverrides"],N=["type","mode"];function me(e){const{defaultProps:t={},mixins:n={},overrides:s={},palette:r={},props:o={},styleOverrides:p={}}=e,l=M(e,K),i=h({},l,{components:{}});Object.keys(t).forEach(a=>{const u=i.components[a]||{};u.defaultProps=t[a],i.components[a]=u}),Object.keys(o).forEach(a=>{const u=i.components[a]||{};u.defaultProps=o[a],i.components[a]=u}),Object.keys(p).forEach(a=>{const u=i.components[a]||{};u.styleOverrides=p[a],i.components[a]=u}),Object.keys(s).forEach(a=>{const u=i.components[a]||{};u.styleOverrides=s[a],i.components[a]=u}),i.spacing=F(e.spacing);const c=I(e.breakpoints||{}),m=i.spacing;i.mixins=h({gutters:(a={})=>h({paddingLeft:m(2),paddingRight:m(2)},a,{[c.up("sm")]:h({paddingLeft:m(3),paddingRight:m(3)},a[c.up("sm")])})},n);const{type:y,mode:x}=r,v=M(r,N),b=x||y||"light";return i.palette=h({text:{hint:b==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:b,type:b},v),i}function le(e,...t){return R(V({unstable_strictMode:!0},e),...t)}let E=!1;function ce(e){return E||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(`
2
2
  `)),E=!0),e}function P(e){return String(parseFloat(e)).length===String(e).length}function q(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function d(e){return parseFloat(e)}function J(e){return(t,n)=>{const s=q(t);if(s===n)return t;let r=d(t);s!=="px"&&(s==="em"||s==="rem")&&(r=d(t)*d(e));let o=r;if(n!=="px")if(n==="em")o=r/d(e);else if(n==="rem")o=r/d(e);else return t;return parseFloat(o.toFixed(5))+n}}function Q({size:e,grid:t}){const n=e-e%t,s=n+t;return e-n<s-e?n:s}function X({lineHeight:e,pixels:t,htmlFontSize:n}){return t/(e*n)}function Y({cssProperty:e,min:t,max:n,unit:s="rem",breakpoints:r=[600,900,1200],transform:o=null}){const p={[e]:`${t}${s}`},l=(n-t)/r[r.length-1];return r.forEach(i=>{let c=t+l*i;o!==null&&(c=o(c)),p[`@media (min-width:${i}px)`]={[e]:`${Math.round(c*1e4)/1e4}${s}`}}),p}function he(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:s=!1,factor:r=2,variants:o=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,p=h({},e);p.typography=h({},p.typography);const l=p.typography,i=J(l.htmlFontSize),c=n.map(m=>p.breakpoints.values[m]);return o.forEach(m=>{const y=l[m];if(!y)return;const x=parseFloat(i(y.fontSize,"rem"));if(x<=1)return;const v=x,b=1+(v-1)/r;let{lineHeight:a}=y;if(!P(a)&&!s)throw new Error(g(6));P(a)||(a=parseFloat(i(a,"rem"))/parseFloat(x));let u=null;s||(u=T=>Q({size:T,grid:X({pixels:4,lineHeight:a,htmlFontSize:l.htmlFontSize})})),l[m]=h({},y,Y({cssProperty:"fontSize",min:b,max:v,unit:"rem",breakpoints:c,transform:u}))}),p}function fe({props:e,name:t}){return H({props:e,name:t,defaultTheme:z,themeId:O})}const Z=["theme"];function de(e){let{theme:t}=e,n=M(e,Z);const s=t[O];return A.jsx(L,h({},n,{themeId:s?O:void 0,theme:s||t}))}function ge(){throw new Error(g(14))}function ye(){throw new Error(g(15))}function xe(){throw new Error(g(16))}function be(){throw new Error(g(20))}export{Me as Experimental_CssVarsProvider,Oe as StyledEngineProvider,O as THEME_ID,de as ThemeProvider,me as adaptV4Theme,pe as alpha,we as createMuiTheme,ce as createStyles,R as createTheme,$e as css,W as darken,f as decomposeColor,Ee as duration,Pe as easing,ue as emphasize,He as experimentalStyled,Te as experimental_extendTheme,be as experimental_sx,oe as getContrastRatio,je as getInitColorSchemeScript,w as getLuminance,ke as getOverlayAlpha,B as hexToRgb,G as hslToRgb,_e as keyframes,D as lighten,ge as makeStyles,Fe as private_createMixins,Ie as private_createTypography,Re as private_excludeVariablesFromRoot,S as recomposeColor,he as responsiveFontSizes,ie as rgbToHex,Ve as shouldSkipGeneratingVar,Be as styled,le as unstable_createMuiStrictModeTheme,q as unstable_getUnit,d as unstable_toUnitless,ze as useColorScheme,Ae as useTheme,fe as useThemeProps,ye as withStyles,xe as withTheme};
@@ -1 +1 @@
1
- import{P as t,A as i,a as u}from"./index-CdFrv2eV.js";import{W as Ue,b as Ee,c as Te}from"./index-CdFrv2eV.js";import"./lit-element-B3y9oplH.js";import"./class-map-CxwNmq0D.js";import"./index-DNvcQt0s.js";import"./index-C616xNgB.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./W3MFrameProviderSingleton-CPDmjNiA.js";import"./index-w01WQ1OT.js";import"./index-JuH5W7YS.js";import"./events-DQ172AOg.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./NetworkUtil-DXqql1Wz.js";import"./index-N5sgh9IC.js";import"./index-nibyPLVP.js";import"./index-DCAUOF_r.js";import"./index.es-D73EniUm.js";import"./index-tCYP1O3W.js";import"./index-CmlH9TBP.js";import"./index-p4Ph7ugv.js";import"./index-CFziwAGz.js";import"./index-CEnhHz30.js";import"./index-DKghJgJj.js";import"./index-CUAEZ5zJ.js";import"./index-CyITvpDL.js";import"./index-Gw3Mauv_.js";import"./index-Dag4zALf.js";import"./MathUtil-BGCe3rZ3.js";const C=3e5;async function U(e){return t.handleOpenPay(e)}async function X(e,r=C){if(r<=0)throw new i(u.INVALID_PAYMENT_CONFIG,"Timeout must be greater than 0");try{await U(e)}catch(s){throw s instanceof i?s:new i(u.UNABLE_TO_INITIATE_PAYMENT,s.message)}return new Promise((s,l)=>{let o=!1;const c=setTimeout(()=>{o||(o=!0,m(),l(new i(u.GENERIC_PAYMENT_ERROR,"Payment timeout")))},r);function n(){if(o)return;const a=t.state.currentPayment,p=t.state.error,D=t.state.isPaymentInProgress;if((a==null?void 0:a.status)==="SUCCESS"){o=!0,m(),clearTimeout(c),s({success:!0,result:a.result});return}if((a==null?void 0:a.status)==="FAILED"){o=!0,m(),clearTimeout(c),s({success:!1,error:p||"Payment failed"});return}p&&!D&&!a&&(o=!0,m(),clearTimeout(c),s({success:!1,error:p}))}const b=d("currentPayment",n),y=d("error",n),S=d("isPaymentInProgress",n),m=E([b,y,S]);n()})}function $(){return t.getExchanges()}function ee(){var e;return(e=t.state.currentPayment)==null?void 0:e.result}function te(){return t.state.error}function ae(){return t.state.isPaymentInProgress}function d(e,r){return t.subscribeKey(e,r)}function E(e){return()=>{e.forEach(r=>{try{r()}catch{}})}}const se={network:"eip155:8453",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},re={network:"eip155:8453",asset:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},oe={network:"eip155:84532",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},ne={network:"eip155:1",asset:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},me={network:"eip155:10",asset:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},ie={network:"eip155:42161",asset:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},ce={network:"eip155:137",asset:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},pe={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},ue={network:"eip155:1",asset:"0xdAC17F958D2ee523a2206206994597C13D831ec7",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},de={network:"eip155:10",asset:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},le={network:"eip155:42161",asset:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},be={network:"eip155:137",asset:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},ye={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},Se={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"native",metadata:{name:"Solana",symbol:"SOL",decimals:9}};export{t as PayController,Ue as W3mPayLoadingView,Ee as W3mPayQuoteView,Te as W3mPayView,ie as arbitrumUSDC,le as arbitrumUSDT,se as baseETH,oe as baseSepoliaETH,re as baseUSDC,ne as ethereumUSDC,ue as ethereumUSDT,$ as getExchanges,ae as getIsPaymentInProgress,te as getPayError,ee as getPayResult,U as openPay,me as optimismUSDC,de as optimismUSDT,X as pay,ce as polygonUSDC,be as polygonUSDT,Se as solanaSOL,pe as solanaUSDC,ye as solanaUSDT};
1
+ import{P as t,A as i,a as u}from"./index-YX6Ay2YX.js";import{W as Ue,b as Ee,c as Te}from"./index-YX6Ay2YX.js";import"./lit-element-B3y9oplH.js";import"./class-map-CxwNmq0D.js";import"./index-BwpU8az-.js";import"./index-BpBLqmY7.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./W3MFrameProviderSingleton-BNh7T9LS.js";import"./index-w01WQ1OT.js";import"./index-D3CBiscc.js";import"./events-DQ172AOg.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./NetworkUtil-DXqql1Wz.js";import"./index-DEpHjDox.js";import"./index-nibyPLVP.js";import"./index-C1ABS6aZ.js";import"./index.es-nXwNgZDa.js";import"./index-DmouEX3z.js";import"./index-BLtmHnvk.js";import"./index-yJr5AHy6.js";import"./index-B1yZmsbg.js";import"./index-B4VWghxR.js";import"./index-DPJNY0Ni.js";import"./index-BG93ruhj.js";import"./index-C8N5dIBi.js";import"./index-Cutc7nXs.js";import"./index-aOhbQl_e.js";import"./MathUtil-BGCe3rZ3.js";const C=3e5;async function U(e){return t.handleOpenPay(e)}async function X(e,r=C){if(r<=0)throw new i(u.INVALID_PAYMENT_CONFIG,"Timeout must be greater than 0");try{await U(e)}catch(s){throw s instanceof i?s:new i(u.UNABLE_TO_INITIATE_PAYMENT,s.message)}return new Promise((s,l)=>{let o=!1;const c=setTimeout(()=>{o||(o=!0,m(),l(new i(u.GENERIC_PAYMENT_ERROR,"Payment timeout")))},r);function n(){if(o)return;const a=t.state.currentPayment,p=t.state.error,D=t.state.isPaymentInProgress;if((a==null?void 0:a.status)==="SUCCESS"){o=!0,m(),clearTimeout(c),s({success:!0,result:a.result});return}if((a==null?void 0:a.status)==="FAILED"){o=!0,m(),clearTimeout(c),s({success:!1,error:p||"Payment failed"});return}p&&!D&&!a&&(o=!0,m(),clearTimeout(c),s({success:!1,error:p}))}const b=d("currentPayment",n),y=d("error",n),S=d("isPaymentInProgress",n),m=E([b,y,S]);n()})}function $(){return t.getExchanges()}function ee(){var e;return(e=t.state.currentPayment)==null?void 0:e.result}function te(){return t.state.error}function ae(){return t.state.isPaymentInProgress}function d(e,r){return t.subscribeKey(e,r)}function E(e){return()=>{e.forEach(r=>{try{r()}catch{}})}}const se={network:"eip155:8453",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},re={network:"eip155:8453",asset:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},oe={network:"eip155:84532",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},ne={network:"eip155:1",asset:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},me={network:"eip155:10",asset:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},ie={network:"eip155:42161",asset:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},ce={network:"eip155:137",asset:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},pe={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},ue={network:"eip155:1",asset:"0xdAC17F958D2ee523a2206206994597C13D831ec7",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},de={network:"eip155:10",asset:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},le={network:"eip155:42161",asset:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},be={network:"eip155:137",asset:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},ye={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},Se={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"native",metadata:{name:"Solana",symbol:"SOL",decimals:9}};export{t as PayController,Ue as W3mPayLoadingView,Ee as W3mPayQuoteView,Te as W3mPayView,ie as arbitrumUSDC,le as arbitrumUSDT,se as baseETH,oe as baseSepoliaETH,re as baseUSDC,ne as ethereumUSDC,ue as ethereumUSDT,$ as getExchanges,ae as getIsPaymentInProgress,te as getPayError,ee as getPayResult,U as openPay,me as optimismUSDC,de as optimismUSDT,X as pay,ce as polygonUSDC,be as polygonUSDT,Se as solanaSOL,pe as solanaUSDC,ye as solanaUSDT};