@dcl/shop 0.1.0-29994103056.commit-191afbc → 0.1.0-29996672089.commit-ce4d282
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/Activity-ji9z26-b.js +243 -0
- package/assets/{AnimatedBackground-CwVmQoMy.js → AnimatedBackground-dlJZeXOs.js} +3 -3
- package/assets/Assets-DHtvK9gi.js +758 -0
- package/assets/{Assets.styles-BmY0qPN-.js → Assets.styles-DBA9HXW7.js} +1 -1
- package/assets/Authorizations-BNMCiOdB.js +163 -0
- package/assets/Cart-BlShrWP_.js +3 -0
- package/assets/{CircularProgress-BmaY3soK.js → CircularProgress-DvTkhDvC.js} +1 -1
- package/assets/{Collection-BlMV8rIO.js → Collection-DFIFsgYQ.js} +2 -2
- package/assets/CollectionCarousel-DMwkzkYf.js +1 -0
- package/assets/{ConstantsUtil-DO6FyoSW.js → ConstantsUtil-CJUlyS7R.js} +1 -1
- package/assets/{ContentClient-eS-Purid.js → ContentClient-DtuNqgIp.js} +1 -1
- package/assets/{Creator-CVsany2p.js → Creator-BzYX40qE.js} +1 -1
- package/assets/{CssVarsProvider-D03-j1T8.js → CssVarsProvider-D82yS8Ds.js} +1 -1
- package/assets/{DeploymentBuilder-mzKF7T6P.js → DeploymentBuilder-Bt5zjBVh.js} +1 -1
- package/assets/{ErrorNotice-BDH9xoG4.js → ErrorNotice-C7soUjRV.js} +1 -1
- package/assets/{ExchangeController-BKklF67w.js → ExchangeController-CiGVwKQf.js} +1 -1
- package/assets/{GetCredits-l0W_kkUA.js → GetCredits-eVhxGnMo.js} +1 -1
- package/assets/{HelpersUtil-1AJlaO39.js → HelpersUtil-C32FavmO.js} +1 -1
- package/assets/{ImportListings-CaC4hXkS.js → ImportListings-BiGwtdUn.js} +2 -2
- package/assets/ItemDetail-6dC_vNLF.css +1 -0
- package/assets/ItemDetail-DQOBDAhC.js +78 -0
- package/assets/{LoadMore-DCZi1YY-.js → LoadMore-BjvEi3Wj.js} +1 -1
- package/assets/MarketCheckout-BB0_ss_n.js +3 -0
- package/assets/{MyAssets-Gc_o5t9O.js → MyAssets-cbSiEx2B.js} +2 -2
- package/assets/{MyFavorites-CTtHG-tK.js → MyFavorites-DxWrJSpf.js} +2 -2
- package/assets/{NetworkUtil-BGlQiKvg.js → NetworkUtil-Xp0fNa8X.js} +1 -1
- package/assets/{NotFound-0kATSaSv.js → NotFound-Cj4SIl5T.js} +1 -1
- package/assets/{PrimaryListModal-QH5JEih2.js → PrimaryListModal-CdZJXblc.js} +1 -1
- package/assets/{StoreSettings-D97bWmhq.js → StoreSettings-LdrMcuVr.js} +5 -5
- package/assets/Success-BRT1MWds.js +4 -0
- package/assets/{SwapController-C8nP5wvc.js → SwapController-CXQ00xts.js} +1 -1
- package/assets/{Tooltip-BaUllE5E.js → Tooltip-BZ57TVaP.js} +1 -1
- package/assets/TradeService-SfkC7zHZ.js +1 -0
- package/assets/{W3MFrameProviderSingleton-B-iMukUt.js → W3MFrameProviderSingleton-B8RM0-JJ.js} +3 -3
- package/assets/{WebCryptoP256-BN2oUA6b.js → WebCryptoP256-D_33Dvnx.js} +1 -1
- package/assets/authorizations-D44lw00X.js +1 -0
- package/assets/{basic-BAZBRGQf.js → basic-CtFzqtOx.js} +1 -1
- package/assets/{biconomy-Bnx-4bDS.js → biconomy-BaeM1SCU.js} +1 -1
- package/assets/{browser-Cad_aDY9.js → browser-9oFjBwrz.js} +1 -1
- package/assets/{browser-ponyfill-CQ0GHmxr.js → browser-ponyfill-DMgE6PM5.js} +1 -1
- package/assets/browser-ponyfill-Djb5Py6a.js +1 -0
- package/assets/buy-Dszi8UeF.js +1 -0
- package/assets/buy-gasless-Nfp6cMbQ.js +1 -0
- package/assets/{cart-checkout-CUI-WqEI.js → cart-checkout-Ba3nMBI0.js} +1 -1
- package/assets/{categories-BGNx7jfw.js → categories-D0iwhqs_.js} +1 -1
- package/assets/{ccip-CPI8_6cL.js → ccip-CaKFUjmD.js} +1 -1
- package/assets/{ccip-s5BQ-vNw.js → ccip-DGnj8pvI.js} +1 -1
- package/assets/{chains-C1bwVnfj.js → chains-Bzau33xB.js} +1 -1
- package/assets/collection-DSysxaCY.js +1 -0
- package/assets/{common-yfho93wI.js → common-BaN-pXG4.js} +1 -1
- package/assets/{controller-CL9wipr5.js → controller-DqW_a2vQ.js} +2 -2
- package/assets/{core-gCo9rRyh.js → core-BfFj7IDN.js} +4 -4
- package/assets/{custom-BIAxnPyV.js → custom-CyKMgWLF.js} +1 -1
- package/assets/{data-capture-D_IuhqRX.js → data-capture-DyJzM655.js} +1 -1
- package/assets/{decimals-B36bI5dA.js → decimals-DaU_ek4_.js} +1 -1
- package/assets/decimals-HChuNAkm.js +1 -0
- package/assets/{detectExtension-CKplVZ9K.js → detectExtension-C2ped1rb.js} +1 -1
- package/assets/{email-BCklj9Js.js → email-B1LVTurO.js} +1 -1
- package/assets/{embedded-wallet-B6X4cZQC.js → embedded-wallet-DbH1O4GQ.js} +1 -1
- package/assets/{emotion-styled.browser.esm-D40Lt8fm.js → emotion-styled.browser.esm-CMXzhKww.js} +1 -1
- package/assets/{engine-skvS20px.js → engine-BNiIRF8k.js} +1 -1
- package/assets/{errors-DmdGTuzI.js → errors-DUo56sGG.js} +1 -1
- package/assets/estimate-l1-fee-DbEUBk2I.js +1 -0
- package/assets/eth_estimateGas-DcV1bi0C.js +1 -0
- package/assets/{eth_getStorageAt-C0E8Vng5.js → eth_getStorageAt-CvOhghFe.js} +1 -1
- package/assets/eth_getTransactionCount-BNyI69eR.js +1 -0
- package/assets/{ethereum-C5kfwN9D.js → ethereum-B_IIMsg0.js} +1 -1
- package/assets/{ethers-BIvjmL85.js → ethers-w5dOkonM.js} +1 -1
- package/assets/{execute-B_XUV-t5.js → execute-CzNqLgfO.js} +2 -2
- package/assets/{extractIPFS-CsawLTu6.js → extractIPFS-mhjpSq1K.js} +1 -1
- package/assets/{features-D1q967sn.js → features-D_R5E38-.js} +1 -1
- package/assets/{fetchTokenMetadata-Bgs6k1N5.js → fetchTokenMetadata-BZsN957Y.js} +2 -2
- package/assets/{fortmatic-DwISA9k4.js → fortmatic-DhmlcDbL.js} +1 -1
- package/assets/{get-bytecode-nwWHW248.js → get-bytecode-D38h1G96.js} +1 -1
- package/assets/get-ecosystem-wallet-info-BIlu2xkX.js +1 -0
- package/assets/{getBalance-D2FG5QKV.js → getBalance-BD5xADMR.js} +2 -2
- package/assets/{getInstalledModules-fBSGgSis.js → getInstalledModules-3Q5HYxkN.js} +1 -1
- package/assets/getNFT-B7e2uNF-.js +1 -0
- package/assets/{getNFT-BHzS5Cs2.js → getNFT-DjEJIHB0.js} +2 -2
- package/assets/{getOverlayAlpha-B90Fo_-m.js → getOverlayAlpha-Ho14PJoT.js} +1 -1
- package/assets/{hashTypedData-Cetq1UOK.js → hashTypedData-CC4Umz6j.js} +1 -1
- package/assets/{hashTypedData-DwlPS8MG.js → hashTypedData-DE2iuKMA.js} +1 -1
- package/assets/{import-DLMm_P8-.js → import-BPLVQmln.js} +1 -1
- package/assets/{in-app-CL2vGnrW.js → in-app-qD4m50Nn.js} +1 -1
- package/assets/{in-app-wallet-calls-CQYLsbwB.js → in-app-wallet-calls-BcFExuty.js} +1 -1
- package/assets/{index-DYAXJBpy.js → index--PWwvcNI.js} +1 -1
- package/assets/{index-Che81lrU.js → index-0syK5-Ww.js} +1 -1
- package/assets/{index-Chep4cKH.js → index-2Q-POj3l.js} +3 -3
- package/assets/{index-Ctbl3gOg.js → index-5RDpMwKv.js} +1 -1
- package/assets/{index-BptsdzIZ.js → index-Aw0QE_Br.js} +1 -1
- package/assets/{index-DcsKpVUb.js → index-B9U21JU-.js} +1 -1
- package/assets/{index-BrG8RI5z.js → index-B9n-6xCt.js} +1 -1
- package/assets/{index-DOyivP0c.js → index-BAKqn_lj.js} +2 -2
- package/assets/{index-D5zi_XmR.js → index-BBLW_jFO.js} +1 -1
- package/assets/{index-DAhYJ23_.js → index-BFydxC8W.js} +1 -1
- package/assets/{index-CMZ-l1j1.js → index-BGbFLGJH.js} +1 -1
- package/assets/{index-CwlKjFOG.js → index-BNa7Mf2M.js} +1 -1
- package/assets/{index-BEYHZcex.js → index-BW1vsFdc.js} +1 -1
- package/assets/{index-BBg2vZhG.js → index-B_AeYsKa.js} +1 -1
- package/assets/{index-CnFuk6fK.js → index-BfnFZQqu.js} +1 -1
- package/assets/{index-BXIq_1Tg.js → index-Bi7dtaTz.js} +1 -1
- package/assets/{index-Bn-EvtCB.js → index-Bk6ayCIs.js} +1 -1
- package/assets/{index-Dzy3N4vA.js → index-BnrQ0KXT.js} +1 -1
- package/assets/{index-Cx9CeoZH.js → index-Bt55wXtx.js} +1 -1
- package/assets/{index-BywohlL7.js → index-BuXSM1De.js} +1 -1
- package/assets/{index-B65D0iv0.js → index-ByOIX4VW.js} +1 -1
- package/assets/{index-CVPd9k0D.js → index-C4111GJ-.js} +2 -2
- package/assets/{index-DexIqMzn.js → index-C8P6BHpY.js} +3 -3
- package/assets/{index-D6Thjy9g.js → index-CA73t5p4.js} +1 -1
- package/assets/{index-Zev_LSPI.js → index-CDkTFenk.js} +2 -2
- package/assets/index-CGNquv7o.js +289 -0
- package/assets/{index-B-wT7-Au.js → index-CPvKfkxC.js} +1 -1
- package/assets/{index-C6-1JAkG.js → index-CXMHgbT-.js} +1 -1
- package/assets/{index-CrqgaFmq.js → index-Ck1Cgm82.js} +1 -1
- package/assets/{index-D2F7-1mk.js → index-Cl3G53Lb.js} +1 -1
- package/assets/{index-BGuUm-N-.js → index-CqYbCFw1.js} +1 -1
- package/assets/index-CrKaGnrK.css +1 -0
- package/assets/{index-C5t2d1JX.js → index-CrhtLjWe.js} +1 -1
- package/assets/{index-CHspULa1.js → index-CuA9C-j1.js} +1 -1
- package/assets/{index-BedvNbsM.js → index-CwFsoF5e.js} +1 -1
- package/assets/{index-DTJ6mS_J.js → index-CwKIaxXt.js} +1 -1
- package/assets/{index-B-3QmCY1.js → index-Cx9QgWtN.js} +1 -1
- package/assets/{index-C97CPhyL.js → index-D2bdndwX.js} +1 -1
- package/assets/{index-K0TqdX33.js → index-D7KDT9M9.js} +1 -1
- package/assets/{index-nTA1Tk1a.js → index-DD8leihn.js} +1 -1
- package/assets/{index-DjQcD_Sm.js → index-DGOaB47n.js} +1 -1
- package/assets/index-DH3Yzbz3.js +1 -0
- package/assets/{index-CSRkaTCL.js → index-DRB-gQiu.js} +1 -1
- package/assets/{index-ChbyDwUh.js → index-DUx_udvr.js} +1 -1
- package/assets/{index-DLJwIINa.js → index-DVl2fB76.js} +1 -1
- package/assets/{index-CyrfWYlv.js → index-DWj03ICg.js} +1 -1
- package/assets/{index-BZk7RUfM.js → index-D_jFC223.js} +1 -1
- package/assets/{index-C0wsNojR.js → index-D_xn82-1.js} +1 -1
- package/assets/{index-DnxELmkR.js → index-DcVvVcVQ.js} +1 -1
- package/assets/{index-C2te_xAY.js → index-Dg2IevmK.js} +2 -2
- package/assets/{index-CjBPO58E.js → index-Dp3Py-Ws.js} +1 -1
- package/assets/{index-d3ZKkcaA.js → index-Dv2SQ_eL.js} +1 -1
- package/assets/{index-o_m2wFAn.js → index-DxFC7t5T.js} +1 -1
- package/assets/{index-C2N-AU8j.js → index-Dzj-nA_x.js} +3 -3
- package/assets/index-HN6Rk25C.js +1 -0
- package/assets/{index-BkQHYnhC.js → index-I5rJvbQ1.js} +1 -1
- package/assets/{index-CWfnhYLp.js → index-OGdy2qbx.js} +1 -1
- package/assets/{index-CvIOskBU.js → index-QMzB_9kT.js} +1 -1
- package/assets/{index-B6gcmiqs.js → index-VUv3xRHQ.js} +1 -1
- package/assets/{index-DyhpH4px.js → index-grzzP9n9.js} +1 -1
- package/assets/{index-D3iIxnX6.js → index-hDcHuSsT.js} +1 -1
- package/assets/{index-D-i0A7WQ.js → index-hmML8Yn6.js} +2 -2
- package/assets/{index-0F8nhLaF.js → index-lVvjFIjk.js} +1 -1
- package/assets/{index-uK7qM9c7.js → index-w4_5Aj8T.js} +1 -1
- package/assets/{index-CW9ug21x.js → index-yRQsdAyS.js} +3 -3
- package/assets/{index-yr9vyS0z.js → index-z9bgkHOn.js} +1 -1
- package/assets/{index.es-DnNvUOrT.js → index.es-CMAy1XDw.js} +1 -1
- package/assets/{index.es-CZtQ8FVb.js → index.es-CMyspuf3.js} +4 -4
- package/assets/{index.es-DlHsAJbI.js → index.es-DLt1eklQ.js} +1 -1
- package/assets/{linkAccount-DKoZKguc.js → linkAccount-e50lqdUE.js} +1 -1
- package/assets/{localBatchGatewayRequest-DiUucTH0.js → localBatchGatewayRequest-Da4arsJr.js} +1 -1
- package/assets/mana-rate-BM11zYcS.js +1 -0
- package/assets/{native-t1vLKS11.js → native-BMBZUPnx.js} +1 -1
- package/assets/{networks-D5rFr4Uy.js → networks-CP5ZxOS7.js} +1 -1
- package/assets/{onramp-RD8o9zW8.js → onramp-DEaPwD93.js} +1 -1
- package/assets/{openzeppelin-GzHB2W1P.js → openzeppelin-ubglQWTS.js} +1 -1
- package/assets/{ownerOf-Cl_sRHvA.js → ownerOf-dLmWQ3QZ.js} +1 -1
- package/assets/{parseNft-CbgJiXpe.js → parseNft-nhS1PzrY.js} +2 -2
- package/assets/{parseSignature-DGB4v4W-.js → parseSignature-DIaDPyGA.js} +1 -1
- package/assets/{parseSignature-DZazOabU.js → parseSignature-DtIw2rXo.js} +3 -3
- package/assets/{passkeys-BDOXnD26.js → passkeys-l4VrwtfF.js} +1 -1
- package/assets/{pay-with-exchange-ChCNzNHg.js → pay-with-exchange-yIOka8rX.js} +1 -1
- package/assets/{prepare-contract-call-DmYPUPWz.js → prepare-contract-call-aT1l2NVg.js} +1 -1
- package/assets/{qr-overlay-BIPzfQds.js → qr-overlay-BC6wsExf.js} +3 -3
- package/assets/{react-BrLDncxD.js → react-C51i12iP.js} +1 -1
- package/assets/{receive-CsWO80gl.js → receive-DGr9WBJt.js} +1 -1
- package/assets/{resolveImplementation-CInkT_I9.js → resolveImplementation-CgWwbjqg.js} +1 -1
- package/assets/{rpc-DOR15RcJ.js → rpc-2WnfD84R.js} +1 -1
- package/assets/{secp256k1-DUaLgTGJ.js → secp256k1-BzEjkNEy.js} +1 -1
- package/assets/{secp256k1-C8pkcGJ3.js → secp256k1-C2nawWfp.js} +1 -1
- package/assets/{secp256k1-N7sx_maT.js → secp256k1-C3Ly2cZR.js} +1 -1
- package/assets/{send-BEnX8iHn.js → send-DaMmaBKd.js} +1 -1
- package/assets/{send-batch-transaction-Cl-WR4dD.js → send-batch-transaction-BJnHeeX4.js} +1 -1
- package/assets/{send-eip712-transaction-BnpCutKi.js → send-eip712-transaction-lGbfEAzA.js} +2 -2
- package/assets/send-gasless-transaction-GytT3EN0.js +2 -0
- package/assets/{send-transaction-BcThrsCr.js → send-transaction-wju-H3Cn.js} +2 -2
- package/assets/sendMetaTransaction-CiO3jI6F.js +1 -0
- package/assets/{sendRawTransaction-BJLeMhAd.js → sendRawTransaction-B7gRnaFv.js} +3 -3
- package/assets/{sentry-DYZXk5O5.js → sentry-DKBoGDXH.js} +1 -1
- package/assets/{serializeTransaction-BMgHZkKp.js → serializeTransaction-K8-WLWnl.js} +1 -1
- package/assets/{session-proposal-Ds2RY-CA.js → session-proposal-eLNEKDfD.js} +1 -1
- package/assets/{session-request-CLTybC5q.js → session-request-D0qpm2ew.js} +2 -2
- package/assets/{sha256-DM_yyL1v.js → sha256-BcAs0Y4r.js} +1 -1
- package/assets/{signing-Dr9d33yf.js → signing-gBX9gJ32.js} +3 -3
- package/assets/{socials-CaYP6kJa.js → socials-CD_j_07F.js} +1 -1
- package/assets/{swaps-BHrutsbS.js → swaps-Bzm1G8N4.js} +1 -1
- package/assets/{thirdweb-DIAnaqbp.js → thirdweb-DCMx7j1D.js} +3 -3
- package/assets/{to-serializable-transaction-DqNZm-Zy.js → to-serializable-transaction-BZAI7BsG.js} +2 -2
- package/assets/{totalSupply-DKYveUeg.js → totalSupply-BCBM6uY2.js} +1 -1
- package/assets/trade-encoding-2LKm-Goy.js +1 -0
- package/assets/{transaction-HL8b44XJ.js → transaction-Db6pntE5.js} +1 -1
- package/assets/{transactionReceipt-iA2axmC8.js → transactionReceipt-CRyPQK5a.js} +1 -1
- package/assets/{transactions-DAq9dNVo.js → transactions-I7lCf2CM.js} +1 -1
- package/assets/useCreditPacks-DYrmYjK5.js +1 -0
- package/assets/{useInfiniteGrid-Dh1-HUF4.js → useInfiniteGrid-CDzsfZBu.js} +1 -1
- package/assets/useManaRate-BEdT5IGm.js +1 -0
- package/assets/{useStore-DBh7zwbY.js → useStore-D1gCXOP_.js} +2 -2
- package/assets/{useTheme-ddXkiCRZ.js → useTheme-CUwz5NUH.js} +1 -1
- package/assets/useTheme-hvTZJoGa.js +1 -0
- package/assets/{utils-5mrprTVL.js → utils-DBnU1jhd.js} +1 -1
- package/assets/{verifyHash-C62BfpA_.js → verifyHash-DGsbtWAk.js} +1 -1
- package/assets/{w3m-modal-Bxbo8T_Z.js → w3m-modal-C4axQEqk.js} +1 -1
- package/assets/{w3m-modal-BT8yrl74.js → w3m-modal-DJ_LdfUD.js} +1 -1
- package/assets/{wait-for-tx-receipt-D_og-NhE.js → wait-for-tx-receipt-JPXzoKCu.js} +1 -1
- package/assets/{wallets-B72ZtlfA.js → wallets-CkR7yrP_.js} +5 -5
- package/assets/{web-connector-DBmok4eN.js → web-connector-HjRYE3VT.js} +3 -3
- package/assets/{writeContract-CLiFKioV.js → writeContract-DSPOgOMV.js} +1 -1
- package/assets/{zora-sepolia-Bef01XwU.js → zora-sepolia-Bwjy_6bk.js} +1 -1
- package/assets/{zoraTestnet-Bfnpd26p.js → zoraTestnet-2TguyOvD.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/Assets-DqZw3BZv.js +0 -758
- package/assets/Authorizations-BxmoVEl_.js +0 -163
- package/assets/Cart-DA1J5Be_.js +0 -3
- package/assets/CollectionCarousel-B2cDWt_o.js +0 -1
- package/assets/ItemDetail-BiAHzfHh.css +0 -1
- package/assets/ItemDetail-DHaOvIrD.js +0 -78
- package/assets/MarketCheckout-BrvEzX8j.js +0 -3
- package/assets/MyPurchases-DLOdIHUA.js +0 -200
- package/assets/Success-DRMy6BRe.js +0 -4
- package/assets/TradeService-ZNznSjPX.js +0 -1
- package/assets/authorizations-QONJAQC4.js +0 -1
- package/assets/browser-ponyfill-vZOvKb_B.js +0 -1
- package/assets/buy-CE5I6jg2.js +0 -1
- package/assets/buy-gasless-DPcBjPtZ.js +0 -1
- package/assets/collection-Bm8Org8q.js +0 -1
- package/assets/decimals-BPDUTKfa.js +0 -1
- package/assets/estimate-l1-fee-J0AI4VGA.js +0 -1
- package/assets/eth_estimateGas-BeErQaun.js +0 -1
- package/assets/eth_getTransactionCount-kFIWL36y.js +0 -1
- package/assets/get-ecosystem-wallet-info-BRMexyn8.js +0 -1
- package/assets/getNFT-DrLPmHpk.js +0 -1
- package/assets/index-Bw9Y53F1.css +0 -1
- package/assets/index-CD_HpB6P.js +0 -1
- package/assets/index-DaOu_NHP.js +0 -289
- package/assets/mana-rate-BX_VjspN.js +0 -1
- package/assets/send-gasless-transaction-CGxm_r0E.js +0 -2
- package/assets/sendMetaTransaction-iOoE_Tw3.js +0 -1
- package/assets/trade-encoding-DqhxC9n7.js +0 -1
- package/assets/useCreditPacks-CV1PhThV.js +0 -1
- package/assets/useTheme--bd6Ub02.js +0 -1
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Aw0QE_Br.js","assets/react-C51i12iP.js","assets/dcl-schemas-BICTSpB5.js","assets/index-BBLW_jFO.js","assets/emotion-styled.browser.esm-CMXzhKww.js","assets/colors-LINLm1ux.js","assets/sentry-DKBoGDXH.js","assets/ethers-w5dOkonM.js","assets/intl-CBcMB1D2.js","assets/index-CDkTFenk.js","assets/events-DQ172AOg.js","assets/TradeService-SfkC7zHZ.js","assets/index-HN6Rk25C.js","assets/sendMetaTransaction-CiO3jI6F.js","assets/index-CrhtLjWe.js","assets/index-Dp3Py-Ws.js","assets/index-Dzj-nA_x.js","assets/useTheme-CUwz5NUH.js","assets/CircularProgress-DvTkhDvC.js","assets/useTheme-hvTZJoGa.js","assets/getOverlayAlpha-Ho14PJoT.js","assets/AnimatedBackground-dlJZeXOs.js","assets/AnimatedBackground-CiurwFBv.css","assets/Assets-DHtvK9gi.js","assets/mana-rate-BM11zYcS.js","assets/useManaRate-BEdT5IGm.js","assets/Assets.styles-DBA9HXW7.js","assets/categories-D0iwhqs_.js","assets/emotion-CSxEP8yM.js","assets/categories-_8oO8Yih.css","assets/Tooltip-BZ57TVaP.js","assets/LoadMore-BjvEi3Wj.js","assets/MarketCheckout-BB0_ss_n.js","assets/buy-Dszi8UeF.js","assets/authorizations-D44lw00X.js","assets/trade-encoding-2LKm-Goy.js","assets/buy-gasless-Nfp6cMbQ.js","assets/errors-DUo56sGG.js","assets/ErrorNotice-C7soUjRV.js","assets/useInfiniteGrid-CDzsfZBu.js","assets/loader-logo-BzY9EKdC.js","assets/ItemDetail-DQOBDAhC.js","assets/CollectionCarousel-DMwkzkYf.js","assets/address-DrURAr9O.js","assets/CollectionCarousel-BCnK8TgK.css","assets/PrimaryListModal-CdZJXblc.js","assets/useCreditPacks-DYrmYjK5.js","assets/resume-buy-Bf0zIH7y.js","assets/ItemDetail-6dC_vNLF.css","assets/Collection-DFIFsgYQ.js","assets/collection-DSysxaCY.js","assets/collection-CrgnzsVL.css","assets/useStore-D1gCXOP_.js","assets/Collection-Dpog3TvS.css","assets/Creator-BzYX40qE.js","assets/Creator-Cpx_caba.css","assets/StoreSettings-LdrMcuVr.js","assets/StoreSettings-Bk5IXwNu.css","assets/MyAssets-cbSiEx2B.js","assets/import-BPLVQmln.js","assets/MyFavorites-DxWrJSpf.js","assets/Activity-ji9z26-b.js","assets/ImportListings-BiGwtdUn.js","assets/ImportListings-Dx8BzO4r.css","assets/Cart-BlShrWP_.js","assets/cart-checkout-Ba3nMBI0.js","assets/Cart-B1Y37Q7h.css","assets/Authorizations-BNMCiOdB.js","assets/GetCredits-eVhxGnMo.js","assets/Success-BRT1MWds.js","assets/NotFound-Cj4SIl5T.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Wh=Object.defineProperty;var uu=e=>{throw TypeError(e)};var Zh=(e,t,r)=>t in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var en=(e,t,r)=>Zh(e,typeof t!="symbol"?t+"":t,r),ii=(e,t,r)=>t.has(e)||uu("Cannot "+r);var W=(e,t,r)=>(ii(e,t,"read from private field"),r?r.call(e):t.get(e)),Oe=(e,t,r)=>t.has(e)?uu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),be=(e,t,r,n)=>(ii(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(ii(e,t,"access private method"),r);var es=(e,t,r,n)=>({set _(a){be(e,t,a,r)},get _(){return W(e,t,n)}});import{r as ne,j as u,l as Nc,i as $2,g as As,R as D2,c as Pc,u as ks,h as Kh,L as Sn,e as Kr,k as Yh,b as Qh,a as q2,m as vn,n as Jh,o as Et,N as ci,p as Xh,B as e1}from"./react-C51i12iP.js";import{b as t1,d as bt,a as du}from"./dcl-schemas-BICTSpB5.js";import{p as gs,i as r1,B as n1,s as a1,a as o1,E as fu}from"./sentry-DKBoGDXH.js";import{W as s1,k as i1,h as hu,f as U2}from"./ethers-w5dOkonM.js";import{_ as xn,D as c1,i as l1,a as ul,c as u1,b as d1,f as f1,d as h1,e as m1}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 o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var ro=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(){}},An,on,ra,I2,p1=(I2=class extends ro{constructor(){super();Oe(this,An);Oe(this,on);Oe(this,ra);be(this,ra,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){W(this,on)||this.setEventListener(W(this,ra))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,on))==null||t.call(this),be(this,on,void 0))}setEventListener(t){var r;be(this,ra,t),(r=W(this,on))==null||r.call(this),be(this,on,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){W(this,An)!==t&&(be(this,An,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof W(this,An)=="boolean"?W(this,An):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},An=new WeakMap,on=new WeakMap,ra=new WeakMap,I2),dl=new p1,g1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},sn,ll,R2,y1=(R2=class{constructor(){Oe(this,sn,g1);Oe(this,ll,!1)}setTimeoutProvider(e){be(this,sn,e)}setTimeout(e,t){return W(this,sn).setTimeout(e,t)}clearTimeout(e){W(this,sn).clearTimeout(e)}setInterval(e,t){return W(this,sn).setInterval(e,t)}clearInterval(e){W(this,sn).clearInterval(e)}},sn=new WeakMap,ll=new WeakMap,R2),Tn=new y1;function v1(e){setTimeout(e,0)}var b1=typeof window>"u"||"Deno"in globalThis;function Yt(){}function w1(e,t){return typeof e=="function"?e(t):e}function Oc(e){return typeof e=="number"&&e>=0&&e!==1/0}function H2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function mn(e,t){return typeof e=="function"?e(t):e}function rr(e,t){return typeof e=="function"?e(t):e}function mu(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:s,stale:d}=e;if(s){if(n){if(t.queryHash!==fl(s,t.options))return!1}else if(!Ua(t.queryKey,s))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||o&&!o(t))}function pu(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(qa(t.options.mutationKey)!==qa(o))return!1}else if(!Ua(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function fl(e,t){return((t==null?void 0:t.queryKeyHashFn)||qa)(e)}function qa(e){return JSON.stringify(e,(t,r)=>Lc(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Ua(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Ua(e[r],t[r])):!1}var _1=Object.prototype.hasOwnProperty;function V2(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=gu(e)&&gu(t);if(!n&&!(Lc(e)&&Lc(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),d=s.length,f=n?new Array(d):{};let h=0;for(let m=0;m<d;m++){const p=n?m:s[m],v=e[p],_=t[p];if(v===_){f[p]=v,(n?m<o:_1.call(e,p))&&h++;continue}if(v===null||_===null||typeof v!="object"||typeof _!="object"){f[p]=_;continue}const A=V2(v,_,r+1);f[p]=A,A===v&&h++}return o===d&&h===o?e:f}function jc(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 gu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Lc(e){if(!yu(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!yu(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function yu(e){return Object.prototype.toString.call(e)==="[object Object]"}function C1(e){return new Promise(t=>{Tn.setTimeout(t,e)})}function Bc(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?V2(e,t):t}function li(e){return e}function E1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function x1(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var hl=Symbol();function z2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===hl?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function G2(e,t){return typeof e=="function"?e(...t):!!e}function S1(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 Ha=(()=>{let e=()=>b1;return{isServer(){return e()},setIsServer(t){e=t}}})();function Mc(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});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 T1=v1;function A1(){let e=[],t=0,r=d=>{d()},n=d=>{d()},a=T1;const o=d=>{t?e.push(d):a(()=>{r(d)})},s=()=>{const d=e;e=[],d.length&&a(()=>{n(()=>{d.forEach(f=>{r(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||s()}return f},batchCalls:d=>(...f)=>{o(()=>{d(...f)})},schedule:o,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d},setScheduler:d=>{a=d}}}var Nt=A1(),na,cn,aa,N2,k1=(N2=class extends ro{constructor(){super();Oe(this,na,!0);Oe(this,cn);Oe(this,aa);be(this,aa,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(){W(this,cn)||this.setEventListener(W(this,aa))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,cn))==null||t.call(this),be(this,cn,void 0))}setEventListener(t){var r;be(this,aa,t),(r=W(this,cn))==null||r.call(this),be(this,cn,t(this.setOnline.bind(this)))}setOnline(t){W(this,na)!==t&&(be(this,na,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return W(this,na)}},na=new WeakMap,cn=new WeakMap,aa=new WeakMap,N2),Cs=new k1;function I1(e){return Math.min(1e3*2**e,3e4)}function W2(e){return(e??"online")==="online"?Cs.isOnline():!0}var Fc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Z2(e){let t=!1,r=0,n;const a=Mc(),o=()=>a.status!=="pending",s=g=>{var T;if(!o()){const z=new Fc(g);v(z),(T=e.onCancel)==null||T.call(e,z)}},d=()=>{t=!0},f=()=>{t=!1},h=()=>dl.isFocused()&&(e.networkMode==="always"||Cs.isOnline())&&e.canRun(),m=()=>W2(e.networkMode)&&e.canRun(),p=g=>{o()||(n==null||n(),a.resolve(g))},v=g=>{o()||(n==null||n(),a.reject(g))},_=()=>new Promise(g=>{var T;n=z=>{(o()||h())&&g(z)},(T=e.onPause)==null||T.call(e)}).then(()=>{var g;n=void 0,o()||(g=e.onContinue)==null||g.call(e)}),A=()=>{if(o())return;let g;const T=r===0?e.initialPromise:void 0;try{g=T??e.fn()}catch(z){g=Promise.reject(z)}Promise.resolve(g).then(p).catch(z=>{var U;if(o())return;const b=e.retry??(Ha.isServer()?0:3),I=e.retryDelay??I1,w=typeof I=="function"?I(r,z):I,K=b===!0||typeof b=="number"&&r<b||typeof b=="function"&&b(r,z);if(t||!K){v(z);return}r++,(U=e.onFail)==null||U.call(e,r,z),C1(w).then(()=>h()?void 0:_()).then(()=>{t?v(z):A()})})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(n==null||n(),a),cancelRetry:d,continueRetry:f,canStart:m,start:()=>(m()?A():_().then(A),a)}}var kn,P2,K2=(P2=class{constructor(){Oe(this,kn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oc(this.gcTime)&&be(this,kn,Tn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ha.isServer()?1/0:300*1e3))}clearGcTimeout(){W(this,kn)!==void 0&&(Tn.clearTimeout(W(this,kn)),be(this,kn,void 0))}},kn=new WeakMap,P2);function R1(e){return{onFetch:(t,r)=>{var m,p,v,_,A;const n=t.options,a=(v=(p=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:p.fetchMore)==null?void 0:v.direction,o=((_=t.state.data)==null?void 0:_.pages)||[],s=((A=t.state.data)==null?void 0:A.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const h=async()=>{let g=!1;const T=I=>{S1(I,()=>t.signal,()=>g=!0)},z=z2(t.options,t.fetchOptions),b=async(I,w,K)=>{if(g)return Promise.reject(t.signal.reason);if(w==null&&I.pages.length)return Promise.resolve(I);const x=(()=>{const ae={client:t.client,queryKey:t.queryKey,pageParam:w,direction:K?"backward":"forward",meta:t.options.meta};return T(ae),ae})(),q=await z(x),{maxPages:Q}=t.options,ee=K?x1:E1;return{pages:ee(I.pages,q,Q),pageParams:ee(I.pageParams,w,Q)}};if(a&&o.length){const I=a==="backward",w=I?Y2:$c,K={pages:o,pageParams:s},U=w(n,K);d=await b(K,U,I)}else{const I=e??o.length;do{const w=f===0?s[0]??n.initialPageParam:$c(n,d);if(f>0&&w==null)break;d=await b(d,w),f++}while(f<I)}return d};t.options.persister?t.fetchFn=()=>{var g,T;return(T=(g=t.options).persister)==null?void 0:T.call(g,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function $c(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 Y2(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 E8(e,t){return t?$c(e,t)!=null:!1}function x8(e,t){return!t||!e.getPreviousPageParam?!1:Y2(e,t)!=null}var oa,In,sa,ir,Rn,Tt,Qa,Nn,tr,Q2,Hr,O2,N1=(O2=class extends K2{constructor(t){super();Oe(this,tr);Oe(this,oa);Oe(this,In);Oe(this,sa);Oe(this,ir);Oe(this,Rn);Oe(this,Tt);Oe(this,Qa);Oe(this,Nn);be(this,Nn,!1),be(this,Qa,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,Rn,t.client),be(this,ir,W(this,Rn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,In,bu(this.options)),this.state=t.state??W(this,In),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return W(this,oa)}get promise(){var t;return(t=W(this,Tt))==null?void 0:t.promise}setOptions(t){if(this.options={...W(this,Qa),...t},t!=null&&t._type&&be(this,oa,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=bu(this.options);r.data!==void 0&&(this.setState(vu(r.data,r.dataUpdatedAt)),be(this,In,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&W(this,ir).remove(this)}setData(t,r){const n=Bc(this.state.data,t,this.options);return $e(this,tr,Hr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t){$e(this,tr,Hr).call(this,{type:"setState",state:t})}cancel(t){var n,a;const r=(n=W(this,Tt))==null?void 0:n.promise;return(a=W(this,Tt))==null||a.cancel(t),r?r.then(Yt).catch(Yt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return W(this,In)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>rr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hl||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>mn(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:!H2(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=W(this,Tt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=W(this,Tt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),W(this,ir).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(W(this,Tt)&&(W(this,Nn)||$e(this,tr,Q2).call(this)?W(this,Tt).cancel({revert:!0}):W(this,Tt).cancelRetry()),this.scheduleGc()),W(this,ir).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,tr,Hr).call(this,{type:"invalidate"})}async fetch(t,r){var h,m,p,v,_,A,g,T,z,b,I;if(this.state.fetchStatus!=="idle"&&((h=W(this,Tt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(W(this,Tt))return W(this,Tt).continueRetry(),W(this,Tt).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:()=>(be(this,Nn,!0),n.signal)})},o=()=>{const w=z2(this.options,r),U=(()=>{const x={client:W(this,Rn),queryKey:this.queryKey,meta:this.meta};return a(x),x})();return be(this,Nn,!1),this.options.persister?this.options.persister(w,U,this):w(U)},d=(()=>{const w={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:W(this,Rn),state:this.state,fetchFn:o};return a(w),w})(),f=W(this,oa)==="infinite"?R1(this.options.pages):this.options.behavior;f==null||f.onFetch(d,this),be(this,sa,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=d.fetchOptions)==null?void 0:m.meta))&&$e(this,tr,Hr).call(this,{type:"fetch",meta:(p=d.fetchOptions)==null?void 0:p.meta}),be(this,Tt,Z2({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,onCancel:w=>{w instanceof Fc&&w.revert&&this.setState({...W(this,sa),fetchStatus:"idle"}),n.abort()},onFail:(w,K)=>{$e(this,tr,Hr).call(this,{type:"failed",failureCount:w,error:K})},onPause:()=>{$e(this,tr,Hr).call(this,{type:"pause"})},onContinue:()=>{$e(this,tr,Hr).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const w=await W(this,Tt).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(_=(v=W(this,ir).config).onSuccess)==null||_.call(v,w,this),(g=(A=W(this,ir).config).onSettled)==null||g.call(A,w,this.state.error,this),w}catch(w){if(w instanceof Fc){if(w.silent)return W(this,Tt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw $e(this,tr,Hr).call(this,{type:"error",error:w}),(z=(T=W(this,ir).config).onError)==null||z.call(T,w,this),(I=(b=W(this,ir).config).onSettled)==null||I.call(b,this.state.data,w,this),w}finally{this.scheduleGc()}}},oa=new WeakMap,In=new WeakMap,sa=new WeakMap,ir=new WeakMap,Rn=new WeakMap,Tt=new WeakMap,Qa=new WeakMap,Nn=new WeakMap,tr=new WeakSet,Q2=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Hr=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,...J2(n.data,this.options),fetchMeta:t.meta??null};case"success":const a={...n,...vu(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return be(this,sa,t.manual?a:void 0),a;case"error":const o=t.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Nt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),W(this,ir).notify({query:this,type:"updated",action:t})})},O2);function J2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:W2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function bu(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 Kt,qe,Ja,qt,Pn,ia,zr,ln,Xa,ca,la,On,jn,un,ua,Ke,La,Dc,qc,Uc,Hc,Vc,zc,Gc,X2,j2,P1=(j2=class extends ro{constructor(t,r){super();Oe(this,Ke);Oe(this,Kt);Oe(this,qe);Oe(this,Ja);Oe(this,qt);Oe(this,Pn);Oe(this,ia);Oe(this,zr);Oe(this,ln);Oe(this,Xa);Oe(this,ca);Oe(this,la);Oe(this,On);Oe(this,jn);Oe(this,un);Oe(this,ua,new Set);this.options=r,be(this,Kt,t),be(this,ln,null),be(this,zr,Mc()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(W(this,qe).addObserver(this),wu(W(this,qe),this.options)?$e(this,Ke,La).call(this):this.updateResult(),$e(this,Ke,Hc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Wc(W(this,qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Wc(W(this,qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$e(this,Ke,Vc).call(this),$e(this,Ke,zc).call(this),W(this,qe).removeObserver(this)}setOptions(t){const r=this.options,n=W(this,qe);if(this.options=W(this,Kt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof rr(this.options.enabled,W(this,qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$e(this,Ke,Gc).call(this),W(this,qe).setOptions(this.options),r._defaulted&&!jc(this.options,r)&&W(this,Kt).getQueryCache().notify({type:"observerOptionsUpdated",query:W(this,qe),observer:this});const a=this.hasListeners();a&&_u(W(this,qe),n,this.options,r)&&$e(this,Ke,La).call(this),this.updateResult(),a&&(W(this,qe)!==n||rr(this.options.enabled,W(this,qe))!==rr(r.enabled,W(this,qe))||mn(this.options.staleTime,W(this,qe))!==mn(r.staleTime,W(this,qe)))&&$e(this,Ke,Dc).call(this);const o=$e(this,Ke,qc).call(this);a&&(W(this,qe)!==n||rr(this.options.enabled,W(this,qe))!==rr(r.enabled,W(this,qe))||o!==W(this,un))&&$e(this,Ke,Uc).call(this,o)}getOptimisticResult(t){const r=W(this,Kt).getQueryCache().build(W(this,Kt),t),n=this.createResult(r,t);return j1(this,n)&&(be(this,qt,n),be(this,ia,this.options),be(this,Pn,W(this,qe).state)),n}getCurrentResult(){return W(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&&W(this,zr).status==="pending"&&W(this,zr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(t){W(this,ua).add(t)}getCurrentQuery(){return W(this,qe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=W(this,Kt).defaultQueryOptions(t),n=W(this,Kt).getQueryCache().build(W(this,Kt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return $e(this,Ke,La).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),W(this,qt)))}createResult(t,r){var Q;const n=W(this,qe),a=this.options,o=W(this,qt),s=W(this,Pn),d=W(this,ia),h=t!==n?t.state:W(this,Ja),{state:m}=t;let p={...m},v=!1,_;if(r._optimisticResults){const ee=this.hasListeners(),ae=!ee&&wu(t,r),J=ee&&_u(t,n,r,a);(ae||J)&&(p={...p,...J2(m.data,t.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:A,errorUpdatedAt:g,status:T}=p;_=p.data;let z=!1;if(r.placeholderData!==void 0&&_===void 0&&T==="pending"){let ee;o!=null&&o.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?(ee=o.data,z=!0):ee=typeof r.placeholderData=="function"?r.placeholderData((Q=W(this,la))==null?void 0:Q.state.data,W(this,la)):r.placeholderData,ee!==void 0&&(T="success",_=Bc(o==null?void 0:o.data,ee,r),v=!0)}if(r.select&&_!==void 0&&!z)if(o&&_===(s==null?void 0:s.data)&&r.select===W(this,Xa))_=W(this,ca);else try{be(this,Xa,r.select),_=r.select(_),_=Bc(o==null?void 0:o.data,_,r),be(this,ca,_),be(this,ln,null)}catch(ee){be(this,ln,ee)}W(this,ln)&&(A=W(this,ln),_=W(this,ca),g=Date.now(),T="error");const b=p.fetchStatus==="fetching",I=T==="pending",w=T==="error",K=I&&b,U=_!==void 0,q={status:T,fetchStatus:p.fetchStatus,isPending:I,isSuccess:T==="success",isError:w,isInitialLoading:K,isLoading:K,data:_,dataUpdatedAt:p.dataUpdatedAt,error:A,errorUpdatedAt:g,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:b,isRefetching:b&&!I,isLoadingError:w&&!U,isPaused:p.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:w&&U,isStale:ml(t,r),refetch:this.refetch,promise:W(this,zr),isEnabled:rr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const ee=q.data!==void 0,ae=q.status==="error"&&!ee,J=Z=>{ae?Z.reject(q.error):ee&&Z.resolve(q.data)},L=()=>{const Z=be(this,zr,q.promise=Mc());J(Z)},N=W(this,zr);switch(N.status){case"pending":t.queryHash===n.queryHash&&J(N);break;case"fulfilled":(ae||q.data!==N.value)&&L();break;case"rejected":(!ae||q.error!==N.reason)&&L();break}}return q}updateResult(){const t=W(this,qt),r=this.createResult(W(this,qe),this.options);if(be(this,Pn,W(this,qe).state),be(this,ia,this.options),W(this,Pn).data!==void 0&&be(this,la,W(this,qe)),jc(r,t))return;be(this,qt,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!W(this,ua).size)return!0;const s=new Set(o??W(this,ua));return this.options.throwOnError&&s.add("error"),Object.keys(W(this,qt)).some(d=>{const f=d;return W(this,qt)[f]!==t[f]&&s.has(f)})};$e(this,Ke,X2).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$e(this,Ke,Hc).call(this)}},Kt=new WeakMap,qe=new WeakMap,Ja=new WeakMap,qt=new WeakMap,Pn=new WeakMap,ia=new WeakMap,zr=new WeakMap,ln=new WeakMap,Xa=new WeakMap,ca=new WeakMap,la=new WeakMap,On=new WeakMap,jn=new WeakMap,un=new WeakMap,ua=new WeakMap,Ke=new WeakSet,La=function(t){$e(this,Ke,Gc).call(this);let r=W(this,qe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Yt)),r},Dc=function(){$e(this,Ke,Vc).call(this);const t=mn(this.options.staleTime,W(this,qe));if(Ha.isServer()||W(this,qt).isStale||!Oc(t))return;const n=H2(W(this,qt).dataUpdatedAt,t)+1;be(this,On,Tn.setTimeout(()=>{W(this,qt).isStale||this.updateResult()},n))},qc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(W(this,qe)):this.options.refetchInterval)??!1},Uc=function(t){$e(this,Ke,zc).call(this),be(this,un,t),!(Ha.isServer()||rr(this.options.enabled,W(this,qe))===!1||!Oc(W(this,un))||W(this,un)===0)&&be(this,jn,Tn.setInterval(()=>{(this.options.refetchIntervalInBackground||dl.isFocused())&&$e(this,Ke,La).call(this)},W(this,un)))},Hc=function(){$e(this,Ke,Dc).call(this),$e(this,Ke,Uc).call(this,$e(this,Ke,qc).call(this))},Vc=function(){W(this,On)!==void 0&&(Tn.clearTimeout(W(this,On)),be(this,On,void 0))},zc=function(){W(this,jn)!==void 0&&(Tn.clearInterval(W(this,jn)),be(this,jn,void 0))},Gc=function(){const t=W(this,Kt).getQueryCache().build(W(this,Kt),this.options);if(t===W(this,qe))return;const r=W(this,qe);be(this,qe,t),be(this,Ja,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},X2=function(t){Nt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(W(this,qt))}),W(this,Kt).getQueryCache().notify({query:W(this,qe),type:"observerResultsUpdated"})})},j2);function O1(e,t){return rr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&rr(t.retryOnMount,e)===!1)}function wu(e,t){return O1(e,t)||e.state.data!==void 0&&Wc(e,t,t.refetchOnMount)}function Wc(e,t,r){if(rr(t.enabled,e)!==!1&&mn(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&ml(e,t)}return!1}function _u(e,t,r,n){return(e!==t||rr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&ml(e,r)}function ml(e,t){return rr(t.enabled,e)!==!1&&e.isStaleByTime(mn(t.staleTime,e))}function j1(e,t){return!jc(e.getCurrentResult(),t)}var eo,Sr,Mt,Ln,Tr,rn,L2,L1=(L2=class extends K2{constructor(t){super();Oe(this,Tr);Oe(this,eo);Oe(this,Sr);Oe(this,Mt);Oe(this,Ln);be(this,eo,t.client),this.mutationId=t.mutationId,be(this,Mt,t.mutationCache),be(this,Sr,[]),this.state=t.state||B1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){W(this,Sr).includes(t)||(W(this,Sr).push(t),this.clearGcTimeout(),W(this,Mt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,Sr,W(this,Sr).filter(r=>r!==t)),this.scheduleGc(),W(this,Mt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){W(this,Sr).length||(this.state.status==="pending"?this.scheduleGc():W(this,Mt).remove(this))}continue(){var t;return((t=W(this,Ln))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,d,f,h,m,p,v,_,A,g,T,z,b,I,w,K,U,x;const r=()=>{$e(this,Tr,rn).call(this,{type:"continue"})},n={client:W(this,eo),meta:this.options.meta,mutationKey:this.options.mutationKey};be(this,Ln,Z2({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(q,Q)=>{$e(this,Tr,rn).call(this,{type:"failed",failureCount:q,error:Q})},onPause:()=>{$e(this,Tr,rn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>W(this,Mt).canRun(this)}));const a=this.state.status==="pending",o=!W(this,Ln).canStart();try{if(a)r();else{$e(this,Tr,rn).call(this,{type:"pending",variables:t,isPaused:o}),W(this,Mt).config.onMutate&&await W(this,Mt).config.onMutate(t,this,n);const Q=await((d=(s=this.options).onMutate)==null?void 0:d.call(s,t,n));Q!==this.state.context&&$e(this,Tr,rn).call(this,{type:"pending",context:Q,variables:t,isPaused:o})}const q=await W(this,Ln).start();return await((h=(f=W(this,Mt).config).onSuccess)==null?void 0:h.call(f,q,t,this.state.context,this,n)),await((p=(m=this.options).onSuccess)==null?void 0:p.call(m,q,t,this.state.context,n)),await((_=(v=W(this,Mt).config).onSettled)==null?void 0:_.call(v,q,null,this.state.variables,this.state.context,this,n)),await((g=(A=this.options).onSettled)==null?void 0:g.call(A,q,null,t,this.state.context,n)),$e(this,Tr,rn).call(this,{type:"success",data:q}),q}catch(q){try{await((z=(T=W(this,Mt).config).onError)==null?void 0:z.call(T,q,t,this.state.context,this,n))}catch(Q){Promise.reject(Q)}try{await((I=(b=this.options).onError)==null?void 0:I.call(b,q,t,this.state.context,n))}catch(Q){Promise.reject(Q)}try{await((K=(w=W(this,Mt).config).onSettled)==null?void 0:K.call(w,void 0,q,this.state.variables,this.state.context,this,n))}catch(Q){Promise.reject(Q)}try{await((x=(U=this.options).onSettled)==null?void 0:x.call(U,void 0,q,t,this.state.context,n))}catch(Q){Promise.reject(Q)}throw $e(this,Tr,rn).call(this,{type:"error",error:q}),q}finally{W(this,Mt).runNext(this)}}},eo=new WeakMap,Sr=new WeakMap,Mt=new WeakMap,Ln=new WeakMap,Tr=new WeakSet,rn=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),Nt.batch(()=>{W(this,Sr).forEach(n=>{n.onMutationUpdate(t)}),W(this,Mt).notify({mutation:this,type:"updated",action:t})})},L2);function B1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gr,hr,to,B2,M1=(B2=class extends ro{constructor(t={}){super();Oe(this,Gr);Oe(this,hr);Oe(this,to);this.config=t,be(this,Gr,new Set),be(this,hr,new Map),be(this,to,0)}build(t,r,n){const a=new L1({client:t,mutationCache:this,mutationId:++es(this,to)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){W(this,Gr).add(t);const r=ts(t);if(typeof r=="string"){const n=W(this,hr).get(r);n?n.push(t):W(this,hr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(W(this,Gr).delete(t)){const r=ts(t);if(typeof r=="string"){const n=W(this,hr).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&W(this,hr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=ts(t);if(typeof r=="string"){const n=W(this,hr).get(r),a=n==null?void 0:n.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=ts(t);if(typeof r=="string"){const a=(n=W(this,hr).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Nt.batch(()=>{W(this,Gr).forEach(t=>{this.notify({type:"removed",mutation:t})}),W(this,Gr).clear(),W(this,hr).clear()})}getAll(){return Array.from(W(this,Gr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>pu(r,n))}findAll(t={}){return this.getAll().filter(r=>pu(t,r))}notify(t){Nt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Nt.batch(()=>Promise.all(t.map(r=>r.continue().catch(Yt))))}},Gr=new WeakMap,hr=new WeakMap,to=new WeakMap,B2);function ts(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ar,M2,F1=(M2=class extends ro{constructor(t={}){super();Oe(this,Ar);this.config=t,be(this,Ar,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??fl(a,r);let s=this.get(o);return s||(s=new N1({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){W(this,Ar).has(t.queryHash)||(W(this,Ar).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=W(this,Ar).get(t.queryHash);r&&(t.destroy(),r===t&&W(this,Ar).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return W(this,Ar).get(t)}getAll(){return[...W(this,Ar).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){Nt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ar=new WeakMap,M2),ft,dn,fn,da,fa,hn,ha,ma,F2,$1=(F2=class{constructor(e={}){Oe(this,ft);Oe(this,dn);Oe(this,fn);Oe(this,da);Oe(this,fa);Oe(this,hn);Oe(this,ha);Oe(this,ma);be(this,ft,e.queryCache||new F1),be(this,dn,e.mutationCache||new M1),be(this,fn,e.defaultOptions||{}),be(this,da,new Map),be(this,fa,new Map),be(this,hn,0)}mount(){es(this,hn)._++,W(this,hn)===1&&(be(this,ha,dl.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,ft).onFocus())})),be(this,ma,Cs.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,ft).onOnline())})))}unmount(){var e,t;es(this,hn)._--,W(this,hn)===0&&((e=W(this,ha))==null||e.call(this),be(this,ha,void 0),(t=W(this,ma))==null||t.call(this),be(this,ma,void 0))}isFetching(e){return W(this,ft).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return W(this,dn).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=W(this,ft).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=W(this,ft).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(mn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return W(this,ft).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=W(this,ft).get(n.queryHash),o=a==null?void 0:a.state.data,s=w1(t,o);if(s!==void 0)return W(this,ft).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Nt.batch(()=>W(this,ft).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=W(this,ft).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=W(this,ft);Nt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=W(this,ft);return Nt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Nt.batch(()=>W(this,ft).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Yt).catch(Yt)}invalidateQueries(e,t={}){return Nt.batch(()=>(W(this,ft).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=Nt.batch(()=>W(this,ft).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Yt)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Yt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=W(this,ft).build(this,t);return r.isStaleByTime(mn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Yt).catch(Yt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Yt).catch(Yt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Cs.isOnline()?W(this,dn).resumePausedMutations():Promise.resolve()}getQueryCache(){return W(this,ft)}getMutationCache(){return W(this,dn)}getDefaultOptions(){return W(this,fn)}setDefaultOptions(e){be(this,fn,e)}setQueryDefaults(e,t){W(this,da).set(qa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...W(this,da).values()],r={};return t.forEach(n=>{Ua(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){W(this,fa).set(qa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...W(this,fa).values()],r={};return t.forEach(n=>{Ua(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...W(this,fn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fl(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===hl&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...W(this,fn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){W(this,ft).clear(),W(this,dn).clear()}},ft=new WeakMap,dn=new WeakMap,fn=new WeakMap,da=new WeakMap,fa=new WeakMap,hn=new WeakMap,ha=new WeakMap,ma=new WeakMap,F2),ef=ne.createContext(void 0),D1=e=>{const t=ne.useContext(ef);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},q1=({client:e,children:t})=>(ne.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(ef.Provider,{value:e,children:t})),tf=ne.createContext(!1),U1=()=>ne.useContext(tf);tf.Provider;function H1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var V1=ne.createContext(H1()),z1=()=>ne.useContext(V1),G1=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?G2(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},W1=e=>{ne.useEffect(()=>{e.clearReset()},[e])},Z1=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||G2(r,[e.error,n])),K1=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))}},Y1=(e,t)=>e.isLoading&&e.isFetching&&!t,Q1=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Cu=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function J1(e,t,r){var _,A,g,T;const n=U1(),a=z1(),o=D1(),s=o.defaultQueryOptions(e);(A=(_=o.getDefaultOptions().queries)==null?void 0:_._experimental_beforeQuery)==null||A.call(_,s);const d=o.getQueryCache().get(s.queryHash),f=e.subscribed!==!1;s._optimisticResults=n?"isRestoring":f?"optimistic":void 0,K1(s),G1(s,a,d),W1(a);const h=!o.getQueryCache().get(s.queryHash),[m]=ne.useState(()=>new t(o,s)),p=m.getOptimisticResult(s),v=!n&&f;if(ne.useSyncExternalStore(ne.useCallback(z=>{const b=v?m.subscribe(Nt.batchCalls(z)):Yt;return m.updateResult(),b},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),ne.useEffect(()=>{m.setOptions(s)},[s,m]),Q1(s,p))throw Cu(s,m,a);if(Z1({result:p,errorResetBoundary:a,throwOnError:s.throwOnError,query:d,suspense:s.suspense}))throw p.error;if((T=(g=o.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||T.call(g,s,p),s.experimental_prefetchInRender&&!Ha.isServer()&&Y1(p,n)){const z=h?Cu(s,m,a):d==null?void 0:d.promise;z==null||z.catch(Yt).finally(()=>{m.updateResult()})}return s.notifyOnChangeProps?p:m.trackResult(p)}function Wr(e,t){return J1(e,P1)}const X1="modulepreload",em=function(e){return"https://cdn.decentraland.org/@dcl/shop/0.1.0-29996672089.commit-ce4d282/"+e},Eu={},_t=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){let s=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));a=s(r.map(h=>{if(h=em(h),h in Eu)return;Eu[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const v=document.createElement("link");if(v.rel=m?"stylesheet":X1,m||(v.as="script"),v.crossOrigin="",v.href=h,f&&v.setAttribute("nonce",f),document.head.appendChild(v),m)return new Promise((_,A)=>{v.addEventListener("load",_),v.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(s){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=s,window.dispatchEvent(d),!d.defaultPrevented)throw s}return a.then(s=>{for(const d of s||[])d.status==="rejected"&&o(d.reason);return t().catch(o)})},tm="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",rm="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",nm="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",am="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",om="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",sm="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",im="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",cm="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",lm="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",um="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",dm="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",fm="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",hm="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",mm="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",pm="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",gm="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",ym="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",vm="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",bm="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",wm="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",_m="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",Cm="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",Em="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",xm="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",Sm="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",Tm="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",Am="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",km="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",Im="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",Rm="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",Nm="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",Pm="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",Om="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",jm="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",Lm="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",Bm="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",Mm="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",Fm="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",$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='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",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%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",qm="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",Um="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",Hm="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",Vm="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",zm="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",Gm="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",Wm="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",Zm="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",Km="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",Ym="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",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='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",Jm="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",Xm="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",ep="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",tp="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",rp="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",np="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",ap=Object.assign({"../../assets/icons/arrow-left.svg":tm,"../../assets/icons/bell.svg":rm,"../../assets/icons/carousel-arrow.svg":nm,"../../assets/icons/cart-solid.svg":am,"../../assets/icons/cart.svg":om,"../../assets/icons/cat-accessories.svg":sm,"../../assets/icons/cat-feet.svg":im,"../../assets/icons/cat-handwear.svg":cm,"../../assets/icons/cat-head.svg":lm,"../../assets/icons/cat-lower.svg":um,"../../assets/icons/cat-skins.svg":dm,"../../assets/icons/cat-upper.svg":fm,"../../assets/icons/category-eyewear.svg":hm,"../../assets/icons/check.svg":mm,"../../assets/icons/chevron-down.svg":pm,"../../assets/icons/clock.svg":gm,"../../assets/icons/close.svg":ym,"../../assets/icons/copy.svg":vm,"../../assets/icons/credits.svg":bm,"../../assets/icons/discord.svg":wm,"../../assets/icons/emote-dance.svg":_m,"../../assets/icons/emote-fun.svg":Cm,"../../assets/icons/emote-greetings.svg":Em,"../../assets/icons/emote-horror.svg":xm,"../../assets/icons/emote-misc.svg":Sm,"../../assets/icons/emote-poses.svg":Tm,"../../assets/icons/emote-reactions.svg":Am,"../../assets/icons/emote-stunt.svg":km,"../../assets/icons/ethereum.svg":Im,"../../assets/icons/external-link.svg":Rm,"../../assets/icons/eye.svg":Nm,"../../assets/icons/facebook.svg":Pm,"../../assets/icons/filter.svg":Om,"../../assets/icons/fitting-room.svg":jm,"../../assets/icons/gender-female.svg":Lm,"../../assets/icons/gender-male.svg":Bm,"../../assets/icons/gender-unisex.svg":Mm,"../../assets/icons/heart-solid.svg":Fm,"../../assets/icons/heart.svg":$m,"../../assets/icons/info.svg":Dm,"../../assets/icons/mana-logo.svg":qm,"../../assets/icons/offer.svg":Um,"../../assets/icons/pen.svg":Hm,"../../assets/icons/plus.svg":Vm,"../../assets/icons/search.svg":zm,"../../assets/icons/slot-feet.svg":Gm,"../../assets/icons/slot-hands.svg":Wm,"../../assets/icons/slot-head.svg":Zm,"../../assets/icons/slot-item.svg":Km,"../../assets/icons/slot-lower.svg":Ym,"../../assets/icons/slot-upper.svg":Qm,"../../assets/icons/smart.svg":Jm,"../../assets/icons/trash.svg":Xm,"../../assets/icons/twitter.svg":ep,"../../assets/icons/upload.svg":tp,"../../assets/icons/view-all-arrow.svg":rp,"../../assets/icons/website.svg":np}),rf={};for(const[e,t]of Object.entries(ap))rf[e.slice(e.lastIndexOf("/")+1,-4)]=t;function it({name:e,size:t,className:r,style:n,...a}){const o=rf[e],s={"--icon-url":o?`url("${o}")`:void 0,...t!=null?{width:t,height:t}:null,...n},d=a["aria-label"]==null&&a.role==null;return u.jsx("span",{"aria-hidden":d||void 0,...a,className:r?`ico ${r}`:"ico",style:s})}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 op(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 sp(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 ip=(function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),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(sp(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=op(a);try{o.insertRule(n,o.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-",Es="-moz-",We="-webkit-",nf="comm",pl="rule",gl="decl",cp="@import",af="@keyframes",lp="@layer",up=Math.abs,Is=String.fromCharCode,dp=Object.assign;function fp(e,t){return Rt(e,0)^45?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}function of(e){return e.trim()}function hp(e,t){return(e=t.exec(e))?e[0]:e}function Ze(e,t,r){return e.replace(t,r)}function Zc(e,t){return e.indexOf(t)}function Rt(e,t){return e.charCodeAt(t)|0}function Va(e,t,r){return e.slice(t,r)}function kr(e){return e.length}function yl(e){return e.length}function rs(e,t){return t.push(e),e}function mp(e,t){return e.map(t).join("")}var Rs=1,pa=1,sf=0,Jt=0,yt=0,ba="";function Ns(e,t,r,n,a,o,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Rs,column:pa,length:s,return:""}}function Aa(e,t){return dp(Ns("",null,null,"",null,null,0),e,{length:-e.length},t)}function pp(){return yt}function gp(){return yt=Jt>0?Rt(ba,--Jt):0,pa--,yt===10&&(pa=1,Rs--),yt}function ar(){return yt=Jt<sf?Rt(ba,Jt++):0,pa++,yt===10&&(pa=1,Rs++),yt}function Rr(){return Rt(ba,Jt)}function ys(){return Jt}function no(e,t){return Va(ba,e,t)}function za(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 cf(e){return Rs=pa=1,sf=kr(ba=e),Jt=0,[]}function lf(e){return ba="",e}function vs(e){return of(no(Jt-1,Kc(e===91?e+2:e===40?e+1:e)))}function yp(e){for(;(yt=Rr())&&yt<33;)ar();return za(e)>2||za(yt)>3?"":" "}function vp(e,t){for(;--t&&ar()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return no(e,ys()+(t<6&&Rr()==32&&ar()==32))}function Kc(e){for(;ar();)switch(yt){case e:return Jt;case 34:case 39:e!==34&&e!==39&&Kc(yt);break;case 40:e===41&&Kc(e);break;case 92:ar();break}return Jt}function bp(e,t){for(;ar()&&e+yt!==57;)if(e+yt===84&&Rr()===47)break;return"/*"+no(t,Jt-1)+"*"+Is(e===47?e:ar())}function wp(e){for(;!za(Rr());)ar();return no(e,Jt)}function _p(e){return lf(bs("",null,null,null,[""],e=cf(e),0,[0],e))}function bs(e,t,r,n,a,o,s,d,f){for(var h=0,m=0,p=s,v=0,_=0,A=0,g=1,T=1,z=1,b=0,I="",w=a,K=o,U=n,x=I;T;)switch(A=b,b=ar()){case 40:if(A!=108&&Rt(x,p-1)==58){Zc(x+=Ze(vs(b),"&","&\f"),"&\f")!=-1&&(z=-1);break}case 34:case 39:case 91:x+=vs(b);break;case 9:case 10:case 13:case 32:x+=yp(A);break;case 92:x+=vp(ys()-1,7);continue;case 47:switch(Rr()){case 42:case 47:rs(Cp(bp(ar(),ys()),t,r),f);break;default:x+="/"}break;case 123*g:d[h++]=kr(x)*z;case 125*g:case 59:case 0:switch(b){case 0:case 125:T=0;case 59+m:z==-1&&(x=Ze(x,/\f/g,"")),_>0&&kr(x)-p&&rs(_>32?Su(x+";",n,r,p-1):Su(Ze(x," ","")+";",n,r,p-2),f);break;case 59:x+=";";default:if(rs(U=xu(x,t,r,h,m,a,d,I,w=[],K=[],p),o),b===123)if(m===0)bs(x,t,U,U,w,o,p,d,K);else switch(v===99&&Rt(x,3)===110?100:v){case 100:case 108:case 109:case 115:bs(e,U,U,n&&rs(xu(e,U,U,0,0,a,d,I,a,w=[],p),K),a,K,p,d,n?w:K);break;default:bs(x,U,U,U,[""],K,0,d,K)}}h=m=_=0,g=z=1,I=x="",p=s;break;case 58:p=1+kr(x),_=A;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&gp()==125)continue}switch(x+=Is(b),b*g){case 38:z=m>0?1:(x+="\f",-1);break;case 44:d[h++]=(kr(x)-1)*z,z=1;break;case 64:Rr()===45&&(x+=vs(ar())),v=Rr(),m=p=kr(I=x+=wp(ys())),b++;break;case 45:A===45&&kr(x)==2&&(g=0)}}return o}function xu(e,t,r,n,a,o,s,d,f,h,m){for(var p=a-1,v=a===0?o:[""],_=yl(v),A=0,g=0,T=0;A<n;++A)for(var z=0,b=Va(e,p+1,p=up(g=s[A])),I=e;z<_;++z)(I=of(g>0?v[z]+" "+b:Ze(b,/&\f/g,v[z])))&&(f[T++]=I);return Ns(e,t,r,a===0?pl:d,f,h,m)}function Cp(e,t,r){return Ns(e,t,r,nf,Is(pp()),Va(e,2,-2),0)}function Su(e,t,r,n){return Ns(e,t,r,gl,Va(e,0,n),Va(e,n+1,-1),n)}function Jn(e,t){for(var r="",n=yl(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Ep(e,t,r,n){switch(e.type){case lp:if(e.children.length)break;case cp:case gl:return e.return=e.return||e.value;case nf:return"";case af:return e.return=e.value+"{"+Jn(e.children,n)+"}";case pl:e.value=e.props.join(",")}return kr(r=Jn(e.children,n))?e.return=e.value+"{"+r+"}":""}function xp(e){var t=yl(e);return function(r,n,a,o){for(var s="",d=0;d<t;d++)s+=e[d](r,n,a,o)||"";return s}}function Sp(e){return function(t){t.root||(t=t.return)&&e(t)}}function uf(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Tp=function(t,r,n){for(var a=0,o=0;a=o,o=Rr(),a===38&&o===12&&(r[n]=1),!za(o);)ar();return no(t,Jt)},Ap=function(t,r){var n=-1,a=44;do switch(za(a)){case 0:a===38&&Rr()===12&&(r[n]=1),t[n]+=Tp(Jt-1,r,n);break;case 2:t[n]+=vs(a);break;case 4:if(a===44){t[++n]=Rr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Is(a)}while(a=ar());return t},kp=function(t,r){return lf(Ap(cf(t),r))},Tu=new WeakMap,Ip=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&&!Tu.get(n))&&!a){Tu.set(t,!0);for(var o=[],s=kp(r,o),d=n.props,f=0,h=0;f<s.length;f++)for(var m=0;m<d.length;m++,h++)t.props[h]=o[f]?s[f].replace(/&\f/g,d[m]):d[m]+" "+s[f]}}},Rp=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(fp(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+Es+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(kr(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(Rt(e,t+4)!==45)break;case 102:return Ze(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Es+(Rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zc(e,"stretch")?df(Ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rt(e,t+1)!==115)break;case 6444:switch(Rt(e,kr(e)-3-(~Zc(e,"!important")&&10))){case 107:return Ze(e,":",":"+We)+e;case 101:return Ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(Rt(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+Bt+"$2box$3")+e}break;case 5936:switch(Rt(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 Np=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case gl:t.return=df(t.value,t.length);break;case af:return Jn([Aa(t,{value:Ze(t.value,"@","@"+We)})],a);case pl:if(t.length)return mp(t.props,function(o){switch(hp(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jn([Aa(t,{props:[Ze(o,/:(read-\w+)/,":"+Es+"$1")]})],a);case"::placeholder":return Jn([Aa(t,{props:[Ze(o,/:(plac\w+)/,":"+We+"input-$1")]}),Aa(t,{props:[Ze(o,/:(plac\w+)/,":"+Es+"$1")]}),Aa(t,{props:[Ze(o,/:(plac\w+)/,Bt+"input-$1")]})],a)}return""})}},Pp=[Np],ff=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var T=g.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=t.stylisPlugins||Pp,o={},s,d=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var T=g.getAttribute("data-emotion").split(" "),z=1;z<T.length;z++)o[T[z]]=!0;d.push(g)});var f,h=[Ip,Rp];{var m,p=[Ep,Sp(function(g){m.insert(g)})],v=xp(h.concat(a,p)),_=function(T){return Jn(_p(T),v)};f=function(T,z,b,I){m=b,_(T?T+"{"+z.styles+"}":z.styles),I&&(A.inserted[z.name]=!0)}}var A={key:r,sheet:new ip({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:f};return A.sheet.hydrate(d),A},Op=!0;function hf(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var vl=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Op===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},bl=function(t,r,n){vl(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function jp(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 Lp={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},Bp=/[A-Z]|^ms/g,Mp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mf=function(t){return t.charCodeAt(1)===45},Au=function(t){return t!=null&&typeof t!="boolean"},ui=uf(function(e){return mf(e)?e:e.replace(Bp,"-$&").toLowerCase()}),ku=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Mp,function(n,a,o){return Ir={name:a,styles:o,next:Ir},a})}return Lp[t]!==1&&!mf(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ga(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 Ir={name:a.name,styles:a.styles,next:Ir},a.name;var o=r;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ir={name:s.name,styles:s.styles,next:Ir},s=s.next;var d=o.styles+";";return d}return Fp(e,t,r)}case"function":{if(e!==void 0){var f=Ir,h=r(e);return Ir=f,Ga(e,t,h)}break}}var m=r;if(t==null)return m;var p=t[m];return p!==void 0?p:m}function Fp(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Ga(e,t,r[a])+";";else for(var o in r){var s=r[o];if(typeof s!="object"){var d=s;t!=null&&t[d]!==void 0?n+=o+"{"+t[d]+"}":Au(d)&&(n+=ui(o)+":"+ku(o,d)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var f=0;f<s.length;f++)Au(s[f])&&(n+=ui(o)+":"+ku(o,s[f])+";");else{var h=Ga(e,t,s);switch(o){case"animation":case"animationName":{n+=ui(o)+":"+h+";";break}default:n+=o+"{"+h+"}"}}}return n}var Iu=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function ao(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="";Ir=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=Ga(r,t,o);else{var s=o;a+=s[0]}for(var d=1;d<e.length;d++)if(a+=Ga(r,t,e[d]),n){var f=o;a+=f[d]}Iu.lastIndex=0;for(var h="",m;(m=Iu.exec(a))!==null;)h+="-"+m[1];var p=jp(a)+h;return{name:p,styles:a,next:Ir}}var $p=function(t){return t()},pf=Nc.useInsertionEffect?Nc.useInsertionEffect:!1,gf=pf||$p,Ru=pf||ne.useLayoutEffect,yf=ne.createContext(typeof HTMLElement<"u"?ff({key:"css"}):null),Dp=yf.Provider,wl=function(t){return ne.forwardRef(function(r,n){var a=ne.useContext(yf);return t(r,a,n)})},Ps=ne.createContext({}),_l={}.hasOwnProperty,Yc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",qp=function(t,r){var n={};for(var a in r)_l.call(r,a)&&(n[a]=r[a]);return n[Yc]=t,n},Up=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return vl(r,n,a),gf(function(){return bl(r,n,a)}),null},Hp=wl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Yc],o=[n],s="";typeof e.className=="string"?s=hf(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var d=ao(o,void 0,ne.useContext(Ps));s+=t.key+"-"+d.name;var f={};for(var h in e)_l.call(e,h)&&h!=="css"&&h!==Yc&&(f[h]=e[h]);return f.className=s,r&&(f.ref=r),ne.createElement(ne.Fragment,null,ne.createElement(Up,{cache:t,serialized:d,isStringTag:typeof a=="string"}),ne.createElement(a,f))}),Vp=Hp,Nu=function(t,r){var n=arguments;if(r==null||!_l.call(r,"css"))return ne.createElement.apply(void 0,n);var a=n.length,o=new Array(a);o[0]=Vp,o[1]=qp(t,r);for(var s=2;s<a;s++)o[s]=n[s];return ne.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Nu||(Nu={}));var zp=wl(function(e,t){var r=e.styles,n=ao([r],void 0,ne.useContext(Ps)),a=ne.useRef();return Ru(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,f=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),f!==null&&(d=!0,f.setAttribute("data-emotion",o),s.hydrate([f])),a.current=[s,d],function(){s.flush()}},[t]),Ru(function(){var o=a.current,s=o[0],d=o[1];if(d){o[1]=!1;return}if(n.next!==void 0&&bl(t,n.next,!0),s.tags.length){var f=s.tags[s.tags.length-1].nextElementSibling;s.before=f,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function Cl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ao(t)}function vf(){var e=Cl.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 Gp=/^((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)-.*))$/,Wp=uf(function(e){return Gp.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Zp=Wp,Kp=function(t){return t!=="theme"},Pu=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Zp:Kp},Ou=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},Yp=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return vl(r,n,a),gf(function(){return bl(r,n,a)}),null},Qp=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var d=Ou(t,r,n),f=d||Pu(a),h=!f("as");return function(){var m=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&p.push("label:"+o+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var v=m[0];p.push(v[0]);for(var _=m.length,A=1;A<_;A++)p.push(m[A],v[A])}var g=wl(function(T,z,b){var I=h&&T.as||a,w="",K=[],U=T;if(T.theme==null){U={};for(var x in T)U[x]=T[x];U.theme=ne.useContext(Ps)}typeof T.className=="string"?w=hf(z.registered,K,T.className):T.className!=null&&(w=T.className+" ");var q=ao(p.concat(K),z.registered,U);w+=z.key+"-"+q.name,s!==void 0&&(w+=" "+s);var Q=h&&d===void 0?Pu(I):f,ee={};for(var ae in T)h&&ae==="as"||Q(ae)&&(ee[ae]=T[ae]);return ee.className=w,b&&(ee.ref=b),ne.createElement(ne.Fragment,null,ne.createElement(Yp,{cache:z,serialized:q,isStringTag:typeof I=="string"}),ne.createElement(I,ee))});return g.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=p,g.__emotion_forwardProp=d,Object.defineProperty(g,"toString",{value:function(){return"."+s}}),g.withComponent=function(T,z){var b=e(T,Ye({},r,z,{shouldForwardProp:Ou(g,z,!0)}));return b.apply(void 0,p)},g}},Jp=["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"],wt=Qp.bind(null);Jp.forEach(function(e){wt[e]=wt(e)});const Xp={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"},eg={common:"#73d3d3",uncommon:"#ff8362",rare:"#34ce76",epic:"#289cff",legendary:"#a24bf3",exotic:"#bdfd4e",mythic:"#ff4bed",unique:"#fea217"},tg={amethyst:"linear-gradient(180deg, #c640cd 0%, #691fa9 100%)",cerise:"linear-gradient(135deg, #ff2d55 0%, #c640cd 100%)"},rg={card:"12px",btn:"8px",pill:"50px",banner:"24px"},ng={sans:'"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},ju={mobile:768,sm:720,md:820,lg:900},ag={down:e=>`@media (max-width: ${ju[e]}px)`,up:e=>`@media (min-width: ${ju[e]+1}px)`},Le={colors:Xp,rarities:eg,gradients:tg,radius:rg,font:ng,media:ag},og=wt.div`
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
height: 92px;
|
|
8
|
+
background: ${Le.colors.navViolet};
|
|
9
|
+
z-index: 50;
|
|
10
|
+
|
|
11
|
+
${Le.media.down("mobile")} {
|
|
12
|
+
height: 64px;
|
|
13
|
+
}
|
|
14
|
+
`,sg=wt.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: ${Le.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: ${Le.colors.text2};
|
|
30
|
+
}
|
|
31
|
+
& nav > div:first-of-type > div > a:hover,
|
|
32
|
+
& nav > div:first-of-type > div > div > button:hover {
|
|
33
|
+
color: ${Le.colors.text2};
|
|
34
|
+
background-color: ${Le.colors.navOverlayHover};
|
|
35
|
+
}
|
|
36
|
+
& nav > div:first-of-type > div > a.active,
|
|
37
|
+
& nav > div:first-of-type > div > div > button.active {
|
|
38
|
+
color: ${Le.colors.text2};
|
|
39
|
+
background-color: ${Le.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: ${Le.colors.text2};
|
|
46
|
+
border-color: ${Le.colors.text2};
|
|
47
|
+
}
|
|
48
|
+
& nav > div:last-of-type > button:not([aria-label]):hover {
|
|
49
|
+
background-color: ${Le.colors.navOverlayHover};
|
|
50
|
+
border-color: ${Le.colors.text2};
|
|
51
|
+
}
|
|
52
|
+
& nav > div:last-of-type > button:not([aria-label]):active {
|
|
53
|
+
background-color: ${Le.colors.navOverlayActive};
|
|
54
|
+
border-color: ${Le.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: ${Le.colors.accent};
|
|
62
|
+
color: ${Le.colors.white};
|
|
63
|
+
}
|
|
64
|
+
& nav button[aria-label='Open menu']:hover,
|
|
65
|
+
& nav button[aria-label='Close menu']:hover {
|
|
66
|
+
background-color: ${Le.colors.accentHover};
|
|
67
|
+
}
|
|
68
|
+
& nav button[aria-label='Open menu']:active,
|
|
69
|
+
& nav button[aria-label='Close menu']:active {
|
|
70
|
+
background-color: ${Le.colors.accentActive};
|
|
71
|
+
}
|
|
72
|
+
`,ig=ne.lazy(()=>_t(()=>import("./index-Aw0QE_Br.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(e=>({default:e.Navbar})));function cg(e){return u.jsx(ne.Suspense,{fallback:u.jsx(og,{"aria-hidden":!0}),children:u.jsx(sg,{children:u.jsx(ig,{...e})})})}const lg={},Lu=e=>{let t;const r=new Set,n=(m,p)=>{const v=typeof m=="function"?m(t):m;if(!Object.is(v,t)){const _=t;t=p??(typeof v!="object"||v===null)?v:Object.assign({},t,v),r.forEach(A=>A(t,_))}},a=()=>t,f={setState:n,getState:a,getInitialState:()=>h,subscribe:m=>(r.add(m),()=>r.delete(m)),destroy:()=>{(lg?"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},ug=e=>e?Lu(e):Lu;var di={exports:{}},fi={},hi={exports:{}},mi={};/**
|
|
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 Bu;function dg(){if(Bu)return mi;Bu=1;var e=$2();function t(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function d(p,v){var _=v(),A=n({inst:{value:_,getSnapshot:v}}),g=A[0].inst,T=A[1];return o(function(){g.value=_,g.getSnapshot=v,f(g)&&T({inst:g})},[p,_,v]),a(function(){return f(g)&&T({inst:g}),p(function(){f(g)&&T({inst:g})})},[p]),s(_),_}function f(p){var v=p.getSnapshot;p=p.value;try{var _=v();return!r(p,_)}catch{return!0}}function h(p,v){return v()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return mi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,mi}var Mu;function fg(){return Mu||(Mu=1,hi.exports=dg()),hi.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 Fu;function hg(){if(Fu)return fi;Fu=1;var e=$2(),t=fg();function r(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,o=e.useRef,s=e.useEffect,d=e.useMemo,f=e.useDebugValue;return fi.useSyncExternalStoreWithSelector=function(h,m,p,v,_){var A=o(null);if(A.current===null){var g={hasValue:!1,value:null};A.current=g}else g=A.current;A=d(function(){function z(U){if(!b){if(b=!0,I=U,U=v(U),_!==void 0&&g.hasValue){var x=g.value;if(_(x,U))return w=x}return w=U}if(x=w,n(I,U))return x;var q=v(U);return _!==void 0&&_(x,q)?(I=U,x):(I=U,w=q)}var b=!1,I,w,K=p===void 0?null:p;return[function(){return z(m())},K===null?void 0:function(){return z(K())}]},[m,p,v,_]);var T=a(h,A[0],A[1]);return s(function(){g.hasValue=!0,g.value=T},[T]),f(T),T},fi}var $u;function mg(){return $u||($u=1,di.exports=hg()),di.exports}var pg=mg();const gg=As(pg),bf={},{useDebugValue:yg}=D2,{useSyncExternalStoreWithSelector:vg}=gg;let Du=!1;const bg=e=>e;function wg(e,t=bg,r){(bf?"production":void 0)!=="production"&&r&&!Du&&(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"),Du=!0);const n=vg(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return yg(n),n}const qu=e=>{(bf?"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"?ug(e):e,r=(n,a)=>wg(t,n,a);return Object.assign(r,t),r},Mn=e=>e?qu(e):qu;var bn={},dr={},Ba={exports:{}},_g=Ba.exports,Uu;function Os(){return Uu||(Uu=1,(function(e,t){(function(r,n){n(t)})(_g,(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 o(){let i,l;const y=new Promise(((k,B)=>{i=V=>{k(V),y.isPending=!1},l=V=>{B(V),y.isPending=!1}})).catch((k=>Promise.reject(k)));return y.resolve=i,y.reject=l,"finally"in y||(y.finally=k=>{y.then(k),y.catch(k)}),y.isPending=!0,y}Object.defineProperty(a,"__esModule",{value:!0});var s=a.future=o;a.default=o;var d={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",y=typeof window=="object",k=y?window:{};k.JS_SHA3_NO_WINDOW&&(y=!1);var B=!y&&typeof self=="object";!k.JS_SHA3_NO_NODE_JS&&typeof gs=="object"&&gs.versions&&gs.versions.node?k=Pc:B&&(k=self);var V=!k.JS_SHA3_NO_COMMON_JS&&i.exports,se=!k.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",me="0123456789abcdef".split(""),ke=[4,1024,262144,67108864],Ne=[0,8,16,24],Ft=[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],ct=[224,256,384,512],ge=[128,256],At=["hex","buffer","arrayBuffer","array","digest"],Xe={128:168,256:136};!k.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(c){return Object.prototype.toString.call(c)==="[object Array]"}),!se||!k.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(S){return new Ve(c,C,c).update(S)[O]()}},Ot=function(c,C,O){return function(S,M){return new Ve(c,C,M).update(S)[O]()}},Lr=function(c,C,O){return function(S,M,$,D){return kt["cshake"+c].update(S,M,$,D)[O]()}},vr=function(c,C,O){return function(S,M,$,D){return kt["kmac"+c].update(S,M,$,D)[O]()}},jt=function(c,C,O,S){for(var M=0;M<At.length;++M){var $=At[M];c[$]=C(O,S,$)}return c},br=function(c,C){var O=et(c,C,"hex");return O.create=function(){return new Ve(c,C,c)},O.update=function(S){return O.create().update(S)},jt(O,et,c,C)},Qr=[{name:"keccak",padding:[1,256,65536,16777216],bits:ct,createMethod:br},{name:"sha3",padding:[6,1536,393216,100663296],bits:ct,createMethod:br},{name:"shake",padding:[31,7936,2031616,520093696],bits:ge,createMethod:function(c,C){var O=Ot(c,C,"hex");return O.create=function(S){return new Ve(c,C,S)},O.update=function(S,M){return O.create(M).update(S)},jt(O,Ot,c,C)}},{name:"cshake",padding:ke,bits:ge,createMethod:function(c,C){var O=Xe[c],S=Lr(c,0,"hex");return S.create=function(M,$,D){return $||D?new Ve(c,C,M).bytepad([$,D],O):kt["shake"+c].create(M)},S.update=function(M,$,D,X){return S.create($,D,X).update(M)},jt(S,Lr,c,C)}},{name:"kmac",padding:ke,bits:ge,createMethod:function(c,C){var O=Xe[c],S=vr(c,0,"hex");return S.create=function(M,$,D){return new er(c,C,$).bytepad(["KMAC",D],O).bytepad([M],O)},S.update=function(M,$,D,X){return S.create(M,D,X).update($)},jt(S,vr,c,C)}}],kt={},Br=[],Lt=0;Lt<Qr.length;++Lt)for(var wr=Qr[Lt],ue=wr.bits,Mr=0;Mr<ue.length;++Mr){var Vn=wr.name+"_"+ue[Mr];if(Br.push(Vn),kt[Vn]=wr.createMethod(ue[Mr],wr.padding),wr.name!=="sha3"){var zn=wr.name+ue[Mr];Br.push(zn),kt[zn]=kt[Vn]}}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 S=0;S<50;++S)this.s[S]=0}function er(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(se&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||se&&ArrayBuffer.isView(c)))throw new Error(l);C=!0}for(var S,M,$=this.blocks,D=this.byteCount,X=c.length,re=this.blockCount,te=0,pe=this.s;te<X;){if(this.reset)for(this.reset=!1,$[0]=this.block,S=1;S<re+1;++S)$[S]=0;if(C)for(S=this.start;te<X&&S<D;++te)$[S>>2]|=c[te]<<Ne[3&S++];else for(S=this.start;te<X&&S<D;++te)(M=c.charCodeAt(te))<128?$[S>>2]|=M<<Ne[3&S++]:M<2048?($[S>>2]|=(192|M>>6)<<Ne[3&S++],$[S>>2]|=(128|63&M)<<Ne[3&S++]):M<55296||M>=57344?($[S>>2]|=(224|M>>12)<<Ne[3&S++],$[S>>2]|=(128|M>>6&63)<<Ne[3&S++],$[S>>2]|=(128|63&M)<<Ne[3&S++]):(M=65536+((1023&M)<<10|1023&c.charCodeAt(++te)),$[S>>2]|=(240|M>>18)<<Ne[3&S++],$[S>>2]|=(128|M>>12&63)<<Ne[3&S++],$[S>>2]|=(128|M>>6&63)<<Ne[3&S++],$[S>>2]|=(128|63&M)<<Ne[3&S++]);if(this.lastByteIndex=S,S>=D){for(this.start=S-D,this.block=$[re],S=0;S<re;++S)pe[S]^=$[S];E(pe),this.reset=!0}else this.start=S}return this},Ve.prototype.encode=function(c,C){var O=255&c,S=1,M=[O];for(O=255&(c>>=8);O>0;)M.unshift(O),O=255&(c>>=8),++S;return C?M.push(S):M.unshift(S),this.update(M),M.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(se&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||se&&ArrayBuffer.isView(c)))throw new Error(l);C=!0}var S=0,M=c.length;if(C)S=M;else for(var $=0;$<c.length;++$){var D=c.charCodeAt($);D<128?S+=1:D<2048?S+=2:D<55296||D>=57344?S+=3:(D=65536+((1023&D)<<10|1023&c.charCodeAt(++$)),S+=4)}return S+=this.encode(8*S),this.update(c),S},Ve.prototype.bytepad=function(c,C){for(var O=this.encode(C),S=0;S<c.length;++S)O+=this.encodeString(c[S]);var M=C-O%C,$=[];return $.length=M,this.update($),this},Ve.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var c=this.blocks,C=this.lastByteIndex,O=this.blockCount,S=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)S[C]^=c[C];E(S)}},Ve.prototype.toString=Ve.prototype.hex=function(){this.finalize();for(var c,C=this.blockCount,O=this.s,S=this.outputBlocks,M=this.extraBytes,$=0,D=0,X="";D<S;){for($=0;$<C&&D<S;++$,++D)c=O[$],X+=me[c>>4&15]+me[15&c]+me[c>>12&15]+me[c>>8&15]+me[c>>20&15]+me[c>>16&15]+me[c>>28&15]+me[c>>24&15];D%C==0&&(E(O),$=0)}return M&&(c=O[$],X+=me[c>>4&15]+me[15&c],M>1&&(X+=me[c>>12&15]+me[c>>8&15]),M>2&&(X+=me[c>>20&15]+me[c>>16&15])),X},Ve.prototype.arrayBuffer=function(){this.finalize();var c,C=this.blockCount,O=this.s,S=this.outputBlocks,M=this.extraBytes,$=0,D=0,X=this.outputBits>>3;c=M?new ArrayBuffer(S+1<<2):new ArrayBuffer(X);for(var re=new Uint32Array(c);D<S;){for($=0;$<C&&D<S;++$,++D)re[D]=O[$];D%C==0&&E(O)}return M&&(re[$]=O[$],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,S=this.s,M=this.outputBlocks,$=this.extraBytes,D=0,X=0,re=[];X<M;){for(D=0;D<O&&X<M;++D,++X)c=X<<2,C=S[D],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(S)}return $&&(c=X<<2,C=S[D],re[c]=255&C,$>1&&(re[c+1]=C>>8&255),$>2&&(re[c+2]=C>>16&255)),re},er.prototype=new Ve,er.prototype.finalize=function(){return this.encode(this.outputBits,!0),Ve.prototype.finalize.call(this)};var E=function(c){var C,O,S,M,$,D,X,re,te,pe,Ie,je,De,tt,at,Fe,ze,mt,Fr,Jr,Xr,$t,_r,It,gt,Je,yo,vo,bo,wo,_o,Co,Eo,xo,So,To,Ao,ko,Io,Ro,No,Po,Oo,jo,Lo,Bo,Mo,Fo,$o,Do,qo,Uo,Ho,Vo,zo,Go,Wo,Zo,Ko,Yo,Qo,Jo,Xo;for(S=0;S<48;S+=2)M=c[0]^c[10]^c[20]^c[30]^c[40],$=c[1]^c[11]^c[21]^c[31]^c[41],D=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],pe=c[6]^c[16]^c[26]^c[36]^c[46],Ie=c[7]^c[17]^c[27]^c[37]^c[47],C=(je=c[8]^c[18]^c[28]^c[38]^c[48])^(D<<1|X>>>31),O=(De=c[9]^c[19]^c[29]^c[39]^c[49])^(X<<1|D>>>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=M^(re<<1|te>>>31),O=$^(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=D^(pe<<1|Ie>>>31),O=X^(Ie<<1|pe>>>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=pe^(M<<1|$>>>31),O=Ie^($<<1|M>>>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],at=c[1],Bo=c[11]<<4|c[10]>>>28,Mo=c[10]<<4|c[11]>>>28,vo=c[20]<<3|c[21]>>>29,bo=c[21]<<3|c[20]>>>29,Yo=c[31]<<9|c[30]>>>23,Qo=c[30]<<9|c[31]>>>23,Po=c[40]<<18|c[41]>>>14,Oo=c[41]<<18|c[40]>>>14,xo=c[2]<<1|c[3]>>>31,So=c[3]<<1|c[2]>>>31,Fe=c[13]<<12|c[12]>>>20,ze=c[12]<<12|c[13]>>>20,Fo=c[22]<<10|c[23]>>>22,$o=c[23]<<10|c[22]>>>22,wo=c[33]<<13|c[32]>>>19,_o=c[32]<<13|c[33]>>>19,Jo=c[42]<<2|c[43]>>>30,Xo=c[43]<<2|c[42]>>>30,Vo=c[5]<<30|c[4]>>>2,zo=c[4]<<30|c[5]>>>2,To=c[14]<<6|c[15]>>>26,Ao=c[15]<<6|c[14]>>>26,mt=c[25]<<11|c[24]>>>21,Fr=c[24]<<11|c[25]>>>21,Do=c[34]<<15|c[35]>>>17,qo=c[35]<<15|c[34]>>>17,Co=c[45]<<29|c[44]>>>3,Eo=c[44]<<29|c[45]>>>3,It=c[6]<<28|c[7]>>>4,gt=c[7]<<28|c[6]>>>4,Go=c[17]<<23|c[16]>>>9,Wo=c[16]<<23|c[17]>>>9,ko=c[26]<<25|c[27]>>>7,Io=c[27]<<25|c[26]>>>7,Jr=c[36]<<21|c[37]>>>11,Xr=c[37]<<21|c[36]>>>11,Uo=c[47]<<24|c[46]>>>8,Ho=c[46]<<24|c[47]>>>8,jo=c[8]<<27|c[9]>>>5,Lo=c[9]<<27|c[8]>>>5,Je=c[18]<<20|c[19]>>>12,yo=c[19]<<20|c[18]>>>12,Zo=c[29]<<7|c[28]>>>25,Ko=c[28]<<7|c[29]>>>25,Ro=c[38]<<8|c[39]>>>24,No=c[39]<<8|c[38]>>>24,$t=c[48]<<14|c[49]>>>18,_r=c[49]<<14|c[48]>>>18,c[0]=tt^~Fe&mt,c[1]=at^~ze&Fr,c[10]=It^~Je&vo,c[11]=gt^~yo&bo,c[20]=xo^~To&ko,c[21]=So^~Ao&Io,c[30]=jo^~Bo&Fo,c[31]=Lo^~Mo&$o,c[40]=Vo^~Go&Zo,c[41]=zo^~Wo&Ko,c[2]=Fe^~mt&Jr,c[3]=ze^~Fr&Xr,c[12]=Je^~vo&wo,c[13]=yo^~bo&_o,c[22]=To^~ko&Ro,c[23]=Ao^~Io&No,c[32]=Bo^~Fo&Do,c[33]=Mo^~$o&qo,c[42]=Go^~Zo&Yo,c[43]=Wo^~Ko&Qo,c[4]=mt^~Jr&$t,c[5]=Fr^~Xr&_r,c[14]=vo^~wo&Co,c[15]=bo^~_o&Eo,c[24]=ko^~Ro&Po,c[25]=Io^~No&Oo,c[34]=Fo^~Do&Uo,c[35]=$o^~qo&Ho,c[44]=Zo^~Yo&Jo,c[45]=Ko^~Qo&Xo,c[6]=Jr^~$t&tt,c[7]=Xr^~_r&at,c[16]=wo^~Co&It,c[17]=_o^~Eo>,c[26]=Ro^~Po&xo,c[27]=No^~Oo&So,c[36]=Do^~Uo&jo,c[37]=qo^~Ho&Lo,c[46]=Yo^~Jo&Vo,c[47]=Qo^~Xo&zo,c[8]=$t^~tt&Fe,c[9]=_r^~at&ze,c[18]=Co^~It&Je,c[19]=Eo^~gt&yo,c[28]=Po^~xo&To,c[29]=Oo^~So&Ao,c[38]=Uo^~jo&Bo,c[39]=Ho^~Lo&Mo,c[48]=Jo^~Vo&Go,c[49]=Xo^~zo&Wo,c[0]^=Ft[S],c[1]^=Ft[S+1]};if(V)i.exports=kt;else for(Lt=0;Lt<Br.length;++Lt)k[Br[Lt]]=kt[Br[Lt]]})()})(d);var f=d.exports,h=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,m=Math.ceil,p=Math.floor,v="[BigNumber Error] ",_=v+"Number primitive has more than 15 significant digits: ",A=1e14,g=14,T=9007199254740991,z=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],b=1e7,I=1e9;function w(i){var l=0|i;return i>0||i===l?l:l-1}function K(i){for(var l,y,k=1,B=i.length,V=i[0]+"";k<B;){for(l=i[k++]+"",y=g-l.length;y--;l="0"+l);V+=l}for(B=V.length;V.charCodeAt(--B)===48;);return V.slice(0,B+1||1)}function U(i,l){var y,k,B=i.c,V=l.c,se=i.s,me=l.s,ke=i.e,Ne=l.e;if(!se||!me)return null;if(y=B&&!B[0],k=V&&!V[0],y||k)return y?k?0:-me:se;if(se!=me)return se;if(y=se<0,k=ke==Ne,!B||!V)return k?0:!B^y?1:-1;if(!k)return ke>Ne^y?1:-1;for(me=(ke=B.length)<(Ne=V.length)?ke:Ne,se=0;se<me;se++)if(B[se]!=V[se])return B[se]>V[se]^y?1:-1;return ke==Ne?0:ke>Ne^y?1:-1}function x(i,l,y,k){if(i<l||i>y||i!==p(i))throw Error(v+(k||"Argument")+(typeof i=="number"?i<l||i>y?" out of range: ":" not an integer: ":" not a primitive number: ")+String(i))}function q(i){var l=i.c.length-1;return w(i.e/g)==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,y){var k,B;if(l<0){for(B=y+".";++l;B+=y);i=B+i}else if(++l>(k=i.length)){for(B=y,l-=k;--l;B+=y);i+=B}else l<k&&(i=i.slice(0,l)+"."+i.slice(l));return i}var ae=(function i(l){var y,k,B,V,se,me,ke,Ne,Ft,ct,ge=ue.prototype={constructor:ue,toString:null,valueOf:null},At=new ue(1),Xe=20,et=4,Ot=-7,Lr=21,vr=-1e7,jt=1e7,br=!1,Qr=1,kt=0,Br={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Lt="0123456789abcdefghijklmnopqrstuvwxyz",wr=!0;function ue(E,c){var C,O,S,M,$,D,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>jt?te.c=te.e=null:E.e<vr?te.c=[te.e=0]:(te.e=E.e,te.c=E.c.slice()));if((D=typeof E=="number")&&0*E==0){if(te.s=1/E<0?(E=-E,-1):1,E===~~E){for(M=0,$=E;$>=10;$/=10,M++);return void(M>jt?te.c=te.e=null:(te.e=M,te.c=[E]))}re=String(E)}else{if(!h.test(re=String(E)))return B(te,re,D);te.s=re.charCodeAt(0)==45?(re=re.slice(1),-1):1}(M=re.indexOf("."))>-1&&(re=re.replace(".","")),($=re.search(/e/i))>0?(M<0&&(M=$),M+=+re.slice($+1),re=re.substring(0,$)):M<0&&(M=re.length)}else{if(x(c,2,Lt.length,"Base"),c==10&&wr)return Ve(te=new ue(E),Xe+te.e+1,et);if(re=String(E),D=typeof E=="number"){if(0*E!=0)return B(te,re,D,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=Lt.slice(0,c),M=$=0,X=re.length;$<X;$++)if(C.indexOf(O=re.charAt($))<0){if(O=="."){if($>M){M=X;continue}}else if(!S&&(re==re.toUpperCase()&&(re=re.toLowerCase())||re==re.toLowerCase()&&(re=re.toUpperCase()))){S=!0,$=-1,M=0;continue}return B(te,String(E),D,c)}D=!1,(M=(re=k(re,c,10,te.s)).indexOf("."))>-1?re=re.replace(".",""):M=re.length}for($=0;re.charCodeAt($)===48;$++);for(X=re.length;re.charCodeAt(--X)===48;);if(re=re.slice($,++X)){if(X-=$,D&&ue.DEBUG&&X>15&&(E>T||E!==p(E)))throw Error(_+te.s*E);if((M=M-$-1)>jt)te.c=te.e=null;else if(M<vr)te.c=[te.e=0];else{if(te.e=M,te.c=[],$=(M+1)%g,M<0&&($+=g),$<X){for($&&te.c.push(+re.slice(0,$)),X-=g;$<X;)te.c.push(+re.slice($,$+=g));$=g-(re=re.slice($)).length}else $-=X;for(;$--;re+="0");te.c.push(+re)}}else te.c=[te.e=0]}function Mr(E,c,C,O){var S,M,$,D,X;if(C==null?C=et:x(C,0,8),!E.c)return E.toString();if(S=E.c[0],$=E.e,c==null)X=K(E.c),X=O==1||O==2&&($<=Ot||$>=Lr)?Q(X,$):ee(X,$,"0");else if(M=(E=Ve(new ue(E),c,C)).e,D=(X=K(E.c)).length,O==1||O==2&&(c<=M||M<=Ot)){for(;D<c;X+="0",D++);X=Q(X,M)}else if(c-=$,X=ee(X,M,"0"),M+1>D){if(--c>0)for(X+=".";c--;X+="0");}else if((c+=M-D)>0)for(M+1==D&&(X+=".");c--;X+="0");return E.s<0&&S?"-"+X:X}function Vn(E,c){for(var C,O=1,S=new ue(E[0]);O<E.length;O++){if(!(C=new ue(E[O])).s){S=C;break}c.call(S,C)&&(S=C)}return S}function zn(E,c,C){for(var O=1,S=c.length;!c[--S];c.pop());for(S=c[0];S>=10;S/=10,O++);return(C=O+C*g-1)>jt?E.c=E.e=null:C<vr?E.c=[E.e=0]:(E.e=C,E.c=c),E}function Ve(E,c,C,O){var S,M,$,D,X,re,te,pe=E.c,Ie=z;if(pe){e:{for(S=1,D=pe[0];D>=10;D/=10,S++);if((M=c-S)<0)M+=g,$=c,te=(X=pe[re=0])/Ie[S-$-1]%10|0;else if((re=m((M+1)/g))>=pe.length){if(!O)break e;for(;pe.length<=re;pe.push(0));X=te=0,S=1,$=(M%=g)-g+1}else{for(X=D=pe[re],S=1;D>=10;D/=10,S++);te=($=(M%=g)-g+S)<0?0:X/Ie[S-$-1]%10|0}if(O=O||c<0||pe[re+1]!=null||($<0?X:X%Ie[S-$-1]),O=C<4?(te||O)&&(C==0||C==(E.s<0?3:2)):te>5||te==5&&(C==4||O||C==6&&(M>0?$>0?X/Ie[S-$]:0:pe[re-1])%10&1||C==(E.s<0?8:7)),c<1||!pe[0])return pe.length=0,O?(c-=E.e+1,pe[0]=Ie[(g-c%g)%g],E.e=-c||0):pe[0]=E.e=0,E;if(M==0?(pe.length=re,D=1,re--):(pe.length=re+1,D=Ie[g-M],pe[re]=$>0?p(X/Ie[S-$]%Ie[$])*D:0),O)for(;;){if(re==0){for(M=1,$=pe[0];$>=10;$/=10,M++);for($=pe[0]+=D,D=1;$>=10;$/=10,D++);M!=D&&(E.e++,pe[0]==A&&(pe[0]=1));break}if(pe[re]+=D,pe[re]!=A)break;pe[re--]=0,D=1}for(M=pe.length;pe[--M]===0;pe.pop());}E.e>jt?E.c=E.e=null:E.e<vr&&(E.c=[E.e=0])}return E}function er(E){var c,C=E.e;return C===null?E.toString():(c=K(E.c),c=C<=Ot||C>=Lr?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(v+"Object expected: "+E);if(E.hasOwnProperty(c="DECIMAL_PLACES")&&(x(C=E[c],0,I,c),Xe=C),E.hasOwnProperty(c="ROUNDING_MODE")&&(x(C=E[c],0,8,c),et=C),E.hasOwnProperty(c="EXPONENTIAL_AT")&&((C=E[c])&&C.pop?(x(C[0],-I,0,c),x(C[1],0,I,c),Ot=C[0],Lr=C[1]):(x(C,-I,I,c),Ot=-(Lr=C<0?-C:C))),E.hasOwnProperty(c="RANGE"))if((C=E[c])&&C.pop)x(C[0],-I,-1,c),x(C[1],1,I,c),vr=C[0],jt=C[1];else{if(x(C,-I,I,c),!C)throw Error(v+c+" cannot be zero: "+C);vr=-(jt=C<0?-C:C)}if(E.hasOwnProperty(c="CRYPTO")){if((C=E[c])!==!!C)throw Error(v+c+" not true or false: "+C);if(C){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw br=!C,Error(v+"crypto unavailable");br=C}else br=C}if(E.hasOwnProperty(c="MODULO_MODE")&&(x(C=E[c],0,9,c),Qr=C),E.hasOwnProperty(c="POW_PRECISION")&&(x(C=E[c],0,I,c),kt=C),E.hasOwnProperty(c="FORMAT")){if(typeof(C=E[c])!="object")throw Error(v+c+" not an object: "+C);Br=C}if(E.hasOwnProperty(c="ALPHABET")){if(typeof(C=E[c])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(C))throw Error(v+c+" invalid: "+C);wr=C.slice(0,10)=="0123456789",Lt=C}}return{DECIMAL_PLACES:Xe,ROUNDING_MODE:et,EXPONENTIAL_AT:[Ot,Lr],RANGE:[vr,jt],CRYPTO:br,MODULO_MODE:Qr,POW_PRECISION:kt,FORMAT:Br,ALPHABET:Lt}},ue.isBigNumber=function(E){if(!E||E._isBigNumber!==!0)return!1;if(!ue.DEBUG)return!0;var c,C,O=E.c,S=E.e,M=E.s;e:if({}.toString.call(O)=="[object Array]"){if((M===1||M===-1)&&S>=-I&&S<=I&&S===p(S)){if(O[0]===0){if(S===0&&O.length===1)return!0;break e}if((c=(S+1)%g)<1&&(c+=g),String(O[0]).length==c){for(c=0;c<O.length;c++)if((C=O[c])<0||C>=A||C!==p(C))break e;if(C!==0)return!0}}}else if(O===null&&S===null&&(M===null||M===1||M===-1))return!0;throw Error(v+"Invalid BigNumber: "+E)},ue.maximum=ue.max=function(){return Vn(arguments,ge.lt)},ue.minimum=ue.min=function(){return Vn(arguments,ge.gt)},ue.random=(V=9007199254740992,se=Math.random()*V&2097151?function(){return p(Math.random()*V)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(E){var c,C,O,S,M,$=0,D=[],X=new ue(At);if(E==null?E=Xe:x(E,0,I),S=m(E/g),br)if(crypto.getRandomValues){for(c=crypto.getRandomValues(new Uint32Array(S*=2));$<S;)(M=131072*c[$]+(c[$+1]>>>11))>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),c[$]=C[0],c[$+1]=C[1]):(D.push(M%1e14),$+=2);$=S/2}else{if(!crypto.randomBytes)throw br=!1,Error(v+"crypto unavailable");for(c=crypto.randomBytes(S*=7);$<S;)(M=281474976710656*(31&c[$])+1099511627776*c[$+1]+4294967296*c[$+2]+16777216*c[$+3]+(c[$+4]<<16)+(c[$+5]<<8)+c[$+6])>=9e15?crypto.randomBytes(7).copy(c,$):(D.push(M%1e14),$+=7);$=S/7}if(!br)for(;$<S;)(M=se())<9e15&&(D[$++]=M%1e14);for(S=D[--$],E%=g,S&&E&&(M=z[g-E],D[$]=p(S/M)*M);D[$]===0;D.pop(),$--);if($<0)D=[O=0];else{for(O=-1;D[0]===0;D.splice(0,1),O-=g);for($=1,M=D[0];M>=10;M/=10,$++);$<g&&(O-=g-$)}return X.e=O,X.c=D,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},k=(function(){var E="0123456789";function c(C,O,S,M){for(var $,D,X=[0],re=0,te=C.length;re<te;){for(D=X.length;D--;X[D]*=O);for(X[0]+=M.indexOf(C.charAt(re++)),$=0;$<X.length;$++)X[$]>S-1&&(X[$+1]==null&&(X[$+1]=0),X[$+1]+=X[$]/S|0,X[$]%=S)}return X.reverse()}return function(C,O,S,M,$){var D,X,re,te,pe,Ie,je,De,tt=C.indexOf("."),at=Xe,Fe=et;for(tt>=0&&(te=kt,kt=0,C=C.replace(".",""),Ie=(De=new ue(O)).pow(C.length-tt),kt=te,De.c=c(ee(K(Ie.c),Ie.e,"0"),10,S,E),De.e=De.c.length),re=te=(je=c(C,O,S,$?(D=Lt,E):(D=E,Lt))).length;je[--te]==0;je.pop());if(!je[0])return D.charAt(0);if(tt<0?--re:(Ie.c=je,Ie.e=re,Ie.s=M,je=(Ie=y(Ie,De,at,Fe,S)).c,pe=Ie.r,re=Ie.e),tt=je[X=re+at+1],te=S/2,pe=pe||X<0||je[X+1]!=null,pe=Fe<4?(tt!=null||pe)&&(Fe==0||Fe==(Ie.s<0?3:2)):tt>te||tt==te&&(Fe==4||pe||Fe==6&&1&je[X-1]||Fe==(Ie.s<0?8:7)),X<1||!je[0])C=pe?ee(D.charAt(1),-at,D.charAt(0)):D.charAt(0);else{if(je.length=X,pe)for(--S;++je[--X]>S;)je[X]=0,X||(++re,je=[1].concat(je));for(te=je.length;!je[--te];);for(tt=0,C="";tt<=te;C+=D.charAt(je[tt++]));C=ee(C,re,D.charAt(0))}return C}})(),y=(function(){function E(O,S,M){var $,D,X,re,te=0,pe=O.length,Ie=S%b,je=S/b|0;for(O=O.slice();pe--;)te=((D=Ie*(X=O[pe]%b)+($=je*X+(re=O[pe]/b|0)*Ie)%b*b+te)/M|0)+($/b|0)+je*re,O[pe]=D%M;return te&&(O=[te].concat(O)),O}function c(O,S,M,$){var D,X;if(M!=$)X=M>$?1:-1;else for(D=X=0;D<M;D++)if(O[D]!=S[D]){X=O[D]>S[D]?1:-1;break}return X}function C(O,S,M,$){for(var D=0;M--;)O[M]-=D,D=O[M]<S[M]?1:0,O[M]=D*$+O[M]-S[M];for(;!O[0]&&O.length>1;O.splice(0,1));}return function(O,S,M,$,D){var X,re,te,pe,Ie,je,De,tt,at,Fe,ze,mt,Fr,Jr,Xr,$t,_r,It=O.s==S.s?1:-1,gt=O.c,Je=S.c;if(!(gt&>[0]&&Je&&Je[0]))return new ue(O.s&&S.s&&(gt?!Je||gt[0]!=Je[0]:Je)?gt&>[0]==0||!Je?0*It:It/0:NaN);for(at=(tt=new ue(It)).c=[],It=M+(re=O.e-S.e)+1,D||(D=A,re=w(O.e/g)-w(S.e/g),It=It/g|0),te=0;Je[te]==(gt[te]||0);te++);if(Je[te]>(gt[te]||0)&&re--,It<0)at.push(1),pe=!0;else{for(Jr=gt.length,$t=Je.length,te=0,It+=2,(Ie=p(D/(Je[0]+1)))>1&&(Je=E(Je,Ie,D),gt=E(gt,Ie,D),$t=Je.length,Jr=gt.length),Fr=$t,ze=(Fe=gt.slice(0,$t)).length;ze<$t;Fe[ze++]=0);_r=Je.slice(),_r=[0].concat(_r),Xr=Je[0],Je[1]>=D/2&&Xr++;do{if(Ie=0,(X=c(Je,Fe,$t,ze))<0){if(mt=Fe[0],$t!=ze&&(mt=mt*D+(Fe[1]||0)),(Ie=p(mt/Xr))>1)for(Ie>=D&&(Ie=D-1),De=(je=E(Je,Ie,D)).length,ze=Fe.length;c(je,Fe,De,ze)==1;)Ie--,C(je,$t<De?_r:Je,De,D),De=je.length,X=1;else Ie==0&&(X=Ie=1),De=(je=Je.slice()).length;if(De<ze&&(je=[0].concat(je)),C(Fe,je,ze,D),ze=Fe.length,X==-1)for(;c(Je,Fe,$t,ze)<1;)Ie++,C(Fe,$t<ze?_r:Je,ze,D),ze=Fe.length}else X===0&&(Ie++,Fe=[0]);at[te++]=Ie,Fe[0]?Fe[ze++]=gt[Fr]||0:(Fe=[gt[Fr]],ze=1)}while((Fr++<Jr||Fe[0]!=null)&&It--);pe=Fe[0]!=null,at[0]||at.splice(0,1)}if(D==A){for(te=1,It=at[0];It>=10;It/=10,te++);Ve(tt,M+(tt.e=te+re*g-1)+1,$,pe)}else tt.e=re,tt.r=+pe;return tt}})(),me=/^(-?)0([xbo])(?=\w[\w.]*$)/i,ke=/^([^.]+)\.$/,Ne=/^\.([^.]+)$/,Ft=/^-?(Infinity|NaN)$/,ct=/^\s*\+(?=[\w.])|^\s+|\s+$/g,B=function(E,c,C,O){var S,M=C?c:c.replace(ct,"");if(Ft.test(M))E.s=isNaN(M)?null:M<0?-1:1;else{if(!C&&(M=M.replace(me,(function($,D,X){return S=(X=X.toLowerCase())=="x"?16:X=="b"?2:8,O&&O!=S?$:D})),O&&(S=O,M=M.replace(ke,"$1").replace(Ne,"0.$1")),c!=M))return new ue(M,S);if(ue.DEBUG)throw Error(v+"Not a"+(O?" base "+O:"")+" number: "+c);E.s=null}E.c=E.e=null},ge.absoluteValue=ge.abs=function(){var E=new ue(this);return E.s<0&&(E.s=1),E},ge.comparedTo=function(E,c){return U(this,new ue(E,c))},ge.decimalPlaces=ge.dp=function(E,c){var C,O,S,M=this;if(E!=null)return x(E,0,I),c==null?c=et:x(c,0,8),Ve(new ue(M),E+M.e+1,c);if(!(C=M.c))return null;if(O=((S=C.length-1)-w(this.e/g))*g,S=C[S])for(;S%10==0;S/=10,O--);return O<0&&(O=0),O},ge.dividedBy=ge.div=function(E,c){return y(this,new ue(E,c),Xe,et)},ge.dividedToIntegerBy=ge.idiv=function(E,c){return y(this,new ue(E,c),0,1)},ge.exponentiatedBy=ge.pow=function(E,c){var C,O,S,M,$,D,X,re,te=this;if((E=new ue(E)).c&&!E.isInteger())throw Error(v+"Exponent not an integer: "+er(E));if(c!=null&&(c=new ue(c)),$=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(+er(te),$?E.s*(2-q(E)):+er(E))),c?re.mod(c):re;if(D=E.s<0,c){if(c.c?!c.c[0]:!c.s)return new ue(NaN);(O=!D&&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||$&&te.c[1]>=24e7:te.c[0]<8e13||$&&te.c[0]<=9999975e7)))return M=te.s<0&&q(E)?-0:0,te.e>-1&&(M=1/M),new ue(D?1/M:M);kt&&(M=m(kt/g+2))}for($?(C=new ue(.5),D&&(E.s=1),X=q(E)):X=(S=Math.abs(+er(E)))%2,re=new ue(At);;){if(X){if(!(re=re.times(te)).c)break;M?re.c.length>M&&(re.c.length=M):O&&(re=re.mod(c))}if(S){if((S=p(S/2))===0)break;X=S%2}else if(Ve(E=E.times(C),E.e+1,1),E.e>14)X=q(E);else{if((S=+er(E))==0)break;X=S%2}te=te.times(te),M?te.c&&te.c.length>M&&(te.c.length=M):O&&(te=te.mod(c))}return O?re:(D&&(re=At.div(re)),c?re.mod(c):M?Ve(re,kt,et,void 0):re)},ge.integerValue=function(E){var c=new ue(this);return E==null?E=et:x(E,0,8),Ve(c,c.e+1,E)},ge.isEqualTo=ge.eq=function(E,c){return U(this,new ue(E,c))===0},ge.isFinite=function(){return!!this.c},ge.isGreaterThan=ge.gt=function(E,c){return U(this,new ue(E,c))>0},ge.isGreaterThanOrEqualTo=ge.gte=function(E,c){return(c=U(this,new ue(E,c)))===1||c===0},ge.isInteger=function(){return!!this.c&&w(this.e/g)>this.c.length-2},ge.isLessThan=ge.lt=function(E,c){return U(this,new ue(E,c))<0},ge.isLessThanOrEqualTo=ge.lte=function(E,c){return(c=U(this,new ue(E,c)))===-1||c===0},ge.isNaN=function(){return!this.s},ge.isNegative=function(){return this.s<0},ge.isPositive=function(){return this.s>0},ge.isZero=function(){return!!this.c&&this.c[0]==0},ge.minus=function(E,c){var C,O,S,M,$=this,D=$.s;if(c=(E=new ue(E,c)).s,!D||!c)return new ue(NaN);if(D!=c)return E.s=-c,$.plus(E);var X=$.e/g,re=E.e/g,te=$.c,pe=E.c;if(!X||!re){if(!te||!pe)return te?(E.s=-c,E):new ue(pe?$:NaN);if(!te[0]||!pe[0])return pe[0]?(E.s=-c,E):new ue(te[0]?$:et==3?-0:0)}if(X=w(X),re=w(re),te=te.slice(),D=X-re){for((M=D<0)?(D=-D,S=te):(re=X,S=pe),S.reverse(),c=D;c--;S.push(0));S.reverse()}else for(O=(M=(D=te.length)<(c=pe.length))?D:c,D=c=0;c<O;c++)if(te[c]!=pe[c]){M=te[c]<pe[c];break}if(M&&(S=te,te=pe,pe=S,E.s=-E.s),(c=(O=pe.length)-(C=te.length))>0)for(;c--;te[C++]=0);for(c=A-1;O>D;){if(te[--O]<pe[O]){for(C=O;C&&!te[--C];te[C]=c);--te[C],te[O]+=A}te[O]-=pe[O]}for(;te[0]==0;te.splice(0,1),--re);return te[0]?zn(E,te,re):(E.s=et==3?-1:1,E.c=[E.e=0],E)},ge.modulo=ge.mod=function(E,c){var C,O,S=this;return E=new ue(E,c),!S.c||!E.s||E.c&&!E.c[0]?new ue(NaN):!E.c||S.c&&!S.c[0]?new ue(S):(Qr==9?(O=E.s,E.s=1,C=y(S,E,0,3),E.s=O,C.s*=O):C=y(S,E,0,Qr),(E=S.minus(C.times(E))).c[0]||Qr!=1||(E.s=S.s),E)},ge.multipliedBy=ge.times=function(E,c){var C,O,S,M,$,D,X,re,te,pe,Ie,je,De,tt,at,Fe=this,ze=Fe.c,mt=(E=new ue(E,c)).c;if(!(ze&&mt&&ze[0]&&mt[0]))return!Fe.s||!E.s||ze&&!ze[0]&&!mt||mt&&!mt[0]&&!ze?E.c=E.e=E.s=null:(E.s*=Fe.s,ze&&mt?(E.c=[0],E.e=0):E.c=E.e=null),E;for(O=w(Fe.e/g)+w(E.e/g),E.s*=Fe.s,(X=ze.length)<(pe=mt.length)&&(De=ze,ze=mt,mt=De,S=X,X=pe,pe=S),S=X+pe,De=[];S--;De.push(0));for(tt=A,at=b,S=pe;--S>=0;){for(C=0,Ie=mt[S]%at,je=mt[S]/at|0,M=S+($=X);M>S;)C=((re=Ie*(re=ze[--$]%at)+(D=je*re+(te=ze[$]/at|0)*Ie)%at*at+De[M]+C)/tt|0)+(D/at|0)+je*te,De[M--]=re%tt;De[M]=C}return C?++O:De.splice(0,1),zn(E,De,O)},ge.negated=function(){var E=new ue(this);return E.s=-E.s||null,E},ge.plus=function(E,c){var C,O=this,S=O.s;if(c=(E=new ue(E,c)).s,!S||!c)return new ue(NaN);if(S!=c)return E.s=-c,O.minus(E);var M=O.e/g,$=E.e/g,D=O.c,X=E.c;if(!M||!$){if(!D||!X)return new ue(S/0);if(!D[0]||!X[0])return X[0]?E:new ue(D[0]?O:0*S)}if(M=w(M),$=w($),D=D.slice(),S=M-$){for(S>0?($=M,C=X):(S=-S,C=D),C.reverse();S--;C.push(0));C.reverse()}for((S=D.length)-(c=X.length)<0&&(C=X,X=D,D=C,c=S),S=0;c;)S=(D[--c]=D[c]+X[c]+S)/A|0,D[c]=A===D[c]?0:D[c]%A;return S&&(D=[S].concat(D),++$),zn(E,D,$)},ge.precision=ge.sd=function(E,c){var C,O,S,M=this;if(E!=null&&E!==!!E)return x(E,1,I),c==null?c=et:x(c,0,8),Ve(new ue(M),E,c);if(!(C=M.c))return null;if(O=(S=C.length-1)*g+1,S=C[S]){for(;S%10==0;S/=10,O--);for(S=C[0];S>=10;S/=10,O++);}return E&&M.e+1>O&&(O=M.e+1),O},ge.shiftedBy=function(E){return x(E,-9007199254740991,T),this.times("1e"+E)},ge.squareRoot=ge.sqrt=function(){var E,c,C,O,S,M=this,$=M.c,D=M.s,X=M.e,re=Xe+4,te=new ue("0.5");if(D!==1||!$||!$[0])return new ue(!D||D<0&&(!$||$[0])?NaN:$?M:1/0);if((D=Math.sqrt(+er(M)))==0||D==1/0?(((c=K($)).length+X)%2==0&&(c+="0"),D=Math.sqrt(+c),X=w((X+1)/2)-(X<0||X%2),C=new ue(c=D==1/0?"5e"+X:(c=D.toExponential()).slice(0,c.indexOf("e")+1)+X)):C=new ue(D+""),C.c[0]){for((D=(X=C.e)+re)<3&&(D=0);;)if(S=C,C=te.times(S.plus(y(M,S,re,1))),K(S.c).slice(0,D)===(c=K(C.c)).slice(0,D)){if(C.e<X&&--D,(c=c.slice(D-3,D+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(M));break}if(!O&&(Ve(S,S.e+Xe+2,0),S.times(S).eq(M))){C=S;break}re+=4,D+=4,O=1}}return Ve(C,C.e+Xe+1,et,E)},ge.toExponential=function(E,c){return E!=null&&(x(E,0,I),E++),Mr(this,E,c,1)},ge.toFixed=function(E,c){return E!=null&&(x(E,0,I),E=E+this.e+1),Mr(this,E,c)},ge.toFormat=function(E,c,C){var O,S=this;if(C==null)E!=null&&c&&typeof c=="object"?(C=c,c=null):E&&typeof E=="object"?(C=E,E=c=null):C=Br;else if(typeof C!="object")throw Error(v+"Argument not an object: "+C);if(O=S.toFixed(E,c),S.c){var M,$=O.split("."),D=+C.groupSize,X=+C.secondaryGroupSize,re=C.groupSeparator||"",te=$[0],pe=$[1],Ie=S.s<0,je=Ie?te.slice(1):te,De=je.length;if(X&&(M=D,D=X,X=M,De-=M),D>0&&De>0){for(M=De%D||D,te=je.substr(0,M);M<De;M+=D)te+=re+je.substr(M,D);X>0&&(te+=re+je.slice(M)),Ie&&(te="-"+te)}O=pe?te+(C.decimalSeparator||"")+((X=+C.fractionGroupSize)?pe.replace(new RegExp("\\d{"+X+"}\\B","g"),"$&"+(C.fractionGroupSeparator||"")):pe):te}return(C.prefix||"")+O+(C.suffix||"")},ge.toFraction=function(E){var c,C,O,S,M,$,D,X,re,te,pe,Ie,je=this,De=je.c;if(E!=null&&(!(D=new ue(E)).isInteger()&&(D.c||D.s!==1)||D.lt(At)))throw Error(v+"Argument "+(D.isInteger()?"out of range: ":"not an integer: ")+er(D));if(!De)return new ue(je);for(c=new ue(At),re=C=new ue(At),O=X=new ue(At),Ie=K(De),M=c.e=Ie.length-je.e-1,c.c[0]=z[($=M%g)<0?g+$:$],E=!E||D.comparedTo(c)>0?M>0?c:re:D,$=jt,jt=1/0,D=new ue(Ie),X.c[0]=0;te=y(D,c,0,1),(S=C.plus(te.times(O))).comparedTo(E)!=1;)C=O,O=S,re=X.plus(te.times(S=re)),X=S,c=D.minus(te.times(S=c)),D=S;return S=y(E.minus(C),O,0,1),X=X.plus(S.times(re)),C=C.plus(S.times(O)),X.s=re.s=je.s,pe=y(re,O,M*=2,et).minus(je).abs().comparedTo(y(X,C,M,et).minus(je).abs())<1?[re,O]:[X,C],jt=$,pe},ge.toNumber=function(){return+er(this)},ge.toPrecision=function(E,c){return E!=null&&x(E,1,I),Mr(this,E,c,2)},ge.toString=function(E){var c,C=this,O=C.s,S=C.e;return S===null?O?(c="Infinity",O<0&&(c="-"+c)):c="NaN":(E==null?c=S<=Ot||S>=Lr?Q(K(C.c),S):ee(K(C.c),S,"0"):E===10&&wr?c=ee(K((C=Ve(new ue(C),Xe+S+1,et)).c),C.e,"0"):(x(E,2,Lt.length,"Base"),c=k(ee(K(C.c),S,"0"),10,E,O,!0)),O<0&&C.c[0]&&(c="-"+c)),c},ge.valueOf=ge.toJSON=function(){return er(this)},ge._isBigNumber=!0,ge[Symbol.toStringTag]="BigNumber",ge[Symbol.for("nodejs.util.inspect.custom")]=ge.valueOf,l!=null&&ue.set(l),ue})();const J={ROUNDING_MODE:ae.ROUND_DOWN};function L(i){return new TextEncoder().encode(i)}function N(i){return typeof i=="string"?N(H(i)):new TextDecoder().decode(i)}ae.config(J);const Z="UNKNOWN_ERROR",P="INVALID_ARGUMENT";function F(i,l=Z,y={}){const k=[];Object.keys(y).forEach((se=>{try{k.push(se+"="+JSON.stringify(y[se]))}catch{k.push(se+"="+JSON.stringify(y[se].toString()))}}));const B=i;k.length&&(i+=" ("+k.join(", ")+")");const V=new Error(i);return V.reason=B,V.code=l,Object.keys(y).forEach((function(se){V[se]=y[se]})),V}function H(i){if(typeof i!="string")throw new Error("hexToBytes only accept strings, got: "+typeof i);if(i.substr(0,2)==="0x")return H(i.substr(2));const l=new Uint8Array(Math.ceil(i.length/2));let y=0;for(let k=0;k<i.length;k+=2){const B=parseInt(i.substr(k,2),16);if(isNaN(B))throw new Error("Cannot read hex string:"+JSON.stringify(i));l[y]=B,y++}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 y=i;y.length>2&&y.substr(0,2)==="0x"&&(y=y.substr(2));const k=H(y);return f.keccak256(k)}return f.keccak256(L(i))}return f.keccak256(i)}const G={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,y){return new Array(l-i.length+1).join(y||"0")+i}function ce(i){let l="",y=0;const k=i.length;for(i.substring(0,2)==="0x"&&(y=2);y<k;y+=2){const B=parseInt(i.substr(y,2),16);l+=String.fromCharCode(B)}return l}function ie(i){return Gt(i)&&i.name&&i.name.indexOf("(")!==-1?i.name:i.name+"("+de(!1,i.inputs||[]).join(",")+")"}function le(...i){const l=i.reduce(((B,V)=>B+V.length),0),y=new Uint8Array(l);let k=0;for(const B of i)y.set(B,k),k+=B.length;return y}function de(i,l){const y=[];return l.forEach((function(k){if(typeof k.components=="object"){if(k.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");let B="";const V=k.type.indexOf("[");V>=0&&(B=k.type.substring(V));const se=de(i,k.components);y.push("("+se.join(",")+")"+B)}else y.push(k.type)})),y}function Re(i){const l=i.indexOf("("),y=i.indexOf(")");return l!==-1&&y!==-1?i.substr(0,l):i}function we(i){const l=i.indexOf("("),y=i.indexOf(")");return l!==-1&&y!==-1?i.substr(l+1,y-l-1).replace(" ",""):""}function Ee(i){return i==null?i:Me(i).toNumber()}function ye(i){return Me(i).toNumber()}function Ge(i){return zt(i)?i.toString(10):""+i}function Ue(i){return typeof i=="string"&&!i.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i)?"0x"+i:Ae(i)}function he(i){if(typeof i=="string")return i.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i)?Ae(i):"0x"+R(L(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:Me(i).toNumber()!==0}function ve(i){const l=Me(i),y=l.toString(16);return l.isLessThan(0)?"-0x"+y.substr(1):"0x"+y}function Ae(i){if(Ca(i))return ve(+i);if(zt(i))return ve(i);if(Pt(i)){const l=i;if(l.indexOf("-0x")===0)return ve(l);if(l.indexOf("0x")===0)return l;if(!isFinite(l))return R(L(l))}if(i instanceof Uint8Array)return"0x"+R(i);if(sr(i)||Gt(i))throw new Error("toHex can only be called with scalar values, not objects or arrays");return ve(i)}function Be(i){const l=i?i.toLowerCase():"ether",y=G[l];if(y===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(G,null,2));return new ae(y,10)}function Me(i){let l=i||0;return zt(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 ht(i){return new ae(new Array(i).fill("1").join(""),2)}function nt(i,l=256){const y=Me(i).integerValue();return y.isLessThan(0)?ht(l).plus(y).plus(1):y}function Ht(i,l){return Y(i.toString(2),l,"0")[0]==="1"}function Vt(i){if(typeof i!="string")throw F("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),gr(i);throw F("invalid address",P,{arg:"address",value:i})}function or(i,l=256){if(Ht(i,l)){const y=ht(l);return i.minus(y).minus(1)}return i}function Or(i){return/^0x[0-9a-f]{40}$/i.test(i)}function Xt(i){return!!/^(0x)?[0-9a-f]{40}$/i.test(i)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(i)&&!/^(0x)?[0-9A-F]{40}$/.test(i))||qn(i))}function qn(i){const l=i.replace("0x",""),y=j(l.toLowerCase());for(let k=0;k<40;k++)if(parseInt(y[k],16)>7&&l[k].toUpperCase()!==l[k]||parseInt(y[k],16)<=7&&l[k].toLowerCase()!==l[k])return!1;return!0}function gr(i){if(i===void 0)return"";const l=i.toLowerCase().replace("0x",""),y=j(l);let k="0x";for(let B=0;B<l.length;B++)parseInt(y[B],16)>7?k+=l[B].toUpperCase():k+=l[B];return k}function vt(i){if(!Array.isArray(i))throw new Error(`Value was not an array: ${JSON.stringify(i)}`);return i}function Yr(i){return Or(i)?i:/^[0-9a-f]{40}$/.test(i)?"0x"+i:"0x"+Y(Ae(i).substr(2),40)}function zt(i){return i instanceof ae}function Pt(i){return typeof i=="string"||i&&i.constructor&&i.constructor.name==="String"}function Gt(i){return i!==null&&!Array.isArray(i)&&typeof i=="object"}function Ca(i){return typeof i=="boolean"}function sr(i){return Array.isArray(i)}var Qs,Un;function Js(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 Vl(i){return Array.isArray(i)?i.every(l):l(i);function l(y){return!!y&&(y.error===void 0||y.error===null)&&y.jsonrpc==="2.0"&&y.id!==null&&"result"in y&&y.result!==void 0}}r.TransactionStatus=void 0,(Qs=r.TransactionStatus||(r.TransactionStatus={})).pending="pending",Qs.confirmed="confirmed",Qs.failed="failed",r.TransactionType=void 0,(Un=r.TransactionType||(r.TransactionType={})).queued="queued",Un.dropped="dropped",Un.replaced="replaced",Un.pending="pending",Un.reverted="reverted",Un.confirmed="confirmed",r.messageId=0;function Xs(i){return Me(i)}function zl(i){return i==="latest"||i==="pending"||i==="earliest"}function yn(i){return i===void 0?"latest":Ct(i)}function Ct(i){return i==null?null:zl(i)?i:Ae(i)}function ei(i){return i.from&&(i.from=Wt(i.from)),i.to&&(i.to=Wt(i.to)),i.gasPrice!==void 0&&(i.gasPrice=ve(i.gasPrice)),i.gas!==void 0&&(i.gas=ve(i.gas)),i.value!==void 0&&(i.value=ve(i.value)),i.nonce!==void 0&&(i.nonce=ve(i.nonce)),i.data&&!i.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i.data)&&(i.data="0x"+i.data),i}function Hn(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 ti(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=Wt(i.from),i.to&&(i.to=Wt(i.to)),i.gasPrice!==void 0&&(i.gasPrice=ve(i.gasPrice)),i.gas!==void 0&&(i.gas=ve(i.gas)),i.value!==void 0&&(i.value=ve(i.value)),i.nonce!==void 0&&(i.nonce=ve(i.nonce)),i.data&&!i.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i.data)&&(i.data="0x"+i.data),i}function Ea(i){return i?(i.blockNumber!==null&&(i.blockNumber=ye(i.blockNumber)),i.transactionIndex!==null&&(i.transactionIndex=ye(i.transactionIndex)),i.nonce=ye(i.nonce),i.gas=ye(i.gas),i.gasPrice=Me(i.gasPrice),i.value=Me(i.value),i):null}function Gl(i){return i?(i.blockNumber!==null&&(i.blockNumber=ye(i.blockNumber)),i.transactionIndex!==null&&(i.transactionIndex=ye(i.transactionIndex)),i.cumulativeGasUsed=ye(i.cumulativeGasUsed),i.gasUsed=ye(i.gasUsed),i.effectiveGasPrice!==void 0&&i.effectiveGasPrice!==null&&(i.effectiveGasPrice=ye(i.effectiveGasPrice)),i.logs&&sr(i.logs)&&(i.logs=i.logs.map((function(l){return ho(l)}))),i.status=ye(i.status||""),i):null}function xa(i){return i?(i.gasLimit=ye(i.gasLimit),i.gasUsed=ye(i.gasUsed),i.size=ye(i.size),i.timestamp=ye(i.timestamp),i.number!==null&&(i.number=ye(i.number)),i.difficulty=Me(i.difficulty),i.totalDifficulty=Me(i.totalDifficulty),sr(i.transactions)&&i.transactions.forEach((function(l,y){Pt(l)||(i.transactions[y]=Ea(l)||i.transactions[y])})),i):null}function ho(i){return i&&(i.blockNumber&&(i.blockNumber=ye(i.blockNumber)),i.transactionIndex&&(i.transactionIndex=ye(i.transactionIndex)),i.logIndex&&(i.logIndex=ye(i.logIndex)),i)}function Wt(i){if(Or(i))return i;if(Xt(i))return"0x"+i;throw new Error(`Invalid address: ${JSON.stringify(i)}`)}function Wl(i){return i}function Zl(i){return i&&(i.startingBlock=ye(i.startingBlock),i.currentBlock=ye(i.currentBlock),i.highestBlock=ye(i.highestBlock),i.knownStates&&(i.knownStates=ye(i.knownStates),i.pulledStates=ye(i.pulledStates)),i)}function ri(i){if(i===null)throw F("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 F("invalid hexidecimal string",P,{arg:"value",value:i});if(l[1]!=="0x")throw F("hex string must have 0x prefix",P,{arg:"value",value:i});(i=i.substring(2)).length%2&&(i="0"+i);const y=[];for(let k=0;k<i.length;k+=2)y.push(parseInt(i.substr(k,2),16));return new Uint8Array(y)}if((function(l){if(!l||parseInt(String(l.length))!==l.length||typeof l=="string")return!1;for(let y=0;y<l.length;y++){const k=l[y];if(k<0||k>=256||parseInt(String(k))!==k)return!1}return!0})(i))return new Uint8Array(i);throw F("invalid arrayify value",void 0,{arg:"value",value:i,type:typeof i})}function Kl(i,l,y){Object.defineProperty(i,l,{enumerable:!0,value:y,writable:!1})}const Lh=new ae(-1),Bh=new ae(0),Mh=new ae(1),Yl=new ae("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Ql(i){return(function(l,y){function k(se){return new Error('unexpected character "'+l[se]+'" at position '+se+' in "'+l+'"')}const B={type:"",name:"",state:{allowType:!0}};let V=B;for(let se=0;se<l.length;se++){const me=l[se];switch(me){case"(":if(!V.state.allowParams)throw k(se);V.state.allowType=!1,V.type=Sa(V.type),V.components=[{type:"",name:"",parent:V,state:{allowType:!0}}],V=V.components[0];break;case")":delete V.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),V.type=Sa(V.type);const ke=V;if(V=V.parent,!V)throw k(se);delete ke.parent,V.state.allowParams=!1,V.state.allowName=!0,V.state.allowArray=!0;break;case",":delete V.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),V.type=Sa(V.type);const Ne={type:"",name:"",parent:V.parent,state:{allowType:!0}};V.parent.components.push(Ne),delete V.parent,V=Ne;break;case" ":V.state.allowType&&V.type!==""&&(V.type=Sa(V.type),delete V.state.allowType,V.state.allowName=!0,V.state.allowParams=!0),V.state.allowName&&V.name!==""&&(V.name==="indexed"?(V.indexed=!0,V.name=""):V.state.allowName=!1);break;case"[":if(!V.state.allowArray)throw k(se);V.type+=me,V.state.allowArray=!1,V.state.allowName=!1,V.state.readArray=!0;break;case"]":if(!V.state.readArray)throw k(se);V.type+=me,V.state.readArray=!1,V.state.allowArray=!0,V.state.allowName=!0;break;default:if(V.state.allowType)V.type+=me,V.state.allowParams=!0,V.state.allowArray=!0;else if(V.state.allowName)V.name+=me,delete V.state.allowArray;else{if(!V.state.readArray)throw k(se);V.type+=me}}}if(V.parent)throw new Error("unexpected eof");return delete B.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),B.type=Sa(B.type),B})(i)}function Sa(i){return i.match(/^uint($|[^1-9])/)?i="uint256"+i.substring(4):i.match(/^int($|[^1-9])/)&&(i="int256"+i.substring(3)),i}const Fh=new RegExp(/^bytes([0-9]*)$/),Jl=new RegExp(/^(u?int)([0-9]*)$/),$h=new RegExp(/^(.*)\[([0-9]*)\]$/),Dh=function(i,l){const y=i.match(Jl);return y&&parseInt(y[2])<=48?l.toNumber():l};class yr{constructor(l,y,k,B="",V){this.coerceFunc=l,this.name=y,this.type=k,this.localName=B,this.dynamic=V}}class qh extends yr{constructor(l){super(l.coerceFunc,l.name,l.type,void 0,l.dynamic),Kl(this,"coder",l)}encode(l){return this.coder.encode(l)}decode(l,y){return this.coder.decode(l,y)}}class Uh extends yr{constructor(l,y){super(l,"null","",y,!1)}encode(l){return ri([])}decode(l,y){if(y>l.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function mo(i,l){return new ae(i.toString(2).substr(-l),2)}class Xl extends yr{constructor(l,y,k,B){const V=(k?"int":"uint")+8*y;super(l,V,V,B,!1),this.size=y,this.signed=k}encode(l){try{let y=Me(l);if(this.signed){let B=mo(Yl,8*this.size-1);if(y.gt(B))throw new Error("out-of-bounds");if(B=B.plus(Mh).multipliedBy(Lh),y.lt(B))throw new Error("out-of-bounds")}else if(y.lt(Bh)||y.gt(mo(Yl,8*this.size)))throw new Error("out-of-bounds");y=mo(nt(y,8*this.size),8*this.size),this.signed&&(y=nt(or(y,8*this.size),256));const k=Y(nt(y).toString(16),64);if(k.indexOf("NaN")!==-1)throw F("invalid number value, NaN",P,{arg:this.localName,coderType:this.name,value:l,v:y,twosComplement:nt(y),twosComplement16:nt(y).toString(16),pad:Y(nt(y).toString(16),64),size:this.size});return H(k)}catch(y){throw F("invalid number value",P,{arg:this.localName,coderType:this.name,value:l,message:y.toString()})}}decode(l,y){if(l.length<y+32)throw F("insufficient data for "+this.name+" type",P,{arg:this.localName,coderType:this.name,value:Ae(l.slice(y,y+32))});const k=32-this.size;let B=new ae(R(l.slice(y+k,y+32)),16);return B=this.signed?or(B,8*this.size):mo(B,8*this.size),{consumed:32,value:this.coerceFunc(this.name,B)}}}const jr=new Xl((function(i,l){return l}),32,!1,"none");class eu extends yr{constructor(l,y,k){const B="bytes"+y;super(l,B,B,k,!1),this.length=y}encode(l){const y=new Uint8Array(32);try{if(typeof l=="string"&&l.length%2!=0)throw new Error("hex string cannot be odd-length");const k=ri(l);if(k.length>this.length)throw new Error("incorrect data length");y.set(k)}catch(k){throw F("invalid "+this.name+" value. Use hex strings or Uint8Array",P,{arg:this.localName,coderType:this.name,value:k.value||l,details:k.message})}return y}decode(l,y){if(l.length<y+32)throw F("insufficient data for "+this.name+" type",P,{arg:this.localName,coderType:this.name,value:Ae(l.slice(y,y+32))});return{consumed:32,value:this.coerceFunc(this.name,l.slice(y,y+this.length))}}}function tu(i){const l=32*Math.ceil(i.length/32),y=new Uint8Array(l-i.length);return le(jr.encode(i.length),i,y)}function ru(i,l,y){if(i.length<l+32)throw F("insufficient data for dynamicBytes length",P,{arg:y,coderType:"dynamicBytes",value:Ae(i.slice(l,l+32))});let k=jr.decode(i,l).value;try{k=k.toNumber()}catch(B){throw B("dynamic bytes count too large",P,{arg:y,coderType:"dynamicBytes",value:k.toString()})}if(i.length<l+32+k)throw F("insufficient data for dynamicBytes type",P,{arg:y,coderType:"dynamicBytes",value:Ae(i.slice(l,l+32+k))});return{consumed:32+32*Math.ceil(k/32),value:i.slice(l+32,l+32+k)}}function po(i){return 32*Math.ceil(i/32)}function nu(i,l){if(!Array.isArray(l)){if(!l||typeof l!="object")throw F("invalid tuple value",P,{coderType:"tuple",value:l});{const ke=[];i.forEach((function(Ne){ke.push(l[Ne.localName])})),l=ke}}if(i.length!==l.length)throw F("types/value length mismatch",P,{coderType:"tuple",value:l});const y=[];i.forEach((function(ke,Ne){y.push({dynamic:ke.dynamic,value:ke.encode(l[Ne])})}));let k=0,B=0;y.forEach((function(ke){ke.dynamic?(k+=32,B+=po(ke.value.length)):k+=po(ke.value.length)}));let V=0,se=k;const me=new Uint8Array(k+B);return y.forEach((function(ke){ke.dynamic?(me.set(jr.encode(se),V),V+=32,me.set(ke.value,se),se+=po(ke.value.length)):(me.set(ke.value,V),V+=po(ke.value.length))})),me}class Hh extends Array{}class Vh extends yr{constructor(l,y,k,B){super(l,"array",y.type+"["+(k>=0?k:"")+"]",B,k===-1||y.dynamic),this.coder=y,this.length=k}encode(l){if(!Array.isArray(l))throw F("expected array value",P,{arg:this.localName,coderType:"array",value:l});let y=this.length,k=new Uint8Array(0);y===-1&&(y=l.length,k=jr.encode(y)),(function(V,se,me){if(me||(me=""),V<se)throw F("missing argument"+me,"MISSING_ARGUMENT",{count:V,expectedCount:se});if(V>se)throw F("too many arguments"+me,"UNEXPECTED_ARGUMENT",{count:V,expectedCount:se})})(y,l.length,"in coder array"+(this.localName?" "+this.localName:""));const B=[];for(let V=0;V<l.length;V++)B.push(this.coder);return le(k,nu(B,l))}decode(l,y){let k=0,B=this.length;if(B===-1){let me;try{me=jr.decode(l,y)}catch(ke){throw F("insufficient data for dynamic array length",P,{arg:this.localName,coderType:"array",value:ke.value})}try{B=me.value.toNumber()}catch{throw F("array count too large",P,{arg:this.localName,coderType:"array",value:me.value.toString()})}k+=me.consumed,y+=me.consumed}const V=[];for(let me=0;me<B;me++)V.push(new qh(this.coder));const se=(function(me,ke,Ne){const Ft=Ne;let ct=0;const ge=[];return me.forEach((function(At){let Xe;if(At.dynamic){const et=jr.decode(ke,Ne);Xe=At.decode(ke,Ft+et.value.toNumber()),Xe.consumed=et.consumed}else Xe=At.decode(ke,Ne);Xe.value!==void 0&&ge.push(Xe.value),Ne+=Xe.consumed,ct+=Xe.consumed})),{value:ge,consumed:ct}})(V,l,y);return se.consumed+=k,se.value=this.coerceFunc(this.type,se.value),se}}class ni extends yr{constructor(l,y,k){let B=!1;const V=[];y.forEach((function(se){se.dynamic&&(B=!0),V.push(se.type)})),super(l,"tuple","tuple("+V.join(",")+")",k,B),this.coders=y}encode(l){return nu(this.coders,l)}decode(l,y){const k=(function(B,V,se){const me=se;let ke=0;const Ne=new Hh;return B.forEach((function(Ft){let ct;if(Ft.dynamic){const ge=jr.decode(V,se);ct=Ft.decode(V,me+ge.value.toNumber()),ct.consumed=ge.consumed}else ct=Ft.decode(V,se);ct.value!==void 0&&Ne.push(ct.value),se+=ct.consumed,ke+=ct.consumed})),B.forEach((function(Ft,ct){let ge=Ft.localName;ge&&(ge==="length"&&(ge="_length"),Ne[ge]!==null&&Ne[ge]!==void 0||(Ne[ge]=Ne[ct]))})),{value:Ne,consumed:ke}})(this.coders,l,y);return k.value=this.coerceFunc(this.type,k.value),k}}const zh={address:class extends yr{constructor(i,l){super(i,"address","address",l,!1)}encode(i){const l=new Uint8Array(32),y=i.trim();if(!Xt(y))throw F("invalid address format",P,{arg:this.localName,coderType:"address",value:i});try{l.set(H(Wt(y)),12)}catch(k){throw F(`invalid address (${k.message})`,P,{arg:this.localName,coderType:"address",value:i})}return l}decode(i,l){if(i.length<l+32)throw F("insufficuent data for address type",P,{arg:this.localName,coderType:"address",value:Ae(i.slice(l,l+32)),missingBytes:l+32-i.length});return{consumed:32,value:this.coerceFunc("address",Vt(Ae(i.slice(l+12,l+32))))}}},bool:class extends yr{constructor(i,l){super(i,"bool","bool",l,!1)}encode(i){return jr.encode(i?1:0)}decode(i,l){try{const y=jr.decode(i,l);return{consumed:y.consumed,value:this.coerceFunc("bool",!y.value.isZero())}}catch(y){throw y.reason==="insufficient data for uint256 type"?F("insufficient data for boolean type",P,{arg:this.localName,coderType:"boolean",value:y.value}):y}}},string:class extends yr{constructor(i,l){super(i,"string","string",l,!0)}encode(i){if(typeof i!="string")throw F("invalid string value",P,{arg:this.localName,coderType:"string",value:i});return tu(L(i))}decode(i,l){const y=ru(i,l,this.localName);return y.value=this.coerceFunc("string",N(y.value)),y}},bytes:class extends yr{constructor(i,l){super(i,"bytes","bytes",l,!0)}encode(i){try{return tu(ri(i))}catch(l){throw l("invalid bytes value",P,{arg:this.localName,coderType:"bytes",value:l.value})}}decode(i,l){const y=ru(i,l,this.localName);return y.value=this.coerceFunc("bytes",y.value),y}},function:class extends eu{constructor(i,l){super(i,24,l)}}};function go(i,l){const y=zh[l.type];if(y)return new y(i,l.name);let k=l.type.match(Jl);if(k){const B=parseInt(k[2]||"256");if(B===0||B>256||B%8!=0)throw F("invalid "+k[1]+" bit length",P,{arg:"param",value:l});return new Xl(i,B/8,k[1]==="int",l.name)}if(k=l.type.match(Fh),k){const B=parseInt(k[1]);if(B===0||B>32)throw F("invalid bytes length",P,{arg:"param",value:l});return new eu(i,B,l.name)}if(k=l.type.match($h),k){const B=Object.assign({},l),V=parseInt(k[2]||"-1");return B.type=k[1],new Vh(i,go(i,B),V,l.name)}if(l.type.substring(0,5)==="tuple")return(function(B,V,se){V||(V=[]);const me=V.map((ke=>go(B,ke)));return new ni(B,me,se)})(i,l.components,l.name);if(l.type==="")return new Uh(i,l.name);throw F("invalid type",P,{arg:"type",value:l.type,fullType:l})}class ai{constructor(l){(function(y,k){if(!(y instanceof k))throw F("missing new","MISSING_NEW",{name:k.name})})(this,ai),l||(l=Dh),Kl(this,"coerceFunc",l)}encode(l,y){if(l.length!==y.length)throw F("types/values length mismatch",P,{count:{types:l.length,values:y.length},value:{types:l,values:y}});const k=l.map((B=>typeof B=="string"?Ql(B):B)).map((B=>go(this.coerceFunc,B)));return new ni(this.coerceFunc,k,"_").encode(y)}decode(l,y){const k=l.map((B=>typeof B=="string"?Ql(B):B)).map((B=>go(this.coerceFunc,B)));return new ni(this.coerceFunc,k,"_").decode(y,0).value}}const au=new ai;var ou,Ce;function xe(i,l,y,k){var B,V=arguments.length,se=V<3?l:k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(i,l,y,k);else for(var me=i.length-1;me>=0;me--)(B=i[me])&&(se=(V<3?B(se):V>3?B(l,y,se):B(l,y))||se);return V>3&&se&&Object.defineProperty(l,y,se),se}function Se(i,l){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,l)}r.coder=void 0,(ou=r.coder||(r.coder={})).encodeParams=function(i,l){return R(au.encode(i,l))},ou.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 au.decode(i,H("0x"+l.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class Pe{constructor(l){this.callName=l.callName,this.params=l.params||0,this.inputFormatter=l.inputFormatter||null,this.outputFormatter=l.outputFormatter}validateArgs(l){if(l.length!==this.params)throw y=this.callName,k=l.length,B=this.params,new Error(`Invalid number of input parameters to RPC method "${y}" given: ${k}, expected: ${B}`);var y,k,B}formatInput(l){return this.inputFormatter?this.inputFormatter.map((function(y,k){return y?y(l[k]):l[k]})):l}formatOutput(l){return l!==null?this.outputFormatter(l):null}toPayload(l){const y=this.formatInput(l);return this.validateArgs(y),{method:this.callName,params:y}}async execute(l,...y){const k=this.toPayload(y);if(!l)throw new Error("Missing RequestManager in method#exec");const B=await l.sendAsync(k);return this.formatOutput(B)}}class Zt{constructor(l){this.getter=l.getter,this.outputFormatter=l.outputFormatter}formatOutput(l){return this.outputFormatter(l)}async execute(l,...y){const k=await l.sendAsync({method:this.getter,params:[]});return this.formatOutput(k)}}function su(i){return new Promise((l=>setTimeout(l,i)))}r.eth=void 0,(Ce=r.eth||(r.eth={})).eth_getBalance=new Pe({callName:"eth_getBalance",params:2,inputFormatter:[Wt,yn],outputFormatter:Xs}),Ce.eth_getStorageAt=new Pe({callName:"eth_getStorageAt",params:3,inputFormatter:[Wt,Ae,yn],outputFormatter:Ue}),Ce.eth_getCode=new Pe({callName:"eth_getCode",params:2,inputFormatter:[Wt,yn],outputFormatter:Ue}),Ce.eth_getBlockByHash=new Pe({callName:"eth_getBlockByHash",params:2,inputFormatter:[Ct,function(i){return!!i}],outputFormatter:xa}),Ce.eth_getBlockByNumber=new Pe({callName:"eth_getBlockByNumber",params:2,inputFormatter:[Ct,function(i){return!!i}],outputFormatter:xa}),Ce.eth_getUncleByBlockHashAndIndex=new Pe({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:xa}),Ce.eth_getUncleByBlockNumberAndIndex=new Pe({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:xa}),Ce.eth_getBlockTransactionCountByHash=new Pe({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[Ct],outputFormatter:ye}),Ce.eth_getBlockTransactionCountByNumber=new Pe({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[Ct],outputFormatter:ye}),Ce.eth_getUncleCountByBlockHash=new Pe({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[Ct],outputFormatter:ye}),Ce.eth_getUncleCountByBlockNumber=new Pe({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[Ct],outputFormatter:ye}),Ce.eth_getTransactionByHash=new Pe({callName:"eth_getTransactionByHash",params:1,inputFormatter:[Hn],outputFormatter:Ea}),Ce.eth_getTransactionByBlockHashAndIndex=new Pe({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:Ea}),Ce.eth_getTransactionByBlockNumberAndIndex=new Pe({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:Ea}),Ce.eth_getTransactionReceipt=new Pe({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[Hn],outputFormatter:Gl}),Ce.eth_getTransactionCount=new Pe({callName:"eth_getTransactionCount",params:2,inputFormatter:[Wt,yn],outputFormatter:ye}),Ce.eth_sendRawTransaction=new Pe({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:Ue}),Ce.web3_sha3=new Pe({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:Ue}),Ce.eth_sendTransaction=new Pe({callName:"eth_sendTransaction",params:1,inputFormatter:[ti],outputFormatter:Ue}),Ce.eth_sign=new Pe({callName:"eth_sign",params:2,inputFormatter:[Wt,null],outputFormatter:Ue}),Ce.eth_call=new Pe({callName:"eth_call",params:2,inputFormatter:[ei,yn],outputFormatter:Ue}),Ce.eth_estimateGas=new Pe({callName:"eth_estimateGas",params:1,inputFormatter:[ei],outputFormatter:ye}),Ce.eth_submitWork=new Pe({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:fe}),Ce.eth_getWork=new Pe({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:vt}),Ce.eth_coinbase=new Zt({getter:"eth_coinbase",outputFormatter:Yr}),Ce.eth_mining=new Zt({getter:"eth_mining",outputFormatter:fe}),Ce.eth_hashrate=new Zt({getter:"eth_hashrate",outputFormatter:ye}),Ce.eth_syncing=new Zt({getter:"eth_syncing",outputFormatter:Zl}),Ce.eth_gasPrice=new Zt({getter:"eth_gasPrice",outputFormatter:Xs}),Ce.eth_accounts=new Zt({getter:"eth_accounts",outputFormatter:vt}),Ce.eth_blockNumber=new Zt({getter:"eth_blockNumber",outputFormatter:ye}),Ce.eth_protocolVersion=new Zt({getter:"eth_protocolVersion",outputFormatter:ye}),Ce.web3_clientVersion=new Zt({getter:"web3_clientVersion",outputFormatter:Ge}),Ce.net_version=new Zt({getter:"net_version",outputFormatter:Ge}),Ce.shh_version=new Pe({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:ye}),Ce.shh_post=new Pe({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.personal_newAccount=new Pe({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:Yr}),Ce.personal_importRawKey=new Pe({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:Yr}),Ce.personal_sign=new Pe({callName:"personal_sign",params:3,inputFormatter:[he,Wt,null],outputFormatter:Ue}),Ce.personal_ecRecover=new Pe({callName:"personal_ecRecover",params:2,inputFormatter:[he,null],outputFormatter:Yr}),Ce.personal_unlockAccount=new Pe({callName:"personal_unlockAccount",params:3,inputFormatter:[Wt,null,Ee],outputFormatter:fe}),Ce.personal_sendTransaction=new Pe({callName:"personal_sendTransaction",params:2,inputFormatter:[ti,null],outputFormatter:Ue}),Ce.personal_lockAccount=new Pe({callName:"personal_lockAccount",params:1,inputFormatter:[Wt],outputFormatter:fe}),Ce.personal_listAccounts=new Zt({getter:"personal_listAccounts",outputFormatter:vt}),Ce.net_listening=new Zt({getter:"net_listening",outputFormatter:fe}),Ce.net_peerCount=new Zt({getter:"net_peerCount",outputFormatter:ye}),Ce.eth_newFilter=new Pe({callName:"eth_newFilter",params:1,inputFormatter:[Wl],outputFormatter:Ae}),Ce.eth_getLogs=new Pe({callName:"eth_getLogs",params:1,inputFormatter:[vt],outputFormatter:vt}),Ce.eth_newBlockFilter=new Pe({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:Ae}),Ce.eth_newPendingTransactionFilter=new Pe({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:Ae}),Ce.eth_uninstallFilter=new Pe({callName:"eth_uninstallFilter",params:1,inputFormatter:[Ae],outputFormatter:fe}),Ce.eth_getFilterLogs=new Pe({callName:"eth_getFilterLogs",params:1,inputFormatter:[Ae],outputFormatter:vt}),Ce.eth_getFilterChanges=new Pe({callName:"eth_getFilterChanges",params:1,inputFormatter:[Ae],outputFormatter:vt}),Ce.eth_submitHashrate=new Pe({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:fe}),Ce.shh_newIdentity=new Pe({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:Ue}),Ce.shh_hasIdentity=new Pe({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.shh_newGroup=new Pe({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:Ue}),Ce.shh_addToGroup=new Pe({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.shh_newFilter=new Pe({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:Ae}),Ce.shh_uninstallFilter=new Pe({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.shh_getLogs=new Pe({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:vt}),Ce.shh_getFilterMessages=new Pe({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:vt}),Ce.shh_getFilterChanges=new Pe({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:vt}),Ce.shh_getMessages=new Pe({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:vt});function Te(i,l){const y=r.eth[l];if(!y)throw new Error(`Could not find the method/property named ${l.toString()}`);Object.defineProperty(i,l,{value:function(...k){return y.execute(this,...k)}})}class _e{constructor(l){this.provider=l,this.requests=new Map}async sendAsync(l){const y=await this.provider;if(!y)throw new Error("Provider not set or invalid");const k=Js(l.method,l.params),B=s();return this.requests.set(k.id,B),y.sendAsync(k,((V,se)=>{this.requests.delete(k.id),V?B.reject(V):Vl(se)?B.resolve(se.result):B.reject((function(me){const ke=me&&me.error&&me.error.message?me.error.message:"Invalid JSON RPC response: "+JSON.stringify(me);return new Error(ke)})(se))})),B}setProvider(l){this.provider=l}async getConfirmedTransaction(l){const y=await this.waitForCompletion(l);if(this.isFailure(y))throw new Error(`Transaction "${l}" failed`);return y}async waitForCompletion(l,y){const k=Hn(l);if(await this.isTxDropped(k,y)){const B=await this.getTransactionAndReceipt(k);return Object.assign(Object.assign({},B),{status:r.TransactionStatus.failed})}for(;;){const B=await this.getTransactionAndReceipt(k);if(!this.isPending(B)&&B.receipt)return Object.assign(Object.assign({},B),{status:this.isFailure(B)?r.TransactionStatus.failed:r.TransactionStatus.confirmed});await su(2e3)}}async getTransaction(l){let y,k=null;const B=Hn(l);try{const se=(await this.eth_accounts())[0];se&&(k=await this.eth_getTransactionCount(se,"latest"))}catch{k=null}try{if(y=await this.eth_getTransactionByHash(B),y===null)return null}catch{return null}if(y.blockNumber===null){if(k!==null){if(y.nonce<k)return{hash:B,type:r.TransactionType.replaced,nonce:y.nonce};if(y.nonce>k)return{hash:B,type:r.TransactionType.queued,nonce:y.nonce}}return Object.assign({type:r.TransactionType.pending},y)}let V;try{if(V=await this.eth_getTransactionReceipt(B),V===null||V.status===0)return Object.assign({type:r.TransactionType.reverted},y)}catch{return null}return Object.assign(Object.assign({type:r.TransactionType.confirmed},y),{receipt:V})}async isTxDropped(l,y=15){let k=y;for(;k>0;){if(await this.getTransactionAndReceipt(l)!==null)return!1;k-=1,await su(2e3)}return!0}async getTransactionAndReceipt(l){l=Hn(l);const[y,k]=await Promise.all([this.eth_getTransactionByHash(l),this.eth_getTransactionReceipt(l)]);return Object.assign(Object.assign({},y),{receipt:k})}isPending(l){return l&&l.blockNumber===null}isFailure(l){return l&&(!l.receipt||l.receipt.status===0)}}xe([Te,Se("design:type",Function)],_e.prototype,"web3_clientVersion",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"web3_sha3",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"net_version",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"net_peerCount",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"net_listening",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_protocolVersion",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_syncing",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_coinbase",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_mining",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_hashrate",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_gasPrice",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_accounts",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_blockNumber",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getBalance",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getStorageAt",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getTransactionCount",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getBlockTransactionCountByHash",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getBlockTransactionCountByNumber",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getUncleCountByBlockHash",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getUncleCountByBlockNumber",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getCode",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_sign",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_sendTransaction",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_sendRawTransaction",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_call",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_estimateGas",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getBlockByHash",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getBlockByNumber",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getTransactionByHash",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getTransactionReceipt",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getUncleByBlockHashAndIndex",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_newFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_newBlockFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_newPendingTransactionFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_uninstallFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getFilterChanges",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getFilterLogs",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getLogs",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getWork",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_submitWork",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_submitHashrate",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_post",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_version",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_newIdentity",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_hasIdentity",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_newGroup",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_addToGroup",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_newFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_uninstallFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_getFilterChanges",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_getMessages",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_unlockAccount",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_newAccount",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_listAccounts",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_lockAccount",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_importRawKey",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_sendTransaction",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_sign",void 0),xe([Te,Se("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&&!Gt(l[l.length-1])&&yn(l.pop())||"latest"}validateArgs(l){if(l.some((V=>V===void 0)))throw new Error("Invalid call, some arguments are undefined");const y=l.filter((function(V){return!(Gt(V)===!0&&sr(V)===!1&&zt(V)===!1&&!(V instanceof Uint8Array))}));if(y.length!==this._inputTypes.length)throw k=y.length,B=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${k}, expected: ${B}`);var k,B}toPayload(l){let y={to:void 0,data:void 0,value:void 0,from:void 0};l.length>this._inputTypes.length&&Gt(l[l.length-1])&&(y=l.pop()),this.validateArgs(l);const k=this.signature();let B=r.coder.encodeParams(this._inputTypes,l);return B.indexOf("0x")===0&&(B=B.substr(2)),y.data="0x"+k+B,y}signature(){return j(this._name).slice(0,8)}unpackOutput(l){if(!l)return;const y=l.length>=2?l.slice(2):l,k=r.coder.decodeParams(this._outputTypes,y);return k.length===1?k[0]:k}async execute(l,y,...k){if(!l)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const B=this.toPayload(k);if(B.to=y,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(k),V=this.toPayload(k);V.to=y;const se=await l.eth_call(V,B);return this.unpackOutput(se)}}estimateGas(l,y,...k){if(!(l instanceof _e))throw new Error("estimateGas needs to receive a RequestManager as first argument");const B=this.toPayload(k);return B.to=y,l.eth_estimateGas(B)}displayName(){return Re(this._name)}typeName(){return we(this._name)||"void"}attachToContract(l){const y=this.displayName(),k=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 V=this.extractDefaultBlock(B),se=this.toPayload(B);return se.to=l.address,{method:"eth_call",params:[se,V]}},unpackOutput:B=>this.unpackOutput(B)});l[y]||(l[y]=k),l[y][this.typeName()]=k}}function cu(i){if(i==null)return null;const l=String(i).toString();return l.indexOf("0x")===0?l:R(L(l))}class oi{constructor(l){this.requestManager=l,this.isStarted=!1,this.isDisposed=!1,this.formatter=y=>y,this.filterId=s(),this.callbacks=[],this.stopSemaphore=s()}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=s(),await this.poll()}}async stop(){if(!this.isStarted||this.isDisposed)return;this.isDisposed=!0;const l=await this.filterId;if(this.isStarted=!1,this.stopSemaphore&&await this.stopSemaphore,await this.uninstall()!==!0)throw new Error(`Couldn't stop the eth filter: ${l}`)}async poll(){if(this.isStarted){if(this.callbacks.length){const y=await this.getChanges();y&&this.callbacks.forEach((k=>{this.formatter?y.forEach((B=>{k(this.formatter(B))})):y.forEach((B=>k(B)))}))}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=s(),setTimeout((l=()=>this.poll(),function(){l().catch((y=>console.error(y)))}),500))}else this.stopSemaphore.resolve(1);var l}}class Ta extends oi{constructor(l,y,k=(B=>B)){super(l),this.requestManager=l,this.options=y,this.formatter=k,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(B){return cu(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"?Ct(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?Ct(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 si{constructor(l,y,k){this.requestManager=l,this.address=k,this._anonymous=!1,this._params=y.inputs||[],this._name=ie(y),this._anonymous=y.anonymous||!1}types(l){return this._params.filter((function(y){return y.indexed===l}))}displayName(){return Re(this._name)}typeName(){return we(this._name)||"void"}signature(){return j(this._name)}encode(l={},y={}){const k={topics:[],address:this.address};y.fromBlock!==void 0&&(k.fromBlock=Ct(y.fromBlock)||void 0),y.toBlock!==void 0&&(k.toBlock=Ct(y.toBlock)||void 0),k.topics=k.topics||[],this._anonymous||k.topics.push("0x"+this.signature());const B=this._params.filter((function(V){return V.indexed===!0})).map((function(V){const se=l[V.name];return se==null?null:sr(se)?se.map((function(me){return"0x"+r.coder.encodeParams([V],[me])})):"0x"+r.coder.encodeParams([V],[se])}));return k.topics=k.topics.concat(B),k}decode(l){l.data=l.data||"",l.topics=l.topics||[];const y=(this._anonymous?l.topics:l.topics.slice(1)).map((function(me){return me.slice(2)})).join(""),k=r.coder.decodeParams(this.types(!0),y),B=l.data.slice(2),V=r.coder.decodeParams(this.types(!1),B),se=this._params.reduce((function(me,ke){return me[ke.name]=ke.indexed?k.shift():V.shift(),me}),{});return Object.assign(Object.assign({},ho(l)),{event:this.displayName(),address:l.address,args:se})}async execute(l,y){const k=this.encode(l,y),B=this.decode.bind(this);return new Ta(this.requestManager,k,B)}attachToContract(l){const y=this.execute.bind(this),k=this.displayName();l.events[k]||(l.events[k]=y),l.events[k][this.typeName()]=this.execute.bind(this,l)}}class Gh{constructor(l,y,k){this._requestManager=l,this._json=y,this._address=k}encode(l={}){const y={address:this._address};return l.fromBlock!==void 0&&(y.fromBlock=Ct(l.fromBlock)||void 0),l.toBlock!==void 0&&(y.toBlock=Ct(l.toBlock)||void 0),y}decode(l){l.data=l.data||"";const y=sr(l.topics)&&Pt(l.topics[0])?l.topics[0].slice(2):"",k=this._json.filter((function(B){return y===j(ie(B))}))[0];return k?new si(this._requestManager,k,this._address).decode(l):ho(l)}async execute(l){const y=this.encode(l),k=this.decode.bind(this);return new Ta(this._requestManager,y,k)}getAllEventsFunction(){return this.execute.bind(this)}}class lu{constructor(l,y,k){var B;this.requestManager=l,this.abi=y,this.address=k,this.events={},this.transactionHash=null,this.address=k,this.abi=y,(B=this).abi.filter((function(V){return V.type==="function"})).map((function(V){return new iu(V)})).forEach((function(V){V.attachToContract(B)})),this.allEvents=(function(V){const se=V.abi.filter((function(ke){return ke.type==="event"})),me=new Gh(V.requestManager,se,V.address);return se.map((function(ke){return new si(V.requestManager,ke,V.address)})).forEach((function(ke){ke.attachToContract(V)})),me.getAllEventsFunction()})(this)}}r.AbstractFilter=oi,r.BigNumber=ae,r.Contract=lu,r.ContractFactory=class{constructor(i,l){this.requestManager=i,this.abi=l}async deploy(...i){let l;const y=i[i.length-1];if(Gt(y)&&!sr(y)&&(l=i.pop()),!l)throw new Error("Missing options object");if(!l.data||typeof l.data!="string")throw new Error("Invalid options.data");if(ye(l.value)>0&&!(this.abi.filter((function(Ne){return Ne.type==="constructor"&&Ne.inputs.length===i.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const k=(B=this.abi,V=i,B.filter((function(Ne){return Ne.type==="constructor"&&Ne.inputs&&Ne.inputs.length===V.length})).map((function(Ne){return Ne.inputs||[]})).map((function(Ne){return r.coder.encodeParams(Ne,V)}))[0]||"");var B,V;l.data+=k,l.gas||(l.gas=await this.requestManager.eth_estimateGas(l));const se=await this.requestManager.eth_sendTransaction(l);if(!se)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const me=await(async function(Ne,Ft){const ct=s();let ge=0;const At=()=>{ge++,ge>50?ct.reject(new Error("Contract transaction couldn't be found after 50 blocks")):Ne.eth_getTransactionReceipt(Ft).then((Ot=>{Ot&&Ot.blockHash?ct.resolve(Ot):setTimeout(At,1e3)}),(Ot=>ct.reject(Ot)))};At();const Xe=await ct,et=await Ne.eth_getCode(Xe.contractAddress,"latest");if(et&&et.length>3)return Xe.contractAddress;throw Object.assign(new Error("The contract code couldn't be stored, please check your gas amount."),{response:et,receipt:Xe})})(this.requestManager,se),ke=await this.at(me);return ke.transactionHash=se,ke}async at(i){if(!Xt(i))throw new TypeError(`Invalid address ${JSON.stringify(i)}`);return new lu(this.requestManager,this.abi,i)}},r.EthBlockFilter=class extends Ta{constructor(i){super(i,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},r.EthFilter=Ta,r.EthPendingTransactionFilter=class extends Ta{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 y=null;y=i instanceof Array?i.map((V=>n(V))):n(i);const k=this.options.fetch||globalThis.fetch;if(k===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(y),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+B.body),k(this.host,B).then((async V=>{if(V.ok){const se=await V.json();this.debug&&console.log("RECV << "+JSON.stringify(se)),se.error?l(Object.assign(new Error(se.error.json||se.error),se.error)):l(null,se)}else{const se=(typeof V.text=="function"?await V.text().catch((()=>"")):"").trim().slice(0,512),me="External error. response code: "+V.status+(se?" — "+se:"");this.debug&&console.log("ERR << "+me),l(new Error(me))}}),(V=>{this.debug&&console.log("ERR << "+JSON.stringify(V)),l(V)}))}catch(y){this.debug&&console.log("ERR << "+JSON.stringify(y)),l(y)}}},r.Method=Pe,r.Property=Zt,r.RequestManager=_e,r.SHHFilter=class extends oi{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(y){return cu(y)})),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=si,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 y=[];let k;if(i instanceof Array)k=Promise.all(i.map((B=>{const V=s();try{const se=n(B);y.push(se),this.responseCallbacks.set(se.id,V)}catch(se){V.reject(se)}return V})));else{const B=s();try{const V=n(i);y.push(V),this.responseCallbacks.set(V.id,B)}catch(V){B.reject(V)}k=B}k.then((B=>l(null,B)),(B=>l(B))),this.connection.then((B=>{y.forEach((V=>{const se=JSON.stringify(V);this.debug&&console.log("SEND >> "+se),B.send(se)}))}),(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((y=>{let k=y;this.lastChunk&&(k=this.lastChunk+k);let B=null;try{B=JSON.parse(k)}catch{return this.lastChunk=k,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,y=this.responseCallbacks.get(l);if(!y)return void console.error("Error: Received a response for an unknown request",i);this.responseCallbacks.delete(l),i.error!==void 0&&i.error!==null?y.reject(Object.assign(new Error(i.error.message||i.error),i.error)):"result"in i&&y.resolve(i)}else this.notificationCallbacks.forEach((l=>l(null,i)))}timeout(i){this.connection&&this.connection.isPending||(this.connection=s());const l=i||new Error("Connection timeout");this.responseCallbacks.forEach((y=>y.reject(l))),this.responseCallbacks.clear(),this.isDisposed||setTimeout((()=>this.connect()),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then((y=>y.close())).catch((y=>{this.debug&&console.error(y)})),this.connection&&this.connection.isPending||(this.connection=s()),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=y=>{const k=new Error("Error in web socket");k.data=y,this.timeout(k)},l.onclose=y=>{this.timeout(new Error(`Connection closed (${y&&y.reason||"Unknown reason"})`))},l.onmessage=y=>{const k=typeof y.data=="string"?y.data:"";this.debug&&console.log("RECV << "+y.data),this.parseResponse(k).forEach((B=>{B instanceof Array?B.forEach((V=>this.processMessage(V))):this.processMessage(B)}))}}},r.bytesToHex=R,r.bytesToUtf8String=N,r.concatBytes=le,r.default=_e,r.extractDisplayName=Re,r.extractTypeName=we,r.fromAscii=function(i,l=0){let y="";for(let k=0;k<i.length;k++){const B=i.charCodeAt(k).toString(16);y+=B.length<2?"0"+B:B}return"0x"+y.padEnd(l,"0")},r.fromDecimal=ve,r.fromTwosComplement=or,r.fromWei=function(i,l){const y=Me(i).dividedBy(Be(l));return zt(i)?y:y.toString(10)},r.getAddress=Vt,r.getValueOfUnit=Be,r.hexToBytes=H,r.inputAddressFormatter=Wt,r.inputBlockNumberFormatter=Ct,r.inputCallFormatter=ei,r.inputDefaultBlockNumberFormatter=yn,r.inputFilterOptions=Wl,r.inputPostFormatter=function(i){return i?(i.ttl=ve(i.ttl),i.workToProve=ve(i.workToProve),i.priority=ve(i.priority),sr(i.topics)||(i.topics=i.topics?[i.topics]:[]),i.topics=i.topics.map((function(l){return l.indexOf("0x")===0?l:"0x"+R(L(l))})),i):null},r.inputTransactionFormatter=ti,r.inputTransactionId=Hn,r.isAddress=Xt,r.isArray=sr,r.isBigNumber=zt,r.isBloom=function(i){return!!/^(0x)?[0-9a-f]{512}$/i.test(i)&&!!/^(0x)?[0-9a-f]{512}$/i.test(i)},r.isBoolean=Ca,r.isChecksumAddress=qn,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=Gt,r.isPredefinedBlockNumber=zl,r.isStrictAddress=Or,r.isString=Pt,r.isTopic=function(i){return!!/^(0x)?[0-9a-f]{64}$/i.test(i)&&!!/^(0x)?[0-9a-f]{64}$/i.test(i)},r.isValidResponse=Vl,r.outputBigNumberFormatter=Xs,r.outputBlockFormatter=xa,r.outputLogFormatter=ho,r.outputPostFormatter=function(i){return i?(i.expiry=ye(i.expiry),i.sent=ye(i.sent),i.ttl=ye(i.ttl),i.workProved=ye(i.workProved),i.topics||(i.topics=[]),i.topics=i.topics.map((function(l){return ce(l)})),i):null},r.outputSyncingFormatter=Zl,r.outputTransactionFormatter=Ea,r.outputTransactionReceiptFormatter=Gl,r.padLeft=Y,r.padRight=function(i,l,y){return i+new Array(l-i.length+1).join(y||"0")},r.sha3=j,r.signedIsNegative=Ht,r.stringToUtf8Bytes=L,r.toAddress=Yr,r.toArray=vt,r.toAscii=ce,r.toBatchPayload=function(i){return i.map((function(l){return Js(l.method,l.params)}))},r.toBigNumber=Me,r.toBoolean=fe,r.toChecksumAddress=gr,r.toData=Ue,r.toDecimal=ye,r.toHex=Ae,r.toJsonRpcRequest=Js,r.toNullDecimal=Ee,r.toString=Ge,r.toStringData=he,r.toTwosComplement=nt,r.toWei=function(i,l){const y=Me(i).times(Be(l));return zt(i)?y:y.toString(10)},r.transformToFullName=ie,Object.defineProperty(r,"__esModule",{value:!0})}))})(Ba,Ba.exports)),Ba.exports}var ns={},Hu;function Cg(){if(Hu)return ns;Hu=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.SignatureValidator=t;const e=Os();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 ns}var Cr={},pi={},gi={},wn={},$r={},xt={},Vu;function El(){if(Vu)return xt;Vu=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.output=xt.exists=xt.hash=xt.bytes=xt.bool=xt.number=xt.isBytes=void 0;function e(f){if(!Number.isSafeInteger(f)||f<0)throw new Error(`positive integer expected, not ${f}`)}xt.number=e;function t(f){if(typeof f!="boolean")throw new Error(`boolean expected, not ${f}`)}xt.bool=t;function r(f){return f instanceof Uint8Array||f!=null&&typeof f=="object"&&f.constructor.name==="Uint8Array"}xt.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}`)}xt.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)}xt.hash=a;function o(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")}xt.exists=o;function s(f,h){n(f);const m=h.outputLen;if(f.length<m)throw new Error(`digestInto() expects output buffer of length at least ${m}`)}xt.output=s;const d={number:e,bool:t,bytes:n,hash:a,exists:o,output:s};return xt.default=d,xt}var yi={},ka={},zu;function Eg(){return zu||(zu=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.crypto=void 0,ka.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),ka}var Gu;function oo(){return Gu||(Gu=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=Eg(),r=El();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 o=J=>new Uint32Array(J.buffer,J.byteOffset,Math.floor(J.byteLength/4));e.u32=o;const s=J=>new DataView(J.buffer,J.byteOffset,J.byteLength);e.createView=s;const d=(J,L)=>J<<32-L|J>>>L;e.rotr=d;const f=(J,L)=>J<<L|J>>>32-L>>>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 m(J){for(let L=0;L<J.length;L++)J[L]=(0,e.byteSwap)(J[L])}e.byteSwap32=m;const p=Array.from({length:256},(J,L)=>L.toString(16).padStart(2,"0"));function v(J){(0,r.bytes)(J);let L="";for(let N=0;N<J.length;N++)L+=p[J[N]];return L}e.bytesToHex=v;const _={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function A(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 g(J){if(typeof J!="string")throw new Error("hex string expected, got "+typeof J);const L=J.length,N=L/2;if(L%2)throw new Error("padded hex string expected, got unpadded hex of length "+L);const Z=new Uint8Array(N);for(let P=0,F=0;P<N;P++,F+=2){const H=A(J.charCodeAt(F)),R=A(J.charCodeAt(F+1));if(H===void 0||R===void 0){const j=J[F]+J[F+1];throw new Error('hex string expected, got non-hex character "'+j+'" at index '+F)}Z[P]=H*16+R}return Z}e.hexToBytes=g;const T=async()=>{};e.nextTick=T;async function z(J,L,N){let Z=Date.now();for(let P=0;P<J;P++){N(P);const F=Date.now()-Z;F>=0&&F<L||(await(0,e.nextTick)(),Z+=F)}}e.asyncLoop=z;function b(J){if(typeof J!="string")throw new Error(`utf8ToBytes expected string, got ${typeof J}`);return new Uint8Array(new TextEncoder().encode(J))}e.utf8ToBytes=b;function I(J){return typeof J=="string"&&(J=b(J)),(0,r.bytes)(J),J}e.toBytes=I;function w(...J){let L=0;for(let Z=0;Z<J.length;Z++){const P=J[Z];(0,r.bytes)(P),L+=P.length}const N=new Uint8Array(L);for(let Z=0,P=0;Z<J.length;Z++){const F=J[Z];N.set(F,P),P+=F.length}return N}e.concatBytes=w;class K{clone(){return this._cloneInto()}}e.Hash=K;const U={}.toString;function x(J,L){if(L!==void 0&&U.call(L)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(J,L)}e.checkOpts=x;function q(J){const L=Z=>J().update(I(Z)).digest(),N=J();return L.outputLen=N.outputLen,L.blockLen=N.blockLen,L.create=()=>J(),L}e.wrapConstructor=q;function Q(J){const L=(Z,P)=>J(P).update(I(Z)).digest(),N=J({});return L.outputLen=N.outputLen,L.blockLen=N.blockLen,L.create=Z=>J(Z),L}e.wrapConstructorWithOpts=Q;function ee(J){const L=(Z,P)=>J(P).update(I(Z)).digest(),N=J({});return L.outputLen=N.outputLen,L.blockLen=N.blockLen,L.create=Z=>J(Z),L}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})(yi)),yi}var Wu;function xg(){if(Wu)return $r;Wu=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.HashMD=$r.Maj=$r.Chi=void 0;const e=El(),t=oo();function r(s,d,f,h){if(typeof s.setBigUint64=="function")return s.setBigUint64(d,f,h);const m=BigInt(32),p=BigInt(4294967295),v=Number(f>>m&p),_=Number(f&p),A=h?4:0,g=h?0:4;s.setUint32(d+A,v,h),s.setUint32(d+g,_,h)}const n=(s,d,f)=>s&d^~s&f;$r.Chi=n;const a=(s,d,f)=>s&d^s&f^d&f;$r.Maj=a;class o extends t.Hash{constructor(d,f,h,m){super(),this.blockLen=d,this.outputLen=f,this.padOffset=h,this.isLE=m,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(d),this.view=(0,t.createView)(this.buffer)}update(d){(0,e.exists)(this);const{view:f,buffer:h,blockLen:m}=this;d=(0,t.toBytes)(d);const p=d.length;for(let v=0;v<p;){const _=Math.min(m-this.pos,p-v);if(_===m){const A=(0,t.createView)(d);for(;m<=p-v;v+=m)this.process(A,v);continue}h.set(d.subarray(v,v+_),this.pos),this.pos+=_,v+=_,this.pos===m&&(this.process(f,0),this.pos=0)}return this.length+=d.length,this.roundClean(),this}digestInto(d){(0,e.exists)(this),(0,e.output)(d,this),this.finished=!0;const{buffer:f,view:h,blockLen:m,isLE:p}=this;let{pos:v}=this;f[v++]=128,this.buffer.subarray(v).fill(0),this.padOffset>m-v&&(this.process(h,0),v=0);for(let z=v;z<m;z++)f[z]=0;r(h,m-8,BigInt(this.length*8),p),this.process(h,0);const _=(0,t.createView)(d),A=this.outputLen;if(A%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const g=A/4,T=this.get();if(g>T.length)throw new Error("_sha2: outputLen bigger than state");for(let z=0;z<g;z++)_.setUint32(4*z,T[z],p)}digest(){const{buffer:d,outputLen:f}=this;this.digestInto(d);const h=d.slice(0,f);return this.destroy(),h}_cloneInto(d){d||(d=new this.constructor),d.set(...this.get());const{blockLen:f,buffer:h,length:m,finished:p,destroyed:v,pos:_}=this;return d.length=m,d.pos=_,d.finished=p,d.destroyed=v,m%f&&d.buffer.set(h),d}}return $r.HashMD=o,$r}var Zu;function Sg(){if(Zu)return wn;Zu=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.sha224=wn.sha256=void 0;const e=xg(),t=oo(),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 o 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:m,D:p,E:v,F:_,G:A,H:g}=this;return[f,h,m,p,v,_,A,g]}set(f,h,m,p,v,_,A,g){this.A=f|0,this.B=h|0,this.C=m|0,this.D=p|0,this.E=v|0,this.F=_|0,this.G=A|0,this.H=g|0}process(f,h){for(let b=0;b<16;b++,h+=4)a[b]=f.getUint32(h,!1);for(let b=16;b<64;b++){const I=a[b-15],w=a[b-2],K=(0,t.rotr)(I,7)^(0,t.rotr)(I,18)^I>>>3,U=(0,t.rotr)(w,17)^(0,t.rotr)(w,19)^w>>>10;a[b]=U+a[b-7]+K+a[b-16]|0}let{A:m,B:p,C:v,D:_,E:A,F:g,G:T,H:z}=this;for(let b=0;b<64;b++){const I=(0,t.rotr)(A,6)^(0,t.rotr)(A,11)^(0,t.rotr)(A,25),w=z+I+(0,e.Chi)(A,g,T)+r[b]+a[b]|0,U=((0,t.rotr)(m,2)^(0,t.rotr)(m,13)^(0,t.rotr)(m,22))+(0,e.Maj)(m,p,v)|0;z=T,T=g,g=A,A=_+w|0,_=v,v=p,p=m,m=w+U|0}m=m+this.A|0,p=p+this.B|0,v=v+this.C|0,_=_+this.D|0,A=A+this.E|0,g=g+this.F|0,T=T+this.G|0,z=z+this.H|0,this.set(m,p,v,_,A,g,T,z)}roundClean(){a.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class s extends o{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 wn.sha256=(0,t.wrapConstructor)(()=>new o),wn.sha224=(0,t.wrapConstructor)(()=>new s),wn}var Ia={},vi={},Ku;function Tg(){return Ku||(Ku=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=El(),r=oo();class n extends r.Hash{constructor(s,d){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(s);const f=(0,r.toBytes)(d);if(this.iHash=s.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const h=this.blockLen,m=new Uint8Array(h);m.set(f.length>h?s.create().update(f).digest():f);for(let p=0;p<m.length;p++)m[p]^=54;this.iHash.update(m),this.oHash=s.create();for(let p=0;p<m.length;p++)m[p]^=106;this.oHash.update(m),m.fill(0)}update(s){return(0,t.exists)(this),this.iHash.update(s),this}digestInto(s){(0,t.exists)(this),(0,t.bytes)(s,this.outputLen),this.finished=!0,this.iHash.digestInto(s),this.oHash.update(s),this.oHash.digestInto(s),this.destroy()}digest(){const s=new Uint8Array(this.oHash.outputLen);return this.digestInto(s),s}_cloneInto(s){s||(s=Object.create(Object.getPrototypeOf(this),{}));const{oHash:d,iHash:f,finished:h,destroyed:m,blockLen:p,outputLen:v}=this;return s=s,s.finished=h,s.destroyed=m,s.blockLen=p,s.outputLen=v,s.oHash=d._cloneInto(s.oHash),s.iHash=f._cloneInto(s.iHash),s}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=n;const a=(o,s,d)=>new n(o,s).update(d).digest();e.hmac=a,e.hmac.create=(o,s)=>new n(o,s)})(vi)),vi}var bi={},Ra={},ot={},rt={},Yu;function ga(){if(Yu)return rt;Yu=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.bitMask=void 0,rt.isBytes=n,rt.abytes=a,rt.bytesToHex=s,rt.numberToHexUnpadded=d,rt.hexToNumber=f,rt.hexToBytes=p,rt.bytesToNumberBE=v,rt.bytesToNumberLE=_,rt.numberToBytesBE=A,rt.numberToBytesLE=g,rt.numberToVarBytesBE=T,rt.ensureBytes=z,rt.concatBytes=b,rt.equalBytes=I,rt.utf8ToBytes=w,rt.bitLen=K,rt.bitGet=U,rt.bitSet=x,rt.createHmacDrbg=ae,rt.validateObject=L;/*! 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 o=Array.from({length:256},(N,Z)=>Z.toString(16).padStart(2,"0"));function s(N){a(N);let Z="";for(let P=0;P<N.length;P++)Z+=o[N[P]];return Z}function d(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 m(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 p(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 F=new Uint8Array(P);for(let H=0,R=0;H<P;H++,R+=2){const j=m(N.charCodeAt(R)),G=m(N.charCodeAt(R+1));if(j===void 0||G===void 0){const Y=N[R]+N[R+1];throw new Error('hex string expected, got non-hex character "'+Y+'" at index '+R)}F[H]=j*16+G}return F}function v(N){return f(s(N))}function _(N){return a(N),f(s(Uint8Array.from(N).reverse()))}function A(N,Z){return p(N.toString(16).padStart(Z*2,"0"))}function g(N,Z){return A(N,Z).reverse()}function T(N){return p(d(N))}function z(N,Z,P){let F;if(typeof Z=="string")try{F=p(Z)}catch(R){throw new Error(`${N} must be valid hex string, got "${Z}". Cause: ${R}`)}else if(n(Z))F=Uint8Array.from(Z);else throw new Error(`${N} must be hex string or Uint8Array`);const H=F.length;if(typeof P=="number"&&H!==P)throw new Error(`${N} expected ${P} bytes, got ${H}`);return F}function b(...N){let Z=0;for(let F=0;F<N.length;F++){const H=N[F];a(H),Z+=H.length}const P=new Uint8Array(Z);for(let F=0,H=0;F<N.length;F++){const R=N[F];P.set(R,H),H+=R.length}return P}function I(N,Z){if(N.length!==Z.length)return!1;let P=0;for(let F=0;F<N.length;F++)P|=N[F]^Z[F];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 U(N,Z){return N>>BigInt(Z)&t}function x(N,Z,P){return N|(P?t:e)<<BigInt(Z)}const q=N=>(r<<BigInt(N-1))-t;rt.bitMask=q;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 F=Q(N),H=Q(N),R=0;const j=()=>{F.fill(1),H.fill(0),R=0},G=(...le)=>P(H,F,...le),Y=(le=Q())=>{H=G(ee([0]),le),F=G(),le.length!==0&&(H=G(ee([1]),le),F=G())},ce=()=>{if(R++>=1e3)throw new Error("drbg: tried 1000 values");let le=0;const de=[];for(;le<Z;){F=G();const Re=F.slice();de.push(Re),le+=F.length}return b(...de)};return(le,de)=>{j(),Y(le);let Re;for(;!(Re=de(ce()));)Y();return j(),Re}}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 L(N,Z,P={}){const F=(H,R,j)=>{const G=J[R];if(typeof G!="function")throw new Error(`Invalid validator "${R}", expected function`);const Y=N[H];if(!(j&&Y===void 0)&&!G(Y,N))throw new Error(`Invalid param ${String(H)}=${Y} (${typeof Y}), expected ${R}`)};for(const[H,R]of Object.entries(Z))F(H,R,!1);for(const[H,R]of Object.entries(P))F(H,R,!0);return N}return rt}var Qu;function js(){if(Qu)return ot;Qu=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.isNegativeLE=void 0,ot.mod=f,ot.pow=h,ot.pow2=m,ot.invert=p,ot.tonelliShanks=v,ot.FpSqrt=_,ot.validateField=T,ot.FpPow=z,ot.FpInvertBatch=b,ot.FpDiv=I,ot.FpIsSquare=w,ot.nLength=K,ot.Field=U,ot.FpSqrtOdd=x,ot.FpSqrtEven=q,ot.hashToPrivateScalar=Q,ot.getFieldBytesLength=ee,ot.getMinHashLength=ae,ot.mapHashToField=J;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=ga(),t=BigInt(0),r=BigInt(1),n=BigInt(2),a=BigInt(3),o=BigInt(4),s=BigInt(5),d=BigInt(8);BigInt(9),BigInt(16);function f(L,N){const Z=L%N;return Z>=t?Z:N+Z}function h(L,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*L%Z),L=L*L%Z,N>>=r;return P}function m(L,N,Z){let P=L;for(;N-- >t;)P*=P,P%=Z;return P}function p(L,N){if(L===t||N<=t)throw new Error(`invert: expected positive integers, got n=${L} mod=${N}`);let Z=f(L,N),P=N,F=t,H=r;for(;Z!==t;){const j=P/Z,G=P%Z,Y=F-H*j;P=Z,Z=G,F=H,H=Y}if(P!==r)throw new Error("invert: does not exist");return f(F,N)}function v(L){const N=(L-r)/n;let Z,P,F;for(Z=L-r,P=0;Z%n===t;Z/=n,P++);for(F=n;F<L&&h(F,N,L)!==L-r;F++);if(P===1){const R=(L+r)/o;return function(G,Y){const ce=G.pow(Y,R);if(!G.eql(G.sqr(ce),Y))throw new Error("Cannot find square root");return ce}}const H=(Z+r)/n;return function(j,G){if(j.pow(G,N)===j.neg(j.ONE))throw new Error("Cannot find square root");let Y=P,ce=j.pow(j.mul(j.ONE,F),Z),ie=j.pow(G,H),le=j.pow(G,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 Re=j.pow(ce,r<<BigInt(Y-de-1));ce=j.sqr(Re),ie=j.mul(ie,Re),le=j.mul(le,ce),Y=de}return ie}}function _(L){if(L%o===a){const N=(L+r)/o;return function(P,F){const H=P.pow(F,N);if(!P.eql(P.sqr(H),F))throw new Error("Cannot find square root");return H}}if(L%d===s){const N=(L-s)/d;return function(P,F){const H=P.mul(F,n),R=P.pow(H,N),j=P.mul(F,R),G=P.mul(P.mul(j,n),R),Y=P.mul(j,P.sub(G,P.ONE));if(!P.eql(P.sqr(Y),F))throw new Error("Cannot find square root");return Y}}return v(L)}const A=(L,N)=>(f(L,N)&r)===r;ot.isNegativeLE=A;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function T(L){const N={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},Z=g.reduce((P,F)=>(P[F]="function",P),N);return(0,e.validateObject)(L,Z)}function z(L,N,Z){if(Z<t)throw new Error("Expected power > 0");if(Z===t)return L.ONE;if(Z===r)return N;let P=L.ONE,F=N;for(;Z>t;)Z&r&&(P=L.mul(P,F)),F=L.sqr(F),Z>>=r;return P}function b(L,N){const Z=new Array(N.length),P=N.reduce((H,R,j)=>L.is0(R)?H:(Z[j]=H,L.mul(H,R)),L.ONE),F=L.inv(P);return N.reduceRight((H,R,j)=>L.is0(R)?H:(Z[j]=L.mul(H,Z[j]),L.mul(H,R)),F),Z}function I(L,N,Z){return L.mul(N,typeof Z=="bigint"?p(Z,L.ORDER):L.inv(Z))}function w(L){const N=(L.ORDER-r)/n;return Z=>{const P=L.pow(Z,N);return L.eql(P,L.ZERO)||L.eql(P,L.ONE)}}function K(L,N){const Z=N!==void 0?N:L.toString(2).length,P=Math.ceil(Z/8);return{nBitLength:Z,nByteLength:P}}function U(L,N,Z=!1,P={}){if(L<=t)throw new Error(`Expected Field ORDER > 0, got ${L}`);const{nBitLength:F,nByteLength:H}=K(L,N);if(H>2048)throw new Error("Field lengths over 2048 bytes are not supported");const R=_(L),j=Object.freeze({ORDER:L,BITS:F,BYTES:H,MASK:(0,e.bitMask)(F),ZERO:t,ONE:r,create:G=>f(G,L),isValid:G=>{if(typeof G!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof G}`);return t<=G&&G<L},is0:G=>G===t,isOdd:G=>(G&r)===r,neg:G=>f(-G,L),eql:(G,Y)=>G===Y,sqr:G=>f(G*G,L),add:(G,Y)=>f(G+Y,L),sub:(G,Y)=>f(G-Y,L),mul:(G,Y)=>f(G*Y,L),pow:(G,Y)=>z(j,G,Y),div:(G,Y)=>f(G*p(Y,L),L),sqrN:G=>G*G,addN:(G,Y)=>G+Y,subN:(G,Y)=>G-Y,mulN:(G,Y)=>G*Y,inv:G=>p(G,L),sqrt:P.sqrt||(G=>R(j,G)),invertBatch:G=>b(j,G),cmov:(G,Y,ce)=>ce?Y:G,toBytes:G=>Z?(0,e.numberToBytesLE)(G,H):(0,e.numberToBytesBE)(G,H),fromBytes:G=>{if(G.length!==H)throw new Error(`Fp.fromBytes: expected ${H}, got ${G.length}`);return Z?(0,e.bytesToNumberLE)(G):(0,e.bytesToNumberBE)(G)}});return Object.freeze(j)}function x(L,N){if(!L.isOdd)throw new Error("Field doesn't have isOdd");const Z=L.sqrt(N);return L.isOdd(Z)?Z:L.neg(Z)}function q(L,N){if(!L.isOdd)throw new Error("Field doesn't have isOdd");const Z=L.sqrt(N);return L.isOdd(Z)?L.neg(Z):Z}function Q(L,N,Z=!1){L=(0,e.ensureBytes)("privateHash",L);const P=L.length,F=K(N).nByteLength+8;if(F<24||P<F||P>1024)throw new Error(`hashToPrivateScalar: expected ${F}-1024 bytes of input, got ${P}`);const H=Z?(0,e.bytesToNumberLE)(L):(0,e.bytesToNumberBE)(L);return f(H,N-r)+r}function ee(L){if(typeof L!="bigint")throw new Error("field order must be bigint");const N=L.toString(2).length;return Math.ceil(N/8)}function ae(L){const N=ee(L);return N+Math.ceil(N/2)}function J(L,N,Z=!1){const P=L.length,F=ee(N),H=ae(N);if(P<16||P<H||P>1024)throw new Error(`expected ${H}-1024 bytes of input, got ${P}`);const R=Z?(0,e.bytesToNumberBE)(L):(0,e.bytesToNumberLE)(L),j=f(R,N-r)+r;return Z?(0,e.numberToBytesLE)(j,F):(0,e.numberToBytesBE)(j,F)}return ot}var Ju;function Ag(){if(Ju)return Ra;Ju=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.wNAF=a,Ra.validateBasic=o;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=js(),t=ga(),r=BigInt(0),n=BigInt(1);function a(s,d){const f=(m,p)=>{const v=p.negate();return m?v:p},h=m=>{const p=Math.ceil(d/m)+1,v=2**(m-1);return{windows:p,windowSize:v}};return{constTimeNegate:f,unsafeLadder(m,p){let v=s.ZERO,_=m;for(;p>r;)p&n&&(v=v.add(_)),_=_.double(),p>>=n;return v},precomputeWindow(m,p){const{windows:v,windowSize:_}=h(p),A=[];let g=m,T=g;for(let z=0;z<v;z++){T=g,A.push(T);for(let b=1;b<_;b++)T=T.add(g),A.push(T);g=T.double()}return A},wNAF(m,p,v){const{windows:_,windowSize:A}=h(m);let g=s.ZERO,T=s.BASE;const z=BigInt(2**m-1),b=2**m,I=BigInt(m);for(let w=0;w<_;w++){const K=w*A;let U=Number(v&z);v>>=I,U>A&&(U-=b,v+=n);const x=K,q=K+Math.abs(U)-1,Q=w%2!==0,ee=U<0;U===0?T=T.add(f(Q,p[x])):g=g.add(f(ee,p[q]))}return{p:g,f:T}},wNAFCached(m,p,v,_){const A=m._WINDOW_SIZE||1;let g=p.get(m);return g||(g=this.precomputeWindow(m,A),A!==1&&p.set(m,_(g))),this.wNAF(A,g,v)}}}function o(s){return(0,e.validateField)(s.Fp),(0,t.validateObject)(s,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,e.nLength)(s.n,s.nBitLength),...s,p:s.Fp.ORDER})}return Ra}var Xu;function wf(){return Xu||(Xu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DER=void 0,e.weierstrassPoints=_,e.weierstrass=g,e.SWUFpSqrtRatio=T,e.mapToCurveSimpleSWU=z;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=Ag(),r=js(),n=ga(),a=ga();function o(b){const I=(0,t.validateBasic)(b);n.validateObject(I,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:w,Fp:K,a:U}=I;if(w){if(!K.eql(U,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({...I})}const{bytesToNumberBE:s,hexToBytes:d}=n;e.DER={Err:class extends Error{constructor(I=""){super(I)}},_parseInt(b){const{Err:I}=e.DER;if(b.length<2||b[0]!==2)throw new I("Invalid signature integer tag");const w=b[1],K=b.subarray(2,w+2);if(!w||K.length!==w)throw new I("Invalid signature integer: wrong length");if(K[0]&128)throw new I("Invalid signature integer: negative");if(K[0]===0&&!(K[1]&128))throw new I("Invalid signature integer: unnecessary leading zero");return{d:s(K),l:b.subarray(w+2)}},toSig(b){const{Err:I}=e.DER,w=typeof b=="string"?d(b):b;n.abytes(w);let K=w.length;if(K<2||w[0]!=48)throw new I("Invalid signature tag");if(w[1]!==K-2)throw new I("Invalid signature: incorrect length");const{d:U,l:x}=e.DER._parseInt(w.subarray(2)),{d:q,l:Q}=e.DER._parseInt(x);if(Q.length)throw new I("Invalid signature: left bytes after parsing");return{r:U,s:q}},hexFromSig(b){const I=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=I(w(b.s)),U=I(w(b.r)),x=K.length/2,q=U.length/2,Q=w(x),ee=w(q);return`30${w(q+x+4)}02${ee}${U}02${Q}${K}`}};const f=BigInt(0),h=BigInt(1),m=BigInt(2),p=BigInt(3),v=BigInt(4);function _(b){const I=o(b),{Fp:w}=I,K=I.toBytes||((P,F,H)=>{const R=F.toAffine();return n.concatBytes(Uint8Array.from([4]),w.toBytes(R.x),w.toBytes(R.y))}),U=I.fromBytes||(P=>{const F=P.subarray(1),H=w.fromBytes(F.subarray(0,w.BYTES)),R=w.fromBytes(F.subarray(w.BYTES,2*w.BYTES));return{x:H,y:R}});function x(P){const{a:F,b:H}=I,R=w.sqr(P),j=w.mul(R,P);return w.add(w.add(j,w.mul(P,F)),H)}if(!w.eql(w.sqr(I.Gy),x(I.Gx)))throw new Error("bad generator point: equation left != right");function q(P){return typeof P=="bigint"&&f<P&&P<I.n}function Q(P){if(!q(P))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function ee(P){const{allowedPrivateKeyLengths:F,nByteLength:H,wrapPrivateKey:R,n:j}=I;if(F&&typeof P!="bigint"){if(n.isBytes(P)&&(P=n.bytesToHex(P)),typeof P!="string"||!F.includes(P.length))throw new Error("Invalid key");P=P.padStart(H*2,"0")}let G;try{G=typeof P=="bigint"?P:n.bytesToNumberBE((0,a.ensureBytes)("private key",P,H))}catch{throw new Error(`private key must be ${H} bytes, hex or bigint, not ${typeof P}`)}return R&&(G=r.mod(G,j)),Q(G),G}const ae=new Map;function J(P){if(!(P instanceof L))throw new Error("ProjectivePoint expected")}class L{constructor(F,H,R){if(this.px=F,this.py=H,this.pz=R,F==null||!w.isValid(F))throw new Error("x required");if(H==null||!w.isValid(H))throw new Error("y required");if(R==null||!w.isValid(R))throw new Error("z required")}static fromAffine(F){const{x:H,y:R}=F||{};if(!F||!w.isValid(H)||!w.isValid(R))throw new Error("invalid affine point");if(F instanceof L)throw new Error("projective point not allowed");const j=G=>w.eql(G,w.ZERO);return j(H)&&j(R)?L.ZERO:new L(H,R,w.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(F){const H=w.invertBatch(F.map(R=>R.pz));return F.map((R,j)=>R.toAffine(H[j])).map(L.fromAffine)}static fromHex(F){const H=L.fromAffine(U((0,a.ensureBytes)("pointHex",F)));return H.assertValidity(),H}static fromPrivateKey(F){return L.BASE.multiply(ee(F))}_setWindowSize(F){this._WINDOW_SIZE=F,ae.delete(this)}assertValidity(){if(this.is0()){if(I.allowInfinityPoint&&!w.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:F,y:H}=this.toAffine();if(!w.isValid(F)||!w.isValid(H))throw new Error("bad point: x or y not FE");const R=w.sqr(H),j=x(F);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:F}=this.toAffine();if(w.isOdd)return!w.isOdd(F);throw new Error("Field doesn't support isOdd")}equals(F){J(F);const{px:H,py:R,pz:j}=this,{px:G,py:Y,pz:ce}=F,ie=w.eql(w.mul(H,ce),w.mul(G,j)),le=w.eql(w.mul(R,ce),w.mul(Y,j));return ie&&le}negate(){return new L(this.px,w.neg(this.py),this.pz)}double(){const{a:F,b:H}=I,R=w.mul(H,p),{px:j,py:G,pz:Y}=this;let ce=w.ZERO,ie=w.ZERO,le=w.ZERO,de=w.mul(j,j),Re=w.mul(G,G),we=w.mul(Y,Y),Ee=w.mul(j,G);return Ee=w.add(Ee,Ee),le=w.mul(j,Y),le=w.add(le,le),ce=w.mul(F,le),ie=w.mul(R,we),ie=w.add(ce,ie),ce=w.sub(Re,ie),ie=w.add(Re,ie),ie=w.mul(ce,ie),ce=w.mul(Ee,ce),le=w.mul(R,le),we=w.mul(F,we),Ee=w.sub(de,we),Ee=w.mul(F,Ee),Ee=w.add(Ee,le),le=w.add(de,de),de=w.add(le,de),de=w.add(de,we),de=w.mul(de,Ee),ie=w.add(ie,de),we=w.mul(G,Y),we=w.add(we,we),de=w.mul(we,Ee),ce=w.sub(ce,de),le=w.mul(we,Re),le=w.add(le,le),le=w.add(le,le),new L(ce,ie,le)}add(F){J(F);const{px:H,py:R,pz:j}=this,{px:G,py:Y,pz:ce}=F;let ie=w.ZERO,le=w.ZERO,de=w.ZERO;const Re=I.a,we=w.mul(I.b,p);let Ee=w.mul(H,G),ye=w.mul(R,Y),Ge=w.mul(j,ce),Ue=w.add(H,R),he=w.add(G,Y);Ue=w.mul(Ue,he),he=w.add(Ee,ye),Ue=w.sub(Ue,he),he=w.add(H,j);let fe=w.add(G,ce);return he=w.mul(he,fe),fe=w.add(Ee,Ge),he=w.sub(he,fe),fe=w.add(R,j),ie=w.add(Y,ce),fe=w.mul(fe,ie),ie=w.add(ye,Ge),fe=w.sub(fe,ie),de=w.mul(Re,he),ie=w.mul(we,Ge),de=w.add(ie,de),ie=w.sub(ye,de),de=w.add(ye,de),le=w.mul(ie,de),ye=w.add(Ee,Ee),ye=w.add(ye,Ee),Ge=w.mul(Re,Ge),he=w.mul(we,he),ye=w.add(ye,Ge),Ge=w.sub(Ee,Ge),Ge=w.mul(Re,Ge),he=w.add(he,Ge),Ee=w.mul(ye,he),le=w.add(le,Ee),Ee=w.mul(fe,he),ie=w.mul(Ue,ie),ie=w.sub(ie,Ee),Ee=w.mul(Ue,ye),de=w.mul(fe,de),de=w.add(de,Ee),new L(ie,le,de)}subtract(F){return this.add(F.negate())}is0(){return this.equals(L.ZERO)}wNAF(F){return Z.wNAFCached(this,ae,F,H=>{const R=w.invertBatch(H.map(j=>j.pz));return H.map((j,G)=>j.toAffine(R[G])).map(L.fromAffine)})}multiplyUnsafe(F){const H=L.ZERO;if(F===f)return H;if(Q(F),F===h)return this;const{endo:R}=I;if(!R)return Z.unsafeLadder(this,F);let{k1neg:j,k1:G,k2neg:Y,k2:ce}=R.splitScalar(F),ie=H,le=H,de=this;for(;G>f||ce>f;)G&h&&(ie=ie.add(de)),ce&h&&(le=le.add(de)),de=de.double(),G>>=h,ce>>=h;return j&&(ie=ie.negate()),Y&&(le=le.negate()),le=new L(w.mul(le.px,R.beta),le.py,le.pz),ie.add(le)}multiply(F){Q(F);let H=F,R,j;const{endo:G}=I;if(G){const{k1neg:Y,k1:ce,k2neg:ie,k2:le}=G.splitScalar(H);let{p:de,f:Re}=this.wNAF(ce),{p:we,f:Ee}=this.wNAF(le);de=Z.constTimeNegate(Y,de),we=Z.constTimeNegate(ie,we),we=new L(w.mul(we.px,G.beta),we.py,we.pz),R=de.add(we),j=Re.add(Ee)}else{const{p:Y,f:ce}=this.wNAF(H);R=Y,j=ce}return L.normalizeZ([R,j])[0]}multiplyAndAddUnsafe(F,H,R){const j=L.BASE,G=(ce,ie)=>ie===f||ie===h||!ce.equals(j)?ce.multiplyUnsafe(ie):ce.multiply(ie),Y=G(this,H).add(G(F,R));return Y.is0()?void 0:Y}toAffine(F){const{px:H,py:R,pz:j}=this,G=this.is0();F==null&&(F=G?w.ONE:w.inv(j));const Y=w.mul(H,F),ce=w.mul(R,F),ie=w.mul(j,F);if(G)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:F,isTorsionFree:H}=I;if(F===h)return!0;if(H)return H(L,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:F,clearCofactor:H}=I;return F===h?this:H?H(L,this):this.multiplyUnsafe(I.h)}toRawBytes(F=!0){return this.assertValidity(),K(L,this,F)}toHex(F=!0){return n.bytesToHex(this.toRawBytes(F))}}L.BASE=new L(I.Gx,I.Gy,w.ONE),L.ZERO=new L(w.ZERO,w.ONE,w.ZERO);const N=I.nBitLength,Z=(0,t.wNAF)(L,I.endo?Math.ceil(N/2):N);return{CURVE:I,ProjectivePoint:L,normPrivateKeyToScalar:ee,weierstrassEquation:x,isWithinCurveOrder:q}}function A(b){const I=(0,t.validateBasic)(b);return n.validateObject(I,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...I})}function g(b){const I=A(b),{Fp:w,n:K}=I,U=w.BYTES+1,x=2*w.BYTES+1;function q(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:L,isWithinCurveOrder:N}=_({...I,toBytes(he,fe,ve){const Ae=fe.toAffine(),Be=w.toBytes(Ae.x),Me=n.concatBytes;return ve?Me(Uint8Array.from([fe.hasEvenY()?2:3]),Be):Me(Uint8Array.from([4]),Be,w.toBytes(Ae.y))},fromBytes(he){const fe=he.length,ve=he[0],Ae=he.subarray(1);if(fe===U&&(ve===2||ve===3)){const Be=n.bytesToNumberBE(Ae);if(!q(Be))throw new Error("Point is not on curve");const Me=L(Be);let ht;try{ht=w.sqrt(Me)}catch(Vt){const or=Vt instanceof Error?": "+Vt.message:"";throw new Error("Point is not on curve"+or)}const nt=(ht&h)===h;return(ve&1)===1!==nt&&(ht=w.neg(ht)),{x:Be,y:ht}}else if(fe===x&&ve===4){const Be=w.fromBytes(Ae.subarray(0,w.BYTES)),Me=w.fromBytes(Ae.subarray(w.BYTES,2*w.BYTES));return{x:Be,y:Me}}else throw new Error(`Point of length ${fe} was invalid. Expected ${U} compressed bytes or ${x} uncompressed bytes`)}}),Z=he=>n.bytesToHex(n.numberToBytesBE(he,I.nByteLength));function P(he){const fe=K>>h;return he>fe}function F(he){return P(he)?Q(-he):he}const H=(he,fe,ve)=>n.bytesToNumberBE(he.slice(fe,ve));class R{constructor(fe,ve,Ae){this.r=fe,this.s=ve,this.recovery=Ae,this.assertValidity()}static fromCompact(fe){const ve=I.nByteLength;return fe=(0,a.ensureBytes)("compactSignature",fe,ve*2),new R(H(fe,0,ve),H(fe,ve,2*ve))}static fromDER(fe){const{r:ve,s:Ae}=e.DER.toSig((0,a.ensureBytes)("DER",fe));return new R(ve,Ae)}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:ve,s:Ae,recovery:Be}=this,Me=le((0,a.ensureBytes)("msgHash",fe));if(Be==null||![0,1,2,3].includes(Be))throw new Error("recovery id invalid");const ht=Be===2||Be===3?ve+I.n:ve;if(ht>=w.ORDER)throw new Error("recovery id 2 or 3 invalid");const nt=(Be&1)===0?"02":"03",Ht=ae.fromHex(nt+Z(ht)),Vt=ee(ht),or=Q(-Me*Vt),Or=Q(Ae*Vt),Xt=ae.BASE.multiplyAndAddUnsafe(Ht,or,Or);if(!Xt)throw new Error("point at infinify");return Xt.assertValidity(),Xt}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(I.n);return r.mapHashToField(I.randomBytes(he),I.n)},precompute(he=8,fe=ae.BASE){return fe._setWindowSize(he),fe.multiply(BigInt(3)),fe}};function G(he,fe=!0){return ae.fromPrivateKey(he).toRawBytes(fe)}function Y(he){const fe=n.isBytes(he),ve=typeof he=="string",Ae=(fe||ve)&&he.length;return fe?Ae===U||Ae===x:ve?Ae===2*U||Ae===2*x:he instanceof ae}function ce(he,fe,ve=!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(ve)}const ie=I.bits2int||function(he){const fe=n.bytesToNumberBE(he),ve=he.length*8-I.nBitLength;return ve>0?fe>>BigInt(ve):fe},le=I.bits2int_modN||function(he){return Q(ie(he))},de=n.bitMask(I.nBitLength);function Re(he){if(typeof he!="bigint")throw new Error("bigint expected");if(!(f<=he&&he<de))throw new Error(`bigint expected < 2^${I.nBitLength}`);return n.numberToBytesBE(he,I.nByteLength)}function we(he,fe,ve=Ee){if(["recovered","canonical"].some(gr=>gr in ve))throw new Error("sign() legacy options not supported");const{hash:Ae,randomBytes:Be}=I;let{lowS:Me,prehash:ht,extraEntropy:nt}=ve;Me==null&&(Me=!0),he=(0,a.ensureBytes)("msgHash",he),ht&&(he=(0,a.ensureBytes)("prehashed msgHash",Ae(he)));const Ht=le(he),Vt=J(fe),or=[Re(Vt),Re(Ht)];if(nt!=null&&nt!==!1){const gr=nt===!0?Be(w.BYTES):nt;or.push((0,a.ensureBytes)("extraEntropy",gr))}const Or=n.concatBytes(...or),Xt=Ht;function qn(gr){const vt=ie(gr);if(!N(vt))return;const Yr=ee(vt),zt=ae.BASE.multiply(vt).toAffine(),Pt=Q(zt.x);if(Pt===f)return;const Gt=Q(Yr*Q(Xt+Pt*Vt));if(Gt===f)return;let Ca=(zt.x===Pt?0:2)|Number(zt.y&h),sr=Gt;return Me&&P(Gt)&&(sr=F(Gt),Ca^=1),new R(Pt,sr,Ca)}return{seed:Or,k2sig:qn}}const Ee={lowS:I.lowS,prehash:!1},ye={lowS:I.lowS,prehash:!1};function Ge(he,fe,ve=Ee){const{seed:Ae,k2sig:Be}=we(he,fe,ve),Me=I;return n.createHmacDrbg(Me.hash.outputLen,Me.nByteLength,Me.hmac)(Ae,Be)}ae.BASE._setWindowSize(8);function Ue(he,fe,ve,Ae=ye){var zt;const Be=he;if(fe=(0,a.ensureBytes)("msgHash",fe),ve=(0,a.ensureBytes)("publicKey",ve),"strict"in Ae)throw new Error("options.strict was renamed to lowS");const{lowS:Me,prehash:ht}=Ae;let nt,Ht;try{if(typeof Be=="string"||n.isBytes(Be))try{nt=R.fromDER(Be)}catch(Pt){if(!(Pt instanceof e.DER.Err))throw Pt;nt=R.fromCompact(Be)}else if(typeof Be=="object"&&typeof Be.r=="bigint"&&typeof Be.s=="bigint"){const{r:Pt,s:Gt}=Be;nt=new R(Pt,Gt)}else throw new Error("PARSE");Ht=ae.fromHex(ve)}catch(Pt){if(Pt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Me&&nt.hasHighS())return!1;ht&&(fe=I.hash(fe));const{r:Vt,s:or}=nt,Or=le(fe),Xt=ee(or),qn=Q(Or*Xt),gr=Q(Vt*Xt),vt=(zt=ae.BASE.multiplyAndAddUnsafe(Ht,qn,gr))==null?void 0:zt.toAffine();return vt?Q(vt.x)===Vt:!1}return{CURVE:I,getPublicKey:G,getSharedSecret:ce,sign:Ge,verify:Ue,ProjectivePoint:ae,Signature:R,utils:j}}function T(b,I){const w=b.ORDER;let K=f;for(let P=w-h;P%m===f;P/=m)K+=h;const U=K,x=m<<U-h-h,q=x*m,Q=(w-h)/q,ee=(Q-h)/m,ae=q-h,J=x,L=b.pow(I,Q),N=b.pow(I,(Q+h)/m);let Z=(P,F)=>{let H=L,R=b.pow(F,ae),j=b.sqr(R);j=b.mul(j,F);let G=b.mul(P,j);G=b.pow(G,ee),G=b.mul(G,R),R=b.mul(G,F),j=b.mul(G,P);let Y=b.mul(j,R);G=b.pow(Y,J);let ce=b.eql(G,b.ONE);R=b.mul(j,N),G=b.mul(Y,H),j=b.cmov(R,j,ce),Y=b.cmov(G,Y,ce);for(let ie=U;ie>h;ie--){let le=ie-m;le=m<<le-h;let de=b.pow(Y,le);const Re=b.eql(de,b.ONE);R=b.mul(j,H),H=b.mul(H,H),de=b.mul(Y,H),j=b.cmov(R,j,Re),Y=b.cmov(de,Y,Re)}return{isValid:ce,value:j}};if(b.ORDER%v===p){const P=(b.ORDER-p)/v,F=b.sqrt(b.neg(I));Z=(H,R)=>{let j=b.sqr(R);const G=b.mul(H,R);j=b.mul(j,G);let Y=b.pow(j,P);Y=b.mul(Y,G);const ce=b.mul(Y,F),ie=b.mul(b.sqr(Y),R),le=b.eql(ie,H);let de=b.cmov(ce,Y,le);return{isValid:le,value:de}}}return Z}function z(b,I){if(r.validateField(b),!b.isValid(I.A)||!b.isValid(I.B)||!b.isValid(I.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const w=T(b,I.Z);if(!b.isOdd)throw new Error("Fp.isOdd is not implemented!");return K=>{let U,x,q,Q,ee,ae,J,L;U=b.sqr(K),U=b.mul(U,I.Z),x=b.sqr(U),x=b.add(x,U),q=b.add(x,b.ONE),q=b.mul(q,I.B),Q=b.cmov(I.Z,b.neg(x),!b.eql(x,b.ZERO)),Q=b.mul(Q,I.A),x=b.sqr(q),ae=b.sqr(Q),ee=b.mul(ae,I.A),x=b.add(x,ee),x=b.mul(x,q),ae=b.mul(ae,Q),ee=b.mul(ae,I.B),x=b.add(x,ee),J=b.mul(U,q);const{isValid:N,value:Z}=w(x,ae);L=b.mul(U,K),L=b.mul(L,Z),J=b.cmov(J,q,N),L=b.cmov(L,Z,N);const P=b.isOdd(K)===b.isOdd(L);return L=b.cmov(b.neg(L),L,P),J=b.div(J,Q),{x:J,y:L}}}})(bi)),bi}var e0;function kg(){if(e0)return Ia;e0=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.getHash=n,Ia.createCurve=a;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Tg(),t=oo(),r=wf();function n(o){return{hash:o,hmac:(s,...d)=>(0,e.hmac)(o,s,(0,t.concatBytes)(...d)),randomBytes:t.randomBytes}}function a(o,s){const d=f=>(0,r.weierstrass)({...o,...n(f)});return Object.freeze({...d(s),create:d})}return Ia}var tn={},t0;function Ig(){if(t0)return tn;t0=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.expand_message_xmd=s,tn.expand_message_xof=d,tn.hash_to_field=f,tn.isogenyMap=h,tn.createHasher=m;const e=js(),t=ga(),r=t.bytesToNumberBE;function n(p,v){if(p<0||p>=1<<8*v)throw new Error(`bad I2OSP call: value=${p} length=${v}`);const _=Array.from({length:v}).fill(0);for(let A=v-1;A>=0;A--)_[A]=p&255,p>>>=8;return new Uint8Array(_)}function a(p,v){const _=new Uint8Array(p.length);for(let A=0;A<p.length;A++)_[A]=p[A]^v[A];return _}function o(p){if(!Number.isSafeInteger(p))throw new Error("number expected")}function s(p,v,_,A){(0,t.abytes)(p),(0,t.abytes)(v),o(_),v.length>255&&(v=A((0,t.concatBytes)((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-"),v)));const{outputLen:g,blockLen:T}=A,z=Math.ceil(_/g);if(z>255)throw new Error("Invalid xmd length");const b=(0,t.concatBytes)(v,n(v.length,1)),I=n(0,T),w=n(_,2),K=new Array(z),U=A((0,t.concatBytes)(I,p,w,n(0,1),b));K[0]=A((0,t.concatBytes)(U,n(1,1),b));for(let q=1;q<=z;q++){const Q=[a(U,K[q-1]),n(q+1,1),b];K[q]=A((0,t.concatBytes)(...Q))}return(0,t.concatBytes)(...K).slice(0,_)}function d(p,v,_,A,g){if((0,t.abytes)(p),(0,t.abytes)(v),o(_),v.length>255){const T=Math.ceil(2*A/8);v=g.create({dkLen:T}).update((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(v).digest()}if(_>65535||v.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return g.create({dkLen:_}).update(p).update(n(_,2)).update(v).update(n(v.length,1)).digest()}function f(p,v,_){(0,t.validateObject)(_,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:A,k:g,m:T,hash:z,expand:b,DST:I}=_;(0,t.abytes)(p),o(v);const w=typeof I=="string"?(0,t.utf8ToBytes)(I):I,K=A.toString(2).length,U=Math.ceil((K+g)/8),x=v*T*U;let q;if(b==="xmd")q=s(p,w,x,z);else if(b==="xof")q=d(p,w,x,g,z);else if(b==="_internal_pass")q=p;else throw new Error('expand must be "xmd" or "xof"');const Q=new Array(v);for(let ee=0;ee<v;ee++){const ae=new Array(T);for(let J=0;J<T;J++){const L=U*(J+ee*T),N=q.subarray(L,L+U);ae[J]=(0,e.mod)(r(N),A)}Q[ee]=ae}return Q}function h(p,v){const _=v.map(A=>Array.from(A).reverse());return(A,g)=>{const[T,z,b,I]=_.map(w=>w.reduce((K,U)=>p.add(p.mul(K,A),U)));return A=p.div(T,z),g=p.mul(g,p.div(b,I)),{x:A,y:g}}}function m(p,v,_){if(typeof v!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(A,g){const T=f(A,2,{..._,DST:_.DST,...g}),z=p.fromAffine(v(T[0])),b=p.fromAffine(v(T[1])),I=z.add(b).clearCofactor();return I.assertValidity(),I},encodeToCurve(A,g){const T=f(A,1,{..._,DST:_.encodeDST,...g}),z=p.fromAffine(v(T[0])).clearCofactor();return z.assertValidity(),z},mapToCurve(A){if(!Array.isArray(A))throw new Error("mapToCurve: expected array of bigints");for(const T of A)if(typeof T!="bigint")throw new Error(`mapToCurve: expected array of bigints, got ${T} in array`);const g=p.fromAffine(v(A)).clearCofactor();return g.assertValidity(),g}}}return tn}var r0;function Rg(){return r0||(r0=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=Sg(),r=oo(),n=kg(),a=Ig(),o=js(),s=ga(),d=wf(),f=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),m=BigInt(1),p=BigInt(2),v=(R,j)=>(R+j/p)/j;function _(R){const j=f,G=BigInt(3),Y=BigInt(6),ce=BigInt(11),ie=BigInt(22),le=BigInt(23),de=BigInt(44),Re=BigInt(88),we=R*R*R%j,Ee=we*we*R%j,ye=(0,o.pow2)(Ee,G,j)*Ee%j,Ge=(0,o.pow2)(ye,G,j)*Ee%j,Ue=(0,o.pow2)(Ge,p,j)*we%j,he=(0,o.pow2)(Ue,ce,j)*Ue%j,fe=(0,o.pow2)(he,ie,j)*he%j,ve=(0,o.pow2)(fe,de,j)*fe%j,Ae=(0,o.pow2)(ve,Re,j)*ve%j,Be=(0,o.pow2)(Ae,de,j)*fe%j,Me=(0,o.pow2)(Be,G,j)*Ee%j,ht=(0,o.pow2)(Me,le,j)*he%j,nt=(0,o.pow2)(ht,Y,j)*we%j,Ht=(0,o.pow2)(nt,p,j);if(!A.eql(A.sqr(Ht),R))throw new Error("Cannot find square root");return Ht}const A=(0,o.Field)(f,void 0,void 0,{sqrt:_});e.secp256k1=(0,n.createCurve)({a:BigInt(0),b:BigInt(7),Fp:A,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:R=>{const j=h,G=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),Y=-m*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),ce=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ie=G,le=BigInt("0x100000000000000000000000000000000"),de=v(ie*R,j),Re=v(-Y*R,j);let we=(0,o.mod)(R-de*G-Re*ce,j),Ee=(0,o.mod)(-de*Y-Re*ie,j);const ye=we>le,Ge=Ee>le;if(ye&&(we=j-we),Ge&&(Ee=j-Ee),we>le||Ee>le)throw new Error("splitScalar: Endomorphism failed, k="+R);return{k1neg:ye,k1:we,k2neg:Ge,k2:Ee}}}},t.sha256);const g=BigInt(0),T=R=>typeof R=="bigint"&&g<R&&R<f,z=R=>typeof R=="bigint"&&g<R&&R<h,b={};function I(R,...j){let G=b[R];if(G===void 0){const Y=(0,t.sha256)(Uint8Array.from(R,ce=>ce.charCodeAt(0)));G=(0,s.concatBytes)(Y,Y),b[R]=G}return(0,t.sha256)((0,s.concatBytes)(G,...j))}const w=R=>R.toRawBytes(!0).slice(1),K=R=>(0,s.numberToBytesBE)(R,32),U=R=>(0,o.mod)(R,f),x=R=>(0,o.mod)(R,h),q=e.secp256k1.ProjectivePoint,Q=(R,j,G)=>q.BASE.multiplyAndAddUnsafe(R,j,G);function ee(R){let j=e.secp256k1.utils.normPrivateKeyToScalar(R),G=q.fromPrivateKey(j);return{scalar:G.hasEvenY()?j:x(-j),bytes:w(G)}}function ae(R){if(!T(R))throw new Error("bad x: need 0 < x < p");const j=U(R*R),G=U(j*R+BigInt(7));let Y=_(G);Y%p!==g&&(Y=U(-Y));const ce=new q(R,Y,m);return ce.assertValidity(),ce}function J(...R){return x((0,s.bytesToNumberBE)(I("BIP0340/challenge",...R)))}function L(R){return ee(R).bytes}function N(R,j,G=(0,r.randomBytes)(32)){const Y=(0,s.ensureBytes)("message",R),{bytes:ce,scalar:ie}=ee(j),le=(0,s.ensureBytes)("auxRand",G,32),de=K(ie^(0,s.bytesToNumberBE)(I("BIP0340/aux",le))),Re=I("BIP0340/nonce",de,ce,Y),we=x((0,s.bytesToNumberBE)(Re));if(we===g)throw new Error("sign failed: k is zero");const{bytes:Ee,scalar:ye}=ee(we),Ge=J(Ee,ce,Y),Ue=new Uint8Array(64);if(Ue.set(Ee,0),Ue.set(K(x(ye+Ge*ie)),32),!Z(Ue,Y,ce))throw new Error("sign: Invalid signature produced");return Ue}function Z(R,j,G){const Y=(0,s.ensureBytes)("signature",R,64),ce=(0,s.ensureBytes)("message",j),ie=(0,s.ensureBytes)("publicKey",G,32);try{const le=ae((0,s.bytesToNumberBE)(ie)),de=(0,s.bytesToNumberBE)(Y.subarray(0,32));if(!T(de))return!1;const Re=(0,s.bytesToNumberBE)(Y.subarray(32,64));if(!z(Re))return!1;const we=J(K(de),w(le),ce),Ee=Q(le,Re,x(-we));return!(!Ee||!Ee.hasEvenY()||Ee.toAffine().x!==de)}catch{return!1}}e.schnorr={getPublicKey:L,sign:N,verify:Z,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:ae,pointToBytes:w,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:I,mod:o.mod}};const P=(0,a.isogenyMap)(A,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(R=>R.map(j=>BigInt(j)))),F=(0,d.mapToCurveSimpleSWU)(A,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:A.create(BigInt("-11"))}),H=(0,a.createHasher)(e.secp256k1.ProjectivePoint,R=>{const{x:j,y:G}=F(A.create(R[0]));return P(j,G)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:A.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=H.hashToCurve,e.encodeToCurve=H.encodeToCurve})(gi)),gi}var n0;function Ng(){return n0||(n0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var t=Rg();Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return t.secp256k1}})})(pi)),pi}var a0;function Pg(){if(a0)return Cr;a0=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.recoverPublicKey=r,Cr.recoverAddressFromEthSignature=a,Cr.sign=o,Cr.createEthereumMessageHash=s,Cr.ethSign=d,Cr.computeAddress=f,Cr.createUnsafeIdentity=h;const e=Os(),t=Ng();function r(m,p){if(m.length!==65)throw new Error("Invalid signature length "+m.length);const v=m[64];if(v!==27&&v!==28)throw new Error(`Invalid signature recovery value: ${v}. Expected 27 or 28.`);const _=m.slice(0,m.length-1),A=v===28?1:0;return t.secp256k1.Signature.fromCompact(_).addRecoveryBit(A).recoverPublicKey(p).toRawBytes(!1).slice(1)}function n(m){if(m.length!==65)throw new Error("Invalid ethereum signature");const p=m[64];if(p===0||p===1){const v=new Uint8Array(m);return v[64]=p+27,v}return m}function a(m,p){if(typeof m=="string"){if((0,e.isHex)(m))return a((0,e.hexToBytes)(m),p);throw new Error("String signatures must be encoded in hex")}return f(r(n(m),s(p)))}function o(m,p){const v=t.secp256k1.sign(p,m),_=v.recovery===1?"1c":"1b";return"0x"+v.toCompactHex()+_}function s(m){const p=typeof m=="string"?(0,e.stringToUtf8Bytes)(m):m,v=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
|
|
96
|
+
`),(0,e.stringToUtf8Bytes)(String(p.length)),p);return(0,e.hexToBytes)((0,e.sha3)(v))}function d(m,p){return o(m,s(p))}function f(m){let p;if(m.length===65&&m[0]===4)p=m.slice(1);else if(m.length===64)p=m;else throw new Error(`Invalid public key length: ${m.length}. Expected 64 bytes, or 65 bytes with a leading 0x04 uncompressed prefix.`);return(0,e.getAddress)((0,e.sha3)(p).substring(24))}function h(){const m=t.secp256k1.utils.randomPrivateKey(),p=t.secp256k1.getPublicKey(m,!1).slice(1),v=f(p);return{privateKey:(0,e.bytesToHex)(m),publicKey:(0,e.bytesToHex)(p),address:v}}return Cr}var as={},o0;function Og(){if(o0)return as;o0=1,Object.defineProperty(as,"__esModule",{value:!0});const e=Os();class t{constructor(n,a=!0){en(this,"requestManager");en(this,"checkedBlocks");en(this,"saveBlocks");en(this,"savedBlocks");en(this,"requests");en(this,"blockTime");en(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 o=n/1e3,s=Date.now()/1e3;let d=this.firstTimestamp,f=this.blockTime;if((d===void 0||f===void 0)&&({firstTimestamp:d,blockTime:f}=await this.fillBlockTime()),o<d)return{block:1,timestamp:o};const h=this.savedBlocks.latest;if(o>=s||h&&o>h.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:o};this.checkedBlocks[o]=[];const m=await this.getBlockWrapper(Math.ceil((o-d)/f));return{block:await this.findBetter(o,m,a,f),timestamp:o}}async findBetter(n,a,o,s){let d=s??this.blockTime??(await this.fillBlockTime()).blockTime;if(await this.isBetterBlock(n,a,o))return a.number;const f=n-a.timestamp;let h=Math.ceil(f/d);h===0&&(h=f<0?-1:1);const m=await this.getBlockWrapper(this.getNextBlock(n,a.number,h));return d=Math.abs((a.timestamp-m.timestamp)/(a.number-m.number)),this.findBetter(n,m,o,d)}async isBetterBlock(n,a,o){const s=a.timestamp;if(o){if(s<n)return!1;const d=await this.getBlockWrapper(a.number-1);if(s>=n&&d.timestamp<n)return!0}else{if(s>=n)return!1;const d=await this.getBlockWrapper(a.number+1);if(s<n&&d.timestamp>=n)return!0}return!1}getNextBlock(n,a,o){const s=a+o;if(this.checkedBlocks[n].includes(s)){const d=o<0?o+1:o-1;if(d===0)throw new Error(`Could not find an unchecked block for timestamp ${n}`);return this.getNextBlock(n,a,d)}return this.checkedBlocks[n].push(s),s}async getBlockWrapper(n){if(!this.saveBlocks){const s=await this.requestManager.eth_getBlockByNumber(n,!1);return{number:(0,e.toBigNumber)(s.number).toNumber(),timestamp:(0,e.toBigNumber)(s.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:o}=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)(o).toNumber()},this.requests++,this.savedBlocks[a]}}return as.default=t,as}var os={},s0;function jg(){if(s0)return os;s0=1,Object.defineProperty(os,"__esModule",{value:!0}),os.moveMinutes=e;function e(t){const r=new Date;return r.setMinutes(r.getMinutes()+t),r}return os}var wi={},i0;function _f(){return i0||(i0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const t=t1();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}})})(wi)),wi}var c0;function Cf(){return c0||(c0=1,(function(e){var t=dr&&dr.__createBinding||(Object.create?(function(H,R,j,G){G===void 0&&(G=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(H,G,Y)}):(function(H,R,j,G){G===void 0&&(G=j),H[G]=R[j]})),r=dr&&dr.__setModuleDefault||(Object.create?(function(H,R){Object.defineProperty(H,"default",{enumerable:!0,value:R})}):function(H,R){H.default=R}),n=dr&&dr.__importStar||(function(){var H=function(R){return H=Object.getOwnPropertyNames||function(j){var G=[];for(var Y in j)Object.prototype.hasOwnProperty.call(j,Y)&&(G[G.length]=Y);return G},H(R)};return function(R){if(R&&R.__esModule)return R;var j={};if(R!=null)for(var G=H(R),Y=0;Y<G.length;Y++)G[Y]!=="default"&&t(j,R,G[Y]);return r(j,R),j}})(),a=dr&&dr.__importDefault||function(H){return H&&H.__esModule?H:{default:H}};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=v,e.isValidAuthChain=_,e.createEIP1271MessageHash=A,e.createSimpleAuthChain=g,e.createAuthChain=T,e.initializeAuthChain=z,e.signPayload=b,e.createSignature=I,e.ownerAddress=w,e.getEphemeralMessage=K,e.getEphemeralSignatureType=J,e.getSignedIdentitySignatureType=L,e.parseEphemeralPayload=N,e.isValidEIP1271Signature=Z;const o=n(Os()),s=Cg(),d=Pg(),f=a(Og()),h=jg(),m=_f();e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const p=132;async function v(H,R,j,G=Date.now()){let Y="";if(!_(R))return{ok:!1,message:"ERROR: Malformed authChain"};for(const ie of R){const le=F(ie.type);try{const{nextAuthority:de}=await le(Y,ie,{provider:j,dateToValidateExpirationInMillis:G});Y=de||""}catch(de){const Re=de instanceof Error?de.message:String(de);return{ok:!1,message:`ERROR. Link type: ${ie.type}. ${Re}.`}}}const ce=Y===H;return{ok:ce,message:ce?void 0:`ERROR: Invalid final authority. Expected: ${H}. Current ${Y}.`}}function _(H){for(const[R,j]of H.entries())if(R===0&&j.type!==m.AuthLinkType.SIGNER||j.type===m.AuthLinkType.SIGNER&&R!==0)return!1;return!0}function A(H){return(0,o.hexToBytes)((0,o.sha3)((0,o.stringToUtf8Bytes)(H)))}function g(H,R,j){return[{type:m.AuthLinkType.SIGNER,payload:R,signature:""},{type:L(j),payload:H,signature:j}]}function T(H,R,j,G){const Y=(0,h.moveMinutes)(j),ce=K(R.address,Y),ie=I(H,ce),le=I(R,G);return[{type:m.AuthLinkType.SIGNER,payload:H.address,signature:""},{type:m.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL,payload:ce,signature:ie},{type:m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:G,signature:le}]}async function z(H,R,j,G){const Y=(0,h.moveMinutes)(j),ce=K(R.address,Y),ie=await G(ce),le=[{type:m.AuthLinkType.SIGNER,payload:H,signature:""},{type:J(ie),payload:ce,signature:ie}];return{ephemeralIdentity:R,expiration:Y,authChain:le}}function b(H,R){const j=I(H.ephemeralIdentity,R);return[...H.authChain,{type:m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:R,signature:j}]}e.createEthereumMessageHash=d.createEthereumMessageHash;function I(H,R){return(0,d.ethSign)((0,o.hexToBytes)(H.privateKey),R)}function w(H){return H.length>0&&H[0].type===m.AuthLinkType.SIGNER?H[0].payload:"Invalid-Owner-Address"}function K(H,R){return`Decentraland Login
|
|
97
|
+
Ephemeral address: ${H}
|
|
98
|
+
Expiration: ${R.toISOString()}`}e.Authenticator={validateSignature:v,isValidAuthChain:_,createEIP1271MessageHash:A,createSimpleAuthChain:g,createAuthChain:T,initializeAuthChain:z,signPayload:b,createEthereumMessageHash:e.createEthereumMessageHash,createSignature:I,ownerAddress:w,getEphemeralMessage:K};const U=async(H,R)=>({nextAuthority:R.payload});e.SIGNER_VALIDATOR=U;const x=async(H,R)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_SIGNED_ENTITY_VALIDATOR'");const j=(0,d.recoverAddressFromEthSignature)(R.signature,R.payload),G=H.toLocaleLowerCase(),Y=j.toLocaleLowerCase();if(G===Y)return{nextAuthority:R.payload};throw new Error(`Invalid signer address. Expected: ${G}. Actual: ${Y}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=x;const q=async(H,R,j)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:G,ephemeralAddress:Y,expiration:ce}=N(R.payload),ie=(j==null?void 0:j.dateToValidateExpirationInMillis)||Date.now();if(ce>ie){const le=(0,d.recoverAddressFromEthSignature)(R.signature,G),de=H.toLocaleLowerCase(),Re=le.toLocaleLowerCase();if(de===Re)return{nextAuthority:Y};throw new Error(`Invalid signer address. Expected: ${de}. Actual: ${Re}`)}throw new Error(`Ephemeral key expired. Expiration: ${ce}. Test: ${ie}`)};e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=q;const Q=async(H,R,j)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_EIP_1654_EPHEMERAL_VALIDATOR'");const{message:G,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,H,G,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(H,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,H,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(H,R)=>({error:"Error Validator."});function J(H){return H.length===p?m.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:m.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL}function L(H){return H.length===p?m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:m.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY}function N(H){const R=H.replace(/\r/g,""),j=R.split(`
|
|
99
|
+
`),G="Ephemeral address: ",Y="Expiration: ";if(j.length<3||!j[1].startsWith(G)||!j[2].startsWith(Y))throw new Error(`Invalid ephemeral payload. Expected 3 lines with "${G}" on line 2 and "${Y}" on line 3.`);const ce=j[1].substring(G.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(H,R,j,G){const Y=A(R),ce=(0,o.hexToBytes)(j);let ie;try{ie=(0,o.bytesToHex)(await H.isValidSignature(Y,ce,G))}catch{}if(ie===e.ERC1654_MAGIC_VALUE)return!0;const le=(0,d.createEthereumMessageHash)(R);try{ie=(0,o.bytesToHex)(await H.isValidSignature(le,ce,G))}catch{}return ie===e.ERC1654_MAGIC_VALUE}async function P(H,R,j,G,Y){if(!H)throw new Error("Missing provider");const ce=new o.default(H),ie=await(0,s.SignatureValidator)(ce,R);let le=await Z(ie,j,G);if(le)return!0;const de=new f.default(ce);try{const{block:Re}=await de.getDate(Y,!1);if(le=await Z(ie,j,G,Re),le)return!0}catch(Re){const we=Re instanceof Error?Re.message:String(Re);throw new Error(`Invalid validation. Error: ${we}`)}throw new Error(`Invalid validation. Expected: ${e.ERC1654_MAGIC_VALUE}. Actual: ${le}`)}function F(H){switch(H){case m.AuthLinkType.SIGNER:return e.SIGNER_VALIDATOR;case m.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:return e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR;case m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:return e.ECDSA_SIGNED_ENTITY_VALIDATOR;case m.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL:return e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR;case m.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY:return e.EIP_1654_SIGNED_ENTITY_VALIDATOR;default:return ae}}})(dr)),dr}var Dr={},l0;function Lg(){return l0||(l0=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.AUTH_METADATA_HEADER=Dr.AUTH_TIMESTAMP_HEADER=Dr.AUTH_CHAIN_HEADER_PREFIX=void 0,Dr.AUTH_CHAIN_HEADER_PREFIX="x-identity-auth-chain-",Dr.AUTH_TIMESTAMP_HEADER="x-identity-timestamp",Dr.AUTH_METADATA_HEADER="x-identity-metadata"),Dr}var u0;function Bg(){return u0||(u0=1,(function(e){var t=bn&&bn.__createBinding||(Object.create?(function(n,a,o,s){s===void 0&&(s=o);var d=Object.getOwnPropertyDescriptor(a,o);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(n,s,d)}):(function(n,a,o,s){s===void 0&&(s=o),n[s]=a[o]})),r=bn&&bn.__exportStar||function(n,a){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&t(a,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(Cf(),e),r(Lg(),e),r(_f(),e)})(bn)),bn}var Mg=Bg(),_n={},fr={},ss={exports:{}},is={exports:{}},d0;function xl(){return d0||(d0=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})(is,is.exports)),is.exports}var cs={exports:{}},f0;function Fg(){return f0||(f0=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,o){for(var s=0;s<o.length;s++){var d=o[s];if(a===d||r(d)&&d.test(a))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(cs,cs.exports)),cs.exports}var ls={exports:{}},h0;function $g(){return h0||(h0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(a,o){return a.indexOf(o)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(ls,ls.exports)),ls.exports}var us={exports:{}},ds={exports:{}},m0;function Ef(){return m0||(m0=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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},r(a)}function n(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;(r(a)!=="object"||a===null)&&(a={});for(var s in o)typeof a[s]>"u"&&(a[s]=o[s]);return a}e.exports=t.default,e.exports.default=t.default})(ds,ds.exports)),ds.exports}var p0;function Dg(){return p0||(p0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=a(xl()),n=a(Ef());function a(d){return d&&d.__esModule?d:{default:d}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function s(d,f){(0,r.default)(d),f=(0,n.default)(f,o),f.allow_trailing_dot&&d[d.length-1]==="."&&(d=d.substring(0,d.length-1)),f.allow_wildcard===!0&&d.indexOf("*.")===0&&(d=d.substring(2));var h=d.split("."),m=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(m)||/\s/.test(m))||!f.allow_numeric_tld&&/^\d+$/.test(m)?!1:h.every(function(p){return!(p.length>63&&!f.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(p)||/[\uff01-\uff5e]/.test(p)||/^-|-$/.test(p)||!f.allow_underscores&&/_/.test(p))})}e.exports=t.default,e.exports.default=t.default})(us,us.exports)),us.exports}var fs={exports:{}},g0;function qg(){return g0||(g0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=n(xl());function n(p){return p&&p.__esModule?p:{default:p}}function a(p){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},a(p)}var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",s="(".concat(o,"[.]){3}").concat(o),d=new RegExp("^".concat(s,"$")),f="(?:[0-9a-fA-F]{1,4})",h=new RegExp("^("+"(?:".concat(f,":){7}(?:").concat(f,"|:)|")+"(?:".concat(f,":){6}(?:").concat(s,"|:").concat(f,"|:)|")+"(?:".concat(f,":){5}(?::").concat(s,"|(:").concat(f,"){1,2}|:)|")+"(?:".concat(f,":){4}(?:(:").concat(f,"){0,1}:").concat(s,"|(:").concat(f,"){1,3}|:)|")+"(?:".concat(f,":){3}(?:(:").concat(f,"){0,2}:").concat(s,"|(:").concat(f,"){1,4}|:)|")+"(?:".concat(f,":){2}(?:(:").concat(f,"){0,3}:").concat(s,"|(:").concat(f,"){1,5}|:)|")+"(?:".concat(f,":){1}(?:(:").concat(f,"){0,4}:").concat(s,"|(:").concat(f,"){1,6}|:)|")+"(?::((?::".concat(f,"){0,5}:").concat(s,"|(?::").concat(f,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function m(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(p);var _=(a(v)==="object"?v.version:arguments[1])||"";return _?_.toString()==="4"?d.test(p):_.toString()==="6"?h.test(p):!1:m(p,{version:4})||m(p,{version:6})}e.exports=t.default,e.exports.default=t.default})(fs,fs.exports)),fs.exports}var y0;function Ug(){return y0||(y0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=z;var r=f(xl()),n=f(Fg()),a=f($g()),o=f(Dg()),s=f(qg()),d=f(Ef());function f(b){return b&&b.__esModule?b:{default:b}}function h(b,I){return A(b)||_(b,I)||p(b,I)||m()}function m(){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 p(b,I){if(b){if(typeof b=="string")return v(b,I);var w={}.toString.call(b).slice(8,-1);return w==="Object"&&b.constructor&&(w=b.constructor.name),w==="Map"||w==="Set"?Array.from(b):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?v(b,I):void 0}}function v(b,I){(I==null||I>b.length)&&(I=b.length);for(var w=0,K=Array(I);w<I;w++)K[w]=b[w];return K}function _(b,I){var w=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(w!=null){var K,U,x,q,Q=[],ee=!0,ae=!1;try{if(x=(w=w.call(b)).next,I!==0)for(;!(ee=(K=x.call(w)).done)&&(Q.push(K.value),Q.length!==I);ee=!0);}catch(J){ae=!0,U=J}finally{try{if(!ee&&w.return!=null&&(q=w.return(),Object(q)!==q))return}finally{if(ae)throw U}}return Q}}function A(b){if(Array.isArray(b))return b}var g={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},T=/^\[([^\]]+)\](?::([0-9]+))?$/;function z(b,I){if((0,r.default)(b),!b||/[\s<>]/.test(b)||b.indexOf("mailto:")===0||(I=(0,d.default)(I,g),I.validate_length&&b.length>I.max_allowed_length)||!I.allow_fragments&&(0,a.default)(b,"#")||!I.allow_query_components&&((0,a.default)(b,"?")||(0,a.default)(b,"&")))return!1;var w,K,U,x,q,Q,ee,ae;ee=b.split("#"),b=ee.shift(),ee=b.split("?"),b=ee.shift();var J=b.match(/^([a-z][a-z0-9+\-.]*):/i),L=!1,N=function(Ue){return L=!0,w=Ue.toLowerCase(),I.require_valid_protocol&&I.protocols.indexOf(w)===-1?!1:b.substring(J[0].length)};if(J){var Z=J[1],P=b.substring(J[0].length),F=P.slice(0,2)==="//";if(F){if(b=N(Z),b===!1)return!1}else{var H=P.indexOf("/"),R=H===-1?P:P.substring(0,H),j=R.indexOf("@");if(j!==-1){var G=R.substring(0,j),Y=/^[a-zA-Z0-9\-_.%:]*$/,ce=Y.test(G),ie=/%[0-9a-fA-F]{2}/.test(G);if(ce&&!ie){if(I.require_protocol)return!1}else if(b=N(Z),b===!1)return!1}else{var le=/^[0-9]/.test(P);if(le){if(I.require_protocol)return!1}else if(b=N(Z),b===!1)return!1}}}else if(I.require_protocol)return!1;if(b.slice(0,2)==="//"){if(!L&&!I.allow_protocol_relative_urls)return!1;b=b.slice(2)}if(b==="")return!1;if(ee=b.split("/"),b=ee.shift(),b===""&&!I.require_host)return!0;if(ee=b.split("@"),ee.length>1){if(I.disallow_auth||ee[0]===""||(K=ee.shift(),K.indexOf(":")>=0&&K.split(":").length>2))return!1;var de=K.split(":"),Re=h(de,2),we=Re[0],Ee=Re[1];if(we===""&&Ee==="")return!1}x=ee.join("@"),Q=null,ae=null;var ye=x.match(T);if(ye?(U="",ae=ye[1],Q=ye[2]||null):(ee=x.split(":"),U=ee.shift(),ee.length&&(Q=ee.join(":"))),Q!==null&&Q.length>0){if(q=parseInt(Q,10),!/^[0-9]+$/.test(Q)||q<=0||q>65535)return!1}else if(I.require_port)return!1;return I.host_whitelist?(0,n.default)(U,I.host_whitelist):U===""&&!I.require_host?!0:!(!(0,s.default)(U)&&!(0,o.default)(U,I)&&(!ae||!(0,s.default)(ae,6))||(U=U||ae,I.host_blacklist&&(0,n.default)(U,I.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(ss,ss.exports)),ss.exports}var _i={},v0;function xf(){return v0||(v0=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(d){d.GET="get",d.STORE="store",d.CLEAR="clear",d.PING="ping"})(t||(e.Action=t={})),e.SINGLE_SIGN_ON_TARGET="single-sign-on";function r(d){return{target:e.SINGLE_SIGN_ON_TARGET,...d}}e.createMessage=r;function n(d){const f=localStorage.getItem(s(d));if(!f)return null;let h;try{h=JSON.parse(f)}catch{return o(d),null}return h.expiration=new Date(h.expiration),h.expiration.getTime()<=Date.now()?(o(d),null):h}e.localStorageGetIdentity=n;function a(d,f){new Date(f.expiration).getTime()>Date.now()&&localStorage.setItem(s(d),JSON.stringify(f))}e.localStorageStoreIdentity=a;function o(d){localStorage.removeItem(s(d))}e.localStorageClearIdentity=o;function s(d){if(!/^0x[a-fA-F0-9]{40}$/.test(d))throw new Error("User must be a valid ethereum address");return`single-sign-on-${d.toLowerCase()}`}})(_i)),_i}var b0;function Hg(){if(b0)return fr;b0=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.clearIdentity=fr.storeIdentity=fr.getIdentity=fr.init=void 0;const e=Ug(),t=xf(),r=t.SINGLE_SIGN_ON_TARGET,n=500,a=5;let o=0,s="";const d={protocols:["https"],require_protocol:!0};function f(T,z={}){if(!(0,e.default)(T,{...d,...z}))throw new Error(`Invalid url: ${T}`);if(s)throw new Error("Already initialized");const b=document.createElement("iframe");b.id=r,b.src=T,b.style.width="0",b.style.height="0",b.style.border="none",b.style.position="absolute",document.body.appendChild(b),s=T}fr.init=f;async function h(T){let z;try{z=(await _(await v(),t.Action.GET,{user:T})).identity??null}catch(b){g(b),z=(0,t.localStorageGetIdentity)(T)}return z}fr.getIdentity=h;async function m(T,z){try{await _(await v(),t.Action.STORE,{user:T,identity:z})}catch(b){g(b),(0,t.localStorageStoreIdentity)(T,z)}}fr.storeIdentity=m;async function p(T){try{await _(await v(),t.Action.CLEAR,{user:T})}catch(z){g(z),(0,t.localStorageClearIdentity)(T)}}fr.clearIdentity=p;async function v(){if(!s)throw new Error("Not initialized");for(let T=0;T<a;T++){const z=document.getElementById(r),b=z==null?void 0:z.contentWindow;if(!b){await A(n);continue}try{await _(b,t.Action.PING,{},n)}catch{continue}return b}throw new Error("Could not get iframe because it is not ready or cannot be communicated with")}async function _(T,z,b,I=0){o++;const w=o;let K=null;const U=new Promise((x,q)=>{K=({data:Q})=>{!Q||Q.target!==t.SINGLE_SIGN_ON_TARGET||Q.id!==w||(Q.error?q(new Error(Q.error)):x(Q))},window.addEventListener("message",K)});T.postMessage((0,t.createMessage)({id:w,action:z,...b}),s);try{return await(I?Promise.race([U,new Promise((x,q)=>setTimeout(()=>q(new Error("Did not receive a response in time")),I))]):U)}catch(x){throw x}finally{K&&window.removeEventListener("message",K)}}function A(T){return new Promise(z=>setTimeout(z,T))}function g(T){console.warn("Could not get identity from iframe, falling back to localStorage. Error:",T.message)}return fr}var w0;function Vg(){return w0||(w0=1,(function(e){var t=_n&&_n.__createBinding||(Object.create?(function(n,a,o,s){s===void 0&&(s=o);var d=Object.getOwnPropertyDescriptor(a,o);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(n,s,d)}):(function(n,a,o,s){s===void 0&&(s=o),n[s]=a[o]})),r=_n&&_n.__exportStar||function(n,a){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&t(a,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(Hg(),e),r(xf(),e)})(_n)),_n}var Qc=Vg();function zg(e){const{host:t}=e;return t.endsWith(".org")||t.endsWith(".co")?Nr.PRODUCTION:t.endsWith(".today")||t.endsWith(".net")?Nr.STAGING:t.endsWith(".io")||t.endsWith(".zone")?Nr.DEVELOPMENT:null}function Gg(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(Tf(n))return n}return null}var _0={},Nr;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(Nr||(Nr={}));function Sf(){return Object.values(Nr)}function Tf(e){return Sf().includes(e)}function hs(e){if(Tf(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${Sf().map(t=>`"${t}"`).join(", ")}.`)}function Wg(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?hs(t):r?hs(r):n?hs(n):a?hs(a):Nr.PRODUCTION}function Zg(e){if(typeof window<"u"){const r=Gg(window.location);if(r)return r;const n=zg(window.location);if(n)return n}return Wg(typeof e>"u"&&typeof gs=="object"&&typeof _0=="object"?_0:e)}function Kg(e,t){const r=Zg(t==null?void 0:t.systemEnvVariables),n=e[r];return{get:(a,o="")=>{if(!n)throw new Error(`Could not find a config for env=${r}`);return a in n?n[a]:o},is:a=>r===a,getEnv:()=>r}}const Yg="development",Qg="80002",Jg="https://marketplace-api.decentraland.zone",Xg="https://marketplace-api.decentraland.zone",ey="/auth",ty="https://rpc.decentraland.org/amoy",ry="https://credits.decentraland.zone",ny="https://builder-api.decentraland.zone",ay="https://decentraland.zone/builder",oy="https://peer.decentraland.zone",sy="https://decentraland.zone/profile",iy="",cy="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",ly="",uy="",dy={ENVIRONMENT:Yg,CHAIN_ID:Qg,MARKETPLACE_SERVER_URL:Jg,NFT_API_URL:Xg,AUTH_URL:ey,RPC_URL:ty,CREDITS_SERVER_URL:ry,BUILDER_SERVER_URL:ny,BUILDER_URL:ay,PEER_URL:oy,PROFILE_URL:sy,SHOP_SERVER_URL:iy,STRIPE_PUBLISHABLE_KEY:cy,SEGMENT_WRITE_KEY:ly,SENTRY_DSN:uy},fy="staging",hy="80002",my="https://marketplace-api.decentraland.zone",py="https://marketplace-api.decentraland.zone",gy="/auth",yy="https://rpc.decentraland.org/amoy",vy="https://credits.decentraland.zone",by="https://builder-api.decentraland.zone",wy="https://decentraland.zone/builder",_y="https://peer.decentraland.zone",Cy="https://decentraland.zone/profile",Ey="",xy="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",Sy="",Ty="",Ay={ENVIRONMENT:fy,CHAIN_ID:hy,MARKETPLACE_SERVER_URL:my,NFT_API_URL:py,AUTH_URL:gy,RPC_URL:yy,CREDITS_SERVER_URL:vy,BUILDER_SERVER_URL:by,BUILDER_URL:wy,PEER_URL:_y,PROFILE_URL:Cy,SHOP_SERVER_URL:Ey,STRIPE_PUBLISHABLE_KEY:xy,SEGMENT_WRITE_KEY:Sy,SENTRY_DSN:Ty},ky="production",Iy="137",Ry="https://marketplace-api.decentraland.org",Ny="https://marketplace-api.decentraland.org",Py="/auth",Oy="https://rpc.decentraland.org/polygon",jy="https://credits.decentraland.org",Ly="https://builder-api.decentraland.org",By="https://decentraland.org/builder",My="https://peer.decentraland.org",Fy="https://decentraland.org/profile",$y="",Dy="",qy="",Uy="",Hy={ENVIRONMENT:ky,CHAIN_ID:Iy,MARKETPLACE_SERVER_URL:Ry,NFT_API_URL:Ny,AUTH_URL:Py,RPC_URL:Oy,CREDITS_SERVER_URL:jy,BUILDER_SERVER_URL:Ly,BUILDER_URL:By,PEER_URL:My,PROFILE_URL:Fy,SHOP_SERVER_URL:$y,STRIPE_PUBLISHABLE_KEY:Dy,SEGMENT_WRITE_KEY:qy,SENTRY_DSN:Uy},Vy={},Dt=Kg({[Nr.DEVELOPMENT]:dy,[Nr.STAGING]:Ay,[Nr.PRODUCTION]:Hy},{systemEnvVariables:{VITE_DCL_DEFAULT_ENV:"dev"}}),St=Vy,He={marketplaceServerUrl:St.VITE_MARKETPLACE_SERVER_URL??Dt.get("MARKETPLACE_SERVER_URL"),nftApiUrl:St.VITE_NFT_API_URL??Dt.get("NFT_API_URL"),chainId:Number(St.VITE_CHAIN_ID??Dt.get("CHAIN_ID")),authUrl:St.VITE_AUTH_URL??Dt.get("AUTH_URL"),rpcUrl:St.VITE_RPC_URL??Dt.get("RPC_URL"),creditsServerUrl:St.VITE_CREDITS_SERVER_URL??Dt.get("CREDITS_SERVER_URL"),builderServerUrl:St.VITE_BUILDER_SERVER_URL??Dt.get("BUILDER_SERVER_URL"),builderUrl:St.VITE_BUILDER_URL??Dt.get("BUILDER_URL"),peerUrl:St.VITE_PEER_URL??Dt.get("PEER_URL"),profileUrl:St.VITE_PROFILE_URL??Dt.get("PROFILE_URL"),shopServerUrl:St.VITE_SHOP_SERVER_URL??Dt.get("SHOP_SERVER_URL"),stripePublishableKey:St.VITE_STRIPE_PK??Dt.get("STRIPE_PUBLISHABLE_KEY"),segmentWriteKey:St.VITE_SEGMENT_WRITE_KEY??Dt.get("SEGMENT_WRITE_KEY"),sentryDsn:St.VITE_SENTRY_DSN??Dt.get("SENTRY_DSN"),sentryEnvironment:St.VITE_SENTRY_ENVIRONMENT??(Number(St.VITE_CHAIN_ID??Dt.get("CHAIN_ID"))===80002?"dev":"prod"),sentryRelease:St.VITE_SENTRY_RELEASE??`shop@${St.VITE_APP_VERSION??"0.0.0-dev"}`},zy=744*60;async function Sl(){return(await _t(async()=>{const{connection:e}=await import("./index-CDkTFenk.js").then(t=>t.i);return{connection:e}},__vite__mapDeps([9,2,1,10]))).connection}async function Gy(e){if(!e.account)throw new Error("No account returned by the wallet");const t=e.account.toLowerCase(),r=new s1(e.provider),n=r.getSigner();let a=Qc.localStorageGetIdentity(t);if(!a){const o=i1.createRandom();a=await Mg.Authenticator.initializeAuthChain(t,{address:o.address,publicKey:hu(o.publicKey),privateKey:hu(o.privateKey)},zy,s=>n.signMessage(s)),Qc.localStorageStoreIdentity(t,a)}return{address:t,chainId:e.chainId,signer:n,web3Provider:r,identity:a,providerType:e.providerType}}function Wy(){const e=encodeURIComponent(window.location.href);window.location.replace(`${He.authUrl}/login?redirectTo=${e}`)}async function Zy(){try{const t=await(await Sl()).tryPreviousConnection();return!t.account||!Qc.localStorageGetIdentity(t.account.toLowerCase())?null:await Gy(t)}catch{return null}}async function T8(){var e;try{const t=await Sl();return await((e=t.getEmail)==null?void 0:e.call(t))??void 0}catch{return}}async function Ky(){try{await(await Sl()).disconnect()}catch{}}const Yy=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`s-${String(performance.now())}`,Qy=He.chainId===80002?"amoy":"polygon",Jy=He.chainId===80002?"dev":"prod";function Tl(){return window.analytics}function Xy(){let e;try{e=wa.getState().session}catch{e=null}return{address:(e==null?void 0:e.address)??null,is_signed_in:!!e,session_id:Yy,network:Qy,app_env:Jy}}function mr(e,t={}){const r={...Xy(),...t},n=Tl();n&&n.track(e,r)}function ev(e,t={}){const r=Tl();r&&r.identify(e.toLowerCase(),t)}function tv(){const e=Tl();e!=null&&e.reset&&e.reset()}function rv(e){mr("Shop Viewed Page",{page:e})}function C0(e){return e===bt.ProviderType.MAGIC||e===bt.ProviderType.MAGIC_TEST?"magic":"wallet"}function nv(e){const t=`shop:seen:${e.toLowerCase()}`;try{return localStorage.getItem(t)?!1:(localStorage.setItem(t,"1"),!0)}catch{return!1}}function Wa(e){return Math.round(e*10)/100}function Al(e){return!e.tokenId}function A8(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:Wa(e.priceCredits),rarity:e.rarity,creator:e.creator||null,is_primary:Al(e)}}function k8(e){const t=e.reduce((n,a)=>n+a.priceCredits,0),r=e.some(Al);return{items:e.map(n=>({item_id:n.itemId??null,contract_address:n.contractAddress,token_id:n.tokenId??null,price_usd:Wa(n.priceCredits)})),value_credits:t,value_usd:Wa(t),purchase_type:r?"item":"nft_resale",is_primary:r}}function av(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 I8(e){return av(e)==="user_rejected"}function ov(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 E0=!1;function sv(){if(E0)return;E0=!0;const e=He.segmentWriteKey;e&&ov(e)}let Jc=null;function iv(e){Jc=e}function x0(e,t={}){const r=typeof t.flow=="string"?`error in ${t.flow}`:"error";if(console.error(`[shop] ${r}`,e,t),Jc)try{Jc(e,t)}catch{}}const cv=/0x[a-fA-F0-9]{130}\b/g,lv=/0x[a-fA-F0-9]{64}\b/g,uv=/(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,dv=/(signature|private|identity|authchain|auth_chain|ephemeral|token|secret|password|cookie|authorization)/i;function Na(e){return e.replace(cv,"<signature>").replace(uv,"<secret>").replace(lv,"<hex32>")}function fv(e){var r;e.message&&(e.message=Na(e.message));for(const n of((r=e.exception)==null?void 0:r.values)??[])n.value&&(n.value=Na(n.value));for(const n of e.breadcrumbs??[])n.message&&(n.message=Na(n.message));e.request&&(e.request.url&&(e.request.url=Na(e.request.url)),delete e.request.cookies,delete e.request.headers);const t=n=>{if(n)for(const a of Object.keys(n)){if(dv.test(a)){delete n[a];continue}typeof n[a]=="string"&&(n[a]=Na(n[a]))}};return t(e.tags),t(e.extra),e}let S0=!1;function hv(){if(S0)return;const e=He.sentryDsn;if(!e)return;S0=!0,r1({dsn:e,environment:He.sentryEnvironment,release:He.sentryRelease,integrations:[new n1],tracesSampleRate:.01,sendDefaultPii:!1,ignoreErrors:[/user rejected/i,/user denied/i,"ResizeObserver loop limit exceeded"],beforeSend:fv});const t=mv();t&&a1({id:t}),iv((r,n)=>o1(r,{extra:n}))}function mv(){var e;try{return((e=wa.getState().session)==null?void 0:e.address)??null}catch{return null}}const T0="shop-favorites";let ws=null;const Af=e=>e?`${T0}:${e.toLowerCase()}`:T0;function A0(e){var t;try{const r=localStorage.getItem(Af(e));if(!r)return{};const n=JSON.parse(r);if(!n||typeof n!="object")return{};const a=n,o="state"in n&&((t=a.state)!=null&&t.items)?a.state.items:n;return o&&typeof o=="object"?o:{}}catch{return{}}}function k0(e){try{localStorage.setItem(Af(ws),JSON.stringify(e))}catch{}}const xs=Mn(e=>({items:A0(ws),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=>{ws=t?t.toLowerCase():null,e({items:A0(ws)})}})),I0="shop:followed-creators:v1",pv=200;let kl=null;const kf=e=>e?`${I0}:${e.toLowerCase()}`:I0;function R0(){try{const e=localStorage.getItem(kf(kl));if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"):[]}catch{return[]}}function N0(e){try{localStorage.setItem(kf(kl),JSON.stringify(e))}catch{}}const Xc=Mn((e,t)=>({followed:R0(),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,pv);N0(a),e({followed:a}),mr("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(o=>o!==n);N0(a),e({followed:a}),mr("Shop Unfollowed Creator",{creator_address:n,following_count:a.length})},toggle:r=>t().isFollowing(r)?t().unfollow(r):t().follow(r),reloadFor:r=>{kl=r?r.toLowerCase():null,e({followed:R0()})}})),Ci="shop:signing_in",wa=Mn(e=>({session:null,connecting:!1,error:null,signIn:()=>{try{sessionStorage.setItem(Ci,"1")}catch{}Wy()},disconnect:async()=>{mr("Shop Signed Out");try{await Ky()}catch(t){x0(t,{flow:"wallet",step:"disconnect"})}tv(),xs.getState().reloadFor(null),Xc.getState().reloadFor(null),e({session:null})},restore:async()=>{let t;try{t=await Zy()}catch(n){x0(n,{flow:"wallet",step:"restore"});return}if(!t)return;e({session:t}),xs.getState().reloadFor(t.address),Xc.getState().reloadFor(t.address),ev(t.address,{sign_in_method:C0(t.providerType)});let r=!1;try{r=sessionStorage.getItem(Ci)==="1",r&&sessionStorage.removeItem(Ci)}catch{}r&&mr("Shop Signed In",{method:C0(t.providerType),is_new_user:nv(t.address)})}}));async function If(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 Ls(e){return Wr({queryKey:["profile",e],enabled:!!e,staleTime:5*6e4,queryFn:()=>If(e)})}var qr={},Ei={},P0;function Rf(){return P0||(P0=1,Object.defineProperty(Ei,"__esModule",{value:!0})),Ei}var Ur={},Er={},Gn={},Cn={},O0={},Pa,j0;function pr(){if(j0)return Pa;j0=1;var e=function(t){return t&&t.Math===Math&&t};return Pa=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Pc=="object"&&Pc)||e(typeof Pa=="object"&&Pa)||(function(){return this})()||Function("return this")(),Pa}var xi,L0;function Fn(){return L0||(L0=1,xi=function(e){try{return!!e()}catch{return!0}}),xi}var Si,B0;function Bs(){if(B0)return Si;B0=1;var e=Fn();return Si=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Si}var Ti,M0;function gv(){if(M0)return Ti;M0=1;var e=Bs(),t=Function.prototype,r=t.apply,n=t.call;return Ti=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Ti}var Ai,F0;function _a(){if(F0)return Ai;F0=1;var e=Bs(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Ai=e?n:function(a){return function(){return r.apply(a,arguments)}},Ai}var ki,$0;function Nf(){if($0)return ki;$0=1;var e=_a(),t=e({}.toString),r=e("".slice);return ki=function(n){return r(t(n),8,-1)},ki}var Ii,D0;function Pf(){if(D0)return Ii;D0=1;var e=Nf(),t=_a();return Ii=function(r){if(e(r)==="Function")return t(r)},Ii}var Ri,q0;function $n(){if(q0)return Ri;q0=1;var e=typeof document=="object"&&document.all;return Ri=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Ri}var Ni={},Pi,U0;function so(){if(U0)return Pi;U0=1;var e=Fn();return Pi=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Pi}var Oi,H0;function Il(){if(H0)return Oi;H0=1;var e=Bs(),t=Function.prototype.call;return Oi=e?t.bind(t):function(){return t.apply(t,arguments)},Oi}var ji={},V0;function yv(){if(V0)return ji;V0=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return ji.f=r?function(a){var o=t(this,a);return!!o&&o.enumerable}:e,ji}var Li,z0;function Of(){return z0||(z0=1,Li=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Li}var Bi,G0;function vv(){if(G0)return Bi;G0=1;var e=_a(),t=Fn(),r=Nf(),n=Object,a=e("".split);return Bi=t(function(){return!n("z").propertyIsEnumerable(0)})?function(o){return r(o)==="String"?a(o,""):n(o)}:n,Bi}var Mi,W0;function jf(){return W0||(W0=1,Mi=function(e){return e==null}),Mi}var Fi,Z0;function Lf(){if(Z0)return Fi;Z0=1;var e=jf(),t=TypeError;return Fi=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Fi}var $i,K0;function bv(){if(K0)return $i;K0=1;var e=vv(),t=Lf();return $i=function(r){return e(t(r))},$i}var Di,Y0;function Ms(){if(Y0)return Di;Y0=1;var e=$n();return Di=function(t){return typeof t=="object"?t!==null:e(t)},Di}var qi,Q0;function Bf(){return Q0||(Q0=1,qi={}),qi}var Ui,J0;function wv(){if(J0)return Ui;J0=1;var e=Bf(),t=pr(),r=$n(),n=function(a){return r(a)?a:void 0};return Ui=function(a,o){return arguments.length<2?n(e[a])||n(t[a]):e[a]&&e[a][o]||t[a]&&t[a][o]},Ui}var Hi,X0;function _v(){if(X0)return Hi;X0=1;var e=_a();return Hi=e({}.isPrototypeOf),Hi}var Vi,ed;function Cv(){if(ed)return Vi;ed=1;var e=pr(),t=e.navigator,r=t&&t.userAgent;return Vi=r?String(r):"",Vi}var zi,td;function Ev(){if(td)return zi;td=1;var e=pr(),t=Cv(),r=e.process,n=e.Deno,a=r&&r.versions||n&&n.version,o=a&&a.v8,s,d;return o&&(s=o.split("."),d=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!d&&t&&(s=t.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=t.match(/Chrome\/(\d+)/),s&&(d=+s[1]))),zi=d,zi}var Gi,rd;function Mf(){if(rd)return Gi;rd=1;var e=Ev(),t=Fn(),r=pr(),n=r.String;return Gi=!!Object.getOwnPropertySymbols&&!t(function(){var a=Symbol("symbol detection");return!n(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Gi}var Wi,nd;function Ff(){if(nd)return Wi;nd=1;var e=Mf();return Wi=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Wi}var Zi,ad;function $f(){if(ad)return Zi;ad=1;var e=wv(),t=$n(),r=_v(),n=Ff(),a=Object;return Zi=n?function(o){return typeof o=="symbol"}:function(o){var s=e("Symbol");return t(s)&&r(s.prototype,a(o))},Zi}var Ki,od;function xv(){if(od)return Ki;od=1;var e=String;return Ki=function(t){try{return e(t)}catch{return"Object"}},Ki}var Yi,sd;function Df(){if(sd)return Yi;sd=1;var e=$n(),t=xv(),r=TypeError;return Yi=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},Yi}var Qi,id;function Sv(){if(id)return Qi;id=1;var e=Df(),t=jf();return Qi=function(r,n){var a=r[n];return t(a)?void 0:e(a)},Qi}var Ji,cd;function Tv(){if(cd)return Ji;cd=1;var e=Il(),t=$n(),r=Ms(),n=TypeError;return Ji=function(a,o){var s,d;if(o==="string"&&t(s=a.toString)&&!r(d=e(s,a))||t(s=a.valueOf)&&!r(d=e(s,a))||o!=="string"&&t(s=a.toString)&&!r(d=e(s,a)))return d;throw new n("Can't convert object to primitive value")},Ji}var Xi={exports:{}},ec,ld;function Av(){return ld||(ld=1,ec=!0),ec}var tc,ud;function kv(){if(ud)return tc;ud=1;var e=pr(),t=Object.defineProperty;return tc=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},tc}var dd;function Iv(){if(dd)return Xi.exports;dd=1;var e=Av(),t=pr(),r=kv(),n="__core-js_shared__",a=Xi.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"}),Xi.exports}var rc,fd;function Rv(){if(fd)return rc;fd=1;var e=Iv();return rc=function(t,r){return e[t]||(e[t]=r||{})},rc}var nc,hd;function Nv(){if(hd)return nc;hd=1;var e=Lf(),t=Object;return nc=function(r){return t(e(r))},nc}var ac,md;function Rl(){if(md)return ac;md=1;var e=_a(),t=Nv(),r=e({}.hasOwnProperty);return ac=Object.hasOwn||function(a,o){return r(t(a),o)},ac}var oc,pd;function Pv(){if(pd)return oc;pd=1;var e=_a(),t=0,r=Math.random(),n=e(1.1.toString);return oc=function(a){return"Symbol("+(a===void 0?"":a)+")_"+n(++t+r,36)},oc}var sc,gd;function Ov(){if(gd)return sc;gd=1;var e=pr(),t=Rv(),r=Rl(),n=Pv(),a=Mf(),o=Ff(),s=e.Symbol,d=t("wks"),f=o?s.for||s:s&&s.withoutSetter||n;return sc=function(h){return r(d,h)||(d[h]=a&&r(s,h)?s[h]:f("Symbol."+h)),d[h]},sc}var ic,yd;function jv(){if(yd)return ic;yd=1;var e=Il(),t=Ms(),r=$f(),n=Sv(),a=Tv(),o=Ov(),s=TypeError,d=o("toPrimitive");return ic=function(f,h){if(!t(f)||r(f))return f;var m=n(f,d),p;if(m){if(h===void 0&&(h="default"),p=e(m,f,h),!t(p)||r(p))return p;throw new s("Can't convert object to primitive value")}return h===void 0&&(h="number"),a(f,h)},ic}var cc,vd;function qf(){if(vd)return cc;vd=1;var e=jv(),t=$f();return cc=function(r){var n=e(r,"string");return t(n)?n:n+""},cc}var lc,bd;function Lv(){if(bd)return lc;bd=1;var e=pr(),t=Ms(),r=e.document,n=t(r)&&t(r.createElement);return lc=function(a){return n?r.createElement(a):{}},lc}var uc,wd;function Uf(){if(wd)return uc;wd=1;var e=so(),t=Fn(),r=Lv();return uc=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),uc}var _d;function Bv(){if(_d)return Ni;_d=1;var e=so(),t=Il(),r=yv(),n=Of(),a=bv(),o=qf(),s=Rl(),d=Uf(),f=Object.getOwnPropertyDescriptor;return Ni.f=e?f:function(m,p){if(m=a(m),p=o(p),d)try{return f(m,p)}catch{}if(s(m,p))return n(!t(r.f,m,p),m[p])},Ni}var dc,Cd;function Mv(){if(Cd)return dc;Cd=1;var e=Fn(),t=$n(),r=/#|\.prototype\./,n=function(f,h){var m=o[a(f)];return m===d?!0:m===s?!1:t(h)?e(h):!!h},a=n.normalize=function(f){return String(f).replace(r,".").toLowerCase()},o=n.data={},s=n.NATIVE="N",d=n.POLYFILL="P";return dc=n,dc}var fc,Ed;function Fv(){if(Ed)return fc;Ed=1;var e=Pf(),t=Df(),r=Bs(),n=e(e.bind);return fc=function(a,o){return t(a),o===void 0?a:r?n(a,o):function(){return a.apply(o,arguments)}},fc}var hc={},mc,xd;function $v(){if(xd)return mc;xd=1;var e=so(),t=Fn();return mc=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),mc}var pc,Sd;function Dv(){if(Sd)return pc;Sd=1;var e=Ms(),t=String,r=TypeError;return pc=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},pc}var Td;function qv(){if(Td)return hc;Td=1;var e=so(),t=Uf(),r=$v(),n=Dv(),a=qf(),o=TypeError,s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",m="writable";return hc.f=e?r?function(v,_,A){if(n(v),_=a(_),n(A),typeof v=="function"&&_==="prototype"&&"value"in A&&m in A&&!A[m]){var g=d(v,_);g&&g[m]&&(v[_]=A.value,A={configurable:h in A?A[h]:g[h],enumerable:f in A?A[f]:g[f],writable:!1})}return s(v,_,A)}:s:function(v,_,A){if(n(v),_=a(_),n(A),t)try{return s(v,_,A)}catch{}if("get"in A||"set"in A)throw new o("Accessors not supported");return"value"in A&&(v[_]=A.value),v},hc}var gc,Ad;function Uv(){if(Ad)return gc;Ad=1;var e=so(),t=qv(),r=Of();return gc=e?function(n,a,o){return t.f(n,a,r(1,o))}:function(n,a,o){return n[a]=o,n},gc}var yc,kd;function Hv(){if(kd)return yc;kd=1;var e=pr(),t=gv(),r=Pf(),n=$n(),a=Bv().f,o=Mv(),s=Bf(),d=Fv(),f=Uv(),h=Rl(),m=function(p){var v=function(_,A,g){if(this instanceof v){switch(arguments.length){case 0:return new p;case 1:return new p(_);case 2:return new p(_,A)}return new p(_,A,g)}return t(p,this,arguments)};return v.prototype=p.prototype,v};return yc=function(p,v){var _=p.target,A=p.global,g=p.stat,T=p.proto,z=A?e:g?e[_]:e[_]&&e[_].prototype,b=A?s:s[_]||f(s,_,{})[_],I=b.prototype,w,K,U,x,q,Q,ee,ae,J;for(x in v)w=o(A?x:_+(g?".":"#")+x,p.forced),K=!w&&z&&h(z,x),Q=b[x],K&&(p.dontCallGetSet?(J=a(z,x),ee=J&&J.value):ee=z[x]),q=K&&ee?ee:v[x],!(!w&&!T&&typeof Q==typeof q)&&(p.bind&&K?ae=d(q,e):p.wrap&&K?ae=m(q):T&&n(q)?ae=r(q):ae=q,(p.sham||q&&q.sham||Q&&Q.sham)&&f(ae,"sham",!0),f(b,x,ae),T&&(U=_+"Prototype",h(s,U)||f(s,U,{}),f(s[U],x,q),p.real&&I&&(w||!I[x])&&f(I,x,q)))},yc}var Id;function Vv(){if(Id)return O0;Id=1;var e=Hv(),t=pr();return e({global:!0,forced:t.globalThis!==t},{globalThis:t}),O0}var vc,Rd;function zv(){return Rd||(Rd=1,Vv(),vc=pr()),vc}var bc,Nd;function Gv(){if(Nd)return bc;Nd=1;var e=zv();return bc=e,bc}var Pd;function Hf(){if(Pd)return Cn;Pd=1;var e=Cn&&Cn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.getImplementation=void 0;var t=e(Gv());function r(n,a){var o,s=(o=n[a])!==null&&o!==void 0?o:t.default[a];if(!s)throw new ReferenceError('"'+a+'" is not defined');return s}return Cn.getImplementation=r,Cn}var Od;function Vf(){if(Od)return Gn;Od=1;var e=Gn&&Gn.__values||function(d){var f=typeof Symbol=="function"&&Symbol.iterator,h=f&&d[f],m=0;if(h)return h.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&m>=d.length&&(d=void 0),{value:d&&d[m++],done:!d}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Gn,"__esModule",{value:!0});var t=Cf(),r=Hf(),n="x-identity-auth-chain-",a="x-identity-timestamp",o="x-identity-metadata";function s(d){d===void 0&&(d={});var f=(0,r.getImplementation)(d,"Headers");return function(m,p,v,_,A){var g,T,z=new f(A),b=String(Date.now()),I=JSON.stringify(_),w=[p,v,b,I].join(":").toLowerCase(),K=0,U=t.Authenticator.signPayload(m,w);try{for(var x=e(U),q=x.next();!q.done;q=x.next()){var Q=q.value;z.set(n+K,JSON.stringify(Q)),K++}}catch(ee){g={error:ee}}finally{try{q&&!q.done&&(T=x.return)&&T.call(x)}finally{if(g)throw g.error}}return z.set(a,b),z.set(o,I),z}}return Gn.default=s,Gn}var jd;function zf(){if(jd)return Er;jd=1;var e=Er&&Er.__assign||function(){return e=Object.assign||function(s){for(var d,f=1,h=arguments.length;f<h;f++){d=arguments[f];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(s[m]=d[m])}return s},e.apply(this,arguments)},t=Er&&Er.__rest||function(s,d){var f={};for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&d.indexOf(h)<0&&(f[h]=s[h]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,h=Object.getOwnPropertySymbols(s);m<h.length;m++)d.indexOf(h[m])<0&&Object.prototype.propertyIsEnumerable.call(s,h[m])&&(f[h[m]]=s[h[m]]);return f},r=Er&&Er.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Er,"__esModule",{value:!0});var n=r(Vf()),a=Hf();function o(s){s===void 0&&(s={});var d=(0,n.default)(s),f=(0,a.getImplementation)(s,"URL"),h=(0,a.getImplementation)(s,"Request"),m=(0,a.getImplementation)(s,"fetch");return function(v,_){if(_&&_.identity){var A=_.identity,g=_.metadata,T=t(_,["identity","metadata"]);if(typeof v=="string"||v instanceof f||globalThis.URL&&v instanceof globalThis.URL){var z=typeof v=="string"?new f(v):v,b=new h(z.toString(),e(e({},T),{headers:d(A,_.method||"GET",z.pathname,g||{},T==null?void 0:T.headers)}));return m(b)}var I=new f(v.url),w=new h(v),K=d(A,v.method||"GET",I.pathname,g||{});return K.forEach(function(U,x){w.headers.set(x,U)}),m(w)}return m(v,_)}}return Er.default=o,Er}var Ld;function Wv(){return Ld||(Ld=1,(function(e){var t=Ur&&Ur.__createBinding||(Object.create?(function(s,d,f,h){h===void 0&&(h=f),Object.defineProperty(s,h,{enumerable:!0,get:function(){return d[f]}})}):(function(s,d,f,h){h===void 0&&(h=f),s[h]=d[f]})),r=Ur&&Ur.__exportStar||function(s,d){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&t(d,s,f)},n=Ur&&Ur.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.signedHeaderFactory=e.signedFetchFactory=void 0,r(Rf(),e);var a=zf();Object.defineProperty(e,"signedFetchFactory",{enumerable:!0,get:function(){return n(a).default}});var o=Vf();Object.defineProperty(e,"signedHeaderFactory",{enumerable:!0,get:function(){return n(o).default}})})(Ur)),Ur}var Bd;function Zv(){return Bd||(Bd=1,(function(e){var t=qr&&qr.__createBinding||(Object.create?(function(o,s,d,f){f===void 0&&(f=d),Object.defineProperty(o,f,{enumerable:!0,get:function(){return s[d]}})}):(function(o,s,d,f){f===void 0&&(f=d),o[f]=s[d]})),r=qr&&qr.__exportStar||function(o,s){for(var d in o)d!=="default"&&!Object.prototype.hasOwnProperty.call(s,d)&&t(s,o,d)},n=qr&&qr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),r(Rf(),e),r(Wv(),e);var a=n(zf());e.default=(0,a.default)()})(qr)),qr}var Kv=Zv();const Fs=As(Kv);async function Yv(e,t){const r=`${He.creditsServerUrl}/users/${e.toLowerCase()}/credits`,n=await Fs(r,{method:"GET",identity:t,metadata:{}});if(!n.ok)throw new Error(`getUserCredits ${n.status}: ${await n.text()}`);return n.json()}async function Qv(e,t){const{usd:r}=await Yv(e,t);return r??{balanceCents:0,credits:0}}async function R8(e,t,r){const n=`${He.creditsServerUrl}/credits/authorize`,a=await Fs(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 N8(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(),o=`${He.creditsServerUrl}/users/${e.toLowerCase()}/purchases${a?`?${a}`:""}`,s=await Fs(o,{method:"GET",identity:t,metadata:{}});if(!s.ok)throw new Error(`fetchUserPurchases ${s.status}: ${await s.text()}`);const d=await s.json(),f=(d.purchases??[]).map(v=>({...v,txHash:v.txHash??v.transactionHash??null})),h=(r==null?void 0:r.skip)??0,m=r==null?void 0:r.first,p=typeof d.total=="number"?d.total:h+f.length+(f.length>=m?1:0);return{items:f,total:p}}async function P8(e,t){if(t.length===0)return 0;const r=`${He.creditsServerUrl}/credits/authorize/cancel`,n=await Fs(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 O8(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 Jv(e){return Wr({queryKey:["usd-balance",e==null?void 0:e.address],enabled:!!e,staleTime:3e4,queryFn:async()=>Qv(e.address,e.identity)})}function Xv(e,t){return t?"—":(e==null?void 0:e.credits)??0}const e3={};function Gf(e,t){let r;try{r=e()}catch{return}return{getItem:a=>{var o;const s=f=>f===null?null:JSON.parse(f,void 0),d=(o=r.getItem(a))!=null?o:null;return d instanceof Promise?d.then(s):s(d)},setItem:(a,o)=>r.setItem(a,JSON.stringify(o,void 0)),removeItem:a=>r.removeItem(a)}}const Za=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return Za(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return Za(n)(r)}}}},t3=(e,t)=>(r,n,a)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:T=>T,version:0,merge:(T,z)=>({...z,...T}),...t},s=!1;const d=new Set,f=new Set;let h;try{h=o.getStorage()}catch{}if(!h)return e((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...T)},n,a);const m=Za(o.serialize),p=()=>{const T=o.partialize({...n()});let z;const b=m({state:T,version:o.version}).then(I=>h.setItem(o.name,I)).catch(I=>{z=I});if(z)throw z;return b},v=a.setState;a.setState=(T,z)=>{v(T,z),p()};const _=e((...T)=>{r(...T),p()},n,a);let A;const g=()=>{var T;if(!h)return;s=!1,d.forEach(b=>b(n()));const z=((T=o.onRehydrateStorage)==null?void 0:T.call(o,n()))||void 0;return Za(h.getItem.bind(h))(o.name).then(b=>{if(b)return o.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return o.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var I;return A=o.merge(b,(I=n())!=null?I:_),r(A,!0),p()}).then(()=>{z==null||z(A,void 0),s=!0,f.forEach(b=>b(A))}).catch(b=>{z==null||z(void 0,b)})};return a.persist={setOptions:T=>{o={...o,...T},T.getStorage&&(h=T.getStorage())},clearStorage:()=>{h==null||h.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:T=>(d.add(T),()=>{d.delete(T)}),onFinishHydration:T=>(f.add(T),()=>{f.delete(T)})},g(),A||_},r3=(e,t)=>(r,n,a)=>{let o={storage:Gf(()=>localStorage),partialize:g=>g,version:0,merge:(g,T)=>({...T,...g}),...t},s=!1;const d=new Set,f=new Set;let h=o.storage;if(!h)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...g)},n,a);const m=()=>{const g=o.partialize({...n()});return h.setItem(o.name,{state:g,version:o.version})},p=a.setState;a.setState=(g,T)=>{p(g,T),m()};const v=e((...g)=>{r(...g),m()},n,a);a.getInitialState=()=>v;let _;const A=()=>{var g,T;if(!h)return;s=!1,d.forEach(b=>{var I;return b((I=n())!=null?I:v)});const z=((T=o.onRehydrateStorage)==null?void 0:T.call(o,(g=n())!=null?g:v))||void 0;return Za(h.getItem.bind(h))(o.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return[!0,o.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var I;const[w,K]=b;if(_=o.merge(K,(I=n())!=null?I:v),r(_,!0),w)return m()}).then(()=>{z==null||z(_,void 0),_=n(),s=!0,f.forEach(b=>b(_))}).catch(b=>{z==null||z(void 0,b)})};return a.persist={setOptions:g=>{o={...o,...g},g.storage&&(h=g.storage)},clearStorage:()=>{h==null||h.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>A(),hasHydrated:()=>s,onHydrate:g=>(d.add(g),()=>{d.delete(g)}),onFinishHydration:g=>(f.add(g),()=>{f.delete(g)})},o.skipHydration||A(),_||v},n3=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((e3?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),t3(e,t)):r3(e,t),a3=n3,Ma=e=>!e.tokenId,wc=e=>typeof e.available=="number"?e.available:1/0,o3=e=>Wa(e.reduce((t,r)=>t+r.priceCredits*r.quantity,0)),_c=e=>{const t=Math.floor(e.quantity??1),r=Ma(e)?Math.max(1,Number.isFinite(t)?t:1):1;return{...e,quantity:r}},Ut=Mn()(a3((e,t)=>({items:[],open:!1,justAddedCount:0,fittingOpen:!1,add:(r,n="grid")=>{const a=Ma(r),o=t().items.find(d=>d.id===r.id);if(o&&!a){e({open:!0});return}if(o&&o.quantity>=wc(o)){e({open:!0});return}e(d=>o?{items:d.items.map(f=>f.id===r.id?{...f,quantity:f.quantity+1}:f),open:!0,justAddedCount:(d.open?d.justAddedCount:0)+1}:{items:[...d.items,_c(r)],open:!0,justAddedCount:(d.open?d.justAddedCount:0)+1});const s=t().items;mr("Shop Added To Cart",{item_id:r.itemId??null,contract_address:r.contractAddress,price_credits:r.priceCredits,price_usd:Wa(r.priceCredits),is_primary:a,source:n,cart_size:s.length,cart_value_usd:o3(s)})},remove:r=>{const n=t().items.find(a=>a.id===r);e(a=>({items:a.items.filter(o=>o.id!==r)})),n&&mr("Shop Removed From Cart",{item_id:n.itemId??null,cart_size:t().items.length})},setQuantity:(r,n)=>e(a=>({items:a.items.map(o=>{if(o.id!==r||!Ma(o))return o;const s=Math.max(1,Math.min(Math.floor(n),wc(o)));return{...o,quantity:Number.isFinite(s)?s:1}})})),increment:r=>e(n=>({items:n.items.map(a=>a.id===r&&Ma(a)&&a.quantity<wc(a)?{...a,quantity:a.quantity+1}:a)})),decrement:r=>e(n=>({items:n.items.map(a=>a.id===r&&Ma(a)&&a.quantity>1?{...a,quantity:a.quantity-1}:a)})),clear:()=>e({items:[]}),restore:r=>e(n=>n.items.length?{}:{items:r.map(_c)}),setOpen:r=>e({open:r,justAddedCount:0}),setFittingOpen:r=>e(r?{fittingOpen:r,open:!1}:{fittingOpen:r})}),{name:"dcl_shop_cart",version:2,storage:Gf(()=>localStorage),partialize:e=>({items:e.items}),migrate:e=>{const t=e;return t!=null&&t.items?{items:t.items.map(_c)}:t}})),ya={name:"credits",nameSingular:"credit",symbol:"◈",iconName:"credits"};function j8(e){return`${e} ${e===1?ya.nameSingular:ya.name}`}const s3=Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2});function Vr(e){return s3.format(e)}function nn(e){return e.toLocaleString("en")}function Qt({className:e}){return u.jsx(it,{name:ya.iconName,className:e})}function Wf(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function i3(e){l1(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var c3=xn(xn({},c1),{textComponent:ne.Fragment});function l3(e){return function(t){return e(ne.Children.toArray(t))}}var Nl=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=ne.createContext(null)):ne.createContext(null);Nl.Consumer;var u3=Nl.Provider,d3=u3,f3=Nl;function Zf(){var e=ne.useContext(f3);return i3(e),e}var el;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(el||(el={}));var tl;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(tl||(tl={}));function Kf(e){var t=function(r){var n=Zf(),a=r.value,o=r.children,s=ul(r,["value","children"]),d=typeof a=="string"?new Date(a||0):a,f=e==="formatDate"?n.formatDateToParts(d,s):n.formatTimeToParts(d,s);return o(f)};return t.displayName=tl[e],t}function io(e){var t=function(r){var n=Zf(),a=r.value,o=r.children,s=ul(r,["value","children"]),d=n[e](a,s);if(typeof o=="function")return o(d);var f=n.textComponent||ne.Fragment;return ne.createElement(f,null,d)};return t.displayName=el[e],t}function Yf(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=d1(n)?l3(n):n,t},{})}var Md=function(e,t,r,n){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var s=Yf(n),d=f1.apply(void 0,h1([e,t,r,s],a,!1));return Array.isArray(d)?ne.Children.toArray(d):d},h3=function(e,t){var r=e.defaultRichTextElements,n=ul(e,["defaultRichTextElements"]),a=Yf(r),o=u1(xn(xn(xn({},c3),n),{defaultRichTextElements:a}),t),s={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:a};return xn(xn({},o),{formatMessage:Md.bind(null,s,o.formatters),$t:Md.bind(null,s,o.formatters)})};io("formatDate");io("formatTime");io("formatNumber");io("formatList");io("formatDisplayName");Kf("formatDate");Kf("formatTime");const m3={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."},p3={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"},g3={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}"},y3={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}"},v3={viewCollection:"View collection",itemCount:"{count, plural, one {# Item} other {# Items}}"},b3={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"},w3={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}"},_3={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}"},C3={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"},E3={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.",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."}},x3={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."},S3={price:"Price",status:"Status",statusAll:"All",onSale:"On Sale",notForSale:"Not for Sale",smart:"Smart",smartHint:"Smart wearables add interactive, in-world utility."},T3={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"},A3={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."},I3={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."}},R3={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"},N3={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."}},P3={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…"},O3={title:"Resales",subtitle:"Other copies of this item on sale right now.",copy:"Open resale",seller:"Seller",yourListing:"Your listing",showMore:"Show 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"},j3={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"},L3={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"},B3={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."},M3={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"},F3={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}"},$3={emptyTitle:"No favorites yet",emptyBody:"Tap the heart on any item to save it here.",itemCount:"{count, plural, one {# item} other {# items}}"},D3={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."},q3={crash:{title:"Something went wrong",body:"This page hit an unexpected error. Try reloading.",reload:"Reload"}},U3={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"},H3={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"},V3={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"},z3={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"},G3={viewAll:"View all",scrollLeft:"Scroll left",scrollRight:"Scroll right",pages:"Carousel pages",goToPage:"Go to page {page}"},W3={title:"Week Top Creators",thisWeek:"This Week",rank:"Rank",creator:"Creator",collections:"Collections",sales:"Sales",volume:"Volume"},Z3={loading:"Loading…",loadMore:"Load more"},K3={title:"Recently viewed"},Y3={title:"From creators you follow"},Q3={loading:"Loading"},J3={label:"Purchase successful"},X3={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})"},eb={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"},tb={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…"},rb={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"},nb={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"},ab={male:"Male",female:"Female"},ob={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"},sb={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"},ib={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."}},cb={errors:m3,nav:p3,search:g3,collection:y3,collectionCard:v3,categories:b3,creator:w3,storeSettings:_3,notFound:C3,cart:E3,getCredits:x3,filter:S3,assetCard:T3,notifyMe:A3,makeOffer:k3,buyModal:I3,cartCheckout:R3,marketCheckout:N3,itemDetail:P3,resales:O3,success:j3,itemPreview:L3,assets:B3,myAssets:M3,activity:F3,myFavorites:$3,overview:D3,app:q3,cartPopover:U3,filterBar:H3,addAll:V3,footer:z3,collectionCarousel:G3,weekTopCreators:W3,loadMore:Z3,recentlyViewed:K3,followedCreators:Y3,spinner:Q3,successAnimation:J3,importListings:X3,sellModal:eb,primaryList:tb,migrate:rb,fittingRoom:nb,bodyShape:ab,names:ob,authorizations:sb,seo:ib},lb={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."},ub={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"},db={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}"},fb={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}"},hb={viewCollection:"Ver colección",itemCount:"{count, plural, one {# Artículo} other {# Artículos}}"},mb={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"},pb={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}"},gb={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}"},yb={title:"Página no encontrada",body:"La página que buscas no está aquí. Volvamos a la tienda.",cta:"Ver coleccionables"},vb={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.",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."}},bb={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."},wb={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."},_b={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"},Cb={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."},Eb={cta:"Hacer una oferta",comingSoon:"Muy pronto — vas a poder hacer una oferta por artículos que no están a la venta."},xb={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."}},Sb={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"},Tb={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."}},Ab={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:"Reventas",subtitle:"Otras copias de este artículo a la venta ahora mismo.",copy:"Reventa disponible",seller:"Vendedor",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"},Ib={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"},Rb={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"},Nb={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."},Pb={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"},Ob={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}"},jb={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}}"},Lb={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."},Bb={crash:{title:"Algo salió mal",body:"Esta página tuvo un error inesperado. Prueba a recargar.",reload:"Recargar"}},Mb={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"},Fb={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}"},$b={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"},Db={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"},qb={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}"},Ub={title:"Mejores creadores de la semana",thisWeek:"Esta semana",rank:"Posición",creator:"Creador",collections:"Colecciones",sales:"Ventas",volume:"Volumen"},Hb={loading:"Cargando…",loadMore:"Cargar más"},Vb={title:"Vistos recientemente"},zb={title:"De creadores que sigues"},Gb={loading:"Cargando"},Wb={label:"Compra exitosa"},Zb={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})"},Kb={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"},Yb={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…"},Qb={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"},Jb={title:"Probador",close:"Cerrar",wearable:"Wearable",emptyStageTitle:"No hay nada puesto ahora mismo.",emptyStageBody:"Activa un artículo de la lista para probarlo.",sub:"Combina los artículos de tu carrito. Activa y desactiva artículos para ver el look.",emote:"Emote",conflictTooltip:"Solo se puede llevar un artículo por espacio",onePerSlot:"1 por espacio",madeForShape:"Este artículo está hecho para el cuerpo {shape}",shapeOnly:"Solo {shape}",removeFromCart:"Quitar {name} del carrito",remove:"Quitar",itemCount:"{count, plural, one {# artículo} other {# artículos}}",checkout:"Finalizar compra"},Xb={male:"Masculino",female:"Femenino"},ew={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"},tw={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"},rw={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."}},nw={errors:lb,nav:ub,search:db,collection:fb,collectionCard:hb,categories:mb,creator:pb,storeSettings:gb,notFound:yb,cart:vb,getCredits:bb,filter:wb,assetCard:_b,notifyMe:Cb,makeOffer:Eb,buyModal:xb,cartCheckout:Sb,marketCheckout:Tb,itemDetail:Ab,resales:kb,success:Ib,itemPreview:Rb,assets:Nb,myAssets:Pb,activity:Ob,myFavorites:jb,overview:Lb,app:Bb,cartPopover:Mb,filterBar:Fb,addAll:$b,footer:Db,collectionCarousel:qb,weekTopCreators:Ub,loadMore:Hb,recentlyViewed:Vb,followedCreators:zb,spinner:Gb,successAnimation:Wb,importListings:Zb,sellModal:Kb,primaryList:Yb,migrate:Qb,fittingRoom:Jb,bodyShape:Xb,names:ew,authorizations:tw,seo:rw},_s=["en","es"];function rl(e,t="",r={}){for(const[n,a]of Object.entries(e)){const o=t?`${t}.${n}`:n;a&&typeof a=="object"&&!Array.isArray(a)?rl(a,o,r):r[o]=String(a)}return r}const aw={en:rl(cb),es:rl(nw)},ow=m1(),Cc={};function Pl(e){return Cc[e]||(Cc[e]=h3({locale:e,defaultLocale:"en",messages:aw[e],onError:()=>{}},ow)),Cc[e]}let Qf=Pl("en");function sw(e){Qf=Pl(e)}function oe(e,t){return Qf.formatMessage({id:e},t)}const iw=wt.span`
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
text-overflow: ellipsis;
|
|
105
|
+
`,cw=wt.span``,Jf=Cl`
|
|
106
|
+
width: 18px;
|
|
107
|
+
height: 18px;
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
object-fit: cover;
|
|
110
|
+
flex: none;
|
|
111
|
+
background: ${Le.colors.media};
|
|
112
|
+
`,lw=wt.span`
|
|
113
|
+
${Jf};
|
|
114
|
+
|
|
115
|
+
&[data-letter] {
|
|
116
|
+
display: inline-flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
color: ${Le.colors.white};
|
|
120
|
+
font-size: 11px;
|
|
121
|
+
font-weight: 700;
|
|
122
|
+
line-height: 1;
|
|
123
|
+
text-transform: uppercase;
|
|
124
|
+
}
|
|
125
|
+
`,uw=wt.img`
|
|
126
|
+
${Jf};
|
|
127
|
+
`,Fd=wt.span`
|
|
128
|
+
display: inline-flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
gap: 6px;
|
|
131
|
+
color: ${Le.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: ${Le.colors.text};
|
|
146
|
+
text-decoration: underline;
|
|
147
|
+
}
|
|
148
|
+
`;function dw(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function fw(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 hw(e,t){var r;return(((r=e==null?void 0:e.trim())==null?void 0:r[0])||t.replace(/^0x/i,"")[0]||"?").toUpperCase()}function Xf({address:e,className:t,linkToProfile:r,hidePrefix:n}){var _,A;const a=ks(),{data:o}=Ls(e),s=(A=(_=o==null?void 0:o.avatar)==null?void 0:_.snapshots)==null?void 0:A.face256,[d,f]=ne.useState(!1);if(ne.useEffect(()=>f(!1),[s]),!e)return null;const h=o!=null&&o.name?Wf(o.name):dw(e),p=!!s&&!d?u.jsx(uw,{"data-avatar":!0,"data-testid":"creator-ava",src:s,alt:"",loading:"lazy",onError:()=>f(!0)}):u.jsx(lw,{"data-avatar":!0,"data-letter":!0,"data-testid":"creator-ava-letter",style:{backgroundColor:fw(e)},"aria-hidden":!0,children:hw(o==null?void 0:o.name,e)}),v=u.jsxs(u.Fragment,{children:[p,u.jsxs(iw,{"data-testid":"creator-name",children:[n?null:oe("search.byCreator",{name:""}),u.jsx(cw,{"data-testid":"creator-display",children:h})]})]});return r?u.jsx(Fd,{as:"button","data-link":!0,className:t,"data-testid":"creator",onClick:g=>{g.stopPropagation(),a(`/assets/creator/${e}`)},children:v}):u.jsx(Fd,{className:t,"data-testid":"creator",children:v})}function eh(){return u.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:[u.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"#1ea672"}),u.jsx("path",{d:"M5.8 10.3l2.7 2.7 5.7-6",stroke:"#fff",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]})}function mw({item:e,onRemove:t,onIncrement:r,onDecrement:n}){const a=!e.tokenId,o=e.quantity,s=typeof e.available=="number"&&o>=e.available,d=e.priceCredits*o;return u.jsxs("li",{className:"cartd__card",children:[u.jsxs("div",{className:"cartd__thumb",children:[e.thumbnail?u.jsx("img",{src:e.thumbnail,alt:e.name}):null,u.jsx("span",{className:"cartd__thumb-check",children:u.jsx(eh,{})})]}),u.jsxs("div",{className:"cartd__info",children:[u.jsxs("div",{children:[u.jsx("div",{className:"cartd__name",title:e.name,children:e.name}),e.creator?u.jsx(Xf,{address:e.creator,className:"cartd__by"}):null]}),u.jsxs("div",{className:"cartd__rowbottom",children:[a?u.jsxs("div",{className:"cartd__stepper",children:[u.jsx("button",{className:"cartd__step",onClick:()=>n(e.id),disabled:o<=1,"aria-label":oe("cartPopover.decreaseQuantity",{name:e.name}),children:u.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:u.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),u.jsx("span",{className:"cartd__qty",children:o}),u.jsx("button",{className:"cartd__step",onClick:()=>r(e.id),disabled:s,"aria-label":oe("cartPopover.increaseQuantity"),children:u.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:u.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,u.jsxs("div",{className:"cartd__price",title:nn(d),children:[u.jsx(Qt,{className:"cartd__diamond"}),Vr(d)]})]})]}),u.jsx("button",{className:"cartd__del",onClick:()=>t(e.id),"aria-label":oe("cartPopover.removeItem",{name:e.name}),title:oe("cartPopover.remove"),children:u.jsx(it,{name:"trash"})})]})}function pw(){const e=Ut(m=>m.items),t=Ut(m=>m.open),r=Ut(m=>m.justAddedCount),n=Ut(m=>m.setOpen),a=Ut(m=>m.remove),o=Ut(m=>m.increment),s=Ut(m=>m.decrement),d=ne.useRef(null),f=e.reduce((m,p)=>m+p.priceCredits*p.quantity,0),h=e.reduce((m,p)=>m+p.quantity,0);return ne.useEffect(()=>{if(!t)return;const m=p=>{p.key==="Escape"&&n(!1)};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[t,n]),!t||h===0?null:Kh.createPortal(u.jsxs("div",{className:"cartd",role:"dialog","aria-modal":"true","aria-label":oe("cartPopover.dialogLabel"),children:[u.jsx("div",{className:"cartd__scrim",onClick:()=>n(!1)}),u.jsxs("aside",{className:"cartd__panel",ref:d,children:[u.jsxs("header",{className:"cartd__head",children:[u.jsx("h2",{className:"cartd__title",children:oe("cartPopover.title",{count:h})}),u.jsx("button",{className:"cartd__close",onClick:()=>n(!1),"aria-label":oe("cartPopover.close"),children:u.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,focusable:"false",children:u.jsx("path",{d:"M5 5l14 14M19 5L5 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),u.jsxs("div",{className:"cartd__body",children:[r>0?u.jsxs("div",{className:"cartd__banner",children:[u.jsx("span",{className:"cartd__banner-check",children:u.jsx(eh,{})}),u.jsxs("p",{children:[u.jsx("strong",{children:oe("cartPopover.bannerCount",{count:r})})," ",oe("cartPopover.bannerAdded")]})]}):null,u.jsx("ul",{className:"cartd__list",children:e.map(m=>u.jsx(mw,{item:m,onRemove:a,onIncrement:o,onDecrement:s},m.id))})]}),u.jsxs("footer",{className:"cartd__foot",children:[u.jsxs("div",{className:"cartd__totalrow",children:[u.jsx("span",{className:"cartd__total-label",children:oe("cartPopover.total",{count:h})}),u.jsxs("span",{className:"cartd__total-val",title:nn(f),children:[u.jsx(Qt,{className:"cartd__total-diamond"}),Vr(f)]})]}),u.jsxs("div",{className:"cartd__ctas",children:[u.jsx(Sn,{className:"cartd__cta cartd__cta--primary",to:"/cart",onClick:()=>n(!1),children:oe("cartPopover.goToCart")}),u.jsx("button",{className:"cartd__cta cartd__cta--secondary",onClick:()=>n(!1),children:oe("cartPopover.continueShopping")})]})]})]})]}),document.body)}var Oa={},Ec={exports:{}},$d;function Ol(){return $d||($d=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})(Ec)),Ec.exports}var xc={};function an(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 th(e){if(ne.isValidElement(e)||!an(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=th(e[r])}),t}function Pr(e,t,r={clone:!0}){const n=r.clone?Ye({},e):e;return an(e)&&an(t)&&Object.keys(t).forEach(a=>{ne.isValidElement(t[a])?n[a]=t[a]:an(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&an(e[a])?n[a]=Pr(e[a],t[a],r):r.clone?n[a]=an(t[a])?th(t[a]):t[a]:n[a]=t[a]}),n}const gw=Object.freeze(Object.defineProperty({__proto__:null,default:Pr,isPlainObject:an},Symbol.toStringTag,{value:"Module"}));function Ka(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 yw=Object.freeze(Object.defineProperty({__proto__:null,default:Ka},Symbol.toStringTag,{value:"Module"}));var Sc={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 Dd;function vw(){if(Dd)return Qe;Dd=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"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),_=Symbol.for("react.client.reference");function A(g){if(typeof g=="object"&&g!==null){var T=g.$$typeof;switch(T){case e:switch(g=g.type,g){case r:case a:case n:case f:case h:case v:return g;default:switch(g=g&&g.$$typeof,g){case s:case d:case p:case m:return g;case o:return g;default:return T}}case t:return T}}}return Qe.ContextConsumer=o,Qe.ContextProvider=s,Qe.Element=e,Qe.ForwardRef=d,Qe.Fragment=r,Qe.Lazy=p,Qe.Memo=m,Qe.Portal=t,Qe.Profiler=a,Qe.StrictMode=n,Qe.Suspense=f,Qe.SuspenseList=h,Qe.isContextConsumer=function(g){return A(g)===o},Qe.isContextProvider=function(g){return A(g)===s},Qe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Qe.isForwardRef=function(g){return A(g)===d},Qe.isFragment=function(g){return A(g)===r},Qe.isLazy=function(g){return A(g)===p},Qe.isMemo=function(g){return A(g)===m},Qe.isPortal=function(g){return A(g)===t},Qe.isProfiler=function(g){return A(g)===a},Qe.isStrictMode=function(g){return A(g)===n},Qe.isSuspense=function(g){return A(g)===f},Qe.isSuspenseList=function(g){return A(g)===h},Qe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===a||g===n||g===f||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===m||g.$$typeof===s||g.$$typeof===o||g.$$typeof===d||g.$$typeof===_||g.getModuleId!==void 0)},Qe.typeOf=A,Qe}var qd;function bw(){return qd||(qd=1,Sc.exports=vw()),Sc.exports}var Ud=bw();const ww=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function rh(e){const t=`${e}`.match(ww);return t&&t[1]||""}function nh(e,t=""){return e.displayName||e.name||rh(e)||t}function Hd(e,t,r){const n=nh(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function _w(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return nh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ud.ForwardRef:return Hd(e,e.render,"ForwardRef");case Ud.Memo:return Hd(e,e.type,"memo");default:return}}}const Cw=Object.freeze(Object.defineProperty({__proto__:null,default:_w,getFunctionName:rh},Symbol.toStringTag,{value:"Module"}));function pn(e){if(typeof e!="string")throw new Error(Ka(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ew=Object.freeze(Object.defineProperty({__proto__:null,default:pn},Symbol.toStringTag,{value:"Module"}));function xw(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Sw(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Tw(e,t){return()=>null}function Aw(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 ah(e){return e&&e.ownerDocument||document}function kw(e){return ah(e).defaultView||window}function Iw(e,t){return()=>null}function oh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const sh=typeof window<"u"?ne.useLayoutEffect:ne.useEffect;let Vd=0;function Rw(e){const[t,r]=ne.useState(e),n=e||t;return ne.useEffect(()=>{t==null&&(Vd+=1,r(`mui-${Vd}`))},[t]),n}const zd=Nc.useId;function Nw(e){if(zd!==void 0){const t=zd();return e??t}return Rw(e)}function Pw(e,t,r,n,a){return null}function Ow({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=ne.useRef(e!==void 0),[o,s]=ne.useState(t),d=a?e:o,f=ne.useCallback(h=>{a||s(h)},[]);return[d,f]}function jw(e){const t=ne.useRef(e);return sh(()=>{t.current=e}),ne.useRef((...r)=>(0,t.current)(...r)).current}function Lw(...e){return ne.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{oh(r,t)})},e)}const Gd={};function Bw(e,t){const r=ne.useRef(Gd);return r.current===Gd&&(r.current=e(t)),r}const Mw=[];function Fw(e){ne.useEffect(e,Mw)}class $s{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new $s}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function L8(){const e=Bw($s.create).current;return Fw(e.disposeEffect),e}let Ds=!0,nl=!1;const $w=new $s,Dw={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 qw(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Dw[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Uw(e){e.metaKey||e.altKey||e.ctrlKey||(Ds=!0)}function Tc(){Ds=!1}function Hw(){this.visibilityState==="hidden"&&nl&&(Ds=!0)}function Vw(e){e.addEventListener("keydown",Uw,!0),e.addEventListener("mousedown",Tc,!0),e.addEventListener("pointerdown",Tc,!0),e.addEventListener("touchstart",Tc,!0),e.addEventListener("visibilitychange",Hw,!0)}function zw(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ds||qw(t)}function Gw(){const e=ne.useCallback(a=>{a!=null&&Vw(a.ownerDocument)},[]),t=ne.useRef(!1);function r(){return t.current?(nl=!0,$w.start(100,()=>{nl=!1}),t.current=!1,!0):!1}function n(a){return zw(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function al(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]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=Ye({},o),Object.keys(a).forEach(s=>{r[n][s]=al(a[s],o[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Ww(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,s)=>{if(s){const d=t(s);d!==""&&o.push(d),r&&r[s]&&o.push(r[s])}return o},[]).join(" ")}),n}const Wd=e=>e,Zw=()=>{let e=Wd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Wd}}},ih=Zw(),Kw={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 ch(e,t,r="Mui"){const n=Kw[t];return n?`${r}-${n}`:`${ih.generate(e)}-${t}`}function Yw(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=ch(e,a,r)}),n}function Qw(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Jw=Object.freeze(Object.defineProperty({__proto__:null,default:Qw},Symbol.toStringTag,{value:"Module"}));function gn(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 lh(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=lh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Xw(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=lh(e))&&(n&&(n+=" "),n+=t);return n}const uh=ne.createContext(void 0);function B8({value:e,children:t}){return u.jsx(uh.Provider,{value:e,children:t})}function e5(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?al(a.defaultProps,n):!a.styleOverrides&&!a.variants?al(a,n):n}function t5({props:e,name:t}){const r=ne.useContext(uh);return e5({props:e,name:t,theme:{components:r}})}function r5(e){return t5(e)}var En={},Ac={exports:{}},Zd;function n5(){return Zd||(Zd=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 o in a)({}).hasOwnProperty.call(a,o)&&(r[o]=a[o])}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})(Ac)),Ac.exports}var kc={exports:{}},Kd;function a5(){return Kd||(Kd=1,(function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.indexOf(o)!==-1)continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(kc)),kc.exports}function o5(e,t){const r=ff({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 Ic=new Map;function s5(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,a=ne.useMemo(()=>{const o=`${t}-${r}`;if(typeof document=="object"&&Ic.has(o))return Ic.get(o);const s=o5(t,r);return Ic.set(o,s),s},[t,r]);return t||r?u.jsx(Dp,{value:a,children:n}):n}function i5(e){return e==null||Object.keys(e).length===0}function c5(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(i5(a)?r:a):t;return u.jsx(zp,{styles:n})}function l5(e,t){return wt(e,t)}const u5=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Yd=[];function d5(e){return Yd[0]=e,ao(Yd)}const f5=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:c5,StyledEngineProvider:s5,ThemeContext:Ps,css:Cl,default:l5,internal_processStyles:u5,internal_serializeStyles:d5,keyframes:vf},Symbol.toStringTag,{value:"Module"})),h5=Kr(f5),m5=Kr(gw),p5=Kr(Ew),g5=Kr(Cw),y5=["values","unit","step"],v5=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 dh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=gn(e,y5),o=v5(t),s=Object.keys(o);function d(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r})`}function f(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-n/100}${r})`}function h(v,_){const A=s.indexOf(_);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r}) and (max-width:${(A!==-1&&typeof t[s[A]]=="number"?t[s[A]]:_)-n/100}${r})`}function m(v){return s.indexOf(v)+1<s.length?h(v,s[s.indexOf(v)+1]):d(v)}function p(v){const _=s.indexOf(v);return _===0?d(s[1]):_===s.length-1?f(s[_]):h(v,s[s.indexOf(v)+1]).replace("@media","@media not all and")}return Ye({keys:s,values:o,up:d,down:f,between:h,only:m,not:p,unit:r},a)}const b5={borderRadius:4};function $a(e,t){return t?Pr(e,t,{clone:!1}):e}const jl={xs:0,sm:600,md:900,lg:1200,xl:1536},Qd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jl[e]}px)`};function Zr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||Qd;return t.reduce((s,d,f)=>(s[o.up(o.keys[f])]=r(t[f]),s),{})}if(typeof t=="object"){const o=n.breakpoints||Qd;return Object.keys(t).reduce((s,d)=>{if(Object.keys(o.values||jl).indexOf(d)!==-1){const f=o.up(d);s[f]=r(t[d],d)}else{const f=d;s[f]=t[f]}return s},{})}return r(t)}function w5(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function Jd(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function qs(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function Ss(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=qs(e,r)||n,t&&(a=t(a,n,e)),a}function pt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=s=>{if(s[t]==null)return null;const d=s[t],f=s.theme,h=qs(f,n)||{};return Zr(s,d,p=>{let v=Ss(h,a,p);return p===v&&typeof p=="string"&&(v=Ss(h,a,`${t}${p==="default"?"":pn(p)}`,p)),r===!1?v:{[r]:v}})};return o.propTypes={},o.filterProps=[t],o}function _5(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const C5={m:"margin",p:"padding"},E5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},x5=_5(e=>{if(e.length>2)if(Xd[e])e=Xd[e];else return[e];const[t,r]=e.split(""),n=C5[t],a=E5[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),Ll=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ll,...Bl];function co(e,t,r,n){var a;const o=(a=qs(e,t,!1))!=null?a:r;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function fh(e){return co(e,"spacing",8)}function lo(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 S5(e,t){return r=>e.reduce((n,a)=>(n[a]=lo(t,r),n),{})}function T5(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=x5(r),o=S5(a,n),s=e[r];return Zr(e,s,o)}function hh(e,t){const r=fh(e.theme);return Object.keys(e).map(n=>T5(e,t,n,r)).reduce($a,{})}function ut(e){return hh(e,Ll)}ut.propTypes={};ut.filterProps=Ll;function dt(e){return hh(e,Bl)}dt.propTypes={};dt.filterProps=Bl;function A5(e=8){if(e.mui)return e;const t=fh({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function Us(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?$a(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function cr(e){return typeof e!="number"?e:`${e}px solid`}function ur(e,t){return pt({prop:e,themeKey:"borders",transform:t})}const k5=ur("border",cr),I5=ur("borderTop",cr),R5=ur("borderRight",cr),N5=ur("borderBottom",cr),P5=ur("borderLeft",cr),O5=ur("borderColor"),j5=ur("borderTopColor"),L5=ur("borderRightColor"),B5=ur("borderBottomColor"),M5=ur("borderLeftColor"),F5=ur("outline",cr),$5=ur("outlineColor"),Hs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=co(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:lo(t,n)});return Zr(e,e.borderRadius,r)}return null};Hs.propTypes={};Hs.filterProps=["borderRadius"];Us(k5,I5,R5,N5,P5,O5,j5,L5,B5,M5,Hs,F5,$5);const Vs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=co(e.theme,"spacing",8),r=n=>({gap:lo(t,n)});return Zr(e,e.gap,r)}return null};Vs.propTypes={};Vs.filterProps=["gap"];const zs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=co(e.theme,"spacing",8),r=n=>({columnGap:lo(t,n)});return Zr(e,e.columnGap,r)}return null};zs.propTypes={};zs.filterProps=["columnGap"];const Gs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=co(e.theme,"spacing",8),r=n=>({rowGap:lo(t,n)});return Zr(e,e.rowGap,r)}return null};Gs.propTypes={};Gs.filterProps=["rowGap"];const D5=pt({prop:"gridColumn"}),q5=pt({prop:"gridRow"}),U5=pt({prop:"gridAutoFlow"}),H5=pt({prop:"gridAutoColumns"}),V5=pt({prop:"gridAutoRows"}),z5=pt({prop:"gridTemplateColumns"}),G5=pt({prop:"gridTemplateRows"}),W5=pt({prop:"gridTemplateAreas"}),Z5=pt({prop:"gridArea"});Us(Vs,zs,Gs,D5,q5,U5,H5,V5,z5,G5,W5,Z5);function Xn(e,t){return t==="grey"?t:e}const K5=pt({prop:"color",themeKey:"palette",transform:Xn}),Y5=pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xn}),Q5=pt({prop:"backgroundColor",themeKey:"palette",transform:Xn});Us(K5,Y5,Q5);function nr(e){return e<=1&&e!==0?`${e*100}%`:e}const J5=pt({prop:"width",transform:nr}),Ml=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||jl[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:nr(r)}};return Zr(e,e.maxWidth,t)}return null};Ml.filterProps=["maxWidth"];const X5=pt({prop:"minWidth",transform:nr}),e4=pt({prop:"height",transform:nr}),t4=pt({prop:"maxHeight",transform:nr}),r4=pt({prop:"minHeight",transform:nr});pt({prop:"size",cssProperty:"width",transform:nr});pt({prop:"size",cssProperty:"height",transform:nr});const n4=pt({prop:"boxSizing"});Us(J5,Ml,X5,e4,t4,r4,n4);const uo={border:{themeKey:"borders",transform:cr},borderTop:{themeKey:"borders",transform:cr},borderRight:{themeKey:"borders",transform:cr},borderBottom:{themeKey:"borders",transform:cr},borderLeft:{themeKey:"borders",transform:cr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:cr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hs},color:{themeKey:"palette",transform:Xn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xn},backgroundColor:{themeKey:"palette",transform:Xn},p:{style:dt},pt:{style:dt},pr:{style:dt},pb:{style:dt},pl:{style:dt},px:{style:dt},py:{style:dt},padding:{style:dt},paddingTop:{style:dt},paddingRight:{style:dt},paddingBottom:{style:dt},paddingLeft:{style:dt},paddingX:{style:dt},paddingY:{style:dt},paddingInline:{style:dt},paddingInlineStart:{style:dt},paddingInlineEnd:{style:dt},paddingBlock:{style:dt},paddingBlockStart:{style:dt},paddingBlockEnd:{style:dt},m:{style:ut},mt:{style:ut},mr:{style:ut},mb:{style:ut},ml:{style:ut},mx:{style:ut},my:{style:ut},margin:{style:ut},marginTop:{style:ut},marginRight:{style:ut},marginBottom:{style:ut},marginLeft:{style:ut},marginX:{style:ut},marginY:{style:ut},marginInline:{style:ut},marginInlineStart:{style:ut},marginInlineEnd:{style:ut},marginBlock:{style:ut},marginBlockStart:{style:ut},marginBlockEnd:{style:ut},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:Vs},rowGap:{style:Gs},columnGap:{style:zs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nr},maxWidth:{style:Ml},minWidth:{transform:nr},height:{transform:nr},maxHeight:{transform:nr},minHeight:{transform:nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function a4(...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 o4(e,t){return typeof e=="function"?e(t):e}function mh(){function e(r,n,a,o){const s={[r]:n,theme:a},d=o[r];if(!d)return{[r]:n};const{cssProperty:f=r,themeKey:h,transform:m,style:p}=d;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[r]:n};const v=qs(a,h)||{};return p?p(s):Zr(s,n,A=>{let g=Ss(v,m,A);return A===g&&typeof A=="string"&&(g=Ss(v,m,`${r}${A==="default"?"":pn(A)}`,A)),f===!1?g:{[f]:g}})}function t(r){var n;const{sx:a,theme:o={},nested:s}=r||{};if(!a)return null;const d=(n=o.unstable_sxConfig)!=null?n:uo;function f(h){let m=h;if(typeof h=="function")m=h(o);else if(typeof h!="object")return h;if(!m)return null;const p=w5(o.breakpoints),v=Object.keys(p);let _=p;return Object.keys(m).forEach(A=>{const g=o4(m[A],o);if(g!=null)if(typeof g=="object")if(d[A])_=$a(_,e(A,g,o,d));else{const T=Zr({theme:o},g,z=>({[A]:z}));a4(T,g)?_[A]=t({sx:g,theme:o,nested:!0}):_=$a(_,T)}else _=$a(_,e(A,g,o,d))}),!s&&o.modularCssLayers?{"@layer sx":Jd(v,_)}:Jd(v,_)}return Array.isArray(a)?a.map(f):f(a)}return t}const Ws=mh();Ws.filterProps=["sx"];function ph(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 s4=["breakpoints","palette","spacing","shape"];function gh(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,s=gn(e,s4),d=dh(r),f=A5(a);let h=Pr({breakpoints:d,direction:"ltr",components:{},palette:Ye({mode:"light"},n),spacing:f,shape:Ye({},b5,o)},s);return h.applyStyles=ph,h=t.reduce((m,p)=>Pr(m,p),h),h.unstable_sxConfig=Ye({},uo,s==null?void 0:s.unstable_sxConfig),h.unstable_sx=function(p){return Ws({sx:p,theme:this})},h}const i4=Object.freeze(Object.defineProperty({__proto__:null,default:gh,private_createBreakpoints:dh,unstable_applyStyles:ph},Symbol.toStringTag,{value:"Module"})),c4=Kr(i4),l4=["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:uo;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function d4(e){const{sx:t}=e,r=gn(e,l4),{systemProps:n,otherProps:a}=u4(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...s)=>{const d=t(...s);return an(d)?Ye({},n,d):n}:o=Ye({},n,t),Ye({},a,{sx:o})}const f4=Object.freeze(Object.defineProperty({__proto__:null,default:Ws,extendSxProp:d4,unstable_createStyleFunctionSx:mh,unstable_defaultSxConfig:uo},Symbol.toStringTag,{value:"Module"})),h4=Kr(f4);var e2;function m4(){if(e2)return En;e2=1;var e=Ol();Object.defineProperty(En,"__esModule",{value:!0}),En.default=K,En.shouldForwardProp=A,En.systemDefaultTheme=void 0;var t=e(n5()),r=e(a5()),n=p(h5),a=m5;e(p5),e(g5);var o=e(c4),s=e(h4);const d=["ownerState"],f=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m(U){if(typeof WeakMap!="function")return null;var x=new WeakMap,q=new WeakMap;return(m=function(Q){return Q?q:x})(U)}function p(U,x){if(U&&U.__esModule)return U;if(U===null||typeof U!="object"&&typeof U!="function")return{default:U};var q=m(x);if(q&&q.has(U))return q.get(U);var Q={__proto__:null},ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ae in U)if(ae!=="default"&&Object.prototype.hasOwnProperty.call(U,ae)){var J=ee?Object.getOwnPropertyDescriptor(U,ae):null;J&&(J.get||J.set)?Object.defineProperty(Q,ae,J):Q[ae]=U[ae]}return Q.default=U,q&&q.set(U,Q),Q}function v(U){return Object.keys(U).length===0}function _(U){return typeof U=="string"&&U.charCodeAt(0)>96}function A(U){return U!=="ownerState"&&U!=="theme"&&U!=="sx"&&U!=="as"}function g(U,x){return x&&U&&typeof U=="object"&&U.styles&&!U.styles.startsWith("@layer")&&(U.styles=`@layer ${x}{${String(U.styles)}}`),U}const T=En.systemDefaultTheme=(0,o.default)(),z=U=>U&&U.charAt(0).toLowerCase()+U.slice(1);function b({defaultTheme:U,theme:x,themeId:q}){return v(x)?U:x[q]||x}function I(U){return U?(x,q)=>q[U]:null}function w(U,x,q){let{ownerState:Q}=x,ee=(0,r.default)(x,d);const ae=typeof U=="function"?U((0,t.default)({ownerState:Q},ee)):U;if(Array.isArray(ae))return ae.flatMap(J=>w(J,(0,t.default)({ownerState:Q},ee),q));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(F=>{(Q==null?void 0:Q[F])!==Z.props[F]&&ee[F]!==Z.props[F]&&(P=!1)}),P){Array.isArray(N)||(N=[N]);const F=typeof Z.style=="function"?Z.style((0,t.default)({ownerState:Q},ee,Q)):Z.style;N.push(q?g((0,n.internal_serializeStyles)(F),q):F)}}),N}return q?g((0,n.internal_serializeStyles)(ae),q):ae}function K(U={}){const{themeId:x,defaultTheme:q=T,rootShouldForwardProp:Q=A,slotShouldForwardProp:ee=A}=U,ae=J=>(0,s.default)((0,t.default)({},J,{theme:b((0,t.default)({},J,{defaultTheme:q,themeId:x}))}));return ae.__mui_systemSx=!0,(J,L={})=>{(0,n.internal_processStyles)(J,we=>we.filter(Ee=>!(Ee!=null&&Ee.__mui_systemSx)));const{name:N,slot:Z,skipVariantsResolver:P,skipSx:F,overridesResolver:H=I(z(Z))}=L,R=(0,r.default)(L,h),j=N&&N.startsWith("Mui")||Z?"components":"custom",G=P!==void 0?P:Z&&Z!=="Root"&&Z!=="root"||!1,Y=F||!1;let ce,ie=A;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)?Ee=>{const ye=b({theme:Ee.theme,defaultTheme:q,themeId:x});return w(we,(0,t.default)({},Ee,{theme:ye}),ye.modularCssLayers?j:void 0)}:we,Re=(we,...Ee)=>{let ye=de(we);const Ge=Ee?Ee.map(de):[];N&&H&&Ge.push(fe=>{const ve=b((0,t.default)({},fe,{defaultTheme:q,themeId:x}));if(!ve.components||!ve.components[N]||!ve.components[N].styleOverrides)return null;const Ae=ve.components[N].styleOverrides,Be={};return Object.entries(Ae).forEach(([Me,ht])=>{Be[Me]=w(ht,(0,t.default)({},fe,{theme:ve}),ve.modularCssLayers?"theme":void 0)}),H(fe,Be)}),N&&!G&&Ge.push(fe=>{var ve;const Ae=b((0,t.default)({},fe,{defaultTheme:q,themeId:x})),Be=Ae==null||(ve=Ae.components)==null||(ve=ve[N])==null?void 0:ve.variants;return w({variants:Be},(0,t.default)({},fe,{theme:Ae}),Ae.modularCssLayers?"theme":void 0)}),Y||Ge.push(ae);const Ue=Ge.length-Ee.length;if(Array.isArray(we)&&Ue>0){const fe=new Array(Ue).fill("");ye=[...we,...fe],ye.raw=[...we.raw,...fe]}const he=le(ye,...Ge);return J.muiName&&(he.muiName=J.muiName),he};return le.withConfig&&(Re.withConfig=le.withConfig),Re}}return En}var p4=m4();const g4=As(p4);function y4(e,t){return Ye({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var lt={};const v4=Kr(yw),b4=Kr(Jw);var t2;function w4(){if(t2)return lt;t2=1;var e=Ol();Object.defineProperty(lt,"__esModule",{value:!0}),lt.alpha=A,lt.blend=U,lt.colorChannel=void 0,lt.darken=T,lt.decomposeColor=s,lt.emphasize=w,lt.getContrastRatio=_,lt.getLuminance=v,lt.hexToRgb=a,lt.hslToRgb=p,lt.lighten=b,lt.private_safeAlpha=g,lt.private_safeColorChannel=void 0,lt.private_safeDarken=z,lt.private_safeEmphasize=K,lt.private_safeLighten=I,lt.recomposeColor=h,lt.rgbToHex=m;var t=e(v4),r=e(b4);function n(x,q=0,Q=1){return(0,r.default)(x,q,Q)}function a(x){x=x.slice(1);const q=new RegExp(`.{1,${x.length>=6?2:1}}`,"g");let Q=x.match(q);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 o(x){const q=x.toString(16);return q.length===1?`0${q}`:q}function s(x){if(x.type)return x;if(x.charAt(0)==="#")return s(a(x));const q=x.indexOf("("),Q=x.substring(0,q);if(["rgb","rgba","hsl","hsla","color"].indexOf(Q)===-1)throw new Error((0,t.default)(9,x));let ee=x.substring(q+1,x.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 d=x=>{const q=s(x);return q.values.slice(0,3).map((Q,ee)=>q.type.indexOf("hsl")!==-1&&ee!==0?`${Q}%`:Q).join(" ")};lt.colorChannel=d;const f=(x,q)=>{try{return d(x)}catch{return x}};lt.private_safeColorChannel=f;function h(x){const{type:q,colorSpace:Q}=x;let{values:ee}=x;return q.indexOf("rgb")!==-1?ee=ee.map((ae,J)=>J<3?parseInt(ae,10):ae):q.indexOf("hsl")!==-1&&(ee[1]=`${ee[1]}%`,ee[2]=`${ee[2]}%`),q.indexOf("color")!==-1?ee=`${Q} ${ee.join(" ")}`:ee=`${ee.join(", ")}`,`${q}(${ee})`}function m(x){if(x.indexOf("#")===0)return x;const{values:q}=s(x);return`#${q.map((Q,ee)=>o(ee===3?Math.round(255*Q):Q)).join("")}`}function p(x){x=s(x);const{values:q}=x,Q=q[0],ee=q[1]/100,ae=q[2]/100,J=ee*Math.min(ae,1-ae),L=(P,F=(P+Q/30)%12)=>ae-J*Math.max(Math.min(F-3,9-F,1),-1);let N="rgb";const Z=[Math.round(L(0)*255),Math.round(L(8)*255),Math.round(L(4)*255)];return x.type==="hsla"&&(N+="a",Z.push(q[3])),h({type:N,values:Z})}function v(x){x=s(x);let q=x.type==="hsl"||x.type==="hsla"?s(p(x)).values:x.values;return q=q.map(Q=>(x.type!=="color"&&(Q/=255),Q<=.03928?Q/12.92:((Q+.055)/1.055)**2.4)),Number((.2126*q[0]+.7152*q[1]+.0722*q[2]).toFixed(3))}function _(x,q){const Q=v(x),ee=v(q);return(Math.max(Q,ee)+.05)/(Math.min(Q,ee)+.05)}function A(x,q){return x=s(x),q=n(q),(x.type==="rgb"||x.type==="hsl")&&(x.type+="a"),x.type==="color"?x.values[3]=`/${q}`:x.values[3]=q,h(x)}function g(x,q,Q){try{return A(x,q)}catch{return x}}function T(x,q){if(x=s(x),q=n(q),x.type.indexOf("hsl")!==-1)x.values[2]*=1-q;else if(x.type.indexOf("rgb")!==-1||x.type.indexOf("color")!==-1)for(let Q=0;Q<3;Q+=1)x.values[Q]*=1-q;return h(x)}function z(x,q,Q){try{return T(x,q)}catch{return x}}function b(x,q){if(x=s(x),q=n(q),x.type.indexOf("hsl")!==-1)x.values[2]+=(100-x.values[2])*q;else if(x.type.indexOf("rgb")!==-1)for(let Q=0;Q<3;Q+=1)x.values[Q]+=(255-x.values[Q])*q;else if(x.type.indexOf("color")!==-1)for(let Q=0;Q<3;Q+=1)x.values[Q]+=(1-x.values[Q])*q;return h(x)}function I(x,q,Q){try{return b(x,q)}catch{return x}}function w(x,q=.15){return v(x)>.5?T(x,q):b(x,q)}function K(x,q,Q){try{return w(x,q)}catch{return x}}function U(x,q,Q,ee=1){const ae=(Z,P)=>Math.round((Z**(1/ee)*(1-Q)+P**(1/ee)*Q)**ee),J=s(x),L=s(q),N=[ae(J.values[0],L.values[0]),ae(J.values[1],L.values[1]),ae(J.values[2],L.values[2])];return h({type:"rgb",values:N})}return lt}var ol=w4();const Ya={black:"#000",white:"#fff"},_4={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"},Wn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Zn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ja={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Kn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Yn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Qn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},C4=["mode","contrastThreshold","tonalOffset"],r2={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:Ya.white,default:Ya.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}},Rc={text:{primary:Ya.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:Ya.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 n2(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ol.lighten(e.main,a):t==="dark"&&(e.dark=ol.darken(e.main,o)))}function E4(e="light"){return e==="dark"?{main:Kn[200],light:Kn[50],dark:Kn[400]}:{main:Kn[700],light:Kn[400],dark:Kn[800]}}function x4(e="light"){return e==="dark"?{main:Wn[200],light:Wn[50],dark:Wn[400]}:{main:Wn[500],light:Wn[300],dark:Wn[700]}}function S4(e="light"){return e==="dark"?{main:Zn[500],light:Zn[300],dark:Zn[700]}:{main:Zn[700],light:Zn[400],dark:Zn[800]}}function T4(e="light"){return e==="dark"?{main:Yn[400],light:Yn[300],dark:Yn[700]}:{main:Yn[700],light:Yn[500],dark:Yn[900]}}function A4(e="light"){return e==="dark"?{main:Qn[400],light:Qn[300],dark:Qn[700]}:{main:Qn[800],light:Qn[500],dark:Qn[900]}}function k4(e="light"){return e==="dark"?{main:ja[400],light:ja[300],dark:ja[700]}:{main:"#ed6c02",light:ja[500],dark:ja[900]}}function I4(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=gn(e,C4),o=e.primary||E4(t),s=e.secondary||x4(t),d=e.error||S4(t),f=e.info||T4(t),h=e.success||A4(t),m=e.warning||k4(t);function p(g){return ol.getContrastRatio(g,Rc.text.primary)>=r?Rc.text.primary:r2.text.primary}const v=({color:g,name:T,mainShade:z=500,lightShade:b=300,darkShade:I=700})=>{if(g=Ye({},g),!g.main&&g[z]&&(g.main=g[z]),!g.hasOwnProperty("main"))throw new Error(Ka(11,T?` (${T})`:"",z));if(typeof g.main!="string")throw new Error(Ka(12,T?` (${T})`:"",JSON.stringify(g.main)));return n2(g,"light",b,n),n2(g,"dark",I,n),g.contrastText||(g.contrastText=p(g.main)),g},_={dark:Rc,light:r2};return Pr(Ye({common:Ye({},Ya),mode:t,primary:v({color:o,name:"primary"}),secondary:v({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:d,name:"error"}),warning:v({color:m,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:h,name:"success"}),grey:_4,contrastThreshold:r,getContrastText:p,augmentColor:v,tonalOffset:n},_[t]),a)}const R4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function N4(e){return Math.round(e*1e5)/1e5}const a2={textTransform:"uppercase"},o2='"Roboto", "Helvetica", "Arial", sans-serif';function P4(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=o2,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:d=500,fontWeightBold:f=700,htmlFontSize:h=16,allVariants:m,pxToRem:p}=r,v=gn(r,R4),_=a/14,A=p||(z=>`${z/h*_}rem`),g=(z,b,I,w,K)=>Ye({fontFamily:n,fontWeight:z,fontSize:A(b),lineHeight:I},n===o2?{letterSpacing:`${N4(w/b)}em`}:{},K,m),T={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(d,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(d,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(d,14,1.75,.4,a2),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,a2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pr(Ye({htmlFontSize:h,pxToRem:A,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:d,fontWeightBold:f},T),v,{clone:!1})}const O4=.2,j4=.14,L4=.12;function st(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${O4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${j4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${L4})`].join(",")}const B4=["none",st(0,2,1,-1,0,1,1,0,0,1,3,0),st(0,3,1,-2,0,2,2,0,0,1,5,0),st(0,3,3,-2,0,3,4,0,0,1,8,0),st(0,2,4,-1,0,4,5,0,0,1,10,0),st(0,3,5,-1,0,5,8,0,0,1,14,0),st(0,3,5,-1,0,6,10,0,0,1,18,0),st(0,4,5,-2,0,7,10,1,0,2,16,1),st(0,5,5,-3,0,8,10,1,0,3,14,2),st(0,5,6,-3,0,9,12,1,0,3,16,2),st(0,6,6,-3,0,10,14,1,0,4,18,3),st(0,6,7,-4,0,11,15,1,0,4,20,3),st(0,7,8,-4,0,12,17,2,0,5,22,4),st(0,7,8,-4,0,13,19,2,0,5,24,4),st(0,7,9,-4,0,14,21,2,0,5,26,4),st(0,8,9,-5,0,15,22,2,0,6,28,5),st(0,8,10,-5,0,16,24,2,0,6,30,5),st(0,8,11,-5,0,17,26,2,0,6,32,5),st(0,9,11,-5,0,18,28,2,0,7,34,6),st(0,9,12,-6,0,19,29,2,0,7,36,6),st(0,10,13,-6,0,20,31,3,0,8,38,7),st(0,10,13,-6,0,21,33,3,0,8,40,7),st(0,10,14,-6,0,22,35,3,0,8,42,7),st(0,11,14,-7,0,23,36,3,0,9,44,8),st(0,11,15,-7,0,24,38,3,0,9,46,8)],M4=["duration","easing","delay"],F4={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)"},$4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s2(e){return`${Math.round(e)}ms`}function D4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function q4(e){const t=Ye({},F4,e.easing),r=Ye({},$4,e.duration);return Ye({getAutoHeightDuration:D4,create:(a=["all"],o={})=>{const{duration:s=r.standard,easing:d=t.easeInOut,delay:f=0}=o;return gn(o,M4),(Array.isArray(a)?a:[a]).map(h=>`${h} ${typeof s=="string"?s:s2(s)} ${d} ${typeof f=="string"?f:s2(f)}`).join(",")}},e,{easing:t,duration:r})}const U4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},H4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function yh(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,s=gn(e,H4);if(e.vars)throw new Error(Ka(18));const d=I4(n),f=gh(e);let h=Pr(f,{mixins:y4(f.breakpoints,r),palette:d,shadows:B4.slice(),typography:P4(d,o),transitions:q4(a),zIndex:Ye({},U4)});return h=Pr(h,s),h=t.reduce((m,p)=>Pr(m,p),h),h.unstable_sxConfig=Ye({},uo,s==null?void 0:s.unstable_sxConfig),h.unstable_sx=function(p){return Ws({sx:p,theme:this})},h}function M8(...e){return yh(...e)}const V4=yh(),z4="$$material";function G4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const W4=e=>G4(e)&&e!=="classes",Z4=g4({themeId:z4,defaultTheme:V4,rootShouldForwardProp:W4});function K4(e){return ch("MuiSvgIcon",e)}Yw("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Y4=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Q4=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${pn(t)}`,`fontSize${pn(r)}`]};return Ww(a,K4,n)},J4=Z4("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${pn(r.color)}`],t[`fontSize${pn(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,s,d,f,h,m,p,v,_,A;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,24))||"1.5rem",large:((h=e.typography)==null||(m=h.pxToRem)==null?void 0:m.call(h,35))||"2.1875rem"}[t.fontSize],color:(p=(v=(e.vars||e).palette)==null||(v=v[t.color])==null?void 0:v.main)!=null?p:{action:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(A=(e.vars||e).palette)==null||(A=A.action)==null?void 0:A.disabled,inherit:void 0}[t.color]}}),sl=ne.forwardRef(function(t,r){const n=r5({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:d="svg",fontSize:f="medium",htmlColor:h,inheritViewBox:m=!1,titleAccess:p,viewBox:v="0 0 24 24"}=n,_=gn(n,Y4),A=ne.isValidElement(a)&&a.type==="svg",g=Ye({},n,{color:s,component:d,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:v,hasSvgAsChild:A}),T={};m||(T.viewBox=v);const z=Q4(g);return u.jsxs(J4,Ye({as:d,className:Xw(z.root,o),focusable:"false",color:h,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},T,_,A&&a.props,{ownerState:g,children:[A?a.props.children:a,p?u.jsx("title",{children:p}):null]}))});sl.muiName="SvgIcon";function X4(e,t){function r(n,a){return u.jsx(sl,Ye({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=sl.muiName,ne.memo(ne.forwardRef(r))}const e_={configure:e=>{ih.configure(e)}},t_=Object.freeze(Object.defineProperty({__proto__:null,capitalize:pn,createChainedFunction:xw,createSvgIcon:X4,debounce:Sw,deprecatedPropType:Tw,isMuiElement:Aw,ownerDocument:ah,ownerWindow:kw,requirePropFactory:Iw,setRef:oh,unstable_ClassNameGenerator:e_,unstable_useEnhancedEffect:sh,unstable_useId:Nw,unsupportedProp:Pw,useControlled:Ow,useEventCallback:jw,useForkRef:Lw,useIsFocusVisible:Gw},Symbol.toStringTag,{value:"Module"})),r_=Kr(t_);var i2;function n_(){return i2||(i2=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=r_})(xc)),xc}var c2;function a_(){if(c2)return Oa;c2=1;var e=Ol();Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.default=void 0;var t=e(n_()),r=Yh();return Oa.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"),Oa}var o_=a_();const vh=As(o_),Dn=`${He.nftApiUrl}/v1`;function Fl(e){if(!e)return 0;try{return Math.ceil(Number(U2(e))*10)}catch{return 0}}function F8(e){if(!e)return 0;try{const t=BigInt(e),r=10n**16n;return Number((t+r-1n)/r)}catch{return 0}}async function $8(e,t){var n,a,o;const r=new URLSearchParams({contractAddresses:e,itemId:t,first:"1"});try{const s=await fetch(`${He.nftApiUrl}/v2/catalog?${r.toString()}`);if(!s.ok)return"";const{data:d}=await s.json(),f=(n=d==null?void 0:d[0])==null?void 0:n.data;return(((a=f==null?void 0:f.wearable)==null?void 0:a.description)??((o=f==null?void 0:f.emote)==null?void 0:o.description)??"").trim()}catch{return""}}async function D8(e){const{listings:t}=await fo({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 q8(e){const{listings:t}=await fo({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 bh(e,t){var o;const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${Dn}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:a}=await n.json();return((o=a==null?void 0:a[0])==null?void 0:o.nft)??null}function $l(e){return{id:e.tradeId,tradeId:e.tradeId,name:e.name,creator:e.creator,contractAddress:e.contractAddress,itemId:e.itemId,tokenId:e.tokenId??void 0,category:e.category,wearableCategory:e.wearableCategory??void 0,rarity:e.rarity,network:e.network,chainId:e.chainId,thumbnail:e.thumbnail,priceCredits:e.priceCredits,gender:e.gender??null,isSmart:e.isSmart??!1,available:e.listingType==="primary"?e.available:void 0,compareAtCredits:e.compareAtCredits!=null&&e.compareAtCredits>e.priceCredits?e.compareAtCredits:void 0,saleEndsAt:e.saleEndsAt!=null?e.saleEndsAt*1e3:void 0}}async function fo(e){var a,o;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(",")),(o=e.wearableCategories)!=null&&o.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 U8(e,t){const{listings:r}=await fo({contractAddress:e,itemId:t,first:1});return r[0]?$l(r[0]):null}async function wh({first:e=100,...t}={}){const{listings:r,total:n}=await fo({...t,first:e});return{items:r.map($l),total:n}}async function H8(e,t){const{items:r}=await s_({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 V8(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(o=>!o.tradeId).map(o=>({tokenId:o.tokenId,issuedId:o.issuedId,seller:o.owner,contractAddress:o.contractAddress}))}function _h(e){return{...$l(e),source:e.source,manaWei:e.manaWei??null}}function Ch(e,t,r){var a,o;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(",")),(o=t.wearableCategories)!=null&&o.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 s_({first:e=100,...t}={}){const r=Ch(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(),o=a.data??[];return{items:o.map(_h),total:a.total??o.length}}function i_(e){return{..._h(e),listingCount:e.listingCount}}async function z8({first:e=100,...t}={}){const r=Ch(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(),o=a.data??[];return{items:o.map(i_),total:a.total??o.length}}function Dl(e){var t,r,n,a,o;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?Fl(e.order.price):void 0,tradeId:(o=e.order)==null?void 0:o.tradeId}}async function G8(e,t,r){try{const n=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,itemId:r,first:"1"}),a=await fetch(`${Dn}/nfts?${n.toString()}`);if(!a.ok)return!1;const{total:o}=await a.json();return(o??0)>0}catch{return!1}}async function W8(e,{category:t="wearable",first:r=48,skip:n=0,search:a,rarities:o,wearableCategories:s,emoteCategories:d,onlyOnSale:f,sortBy:h="newest"}={}){const m=new URLSearchParams({owner:e.toLowerCase(),category:t,first:String(r),skip:String(n),sortBy:h,orderDirection:"desc"});a&&m.set("search",a);for(const g of o??[])m.append("itemRarity",g);for(const g of s??[])m.append("wearableCategory",g);for(const g of d??[])m.append("emoteCategory",g);f&&m.set("isOnSale","true");const p=await fetch(`${Dn}/nfts?${m.toString()}`);if(!p.ok)throw new Error(`Failed to fetch assets (${p.status})`);const{data:v,total:_}=await p.json();return{assets:v.map(Dl),total:_}}async function Z8(e,t,r){var n,a;try{const o=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,tokenId:r,first:"1"}),s=await fetch(`${Dn}/nfts?${o.toString()}`);if(!s.ok)return null;const{data:d}=await s.json(),f=d==null?void 0:d[0];if(!f||f.nft.tokenId!==r)return null;const h=Dl(f);if(h.isOnSale&&h.tradeId&&!h.listingPrice)try{const p=(a=(n=(await Zs(h.tradeId)).received)==null?void 0:n[0])==null?void 0:a.amount,v=Fl(p);v>0&&(h.listingPrice=v)}catch{}return h}catch{return null}}async function c_(e,t){var r;try{const n=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),a=await fetch(`${Dn}/nfts?${n.toString()}`);if(!a.ok)return{};const{data:o}=await a.json(),s=o==null?void 0:o[0];return!(s!=null&&s.nft)||s.nft.tokenId!==t?{}:{seller:s.nft.owner??((r=s.order)==null?void 0:r.owner),issuedId:s.nft.issuedId}}catch{return{}}}async function K8(e,t){const r=await Promise.all(t.map(async n=>[n,await c_(e,n)]));return Object.fromEntries(r)}async function Y8(e,t){try{const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${Dn}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:a}=await n.json(),o=a==null?void 0:a[0];return!o||o.nft.tokenId!==t?null:Dl(o)}catch{return null}}const l_="dcl:marketplace";async function Q8(e,t){const{TradeService:r}=await _t(async()=>{const{TradeService:a}=await import("./TradeService-SfkC7zHZ.js");return{TradeService:a}},__vite__mapDeps([11,7,1,6,2,12,9,10,13,8]));return new r(l_,He.marketplaceServerUrl,()=>t).addTrade(e)}class Eh extends Error{constructor(t){super("fetchTrade 404"),this.tradeId=t,this.name="TradeNotFoundError"}}async function Zs(e){var n;const t=await fetch(`${He.marketplaceServerUrl}/v1/trades/${e}`);if(t.status===404)throw(n=t.body)==null||n.cancel(),new Eh(e);if(!t.ok)throw new Error(`fetchTrade ${t.status}`);const r=await t.json();return r.data??r}async function J8(e){if(e.tradeId)try{return await Zs(e.tradeId)}catch(t){if(!(t instanceof Eh)||!e.itemId)throw t}return e.itemId?u_(e.contractAddress,e.itemId):null}async function xh(e,t){const r=new URLSearchParams({contractAddress:e,itemId:t,first:"1"}),n=await fetch(`${Dn}/items?${r.toString()}`);if(!n.ok)return null;const{data:a}=await n.json();return(a==null?void 0:a[0])??null}async function X8(e){var f,h;let t;try{t=await Zs(e)}catch{return null}const r=(f=t.sent)==null?void 0:f[0],n=(h=t.received)==null?void 0:h[0],a=Fl(n==null?void 0:n.amount),o=(r==null?void 0:r.contractAddress)??"",s=(r==null?void 0:r.itemId)??(r==null?void 0:r.tokenId)??(r==null?void 0:r.value)??"";if(!o)return{name:"Item",thumbnail:"",credits:a,contractAddress:""};if((r==null?void 0:r.assetType)===bt.TradeAssetType.COLLECTION_ITEM){const m=s?await xh(o,s):null;return{name:(m==null?void 0:m.name)??"Item",thumbnail:(m==null?void 0:m.thumbnail)??"",credits:a,contractAddress:o,itemId:s}}const d=s?await bh(o,s):null;return{name:(d==null?void 0:d.name)??(s?`#${s}`:"Item"),thumbnail:(d==null?void 0:d.image)??"",credits:a,contractAddress:o,tokenId:s}}async function u_(e,t){var a;const{listings:r}=await fo({contractAddress:e,itemId:t,first:1}),n=(a=r[0])==null?void 0:a.tradeId;return n?Zs(n):null}async function e9(e,{tokenId:t,itemId:r}){if(!e)return null;if(t){const n=await bh(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 xh(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 d_(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 t9(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"}),o=await fetch(`${He.marketplaceServerUrl}/v1/sales?${a.toString()}`);if(!o.ok)throw new Error(`fetchUserSales ${o.status}`);const s=await o.json(),d=(s.data??[]).map(d_);return{items:d,total:s.total??d.length}}async function f_(e,t=4){const r=new URLSearchParams({search:e,first:String(t)}),n=await fetch(`${He.nftApiUrl}/v1/collections?${r.toString()}`);if(!n.ok)throw new Error(`fetchCollectionSuggestions ${n.status}`);const{data:a}=await n.json();return(a??[]).filter(o=>o.contractAddress&&o.name).map(o=>({contractAddress:o.contractAddress,name:o.name,creator:o.creator??""}))}async function h_(e,t){var s,d,f;const r=new URLSearchParams({category:"ens",search:e,first:String(t)}),n=await fetch(`${He.nftApiUrl}/v1/nfts?${r.toString()}`);if(!n.ok)throw new Error(`fetchNameOwners ${n.status}`);const{data:a}=await n.json(),o=new Map;for(const h of a??[]){const m=(d=(s=h.nft)==null?void 0:s.owner)==null?void 0:d.toLowerCase(),p=(f=h.nft)==null?void 0:f.name;m&&p&&!o.has(m)&&o.set(m,p)}return o}async function m_(e){if(e.length===0)return new Map;const t=new URLSearchParams({sortBy:"most_collections"});for(const o of e)t.append("address",o);const r=await fetch(`${He.nftApiUrl}/v1/accounts?${t.toString()}`);if(!r.ok)throw new Error(`fetchSellerCounts ${r.status}`);const{data:n}=await r.json(),a=new Map;for(const o of n??[])(o.collections??0)>0&&a.set(o.address.toLowerCase(),o.collections??0);return a}async function p_(e,t=4,r=20){const n=e.trim();if(!n)return[];const a=await h_(n,r);if(a.size===0)return[];const o=await m_([...a.keys()]),s=[...a.keys()].filter(d=>o.has(d)).slice(0,t);return s.length===0?[]:Promise.all(s.map(async d=>{var h,m;const f=await If(d);return{address:d,name:(f==null?void 0:f.name)||(a.get(d)??d),face:(m=(h=f==null?void 0:f.avatar)==null?void 0:h.snapshots)==null?void 0:m.face256}}))}function g_(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 ql(e){var t,r,n,a,o,s,d,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:!!((s=(o=e.data)==null?void 0:o.wearable)!=null&&s.isSmart),network:e.network,chainId:e.chainId,thumbnail:e.thumbnail??"",priceCredits:e.priceCredits??0,gender:g_((f=(d=e.data)==null?void 0:d.wearable)==null?void 0:f.bodyShapes)}}async function y_(e,{first:t=20,skip:r=0,category:n,rarities:a,wearableCategories:o,minPriceCredits:s,maxPriceCredits:d,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(A=>h.append("rarity",A)),o==null||o.forEach(A=>h.append("wearableCategory",A)),s!=null&&h.set("minPrice",String(s)),d!=null&&h.set("maxPrice",String(d)),f&&h.set("sortBy",f);const m=await fetch(`${He.marketplaceServerUrl}/v3/catalog/items?${h.toString()}`);if(!m.ok)throw new Error(`fetchCollectionItems ${m.status}`);const{data:p,total:v}=await m.json(),_=(p??[]).map(ql);return{items:_,total:v??r+_.length}}async function r9({first:e=48,skip:t=0,category:r,rarities:n,wearableCategories:a,search:o,sortBy:s,isWearableSmart:d,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(A=>h.append("rarity",A)),a==null||a.forEach(A=>h.append("wearableCategory",A)),o&&h.set("search",o),s&&h.set("sortBy",s),d&&h.set("isWearableSmart","true"),f!=null&&h.set("isOnSale",String(f));const m=await fetch(`${He.marketplaceServerUrl}/v3/catalog/items?${h.toString()}`);if(!m.ok)throw new Error(`fetchCatalogItems ${m.status}`);const{data:p,total:v}=await m.json(),_=(p??[]).map(ql);return{items:_,total:v??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:o,total:s}=await a.json(),d=(o??[]).map(ql);return{items:d,total:s??r+d.length}}async function n9(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.nftApiUrl}/v1/collections?${n.toString()}`);if(!a.ok)throw new Error(`fetchCreatorCollections ${a.status}`);const{data:o,total:s}=await a.json(),d=(o??[]).map(f=>({contractAddress:f.contractAddress,name:f.name??"",creator:f.creator??"",itemCount:f.size??0}));return{collections:d,total:s??r+d.length}}async function a9(e){const t=new URLSearchParams({contractAddress:e,first:"1"}),r=await fetch(`${He.nftApiUrl}/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 l2="radial-gradient(#c0bdc6, #a09ba8)",u2="#E6E6E6";function Sh(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 b_([e,t,r]){return .299*e+.587*t+.114*r}function Th(e){return e&&bt.Rarity.getColor(e.toLowerCase())||u2}function d2(e,t=.3){const r=Sh(Th(e));return r?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${t})`:`rgba(160, 155, 168, ${t})`}function f2(e,t=120){const r=Th(e),n=Sh(r);if(!n)return"#161518";const a=b_(n);if(a<=t)return r;const o=t/a,s=d=>Math.round(d*o).toString(16).padStart(2,"0");return`#${s(n[0])}${s(n[1])}${s(n[2])}`}function h2(e){const t=Wf(e??"Common");try{const r=bt.Rarity.getMaxSupply((e??"common").toLowerCase());if(r>0)return`${t} rarity — only ${r.toLocaleString()} can ever be minted`}catch{}return`${t} rarity`}function w_(e){try{const[t,r]=bt.Rarity.getGradient((e??"common").toLowerCase());return!t||!r?l2:`radial-gradient(${t}, ${r})`}catch{return l2}}const Ah=4;function __(e,t=!0){return Wr({queryKey:["collection-preview",e],queryFn:()=>y_(e,{first:Ah}),enabled:t,staleTime:5*6e4})}function C_({items:e,className:t}){const r=e.slice(0,Ah);return u.jsx("span",{className:`coll-thumb${t?` ${t}`:""}`,"data-count":r.length,"aria-hidden":!0,children:r.map(n=>u.jsx("span",{className:"coll-thumb__cell","data-testid":"coll-thumb-cell",style:{backgroundImage:w_(n.rarity)},children:n.thumbnail?u.jsx("img",{src:n.thumbnail,alt:"",loading:"lazy"}):null},n.id))})}function E_({contractAddress:e,className:t,fallback:r=null}){const{data:n}=__(e),a=(n==null?void 0:n.items)??[];return a.length===0?u.jsx(u.Fragment,{children:r}):u.jsx(C_,{items:a,className:t})}function x_(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function m2({address:e,className:t}){const{data:r}=Ls(e),n=(r==null?void 0:r.name)||x_(e);return u.jsx("span",{className:t,children:oe("search.byCreator",{name:n})})}function S_({contractAddress:e}){return u.jsx(E_,{contractAddress:e,className:"search-pop__collthumb",fallback:u.jsx("span",{className:"search-pop__thumb search-pop__thumb--icon",children:u.jsx(it,{name:"search"})})})}const T_=5,A_=2;function k_({query:e,recent:t,onSelectItem:r,onSelectCollection:n,onSelectCreator:a,onRunSearch:o,onRemoveRecent:s,onClearRecent:d}){const f=e.length>=A_,{data:h,isFetching:m}=Wr({queryKey:["search-suggest",e],queryFn:()=>wh({search:e,first:T_}),enabled:f,placeholderData:li,staleTime:3e4}),{data:p=[]}=Wr({queryKey:["search-suggest-collections",e],queryFn:()=>f_(e),enabled:f,placeholderData:li,staleTime:3e4}),{data:v=[]}=Wr({queryKey:["search-suggest-creators",e],queryFn:()=>p_(e),enabled:f,placeholderData:li,staleTime:3e4}),_=f?(h==null?void 0:h.items)??[]:[],A=(h==null?void 0:h.total)??0;if(!f)return t.length===0?null:u.jsxs("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":oe("search.suggestions"),children:[u.jsxs("div",{className:"search-pop__section-head",children:[u.jsx("span",{children:oe("search.recent")}),u.jsx("button",{type:"button",className:"search-pop__clear",onClick:d,children:oe("search.clearRecent")})]}),u.jsx("ul",{className:"search-pop__list",children:t.map(T=>u.jsxs("li",{className:"search-pop__recent",children:[u.jsxs("button",{type:"button",className:"search-pop__recent-btn",onClick:()=>o(T),children:[u.jsx(it,{name:"search",size:16,color:"var(--muted)"}),u.jsx("span",{className:"search-pop__recent-text",children:T})]}),u.jsx("button",{type:"button",className:"search-pop__recent-remove","aria-label":oe("search.removeRecent",{query:T}),onClick:()=>s(T),children:u.jsx(vh,{})})]},T))})]});const g=_.length===0&&p.length===0&&v.length===0;return u.jsx("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":oe("search.suggestions"),children:g?u.jsx("p",{className:"search-pop__empty",children:m?oe("search.searching"):oe("search.noResults",{query:e})}):u.jsxs(u.Fragment,{children:[_.length>0?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"search-pop__section-head",children:u.jsx("span",{children:oe("search.items")})}),u.jsx("ul",{className:"search-pop__list",children:_.map(T=>u.jsx("li",{children:u.jsxs("button",{type:"button",className:"search-pop__row","data-testid":"search-pop-row","data-kind":"item",onClick:()=>r(T),children:[u.jsx("span",{className:"search-pop__thumb",children:T.thumbnail?u.jsx("img",{src:T.thumbnail,alt:""}):null}),u.jsxs("span",{className:"search-pop__text",children:[u.jsx("span",{className:"search-pop__name",title:T.name,children:T.name}),T.creator?u.jsx(m2,{address:T.creator,className:"search-pop__sub"}):null]}),u.jsxs("span",{className:"search-pop__price",children:[u.jsx(Qt,{className:"ccy-mark"})," ",T.priceCredits]})]})},T.id))})]}):null,p.length>0?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"search-pop__section-head",children:u.jsx("span",{children:oe("search.collections")})}),u.jsx("ul",{className:"search-pop__list",children:p.map(T=>u.jsx("li",{children:u.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--collection","data-testid":"search-pop-row","data-kind":"collection",onClick:()=>n(T),children:[u.jsx(S_,{contractAddress:T.contractAddress}),u.jsxs("span",{className:"search-pop__text",children:[u.jsx("span",{className:"search-pop__name",title:T.name,children:T.name}),T.creator?u.jsx(m2,{address:T.creator,className:"search-pop__sub"}):null]})]})},T.contractAddress))})]}):null,v.length>0?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"search-pop__section-head",children:u.jsx("span",{children:oe("search.creators")})}),u.jsx("ul",{className:"search-pop__list",children:v.map(T=>u.jsx("li",{children:u.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--creator","data-testid":"search-pop-row","data-kind":"creator",onClick:()=>a(T),children:[u.jsx("span",{className:"search-pop__thumb search-pop__thumb--round",children:T.face?u.jsx("img",{src:T.face,alt:""}):null}),u.jsx("span",{className:"search-pop__text",children:u.jsx("span",{className:"search-pop__name",title:T.name,children:T.name})})]})},T.address))})]}):null,A>0?u.jsx("button",{type:"button",className:"search-pop__seeall",onClick:()=>o(e),children:oe("search.seeAll",{count:A.toLocaleString()})}):null]})})}const I_=new Set([bt.ProviderType.INJECTED,bt.ProviderType.METAMASK_MOBILE,bt.ProviderType.FORTMATIC,bt.ProviderType.WALLET_CONNECT,bt.ProviderType.WALLET_CONNECT_V2,bt.ProviderType.WALLET_LINK]);function R_(e){return!!e&&I_.has(e)}const Ks="shop:recent-searches",kh=8;function Ts(){try{const e=localStorage.getItem(Ks);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"&&r.length>0).slice(0,kh):[]}catch{return[]}}function ms(e){const t=e.trim();if(t)try{const r=[t,...Ts().filter(n=>n.toLowerCase()!==t.toLowerCase())].slice(0,kh);localStorage.setItem(Ks,JSON.stringify(r))}catch{}}function N_(e){try{const t=Ts().filter(r=>r.toLowerCase()!==e.trim().toLowerCase());localStorage.setItem(Ks,JSON.stringify(t))}catch{}}function P_(){try{localStorage.removeItem(Ks)}catch{}}function O_(){const{session:e,connecting:t,signIn:r,disconnect:n,restore:a}=wa(),o=e==null?void 0:e.address,{data:s,isLoading:d}=Ls(o),{data:f,isError:h,isLoading:m}=Jv(e),p=Ut(Y=>Y.items.reduce((ce,ie)=>ce+ie.quantity,0)),v=Ut(Y=>Y.setOpen),_=ks(),[A]=Qh(),{pathname:g}=q2(),T=/^\/(assets|item|collection|creator)(\/|$)/.test(g),z=A.get("q")??"",[b,I]=ne.useState(z),[w,K]=ne.useState(z),[U,x]=ne.useState(!1),[q,Q]=ne.useState([]),ee=ne.useRef(),ae=ne.useRef(null);ne.useEffect(()=>{a()},[a]),ne.useEffect(()=>{I(z),K(z)},[z]),ne.useEffect(()=>{if(!U)return;const Y=ce=>{ae.current&&!ae.current.contains(ce.target)&&x(!1)};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[U]);function J(){Q(Ts()),x(!0)}function L(Y){const ce=Y.trim();x(!1),ce&&ms(ce),_(ce?`/assets?q=${encodeURIComponent(ce)}`:"/assets",{replace:!0})}function N(Y){x(!1),b.trim()&&ms(b.trim()),mr("Shop Search Suggestion Clicked",{query:b.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}}):L(b)}function Z(Y){x(!1),b.trim()&&ms(b.trim()),mr("Shop Search Suggestion Clicked",{query:b.trim(),type:"collection",contract_address:Y.contractAddress}),_(`/collection/${Y.contractAddress}`)}function P(Y){x(!1),b.trim()&&ms(b.trim()),mr("Shop Search Suggestion Clicked",{query:b.trim(),type:"creator",creator_address:Y.address}),_(`/assets/creator/${Y.address}`)}function F(Y){I(Y),x(!0),ee.current&&clearTimeout(ee.current),ee.current=setTimeout(()=>K(Y.trim()),300)}function H(){I(""),K(""),x(!1),_("/assets",{replace:!0})}function R(Y){N_(Y),Q(Ts())}function j(){P_(),Q([])}function G(Y){if(Y.key==="Escape"){x(!1);return}Y.key==="Enter"&&(ee.current&&clearTimeout(ee.current),L(b))}return u.jsxs(u.Fragment,{children:[u.jsx(cg,{activePage:"shop",isSignedIn:!!e,isSigningIn:t,isLoadingProfile:!!e&&d,address:o,avatar:s,onClickSignIn:()=>r(),onClickSignOut:()=>void n()}),u.jsxs("div",{className:"subnav",children:[u.jsxs("nav",{className:"subnav__tabs",children:[u.jsx(vn,{to:"/overview",children:oe("nav.overview")}),u.jsx(vn,{to:"/assets",className:()=>T?"active":"",children:oe("nav.collectibles")}),u.jsx(vn,{to:"/my-assets",children:oe("nav.myAssets")}),e?u.jsx(vn,{to:"/activity",children:oe("nav.activity")}):null,e&&R_(e.providerType)?u.jsx(vn,{to:"/authorizations",children:oe("nav.authorizations")}):null]}),u.jsxs("div",{className:"subnav__search",ref:ae,children:[u.jsx(it,{name:"search",color:"var(--muted)"}),u.jsx("input",{value:b,"aria-label":oe("nav.searchAria"),placeholder:oe("nav.searchPlaceholder"),onChange:Y=>F(Y.target.value),onFocus:J,onKeyDown:G}),b?u.jsx("button",{type:"button",className:"subnav__search-clear","data-testid":"subnav-search-clear","aria-label":oe("search.clear"),onClick:H,children:u.jsx(vh,{})}):null,U?u.jsx(k_,{query:w,recent:q,onSelectItem:N,onSelectCollection:Z,onSelectCreator:P,onRunSearch:L,onRemoveRecent:R,onClearRecent:j}):null]}),e?u.jsxs("span",{className:"subnav__balance","data-testid":"subnav-balance",title:oe("nav.yourBalance",{currency:ya.name}),children:[u.jsx(Qt,{className:"subnav__balance-ico"}),m?u.jsx("span",{className:"skeleton subnav__balance-skel","aria-hidden":!0}):Xv(f,h)]}):null,u.jsxs(vn,{to:"/credits",className:"subnav__credits",children:[u.jsx(Qt,{className:"subnav__credits-ico"}),oe("nav.getCredits",{currency:ya.name})]}),u.jsx(vn,{to:"/my-favorites",className:"subnav__fav","aria-label":oe("nav.myFavorites"),children:u.jsx(it,{name:"heart"})}),u.jsxs("div",{className:"subnav__cart-wrap",children:[u.jsxs("button",{type:"button",className:"subnav__cart","data-testid":"subnav-cart","aria-label":oe("nav.cart"),onClick:()=>p>0?v(!0):_("/cart"),children:[u.jsx(it,{name:"cart",size:28}),p>0?u.jsx("span",{className:"subnav__cart-badge","data-testid":"subnav-cart-badge",children:p}):null]}),u.jsx(pw,{})]})]})]})}let j_=0;const Da=Mn(e=>({toasts:[],push:t=>{const r=++j_;return e(n=>({toasts:[...n.toasts,{...t,id:r}]})),r},dismiss:t=>e(r=>({toasts:r.toasts.filter(n=>n.id!==t)}))})),o9={success:e=>Da.getState().push({message:e,kind:"success"}),error:e=>Da.getState().push({message:e,kind:"error"}),info:e=>Da.getState().push({message:e,kind:"info"})},L_=vf`
|
|
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
|
+
`,B_=wt.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
|
+
`,M_=wt.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: ${Le.colors.white};
|
|
182
|
+
font-weight: 800;
|
|
183
|
+
font-size: 13px;
|
|
184
|
+
background: ${Le.colors.accent};
|
|
185
|
+
|
|
186
|
+
&[data-kind='success'] {
|
|
187
|
+
background: ${Le.colors.okStrong};
|
|
188
|
+
}
|
|
189
|
+
&[data-kind='error'] {
|
|
190
|
+
background: ${Le.colors.errStrong};
|
|
191
|
+
}
|
|
192
|
+
`,F_=wt.span`
|
|
193
|
+
font-size: 14px;
|
|
194
|
+
font-weight: 600;
|
|
195
|
+
line-height: 1.35;
|
|
196
|
+
`,$_=wt.div`
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
gap: 12px;
|
|
200
|
+
padding: 13px 16px;
|
|
201
|
+
border-radius: ${Le.radius.card};
|
|
202
|
+
background: ${Le.colors.white};
|
|
203
|
+
color: ${Le.colors.text};
|
|
204
|
+
box-shadow: 0 12px 32px rgba(20, 20, 30, 0.18);
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
border-left: 4px solid ${Le.colors.accent};
|
|
207
|
+
animation: ${L_} 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
|
|
208
|
+
|
|
209
|
+
&[data-kind='success'] {
|
|
210
|
+
border-left-color: ${Le.colors.okStrong};
|
|
211
|
+
}
|
|
212
|
+
&[data-kind='error'] {
|
|
213
|
+
border-left-color: ${Le.colors.errStrong};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@media (prefers-reduced-motion: reduce) {
|
|
217
|
+
animation: none;
|
|
218
|
+
}
|
|
219
|
+
`,D_={success:"✓",error:"!",info:"i"};function q_({t:e}){const t=Da(r=>r.dismiss);return ne.useEffect(()=>{const r=setTimeout(()=>t(e.id),4500);return()=>clearTimeout(r)},[e.id,t]),u.jsxs($_,{"data-testid":"toast","data-kind":e.kind,role:e.kind==="error"?"alert":"status",onClick:()=>t(e.id),children:[u.jsx(M_,{"data-kind":e.kind,"aria-hidden":!0,children:D_[e.kind]}),u.jsx(F_,{children:e.message})]})}function U_(){const e=Da(t=>t.toasts);return e.length===0?null:u.jsx(B_,{"data-testid":"toaster","aria-live":"polite",children:e.map(t=>u.jsx(q_,{t},t.id))})}const H_=ne.lazy(()=>_t(()=>import("./index-CrhtLjWe.js"),__vite__mapDeps([14,1,2,15,6,16,4,17,18,3,19,20,7,8])).then(e=>({default:e.WearablePreview})));function Ih(e){return u.jsx(ne.Suspense,{fallback:null,children:u.jsx(H_,{...e})})}function V_(e){return e.itemId?`urn:decentraland:${He.chainId===80002?"amoy":"matic"}:collections-v2:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}const ea=bt.BodyShape.MALE,ta=bt.BodyShape.FEMALE;function il(e){if(e.category==="emote")return[ea,ta];switch(e.gender){case"male":return[ea];case"female":return[ta];default:return[ea,ta]}}function z_(e){var r;const t=(r=e==null?void 0:e.avatar)==null?void 0:r.bodyShape;return t?t.includes("BaseFemale")?ta:ea:null}function Ul(e,t){return t==null||il(e).includes(t)}function p2(e){return oe(e===ta?"bodyShape.female":"bodyShape.male")}function G_(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?ta:ea}function Bn(e){return e.category!=="emote"}function va(e){return Bn(e)?e.wearableCategory??`unknown:${e.id}`:null}const W_=new Set(["hat","helmet","mask","tiara","top_head","hair","facial_hair","eyewear","earring","eyes","eyebrows","mouth"]);function Z_(e){if(!Bn(e))return"item";const t=e.wearableCategory;return t?W_.has(t)?"head":t==="upper_body"?"upper":t==="lower_body"?"lower":t==="feet"?"feet":t==="hands"||t==="hands_wear"?"hands":"item":"item"}function g2(e,t=null){const r=new Set,n=new Set;for(const a of e){const o=va(a);o==null||n.has(o)||Ul(a,t)&&(n.add(o),r.add(a.id))}return r}function K_(e,t,r){if(!Bn(t))return e;const n=new Set(e);if(n.has(t.id))return n.delete(t.id),n;const a=va(t);if(a!=null)for(const o of r)o.id!==t.id&&n.has(o.id)&&va(o)===a&&n.delete(o.id);return n.add(t.id),n}function Y_(e){const t=new Map;for(const n of e){const a=va(n);if(a==null)continue;const o=t.get(a)??[];o.push(n.id),t.set(a,o)}const r=new Set;for(const n of t.values())n.length>1&&n.forEach(a=>r.add(a));return r}function Q_(e,t,r=null){const n=[];for(const a of e){if(!t.has(a.id)||!Bn(a)||!Ul(a,r))continue;const o=V_(a);o&&n.push(o)}return n}const J_=wt.button`
|
|
220
|
+
border: 0;
|
|
221
|
+
border-radius: ${Le.radius.btn};
|
|
222
|
+
padding: 12px 22px;
|
|
223
|
+
font-weight: 700;
|
|
224
|
+
font-size: 15px;
|
|
225
|
+
background: ${Le.colors.blackBtn};
|
|
226
|
+
color: ${Le.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: ${Le.gradients.amethyst};
|
|
241
|
+
color: ${Le.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: ${Le.colors.accent};
|
|
248
|
+
}
|
|
249
|
+
&[data-variant='purple']:active:not(:disabled) {
|
|
250
|
+
background: ${Le.colors.accent};
|
|
251
|
+
transform: translateY(1px);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Outlined primary (Figma outlined variant): magenta border, purple label. */
|
|
255
|
+
&[data-variant='outline'] {
|
|
256
|
+
background: ${Le.colors.white};
|
|
257
|
+
border: 2px solid ${Le.colors.magenta};
|
|
258
|
+
color: ${Le.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: ${Le.colors.white};
|
|
270
|
+
border: 1px solid ${Le.colors.lineStrong};
|
|
271
|
+
color: ${Le.colors.text};
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&[data-size='sm'] {
|
|
275
|
+
padding: 8px 12px;
|
|
276
|
+
font-size: 13px;
|
|
277
|
+
}
|
|
278
|
+
`;function X_({as:e,variant:t="default",size:r="md",...n},a){const o=J_;return u.jsx(o,{as:e,ref:a,"data-variant":t,"data-size":r,...n})}const Ys=ne.forwardRef(X_),e6=ne.lazy(()=>_t(()=>import("./AnimatedBackground-dlJZeXOs.js"),__vite__mapDeps([21,1,22]))),t6=wt(Ys)`
|
|
279
|
+
flex: none;
|
|
280
|
+
`,r6={head:"slot-head",upper:"slot-upper",lower:"slot-lower",feet:"slot-feet",hands:"slot-hands",item:"slot-item"};function y2(e){return!e||e.startsWith("unknown:")?oe("fittingRoom.wearable"):e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g," ")}function n6(){const e=Ut(K=>K.fittingOpen),t=Ut(K=>K.setFittingOpen),r=Ut(K=>K.items),n=Ut(K=>K.remove),a=ks(),o=wa(K=>{var U;return(U=K.session)==null?void 0:U.address}),{data:s,isFetched:d}=Ls(o),f=!o||d,h=!!o&&!!s,m=h?o:"default",p=z_(s)??G_(r)??ea,[v,_]=ne.useState(()=>g2(r,p)),[A,g]=ne.useState(!1);ne.useEffect(()=>{e&&_(g2(r,p))},[e,p]),ne.useEffect(()=>{const K=new Set(r.map(U=>U.id));_(U=>{const x=new Set([...U].filter(q=>K.has(q)));return x.size===U.size?U:x})},[r]);const T=ne.useMemo(()=>Y_(r),[r]),z=ne.useMemo(()=>Q_(r,v,p),[r,v,p]),b=r.reduce((K,U)=>K+U.priceCredits*U.quantity,0),I=z.join(",");ne.useEffect(()=>{g(!1)},[I,m]);const w=ne.useRef(!1);return ne.useEffect(()=>{if(!e){w.current=!1;return}w.current||(w.current=!0,mr("Shop Tried On Outfit",{cart_size:r.length,wearables:r.filter(Bn).length,emotes:r.filter(K=>!Bn(K)).length,cart_value_credits:b}))},[e,r,b]),ne.useEffect(()=>{if(!e)return;const K=U=>{U.key==="Escape"&&t(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[e,t]),!e||r.length===0?null:u.jsxs("div",{className:"fitting",role:"dialog","aria-modal":"true","aria-label":oe("fittingRoom.title"),children:[u.jsx("div",{className:"fitting__scrim",onClick:()=>t(!1)}),u.jsxs("div",{className:"fitting__panel",children:[u.jsx("button",{className:"fitting__close",onClick:()=>t(!1),"aria-label":oe("fittingRoom.close"),children:"×"}),u.jsxs("div",{className:"fitting__stage",children:[u.jsx(ne.Suspense,{fallback:null,children:u.jsx(e6,{})}),f?z.length>0?u.jsxs(u.Fragment,{children:[u.jsx(Ih,{profile:m,bodyShape:h?void 0:p,urns:z,type:bt.PreviewType.AVATAR,emote:bt.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0,dev:He.chainId===80002,onLoad:()=>g(!0)},m),A?null:u.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:u.jsx("span",{className:"fitting__spinner"})})]}):u.jsxs("div",{className:"fitting__empty-stage",children:[u.jsx("p",{children:oe("fittingRoom.emptyStageTitle")}),u.jsx("p",{className:"muted",children:oe("fittingRoom.emptyStageBody")})]}):u.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:u.jsx("span",{className:"fitting__spinner"})})]}),u.jsxs("div",{className:"fitting__side",children:[u.jsxs("div",{className:"fitting__head",children:[u.jsx("h2",{className:"fitting__title",children:oe("fittingRoom.title")}),u.jsx("p",{className:"fitting__sub muted",children:oe("fittingRoom.sub")})]}),u.jsx("div",{className:"fitting__items",children:r.map(K=>{const U=Bn(K),x=U&&!Ul(K,p),q=v.has(K.id),Q=T.has(K.id);return u.jsxs("div",{className:`fitting-row${q?" is-on":""}${x?" is-incompatible":""}`,"data-testid":"fitting-row",children:[u.jsxs("label",{className:"fitting-row__toggle",children:[u.jsx("input",{type:"checkbox",checked:q,disabled:!U||x,onChange:()=>_(ee=>K_(ee,K,r))}),u.jsx("span",{className:"fitting-row__box","aria-hidden":!0})]}),u.jsx("div",{className:"fitting-row__thumb",children:K.thumbnail?u.jsx("img",{src:K.thumbnail,alt:K.name}):null}),u.jsxs("div",{className:"fitting-row__info",children:[u.jsx("div",{className:"fitting-row__name",title:K.name,children:K.name}),u.jsxs("div",{className:"fitting-row__meta",children:[u.jsx(it,{name:r6[U?Z_(K):"item"],size:16,color:"var(--muted)",title:U?y2(va(K)):oe("fittingRoom.emote"),role:"img","aria-label":U?y2(va(K)):oe("fittingRoom.emote")}),Q&&!x?u.jsx("span",{className:"fitting-row__conflict",title:oe("fittingRoom.conflictTooltip"),children:oe("fittingRoom.onePerSlot")}):null,x?u.jsx("span",{className:"fitting-row__incompat",title:oe("fittingRoom.madeForShape",{shape:p2(il(K)[0])}),children:oe("fittingRoom.shapeOnly",{shape:p2(il(K)[0])})}):null]})]}),u.jsxs("div",{className:"fitting-row__price",children:[u.jsx(Qt,{className:"fitting-row__diamond"}),K.priceCredits]}),u.jsx("button",{className:"fitting-row__remove",onClick:()=>n(K.id),"aria-label":oe("fittingRoom.removeFromCart",{name:K.name}),title:oe("fittingRoom.remove"),children:u.jsx(it,{name:"trash",size:18})})]},K.id)})}),u.jsxs("div",{className:"fitting__foot",children:[u.jsxs("div",{className:"fitting__total",children:[oe("fittingRoom.itemCount",{count:r.length})," ·"," ",u.jsxs("strong",{children:[ya.symbol," ",b]})]}),u.jsx(t6,{variant:"purple",onClick:()=>{t(!1),a("/cart")},children:oe("fittingRoom.checkout")})]})]})]})]})}const Rh="shop:locale";function a6(){var e;try{const t=new URLSearchParams(window.location.search).get("lang");if(t&&_s.includes(t))return t;const r=localStorage.getItem(Rh);if(r&&_s.includes(r))return r;const n=(e=navigator.language)==null?void 0:e.slice(0,2);if(n&&_s.includes(n))return n}catch{}return"en"}const cl=Mn(e=>({locale:a6(),setLocale:t=>{try{localStorage.setItem(Rh,t)}catch{}e({locale:t})}})),o6="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",v2=[{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/"}],b2=[{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"}],s6=[{name:"Discord",url:"https://dcl.gg/discord",icon:l6},{name:"GitHub",url:"https://github.com/decentraland",icon:u6},{name:"X",url:"https://x.com/decentraland",icon:d6},{name:"Instagram",url:"https://instagram.com/decentraland_foundation/",icon:f6},{name:"YouTube",url:"https://youtube.com/@decentraland_foundation",icon:h6},{name:"TikTok",url:"https://tiktok.com/@decentraland_fdn",icon:m6},{name:"LinkedIn",url:"https://linkedin.com/company/decentralandorg",icon:p6}],i6=[{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/"}],ps={en:{label:"English",flag:"🇺🇸"},es:{label:"Español",flag:"🇪🇸"}};function w2(){return u.jsx("div",{className:"dcl-footer__social",children:s6.map(({name:e,url:t,icon:r})=>u.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":e,children:u.jsx(r,{})},e))})}function c6(){const e=cl(h=>h.locale),t=cl(h=>h.setLocale),[r,n]=ne.useState(null),[a,o]=ne.useState(!1),s=ne.useRef(null),d=ps[e]??ps.en;ne.useEffect(()=>{if(!a)return;const h=m=>{s.current&&!s.current.contains(m.target)&&o(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[a]);const f=h=>n(m=>m===h?null:h);return u.jsxs("footer",{className:"dcl-footer",children:[u.jsxs("div",{className:"dcl-footer__main",children:[u.jsxs("div",{className:"dcl-footer__left",children:[u.jsx("span",{className:"dcl-footer__wordmark",children:"Decentraland"}),u.jsxs("div",{className:"dcl-footer__news",children:[u.jsx("p",{className:"dcl-footer__news-title",children:oe("footer.newsletterTitle")}),u.jsx("iframe",{className:"dcl-footer__news-frame",src:o6,height:"65",frameBorder:"0",scrolling:"no",title:oe("footer.newsletterFrameTitle")})]}),u.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--desktop",children:[u.jsx("p",{className:"dcl-footer__label",children:oe("footer.connect")}),u.jsx(w2,{})]})]}),u.jsxs("div",{className:"dcl-footer__right",children:[u.jsxs("div",{className:"dcl-footer__col",children:[u.jsx("p",{className:"dcl-footer__label",children:oe("footer.gettingStarted")}),v2.map(h=>u.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:oe(h.label)},h.label))]}),u.jsxs("div",{className:"dcl-footer__col",children:[u.jsx("p",{className:"dcl-footer__label",children:oe("footer.resources")}),b2.map(h=>u.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:oe(h.label)},h.label))]})]}),u.jsxs("div",{className:"dcl-footer__mobile-menu",children:[u.jsx("p",{className:"dcl-footer__menu-label",children:oe("footer.menu")}),[{key:"getting-started",label:oe("footer.gettingStarted"),links:v2},{key:"resources",label:oe("footer.resources"),links:b2}].map(h=>u.jsxs("div",{children:[u.jsxs("button",{type:"button",className:"dcl-footer__dropdown","aria-expanded":r===h.key,onClick:()=>f(h.key),children:[h.label,u.jsx("span",{className:`dcl-footer__chev${r===h.key?" is-open":""}`,children:u.jsx(_2,{})})]}),u.jsx("div",{className:`dcl-footer__dropdown-content${r===h.key?" is-open":""}`,children:h.links.map(m=>u.jsx("a",{className:"dcl-footer__mlink",href:m.url,target:"_blank",rel:"noopener noreferrer",children:oe(m.label)},m.label))})]},h.key))]}),u.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--mobile",children:[u.jsx("p",{className:"dcl-footer__label",children:oe("footer.connect")}),u.jsx(w2,{})]})]}),u.jsxs("div",{className:"dcl-footer__bottom",children:[u.jsxs("div",{className:"dcl-footer__bottom-left",children:[u.jsxs("div",{className:"dcl-footer__lang",ref:s,children:[u.jsxs("button",{type:"button",className:"dcl-footer__lang-btn",onClick:()=>o(h=>!h),children:[u.jsx("span",{"aria-hidden":!0,children:d.flag}),d.label,u.jsx("span",{className:`dcl-footer__chev${a?" is-open":""}`,children:u.jsx(_2,{})})]}),a?u.jsx("div",{className:"dcl-footer__lang-menu",children:_s.map(h=>u.jsxs("button",{className:h===e?"is-active":"",onClick:()=>{t(h),o(!1)},children:[u.jsx("span",{"aria-hidden":!0,children:ps[h].flag}),ps[h].label]},h))}):null]}),u.jsx("div",{className:"dcl-footer__legal",children:i6.map(h=>u.jsx("a",{className:"dcl-footer__legal-link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:oe(h.label)},h.label))})]}),u.jsxs("span",{className:"dcl-footer__copy",children:["© ",new Date().getFullYear()," Decentraland"]})]})]})}function l6(){return u.jsx("svg",{viewBox:"0 0 28 22",fill:"currentColor",width:"26",height:"20","aria-hidden":!0,children:u.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 u6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:u.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 d6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:u.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 f6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:u.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 h6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:u.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 m6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:u.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 p6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:u.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 _2(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18","aria-hidden":!0,children:u.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}const lr=Mn((e,t)=>({item:null,anchor:null,ready:!1,token:0,show:(r,n)=>{var o;const a=t();((o=a.item)==null?void 0:o.id)===r.id&&a.anchor===n||e(s=>({item:r,anchor:n,ready:!1,token:s.token+1}))},hide:()=>e({item:null,anchor:null,ready:!1}),setReady:()=>e({ready:!0})})),C2="hover-preview";function g6(){const e=lr(T=>T.item),t=lr(T=>T.anchor),r=lr(T=>T.token),n=lr(T=>T.ready),a=lr(T=>T.setReady),[o,s]=ne.useState(!1),[d,f]=ne.useState(!1),h=ne.useRef(!1),m=ne.useRef(-1),[p,v]=ne.useState(null);ne.useEffect(()=>{if(typeof window.requestIdleCallback=="function"){const z=window.requestIdleCallback(()=>s(!0),{timeout:3e3});return()=>window.cancelIdleCallback(z)}const T=window.setTimeout(()=>s(!0),1500);return()=>window.clearTimeout(T)},[]),ne.useEffect(()=>{if(!t){v(null);return}let T=0;const z=()=>v(t.getBoundingClientRect());z();const b=()=>{cancelAnimationFrame(T),T=requestAnimationFrame(z)};return window.addEventListener("scroll",b,!0),window.addEventListener("resize",b),()=>{cancelAnimationFrame(T),window.removeEventListener("scroll",b,!0),window.removeEventListener("resize",b)}},[t]),ne.useEffect(()=>{if(!e)return;const T=document.getElementById(C2);if(!(T!=null&&T.contentWindow)||!h.current)return;m.current=r;const z=e.category==="emote";du.sendMessage(T.contentWindow,du.PreviewMessageType.UPDATE,{options:{contractAddress:e.contractAddress,itemId:e.itemId??void 0,profile:"default",type:z?void 0:bt.PreviewType.AVATAR,emote:z?void 0:bt.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0}})},[e,r,d]);function _(){if(!h.current){h.current=!0,f(!0);return}const T=lr.getState();T.item&&T.token===m.current&&a()}if(!o)return null;const g=!!e&&!!p?{position:"fixed",left:p.left,top:p.top,width:p.width,height:p.height,zIndex:5,pointerEvents:"none",opacity:n?1:0,transition:"opacity .25s ease"}:{position:"fixed",left:-9999,top:-9999,width:2,height:2,opacity:0,pointerEvents:"none",overflow:"hidden"};return u.jsx("div",{className:"hover-preview","aria-hidden":!0,style:g,children:u.jsx(Ih,{id:C2,profile:"default",disableBackground:!0,disableFadeEffect:!0,dev:He.chainId===80002,onLoad:_})})}function y6(){const e=wa(t=>t.session);ne.useEffect(()=>{if(!e||e.providerType!==bt.ProviderType.INJECTED)return;const t=e.web3Provider.provider;if(!(t!=null&&t.on)||!t.removeListener)return;const r=e.address.toLowerCase(),n=(...a)=>{var d;((d=(a[0]??[])[0])==null?void 0:d.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 v6(e,t){return!t||!e.creator?!1:Al(e)&&e.creator.toLowerCase()===t.toLowerCase()}function s9(e,t){return!!e.signer&&!!t&&e.signer.toLowerCase()===t.toLowerCase()}const E2={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 b6(e){var r;const t=(r=e.wearableCategory)==null?void 0:r.toLowerCase();return t&&E2[t]?E2[t]:e.category==="emote"?"emote-misc":null}function w6(e){return e==="male"?"gender-male":e==="female"?"gender-female":e==="unisex"?"gender-unisex":null}function _6(e,t=Date.now()){const{priceCredits:r,compareAtCredits:n,saleEndsAt:a}=e;return!(n==null||!(n>r)||a!=null&&a<=t)}function C6(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 Fa(e,t=Date.now()){return e==null?1/0:Math.max(0,e-t)}function E6(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),o=t%60;return r>0?n>0?`${r}d ${n}h`:`${r}d`:n>0?`${n}h ${a}m`:a>0?`${a}m ${o}s`:`${o}s`}function x2(e){return!isFinite(e)||e<=0?0:e<36e5?1e3:6e4}function x6({endsAt:e,className:t,testId:r,iconSize:n=13}){const[a,o]=ne.useState(()=>Fa(e));ne.useEffect(()=>{if(o(Fa(e)),e==null)return;let d;const f=()=>{const m=Fa(e);o(m);const p=x2(m);p>0&&(d=setTimeout(f,p))},h=x2(Fa(e));return h>0&&(d=setTimeout(f,h)),()=>clearTimeout(d)},[e]);const s=E6(a);return s?u.jsxs("span",{className:t??"sale-countdown","data-testid":r,children:[u.jsx(it,{name:"clock",size:n}),s]}):null}function S6(e){const[,t]=ne.useState(0);return ne.useEffect(()=>{const r=Fa(e.saleEndsAt);if(!isFinite(r)||r<=0||r>2147483647)return;const n=setTimeout(()=>t(a=>a+1),r+1);return()=>clearTimeout(n)},[e.saleEndsAt]),_6(e)}const T6=120;function Hl(e){const{item:t}=e,r=e.mode==="market",n=e.mode==="view",a=e.mode==="manage",o=e.mode==="manage-link",s=t.category==="ens",d=ks(),f=ne.useRef(),h=ne.useRef(null),m=Ut(P=>P.add),p=Ut(P=>P.items.some(F=>F.id===t.id)),v=wa(P=>{var F;return(F=P.session)==null?void 0:F.address}),_=v6(t,v),A=xs(P=>P.toggle),g=xs(P=>!!P.items[t.id]),T=lr(P=>P.show),z=lr(P=>P.hide),b=lr(P=>{var F;return((F=P.item)==null?void 0:F.id)===t.id}),I=lr(P=>{var F;return((F=P.item)==null?void 0:F.id)===t.id?P.ready:!1}),w=!!t.contractAddress&&!!t.itemId&&!s,K=t.tokenId??t.itemId,U=!!t.contractAddress&&!!K,x=`/item/${t.contractAddress}/${K}`;function q(P){P.stopPropagation(),U&&d(x,{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&&T(t,h.current)},T6))}function ee(){var P;f.current&&clearTimeout(f.current),((P=lr.getState().item)==null?void 0:P.id)===t.id&&z()}ne.useEffect(()=>()=>{var P;f.current&&clearTimeout(f.current),((P=lr.getState().item)==null?void 0:P.id)===t.id&&z()},[t.id,z]);const ae=b6(t),J=w6(t.gender),L=S6({priceCredits:t.priceCredits,compareAtCredits:t.compareAtCredits,saleEndsAt:t.saleEndsAt}),N=!r&&L,Z=N?C6(t.compareAtCredits,t.priceCredits):0;return u.jsxs("article",{className:"card","data-testid":"card",style:U&&!s?{cursor:"pointer"}:void 0,onMouseEnter:Q,onMouseLeave:ee,children:[U&&!s?u.jsx(Sn,{className:"card__link","data-testid":"card-link",to:x,state:e.mode==="market"?{item:t,market:!0,marketPriceCredits:e.marketPriceCredits}:{item:t,tradeId:t.tradeId},"aria-label":t.name}):null,s&&e.mode==="manage-link"&&e.manageHref?u.jsx("a",{className:"card__link","data-testid":"card-link",href:e.manageHref,target:"_blank",rel:"noopener noreferrer","aria-label":t.name}):null,s?null:u.jsx("button",{className:`card__fav${g?" is-on":""}`,"data-testid":"card-fav",onClick:P=>{P.stopPropagation(),A(t)},"aria-label":oe(g?"assetCard.removeFromFavorites":"assetCard.addToFavorites"),children:u.jsx(it,{name:g?"heart-solid":"heart",size:18})}),u.jsxs("div",{className:"card__media",ref:h,children:[N?u.jsx("span",{className:"card__sale-badge","data-testid":"card-sale-badge",children:Z>0?oe("assetCard.saleWithDiscount",{pct:Z}):oe("assetCard.sale")}):null,t.listingCount&&t.listingCount>1?u.jsx("span",{className:"card__listings","data-testid":"card-listings",children:oe("assetCard.onSaleCount",{count:t.listingCount})}):null,s?u.jsxs("div",{className:"card__name-media","aria-hidden":!0,children:[u.jsx("span",{className:"card__name-at",children:"@"}),u.jsx("span",{className:"card__name-value",children:t.name})]}):t.thumbnail?u.jsx("img",{className:`card__img${b&&I?" card__img--hidden":""}`,src:t.thumbnail,alt:t.name,loading:"lazy"}):null]}),a&&e.mode==="manage"?u.jsxs("div",{className:"card__body",children:[u.jsxs("div",{className:"card__top",children:[u.jsxs("div",{className:"card__desc",children:[u.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.issuedId?u.jsxs("div",{className:"card__creator card__issued","data-testid":"card-issued",children:["#",t.issuedId]}):u.jsx("div",{className:"card__creator",children:" "})]}),e.listed&&t.priceCredits>0?u.jsxs("div",{className:"card__price",title:nn(t.priceCredits),children:[u.jsx(Qt,{className:"card__diamond"}),Vr(t.priceCredits)]}):u.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:oe("assetCard.notForSale")})]}),e.listed?u.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?oe("myAssets.removing"):oe("myAssets.removeListing")}):u.jsx("button",{className:"card__manage","data-testid":"card-list",disabled:e.busy,onClick:P=>{P.stopPropagation(),e.onList(t)},children:oe("myAssets.putOnSale")})]}):s?u.jsxs("div",{className:"card__body card__body--name",children:[u.jsxs("div",{className:"card__top",children:[u.jsx("div",{className:"card__desc",children:u.jsxs("div",{className:"card__name card__name--verified",title:t.name,children:[u.jsxs("span",{children:["@",t.name]}),u.jsxs("svg",{className:"card__verified",width:"18",height:"18",viewBox:"0 0 14.6921 14.6931",fill:"none","aria-hidden":!0,children:[u.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)"}),u.jsx("path",{d:"M4.6 7.5l1.9 1.9 3.6-3.9",stroke:"#FCFCFC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("defs",{children:u.jsxs("linearGradient",{id:"dclVerifiedGrad",x1:"7.35",y1:"0",x2:"7.35",y2:"14.69",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{stopColor:"#FF2D55"}),u.jsx("stop",{offset:"1",stopColor:"#C640CD"})]})})]})]})}),u.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:oe("assetCard.notForSale")})]}),o&&e.mode==="manage-link"&&e.manageHref?u.jsxs("div",{className:"card__action",children:[u.jsx("div",{className:"card__chips"}),u.jsx("a",{className:"card__add-round",href:e.manageHref,target:"_blank",rel:"noopener noreferrer","aria-label":oe("assetCard.manage"),onClick:P=>P.stopPropagation(),children:u.jsx(it,{name:"pen"})}),u.jsxs("a",{className:"card__cart","data-testid":"card-manage",href:e.manageHref,target:"_blank",rel:"noopener noreferrer",onClick:P=>P.stopPropagation(),children:[u.jsx(it,{name:"pen",size:20}),oe("assetCard.manage")]})]}):null]}):o&&e.mode==="manage-link"?u.jsxs("div",{className:"card__body",children:[u.jsxs("div",{className:"card__top",children:[u.jsxs("div",{className:"card__desc",children:[u.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.issuedId?u.jsxs("div",{className:"card__creator card__issued","data-testid":"card-issued",children:["#",t.issuedId]}):u.jsx("div",{className:"card__creator",children:" "})]}),t.priceCredits>0?u.jsxs("div",{className:"card__price",title:nn(t.priceCredits),children:[u.jsx(Qt,{className:"card__diamond"}),Vr(t.priceCredits)]}):u.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:oe("assetCard.notForSale")})]}),u.jsxs("div",{className:"card__action",children:[u.jsxs("div",{className:"card__chips",children:[u.jsx("span",{className:"chip chip--rarity",style:{background:d2(t.rarity),color:f2(t.rarity)},title:h2(t.rarity),children:t.rarity}),ae?u.jsx("span",{className:"chip chip--icon",children:u.jsx(it,{name:ae})}):null]}),u.jsx("button",{className:"card__add-round",onClick:q,"aria-label":oe("assetCard.manage"),children:u.jsx(it,{name:"pen"})}),u.jsxs("button",{className:"card__cart","data-testid":"card-manage",onClick:q,children:[u.jsx(it,{name:"pen",size:20}),oe("assetCard.manage")]})]})]}):n?u.jsxs("div",{className:"card__body",children:[u.jsxs("div",{className:"card__top",children:[u.jsx("div",{className:"card__desc",children:u.jsx("div",{className:"card__name",title:t.name,children:t.name})}),t.priceCredits>0?u.jsxs("div",{className:"card__price",title:nn(t.priceCredits),children:[u.jsx(Qt,{className:"card__diamond"}),Vr(t.priceCredits)]}):u.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:oe("assetCard.notForSale")})]}),u.jsxs("span",{className:"card__view","data-testid":"card-view","aria-hidden":!0,children:[u.jsx(it,{name:"eye",size:20}),oe("assetCard.view")]})]}):u.jsxs("div",{className:"card__body",children:[u.jsxs("div",{className:"card__top",children:[u.jsx("div",{className:"card__desc",children:u.jsx("div",{className:"card__name",title:t.name,children:t.name})}),r&&e.mode==="market"?u.jsxs("div",{className:"card__price card__price--market","data-testid":"card-price-market",children:[u.jsx("span",{className:"card__approx","aria-hidden":!0,children:"≈"}),u.jsx(Qt,{className:"card__diamond"}),e.marketPriceCredits==null?"—":Vr(e.marketPriceCredits)]}):N?u.jsxs("div",{className:"card__price card__price--sale",children:[u.jsxs("span",{className:"card__price-now","data-testid":"card-price-now",title:nn(t.priceCredits),children:[u.jsx(Qt,{className:"card__diamond"}),Vr(t.priceCredits)]}),u.jsxs("span",{className:"card__price-was","data-testid":"card-price-was",title:nn(t.compareAtCredits),children:[u.jsx(Qt,{className:"card__diamond card__diamond--was"}),Vr(t.compareAtCredits)]}),u.jsx(x6,{endsAt:t.saleEndsAt,className:"card__countdown",testId:"card-countdown"})]}):u.jsxs("div",{className:"card__price",title:nn(t.priceCredits),children:[u.jsx(Qt,{className:"card__diamond"}),Vr(t.priceCredits)]})]}),u.jsxs("div",{className:"card__action",children:[u.jsxs("div",{className:"card__chips",children:[r?u.jsx("span",{className:"chip chip--market","data-testid":"chip-market",children:oe("assetCard.marketPrice")}):null,u.jsx("span",{className:"chip chip--rarity",style:{background:d2(t.rarity),color:f2(t.rarity)},title:h2(t.rarity),children:t.rarity}),t.isSmart?u.jsxs("span",{className:"chip chip--smart","data-testid":"chip-smart",children:[u.jsx(it,{name:"smart",size:13}),oe("assetCard.smart")]}):null,ae?u.jsx("span",{className:"chip chip--icon",children:u.jsx(it,{name:ae})}):null,J?u.jsx("span",{className:"chip chip--icon",children:u.jsx(it,{name:J})}):null]}),r&&e.mode==="market"?u.jsx("button",{className:"card__add-round",onClick:P=>{P.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,"aria-label":e.marketPriceCredits==null?oe("assetCard.unavailable"):oe("assetCard.buyNow"),children:u.jsx(it,{name:"plus"})}):u.jsx("button",{className:`card__add-round${!_&&p?" is-in":""}`,onClick:P=>{if(_)return q(P);P.stopPropagation(),m(t,"grid")},disabled:!_&&p,"aria-label":oe(_?"assetCard.manage":p?"assetCard.inCart":"assetCard.addToCart"),children:u.jsx(it,{name:_?"pen":"plus"})}),r&&e.mode==="market"?u.jsx("button",{className:"card__cart","data-testid":"card-cart",onClick:P=>{P.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,children:e.marketPriceCredits==null?oe("assetCard.unavailable"):oe("assetCard.buyNow")}):u.jsxs("button",{className:`card__cart${!_&&p?" is-in":""}`,"data-testid":"card-cart",onClick:P=>{if(_)return q(P);P.stopPropagation(),m(t,"grid")},disabled:!_&&p,children:[u.jsx(it,{name:_?"pen":"cart-solid"}),oe(_?"assetCard.manage":p?"assetCard.inCart":"assetCard.addToCart")]})]})]})]})}const A6=8,k6=8,I6=12;function R6(){const t=Xc(a=>a.followed).slice(0,A6),{data:r=[],isLoading:n}=Wr({queryKey:["followed-creators-row",t.join(",")],enabled:t.length>0,queryFn:async()=>{const a=await Promise.all(t.map(o=>v_(o,{first:k6}).then(s=>s.items).catch(()=>[])));return N6(a).filter(o=>o.priceCredits>0).slice(0,I6)}});return t.length===0||!n&&r.length===0?null:u.jsxs("section",{className:"row",children:[u.jsx("div",{className:"row__head",children:u.jsx("h2",{className:"row__title",children:oe("followedCreators.title")})}),u.jsx("div",{className:"row__track",children:n?Array.from({length:6}).map((a,o)=>u.jsx("div",{className:"card card--skeleton"},o)):r.map(a=>u.jsx(Hl,{item:a},a.id))})]})}function N6(e){const t=[],r=new Set,n=e.reduce((a,o)=>Math.max(a,o.length),0);for(let a=0;a<n;a++)for(const o of e){const s=o[a];s&&!r.has(s.id)&&(r.add(s.id),t.push(s))}return t}const Nh="shop:recently-viewed",Ph=12;function Oh(){try{const e=localStorage.getItem(Nh);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.slice(0,Ph):[]}catch{return[]}}function i9(e){if(e!=null&&e.id)try{const t=[e,...Oh().filter(r=>r.id!==e.id)].slice(0,Ph);localStorage.setItem(Nh,JSON.stringify(t))}catch{}}function P6({excludeId:e}){const t=ne.useMemo(()=>Oh().filter(r=>r.id!==e),[e]);return t.length===0?null:u.jsxs("section",{className:"row",children:[u.jsx("div",{className:"row__head",children:u.jsx("h2",{className:"row__title",children:oe("recentlyViewed.title")})}),u.jsx("div",{className:"row__track",children:t.map(r=>u.jsx(Hl,{item:r},r.id))})]})}async function O6(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 S2=10;function j6(e){try{return Math.floor(Number(U2(e))).toLocaleString("en-US")}catch{return"0"}}function L6({rank:e,creator:t}){return u.jsxs("tr",{className:"ov-creators__row",children:[u.jsx("td",{className:"ov-creators__rank-cell",children:u.jsx("span",{className:"ov-creators__rank",children:e})}),u.jsx("td",{className:"ov-creators__creator-cell",children:u.jsx(Xf,{address:t.id,className:"ov-creators__creator",linkToProfile:!0})}),u.jsx("td",{className:"ov-creators__num",children:t.collections.toLocaleString("en-US")}),u.jsx("td",{className:"ov-creators__num",children:t.sales.toLocaleString("en-US")}),u.jsxs("td",{className:"ov-creators__num ov-creators__volume",children:[u.jsx(Qt,{className:"ov-creators__coin"}),j6(t.earned)]})]})}function B6(){return u.jsxs("tr",{className:"ov-creators__row",children:[u.jsx("td",{className:"ov-creators__rank-cell",children:u.jsx("span",{className:"ov-creators__rank ov-creators__rank--skeleton"})}),u.jsx("td",{className:"ov-creators__creator-cell",children:u.jsx("span",{className:"ov-creators__skeleton ov-creators__skeleton--creator"})}),u.jsx("td",{className:"ov-creators__num",children:u.jsx("span",{className:"ov-creators__skeleton"})}),u.jsx("td",{className:"ov-creators__num",children:u.jsx("span",{className:"ov-creators__skeleton"})}),u.jsx("td",{className:"ov-creators__num",children:u.jsx("span",{className:"ov-creators__skeleton"})})]})}function M6(){const{data:e,isLoading:t,isError:r}=Wr({queryKey:["rankings","creators","week"],queryFn:()=>O6("week",S2)}),n=e??[];return r||!t&&n.length===0?null:u.jsxs("section",{className:"ov-creators",children:[u.jsxs("div",{className:"ov-creators__head",children:[u.jsx("h2",{className:"ov-creators__title",children:oe("weekTopCreators.title")}),u.jsx("span",{className:"ov-creators__period",children:oe("weekTopCreators.thisWeek")})]}),u.jsx("div",{className:"ov-creators__scroll",children:u.jsxs("table",{className:"ov-creators__table",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"ov-creators__header",children:[u.jsx("th",{className:"ov-creators__th ov-creators__th--rank",scope:"col",children:oe("weekTopCreators.rank")}),u.jsx("th",{className:"ov-creators__th",scope:"col",children:oe("weekTopCreators.creator")}),u.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:oe("weekTopCreators.collections")}),u.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:oe("weekTopCreators.sales")}),u.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:oe("weekTopCreators.volume")})]})}),u.jsx("tbody",{children:t?Array.from({length:S2}).map((a,o)=>u.jsx(B6,{},o)):n.map((a,o)=>u.jsx(L6,{rank:o+1,creator:a},a.id))})]})})]})}const jh="Decentraland Shop",F6=`${jh} | Wearables & Emotes for Your Avatar`,$6="Discover wearables and emotes to make your Decentraland avatar your own. Explore thousands of unique looks and find your style in seconds.";function xr(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 D6(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 q6(e={}){const{title:t,description:r=$6,image:n,type:a="website",noindex:o=!1,canonicalPath:s}=e;ne.useEffect(()=>{if(typeof window>"u")return;const d=window.location.origin,f=d+(s??window.location.pathname),h=n??`${d}https://cdn.decentraland.org/@dcl/shop/0.1.0-29996672089.commit-ce4d282/og-image.png`,m=t?`${t} | ${jh}`:F6;document.title=m,xr("name","description",r),xr("name","robots",o?"noindex,nofollow":"index,follow"),D6("canonical",f),xr("property","og:title",m),xr("property","og:description",r),xr("property","og:url",f),xr("property","og:image",h),xr("property","og:type",a),xr("name","twitter:title",m),xr("name","twitter:description",r),xr("name","twitter:image",h)},[t,r,n,a,o,s])}const T2="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2059.7045%2058.9085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Slider%20Arrows'%3e%3cpath%20id='Oval'%20opacity='0.8'%20d='M29.8522%201.59244C45.437%201.59244%2058.1117%2014.0437%2058.112%2029.4538C58.112%2044.8641%2045.4372%2057.3161%2029.8522%2057.3161C14.2672%2057.3161%201.59244%2044.8641%201.59244%2029.4538C1.5927%2014.0437%2014.2674%201.59247%2029.8522%201.59244Z'%20fill='var(--fill-0,%20white)'%20stroke='var(--stroke-0,%20white)'%20stroke-width='3.18424'/%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2842%2029.0164L25.652%2043.0901C24.8014%2043.9083%2023.4222%2043.9083%2022.5716%2043.0901C21.721%2042.2719%2021.721%2040.9454%2022.5716%2040.1272L34.1233%2029.0164L22.5716%2017.9056C21.721%2017.0874%2021.721%2015.7609%2022.5716%2014.9427C23.4222%2014.1245%2024.8014%2014.1245%2025.652%2014.9427L40.2842%2029.0164Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",U6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29996672089.commit-ce4d282/assets/hero-fashion-week-B9LOzkde.png",H6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29996672089.commit-ce4d282/assets/promo-best-rated-emotes-C6kNvB-a.png",V6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29996672089.commit-ce4d282/assets/promo-week-selected-outfits-BBmkZYZx.png",z6=wt(Ys)`
|
|
281
|
+
margin-top: 10px;
|
|
282
|
+
`,G6=wt(Ys)`
|
|
283
|
+
height: 40px;
|
|
284
|
+
padding: 0 16px;
|
|
285
|
+
display: inline-flex;
|
|
286
|
+
align-items: center;
|
|
287
|
+
`,A2=6;function k2({title:e,items:t,loading:r}){const n=ne.useRef(null),[a,o]=ne.useState(1),[s,d]=ne.useState(0),f=r?A2:t.length,h=ne.useCallback(()=>{const v=n.current;if(!v)return;const _=v.clientWidth;if(_<=0)return;const A=Math.max(1,Math.ceil((v.scrollWidth-_)/_)+1);o(A),d(Math.min(A-1,Math.round(v.scrollLeft/_)));const g=v.querySelector(".card__media"),T=v.parentElement;T&&T.style.setProperty("--ov-arrow-top",`${12+(g?g.offsetHeight:150)/2}px`)},[]);ne.useEffect(()=>{h();const v=n.current;if(!v)return;const _=()=>d(Math.round(v.scrollLeft/Math.max(1,v.clientWidth)));return v.addEventListener("scroll",_,{passive:!0}),window.addEventListener("resize",h),()=>{v.removeEventListener("scroll",_),window.removeEventListener("resize",h)}},[h,f]);const m=ne.useCallback(v=>{const _=n.current;if(!_)return;const A=Math.max(0,Math.min(a-1,v));_.scrollTo({left:A*_.clientWidth,behavior:"smooth"})},[a]),p=!r&&a>1;return u.jsxs("section",{className:"row ov-carousel",children:[u.jsxs("div",{className:"row__head",children:[u.jsx("h2",{className:"row__title",children:e}),u.jsxs(Sn,{className:"row__viewall",to:"/assets",children:[oe("overview.viewAll")," ",u.jsx(it,{name:"view-all-arrow",size:18})]})]}),u.jsxs("div",{className:"ov-carousel__viewport",children:[p?u.jsx("button",{className:"ov-arrow ov-arrow--left",onClick:()=>m(s-1),disabled:s<=0,"aria-label":oe("overview.previous"),children:u.jsx("img",{src:T2,alt:"","aria-hidden":!0})}):null,u.jsx("div",{className:"ov-carousel__track",ref:n,children:r?Array.from({length:A2}).map((v,_)=>u.jsx("div",{className:"card card--skeleton"},_)):t.map(v=>u.jsx(Hl,{item:v},v.id))}),p?u.jsx("button",{className:"ov-arrow ov-arrow--right",onClick:()=>m(s+1),disabled:s>=a-1,"aria-label":oe("overview.next"),children:u.jsx("img",{src:T2,alt:"","aria-hidden":!0})}):null]}),p?u.jsx("div",{className:"ov-carousel__dots","aria-label":oe("overview.carouselPages",{title:e}),children:Array.from({length:a}).map((v,_)=>u.jsx("button",{className:`ov-dot${_===s?" is-active":""}`,onClick:()=>m(_),"aria-label":oe("overview.goToPage",{page:_+1}),"aria-current":_===s?"true":void 0},_))}):null]})}function W6(){q6({});const{data:e,isLoading:t}=Wr({queryKey:["overview-listings"],queryFn:()=>wh({first:24})}),r=(e==null?void 0:e.items)??[];return u.jsxs("div",{className:"overview",children:[u.jsxs("section",{className:"ov-hero",children:[u.jsx("img",{className:"ov-hero__bg",src:U6,alt:"","aria-hidden":!0}),u.jsx("div",{className:"ov-hero__scrim","aria-hidden":!0}),u.jsxs("div",{className:"ov-hero__inner",children:[u.jsx("h1",{className:"ov-hero__title",children:oe("overview.heroTitle")}),u.jsx(G6,{as:Sn,to:"/assets",variant:"purple",children:oe("overview.exploreCollection")})]})]}),t||r.length>0?u.jsxs(u.Fragment,{children:[u.jsx(k2,{title:oe("overview.featuredProducts"),items:r.slice(0,12),loading:t}),u.jsxs("section",{className:"ov-promos",children:[u.jsx(Sn,{className:"ov-promo",to:"/assets","aria-label":oe("overview.promoEmotesAria"),children:u.jsx("img",{src:H6,alt:oe("overview.promoEmotesAlt")})}),u.jsx(Sn,{className:"ov-promo",to:"/assets","aria-label":oe("overview.promoOutfitsAria"),children:u.jsx("img",{src:V6,alt:oe("overview.promoOutfitsAlt")})})]}),r.length>12?u.jsx(k2,{title:oe("overview.newCreations"),items:r.slice(12,24),loading:!1}):null]}):u.jsxs("div",{className:"overview__empty",children:[u.jsx("p",{className:"overview__empty-title",children:oe("overview.emptyTitle")}),u.jsx("p",{className:"muted",children:oe("overview.emptyBody")}),u.jsx(z6,{as:Sn,to:"/assets",variant:"purple",children:oe("notFound.cta")})]}),u.jsx(P6,{}),u.jsx(R6,{}),u.jsx(M6,{})]})}const Z6={"/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"},K6=ne.lazy(()=>_t(()=>import("./Assets-DHtvK9gi.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}))),Y6=ne.lazy(()=>_t(()=>import("./ItemDetail-DQOBDAhC.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}))),Q6=ne.lazy(()=>_t(()=>import("./Collection-DFIFsgYQ.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}))),J6=ne.lazy(()=>_t(()=>import("./Creator-BzYX40qE.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}))),X6=ne.lazy(()=>_t(()=>import("./StoreSettings-LdrMcuVr.js"),__vite__mapDeps([56,1,52,2,38,6,7,8,57])).then(e=>({default:e.StoreSettings}))),e8=ne.lazy(()=>_t(()=>import("./MyAssets-cbSiEx2B.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}))),t8=ne.lazy(()=>_t(()=>import("./MyFavorites-DxWrJSpf.js"),__vite__mapDeps([60,1,31,2,6,7,8])).then(e=>({default:e.MyFavorites}))),r8=ne.lazy(()=>_t(()=>import("./Activity-ji9z26-b.js"),__vite__mapDeps([61,1,24,12,2,7,6,25,31,39,8])).then(e=>({default:e.Activity}))),n8=ne.lazy(()=>_t(()=>import("./ImportListings-BiGwtdUn.js"),__vite__mapDeps([62,1,59,33,2,34,12,13,7,6,35,24,8,63])).then(e=>({default:e.ImportListings}))),a8=ne.lazy(()=>_t(()=>import("./Cart-BlShrWP_.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}))),o8=ne.lazy(()=>_t(()=>import("./Authorizations-BNMCiOdB.js"),__vite__mapDeps([67,1,34,12,2,13,7,6,37,8])).then(e=>({default:e.Authorizations}))),s8=ne.lazy(()=>_t(()=>import("./GetCredits-eVhxGnMo.js"),__vite__mapDeps([68,1,47,65,40,46,18,2,6,7,8])).then(e=>({default:e.GetCredits}))),i8=ne.lazy(()=>_t(()=>import("./Success-BRT1MWds.js"),__vite__mapDeps([69,1,36,34,12,2,13,7,6,35,8])).then(e=>({default:e.Success}))),c8=ne.lazy(()=>_t(()=>import("./NotFound-Cj4SIl5T.js"),__vite__mapDeps([70,1,2,6,7,8])).then(e=>({default:e.NotFound})));function l8(){return u.jsx("div",{className:"page-loading","aria-busy":"true",children:u.jsx("span",{className:"spinner","aria-hidden":!0})})}const u8=wt(Ys)`
|
|
288
|
+
margin-top: 10px;
|
|
289
|
+
`;function d8(){return u.jsxs("div",{className:"overview__empty",children:[u.jsx("p",{className:"overview__empty-title",children:oe("app.crash.title")}),u.jsx("p",{className:"muted",children:oe("app.crash.body")}),u.jsx(u8,{variant:"purple",onClick:()=>window.location.reload(),children:oe("app.crash.reload")})]})}function f8(){y6();const e=q2();return ne.useEffect(()=>{sv()},[]),ne.useEffect(()=>{const t=e.pathname,r=Z6[t]??(t.startsWith("/item/")?"item":t.startsWith("/collection/")?"collection":t.startsWith("/assets/creator/")?"creator":"other");rv(r)},[e.pathname]),u.jsxs(u.Fragment,{children:[u.jsx(U_,{}),u.jsx(g6,{}),u.jsx(n6,{}),u.jsx(O_,{}),u.jsx("main",{className:"page",children:u.jsx(fu,{fallback:u.jsx(d8,{}),children:u.jsx(ne.Suspense,{fallback:u.jsx(l8,{}),children:u.jsxs(Jh,{children:[u.jsx(Et,{path:"/",element:u.jsx(ci,{to:"/overview",replace:!0})}),u.jsx(Et,{path:"/overview",element:u.jsx(W6,{})}),u.jsx(Et,{path:"/assets",element:u.jsx(K6,{})}),u.jsx(Et,{path:"/market",element:u.jsx(ci,{to:"/assets",replace:!0})}),u.jsx(Et,{path:"/item/:contractAddress/:tokenId",element:u.jsx(Y6,{})}),u.jsx(Et,{path:"/collection/:contractAddress",element:u.jsx(Q6,{})}),u.jsx(Et,{path:"/assets/creator/:address",element:u.jsx(J6,{})}),u.jsx(Et,{path:"/store-settings",element:u.jsx(X6,{})}),u.jsx(Et,{path:"/my-assets",element:u.jsx(e8,{})}),u.jsx(Et,{path:"/my-favorites",element:u.jsx(t8,{})}),u.jsx(Et,{path:"/activity",element:u.jsx(r8,{})}),u.jsx(Et,{path:"/my-purchases",element:u.jsx(ci,{to:"/activity",replace:!0})}),u.jsx(Et,{path:"/import",element:u.jsx(n8,{})}),u.jsx(Et,{path:"/cart",element:u.jsx(a8,{})}),u.jsx(Et,{path:"/authorizations",element:u.jsx(o8,{})}),u.jsx(Et,{path:"/credits",element:u.jsx(s8,{})}),u.jsx(Et,{path:"/success",element:u.jsx(i8,{})}),u.jsx(Et,{path:"*",element:u.jsx(c8,{})})]})})})}),u.jsx(fu,{fallback:u.jsx(u.Fragment,{}),children:u.jsx(c6,{})})]})}function h8({children:e}){const t=cl(r=>r.locale);return sw(t),u.jsx(d3,{value:Pl(t),children:e},t)}hv();const m8=new $1({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),p8=["localhost","127.0.0.1"].includes(window.location.hostname),g8=p8?void 0:"/shop";Xh.createRoot(document.getElementById("root")).render(u.jsx(D2.StrictMode,{children:u.jsx(q1,{client:m8,children:u.jsx(h8,{children:u.jsx(e1,{basename:g8,children:u.jsx(f8,{})})})})}));export{wl as $,Hl as A,Ys as B,Qt as C,Mg as D,x0 as E,Le as F,Wf as G,W8 as H,it as I,o9 as J,q8 as K,D8 as L,Fs as M,vf as N,ch as O,Yw as P,r5 as Q,gn as R,Ye as S,z4 as T,Xw as U,pn as V,Ww as W,Z4 as X,Cl as Y,Wp as Z,_t as _,Jv as a,A8 as a$,Ps as a0,hf as a1,ao as a2,vl as a3,gf as a4,bl as a5,gh as a6,P1 as a7,x8 as a8,E8 as a9,sl as aA,al as aB,Ka as aC,Qw as aD,A5 as aE,dh as aF,yh as aG,Pr as aH,s5 as aI,M8 as aJ,$4 as aK,F4 as aL,y4 as aM,P4 as aN,Ul as aO,z_ as aP,il as aQ,Ih as aR,p2 as aS,H8 as aT,K8 as aU,V8 as aV,T8 as aW,lw as aX,Fd as aY,iw as aZ,S6 as a_,J1 as aa,li as ab,O8 as ac,Ut as ad,v6 as ae,t9 as af,N8 as ag,X8 as ah,e9 as ai,Wa as aj,J8 as ak,k8 as al,wh as am,Kg as an,Nr as ao,Ls as ap,y_ as aq,a9 as ar,T2 as as,__ as at,C_ as au,Xc as av,n9 as aw,z8 as ax,r9 as ay,I4 as az,D1 as b,i9 as b0,b6 as b1,w6 as b2,h2 as b3,f2 as b4,d2 as b5,C6 as b6,x6 as b7,U8 as b8,$8 as b9,n_ as bA,l5 as bB,d4 as bC,ih as bD,u_ as ba,Z8 as bb,Y8 as bc,Kv as bd,c5 as be,d5 as bf,Nw as bg,sh as bh,B8 as bi,ol as bj,uo as bk,Ws as bl,oo as bm,El as bn,Lw as bo,Kw as bp,jw as bq,ah as br,oh as bs,Ow as bt,Gw as bu,h5 as bv,L8 as bw,W4 as bx,G4 as by,Ol as bz,P8 as c,Xv as d,ya as e,j8 as f,Zs as g,R8 as h,s9 as i,mr as j,av as k,I8 as l,q6 as m,xs as n,Wr as o,He as p,Q8 as q,F8 as r,wt as s,oe as t,wa as u,R_ as v,Xf as w,Vr as x,G8 as y,V4 as z};
|