@dcl/shop 0.1.0-29736515487.commit-b64bf82 → 0.1.0-29792819793.commit-bcbfeac

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 (207) hide show
  1. package/assets/{AnimatedBackground-BJBUqhHZ.js → AnimatedBackground-D56igB0H.js} +1 -1
  2. package/assets/Assets-DvxF_g1B.js +1 -0
  3. package/assets/Cart-C75800mc.css +1 -0
  4. package/assets/Cart-Ccc7hMA3.js +3 -0
  5. package/assets/{CircularProgress-C9g4a9bc.js → CircularProgress-B5065SQc.js} +4 -4
  6. package/assets/Collection-CegF4Bg6.js +45 -0
  7. package/assets/Collection-Dpog3TvS.css +1 -0
  8. package/assets/CollectionCarousel-CI_xuvlL.js +1 -0
  9. package/assets/Creator-Cpx_caba.css +1 -0
  10. package/assets/Creator-DMEgGcPH.js +1 -0
  11. package/assets/{CssVarsProvider-Bc8wQjEb.js → CssVarsProvider-Dk1aMrkN.js} +3 -3
  12. package/assets/ErrorNotice-CKeOu_Oi.js +1 -0
  13. package/assets/{ExchangeController-B6lNqmFK.js → ExchangeController-C-7GeeUG.js} +1 -1
  14. package/assets/GetCredits-DkdN8Bhp.js +1 -0
  15. package/assets/{HelpersUtil-zS6eOrPz.js → HelpersUtil-BSdS6suS.js} +1 -1
  16. package/assets/ImportListings-AQXg48hx.js +5 -0
  17. package/assets/{ImportListings-Cdx3om4x.css → ImportListings-Dx8BzO4r.css} +1 -1
  18. package/assets/ItemDetail-5q6iNQ7f.js +29 -0
  19. package/assets/ItemDetail-CV-0-ZkB.css +1 -0
  20. package/assets/LoadMore-CpjVWxfC.js +7 -0
  21. package/assets/MarketCheckout-DOjNy7WS.js +3 -0
  22. package/assets/MyAssets-DyNGSmlq.js +7 -0
  23. package/assets/MyAssets-FkZXy017.css +1 -0
  24. package/assets/MyFavorites-DyIDy1bn.js +3 -0
  25. package/assets/MyPurchases-DvllAazp.js +3 -0
  26. package/assets/NotFound-pLaOVJZH.js +1 -0
  27. package/assets/StoreSettings-Bk5IXwNu.css +1 -0
  28. package/assets/StoreSettings-CGJVKy8y.js +53 -0
  29. package/assets/Success-QRszHOfo.js +98 -0
  30. package/assets/{SwapController-BHBv5Fp0.js → SwapController-NM8NLhBK.js} +1 -1
  31. package/assets/{TradeService-CNoDt48E.js → TradeService-tfJ3u36y.js} +1 -1
  32. package/assets/{W3MFrameProviderSingleton-Bndo_4Rg.js → W3MFrameProviderSingleton-Cw2a6UVb.js} +3 -3
  33. package/assets/{WebCryptoP256-Bt50-H1K.js → WebCryptoP256-DPkQuUHZ.js} +1 -1
  34. package/assets/{basic-Bub5O4ZI.js → basic-Dw_SNPcl.js} +1 -1
  35. package/assets/{biconomy-DuIIEXUB.js → biconomy-CRzlpcf3.js} +1 -1
  36. package/assets/{buy--wjHgZbY.js → buy-BhSXg06e.js} +1 -1
  37. package/assets/{buy-gasless-DaSij0O9.js → buy-gasless-7ufZIH4V.js} +1 -1
  38. package/assets/{cart-checkout-RV2JhHc0.js → cart-checkout-mDO-sH0L.js} +1 -1
  39. package/assets/categories-TbcSl5d3.js +7 -0
  40. package/assets/categories-_8oO8Yih.css +1 -0
  41. package/assets/{ccip-Cbub1KDX.js → ccip-CivR7OIS.js} +1 -1
  42. package/assets/{ccip-C1ke5tRS.js → ccip-DFqwb91R.js} +1 -1
  43. package/assets/collection-C6WmEOVc.js +1 -0
  44. package/assets/{controller-Cn9mR-pN.js → controller-BHb75Qgx.js} +2 -2
  45. package/assets/{core-Z6gT3FaJ.js → core-CbJ-Ervx.js} +4 -4
  46. package/assets/{custom-Djk6BRDC.js → custom-Ccs_ccnL.js} +1 -1
  47. package/assets/{data-capture-CaF6YYAr.js → data-capture-l63W8j3T.js} +1 -1
  48. package/assets/{decimals-BW2hoshz.js → decimals-DuIIGtOu.js} +1 -1
  49. package/assets/{decimals-_kiKzbOr.js → decimals-DzfF7TyV.js} +1 -1
  50. package/assets/{detectExtension-BkZ-FjJy.js → detectExtension-DFGJRiKZ.js} +1 -1
  51. package/assets/{email-1Van4lx1.js → email-dBQjbinH.js} +1 -1
  52. package/assets/{embedded-wallet-_TVgs7Qd.js → embedded-wallet-DUae_P_k.js} +1 -1
  53. package/assets/emotion-styled.browser.esm-CG5P7VGz.js +1 -0
  54. package/assets/{engine-D9uS1iWH.js → engine-oRVYxur7.js} +1 -1
  55. package/assets/{errors-BFbUxXdM.js → errors-DyHnPgpr.js} +1 -1
  56. package/assets/{estimate-l1-fee-DFpjQWvm.js → estimate-l1-fee-ARqdcX-t.js} +1 -1
  57. package/assets/{eth_estimateGas-XGJ1z-TU.js → eth_estimateGas-BSIKlyPh.js} +1 -1
  58. package/assets/{eth_getStorageAt-4_YV1iAo.js → eth_getStorageAt-CVgsobsA.js} +1 -1
  59. package/assets/{eth_getTransactionCount-DO_4-OAP.js → eth_getTransactionCount-SZqnB2Fd.js} +1 -1
  60. package/assets/{extractIPFS-CMkI68ZH.js → extractIPFS-BZfGMcbR.js} +1 -1
  61. package/assets/{features-Dzd7PGBD.js → features-Bd_x9PgJ.js} +1 -1
  62. package/assets/{fetchTokenMetadata-BJILnwgp.js → fetchTokenMetadata-ClzNbKM3.js} +2 -2
  63. package/assets/{get-ecosystem-wallet-info-BD5YDDMh.js → get-ecosystem-wallet-info-4G7NxEId.js} +1 -1
  64. package/assets/{getBalance-SRetmB3S.js → getBalance-NpSJnYq2.js} +1 -1
  65. package/assets/{getInstalledModules-DFh2dv3C.js → getInstalledModules-DP_6RMgU.js} +1 -1
  66. package/assets/{getNFT-CJ8nxXzA.js → getNFT-BejxGTxr.js} +1 -1
  67. package/assets/{getNFT-CtODGGom.js → getNFT-DhE_Sqp0.js} +2 -2
  68. package/assets/{getOverlayAlpha-DqVbiGQa.js → getOverlayAlpha-Cv_6_sjJ.js} +1 -1
  69. package/assets/{hashTypedData-B9EX4kQr.js → hashTypedData-COhFmPMp.js} +1 -1
  70. package/assets/{hashTypedData-DF-5orkI.js → hashTypedData-DUGnhSaC.js} +1 -1
  71. package/assets/{import-DjSObRBl.js → import-C6NVzCbS.js} +1 -1
  72. package/assets/{in-app-wallet-calls-BIFm_f4e.js → in-app-wallet-calls-BriVf0Xa.js} +1 -1
  73. package/assets/{index-_PfBd9GI.js → index-1v_Y3jeY.js} +2 -2
  74. package/assets/{index-Dp3LaHz2.js → index-6WmBd2xZ.js} +1 -1
  75. package/assets/{index-rjGwBRLW.js → index-9L9gLdlq.js} +1 -1
  76. package/assets/{index-BMvjtMcC.js → index-B85akwvZ.js} +1 -1
  77. package/assets/index-BEsdviTk.js +231 -0
  78. package/assets/{index-B8oIDYaY.js → index-BKefR4TN.js} +1 -1
  79. package/assets/{index-Baz_xGcG.js → index-BLKX3221.js} +1 -1
  80. package/assets/{index-CB1b6TrQ.js → index-BbuvKqv1.js} +1 -1
  81. package/assets/{index-RUxrTr_p.js → index-Bdey45s-.js} +1 -1
  82. package/assets/{index-4FVRm8A1.js → index-BjJPa7Dq.js} +1 -1
  83. package/assets/{index-CnO86Xf-.js → index-BjyH5s2H.js} +2 -2
  84. package/assets/{index-C6_L5Mw_.js → index-BkRZls_1.js} +1 -1
  85. package/assets/{index-icCmSJB-.js → index-BnIFiC-c.js} +1 -1
  86. package/assets/{index-CI-M1Arz.js → index-C3pTUvlm.js} +1 -1
  87. package/assets/{index-kwYOhJAZ.js → index-CCM3z3QM.js} +1 -1
  88. package/assets/{index-BIm4mg7q.js → index-CJ8L34lL.js} +1 -1
  89. package/assets/{index-C7dwOEd4.js → index-CLf8EeAx.js} +1 -1
  90. package/assets/{index-mj00iiOs.js → index-COBFSj0w.js} +1 -1
  91. package/assets/{index-CXx3fqSb.js → index-CS5T2jHs.js} +1 -1
  92. package/assets/{index-B0vpo1ZT.js → index-CYh10Tb-.js} +1 -1
  93. package/assets/{index-COxhR5RZ.js → index-CaS_3bHx.js} +1 -1
  94. package/assets/{index-wua-qNwF.js → index-CbZ9myKX.js} +1 -1
  95. package/assets/index-Cc7yK5VV.css +1 -0
  96. package/assets/{index-D9ieJGKB.js → index-Cg3K-M7Q.js} +3 -3
  97. package/assets/{index-DZXCznoC.js → index-Cqgv99mD.js} +1 -1
  98. package/assets/{index-Cxc0o5xP.js → index-Cv6v4Xzm.js} +3 -3
  99. package/assets/{index-5DUAhgPD.js → index-CvXWh3Uv.js} +1 -1
  100. package/assets/{index-D1WSRIS2.js → index-CyoVz-o4.js} +4 -4
  101. package/assets/{index-BuMqkfRn.js → index-DAfpkBU7.js} +1 -1
  102. package/assets/{index-lt9H89-j.js → index-DR2hgxdz.js} +1 -1
  103. package/assets/{index-z0NRAVC7.js → index-DWi7HxDb.js} +1 -1
  104. package/assets/{index-B84aCWu7.js → index-DXygeL6X.js} +1 -1
  105. package/assets/{index-435lMBSs.js → index-DjqWnfd7.js} +1 -1
  106. package/assets/{index-Cq05ek6k.js → index-Dl9zwaYA.js} +1 -1
  107. package/assets/{index-D-g3I2lj.js → index-DsshJ_lX.js} +1 -1
  108. package/assets/{index-C4u9N2Kl.js → index-DuzgHfIP.js} +1 -1
  109. package/assets/{index-B-R-UWD3.js → index-DyTWdHYC.js} +1 -1
  110. package/assets/{index-D-OL6_Yb.js → index-HBR0FANJ.js} +1 -1
  111. package/assets/{index-C7FmrxuL.js → index-HHpkG_47.js} +2 -2
  112. package/assets/{index-BJhyH2t3.js → index-IY4O0BLz.js} +1 -1
  113. package/assets/{index-D6gXM0CC.js → index-QQPs4pW8.js} +1 -1
  114. package/assets/{index-Ca1AwnnV.js → index-Sq6XS4iZ.js} +1 -1
  115. package/assets/{index-BDpvYYDT.js → index-UCJJplAh.js} +2 -2
  116. package/assets/{index-C1ZfYzAF.js → index-WwPC62mN.js} +1 -1
  117. package/assets/{index-CuuFwMsN.js → index-Z3oZVFq1.js} +1 -1
  118. package/assets/{index-DxHhM-lc.js → index-akCK_e-v.js} +1 -1
  119. package/assets/{index-D4I9bYC2.js → index-i8wZZpV8.js} +1 -1
  120. package/assets/{index-CPEmMCeJ.js → index-n0FG0lrX.js} +1 -1
  121. package/assets/{index-BTBCIBCb.js → index-nPzHYZwD.js} +1 -1
  122. package/assets/{index-C2Nkwj4Q.js → index-uqiMGPI_.js} +1 -1
  123. package/assets/{index-ChsZA2LJ.js → index-w7PaUg3E.js} +1 -1
  124. package/assets/{index-BP93EahD.js → index-w8OYRXEi.js} +1 -1
  125. package/assets/{index.es-BzNqI7gq.js → index.es-BU5Zdnp2.js} +1 -1
  126. package/assets/{index.es-1OmAzkct.js → index.es-C8ZiAv5V.js} +4 -4
  127. package/assets/{index.es-CwZSb0ol.js → index.es-D4cTyBEt.js} +1 -1
  128. package/assets/{localBatchGatewayRequest-yoTBhn0Z.js → localBatchGatewayRequest-CYqIYIeA.js} +1 -1
  129. package/assets/{mana-rate-Db4BQ-_Q.js → mana-rate-9Jo_gX3p.js} +1 -1
  130. package/assets/{networks-DK4RaMPB.js → networks-BXnLLN9G.js} +1 -1
  131. package/assets/{onramp-D9q0W6xC.js → onramp-C_RYTyg_.js} +1 -1
  132. package/assets/{openzeppelin-BquKm-KX.js → openzeppelin-DUG0JmL6.js} +1 -1
  133. package/assets/{ownerOf-DuMQ2Sl6.js → ownerOf-BQnZeard.js} +1 -1
  134. package/assets/{parseNft-ufNn3-SE.js → parseNft-CeWFWM7R.js} +2 -2
  135. package/assets/{parseSignature-DMb3jl_X.js → parseSignature-B4493K6W.js} +1 -1
  136. package/assets/{parseSignature-BwqWTE77.js → parseSignature-DYe1pTGB.js} +3 -3
  137. package/assets/{pay-with-exchange-CTQ9umub.js → pay-with-exchange-DYgWKjra.js} +1 -1
  138. package/assets/{payments-tEVDRx3d.js → payments-CFwDz2Wq.js} +1 -1
  139. package/assets/{qr-overlay-dEspWwjk.js → qr-overlay-Di6CWZOn.js} +1 -1
  140. package/assets/{receive-D0GHoQxU.js → receive-C0o1V-RP.js} +1 -1
  141. package/assets/{resolveImplementation-C8pfiiFc.js → resolveImplementation-BA0XFre0.js} +1 -1
  142. package/assets/{rpc-DmLUQYS0.js → rpc-Cggo7ec6.js} +1 -1
  143. package/assets/{secp256k1-Dr9eLw2v.js → secp256k1-BI9qggp6.js} +1 -1
  144. package/assets/{secp256k1-Dfs57S6d.js → secp256k1-BIMo8RCk.js} +1 -1
  145. package/assets/{secp256k1-Nx-YHmXH.js → secp256k1-Q4_NkfIK.js} +1 -1
  146. package/assets/{send-BwQAcpw3.js → send-DI70Bi5S.js} +1 -1
  147. package/assets/{send-batch-transaction-DzTkK7I2.js → send-batch-transaction-DyhjjWlE.js} +1 -1
  148. package/assets/{send-eip712-transaction-Cwec8TpW.js → send-eip712-transaction-1hRMqxdz.js} +2 -2
  149. package/assets/{send-gasless-transaction-CM25TtQp.js → send-gasless-transaction-C0Nsj1nC.js} +2 -2
  150. package/assets/{sendRawTransaction-D4a6ft8m.js → sendRawTransaction-DxHQqxHr.js} +3 -3
  151. package/assets/{serializeTransaction-2sq4x0kU.js → serializeTransaction-riX5VAFo.js} +1 -1
  152. package/assets/{session-proposal-BdXqD0a8.js → session-proposal-D83uxPCI.js} +1 -1
  153. package/assets/{session-request-DK4XwmDL.js → session-request-C93Wve_c.js} +2 -2
  154. package/assets/{sha256-D-WKRl2Q.js → sha256-BMoxeY3y.js} +1 -1
  155. package/assets/{signing-BT7JgIF_.js → signing-CHiAS07A.js} +4 -4
  156. package/assets/{socials-BOqU6AoU.js → socials-EqcQO_zT.js} +1 -1
  157. package/assets/{swaps-CG6VNxsT.js → swaps-COT97xIs.js} +1 -1
  158. package/assets/{thirdweb-CAdiquMi.js → thirdweb-liZ1mqED.js} +3 -3
  159. package/assets/{totalSupply-DjhdgKBK.js → totalSupply-DnZRn5dr.js} +1 -1
  160. package/assets/{trade-encoding-6ejU5fQD.js → trade-encoding-BT4RgSDL.js} +1 -1
  161. package/assets/{transactionReceipt-DWMHa3N1.js → transactionReceipt-BeRjRPBL.js} +1 -1
  162. package/assets/{transactions-BgR8COf-.js → transactions-C9vRrGPO.js} +1 -1
  163. package/assets/{useInfiniteGrid-gL0KJ-yb.js → useInfiniteGrid-Cw9zdPUx.js} +1 -1
  164. package/assets/{useStore-BXbR3Zt_.js → useStore-Cd9Nfgb3.js} +1 -1
  165. package/assets/useTheme-BudDZzP5.js +1 -0
  166. package/assets/useTheme-iplrvBaa.js +1 -0
  167. package/assets/{verifyHash-0bNfbKAs.js → verifyHash-BXYMx_5q.js} +1 -1
  168. package/assets/{w3m-modal-L-SoXhRP.js → w3m-modal-B0jKCWZl.js} +1 -1
  169. package/assets/{w3m-modal-Cb8f-N8c.js → w3m-modal-CQvfr1TI.js} +1 -1
  170. package/assets/{wait-for-tx-receipt-DHi00k13.js → wait-for-tx-receipt-k4rIDXu0.js} +1 -1
  171. package/assets/{wallets-DQmx7SO4.js → wallets-Bn-94ZFz.js} +6 -6
  172. package/assets/{web-connector-DZjwkeRe.js → web-connector-DxHdU9RY.js} +3 -3
  173. package/assets/{writeContract-DzbrR3T0.js → writeContract-D55yCJIp.js} +1 -1
  174. package/assets/{zoraTestnet-CiD1Xv8j.js → zoraTestnet-7NHmqxTI.js} +1 -1
  175. package/index.html +11 -11
  176. package/package.json +2 -2
  177. package/assets/Assets-BLEE2McM.js +0 -1
  178. package/assets/Cart-BBaYBkcV.css +0 -1
  179. package/assets/Cart-CNsRhX_R.js +0 -1
  180. package/assets/Collection-CEmVbx8y.js +0 -1
  181. package/assets/Collection-CxRRuAdy.css +0 -1
  182. package/assets/CollectionCarousel-CiKValmX.js +0 -1
  183. package/assets/Creator-CSW1SPi9.js +0 -1
  184. package/assets/Creator-DJqbQ8AX.css +0 -1
  185. package/assets/ErrorNotice-Rze9rgc9.js +0 -1
  186. package/assets/GetCredits-CovHo4LD.js +0 -1
  187. package/assets/ImportListings-B_GYydG3.js +0 -1
  188. package/assets/ItemDetail-Dkstj3oi.css +0 -1
  189. package/assets/ItemDetail-DmBWsg8l.js +0 -2
  190. package/assets/LoadMore-BIjeTH4T.js +0 -1
  191. package/assets/MarketCheckout-DoRZsMk0.js +0 -1
  192. package/assets/MyAssets-7sMdrGBa.js +0 -1
  193. package/assets/MyAssets-BqJHbQOZ.css +0 -1
  194. package/assets/MyFavorites-CRqCDkA2.js +0 -1
  195. package/assets/MyPurchases-BsTMOXYC.js +0 -1
  196. package/assets/NotFound-COraILzW.js +0 -1
  197. package/assets/StoreSettings-BsV7iEJX.css +0 -1
  198. package/assets/StoreSettings-C_SlMQ79.js +0 -1
  199. package/assets/Success-3OL55SvR.js +0 -1
  200. package/assets/categories-BwgdoXaT.js +0 -1
  201. package/assets/categories-CBvVTfQE.css +0 -1
  202. package/assets/collection-CtZ-NDco.js +0 -1
  203. package/assets/emotion-styled.browser.esm-B2VU5Fdx.js +0 -1
  204. package/assets/index-CDzDnyJW.js +0 -38
  205. package/assets/index-DvbMYtAp.css +0 -1
  206. package/assets/useTheme-CmaVa_eU.js +0 -1
  207. package/assets/useTheme-bLwsL2uj.js +0 -1
@@ -0,0 +1,231 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Bdey45s-.js","assets/react-yytiy0wi.js","assets/dcl-schemas-BICTSpB5.js","assets/index-QQPs4pW8.js","assets/emotion-styled.browser.esm-CG5P7VGz.js","assets/colors-LINLm1ux.js","assets/sentry-BPJvc5GU.js","assets/ethers-w2AslR0v.js","assets/intl-CBcMB1D2.js","assets/index-BjyH5s2H.js","assets/events-DQ172AOg.js","assets/TradeService-tfJ3u36y.js","assets/index-HN6Rk25C.js","assets/index-CS5T2jHs.js","assets/index-sFssfP96.js","assets/index-CyoVz-o4.js","assets/useTheme-iplrvBaa.js","assets/CircularProgress-B5065SQc.js","assets/useTheme-BudDZzP5.js","assets/getOverlayAlpha-Cv_6_sjJ.js","assets/AnimatedBackground-D56igB0H.js","assets/AnimatedBackground-CiurwFBv.css","assets/Assets-DvxF_g1B.js","assets/categories-TbcSl5d3.js","assets/categories-_8oO8Yih.css","assets/mana-rate-9Jo_gX3p.js","assets/MarketCheckout-DOjNy7WS.js","assets/buy-BhSXg06e.js","assets/trade-encoding-BT4RgSDL.js","assets/buy-gasless-7ufZIH4V.js","assets/errors-DyHnPgpr.js","assets/ErrorNotice-CKeOu_Oi.js","assets/LoadMore-CpjVWxfC.js","assets/useInfiniteGrid-Cw9zdPUx.js","assets/ItemDetail-5q6iNQ7f.js","assets/payments-CFwDz2Wq.js","assets/resume-buy-Bf0zIH7y.js","assets/address-DrURAr9O.js","assets/CollectionCarousel-CI_xuvlL.js","assets/CollectionCarousel-FF2VKnCi.css","assets/ItemDetail-CV-0-ZkB.css","assets/Collection-CegF4Bg6.js","assets/collection-C6WmEOVc.js","assets/collection-CrgnzsVL.css","assets/useStore-Cd9Nfgb3.js","assets/Collection-Dpog3TvS.css","assets/Creator-DMEgGcPH.js","assets/Creator-Cpx_caba.css","assets/StoreSettings-CGJVKy8y.js","assets/StoreSettings-Bk5IXwNu.css","assets/MyAssets-DyNGSmlq.js","assets/import-C6NVzCbS.js","assets/wallet-kind-B9P1TeIH.js","assets/MyAssets-FkZXy017.css","assets/MyFavorites-DyIDy1bn.js","assets/MyPurchases-DvllAazp.js","assets/ImportListings-AQXg48hx.js","assets/ImportListings-Dx8BzO4r.css","assets/Cart-Ccc7hMA3.js","assets/cart-checkout-mDO-sH0L.js","assets/Cart-C75800mc.css","assets/GetCredits-DkdN8Bhp.js","assets/Success-QRszHOfo.js","assets/NotFound-pLaOVJZH.js"])))=>i.map(i=>d[i]);
2
+ var Bh=Object.defineProperty;var nu=e=>{throw TypeError(e)};var Mh=(e,t,r)=>t in e?Bh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xr=(e,t,r)=>Mh(e,typeof t!="symbol"?t+"":t,r),oi=(e,t,r)=>t.has(e)||nu("Cannot "+r);var G=(e,t,r)=>(oi(e,t,"read from private field"),r?r.call(e):t.get(e)),Oe=(e,t,r)=>t.has(e)?nu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),be=(e,t,r,n)=>(oi(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Fe=(e,t,r)=>(oi(e,t,"access private method"),r);var Qs=(e,t,r,n)=>({set _(o){be(e,t,o,r)},get _(){return G(e,t,n)}});import{r as oe,j as f,l as Cc,i as R2,g as Sa,R as P2,c as Tc,a as ol,h as Fh,L as En,e as Zr,k as $h,u as Dh,b as N2,m as Un,n as qh,o as jt,N as ou,p as Uh,B as Vh}from"./react-yytiy0wi.js";import{b as Hh,d as nr,a as su}from"./dcl-schemas-BICTSpB5.js";import{p as ha,i as zh,B as Gh,s as Wh,a as Zh,E as au}from"./sentry-BPJvc5GU.js";import{W as Kh,k as Yh,h as iu,f as O2}from"./ethers-w2AslR0v.js";import{_ as _n,D as Qh,i as Jh,a as sl,c as Xh,b as e1,f as t1,d as r1,e as n1}from"./intl-CBcMB1D2.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var ts=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sn,nn,eo,w2,o1=(w2=class extends ts{constructor(){super();Oe(this,Sn);Oe(this,nn);Oe(this,eo);be(this,eo,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){G(this,nn)||this.setEventListener(G(this,eo))}onUnsubscribe(){var t;this.hasListeners()||((t=G(this,nn))==null||t.call(this),be(this,nn,void 0))}setEventListener(t){var r;be(this,eo,t),(r=G(this,nn))==null||r.call(this),be(this,nn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){G(this,Sn)!==t&&(be(this,Sn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof G(this,Sn)=="boolean"?G(this,Sn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Sn=new WeakMap,nn=new WeakMap,eo=new WeakMap,w2),al=new o1,s1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},on,nl,_2,a1=(_2=class{constructor(){Oe(this,on,s1);Oe(this,nl,!1)}setTimeoutProvider(e){be(this,on,e)}setTimeout(e,t){return G(this,on).setTimeout(e,t)}clearTimeout(e){G(this,on).clearTimeout(e)}setInterval(e,t){return G(this,on).setInterval(e,t)}clearInterval(e){G(this,on).clearInterval(e)}},on=new WeakMap,nl=new WeakMap,_2),xn=new a1;function i1(e){setTimeout(e,0)}var c1=typeof window>"u"||"Deno"in globalThis;function Zt(){}function l1(e,t){return typeof e=="function"?e(t):e}function Ac(e){return typeof e=="number"&&e>=0&&e!==1/0}function j2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fn(e,t){return typeof e=="function"?e(t):e}function Xt(e,t){return typeof e=="function"?e(t):e}function cu(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:s,queryKey:i,stale:u}=e;if(i){if(n){if(t.queryHash!==il(i,t.options))return!1}else if(!qo(t.queryKey,i))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||o&&o!==t.state.fetchStatus||s&&!s(t))}function lu(e,t){const{exact:r,status:n,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(Do(t.options.mutationKey)!==Do(s))return!1}else if(!qo(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function il(e,t){return((t==null?void 0:t.queryKeyHashFn)||Do)(e)}function Do(e){return JSON.stringify(e,(t,r)=>kc(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function qo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>qo(e[r],t[r])):!1}var u1=Object.prototype.hasOwnProperty;function L2(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=uu(e)&&uu(t);if(!n&&!(kc(e)&&kc(t)))return t;const s=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),u=i.length,d=n?new Array(u):{};let h=0;for(let m=0;m<u;m++){const p=n?m:i[m],b=e[p],E=t[p];if(b===E){d[p]=b,(n?m<s:u1.call(e,p))&&h++;continue}if(b===null||E===null||typeof b!="object"||typeof E!="object"){d[p]=E;continue}const A=L2(b,E,r+1);d[p]=A,A===b&&h++}return s===u&&h===s?e:d}function Ic(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function uu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function kc(e){if(!du(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!du(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function du(e){return Object.prototype.toString.call(e)==="[object Object]"}function d1(e){return new Promise(t=>{xn.setTimeout(t,e)})}function Rc(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?L2(e,t):t}function si(e){return e}function f1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function h1(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var cl=Symbol();function B2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cl?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function M2(e,t){return typeof e=="function"?e(...t):!!e}function p1(e,t,r){let n=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),n||(n=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),e}var Uo=(()=>{let e=()=>c1;return{isServer(){return e()},setIsServer(t){e=t}}})();function Pc(){let e,t;const r=new Promise((o,s)=>{e=o,t=s});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}var m1=i1;function g1(){let e=[],t=0,r=u=>{u()},n=u=>{u()},o=m1;const s=u=>{t?e.push(u):o(()=>{r(u)})},i=()=>{const u=e;e=[],u.length&&o(()=>{n(()=>{u.forEach(d=>{r(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||i()}return d},batchCalls:u=>(...d)=>{s(()=>{u(...d)})},schedule:s,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{o=u}}}var kt=g1(),to,sn,ro,E2,y1=(E2=class extends ts{constructor(){super();Oe(this,to,!0);Oe(this,sn);Oe(this,ro);be(this,ro,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){G(this,sn)||this.setEventListener(G(this,ro))}onUnsubscribe(){var t;this.hasListeners()||((t=G(this,sn))==null||t.call(this),be(this,sn,void 0))}setEventListener(t){var r;be(this,ro,t),(r=G(this,sn))==null||r.call(this),be(this,sn,t(this.setOnline.bind(this)))}setOnline(t){G(this,to)!==t&&(be(this,to,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return G(this,to)}},to=new WeakMap,sn=new WeakMap,ro=new WeakMap,E2),ba=new y1;function v1(e){return Math.min(1e3*2**e,3e4)}function F2(e){return(e??"online")==="online"?ba.isOnline():!0}var Nc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $2(e){let t=!1,r=0,n;const o=Pc(),s=()=>o.status!=="pending",i=g=>{var T;if(!s()){const H=new Nc(g);b(H),(T=e.onCancel)==null||T.call(e,H)}},u=()=>{t=!0},d=()=>{t=!1},h=()=>al.isFocused()&&(e.networkMode==="always"||ba.isOnline())&&e.canRun(),m=()=>F2(e.networkMode)&&e.canRun(),p=g=>{s()||(n==null||n(),o.resolve(g))},b=g=>{s()||(n==null||n(),o.reject(g))},E=()=>new Promise(g=>{var T;n=H=>{(s()||h())&&g(H)},(T=e.onPause)==null||T.call(e)}).then(()=>{var g;n=void 0,s()||(g=e.onContinue)==null||g.call(e)}),A=()=>{if(s())return;let g;const T=r===0?e.initialPromise:void 0;try{g=T??e.fn()}catch(H){g=Promise.reject(H)}Promise.resolve(g).then(p).catch(H=>{var U;if(s())return;const v=e.retry??(Uo.isServer()?0:3),k=e.retryDelay??v1,w=typeof k=="function"?k(r,H):k,Y=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,H);if(t||!Y){b(H);return}r++,(U=e.onFail)==null||U.call(e,r,H),d1(w).then(()=>h()?void 0:E()).then(()=>{t?b(H):A()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(n==null||n(),o),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?A():E().then(A),o)}}var Cn,x2,D2=(x2=class{constructor(){Oe(this,Cn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ac(this.gcTime)&&be(this,Cn,xn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Uo.isServer()?1/0:300*1e3))}clearGcTimeout(){G(this,Cn)!==void 0&&(xn.clearTimeout(G(this,Cn)),be(this,Cn,void 0))}},Cn=new WeakMap,x2);function b1(e){return{onFetch:(t,r)=>{var m,p,b,E,A;const n=t.options,o=(b=(p=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:p.fetchMore)==null?void 0:b.direction,s=((E=t.state.data)==null?void 0:E.pages)||[],i=((A=t.state.data)==null?void 0:A.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let g=!1;const T=k=>{p1(k,()=>t.signal,()=>g=!0)},H=B2(t.options,t.fetchOptions),v=async(k,w,Y)=>{if(g)return Promise.reject(t.signal.reason);if(w==null&&k.pages.length)return Promise.resolve(k);const S=(()=>{const ne={client:t.client,queryKey:t.queryKey,pageParam:w,direction:Y?"backward":"forward",meta:t.options.meta};return T(ne),ne})(),$=await H(S),{maxPages:J}=t.options,W=Y?h1:f1;return{pages:W(k.pages,$,J),pageParams:W(k.pageParams,w,J)}};if(o&&s.length){const k=o==="backward",w=k?q2:Oc,Y={pages:s,pageParams:i},U=w(n,Y);u=await v(Y,U,k)}else{const k=e??s.length;do{const w=d===0?i[0]??n.initialPageParam:Oc(n,u);if(d>0&&w==null)break;u=await v(u,w),d++}while(d<k)}return u};t.options.persister?t.fetchFn=()=>{var g,T;return(T=(g=t.options).persister)==null?void 0:T.call(g,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function Oc(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function q2(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}function H6(e,t){return t?Oc(e,t)!=null:!1}function z6(e,t){return!t||!e.getPreviousPageParam?!1:q2(e,t)!=null}var no,Tn,oo,ar,An,wt,Yo,In,Jt,U2,Vr,S2,w1=(S2=class extends D2{constructor(t){super();Oe(this,Jt);Oe(this,no);Oe(this,Tn);Oe(this,oo);Oe(this,ar);Oe(this,An);Oe(this,wt);Oe(this,Yo);Oe(this,In);be(this,In,!1),be(this,Yo,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,An,t.client),be(this,ar,G(this,An).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,Tn,hu(this.options)),this.state=t.state??G(this,Tn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return G(this,no)}get promise(){var t;return(t=G(this,wt))==null?void 0:t.promise}setOptions(t){if(this.options={...G(this,Yo),...t},t!=null&&t._type&&be(this,no,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=hu(this.options);r.data!==void 0&&(this.setState(fu(r.data,r.dataUpdatedAt)),be(this,Tn,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&G(this,ar).remove(this)}setData(t,r){const n=Rc(this.state.data,t,this.options);return Fe(this,Jt,Vr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t){Fe(this,Jt,Vr).call(this,{type:"setState",state:t})}cancel(t){var n,o;const r=(n=G(this,wt))==null?void 0:n.promise;return(o=G(this,wt))==null||o.cancel(t),r?r.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return G(this,Tn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Xt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cl||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>fn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!j2(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=G(this,wt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=G(this,wt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),G(this,ar).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(G(this,wt)&&(G(this,In)||Fe(this,Jt,U2).call(this)?G(this,wt).cancel({revert:!0}):G(this,wt).cancelRetry()),this.scheduleGc()),G(this,ar).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,Jt,Vr).call(this,{type:"invalidate"})}async fetch(t,r){var h,m,p,b,E,A,g,T,H,v,k;if(this.state.fetchStatus!=="idle"&&((h=G(this,wt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(G(this,wt))return G(this,wt).continueRetry(),G(this,wt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(Y=>Y.options.queryFn);w&&this.setOptions(w.options)}const n=new AbortController,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(be(this,In,!0),n.signal)})},s=()=>{const w=B2(this.options,r),U=(()=>{const S={client:G(this,An),queryKey:this.queryKey,meta:this.meta};return o(S),S})();return be(this,In,!1),this.options.persister?this.options.persister(w,U,this):w(U)},u=(()=>{const w={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:G(this,An),state:this.state,fetchFn:s};return o(w),w})(),d=G(this,no)==="infinite"?b1(this.options.pages):this.options.behavior;d==null||d.onFetch(u,this),be(this,oo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=u.fetchOptions)==null?void 0:m.meta))&&Fe(this,Jt,Vr).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta}),be(this,wt,$2({initialPromise:r==null?void 0:r.initialPromise,fn:u.fetchFn,onCancel:w=>{w instanceof Nc&&w.revert&&this.setState({...G(this,oo),fetchStatus:"idle"}),n.abort()},onFail:(w,Y)=>{Fe(this,Jt,Vr).call(this,{type:"failed",failureCount:w,error:Y})},onPause:()=>{Fe(this,Jt,Vr).call(this,{type:"pause"})},onContinue:()=>{Fe(this,Jt,Vr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const w=await G(this,wt).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(E=(b=G(this,ar).config).onSuccess)==null||E.call(b,w,this),(g=(A=G(this,ar).config).onSettled)==null||g.call(A,w,this.state.error,this),w}catch(w){if(w instanceof Nc){if(w.silent)return G(this,wt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw Fe(this,Jt,Vr).call(this,{type:"error",error:w}),(H=(T=G(this,ar).config).onError)==null||H.call(T,w,this),(k=(v=G(this,ar).config).onSettled)==null||k.call(v,this.state.data,w,this),w}finally{this.scheduleGc()}}},no=new WeakMap,Tn=new WeakMap,oo=new WeakMap,ar=new WeakMap,An=new WeakMap,wt=new WeakMap,Yo=new WeakMap,In=new WeakMap,Jt=new WeakSet,U2=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Vr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...V2(n.data,this.options),fetchMeta:t.meta??null};case"success":const o={...n,...fu(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return be(this,oo,t.manual?o:void 0),o;case"error":const s=t.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),kt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),G(this,ar).notify({query:this,type:"updated",action:t})})},S2);function V2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:F2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function fu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function hu(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Wt,De,Qo,$t,kn,so,Hr,an,Jo,ao,io,Rn,Pn,cn,co,We,jo,jc,Lc,Bc,Mc,Fc,$c,Dc,H2,C2,_1=(C2=class extends ts{constructor(t,r){super();Oe(this,We);Oe(this,Wt);Oe(this,De);Oe(this,Qo);Oe(this,$t);Oe(this,kn);Oe(this,so);Oe(this,Hr);Oe(this,an);Oe(this,Jo);Oe(this,ao);Oe(this,io);Oe(this,Rn);Oe(this,Pn);Oe(this,cn);Oe(this,co,new Set);this.options=r,be(this,Wt,t),be(this,an,null),be(this,Hr,Pc()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(G(this,De).addObserver(this),pu(G(this,De),this.options)?Fe(this,We,jo).call(this):this.updateResult(),Fe(this,We,Mc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qc(G(this,De),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qc(G(this,De),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,We,Fc).call(this),Fe(this,We,$c).call(this),G(this,De).removeObserver(this)}setOptions(t){const r=this.options,n=G(this,De);if(this.options=G(this,Wt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xt(this.options.enabled,G(this,De))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,We,Dc).call(this),G(this,De).setOptions(this.options),r._defaulted&&!Ic(this.options,r)&&G(this,Wt).getQueryCache().notify({type:"observerOptionsUpdated",query:G(this,De),observer:this});const o=this.hasListeners();o&&mu(G(this,De),n,this.options,r)&&Fe(this,We,jo).call(this),this.updateResult(),o&&(G(this,De)!==n||Xt(this.options.enabled,G(this,De))!==Xt(r.enabled,G(this,De))||fn(this.options.staleTime,G(this,De))!==fn(r.staleTime,G(this,De)))&&Fe(this,We,jc).call(this);const s=Fe(this,We,Lc).call(this);o&&(G(this,De)!==n||Xt(this.options.enabled,G(this,De))!==Xt(r.enabled,G(this,De))||s!==G(this,cn))&&Fe(this,We,Bc).call(this,s)}getOptimisticResult(t){const r=G(this,Wt).getQueryCache().build(G(this,Wt),t),n=this.createResult(r,t);return x1(this,n)&&(be(this,$t,n),be(this,so,this.options),be(this,kn,G(this,De).state)),n}getCurrentResult(){return G(this,$t)}trackResult(t,r){return new Proxy(t,{get:(n,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&G(this,Hr).status==="pending"&&G(this,Hr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,o))})}trackProp(t){G(this,co).add(t)}getCurrentQuery(){return G(this,De)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=G(this,Wt).defaultQueryOptions(t),n=G(this,Wt).getQueryCache().build(G(this,Wt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return Fe(this,We,jo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),G(this,$t)))}createResult(t,r){var J;const n=G(this,De),o=this.options,s=G(this,$t),i=G(this,kn),u=G(this,so),h=t!==n?t.state:G(this,Qo),{state:m}=t;let p={...m},b=!1,E;if(r._optimisticResults){const W=this.hasListeners(),ne=!W&&pu(t,r),X=W&&mu(t,n,r,o);(ne||X)&&(p={...p,...V2(m.data,t.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:A,errorUpdatedAt:g,status:T}=p;E=p.data;let H=!1;if(r.placeholderData!==void 0&&E===void 0&&T==="pending"){let W;s!=null&&s.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData)?(W=s.data,H=!0):W=typeof r.placeholderData=="function"?r.placeholderData((J=G(this,io))==null?void 0:J.state.data,G(this,io)):r.placeholderData,W!==void 0&&(T="success",E=Rc(s==null?void 0:s.data,W,r),b=!0)}if(r.select&&E!==void 0&&!H)if(s&&E===(i==null?void 0:i.data)&&r.select===G(this,Jo))E=G(this,ao);else try{be(this,Jo,r.select),E=r.select(E),E=Rc(s==null?void 0:s.data,E,r),be(this,ao,E),be(this,an,null)}catch(W){be(this,an,W)}G(this,an)&&(A=G(this,an),E=G(this,ao),g=Date.now(),T="error");const v=p.fetchStatus==="fetching",k=T==="pending",w=T==="error",Y=k&&v,U=E!==void 0,$={status:T,fetchStatus:p.fetchStatus,isPending:k,isSuccess:T==="success",isError:w,isInitialLoading:Y,isLoading:Y,data:E,dataUpdatedAt:p.dataUpdatedAt,error:A,errorUpdatedAt:g,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:v,isRefetching:v&&!k,isLoadingError:w&&!U,isPaused:p.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:w&&U,isStale:ll(t,r),refetch:this.refetch,promise:G(this,Hr),isEnabled:Xt(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const W=$.data!==void 0,ne=$.status==="error"&&!W,X=K=>{ne?K.reject($.error):W&&K.resolve($.data)},B=()=>{const K=be(this,Hr,$.promise=Pc());X(K)},P=G(this,Hr);switch(P.status){case"pending":t.queryHash===n.queryHash&&X(P);break;case"fulfilled":(ne||$.data!==P.value)&&B();break;case"rejected":(!ne||$.error!==P.reason)&&B();break}}return $}updateResult(){const t=G(this,$t),r=this.createResult(G(this,De),this.options);if(be(this,kn,G(this,De).state),be(this,so,this.options),G(this,kn).data!==void 0&&be(this,io,G(this,De)),Ic(r,t))return;be(this,$t,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!G(this,co).size)return!0;const i=new Set(s??G(this,co));return this.options.throwOnError&&i.add("error"),Object.keys(G(this,$t)).some(u=>{const d=u;return G(this,$t)[d]!==t[d]&&i.has(d)})};Fe(this,We,H2).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,We,Mc).call(this)}},Wt=new WeakMap,De=new WeakMap,Qo=new WeakMap,$t=new WeakMap,kn=new WeakMap,so=new WeakMap,Hr=new WeakMap,an=new WeakMap,Jo=new WeakMap,ao=new WeakMap,io=new WeakMap,Rn=new WeakMap,Pn=new WeakMap,cn=new WeakMap,co=new WeakMap,We=new WeakSet,jo=function(t){Fe(this,We,Dc).call(this);let r=G(this,De).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Zt)),r},jc=function(){Fe(this,We,Fc).call(this);const t=fn(this.options.staleTime,G(this,De));if(Uo.isServer()||G(this,$t).isStale||!Ac(t))return;const n=j2(G(this,$t).dataUpdatedAt,t)+1;be(this,Rn,xn.setTimeout(()=>{G(this,$t).isStale||this.updateResult()},n))},Lc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(G(this,De)):this.options.refetchInterval)??!1},Bc=function(t){Fe(this,We,$c).call(this),be(this,cn,t),!(Uo.isServer()||Xt(this.options.enabled,G(this,De))===!1||!Ac(G(this,cn))||G(this,cn)===0)&&be(this,Pn,xn.setInterval(()=>{(this.options.refetchIntervalInBackground||al.isFocused())&&Fe(this,We,jo).call(this)},G(this,cn)))},Mc=function(){Fe(this,We,jc).call(this),Fe(this,We,Bc).call(this,Fe(this,We,Lc).call(this))},Fc=function(){G(this,Rn)!==void 0&&(xn.clearTimeout(G(this,Rn)),be(this,Rn,void 0))},$c=function(){G(this,Pn)!==void 0&&(xn.clearInterval(G(this,Pn)),be(this,Pn,void 0))},Dc=function(){const t=G(this,Wt).getQueryCache().build(G(this,Wt),this.options);if(t===G(this,De))return;const r=G(this,De);be(this,De,t),be(this,Qo,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},H2=function(t){kt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(G(this,$t))}),G(this,Wt).getQueryCache().notify({query:G(this,De),type:"observerResultsUpdated"})})},C2);function E1(e,t){return Xt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Xt(t.retryOnMount,e)===!1)}function pu(e,t){return E1(e,t)||e.state.data!==void 0&&qc(e,t,t.refetchOnMount)}function qc(e,t,r){if(Xt(t.enabled,e)!==!1&&fn(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&ll(e,t)}return!1}function mu(e,t,r,n){return(e!==t||Xt(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&ll(e,r)}function ll(e,t){return Xt(t.enabled,e)!==!1&&e.isStaleByTime(fn(t.staleTime,e))}function x1(e,t){return!Ic(e.getCurrentResult(),t)}var Xo,Cr,Bt,Nn,Tr,tn,T2,S1=(T2=class extends D2{constructor(t){super();Oe(this,Tr);Oe(this,Xo);Oe(this,Cr);Oe(this,Bt);Oe(this,Nn);be(this,Xo,t.client),this.mutationId=t.mutationId,be(this,Bt,t.mutationCache),be(this,Cr,[]),this.state=t.state||C1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){G(this,Cr).includes(t)||(G(this,Cr).push(t),this.clearGcTimeout(),G(this,Bt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,Cr,G(this,Cr).filter(r=>r!==t)),this.scheduleGc(),G(this,Bt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){G(this,Cr).length||(this.state.status==="pending"?this.scheduleGc():G(this,Bt).remove(this))}continue(){var t;return((t=G(this,Nn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,u,d,h,m,p,b,E,A,g,T,H,v,k,w,Y,U,S;const r=()=>{Fe(this,Tr,tn).call(this,{type:"continue"})},n={client:G(this,Xo),meta:this.options.meta,mutationKey:this.options.mutationKey};be(this,Nn,$2({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:($,J)=>{Fe(this,Tr,tn).call(this,{type:"failed",failureCount:$,error:J})},onPause:()=>{Fe(this,Tr,tn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>G(this,Bt).canRun(this)}));const o=this.state.status==="pending",s=!G(this,Nn).canStart();try{if(o)r();else{Fe(this,Tr,tn).call(this,{type:"pending",variables:t,isPaused:s}),G(this,Bt).config.onMutate&&await G(this,Bt).config.onMutate(t,this,n);const J=await((u=(i=this.options).onMutate)==null?void 0:u.call(i,t,n));J!==this.state.context&&Fe(this,Tr,tn).call(this,{type:"pending",context:J,variables:t,isPaused:s})}const $=await G(this,Nn).start();return await((h=(d=G(this,Bt).config).onSuccess)==null?void 0:h.call(d,$,t,this.state.context,this,n)),await((p=(m=this.options).onSuccess)==null?void 0:p.call(m,$,t,this.state.context,n)),await((E=(b=G(this,Bt).config).onSettled)==null?void 0:E.call(b,$,null,this.state.variables,this.state.context,this,n)),await((g=(A=this.options).onSettled)==null?void 0:g.call(A,$,null,t,this.state.context,n)),Fe(this,Tr,tn).call(this,{type:"success",data:$}),$}catch($){try{await((H=(T=G(this,Bt).config).onError)==null?void 0:H.call(T,$,t,this.state.context,this,n))}catch(J){Promise.reject(J)}try{await((k=(v=this.options).onError)==null?void 0:k.call(v,$,t,this.state.context,n))}catch(J){Promise.reject(J)}try{await((Y=(w=G(this,Bt).config).onSettled)==null?void 0:Y.call(w,void 0,$,this.state.variables,this.state.context,this,n))}catch(J){Promise.reject(J)}try{await((S=(U=this.options).onSettled)==null?void 0:S.call(U,void 0,$,t,this.state.context,n))}catch(J){Promise.reject(J)}throw Fe(this,Tr,tn).call(this,{type:"error",error:$}),$}finally{G(this,Bt).runNext(this)}}},Xo=new WeakMap,Cr=new WeakMap,Bt=new WeakMap,Nn=new WeakMap,Tr=new WeakSet,tn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),kt.batch(()=>{G(this,Cr).forEach(n=>{n.onMutationUpdate(t)}),G(this,Bt).notify({mutation:this,type:"updated",action:t})})},T2);function C1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zr,fr,es,A2,T1=(A2=class extends ts{constructor(t={}){super();Oe(this,zr);Oe(this,fr);Oe(this,es);this.config=t,be(this,zr,new Set),be(this,fr,new Map),be(this,es,0)}build(t,r,n){const o=new S1({client:t,mutationCache:this,mutationId:++Qs(this,es)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){G(this,zr).add(t);const r=Js(t);if(typeof r=="string"){const n=G(this,fr).get(r);n?n.push(t):G(this,fr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(G(this,zr).delete(t)){const r=Js(t);if(typeof r=="string"){const n=G(this,fr).get(r);if(n)if(n.length>1){const o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&G(this,fr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Js(t);if(typeof r=="string"){const n=G(this,fr).get(r),o=n==null?void 0:n.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=Js(t);if(typeof r=="string"){const o=(n=G(this,fr).get(r))==null?void 0:n.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){kt.batch(()=>{G(this,zr).forEach(t=>{this.notify({type:"removed",mutation:t})}),G(this,zr).clear(),G(this,fr).clear()})}getAll(){return Array.from(G(this,zr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>lu(r,n))}findAll(t={}){return this.getAll().filter(r=>lu(t,r))}notify(t){kt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return kt.batch(()=>Promise.all(t.map(r=>r.continue().catch(Zt))))}},zr=new WeakMap,fr=new WeakMap,es=new WeakMap,A2);function Js(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ar,I2,A1=(I2=class extends ts{constructor(t={}){super();Oe(this,Ar);this.config=t,be(this,Ar,new Map)}build(t,r,n){const o=r.queryKey,s=r.queryHash??il(o,r);let i=this.get(s);return i||(i=new w1({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){G(this,Ar).has(t.queryHash)||(G(this,Ar).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=G(this,Ar).get(t.queryHash);r&&(t.destroy(),r===t&&G(this,Ar).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){kt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return G(this,Ar).get(t)}getAll(){return[...G(this,Ar).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>cu(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>cu(t,n)):r}notify(t){kt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ar=new WeakMap,I2),dt,ln,un,lo,uo,dn,fo,ho,k2,I1=(k2=class{constructor(e={}){Oe(this,dt);Oe(this,ln);Oe(this,un);Oe(this,lo);Oe(this,uo);Oe(this,dn);Oe(this,fo);Oe(this,ho);be(this,dt,e.queryCache||new A1),be(this,ln,e.mutationCache||new T1),be(this,un,e.defaultOptions||{}),be(this,lo,new Map),be(this,uo,new Map),be(this,dn,0)}mount(){Qs(this,dn)._++,G(this,dn)===1&&(be(this,fo,al.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,dt).onFocus())})),be(this,ho,ba.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,dt).onOnline())})))}unmount(){var e,t;Qs(this,dn)._--,G(this,dn)===0&&((e=G(this,fo))==null||e.call(this),be(this,fo,void 0),(t=G(this,ho))==null||t.call(this),be(this,ho,void 0))}isFetching(e){return G(this,dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return G(this,ln).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=G(this,dt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=G(this,dt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(fn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return G(this,dt).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=G(this,dt).get(n.queryHash),s=o==null?void 0:o.state.data,i=l1(t,s);if(i!==void 0)return G(this,dt).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return kt.batch(()=>G(this,dt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=G(this,dt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=G(this,dt);kt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=G(this,dt);return kt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=kt.batch(()=>G(this,dt).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(Zt).catch(Zt)}invalidateQueries(e,t={}){return kt.batch(()=>(G(this,dt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=kt.batch(()=>G(this,dt).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(Zt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(Zt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=G(this,dt).build(this,t);return r.isStaleByTime(fn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zt).catch(Zt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zt).catch(Zt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return ba.isOnline()?G(this,ln).resumePausedMutations():Promise.resolve()}getQueryCache(){return G(this,dt)}getMutationCache(){return G(this,ln)}getDefaultOptions(){return G(this,un)}setDefaultOptions(e){be(this,un,e)}setQueryDefaults(e,t){G(this,lo).set(Do(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...G(this,lo).values()],r={};return t.forEach(n=>{qo(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){G(this,uo).set(Do(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...G(this,uo).values()],r={};return t.forEach(n=>{qo(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...G(this,un).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=il(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cl&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...G(this,un).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){G(this,dt).clear(),G(this,ln).clear()}},dt=new WeakMap,ln=new WeakMap,un=new WeakMap,lo=new WeakMap,uo=new WeakMap,dn=new WeakMap,fo=new WeakMap,ho=new WeakMap,k2),z2=oe.createContext(void 0),k1=e=>{const t=oe.useContext(z2);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},R1=({client:e,children:t})=>(oe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(z2.Provider,{value:e,children:t})),G2=oe.createContext(!1),P1=()=>oe.useContext(G2);G2.Provider;function N1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var O1=oe.createContext(N1()),j1=()=>oe.useContext(O1),L1=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?M2(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},B1=e=>{oe.useEffect(()=>{e.clearReset()},[e])},M1=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||M2(r,[e.error,n])),F1=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...o)=>r(n(...o)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},$1=(e,t)=>e.isLoading&&e.isFetching&&!t,D1=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,gu=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function q1(e,t,r){var E,A,g,T;const n=P1(),o=j1(),s=k1(),i=s.defaultQueryOptions(e);(A=(E=s.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||A.call(E,i);const u=s.getQueryCache().get(i.queryHash),d=e.subscribed!==!1;i._optimisticResults=n?"isRestoring":d?"optimistic":void 0,F1(i),L1(i,o,u),B1(o);const h=!s.getQueryCache().get(i.queryHash),[m]=oe.useState(()=>new t(s,i)),p=m.getOptimisticResult(i),b=!n&&d;if(oe.useSyncExternalStore(oe.useCallback(H=>{const v=b?m.subscribe(kt.batchCalls(H)):Zt;return m.updateResult(),v},[m,b]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),oe.useEffect(()=>{m.setOptions(i)},[i,m]),D1(i,p))throw gu(i,m,o);if(M1({result:p,errorResetBoundary:o,throwOnError:i.throwOnError,query:u,suspense:i.suspense}))throw p.error;if((T=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||T.call(g,i,p),i.experimental_prefetchInRender&&!Uo.isServer()&&$1(p,n)){const H=h?gu(i,m,o):u==null?void 0:u.promise;H==null||H.catch(Zt).finally(()=>{m.updateResult()})}return i.notifyOnChangeProps?p:m.trackResult(p)}function Gr(e,t){return q1(e,_1)}const U1="modulepreload",V1=function(e){return"https://cdn.decentraland.org/@dcl/shop/0.1.0-29792819793.commit-bcbfeac/"+e},yu={},xt=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let i=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));o=i(r.map(h=>{if(h=V1(h),h in yu)return;yu[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":U1,m||(b.as="script"),b.crossOrigin="",b.href=h,d&&b.setAttribute("nonce",d),document.head.appendChild(b),m)return new Promise((E,A)=>{b.addEventListener("load",E),b.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(i){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=i,window.dispatchEvent(u),!u.defaultPrevented)throw i}return o.then(i=>{for(const u of i||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})},H1="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill='%23000'/%3e%3c/svg%3e",z1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='NotificationsFilled'%3e%3cpath%20id='Vector'%20d='M12%2021.75C13.1%2021.75%2014%2020.85%2014%2019.75H10C10%2020.85%2010.89%2021.75%2012%2021.75ZM18%2015.75V10.75C18%207.68%2016.36%205.11%2013.5%204.43V3.75C13.5%202.92%2012.83%202.25%2012%202.25C11.17%202.25%2010.5%202.92%2010.5%203.75V4.43C7.63%205.11%206%207.67%206%2010.75V15.75L4%2017.75V18.75H20V17.75L18%2015.75Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",G1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2059.7045%2058.9085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Slider%20Arrows'%3e%3cpath%20id='Oval'%20opacity='0.8'%20d='M29.8522%201.59244C45.437%201.59244%2058.1117%2014.0437%2058.112%2029.4538C58.112%2044.8641%2045.4372%2057.3161%2029.8522%2057.3161C14.2672%2057.3161%201.59244%2044.8641%201.59244%2029.4538C1.5927%2014.0437%2014.2674%201.59247%2029.8522%201.59244Z'%20fill='var(--fill-0,%20white)'%20stroke='var(--stroke-0,%20white)'%20stroke-width='3.18424'/%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2842%2029.0164L25.652%2043.0901C24.8014%2043.9083%2023.4222%2043.9083%2022.5716%2043.0901C21.721%2042.2719%2021.721%2040.9454%2022.5716%2040.1272L34.1233%2029.0164L22.5716%2017.9056C21.721%2017.0874%2021.721%2015.7609%2022.5716%2014.9427C23.4222%2014.1245%2024.8014%2014.1245%2025.652%2014.9427L40.2842%2029.0164Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",W1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='boxicons:cart'%3e%3cpath%20id='Vector'%20d='M17.5%205H5.875L4.95%202.23333C4.8941%202.06782%204.78759%201.92405%204.64552%201.82237C4.50346%201.72068%204.33304%201.66622%204.15833%201.66667H1.65833V3.33333H3.55833L6.50833%2012.1917C6.61872%2012.5243%206.83113%2012.8136%207.11538%2013.0185C7.39962%2013.2235%207.74124%2013.3337%208.09167%2013.3333H14.4167C14.7558%2013.3327%2015.0867%2013.2287%2015.3651%2013.0351C15.6435%2012.8416%2015.8563%2012.5677%2015.975%2012.25L18.275%206.125C18.3667%205.86667%2018.3333%205.58333%2018.1833%205.35833C18.1068%205.24795%2018.0046%205.15771%2017.8856%205.09532C17.7667%205.03292%2017.6344%205.00022%2017.5%205ZM14.425%2011.6667H8.1L6.43333%206.66667H16.3L14.425%2011.6667ZM8.33333%2015C7.89131%2015%207.46738%2015.1756%207.15482%2015.4882C6.84226%2015.8007%206.66667%2016.2246%206.66667%2016.6667C6.66667%2017.1087%206.84226%2017.5326%207.15482%2017.8452C7.46738%2018.1577%207.89131%2018.3333%208.33333%2018.3333C8.77536%2018.3333%209.19928%2018.1577%209.51184%2017.8452C9.82441%2017.5326%2010%2017.1087%2010%2016.6667C10%2016.2246%209.82441%2015.8007%209.51184%2015.4882C9.19928%2015.1756%208.77536%2015%208.33333%2015ZM14.1667%2015C13.7246%2015%2013.3007%2015.1756%2012.9882%2015.4882C12.6756%2015.8007%2012.5%2016.2246%2012.5%2016.6667C12.5%2017.1087%2012.6756%2017.5326%2012.9882%2017.8452C13.3007%2018.1577%2013.7246%2018.3333%2014.1667%2018.3333C14.6087%2018.3333%2015.0326%2018.1577%2015.3452%2017.8452C15.6577%2017.5326%2015.8333%2017.1087%2015.8333%2016.6667C15.8333%2016.2246%2015.6577%2015.8007%2015.3452%2015.4882C15.0326%2015.1756%2014.6087%2015%2014.1667%2015Z'%20fill='var(--fill-0,%20%23FCFCFC)'/%3e%3c/g%3e%3c/svg%3e",Z1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='boxicons:cart'%3e%3cpath%20id='Vector'%20d='M28%207.99935H9.39999L7.91999%203.57269C7.83054%203.30786%207.66012%203.07784%207.43283%202.91514C7.20553%202.75245%206.93285%202.6653%206.65332%202.66602H2.65332V5.33269H5.69332L10.4133%2019.506C10.5899%2020.0382%2010.9298%2020.5011%2011.3846%2020.829C11.8394%2021.157%2012.386%2021.3332%2012.9467%2021.3327H23.0667C23.6092%2021.3317%2024.1386%2021.1653%2024.5841%2020.8556C25.0297%2020.5459%2025.3701%2020.1076%2025.56%2019.5994L29.24%209.79935C29.3867%209.38602%2029.3333%208.93269%2029.0933%208.57269C28.9708%208.39607%2028.8074%208.25169%2028.617%208.15186C28.4266%208.05203%2028.2149%207.99971%2028%207.99935ZM23.08%2018.666H12.96L10.2933%2010.666H26.08L23.08%2018.666ZM13.3333%2023.9994C12.6261%2023.9994%2011.9478%2024.2803%2011.4477%2024.7804C10.9476%2025.2805%2010.6667%2025.9588%2010.6667%2026.666C10.6667%2027.3733%2010.9476%2028.0515%2011.4477%2028.5516C11.9478%2029.0517%2012.6261%2029.3327%2013.3333%2029.3327C14.0406%2029.3327%2014.7188%2029.0517%2015.2189%2028.5516C15.719%2028.0515%2016%2027.3733%2016%2026.666C16%2025.9588%2015.719%2025.2805%2015.2189%2024.7804C14.7188%2024.2803%2014.0406%2023.9994%2013.3333%2023.9994ZM22.6667%2023.9994C21.9594%2023.9994%2021.2811%2024.2803%2020.781%2024.7804C20.2809%2025.2805%2020%2025.9588%2020%2026.666C20%2027.3733%2020.2809%2028.0515%2020.781%2028.5516C21.2811%2029.0517%2021.9594%2029.3327%2022.6667%2029.3327C23.3739%2029.3327%2024.0522%2029.0517%2024.5523%2028.5516C25.0524%2028.0515%2025.3333%2027.3733%2025.3333%2026.666C25.3333%2025.9588%2025.0524%2025.2805%2024.5523%2024.7804C24.0522%2024.2803%2023.3739%2023.9994%2022.6667%2023.9994Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",K1="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%203c.3%203.2%201.8%204.7%205%205-3.2.3-4.7%201.8-5%205-.3-3.2-1.8-4.7-5-5%203.2-.3%204.7-1.8%205-5Z'%20fill='%235E5B67'/%3e%3cpath%20d='M18%2012c.15%201.6.9%202.35%202.5%202.5-1.6.15-2.35.9-2.5%202.5-.15-1.6-.9-2.35-2.5-2.5%201.6-.15%202.35-.9%202.5-2.5Z'%20fill='%235E5B67'/%3e%3c/svg%3e",Y1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='FeetIcon'%3e%3crect%20id='Rectangle%20498'%20opacity='0'%20width='24'%20height='24'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3cpath%20id='Subtract'%20d='M8.67877%207.59546C9.27547%207.68481%2010.5876%208.37254%2011.9796%209.33179C13.6367%2010.4694%2015.3779%2011.1166%2017.0792%2011.4959C21.962%2012.5666%2022.4879%2012.3658%2022.2891%2013.7263C22.2891%2013.7932%2022.2676%2013.883%2022.2676%2013.95C22.157%2015.333%2019.9912%2016.4039%2017.3399%2016.4041H3.5069C2.40745%2016.4041%201.47953%2016.5953%201.71295%2014.3738C1.72283%2014.2802%201.74457%2014.2358%201.77936%2014.196C1.82355%2012.4559%201.51845%209.26601%202.37897%209.69605C2.97909%209.9961%203.64729%2010.7195%206.51373%2010.7195C7.37513%2010.7194%207.92741%2010.2285%208.1485%209.9607C7.97172%209.46986%207.70704%208.44348%208.23737%207.77417C8.34775%207.64049%208.50223%207.57333%208.67877%207.59546ZM16.6866%2012.0955C16.5071%2012.5325%2016.0943%2013.8265%2015.879%2014.4558C18.8932%2014.6655%2020.9526%2014.0106%2021.2628%2013.407C21.5725%2012.8033%2017.4945%2012.3577%2016.6866%2012.0955ZM5.78815%2014.3074H6.71979L8.73346%2011.9382H7.83307L5.78815%2014.3074ZM7.64362%2014.3074H8.57526L10.588%2011.9382H9.68854L7.64362%2014.3074Z'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",Q1="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.5%2021a1%201%200%200%201-1-1v-3.9l-1.7-2a1.75%201.75%200%200%201%202.6-2.3l.6.7V6.2a1.45%201.45%200%200%201%202.9%200v2.9a1.25%201.25%200%200%201%202.5%200%201.25%201.25%200%200%201%202.5%200%201.25%201.25%200%200%201%202.5%200v4.7a5.5%205.5%200%200%201-5.5%205.5H7.5Z'%20fill='%235E5B67'/%3e%3c/svg%3e",J1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='HairIcon'%3e%3cpath%20id='Fill%201'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.90903%206.68957C2.64951%208.31027%205.45007%2016.2983%206.37802%2016.4457C6.993%2016.9543%206.68432%2013.2024%208.35893%2011.2067C10.3928%2014.596%2015.8155%2013.5116%2015.8155%2013.5116C15.8155%2013.5116%2017.9863%2015.4901%2016.7697%2019.0678C19.1676%2016.6943%2021.4051%208.18384%2015.5426%205.35227C14.6995%204.94483%2013.7468%204.82985%2012.8112%204.80409C11.0211%204.7559%208.98297%205.1204%208.01303%206.62564'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",X1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='LowerBodyIcon'%3e%3cpath%20id='Vector'%20d='M20.3922%2016.5581L18.8251%208.28912V5.88885C18.8251%205.61998%2018.5888%205.4%2018.3001%205.4H5.70002C5.41127%205.4%205.17501%205.61998%205.17501%205.88885V8.28912L3.60788%2016.5581C3.56063%2016.8098%203.73126%2017.0542%203.99901%2017.1178L10.299%2018.5844C10.341%2018.5941%2010.383%2018.599%2010.425%2018.599C10.6534%2018.599%2010.8634%2018.4573%2010.929%2018.2446L11.9528%2014.9082L12.8007%2018.225C12.8322%2018.3522%2012.9188%2018.4597%2013.0369%2018.5281C13.155%2018.5966%2013.2994%2018.6161%2013.4333%2018.5868L19.9958%2017.1202C20.2688%2017.0591%2020.4394%2016.8123%2020.3922%2016.5581ZM17.7751%207.84426H6.22502V6.37771H17.7751V7.84426Z'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",ep="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.5%2015.2A8.5%208.5%200%201%201%2010.2%203.6a6.7%206.7%200%201%200%2010.3%2011.6Z'%20fill='%235E5B67'/%3e%3c/svg%3e",tp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='UpperBodyIcon'%3e%3cpath%20id='TopIcon'%20d='M14.3596%205.13528C14.537%204.86646%2014.8726%204.72006%2015.1672%204.84621L20.6506%207.81594C20.9417%207.94063%2021.0776%208.27979%2020.9543%208.57375L19.5373%2011.2368C19.4137%2011.5309%2019.0766%2011.6682%2018.7853%2011.5435L17.3713%2010.938L17.9719%2019.2212C17.9719%2019.5406%2017.715%2019.8003%2017.3986%2019.8003H6.61053C6.29436%2019.8001%206.03826%2019.5404%206.03826%2019.2212L6.63787%2010.9048L5.15057%2011.5415C4.85933%2011.6661%204.5231%2011.5288%204.39959%2011.2349L3.04607%208.57278C2.9225%208.27868%203.05842%207.93864%203.34979%207.81399L8.77068%204.84621C9.06528%204.72018%209.40093%204.86646%209.5783%205.13528C9.78488%205.44867%2010.0513%205.72049%2010.3635%205.93313C10.8376%206.256%2011.397%206.42894%2011.9689%206.42922C12.5409%206.42896%2013.1002%206.25602%2013.5744%205.93313C13.8866%205.72052%2014.153%205.44864%2014.3596%205.13528ZM11.1369%209.49172C11.086%209.49172%2011.0405%209.52472%2011.0236%209.57278L9.6242%2013.5532C9.59677%2013.6313%209.65475%2013.7134%209.73748%2013.7134H10.8986C10.9764%2013.7134%2011.0342%2013.7863%2011.0158%2013.8618L10.3019%2016.7866C10.2718%2016.9102%2010.4296%2016.9899%2010.5109%2016.8921L14.2053%2012.4419C14.27%2012.3637%2014.2141%2012.2447%2014.1125%2012.2447H13.1672C13.0777%2012.2447%2013.0194%2012.1506%2013.0597%2012.0708L14.2795%209.66653C14.3199%209.58681%2014.2623%209.49199%2014.173%209.49172H11.1369Z'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",rp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2017.8%2019.5778'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M8.9%200.9V3.34444M12.9%2018.6778H16.9L15.1222%200.9H2.67778L0.900004%2018.6778H4.9L8.9%207.56667L12.9%2018.6778Z'%20stroke='var(--stroke-0,%20white)'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M5.78888%200.9C5.78888%200.9%205.78888%203.56667%204.89999%204.45556C4.0111%205.34444%202.18888%205.78889%202.18888%205.78889M12.0111%200.9C12.0111%200.9%2012.0111%203.56667%2012.9%204.45556C13.7889%205.34444%2015.6111%205.78889%2015.6111%205.78889'%20stroke='var(--stroke-0,%20white)'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",np="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='ExpandMoreFilled'%3e%3cpath%20id='Vector'%20d='M13.825%206.9125L10%2010.7292L6.175%206.9125L5%208.0875L10%2013.0875L15%208.0875L13.825%206.9125Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",op="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='9'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M12%207V12L15.5%2014'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",sp="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%201H4a2%202%200%200%200-2%202v12h2V3h12V1zm3%204H8a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h11a2%202%200%200%200%202-2V7a2%202%200%200%200-2-2zm0%2016H8V7h11v14z'%20fill='%23000'/%3e%3c/svg%3e",ap="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%201.75a10.25%2010.25%200%201%200%200%2020.5%2010.25%2010.25%200%200%200%200-20.5Zm0%205.9%204.68%208.1a0.9%200.9%200%200%201-0.78%201.35H8.1a0.9%200.9%200%200%201-0.78-1.35L12%207.65Z'%20fill='%23242129'/%3e%3c/svg%3e",ip="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM8.97013%2010.9972C11.1295%209.39269%2013.1764%209.33459%2013.4239%209.3336C13.4403%209.33353%2013.4488%209.33372%2013.4488%209.33372L13.6088%209.52564C10.7296%2010.3414%209.41797%2011.6051%209.41797%2011.6051C9.41797%2011.6051%209.76991%2011.4131%2010.3617%2011.1572C12.0732%2010.4054%2013.4328%2010.2135%2013.9927%2010.1495L14.0284%2010.1435C14.1091%2010.1297%2014.1807%2010.1175%2014.2646%2010.1175C15.2403%209.98956%2016.344%209.95753%2017.4957%2010.0855C19.0153%2010.2614%2020.6468%2010.7093%2022.3103%2011.6051C22.3103%2011.6051%2021.0467%2010.4054%2018.3275%209.58964L18.5514%209.33372C18.5514%209.33372%2020.7428%209.28572%2023.0301%2010.9972C23.0301%2010.9972%2025.3335%2015.1401%2025.3335%2020.2426C25.3335%2020.2418%2025.3297%2020.2474%2025.3222%2020.2587C25.1861%2020.4629%2023.8039%2022.5358%2020.4549%2022.6419C20.4549%2022.6419%2019.879%2021.9542%2019.3992%2021.3623C21.4946%2020.7705%2022.2943%2019.4749%2022.2943%2019.4749C21.6385%2019.9067%2021.0147%2020.2106%2020.4549%2020.4186C19.6551%2020.7545%2018.8873%2020.9624%2018.1355%2021.1063C16.5999%2021.3943%2015.1923%2021.3143%2013.9927%2021.0904C13.0809%2020.9144%2012.2971%2020.6745%2011.6413%2020.4026C11.2734%2020.2586%2010.8736%2020.0826%2010.4737%2019.8587C10.4497%2019.8427%2010.4257%2019.8307%2010.4017%2019.8187L10.4017%2019.8187L10.4016%2019.8187C10.3777%2019.8067%2010.3537%2019.7947%2010.3297%2019.7787C10.3175%2019.7726%2010.3076%2019.7665%2010.2992%2019.7613C10.2855%2019.7529%2010.2757%2019.7468%2010.2658%2019.7468C9.97786%2019.5868%209.81787%2019.4749%209.81787%2019.4749C9.81787%2019.4749%2010.5856%2020.7385%2012.6171%2021.3463C12.1372%2021.9541%2011.5454%2022.6579%2011.5454%2022.6579C8.01038%2022.5459%206.66679%2020.2426%206.66679%2020.2426C6.66679%2015.1401%208.97013%2010.9972%208.97013%2010.9972ZM14.6485%2016.9955C14.6645%2016.0198%2013.9287%2015.236%2013.017%2015.236C12.1053%2015.236%2011.3855%2016.0198%2011.3855%2016.9955C11.3855%2017.9712%2012.1213%2018.755%2013.017%2018.755C13.9287%2018.755%2014.6485%2017.9712%2014.6485%2016.9955ZM18.8552%2015.236C19.751%2015.236%2020.4868%2016.0198%2020.4868%2016.9955C20.4868%2017.9712%2019.767%2018.755%2018.8552%2018.755C17.9595%2018.755%2017.2237%2017.9712%2017.2237%2016.9955C17.2237%2016.0198%2017.9435%2015.236%2018.8552%2015.236Z'%20fill='white'/%3e%3c/svg%3e",cp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M19%203.2%209.5%205.3v9.9A3.6%203.6%200%201%200%2011.5%2018.4V9.1L17%207.9v4.3a3.6%203.6%200%201%200%202-3.24V3.2Z'/%3e%3c/svg%3e",lp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill-rule='evenodd'%3e%3cpath%20d='M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20ZM8.8%208.6a1.4%201.4%200%201%201%200%202.8%201.4%201.4%200%200%201%200-2.8Zm6.4%200a1.4%201.4%200%201%201%200%202.8%201.4%201.4%200%200%201%200-2.8ZM6.9%2013.9h10.2a5.1%205.1%200%200%201-10.2%200Z'/%3e%3c/svg%3e",up="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M8.5%2022A5.5%205.5%200%200%201%203%2016.5v-3.3a1.25%201.25%200%200%201%202.5%200v1.8h.5V5.4a1.3%201.3%200%200%201%202.6%200V11h.5V4.1a1.3%201.3%200%200%201%202.6%200V11h.5V4.7a1.3%201.3%200%200%201%202.6%200V11h.5V6.9a1.25%201.25%200%200%201%202.5%200v7.6A7.5%207.5%200%200%201%2010%2022Z'/%3e%3c/svg%3e",dp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill-rule='evenodd'%3e%3cpath%20d='M12%202a8%208%200%200%200-8%208v11.2a.7.7%200%200%200%201.15.54L7.2%2020l2.05%201.7a.7.7%200%200%200%20.9%200L12%2020l1.85%201.7a.7.7%200%200%200%20.9%200L16.8%2020l2.05%201.74A.7.7%200%200%200%2020%2021.2V10a8%208%200%200%200-8-8ZM9.3%208.8a1.5%201.5%200%201%200%200%203%201.5%201.5%200%200%200%200-3Zm5.4%200a1.5%201.5%200%201%200%200%203%201.5%201.5%200%200%200%200-3Z'/%3e%3c/svg%3e",fp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M6.5%205a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Zm11%200a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Zm-11%209.2a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Zm11%200a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Z'/%3e%3c/svg%3e",hp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12%202.2a2.5%202.5%200%201%201%200%205%202.5%202.5%200%200%201%200-5ZM9.2%208.2h5.6a2%202%200%200%201%202%202v4.6a1%201%200%200%201-2%200v-3.3h-.5v9.3a1.1%201.1%200%200%201-2.2%200v-5.3h-.6v5.3a1.1%201.1%200%200%201-2.2%200v-9.3h-.5v3.3a1%201%200%200%201-2%200v-4.6a2%202%200%200%201%202-2Z'/%3e%3c/svg%3e",pp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill-rule='evenodd'%3e%3cpath%20d='M4%203.5h16a2.5%202.5%200%200%201%202.5%202.5v8a2.5%202.5%200%200%201-2.5%202.5h-7.3l-4.7%203.9a.7.7%200%200%201-1.15-.54V16.5H4A2.5%202.5%200%200%201%201.5%2014V6A2.5%202.5%200%200%201%204%203.5ZM8%208.7a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6Zm4%200a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6Zm4%200a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6Z'/%3e%3c/svg%3e",mp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M13.6%202%204.5%2013.4a.7.7%200%200%200%20.55%201.14H10l-1.1%207.02a.55.55%200%200%200%20.99.42l9.6-11.98a.7.7%200%200%200-.55-1.14H13.2l1.35-6.06A.55.55%200%200%200%2013.6%202Z'/%3e%3c/svg%3e",gp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi:ethereum'%3e%3crect%20width='16'%20height='16'%20rx='8'%20fill='url(%23paint0_linear_0_1668)'/%3e%3cpath%20id='Vector'%20d='M7.58334%201.99997L4%208.01999L7.58334%2010.17L11.1667%208.01999L7.58334%201.99997ZM4%208.73665L7.58334%2013.7533L11.1667%208.73665L7.58334%2010.8867L4%208.73665Z'%20fill='var(--fill-0,%20%23FCFCFC)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_1668'%20x1='8'%20y1='0'%20x2='8'%20y2='16'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230E0E0E'/%3e%3cstop%20offset='1'%20stop-color='%23787878'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",yp="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%2019H5V5h7V3H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2v-7h-2v7zM14%203v2h3.59l-9.83%209.83%201.41%201.41L19%206.41V10h2V3h-7z'%20fill='%23000'/%3e%3c/svg%3e",vp="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM18.0025%208.00024L20.1612%208.00357C20.3484%208.00391%2020.5001%208.14989%2020.5001%208.32982V10.7724C20.5001%2010.9525%2020.3482%2011.0986%2020.1609%2011.0986L18.7067%2011.0991C17.7041%2011.0991%2017.5207%2011.4746%2017.5207%2012.2143V13.7534H20.0594C20.1494%2013.7534%2020.236%2013.7878%2020.2996%2013.8491C20.3631%2013.9103%2020.399%2013.9932%2020.399%2014.0798L20.3979%2016.7103C20.3979%2016.8905%2020.2461%2017.0365%2020.0585%2017.0365H17.5207V23.674C17.5207%2023.8541%2017.3689%2024.0002%2017.1813%2024.0002H14.3495C14.1619%2024.0002%2014.01%2023.8543%2014.01%2023.674V17.0365H11.8396C11.6522%2017.0365%2011.5001%2016.8905%2011.5001%2016.7103V14.0798C11.5001%2013.8995%2011.652%2013.7534%2011.8396%2013.7534H14.01V11.9379C14.01%209.54576%2015.5773%208.00024%2018.0025%208.00024Z'%20fill='white'/%3e%3c/svg%3e",bp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='currentColor'%20d='M4.25%205.61C6.27%208.2%2010%2013%2010%2013v6c0%20.55.45%201%201%201h2c.55%200%201-.45%201-1v-6s3.72-4.8%205.74-7.39A.998.998%200%200%200%2018.95%204H5.04c-.83%200-1.3.95-.79%201.61z'/%3e%3c/svg%3e",wp="data:image/svg+xml,%3csvg%20viewBox='0%200%2014.4093%2021'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.630405%201.06971C0.118387%201.27166%20-0.132525%201.85083%200.0703418%202.36248L4.5%208.65001L6%2011.9743L2.91857%2015L0.947687%2019.8337C0.843152%2020.4432%201.31259%2021%201.93098%2021C2.42738%2021%202.84826%2020.635%202.91857%2020.1437L4.64492%2016.1279L8.58256%2012.9801L7.80317%2019.8459C7.73334%2020.4611%208.21456%2021%208.8337%2021C9.35359%2021%209.79314%2020.6151%209.86178%2020.0998L10.9439%2011.9743L10.4357%208.65001L14.2341%203.18092C14.6814%202.53679%2014.2205%201.65543%2013.4362%201.65543C13.113%201.65543%2012.8109%201.81622%2012.6304%202.08436L10.6697%204.85006C9.93601%205.88499%208.74611%206.5%207.4775%206.5C6.23405%206.5%205.06462%205.90901%204.32709%204.9079L1.93098%201.65543C1.73952%201.12899%201.15151%200.864182%200.630405%201.06971Z'%20fill='%23000'/%3e%3ccircle%20cx='7.50271'%20cy='2.50271'%20r='2.50271'%20fill='%23000'/%3e%3c/svg%3e",_p="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='8'%20r='5.5'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M12%2013.5V22M8.5%2018.5h7'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",Ep="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9.5'%20cy='14.5'%20r='5.5'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M13.4%2010.6%2020%204M14.5%204H20v5.5'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",xp="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='4.5'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M15.4%208.6%2020%204M15%204h5v5'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%2016.5V21M9%2019h6'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",Sp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Favourite'%3e%3cpath%20id='heart%20icn'%20d='M6.17811%203.05867H6.19666C6.80699%203.05543%207.41165%203.18384%207.9701%203.43562C8.24268%203.55854%208.50168%203.70952%208.74256%203.88582C8.99505%204.07064%209.22797%204.28333%209.4369%204.52058L10.0004%205.16023L10.5629%204.52058C10.7719%204.28322%2011.0056%204.0707%2011.2582%203.88582C11.4991%203.70952%2011.758%203.55853%2012.0306%203.43562C12.5891%203.18387%2013.1938%203.05538%2013.8041%203.05867H13.8217C14.3276%203.04916%2014.8305%203.14205%2015.3012%203.33211C15.7719%203.5222%2016.2012%203.80588%2016.5639%204.16707C16.9265%204.52829%2017.2153%204.9597%2017.4125%205.4366C17.6097%205.91346%2017.7114%206.42568%2017.7113%206.94343C17.7113%208.58332%2016.9202%2010.1174%2015.6849%2011.5919C14.4485%2013.0677%2012.8407%2014.4001%2011.3295%2015.6495C11.0556%2015.8759%2010.7842%2016.0996%2010.5219%2016.3194C10.2242%2016.5685%209.78111%2016.5679%209.4828%2016.3165C9.19652%2016.0752%208.89983%2015.8289%208.59999%2015.5802C7.09694%2014.3334%205.50709%2013.0123%204.28651%2011.5499C3.06753%2010.0893%202.28846%208.57068%202.28846%206.94343C2.28839%206.42571%202.39012%205.91344%202.58729%205.4366C2.78449%204.95973%203.07328%204.52828%203.43592%204.16707C3.79856%203.80588%204.2279%203.52221%204.69862%203.33211C5.1693%203.14203%205.6722%203.04918%206.17811%203.05867Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",Cp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Favourite'%3e%3cpath%20id='heart%20icn'%20d='M6.17811%203.05867H6.19666C6.80699%203.05543%207.41165%203.18384%207.9701%203.43562C8.24268%203.55854%208.50168%203.70952%208.74256%203.88582C8.99505%204.07064%209.22797%204.28333%209.4369%204.52058L10.0004%205.16023L10.5629%204.52058C10.7719%204.28322%2011.0056%204.0707%2011.2582%203.88582C11.4991%203.70952%2011.758%203.55853%2012.0306%203.43562C12.5891%203.18387%2013.1938%203.05538%2013.8041%203.05867H13.8217C14.3276%203.04916%2014.8305%203.14205%2015.3012%203.33211C15.7719%203.5222%2016.2012%203.80588%2016.5639%204.16707C16.9265%204.52829%2017.2153%204.9597%2017.4125%205.4366C17.6097%205.91346%2017.7114%206.42568%2017.7113%206.94343C17.7113%208.58332%2016.9202%2010.1174%2015.6849%2011.5919C14.4485%2013.0677%2012.8407%2014.4001%2011.3295%2015.6495C11.0556%2015.8759%2010.7842%2016.0996%2010.5219%2016.3194C10.2242%2016.5685%209.78111%2016.5679%209.4828%2016.3165C9.19652%2016.0752%208.89983%2015.8289%208.59999%2015.5802C7.09694%2014.3334%205.50709%2013.0123%204.28651%2011.5499C3.06753%2010.0893%202.28846%208.57068%202.28846%206.94343C2.28839%206.42571%202.39012%205.91344%202.58729%205.4366C2.78449%204.95973%203.07328%204.52828%203.43592%204.16707C3.79856%203.80588%204.2279%203.52221%204.69862%203.33211C5.1693%203.14203%205.6722%203.04918%206.17811%203.05867Z'%20stroke='var(--stroke-0,%20%23242129)'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",Tp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M30%2060C46.5685%2060%2060%2046.5685%2060%2030C60%2013.4315%2046.5685%200%2030%200C13.4315%200%200%2013.4315%200%2030C0%2046.5685%2013.4315%2060%2030%2060Z'%20fill='url(%23paint0_linear_0_1856)'/%3e%3cpath%20id='Vector_2'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.2549%2019.4982V41.9982H40.0049L21.2549%2019.4982Z'%20fill='url(%23paint1_linear_0_1856)'/%3e%3cpath%20id='Vector_3'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.50488%2041.9982H21.2549V19.4982L2.50488%2041.9982Z'%20fill='var(--fill-0,%20white)'/%3e%3cpath%20id='Vector_4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.00023%2048.0018C7.71023%2050.2668%209.73523%2052.2918%2012.0002%2054.0018H48.0002C50.2652%2052.2918%2052.2902%2050.2668%2054.0002%2048.0018H6.00023Z'%20fill='var(--fill-0,%20%23FC9965)'/%3e%3cpath%20id='Vector_5'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.0005%2053.9964C17.0105%2057.7614%2023.2505%2059.9964%2030.0005%2059.9964C36.7505%2059.9964%2042.9905%2057.7614%2048.0005%2053.9964H12.0005Z'%20fill='var(--fill-0,%20%23FF2D55)'/%3e%3cpath%20id='Vector_6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2449%2031.4964V47.9964H53.9999L40.2449%2031.4964Z'%20fill='url(%23paint2_linear_0_1856)'/%3e%3cpath%20id='Vector_7'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2449%2041.9982H2.50488C3.43488%2044.1432%204.61988%2046.1532%205.99988%2047.9982H40.2599V41.9982H40.2449V41.9982Z'%20fill='var(--fill-0,%20%23FFBC5B)'/%3e%3cpath%20id='Vector_8'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.5047%2047.9964H40.2447V31.4964L26.5047%2047.9964Z'%20fill='var(--fill-0,%20white)'/%3e%3cpath%20id='Vector_9'%20d='M40.2449%2026.9982C44.387%2026.9982%2047.7449%2023.6403%2047.7449%2019.4982C47.7449%2015.3561%2044.387%2011.9982%2040.2449%2011.9982C36.1028%2011.9982%2032.7449%2015.3561%2032.7449%2019.4982C32.7449%2023.6403%2036.1028%2026.9982%2040.2449%2026.9982Z'%20fill='var(--fill-0,%20%23FFC95B)'/%3e%3cpath%20id='Vector_10'%20d='M21.255%2015C23.3261%2015%2025.005%2013.3211%2025.005%2011.25C25.005%209.17893%2023.3261%207.5%2021.255%207.5C19.1839%207.5%2017.505%209.17893%2017.505%2011.25C17.505%2013.3211%2019.1839%2015%2021.255%2015Z'%20fill='var(--fill-0,%20%23FFC95B)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_1856'%20x1='51.213'%20y1='8.787'%20x2='8.787'%20y2='51.213'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_1856'%20x1='30.6235'%20y1='19.4982'%20x2='30.6235'%20y2='41.9982'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A524B3'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_0_1856'%20x1='47.1177'%20y1='31.4964'%20x2='47.1177'%20y2='47.9964'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A524B3'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Ap="data:image/svg+xml,%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2017.25V21h3.75L17.81%209.94l-3.75-3.75L3%2017.25zM20.71%207.04c.39-.39.39-1.02%200-1.41l-2.34-2.34a.9959.9959%200%2000-1.41%200l-1.83%201.83%203.75%203.75%201.83-1.83z'%20fill='%23000'/%3e%3c/svg%3e",Ip="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='currentColor'%20d='M11%205h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3e%3c/svg%3e",kp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2021.3333%2020.7151'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='search%20copy'%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20d='M9.4032%203.45251C12.6323%203.45276%2015.2498%205.99465%2015.2499%209.13025C15.2499%2010.2591%2014.9095%2011.3103%2014.3245%2012.1943C14.3033%2012.2264%2014.3121%2012.2656%2014.3397%2012.2924L17.4296%2015.2924C17.8936%2015.743%2017.8935%2016.4735%2017.4296%2016.9242C16.9654%2017.3748%2016.213%2017.3748%2015.7489%2016.9242L12.6591%2013.9242C12.6315%2013.8974%2012.5925%2013.8886%2012.5598%2013.909C11.6491%2014.4775%2010.5654%2014.808%209.40222%2014.808C6.17313%2014.8077%203.55554%2012.2658%203.55554%209.13025C3.55556%205.99453%206.1739%203.45251%209.4032%203.45251ZM9.40222%205.42126C7.2926%205.42147%205.58291%207.08166%205.58289%209.13025C5.58289%2011.1788%207.29252%2012.84%209.40222%2012.8402C11.512%2012.8402%2013.2225%2011.1789%2013.2225%209.13025C13.2225%207.08159%2011.512%205.42126%209.40222%205.42126Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",Rp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%208v5c0%201%20.8%201.8%202%202h13c1%200%202-.6%202-1.6%200-.7-.4-1.2-1-1.5L11%208V6H4Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",Pp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2021v-9c-2%200-3-1.6-3-3%200-1%201-1.6%202-1l1%201V5c0-1%202-1%202%200v4h6c1%200%202%20.8%202%202v5c0%203-2%205-5%205H8Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",Np="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='8'%20r='4'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M5%2020c0-3.9%203.1-7%207-7s7%203.1%207%207'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",Op="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2012%2012%203h8v8l-9%209-8-8Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3ccircle%20cx='16.5'%20cy='7.5'%20r='1.5'%20fill='%23000'/%3e%3c/svg%3e",jp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%203h10l-1%2018h-3L12%2010l-1%2011H8L7%203Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",Lp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%203%204%206l2%204%202-1v9h8v-9l2%201%202-4-5-3c-.5%201.6-5.5%201.6-6%200Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",Bp="data:image/svg+xml,%3csvg%20width='19'%20height='18'%20viewBox='0%200%2019%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.17684%207.94806C9.12161%207.94806%209.07684%207.90329%209.07684%207.84806V2.6359C9.07684%202.53961%208.95409%202.49895%208.89661%202.57621L3.63031%209.65401C3.50759%209.81893%203.62531%2010.0532%203.83088%2010.0532H6.823C6.87823%2010.0532%206.923%2010.098%206.923%2010.1532V15.3654C6.923%2015.4617%207.04575%2015.5024%207.10323%2015.4251L12.3695%208.3473C12.4922%208.18237%2012.3745%207.94806%2012.169%207.94806H9.17684Z'%20fill='white'%20stroke='white'%20stroke-width='0.75'/%3e%3c/svg%3e",Mp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%207h16M9%207V5c0-.6.4-1%201-1h4c.6%200%201%20.4%201%201v2m2%200-1%2013c0%20.6-.4%201-1%201H8c-.6%200-1-.4-1-1L6%207'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Fp="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM23.2822%2010.9531C24.0001%2010.9531%2024.7181%2010.7452%2025.3335%2010.4335C24.8206%2011.1609%2024.2052%2011.8883%2023.5899%2012.304V12.8236C23.5899%2017.6038%2020.0001%2023.1114%2013.436%2023.1114C11.4873%2023.1114%209.53858%2022.4879%208.00012%2021.4487H8.82063C10.4617%2021.4487%2012.0001%2020.8252%2013.2309%2019.8899C11.5899%2019.8899%2010.2565%2018.8508%209.84628%2017.3959C10.154%2017.4998%2010.3591%2017.4998%2010.5642%2017.4998C10.8719%2017.4998%2011.1796%2017.4998%2011.4873%2017.3959C9.84628%2017.0842%208.61551%2015.6293%208.61551%2013.8628C9.12833%2014.0706%209.64115%2014.2784%2010.2565%2014.2784C9.23089%2013.6549%208.61551%2012.5118%208.61551%2011.2648C8.61551%2010.5374%208.82063%209.91391%209.12833%209.39433C10.8719%2011.5766%2013.5386%2013.0314%2016.5129%2013.1353C16.4104%2012.8236%2016.4104%2012.6158%2016.4104%2012.304V12.304C16.4104%2010.3296%2018.0514%208.66691%2020.0001%208.66691C21.0258%208.66691%2021.9488%209.08258%2022.5642%209.81C23.3847%209.70608%2024.1027%209.39433%2024.8206%208.97866C24.6155%209.81%2024.0001%2010.5374%2023.2822%2010.9531Z'%20fill='white'/%3e%3c/svg%3e",$p="data:image/svg+xml,%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%2014V6.83L8.41%209.41%207%208l5-5%205%205-1.41%201.41L13%206.83V14h-2zM5%2021c-.55%200-1.02-.196-1.412-.587A1.926%201.926%200%20013%2019v-3h2v3h14v-3h2v3c0%20.55-.196%201.02-.588%201.413A1.926%201.926%200%200119%2021H5z'%20fill='%23000'/%3e%3c/svg%3e",Dp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon%20Right'%3e%3cpath%20id='Vector'%20d='M9.705%206L8.295%207.41L12.875%2012L8.295%2016.59L9.705%2018L15.705%2012L9.705%206Z'%20fill='var(--fill-0,%20%23691FA9)'/%3e%3c/g%3e%3c/svg%3e",qp="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM23.0696%208.93076C19.162%205.02309%2012.8376%205.02372%208.93064%208.93076C5.02301%2012.8384%205.02356%2019.1627%208.93064%2023.0697C12.8382%2026.9774%2019.1626%2026.9768%2023.0696%2023.0697C26.9773%2019.1621%2026.9767%2012.8378%2023.0696%208.93076ZM10.842%2020.5386C10.3153%2020.8572%209.81563%2021.2269%209.34851%2021.6446C8.1448%2020.2307%207.43241%2018.4914%207.29951%2016.6374H10.2389C10.2876%2018.0129%2010.4939%2019.3361%2010.842%2020.5386ZM21.7614%2016.6374H24.7008C24.5678%2018.4914%2023.8555%2020.2307%2022.6518%2021.6446C22.1846%2021.2269%2021.685%2020.8572%2021.1583%2020.5386C21.5064%2019.3361%2021.7126%2018.0129%2021.7614%2016.6374ZM21.1583%2011.4619C21.6849%2011.1433%2022.1846%2010.7736%2022.6517%2010.3559C23.8555%2011.7699%2024.5678%2013.5091%2024.7008%2015.3631H21.7614C21.7126%2013.9876%2021.5064%2012.6644%2021.1583%2011.4619ZM19.607%2010.8411C18.6782%2011.2633%2017.6763%2011.5192%2016.6372%2011.5936V7.36829C18.071%207.78174%2019.0668%209.45011%2019.607%2010.8411ZM16.6372%2015.3632V12.8702C17.8128%2012.7969%2018.9479%2012.5214%2020.0035%2012.0599C20.2776%2013.0823%2020.4425%2014.1996%2020.4866%2015.3632H16.6372ZM16.6372%2019.1304V16.6374H20.4866C20.4425%2017.801%2020.2776%2018.9183%2020.0035%2019.9406C18.9479%2019.4792%2017.8128%2019.2036%2016.6372%2019.1304ZM16.6372%2024.6322V20.407C17.6763%2020.4813%2018.6782%2020.7372%2019.607%2021.1594C19.0667%2022.5506%2018.0709%2024.2188%2016.6372%2024.6322ZM12.3933%2021.1594C13.3221%2020.7372%2014.3239%2020.4813%2015.363%2020.407V24.6322C13.9293%2024.2188%2012.9335%2022.5505%2012.3933%2021.1594ZM15.363%2016.6374V19.1304C14.1875%2019.2036%2013.0523%2019.4792%2011.9968%2019.9406C11.7226%2018.9183%2011.5577%2017.801%2011.5136%2016.6374H15.363ZM15.363%2012.8702V15.3632H11.5136C11.5577%2014.1996%2011.7226%2013.0823%2011.9968%2012.0599C13.0523%2012.5214%2014.1875%2012.7969%2015.363%2012.8702ZM15.363%207.36833V11.5936C14.3239%2011.5192%2013.3221%2011.2633%2012.3933%2010.8412C12.9334%209.45014%2013.9293%207.78178%2015.363%207.36833ZM10.2428%209.44663C10.9249%208.84579%2011.6857%208.36154%2012.5013%208.00441C11.9912%208.67363%2011.5854%209.43801%2011.2678%2010.2246C10.91%209.99244%2010.5675%209.73288%2010.2428%209.44663ZM21.7575%209.44663C21.4328%209.73288%2021.0902%209.99244%2020.7325%2010.2246C20.4148%209.43808%2020.009%208.67371%2019.499%208.00441C20.3145%208.36154%2021.0754%208.84579%2021.7575%209.44663ZM19.4989%2023.9961C20.009%2023.3269%2020.4148%2022.5625%2020.7325%2021.776C21.0902%2022.0081%2021.4328%2022.2677%2021.7574%2022.5539C21.0754%2023.1547%2020.3145%2023.639%2019.4989%2023.9961ZM10.2428%2022.5539C10.5675%2022.2677%2010.91%2022.0081%2011.2678%2021.776C11.5854%2022.5625%2011.9913%2023.327%2012.5013%2023.9961C11.6857%2023.639%2010.9249%2023.1547%2010.2428%2022.5539ZM10.8419%2011.4619C10.4938%2012.6644%2010.2876%2013.9877%2010.2388%2015.3632H7.29947C7.43241%2013.5091%208.14476%2011.7699%209.34847%2010.356C9.81563%2010.7737%2010.3153%2011.1433%2010.8419%2011.4619Z'%20fill='white'/%3e%3c/svg%3e",Up=Object.assign({"../../assets/icons/arrow-left.svg":H1,"../../assets/icons/bell.svg":z1,"../../assets/icons/carousel-arrow.svg":G1,"../../assets/icons/cart-solid.svg":W1,"../../assets/icons/cart.svg":Z1,"../../assets/icons/cat-accessories.svg":K1,"../../assets/icons/cat-feet.svg":Y1,"../../assets/icons/cat-handwear.svg":Q1,"../../assets/icons/cat-head.svg":J1,"../../assets/icons/cat-lower.svg":X1,"../../assets/icons/cat-skins.svg":ep,"../../assets/icons/cat-upper.svg":tp,"../../assets/icons/category-eyewear.svg":rp,"../../assets/icons/chevron-down.svg":np,"../../assets/icons/clock.svg":op,"../../assets/icons/copy.svg":sp,"../../assets/icons/credits.svg":ap,"../../assets/icons/discord.svg":ip,"../../assets/icons/emote-dance.svg":cp,"../../assets/icons/emote-fun.svg":lp,"../../assets/icons/emote-greetings.svg":up,"../../assets/icons/emote-horror.svg":dp,"../../assets/icons/emote-misc.svg":fp,"../../assets/icons/emote-poses.svg":hp,"../../assets/icons/emote-reactions.svg":pp,"../../assets/icons/emote-stunt.svg":mp,"../../assets/icons/ethereum.svg":gp,"../../assets/icons/external-link.svg":yp,"../../assets/icons/facebook.svg":vp,"../../assets/icons/filter.svg":bp,"../../assets/icons/fitting-room.svg":wp,"../../assets/icons/gender-female.svg":_p,"../../assets/icons/gender-male.svg":Ep,"../../assets/icons/gender-unisex.svg":xp,"../../assets/icons/heart-solid.svg":Sp,"../../assets/icons/heart.svg":Cp,"../../assets/icons/mana-logo.svg":Tp,"../../assets/icons/pen.svg":Ap,"../../assets/icons/plus.svg":Ip,"../../assets/icons/search.svg":kp,"../../assets/icons/slot-feet.svg":Rp,"../../assets/icons/slot-hands.svg":Pp,"../../assets/icons/slot-head.svg":Np,"../../assets/icons/slot-item.svg":Op,"../../assets/icons/slot-lower.svg":jp,"../../assets/icons/slot-upper.svg":Lp,"../../assets/icons/smart.svg":Bp,"../../assets/icons/trash.svg":Mp,"../../assets/icons/twitter.svg":Fp,"../../assets/icons/upload.svg":$p,"../../assets/icons/view-all-arrow.svg":Dp,"../../assets/icons/website.svg":qp}),W2={};for(const[e,t]of Object.entries(Up))W2[e.slice(e.lastIndexOf("/")+1,-4)]=t;function _t({name:e,size:t,className:r,style:n,...o}){const s=W2[e],i={"--icon-url":s?`url("${s}")`:void 0,...t!=null?{width:t,height:t}:null,...n},u=o["aria-label"]==null&&o.role==null;return f.jsx("span",{"aria-hidden":u||void 0,...o,className:r?`ico ${r}`:"ico",style:i})}function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ke.apply(null,arguments)}function Vp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Hp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var zp=(function(){function e(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Hp(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Vp(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Lt="-ms-",wa="-moz-",ze="-webkit-",Z2="comm",ul="rule",dl="decl",Gp="@import",K2="@keyframes",Wp="@layer",Zp=Math.abs,Ca=String.fromCharCode,Kp=Object.assign;function Yp(e,t){return It(e,0)^45?(((t<<2^It(e,0))<<2^It(e,1))<<2^It(e,2))<<2^It(e,3):0}function Y2(e){return e.trim()}function Qp(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,r){return e.replace(t,r)}function Uc(e,t){return e.indexOf(t)}function It(e,t){return e.charCodeAt(t)|0}function Vo(e,t,r){return e.slice(t,r)}function Ir(e){return e.length}function fl(e){return e.length}function Xs(e,t){return t.push(e),e}function Jp(e,t){return e.map(t).join("")}var Ta=1,po=1,Q2=0,Kt=0,gt=0,vo="";function Aa(e,t,r,n,o,s,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:Ta,column:po,length:i,return:""}}function To(e,t){return Kp(Aa("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xp(){return gt}function em(){return gt=Kt>0?It(vo,--Kt):0,po--,gt===10&&(po=1,Ta--),gt}function rr(){return gt=Kt<Q2?It(vo,Kt++):0,po++,gt===10&&(po=1,Ta++),gt}function Rr(){return It(vo,Kt)}function pa(){return Kt}function rs(e,t){return Vo(vo,e,t)}function Ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function J2(e){return Ta=po=1,Q2=Ir(vo=e),Kt=0,[]}function X2(e){return vo="",e}function ma(e){return Y2(rs(Kt-1,Vc(e===91?e+2:e===40?e+1:e)))}function tm(e){for(;(gt=Rr())&&gt<33;)rr();return Ho(e)>2||Ho(gt)>3?"":" "}function rm(e,t){for(;--t&&rr()&&!(gt<48||gt>102||gt>57&&gt<65||gt>70&&gt<97););return rs(e,pa()+(t<6&&Rr()==32&&rr()==32))}function Vc(e){for(;rr();)switch(gt){case e:return Kt;case 34:case 39:e!==34&&e!==39&&Vc(gt);break;case 40:e===41&&Vc(e);break;case 92:rr();break}return Kt}function nm(e,t){for(;rr()&&e+gt!==57;)if(e+gt===84&&Rr()===47)break;return"/*"+rs(t,Kt-1)+"*"+Ca(e===47?e:rr())}function om(e){for(;!Ho(Rr());)rr();return rs(e,Kt)}function sm(e){return X2(ga("",null,null,null,[""],e=J2(e),0,[0],e))}function ga(e,t,r,n,o,s,i,u,d){for(var h=0,m=0,p=i,b=0,E=0,A=0,g=1,T=1,H=1,v=0,k="",w=o,Y=s,U=n,S=k;T;)switch(A=v,v=rr()){case 40:if(A!=108&&It(S,p-1)==58){Uc(S+=Ge(ma(v),"&","&\f"),"&\f")!=-1&&(H=-1);break}case 34:case 39:case 91:S+=ma(v);break;case 9:case 10:case 13:case 32:S+=tm(A);break;case 92:S+=rm(pa()-1,7);continue;case 47:switch(Rr()){case 42:case 47:Xs(am(nm(rr(),pa()),t,r),d);break;default:S+="/"}break;case 123*g:u[h++]=Ir(S)*H;case 125*g:case 59:case 0:switch(v){case 0:case 125:T=0;case 59+m:H==-1&&(S=Ge(S,/\f/g,"")),E>0&&Ir(S)-p&&Xs(E>32?bu(S+";",n,r,p-1):bu(Ge(S," ","")+";",n,r,p-2),d);break;case 59:S+=";";default:if(Xs(U=vu(S,t,r,h,m,o,u,k,w=[],Y=[],p),s),v===123)if(m===0)ga(S,t,U,U,w,s,p,u,Y);else switch(b===99&&It(S,3)===110?100:b){case 100:case 108:case 109:case 115:ga(e,U,U,n&&Xs(vu(e,U,U,0,0,o,u,k,o,w=[],p),Y),o,Y,p,u,n?w:Y);break;default:ga(S,U,U,U,[""],Y,0,u,Y)}}h=m=E=0,g=H=1,k=S="",p=i;break;case 58:p=1+Ir(S),E=A;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&em()==125)continue}switch(S+=Ca(v),v*g){case 38:H=m>0?1:(S+="\f",-1);break;case 44:u[h++]=(Ir(S)-1)*H,H=1;break;case 64:Rr()===45&&(S+=ma(rr())),b=Rr(),m=p=Ir(k=S+=om(pa())),v++;break;case 45:A===45&&Ir(S)==2&&(g=0)}}return s}function vu(e,t,r,n,o,s,i,u,d,h,m){for(var p=o-1,b=o===0?s:[""],E=fl(b),A=0,g=0,T=0;A<n;++A)for(var H=0,v=Vo(e,p+1,p=Zp(g=i[A])),k=e;H<E;++H)(k=Y2(g>0?b[H]+" "+v:Ge(v,/&\f/g,b[H])))&&(d[T++]=k);return Aa(e,t,r,o===0?ul:u,d,h,m)}function am(e,t,r){return Aa(e,t,r,Z2,Ca(Xp()),Vo(e,2,-2),0)}function bu(e,t,r,n){return Aa(e,t,r,dl,Vo(e,0,n),Vo(e,n+1,-1),n)}function Yn(e,t){for(var r="",n=fl(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function im(e,t,r,n){switch(e.type){case Wp:if(e.children.length)break;case Gp:case dl:return e.return=e.return||e.value;case Z2:return"";case K2:return e.return=e.value+"{"+Yn(e.children,n)+"}";case ul:e.value=e.props.join(",")}return Ir(r=Yn(e.children,n))?e.return=e.value+"{"+r+"}":""}function cm(e){var t=fl(e);return function(r,n,o,s){for(var i="",u=0;u<t;u++)i+=e[u](r,n,o,s)||"";return i}}function lm(e){return function(t){t.root||(t=t.return)&&e(t)}}function ef(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var um=function(t,r,n){for(var o=0,s=0;o=s,s=Rr(),o===38&&s===12&&(r[n]=1),!Ho(s);)rr();return rs(t,Kt)},dm=function(t,r){var n=-1,o=44;do switch(Ho(o)){case 0:o===38&&Rr()===12&&(r[n]=1),t[n]+=um(Kt-1,r,n);break;case 2:t[n]+=ma(o);break;case 4:if(o===44){t[++n]=Rr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Ca(o)}while(o=rr());return t},fm=function(t,r){return X2(dm(J2(t),r))},wu=new WeakMap,hm=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!wu.get(n))&&!o){wu.set(t,!0);for(var s=[],i=fm(r,s),u=n.props,d=0,h=0;d<i.length;d++)for(var m=0;m<u.length;m++,h++)t.props[h]=s[d]?i[d].replace(/&\f/g,u[m]):u[m]+" "+i[d]}}},pm=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function tf(e,t){switch(Yp(e,t)){case 5103:return ze+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ze+e+wa+e+Lt+e+e;case 6828:case 4268:return ze+e+Lt+e+e;case 6165:return ze+e+Lt+"flex-"+e+e;case 5187:return ze+e+Ge(e,/(\w+).+(:[^]+)/,ze+"box-$1$2"+Lt+"flex-$1$2")+e;case 5443:return ze+e+Lt+"flex-item-"+Ge(e,/flex-|-self/,"")+e;case 4675:return ze+e+Lt+"flex-line-pack"+Ge(e,/align-content|flex-|-self/,"")+e;case 5548:return ze+e+Lt+Ge(e,"shrink","negative")+e;case 5292:return ze+e+Lt+Ge(e,"basis","preferred-size")+e;case 6060:return ze+"box-"+Ge(e,"-grow","")+ze+e+Lt+Ge(e,"grow","positive")+e;case 4554:return ze+Ge(e,/([^-])(transform)/g,"$1"+ze+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,ze+"$1"),/(image-set)/,ze+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,ze+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,ze+"box-pack:$3"+Lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ze+e+e;case 4095:case 3583:case 4068:case 2532:return Ge(e,/(.+)-inline(.+)/,ze+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ir(e)-1-t>6)switch(It(e,t+1)){case 109:if(It(e,t+4)!==45)break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+ze+"$2-$3$1"+wa+(It(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Uc(e,"stretch")?tf(Ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(It(e,t+1)!==115)break;case 6444:switch(It(e,Ir(e)-3-(~Uc(e,"!important")&&10))){case 107:return Ge(e,":",":"+ze)+e;case 101:return Ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ze+(It(e,14)===45?"inline-":"")+"box$3$1"+ze+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(It(e,t+11)){case 114:return ze+e+Lt+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ze+e+Lt+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ze+e+Lt+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ze+e+Lt+e+e}return e}var mm=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case dl:t.return=tf(t.value,t.length);break;case K2:return Yn([To(t,{value:Ge(t.value,"@","@"+ze)})],o);case ul:if(t.length)return Jp(t.props,function(s){switch(Qp(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yn([To(t,{props:[Ge(s,/:(read-\w+)/,":"+wa+"$1")]})],o);case"::placeholder":return Yn([To(t,{props:[Ge(s,/:(plac\w+)/,":"+ze+"input-$1")]}),To(t,{props:[Ge(s,/:(plac\w+)/,":"+wa+"$1")]}),To(t,{props:[Ge(s,/:(plac\w+)/,Lt+"input-$1")]})],o)}return""})}},gm=[mm],rf=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var T=g.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||gm,s={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var T=g.getAttribute("data-emotion").split(" "),H=1;H<T.length;H++)s[T[H]]=!0;u.push(g)});var d,h=[hm,pm];{var m,p=[im,lm(function(g){m.insert(g)})],b=cm(h.concat(o,p)),E=function(T){return Yn(sm(T),b)};d=function(T,H,v,k){m=v,E(T?T+"{"+H.styles+"}":H.styles),k&&(A.inserted[H.name]=!0)}}var A={key:r,sheet:new zp({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return A.sheet.hydrate(u),A},ym=!0;function nf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var hl=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||ym===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},pl=function(t,r,n){hl(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function vm(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var bm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wm=/[A-Z]|^ms/g,_m=/_EMO_([^_]+?)_([^]*?)_EMO_/g,of=function(t){return t.charCodeAt(1)===45},_u=function(t){return t!=null&&typeof t!="boolean"},ai=ef(function(e){return of(e)?e:e.replace(wm,"-$&").toLowerCase()}),Eu=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(_m,function(n,o,s){return kr={name:o,styles:s,next:kr},o})}return bm[t]!==1&&!of(t)&&typeof r=="number"&&r!==0?r+"px":r};function zo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return kr={name:o.name,styles:o.styles,next:kr},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)kr={name:i.name,styles:i.styles,next:kr},i=i.next;var u=s.styles+";";return u}return Em(e,t,r)}case"function":{if(e!==void 0){var d=kr,h=r(e);return kr=d,zo(e,t,h)}break}}var m=r;if(t==null)return m;var p=t[m];return p!==void 0?p:m}function Em(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=zo(e,t,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var u=i;t!=null&&t[u]!==void 0?n+=s+"{"+t[u]+"}":_u(u)&&(n+=ai(s)+":"+Eu(s,u)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var d=0;d<i.length;d++)_u(i[d])&&(n+=ai(s)+":"+Eu(s,i[d])+";");else{var h=zo(e,t,i);switch(s){case"animation":case"animationName":{n+=ai(s)+":"+h+";";break}default:n+=s+"{"+h+"}"}}}return n}var xu=/label:\s*([^\s;{]+)\s*(;|$)/g,kr;function ns(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";kr=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,o+=zo(r,t,s);else{var i=s;o+=i[0]}for(var u=1;u<e.length;u++)if(o+=zo(r,t,e[u]),n){var d=s;o+=d[u]}xu.lastIndex=0;for(var h="",m;(m=xu.exec(o))!==null;)h+="-"+m[1];var p=vm(o)+h;return{name:p,styles:o,next:kr}}var xm=function(t){return t()},sf=Cc.useInsertionEffect?Cc.useInsertionEffect:!1,af=sf||xm,Su=sf||oe.useLayoutEffect,cf=oe.createContext(typeof HTMLElement<"u"?rf({key:"css"}):null),Sm=cf.Provider,ml=function(t){return oe.forwardRef(function(r,n){var o=oe.useContext(cf);return t(r,o,n)})},Ia=oe.createContext({}),gl={}.hasOwnProperty,Hc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Cm=function(t,r){var n={};for(var o in r)gl.call(r,o)&&(n[o]=r[o]);return n[Hc]=t,n},Tm=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return hl(r,n,o),af(function(){return pl(r,n,o)}),null},Am=ml(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Hc],s=[n],i="";typeof e.className=="string"?i=nf(t.registered,s,e.className):e.className!=null&&(i=e.className+" ");var u=ns(s,void 0,oe.useContext(Ia));i+=t.key+"-"+u.name;var d={};for(var h in e)gl.call(e,h)&&h!=="css"&&h!==Hc&&(d[h]=e[h]);return d.className=i,r&&(d.ref=r),oe.createElement(oe.Fragment,null,oe.createElement(Tm,{cache:t,serialized:u,isStringTag:typeof o=="string"}),oe.createElement(o,d))}),Im=Am,Cu=function(t,r){var n=arguments;if(r==null||!gl.call(r,"css"))return oe.createElement.apply(void 0,n);var o=n.length,s=new Array(o);s[0]=Im,s[1]=Cm(t,r);for(var i=2;i<o;i++)s[i]=n[i];return oe.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Cu||(Cu={}));var km=ml(function(e,t){var r=e.styles,n=ns([r],void 0,oe.useContext(Ia)),o=oe.useRef();return Su(function(){var s=t.key+"-global",i=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,d=document.querySelector('style[data-emotion="'+s+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),d!==null&&(u=!0,d.setAttribute("data-emotion",s),i.hydrate([d])),o.current=[i,u],function(){i.flush()}},[t]),Su(function(){var s=o.current,i=s[0],u=s[1];if(u){s[1]=!1;return}if(n.next!==void 0&&pl(t,n.next,!0),i.tags.length){var d=i.tags[i.tags.length-1].nextElementSibling;i.before=d,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function yl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ns(t)}function lf(){var e=yl.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Rm=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Pm=ef(function(e){return Rm.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Nm=Pm,Om=function(t){return t!=="theme"},Tu=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Nm:Om},Au=function(t,r,n){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},jm=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return hl(r,n,o),af(function(){return pl(r,n,o)}),null},Lm=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,s,i;r!==void 0&&(s=r.label,i=r.target);var u=Au(t,r,n),d=u||Tu(o),h=!d("as");return function(){var m=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var b=m[0];p.push(b[0]);for(var E=m.length,A=1;A<E;A++)p.push(m[A],b[A])}var g=ml(function(T,H,v){var k=h&&T.as||o,w="",Y=[],U=T;if(T.theme==null){U={};for(var S in T)U[S]=T[S];U.theme=oe.useContext(Ia)}typeof T.className=="string"?w=nf(H.registered,Y,T.className):T.className!=null&&(w=T.className+" ");var $=ns(p.concat(Y),H.registered,U);w+=H.key+"-"+$.name,i!==void 0&&(w+=" "+i);var J=h&&u===void 0?Tu(k):d,W={};for(var ne in T)h&&ne==="as"||J(ne)&&(W[ne]=T[ne]);return W.className=w,v&&(W.ref=v),oe.createElement(oe.Fragment,null,oe.createElement(jm,{cache:H,serialized:$,isStringTag:typeof k=="string"}),oe.createElement(k,W))});return g.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=p,g.__emotion_forwardProp=u,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(T,H){var v=e(T,Ke({},r,H,{shouldForwardProp:Au(g,H,!0)}));return v.apply(void 0,p)},g}},Bm=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Et=Lm.bind(null);Bm.forEach(function(e){Et[e]=Et(e)});const Mm={text:"#161518",muted:"#716b7c",line:"#e6e4ea",lineStrong:"#a09ba8",media:"#ecebed",accent:"#691fa9",magenta:"#c640cd",brandViolet:"#a524b3",blackBtn:"#242129",softWhite:"#fcfcfc",okStrong:"#1f8a4c",errStrong:"#d64545",white:"#ffffff"},Fm={amethyst:"linear-gradient(180deg, #c640cd 0%, #691fa9 100%)"},$m={card:"12px",btn:"8px"},Iu={mobile:768,sm:720,md:820,lg:900},Dm={down:e=>`@media (max-width: ${Iu[e]}px)`,up:e=>`@media (min-width: ${Iu[e]+1}px)`},Qe={colors:Mm,gradients:Fm,radius:$m,media:Dm},qm=Et.div`
3
+ position: fixed;
4
+ top: 0;
5
+ left: 0;
6
+ right: 0;
7
+ height: 92px;
8
+ background: #16141a;
9
+ z-index: 50;
10
+
11
+ ${Qe.media.down("mobile")} {
12
+ height: 64px;
13
+ }
14
+ `,Um=oe.lazy(()=>xt(()=>import("./index-Bdey45s-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(e=>({default:e.Navbar})));function Vm(e){return f.jsx(oe.Suspense,{fallback:f.jsx(qm,{"aria-hidden":!0}),children:f.jsx(Um,{...e})})}const Hm={},ku=e=>{let t;const r=new Set,n=(m,p)=>{const b=typeof m=="function"?m(t):m;if(!Object.is(b,t)){const E=t;t=p??(typeof b!="object"||b===null)?b:Object.assign({},t,b),r.forEach(A=>A(t,E))}},o=()=>t,d={setState:n,getState:o,getInitialState:()=>h,subscribe:m=>(r.add(m),()=>r.delete(m)),destroy:()=>{(Hm?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},h=t=e(n,o,d);return d},zm=e=>e?ku(e):ku;var ii={exports:{}},ci={},li={exports:{}},ui={};/**
15
+ * @license React
16
+ * use-sync-external-store-shim.production.js
17
+ *
18
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */var Ru;function Gm(){if(Ru)return ui;Ru=1;var e=R2();function t(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function u(p,b){var E=b(),A=n({inst:{value:E,getSnapshot:b}}),g=A[0].inst,T=A[1];return s(function(){g.value=E,g.getSnapshot=b,d(g)&&T({inst:g})},[p,E,b]),o(function(){return d(g)&&T({inst:g}),p(function(){d(g)&&T({inst:g})})},[p]),i(E),E}function d(p){var b=p.getSnapshot;p=p.value;try{var E=b();return!r(p,E)}catch{return!0}}function h(p,b){return b()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return ui.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,ui}var Pu;function Wm(){return Pu||(Pu=1,li.exports=Gm()),li.exports}/**
23
+ * @license React
24
+ * use-sync-external-store-shim/with-selector.production.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var Nu;function Zm(){if(Nu)return ci;Nu=1;var e=R2(),t=Wm();function r(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,u=e.useMemo,d=e.useDebugValue;return ci.useSyncExternalStoreWithSelector=function(h,m,p,b,E){var A=s(null);if(A.current===null){var g={hasValue:!1,value:null};A.current=g}else g=A.current;A=u(function(){function H(U){if(!v){if(v=!0,k=U,U=b(U),E!==void 0&&g.hasValue){var S=g.value;if(E(S,U))return w=S}return w=U}if(S=w,n(k,U))return S;var $=b(U);return E!==void 0&&E(S,$)?(k=U,S):(k=U,w=$)}var v=!1,k,w,Y=p===void 0?null:p;return[function(){return H(m())},Y===null?void 0:function(){return H(Y())}]},[m,p,b,E]);var T=o(h,A[0],A[1]);return i(function(){g.hasValue=!0,g.value=T},[T]),d(T),T},ci}var Ou;function Km(){return Ou||(Ou=1,ii.exports=Zm()),ii.exports}var Ym=Km();const Qm=Sa(Ym),uf={},{useDebugValue:Jm}=P2,{useSyncExternalStoreWithSelector:Xm}=Qm;let ju=!1;const eg=e=>e;function tg(e,t=eg,r){(uf?"production":void 0)!=="production"&&r&&!ju&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ju=!0);const n=Xm(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return Jm(n),n}const Lu=e=>{(uf?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?zm(e):e,r=(n,o)=>tg(t,n,o);return Object.assign(r,t),r},jn=e=>e?Lu(e):Lu;var gn={},ur={},Lo={exports:{}},rg=Lo.exports,Bu;function ka(){return Bu||(Bu=1,(function(e,t){(function(r,n){n(t)})(rg,(function(r){function n(a){if(a.jsonrpc="2.0",!a.id||typeof a.id!="number"||Math.floor(a.id)!==a.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(a)}`);if(!a.method||typeof a.method!="string"||a.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(a)}`);if(!a.params||typeof a.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(a)}`);return a}var o={};function s(){let a,l;const y=new Promise(((I,j)=>{a=V=>{I(V),y.isPending=!1},l=V=>{j(V),y.isPending=!1}})).catch((I=>Promise.reject(I)));return y.resolve=a,y.reject=l,"finally"in y||(y.finally=I=>{y.then(I),y.catch(I)}),y.isPending=!0,y}Object.defineProperty(o,"__esModule",{value:!0});var i=o.future=s;o.default=s;var u={exports:{}};/**
31
+ * [js-sha3]{@link https://github.com/emn178/js-sha3}
32
+ *
33
+ * @version 0.8.0
34
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
35
+ * @copyright Chen, Yi-Cyuan 2015-2018
36
+ * @license MIT
37
+ */(function(a){(function(){var l="input is invalid type",y=typeof window=="object",I=y?window:{};I.JS_SHA3_NO_WINDOW&&(y=!1);var j=!y&&typeof self=="object";!I.JS_SHA3_NO_NODE_JS&&typeof ha=="object"&&ha.versions&&ha.versions.node?I=Tc:j&&(I=self);var V=!I.JS_SHA3_NO_COMMON_JS&&a.exports,se=!I.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",pe="0123456789abcdef".split(""),Ie=[4,1024,262144,67108864],Pe=[0,8,16,24],Mt=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],it=[224,256,384,512],ge=[128,256],St=["hex","buffer","arrayBuffer","array","digest"],Xe={128:168,256:136};!I.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(c){return Object.prototype.toString.call(c)==="[object Array]"}),!se||!I.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(c){return typeof c=="object"&&c.buffer&&c.buffer.constructor===ArrayBuffer});for(var et=function(c,_,N){return function(C){return new Ue(c,_,c).update(C)[N]()}},Pt=function(c,_,N){return function(C,L){return new Ue(c,_,L).update(C)[N]()}},Lr=function(c,_,N){return function(C,L,M,F){return Ct["cshake"+c].update(C,L,M,F)[N]()}},vr=function(c,_,N){return function(C,L,M,F){return Ct["kmac"+c].update(C,L,M,F)[N]()}},Nt=function(c,_,N,C){for(var L=0;L<St.length;++L){var M=St[L];c[M]=_(N,C,M)}return c},br=function(c,_){var N=et(c,_,"hex");return N.create=function(){return new Ue(c,_,c)},N.update=function(C){return N.create().update(C)},Nt(N,et,c,_)},Yr=[{name:"keccak",padding:[1,256,65536,16777216],bits:it,createMethod:br},{name:"sha3",padding:[6,1536,393216,100663296],bits:it,createMethod:br},{name:"shake",padding:[31,7936,2031616,520093696],bits:ge,createMethod:function(c,_){var N=Pt(c,_,"hex");return N.create=function(C){return new Ue(c,_,C)},N.update=function(C,L){return N.create(L).update(C)},Nt(N,Pt,c,_)}},{name:"cshake",padding:Ie,bits:ge,createMethod:function(c,_){var N=Xe[c],C=Lr(c,0,"hex");return C.create=function(L,M,F){return M||F?new Ue(c,_,L).bytepad([M,F],N):Ct["shake"+c].create(L)},C.update=function(L,M,F,ee){return C.create(M,F,ee).update(L)},Nt(C,Lr,c,_)}},{name:"kmac",padding:Ie,bits:ge,createMethod:function(c,_){var N=Xe[c],C=vr(c,0,"hex");return C.create=function(L,M,F){return new Qt(c,_,M).bytepad(["KMAC",F],N).bytepad([L],N)},C.update=function(L,M,F,ee){return C.create(L,F,ee).update(M)},Nt(C,vr,c,_)}}],Ct={},Br=[],Ot=0;Ot<Yr.length;++Ot)for(var wr=Yr[Ot],ue=wr.bits,Mr=0;Mr<ue.length;++Mr){var Dn=wr.name+"_"+ue[Mr];if(Br.push(Dn),Ct[Dn]=wr.createMethod(ue[Mr],wr.padding),wr.name!=="sha3"){var qn=wr.name+ue[Mr];Br.push(qn),Ct[qn]=Ct[Dn]}}function Ue(c,_,N){this.blocks=[],this.s=[],this.padding=_,this.outputBits=N,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(c<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=N>>5,this.extraBytes=(31&N)>>3;for(var C=0;C<50;++C)this.s[C]=0}function Qt(c,_,N){Ue.call(this,c,_,N)}Ue.prototype.update=function(c){if(this.finalized)throw new Error("finalize already called");var _,N=typeof c;if(N!=="string"){if(N!=="object")throw new Error(l);if(c===null)throw new Error(l);if(se&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||se&&ArrayBuffer.isView(c)))throw new Error(l);_=!0}for(var C,L,M=this.blocks,F=this.byteCount,ee=c.length,re=this.blockCount,te=0,me=this.s;te<ee;){if(this.reset)for(this.reset=!1,M[0]=this.block,C=1;C<re+1;++C)M[C]=0;if(_)for(C=this.start;te<ee&&C<F;++te)M[C>>2]|=c[te]<<Pe[3&C++];else for(C=this.start;te<ee&&C<F;++te)(L=c.charCodeAt(te))<128?M[C>>2]|=L<<Pe[3&C++]:L<2048?(M[C>>2]|=(192|L>>6)<<Pe[3&C++],M[C>>2]|=(128|63&L)<<Pe[3&C++]):L<55296||L>=57344?(M[C>>2]|=(224|L>>12)<<Pe[3&C++],M[C>>2]|=(128|L>>6&63)<<Pe[3&C++],M[C>>2]|=(128|63&L)<<Pe[3&C++]):(L=65536+((1023&L)<<10|1023&c.charCodeAt(++te)),M[C>>2]|=(240|L>>18)<<Pe[3&C++],M[C>>2]|=(128|L>>12&63)<<Pe[3&C++],M[C>>2]|=(128|L>>6&63)<<Pe[3&C++],M[C>>2]|=(128|63&L)<<Pe[3&C++]);if(this.lastByteIndex=C,C>=F){for(this.start=C-F,this.block=M[re],C=0;C<re;++C)me[C]^=M[C];x(me),this.reset=!0}else this.start=C}return this},Ue.prototype.encode=function(c,_){var N=255&c,C=1,L=[N];for(N=255&(c>>=8);N>0;)L.unshift(N),N=255&(c>>=8),++C;return _?L.push(C):L.unshift(C),this.update(L),L.length},Ue.prototype.encodeString=function(c){var _,N=typeof c;if(N!=="string"){if(N!=="object")throw new Error(l);if(c===null)throw new Error(l);if(se&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||se&&ArrayBuffer.isView(c)))throw new Error(l);_=!0}var C=0,L=c.length;if(_)C=L;else for(var M=0;M<c.length;++M){var F=c.charCodeAt(M);F<128?C+=1:F<2048?C+=2:F<55296||F>=57344?C+=3:(F=65536+((1023&F)<<10|1023&c.charCodeAt(++M)),C+=4)}return C+=this.encode(8*C),this.update(c),C},Ue.prototype.bytepad=function(c,_){for(var N=this.encode(_),C=0;C<c.length;++C)N+=this.encodeString(c[C]);var L=_-N%_,M=[];return M.length=L,this.update(M),this},Ue.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var c=this.blocks,_=this.lastByteIndex,N=this.blockCount,C=this.s;if(c[_>>2]|=this.padding[3&_],this.lastByteIndex===this.byteCount)for(c[0]=c[N],_=1;_<N+1;++_)c[_]=0;for(c[N-1]|=2147483648,_=0;_<N;++_)C[_]^=c[_];x(C)}},Ue.prototype.toString=Ue.prototype.hex=function(){this.finalize();for(var c,_=this.blockCount,N=this.s,C=this.outputBlocks,L=this.extraBytes,M=0,F=0,ee="";F<C;){for(M=0;M<_&&F<C;++M,++F)c=N[M],ee+=pe[c>>4&15]+pe[15&c]+pe[c>>12&15]+pe[c>>8&15]+pe[c>>20&15]+pe[c>>16&15]+pe[c>>28&15]+pe[c>>24&15];F%_==0&&(x(N),M=0)}return L&&(c=N[M],ee+=pe[c>>4&15]+pe[15&c],L>1&&(ee+=pe[c>>12&15]+pe[c>>8&15]),L>2&&(ee+=pe[c>>20&15]+pe[c>>16&15])),ee},Ue.prototype.arrayBuffer=function(){this.finalize();var c,_=this.blockCount,N=this.s,C=this.outputBlocks,L=this.extraBytes,M=0,F=0,ee=this.outputBits>>3;c=L?new ArrayBuffer(C+1<<2):new ArrayBuffer(ee);for(var re=new Uint32Array(c);F<C;){for(M=0;M<_&&F<C;++M,++F)re[F]=N[M];F%_==0&&x(N)}return L&&(re[M]=N[M],c=c.slice(0,ee)),c},Ue.prototype.buffer=Ue.prototype.arrayBuffer,Ue.prototype.digest=Ue.prototype.array=function(){this.finalize();for(var c,_,N=this.blockCount,C=this.s,L=this.outputBlocks,M=this.extraBytes,F=0,ee=0,re=[];ee<L;){for(F=0;F<N&&ee<L;++F,++ee)c=ee<<2,_=C[F],re[c]=255&_,re[c+1]=_>>8&255,re[c+2]=_>>16&255,re[c+3]=_>>24&255;ee%N==0&&x(C)}return M&&(c=ee<<2,_=C[F],re[c]=255&_,M>1&&(re[c+1]=_>>8&255),M>2&&(re[c+2]=_>>16&255)),re},Qt.prototype=new Ue,Qt.prototype.finalize=function(){return this.encode(this.outputBits,!0),Ue.prototype.finalize.call(this)};var x=function(c){var _,N,C,L,M,F,ee,re,te,me,ke,je,$e,tt,ot,Me,Ve,ht,Fr,Qr,Jr,Ft,_r,Tt,mt,Je,ps,ms,gs,ys,vs,bs,ws,_s,Es,xs,Ss,Cs,Ts,As,Is,ks,Rs,Ps,Ns,Os,js,Ls,Bs,Ms,Fs,$s,Ds,qs,Us,Vs,Hs,zs,Gs,Ws,Zs,Ks,Ys;for(C=0;C<48;C+=2)L=c[0]^c[10]^c[20]^c[30]^c[40],M=c[1]^c[11]^c[21]^c[31]^c[41],F=c[2]^c[12]^c[22]^c[32]^c[42],ee=c[3]^c[13]^c[23]^c[33]^c[43],re=c[4]^c[14]^c[24]^c[34]^c[44],te=c[5]^c[15]^c[25]^c[35]^c[45],me=c[6]^c[16]^c[26]^c[36]^c[46],ke=c[7]^c[17]^c[27]^c[37]^c[47],_=(je=c[8]^c[18]^c[28]^c[38]^c[48])^(F<<1|ee>>>31),N=($e=c[9]^c[19]^c[29]^c[39]^c[49])^(ee<<1|F>>>31),c[0]^=_,c[1]^=N,c[10]^=_,c[11]^=N,c[20]^=_,c[21]^=N,c[30]^=_,c[31]^=N,c[40]^=_,c[41]^=N,_=L^(re<<1|te>>>31),N=M^(te<<1|re>>>31),c[2]^=_,c[3]^=N,c[12]^=_,c[13]^=N,c[22]^=_,c[23]^=N,c[32]^=_,c[33]^=N,c[42]^=_,c[43]^=N,_=F^(me<<1|ke>>>31),N=ee^(ke<<1|me>>>31),c[4]^=_,c[5]^=N,c[14]^=_,c[15]^=N,c[24]^=_,c[25]^=N,c[34]^=_,c[35]^=N,c[44]^=_,c[45]^=N,_=re^(je<<1|$e>>>31),N=te^($e<<1|je>>>31),c[6]^=_,c[7]^=N,c[16]^=_,c[17]^=N,c[26]^=_,c[27]^=N,c[36]^=_,c[37]^=N,c[46]^=_,c[47]^=N,_=me^(L<<1|M>>>31),N=ke^(M<<1|L>>>31),c[8]^=_,c[9]^=N,c[18]^=_,c[19]^=N,c[28]^=_,c[29]^=N,c[38]^=_,c[39]^=N,c[48]^=_,c[49]^=N,tt=c[0],ot=c[1],Os=c[11]<<4|c[10]>>>28,js=c[10]<<4|c[11]>>>28,ms=c[20]<<3|c[21]>>>29,gs=c[21]<<3|c[20]>>>29,Ws=c[31]<<9|c[30]>>>23,Zs=c[30]<<9|c[31]>>>23,ks=c[40]<<18|c[41]>>>14,Rs=c[41]<<18|c[40]>>>14,_s=c[2]<<1|c[3]>>>31,Es=c[3]<<1|c[2]>>>31,Me=c[13]<<12|c[12]>>>20,Ve=c[12]<<12|c[13]>>>20,Ls=c[22]<<10|c[23]>>>22,Bs=c[23]<<10|c[22]>>>22,ys=c[33]<<13|c[32]>>>19,vs=c[32]<<13|c[33]>>>19,Ks=c[42]<<2|c[43]>>>30,Ys=c[43]<<2|c[42]>>>30,qs=c[5]<<30|c[4]>>>2,Us=c[4]<<30|c[5]>>>2,xs=c[14]<<6|c[15]>>>26,Ss=c[15]<<6|c[14]>>>26,ht=c[25]<<11|c[24]>>>21,Fr=c[24]<<11|c[25]>>>21,Ms=c[34]<<15|c[35]>>>17,Fs=c[35]<<15|c[34]>>>17,bs=c[45]<<29|c[44]>>>3,ws=c[44]<<29|c[45]>>>3,Tt=c[6]<<28|c[7]>>>4,mt=c[7]<<28|c[6]>>>4,Vs=c[17]<<23|c[16]>>>9,Hs=c[16]<<23|c[17]>>>9,Cs=c[26]<<25|c[27]>>>7,Ts=c[27]<<25|c[26]>>>7,Qr=c[36]<<21|c[37]>>>11,Jr=c[37]<<21|c[36]>>>11,$s=c[47]<<24|c[46]>>>8,Ds=c[46]<<24|c[47]>>>8,Ps=c[8]<<27|c[9]>>>5,Ns=c[9]<<27|c[8]>>>5,Je=c[18]<<20|c[19]>>>12,ps=c[19]<<20|c[18]>>>12,zs=c[29]<<7|c[28]>>>25,Gs=c[28]<<7|c[29]>>>25,As=c[38]<<8|c[39]>>>24,Is=c[39]<<8|c[38]>>>24,Ft=c[48]<<14|c[49]>>>18,_r=c[49]<<14|c[48]>>>18,c[0]=tt^~Me&ht,c[1]=ot^~Ve&Fr,c[10]=Tt^~Je&ms,c[11]=mt^~ps&gs,c[20]=_s^~xs&Cs,c[21]=Es^~Ss&Ts,c[30]=Ps^~Os&Ls,c[31]=Ns^~js&Bs,c[40]=qs^~Vs&zs,c[41]=Us^~Hs&Gs,c[2]=Me^~ht&Qr,c[3]=Ve^~Fr&Jr,c[12]=Je^~ms&ys,c[13]=ps^~gs&vs,c[22]=xs^~Cs&As,c[23]=Ss^~Ts&Is,c[32]=Os^~Ls&Ms,c[33]=js^~Bs&Fs,c[42]=Vs^~zs&Ws,c[43]=Hs^~Gs&Zs,c[4]=ht^~Qr&Ft,c[5]=Fr^~Jr&_r,c[14]=ms^~ys&bs,c[15]=gs^~vs&ws,c[24]=Cs^~As&ks,c[25]=Ts^~Is&Rs,c[34]=Ls^~Ms&$s,c[35]=Bs^~Fs&Ds,c[44]=zs^~Ws&Ks,c[45]=Gs^~Zs&Ys,c[6]=Qr^~Ft&tt,c[7]=Jr^~_r&ot,c[16]=ys^~bs&Tt,c[17]=vs^~ws&mt,c[26]=As^~ks&_s,c[27]=Is^~Rs&Es,c[36]=Ms^~$s&Ps,c[37]=Fs^~Ds&Ns,c[46]=Ws^~Ks&qs,c[47]=Zs^~Ys&Us,c[8]=Ft^~tt&Me,c[9]=_r^~ot&Ve,c[18]=bs^~Tt&Je,c[19]=ws^~mt&ps,c[28]=ks^~_s&xs,c[29]=Rs^~Es&Ss,c[38]=$s^~Ps&Os,c[39]=Ds^~Ns&js,c[48]=Ks^~qs&Vs,c[49]=Ys^~Us&Hs,c[0]^=Mt[C],c[1]^=Mt[C+1]};if(V)a.exports=Ct;else for(Ot=0;Ot<Br.length;++Ot)I[Br[Ot]]=Ct[Br[Ot]]})()})(u);var d=u.exports,h=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,m=Math.ceil,p=Math.floor,b="[BigNumber Error] ",E=b+"Number primitive has more than 15 significant digits: ",A=1e14,g=14,T=9007199254740991,H=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],v=1e7,k=1e9;function w(a){var l=0|a;return a>0||a===l?l:l-1}function Y(a){for(var l,y,I=1,j=a.length,V=a[0]+"";I<j;){for(l=a[I++]+"",y=g-l.length;y--;l="0"+l);V+=l}for(j=V.length;V.charCodeAt(--j)===48;);return V.slice(0,j+1||1)}function U(a,l){var y,I,j=a.c,V=l.c,se=a.s,pe=l.s,Ie=a.e,Pe=l.e;if(!se||!pe)return null;if(y=j&&!j[0],I=V&&!V[0],y||I)return y?I?0:-pe:se;if(se!=pe)return se;if(y=se<0,I=Ie==Pe,!j||!V)return I?0:!j^y?1:-1;if(!I)return Ie>Pe^y?1:-1;for(pe=(Ie=j.length)<(Pe=V.length)?Ie:Pe,se=0;se<pe;se++)if(j[se]!=V[se])return j[se]>V[se]^y?1:-1;return Ie==Pe?0:Ie>Pe^y?1:-1}function S(a,l,y,I){if(a<l||a>y||a!==p(a))throw Error(b+(I||"Argument")+(typeof a=="number"?a<l||a>y?" out of range: ":" not an integer: ":" not a primitive number: ")+String(a))}function $(a){var l=a.c.length-1;return w(a.e/g)==l&&a.c[l]%2!=0}function J(a,l){return(a.length>1?a.charAt(0)+"."+a.slice(1):a)+(l<0?"e":"e+")+l}function W(a,l,y){var I,j;if(l<0){for(j=y+".";++l;j+=y);a=j+a}else if(++l>(I=a.length)){for(j=y,l-=I;--l;j+=y);a+=j}else l<I&&(a=a.slice(0,l)+"."+a.slice(l));return a}var ne=(function a(l){var y,I,j,V,se,pe,Ie,Pe,Mt,it,ge=ue.prototype={constructor:ue,toString:null,valueOf:null},St=new ue(1),Xe=20,et=4,Pt=-7,Lr=21,vr=-1e7,Nt=1e7,br=!1,Yr=1,Ct=0,Br={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Ot="0123456789abcdefghijklmnopqrstuvwxyz",wr=!0;function ue(x,c){var _,N,C,L,M,F,ee,re,te=this;if(!(te instanceof ue))return new ue(x,c);if(c==null){if(x&&x._isBigNumber===!0)return te.s=x.s,void(!x.c||x.e>Nt?te.c=te.e=null:x.e<vr?te.c=[te.e=0]:(te.e=x.e,te.c=x.c.slice()));if((F=typeof x=="number")&&0*x==0){if(te.s=1/x<0?(x=-x,-1):1,x===~~x){for(L=0,M=x;M>=10;M/=10,L++);return void(L>Nt?te.c=te.e=null:(te.e=L,te.c=[x]))}re=String(x)}else{if(!h.test(re=String(x)))return j(te,re,F);te.s=re.charCodeAt(0)==45?(re=re.slice(1),-1):1}(L=re.indexOf("."))>-1&&(re=re.replace(".","")),(M=re.search(/e/i))>0?(L<0&&(L=M),L+=+re.slice(M+1),re=re.substring(0,M)):L<0&&(L=re.length)}else{if(S(c,2,Ot.length,"Base"),c==10&&wr)return Ue(te=new ue(x),Xe+te.e+1,et);if(re=String(x),F=typeof x=="number"){if(0*x!=0)return j(te,re,F,c);if(te.s=1/x<0?(re=re.slice(1),-1):1,ue.DEBUG&&re.replace(/^0\.0*|\./,"").length>15)throw Error(E+x)}else te.s=re.charCodeAt(0)===45?(re=re.slice(1),-1):1;for(_=Ot.slice(0,c),L=M=0,ee=re.length;M<ee;M++)if(_.indexOf(N=re.charAt(M))<0){if(N=="."){if(M>L){L=ee;continue}}else if(!C&&(re==re.toUpperCase()&&(re=re.toLowerCase())||re==re.toLowerCase()&&(re=re.toUpperCase()))){C=!0,M=-1,L=0;continue}return j(te,String(x),F,c)}F=!1,(L=(re=I(re,c,10,te.s)).indexOf("."))>-1?re=re.replace(".",""):L=re.length}for(M=0;re.charCodeAt(M)===48;M++);for(ee=re.length;re.charCodeAt(--ee)===48;);if(re=re.slice(M,++ee)){if(ee-=M,F&&ue.DEBUG&&ee>15&&(x>T||x!==p(x)))throw Error(E+te.s*x);if((L=L-M-1)>Nt)te.c=te.e=null;else if(L<vr)te.c=[te.e=0];else{if(te.e=L,te.c=[],M=(L+1)%g,L<0&&(M+=g),M<ee){for(M&&te.c.push(+re.slice(0,M)),ee-=g;M<ee;)te.c.push(+re.slice(M,M+=g));M=g-(re=re.slice(M)).length}else M-=ee;for(;M--;re+="0");te.c.push(+re)}}else te.c=[te.e=0]}function Mr(x,c,_,N){var C,L,M,F,ee;if(_==null?_=et:S(_,0,8),!x.c)return x.toString();if(C=x.c[0],M=x.e,c==null)ee=Y(x.c),ee=N==1||N==2&&(M<=Pt||M>=Lr)?J(ee,M):W(ee,M,"0");else if(L=(x=Ue(new ue(x),c,_)).e,F=(ee=Y(x.c)).length,N==1||N==2&&(c<=L||L<=Pt)){for(;F<c;ee+="0",F++);ee=J(ee,L)}else if(c-=M,ee=W(ee,L,"0"),L+1>F){if(--c>0)for(ee+=".";c--;ee+="0");}else if((c+=L-F)>0)for(L+1==F&&(ee+=".");c--;ee+="0");return x.s<0&&C?"-"+ee:ee}function Dn(x,c){for(var _,N=1,C=new ue(x[0]);N<x.length;N++){if(!(_=new ue(x[N])).s){C=_;break}c.call(C,_)&&(C=_)}return C}function qn(x,c,_){for(var N=1,C=c.length;!c[--C];c.pop());for(C=c[0];C>=10;C/=10,N++);return(_=N+_*g-1)>Nt?x.c=x.e=null:_<vr?x.c=[x.e=0]:(x.e=_,x.c=c),x}function Ue(x,c,_,N){var C,L,M,F,ee,re,te,me=x.c,ke=H;if(me){e:{for(C=1,F=me[0];F>=10;F/=10,C++);if((L=c-C)<0)L+=g,M=c,te=(ee=me[re=0])/ke[C-M-1]%10|0;else if((re=m((L+1)/g))>=me.length){if(!N)break e;for(;me.length<=re;me.push(0));ee=te=0,C=1,M=(L%=g)-g+1}else{for(ee=F=me[re],C=1;F>=10;F/=10,C++);te=(M=(L%=g)-g+C)<0?0:ee/ke[C-M-1]%10|0}if(N=N||c<0||me[re+1]!=null||(M<0?ee:ee%ke[C-M-1]),N=_<4?(te||N)&&(_==0||_==(x.s<0?3:2)):te>5||te==5&&(_==4||N||_==6&&(L>0?M>0?ee/ke[C-M]:0:me[re-1])%10&1||_==(x.s<0?8:7)),c<1||!me[0])return me.length=0,N?(c-=x.e+1,me[0]=ke[(g-c%g)%g],x.e=-c||0):me[0]=x.e=0,x;if(L==0?(me.length=re,F=1,re--):(me.length=re+1,F=ke[g-L],me[re]=M>0?p(ee/ke[C-M]%ke[M])*F:0),N)for(;;){if(re==0){for(L=1,M=me[0];M>=10;M/=10,L++);for(M=me[0]+=F,F=1;M>=10;M/=10,F++);L!=F&&(x.e++,me[0]==A&&(me[0]=1));break}if(me[re]+=F,me[re]!=A)break;me[re--]=0,F=1}for(L=me.length;me[--L]===0;me.pop());}x.e>Nt?x.c=x.e=null:x.e<vr&&(x.c=[x.e=0])}return x}function Qt(x){var c,_=x.e;return _===null?x.toString():(c=Y(x.c),c=_<=Pt||_>=Lr?J(c,_):W(c,_,"0"),x.s<0?"-"+c:c)}return ue.clone=a,ue.ROUND_UP=0,ue.ROUND_DOWN=1,ue.ROUND_CEIL=2,ue.ROUND_FLOOR=3,ue.ROUND_HALF_UP=4,ue.ROUND_HALF_DOWN=5,ue.ROUND_HALF_EVEN=6,ue.ROUND_HALF_CEIL=7,ue.ROUND_HALF_FLOOR=8,ue.EUCLID=9,ue.config=ue.set=function(x){var c,_;if(x!=null){if(typeof x!="object")throw Error(b+"Object expected: "+x);if(x.hasOwnProperty(c="DECIMAL_PLACES")&&(S(_=x[c],0,k,c),Xe=_),x.hasOwnProperty(c="ROUNDING_MODE")&&(S(_=x[c],0,8,c),et=_),x.hasOwnProperty(c="EXPONENTIAL_AT")&&((_=x[c])&&_.pop?(S(_[0],-k,0,c),S(_[1],0,k,c),Pt=_[0],Lr=_[1]):(S(_,-k,k,c),Pt=-(Lr=_<0?-_:_))),x.hasOwnProperty(c="RANGE"))if((_=x[c])&&_.pop)S(_[0],-k,-1,c),S(_[1],1,k,c),vr=_[0],Nt=_[1];else{if(S(_,-k,k,c),!_)throw Error(b+c+" cannot be zero: "+_);vr=-(Nt=_<0?-_:_)}if(x.hasOwnProperty(c="CRYPTO")){if((_=x[c])!==!!_)throw Error(b+c+" not true or false: "+_);if(_){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw br=!_,Error(b+"crypto unavailable");br=_}else br=_}if(x.hasOwnProperty(c="MODULO_MODE")&&(S(_=x[c],0,9,c),Yr=_),x.hasOwnProperty(c="POW_PRECISION")&&(S(_=x[c],0,k,c),Ct=_),x.hasOwnProperty(c="FORMAT")){if(typeof(_=x[c])!="object")throw Error(b+c+" not an object: "+_);Br=_}if(x.hasOwnProperty(c="ALPHABET")){if(typeof(_=x[c])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(_))throw Error(b+c+" invalid: "+_);wr=_.slice(0,10)=="0123456789",Ot=_}}return{DECIMAL_PLACES:Xe,ROUNDING_MODE:et,EXPONENTIAL_AT:[Pt,Lr],RANGE:[vr,Nt],CRYPTO:br,MODULO_MODE:Yr,POW_PRECISION:Ct,FORMAT:Br,ALPHABET:Ot}},ue.isBigNumber=function(x){if(!x||x._isBigNumber!==!0)return!1;if(!ue.DEBUG)return!0;var c,_,N=x.c,C=x.e,L=x.s;e:if({}.toString.call(N)=="[object Array]"){if((L===1||L===-1)&&C>=-k&&C<=k&&C===p(C)){if(N[0]===0){if(C===0&&N.length===1)return!0;break e}if((c=(C+1)%g)<1&&(c+=g),String(N[0]).length==c){for(c=0;c<N.length;c++)if((_=N[c])<0||_>=A||_!==p(_))break e;if(_!==0)return!0}}}else if(N===null&&C===null&&(L===null||L===1||L===-1))return!0;throw Error(b+"Invalid BigNumber: "+x)},ue.maximum=ue.max=function(){return Dn(arguments,ge.lt)},ue.minimum=ue.min=function(){return Dn(arguments,ge.gt)},ue.random=(V=9007199254740992,se=Math.random()*V&2097151?function(){return p(Math.random()*V)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(x){var c,_,N,C,L,M=0,F=[],ee=new ue(St);if(x==null?x=Xe:S(x,0,k),C=m(x/g),br)if(crypto.getRandomValues){for(c=crypto.getRandomValues(new Uint32Array(C*=2));M<C;)(L=131072*c[M]+(c[M+1]>>>11))>=9e15?(_=crypto.getRandomValues(new Uint32Array(2)),c[M]=_[0],c[M+1]=_[1]):(F.push(L%1e14),M+=2);M=C/2}else{if(!crypto.randomBytes)throw br=!1,Error(b+"crypto unavailable");for(c=crypto.randomBytes(C*=7);M<C;)(L=281474976710656*(31&c[M])+1099511627776*c[M+1]+4294967296*c[M+2]+16777216*c[M+3]+(c[M+4]<<16)+(c[M+5]<<8)+c[M+6])>=9e15?crypto.randomBytes(7).copy(c,M):(F.push(L%1e14),M+=7);M=C/7}if(!br)for(;M<C;)(L=se())<9e15&&(F[M++]=L%1e14);for(C=F[--M],x%=g,C&&x&&(L=H[g-x],F[M]=p(C/L)*L);F[M]===0;F.pop(),M--);if(M<0)F=[N=0];else{for(N=-1;F[0]===0;F.splice(0,1),N-=g);for(M=1,L=F[0];L>=10;L/=10,M++);M<g&&(N-=g-M)}return ee.e=N,ee.c=F,ee}),ue.sum=function(){for(var x=1,c=arguments,_=new ue(c[0]);x<c.length;)_=_.plus(c[x++]);return _},I=(function(){var x="0123456789";function c(_,N,C,L){for(var M,F,ee=[0],re=0,te=_.length;re<te;){for(F=ee.length;F--;ee[F]*=N);for(ee[0]+=L.indexOf(_.charAt(re++)),M=0;M<ee.length;M++)ee[M]>C-1&&(ee[M+1]==null&&(ee[M+1]=0),ee[M+1]+=ee[M]/C|0,ee[M]%=C)}return ee.reverse()}return function(_,N,C,L,M){var F,ee,re,te,me,ke,je,$e,tt=_.indexOf("."),ot=Xe,Me=et;for(tt>=0&&(te=Ct,Ct=0,_=_.replace(".",""),ke=($e=new ue(N)).pow(_.length-tt),Ct=te,$e.c=c(W(Y(ke.c),ke.e,"0"),10,C,x),$e.e=$e.c.length),re=te=(je=c(_,N,C,M?(F=Ot,x):(F=x,Ot))).length;je[--te]==0;je.pop());if(!je[0])return F.charAt(0);if(tt<0?--re:(ke.c=je,ke.e=re,ke.s=L,je=(ke=y(ke,$e,ot,Me,C)).c,me=ke.r,re=ke.e),tt=je[ee=re+ot+1],te=C/2,me=me||ee<0||je[ee+1]!=null,me=Me<4?(tt!=null||me)&&(Me==0||Me==(ke.s<0?3:2)):tt>te||tt==te&&(Me==4||me||Me==6&&1&je[ee-1]||Me==(ke.s<0?8:7)),ee<1||!je[0])_=me?W(F.charAt(1),-ot,F.charAt(0)):F.charAt(0);else{if(je.length=ee,me)for(--C;++je[--ee]>C;)je[ee]=0,ee||(++re,je=[1].concat(je));for(te=je.length;!je[--te];);for(tt=0,_="";tt<=te;_+=F.charAt(je[tt++]));_=W(_,re,F.charAt(0))}return _}})(),y=(function(){function x(N,C,L){var M,F,ee,re,te=0,me=N.length,ke=C%v,je=C/v|0;for(N=N.slice();me--;)te=((F=ke*(ee=N[me]%v)+(M=je*ee+(re=N[me]/v|0)*ke)%v*v+te)/L|0)+(M/v|0)+je*re,N[me]=F%L;return te&&(N=[te].concat(N)),N}function c(N,C,L,M){var F,ee;if(L!=M)ee=L>M?1:-1;else for(F=ee=0;F<L;F++)if(N[F]!=C[F]){ee=N[F]>C[F]?1:-1;break}return ee}function _(N,C,L,M){for(var F=0;L--;)N[L]-=F,F=N[L]<C[L]?1:0,N[L]=F*M+N[L]-C[L];for(;!N[0]&&N.length>1;N.splice(0,1));}return function(N,C,L,M,F){var ee,re,te,me,ke,je,$e,tt,ot,Me,Ve,ht,Fr,Qr,Jr,Ft,_r,Tt=N.s==C.s?1:-1,mt=N.c,Je=C.c;if(!(mt&&mt[0]&&Je&&Je[0]))return new ue(N.s&&C.s&&(mt?!Je||mt[0]!=Je[0]:Je)?mt&&mt[0]==0||!Je?0*Tt:Tt/0:NaN);for(ot=(tt=new ue(Tt)).c=[],Tt=L+(re=N.e-C.e)+1,F||(F=A,re=w(N.e/g)-w(C.e/g),Tt=Tt/g|0),te=0;Je[te]==(mt[te]||0);te++);if(Je[te]>(mt[te]||0)&&re--,Tt<0)ot.push(1),me=!0;else{for(Qr=mt.length,Ft=Je.length,te=0,Tt+=2,(ke=p(F/(Je[0]+1)))>1&&(Je=x(Je,ke,F),mt=x(mt,ke,F),Ft=Je.length,Qr=mt.length),Fr=Ft,Ve=(Me=mt.slice(0,Ft)).length;Ve<Ft;Me[Ve++]=0);_r=Je.slice(),_r=[0].concat(_r),Jr=Je[0],Je[1]>=F/2&&Jr++;do{if(ke=0,(ee=c(Je,Me,Ft,Ve))<0){if(ht=Me[0],Ft!=Ve&&(ht=ht*F+(Me[1]||0)),(ke=p(ht/Jr))>1)for(ke>=F&&(ke=F-1),$e=(je=x(Je,ke,F)).length,Ve=Me.length;c(je,Me,$e,Ve)==1;)ke--,_(je,Ft<$e?_r:Je,$e,F),$e=je.length,ee=1;else ke==0&&(ee=ke=1),$e=(je=Je.slice()).length;if($e<Ve&&(je=[0].concat(je)),_(Me,je,Ve,F),Ve=Me.length,ee==-1)for(;c(Je,Me,Ft,Ve)<1;)ke++,_(Me,Ft<Ve?_r:Je,Ve,F),Ve=Me.length}else ee===0&&(ke++,Me=[0]);ot[te++]=ke,Me[0]?Me[Ve++]=mt[Fr]||0:(Me=[mt[Fr]],Ve=1)}while((Fr++<Qr||Me[0]!=null)&&Tt--);me=Me[0]!=null,ot[0]||ot.splice(0,1)}if(F==A){for(te=1,Tt=ot[0];Tt>=10;Tt/=10,te++);Ue(tt,L+(tt.e=te+re*g-1)+1,M,me)}else tt.e=re,tt.r=+me;return tt}})(),pe=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Ie=/^([^.]+)\.$/,Pe=/^\.([^.]+)$/,Mt=/^-?(Infinity|NaN)$/,it=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(x,c,_,N){var C,L=_?c:c.replace(it,"");if(Mt.test(L))x.s=isNaN(L)?null:L<0?-1:1;else{if(!_&&(L=L.replace(pe,(function(M,F,ee){return C=(ee=ee.toLowerCase())=="x"?16:ee=="b"?2:8,N&&N!=C?M:F})),N&&(C=N,L=L.replace(Ie,"$1").replace(Pe,"0.$1")),c!=L))return new ue(L,C);if(ue.DEBUG)throw Error(b+"Not a"+(N?" base "+N:"")+" number: "+c);x.s=null}x.c=x.e=null},ge.absoluteValue=ge.abs=function(){var x=new ue(this);return x.s<0&&(x.s=1),x},ge.comparedTo=function(x,c){return U(this,new ue(x,c))},ge.decimalPlaces=ge.dp=function(x,c){var _,N,C,L=this;if(x!=null)return S(x,0,k),c==null?c=et:S(c,0,8),Ue(new ue(L),x+L.e+1,c);if(!(_=L.c))return null;if(N=((C=_.length-1)-w(this.e/g))*g,C=_[C])for(;C%10==0;C/=10,N--);return N<0&&(N=0),N},ge.dividedBy=ge.div=function(x,c){return y(this,new ue(x,c),Xe,et)},ge.dividedToIntegerBy=ge.idiv=function(x,c){return y(this,new ue(x,c),0,1)},ge.exponentiatedBy=ge.pow=function(x,c){var _,N,C,L,M,F,ee,re,te=this;if((x=new ue(x)).c&&!x.isInteger())throw Error(b+"Exponent not an integer: "+Qt(x));if(c!=null&&(c=new ue(c)),M=x.e>14,!te.c||!te.c[0]||te.c[0]==1&&!te.e&&te.c.length==1||!x.c||!x.c[0])return re=new ue(Math.pow(+Qt(te),M?x.s*(2-$(x)):+Qt(x))),c?re.mod(c):re;if(F=x.s<0,c){if(c.c?!c.c[0]:!c.s)return new ue(NaN);(N=!F&&te.isInteger()&&c.isInteger())&&(te=te.mod(c))}else{if(x.e>9&&(te.e>0||te.e<-1||(te.e==0?te.c[0]>1||M&&te.c[1]>=24e7:te.c[0]<8e13||M&&te.c[0]<=9999975e7)))return L=te.s<0&&$(x)?-0:0,te.e>-1&&(L=1/L),new ue(F?1/L:L);Ct&&(L=m(Ct/g+2))}for(M?(_=new ue(.5),F&&(x.s=1),ee=$(x)):ee=(C=Math.abs(+Qt(x)))%2,re=new ue(St);;){if(ee){if(!(re=re.times(te)).c)break;L?re.c.length>L&&(re.c.length=L):N&&(re=re.mod(c))}if(C){if((C=p(C/2))===0)break;ee=C%2}else if(Ue(x=x.times(_),x.e+1,1),x.e>14)ee=$(x);else{if((C=+Qt(x))==0)break;ee=C%2}te=te.times(te),L?te.c&&te.c.length>L&&(te.c.length=L):N&&(te=te.mod(c))}return N?re:(F&&(re=St.div(re)),c?re.mod(c):L?Ue(re,Ct,et,void 0):re)},ge.integerValue=function(x){var c=new ue(this);return x==null?x=et:S(x,0,8),Ue(c,c.e+1,x)},ge.isEqualTo=ge.eq=function(x,c){return U(this,new ue(x,c))===0},ge.isFinite=function(){return!!this.c},ge.isGreaterThan=ge.gt=function(x,c){return U(this,new ue(x,c))>0},ge.isGreaterThanOrEqualTo=ge.gte=function(x,c){return(c=U(this,new ue(x,c)))===1||c===0},ge.isInteger=function(){return!!this.c&&w(this.e/g)>this.c.length-2},ge.isLessThan=ge.lt=function(x,c){return U(this,new ue(x,c))<0},ge.isLessThanOrEqualTo=ge.lte=function(x,c){return(c=U(this,new ue(x,c)))===-1||c===0},ge.isNaN=function(){return!this.s},ge.isNegative=function(){return this.s<0},ge.isPositive=function(){return this.s>0},ge.isZero=function(){return!!this.c&&this.c[0]==0},ge.minus=function(x,c){var _,N,C,L,M=this,F=M.s;if(c=(x=new ue(x,c)).s,!F||!c)return new ue(NaN);if(F!=c)return x.s=-c,M.plus(x);var ee=M.e/g,re=x.e/g,te=M.c,me=x.c;if(!ee||!re){if(!te||!me)return te?(x.s=-c,x):new ue(me?M:NaN);if(!te[0]||!me[0])return me[0]?(x.s=-c,x):new ue(te[0]?M:et==3?-0:0)}if(ee=w(ee),re=w(re),te=te.slice(),F=ee-re){for((L=F<0)?(F=-F,C=te):(re=ee,C=me),C.reverse(),c=F;c--;C.push(0));C.reverse()}else for(N=(L=(F=te.length)<(c=me.length))?F:c,F=c=0;c<N;c++)if(te[c]!=me[c]){L=te[c]<me[c];break}if(L&&(C=te,te=me,me=C,x.s=-x.s),(c=(N=me.length)-(_=te.length))>0)for(;c--;te[_++]=0);for(c=A-1;N>F;){if(te[--N]<me[N]){for(_=N;_&&!te[--_];te[_]=c);--te[_],te[N]+=A}te[N]-=me[N]}for(;te[0]==0;te.splice(0,1),--re);return te[0]?qn(x,te,re):(x.s=et==3?-1:1,x.c=[x.e=0],x)},ge.modulo=ge.mod=function(x,c){var _,N,C=this;return x=new ue(x,c),!C.c||!x.s||x.c&&!x.c[0]?new ue(NaN):!x.c||C.c&&!C.c[0]?new ue(C):(Yr==9?(N=x.s,x.s=1,_=y(C,x,0,3),x.s=N,_.s*=N):_=y(C,x,0,Yr),(x=C.minus(_.times(x))).c[0]||Yr!=1||(x.s=C.s),x)},ge.multipliedBy=ge.times=function(x,c){var _,N,C,L,M,F,ee,re,te,me,ke,je,$e,tt,ot,Me=this,Ve=Me.c,ht=(x=new ue(x,c)).c;if(!(Ve&&ht&&Ve[0]&&ht[0]))return!Me.s||!x.s||Ve&&!Ve[0]&&!ht||ht&&!ht[0]&&!Ve?x.c=x.e=x.s=null:(x.s*=Me.s,Ve&&ht?(x.c=[0],x.e=0):x.c=x.e=null),x;for(N=w(Me.e/g)+w(x.e/g),x.s*=Me.s,(ee=Ve.length)<(me=ht.length)&&($e=Ve,Ve=ht,ht=$e,C=ee,ee=me,me=C),C=ee+me,$e=[];C--;$e.push(0));for(tt=A,ot=v,C=me;--C>=0;){for(_=0,ke=ht[C]%ot,je=ht[C]/ot|0,L=C+(M=ee);L>C;)_=((re=ke*(re=Ve[--M]%ot)+(F=je*re+(te=Ve[M]/ot|0)*ke)%ot*ot+$e[L]+_)/tt|0)+(F/ot|0)+je*te,$e[L--]=re%tt;$e[L]=_}return _?++N:$e.splice(0,1),qn(x,$e,N)},ge.negated=function(){var x=new ue(this);return x.s=-x.s||null,x},ge.plus=function(x,c){var _,N=this,C=N.s;if(c=(x=new ue(x,c)).s,!C||!c)return new ue(NaN);if(C!=c)return x.s=-c,N.minus(x);var L=N.e/g,M=x.e/g,F=N.c,ee=x.c;if(!L||!M){if(!F||!ee)return new ue(C/0);if(!F[0]||!ee[0])return ee[0]?x:new ue(F[0]?N:0*C)}if(L=w(L),M=w(M),F=F.slice(),C=L-M){for(C>0?(M=L,_=ee):(C=-C,_=F),_.reverse();C--;_.push(0));_.reverse()}for((C=F.length)-(c=ee.length)<0&&(_=ee,ee=F,F=_,c=C),C=0;c;)C=(F[--c]=F[c]+ee[c]+C)/A|0,F[c]=A===F[c]?0:F[c]%A;return C&&(F=[C].concat(F),++M),qn(x,F,M)},ge.precision=ge.sd=function(x,c){var _,N,C,L=this;if(x!=null&&x!==!!x)return S(x,1,k),c==null?c=et:S(c,0,8),Ue(new ue(L),x,c);if(!(_=L.c))return null;if(N=(C=_.length-1)*g+1,C=_[C]){for(;C%10==0;C/=10,N--);for(C=_[0];C>=10;C/=10,N++);}return x&&L.e+1>N&&(N=L.e+1),N},ge.shiftedBy=function(x){return S(x,-9007199254740991,T),this.times("1e"+x)},ge.squareRoot=ge.sqrt=function(){var x,c,_,N,C,L=this,M=L.c,F=L.s,ee=L.e,re=Xe+4,te=new ue("0.5");if(F!==1||!M||!M[0])return new ue(!F||F<0&&(!M||M[0])?NaN:M?L:1/0);if((F=Math.sqrt(+Qt(L)))==0||F==1/0?(((c=Y(M)).length+ee)%2==0&&(c+="0"),F=Math.sqrt(+c),ee=w((ee+1)/2)-(ee<0||ee%2),_=new ue(c=F==1/0?"5e"+ee:(c=F.toExponential()).slice(0,c.indexOf("e")+1)+ee)):_=new ue(F+""),_.c[0]){for((F=(ee=_.e)+re)<3&&(F=0);;)if(C=_,_=te.times(C.plus(y(L,C,re,1))),Y(C.c).slice(0,F)===(c=Y(_.c)).slice(0,F)){if(_.e<ee&&--F,(c=c.slice(F-3,F+1))!="9999"&&(N||c!="4999")){+c&&(+c.slice(1)||c.charAt(0)!="5")||(Ue(_,_.e+Xe+2,1),x=!_.times(_).eq(L));break}if(!N&&(Ue(C,C.e+Xe+2,0),C.times(C).eq(L))){_=C;break}re+=4,F+=4,N=1}}return Ue(_,_.e+Xe+1,et,x)},ge.toExponential=function(x,c){return x!=null&&(S(x,0,k),x++),Mr(this,x,c,1)},ge.toFixed=function(x,c){return x!=null&&(S(x,0,k),x=x+this.e+1),Mr(this,x,c)},ge.toFormat=function(x,c,_){var N,C=this;if(_==null)x!=null&&c&&typeof c=="object"?(_=c,c=null):x&&typeof x=="object"?(_=x,x=c=null):_=Br;else if(typeof _!="object")throw Error(b+"Argument not an object: "+_);if(N=C.toFixed(x,c),C.c){var L,M=N.split("."),F=+_.groupSize,ee=+_.secondaryGroupSize,re=_.groupSeparator||"",te=M[0],me=M[1],ke=C.s<0,je=ke?te.slice(1):te,$e=je.length;if(ee&&(L=F,F=ee,ee=L,$e-=L),F>0&&$e>0){for(L=$e%F||F,te=je.substr(0,L);L<$e;L+=F)te+=re+je.substr(L,F);ee>0&&(te+=re+je.slice(L)),ke&&(te="-"+te)}N=me?te+(_.decimalSeparator||"")+((ee=+_.fractionGroupSize)?me.replace(new RegExp("\\d{"+ee+"}\\B","g"),"$&"+(_.fractionGroupSeparator||"")):me):te}return(_.prefix||"")+N+(_.suffix||"")},ge.toFraction=function(x){var c,_,N,C,L,M,F,ee,re,te,me,ke,je=this,$e=je.c;if(x!=null&&(!(F=new ue(x)).isInteger()&&(F.c||F.s!==1)||F.lt(St)))throw Error(b+"Argument "+(F.isInteger()?"out of range: ":"not an integer: ")+Qt(F));if(!$e)return new ue(je);for(c=new ue(St),re=_=new ue(St),N=ee=new ue(St),ke=Y($e),L=c.e=ke.length-je.e-1,c.c[0]=H[(M=L%g)<0?g+M:M],x=!x||F.comparedTo(c)>0?L>0?c:re:F,M=Nt,Nt=1/0,F=new ue(ke),ee.c[0]=0;te=y(F,c,0,1),(C=_.plus(te.times(N))).comparedTo(x)!=1;)_=N,N=C,re=ee.plus(te.times(C=re)),ee=C,c=F.minus(te.times(C=c)),F=C;return C=y(x.minus(_),N,0,1),ee=ee.plus(C.times(re)),_=_.plus(C.times(N)),ee.s=re.s=je.s,me=y(re,N,L*=2,et).minus(je).abs().comparedTo(y(ee,_,L,et).minus(je).abs())<1?[re,N]:[ee,_],Nt=M,me},ge.toNumber=function(){return+Qt(this)},ge.toPrecision=function(x,c){return x!=null&&S(x,1,k),Mr(this,x,c,2)},ge.toString=function(x){var c,_=this,N=_.s,C=_.e;return C===null?N?(c="Infinity",N<0&&(c="-"+c)):c="NaN":(x==null?c=C<=Pt||C>=Lr?J(Y(_.c),C):W(Y(_.c),C,"0"):x===10&&wr?c=W(Y((_=Ue(new ue(_),Xe+C+1,et)).c),_.e,"0"):(S(x,2,Ot.length,"Base"),c=I(W(Y(_.c),C,"0"),10,x,N,!0)),N<0&&_.c[0]&&(c="-"+c)),c},ge.valueOf=ge.toJSON=function(){return Qt(this)},ge._isBigNumber=!0,ge[Symbol.toStringTag]="BigNumber",ge[Symbol.for("nodejs.util.inspect.custom")]=ge.valueOf,l!=null&&ue.set(l),ue})();const X={ROUNDING_MODE:ne.ROUND_DOWN};function B(a){return new TextEncoder().encode(a)}function P(a){return typeof a=="string"?P(q(a)):new TextDecoder().decode(a)}ne.config(X);const K="UNKNOWN_ERROR",Z="INVALID_ARGUMENT";function D(a,l=K,y={}){const I=[];Object.keys(y).forEach((se=>{try{I.push(se+"="+JSON.stringify(y[se]))}catch{I.push(se+"="+JSON.stringify(y[se].toString()))}}));const j=a;I.length&&(a+=" ("+I.join(", ")+")");const V=new Error(a);return V.reason=j,V.code=l,Object.keys(y).forEach((function(se){V[se]=y[se]})),V}function q(a){if(typeof a!="string")throw new Error("hexToBytes only accept strings, got: "+typeof a);if(a.substr(0,2)==="0x")return q(a.substr(2));const l=new Uint8Array(Math.ceil(a.length/2));let y=0;for(let I=0;I<a.length;I+=2){const j=parseInt(a.substr(I,2),16);if(isNaN(j))throw new Error("Cannot read hex string:"+JSON.stringify(a));l[y]=j,y++}return l}function R(a){return Array.from(a).map((l=>l.toString(16).padStart(2,"0"))).join("")}function O(a,l){if(typeof a=="string"){if(l&&l.encoding==="hex"&&typeof a=="string"){let y=a;y.length>2&&y.substr(0,2)==="0x"&&(y=y.substr(2));const I=q(y);return d.keccak256(I)}return d.keccak256(B(a))}return d.keccak256(a)}const z={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function Q(a,l,y){return new Array(l-a.length+1).join(y||"0")+a}function le(a){let l="",y=0;const I=a.length;for(a.substring(0,2)==="0x"&&(y=2);y<I;y+=2){const j=parseInt(a.substr(y,2),16);l+=String.fromCharCode(j)}return l}function ce(a){return Vt(a)&&a.name&&a.name.indexOf("(")!==-1?a.name:a.name+"("+de(!1,a.inputs||[]).join(",")+")"}function ie(...a){const l=a.reduce(((j,V)=>j+V.length),0),y=new Uint8Array(l);let I=0;for(const j of a)y.set(j,I),I+=j.length;return y}function de(a,l){const y=[];return l.forEach((function(I){if(typeof I.components=="object"){if(I.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");let j="";const V=I.type.indexOf("[");V>=0&&(j=I.type.substring(V));const se=de(a,I.components);y.push("("+se.join(",")+")"+j)}else y.push(I.type)})),y}function Re(a){const l=a.indexOf("("),y=a.indexOf(")");return l!==-1&&y!==-1?a.substr(0,l):a}function we(a){const l=a.indexOf("("),y=a.indexOf(")");return l!==-1&&y!==-1?a.substr(l+1,y-l-1).replace(" ",""):""}function xe(a){return a==null?a:Be(a).toNumber()}function ye(a){return Be(a).toNumber()}function He(a){return Ut(a)?a.toString(10):""+a}function qe(a){return typeof a=="string"&&!a.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(a)?"0x"+a:Ae(a)}function he(a){if(typeof a=="string")return a.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(a)?Ae(a):"0x"+R(B(a));if(a instanceof Uint8Array)return"0x"+R(a);throw new Error(`toStringData: Error trying to convert ${a} (${typeof a}) to a hex string.`)}function fe(a){return typeof a=="boolean"?a:Be(a).toNumber()!==0}function ve(a){const l=Be(a),y=l.toString(16);return l.isLessThan(0)?"-0x"+y.substr(1):"0x"+y}function Ae(a){if(_o(a))return ve(+a);if(Ut(a))return ve(a);if(Rt(a)){const l=a;if(l.indexOf("-0x")===0)return ve(l);if(l.indexOf("0x")===0)return l;if(!isFinite(l))return R(B(l))}if(a instanceof Uint8Array)return"0x"+R(a);if(sr(a)||Vt(a))throw new Error("toHex can only be called with scalar values, not objects or arrays");return ve(a)}function Le(a){const l=a?a.toLowerCase():"ether",y=z[l];if(y===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(z,null,2));return new ne(y,10)}function Be(a){let l=a||0;return Ut(l)?l:(typeof l=="string"&&(l=l.trim()),typeof l!="string"||l.indexOf("0x")!==0&&l.indexOf("-0x")!==0?l instanceof Uint8Array?new ne(R(l),16):new ne(l,10):new ne(l.replace("0x","").toLowerCase(),16))}function ft(a){return new ne(new Array(a).fill("1").join(""),2)}function nt(a,l=256){const y=Be(a).integerValue();return y.isLessThan(0)?ft(l).plus(y).plus(1):y}function Dt(a,l){return Q(a.toString(2),l,"0")[0]==="1"}function qt(a){if(typeof a!="string")throw D("invalid address",Z,{arg:"address",value:a});if(a.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return a.trim().substring(0,2)!=="0x"&&(a="0x"+a),gr(a);throw D("invalid address",Z,{arg:"address",value:a})}function or(a,l=256){if(Dt(a,l)){const y=ft(l);return a.minus(y).minus(1)}return a}function Or(a){return/^0x[0-9a-f]{40}$/i.test(a)}function Yt(a){return!!/^(0x)?[0-9a-f]{40}$/i.test(a)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(a)&&!/^(0x)?[0-9A-F]{40}$/.test(a))||Mn(a))}function Mn(a){const l=a.replace("0x",""),y=O(l.toLowerCase());for(let I=0;I<40;I++)if(parseInt(y[I],16)>7&&l[I].toUpperCase()!==l[I]||parseInt(y[I],16)<=7&&l[I].toLowerCase()!==l[I])return!1;return!0}function gr(a){if(a===void 0)return"";const l=a.toLowerCase().replace("0x",""),y=O(l);let I="0x";for(let j=0;j<l.length;j++)parseInt(y[j],16)>7?I+=l[j].toUpperCase():I+=l[j];return I}function yt(a){if(!Array.isArray(a))throw new Error(`Value was not an array: ${JSON.stringify(a)}`);return a}function Kr(a){return Or(a)?a:/^[0-9a-f]{40}$/.test(a)?"0x"+a:"0x"+Q(Ae(a).substr(2),40)}function Ut(a){return a instanceof ne}function Rt(a){return typeof a=="string"||a&&a.constructor&&a.constructor.name==="String"}function Vt(a){return a!==null&&!Array.isArray(a)&&typeof a=="object"}function _o(a){return typeof a=="boolean"}function sr(a){return Array.isArray(a)}var Za,Fn;function Ka(a,l){if(!a)throw new Error("jsonrpc method should be specified!");if(typeof a!="string")throw new Error(`jsonrpc must be a string, got ${typeof a}!`);return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:a,params:l||[]}}function Ml(a){return Array.isArray(a)?a.every(l):l(a);function l(y){return!!y&&(y.error===void 0||y.error===null)&&y.jsonrpc==="2.0"&&y.id!==null&&"result"in y&&y.result!==void 0}}r.TransactionStatus=void 0,(Za=r.TransactionStatus||(r.TransactionStatus={})).pending="pending",Za.confirmed="confirmed",Za.failed="failed",r.TransactionType=void 0,(Fn=r.TransactionType||(r.TransactionType={})).queued="queued",Fn.dropped="dropped",Fn.replaced="replaced",Fn.pending="pending",Fn.reverted="reverted",Fn.confirmed="confirmed",r.messageId=0;function Ya(a){return Be(a)}function Fl(a){return a==="latest"||a==="pending"||a==="earliest"}function mn(a){return a===void 0?"latest":vt(a)}function vt(a){return a==null?null:Fl(a)?a:Ae(a)}function Qa(a){return a.from&&(a.from=Ht(a.from)),a.to&&(a.to=Ht(a.to)),a.gasPrice!==void 0&&(a.gasPrice=ve(a.gasPrice)),a.gas!==void 0&&(a.gas=ve(a.gas)),a.value!==void 0&&(a.value=ve(a.value)),a.nonce!==void 0&&(a.nonce=ve(a.nonce)),a.data&&!a.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(a.data)&&(a.data="0x"+a.data),a}function $n(a){if(typeof a!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(a));if(a.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(a));if(a.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(a));return a}function Ja(a){if(typeof a!="object")throw new Error("Did not provide transaction options");if(!a.from)throw new Error('Missing "from" in transaction options');return a.from=Ht(a.from),a.to&&(a.to=Ht(a.to)),a.gasPrice!==void 0&&(a.gasPrice=ve(a.gasPrice)),a.gas!==void 0&&(a.gas=ve(a.gas)),a.value!==void 0&&(a.value=ve(a.value)),a.nonce!==void 0&&(a.nonce=ve(a.nonce)),a.data&&!a.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(a.data)&&(a.data="0x"+a.data),a}function Eo(a){return a?(a.blockNumber!==null&&(a.blockNumber=ye(a.blockNumber)),a.transactionIndex!==null&&(a.transactionIndex=ye(a.transactionIndex)),a.nonce=ye(a.nonce),a.gas=ye(a.gas),a.gasPrice=Be(a.gasPrice),a.value=Be(a.value),a):null}function $l(a){return a?(a.blockNumber!==null&&(a.blockNumber=ye(a.blockNumber)),a.transactionIndex!==null&&(a.transactionIndex=ye(a.transactionIndex)),a.cumulativeGasUsed=ye(a.cumulativeGasUsed),a.gasUsed=ye(a.gasUsed),a.effectiveGasPrice!==void 0&&a.effectiveGasPrice!==null&&(a.effectiveGasPrice=ye(a.effectiveGasPrice)),a.logs&&sr(a.logs)&&(a.logs=a.logs.map((function(l){return us(l)}))),a.status=ye(a.status||""),a):null}function xo(a){return a?(a.gasLimit=ye(a.gasLimit),a.gasUsed=ye(a.gasUsed),a.size=ye(a.size),a.timestamp=ye(a.timestamp),a.number!==null&&(a.number=ye(a.number)),a.difficulty=Be(a.difficulty),a.totalDifficulty=Be(a.totalDifficulty),sr(a.transactions)&&a.transactions.forEach((function(l,y){Rt(l)||(a.transactions[y]=Eo(l)||a.transactions[y])})),a):null}function us(a){return a&&(a.blockNumber&&(a.blockNumber=ye(a.blockNumber)),a.transactionIndex&&(a.transactionIndex=ye(a.transactionIndex)),a.logIndex&&(a.logIndex=ye(a.logIndex)),a)}function Ht(a){if(Or(a))return a;if(Yt(a))return"0x"+a;throw new Error(`Invalid address: ${JSON.stringify(a)}`)}function Dl(a){return a}function ql(a){return a&&(a.startingBlock=ye(a.startingBlock),a.currentBlock=ye(a.currentBlock),a.highestBlock=ye(a.highestBlock),a.knownStates&&(a.knownStates=ye(a.knownStates),a.pulledStates=ye(a.pulledStates)),a)}function Xa(a){if(a===null)throw D("cannot convert null value to array",Z,{arg:"value",value:a});if(a instanceof Uint8Array)return new Uint8Array(a);if(typeof a=="string"){const l=a.match(/^(0x)?[0-9a-fA-F]*$/);if(!l)throw D("invalid hexidecimal string",Z,{arg:"value",value:a});if(l[1]!=="0x")throw D("hex string must have 0x prefix",Z,{arg:"value",value:a});(a=a.substring(2)).length%2&&(a="0"+a);const y=[];for(let I=0;I<a.length;I+=2)y.push(parseInt(a.substr(I,2),16));return new Uint8Array(y)}if((function(l){if(!l||parseInt(String(l.length))!==l.length||typeof l=="string")return!1;for(let y=0;y<l.length;y++){const I=l[y];if(I<0||I>=256||parseInt(String(I))!==I)return!1}return!0})(a))return new Uint8Array(a);throw D("invalid arrayify value",void 0,{arg:"value",value:a,type:typeof a})}function Ul(a,l,y){Object.defineProperty(a,l,{enumerable:!0,value:y,writable:!1})}const Sh=new ne(-1),Ch=new ne(0),Th=new ne(1),Vl=new ne("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Hl(a){return(function(l,y){function I(se){return new Error('unexpected character "'+l[se]+'" at position '+se+' in "'+l+'"')}const j={type:"",name:"",state:{allowType:!0}};let V=j;for(let se=0;se<l.length;se++){const pe=l[se];switch(pe){case"(":if(!V.state.allowParams)throw I(se);V.state.allowType=!1,V.type=So(V.type),V.components=[{type:"",name:"",parent:V,state:{allowType:!0}}],V=V.components[0];break;case")":delete V.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),V.type=So(V.type);const Ie=V;if(V=V.parent,!V)throw I(se);delete Ie.parent,V.state.allowParams=!1,V.state.allowName=!0,V.state.allowArray=!0;break;case",":delete V.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),V.type=So(V.type);const Pe={type:"",name:"",parent:V.parent,state:{allowType:!0}};V.parent.components.push(Pe),delete V.parent,V=Pe;break;case" ":V.state.allowType&&V.type!==""&&(V.type=So(V.type),delete V.state.allowType,V.state.allowName=!0,V.state.allowParams=!0),V.state.allowName&&V.name!==""&&(V.name==="indexed"?(V.indexed=!0,V.name=""):V.state.allowName=!1);break;case"[":if(!V.state.allowArray)throw I(se);V.type+=pe,V.state.allowArray=!1,V.state.allowName=!1,V.state.readArray=!0;break;case"]":if(!V.state.readArray)throw I(se);V.type+=pe,V.state.readArray=!1,V.state.allowArray=!0,V.state.allowName=!0;break;default:if(V.state.allowType)V.type+=pe,V.state.allowParams=!0,V.state.allowArray=!0;else if(V.state.allowName)V.name+=pe,delete V.state.allowArray;else{if(!V.state.readArray)throw I(se);V.type+=pe}}}if(V.parent)throw new Error("unexpected eof");return delete j.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),j.type=So(j.type),j})(a)}function So(a){return a.match(/^uint($|[^1-9])/)?a="uint256"+a.substring(4):a.match(/^int($|[^1-9])/)&&(a="int256"+a.substring(3)),a}const Ah=new RegExp(/^bytes([0-9]*)$/),zl=new RegExp(/^(u?int)([0-9]*)$/),Ih=new RegExp(/^(.*)\[([0-9]*)\]$/),kh=function(a,l){const y=a.match(zl);return y&&parseInt(y[2])<=48?l.toNumber():l};class yr{constructor(l,y,I,j="",V){this.coerceFunc=l,this.name=y,this.type=I,this.localName=j,this.dynamic=V}}class Rh extends yr{constructor(l){super(l.coerceFunc,l.name,l.type,void 0,l.dynamic),Ul(this,"coder",l)}encode(l){return this.coder.encode(l)}decode(l,y){return this.coder.decode(l,y)}}class Ph extends yr{constructor(l,y){super(l,"null","",y,!1)}encode(l){return Xa([])}decode(l,y){if(y>l.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function ds(a,l){return new ne(a.toString(2).substr(-l),2)}class Gl extends yr{constructor(l,y,I,j){const V=(I?"int":"uint")+8*y;super(l,V,V,j,!1),this.size=y,this.signed=I}encode(l){try{let y=Be(l);if(this.signed){let j=ds(Vl,8*this.size-1);if(y.gt(j))throw new Error("out-of-bounds");if(j=j.plus(Th).multipliedBy(Sh),y.lt(j))throw new Error("out-of-bounds")}else if(y.lt(Ch)||y.gt(ds(Vl,8*this.size)))throw new Error("out-of-bounds");y=ds(nt(y,8*this.size),8*this.size),this.signed&&(y=nt(or(y,8*this.size),256));const I=Q(nt(y).toString(16),64);if(I.indexOf("NaN")!==-1)throw D("invalid number value, NaN",Z,{arg:this.localName,coderType:this.name,value:l,v:y,twosComplement:nt(y),twosComplement16:nt(y).toString(16),pad:Q(nt(y).toString(16),64),size:this.size});return q(I)}catch(y){throw D("invalid number value",Z,{arg:this.localName,coderType:this.name,value:l,message:y.toString()})}}decode(l,y){if(l.length<y+32)throw D("insufficient data for "+this.name+" type",Z,{arg:this.localName,coderType:this.name,value:Ae(l.slice(y,y+32))});const I=32-this.size;let j=new ne(R(l.slice(y+I,y+32)),16);return j=this.signed?or(j,8*this.size):ds(j,8*this.size),{consumed:32,value:this.coerceFunc(this.name,j)}}}const jr=new Gl((function(a,l){return l}),32,!1,"none");class Wl extends yr{constructor(l,y,I){const j="bytes"+y;super(l,j,j,I,!1),this.length=y}encode(l){const y=new Uint8Array(32);try{if(typeof l=="string"&&l.length%2!=0)throw new Error("hex string cannot be odd-length");const I=Xa(l);if(I.length>this.length)throw new Error("incorrect data length");y.set(I)}catch(I){throw D("invalid "+this.name+" value. Use hex strings or Uint8Array",Z,{arg:this.localName,coderType:this.name,value:I.value||l,details:I.message})}return y}decode(l,y){if(l.length<y+32)throw D("insufficient data for "+this.name+" type",Z,{arg:this.localName,coderType:this.name,value:Ae(l.slice(y,y+32))});return{consumed:32,value:this.coerceFunc(this.name,l.slice(y,y+this.length))}}}function Zl(a){const l=32*Math.ceil(a.length/32),y=new Uint8Array(l-a.length);return ie(jr.encode(a.length),a,y)}function Kl(a,l,y){if(a.length<l+32)throw D("insufficient data for dynamicBytes length",Z,{arg:y,coderType:"dynamicBytes",value:Ae(a.slice(l,l+32))});let I=jr.decode(a,l).value;try{I=I.toNumber()}catch(j){throw j("dynamic bytes count too large",Z,{arg:y,coderType:"dynamicBytes",value:I.toString()})}if(a.length<l+32+I)throw D("insufficient data for dynamicBytes type",Z,{arg:y,coderType:"dynamicBytes",value:Ae(a.slice(l,l+32+I))});return{consumed:32+32*Math.ceil(I/32),value:a.slice(l+32,l+32+I)}}function fs(a){return 32*Math.ceil(a/32)}function Yl(a,l){if(!Array.isArray(l)){if(!l||typeof l!="object")throw D("invalid tuple value",Z,{coderType:"tuple",value:l});{const Ie=[];a.forEach((function(Pe){Ie.push(l[Pe.localName])})),l=Ie}}if(a.length!==l.length)throw D("types/value length mismatch",Z,{coderType:"tuple",value:l});const y=[];a.forEach((function(Ie,Pe){y.push({dynamic:Ie.dynamic,value:Ie.encode(l[Pe])})}));let I=0,j=0;y.forEach((function(Ie){Ie.dynamic?(I+=32,j+=fs(Ie.value.length)):I+=fs(Ie.value.length)}));let V=0,se=I;const pe=new Uint8Array(I+j);return y.forEach((function(Ie){Ie.dynamic?(pe.set(jr.encode(se),V),V+=32,pe.set(Ie.value,se),se+=fs(Ie.value.length)):(pe.set(Ie.value,V),V+=fs(Ie.value.length))})),pe}class Nh extends Array{}class Oh extends yr{constructor(l,y,I,j){super(l,"array",y.type+"["+(I>=0?I:"")+"]",j,I===-1||y.dynamic),this.coder=y,this.length=I}encode(l){if(!Array.isArray(l))throw D("expected array value",Z,{arg:this.localName,coderType:"array",value:l});let y=this.length,I=new Uint8Array(0);y===-1&&(y=l.length,I=jr.encode(y)),(function(V,se,pe){if(pe||(pe=""),V<se)throw D("missing argument"+pe,"MISSING_ARGUMENT",{count:V,expectedCount:se});if(V>se)throw D("too many arguments"+pe,"UNEXPECTED_ARGUMENT",{count:V,expectedCount:se})})(y,l.length,"in coder array"+(this.localName?" "+this.localName:""));const j=[];for(let V=0;V<l.length;V++)j.push(this.coder);return ie(I,Yl(j,l))}decode(l,y){let I=0,j=this.length;if(j===-1){let pe;try{pe=jr.decode(l,y)}catch(Ie){throw D("insufficient data for dynamic array length",Z,{arg:this.localName,coderType:"array",value:Ie.value})}try{j=pe.value.toNumber()}catch{throw D("array count too large",Z,{arg:this.localName,coderType:"array",value:pe.value.toString()})}I+=pe.consumed,y+=pe.consumed}const V=[];for(let pe=0;pe<j;pe++)V.push(new Rh(this.coder));const se=(function(pe,Ie,Pe){const Mt=Pe;let it=0;const ge=[];return pe.forEach((function(St){let Xe;if(St.dynamic){const et=jr.decode(Ie,Pe);Xe=St.decode(Ie,Mt+et.value.toNumber()),Xe.consumed=et.consumed}else Xe=St.decode(Ie,Pe);Xe.value!==void 0&&ge.push(Xe.value),Pe+=Xe.consumed,it+=Xe.consumed})),{value:ge,consumed:it}})(V,l,y);return se.consumed+=I,se.value=this.coerceFunc(this.type,se.value),se}}class ei extends yr{constructor(l,y,I){let j=!1;const V=[];y.forEach((function(se){se.dynamic&&(j=!0),V.push(se.type)})),super(l,"tuple","tuple("+V.join(",")+")",I,j),this.coders=y}encode(l){return Yl(this.coders,l)}decode(l,y){const I=(function(j,V,se){const pe=se;let Ie=0;const Pe=new Nh;return j.forEach((function(Mt){let it;if(Mt.dynamic){const ge=jr.decode(V,se);it=Mt.decode(V,pe+ge.value.toNumber()),it.consumed=ge.consumed}else it=Mt.decode(V,se);it.value!==void 0&&Pe.push(it.value),se+=it.consumed,Ie+=it.consumed})),j.forEach((function(Mt,it){let ge=Mt.localName;ge&&(ge==="length"&&(ge="_length"),Pe[ge]!==null&&Pe[ge]!==void 0||(Pe[ge]=Pe[it]))})),{value:Pe,consumed:Ie}})(this.coders,l,y);return I.value=this.coerceFunc(this.type,I.value),I}}const jh={address:class extends yr{constructor(a,l){super(a,"address","address",l,!1)}encode(a){const l=new Uint8Array(32),y=a.trim();if(!Yt(y))throw D("invalid address format",Z,{arg:this.localName,coderType:"address",value:a});try{l.set(q(Ht(y)),12)}catch(I){throw D(`invalid address (${I.message})`,Z,{arg:this.localName,coderType:"address",value:a})}return l}decode(a,l){if(a.length<l+32)throw D("insufficuent data for address type",Z,{arg:this.localName,coderType:"address",value:Ae(a.slice(l,l+32)),missingBytes:l+32-a.length});return{consumed:32,value:this.coerceFunc("address",qt(Ae(a.slice(l+12,l+32))))}}},bool:class extends yr{constructor(a,l){super(a,"bool","bool",l,!1)}encode(a){return jr.encode(a?1:0)}decode(a,l){try{const y=jr.decode(a,l);return{consumed:y.consumed,value:this.coerceFunc("bool",!y.value.isZero())}}catch(y){throw y.reason==="insufficient data for uint256 type"?D("insufficient data for boolean type",Z,{arg:this.localName,coderType:"boolean",value:y.value}):y}}},string:class extends yr{constructor(a,l){super(a,"string","string",l,!0)}encode(a){if(typeof a!="string")throw D("invalid string value",Z,{arg:this.localName,coderType:"string",value:a});return Zl(B(a))}decode(a,l){const y=Kl(a,l,this.localName);return y.value=this.coerceFunc("string",P(y.value)),y}},bytes:class extends yr{constructor(a,l){super(a,"bytes","bytes",l,!0)}encode(a){try{return Zl(Xa(a))}catch(l){throw l("invalid bytes value",Z,{arg:this.localName,coderType:"bytes",value:l.value})}}decode(a,l){const y=Kl(a,l,this.localName);return y.value=this.coerceFunc("bytes",y.value),y}},function:class extends Wl{constructor(a,l){super(a,24,l)}}};function hs(a,l){const y=jh[l.type];if(y)return new y(a,l.name);let I=l.type.match(zl);if(I){const j=parseInt(I[2]||"256");if(j===0||j>256||j%8!=0)throw D("invalid "+I[1]+" bit length",Z,{arg:"param",value:l});return new Gl(a,j/8,I[1]==="int",l.name)}if(I=l.type.match(Ah),I){const j=parseInt(I[1]);if(j===0||j>32)throw D("invalid bytes length",Z,{arg:"param",value:l});return new Wl(a,j,l.name)}if(I=l.type.match(Ih),I){const j=Object.assign({},l),V=parseInt(I[2]||"-1");return j.type=I[1],new Oh(a,hs(a,j),V,l.name)}if(l.type.substring(0,5)==="tuple")return(function(j,V,se){V||(V=[]);const pe=V.map((Ie=>hs(j,Ie)));return new ei(j,pe,se)})(a,l.components,l.name);if(l.type==="")return new Ph(a,l.name);throw D("invalid type",Z,{arg:"type",value:l.type,fullType:l})}class ti{constructor(l){(function(y,I){if(!(y instanceof I))throw D("missing new","MISSING_NEW",{name:I.name})})(this,ti),l||(l=kh),Ul(this,"coerceFunc",l)}encode(l,y){if(l.length!==y.length)throw D("types/values length mismatch",Z,{count:{types:l.length,values:y.length},value:{types:l,values:y}});const I=l.map((j=>typeof j=="string"?Hl(j):j)).map((j=>hs(this.coerceFunc,j)));return new ei(this.coerceFunc,I,"_").encode(y)}decode(l,y){const I=l.map((j=>typeof j=="string"?Hl(j):j)).map((j=>hs(this.coerceFunc,j)));return new ei(this.coerceFunc,I,"_").decode(y,0).value}}const Ql=new ti;var Jl,Ee;function Se(a,l,y,I){var j,V=arguments.length,se=V<3?l:I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(a,l,y,I);else for(var pe=a.length-1;pe>=0;pe--)(j=a[pe])&&(se=(V<3?j(se):V>3?j(l,y,se):j(l,y))||se);return V>3&&se&&Object.defineProperty(l,y,se),se}function Ce(a,l){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,l)}r.coder=void 0,(Jl=r.coder||(r.coder={})).encodeParams=function(a,l){return R(Ql.encode(a,l))},Jl.decodeParams=function(a,l){if(a.length>0&&(!l||l==="0x"||l==="0X"))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");return Ql.decode(a,q("0x"+l.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class Ne{constructor(l){this.callName=l.callName,this.params=l.params||0,this.inputFormatter=l.inputFormatter||null,this.outputFormatter=l.outputFormatter}validateArgs(l){if(l.length!==this.params)throw y=this.callName,I=l.length,j=this.params,new Error(`Invalid number of input parameters to RPC method "${y}" given: ${I}, expected: ${j}`);var y,I,j}formatInput(l){return this.inputFormatter?this.inputFormatter.map((function(y,I){return y?y(l[I]):l[I]})):l}formatOutput(l){return l!==null?this.outputFormatter(l):null}toPayload(l){const y=this.formatInput(l);return this.validateArgs(y),{method:this.callName,params:y}}async execute(l,...y){const I=this.toPayload(y);if(!l)throw new Error("Missing RequestManager in method#exec");const j=await l.sendAsync(I);return this.formatOutput(j)}}class zt{constructor(l){this.getter=l.getter,this.outputFormatter=l.outputFormatter}formatOutput(l){return this.outputFormatter(l)}async execute(l,...y){const I=await l.sendAsync({method:this.getter,params:[]});return this.formatOutput(I)}}function Xl(a){return new Promise((l=>setTimeout(l,a)))}r.eth=void 0,(Ee=r.eth||(r.eth={})).eth_getBalance=new Ne({callName:"eth_getBalance",params:2,inputFormatter:[Ht,mn],outputFormatter:Ya}),Ee.eth_getStorageAt=new Ne({callName:"eth_getStorageAt",params:3,inputFormatter:[Ht,Ae,mn],outputFormatter:qe}),Ee.eth_getCode=new Ne({callName:"eth_getCode",params:2,inputFormatter:[Ht,mn],outputFormatter:qe}),Ee.eth_getBlockByHash=new Ne({callName:"eth_getBlockByHash",params:2,inputFormatter:[vt,function(a){return!!a}],outputFormatter:xo}),Ee.eth_getBlockByNumber=new Ne({callName:"eth_getBlockByNumber",params:2,inputFormatter:[vt,function(a){return!!a}],outputFormatter:xo}),Ee.eth_getUncleByBlockHashAndIndex=new Ne({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[vt,Ae],outputFormatter:xo}),Ee.eth_getUncleByBlockNumberAndIndex=new Ne({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[vt,Ae],outputFormatter:xo}),Ee.eth_getBlockTransactionCountByHash=new Ne({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[vt],outputFormatter:ye}),Ee.eth_getBlockTransactionCountByNumber=new Ne({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[vt],outputFormatter:ye}),Ee.eth_getUncleCountByBlockHash=new Ne({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[vt],outputFormatter:ye}),Ee.eth_getUncleCountByBlockNumber=new Ne({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[vt],outputFormatter:ye}),Ee.eth_getTransactionByHash=new Ne({callName:"eth_getTransactionByHash",params:1,inputFormatter:[$n],outputFormatter:Eo}),Ee.eth_getTransactionByBlockHashAndIndex=new Ne({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[vt,Ae],outputFormatter:Eo}),Ee.eth_getTransactionByBlockNumberAndIndex=new Ne({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[vt,Ae],outputFormatter:Eo}),Ee.eth_getTransactionReceipt=new Ne({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[$n],outputFormatter:$l}),Ee.eth_getTransactionCount=new Ne({callName:"eth_getTransactionCount",params:2,inputFormatter:[Ht,mn],outputFormatter:ye}),Ee.eth_sendRawTransaction=new Ne({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:qe}),Ee.web3_sha3=new Ne({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:qe}),Ee.eth_sendTransaction=new Ne({callName:"eth_sendTransaction",params:1,inputFormatter:[Ja],outputFormatter:qe}),Ee.eth_sign=new Ne({callName:"eth_sign",params:2,inputFormatter:[Ht,null],outputFormatter:qe}),Ee.eth_call=new Ne({callName:"eth_call",params:2,inputFormatter:[Qa,mn],outputFormatter:qe}),Ee.eth_estimateGas=new Ne({callName:"eth_estimateGas",params:1,inputFormatter:[Qa],outputFormatter:ye}),Ee.eth_submitWork=new Ne({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:fe}),Ee.eth_getWork=new Ne({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:yt}),Ee.eth_coinbase=new zt({getter:"eth_coinbase",outputFormatter:Kr}),Ee.eth_mining=new zt({getter:"eth_mining",outputFormatter:fe}),Ee.eth_hashrate=new zt({getter:"eth_hashrate",outputFormatter:ye}),Ee.eth_syncing=new zt({getter:"eth_syncing",outputFormatter:ql}),Ee.eth_gasPrice=new zt({getter:"eth_gasPrice",outputFormatter:Ya}),Ee.eth_accounts=new zt({getter:"eth_accounts",outputFormatter:yt}),Ee.eth_blockNumber=new zt({getter:"eth_blockNumber",outputFormatter:ye}),Ee.eth_protocolVersion=new zt({getter:"eth_protocolVersion",outputFormatter:ye}),Ee.web3_clientVersion=new zt({getter:"web3_clientVersion",outputFormatter:He}),Ee.net_version=new zt({getter:"net_version",outputFormatter:He}),Ee.shh_version=new Ne({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:ye}),Ee.shh_post=new Ne({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:fe}),Ee.personal_newAccount=new Ne({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:Kr}),Ee.personal_importRawKey=new Ne({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:Kr}),Ee.personal_sign=new Ne({callName:"personal_sign",params:3,inputFormatter:[he,Ht,null],outputFormatter:qe}),Ee.personal_ecRecover=new Ne({callName:"personal_ecRecover",params:2,inputFormatter:[he,null],outputFormatter:Kr}),Ee.personal_unlockAccount=new Ne({callName:"personal_unlockAccount",params:3,inputFormatter:[Ht,null,xe],outputFormatter:fe}),Ee.personal_sendTransaction=new Ne({callName:"personal_sendTransaction",params:2,inputFormatter:[Ja,null],outputFormatter:qe}),Ee.personal_lockAccount=new Ne({callName:"personal_lockAccount",params:1,inputFormatter:[Ht],outputFormatter:fe}),Ee.personal_listAccounts=new zt({getter:"personal_listAccounts",outputFormatter:yt}),Ee.net_listening=new zt({getter:"net_listening",outputFormatter:fe}),Ee.net_peerCount=new zt({getter:"net_peerCount",outputFormatter:ye}),Ee.eth_newFilter=new Ne({callName:"eth_newFilter",params:1,inputFormatter:[Dl],outputFormatter:Ae}),Ee.eth_getLogs=new Ne({callName:"eth_getLogs",params:1,inputFormatter:[yt],outputFormatter:yt}),Ee.eth_newBlockFilter=new Ne({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:Ae}),Ee.eth_newPendingTransactionFilter=new Ne({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:Ae}),Ee.eth_uninstallFilter=new Ne({callName:"eth_uninstallFilter",params:1,inputFormatter:[Ae],outputFormatter:fe}),Ee.eth_getFilterLogs=new Ne({callName:"eth_getFilterLogs",params:1,inputFormatter:[Ae],outputFormatter:yt}),Ee.eth_getFilterChanges=new Ne({callName:"eth_getFilterChanges",params:1,inputFormatter:[Ae],outputFormatter:yt}),Ee.eth_submitHashrate=new Ne({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:fe}),Ee.shh_newIdentity=new Ne({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:qe}),Ee.shh_hasIdentity=new Ne({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:fe}),Ee.shh_newGroup=new Ne({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:qe}),Ee.shh_addToGroup=new Ne({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:fe}),Ee.shh_newFilter=new Ne({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:Ae}),Ee.shh_uninstallFilter=new Ne({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:fe}),Ee.shh_getLogs=new Ne({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:yt}),Ee.shh_getFilterMessages=new Ne({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:yt}),Ee.shh_getFilterChanges=new Ne({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:yt}),Ee.shh_getMessages=new Ne({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:yt});function Te(a,l){const y=r.eth[l];if(!y)throw new Error(`Could not find the method/property named ${l.toString()}`);Object.defineProperty(a,l,{value:function(...I){return y.execute(this,...I)}})}class _e{constructor(l){this.provider=l,this.requests=new Map}async sendAsync(l){const y=await this.provider;if(!y)throw new Error("Provider not set or invalid");const I=Ka(l.method,l.params),j=i();return this.requests.set(I.id,j),y.sendAsync(I,((V,se)=>{this.requests.delete(I.id),V?j.reject(V):Ml(se)?j.resolve(se.result):j.reject((function(pe){const Ie=pe&&pe.error&&pe.error.message?pe.error.message:"Invalid JSON RPC response: "+JSON.stringify(pe);return new Error(Ie)})(se))})),j}setProvider(l){this.provider=l}async getConfirmedTransaction(l){const y=await this.waitForCompletion(l);if(this.isFailure(y))throw new Error(`Transaction "${l}" failed`);return y}async waitForCompletion(l,y){const I=$n(l);if(await this.isTxDropped(I,y)){const j=await this.getTransactionAndReceipt(I);return Object.assign(Object.assign({},j),{status:r.TransactionStatus.failed})}for(;;){const j=await this.getTransactionAndReceipt(I);if(!this.isPending(j)&&j.receipt)return Object.assign(Object.assign({},j),{status:this.isFailure(j)?r.TransactionStatus.failed:r.TransactionStatus.confirmed});await Xl(2e3)}}async getTransaction(l){let y,I=null;const j=$n(l);try{const se=(await this.eth_accounts())[0];se&&(I=await this.eth_getTransactionCount(se,"latest"))}catch{I=null}try{if(y=await this.eth_getTransactionByHash(j),y===null)return null}catch{return null}if(y.blockNumber===null){if(I!==null){if(y.nonce<I)return{hash:j,type:r.TransactionType.replaced,nonce:y.nonce};if(y.nonce>I)return{hash:j,type:r.TransactionType.queued,nonce:y.nonce}}return Object.assign({type:r.TransactionType.pending},y)}let V;try{if(V=await this.eth_getTransactionReceipt(j),V===null||V.status===0)return Object.assign({type:r.TransactionType.reverted},y)}catch{return null}return Object.assign(Object.assign({type:r.TransactionType.confirmed},y),{receipt:V})}async isTxDropped(l,y=15){let I=y;for(;I>0;){if(await this.getTransactionAndReceipt(l)!==null)return!1;I-=1,await Xl(2e3)}return!0}async getTransactionAndReceipt(l){l=$n(l);const[y,I]=await Promise.all([this.eth_getTransactionByHash(l),this.eth_getTransactionReceipt(l)]);return Object.assign(Object.assign({},y),{receipt:I})}isPending(l){return l&&l.blockNumber===null}isFailure(l){return l&&(!l.receipt||l.receipt.status===0)}}Se([Te,Ce("design:type",Function)],_e.prototype,"web3_clientVersion",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"web3_sha3",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"net_version",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"net_peerCount",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"net_listening",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_protocolVersion",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_syncing",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_coinbase",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_mining",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_hashrate",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_gasPrice",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_accounts",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_blockNumber",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getBalance",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getStorageAt",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getTransactionCount",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getBlockTransactionCountByHash",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getBlockTransactionCountByNumber",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getUncleCountByBlockHash",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getUncleCountByBlockNumber",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getCode",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_sign",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_sendTransaction",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_sendRawTransaction",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_call",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_estimateGas",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getBlockByHash",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getBlockByNumber",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getTransactionByHash",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getTransactionReceipt",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getUncleByBlockHashAndIndex",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_newFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_newBlockFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_newPendingTransactionFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_uninstallFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getFilterChanges",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getFilterLogs",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getLogs",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getWork",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_submitWork",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_submitHashrate",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_post",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_version",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_newIdentity",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_hasIdentity",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_newGroup",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_addToGroup",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_newFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_uninstallFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_getFilterChanges",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_getMessages",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_unlockAccount",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_newAccount",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_listAccounts",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_lockAccount",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_importRawKey",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_sendTransaction",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_sign",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_ecRecover",void 0);class eu{constructor(l){this.json=l,this._inputTypes=l.inputs||[],this._outputTypes=l.outputs||[],this._constant=!!l.constant,this._payable=!!l.payable||l.stateMutability==="payable",this.needsToBeTransaction=this._payable||"constant"in l&&!l.constant||l.stateMutability==="nonpayable",this._name=ce(l)}extractDefaultBlock(l){return l.length>this._inputTypes.length&&!Vt(l[l.length-1])&&mn(l.pop())||"latest"}validateArgs(l){if(l.some((V=>V===void 0)))throw new Error("Invalid call, some arguments are undefined");const y=l.filter((function(V){return!(Vt(V)===!0&&sr(V)===!1&&Ut(V)===!1&&!(V instanceof Uint8Array))}));if(y.length!==this._inputTypes.length)throw I=y.length,j=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${I}, expected: ${j}`);var I,j}toPayload(l){let y={to:void 0,data:void 0,value:void 0,from:void 0};l.length>this._inputTypes.length&&Vt(l[l.length-1])&&(y=l.pop()),this.validateArgs(l);const I=this.signature();let j=r.coder.encodeParams(this._inputTypes,l);return j.indexOf("0x")===0&&(j=j.substr(2)),y.data="0x"+I+j,y}signature(){return O(this._name).slice(0,8)}unpackOutput(l){if(!l)return;const y=l.length>=2?l.slice(2):l,I=r.coder.decodeParams(this._outputTypes,y);return I.length===1?I[0]:I}async execute(l,y,...I){if(!l)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const j=this.toPayload(I);if(j.to=y,j.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!j.from)throw new Error('Missing "from" in transaction options');return await l.eth_sendTransaction(j)}{const j=this.extractDefaultBlock(I),V=this.toPayload(I);V.to=y;const se=await l.eth_call(V,j);return this.unpackOutput(se)}}estimateGas(l,y,...I){if(!(l instanceof _e))throw new Error("estimateGas needs to receive a RequestManager as first argument");const j=this.toPayload(I);return j.to=y,l.eth_estimateGas(j)}displayName(){return Re(this._name)}typeName(){return we(this._name)||"void"}attachToContract(l){const y=this.displayName(),I=Object.assign(((...j)=>this.execute(l.requestManager,l.address,...j)),{estimateGas:this.estimateGas.bind(this,l.requestManager,l.address),toPayload:(...j)=>this.toPayload(j),toRPCMessage:(...j)=>{const V=this.extractDefaultBlock(j),se=this.toPayload(j);return se.to=l.address,{method:"eth_call",params:[se,V]}},unpackOutput:j=>this.unpackOutput(j)});l[y]||(l[y]=I),l[y][this.typeName()]=I}}function tu(a){if(a==null)return null;const l=String(a).toString();return l.indexOf("0x")===0?l:R(B(l))}class ri{constructor(l){this.requestManager=l,this.isStarted=!1,this.isDisposed=!1,this.formatter=y=>y,this.filterId=i(),this.callbacks=[],this.stopSemaphore=i()}async watch(l){if(this.isDisposed)throw new Error("The filter was disposed");l&&(this.callbacks.push(l),this.isStarted||await this.start())}async start(){if(this.isDisposed)throw new Error("The filter was disposed");if(!this.isStarted){this.isStarted=!0;try{const l=await this.getNewFilter();if(!l)throw new Error("Could not create a filter, response: "+JSON.stringify(l));this.filterId.resolve(l)}catch(l){throw l}this.stopSemaphore=i(),await this.poll()}}async stop(){if(!this.isStarted||this.isDisposed)return;this.isDisposed=!0;const l=await this.filterId;if(this.isStarted=!1,this.stopSemaphore&&await this.stopSemaphore,await this.uninstall()!==!0)throw new Error(`Couldn't stop the eth filter: ${l}`)}async poll(){if(this.isStarted){if(this.callbacks.length){const y=await this.getChanges();y&&this.callbacks.forEach((I=>{this.formatter?y.forEach((j=>{I(this.formatter(j))})):y.forEach((j=>I(j)))}))}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=i(),setTimeout((l=()=>this.poll(),function(){l().catch((y=>console.error(y)))}),500))}else this.stopSemaphore.resolve(1);var l}}class Co extends ri{constructor(l,y,I=(j=>j)){super(l),this.requestManager=l,this.options=y,this.formatter=I,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(j){return tu(j)})),this.options={topics:this.options.topics,address:this.options.address?this.options.address:void 0,fromBlock:typeof this.options.fromBlock=="number"||typeof this.options.fromBlock=="string"?vt(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?vt(this.options.toBlock)||void 0:"latest"}}async getLogs(){this.isStarted||await this.start();const l=await this.filterId;return this.requestManager.eth_getFilterLogs(l)}async getNewFilter(){return this.requestManager.eth_newFilter(this.options)}async getChanges(){const l=await this.filterId;return this.requestManager.eth_getFilterChanges(l)}async uninstall(){const l=await this.filterId;return this.requestManager.eth_uninstallFilter(l)}}class ni{constructor(l,y,I){this.requestManager=l,this.address=I,this._anonymous=!1,this._params=y.inputs||[],this._name=ce(y),this._anonymous=y.anonymous||!1}types(l){return this._params.filter((function(y){return y.indexed===l}))}displayName(){return Re(this._name)}typeName(){return we(this._name)||"void"}signature(){return O(this._name)}encode(l={},y={}){const I={topics:[],address:this.address};y.fromBlock!==void 0&&(I.fromBlock=vt(y.fromBlock)||void 0),y.toBlock!==void 0&&(I.toBlock=vt(y.toBlock)||void 0),I.topics=I.topics||[],this._anonymous||I.topics.push("0x"+this.signature());const j=this._params.filter((function(V){return V.indexed===!0})).map((function(V){const se=l[V.name];return se==null?null:sr(se)?se.map((function(pe){return"0x"+r.coder.encodeParams([V],[pe])})):"0x"+r.coder.encodeParams([V],[se])}));return I.topics=I.topics.concat(j),I}decode(l){l.data=l.data||"",l.topics=l.topics||[];const y=(this._anonymous?l.topics:l.topics.slice(1)).map((function(pe){return pe.slice(2)})).join(""),I=r.coder.decodeParams(this.types(!0),y),j=l.data.slice(2),V=r.coder.decodeParams(this.types(!1),j),se=this._params.reduce((function(pe,Ie){return pe[Ie.name]=Ie.indexed?I.shift():V.shift(),pe}),{});return Object.assign(Object.assign({},us(l)),{event:this.displayName(),address:l.address,args:se})}async execute(l,y){const I=this.encode(l,y),j=this.decode.bind(this);return new Co(this.requestManager,I,j)}attachToContract(l){const y=this.execute.bind(this),I=this.displayName();l.events[I]||(l.events[I]=y),l.events[I][this.typeName()]=this.execute.bind(this,l)}}class Lh{constructor(l,y,I){this._requestManager=l,this._json=y,this._address=I}encode(l={}){const y={address:this._address};return l.fromBlock!==void 0&&(y.fromBlock=vt(l.fromBlock)||void 0),l.toBlock!==void 0&&(y.toBlock=vt(l.toBlock)||void 0),y}decode(l){l.data=l.data||"";const y=sr(l.topics)&&Rt(l.topics[0])?l.topics[0].slice(2):"",I=this._json.filter((function(j){return y===O(ce(j))}))[0];return I?new ni(this._requestManager,I,this._address).decode(l):us(l)}async execute(l){const y=this.encode(l),I=this.decode.bind(this);return new Co(this._requestManager,y,I)}getAllEventsFunction(){return this.execute.bind(this)}}class ru{constructor(l,y,I){var j;this.requestManager=l,this.abi=y,this.address=I,this.events={},this.transactionHash=null,this.address=I,this.abi=y,(j=this).abi.filter((function(V){return V.type==="function"})).map((function(V){return new eu(V)})).forEach((function(V){V.attachToContract(j)})),this.allEvents=(function(V){const se=V.abi.filter((function(Ie){return Ie.type==="event"})),pe=new Lh(V.requestManager,se,V.address);return se.map((function(Ie){return new ni(V.requestManager,Ie,V.address)})).forEach((function(Ie){Ie.attachToContract(V)})),pe.getAllEventsFunction()})(this)}}r.AbstractFilter=ri,r.BigNumber=ne,r.Contract=ru,r.ContractFactory=class{constructor(a,l){this.requestManager=a,this.abi=l}async deploy(...a){let l;const y=a[a.length-1];if(Vt(y)&&!sr(y)&&(l=a.pop()),!l)throw new Error("Missing options object");if(!l.data||typeof l.data!="string")throw new Error("Invalid options.data");if(ye(l.value)>0&&!(this.abi.filter((function(Pe){return Pe.type==="constructor"&&Pe.inputs.length===a.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const I=(j=this.abi,V=a,j.filter((function(Pe){return Pe.type==="constructor"&&Pe.inputs&&Pe.inputs.length===V.length})).map((function(Pe){return Pe.inputs||[]})).map((function(Pe){return r.coder.encodeParams(Pe,V)}))[0]||"");var j,V;l.data+=I,l.gas||(l.gas=await this.requestManager.eth_estimateGas(l));const se=await this.requestManager.eth_sendTransaction(l);if(!se)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const pe=await(async function(Pe,Mt){const it=i();let ge=0;const St=()=>{ge++,ge>50?it.reject(new Error("Contract transaction couldn't be found after 50 blocks")):Pe.eth_getTransactionReceipt(Mt).then((Pt=>{Pt&&Pt.blockHash?it.resolve(Pt):setTimeout(St,1e3)}),(Pt=>it.reject(Pt)))};St();const Xe=await it,et=await Pe.eth_getCode(Xe.contractAddress,"latest");if(et&&et.length>3)return Xe.contractAddress;throw Object.assign(new Error("The contract code couldn't be stored, please check your gas amount."),{response:et,receipt:Xe})})(this.requestManager,se),Ie=await this.at(pe);return Ie.transactionHash=se,Ie}async at(a){if(!Yt(a))throw new TypeError(`Invalid address ${JSON.stringify(a)}`);return new ru(this.requestManager,this.abi,a)}},r.EthBlockFilter=class extends Co{constructor(a){super(a,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},r.EthFilter=Co,r.EthPendingTransactionFilter=class extends Co{constructor(a){super(a,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},r.HTTPProvider=class{constructor(a,l={}){this.host=a,this.options=l,this.debug=!1,this.host=a||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(a,l){try{let y=null;y=a instanceof Array?a.map((V=>n(V))):n(a);const I=this.options.fetch||globalThis.fetch;if(I===void 0)throw new Error("There is no global fetch object nor it was provided. Please install and import isomorphic-fetch");const j={body:JSON.stringify(y),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+j.body),I(this.host,j).then((async V=>{if(V.ok){const se=await V.json();this.debug&&console.log("RECV << "+JSON.stringify(se)),se.error?l(Object.assign(new Error(se.error.json||se.error),se.error)):l(null,se)}else{const se=(typeof V.text=="function"?await V.text().catch((()=>"")):"").trim().slice(0,512),pe="External error. response code: "+V.status+(se?" — "+se:"");this.debug&&console.log("ERR << "+pe),l(new Error(pe))}}),(V=>{this.debug&&console.log("ERR << "+JSON.stringify(V)),l(V)}))}catch(y){this.debug&&console.log("ERR << "+JSON.stringify(y)),l(y)}}},r.Method=Ne,r.Property=zt,r.RequestManager=_e,r.SHHFilter=class extends ri{constructor(a,l){super(a),this.requestManager=a,this.options=l,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(y){return tu(y)})),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const a=await this.filterId;return this.requestManager.shh_getMessages(a)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const a=await this.filterId;return this.requestManager.shh_getFilterChanges(a)}async uninstall(){const a=await this.filterId;return this.requestManager.shh_uninstallFilter(a)}},r.SolidityEvent=ni,r.SolidityFunction=eu,r.WebSocketProvider=class{constructor(a,l={}){this.url=a,this.options=l,this.isDisposed=!1,this.responseCallbacks=new Map,this.notificationCallbacks=new Set,this.debug=!1,this.lastChunk="",this.connect()}dispose(){this.isDisposed=!0;const a=this.connection;this.timeout(new Error("Provider disposed.")),a.then((l=>l.close())).catch((l=>{this.debug&&console.error(l)}))}send(){throw new Error("Sync requests are deprecated")}sendAsync(a,l){const y=[];let I;if(a instanceof Array)I=Promise.all(a.map((j=>{const V=i();try{const se=n(j);y.push(se),this.responseCallbacks.set(se.id,V)}catch(se){V.reject(se)}return V})));else{const j=i();try{const V=n(a);y.push(V),this.responseCallbacks.set(V.id,j)}catch(V){j.reject(V)}I=j}I.then((j=>l(null,j)),(j=>l(j))),this.connection.then((j=>{y.forEach((V=>{const se=JSON.stringify(V);this.debug&&console.log("SEND >> "+se),j.send(se)}))}),(j=>{l(j)}))}parseResponse(a){const l=[];return a.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((y=>{let I=y;this.lastChunk&&(I=this.lastChunk+I);let j=null;try{j=JSON.parse(I)}catch{return this.lastChunk=I,clearTimeout(this.lastChunkTimeout),void(this.lastChunkTimeout=setTimeout((()=>{this.timeout()}),15e3))}clearTimeout(this.lastChunkTimeout),this.lastChunk="",j&&l.push(j)})),l}processMessage(a){if("id"in a){const l=a.id,y=this.responseCallbacks.get(l);if(!y)return void console.error("Error: Received a response for an unknown request",a);this.responseCallbacks.delete(l),a.error!==void 0&&a.error!==null?y.reject(Object.assign(new Error(a.error.message||a.error),a.error)):"result"in a&&y.resolve(a)}else this.notificationCallbacks.forEach((l=>l(null,a)))}timeout(a){this.connection&&this.connection.isPending||(this.connection=i());const l=a||new Error("Connection timeout");this.responseCallbacks.forEach((y=>y.reject(l))),this.responseCallbacks.clear(),this.isDisposed||setTimeout((()=>this.connect()),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then((y=>y.close())).catch((y=>{this.debug&&console.error(y)})),this.connection&&this.connection.isPending||(this.connection=i()),this.lastChunk="";const a=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!a)throw new Error("Please provide a WebSocketConstructor");const l=new a(this.url,this.options.protocol);l.onopen=()=>{this.connection.resolve(l)},l.onerror=y=>{const I=new Error("Error in web socket");I.data=y,this.timeout(I)},l.onclose=y=>{this.timeout(new Error(`Connection closed (${y&&y.reason||"Unknown reason"})`))},l.onmessage=y=>{const I=typeof y.data=="string"?y.data:"";this.debug&&console.log("RECV << "+y.data),this.parseResponse(I).forEach((j=>{j instanceof Array?j.forEach((V=>this.processMessage(V))):this.processMessage(j)}))}}},r.bytesToHex=R,r.bytesToUtf8String=P,r.concatBytes=ie,r.default=_e,r.extractDisplayName=Re,r.extractTypeName=we,r.fromAscii=function(a,l=0){let y="";for(let I=0;I<a.length;I++){const j=a.charCodeAt(I).toString(16);y+=j.length<2?"0"+j:j}return"0x"+y.padEnd(l,"0")},r.fromDecimal=ve,r.fromTwosComplement=or,r.fromWei=function(a,l){const y=Be(a).dividedBy(Le(l));return Ut(a)?y:y.toString(10)},r.getAddress=qt,r.getValueOfUnit=Le,r.hexToBytes=q,r.inputAddressFormatter=Ht,r.inputBlockNumberFormatter=vt,r.inputCallFormatter=Qa,r.inputDefaultBlockNumberFormatter=mn,r.inputFilterOptions=Dl,r.inputPostFormatter=function(a){return a?(a.ttl=ve(a.ttl),a.workToProve=ve(a.workToProve),a.priority=ve(a.priority),sr(a.topics)||(a.topics=a.topics?[a.topics]:[]),a.topics=a.topics.map((function(l){return l.indexOf("0x")===0?l:"0x"+R(B(l))})),a):null},r.inputTransactionFormatter=Ja,r.inputTransactionId=$n,r.isAddress=Yt,r.isArray=sr,r.isBigNumber=Ut,r.isBloom=function(a){return!!/^(0x)?[0-9a-f]{512}$/i.test(a)&&!!/^(0x)?[0-9a-f]{512}$/i.test(a)},r.isBoolean=_o,r.isChecksumAddress=Mn,r.isFunction=function(a){return typeof a=="function"},r.isHex=function(a){return typeof a=="string"&&/^0x[0-9a-fA-F]+$/.test(a)},r.isJson=function(a){try{return!!JSON.parse(a)}catch{return!1}},r.isObject=Vt,r.isPredefinedBlockNumber=Fl,r.isStrictAddress=Or,r.isString=Rt,r.isTopic=function(a){return!!/^(0x)?[0-9a-f]{64}$/i.test(a)&&!!/^(0x)?[0-9a-f]{64}$/i.test(a)},r.isValidResponse=Ml,r.outputBigNumberFormatter=Ya,r.outputBlockFormatter=xo,r.outputLogFormatter=us,r.outputPostFormatter=function(a){return a?(a.expiry=ye(a.expiry),a.sent=ye(a.sent),a.ttl=ye(a.ttl),a.workProved=ye(a.workProved),a.topics||(a.topics=[]),a.topics=a.topics.map((function(l){return le(l)})),a):null},r.outputSyncingFormatter=ql,r.outputTransactionFormatter=Eo,r.outputTransactionReceiptFormatter=$l,r.padLeft=Q,r.padRight=function(a,l,y){return a+new Array(l-a.length+1).join(y||"0")},r.sha3=O,r.signedIsNegative=Dt,r.stringToUtf8Bytes=B,r.toAddress=Kr,r.toArray=yt,r.toAscii=le,r.toBatchPayload=function(a){return a.map((function(l){return Ka(l.method,l.params)}))},r.toBigNumber=Be,r.toBoolean=fe,r.toChecksumAddress=gr,r.toData=qe,r.toDecimal=ye,r.toHex=Ae,r.toJsonRpcRequest=Ka,r.toNullDecimal=xe,r.toString=He,r.toStringData=he,r.toTwosComplement=nt,r.toWei=function(a,l){const y=Be(a).times(Le(l));return Ut(a)?y:y.toString(10)},r.transformToFullName=ce,Object.defineProperty(r,"__esModule",{value:!0})}))})(Lo,Lo.exports)),Lo.exports}var ea={},Mu;function ng(){if(Mu)return ea;Mu=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.SignatureValidator=t;const e=ka();async function t(r,n){const o=[{constant:!0,inputs:[{name:"hash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"magicValue",type:"bytes4"}],payable:!1,stateMutability:"view",type:"function"}];return await new e.ContractFactory(r,o).at(n)}return ea}var Er={},di={},fi={},yn={},$r={},bt={},Fu;function vl(){if(Fu)return bt;Fu=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.output=bt.exists=bt.hash=bt.bytes=bt.bool=bt.number=bt.isBytes=void 0;function e(d){if(!Number.isSafeInteger(d)||d<0)throw new Error(`positive integer expected, not ${d}`)}bt.number=e;function t(d){if(typeof d!="boolean")throw new Error(`boolean expected, not ${d}`)}bt.bool=t;function r(d){return d instanceof Uint8Array||d!=null&&typeof d=="object"&&d.constructor.name==="Uint8Array"}bt.isBytes=r;function n(d,...h){if(!r(d))throw new Error("Uint8Array expected");if(h.length>0&&!h.includes(d.length))throw new Error(`Uint8Array expected of length ${h}, not of length=${d.length}`)}bt.bytes=n;function o(d){if(typeof d!="function"||typeof d.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");e(d.outputLen),e(d.blockLen)}bt.hash=o;function s(d,h=!0){if(d.destroyed)throw new Error("Hash instance has been destroyed");if(h&&d.finished)throw new Error("Hash#digest() has already been called")}bt.exists=s;function i(d,h){n(d);const m=h.outputLen;if(d.length<m)throw new Error(`digestInto() expects output buffer of length at least ${m}`)}bt.output=i;const u={number:e,bool:t,bytes:n,hash:o,exists:s,output:i};return bt.default=u,bt}var hi={},Ao={},$u;function og(){return $u||($u=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.crypto=void 0,Ao.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),Ao}var Du;function os(){return Du||(Du=1,(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.byteSwap32=e.byteSwapIfBE=e.byteSwap=e.isLE=e.rotl=e.rotr=e.createView=e.u32=e.u8=e.isBytes=void 0;const t=og(),r=vl();function n(X){return X instanceof Uint8Array||X!=null&&typeof X=="object"&&X.constructor.name==="Uint8Array"}e.isBytes=n;const o=X=>new Uint8Array(X.buffer,X.byteOffset,X.byteLength);e.u8=o;const s=X=>new Uint32Array(X.buffer,X.byteOffset,Math.floor(X.byteLength/4));e.u32=s;const i=X=>new DataView(X.buffer,X.byteOffset,X.byteLength);e.createView=i;const u=(X,B)=>X<<32-B|X>>>B;e.rotr=u;const d=(X,B)=>X<<B|X>>>32-B>>>0;e.rotl=d,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const h=X=>X<<24&4278190080|X<<8&16711680|X>>>8&65280|X>>>24&255;e.byteSwap=h,e.byteSwapIfBE=e.isLE?X=>X:X=>(0,e.byteSwap)(X);function m(X){for(let B=0;B<X.length;B++)X[B]=(0,e.byteSwap)(X[B])}e.byteSwap32=m;const p=Array.from({length:256},(X,B)=>B.toString(16).padStart(2,"0"));function b(X){(0,r.bytes)(X);let B="";for(let P=0;P<X.length;P++)B+=p[X[P]];return B}e.bytesToHex=b;const E={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function A(X){if(X>=E._0&&X<=E._9)return X-E._0;if(X>=E._A&&X<=E._F)return X-(E._A-10);if(X>=E._a&&X<=E._f)return X-(E._a-10)}function g(X){if(typeof X!="string")throw new Error("hex string expected, got "+typeof X);const B=X.length,P=B/2;if(B%2)throw new Error("padded hex string expected, got unpadded hex of length "+B);const K=new Uint8Array(P);for(let Z=0,D=0;Z<P;Z++,D+=2){const q=A(X.charCodeAt(D)),R=A(X.charCodeAt(D+1));if(q===void 0||R===void 0){const O=X[D]+X[D+1];throw new Error('hex string expected, got non-hex character "'+O+'" at index '+D)}K[Z]=q*16+R}return K}e.hexToBytes=g;const T=async()=>{};e.nextTick=T;async function H(X,B,P){let K=Date.now();for(let Z=0;Z<X;Z++){P(Z);const D=Date.now()-K;D>=0&&D<B||(await(0,e.nextTick)(),K+=D)}}e.asyncLoop=H;function v(X){if(typeof X!="string")throw new Error(`utf8ToBytes expected string, got ${typeof X}`);return new Uint8Array(new TextEncoder().encode(X))}e.utf8ToBytes=v;function k(X){return typeof X=="string"&&(X=v(X)),(0,r.bytes)(X),X}e.toBytes=k;function w(...X){let B=0;for(let K=0;K<X.length;K++){const Z=X[K];(0,r.bytes)(Z),B+=Z.length}const P=new Uint8Array(B);for(let K=0,Z=0;K<X.length;K++){const D=X[K];P.set(D,Z),Z+=D.length}return P}e.concatBytes=w;class Y{clone(){return this._cloneInto()}}e.Hash=Y;const U={}.toString;function S(X,B){if(B!==void 0&&U.call(B)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(X,B)}e.checkOpts=S;function $(X){const B=K=>X().update(k(K)).digest(),P=X();return B.outputLen=P.outputLen,B.blockLen=P.blockLen,B.create=()=>X(),B}e.wrapConstructor=$;function J(X){const B=(K,Z)=>X(Z).update(k(K)).digest(),P=X({});return B.outputLen=P.outputLen,B.blockLen=P.blockLen,B.create=K=>X(K),B}e.wrapConstructorWithOpts=J;function W(X){const B=(K,Z)=>X(Z).update(k(K)).digest(),P=X({});return B.outputLen=P.outputLen,B.blockLen=P.blockLen,B.create=K=>X(K),B}e.wrapXOFConstructorWithOpts=W;function ne(X=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(X));throw new Error("crypto.getRandomValues must be defined")}e.randomBytes=ne})(hi)),hi}var qu;function sg(){if(qu)return $r;qu=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.HashMD=$r.Maj=$r.Chi=void 0;const e=vl(),t=os();function r(i,u,d,h){if(typeof i.setBigUint64=="function")return i.setBigUint64(u,d,h);const m=BigInt(32),p=BigInt(4294967295),b=Number(d>>m&p),E=Number(d&p),A=h?4:0,g=h?0:4;i.setUint32(u+A,b,h),i.setUint32(u+g,E,h)}const n=(i,u,d)=>i&u^~i&d;$r.Chi=n;const o=(i,u,d)=>i&u^i&d^u&d;$r.Maj=o;class s extends t.Hash{constructor(u,d,h,m){super(),this.blockLen=u,this.outputLen=d,this.padOffset=h,this.isLE=m,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(u),this.view=(0,t.createView)(this.buffer)}update(u){(0,e.exists)(this);const{view:d,buffer:h,blockLen:m}=this;u=(0,t.toBytes)(u);const p=u.length;for(let b=0;b<p;){const E=Math.min(m-this.pos,p-b);if(E===m){const A=(0,t.createView)(u);for(;m<=p-b;b+=m)this.process(A,b);continue}h.set(u.subarray(b,b+E),this.pos),this.pos+=E,b+=E,this.pos===m&&(this.process(d,0),this.pos=0)}return this.length+=u.length,this.roundClean(),this}digestInto(u){(0,e.exists)(this),(0,e.output)(u,this),this.finished=!0;const{buffer:d,view:h,blockLen:m,isLE:p}=this;let{pos:b}=this;d[b++]=128,this.buffer.subarray(b).fill(0),this.padOffset>m-b&&(this.process(h,0),b=0);for(let H=b;H<m;H++)d[H]=0;r(h,m-8,BigInt(this.length*8),p),this.process(h,0);const E=(0,t.createView)(u),A=this.outputLen;if(A%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const g=A/4,T=this.get();if(g>T.length)throw new Error("_sha2: outputLen bigger than state");for(let H=0;H<g;H++)E.setUint32(4*H,T[H],p)}digest(){const{buffer:u,outputLen:d}=this;this.digestInto(u);const h=u.slice(0,d);return this.destroy(),h}_cloneInto(u){u||(u=new this.constructor),u.set(...this.get());const{blockLen:d,buffer:h,length:m,finished:p,destroyed:b,pos:E}=this;return u.length=m,u.pos=E,u.finished=p,u.destroyed=b,m%d&&u.buffer.set(h),u}}return $r.HashMD=s,$r}var Uu;function ag(){if(Uu)return yn;Uu=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.sha224=yn.sha256=void 0;const e=sg(),t=os(),r=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),o=new Uint32Array(64);class s extends e.HashMD{constructor(){super(64,32,8,!1),this.A=n[0]|0,this.B=n[1]|0,this.C=n[2]|0,this.D=n[3]|0,this.E=n[4]|0,this.F=n[5]|0,this.G=n[6]|0,this.H=n[7]|0}get(){const{A:d,B:h,C:m,D:p,E:b,F:E,G:A,H:g}=this;return[d,h,m,p,b,E,A,g]}set(d,h,m,p,b,E,A,g){this.A=d|0,this.B=h|0,this.C=m|0,this.D=p|0,this.E=b|0,this.F=E|0,this.G=A|0,this.H=g|0}process(d,h){for(let v=0;v<16;v++,h+=4)o[v]=d.getUint32(h,!1);for(let v=16;v<64;v++){const k=o[v-15],w=o[v-2],Y=(0,t.rotr)(k,7)^(0,t.rotr)(k,18)^k>>>3,U=(0,t.rotr)(w,17)^(0,t.rotr)(w,19)^w>>>10;o[v]=U+o[v-7]+Y+o[v-16]|0}let{A:m,B:p,C:b,D:E,E:A,F:g,G:T,H}=this;for(let v=0;v<64;v++){const k=(0,t.rotr)(A,6)^(0,t.rotr)(A,11)^(0,t.rotr)(A,25),w=H+k+(0,e.Chi)(A,g,T)+r[v]+o[v]|0,U=((0,t.rotr)(m,2)^(0,t.rotr)(m,13)^(0,t.rotr)(m,22))+(0,e.Maj)(m,p,b)|0;H=T,T=g,g=A,A=E+w|0,E=b,b=p,p=m,m=w+U|0}m=m+this.A|0,p=p+this.B|0,b=b+this.C|0,E=E+this.D|0,A=A+this.E|0,g=g+this.F|0,T=T+this.G|0,H=H+this.H|0,this.set(m,p,b,E,A,g,T,H)}roundClean(){o.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class i extends s{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}return yn.sha256=(0,t.wrapConstructor)(()=>new s),yn.sha224=(0,t.wrapConstructor)(()=>new i),yn}var Io={},pi={},Vu;function ig(){return Vu||(Vu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=vl(),r=os();class n extends r.Hash{constructor(i,u){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(i);const d=(0,r.toBytes)(u);if(this.iHash=i.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const h=this.blockLen,m=new Uint8Array(h);m.set(d.length>h?i.create().update(d).digest():d);for(let p=0;p<m.length;p++)m[p]^=54;this.iHash.update(m),this.oHash=i.create();for(let p=0;p<m.length;p++)m[p]^=106;this.oHash.update(m),m.fill(0)}update(i){return(0,t.exists)(this),this.iHash.update(i),this}digestInto(i){(0,t.exists)(this),(0,t.bytes)(i,this.outputLen),this.finished=!0,this.iHash.digestInto(i),this.oHash.update(i),this.oHash.digestInto(i),this.destroy()}digest(){const i=new Uint8Array(this.oHash.outputLen);return this.digestInto(i),i}_cloneInto(i){i||(i=Object.create(Object.getPrototypeOf(this),{}));const{oHash:u,iHash:d,finished:h,destroyed:m,blockLen:p,outputLen:b}=this;return i=i,i.finished=h,i.destroyed=m,i.blockLen=p,i.outputLen=b,i.oHash=u._cloneInto(i.oHash),i.iHash=d._cloneInto(i.iHash),i}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=n;const o=(s,i,u)=>new n(s,i).update(u).digest();e.hmac=o,e.hmac.create=(s,i)=>new n(s,i)})(pi)),pi}var mi={},ko={},st={},rt={},Hu;function mo(){if(Hu)return rt;Hu=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.bitMask=void 0,rt.isBytes=n,rt.abytes=o,rt.bytesToHex=i,rt.numberToHexUnpadded=u,rt.hexToNumber=d,rt.hexToBytes=p,rt.bytesToNumberBE=b,rt.bytesToNumberLE=E,rt.numberToBytesBE=A,rt.numberToBytesLE=g,rt.numberToVarBytesBE=T,rt.ensureBytes=H,rt.concatBytes=v,rt.equalBytes=k,rt.utf8ToBytes=w,rt.bitLen=Y,rt.bitGet=U,rt.bitSet=S,rt.createHmacDrbg=ne,rt.validateObject=B;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=BigInt(0),t=BigInt(1),r=BigInt(2);function n(P){return P instanceof Uint8Array||P!=null&&typeof P=="object"&&P.constructor.name==="Uint8Array"}function o(P){if(!n(P))throw new Error("Uint8Array expected")}const s=Array.from({length:256},(P,K)=>K.toString(16).padStart(2,"0"));function i(P){o(P);let K="";for(let Z=0;Z<P.length;Z++)K+=s[P[Z]];return K}function u(P){const K=P.toString(16);return K.length&1?`0${K}`:K}function d(P){if(typeof P!="string")throw new Error("hex string expected, got "+typeof P);return BigInt(P===""?"0":`0x${P}`)}const h={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function m(P){if(P>=h._0&&P<=h._9)return P-h._0;if(P>=h._A&&P<=h._F)return P-(h._A-10);if(P>=h._a&&P<=h._f)return P-(h._a-10)}function p(P){if(typeof P!="string")throw new Error("hex string expected, got "+typeof P);const K=P.length,Z=K/2;if(K%2)throw new Error("padded hex string expected, got unpadded hex of length "+K);const D=new Uint8Array(Z);for(let q=0,R=0;q<Z;q++,R+=2){const O=m(P.charCodeAt(R)),z=m(P.charCodeAt(R+1));if(O===void 0||z===void 0){const Q=P[R]+P[R+1];throw new Error('hex string expected, got non-hex character "'+Q+'" at index '+R)}D[q]=O*16+z}return D}function b(P){return d(i(P))}function E(P){return o(P),d(i(Uint8Array.from(P).reverse()))}function A(P,K){return p(P.toString(16).padStart(K*2,"0"))}function g(P,K){return A(P,K).reverse()}function T(P){return p(u(P))}function H(P,K,Z){let D;if(typeof K=="string")try{D=p(K)}catch(R){throw new Error(`${P} must be valid hex string, got "${K}". Cause: ${R}`)}else if(n(K))D=Uint8Array.from(K);else throw new Error(`${P} must be hex string or Uint8Array`);const q=D.length;if(typeof Z=="number"&&q!==Z)throw new Error(`${P} expected ${Z} bytes, got ${q}`);return D}function v(...P){let K=0;for(let D=0;D<P.length;D++){const q=P[D];o(q),K+=q.length}const Z=new Uint8Array(K);for(let D=0,q=0;D<P.length;D++){const R=P[D];Z.set(R,q),q+=R.length}return Z}function k(P,K){if(P.length!==K.length)return!1;let Z=0;for(let D=0;D<P.length;D++)Z|=P[D]^K[D];return Z===0}function w(P){if(typeof P!="string")throw new Error(`utf8ToBytes expected string, got ${typeof P}`);return new Uint8Array(new TextEncoder().encode(P))}function Y(P){let K;for(K=0;P>e;P>>=t,K+=1);return K}function U(P,K){return P>>BigInt(K)&t}function S(P,K,Z){return P|(Z?t:e)<<BigInt(K)}const $=P=>(r<<BigInt(P-1))-t;rt.bitMask=$;const J=P=>new Uint8Array(P),W=P=>Uint8Array.from(P);function ne(P,K,Z){if(typeof P!="number"||P<2)throw new Error("hashLen must be a number");if(typeof K!="number"||K<2)throw new Error("qByteLen must be a number");if(typeof Z!="function")throw new Error("hmacFn must be a function");let D=J(P),q=J(P),R=0;const O=()=>{D.fill(1),q.fill(0),R=0},z=(...ie)=>Z(q,D,...ie),Q=(ie=J())=>{q=z(W([0]),ie),D=z(),ie.length!==0&&(q=z(W([1]),ie),D=z())},le=()=>{if(R++>=1e3)throw new Error("drbg: tried 1000 values");let ie=0;const de=[];for(;ie<K;){D=z();const Re=D.slice();de.push(Re),ie+=D.length}return v(...de)};return(ie,de)=>{O(),Q(ie);let Re;for(;!(Re=de(le()));)Q();return O(),Re}}const X={bigint:P=>typeof P=="bigint",function:P=>typeof P=="function",boolean:P=>typeof P=="boolean",string:P=>typeof P=="string",stringOrUint8Array:P=>typeof P=="string"||n(P),isSafeInteger:P=>Number.isSafeInteger(P),array:P=>Array.isArray(P),field:(P,K)=>K.Fp.isValid(P),hash:P=>typeof P=="function"&&Number.isSafeInteger(P.outputLen)};function B(P,K,Z={}){const D=(q,R,O)=>{const z=X[R];if(typeof z!="function")throw new Error(`Invalid validator "${R}", expected function`);const Q=P[q];if(!(O&&Q===void 0)&&!z(Q,P))throw new Error(`Invalid param ${String(q)}=${Q} (${typeof Q}), expected ${R}`)};for(const[q,R]of Object.entries(K))D(q,R,!1);for(const[q,R]of Object.entries(Z))D(q,R,!0);return P}return rt}var zu;function Ra(){if(zu)return st;zu=1,Object.defineProperty(st,"__esModule",{value:!0}),st.isNegativeLE=void 0,st.mod=d,st.pow=h,st.pow2=m,st.invert=p,st.tonelliShanks=b,st.FpSqrt=E,st.validateField=T,st.FpPow=H,st.FpInvertBatch=v,st.FpDiv=k,st.FpIsSquare=w,st.nLength=Y,st.Field=U,st.FpSqrtOdd=S,st.FpSqrtEven=$,st.hashToPrivateScalar=J,st.getFieldBytesLength=W,st.getMinHashLength=ne,st.mapHashToField=X;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=mo(),t=BigInt(0),r=BigInt(1),n=BigInt(2),o=BigInt(3),s=BigInt(4),i=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function d(B,P){const K=B%P;return K>=t?K:P+K}function h(B,P,K){if(K<=t||P<t)throw new Error("Expected power/modulo > 0");if(K===r)return t;let Z=r;for(;P>t;)P&r&&(Z=Z*B%K),B=B*B%K,P>>=r;return Z}function m(B,P,K){let Z=B;for(;P-- >t;)Z*=Z,Z%=K;return Z}function p(B,P){if(B===t||P<=t)throw new Error(`invert: expected positive integers, got n=${B} mod=${P}`);let K=d(B,P),Z=P,D=t,q=r;for(;K!==t;){const O=Z/K,z=Z%K,Q=D-q*O;Z=K,K=z,D=q,q=Q}if(Z!==r)throw new Error("invert: does not exist");return d(D,P)}function b(B){const P=(B-r)/n;let K,Z,D;for(K=B-r,Z=0;K%n===t;K/=n,Z++);for(D=n;D<B&&h(D,P,B)!==B-r;D++);if(Z===1){const R=(B+r)/s;return function(z,Q){const le=z.pow(Q,R);if(!z.eql(z.sqr(le),Q))throw new Error("Cannot find square root");return le}}const q=(K+r)/n;return function(O,z){if(O.pow(z,P)===O.neg(O.ONE))throw new Error("Cannot find square root");let Q=Z,le=O.pow(O.mul(O.ONE,D),K),ce=O.pow(z,q),ie=O.pow(z,K);for(;!O.eql(ie,O.ONE);){if(O.eql(ie,O.ZERO))return O.ZERO;let de=1;for(let we=O.sqr(ie);de<Q&&!O.eql(we,O.ONE);de++)we=O.sqr(we);const Re=O.pow(le,r<<BigInt(Q-de-1));le=O.sqr(Re),ce=O.mul(ce,Re),ie=O.mul(ie,le),Q=de}return ce}}function E(B){if(B%s===o){const P=(B+r)/s;return function(Z,D){const q=Z.pow(D,P);if(!Z.eql(Z.sqr(q),D))throw new Error("Cannot find square root");return q}}if(B%u===i){const P=(B-i)/u;return function(Z,D){const q=Z.mul(D,n),R=Z.pow(q,P),O=Z.mul(D,R),z=Z.mul(Z.mul(O,n),R),Q=Z.mul(O,Z.sub(z,Z.ONE));if(!Z.eql(Z.sqr(Q),D))throw new Error("Cannot find square root");return Q}}return b(B)}const A=(B,P)=>(d(B,P)&r)===r;st.isNegativeLE=A;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function T(B){const P={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},K=g.reduce((Z,D)=>(Z[D]="function",Z),P);return(0,e.validateObject)(B,K)}function H(B,P,K){if(K<t)throw new Error("Expected power > 0");if(K===t)return B.ONE;if(K===r)return P;let Z=B.ONE,D=P;for(;K>t;)K&r&&(Z=B.mul(Z,D)),D=B.sqr(D),K>>=r;return Z}function v(B,P){const K=new Array(P.length),Z=P.reduce((q,R,O)=>B.is0(R)?q:(K[O]=q,B.mul(q,R)),B.ONE),D=B.inv(Z);return P.reduceRight((q,R,O)=>B.is0(R)?q:(K[O]=B.mul(q,K[O]),B.mul(q,R)),D),K}function k(B,P,K){return B.mul(P,typeof K=="bigint"?p(K,B.ORDER):B.inv(K))}function w(B){const P=(B.ORDER-r)/n;return K=>{const Z=B.pow(K,P);return B.eql(Z,B.ZERO)||B.eql(Z,B.ONE)}}function Y(B,P){const K=P!==void 0?P:B.toString(2).length,Z=Math.ceil(K/8);return{nBitLength:K,nByteLength:Z}}function U(B,P,K=!1,Z={}){if(B<=t)throw new Error(`Expected Field ORDER > 0, got ${B}`);const{nBitLength:D,nByteLength:q}=Y(B,P);if(q>2048)throw new Error("Field lengths over 2048 bytes are not supported");const R=E(B),O=Object.freeze({ORDER:B,BITS:D,BYTES:q,MASK:(0,e.bitMask)(D),ZERO:t,ONE:r,create:z=>d(z,B),isValid:z=>{if(typeof z!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof z}`);return t<=z&&z<B},is0:z=>z===t,isOdd:z=>(z&r)===r,neg:z=>d(-z,B),eql:(z,Q)=>z===Q,sqr:z=>d(z*z,B),add:(z,Q)=>d(z+Q,B),sub:(z,Q)=>d(z-Q,B),mul:(z,Q)=>d(z*Q,B),pow:(z,Q)=>H(O,z,Q),div:(z,Q)=>d(z*p(Q,B),B),sqrN:z=>z*z,addN:(z,Q)=>z+Q,subN:(z,Q)=>z-Q,mulN:(z,Q)=>z*Q,inv:z=>p(z,B),sqrt:Z.sqrt||(z=>R(O,z)),invertBatch:z=>v(O,z),cmov:(z,Q,le)=>le?Q:z,toBytes:z=>K?(0,e.numberToBytesLE)(z,q):(0,e.numberToBytesBE)(z,q),fromBytes:z=>{if(z.length!==q)throw new Error(`Fp.fromBytes: expected ${q}, got ${z.length}`);return K?(0,e.bytesToNumberLE)(z):(0,e.bytesToNumberBE)(z)}});return Object.freeze(O)}function S(B,P){if(!B.isOdd)throw new Error("Field doesn't have isOdd");const K=B.sqrt(P);return B.isOdd(K)?K:B.neg(K)}function $(B,P){if(!B.isOdd)throw new Error("Field doesn't have isOdd");const K=B.sqrt(P);return B.isOdd(K)?B.neg(K):K}function J(B,P,K=!1){B=(0,e.ensureBytes)("privateHash",B);const Z=B.length,D=Y(P).nByteLength+8;if(D<24||Z<D||Z>1024)throw new Error(`hashToPrivateScalar: expected ${D}-1024 bytes of input, got ${Z}`);const q=K?(0,e.bytesToNumberLE)(B):(0,e.bytesToNumberBE)(B);return d(q,P-r)+r}function W(B){if(typeof B!="bigint")throw new Error("field order must be bigint");const P=B.toString(2).length;return Math.ceil(P/8)}function ne(B){const P=W(B);return P+Math.ceil(P/2)}function X(B,P,K=!1){const Z=B.length,D=W(P),q=ne(P);if(Z<16||Z<q||Z>1024)throw new Error(`expected ${q}-1024 bytes of input, got ${Z}`);const R=K?(0,e.bytesToNumberBE)(B):(0,e.bytesToNumberLE)(B),O=d(R,P-r)+r;return K?(0,e.numberToBytesLE)(O,D):(0,e.numberToBytesBE)(O,D)}return st}var Gu;function cg(){if(Gu)return ko;Gu=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.wNAF=o,ko.validateBasic=s;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Ra(),t=mo(),r=BigInt(0),n=BigInt(1);function o(i,u){const d=(m,p)=>{const b=p.negate();return m?b:p},h=m=>{const p=Math.ceil(u/m)+1,b=2**(m-1);return{windows:p,windowSize:b}};return{constTimeNegate:d,unsafeLadder(m,p){let b=i.ZERO,E=m;for(;p>r;)p&n&&(b=b.add(E)),E=E.double(),p>>=n;return b},precomputeWindow(m,p){const{windows:b,windowSize:E}=h(p),A=[];let g=m,T=g;for(let H=0;H<b;H++){T=g,A.push(T);for(let v=1;v<E;v++)T=T.add(g),A.push(T);g=T.double()}return A},wNAF(m,p,b){const{windows:E,windowSize:A}=h(m);let g=i.ZERO,T=i.BASE;const H=BigInt(2**m-1),v=2**m,k=BigInt(m);for(let w=0;w<E;w++){const Y=w*A;let U=Number(b&H);b>>=k,U>A&&(U-=v,b+=n);const S=Y,$=Y+Math.abs(U)-1,J=w%2!==0,W=U<0;U===0?T=T.add(d(J,p[S])):g=g.add(d(W,p[$]))}return{p:g,f:T}},wNAFCached(m,p,b,E){const A=m._WINDOW_SIZE||1;let g=p.get(m);return g||(g=this.precomputeWindow(m,A),A!==1&&p.set(m,E(g))),this.wNAF(A,g,b)}}}function s(i){return(0,e.validateField)(i.Fp),(0,t.validateObject)(i,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,e.nLength)(i.n,i.nBitLength),...i,p:i.Fp.ORDER})}return ko}var Wu;function df(){return Wu||(Wu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DER=void 0,e.weierstrassPoints=E,e.weierstrass=g,e.SWUFpSqrtRatio=T,e.mapToCurveSimpleSWU=H;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=cg(),r=Ra(),n=mo(),o=mo();function s(v){const k=(0,t.validateBasic)(v);n.validateObject(k,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:w,Fp:Y,a:U}=k;if(w){if(!Y.eql(U,Y.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof w!="object"||typeof w.beta!="bigint"||typeof w.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...k})}const{bytesToNumberBE:i,hexToBytes:u}=n;e.DER={Err:class extends Error{constructor(k=""){super(k)}},_parseInt(v){const{Err:k}=e.DER;if(v.length<2||v[0]!==2)throw new k("Invalid signature integer tag");const w=v[1],Y=v.subarray(2,w+2);if(!w||Y.length!==w)throw new k("Invalid signature integer: wrong length");if(Y[0]&128)throw new k("Invalid signature integer: negative");if(Y[0]===0&&!(Y[1]&128))throw new k("Invalid signature integer: unnecessary leading zero");return{d:i(Y),l:v.subarray(w+2)}},toSig(v){const{Err:k}=e.DER,w=typeof v=="string"?u(v):v;n.abytes(w);let Y=w.length;if(Y<2||w[0]!=48)throw new k("Invalid signature tag");if(w[1]!==Y-2)throw new k("Invalid signature: incorrect length");const{d:U,l:S}=e.DER._parseInt(w.subarray(2)),{d:$,l:J}=e.DER._parseInt(S);if(J.length)throw new k("Invalid signature: left bytes after parsing");return{r:U,s:$}},hexFromSig(v){const k=ne=>Number.parseInt(ne[0],16)&8?"00"+ne:ne,w=ne=>{const X=ne.toString(16);return X.length&1?`0${X}`:X},Y=k(w(v.s)),U=k(w(v.r)),S=Y.length/2,$=U.length/2,J=w(S),W=w($);return`30${w($+S+4)}02${W}${U}02${J}${Y}`}};const d=BigInt(0),h=BigInt(1),m=BigInt(2),p=BigInt(3),b=BigInt(4);function E(v){const k=s(v),{Fp:w}=k,Y=k.toBytes||((Z,D,q)=>{const R=D.toAffine();return n.concatBytes(Uint8Array.from([4]),w.toBytes(R.x),w.toBytes(R.y))}),U=k.fromBytes||(Z=>{const D=Z.subarray(1),q=w.fromBytes(D.subarray(0,w.BYTES)),R=w.fromBytes(D.subarray(w.BYTES,2*w.BYTES));return{x:q,y:R}});function S(Z){const{a:D,b:q}=k,R=w.sqr(Z),O=w.mul(R,Z);return w.add(w.add(O,w.mul(Z,D)),q)}if(!w.eql(w.sqr(k.Gy),S(k.Gx)))throw new Error("bad generator point: equation left != right");function $(Z){return typeof Z=="bigint"&&d<Z&&Z<k.n}function J(Z){if(!$(Z))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function W(Z){const{allowedPrivateKeyLengths:D,nByteLength:q,wrapPrivateKey:R,n:O}=k;if(D&&typeof Z!="bigint"){if(n.isBytes(Z)&&(Z=n.bytesToHex(Z)),typeof Z!="string"||!D.includes(Z.length))throw new Error("Invalid key");Z=Z.padStart(q*2,"0")}let z;try{z=typeof Z=="bigint"?Z:n.bytesToNumberBE((0,o.ensureBytes)("private key",Z,q))}catch{throw new Error(`private key must be ${q} bytes, hex or bigint, not ${typeof Z}`)}return R&&(z=r.mod(z,O)),J(z),z}const ne=new Map;function X(Z){if(!(Z instanceof B))throw new Error("ProjectivePoint expected")}class B{constructor(D,q,R){if(this.px=D,this.py=q,this.pz=R,D==null||!w.isValid(D))throw new Error("x required");if(q==null||!w.isValid(q))throw new Error("y required");if(R==null||!w.isValid(R))throw new Error("z required")}static fromAffine(D){const{x:q,y:R}=D||{};if(!D||!w.isValid(q)||!w.isValid(R))throw new Error("invalid affine point");if(D instanceof B)throw new Error("projective point not allowed");const O=z=>w.eql(z,w.ZERO);return O(q)&&O(R)?B.ZERO:new B(q,R,w.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(D){const q=w.invertBatch(D.map(R=>R.pz));return D.map((R,O)=>R.toAffine(q[O])).map(B.fromAffine)}static fromHex(D){const q=B.fromAffine(U((0,o.ensureBytes)("pointHex",D)));return q.assertValidity(),q}static fromPrivateKey(D){return B.BASE.multiply(W(D))}_setWindowSize(D){this._WINDOW_SIZE=D,ne.delete(this)}assertValidity(){if(this.is0()){if(k.allowInfinityPoint&&!w.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:D,y:q}=this.toAffine();if(!w.isValid(D)||!w.isValid(q))throw new Error("bad point: x or y not FE");const R=w.sqr(q),O=S(D);if(!w.eql(R,O))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:D}=this.toAffine();if(w.isOdd)return!w.isOdd(D);throw new Error("Field doesn't support isOdd")}equals(D){X(D);const{px:q,py:R,pz:O}=this,{px:z,py:Q,pz:le}=D,ce=w.eql(w.mul(q,le),w.mul(z,O)),ie=w.eql(w.mul(R,le),w.mul(Q,O));return ce&&ie}negate(){return new B(this.px,w.neg(this.py),this.pz)}double(){const{a:D,b:q}=k,R=w.mul(q,p),{px:O,py:z,pz:Q}=this;let le=w.ZERO,ce=w.ZERO,ie=w.ZERO,de=w.mul(O,O),Re=w.mul(z,z),we=w.mul(Q,Q),xe=w.mul(O,z);return xe=w.add(xe,xe),ie=w.mul(O,Q),ie=w.add(ie,ie),le=w.mul(D,ie),ce=w.mul(R,we),ce=w.add(le,ce),le=w.sub(Re,ce),ce=w.add(Re,ce),ce=w.mul(le,ce),le=w.mul(xe,le),ie=w.mul(R,ie),we=w.mul(D,we),xe=w.sub(de,we),xe=w.mul(D,xe),xe=w.add(xe,ie),ie=w.add(de,de),de=w.add(ie,de),de=w.add(de,we),de=w.mul(de,xe),ce=w.add(ce,de),we=w.mul(z,Q),we=w.add(we,we),de=w.mul(we,xe),le=w.sub(le,de),ie=w.mul(we,Re),ie=w.add(ie,ie),ie=w.add(ie,ie),new B(le,ce,ie)}add(D){X(D);const{px:q,py:R,pz:O}=this,{px:z,py:Q,pz:le}=D;let ce=w.ZERO,ie=w.ZERO,de=w.ZERO;const Re=k.a,we=w.mul(k.b,p);let xe=w.mul(q,z),ye=w.mul(R,Q),He=w.mul(O,le),qe=w.add(q,R),he=w.add(z,Q);qe=w.mul(qe,he),he=w.add(xe,ye),qe=w.sub(qe,he),he=w.add(q,O);let fe=w.add(z,le);return he=w.mul(he,fe),fe=w.add(xe,He),he=w.sub(he,fe),fe=w.add(R,O),ce=w.add(Q,le),fe=w.mul(fe,ce),ce=w.add(ye,He),fe=w.sub(fe,ce),de=w.mul(Re,he),ce=w.mul(we,He),de=w.add(ce,de),ce=w.sub(ye,de),de=w.add(ye,de),ie=w.mul(ce,de),ye=w.add(xe,xe),ye=w.add(ye,xe),He=w.mul(Re,He),he=w.mul(we,he),ye=w.add(ye,He),He=w.sub(xe,He),He=w.mul(Re,He),he=w.add(he,He),xe=w.mul(ye,he),ie=w.add(ie,xe),xe=w.mul(fe,he),ce=w.mul(qe,ce),ce=w.sub(ce,xe),xe=w.mul(qe,ye),de=w.mul(fe,de),de=w.add(de,xe),new B(ce,ie,de)}subtract(D){return this.add(D.negate())}is0(){return this.equals(B.ZERO)}wNAF(D){return K.wNAFCached(this,ne,D,q=>{const R=w.invertBatch(q.map(O=>O.pz));return q.map((O,z)=>O.toAffine(R[z])).map(B.fromAffine)})}multiplyUnsafe(D){const q=B.ZERO;if(D===d)return q;if(J(D),D===h)return this;const{endo:R}=k;if(!R)return K.unsafeLadder(this,D);let{k1neg:O,k1:z,k2neg:Q,k2:le}=R.splitScalar(D),ce=q,ie=q,de=this;for(;z>d||le>d;)z&h&&(ce=ce.add(de)),le&h&&(ie=ie.add(de)),de=de.double(),z>>=h,le>>=h;return O&&(ce=ce.negate()),Q&&(ie=ie.negate()),ie=new B(w.mul(ie.px,R.beta),ie.py,ie.pz),ce.add(ie)}multiply(D){J(D);let q=D,R,O;const{endo:z}=k;if(z){const{k1neg:Q,k1:le,k2neg:ce,k2:ie}=z.splitScalar(q);let{p:de,f:Re}=this.wNAF(le),{p:we,f:xe}=this.wNAF(ie);de=K.constTimeNegate(Q,de),we=K.constTimeNegate(ce,we),we=new B(w.mul(we.px,z.beta),we.py,we.pz),R=de.add(we),O=Re.add(xe)}else{const{p:Q,f:le}=this.wNAF(q);R=Q,O=le}return B.normalizeZ([R,O])[0]}multiplyAndAddUnsafe(D,q,R){const O=B.BASE,z=(le,ce)=>ce===d||ce===h||!le.equals(O)?le.multiplyUnsafe(ce):le.multiply(ce),Q=z(this,q).add(z(D,R));return Q.is0()?void 0:Q}toAffine(D){const{px:q,py:R,pz:O}=this,z=this.is0();D==null&&(D=z?w.ONE:w.inv(O));const Q=w.mul(q,D),le=w.mul(R,D),ce=w.mul(O,D);if(z)return{x:w.ZERO,y:w.ZERO};if(!w.eql(ce,w.ONE))throw new Error("invZ was invalid");return{x:Q,y:le}}isTorsionFree(){const{h:D,isTorsionFree:q}=k;if(D===h)return!0;if(q)return q(B,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:D,clearCofactor:q}=k;return D===h?this:q?q(B,this):this.multiplyUnsafe(k.h)}toRawBytes(D=!0){return this.assertValidity(),Y(B,this,D)}toHex(D=!0){return n.bytesToHex(this.toRawBytes(D))}}B.BASE=new B(k.Gx,k.Gy,w.ONE),B.ZERO=new B(w.ZERO,w.ONE,w.ZERO);const P=k.nBitLength,K=(0,t.wNAF)(B,k.endo?Math.ceil(P/2):P);return{CURVE:k,ProjectivePoint:B,normPrivateKeyToScalar:W,weierstrassEquation:S,isWithinCurveOrder:$}}function A(v){const k=(0,t.validateBasic)(v);return n.validateObject(k,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...k})}function g(v){const k=A(v),{Fp:w,n:Y}=k,U=w.BYTES+1,S=2*w.BYTES+1;function $(he){return d<he&&he<w.ORDER}function J(he){return r.mod(he,Y)}function W(he){return r.invert(he,Y)}const{ProjectivePoint:ne,normPrivateKeyToScalar:X,weierstrassEquation:B,isWithinCurveOrder:P}=E({...k,toBytes(he,fe,ve){const Ae=fe.toAffine(),Le=w.toBytes(Ae.x),Be=n.concatBytes;return ve?Be(Uint8Array.from([fe.hasEvenY()?2:3]),Le):Be(Uint8Array.from([4]),Le,w.toBytes(Ae.y))},fromBytes(he){const fe=he.length,ve=he[0],Ae=he.subarray(1);if(fe===U&&(ve===2||ve===3)){const Le=n.bytesToNumberBE(Ae);if(!$(Le))throw new Error("Point is not on curve");const Be=B(Le);let ft;try{ft=w.sqrt(Be)}catch(qt){const or=qt instanceof Error?": "+qt.message:"";throw new Error("Point is not on curve"+or)}const nt=(ft&h)===h;return(ve&1)===1!==nt&&(ft=w.neg(ft)),{x:Le,y:ft}}else if(fe===S&&ve===4){const Le=w.fromBytes(Ae.subarray(0,w.BYTES)),Be=w.fromBytes(Ae.subarray(w.BYTES,2*w.BYTES));return{x:Le,y:Be}}else throw new Error(`Point of length ${fe} was invalid. Expected ${U} compressed bytes or ${S} uncompressed bytes`)}}),K=he=>n.bytesToHex(n.numberToBytesBE(he,k.nByteLength));function Z(he){const fe=Y>>h;return he>fe}function D(he){return Z(he)?J(-he):he}const q=(he,fe,ve)=>n.bytesToNumberBE(he.slice(fe,ve));class R{constructor(fe,ve,Ae){this.r=fe,this.s=ve,this.recovery=Ae,this.assertValidity()}static fromCompact(fe){const ve=k.nByteLength;return fe=(0,o.ensureBytes)("compactSignature",fe,ve*2),new R(q(fe,0,ve),q(fe,ve,2*ve))}static fromDER(fe){const{r:ve,s:Ae}=e.DER.toSig((0,o.ensureBytes)("DER",fe));return new R(ve,Ae)}assertValidity(){if(!P(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!P(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(fe){return new R(this.r,this.s,fe)}recoverPublicKey(fe){const{r:ve,s:Ae,recovery:Le}=this,Be=ie((0,o.ensureBytes)("msgHash",fe));if(Le==null||![0,1,2,3].includes(Le))throw new Error("recovery id invalid");const ft=Le===2||Le===3?ve+k.n:ve;if(ft>=w.ORDER)throw new Error("recovery id 2 or 3 invalid");const nt=(Le&1)===0?"02":"03",Dt=ne.fromHex(nt+K(ft)),qt=W(ft),or=J(-Be*qt),Or=J(Ae*qt),Yt=ne.BASE.multiplyAndAddUnsafe(Dt,or,Or);if(!Yt)throw new Error("point at infinify");return Yt.assertValidity(),Yt}hasHighS(){return Z(this.s)}normalizeS(){return this.hasHighS()?new R(this.r,J(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return K(this.r)+K(this.s)}}const O={isValidPrivateKey(he){try{return X(he),!0}catch{return!1}},normPrivateKeyToScalar:X,randomPrivateKey:()=>{const he=r.getMinHashLength(k.n);return r.mapHashToField(k.randomBytes(he),k.n)},precompute(he=8,fe=ne.BASE){return fe._setWindowSize(he),fe.multiply(BigInt(3)),fe}};function z(he,fe=!0){return ne.fromPrivateKey(he).toRawBytes(fe)}function Q(he){const fe=n.isBytes(he),ve=typeof he=="string",Ae=(fe||ve)&&he.length;return fe?Ae===U||Ae===S:ve?Ae===2*U||Ae===2*S:he instanceof ne}function le(he,fe,ve=!0){if(Q(he))throw new Error("first arg must be private key");if(!Q(fe))throw new Error("second arg must be public key");return ne.fromHex(fe).multiply(X(he)).toRawBytes(ve)}const ce=k.bits2int||function(he){const fe=n.bytesToNumberBE(he),ve=he.length*8-k.nBitLength;return ve>0?fe>>BigInt(ve):fe},ie=k.bits2int_modN||function(he){return J(ce(he))},de=n.bitMask(k.nBitLength);function Re(he){if(typeof he!="bigint")throw new Error("bigint expected");if(!(d<=he&&he<de))throw new Error(`bigint expected < 2^${k.nBitLength}`);return n.numberToBytesBE(he,k.nByteLength)}function we(he,fe,ve=xe){if(["recovered","canonical"].some(gr=>gr in ve))throw new Error("sign() legacy options not supported");const{hash:Ae,randomBytes:Le}=k;let{lowS:Be,prehash:ft,extraEntropy:nt}=ve;Be==null&&(Be=!0),he=(0,o.ensureBytes)("msgHash",he),ft&&(he=(0,o.ensureBytes)("prehashed msgHash",Ae(he)));const Dt=ie(he),qt=X(fe),or=[Re(qt),Re(Dt)];if(nt!=null&&nt!==!1){const gr=nt===!0?Le(w.BYTES):nt;or.push((0,o.ensureBytes)("extraEntropy",gr))}const Or=n.concatBytes(...or),Yt=Dt;function Mn(gr){const yt=ce(gr);if(!P(yt))return;const Kr=W(yt),Ut=ne.BASE.multiply(yt).toAffine(),Rt=J(Ut.x);if(Rt===d)return;const Vt=J(Kr*J(Yt+Rt*qt));if(Vt===d)return;let _o=(Ut.x===Rt?0:2)|Number(Ut.y&h),sr=Vt;return Be&&Z(Vt)&&(sr=D(Vt),_o^=1),new R(Rt,sr,_o)}return{seed:Or,k2sig:Mn}}const xe={lowS:k.lowS,prehash:!1},ye={lowS:k.lowS,prehash:!1};function He(he,fe,ve=xe){const{seed:Ae,k2sig:Le}=we(he,fe,ve),Be=k;return n.createHmacDrbg(Be.hash.outputLen,Be.nByteLength,Be.hmac)(Ae,Le)}ne.BASE._setWindowSize(8);function qe(he,fe,ve,Ae=ye){var Ut;const Le=he;if(fe=(0,o.ensureBytes)("msgHash",fe),ve=(0,o.ensureBytes)("publicKey",ve),"strict"in Ae)throw new Error("options.strict was renamed to lowS");const{lowS:Be,prehash:ft}=Ae;let nt,Dt;try{if(typeof Le=="string"||n.isBytes(Le))try{nt=R.fromDER(Le)}catch(Rt){if(!(Rt instanceof e.DER.Err))throw Rt;nt=R.fromCompact(Le)}else if(typeof Le=="object"&&typeof Le.r=="bigint"&&typeof Le.s=="bigint"){const{r:Rt,s:Vt}=Le;nt=new R(Rt,Vt)}else throw new Error("PARSE");Dt=ne.fromHex(ve)}catch(Rt){if(Rt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Be&&nt.hasHighS())return!1;ft&&(fe=k.hash(fe));const{r:qt,s:or}=nt,Or=ie(fe),Yt=W(or),Mn=J(Or*Yt),gr=J(qt*Yt),yt=(Ut=ne.BASE.multiplyAndAddUnsafe(Dt,Mn,gr))==null?void 0:Ut.toAffine();return yt?J(yt.x)===qt:!1}return{CURVE:k,getPublicKey:z,getSharedSecret:le,sign:He,verify:qe,ProjectivePoint:ne,Signature:R,utils:O}}function T(v,k){const w=v.ORDER;let Y=d;for(let Z=w-h;Z%m===d;Z/=m)Y+=h;const U=Y,S=m<<U-h-h,$=S*m,J=(w-h)/$,W=(J-h)/m,ne=$-h,X=S,B=v.pow(k,J),P=v.pow(k,(J+h)/m);let K=(Z,D)=>{let q=B,R=v.pow(D,ne),O=v.sqr(R);O=v.mul(O,D);let z=v.mul(Z,O);z=v.pow(z,W),z=v.mul(z,R),R=v.mul(z,D),O=v.mul(z,Z);let Q=v.mul(O,R);z=v.pow(Q,X);let le=v.eql(z,v.ONE);R=v.mul(O,P),z=v.mul(Q,q),O=v.cmov(R,O,le),Q=v.cmov(z,Q,le);for(let ce=U;ce>h;ce--){let ie=ce-m;ie=m<<ie-h;let de=v.pow(Q,ie);const Re=v.eql(de,v.ONE);R=v.mul(O,q),q=v.mul(q,q),de=v.mul(Q,q),O=v.cmov(R,O,Re),Q=v.cmov(de,Q,Re)}return{isValid:le,value:O}};if(v.ORDER%b===p){const Z=(v.ORDER-p)/b,D=v.sqrt(v.neg(k));K=(q,R)=>{let O=v.sqr(R);const z=v.mul(q,R);O=v.mul(O,z);let Q=v.pow(O,Z);Q=v.mul(Q,z);const le=v.mul(Q,D),ce=v.mul(v.sqr(Q),R),ie=v.eql(ce,q);let de=v.cmov(le,Q,ie);return{isValid:ie,value:de}}}return K}function H(v,k){if(r.validateField(v),!v.isValid(k.A)||!v.isValid(k.B)||!v.isValid(k.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const w=T(v,k.Z);if(!v.isOdd)throw new Error("Fp.isOdd is not implemented!");return Y=>{let U,S,$,J,W,ne,X,B;U=v.sqr(Y),U=v.mul(U,k.Z),S=v.sqr(U),S=v.add(S,U),$=v.add(S,v.ONE),$=v.mul($,k.B),J=v.cmov(k.Z,v.neg(S),!v.eql(S,v.ZERO)),J=v.mul(J,k.A),S=v.sqr($),ne=v.sqr(J),W=v.mul(ne,k.A),S=v.add(S,W),S=v.mul(S,$),ne=v.mul(ne,J),W=v.mul(ne,k.B),S=v.add(S,W),X=v.mul(U,$);const{isValid:P,value:K}=w(S,ne);B=v.mul(U,Y),B=v.mul(B,K),X=v.cmov(X,$,P),B=v.cmov(B,K,P);const Z=v.isOdd(Y)===v.isOdd(B);return B=v.cmov(v.neg(B),B,Z),X=v.div(X,J),{x:X,y:B}}}})(mi)),mi}var Zu;function lg(){if(Zu)return Io;Zu=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.getHash=n,Io.createCurve=o;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=ig(),t=os(),r=df();function n(s){return{hash:s,hmac:(i,...u)=>(0,e.hmac)(s,i,(0,t.concatBytes)(...u)),randomBytes:t.randomBytes}}function o(s,i){const u=d=>(0,r.weierstrass)({...s,...n(d)});return Object.freeze({...u(i),create:u})}return Io}var en={},Ku;function ug(){if(Ku)return en;Ku=1,Object.defineProperty(en,"__esModule",{value:!0}),en.expand_message_xmd=i,en.expand_message_xof=u,en.hash_to_field=d,en.isogenyMap=h,en.createHasher=m;const e=Ra(),t=mo(),r=t.bytesToNumberBE;function n(p,b){if(p<0||p>=1<<8*b)throw new Error(`bad I2OSP call: value=${p} length=${b}`);const E=Array.from({length:b}).fill(0);for(let A=b-1;A>=0;A--)E[A]=p&255,p>>>=8;return new Uint8Array(E)}function o(p,b){const E=new Uint8Array(p.length);for(let A=0;A<p.length;A++)E[A]=p[A]^b[A];return E}function s(p){if(!Number.isSafeInteger(p))throw new Error("number expected")}function i(p,b,E,A){(0,t.abytes)(p),(0,t.abytes)(b),s(E),b.length>255&&(b=A((0,t.concatBytes)((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-"),b)));const{outputLen:g,blockLen:T}=A,H=Math.ceil(E/g);if(H>255)throw new Error("Invalid xmd length");const v=(0,t.concatBytes)(b,n(b.length,1)),k=n(0,T),w=n(E,2),Y=new Array(H),U=A((0,t.concatBytes)(k,p,w,n(0,1),v));Y[0]=A((0,t.concatBytes)(U,n(1,1),v));for(let $=1;$<=H;$++){const J=[o(U,Y[$-1]),n($+1,1),v];Y[$]=A((0,t.concatBytes)(...J))}return(0,t.concatBytes)(...Y).slice(0,E)}function u(p,b,E,A,g){if((0,t.abytes)(p),(0,t.abytes)(b),s(E),b.length>255){const T=Math.ceil(2*A/8);b=g.create({dkLen:T}).update((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(b).digest()}if(E>65535||b.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return g.create({dkLen:E}).update(p).update(n(E,2)).update(b).update(n(b.length,1)).digest()}function d(p,b,E){(0,t.validateObject)(E,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:A,k:g,m:T,hash:H,expand:v,DST:k}=E;(0,t.abytes)(p),s(b);const w=typeof k=="string"?(0,t.utf8ToBytes)(k):k,Y=A.toString(2).length,U=Math.ceil((Y+g)/8),S=b*T*U;let $;if(v==="xmd")$=i(p,w,S,H);else if(v==="xof")$=u(p,w,S,g,H);else if(v==="_internal_pass")$=p;else throw new Error('expand must be "xmd" or "xof"');const J=new Array(b);for(let W=0;W<b;W++){const ne=new Array(T);for(let X=0;X<T;X++){const B=U*(X+W*T),P=$.subarray(B,B+U);ne[X]=(0,e.mod)(r(P),A)}J[W]=ne}return J}function h(p,b){const E=b.map(A=>Array.from(A).reverse());return(A,g)=>{const[T,H,v,k]=E.map(w=>w.reduce((Y,U)=>p.add(p.mul(Y,A),U)));return A=p.div(T,H),g=p.mul(g,p.div(v,k)),{x:A,y:g}}}function m(p,b,E){if(typeof b!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(A,g){const T=d(A,2,{...E,DST:E.DST,...g}),H=p.fromAffine(b(T[0])),v=p.fromAffine(b(T[1])),k=H.add(v).clearCofactor();return k.assertValidity(),k},encodeToCurve(A,g){const T=d(A,1,{...E,DST:E.encodeDST,...g}),H=p.fromAffine(b(T[0])).clearCofactor();return H.assertValidity(),H},mapToCurve(A){if(!Array.isArray(A))throw new Error("mapToCurve: expected array of bigints");for(const T of A)if(typeof T!="bigint")throw new Error(`mapToCurve: expected array of bigints, got ${T} in array`);const g=p.fromAffine(b(A)).clearCofactor();return g.assertValidity(),g}}}return en}var Yu;function dg(){return Yu||(Yu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=ag(),r=os(),n=lg(),o=ug(),s=Ra(),i=mo(),u=df(),d=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),m=BigInt(1),p=BigInt(2),b=(R,O)=>(R+O/p)/O;function E(R){const O=d,z=BigInt(3),Q=BigInt(6),le=BigInt(11),ce=BigInt(22),ie=BigInt(23),de=BigInt(44),Re=BigInt(88),we=R*R*R%O,xe=we*we*R%O,ye=(0,s.pow2)(xe,z,O)*xe%O,He=(0,s.pow2)(ye,z,O)*xe%O,qe=(0,s.pow2)(He,p,O)*we%O,he=(0,s.pow2)(qe,le,O)*qe%O,fe=(0,s.pow2)(he,ce,O)*he%O,ve=(0,s.pow2)(fe,de,O)*fe%O,Ae=(0,s.pow2)(ve,Re,O)*ve%O,Le=(0,s.pow2)(Ae,de,O)*fe%O,Be=(0,s.pow2)(Le,z,O)*xe%O,ft=(0,s.pow2)(Be,ie,O)*he%O,nt=(0,s.pow2)(ft,Q,O)*we%O,Dt=(0,s.pow2)(nt,p,O);if(!A.eql(A.sqr(Dt),R))throw new Error("Cannot find square root");return Dt}const A=(0,s.Field)(d,void 0,void 0,{sqrt:E});e.secp256k1=(0,n.createCurve)({a:BigInt(0),b:BigInt(7),Fp:A,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:R=>{const O=h,z=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),Q=-m*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),le=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ce=z,ie=BigInt("0x100000000000000000000000000000000"),de=b(ce*R,O),Re=b(-Q*R,O);let we=(0,s.mod)(R-de*z-Re*le,O),xe=(0,s.mod)(-de*Q-Re*ce,O);const ye=we>ie,He=xe>ie;if(ye&&(we=O-we),He&&(xe=O-xe),we>ie||xe>ie)throw new Error("splitScalar: Endomorphism failed, k="+R);return{k1neg:ye,k1:we,k2neg:He,k2:xe}}}},t.sha256);const g=BigInt(0),T=R=>typeof R=="bigint"&&g<R&&R<d,H=R=>typeof R=="bigint"&&g<R&&R<h,v={};function k(R,...O){let z=v[R];if(z===void 0){const Q=(0,t.sha256)(Uint8Array.from(R,le=>le.charCodeAt(0)));z=(0,i.concatBytes)(Q,Q),v[R]=z}return(0,t.sha256)((0,i.concatBytes)(z,...O))}const w=R=>R.toRawBytes(!0).slice(1),Y=R=>(0,i.numberToBytesBE)(R,32),U=R=>(0,s.mod)(R,d),S=R=>(0,s.mod)(R,h),$=e.secp256k1.ProjectivePoint,J=(R,O,z)=>$.BASE.multiplyAndAddUnsafe(R,O,z);function W(R){let O=e.secp256k1.utils.normPrivateKeyToScalar(R),z=$.fromPrivateKey(O);return{scalar:z.hasEvenY()?O:S(-O),bytes:w(z)}}function ne(R){if(!T(R))throw new Error("bad x: need 0 < x < p");const O=U(R*R),z=U(O*R+BigInt(7));let Q=E(z);Q%p!==g&&(Q=U(-Q));const le=new $(R,Q,m);return le.assertValidity(),le}function X(...R){return S((0,i.bytesToNumberBE)(k("BIP0340/challenge",...R)))}function B(R){return W(R).bytes}function P(R,O,z=(0,r.randomBytes)(32)){const Q=(0,i.ensureBytes)("message",R),{bytes:le,scalar:ce}=W(O),ie=(0,i.ensureBytes)("auxRand",z,32),de=Y(ce^(0,i.bytesToNumberBE)(k("BIP0340/aux",ie))),Re=k("BIP0340/nonce",de,le,Q),we=S((0,i.bytesToNumberBE)(Re));if(we===g)throw new Error("sign failed: k is zero");const{bytes:xe,scalar:ye}=W(we),He=X(xe,le,Q),qe=new Uint8Array(64);if(qe.set(xe,0),qe.set(Y(S(ye+He*ce)),32),!K(qe,Q,le))throw new Error("sign: Invalid signature produced");return qe}function K(R,O,z){const Q=(0,i.ensureBytes)("signature",R,64),le=(0,i.ensureBytes)("message",O),ce=(0,i.ensureBytes)("publicKey",z,32);try{const ie=ne((0,i.bytesToNumberBE)(ce)),de=(0,i.bytesToNumberBE)(Q.subarray(0,32));if(!T(de))return!1;const Re=(0,i.bytesToNumberBE)(Q.subarray(32,64));if(!H(Re))return!1;const we=X(Y(de),w(ie),le),xe=J(ie,Re,S(-we));return!(!xe||!xe.hasEvenY()||xe.toAffine().x!==de)}catch{return!1}}e.schnorr={getPublicKey:B,sign:P,verify:K,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:ne,pointToBytes:w,numberToBytesBE:i.numberToBytesBE,bytesToNumberBE:i.bytesToNumberBE,taggedHash:k,mod:s.mod}};const Z=(0,o.isogenyMap)(A,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(R=>R.map(O=>BigInt(O)))),D=(0,u.mapToCurveSimpleSWU)(A,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:A.create(BigInt("-11"))}),q=(0,o.createHasher)(e.secp256k1.ProjectivePoint,R=>{const{x:O,y:z}=D(A.create(R[0]));return Z(O,z)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:A.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=q.hashToCurve,e.encodeToCurve=q.encodeToCurve})(fi)),fi}var Qu;function fg(){return Qu||(Qu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var t=dg();Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return t.secp256k1}})})(di)),di}var Ju;function hg(){if(Ju)return Er;Ju=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.recoverPublicKey=r,Er.recoverAddressFromEthSignature=o,Er.sign=s,Er.createEthereumMessageHash=i,Er.ethSign=u,Er.computeAddress=d,Er.createUnsafeIdentity=h;const e=ka(),t=fg();function r(m,p){if(m.length!==65)throw new Error("Invalid signature length "+m.length);const b=m[64];if(b!==27&&b!==28)throw new Error(`Invalid signature recovery value: ${b}. Expected 27 or 28.`);const E=m.slice(0,m.length-1),A=b===28?1:0;return t.secp256k1.Signature.fromCompact(E).addRecoveryBit(A).recoverPublicKey(p).toRawBytes(!1).slice(1)}function n(m){if(m.length!==65)throw new Error("Invalid ethereum signature");const p=m[64];if(p===0||p===1){const b=new Uint8Array(m);return b[64]=p+27,b}return m}function o(m,p){if(typeof m=="string"){if((0,e.isHex)(m))return o((0,e.hexToBytes)(m),p);throw new Error("String signatures must be encoded in hex")}return d(r(n(m),i(p)))}function s(m,p){const b=t.secp256k1.sign(p,m),E=b.recovery===1?"1c":"1b";return"0x"+b.toCompactHex()+E}function i(m){const p=typeof m=="string"?(0,e.stringToUtf8Bytes)(m):m,b=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
38
+ `),(0,e.stringToUtf8Bytes)(String(p.length)),p);return(0,e.hexToBytes)((0,e.sha3)(b))}function u(m,p){return s(m,i(p))}function d(m){let p;if(m.length===65&&m[0]===4)p=m.slice(1);else if(m.length===64)p=m;else throw new Error(`Invalid public key length: ${m.length}. Expected 64 bytes, or 65 bytes with a leading 0x04 uncompressed prefix.`);return(0,e.getAddress)((0,e.sha3)(p).substring(24))}function h(){const m=t.secp256k1.utils.randomPrivateKey(),p=t.secp256k1.getPublicKey(m,!1).slice(1),b=d(p);return{privateKey:(0,e.bytesToHex)(m),publicKey:(0,e.bytesToHex)(p),address:b}}return Er}var ta={},Xu;function pg(){if(Xu)return ta;Xu=1,Object.defineProperty(ta,"__esModule",{value:!0});const e=ka();class t{constructor(n,o=!0){Xr(this,"requestManager");Xr(this,"checkedBlocks");Xr(this,"saveBlocks");Xr(this,"savedBlocks");Xr(this,"requests");Xr(this,"blockTime");Xr(this,"firstTimestamp");this.requestManager=n,this.checkedBlocks={},this.saveBlocks=o,this.savedBlocks={},this.requests=0}async fillBlockTime(){const n=await this.getBlockWrapper("latest"),o=await this.getBlockWrapper(1);return this.blockTime=(n.timestamp-o.timestamp)/(Number(n.number)-1),this.firstTimestamp=o.timestamp,{blockTime:this.blockTime,firstTimestamp:this.firstTimestamp}}async getDate(n,o=!0){const s=n/1e3,i=Date.now()/1e3;let u=this.firstTimestamp,d=this.blockTime;if((u===void 0||d===void 0)&&({firstTimestamp:u,blockTime:d}=await this.fillBlockTime()),s<u)return{block:1,timestamp:s};const h=this.savedBlocks.latest;if(s>=i||h&&s>h.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:s};this.checkedBlocks[s]=[];const m=await this.getBlockWrapper(Math.ceil((s-u)/d));return{block:await this.findBetter(s,m,o,d),timestamp:s}}async findBetter(n,o,s,i){let u=i??this.blockTime??(await this.fillBlockTime()).blockTime;if(await this.isBetterBlock(n,o,s))return o.number;const d=n-o.timestamp;let h=Math.ceil(d/u);h===0&&(h=d<0?-1:1);const m=await this.getBlockWrapper(this.getNextBlock(n,o.number,h));return u=Math.abs((o.timestamp-m.timestamp)/(o.number-m.number)),this.findBetter(n,m,s,u)}async isBetterBlock(n,o,s){const i=o.timestamp;if(s){if(i<n)return!1;const u=await this.getBlockWrapper(o.number-1);if(i>=n&&u.timestamp<n)return!0}else{if(i>=n)return!1;const u=await this.getBlockWrapper(o.number+1);if(i<n&&u.timestamp>=n)return!0}return!1}getNextBlock(n,o,s){const i=o+s;if(this.checkedBlocks[n].includes(i)){const u=s<0?s+1:s-1;if(u===0)throw new Error(`Could not find an unchecked block for timestamp ${n}`);return this.getNextBlock(n,o,u)}return this.checkedBlocks[n].push(i),i}async getBlockWrapper(n){if(!this.saveBlocks){const i=await this.requestManager.eth_getBlockByNumber(n,!1);return{number:(0,e.toBigNumber)(i.number).toNumber(),timestamp:(0,e.toBigNumber)(i.timestamp).toNumber()}}const o=n.toString();if(this.savedBlocks[o])return this.savedBlocks[o];if(typeof n=="number"&&this.savedBlocks.latest&&this.savedBlocks.latest.number<=n)return this.savedBlocks.latest;const{timestamp:s}=await this.requestManager.eth_getBlockByNumber(n,!1);return this.savedBlocks[o]={number:(0,e.toBigNumber)(n==="latest"?await this.requestManager.eth_blockNumber():n).toNumber(),timestamp:(0,e.toBigNumber)(s).toNumber()},this.requests++,this.savedBlocks[o]}}return ta.default=t,ta}var ra={},e0;function mg(){if(e0)return ra;e0=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.moveMinutes=e;function e(t){const r=new Date;return r.setMinutes(r.getMinutes()+t),r}return ra}var gi={},t0;function ff(){return t0||(t0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const t=Hh();Object.defineProperty(e,"AuthChain",{enumerable:!0,get:function(){return t.AuthChain}}),Object.defineProperty(e,"AuthLink",{enumerable:!0,get:function(){return t.AuthLink}}),Object.defineProperty(e,"AuthLinkType",{enumerable:!0,get:function(){return t.AuthLinkType}})})(gi)),gi}var r0;function hf(){return r0||(r0=1,(function(e){var t=ur&&ur.__createBinding||(Object.create?(function(q,R,O,z){z===void 0&&(z=O);var Q=Object.getOwnPropertyDescriptor(R,O);(!Q||("get"in Q?!R.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return R[O]}}),Object.defineProperty(q,z,Q)}):(function(q,R,O,z){z===void 0&&(z=O),q[z]=R[O]})),r=ur&&ur.__setModuleDefault||(Object.create?(function(q,R){Object.defineProperty(q,"default",{enumerable:!0,value:R})}):function(q,R){q.default=R}),n=ur&&ur.__importStar||(function(){var q=function(R){return q=Object.getOwnPropertyNames||function(O){var z=[];for(var Q in O)Object.prototype.hasOwnProperty.call(O,Q)&&(z[z.length]=Q);return z},q(R)};return function(R){if(R&&R.__esModule)return R;var O={};if(R!=null)for(var z=q(R),Q=0;Q<z.length;Q++)z[Q]!=="default"&&t(O,R,z[Q]);return r(O,R),O}})(),o=ur&&ur.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseEmphemeralPayload=e.EIP_1654_SIGNED_ENTITY_VALIDATOR=e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=e.ECDSA_SIGNED_ENTITY_VALIDATOR=e.SIGNER_VALIDATOR=e.Authenticator=e.createEthereumMessageHash=e.ERC1654_MAGIC_VALUE=e.VALID_SIGNATURE=void 0,e.validateSignature=b,e.isValidAuthChain=E,e.createEIP1271MessageHash=A,e.createSimpleAuthChain=g,e.createAuthChain=T,e.initializeAuthChain=H,e.signPayload=v,e.createSignature=k,e.ownerAddress=w,e.getEphemeralMessage=Y,e.getEphemeralSignatureType=X,e.getSignedIdentitySignatureType=B,e.parseEphemeralPayload=P,e.isValidEIP1271Signature=K;const s=n(ka()),i=ng(),u=hg(),d=o(pg()),h=mg(),m=ff();e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const p=132;async function b(q,R,O,z=Date.now()){let Q="";if(!E(R))return{ok:!1,message:"ERROR: Malformed authChain"};for(const ce of R){const ie=D(ce.type);try{const{nextAuthority:de}=await ie(Q,ce,{provider:O,dateToValidateExpirationInMillis:z});Q=de||""}catch(de){const Re=de instanceof Error?de.message:String(de);return{ok:!1,message:`ERROR. Link type: ${ce.type}. ${Re}.`}}}const le=Q===q;return{ok:le,message:le?void 0:`ERROR: Invalid final authority. Expected: ${q}. Current ${Q}.`}}function E(q){for(const[R,O]of q.entries())if(R===0&&O.type!==m.AuthLinkType.SIGNER||O.type===m.AuthLinkType.SIGNER&&R!==0)return!1;return!0}function A(q){return(0,s.hexToBytes)((0,s.sha3)((0,s.stringToUtf8Bytes)(q)))}function g(q,R,O){return[{type:m.AuthLinkType.SIGNER,payload:R,signature:""},{type:B(O),payload:q,signature:O}]}function T(q,R,O,z){const Q=(0,h.moveMinutes)(O),le=Y(R.address,Q),ce=k(q,le),ie=k(R,z);return[{type:m.AuthLinkType.SIGNER,payload:q.address,signature:""},{type:m.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL,payload:le,signature:ce},{type:m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:z,signature:ie}]}async function H(q,R,O,z){const Q=(0,h.moveMinutes)(O),le=Y(R.address,Q),ce=await z(le),ie=[{type:m.AuthLinkType.SIGNER,payload:q,signature:""},{type:X(ce),payload:le,signature:ce}];return{ephemeralIdentity:R,expiration:Q,authChain:ie}}function v(q,R){const O=k(q.ephemeralIdentity,R);return[...q.authChain,{type:m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:R,signature:O}]}e.createEthereumMessageHash=u.createEthereumMessageHash;function k(q,R){return(0,u.ethSign)((0,s.hexToBytes)(q.privateKey),R)}function w(q){return q.length>0&&q[0].type===m.AuthLinkType.SIGNER?q[0].payload:"Invalid-Owner-Address"}function Y(q,R){return`Decentraland Login
39
+ Ephemeral address: ${q}
40
+ Expiration: ${R.toISOString()}`}e.Authenticator={validateSignature:b,isValidAuthChain:E,createEIP1271MessageHash:A,createSimpleAuthChain:g,createAuthChain:T,initializeAuthChain:H,signPayload:v,createEthereumMessageHash:e.createEthereumMessageHash,createSignature:k,ownerAddress:w,getEphemeralMessage:Y};const U=async(q,R)=>({nextAuthority:R.payload});e.SIGNER_VALIDATOR=U;const S=async(q,R)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_SIGNED_ENTITY_VALIDATOR'");const O=(0,u.recoverAddressFromEthSignature)(R.signature,R.payload),z=q.toLocaleLowerCase(),Q=O.toLocaleLowerCase();if(z===Q)return{nextAuthority:R.payload};throw new Error(`Invalid signer address. Expected: ${z}. Actual: ${Q}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=S;const $=async(q,R,O)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:z,ephemeralAddress:Q,expiration:le}=P(R.payload),ce=(O==null?void 0:O.dateToValidateExpirationInMillis)||Date.now();if(le>ce){const ie=(0,u.recoverAddressFromEthSignature)(R.signature,z),de=q.toLocaleLowerCase(),Re=ie.toLocaleLowerCase();if(de===Re)return{nextAuthority:Q};throw new Error(`Invalid signer address. Expected: ${de}. Actual: ${Re}`)}throw new Error(`Ephemeral key expired. Expiration: ${le}. Test: ${ce}`)};e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=$;const J=async(q,R,O)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_EIP_1654_EPHEMERAL_VALIDATOR'");const{message:z,ephemeralAddress:Q,expiration:le}=P(R.payload),ce=(O==null?void 0:O.dateToValidateExpirationInMillis)||Date.now();if(le>ce&&await Z(O==null?void 0:O.provider,q,z,R.signature,ce))return{nextAuthority:Q};throw new Error(`Ephemeral key expired. Expiration: ${le}. Test: ${ce}`)};e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=J;const W=async(q,R,O)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(!O)throw new Error("Missing validation options for 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(await Z(O.provider,q,R.payload,R.signature,O.dateToValidateExpirationInMillis))return{nextAuthority:R.payload};throw new Error("Invalid validation")};e.EIP_1654_SIGNED_ENTITY_VALIDATOR=W;const ne=async(q,R)=>({error:"Error Validator."});function X(q){return q.length===p?m.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:m.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL}function B(q){return q.length===p?m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:m.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY}function P(q){const R=q.replace(/\r/g,""),O=R.split(`
41
+ `),z="Ephemeral address: ",Q="Expiration: ";if(O.length<3||!O[1].startsWith(z)||!O[2].startsWith(Q))throw new Error(`Invalid ephemeral payload. Expected 3 lines with "${z}" on line 2 and "${Q}" on line 3.`);const le=O[1].substring(z.length),ce=O[2].substring(Q.length),ie=Date.parse(ce);if(Number.isNaN(ie))throw new Error(`Invalid expiration date in ephemeral payload: "${ce}"`);return{message:R,ephemeralAddress:le,expiration:ie}}e.parseEmphemeralPayload=P;async function K(q,R,O,z){const Q=A(R),le=(0,s.hexToBytes)(O);let ce;try{ce=(0,s.bytesToHex)(await q.isValidSignature(Q,le,z))}catch{}if(ce===e.ERC1654_MAGIC_VALUE)return!0;const ie=(0,u.createEthereumMessageHash)(R);try{ce=(0,s.bytesToHex)(await q.isValidSignature(ie,le,z))}catch{}return ce===e.ERC1654_MAGIC_VALUE}async function Z(q,R,O,z,Q){if(!q)throw new Error("Missing provider");const le=new s.default(q),ce=await(0,i.SignatureValidator)(le,R);let ie=await K(ce,O,z);if(ie)return!0;const de=new d.default(le);try{const{block:Re}=await de.getDate(Q,!1);if(ie=await K(ce,O,z,Re),ie)return!0}catch(Re){const we=Re instanceof Error?Re.message:String(Re);throw new Error(`Invalid validation. Error: ${we}`)}throw new Error(`Invalid validation. Expected: ${e.ERC1654_MAGIC_VALUE}. Actual: ${ie}`)}function D(q){switch(q){case m.AuthLinkType.SIGNER:return e.SIGNER_VALIDATOR;case m.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:return e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR;case m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:return e.ECDSA_SIGNED_ENTITY_VALIDATOR;case m.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL:return e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR;case m.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY:return e.EIP_1654_SIGNED_ENTITY_VALIDATOR;default:return ne}}})(ur)),ur}var Dr={},n0;function gg(){return n0||(n0=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.AUTH_METADATA_HEADER=Dr.AUTH_TIMESTAMP_HEADER=Dr.AUTH_CHAIN_HEADER_PREFIX=void 0,Dr.AUTH_CHAIN_HEADER_PREFIX="x-identity-auth-chain-",Dr.AUTH_TIMESTAMP_HEADER="x-identity-timestamp",Dr.AUTH_METADATA_HEADER="x-identity-metadata"),Dr}var o0;function yg(){return o0||(o0=1,(function(e){var t=gn&&gn.__createBinding||(Object.create?(function(n,o,s,i){i===void 0&&(i=s);var u=Object.getOwnPropertyDescriptor(o,s);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(n,i,u)}):(function(n,o,s,i){i===void 0&&(i=s),n[i]=o[s]})),r=gn&&gn.__exportStar||function(n,o){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&t(o,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(hf(),e),r(gg(),e),r(ff(),e)})(gn)),gn}var vg=yg(),vn={},dr={},na={exports:{}},oa={exports:{}},s0;function bl(){return s0||(s0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}e.exports=t.default,e.exports.default=t.default})(oa,oa.exports)),oa.exports}var sa={exports:{}},a0;function bg(){return a0||(a0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(o){return Object.prototype.toString.call(o)==="[object RegExp]"}function n(o,s){for(var i=0;i<s.length;i++){var u=s[i];if(o===u||r(u)&&u.test(o))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(sa,sa.exports)),sa.exports}var aa={exports:{}},i0;function wg(){return i0||(i0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(o,s){return o.indexOf(s)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(aa,aa.exports)),aa.exports}var ia={exports:{}},ca={exports:{}},c0;function pf(){return c0||(c0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(o){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},r(o)}function n(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;(r(o)!=="object"||o===null)&&(o={});for(var i in s)typeof o[i]>"u"&&(o[i]=s[i]);return o}e.exports=t.default,e.exports.default=t.default})(ca,ca.exports)),ca.exports}var l0;function _g(){return l0||(l0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(bl()),n=o(pf());function o(u){return u&&u.__esModule?u:{default:u}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function i(u,d){(0,r.default)(u),d=(0,n.default)(d,s),d.allow_trailing_dot&&u[u.length-1]==="."&&(u=u.substring(0,u.length-1)),d.allow_wildcard===!0&&u.indexOf("*.")===0&&(u=u.substring(2));var h=u.split("."),m=h[h.length-1];return d.require_tld&&(h.length<2||!d.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(m)||/\s/.test(m))||!d.allow_numeric_tld&&/^\d+$/.test(m)?!1:h.every(function(p){return!(p.length>63&&!d.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(p)||/[\uff01-\uff5e]/.test(p)||/^-|-$/.test(p)||!d.allow_underscores&&/_/.test(p))})}e.exports=t.default,e.exports.default=t.default})(ia,ia.exports)),ia.exports}var la={exports:{}},u0;function Eg(){return u0||(u0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=n(bl());function n(p){return p&&p.__esModule?p:{default:p}}function o(p){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},o(p)}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(s,"[.]){3}").concat(s),u=new RegExp("^".concat(i,"$")),d="(?:[0-9a-fA-F]{1,4})",h=new RegExp("^("+"(?:".concat(d,":){7}(?:").concat(d,"|:)|")+"(?:".concat(d,":){6}(?:").concat(i,"|:").concat(d,"|:)|")+"(?:".concat(d,":){5}(?::").concat(i,"|(:").concat(d,"){1,2}|:)|")+"(?:".concat(d,":){4}(?:(:").concat(d,"){0,1}:").concat(i,"|(:").concat(d,"){1,3}|:)|")+"(?:".concat(d,":){3}(?:(:").concat(d,"){0,2}:").concat(i,"|(:").concat(d,"){1,4}|:)|")+"(?:".concat(d,":){2}(?:(:").concat(d,"){0,3}:").concat(i,"|(:").concat(d,"){1,5}|:)|")+"(?:".concat(d,":){1}(?:(:").concat(d,"){0,4}:").concat(i,"|(:").concat(d,"){1,6}|:)|")+"(?::((?::".concat(d,"){0,5}:").concat(i,"|(?::").concat(d,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function m(p){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(p);var E=(o(b)==="object"?b.version:arguments[1])||"";return E?E.toString()==="4"?u.test(p):E.toString()==="6"?h.test(p):!1:m(p,{version:4})||m(p,{version:6})}e.exports=t.default,e.exports.default=t.default})(la,la.exports)),la.exports}var d0;function xg(){return d0||(d0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=H;var r=d(bl()),n=d(bg()),o=d(wg()),s=d(_g()),i=d(Eg()),u=d(pf());function d(v){return v&&v.__esModule?v:{default:v}}function h(v,k){return A(v)||E(v,k)||p(v,k)||m()}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
42
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(v,k){if(v){if(typeof v=="string")return b(v,k);var w={}.toString.call(v).slice(8,-1);return w==="Object"&&v.constructor&&(w=v.constructor.name),w==="Map"||w==="Set"?Array.from(v):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?b(v,k):void 0}}function b(v,k){(k==null||k>v.length)&&(k=v.length);for(var w=0,Y=Array(k);w<k;w++)Y[w]=v[w];return Y}function E(v,k){var w=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(w!=null){var Y,U,S,$,J=[],W=!0,ne=!1;try{if(S=(w=w.call(v)).next,k!==0)for(;!(W=(Y=S.call(w)).done)&&(J.push(Y.value),J.length!==k);W=!0);}catch(X){ne=!0,U=X}finally{try{if(!W&&w.return!=null&&($=w.return(),Object($)!==$))return}finally{if(ne)throw U}}return J}}function A(v){if(Array.isArray(v))return v}var g={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},T=/^\[([^\]]+)\](?::([0-9]+))?$/;function H(v,k){if((0,r.default)(v),!v||/[\s<>]/.test(v)||v.indexOf("mailto:")===0||(k=(0,u.default)(k,g),k.validate_length&&v.length>k.max_allowed_length)||!k.allow_fragments&&(0,o.default)(v,"#")||!k.allow_query_components&&((0,o.default)(v,"?")||(0,o.default)(v,"&")))return!1;var w,Y,U,S,$,J,W,ne;W=v.split("#"),v=W.shift(),W=v.split("?"),v=W.shift();var X=v.match(/^([a-z][a-z0-9+\-.]*):/i),B=!1,P=function(qe){return B=!0,w=qe.toLowerCase(),k.require_valid_protocol&&k.protocols.indexOf(w)===-1?!1:v.substring(X[0].length)};if(X){var K=X[1],Z=v.substring(X[0].length),D=Z.slice(0,2)==="//";if(D){if(v=P(K),v===!1)return!1}else{var q=Z.indexOf("/"),R=q===-1?Z:Z.substring(0,q),O=R.indexOf("@");if(O!==-1){var z=R.substring(0,O),Q=/^[a-zA-Z0-9\-_.%:]*$/,le=Q.test(z),ce=/%[0-9a-fA-F]{2}/.test(z);if(le&&!ce){if(k.require_protocol)return!1}else if(v=P(K),v===!1)return!1}else{var ie=/^[0-9]/.test(Z);if(ie){if(k.require_protocol)return!1}else if(v=P(K),v===!1)return!1}}}else if(k.require_protocol)return!1;if(v.slice(0,2)==="//"){if(!B&&!k.allow_protocol_relative_urls)return!1;v=v.slice(2)}if(v==="")return!1;if(W=v.split("/"),v=W.shift(),v===""&&!k.require_host)return!0;if(W=v.split("@"),W.length>1){if(k.disallow_auth||W[0]===""||(Y=W.shift(),Y.indexOf(":")>=0&&Y.split(":").length>2))return!1;var de=Y.split(":"),Re=h(de,2),we=Re[0],xe=Re[1];if(we===""&&xe==="")return!1}S=W.join("@"),J=null,ne=null;var ye=S.match(T);if(ye?(U="",ne=ye[1],J=ye[2]||null):(W=S.split(":"),U=W.shift(),W.length&&(J=W.join(":"))),J!==null&&J.length>0){if($=parseInt(J,10),!/^[0-9]+$/.test(J)||$<=0||$>65535)return!1}else if(k.require_port)return!1;return k.host_whitelist?(0,n.default)(U,k.host_whitelist):U===""&&!k.require_host?!0:!(!(0,i.default)(U)&&!(0,s.default)(U,k)&&(!ne||!(0,i.default)(ne,6))||(U=U||ne,k.host_blacklist&&(0,n.default)(U,k.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(na,na.exports)),na.exports}var yi={},f0;function mf(){return f0||(f0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.localStorageClearIdentity=e.localStorageStoreIdentity=e.localStorageGetIdentity=e.createMessage=e.SINGLE_SIGN_ON_TARGET=e.Action=void 0;var t;(function(u){u.GET="get",u.STORE="store",u.CLEAR="clear",u.PING="ping"})(t||(e.Action=t={})),e.SINGLE_SIGN_ON_TARGET="single-sign-on";function r(u){return{target:e.SINGLE_SIGN_ON_TARGET,...u}}e.createMessage=r;function n(u){const d=localStorage.getItem(i(u));if(!d)return null;let h;try{h=JSON.parse(d)}catch{return s(u),null}return h.expiration=new Date(h.expiration),h.expiration.getTime()<=Date.now()?(s(u),null):h}e.localStorageGetIdentity=n;function o(u,d){new Date(d.expiration).getTime()>Date.now()&&localStorage.setItem(i(u),JSON.stringify(d))}e.localStorageStoreIdentity=o;function s(u){localStorage.removeItem(i(u))}e.localStorageClearIdentity=s;function i(u){if(!/^0x[a-fA-F0-9]{40}$/.test(u))throw new Error("User must be a valid ethereum address");return`single-sign-on-${u.toLowerCase()}`}})(yi)),yi}var h0;function Sg(){if(h0)return dr;h0=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.clearIdentity=dr.storeIdentity=dr.getIdentity=dr.init=void 0;const e=xg(),t=mf(),r=t.SINGLE_SIGN_ON_TARGET,n=500,o=5;let s=0,i="";const u={protocols:["https"],require_protocol:!0};function d(T,H={}){if(!(0,e.default)(T,{...u,...H}))throw new Error(`Invalid url: ${T}`);if(i)throw new Error("Already initialized");const v=document.createElement("iframe");v.id=r,v.src=T,v.style.width="0",v.style.height="0",v.style.border="none",v.style.position="absolute",document.body.appendChild(v),i=T}dr.init=d;async function h(T){let H;try{H=(await E(await b(),t.Action.GET,{user:T})).identity??null}catch(v){g(v),H=(0,t.localStorageGetIdentity)(T)}return H}dr.getIdentity=h;async function m(T,H){try{await E(await b(),t.Action.STORE,{user:T,identity:H})}catch(v){g(v),(0,t.localStorageStoreIdentity)(T,H)}}dr.storeIdentity=m;async function p(T){try{await E(await b(),t.Action.CLEAR,{user:T})}catch(H){g(H),(0,t.localStorageClearIdentity)(T)}}dr.clearIdentity=p;async function b(){if(!i)throw new Error("Not initialized");for(let T=0;T<o;T++){const H=document.getElementById(r),v=H==null?void 0:H.contentWindow;if(!v){await A(n);continue}try{await E(v,t.Action.PING,{},n)}catch{continue}return v}throw new Error("Could not get iframe because it is not ready or cannot be communicated with")}async function E(T,H,v,k=0){s++;const w=s;let Y=null;const U=new Promise((S,$)=>{Y=({data:J})=>{!J||J.target!==t.SINGLE_SIGN_ON_TARGET||J.id!==w||(J.error?$(new Error(J.error)):S(J))},window.addEventListener("message",Y)});T.postMessage((0,t.createMessage)({id:w,action:H,...v}),i);try{return await(k?Promise.race([U,new Promise((S,$)=>setTimeout(()=>$(new Error("Did not receive a response in time")),k))]):U)}catch(S){throw S}finally{Y&&window.removeEventListener("message",Y)}}function A(T){return new Promise(H=>setTimeout(H,T))}function g(T){console.warn("Could not get identity from iframe, falling back to localStorage. Error:",T.message)}return dr}var p0;function Cg(){return p0||(p0=1,(function(e){var t=vn&&vn.__createBinding||(Object.create?(function(n,o,s,i){i===void 0&&(i=s);var u=Object.getOwnPropertyDescriptor(o,s);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(n,i,u)}):(function(n,o,s,i){i===void 0&&(i=s),n[i]=o[s]})),r=vn&&vn.__exportStar||function(n,o){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&t(o,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(Sg(),e),r(mf(),e)})(vn)),vn}var zc=Cg();function Tg(e){const{host:t}=e;return t.endsWith(".org")||t.endsWith(".co")?Pr.PRODUCTION:t.endsWith(".today")||t.endsWith(".net")?Pr.STAGING:t.endsWith(".io")||t.endsWith(".zone")?Pr.DEVELOPMENT:null}function Ag(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(yf(n))return n}return null}var m0={},Pr;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(Pr||(Pr={}));function gf(){return Object.values(Pr)}function yf(e){return gf().includes(e)}function ua(e){if(yf(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${gf().map(t=>`"${t}"`).join(", ")}.`)}function Ig(e={}){const{DCL_DEFAULT_ENV:t,REACT_APP_DCL_DEFAULT_ENV:r,VITE_DCL_DEFAULT_ENV:n,GATSBY_DCL_DEFAULT_ENV:o}=e;if(t&&r&&t!==r)throw new Error("You have defined both DCL_DEFAULT_ENV and REACT_APP_DCL_DEFAULT_ENV with different values");if(t&&n&&t!==n)throw new Error("You have defined both DCL_DEFAULT_ENV and VITE_DCL_DEFAULT_ENV with different values");if(t&&o&&t!==o)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(r&&o&&r!==o)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return t?ua(t):r?ua(r):n?ua(n):o?ua(o):Pr.PRODUCTION}function kg(e){if(typeof window<"u"){const r=Ag(window.location);if(r)return r;const n=Tg(window.location);if(n)return n}return Ig(typeof e>"u"&&typeof ha=="object"&&typeof m0=="object"?m0:e)}function Rg(e,t){const r=kg(t==null?void 0:t.systemEnvVariables),n=e[r];return{get:(o,s="")=>{if(!n)throw new Error(`Could not find a config for env=${r}`);return o in n?n[o]:s},is:o=>r===o,getEnv:()=>r}}const Pg="development",Ng="80002",Og="https://marketplace-api.decentraland.zone",jg="https://marketplace-api.decentraland.zone",Lg="/auth",Bg="https://rpc.decentraland.org/amoy",Mg="https://credits.decentraland.zone",Fg="https://builder-api.decentraland.zone",$g="https://peer.decentraland.zone",Dg="https://decentraland.zone/profile",qg="",Ug="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",Vg="",Hg="",zg={ENVIRONMENT:Pg,CHAIN_ID:Ng,MARKETPLACE_SERVER_URL:Og,NFT_API_URL:jg,AUTH_URL:Lg,RPC_URL:Bg,CREDITS_SERVER_URL:Mg,BUILDER_SERVER_URL:Fg,PEER_URL:$g,PROFILE_URL:Dg,SHOP_SERVER_URL:qg,STRIPE_PUBLISHABLE_KEY:Ug,SEGMENT_WRITE_KEY:Vg,SENTRY_DSN:Hg},Gg="staging",Wg="80002",Zg="https://marketplace-api.decentraland.zone",Kg="https://marketplace-api.decentraland.zone",Yg="/auth",Qg="https://rpc.decentraland.org/amoy",Jg="https://credits.decentraland.zone",Xg="https://builder-api.decentraland.zone",ey="https://peer.decentraland.zone",ty="https://decentraland.zone/profile",ry="",ny="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",oy="",sy="",ay={ENVIRONMENT:Gg,CHAIN_ID:Wg,MARKETPLACE_SERVER_URL:Zg,NFT_API_URL:Kg,AUTH_URL:Yg,RPC_URL:Qg,CREDITS_SERVER_URL:Jg,BUILDER_SERVER_URL:Xg,PEER_URL:ey,PROFILE_URL:ty,SHOP_SERVER_URL:ry,STRIPE_PUBLISHABLE_KEY:ny,SEGMENT_WRITE_KEY:oy,SENTRY_DSN:sy},iy="production",cy="137",ly="https://marketplace-api.decentraland.org",uy="https://marketplace-api.decentraland.org",dy="/auth",fy="https://rpc.decentraland.org/polygon",hy="https://credits.decentraland.org",py="https://builder-api.decentraland.org",my="https://peer.decentraland.org",gy="https://decentraland.org/profile",yy="",vy="",by="",wy="",_y={ENVIRONMENT:iy,CHAIN_ID:cy,MARKETPLACE_SERVER_URL:ly,NFT_API_URL:uy,AUTH_URL:dy,RPC_URL:fy,CREDITS_SERVER_URL:hy,BUILDER_SERVER_URL:py,PEER_URL:my,PROFILE_URL:gy,SHOP_SERVER_URL:yy,STRIPE_PUBLISHABLE_KEY:vy,SEGMENT_WRITE_KEY:by,SENTRY_DSN:wy},Ey={},Gt=Rg({[Pr.DEVELOPMENT]:zg,[Pr.STAGING]:ay,[Pr.PRODUCTION]:_y},{systemEnvVariables:{VITE_DCL_DEFAULT_ENV:"dev"}}),At=Ey,Ze={marketplaceServerUrl:At.VITE_MARKETPLACE_SERVER_URL??Gt.get("MARKETPLACE_SERVER_URL"),nftApiUrl:At.VITE_NFT_API_URL??Gt.get("NFT_API_URL"),chainId:Number(At.VITE_CHAIN_ID??Gt.get("CHAIN_ID")),authUrl:At.VITE_AUTH_URL??Gt.get("AUTH_URL"),rpcUrl:At.VITE_RPC_URL??Gt.get("RPC_URL"),creditsServerUrl:At.VITE_CREDITS_SERVER_URL??Gt.get("CREDITS_SERVER_URL"),builderServerUrl:At.VITE_BUILDER_SERVER_URL??Gt.get("BUILDER_SERVER_URL"),peerUrl:At.VITE_PEER_URL??Gt.get("PEER_URL"),profileUrl:At.VITE_PROFILE_URL??Gt.get("PROFILE_URL"),shopServerUrl:At.VITE_SHOP_SERVER_URL??Gt.get("SHOP_SERVER_URL"),stripePublishableKey:At.VITE_STRIPE_PK??Gt.get("STRIPE_PUBLISHABLE_KEY"),segmentWriteKey:At.VITE_SEGMENT_WRITE_KEY??Gt.get("SEGMENT_WRITE_KEY"),sentryDsn:At.VITE_SENTRY_DSN??Gt.get("SENTRY_DSN"),sentryEnvironment:At.VITE_SENTRY_ENVIRONMENT??(Number(At.VITE_CHAIN_ID??Gt.get("CHAIN_ID"))===80002?"dev":"prod"),sentryRelease:At.VITE_SENTRY_RELEASE??`shop@${At.VITE_APP_VERSION??"0.0.0-dev"}`},xy=744*60;async function vf(){return(await xt(async()=>{const{connection:e}=await import("./index-BjyH5s2H.js").then(t=>t.i);return{connection:e}},__vite__mapDeps([9,2,1,10]))).connection}async function Sy(e){if(!e.account)throw new Error("No account returned by the wallet");const t=e.account.toLowerCase(),r=new Kh(e.provider),n=r.getSigner();let o=zc.localStorageGetIdentity(t);if(!o){const s=Yh.createRandom();o=await vg.Authenticator.initializeAuthChain(t,{address:s.address,publicKey:iu(s.publicKey),privateKey:iu(s.privateKey)},xy,i=>n.signMessage(i)),zc.localStorageStoreIdentity(t,o)}return{address:t,chainId:e.chainId,signer:n,web3Provider:r,identity:o,providerType:e.providerType}}function Cy(){const e=encodeURIComponent(window.location.href);window.location.replace(`${Ze.authUrl}/login?redirectTo=${e}`)}async function Ty(){try{const t=await(await vf()).tryPreviousConnection();return!t.account||!zc.localStorageGetIdentity(t.account.toLowerCase())?null:await Sy(t)}catch{return null}}async function Ay(){try{await(await vf()).disconnect()}catch{}}const Iy=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`s-${String(performance.now())}`,ky=Ze.chainId===80002?"amoy":"polygon",Ry=Ze.chainId===80002?"dev":"prod";function wl(){return window.analytics}function Py(){let e;try{e=bo.getState().session}catch{e=null}return{address:(e==null?void 0:e.address)??null,is_signed_in:!!e,session_id:Iy,network:ky,app_env:Ry}}function pr(e,t={}){const r={...Py(),...t},n=wl();n&&n.track(e,r)}function Ny(e,t={}){const r=wl();r&&r.identify(e.toLowerCase(),t)}function Oy(){const e=wl();e!=null&&e.reset&&e.reset()}function jy(e){pr("Shop Viewed Page",{page:e})}function g0(e){return e===nr.ProviderType.MAGIC||e===nr.ProviderType.MAGIC_TEST?"magic":"wallet"}function Ly(e){const t=`shop:seen:${e.toLowerCase()}`;try{return localStorage.getItem(t)?!1:(localStorage.setItem(t,"1"),!0)}catch{return!1}}function Go(e){return Math.round(e*10)/100}function _l(e){return!e.tokenId}function W6(e){return{item_id:e.itemId??null,contract_address:e.contractAddress,token_id:e.tokenId??null,trade_id:e.tradeId??null,price_credits:e.priceCredits,price_usd:Go(e.priceCredits),rarity:e.rarity,creator:e.creator||null,is_primary:_l(e)}}function Z6(e){const t=e.reduce((n,o)=>n+o.priceCredits,0),r=e.some(_l);return{items:e.map(n=>({item_id:n.itemId??null,contract_address:n.contractAddress,token_id:n.tokenId??null,price_usd:Go(n.priceCredits)})),value_credits:t,value_usd:Go(t),purchase_type:r?"item":"nft_resale",is_primary:r}}function By(e){const t=e;if((t==null?void 0:t.code)===4001)return"user_rejected";const r=((t==null?void 0:t.message)??"").toLowerCase();return r.includes("reject")||r.includes("denied")||r.includes("cancel")?"user_rejected":r.includes("insufficient")?"insufficient_credits":r.includes("not for sale")||r.includes("no active listing")||r.includes("sold")?"not_for_sale":"unknown"}function K6(e){return By(e)==="user_rejected"}function My(e){const t=window;if(t.analytics&&t.analytics.invoked)return;const r=t.analytics||[];r.invoked=!0,r.methods=["track","identify","page","group","alias","ready","on","once","off","reset","setAnonymousId"],r.factory=n=>(...o)=>(r.push([n,...o]),r);for(const n of r.methods)r[n]=r.factory(n);r.load=n=>{const o=document.createElement("script");o.async=!0,o.src=`https://cdn.segment.com/analytics.js/v1/${encodeURIComponent(n)}/analytics.min.js`,document.head.appendChild(o)},t.analytics=r,r.load(e),r.page()}let y0=!1;function Fy(){if(y0)return;y0=!0;const e=Ze.segmentWriteKey;e&&My(e)}let Gc=null;function $y(e){Gc=e}function v0(e,t={}){const r=typeof t.flow=="string"?`error in ${t.flow}`:"error";if(console.error(`[shop] ${r}`,e,t),Gc)try{Gc(e,t)}catch{}}const Dy=/0x[a-fA-F0-9]{130}\b/g,qy=/0x[a-fA-F0-9]{64}\b/g,Uy=/(sk_[a-z]+_[A-Za-z0-9]+|pi_[A-Za-z0-9]+_secret_[A-Za-z0-9]+|[A-Za-z0-9-]*secret[A-Za-z0-9-]*)/gi,Vy=/(signature|private|identity|authchain|auth_chain|ephemeral|token|secret|password|cookie|authorization)/i;function Ro(e){return e.replace(Dy,"<signature>").replace(Uy,"<secret>").replace(qy,"<hex32>")}function Hy(e){var r;e.message&&(e.message=Ro(e.message));for(const n of((r=e.exception)==null?void 0:r.values)??[])n.value&&(n.value=Ro(n.value));for(const n of e.breadcrumbs??[])n.message&&(n.message=Ro(n.message));e.request&&(e.request.url&&(e.request.url=Ro(e.request.url)),delete e.request.cookies,delete e.request.headers);const t=n=>{if(n)for(const o of Object.keys(n)){if(Vy.test(o)){delete n[o];continue}typeof n[o]=="string"&&(n[o]=Ro(n[o]))}};return t(e.tags),t(e.extra),e}let b0=!1;function zy(){if(b0)return;const e=Ze.sentryDsn;if(!e)return;b0=!0,zh({dsn:e,environment:Ze.sentryEnvironment,release:Ze.sentryRelease,integrations:[new Gh],tracesSampleRate:.01,sendDefaultPii:!1,ignoreErrors:[/user rejected/i,/user denied/i,"ResizeObserver loop limit exceeded"],beforeSend:Hy});const t=Gy();t&&Wh({id:t}),$y((r,n)=>Zh(r,{extra:n}))}function Gy(){var e;try{return((e=bo.getState().session)==null?void 0:e.address)??null}catch{return null}}const w0="shop-favorites";let ya=null;const bf=e=>e?`${w0}:${e.toLowerCase()}`:w0;function _0(e){var t;try{const r=localStorage.getItem(bf(e));if(!r)return{};const n=JSON.parse(r);if(!n||typeof n!="object")return{};const o=n,s="state"in n&&((t=o.state)!=null&&t.items)?o.state.items:n;return s&&typeof s=="object"?s:{}}catch{return{}}}function E0(e){try{localStorage.setItem(bf(ya),JSON.stringify(e))}catch{}}const _a=jn(e=>({items:_0(ya),toggle:t=>e(r=>{const n={...r.items};return n[t.id]?delete n[t.id]:n[t.id]=t,E0(n),{items:n}}),remove:t=>e(r=>{const n={...r.items};return delete n[t],E0(n),{items:n}}),reloadFor:t=>{ya=t?t.toLowerCase():null,e({items:_0(ya)})}})),x0="shop:followed-creators:v1",Wy=200;let El=null;const wf=e=>e?`${x0}:${e.toLowerCase()}`:x0;function S0(){try{const e=localStorage.getItem(wf(El));if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"):[]}catch{return[]}}function C0(e){try{localStorage.setItem(wf(El),JSON.stringify(e))}catch{}}const Wc=jn((e,t)=>({followed:S0(),isFollowing:r=>t().followed.includes(r.toLowerCase()),follow:r=>{const n=r.toLowerCase();if(!n||t().followed.includes(n))return;const o=[n,...t().followed].slice(0,Wy);C0(o),e({followed:o}),pr("Shop Followed Creator",{creator_address:n,following_count:o.length})},unfollow:r=>{const n=r.toLowerCase();if(!t().followed.includes(n))return;const o=t().followed.filter(s=>s!==n);C0(o),e({followed:o}),pr("Shop Unfollowed Creator",{creator_address:n,following_count:o.length})},toggle:r=>t().isFollowing(r)?t().unfollow(r):t().follow(r),reloadFor:r=>{El=r?r.toLowerCase():null,e({followed:S0()})}})),vi="shop:signing_in",bo=jn(e=>({session:null,connecting:!1,error:null,signIn:()=>{try{sessionStorage.setItem(vi,"1")}catch{}Cy()},disconnect:async()=>{pr("Shop Signed Out");try{await Ay()}catch(t){v0(t,{flow:"wallet",step:"disconnect"})}Oy(),_a.getState().reloadFor(null),Wc.getState().reloadFor(null),e({session:null})},restore:async()=>{let t;try{t=await Ty()}catch(n){v0(n,{flow:"wallet",step:"restore"});return}if(!t)return;e({session:t}),_a.getState().reloadFor(t.address),Wc.getState().reloadFor(t.address),Ny(t.address,{sign_in_method:g0(t.providerType)});let r=!1;try{r=sessionStorage.getItem(vi)==="1",r&&sessionStorage.removeItem(vi)}catch{}r&&pr("Shop Signed In",{method:g0(t.providerType),is_new_user:Ly(t.address)})}}));async function _f(e){var n;const t=await fetch(`${Ze.peerUrl}/lambdas/profiles/${e.toLowerCase()}`);if(!t.ok)return;const r=await t.json();return(n=r==null?void 0:r.avatars)==null?void 0:n[0]}function Pa(e){return Gr({queryKey:["profile",e],enabled:!!e,staleTime:5*6e4,queryFn:()=>_f(e)})}var qr={},bi={},T0;function Ef(){return T0||(T0=1,Object.defineProperty(bi,"__esModule",{value:!0})),bi}var Ur={},xr={},Vn={},bn={},A0={},Po,I0;function mr(){if(I0)return Po;I0=1;var e=function(t){return t&&t.Math===Math&&t};return Po=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Tc=="object"&&Tc)||e(typeof Po=="object"&&Po)||(function(){return this})()||Function("return this")(),Po}var wi,k0;function Ln(){return k0||(k0=1,wi=function(e){try{return!!e()}catch{return!0}}),wi}var _i,R0;function Na(){if(R0)return _i;R0=1;var e=Ln();return _i=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),_i}var Ei,P0;function Zy(){if(P0)return Ei;P0=1;var e=Na(),t=Function.prototype,r=t.apply,n=t.call;return Ei=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Ei}var xi,N0;function wo(){if(N0)return xi;N0=1;var e=Na(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return xi=e?n:function(o){return function(){return r.apply(o,arguments)}},xi}var Si,O0;function xf(){if(O0)return Si;O0=1;var e=wo(),t=e({}.toString),r=e("".slice);return Si=function(n){return r(t(n),8,-1)},Si}var Ci,j0;function Sf(){if(j0)return Ci;j0=1;var e=xf(),t=wo();return Ci=function(r){if(e(r)==="Function")return t(r)},Ci}var Ti,L0;function Bn(){if(L0)return Ti;L0=1;var e=typeof document=="object"&&document.all;return Ti=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Ti}var Ai={},Ii,B0;function ss(){if(B0)return Ii;B0=1;var e=Ln();return Ii=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Ii}var ki,M0;function xl(){if(M0)return ki;M0=1;var e=Na(),t=Function.prototype.call;return ki=e?t.bind(t):function(){return t.apply(t,arguments)},ki}var Ri={},F0;function Ky(){if(F0)return Ri;F0=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Ri.f=r?function(o){var s=t(this,o);return!!s&&s.enumerable}:e,Ri}var Pi,$0;function Cf(){return $0||($0=1,Pi=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Pi}var Ni,D0;function Yy(){if(D0)return Ni;D0=1;var e=wo(),t=Ln(),r=xf(),n=Object,o=e("".split);return Ni=t(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?o(s,""):n(s)}:n,Ni}var Oi,q0;function Tf(){return q0||(q0=1,Oi=function(e){return e==null}),Oi}var ji,U0;function Af(){if(U0)return ji;U0=1;var e=Tf(),t=TypeError;return ji=function(r){if(e(r))throw new t("Can't call method on "+r);return r},ji}var Li,V0;function Qy(){if(V0)return Li;V0=1;var e=Yy(),t=Af();return Li=function(r){return e(t(r))},Li}var Bi,H0;function Oa(){if(H0)return Bi;H0=1;var e=Bn();return Bi=function(t){return typeof t=="object"?t!==null:e(t)},Bi}var Mi,z0;function If(){return z0||(z0=1,Mi={}),Mi}var Fi,G0;function Jy(){if(G0)return Fi;G0=1;var e=If(),t=mr(),r=Bn(),n=function(o){return r(o)?o:void 0};return Fi=function(o,s){return arguments.length<2?n(e[o])||n(t[o]):e[o]&&e[o][s]||t[o]&&t[o][s]},Fi}var $i,W0;function Xy(){if(W0)return $i;W0=1;var e=wo();return $i=e({}.isPrototypeOf),$i}var Di,Z0;function ev(){if(Z0)return Di;Z0=1;var e=mr(),t=e.navigator,r=t&&t.userAgent;return Di=r?String(r):"",Di}var qi,K0;function tv(){if(K0)return qi;K0=1;var e=mr(),t=ev(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,s=o&&o.v8,i,u;return s&&(i=s.split("."),u=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!u&&t&&(i=t.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=t.match(/Chrome\/(\d+)/),i&&(u=+i[1]))),qi=u,qi}var Ui,Y0;function kf(){if(Y0)return Ui;Y0=1;var e=tv(),t=Ln(),r=mr(),n=r.String;return Ui=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Ui}var Vi,Q0;function Rf(){if(Q0)return Vi;Q0=1;var e=kf();return Vi=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Vi}var Hi,J0;function Pf(){if(J0)return Hi;J0=1;var e=Jy(),t=Bn(),r=Xy(),n=Rf(),o=Object;return Hi=n?function(s){return typeof s=="symbol"}:function(s){var i=e("Symbol");return t(i)&&r(i.prototype,o(s))},Hi}var zi,X0;function rv(){if(X0)return zi;X0=1;var e=String;return zi=function(t){try{return e(t)}catch{return"Object"}},zi}var Gi,ed;function Nf(){if(ed)return Gi;ed=1;var e=Bn(),t=rv(),r=TypeError;return Gi=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},Gi}var Wi,td;function nv(){if(td)return Wi;td=1;var e=Nf(),t=Tf();return Wi=function(r,n){var o=r[n];return t(o)?void 0:e(o)},Wi}var Zi,rd;function ov(){if(rd)return Zi;rd=1;var e=xl(),t=Bn(),r=Oa(),n=TypeError;return Zi=function(o,s){var i,u;if(s==="string"&&t(i=o.toString)&&!r(u=e(i,o))||t(i=o.valueOf)&&!r(u=e(i,o))||s!=="string"&&t(i=o.toString)&&!r(u=e(i,o)))return u;throw new n("Can't convert object to primitive value")},Zi}var Ki={exports:{}},Yi,nd;function sv(){return nd||(nd=1,Yi=!0),Yi}var Qi,od;function av(){if(od)return Qi;od=1;var e=mr(),t=Object.defineProperty;return Qi=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},Qi}var sd;function iv(){if(sd)return Ki.exports;sd=1;var e=sv(),t=mr(),r=av(),n="__core-js_shared__",o=Ki.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Ki.exports}var Ji,ad;function cv(){if(ad)return Ji;ad=1;var e=iv();return Ji=function(t,r){return e[t]||(e[t]=r||{})},Ji}var Xi,id;function lv(){if(id)return Xi;id=1;var e=Af(),t=Object;return Xi=function(r){return t(e(r))},Xi}var ec,cd;function Sl(){if(cd)return ec;cd=1;var e=wo(),t=lv(),r=e({}.hasOwnProperty);return ec=Object.hasOwn||function(o,s){return r(t(o),s)},ec}var tc,ld;function uv(){if(ld)return tc;ld=1;var e=wo(),t=0,r=Math.random(),n=e(1.1.toString);return tc=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},tc}var rc,ud;function dv(){if(ud)return rc;ud=1;var e=mr(),t=cv(),r=Sl(),n=uv(),o=kf(),s=Rf(),i=e.Symbol,u=t("wks"),d=s?i.for||i:i&&i.withoutSetter||n;return rc=function(h){return r(u,h)||(u[h]=o&&r(i,h)?i[h]:d("Symbol."+h)),u[h]},rc}var nc,dd;function fv(){if(dd)return nc;dd=1;var e=xl(),t=Oa(),r=Pf(),n=nv(),o=ov(),s=dv(),i=TypeError,u=s("toPrimitive");return nc=function(d,h){if(!t(d)||r(d))return d;var m=n(d,u),p;if(m){if(h===void 0&&(h="default"),p=e(m,d,h),!t(p)||r(p))return p;throw new i("Can't convert object to primitive value")}return h===void 0&&(h="number"),o(d,h)},nc}var oc,fd;function Of(){if(fd)return oc;fd=1;var e=fv(),t=Pf();return oc=function(r){var n=e(r,"string");return t(n)?n:n+""},oc}var sc,hd;function hv(){if(hd)return sc;hd=1;var e=mr(),t=Oa(),r=e.document,n=t(r)&&t(r.createElement);return sc=function(o){return n?r.createElement(o):{}},sc}var ac,pd;function jf(){if(pd)return ac;pd=1;var e=ss(),t=Ln(),r=hv();return ac=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),ac}var md;function pv(){if(md)return Ai;md=1;var e=ss(),t=xl(),r=Ky(),n=Cf(),o=Qy(),s=Of(),i=Sl(),u=jf(),d=Object.getOwnPropertyDescriptor;return Ai.f=e?d:function(m,p){if(m=o(m),p=s(p),u)try{return d(m,p)}catch{}if(i(m,p))return n(!t(r.f,m,p),m[p])},Ai}var ic,gd;function mv(){if(gd)return ic;gd=1;var e=Ln(),t=Bn(),r=/#|\.prototype\./,n=function(d,h){var m=s[o(d)];return m===u?!0:m===i?!1:t(h)?e(h):!!h},o=n.normalize=function(d){return String(d).replace(r,".").toLowerCase()},s=n.data={},i=n.NATIVE="N",u=n.POLYFILL="P";return ic=n,ic}var cc,yd;function gv(){if(yd)return cc;yd=1;var e=Sf(),t=Nf(),r=Na(),n=e(e.bind);return cc=function(o,s){return t(o),s===void 0?o:r?n(o,s):function(){return o.apply(s,arguments)}},cc}var lc={},uc,vd;function yv(){if(vd)return uc;vd=1;var e=ss(),t=Ln();return uc=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),uc}var dc,bd;function vv(){if(bd)return dc;bd=1;var e=Oa(),t=String,r=TypeError;return dc=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},dc}var wd;function bv(){if(wd)return lc;wd=1;var e=ss(),t=jf(),r=yv(),n=vv(),o=Of(),s=TypeError,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",m="writable";return lc.f=e?r?function(b,E,A){if(n(b),E=o(E),n(A),typeof b=="function"&&E==="prototype"&&"value"in A&&m in A&&!A[m]){var g=u(b,E);g&&g[m]&&(b[E]=A.value,A={configurable:h in A?A[h]:g[h],enumerable:d in A?A[d]:g[d],writable:!1})}return i(b,E,A)}:i:function(b,E,A){if(n(b),E=o(E),n(A),t)try{return i(b,E,A)}catch{}if("get"in A||"set"in A)throw new s("Accessors not supported");return"value"in A&&(b[E]=A.value),b},lc}var fc,_d;function wv(){if(_d)return fc;_d=1;var e=ss(),t=bv(),r=Cf();return fc=e?function(n,o,s){return t.f(n,o,r(1,s))}:function(n,o,s){return n[o]=s,n},fc}var hc,Ed;function _v(){if(Ed)return hc;Ed=1;var e=mr(),t=Zy(),r=Sf(),n=Bn(),o=pv().f,s=mv(),i=If(),u=gv(),d=wv(),h=Sl(),m=function(p){var b=function(E,A,g){if(this instanceof b){switch(arguments.length){case 0:return new p;case 1:return new p(E);case 2:return new p(E,A)}return new p(E,A,g)}return t(p,this,arguments)};return b.prototype=p.prototype,b};return hc=function(p,b){var E=p.target,A=p.global,g=p.stat,T=p.proto,H=A?e:g?e[E]:e[E]&&e[E].prototype,v=A?i:i[E]||d(i,E,{})[E],k=v.prototype,w,Y,U,S,$,J,W,ne,X;for(S in b)w=s(A?S:E+(g?".":"#")+S,p.forced),Y=!w&&H&&h(H,S),J=v[S],Y&&(p.dontCallGetSet?(X=o(H,S),W=X&&X.value):W=H[S]),$=Y&&W?W:b[S],!(!w&&!T&&typeof J==typeof $)&&(p.bind&&Y?ne=u($,e):p.wrap&&Y?ne=m($):T&&n($)?ne=r($):ne=$,(p.sham||$&&$.sham||J&&J.sham)&&d(ne,"sham",!0),d(v,S,ne),T&&(U=E+"Prototype",h(i,U)||d(i,U,{}),d(i[U],S,$),p.real&&k&&(w||!k[S])&&d(k,S,$)))},hc}var xd;function Ev(){if(xd)return A0;xd=1;var e=_v(),t=mr();return e({global:!0,forced:t.globalThis!==t},{globalThis:t}),A0}var pc,Sd;function xv(){return Sd||(Sd=1,Ev(),pc=mr()),pc}var mc,Cd;function Sv(){if(Cd)return mc;Cd=1;var e=xv();return mc=e,mc}var Td;function Lf(){if(Td)return bn;Td=1;var e=bn&&bn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(bn,"__esModule",{value:!0}),bn.getImplementation=void 0;var t=e(Sv());function r(n,o){var s,i=(s=n[o])!==null&&s!==void 0?s:t.default[o];if(!i)throw new ReferenceError('"'+o+'" is not defined');return i}return bn.getImplementation=r,bn}var Ad;function Bf(){if(Ad)return Vn;Ad=1;var e=Vn&&Vn.__values||function(u){var d=typeof Symbol=="function"&&Symbol.iterator,h=d&&u[d],m=0;if(h)return h.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Vn,"__esModule",{value:!0});var t=hf(),r=Lf(),n="x-identity-auth-chain-",o="x-identity-timestamp",s="x-identity-metadata";function i(u){u===void 0&&(u={});var d=(0,r.getImplementation)(u,"Headers");return function(m,p,b,E,A){var g,T,H=new d(A),v=String(Date.now()),k=JSON.stringify(E),w=[p,b,v,k].join(":").toLowerCase(),Y=0,U=t.Authenticator.signPayload(m,w);try{for(var S=e(U),$=S.next();!$.done;$=S.next()){var J=$.value;H.set(n+Y,JSON.stringify(J)),Y++}}catch(W){g={error:W}}finally{try{$&&!$.done&&(T=S.return)&&T.call(S)}finally{if(g)throw g.error}}return H.set(o,v),H.set(s,k),H}}return Vn.default=i,Vn}var Id;function Mf(){if(Id)return xr;Id=1;var e=xr&&xr.__assign||function(){return e=Object.assign||function(i){for(var u,d=1,h=arguments.length;d<h;d++){u=arguments[d];for(var m in u)Object.prototype.hasOwnProperty.call(u,m)&&(i[m]=u[m])}return i},e.apply(this,arguments)},t=xr&&xr.__rest||function(i,u){var d={};for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&u.indexOf(h)<0&&(d[h]=i[h]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,h=Object.getOwnPropertySymbols(i);m<h.length;m++)u.indexOf(h[m])<0&&Object.prototype.propertyIsEnumerable.call(i,h[m])&&(d[h[m]]=i[h[m]]);return d},r=xr&&xr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(xr,"__esModule",{value:!0});var n=r(Bf()),o=Lf();function s(i){i===void 0&&(i={});var u=(0,n.default)(i),d=(0,o.getImplementation)(i,"URL"),h=(0,o.getImplementation)(i,"Request"),m=(0,o.getImplementation)(i,"fetch");return function(b,E){if(E&&E.identity){var A=E.identity,g=E.metadata,T=t(E,["identity","metadata"]);if(typeof b=="string"||b instanceof d||globalThis.URL&&b instanceof globalThis.URL){var H=typeof b=="string"?new d(b):b,v=new h(H.toString(),e(e({},T),{headers:u(A,E.method||"GET",H.pathname,g||{},T==null?void 0:T.headers)}));return m(v)}var k=new d(b.url),w=new h(b),Y=u(A,b.method||"GET",k.pathname,g||{});return Y.forEach(function(U,S){w.headers.set(S,U)}),m(w)}return m(b,E)}}return xr.default=s,xr}var kd;function Cv(){return kd||(kd=1,(function(e){var t=Ur&&Ur.__createBinding||(Object.create?(function(i,u,d,h){h===void 0&&(h=d),Object.defineProperty(i,h,{enumerable:!0,get:function(){return u[d]}})}):(function(i,u,d,h){h===void 0&&(h=d),i[h]=u[d]})),r=Ur&&Ur.__exportStar||function(i,u){for(var d in i)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&t(u,i,d)},n=Ur&&Ur.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.signedHeaderFactory=e.signedFetchFactory=void 0,r(Ef(),e);var o=Mf();Object.defineProperty(e,"signedFetchFactory",{enumerable:!0,get:function(){return n(o).default}});var s=Bf();Object.defineProperty(e,"signedHeaderFactory",{enumerable:!0,get:function(){return n(s).default}})})(Ur)),Ur}var Rd;function Tv(){return Rd||(Rd=1,(function(e){var t=qr&&qr.__createBinding||(Object.create?(function(s,i,u,d){d===void 0&&(d=u),Object.defineProperty(s,d,{enumerable:!0,get:function(){return i[u]}})}):(function(s,i,u,d){d===void 0&&(d=u),s[d]=i[u]})),r=qr&&qr.__exportStar||function(s,i){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(i,u)&&t(i,s,u)},n=qr&&qr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),r(Ef(),e),r(Cv(),e);var o=n(Mf());e.default=(0,o.default)()})(qr)),qr}var Av=Tv();const ja=Sa(Av);async function Iv(e,t){const r=`${Ze.creditsServerUrl}/users/${e.toLowerCase()}/credits`,n=await ja(r,{method:"GET",identity:t,metadata:{}});if(!n.ok)throw new Error(`getUserCredits ${n.status}: ${await n.text()}`);return n.json()}async function kv(e,t){const{usd:r}=await Iv(e,t);return r??{balanceCents:0,credits:0}}async function Y6(e,t,r){const n=`${Ze.creditsServerUrl}/credits/authorize`,o=await ja(n,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({usdPriceCents:t,tradeId:r})});if(!o.ok)throw new Error(`authorizeUsdCredit ${o.status}: ${await o.text()}`);return o.json()}async function Q6(e,t,r){const n=new URLSearchParams;n.set("status","all"),n.set("limit",String(r.first)),(r==null?void 0:r.skip)!=null&&n.set("offset",String(r.skip));const o=n.toString(),s=`${Ze.creditsServerUrl}/users/${e.toLowerCase()}/purchases${o?`?${o}`:""}`,i=await ja(s,{method:"GET",identity:t,metadata:{}});if(!i.ok)throw new Error(`fetchUserPurchases ${i.status}: ${await i.text()}`);const u=await i.json(),d=u.purchases??[],h=(r==null?void 0:r.skip)??0,m=r==null?void 0:r.first,p=typeof u.total=="number"?u.total:h+d.length+(d.length>=m?1:0);return{items:d,total:p}}async function J6(e,t){if(t.length===0)return 0;const r=`${Ze.creditsServerUrl}/credits/authorize/cancel`,n=await ja(r,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({salts:t})});if(!n.ok)throw new Error(`cancelUsdIntents ${n.status}: ${await n.text()}`);return(await n.json()).released??0}async function X6(e,t=1e3){const r=await fetch(`${Ze.creditsServerUrl}/dev/mint-usd`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({address:e.toLowerCase(),usdCents:t})});if(!r.ok)throw new Error(`devMintUsd ${r.status}: ${await r.text()}`);return r.json()}function Rv(e){return Gr({queryKey:["usd-balance",e==null?void 0:e.address],enabled:!!e,staleTime:3e4,queryFn:async()=>kv(e.address,e.identity)})}function Pv(e,t){return t?"—":(e==null?void 0:e.credits)??0}const Nv={};function Ff(e,t){let r;try{r=e()}catch{return}return{getItem:o=>{var s;const i=d=>d===null?null:JSON.parse(d,void 0),u=(s=r.getItem(o))!=null?s:null;return u instanceof Promise?u.then(i):i(u)},setItem:(o,s)=>r.setItem(o,JSON.stringify(s,void 0)),removeItem:o=>r.removeItem(o)}}const Wo=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return Wo(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return Wo(n)(r)}}}},Ov=(e,t)=>(r,n,o)=>{let s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:T=>T,version:0,merge:(T,H)=>({...H,...T}),...t},i=!1;const u=new Set,d=new Set;let h;try{h=s.getStorage()}catch{}if(!h)return e((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...T)},n,o);const m=Wo(s.serialize),p=()=>{const T=s.partialize({...n()});let H;const v=m({state:T,version:s.version}).then(k=>h.setItem(s.name,k)).catch(k=>{H=k});if(H)throw H;return v},b=o.setState;o.setState=(T,H)=>{b(T,H),p()};const E=e((...T)=>{r(...T),p()},n,o);let A;const g=()=>{var T;if(!h)return;i=!1,u.forEach(v=>v(n()));const H=((T=s.onRehydrateStorage)==null?void 0:T.call(s,n()))||void 0;return Wo(h.getItem.bind(h))(s.name).then(v=>{if(v)return s.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==s.version){if(s.migrate)return s.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var k;return A=s.merge(v,(k=n())!=null?k:E),r(A,!0),p()}).then(()=>{H==null||H(A,void 0),i=!0,d.forEach(v=>v(A))}).catch(v=>{H==null||H(void 0,v)})};return o.persist={setOptions:T=>{s={...s,...T},T.getStorage&&(h=T.getStorage())},clearStorage:()=>{h==null||h.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>g(),hasHydrated:()=>i,onHydrate:T=>(u.add(T),()=>{u.delete(T)}),onFinishHydration:T=>(d.add(T),()=>{d.delete(T)})},g(),A||E},jv=(e,t)=>(r,n,o)=>{let s={storage:Ff(()=>localStorage),partialize:g=>g,version:0,merge:(g,T)=>({...T,...g}),...t},i=!1;const u=new Set,d=new Set;let h=s.storage;if(!h)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...g)},n,o);const m=()=>{const g=s.partialize({...n()});return h.setItem(s.name,{state:g,version:s.version})},p=o.setState;o.setState=(g,T)=>{p(g,T),m()};const b=e((...g)=>{r(...g),m()},n,o);o.getInitialState=()=>b;let E;const A=()=>{var g,T;if(!h)return;i=!1,u.forEach(v=>{var k;return v((k=n())!=null?k:b)});const H=((T=s.onRehydrateStorage)==null?void 0:T.call(s,(g=n())!=null?g:b))||void 0;return Wo(h.getItem.bind(h))(s.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==s.version){if(s.migrate)return[!0,s.migrate(v.state,v.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,v.state];return[!1,void 0]}).then(v=>{var k;const[w,Y]=v;if(E=s.merge(Y,(k=n())!=null?k:b),r(E,!0),w)return m()}).then(()=>{H==null||H(E,void 0),E=n(),i=!0,d.forEach(v=>v(E))}).catch(v=>{H==null||H(void 0,v)})};return o.persist={setOptions:g=>{s={...s,...g},g.storage&&(h=g.storage)},clearStorage:()=>{h==null||h.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>A(),hasHydrated:()=>i,onHydrate:g=>(u.add(g),()=>{u.delete(g)}),onFinishHydration:g=>(d.add(g),()=>{d.delete(g)})},s.skipHydration||A(),E||b},Lv=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Nv?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Ov(e,t)):jv(e,t),Bv=Lv,Mv=e=>Go(e.reduce((t,r)=>t+r.priceCredits,0)),er=jn()(Bv((e,t)=>({items:[],open:!1,justAddedCount:0,fittingOpen:!1,add:(r,n="grid")=>{const o=t().items.some(i=>i.id===r.id);if(e(i=>o?{open:!0}:{items:[...i.items,r],open:!0,justAddedCount:(i.open?i.justAddedCount:0)+1}),o)return;const s=t().items;pr("Shop Added To Cart",{item_id:r.itemId??null,contract_address:r.contractAddress,price_credits:r.priceCredits,price_usd:Go(r.priceCredits),is_primary:!r.tokenId,source:n,cart_size:s.length,cart_value_usd:Mv(s)})},remove:r=>{const n=t().items.find(o=>o.id===r);e(o=>({items:o.items.filter(s=>s.id!==r)})),n&&pr("Shop Removed From Cart",{item_id:n.itemId??null,cart_size:t().items.length})},clear:()=>e({items:[]}),restore:r=>e(n=>n.items.length?{}:{items:r}),setOpen:r=>e({open:r,justAddedCount:0}),setFittingOpen:r=>e(r?{fittingOpen:r,open:!1}:{fittingOpen:r})}),{name:"dcl_shop_cart",version:1,storage:Ff(()=>localStorage),partialize:e=>({items:e.items})})),go={name:"credits",nameSingular:"credit",symbol:"◈",iconName:"credits"};function e8(e){return`${e} ${e===1?go.nameSingular:go.name}`}const Fv=Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2});function Kn(e){return Fv.format(e)}function Mo(e){return e.toLocaleString("en")}function hr({className:e}){return f.jsx(_t,{name:go.iconName,className:e})}function $f(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function $v(e){Jh(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Dv=_n(_n({},Qh),{textComponent:oe.Fragment});function qv(e){return function(t){return e(oe.Children.toArray(t))}}var Cl=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=oe.createContext(null)):oe.createContext(null);Cl.Consumer;var Uv=Cl.Provider,Vv=Uv,Hv=Cl;function Df(){var e=oe.useContext(Hv);return $v(e),e}var Zc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Zc||(Zc={}));var Kc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Kc||(Kc={}));function qf(e){var t=function(r){var n=Df(),o=r.value,s=r.children,i=sl(r,["value","children"]),u=typeof o=="string"?new Date(o||0):o,d=e==="formatDate"?n.formatDateToParts(u,i):n.formatTimeToParts(u,i);return s(d)};return t.displayName=Kc[e],t}function as(e){var t=function(r){var n=Df(),o=r.value,s=r.children,i=sl(r,["value","children"]),u=n[e](o,i);if(typeof s=="function")return s(u);var d=n.textComponent||oe.Fragment;return oe.createElement(d,null,u)};return t.displayName=Zc[e],t}function Uf(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=e1(n)?qv(n):n,t},{})}var Pd=function(e,t,r,n){for(var o=[],s=4;s<arguments.length;s++)o[s-4]=arguments[s];var i=Uf(n),u=t1.apply(void 0,r1([e,t,r,i],o,!1));return Array.isArray(u)?oe.Children.toArray(u):u},zv=function(e,t){var r=e.defaultRichTextElements,n=sl(e,["defaultRichTextElements"]),o=Uf(r),s=Xh(_n(_n(_n({},Dv),n),{defaultRichTextElements:o}),t),i={locale:s.locale,timeZone:s.timeZone,fallbackOnEmptyString:s.fallbackOnEmptyString,formats:s.formats,defaultLocale:s.defaultLocale,defaultFormats:s.defaultFormats,messages:s.messages,onError:s.onError,defaultRichTextElements:o};return _n(_n({},s),{formatMessage:Pd.bind(null,i,s.formatters),$t:Pd.bind(null,i,s.formatters)})};as("formatDate");as("formatTime");as("formatNumber");as("formatList");as("formatDisplayName");qf("formatDate");qf("formatTime");const Gv={rejected:"You cancelled the request.",insufficient:"You don't have enough {currency} — get more first.",soldOrRemoved:"This item was just sold or removed.",cantBuyOwn:"You can't buy your own listing."},Wv={overview:"Overview",collectibles:"Collectibles",myAssets:"My Assets",myFavorites:"My Favorites",myPurchases:"My Purchases",searchPlaceholder:"Search items…",searchAria:"Search the shop",yourBalance:"Your {currency}",getCredits:"Get {currency}",cart:"Cart"},Zv={suggestions:"Search suggestions",recent:"Recent searches",clearRecent:"Clear",removeRecent:"Remove “{query}” from recent searches",searching:"Searching…",noResults:"No results match “{query}”",seeAll:"See all {count} results",clear:"Clear search",creators:"Creators",collections:"Collections",items:"Items",byCreator:"By {name}"},Kv={breadcrumb:"Collectibles",fallbackTitle:"Collection",category:"Category",viewProfile:"View profile",copyAddress:"Copy account",copied:"Copied",empty:"This collection has no items to show.",error:"Couldn’t load this collection — please try again.",breadcrumbAria:"Breadcrumb",priceMin:"Minimum price",priceMax:"Maximum price",priceMinPlaceholder:"Min",priceMaxPlaceholder:"Max",priceHint:"Price in {currency}"},Yv={viewCollection:"View collection",itemCount:"{count, plural, one {# Item} other {# Items}}"},Qv={shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",collections:"Collections",head:"Head",upperBody:"Upper Body",handwear:"Handwear",lowerBody:"Lower Body",feet:"Feet",accessories:"Accessories",skins:"Skins",dance:"Dance",stunt:"Stunt",greetings:"Greetings",fun:"Fun",poses:"Poses",reactions:"Reactions",horror:"Horror",miscellaneous:"Miscellaneous"},Jv={breadcrumb:"Assets",category:"Category",fallbackName:"Creator",viewProfile:"View profile",editStore:"Edit store",link:{website:"Website",twitter:"Twitter",discord:"Discord",facebook:"Facebook"},follow:"Follow",following:"Following",followTitle:"Follow creator",unfollowTitle:"Unfollow creator",empty:"This creator has no items to show yet.",collectionsCount:"{count, plural, one {# collection} other {# collections}}",collectionsEmpty:"This creator hasn’t published any collections yet.",error:"Couldn’t load this creator — please try again.",breadcrumbAria:"Breadcrumb",priceMin:"Minimum price",priceMax:"Maximum price",priceMinPlaceholder:"Min",priceMaxPlaceholder:"Max",priceHint:"Price in {currency}"},Xv={title:"Store settings",back:"Back to your store",signInPrompt:"Sign in to set up your store.",signIn:"Sign in",seeAsGuest:"See store as guest",loading:"Loading your store…",cover:"Store cover",upload:"Upload your own",description:"Description",website:"Website",twitter:"Twitter handle",discord:"Discord invite ID",facebook:"Facebook handle",save:"Save",saving:"Saving…",saved:"Store saved.",saveError:"Couldn’t save your store — please try again.",sizeError:"Maximum cover size is {max}; the image you chose is {current}.",linkError:"Link should start with {value}"},e3={title:"Page not found",body:"The page you’re looking for isn’t here. Let’s get you back to the shop.",cta:"Browse Collectibles"},t3={empty:{title:"Your cart is empty",body:"Find something you love and it’ll show up here.",cta:"Browse Collectibles"},panelTitle:"Cart: {count, plural, one {# Item} other {# Items}}",goBack:"Go back",fittingRoom:"Fitting Room",removeFromCart:"Remove {name} from cart",increaseQuantity:"Increase quantity",removeFromFavorites:"Remove {name} from favorites",addToFavorites:"Add {name} to favorites",remove:"Remove {name}",removeTitle:"Remove",clearCart:"Clear cart",purchaseSummary:"Purchase Summary",totalItems:"Total: {count, plural, one {# item} other {# items}}",working:"Working…",priceChanged:"Prices or availability changed since you added these — review the updated total and confirm to buy.",youMightAlsoLike:"You might also like",status:{reviewing:"Reviewing your cart…"},error:{insufficient:"You don't have enough {currency} — get more first.",noneAvailable:"None of these items are available to buy right now.",listingChanged:"One or more items changed — please review your cart and try again."},drop:{unavailable:"{count} no longer available",own:"{count} you can't buy (your own listing)",and:"and",removed:"Removed {items} from your cart."}},r3={title:"Purchase {currency}",subtitle:"Get {currency} and start shopping in the Marketplace!",learnMore:"Learn more",canceledNote:"Payment canceled — no charge was made. Pick a pack whenever you’re ready.",packBadge:"Recommended",packAria:"Get {amount} for ${usd}",creditsAmount:"{credits} {currency}",redirecting:"Redirecting to secure checkout…",processing:"Completing purchase",successTitle:"Your purchase was successful!",successBody:"Your {currency} are ready to spend in the Marketplace.",creditsAdded:"Added to your account",buyMore:"Buy more {currency}",startShopping:"Start shopping",pendingTitle:"Your {currency} are on the way",pendingBody:"Your payment went through. It’s taking a little longer than usual to confirm — your balance will update automatically as soon as it lands, no need to pay again.",done:"Done",errorTitle:"Something went wrong",tryAgain:"Try again",errorCanceled:"You cancelled the request.",errorSignIn:"Sign in to get {currency}.",errorTimeout:"This is taking longer than usual — your {currency} will appear shortly.",errorGeneric:"Couldn’t complete your purchase — please try again.",errorGrant:"Couldn’t add your {currency} — please try again."},n3={price:"Price"},o3={sale:"SALE",saleWithDiscount:"SALE -{pct}%",smart:"Smart",addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites",marketPrice:"Market price",unavailable:"Unavailable",buyNow:"Buy now",yourItem:"Your item",inCart:"In cart",addToCart:"Add to cart"},s3={titleBuy:"Buy Asset",titleNoFunds:"Buy Credits and Item",titleComplete:"Purchase complete!",dialogAria:"Buy {name}",close:"Close",dclBalance:"DCL Balance:",myCreditsBalance:"My Credits Balance:",signInToCheckout:"Sign in to check out.",insufficientFunds:"Insufficient Funds.",warningNeedToBuy:"You will need to buy",warningCreditsAmount:"{count} Credits",warningToPurchase:"to purchase {count, plural, one {this item.} other {these items.}}",cancel:"Cancel",buy:"Buy",completingPurchase:"Completing Purchase…",completingTransaction:"Completing transaction…",successBody:"You can find your item in the My Assets tab.",myAssets:"My assets",tryInWorld:"Try in world",itemFallback:"Item",error:{generic:"Couldn't complete the purchase — please try again.",creditsCheckout:"Couldn't start the credits checkout — please try again."}},a3={titleBuy:"Buy Assets",titleNoFunds:"Buy Credits and Items",dialogAria:"Check out your cart"},i3={finalPrice:"Final price",lockedForPurchase:"Locked for this purchase",todaysPrice:"Today’s price",lockingPrice:"Locking today’s price…",yourBalance:"Your balance:",needMore:"You’ll need a few more {currency} to buy this.",confirming:"Confirming your purchase…",buying:"Buying…",confirmPurchase:"Confirm purchase",error:{insufficient:"Not enough {currency} — get more first.",soldOrRemoved:"This item was just sold or removed. Refreshing the market…",generic:"Couldn't complete checkout — please try again."}},c3={genderMale:"Male",genderFemale:"Female",genderUnisex:"Unisex",categoryEmote:"Emote",categoryWearable:"Wearable",moreFromCollection:"More from this collection",notForSale:"Not for sale",checking:"Checking…",notAvailableTitle:"This item isn’t available",notAvailableBody:"It may have been delisted or moved. Browse Collectibles for something else.",breadcrumbAria:"Breadcrumb",itemFallback:"Item",description:"Description",showLess:"Show less",readMore:"Read more",creator:"Creator",collection:"Collection",price:"Price",stock:"Stock",ownItemPrefix:"This is your item — manage it in",ownItemSuffix:"."},l3={finalizing:"Finalizing your purchase…",processing:"Processing your purchase…",indexingBefore:"Payment confirmed — adding",indexingAfter:"to your wardrobe. Almost there.",confirmingBefore:"Confirming",confirmingAfter:"on-chain. This usually takes a few seconds — keep this tab open.",itemCount:"{count, plural, one {# item} other {# items}}",viewTransaction:"View transaction ↗",stillProcessingTitle:"Still processing…",timedOutBefore:"This is taking longer than usual to confirm. Your purchase may still complete — check",timedOutAfter:"in a few minutes to see the final status. No need to buy again.",viewMyPurchases:"View my purchases",keepShopping:"Keep shopping",failedTitle:"Your purchase didn’t go through",failedBody:"The transaction failed on-chain, so nothing was delivered. Your credits weren’t spent (any hold is released shortly) — you can try again.",backToShop:"Back to shop",title:"It’s yours!",heroInWardrobe:"is now in your wardrobe.",itemsInWardrobe:"{count, plural, one {# item is now in your wardrobe.} other {# items are now in your wardrobe.}}",viewOrder:"View order",useItInWorld:"Use it in-world"},u3={loading:"Loading preview",shownOnBody:"Shown on a {shape} body — this item isn’t made for your avatar’s shape.",previewMode:"Preview mode",onAvatar:"On avatar",item:"Item"},d3={filters:"Filters",closeFilters:"Close filters",category:"Category",min:"Min",max:"Max",priceTo:"to",minPriceAria:"Minimum price",maxPriceAria:"Maximum price",minPriceSliderAria:"Minimum price slider",maxPriceSliderAria:"Maximum price slider",rarity:"Rarity",clearFilters:"Clear Filters",apply:"Apply",marketUnavailable:"Some market prices are temporarily unavailable — buying those items is paused for a moment. Please try again shortly.",loadError:"Couldn’t load items — please try again.",noItems:"No items match your filters."},f3={signInPrompt:"Sign in to sell your items.",removedFromSale:"“{name}” is no longer for sale.",removeListingError:"Couldn’t remove the listing — please try again.",importTitle:"Import your listings",importSub:"You have {count, plural, one {# item} other {# items}} for sale elsewhere — bring them into the Shop.",import:"Import",ownedTitle:"Items you own",ownedSub:"Wearables & emotes you’ve bought — resell them in the Shop.",ownedError:"Couldn’t load your items — please try again.",viewItem:"View {name}",onSale:"On sale",removing:"Removing…",removeListing:"Remove listing",putOnSale:"Put on sale",ownedEmpty:"No items in your wardrobe yet.",creationsTitle:"Your creations",creationsSub:"Items you made. Put them on sale in the Shop — set a price in {currency} and buyers pay with {currency}.",collectionsError:"We couldn’t load your collections right now. Please try again in a moment.",nothingToPublish:"You don’t have any items to publish yet.",available:"{count, number} available"},h3={processing:"Processing",completed:"Completed",itemFallback:"Item",signInTitle:"Sign in to see your purchases",signInBody:"Your order history shows up here once you sign in.",emptyTitle:"No purchases yet",emptyBody:"When you buy something it’ll appear here.",orderCount:"{count, plural, one {# order} other {# orders}}"},p3={emptyTitle:"No favorites yet",emptyBody:"Tap the heart on any item to save it here.",itemCount:"{count, plural, one {# item} other {# items}}"},m3={viewAll:"View all",previous:"Previous",next:"Next",carouselPages:"{title} pages",goToPage:"Go to page {page}",heroTitle:"Fashion week outfits",exploreCollection:"Explore collection",featuredProducts:"Featured Products",newCreations:"New Creations",promoEmotesAria:"Best rated emotes — explore collection",promoEmotesAlt:"Best rated emotes",promoOutfitsAria:"Week selected outfits — explore collection",promoOutfitsAlt:"Week selected outfits",emptyTitle:"New drops are on the way",emptyBody:"There are no items on sale right now — check back soon."},g3={crash:{title:"Something went wrong",body:"This page hit an unexpected error. Try reloading.",reload:"Reload"}},y3={removeFromCart:"Remove {name} from cart",increaseQuantity:"Increase quantity",removeItem:"Remove {name}",remove:"Remove",dialogLabel:"Shopping cart",title:"Shopping Cart ({count})",close:"Close",bannerCount:"{count, plural, one {# Item} other {# Items}}",bannerAdded:"successfully added to cart!",total:"Total: {count, plural, one {# item} other {# items}}",goToCart:"Go to cart",continueShopping:"Continue shopping"},v3={sortNewest:"Newest",sortCheapest:"Cheapest",sortMostExpensive:"Most Expensive",sortName:"Name (A–Z)",count:"{count, plural, one {# Item} other {# Items}}",forQuery:"for “{query}”",rarity:"Rarity",clearAll:"Clear all",filters:"Filters",sortBy:"Sort by"},b3={added:"Added {count, plural, one {# item} other {# items}} to your cart.",forSale:"{count} for sale",allInCart:"All in cart",addAll:"Add all ({count}) to cart"},w3={newsletterTitle:"Get the weekly highlights in your inbox",newsletterFrameTitle:"Newsletter signup",connect:"Connect",gettingStarted:"Getting Started",resources:"Resources",menu:"Menu",linkWhatIs:"What is Decentraland",linkDownload:"Download",linkSystemRequirements:"System Requirements",linkFaqs:"FAQs",linkContactSupport:"Contact Support",linkMarketplace:"Marketplace",linkCreatorHub:"Creator Hub",linkDocs:"Docs",linkBlog:"Blog",linkVote:"Vote",linkPrivacy:"Privacy Policy",linkTerms:"Terms of Use",linkContentPolicy:"Content Policy",linkEthics:"Code of Ethics"},_3={viewAll:"View all",scrollLeft:"Scroll left",scrollRight:"Scroll right",pages:"Carousel pages",goToPage:"Go to page {page}"},E3={title:"Week Top Creators",thisWeek:"This Week",rank:"Rank",creator:"Creator",collections:"Collections",sales:"Sales",volume:"Volume"},x3={loading:"Loading…",loadMore:"Load more"},S3={title:"Recently viewed"},C3={title:"From creators you follow"},T3={loading:"Loading"},A3={label:"Purchase successful"},I3={creations:{title:"Your creations",sub:"Items you made. Put them on sale in the Shop."},owned:{title:"Items you own",sub:"Things you've bought elsewhere — resell them in the Shop."},toastUpdated:"Your Shop is updated.",signInTitle:"Import your listings",signInBody:"Sign in to bring the items you already sell into the Shop.",emptyTitle:"You're all caught up",emptyBody:"Everything you sell is already in the Shop — nothing to import.",goToMyAssets:"Go to My Assets",eyebrow:"Import to the Shop",titleLead:"Bring your listings",titleAccent:"into the Shop",lede:"These items are already for sale elsewhere. We suggested a price in {currency} for each — matched to today's rate and rounded up. Adjust anything, then list them.",rate:"1 {currency} = $0.10 · prices rounded up",includeItem:"Include {name}",itemFallback:"Item",priceAria:"Price in {currency} for {name}",resetTo:"Reset to",list:"List",selectedSummary:"{count, plural, one {# item} other {# items}} selected · ${usd}",listAll:"List all ({count})"},k3={errorGeneric:"Couldn't list your item — please try again.",errorWholeNumber:"Enter a whole number of credits",statusPreparing:"Getting your item ready…",statusListing:"Listing your item…",statusPublishing:"Publishing…",toastOnSale:"“{name}” is now on sale!",successTitle:"It’s on sale! 🎉",listedFor:"Listed for",viewInShop:"View in Shop",listTitle:"List “{name}”",priceLabel:"Price ({currency})",pricedInWhole:"Priced in whole {currency} (1 {currencySingular} = $0.10).",cancel:"Cancel",listing:"Listing…",putOnSale:"Put on sale"},R3={errorGeneric:"Couldn't publish your item — please try again.",errorWholeNumber:"Enter a whole number of credits",statusEnabling:"Enabling sales for this collection…",statusPublishing:"Publishing your item…",statusFinishing:"Finishing up…",toastOnSale:"“{name}” is now on sale!",listing:"Listing…",enableAndPutOnSale:"Enable & put on sale",putOnSale:"Put on sale",successTitle:"It’s on sale! 🎉",listedFor:"Listed for",dotAvailable:"· {count, plural, one {# available} other {# available}}",viewInShop:"View in Shop",publishTitle:"Publish “{name}”",fromCollection:"From your collection “{collectionName}” · {count, plural, one {# available} other {# available}}",priceLabel:"Price ({currency})",pricedInWhole:"Priced in whole {currency} (1 {currencySingular} = $0.10).",firstTimeConfirm:"First time selling from “{collectionName}”? It needs a one-time approval, then you’ll confirm the listing — two quick confirmations. After this, listing more items from this collection is a single step.",firstTimeManaged:"First time selling from “{collectionName}”? Setting it up takes a moment — after that, listing more items from this collection is instant.",readyConfirm:"This collection is ready — publishing is a single confirmation.",readyManaged:"This collection is ready — publishing is instant.",cancel:"Cancel",checking:"Checking…"},P3={successTitle:"You're in the Shop! 🎉",nothingTitle:"Nothing listed",listedSummary:"{count, plural, one {# item is} other {# items are}} now for sale with {currency}.",noneListed:"No items were listed.",skippedSummary:"{count, plural, one {# skipped} other {# skipped}} — you can try those again anytime.",unlistedSummary:"{count, plural, one {# item was taken off the old marketplace but couldn't be re-listed — re-list it from My Assets.} other {# items were taken off the old marketplace but couldn't be re-listed — re-list them from My Assets.}}",goToMyAssets:"Go to My Assets",viewInShop:"View in Shop",listingTitle:"Listing your items",subConfirm:"We take down each old listing and re-list it for credits — confirm each step.",subManaged:"Moving your items to the Shop.",progressCount:"{current} of {total}",itemFallback:"Item",statusConfirm:"Confirm…",statusAdding:"Adding…",statusSkipped:"Skipped",statusFailed:"Failed",unlistedTooltip:"Removed from the old marketplace but not re-listed — re-list it from My Assets.",statusUnlisted:"Not listed",hintConfirm:"A couple of quick confirmations pop up per item (take down + re-list). Keep this open.",hintManaged:"This only takes a moment — keep this open.",statusWaiting:"Waiting"},N3={title:"Fitting room",close:"Close",wearable:"Wearable",emptyStageTitle:"Nothing on right now.",emptyStageBody:"Turn on an item from the list to try it.",sub:"Mix and match your cart. Turn items on and off to see the look.",emote:"Emote",conflictTooltip:"Only one item per slot can be worn",onePerSlot:"1 per slot",madeForShape:"This item is made for the {shape} body shape",shapeOnly:"{shape} only",removeFromCart:"Remove {name} from cart",remove:"Remove",itemCount:"{count, plural, one {# item} other {# items}}",checkout:"Checkout"},O3={male:"Male",female:"Female"},j3={collectibles:{title:"Browse Collectibles",searchTitle:"Search results for “{query}”",description:"Browse thousands of wearables and emotes for your Decentraland avatar. Filter by category, rarity, and price to find your next look."},item:{notFoundTitle:"Item not available",fallbackDescription:"{name} — {rarity} {category} by {creator} on the Decentraland Shop."},collection:{description:"Explore every wearable and emote in the {name} collection on the Decentraland Shop."},creator:{description:"Discover wearables and emotes by {name} on the Decentraland Shop."},import:{title:"Import Listings"},storeSettings:{title:"Store Settings"},success:{title:"Purchase Complete"},notFound:{title:"Page Not Found"}},L3={errors:Gv,nav:Wv,search:Zv,collection:Kv,collectionCard:Yv,categories:Qv,creator:Jv,storeSettings:Xv,notFound:e3,cart:t3,getCredits:r3,filter:n3,assetCard:o3,buyModal:s3,cartCheckout:a3,marketCheckout:i3,itemDetail:c3,success:l3,itemPreview:u3,assets:d3,myAssets:f3,myPurchases:h3,myFavorites:p3,overview:m3,app:g3,cartPopover:y3,filterBar:v3,addAll:b3,footer:w3,collectionCarousel:_3,weekTopCreators:E3,loadMore:x3,recentlyViewed:S3,followedCreators:C3,spinner:T3,successAnimation:A3,importListings:I3,sellModal:k3,primaryList:R3,migrate:P3,fittingRoom:N3,bodyShape:O3,seo:j3},B3={rejected:"Cancelaste la solicitud.",insufficient:"No tienes suficientes {currency}. Consigue más primero.",soldOrRemoved:"Este artículo acaba de venderse o eliminarse.",cantBuyOwn:"No puedes comprar tu propia publicación."},M3={overview:"Inicio",collectibles:"Coleccionables",myAssets:"Mis artículos",myFavorites:"Mis favoritos",myPurchases:"Mis compras",searchPlaceholder:"Busca artículos…",searchAria:"Buscar en la tienda",yourBalance:"Tus {currency}",getCredits:"Conseguir {currency}",cart:"Carrito"},F3={suggestions:"Sugerencias de búsqueda",recent:"Búsquedas recientes",clearRecent:"Limpiar",removeRecent:"Quitar «{query}» de las búsquedas recientes",searching:"Buscando…",noResults:"Ningún resultado coincide con «{query}»",seeAll:"Ver los {count} resultados",clear:"Limpiar búsqueda",creators:"Creadores",collections:"Colecciones",items:"Artículos",byCreator:"Por {name}"},$3={breadcrumb:"Coleccionables",fallbackTitle:"Colección",category:"Categoría",viewProfile:"Ver perfil",copyAddress:"Copiar cuenta",copied:"Copiado",empty:"Esta colección no tiene artículos para mostrar.",error:"No pudimos cargar esta colección. Inténtalo de nuevo.",breadcrumbAria:"Ruta de navegación",priceMin:"Precio mínimo",priceMax:"Precio máximo",priceMinPlaceholder:"Mín",priceMaxPlaceholder:"Máx",priceHint:"Precio en {currency}"},D3={viewCollection:"Ver colección",itemCount:"{count, plural, one {# Artículo} other {# Artículos}}"},q3={shopAll:"Ver todo",wearables:"Wearables",emotes:"Emotes",collections:"Colecciones",head:"Cabeza",upperBody:"Torso",handwear:"Manos",lowerBody:"Piernas",feet:"Pies",accessories:"Accesorios",skins:"Skins",dance:"Baile",stunt:"Truco",greetings:"Saludos",fun:"Divertido",poses:"Poses",reactions:"Reacciones",horror:"Horror",miscellaneous:"Misceláneos"},U3={breadcrumb:"Artículos",category:"Categoría",fallbackName:"Creador",viewProfile:"Ver perfil",editStore:"Editar tienda",link:{website:"Sitio web",twitter:"Twitter",discord:"Discord",facebook:"Facebook"},follow:"Seguir",following:"Siguiendo",followTitle:"Seguir al creador",unfollowTitle:"Dejar de seguir al creador",empty:"Este creador todavía no tiene artículos para mostrar.",collectionsCount:"{count, plural, one {# colección} other {# colecciones}}",collectionsEmpty:"Este creador todavía no ha publicado colecciones.",error:"No pudimos cargar este creador. Prueba de nuevo.",breadcrumbAria:"Ruta de navegación",priceMin:"Precio mínimo",priceMax:"Precio máximo",priceMinPlaceholder:"Mín",priceMaxPlaceholder:"Máx",priceHint:"Precio en {currency}"},V3={title:"Configuración de la tienda",back:"Volver a tu tienda",signInPrompt:"Inicia sesión para configurar tu tienda.",signIn:"Iniciar sesión",seeAsGuest:"Ver tienda como visitante",loading:"Cargando tu tienda…",cover:"Portada de la tienda",upload:"Sube tu portada",description:"Descripción",website:"Sitio web",twitter:"Usuario de Twitter",discord:"ID de invitación de Discord",facebook:"Usuario de Facebook",save:"Guardar",saving:"Guardando…",saved:"Tienda guardada.",saveError:"No pudimos guardar tu tienda. Prueba de nuevo.",sizeError:"El tamaño máximo de la portada es {max}; la imagen que elegiste pesa {current}.",linkError:"El enlace debe comenzar con {value}"},H3={title:"Página no encontrada",body:"La página que buscas no está aquí. Volvamos a la tienda.",cta:"Ver coleccionables"},z3={empty:{title:"Tu carrito está vacío",body:"Encuentra algo que te guste y aparecerá aquí.",cta:"Ver coleccionables"},panelTitle:"Carrito: {count, plural, one {# artículo} other {# artículos}}",goBack:"Volver",fittingRoom:"Probador",removeFromCart:"Quitar {name} del carrito",increaseQuantity:"Aumentar cantidad",removeFromFavorites:"Quitar {name} de favoritos",addToFavorites:"Agregar {name} a favoritos",remove:"Quitar {name}",removeTitle:"Quitar",clearCart:"Vaciar carrito",purchaseSummary:"Resumen de compra",totalItems:"Total: {count, plural, one {# artículo} other {# artículos}}",working:"Procesando…",priceChanged:"Los precios o la disponibilidad cambiaron desde que los agregaste. Revisa el total actualizado y confirma para comprar.",youMightAlsoLike:"También te puede gustar",status:{reviewing:"Revisando tu carrito…"},error:{insufficient:"No tienes suficientes {currency}. Consigue más primero.",noneAvailable:"Ninguno de estos artículos está disponible para comprar en este momento.",listingChanged:"Uno o más artículos cambiaron. Revisa tu carrito e inténtalo de nuevo."},drop:{unavailable:"{count, plural, one {# que ya no está disponible} other {# que ya no están disponibles}}",own:"{count} que no puedes comprar (tu propia publicación)",and:"y",removed:"Eliminamos {items} de tu carrito."}},G3={title:"Comprar {currency}",subtitle:"¡Consigue {currency} y empieza a comprar en el Marketplace!",learnMore:"Más información",canceledNote:"Pago cancelado: no se realizó ningún cargo. Elige un paquete cuando quieras.",packBadge:"Recomendado",packAria:"Consigue {amount} por ${usd}",creditsAmount:"{credits} {currency}",redirecting:"Redirigiendo al pago seguro…",processing:"Completando la compra",successTitle:"¡Tu compra se realizó con éxito!",successBody:"Tus {currency} están listos para gastar en el Marketplace.",creditsAdded:"Añadidos a tu cuenta",buyMore:"Comprar más {currency}",startShopping:"Empezar a comprar",pendingTitle:"Tus {currency} están en camino",pendingBody:"Tu pago se procesó correctamente. Está tardando un poco más de lo habitual en confirmarse; tu saldo se actualizará automáticamente en cuanto llegue, no necesitas pagar de nuevo.",done:"Listo",errorTitle:"Algo salió mal",tryAgain:"Intentar de nuevo",errorCanceled:"Cancelaste la solicitud.",errorSignIn:"Inicia sesión para conseguir {currency}.",errorTimeout:"Esto está tardando más de lo habitual; tus {currency} aparecerán en breve.",errorGeneric:"No pudimos completar tu compra. Inténtalo de nuevo.",errorGrant:"No pudimos añadir tus {currency}. Inténtalo de nuevo."},W3={price:"Precio"},Z3={sale:"OFERTA",saleWithDiscount:"OFERTA -{pct}%",smart:"Smart",addToFavorites:"Agregar a favoritos",removeFromFavorites:"Quitar de favoritos",marketPrice:"Precio de mercado",unavailable:"No disponible",buyNow:"Comprar ahora",yourItem:"Tu artículo",inCart:"En el carrito",addToCart:"Agregar al carrito"},K3={titleBuy:"Comprar artículo",titleNoFunds:"Comprar créditos y artículo",titleComplete:"¡Compra completada!",dialogAria:"Comprar {name}",close:"Cerrar",dclBalance:"Saldo de DCL:",myCreditsBalance:"Saldo de mis créditos:",signInToCheckout:"Inicia sesión para finalizar la compra.",insufficientFunds:"Fondos insuficientes.",warningNeedToBuy:"Necesitarás comprar",warningCreditsAmount:"{count} créditos",warningToPurchase:"para comprar {count, plural, one {este artículo.} other {estos artículos.}}",cancel:"Cancelar",buy:"Comprar",completingPurchase:"Completando la compra…",completingTransaction:"Completando la transacción…",successBody:"Puedes encontrar tu artículo en la pestaña Mis artículos.",myAssets:"Mis artículos",tryInWorld:"Probar en el mundo",itemFallback:"Artículo",error:{generic:"No pudimos completar la compra. Inténtalo de nuevo.",creditsCheckout:"No pudimos iniciar el pago de créditos. Inténtalo de nuevo."}},Y3={titleBuy:"Comprar artículos",titleNoFunds:"Comprar créditos y artículos",dialogAria:"Finaliza la compra de tu carrito"},Q3={finalPrice:"Precio final",lockedForPurchase:"Fijado para esta compra",todaysPrice:"Precio de hoy",lockingPrice:"Fijando el precio de hoy…",yourBalance:"Tu saldo:",needMore:"Necesitarás algunos {currency} más para comprar esto.",confirming:"Confirmando tu compra…",buying:"Comprando…",confirmPurchase:"Confirmar compra",error:{insufficient:"No tienes suficientes {currency}. Consigue más primero.",soldOrRemoved:"Este artículo acaba de venderse o eliminarse. Actualizando el mercado…",generic:"No pudimos completar la compra. Inténtalo de nuevo."}},J3={genderMale:"Masculino",genderFemale:"Femenino",genderUnisex:"Unisex",categoryEmote:"Emote",categoryWearable:"Wearable",moreFromCollection:"Más de esta colección",notForSale:"No está a la venta",checking:"Comprobando…",notAvailableTitle:"Este artículo no está disponible",notAvailableBody:"Puede que se haya retirado o movido. Explora los coleccionables para encontrar otra cosa.",breadcrumbAria:"Ruta de navegación",itemFallback:"Artículo",description:"Descripción",showLess:"Ver menos",readMore:"Leer más",creator:"Creador",collection:"Colección",price:"Precio",stock:"Stock",ownItemPrefix:"Este es tu artículo: gestiónalo en",ownItemSuffix:"."},X3={finalizing:"Finalizando tu compra…",processing:"Procesando tu compra…",indexingBefore:"Pago confirmado: añadiendo",indexingAfter:"a tu guardarropa. Ya casi está.",confirmingBefore:"Confirmando",confirmingAfter:"en la cadena. Esto suele tardar unos segundos; mantén esta pestaña abierta.",itemCount:"{count, plural, one {# artículo} other {# artículos}}",viewTransaction:"Ver transacción ↗",stillProcessingTitle:"Sigue procesándose…",timedOutBefore:"Esto está tardando más de lo habitual en confirmarse. Puede que tu compra aún se complete: revisa",timedOutAfter:"en unos minutos para ver el estado final. No necesitas comprar de nuevo.",viewMyPurchases:"Ver mis compras",keepShopping:"Seguir comprando",failedTitle:"Tu compra no se completó",failedBody:"La transacción falló en la cadena, así que no se entregó nada. No se gastaron tus créditos (cualquier retención se libera en breve); puedes intentarlo de nuevo.",backToShop:"Volver a la tienda",title:"¡Ya es tuyo!",heroInWardrobe:"ya está en tu guardarropa.",itemsInWardrobe:"{count, plural, one {# artículo ya está en tu guardarropa.} other {# artículos ya están en tu guardarropa.}}",viewOrder:"Ver pedido",useItInWorld:"Úsalo en el mundo"},eb={loading:"Cargando vista previa",shownOnBody:"Se muestra en un cuerpo {shape}: este artículo no está hecho para la forma de tu avatar.",previewMode:"Modo de vista previa",onAvatar:"En el avatar",item:"Artículo"},tb={filters:"Filtros",closeFilters:"Cerrar filtros",category:"Categoría",min:"Mín",max:"Máx",priceTo:"a",minPriceAria:"Precio mínimo",maxPriceAria:"Precio máximo",minPriceSliderAria:"Control deslizante de precio mínimo",maxPriceSliderAria:"Control deslizante de precio máximo",rarity:"Rareza",clearFilters:"Borrar filtros",apply:"Aplicar",marketUnavailable:"Algunos precios de mercado no están disponibles temporalmente; la compra de esos artículos está pausada por un momento. Inténtalo de nuevo en breve.",loadError:"No pudimos cargar los artículos. Inténtalo de nuevo.",noItems:"Ningún artículo coincide con tus filtros."},rb={signInPrompt:"Inicia sesión para vender tus artículos.",removedFromSale:"«{name}» ya no está a la venta.",removeListingError:"No pudimos quitar la publicación. Inténtalo de nuevo.",importTitle:"Importa tus publicaciones",importSub:"Tienes {count, plural, one {# artículo} other {# artículos}} a la venta en otro lugar; tráelos a la tienda.",import:"Importar",ownedTitle:"Artículos que tienes",ownedSub:"Wearables y emotes que compraste: revéndelos en la tienda.",ownedError:"No pudimos cargar tus artículos. Inténtalo de nuevo.",viewItem:"Ver {name}",onSale:"A la venta",removing:"Quitando…",removeListing:"Quitar publicación",putOnSale:"Poner a la venta",ownedEmpty:"Todavía no tienes artículos en tu armario.",creationsTitle:"Tus creaciones",creationsSub:"Artículos que creaste. Ponlos a la venta en la tienda: fija un precio en {currency} y los compradores pagan con {currency}.",collectionsError:"No pudimos cargar tus colecciones en este momento. Inténtalo de nuevo en un momento.",nothingToPublish:"Todavía no tienes artículos para publicar.",available:"{count, plural, one {# disponible} other {# disponibles}}"},nb={processing:"Procesando",completed:"Completada",itemFallback:"Artículo",signInTitle:"Inicia sesión para ver tus compras",signInBody:"Tu historial de pedidos aparecerá aquí cuando inicies sesión.",emptyTitle:"Aún no tienes compras",emptyBody:"Cuando compres algo, aparecerá aquí.",orderCount:"{count, plural, one {# pedido} other {# pedidos}}"},ob={emptyTitle:"Aún no tienes favoritos",emptyBody:"Toca el corazón en cualquier artículo para guardarlo aquí.",itemCount:"{count, plural, one {# artículo} other {# artículos}}"},sb={viewAll:"Ver todo",previous:"Anterior",next:"Siguiente",carouselPages:"Páginas de {title}",goToPage:"Ir a la página {page}",heroTitle:"Outfits de la semana de la moda",exploreCollection:"Explorar colección",featuredProducts:"Productos destacados",newCreations:"Nuevas creaciones",promoEmotesAria:"Emotes mejor valorados: explorar colección",promoEmotesAlt:"Emotes mejor valorados",promoOutfitsAria:"Outfits seleccionados de la semana: explorar colección",promoOutfitsAlt:"Outfits seleccionados de la semana",emptyTitle:"Se avecinan nuevos lanzamientos",emptyBody:"No hay artículos a la venta en este momento; vuelve pronto."},ab={crash:{title:"Algo salió mal",body:"Esta página tuvo un error inesperado. Prueba a recargar.",reload:"Recargar"}},ib={removeFromCart:"Quitar {name} del carrito",increaseQuantity:"Aumentar cantidad",removeItem:"Quitar {name}",remove:"Quitar",dialogLabel:"Carrito de compras",title:"Carrito de compras ({count})",close:"Cerrar",bannerCount:"{count, plural, one {# artículo} other {# artículos}}",bannerAdded:"añadido al carrito correctamente.",total:"Total: {count, plural, one {# artículo} other {# artículos}}",goToCart:"Ir al carrito",continueShopping:"Seguir comprando"},cb={sortNewest:"Más recientes",sortCheapest:"Más baratos",sortMostExpensive:"Más caros",sortName:"Nombre (A–Z)",count:"{count, plural, one {# artículo} other {# artículos}}",forQuery:"para “{query}”",rarity:"Rareza",clearAll:"Borrar todo",filters:"Filtros",sortBy:"Ordenar por"},lb={added:"{count, plural, one {Se añadió # artículo a tu carrito.} other {Se añadieron # artículos a tu carrito.}}",forSale:"{count} en venta",allInCart:"Todo en el carrito",addAll:"Añadir todo ({count}) al carrito"},ub={newsletterTitle:"Recibe lo más destacado de la semana en tu correo",newsletterFrameTitle:"Suscripción al boletín",connect:"Conecta",gettingStarted:"Primeros pasos",resources:"Recursos",menu:"Menú",linkWhatIs:"Qué es Decentraland",linkDownload:"Descargar",linkSystemRequirements:"Requisitos del sistema",linkFaqs:"Preguntas frecuentes",linkContactSupport:"Contactar con soporte",linkMarketplace:"Marketplace",linkCreatorHub:"Creator Hub",linkDocs:"Documentación",linkBlog:"Blog",linkVote:"Votar",linkPrivacy:"Política de privacidad",linkTerms:"Términos de uso",linkContentPolicy:"Política de contenido",linkEthics:"Código de ética"},db={viewAll:"Ver todo",scrollLeft:"Desplazar a la izquierda",scrollRight:"Desplazar a la derecha",pages:"Páginas del carrusel",goToPage:"Ir a la página {page}"},fb={title:"Mejores creadores de la semana",thisWeek:"Esta semana",rank:"Posición",creator:"Creador",collections:"Colecciones",sales:"Ventas",volume:"Volumen"},hb={loading:"Cargando…",loadMore:"Cargar más"},pb={title:"Vistos recientemente"},mb={title:"De creadores que sigues"},gb={loading:"Cargando"},yb={label:"Compra exitosa"},vb={creations:{title:"Tus creaciones",sub:"Artículos que creaste. Ponlos a la venta en la Tienda."},owned:{title:"Artículos que posees",sub:"Cosas que compraste en otro lugar — revéndelas en la Tienda."},toastUpdated:"Tu Tienda está actualizada.",signInTitle:"Importa tus publicaciones",signInBody:"Inicia sesión para traer a la Tienda los artículos que ya vendes.",emptyTitle:"Estás al día",emptyBody:"Todo lo que vendes ya está en la Tienda — no hay nada que importar.",goToMyAssets:"Ir a Mis artículos",eyebrow:"Importar a la Tienda",titleLead:"Trae tus publicaciones",titleAccent:"a la Tienda",lede:"Estos artículos ya están a la venta en otro lugar. Sugerimos un precio en {currency} para cada uno, ajustado a la tasa de hoy y redondeado hacia arriba. Ajusta lo que quieras y publícalos.",rate:"1 {currency} = $0.10 · precios redondeados hacia arriba",includeItem:"Incluir {name}",itemFallback:"Artículo",priceAria:"Precio en {currency} para {name}",resetTo:"Restablecer a",list:"Publicar",selectedSummary:"{count, plural, one {# artículo seleccionado} other {# artículos seleccionados}} · ${usd}",listAll:"Publicar todo ({count})"},bb={errorGeneric:"No pudimos publicar tu artículo. Inténtalo de nuevo.",errorWholeNumber:"Introduce un número entero de credits",statusPreparing:"Preparando tu artículo…",statusListing:"Publicando tu artículo…",statusPublishing:"Publicando…",toastOnSale:"¡«{name}» ya está a la venta!",successTitle:"¡Ya está a la venta! 🎉",listedFor:"Publicado por",viewInShop:"Ver en la Tienda",listTitle:"Publicar «{name}»",priceLabel:"Precio ({currency})",pricedInWhole:"Con precio en {currency} enteros (1 {currencySingular} = $0.10).",cancel:"Cancelar",listing:"Publicando…",putOnSale:"Poner a la venta"},wb={errorGeneric:"No pudimos publicar tu artículo. Inténtalo de nuevo.",errorWholeNumber:"Introduce un número entero de credits",statusEnabling:"Activando las ventas de esta colección…",statusPublishing:"Publicando tu artículo…",statusFinishing:"Finalizando…",toastOnSale:"¡«{name}» ya está a la venta!",listing:"Publicando…",enableAndPutOnSale:"Activar y poner a la venta",putOnSale:"Poner a la venta",successTitle:"¡Ya está a la venta! 🎉",listedFor:"Publicado por",dotAvailable:"· {count, plural, one {# disponible} other {# disponibles}}",viewInShop:"Ver en la Tienda",publishTitle:"Publicar «{name}»",fromCollection:"De tu colección «{collectionName}» · {count, plural, one {# disponible} other {# disponibles}}",priceLabel:"Precio ({currency})",pricedInWhole:"Con precio en {currency} enteros (1 {currencySingular} = $0.10).",firstTimeConfirm:"¿Es la primera vez que vendes de «{collectionName}»? Necesita una aprobación única y luego confirmarás la publicación — dos confirmaciones rápidas. Después de esto, publicar más artículos de esta colección es un solo paso.",firstTimeManaged:"¿Es la primera vez que vendes de «{collectionName}»? Configurarlo lleva un momento — después, publicar más artículos de esta colección es instantáneo.",readyConfirm:"Esta colección está lista — publicar es una sola confirmación.",readyManaged:"Esta colección está lista — publicar es instantáneo.",cancel:"Cancelar",checking:"Comprobando…"},_b={successTitle:"¡Estás en la Tienda! 🎉",nothingTitle:"No se publicó nada",listedSummary:"{count, plural, one {# artículo está} other {# artículos están}} ahora a la venta con {currency}.",noneListed:"No se publicó ningún artículo.",skippedSummary:"{count, plural, one {# omitido} other {# omitidos}} — puedes volver a intentarlo cuando quieras.",unlistedSummary:"{count, plural, one {# artículo se retiró del marketplace anterior pero no se pudo volver a publicar — vuelve a publicarlo desde Mis artículos.} other {# artículos se retiraron del marketplace anterior pero no se pudieron volver a publicar — vuelve a publicarlos desde Mis artículos.}}",goToMyAssets:"Ir a Mis artículos",viewInShop:"Ver en la Tienda",listingTitle:"Publicando tus artículos",subConfirm:"Retiramos cada publicación anterior y la volvemos a publicar por credits — confirma cada paso.",subManaged:"Moviendo tus artículos a la Tienda.",progressCount:"{current} de {total}",itemFallback:"Artículo",statusConfirm:"Confirma…",statusAdding:"Añadiendo…",statusSkipped:"Omitido",statusFailed:"Falló",unlistedTooltip:"Se retiró del marketplace anterior pero no se volvió a publicar — vuelve a publicarlo desde Mis artículos.",statusUnlisted:"No publicado",hintConfirm:"Aparecerán un par de confirmaciones rápidas por artículo (retirar + volver a publicar). Mantén esto abierto.",hintManaged:"Esto solo lleva un momento — mantén esto abierto.",statusWaiting:"Esperando"},Eb={title:"Probador",close:"Cerrar",wearable:"Wearable",emptyStageTitle:"No hay nada puesto ahora mismo.",emptyStageBody:"Activa un artículo de la lista para probarlo.",sub:"Combina los artículos de tu carrito. Activa y desactiva artículos para ver el look.",emote:"Emote",conflictTooltip:"Solo se puede llevar un artículo por espacio",onePerSlot:"1 por espacio",madeForShape:"Este artículo está hecho para el cuerpo {shape}",shapeOnly:"Solo {shape}",removeFromCart:"Quitar {name} del carrito",remove:"Quitar",itemCount:"{count, plural, one {# artículo} other {# artículos}}",checkout:"Finalizar compra"},xb={male:"Masculino",female:"Femenino"},Sb={collectibles:{title:"Explorar coleccionables",searchTitle:"Resultados para «{query}»",description:"Explora miles de wearables y emotes para tu avatar de Decentraland. Filtra por categoría, rareza y precio para encontrar tu próximo look."},item:{notFoundTitle:"Artículo no disponible",fallbackDescription:"{name}: {rarity} {category} de {creator} en la Decentraland Shop."},collection:{description:"Explora todos los wearables y emotes de la colección {name} en la Decentraland Shop."},creator:{description:"Descubre wearables y emotes de {name} en la Decentraland Shop."},import:{title:"Importar artículos"},storeSettings:{title:"Configuración de la tienda"},success:{title:"Compra completada"},notFound:{title:"Página no encontrada"}},Cb={errors:B3,nav:M3,search:F3,collection:$3,collectionCard:D3,categories:q3,creator:U3,storeSettings:V3,notFound:H3,cart:z3,getCredits:G3,filter:W3,assetCard:Z3,buyModal:K3,cartCheckout:Y3,marketCheckout:Q3,itemDetail:J3,success:X3,itemPreview:eb,assets:tb,myAssets:rb,myPurchases:nb,myFavorites:ob,overview:sb,app:ab,cartPopover:ib,filterBar:cb,addAll:lb,footer:ub,collectionCarousel:db,weekTopCreators:fb,loadMore:hb,recentlyViewed:pb,followedCreators:mb,spinner:gb,successAnimation:yb,importListings:vb,sellModal:bb,primaryList:wb,migrate:_b,fittingRoom:Eb,bodyShape:xb,seo:Sb},va=["en","es"];function Yc(e,t="",r={}){for(const[n,o]of Object.entries(e)){const s=t?`${t}.${n}`:n;o&&typeof o=="object"&&!Array.isArray(o)?Yc(o,s,r):r[s]=String(o)}return r}const Tb={en:Yc(L3),es:Yc(Cb)},Ab=n1(),gc={};function Tl(e){return gc[e]||(gc[e]=zv({locale:e,defaultLocale:"en",messages:Tb[e],onError:()=>{}},Ab)),gc[e]}let Vf=Tl("en");function Ib(e){Vf=Tl(e)}function ae(e,t){return Vf.formatMessage({id:e},t)}const kb=Et.span`
43
+ font-size: 12px;
44
+ white-space: nowrap;
45
+ overflow: hidden;
46
+ text-overflow: ellipsis;
47
+ `,Rb=Et.span``,Hf=yl`
48
+ width: 18px;
49
+ height: 18px;
50
+ border-radius: 50%;
51
+ object-fit: cover;
52
+ flex: none;
53
+ background: ${Qe.colors.media};
54
+ `,Pb=Et.span`
55
+ ${Hf};
56
+
57
+ &[data-letter] {
58
+ display: inline-flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ color: ${Qe.colors.white};
62
+ font-size: 11px;
63
+ font-weight: 700;
64
+ line-height: 1;
65
+ text-transform: uppercase;
66
+ }
67
+ `,Nb=Et.img`
68
+ ${Hf};
69
+ `,Nd=Et.span`
70
+ display: inline-flex;
71
+ align-items: center;
72
+ gap: 6px;
73
+ color: ${Qe.colors.muted};
74
+ font-size: 12px;
75
+ min-width: 0;
76
+
77
+ &[data-link] {
78
+ background: none;
79
+ border: 0;
80
+ padding: 0;
81
+ margin: 0;
82
+ font: inherit;
83
+ cursor: pointer;
84
+ max-width: 100%;
85
+ }
86
+ &[data-link]:hover [data-testid='creator-name'] {
87
+ color: ${Qe.colors.text};
88
+ text-decoration: underline;
89
+ }
90
+ `;function Ob(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function jb(e){let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r)>>>0;return`hsl(${t%360}, 52%, 45%)`}function Lb(e,t){var r;return(((r=e==null?void 0:e.trim())==null?void 0:r[0])||t.replace(/^0x/i,"")[0]||"?").toUpperCase()}function Al({address:e,className:t,linkToProfile:r,hidePrefix:n}){var E,A;const o=ol(),{data:s}=Pa(e),i=(A=(E=s==null?void 0:s.avatar)==null?void 0:E.snapshots)==null?void 0:A.face256,[u,d]=oe.useState(!1);if(oe.useEffect(()=>d(!1),[i]),!e)return null;const h=s!=null&&s.name?$f(s.name):Ob(e),p=!!i&&!u?f.jsx(Nb,{"data-avatar":!0,"data-testid":"creator-ava",src:i,alt:"",loading:"lazy",onError:()=>d(!0)}):f.jsx(Pb,{"data-avatar":!0,"data-letter":!0,"data-testid":"creator-ava-letter",style:{backgroundColor:jb(e)},"aria-hidden":!0,children:Lb(s==null?void 0:s.name,e)}),b=f.jsxs(f.Fragment,{children:[p,f.jsxs(kb,{"data-testid":"creator-name",children:[n?null:ae("search.byCreator",{name:""}),f.jsx(Rb,{"data-testid":"creator-display",children:h})]})]});return r?f.jsx(Nd,{as:"button","data-link":!0,className:t,"data-testid":"creator",onClick:g=>{g.stopPropagation(),o(`/assets/creator/${e}`)},children:b}):f.jsx(Nd,{className:t,"data-testid":"creator",children:b})}function zf(){return f.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:[f.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"#1ea672"}),f.jsx("path",{d:"M5.8 10.3l2.7 2.7 5.7-6",stroke:"#fff",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Bb({item:e,onRemove:t}){return f.jsxs("li",{className:"cartd__card",children:[f.jsxs("div",{className:"cartd__thumb",children:[e.thumbnail?f.jsx("img",{src:e.thumbnail,alt:e.name}):null,f.jsx("span",{className:"cartd__thumb-check",children:f.jsx(zf,{})})]}),f.jsxs("div",{className:"cartd__info",children:[f.jsxs("div",{children:[f.jsx("div",{className:"cartd__name",title:e.name,children:e.name}),e.creator?f.jsx(Al,{address:e.creator,className:"cartd__by"}):null]}),f.jsxs("div",{className:"cartd__rowbottom",children:[f.jsxs("div",{className:"cartd__stepper",children:[f.jsx("button",{className:"cartd__step",onClick:()=>t(e.id),"aria-label":ae("cartPopover.removeFromCart",{name:e.name}),children:f.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:f.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),f.jsx("span",{className:"cartd__qty",children:"1"}),f.jsx("button",{className:"cartd__step",disabled:!0,"aria-label":ae("cartPopover.increaseQuantity"),children:f.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:f.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}),f.jsxs("div",{className:"cartd__price",title:Mo(e.priceCredits),children:[f.jsx(hr,{className:"cartd__diamond"}),Kn(e.priceCredits)]})]})]}),f.jsx("button",{className:"cartd__del",onClick:()=>t(e.id),"aria-label":ae("cartPopover.removeItem",{name:e.name}),title:ae("cartPopover.remove"),children:f.jsx(_t,{name:"trash"})})]})}function Mb(){const e=er(d=>d.items),t=er(d=>d.open),r=er(d=>d.justAddedCount),n=er(d=>d.setOpen),o=er(d=>d.remove),s=oe.useRef(null),i=e.reduce((d,h)=>d+h.priceCredits,0),u=e.length;return oe.useEffect(()=>{if(!t)return;const d=h=>{h.key==="Escape"&&n(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[t,n]),!t||u===0?null:Fh.createPortal(f.jsxs("div",{className:"cartd",role:"dialog","aria-modal":"true","aria-label":ae("cartPopover.dialogLabel"),children:[f.jsx("div",{className:"cartd__scrim",onClick:()=>n(!1)}),f.jsxs("aside",{className:"cartd__panel",ref:s,children:[f.jsxs("header",{className:"cartd__head",children:[f.jsx("h2",{className:"cartd__title",children:ae("cartPopover.title",{count:u})}),f.jsx("button",{className:"cartd__close",onClick:()=>n(!1),"aria-label":ae("cartPopover.close"),children:f.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,focusable:"false",children:f.jsx("path",{d:"M5 5l14 14M19 5L5 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),f.jsxs("div",{className:"cartd__body",children:[r>0?f.jsxs("div",{className:"cartd__banner",children:[f.jsx("span",{className:"cartd__banner-check",children:f.jsx(zf,{})}),f.jsxs("p",{children:[f.jsx("strong",{children:ae("cartPopover.bannerCount",{count:r})})," ",ae("cartPopover.bannerAdded")]})]}):null,f.jsx("ul",{className:"cartd__list",children:e.map(d=>f.jsx(Bb,{item:d,onRemove:o},d.id))})]}),f.jsxs("footer",{className:"cartd__foot",children:[f.jsxs("div",{className:"cartd__totalrow",children:[f.jsx("span",{className:"cartd__total-label",children:ae("cartPopover.total",{count:u})}),f.jsxs("span",{className:"cartd__total-val",title:Mo(i),children:[f.jsx(hr,{className:"cartd__total-diamond"}),Kn(i)]})]}),f.jsxs("div",{className:"cartd__ctas",children:[f.jsx(En,{className:"cartd__cta cartd__cta--primary",to:"/cart",onClick:()=>n(!1),children:ae("cartPopover.goToCart")}),f.jsx("button",{className:"cartd__cta cartd__cta--secondary",onClick:()=>n(!1),children:ae("cartPopover.continueShopping")})]})]})]})]}),document.body)}var No={},yc={exports:{}},Od;function Il(){return Od||(Od=1,(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(yc)),yc.exports}var vc={};function rn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gf(e){if(oe.isValidElement(e)||!rn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Gf(e[r])}),t}function Nr(e,t,r={clone:!0}){const n=r.clone?Ke({},e):e;return rn(e)&&rn(t)&&Object.keys(t).forEach(o=>{oe.isValidElement(t[o])?n[o]=t[o]:rn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&rn(e[o])?n[o]=Nr(e[o],t[o],r):r.clone?n[o]=rn(t[o])?Gf(t[o]):t[o]:n[o]=t[o]}),n}const Fb=Object.freeze(Object.defineProperty({__proto__:null,default:Nr,isPlainObject:rn},Symbol.toStringTag,{value:"Module"}));function Zo(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const $b=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"}));var bc={exports:{}},Ye={};/**
91
+ * @license React
92
+ * react-is.production.js
93
+ *
94
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
95
+ *
96
+ * This source code is licensed under the MIT license found in the
97
+ * LICENSE file in the root directory of this source tree.
98
+ */var jd;function Db(){if(jd)return Ye;jd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");function A(g){if(typeof g=="object"&&g!==null){var T=g.$$typeof;switch(T){case e:switch(g=g.type,g){case r:case o:case n:case d:case h:case b:return g;default:switch(g=g&&g.$$typeof,g){case i:case u:case p:case m:return g;case s:return g;default:return T}}case t:return T}}}return Ye.ContextConsumer=s,Ye.ContextProvider=i,Ye.Element=e,Ye.ForwardRef=u,Ye.Fragment=r,Ye.Lazy=p,Ye.Memo=m,Ye.Portal=t,Ye.Profiler=o,Ye.StrictMode=n,Ye.Suspense=d,Ye.SuspenseList=h,Ye.isContextConsumer=function(g){return A(g)===s},Ye.isContextProvider=function(g){return A(g)===i},Ye.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ye.isForwardRef=function(g){return A(g)===u},Ye.isFragment=function(g){return A(g)===r},Ye.isLazy=function(g){return A(g)===p},Ye.isMemo=function(g){return A(g)===m},Ye.isPortal=function(g){return A(g)===t},Ye.isProfiler=function(g){return A(g)===o},Ye.isStrictMode=function(g){return A(g)===n},Ye.isSuspense=function(g){return A(g)===d},Ye.isSuspenseList=function(g){return A(g)===h},Ye.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===d||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===m||g.$$typeof===i||g.$$typeof===s||g.$$typeof===u||g.$$typeof===E||g.getModuleId!==void 0)},Ye.typeOf=A,Ye}var Ld;function qb(){return Ld||(Ld=1,bc.exports=Db()),bc.exports}var Bd=qb();const Ub=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Wf(e){const t=`${e}`.match(Ub);return t&&t[1]||""}function Zf(e,t=""){return e.displayName||e.name||Wf(e)||t}function Md(e,t,r){const n=Zf(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Vb(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Zf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Bd.ForwardRef:return Md(e,e.render,"ForwardRef");case Bd.Memo:return Md(e,e.type,"memo");default:return}}}const Hb=Object.freeze(Object.defineProperty({__proto__:null,default:Vb,getFunctionName:Wf},Symbol.toStringTag,{value:"Module"}));function hn(e){if(typeof e!="string")throw new Error(Zo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const zb=Object.freeze(Object.defineProperty({__proto__:null,default:hn},Symbol.toStringTag,{value:"Module"}));function Gb(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Wb(e,t=166){let r;function n(...o){const s=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function Zb(e,t){return()=>null}function Kb(e,t){var r,n;return oe.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Kf(e){return e&&e.ownerDocument||document}function Yb(e){return Kf(e).defaultView||window}function Qb(e,t){return()=>null}function Yf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Qf=typeof window<"u"?oe.useLayoutEffect:oe.useEffect;let Fd=0;function Jb(e){const[t,r]=oe.useState(e),n=e||t;return oe.useEffect(()=>{t==null&&(Fd+=1,r(`mui-${Fd}`))},[t]),n}const $d=Cc.useId;function Xb(e){if($d!==void 0){const t=$d();return e??t}return Jb(e)}function ew(e,t,r,n,o){return null}function tw({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=oe.useRef(e!==void 0),[s,i]=oe.useState(t),u=o?e:s,d=oe.useCallback(h=>{o||i(h)},[]);return[u,d]}function rw(e){const t=oe.useRef(e);return Qf(()=>{t.current=e}),oe.useRef((...r)=>(0,t.current)(...r)).current}function nw(...e){return oe.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Yf(r,t)})},e)}const Dd={};function ow(e,t){const r=oe.useRef(Dd);return r.current===Dd&&(r.current=e(t)),r}const sw=[];function aw(e){oe.useEffect(e,sw)}class La{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new La}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function t8(){const e=ow(La.create).current;return aw(e.disposeEffect),e}let Ba=!0,Qc=!1;const iw=new La,cw={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function lw(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&cw[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function uw(e){e.metaKey||e.altKey||e.ctrlKey||(Ba=!0)}function wc(){Ba=!1}function dw(){this.visibilityState==="hidden"&&Qc&&(Ba=!0)}function fw(e){e.addEventListener("keydown",uw,!0),e.addEventListener("mousedown",wc,!0),e.addEventListener("pointerdown",wc,!0),e.addEventListener("touchstart",wc,!0),e.addEventListener("visibilitychange",dw,!0)}function hw(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ba||lw(t)}function pw(){const e=oe.useCallback(o=>{o!=null&&fw(o.ownerDocument)},[]),t=oe.useRef(!1);function r(){return t.current?(Qc=!0,iw.start(100,()=>{Qc=!1}),t.current=!1,!0):!1}function n(o){return hw(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Jc(e,t){const r=Ke({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Ke({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},s=t[n];r[n]={},!s||!Object.keys(s)?r[n]=o:!o||!Object.keys(o)?r[n]=s:(r[n]=Ke({},s),Object.keys(o).forEach(i=>{r[n][i]=Jc(o[i],s[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function mw(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((s,i)=>{if(i){const u=t(i);u!==""&&s.push(u),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),n}const qd=e=>e,gw=()=>{let e=qd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=qd}}},Jf=gw(),yw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Xf(e,t,r="Mui"){const n=yw[t];return n?`${r}-${n}`:`${Jf.generate(e)}-${t}`}function vw(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Xf(e,o,r)}),n}function bw(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const ww=Object.freeze(Object.defineProperty({__proto__:null,default:bw},Symbol.toStringTag,{value:"Module"}));function pn(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function eh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=eh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _w(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=eh(e))&&(n&&(n+=" "),n+=t);return n}const th=oe.createContext(void 0);function r8({value:e,children:t}){return f.jsx(th.Provider,{value:e,children:t})}function Ew(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Jc(o.defaultProps,n):!o.styleOverrides&&!o.variants?Jc(o,n):n}function xw({props:e,name:t}){const r=oe.useContext(th);return Ew({props:e,name:t,theme:{components:r}})}function Sw(e){return xw(e)}var wn={},_c={exports:{}},Ud;function Cw(){return Ud||(Ud=1,(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var s in o)({}).hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(_c)),_c.exports}var Ec={exports:{}},Vd;function Tw(){return Vd||(Vd=1,(function(e){function t(r,n){if(r==null)return{};var o={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(n.indexOf(s)!==-1)continue;o[s]=r[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ec)),Ec.exports}function Aw(e,t){const r=rf({key:"css",prepend:e});if(t){const n=r.insert;r.insert=(...o)=>(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),n(...o))}return r}const xc=new Map;function Iw(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=oe.useMemo(()=>{const s=`${t}-${r}`;if(typeof document=="object"&&xc.has(s))return xc.get(s);const i=Aw(t,r);return xc.set(s,i),i},[t,r]);return t||r?f.jsx(Sm,{value:o,children:n}):n}function kw(e){return e==null||Object.keys(e).length===0}function Rw(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(kw(o)?r:o):t;return f.jsx(km,{styles:n})}function Pw(e,t){return Et(e,t)}const Nw=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Hd=[];function Ow(e){return Hd[0]=e,ns(Hd)}const jw=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Rw,StyledEngineProvider:Iw,ThemeContext:Ia,css:yl,default:Pw,internal_processStyles:Nw,internal_serializeStyles:Ow,keyframes:lf},Symbol.toStringTag,{value:"Module"})),Lw=Zr(jw),Bw=Zr(Fb),Mw=Zr(zb),Fw=Zr(Hb),$w=["values","unit","step"],Dw=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>Ke({},r,{[n.key]:n.val}),{})};function rh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pn(e,$w),s=Dw(t),i=Object.keys(s);function u(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r})`}function d(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-n/100}${r})`}function h(b,E){const A=i.indexOf(E);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r}) and (max-width:${(A!==-1&&typeof t[i[A]]=="number"?t[i[A]]:E)-n/100}${r})`}function m(b){return i.indexOf(b)+1<i.length?h(b,i[i.indexOf(b)+1]):u(b)}function p(b){const E=i.indexOf(b);return E===0?u(i[1]):E===i.length-1?d(i[E]):h(b,i[i.indexOf(b)+1]).replace("@media","@media not all and")}return Ke({keys:i,values:s,up:u,down:d,between:h,only:m,not:p,unit:r},o)}const qw={borderRadius:4};function Fo(e,t){return t?Nr(e,t,{clone:!1}):e}const kl={xs:0,sm:600,md:900,lg:1200,xl:1536},zd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${kl[e]}px)`};function Wr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||zd;return t.reduce((i,u,d)=>(i[s.up(s.keys[d])]=r(t[d]),i),{})}if(typeof t=="object"){const s=n.breakpoints||zd;return Object.keys(t).reduce((i,u)=>{if(Object.keys(s.values||kl).indexOf(u)!==-1){const d=s.up(u);i[d]=r(t[u],u)}else{const d=u;i[d]=t[d]}return i},{})}return r(t)}function Uw(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const s=e.up(o);return n[s]={},n},{}))||{}}function Gd(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Ma(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ea(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Ma(e,r)||n,t&&(o=t(o,n,e)),o}function pt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,s=i=>{if(i[t]==null)return null;const u=i[t],d=i.theme,h=Ma(d,n)||{};return Wr(i,u,p=>{let b=Ea(h,o,p);return p===b&&typeof p=="string"&&(b=Ea(h,o,`${t}${p==="default"?"":hn(p)}`,p)),r===!1?b:{[r]:b}})};return s.propTypes={},s.filterProps=[t],s}function Vw(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Hw={m:"margin",p:"padding"},zw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gw=Vw(e=>{if(e.length>2)if(Wd[e])e=Wd[e];else return[e];const[t,r]=e.split(""),n=Hw[t],o=zw[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),Rl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Rl,...Pl];function is(e,t,r,n){var o;const s=(o=Ma(e,t,!1))!=null?o:r;return typeof s=="number"?i=>typeof i=="string"?i:s*i:Array.isArray(s)?i=>typeof i=="string"?i:s[i]:typeof s=="function"?s:()=>{}}function nh(e){return is(e,"spacing",8)}function cs(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Ww(e,t){return r=>e.reduce((n,o)=>(n[o]=cs(t,r),n),{})}function Zw(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Gw(r),s=Ww(o,n),i=e[r];return Wr(e,i,s)}function oh(e,t){const r=nh(e.theme);return Object.keys(e).map(n=>Zw(e,t,n,r)).reduce(Fo,{})}function lt(e){return oh(e,Rl)}lt.propTypes={};lt.filterProps=Rl;function ut(e){return oh(e,Pl)}ut.propTypes={};ut.filterProps=Pl;function Kw(e=8){if(e.mui)return e;const t=nh({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Fa(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>t[s]?Fo(o,t[s](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function ir(e){return typeof e!="number"?e:`${e}px solid`}function lr(e,t){return pt({prop:e,themeKey:"borders",transform:t})}const Yw=lr("border",ir),Qw=lr("borderTop",ir),Jw=lr("borderRight",ir),Xw=lr("borderBottom",ir),e_=lr("borderLeft",ir),t_=lr("borderColor"),r_=lr("borderTopColor"),n_=lr("borderRightColor"),o_=lr("borderBottomColor"),s_=lr("borderLeftColor"),a_=lr("outline",ir),i_=lr("outlineColor"),$a=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=is(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:cs(t,n)});return Wr(e,e.borderRadius,r)}return null};$a.propTypes={};$a.filterProps=["borderRadius"];Fa(Yw,Qw,Jw,Xw,e_,t_,r_,n_,o_,s_,$a,a_,i_);const Da=e=>{if(e.gap!==void 0&&e.gap!==null){const t=is(e.theme,"spacing",8),r=n=>({gap:cs(t,n)});return Wr(e,e.gap,r)}return null};Da.propTypes={};Da.filterProps=["gap"];const qa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=is(e.theme,"spacing",8),r=n=>({columnGap:cs(t,n)});return Wr(e,e.columnGap,r)}return null};qa.propTypes={};qa.filterProps=["columnGap"];const Ua=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=is(e.theme,"spacing",8),r=n=>({rowGap:cs(t,n)});return Wr(e,e.rowGap,r)}return null};Ua.propTypes={};Ua.filterProps=["rowGap"];const c_=pt({prop:"gridColumn"}),l_=pt({prop:"gridRow"}),u_=pt({prop:"gridAutoFlow"}),d_=pt({prop:"gridAutoColumns"}),f_=pt({prop:"gridAutoRows"}),h_=pt({prop:"gridTemplateColumns"}),p_=pt({prop:"gridTemplateRows"}),m_=pt({prop:"gridTemplateAreas"}),g_=pt({prop:"gridArea"});Fa(Da,qa,Ua,c_,l_,u_,d_,f_,h_,p_,m_,g_);function Qn(e,t){return t==="grey"?t:e}const y_=pt({prop:"color",themeKey:"palette",transform:Qn}),v_=pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qn}),b_=pt({prop:"backgroundColor",themeKey:"palette",transform:Qn});Fa(y_,v_,b_);function tr(e){return e<=1&&e!==0?`${e*100}%`:e}const w_=pt({prop:"width",transform:tr}),Nl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||kl[r];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:tr(r)}};return Wr(e,e.maxWidth,t)}return null};Nl.filterProps=["maxWidth"];const __=pt({prop:"minWidth",transform:tr}),E_=pt({prop:"height",transform:tr}),x_=pt({prop:"maxHeight",transform:tr}),S_=pt({prop:"minHeight",transform:tr});pt({prop:"size",cssProperty:"width",transform:tr});pt({prop:"size",cssProperty:"height",transform:tr});const C_=pt({prop:"boxSizing"});Fa(w_,Nl,__,E_,x_,S_,C_);const ls={border:{themeKey:"borders",transform:ir},borderTop:{themeKey:"borders",transform:ir},borderRight:{themeKey:"borders",transform:ir},borderBottom:{themeKey:"borders",transform:ir},borderLeft:{themeKey:"borders",transform:ir},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ir},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$a},color:{themeKey:"palette",transform:Qn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qn},backgroundColor:{themeKey:"palette",transform:Qn},p:{style:ut},pt:{style:ut},pr:{style:ut},pb:{style:ut},pl:{style:ut},px:{style:ut},py:{style:ut},padding:{style:ut},paddingTop:{style:ut},paddingRight:{style:ut},paddingBottom:{style:ut},paddingLeft:{style:ut},paddingX:{style:ut},paddingY:{style:ut},paddingInline:{style:ut},paddingInlineStart:{style:ut},paddingInlineEnd:{style:ut},paddingBlock:{style:ut},paddingBlockStart:{style:ut},paddingBlockEnd:{style:ut},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Da},rowGap:{style:Ua},columnGap:{style:qa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tr},maxWidth:{style:Nl},minWidth:{transform:tr},height:{transform:tr},maxHeight:{transform:tr},minHeight:{transform:tr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function T_(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function A_(e,t){return typeof e=="function"?e(t):e}function sh(){function e(r,n,o,s){const i={[r]:n,theme:o},u=s[r];if(!u)return{[r]:n};const{cssProperty:d=r,themeKey:h,transform:m,style:p}=u;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[r]:n};const b=Ma(o,h)||{};return p?p(i):Wr(i,n,A=>{let g=Ea(b,m,A);return A===g&&typeof A=="string"&&(g=Ea(b,m,`${r}${A==="default"?"":hn(A)}`,A)),d===!1?g:{[d]:g}})}function t(r){var n;const{sx:o,theme:s={},nested:i}=r||{};if(!o)return null;const u=(n=s.unstable_sxConfig)!=null?n:ls;function d(h){let m=h;if(typeof h=="function")m=h(s);else if(typeof h!="object")return h;if(!m)return null;const p=Uw(s.breakpoints),b=Object.keys(p);let E=p;return Object.keys(m).forEach(A=>{const g=A_(m[A],s);if(g!=null)if(typeof g=="object")if(u[A])E=Fo(E,e(A,g,s,u));else{const T=Wr({theme:s},g,H=>({[A]:H}));T_(T,g)?E[A]=t({sx:g,theme:s,nested:!0}):E=Fo(E,T)}else E=Fo(E,e(A,g,s,u))}),!i&&s.modularCssLayers?{"@layer sx":Gd(b,E)}:Gd(b,E)}return Array.isArray(o)?o.map(d):d(o)}return t}const Va=sh();Va.filterProps=["sx"];function ah(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const I_=["breakpoints","palette","spacing","shape"];function ih(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:s={}}=e,i=pn(e,I_),u=rh(r),d=Kw(o);let h=Nr({breakpoints:u,direction:"ltr",components:{},palette:Ke({mode:"light"},n),spacing:d,shape:Ke({},qw,s)},i);return h.applyStyles=ah,h=t.reduce((m,p)=>Nr(m,p),h),h.unstable_sxConfig=Ke({},ls,i==null?void 0:i.unstable_sxConfig),h.unstable_sx=function(p){return Va({sx:p,theme:this})},h}const k_=Object.freeze(Object.defineProperty({__proto__:null,default:ih,private_createBreakpoints:rh,unstable_applyStyles:ah},Symbol.toStringTag,{value:"Module"})),R_=Zr(k_),P_=["sx"],N_=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ls;return Object.keys(e).forEach(s=>{o[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function O_(e){const{sx:t}=e,r=pn(e,P_),{systemProps:n,otherProps:o}=N_(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...i)=>{const u=t(...i);return rn(u)?Ke({},n,u):n}:s=Ke({},n,t),Ke({},o,{sx:s})}const j_=Object.freeze(Object.defineProperty({__proto__:null,default:Va,extendSxProp:O_,unstable_createStyleFunctionSx:sh,unstable_defaultSxConfig:ls},Symbol.toStringTag,{value:"Module"})),L_=Zr(j_);var Zd;function B_(){if(Zd)return wn;Zd=1;var e=Il();Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=Y,wn.shouldForwardProp=A,wn.systemDefaultTheme=void 0;var t=e(Cw()),r=e(Tw()),n=p(Lw),o=Bw;e(Mw),e(Fw);var s=e(R_),i=e(L_);const u=["ownerState"],d=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m(U){if(typeof WeakMap!="function")return null;var S=new WeakMap,$=new WeakMap;return(m=function(J){return J?$:S})(U)}function p(U,S){if(U&&U.__esModule)return U;if(U===null||typeof U!="object"&&typeof U!="function")return{default:U};var $=m(S);if($&&$.has(U))return $.get(U);var J={__proto__:null},W=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ne in U)if(ne!=="default"&&Object.prototype.hasOwnProperty.call(U,ne)){var X=W?Object.getOwnPropertyDescriptor(U,ne):null;X&&(X.get||X.set)?Object.defineProperty(J,ne,X):J[ne]=U[ne]}return J.default=U,$&&$.set(U,J),J}function b(U){return Object.keys(U).length===0}function E(U){return typeof U=="string"&&U.charCodeAt(0)>96}function A(U){return U!=="ownerState"&&U!=="theme"&&U!=="sx"&&U!=="as"}function g(U,S){return S&&U&&typeof U=="object"&&U.styles&&!U.styles.startsWith("@layer")&&(U.styles=`@layer ${S}{${String(U.styles)}}`),U}const T=wn.systemDefaultTheme=(0,s.default)(),H=U=>U&&U.charAt(0).toLowerCase()+U.slice(1);function v({defaultTheme:U,theme:S,themeId:$}){return b(S)?U:S[$]||S}function k(U){return U?(S,$)=>$[U]:null}function w(U,S,$){let{ownerState:J}=S,W=(0,r.default)(S,u);const ne=typeof U=="function"?U((0,t.default)({ownerState:J},W)):U;if(Array.isArray(ne))return ne.flatMap(X=>w(X,(0,t.default)({ownerState:J},W),$));if(ne&&typeof ne=="object"&&Array.isArray(ne.variants)){const{variants:X=[]}=ne;let P=(0,r.default)(ne,d);return X.forEach(K=>{let Z=!0;if(typeof K.props=="function"?Z=K.props((0,t.default)({ownerState:J},W,J)):Object.keys(K.props).forEach(D=>{(J==null?void 0:J[D])!==K.props[D]&&W[D]!==K.props[D]&&(Z=!1)}),Z){Array.isArray(P)||(P=[P]);const D=typeof K.style=="function"?K.style((0,t.default)({ownerState:J},W,J)):K.style;P.push($?g((0,n.internal_serializeStyles)(D),$):D)}}),P}return $?g((0,n.internal_serializeStyles)(ne),$):ne}function Y(U={}){const{themeId:S,defaultTheme:$=T,rootShouldForwardProp:J=A,slotShouldForwardProp:W=A}=U,ne=X=>(0,i.default)((0,t.default)({},X,{theme:v((0,t.default)({},X,{defaultTheme:$,themeId:S}))}));return ne.__mui_systemSx=!0,(X,B={})=>{(0,n.internal_processStyles)(X,we=>we.filter(xe=>!(xe!=null&&xe.__mui_systemSx)));const{name:P,slot:K,skipVariantsResolver:Z,skipSx:D,overridesResolver:q=k(H(K))}=B,R=(0,r.default)(B,h),O=P&&P.startsWith("Mui")||K?"components":"custom",z=Z!==void 0?Z:K&&K!=="Root"&&K!=="root"||!1,Q=D||!1;let le,ce=A;K==="Root"||K==="root"?ce=J:K?ce=W:E(X)&&(ce=void 0);const ie=(0,n.default)(X,(0,t.default)({shouldForwardProp:ce,label:le},R)),de=we=>typeof we=="function"&&we.__emotion_real!==we||(0,o.isPlainObject)(we)?xe=>{const ye=v({theme:xe.theme,defaultTheme:$,themeId:S});return w(we,(0,t.default)({},xe,{theme:ye}),ye.modularCssLayers?O:void 0)}:we,Re=(we,...xe)=>{let ye=de(we);const He=xe?xe.map(de):[];P&&q&&He.push(fe=>{const ve=v((0,t.default)({},fe,{defaultTheme:$,themeId:S}));if(!ve.components||!ve.components[P]||!ve.components[P].styleOverrides)return null;const Ae=ve.components[P].styleOverrides,Le={};return Object.entries(Ae).forEach(([Be,ft])=>{Le[Be]=w(ft,(0,t.default)({},fe,{theme:ve}),ve.modularCssLayers?"theme":void 0)}),q(fe,Le)}),P&&!z&&He.push(fe=>{var ve;const Ae=v((0,t.default)({},fe,{defaultTheme:$,themeId:S})),Le=Ae==null||(ve=Ae.components)==null||(ve=ve[P])==null?void 0:ve.variants;return w({variants:Le},(0,t.default)({},fe,{theme:Ae}),Ae.modularCssLayers?"theme":void 0)}),Q||He.push(ne);const qe=He.length-xe.length;if(Array.isArray(we)&&qe>0){const fe=new Array(qe).fill("");ye=[...we,...fe],ye.raw=[...we.raw,...fe]}const he=ie(ye,...He);return X.muiName&&(he.muiName=X.muiName),he};return ie.withConfig&&(Re.withConfig=ie.withConfig),Re}}return wn}var M_=B_();const F_=Sa(M_);function $_(e,t){return Ke({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ct={};const D_=Zr($b),q_=Zr(ww);var Kd;function U_(){if(Kd)return ct;Kd=1;var e=Il();Object.defineProperty(ct,"__esModule",{value:!0}),ct.alpha=A,ct.blend=U,ct.colorChannel=void 0,ct.darken=T,ct.decomposeColor=i,ct.emphasize=w,ct.getContrastRatio=E,ct.getLuminance=b,ct.hexToRgb=o,ct.hslToRgb=p,ct.lighten=v,ct.private_safeAlpha=g,ct.private_safeColorChannel=void 0,ct.private_safeDarken=H,ct.private_safeEmphasize=Y,ct.private_safeLighten=k,ct.recomposeColor=h,ct.rgbToHex=m;var t=e(D_),r=e(q_);function n(S,$=0,J=1){return(0,r.default)(S,$,J)}function o(S){S=S.slice(1);const $=new RegExp(`.{1,${S.length>=6?2:1}}`,"g");let J=S.match($);return J&&J[0].length===1&&(J=J.map(W=>W+W)),J?`rgb${J.length===4?"a":""}(${J.map((W,ne)=>ne<3?parseInt(W,16):Math.round(parseInt(W,16)/255*1e3)/1e3).join(", ")})`:""}function s(S){const $=S.toString(16);return $.length===1?`0${$}`:$}function i(S){if(S.type)return S;if(S.charAt(0)==="#")return i(o(S));const $=S.indexOf("("),J=S.substring(0,$);if(["rgb","rgba","hsl","hsla","color"].indexOf(J)===-1)throw new Error((0,t.default)(9,S));let W=S.substring($+1,S.length-1),ne;if(J==="color"){if(W=W.split(" "),ne=W.shift(),W.length===4&&W[3].charAt(0)==="/"&&(W[3]=W[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(ne)===-1)throw new Error((0,t.default)(10,ne))}else W=W.split(",");return W=W.map(X=>parseFloat(X)),{type:J,values:W,colorSpace:ne}}const u=S=>{const $=i(S);return $.values.slice(0,3).map((J,W)=>$.type.indexOf("hsl")!==-1&&W!==0?`${J}%`:J).join(" ")};ct.colorChannel=u;const d=(S,$)=>{try{return u(S)}catch{return S}};ct.private_safeColorChannel=d;function h(S){const{type:$,colorSpace:J}=S;let{values:W}=S;return $.indexOf("rgb")!==-1?W=W.map((ne,X)=>X<3?parseInt(ne,10):ne):$.indexOf("hsl")!==-1&&(W[1]=`${W[1]}%`,W[2]=`${W[2]}%`),$.indexOf("color")!==-1?W=`${J} ${W.join(" ")}`:W=`${W.join(", ")}`,`${$}(${W})`}function m(S){if(S.indexOf("#")===0)return S;const{values:$}=i(S);return`#${$.map((J,W)=>s(W===3?Math.round(255*J):J)).join("")}`}function p(S){S=i(S);const{values:$}=S,J=$[0],W=$[1]/100,ne=$[2]/100,X=W*Math.min(ne,1-ne),B=(Z,D=(Z+J/30)%12)=>ne-X*Math.max(Math.min(D-3,9-D,1),-1);let P="rgb";const K=[Math.round(B(0)*255),Math.round(B(8)*255),Math.round(B(4)*255)];return S.type==="hsla"&&(P+="a",K.push($[3])),h({type:P,values:K})}function b(S){S=i(S);let $=S.type==="hsl"||S.type==="hsla"?i(p(S)).values:S.values;return $=$.map(J=>(S.type!=="color"&&(J/=255),J<=.03928?J/12.92:((J+.055)/1.055)**2.4)),Number((.2126*$[0]+.7152*$[1]+.0722*$[2]).toFixed(3))}function E(S,$){const J=b(S),W=b($);return(Math.max(J,W)+.05)/(Math.min(J,W)+.05)}function A(S,$){return S=i(S),$=n($),(S.type==="rgb"||S.type==="hsl")&&(S.type+="a"),S.type==="color"?S.values[3]=`/${$}`:S.values[3]=$,h(S)}function g(S,$,J){try{return A(S,$)}catch{return S}}function T(S,$){if(S=i(S),$=n($),S.type.indexOf("hsl")!==-1)S.values[2]*=1-$;else if(S.type.indexOf("rgb")!==-1||S.type.indexOf("color")!==-1)for(let J=0;J<3;J+=1)S.values[J]*=1-$;return h(S)}function H(S,$,J){try{return T(S,$)}catch{return S}}function v(S,$){if(S=i(S),$=n($),S.type.indexOf("hsl")!==-1)S.values[2]+=(100-S.values[2])*$;else if(S.type.indexOf("rgb")!==-1)for(let J=0;J<3;J+=1)S.values[J]+=(255-S.values[J])*$;else if(S.type.indexOf("color")!==-1)for(let J=0;J<3;J+=1)S.values[J]+=(1-S.values[J])*$;return h(S)}function k(S,$,J){try{return v(S,$)}catch{return S}}function w(S,$=.15){return b(S)>.5?T(S,$):v(S,$)}function Y(S,$,J){try{return w(S,$)}catch{return S}}function U(S,$,J,W=1){const ne=(K,Z)=>Math.round((K**(1/W)*(1-J)+Z**(1/W)*J)**W),X=i(S),B=i($),P=[ne(X.values[0],B.values[0]),ne(X.values[1],B.values[1]),ne(X.values[2],B.values[2])];return h({type:"rgb",values:P})}return ct}var Xc=U_();const Ko={black:"#000",white:"#fff"},V_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Hn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},zn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Oo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Gn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Wn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Zn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},H_=["mode","contrastThreshold","tonalOffset"],Yd={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ko.white,default:Ko.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Sc={text:{primary:Ko.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ko.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Qd(e,t,r,n){const o=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Xc.lighten(e.main,o):t==="dark"&&(e.dark=Xc.darken(e.main,s)))}function z_(e="light"){return e==="dark"?{main:Gn[200],light:Gn[50],dark:Gn[400]}:{main:Gn[700],light:Gn[400],dark:Gn[800]}}function G_(e="light"){return e==="dark"?{main:Hn[200],light:Hn[50],dark:Hn[400]}:{main:Hn[500],light:Hn[300],dark:Hn[700]}}function W_(e="light"){return e==="dark"?{main:zn[500],light:zn[300],dark:zn[700]}:{main:zn[700],light:zn[400],dark:zn[800]}}function Z_(e="light"){return e==="dark"?{main:Wn[400],light:Wn[300],dark:Wn[700]}:{main:Wn[700],light:Wn[500],dark:Wn[900]}}function K_(e="light"){return e==="dark"?{main:Zn[400],light:Zn[300],dark:Zn[700]}:{main:Zn[800],light:Zn[500],dark:Zn[900]}}function Y_(e="light"){return e==="dark"?{main:Oo[400],light:Oo[300],dark:Oo[700]}:{main:"#ed6c02",light:Oo[500],dark:Oo[900]}}function Q_(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pn(e,H_),s=e.primary||z_(t),i=e.secondary||G_(t),u=e.error||W_(t),d=e.info||Z_(t),h=e.success||K_(t),m=e.warning||Y_(t);function p(g){return Xc.getContrastRatio(g,Sc.text.primary)>=r?Sc.text.primary:Yd.text.primary}const b=({color:g,name:T,mainShade:H=500,lightShade:v=300,darkShade:k=700})=>{if(g=Ke({},g),!g.main&&g[H]&&(g.main=g[H]),!g.hasOwnProperty("main"))throw new Error(Zo(11,T?` (${T})`:"",H));if(typeof g.main!="string")throw new Error(Zo(12,T?` (${T})`:"",JSON.stringify(g.main)));return Qd(g,"light",v,n),Qd(g,"dark",k,n),g.contrastText||(g.contrastText=p(g.main)),g},E={dark:Sc,light:Yd};return Nr(Ke({common:Ke({},Ko),mode:t,primary:b({color:s,name:"primary"}),secondary:b({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:u,name:"error"}),warning:b({color:m,name:"warning"}),info:b({color:d,name:"info"}),success:b({color:h,name:"success"}),grey:V_,contrastThreshold:r,getContrastText:p,augmentColor:b,tonalOffset:n},E[t]),o)}const J_=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function X_(e){return Math.round(e*1e5)/1e5}const Jd={textTransform:"uppercase"},Xd='"Roboto", "Helvetica", "Arial", sans-serif';function e5(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Xd,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:m,pxToRem:p}=r,b=pn(r,J_),E=o/14,A=p||(H=>`${H/h*E}rem`),g=(H,v,k,w,Y)=>Ke({fontFamily:n,fontWeight:H,fontSize:A(v),lineHeight:k},n===Xd?{letterSpacing:`${X_(w/v)}em`}:{},Y,m),T={h1:g(s,96,1.167,-1.5),h2:g(s,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(u,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(u,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(u,14,1.75,.4,Jd),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Jd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nr(Ke({htmlFontSize:h,pxToRem:A,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:u,fontWeightBold:d},T),b,{clone:!1})}const t5=.2,r5=.14,n5=.12;function at(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${t5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${r5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${n5})`].join(",")}const o5=["none",at(0,2,1,-1,0,1,1,0,0,1,3,0),at(0,3,1,-2,0,2,2,0,0,1,5,0),at(0,3,3,-2,0,3,4,0,0,1,8,0),at(0,2,4,-1,0,4,5,0,0,1,10,0),at(0,3,5,-1,0,5,8,0,0,1,14,0),at(0,3,5,-1,0,6,10,0,0,1,18,0),at(0,4,5,-2,0,7,10,1,0,2,16,1),at(0,5,5,-3,0,8,10,1,0,3,14,2),at(0,5,6,-3,0,9,12,1,0,3,16,2),at(0,6,6,-3,0,10,14,1,0,4,18,3),at(0,6,7,-4,0,11,15,1,0,4,20,3),at(0,7,8,-4,0,12,17,2,0,5,22,4),at(0,7,8,-4,0,13,19,2,0,5,24,4),at(0,7,9,-4,0,14,21,2,0,5,26,4),at(0,8,9,-5,0,15,22,2,0,6,28,5),at(0,8,10,-5,0,16,24,2,0,6,30,5),at(0,8,11,-5,0,17,26,2,0,6,32,5),at(0,9,11,-5,0,18,28,2,0,7,34,6),at(0,9,12,-6,0,19,29,2,0,7,36,6),at(0,10,13,-6,0,20,31,3,0,8,38,7),at(0,10,13,-6,0,21,33,3,0,8,40,7),at(0,10,14,-6,0,22,35,3,0,8,42,7),at(0,11,14,-7,0,23,36,3,0,9,44,8),at(0,11,15,-7,0,24,38,3,0,9,46,8)],s5=["duration","easing","delay"],a5={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function e2(e){return`${Math.round(e)}ms`}function c5(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function l5(e){const t=Ke({},a5,e.easing),r=Ke({},i5,e.duration);return Ke({getAutoHeightDuration:c5,create:(o=["all"],s={})=>{const{duration:i=r.standard,easing:u=t.easeInOut,delay:d=0}=s;return pn(s,s5),(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof i=="string"?i:e2(i)} ${u} ${typeof d=="string"?d:e2(d)}`).join(",")}},e,{easing:t,duration:r})}const u5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},d5=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ch(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:s={}}=e,i=pn(e,d5);if(e.vars)throw new Error(Zo(18));const u=Q_(n),d=ih(e);let h=Nr(d,{mixins:$_(d.breakpoints,r),palette:u,shadows:o5.slice(),typography:e5(u,s),transitions:l5(o),zIndex:Ke({},u5)});return h=Nr(h,i),h=t.reduce((m,p)=>Nr(m,p),h),h.unstable_sxConfig=Ke({},ls,i==null?void 0:i.unstable_sxConfig),h.unstable_sx=function(p){return Va({sx:p,theme:this})},h}function n8(...e){return ch(...e)}const f5=ch(),h5="$$material";function p5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const m5=e=>p5(e)&&e!=="classes",g5=F_({themeId:h5,defaultTheme:f5,rootShouldForwardProp:m5});function y5(e){return Xf("MuiSvgIcon",e)}vw("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const v5=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b5=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${hn(t)}`,`fontSize${hn(r)}`]};return mw(o,y5,n)},w5=g5("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${hn(r.color)}`],t[`fontSize${hn(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,s,i,u,d,h,m,p,b,E,A;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem",large:((h=e.typography)==null||(m=h.pxToRem)==null?void 0:m.call(h,35))||"2.1875rem"}[t.fontSize],color:(p=(b=(e.vars||e).palette)==null||(b=b[t.color])==null?void 0:b.main)!=null?p:{action:(E=(e.vars||e).palette)==null||(E=E.action)==null?void 0:E.active,disabled:(A=(e.vars||e).palette)==null||(A=A.action)==null?void 0:A.disabled,inherit:void 0}[t.color]}}),el=oe.forwardRef(function(t,r){const n=Sw({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:u="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:m=!1,titleAccess:p,viewBox:b="0 0 24 24"}=n,E=pn(n,v5),A=oe.isValidElement(o)&&o.type==="svg",g=Ke({},n,{color:i,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:b,hasSvgAsChild:A}),T={};m||(T.viewBox=b);const H=b5(g);return f.jsxs(w5,Ke({as:u,className:_w(H.root,s),focusable:"false",color:h,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},T,E,A&&o.props,{ownerState:g,children:[A?o.props.children:o,p?f.jsx("title",{children:p}):null]}))});el.muiName="SvgIcon";function _5(e,t){function r(n,o){return f.jsx(el,Ke({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=el.muiName,oe.memo(oe.forwardRef(r))}const E5={configure:e=>{Jf.configure(e)}},x5=Object.freeze(Object.defineProperty({__proto__:null,capitalize:hn,createChainedFunction:Gb,createSvgIcon:_5,debounce:Wb,deprecatedPropType:Zb,isMuiElement:Kb,ownerDocument:Kf,ownerWindow:Yb,requirePropFactory:Qb,setRef:Yf,unstable_ClassNameGenerator:E5,unstable_useEnhancedEffect:Qf,unstable_useId:Xb,unsupportedProp:ew,useControlled:tw,useEventCallback:rw,useForkRef:nw,useIsFocusVisible:pw},Symbol.toStringTag,{value:"Module"})),S5=Zr(x5);var t2;function C5(){return t2||(t2=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=S5})(vc)),vc}var r2;function T5(){if(r2)return No;r2=1;var e=Il();Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var t=e(C5()),r=$h();return No.default=(0,t.default)((0,r.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),No}var A5=T5();const lh=Sa(A5),Ha=`${Ze.nftApiUrl}/v1`;function uh(e){if(!e)return 0;try{return Math.ceil(Number(O2(e))*10)}catch{return 0}}function o8(e){if(!e)return 0;try{const t=BigInt(e),r=10n**16n;return Number((t+r-1n)/r)}catch{return 0}}async function s8(e,t){var n,o,s;const r=new URLSearchParams({contractAddresses:e,itemId:t,first:"1"});try{const i=await fetch(`${Ze.nftApiUrl}/v2/catalog?${r.toString()}`);if(!i.ok)return"";const{data:u}=await i.json(),d=(n=u==null?void 0:u[0])==null?void 0:n.data;return(((o=d==null?void 0:d.wearable)==null?void 0:o.description)??((s=d==null?void 0:d.emote)==null?void 0:s.description)??"").trim()}catch{return""}}async function a8(e){const{listings:t}=await za({contractAddress:e,first:200}),r={};for(const n of t)n.listingType!=="primary"||n.itemId==null||(r[String(n.itemId)]={isOnSale:!0,priceCredits:n.priceCredits,tradeId:n.tradeId});return r}async function I5(e,t){var s;const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${Ha}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:o}=await n.json();return((s=o==null?void 0:o[0])==null?void 0:s.nft)??null}function Ol(e){return{id:e.tradeId,tradeId:e.tradeId,name:e.name,creator:e.creator,contractAddress:e.contractAddress,itemId:e.itemId,tokenId:e.tokenId??void 0,category:e.category,wearableCategory:e.wearableCategory??void 0,rarity:e.rarity,network:e.network,chainId:e.chainId,thumbnail:e.thumbnail,priceCredits:e.priceCredits,gender:e.gender??null,isSmart:e.isSmart??!1,available:e.listingType==="primary"?e.available:void 0,compareAtCredits:e.compareAtCredits!=null&&e.compareAtCredits>e.priceCredits?e.compareAtCredits:void 0,saleEndsAt:e.saleEndsAt!=null?e.saleEndsAt*1e3:void 0}}async function za(e){var o,s;const t=new URLSearchParams;(e.category==="wearable"||e.category==="emote")&&t.set("category",e.category),e.first!=null&&t.set("first",String(e.first)),e.skip!=null&&t.set("skip",String(e.skip)),e.contractAddress&&t.set("contractAddress",e.contractAddress),e.itemId!=null&&t.set("itemId",e.itemId),e.creator&&t.set("creator",e.creator),(o=e.rarities)!=null&&o.length&&t.set("rarity",e.rarities.join(",")),(s=e.wearableCategories)!=null&&s.length&&t.set("wearableCategory",e.wearableCategories.join(",")),e.minPriceCredits!=null&&t.set("minPriceCredits",String(e.minPriceCredits)),e.maxPriceCredits!=null&&t.set("maxPriceCredits",String(e.maxPriceCredits)),e.search&&t.set("search",e.search),e.sortBy&&t.set("sortBy",e.sortBy);const r=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/shop?${t.toString()}`);if(!r.ok)throw new Error(`fetchShopListings ${r.status}`);const n=await r.json();return{listings:n.data??[],total:n.total??0}}async function i8(e,t){const{listings:r}=await za({contractAddress:e,itemId:t,first:1});return r[0]?Ol(r[0]):null}async function dh({first:e=100,...t}={}){const{listings:r,total:n}=await za({...t,first:e});return{items:r.map(Ol),total:n}}function k5(e){return{...Ol(e),source:e.source,manaWei:e.manaWei??null}}async function c8({first:e=100,...t}={}){var i,u;const r=new URLSearchParams;(t.category==="wearable"||t.category==="emote")&&r.set("category",t.category),r.set("first",String(e)),t.skip!=null&&r.set("skip",String(t.skip)),t.contractAddress&&r.set("contractAddress",t.contractAddress),t.itemId!=null&&r.set("itemId",t.itemId),t.creator&&r.set("creator",t.creator),(i=t.rarities)!=null&&i.length&&r.set("rarity",t.rarities.join(",")),(u=t.wearableCategories)!=null&&u.length&&r.set("wearableCategory",t.wearableCategories.join(",")),t.minPriceCredits!=null&&r.set("minPriceCredits",String(t.minPriceCredits)),t.maxPriceCredits!=null&&r.set("maxPriceCredits",String(t.maxPriceCredits)),t.search&&r.set("search",t.search),t.sortBy&&r.set("sortBy",t.sortBy);const n=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/unified?${r.toString()}`);if(!n.ok)throw new Error(`fetchUnified ${n.status}`);const o=await n.json(),s=o.data??[];return{items:s.map(k5),total:o.total??s.length}}async function l8(e,t,r){try{const n=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,itemId:r,first:"1"}),o=await fetch(`${Ha}/nfts?${n.toString()}`);if(!o.ok)return!1;const{total:s}=await o.json();return(s??0)>0}catch{return!1}}async function u8(e,{category:t="wearable",first:r=48,skip:n=0}={}){const o=new URLSearchParams({owner:e.toLowerCase(),category:t,first:String(r),skip:String(n),sortBy:"newest",orderDirection:"desc"}),s=await fetch(`${Ha}/nfts?${o.toString()}`);if(!s.ok)throw new Error(`Failed to fetch assets (${s.status})`);const{data:i,total:u}=await s.json();return{assets:i.map(h=>{var m,p,b,E,A;return{id:h.nft.id,contractAddress:h.nft.contractAddress,tokenId:h.nft.tokenId,itemId:h.nft.itemId??null,name:h.nft.name,category:h.nft.category,image:h.nft.image,rarity:((p=(m=h.nft.data)==null?void 0:m.wearable)==null?void 0:p.rarity)??((E=(b=h.nft.data)==null?void 0:b.emote)==null?void 0:E.rarity),network:h.nft.network,chainId:h.nft.chainId,isOnSale:h.order!=null,listingPrice:h.order?uh(h.order.price):void 0,tradeId:(A=h.order)==null?void 0:A.tradeId}}),total:u}}const R5="dcl:marketplace";async function d8(e,t){const{TradeService:r}=await xt(async()=>{const{TradeService:o}=await import("./TradeService-tfJ3u36y.js");return{TradeService:o}},__vite__mapDeps([11,7,1,6,2,12,9,10,8]));return new r(R5,Ze.marketplaceServerUrl,()=>t).addTrade(e)}class fh extends Error{constructor(t){super("fetchTrade 404"),this.tradeId=t,this.name="TradeNotFoundError"}}async function jl(e){var n;const t=await fetch(`${Ze.marketplaceServerUrl}/v1/trades/${e}`);if(t.status===404)throw(n=t.body)==null||n.cancel(),new fh(e);if(!t.ok)throw new Error(`fetchTrade ${t.status}`);const r=await t.json();return r.data??r}async function f8(e){if(e.tradeId)try{return await jl(e.tradeId)}catch(t){if(!(t instanceof fh)||!e.itemId)throw t}return e.itemId?N5(e.contractAddress,e.itemId):null}async function P5(e,t){const r=new URLSearchParams({contractAddress:e,itemId:t,first:"1"}),n=await fetch(`${Ha}/items?${r.toString()}`);if(!n.ok)return null;const{data:o}=await n.json();return(o==null?void 0:o[0])??null}async function h8(e){var d,h;let t;try{t=await jl(e)}catch{return null}const r=(d=t.sent)==null?void 0:d[0],n=(h=t.received)==null?void 0:h[0],o=uh(n==null?void 0:n.amount),s=(r==null?void 0:r.contractAddress)??"",i=(r==null?void 0:r.value)??"";if(!s)return{name:"Item",thumbnail:"",credits:o,contractAddress:""};if((r==null?void 0:r.assetType)===nr.TradeAssetType.COLLECTION_ITEM){const m=await P5(s,i);return{name:(m==null?void 0:m.name)??"Item",thumbnail:(m==null?void 0:m.thumbnail)??"",credits:o,contractAddress:s,itemId:i}}const u=await I5(s,i);return{name:(u==null?void 0:u.name)??`#${i}`,thumbnail:(u==null?void 0:u.image)??"",credits:o,contractAddress:s,tokenId:i}}async function N5(e,t){var o;const{listings:r}=await za({contractAddress:e,itemId:t,first:1}),n=(o=r[0])==null?void 0:o.tradeId;return n?jl(n):null}async function O5(e,t=4){const r=new URLSearchParams({search:e,first:String(t)}),n=await fetch(`${Ze.nftApiUrl}/v1/collections?${r.toString()}`);if(!n.ok)throw new Error(`fetchCollectionSuggestions ${n.status}`);const{data:o}=await n.json();return(o??[]).filter(s=>s.contractAddress&&s.name).map(s=>({contractAddress:s.contractAddress,name:s.name,creator:s.creator??""}))}async function j5(e,t){var i,u,d;const r=new URLSearchParams({category:"ens",search:e,first:String(t)}),n=await fetch(`${Ze.nftApiUrl}/v1/nfts?${r.toString()}`);if(!n.ok)throw new Error(`fetchNameOwners ${n.status}`);const{data:o}=await n.json(),s=new Map;for(const h of o??[]){const m=(u=(i=h.nft)==null?void 0:i.owner)==null?void 0:u.toLowerCase(),p=(d=h.nft)==null?void 0:d.name;m&&p&&!s.has(m)&&s.set(m,p)}return s}async function L5(e){if(e.length===0)return new Map;const t=new URLSearchParams({sortBy:"most_collections"});for(const s of e)t.append("address",s);const r=await fetch(`${Ze.nftApiUrl}/v1/accounts?${t.toString()}`);if(!r.ok)throw new Error(`fetchSellerCounts ${r.status}`);const{data:n}=await r.json(),o=new Map;for(const s of n??[])(s.collections??0)>0&&o.set(s.address.toLowerCase(),s.collections??0);return o}async function B5(e,t=4,r=20){const n=e.trim();if(!n)return[];const o=await j5(n,r);if(o.size===0)return[];const s=await L5([...o.keys()]),i=[...o.keys()].filter(u=>s.has(u)).slice(0,t);return i.length===0?[]:Promise.all(i.map(async u=>{var h,m;const d=await _f(u);return{address:u,name:(d==null?void 0:d.name)||(o.get(u)??u),face:(m=(h=d==null?void 0:d.avatar)==null?void 0:h.snapshots)==null?void 0:m.face256}}))}function M5(e){if(!e||e.length===0)return null;const t=e.some(n=>n.includes("Male")),r=e.some(n=>n.includes("Female"));return t&&r?"unisex":t?"male":r?"female":null}function hh(e){var t,r,n,o,s,i,u,d;return{id:e.id,name:e.name,creator:e.creator??"",contractAddress:e.contractAddress,itemId:e.itemId??null,category:e.category,wearableCategory:((r=(t=e.data)==null?void 0:t.wearable)==null?void 0:r.category)??((o=(n=e.data)==null?void 0:n.emote)==null?void 0:o.category),rarity:e.rarity??"common",isSmart:!!((i=(s=e.data)==null?void 0:s.wearable)!=null&&i.isSmart),network:e.network,chainId:e.chainId,thumbnail:e.thumbnail??"",priceCredits:e.priceCredits??0,gender:M5((d=(u=e.data)==null?void 0:u.wearable)==null?void 0:d.bodyShapes)}}async function F5(e,{first:t=20,skip:r=0,category:n,rarities:o,wearableCategories:s,minPriceCredits:i,maxPriceCredits:u,sortBy:d}={}){const h=new URLSearchParams({contractAddress:e,first:String(t),skip:String(r),includeSocialEmotes:"false"});n&&n!=="all"&&h.set("category",n),o==null||o.forEach(A=>h.append("rarity",A)),s==null||s.forEach(A=>h.append("wearableCategory",A)),i!=null&&h.set("minPrice",String(i)),u!=null&&h.set("maxPrice",String(u)),d&&h.set("sortBy",d);const m=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/items?${h.toString()}`);if(!m.ok)throw new Error(`fetchCollectionItems ${m.status}`);const{data:p,total:b}=await m.json(),E=(p??[]).map(hh);return{items:E,total:b??r+E.length}}async function $5(e,{first:t=60,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),includeSocialEmotes:"false"}),o=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/items?${n.toString()}`);if(!o.ok)throw new Error(`fetchCreatorItems ${o.status}`);const{data:s,total:i}=await o.json(),u=(s??[]).map(hh);return{items:u,total:i??r+u.length}}async function p8(e,{first:t=24,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),sortBy:"newest"}),o=await fetch(`${Ze.nftApiUrl}/v1/collections?${n.toString()}`);if(!o.ok)throw new Error(`fetchCreatorCollections ${o.status}`);const{data:s,total:i}=await o.json(),u=(s??[]).map(d=>({contractAddress:d.contractAddress,name:d.name??"",creator:d.creator??"",itemCount:d.size??0}));return{collections:u,total:i??r+u.length}}async function m8(e){const t=new URLSearchParams({contractAddress:e,first:"1"}),r=await fetch(`${Ze.nftApiUrl}/v1/collections?${t.toString()}`);if(!r.ok)throw new Error(`fetchCollection ${r.status}`);const{data:n}=await r.json(),o=n==null?void 0:n[0];return o&&o.contractAddress?{contractAddress:o.contractAddress,name:o.name??"",creator:o.creator??""}:null}const n2="radial-gradient(#c0bdc6, #a09ba8)",o2="#E6E6E6";function ph(e){const t=typeof e=="string"?e.replace("#",""):"";return t.length<6?null:[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function D5([e,t,r]){return .299*e+.587*t+.114*r}function mh(e){return e&&nr.Rarity.getColor(e.toLowerCase())||o2}function q5(e,t=.3){const r=ph(mh(e));return r?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${t})`:`rgba(160, 155, 168, ${t})`}function U5(e,t=120){const r=mh(e),n=ph(r);if(!n)return"#161518";const o=D5(n);if(o<=t)return r;const s=t/o,i=u=>Math.round(u*s).toString(16).padStart(2,"0");return`#${i(n[0])}${i(n[1])}${i(n[2])}`}function V5(e){const t=$f(e??"Common");try{const r=nr.Rarity.getMaxSupply((e??"common").toLowerCase());if(r>0)return`${t} rarity — only ${r.toLocaleString()} can ever be minted`}catch{}return`${t} rarity`}function H5(e){try{const[t,r]=nr.Rarity.getGradient((e??"common").toLowerCase());return!t||!r?n2:`radial-gradient(${t}, ${r})`}catch{return n2}}const gh=4;function z5(e,t=!0){return Gr({queryKey:["collection-preview",e],queryFn:()=>F5(e,{first:gh}),enabled:t,staleTime:5*6e4})}function G5({items:e,className:t}){const r=e.slice(0,gh);return f.jsx("span",{className:`coll-thumb${t?` ${t}`:""}`,"data-count":r.length,"aria-hidden":!0,children:r.map(n=>f.jsx("span",{className:"coll-thumb__cell","data-testid":"coll-thumb-cell",style:{backgroundImage:H5(n.rarity)},children:n.thumbnail?f.jsx("img",{src:n.thumbnail,alt:"",loading:"lazy"}):null},n.id))})}function W5({contractAddress:e,className:t,fallback:r=null}){const{data:n}=z5(e),o=(n==null?void 0:n.items)??[];return o.length===0?f.jsx(f.Fragment,{children:r}):f.jsx(G5,{items:o,className:t})}function Z5(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function s2({address:e,className:t}){const{data:r}=Pa(e),n=(r==null?void 0:r.name)||Z5(e);return f.jsx("span",{className:t,children:ae("search.byCreator",{name:n})})}function K5({contractAddress:e}){return f.jsx(W5,{contractAddress:e,className:"search-pop__collthumb",fallback:f.jsx("span",{className:"search-pop__thumb search-pop__thumb--icon",children:f.jsx(_t,{name:"search"})})})}const Y5=5,Q5=2;function J5({query:e,recent:t,onSelectItem:r,onSelectCollection:n,onSelectCreator:o,onRunSearch:s,onRemoveRecent:i,onClearRecent:u}){const d=e.length>=Q5,{data:h,isFetching:m}=Gr({queryKey:["search-suggest",e],queryFn:()=>dh({search:e,first:Y5}),enabled:d,placeholderData:si,staleTime:3e4}),{data:p=[]}=Gr({queryKey:["search-suggest-collections",e],queryFn:()=>O5(e),enabled:d,placeholderData:si,staleTime:3e4}),{data:b=[]}=Gr({queryKey:["search-suggest-creators",e],queryFn:()=>B5(e),enabled:d,placeholderData:si,staleTime:3e4}),E=d?(h==null?void 0:h.items)??[]:[],A=(h==null?void 0:h.total)??0;if(!d)return t.length===0?null:f.jsxs("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":ae("search.suggestions"),children:[f.jsxs("div",{className:"search-pop__section-head",children:[f.jsx("span",{children:ae("search.recent")}),f.jsx("button",{type:"button",className:"search-pop__clear",onClick:u,children:ae("search.clearRecent")})]}),f.jsx("ul",{className:"search-pop__list",children:t.map(T=>f.jsxs("li",{className:"search-pop__recent",children:[f.jsxs("button",{type:"button",className:"search-pop__recent-btn",onClick:()=>s(T),children:[f.jsx(_t,{name:"search",size:16,color:"var(--muted)"}),f.jsx("span",{className:"search-pop__recent-text",children:T})]}),f.jsx("button",{type:"button",className:"search-pop__recent-remove","aria-label":ae("search.removeRecent",{query:T}),onClick:()=>i(T),children:f.jsx(lh,{})})]},T))})]});const g=E.length===0&&p.length===0&&b.length===0;return f.jsx("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":ae("search.suggestions"),children:g?f.jsx("p",{className:"search-pop__empty",children:m?ae("search.searching"):ae("search.noResults",{query:e})}):f.jsxs(f.Fragment,{children:[E.length>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"search-pop__section-head",children:f.jsx("span",{children:ae("search.items")})}),f.jsx("ul",{className:"search-pop__list",children:E.map(T=>f.jsx("li",{children:f.jsxs("button",{type:"button",className:"search-pop__row","data-testid":"search-pop-row","data-kind":"item",onClick:()=>r(T),children:[f.jsx("span",{className:"search-pop__thumb",children:T.thumbnail?f.jsx("img",{src:T.thumbnail,alt:""}):null}),f.jsxs("span",{className:"search-pop__text",children:[f.jsx("span",{className:"search-pop__name",title:T.name,children:T.name}),T.creator?f.jsx(s2,{address:T.creator,className:"search-pop__sub"}):null]}),f.jsxs("span",{className:"search-pop__price",children:[f.jsx(hr,{className:"ccy-mark"})," ",T.priceCredits]})]})},T.id))})]}):null,p.length>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"search-pop__section-head",children:f.jsx("span",{children:ae("search.collections")})}),f.jsx("ul",{className:"search-pop__list",children:p.map(T=>f.jsx("li",{children:f.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--collection","data-testid":"search-pop-row","data-kind":"collection",onClick:()=>n(T),children:[f.jsx(K5,{contractAddress:T.contractAddress}),f.jsxs("span",{className:"search-pop__text",children:[f.jsx("span",{className:"search-pop__name",title:T.name,children:T.name}),T.creator?f.jsx(s2,{address:T.creator,className:"search-pop__sub"}):null]})]})},T.contractAddress))})]}):null,b.length>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"search-pop__section-head",children:f.jsx("span",{children:ae("search.creators")})}),f.jsx("ul",{className:"search-pop__list",children:b.map(T=>f.jsx("li",{children:f.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--creator","data-testid":"search-pop-row","data-kind":"creator",onClick:()=>o(T),children:[f.jsx("span",{className:"search-pop__thumb search-pop__thumb--round",children:T.face?f.jsx("img",{src:T.face,alt:""}):null}),f.jsx("span",{className:"search-pop__text",children:f.jsx("span",{className:"search-pop__name",title:T.name,children:T.name})})]})},T.address))})]}):null,A>0?f.jsx("button",{type:"button",className:"search-pop__seeall",onClick:()=>s(e),children:ae("search.seeAll",{count:A.toLocaleString()})}):null]})})}const Ga="shop:recent-searches",yh=8;function xa(){try{const e=localStorage.getItem(Ga);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"&&r.length>0).slice(0,yh):[]}catch{return[]}}function da(e){const t=e.trim();if(t)try{const r=[t,...xa().filter(n=>n.toLowerCase()!==t.toLowerCase())].slice(0,yh);localStorage.setItem(Ga,JSON.stringify(r))}catch{}}function X5(e){try{const t=xa().filter(r=>r.toLowerCase()!==e.trim().toLowerCase());localStorage.setItem(Ga,JSON.stringify(t))}catch{}}function e4(){try{localStorage.removeItem(Ga)}catch{}}function t4(){const{session:e,connecting:t,signIn:r,disconnect:n,restore:o}=bo(),s=e==null?void 0:e.address,{data:i,isLoading:u}=Pa(s),{data:d,isError:h,isLoading:m}=Rv(e),p=er(Q=>Q.items.length),b=er(Q=>Q.setOpen),E=ol(),[A]=Dh(),{pathname:g}=N2(),T=/^\/(assets|item|collection|creator)(\/|$)/.test(g),H=A.get("q")??"",[v,k]=oe.useState(H),[w,Y]=oe.useState(H),[U,S]=oe.useState(!1),[$,J]=oe.useState([]),W=oe.useRef(),ne=oe.useRef(null);oe.useEffect(()=>{o()},[o]),oe.useEffect(()=>{k(H),Y(H)},[H]),oe.useEffect(()=>{if(!U)return;const Q=le=>{ne.current&&!ne.current.contains(le.target)&&S(!1)};return document.addEventListener("mousedown",Q),()=>document.removeEventListener("mousedown",Q)},[U]);function X(){J(xa()),S(!0)}function B(Q){const le=Q.trim();S(!1),le&&da(le),E(le?`/assets?q=${encodeURIComponent(le)}`:"/assets",{replace:!0})}function P(Q){S(!1),v.trim()&&da(v.trim()),pr("Shop Search Suggestion Clicked",{query:v.trim(),type:"item",item_id:Q.id});const le=Q.tokenId??Q.itemId;Q.contractAddress&&le?E(`/item/${Q.contractAddress}/${le}`,{state:{item:Q,tradeId:Q.tradeId}}):B(v)}function K(Q){S(!1),v.trim()&&da(v.trim()),pr("Shop Search Suggestion Clicked",{query:v.trim(),type:"collection",contract_address:Q.contractAddress}),E(`/collection/${Q.contractAddress}`)}function Z(Q){S(!1),v.trim()&&da(v.trim()),pr("Shop Search Suggestion Clicked",{query:v.trim(),type:"creator",creator_address:Q.address}),E(`/assets/creator/${Q.address}`)}function D(Q){k(Q),S(!0),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>Y(Q.trim()),300)}function q(){k(""),Y(""),S(!1),E("/assets",{replace:!0})}function R(Q){X5(Q),J(xa())}function O(){e4(),J([])}function z(Q){if(Q.key==="Escape"){S(!1);return}Q.key==="Enter"&&(W.current&&clearTimeout(W.current),B(v))}return f.jsxs(f.Fragment,{children:[f.jsx(Vm,{activePage:"shop",isSignedIn:!!e,isSigningIn:t,isLoadingProfile:!!e&&u,address:s,avatar:i,onClickSignIn:()=>r(),onClickSignOut:()=>void n()}),f.jsxs("div",{className:"subnav",children:[f.jsxs("nav",{className:"subnav__tabs",children:[f.jsx(Un,{to:"/overview",children:ae("nav.overview")}),f.jsx(Un,{to:"/assets",className:()=>T?"active":"",children:ae("nav.collectibles")}),f.jsx(Un,{to:"/my-assets",children:ae("nav.myAssets")}),e?f.jsx(Un,{to:"/my-purchases",children:ae("nav.myPurchases")}):null]}),f.jsxs("div",{className:"subnav__search",ref:ne,children:[f.jsx(_t,{name:"search",color:"var(--muted)"}),f.jsx("input",{value:v,"aria-label":ae("nav.searchAria"),placeholder:ae("nav.searchPlaceholder"),onChange:Q=>D(Q.target.value),onFocus:X,onKeyDown:z}),v?f.jsx("button",{type:"button",className:"subnav__search-clear","data-testid":"subnav-search-clear","aria-label":ae("search.clear"),onClick:q,children:f.jsx(lh,{})}):null,U?f.jsx(J5,{query:w,recent:$,onSelectItem:P,onSelectCollection:K,onSelectCreator:Z,onRunSearch:B,onRemoveRecent:R,onClearRecent:O}):null]}),e?f.jsxs("span",{className:"subnav__balance","data-testid":"subnav-balance",title:ae("nav.yourBalance",{currency:go.name}),children:[f.jsx(hr,{className:"subnav__balance-ico"}),m?f.jsx("span",{className:"skeleton subnav__balance-skel","aria-hidden":!0}):Pv(d,h)]}):null,f.jsxs(Un,{to:"/credits",className:"subnav__credits",children:[f.jsx(hr,{className:"subnav__credits-ico"}),ae("nav.getCredits",{currency:go.name})]}),f.jsx(Un,{to:"/my-favorites",className:"subnav__fav","aria-label":ae("nav.myFavorites"),children:f.jsx(_t,{name:"heart"})}),f.jsxs("div",{className:"subnav__cart-wrap",children:[f.jsxs("button",{type:"button",className:"subnav__cart","data-testid":"subnav-cart","aria-label":ae("nav.cart"),onClick:()=>p>0?b(!0):E("/cart"),children:[f.jsx(_t,{name:"cart",size:28}),p>0?f.jsx("span",{className:"subnav__cart-badge","data-testid":"subnav-cart-badge",children:p}):null]}),f.jsx(Mb,{})]})]})]})}let r4=0;const $o=jn(e=>({toasts:[],push:t=>{const r=++r4;return e(n=>({toasts:[...n.toasts,{...t,id:r}]})),r},dismiss:t=>e(r=>({toasts:r.toasts.filter(n=>n.id!==t)}))})),g8={success:e=>$o.getState().push({message:e,kind:"success"}),error:e=>$o.getState().push({message:e,kind:"error"}),info:e=>$o.getState().push({message:e,kind:"info"})},n4=lf`
99
+ from {
100
+ opacity: 0;
101
+ transform: translateX(24px) scale(0.96);
102
+ }
103
+ to {
104
+ opacity: 1;
105
+ transform: translateX(0) scale(1);
106
+ }
107
+ `,o4=Et.div`
108
+ position: fixed;
109
+ top: 18px;
110
+ right: 18px;
111
+ z-index: 1000;
112
+ display: flex;
113
+ flex-direction: column;
114
+ gap: 10px;
115
+ max-width: min(92vw, 380px);
116
+ `,s4=Et.span`
117
+ flex: 0 0 22px;
118
+ width: 22px;
119
+ height: 22px;
120
+ border-radius: 50%;
121
+ display: grid;
122
+ place-items: center;
123
+ color: ${Qe.colors.white};
124
+ font-weight: 800;
125
+ font-size: 13px;
126
+ background: ${Qe.colors.accent};
127
+
128
+ &[data-kind='success'] {
129
+ background: ${Qe.colors.okStrong};
130
+ }
131
+ &[data-kind='error'] {
132
+ background: ${Qe.colors.errStrong};
133
+ }
134
+ `,a4=Et.span`
135
+ font-size: 14px;
136
+ font-weight: 600;
137
+ line-height: 1.35;
138
+ `,i4=Et.div`
139
+ display: flex;
140
+ align-items: center;
141
+ gap: 12px;
142
+ padding: 13px 16px;
143
+ border-radius: ${Qe.radius.card};
144
+ background: ${Qe.colors.white};
145
+ color: ${Qe.colors.text};
146
+ box-shadow: 0 12px 32px rgba(20, 20, 30, 0.18);
147
+ cursor: pointer;
148
+ border-left: 4px solid ${Qe.colors.accent};
149
+ animation: ${n4} 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
150
+
151
+ &[data-kind='success'] {
152
+ border-left-color: ${Qe.colors.okStrong};
153
+ }
154
+ &[data-kind='error'] {
155
+ border-left-color: ${Qe.colors.errStrong};
156
+ }
157
+
158
+ @media (prefers-reduced-motion: reduce) {
159
+ animation: none;
160
+ }
161
+ `,c4={success:"✓",error:"!",info:"i"};function l4({t:e}){const t=$o(r=>r.dismiss);return oe.useEffect(()=>{const r=setTimeout(()=>t(e.id),4500);return()=>clearTimeout(r)},[e.id,t]),f.jsxs(i4,{"data-testid":"toast","data-kind":e.kind,role:e.kind==="error"?"alert":"status",onClick:()=>t(e.id),children:[f.jsx(s4,{"data-kind":e.kind,"aria-hidden":!0,children:c4[e.kind]}),f.jsx(a4,{children:e.message})]})}function u4(){const e=$o(t=>t.toasts);return e.length===0?null:f.jsx(o4,{"data-testid":"toaster","aria-live":"polite",children:e.map(t=>f.jsx(l4,{t},t.id))})}const d4=oe.lazy(()=>xt(()=>import("./index-CS5T2jHs.js"),__vite__mapDeps([13,1,2,14,6,15,4,16,17,3,18,19,7,8])).then(e=>({default:e.WearablePreview})));function vh(e){return f.jsx(oe.Suspense,{fallback:null,children:f.jsx(d4,{...e})})}function f4(e){return e.itemId?`urn:decentraland:${Ze.chainId===80002?"amoy":"matic"}:collections-v2:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}const Jn=nr.BodyShape.MALE,Xn=nr.BodyShape.FEMALE;function tl(e){if(e.category==="emote")return[Jn,Xn];switch(e.gender){case"male":return[Jn];case"female":return[Xn];default:return[Jn,Xn]}}function h4(e){var r;const t=(r=e==null?void 0:e.avatar)==null?void 0:r.bodyShape;return t?t.includes("BaseFemale")?Xn:Jn:null}function Ll(e,t){return t==null||tl(e).includes(t)}function a2(e){return ae(e===Xn?"bodyShape.female":"bodyShape.male")}function p4(e){let t=0,r=0;for(const n of e)n.category!=="emote"&&(n.gender==="male"?t++:n.gender==="female"&&r++);return t===0&&r===0?null:r>t?Xn:Jn}function On(e){return e.category!=="emote"}function yo(e){return On(e)?e.wearableCategory??`unknown:${e.id}`:null}const m4=new Set(["hat","helmet","mask","tiara","top_head","hair","facial_hair","eyewear","earring","eyes","eyebrows","mouth"]);function g4(e){if(!On(e))return"item";const t=e.wearableCategory;return t?m4.has(t)?"head":t==="upper_body"?"upper":t==="lower_body"?"lower":t==="feet"?"feet":t==="hands"||t==="hands_wear"?"hands":"item":"item"}function i2(e,t=null){const r=new Set,n=new Set;for(const o of e){const s=yo(o);s==null||n.has(s)||Ll(o,t)&&(n.add(s),r.add(o.id))}return r}function y4(e,t,r){if(!On(t))return e;const n=new Set(e);if(n.has(t.id))return n.delete(t.id),n;const o=yo(t);if(o!=null)for(const s of r)s.id!==t.id&&n.has(s.id)&&yo(s)===o&&n.delete(s.id);return n.add(t.id),n}function v4(e){const t=new Map;for(const n of e){const o=yo(n);if(o==null)continue;const s=t.get(o)??[];s.push(n.id),t.set(o,s)}const r=new Set;for(const n of t.values())n.length>1&&n.forEach(o=>r.add(o));return r}function b4(e,t,r=null){const n=[];for(const o of e){if(!t.has(o.id)||!On(o)||!Ll(o,r))continue;const s=f4(o);s&&n.push(s)}return n}const w4=Et.button`
162
+ border: 0;
163
+ border-radius: ${Qe.radius.btn};
164
+ padding: 12px 22px;
165
+ font-weight: 700;
166
+ font-size: 15px;
167
+ background: ${Qe.colors.blackBtn};
168
+ color: ${Qe.colors.white};
169
+ text-decoration: none; /* so an as=Link / as=a element renders without an underline; no-op on button */
170
+ transition:
171
+ background 0.15s ease,
172
+ filter 0.15s ease,
173
+ transform 0.12s ease;
174
+
175
+ &:disabled {
176
+ opacity: 0.55;
177
+ cursor: default;
178
+ }
179
+
180
+ /* Primary CTA = Amethyst gradient (Figma "Add to cart" primary), solid purple on hover/press. */
181
+ &[data-variant='purple'] {
182
+ background: ${Qe.gradients.amethyst};
183
+ color: ${Qe.colors.softWhite};
184
+ text-transform: uppercase;
185
+ letter-spacing: 0.046em;
186
+ font-size: 13px;
187
+ }
188
+ &[data-variant='purple']:hover:not(:disabled) {
189
+ background: ${Qe.colors.accent};
190
+ }
191
+ &[data-variant='purple']:active:not(:disabled) {
192
+ background: ${Qe.colors.accent};
193
+ transform: translateY(1px);
194
+ }
195
+
196
+ /* Outlined primary (Figma outlined variant): magenta border, purple label. */
197
+ &[data-variant='outline'] {
198
+ background: ${Qe.colors.white};
199
+ border: 2px solid ${Qe.colors.magenta};
200
+ color: ${Qe.colors.accent};
201
+ text-transform: uppercase;
202
+ letter-spacing: 0.046em;
203
+ font-size: 13px;
204
+ font-weight: 600;
205
+ }
206
+ &[data-variant='outline']:hover:not(:disabled) {
207
+ background: rgba(198, 64, 205, 0.06);
208
+ }
209
+
210
+ &[data-variant='ghost'] {
211
+ background: ${Qe.colors.white};
212
+ border: 1px solid ${Qe.colors.lineStrong};
213
+ color: ${Qe.colors.text};
214
+ }
215
+
216
+ &[data-size='sm'] {
217
+ padding: 8px 12px;
218
+ font-size: 13px;
219
+ }
220
+ `;function _4({as:e,variant:t="default",size:r="md",...n},o){const s=w4;return f.jsx(s,{as:e,ref:o,"data-variant":t,"data-size":r,...n})}const Wa=oe.forwardRef(_4),E4=oe.lazy(()=>xt(()=>import("./AnimatedBackground-D56igB0H.js"),__vite__mapDeps([20,1,21]))),x4=Et(Wa)`
221
+ flex: none;
222
+ `,S4={head:"slot-head",upper:"slot-upper",lower:"slot-lower",feet:"slot-feet",hands:"slot-hands",item:"slot-item"};function c2(e){return!e||e.startsWith("unknown:")?ae("fittingRoom.wearable"):e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g," ")}function C4(){const e=er(Y=>Y.fittingOpen),t=er(Y=>Y.setFittingOpen),r=er(Y=>Y.items),n=er(Y=>Y.remove),o=ol(),s=bo(Y=>{var U;return(U=Y.session)==null?void 0:U.address}),{data:i,isFetched:u}=Pa(s),d=!s||u,h=!!s&&!!i,m=h?s:"default",p=h4(i)??p4(r)??Jn,[b,E]=oe.useState(()=>i2(r,p)),[A,g]=oe.useState(!1);oe.useEffect(()=>{e&&E(i2(r,p))},[e,p]),oe.useEffect(()=>{const Y=new Set(r.map(U=>U.id));E(U=>{const S=new Set([...U].filter($=>Y.has($)));return S.size===U.size?U:S})},[r]);const T=oe.useMemo(()=>v4(r),[r]),H=oe.useMemo(()=>b4(r,b,p),[r,b,p]),v=r.reduce((Y,U)=>Y+U.priceCredits,0),k=H.join(",");oe.useEffect(()=>{g(!1)},[k,m]);const w=oe.useRef(!1);return oe.useEffect(()=>{if(!e){w.current=!1;return}w.current||(w.current=!0,pr("Shop Tried On Outfit",{cart_size:r.length,wearables:r.filter(On).length,emotes:r.filter(Y=>!On(Y)).length,cart_value_credits:v}))},[e,r,v]),oe.useEffect(()=>{if(!e)return;const Y=U=>{U.key==="Escape"&&t(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[e,t]),!e||r.length===0?null:f.jsxs("div",{className:"fitting",role:"dialog","aria-modal":"true","aria-label":ae("fittingRoom.title"),children:[f.jsx("div",{className:"fitting__scrim",onClick:()=>t(!1)}),f.jsxs("div",{className:"fitting__panel",children:[f.jsx("button",{className:"fitting__close",onClick:()=>t(!1),"aria-label":ae("fittingRoom.close"),children:"×"}),f.jsxs("div",{className:"fitting__stage",children:[f.jsx(oe.Suspense,{fallback:null,children:f.jsx(E4,{})}),d?H.length>0?f.jsxs(f.Fragment,{children:[f.jsx(vh,{profile:m,bodyShape:h?void 0:p,urns:H,type:nr.PreviewType.AVATAR,emote:nr.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0,dev:Ze.chainId===80002,onLoad:()=>g(!0)},m),A?null:f.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:f.jsx("span",{className:"fitting__spinner"})})]}):f.jsxs("div",{className:"fitting__empty-stage",children:[f.jsx("p",{children:ae("fittingRoom.emptyStageTitle")}),f.jsx("p",{className:"muted",children:ae("fittingRoom.emptyStageBody")})]}):f.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:f.jsx("span",{className:"fitting__spinner"})})]}),f.jsxs("div",{className:"fitting__side",children:[f.jsxs("div",{className:"fitting__head",children:[f.jsx("h2",{className:"fitting__title",children:ae("fittingRoom.title")}),f.jsx("p",{className:"fitting__sub muted",children:ae("fittingRoom.sub")})]}),f.jsx("div",{className:"fitting__items",children:r.map(Y=>{const U=On(Y),S=U&&!Ll(Y,p),$=b.has(Y.id),J=T.has(Y.id);return f.jsxs("div",{className:`fitting-row${$?" is-on":""}${S?" is-incompatible":""}`,"data-testid":"fitting-row",children:[f.jsxs("label",{className:"fitting-row__toggle",children:[f.jsx("input",{type:"checkbox",checked:$,disabled:!U||S,onChange:()=>E(W=>y4(W,Y,r))}),f.jsx("span",{className:"fitting-row__box","aria-hidden":!0})]}),f.jsx("div",{className:"fitting-row__thumb",children:Y.thumbnail?f.jsx("img",{src:Y.thumbnail,alt:Y.name}):null}),f.jsxs("div",{className:"fitting-row__info",children:[f.jsx("div",{className:"fitting-row__name",title:Y.name,children:Y.name}),f.jsxs("div",{className:"fitting-row__meta",children:[f.jsx(_t,{name:S4[U?g4(Y):"item"],size:16,color:"var(--muted)",title:U?c2(yo(Y)):ae("fittingRoom.emote"),role:"img","aria-label":U?c2(yo(Y)):ae("fittingRoom.emote")}),J&&!S?f.jsx("span",{className:"fitting-row__conflict",title:ae("fittingRoom.conflictTooltip"),children:ae("fittingRoom.onePerSlot")}):null,S?f.jsx("span",{className:"fitting-row__incompat",title:ae("fittingRoom.madeForShape",{shape:a2(tl(Y)[0])}),children:ae("fittingRoom.shapeOnly",{shape:a2(tl(Y)[0])})}):null]})]}),f.jsxs("div",{className:"fitting-row__price",children:[f.jsx(hr,{className:"fitting-row__diamond"}),Y.priceCredits]}),f.jsx("button",{className:"fitting-row__remove",onClick:()=>n(Y.id),"aria-label":ae("fittingRoom.removeFromCart",{name:Y.name}),title:ae("fittingRoom.remove"),children:f.jsx(_t,{name:"trash",size:18})})]},Y.id)})}),f.jsxs("div",{className:"fitting__foot",children:[f.jsxs("div",{className:"fitting__total",children:[ae("fittingRoom.itemCount",{count:r.length})," ·"," ",f.jsxs("strong",{children:[go.symbol," ",v]})]}),f.jsx(x4,{variant:"purple",onClick:()=>{t(!1),o("/cart")},children:ae("fittingRoom.checkout")})]})]})]})]})}const bh="shop:locale";function T4(){var e;try{const t=new URLSearchParams(window.location.search).get("lang");if(t&&va.includes(t))return t;const r=localStorage.getItem(bh);if(r&&va.includes(r))return r;const n=(e=navigator.language)==null?void 0:e.slice(0,2);if(n&&va.includes(n))return n}catch{}return"en"}const rl=jn(e=>({locale:T4(),setLocale:t=>{try{localStorage.setItem(bh,t)}catch{}e({locale:t})}})),A4="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",l2=[{label:"footer.linkWhatIs",url:"https://docs.decentraland.org/introduction/about-decentraland"},{label:"footer.linkDownload",url:"https://decentraland.org/download"},{label:"footer.linkSystemRequirements",url:"https://docs.decentraland.org/in-world/settings-and-performance"},{label:"footer.linkFaqs",url:"https://docs.decentraland.org/faqs/decentraland-101"},{label:"footer.linkContactSupport",url:"https://decentraland.org/help/"}],u2=[{label:"footer.linkMarketplace",url:"https://decentraland.org/marketplace"},{label:"footer.linkCreatorHub",url:"https://decentraland.org/create/"},{label:"footer.linkDocs",url:"https://docs.decentraland.org"},{label:"footer.linkBlog",url:"https://decentraland.org/blog/"},{label:"footer.linkVote",url:"https://decentraland.org/dao"}],I4=[{name:"Discord",url:"https://dcl.gg/discord",icon:P4},{name:"GitHub",url:"https://github.com/decentraland",icon:N4},{name:"X",url:"https://x.com/decentraland",icon:O4},{name:"Instagram",url:"https://instagram.com/decentraland_foundation/",icon:j4},{name:"YouTube",url:"https://youtube.com/@decentraland_foundation",icon:L4},{name:"TikTok",url:"https://tiktok.com/@decentraland_fdn",icon:B4},{name:"LinkedIn",url:"https://linkedin.com/company/decentralandorg",icon:M4}],k4=[{label:"footer.linkPrivacy",url:"https://decentraland.org/privacy/"},{label:"footer.linkTerms",url:"https://decentraland.org/terms/"},{label:"footer.linkContentPolicy",url:"https://decentraland.org/content/"},{label:"footer.linkEthics",url:"https://decentraland.org/ethics/"}],fa={en:{label:"English",flag:"🇺🇸"},es:{label:"Español",flag:"🇪🇸"}};function d2(){return f.jsx("div",{className:"dcl-footer__social",children:I4.map(({name:e,url:t,icon:r})=>f.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":e,children:f.jsx(r,{})},e))})}function R4(){const e=rl(h=>h.locale),t=rl(h=>h.setLocale),[r,n]=oe.useState(null),[o,s]=oe.useState(!1),i=oe.useRef(null),u=fa[e]??fa.en;oe.useEffect(()=>{if(!o)return;const h=m=>{i.current&&!i.current.contains(m.target)&&s(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[o]);const d=h=>n(m=>m===h?null:h);return f.jsxs("footer",{className:"dcl-footer",children:[f.jsxs("div",{className:"dcl-footer__main",children:[f.jsxs("div",{className:"dcl-footer__left",children:[f.jsx("span",{className:"dcl-footer__wordmark",children:"Decentraland"}),f.jsxs("div",{className:"dcl-footer__news",children:[f.jsx("p",{className:"dcl-footer__news-title",children:ae("footer.newsletterTitle")}),f.jsx("iframe",{className:"dcl-footer__news-frame",src:A4,height:"65",frameBorder:"0",scrolling:"no",title:ae("footer.newsletterFrameTitle")})]}),f.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--desktop",children:[f.jsx("p",{className:"dcl-footer__label",children:ae("footer.connect")}),f.jsx(d2,{})]})]}),f.jsxs("div",{className:"dcl-footer__right",children:[f.jsxs("div",{className:"dcl-footer__col",children:[f.jsx("p",{className:"dcl-footer__label",children:ae("footer.gettingStarted")}),l2.map(h=>f.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:ae(h.label)},h.label))]}),f.jsxs("div",{className:"dcl-footer__col",children:[f.jsx("p",{className:"dcl-footer__label",children:ae("footer.resources")}),u2.map(h=>f.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:ae(h.label)},h.label))]})]}),f.jsxs("div",{className:"dcl-footer__mobile-menu",children:[f.jsx("p",{className:"dcl-footer__menu-label",children:ae("footer.menu")}),[{key:"getting-started",label:ae("footer.gettingStarted"),links:l2},{key:"resources",label:ae("footer.resources"),links:u2}].map(h=>f.jsxs("div",{children:[f.jsxs("button",{type:"button",className:"dcl-footer__dropdown","aria-expanded":r===h.key,onClick:()=>d(h.key),children:[h.label,f.jsx("span",{className:`dcl-footer__chev${r===h.key?" is-open":""}`,children:f.jsx(f2,{})})]}),f.jsx("div",{className:`dcl-footer__dropdown-content${r===h.key?" is-open":""}`,children:h.links.map(m=>f.jsx("a",{className:"dcl-footer__mlink",href:m.url,target:"_blank",rel:"noopener noreferrer",children:ae(m.label)},m.label))})]},h.key))]}),f.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--mobile",children:[f.jsx("p",{className:"dcl-footer__label",children:ae("footer.connect")}),f.jsx(d2,{})]})]}),f.jsxs("div",{className:"dcl-footer__bottom",children:[f.jsxs("div",{className:"dcl-footer__bottom-left",children:[f.jsxs("div",{className:"dcl-footer__lang",ref:i,children:[f.jsxs("button",{type:"button",className:"dcl-footer__lang-btn",onClick:()=>s(h=>!h),children:[f.jsx("span",{"aria-hidden":!0,children:u.flag}),u.label,f.jsx("span",{className:`dcl-footer__chev${o?" is-open":""}`,children:f.jsx(f2,{})})]}),o?f.jsx("div",{className:"dcl-footer__lang-menu",children:va.map(h=>f.jsxs("button",{className:h===e?"is-active":"",onClick:()=>{t(h),s(!1)},children:[f.jsx("span",{"aria-hidden":!0,children:fa[h].flag}),fa[h].label]},h))}):null]}),f.jsx("div",{className:"dcl-footer__legal",children:k4.map(h=>f.jsx("a",{className:"dcl-footer__legal-link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:ae(h.label)},h.label))})]}),f.jsxs("span",{className:"dcl-footer__copy",children:["© ",new Date().getFullYear()," Decentraland"]})]})]})}function P4(){return f.jsx("svg",{viewBox:"0 0 28 22",fill:"currentColor",width:"26",height:"20","aria-hidden":!0,children:f.jsx("path",{d:"M23.7 1.84A23.25 23.25 0 0 0 17.96 0c-.25.45-.54 1.05-.74 1.53a21.5 21.5 0 0 0-6.45 0C10.57 1.05 10.27.45 10.02 0A23.2 23.2 0 0 0 4.27 1.85C.62 7.34-.38 12.7.12 18a23.37 23.37 0 0 0 7.13 3.6 17.4 17.4 0 0 0 1.53-2.49 15.17 15.17 0 0 1-2.41-1.16c.2-.15.4-.3.59-.46a16.63 16.63 0 0 0 14.1 0c.19.16.39.31.58.46-.77.45-1.57.84-2.41 1.16.44.87.96 1.7 1.53 2.49a23.3 23.3 0 0 0 7.14-3.61c.58-6.15-1-11.47-4.1-16.15ZM9.35 14.74c-1.4 0-2.54-1.28-2.54-2.85s1.12-2.86 2.54-2.86 2.56 1.29 2.54 2.86c0 1.57-1.12 2.85-2.54 2.85Zm9.38 0c-1.4 0-2.54-1.28-2.54-2.85s1.12-2.86 2.54-2.86 2.56 1.29 2.54 2.86c0 1.57-1.12 2.85-2.54 2.85Z"})})}function N4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:f.jsx("path",{d:"M12 .3a12 12 0 0 0-3.8 23.38c.6.12.82-.26.82-.58v-2.02c-3.34.73-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.08-.73.08-.73 1.2.09 1.84 1.24 1.84 1.24 1.07 1.83 2.8 1.3 3.49 1 .1-.78.42-1.3.76-1.6-2.67-.31-5.47-1.34-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.52.12-3.18 0 0 1-.33 3.3 1.23a11.5 11.5 0 0 1 6.02 0c2.28-1.56 3.29-1.23 3.29-1.23.66 1.66.25 2.88.12 3.18a4.65 4.65 0 0 1 1.24 3.22c0 4.61-2.81 5.62-5.48 5.92.43.37.81 1.1.81 2.22v3.29c0 .32.22.7.82.58A12 12 0 0 0 12 .3Z"})})}function O4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:f.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231Zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77Z"})})}function j4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:f.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069ZM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0Zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324ZM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881Z"})})}function L4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:f.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.546 12 3.546 12 3.546s-7.505 0-9.377.504A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.504 9.376.504 9.376.504s7.505 0 9.377-.504a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814ZM9.545 15.568V8.432L15.818 12l-6.273 3.568Z"})})}function B4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:f.jsx("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07Z"})})}function M4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:f.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286ZM5.337 7.433a2.062 2.062 0 1 1 0-4.123 2.062 2.062 0 0 1 0 4.123ZM6.863 20.452H3.804V9h3.059v11.452ZM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003Z"})})}function f2(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18","aria-hidden":!0,children:f.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}const cr=jn((e,t)=>({item:null,anchor:null,ready:!1,token:0,show:(r,n)=>{var s;const o=t();((s=o.item)==null?void 0:s.id)===r.id&&o.anchor===n||e(i=>({item:r,anchor:n,ready:!1,token:i.token+1}))},hide:()=>e({item:null,anchor:null,ready:!1}),setReady:()=>e({ready:!0})})),h2="hover-preview";function F4(){const e=cr(T=>T.item),t=cr(T=>T.anchor),r=cr(T=>T.token),n=cr(T=>T.ready),o=cr(T=>T.setReady),[s,i]=oe.useState(!1),[u,d]=oe.useState(!1),h=oe.useRef(!1),m=oe.useRef(-1),[p,b]=oe.useState(null);oe.useEffect(()=>{if(typeof window.requestIdleCallback=="function"){const H=window.requestIdleCallback(()=>i(!0),{timeout:3e3});return()=>window.cancelIdleCallback(H)}const T=window.setTimeout(()=>i(!0),1500);return()=>window.clearTimeout(T)},[]),oe.useEffect(()=>{if(!t){b(null);return}let T=0;const H=()=>b(t.getBoundingClientRect());H();const v=()=>{cancelAnimationFrame(T),T=requestAnimationFrame(H)};return window.addEventListener("scroll",v,!0),window.addEventListener("resize",v),()=>{cancelAnimationFrame(T),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v)}},[t]),oe.useEffect(()=>{if(!e)return;const T=document.getElementById(h2);if(!(T!=null&&T.contentWindow)||!h.current)return;m.current=r;const H=e.category==="emote";su.sendMessage(T.contentWindow,su.PreviewMessageType.UPDATE,{options:{contractAddress:e.contractAddress,itemId:e.itemId??void 0,profile:"default",type:H?void 0:nr.PreviewType.AVATAR,emote:H?void 0:nr.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0}})},[e,r,u]);function E(){if(!h.current){h.current=!0,d(!0);return}const T=cr.getState();T.item&&T.token===m.current&&o()}if(!s)return null;const g=!!e&&!!p?{position:"fixed",left:p.left,top:p.top,width:p.width,height:p.height,zIndex:5,pointerEvents:"none",opacity:n?1:0,transition:"opacity .25s ease"}:{position:"fixed",left:-9999,top:-9999,width:2,height:2,opacity:0,pointerEvents:"none",overflow:"hidden"};return f.jsx("div",{className:"hover-preview","aria-hidden":!0,style:g,children:f.jsx(vh,{id:h2,profile:"default",disableBackground:!0,disableFadeEffect:!0,dev:Ze.chainId===80002,onLoad:E})})}function $4(){const e=bo(t=>t.session);oe.useEffect(()=>{if(!e||e.providerType!==nr.ProviderType.INJECTED)return;const t=e.web3Provider.provider;if(!(t!=null&&t.on)||!t.removeListener)return;const r=e.address.toLowerCase(),n=(...o)=>{var u;((u=(o[0]??[])[0])==null?void 0:u.toLowerCase())!==r&&window.location.reload()};return t.on("accountsChanged",n),()=>{var o;return(o=t.removeListener)==null?void 0:o.call(t,"accountsChanged",n)}},[e])}function D4(e,t){return!t||!e.creator?!1:_l(e)&&e.creator.toLowerCase()===t.toLowerCase()}function y8(e,t){return!!e.signer&&!!t&&e.signer.toLowerCase()===t.toLowerCase()}const p2={head:"cat-head",hat:"cat-head",hair:"cat-head",facial_hair:"cat-head",eyes:"cat-head",eyebrows:"cat-head",mouth:"cat-head",mask:"cat-head",helmet:"cat-head",tiara:"cat-head",top_head:"cat-head",upper_body:"cat-upper",hands_wear:"cat-handwear",lower_body:"cat-lower",feet:"cat-feet",earring:"cat-accessories",eyewear:"cat-accessories",skin:"cat-skins",dance:"emote-dance",stunt:"emote-stunt",greetings:"emote-greetings",fun:"emote-fun",poses:"emote-poses",reactions:"emote-reactions",horror:"emote-horror"};function q4(e){var r;const t=(r=e.wearableCategory)==null?void 0:r.toLowerCase();return t&&p2[t]?p2[t]:e.category==="emote"?"emote-misc":null}function U4(e){return e==="male"?"gender-male":e==="female"?"gender-female":e==="unisex"?"gender-unisex":null}function V4(e,t=Date.now()){const{priceCredits:r,compareAtCredits:n,saleEndsAt:o}=e;return!(n==null||!(n>r)||o!=null&&o<=t)}function H4(e,t){if(!(e>0)||!(t>=0)||t>=e)return 0;const r=Math.round((1-t/e)*100);return Math.min(99,Math.max(1,r))}function Bo(e,t=Date.now()){return e==null?1/0:Math.max(0,e-t)}function z4(e){if(!isFinite(e)||e<=0)return"";const t=Math.floor(e/1e3),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),o=Math.floor(t%3600/60),s=t%60;return r>0?n>0?`${r}d ${n}h`:`${r}d`:n>0?`${n}h ${o}m`:o>0?`${o}m ${s}s`:`${s}s`}function m2(e){return!isFinite(e)||e<=0?0:e<36e5?1e3:6e4}function G4({endsAt:e,className:t,testId:r,iconSize:n=13}){const[o,s]=oe.useState(()=>Bo(e));oe.useEffect(()=>{if(s(Bo(e)),e==null)return;let u;const d=()=>{const m=Bo(e);s(m);const p=m2(m);p>0&&(u=setTimeout(d,p))},h=m2(Bo(e));return h>0&&(u=setTimeout(d,h)),()=>clearTimeout(u)},[e]);const i=z4(o);return i?f.jsxs("span",{className:t??"sale-countdown","data-testid":r,children:[f.jsx(_t,{name:"clock",size:n}),i]}):null}function W4(e){const[,t]=oe.useState(0);return oe.useEffect(()=>{const r=Bo(e.saleEndsAt);if(!isFinite(r)||r<=0||r>2147483647)return;const n=setTimeout(()=>t(o=>o+1),r+1);return()=>clearTimeout(n)},[e.saleEndsAt]),V4(e)}const Z4=120;function Bl(e){const{item:t}=e,r=e.mode==="market",n=oe.useRef(),o=oe.useRef(null),s=er(W=>W.add),i=er(W=>W.items.some(ne=>ne.id===t.id)),u=bo(W=>{var ne;return(ne=W.session)==null?void 0:ne.address}),d=D4(t,u),h=_a(W=>W.toggle),m=_a(W=>!!W.items[t.id]),p=cr(W=>W.show),b=cr(W=>W.hide),E=cr(W=>{var ne;return((ne=W.item)==null?void 0:ne.id)===t.id}),A=cr(W=>{var ne;return((ne=W.item)==null?void 0:ne.id)===t.id?W.ready:!1}),g=!!t.contractAddress&&!!t.itemId,T=t.tokenId??t.itemId,H=!!t.contractAddress&&!!T,v=`/item/${t.contractAddress}/${T}`;function k(){typeof window<"u"&&window.matchMedia&&!window.matchMedia("(hover: hover)").matches||(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{g&&o.current&&p(t,o.current)},Z4))}function w(){var W;n.current&&clearTimeout(n.current),((W=cr.getState().item)==null?void 0:W.id)===t.id&&b()}oe.useEffect(()=>()=>{var W;n.current&&clearTimeout(n.current),((W=cr.getState().item)==null?void 0:W.id)===t.id&&b()},[t.id,b]);const Y=q4(t),U=U4(t.gender),S=W4({priceCredits:t.priceCredits,compareAtCredits:t.compareAtCredits,saleEndsAt:t.saleEndsAt}),$=!r&&S,J=$?H4(t.compareAtCredits,t.priceCredits):0;return f.jsxs("article",{className:"card","data-testid":"card",style:H?{cursor:"pointer"}:void 0,onMouseEnter:k,onMouseLeave:w,children:[H?f.jsx(En,{className:"card__link","data-testid":"card-link",to:v,state:e.mode==="market"?{item:t,market:!0,marketPriceCredits:e.marketPriceCredits}:{item:t,tradeId:t.tradeId},"aria-label":t.name}):null,f.jsx("button",{className:`card__fav${m?" is-on":""}`,"data-testid":"card-fav",onClick:W=>{W.stopPropagation(),h(t)},"aria-label":ae(m?"assetCard.removeFromFavorites":"assetCard.addToFavorites"),children:f.jsx(_t,{name:m?"heart-solid":"heart",size:18})}),f.jsxs("div",{className:"card__media",ref:o,children:[$?f.jsx("span",{className:"card__sale-badge","data-testid":"card-sale-badge",children:J>0?ae("assetCard.saleWithDiscount",{pct:J}):ae("assetCard.sale")}):null,t.thumbnail?f.jsx("img",{className:`card__img${E&&A?" card__img--hidden":""}`,src:t.thumbnail,alt:t.name,loading:"lazy"}):null]}),f.jsxs("div",{className:"card__body",children:[f.jsxs("div",{className:"card__top",children:[f.jsxs("div",{className:"card__desc",children:[f.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.creator?f.jsx(Al,{address:t.creator,className:"card__creator",linkToProfile:!0}):f.jsx("div",{className:"card__creator",children:" "})]}),r&&e.mode==="market"?f.jsxs("div",{className:"card__price card__price--market","data-testid":"card-price-market",children:[f.jsx("span",{className:"card__approx","aria-hidden":!0,children:"≈"}),f.jsx(hr,{className:"card__diamond"}),e.marketPriceCredits==null?"—":Kn(e.marketPriceCredits)]}):$?f.jsxs("div",{className:"card__price card__price--sale",children:[f.jsxs("span",{className:"card__price-now","data-testid":"card-price-now",title:Mo(t.priceCredits),children:[f.jsx(hr,{className:"card__diamond"}),Kn(t.priceCredits)]}),f.jsxs("span",{className:"card__price-was","data-testid":"card-price-was",title:Mo(t.compareAtCredits),children:[f.jsx(hr,{className:"card__diamond card__diamond--was"}),Kn(t.compareAtCredits)]}),f.jsx(G4,{endsAt:t.saleEndsAt,className:"card__countdown",testId:"card-countdown"})]}):f.jsxs("div",{className:"card__price",title:Mo(t.priceCredits),children:[f.jsx(hr,{className:"card__diamond"}),Kn(t.priceCredits)]})]}),f.jsxs("div",{className:"card__action",children:[f.jsxs("div",{className:"card__chips",children:[r?f.jsx("span",{className:"chip chip--market","data-testid":"chip-market",children:ae("assetCard.marketPrice")}):null,f.jsx("span",{className:"chip chip--rarity",style:{background:q5(t.rarity),color:U5(t.rarity)},title:V5(t.rarity),children:t.rarity}),t.isSmart?f.jsxs("span",{className:"chip chip--smart","data-testid":"chip-smart",children:[f.jsx(_t,{name:"smart",size:13}),ae("assetCard.smart")]}):null,Y?f.jsx("span",{className:"chip chip--icon",children:f.jsx(_t,{name:Y})}):null,U?f.jsx("span",{className:"chip chip--icon",children:f.jsx(_t,{name:U})}):null]}),r&&e.mode==="market"?f.jsx("button",{className:"card__add-round",onClick:W=>{W.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,"aria-label":e.marketPriceCredits==null?ae("assetCard.unavailable"):ae("assetCard.buyNow"),children:f.jsx(_t,{name:"plus"})}):f.jsx("button",{className:`card__add-round${i?" is-in":""}`,onClick:W=>{W.stopPropagation(),d||s(t,"grid")},disabled:i||d,"aria-label":ae(d?"assetCard.yourItem":i?"assetCard.inCart":"assetCard.addToCart"),children:f.jsx(_t,{name:"plus"})}),r&&e.mode==="market"?f.jsx("button",{className:"card__cart","data-testid":"card-cart",onClick:W=>{W.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,children:e.marketPriceCredits==null?ae("assetCard.unavailable"):ae("assetCard.buyNow")}):f.jsxs("button",{className:`card__cart${i?" is-in":""}`,"data-testid":"card-cart",onClick:W=>{W.stopPropagation(),d||s(t,"grid")},disabled:i||d,children:[d?null:f.jsx(_t,{name:"cart-solid"}),ae(d?"assetCard.yourItem":i?"assetCard.inCart":"assetCard.addToCart")]})]})]})]})}const K4=8,Y4=8,Q4=12;function J4(){const t=Wc(o=>o.followed).slice(0,K4),{data:r=[],isLoading:n}=Gr({queryKey:["followed-creators-row",t.join(",")],enabled:t.length>0,queryFn:async()=>{const o=await Promise.all(t.map(s=>$5(s,{first:Y4}).then(i=>i.items).catch(()=>[])));return X4(o).filter(s=>s.priceCredits>0).slice(0,Q4)}});return t.length===0||!n&&r.length===0?null:f.jsxs("section",{className:"row",children:[f.jsx("div",{className:"row__head",children:f.jsx("h2",{className:"row__title",children:ae("followedCreators.title")})}),f.jsx("div",{className:"row__track",children:n?Array.from({length:6}).map((o,s)=>f.jsx("div",{className:"card card--skeleton"},s)):r.map(o=>f.jsx(Bl,{item:o},o.id))})]})}function X4(e){const t=[],r=new Set,n=e.reduce((o,s)=>Math.max(o,s.length),0);for(let o=0;o<n;o++)for(const s of e){const i=s[o];i&&!r.has(i.id)&&(r.add(i.id),t.push(i))}return t}const wh="shop:recently-viewed",_h=12;function Eh(){try{const e=localStorage.getItem(wh);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.slice(0,_h):[]}catch{return[]}}function v8(e){if(e!=null&&e.id)try{const t=[e,...Eh().filter(r=>r.id!==e.id)].slice(0,_h);localStorage.setItem(wh,JSON.stringify(t))}catch{}}function e6({excludeId:e}){const t=oe.useMemo(()=>Eh().filter(r=>r.id!==e),[e]);return t.length===0?null:f.jsxs("section",{className:"row",children:[f.jsx("div",{className:"row__head",children:f.jsx("h2",{className:"row__title",children:ae("recentlyViewed.title")})}),f.jsx("div",{className:"row__track",children:t.map(r=>f.jsx(Bl,{item:r},r.id))})]})}async function t6(e="week",t=10,r="most_volume"){const n=new URLSearchParams({sortBy:r,first:String(t)}),o=await fetch(`${Ze.marketplaceServerUrl}/v1/rankings/creators/${e}?${n.toString()}`);if(!o.ok)throw new Error(`fetchTopCreators ${o.status}`);return(await o.json()).data??[]}const g2=10;function r6(e){try{return Math.floor(Number(O2(e))).toLocaleString("en-US")}catch{return"0"}}function n6({rank:e,creator:t}){return f.jsxs("tr",{className:"ov-creators__row",children:[f.jsx("td",{className:"ov-creators__rank-cell",children:f.jsx("span",{className:"ov-creators__rank",children:e})}),f.jsx("td",{className:"ov-creators__creator-cell",children:f.jsx(Al,{address:t.id,className:"ov-creators__creator",linkToProfile:!0})}),f.jsx("td",{className:"ov-creators__num",children:t.collections.toLocaleString("en-US")}),f.jsx("td",{className:"ov-creators__num",children:t.sales.toLocaleString("en-US")}),f.jsxs("td",{className:"ov-creators__num ov-creators__volume",children:[f.jsx(hr,{className:"ov-creators__coin"}),r6(t.earned)]})]})}function o6(){return f.jsxs("tr",{className:"ov-creators__row",children:[f.jsx("td",{className:"ov-creators__rank-cell",children:f.jsx("span",{className:"ov-creators__rank ov-creators__rank--skeleton"})}),f.jsx("td",{className:"ov-creators__creator-cell",children:f.jsx("span",{className:"ov-creators__skeleton ov-creators__skeleton--creator"})}),f.jsx("td",{className:"ov-creators__num",children:f.jsx("span",{className:"ov-creators__skeleton"})}),f.jsx("td",{className:"ov-creators__num",children:f.jsx("span",{className:"ov-creators__skeleton"})}),f.jsx("td",{className:"ov-creators__num",children:f.jsx("span",{className:"ov-creators__skeleton"})})]})}function s6(){const{data:e,isLoading:t,isError:r}=Gr({queryKey:["rankings","creators","week"],queryFn:()=>t6("week",g2)}),n=e??[];return r||!t&&n.length===0?null:f.jsxs("section",{className:"ov-creators",children:[f.jsxs("div",{className:"ov-creators__head",children:[f.jsx("h2",{className:"ov-creators__title",children:ae("weekTopCreators.title")}),f.jsx("span",{className:"ov-creators__period",children:ae("weekTopCreators.thisWeek")})]}),f.jsx("div",{className:"ov-creators__scroll",children:f.jsxs("table",{className:"ov-creators__table",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"ov-creators__header",children:[f.jsx("th",{className:"ov-creators__th ov-creators__th--rank",scope:"col",children:ae("weekTopCreators.rank")}),f.jsx("th",{className:"ov-creators__th",scope:"col",children:ae("weekTopCreators.creator")}),f.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:ae("weekTopCreators.collections")}),f.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:ae("weekTopCreators.sales")}),f.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:ae("weekTopCreators.volume")})]})}),f.jsx("tbody",{children:t?Array.from({length:g2}).map((o,s)=>f.jsx(o6,{},s)):n.map((o,s)=>f.jsx(n6,{rank:s+1,creator:o},o.id))})]})})]})}const xh="Decentraland Shop",a6=`${xh} | Wearables & Emotes for Your Avatar`,i6="Discover wearables and emotes to make your Decentraland avatar your own. Explore thousands of unique looks and find your style in seconds.";function Sr(e,t,r){let n=document.head.querySelector(`meta[${e}="${t}"]`);n||(n=document.createElement("meta"),n.setAttribute(e,t),document.head.appendChild(n)),n.setAttribute("content",r)}function c6(e,t){let r=document.head.querySelector(`link[rel="${e}"]`);r||(r=document.createElement("link"),r.setAttribute("rel",e),document.head.appendChild(r)),r.setAttribute("href",t)}function l6(e={}){const{title:t,description:r=i6,image:n,type:o="website",noindex:s=!1,canonicalPath:i}=e;oe.useEffect(()=>{if(typeof window>"u")return;const u=window.location.origin,d=u+(i??window.location.pathname),h=n??`${u}https://cdn.decentraland.org/@dcl/shop/0.1.0-29792819793.commit-bcbfeac/og-image.png`,m=t?`${t} | ${xh}`:a6;document.title=m,Sr("name","description",r),Sr("name","robots",s?"noindex,nofollow":"index,follow"),c6("canonical",d),Sr("property","og:title",m),Sr("property","og:description",r),Sr("property","og:url",d),Sr("property","og:image",h),Sr("property","og:type",o),Sr("name","twitter:title",m),Sr("name","twitter:description",r),Sr("name","twitter:image",h)},[t,r,n,o,s,i])}const y2="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2059.7045%2058.9085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Slider%20Arrows'%3e%3cpath%20id='Oval'%20opacity='0.8'%20d='M29.8522%201.59244C45.437%201.59244%2058.1117%2014.0437%2058.112%2029.4538C58.112%2044.8641%2045.4372%2057.3161%2029.8522%2057.3161C14.2672%2057.3161%201.59244%2044.8641%201.59244%2029.4538C1.5927%2014.0437%2014.2674%201.59247%2029.8522%201.59244Z'%20fill='var(--fill-0,%20white)'%20stroke='var(--stroke-0,%20white)'%20stroke-width='3.18424'/%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2842%2029.0164L25.652%2043.0901C24.8014%2043.9083%2023.4222%2043.9083%2022.5716%2043.0901C21.721%2042.2719%2021.721%2040.9454%2022.5716%2040.1272L34.1233%2029.0164L22.5716%2017.9056C21.721%2017.0874%2021.721%2015.7609%2022.5716%2014.9427C23.4222%2014.1245%2024.8014%2014.1245%2025.652%2014.9427L40.2842%2029.0164Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",u6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29792819793.commit-bcbfeac/assets/hero-fashion-week-B9LOzkde.png",d6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29792819793.commit-bcbfeac/assets/promo-best-rated-emotes-C6kNvB-a.png",f6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29792819793.commit-bcbfeac/assets/promo-week-selected-outfits-BBmkZYZx.png",h6=Et(Wa)`
223
+ margin-top: 10px;
224
+ `,p6=Et(Wa)`
225
+ height: 40px;
226
+ padding: 0 16px;
227
+ display: inline-flex;
228
+ align-items: center;
229
+ `,v2=6;function b2({title:e,items:t,loading:r}){const n=oe.useRef(null),[o,s]=oe.useState(1),[i,u]=oe.useState(0),d=r?v2:t.length,h=oe.useCallback(()=>{const b=n.current;if(!b)return;const E=b.clientWidth;if(E<=0)return;const A=Math.max(1,Math.ceil((b.scrollWidth-E)/E)+1);s(A),u(Math.min(A-1,Math.round(b.scrollLeft/E)));const g=b.querySelector(".card__media"),T=b.parentElement;T&&T.style.setProperty("--ov-arrow-top",`${12+(g?g.offsetHeight:150)/2}px`)},[]);oe.useEffect(()=>{h();const b=n.current;if(!b)return;const E=()=>u(Math.round(b.scrollLeft/Math.max(1,b.clientWidth)));return b.addEventListener("scroll",E,{passive:!0}),window.addEventListener("resize",h),()=>{b.removeEventListener("scroll",E),window.removeEventListener("resize",h)}},[h,d]);const m=oe.useCallback(b=>{const E=n.current;if(!E)return;const A=Math.max(0,Math.min(o-1,b));E.scrollTo({left:A*E.clientWidth,behavior:"smooth"})},[o]),p=!r&&o>1;return f.jsxs("section",{className:"row ov-carousel",children:[f.jsxs("div",{className:"row__head",children:[f.jsx("h2",{className:"row__title",children:e}),f.jsxs(En,{className:"row__viewall",to:"/assets",children:[ae("overview.viewAll")," ",f.jsx(_t,{name:"view-all-arrow",size:18})]})]}),f.jsxs("div",{className:"ov-carousel__viewport",children:[p?f.jsx("button",{className:"ov-arrow ov-arrow--left",onClick:()=>m(i-1),disabled:i<=0,"aria-label":ae("overview.previous"),children:f.jsx("img",{src:y2,alt:"","aria-hidden":!0})}):null,f.jsx("div",{className:"ov-carousel__track",ref:n,children:r?Array.from({length:v2}).map((b,E)=>f.jsx("div",{className:"card card--skeleton"},E)):t.map(b=>f.jsx(Bl,{item:b},b.id))}),p?f.jsx("button",{className:"ov-arrow ov-arrow--right",onClick:()=>m(i+1),disabled:i>=o-1,"aria-label":ae("overview.next"),children:f.jsx("img",{src:y2,alt:"","aria-hidden":!0})}):null]}),p?f.jsx("div",{className:"ov-carousel__dots","aria-label":ae("overview.carouselPages",{title:e}),children:Array.from({length:o}).map((b,E)=>f.jsx("button",{className:`ov-dot${E===i?" is-active":""}`,onClick:()=>m(E),"aria-label":ae("overview.goToPage",{page:E+1}),"aria-current":E===i?"true":void 0},E))}):null]})}function m6(){l6({});const{data:e,isLoading:t}=Gr({queryKey:["overview-listings"],queryFn:()=>dh({first:24})}),r=(e==null?void 0:e.items)??[];return f.jsxs("div",{className:"overview",children:[f.jsxs("section",{className:"ov-hero",children:[f.jsx("img",{className:"ov-hero__bg",src:u6,alt:"","aria-hidden":!0}),f.jsx("div",{className:"ov-hero__scrim","aria-hidden":!0}),f.jsxs("div",{className:"ov-hero__inner",children:[f.jsx("h1",{className:"ov-hero__title",children:ae("overview.heroTitle")}),f.jsx(p6,{as:En,to:"/assets",variant:"purple",children:ae("overview.exploreCollection")})]})]}),t||r.length>0?f.jsxs(f.Fragment,{children:[f.jsx(b2,{title:ae("overview.featuredProducts"),items:r.slice(0,12),loading:t}),f.jsxs("section",{className:"ov-promos",children:[f.jsx(En,{className:"ov-promo",to:"/assets","aria-label":ae("overview.promoEmotesAria"),children:f.jsx("img",{src:d6,alt:ae("overview.promoEmotesAlt")})}),f.jsx(En,{className:"ov-promo",to:"/assets","aria-label":ae("overview.promoOutfitsAria"),children:f.jsx("img",{src:f6,alt:ae("overview.promoOutfitsAlt")})})]}),r.length>12?f.jsx(b2,{title:ae("overview.newCreations"),items:r.slice(12,24),loading:!1}):null]}):f.jsxs("div",{className:"overview__empty",children:[f.jsx("p",{className:"overview__empty-title",children:ae("overview.emptyTitle")}),f.jsx("p",{className:"muted",children:ae("overview.emptyBody")}),f.jsx(h6,{as:En,to:"/assets",variant:"purple",children:ae("notFound.cta")})]}),f.jsx(e6,{}),f.jsx(J4,{}),f.jsx(s6,{})]})}const g6={"/overview":"overview","/assets":"assets","/my-assets":"my_assets","/my-favorites":"favorites","/my-purchases":"my_purchases","/import":"import","/store-settings":"store_settings","/cart":"cart","/credits":"credits","/success":"success"},y6=oe.lazy(()=>xt(()=>import("./Assets-DvxF_g1B.js"),__vite__mapDeps([22,1,23,24,25,12,2,7,6,26,27,28,29,30,31,32,33,8])).then(e=>({default:e.Assets}))),v6=oe.lazy(()=>xt(()=>import("./ItemDetail-5q6iNQ7f.js"),__vite__mapDeps([34,1,2,27,28,12,7,6,29,35,36,30,31,17,26,25,37,38,39,8,40])).then(e=>({default:e.ItemDetail}))),b6=oe.lazy(()=>xt(()=>import("./Collection-CegF4Bg6.js"),__vite__mapDeps([41,1,31,42,43,44,2,37,23,24,32,33,6,7,8,45])).then(e=>({default:e.Collection}))),w6=oe.lazy(()=>xt(()=>import("./Creator-DMEgGcPH.js"),__vite__mapDeps([46,1,42,43,44,2,37,23,24,32,33,31,6,7,8,47])).then(e=>({default:e.Creator}))),_6=oe.lazy(()=>xt(()=>import("./StoreSettings-CGJVKy8y.js"),__vite__mapDeps([48,1,44,2,31,6,7,8,49])).then(e=>({default:e.StoreSettings}))),E6=oe.lazy(()=>xt(()=>import("./MyAssets-DyNGSmlq.js"),__vite__mapDeps([50,1,51,27,2,28,12,7,6,25,30,31,52,32,33,8,53])).then(e=>({default:e.MyAssets}))),x6=oe.lazy(()=>xt(()=>import("./MyFavorites-DyIDy1bn.js"),__vite__mapDeps([54,1,32,2,6,7,8])).then(e=>({default:e.MyFavorites}))),S6=oe.lazy(()=>xt(()=>import("./MyPurchases-DvllAazp.js"),__vite__mapDeps([55,1,32,33,2,6,7,8])).then(e=>({default:e.MyPurchases}))),C6=oe.lazy(()=>xt(()=>import("./ImportListings-AQXg48hx.js"),__vite__mapDeps([56,1,51,27,2,28,12,7,6,25,52,8,57])).then(e=>({default:e.ImportListings}))),T6=oe.lazy(()=>xt(()=>import("./Cart-Ccc7hMA3.js"),__vite__mapDeps([58,1,27,2,28,12,7,6,29,59,35,31,30,38,39,8,60])).then(e=>({default:e.Cart}))),A6=oe.lazy(()=>xt(()=>import("./GetCredits-DkdN8Bhp.js"),__vite__mapDeps([61,1,36,59,35,17,2,6,7,8])).then(e=>({default:e.GetCredits}))),I6=oe.lazy(()=>xt(()=>import("./Success-QRszHOfo.js"),__vite__mapDeps([62,1,2,52,29,28,12,7,6,8])).then(e=>({default:e.Success}))),k6=oe.lazy(()=>xt(()=>import("./NotFound-pLaOVJZH.js"),__vite__mapDeps([63,1,2,6,7,8])).then(e=>({default:e.NotFound})));function R6(){return f.jsx("div",{className:"page-loading","aria-busy":"true",children:f.jsx("span",{className:"spinner","aria-hidden":!0})})}const P6=Et(Wa)`
230
+ margin-top: 10px;
231
+ `;function N6(){return f.jsxs("div",{className:"overview__empty",children:[f.jsx("p",{className:"overview__empty-title",children:ae("app.crash.title")}),f.jsx("p",{className:"muted",children:ae("app.crash.body")}),f.jsx(P6,{variant:"purple",onClick:()=>window.location.reload(),children:ae("app.crash.reload")})]})}function O6(){$4();const e=N2();return oe.useEffect(()=>{Fy()},[]),oe.useEffect(()=>{const t=e.pathname,r=g6[t]??(t.startsWith("/item/")?"item":t.startsWith("/collection/")?"collection":t.startsWith("/assets/creator/")?"creator":"other");jy(r)},[e.pathname]),f.jsxs(f.Fragment,{children:[f.jsx(u4,{}),f.jsx(F4,{}),f.jsx(C4,{}),f.jsx(t4,{}),f.jsx("main",{className:"page",children:f.jsx(au,{fallback:f.jsx(N6,{}),children:f.jsx(oe.Suspense,{fallback:f.jsx(R6,{}),children:f.jsxs(qh,{children:[f.jsx(jt,{path:"/",element:f.jsx(ou,{to:"/overview",replace:!0})}),f.jsx(jt,{path:"/overview",element:f.jsx(m6,{})}),f.jsx(jt,{path:"/assets",element:f.jsx(y6,{})}),f.jsx(jt,{path:"/market",element:f.jsx(ou,{to:"/assets",replace:!0})}),f.jsx(jt,{path:"/item/:contractAddress/:tokenId",element:f.jsx(v6,{})}),f.jsx(jt,{path:"/collection/:contractAddress",element:f.jsx(b6,{})}),f.jsx(jt,{path:"/assets/creator/:address",element:f.jsx(w6,{})}),f.jsx(jt,{path:"/store-settings",element:f.jsx(_6,{})}),f.jsx(jt,{path:"/my-assets",element:f.jsx(E6,{})}),f.jsx(jt,{path:"/my-favorites",element:f.jsx(x6,{})}),f.jsx(jt,{path:"/my-purchases",element:f.jsx(S6,{})}),f.jsx(jt,{path:"/import",element:f.jsx(C6,{})}),f.jsx(jt,{path:"/cart",element:f.jsx(T6,{})}),f.jsx(jt,{path:"/credits",element:f.jsx(A6,{})}),f.jsx(jt,{path:"/success",element:f.jsx(I6,{})}),f.jsx(jt,{path:"*",element:f.jsx(k6,{})})]})})})}),f.jsx(au,{fallback:f.jsx(f.Fragment,{}),children:f.jsx(R4,{})})]})}function j6({children:e}){const t=rl(r=>r.locale);return Ib(t),f.jsx(Vv,{value:Tl(t),children:e},t)}zy();const L6=new I1({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),B6=["localhost","127.0.0.1"].includes(window.location.hostname),M6=B6?void 0:"/shop";Uh.createRoot(document.getElementById("root")).render(f.jsx(P2.StrictMode,{children:f.jsx(R1,{client:L6,children:f.jsx(j6,{children:f.jsx(Vh,{basename:M6,children:f.jsx(O6,{})})})})}));export{af as $,Bl as A,Wa as B,hr as C,v0 as D,y2 as E,ja as F,X6 as G,Xf as H,_t as I,vw as J,Sw as K,pn as L,Ke as M,_w as N,hn as O,mw as P,g5 as Q,yl as R,lf as S,h5 as T,Pm as U,ml as V,Ia as W,nf as X,ns as Y,hl as Z,xt as _,l6 as a,Iw as a$,pl as a0,ih as a1,_1 as a2,z6 as a3,H6 as a4,q1 as a5,si as a6,g8 as a7,Kn as a8,er as a9,a2 as aA,Pb as aB,Nd as aC,kb as aD,$f as aE,W4 as aF,W6 as aG,v8 as aH,q4 as aI,U4 as aJ,V5 as aK,U5 as aL,q5 as aM,H4 as aN,G4 as aO,i8 as aP,s8 as aQ,N5 as aR,Q_ as aS,el as aT,Jc as aU,Zo as aV,bw as aW,Kw as aX,rh as aY,ch as aZ,Nr as a_,Al as aa,Go as ab,f8 as ac,Z6 as ad,dh as ae,Qe as af,Pa as ag,f4 as ah,h4 as ai,Ll as aj,p4 as ak,Jn as al,vh as am,l8 as an,D4 as ao,Rg as ap,Pr as aq,F5 as ar,m8 as as,u8 as at,a8 as au,z5 as av,G5 as aw,Wc as ax,p8 as ay,tl as az,pr as b,n8 as b0,i5 as b1,a5 as b2,$_ as b3,e5 as b4,Av as b5,Rw as b6,Ow as b7,Xb as b8,Qf as b9,r8 as ba,Xc as bb,ls as bc,Va as bd,os as be,vl as bf,nw as bg,yw as bh,rw as bi,Kf as bj,Yf as bk,tw as bl,pw as bm,Lw as bn,t8 as bo,m5 as bp,p5 as bq,Il as br,C5 as bs,Pw as bt,O_ as bu,Jf as bv,_a as c,bo as d,Q6 as e,c8 as f,Gr as g,h8 as h,jl as i,Ze as j,go as k,y8 as l,o8 as m,f5 as n,Rv as o,d8 as p,J6 as q,e8 as r,Et as s,ae as t,k1 as u,Pv as v,Y6 as w,By as x,K6 as y,vg as z};