@dcl/shop 0.1.0-30043940031.commit-1a0b88f → 0.1.0-30098548645.commit-d41f1c2

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 (244) hide show
  1. package/assets/Activity-BqXTjVty.js +244 -0
  2. package/assets/{AnimatedBackground-DKAviRVb.js → AnimatedBackground-B1wSbdZF.js} +3 -3
  3. package/assets/{Assets-CbIX010b.js → Assets-uNZ9-jka.js} +11 -11
  4. package/assets/{Assets.styles-C5zpZCUK.js → Assets.styles-C-xsD5dl.js} +6 -6
  5. package/assets/Authorizations-W1UUdrPD.js +175 -0
  6. package/assets/Cart-Blw7vVhV.js +3 -0
  7. package/assets/{CircularProgress-CeVjKviE.js → CircularProgress-BFfCy1Hd.js} +1 -1
  8. package/assets/{Collection-CdFvuhxV.js → Collection-DQPRvrkF.js} +2 -2
  9. package/assets/CollectionCarousel-D2Bi7Sgm.js +1 -0
  10. package/assets/{ConstantsUtil-CJUlyS7R.js → ConstantsUtil-DamObtDN.js} +1 -1
  11. package/assets/{ContentClient-DtuNqgIp.js → ContentClient-JBAwNjZ1.js} +1 -1
  12. package/assets/Creator-DPwgF8OQ.js +1 -0
  13. package/assets/{CssVarsProvider-B0QPJ9UY.js → CssVarsProvider-Cp4XcbYa.js} +3 -3
  14. package/assets/{DeploymentBuilder-Bt5zjBVh.js → DeploymentBuilder-Ch1YSyjd.js} +1 -1
  15. package/assets/{ErrorNotice-C7soUjRV.js → ErrorNotice-Cmr8aXJs.js} +1 -1
  16. package/assets/{ExchangeController-aeqEXROB.js → ExchangeController-DdMMOoWf.js} +1 -1
  17. package/assets/GetCredits-BbXMUpEL.js +1 -0
  18. package/assets/{HelpersUtil-fELrO7Xi.js → HelpersUtil-CQPNVThh.js} +1 -1
  19. package/assets/ImportListings-DvBSRPqC.js +5 -0
  20. package/assets/ItemDetail--8GO0Wno.css +1 -0
  21. package/assets/ItemDetail-CVK9Pwv2.js +1437 -0
  22. package/assets/{LoadMore-CHlPzPXC.js → LoadMore-Co82ACWq.js} +1 -1
  23. package/assets/{MarketCheckout-dyTQT0v3.js → MarketCheckout-CXF5RWuK.js} +1 -1
  24. package/assets/MyAssets-BPoXrFd-.js +258 -0
  25. package/assets/{MyFavorites-B7HUqvEe.js → MyFavorites-BLOtKEJq.js} +1 -1
  26. package/assets/{NetworkUtil-Xp0fNa8X.js → NetworkUtil-xdrSr8Td.js} +1 -1
  27. package/assets/{NotFound-DgN5Ojh9.js → NotFound-B-Y9Dm45.js} +1 -1
  28. package/assets/PrimaryListModal-cAIZGy2D.js +320 -0
  29. package/assets/{StoreSettings-Bx7T9d4h.js → StoreSettings-Bos_AZlO.js} +3 -3
  30. package/assets/{StoreSettings-Bk5IXwNu.css → StoreSettings-qz4M138c.css} +1 -1
  31. package/assets/{Success-B45Qtg3D.js → Success-DNHF9FcH.js} +1 -1
  32. package/assets/{SwapController-qtGuRSFp.js → SwapController-Bk4YDtlv.js} +1 -1
  33. package/assets/{Tooltip-BjVKL7Fw.js → Tooltip-CMiyDsYT.js} +1 -1
  34. package/assets/{TradeService-DWfELVYz.js → TradeService-B-E0tJaw.js} +1 -1
  35. package/assets/{W3MFrameProviderSingleton-BYvOktGz.js → W3MFrameProviderSingleton-B4WegxTX.js} +3 -3
  36. package/assets/{WebCryptoP256-BaA8puph.js → WebCryptoP256-CIN8LP5I.js} +1 -1
  37. package/assets/authorizations-xecfPSH8.js +1 -0
  38. package/assets/{basic-Ceg7-rw5.js → basic-DrYgU33R.js} +1 -1
  39. package/assets/{biconomy-dWuJAVG6.js → biconomy-BkGZoSRG.js} +1 -1
  40. package/assets/{browser-9oFjBwrz.js → browser-EKOgZpqm.js} +1 -1
  41. package/assets/browser-ponyfill-CjkfloA2.js +1 -0
  42. package/assets/{browser-ponyfill-DMgE6PM5.js → browser-ponyfill-sXwzu6Qj.js} +1 -1
  43. package/assets/builder-CdMpbqLu.js +1 -0
  44. package/assets/buy-DnDBBIJp.js +1 -0
  45. package/assets/{buy-gasless-C7VsNrLp.js → buy-gasless-DITQks7J.js} +1 -1
  46. package/assets/{cart-checkout-QeMYLp4l.js → cart-checkout-DldS-zcM.js} +1 -1
  47. package/assets/{categories-DDZgtl6y.js → categories-q4cmLb4w.js} +5 -5
  48. package/assets/{ccip-D1vE27l0.js → ccip-6xULYkiQ.js} +1 -1
  49. package/assets/{ccip-O9QIlP6E.js → ccip-Iagv6b6U.js} +1 -1
  50. package/assets/{chains-Bzau33xB.js → chains-Ce3mOHm7.js} +1 -1
  51. package/assets/collection-9XqBYepL.js +1 -0
  52. package/assets/{common-BaN-pXG4.js → common-D_VcNXlU.js} +1 -1
  53. package/assets/{controller-BDtPSPmx.js → controller-CGXADiD7.js} +2 -2
  54. package/assets/{core-LjTvFg1D.js → core-ClJQ0SHg.js} +4 -4
  55. package/assets/{custom-COtXL8aP.js → custom-CRZtbdh1.js} +1 -1
  56. package/assets/{data-capture-CXZOXZ6B.js → data-capture-Brtecicz.js} +1 -1
  57. package/assets/decimals-Br2WcHKo.js +1 -0
  58. package/assets/{decimals-DaU_ek4_.js → decimals-DIRnQ_Ef.js} +1 -1
  59. package/assets/{detectExtension-C2ped1rb.js → detectExtension-DBVDFtUM.js} +1 -1
  60. package/assets/{email-BS7ZREiA.js → email-Dc521KI9.js} +1 -1
  61. package/assets/{embedded-wallet-CWaQUjgL.js → embedded-wallet-qO37cv4b.js} +1 -1
  62. package/assets/{emotion-styled.browser.esm-c2FFx3DR.js → emotion-styled.browser.esm-CdNioFJM.js} +1 -1
  63. package/assets/{engine-bGCn900B.js → engine-C38d94-_.js} +1 -1
  64. package/assets/{errors-D2EYBG38.js → errors-BHedmHUe.js} +1 -1
  65. package/assets/estimate-l1-fee-BIFy_-EC.js +1 -0
  66. package/assets/eth_estimateGas-DhEvfMK1.js +1 -0
  67. package/assets/{eth_getStorageAt-CvOhghFe.js → eth_getStorageAt-C5DWgtYS.js} +1 -1
  68. package/assets/eth_getTransactionCount-CYnx77q9.js +1 -0
  69. package/assets/{ethereum-B_IIMsg0.js → ethereum-C11g7mpZ.js} +1 -1
  70. package/assets/{ethers-w5dOkonM.js → ethers-BJDbBwOP.js} +1 -1
  71. package/assets/{execute-DySDEvjB.js → execute-CxvgrSL8.js} +2 -2
  72. package/assets/{extractIPFS-mhjpSq1K.js → extractIPFS-CvNdY0iH.js} +1 -1
  73. package/assets/{features-DLc5WZYN.js → features-CLCrkR7s.js} +1 -1
  74. package/assets/{fetchTokenMetadata-C9wYmfXl.js → fetchTokenMetadata-ChVieTUE.js} +2 -2
  75. package/assets/{fortmatic-DhmlcDbL.js → fortmatic-bc1cz1bJ.js} +1 -1
  76. package/assets/{get-bytecode-D38h1G96.js → get-bytecode-B9DXJUIQ.js} +1 -1
  77. package/assets/get-ecosystem-wallet-info-zShJZuFf.js +1 -0
  78. package/assets/{getBalance-j6TTPwxJ.js → getBalance-D426yGLP.js} +2 -2
  79. package/assets/{getInstalledModules-3Q5HYxkN.js → getInstalledModules-_oxiIuvc.js} +1 -1
  80. package/assets/getNFT-DDdhWmh5.js +1 -0
  81. package/assets/{getNFT-BJKaB30S.js → getNFT-DbYpgeGV.js} +2 -2
  82. package/assets/{getOverlayAlpha-Dgr3elr3.js → getOverlayAlpha-DF26uj8z.js} +1 -1
  83. package/assets/{hashTypedData-C3LWcJNr.js → hashTypedData-DBErsqac.js} +1 -1
  84. package/assets/{hashTypedData-B3ueg2tO.js → hashTypedData-ZQ4gFkel.js} +1 -1
  85. package/assets/{import-CT__rglP.js → import-ZCCl3Kgl.js} +1 -1
  86. package/assets/{in-app-eO_XP67Y.js → in-app-CpdkUQeY.js} +1 -1
  87. package/assets/{in-app-wallet-calls-CaxSZMND.js → in-app-wallet-calls-dlczJBmg.js} +1 -1
  88. package/assets/index-B-GW8Cic.js +1 -0
  89. package/assets/{index-LLNcsqnt.js → index-BCFHpbdv.js} +1 -1
  90. package/assets/{index-D7KDT9M9.js → index-BH2TijWz.js} +1 -1
  91. package/assets/{index-CqYbCFw1.js → index-BJ8Gi1m8.js} +1 -1
  92. package/assets/{index-BfnFZQqu.js → index-BKypSXDA.js} +1 -1
  93. package/assets/{index-BNz2c_gH.js → index-BPE4c8Hm.js} +1 -1
  94. package/assets/{index-DTVGIjcC.js → index-BTEpBP4F.js} +1 -1
  95. package/assets/{index-Bt4sSx0j.js → index-BUxPYCpI.js} +1 -1
  96. package/assets/{index-Chf28tkX.js → index-BYL4Amcw.js} +1 -1
  97. package/assets/{index-BLif3fcT.js → index-Be_wjnpZ.js} +1 -1
  98. package/assets/{index-D-DOtIYj.js → index-BfgxxLyc.js} +1 -1
  99. package/assets/{index-I60bR1z0.js → index-BmClkpNO.js} +1 -1
  100. package/assets/{index-B7mff2o2.js → index-BoQpPvsJ.js} +3 -3
  101. package/assets/{index-BLHU8DgF.js → index-BpsxTpFt.js} +1 -1
  102. package/assets/{index-CoBli9XK.js → index-BqBeehVu.js} +1 -1
  103. package/assets/{index-D2Lec10t.js → index-BwP2pQ92.js} +1 -1
  104. package/assets/{index-Dp3Py-Ws.js → index-C1J0uyJU.js} +1 -1
  105. package/assets/{index-C6h_WU9m.js → index-C8X5uQxK.js} +1 -1
  106. package/assets/{index-B6KO-WXc.js → index-C8gW1uS_.js} +1 -1
  107. package/assets/{index-lVvjFIjk.js → index-CBz9QBMp.js} +1 -1
  108. package/assets/{index-BcatoSfw.js → index-CIVsEPCC.js} +1 -1
  109. package/assets/{index-BR4zrdA9.js → index-CO8EAj61.js} +2 -2
  110. package/assets/index-CUtMWqIp.css +1 -0
  111. package/assets/{index-Ck1Cgm82.js → index-C_3MXGQ5.js} +1 -1
  112. package/assets/{index-UvWrbkyR.js → index-C_96F6p3.js} +1 -1
  113. package/assets/{index-dVV4LZRn.js → index-Cf3Ptwp7.js} +1 -1
  114. package/assets/{index-FmAwtPUy.js → index-CmFvRPK_.js} +1 -1
  115. package/assets/{index-BzQBX2p-.js → index-CnNzrERF.js} +1 -1
  116. package/assets/{index-CI_Eucnr.js → index-CtyVceSL.js} +3 -3
  117. package/assets/{index-BgEzTrtV.js → index-CwuYCSTt.js} +1 -1
  118. package/assets/{index-DRB-gQiu.js → index-D0UaCvc1.js} +1 -1
  119. package/assets/{index-BLLuYu72.js → index-D9WRMnJQ.js} +1 -1
  120. package/assets/{index-D84f1SZS.js → index-DCT6sOxM.js} +1 -1
  121. package/assets/{index-CSlkMlP4.js → index-DHqnjZXk.js} +1 -1
  122. package/assets/{index-Bk6ayCIs.js → index-DL1-u2m5.js} +1 -1
  123. package/assets/{index-DQ1f3JN6.js → index-DTFks6GD.js} +1 -1
  124. package/assets/{index-BTO-tMff.js → index-DTSWcrXA.js} +1 -1
  125. package/assets/{index-BCdiIcLt.js → index-DUHukso9.js} +1 -1
  126. package/assets/{index-DPeNzqnx.js → index-DWo6WByw.js} +1 -1
  127. package/assets/{index-QTjwITlm.js → index-DXsS9lM4.js} +1 -1
  128. package/assets/{index-D4SQVwZS.js → index-DZWZ4ZjC.js} +3 -3
  129. package/assets/{index-DtCbj4Bu.js → index-DjNqY58Q.js} +1 -1
  130. package/assets/{index-ahfZZDfz.js → index-DkV39niV.js} +2 -2
  131. package/assets/{index-yeRgwVVL.js → index-Dkdo-C-7.js} +2 -2
  132. package/assets/{index-DGOaB47n.js → index-DsEcY3jS.js} +1 -1
  133. package/assets/{index-Cfbe2Qvo.js → index-DsmEu83d.js} +2 -2
  134. package/assets/{index-CPhNis9E.js → index-Dum_hwGS.js} +1 -1
  135. package/assets/{index-BgKrxOfP.js → index-Dw9WIdKs.js} +1 -1
  136. package/assets/{index-B7P0UO1e.js → index-Dz6EILW5.js} +1 -1
  137. package/assets/{index-Bi7dtaTz.js → index-FfFqAJ3l.js} +1 -1
  138. package/assets/{index-DDk8aurE.js → index-GYAvpxvp.js} +1 -1
  139. package/assets/{index-6eUPFQAl.js → index-GctTWB_u.js} +1 -1
  140. package/assets/{index-BbfDA6Q2.js → index-Ix0aAVOz.js} +1 -1
  141. package/assets/{index-DFwKLiGe.js → index-LwWUxbJ1.js} +1 -1
  142. package/assets/index-N282EqWL.js +289 -0
  143. package/assets/{index-DhuOONXr.js → index-PtVfNA02.js} +1 -1
  144. package/assets/{index-DSY1kJ-n.js → index-SeXxQE7d.js} +1 -1
  145. package/assets/{index-QMzB_9kT.js → index-cm1yskAO.js} +1 -1
  146. package/assets/{index-CLZOJwm_.js → index-dOPjS08E.js} +3 -3
  147. package/assets/{index-DnjriEQ8.js → index-dc-VQ6_u.js} +1 -1
  148. package/assets/{index-F4KCRFXO.js → index-ej1HeaVq.js} +1 -1
  149. package/assets/{index-RYFuERlG.js → index-hSbfPxTM.js} +1 -1
  150. package/assets/{index-BAbZ1oMa.js → index-oDGz3alu.js} +1 -1
  151. package/assets/{index-CoY6w5ve.js → index-uRCNAkhD.js} +1 -1
  152. package/assets/{index-DTEyrFW2.js → index-xEDt5tK0.js} +2 -2
  153. package/assets/{index.es-DcggvVah.js → index.es-8l4m8O48.js} +1 -1
  154. package/assets/{index.es-pkeG3qQo.js → index.es-BAkCd3hx.js} +4 -4
  155. package/assets/{index.es-BxDkRG0j.js → index.es-mQdmYoWw.js} +1 -1
  156. package/assets/{linkAccount-e50lqdUE.js → linkAccount-Dt1RoiMg.js} +1 -1
  157. package/assets/{localBatchGatewayRequest-B7VW_3F8.js → localBatchGatewayRequest-C-QF008k.js} +1 -1
  158. package/assets/{mana-rate-Ez6IlT0x.js → mana-rate-B5qogWAy.js} +1 -1
  159. package/assets/{native-BMBZUPnx.js → native-8psXkTNV.js} +1 -1
  160. package/assets/{networks-CuAkQzro.js → networks-DTf6JA_i.js} +1 -1
  161. package/assets/{onramp-C5uxESKn.js → onramp-C6_Jmv_4.js} +1 -1
  162. package/assets/{openzeppelin-CEEpXs6H.js → openzeppelin-BI3jzvYe.js} +1 -1
  163. package/assets/{ownerOf-dLmWQ3QZ.js → ownerOf-CGV4XkwU.js} +1 -1
  164. package/assets/{parseNft-CjnCetmp.js → parseNft-BJiElQOd.js} +2 -2
  165. package/assets/{parseSignature-CjHHoeVW.js → parseSignature-BTArmdp-.js} +1 -1
  166. package/assets/{parseSignature-Ba1mhqh5.js → parseSignature-YsYfChHW.js} +3 -3
  167. package/assets/{passkeys-DKJW-FEa.js → passkeys-ClpAr2XQ.js} +1 -1
  168. package/assets/{pay-with-exchange-yOexVTa_.js → pay-with-exchange-BrMLcJvy.js} +1 -1
  169. package/assets/{prepare-contract-call-aT1l2NVg.js → prepare-contract-call-CWZtwOpY.js} +1 -1
  170. package/assets/{qr-overlay-CurN-_cO.js → qr-overlay-DFoBAvax.js} +3 -3
  171. package/assets/{react-C51i12iP.js → react-BXazHbBy.js} +1 -1
  172. package/assets/{receive-Bvf5SspN.js → receive-2v3kqZfq.js} +1 -1
  173. package/assets/{resolveImplementation-BMaNFS8w.js → resolveImplementation-Cz7jydx-.js} +1 -1
  174. package/assets/{rpc-Bclh4OVX.js → rpc-DcYX9vLT.js} +1 -1
  175. package/assets/{secp256k1-B7PtKdKr.js → secp256k1-CRO1xSNd.js} +1 -1
  176. package/assets/{secp256k1-BznDUTmG.js → secp256k1-D0kj9oiG.js} +1 -1
  177. package/assets/{secp256k1---Cfb5Gr.js → secp256k1-Du_5cnvk.js} +1 -1
  178. package/assets/{send-BxN6VGCE.js → send-EHrmCt5p.js} +1 -1
  179. package/assets/{send-batch-transaction-BY7yHkGa.js → send-batch-transaction-DrLYa7mf.js} +1 -1
  180. package/assets/{send-eip712-transaction-RXT3aSSm.js → send-eip712-transaction-DWQC0CYI.js} +2 -2
  181. package/assets/send-gasless-transaction-DraXgpfw.js +2 -0
  182. package/assets/{send-transaction-BvCcEvFd.js → send-transaction-Di96Go1T.js} +2 -2
  183. package/assets/{sendRawTransaction-BJZ0BEjt.js → sendRawTransaction-CzOwT9zB.js} +3 -3
  184. package/assets/{sentry-DKBoGDXH.js → sentry-CLqlZ0dX.js} +1 -1
  185. package/assets/{serializeTransaction-CRJP65Ad.js → serializeTransaction-BVfMAhW_.js} +1 -1
  186. package/assets/{session-proposal-Dvj-F2wQ.js → session-proposal-DQbScMFK.js} +1 -1
  187. package/assets/{session-request-Ce-DwiYu.js → session-request-BSJWiNx1.js} +2 -2
  188. package/assets/{sha256-BcAs0Y4r.js → sha256-CHkDhyAO.js} +1 -1
  189. package/assets/{signing-BCzW8Yh4.js → signing-BTj_vr30.js} +3 -3
  190. package/assets/{socials-2qO6GWvx.js → socials-Ca0m8Bc6.js} +1 -1
  191. package/assets/{swaps-Byx37cWK.js → swaps-Bxufbu_7.js} +1 -1
  192. package/assets/{thirdweb-Bzinkygh.js → thirdweb-BSXHM0bk.js} +3 -3
  193. package/assets/{to-serializable-transaction-BPYyQKxa.js → to-serializable-transaction-BiEB81zL.js} +2 -2
  194. package/assets/{totalSupply-BCBM6uY2.js → totalSupply-D7o26vFv.js} +1 -1
  195. package/assets/{trade-encoding-Bq9nPTSy.js → trade-encoding-6_dO5FYh.js} +1 -1
  196. package/assets/{transaction-Db6pntE5.js → transaction-B7gL56RA.js} +1 -1
  197. package/assets/{transactionReceipt-7aTE2Yz3.js → transactionReceipt-WUy2-DIs.js} +1 -1
  198. package/assets/{transactions-Y7mX5hPf.js → transactions-Ddu0qS1y.js} +1 -1
  199. package/assets/{useCreditPacks-CG7L_UQ4.js → useCreditPacks-BXDDD38Z.js} +1 -1
  200. package/assets/{useInfiniteGrid-H1sfBdhy.js → useInfiniteGrid-BokrX5YA.js} +1 -1
  201. package/assets/useManaRate-CtZMBb6a.js +1 -0
  202. package/assets/{useStore-Cbt7cLyp.js → useStore-DL2tZW7o.js} +2 -2
  203. package/assets/useTheme-B-xHZMoE.js +1 -0
  204. package/assets/{useTheme-CauhIIJq.js → useTheme-Tgfl6yPv.js} +1 -1
  205. package/assets/{utils-DBnU1jhd.js → utils-CPrJV6vP.js} +1 -1
  206. package/assets/{verifyHash-BzzdH-JT.js → verifyHash-DEKVRRCg.js} +1 -1
  207. package/assets/{w3m-modal-R9G6tUSA.js → w3m-modal-BOayHahj.js} +1 -1
  208. package/assets/{w3m-modal-Uf8zuJST.js → w3m-modal-DGk65SCN.js} +1 -1
  209. package/assets/{wait-for-tx-receipt-UIT99Yyq.js → wait-for-tx-receipt-C-yyIlse.js} +1 -1
  210. package/assets/{wallets-CgBIBei6.js → wallets-CKstZZYA.js} +5 -5
  211. package/assets/{web-connector-B1ptdbTS.js → web-connector-Df1Nw4jg.js} +3 -3
  212. package/assets/{writeContract-aQQPNQN6.js → writeContract-EXXVPkwI.js} +1 -1
  213. package/assets/{zora-sepolia-Bwjy_6bk.js → zora-sepolia-DQJtwyvj.js} +1 -1
  214. package/assets/{zoraTestnet-BxMHEDAV.js → zoraTestnet-Dj9qFBkp.js} +1 -1
  215. package/index.html +11 -11
  216. package/package.json +2 -2
  217. package/assets/Activity-CnoF6F3Z.js +0 -243
  218. package/assets/Authorizations-4u2_v7qf.js +0 -163
  219. package/assets/Cart-C1woE131.js +0 -3
  220. package/assets/CollectionCarousel-BC4r8J9j.js +0 -1
  221. package/assets/Creator-Cpw9Qy_r.js +0 -1
  222. package/assets/GetCredits-BfCzeAeD.js +0 -1
  223. package/assets/ImportListings-CxJDA8Su.js +0 -5
  224. package/assets/ItemDetail-BF1WOMVU.css +0 -1
  225. package/assets/ItemDetail-D1Xe6t7i.js +0 -82
  226. package/assets/MyAssets-C_wlVXNb.js +0 -258
  227. package/assets/PrimaryListModal-vBauRE_Q.js +0 -1
  228. package/assets/address-DrURAr9O.js +0 -1
  229. package/assets/authorizations-BdVBiEr7.js +0 -1
  230. package/assets/browser-ponyfill-Djb5Py6a.js +0 -1
  231. package/assets/buy-B_TXfJF4.js +0 -1
  232. package/assets/collection-d97cPr3w.js +0 -1
  233. package/assets/decimals-HChuNAkm.js +0 -1
  234. package/assets/estimate-l1-fee-CEy_ASr7.js +0 -1
  235. package/assets/eth_estimateGas-DcV1bi0C.js +0 -1
  236. package/assets/eth_getTransactionCount-BNyI69eR.js +0 -1
  237. package/assets/get-ecosystem-wallet-info-B4KRbr6l.js +0 -1
  238. package/assets/getNFT-B7SHBqxZ.js +0 -1
  239. package/assets/index-CkvNUeW9.css +0 -1
  240. package/assets/index-DH3Yzbz3.js +0 -1
  241. package/assets/index-k1Bog_tr.js +0 -289
  242. package/assets/send-gasless-transaction-DDPuuxQ-.js +0 -2
  243. package/assets/useManaRate-BO1b19Qr.js +0 -1
  244. package/assets/useTheme-TzAV5P1-.js +0 -1
@@ -1,289 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BLHU8DgF.js","assets/react-C51i12iP.js","assets/dcl-schemas-BICTSpB5.js","assets/index-BbfDA6Q2.js","assets/emotion-styled.browser.esm-c2FFx3DR.js","assets/colors-LINLm1ux.js","assets/sentry-DKBoGDXH.js","assets/ethers-w5dOkonM.js","assets/intl-CBcMB1D2.js","assets/index-BR4zrdA9.js","assets/events-DQ172AOg.js","assets/TradeService-DWfELVYz.js","assets/index-HN6Rk25C.js","assets/sendMetaTransaction-CiO3jI6F.js","assets/index-DQ1f3JN6.js","assets/index-Dp3Py-Ws.js","assets/index-D4SQVwZS.js","assets/useTheme-CauhIIJq.js","assets/CircularProgress-CeVjKviE.js","assets/useTheme-TzAV5P1-.js","assets/getOverlayAlpha-Dgr3elr3.js","assets/AnimatedBackground-DKAviRVb.js","assets/AnimatedBackground-CiurwFBv.css","assets/Assets-CbIX010b.js","assets/mana-rate-Ez6IlT0x.js","assets/useManaRate-BO1b19Qr.js","assets/Assets.styles-C5zpZCUK.js","assets/categories-DDZgtl6y.js","assets/emotion-CSxEP8yM.js","assets/categories-_8oO8Yih.css","assets/Tooltip-BjVKL7Fw.js","assets/LoadMore-CHlPzPXC.js","assets/MarketCheckout-dyTQT0v3.js","assets/buy-B_TXfJF4.js","assets/authorizations-BdVBiEr7.js","assets/trade-encoding-Bq9nPTSy.js","assets/buy-gasless-C7VsNrLp.js","assets/errors-D2EYBG38.js","assets/ErrorNotice-C7soUjRV.js","assets/useInfiniteGrid-H1sfBdhy.js","assets/loader-logo-BzY9EKdC.js","assets/ItemDetail-D1Xe6t7i.js","assets/CollectionCarousel-BC4r8J9j.js","assets/address-DrURAr9O.js","assets/CollectionCarousel-C8hFnis-.css","assets/PrimaryListModal-vBauRE_Q.js","assets/useCreditPacks-CG7L_UQ4.js","assets/resume-buy-Bf0zIH7y.js","assets/ItemDetail-BF1WOMVU.css","assets/Collection-CdFvuhxV.js","assets/collection-d97cPr3w.js","assets/collection-CrgnzsVL.css","assets/useStore-Cbt7cLyp.js","assets/Collection-Dpog3TvS.css","assets/Creator-Cpw9Qy_r.js","assets/Creator-Cpx_caba.css","assets/StoreSettings-Bx7T9d4h.js","assets/StoreSettings-Bk5IXwNu.css","assets/MyAssets-C_wlVXNb.js","assets/import-CT__rglP.js","assets/MyFavorites-B7HUqvEe.js","assets/Activity-CnoF6F3Z.js","assets/ImportListings-CxJDA8Su.js","assets/ImportListings-Dx8BzO4r.css","assets/Cart-C1woE131.js","assets/cart-checkout-QeMYLp4l.js","assets/Cart-BaVkpmjN.css","assets/Authorizations-4u2_v7qf.js","assets/GetCredits-BfCzeAeD.js","assets/Success-B45Qtg3D.js","assets/NotFound-DgN5Ojh9.js"])))=>i.map(i=>d[i]);
2
- var E1=Object.defineProperty;var Pu=e=>{throw TypeError(e)};var x1=(e,t,r)=>t in e?E1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var nn=(e,t,r)=>x1(e,typeof t!="symbol"?t+"":t,r),wi=(e,t,r)=>t.has(e)||Pu("Cannot "+r);var L=(e,t,r)=>(wi(e,t,"read from private field"),r?r.call(e):t.get(e)),Ee=(e,t,r)=>t.has(e)?Pu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),me=(e,t,r,n)=>(wi(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Le=(e,t,r)=>(wi(e,t,"access private method"),r);var fo=(e,t,r,n)=>({set _(a){me(e,t,a,r)},get _(){return L(e,t,n)}});import{r as ne,j as d,l as Vc,i as cf,g as Do,R as lf,c as zc,u as qo,h as S1,L as In,e as Jr,k as T1,b as A1,a as uf,m as Cn,n as k1,o as St,N as _i,p as I1,B as R1}from"./react-C51i12iP.js";import{b as N1,d as rt,a as Ou}from"./dcl-schemas-BICTSpB5.js";import{p as ko,i as P1,B as O1,s as j1,a as L1,E as ju}from"./sentry-DKBoGDXH.js";import{W as M1,k as B1,h as Lu,f as df}from"./ethers-w5dOkonM.js";import{_ as kn,D as F1,i as $1,a as Rl,c as D1,b as q1,f as U1,d as H1,e as V1}from"./intl-CBcMB1D2.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=r(a);fetch(a.href,s)}})();var Aa=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(){}},Nn,ln,ca,Y2,z1=(Y2=class extends Aa{constructor(){super();Ee(this,Nn);Ee(this,ln);Ee(this,ca);me(this,ca,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){L(this,ln)||this.setEventListener(L(this,ca))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,ln))==null||t.call(this),me(this,ln,void 0))}setEventListener(t){var r;me(this,ca,t),(r=L(this,ln))==null||r.call(this),me(this,ln,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){L(this,Nn)!==t&&(me(this,Nn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof L(this,Nn)=="boolean"?L(this,Nn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Nn=new WeakMap,ln=new WeakMap,ca=new WeakMap,Y2),Nl=new z1,G1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},un,Il,Q2,W1=(Q2=class{constructor(){Ee(this,un,G1);Ee(this,Il,!1)}setTimeoutProvider(e){me(this,un,e)}setTimeout(e,t){return L(this,un).setTimeout(e,t)}clearTimeout(e){L(this,un).clearTimeout(e)}setInterval(e,t){return L(this,un).setInterval(e,t)}clearInterval(e){L(this,un).clearInterval(e)}},un=new WeakMap,Il=new WeakMap,Q2),Rn=new W1;function Z1(e){setTimeout(e,0)}var K1=typeof window>"u"||"Deno"in globalThis;function Ut(){}function Y1(e,t){return typeof e=="function"?e(t):e}function Gc(e){return typeof e=="number"&&e>=0&&e!==1/0}function ff(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vn(e,t){return typeof e=="function"?e(t):e}function sr(e,t){return typeof e=="function"?e(t):e}function Mu(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:s,queryKey:o,stale:u}=e;if(o){if(n){if(t.queryHash!==Pl(o,t.options))return!1}else if(!Ya(t.queryKey,o))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||s&&!s(t))}function Bu(e,t){const{exact:r,status:n,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(Ka(t.options.mutationKey)!==Ka(s))return!1}else if(!Ya(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function Pl(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ka)(e)}function Ka(e){return JSON.stringify(e,(t,r)=>Wc(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Ya(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Ya(e[r],t[r])):!1}var Q1=Object.prototype.hasOwnProperty;function Ol(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Fu(e)&&Fu(t);if(!n&&!(Wc(e)&&Wc(t)))return t;const s=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),u=o.length,f=n?new Array(u):{};let h=0;for(let p=0;p<u;p++){const m=n?p:o[p],g=e[m],_=t[m];if(g===_){f[m]=g,(n?p<s:Q1.call(e,m))&&h++;continue}if(g===null||_===null||typeof g!="object"||typeof _!="object"){f[m]=_;continue}const x=Ol(g,_,r+1);f[m]=x,x===g&&h++}return s===u&&h===s?e:f}function jo(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 Fu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wc(e){if(!$u(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!$u(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $u(e){return Object.prototype.toString.call(e)==="[object Object]"}function J1(e){return new Promise(t=>{Rn.setTimeout(t,e)})}function Zc(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Ol(e,t):t}function Ci(e){return e}function X1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function em(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var jl=Symbol();function hf(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===jl?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function mf(e,t){return typeof e=="function"?e(...t):!!e}function tm(e,t,r){let n=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),n||(n=!0,a.aborted?r():a.addEventListener("abort",r,{once:!0})),a)}),e}var Qa=(()=>{let e=()=>K1;return{isServer(){return e()},setIsServer(t){e=t}}})();function Kc(){let e,t;const r=new Promise((a,s)=>{e=a,t=s});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}var rm=Z1;function nm(){let e=[],t=0,r=u=>{u()},n=u=>{u()},a=rm;const s=u=>{t?e.push(u):a(()=>{r(u)})},o=()=>{const u=e;e=[],u.length&&a(()=>{n(()=>{u.forEach(f=>{r(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||o()}return f},batchCalls:u=>(...f)=>{s(()=>{u(...f)})},schedule:s,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{a=u}}}var vt=nm(),la,dn,ua,J2,am=(J2=class extends Aa{constructor(){super();Ee(this,la,!0);Ee(this,dn);Ee(this,ua);me(this,ua,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(){L(this,dn)||this.setEventListener(L(this,ua))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,dn))==null||t.call(this),me(this,dn,void 0))}setEventListener(t){var r;me(this,ua,t),(r=L(this,dn))==null||r.call(this),me(this,dn,t(this.setOnline.bind(this)))}setOnline(t){L(this,la)!==t&&(me(this,la,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return L(this,la)}},la=new WeakMap,dn=new WeakMap,ua=new WeakMap,J2),Lo=new am;function sm(e){return Math.min(1e3*2**e,3e4)}function pf(e){return(e??"online")==="online"?Lo.isOnline():!0}var Yc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gf(e){let t=!1,r=0,n;const a=Kc(),s=()=>a.status!=="pending",o=y=>{var k;if(!s()){const G=new Yc(y);g(G),(k=e.onCancel)==null||k.call(e,G)}},u=()=>{t=!0},f=()=>{t=!1},h=()=>Nl.isFocused()&&(e.networkMode==="always"||Lo.isOnline())&&e.canRun(),p=()=>pf(e.networkMode)&&e.canRun(),m=y=>{s()||(n==null||n(),a.resolve(y))},g=y=>{s()||(n==null||n(),a.reject(y))},_=()=>new Promise(y=>{var k;n=G=>{(s()||h())&&y(G)},(k=e.onPause)==null||k.call(e)}).then(()=>{var y;n=void 0,s()||(y=e.onContinue)==null||y.call(e)}),x=()=>{if(s())return;let y;const k=r===0?e.initialPromise:void 0;try{y=k??e.fn()}catch(G){y=Promise.reject(G)}Promise.resolve(y).then(m).catch(G=>{var H;if(s())return;const v=e.retry??(Qa.isServer()?0:3),A=e.retryDelay??sm,w=typeof A=="function"?A(r,G):A,K=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,G);if(t||!K){g(G);return}r++,(H=e.onFail)==null||H.call(e,r,G),J1(w).then(()=>h()?void 0:_()).then(()=>{t?g(G):x()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(n==null||n(),a),cancelRetry:u,continueRetry:f,canStart:p,start:()=>(p()?x():_().then(x),a)}}var Pn,X2,yf=(X2=class{constructor(){Ee(this,Pn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gc(this.gcTime)&&me(this,Pn,Rn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qa.isServer()?1/0:300*1e3))}clearGcTimeout(){L(this,Pn)!==void 0&&(Rn.clearTimeout(L(this,Pn)),me(this,Pn,void 0))}},Pn=new WeakMap,X2);function om(e){return{onFetch:(t,r)=>{var p,m,g,_,x;const n=t.options,a=(g=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:g.direction,s=((_=t.state.data)==null?void 0:_.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const h=async()=>{let y=!1;const k=A=>{tm(A,()=>t.signal,()=>y=!0)},G=hf(t.options,t.fetchOptions),v=async(A,w,K)=>{if(y)return Promise.reject(t.signal.reason);if(w==null&&A.pages.length)return Promise.resolve(A);const S=(()=>{const ae={client:t.client,queryKey:t.queryKey,pageParam:w,direction:K?"backward":"forward",meta:t.options.meta};return k(ae),ae})(),U=await G(S),{maxPages:Q}=t.options,ee=K?em:X1;return{pages:ee(A.pages,U,Q),pageParams:ee(A.pageParams,w,Q)}};if(a&&s.length){const A=a==="backward",w=A?vf:Qc,K={pages:s,pageParams:o},H=w(n,K);u=await v(K,H,A)}else{const A=e??s.length;do{const w=f===0?o[0]??n.initialPageParam:Qc(n,u);if(f>0&&w==null)break;u=await v(u,w),f++}while(f<A)}return u};t.options.persister?t.fetchFn=()=>{var y,k;return(k=(y=t.options).persister)==null?void 0:k.call(y,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function Qc(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 vf(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 a9(e,t){return t?Qc(e,t)!=null:!1}function s9(e,t){return!t||!e.getPreviousPageParam?!1:vf(e,t)!=null}var da,On,fa,ur,jn,At,ss,Ln,ar,bf,Gr,ef,im=(ef=class extends yf{constructor(t){super();Ee(this,ar);Ee(this,da);Ee(this,On);Ee(this,fa);Ee(this,ur);Ee(this,jn);Ee(this,At);Ee(this,ss);Ee(this,Ln);me(this,Ln,!1),me(this,ss,t.defaultOptions),this.setOptions(t.options),this.observers=[],me(this,jn,t.client),me(this,ur,L(this,jn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,me(this,On,qu(this.options)),this.state=t.state??L(this,On),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return L(this,da)}get promise(){var t;return(t=L(this,At))==null?void 0:t.promise}setOptions(t){if(this.options={...L(this,ss),...t},t!=null&&t._type&&me(this,da,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=qu(this.options);r.data!==void 0&&(this.setState(Du(r.data,r.dataUpdatedAt)),me(this,On,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,ur).remove(this)}setData(t,r){const n=Zc(this.state.data,t,this.options);return Le(this,ar,Gr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t){Le(this,ar,Gr).call(this,{type:"setState",state:t})}cancel(t){var n,a;const r=(n=L(this,At))==null?void 0:n.promise;return(a=L(this,At))==null||a.cancel(t),r?r.then(Ut).catch(Ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return L(this,On)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>sr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jl||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>vn(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:!ff(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=L(this,At))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=L(this,At))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),L(this,ur).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(L(this,At)&&(L(this,Ln)||Le(this,ar,bf).call(this)?L(this,At).cancel({revert:!0}):L(this,At).cancelRetry()),this.scheduleGc()),L(this,ur).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,ar,Gr).call(this,{type:"invalidate"})}async fetch(t,r){var h,p,m,g,_,x,y,k,G,v,A;if(this.state.fetchStatus!=="idle"&&((h=L(this,At))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(L(this,At))return L(this,At).continueRetry(),L(this,At).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(K=>K.options.queryFn);w&&this.setOptions(w.options)}const n=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(me(this,Ln,!0),n.signal)})},s=()=>{const w=hf(this.options,r),H=(()=>{const S={client:L(this,jn),queryKey:this.queryKey,meta:this.meta};return a(S),S})();return me(this,Ln,!1),this.options.persister?this.options.persister(w,H,this):w(H)},u=(()=>{const w={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:L(this,jn),state:this.state,fetchFn:s};return a(w),w})(),f=L(this,da)==="infinite"?om(this.options.pages):this.options.behavior;f==null||f.onFetch(u,this),me(this,fa,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=u.fetchOptions)==null?void 0:p.meta))&&Le(this,ar,Gr).call(this,{type:"fetch",meta:(m=u.fetchOptions)==null?void 0:m.meta}),me(this,At,gf({initialPromise:r==null?void 0:r.initialPromise,fn:u.fetchFn,onCancel:w=>{w instanceof Yc&&w.revert&&this.setState({...L(this,fa),fetchStatus:"idle"}),n.abort()},onFail:(w,K)=>{Le(this,ar,Gr).call(this,{type:"failed",failureCount:w,error:K})},onPause:()=>{Le(this,ar,Gr).call(this,{type:"pause"})},onContinue:()=>{Le(this,ar,Gr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const w=await L(this,At).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(_=(g=L(this,ur).config).onSuccess)==null||_.call(g,w,this),(y=(x=L(this,ur).config).onSettled)==null||y.call(x,w,this.state.error,this),w}catch(w){if(w instanceof Yc){if(w.silent)return L(this,At).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw Le(this,ar,Gr).call(this,{type:"error",error:w}),(G=(k=L(this,ur).config).onError)==null||G.call(k,w,this),(A=(v=L(this,ur).config).onSettled)==null||A.call(v,this.state.data,w,this),w}finally{this.scheduleGc()}}},da=new WeakMap,On=new WeakMap,fa=new WeakMap,ur=new WeakMap,jn=new WeakMap,At=new WeakMap,ss=new WeakMap,Ln=new WeakMap,ar=new WeakSet,bf=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Gr=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,...wf(n.data,this.options),fetchMeta:t.meta??null};case"success":const a={...n,...Du(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return me(this,fa,t.manual?a:void 0),a;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),vt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),L(this,ur).notify({query:this,type:"updated",action:t})})},ef);function wf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Du(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function qu(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 Qt,qe,os,qt,Mn,ha,Zr,fn,is,ma,pa,Bn,Fn,hn,ga,Ke,Ha,Jc,Xc,el,tl,rl,nl,al,_f,tf,Ll=(tf=class extends Aa{constructor(t,r){super();Ee(this,Ke);Ee(this,Qt);Ee(this,qe);Ee(this,os);Ee(this,qt);Ee(this,Mn);Ee(this,ha);Ee(this,Zr);Ee(this,fn);Ee(this,is);Ee(this,ma);Ee(this,pa);Ee(this,Bn);Ee(this,Fn);Ee(this,hn);Ee(this,ga,new Set);this.options=r,me(this,Qt,t),me(this,fn,null),me(this,Zr,Kc()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(L(this,qe).addObserver(this),Uu(L(this,qe),this.options)?Le(this,Ke,Ha).call(this):this.updateResult(),Le(this,Ke,tl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sl(L(this,qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sl(L(this,qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Le(this,Ke,rl).call(this),Le(this,Ke,nl).call(this),L(this,qe).removeObserver(this)}setOptions(t){const r=this.options,n=L(this,qe);if(this.options=L(this,Qt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sr(this.options.enabled,L(this,qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Le(this,Ke,al).call(this),L(this,qe).setOptions(this.options),r._defaulted&&!jo(this.options,r)&&L(this,Qt).getQueryCache().notify({type:"observerOptionsUpdated",query:L(this,qe),observer:this});const a=this.hasListeners();a&&Hu(L(this,qe),n,this.options,r)&&Le(this,Ke,Ha).call(this),this.updateResult(),a&&(L(this,qe)!==n||sr(this.options.enabled,L(this,qe))!==sr(r.enabled,L(this,qe))||vn(this.options.staleTime,L(this,qe))!==vn(r.staleTime,L(this,qe)))&&Le(this,Ke,Jc).call(this);const s=Le(this,Ke,Xc).call(this);a&&(L(this,qe)!==n||sr(this.options.enabled,L(this,qe))!==sr(r.enabled,L(this,qe))||s!==L(this,hn))&&Le(this,Ke,el).call(this,s)}getOptimisticResult(t){const r=L(this,Qt).getQueryCache().build(L(this,Qt),t),n=this.createResult(r,t);return lm(this,n)&&(me(this,qt,n),me(this,ha,this.options),me(this,Mn,L(this,qe).state)),n}getCurrentResult(){return L(this,qt)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&L(this,Zr).status==="pending"&&L(this,Zr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(t){L(this,ga).add(t)}getCurrentQuery(){return L(this,qe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=L(this,Qt).defaultQueryOptions(t),n=L(this,Qt).getQueryCache().build(L(this,Qt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return Le(this,Ke,Ha).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),L(this,qt)))}createResult(t,r){var Q;const n=L(this,qe),a=this.options,s=L(this,qt),o=L(this,Mn),u=L(this,ha),h=t!==n?t.state:L(this,os),{state:p}=t;let m={...p},g=!1,_;if(r._optimisticResults){const ee=this.hasListeners(),ae=!ee&&Uu(t,r),J=ee&&Hu(t,n,r,a);(ae||J)&&(m={...m,...wf(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:y,status:k}=m;_=m.data;let G=!1;if(r.placeholderData!==void 0&&_===void 0&&k==="pending"){let ee;s!=null&&s.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData)?(ee=s.data,G=!0):ee=typeof r.placeholderData=="function"?r.placeholderData((Q=L(this,pa))==null?void 0:Q.state.data,L(this,pa)):r.placeholderData,ee!==void 0&&(k="success",_=Zc(s==null?void 0:s.data,ee,r),g=!0)}if(r.select&&_!==void 0&&!G)if(s&&_===(o==null?void 0:o.data)&&r.select===L(this,is))_=L(this,ma);else try{me(this,is,r.select),_=r.select(_),_=Zc(s==null?void 0:s.data,_,r),me(this,ma,_),me(this,fn,null)}catch(ee){me(this,fn,ee)}L(this,fn)&&(x=L(this,fn),_=L(this,ma),y=Date.now(),k="error");const v=m.fetchStatus==="fetching",A=k==="pending",w=k==="error",K=A&&v,H=_!==void 0,U={status:k,fetchStatus:m.fetchStatus,isPending:A,isSuccess:k==="success",isError:w,isInitialLoading:K,isLoading:K,data:_,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:y,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:v,isRefetching:v&&!A,isLoadingError:w&&!H,isPaused:m.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:w&&H,isStale:Ml(t,r),refetch:this.refetch,promise:L(this,Zr),isEnabled:sr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const ee=U.data!==void 0,ae=U.status==="error"&&!ee,J=Z=>{ae?Z.reject(U.error):ee&&Z.resolve(U.data)},M=()=>{const Z=me(this,Zr,U.promise=Kc());J(Z)},N=L(this,Zr);switch(N.status){case"pending":t.queryHash===n.queryHash&&J(N);break;case"fulfilled":(ae||U.data!==N.value)&&M();break;case"rejected":(!ae||U.error!==N.reason)&&M();break}}return U}updateResult(){const t=L(this,qt),r=this.createResult(L(this,qe),this.options);if(me(this,Mn,L(this,qe).state),me(this,ha,this.options),L(this,Mn).data!==void 0&&me(this,pa,L(this,qe)),jo(r,t))return;me(this,qt,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!L(this,ga).size)return!0;const o=new Set(s??L(this,ga));return this.options.throwOnError&&o.add("error"),Object.keys(L(this,qt)).some(u=>{const f=u;return L(this,qt)[f]!==t[f]&&o.has(f)})};Le(this,Ke,_f).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Le(this,Ke,tl).call(this)}},Qt=new WeakMap,qe=new WeakMap,os=new WeakMap,qt=new WeakMap,Mn=new WeakMap,ha=new WeakMap,Zr=new WeakMap,fn=new WeakMap,is=new WeakMap,ma=new WeakMap,pa=new WeakMap,Bn=new WeakMap,Fn=new WeakMap,hn=new WeakMap,ga=new WeakMap,Ke=new WeakSet,Ha=function(t){Le(this,Ke,al).call(this);let r=L(this,qe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ut)),r},Jc=function(){Le(this,Ke,rl).call(this);const t=vn(this.options.staleTime,L(this,qe));if(Qa.isServer()||L(this,qt).isStale||!Gc(t))return;const n=ff(L(this,qt).dataUpdatedAt,t)+1;me(this,Bn,Rn.setTimeout(()=>{L(this,qt).isStale||this.updateResult()},n))},Xc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(L(this,qe)):this.options.refetchInterval)??!1},el=function(t){Le(this,Ke,nl).call(this),me(this,hn,t),!(Qa.isServer()||sr(this.options.enabled,L(this,qe))===!1||!Gc(L(this,hn))||L(this,hn)===0)&&me(this,Fn,Rn.setInterval(()=>{(this.options.refetchIntervalInBackground||Nl.isFocused())&&Le(this,Ke,Ha).call(this)},L(this,hn)))},tl=function(){Le(this,Ke,Jc).call(this),Le(this,Ke,el).call(this,Le(this,Ke,Xc).call(this))},rl=function(){L(this,Bn)!==void 0&&(Rn.clearTimeout(L(this,Bn)),me(this,Bn,void 0))},nl=function(){L(this,Fn)!==void 0&&(Rn.clearInterval(L(this,Fn)),me(this,Fn,void 0))},al=function(){const t=L(this,Qt).getQueryCache().build(L(this,Qt),this.options);if(t===L(this,qe))return;const r=L(this,qe);me(this,qe,t),me(this,os,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},_f=function(t){vt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(L(this,qt))}),L(this,Qt).getQueryCache().notify({query:L(this,qe),type:"observerResultsUpdated"})})},tf);function cm(e,t){return sr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&sr(t.retryOnMount,e)===!1)}function Uu(e,t){return cm(e,t)||e.state.data!==void 0&&sl(e,t,t.refetchOnMount)}function sl(e,t,r){if(sr(t.enabled,e)!==!1&&vn(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Ml(e,t)}return!1}function Hu(e,t,r,n){return(e!==t||sr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Ml(e,r)}function Ml(e,t){return sr(t.enabled,e)!==!1&&e.isStaleByTime(vn(t.staleTime,e))}function lm(e,t){return!jo(e.getCurrentResult(),t)}var cs,kr,Ft,$n,Ir,sn,rf,um=(rf=class extends yf{constructor(t){super();Ee(this,Ir);Ee(this,cs);Ee(this,kr);Ee(this,Ft);Ee(this,$n);me(this,cs,t.client),this.mutationId=t.mutationId,me(this,Ft,t.mutationCache),me(this,kr,[]),this.state=t.state||dm(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){L(this,kr).includes(t)||(L(this,kr).push(t),this.clearGcTimeout(),L(this,Ft).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){me(this,kr,L(this,kr).filter(r=>r!==t)),this.scheduleGc(),L(this,Ft).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){L(this,kr).length||(this.state.status==="pending"?this.scheduleGc():L(this,Ft).remove(this))}continue(){var t;return((t=L(this,$n))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,u,f,h,p,m,g,_,x,y,k,G,v,A,w,K,H,S;const r=()=>{Le(this,Ir,sn).call(this,{type:"continue"})},n={client:L(this,cs),meta:this.options.meta,mutationKey:this.options.mutationKey};me(this,$n,gf({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(U,Q)=>{Le(this,Ir,sn).call(this,{type:"failed",failureCount:U,error:Q})},onPause:()=>{Le(this,Ir,sn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>L(this,Ft).canRun(this)}));const a=this.state.status==="pending",s=!L(this,$n).canStart();try{if(a)r();else{Le(this,Ir,sn).call(this,{type:"pending",variables:t,isPaused:s}),L(this,Ft).config.onMutate&&await L(this,Ft).config.onMutate(t,this,n);const Q=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t,n));Q!==this.state.context&&Le(this,Ir,sn).call(this,{type:"pending",context:Q,variables:t,isPaused:s})}const U=await L(this,$n).start();return await((h=(f=L(this,Ft).config).onSuccess)==null?void 0:h.call(f,U,t,this.state.context,this,n)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,U,t,this.state.context,n)),await((_=(g=L(this,Ft).config).onSettled)==null?void 0:_.call(g,U,null,this.state.variables,this.state.context,this,n)),await((y=(x=this.options).onSettled)==null?void 0:y.call(x,U,null,t,this.state.context,n)),Le(this,Ir,sn).call(this,{type:"success",data:U}),U}catch(U){try{await((G=(k=L(this,Ft).config).onError)==null?void 0:G.call(k,U,t,this.state.context,this,n))}catch(Q){Promise.reject(Q)}try{await((A=(v=this.options).onError)==null?void 0:A.call(v,U,t,this.state.context,n))}catch(Q){Promise.reject(Q)}try{await((K=(w=L(this,Ft).config).onSettled)==null?void 0:K.call(w,void 0,U,this.state.variables,this.state.context,this,n))}catch(Q){Promise.reject(Q)}try{await((S=(H=this.options).onSettled)==null?void 0:S.call(H,void 0,U,t,this.state.context,n))}catch(Q){Promise.reject(Q)}throw Le(this,Ir,sn).call(this,{type:"error",error:U}),U}finally{L(this,Ft).runNext(this)}}},cs=new WeakMap,kr=new WeakMap,Ft=new WeakMap,$n=new WeakMap,Ir=new WeakSet,sn=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),vt.batch(()=>{L(this,kr).forEach(n=>{n.onMutationUpdate(t)}),L(this,Ft).notify({mutation:this,type:"updated",action:t})})},rf);function dm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kr,yr,ls,nf,fm=(nf=class extends Aa{constructor(t={}){super();Ee(this,Kr);Ee(this,yr);Ee(this,ls);this.config=t,me(this,Kr,new Set),me(this,yr,new Map),me(this,ls,0)}build(t,r,n){const a=new um({client:t,mutationCache:this,mutationId:++fo(this,ls)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){L(this,Kr).add(t);const r=ho(t);if(typeof r=="string"){const n=L(this,yr).get(r);n?n.push(t):L(this,yr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(L(this,Kr).delete(t)){const r=ho(t);if(typeof r=="string"){const n=L(this,yr).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&L(this,yr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=ho(t);if(typeof r=="string"){const n=L(this,yr).get(r),a=n==null?void 0:n.find(s=>s.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=ho(t);if(typeof r=="string"){const a=(n=L(this,yr).get(r))==null?void 0:n.find(s=>s!==t&&s.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){vt.batch(()=>{L(this,Kr).forEach(t=>{this.notify({type:"removed",mutation:t})}),L(this,Kr).clear(),L(this,yr).clear()})}getAll(){return Array.from(L(this,Kr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Bu(r,n))}findAll(t={}){return this.getAll().filter(r=>Bu(t,r))}notify(t){vt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return vt.batch(()=>Promise.all(t.map(r=>r.continue().catch(Ut))))}},Kr=new WeakMap,yr=new WeakMap,ls=new WeakMap,nf);function ho(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Vu(e,t){const r=new Set(t);return e.filter(n=>!r.has(n))}function hm(e,t,r){const n=e.slice(0);return n[t]=r,n}var ya,Jt,va,Dn,nr,mn,us,ds,fs,hs,Ct,ol,il,Cf,cl,ll,ul,af,mm=(af=class extends Aa{constructor(t,r,n){super();Ee(this,Ct);Ee(this,ya);Ee(this,Jt);Ee(this,va);Ee(this,Dn);Ee(this,nr);Ee(this,mn);Ee(this,us);Ee(this,ds);Ee(this,fs);Ee(this,hs,[]);me(this,ya,t),me(this,Dn,n),me(this,va,[]),me(this,nr,[]),me(this,Jt,[]),this.setQueries(r)}onSubscribe(){this.listeners.size===1&&L(this,nr).forEach(t=>{t.subscribe(r=>{Le(this,Ct,ll).call(this,t,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,L(this,nr).forEach(t=>{t.destroy()})}setQueries(t,r){me(this,va,t),me(this,Dn,r),vt.batch(()=>{const n=L(this,nr),a=Le(this,Ct,cl).call(this,L(this,va));a.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const s=a.map(m=>m.observer),o=s.map(m=>m.getCurrentResult()),u=n.length!==s.length,f=s.some((m,g)=>m!==n[g]),h=u||f,p=h?!0:o.some((m,g)=>{const _=L(this,Jt)[g];return!_||!jo(m,_)});!h&&!p||(h&&(me(this,hs,a),me(this,nr,s)),me(this,Jt,o),this.hasListeners()&&(h&&(Vu(n,s).forEach(m=>{m.destroy()}),Vu(s,n).forEach(m=>{m.subscribe(g=>{Le(this,Ct,ll).call(this,m,g)})})),Le(this,Ct,ul).call(this)))})}getCurrentResult(){return L(this,Jt)}getQueries(){return L(this,nr).map(t=>t.getCurrentQuery())}getObservers(){return L(this,nr)}getOptimisticResult(t,r){const n=Le(this,Ct,cl).call(this,t),a=n.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions)),s=n.map(o=>o.defaultedQueryOptions.queryHash);return[a,o=>Le(this,Ct,il).call(this,o??a,r,s),()=>Le(this,Ct,ol).call(this,a,n)]}},ya=new WeakMap,Jt=new WeakMap,va=new WeakMap,Dn=new WeakMap,nr=new WeakMap,mn=new WeakMap,us=new WeakMap,ds=new WeakMap,fs=new WeakMap,hs=new WeakMap,Ct=new WeakSet,ol=function(t,r){return r.map((n,a)=>{const s=t[a];return n.defaultedQueryOptions.notifyOnChangeProps?s:n.observer.trackResult(s,o=>{r.forEach(u=>{u.observer.trackProp(o)})})})},il=function(t,r,n){if(r){const a=L(this,fs),s=n!==void 0&&a!==void 0&&(a.length!==n.length||n.some((o,u)=>o!==a[u]));return(!L(this,mn)||L(this,Jt)!==L(this,ds)||s||r!==L(this,us))&&(me(this,us,r),me(this,ds,L(this,Jt)),n!==void 0&&me(this,fs,n),me(this,mn,Ol(L(this,mn),r(t)))),L(this,mn)}return t},Cf=function(){var t;return((t=L(this,Dn))==null?void 0:t.combine)!==void 0&&L(this,nr).some((r,n)=>{var a;return r.options.suspense&&((a=L(this,Jt)[n])==null?void 0:a.data)===void 0})},cl=function(t){const r=new Map;L(this,nr).forEach(a=>{const s=a.options.queryHash;if(!s)return;const o=r.get(s);o?o.push(a):r.set(s,[a])});const n=[];return t.forEach(a=>{var f;const s=L(this,ya).defaultQueryOptions(a),u=((f=r.get(s.queryHash))==null?void 0:f.shift())??new Ll(L(this,ya),s);n.push({defaultedQueryOptions:s,observer:u})}),n},ll=function(t,r){const n=L(this,nr).indexOf(t);n!==-1&&(me(this,Jt,hm(L(this,Jt),n,r)),Le(this,Ct,ul).call(this))},ul=function(){var t;if(this.hasListeners()){const r=Le(this,Ct,ol).call(this,L(this,Jt),L(this,hs)),n=Le(this,Ct,Cf).call(this),a=L(this,mn),s=n?a:Le(this,Ct,il).call(this,r,(t=L(this,Dn))==null?void 0:t.combine);(n||a!==s)&&vt.batch(()=>{this.listeners.forEach(o=>{o(L(this,Jt))})})}},af),Rr,sf,pm=(sf=class extends Aa{constructor(t={}){super();Ee(this,Rr);this.config=t,me(this,Rr,new Map)}build(t,r,n){const a=r.queryKey,s=r.queryHash??Pl(a,r);let o=this.get(s);return o||(o=new im({client:t,queryKey:a,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){L(this,Rr).has(t.queryHash)||(L(this,Rr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=L(this,Rr).get(t.queryHash);r&&(t.destroy(),r===t&&L(this,Rr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){vt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return L(this,Rr).get(t)}getAll(){return[...L(this,Rr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Mu(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Mu(t,n)):r}notify(t){vt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){vt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){vt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Rr=new WeakMap,sf),ht,pn,gn,ba,wa,yn,_a,Ca,of,gm=(of=class{constructor(e={}){Ee(this,ht);Ee(this,pn);Ee(this,gn);Ee(this,ba);Ee(this,wa);Ee(this,yn);Ee(this,_a);Ee(this,Ca);me(this,ht,e.queryCache||new pm),me(this,pn,e.mutationCache||new fm),me(this,gn,e.defaultOptions||{}),me(this,ba,new Map),me(this,wa,new Map),me(this,yn,0)}mount(){fo(this,yn)._++,L(this,yn)===1&&(me(this,_a,Nl.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,ht).onFocus())})),me(this,Ca,Lo.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,ht).onOnline())})))}unmount(){var e,t;fo(this,yn)._--,L(this,yn)===0&&((e=L(this,_a))==null||e.call(this),me(this,_a,void 0),(t=L(this,Ca))==null||t.call(this),me(this,Ca,void 0))}isFetching(e){return L(this,ht).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return L(this,pn).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=L(this,ht).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=L(this,ht).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(vn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return L(this,ht).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=L(this,ht).get(n.queryHash),s=a==null?void 0:a.state.data,o=Y1(t,s);if(o!==void 0)return L(this,ht).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return vt.batch(()=>L(this,ht).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=L(this,ht).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=L(this,ht);vt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=L(this,ht);return vt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=vt.batch(()=>L(this,ht).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Ut).catch(Ut)}invalidateQueries(e,t={}){return vt.batch(()=>(L(this,ht).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=vt.batch(()=>L(this,ht).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,r);return r.throwOnError||(s=s.catch(Ut)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(Ut)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=L(this,ht).build(this,t);return r.isStaleByTime(vn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ut).catch(Ut)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ut).catch(Ut)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Lo.isOnline()?L(this,pn).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,ht)}getMutationCache(){return L(this,pn)}getDefaultOptions(){return L(this,gn)}setDefaultOptions(e){me(this,gn,e)}setQueryDefaults(e,t){L(this,ba).set(Ka(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...L(this,ba).values()],r={};return t.forEach(n=>{Ya(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){L(this,wa).set(Ka(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...L(this,wa).values()],r={};return t.forEach(n=>{Ya(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...L(this,gn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pl(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===jl&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...L(this,gn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){L(this,ht).clear(),L(this,pn).clear()}},ht=new WeakMap,pn=new WeakMap,gn=new WeakMap,ba=new WeakMap,wa=new WeakMap,yn=new WeakMap,_a=new WeakMap,Ca=new WeakMap,of),Ef=ne.createContext(void 0),xf=e=>{const t=ne.useContext(Ef);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ym=({client:e,children:t})=>(ne.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(Ef.Provider,{value:e,children:t})),Sf=ne.createContext(!1),Tf=()=>ne.useContext(Sf);Sf.Provider;function vm(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bm=ne.createContext(vm()),Af=()=>ne.useContext(bm),kf=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?mf(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},If=e=>{ne.useEffect(()=>{e.clearReset()},[e])},Rf=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||mf(r,[e.error,n])),Nf=e=>{if(e.suspense){const r=a=>a==="static"?a:Math.max(a??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...a)=>r(n(...a)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},wm=(e,t)=>e.isLoading&&e.isFetching&&!t,dl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,fl=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function _m({queries:e,...t},r){const n=xf(),a=Tf(),s=Af(),o=ne.useMemo(()=>e.map(y=>{const k=n.defaultQueryOptions(y);return k._optimisticResults=a?"isRestoring":"optimistic",k}),[e,n,a]);o.forEach(y=>{Nf(y);const k=n.getQueryCache().get(y.queryHash);kf(y,s,k)}),If(s);const[u]=ne.useState(()=>new mm(n,o,t)),[f,h,p]=u.getOptimisticResult(o,t.combine),m=!a&&t.subscribed!==!1;ne.useSyncExternalStore(ne.useCallback(y=>m?u.subscribe(vt.batchCalls(y)):Ut,[u,m]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),ne.useEffect(()=>{u.setQueries(o,t)},[o,t,u]);const _=f.some((y,k)=>dl(o[k],y))?f.flatMap((y,k)=>{const G=o[k];if(G&&dl(G,y)){const v=new Ll(n,G);return fl(G,v,s)}return[]}):[];if(_.length>0)throw Promise.all(_);const x=f.find((y,k)=>{const G=o[k];return G&&Rf({result:y,errorResetBoundary:s,throwOnError:G.throwOnError,query:n.getQueryCache().get(G.queryHash),suspense:G.suspense})});if(x!=null&&x.error)throw x.error;return h(p())}function Cm(e,t,r){var _,x,y,k;const n=Tf(),a=Af(),s=xf(),o=s.defaultQueryOptions(e);(x=(_=s.getDefaultOptions().queries)==null?void 0:_._experimental_beforeQuery)==null||x.call(_,o);const u=s.getQueryCache().get(o.queryHash),f=e.subscribed!==!1;o._optimisticResults=n?"isRestoring":f?"optimistic":void 0,Nf(o),kf(o,a,u),If(a);const h=!s.getQueryCache().get(o.queryHash),[p]=ne.useState(()=>new t(s,o)),m=p.getOptimisticResult(o),g=!n&&f;if(ne.useSyncExternalStore(ne.useCallback(G=>{const v=g?p.subscribe(vt.batchCalls(G)):Ut;return p.updateResult(),v},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),ne.useEffect(()=>{p.setOptions(o)},[o,p]),dl(o,m))throw fl(o,p,a);if(Rf({result:m,errorResetBoundary:a,throwOnError:o.throwOnError,query:u,suspense:o.suspense}))throw m.error;if((k=(y=s.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||k.call(y,o,m),o.experimental_prefetchInRender&&!Qa.isServer()&&wm(m,n)){const G=h?fl(o,p,a):u==null?void 0:u.promise;G==null||G.catch(Ut).finally(()=>{p.updateResult()})}return o.notifyOnChangeProps?m:p.trackResult(m)}function Yr(e,t){return Cm(e,Ll)}const Em="modulepreload",xm=function(e){return"https://cdn.decentraland.org/@dcl/shop/0.1.0-30043940031.commit-1a0b88f/"+e},zu={},Et=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){let o=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=o(r.map(h=>{if(h=xm(h),h in zu)return;zu[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":Em,p||(g.as="script"),g.crossOrigin="",g.href=h,f&&g.setAttribute("nonce",f),document.head.appendChild(g),p)return new Promise((_,x)=>{g.addEventListener("load",_),g.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return a.then(o=>{for(const u of o||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})},Sm="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",Tm="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",Am="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",km="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",Im="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",Rm="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",Nm="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",Pm="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",Om="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",jm="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",Lm="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",Mm="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",Bm="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",Fm="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.55%2017.6%204.4%2012.45l1.5-1.5%203.65%203.65%208.65-8.65%201.5%201.5z'%20fill='currentColor'/%3e%3c/svg%3e",$m="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",Dm="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",qm="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='M6.4%204.94%204.94%206.4%2010.54%2012l-5.6%205.6%201.46%201.46L12%2013.46l5.6%205.6%201.46-1.46L13.46%2012l5.6-5.6L17.6%204.94%2012%2010.54z'%20fill='currentColor'/%3e%3c/svg%3e",Um="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",Hm="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",Vm="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",zm="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",Gm="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",Wm="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",Zm="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",Km="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",Ym="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",Qm="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",Jm="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",Xm="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",ep="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",tp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='currentColor'%20d='M12%204.5C7%204.5%202.73%207.61%201%2012c1.73%204.39%206%207.5%2011%207.5s9.27-3.11%2011-7.5c-1.73-4.39-6-7.5-11-7.5Zm0%2012.5c-2.76%200-5-2.24-5-5s2.24-5%205-5%205%202.24%205%205-2.24%205-5%205Zm0-8c-1.66%200-3%201.34-3%203s1.34%203%203%203%203-1.34%203-3-1.34-3-3-3Z'/%3e%3c/svg%3e",rp="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",np="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='currentColor'%20d='M7.50049%2012.5957C7.99711%2012.5958%208.4818%2012.7503%208.88721%2013.0371C9.2926%2013.324%209.59891%2013.7299%209.76416%2014.1982L9.7876%2014.2646H15.8335C16.028%2014.2646%2016.2145%2014.342%2016.3521%2014.4795C16.4896%2014.617%2016.5669%2014.8036%2016.5669%2014.998C16.5669%2015.1925%2016.4895%2015.3791%2016.3521%2015.5166C16.2145%2015.6541%2016.028%2015.7314%2015.8335%2015.7314H9.7876L9.76416%2015.7979C9.59892%2016.2662%209.29255%2016.6721%208.88721%2016.959C8.4818%2017.2458%207.99711%2017.4003%207.50049%2017.4004C7.00381%2017.4004%206.51924%2017.2458%206.11377%2016.959C5.70828%2016.6721%205.40112%2016.2663%205.23584%2015.7979L5.2124%2015.7314H4.1665C3.97213%2015.7314%203.7854%2015.6541%203.64795%2015.5166C3.51055%2015.3791%203.43311%2015.1924%203.43311%2014.998C3.43313%2014.8036%203.51052%2014.617%203.64795%2014.4795C3.7854%2014.342%203.97213%2014.2647%204.1665%2014.2646H5.2124L5.23584%2014.1982C5.40112%2013.7298%205.70828%2013.324%206.11377%2013.0371C6.51922%2012.7503%207.00384%2012.5957%207.50049%2012.5957ZM7.50049%2014.0645C7.25305%2014.0645%207.01535%2014.163%206.84033%2014.3379C6.66532%2014.5129%206.56692%2014.7505%206.56689%2014.998C6.56689%2015.2456%206.6653%2015.4832%206.84033%2015.6582C7.01535%2015.8332%207.25301%2015.9316%207.50049%2015.9316C7.74777%2015.9316%207.98474%2015.833%208.15967%2015.6582C8.3347%2015.4832%208.43311%2015.2456%208.43311%2014.998C8.43308%2014.7505%208.33468%2014.5129%208.15967%2014.3379C7.98475%2014.1632%207.74773%2014.0645%207.50049%2014.0645ZM12.5005%207.5957C12.9971%207.59577%2013.4818%207.75025%2013.8872%208.03711C14.2926%208.32402%2014.5989%208.72989%2014.7642%209.19824L14.7876%209.26465H15.8335C16.028%209.26465%2016.2145%209.34199%2016.3521%209.47949C16.4896%209.617%2016.5669%209.80359%2016.5669%209.99805C16.5669%2010.1925%2016.4895%2010.3791%2016.3521%2010.5166C16.2145%2010.6541%2016.028%2010.7314%2015.8335%2010.7314H14.7876L14.7642%2010.7979C14.5989%2011.2662%2014.2926%2011.6721%2013.8872%2011.959C13.4818%2012.2458%2012.9971%2012.4003%2012.5005%2012.4004C12.0038%2012.4004%2011.5192%2012.2458%2011.1138%2011.959C10.7083%2011.6721%2010.4011%2011.2663%2010.2358%2010.7979L10.2124%2010.7314H4.1665C3.97213%2010.7314%203.7854%2010.6541%203.64795%2010.5166C3.51055%2010.3791%203.43311%2010.1924%203.43311%209.99805C3.43313%209.80364%203.51052%209.61699%203.64795%209.47949C3.7854%209.34204%203.97213%209.26473%204.1665%209.26465H10.2124L10.2358%209.19824C10.4011%208.72981%2010.7083%208.32403%2011.1138%208.03711C11.5192%207.75029%2012.0038%207.5957%2012.5005%207.5957ZM12.5005%209.06445C12.2531%209.06445%2012.0153%209.16299%2011.8403%209.33789C11.6653%209.5129%2011.5669%209.75054%2011.5669%209.99805C11.5669%2010.2456%2011.6653%2010.4832%2011.8403%2010.6582C12.0154%2010.8332%2012.253%2010.9316%2012.5005%2010.9316C12.7478%2010.9316%2012.9847%2010.833%2013.1597%2010.6582C13.3347%2010.4832%2013.4331%2010.2456%2013.4331%209.99805C13.4331%209.75054%2013.3347%209.5129%2013.1597%209.33789C12.9847%209.16316%2012.7477%209.06454%2012.5005%209.06445ZM7.50049%202.5957C7.99711%202.59577%208.4818%202.75025%208.88721%203.03711C9.2926%203.32402%209.59891%203.72989%209.76416%204.19824L9.7876%204.26465H15.8335C16.028%204.26465%2016.2145%204.34199%2016.3521%204.47949C16.4896%204.617%2016.5669%204.80359%2016.5669%204.99805C16.5669%205.19252%2016.4895%205.37908%2016.3521%205.5166C16.2145%205.65413%2016.028%205.73145%2015.8335%205.73145H9.7876L9.76416%205.79785C9.59892%206.26617%209.29255%206.67208%208.88721%206.95898C8.4818%207.24584%207.99711%207.40032%207.50049%207.40039C7.00381%207.40039%206.51924%207.24584%206.11377%206.95898C5.70828%206.67207%205.40112%206.26628%205.23584%205.79785L5.2124%205.73145H4.1665C3.97213%205.73136%203.7854%205.65405%203.64795%205.5166C3.51055%205.37909%203.43311%205.19244%203.43311%204.99805C3.43313%204.80364%203.51052%204.61699%203.64795%204.47949C3.7854%204.34204%203.97213%204.26473%204.1665%204.26465H5.2124L5.23584%204.19824C5.40112%203.72981%205.70828%203.32403%206.11377%203.03711C6.51922%202.75029%207.00384%202.5957%207.50049%202.5957ZM7.50049%204.06445C7.25305%204.06445%207.01535%204.16299%206.84033%204.33789C6.66532%204.5129%206.56692%204.75054%206.56689%204.99805C6.56689%205.24558%206.6653%205.48317%206.84033%205.6582C7.01535%205.83316%207.25301%205.93164%207.50049%205.93164C7.74777%205.93155%207.98474%205.83298%208.15967%205.6582C8.3347%205.48317%208.43311%205.24558%208.43311%204.99805C8.43308%204.75054%208.33468%204.5129%208.15967%204.33789C7.98475%204.16316%207.74773%204.06454%207.50049%204.06445Z'/%3e%3c/svg%3e",ap="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",sp="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",op="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",ip="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",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'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",lp="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",up="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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20m0%202a8%208%200%201%201%200%2016%208%208%200%200%201%200-16m-1%205h2V7h-2zm0%208h2v-6h-2z'%20fill='currentColor'/%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%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",fp="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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.172%202A2%202%200%200%201%2012.586%202.586l8%208a2%202%200%200%201%200%202.828l-7.172%207.172a2%202%200%200%201-2.828%200l-8-8A2%202%200%200%201%202%2011.172V4a2%202%200%200%201%202-2h7.172ZM7%208a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z'%20fill='%23000'/%3e%3c/svg%3e",hp="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",mp="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",pp="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",gp="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",yp="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",vp="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",bp="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",wp="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",_p="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",Cp="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",Ep="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",xp="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",Sp="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",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='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",Ap="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",kp=Object.assign({"../../assets/icons/arrow-left.svg":Sm,"../../assets/icons/bell.svg":Tm,"../../assets/icons/carousel-arrow.svg":Am,"../../assets/icons/cart-solid.svg":km,"../../assets/icons/cart.svg":Im,"../../assets/icons/cat-accessories.svg":Rm,"../../assets/icons/cat-feet.svg":Nm,"../../assets/icons/cat-handwear.svg":Pm,"../../assets/icons/cat-head.svg":Om,"../../assets/icons/cat-lower.svg":jm,"../../assets/icons/cat-skins.svg":Lm,"../../assets/icons/cat-upper.svg":Mm,"../../assets/icons/category-eyewear.svg":Bm,"../../assets/icons/check.svg":Fm,"../../assets/icons/chevron-down.svg":$m,"../../assets/icons/clock.svg":Dm,"../../assets/icons/close.svg":qm,"../../assets/icons/copy.svg":Um,"../../assets/icons/credits.svg":Hm,"../../assets/icons/discord.svg":Vm,"../../assets/icons/emote-dance.svg":zm,"../../assets/icons/emote-fun.svg":Gm,"../../assets/icons/emote-greetings.svg":Wm,"../../assets/icons/emote-horror.svg":Zm,"../../assets/icons/emote-misc.svg":Km,"../../assets/icons/emote-poses.svg":Ym,"../../assets/icons/emote-reactions.svg":Qm,"../../assets/icons/emote-stunt.svg":Jm,"../../assets/icons/ethereum.svg":Xm,"../../assets/icons/external-link.svg":ep,"../../assets/icons/eye.svg":tp,"../../assets/icons/facebook.svg":rp,"../../assets/icons/filter.svg":np,"../../assets/icons/fitting-room.svg":ap,"../../assets/icons/gender-female.svg":sp,"../../assets/icons/gender-male.svg":op,"../../assets/icons/gender-unisex.svg":ip,"../../assets/icons/heart-solid.svg":cp,"../../assets/icons/heart.svg":lp,"../../assets/icons/info.svg":up,"../../assets/icons/mana-logo.svg":dp,"../../assets/icons/offer.svg":fp,"../../assets/icons/pen.svg":hp,"../../assets/icons/plus.svg":mp,"../../assets/icons/search.svg":pp,"../../assets/icons/slot-feet.svg":gp,"../../assets/icons/slot-hands.svg":yp,"../../assets/icons/slot-head.svg":vp,"../../assets/icons/slot-item.svg":bp,"../../assets/icons/slot-lower.svg":wp,"../../assets/icons/slot-upper.svg":_p,"../../assets/icons/smart.svg":Cp,"../../assets/icons/trash.svg":Ep,"../../assets/icons/twitter.svg":xp,"../../assets/icons/upload.svg":Sp,"../../assets/icons/view-all-arrow.svg":Tp,"../../assets/icons/website.svg":Ap}),Pf={};for(const[e,t]of Object.entries(kp))Pf[e.slice(e.lastIndexOf("/")+1,-4)]=t;function ct({name:e,size:t,className:r,style:n,...a}){const s=Pf[e],o={"--icon-url":s?`url("${s}")`:void 0,...t!=null?{width:t,height:t}:null,...n},u=a["aria-label"]==null&&a.role==null;return d.jsx("span",{"aria-hidden":u||void 0,...a,className:r?`ico ${r}`:"ico",style:o})}function Ye(){return Ye=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},Ye.apply(null,arguments)}function Ip(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 Rp(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 Np=(function(){function e(r){var n=this;this._insertTag=function(a){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(a,s),n.tags.push(a)},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(Rp(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ip(a);try{s.insertRule(n,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Bt="-ms-",Mo="-moz-",We="-webkit-",Of="comm",Bl="rule",Fl="decl",Pp="@import",jf="@keyframes",Op="@layer",jp=Math.abs,Uo=String.fromCharCode,Lp=Object.assign;function Mp(e,t){return Pt(e,0)^45?(((t<<2^Pt(e,0))<<2^Pt(e,1))<<2^Pt(e,2))<<2^Pt(e,3):0}function Lf(e){return e.trim()}function Bp(e,t){return(e=t.exec(e))?e[0]:e}function Ze(e,t,r){return e.replace(t,r)}function hl(e,t){return e.indexOf(t)}function Pt(e,t){return e.charCodeAt(t)|0}function Ja(e,t,r){return e.slice(t,r)}function Nr(e){return e.length}function $l(e){return e.length}function mo(e,t){return t.push(e),e}function Fp(e,t){return e.map(t).join("")}var Ho=1,Ea=1,Mf=0,er=0,bt=0,ka="";function Vo(e,t,r,n,a,s,o){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:Ho,column:Ea,length:o,return:""}}function La(e,t){return Lp(Vo("",null,null,"",null,null,0),e,{length:-e.length},t)}function $p(){return bt}function Dp(){return bt=er>0?Pt(ka,--er):0,Ea--,bt===10&&(Ea=1,Ho--),bt}function ir(){return bt=er<Mf?Pt(ka,er++):0,Ea++,bt===10&&(Ea=1,Ho++),bt}function Or(){return Pt(ka,er)}function Io(){return er}function ms(e,t){return Ja(ka,e,t)}function Xa(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 Bf(e){return Ho=Ea=1,Mf=Nr(ka=e),er=0,[]}function Ff(e){return ka="",e}function Ro(e){return Lf(ms(er-1,ml(e===91?e+2:e===40?e+1:e)))}function qp(e){for(;(bt=Or())&&bt<33;)ir();return Xa(e)>2||Xa(bt)>3?"":" "}function Up(e,t){for(;--t&&ir()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return ms(e,Io()+(t<6&&Or()==32&&ir()==32))}function ml(e){for(;ir();)switch(bt){case e:return er;case 34:case 39:e!==34&&e!==39&&ml(bt);break;case 40:e===41&&ml(e);break;case 92:ir();break}return er}function Hp(e,t){for(;ir()&&e+bt!==57;)if(e+bt===84&&Or()===47)break;return"/*"+ms(t,er-1)+"*"+Uo(e===47?e:ir())}function Vp(e){for(;!Xa(Or());)ir();return ms(e,er)}function zp(e){return Ff(No("",null,null,null,[""],e=Bf(e),0,[0],e))}function No(e,t,r,n,a,s,o,u,f){for(var h=0,p=0,m=o,g=0,_=0,x=0,y=1,k=1,G=1,v=0,A="",w=a,K=s,H=n,S=A;k;)switch(x=v,v=ir()){case 40:if(x!=108&&Pt(S,m-1)==58){hl(S+=Ze(Ro(v),"&","&\f"),"&\f")!=-1&&(G=-1);break}case 34:case 39:case 91:S+=Ro(v);break;case 9:case 10:case 13:case 32:S+=qp(x);break;case 92:S+=Up(Io()-1,7);continue;case 47:switch(Or()){case 42:case 47:mo(Gp(Hp(ir(),Io()),t,r),f);break;default:S+="/"}break;case 123*y:u[h++]=Nr(S)*G;case 125*y:case 59:case 0:switch(v){case 0:case 125:k=0;case 59+p:G==-1&&(S=Ze(S,/\f/g,"")),_>0&&Nr(S)-m&&mo(_>32?Wu(S+";",n,r,m-1):Wu(Ze(S," ","")+";",n,r,m-2),f);break;case 59:S+=";";default:if(mo(H=Gu(S,t,r,h,p,a,u,A,w=[],K=[],m),s),v===123)if(p===0)No(S,t,H,H,w,s,m,u,K);else switch(g===99&&Pt(S,3)===110?100:g){case 100:case 108:case 109:case 115:No(e,H,H,n&&mo(Gu(e,H,H,0,0,a,u,A,a,w=[],m),K),a,K,m,u,n?w:K);break;default:No(S,H,H,H,[""],K,0,u,K)}}h=p=_=0,y=G=1,A=S="",m=o;break;case 58:m=1+Nr(S),_=x;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&Dp()==125)continue}switch(S+=Uo(v),v*y){case 38:G=p>0?1:(S+="\f",-1);break;case 44:u[h++]=(Nr(S)-1)*G,G=1;break;case 64:Or()===45&&(S+=Ro(ir())),g=Or(),p=m=Nr(A=S+=Vp(Io())),v++;break;case 45:x===45&&Nr(S)==2&&(y=0)}}return s}function Gu(e,t,r,n,a,s,o,u,f,h,p){for(var m=a-1,g=a===0?s:[""],_=$l(g),x=0,y=0,k=0;x<n;++x)for(var G=0,v=Ja(e,m+1,m=jp(y=o[x])),A=e;G<_;++G)(A=Lf(y>0?g[G]+" "+v:Ze(v,/&\f/g,g[G])))&&(f[k++]=A);return Vo(e,t,r,a===0?Bl:u,f,h,p)}function Gp(e,t,r){return Vo(e,t,r,Of,Uo($p()),Ja(e,2,-2),0)}function Wu(e,t,r,n){return Vo(e,t,r,Fl,Ja(e,0,n),Ja(e,n+1,-1),n)}function aa(e,t){for(var r="",n=$l(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Wp(e,t,r,n){switch(e.type){case Op:if(e.children.length)break;case Pp:case Fl:return e.return=e.return||e.value;case Of:return"";case jf:return e.return=e.value+"{"+aa(e.children,n)+"}";case Bl:e.value=e.props.join(",")}return Nr(r=aa(e.children,n))?e.return=e.value+"{"+r+"}":""}function Zp(e){var t=$l(e);return function(r,n,a,s){for(var o="",u=0;u<t;u++)o+=e[u](r,n,a,s)||"";return o}}function Kp(e){return function(t){t.root||(t=t.return)&&e(t)}}function $f(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Yp=function(t,r,n){for(var a=0,s=0;a=s,s=Or(),a===38&&s===12&&(r[n]=1),!Xa(s);)ir();return ms(t,er)},Qp=function(t,r){var n=-1,a=44;do switch(Xa(a)){case 0:a===38&&Or()===12&&(r[n]=1),t[n]+=Yp(er-1,r,n);break;case 2:t[n]+=Ro(a);break;case 4:if(a===44){t[++n]=Or()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Uo(a)}while(a=ir());return t},Jp=function(t,r){return Ff(Qp(Bf(t),r))},Zu=new WeakMap,Xp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=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&&!Zu.get(n))&&!a){Zu.set(t,!0);for(var s=[],o=Jp(r,s),u=n.props,f=0,h=0;f<o.length;f++)for(var p=0;p<u.length;p++,h++)t.props[h]=s[f]?o[f].replace(/&\f/g,u[p]):u[p]+" "+o[f]}}},eg=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Df(e,t){switch(Mp(e,t)){case 5103:return We+"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 We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+Mo+e+Bt+e+e;case 6828:case 4268:return We+e+Bt+e+e;case 6165:return We+e+Bt+"flex-"+e+e;case 5187:return We+e+Ze(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+Bt+"flex-$1$2")+e;case 5443:return We+e+Bt+"flex-item-"+Ze(e,/flex-|-self/,"")+e;case 4675:return We+e+Bt+"flex-line-pack"+Ze(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+Bt+Ze(e,"shrink","negative")+e;case 5292:return We+e+Bt+Ze(e,"basis","preferred-size")+e;case 6060:return We+"box-"+Ze(e,"-grow","")+We+e+Bt+Ze(e,"grow","positive")+e;case 4554:return We+Ze(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return Ze(Ze(Ze(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return Ze(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return Ze(Ze(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+Bt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return Ze(e,/(.+)-inline(.+)/,We+"$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(Nr(e)-1-t>6)switch(Pt(e,t+1)){case 109:if(Pt(e,t+4)!==45)break;case 102:return Ze(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Mo+(Pt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hl(e,"stretch")?Df(Ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pt(e,t+1)!==115)break;case 6444:switch(Pt(e,Nr(e)-3-(~hl(e,"!important")&&10))){case 107:return Ze(e,":",":"+We)+e;case 101:return Ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(Pt(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+Bt+"$2box$3")+e}break;case 5936:switch(Pt(e,t+11)){case 114:return We+e+Bt+Ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+Bt+Ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+Bt+Ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+Bt+e+e}return e}var tg=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Fl:t.return=Df(t.value,t.length);break;case jf:return aa([La(t,{value:Ze(t.value,"@","@"+We)})],a);case Bl:if(t.length)return Fp(t.props,function(s){switch(Bp(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return aa([La(t,{props:[Ze(s,/:(read-\w+)/,":"+Mo+"$1")]})],a);case"::placeholder":return aa([La(t,{props:[Ze(s,/:(plac\w+)/,":"+We+"input-$1")]}),La(t,{props:[Ze(s,/:(plac\w+)/,":"+Mo+"$1")]}),La(t,{props:[Ze(s,/:(plac\w+)/,Bt+"input-$1")]})],a)}return""})}},rg=[tg],qf=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(y){var k=y.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||rg,s={},o,u=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var k=y.getAttribute("data-emotion").split(" "),G=1;G<k.length;G++)s[k[G]]=!0;u.push(y)});var f,h=[Xp,eg];{var p,m=[Wp,Kp(function(y){p.insert(y)})],g=Zp(h.concat(a,m)),_=function(k){return aa(zp(k),g)};f=function(k,G,v,A){p=v,_(k?k+"{"+G.styles+"}":G.styles),A&&(x.inserted[G.name]=!0)}}var x={key:r,sheet:new Np({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:f};return x.sheet.hydrate(u),x},ng=!0;function Uf(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var Dl=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||ng===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},ql=function(t,r,n){Dl(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function ag(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=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(a){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 sg={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},og=/[A-Z]|^ms/g,ig=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hf=function(t){return t.charCodeAt(1)===45},Ku=function(t){return t!=null&&typeof t!="boolean"},Ei=$f(function(e){return Hf(e)?e:e.replace(og,"-$&").toLowerCase()}),Yu=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ig,function(n,a,s){return Pr={name:a,styles:s,next:Pr},a})}return sg[t]!==1&&!Hf(t)&&typeof r=="number"&&r!==0?r+"px":r};function es(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 a=r;if(a.anim===1)return Pr={name:a.name,styles:a.styles,next:Pr},a.name;var s=r;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)Pr={name:o.name,styles:o.styles,next:Pr},o=o.next;var u=s.styles+";";return u}return cg(e,t,r)}case"function":{if(e!==void 0){var f=Pr,h=r(e);return Pr=f,es(e,t,h)}break}}var p=r;if(t==null)return p;var m=t[p];return m!==void 0?m:p}function cg(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=es(e,t,r[a])+";";else for(var s in r){var o=r[s];if(typeof o!="object"){var u=o;t!=null&&t[u]!==void 0?n+=s+"{"+t[u]+"}":Ku(u)&&(n+=Ei(s)+":"+Yu(s,u)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var f=0;f<o.length;f++)Ku(o[f])&&(n+=Ei(s)+":"+Yu(s,o[f])+";");else{var h=es(e,t,o);switch(s){case"animation":case"animationName":{n+=Ei(s)+":"+h+";";break}default:n+=s+"{"+h+"}"}}}return n}var Qu=/label:\s*([^\s;{]+)\s*(;|$)/g,Pr;function ps(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,a="";Pr=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,a+=es(r,t,s);else{var o=s;a+=o[0]}for(var u=1;u<e.length;u++)if(a+=es(r,t,e[u]),n){var f=s;a+=f[u]}Qu.lastIndex=0;for(var h="",p;(p=Qu.exec(a))!==null;)h+="-"+p[1];var m=ag(a)+h;return{name:m,styles:a,next:Pr}}var lg=function(t){return t()},Vf=Vc.useInsertionEffect?Vc.useInsertionEffect:!1,zf=Vf||lg,Ju=Vf||ne.useLayoutEffect,Gf=ne.createContext(typeof HTMLElement<"u"?qf({key:"css"}):null),ug=Gf.Provider,Ul=function(t){return ne.forwardRef(function(r,n){var a=ne.useContext(Gf);return t(r,a,n)})},zo=ne.createContext({}),Hl={}.hasOwnProperty,pl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dg=function(t,r){var n={};for(var a in r)Hl.call(r,a)&&(n[a]=r[a]);return n[pl]=t,n},fg=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Dl(r,n,a),zf(function(){return ql(r,n,a)}),null},hg=Ul(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[pl],s=[n],o="";typeof e.className=="string"?o=Uf(t.registered,s,e.className):e.className!=null&&(o=e.className+" ");var u=ps(s,void 0,ne.useContext(zo));o+=t.key+"-"+u.name;var f={};for(var h in e)Hl.call(e,h)&&h!=="css"&&h!==pl&&(f[h]=e[h]);return f.className=o,r&&(f.ref=r),ne.createElement(ne.Fragment,null,ne.createElement(fg,{cache:t,serialized:u,isStringTag:typeof a=="string"}),ne.createElement(a,f))}),mg=hg,Xu=function(t,r){var n=arguments;if(r==null||!Hl.call(r,"css"))return ne.createElement.apply(void 0,n);var a=n.length,s=new Array(a);s[0]=mg,s[1]=dg(t,r);for(var o=2;o<a;o++)s[o]=n[o];return ne.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Xu||(Xu={}));var pg=Ul(function(e,t){var r=e.styles,n=ps([r],void 0,ne.useContext(zo)),a=ne.useRef();return Ju(function(){var s=t.key+"-global",o=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,f=document.querySelector('style[data-emotion="'+s+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),f!==null&&(u=!0,f.setAttribute("data-emotion",s),o.hydrate([f])),a.current=[o,u],function(){o.flush()}},[t]),Ju(function(){var s=a.current,o=s[0],u=s[1];if(u){s[1]=!1;return}if(n.next!==void 0&&ql(t,n.next,!0),o.tags.length){var f=o.tags[o.tags.length-1].nextElementSibling;o.before=f,o.flush()}t.insert("",n,o,!1)},[t,n.name]),null});function Vl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ps(t)}function Wf(){var e=Vl.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 gg=/^((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)-.*))$/,yg=$f(function(e){return gg.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),vg=yg,bg=function(t){return t!=="theme"},e0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?vg:bg},t0=function(t,r,n){var a;if(r){var s=r.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(o){return t.__emotion_forwardProp(o)&&s(o)}:s}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},wg=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Dl(r,n,a),zf(function(){return ql(r,n,a)}),null},_g=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,s,o;r!==void 0&&(s=r.label,o=r.target);var u=t0(t,r,n),f=u||e0(a),h=!f("as");return function(){var p=arguments,m=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{var g=p[0];m.push(g[0]);for(var _=p.length,x=1;x<_;x++)m.push(p[x],g[x])}var y=Ul(function(k,G,v){var A=h&&k.as||a,w="",K=[],H=k;if(k.theme==null){H={};for(var S in k)H[S]=k[S];H.theme=ne.useContext(zo)}typeof k.className=="string"?w=Uf(G.registered,K,k.className):k.className!=null&&(w=k.className+" ");var U=ps(m.concat(K),G.registered,H);w+=G.key+"-"+U.name,o!==void 0&&(w+=" "+o);var Q=h&&u===void 0?e0(A):f,ee={};for(var ae in k)h&&ae==="as"||Q(ae)&&(ee[ae]=k[ae]);return ee.className=w,v&&(ee.ref=v),ne.createElement(ne.Fragment,null,ne.createElement(wg,{cache:G,serialized:U,isStringTag:typeof A=="string"}),ne.createElement(A,ee))});return y.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=a,y.__emotion_styles=m,y.__emotion_forwardProp=u,Object.defineProperty(y,"toString",{value:function(){return"."+o}}),y.withComponent=function(k,G){var v=e(k,Ye({},r,G,{shouldForwardProp:t0(y,G,!0)}));return v.apply(void 0,m)},y}},Cg=["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"],_t=_g.bind(null);Cg.forEach(function(e){_t[e]=_t(e)});const Eg={text:"#161518",text2:"#242129",muted:"#716b7c",muted2:"#a09ba8",gray0:"#43404a",gray4:"#cfcdd4",line:"#e6e4ea",lineStrong:"#a09ba8",media:"#ecebed",panel:"#f5f5f5",chip:"#ecebed",accent:"#691fa9",accentHover:"#7a2bbf",accentActive:"#57178c",navViolet:"#e3c9fb",navOverlayHover:"rgba(255, 255, 255, 0.35)",navOverlayActive:"rgba(255, 255, 255, 0.45)",magenta:"#c640cd",brandViolet:"#a524b3",rarity:"#a14bf3",rarityBg:"rgba(161, 75, 243, 0.3)",blackBtn:"#242129",softWhite:"#fcfcfc",dclRed:"#ff2d55",ok:"#1ea672",okStrong:"#1f8a4c",errStrong:"#d64545",white:"#ffffff"},xg={common:"#73d3d3",uncommon:"#ff8362",rare:"#34ce76",epic:"#289cff",legendary:"#a24bf3",exotic:"#bdfd4e",mythic:"#ff4bed",unique:"#fea217"},Sg={amethyst:"linear-gradient(180deg, #c640cd 0%, #691fa9 100%)",cerise:"linear-gradient(135deg, #ff2d55 0%, #c640cd 100%)"},Tg={card:"12px",btn:"8px",pill:"50px",banner:"24px"},Ag={sans:'"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},gl={mobile:768,sm:720,md:820,lg:900},kg={down:e=>`@media (max-width: ${gl[e]}px)`,up:e=>`@media (min-width: ${gl[e]+1}px)`},Me={colors:Eg,rarities:xg,gradients:Sg,radius:Tg,font:Ag,media:kg},Ig=_t.div`
3
- position: fixed;
4
- top: 0;
5
- left: 0;
6
- right: 0;
7
- height: 92px;
8
- background: ${Me.colors.navViolet};
9
- z-index: 50;
10
-
11
- ${Me.media.down("mobile")} {
12
- height: 64px;
13
- }
14
- `,Rg=_t.div`
15
- display: contents;
16
-
17
- /* Bar background: flat light violet — drop ui2's dark translucent fill, blur and shadow. */
18
- & nav::before {
19
- background: ${Me.colors.navViolet};
20
- backdrop-filter: none;
21
- -webkit-backdrop-filter: none;
22
- box-shadow: none;
23
- }
24
-
25
- /* Desktop nav tabs (Explore / Shop / Create / Learn): dark text on the light bar. Direct-child
26
- selectors deliberately exclude the dark dropdown panels that open on hover. */
27
- & nav > div:first-of-type > div > a,
28
- & nav > div:first-of-type > div > div > button {
29
- color: ${Me.colors.text2};
30
- }
31
- & nav > div:first-of-type > div > a:hover,
32
- & nav > div:first-of-type > div > div > button:hover {
33
- color: ${Me.colors.text2};
34
- background-color: ${Me.colors.navOverlayHover};
35
- }
36
- & nav > div:first-of-type > div > a.active,
37
- & nav > div:first-of-type > div > div > button.active {
38
- color: ${Me.colors.text2};
39
- background-color: ${Me.colors.navOverlayActive};
40
- }
41
-
42
- /* Sign-in button (signed-out state): dark outline + text instead of ui2's near-white, which would
43
- be invisible on the violet bar. The hamburger is excluded via :not([aria-label]). */
44
- & nav > div:last-of-type > button:not([aria-label]) {
45
- color: ${Me.colors.text2};
46
- border-color: ${Me.colors.text2};
47
- }
48
- & nav > div:last-of-type > button:not([aria-label]):hover {
49
- background-color: ${Me.colors.navOverlayHover};
50
- border-color: ${Me.colors.text2};
51
- }
52
- & nav > div:last-of-type > button:not([aria-label]):active {
53
- background-color: ${Me.colors.navOverlayActive};
54
- border-color: ${Me.colors.text2};
55
- }
56
-
57
- /* Mobile hamburger / menu button: solid purple with a white icon (Figma node 1368-356253) — ui2's
58
- default is a faint white-on-dark chip. The icon uses currentColor, so the color prop drives it. */
59
- & nav button[aria-label='Open menu'],
60
- & nav button[aria-label='Close menu'] {
61
- background-color: ${Me.colors.accent};
62
- color: ${Me.colors.white};
63
- }
64
- & nav button[aria-label='Open menu']:hover,
65
- & nav button[aria-label='Close menu']:hover {
66
- background-color: ${Me.colors.accentHover};
67
- }
68
- & nav button[aria-label='Open menu']:active,
69
- & nav button[aria-label='Close menu']:active {
70
- background-color: ${Me.colors.accentActive};
71
- }
72
- `,Ng=ne.lazy(()=>Et(()=>import("./index-BLHU8DgF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(e=>({default:e.Navbar})));function Pg(e){return d.jsx(ne.Suspense,{fallback:d.jsx(Ig,{"aria-hidden":!0}),children:d.jsx(Rg,{children:d.jsx(Ng,{...e})})})}const Og={},r0=e=>{let t;const r=new Set,n=(p,m)=>{const g=typeof p=="function"?p(t):p;if(!Object.is(g,t)){const _=t;t=m??(typeof g!="object"||g===null)?g:Object.assign({},t,g),r.forEach(x=>x(t,_))}},a=()=>t,f={setState:n,getState:a,getInitialState:()=>h,subscribe:p=>(r.add(p),()=>r.delete(p)),destroy:()=>{(Og?"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,a,f);return f},jg=e=>e?r0(e):r0;var xi={exports:{}},Si={},Ti={exports:{}},Ai={};/**
73
- * @license React
74
- * use-sync-external-store-shim.production.js
75
- *
76
- * Copyright (c) Meta Platforms, Inc. and affiliates.
77
- *
78
- * This source code is licensed under the MIT license found in the
79
- * LICENSE file in the root directory of this source tree.
80
- */var n0;function Lg(){if(n0)return Ai;n0=1;var e=cf();function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,s=e.useLayoutEffect,o=e.useDebugValue;function u(m,g){var _=g(),x=n({inst:{value:_,getSnapshot:g}}),y=x[0].inst,k=x[1];return s(function(){y.value=_,y.getSnapshot=g,f(y)&&k({inst:y})},[m,_,g]),a(function(){return f(y)&&k({inst:y}),m(function(){f(y)&&k({inst:y})})},[m]),o(_),_}function f(m){var g=m.getSnapshot;m=m.value;try{var _=g();return!r(m,_)}catch{return!0}}function h(m,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return Ai.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Ai}var a0;function Mg(){return a0||(a0=1,Ti.exports=Lg()),Ti.exports}/**
81
- * @license React
82
- * use-sync-external-store-shim/with-selector.production.js
83
- *
84
- * Copyright (c) Meta Platforms, Inc. and affiliates.
85
- *
86
- * This source code is licensed under the MIT license found in the
87
- * LICENSE file in the root directory of this source tree.
88
- */var s0;function Bg(){if(s0)return Si;s0=1;var e=cf(),t=Mg();function r(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,s=e.useRef,o=e.useEffect,u=e.useMemo,f=e.useDebugValue;return Si.useSyncExternalStoreWithSelector=function(h,p,m,g,_){var x=s(null);if(x.current===null){var y={hasValue:!1,value:null};x.current=y}else y=x.current;x=u(function(){function G(H){if(!v){if(v=!0,A=H,H=g(H),_!==void 0&&y.hasValue){var S=y.value;if(_(S,H))return w=S}return w=H}if(S=w,n(A,H))return S;var U=g(H);return _!==void 0&&_(S,U)?(A=H,S):(A=H,w=U)}var v=!1,A,w,K=m===void 0?null:m;return[function(){return G(p())},K===null?void 0:function(){return G(K())}]},[p,m,g,_]);var k=a(h,x[0],x[1]);return o(function(){y.hasValue=!0,y.value=k},[k]),f(k),k},Si}var o0;function Fg(){return o0||(o0=1,xi.exports=Bg()),xi.exports}var $g=Fg();const Dg=Do($g),Zf={},{useDebugValue:qg}=lf,{useSyncExternalStoreWithSelector:Ug}=Dg;let i0=!1;const Hg=e=>e;function Vg(e,t=Hg,r){(Zf?"production":void 0)!=="production"&&r&&!i0&&(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"),i0=!0);const n=Ug(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return qg(n),n}const c0=e=>{(Zf?"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"?jg(e):e,r=(n,a)=>Vg(t,n,a);return Object.assign(r,t),r},Un=e=>e?c0(e):c0;var En={},pr={},Va={exports:{}},zg=Va.exports,l0;function Go(){return l0||(l0=1,(function(e,t){(function(r,n){n(t)})(zg,(function(r){function n(i){if(i.jsonrpc="2.0",!i.id||typeof i.id!="number"||Math.floor(i.id)!==i.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(i)}`);if(!i.method||typeof i.method!="string"||i.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(i)}`);if(!i.params||typeof i.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(i)}`);return i}var a={};function s(){let i,l;const b=new Promise(((I,B)=>{i=z=>{I(z),b.isPending=!1},l=z=>{B(z),b.isPending=!1}})).catch((I=>Promise.reject(I)));return b.resolve=i,b.reject=l,"finally"in b||(b.finally=I=>{b.then(I),b.catch(I)}),b.isPending=!0,b}Object.defineProperty(a,"__esModule",{value:!0});var o=a.future=s;a.default=s;var u={exports:{}};/**
89
- * [js-sha3]{@link https://github.com/emn178/js-sha3}
90
- *
91
- * @version 0.8.0
92
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
93
- * @copyright Chen, Yi-Cyuan 2015-2018
94
- * @license MIT
95
- */(function(i){(function(){var l="input is invalid type",b=typeof window=="object",I=b?window:{};I.JS_SHA3_NO_WINDOW&&(b=!1);var B=!b&&typeof self=="object";!I.JS_SHA3_NO_NODE_JS&&typeof ko=="object"&&ko.versions&&ko.versions.node?I=zc:B&&(I=self);var z=!I.JS_SHA3_NO_COMMON_JS&&i.exports,oe=!I.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",pe="0123456789abcdef".split(""),Ie=[4,1024,262144,67108864],Pe=[0,8,16,24],$t=[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],lt=[224,256,384,512],ye=[128,256],kt=["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]"}),!oe||!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,C,O){return function(T){return new Ve(c,C,c).update(T)[O]()}},jt=function(c,C,O){return function(T,F){return new Ve(c,C,F).update(T)[O]()}},Fr=function(c,C,O){return function(T,F,D,q){return It["cshake"+c].update(T,F,D,q)[O]()}},_r=function(c,C,O){return function(T,F,D,q){return It["kmac"+c].update(T,F,D,q)[O]()}},Lt=function(c,C,O,T){for(var F=0;F<kt.length;++F){var D=kt[F];c[D]=C(O,T,D)}return c},Cr=function(c,C){var O=et(c,C,"hex");return O.create=function(){return new Ve(c,C,c)},O.update=function(T){return O.create().update(T)},Lt(O,et,c,C)},en=[{name:"keccak",padding:[1,256,65536,16777216],bits:lt,createMethod:Cr},{name:"sha3",padding:[6,1536,393216,100663296],bits:lt,createMethod:Cr},{name:"shake",padding:[31,7936,2031616,520093696],bits:ye,createMethod:function(c,C){var O=jt(c,C,"hex");return O.create=function(T){return new Ve(c,C,T)},O.update=function(T,F){return O.create(F).update(T)},Lt(O,jt,c,C)}},{name:"cshake",padding:Ie,bits:ye,createMethod:function(c,C){var O=Xe[c],T=Fr(c,0,"hex");return T.create=function(F,D,q){return D||q?new Ve(c,C,F).bytepad([D,q],O):It["shake"+c].create(F)},T.update=function(F,D,q,X){return T.create(D,q,X).update(F)},Lt(T,Fr,c,C)}},{name:"kmac",padding:Ie,bits:ye,createMethod:function(c,C){var O=Xe[c],T=_r(c,0,"hex");return T.create=function(F,D,q){return new rr(c,C,D).bytepad(["KMAC",q],O).bytepad([F],O)},T.update=function(F,D,q,X){return T.create(F,q,X).update(D)},Lt(T,_r,c,C)}}],It={},$r=[],Mt=0;Mt<en.length;++Mt)for(var Er=en[Mt],ue=Er.bits,Dr=0;Dr<ue.length;++Dr){var Yn=Er.name+"_"+ue[Dr];if($r.push(Yn),It[Yn]=Er.createMethod(ue[Dr],Er.padding),Er.name!=="sha3"){var Qn=Er.name+ue[Dr];$r.push(Qn),It[Qn]=It[Yn]}}function Ve(c,C,O){this.blocks=[],this.s=[],this.padding=C,this.outputBits=O,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=O>>5,this.extraBytes=(31&O)>>3;for(var T=0;T<50;++T)this.s[T]=0}function rr(c,C,O){Ve.call(this,c,C,O)}Ve.prototype.update=function(c){if(this.finalized)throw new Error("finalize already called");var C,O=typeof c;if(O!=="string"){if(O!=="object")throw new Error(l);if(c===null)throw new Error(l);if(oe&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||oe&&ArrayBuffer.isView(c)))throw new Error(l);C=!0}for(var T,F,D=this.blocks,q=this.byteCount,X=c.length,re=this.blockCount,te=0,ge=this.s;te<X;){if(this.reset)for(this.reset=!1,D[0]=this.block,T=1;T<re+1;++T)D[T]=0;if(C)for(T=this.start;te<X&&T<q;++te)D[T>>2]|=c[te]<<Pe[3&T++];else for(T=this.start;te<X&&T<q;++te)(F=c.charCodeAt(te))<128?D[T>>2]|=F<<Pe[3&T++]:F<2048?(D[T>>2]|=(192|F>>6)<<Pe[3&T++],D[T>>2]|=(128|63&F)<<Pe[3&T++]):F<55296||F>=57344?(D[T>>2]|=(224|F>>12)<<Pe[3&T++],D[T>>2]|=(128|F>>6&63)<<Pe[3&T++],D[T>>2]|=(128|63&F)<<Pe[3&T++]):(F=65536+((1023&F)<<10|1023&c.charCodeAt(++te)),D[T>>2]|=(240|F>>18)<<Pe[3&T++],D[T>>2]|=(128|F>>12&63)<<Pe[3&T++],D[T>>2]|=(128|F>>6&63)<<Pe[3&T++],D[T>>2]|=(128|63&F)<<Pe[3&T++]);if(this.lastByteIndex=T,T>=q){for(this.start=T-q,this.block=D[re],T=0;T<re;++T)ge[T]^=D[T];E(ge),this.reset=!0}else this.start=T}return this},Ve.prototype.encode=function(c,C){var O=255&c,T=1,F=[O];for(O=255&(c>>=8);O>0;)F.unshift(O),O=255&(c>>=8),++T;return C?F.push(T):F.unshift(T),this.update(F),F.length},Ve.prototype.encodeString=function(c){var C,O=typeof c;if(O!=="string"){if(O!=="object")throw new Error(l);if(c===null)throw new Error(l);if(oe&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||oe&&ArrayBuffer.isView(c)))throw new Error(l);C=!0}var T=0,F=c.length;if(C)T=F;else for(var D=0;D<c.length;++D){var q=c.charCodeAt(D);q<128?T+=1:q<2048?T+=2:q<55296||q>=57344?T+=3:(q=65536+((1023&q)<<10|1023&c.charCodeAt(++D)),T+=4)}return T+=this.encode(8*T),this.update(c),T},Ve.prototype.bytepad=function(c,C){for(var O=this.encode(C),T=0;T<c.length;++T)O+=this.encodeString(c[T]);var F=C-O%C,D=[];return D.length=F,this.update(D),this},Ve.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var c=this.blocks,C=this.lastByteIndex,O=this.blockCount,T=this.s;if(c[C>>2]|=this.padding[3&C],this.lastByteIndex===this.byteCount)for(c[0]=c[O],C=1;C<O+1;++C)c[C]=0;for(c[O-1]|=2147483648,C=0;C<O;++C)T[C]^=c[C];E(T)}},Ve.prototype.toString=Ve.prototype.hex=function(){this.finalize();for(var c,C=this.blockCount,O=this.s,T=this.outputBlocks,F=this.extraBytes,D=0,q=0,X="";q<T;){for(D=0;D<C&&q<T;++D,++q)c=O[D],X+=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];q%C==0&&(E(O),D=0)}return F&&(c=O[D],X+=pe[c>>4&15]+pe[15&c],F>1&&(X+=pe[c>>12&15]+pe[c>>8&15]),F>2&&(X+=pe[c>>20&15]+pe[c>>16&15])),X},Ve.prototype.arrayBuffer=function(){this.finalize();var c,C=this.blockCount,O=this.s,T=this.outputBlocks,F=this.extraBytes,D=0,q=0,X=this.outputBits>>3;c=F?new ArrayBuffer(T+1<<2):new ArrayBuffer(X);for(var re=new Uint32Array(c);q<T;){for(D=0;D<C&&q<T;++D,++q)re[q]=O[D];q%C==0&&E(O)}return F&&(re[D]=O[D],c=c.slice(0,X)),c},Ve.prototype.buffer=Ve.prototype.arrayBuffer,Ve.prototype.digest=Ve.prototype.array=function(){this.finalize();for(var c,C,O=this.blockCount,T=this.s,F=this.outputBlocks,D=this.extraBytes,q=0,X=0,re=[];X<F;){for(q=0;q<O&&X<F;++q,++X)c=X<<2,C=T[q],re[c]=255&C,re[c+1]=C>>8&255,re[c+2]=C>>16&255,re[c+3]=C>>24&255;X%O==0&&E(T)}return D&&(c=X<<2,C=T[q],re[c]=255&C,D>1&&(re[c+1]=C>>8&255),D>2&&(re[c+2]=C>>16&255)),re},rr.prototype=new Ve,rr.prototype.finalize=function(){return this.encode(this.outputBits,!0),Ve.prototype.finalize.call(this)};var E=function(c){var C,O,T,F,D,q,X,re,te,ge,Re,je,De,tt,st,$e,ze,pt,qr,tn,rn,Dt,xr,Rt,yt,Je,ks,Is,Rs,Ns,Ps,Os,js,Ls,Ms,Bs,Fs,$s,Ds,qs,Us,Hs,Vs,zs,Gs,Ws,Zs,Ks,Ys,Qs,Js,Xs,eo,to,ro,no,ao,so,oo,io,co,lo,uo;for(T=0;T<48;T+=2)F=c[0]^c[10]^c[20]^c[30]^c[40],D=c[1]^c[11]^c[21]^c[31]^c[41],q=c[2]^c[12]^c[22]^c[32]^c[42],X=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],ge=c[6]^c[16]^c[26]^c[36]^c[46],Re=c[7]^c[17]^c[27]^c[37]^c[47],C=(je=c[8]^c[18]^c[28]^c[38]^c[48])^(q<<1|X>>>31),O=(De=c[9]^c[19]^c[29]^c[39]^c[49])^(X<<1|q>>>31),c[0]^=C,c[1]^=O,c[10]^=C,c[11]^=O,c[20]^=C,c[21]^=O,c[30]^=C,c[31]^=O,c[40]^=C,c[41]^=O,C=F^(re<<1|te>>>31),O=D^(te<<1|re>>>31),c[2]^=C,c[3]^=O,c[12]^=C,c[13]^=O,c[22]^=C,c[23]^=O,c[32]^=C,c[33]^=O,c[42]^=C,c[43]^=O,C=q^(ge<<1|Re>>>31),O=X^(Re<<1|ge>>>31),c[4]^=C,c[5]^=O,c[14]^=C,c[15]^=O,c[24]^=C,c[25]^=O,c[34]^=C,c[35]^=O,c[44]^=C,c[45]^=O,C=re^(je<<1|De>>>31),O=te^(De<<1|je>>>31),c[6]^=C,c[7]^=O,c[16]^=C,c[17]^=O,c[26]^=C,c[27]^=O,c[36]^=C,c[37]^=O,c[46]^=C,c[47]^=O,C=ge^(F<<1|D>>>31),O=Re^(D<<1|F>>>31),c[8]^=C,c[9]^=O,c[18]^=C,c[19]^=O,c[28]^=C,c[29]^=O,c[38]^=C,c[39]^=O,c[48]^=C,c[49]^=O,tt=c[0],st=c[1],Ws=c[11]<<4|c[10]>>>28,Zs=c[10]<<4|c[11]>>>28,Is=c[20]<<3|c[21]>>>29,Rs=c[21]<<3|c[20]>>>29,io=c[31]<<9|c[30]>>>23,co=c[30]<<9|c[31]>>>23,Hs=c[40]<<18|c[41]>>>14,Vs=c[41]<<18|c[40]>>>14,Ls=c[2]<<1|c[3]>>>31,Ms=c[3]<<1|c[2]>>>31,$e=c[13]<<12|c[12]>>>20,ze=c[12]<<12|c[13]>>>20,Ks=c[22]<<10|c[23]>>>22,Ys=c[23]<<10|c[22]>>>22,Ns=c[33]<<13|c[32]>>>19,Ps=c[32]<<13|c[33]>>>19,lo=c[42]<<2|c[43]>>>30,uo=c[43]<<2|c[42]>>>30,to=c[5]<<30|c[4]>>>2,ro=c[4]<<30|c[5]>>>2,Bs=c[14]<<6|c[15]>>>26,Fs=c[15]<<6|c[14]>>>26,pt=c[25]<<11|c[24]>>>21,qr=c[24]<<11|c[25]>>>21,Qs=c[34]<<15|c[35]>>>17,Js=c[35]<<15|c[34]>>>17,Os=c[45]<<29|c[44]>>>3,js=c[44]<<29|c[45]>>>3,Rt=c[6]<<28|c[7]>>>4,yt=c[7]<<28|c[6]>>>4,no=c[17]<<23|c[16]>>>9,ao=c[16]<<23|c[17]>>>9,$s=c[26]<<25|c[27]>>>7,Ds=c[27]<<25|c[26]>>>7,tn=c[36]<<21|c[37]>>>11,rn=c[37]<<21|c[36]>>>11,Xs=c[47]<<24|c[46]>>>8,eo=c[46]<<24|c[47]>>>8,zs=c[8]<<27|c[9]>>>5,Gs=c[9]<<27|c[8]>>>5,Je=c[18]<<20|c[19]>>>12,ks=c[19]<<20|c[18]>>>12,so=c[29]<<7|c[28]>>>25,oo=c[28]<<7|c[29]>>>25,qs=c[38]<<8|c[39]>>>24,Us=c[39]<<8|c[38]>>>24,Dt=c[48]<<14|c[49]>>>18,xr=c[49]<<14|c[48]>>>18,c[0]=tt^~$e&pt,c[1]=st^~ze&qr,c[10]=Rt^~Je&Is,c[11]=yt^~ks&Rs,c[20]=Ls^~Bs&$s,c[21]=Ms^~Fs&Ds,c[30]=zs^~Ws&Ks,c[31]=Gs^~Zs&Ys,c[40]=to^~no&so,c[41]=ro^~ao&oo,c[2]=$e^~pt&tn,c[3]=ze^~qr&rn,c[12]=Je^~Is&Ns,c[13]=ks^~Rs&Ps,c[22]=Bs^~$s&qs,c[23]=Fs^~Ds&Us,c[32]=Ws^~Ks&Qs,c[33]=Zs^~Ys&Js,c[42]=no^~so&io,c[43]=ao^~oo&co,c[4]=pt^~tn&Dt,c[5]=qr^~rn&xr,c[14]=Is^~Ns&Os,c[15]=Rs^~Ps&js,c[24]=$s^~qs&Hs,c[25]=Ds^~Us&Vs,c[34]=Ks^~Qs&Xs,c[35]=Ys^~Js&eo,c[44]=so^~io&lo,c[45]=oo^~co&uo,c[6]=tn^~Dt&tt,c[7]=rn^~xr&st,c[16]=Ns^~Os&Rt,c[17]=Ps^~js&yt,c[26]=qs^~Hs&Ls,c[27]=Us^~Vs&Ms,c[36]=Qs^~Xs&zs,c[37]=Js^~eo&Gs,c[46]=io^~lo&to,c[47]=co^~uo&ro,c[8]=Dt^~tt&$e,c[9]=xr^~st&ze,c[18]=Os^~Rt&Je,c[19]=js^~yt&ks,c[28]=Hs^~Ls&Bs,c[29]=Vs^~Ms&Fs,c[38]=Xs^~zs&Ws,c[39]=eo^~Gs&Zs,c[48]=lo^~to&no,c[49]=uo^~ro&ao,c[0]^=$t[T],c[1]^=$t[T+1]};if(z)i.exports=It;else for(Mt=0;Mt<$r.length;++Mt)I[$r[Mt]]=It[$r[Mt]]})()})(u);var f=u.exports,h=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,p=Math.ceil,m=Math.floor,g="[BigNumber Error] ",_=g+"Number primitive has more than 15 significant digits: ",x=1e14,y=14,k=9007199254740991,G=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],v=1e7,A=1e9;function w(i){var l=0|i;return i>0||i===l?l:l-1}function K(i){for(var l,b,I=1,B=i.length,z=i[0]+"";I<B;){for(l=i[I++]+"",b=y-l.length;b--;l="0"+l);z+=l}for(B=z.length;z.charCodeAt(--B)===48;);return z.slice(0,B+1||1)}function H(i,l){var b,I,B=i.c,z=l.c,oe=i.s,pe=l.s,Ie=i.e,Pe=l.e;if(!oe||!pe)return null;if(b=B&&!B[0],I=z&&!z[0],b||I)return b?I?0:-pe:oe;if(oe!=pe)return oe;if(b=oe<0,I=Ie==Pe,!B||!z)return I?0:!B^b?1:-1;if(!I)return Ie>Pe^b?1:-1;for(pe=(Ie=B.length)<(Pe=z.length)?Ie:Pe,oe=0;oe<pe;oe++)if(B[oe]!=z[oe])return B[oe]>z[oe]^b?1:-1;return Ie==Pe?0:Ie>Pe^b?1:-1}function S(i,l,b,I){if(i<l||i>b||i!==m(i))throw Error(g+(I||"Argument")+(typeof i=="number"?i<l||i>b?" out of range: ":" not an integer: ":" not a primitive number: ")+String(i))}function U(i){var l=i.c.length-1;return w(i.e/y)==l&&i.c[l]%2!=0}function Q(i,l){return(i.length>1?i.charAt(0)+"."+i.slice(1):i)+(l<0?"e":"e+")+l}function ee(i,l,b){var I,B;if(l<0){for(B=b+".";++l;B+=b);i=B+i}else if(++l>(I=i.length)){for(B=b,l-=I;--l;B+=b);i+=B}else l<I&&(i=i.slice(0,l)+"."+i.slice(l));return i}var ae=(function i(l){var b,I,B,z,oe,pe,Ie,Pe,$t,lt,ye=ue.prototype={constructor:ue,toString:null,valueOf:null},kt=new ue(1),Xe=20,et=4,jt=-7,Fr=21,_r=-1e7,Lt=1e7,Cr=!1,en=1,It=0,$r={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Mt="0123456789abcdefghijklmnopqrstuvwxyz",Er=!0;function ue(E,c){var C,O,T,F,D,q,X,re,te=this;if(!(te instanceof ue))return new ue(E,c);if(c==null){if(E&&E._isBigNumber===!0)return te.s=E.s,void(!E.c||E.e>Lt?te.c=te.e=null:E.e<_r?te.c=[te.e=0]:(te.e=E.e,te.c=E.c.slice()));if((q=typeof E=="number")&&0*E==0){if(te.s=1/E<0?(E=-E,-1):1,E===~~E){for(F=0,D=E;D>=10;D/=10,F++);return void(F>Lt?te.c=te.e=null:(te.e=F,te.c=[E]))}re=String(E)}else{if(!h.test(re=String(E)))return B(te,re,q);te.s=re.charCodeAt(0)==45?(re=re.slice(1),-1):1}(F=re.indexOf("."))>-1&&(re=re.replace(".","")),(D=re.search(/e/i))>0?(F<0&&(F=D),F+=+re.slice(D+1),re=re.substring(0,D)):F<0&&(F=re.length)}else{if(S(c,2,Mt.length,"Base"),c==10&&Er)return Ve(te=new ue(E),Xe+te.e+1,et);if(re=String(E),q=typeof E=="number"){if(0*E!=0)return B(te,re,q,c);if(te.s=1/E<0?(re=re.slice(1),-1):1,ue.DEBUG&&re.replace(/^0\.0*|\./,"").length>15)throw Error(_+E)}else te.s=re.charCodeAt(0)===45?(re=re.slice(1),-1):1;for(C=Mt.slice(0,c),F=D=0,X=re.length;D<X;D++)if(C.indexOf(O=re.charAt(D))<0){if(O=="."){if(D>F){F=X;continue}}else if(!T&&(re==re.toUpperCase()&&(re=re.toLowerCase())||re==re.toLowerCase()&&(re=re.toUpperCase()))){T=!0,D=-1,F=0;continue}return B(te,String(E),q,c)}q=!1,(F=(re=I(re,c,10,te.s)).indexOf("."))>-1?re=re.replace(".",""):F=re.length}for(D=0;re.charCodeAt(D)===48;D++);for(X=re.length;re.charCodeAt(--X)===48;);if(re=re.slice(D,++X)){if(X-=D,q&&ue.DEBUG&&X>15&&(E>k||E!==m(E)))throw Error(_+te.s*E);if((F=F-D-1)>Lt)te.c=te.e=null;else if(F<_r)te.c=[te.e=0];else{if(te.e=F,te.c=[],D=(F+1)%y,F<0&&(D+=y),D<X){for(D&&te.c.push(+re.slice(0,D)),X-=y;D<X;)te.c.push(+re.slice(D,D+=y));D=y-(re=re.slice(D)).length}else D-=X;for(;D--;re+="0");te.c.push(+re)}}else te.c=[te.e=0]}function Dr(E,c,C,O){var T,F,D,q,X;if(C==null?C=et:S(C,0,8),!E.c)return E.toString();if(T=E.c[0],D=E.e,c==null)X=K(E.c),X=O==1||O==2&&(D<=jt||D>=Fr)?Q(X,D):ee(X,D,"0");else if(F=(E=Ve(new ue(E),c,C)).e,q=(X=K(E.c)).length,O==1||O==2&&(c<=F||F<=jt)){for(;q<c;X+="0",q++);X=Q(X,F)}else if(c-=D,X=ee(X,F,"0"),F+1>q){if(--c>0)for(X+=".";c--;X+="0");}else if((c+=F-q)>0)for(F+1==q&&(X+=".");c--;X+="0");return E.s<0&&T?"-"+X:X}function Yn(E,c){for(var C,O=1,T=new ue(E[0]);O<E.length;O++){if(!(C=new ue(E[O])).s){T=C;break}c.call(T,C)&&(T=C)}return T}function Qn(E,c,C){for(var O=1,T=c.length;!c[--T];c.pop());for(T=c[0];T>=10;T/=10,O++);return(C=O+C*y-1)>Lt?E.c=E.e=null:C<_r?E.c=[E.e=0]:(E.e=C,E.c=c),E}function Ve(E,c,C,O){var T,F,D,q,X,re,te,ge=E.c,Re=G;if(ge){e:{for(T=1,q=ge[0];q>=10;q/=10,T++);if((F=c-T)<0)F+=y,D=c,te=(X=ge[re=0])/Re[T-D-1]%10|0;else if((re=p((F+1)/y))>=ge.length){if(!O)break e;for(;ge.length<=re;ge.push(0));X=te=0,T=1,D=(F%=y)-y+1}else{for(X=q=ge[re],T=1;q>=10;q/=10,T++);te=(D=(F%=y)-y+T)<0?0:X/Re[T-D-1]%10|0}if(O=O||c<0||ge[re+1]!=null||(D<0?X:X%Re[T-D-1]),O=C<4?(te||O)&&(C==0||C==(E.s<0?3:2)):te>5||te==5&&(C==4||O||C==6&&(F>0?D>0?X/Re[T-D]:0:ge[re-1])%10&1||C==(E.s<0?8:7)),c<1||!ge[0])return ge.length=0,O?(c-=E.e+1,ge[0]=Re[(y-c%y)%y],E.e=-c||0):ge[0]=E.e=0,E;if(F==0?(ge.length=re,q=1,re--):(ge.length=re+1,q=Re[y-F],ge[re]=D>0?m(X/Re[T-D]%Re[D])*q:0),O)for(;;){if(re==0){for(F=1,D=ge[0];D>=10;D/=10,F++);for(D=ge[0]+=q,q=1;D>=10;D/=10,q++);F!=q&&(E.e++,ge[0]==x&&(ge[0]=1));break}if(ge[re]+=q,ge[re]!=x)break;ge[re--]=0,q=1}for(F=ge.length;ge[--F]===0;ge.pop());}E.e>Lt?E.c=E.e=null:E.e<_r&&(E.c=[E.e=0])}return E}function rr(E){var c,C=E.e;return C===null?E.toString():(c=K(E.c),c=C<=jt||C>=Fr?Q(c,C):ee(c,C,"0"),E.s<0?"-"+c:c)}return ue.clone=i,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(E){var c,C;if(E!=null){if(typeof E!="object")throw Error(g+"Object expected: "+E);if(E.hasOwnProperty(c="DECIMAL_PLACES")&&(S(C=E[c],0,A,c),Xe=C),E.hasOwnProperty(c="ROUNDING_MODE")&&(S(C=E[c],0,8,c),et=C),E.hasOwnProperty(c="EXPONENTIAL_AT")&&((C=E[c])&&C.pop?(S(C[0],-A,0,c),S(C[1],0,A,c),jt=C[0],Fr=C[1]):(S(C,-A,A,c),jt=-(Fr=C<0?-C:C))),E.hasOwnProperty(c="RANGE"))if((C=E[c])&&C.pop)S(C[0],-A,-1,c),S(C[1],1,A,c),_r=C[0],Lt=C[1];else{if(S(C,-A,A,c),!C)throw Error(g+c+" cannot be zero: "+C);_r=-(Lt=C<0?-C:C)}if(E.hasOwnProperty(c="CRYPTO")){if((C=E[c])!==!!C)throw Error(g+c+" not true or false: "+C);if(C){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Cr=!C,Error(g+"crypto unavailable");Cr=C}else Cr=C}if(E.hasOwnProperty(c="MODULO_MODE")&&(S(C=E[c],0,9,c),en=C),E.hasOwnProperty(c="POW_PRECISION")&&(S(C=E[c],0,A,c),It=C),E.hasOwnProperty(c="FORMAT")){if(typeof(C=E[c])!="object")throw Error(g+c+" not an object: "+C);$r=C}if(E.hasOwnProperty(c="ALPHABET")){if(typeof(C=E[c])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(C))throw Error(g+c+" invalid: "+C);Er=C.slice(0,10)=="0123456789",Mt=C}}return{DECIMAL_PLACES:Xe,ROUNDING_MODE:et,EXPONENTIAL_AT:[jt,Fr],RANGE:[_r,Lt],CRYPTO:Cr,MODULO_MODE:en,POW_PRECISION:It,FORMAT:$r,ALPHABET:Mt}},ue.isBigNumber=function(E){if(!E||E._isBigNumber!==!0)return!1;if(!ue.DEBUG)return!0;var c,C,O=E.c,T=E.e,F=E.s;e:if({}.toString.call(O)=="[object Array]"){if((F===1||F===-1)&&T>=-A&&T<=A&&T===m(T)){if(O[0]===0){if(T===0&&O.length===1)return!0;break e}if((c=(T+1)%y)<1&&(c+=y),String(O[0]).length==c){for(c=0;c<O.length;c++)if((C=O[c])<0||C>=x||C!==m(C))break e;if(C!==0)return!0}}}else if(O===null&&T===null&&(F===null||F===1||F===-1))return!0;throw Error(g+"Invalid BigNumber: "+E)},ue.maximum=ue.max=function(){return Yn(arguments,ye.lt)},ue.minimum=ue.min=function(){return Yn(arguments,ye.gt)},ue.random=(z=9007199254740992,oe=Math.random()*z&2097151?function(){return m(Math.random()*z)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(E){var c,C,O,T,F,D=0,q=[],X=new ue(kt);if(E==null?E=Xe:S(E,0,A),T=p(E/y),Cr)if(crypto.getRandomValues){for(c=crypto.getRandomValues(new Uint32Array(T*=2));D<T;)(F=131072*c[D]+(c[D+1]>>>11))>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),c[D]=C[0],c[D+1]=C[1]):(q.push(F%1e14),D+=2);D=T/2}else{if(!crypto.randomBytes)throw Cr=!1,Error(g+"crypto unavailable");for(c=crypto.randomBytes(T*=7);D<T;)(F=281474976710656*(31&c[D])+1099511627776*c[D+1]+4294967296*c[D+2]+16777216*c[D+3]+(c[D+4]<<16)+(c[D+5]<<8)+c[D+6])>=9e15?crypto.randomBytes(7).copy(c,D):(q.push(F%1e14),D+=7);D=T/7}if(!Cr)for(;D<T;)(F=oe())<9e15&&(q[D++]=F%1e14);for(T=q[--D],E%=y,T&&E&&(F=G[y-E],q[D]=m(T/F)*F);q[D]===0;q.pop(),D--);if(D<0)q=[O=0];else{for(O=-1;q[0]===0;q.splice(0,1),O-=y);for(D=1,F=q[0];F>=10;F/=10,D++);D<y&&(O-=y-D)}return X.e=O,X.c=q,X}),ue.sum=function(){for(var E=1,c=arguments,C=new ue(c[0]);E<c.length;)C=C.plus(c[E++]);return C},I=(function(){var E="0123456789";function c(C,O,T,F){for(var D,q,X=[0],re=0,te=C.length;re<te;){for(q=X.length;q--;X[q]*=O);for(X[0]+=F.indexOf(C.charAt(re++)),D=0;D<X.length;D++)X[D]>T-1&&(X[D+1]==null&&(X[D+1]=0),X[D+1]+=X[D]/T|0,X[D]%=T)}return X.reverse()}return function(C,O,T,F,D){var q,X,re,te,ge,Re,je,De,tt=C.indexOf("."),st=Xe,$e=et;for(tt>=0&&(te=It,It=0,C=C.replace(".",""),Re=(De=new ue(O)).pow(C.length-tt),It=te,De.c=c(ee(K(Re.c),Re.e,"0"),10,T,E),De.e=De.c.length),re=te=(je=c(C,O,T,D?(q=Mt,E):(q=E,Mt))).length;je[--te]==0;je.pop());if(!je[0])return q.charAt(0);if(tt<0?--re:(Re.c=je,Re.e=re,Re.s=F,je=(Re=b(Re,De,st,$e,T)).c,ge=Re.r,re=Re.e),tt=je[X=re+st+1],te=T/2,ge=ge||X<0||je[X+1]!=null,ge=$e<4?(tt!=null||ge)&&($e==0||$e==(Re.s<0?3:2)):tt>te||tt==te&&($e==4||ge||$e==6&&1&je[X-1]||$e==(Re.s<0?8:7)),X<1||!je[0])C=ge?ee(q.charAt(1),-st,q.charAt(0)):q.charAt(0);else{if(je.length=X,ge)for(--T;++je[--X]>T;)je[X]=0,X||(++re,je=[1].concat(je));for(te=je.length;!je[--te];);for(tt=0,C="";tt<=te;C+=q.charAt(je[tt++]));C=ee(C,re,q.charAt(0))}return C}})(),b=(function(){function E(O,T,F){var D,q,X,re,te=0,ge=O.length,Re=T%v,je=T/v|0;for(O=O.slice();ge--;)te=((q=Re*(X=O[ge]%v)+(D=je*X+(re=O[ge]/v|0)*Re)%v*v+te)/F|0)+(D/v|0)+je*re,O[ge]=q%F;return te&&(O=[te].concat(O)),O}function c(O,T,F,D){var q,X;if(F!=D)X=F>D?1:-1;else for(q=X=0;q<F;q++)if(O[q]!=T[q]){X=O[q]>T[q]?1:-1;break}return X}function C(O,T,F,D){for(var q=0;F--;)O[F]-=q,q=O[F]<T[F]?1:0,O[F]=q*D+O[F]-T[F];for(;!O[0]&&O.length>1;O.splice(0,1));}return function(O,T,F,D,q){var X,re,te,ge,Re,je,De,tt,st,$e,ze,pt,qr,tn,rn,Dt,xr,Rt=O.s==T.s?1:-1,yt=O.c,Je=T.c;if(!(yt&&yt[0]&&Je&&Je[0]))return new ue(O.s&&T.s&&(yt?!Je||yt[0]!=Je[0]:Je)?yt&&yt[0]==0||!Je?0*Rt:Rt/0:NaN);for(st=(tt=new ue(Rt)).c=[],Rt=F+(re=O.e-T.e)+1,q||(q=x,re=w(O.e/y)-w(T.e/y),Rt=Rt/y|0),te=0;Je[te]==(yt[te]||0);te++);if(Je[te]>(yt[te]||0)&&re--,Rt<0)st.push(1),ge=!0;else{for(tn=yt.length,Dt=Je.length,te=0,Rt+=2,(Re=m(q/(Je[0]+1)))>1&&(Je=E(Je,Re,q),yt=E(yt,Re,q),Dt=Je.length,tn=yt.length),qr=Dt,ze=($e=yt.slice(0,Dt)).length;ze<Dt;$e[ze++]=0);xr=Je.slice(),xr=[0].concat(xr),rn=Je[0],Je[1]>=q/2&&rn++;do{if(Re=0,(X=c(Je,$e,Dt,ze))<0){if(pt=$e[0],Dt!=ze&&(pt=pt*q+($e[1]||0)),(Re=m(pt/rn))>1)for(Re>=q&&(Re=q-1),De=(je=E(Je,Re,q)).length,ze=$e.length;c(je,$e,De,ze)==1;)Re--,C(je,Dt<De?xr:Je,De,q),De=je.length,X=1;else Re==0&&(X=Re=1),De=(je=Je.slice()).length;if(De<ze&&(je=[0].concat(je)),C($e,je,ze,q),ze=$e.length,X==-1)for(;c(Je,$e,Dt,ze)<1;)Re++,C($e,Dt<ze?xr:Je,ze,q),ze=$e.length}else X===0&&(Re++,$e=[0]);st[te++]=Re,$e[0]?$e[ze++]=yt[qr]||0:($e=[yt[qr]],ze=1)}while((qr++<tn||$e[0]!=null)&&Rt--);ge=$e[0]!=null,st[0]||st.splice(0,1)}if(q==x){for(te=1,Rt=st[0];Rt>=10;Rt/=10,te++);Ve(tt,F+(tt.e=te+re*y-1)+1,D,ge)}else tt.e=re,tt.r=+ge;return tt}})(),pe=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Ie=/^([^.]+)\.$/,Pe=/^\.([^.]+)$/,$t=/^-?(Infinity|NaN)$/,lt=/^\s*\+(?=[\w.])|^\s+|\s+$/g,B=function(E,c,C,O){var T,F=C?c:c.replace(lt,"");if($t.test(F))E.s=isNaN(F)?null:F<0?-1:1;else{if(!C&&(F=F.replace(pe,(function(D,q,X){return T=(X=X.toLowerCase())=="x"?16:X=="b"?2:8,O&&O!=T?D:q})),O&&(T=O,F=F.replace(Ie,"$1").replace(Pe,"0.$1")),c!=F))return new ue(F,T);if(ue.DEBUG)throw Error(g+"Not a"+(O?" base "+O:"")+" number: "+c);E.s=null}E.c=E.e=null},ye.absoluteValue=ye.abs=function(){var E=new ue(this);return E.s<0&&(E.s=1),E},ye.comparedTo=function(E,c){return H(this,new ue(E,c))},ye.decimalPlaces=ye.dp=function(E,c){var C,O,T,F=this;if(E!=null)return S(E,0,A),c==null?c=et:S(c,0,8),Ve(new ue(F),E+F.e+1,c);if(!(C=F.c))return null;if(O=((T=C.length-1)-w(this.e/y))*y,T=C[T])for(;T%10==0;T/=10,O--);return O<0&&(O=0),O},ye.dividedBy=ye.div=function(E,c){return b(this,new ue(E,c),Xe,et)},ye.dividedToIntegerBy=ye.idiv=function(E,c){return b(this,new ue(E,c),0,1)},ye.exponentiatedBy=ye.pow=function(E,c){var C,O,T,F,D,q,X,re,te=this;if((E=new ue(E)).c&&!E.isInteger())throw Error(g+"Exponent not an integer: "+rr(E));if(c!=null&&(c=new ue(c)),D=E.e>14,!te.c||!te.c[0]||te.c[0]==1&&!te.e&&te.c.length==1||!E.c||!E.c[0])return re=new ue(Math.pow(+rr(te),D?E.s*(2-U(E)):+rr(E))),c?re.mod(c):re;if(q=E.s<0,c){if(c.c?!c.c[0]:!c.s)return new ue(NaN);(O=!q&&te.isInteger()&&c.isInteger())&&(te=te.mod(c))}else{if(E.e>9&&(te.e>0||te.e<-1||(te.e==0?te.c[0]>1||D&&te.c[1]>=24e7:te.c[0]<8e13||D&&te.c[0]<=9999975e7)))return F=te.s<0&&U(E)?-0:0,te.e>-1&&(F=1/F),new ue(q?1/F:F);It&&(F=p(It/y+2))}for(D?(C=new ue(.5),q&&(E.s=1),X=U(E)):X=(T=Math.abs(+rr(E)))%2,re=new ue(kt);;){if(X){if(!(re=re.times(te)).c)break;F?re.c.length>F&&(re.c.length=F):O&&(re=re.mod(c))}if(T){if((T=m(T/2))===0)break;X=T%2}else if(Ve(E=E.times(C),E.e+1,1),E.e>14)X=U(E);else{if((T=+rr(E))==0)break;X=T%2}te=te.times(te),F?te.c&&te.c.length>F&&(te.c.length=F):O&&(te=te.mod(c))}return O?re:(q&&(re=kt.div(re)),c?re.mod(c):F?Ve(re,It,et,void 0):re)},ye.integerValue=function(E){var c=new ue(this);return E==null?E=et:S(E,0,8),Ve(c,c.e+1,E)},ye.isEqualTo=ye.eq=function(E,c){return H(this,new ue(E,c))===0},ye.isFinite=function(){return!!this.c},ye.isGreaterThan=ye.gt=function(E,c){return H(this,new ue(E,c))>0},ye.isGreaterThanOrEqualTo=ye.gte=function(E,c){return(c=H(this,new ue(E,c)))===1||c===0},ye.isInteger=function(){return!!this.c&&w(this.e/y)>this.c.length-2},ye.isLessThan=ye.lt=function(E,c){return H(this,new ue(E,c))<0},ye.isLessThanOrEqualTo=ye.lte=function(E,c){return(c=H(this,new ue(E,c)))===-1||c===0},ye.isNaN=function(){return!this.s},ye.isNegative=function(){return this.s<0},ye.isPositive=function(){return this.s>0},ye.isZero=function(){return!!this.c&&this.c[0]==0},ye.minus=function(E,c){var C,O,T,F,D=this,q=D.s;if(c=(E=new ue(E,c)).s,!q||!c)return new ue(NaN);if(q!=c)return E.s=-c,D.plus(E);var X=D.e/y,re=E.e/y,te=D.c,ge=E.c;if(!X||!re){if(!te||!ge)return te?(E.s=-c,E):new ue(ge?D:NaN);if(!te[0]||!ge[0])return ge[0]?(E.s=-c,E):new ue(te[0]?D:et==3?-0:0)}if(X=w(X),re=w(re),te=te.slice(),q=X-re){for((F=q<0)?(q=-q,T=te):(re=X,T=ge),T.reverse(),c=q;c--;T.push(0));T.reverse()}else for(O=(F=(q=te.length)<(c=ge.length))?q:c,q=c=0;c<O;c++)if(te[c]!=ge[c]){F=te[c]<ge[c];break}if(F&&(T=te,te=ge,ge=T,E.s=-E.s),(c=(O=ge.length)-(C=te.length))>0)for(;c--;te[C++]=0);for(c=x-1;O>q;){if(te[--O]<ge[O]){for(C=O;C&&!te[--C];te[C]=c);--te[C],te[O]+=x}te[O]-=ge[O]}for(;te[0]==0;te.splice(0,1),--re);return te[0]?Qn(E,te,re):(E.s=et==3?-1:1,E.c=[E.e=0],E)},ye.modulo=ye.mod=function(E,c){var C,O,T=this;return E=new ue(E,c),!T.c||!E.s||E.c&&!E.c[0]?new ue(NaN):!E.c||T.c&&!T.c[0]?new ue(T):(en==9?(O=E.s,E.s=1,C=b(T,E,0,3),E.s=O,C.s*=O):C=b(T,E,0,en),(E=T.minus(C.times(E))).c[0]||en!=1||(E.s=T.s),E)},ye.multipliedBy=ye.times=function(E,c){var C,O,T,F,D,q,X,re,te,ge,Re,je,De,tt,st,$e=this,ze=$e.c,pt=(E=new ue(E,c)).c;if(!(ze&&pt&&ze[0]&&pt[0]))return!$e.s||!E.s||ze&&!ze[0]&&!pt||pt&&!pt[0]&&!ze?E.c=E.e=E.s=null:(E.s*=$e.s,ze&&pt?(E.c=[0],E.e=0):E.c=E.e=null),E;for(O=w($e.e/y)+w(E.e/y),E.s*=$e.s,(X=ze.length)<(ge=pt.length)&&(De=ze,ze=pt,pt=De,T=X,X=ge,ge=T),T=X+ge,De=[];T--;De.push(0));for(tt=x,st=v,T=ge;--T>=0;){for(C=0,Re=pt[T]%st,je=pt[T]/st|0,F=T+(D=X);F>T;)C=((re=Re*(re=ze[--D]%st)+(q=je*re+(te=ze[D]/st|0)*Re)%st*st+De[F]+C)/tt|0)+(q/st|0)+je*te,De[F--]=re%tt;De[F]=C}return C?++O:De.splice(0,1),Qn(E,De,O)},ye.negated=function(){var E=new ue(this);return E.s=-E.s||null,E},ye.plus=function(E,c){var C,O=this,T=O.s;if(c=(E=new ue(E,c)).s,!T||!c)return new ue(NaN);if(T!=c)return E.s=-c,O.minus(E);var F=O.e/y,D=E.e/y,q=O.c,X=E.c;if(!F||!D){if(!q||!X)return new ue(T/0);if(!q[0]||!X[0])return X[0]?E:new ue(q[0]?O:0*T)}if(F=w(F),D=w(D),q=q.slice(),T=F-D){for(T>0?(D=F,C=X):(T=-T,C=q),C.reverse();T--;C.push(0));C.reverse()}for((T=q.length)-(c=X.length)<0&&(C=X,X=q,q=C,c=T),T=0;c;)T=(q[--c]=q[c]+X[c]+T)/x|0,q[c]=x===q[c]?0:q[c]%x;return T&&(q=[T].concat(q),++D),Qn(E,q,D)},ye.precision=ye.sd=function(E,c){var C,O,T,F=this;if(E!=null&&E!==!!E)return S(E,1,A),c==null?c=et:S(c,0,8),Ve(new ue(F),E,c);if(!(C=F.c))return null;if(O=(T=C.length-1)*y+1,T=C[T]){for(;T%10==0;T/=10,O--);for(T=C[0];T>=10;T/=10,O++);}return E&&F.e+1>O&&(O=F.e+1),O},ye.shiftedBy=function(E){return S(E,-9007199254740991,k),this.times("1e"+E)},ye.squareRoot=ye.sqrt=function(){var E,c,C,O,T,F=this,D=F.c,q=F.s,X=F.e,re=Xe+4,te=new ue("0.5");if(q!==1||!D||!D[0])return new ue(!q||q<0&&(!D||D[0])?NaN:D?F:1/0);if((q=Math.sqrt(+rr(F)))==0||q==1/0?(((c=K(D)).length+X)%2==0&&(c+="0"),q=Math.sqrt(+c),X=w((X+1)/2)-(X<0||X%2),C=new ue(c=q==1/0?"5e"+X:(c=q.toExponential()).slice(0,c.indexOf("e")+1)+X)):C=new ue(q+""),C.c[0]){for((q=(X=C.e)+re)<3&&(q=0);;)if(T=C,C=te.times(T.plus(b(F,T,re,1))),K(T.c).slice(0,q)===(c=K(C.c)).slice(0,q)){if(C.e<X&&--q,(c=c.slice(q-3,q+1))!="9999"&&(O||c!="4999")){+c&&(+c.slice(1)||c.charAt(0)!="5")||(Ve(C,C.e+Xe+2,1),E=!C.times(C).eq(F));break}if(!O&&(Ve(T,T.e+Xe+2,0),T.times(T).eq(F))){C=T;break}re+=4,q+=4,O=1}}return Ve(C,C.e+Xe+1,et,E)},ye.toExponential=function(E,c){return E!=null&&(S(E,0,A),E++),Dr(this,E,c,1)},ye.toFixed=function(E,c){return E!=null&&(S(E,0,A),E=E+this.e+1),Dr(this,E,c)},ye.toFormat=function(E,c,C){var O,T=this;if(C==null)E!=null&&c&&typeof c=="object"?(C=c,c=null):E&&typeof E=="object"?(C=E,E=c=null):C=$r;else if(typeof C!="object")throw Error(g+"Argument not an object: "+C);if(O=T.toFixed(E,c),T.c){var F,D=O.split("."),q=+C.groupSize,X=+C.secondaryGroupSize,re=C.groupSeparator||"",te=D[0],ge=D[1],Re=T.s<0,je=Re?te.slice(1):te,De=je.length;if(X&&(F=q,q=X,X=F,De-=F),q>0&&De>0){for(F=De%q||q,te=je.substr(0,F);F<De;F+=q)te+=re+je.substr(F,q);X>0&&(te+=re+je.slice(F)),Re&&(te="-"+te)}O=ge?te+(C.decimalSeparator||"")+((X=+C.fractionGroupSize)?ge.replace(new RegExp("\\d{"+X+"}\\B","g"),"$&"+(C.fractionGroupSeparator||"")):ge):te}return(C.prefix||"")+O+(C.suffix||"")},ye.toFraction=function(E){var c,C,O,T,F,D,q,X,re,te,ge,Re,je=this,De=je.c;if(E!=null&&(!(q=new ue(E)).isInteger()&&(q.c||q.s!==1)||q.lt(kt)))throw Error(g+"Argument "+(q.isInteger()?"out of range: ":"not an integer: ")+rr(q));if(!De)return new ue(je);for(c=new ue(kt),re=C=new ue(kt),O=X=new ue(kt),Re=K(De),F=c.e=Re.length-je.e-1,c.c[0]=G[(D=F%y)<0?y+D:D],E=!E||q.comparedTo(c)>0?F>0?c:re:q,D=Lt,Lt=1/0,q=new ue(Re),X.c[0]=0;te=b(q,c,0,1),(T=C.plus(te.times(O))).comparedTo(E)!=1;)C=O,O=T,re=X.plus(te.times(T=re)),X=T,c=q.minus(te.times(T=c)),q=T;return T=b(E.minus(C),O,0,1),X=X.plus(T.times(re)),C=C.plus(T.times(O)),X.s=re.s=je.s,ge=b(re,O,F*=2,et).minus(je).abs().comparedTo(b(X,C,F,et).minus(je).abs())<1?[re,O]:[X,C],Lt=D,ge},ye.toNumber=function(){return+rr(this)},ye.toPrecision=function(E,c){return E!=null&&S(E,1,A),Dr(this,E,c,2)},ye.toString=function(E){var c,C=this,O=C.s,T=C.e;return T===null?O?(c="Infinity",O<0&&(c="-"+c)):c="NaN":(E==null?c=T<=jt||T>=Fr?Q(K(C.c),T):ee(K(C.c),T,"0"):E===10&&Er?c=ee(K((C=Ve(new ue(C),Xe+T+1,et)).c),C.e,"0"):(S(E,2,Mt.length,"Base"),c=I(ee(K(C.c),T,"0"),10,E,O,!0)),O<0&&C.c[0]&&(c="-"+c)),c},ye.valueOf=ye.toJSON=function(){return rr(this)},ye._isBigNumber=!0,ye[Symbol.toStringTag]="BigNumber",ye[Symbol.for("nodejs.util.inspect.custom")]=ye.valueOf,l!=null&&ue.set(l),ue})();const J={ROUNDING_MODE:ae.ROUND_DOWN};function M(i){return new TextEncoder().encode(i)}function N(i){return typeof i=="string"?N(V(i)):new TextDecoder().decode(i)}ae.config(J);const Z="UNKNOWN_ERROR",P="INVALID_ARGUMENT";function $(i,l=Z,b={}){const I=[];Object.keys(b).forEach((oe=>{try{I.push(oe+"="+JSON.stringify(b[oe]))}catch{I.push(oe+"="+JSON.stringify(b[oe].toString()))}}));const B=i;I.length&&(i+=" ("+I.join(", ")+")");const z=new Error(i);return z.reason=B,z.code=l,Object.keys(b).forEach((function(oe){z[oe]=b[oe]})),z}function V(i){if(typeof i!="string")throw new Error("hexToBytes only accept strings, got: "+typeof i);if(i.substr(0,2)==="0x")return V(i.substr(2));const l=new Uint8Array(Math.ceil(i.length/2));let b=0;for(let I=0;I<i.length;I+=2){const B=parseInt(i.substr(I,2),16);if(isNaN(B))throw new Error("Cannot read hex string:"+JSON.stringify(i));l[b]=B,b++}return l}function R(i){return Array.from(i).map((l=>l.toString(16).padStart(2,"0"))).join("")}function j(i,l){if(typeof i=="string"){if(l&&l.encoding==="hex"&&typeof i=="string"){let b=i;b.length>2&&b.substr(0,2)==="0x"&&(b=b.substr(2));const I=V(b);return f.keccak256(I)}return f.keccak256(M(i))}return f.keccak256(i)}const W={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 Y(i,l,b){return new Array(l-i.length+1).join(b||"0")+i}function ce(i){let l="",b=0;const I=i.length;for(i.substring(0,2)==="0x"&&(b=2);b<I;b+=2){const B=parseInt(i.substr(b,2),16);l+=String.fromCharCode(B)}return l}function ie(i){return Wt(i)&&i.name&&i.name.indexOf("(")!==-1?i.name:i.name+"("+de(!1,i.inputs||[]).join(",")+")"}function le(...i){const l=i.reduce(((B,z)=>B+z.length),0),b=new Uint8Array(l);let I=0;for(const B of i)b.set(B,I),I+=B.length;return b}function de(i,l){const b=[];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 B="";const z=I.type.indexOf("[");z>=0&&(B=I.type.substring(z));const oe=de(i,I.components);b.push("("+oe.join(",")+")"+B)}else b.push(I.type)})),b}function Ne(i){const l=i.indexOf("("),b=i.indexOf(")");return l!==-1&&b!==-1?i.substr(0,l):i}function we(i){const l=i.indexOf("("),b=i.indexOf(")");return l!==-1&&b!==-1?i.substr(l+1,b-l-1).replace(" ",""):""}function xe(i){return i==null?i:Fe(i).toNumber()}function ve(i){return Fe(i).toNumber()}function Ge(i){return Gt(i)?i.toString(10):""+i}function Ue(i){return typeof i=="string"&&!i.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i)?"0x"+i:ke(i)}function he(i){if(typeof i=="string")return i.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i)?ke(i):"0x"+R(M(i));if(i instanceof Uint8Array)return"0x"+R(i);throw new Error(`toStringData: Error trying to convert ${i} (${typeof i}) to a hex string.`)}function fe(i){return typeof i=="boolean"?i:Fe(i).toNumber()!==0}function be(i){const l=Fe(i),b=l.toString(16);return l.isLessThan(0)?"-0x"+b.substr(1):"0x"+b}function ke(i){if(Ra(i))return be(+i);if(Gt(i))return be(i);if(Ot(i)){const l=i;if(l.indexOf("-0x")===0)return be(l);if(l.indexOf("0x")===0)return l;if(!isFinite(l))return R(M(l))}if(i instanceof Uint8Array)return"0x"+R(i);if(lr(i)||Wt(i))throw new Error("toHex can only be called with scalar values, not objects or arrays");return be(i)}function Be(i){const l=i?i.toLowerCase():"ether",b=W[l];if(b===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(W,null,2));return new ae(b,10)}function Fe(i){let l=i||0;return Gt(l)?l:(typeof l=="string"&&(l=l.trim()),typeof l!="string"||l.indexOf("0x")!==0&&l.indexOf("-0x")!==0?l instanceof Uint8Array?new ae(R(l),16):new ae(l,10):new ae(l.replace("0x","").toLowerCase(),16))}function mt(i){return new ae(new Array(i).fill("1").join(""),2)}function at(i,l=256){const b=Fe(i).integerValue();return b.isLessThan(0)?mt(l).plus(b).plus(1):b}function Vt(i,l){return Y(i.toString(2),l,"0")[0]==="1"}function zt(i){if(typeof i!="string")throw $("invalid address",P,{arg:"address",value:i});if(i.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return i.trim().substring(0,2)!=="0x"&&(i="0x"+i),br(i);throw $("invalid address",P,{arg:"address",value:i})}function cr(i,l=256){if(Vt(i,l)){const b=mt(l);return i.minus(b).minus(1)}return i}function Mr(i){return/^0x[0-9a-f]{40}$/i.test(i)}function tr(i){return!!/^(0x)?[0-9a-f]{40}$/i.test(i)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(i)&&!/^(0x)?[0-9A-F]{40}$/.test(i))||Wn(i))}function Wn(i){const l=i.replace("0x",""),b=j(l.toLowerCase());for(let I=0;I<40;I++)if(parseInt(b[I],16)>7&&l[I].toUpperCase()!==l[I]||parseInt(b[I],16)<=7&&l[I].toLowerCase()!==l[I])return!1;return!0}function br(i){if(i===void 0)return"";const l=i.toLowerCase().replace("0x",""),b=j(l);let I="0x";for(let B=0;B<l.length;B++)parseInt(b[B],16)>7?I+=l[B].toUpperCase():I+=l[B];return I}function wt(i){if(!Array.isArray(i))throw new Error(`Value was not an array: ${JSON.stringify(i)}`);return i}function Xr(i){return Mr(i)?i:/^[0-9a-f]{40}$/.test(i)?"0x"+i:"0x"+Y(ke(i).substr(2),40)}function Gt(i){return i instanceof ae}function Ot(i){return typeof i=="string"||i&&i.constructor&&i.constructor.name==="String"}function Wt(i){return i!==null&&!Array.isArray(i)&&typeof i=="object"}function Ra(i){return typeof i=="boolean"}function lr(i){return Array.isArray(i)}var ui,Zn;function di(i,l){if(!i)throw new Error("jsonrpc method should be specified!");if(typeof i!="string")throw new Error(`jsonrpc must be a string, got ${typeof i}!`);return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:i,params:l||[]}}function fu(i){return Array.isArray(i)?i.every(l):l(i);function l(b){return!!b&&(b.error===void 0||b.error===null)&&b.jsonrpc==="2.0"&&b.id!==null&&"result"in b&&b.result!==void 0}}r.TransactionStatus=void 0,(ui=r.TransactionStatus||(r.TransactionStatus={})).pending="pending",ui.confirmed="confirmed",ui.failed="failed",r.TransactionType=void 0,(Zn=r.TransactionType||(r.TransactionType={})).queued="queued",Zn.dropped="dropped",Zn.replaced="replaced",Zn.pending="pending",Zn.reverted="reverted",Zn.confirmed="confirmed",r.messageId=0;function fi(i){return Fe(i)}function hu(i){return i==="latest"||i==="pending"||i==="earliest"}function _n(i){return i===void 0?"latest":xt(i)}function xt(i){return i==null?null:hu(i)?i:ke(i)}function hi(i){return i.from&&(i.from=Zt(i.from)),i.to&&(i.to=Zt(i.to)),i.gasPrice!==void 0&&(i.gasPrice=be(i.gasPrice)),i.gas!==void 0&&(i.gas=be(i.gas)),i.value!==void 0&&(i.value=be(i.value)),i.nonce!==void 0&&(i.nonce=be(i.nonce)),i.data&&!i.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i.data)&&(i.data="0x"+i.data),i}function Kn(i){if(typeof i!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(i));if(i.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(i));if(i.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(i));return i}function mi(i){if(typeof i!="object")throw new Error("Did not provide transaction options");if(!i.from)throw new Error('Missing "from" in transaction options');return i.from=Zt(i.from),i.to&&(i.to=Zt(i.to)),i.gasPrice!==void 0&&(i.gasPrice=be(i.gasPrice)),i.gas!==void 0&&(i.gas=be(i.gas)),i.value!==void 0&&(i.value=be(i.value)),i.nonce!==void 0&&(i.nonce=be(i.nonce)),i.data&&!i.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i.data)&&(i.data="0x"+i.data),i}function Na(i){return i?(i.blockNumber!==null&&(i.blockNumber=ve(i.blockNumber)),i.transactionIndex!==null&&(i.transactionIndex=ve(i.transactionIndex)),i.nonce=ve(i.nonce),i.gas=ve(i.gas),i.gasPrice=Fe(i.gasPrice),i.value=Fe(i.value),i):null}function mu(i){return i?(i.blockNumber!==null&&(i.blockNumber=ve(i.blockNumber)),i.transactionIndex!==null&&(i.transactionIndex=ve(i.transactionIndex)),i.cumulativeGasUsed=ve(i.cumulativeGasUsed),i.gasUsed=ve(i.gasUsed),i.effectiveGasPrice!==void 0&&i.effectiveGasPrice!==null&&(i.effectiveGasPrice=ve(i.effectiveGasPrice)),i.logs&&lr(i.logs)&&(i.logs=i.logs.map((function(l){return xs(l)}))),i.status=ve(i.status||""),i):null}function Pa(i){return i?(i.gasLimit=ve(i.gasLimit),i.gasUsed=ve(i.gasUsed),i.size=ve(i.size),i.timestamp=ve(i.timestamp),i.number!==null&&(i.number=ve(i.number)),i.difficulty=Fe(i.difficulty),i.totalDifficulty=Fe(i.totalDifficulty),lr(i.transactions)&&i.transactions.forEach((function(l,b){Ot(l)||(i.transactions[b]=Na(l)||i.transactions[b])})),i):null}function xs(i){return i&&(i.blockNumber&&(i.blockNumber=ve(i.blockNumber)),i.transactionIndex&&(i.transactionIndex=ve(i.transactionIndex)),i.logIndex&&(i.logIndex=ve(i.logIndex)),i)}function Zt(i){if(Mr(i))return i;if(tr(i))return"0x"+i;throw new Error(`Invalid address: ${JSON.stringify(i)}`)}function pu(i){return i}function gu(i){return i&&(i.startingBlock=ve(i.startingBlock),i.currentBlock=ve(i.currentBlock),i.highestBlock=ve(i.highestBlock),i.knownStates&&(i.knownStates=ve(i.knownStates),i.pulledStates=ve(i.pulledStates)),i)}function pi(i){if(i===null)throw $("cannot convert null value to array",P,{arg:"value",value:i});if(i instanceof Uint8Array)return new Uint8Array(i);if(typeof i=="string"){const l=i.match(/^(0x)?[0-9a-fA-F]*$/);if(!l)throw $("invalid hexidecimal string",P,{arg:"value",value:i});if(l[1]!=="0x")throw $("hex string must have 0x prefix",P,{arg:"value",value:i});(i=i.substring(2)).length%2&&(i="0"+i);const b=[];for(let I=0;I<i.length;I+=2)b.push(parseInt(i.substr(I,2),16));return new Uint8Array(b)}if((function(l){if(!l||parseInt(String(l.length))!==l.length||typeof l=="string")return!1;for(let b=0;b<l.length;b++){const I=l[b];if(I<0||I>=256||parseInt(String(I))!==I)return!1}return!0})(i))return new Uint8Array(i);throw $("invalid arrayify value",void 0,{arg:"value",value:i,type:typeof i})}function yu(i,l,b){Object.defineProperty(i,l,{enumerable:!0,value:b,writable:!1})}const d1=new ae(-1),f1=new ae(0),h1=new ae(1),vu=new ae("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function bu(i){return(function(l,b){function I(oe){return new Error('unexpected character "'+l[oe]+'" at position '+oe+' in "'+l+'"')}const B={type:"",name:"",state:{allowType:!0}};let z=B;for(let oe=0;oe<l.length;oe++){const pe=l[oe];switch(pe){case"(":if(!z.state.allowParams)throw I(oe);z.state.allowType=!1,z.type=Oa(z.type),z.components=[{type:"",name:"",parent:z,state:{allowType:!0}}],z=z.components[0];break;case")":delete z.state,z.name==="indexed"&&(z.indexed=!0,z.name=""),z.type=Oa(z.type);const Ie=z;if(z=z.parent,!z)throw I(oe);delete Ie.parent,z.state.allowParams=!1,z.state.allowName=!0,z.state.allowArray=!0;break;case",":delete z.state,z.name==="indexed"&&(z.indexed=!0,z.name=""),z.type=Oa(z.type);const Pe={type:"",name:"",parent:z.parent,state:{allowType:!0}};z.parent.components.push(Pe),delete z.parent,z=Pe;break;case" ":z.state.allowType&&z.type!==""&&(z.type=Oa(z.type),delete z.state.allowType,z.state.allowName=!0,z.state.allowParams=!0),z.state.allowName&&z.name!==""&&(z.name==="indexed"?(z.indexed=!0,z.name=""):z.state.allowName=!1);break;case"[":if(!z.state.allowArray)throw I(oe);z.type+=pe,z.state.allowArray=!1,z.state.allowName=!1,z.state.readArray=!0;break;case"]":if(!z.state.readArray)throw I(oe);z.type+=pe,z.state.readArray=!1,z.state.allowArray=!0,z.state.allowName=!0;break;default:if(z.state.allowType)z.type+=pe,z.state.allowParams=!0,z.state.allowArray=!0;else if(z.state.allowName)z.name+=pe,delete z.state.allowArray;else{if(!z.state.readArray)throw I(oe);z.type+=pe}}}if(z.parent)throw new Error("unexpected eof");return delete B.state,z.name==="indexed"&&(z.indexed=!0,z.name=""),B.type=Oa(B.type),B})(i)}function Oa(i){return i.match(/^uint($|[^1-9])/)?i="uint256"+i.substring(4):i.match(/^int($|[^1-9])/)&&(i="int256"+i.substring(3)),i}const m1=new RegExp(/^bytes([0-9]*)$/),wu=new RegExp(/^(u?int)([0-9]*)$/),p1=new RegExp(/^(.*)\[([0-9]*)\]$/),g1=function(i,l){const b=i.match(wu);return b&&parseInt(b[2])<=48?l.toNumber():l};class wr{constructor(l,b,I,B="",z){this.coerceFunc=l,this.name=b,this.type=I,this.localName=B,this.dynamic=z}}class y1 extends wr{constructor(l){super(l.coerceFunc,l.name,l.type,void 0,l.dynamic),yu(this,"coder",l)}encode(l){return this.coder.encode(l)}decode(l,b){return this.coder.decode(l,b)}}class v1 extends wr{constructor(l,b){super(l,"null","",b,!1)}encode(l){return pi([])}decode(l,b){if(b>l.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function Ss(i,l){return new ae(i.toString(2).substr(-l),2)}class _u extends wr{constructor(l,b,I,B){const z=(I?"int":"uint")+8*b;super(l,z,z,B,!1),this.size=b,this.signed=I}encode(l){try{let b=Fe(l);if(this.signed){let B=Ss(vu,8*this.size-1);if(b.gt(B))throw new Error("out-of-bounds");if(B=B.plus(h1).multipliedBy(d1),b.lt(B))throw new Error("out-of-bounds")}else if(b.lt(f1)||b.gt(Ss(vu,8*this.size)))throw new Error("out-of-bounds");b=Ss(at(b,8*this.size),8*this.size),this.signed&&(b=at(cr(b,8*this.size),256));const I=Y(at(b).toString(16),64);if(I.indexOf("NaN")!==-1)throw $("invalid number value, NaN",P,{arg:this.localName,coderType:this.name,value:l,v:b,twosComplement:at(b),twosComplement16:at(b).toString(16),pad:Y(at(b).toString(16),64),size:this.size});return V(I)}catch(b){throw $("invalid number value",P,{arg:this.localName,coderType:this.name,value:l,message:b.toString()})}}decode(l,b){if(l.length<b+32)throw $("insufficient data for "+this.name+" type",P,{arg:this.localName,coderType:this.name,value:ke(l.slice(b,b+32))});const I=32-this.size;let B=new ae(R(l.slice(b+I,b+32)),16);return B=this.signed?cr(B,8*this.size):Ss(B,8*this.size),{consumed:32,value:this.coerceFunc(this.name,B)}}}const Br=new _u((function(i,l){return l}),32,!1,"none");class Cu extends wr{constructor(l,b,I){const B="bytes"+b;super(l,B,B,I,!1),this.length=b}encode(l){const b=new Uint8Array(32);try{if(typeof l=="string"&&l.length%2!=0)throw new Error("hex string cannot be odd-length");const I=pi(l);if(I.length>this.length)throw new Error("incorrect data length");b.set(I)}catch(I){throw $("invalid "+this.name+" value. Use hex strings or Uint8Array",P,{arg:this.localName,coderType:this.name,value:I.value||l,details:I.message})}return b}decode(l,b){if(l.length<b+32)throw $("insufficient data for "+this.name+" type",P,{arg:this.localName,coderType:this.name,value:ke(l.slice(b,b+32))});return{consumed:32,value:this.coerceFunc(this.name,l.slice(b,b+this.length))}}}function Eu(i){const l=32*Math.ceil(i.length/32),b=new Uint8Array(l-i.length);return le(Br.encode(i.length),i,b)}function xu(i,l,b){if(i.length<l+32)throw $("insufficient data for dynamicBytes length",P,{arg:b,coderType:"dynamicBytes",value:ke(i.slice(l,l+32))});let I=Br.decode(i,l).value;try{I=I.toNumber()}catch(B){throw B("dynamic bytes count too large",P,{arg:b,coderType:"dynamicBytes",value:I.toString()})}if(i.length<l+32+I)throw $("insufficient data for dynamicBytes type",P,{arg:b,coderType:"dynamicBytes",value:ke(i.slice(l,l+32+I))});return{consumed:32+32*Math.ceil(I/32),value:i.slice(l+32,l+32+I)}}function Ts(i){return 32*Math.ceil(i/32)}function Su(i,l){if(!Array.isArray(l)){if(!l||typeof l!="object")throw $("invalid tuple value",P,{coderType:"tuple",value:l});{const Ie=[];i.forEach((function(Pe){Ie.push(l[Pe.localName])})),l=Ie}}if(i.length!==l.length)throw $("types/value length mismatch",P,{coderType:"tuple",value:l});const b=[];i.forEach((function(Ie,Pe){b.push({dynamic:Ie.dynamic,value:Ie.encode(l[Pe])})}));let I=0,B=0;b.forEach((function(Ie){Ie.dynamic?(I+=32,B+=Ts(Ie.value.length)):I+=Ts(Ie.value.length)}));let z=0,oe=I;const pe=new Uint8Array(I+B);return b.forEach((function(Ie){Ie.dynamic?(pe.set(Br.encode(oe),z),z+=32,pe.set(Ie.value,oe),oe+=Ts(Ie.value.length)):(pe.set(Ie.value,z),z+=Ts(Ie.value.length))})),pe}class b1 extends Array{}class w1 extends wr{constructor(l,b,I,B){super(l,"array",b.type+"["+(I>=0?I:"")+"]",B,I===-1||b.dynamic),this.coder=b,this.length=I}encode(l){if(!Array.isArray(l))throw $("expected array value",P,{arg:this.localName,coderType:"array",value:l});let b=this.length,I=new Uint8Array(0);b===-1&&(b=l.length,I=Br.encode(b)),(function(z,oe,pe){if(pe||(pe=""),z<oe)throw $("missing argument"+pe,"MISSING_ARGUMENT",{count:z,expectedCount:oe});if(z>oe)throw $("too many arguments"+pe,"UNEXPECTED_ARGUMENT",{count:z,expectedCount:oe})})(b,l.length,"in coder array"+(this.localName?" "+this.localName:""));const B=[];for(let z=0;z<l.length;z++)B.push(this.coder);return le(I,Su(B,l))}decode(l,b){let I=0,B=this.length;if(B===-1){let pe;try{pe=Br.decode(l,b)}catch(Ie){throw $("insufficient data for dynamic array length",P,{arg:this.localName,coderType:"array",value:Ie.value})}try{B=pe.value.toNumber()}catch{throw $("array count too large",P,{arg:this.localName,coderType:"array",value:pe.value.toString()})}I+=pe.consumed,b+=pe.consumed}const z=[];for(let pe=0;pe<B;pe++)z.push(new y1(this.coder));const oe=(function(pe,Ie,Pe){const $t=Pe;let lt=0;const ye=[];return pe.forEach((function(kt){let Xe;if(kt.dynamic){const et=Br.decode(Ie,Pe);Xe=kt.decode(Ie,$t+et.value.toNumber()),Xe.consumed=et.consumed}else Xe=kt.decode(Ie,Pe);Xe.value!==void 0&&ye.push(Xe.value),Pe+=Xe.consumed,lt+=Xe.consumed})),{value:ye,consumed:lt}})(z,l,b);return oe.consumed+=I,oe.value=this.coerceFunc(this.type,oe.value),oe}}class gi extends wr{constructor(l,b,I){let B=!1;const z=[];b.forEach((function(oe){oe.dynamic&&(B=!0),z.push(oe.type)})),super(l,"tuple","tuple("+z.join(",")+")",I,B),this.coders=b}encode(l){return Su(this.coders,l)}decode(l,b){const I=(function(B,z,oe){const pe=oe;let Ie=0;const Pe=new b1;return B.forEach((function($t){let lt;if($t.dynamic){const ye=Br.decode(z,oe);lt=$t.decode(z,pe+ye.value.toNumber()),lt.consumed=ye.consumed}else lt=$t.decode(z,oe);lt.value!==void 0&&Pe.push(lt.value),oe+=lt.consumed,Ie+=lt.consumed})),B.forEach((function($t,lt){let ye=$t.localName;ye&&(ye==="length"&&(ye="_length"),Pe[ye]!==null&&Pe[ye]!==void 0||(Pe[ye]=Pe[lt]))})),{value:Pe,consumed:Ie}})(this.coders,l,b);return I.value=this.coerceFunc(this.type,I.value),I}}const _1={address:class extends wr{constructor(i,l){super(i,"address","address",l,!1)}encode(i){const l=new Uint8Array(32),b=i.trim();if(!tr(b))throw $("invalid address format",P,{arg:this.localName,coderType:"address",value:i});try{l.set(V(Zt(b)),12)}catch(I){throw $(`invalid address (${I.message})`,P,{arg:this.localName,coderType:"address",value:i})}return l}decode(i,l){if(i.length<l+32)throw $("insufficuent data for address type",P,{arg:this.localName,coderType:"address",value:ke(i.slice(l,l+32)),missingBytes:l+32-i.length});return{consumed:32,value:this.coerceFunc("address",zt(ke(i.slice(l+12,l+32))))}}},bool:class extends wr{constructor(i,l){super(i,"bool","bool",l,!1)}encode(i){return Br.encode(i?1:0)}decode(i,l){try{const b=Br.decode(i,l);return{consumed:b.consumed,value:this.coerceFunc("bool",!b.value.isZero())}}catch(b){throw b.reason==="insufficient data for uint256 type"?$("insufficient data for boolean type",P,{arg:this.localName,coderType:"boolean",value:b.value}):b}}},string:class extends wr{constructor(i,l){super(i,"string","string",l,!0)}encode(i){if(typeof i!="string")throw $("invalid string value",P,{arg:this.localName,coderType:"string",value:i});return Eu(M(i))}decode(i,l){const b=xu(i,l,this.localName);return b.value=this.coerceFunc("string",N(b.value)),b}},bytes:class extends wr{constructor(i,l){super(i,"bytes","bytes",l,!0)}encode(i){try{return Eu(pi(i))}catch(l){throw l("invalid bytes value",P,{arg:this.localName,coderType:"bytes",value:l.value})}}decode(i,l){const b=xu(i,l,this.localName);return b.value=this.coerceFunc("bytes",b.value),b}},function:class extends Cu{constructor(i,l){super(i,24,l)}}};function As(i,l){const b=_1[l.type];if(b)return new b(i,l.name);let I=l.type.match(wu);if(I){const B=parseInt(I[2]||"256");if(B===0||B>256||B%8!=0)throw $("invalid "+I[1]+" bit length",P,{arg:"param",value:l});return new _u(i,B/8,I[1]==="int",l.name)}if(I=l.type.match(m1),I){const B=parseInt(I[1]);if(B===0||B>32)throw $("invalid bytes length",P,{arg:"param",value:l});return new Cu(i,B,l.name)}if(I=l.type.match(p1),I){const B=Object.assign({},l),z=parseInt(I[2]||"-1");return B.type=I[1],new w1(i,As(i,B),z,l.name)}if(l.type.substring(0,5)==="tuple")return(function(B,z,oe){z||(z=[]);const pe=z.map((Ie=>As(B,Ie)));return new gi(B,pe,oe)})(i,l.components,l.name);if(l.type==="")return new v1(i,l.name);throw $("invalid type",P,{arg:"type",value:l.type,fullType:l})}class yi{constructor(l){(function(b,I){if(!(b instanceof I))throw $("missing new","MISSING_NEW",{name:I.name})})(this,yi),l||(l=g1),yu(this,"coerceFunc",l)}encode(l,b){if(l.length!==b.length)throw $("types/values length mismatch",P,{count:{types:l.length,values:b.length},value:{types:l,values:b}});const I=l.map((B=>typeof B=="string"?bu(B):B)).map((B=>As(this.coerceFunc,B)));return new gi(this.coerceFunc,I,"_").encode(b)}decode(l,b){const I=l.map((B=>typeof B=="string"?bu(B):B)).map((B=>As(this.coerceFunc,B)));return new gi(this.coerceFunc,I,"_").decode(b,0).value}}const Tu=new yi;var Au,Ce;function Se(i,l,b,I){var B,z=arguments.length,oe=z<3?l:I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(i,l,b,I);else for(var pe=i.length-1;pe>=0;pe--)(B=i[pe])&&(oe=(z<3?B(oe):z>3?B(l,b,oe):B(l,b))||oe);return z>3&&oe&&Object.defineProperty(l,b,oe),oe}function Te(i,l){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,l)}r.coder=void 0,(Au=r.coder||(r.coder={})).encodeParams=function(i,l){return R(Tu.encode(i,l))},Au.decodeParams=function(i,l){if(i.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 Tu.decode(i,V("0x"+l.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class Oe{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 b=this.callName,I=l.length,B=this.params,new Error(`Invalid number of input parameters to RPC method "${b}" given: ${I}, expected: ${B}`);var b,I,B}formatInput(l){return this.inputFormatter?this.inputFormatter.map((function(b,I){return b?b(l[I]):l[I]})):l}formatOutput(l){return l!==null?this.outputFormatter(l):null}toPayload(l){const b=this.formatInput(l);return this.validateArgs(b),{method:this.callName,params:b}}async execute(l,...b){const I=this.toPayload(b);if(!l)throw new Error("Missing RequestManager in method#exec");const B=await l.sendAsync(I);return this.formatOutput(B)}}class Kt{constructor(l){this.getter=l.getter,this.outputFormatter=l.outputFormatter}formatOutput(l){return this.outputFormatter(l)}async execute(l,...b){const I=await l.sendAsync({method:this.getter,params:[]});return this.formatOutput(I)}}function ku(i){return new Promise((l=>setTimeout(l,i)))}r.eth=void 0,(Ce=r.eth||(r.eth={})).eth_getBalance=new Oe({callName:"eth_getBalance",params:2,inputFormatter:[Zt,_n],outputFormatter:fi}),Ce.eth_getStorageAt=new Oe({callName:"eth_getStorageAt",params:3,inputFormatter:[Zt,ke,_n],outputFormatter:Ue}),Ce.eth_getCode=new Oe({callName:"eth_getCode",params:2,inputFormatter:[Zt,_n],outputFormatter:Ue}),Ce.eth_getBlockByHash=new Oe({callName:"eth_getBlockByHash",params:2,inputFormatter:[xt,function(i){return!!i}],outputFormatter:Pa}),Ce.eth_getBlockByNumber=new Oe({callName:"eth_getBlockByNumber",params:2,inputFormatter:[xt,function(i){return!!i}],outputFormatter:Pa}),Ce.eth_getUncleByBlockHashAndIndex=new Oe({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[xt,ke],outputFormatter:Pa}),Ce.eth_getUncleByBlockNumberAndIndex=new Oe({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[xt,ke],outputFormatter:Pa}),Ce.eth_getBlockTransactionCountByHash=new Oe({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[xt],outputFormatter:ve}),Ce.eth_getBlockTransactionCountByNumber=new Oe({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[xt],outputFormatter:ve}),Ce.eth_getUncleCountByBlockHash=new Oe({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[xt],outputFormatter:ve}),Ce.eth_getUncleCountByBlockNumber=new Oe({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[xt],outputFormatter:ve}),Ce.eth_getTransactionByHash=new Oe({callName:"eth_getTransactionByHash",params:1,inputFormatter:[Kn],outputFormatter:Na}),Ce.eth_getTransactionByBlockHashAndIndex=new Oe({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[xt,ke],outputFormatter:Na}),Ce.eth_getTransactionByBlockNumberAndIndex=new Oe({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[xt,ke],outputFormatter:Na}),Ce.eth_getTransactionReceipt=new Oe({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[Kn],outputFormatter:mu}),Ce.eth_getTransactionCount=new Oe({callName:"eth_getTransactionCount",params:2,inputFormatter:[Zt,_n],outputFormatter:ve}),Ce.eth_sendRawTransaction=new Oe({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:Ue}),Ce.web3_sha3=new Oe({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:Ue}),Ce.eth_sendTransaction=new Oe({callName:"eth_sendTransaction",params:1,inputFormatter:[mi],outputFormatter:Ue}),Ce.eth_sign=new Oe({callName:"eth_sign",params:2,inputFormatter:[Zt,null],outputFormatter:Ue}),Ce.eth_call=new Oe({callName:"eth_call",params:2,inputFormatter:[hi,_n],outputFormatter:Ue}),Ce.eth_estimateGas=new Oe({callName:"eth_estimateGas",params:1,inputFormatter:[hi],outputFormatter:ve}),Ce.eth_submitWork=new Oe({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:fe}),Ce.eth_getWork=new Oe({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:wt}),Ce.eth_coinbase=new Kt({getter:"eth_coinbase",outputFormatter:Xr}),Ce.eth_mining=new Kt({getter:"eth_mining",outputFormatter:fe}),Ce.eth_hashrate=new Kt({getter:"eth_hashrate",outputFormatter:ve}),Ce.eth_syncing=new Kt({getter:"eth_syncing",outputFormatter:gu}),Ce.eth_gasPrice=new Kt({getter:"eth_gasPrice",outputFormatter:fi}),Ce.eth_accounts=new Kt({getter:"eth_accounts",outputFormatter:wt}),Ce.eth_blockNumber=new Kt({getter:"eth_blockNumber",outputFormatter:ve}),Ce.eth_protocolVersion=new Kt({getter:"eth_protocolVersion",outputFormatter:ve}),Ce.web3_clientVersion=new Kt({getter:"web3_clientVersion",outputFormatter:Ge}),Ce.net_version=new Kt({getter:"net_version",outputFormatter:Ge}),Ce.shh_version=new Oe({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:ve}),Ce.shh_post=new Oe({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.personal_newAccount=new Oe({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:Xr}),Ce.personal_importRawKey=new Oe({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:Xr}),Ce.personal_sign=new Oe({callName:"personal_sign",params:3,inputFormatter:[he,Zt,null],outputFormatter:Ue}),Ce.personal_ecRecover=new Oe({callName:"personal_ecRecover",params:2,inputFormatter:[he,null],outputFormatter:Xr}),Ce.personal_unlockAccount=new Oe({callName:"personal_unlockAccount",params:3,inputFormatter:[Zt,null,xe],outputFormatter:fe}),Ce.personal_sendTransaction=new Oe({callName:"personal_sendTransaction",params:2,inputFormatter:[mi,null],outputFormatter:Ue}),Ce.personal_lockAccount=new Oe({callName:"personal_lockAccount",params:1,inputFormatter:[Zt],outputFormatter:fe}),Ce.personal_listAccounts=new Kt({getter:"personal_listAccounts",outputFormatter:wt}),Ce.net_listening=new Kt({getter:"net_listening",outputFormatter:fe}),Ce.net_peerCount=new Kt({getter:"net_peerCount",outputFormatter:ve}),Ce.eth_newFilter=new Oe({callName:"eth_newFilter",params:1,inputFormatter:[pu],outputFormatter:ke}),Ce.eth_getLogs=new Oe({callName:"eth_getLogs",params:1,inputFormatter:[wt],outputFormatter:wt}),Ce.eth_newBlockFilter=new Oe({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:ke}),Ce.eth_newPendingTransactionFilter=new Oe({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:ke}),Ce.eth_uninstallFilter=new Oe({callName:"eth_uninstallFilter",params:1,inputFormatter:[ke],outputFormatter:fe}),Ce.eth_getFilterLogs=new Oe({callName:"eth_getFilterLogs",params:1,inputFormatter:[ke],outputFormatter:wt}),Ce.eth_getFilterChanges=new Oe({callName:"eth_getFilterChanges",params:1,inputFormatter:[ke],outputFormatter:wt}),Ce.eth_submitHashrate=new Oe({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:fe}),Ce.shh_newIdentity=new Oe({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:Ue}),Ce.shh_hasIdentity=new Oe({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.shh_newGroup=new Oe({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:Ue}),Ce.shh_addToGroup=new Oe({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.shh_newFilter=new Oe({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:ke}),Ce.shh_uninstallFilter=new Oe({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.shh_getLogs=new Oe({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:wt}),Ce.shh_getFilterMessages=new Oe({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:wt}),Ce.shh_getFilterChanges=new Oe({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:wt}),Ce.shh_getMessages=new Oe({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:wt});function Ae(i,l){const b=r.eth[l];if(!b)throw new Error(`Could not find the method/property named ${l.toString()}`);Object.defineProperty(i,l,{value:function(...I){return b.execute(this,...I)}})}class _e{constructor(l){this.provider=l,this.requests=new Map}async sendAsync(l){const b=await this.provider;if(!b)throw new Error("Provider not set or invalid");const I=di(l.method,l.params),B=o();return this.requests.set(I.id,B),b.sendAsync(I,((z,oe)=>{this.requests.delete(I.id),z?B.reject(z):fu(oe)?B.resolve(oe.result):B.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)})(oe))})),B}setProvider(l){this.provider=l}async getConfirmedTransaction(l){const b=await this.waitForCompletion(l);if(this.isFailure(b))throw new Error(`Transaction "${l}" failed`);return b}async waitForCompletion(l,b){const I=Kn(l);if(await this.isTxDropped(I,b)){const B=await this.getTransactionAndReceipt(I);return Object.assign(Object.assign({},B),{status:r.TransactionStatus.failed})}for(;;){const B=await this.getTransactionAndReceipt(I);if(!this.isPending(B)&&B.receipt)return Object.assign(Object.assign({},B),{status:this.isFailure(B)?r.TransactionStatus.failed:r.TransactionStatus.confirmed});await ku(2e3)}}async getTransaction(l){let b,I=null;const B=Kn(l);try{const oe=(await this.eth_accounts())[0];oe&&(I=await this.eth_getTransactionCount(oe,"latest"))}catch{I=null}try{if(b=await this.eth_getTransactionByHash(B),b===null)return null}catch{return null}if(b.blockNumber===null){if(I!==null){if(b.nonce<I)return{hash:B,type:r.TransactionType.replaced,nonce:b.nonce};if(b.nonce>I)return{hash:B,type:r.TransactionType.queued,nonce:b.nonce}}return Object.assign({type:r.TransactionType.pending},b)}let z;try{if(z=await this.eth_getTransactionReceipt(B),z===null||z.status===0)return Object.assign({type:r.TransactionType.reverted},b)}catch{return null}return Object.assign(Object.assign({type:r.TransactionType.confirmed},b),{receipt:z})}async isTxDropped(l,b=15){let I=b;for(;I>0;){if(await this.getTransactionAndReceipt(l)!==null)return!1;I-=1,await ku(2e3)}return!0}async getTransactionAndReceipt(l){l=Kn(l);const[b,I]=await Promise.all([this.eth_getTransactionByHash(l),this.eth_getTransactionReceipt(l)]);return Object.assign(Object.assign({},b),{receipt:I})}isPending(l){return l&&l.blockNumber===null}isFailure(l){return l&&(!l.receipt||l.receipt.status===0)}}Se([Ae,Te("design:type",Function)],_e.prototype,"web3_clientVersion",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"web3_sha3",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"net_version",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"net_peerCount",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"net_listening",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_protocolVersion",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_syncing",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_coinbase",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_mining",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_hashrate",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_gasPrice",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_accounts",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_blockNumber",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getBalance",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getStorageAt",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getTransactionCount",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getBlockTransactionCountByHash",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getBlockTransactionCountByNumber",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getUncleCountByBlockHash",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getUncleCountByBlockNumber",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getCode",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_sign",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_sendTransaction",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_sendRawTransaction",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_call",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_estimateGas",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getBlockByHash",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getBlockByNumber",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getTransactionByHash",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getTransactionReceipt",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getUncleByBlockHashAndIndex",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_newFilter",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_newBlockFilter",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_newPendingTransactionFilter",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_uninstallFilter",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getFilterChanges",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getFilterLogs",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getLogs",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_getWork",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_submitWork",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"eth_submitHashrate",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"shh_post",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"shh_version",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"shh_newIdentity",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"shh_hasIdentity",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"shh_newGroup",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"shh_addToGroup",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"shh_newFilter",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"shh_uninstallFilter",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"shh_getFilterChanges",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"shh_getMessages",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"personal_unlockAccount",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"personal_newAccount",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"personal_listAccounts",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"personal_lockAccount",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"personal_importRawKey",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"personal_sendTransaction",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"personal_sign",void 0),Se([Ae,Te("design:type",Function)],_e.prototype,"personal_ecRecover",void 0);class Iu{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=ie(l)}extractDefaultBlock(l){return l.length>this._inputTypes.length&&!Wt(l[l.length-1])&&_n(l.pop())||"latest"}validateArgs(l){if(l.some((z=>z===void 0)))throw new Error("Invalid call, some arguments are undefined");const b=l.filter((function(z){return!(Wt(z)===!0&&lr(z)===!1&&Gt(z)===!1&&!(z instanceof Uint8Array))}));if(b.length!==this._inputTypes.length)throw I=b.length,B=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${I}, expected: ${B}`);var I,B}toPayload(l){let b={to:void 0,data:void 0,value:void 0,from:void 0};l.length>this._inputTypes.length&&Wt(l[l.length-1])&&(b=l.pop()),this.validateArgs(l);const I=this.signature();let B=r.coder.encodeParams(this._inputTypes,l);return B.indexOf("0x")===0&&(B=B.substr(2)),b.data="0x"+I+B,b}signature(){return j(this._name).slice(0,8)}unpackOutput(l){if(!l)return;const b=l.length>=2?l.slice(2):l,I=r.coder.decodeParams(this._outputTypes,b);return I.length===1?I[0]:I}async execute(l,b,...I){if(!l)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const B=this.toPayload(I);if(B.to=b,B.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!B.from)throw new Error('Missing "from" in transaction options');return await l.eth_sendTransaction(B)}{const B=this.extractDefaultBlock(I),z=this.toPayload(I);z.to=b;const oe=await l.eth_call(z,B);return this.unpackOutput(oe)}}estimateGas(l,b,...I){if(!(l instanceof _e))throw new Error("estimateGas needs to receive a RequestManager as first argument");const B=this.toPayload(I);return B.to=b,l.eth_estimateGas(B)}displayName(){return Ne(this._name)}typeName(){return we(this._name)||"void"}attachToContract(l){const b=this.displayName(),I=Object.assign(((...B)=>this.execute(l.requestManager,l.address,...B)),{estimateGas:this.estimateGas.bind(this,l.requestManager,l.address),toPayload:(...B)=>this.toPayload(B),toRPCMessage:(...B)=>{const z=this.extractDefaultBlock(B),oe=this.toPayload(B);return oe.to=l.address,{method:"eth_call",params:[oe,z]}},unpackOutput:B=>this.unpackOutput(B)});l[b]||(l[b]=I),l[b][this.typeName()]=I}}function Ru(i){if(i==null)return null;const l=String(i).toString();return l.indexOf("0x")===0?l:R(M(l))}class vi{constructor(l){this.requestManager=l,this.isStarted=!1,this.isDisposed=!1,this.formatter=b=>b,this.filterId=o(),this.callbacks=[],this.stopSemaphore=o()}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=o(),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 b=await this.getChanges();b&&this.callbacks.forEach((I=>{this.formatter?b.forEach((B=>{I(this.formatter(B))})):b.forEach((B=>I(B)))}))}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=o(),setTimeout((l=()=>this.poll(),function(){l().catch((b=>console.error(b)))}),500))}else this.stopSemaphore.resolve(1);var l}}class ja extends vi{constructor(l,b,I=(B=>B)){super(l),this.requestManager=l,this.options=b,this.formatter=I,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(B){return Ru(B)})),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"?xt(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?xt(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 bi{constructor(l,b,I){this.requestManager=l,this.address=I,this._anonymous=!1,this._params=b.inputs||[],this._name=ie(b),this._anonymous=b.anonymous||!1}types(l){return this._params.filter((function(b){return b.indexed===l}))}displayName(){return Ne(this._name)}typeName(){return we(this._name)||"void"}signature(){return j(this._name)}encode(l={},b={}){const I={topics:[],address:this.address};b.fromBlock!==void 0&&(I.fromBlock=xt(b.fromBlock)||void 0),b.toBlock!==void 0&&(I.toBlock=xt(b.toBlock)||void 0),I.topics=I.topics||[],this._anonymous||I.topics.push("0x"+this.signature());const B=this._params.filter((function(z){return z.indexed===!0})).map((function(z){const oe=l[z.name];return oe==null?null:lr(oe)?oe.map((function(pe){return"0x"+r.coder.encodeParams([z],[pe])})):"0x"+r.coder.encodeParams([z],[oe])}));return I.topics=I.topics.concat(B),I}decode(l){l.data=l.data||"",l.topics=l.topics||[];const b=(this._anonymous?l.topics:l.topics.slice(1)).map((function(pe){return pe.slice(2)})).join(""),I=r.coder.decodeParams(this.types(!0),b),B=l.data.slice(2),z=r.coder.decodeParams(this.types(!1),B),oe=this._params.reduce((function(pe,Ie){return pe[Ie.name]=Ie.indexed?I.shift():z.shift(),pe}),{});return Object.assign(Object.assign({},xs(l)),{event:this.displayName(),address:l.address,args:oe})}async execute(l,b){const I=this.encode(l,b),B=this.decode.bind(this);return new ja(this.requestManager,I,B)}attachToContract(l){const b=this.execute.bind(this),I=this.displayName();l.events[I]||(l.events[I]=b),l.events[I][this.typeName()]=this.execute.bind(this,l)}}class C1{constructor(l,b,I){this._requestManager=l,this._json=b,this._address=I}encode(l={}){const b={address:this._address};return l.fromBlock!==void 0&&(b.fromBlock=xt(l.fromBlock)||void 0),l.toBlock!==void 0&&(b.toBlock=xt(l.toBlock)||void 0),b}decode(l){l.data=l.data||"";const b=lr(l.topics)&&Ot(l.topics[0])?l.topics[0].slice(2):"",I=this._json.filter((function(B){return b===j(ie(B))}))[0];return I?new bi(this._requestManager,I,this._address).decode(l):xs(l)}async execute(l){const b=this.encode(l),I=this.decode.bind(this);return new ja(this._requestManager,b,I)}getAllEventsFunction(){return this.execute.bind(this)}}class Nu{constructor(l,b,I){var B;this.requestManager=l,this.abi=b,this.address=I,this.events={},this.transactionHash=null,this.address=I,this.abi=b,(B=this).abi.filter((function(z){return z.type==="function"})).map((function(z){return new Iu(z)})).forEach((function(z){z.attachToContract(B)})),this.allEvents=(function(z){const oe=z.abi.filter((function(Ie){return Ie.type==="event"})),pe=new C1(z.requestManager,oe,z.address);return oe.map((function(Ie){return new bi(z.requestManager,Ie,z.address)})).forEach((function(Ie){Ie.attachToContract(z)})),pe.getAllEventsFunction()})(this)}}r.AbstractFilter=vi,r.BigNumber=ae,r.Contract=Nu,r.ContractFactory=class{constructor(i,l){this.requestManager=i,this.abi=l}async deploy(...i){let l;const b=i[i.length-1];if(Wt(b)&&!lr(b)&&(l=i.pop()),!l)throw new Error("Missing options object");if(!l.data||typeof l.data!="string")throw new Error("Invalid options.data");if(ve(l.value)>0&&!(this.abi.filter((function(Pe){return Pe.type==="constructor"&&Pe.inputs.length===i.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const I=(B=this.abi,z=i,B.filter((function(Pe){return Pe.type==="constructor"&&Pe.inputs&&Pe.inputs.length===z.length})).map((function(Pe){return Pe.inputs||[]})).map((function(Pe){return r.coder.encodeParams(Pe,z)}))[0]||"");var B,z;l.data+=I,l.gas||(l.gas=await this.requestManager.eth_estimateGas(l));const oe=await this.requestManager.eth_sendTransaction(l);if(!oe)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const pe=await(async function(Pe,$t){const lt=o();let ye=0;const kt=()=>{ye++,ye>50?lt.reject(new Error("Contract transaction couldn't be found after 50 blocks")):Pe.eth_getTransactionReceipt($t).then((jt=>{jt&&jt.blockHash?lt.resolve(jt):setTimeout(kt,1e3)}),(jt=>lt.reject(jt)))};kt();const Xe=await lt,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,oe),Ie=await this.at(pe);return Ie.transactionHash=oe,Ie}async at(i){if(!tr(i))throw new TypeError(`Invalid address ${JSON.stringify(i)}`);return new Nu(this.requestManager,this.abi,i)}},r.EthBlockFilter=class extends ja{constructor(i){super(i,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},r.EthFilter=ja,r.EthPendingTransactionFilter=class extends ja{constructor(i){super(i,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},r.HTTPProvider=class{constructor(i,l={}){this.host=i,this.options=l,this.debug=!1,this.host=i||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(i,l){try{let b=null;b=i instanceof Array?i.map((z=>n(z))):n(i);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 B={body:JSON.stringify(b),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+B.body),I(this.host,B).then((async z=>{if(z.ok){const oe=await z.json();this.debug&&console.log("RECV << "+JSON.stringify(oe)),oe.error?l(Object.assign(new Error(oe.error.json||oe.error),oe.error)):l(null,oe)}else{const oe=(typeof z.text=="function"?await z.text().catch((()=>"")):"").trim().slice(0,512),pe="External error. response code: "+z.status+(oe?" — "+oe:"");this.debug&&console.log("ERR << "+pe),l(new Error(pe))}}),(z=>{this.debug&&console.log("ERR << "+JSON.stringify(z)),l(z)}))}catch(b){this.debug&&console.log("ERR << "+JSON.stringify(b)),l(b)}}},r.Method=Oe,r.Property=Kt,r.RequestManager=_e,r.SHHFilter=class extends vi{constructor(i,l){super(i),this.requestManager=i,this.options=l,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(b){return Ru(b)})),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const i=await this.filterId;return this.requestManager.shh_getMessages(i)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const i=await this.filterId;return this.requestManager.shh_getFilterChanges(i)}async uninstall(){const i=await this.filterId;return this.requestManager.shh_uninstallFilter(i)}},r.SolidityEvent=bi,r.SolidityFunction=Iu,r.WebSocketProvider=class{constructor(i,l={}){this.url=i,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 i=this.connection;this.timeout(new Error("Provider disposed.")),i.then((l=>l.close())).catch((l=>{this.debug&&console.error(l)}))}send(){throw new Error("Sync requests are deprecated")}sendAsync(i,l){const b=[];let I;if(i instanceof Array)I=Promise.all(i.map((B=>{const z=o();try{const oe=n(B);b.push(oe),this.responseCallbacks.set(oe.id,z)}catch(oe){z.reject(oe)}return z})));else{const B=o();try{const z=n(i);b.push(z),this.responseCallbacks.set(z.id,B)}catch(z){B.reject(z)}I=B}I.then((B=>l(null,B)),(B=>l(B))),this.connection.then((B=>{b.forEach((z=>{const oe=JSON.stringify(z);this.debug&&console.log("SEND >> "+oe),B.send(oe)}))}),(B=>{l(B)}))}parseResponse(i){const l=[];return i.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((b=>{let I=b;this.lastChunk&&(I=this.lastChunk+I);let B=null;try{B=JSON.parse(I)}catch{return this.lastChunk=I,clearTimeout(this.lastChunkTimeout),void(this.lastChunkTimeout=setTimeout((()=>{this.timeout()}),15e3))}clearTimeout(this.lastChunkTimeout),this.lastChunk="",B&&l.push(B)})),l}processMessage(i){if("id"in i){const l=i.id,b=this.responseCallbacks.get(l);if(!b)return void console.error("Error: Received a response for an unknown request",i);this.responseCallbacks.delete(l),i.error!==void 0&&i.error!==null?b.reject(Object.assign(new Error(i.error.message||i.error),i.error)):"result"in i&&b.resolve(i)}else this.notificationCallbacks.forEach((l=>l(null,i)))}timeout(i){this.connection&&this.connection.isPending||(this.connection=o());const l=i||new Error("Connection timeout");this.responseCallbacks.forEach((b=>b.reject(l))),this.responseCallbacks.clear(),this.isDisposed||setTimeout((()=>this.connect()),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then((b=>b.close())).catch((b=>{this.debug&&console.error(b)})),this.connection&&this.connection.isPending||(this.connection=o()),this.lastChunk="";const i=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!i)throw new Error("Please provide a WebSocketConstructor");const l=new i(this.url,this.options.protocol);l.onopen=()=>{this.connection.resolve(l)},l.onerror=b=>{const I=new Error("Error in web socket");I.data=b,this.timeout(I)},l.onclose=b=>{this.timeout(new Error(`Connection closed (${b&&b.reason||"Unknown reason"})`))},l.onmessage=b=>{const I=typeof b.data=="string"?b.data:"";this.debug&&console.log("RECV << "+b.data),this.parseResponse(I).forEach((B=>{B instanceof Array?B.forEach((z=>this.processMessage(z))):this.processMessage(B)}))}}},r.bytesToHex=R,r.bytesToUtf8String=N,r.concatBytes=le,r.default=_e,r.extractDisplayName=Ne,r.extractTypeName=we,r.fromAscii=function(i,l=0){let b="";for(let I=0;I<i.length;I++){const B=i.charCodeAt(I).toString(16);b+=B.length<2?"0"+B:B}return"0x"+b.padEnd(l,"0")},r.fromDecimal=be,r.fromTwosComplement=cr,r.fromWei=function(i,l){const b=Fe(i).dividedBy(Be(l));return Gt(i)?b:b.toString(10)},r.getAddress=zt,r.getValueOfUnit=Be,r.hexToBytes=V,r.inputAddressFormatter=Zt,r.inputBlockNumberFormatter=xt,r.inputCallFormatter=hi,r.inputDefaultBlockNumberFormatter=_n,r.inputFilterOptions=pu,r.inputPostFormatter=function(i){return i?(i.ttl=be(i.ttl),i.workToProve=be(i.workToProve),i.priority=be(i.priority),lr(i.topics)||(i.topics=i.topics?[i.topics]:[]),i.topics=i.topics.map((function(l){return l.indexOf("0x")===0?l:"0x"+R(M(l))})),i):null},r.inputTransactionFormatter=mi,r.inputTransactionId=Kn,r.isAddress=tr,r.isArray=lr,r.isBigNumber=Gt,r.isBloom=function(i){return!!/^(0x)?[0-9a-f]{512}$/i.test(i)&&!!/^(0x)?[0-9a-f]{512}$/i.test(i)},r.isBoolean=Ra,r.isChecksumAddress=Wn,r.isFunction=function(i){return typeof i=="function"},r.isHex=function(i){return typeof i=="string"&&/^0x[0-9a-fA-F]+$/.test(i)},r.isJson=function(i){try{return!!JSON.parse(i)}catch{return!1}},r.isObject=Wt,r.isPredefinedBlockNumber=hu,r.isStrictAddress=Mr,r.isString=Ot,r.isTopic=function(i){return!!/^(0x)?[0-9a-f]{64}$/i.test(i)&&!!/^(0x)?[0-9a-f]{64}$/i.test(i)},r.isValidResponse=fu,r.outputBigNumberFormatter=fi,r.outputBlockFormatter=Pa,r.outputLogFormatter=xs,r.outputPostFormatter=function(i){return i?(i.expiry=ve(i.expiry),i.sent=ve(i.sent),i.ttl=ve(i.ttl),i.workProved=ve(i.workProved),i.topics||(i.topics=[]),i.topics=i.topics.map((function(l){return ce(l)})),i):null},r.outputSyncingFormatter=gu,r.outputTransactionFormatter=Na,r.outputTransactionReceiptFormatter=mu,r.padLeft=Y,r.padRight=function(i,l,b){return i+new Array(l-i.length+1).join(b||"0")},r.sha3=j,r.signedIsNegative=Vt,r.stringToUtf8Bytes=M,r.toAddress=Xr,r.toArray=wt,r.toAscii=ce,r.toBatchPayload=function(i){return i.map((function(l){return di(l.method,l.params)}))},r.toBigNumber=Fe,r.toBoolean=fe,r.toChecksumAddress=br,r.toData=Ue,r.toDecimal=ve,r.toHex=ke,r.toJsonRpcRequest=di,r.toNullDecimal=xe,r.toString=Ge,r.toStringData=he,r.toTwosComplement=at,r.toWei=function(i,l){const b=Fe(i).times(Be(l));return Gt(i)?b:b.toString(10)},r.transformToFullName=ie,Object.defineProperty(r,"__esModule",{value:!0})}))})(Va,Va.exports)),Va.exports}var po={},u0;function Gg(){if(u0)return po;u0=1,Object.defineProperty(po,"__esModule",{value:!0}),po.SignatureValidator=t;const e=Go();async function t(r,n){const a=[{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,a).at(n)}return po}var Sr={},ki={},Ii={},xn={},Ur={},Tt={},d0;function zl(){if(d0)return Tt;d0=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.output=Tt.exists=Tt.hash=Tt.bytes=Tt.bool=Tt.number=Tt.isBytes=void 0;function e(f){if(!Number.isSafeInteger(f)||f<0)throw new Error(`positive integer expected, not ${f}`)}Tt.number=e;function t(f){if(typeof f!="boolean")throw new Error(`boolean expected, not ${f}`)}Tt.bool=t;function r(f){return f instanceof Uint8Array||f!=null&&typeof f=="object"&&f.constructor.name==="Uint8Array"}Tt.isBytes=r;function n(f,...h){if(!r(f))throw new Error("Uint8Array expected");if(h.length>0&&!h.includes(f.length))throw new Error(`Uint8Array expected of length ${h}, not of length=${f.length}`)}Tt.bytes=n;function a(f){if(typeof f!="function"||typeof f.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");e(f.outputLen),e(f.blockLen)}Tt.hash=a;function s(f,h=!0){if(f.destroyed)throw new Error("Hash instance has been destroyed");if(h&&f.finished)throw new Error("Hash#digest() has already been called")}Tt.exists=s;function o(f,h){n(f);const p=h.outputLen;if(f.length<p)throw new Error(`digestInto() expects output buffer of length at least ${p}`)}Tt.output=o;const u={number:e,bool:t,bytes:n,hash:a,exists:s,output:o};return Tt.default=u,Tt}var Ri={},Ma={},f0;function Wg(){return f0||(f0=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.crypto=void 0,Ma.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),Ma}var h0;function gs(){return h0||(h0=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=Wg(),r=zl();function n(J){return J instanceof Uint8Array||J!=null&&typeof J=="object"&&J.constructor.name==="Uint8Array"}e.isBytes=n;const a=J=>new Uint8Array(J.buffer,J.byteOffset,J.byteLength);e.u8=a;const s=J=>new Uint32Array(J.buffer,J.byteOffset,Math.floor(J.byteLength/4));e.u32=s;const o=J=>new DataView(J.buffer,J.byteOffset,J.byteLength);e.createView=o;const u=(J,M)=>J<<32-M|J>>>M;e.rotr=u;const f=(J,M)=>J<<M|J>>>32-M>>>0;e.rotl=f,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const h=J=>J<<24&4278190080|J<<8&16711680|J>>>8&65280|J>>>24&255;e.byteSwap=h,e.byteSwapIfBE=e.isLE?J=>J:J=>(0,e.byteSwap)(J);function p(J){for(let M=0;M<J.length;M++)J[M]=(0,e.byteSwap)(J[M])}e.byteSwap32=p;const m=Array.from({length:256},(J,M)=>M.toString(16).padStart(2,"0"));function g(J){(0,r.bytes)(J);let M="";for(let N=0;N<J.length;N++)M+=m[J[N]];return M}e.bytesToHex=g;const _={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function x(J){if(J>=_._0&&J<=_._9)return J-_._0;if(J>=_._A&&J<=_._F)return J-(_._A-10);if(J>=_._a&&J<=_._f)return J-(_._a-10)}function y(J){if(typeof J!="string")throw new Error("hex string expected, got "+typeof J);const M=J.length,N=M/2;if(M%2)throw new Error("padded hex string expected, got unpadded hex of length "+M);const Z=new Uint8Array(N);for(let P=0,$=0;P<N;P++,$+=2){const V=x(J.charCodeAt($)),R=x(J.charCodeAt($+1));if(V===void 0||R===void 0){const j=J[$]+J[$+1];throw new Error('hex string expected, got non-hex character "'+j+'" at index '+$)}Z[P]=V*16+R}return Z}e.hexToBytes=y;const k=async()=>{};e.nextTick=k;async function G(J,M,N){let Z=Date.now();for(let P=0;P<J;P++){N(P);const $=Date.now()-Z;$>=0&&$<M||(await(0,e.nextTick)(),Z+=$)}}e.asyncLoop=G;function v(J){if(typeof J!="string")throw new Error(`utf8ToBytes expected string, got ${typeof J}`);return new Uint8Array(new TextEncoder().encode(J))}e.utf8ToBytes=v;function A(J){return typeof J=="string"&&(J=v(J)),(0,r.bytes)(J),J}e.toBytes=A;function w(...J){let M=0;for(let Z=0;Z<J.length;Z++){const P=J[Z];(0,r.bytes)(P),M+=P.length}const N=new Uint8Array(M);for(let Z=0,P=0;Z<J.length;Z++){const $=J[Z];N.set($,P),P+=$.length}return N}e.concatBytes=w;class K{clone(){return this._cloneInto()}}e.Hash=K;const H={}.toString;function S(J,M){if(M!==void 0&&H.call(M)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(J,M)}e.checkOpts=S;function U(J){const M=Z=>J().update(A(Z)).digest(),N=J();return M.outputLen=N.outputLen,M.blockLen=N.blockLen,M.create=()=>J(),M}e.wrapConstructor=U;function Q(J){const M=(Z,P)=>J(P).update(A(Z)).digest(),N=J({});return M.outputLen=N.outputLen,M.blockLen=N.blockLen,M.create=Z=>J(Z),M}e.wrapConstructorWithOpts=Q;function ee(J){const M=(Z,P)=>J(P).update(A(Z)).digest(),N=J({});return M.outputLen=N.outputLen,M.blockLen=N.blockLen,M.create=Z=>J(Z),M}e.wrapXOFConstructorWithOpts=ee;function ae(J=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(J));throw new Error("crypto.getRandomValues must be defined")}e.randomBytes=ae})(Ri)),Ri}var m0;function Zg(){if(m0)return Ur;m0=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.HashMD=Ur.Maj=Ur.Chi=void 0;const e=zl(),t=gs();function r(o,u,f,h){if(typeof o.setBigUint64=="function")return o.setBigUint64(u,f,h);const p=BigInt(32),m=BigInt(4294967295),g=Number(f>>p&m),_=Number(f&m),x=h?4:0,y=h?0:4;o.setUint32(u+x,g,h),o.setUint32(u+y,_,h)}const n=(o,u,f)=>o&u^~o&f;Ur.Chi=n;const a=(o,u,f)=>o&u^o&f^u&f;Ur.Maj=a;class s extends t.Hash{constructor(u,f,h,p){super(),this.blockLen=u,this.outputLen=f,this.padOffset=h,this.isLE=p,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:f,buffer:h,blockLen:p}=this;u=(0,t.toBytes)(u);const m=u.length;for(let g=0;g<m;){const _=Math.min(p-this.pos,m-g);if(_===p){const x=(0,t.createView)(u);for(;p<=m-g;g+=p)this.process(x,g);continue}h.set(u.subarray(g,g+_),this.pos),this.pos+=_,g+=_,this.pos===p&&(this.process(f,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:f,view:h,blockLen:p,isLE:m}=this;let{pos:g}=this;f[g++]=128,this.buffer.subarray(g).fill(0),this.padOffset>p-g&&(this.process(h,0),g=0);for(let G=g;G<p;G++)f[G]=0;r(h,p-8,BigInt(this.length*8),m),this.process(h,0);const _=(0,t.createView)(u),x=this.outputLen;if(x%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const y=x/4,k=this.get();if(y>k.length)throw new Error("_sha2: outputLen bigger than state");for(let G=0;G<y;G++)_.setUint32(4*G,k[G],m)}digest(){const{buffer:u,outputLen:f}=this;this.digestInto(u);const h=u.slice(0,f);return this.destroy(),h}_cloneInto(u){u||(u=new this.constructor),u.set(...this.get());const{blockLen:f,buffer:h,length:p,finished:m,destroyed:g,pos:_}=this;return u.length=p,u.pos=_,u.finished=m,u.destroyed=g,p%f&&u.buffer.set(h),u}}return Ur.HashMD=s,Ur}var p0;function Kg(){if(p0)return xn;p0=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.sha224=xn.sha256=void 0;const e=Zg(),t=gs(),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]),a=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:f,B:h,C:p,D:m,E:g,F:_,G:x,H:y}=this;return[f,h,p,m,g,_,x,y]}set(f,h,p,m,g,_,x,y){this.A=f|0,this.B=h|0,this.C=p|0,this.D=m|0,this.E=g|0,this.F=_|0,this.G=x|0,this.H=y|0}process(f,h){for(let v=0;v<16;v++,h+=4)a[v]=f.getUint32(h,!1);for(let v=16;v<64;v++){const A=a[v-15],w=a[v-2],K=(0,t.rotr)(A,7)^(0,t.rotr)(A,18)^A>>>3,H=(0,t.rotr)(w,17)^(0,t.rotr)(w,19)^w>>>10;a[v]=H+a[v-7]+K+a[v-16]|0}let{A:p,B:m,C:g,D:_,E:x,F:y,G:k,H:G}=this;for(let v=0;v<64;v++){const A=(0,t.rotr)(x,6)^(0,t.rotr)(x,11)^(0,t.rotr)(x,25),w=G+A+(0,e.Chi)(x,y,k)+r[v]+a[v]|0,H=((0,t.rotr)(p,2)^(0,t.rotr)(p,13)^(0,t.rotr)(p,22))+(0,e.Maj)(p,m,g)|0;G=k,k=y,y=x,x=_+w|0,_=g,g=m,m=p,p=w+H|0}p=p+this.A|0,m=m+this.B|0,g=g+this.C|0,_=_+this.D|0,x=x+this.E|0,y=y+this.F|0,k=k+this.G|0,G=G+this.H|0,this.set(p,m,g,_,x,y,k,G)}roundClean(){a.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class o 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 xn.sha256=(0,t.wrapConstructor)(()=>new s),xn.sha224=(0,t.wrapConstructor)(()=>new o),xn}var Ba={},Ni={},g0;function Yg(){return g0||(g0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=zl(),r=gs();class n extends r.Hash{constructor(o,u){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(o);const f=(0,r.toBytes)(u);if(this.iHash=o.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,p=new Uint8Array(h);p.set(f.length>h?o.create().update(f).digest():f);for(let m=0;m<p.length;m++)p[m]^=54;this.iHash.update(p),this.oHash=o.create();for(let m=0;m<p.length;m++)p[m]^=106;this.oHash.update(p),p.fill(0)}update(o){return(0,t.exists)(this),this.iHash.update(o),this}digestInto(o){(0,t.exists)(this),(0,t.bytes)(o,this.outputLen),this.finished=!0,this.iHash.digestInto(o),this.oHash.update(o),this.oHash.digestInto(o),this.destroy()}digest(){const o=new Uint8Array(this.oHash.outputLen);return this.digestInto(o),o}_cloneInto(o){o||(o=Object.create(Object.getPrototypeOf(this),{}));const{oHash:u,iHash:f,finished:h,destroyed:p,blockLen:m,outputLen:g}=this;return o=o,o.finished=h,o.destroyed=p,o.blockLen=m,o.outputLen=g,o.oHash=u._cloneInto(o.oHash),o.iHash=f._cloneInto(o.iHash),o}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=n;const a=(s,o,u)=>new n(s,o).update(u).digest();e.hmac=a,e.hmac.create=(s,o)=>new n(s,o)})(Ni)),Ni}var Pi={},Fa={},ot={},nt={},y0;function xa(){if(y0)return nt;y0=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.bitMask=void 0,nt.isBytes=n,nt.abytes=a,nt.bytesToHex=o,nt.numberToHexUnpadded=u,nt.hexToNumber=f,nt.hexToBytes=m,nt.bytesToNumberBE=g,nt.bytesToNumberLE=_,nt.numberToBytesBE=x,nt.numberToBytesLE=y,nt.numberToVarBytesBE=k,nt.ensureBytes=G,nt.concatBytes=v,nt.equalBytes=A,nt.utf8ToBytes=w,nt.bitLen=K,nt.bitGet=H,nt.bitSet=S,nt.createHmacDrbg=ae,nt.validateObject=M;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=BigInt(0),t=BigInt(1),r=BigInt(2);function n(N){return N instanceof Uint8Array||N!=null&&typeof N=="object"&&N.constructor.name==="Uint8Array"}function a(N){if(!n(N))throw new Error("Uint8Array expected")}const s=Array.from({length:256},(N,Z)=>Z.toString(16).padStart(2,"0"));function o(N){a(N);let Z="";for(let P=0;P<N.length;P++)Z+=s[N[P]];return Z}function u(N){const Z=N.toString(16);return Z.length&1?`0${Z}`:Z}function f(N){if(typeof N!="string")throw new Error("hex string expected, got "+typeof N);return BigInt(N===""?"0":`0x${N}`)}const h={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function p(N){if(N>=h._0&&N<=h._9)return N-h._0;if(N>=h._A&&N<=h._F)return N-(h._A-10);if(N>=h._a&&N<=h._f)return N-(h._a-10)}function m(N){if(typeof N!="string")throw new Error("hex string expected, got "+typeof N);const Z=N.length,P=Z/2;if(Z%2)throw new Error("padded hex string expected, got unpadded hex of length "+Z);const $=new Uint8Array(P);for(let V=0,R=0;V<P;V++,R+=2){const j=p(N.charCodeAt(R)),W=p(N.charCodeAt(R+1));if(j===void 0||W===void 0){const Y=N[R]+N[R+1];throw new Error('hex string expected, got non-hex character "'+Y+'" at index '+R)}$[V]=j*16+W}return $}function g(N){return f(o(N))}function _(N){return a(N),f(o(Uint8Array.from(N).reverse()))}function x(N,Z){return m(N.toString(16).padStart(Z*2,"0"))}function y(N,Z){return x(N,Z).reverse()}function k(N){return m(u(N))}function G(N,Z,P){let $;if(typeof Z=="string")try{$=m(Z)}catch(R){throw new Error(`${N} must be valid hex string, got "${Z}". Cause: ${R}`)}else if(n(Z))$=Uint8Array.from(Z);else throw new Error(`${N} must be hex string or Uint8Array`);const V=$.length;if(typeof P=="number"&&V!==P)throw new Error(`${N} expected ${P} bytes, got ${V}`);return $}function v(...N){let Z=0;for(let $=0;$<N.length;$++){const V=N[$];a(V),Z+=V.length}const P=new Uint8Array(Z);for(let $=0,V=0;$<N.length;$++){const R=N[$];P.set(R,V),V+=R.length}return P}function A(N,Z){if(N.length!==Z.length)return!1;let P=0;for(let $=0;$<N.length;$++)P|=N[$]^Z[$];return P===0}function w(N){if(typeof N!="string")throw new Error(`utf8ToBytes expected string, got ${typeof N}`);return new Uint8Array(new TextEncoder().encode(N))}function K(N){let Z;for(Z=0;N>e;N>>=t,Z+=1);return Z}function H(N,Z){return N>>BigInt(Z)&t}function S(N,Z,P){return N|(P?t:e)<<BigInt(Z)}const U=N=>(r<<BigInt(N-1))-t;nt.bitMask=U;const Q=N=>new Uint8Array(N),ee=N=>Uint8Array.from(N);function ae(N,Z,P){if(typeof N!="number"||N<2)throw new Error("hashLen must be a number");if(typeof Z!="number"||Z<2)throw new Error("qByteLen must be a number");if(typeof P!="function")throw new Error("hmacFn must be a function");let $=Q(N),V=Q(N),R=0;const j=()=>{$.fill(1),V.fill(0),R=0},W=(...le)=>P(V,$,...le),Y=(le=Q())=>{V=W(ee([0]),le),$=W(),le.length!==0&&(V=W(ee([1]),le),$=W())},ce=()=>{if(R++>=1e3)throw new Error("drbg: tried 1000 values");let le=0;const de=[];for(;le<Z;){$=W();const Ne=$.slice();de.push(Ne),le+=$.length}return v(...de)};return(le,de)=>{j(),Y(le);let Ne;for(;!(Ne=de(ce()));)Y();return j(),Ne}}const J={bigint:N=>typeof N=="bigint",function:N=>typeof N=="function",boolean:N=>typeof N=="boolean",string:N=>typeof N=="string",stringOrUint8Array:N=>typeof N=="string"||n(N),isSafeInteger:N=>Number.isSafeInteger(N),array:N=>Array.isArray(N),field:(N,Z)=>Z.Fp.isValid(N),hash:N=>typeof N=="function"&&Number.isSafeInteger(N.outputLen)};function M(N,Z,P={}){const $=(V,R,j)=>{const W=J[R];if(typeof W!="function")throw new Error(`Invalid validator "${R}", expected function`);const Y=N[V];if(!(j&&Y===void 0)&&!W(Y,N))throw new Error(`Invalid param ${String(V)}=${Y} (${typeof Y}), expected ${R}`)};for(const[V,R]of Object.entries(Z))$(V,R,!1);for(const[V,R]of Object.entries(P))$(V,R,!0);return N}return nt}var v0;function Wo(){if(v0)return ot;v0=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.isNegativeLE=void 0,ot.mod=f,ot.pow=h,ot.pow2=p,ot.invert=m,ot.tonelliShanks=g,ot.FpSqrt=_,ot.validateField=k,ot.FpPow=G,ot.FpInvertBatch=v,ot.FpDiv=A,ot.FpIsSquare=w,ot.nLength=K,ot.Field=H,ot.FpSqrtOdd=S,ot.FpSqrtEven=U,ot.hashToPrivateScalar=Q,ot.getFieldBytesLength=ee,ot.getMinHashLength=ae,ot.mapHashToField=J;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=xa(),t=BigInt(0),r=BigInt(1),n=BigInt(2),a=BigInt(3),s=BigInt(4),o=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function f(M,N){const Z=M%N;return Z>=t?Z:N+Z}function h(M,N,Z){if(Z<=t||N<t)throw new Error("Expected power/modulo > 0");if(Z===r)return t;let P=r;for(;N>t;)N&r&&(P=P*M%Z),M=M*M%Z,N>>=r;return P}function p(M,N,Z){let P=M;for(;N-- >t;)P*=P,P%=Z;return P}function m(M,N){if(M===t||N<=t)throw new Error(`invert: expected positive integers, got n=${M} mod=${N}`);let Z=f(M,N),P=N,$=t,V=r;for(;Z!==t;){const j=P/Z,W=P%Z,Y=$-V*j;P=Z,Z=W,$=V,V=Y}if(P!==r)throw new Error("invert: does not exist");return f($,N)}function g(M){const N=(M-r)/n;let Z,P,$;for(Z=M-r,P=0;Z%n===t;Z/=n,P++);for($=n;$<M&&h($,N,M)!==M-r;$++);if(P===1){const R=(M+r)/s;return function(W,Y){const ce=W.pow(Y,R);if(!W.eql(W.sqr(ce),Y))throw new Error("Cannot find square root");return ce}}const V=(Z+r)/n;return function(j,W){if(j.pow(W,N)===j.neg(j.ONE))throw new Error("Cannot find square root");let Y=P,ce=j.pow(j.mul(j.ONE,$),Z),ie=j.pow(W,V),le=j.pow(W,Z);for(;!j.eql(le,j.ONE);){if(j.eql(le,j.ZERO))return j.ZERO;let de=1;for(let we=j.sqr(le);de<Y&&!j.eql(we,j.ONE);de++)we=j.sqr(we);const Ne=j.pow(ce,r<<BigInt(Y-de-1));ce=j.sqr(Ne),ie=j.mul(ie,Ne),le=j.mul(le,ce),Y=de}return ie}}function _(M){if(M%s===a){const N=(M+r)/s;return function(P,$){const V=P.pow($,N);if(!P.eql(P.sqr(V),$))throw new Error("Cannot find square root");return V}}if(M%u===o){const N=(M-o)/u;return function(P,$){const V=P.mul($,n),R=P.pow(V,N),j=P.mul($,R),W=P.mul(P.mul(j,n),R),Y=P.mul(j,P.sub(W,P.ONE));if(!P.eql(P.sqr(Y),$))throw new Error("Cannot find square root");return Y}}return g(M)}const x=(M,N)=>(f(M,N)&r)===r;ot.isNegativeLE=x;const y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function k(M){const N={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},Z=y.reduce((P,$)=>(P[$]="function",P),N);return(0,e.validateObject)(M,Z)}function G(M,N,Z){if(Z<t)throw new Error("Expected power > 0");if(Z===t)return M.ONE;if(Z===r)return N;let P=M.ONE,$=N;for(;Z>t;)Z&r&&(P=M.mul(P,$)),$=M.sqr($),Z>>=r;return P}function v(M,N){const Z=new Array(N.length),P=N.reduce((V,R,j)=>M.is0(R)?V:(Z[j]=V,M.mul(V,R)),M.ONE),$=M.inv(P);return N.reduceRight((V,R,j)=>M.is0(R)?V:(Z[j]=M.mul(V,Z[j]),M.mul(V,R)),$),Z}function A(M,N,Z){return M.mul(N,typeof Z=="bigint"?m(Z,M.ORDER):M.inv(Z))}function w(M){const N=(M.ORDER-r)/n;return Z=>{const P=M.pow(Z,N);return M.eql(P,M.ZERO)||M.eql(P,M.ONE)}}function K(M,N){const Z=N!==void 0?N:M.toString(2).length,P=Math.ceil(Z/8);return{nBitLength:Z,nByteLength:P}}function H(M,N,Z=!1,P={}){if(M<=t)throw new Error(`Expected Field ORDER > 0, got ${M}`);const{nBitLength:$,nByteLength:V}=K(M,N);if(V>2048)throw new Error("Field lengths over 2048 bytes are not supported");const R=_(M),j=Object.freeze({ORDER:M,BITS:$,BYTES:V,MASK:(0,e.bitMask)($),ZERO:t,ONE:r,create:W=>f(W,M),isValid:W=>{if(typeof W!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof W}`);return t<=W&&W<M},is0:W=>W===t,isOdd:W=>(W&r)===r,neg:W=>f(-W,M),eql:(W,Y)=>W===Y,sqr:W=>f(W*W,M),add:(W,Y)=>f(W+Y,M),sub:(W,Y)=>f(W-Y,M),mul:(W,Y)=>f(W*Y,M),pow:(W,Y)=>G(j,W,Y),div:(W,Y)=>f(W*m(Y,M),M),sqrN:W=>W*W,addN:(W,Y)=>W+Y,subN:(W,Y)=>W-Y,mulN:(W,Y)=>W*Y,inv:W=>m(W,M),sqrt:P.sqrt||(W=>R(j,W)),invertBatch:W=>v(j,W),cmov:(W,Y,ce)=>ce?Y:W,toBytes:W=>Z?(0,e.numberToBytesLE)(W,V):(0,e.numberToBytesBE)(W,V),fromBytes:W=>{if(W.length!==V)throw new Error(`Fp.fromBytes: expected ${V}, got ${W.length}`);return Z?(0,e.bytesToNumberLE)(W):(0,e.bytesToNumberBE)(W)}});return Object.freeze(j)}function S(M,N){if(!M.isOdd)throw new Error("Field doesn't have isOdd");const Z=M.sqrt(N);return M.isOdd(Z)?Z:M.neg(Z)}function U(M,N){if(!M.isOdd)throw new Error("Field doesn't have isOdd");const Z=M.sqrt(N);return M.isOdd(Z)?M.neg(Z):Z}function Q(M,N,Z=!1){M=(0,e.ensureBytes)("privateHash",M);const P=M.length,$=K(N).nByteLength+8;if($<24||P<$||P>1024)throw new Error(`hashToPrivateScalar: expected ${$}-1024 bytes of input, got ${P}`);const V=Z?(0,e.bytesToNumberLE)(M):(0,e.bytesToNumberBE)(M);return f(V,N-r)+r}function ee(M){if(typeof M!="bigint")throw new Error("field order must be bigint");const N=M.toString(2).length;return Math.ceil(N/8)}function ae(M){const N=ee(M);return N+Math.ceil(N/2)}function J(M,N,Z=!1){const P=M.length,$=ee(N),V=ae(N);if(P<16||P<V||P>1024)throw new Error(`expected ${V}-1024 bytes of input, got ${P}`);const R=Z?(0,e.bytesToNumberBE)(M):(0,e.bytesToNumberLE)(M),j=f(R,N-r)+r;return Z?(0,e.numberToBytesLE)(j,$):(0,e.numberToBytesBE)(j,$)}return ot}var b0;function Qg(){if(b0)return Fa;b0=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.wNAF=a,Fa.validateBasic=s;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Wo(),t=xa(),r=BigInt(0),n=BigInt(1);function a(o,u){const f=(p,m)=>{const g=m.negate();return p?g:m},h=p=>{const m=Math.ceil(u/p)+1,g=2**(p-1);return{windows:m,windowSize:g}};return{constTimeNegate:f,unsafeLadder(p,m){let g=o.ZERO,_=p;for(;m>r;)m&n&&(g=g.add(_)),_=_.double(),m>>=n;return g},precomputeWindow(p,m){const{windows:g,windowSize:_}=h(m),x=[];let y=p,k=y;for(let G=0;G<g;G++){k=y,x.push(k);for(let v=1;v<_;v++)k=k.add(y),x.push(k);y=k.double()}return x},wNAF(p,m,g){const{windows:_,windowSize:x}=h(p);let y=o.ZERO,k=o.BASE;const G=BigInt(2**p-1),v=2**p,A=BigInt(p);for(let w=0;w<_;w++){const K=w*x;let H=Number(g&G);g>>=A,H>x&&(H-=v,g+=n);const S=K,U=K+Math.abs(H)-1,Q=w%2!==0,ee=H<0;H===0?k=k.add(f(Q,m[S])):y=y.add(f(ee,m[U]))}return{p:y,f:k}},wNAFCached(p,m,g,_){const x=p._WINDOW_SIZE||1;let y=m.get(p);return y||(y=this.precomputeWindow(p,x),x!==1&&m.set(p,_(y))),this.wNAF(x,y,g)}}}function s(o){return(0,e.validateField)(o.Fp),(0,t.validateObject)(o,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,e.nLength)(o.n,o.nBitLength),...o,p:o.Fp.ORDER})}return Fa}var w0;function Kf(){return w0||(w0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DER=void 0,e.weierstrassPoints=_,e.weierstrass=y,e.SWUFpSqrtRatio=k,e.mapToCurveSimpleSWU=G;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=Qg(),r=Wo(),n=xa(),a=xa();function s(v){const A=(0,t.validateBasic)(v);n.validateObject(A,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:w,Fp:K,a:H}=A;if(w){if(!K.eql(H,K.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({...A})}const{bytesToNumberBE:o,hexToBytes:u}=n;e.DER={Err:class extends Error{constructor(A=""){super(A)}},_parseInt(v){const{Err:A}=e.DER;if(v.length<2||v[0]!==2)throw new A("Invalid signature integer tag");const w=v[1],K=v.subarray(2,w+2);if(!w||K.length!==w)throw new A("Invalid signature integer: wrong length");if(K[0]&128)throw new A("Invalid signature integer: negative");if(K[0]===0&&!(K[1]&128))throw new A("Invalid signature integer: unnecessary leading zero");return{d:o(K),l:v.subarray(w+2)}},toSig(v){const{Err:A}=e.DER,w=typeof v=="string"?u(v):v;n.abytes(w);let K=w.length;if(K<2||w[0]!=48)throw new A("Invalid signature tag");if(w[1]!==K-2)throw new A("Invalid signature: incorrect length");const{d:H,l:S}=e.DER._parseInt(w.subarray(2)),{d:U,l:Q}=e.DER._parseInt(S);if(Q.length)throw new A("Invalid signature: left bytes after parsing");return{r:H,s:U}},hexFromSig(v){const A=ae=>Number.parseInt(ae[0],16)&8?"00"+ae:ae,w=ae=>{const J=ae.toString(16);return J.length&1?`0${J}`:J},K=A(w(v.s)),H=A(w(v.r)),S=K.length/2,U=H.length/2,Q=w(S),ee=w(U);return`30${w(U+S+4)}02${ee}${H}02${Q}${K}`}};const f=BigInt(0),h=BigInt(1),p=BigInt(2),m=BigInt(3),g=BigInt(4);function _(v){const A=s(v),{Fp:w}=A,K=A.toBytes||((P,$,V)=>{const R=$.toAffine();return n.concatBytes(Uint8Array.from([4]),w.toBytes(R.x),w.toBytes(R.y))}),H=A.fromBytes||(P=>{const $=P.subarray(1),V=w.fromBytes($.subarray(0,w.BYTES)),R=w.fromBytes($.subarray(w.BYTES,2*w.BYTES));return{x:V,y:R}});function S(P){const{a:$,b:V}=A,R=w.sqr(P),j=w.mul(R,P);return w.add(w.add(j,w.mul(P,$)),V)}if(!w.eql(w.sqr(A.Gy),S(A.Gx)))throw new Error("bad generator point: equation left != right");function U(P){return typeof P=="bigint"&&f<P&&P<A.n}function Q(P){if(!U(P))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function ee(P){const{allowedPrivateKeyLengths:$,nByteLength:V,wrapPrivateKey:R,n:j}=A;if($&&typeof P!="bigint"){if(n.isBytes(P)&&(P=n.bytesToHex(P)),typeof P!="string"||!$.includes(P.length))throw new Error("Invalid key");P=P.padStart(V*2,"0")}let W;try{W=typeof P=="bigint"?P:n.bytesToNumberBE((0,a.ensureBytes)("private key",P,V))}catch{throw new Error(`private key must be ${V} bytes, hex or bigint, not ${typeof P}`)}return R&&(W=r.mod(W,j)),Q(W),W}const ae=new Map;function J(P){if(!(P instanceof M))throw new Error("ProjectivePoint expected")}class M{constructor($,V,R){if(this.px=$,this.py=V,this.pz=R,$==null||!w.isValid($))throw new Error("x required");if(V==null||!w.isValid(V))throw new Error("y required");if(R==null||!w.isValid(R))throw new Error("z required")}static fromAffine($){const{x:V,y:R}=$||{};if(!$||!w.isValid(V)||!w.isValid(R))throw new Error("invalid affine point");if($ instanceof M)throw new Error("projective point not allowed");const j=W=>w.eql(W,w.ZERO);return j(V)&&j(R)?M.ZERO:new M(V,R,w.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ($){const V=w.invertBatch($.map(R=>R.pz));return $.map((R,j)=>R.toAffine(V[j])).map(M.fromAffine)}static fromHex($){const V=M.fromAffine(H((0,a.ensureBytes)("pointHex",$)));return V.assertValidity(),V}static fromPrivateKey($){return M.BASE.multiply(ee($))}_setWindowSize($){this._WINDOW_SIZE=$,ae.delete(this)}assertValidity(){if(this.is0()){if(A.allowInfinityPoint&&!w.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:$,y:V}=this.toAffine();if(!w.isValid($)||!w.isValid(V))throw new Error("bad point: x or y not FE");const R=w.sqr(V),j=S($);if(!w.eql(R,j))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:$}=this.toAffine();if(w.isOdd)return!w.isOdd($);throw new Error("Field doesn't support isOdd")}equals($){J($);const{px:V,py:R,pz:j}=this,{px:W,py:Y,pz:ce}=$,ie=w.eql(w.mul(V,ce),w.mul(W,j)),le=w.eql(w.mul(R,ce),w.mul(Y,j));return ie&&le}negate(){return new M(this.px,w.neg(this.py),this.pz)}double(){const{a:$,b:V}=A,R=w.mul(V,m),{px:j,py:W,pz:Y}=this;let ce=w.ZERO,ie=w.ZERO,le=w.ZERO,de=w.mul(j,j),Ne=w.mul(W,W),we=w.mul(Y,Y),xe=w.mul(j,W);return xe=w.add(xe,xe),le=w.mul(j,Y),le=w.add(le,le),ce=w.mul($,le),ie=w.mul(R,we),ie=w.add(ce,ie),ce=w.sub(Ne,ie),ie=w.add(Ne,ie),ie=w.mul(ce,ie),ce=w.mul(xe,ce),le=w.mul(R,le),we=w.mul($,we),xe=w.sub(de,we),xe=w.mul($,xe),xe=w.add(xe,le),le=w.add(de,de),de=w.add(le,de),de=w.add(de,we),de=w.mul(de,xe),ie=w.add(ie,de),we=w.mul(W,Y),we=w.add(we,we),de=w.mul(we,xe),ce=w.sub(ce,de),le=w.mul(we,Ne),le=w.add(le,le),le=w.add(le,le),new M(ce,ie,le)}add($){J($);const{px:V,py:R,pz:j}=this,{px:W,py:Y,pz:ce}=$;let ie=w.ZERO,le=w.ZERO,de=w.ZERO;const Ne=A.a,we=w.mul(A.b,m);let xe=w.mul(V,W),ve=w.mul(R,Y),Ge=w.mul(j,ce),Ue=w.add(V,R),he=w.add(W,Y);Ue=w.mul(Ue,he),he=w.add(xe,ve),Ue=w.sub(Ue,he),he=w.add(V,j);let fe=w.add(W,ce);return he=w.mul(he,fe),fe=w.add(xe,Ge),he=w.sub(he,fe),fe=w.add(R,j),ie=w.add(Y,ce),fe=w.mul(fe,ie),ie=w.add(ve,Ge),fe=w.sub(fe,ie),de=w.mul(Ne,he),ie=w.mul(we,Ge),de=w.add(ie,de),ie=w.sub(ve,de),de=w.add(ve,de),le=w.mul(ie,de),ve=w.add(xe,xe),ve=w.add(ve,xe),Ge=w.mul(Ne,Ge),he=w.mul(we,he),ve=w.add(ve,Ge),Ge=w.sub(xe,Ge),Ge=w.mul(Ne,Ge),he=w.add(he,Ge),xe=w.mul(ve,he),le=w.add(le,xe),xe=w.mul(fe,he),ie=w.mul(Ue,ie),ie=w.sub(ie,xe),xe=w.mul(Ue,ve),de=w.mul(fe,de),de=w.add(de,xe),new M(ie,le,de)}subtract($){return this.add($.negate())}is0(){return this.equals(M.ZERO)}wNAF($){return Z.wNAFCached(this,ae,$,V=>{const R=w.invertBatch(V.map(j=>j.pz));return V.map((j,W)=>j.toAffine(R[W])).map(M.fromAffine)})}multiplyUnsafe($){const V=M.ZERO;if($===f)return V;if(Q($),$===h)return this;const{endo:R}=A;if(!R)return Z.unsafeLadder(this,$);let{k1neg:j,k1:W,k2neg:Y,k2:ce}=R.splitScalar($),ie=V,le=V,de=this;for(;W>f||ce>f;)W&h&&(ie=ie.add(de)),ce&h&&(le=le.add(de)),de=de.double(),W>>=h,ce>>=h;return j&&(ie=ie.negate()),Y&&(le=le.negate()),le=new M(w.mul(le.px,R.beta),le.py,le.pz),ie.add(le)}multiply($){Q($);let V=$,R,j;const{endo:W}=A;if(W){const{k1neg:Y,k1:ce,k2neg:ie,k2:le}=W.splitScalar(V);let{p:de,f:Ne}=this.wNAF(ce),{p:we,f:xe}=this.wNAF(le);de=Z.constTimeNegate(Y,de),we=Z.constTimeNegate(ie,we),we=new M(w.mul(we.px,W.beta),we.py,we.pz),R=de.add(we),j=Ne.add(xe)}else{const{p:Y,f:ce}=this.wNAF(V);R=Y,j=ce}return M.normalizeZ([R,j])[0]}multiplyAndAddUnsafe($,V,R){const j=M.BASE,W=(ce,ie)=>ie===f||ie===h||!ce.equals(j)?ce.multiplyUnsafe(ie):ce.multiply(ie),Y=W(this,V).add(W($,R));return Y.is0()?void 0:Y}toAffine($){const{px:V,py:R,pz:j}=this,W=this.is0();$==null&&($=W?w.ONE:w.inv(j));const Y=w.mul(V,$),ce=w.mul(R,$),ie=w.mul(j,$);if(W)return{x:w.ZERO,y:w.ZERO};if(!w.eql(ie,w.ONE))throw new Error("invZ was invalid");return{x:Y,y:ce}}isTorsionFree(){const{h:$,isTorsionFree:V}=A;if($===h)return!0;if(V)return V(M,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:$,clearCofactor:V}=A;return $===h?this:V?V(M,this):this.multiplyUnsafe(A.h)}toRawBytes($=!0){return this.assertValidity(),K(M,this,$)}toHex($=!0){return n.bytesToHex(this.toRawBytes($))}}M.BASE=new M(A.Gx,A.Gy,w.ONE),M.ZERO=new M(w.ZERO,w.ONE,w.ZERO);const N=A.nBitLength,Z=(0,t.wNAF)(M,A.endo?Math.ceil(N/2):N);return{CURVE:A,ProjectivePoint:M,normPrivateKeyToScalar:ee,weierstrassEquation:S,isWithinCurveOrder:U}}function x(v){const A=(0,t.validateBasic)(v);return n.validateObject(A,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...A})}function y(v){const A=x(v),{Fp:w,n:K}=A,H=w.BYTES+1,S=2*w.BYTES+1;function U(he){return f<he&&he<w.ORDER}function Q(he){return r.mod(he,K)}function ee(he){return r.invert(he,K)}const{ProjectivePoint:ae,normPrivateKeyToScalar:J,weierstrassEquation:M,isWithinCurveOrder:N}=_({...A,toBytes(he,fe,be){const ke=fe.toAffine(),Be=w.toBytes(ke.x),Fe=n.concatBytes;return be?Fe(Uint8Array.from([fe.hasEvenY()?2:3]),Be):Fe(Uint8Array.from([4]),Be,w.toBytes(ke.y))},fromBytes(he){const fe=he.length,be=he[0],ke=he.subarray(1);if(fe===H&&(be===2||be===3)){const Be=n.bytesToNumberBE(ke);if(!U(Be))throw new Error("Point is not on curve");const Fe=M(Be);let mt;try{mt=w.sqrt(Fe)}catch(zt){const cr=zt instanceof Error?": "+zt.message:"";throw new Error("Point is not on curve"+cr)}const at=(mt&h)===h;return(be&1)===1!==at&&(mt=w.neg(mt)),{x:Be,y:mt}}else if(fe===S&&be===4){const Be=w.fromBytes(ke.subarray(0,w.BYTES)),Fe=w.fromBytes(ke.subarray(w.BYTES,2*w.BYTES));return{x:Be,y:Fe}}else throw new Error(`Point of length ${fe} was invalid. Expected ${H} compressed bytes or ${S} uncompressed bytes`)}}),Z=he=>n.bytesToHex(n.numberToBytesBE(he,A.nByteLength));function P(he){const fe=K>>h;return he>fe}function $(he){return P(he)?Q(-he):he}const V=(he,fe,be)=>n.bytesToNumberBE(he.slice(fe,be));class R{constructor(fe,be,ke){this.r=fe,this.s=be,this.recovery=ke,this.assertValidity()}static fromCompact(fe){const be=A.nByteLength;return fe=(0,a.ensureBytes)("compactSignature",fe,be*2),new R(V(fe,0,be),V(fe,be,2*be))}static fromDER(fe){const{r:be,s:ke}=e.DER.toSig((0,a.ensureBytes)("DER",fe));return new R(be,ke)}assertValidity(){if(!N(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!N(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:be,s:ke,recovery:Be}=this,Fe=le((0,a.ensureBytes)("msgHash",fe));if(Be==null||![0,1,2,3].includes(Be))throw new Error("recovery id invalid");const mt=Be===2||Be===3?be+A.n:be;if(mt>=w.ORDER)throw new Error("recovery id 2 or 3 invalid");const at=(Be&1)===0?"02":"03",Vt=ae.fromHex(at+Z(mt)),zt=ee(mt),cr=Q(-Fe*zt),Mr=Q(ke*zt),tr=ae.BASE.multiplyAndAddUnsafe(Vt,cr,Mr);if(!tr)throw new Error("point at infinify");return tr.assertValidity(),tr}hasHighS(){return P(this.s)}normalizeS(){return this.hasHighS()?new R(this.r,Q(-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 Z(this.r)+Z(this.s)}}const j={isValidPrivateKey(he){try{return J(he),!0}catch{return!1}},normPrivateKeyToScalar:J,randomPrivateKey:()=>{const he=r.getMinHashLength(A.n);return r.mapHashToField(A.randomBytes(he),A.n)},precompute(he=8,fe=ae.BASE){return fe._setWindowSize(he),fe.multiply(BigInt(3)),fe}};function W(he,fe=!0){return ae.fromPrivateKey(he).toRawBytes(fe)}function Y(he){const fe=n.isBytes(he),be=typeof he=="string",ke=(fe||be)&&he.length;return fe?ke===H||ke===S:be?ke===2*H||ke===2*S:he instanceof ae}function ce(he,fe,be=!0){if(Y(he))throw new Error("first arg must be private key");if(!Y(fe))throw new Error("second arg must be public key");return ae.fromHex(fe).multiply(J(he)).toRawBytes(be)}const ie=A.bits2int||function(he){const fe=n.bytesToNumberBE(he),be=he.length*8-A.nBitLength;return be>0?fe>>BigInt(be):fe},le=A.bits2int_modN||function(he){return Q(ie(he))},de=n.bitMask(A.nBitLength);function Ne(he){if(typeof he!="bigint")throw new Error("bigint expected");if(!(f<=he&&he<de))throw new Error(`bigint expected < 2^${A.nBitLength}`);return n.numberToBytesBE(he,A.nByteLength)}function we(he,fe,be=xe){if(["recovered","canonical"].some(br=>br in be))throw new Error("sign() legacy options not supported");const{hash:ke,randomBytes:Be}=A;let{lowS:Fe,prehash:mt,extraEntropy:at}=be;Fe==null&&(Fe=!0),he=(0,a.ensureBytes)("msgHash",he),mt&&(he=(0,a.ensureBytes)("prehashed msgHash",ke(he)));const Vt=le(he),zt=J(fe),cr=[Ne(zt),Ne(Vt)];if(at!=null&&at!==!1){const br=at===!0?Be(w.BYTES):at;cr.push((0,a.ensureBytes)("extraEntropy",br))}const Mr=n.concatBytes(...cr),tr=Vt;function Wn(br){const wt=ie(br);if(!N(wt))return;const Xr=ee(wt),Gt=ae.BASE.multiply(wt).toAffine(),Ot=Q(Gt.x);if(Ot===f)return;const Wt=Q(Xr*Q(tr+Ot*zt));if(Wt===f)return;let Ra=(Gt.x===Ot?0:2)|Number(Gt.y&h),lr=Wt;return Fe&&P(Wt)&&(lr=$(Wt),Ra^=1),new R(Ot,lr,Ra)}return{seed:Mr,k2sig:Wn}}const xe={lowS:A.lowS,prehash:!1},ve={lowS:A.lowS,prehash:!1};function Ge(he,fe,be=xe){const{seed:ke,k2sig:Be}=we(he,fe,be),Fe=A;return n.createHmacDrbg(Fe.hash.outputLen,Fe.nByteLength,Fe.hmac)(ke,Be)}ae.BASE._setWindowSize(8);function Ue(he,fe,be,ke=ve){var Gt;const Be=he;if(fe=(0,a.ensureBytes)("msgHash",fe),be=(0,a.ensureBytes)("publicKey",be),"strict"in ke)throw new Error("options.strict was renamed to lowS");const{lowS:Fe,prehash:mt}=ke;let at,Vt;try{if(typeof Be=="string"||n.isBytes(Be))try{at=R.fromDER(Be)}catch(Ot){if(!(Ot instanceof e.DER.Err))throw Ot;at=R.fromCompact(Be)}else if(typeof Be=="object"&&typeof Be.r=="bigint"&&typeof Be.s=="bigint"){const{r:Ot,s:Wt}=Be;at=new R(Ot,Wt)}else throw new Error("PARSE");Vt=ae.fromHex(be)}catch(Ot){if(Ot.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Fe&&at.hasHighS())return!1;mt&&(fe=A.hash(fe));const{r:zt,s:cr}=at,Mr=le(fe),tr=ee(cr),Wn=Q(Mr*tr),br=Q(zt*tr),wt=(Gt=ae.BASE.multiplyAndAddUnsafe(Vt,Wn,br))==null?void 0:Gt.toAffine();return wt?Q(wt.x)===zt:!1}return{CURVE:A,getPublicKey:W,getSharedSecret:ce,sign:Ge,verify:Ue,ProjectivePoint:ae,Signature:R,utils:j}}function k(v,A){const w=v.ORDER;let K=f;for(let P=w-h;P%p===f;P/=p)K+=h;const H=K,S=p<<H-h-h,U=S*p,Q=(w-h)/U,ee=(Q-h)/p,ae=U-h,J=S,M=v.pow(A,Q),N=v.pow(A,(Q+h)/p);let Z=(P,$)=>{let V=M,R=v.pow($,ae),j=v.sqr(R);j=v.mul(j,$);let W=v.mul(P,j);W=v.pow(W,ee),W=v.mul(W,R),R=v.mul(W,$),j=v.mul(W,P);let Y=v.mul(j,R);W=v.pow(Y,J);let ce=v.eql(W,v.ONE);R=v.mul(j,N),W=v.mul(Y,V),j=v.cmov(R,j,ce),Y=v.cmov(W,Y,ce);for(let ie=H;ie>h;ie--){let le=ie-p;le=p<<le-h;let de=v.pow(Y,le);const Ne=v.eql(de,v.ONE);R=v.mul(j,V),V=v.mul(V,V),de=v.mul(Y,V),j=v.cmov(R,j,Ne),Y=v.cmov(de,Y,Ne)}return{isValid:ce,value:j}};if(v.ORDER%g===m){const P=(v.ORDER-m)/g,$=v.sqrt(v.neg(A));Z=(V,R)=>{let j=v.sqr(R);const W=v.mul(V,R);j=v.mul(j,W);let Y=v.pow(j,P);Y=v.mul(Y,W);const ce=v.mul(Y,$),ie=v.mul(v.sqr(Y),R),le=v.eql(ie,V);let de=v.cmov(ce,Y,le);return{isValid:le,value:de}}}return Z}function G(v,A){if(r.validateField(v),!v.isValid(A.A)||!v.isValid(A.B)||!v.isValid(A.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const w=k(v,A.Z);if(!v.isOdd)throw new Error("Fp.isOdd is not implemented!");return K=>{let H,S,U,Q,ee,ae,J,M;H=v.sqr(K),H=v.mul(H,A.Z),S=v.sqr(H),S=v.add(S,H),U=v.add(S,v.ONE),U=v.mul(U,A.B),Q=v.cmov(A.Z,v.neg(S),!v.eql(S,v.ZERO)),Q=v.mul(Q,A.A),S=v.sqr(U),ae=v.sqr(Q),ee=v.mul(ae,A.A),S=v.add(S,ee),S=v.mul(S,U),ae=v.mul(ae,Q),ee=v.mul(ae,A.B),S=v.add(S,ee),J=v.mul(H,U);const{isValid:N,value:Z}=w(S,ae);M=v.mul(H,K),M=v.mul(M,Z),J=v.cmov(J,U,N),M=v.cmov(M,Z,N);const P=v.isOdd(K)===v.isOdd(M);return M=v.cmov(v.neg(M),M,P),J=v.div(J,Q),{x:J,y:M}}}})(Pi)),Pi}var _0;function Jg(){if(_0)return Ba;_0=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.getHash=n,Ba.createCurve=a;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Yg(),t=gs(),r=Kf();function n(s){return{hash:s,hmac:(o,...u)=>(0,e.hmac)(s,o,(0,t.concatBytes)(...u)),randomBytes:t.randomBytes}}function a(s,o){const u=f=>(0,r.weierstrass)({...s,...n(f)});return Object.freeze({...u(o),create:u})}return Ba}var an={},C0;function Xg(){if(C0)return an;C0=1,Object.defineProperty(an,"__esModule",{value:!0}),an.expand_message_xmd=o,an.expand_message_xof=u,an.hash_to_field=f,an.isogenyMap=h,an.createHasher=p;const e=Wo(),t=xa(),r=t.bytesToNumberBE;function n(m,g){if(m<0||m>=1<<8*g)throw new Error(`bad I2OSP call: value=${m} length=${g}`);const _=Array.from({length:g}).fill(0);for(let x=g-1;x>=0;x--)_[x]=m&255,m>>>=8;return new Uint8Array(_)}function a(m,g){const _=new Uint8Array(m.length);for(let x=0;x<m.length;x++)_[x]=m[x]^g[x];return _}function s(m){if(!Number.isSafeInteger(m))throw new Error("number expected")}function o(m,g,_,x){(0,t.abytes)(m),(0,t.abytes)(g),s(_),g.length>255&&(g=x((0,t.concatBytes)((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-"),g)));const{outputLen:y,blockLen:k}=x,G=Math.ceil(_/y);if(G>255)throw new Error("Invalid xmd length");const v=(0,t.concatBytes)(g,n(g.length,1)),A=n(0,k),w=n(_,2),K=new Array(G),H=x((0,t.concatBytes)(A,m,w,n(0,1),v));K[0]=x((0,t.concatBytes)(H,n(1,1),v));for(let U=1;U<=G;U++){const Q=[a(H,K[U-1]),n(U+1,1),v];K[U]=x((0,t.concatBytes)(...Q))}return(0,t.concatBytes)(...K).slice(0,_)}function u(m,g,_,x,y){if((0,t.abytes)(m),(0,t.abytes)(g),s(_),g.length>255){const k=Math.ceil(2*x/8);g=y.create({dkLen:k}).update((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(g).digest()}if(_>65535||g.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return y.create({dkLen:_}).update(m).update(n(_,2)).update(g).update(n(g.length,1)).digest()}function f(m,g,_){(0,t.validateObject)(_,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:x,k:y,m:k,hash:G,expand:v,DST:A}=_;(0,t.abytes)(m),s(g);const w=typeof A=="string"?(0,t.utf8ToBytes)(A):A,K=x.toString(2).length,H=Math.ceil((K+y)/8),S=g*k*H;let U;if(v==="xmd")U=o(m,w,S,G);else if(v==="xof")U=u(m,w,S,y,G);else if(v==="_internal_pass")U=m;else throw new Error('expand must be "xmd" or "xof"');const Q=new Array(g);for(let ee=0;ee<g;ee++){const ae=new Array(k);for(let J=0;J<k;J++){const M=H*(J+ee*k),N=U.subarray(M,M+H);ae[J]=(0,e.mod)(r(N),x)}Q[ee]=ae}return Q}function h(m,g){const _=g.map(x=>Array.from(x).reverse());return(x,y)=>{const[k,G,v,A]=_.map(w=>w.reduce((K,H)=>m.add(m.mul(K,x),H)));return x=m.div(k,G),y=m.mul(y,m.div(v,A)),{x,y}}}function p(m,g,_){if(typeof g!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(x,y){const k=f(x,2,{..._,DST:_.DST,...y}),G=m.fromAffine(g(k[0])),v=m.fromAffine(g(k[1])),A=G.add(v).clearCofactor();return A.assertValidity(),A},encodeToCurve(x,y){const k=f(x,1,{..._,DST:_.encodeDST,...y}),G=m.fromAffine(g(k[0])).clearCofactor();return G.assertValidity(),G},mapToCurve(x){if(!Array.isArray(x))throw new Error("mapToCurve: expected array of bigints");for(const k of x)if(typeof k!="bigint")throw new Error(`mapToCurve: expected array of bigints, got ${k} in array`);const y=m.fromAffine(g(x)).clearCofactor();return y.assertValidity(),y}}}return an}var E0;function ey(){return E0||(E0=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=Kg(),r=gs(),n=Jg(),a=Xg(),s=Wo(),o=xa(),u=Kf(),f=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),p=BigInt(1),m=BigInt(2),g=(R,j)=>(R+j/m)/j;function _(R){const j=f,W=BigInt(3),Y=BigInt(6),ce=BigInt(11),ie=BigInt(22),le=BigInt(23),de=BigInt(44),Ne=BigInt(88),we=R*R*R%j,xe=we*we*R%j,ve=(0,s.pow2)(xe,W,j)*xe%j,Ge=(0,s.pow2)(ve,W,j)*xe%j,Ue=(0,s.pow2)(Ge,m,j)*we%j,he=(0,s.pow2)(Ue,ce,j)*Ue%j,fe=(0,s.pow2)(he,ie,j)*he%j,be=(0,s.pow2)(fe,de,j)*fe%j,ke=(0,s.pow2)(be,Ne,j)*be%j,Be=(0,s.pow2)(ke,de,j)*fe%j,Fe=(0,s.pow2)(Be,W,j)*xe%j,mt=(0,s.pow2)(Fe,le,j)*he%j,at=(0,s.pow2)(mt,Y,j)*we%j,Vt=(0,s.pow2)(at,m,j);if(!x.eql(x.sqr(Vt),R))throw new Error("Cannot find square root");return Vt}const x=(0,s.Field)(f,void 0,void 0,{sqrt:_});e.secp256k1=(0,n.createCurve)({a:BigInt(0),b:BigInt(7),Fp:x,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:R=>{const j=h,W=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),Y=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),ce=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ie=W,le=BigInt("0x100000000000000000000000000000000"),de=g(ie*R,j),Ne=g(-Y*R,j);let we=(0,s.mod)(R-de*W-Ne*ce,j),xe=(0,s.mod)(-de*Y-Ne*ie,j);const ve=we>le,Ge=xe>le;if(ve&&(we=j-we),Ge&&(xe=j-xe),we>le||xe>le)throw new Error("splitScalar: Endomorphism failed, k="+R);return{k1neg:ve,k1:we,k2neg:Ge,k2:xe}}}},t.sha256);const y=BigInt(0),k=R=>typeof R=="bigint"&&y<R&&R<f,G=R=>typeof R=="bigint"&&y<R&&R<h,v={};function A(R,...j){let W=v[R];if(W===void 0){const Y=(0,t.sha256)(Uint8Array.from(R,ce=>ce.charCodeAt(0)));W=(0,o.concatBytes)(Y,Y),v[R]=W}return(0,t.sha256)((0,o.concatBytes)(W,...j))}const w=R=>R.toRawBytes(!0).slice(1),K=R=>(0,o.numberToBytesBE)(R,32),H=R=>(0,s.mod)(R,f),S=R=>(0,s.mod)(R,h),U=e.secp256k1.ProjectivePoint,Q=(R,j,W)=>U.BASE.multiplyAndAddUnsafe(R,j,W);function ee(R){let j=e.secp256k1.utils.normPrivateKeyToScalar(R),W=U.fromPrivateKey(j);return{scalar:W.hasEvenY()?j:S(-j),bytes:w(W)}}function ae(R){if(!k(R))throw new Error("bad x: need 0 < x < p");const j=H(R*R),W=H(j*R+BigInt(7));let Y=_(W);Y%m!==y&&(Y=H(-Y));const ce=new U(R,Y,p);return ce.assertValidity(),ce}function J(...R){return S((0,o.bytesToNumberBE)(A("BIP0340/challenge",...R)))}function M(R){return ee(R).bytes}function N(R,j,W=(0,r.randomBytes)(32)){const Y=(0,o.ensureBytes)("message",R),{bytes:ce,scalar:ie}=ee(j),le=(0,o.ensureBytes)("auxRand",W,32),de=K(ie^(0,o.bytesToNumberBE)(A("BIP0340/aux",le))),Ne=A("BIP0340/nonce",de,ce,Y),we=S((0,o.bytesToNumberBE)(Ne));if(we===y)throw new Error("sign failed: k is zero");const{bytes:xe,scalar:ve}=ee(we),Ge=J(xe,ce,Y),Ue=new Uint8Array(64);if(Ue.set(xe,0),Ue.set(K(S(ve+Ge*ie)),32),!Z(Ue,Y,ce))throw new Error("sign: Invalid signature produced");return Ue}function Z(R,j,W){const Y=(0,o.ensureBytes)("signature",R,64),ce=(0,o.ensureBytes)("message",j),ie=(0,o.ensureBytes)("publicKey",W,32);try{const le=ae((0,o.bytesToNumberBE)(ie)),de=(0,o.bytesToNumberBE)(Y.subarray(0,32));if(!k(de))return!1;const Ne=(0,o.bytesToNumberBE)(Y.subarray(32,64));if(!G(Ne))return!1;const we=J(K(de),w(le),ce),xe=Q(le,Ne,S(-we));return!(!xe||!xe.hasEvenY()||xe.toAffine().x!==de)}catch{return!1}}e.schnorr={getPublicKey:M,sign:N,verify:Z,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:ae,pointToBytes:w,numberToBytesBE:o.numberToBytesBE,bytesToNumberBE:o.bytesToNumberBE,taggedHash:A,mod:s.mod}};const P=(0,a.isogenyMap)(x,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(R=>R.map(j=>BigInt(j)))),$=(0,u.mapToCurveSimpleSWU)(x,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:x.create(BigInt("-11"))}),V=(0,a.createHasher)(e.secp256k1.ProjectivePoint,R=>{const{x:j,y:W}=$(x.create(R[0]));return P(j,W)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:x.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=V.hashToCurve,e.encodeToCurve=V.encodeToCurve})(Ii)),Ii}var x0;function ty(){return x0||(x0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var t=ey();Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return t.secp256k1}})})(ki)),ki}var S0;function ry(){if(S0)return Sr;S0=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.recoverPublicKey=r,Sr.recoverAddressFromEthSignature=a,Sr.sign=s,Sr.createEthereumMessageHash=o,Sr.ethSign=u,Sr.computeAddress=f,Sr.createUnsafeIdentity=h;const e=Go(),t=ty();function r(p,m){if(p.length!==65)throw new Error("Invalid signature length "+p.length);const g=p[64];if(g!==27&&g!==28)throw new Error(`Invalid signature recovery value: ${g}. Expected 27 or 28.`);const _=p.slice(0,p.length-1),x=g===28?1:0;return t.secp256k1.Signature.fromCompact(_).addRecoveryBit(x).recoverPublicKey(m).toRawBytes(!1).slice(1)}function n(p){if(p.length!==65)throw new Error("Invalid ethereum signature");const m=p[64];if(m===0||m===1){const g=new Uint8Array(p);return g[64]=m+27,g}return p}function a(p,m){if(typeof p=="string"){if((0,e.isHex)(p))return a((0,e.hexToBytes)(p),m);throw new Error("String signatures must be encoded in hex")}return f(r(n(p),o(m)))}function s(p,m){const g=t.secp256k1.sign(m,p),_=g.recovery===1?"1c":"1b";return"0x"+g.toCompactHex()+_}function o(p){const m=typeof p=="string"?(0,e.stringToUtf8Bytes)(p):p,g=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
96
- `),(0,e.stringToUtf8Bytes)(String(m.length)),m);return(0,e.hexToBytes)((0,e.sha3)(g))}function u(p,m){return s(p,o(m))}function f(p){let m;if(p.length===65&&p[0]===4)m=p.slice(1);else if(p.length===64)m=p;else throw new Error(`Invalid public key length: ${p.length}. Expected 64 bytes, or 65 bytes with a leading 0x04 uncompressed prefix.`);return(0,e.getAddress)((0,e.sha3)(m).substring(24))}function h(){const p=t.secp256k1.utils.randomPrivateKey(),m=t.secp256k1.getPublicKey(p,!1).slice(1),g=f(m);return{privateKey:(0,e.bytesToHex)(p),publicKey:(0,e.bytesToHex)(m),address:g}}return Sr}var go={},T0;function ny(){if(T0)return go;T0=1,Object.defineProperty(go,"__esModule",{value:!0});const e=Go();class t{constructor(n,a=!0){nn(this,"requestManager");nn(this,"checkedBlocks");nn(this,"saveBlocks");nn(this,"savedBlocks");nn(this,"requests");nn(this,"blockTime");nn(this,"firstTimestamp");this.requestManager=n,this.checkedBlocks={},this.saveBlocks=a,this.savedBlocks={},this.requests=0}async fillBlockTime(){const n=await this.getBlockWrapper("latest"),a=await this.getBlockWrapper(1);return this.blockTime=(n.timestamp-a.timestamp)/(Number(n.number)-1),this.firstTimestamp=a.timestamp,{blockTime:this.blockTime,firstTimestamp:this.firstTimestamp}}async getDate(n,a=!0){const s=n/1e3,o=Date.now()/1e3;let u=this.firstTimestamp,f=this.blockTime;if((u===void 0||f===void 0)&&({firstTimestamp:u,blockTime:f}=await this.fillBlockTime()),s<u)return{block:1,timestamp:s};const h=this.savedBlocks.latest;if(s>=o||h&&s>h.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:s};this.checkedBlocks[s]=[];const p=await this.getBlockWrapper(Math.ceil((s-u)/f));return{block:await this.findBetter(s,p,a,f),timestamp:s}}async findBetter(n,a,s,o){let u=o??this.blockTime??(await this.fillBlockTime()).blockTime;if(await this.isBetterBlock(n,a,s))return a.number;const f=n-a.timestamp;let h=Math.ceil(f/u);h===0&&(h=f<0?-1:1);const p=await this.getBlockWrapper(this.getNextBlock(n,a.number,h));return u=Math.abs((a.timestamp-p.timestamp)/(a.number-p.number)),this.findBetter(n,p,s,u)}async isBetterBlock(n,a,s){const o=a.timestamp;if(s){if(o<n)return!1;const u=await this.getBlockWrapper(a.number-1);if(o>=n&&u.timestamp<n)return!0}else{if(o>=n)return!1;const u=await this.getBlockWrapper(a.number+1);if(o<n&&u.timestamp>=n)return!0}return!1}getNextBlock(n,a,s){const o=a+s;if(this.checkedBlocks[n].includes(o)){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,a,u)}return this.checkedBlocks[n].push(o),o}async getBlockWrapper(n){if(!this.saveBlocks){const o=await this.requestManager.eth_getBlockByNumber(n,!1);return{number:(0,e.toBigNumber)(o.number).toNumber(),timestamp:(0,e.toBigNumber)(o.timestamp).toNumber()}}const a=n.toString();if(this.savedBlocks[a])return this.savedBlocks[a];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[a]={number:(0,e.toBigNumber)(n==="latest"?await this.requestManager.eth_blockNumber():n).toNumber(),timestamp:(0,e.toBigNumber)(s).toNumber()},this.requests++,this.savedBlocks[a]}}return go.default=t,go}var yo={},A0;function ay(){if(A0)return yo;A0=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.moveMinutes=e;function e(t){const r=new Date;return r.setMinutes(r.getMinutes()+t),r}return yo}var Oi={},k0;function Yf(){return k0||(k0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const t=N1();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}})})(Oi)),Oi}var I0;function Qf(){return I0||(I0=1,(function(e){var t=pr&&pr.__createBinding||(Object.create?(function(V,R,j,W){W===void 0&&(W=j);var Y=Object.getOwnPropertyDescriptor(R,j);(!Y||("get"in Y?!R.__esModule:Y.writable||Y.configurable))&&(Y={enumerable:!0,get:function(){return R[j]}}),Object.defineProperty(V,W,Y)}):(function(V,R,j,W){W===void 0&&(W=j),V[W]=R[j]})),r=pr&&pr.__setModuleDefault||(Object.create?(function(V,R){Object.defineProperty(V,"default",{enumerable:!0,value:R})}):function(V,R){V.default=R}),n=pr&&pr.__importStar||(function(){var V=function(R){return V=Object.getOwnPropertyNames||function(j){var W=[];for(var Y in j)Object.prototype.hasOwnProperty.call(j,Y)&&(W[W.length]=Y);return W},V(R)};return function(R){if(R&&R.__esModule)return R;var j={};if(R!=null)for(var W=V(R),Y=0;Y<W.length;Y++)W[Y]!=="default"&&t(j,R,W[Y]);return r(j,R),j}})(),a=pr&&pr.__importDefault||function(V){return V&&V.__esModule?V:{default:V}};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=g,e.isValidAuthChain=_,e.createEIP1271MessageHash=x,e.createSimpleAuthChain=y,e.createAuthChain=k,e.initializeAuthChain=G,e.signPayload=v,e.createSignature=A,e.ownerAddress=w,e.getEphemeralMessage=K,e.getEphemeralSignatureType=J,e.getSignedIdentitySignatureType=M,e.parseEphemeralPayload=N,e.isValidEIP1271Signature=Z;const s=n(Go()),o=Gg(),u=ry(),f=a(ny()),h=ay(),p=Yf();e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const m=132;async function g(V,R,j,W=Date.now()){let Y="";if(!_(R))return{ok:!1,message:"ERROR: Malformed authChain"};for(const ie of R){const le=$(ie.type);try{const{nextAuthority:de}=await le(Y,ie,{provider:j,dateToValidateExpirationInMillis:W});Y=de||""}catch(de){const Ne=de instanceof Error?de.message:String(de);return{ok:!1,message:`ERROR. Link type: ${ie.type}. ${Ne}.`}}}const ce=Y===V;return{ok:ce,message:ce?void 0:`ERROR: Invalid final authority. Expected: ${V}. Current ${Y}.`}}function _(V){for(const[R,j]of V.entries())if(R===0&&j.type!==p.AuthLinkType.SIGNER||j.type===p.AuthLinkType.SIGNER&&R!==0)return!1;return!0}function x(V){return(0,s.hexToBytes)((0,s.sha3)((0,s.stringToUtf8Bytes)(V)))}function y(V,R,j){return[{type:p.AuthLinkType.SIGNER,payload:R,signature:""},{type:M(j),payload:V,signature:j}]}function k(V,R,j,W){const Y=(0,h.moveMinutes)(j),ce=K(R.address,Y),ie=A(V,ce),le=A(R,W);return[{type:p.AuthLinkType.SIGNER,payload:V.address,signature:""},{type:p.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL,payload:ce,signature:ie},{type:p.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:W,signature:le}]}async function G(V,R,j,W){const Y=(0,h.moveMinutes)(j),ce=K(R.address,Y),ie=await W(ce),le=[{type:p.AuthLinkType.SIGNER,payload:V,signature:""},{type:J(ie),payload:ce,signature:ie}];return{ephemeralIdentity:R,expiration:Y,authChain:le}}function v(V,R){const j=A(V.ephemeralIdentity,R);return[...V.authChain,{type:p.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:R,signature:j}]}e.createEthereumMessageHash=u.createEthereumMessageHash;function A(V,R){return(0,u.ethSign)((0,s.hexToBytes)(V.privateKey),R)}function w(V){return V.length>0&&V[0].type===p.AuthLinkType.SIGNER?V[0].payload:"Invalid-Owner-Address"}function K(V,R){return`Decentraland Login
97
- Ephemeral address: ${V}
98
- Expiration: ${R.toISOString()}`}e.Authenticator={validateSignature:g,isValidAuthChain:_,createEIP1271MessageHash:x,createSimpleAuthChain:y,createAuthChain:k,initializeAuthChain:G,signPayload:v,createEthereumMessageHash:e.createEthereumMessageHash,createSignature:A,ownerAddress:w,getEphemeralMessage:K};const H=async(V,R)=>({nextAuthority:R.payload});e.SIGNER_VALIDATOR=H;const S=async(V,R)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_SIGNED_ENTITY_VALIDATOR'");const j=(0,u.recoverAddressFromEthSignature)(R.signature,R.payload),W=V.toLocaleLowerCase(),Y=j.toLocaleLowerCase();if(W===Y)return{nextAuthority:R.payload};throw new Error(`Invalid signer address. Expected: ${W}. Actual: ${Y}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=S;const U=async(V,R,j)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:W,ephemeralAddress:Y,expiration:ce}=N(R.payload),ie=(j==null?void 0:j.dateToValidateExpirationInMillis)||Date.now();if(ce>ie){const le=(0,u.recoverAddressFromEthSignature)(R.signature,W),de=V.toLocaleLowerCase(),Ne=le.toLocaleLowerCase();if(de===Ne)return{nextAuthority:Y};throw new Error(`Invalid signer address. Expected: ${de}. Actual: ${Ne}`)}throw new Error(`Ephemeral key expired. Expiration: ${ce}. Test: ${ie}`)};e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=U;const Q=async(V,R,j)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_EIP_1654_EPHEMERAL_VALIDATOR'");const{message:W,ephemeralAddress:Y,expiration:ce}=N(R.payload),ie=(j==null?void 0:j.dateToValidateExpirationInMillis)||Date.now();if(ce>ie&&await P(j==null?void 0:j.provider,V,W,R.signature,ie))return{nextAuthority:Y};throw new Error(`Ephemeral key expired. Expiration: ${ce}. Test: ${ie}`)};e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=Q;const ee=async(V,R,j)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(!j)throw new Error("Missing validation options for 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(await P(j.provider,V,R.payload,R.signature,j.dateToValidateExpirationInMillis))return{nextAuthority:R.payload};throw new Error("Invalid validation")};e.EIP_1654_SIGNED_ENTITY_VALIDATOR=ee;const ae=async(V,R)=>({error:"Error Validator."});function J(V){return V.length===m?p.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:p.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL}function M(V){return V.length===m?p.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:p.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY}function N(V){const R=V.replace(/\r/g,""),j=R.split(`
99
- `),W="Ephemeral address: ",Y="Expiration: ";if(j.length<3||!j[1].startsWith(W)||!j[2].startsWith(Y))throw new Error(`Invalid ephemeral payload. Expected 3 lines with "${W}" on line 2 and "${Y}" on line 3.`);const ce=j[1].substring(W.length),ie=j[2].substring(Y.length),le=Date.parse(ie);if(Number.isNaN(le))throw new Error(`Invalid expiration date in ephemeral payload: "${ie}"`);return{message:R,ephemeralAddress:ce,expiration:le}}e.parseEmphemeralPayload=N;async function Z(V,R,j,W){const Y=x(R),ce=(0,s.hexToBytes)(j);let ie;try{ie=(0,s.bytesToHex)(await V.isValidSignature(Y,ce,W))}catch{}if(ie===e.ERC1654_MAGIC_VALUE)return!0;const le=(0,u.createEthereumMessageHash)(R);try{ie=(0,s.bytesToHex)(await V.isValidSignature(le,ce,W))}catch{}return ie===e.ERC1654_MAGIC_VALUE}async function P(V,R,j,W,Y){if(!V)throw new Error("Missing provider");const ce=new s.default(V),ie=await(0,o.SignatureValidator)(ce,R);let le=await Z(ie,j,W);if(le)return!0;const de=new f.default(ce);try{const{block:Ne}=await de.getDate(Y,!1);if(le=await Z(ie,j,W,Ne),le)return!0}catch(Ne){const we=Ne instanceof Error?Ne.message:String(Ne);throw new Error(`Invalid validation. Error: ${we}`)}throw new Error(`Invalid validation. Expected: ${e.ERC1654_MAGIC_VALUE}. Actual: ${le}`)}function $(V){switch(V){case p.AuthLinkType.SIGNER:return e.SIGNER_VALIDATOR;case p.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:return e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR;case p.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:return e.ECDSA_SIGNED_ENTITY_VALIDATOR;case p.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL:return e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR;case p.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY:return e.EIP_1654_SIGNED_ENTITY_VALIDATOR;default:return ae}}})(pr)),pr}var Hr={},R0;function sy(){return R0||(R0=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.AUTH_METADATA_HEADER=Hr.AUTH_TIMESTAMP_HEADER=Hr.AUTH_CHAIN_HEADER_PREFIX=void 0,Hr.AUTH_CHAIN_HEADER_PREFIX="x-identity-auth-chain-",Hr.AUTH_TIMESTAMP_HEADER="x-identity-timestamp",Hr.AUTH_METADATA_HEADER="x-identity-metadata"),Hr}var N0;function oy(){return N0||(N0=1,(function(e){var t=En&&En.__createBinding||(Object.create?(function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}):(function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]})),r=En&&En.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(Qf(),e),r(sy(),e),r(Yf(),e)})(En)),En}var iy=oy(),Sn={},gr={},vo={exports:{}},bo={exports:{}},P0;function Gl(){return P0||(P0=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})(bo,bo.exports)),bo.exports}var wo={exports:{}},O0;function cy(){return O0||(O0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(a){return Object.prototype.toString.call(a)==="[object RegExp]"}function n(a,s){for(var o=0;o<s.length;o++){var u=s[o];if(a===u||r(u)&&u.test(a))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(wo,wo.exports)),wo.exports}var _o={exports:{}},j0;function ly(){return j0||(j0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(a,s){return a.indexOf(s)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(_o,_o.exports)),_o.exports}var Co={exports:{}},Eo={exports:{}},L0;function Jf(){return L0||(L0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(a){"@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(a)}function n(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;(r(a)!=="object"||a===null)&&(a={});for(var o in s)typeof a[o]>"u"&&(a[o]=s[o]);return a}e.exports=t.default,e.exports.default=t.default})(Eo,Eo.exports)),Eo.exports}var M0;function uy(){return M0||(M0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=a(Gl()),n=a(Jf());function a(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 o(u,f){(0,r.default)(u),f=(0,n.default)(f,s),f.allow_trailing_dot&&u[u.length-1]==="."&&(u=u.substring(0,u.length-1)),f.allow_wildcard===!0&&u.indexOf("*.")===0&&(u=u.substring(2));var h=u.split("."),p=h[h.length-1];return f.require_tld&&(h.length<2||!f.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(p)||/\s/.test(p))||!f.allow_numeric_tld&&/^\d+$/.test(p)?!1:h.every(function(m){return!(m.length>63&&!f.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(m)||/[\uff01-\uff5e]/.test(m)||/^-|-$/.test(m)||!f.allow_underscores&&/_/.test(m))})}e.exports=t.default,e.exports.default=t.default})(Co,Co.exports)),Co.exports}var xo={exports:{}},B0;function dy(){return B0||(B0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=n(Gl());function n(m){return m&&m.__esModule?m:{default:m}}function a(m){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},a(m)}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(s,"[.]){3}").concat(s),u=new RegExp("^".concat(o,"$")),f="(?:[0-9a-fA-F]{1,4})",h=new RegExp("^("+"(?:".concat(f,":){7}(?:").concat(f,"|:)|")+"(?:".concat(f,":){6}(?:").concat(o,"|:").concat(f,"|:)|")+"(?:".concat(f,":){5}(?::").concat(o,"|(:").concat(f,"){1,2}|:)|")+"(?:".concat(f,":){4}(?:(:").concat(f,"){0,1}:").concat(o,"|(:").concat(f,"){1,3}|:)|")+"(?:".concat(f,":){3}(?:(:").concat(f,"){0,2}:").concat(o,"|(:").concat(f,"){1,4}|:)|")+"(?:".concat(f,":){2}(?:(:").concat(f,"){0,3}:").concat(o,"|(:").concat(f,"){1,5}|:)|")+"(?:".concat(f,":){1}(?:(:").concat(f,"){0,4}:").concat(o,"|(:").concat(f,"){1,6}|:)|")+"(?::((?::".concat(f,"){0,5}:").concat(o,"|(?::").concat(f,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function p(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(m);var _=(a(g)==="object"?g.version:arguments[1])||"";return _?_.toString()==="4"?u.test(m):_.toString()==="6"?h.test(m):!1:p(m,{version:4})||p(m,{version:6})}e.exports=t.default,e.exports.default=t.default})(xo,xo.exports)),xo.exports}var F0;function fy(){return F0||(F0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=G;var r=f(Gl()),n=f(cy()),a=f(ly()),s=f(uy()),o=f(dy()),u=f(Jf());function f(v){return v&&v.__esModule?v:{default:v}}function h(v,A){return x(v)||_(v,A)||m(v,A)||p()}function p(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
100
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(v,A){if(v){if(typeof v=="string")return g(v,A);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)?g(v,A):void 0}}function g(v,A){(A==null||A>v.length)&&(A=v.length);for(var w=0,K=Array(A);w<A;w++)K[w]=v[w];return K}function _(v,A){var w=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(w!=null){var K,H,S,U,Q=[],ee=!0,ae=!1;try{if(S=(w=w.call(v)).next,A!==0)for(;!(ee=(K=S.call(w)).done)&&(Q.push(K.value),Q.length!==A);ee=!0);}catch(J){ae=!0,H=J}finally{try{if(!ee&&w.return!=null&&(U=w.return(),Object(U)!==U))return}finally{if(ae)throw H}}return Q}}function x(v){if(Array.isArray(v))return v}var y={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},k=/^\[([^\]]+)\](?::([0-9]+))?$/;function G(v,A){if((0,r.default)(v),!v||/[\s<>]/.test(v)||v.indexOf("mailto:")===0||(A=(0,u.default)(A,y),A.validate_length&&v.length>A.max_allowed_length)||!A.allow_fragments&&(0,a.default)(v,"#")||!A.allow_query_components&&((0,a.default)(v,"?")||(0,a.default)(v,"&")))return!1;var w,K,H,S,U,Q,ee,ae;ee=v.split("#"),v=ee.shift(),ee=v.split("?"),v=ee.shift();var J=v.match(/^([a-z][a-z0-9+\-.]*):/i),M=!1,N=function(Ue){return M=!0,w=Ue.toLowerCase(),A.require_valid_protocol&&A.protocols.indexOf(w)===-1?!1:v.substring(J[0].length)};if(J){var Z=J[1],P=v.substring(J[0].length),$=P.slice(0,2)==="//";if($){if(v=N(Z),v===!1)return!1}else{var V=P.indexOf("/"),R=V===-1?P:P.substring(0,V),j=R.indexOf("@");if(j!==-1){var W=R.substring(0,j),Y=/^[a-zA-Z0-9\-_.%:]*$/,ce=Y.test(W),ie=/%[0-9a-fA-F]{2}/.test(W);if(ce&&!ie){if(A.require_protocol)return!1}else if(v=N(Z),v===!1)return!1}else{var le=/^[0-9]/.test(P);if(le){if(A.require_protocol)return!1}else if(v=N(Z),v===!1)return!1}}}else if(A.require_protocol)return!1;if(v.slice(0,2)==="//"){if(!M&&!A.allow_protocol_relative_urls)return!1;v=v.slice(2)}if(v==="")return!1;if(ee=v.split("/"),v=ee.shift(),v===""&&!A.require_host)return!0;if(ee=v.split("@"),ee.length>1){if(A.disallow_auth||ee[0]===""||(K=ee.shift(),K.indexOf(":")>=0&&K.split(":").length>2))return!1;var de=K.split(":"),Ne=h(de,2),we=Ne[0],xe=Ne[1];if(we===""&&xe==="")return!1}S=ee.join("@"),Q=null,ae=null;var ve=S.match(k);if(ve?(H="",ae=ve[1],Q=ve[2]||null):(ee=S.split(":"),H=ee.shift(),ee.length&&(Q=ee.join(":"))),Q!==null&&Q.length>0){if(U=parseInt(Q,10),!/^[0-9]+$/.test(Q)||U<=0||U>65535)return!1}else if(A.require_port)return!1;return A.host_whitelist?(0,n.default)(H,A.host_whitelist):H===""&&!A.require_host?!0:!(!(0,o.default)(H)&&!(0,s.default)(H,A)&&(!ae||!(0,o.default)(ae,6))||(H=H||ae,A.host_blacklist&&(0,n.default)(H,A.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(vo,vo.exports)),vo.exports}var ji={},$0;function Xf(){return $0||($0=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 f=localStorage.getItem(o(u));if(!f)return null;let h;try{h=JSON.parse(f)}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 a(u,f){new Date(f.expiration).getTime()>Date.now()&&localStorage.setItem(o(u),JSON.stringify(f))}e.localStorageStoreIdentity=a;function s(u){localStorage.removeItem(o(u))}e.localStorageClearIdentity=s;function o(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()}`}})(ji)),ji}var D0;function hy(){if(D0)return gr;D0=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.clearIdentity=gr.storeIdentity=gr.getIdentity=gr.init=void 0;const e=fy(),t=Xf(),r=t.SINGLE_SIGN_ON_TARGET,n=500,a=5;let s=0,o="";const u={protocols:["https"],require_protocol:!0};function f(k,G={}){if(!(0,e.default)(k,{...u,...G}))throw new Error(`Invalid url: ${k}`);if(o)throw new Error("Already initialized");const v=document.createElement("iframe");v.id=r,v.src=k,v.style.width="0",v.style.height="0",v.style.border="none",v.style.position="absolute",document.body.appendChild(v),o=k}gr.init=f;async function h(k){let G;try{G=(await _(await g(),t.Action.GET,{user:k})).identity??null}catch(v){y(v),G=(0,t.localStorageGetIdentity)(k)}return G}gr.getIdentity=h;async function p(k,G){try{await _(await g(),t.Action.STORE,{user:k,identity:G})}catch(v){y(v),(0,t.localStorageStoreIdentity)(k,G)}}gr.storeIdentity=p;async function m(k){try{await _(await g(),t.Action.CLEAR,{user:k})}catch(G){y(G),(0,t.localStorageClearIdentity)(k)}}gr.clearIdentity=m;async function g(){if(!o)throw new Error("Not initialized");for(let k=0;k<a;k++){const G=document.getElementById(r),v=G==null?void 0:G.contentWindow;if(!v){await x(n);continue}try{await _(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 _(k,G,v,A=0){s++;const w=s;let K=null;const H=new Promise((S,U)=>{K=({data:Q})=>{!Q||Q.target!==t.SINGLE_SIGN_ON_TARGET||Q.id!==w||(Q.error?U(new Error(Q.error)):S(Q))},window.addEventListener("message",K)});k.postMessage((0,t.createMessage)({id:w,action:G,...v}),o);try{return await(A?Promise.race([H,new Promise((S,U)=>setTimeout(()=>U(new Error("Did not receive a response in time")),A))]):H)}catch(S){throw S}finally{K&&window.removeEventListener("message",K)}}function x(k){return new Promise(G=>setTimeout(G,k))}function y(k){console.warn("Could not get identity from iframe, falling back to localStorage. Error:",k.message)}return gr}var q0;function my(){return q0||(q0=1,(function(e){var t=Sn&&Sn.__createBinding||(Object.create?(function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}):(function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]})),r=Sn&&Sn.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(hy(),e),r(Xf(),e)})(Sn)),Sn}var yl=my();function py(e){const{host:t}=e;return t.endsWith(".org")||t.endsWith(".co")?jr.PRODUCTION:t.endsWith(".today")||t.endsWith(".net")?jr.STAGING:t.endsWith(".io")||t.endsWith(".zone")?jr.DEVELOPMENT:null}function gy(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(th(n))return n}return null}var U0={},jr;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(jr||(jr={}));function eh(){return Object.values(jr)}function th(e){return eh().includes(e)}function So(e){if(th(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${eh().map(t=>`"${t}"`).join(", ")}.`)}function yy(e={}){const{DCL_DEFAULT_ENV:t,REACT_APP_DCL_DEFAULT_ENV:r,VITE_DCL_DEFAULT_ENV:n,GATSBY_DCL_DEFAULT_ENV:a}=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&&a&&t!==a)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(r&&a&&r!==a)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return t?So(t):r?So(r):n?So(n):a?So(a):jr.PRODUCTION}function vy(e){if(typeof window<"u"){const r=gy(window.location);if(r)return r;const n=py(window.location);if(n)return n}return yy(typeof e>"u"&&typeof ko=="object"&&typeof U0=="object"?U0:e)}function by(e,t){const r=vy(t==null?void 0:t.systemEnvVariables),n=e[r];return{get:(a,s="")=>{if(!n)throw new Error(`Could not find a config for env=${r}`);return a in n?n[a]:s},is:a=>r===a,getEnv:()=>r}}const wy="development",_y="80002",Cy="https://marketplace-api.decentraland.zone",Ey="/auth",xy="https://rpc.decentraland.org/amoy",Sy="https://credits.decentraland.zone",Ty="https://builder-api.decentraland.zone",Ay="https://decentraland.zone/builder",ky="https://peer.decentraland.zone",Iy="https://decentraland.zone/profile",Ry="",Ny="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",Py="",Oy="",jy={ENVIRONMENT:wy,CHAIN_ID:_y,MARKETPLACE_SERVER_URL:Cy,AUTH_URL:Ey,RPC_URL:xy,CREDITS_SERVER_URL:Sy,BUILDER_SERVER_URL:Ty,BUILDER_URL:Ay,PEER_URL:ky,PROFILE_URL:Iy,SHOP_SERVER_URL:Ry,STRIPE_PUBLISHABLE_KEY:Ny,SEGMENT_WRITE_KEY:Py,SENTRY_DSN:Oy},Ly="staging",My="80002",By="https://marketplace-api.decentraland.zone",Fy="/auth",$y="https://rpc.decentraland.org/amoy",Dy="https://credits.decentraland.zone",qy="https://builder-api.decentraland.zone",Uy="https://decentraland.zone/builder",Hy="https://peer.decentraland.zone",Vy="https://decentraland.zone/profile",zy="",Gy="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",Wy="",Zy="",Ky={ENVIRONMENT:Ly,CHAIN_ID:My,MARKETPLACE_SERVER_URL:By,AUTH_URL:Fy,RPC_URL:$y,CREDITS_SERVER_URL:Dy,BUILDER_SERVER_URL:qy,BUILDER_URL:Uy,PEER_URL:Hy,PROFILE_URL:Vy,SHOP_SERVER_URL:zy,STRIPE_PUBLISHABLE_KEY:Gy,SEGMENT_WRITE_KEY:Wy,SENTRY_DSN:Zy},Yy="production",Qy="137",Jy="https://marketplace-api.decentraland.org",Xy="/auth",ev="https://rpc.decentraland.org/polygon",tv="https://credits.decentraland.org",rv="https://builder-api.decentraland.org",nv="https://decentraland.org/builder",av="https://peer.decentraland.org",sv="https://decentraland.org/profile",ov="",iv="",cv="",lv="",uv={ENVIRONMENT:Yy,CHAIN_ID:Qy,MARKETPLACE_SERVER_URL:Jy,AUTH_URL:Xy,RPC_URL:ev,CREDITS_SERVER_URL:tv,BUILDER_SERVER_URL:rv,BUILDER_URL:nv,PEER_URL:av,PROFILE_URL:sv,SHOP_SERVER_URL:ov,STRIPE_PUBLISHABLE_KEY:iv,SEGMENT_WRITE_KEY:cv,SENTRY_DSN:lv},dv={},Yt=by({[jr.DEVELOPMENT]:jy,[jr.STAGING]:Ky,[jr.PRODUCTION]:uv},{systemEnvVariables:{VITE_DCL_DEFAULT_ENV:"dev"}}),Nt=dv,He={marketplaceServerUrl:Nt.VITE_MARKETPLACE_SERVER_URL??Yt.get("MARKETPLACE_SERVER_URL"),chainId:Number(Nt.VITE_CHAIN_ID??Yt.get("CHAIN_ID")),authUrl:Nt.VITE_AUTH_URL??Yt.get("AUTH_URL"),rpcUrl:Nt.VITE_RPC_URL??Yt.get("RPC_URL"),creditsServerUrl:Nt.VITE_CREDITS_SERVER_URL??Yt.get("CREDITS_SERVER_URL"),builderServerUrl:Nt.VITE_BUILDER_SERVER_URL??Yt.get("BUILDER_SERVER_URL"),builderUrl:Nt.VITE_BUILDER_URL??Yt.get("BUILDER_URL"),peerUrl:Nt.VITE_PEER_URL??Yt.get("PEER_URL"),profileUrl:Nt.VITE_PROFILE_URL??Yt.get("PROFILE_URL"),shopServerUrl:Nt.VITE_SHOP_SERVER_URL??Yt.get("SHOP_SERVER_URL"),stripePublishableKey:Nt.VITE_STRIPE_PK??Yt.get("STRIPE_PUBLISHABLE_KEY"),segmentWriteKey:Nt.VITE_SEGMENT_WRITE_KEY??Yt.get("SEGMENT_WRITE_KEY"),sentryDsn:Nt.VITE_SENTRY_DSN??Yt.get("SENTRY_DSN"),sentryEnvironment:Nt.VITE_SENTRY_ENVIRONMENT??(Number(Nt.VITE_CHAIN_ID??Yt.get("CHAIN_ID"))===80002?"dev":"prod"),sentryRelease:Nt.VITE_SENTRY_RELEASE??`shop@${Nt.VITE_APP_VERSION??"0.0.0-dev"}`},fv=744*60;async function Wl(){return(await Et(async()=>{const{connection:e}=await import("./index-BR4zrdA9.js").then(t=>t.i);return{connection:e}},__vite__mapDeps([9,2,1,10]))).connection}async function hv(e){if(!e.account)throw new Error("No account returned by the wallet");const t=e.account.toLowerCase(),r=new M1(e.provider,"any"),n=r.getSigner();let a=yl.localStorageGetIdentity(t);if(!a){const s=B1.createRandom();a=await iy.Authenticator.initializeAuthChain(t,{address:s.address,publicKey:Lu(s.publicKey),privateKey:Lu(s.privateKey)},fv,o=>n.signMessage(o)),yl.localStorageStoreIdentity(t,a)}return{address:t,chainId:e.chainId,signer:n,web3Provider:r,identity:a,providerType:e.providerType}}function mv(){const e=encodeURIComponent(window.location.href);window.location.replace(`${He.authUrl}/login?redirectTo=${e}`)}async function pv(){try{const t=await(await Wl()).tryPreviousConnection();return!t.account||!yl.localStorageGetIdentity(t.account.toLowerCase())?null:await hv(t)}catch{return null}}async function i9(){var e;try{const t=await Wl();return await((e=t.getEmail)==null?void 0:e.call(t))??void 0}catch{return}}async function gv(){try{await(await Wl()).disconnect()}catch{}}const yv=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`s-${String(performance.now())}`,vv=He.chainId===80002?"amoy":"polygon",bv=He.chainId===80002?"dev":"prod";function Zl(){return window.analytics}function wv(){let e;try{e=Hn.getState().session}catch{e=null}return{address:(e==null?void 0:e.address)??null,is_signed_in:!!e,session_id:yv,network:vv,app_env:bv}}function hr(e,t={}){const r={...wv(),...t},n=Zl();n&&n.track(e,r)}function _v(e,t={}){const r=Zl();r&&r.identify(e.toLowerCase(),t)}function Cv(){const e=Zl();e!=null&&e.reset&&e.reset()}function Ev(e){hr("Shop Viewed Page",{page:e})}function H0(e){return e===rt.ProviderType.MAGIC||e===rt.ProviderType.MAGIC_TEST?"magic":"wallet"}function xv(e){const t=`shop:seen:${e.toLowerCase()}`;try{return localStorage.getItem(t)?!1:(localStorage.setItem(t,"1"),!0)}catch{return!1}}function ts(e){return Math.round(e*10)/100}function Kl(e){return!e.tokenId}function c9(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:ts(e.priceCredits),rarity:e.rarity,creator:e.creator||null,is_primary:Kl(e)}}function l9(e){const t=e.reduce((n,a)=>n+a.priceCredits,0),r=e.some(Kl);return{items:e.map(n=>({item_id:n.itemId??null,contract_address:n.contractAddress,token_id:n.tokenId??null,price_usd:ts(n.priceCredits)})),value_credits:t,value_usd:ts(t),purchase_type:r?"item":"nft_resale",is_primary:r}}function Sv(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 u9(e){return Sv(e)==="user_rejected"}function Tv(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=>(...a)=>(r.push([n,...a]),r);for(const n of r.methods)r[n]=r.factory(n);r.load=n=>{const a=document.createElement("script");a.async=!0,a.src=`https://cdn.segment.com/analytics.js/v1/${encodeURIComponent(n)}/analytics.min.js`,document.head.appendChild(a)},t.analytics=r,r.load(e),r.page()}let V0=!1;function Av(){if(V0)return;V0=!0;const e=He.segmentWriteKey;e&&Tv(e)}let vl=null;function kv(e){vl=e}function z0(e,t={}){const r=typeof t.flow=="string"?`error in ${t.flow}`:"error";if(console.error(`[shop] ${r}`,e,t),vl)try{vl(e,t)}catch{}}const Iv=/0x[a-fA-F0-9]{130}\b/g,Rv=/0x[a-fA-F0-9]{64}\b/g,Nv=/(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,Pv=/(signature|private|identity|authchain|auth_chain|ephemeral|token|secret|password|cookie|authorization)/i;function $a(e){return e.replace(Iv,"<signature>").replace(Nv,"<secret>").replace(Rv,"<hex32>")}function Ov(e){var r;e.message&&(e.message=$a(e.message));for(const n of((r=e.exception)==null?void 0:r.values)??[])n.value&&(n.value=$a(n.value));for(const n of e.breadcrumbs??[])n.message&&(n.message=$a(n.message));e.request&&(e.request.url&&(e.request.url=$a(e.request.url)),delete e.request.cookies,delete e.request.headers);const t=n=>{if(n)for(const a of Object.keys(n)){if(Pv.test(a)){delete n[a];continue}typeof n[a]=="string"&&(n[a]=$a(n[a]))}};return t(e.tags),t(e.extra),e}let G0=!1;function jv(){if(G0)return;const e=He.sentryDsn;if(!e)return;G0=!0,P1({dsn:e,environment:He.sentryEnvironment,release:He.sentryRelease,integrations:[new O1],tracesSampleRate:.01,sendDefaultPii:!1,ignoreErrors:[/user rejected/i,/user denied/i,"ResizeObserver loop limit exceeded"],beforeSend:Ov});const t=Lv();t&&j1({id:t}),kv((r,n)=>L1(r,{extra:n}))}function Lv(){var e;try{return((e=Hn.getState().session)==null?void 0:e.address)??null}catch{return null}}const W0="shop-favorites";let Po=null;const rh=e=>e?`${W0}:${e.toLowerCase()}`:W0;function Z0(e){var t;try{const r=localStorage.getItem(rh(e));if(!r)return{};const n=JSON.parse(r);if(!n||typeof n!="object")return{};const a=n,s="state"in n&&((t=a.state)!=null&&t.items)?a.state.items:n;return s&&typeof s=="object"?s:{}}catch{return{}}}function K0(e){try{localStorage.setItem(rh(Po),JSON.stringify(e))}catch{}}const Bo=Un(e=>({items:Z0(Po),toggle:t=>e(r=>{const n={...r.items};return n[t.id]?delete n[t.id]:n[t.id]=t,K0(n),{items:n}}),remove:t=>e(r=>{const n={...r.items};return delete n[t],K0(n),{items:n}}),reloadFor:t=>{Po=t?t.toLowerCase():null,e({items:Z0(Po)})}})),Y0="shop:followed-creators:v1",Mv=200;let Yl=null;const nh=e=>e?`${Y0}:${e.toLowerCase()}`:Y0;function Q0(){try{const e=localStorage.getItem(nh(Yl));if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"):[]}catch{return[]}}function J0(e){try{localStorage.setItem(nh(Yl),JSON.stringify(e))}catch{}}const bl=Un((e,t)=>({followed:Q0(),isFollowing:r=>t().followed.includes(r.toLowerCase()),follow:r=>{const n=r.toLowerCase();if(!n||t().followed.includes(n))return;const a=[n,...t().followed].slice(0,Mv);J0(a),e({followed:a}),hr("Shop Followed Creator",{creator_address:n,following_count:a.length})},unfollow:r=>{const n=r.toLowerCase();if(!t().followed.includes(n))return;const a=t().followed.filter(s=>s!==n);J0(a),e({followed:a}),hr("Shop Unfollowed Creator",{creator_address:n,following_count:a.length})},toggle:r=>t().isFollowing(r)?t().unfollow(r):t().follow(r),reloadFor:r=>{Yl=r?r.toLowerCase():null,e({followed:Q0()})}})),Li="shop:signing_in",Hn=Un(e=>({session:null,connecting:!1,error:null,signIn:()=>{try{sessionStorage.setItem(Li,"1")}catch{}mv()},disconnect:async()=>{hr("Shop Signed Out");try{await gv()}catch(t){z0(t,{flow:"wallet",step:"disconnect"})}Cv(),Bo.getState().reloadFor(null),bl.getState().reloadFor(null),e({session:null})},restore:async()=>{let t;try{t=await pv()}catch(n){z0(n,{flow:"wallet",step:"restore"});return}if(!t)return;e({session:t}),Bo.getState().reloadFor(t.address),bl.getState().reloadFor(t.address),_v(t.address,{sign_in_method:H0(t.providerType)});let r=!1;try{r=sessionStorage.getItem(Li)==="1",r&&sessionStorage.removeItem(Li)}catch{}r&&hr("Shop Signed In",{method:H0(t.providerType),is_new_user:xv(t.address)})}}));async function ah(e){var n;const t=await fetch(`${He.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 ys(e){return Yr({queryKey:["profile",e],enabled:!!e,staleTime:5*6e4,queryFn:()=>ah(e)})}var Vr={},Mi={},X0;function sh(){return X0||(X0=1,Object.defineProperty(Mi,"__esModule",{value:!0})),Mi}var zr={},Tr={},Jn={},Tn={},ed={},Da,td;function vr(){if(td)return Da;td=1;var e=function(t){return t&&t.Math===Math&&t};return Da=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof zc=="object"&&zc)||e(typeof Da=="object"&&Da)||(function(){return this})()||Function("return this")(),Da}var Bi,rd;function Vn(){return rd||(rd=1,Bi=function(e){try{return!!e()}catch{return!0}}),Bi}var Fi,nd;function Zo(){if(nd)return Fi;nd=1;var e=Vn();return Fi=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Fi}var $i,ad;function Bv(){if(ad)return $i;ad=1;var e=Zo(),t=Function.prototype,r=t.apply,n=t.call;return $i=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),$i}var Di,sd;function Ia(){if(sd)return Di;sd=1;var e=Zo(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Di=e?n:function(a){return function(){return r.apply(a,arguments)}},Di}var qi,od;function oh(){if(od)return qi;od=1;var e=Ia(),t=e({}.toString),r=e("".slice);return qi=function(n){return r(t(n),8,-1)},qi}var Ui,id;function ih(){if(id)return Ui;id=1;var e=oh(),t=Ia();return Ui=function(r){if(e(r)==="Function")return t(r)},Ui}var Hi,cd;function zn(){if(cd)return Hi;cd=1;var e=typeof document=="object"&&document.all;return Hi=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Hi}var Vi={},zi,ld;function vs(){if(ld)return zi;ld=1;var e=Vn();return zi=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),zi}var Gi,ud;function Ql(){if(ud)return Gi;ud=1;var e=Zo(),t=Function.prototype.call;return Gi=e?t.bind(t):function(){return t.apply(t,arguments)},Gi}var Wi={},dd;function Fv(){if(dd)return Wi;dd=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Wi.f=r?function(a){var s=t(this,a);return!!s&&s.enumerable}:e,Wi}var Zi,fd;function ch(){return fd||(fd=1,Zi=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Zi}var Ki,hd;function $v(){if(hd)return Ki;hd=1;var e=Ia(),t=Vn(),r=oh(),n=Object,a=e("".split);return Ki=t(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?a(s,""):n(s)}:n,Ki}var Yi,md;function lh(){return md||(md=1,Yi=function(e){return e==null}),Yi}var Qi,pd;function uh(){if(pd)return Qi;pd=1;var e=lh(),t=TypeError;return Qi=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Qi}var Ji,gd;function Dv(){if(gd)return Ji;gd=1;var e=$v(),t=uh();return Ji=function(r){return e(t(r))},Ji}var Xi,yd;function Ko(){if(yd)return Xi;yd=1;var e=zn();return Xi=function(t){return typeof t=="object"?t!==null:e(t)},Xi}var ec,vd;function dh(){return vd||(vd=1,ec={}),ec}var tc,bd;function qv(){if(bd)return tc;bd=1;var e=dh(),t=vr(),r=zn(),n=function(a){return r(a)?a:void 0};return tc=function(a,s){return arguments.length<2?n(e[a])||n(t[a]):e[a]&&e[a][s]||t[a]&&t[a][s]},tc}var rc,wd;function Uv(){if(wd)return rc;wd=1;var e=Ia();return rc=e({}.isPrototypeOf),rc}var nc,_d;function Hv(){if(_d)return nc;_d=1;var e=vr(),t=e.navigator,r=t&&t.userAgent;return nc=r?String(r):"",nc}var ac,Cd;function Vv(){if(Cd)return ac;Cd=1;var e=vr(),t=Hv(),r=e.process,n=e.Deno,a=r&&r.versions||n&&n.version,s=a&&a.v8,o,u;return s&&(o=s.split("."),u=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!u&&t&&(o=t.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=t.match(/Chrome\/(\d+)/),o&&(u=+o[1]))),ac=u,ac}var sc,Ed;function fh(){if(Ed)return sc;Ed=1;var e=Vv(),t=Vn(),r=vr(),n=r.String;return sc=!!Object.getOwnPropertySymbols&&!t(function(){var a=Symbol("symbol detection");return!n(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&e&&e<41}),sc}var oc,xd;function hh(){if(xd)return oc;xd=1;var e=fh();return oc=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",oc}var ic,Sd;function mh(){if(Sd)return ic;Sd=1;var e=qv(),t=zn(),r=Uv(),n=hh(),a=Object;return ic=n?function(s){return typeof s=="symbol"}:function(s){var o=e("Symbol");return t(o)&&r(o.prototype,a(s))},ic}var cc,Td;function zv(){if(Td)return cc;Td=1;var e=String;return cc=function(t){try{return e(t)}catch{return"Object"}},cc}var lc,Ad;function ph(){if(Ad)return lc;Ad=1;var e=zn(),t=zv(),r=TypeError;return lc=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},lc}var uc,kd;function Gv(){if(kd)return uc;kd=1;var e=ph(),t=lh();return uc=function(r,n){var a=r[n];return t(a)?void 0:e(a)},uc}var dc,Id;function Wv(){if(Id)return dc;Id=1;var e=Ql(),t=zn(),r=Ko(),n=TypeError;return dc=function(a,s){var o,u;if(s==="string"&&t(o=a.toString)&&!r(u=e(o,a))||t(o=a.valueOf)&&!r(u=e(o,a))||s!=="string"&&t(o=a.toString)&&!r(u=e(o,a)))return u;throw new n("Can't convert object to primitive value")},dc}var fc={exports:{}},hc,Rd;function Zv(){return Rd||(Rd=1,hc=!0),hc}var mc,Nd;function Kv(){if(Nd)return mc;Nd=1;var e=vr(),t=Object.defineProperty;return mc=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},mc}var Pd;function Yv(){if(Pd)return fc.exports;Pd=1;var e=Zv(),t=vr(),r=Kv(),n="__core-js_shared__",a=fc.exports=t[n]||r(n,{});return(a.versions||(a.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"}),fc.exports}var pc,Od;function Qv(){if(Od)return pc;Od=1;var e=Yv();return pc=function(t,r){return e[t]||(e[t]=r||{})},pc}var gc,jd;function Jv(){if(jd)return gc;jd=1;var e=uh(),t=Object;return gc=function(r){return t(e(r))},gc}var yc,Ld;function Jl(){if(Ld)return yc;Ld=1;var e=Ia(),t=Jv(),r=e({}.hasOwnProperty);return yc=Object.hasOwn||function(a,s){return r(t(a),s)},yc}var vc,Md;function Xv(){if(Md)return vc;Md=1;var e=Ia(),t=0,r=Math.random(),n=e(1.1.toString);return vc=function(a){return"Symbol("+(a===void 0?"":a)+")_"+n(++t+r,36)},vc}var bc,Bd;function e3(){if(Bd)return bc;Bd=1;var e=vr(),t=Qv(),r=Jl(),n=Xv(),a=fh(),s=hh(),o=e.Symbol,u=t("wks"),f=s?o.for||o:o&&o.withoutSetter||n;return bc=function(h){return r(u,h)||(u[h]=a&&r(o,h)?o[h]:f("Symbol."+h)),u[h]},bc}var wc,Fd;function t3(){if(Fd)return wc;Fd=1;var e=Ql(),t=Ko(),r=mh(),n=Gv(),a=Wv(),s=e3(),o=TypeError,u=s("toPrimitive");return wc=function(f,h){if(!t(f)||r(f))return f;var p=n(f,u),m;if(p){if(h===void 0&&(h="default"),m=e(p,f,h),!t(m)||r(m))return m;throw new o("Can't convert object to primitive value")}return h===void 0&&(h="number"),a(f,h)},wc}var _c,$d;function gh(){if($d)return _c;$d=1;var e=t3(),t=mh();return _c=function(r){var n=e(r,"string");return t(n)?n:n+""},_c}var Cc,Dd;function r3(){if(Dd)return Cc;Dd=1;var e=vr(),t=Ko(),r=e.document,n=t(r)&&t(r.createElement);return Cc=function(a){return n?r.createElement(a):{}},Cc}var Ec,qd;function yh(){if(qd)return Ec;qd=1;var e=vs(),t=Vn(),r=r3();return Ec=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Ec}var Ud;function n3(){if(Ud)return Vi;Ud=1;var e=vs(),t=Ql(),r=Fv(),n=ch(),a=Dv(),s=gh(),o=Jl(),u=yh(),f=Object.getOwnPropertyDescriptor;return Vi.f=e?f:function(p,m){if(p=a(p),m=s(m),u)try{return f(p,m)}catch{}if(o(p,m))return n(!t(r.f,p,m),p[m])},Vi}var xc,Hd;function a3(){if(Hd)return xc;Hd=1;var e=Vn(),t=zn(),r=/#|\.prototype\./,n=function(f,h){var p=s[a(f)];return p===u?!0:p===o?!1:t(h)?e(h):!!h},a=n.normalize=function(f){return String(f).replace(r,".").toLowerCase()},s=n.data={},o=n.NATIVE="N",u=n.POLYFILL="P";return xc=n,xc}var Sc,Vd;function s3(){if(Vd)return Sc;Vd=1;var e=ih(),t=ph(),r=Zo(),n=e(e.bind);return Sc=function(a,s){return t(a),s===void 0?a:r?n(a,s):function(){return a.apply(s,arguments)}},Sc}var Tc={},Ac,zd;function o3(){if(zd)return Ac;zd=1;var e=vs(),t=Vn();return Ac=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Ac}var kc,Gd;function i3(){if(Gd)return kc;Gd=1;var e=Ko(),t=String,r=TypeError;return kc=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},kc}var Wd;function c3(){if(Wd)return Tc;Wd=1;var e=vs(),t=yh(),r=o3(),n=i3(),a=gh(),s=TypeError,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";return Tc.f=e?r?function(g,_,x){if(n(g),_=a(_),n(x),typeof g=="function"&&_==="prototype"&&"value"in x&&p in x&&!x[p]){var y=u(g,_);y&&y[p]&&(g[_]=x.value,x={configurable:h in x?x[h]:y[h],enumerable:f in x?x[f]:y[f],writable:!1})}return o(g,_,x)}:o:function(g,_,x){if(n(g),_=a(_),n(x),t)try{return o(g,_,x)}catch{}if("get"in x||"set"in x)throw new s("Accessors not supported");return"value"in x&&(g[_]=x.value),g},Tc}var Ic,Zd;function l3(){if(Zd)return Ic;Zd=1;var e=vs(),t=c3(),r=ch();return Ic=e?function(n,a,s){return t.f(n,a,r(1,s))}:function(n,a,s){return n[a]=s,n},Ic}var Rc,Kd;function u3(){if(Kd)return Rc;Kd=1;var e=vr(),t=Bv(),r=ih(),n=zn(),a=n3().f,s=a3(),o=dh(),u=s3(),f=l3(),h=Jl(),p=function(m){var g=function(_,x,y){if(this instanceof g){switch(arguments.length){case 0:return new m;case 1:return new m(_);case 2:return new m(_,x)}return new m(_,x,y)}return t(m,this,arguments)};return g.prototype=m.prototype,g};return Rc=function(m,g){var _=m.target,x=m.global,y=m.stat,k=m.proto,G=x?e:y?e[_]:e[_]&&e[_].prototype,v=x?o:o[_]||f(o,_,{})[_],A=v.prototype,w,K,H,S,U,Q,ee,ae,J;for(S in g)w=s(x?S:_+(y?".":"#")+S,m.forced),K=!w&&G&&h(G,S),Q=v[S],K&&(m.dontCallGetSet?(J=a(G,S),ee=J&&J.value):ee=G[S]),U=K&&ee?ee:g[S],!(!w&&!k&&typeof Q==typeof U)&&(m.bind&&K?ae=u(U,e):m.wrap&&K?ae=p(U):k&&n(U)?ae=r(U):ae=U,(m.sham||U&&U.sham||Q&&Q.sham)&&f(ae,"sham",!0),f(v,S,ae),k&&(H=_+"Prototype",h(o,H)||f(o,H,{}),f(o[H],S,U),m.real&&A&&(w||!A[S])&&f(A,S,U)))},Rc}var Yd;function d3(){if(Yd)return ed;Yd=1;var e=u3(),t=vr();return e({global:!0,forced:t.globalThis!==t},{globalThis:t}),ed}var Nc,Qd;function f3(){return Qd||(Qd=1,d3(),Nc=vr()),Nc}var Pc,Jd;function h3(){if(Jd)return Pc;Jd=1;var e=f3();return Pc=e,Pc}var Xd;function vh(){if(Xd)return Tn;Xd=1;var e=Tn&&Tn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.getImplementation=void 0;var t=e(h3());function r(n,a){var s,o=(s=n[a])!==null&&s!==void 0?s:t.default[a];if(!o)throw new ReferenceError('"'+a+'" is not defined');return o}return Tn.getImplementation=r,Tn}var e2;function bh(){if(e2)return Jn;e2=1;var e=Jn&&Jn.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,h=f&&u[f],p=0;if(h)return h.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&p>=u.length&&(u=void 0),{value:u&&u[p++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Jn,"__esModule",{value:!0});var t=Qf(),r=vh(),n="x-identity-auth-chain-",a="x-identity-timestamp",s="x-identity-metadata";function o(u){u===void 0&&(u={});var f=(0,r.getImplementation)(u,"Headers");return function(p,m,g,_,x){var y,k,G=new f(x),v=String(Date.now()),A=JSON.stringify(_),w=[m,g,v,A].join(":").toLowerCase(),K=0,H=t.Authenticator.signPayload(p,w);try{for(var S=e(H),U=S.next();!U.done;U=S.next()){var Q=U.value;G.set(n+K,JSON.stringify(Q)),K++}}catch(ee){y={error:ee}}finally{try{U&&!U.done&&(k=S.return)&&k.call(S)}finally{if(y)throw y.error}}return G.set(a,v),G.set(s,A),G}}return Jn.default=o,Jn}var t2;function wh(){if(t2)return Tr;t2=1;var e=Tr&&Tr.__assign||function(){return e=Object.assign||function(o){for(var u,f=1,h=arguments.length;f<h;f++){u=arguments[f];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(o[p]=u[p])}return o},e.apply(this,arguments)},t=Tr&&Tr.__rest||function(o,u){var f={};for(var h in o)Object.prototype.hasOwnProperty.call(o,h)&&u.indexOf(h)<0&&(f[h]=o[h]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,h=Object.getOwnPropertySymbols(o);p<h.length;p++)u.indexOf(h[p])<0&&Object.prototype.propertyIsEnumerable.call(o,h[p])&&(f[h[p]]=o[h[p]]);return f},r=Tr&&Tr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Tr,"__esModule",{value:!0});var n=r(bh()),a=vh();function s(o){o===void 0&&(o={});var u=(0,n.default)(o),f=(0,a.getImplementation)(o,"URL"),h=(0,a.getImplementation)(o,"Request"),p=(0,a.getImplementation)(o,"fetch");return function(g,_){if(_&&_.identity){var x=_.identity,y=_.metadata,k=t(_,["identity","metadata"]);if(typeof g=="string"||g instanceof f||globalThis.URL&&g instanceof globalThis.URL){var G=typeof g=="string"?new f(g):g,v=new h(G.toString(),e(e({},k),{headers:u(x,_.method||"GET",G.pathname,y||{},k==null?void 0:k.headers)}));return p(v)}var A=new f(g.url),w=new h(g),K=u(x,g.method||"GET",A.pathname,y||{});return K.forEach(function(H,S){w.headers.set(S,H)}),p(w)}return p(g,_)}}return Tr.default=s,Tr}var r2;function m3(){return r2||(r2=1,(function(e){var t=zr&&zr.__createBinding||(Object.create?(function(o,u,f,h){h===void 0&&(h=f),Object.defineProperty(o,h,{enumerable:!0,get:function(){return u[f]}})}):(function(o,u,f,h){h===void 0&&(h=f),o[h]=u[f]})),r=zr&&zr.__exportStar||function(o,u){for(var f in o)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&t(u,o,f)},n=zr&&zr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.signedHeaderFactory=e.signedFetchFactory=void 0,r(sh(),e);var a=wh();Object.defineProperty(e,"signedFetchFactory",{enumerable:!0,get:function(){return n(a).default}});var s=bh();Object.defineProperty(e,"signedHeaderFactory",{enumerable:!0,get:function(){return n(s).default}})})(zr)),zr}var n2;function p3(){return n2||(n2=1,(function(e){var t=Vr&&Vr.__createBinding||(Object.create?(function(s,o,u,f){f===void 0&&(f=u),Object.defineProperty(s,f,{enumerable:!0,get:function(){return o[u]}})}):(function(s,o,u,f){f===void 0&&(f=u),s[f]=o[u]})),r=Vr&&Vr.__exportStar||function(s,o){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(o,u)&&t(o,s,u)},n=Vr&&Vr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),r(sh(),e),r(m3(),e);var a=n(wh());e.default=(0,a.default)()})(Vr)),Vr}var g3=p3();const Yo=Do(g3);async function y3(e,t){const r=`${He.creditsServerUrl}/users/${e.toLowerCase()}/credits`,n=await Yo(r,{method:"GET",identity:t,metadata:{}});if(!n.ok)throw new Error(`getUserCredits ${n.status}: ${await n.text()}`);return n.json()}async function v3(e,t){const{usd:r}=await y3(e,t);return r??{balanceCents:0,credits:0}}async function d9(e,t,r){const n=`${He.creditsServerUrl}/credits/authorize`,a=await Yo(n,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({usdPriceCents:t,tradeId:r})});if(!a.ok)throw new Error(`authorizeUsdCredit ${a.status}: ${await a.text()}`);return a.json()}async function f9(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 a=n.toString(),s=`${He.creditsServerUrl}/users/${e.toLowerCase()}/purchases${a?`?${a}`:""}`,o=await Yo(s,{method:"GET",identity:t,metadata:{}});if(!o.ok)throw new Error(`fetchUserPurchases ${o.status}: ${await o.text()}`);const u=await o.json(),f=(u.purchases??[]).map(g=>({...g,txHash:g.txHash??g.transactionHash??null})),h=(r==null?void 0:r.skip)??0,p=r==null?void 0:r.first,m=typeof u.total=="number"?u.total:h+f.length+(f.length>=p?1:0);return{items:f,total:m}}async function h9(e,t){if(t.length===0)return 0;const r=`${He.creditsServerUrl}/credits/authorize/cancel`,n=await Yo(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 m9(e,t=1e3){const r=await fetch(`${He.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 b3(e){return Yr({queryKey:["usd-balance",e==null?void 0:e.address],enabled:!!e,staleTime:3e4,queryFn:async()=>v3(e.address,e.identity)})}function w3(e,t){return t?"—":(e==null?void 0:e.credits)??0}const _3={};function _h(e,t){let r;try{r=e()}catch{return}return{getItem:a=>{var s;const o=f=>f===null?null:JSON.parse(f,void 0),u=(s=r.getItem(a))!=null?s:null;return u instanceof Promise?u.then(o):o(u)},setItem:(a,s)=>r.setItem(a,JSON.stringify(s,void 0)),removeItem:a=>r.removeItem(a)}}const rs=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return rs(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return rs(n)(r)}}}},C3=(e,t)=>(r,n,a)=>{let s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:k=>k,version:0,merge:(k,G)=>({...G,...k}),...t},o=!1;const u=new Set,f=new Set;let h;try{h=s.getStorage()}catch{}if(!h)return e((...k)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...k)},n,a);const p=rs(s.serialize),m=()=>{const k=s.partialize({...n()});let G;const v=p({state:k,version:s.version}).then(A=>h.setItem(s.name,A)).catch(A=>{G=A});if(G)throw G;return v},g=a.setState;a.setState=(k,G)=>{g(k,G),m()};const _=e((...k)=>{r(...k),m()},n,a);let x;const y=()=>{var k;if(!h)return;o=!1,u.forEach(v=>v(n()));const G=((k=s.onRehydrateStorage)==null?void 0:k.call(s,n()))||void 0;return rs(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 A;return x=s.merge(v,(A=n())!=null?A:_),r(x,!0),m()}).then(()=>{G==null||G(x,void 0),o=!0,f.forEach(v=>v(x))}).catch(v=>{G==null||G(void 0,v)})};return a.persist={setOptions:k=>{s={...s,...k},k.getStorage&&(h=k.getStorage())},clearStorage:()=>{h==null||h.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>y(),hasHydrated:()=>o,onHydrate:k=>(u.add(k),()=>{u.delete(k)}),onFinishHydration:k=>(f.add(k),()=>{f.delete(k)})},y(),x||_},E3=(e,t)=>(r,n,a)=>{let s={storage:_h(()=>localStorage),partialize:y=>y,version:0,merge:(y,k)=>({...k,...y}),...t},o=!1;const u=new Set,f=new Set;let h=s.storage;if(!h)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...y)},n,a);const p=()=>{const y=s.partialize({...n()});return h.setItem(s.name,{state:y,version:s.version})},m=a.setState;a.setState=(y,k)=>{m(y,k),p()};const g=e((...y)=>{r(...y),p()},n,a);a.getInitialState=()=>g;let _;const x=()=>{var y,k;if(!h)return;o=!1,u.forEach(v=>{var A;return v((A=n())!=null?A:g)});const G=((k=s.onRehydrateStorage)==null?void 0:k.call(s,(y=n())!=null?y:g))||void 0;return rs(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 A;const[w,K]=v;if(_=s.merge(K,(A=n())!=null?A:g),r(_,!0),w)return p()}).then(()=>{G==null||G(_,void 0),_=n(),o=!0,f.forEach(v=>v(_))}).catch(v=>{G==null||G(void 0,v)})};return a.persist={setOptions:y=>{s={...s,...y},y.storage&&(h=y.storage)},clearStorage:()=>{h==null||h.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>x(),hasHydrated:()=>o,onHydrate:y=>(u.add(y),()=>{u.delete(y)}),onFinishHydration:y=>(f.add(y),()=>{f.delete(y)})},s.skipHydration||x(),_||g},x3=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((_3?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),C3(e,t)):E3(e,t),S3=x3,za=e=>!e.tokenId,Oc=e=>typeof e.available=="number"?e.available:1/0,T3=e=>ts(e.reduce((t,r)=>t+r.priceCredits*r.quantity,0)),jc=e=>{const t=Math.floor(e.quantity??1),r=za(e)?Math.max(1,Number.isFinite(t)?t:1):1;return{...e,quantity:r}},Ht=Un()(S3((e,t)=>({items:[],open:!1,justAddedCount:0,fittingOpen:!1,add:(r,n="grid")=>{const a=za(r),s=t().items.find(u=>u.id===r.id);if(s&&!a){e({open:!0});return}if(s&&s.quantity>=Oc(s)){e({open:!0});return}e(u=>s?{items:u.items.map(f=>f.id===r.id?{...f,quantity:f.quantity+1}:f),open:!0,justAddedCount:(u.open?u.justAddedCount:0)+1}:{items:[...u.items,jc(r)],open:!0,justAddedCount:(u.open?u.justAddedCount:0)+1});const o=t().items;hr("Shop Added To Cart",{item_id:r.itemId??null,contract_address:r.contractAddress,price_credits:r.priceCredits,price_usd:ts(r.priceCredits),is_primary:a,source:n,cart_size:o.length,cart_value_usd:T3(o)})},remove:r=>{const n=t().items.find(a=>a.id===r);e(a=>({items:a.items.filter(s=>s.id!==r)})),n&&hr("Shop Removed From Cart",{item_id:n.itemId??null,cart_size:t().items.length})},setQuantity:(r,n)=>e(a=>({items:a.items.map(s=>{if(s.id!==r||!za(s))return s;const o=Math.max(1,Math.min(Math.floor(n),Oc(s)));return{...s,quantity:Number.isFinite(o)?o:1}})})),increment:r=>e(n=>({items:n.items.map(a=>a.id===r&&za(a)&&a.quantity<Oc(a)?{...a,quantity:a.quantity+1}:a)})),decrement:r=>e(n=>({items:n.items.map(a=>a.id===r&&za(a)&&a.quantity>1?{...a,quantity:a.quantity-1}:a)})),clear:()=>e({items:[]}),restore:r=>e(n=>n.items.length?{}:{items:r.map(jc)}),setOpen:r=>e({open:r,justAddedCount:0}),setFittingOpen:r=>e(r?{fittingOpen:r,open:!1}:{fittingOpen:r})}),{name:"dcl_shop_cart",version:2,storage:_h(()=>localStorage),partialize:e=>({items:e.items}),migrate:e=>{const t=e;return t!=null&&t.items?{items:t.items.map(jc)}:t}})),Sa={name:"credits",nameSingular:"credit",symbol:"◈",iconName:"credits"};function p9(e){return`${e} ${e===1?Sa.nameSingular:Sa.name}`}const A3=Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2});function Wr(e){return A3.format(e)}function on(e){return e.toLocaleString("en")}function Xt({className:e}){return d.jsx(ct,{name:Sa.iconName,className:e})}function Ch(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function k3(e){$1(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var I3=kn(kn({},F1),{textComponent:ne.Fragment});function R3(e){return function(t){return e(ne.Children.toArray(t))}}var Xl=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=ne.createContext(null)):ne.createContext(null);Xl.Consumer;var N3=Xl.Provider,P3=N3,O3=Xl;function Eh(){var e=ne.useContext(O3);return k3(e),e}var wl;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(wl||(wl={}));var _l;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(_l||(_l={}));function xh(e){var t=function(r){var n=Eh(),a=r.value,s=r.children,o=Rl(r,["value","children"]),u=typeof a=="string"?new Date(a||0):a,f=e==="formatDate"?n.formatDateToParts(u,o):n.formatTimeToParts(u,o);return s(f)};return t.displayName=_l[e],t}function bs(e){var t=function(r){var n=Eh(),a=r.value,s=r.children,o=Rl(r,["value","children"]),u=n[e](a,o);if(typeof s=="function")return s(u);var f=n.textComponent||ne.Fragment;return ne.createElement(f,null,u)};return t.displayName=wl[e],t}function Sh(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=q1(n)?R3(n):n,t},{})}var a2=function(e,t,r,n){for(var a=[],s=4;s<arguments.length;s++)a[s-4]=arguments[s];var o=Sh(n),u=U1.apply(void 0,H1([e,t,r,o],a,!1));return Array.isArray(u)?ne.Children.toArray(u):u},j3=function(e,t){var r=e.defaultRichTextElements,n=Rl(e,["defaultRichTextElements"]),a=Sh(r),s=D1(kn(kn(kn({},I3),n),{defaultRichTextElements:a}),t),o={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:a};return kn(kn({},s),{formatMessage:a2.bind(null,o,s.formatters),$t:a2.bind(null,o,s.formatters)})};bs("formatDate");bs("formatTime");bs("formatNumber");bs("formatList");bs("formatDisplayName");xh("formatDate");xh("formatTime");const L3={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."},M3={overview:"Overview",collectibles:"Collectibles",myAssets:"My Assets",myFavorites:"My Favorites",activity:"Activity",authorizations:"Approvals",searchPlaceholder:"Search items…",searchAria:"Search the shop",yourBalance:"Your {currency}",getCredits:"Get {currency}",cart:"Cart"},B3={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}"},F3={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}"},$3={viewCollection:"View collection",itemCount:"{count, plural, one {# Item} other {# Items}}"},D3={shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",names:"NAMEs",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"},q3={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}"},U3={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}"},H3={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"},V3={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",decreaseQuantity:"Decrease quantity of {name}",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…",signInHint:"You'll be asked to sign in first.",priceChanged:"Prices or availability changed since you added these — review the updated total and confirm to buy.",allUnavailable:"None of these items are available anymore. Remove them to keep shopping.",availability:{soldOut:"Sold out",unavailable:"No longer available"},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."}},z3={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}",packsLoading:"Loading {currency} packs…",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."},G3={price:"Price",status:"Status",statusAll:"All",onSale:"On Sale",notForSale:"Not for Sale",smart:"Smart",smartHint:"Smart wearables add interactive, in-world utility."},W3={sale:"SALE",saleWithDiscount:"SALE -{pct}%",smart:"Smart",addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites",marketPrice:"Market price",onSaleCount:"{count, plural, one {# on sale} other {# on sale}}",unavailable:"Unavailable",buyNow:"Buy now",yourItem:"Your item",manage:"Manage",inCart:"In cart",addToCart:"Add to cart",notForSale:"Not for Sale",view:"View"},Z3={label:"Notify me when available",placeholder:"Enter your email",cta:"Notify me",working:"Sending…",signInCta:"Sign in to get notified",subscribedTitle:"You're on the list",subscribedBody:"You'll be notified when it's available again.",error:"Couldn't save that — please try again."},K3={cta:"Make an offer",comingSoon:"Coming soon — you'll be able to make an offer on items that aren't for sale."},Y3={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 your purchase…",confirmToContinue:"Confirm to continue…",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."}},Q3={titleBuy:"Buy Assets",titleNoFunds:"Buy Credits and Items",dialogAria:"Check out your cart",qty:"× {count}",preparing:"Preparing your purchase…",errorTitle:"Oops! Something went wrong",errorHeadline:"We couldn't complete your purchase this time.",errorBody:"Don't worry, your credits are safe. Please try again in a moment.",tryAgain:"Try again"},J3={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."}},X3={genderMale:"Male",genderFemale:"Female",genderUnisex:"Unisex",categoryEmote:"Emote",categoryWearable:"Wearable",moreFromCollection:"More from this collection",notForSale:"Not for sale",checking:"Checking…",maxInCart:"Max in cart",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",outOfStock:"Out of stock",notForSaleHint:"This item isn't listed for sale right now. Get notified when it becomes available.",ownItemPrefix:"This is your item — manage it in",ownItemSuffix:".",manageList:"List for sale",manageUpdatePrice:"Update price",manageRemove:"Remove from sale",manageWorking:"Working…"},eb={title:"Resellers",subtitle:"Other copies of this item on sale right now.",copy:"Open resale",seller:"Seller",serialLabel:"Copy",serialOf:"of",yourListing:"Your listing",showMore:"See more",legacyTitle:"Also on the classic marketplace",legacyNote:"These copies aren't available to buy here — open the classic marketplace to purchase them.",classicBadge:"Classic marketplace",viewOnMarketplace:"View on Marketplace"},tb={finalizing:"Finalizing your purchase…",processing:"Processing your purchase…",indexingBefore:"Payment confirmed — adding",indexingAfter:"to your wardrobe. Almost there.",confirmingBefore:"Confirming",confirmingAfter:"— this usually takes a few seconds. Keep this tab open.",itemCount:"{count, plural, one {# item} other {# items}}",viewTransaction:"View receipt ↗",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.",viewActivity:"View your activity",keepShopping:"Keep shopping",failedTitle:"Your purchase didn’t go through",failedBody:"The purchase couldn’t be completed, 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",bannerTitle:"Your purchase was successful!",bannerBody:"You can find your item in the My Assets tab.",myAssets:"My Assets",tryInWorld:"Try in World"},rb={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"},nb={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",showItems:"Show items",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."},ab={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 from sale",putOnSale:"Put on sale",ownedEmpty:"Items you own will show up here. Explore the shop and start your collection.",namesEmpty:"Claim a unique NAME to stand out in Decentraland — it’ll appear here once it’s yours.",emptyOwnedTitle:"Nothing here yet",emptyNamesTitle:"No NAMEs yet",emptyCreationsTitle:"No creations yet",emptyBrowse:"Browse Collectibles",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",assetsHeading:"Assets",sectionWearables:"Wearables",sectionEmotes:"Emotes",sectionNames:"Names",sectionCreations:"My Creations",searchPlaceholder:"Search your items",clearSearch:"Clear search"},sb={filter:{all:"All",purchases:"Purchases",sales:"Sales"},processing:"Processing",completed:"Completed",sold:"Sold",purchaseLabel:"Purchase",saleLabel:"Sale",soldTo:"Sold to {account}",approxValue:"Approximate value in credits",itemFallback:"Item",signInTitle:"Sign in to see your activity",signInBody:"Your purchases and sales show up here once you sign in.",emptyAllTitle:"No activity yet",emptyAllBody:"Your purchases and sales will appear here.",emptyPurchasesTitle:"No purchases yet",emptyPurchasesBody:"When you buy something it’ll appear here.",emptySalesTitle:"No sales yet",emptySalesBody:"When someone buys one of your items it’ll appear here.",itemCount:"{count, plural, one {# item} other {# items}}",quantity:"×{count}"},ob={emptyTitle:"No favorites yet",emptyBody:"Tap the heart on any item to save it here.",itemCount:"{count, plural, one {# item} other {# items}}"},ib={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."},cb={crash:{title:"Something went wrong",body:"This page hit an unexpected error. Try reloading.",reload:"Reload"}},lb={removeFromCart:"Remove {name} from cart",increaseQuantity:"Increase quantity",decreaseQuantity:"Decrease quantity of {name}",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"},ub={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",removeFilter:"Remove {filter} filter"},db={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"},fb={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"},hb={viewAll:"View all",scrollLeft:"Scroll left",scrollRight:"Scroll right",pages:"Carousel pages",goToPage:"Go to page {page}"},mb={title:"Week Top Creators",thisWeek:"This Week",rank:"Rank",creator:"Creator",collections:"Collections",sales:"Sales",volume:"Volume"},pb={loading:"Loading…",loadMore:"Load more"},gb={title:"Recently viewed"},yb={title:"From creators you follow"},vb={loading:"Loading"},bb={label:"Purchase successful"},wb={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})"},_b={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"},Cb={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…"},Eb={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"},xb={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"},Sb={male:"Male",female:"Female"},Tb={breadcrumbAria:"Breadcrumb",breadcrumbCollectibles:"Collectibles",breadcrumbCurrent:"NAMEs",heroTitle:"Get your unique NAME!",heroSubtitle:"Activate the full potential of Decentraland citizenship with a unique NAME & your own World!",inputPlaceholder:"yourname",inputAria:"Search for a NAME",suffix:".dcl.eth",claim:"Claim name",checking:"Checking availability…",available:"{name} is available!",taken:"This NAME is taken. Choose another NAME or make an offer to the owner.",takenMakeOffer:"Make offer",tooShort:"Names must be at least {min} characters.",checkError:"We couldn’t check that NAME right now — you can still try to claim it.",whyTitle:"Why buy a NAME?",why1:"Stand out with a unique alias for your Avatar",why2:"Unlock your World and customize your own virtual 3D space to host events",why2Link:"Learn More",why3:"A dedicated URL for your virtual spaces to guide visitors with an exclusive URL to your LAND",why3Link:"http://yourname.dcl.eth",buyTitle:"Buy NAME",myCreditsBalance:"My Credits Balance:",subtitle:"Decentraland NAMEs",confirmTitle:"Please confirm your NAME",confirmBody:"You’ve selected {name}. Re-enter the NAME to confirm your selection and continue with your purchase.",reenterAria:"Re-enter the NAME to confirm",buyCta:"Buy NAME",completing:"Completing your purchase…",confirming:"Confirm to continue…",successHeaderTitle:"Purchase complete!",successBannerBold:"Your purchase was successful!",successBannerRest:"You can find your NAME in the My Items tab.",myItems:"My Items",assignToAvatar:"Assign NAME to avatar",errorTitle:"Something went wrong",errorGeneric:"We couldn’t complete your purchase. Please try again.",tryAgain:"Try again"},Ab={title:"Approvals",intro:"One-time approvals let the Shop act on your behalf. You stay in control — turn any of them off whenever you like.",buyingTitle:"For buying",sellingTitle:"For selling",creditsName:"Cover purchases from your balance",creditsDesc:"Lets the Shop top up a purchase from your balance when your credits don’t fully cover it.",sellingDesc:"Lets the Shop hand over an item from this collection when it sells.",sellingEmpty:"Nothing to approve yet. Approvals for selling appear here once you own collectibles.",collectionFallback:"Your collection",active:"On",inactive:"Off",checking:"Checking…",working:"Working…",activateAria:"Turn on “{name}”",deactivateAria:"Turn off “{name}”",toastActivated:"“{name}” is on.",toastDeactivated:"“{name}” is off.",errorGeneric:"Couldn’t update that — please try again.",signInTitle:"Sign in to manage approvals",signInBody:"Sign in to see and manage the approvals on your account.",managedTitle:"You’re all set",managedBody:"Your account handles everything automatically — there’s nothing here to manage. Buying and selling just work.",managedCta:"Browse collectibles"},kb={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"},names:{title:"Get a Decentraland NAME",description:"Claim your unique Decentraland NAME with credits — a personal alias for your avatar and your own World."}},Ib={errors:L3,nav:M3,search:B3,collection:F3,collectionCard:$3,categories:D3,creator:q3,storeSettings:U3,notFound:H3,cart:V3,getCredits:z3,filter:G3,assetCard:W3,notifyMe:Z3,makeOffer:K3,buyModal:Y3,cartCheckout:Q3,marketCheckout:J3,itemDetail:X3,resales:eb,success:tb,itemPreview:rb,assets:nb,myAssets:ab,activity:sb,myFavorites:ob,overview:ib,app:cb,cartPopover:lb,filterBar:ub,addAll:db,footer:fb,collectionCarousel:hb,weekTopCreators:mb,loadMore:pb,recentlyViewed:gb,followedCreators:yb,spinner:vb,successAnimation:bb,importListings:wb,sellModal:_b,primaryList:Cb,migrate:Eb,fittingRoom:xb,bodyShape:Sb,names:Tb,authorizations:Ab,seo:kb},Rb={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."},Nb={overview:"Inicio",collectibles:"Coleccionables",myAssets:"Mis artículos",myFavorites:"Mis favoritos",activity:"Actividad",authorizations:"Autorizaciones",searchPlaceholder:"Busca artículos…",searchAria:"Buscar en la tienda",yourBalance:"Tus {currency}",getCredits:"Conseguir {currency}",cart:"Carrito"},Pb={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}"},Ob={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}"},jb={viewCollection:"Ver colección",itemCount:"{count, plural, one {# Artículo} other {# Artículos}}"},Lb={shopAll:"Ver todo",wearables:"Wearables",emotes:"Emotes",names:"NAMEs",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"},Mb={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}"},Bb={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}"},Fb={title:"Página no encontrada",body:"La página que buscas no está aquí. Volvamos a la tienda.",cta:"Ver coleccionables"},$b={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",decreaseQuantity:"Disminuir cantidad de {name}",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…",signInHint:"Te pediremos que inicies sesión primero.",priceChanged:"Los precios o la disponibilidad cambiaron desde que los agregaste. Revisa el total actualizado y confirma para comprar.",allUnavailable:"Ninguno de estos artículos está disponible. Elimínalos para seguir comprando.",availability:{soldOut:"Agotado",unavailable:"Ya no está disponible"},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."}},Db={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}",packsLoading:"Cargando paquetes de {currency}…",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."},qb={price:"Precio",status:"Estado",statusAll:"Todos",onSale:"En venta",notForSale:"No en venta",smart:"Smart",smartHint:"Los wearables Smart añaden utilidad interactiva en el mundo."},Ub={sale:"OFERTA",saleWithDiscount:"OFERTA -{pct}%",smart:"Smart",addToFavorites:"Agregar a favoritos",removeFromFavorites:"Quitar de favoritos",marketPrice:"Precio de mercado",onSaleCount:"{count, plural, one {# en venta} other {# en venta}}",unavailable:"No disponible",buyNow:"Comprar ahora",yourItem:"Tu artículo",manage:"Gestionar",inCart:"En el carrito",addToCart:"Agregar al carrito",notForSale:"No en venta",view:"Ver"},Hb={label:"Avísame cuando esté disponible",placeholder:"Ingresa tu correo",cta:"Avísame",working:"Enviando…",signInCta:"Inicia sesión para recibir aviso",subscribedTitle:"Estás en la lista",subscribedBody:"Te avisaremos cuando vuelva a estar disponible.",error:"No pudimos guardarlo: inténtalo de nuevo."},Vb={cta:"Hacer una oferta",comingSoon:"Muy pronto — vas a poder hacer una oferta por artículos que no están a la venta."},zb={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 tu compra…",confirmToContinue:"Confirma para continuar…",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."}},Gb={titleBuy:"Comprar artículos",titleNoFunds:"Comprar créditos y artículos",dialogAria:"Finaliza la compra de tu carrito",qty:"× {count}",preparing:"Preparando tu compra…",errorTitle:"¡Ups! Algo salió mal",errorHeadline:"No pudimos completar tu compra esta vez.",errorBody:"Tranquilo, tus créditos están a salvo. Inténtalo de nuevo en un momento.",tryAgain:"Reintentar"},Wb={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."}},Zb={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…",maxInCart:"Máximo en el carrito",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",outOfStock:"Agotado",ownItemPrefix:"Este es tu artículo: gestiónalo en",ownItemSuffix:".",manageList:"Poner a la venta",manageUpdatePrice:"Actualizar precio",manageRemove:"Quitar de la venta",manageWorking:"Procesando…"},Kb={title:"Revendedores",subtitle:"Otras copias de este artículo a la venta ahora mismo.",copy:"Reventa disponible",seller:"Vendedor",serialLabel:"Copia",serialOf:"de",yourListing:"Tu publicación",showMore:"Ver más",legacyTitle:"También en el mercado clásico",legacyNote:"Estas copias no se pueden comprar aquí — abre el mercado clásico para adquirirlas.",classicBadge:"Mercado clásico",viewOnMarketplace:"Ver en el Mercado"},Yb={finalizing:"Finalizando tu compra…",processing:"Procesando tu compra…",indexingBefore:"Pago confirmado: añadiendo",indexingAfter:"a tu guardarropa. Ya casi está.",confirmingBefore:"Confirmando",confirmingAfter:"— esto suele tardar unos segundos. Mantén esta pestaña abierta.",itemCount:"{count, plural, one {# artículo} other {# artículos}}",viewTransaction:"Ver recibo ↗",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.",viewActivity:"Ver tu actividad",keepShopping:"Seguir comprando",failedTitle:"Tu compra no se completó",failedBody:"No se pudo completar la compra, 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",bannerTitle:"¡Tu compra se realizó con éxito!",bannerBody:"Puedes encontrar tu artículo en la pestaña Mis Activos.",myAssets:"Mis Activos",tryInWorld:"Probar en el mundo"},Qb={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"},Jb={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",showItems:"Mostrar artículos",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."},Xb={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 de la venta",putOnSale:"Poner a la venta",ownedEmpty:"Los artículos que tengas aparecerán acá. Explorá la tienda y armá tu colección.",namesEmpty:"Reclamá un NAME único para destacarte en Decentraland — va a aparecer acá cuando sea tuyo.",emptyOwnedTitle:"Todavía no hay nada acá",emptyNamesTitle:"Todavía no tenés NAMEs",emptyCreationsTitle:"Todavía no hay creaciones",emptyBrowse:"Ver coleccionables",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}}",assetsHeading:"Activos",sectionWearables:"Wearables",sectionEmotes:"Emotes",sectionNames:"Nombres",sectionCreations:"Mis creaciones",searchPlaceholder:"Busca tus artículos",clearSearch:"Borrar búsqueda"},ew={filter:{all:"Todo",purchases:"Compras",sales:"Ventas"},processing:"Procesando",completed:"Completada",sold:"Vendido",purchaseLabel:"Compra",saleLabel:"Venta",soldTo:"Vendido a {account}",approxValue:"Valor aproximado en créditos",itemFallback:"Artículo",signInTitle:"Inicia sesión para ver tu actividad",signInBody:"Tus compras y ventas aparecerán aquí cuando inicies sesión.",emptyAllTitle:"Aún no tienes actividad",emptyAllBody:"Tus compras y ventas aparecerán aquí.",emptyPurchasesTitle:"Aún no tienes compras",emptyPurchasesBody:"Cuando compres algo, aparecerá aquí.",emptySalesTitle:"Aún no tienes ventas",emptySalesBody:"Cuando alguien compre uno de tus artículos, aparecerá aquí.",itemCount:"{count, plural, one {# artículo} other {# artículos}}",quantity:"×{count}"},tw={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}}"},rw={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."},nw={crash:{title:"Algo salió mal",body:"Esta página tuvo un error inesperado. Prueba a recargar.",reload:"Recargar"}},aw={removeFromCart:"Quitar {name} del carrito",increaseQuantity:"Aumentar cantidad",decreaseQuantity:"Disminuir cantidad de {name}",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"},sw={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",removeFilter:"Quitar el filtro {filter}"},ow={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"},iw={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"},cw={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}"},lw={title:"Mejores creadores de la semana",thisWeek:"Esta semana",rank:"Posición",creator:"Creador",collections:"Colecciones",sales:"Ventas",volume:"Volumen"},uw={loading:"Cargando…",loadMore:"Cargar más"},dw={title:"Vistos recientemente"},fw={title:"De creadores que sigues"},hw={loading:"Cargando"},mw={label:"Compra exitosa"},pw={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})"},gw={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"},yw={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…"},vw={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"},bw={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"},ww={male:"Masculino",female:"Femenino"},_w={breadcrumbAria:"Ruta de navegación",breadcrumbCollectibles:"Coleccionables",breadcrumbCurrent:"NAMEs",heroTitle:"¡Consigue tu NAME único!",heroSubtitle:"Activa todo el potencial de la ciudadanía de Decentraland con un NAME único y tu propio World.",inputPlaceholder:"tunombre",inputAria:"Busca un NAME",suffix:".dcl.eth",claim:"Reclamar NAME",checking:"Comprobando disponibilidad…",available:"¡{name} está disponible!",taken:"Este NAME ya está en uso. Elegí otro o hacele una oferta al dueño.",takenMakeOffer:"Hacer oferta",tooShort:"Los NAMEs deben tener al menos {min} caracteres.",checkError:"No pudimos comprobar ese NAME ahora mismo; aún puedes intentar reclamarlo.",whyTitle:"¿Por qué comprar un NAME?",why1:"Destaca con un alias único para tu avatar",why2:"Desbloquea tu World y personaliza tu propio espacio 3D para organizar eventos",why2Link:"Más información",why3:"Una URL exclusiva para tus espacios virtuales que guía a los visitantes hasta tu LAND",why3Link:"http://tunombre.dcl.eth",buyTitle:"Comprar NAME",myCreditsBalance:"Mi saldo de créditos:",subtitle:"Decentraland NAMEs",confirmTitle:"Confirma tu NAME",confirmBody:"Has elegido {name}. Vuelve a escribir el NAME para confirmar tu selección y continuar con la compra.",reenterAria:"Vuelve a escribir el NAME para confirmar",buyCta:"Comprar NAME",completing:"Completando tu compra…",confirming:"Confirma para continuar…",successHeaderTitle:"¡Compra completada!",successBannerBold:"¡Tu compra se realizó con éxito!",successBannerRest:"Puedes encontrar tu NAME en la pestaña Mis artículos.",myItems:"Mis artículos",assignToAvatar:"Asignar NAME al avatar",errorTitle:"Algo salió mal",errorGeneric:"No pudimos completar tu compra. Inténtalo de nuevo.",tryAgain:"Reintentar"},Cw={title:"Autorizaciones",intro:"Las autorizaciones únicas permiten que la Shop actúe en tu nombre. Tú tienes el control: desactiva la que quieras cuando quieras.",buyingTitle:"Para comprar",sellingTitle:"Para vender",creditsName:"Cubrir compras con tu saldo",creditsDesc:"Permite que la Shop complete una compra con tu saldo cuando tus créditos no la cubren por completo.",sellingDesc:"Permite que la Shop entregue un artículo de esta colección cuando se venda.",sellingEmpty:"Todavía no hay nada que autorizar. Las autorizaciones para vender aparecen aquí cuando tienes coleccionables.",collectionFallback:"Tu colección",active:"Activada",inactive:"Desactivada",checking:"Comprobando…",working:"Procesando…",activateAria:"Activar «{name}»",deactivateAria:"Desactivar «{name}»",toastActivated:"«{name}» está activada.",toastDeactivated:"«{name}» está desactivada.",errorGeneric:"No se pudo actualizar. Inténtalo de nuevo.",signInTitle:"Inicia sesión para gestionar las autorizaciones",signInBody:"Inicia sesión para ver y gestionar las autorizaciones de tu cuenta.",managedTitle:"Todo listo",managedBody:"Tu cuenta se encarga de todo automáticamente: aquí no hay nada que gestionar. Comprar y vender simplemente funciona.",managedCta:"Explorar coleccionables"},Ew={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"},names:{title:"Consigue un NAME de Decentraland",description:"Reclama tu NAME único de Decentraland con créditos: un alias personal para tu avatar y tu propio World."}},xw={errors:Rb,nav:Nb,search:Pb,collection:Ob,collectionCard:jb,categories:Lb,creator:Mb,storeSettings:Bb,notFound:Fb,cart:$b,getCredits:Db,filter:qb,assetCard:Ub,notifyMe:Hb,makeOffer:Vb,buyModal:zb,cartCheckout:Gb,marketCheckout:Wb,itemDetail:Zb,resales:Kb,success:Yb,itemPreview:Qb,assets:Jb,myAssets:Xb,activity:ew,myFavorites:tw,overview:rw,app:nw,cartPopover:aw,filterBar:sw,addAll:ow,footer:iw,collectionCarousel:cw,weekTopCreators:lw,loadMore:uw,recentlyViewed:dw,followedCreators:fw,spinner:hw,successAnimation:mw,importListings:pw,sellModal:gw,primaryList:yw,migrate:vw,fittingRoom:bw,bodyShape:ww,names:_w,authorizations:Cw,seo:Ew},Oo=["en","es"];function Cl(e,t="",r={}){for(const[n,a]of Object.entries(e)){const s=t?`${t}.${n}`:n;a&&typeof a=="object"&&!Array.isArray(a)?Cl(a,s,r):r[s]=String(a)}return r}const Sw={en:Cl(Ib),es:Cl(xw)},Tw=V1(),Lc={};function eu(e){return Lc[e]||(Lc[e]=j3({locale:e,defaultLocale:"en",messages:Sw[e],onError:()=>{}},Tw)),Lc[e]}let Th=eu("en");function Aw(e){Th=eu(e)}function se(e,t){return Th.formatMessage({id:e},t)}const kw=_t.span`
101
- font-size: 12px;
102
- white-space: nowrap;
103
- overflow: hidden;
104
- text-overflow: ellipsis;
105
- `,Iw=_t.span``,Ah=Vl`
106
- width: 18px;
107
- height: 18px;
108
- border-radius: 50%;
109
- object-fit: cover;
110
- flex: none;
111
- background: ${Me.colors.media};
112
- `,Rw=_t.span`
113
- ${Ah};
114
-
115
- &[data-letter] {
116
- display: inline-flex;
117
- align-items: center;
118
- justify-content: center;
119
- color: ${Me.colors.white};
120
- font-size: 11px;
121
- font-weight: 700;
122
- line-height: 1;
123
- text-transform: uppercase;
124
- }
125
- `,Nw=_t.img`
126
- ${Ah};
127
- `,s2=_t.span`
128
- display: inline-flex;
129
- align-items: center;
130
- gap: 6px;
131
- color: ${Me.colors.muted};
132
- font-size: 12px;
133
- min-width: 0;
134
-
135
- &[data-link] {
136
- background: none;
137
- border: 0;
138
- padding: 0;
139
- margin: 0;
140
- font: inherit;
141
- cursor: pointer;
142
- max-width: 100%;
143
- }
144
- &[data-link]:hover [data-testid='creator-name'] {
145
- color: ${Me.colors.text};
146
- text-decoration: underline;
147
- }
148
- `;function Pw(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function Ow(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 jw(e,t){var r;return(((r=e==null?void 0:e.trim())==null?void 0:r[0])||t.replace(/^0x/i,"")[0]||"?").toUpperCase()}function kh({address:e,className:t,linkToProfile:r,hidePrefix:n}){var _,x;const a=qo(),{data:s}=ys(e),o=(x=(_=s==null?void 0:s.avatar)==null?void 0:_.snapshots)==null?void 0:x.face256,[u,f]=ne.useState(!1);if(ne.useEffect(()=>f(!1),[o]),!e)return null;const h=s!=null&&s.name?Ch(s.name):Pw(e),m=!!o&&!u?d.jsx(Nw,{"data-avatar":!0,"data-testid":"creator-ava",src:o,alt:"",loading:"lazy",onError:()=>f(!0)}):d.jsx(Rw,{"data-avatar":!0,"data-letter":!0,"data-testid":"creator-ava-letter",style:{backgroundColor:Ow(e)},"aria-hidden":!0,children:jw(s==null?void 0:s.name,e)}),g=d.jsxs(d.Fragment,{children:[m,d.jsxs(kw,{"data-testid":"creator-name",children:[n?null:se("search.byCreator",{name:""}),d.jsx(Iw,{"data-testid":"creator-display",children:h})]})]});return r?d.jsx(s2,{as:"button","data-link":!0,className:t,"data-testid":"creator",onClick:y=>{y.stopPropagation(),a(`/assets/creator/${e}`)},children:g}):d.jsx(s2,{className:t,"data-testid":"creator",children:g})}const Gn=`${He.marketplaceServerUrl}/v1`;function tu(e){if(!e)return 0;try{return Math.ceil(Number(df(e))*10)}catch{return 0}}function Lw(e){if(!e)return 0;try{const t=BigInt(e),r=10n**16n;return Number((t+r-1n)/r)}catch{return 0}}async function g9(e,t){var n,a,s;const r=new URLSearchParams({contractAddresses:e,itemId:t,first:"1"});try{const o=await fetch(`${He.marketplaceServerUrl}/v2/catalog?${r.toString()}`);if(!o.ok)return"";const{data:u}=await o.json(),f=(n=u==null?void 0:u[0])==null?void 0:n.data;return(((a=f==null?void 0:f.wearable)==null?void 0:a.description)??((s=f==null?void 0:f.emote)==null?void 0:s.description)??"").trim()}catch{return""}}async function y9(e){const{listings:t}=await ws({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 v9(e){const{listings:t}=await ws({contractAddress:e,first:200}),r={};for(const n of t)n.listingType!=="secondary"||n.tokenId==null||(r[String(n.tokenId)]={priceCredits:n.priceCredits,tradeId:n.tradeId});return r}async function Ih(e,t){var s;const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${Gn}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:a}=await n.json();return((s=a==null?void 0:a[0])==null?void 0:s.nft)??null}function ru(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,seller:e.seller??void 0,issuedId:e.issuedId??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 ws(e){var a,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),(a=e.rarities)!=null&&a.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(`${He.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 b9(e,t){const{listings:r}=await ws({contractAddress:e,itemId:t,first:1});return r[0]?ru(r[0]):null}async function Rh({first:e=100,...t}={}){const{listings:r,total:n}=await ws({...t,first:e});return{items:r.map(ru),total:n}}async function w9(e,t){const{items:r}=await Mw({contractAddress:e,itemId:t,first:100,sortBy:"cheapest"});return r.filter(n=>!!n.tokenId&&!!n.tradeId).sort((n,a)=>n.priceCredits-a.priceCredits)}async function _9(e,t){const r=new URLSearchParams({contractAddress:e,itemId:t,status:"open",sortBy:"cheapest",first:"100"}),n=await fetch(`${He.marketplaceServerUrl}/v1/orders?${r.toString()}`);if(!n.ok)throw new Error(`fetchClassicItemOrders ${n.status}`);return((await n.json()).data??[]).filter(s=>!s.tradeId).map(s=>({tokenId:s.tokenId,issuedId:s.issuedId,seller:s.owner,contractAddress:s.contractAddress}))}function Nh(e){return{...ru(e),source:e.source,manaWei:e.manaWei??null}}function Ph(e,t,r){var a,s;const n=new URLSearchParams;return(t.category==="wearable"||t.category==="emote")&&n.set("category",t.category),n.set("first",String(e)),t.skip!=null&&n.set("skip",String(t.skip)),t.contractAddress&&n.set("contractAddress",t.contractAddress),t.itemId!=null&&n.set("itemId",t.itemId),t.creator&&n.set("creator",t.creator),(a=t.rarities)!=null&&a.length&&n.set("rarity",t.rarities.join(",")),(s=t.wearableCategories)!=null&&s.length&&n.set("wearableCategory",t.wearableCategories.join(",")),t.minPriceCredits!=null&&n.set("minPriceCredits",String(t.minPriceCredits)),t.maxPriceCredits!=null&&n.set("maxPriceCredits",String(t.maxPriceCredits)),t.search&&n.set("search",t.search),t.sortBy&&n.set("sortBy",t.sortBy),t.isSmart&&n.set("isSmart","true"),t.onSale!=null&&n.set("onSale",String(t.onSale)),r&&n.set("groupBy",r),n}async function Mw({first:e=100,...t}={}){const r=Ph(e,t),n=await fetch(`${He.marketplaceServerUrl}/v3/catalog/unified?${r.toString()}`);if(!n.ok)throw new Error(`fetchUnified ${n.status}`);const a=await n.json(),s=a.data??[];return{items:s.map(Nh),total:a.total??s.length}}function Bw(e){return{...Nh(e),listingCount:e.listingCount}}async function C9({first:e=100,...t}={}){const r=Ph(e,t,"item"),n=await fetch(`${He.marketplaceServerUrl}/v3/catalog/unified?${r.toString()}`);if(!n.ok)throw new Error(`fetchShopItems ${n.status}`);const a=await n.json(),s=a.data??[];return{items:s.map(Bw),total:a.total??s.length}}function nu(e){var t,r,n,a,s;return{id:e.nft.id,contractAddress:e.nft.contractAddress,tokenId:e.nft.tokenId,issuedId:e.nft.issuedId,itemId:e.nft.itemId??null,name:e.nft.name,category:e.nft.category,image:e.nft.image,rarity:((r=(t=e.nft.data)==null?void 0:t.wearable)==null?void 0:r.rarity)??((a=(n=e.nft.data)==null?void 0:n.emote)==null?void 0:a.rarity),network:e.nft.network,chainId:e.nft.chainId,isOnSale:e.order!=null,listingPrice:e.order?tu(e.order.price):void 0,tradeId:(s=e.order)==null?void 0:s.tradeId}}async function E9(e,t,r){try{const n=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,itemId:r,first:"1"}),a=await fetch(`${Gn}/nfts?${n.toString()}`);if(!a.ok)return!1;const{total:s}=await a.json();return(s??0)>0}catch{return!1}}async function x9(e,{category:t="wearable",first:r=48,skip:n=0,search:a,rarities:s,wearableCategories:o,emoteCategories:u,onlyOnSale:f,sortBy:h="newest"}={}){const p=new URLSearchParams({owner:e.toLowerCase(),category:t,first:String(r),skip:String(n),sortBy:h,orderDirection:"desc"});a&&p.set("search",a);for(const y of s??[])p.append("itemRarity",y);for(const y of o??[])p.append("wearableCategory",y);for(const y of u??[])p.append("emoteCategory",y);f&&p.set("isOnSale","true");const m=await fetch(`${Gn}/nfts?${p.toString()}`);if(!m.ok)throw new Error(`Failed to fetch assets (${m.status})`);const{data:g,total:_}=await m.json();return{assets:g.map(nu),total:_}}async function S9(e,t,r){var n,a;try{const s=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,tokenId:r,first:"1"}),o=await fetch(`${Gn}/nfts?${s.toString()}`);if(!o.ok)return null;const{data:u}=await o.json(),f=u==null?void 0:u[0];if(!f||f.nft.tokenId!==r)return null;const h=nu(f);if(h.isOnSale&&h.tradeId&&!h.listingPrice)try{const m=(a=(n=(await Qo(h.tradeId)).received)==null?void 0:n[0])==null?void 0:a.amount,g=tu(m);g>0&&(h.listingPrice=g)}catch{}return h}catch{return null}}async function Fw(e,t){var r;try{const n=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),a=await fetch(`${Gn}/nfts?${n.toString()}`);if(!a.ok)return{};const{data:s}=await a.json(),o=s==null?void 0:s[0];return!(o!=null&&o.nft)||o.nft.tokenId!==t?{}:{seller:o.nft.owner??((r=o.order)==null?void 0:r.owner),issuedId:o.nft.issuedId}}catch{return{}}}async function T9(e,t){const r=await Promise.all(t.map(async n=>[n,await Fw(e,n)]));return Object.fromEntries(r)}async function A9(e,t){try{const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${Gn}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:a}=await n.json(),s=a==null?void 0:a[0];return!s||s.nft.tokenId!==t?null:nu(s)}catch{return null}}const $w="dcl:marketplace";async function k9(e,t){const{TradeService:r}=await Et(async()=>{const{TradeService:a}=await import("./TradeService-DWfELVYz.js");return{TradeService:a}},__vite__mapDeps([11,7,1,6,2,12,9,10,13,8]));return new r($w,He.marketplaceServerUrl,()=>t).addTrade(e)}class au extends Error{constructor(t){super("fetchTrade 404"),this.tradeId=t,this.name="TradeNotFoundError"}}async function Qo(e){var n;const t=await fetch(`${He.marketplaceServerUrl}/v1/trades/${e}`);if(t.status===404)throw(n=t.body)==null||n.cancel(),new au(e);if(!t.ok)throw new Error(`fetchTrade ${t.status}`);const r=await t.json();return r.data??r}async function Dw(e){if(e.tradeId)try{return await Qo(e.tradeId)}catch(t){if(!(t instanceof au)||!e.itemId)throw t}return e.itemId?qw(e.contractAddress,e.itemId):null}async function Oh(e,t){const r=new URLSearchParams({contractAddress:e,itemId:t,first:"1"}),n=await fetch(`${Gn}/items?${r.toString()}`);if(!n.ok)return null;const{data:a}=await n.json();return(a==null?void 0:a[0])??null}async function I9(e){var f,h;let t;try{t=await Qo(e)}catch{return null}const r=(f=t.sent)==null?void 0:f[0],n=(h=t.received)==null?void 0:h[0],a=tu(n==null?void 0:n.amount),s=(r==null?void 0:r.contractAddress)??"",o=(r==null?void 0:r.itemId)??(r==null?void 0:r.tokenId)??(r==null?void 0:r.value)??"";if(!s)return{name:"Item",thumbnail:"",credits:a,contractAddress:""};if((r==null?void 0:r.assetType)===rt.TradeAssetType.COLLECTION_ITEM){const p=o?await Oh(s,o):null;return{name:(p==null?void 0:p.name)??"Item",thumbnail:(p==null?void 0:p.thumbnail)??"",credits:a,contractAddress:s,itemId:o}}const u=o?await Ih(s,o):null;return{name:(u==null?void 0:u.name)??(o?`#${o}`:"Item"),thumbnail:(u==null?void 0:u.image)??"",credits:a,contractAddress:s,tokenId:o}}async function qw(e,t){var a;const{listings:r}=await ws({contractAddress:e,itemId:t,first:1}),n=(a=r[0])==null?void 0:a.tradeId;return n?Qo(n):null}async function R9(e,{tokenId:t,itemId:r}){if(!e)return null;if(t){const n=await Ih(e,t);return{name:(n==null?void 0:n.name)??`#${t}`,thumbnail:(n==null?void 0:n.image)??"",credits:0,contractAddress:e,tokenId:t}}if(r){const n=await Oh(e,r);return{name:(n==null?void 0:n.name)??"Item",thumbnail:(n==null?void 0:n.thumbnail)??"",credits:0,contractAddress:e,itemId:r}}return null}function Uw(e){return{id:e.id,buyer:e.buyer,seller:e.seller,contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId??null,manaWei:e.price,createdAt:e.timestamp,txHash:e.txHash,category:e.category??""}}async function N9(e,{role:t="seller",first:r=24,skip:n=0}={}){const a=new URLSearchParams({[t]:e.toLowerCase(),first:String(r),skip:String(n),sortBy:"recently_sold"}),s=await fetch(`${He.marketplaceServerUrl}/v1/sales?${a.toString()}`);if(!s.ok)throw new Error(`fetchUserSales ${s.status}`);const o=await s.json(),u=(o.data??[]).map(Uw);return{items:u,total:o.total??u.length}}function jh(e){return e===void 0||e==="available"}function Hw(e,t){var a,s,o;if(!t)return e.tokenId?"unavailable":"sold-out";const r=(a=t.checks)==null?void 0:a.expiration;if(typeof r=="number"&&Number.isFinite(r)&&r>0&&r<=Date.now())return"unavailable";const n=Lw((o=(s=t.received)==null?void 0:s[0])==null?void 0:o.amount);return!Number.isFinite(n)||n<=0?"unavailable":"available"}async function Vw(e){try{const t=await Dw(e);return Hw(e,t)}catch(t){if(t instanceof au)return e.tokenId?"unavailable":"sold-out";throw t}}function zw(e,t=!0){const r=_m({queries:e.map(a=>({queryKey:["cart-availability",a.id,a.tradeId??null,a.itemId??null,a.contractAddress],queryFn:()=>Vw(a),enabled:t,staleTime:3e4,gcTime:6e4,retry:1,refetchOnWindowFocus:!0}))}),n={};return e.forEach((a,s)=>{var o;n[a.id]=((o=r[s])==null?void 0:o.data)??"available"}),n}function Lh(){return d.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:[d.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"#1ea672"}),d.jsx("path",{d:"M5.8 10.3l2.7 2.7 5.7-6",stroke:"#fff",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Gw({item:e,status:t,onRemove:r,onIncrement:n,onDecrement:a}){const s=!e.tokenId,o=e.quantity,u=typeof e.available=="number"&&o>=e.available,f=e.priceCredits*o,h=!jh(t),p=se(t==="sold-out"?"cart.availability.soldOut":"cart.availability.unavailable");return d.jsxs("li",{className:`cartd__card${h?" is-unavailable":""}`,children:[d.jsxs("div",{className:"cartd__thumb",children:[e.thumbnail?d.jsx("img",{src:e.thumbnail,alt:e.name}):null,d.jsx("span",{className:"cartd__thumb-check",children:d.jsx(Lh,{})})]}),d.jsxs("div",{className:"cartd__info",children:[d.jsxs("div",{children:[d.jsx("div",{className:"cartd__name",title:e.name,children:e.name}),e.creator?d.jsx(kh,{address:e.creator,className:"cartd__by"}):null]}),d.jsx("div",{className:"cartd__rowbottom",children:h?d.jsx("span",{className:"cartd__unavailable",children:p}):d.jsxs(d.Fragment,{children:[s?d.jsxs("div",{className:"cartd__stepper",children:[d.jsx("button",{className:"cartd__step",onClick:()=>a(e.id),disabled:o<=1,"aria-label":se("cartPopover.decreaseQuantity",{name:e.name}),children:d.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:d.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),d.jsx("span",{className:"cartd__qty",children:o}),d.jsx("button",{className:"cartd__step",onClick:()=>n(e.id),disabled:u,"aria-label":se("cartPopover.increaseQuantity"),children:d.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:d.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,d.jsxs("div",{className:"cartd__price",title:on(f),children:[d.jsx(Xt,{className:"cartd__diamond"}),Wr(f)]})]})})]}),d.jsx("button",{className:"cartd__del",onClick:()=>r(e.id),"aria-label":se("cartPopover.removeItem",{name:e.name}),title:se("cartPopover.remove"),children:d.jsx(ct,{name:"trash"})})]})}function Ww(){const e=Ht(g=>g.items),t=Ht(g=>g.open),r=Ht(g=>g.justAddedCount),n=Ht(g=>g.setOpen),a=Ht(g=>g.remove),s=Ht(g=>g.increment),o=Ht(g=>g.decrement),u=ne.useRef(null),f=zw(e,t),h=e.filter(g=>jh(f[g.id])),p=h.reduce((g,_)=>g+_.priceCredits*_.quantity,0),m=h.reduce((g,_)=>g+_.quantity,0);return ne.useEffect(()=>{if(!t)return;const g=_=>{_.key==="Escape"&&n(!1)};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[t,n]),!t||e.length===0?null:S1.createPortal(d.jsxs("div",{className:"cartd",role:"dialog","aria-modal":"true","aria-label":se("cartPopover.dialogLabel"),children:[d.jsx("div",{className:"cartd__scrim",onClick:()=>n(!1)}),d.jsxs("aside",{className:"cartd__panel",ref:u,children:[d.jsxs("header",{className:"cartd__head",children:[d.jsx("h2",{className:"cartd__title",children:se("cartPopover.title",{count:m})}),d.jsx("button",{className:"cartd__close",onClick:()=>n(!1),"aria-label":se("cartPopover.close"),children:d.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,focusable:"false",children:d.jsx("path",{d:"M5 5l14 14M19 5L5 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),d.jsxs("div",{className:"cartd__body",children:[r>0?d.jsxs("div",{className:"cartd__banner",children:[d.jsx("span",{className:"cartd__banner-check",children:d.jsx(Lh,{})}),d.jsxs("p",{children:[d.jsx("strong",{children:se("cartPopover.bannerCount",{count:r})})," ",se("cartPopover.bannerAdded")]})]}):null,d.jsx("ul",{className:"cartd__list",children:e.map(g=>d.jsx(Gw,{item:g,status:f[g.id],onRemove:a,onIncrement:s,onDecrement:o},g.id))})]}),d.jsxs("footer",{className:"cartd__foot",children:[d.jsxs("div",{className:"cartd__totalrow",children:[d.jsx("span",{className:"cartd__total-label",children:se("cartPopover.total",{count:m})}),d.jsxs("span",{className:"cartd__total-val",title:on(p),children:[d.jsx(Xt,{className:"cartd__total-diamond"}),Wr(p)]})]}),d.jsxs("div",{className:"cartd__ctas",children:[d.jsx(In,{className:"cartd__cta cartd__cta--primary",to:"/cart",onClick:()=>n(!1),children:se("cartPopover.goToCart")}),d.jsx("button",{className:"cartd__cta cartd__cta--secondary",onClick:()=>n(!1),children:se("cartPopover.continueShopping")})]})]})]})]}),document.body)}var qa={},Mc={exports:{}},o2;function su(){return o2||(o2=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})(Mc)),Mc.exports}var Bc={};function cn(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 Mh(e){if(ne.isValidElement(e)||!cn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Mh(e[r])}),t}function Lr(e,t,r={clone:!0}){const n=r.clone?Ye({},e):e;return cn(e)&&cn(t)&&Object.keys(t).forEach(a=>{ne.isValidElement(t[a])?n[a]=t[a]:cn(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&cn(e[a])?n[a]=Lr(e[a],t[a],r):r.clone?n[a]=cn(t[a])?Mh(t[a]):t[a]:n[a]=t[a]}),n}const Zw=Object.freeze(Object.defineProperty({__proto__:null,default:Lr,isPlainObject:cn},Symbol.toStringTag,{value:"Module"}));function ns(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 Kw=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"}));var Fc={exports:{}},Qe={};/**
149
- * @license React
150
- * react-is.production.js
151
- *
152
- * Copyright (c) Meta Platforms, Inc. and affiliates.
153
- *
154
- * This source code is licensed under the MIT license found in the
155
- * LICENSE file in the root directory of this source tree.
156
- */var i2;function Yw(){if(i2)return Qe;i2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),_=Symbol.for("react.client.reference");function x(y){if(typeof y=="object"&&y!==null){var k=y.$$typeof;switch(k){case e:switch(y=y.type,y){case r:case a:case n:case f:case h:case g:return y;default:switch(y=y&&y.$$typeof,y){case o:case u:case m:case p:return y;case s:return y;default:return k}}case t:return k}}}return Qe.ContextConsumer=s,Qe.ContextProvider=o,Qe.Element=e,Qe.ForwardRef=u,Qe.Fragment=r,Qe.Lazy=m,Qe.Memo=p,Qe.Portal=t,Qe.Profiler=a,Qe.StrictMode=n,Qe.Suspense=f,Qe.SuspenseList=h,Qe.isContextConsumer=function(y){return x(y)===s},Qe.isContextProvider=function(y){return x(y)===o},Qe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Qe.isForwardRef=function(y){return x(y)===u},Qe.isFragment=function(y){return x(y)===r},Qe.isLazy=function(y){return x(y)===m},Qe.isMemo=function(y){return x(y)===p},Qe.isPortal=function(y){return x(y)===t},Qe.isProfiler=function(y){return x(y)===a},Qe.isStrictMode=function(y){return x(y)===n},Qe.isSuspense=function(y){return x(y)===f},Qe.isSuspenseList=function(y){return x(y)===h},Qe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===a||y===n||y===f||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===p||y.$$typeof===o||y.$$typeof===s||y.$$typeof===u||y.$$typeof===_||y.getModuleId!==void 0)},Qe.typeOf=x,Qe}var c2;function Qw(){return c2||(c2=1,Fc.exports=Yw()),Fc.exports}var l2=Qw();const Jw=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Bh(e){const t=`${e}`.match(Jw);return t&&t[1]||""}function Fh(e,t=""){return e.displayName||e.name||Bh(e)||t}function u2(e,t,r){const n=Fh(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Xw(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Fh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case l2.ForwardRef:return u2(e,e.render,"ForwardRef");case l2.Memo:return u2(e,e.type,"memo");default:return}}}const e5=Object.freeze(Object.defineProperty({__proto__:null,default:Xw,getFunctionName:Bh},Symbol.toStringTag,{value:"Module"}));function bn(e){if(typeof e!="string")throw new Error(ns(7));return e.charAt(0).toUpperCase()+e.slice(1)}const t5=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"}));function r5(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function n5(e,t=166){let r;function n(...a){const s=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function a5(e,t){return()=>null}function s5(e,t){var r,n;return ne.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 $h(e){return e&&e.ownerDocument||document}function o5(e){return $h(e).defaultView||window}function i5(e,t){return()=>null}function Dh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const qh=typeof window<"u"?ne.useLayoutEffect:ne.useEffect;let d2=0;function c5(e){const[t,r]=ne.useState(e),n=e||t;return ne.useEffect(()=>{t==null&&(d2+=1,r(`mui-${d2}`))},[t]),n}const f2=Vc.useId;function l5(e){if(f2!==void 0){const t=f2();return e??t}return c5(e)}function u5(e,t,r,n,a){return null}function d5({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=ne.useRef(e!==void 0),[s,o]=ne.useState(t),u=a?e:s,f=ne.useCallback(h=>{a||o(h)},[]);return[u,f]}function f5(e){const t=ne.useRef(e);return qh(()=>{t.current=e}),ne.useRef((...r)=>(0,t.current)(...r)).current}function h5(...e){return ne.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Dh(r,t)})},e)}const h2={};function m5(e,t){const r=ne.useRef(h2);return r.current===h2&&(r.current=e(t)),r}const p5=[];function g5(e){ne.useEffect(e,p5)}class Jo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Jo}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function P9(){const e=m5(Jo.create).current;return g5(e.disposeEffect),e}let Xo=!0,El=!1;const y5=new Jo,v5={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 b5(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&v5[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function w5(e){e.metaKey||e.altKey||e.ctrlKey||(Xo=!0)}function $c(){Xo=!1}function _5(){this.visibilityState==="hidden"&&El&&(Xo=!0)}function C5(e){e.addEventListener("keydown",w5,!0),e.addEventListener("mousedown",$c,!0),e.addEventListener("pointerdown",$c,!0),e.addEventListener("touchstart",$c,!0),e.addEventListener("visibilitychange",_5,!0)}function E5(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Xo||b5(t)}function x5(){const e=ne.useCallback(a=>{a!=null&&C5(a.ownerDocument)},[]),t=ne.useRef(!1);function r(){return t.current?(El=!0,y5.start(100,()=>{El=!1}),t.current=!1,!0):!1}function n(a){return E5(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function xl(e,t){const r=Ye({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Ye({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},s=t[n];r[n]={},!s||!Object.keys(s)?r[n]=a:!a||!Object.keys(a)?r[n]=s:(r[n]=Ye({},s),Object.keys(a).forEach(o=>{r[n][o]=xl(a[o],s[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function S5(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((s,o)=>{if(o){const u=t(o);u!==""&&s.push(u),r&&r[o]&&s.push(r[o])}return s},[]).join(" ")}),n}const m2=e=>e,T5=()=>{let e=m2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=m2}}},Uh=T5(),A5={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 Hh(e,t,r="Mui"){const n=A5[t];return n?`${r}-${n}`:`${Uh.generate(e)}-${t}`}function k5(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Hh(e,a,r)}),n}function I5(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const R5=Object.freeze(Object.defineProperty({__proto__:null,default:I5},Symbol.toStringTag,{value:"Module"}));function wn(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 Vh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Vh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function N5(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Vh(e))&&(n&&(n+=" "),n+=t);return n}const zh=ne.createContext(void 0);function O9({value:e,children:t}){return d.jsx(zh.Provider,{value:e,children:t})}function P5(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?xl(a.defaultProps,n):!a.styleOverrides&&!a.variants?xl(a,n):n}function O5({props:e,name:t}){const r=ne.useContext(zh);return P5({props:e,name:t,theme:{components:r}})}function j5(e){return O5(e)}var An={},Dc={exports:{}},p2;function L5(){return p2||(p2=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 a=arguments[n];for(var s in a)({}).hasOwnProperty.call(a,s)&&(r[s]=a[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})(Dc)),Dc.exports}var qc={exports:{}},g2;function M5(){return g2||(g2=1,(function(e){function t(r,n){if(r==null)return{};var a={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(n.indexOf(s)!==-1)continue;a[s]=r[s]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(qc)),qc.exports}function B5(e,t){const r=qf({key:"css",prepend:e});if(t){const n=r.insert;r.insert=(...a)=>(a[1].styles.match(/^@layer\s+[^{]*$/)||(a[1].styles=`@layer mui {${a[1].styles}}`),n(...a))}return r}const Uc=new Map;function F5(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,a=ne.useMemo(()=>{const s=`${t}-${r}`;if(typeof document=="object"&&Uc.has(s))return Uc.get(s);const o=B5(t,r);return Uc.set(s,o),o},[t,r]);return t||r?d.jsx(ug,{value:a,children:n}):n}function $5(e){return e==null||Object.keys(e).length===0}function D5(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t($5(a)?r:a):t;return d.jsx(pg,{styles:n})}function q5(e,t){return _t(e,t)}const U5=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},y2=[];function H5(e){return y2[0]=e,ps(y2)}const V5=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:D5,StyledEngineProvider:F5,ThemeContext:zo,css:Vl,default:q5,internal_processStyles:U5,internal_serializeStyles:H5,keyframes:Wf},Symbol.toStringTag,{value:"Module"})),z5=Jr(V5),G5=Jr(Zw),W5=Jr(t5),Z5=Jr(e5),K5=["values","unit","step"],Y5=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)=>Ye({},r,{[n.key]:n.val}),{})};function Gh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=wn(e,K5),s=Y5(t),o=Object.keys(s);function u(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r})`}function f(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-n/100}${r})`}function h(g,_){const x=o.indexOf(_);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r}) and (max-width:${(x!==-1&&typeof t[o[x]]=="number"?t[o[x]]:_)-n/100}${r})`}function p(g){return o.indexOf(g)+1<o.length?h(g,o[o.indexOf(g)+1]):u(g)}function m(g){const _=o.indexOf(g);return _===0?u(o[1]):_===o.length-1?f(o[_]):h(g,o[o.indexOf(g)+1]).replace("@media","@media not all and")}return Ye({keys:o,values:s,up:u,down:f,between:h,only:p,not:m,unit:r},a)}const Q5={borderRadius:4};function Wa(e,t){return t?Lr(e,t,{clone:!1}):e}const ou={xs:0,sm:600,md:900,lg:1200,xl:1536},v2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ou[e]}px)`};function Qr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||v2;return t.reduce((o,u,f)=>(o[s.up(s.keys[f])]=r(t[f]),o),{})}if(typeof t=="object"){const s=n.breakpoints||v2;return Object.keys(t).reduce((o,u)=>{if(Object.keys(s.values||ou).indexOf(u)!==-1){const f=s.up(u);o[f]=r(t[u],u)}else{const f=u;o[f]=t[f]}return o},{})}return r(t)}function J5(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const s=e.up(a);return n[s]={},n},{}))||{}}function b2(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function ei(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function Fo(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=ei(e,r)||n,t&&(a=t(a,n,e)),a}function gt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,s=o=>{if(o[t]==null)return null;const u=o[t],f=o.theme,h=ei(f,n)||{};return Qr(o,u,m=>{let g=Fo(h,a,m);return m===g&&typeof m=="string"&&(g=Fo(h,a,`${t}${m==="default"?"":bn(m)}`,m)),r===!1?g:{[r]:g}})};return s.propTypes={},s.filterProps=[t],s}function X5(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const e4={m:"margin",p:"padding"},t4={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},w2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},r4=X5(e=>{if(e.length>2)if(w2[e])e=w2[e];else return[e];const[t,r]=e.split(""),n=e4[t],a=t4[r]||"";return Array.isArray(a)?a.map(s=>n+s):[n+a]}),iu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...iu,...cu];function _s(e,t,r,n){var a;const s=(a=ei(e,t,!1))!=null?a:r;return typeof s=="number"?o=>typeof o=="string"?o:s*o:Array.isArray(s)?o=>typeof o=="string"?o:s[o]:typeof s=="function"?s:()=>{}}function Wh(e){return _s(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 n4(e,t){return r=>e.reduce((n,a)=>(n[a]=Cs(t,r),n),{})}function a4(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=r4(r),s=n4(a,n),o=e[r];return Qr(e,o,s)}function Zh(e,t){const r=Wh(e.theme);return Object.keys(e).map(n=>a4(e,t,n,r)).reduce(Wa,{})}function dt(e){return Zh(e,iu)}dt.propTypes={};dt.filterProps=iu;function ft(e){return Zh(e,cu)}ft.propTypes={};ft.filterProps=cu;function s4(e=8){if(e.mui)return e;const t=Wh({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(s=>{const o=t(s);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function ti(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(s=>{n[s]=a}),n),{}),r=n=>Object.keys(n).reduce((a,s)=>t[s]?Wa(a,t[s](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function dr(e){return typeof e!="number"?e:`${e}px solid`}function mr(e,t){return gt({prop:e,themeKey:"borders",transform:t})}const o4=mr("border",dr),i4=mr("borderTop",dr),c4=mr("borderRight",dr),l4=mr("borderBottom",dr),u4=mr("borderLeft",dr),d4=mr("borderColor"),f4=mr("borderTopColor"),h4=mr("borderRightColor"),m4=mr("borderBottomColor"),p4=mr("borderLeftColor"),g4=mr("outline",dr),y4=mr("outlineColor"),ri=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_s(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Cs(t,n)});return Qr(e,e.borderRadius,r)}return null};ri.propTypes={};ri.filterProps=["borderRadius"];ti(o4,i4,c4,l4,u4,d4,f4,h4,m4,p4,ri,g4,y4);const ni=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_s(e.theme,"spacing",8),r=n=>({gap:Cs(t,n)});return Qr(e,e.gap,r)}return null};ni.propTypes={};ni.filterProps=["gap"];const ai=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_s(e.theme,"spacing",8),r=n=>({columnGap:Cs(t,n)});return Qr(e,e.columnGap,r)}return null};ai.propTypes={};ai.filterProps=["columnGap"];const si=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_s(e.theme,"spacing",8),r=n=>({rowGap:Cs(t,n)});return Qr(e,e.rowGap,r)}return null};si.propTypes={};si.filterProps=["rowGap"];const v4=gt({prop:"gridColumn"}),b4=gt({prop:"gridRow"}),w4=gt({prop:"gridAutoFlow"}),_4=gt({prop:"gridAutoColumns"}),C4=gt({prop:"gridAutoRows"}),E4=gt({prop:"gridTemplateColumns"}),x4=gt({prop:"gridTemplateRows"}),S4=gt({prop:"gridTemplateAreas"}),T4=gt({prop:"gridArea"});ti(ni,ai,si,v4,b4,w4,_4,C4,E4,x4,S4,T4);function sa(e,t){return t==="grey"?t:e}const A4=gt({prop:"color",themeKey:"palette",transform:sa}),k4=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sa}),I4=gt({prop:"backgroundColor",themeKey:"palette",transform:sa});ti(A4,k4,I4);function or(e){return e<=1&&e!==0?`${e*100}%`:e}const R4=gt({prop:"width",transform:or}),lu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ou[r];return s?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:or(r)}};return Qr(e,e.maxWidth,t)}return null};lu.filterProps=["maxWidth"];const N4=gt({prop:"minWidth",transform:or}),P4=gt({prop:"height",transform:or}),O4=gt({prop:"maxHeight",transform:or}),j4=gt({prop:"minHeight",transform:or});gt({prop:"size",cssProperty:"width",transform:or});gt({prop:"size",cssProperty:"height",transform:or});const L4=gt({prop:"boxSizing"});ti(R4,lu,N4,P4,O4,j4,L4);const Es={border:{themeKey:"borders",transform:dr},borderTop:{themeKey:"borders",transform:dr},borderRight:{themeKey:"borders",transform:dr},borderBottom:{themeKey:"borders",transform:dr},borderLeft:{themeKey:"borders",transform:dr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ri},color:{themeKey:"palette",transform:sa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sa},backgroundColor:{themeKey:"palette",transform:sa},p:{style:ft},pt:{style:ft},pr:{style:ft},pb:{style:ft},pl:{style:ft},px:{style:ft},py:{style:ft},padding:{style:ft},paddingTop:{style:ft},paddingRight:{style:ft},paddingBottom:{style:ft},paddingLeft:{style:ft},paddingX:{style:ft},paddingY:{style:ft},paddingInline:{style:ft},paddingInlineStart:{style:ft},paddingInlineEnd:{style:ft},paddingBlock:{style:ft},paddingBlockStart:{style:ft},paddingBlockEnd:{style:ft},m:{style:dt},mt:{style:dt},mr:{style:dt},mb:{style:dt},ml:{style:dt},mx:{style:dt},my:{style:dt},margin:{style:dt},marginTop:{style:dt},marginRight:{style:dt},marginBottom:{style:dt},marginLeft:{style:dt},marginX:{style:dt},marginY:{style:dt},marginInline:{style:dt},marginInlineStart:{style:dt},marginInlineEnd:{style:dt},marginBlock:{style:dt},marginBlockStart:{style:dt},marginBlockEnd:{style:dt},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:ni},rowGap:{style:si},columnGap:{style:ai},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:or},maxWidth:{style:lu},minWidth:{transform:or},height:{transform:or},maxHeight:{transform:or},minHeight:{transform:or},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function M4(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function B4(e,t){return typeof e=="function"?e(t):e}function Kh(){function e(r,n,a,s){const o={[r]:n,theme:a},u=s[r];if(!u)return{[r]:n};const{cssProperty:f=r,themeKey:h,transform:p,style:m}=u;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[r]:n};const g=ei(a,h)||{};return m?m(o):Qr(o,n,x=>{let y=Fo(g,p,x);return x===y&&typeof x=="string"&&(y=Fo(g,p,`${r}${x==="default"?"":bn(x)}`,x)),f===!1?y:{[f]:y}})}function t(r){var n;const{sx:a,theme:s={},nested:o}=r||{};if(!a)return null;const u=(n=s.unstable_sxConfig)!=null?n:Es;function f(h){let p=h;if(typeof h=="function")p=h(s);else if(typeof h!="object")return h;if(!p)return null;const m=J5(s.breakpoints),g=Object.keys(m);let _=m;return Object.keys(p).forEach(x=>{const y=B4(p[x],s);if(y!=null)if(typeof y=="object")if(u[x])_=Wa(_,e(x,y,s,u));else{const k=Qr({theme:s},y,G=>({[x]:G}));M4(k,y)?_[x]=t({sx:y,theme:s,nested:!0}):_=Wa(_,k)}else _=Wa(_,e(x,y,s,u))}),!o&&s.modularCssLayers?{"@layer sx":b2(g,_)}:b2(g,_)}return Array.isArray(a)?a.map(f):f(a)}return t}const oi=Kh();oi.filterProps=["sx"];function Yh(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 F4=["breakpoints","palette","spacing","shape"];function Qh(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:s={}}=e,o=wn(e,F4),u=Gh(r),f=s4(a);let h=Lr({breakpoints:u,direction:"ltr",components:{},palette:Ye({mode:"light"},n),spacing:f,shape:Ye({},Q5,s)},o);return h.applyStyles=Yh,h=t.reduce((p,m)=>Lr(p,m),h),h.unstable_sxConfig=Ye({},Es,o==null?void 0:o.unstable_sxConfig),h.unstable_sx=function(m){return oi({sx:m,theme:this})},h}const $4=Object.freeze(Object.defineProperty({__proto__:null,default:Qh,private_createBreakpoints:Gh,unstable_applyStyles:Yh},Symbol.toStringTag,{value:"Module"})),D4=Jr($4),q4=["sx"],U4=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Es;return Object.keys(e).forEach(s=>{a[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function H4(e){const{sx:t}=e,r=wn(e,q4),{systemProps:n,otherProps:a}=U4(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...o)=>{const u=t(...o);return cn(u)?Ye({},n,u):n}:s=Ye({},n,t),Ye({},a,{sx:s})}const V4=Object.freeze(Object.defineProperty({__proto__:null,default:oi,extendSxProp:H4,unstable_createStyleFunctionSx:Kh,unstable_defaultSxConfig:Es},Symbol.toStringTag,{value:"Module"})),z4=Jr(V4);var _2;function G4(){if(_2)return An;_2=1;var e=su();Object.defineProperty(An,"__esModule",{value:!0}),An.default=K,An.shouldForwardProp=x,An.systemDefaultTheme=void 0;var t=e(L5()),r=e(M5()),n=m(z5),a=G5;e(W5),e(Z5);var s=e(D4),o=e(z4);const u=["ownerState"],f=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(H){if(typeof WeakMap!="function")return null;var S=new WeakMap,U=new WeakMap;return(p=function(Q){return Q?U:S})(H)}function m(H,S){if(H&&H.__esModule)return H;if(H===null||typeof H!="object"&&typeof H!="function")return{default:H};var U=p(S);if(U&&U.has(H))return U.get(H);var Q={__proto__:null},ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ae in H)if(ae!=="default"&&Object.prototype.hasOwnProperty.call(H,ae)){var J=ee?Object.getOwnPropertyDescriptor(H,ae):null;J&&(J.get||J.set)?Object.defineProperty(Q,ae,J):Q[ae]=H[ae]}return Q.default=H,U&&U.set(H,Q),Q}function g(H){return Object.keys(H).length===0}function _(H){return typeof H=="string"&&H.charCodeAt(0)>96}function x(H){return H!=="ownerState"&&H!=="theme"&&H!=="sx"&&H!=="as"}function y(H,S){return S&&H&&typeof H=="object"&&H.styles&&!H.styles.startsWith("@layer")&&(H.styles=`@layer ${S}{${String(H.styles)}}`),H}const k=An.systemDefaultTheme=(0,s.default)(),G=H=>H&&H.charAt(0).toLowerCase()+H.slice(1);function v({defaultTheme:H,theme:S,themeId:U}){return g(S)?H:S[U]||S}function A(H){return H?(S,U)=>U[H]:null}function w(H,S,U){let{ownerState:Q}=S,ee=(0,r.default)(S,u);const ae=typeof H=="function"?H((0,t.default)({ownerState:Q},ee)):H;if(Array.isArray(ae))return ae.flatMap(J=>w(J,(0,t.default)({ownerState:Q},ee),U));if(ae&&typeof ae=="object"&&Array.isArray(ae.variants)){const{variants:J=[]}=ae;let N=(0,r.default)(ae,f);return J.forEach(Z=>{let P=!0;if(typeof Z.props=="function"?P=Z.props((0,t.default)({ownerState:Q},ee,Q)):Object.keys(Z.props).forEach($=>{(Q==null?void 0:Q[$])!==Z.props[$]&&ee[$]!==Z.props[$]&&(P=!1)}),P){Array.isArray(N)||(N=[N]);const $=typeof Z.style=="function"?Z.style((0,t.default)({ownerState:Q},ee,Q)):Z.style;N.push(U?y((0,n.internal_serializeStyles)($),U):$)}}),N}return U?y((0,n.internal_serializeStyles)(ae),U):ae}function K(H={}){const{themeId:S,defaultTheme:U=k,rootShouldForwardProp:Q=x,slotShouldForwardProp:ee=x}=H,ae=J=>(0,o.default)((0,t.default)({},J,{theme:v((0,t.default)({},J,{defaultTheme:U,themeId:S}))}));return ae.__mui_systemSx=!0,(J,M={})=>{(0,n.internal_processStyles)(J,we=>we.filter(xe=>!(xe!=null&&xe.__mui_systemSx)));const{name:N,slot:Z,skipVariantsResolver:P,skipSx:$,overridesResolver:V=A(G(Z))}=M,R=(0,r.default)(M,h),j=N&&N.startsWith("Mui")||Z?"components":"custom",W=P!==void 0?P:Z&&Z!=="Root"&&Z!=="root"||!1,Y=$||!1;let ce,ie=x;Z==="Root"||Z==="root"?ie=Q:Z?ie=ee:_(J)&&(ie=void 0);const le=(0,n.default)(J,(0,t.default)({shouldForwardProp:ie,label:ce},R)),de=we=>typeof we=="function"&&we.__emotion_real!==we||(0,a.isPlainObject)(we)?xe=>{const ve=v({theme:xe.theme,defaultTheme:U,themeId:S});return w(we,(0,t.default)({},xe,{theme:ve}),ve.modularCssLayers?j:void 0)}:we,Ne=(we,...xe)=>{let ve=de(we);const Ge=xe?xe.map(de):[];N&&V&&Ge.push(fe=>{const be=v((0,t.default)({},fe,{defaultTheme:U,themeId:S}));if(!be.components||!be.components[N]||!be.components[N].styleOverrides)return null;const ke=be.components[N].styleOverrides,Be={};return Object.entries(ke).forEach(([Fe,mt])=>{Be[Fe]=w(mt,(0,t.default)({},fe,{theme:be}),be.modularCssLayers?"theme":void 0)}),V(fe,Be)}),N&&!W&&Ge.push(fe=>{var be;const ke=v((0,t.default)({},fe,{defaultTheme:U,themeId:S})),Be=ke==null||(be=ke.components)==null||(be=be[N])==null?void 0:be.variants;return w({variants:Be},(0,t.default)({},fe,{theme:ke}),ke.modularCssLayers?"theme":void 0)}),Y||Ge.push(ae);const Ue=Ge.length-xe.length;if(Array.isArray(we)&&Ue>0){const fe=new Array(Ue).fill("");ve=[...we,...fe],ve.raw=[...we.raw,...fe]}const he=le(ve,...Ge);return J.muiName&&(he.muiName=J.muiName),he};return le.withConfig&&(Ne.withConfig=le.withConfig),Ne}}return An}var W4=G4();const Z4=Do(W4);function K4(e,t){return Ye({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ut={};const Y4=Jr(Kw),Q4=Jr(R5);var C2;function J4(){if(C2)return ut;C2=1;var e=su();Object.defineProperty(ut,"__esModule",{value:!0}),ut.alpha=x,ut.blend=H,ut.colorChannel=void 0,ut.darken=k,ut.decomposeColor=o,ut.emphasize=w,ut.getContrastRatio=_,ut.getLuminance=g,ut.hexToRgb=a,ut.hslToRgb=m,ut.lighten=v,ut.private_safeAlpha=y,ut.private_safeColorChannel=void 0,ut.private_safeDarken=G,ut.private_safeEmphasize=K,ut.private_safeLighten=A,ut.recomposeColor=h,ut.rgbToHex=p;var t=e(Y4),r=e(Q4);function n(S,U=0,Q=1){return(0,r.default)(S,U,Q)}function a(S){S=S.slice(1);const U=new RegExp(`.{1,${S.length>=6?2:1}}`,"g");let Q=S.match(U);return Q&&Q[0].length===1&&(Q=Q.map(ee=>ee+ee)),Q?`rgb${Q.length===4?"a":""}(${Q.map((ee,ae)=>ae<3?parseInt(ee,16):Math.round(parseInt(ee,16)/255*1e3)/1e3).join(", ")})`:""}function s(S){const U=S.toString(16);return U.length===1?`0${U}`:U}function o(S){if(S.type)return S;if(S.charAt(0)==="#")return o(a(S));const U=S.indexOf("("),Q=S.substring(0,U);if(["rgb","rgba","hsl","hsla","color"].indexOf(Q)===-1)throw new Error((0,t.default)(9,S));let ee=S.substring(U+1,S.length-1),ae;if(Q==="color"){if(ee=ee.split(" "),ae=ee.shift(),ee.length===4&&ee[3].charAt(0)==="/"&&(ee[3]=ee[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(ae)===-1)throw new Error((0,t.default)(10,ae))}else ee=ee.split(",");return ee=ee.map(J=>parseFloat(J)),{type:Q,values:ee,colorSpace:ae}}const u=S=>{const U=o(S);return U.values.slice(0,3).map((Q,ee)=>U.type.indexOf("hsl")!==-1&&ee!==0?`${Q}%`:Q).join(" ")};ut.colorChannel=u;const f=(S,U)=>{try{return u(S)}catch{return S}};ut.private_safeColorChannel=f;function h(S){const{type:U,colorSpace:Q}=S;let{values:ee}=S;return U.indexOf("rgb")!==-1?ee=ee.map((ae,J)=>J<3?parseInt(ae,10):ae):U.indexOf("hsl")!==-1&&(ee[1]=`${ee[1]}%`,ee[2]=`${ee[2]}%`),U.indexOf("color")!==-1?ee=`${Q} ${ee.join(" ")}`:ee=`${ee.join(", ")}`,`${U}(${ee})`}function p(S){if(S.indexOf("#")===0)return S;const{values:U}=o(S);return`#${U.map((Q,ee)=>s(ee===3?Math.round(255*Q):Q)).join("")}`}function m(S){S=o(S);const{values:U}=S,Q=U[0],ee=U[1]/100,ae=U[2]/100,J=ee*Math.min(ae,1-ae),M=(P,$=(P+Q/30)%12)=>ae-J*Math.max(Math.min($-3,9-$,1),-1);let N="rgb";const Z=[Math.round(M(0)*255),Math.round(M(8)*255),Math.round(M(4)*255)];return S.type==="hsla"&&(N+="a",Z.push(U[3])),h({type:N,values:Z})}function g(S){S=o(S);let U=S.type==="hsl"||S.type==="hsla"?o(m(S)).values:S.values;return U=U.map(Q=>(S.type!=="color"&&(Q/=255),Q<=.03928?Q/12.92:((Q+.055)/1.055)**2.4)),Number((.2126*U[0]+.7152*U[1]+.0722*U[2]).toFixed(3))}function _(S,U){const Q=g(S),ee=g(U);return(Math.max(Q,ee)+.05)/(Math.min(Q,ee)+.05)}function x(S,U){return S=o(S),U=n(U),(S.type==="rgb"||S.type==="hsl")&&(S.type+="a"),S.type==="color"?S.values[3]=`/${U}`:S.values[3]=U,h(S)}function y(S,U,Q){try{return x(S,U)}catch{return S}}function k(S,U){if(S=o(S),U=n(U),S.type.indexOf("hsl")!==-1)S.values[2]*=1-U;else if(S.type.indexOf("rgb")!==-1||S.type.indexOf("color")!==-1)for(let Q=0;Q<3;Q+=1)S.values[Q]*=1-U;return h(S)}function G(S,U,Q){try{return k(S,U)}catch{return S}}function v(S,U){if(S=o(S),U=n(U),S.type.indexOf("hsl")!==-1)S.values[2]+=(100-S.values[2])*U;else if(S.type.indexOf("rgb")!==-1)for(let Q=0;Q<3;Q+=1)S.values[Q]+=(255-S.values[Q])*U;else if(S.type.indexOf("color")!==-1)for(let Q=0;Q<3;Q+=1)S.values[Q]+=(1-S.values[Q])*U;return h(S)}function A(S,U,Q){try{return v(S,U)}catch{return S}}function w(S,U=.15){return g(S)>.5?k(S,U):v(S,U)}function K(S,U,Q){try{return w(S,U)}catch{return S}}function H(S,U,Q,ee=1){const ae=(Z,P)=>Math.round((Z**(1/ee)*(1-Q)+P**(1/ee)*Q)**ee),J=o(S),M=o(U),N=[ae(J.values[0],M.values[0]),ae(J.values[1],M.values[1]),ae(J.values[2],M.values[2])];return h({type:"rgb",values:N})}return ut}var Sl=J4();const as={black:"#000",white:"#fff"},X4={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"},Xn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ea={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ua={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ta={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ra={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},na={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},e_=["mode","contrastThreshold","tonalOffset"],E2={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:as.white,default:as.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}},Hc={text:{primary:as.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:as.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 x2(e,t,r,n){const a=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Sl.lighten(e.main,a):t==="dark"&&(e.dark=Sl.darken(e.main,s)))}function t_(e="light"){return e==="dark"?{main:ta[200],light:ta[50],dark:ta[400]}:{main:ta[700],light:ta[400],dark:ta[800]}}function r_(e="light"){return e==="dark"?{main:Xn[200],light:Xn[50],dark:Xn[400]}:{main:Xn[500],light:Xn[300],dark:Xn[700]}}function n_(e="light"){return e==="dark"?{main:ea[500],light:ea[300],dark:ea[700]}:{main:ea[700],light:ea[400],dark:ea[800]}}function a_(e="light"){return e==="dark"?{main:ra[400],light:ra[300],dark:ra[700]}:{main:ra[700],light:ra[500],dark:ra[900]}}function s_(e="light"){return e==="dark"?{main:na[400],light:na[300],dark:na[700]}:{main:na[800],light:na[500],dark:na[900]}}function o_(e="light"){return e==="dark"?{main:Ua[400],light:Ua[300],dark:Ua[700]}:{main:"#ed6c02",light:Ua[500],dark:Ua[900]}}function i_(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=wn(e,e_),s=e.primary||t_(t),o=e.secondary||r_(t),u=e.error||n_(t),f=e.info||a_(t),h=e.success||s_(t),p=e.warning||o_(t);function m(y){return Sl.getContrastRatio(y,Hc.text.primary)>=r?Hc.text.primary:E2.text.primary}const g=({color:y,name:k,mainShade:G=500,lightShade:v=300,darkShade:A=700})=>{if(y=Ye({},y),!y.main&&y[G]&&(y.main=y[G]),!y.hasOwnProperty("main"))throw new Error(ns(11,k?` (${k})`:"",G));if(typeof y.main!="string")throw new Error(ns(12,k?` (${k})`:"",JSON.stringify(y.main)));return x2(y,"light",v,n),x2(y,"dark",A,n),y.contrastText||(y.contrastText=m(y.main)),y},_={dark:Hc,light:E2};return Lr(Ye({common:Ye({},as),mode:t,primary:g({color:s,name:"primary"}),secondary:g({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:f,name:"info"}),success:g({color:h,name:"success"}),grey:X4,contrastThreshold:r,getContrastText:m,augmentColor:g,tonalOffset:n},_[t]),a)}const c_=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function l_(e){return Math.round(e*1e5)/1e5}const S2={textTransform:"uppercase"},T2='"Roboto", "Helvetica", "Arial", sans-serif';function u_(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=T2,fontSize:a=14,fontWeightLight:s=300,fontWeightRegular:o=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:h=16,allVariants:p,pxToRem:m}=r,g=wn(r,c_),_=a/14,x=m||(G=>`${G/h*_}rem`),y=(G,v,A,w,K)=>Ye({fontFamily:n,fontWeight:G,fontSize:x(v),lineHeight:A},n===T2?{letterSpacing:`${l_(w/v)}em`}:{},K,p),k={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(o,48,1.167,0),h4:y(o,34,1.235,.25),h5:y(o,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(o,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(o,16,1.5,.15),body2:y(o,14,1.43,.15),button:y(u,14,1.75,.4,S2),caption:y(o,12,1.66,.4),overline:y(o,12,2.66,1,S2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Lr(Ye({htmlFontSize:h,pxToRem:x,fontFamily:n,fontSize:a,fontWeightLight:s,fontWeightRegular:o,fontWeightMedium:u,fontWeightBold:f},k),g,{clone:!1})}const d_=.2,f_=.14,h_=.12;function it(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${d_})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${f_})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${h_})`].join(",")}const m_=["none",it(0,2,1,-1,0,1,1,0,0,1,3,0),it(0,3,1,-2,0,2,2,0,0,1,5,0),it(0,3,3,-2,0,3,4,0,0,1,8,0),it(0,2,4,-1,0,4,5,0,0,1,10,0),it(0,3,5,-1,0,5,8,0,0,1,14,0),it(0,3,5,-1,0,6,10,0,0,1,18,0),it(0,4,5,-2,0,7,10,1,0,2,16,1),it(0,5,5,-3,0,8,10,1,0,3,14,2),it(0,5,6,-3,0,9,12,1,0,3,16,2),it(0,6,6,-3,0,10,14,1,0,4,18,3),it(0,6,7,-4,0,11,15,1,0,4,20,3),it(0,7,8,-4,0,12,17,2,0,5,22,4),it(0,7,8,-4,0,13,19,2,0,5,24,4),it(0,7,9,-4,0,14,21,2,0,5,26,4),it(0,8,9,-5,0,15,22,2,0,6,28,5),it(0,8,10,-5,0,16,24,2,0,6,30,5),it(0,8,11,-5,0,17,26,2,0,6,32,5),it(0,9,11,-5,0,18,28,2,0,7,34,6),it(0,9,12,-6,0,19,29,2,0,7,36,6),it(0,10,13,-6,0,20,31,3,0,8,38,7),it(0,10,13,-6,0,21,33,3,0,8,40,7),it(0,10,14,-6,0,22,35,3,0,8,42,7),it(0,11,14,-7,0,23,36,3,0,9,44,8),it(0,11,15,-7,0,24,38,3,0,9,46,8)],p_=["duration","easing","delay"],g_={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)"},y_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function A2(e){return`${Math.round(e)}ms`}function v_(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function b_(e){const t=Ye({},g_,e.easing),r=Ye({},y_,e.duration);return Ye({getAutoHeightDuration:v_,create:(a=["all"],s={})=>{const{duration:o=r.standard,easing:u=t.easeInOut,delay:f=0}=s;return wn(s,p_),(Array.isArray(a)?a:[a]).map(h=>`${h} ${typeof o=="string"?o:A2(o)} ${u} ${typeof f=="string"?f:A2(f)}`).join(",")}},e,{easing:t,duration:r})}const w_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},__=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Jh(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:s={}}=e,o=wn(e,__);if(e.vars)throw new Error(ns(18));const u=i_(n),f=Qh(e);let h=Lr(f,{mixins:K4(f.breakpoints,r),palette:u,shadows:m_.slice(),typography:u_(u,s),transitions:b_(a),zIndex:Ye({},w_)});return h=Lr(h,o),h=t.reduce((p,m)=>Lr(p,m),h),h.unstable_sxConfig=Ye({},Es,o==null?void 0:o.unstable_sxConfig),h.unstable_sx=function(m){return oi({sx:m,theme:this})},h}function j9(...e){return Jh(...e)}const C_=Jh(),E_="$$material";function x_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const S_=e=>x_(e)&&e!=="classes",T_=Z4({themeId:E_,defaultTheme:C_,rootShouldForwardProp:S_});function A_(e){return Hh("MuiSvgIcon",e)}k5("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const k_=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],I_=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${bn(t)}`,`fontSize${bn(r)}`]};return S5(a,A_,n)},R_=T_("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${bn(r.color)}`],t[`fontSize${bn(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,s,o,u,f,h,p,m,g,_,x;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:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(o=s.pxToRem)==null?void 0:o.call(s,20))||"1.25rem",medium:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,24))||"1.5rem",large:((h=e.typography)==null||(p=h.pxToRem)==null?void 0:p.call(h,35))||"2.1875rem"}[t.fontSize],color:(m=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?m:{action:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),Tl=ne.forwardRef(function(t,r){const n=j5({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:o="inherit",component:u="svg",fontSize:f="medium",htmlColor:h,inheritViewBox:p=!1,titleAccess:m,viewBox:g="0 0 24 24"}=n,_=wn(n,k_),x=ne.isValidElement(a)&&a.type==="svg",y=Ye({},n,{color:o,component:u,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:x}),k={};p||(k.viewBox=g);const G=I_(y);return d.jsxs(R_,Ye({as:u,className:N5(G.root,s),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r},k,_,x&&a.props,{ownerState:y,children:[x?a.props.children:a,m?d.jsx("title",{children:m}):null]}))});Tl.muiName="SvgIcon";function N_(e,t){function r(n,a){return d.jsx(Tl,Ye({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=Tl.muiName,ne.memo(ne.forwardRef(r))}const P_={configure:e=>{Uh.configure(e)}},O_=Object.freeze(Object.defineProperty({__proto__:null,capitalize:bn,createChainedFunction:r5,createSvgIcon:N_,debounce:n5,deprecatedPropType:a5,isMuiElement:s5,ownerDocument:$h,ownerWindow:o5,requirePropFactory:i5,setRef:Dh,unstable_ClassNameGenerator:P_,unstable_useEnhancedEffect:qh,unstable_useId:l5,unsupportedProp:u5,useControlled:d5,useEventCallback:f5,useForkRef:h5,useIsFocusVisible:x5},Symbol.toStringTag,{value:"Module"})),j_=Jr(O_);var k2;function L_(){return k2||(k2=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=j_})(Bc)),Bc}var I2;function M_(){if(I2)return qa;I2=1;var e=su();Object.defineProperty(qa,"__esModule",{value:!0}),qa.default=void 0;var t=e(L_()),r=T1();return qa.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"),qa}var B_=M_();const Xh=Do(B_);async function F_(e,t=4){const r=new URLSearchParams({search:e,first:String(t)}),n=await fetch(`${He.marketplaceServerUrl}/v1/collections?${r.toString()}`);if(!n.ok)throw new Error(`fetchCollectionSuggestions ${n.status}`);const{data:a}=await n.json();return(a??[]).filter(s=>s.contractAddress&&s.name).map(s=>({contractAddress:s.contractAddress,name:s.name,creator:s.creator??""}))}async function $_(e,t){var o,u,f;const r=new URLSearchParams({category:"ens",search:e,first:String(t)}),n=await fetch(`${He.marketplaceServerUrl}/v1/nfts?${r.toString()}`);if(!n.ok)throw new Error(`fetchNameOwners ${n.status}`);const{data:a}=await n.json(),s=new Map;for(const h of a??[]){const p=(u=(o=h.nft)==null?void 0:o.owner)==null?void 0:u.toLowerCase(),m=(f=h.nft)==null?void 0:f.name;p&&m&&!s.has(p)&&s.set(p,m)}return s}async function D_(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(`${He.marketplaceServerUrl}/v1/accounts?${t.toString()}`);if(!r.ok)throw new Error(`fetchSellerCounts ${r.status}`);const{data:n}=await r.json(),a=new Map;for(const s of n??[])(s.collections??0)>0&&a.set(s.address.toLowerCase(),s.collections??0);return a}async function q_(e,t=4,r=20){const n=e.trim();if(!n)return[];const a=await $_(n,r);if(a.size===0)return[];const s=await D_([...a.keys()]),o=[...a.keys()].filter(u=>s.has(u)).slice(0,t);return o.length===0?[]:Promise.all(o.map(async u=>{var h,p;const f=await ah(u);return{address:u,name:(f==null?void 0:f.name)||(a.get(u)??u),face:(p=(h=f==null?void 0:f.avatar)==null?void 0:h.snapshots)==null?void 0:p.face256}}))}function U_(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 uu(e){var t,r,n,a,s,o,u,f;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)??((a=(n=e.data)==null?void 0:n.emote)==null?void 0:a.category),rarity:e.rarity??"common",isSmart:!!((o=(s=e.data)==null?void 0:s.wearable)!=null&&o.isSmart),network:e.network,chainId:e.chainId,thumbnail:e.thumbnail??"",priceCredits:e.priceCredits??0,gender:U_((f=(u=e.data)==null?void 0:u.wearable)==null?void 0:f.bodyShapes)}}async function H_(e,{first:t=20,skip:r=0,category:n,rarities:a,wearableCategories:s,minPriceCredits:o,maxPriceCredits:u,sortBy:f}={}){const h=new URLSearchParams({contractAddress:e,first:String(t),skip:String(r),includeSocialEmotes:"false"});n&&n!=="all"&&h.set("category",n),a==null||a.forEach(x=>h.append("rarity",x)),s==null||s.forEach(x=>h.append("wearableCategory",x)),o!=null&&h.set("minPrice",String(o)),u!=null&&h.set("maxPrice",String(u)),f&&h.set("sortBy",f);const p=await fetch(`${He.marketplaceServerUrl}/v3/catalog/items?${h.toString()}`);if(!p.ok)throw new Error(`fetchCollectionItems ${p.status}`);const{data:m,total:g}=await p.json(),_=(m??[]).map(uu);return{items:_,total:g??r+_.length}}async function L9({first:e=48,skip:t=0,category:r,rarities:n,wearableCategories:a,search:s,sortBy:o,isWearableSmart:u,isOnSale:f}={}){const h=new URLSearchParams({first:String(e),skip:String(t),includeSocialEmotes:"false"});r&&r!=="all"&&h.set("category",r),n==null||n.forEach(x=>h.append("rarity",x)),a==null||a.forEach(x=>h.append("wearableCategory",x)),s&&h.set("search",s),o&&h.set("sortBy",o),u&&h.set("isWearableSmart","true"),f!=null&&h.set("isOnSale",String(f));const p=await fetch(`${He.marketplaceServerUrl}/v3/catalog/items?${h.toString()}`);if(!p.ok)throw new Error(`fetchCatalogItems ${p.status}`);const{data:m,total:g}=await p.json(),_=(m??[]).map(uu);return{items:_,total:g??t+_.length}}async function V_(e,{first:t=60,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),includeSocialEmotes:"false"}),a=await fetch(`${He.marketplaceServerUrl}/v3/catalog/items?${n.toString()}`);if(!a.ok)throw new Error(`fetchCreatorItems ${a.status}`);const{data:s,total:o}=await a.json(),u=(s??[]).map(uu);return{items:u,total:o??r+u.length}}async function M9(e,{first:t=24,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),sortBy:"newest"}),a=await fetch(`${He.marketplaceServerUrl}/v1/collections?${n.toString()}`);if(!a.ok)throw new Error(`fetchCreatorCollections ${a.status}`);const{data:s,total:o}=await a.json(),u=(s??[]).map(f=>({contractAddress:f.contractAddress,name:f.name??"",creator:f.creator??"",itemCount:f.size??0}));return{collections:u,total:o??r+u.length}}async function B9(e){const t=new URLSearchParams({contractAddress:e,first:"1"}),r=await fetch(`${He.marketplaceServerUrl}/v1/collections?${t.toString()}`);if(!r.ok)throw new Error(`fetchCollection ${r.status}`);const{data:n}=await r.json(),a=n==null?void 0:n[0];return a&&a.contractAddress?{contractAddress:a.contractAddress,name:a.name??"",creator:a.creator??""}:null}const R2="radial-gradient(#c0bdc6, #a09ba8)",N2="#E6E6E6";function e1(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 z_([e,t,r]){return .299*e+.587*t+.114*r}function t1(e){return e&&rt.Rarity.getColor(e.toLowerCase())||N2}function P2(e,t=.3){const r=e1(t1(e));return r?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${t})`:`rgba(160, 155, 168, ${t})`}function O2(e,t=120){const r=t1(e),n=e1(r);if(!n)return"#161518";const a=z_(n);if(a<=t)return r;const s=t/a,o=u=>Math.round(u*s).toString(16).padStart(2,"0");return`#${o(n[0])}${o(n[1])}${o(n[2])}`}function j2(e){const t=Ch(e??"Common");try{const r=rt.Rarity.getMaxSupply((e??"common").toLowerCase());if(r>0)return`${t} rarity — only ${r.toLocaleString()} can ever be minted`}catch{}return`${t} rarity`}function G_(e){try{const[t,r]=rt.Rarity.getGradient((e??"common").toLowerCase());return!t||!r?R2:`radial-gradient(${t}, ${r})`}catch{return R2}}const r1=4;function W_(e,t=!0){return Yr({queryKey:["collection-preview",e],queryFn:()=>H_(e,{first:r1}),enabled:t,staleTime:5*6e4})}function Z_({items:e,className:t}){const r=e.slice(0,r1);return d.jsx("span",{className:`coll-thumb${t?` ${t}`:""}`,"data-count":r.length,"aria-hidden":!0,children:r.map(n=>d.jsx("span",{className:"coll-thumb__cell","data-testid":"coll-thumb-cell",style:{backgroundImage:G_(n.rarity)},children:n.thumbnail?d.jsx("img",{src:n.thumbnail,alt:"",loading:"lazy"}):null},n.id))})}function K_({contractAddress:e,className:t,fallback:r=null}){const{data:n}=W_(e),a=(n==null?void 0:n.items)??[];return a.length===0?d.jsx(d.Fragment,{children:r}):d.jsx(Z_,{items:a,className:t})}function Y_(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function L2({address:e,className:t}){const{data:r}=ys(e),n=(r==null?void 0:r.name)||Y_(e);return d.jsx("span",{className:t,children:se("search.byCreator",{name:n})})}function Q_({contractAddress:e}){return d.jsx(K_,{contractAddress:e,className:"search-pop__collthumb",fallback:d.jsx("span",{className:"search-pop__thumb search-pop__thumb--icon",children:d.jsx(ct,{name:"search"})})})}const J_=5,X_=2;function e6({query:e,recent:t,onSelectItem:r,onSelectCollection:n,onSelectCreator:a,onRunSearch:s,onRemoveRecent:o,onClearRecent:u}){const f=e.length>=X_,{data:h,isFetching:p}=Yr({queryKey:["search-suggest",e],queryFn:()=>Rh({search:e,first:J_}),enabled:f,placeholderData:Ci,staleTime:3e4}),{data:m=[]}=Yr({queryKey:["search-suggest-collections",e],queryFn:()=>F_(e),enabled:f,placeholderData:Ci,staleTime:3e4}),{data:g=[]}=Yr({queryKey:["search-suggest-creators",e],queryFn:()=>q_(e),enabled:f,placeholderData:Ci,staleTime:3e4}),_=f?(h==null?void 0:h.items)??[]:[],x=(h==null?void 0:h.total)??0;if(!f)return t.length===0?null:d.jsxs("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":se("search.suggestions"),children:[d.jsxs("div",{className:"search-pop__section-head",children:[d.jsx("span",{children:se("search.recent")}),d.jsx("button",{type:"button",className:"search-pop__clear",onClick:u,children:se("search.clearRecent")})]}),d.jsx("ul",{className:"search-pop__list",children:t.map(k=>d.jsxs("li",{className:"search-pop__recent",children:[d.jsxs("button",{type:"button",className:"search-pop__recent-btn",onClick:()=>s(k),children:[d.jsx(ct,{name:"search",size:16,color:"var(--muted)"}),d.jsx("span",{className:"search-pop__recent-text",children:k})]}),d.jsx("button",{type:"button",className:"search-pop__recent-remove","aria-label":se("search.removeRecent",{query:k}),onClick:()=>o(k),children:d.jsx(Xh,{})})]},k))})]});const y=_.length===0&&m.length===0&&g.length===0;return d.jsx("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":se("search.suggestions"),children:y?d.jsx("p",{className:"search-pop__empty",children:p?se("search.searching"):se("search.noResults",{query:e})}):d.jsxs(d.Fragment,{children:[_.length>0?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"search-pop__section-head",children:d.jsx("span",{children:se("search.items")})}),d.jsx("ul",{className:"search-pop__list",children:_.map(k=>d.jsx("li",{children:d.jsxs("button",{type:"button",className:"search-pop__row","data-testid":"search-pop-row","data-kind":"item",onClick:()=>r(k),children:[d.jsx("span",{className:"search-pop__thumb",children:k.thumbnail?d.jsx("img",{src:k.thumbnail,alt:""}):null}),d.jsxs("span",{className:"search-pop__text",children:[d.jsx("span",{className:"search-pop__name",title:k.name,children:k.name}),k.creator?d.jsx(L2,{address:k.creator,className:"search-pop__sub"}):null]}),d.jsxs("span",{className:"search-pop__price",children:[d.jsx(Xt,{className:"ccy-mark"})," ",k.priceCredits]})]})},k.id))})]}):null,m.length>0?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"search-pop__section-head",children:d.jsx("span",{children:se("search.collections")})}),d.jsx("ul",{className:"search-pop__list",children:m.map(k=>d.jsx("li",{children:d.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--collection","data-testid":"search-pop-row","data-kind":"collection",onClick:()=>n(k),children:[d.jsx(Q_,{contractAddress:k.contractAddress}),d.jsxs("span",{className:"search-pop__text",children:[d.jsx("span",{className:"search-pop__name",title:k.name,children:k.name}),k.creator?d.jsx(L2,{address:k.creator,className:"search-pop__sub"}):null]})]})},k.contractAddress))})]}):null,g.length>0?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"search-pop__section-head",children:d.jsx("span",{children:se("search.creators")})}),d.jsx("ul",{className:"search-pop__list",children:g.map(k=>d.jsx("li",{children:d.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--creator","data-testid":"search-pop-row","data-kind":"creator",onClick:()=>a(k),children:[d.jsx("span",{className:"search-pop__thumb search-pop__thumb--round",children:k.face?d.jsx("img",{src:k.face,alt:""}):null}),d.jsx("span",{className:"search-pop__text",children:d.jsx("span",{className:"search-pop__name",title:k.name,children:k.name})})]})},k.address))})]}):null,x>0?d.jsx("button",{type:"button",className:"search-pop__seeall",onClick:()=>s(e),children:se("search.seeAll",{count:x.toLocaleString()})}):null]})})}const t6=new Set([rt.ProviderType.INJECTED,rt.ProviderType.METAMASK_MOBILE,rt.ProviderType.FORTMATIC,rt.ProviderType.WALLET_CONNECT,rt.ProviderType.WALLET_CONNECT_V2,rt.ProviderType.WALLET_LINK]);function r6(e){return!!e&&t6.has(e)}const ii="shop:recent-searches",n1=8;function $o(){try{const e=localStorage.getItem(ii);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"&&r.length>0).slice(0,n1):[]}catch{return[]}}function To(e){const t=e.trim();if(t)try{const r=[t,...$o().filter(n=>n.toLowerCase()!==t.toLowerCase())].slice(0,n1);localStorage.setItem(ii,JSON.stringify(r))}catch{}}function n6(e){try{const t=$o().filter(r=>r.toLowerCase()!==e.trim().toLowerCase());localStorage.setItem(ii,JSON.stringify(t))}catch{}}function a6(){try{localStorage.removeItem(ii)}catch{}}function s6(){const{session:e,connecting:t,signIn:r,disconnect:n,restore:a}=Hn(),s=e==null?void 0:e.address,{data:o,isLoading:u}=ys(s),{data:f,isError:h,isLoading:p}=b3(e),m=Ht(Y=>Y.items.reduce((ce,ie)=>ce+ie.quantity,0)),g=Ht(Y=>Y.setOpen),_=qo(),[x]=A1(),{pathname:y}=uf(),k=/^\/(assets|item|collection|creator)(\/|$)/.test(y),G=x.get("q")??"",[v,A]=ne.useState(G),[w,K]=ne.useState(G),[H,S]=ne.useState(!1),[U,Q]=ne.useState([]),ee=ne.useRef(),ae=ne.useRef(null);ne.useEffect(()=>{a()},[a]),ne.useEffect(()=>{A(G),K(G)},[G]),ne.useEffect(()=>{if(!H)return;const Y=ce=>{ae.current&&!ae.current.contains(ce.target)&&S(!1)};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[H]);function J(){Q($o()),S(!0)}function M(Y){const ce=Y.trim();S(!1),ce&&To(ce),_(ce?`/assets?q=${encodeURIComponent(ce)}`:"/assets",{replace:!0})}function N(Y){S(!1),v.trim()&&To(v.trim()),hr("Shop Search Suggestion Clicked",{query:v.trim(),type:"item",item_id:Y.id});const ce=Y.tokenId??Y.itemId;Y.contractAddress&&ce?_(`/item/${Y.contractAddress}/${ce}`,{state:{item:Y,tradeId:Y.tradeId}}):M(v)}function Z(Y){S(!1),v.trim()&&To(v.trim()),hr("Shop Search Suggestion Clicked",{query:v.trim(),type:"collection",contract_address:Y.contractAddress}),_(`/collection/${Y.contractAddress}`)}function P(Y){S(!1),v.trim()&&To(v.trim()),hr("Shop Search Suggestion Clicked",{query:v.trim(),type:"creator",creator_address:Y.address}),_(`/assets/creator/${Y.address}`)}function $(Y){A(Y),S(!0),ee.current&&clearTimeout(ee.current),ee.current=setTimeout(()=>K(Y.trim()),300)}function V(){A(""),K(""),S(!1),_("/assets",{replace:!0})}function R(Y){n6(Y),Q($o())}function j(){a6(),Q([])}function W(Y){if(Y.key==="Escape"){S(!1);return}Y.key==="Enter"&&(ee.current&&clearTimeout(ee.current),M(v))}return d.jsxs(d.Fragment,{children:[d.jsx(Pg,{activePage:"shop",isSignedIn:!!e,isSigningIn:t,isLoadingProfile:!!e&&u,address:s,avatar:o,onClickSignIn:()=>r(),onClickSignOut:()=>void n()}),d.jsxs("div",{className:"subnav",children:[d.jsxs("nav",{className:"subnav__tabs",children:[d.jsx(Cn,{to:"/overview",children:se("nav.overview")}),d.jsx(Cn,{to:"/assets",className:()=>k?"active":"",children:se("nav.collectibles")}),d.jsx(Cn,{to:"/my-assets",children:se("nav.myAssets")}),e?d.jsx(Cn,{to:"/activity",children:se("nav.activity")}):null,e&&r6(e.providerType)?d.jsx(Cn,{to:"/authorizations",children:se("nav.authorizations")}):null]}),d.jsxs("div",{className:"subnav__search",ref:ae,children:[d.jsx(ct,{name:"search",color:"var(--muted)"}),d.jsx("input",{value:v,"aria-label":se("nav.searchAria"),placeholder:se("nav.searchPlaceholder"),onChange:Y=>$(Y.target.value),onFocus:J,onKeyDown:W}),v?d.jsx("button",{type:"button",className:"subnav__search-clear","data-testid":"subnav-search-clear","aria-label":se("search.clear"),onClick:V,children:d.jsx(Xh,{})}):null,H?d.jsx(e6,{query:w,recent:U,onSelectItem:N,onSelectCollection:Z,onSelectCreator:P,onRunSearch:M,onRemoveRecent:R,onClearRecent:j}):null]}),e?d.jsxs("span",{className:"subnav__balance","data-testid":"subnav-balance",title:se("nav.yourBalance",{currency:Sa.name}),children:[d.jsx(Xt,{className:"subnav__balance-ico"}),p?d.jsx("span",{className:"skeleton subnav__balance-skel","aria-hidden":!0}):w3(f,h)]}):null,d.jsxs(Cn,{to:"/credits",className:"subnav__credits",children:[d.jsx(Xt,{className:"subnav__credits-ico"}),se("nav.getCredits",{currency:Sa.name})]}),d.jsx(Cn,{to:"/my-favorites",className:"subnav__fav","aria-label":se("nav.myFavorites"),children:d.jsx(ct,{name:"heart"})}),d.jsxs("div",{className:"subnav__cart-wrap",children:[d.jsxs("button",{type:"button",className:"subnav__cart","data-testid":"subnav-cart","aria-label":se("nav.cart"),onClick:()=>m>0?g(!0):_("/cart"),children:[d.jsx(ct,{name:"cart",size:28}),m>0?d.jsx("span",{className:"subnav__cart-badge","data-testid":"subnav-cart-badge",children:m}):null]}),d.jsx(Ww,{})]})]})]})}let o6=0;const Za=Un(e=>({toasts:[],push:t=>{const r=++o6;return e(n=>({toasts:[...n.toasts,{...t,id:r}]})),r},dismiss:t=>e(r=>({toasts:r.toasts.filter(n=>n.id!==t)}))})),F9={success:e=>Za.getState().push({message:e,kind:"success"}),error:e=>Za.getState().push({message:e,kind:"error"}),info:e=>Za.getState().push({message:e,kind:"info"})},i6=Wf`
157
- from {
158
- opacity: 0;
159
- transform: translateX(24px) scale(0.96);
160
- }
161
- to {
162
- opacity: 1;
163
- transform: translateX(0) scale(1);
164
- }
165
- `,c6=_t.div`
166
- position: fixed;
167
- top: 18px;
168
- right: 18px;
169
- z-index: 1000;
170
- display: flex;
171
- flex-direction: column;
172
- gap: 10px;
173
- max-width: min(92vw, 380px);
174
- `,l6=_t.span`
175
- flex: 0 0 22px;
176
- width: 22px;
177
- height: 22px;
178
- border-radius: 50%;
179
- display: grid;
180
- place-items: center;
181
- color: ${Me.colors.white};
182
- font-weight: 800;
183
- font-size: 13px;
184
- background: ${Me.colors.accent};
185
-
186
- &[data-kind='success'] {
187
- background: ${Me.colors.okStrong};
188
- }
189
- &[data-kind='error'] {
190
- background: ${Me.colors.errStrong};
191
- }
192
- `,u6=_t.span`
193
- font-size: 14px;
194
- font-weight: 600;
195
- line-height: 1.35;
196
- `,d6=_t.div`
197
- display: flex;
198
- align-items: center;
199
- gap: 12px;
200
- padding: 13px 16px;
201
- border-radius: ${Me.radius.card};
202
- background: ${Me.colors.white};
203
- color: ${Me.colors.text};
204
- box-shadow: 0 12px 32px rgba(20, 20, 30, 0.18);
205
- cursor: pointer;
206
- border-left: 4px solid ${Me.colors.accent};
207
- animation: ${i6} 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
208
-
209
- &[data-kind='success'] {
210
- border-left-color: ${Me.colors.okStrong};
211
- }
212
- &[data-kind='error'] {
213
- border-left-color: ${Me.colors.errStrong};
214
- }
215
-
216
- @media (prefers-reduced-motion: reduce) {
217
- animation: none;
218
- }
219
- `,f6={success:"✓",error:"!",info:"i"};function h6({t:e}){const t=Za(r=>r.dismiss);return ne.useEffect(()=>{const r=setTimeout(()=>t(e.id),4500);return()=>clearTimeout(r)},[e.id,t]),d.jsxs(d6,{"data-testid":"toast","data-kind":e.kind,role:e.kind==="error"?"alert":"status",onClick:()=>t(e.id),children:[d.jsx(l6,{"data-kind":e.kind,"aria-hidden":!0,children:f6[e.kind]}),d.jsx(u6,{children:e.message})]})}function m6(){const e=Za(t=>t.toasts);return e.length===0?null:d.jsx(c6,{"data-testid":"toaster","aria-live":"polite",children:e.map(t=>d.jsx(h6,{t},t.id))})}const p6=10,g6=4,y6=4,v6=3e4;function b6(){if(!(typeof navigator>"u"))return navigator.connection}function w6(){if(!(typeof navigator>"u"))return navigator.deviceMemory}function _6(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(`(max-width: ${gl.mobile}px)`).matches}function C6(){if(typeof performance>"u"||typeof performance.getEntriesByType!="function")return null;let e=null;for(const t of performance.getEntriesByType("resource"))if(t.transferSize>=v6&&t.duration>0){const r=t.transferSize*8/1e6/(t.duration/1e3);(e===null||r>e)&&(e=r)}return e}function E6(){const e=o=>({renderer:rt.PreviewRenderer.BABYLON,reason:o});if(_6())return e("mobile");const t=b6();if(t!=null&&t.saveData)return e("save-data");const r=C6(),n=t==null?void 0:t.downlink;if(r!==null&&r<p6)return e("slow-connection");if(r===null&&typeof n=="number"&&n>0&&n<g6)return e("slow-connection");const a=w6();if(a!==void 0&&a<y6)return e("low-device-memory");const s=r!==null||typeof n=="number";return{renderer:rt.PreviewRenderer.UNITY,reason:s?"connection-ok":"optimistic-default"}}const x6=ne.lazy(()=>Et(()=>import("./index-DQ1f3JN6.js"),__vite__mapDeps([14,1,2,15,6,16,4,17,18,3,19,20,7,8])).then(e=>({default:e.WearablePreview})));function S6(e,t){if(!e)return!1;const r=E6();return r.renderer===rt.PreviewRenderer.BABYLON&&r.reason!=="mobile"&&hr("Shop Preview Renderer Fallback",{reason:r.reason,preview_id:t??null}),r.renderer===rt.PreviewRenderer.UNITY}function a1({unity:e=!1,unityMode:t=rt.PreviewUnityMode.MARKETPLACE,onError:r,onLoad:n,onRenderer:a,...s}){const[o,u]=ne.useState(()=>S6(e,s.id));return d.jsx(ne.Suspense,{fallback:null,children:d.jsx(x6,{...s,unity:o,unityMode:o?t:void 0,onLoad:f=>{a==null||a(f??rt.PreviewRenderer.BABYLON),n==null||n(f)},onError:f=>{u(!1),a==null||a(rt.PreviewRenderer.BABYLON),r==null||r(f)}})})}function T6(e){return e.itemId?`urn:decentraland:${He.chainId===80002?"amoy":"matic"}:collections-v2:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}const oa=rt.BodyShape.MALE,ia=rt.BodyShape.FEMALE;function Al(e){if(e.category==="emote")return[oa,ia];switch(e.gender){case"male":return[oa];case"female":return[ia];default:return[oa,ia]}}function s1(e){var r;const t=(r=e==null?void 0:e.avatar)==null?void 0:r.bodyShape;return t?t.includes("BaseFemale")?ia:oa:null}function ci(e,t){return t==null||Al(e).includes(t)}function M2(e){return se(e===ia?"bodyShape.female":"bodyShape.male")}function A6(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?ia:oa}function qn(e){return e.category!=="emote"}function Ta(e){return qn(e)?e.wearableCategory??`unknown:${e.id}`:null}const k6=new Set(["hat","helmet","mask","tiara","top_head","hair","facial_hair","eyewear","earring","eyes","eyebrows","mouth"]);function I6(e){if(!qn(e))return"item";const t=e.wearableCategory;return t?k6.has(t)?"head":t==="upper_body"?"upper":t==="lower_body"?"lower":t==="feet"?"feet":t==="hands"||t==="hands_wear"?"hands":"item":"item"}function B2(e,t=null){const r=new Set,n=new Set;for(const a of e){const s=Ta(a);s==null||n.has(s)||ci(a,t)&&(n.add(s),r.add(a.id))}return r}function R6(e,t,r){if(!qn(t))return e;const n=new Set(e);if(n.has(t.id))return n.delete(t.id),n;const a=Ta(t);if(a!=null)for(const s of r)s.id!==t.id&&n.has(s.id)&&Ta(s)===a&&n.delete(s.id);return n.add(t.id),n}function N6(e){const t=new Map;for(const n of e){const a=Ta(n);if(a==null)continue;const s=t.get(a)??[];s.push(n.id),t.set(a,s)}const r=new Set;for(const n of t.values())n.length>1&&n.forEach(a=>r.add(a));return r}function P6(e,t,r=null){const n=[];for(const a of e){if(!t.has(a.id)||!qn(a)||!ci(a,r))continue;const s=T6(a);s&&n.push(s)}return n}const O6=_t.button`
220
- border: 0;
221
- border-radius: ${Me.radius.btn};
222
- padding: 12px 22px;
223
- font-weight: 700;
224
- font-size: 15px;
225
- background: ${Me.colors.blackBtn};
226
- color: ${Me.colors.white};
227
- text-decoration: none; /* so an as=Link / as=a element renders without an underline; no-op on button */
228
- transition:
229
- background 0.15s ease,
230
- filter 0.15s ease,
231
- transform 0.12s ease;
232
-
233
- &:disabled {
234
- opacity: 0.55;
235
- cursor: default;
236
- }
237
-
238
- /* Primary CTA = Amethyst gradient (Figma "Add to cart" primary), solid purple on hover/press. */
239
- &[data-variant='purple'] {
240
- background: ${Me.gradients.amethyst};
241
- color: ${Me.colors.softWhite};
242
- text-transform: uppercase;
243
- letter-spacing: 0.046em;
244
- font-size: 13px;
245
- }
246
- &[data-variant='purple']:hover:not(:disabled) {
247
- background: ${Me.colors.accent};
248
- }
249
- &[data-variant='purple']:active:not(:disabled) {
250
- background: ${Me.colors.accent};
251
- transform: translateY(1px);
252
- }
253
-
254
- /* Outlined primary (Figma outlined variant): magenta border, purple label. */
255
- &[data-variant='outline'] {
256
- background: ${Me.colors.white};
257
- border: 2px solid ${Me.colors.magenta};
258
- color: ${Me.colors.accent};
259
- text-transform: uppercase;
260
- letter-spacing: 0.046em;
261
- font-size: 13px;
262
- font-weight: 600;
263
- }
264
- &[data-variant='outline']:hover:not(:disabled) {
265
- background: rgba(198, 64, 205, 0.06);
266
- }
267
-
268
- &[data-variant='ghost'] {
269
- background: ${Me.colors.white};
270
- border: 1px solid ${Me.colors.lineStrong};
271
- color: ${Me.colors.text};
272
- }
273
-
274
- &[data-size='sm'] {
275
- padding: 8px 12px;
276
- font-size: 13px;
277
- }
278
- `;function j6({as:e,variant:t="default",size:r="md",...n},a){const s=O6;return d.jsx(s,{as:e,ref:a,"data-variant":t,"data-size":r,...n})}const li=ne.forwardRef(j6),L6=ne.lazy(()=>Et(()=>import("./AnimatedBackground-DKAviRVb.js"),__vite__mapDeps([21,1,22]))),M6=_t(li)`
279
- flex: none;
280
- `,B6={head:"slot-head",upper:"slot-upper",lower:"slot-lower",feet:"slot-feet",hands:"slot-hands",item:"slot-item"};function F2(e){return!e||e.startsWith("unknown:")?se("fittingRoom.wearable"):e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g," ")}function F6(){const e=Ht(K=>K.fittingOpen),t=Ht(K=>K.setFittingOpen),r=Ht(K=>K.items),n=Ht(K=>K.remove),a=qo(),s=Hn(K=>{var H;return(H=K.session)==null?void 0:H.address}),{data:o,isFetched:u}=ys(s),f=!s||u,h=!!s&&!!o,p=h?s:"default",m=s1(o)??A6(r)??oa,[g,_]=ne.useState(()=>B2(r,m)),[x,y]=ne.useState(!1);ne.useEffect(()=>{e&&_(B2(r,m))},[e,m]),ne.useEffect(()=>{const K=new Set(r.map(H=>H.id));_(H=>{const S=new Set([...H].filter(U=>K.has(U)));return S.size===H.size?H:S})},[r]);const k=ne.useMemo(()=>N6(r),[r]),G=ne.useMemo(()=>P6(r,g,m),[r,g,m]),v=r.reduce((K,H)=>K+H.priceCredits*H.quantity,0),A=G.join(",");ne.useEffect(()=>{y(!1)},[A,p]);const w=ne.useRef(!1);return ne.useEffect(()=>{if(!e){w.current=!1;return}w.current||(w.current=!0,hr("Shop Tried On Outfit",{cart_size:r.length,wearables:r.filter(qn).length,emotes:r.filter(K=>!qn(K)).length,cart_value_credits:v}))},[e,r,v]),ne.useEffect(()=>{if(!e)return;const K=H=>{H.key==="Escape"&&t(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[e,t]),!e||r.length===0?null:d.jsxs("div",{className:"fitting",role:"dialog","aria-modal":"true","aria-label":se("fittingRoom.title"),children:[d.jsx("div",{className:"fitting__scrim",onClick:()=>t(!1)}),d.jsxs("div",{className:"fitting__panel",children:[d.jsx("button",{className:"fitting__close",onClick:()=>t(!1),"aria-label":se("fittingRoom.close"),children:"×"}),d.jsxs("div",{className:"fitting__stage",children:[d.jsx(ne.Suspense,{fallback:null,children:d.jsx(L6,{})}),f?G.length>0?d.jsxs(d.Fragment,{children:[d.jsx(a1,{profile:p,bodyShape:h?void 0:m,urns:G,type:rt.PreviewType.AVATAR,emote:rt.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0,dev:He.chainId===80002,unity:!0,onLoad:()=>y(!0)},p),x?null:d.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:d.jsx("span",{className:"fitting__spinner"})})]}):d.jsxs("div",{className:"fitting__empty-stage",children:[d.jsx("p",{children:se("fittingRoom.emptyStageTitle")}),d.jsx("p",{className:"muted",children:se("fittingRoom.emptyStageBody")})]}):d.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:d.jsx("span",{className:"fitting__spinner"})})]}),d.jsxs("div",{className:"fitting__side",children:[d.jsxs("div",{className:"fitting__head",children:[d.jsx("h2",{className:"fitting__title",children:se("fittingRoom.title")}),d.jsx("p",{className:"fitting__sub muted",children:se("fittingRoom.sub")})]}),d.jsx("div",{className:"fitting__items",children:r.map(K=>{const H=qn(K),S=H&&!ci(K,m),U=g.has(K.id),Q=k.has(K.id);return d.jsxs("div",{className:`fitting-row${U?" is-on":""}${S?" is-incompatible":""}`,"data-testid":"fitting-row",children:[d.jsxs("label",{className:"fitting-row__toggle",children:[d.jsx("input",{type:"checkbox",checked:U,disabled:!H||S,onChange:()=>_(ee=>R6(ee,K,r))}),d.jsx("span",{className:"fitting-row__box","aria-hidden":!0})]}),d.jsx("div",{className:"fitting-row__thumb",children:K.thumbnail?d.jsx("img",{src:K.thumbnail,alt:K.name}):null}),d.jsxs("div",{className:"fitting-row__info",children:[d.jsx("div",{className:"fitting-row__name",title:K.name,children:K.name}),d.jsxs("div",{className:"fitting-row__meta",children:[d.jsx(ct,{name:B6[H?I6(K):"item"],size:16,color:"var(--muted)",title:H?F2(Ta(K)):se("fittingRoom.emote"),role:"img","aria-label":H?F2(Ta(K)):se("fittingRoom.emote")}),Q&&!S?d.jsx("span",{className:"fitting-row__conflict",title:se("fittingRoom.conflictTooltip"),children:se("fittingRoom.onePerSlot")}):null,S?d.jsx("span",{className:"fitting-row__incompat",title:se("fittingRoom.madeForShape",{shape:M2(Al(K)[0])}),children:se("fittingRoom.shapeOnly",{shape:M2(Al(K)[0])})}):null]})]}),d.jsxs("div",{className:"fitting-row__price",children:[d.jsx(Xt,{className:"fitting-row__diamond"}),K.priceCredits]}),d.jsx("button",{className:"fitting-row__remove",onClick:()=>n(K.id),"aria-label":se("fittingRoom.removeFromCart",{name:K.name}),title:se("fittingRoom.remove"),children:d.jsx(ct,{name:"trash",size:18})})]},K.id)})}),d.jsxs("div",{className:"fitting__foot",children:[d.jsxs("div",{className:"fitting__total",children:[se("fittingRoom.itemCount",{count:r.length})," ·"," ",d.jsxs("strong",{children:[Sa.symbol," ",v]})]}),d.jsx(M6,{variant:"purple",onClick:()=>{t(!1),a("/cart")},children:se("fittingRoom.checkout")})]})]})]})]})}const o1="shop:locale";function $6(){var e;try{const t=new URLSearchParams(window.location.search).get("lang");if(t&&Oo.includes(t))return t;const r=localStorage.getItem(o1);if(r&&Oo.includes(r))return r;const n=(e=navigator.language)==null?void 0:e.slice(0,2);if(n&&Oo.includes(n))return n}catch{}return"en"}const kl=Un(e=>({locale:$6(),setLocale:t=>{try{localStorage.setItem(o1,t)}catch{}e({locale:t})}})),D6="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",$2=[{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/"}],D2=[{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"}],q6=[{name:"Discord",url:"https://dcl.gg/discord",icon:V6},{name:"GitHub",url:"https://github.com/decentraland",icon:z6},{name:"X",url:"https://x.com/decentraland",icon:G6},{name:"Instagram",url:"https://instagram.com/decentraland_foundation/",icon:W6},{name:"YouTube",url:"https://youtube.com/@decentraland_foundation",icon:Z6},{name:"TikTok",url:"https://tiktok.com/@decentraland_fdn",icon:K6},{name:"LinkedIn",url:"https://linkedin.com/company/decentralandorg",icon:Y6}],U6=[{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/"}],Ao={en:{label:"English",flag:"🇺🇸"},es:{label:"Español",flag:"🇪🇸"}};function q2(){return d.jsx("div",{className:"dcl-footer__social",children:q6.map(({name:e,url:t,icon:r})=>d.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":e,children:d.jsx(r,{})},e))})}function H6(){const e=kl(h=>h.locale),t=kl(h=>h.setLocale),[r,n]=ne.useState(null),[a,s]=ne.useState(!1),o=ne.useRef(null),u=Ao[e]??Ao.en;ne.useEffect(()=>{if(!a)return;const h=p=>{o.current&&!o.current.contains(p.target)&&s(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[a]);const f=h=>n(p=>p===h?null:h);return d.jsxs("footer",{className:"dcl-footer",children:[d.jsxs("div",{className:"dcl-footer__main",children:[d.jsxs("div",{className:"dcl-footer__left",children:[d.jsx("span",{className:"dcl-footer__wordmark",children:"Decentraland"}),d.jsxs("div",{className:"dcl-footer__news",children:[d.jsx("p",{className:"dcl-footer__news-title",children:se("footer.newsletterTitle")}),d.jsx("iframe",{className:"dcl-footer__news-frame",src:D6,height:"65",frameBorder:"0",scrolling:"no",title:se("footer.newsletterFrameTitle")})]}),d.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--desktop",children:[d.jsx("p",{className:"dcl-footer__label",children:se("footer.connect")}),d.jsx(q2,{})]})]}),d.jsxs("div",{className:"dcl-footer__right",children:[d.jsxs("div",{className:"dcl-footer__col",children:[d.jsx("p",{className:"dcl-footer__label",children:se("footer.gettingStarted")}),$2.map(h=>d.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:se(h.label)},h.label))]}),d.jsxs("div",{className:"dcl-footer__col",children:[d.jsx("p",{className:"dcl-footer__label",children:se("footer.resources")}),D2.map(h=>d.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:se(h.label)},h.label))]})]}),d.jsxs("div",{className:"dcl-footer__mobile-menu",children:[d.jsx("p",{className:"dcl-footer__menu-label",children:se("footer.menu")}),[{key:"getting-started",label:se("footer.gettingStarted"),links:$2},{key:"resources",label:se("footer.resources"),links:D2}].map(h=>d.jsxs("div",{children:[d.jsxs("button",{type:"button",className:"dcl-footer__dropdown","aria-expanded":r===h.key,onClick:()=>f(h.key),children:[h.label,d.jsx("span",{className:`dcl-footer__chev${r===h.key?" is-open":""}`,children:d.jsx(U2,{})})]}),d.jsx("div",{className:`dcl-footer__dropdown-content${r===h.key?" is-open":""}`,children:h.links.map(p=>d.jsx("a",{className:"dcl-footer__mlink",href:p.url,target:"_blank",rel:"noopener noreferrer",children:se(p.label)},p.label))})]},h.key))]}),d.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--mobile",children:[d.jsx("p",{className:"dcl-footer__label",children:se("footer.connect")}),d.jsx(q2,{})]})]}),d.jsxs("div",{className:"dcl-footer__bottom",children:[d.jsxs("div",{className:"dcl-footer__bottom-left",children:[d.jsxs("div",{className:"dcl-footer__lang",ref:o,children:[d.jsxs("button",{type:"button",className:"dcl-footer__lang-btn",onClick:()=>s(h=>!h),children:[d.jsx("span",{"aria-hidden":!0,children:u.flag}),u.label,d.jsx("span",{className:`dcl-footer__chev${a?" is-open":""}`,children:d.jsx(U2,{})})]}),a?d.jsx("div",{className:"dcl-footer__lang-menu",children:Oo.map(h=>d.jsxs("button",{className:h===e?"is-active":"",onClick:()=>{t(h),s(!1)},children:[d.jsx("span",{"aria-hidden":!0,children:Ao[h].flag}),Ao[h].label]},h))}):null]}),d.jsx("div",{className:"dcl-footer__legal",children:U6.map(h=>d.jsx("a",{className:"dcl-footer__legal-link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:se(h.label)},h.label))})]}),d.jsxs("span",{className:"dcl-footer__copy",children:["© ",new Date().getFullYear()," Decentraland"]})]})]})}function V6(){return d.jsx("svg",{viewBox:"0 0 28 22",fill:"currentColor",width:"26",height:"20","aria-hidden":!0,children:d.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 z6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:d.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 G6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:d.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 W6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:d.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 Z6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:d.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 K6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:d.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 Y6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:d.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 U2(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18","aria-hidden":!0,children:d.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}const fr=Un((e,t)=>({item:null,anchor:null,ready:!1,token:0,show:(r,n)=>{var s;const a=t();((s=a.item)==null?void 0:s.id)===r.id&&a.anchor===n||e(o=>({item:r,anchor:n,ready:!1,token:o.token+1}))},hide:()=>e({item:null,anchor:null,ready:!1}),setReady:()=>e({ready:!0})})),H2="hover-preview";function Q6(){const e=fr(v=>v.item),t=fr(v=>v.anchor),r=fr(v=>v.token),n=fr(v=>v.ready),a=fr(v=>v.setReady),s=Hn(v=>{var A;return(A=v.session)==null?void 0:A.address}),{data:o}=ys(s),[u,f]=ne.useState(!1),[h,p]=ne.useState(!1),m=ne.useRef(!1),g=ne.useRef(-1),[_,x]=ne.useState(null);ne.useEffect(()=>{if(typeof window.requestIdleCallback=="function"){const A=window.requestIdleCallback(()=>f(!0),{timeout:3e3});return()=>window.cancelIdleCallback(A)}const v=window.setTimeout(()=>f(!0),1500);return()=>window.clearTimeout(v)},[]),ne.useEffect(()=>{if(!t){x(null);return}let v=0;const A=()=>x(t.getBoundingClientRect());A();const w=()=>{cancelAnimationFrame(v),v=requestAnimationFrame(A)};return window.addEventListener("scroll",w,!0),window.addEventListener("resize",w),()=>{cancelAnimationFrame(v),window.removeEventListener("scroll",w,!0),window.removeEventListener("resize",w)}},[t]),ne.useEffect(()=>{if(!e)return;const v=document.getElementById(H2);if(!(v!=null&&v.contentWindow)||!m.current)return;g.current=r;const A=e.category==="emote",w=!!s&&!!o&&ci(e,s1(o));Ou.sendMessage(v.contentWindow,Ou.PreviewMessageType.UPDATE,{options:{contractAddress:e.contractAddress,itemId:e.itemId??void 0,profile:w?s:"default",type:A?void 0:rt.PreviewType.AVATAR,emote:A?void 0:rt.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0}})},[e,r,h,s,o]);function y(){if(!m.current){m.current=!0,p(!0);return}const v=fr.getState();v.item&&v.token===g.current&&a()}if(!u)return null;const G=!!e&&!!_?{position:"fixed",left:_.left,top:_.top,width:_.width,height:_.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 d.jsx("div",{className:"hover-preview","aria-hidden":!0,style:G,children:d.jsx(a1,{id:H2,profile:"default",disableBackground:!0,disableFadeEffect:!0,dev:He.chainId===80002,onLoad:y})})}function J6(){const e=Hn(t=>t.session);ne.useEffect(()=>{if(!e||e.providerType!==rt.ProviderType.INJECTED)return;const t=e.web3Provider.provider;if(!(t!=null&&t.on)||!t.removeListener)return;const r=e.address.toLowerCase(),n=(...a)=>{var u;((u=(a[0]??[])[0])==null?void 0:u.toLowerCase())!==r&&window.location.reload()};return t.on("accountsChanged",n),()=>{var a;return(a=t.removeListener)==null?void 0:a.call(t,"accountsChanged",n)}},[e])}function X6(e,t){return!t||!e.creator?!1:Kl(e)&&e.creator.toLowerCase()===t.toLowerCase()}function $9(e,t){return!!e.signer&&!!t&&e.signer.toLowerCase()===t.toLowerCase()}const V2={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 e8(e){var r;const t=(r=e.wearableCategory)==null?void 0:r.toLowerCase();return t&&V2[t]?V2[t]:e.category==="emote"?"emote-misc":null}function t8(e){return e==="male"?"gender-male":e==="female"?"gender-female":e==="unisex"?"gender-unisex":null}function r8(e,t=Date.now()){const{priceCredits:r,compareAtCredits:n,saleEndsAt:a}=e;return!(n==null||!(n>r)||a!=null&&a<=t)}function n8(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 Ga(e,t=Date.now()){return e==null?1/0:Math.max(0,e-t)}function a8(e){if(!isFinite(e)||e<=0)return"";const t=Math.floor(e/1e3),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),a=Math.floor(t%3600/60),s=t%60;return r>0?n>0?`${r}d ${n}h`:`${r}d`:n>0?`${n}h ${a}m`:a>0?`${a}m ${s}s`:`${s}s`}function z2(e){return!isFinite(e)||e<=0?0:e<36e5?1e3:6e4}function s8({endsAt:e,className:t,testId:r,iconSize:n=13}){const[a,s]=ne.useState(()=>Ga(e));ne.useEffect(()=>{if(s(Ga(e)),e==null)return;let u;const f=()=>{const p=Ga(e);s(p);const m=z2(p);m>0&&(u=setTimeout(f,m))},h=z2(Ga(e));return h>0&&(u=setTimeout(f,h)),()=>clearTimeout(u)},[e]);const o=a8(a);return o?d.jsxs("span",{className:t??"sale-countdown","data-testid":r,children:[d.jsx(ct,{name:"clock",size:n}),o]}):null}function o8(e){const[,t]=ne.useState(0);return ne.useEffect(()=>{const r=Ga(e.saleEndsAt);if(!isFinite(r)||r<=0||r>2147483647)return;const n=setTimeout(()=>t(a=>a+1),r+1);return()=>clearTimeout(n)},[e.saleEndsAt]),r8(e)}const i8=120;function du(e){const{item:t}=e,r=e.mode==="market",n=e.mode==="view",a=e.mode==="manage",s=e.mode==="manage-link",o=t.category==="ens",u=qo(),f=ne.useRef(),h=ne.useRef(null),p=Ht(P=>P.add),m=Ht(P=>P.items.some($=>$.id===t.id)),g=Hn(P=>{var $;return($=P.session)==null?void 0:$.address}),_=X6(t,g),x=Bo(P=>P.toggle),y=Bo(P=>!!P.items[t.id]),k=fr(P=>P.show),G=fr(P=>P.hide),v=fr(P=>{var $;return(($=P.item)==null?void 0:$.id)===t.id}),A=fr(P=>{var $;return(($=P.item)==null?void 0:$.id)===t.id?P.ready:!1}),w=!!t.contractAddress&&!!t.itemId&&!o,K=t.tokenId??t.itemId,H=!!t.contractAddress&&!!K,S=`/item/${t.contractAddress}/${K}`;function U(P){P.stopPropagation(),H&&u(S,{state:{item:t,tradeId:t.tradeId}})}function Q(){typeof window<"u"&&window.matchMedia&&!window.matchMedia("(hover: hover)").matches||(f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{w&&h.current&&k(t,h.current)},i8))}function ee(){var P;f.current&&clearTimeout(f.current),((P=fr.getState().item)==null?void 0:P.id)===t.id&&G()}ne.useEffect(()=>()=>{var P;f.current&&clearTimeout(f.current),((P=fr.getState().item)==null?void 0:P.id)===t.id&&G()},[t.id,G]);const ae=e8(t),J=t8(t.gender),M=o8({priceCredits:t.priceCredits,compareAtCredits:t.compareAtCredits,saleEndsAt:t.saleEndsAt}),N=!r&&M,Z=N?n8(t.compareAtCredits,t.priceCredits):0;return d.jsxs("article",{className:"card","data-testid":"card",style:H&&!o?{cursor:"pointer"}:void 0,onMouseEnter:Q,onMouseLeave:ee,children:[H&&!o?d.jsx(In,{className:"card__link","data-testid":"card-link",to:S,state:e.mode==="market"?{item:t,market:!0,marketPriceCredits:e.marketPriceCredits}:{item:t,tradeId:t.tradeId},"aria-label":t.name}):null,o&&e.mode==="manage-link"&&e.manageHref?d.jsx("a",{className:"card__link","data-testid":"card-link",href:e.manageHref,target:"_blank",rel:"noopener noreferrer","aria-label":t.name}):null,o?null:d.jsx("button",{className:`card__fav${y?" is-on":""}`,"data-testid":"card-fav",onClick:P=>{P.stopPropagation(),x(t)},"aria-label":se(y?"assetCard.removeFromFavorites":"assetCard.addToFavorites"),children:d.jsx(ct,{name:y?"heart-solid":"heart",size:18})}),d.jsxs("div",{className:"card__media",ref:h,children:[N?d.jsx("span",{className:"card__sale-badge","data-testid":"card-sale-badge",children:Z>0?se("assetCard.saleWithDiscount",{pct:Z}):se("assetCard.sale")}):null,w&&v&&!A?d.jsx("div",{className:"card__skeleton","data-testid":"card-skeleton","aria-hidden":!0}):null,t.listingCount&&t.listingCount>1?d.jsx("span",{className:"card__listings","data-testid":"card-listings",children:se("assetCard.onSaleCount",{count:t.listingCount})}):null,o?d.jsxs("div",{className:"card__name-media","aria-hidden":!0,children:[d.jsx("span",{className:"card__name-at",children:"@"}),d.jsx("span",{className:"card__name-value",children:t.name})]}):t.thumbnail?d.jsx("img",{className:`card__img${v&&A?" card__img--hidden":""}`,src:t.thumbnail,alt:t.name,loading:"lazy"}):null]}),a&&e.mode==="manage"?d.jsxs("div",{className:"card__body",children:[d.jsxs("div",{className:"card__top",children:[d.jsxs("div",{className:"card__desc",children:[d.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.issuedId?d.jsxs("div",{className:"card__creator card__issued","data-testid":"card-issued",children:["#",t.issuedId]}):d.jsx("div",{className:"card__creator",children:" "})]}),e.listed&&t.priceCredits>0?d.jsxs("div",{className:"card__price",title:on(t.priceCredits),children:[d.jsx(Xt,{className:"card__diamond"}),Wr(t.priceCredits)]}):d.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:se("assetCard.notForSale")})]}),e.listed?d.jsx("button",{className:"card__manage card__manage--ghost","data-testid":"card-unlist",disabled:e.busy,onClick:P=>{P.stopPropagation(),e.onUnlist(t)},children:e.busy?se("myAssets.removing"):se("myAssets.removeListing")}):d.jsx("button",{className:"card__manage","data-testid":"card-list",disabled:e.busy,onClick:P=>{P.stopPropagation(),e.onList(t)},children:se("myAssets.putOnSale")})]}):o?d.jsxs("div",{className:"card__body card__body--name",children:[d.jsxs("div",{className:"card__top",children:[d.jsx("div",{className:"card__desc",children:d.jsxs("div",{className:"card__name card__name--verified",title:t.name,children:[d.jsxs("span",{children:["@",t.name]}),d.jsxs("svg",{className:"card__verified",width:"18",height:"18",viewBox:"0 0 14.6921 14.6931",fill:"none","aria-hidden":!0,children:[d.jsx("path",{d:"M6.285 0.43934C6.87079 -0.146447 7.82128 -0.146447 8.40707 0.43934L9.68051 1.71278H11.4793C12.3078 1.71278 12.9793 2.38435 12.9793 3.21278V5.01161L14.2528 6.28602C14.8386 6.87181 14.8386 7.82133 14.2528 8.40711L12.9793 9.68055V11.4804C12.9793 12.3088 12.3078 12.9804 11.4793 12.9804H9.68051L8.40707 14.2538C7.82128 14.8395 6.87076 14.8396 6.285 14.2538L5.01156 12.9804H3.21176C2.38334 12.9804 1.71177 12.3088 1.71176 11.4804V9.67957L0.439297 8.40711C-0.146461 7.82136 -0.146403 6.87181 0.439297 6.28602L1.71176 5.01258V3.21278C1.71176 2.38435 2.38333 1.71278 3.21176 1.71278H5.01156L6.285 0.43934Z",fill:"url(#dclVerifiedGrad)"}),d.jsx("path",{d:"M4.6 7.5l1.9 1.9 3.6-3.9",stroke:"#FCFCFC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("defs",{children:d.jsxs("linearGradient",{id:"dclVerifiedGrad",x1:"7.35",y1:"0",x2:"7.35",y2:"14.69",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{stopColor:"#FF2D55"}),d.jsx("stop",{offset:"1",stopColor:"#C640CD"})]})})]})]})}),d.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:se("assetCard.notForSale")})]}),s&&e.mode==="manage-link"&&e.manageHref?d.jsxs("div",{className:"card__action",children:[d.jsx("div",{className:"card__chips"}),d.jsx("a",{className:"card__add-round",href:e.manageHref,target:"_blank",rel:"noopener noreferrer","aria-label":se("assetCard.manage"),onClick:P=>P.stopPropagation(),children:d.jsx(ct,{name:"pen"})}),d.jsxs("a",{className:"card__cart","data-testid":"card-manage",href:e.manageHref,target:"_blank",rel:"noopener noreferrer",onClick:P=>P.stopPropagation(),children:[d.jsx(ct,{name:"pen",size:20}),se("assetCard.manage")]})]}):null]}):s&&e.mode==="manage-link"?d.jsxs("div",{className:"card__body",children:[d.jsxs("div",{className:"card__top",children:[d.jsxs("div",{className:"card__desc",children:[d.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.issuedId?d.jsxs("div",{className:"card__creator card__issued","data-testid":"card-issued",children:["#",t.issuedId]}):d.jsx("div",{className:"card__creator",children:" "})]}),t.priceCredits>0?d.jsxs("div",{className:"card__price",title:on(t.priceCredits),children:[d.jsx(Xt,{className:"card__diamond"}),Wr(t.priceCredits)]}):d.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:se("assetCard.notForSale")})]}),d.jsxs("div",{className:"card__action",children:[d.jsxs("div",{className:"card__chips",children:[d.jsx("span",{className:"chip chip--rarity",style:{background:P2(t.rarity),color:O2(t.rarity)},title:j2(t.rarity),children:t.rarity}),ae?d.jsx("span",{className:"chip chip--icon",children:d.jsx(ct,{name:ae})}):null]}),d.jsx("button",{className:"card__add-round",onClick:U,"aria-label":se("assetCard.manage"),children:d.jsx(ct,{name:"pen"})}),d.jsxs("button",{className:"card__cart","data-testid":"card-manage",onClick:U,children:[d.jsx(ct,{name:"pen",size:20}),se("assetCard.manage")]})]})]}):n?d.jsxs("div",{className:"card__body",children:[d.jsxs("div",{className:"card__top",children:[d.jsx("div",{className:"card__desc",children:d.jsx("div",{className:"card__name",title:t.name,children:t.name})}),t.priceCredits>0?d.jsxs("div",{className:"card__price",title:on(t.priceCredits),children:[d.jsx(Xt,{className:"card__diamond"}),Wr(t.priceCredits)]}):d.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:se("assetCard.notForSale")})]}),d.jsxs("span",{className:"card__view","data-testid":"card-view","aria-hidden":!0,children:[d.jsx(ct,{name:"eye",size:20}),se("assetCard.view")]})]}):d.jsxs("div",{className:"card__body",children:[d.jsxs("div",{className:"card__top",children:[d.jsx("div",{className:"card__desc",children:d.jsx("div",{className:"card__name",title:t.name,children:t.name})}),r&&e.mode==="market"?d.jsxs("div",{className:"card__price card__price--market","data-testid":"card-price-market",children:[d.jsx("span",{className:"card__approx","aria-hidden":!0,children:"≈"}),d.jsx(Xt,{className:"card__diamond"}),e.marketPriceCredits==null?"—":Wr(e.marketPriceCredits)]}):N?d.jsxs("div",{className:"card__price card__price--sale",children:[d.jsxs("span",{className:"card__price-now","data-testid":"card-price-now",title:on(t.priceCredits),children:[d.jsx(Xt,{className:"card__diamond"}),Wr(t.priceCredits)]}),d.jsxs("span",{className:"card__price-was","data-testid":"card-price-was",title:on(t.compareAtCredits),children:[d.jsx(Xt,{className:"card__diamond card__diamond--was"}),Wr(t.compareAtCredits)]}),d.jsx(s8,{endsAt:t.saleEndsAt,className:"card__countdown",testId:"card-countdown"})]}):d.jsxs("div",{className:"card__price",title:on(t.priceCredits),children:[d.jsx(Xt,{className:"card__diamond"}),Wr(t.priceCredits)]})]}),d.jsxs("div",{className:"card__action",children:[d.jsxs("div",{className:"card__chips",children:[r?d.jsx("span",{className:"chip chip--market","data-testid":"chip-market",children:se("assetCard.marketPrice")}):null,d.jsx("span",{className:"chip chip--rarity",style:{background:P2(t.rarity),color:O2(t.rarity)},title:j2(t.rarity),children:t.rarity}),t.isSmart?d.jsxs("span",{className:"chip chip--smart","data-testid":"chip-smart",children:[d.jsx(ct,{name:"smart",size:13}),se("assetCard.smart")]}):null,ae?d.jsx("span",{className:"chip chip--icon",children:d.jsx(ct,{name:ae})}):null,J?d.jsx("span",{className:"chip chip--icon",children:d.jsx(ct,{name:J})}):null]}),r&&e.mode==="market"?d.jsx("button",{className:"card__add-round",onClick:P=>{P.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,"aria-label":e.marketPriceCredits==null?se("assetCard.unavailable"):se("assetCard.buyNow"),children:d.jsx(ct,{name:"plus"})}):d.jsx("button",{className:`card__add-round${!_&&m?" is-in":""}`,onClick:P=>{if(_)return U(P);P.stopPropagation(),p(t,"grid")},disabled:!_&&m,"aria-label":se(_?"assetCard.manage":m?"assetCard.inCart":"assetCard.addToCart"),children:d.jsx(ct,{name:_?"pen":"plus"})}),r&&e.mode==="market"?d.jsx("button",{className:"card__cart","data-testid":"card-cart",onClick:P=>{P.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,children:e.marketPriceCredits==null?se("assetCard.unavailable"):se("assetCard.buyNow")}):d.jsxs("button",{className:`card__cart${!_&&m?" is-in":""}`,"data-testid":"card-cart",onClick:P=>{if(_)return U(P);P.stopPropagation(),p(t,"grid")},disabled:!_&&m,children:[d.jsx(ct,{name:_?"pen":"cart-solid"}),se(_?"assetCard.manage":m?"assetCard.inCart":"assetCard.addToCart")]})]})]})]})}const c8=8,l8=8,u8=12;function d8(){const t=bl(a=>a.followed).slice(0,c8),{data:r=[],isLoading:n}=Yr({queryKey:["followed-creators-row",t.join(",")],enabled:t.length>0,queryFn:async()=>{const a=await Promise.all(t.map(s=>V_(s,{first:l8}).then(o=>o.items).catch(()=>[])));return f8(a).filter(s=>s.priceCredits>0).slice(0,u8)}});return t.length===0||!n&&r.length===0?null:d.jsxs("section",{className:"row",children:[d.jsx("div",{className:"row__head",children:d.jsx("h2",{className:"row__title",children:se("followedCreators.title")})}),d.jsx("div",{className:"row__track",children:n?Array.from({length:6}).map((a,s)=>d.jsx("div",{className:"card card--skeleton"},s)):r.map(a=>d.jsx(du,{item:a},a.id))})]})}function f8(e){const t=[],r=new Set,n=e.reduce((a,s)=>Math.max(a,s.length),0);for(let a=0;a<n;a++)for(const s of e){const o=s[a];o&&!r.has(o.id)&&(r.add(o.id),t.push(o))}return t}const i1="shop:recently-viewed",c1=12;function l1(){try{const e=localStorage.getItem(i1);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.slice(0,c1):[]}catch{return[]}}function D9(e){if(e!=null&&e.id)try{const t=[e,...l1().filter(r=>r.id!==e.id)].slice(0,c1);localStorage.setItem(i1,JSON.stringify(t))}catch{}}function h8({excludeId:e}){const t=ne.useMemo(()=>l1().filter(r=>r.id!==e),[e]);return t.length===0?null:d.jsxs("section",{className:"row",children:[d.jsx("div",{className:"row__head",children:d.jsx("h2",{className:"row__title",children:se("recentlyViewed.title")})}),d.jsx("div",{className:"row__track",children:t.map(r=>d.jsx(du,{item:r},r.id))})]})}async function m8(e="week",t=10,r="most_volume"){const n=new URLSearchParams({sortBy:r,first:String(t)}),a=await fetch(`${He.marketplaceServerUrl}/v1/rankings/creators/${e}?${n.toString()}`);if(!a.ok)throw new Error(`fetchTopCreators ${a.status}`);return(await a.json()).data??[]}const G2=10;function p8(e){try{return Math.floor(Number(df(e))).toLocaleString("en-US")}catch{return"0"}}function g8({rank:e,creator:t}){return d.jsxs("tr",{className:"ov-creators__row",children:[d.jsx("td",{className:"ov-creators__rank-cell",children:d.jsx("span",{className:"ov-creators__rank",children:e})}),d.jsx("td",{className:"ov-creators__creator-cell",children:d.jsx(kh,{address:t.id,className:"ov-creators__creator",linkToProfile:!0})}),d.jsx("td",{className:"ov-creators__num",children:t.collections.toLocaleString("en-US")}),d.jsx("td",{className:"ov-creators__num",children:t.sales.toLocaleString("en-US")}),d.jsxs("td",{className:"ov-creators__num ov-creators__volume",children:[d.jsx(Xt,{className:"ov-creators__coin"}),p8(t.earned)]})]})}function y8(){return d.jsxs("tr",{className:"ov-creators__row",children:[d.jsx("td",{className:"ov-creators__rank-cell",children:d.jsx("span",{className:"ov-creators__rank ov-creators__rank--skeleton"})}),d.jsx("td",{className:"ov-creators__creator-cell",children:d.jsx("span",{className:"ov-creators__skeleton ov-creators__skeleton--creator"})}),d.jsx("td",{className:"ov-creators__num",children:d.jsx("span",{className:"ov-creators__skeleton"})}),d.jsx("td",{className:"ov-creators__num",children:d.jsx("span",{className:"ov-creators__skeleton"})}),d.jsx("td",{className:"ov-creators__num",children:d.jsx("span",{className:"ov-creators__skeleton"})})]})}function v8(){const{data:e,isLoading:t,isError:r}=Yr({queryKey:["rankings","creators","week"],queryFn:()=>m8("week",G2)}),n=e??[];return r||!t&&n.length===0?null:d.jsxs("section",{className:"ov-creators",children:[d.jsxs("div",{className:"ov-creators__head",children:[d.jsx("h2",{className:"ov-creators__title",children:se("weekTopCreators.title")}),d.jsx("span",{className:"ov-creators__period",children:se("weekTopCreators.thisWeek")})]}),d.jsx("div",{className:"ov-creators__scroll",children:d.jsxs("table",{className:"ov-creators__table",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"ov-creators__header",children:[d.jsx("th",{className:"ov-creators__th ov-creators__th--rank",scope:"col",children:se("weekTopCreators.rank")}),d.jsx("th",{className:"ov-creators__th",scope:"col",children:se("weekTopCreators.creator")}),d.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:se("weekTopCreators.collections")}),d.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:se("weekTopCreators.sales")}),d.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:se("weekTopCreators.volume")})]})}),d.jsx("tbody",{children:t?Array.from({length:G2}).map((a,s)=>d.jsx(y8,{},s)):n.map((a,s)=>d.jsx(g8,{rank:s+1,creator:a},a.id))})]})})]})}const u1="Decentraland Shop",b8=`${u1} | Wearables & Emotes for Your Avatar`,w8="Discover wearables and emotes to make your Decentraland avatar your own. Explore thousands of unique looks and find your style in seconds.";function Ar(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 _8(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 C8(e={}){const{title:t,description:r=w8,image:n,type:a="website",noindex:s=!1,canonicalPath:o}=e;ne.useEffect(()=>{if(typeof window>"u")return;const u=window.location.origin,f=u+(o??window.location.pathname),h=n??`${u}https://cdn.decentraland.org/@dcl/shop/0.1.0-30043940031.commit-1a0b88f/og-image.png`,p=t?`${t} | ${u1}`:b8;document.title=p,Ar("name","description",r),Ar("name","robots",s?"noindex,nofollow":"index,follow"),_8("canonical",f),Ar("property","og:title",p),Ar("property","og:description",r),Ar("property","og:url",f),Ar("property","og:image",h),Ar("property","og:type",a),Ar("name","twitter:title",p),Ar("name","twitter:description",r),Ar("name","twitter:image",h)},[t,r,n,a,s,o])}const W2="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",E8="https://cdn.decentraland.org/@dcl/shop/0.1.0-30043940031.commit-1a0b88f/assets/hero-fashion-week-B9LOzkde.png",x8="https://cdn.decentraland.org/@dcl/shop/0.1.0-30043940031.commit-1a0b88f/assets/promo-best-rated-emotes-C6kNvB-a.png",S8="https://cdn.decentraland.org/@dcl/shop/0.1.0-30043940031.commit-1a0b88f/assets/promo-week-selected-outfits-BBmkZYZx.png",T8=_t(li)`
281
- margin-top: 10px;
282
- `,A8=_t(li)`
283
- height: 40px;
284
- padding: 0 16px;
285
- display: inline-flex;
286
- align-items: center;
287
- `,Z2=6;function K2({title:e,items:t,loading:r}){const n=ne.useRef(null),[a,s]=ne.useState(1),[o,u]=ne.useState(0),f=r?Z2:t.length,h=ne.useCallback(()=>{const g=n.current;if(!g)return;const _=g.clientWidth;if(_<=0)return;const x=Math.max(1,Math.ceil((g.scrollWidth-_)/_)+1);s(x),u(Math.min(x-1,Math.round(g.scrollLeft/_)));const y=g.querySelector(".card__media"),k=g.parentElement;k&&k.style.setProperty("--ov-arrow-top",`${12+(y?y.offsetHeight:150)/2}px`)},[]);ne.useEffect(()=>{h();const g=n.current;if(!g)return;const _=()=>u(Math.round(g.scrollLeft/Math.max(1,g.clientWidth)));return g.addEventListener("scroll",_,{passive:!0}),window.addEventListener("resize",h),()=>{g.removeEventListener("scroll",_),window.removeEventListener("resize",h)}},[h,f]);const p=ne.useCallback(g=>{const _=n.current;if(!_)return;const x=Math.max(0,Math.min(a-1,g));_.scrollTo({left:x*_.clientWidth,behavior:"smooth"})},[a]),m=!r&&a>1;return d.jsxs("section",{className:"row ov-carousel",children:[d.jsxs("div",{className:"row__head",children:[d.jsx("h2",{className:"row__title",children:e}),d.jsxs(In,{className:"row__viewall",to:"/assets",children:[se("overview.viewAll")," ",d.jsx(ct,{name:"view-all-arrow",size:18})]})]}),d.jsxs("div",{className:"ov-carousel__viewport",children:[m?d.jsx("button",{className:"ov-arrow ov-arrow--left",onClick:()=>p(o-1),disabled:o<=0,"aria-label":se("overview.previous"),children:d.jsx("img",{src:W2,alt:"","aria-hidden":!0})}):null,d.jsx("div",{className:"ov-carousel__track",ref:n,children:r?Array.from({length:Z2}).map((g,_)=>d.jsx("div",{className:"card card--skeleton"},_)):t.map(g=>d.jsx(du,{item:g},g.id))}),m?d.jsx("button",{className:"ov-arrow ov-arrow--right",onClick:()=>p(o+1),disabled:o>=a-1,"aria-label":se("overview.next"),children:d.jsx("img",{src:W2,alt:"","aria-hidden":!0})}):null]}),m?d.jsx("div",{className:"ov-carousel__dots","aria-label":se("overview.carouselPages",{title:e}),children:Array.from({length:a}).map((g,_)=>d.jsx("button",{className:`ov-dot${_===o?" is-active":""}`,onClick:()=>p(_),"aria-label":se("overview.goToPage",{page:_+1}),"aria-current":_===o?"true":void 0},_))}):null]})}function k8(){C8({});const{data:e,isLoading:t}=Yr({queryKey:["overview-listings"],queryFn:()=>Rh({first:48})}),r=((e==null?void 0:e.items)??[]).filter(n=>!n.tokenId);return d.jsxs("div",{className:"overview",children:[d.jsxs("section",{className:"ov-hero",children:[d.jsx("img",{className:"ov-hero__bg",src:E8,alt:"","aria-hidden":!0}),d.jsx("div",{className:"ov-hero__scrim","aria-hidden":!0}),d.jsxs("div",{className:"ov-hero__inner",children:[d.jsx("h1",{className:"ov-hero__title",children:se("overview.heroTitle")}),d.jsx(A8,{as:In,to:"/assets",variant:"purple",children:se("overview.exploreCollection")})]})]}),t||r.length>0?d.jsxs(d.Fragment,{children:[d.jsx(K2,{title:se("overview.featuredProducts"),items:r.slice(0,12),loading:t}),d.jsxs("section",{className:"ov-promos",children:[d.jsx(In,{className:"ov-promo",to:"/assets","aria-label":se("overview.promoEmotesAria"),children:d.jsx("img",{src:x8,alt:se("overview.promoEmotesAlt")})}),d.jsx(In,{className:"ov-promo",to:"/assets","aria-label":se("overview.promoOutfitsAria"),children:d.jsx("img",{src:S8,alt:se("overview.promoOutfitsAlt")})})]}),r.length>12?d.jsx(K2,{title:se("overview.newCreations"),items:r.slice(12,24),loading:!1}):null]}):d.jsxs("div",{className:"overview__empty",children:[d.jsx("p",{className:"overview__empty-title",children:se("overview.emptyTitle")}),d.jsx("p",{className:"muted",children:se("overview.emptyBody")}),d.jsx(T8,{as:In,to:"/assets",variant:"purple",children:se("notFound.cta")})]}),d.jsx(h8,{}),d.jsx(d8,{}),d.jsx(v8,{})]})}const I8={"/overview":"overview","/assets":"assets","/my-assets":"my_assets","/my-favorites":"favorites","/activity":"activity","/import":"import","/store-settings":"store_settings","/cart":"cart","/credits":"credits","/success":"success","/authorizations":"authorizations"},R8=ne.lazy(()=>Et(()=>import("./Assets-CbIX010b.js"),__vite__mapDeps([23,1,24,12,2,7,6,25,26,27,28,29,30,31,32,33,34,13,35,36,37,38,39,40,8])).then(e=>({default:e.Assets}))),N8=ne.lazy(()=>Et(()=>import("./ItemDetail-D1Xe6t7i.js"),__vite__mapDeps([41,1,2,42,43,44,33,34,12,13,7,6,35,45,37,38,36,46,47,40,18,32,24,25,30,28,8,48])).then(e=>({default:e.ItemDetail}))),P8=ne.lazy(()=>Et(()=>import("./Collection-CdFvuhxV.js"),__vite__mapDeps([49,1,38,50,51,52,2,43,27,28,29,31,39,6,7,8,53])).then(e=>({default:e.Collection}))),O8=ne.lazy(()=>Et(()=>import("./Creator-Cpw9Qy_r.js"),__vite__mapDeps([54,1,50,51,52,2,43,27,28,29,31,39,38,6,7,8,55])).then(e=>({default:e.Creator}))),j8=ne.lazy(()=>Et(()=>import("./StoreSettings-Bx7T9d4h.js"),__vite__mapDeps([56,1,52,2,38,6,7,8,57])).then(e=>({default:e.StoreSettings}))),L8=ne.lazy(()=>Et(()=>import("./MyAssets-C_wlVXNb.js"),__vite__mapDeps([58,1,59,33,2,34,12,13,7,6,35,24,45,37,38,27,28,29,31,26,30,39,8])).then(e=>({default:e.MyAssets}))),M8=ne.lazy(()=>Et(()=>import("./MyFavorites-B7HUqvEe.js"),__vite__mapDeps([60,1,31,2,6,7,8])).then(e=>({default:e.MyFavorites}))),B8=ne.lazy(()=>Et(()=>import("./Activity-CnoF6F3Z.js"),__vite__mapDeps([61,1,24,12,2,7,6,25,31,39,8])).then(e=>({default:e.Activity}))),F8=ne.lazy(()=>Et(()=>import("./ImportListings-CxJDA8Su.js"),__vite__mapDeps([62,1,59,33,2,34,12,13,7,6,35,24,8,63])).then(e=>({default:e.ImportListings}))),$8=ne.lazy(()=>Et(()=>import("./Cart-C1woE131.js"),__vite__mapDeps([64,1,42,43,44,33,2,34,12,13,7,6,35,36,65,46,40,37,38,8,66])).then(e=>({default:e.Cart}))),D8=ne.lazy(()=>Et(()=>import("./Authorizations-4u2_v7qf.js"),__vite__mapDeps([67,1,34,12,2,13,7,6,37,8])).then(e=>({default:e.Authorizations}))),q8=ne.lazy(()=>Et(()=>import("./GetCredits-BfCzeAeD.js"),__vite__mapDeps([68,1,47,65,40,46,18,2,6,7,8])).then(e=>({default:e.GetCredits}))),U8=ne.lazy(()=>Et(()=>import("./Success-B45Qtg3D.js"),__vite__mapDeps([69,1,36,34,12,2,13,7,6,35,8])).then(e=>({default:e.Success}))),H8=ne.lazy(()=>Et(()=>import("./NotFound-DgN5Ojh9.js"),__vite__mapDeps([70,1,2,6,7,8])).then(e=>({default:e.NotFound})));function V8(){return d.jsx("div",{className:"page-loading","aria-busy":"true",children:d.jsx("span",{className:"spinner","aria-hidden":!0})})}const z8=_t(li)`
288
- margin-top: 10px;
289
- `;function G8(){return d.jsxs("div",{className:"overview__empty",children:[d.jsx("p",{className:"overview__empty-title",children:se("app.crash.title")}),d.jsx("p",{className:"muted",children:se("app.crash.body")}),d.jsx(z8,{variant:"purple",onClick:()=>window.location.reload(),children:se("app.crash.reload")})]})}function W8(){J6();const e=uf();return ne.useEffect(()=>{Av()},[]),ne.useEffect(()=>{const t=e.pathname,r=I8[t]??(t.startsWith("/item/")?"item":t.startsWith("/collection/")?"collection":t.startsWith("/assets/creator/")?"creator":"other");Ev(r)},[e.pathname]),d.jsxs(d.Fragment,{children:[d.jsx(m6,{}),d.jsx(Q6,{}),d.jsx(F6,{}),d.jsx(s6,{}),d.jsx("main",{className:"page",children:d.jsx(ju,{fallback:d.jsx(G8,{}),children:d.jsx(ne.Suspense,{fallback:d.jsx(V8,{}),children:d.jsxs(k1,{children:[d.jsx(St,{path:"/",element:d.jsx(_i,{to:"/overview",replace:!0})}),d.jsx(St,{path:"/overview",element:d.jsx(k8,{})}),d.jsx(St,{path:"/assets",element:d.jsx(R8,{})}),d.jsx(St,{path:"/market",element:d.jsx(_i,{to:"/assets",replace:!0})}),d.jsx(St,{path:"/item/:contractAddress/:tokenId",element:d.jsx(N8,{})}),d.jsx(St,{path:"/collection/:contractAddress",element:d.jsx(P8,{})}),d.jsx(St,{path:"/assets/creator/:address",element:d.jsx(O8,{})}),d.jsx(St,{path:"/store-settings",element:d.jsx(j8,{})}),d.jsx(St,{path:"/my-assets",element:d.jsx(L8,{})}),d.jsx(St,{path:"/my-favorites",element:d.jsx(M8,{})}),d.jsx(St,{path:"/activity",element:d.jsx(B8,{})}),d.jsx(St,{path:"/my-purchases",element:d.jsx(_i,{to:"/activity",replace:!0})}),d.jsx(St,{path:"/import",element:d.jsx(F8,{})}),d.jsx(St,{path:"/cart",element:d.jsx($8,{})}),d.jsx(St,{path:"/authorizations",element:d.jsx(D8,{})}),d.jsx(St,{path:"/credits",element:d.jsx(q8,{})}),d.jsx(St,{path:"/success",element:d.jsx(U8,{})}),d.jsx(St,{path:"*",element:d.jsx(H8,{})})]})})})}),d.jsx(ju,{fallback:d.jsx(d.Fragment,{}),children:d.jsx(H6,{})})]})}function Z8({children:e}){const t=kl(r=>r.locale);return Aw(t),d.jsx(P3,{value:eu(t),children:e},t)}jv();const K8=new gm({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),Y8=["localhost","127.0.0.1"].includes(window.location.hostname),Q8=Y8?void 0:"/shop";I1.createRoot(document.getElementById("root")).render(d.jsx(lf.StrictMode,{children:d.jsx(ym,{client:K8,children:d.jsx(Z8,{children:d.jsx(R1,{basename:Q8,children:d.jsx(W8,{})})})})}));export{Ul as $,du as A,li as B,Xt as C,iy as D,z0 as E,Me as F,Ch as G,x9 as H,ct as I,F9 as J,v9 as K,y9 as L,Yo as M,Wf as N,Hh as O,k5 as P,j5 as Q,wn as R,Ye as S,E_ as T,N5 as U,bn as V,S5 as W,T_ as X,Vl as Y,yg as Z,Et as _,b3 as a,kw as a$,zo as a0,Uf as a1,ps as a2,Dl as a3,zf as a4,ql as a5,Qh as a6,Ll as a7,s9 as a8,a9,L9 as aA,i_ as aB,Tl as aC,xl as aD,ns as aE,I5 as aF,s4 as aG,Gh as aH,Jh as aI,Lr as aJ,F5 as aK,j9 as aL,y_ as aM,g_ as aN,K4 as aO,u_ as aP,ci as aQ,s1 as aR,Al as aS,a1 as aT,M2 as aU,w9 as aV,T9 as aW,_9 as aX,i9 as aY,Rw as aZ,s2 as a_,Cm as aa,Ci as ab,m9 as ac,Ht as ad,X6 as ae,N9 as af,f9 as ag,I9 as ah,R9 as ai,zw as aj,jh as ak,ts as al,Dw as am,l9 as an,Rh as ao,by as ap,jr as aq,ys as ar,H_ as as,B9 as at,W2 as au,W_ as av,Z_ as aw,bl as ax,M9 as ay,C9 as az,xf as b,o8 as b0,c9 as b1,D9 as b2,e8 as b3,t8 as b4,j2 as b5,O2 as b6,P2 as b7,n8 as b8,s8 as b9,x_ as bA,su as bB,L_ as bC,q5 as bD,H4 as bE,Uh as bF,b9 as ba,g9 as bb,qw as bc,S9 as bd,A9 as be,g3 as bf,D5 as bg,H5 as bh,l5 as bi,qh as bj,O9 as bk,Sl as bl,Es as bm,oi as bn,gs as bo,zl as bp,h5 as bq,A5 as br,f5 as bs,$h as bt,Dh as bu,d5 as bv,x5 as bw,z5 as bx,P9 as by,S_ as bz,h9 as c,w3 as d,Sa as e,p9 as f,Qo as g,d9 as h,$9 as i,hr as j,Sv as k,u9 as l,C8 as m,Bo as n,Yr as o,He as p,k9 as q,Lw as r,_t as s,se as t,Hn as u,r6 as v,kh as w,Wr as x,E9 as y,C_ as z};