@dcl/shop 0.1.0-29571500722.commit-8ea45d8 → 0.1.0-29588264451.commit-627b4b7
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/{AnimatedBackground-Y-secaKv.js → AnimatedBackground-psFU9eqJ.js} +3 -3
- package/assets/Assets-iKVqmFqq.js +1 -0
- package/assets/Cart-B0oxrKWW.js +1 -0
- package/assets/Cart-C612IvK3.css +1 -0
- package/assets/{CircularProgress-DF1tx4Pz.js → CircularProgress-Fg-Nhc1W.js} +2 -2
- package/assets/Collection-D5Q48x8i.js +1 -0
- package/assets/{ConstantsUtil-BTo1-KgH.js → ConstantsUtil-CCJ0yRd8.js} +1 -1
- package/assets/{ContentClient-DahG0FsN.js → ContentClient-CiSvC4he.js} +1 -1
- package/assets/Creator-Cw25k_kz.js +1 -0
- package/assets/CssVarsProvider-D1D1cNqm.js +24 -0
- package/assets/{DeploymentBuilder-DCLyMp7S.js → DeploymentBuilder-Du1wr7ad.js} +1 -1
- package/assets/{ExchangeController-5UZnaMYm.js → ExchangeController-DR6BBi2L.js} +1 -1
- package/assets/GetCredits-HKG4BM_P.js +1 -0
- package/assets/{HelpersUtil-DsOycveq.js → HelpersUtil-31KPVf4r.js} +1 -1
- package/assets/{ImportListings-Ry47KtP_.js → ImportListings-dKZfPQUt.js} +1 -1
- package/assets/ItemDetail-BMi8a81V.css +1 -0
- package/assets/ItemDetail-Cx-6T0Eg.js +2 -0
- package/assets/{LoadMore-DsKzH4Rv.js → LoadMore-CiZkVzux.js} +1 -1
- package/assets/MarketCheckout-Qn1ixrkb.js +1 -0
- package/assets/MyAssets-DxI94ipn.js +1 -0
- package/assets/{MyFavorites-BfWQjhlL.js → MyFavorites-D2VaWS1B.js} +1 -1
- package/assets/{MyPurchases-DbU97xcR.js → MyPurchases-B9emkBFN.js} +1 -1
- package/assets/{NetworkUtil-DInevqnn.js → NetworkUtil-Yv-DdqEo.js} +1 -1
- package/assets/{NotFound-CWys1EXA.js → NotFound-E0wDMFCK.js} +1 -1
- package/assets/{StoreSettings-C-yDm4Ah.js → StoreSettings-DfKsXLjF.js} +1 -1
- package/assets/Success-D8vbmLlB.js +1 -0
- package/assets/{SwapController-Bau8y3ss.js → SwapController-BhWJpnsS.js} +1 -1
- package/assets/{TradeService-sWmitO7N.js → TradeService-CzTJfCBU.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-BrDTQqcr.js → W3MFrameProviderSingleton-QTe845Ty.js} +3 -3
- package/assets/{WebCryptoP256-Clorun9S.js → WebCryptoP256-C9DwfYdN.js} +1 -1
- package/assets/{basic-Co2ks3tP.js → basic-BZccaaZw.js} +1 -1
- package/assets/{biconomy-DAm_-Hm_.js → biconomy-DB7oVSPZ.js} +1 -1
- package/assets/{browser-9oFjBwrz.js → browser-L8b8z1bK.js} +1 -1
- package/assets/browser-ponyfill-Cl4XgbUp.js +1 -0
- package/assets/{browser-ponyfill-DMgE6PM5.js → browser-ponyfill-jziBOMa-.js} +1 -1
- package/assets/{buy-y9zg-9gr.js → buy-D_7yggiZ.js} +1 -1
- package/assets/{buy-gasless-B4g8GiJr.js → buy-gasless-DdXBIm99.js} +1 -1
- package/assets/cart-checkout-C6slCzLp.js +1 -0
- package/assets/categories-CBvVTfQE.css +1 -0
- package/assets/categories-CS5KEV15.js +1 -0
- package/assets/{ccip-i7tJF0Hj.js → ccip-Bs_9Z_ZN.js} +1 -1
- package/assets/{ccip-B8JdVFq5.js → ccip-CRir71Ts.js} +1 -1
- package/assets/{chains-BQ5Swd2q.js → chains-sL9nr1ux.js} +1 -1
- package/assets/collection-BB4WIsDf.js +1 -0
- package/assets/colors-LINLm1ux.js +1 -0
- package/assets/{common-CBPtpBt7.js → common-Dyx8k-hp.js} +1 -1
- package/assets/{controller-BVAEs_Ol.js → controller-8YCt_5kO.js} +2 -2
- package/assets/{core-DXAXZQxt.js → core-_p71vehW.js} +4 -4
- package/assets/{custom-C00ZS-dv.js → custom-D5gy9Lbk.js} +1 -1
- package/assets/{data-capture-BfGns_F9.js → data-capture-D4KpcM2w.js} +1 -1
- package/assets/decimals-Bkiwsrz3.js +1 -0
- package/assets/{decimals-7LZbjdh-.js → decimals-DAdpv8M5.js} +1 -1
- package/assets/{detectExtension-C_qqqhXd.js → detectExtension-BwC-gZ7s.js} +1 -1
- package/assets/{email-10XDB7Ed.js → email-DoKqUCg3.js} +1 -1
- package/assets/{embedded-wallet-Coq3FP2j.js → embedded-wallet-DFjP-9W6.js} +1 -1
- package/assets/{emotion-styled.browser.esm-Col8rSBp.js → emotion-styled.browser.esm-B7PezGnO.js} +1 -1
- package/assets/{engine-DNO34GZS.js → engine-C07V9FFP.js} +1 -1
- package/assets/{estimate-l1-fee-ttG5TVsi.js → estimate-l1-fee-CbSYXxVq.js} +1 -1
- package/assets/eth_estimateGas-CHt9spnf.js +1 -0
- package/assets/{eth_getStorageAt-ZjeD4sfh.js → eth_getStorageAt-Dzigs9Zu.js} +1 -1
- package/assets/eth_getTransactionCount-CDY9h_Rg.js +1 -0
- package/assets/{ethereum-CD3dxaW_.js → ethereum-gQdvRN4F.js} +1 -1
- package/assets/{ethers-DwWf2RqE.js → ethers-DArfy-QF.js} +1 -1
- package/assets/{extractIPFS-CFw95IDm.js → extractIPFS-BOTNSryE.js} +1 -1
- package/assets/{features-BBwkLwo8.js → features-C90RUzSP.js} +1 -1
- package/assets/{fetchTokenMetadata-BbJeox1b.js → fetchTokenMetadata-BKZfKsNV.js} +2 -2
- package/assets/{fortmatic-DhmlcDbL.js → fortmatic-BAdaY-Dp.js} +1 -1
- package/assets/get-ecosystem-wallet-info-WLLUCIzd.js +1 -0
- package/assets/{getBalance-BVXxyvdU.js → getBalance-Bb_-F40S.js} +2 -2
- package/assets/{getInstalledModules-92CJz4J0.js → getInstalledModules-BOPp6l-B.js} +1 -1
- package/assets/{getNFT-By7tEt1z.js → getNFT-DsdBNES9.js} +1 -1
- package/assets/{getNFT-6Z-JCPcj.js → getNFT-jiRKQ5Oo.js} +2 -2
- package/assets/getOverlayAlpha-CM9JvcJV.js +1 -0
- package/assets/{hashTypedData-UUOD4hvk.js → hashTypedData-DONiI8QZ.js} +1 -1
- package/assets/{hashTypedData-78L5umOY.js → hashTypedData-vGDzeBcA.js} +1 -1
- package/assets/{import-BCIlZ3yx.js → import-DM-iC_9y.js} +1 -1
- package/assets/{in-app-wallet-calls-Dx8qnM7-.js → in-app-wallet-calls-C_aNlFmv.js} +1 -1
- package/assets/{index-BlFZSvWx.js → index--gVKrRw0.js} +1 -1
- package/assets/{index-DFGIa8d3.js → index-57pYnjcK.js} +1 -1
- package/assets/{index-Dfn1y1uF.js → index-7DJmnNdg.js} +1 -1
- package/assets/{index-BVRx9Ot1.js → index-7PEMu-vS.js} +1 -1
- package/assets/{index-CIx1sZmW.js → index-8TBzmL0l.js} +1 -1
- package/assets/{index-DNT62M3w.js → index-B2Zw4G7Z.js} +1 -1
- package/assets/index-BAYW-Y7J.css +1 -0
- package/assets/{index-BsVbqXUp.js → index-BEob012O.js} +3 -3
- package/assets/{index-BAoHOXze.js → index-BIJTdhnz.js} +2 -2
- package/assets/{index-B7PXWLXB.js → index-BNKsMdm-.js} +1 -1
- package/assets/{index-DLXELZQv.js → index-BNsBOmtc.js} +1 -1
- package/assets/{index-DKP6gkl4.js → index-BQrBXxNO.js} +1 -1
- package/assets/{index-DjVz63Zr.js → index-BUzSFM10.js} +1 -1
- package/assets/{index-D-BMnyQb.js → index-BVEDAipP.js} +1 -1
- package/assets/{index-C4JAp-Oa.js → index-BVpuOhLG.js} +3 -3
- package/assets/{index-CApcD-t8.js → index-Bj7GkEZm.js} +1 -1
- package/assets/{index-DN8pYCNl.js → index-Bn_Nt76C.js} +1 -1
- package/assets/{index-BYRbnzmu.js → index-BpQeHVbA.js} +1 -1
- package/assets/{index-C1wVfhuw.js → index-BtVa_Kh7.js} +1 -1
- package/assets/{index-Ds-AFLHc.js → index-Bv4pyelF.js} +1 -1
- package/assets/{index-C3xlbPh_.js → index-C02-3pKD.js} +2 -2
- package/assets/{index-KYyY5J5u.js → index-C2G2lljO.js} +1 -1
- package/assets/{index-DsVVBfxP.js → index-C5j8nmW-.js} +1 -1
- package/assets/{index-CjpJ162L.js → index-C6Uar8kN.js} +1 -1
- package/assets/{index-ZvQFinLo.js → index-C7gttTv8.js} +1 -1
- package/assets/{index-CAMCLJ-3.js → index-C8i-4YQe.js} +1 -1
- package/assets/index-CBVNSjCQ.js +74 -0
- package/assets/{index-DUc6Q2Iz.js → index-CE5ZSWni.js} +1 -1
- package/assets/{index-By6STTNb.js → index-CFasXWsQ.js} +1 -1
- package/assets/{index-DcmcHRml.js → index-CFy8QjLL.js} +1 -1
- package/assets/index-CIiavQLK.js +1 -0
- package/assets/{index-Bvx0NOxN.js → index-CRTJ7_WQ.js} +1 -1
- package/assets/{index-D8XPW5rW.js → index-CSm8067w.js} +1 -1
- package/assets/{index-C_x2eFau.js → index-CThtDCr0.js} +3 -3
- package/assets/{index-DhQcB2cI.js → index-C__ZUWCs.js} +1 -1
- package/assets/index-ChMOJahJ.js +2 -0
- package/assets/{index-94XD4C5w.js → index-Ckj9N8kM.js} +1 -1
- package/assets/{index-CBWS4Ml_.js → index-Cmhu1R9V.js} +1 -1
- package/assets/{index-DHM1o-4K.js → index-CnWEn3Fl.js} +1 -1
- package/assets/{index-lt7oq_YM.js → index-CsTr0LfC.js} +1 -1
- package/assets/{index-Bsx6GubH.js → index-Cv14wakP.js} +1 -1
- package/assets/{index-CeR8VFbd.js → index-D3SxIXox.js} +1 -1
- package/assets/{index-CJD-gYKv.js → index-D66LUjvb.js} +1 -1
- package/assets/{index-CPYtbWCQ.js → index-D8WLCETG.js} +1 -1
- package/assets/{index-6jN-_TNa.js → index-D8WMIH5c.js} +1 -1
- package/assets/index-DD6TVIkI.js +1 -0
- package/assets/{index-CC32N6uw.js → index-DHJgxESc.js} +1 -1
- package/assets/{index-CGbJjZCV.js → index-DO9rihjD.js} +1 -1
- package/assets/{index-DIYL1_Ov.js → index-DSs6L904.js} +1 -1
- package/assets/{index-DhedohT0.js → index-DaIODAHU.js} +1 -1
- package/assets/index-DgPN63Jh.js +103 -0
- package/assets/{index-D7Fx-Qac.js → index-Dgwg-DaP.js} +1 -1
- package/assets/{index-BBZ21lbu.js → index-DmQaEVTR.js} +1 -1
- package/assets/index-DxBzK74p.js +1 -0
- package/assets/{index-Ct0w7Ogt.js → index-DzmAUU0P.js} +1 -1
- package/assets/{index-DkjQWYoB.js → index-MqZwF8o9.js} +2 -2
- package/assets/{index-P4QO1O0D.js → index-QHZTwn8s.js} +1 -1
- package/assets/{index-BlNwDD1i.js → index-SOuBSYKv.js} +1 -1
- package/assets/{index-DaDHmqAS.js → index-TNdqfy5A.js} +2 -2
- package/assets/{index-BsFR4koq.js → index-fGWdBWqW.js} +1 -1
- package/assets/{index-DPyb1X7J.js → index-gEVnIhEr.js} +1 -1
- package/assets/{index-DNGhO1UM.js → index-gt71uI0K.js} +1 -1
- package/assets/{index-Dp3Py-Ws.js → index-sFssfP96.js} +1 -1
- package/assets/{index-B0PF-s9M.js → index-xHNUVGAh.js} +1 -1
- package/assets/{index-ClxTTupQ.js → index-zHd02W0T.js} +1 -1
- package/assets/{index.es-CNLSXMT-.js → index.es-B5B8Zcyr.js} +1 -1
- package/assets/{index.es-DGT1W3bC.js → index.es-C122sfII.js} +1 -1
- package/assets/{index.es-EcAKXlCW.js → index.es-D2JDwbaX.js} +4 -4
- package/assets/{localBatchGatewayRequest-CUupTU5s.js → localBatchGatewayRequest-aLhcfaIA.js} +1 -1
- package/assets/{mana-rate-TrkgOUFu.js → mana-rate-DM_I1GlP.js} +1 -1
- package/assets/{native-B49T_qnV.js → native-DBJATukw.js} +1 -1
- package/assets/network-Dev_1fOd.js +1 -0
- package/assets/{networks-BEAzlz87.js → networks-C5Fm0Wg2.js} +1 -1
- package/assets/{onramp-BHjPyFrf.js → onramp-DkCes_uB.js} +1 -1
- package/assets/{openzeppelin-BqEz23oI.js → openzeppelin-Do5qc-L4.js} +1 -1
- package/assets/{ownerOf-D2Ruvcgr.js → ownerOf-B7-bZ1Kj.js} +1 -1
- package/assets/{parseNft-C4rXbAm3.js → parseNft-BnBeb8zU.js} +2 -2
- package/assets/{parseSignature-1_3SuD3y.js → parseSignature-BXiUrtE0.js} +3 -3
- package/assets/{parseSignature-B6_wXS1t.js → parseSignature-gA3whR_I.js} +1 -1
- package/assets/{pay-with-exchange-AvS-iWv3.js → pay-with-exchange-Bfj0m_wp.js} +1 -1
- package/assets/payments-Cz9uOQEa.js +1 -0
- package/assets/{qr-overlay-Di1sYsV2.js → qr-overlay-tCTGCDoP.js} +3 -3
- package/assets/{react-C51i12iP.js → react-yytiy0wi.js} +1 -1
- package/assets/{receive-CGzdSteR.js → receive-BB-3p_8X.js} +1 -1
- package/assets/{resolveImplementation-CaXsKbDx.js → resolveImplementation-AZ8V1faE.js} +1 -1
- package/assets/resume-buy-Bf0zIH7y.js +1 -0
- package/assets/{rpc-DG-6qjB5.js → rpc-DfJIwLRx.js} +1 -1
- package/assets/{secp256k1-ChfveZcd.js → secp256k1-Bmuoeuaz.js} +1 -1
- package/assets/{secp256k1-DWucSlB-.js → secp256k1-D5GxePTM.js} +1 -1
- package/assets/{secp256k1-B9CXpvLY.js → secp256k1-lxVndZFi.js} +1 -1
- package/assets/{send-D5cFILBF.js → send-DmW5J-Nc.js} +1 -1
- package/assets/{send-batch-transaction-B3lTEUOF.js → send-batch-transaction-CZjLQhJF.js} +1 -1
- package/assets/{send-eip712-transaction-ByX_--Vb.js → send-eip712-transaction-BhyQ0a_B.js} +2 -2
- package/assets/{send-gasless-transaction-sFztvg-i.js → send-gasless-transaction-CXbVlKhB.js} +2 -2
- package/assets/{sendRawTransaction-CR5Mmi6b.js → sendRawTransaction-BGdiWFeb.js} +3 -3
- package/assets/{serializeTransaction-D79jfd3_.js → serializeTransaction-DykKczc7.js} +1 -1
- package/assets/{session-proposal-Cwo9ltsm.js → session-proposal-BEX_HaKf.js} +1 -1
- package/assets/{session-request-l_FrHUZo.js → session-request-DR4MsaR6.js} +2 -2
- package/assets/{sha256-B1PPmRn9.js → sha256-Dlxe-c_a.js} +1 -1
- package/assets/{signing-Sn5rFCHS.js → signing-DznnvpB3.js} +5 -5
- package/assets/{socials-CqUkp7RR.js → socials-BIESIfY8.js} +1 -1
- package/assets/{swaps-hvkTELkc.js → swaps-CA_8qfYn.js} +1 -1
- package/assets/{thirdweb-Bfq5h25u.js → thirdweb-UauMP3KV.js} +3 -3
- package/assets/{totalSupply-yip6OCLy.js → totalSupply-V0CpLejD.js} +1 -1
- package/assets/{trade-encoding-42N07h92.js → trade-encoding-CWQaROcB.js} +1 -1
- package/assets/{transactionReceipt-DADNrKU6.js → transactionReceipt-T_4Pqj5L.js} +1 -1
- package/assets/{transactions-DQBiQzWz.js → transactions-CCKmzO8P.js} +1 -1
- package/assets/{useInfiniteGrid-CjcJxtXA.js → useInfiniteGrid-BwrFUhaa.js} +1 -1
- package/assets/useStore-D9l09yvh.js +2 -0
- package/assets/useTheme-B2pFHCn2.js +1 -0
- package/assets/useTheme-Bf8Lxsxi.js +1 -0
- package/assets/{utils-rl7KiNyp.js → utils-BDQ8DS2k.js} +1 -1
- package/assets/{verifyHash-CNDR4v8f.js → verifyHash-DictgvCd.js} +1 -1
- package/assets/{w3m-modal-Clo6bKVE.js → w3m-modal-DEg0nzZj.js} +1 -1
- package/assets/{w3m-modal-GMd0MTV7.js → w3m-modal-DjfQ6wwU.js} +1 -1
- package/assets/{wait-for-tx-receipt-uU57b-HM.js → wait-for-tx-receipt-agyY9QD2.js} +1 -1
- package/assets/{wallet-kind-PnN45EW0.js → wallet-kind-Jzl4cyiP.js} +1 -1
- package/assets/{wallets-CgInyYuE.js → wallets-_A4Bjek9.js} +6 -6
- package/assets/{web-connector-DitPEy2c.js → web-connector-BaXQsZJI.js} +3 -3
- package/assets/{writeContract-CzZHvjcP.js → writeContract-D9YLPdhX.js} +1 -1
- package/assets/{zora-sepolia-Cmu9LYjr.js → zora-sepolia-B35hC1NB.js} +1 -1
- package/assets/{zoraTestnet-l_-faq0L.js → zoraTestnet-BC6E1i5C.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/Assets-sWyggSzY.js +0 -1
- package/assets/Cart-DVt0m7-J.js +0 -1
- package/assets/Collection-D-dr6oYY.js +0 -1
- package/assets/Creator-DpZ1qFEV.js +0 -1
- package/assets/GetCredits-B-2Nu_Cx.js +0 -1
- package/assets/ItemDetail--AzXh8S2.css +0 -1
- package/assets/ItemDetail-CblzRtB5.js +0 -2
- package/assets/MyAssets-26oYZL-x.js +0 -1
- package/assets/Success-CW65bxXN.js +0 -1
- package/assets/browser-ponyfill-Djb5Py6a.js +0 -1
- package/assets/categories-DbX2Gw4H.js +0 -1
- package/assets/categories-FoGfjyVm.css +0 -1
- package/assets/collection-CS59m6GL.js +0 -1
- package/assets/decimals-CeoXdXWM.js +0 -1
- package/assets/eth_estimateGas-BiFrKNU-.js +0 -1
- package/assets/eth_getTransactionCount-BjHbR3QT.js +0 -1
- package/assets/get-ecosystem-wallet-info-BotVMG7h.js +0 -1
- package/assets/index-B4tMFfvy.js +0 -74
- package/assets/index-BcX-FSIU.css +0 -1
- package/assets/index-C1u3RQ96.js +0 -103
- package/assets/index-DH3Yzbz3.js +0 -1
- package/assets/index-QnApYtWL.js +0 -1
- package/assets/network-44dqSlR2.js +0 -1
- package/assets/useStore-zhFVY9fU.js +0 -2
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DxBzK74p.js","assets/react-yytiy0wi.js","assets/network-Dev_1fOd.js","assets/index-Cv14wakP.js","assets/emotion-styled.browser.esm-B7PezGnO.js","assets/colors-LINLm1ux.js","assets/ethers-DArfy-QF.js","assets/index-BIJTdhnz.js","assets/events-DQ172AOg.js","assets/TradeService-CzTJfCBU.js","assets/index-B2Zw4G7Z.js","assets/index-BEob012O.js","assets/index-sFssfP96.js","assets/index-CBVNSjCQ.js","assets/useTheme-Bf8Lxsxi.js","assets/CircularProgress-Fg-Nhc1W.js","assets/useTheme-B2pFHCn2.js","assets/getOverlayAlpha-CM9JvcJV.js","assets/AnimatedBackground-psFU9eqJ.js","assets/AnimatedBackground-CiurwFBv.css","assets/Assets-iKVqmFqq.js","assets/mana-rate-DM_I1GlP.js","assets/MarketCheckout-Qn1ixrkb.js","assets/buy-D_7yggiZ.js","assets/trade-encoding-CWQaROcB.js","assets/buy-gasless-DdXBIm99.js","assets/categories-CS5KEV15.js","assets/categories-CBvVTfQE.css","assets/LoadMore-CiZkVzux.js","assets/useInfiniteGrid-BwrFUhaa.js","assets/ItemDetail-Cx-6T0Eg.js","assets/payments-Cz9uOQEa.js","assets/resume-buy-Bf0zIH7y.js","assets/ItemDetail-BMi8a81V.css","assets/Collection-D5Q48x8i.js","assets/collection-BB4WIsDf.js","assets/collection-CrgnzsVL.css","assets/useStore-D9l09yvh.js","assets/Collection-CxRRuAdy.css","assets/Creator-Cw25k_kz.js","assets/Creator-DJqbQ8AX.css","assets/StoreSettings-DfKsXLjF.js","assets/StoreSettings-BsV7iEJX.css","assets/MyAssets-DxI94ipn.js","assets/import-DM-iC_9y.js","assets/wallet-kind-Jzl4cyiP.js","assets/MyAssets-BqJHbQOZ.css","assets/MyFavorites-D2VaWS1B.js","assets/MyPurchases-B9emkBFN.js","assets/ImportListings-dKZfPQUt.js","assets/ImportListings-Cdx3om4x.css","assets/Cart-B0oxrKWW.js","assets/cart-checkout-C6slCzLp.js","assets/Cart-C612IvK3.css","assets/GetCredits-HKG4BM_P.js","assets/Success-D8vbmLlB.js","assets/NotFound-E0wDMFCK.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var T2=Object.defineProperty;var xb=e=>{throw TypeError(e)};var w2=(e,t,r)=>t in e?T2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var vi=(e,t,r)=>w2(e,typeof t!="symbol"?t+"":t,r),zf=(e,t,r)=>t.has(e)||xb("Cannot "+r);var le=(e,t,r)=>(zf(e,t,"read from private field"),r?r.call(e):t.get(e)),ze=(e,t,r)=>t.has(e)?xb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),De=(e,t,r,n)=>(zf(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),nt=(e,t,r)=>(zf(e,t,"access private method"),r);var Yu=(e,t,r,n)=>({set _(i){De(e,t,i,r)},get _(){return le(e,t,n)}});import{r as ve,j as P,i as UC,g as Gd,R as FC,c as F_,a as Zv,h as I2,L as Ia,l as H_,e as hi,k as R2,u as A2,b as HC,m as os,n as O2,o as Er,N as Gb,p as N2,B as P2}from"./react-yytiy0wi.js";import{g as Pd,p as Ed,W as C2,m as M2,h as zb,f as VC}from"./ethers-DArfy-QF.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Bc=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(){}},Aa,Ri,Cs,PC,j2=(PC=class extends Bc{constructor(){super();ze(this,Aa);ze(this,Ri);ze(this,Cs);De(this,Cs,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){le(this,Ri)||this.setEventListener(le(this,Cs))}onUnsubscribe(){var t;this.hasListeners()||((t=le(this,Ri))==null||t.call(this),De(this,Ri,void 0))}setEventListener(t){var r;De(this,Cs,t),(r=le(this,Ri))==null||r.call(this),De(this,Ri,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){le(this,Aa)!==t&&(De(this,Aa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof le(this,Aa)=="boolean"?le(this,Aa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Aa=new WeakMap,Ri=new WeakMap,Cs=new WeakMap,PC),eE=new j2,D2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ai,Qv,CC,L2=(CC=class{constructor(){ze(this,Ai,D2);ze(this,Qv,!1)}setTimeoutProvider(e){De(this,Ai,e)}setTimeout(e,t){return le(this,Ai).setTimeout(e,t)}clearTimeout(e){le(this,Ai).clearTimeout(e)}setInterval(e,t){return le(this,Ai).setInterval(e,t)}clearInterval(e){le(this,Ai).clearInterval(e)}},Ai=new WeakMap,Qv=new WeakMap,CC),Ra=new L2;function $2(e){setTimeout(e,0)}var k2=typeof window>"u"||"Deno"in globalThis;function kr(){}function q2(e,t){return typeof e=="function"?e(t):e}function V_(e){return typeof e=="number"&&e>=0&&e!==1/0}function xC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Di(e,t){return typeof e=="function"?e(t):e}function Gr(e,t){return typeof e=="function"?e(t):e}function Wb(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(n){if(t.queryHash!==tE(s,t.options))return!1}else if(!Ec(t.queryKey,s))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function Yb(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(vc(t.options.mutationKey)!==vc(a))return!1}else if(!Ec(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function tE(e,t){return((t==null?void 0:t.queryKeyHashFn)||vc)(e)}function vc(e){return JSON.stringify(e,(t,r)=>G_(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Ec(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Ec(e[r],t[r])):!1}var B2=Object.prototype.hasOwnProperty;function GC(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Kb(e)&&Kb(t);if(!n&&!(G_(e)&&G_(t)))return t;const a=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),o=s.length,c=n?new Array(o):{};let u=0;for(let l=0;l<o;l++){const d=n?l:s[l],f=e[d],p=t[d];if(f===p){c[d]=f,(n?l<a:B2.call(e,d))&&u++;continue}if(f===null||p===null||typeof f!="object"||typeof p!="object"){c[d]=p;continue}const g=GC(f,p,r+1);c[d]=g,g===f&&u++}return a===o&&u===a?e:c}function x_(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 Kb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function G_(e){if(!Xb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Xb(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Xb(e){return Object.prototype.toString.call(e)==="[object Object]"}function U2(e){return new Promise(t=>{Ra.setTimeout(t,e)})}function z_(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?GC(e,t):t}function Wf(e){return e}function F2(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function H2(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var rE=Symbol();function zC(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===rE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function WC(e,t){return typeof e=="function"?e(...t):!!e}function V2(e,t,r){let n=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var bc=(()=>{let e=()=>k2;return{isServer(){return e()},setIsServer(t){e=t}}})();function W_(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var x2=$2;function G2(){let e=[],t=0,r=o=>{o()},n=o=>{o()},i=x2;const a=o=>{t?e.push(o):i(()=>{r(o)})},s=()=>{const o=e;e=[],o.length&&i(()=>{n(()=>{o.forEach(c=>{r(c)})})})};return{batch:o=>{let c;t++;try{c=o()}finally{t--,t||s()}return c},batchCalls:o=>(...c)=>{a(()=>{o(...c)})},schedule:a,setNotifyFunction:o=>{r=o},setBatchNotifyFunction:o=>{n=o},setScheduler:o=>{i=o}}}var fr=G2(),Ms,Oi,js,MC,z2=(MC=class extends Bc{constructor(){super();ze(this,Ms,!0);ze(this,Oi);ze(this,js);De(this,js,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(){le(this,Oi)||this.setEventListener(le(this,js))}onUnsubscribe(){var t;this.hasListeners()||((t=le(this,Oi))==null||t.call(this),De(this,Oi,void 0))}setEventListener(t){var r;De(this,js,t),(r=le(this,Oi))==null||r.call(this),De(this,Oi,t(this.setOnline.bind(this)))}setOnline(t){le(this,Ms)!==t&&(De(this,Ms,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return le(this,Ms)}},Ms=new WeakMap,Oi=new WeakMap,js=new WeakMap,MC),Cd=new z2;function W2(e){return Math.min(1e3*2**e,3e4)}function YC(e){return(e??"online")==="online"?Cd.isOnline():!0}var Y_=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function KC(e){let t=!1,r=0,n;const i=W_(),a=()=>i.status!=="pending",s=y=>{var _;if(!a()){const R=new Y_(y);f(R),(_=e.onCancel)==null||_.call(e,R)}},o=()=>{t=!0},c=()=>{t=!1},u=()=>eE.isFocused()&&(e.networkMode==="always"||Cd.isOnline())&&e.canRun(),l=()=>YC(e.networkMode)&&e.canRun(),d=y=>{a()||(n==null||n(),i.resolve(y))},f=y=>{a()||(n==null||n(),i.reject(y))},p=()=>new Promise(y=>{var _;n=R=>{(a()||u())&&y(R)},(_=e.onPause)==null||_.call(e)}).then(()=>{var y;n=void 0,a()||(y=e.onContinue)==null||y.call(e)}),g=()=>{if(a())return;let y;const _=r===0?e.initialPromise:void 0;try{y=_??e.fn()}catch(R){y=Promise.reject(R)}Promise.resolve(y).then(d).catch(R=>{var E;if(a())return;const h=e.retry??(bc.isServer()?0:3),T=e.retryDelay??W2,I=typeof T=="function"?T(r,R):T,m=h===!0||typeof h=="number"&&r<h||typeof h=="function"&&h(r,R);if(t||!m){f(R);return}r++,(E=e.onFail)==null||E.call(e,r,R),U2(I).then(()=>u()?void 0:p()).then(()=>{t?f(R):g()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(n==null||n(),i),cancelRetry:o,continueRetry:c,canStart:l,start:()=>(l()?g():p().then(g),i)}}var Oa,jC,XC=(jC=class{constructor(){ze(this,Oa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),V_(this.gcTime)&&De(this,Oa,Ra.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bc.isServer()?1/0:300*1e3))}clearGcTimeout(){le(this,Oa)!==void 0&&(Ra.clearTimeout(le(this,Oa)),De(this,Oa,void 0))}},Oa=new WeakMap,jC);function Y2(e){return{onFetch:(t,r)=>{var l,d,f,p,g;const n=t.options,i=(f=(d=(l=t.fetchOptions)==null?void 0:l.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],s=((g=t.state.data)==null?void 0:g.pageParams)||[];let o={pages:[],pageParams:[]},c=0;const u=async()=>{let y=!1;const _=T=>{V2(T,()=>t.signal,()=>y=!0)},R=zC(t.options,t.fetchOptions),h=async(T,I,m)=>{if(y)return Promise.reject(t.signal.reason);if(I==null&&T.pages.length)return Promise.resolve(T);const b=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:I,direction:m?"backward":"forward",meta:t.options.meta};return _(B),B})(),N=await R(b),{maxPages:j}=t.options,$=m?H2:F2;return{pages:$(T.pages,N,j),pageParams:$(T.pageParams,I,j)}};if(i&&a.length){const T=i==="backward",I=T?JC:K_,m={pages:a,pageParams:s},E=I(n,m);o=await h(m,E,T)}else{const T=e??a.length;do{const I=c===0?s[0]??n.initialPageParam:K_(n,o);if(c>0&&I==null)break;o=await h(o,I),c++}while(c<T)}return o};t.options.persister?t.fetchFn=()=>{var y,_;return(_=(y=t.options).persister)==null?void 0:_.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function K_(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 JC(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 DJ(e,t){return t?K_(e,t)!=null:!1}function LJ(e,t){return!t||!e.getPreviousPageParam?!1:JC(e,t)!=null}var Ds,Na,Ls,Qr,Pa,ir,Dc,Ca,xr,QC,ai,DC,K2=(DC=class extends XC{constructor(t){super();ze(this,xr);ze(this,Ds);ze(this,Na);ze(this,Ls);ze(this,Qr);ze(this,Pa);ze(this,ir);ze(this,Dc);ze(this,Ca);De(this,Ca,!1),De(this,Dc,t.defaultOptions),this.setOptions(t.options),this.observers=[],De(this,Pa,t.client),De(this,Qr,le(this,Pa).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,De(this,Na,Qb(this.options)),this.state=t.state??le(this,Na),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return le(this,Ds)}get promise(){var t;return(t=le(this,ir))==null?void 0:t.promise}setOptions(t){if(this.options={...le(this,Dc),...t},t!=null&&t._type&&De(this,Ds,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Qb(this.options);r.data!==void 0&&(this.setState(Jb(r.data,r.dataUpdatedAt)),De(this,Na,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&le(this,Qr).remove(this)}setData(t,r){const n=z_(this.state.data,t,this.options);return nt(this,xr,ai).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t){nt(this,xr,ai).call(this,{type:"setState",state:t})}cancel(t){var n,i;const r=(n=le(this,ir))==null?void 0:n.promise;return(i=le(this,ir))==null||i.cancel(t),r?r.then(kr).catch(kr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return le(this,Na)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Gr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rE||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Di(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:!xC(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=le(this,ir))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=le(this,ir))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),le(this,Qr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(le(this,ir)&&(le(this,Ca)||nt(this,xr,QC).call(this)?le(this,ir).cancel({revert:!0}):le(this,ir).cancelRetry()),this.scheduleGc()),le(this,Qr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||nt(this,xr,ai).call(this,{type:"invalidate"})}async fetch(t,r){var u,l,d,f,p,g,y,_,R,h,T;if(this.state.fetchStatus!=="idle"&&((u=le(this,ir))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(le(this,ir))return le(this,ir).continueRetry(),le(this,ir).promise}if(t&&this.setOptions(t),!this.options.queryFn){const I=this.observers.find(m=>m.options.queryFn);I&&this.setOptions(I.options)}const n=new AbortController,i=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(De(this,Ca,!0),n.signal)})},a=()=>{const I=zC(this.options,r),E=(()=>{const b={client:le(this,Pa),queryKey:this.queryKey,meta:this.meta};return i(b),b})();return De(this,Ca,!1),this.options.persister?this.options.persister(I,E,this):I(E)},o=(()=>{const I={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:le(this,Pa),state:this.state,fetchFn:a};return i(I),I})(),c=le(this,Ds)==="infinite"?Y2(this.options.pages):this.options.behavior;c==null||c.onFetch(o,this),De(this,Ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&nt(this,xr,ai).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta}),De(this,ir,KC({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,onCancel:I=>{I instanceof Y_&&I.revert&&this.setState({...le(this,Ls),fetchStatus:"idle"}),n.abort()},onFail:(I,m)=>{nt(this,xr,ai).call(this,{type:"failed",failureCount:I,error:m})},onPause:()=>{nt(this,xr,ai).call(this,{type:"pause"})},onContinue:()=>{nt(this,xr,ai).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const I=await le(this,ir).start();if(I===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(I),(p=(f=le(this,Qr).config).onSuccess)==null||p.call(f,I,this),(y=(g=le(this,Qr).config).onSettled)==null||y.call(g,I,this.state.error,this),I}catch(I){if(I instanceof Y_){if(I.silent)return le(this,ir).promise;if(I.revert){if(this.state.data===void 0)throw I;return this.state.data}}throw nt(this,xr,ai).call(this,{type:"error",error:I}),(R=(_=le(this,Qr).config).onError)==null||R.call(_,I,this),(T=(h=le(this,Qr).config).onSettled)==null||T.call(h,this.state.data,I,this),I}finally{this.scheduleGc()}}},Ds=new WeakMap,Na=new WeakMap,Ls=new WeakMap,Qr=new WeakMap,Pa=new WeakMap,ir=new WeakMap,Dc=new WeakMap,Ca=new WeakMap,xr=new WeakSet,QC=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ai=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,...ZC(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...Jb(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return De(this,Ls,t.manual?i:void 0),i;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),fr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),le(this,Qr).notify({query:this,type:"updated",action:t})})},DC);function ZC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:YC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Jb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Qb(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 $r,ot,Lc,Rr,Ma,$s,ci,Ni,$c,ks,qs,ja,Da,Pi,Bs,bt,Ho,X_,J_,Q_,Z_,ev,tv,rv,eM,LC,X2=(LC=class extends Bc{constructor(t,r){super();ze(this,bt);ze(this,$r);ze(this,ot);ze(this,Lc);ze(this,Rr);ze(this,Ma);ze(this,$s);ze(this,ci);ze(this,Ni);ze(this,$c);ze(this,ks);ze(this,qs);ze(this,ja);ze(this,Da);ze(this,Pi);ze(this,Bs,new Set);this.options=r,De(this,$r,t),De(this,Ni,null),De(this,ci,W_()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(le(this,ot).addObserver(this),Zb(le(this,ot),this.options)?nt(this,bt,Ho).call(this):this.updateResult(),nt(this,bt,Z_).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nv(le(this,ot),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nv(le(this,ot),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,nt(this,bt,ev).call(this),nt(this,bt,tv).call(this),le(this,ot).removeObserver(this)}setOptions(t){const r=this.options,n=le(this,ot);if(this.options=le(this,$r).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Gr(this.options.enabled,le(this,ot))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");nt(this,bt,rv).call(this),le(this,ot).setOptions(this.options),r._defaulted&&!x_(this.options,r)&&le(this,$r).getQueryCache().notify({type:"observerOptionsUpdated",query:le(this,ot),observer:this});const i=this.hasListeners();i&&e0(le(this,ot),n,this.options,r)&&nt(this,bt,Ho).call(this),this.updateResult(),i&&(le(this,ot)!==n||Gr(this.options.enabled,le(this,ot))!==Gr(r.enabled,le(this,ot))||Di(this.options.staleTime,le(this,ot))!==Di(r.staleTime,le(this,ot)))&&nt(this,bt,X_).call(this);const a=nt(this,bt,J_).call(this);i&&(le(this,ot)!==n||Gr(this.options.enabled,le(this,ot))!==Gr(r.enabled,le(this,ot))||a!==le(this,Pi))&&nt(this,bt,Q_).call(this,a)}getOptimisticResult(t){const r=le(this,$r).getQueryCache().build(le(this,$r),t),n=this.createResult(r,t);return Q2(this,n)&&(De(this,Rr,n),De(this,$s,this.options),De(this,Ma,le(this,ot).state)),n}getCurrentResult(){return le(this,Rr)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&le(this,ci).status==="pending"&&le(this,ci).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){le(this,Bs).add(t)}getCurrentQuery(){return le(this,ot)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=le(this,$r).defaultQueryOptions(t),n=le(this,$r).getQueryCache().build(le(this,$r),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return nt(this,bt,Ho).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),le(this,Rr)))}createResult(t,r){var j;const n=le(this,ot),i=this.options,a=le(this,Rr),s=le(this,Ma),o=le(this,$s),u=t!==n?t.state:le(this,Lc),{state:l}=t;let d={...l},f=!1,p;if(r._optimisticResults){const $=this.hasListeners(),B=!$&&Zb(t,r),V=$&&e0(t,n,r,i);(B||V)&&(d={...d,...ZC(l.data,t.options)}),r._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:_}=d;p=d.data;let R=!1;if(r.placeholderData!==void 0&&p===void 0&&_==="pending"){let $;a!=null&&a.isPlaceholderData&&r.placeholderData===(o==null?void 0:o.placeholderData)?($=a.data,R=!0):$=typeof r.placeholderData=="function"?r.placeholderData((j=le(this,qs))==null?void 0:j.state.data,le(this,qs)):r.placeholderData,$!==void 0&&(_="success",p=z_(a==null?void 0:a.data,$,r),f=!0)}if(r.select&&p!==void 0&&!R)if(a&&p===(s==null?void 0:s.data)&&r.select===le(this,$c))p=le(this,ks);else try{De(this,$c,r.select),p=r.select(p),p=z_(a==null?void 0:a.data,p,r),De(this,ks,p),De(this,Ni,null)}catch($){De(this,Ni,$)}le(this,Ni)&&(g=le(this,Ni),p=le(this,ks),y=Date.now(),_="error");const h=d.fetchStatus==="fetching",T=_==="pending",I=_==="error",m=T&&h,E=p!==void 0,N={status:_,fetchStatus:d.fetchStatus,isPending:T,isSuccess:_==="success",isError:I,isInitialLoading:m,isLoading:m,data:p,dataUpdatedAt:d.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:h,isRefetching:h&&!T,isLoadingError:I&&!E,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:I&&E,isStale:nE(t,r),refetch:this.refetch,promise:le(this,ci),isEnabled:Gr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const $=N.data!==void 0,B=N.status==="error"&&!$,V=te=>{B?te.reject(N.error):$&&te.resolve(N.data)},H=()=>{const te=De(this,ci,N.promise=W_());V(te)},F=le(this,ci);switch(F.status){case"pending":t.queryHash===n.queryHash&&V(F);break;case"fulfilled":(B||N.data!==F.value)&&H();break;case"rejected":(!B||N.error!==F.reason)&&H();break}}return N}updateResult(){const t=le(this,Rr),r=this.createResult(le(this,ot),this.options);if(De(this,Ma,le(this,ot).state),De(this,$s,this.options),le(this,Ma).data!==void 0&&De(this,qs,le(this,ot)),x_(r,t))return;De(this,Rr,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!le(this,Bs).size)return!0;const s=new Set(a??le(this,Bs));return this.options.throwOnError&&s.add("error"),Object.keys(le(this,Rr)).some(o=>{const c=o;return le(this,Rr)[c]!==t[c]&&s.has(c)})};nt(this,bt,eM).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&nt(this,bt,Z_).call(this)}},$r=new WeakMap,ot=new WeakMap,Lc=new WeakMap,Rr=new WeakMap,Ma=new WeakMap,$s=new WeakMap,ci=new WeakMap,Ni=new WeakMap,$c=new WeakMap,ks=new WeakMap,qs=new WeakMap,ja=new WeakMap,Da=new WeakMap,Pi=new WeakMap,Bs=new WeakMap,bt=new WeakSet,Ho=function(t){nt(this,bt,rv).call(this);let r=le(this,ot).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(kr)),r},X_=function(){nt(this,bt,ev).call(this);const t=Di(this.options.staleTime,le(this,ot));if(bc.isServer()||le(this,Rr).isStale||!V_(t))return;const n=xC(le(this,Rr).dataUpdatedAt,t)+1;De(this,ja,Ra.setTimeout(()=>{le(this,Rr).isStale||this.updateResult()},n))},J_=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(le(this,ot)):this.options.refetchInterval)??!1},Q_=function(t){nt(this,bt,tv).call(this),De(this,Pi,t),!(bc.isServer()||Gr(this.options.enabled,le(this,ot))===!1||!V_(le(this,Pi))||le(this,Pi)===0)&&De(this,Da,Ra.setInterval(()=>{(this.options.refetchIntervalInBackground||eE.isFocused())&&nt(this,bt,Ho).call(this)},le(this,Pi)))},Z_=function(){nt(this,bt,X_).call(this),nt(this,bt,Q_).call(this,nt(this,bt,J_).call(this))},ev=function(){le(this,ja)!==void 0&&(Ra.clearTimeout(le(this,ja)),De(this,ja,void 0))},tv=function(){le(this,Da)!==void 0&&(Ra.clearInterval(le(this,Da)),De(this,Da,void 0))},rv=function(){const t=le(this,$r).getQueryCache().build(le(this,$r),this.options);if(t===le(this,ot))return;const r=le(this,ot);De(this,ot,t),De(this,Lc,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},eM=function(t){fr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(le(this,Rr))}),le(this,$r).getQueryCache().notify({query:le(this,ot),type:"observerResultsUpdated"})})},LC);function J2(e,t){return Gr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Gr(t.retryOnMount,e)===!1)}function Zb(e,t){return J2(e,t)||e.state.data!==void 0&&nv(e,t,t.refetchOnMount)}function nv(e,t,r){if(Gr(t.enabled,e)!==!1&&Di(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&nE(e,t)}return!1}function e0(e,t,r,n){return(e!==t||Gr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&nE(e,r)}function nE(e,t){return Gr(t.enabled,e)!==!1&&e.isStaleByTime(Di(t.staleTime,e))}function Q2(e,t){return!x_(e.getCurrentResult(),t)}var kc,Ln,Sr,La,$n,Si,$C,Z2=($C=class extends XC{constructor(t){super();ze(this,$n);ze(this,kc);ze(this,Ln);ze(this,Sr);ze(this,La);De(this,kc,t.client),this.mutationId=t.mutationId,De(this,Sr,t.mutationCache),De(this,Ln,[]),this.state=t.state||ek(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){le(this,Ln).includes(t)||(le(this,Ln).push(t),this.clearGcTimeout(),le(this,Sr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){De(this,Ln,le(this,Ln).filter(r=>r!==t)),this.scheduleGc(),le(this,Sr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){le(this,Ln).length||(this.state.status==="pending"?this.scheduleGc():le(this,Sr).remove(this))}continue(){var t;return((t=le(this,La))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,c,u,l,d,f,p,g,y,_,R,h,T,I,m,E,b;const r=()=>{nt(this,$n,Si).call(this,{type:"continue"})},n={client:le(this,kc),meta:this.options.meta,mutationKey:this.options.mutationKey};De(this,La,KC({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(N,j)=>{nt(this,$n,Si).call(this,{type:"failed",failureCount:N,error:j})},onPause:()=>{nt(this,$n,Si).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>le(this,Sr).canRun(this)}));const i=this.state.status==="pending",a=!le(this,La).canStart();try{if(i)r();else{nt(this,$n,Si).call(this,{type:"pending",variables:t,isPaused:a}),le(this,Sr).config.onMutate&&await le(this,Sr).config.onMutate(t,this,n);const j=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t,n));j!==this.state.context&&nt(this,$n,Si).call(this,{type:"pending",context:j,variables:t,isPaused:a})}const N=await le(this,La).start();return await((u=(c=le(this,Sr).config).onSuccess)==null?void 0:u.call(c,N,t,this.state.context,this,n)),await((d=(l=this.options).onSuccess)==null?void 0:d.call(l,N,t,this.state.context,n)),await((p=(f=le(this,Sr).config).onSettled)==null?void 0:p.call(f,N,null,this.state.variables,this.state.context,this,n)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,N,null,t,this.state.context,n)),nt(this,$n,Si).call(this,{type:"success",data:N}),N}catch(N){try{await((R=(_=le(this,Sr).config).onError)==null?void 0:R.call(_,N,t,this.state.context,this,n))}catch(j){Promise.reject(j)}try{await((T=(h=this.options).onError)==null?void 0:T.call(h,N,t,this.state.context,n))}catch(j){Promise.reject(j)}try{await((m=(I=le(this,Sr).config).onSettled)==null?void 0:m.call(I,void 0,N,this.state.variables,this.state.context,this,n))}catch(j){Promise.reject(j)}try{await((b=(E=this.options).onSettled)==null?void 0:b.call(E,void 0,N,t,this.state.context,n))}catch(j){Promise.reject(j)}throw nt(this,$n,Si).call(this,{type:"error",error:N}),N}finally{le(this,Sr).runNext(this)}}},kc=new WeakMap,Ln=new WeakMap,Sr=new WeakMap,La=new WeakMap,$n=new WeakSet,Si=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),fr.batch(()=>{le(this,Ln).forEach(n=>{n.onMutationUpdate(t)}),le(this,Sr).notify({mutation:this,type:"updated",action:t})})},$C);function ek(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ui,mn,qc,kC,tk=(kC=class extends Bc{constructor(t={}){super();ze(this,ui);ze(this,mn);ze(this,qc);this.config=t,De(this,ui,new Set),De(this,mn,new Map),De(this,qc,0)}build(t,r,n){const i=new Z2({client:t,mutationCache:this,mutationId:++Yu(this,qc)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){le(this,ui).add(t);const r=Ku(t);if(typeof r=="string"){const n=le(this,mn).get(r);n?n.push(t):le(this,mn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(le(this,ui).delete(t)){const r=Ku(t);if(typeof r=="string"){const n=le(this,mn).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&le(this,mn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Ku(t);if(typeof r=="string"){const n=le(this,mn).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=Ku(t);if(typeof r=="string"){const i=(n=le(this,mn).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fr.batch(()=>{le(this,ui).forEach(t=>{this.notify({type:"removed",mutation:t})}),le(this,ui).clear(),le(this,mn).clear()})}getAll(){return Array.from(le(this,ui))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Yb(r,n))}findAll(t={}){return this.getAll().filter(r=>Yb(t,r))}notify(t){fr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return fr.batch(()=>Promise.all(t.map(r=>r.continue().catch(kr))))}},ui=new WeakMap,mn=new WeakMap,qc=new WeakMap,kC);function Ku(e){var t;return(t=e.options.scope)==null?void 0:t.id}var kn,qC,rk=(qC=class extends Bc{constructor(t={}){super();ze(this,kn);this.config=t,De(this,kn,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??tE(i,r);let s=this.get(a);return s||(s=new K2({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){le(this,kn).has(t.queryHash)||(le(this,kn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=le(this,kn).get(t.queryHash);r&&(t.destroy(),r===t&&le(this,kn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return le(this,kn).get(t)}getAll(){return[...le(this,kn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Wb(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Wb(t,n)):r}notify(t){fr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){fr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},kn=new WeakMap,qC),Wt,Ci,Mi,Us,Fs,ji,Hs,Vs,BC,nk=(BC=class{constructor(e={}){ze(this,Wt);ze(this,Ci);ze(this,Mi);ze(this,Us);ze(this,Fs);ze(this,ji);ze(this,Hs);ze(this,Vs);De(this,Wt,e.queryCache||new rk),De(this,Ci,e.mutationCache||new tk),De(this,Mi,e.defaultOptions||{}),De(this,Us,new Map),De(this,Fs,new Map),De(this,ji,0)}mount(){Yu(this,ji)._++,le(this,ji)===1&&(De(this,Hs,eE.subscribe(async e=>{e&&(await this.resumePausedMutations(),le(this,Wt).onFocus())})),De(this,Vs,Cd.subscribe(async e=>{e&&(await this.resumePausedMutations(),le(this,Wt).onOnline())})))}unmount(){var e,t;Yu(this,ji)._--,le(this,ji)===0&&((e=le(this,Hs))==null||e.call(this),De(this,Hs,void 0),(t=le(this,Vs))==null||t.call(this),De(this,Vs,void 0))}isFetching(e){return le(this,Wt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return le(this,Ci).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=le(this,Wt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=le(this,Wt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Di(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return le(this,Wt).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=le(this,Wt).get(n.queryHash),a=i==null?void 0:i.state.data,s=q2(t,a);if(s!==void 0)return le(this,Wt).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return fr.batch(()=>le(this,Wt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=le(this,Wt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=le(this,Wt);fr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=le(this,Wt);return fr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=fr.batch(()=>le(this,Wt).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(kr).catch(kr)}invalidateQueries(e,t={}){return fr.batch(()=>(le(this,Wt).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=fr.batch(()=>le(this,Wt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(kr)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(kr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=le(this,Wt).build(this,t);return r.isStaleByTime(Di(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kr).catch(kr)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kr).catch(kr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Cd.isOnline()?le(this,Ci).resumePausedMutations():Promise.resolve()}getQueryCache(){return le(this,Wt)}getMutationCache(){return le(this,Ci)}getDefaultOptions(){return le(this,Mi)}setDefaultOptions(e){De(this,Mi,e)}setQueryDefaults(e,t){le(this,Us).set(vc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...le(this,Us).values()],r={};return t.forEach(n=>{Ec(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){le(this,Fs).set(vc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...le(this,Fs).values()],r={};return t.forEach(n=>{Ec(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...le(this,Mi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=tE(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===rE&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...le(this,Mi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){le(this,Wt).clear(),le(this,Ci).clear()}},Wt=new WeakMap,Ci=new WeakMap,Mi=new WeakMap,Us=new WeakMap,Fs=new WeakMap,ji=new WeakMap,Hs=new WeakMap,Vs=new WeakMap,BC),tM=ve.createContext(void 0),ik=e=>{const t=ve.useContext(tM);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ak=({client:e,children:t})=>(ve.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),P.jsx(tM.Provider,{value:e,children:t})),rM=ve.createContext(!1),sk=()=>ve.useContext(rM);rM.Provider;function ok(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ck=ve.createContext(ok()),uk=()=>ve.useContext(ck),lk=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?WC(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},dk=e=>{ve.useEffect(()=>{e.clearReset()},[e])},fk=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||WC(r,[e.error,n])),pk=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},hk=(e,t)=>e.isLoading&&e.isFetching&&!t,mk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,t0=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function yk(e,t,r){var p,g,y,_;const n=sk(),i=uk(),a=ik(),s=a.defaultQueryOptions(e);(g=(p=a.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||g.call(p,s);const o=a.getQueryCache().get(s.queryHash),c=e.subscribed!==!1;s._optimisticResults=n?"isRestoring":c?"optimistic":void 0,pk(s),lk(s,i,o),dk(i);const u=!a.getQueryCache().get(s.queryHash),[l]=ve.useState(()=>new t(a,s)),d=l.getOptimisticResult(s),f=!n&&c;if(ve.useSyncExternalStore(ve.useCallback(R=>{const h=f?l.subscribe(fr.batchCalls(R)):kr;return l.updateResult(),h},[l,f]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),ve.useEffect(()=>{l.setOptions(s)},[s,l]),mk(s,d))throw t0(s,l,i);if(fk({result:d,errorResetBoundary:i,throwOnError:s.throwOnError,query:o,suspense:s.suspense}))throw d.error;if((_=(y=a.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||_.call(y,s,d),s.experimental_prefetchInRender&&!bc.isServer()&&hk(d,n)){const R=u?t0(s,l,i):o==null?void 0:o.promise;R==null||R.catch(kr).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?d:l.trackResult(d)}function li(e,t){return yk(e,X2)}const gk="modulepreload",_k=function(e){return"https://cdn.decentraland.org/@dcl/shop/0.1.0-29588264451.commit-627b4b7/"+e},r0={},ar=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let s=function(u){return Promise.all(u.map(l=>Promise.resolve(l).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),c=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=s(r.map(u=>{if(u=_k(u),u in r0)return;r0[u]=!0;const l=u.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":gk,l||(f.as="script"),f.crossOrigin="",f.href=u,c&&f.setAttribute("nonce",c),document.head.appendChild(f),l)return new Promise((p,g)=>{f.addEventListener("load",p),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return i.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return t().catch(a)})},nM=Object.prototype.toString;function iE(e){switch(nM.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return di(e,Error)}}function to(e,t){return nM.call(e)===`[object ${t}]`}function aE(e){return to(e,"ErrorEvent")}function n0(e){return to(e,"DOMError")}function vk(e){return to(e,"DOMException")}function Hn(e){return to(e,"String")}function sE(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function oE(e){return e===null||sE(e)||typeof e!="object"&&typeof e!="function"}function qa(e){return to(e,"Object")}function zd(e){return typeof Event<"u"&&di(e,Event)}function Ek(e){return typeof Element<"u"&&di(e,Element)}function bk(e){return to(e,"RegExp")}function ro(e){return!!(e&&e.then&&typeof e.then=="function")}function Sk(e){return qa(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function iM(e){return typeof e=="number"&&e!==e}function di(e,t){try{return e instanceof t}catch{return!1}}function aM(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Ts(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function i0(e,t){if(!Array.isArray(e))return"";const r=[];for(let n=0;n<e.length;n++){const i=e[n];try{aM(i)?r.push("[VueViewModel]"):r.push(String(i))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function Tk(e,t,r=!1){return Hn(e)?bk(t)?t.test(e):Hn(t)?r?e===t:e.includes(t):!1:!1}function Uc(e,t=[],r=!1){return t.some(n=>Tk(e,n,r))}function wk(e,t,r=250,n,i,a,s){if(!a.exception||!a.exception.values||!s||!di(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=Ik(iv(e,t,i,s.originalException,n,a.exception.values,o,0),r))}function iv(e,t,r,n,i,a,s,o){if(a.length>=r+1)return a;let c=[...a];if(di(n[i],Error)){a0(s,o);const u=e(t,n[i]),l=c.length;s0(u,i,l,o),c=iv(e,t,r,n[i],i,[u,...c],u,l)}return Array.isArray(n.errors)&&n.errors.forEach((u,l)=>{if(di(u,Error)){a0(s,o);const d=e(t,u),f=c.length;s0(d,`errors[${l}]`,f,o),c=iv(e,t,r,u,i,[d,...c],d,f)}}),c}function a0(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function s0(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function Ik(e,t){return e.map(r=>(r.value&&(r.value=Ts(r.value,t)),r))}function Xu(e){return e&&e.Math==Math?e:void 0}const ct=typeof globalThis=="object"&&Xu(globalThis)||typeof window=="object"&&Xu(window)||typeof self=="object"&&Xu(self)||typeof Pd=="object"&&Xu(Pd)||(function(){return this})()||{};function cE(){return ct}function Wd(e,t,r){const n=r||ct,i=n.__SENTRY__=n.__SENTRY__||{};return i[e]||(i[e]=t())}const ws=cE(),Rk=80;function xs(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let a=0,s=0;const o=" > ",c=o.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Rk;for(;r&&a++<n&&(u=Ak(r,l),!(u==="html"||a>1&&s+i.length*c+u.length>=d));)i.push(u),s+=u.length,r=r.parentNode;return i.reverse().join(o)}catch{return"<unknown>"}}function Ak(e,t){const r=e,n=[];let i,a,s,o,c;if(!r||!r.tagName)return"";if(ws.HTMLElement&&r instanceof HTMLElement&&r.dataset&&r.dataset.sentryComponent)return r.dataset.sentryComponent;n.push(r.tagName.toLowerCase());const u=t&&t.length?t.filter(d=>r.getAttribute(d)).map(d=>[d,r.getAttribute(d)]):null;if(u&&u.length)u.forEach(d=>{n.push(`[${d[0]}="${d[1]}"]`)});else if(r.id&&n.push(`#${r.id}`),i=r.className,i&&Hn(i))for(a=i.split(/\s+/),c=0;c<a.length;c++)n.push(`.${a[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)s=l[c],o=r.getAttribute(s),o&&n.push(`[${s}="${o}"]`);return n.join("")}function Ok(){try{return ws.document.location.href}catch{return""}}function Nk(e){return ws.document&&ws.document.querySelector?ws.document.querySelector(e):null}function sM(e){if(!ws.HTMLElement)return null;let t=e;const r=5;for(let n=0;n<r;n++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const no=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Pk="Sentry Logger ",av=["debug","info","warn","error","log","assert","trace"],Md={};function Fc(e){if(!("console"in ct))return e();const t=ct.console,r={},n=Object.keys(Md);n.forEach(i=>{const a=Md[i];r[i]=t[i],t[i]=a});try{return e()}finally{n.forEach(i=>{t[i]=r[i]})}}function Ck(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return no?av.forEach(r=>{t[r]=(...n)=>{e&&Fc(()=>{ct.console[r](`${Pk}[${r}]:`,...n)})}}):av.forEach(r=>{t[r]=()=>{}}),t}const Re=Ck(),Mk=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function jk(e){return e==="http"||e==="https"}function xa(e,t=!1){const{host:r,path:n,pass:i,port:a,projectId:s,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${s}`}function Dk(e){const t=Mk.exec(e);if(!t){Fc(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[r,n,i="",a,s="",o]=t.slice(1);let c="",u=o;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return oM({host:a,pass:i,path:c,projectId:u,port:s,protocol:r,publicKey:n})}function oM(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Lk(e){if(!no)return!0;const{port:t,projectId:r,protocol:n}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Re.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?jk(n)?t&&isNaN(parseInt(t,10))?(Re.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Re.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(Re.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function cM(e){const t=typeof e=="string"?Dk(e):oM(e);if(!(!t||!Lk(t)))return t}class Un extends Error{constructor(t,r="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}function hr(e,t,r){if(!(t in e))return;const n=e[t],i=r(n);typeof i=="function"&&uM(i,n),e[t]=i}function Ba(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{no&&Re.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function uM(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,Ba(e,"__sentry_original__",t)}catch{}}function uE(e){return e.__sentry_original__}function $k(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function lM(e){if(iE(e))return{message:e.message,name:e.name,stack:e.stack,...c0(e)};if(zd(e)){const t={type:e.type,target:o0(e.target),currentTarget:o0(e.currentTarget),...c0(e)};return typeof CustomEvent<"u"&&di(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function o0(e){try{return Ek(e)?xs(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function c0(e){if(typeof e=="object"&&e!==null){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}else return{}}function kk(e,t=40){const r=Object.keys(lM(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return Ts(r[0],t);for(let n=r.length;n>0;n--){const i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length?i:Ts(i,t)}return""}function Zt(e){return sv(e,new Map)}function sv(e,t){if(qk(e)){const r=t.get(e);if(r!==void 0)return r;const n={};t.set(e,n);for(const i of Object.keys(e))typeof e[i]<"u"&&(n[i]=sv(e[i],t));return n}if(Array.isArray(e)){const r=t.get(e);if(r!==void 0)return r;const n=[];return t.set(e,n),e.forEach(i=>{n.push(sv(i,t))}),n}return e}function qk(e){if(!qa(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const dM=50,u0=/\(error: (.*)\)/,l0=/captureMessage|captureException/;function fM(...e){const t=e.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0)=>{const i=[],a=r.split(`
|
|
3
|
+
`);for(let s=n;s<a.length;s++){const o=a[s];if(o.length>1024)continue;const c=u0.test(o)?o.replace(u0,"$1"):o;if(!c.match(/\S*Error: /)){for(const u of t){const l=u(c);if(l){i.push(l);break}}if(i.length>=dM)break}}return Uk(i)}}function Bk(e){return Array.isArray(e)?fM(...e):e}function Uk(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),l0.test(t[t.length-1].function||"")&&(t.pop(),l0.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,dM).map(r=>({...r,filename:r.filename||t[t.length-1].filename,function:r.function||"?"}))}const Yf="<anonymous>";function fi(e){try{return!e||typeof e!="function"?Yf:e.name||Yf}catch{return Yf}}const bd={},d0={};function Ga(e,t){bd[e]=bd[e]||[],bd[e].push(t)}function za(e,t){d0[e]||(t(),d0[e]=!0)}function gn(e,t){const r=e&&bd[e];if(r)for(const n of r)try{n(t)}catch(i){no&&Re.error(`Error while triggering instrumentation handler.
|
|
4
|
+
Type: ${e}
|
|
5
|
+
Name: ${fi(n)}
|
|
6
|
+
Error:`,i)}}function Fk(e){const t="console";Ga(t,e),za(t,Hk)}function Hk(){"console"in ct&&av.forEach(function(e){e in ct.console&&hr(ct.console,e,function(t){return Md[e]=t,function(...r){gn("console",{args:r,level:e});const i=Md[e];i&&i.apply(ct.console,r)}})})}function vt(){const e=ct,t=e.crypto||e.msCrypto;let r=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function pM(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function wi(e){const{message:t,event_id:r}=e;if(t)return t;const n=pM(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function ov(e,t,r){const n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Sc(e,t){const r=pM(e);if(!r)return;const n={type:"generic",handled:!0},i=r.mechanism;if(r.mechanism={...n,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};r.mechanism.data=a}}function f0(e){if(e&&e.__sentry_captured__)return!0;try{Ba(e,"__sentry_captured__",!0)}catch{}return!1}function lE(e){return Array.isArray(e)?e:[e]}const _s=ct,Vk=1e3;let p0,cv,uv;function xk(e){Ga("dom",e),za("dom",Gk)}function Gk(){if(!_s.document)return;const e=gn.bind(null,"dom"),t=h0(e,!0);_s.document.addEventListener("click",t,!1),_s.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(r=>{const n=_s[r]&&_s[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(hr(n,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=u[a]=u[a]||{refCount:0};if(!l.handler){const d=h0(e);l.handler=d,i.call(this,a,d,o)}l.refCount++}catch{}return i.call(this,a,s,o)}}),hr(n,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},l=u[a];l&&(l.refCount--,l.refCount<=0&&(i.call(this,a,l.handler,o),l.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function zk(e){if(e.type!==cv)return!1;try{if(!e.target||e.target._sentryId!==uv)return!1}catch{}return!0}function Wk(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function h0(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=Yk(r);if(Wk(r.type,n))return;Ba(r,"_sentryCaptured",!0),n&&!n._sentryId&&Ba(n,"_sentryId",vt());const i=r.type==="keypress"?"input":r.type;zk(r)||(e({event:r,name:i,global:t}),cv=r.type,uv=n?n._sentryId:void 0),clearTimeout(p0),p0=_s.setTimeout(()=>{uv=void 0,cv=void 0},Vk)}}function Yk(e){try{return e.target}catch{return null}}const lv=cE();function hM(){if(!("fetch"in lv))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function dv(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Kk(){if(typeof EdgeRuntime=="string")return!0;if(!hM())return!1;if(dv(lv.fetch))return!0;let e=!1;const t=lv.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=dv(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){no&&Re.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function mM(e){const t="fetch";Ga(t,e),za(t,Xk)}function Xk(){Kk()&&hr(ct,"fetch",function(e){return function(...t){const{method:r,url:n}=Jk(t),i={args:t,fetchData:{method:r,url:n},startTimestamp:Date.now()};return gn("fetch",{...i}),e.apply(ct,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return gn("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw gn("fetch",s),a})}})}function fv(e,t){return!!e&&typeof e=="object"&&!!e[t]}function m0(e){return typeof e=="string"?e:e?fv(e,"url")?e.url:e.toString?e.toString():"":""}function Jk(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[r,n]=e;return{url:m0(r),method:fv(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:m0(t),method:fv(t,"method")?String(t.method).toUpperCase():"GET"}}let Ju=null;function yM(e){const t="error";Ga(t,e),za(t,Qk)}function Qk(){Ju=ct.onerror,ct.onerror=function(e,t,r,n,i){return gn("error",{column:n,error:i,line:r,msg:e,url:t}),Ju&&!Ju.__SENTRY_LOADER__?Ju.apply(this,arguments):!1},ct.onerror.__SENTRY_INSTRUMENTED__=!0}let Qu=null;function gM(e){const t="unhandledrejection";Ga(t,e),za(t,Zk)}function Zk(){Qu=ct.onunhandledrejection,ct.onunhandledrejection=function(e){return gn("unhandledrejection",e),Qu&&!Qu.__SENTRY_LOADER__?Qu.apply(this,arguments):!0},ct.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Zu=cE();function eq(){const e=Zu.chrome,t=e&&e.app&&e.app.runtime,r="history"in Zu&&!!Zu.history.pushState&&!!Zu.history.replaceState;return!t&&r}const vo=ct;let el;function dE(e){const t="history";Ga(t,e),za(t,tq)}function tq(){if(!eq())return;const e=vo.onpopstate;vo.onpopstate=function(...r){const n=vo.location.href,i=el;if(el=n,gn("history",{from:i,to:n}),e)try{return e.apply(this,r)}catch{}};function t(r){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const a=el,s=String(i);el=s,gn("history",{from:a,to:s})}return r.apply(this,n)}}hr(vo.history,"pushState",t),hr(vo.history,"replaceState",t)}const rq=ct,vs="__sentry_xhr_v3__";function _M(e){Ga("xhr",e),za("xhr",nq)}function nq(){if(!rq.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;hr(e,"open",function(t){return function(...r){const n=Date.now(),i=Hn(r[0])?r[0].toUpperCase():void 0,a=iq(r[1]);if(!i||!a)return t.apply(this,r);this[vs]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[vs];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const c={args:[i,a],endTimestamp:Date.now(),startTimestamp:n,xhr:this};gn("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?hr(this,"onreadystatechange",function(o){return function(...c){return s(),o.apply(this,c)}}):this.addEventListener("readystatechange",s),hr(this,"setRequestHeader",function(o){return function(...c){const[u,l]=c,d=this[vs];return d&&Hn(u)&&Hn(l)&&(d.request_headers[u.toLowerCase()]=l),o.apply(this,c)}}),t.apply(this,r)}}),hr(e,"send",function(t){return function(...r){const n=this[vs];if(!n)return t.apply(this,r);r[0]!==void 0&&(n.body=r[0]);const i={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return gn("xhr",i),t.apply(this,r)}})}function iq(e){if(Hn(e))return e;try{return e.toString()}catch{}}function aq(){return"npm"}function sq(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function r(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;a<t.length;a++)if(t[a]===i)return!0;return t.push(i),!1}function n(i){if(e)t.delete(i);else for(let a=0;a<t.length;a++)if(t[a]===i){t.splice(a,1);break}}return[r,n]}function Ti(e,t=100,r=1/0){try{return pv("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function vM(e,t=3,r=100*1024){const n=Ti(e,t);return lq(n)>r?vM(e,t-1,r):n}function pv(e,t,r=1/0,n=1/0,i=sq()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!iM(t))return t;const o=oq(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:r;if(c===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return pv("",p,c-1,n,i)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const f=lM(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=n){l[p]="[MaxProperties ~]";break}const g=f[p];l[p]=pv(p,g,c-1,n,i),d++}return s(t),l}function oq(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof Pd<"u"&&t===Pd)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(aM(t))return"[VueViewModel]";if(Sk(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${fi(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const r=cq(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function cq(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function uq(e){return~-encodeURI(e).split(/%..|./).length}function lq(e){return uq(JSON.stringify(e))}var si;(function(e){e[e.PENDING=0]="PENDING";const r=1;e[e.RESOLVED=r]="RESOLVED";const n=2;e[e.REJECTED=n]="REJECTED"})(si||(si={}));function Gs(e){return new qr(t=>{t(e)})}function fE(e){return new qr((t,r)=>{r(e)})}class qr{constructor(t){qr.prototype.__init.call(this),qr.prototype.__init2.call(this),qr.prototype.__init3.call(this),qr.prototype.__init4.call(this),this._state=si.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(r){this._reject(r)}}then(t,r){return new qr((n,i)=>{this._handlers.push([!1,a=>{if(!t)n(a);else try{n(t(a))}catch(s){i(s)}},a=>{if(!r)i(a);else try{n(r(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(r=>r,t)}finally(t){return new qr((r,n)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){n(i);return}r(i)})})}__init(){this._resolve=t=>{this._setResult(si.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(si.REJECTED,t)}}__init3(){this._setResult=(t,r)=>{if(this._state===si.PENDING){if(ro(r)){r.then(this._resolve,this._reject);return}this._state=t,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===si.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===si.RESOLVED&&r[1](this._value),this._state===si.REJECTED&&r[2](this._value),r[0]=!0)})}}}function dq(e){const t=[];function r(){return e===void 0||t.length<e}function n(s){return t.splice(t.indexOf(s),1)[0]}function i(s){if(!r())return fE(new Un("Not adding Promise because buffer limit was reached."));const o=s();return t.indexOf(o)===-1&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o}function a(s){return new qr((o,c)=>{let u=t.length;if(!u)return o(!0);const l=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(d=>{Gs(d).then(()=>{--u||(clearTimeout(l),o(!0))},c)})})}return{$:t,add:i,drain:a}}function $a(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}const fq=["fatal","error","warning","log","info","debug"];function pq(e){return e==="warn"?"warning":fq.includes(e)?e:"log"}const EM=1e3;function Wa(){return Date.now()/EM}function hq(){const{performance:e}=ct;if(!e||!e.now)return Wa;const t=Date.now()-e.now(),r=e.timeOrigin==null?t:e.timeOrigin;return()=>(r+e.now())/EM}const Ya=hq(),rn=(()=>{const{performance:e}=ct;if(!e||!e.now)return;const t=3600*1e3,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,a=i<t,s=e.timing&&e.timing.navigationStart,c=typeof s=="number"?Math.abs(s+r-n):t,u=c<t;return a||u?i<=c?e.timeOrigin:s:n})(),hv="baggage",bM="sentry-",mq=/^sentry-/,yq=8192;function gq(e){if(!Hn(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((n,i)=>{const a=y0(i);for(const s of Object.keys(a))n[s]=a[s];return n},{});else{if(!e)return;t=y0(e)}const r=Object.entries(t).reduce((n,[i,a])=>{if(i.match(mq)){const s=i.slice(bM.length);n[s]=a}return n},{});if(Object.keys(r).length>0)return r}function SM(e){if(!e)return;const t=Object.entries(e).reduce((r,[n,i])=>(i&&(r[`${bM}${n}`]=i),r),{});return _q(t)}function y0(e){return e.split(",").map(t=>t.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((t,[r,n])=>(t[r]=n,t),{})}function _q(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[r,n],i)=>{const a=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,s=i===0?a:`${t},${a}`;return s.length>yq?(no&&Re.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},"")}const vq=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Eq(e){if(!e)return;const t=e.match(vq);if(!t)return;let r;return t[3]==="1"?r=!0:t[3]==="0"&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function bq(e,t){const r=Eq(e),n=gq(t),{traceId:i,parentSpanId:a,parentSampled:s}=r||{};return r?{traceId:i||vt(),parentSpanId:a||vt().substring(16),spanId:vt().substring(16),sampled:s,dsc:n||{}}:{traceId:i||vt(),spanId:vt().substring(16)}}function pE(e=vt(),t=vt().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function Ka(e,t=[]){return[e,t]}function Sq(e,t){const[r,n]=e;return[r,[...n,t]]}function g0(e,t){const r=e[1];for(const n of r){const i=n[0].type;if(t(n,i))return!0}return!1}function mv(e,t){return(t||new TextEncoder).encode(e)}function Tq(e,t){const[r,n]=e;let i=JSON.stringify(r);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[mv(i,t),s]:i.push(typeof s=="string"?mv(s,t):s)}for(const s of n){const[o,c]=s;if(a(`
|
|
7
|
+
${JSON.stringify(o)}
|
|
8
|
+
`),typeof c=="string"||c instanceof Uint8Array)a(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(Ti(c))}a(u)}}return typeof i=="string"?i:wq(i)}function wq(e){const t=e.reduce((i,a)=>i+a.length,0),r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}function Iq(e,t){const r=typeof e.data=="string"?mv(e.data,t):e.data;return[Zt({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}const Rq={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function _0(e){return Rq[e]}function TM(e){if(!e||!e.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function Aq(e,t,r,n){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:xa(n)},...i&&{trace:Zt({...i})}}}function Oq(e,t,r){const n=[{type:"client_report"},{timestamp:Wa(),discarded_events:e}];return Ka(t?{dsn:t}:{},[n])}const Nq=60*1e3;function Pq(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${e}`);return isNaN(n)?Nq:n-t}function Cq(e,t){return e[t]||e.all||0}function Mq(e,t,r=Date.now()){return Cq(e,t)>r}function jq(e,{statusCode:t,headers:r},n=Date.now()){const i={...e},a=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(a)for(const o of a.trim().split(",")){const[c,u,,,l]=o.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!u)i.all=n+f;else for(const p of u.split(";"))p==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(i[p]=n+f):i[p]=n+f}else s?i.all=n+Pq(s,n):t===429&&(i.all=n+60*1e3);return i}const jt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yd="production";function hE(){return Wd("globalEventProcessors",()=>[])}function Dq(e){hE().push(e)}function jd(e,t,r,n=0){return new qr((i,a)=>{const s=e[n];if(t===null||typeof s!="function")i(t);else{const o=s({...t},r);jt&&s.id&&o===null&&Re.log(`Event processor "${s.id}" dropped event`),ro(o)?o.then(c=>jd(e,c,r,n+1).then(i)).then(null,a):jd(e,o,r,n+1).then(i).then(null,a)}})}function wM(e){const t=Ya(),r={sid:vt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Lq(r)};return e&&Ua(r,e),r}function Ua(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ya(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:vt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function IM(e,t){let r={};e.status==="ok"&&(r={status:"exited"}),Ua(e,r)}function Lq(e){return Zt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const $q=1;function kq(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:a,status:s,tags:o,origin:c}=Tc(e);return Zt({data:n,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:r,origin:c})}function Tc(e){return qq(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function qq(e){return typeof e.getSpanJSON=="function"}function Bq(e){const{traceFlags:t}=e.spanContext();return!!(t&$q)}function Uq(e,t,r,n,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,c={...t,event_id:t.event_id||r.event_id||vt(),timestamp:t.timestamp||Wa()},u=r.integrations||e.integrations.map(_=>_.name);Fq(c,e),xq(c,u),t.type===void 0&&Hq(c,e.stackParser);const l=zq(n,r.captureContext);r.mechanism&&Sc(c,r.mechanism);const d=i&&i.getEventProcessors?i.getEventProcessors():[],f=aB().getScopeData();if(a){const _=a.getScopeData();S0(f,_)}if(l){const _=l.getScopeData();S0(f,_)}const p=[...r.attachments||[],...f.attachments];p.length&&(r.attachments=p),MM(c,f);const g=[...d,...hE(),...f.eventProcessors];return jd(g,c,r).then(_=>(_&&Vq(_),typeof s=="number"&&s>0?Gq(_,s,o):_))}function Fq(e,t){const{environment:r,release:n,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?r:Yd),e.release===void 0&&n!==void 0&&(e.release=n),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Ts(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Ts(s.value,a));const o=e.request;o&&o.url&&(o.url=Ts(o.url,a))}const v0=new WeakMap;function Hq(e,t){const r=ct._sentryDebugIds;if(!r)return;let n;const i=v0.get(t);i?n=i:(n=new Map,v0.set(t,n));const a=Object.keys(r).reduce((s,o)=>{let c;const u=n.get(o);u?c=u:(c=t(o),n.set(o,c));for(let l=c.length-1;l>=0;l--){const d=c[l];if(d.filename){s[d.filename]=r[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function Vq(e){const t={};try{e.exception.values.forEach(n=>{n.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.keys(t).forEach(n=>{r.push({type:"sourcemap",code_file:n,debug_id:t[n]})})}function xq(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Gq(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Ti(i.data,t,r)}}))},...e.user&&{user:Ti(e.user,t,r)},...e.contexts&&{contexts:Ti(e.contexts,t,r)},...e.extra&&{extra:Ti(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=Ti(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(i=>{const a=Tc(i).data;return a&&(i.data=Ti(a,t,r)),i})),n}function zq(e,t){if(!t)return e;const r=e?e.clone():new wc;return r.update(t),r}function Wq(e){if(e)return Yq(e)?{captureContext:e}:Xq(e)?{captureContext:e}:e}function Yq(e){return e instanceof wc||typeof e=="function"}const Kq=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Xq(e){return Object.keys(e).some(t=>Kq.includes(t))}function mE(e,t){return vn().captureException(e,Wq(t))}function RM(e,t){return vn().captureEvent(e,t)}function Fa(e,t){vn().addBreadcrumb(e,t)}function Jq(e){vn().setUser(e)}function AM(...e){const t=vn();if(e.length===2){const[r,n]=e;return r?t.withScope(()=>(t.getStackTop().scope=r,n(r))):t.withScope(n)}return t.withScope(e[0])}function Pr(){return vn().getClient()}function Hc(){return vn().getScope()}function E0(e){const t=Pr(),r=Xd(),n=Hc(),{release:i,environment:a=Yd}=t&&t.getOptions()||{},{userAgent:s}=ct.navigator||{},o=wM({release:i,environment:a,user:n.getUser()||r.getUser(),...s&&{userAgent:s},...e}),c=r.getSession();return c&&c.status==="ok"&&Ua(c,{status:"exited"}),OM(),r.setSession(o),n.setSession(o),o}function OM(){const e=Xd(),t=Hc(),r=t.getSession()||e.getSession();r&&IM(r),NM(),e.setSession(),t.setSession()}function NM(){const e=Xd(),t=Hc(),r=Pr(),n=t.getSession()||e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}function b0(e=!1){if(e){OM();return}NM()}function PM(e){return e.transaction}function CM(e,t,r){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=r&&r.getUser()||{},s=Zt({environment:n.environment||Yd,release:n.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Qq(e){const t=Pr();if(!t)return{};const r=CM(Tc(e).trace_id||"",t,Hc()),n=PM(e);if(!n)return r;const i=n&&n._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=n.metadata;a!=null&&(r.sample_rate=`${a}`);const o=Tc(n);return s&&s!=="url"&&(r.transaction=o.description),r.sampled=String(Bq(n)),t.emit&&t.emit("createDsc",r),r}function MM(e,t){const{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:a}=t;Zq(e,t),n&&rB(e,n),nB(e,r),eB(e,i),tB(e,a)}function S0(e,t){const{extra:r,tags:n,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:f,transactionName:p,span:g}=t;Eo(e,"extra",r),Eo(e,"tags",n),Eo(e,"user",i),Eo(e,"contexts",a),Eo(e,"sdkProcessingMetadata",o),s&&(e.level=s),p&&(e.transactionName=p),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function Eo(e,t,r){if(r&&Object.keys(r).length){e[t]={...e[t]};for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}}function Zq(e,t){const{extra:r,tags:n,user:i,contexts:a,level:s,transactionName:o}=t,c=Zt(r);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=Zt(n);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=Zt(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=Zt(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function eB(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function tB(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function rB(e,t){e.contexts={trace:kq(t),...e.contexts};const r=PM(t);if(r){e.sdkProcessingMetadata={dynamicSamplingContext:Qq(t),...e.sdkProcessingMetadata};const n=Tc(r).description;n&&(e.tags={transaction:n,...e.tags})}}function nB(e,t){e.fingerprint=e.fingerprint?lE(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const iB=100;let Kf,wc=class Sd{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=T0()}static clone(t){return t?t.clone():new Sd}clone(){const t=new Sd;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Ua(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,r){return this._tags={...this._tags,[t]:r},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,r){return this._extra={...this._extra,[t]:r},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const r=typeof t=="function"?t(this):t;if(r instanceof Sd){const n=r.getScopeData();this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&Object.keys(n.user).length&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint.length&&(this._fingerprint=n.fingerprint),r.getRequestSession()&&(this._requestSession=r.getRequestSession()),n.propagationContext&&(this._propagationContext=n.propagationContext)}else if(qa(r)){const n=t;this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession),n.propagationContext&&(this._propagationContext=n.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=T0(),this}addBreadcrumb(t,r){const n=typeof r=="number"?r:iB;if(n<=0)return this;const i={timestamp:Wa(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:r,_contexts:n,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:f,_span:p}=this;return{breadcrumbs:t,attachments:r,contexts:n,tags:i,extra:a,user:s,level:o,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:d,transactionName:f,span:p}}applyToEvent(t,r={},n=[]){MM(t,this.getScopeData());const i=[...n,...hE(),...this._eventProcessors];return jd(i,t,r)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,r){const n=r&&r.event_id?r.event_id:vt();if(!this._client)return Re.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...r,event_id:n},this),n}captureMessage(t,r,n){const i=n&&n.event_id?n.event_id:vt();if(!this._client)return Re.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,r,{originalException:t,syntheticException:a,...n,event_id:i},this),i}captureEvent(t,r){const n=r&&r.event_id?r.event_id:vt();return this._client?(this._client.captureEvent(t,{...r,event_id:n},this),n):(Re.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function aB(){return Kf||(Kf=new wc),Kf}function T0(){return{traceId:vt(),spanId:vt().substring(16)}}const yv="7.120.3",jM=parseFloat(yv),sB=100;let DM=class{constructor(t,r,n,i=jM){this._version=i;let a;r?a=r:(a=new wc,a.setClient(t));let s;n?s=n:(s=new wc,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){const r=this.getStackTop();r.client=t,r.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const r=this.pushScope();let n;try{n=t(r)}catch(i){throw this.popScope(),i}return ro(n)?n.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,r){const n=this._lastEventId=r&&r.event_id?r.event_id:vt(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...r,event_id:n}),n}captureMessage(t,r,n){const i=this._lastEventId=n&&n.event_id?n.event_id:vt(),a=new Error(t);return this.getScope().captureMessage(t,r,{originalException:t,syntheticException:a,...n,event_id:i}),i}captureEvent(t,r){const n=r&&r.event_id?r.event_id:vt();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...r,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,r){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=sB}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const c={timestamp:Wa(),...t},u=a?Fc(()=>a(c,r)):c;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,r),n.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,r){this.getScope().setTag(t,r),this.getIsolationScope().setTag(t,r)}setExtra(t,r){this.getScope().setExtra(t,r),this.getIsolationScope().setExtra(t,r)}setContext(t,r){this.getScope().setContext(t,r),this.getIsolationScope().setContext(t,r)}configureScope(t){const{scope:r,client:n}=this.getStackTop();n&&t(r)}run(t){const r=w0(this);try{t(this)}finally{w0(r)}}getIntegration(t){const r=this.getClient();if(!r)return null;try{return r.getIntegration(t)}catch{return jt&&Re.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,r){const n=this._callExtensionMethod("startTransaction",t,r);return jt&&!n&&(this.getClient()?Re.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
9
|
+
Sentry.addTracingExtensions();
|
|
10
|
+
Sentry.init({...});
|
|
11
|
+
`):Re.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const r=this.getStackTop().scope,n=r.getSession();n&&IM(n),this._sendSessionUpdate(),r.setSession()}startSession(t){const{scope:r,client:n}=this.getStackTop(),{release:i,environment:a=Yd}=n&&n.getOptions()||{},{userAgent:s}=ct.navigator||{},o=wM({release:i,environment:a,user:r.getUser(),...s&&{userAgent:s},...t}),c=r.getSession&&r.getSession();return c&&c.status==="ok"&&Ua(c,{status:"exited"}),this.endSession(),r.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),r=t&&t.getOptions();return!!(r&&r.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:r}=this.getStackTop(),n=t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_callExtensionMethod(t,...r){const i=Kd().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,r);jt&&Re.warn(`Extension method ${t} couldn't be found, doing nothing.`)}};function Kd(){return ct.__SENTRY__=ct.__SENTRY__||{extensions:{},hub:void 0},ct}function w0(e){const t=Kd(),r=gv(t);return LM(t,e),r}function vn(){const e=Kd();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return oB(e)}function Xd(){return vn().getIsolationScope()}function oB(e=Kd()){return(!cB(e)||gv(e).isOlderThan(jM))&&LM(e,new DM),gv(e)}function cB(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function gv(e){return Wd("hub",()=>new DM,e)}function LM(e,t){if(!e)return!1;const r=e.__SENTRY__=e.__SENTRY__||{};return r.hub=t,!0}function uB(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function lB(e,t,r,n){const i=TM(r),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:xa(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ka(a,[s])}function dB(e,t,r,n){const i=TM(r),a=e.type&&e.type!=="replay_event"?e.type:"event";uB(e,r&&r.sdk);const s=Aq(e,i,n,t);return delete e.sdkProcessingMetadata,Ka(s,[[{type:a},e]])}const fB="7";function $M(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function pB(e){return`${$M(e)}${e.projectId}/envelope/`}function hB(e,t){return $k({sentry_key:e.publicKey,sentry_version:fB,...t&&{sentry_client:`${t.name}/${t.version}`}})}function mB(e,t={}){const r=typeof t=="string"?t:t.tunnel,n=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return r||`${pB(e)}?${hB(e,n)}`}function yB(e,t){const r=cM(e);if(!r)return"";const n=`${$M(r)}embed/error-page/`;let i=`dsn=${xa(r)}`;for(const a in t)if(a!=="dsn"&&a!=="onClose")if(a==="user"){const s=t.user;if(!s)continue;s.name&&(i+=`&name=${encodeURIComponent(s.name)}`),s.email&&(i+=`&email=${encodeURIComponent(s.email)}`)}else i+=`&${encodeURIComponent(a)}=${encodeURIComponent(t[a])}`;return`${n}?${i}`}const I0=[];function gB(e){const t={};return e.forEach(r=>{const{name:n}=r,i=t[n];i&&!i.isDefaultInstance&&r.isDefaultInstance||(t[n]=r)}),Object.keys(t).map(r=>t[r])}function _B(e){const t=e.defaultIntegrations||[],r=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let n;Array.isArray(r)?n=[...t,...r]:typeof r=="function"?n=lE(r(t)):n=t;const i=gB(n),a=EB(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function vB(e,t){const r={};return t.forEach(n=>{n&&kM(e,n,r)}),r}function R0(e,t){for(const r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function kM(e,t,r){if(r[t.name]){jt&&Re.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,I0.indexOf(t.name)===-1&&(t.setupOnce(Dq,vn),I0.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>n(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const n=t.processEvent.bind(t),i=Object.assign((a,s)=>n(a,s,e),{id:t.name});e.addEventProcessor(i)}jt&&Re.log(`Integration installed: ${t.name}`)}function EB(e,t){for(let r=0;r<e.length;r++)if(t(e[r])===!0)return r;return-1}function $i(e,t){return Object.assign(function(...n){return t(...n)},{id:e})}function bB(e){let t="";for(const r of e){const n=Object.entries(r.tags),i=n.length>0?`|#${n.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${i}|T${r.timestamp}
|
|
12
|
+
`}return t}function SB(e,t,r,n){const i={sent_at:new Date().toISOString()};r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&t&&(i.dsn=xa(t));const a=TB(e);return Ka(i,[a])}function TB(e){const t=bB(e);return[{type:"statsd",length:t.length},t]}const A0="Not capturing exception because it's already been captured.";class wB{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=cM(t.dsn):jt&&Re.warn("No DSN provided, client will not send events."),this._dsn){const r=mB(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}}captureException(t,r,n){if(f0(t)){jt&&Re.log(A0);return}let i=r&&r.event_id;return this._process(this.eventFromException(t,r).then(a=>this._captureEvent(a,r,n)).then(a=>{i=a})),i}captureMessage(t,r,n,i){let a=n&&n.event_id;const s=sE(t)?t:String(t),o=oE(t)?this.eventFromMessage(s,r,n):this.eventFromException(t,n);return this._process(o.then(c=>this._captureEvent(c,n,i)).then(c=>{a=c})),a}captureEvent(t,r,n){if(r&&r.originalException&&f0(r.originalException)){jt&&Re.log(A0);return}let i=r&&r.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,r,s||n).then(o=>{i=o})),i}captureSession(t){typeof t.release!="string"?jt&&Re.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Ua(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const r=this._transport;return r?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(n=>r.flush(t).then(i=>n&&i))):Gs(!0)}close(t){return this.flush(t).then(r=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return jt&&Re.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const r=this._integrations[t.name];kM(this,t,this._integrations),r||R0(this,[t])}sendEvent(t,r={}){this.emit("beforeSendEvent",t,r);let n=dB(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])n=Sq(n,Iq(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const r=lB(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}recordDroppedEvent(t,r,n){if(this._options.sendClientReports){const i=typeof n=="number"?n:1,a=`${t}:${r}`;jt&&Re.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}captureAggregateMetrics(t){jt&&Re.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const r=SB(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}on(t,r){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(r)}emit(t,...r){this._hooks[t]&&this._hooks[t].forEach(n=>n(...r))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=vB(this,t),R0(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,r){let n=!1,i=!1;const a=r.exception&&r.exception.values;if(a){i=!0;for(const c of a){const u=c.mechanism;if(u&&u.handled===!1){n=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&n)&&(Ua(t,{...n&&{status:"crashed"},errors:t.errors||Number(i||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new qr(r=>{let n=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=i,t&&n>=t&&(clearInterval(a),r(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,r,n,i=Xd()){const a=this.getOptions(),s=Object.keys(this._integrations);return!r.integrations&&s.length>0&&(r.integrations=s),this.emit("preprocessEvent",t,r),Uq(a,t,r,n,this,i).then(o=>{if(o===null)return o;const c={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&c){const{traceId:l,spanId:d,parentSpanId:f,dsc:p}=c;o.contexts={trace:{trace_id:l,span_id:d,parent_span_id:f},...o.contexts};const g=p||CM(l,this,n);o.sdkProcessingMetadata={dynamicSamplingContext:g,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,r={},n){return this._processEvent(t,r,n).then(i=>i.event_id,i=>{if(jt){const a=i;a.logLevel==="log"?Re.log(a.message):Re.warn(a)}})}_processEvent(t,r,n){const i=this.getOptions(),{sampleRate:a}=i,s=BM(t),o=qM(t),c=t.type||"error",u=`before send for type \`${c}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),fE(new Un(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const l=c==="replay_event"?"replay":c,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,r,n,f).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",l,t),new Un("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return p;const y=RB(i,p,r);return IB(y,u)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",l,t),s){const R=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",R)}throw new Un(`${u} returned \`null\`, will not send event.`,"log")}const g=n&&n.getSession();if(!s&&g&&this._updateSessionFromEvent(g,p),s){const _=p.sdkProcessingMetadata&&p.sdkProcessingMetadata.spanCountBeforeProcessing||0,R=p.spans?p.spans.length:0,h=_-R;h>0&&this.recordDroppedEvent("before_send","span",h)}const y=p.transaction_info;if(s&&y&&p.transaction!==t.transaction){const _="custom";p.transaction_info={...y,source:_}}return this.sendEvent(p,r),p}).then(null,p=>{throw p instanceof Un?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new Un(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
13
|
+
Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,r=>{jt&&Re.error("Error while sending event:",r)});jt&&Re.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(r=>{const[n,i]=r.split(":");return{reason:n,category:i,quantity:t[r]}})}}function IB(e,t){const r=`${t} must return \`null\` or a valid event.`;if(ro(e))return e.then(n=>{if(!qa(n)&&n!==null)throw new Un(r);return n},n=>{throw new Un(`${t} rejected with ${n}`)});if(!qa(e)&&e!==null)throw new Un(r);return e}function RB(e,t,r){const{beforeSend:n,beforeSendTransaction:i}=e;if(qM(t)&&n)return n(t,r);if(BM(t)&&i){if(t.spans){const a=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(t,r)}return t}function qM(e){return e.type===void 0}function BM(e){return e.type==="transaction"}function AB(e,t){t.debug===!0&&(jt?Re.enable():Fc(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Hc().update(t.initialScope);const n=new e(t);OB(n),NB(n)}function OB(e){const r=vn().getStackTop();r.client=e,r.scope.setClient(e)}function NB(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const PB=30;function UM(e,t,r=dq(e.bufferSize||PB)){let n={};const i=s=>r.drain(s);function a(s){const o=[];if(g0(s,(d,f)=>{const p=_0(f);if(Mq(n,p)){const g=O0(d,f);e.recordDroppedEvent("ratelimit_backoff",p,g)}else o.push(d)}),o.length===0)return Gs();const c=Ka(s[0],o),u=d=>{g0(c,(f,p)=>{const g=O0(f,p);e.recordDroppedEvent(d,_0(p),g)})},l=()=>t({body:Tq(c,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&jt&&Re.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),n=jq(n,d),d),d=>{throw u("network_error"),d});return r.add(l).then(d=>d,d=>{if(d instanceof Un)return jt&&Re.error("Skipped sending event because buffer is full."),u("queue_overflow"),Gs();throw d})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function O0(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function FM(e,t,r=[t],n="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(a=>({name:`${n}:@sentry/${a}`,version:yv})),version:yv}),e._metadata=i}const CB=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],MB=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],HM="InboundFilters",jB=((e={})=>({name:HM,setupOnce(){},processEvent(t,r,n){const i=n.getOptions(),a=DB(e,i);return LB(t,a)?null:t}})),VM=jB;$i(HM,VM);function DB(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:CB],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:MB],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function LB(e,t){return t.ignoreInternal&&FB(e)?(jt&&Re.warn(`Event dropped due to being internal Sentry Error.
|
|
14
|
+
Event: ${wi(e)}`),!0):$B(e,t.ignoreErrors)?(jt&&Re.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
15
|
+
Event: ${wi(e)}`),!0):kB(e,t.ignoreTransactions)?(jt&&Re.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
16
|
+
Event: ${wi(e)}`),!0):qB(e,t.denyUrls)?(jt&&Re.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
17
|
+
Event: ${wi(e)}.
|
|
18
|
+
Url: ${Dd(e)}`),!0):BB(e,t.allowUrls)?!1:(jt&&Re.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
19
|
+
Event: ${wi(e)}.
|
|
20
|
+
Url: ${Dd(e)}`),!0)}function $B(e,t){return e.type||!t||!t.length?!1:UB(e).some(r=>Uc(r,t))}function kB(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const r=e.transaction;return r?Uc(r,t):!1}function qB(e,t){if(!t||!t.length)return!1;const r=Dd(e);return r?Uc(r,t):!1}function BB(e,t){if(!t||!t.length)return!0;const r=Dd(e);return r?Uc(r,t):!0}function UB(e){const t=[];e.message&&t.push(e.message);let r;try{r=e.exception.values[e.exception.values.length-1]}catch{}return r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`)),jt&&t.length===0&&Re.error(`Could not extract message for event ${wi(e)}`),t}function FB(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function HB(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function Dd(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?HB(t):null}catch{return jt&&Re.error(`Cannot extract url for event ${wi(e)}`),null}}let N0;const xM="FunctionToString",P0=new WeakMap,VB=(()=>({name:xM,setupOnce(){N0=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=uE(this),r=P0.has(Pr())&&t!==void 0?t:this;return N0.apply(r,e)}}catch{}},setup(e){P0.set(e,!0)}})),GM=VB;$i(xM,GM);const mt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,zM="production";function xB(){return Wd("globalEventProcessors",()=>[])}function _v(e,t,r,n=0){return new qr((i,a)=>{const s=e[n];if(t===null||typeof s!="function")i(t);else{const o=s({...t},r);mt&&s.id&&o===null&&Re.log(`Event processor "${s.id}" dropped event`),ro(o)?o.then(c=>_v(e,c,r,n+1).then(i)).then(null,a):_v(e,o,r,n+1).then(i).then(null,a)}})}function GB(e){const t=Ya(),r={sid:vt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>WB(r)};return e&&Jd(r,e),r}function Jd(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ya(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:vt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function zB(e,t){let r={};e.status==="ok"&&(r={status:"exited"}),Jd(e,r)}function WB(e){return Zt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const YB=0,WM=1;function yE(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:a,status:s,tags:o,origin:c}=Br(e);return Zt({data:n,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:r,origin:c})}function Qd(e){const{traceId:t,spanId:r}=e.spanContext(),n=gE(e);return pE(t,r,n)}function Zd(e){return typeof e=="number"?C0(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?C0(e.getTime()):Ya()}function C0(e){return e>9999999999?e/1e3:e}function Br(e){return KB(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function KB(e){return typeof e.getSpanJSON=="function"}function gE(e){const{traceFlags:t}=e.spanContext();return!!(t&WM)}function io(){return so().getClient()}function ao(){return so().getScope()}function Ld(e){return e.transaction}function _E(e,t,r){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=r&&r.getUser()||{},s=Zt({environment:n.environment||zM,release:n.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function zs(e){const t=io();if(!t)return{};const r=_E(Br(e).trace_id||"",t,ao()),n=Ld(e);if(!n)return r;const i=n&&n._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=n.metadata;a!=null&&(r.sample_rate=`${a}`);const o=Br(n);return s&&s!=="url"&&(r.transaction=o.description),r.sampled=String(gE(n)),t.emit&&t.emit("createDsc",r),r}function XB(e,t){const{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:a}=t;JB(e,t),n&&eU(e,n),tU(e,r),QB(e,i),ZB(e,a)}function JB(e,t){const{extra:r,tags:n,user:i,contexts:a,level:s,transactionName:o}=t,c=Zt(r);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=Zt(n);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=Zt(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=Zt(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function QB(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function ZB(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function eU(e,t){e.contexts={trace:yE(t),...e.contexts};const r=Ld(t);if(r){e.sdkProcessingMetadata={dynamicSamplingContext:zs(t),...e.sdkProcessingMetadata};const n=Br(r).description;n&&(e.tags={transaction:n,...e.tags})}}function tU(e,t){e.fingerprint=e.fingerprint?lE(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const rU=100;class Is{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=M0()}static clone(t){return t?t.clone():new Is}clone(){const t=new Is;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Jd(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,r){return this._tags={...this._tags,[t]:r},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,r){return this._extra={...this._extra,[t]:r},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const r=typeof t=="function"?t(this):t;if(r instanceof Is){const n=r.getScopeData();this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&Object.keys(n.user).length&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint.length&&(this._fingerprint=n.fingerprint),r.getRequestSession()&&(this._requestSession=r.getRequestSession()),n.propagationContext&&(this._propagationContext=n.propagationContext)}else if(qa(r)){const n=t;this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession),n.propagationContext&&(this._propagationContext=n.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=M0(),this}addBreadcrumb(t,r){const n=typeof r=="number"?r:rU;if(n<=0)return this;const i={timestamp:Wa(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:r,_contexts:n,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:f,_span:p}=this;return{breadcrumbs:t,attachments:r,contexts:n,tags:i,extra:a,user:s,level:o,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:d,transactionName:f,span:p}}applyToEvent(t,r={},n=[]){XB(t,this.getScopeData());const i=[...n,...xB(),...this._eventProcessors];return _v(i,t,r)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,r){const n=r&&r.event_id?r.event_id:vt();if(!this._client)return Re.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...r,event_id:n},this),n}captureMessage(t,r,n){const i=n&&n.event_id?n.event_id:vt();if(!this._client)return Re.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,r,{originalException:t,syntheticException:a,...n,event_id:i},this),i}captureEvent(t,r){const n=r&&r.event_id?r.event_id:vt();return this._client?(this._client.captureEvent(t,{...r,event_id:n},this),n):(Re.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function M0(){return{traceId:vt(),spanId:vt().substring(16)}}const nU="7.120.3",YM=parseFloat(nU),iU=100;class KM{constructor(t,r,n,i=YM){this._version=i;let a;r?a=r:(a=new Is,a.setClient(t));let s;n?s=n:(s=new Is,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){const r=this.getStackTop();r.client=t,r.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const r=this.pushScope();let n;try{n=t(r)}catch(i){throw this.popScope(),i}return ro(n)?n.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,r){const n=this._lastEventId=r&&r.event_id?r.event_id:vt(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...r,event_id:n}),n}captureMessage(t,r,n){const i=this._lastEventId=n&&n.event_id?n.event_id:vt(),a=new Error(t);return this.getScope().captureMessage(t,r,{originalException:t,syntheticException:a,...n,event_id:i}),i}captureEvent(t,r){const n=r&&r.event_id?r.event_id:vt();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...r,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,r){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=iU}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const c={timestamp:Wa(),...t},u=a?Fc(()=>a(c,r)):c;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,r),n.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,r){this.getScope().setTag(t,r),this.getIsolationScope().setTag(t,r)}setExtra(t,r){this.getScope().setExtra(t,r),this.getIsolationScope().setExtra(t,r)}setContext(t,r){this.getScope().setContext(t,r),this.getIsolationScope().setContext(t,r)}configureScope(t){const{scope:r,client:n}=this.getStackTop();n&&t(r)}run(t){const r=j0(this);try{t(this)}finally{j0(r)}}getIntegration(t){const r=this.getClient();if(!r)return null;try{return r.getIntegration(t)}catch{return mt&&Re.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,r){const n=this._callExtensionMethod("startTransaction",t,r);return mt&&!n&&(this.getClient()?Re.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
21
|
+
Sentry.addTracingExtensions();
|
|
22
|
+
Sentry.init({...});
|
|
23
|
+
`):Re.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const r=this.getStackTop().scope,n=r.getSession();n&&zB(n),this._sendSessionUpdate(),r.setSession()}startSession(t){const{scope:r,client:n}=this.getStackTop(),{release:i,environment:a=zM}=n&&n.getOptions()||{},{userAgent:s}=ct.navigator||{},o=GB({release:i,environment:a,user:r.getUser(),...s&&{userAgent:s},...t}),c=r.getSession&&r.getSession();return c&&c.status==="ok"&&Jd(c,{status:"exited"}),this.endSession(),r.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),r=t&&t.getOptions();return!!(r&&r.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:r}=this.getStackTop(),n=t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_callExtensionMethod(t,...r){const i=Vc().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,r);mt&&Re.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Vc(){return ct.__SENTRY__=ct.__SENTRY__||{extensions:{},hub:void 0},ct}function j0(e){const t=Vc(),r=vv(t);return XM(t,e),r}function so(){const e=Vc();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return aU(e)}function vE(){return so().getIsolationScope()}function aU(e=Vc()){return(!sU(e)||vv(e).isOlderThan(YM))&&XM(e,new KM),vv(e)}function sU(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function vv(e){return Wd("hub",()=>new KM,e)}function XM(e,t){if(!e)return!1;const r=e.__SENTRY__=e.__SENTRY__||{};return r.hub=t,!0}function Ha(e){return so().getScope().getTransaction()}let D0=!1;function oU(){D0||(D0=!0,yM(Ev),gM(Ev))}function Ev(){const e=Ha();if(e){const t="internal_error";mt&&Re.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Ev.tag="sentry_tracingErrorCallback";var L0;(function(e){e.Ok="ok";const r="deadline_exceeded";e.DeadlineExceeded=r;const n="unauthenticated";e.Unauthenticated=n;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const c="unimplemented";e.Unimplemented=c;const u="unavailable";e.Unavailable=u;const l="internal_error";e.InternalError=l;const d="unknown_error";e.UnknownError=d;const f="cancelled";e.Cancelled=f;const p="already_exists";e.AlreadyExists=p;const g="failed_precondition";e.FailedPrecondition=g;const y="aborted";e.Aborted=y;const _="out_of_range";e.OutOfRange=_;const R="data_loss";e.DataLoss=R})(L0||(L0={}));function cU(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function EE(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const r=cU(t);r!=="unknown_error"&&e.setStatus(r)}function oo(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=io(),r=e||t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}function JM(e){if(!oo())return;const t=dU(e),r=so(),n=e.scope?e.scope.getSpan():uU();if(e.onlyIfParent&&!n)return;const s=(e.scope||ao()).clone();return lU(r,{parentSpan:n,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function uU(){return ao().getSpan()}function lU(e,{parentSpan:t,spanContext:r,forceTransaction:n,scope:i}){if(!oo())return;const a=vE();let s;if(t&&!n)s=t.startChild(r);else if(t){const o=zs(t),{traceId:c,spanId:u}=t.spanContext(),l=gE(t);s=e.startTransaction({traceId:c,parentSpanId:u,parentSampled:l,...r,metadata:{dynamicSamplingContext:o,...r.metadata}})}else{const{traceId:o,dsc:c,parentSpanId:u,sampled:l}={...a.getPropagationContext(),...i.getPropagationContext()};s=e.startTransaction({traceId:o,parentSpanId:u,parentSampled:l,...r,metadata:{dynamicSamplingContext:c,...r.metadata}})}return i.setSpan(s),fU(s,i,a),s}function dU(e){if(e.startTime){const t={...e};return t.startTimestamp=Zd(e.startTime),delete t.startTime,t}return e}const QM="_sentryScope",ZM="_sentryIsolationScope";function fU(e,t,r){e&&(Ba(e,ZM,r),Ba(e,QM,t))}function pU(e){return{scope:e[QM],isolationScope:e[ZM]}}const Rs="sentry.source",Es="sentry.sample_rate",tl="sentry.op",bs="sentry.origin",hU="profile_id";class ej{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class ef{constructor(t={}){this._traceId=t.traceId||vt(),this._spanId=t.spanId||vt().substring(16),this._startTime=t.startTimestamp||Ya(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[bs]:t.origin||"manual",[tl]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[tl]}set op(t){this.setAttribute(tl,t)}get origin(){return this._attributes[bs]}set origin(t){this.setAttribute(bs,t)}spanContext(){const{_spanId:t,_traceId:r,_sampled:n}=this;return{spanId:t,traceId:r,traceFlags:n?WM:YB}}startChild(t){const r=new ef({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r);const n=Ld(this);if(r.transaction=n,mt&&n){const i=t&&t.op||"< unknown op >",a=Br(r).description||"< unknown name >",s=n.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;Re.log(o),this._logMessage=o}return r}setTag(t,r){return this.tags={...this.tags,[t]:r},this}setData(t,r){return this.data={...this.data,[t]:r},this}setAttribute(t,r){r===void 0?delete this._attributes[t]:this._attributes[t]=r}setAttributes(t){Object.keys(t).forEach(r=>this.setAttribute(r,t[r]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return EE(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const r=Ld(this);if(mt&&r&&r.spanContext().spanId!==this._spanId){const n=this._logMessage;n&&Re.log(n.replace("Starting","Finishing"))}this._endTime=Zd(t)}toTraceparent(){return Qd(this)}toContext(){return Zt({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return yE(this)}getSpanJSON(){return Zt({data:this._getData(),description:this._name,op:this._attributes[tl],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[bs],_metrics_summary:void 0,profile_id:this._attributes[hU],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:r}=this,n=Object.keys(t).length>0,i=Object.keys(r).length>0;if(!(!n&&!i))return n&&i?{...t,...r}:n?t:r}}class tj extends ef{constructor(t,r){super(t),this._contexts={},this._hub=r||so(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Rs]&&{source:this._attributes[Rs]},...this._attributes[Es]&&{sampleRate:this._attributes[Es]}}}set metadata(t){this._metadata=t}setName(t,r="custom"){this._name=t,this.setAttribute(Rs,r)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new ej(t)),this.spanRecorder.add(this)}setContext(t,r){r===null?delete this._contexts[t]:this._contexts[t]=r}setMeasurement(t,r,n=""){this._measurements[t]={value:r,unit:n}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const r=Zd(t),n=this._finishTransaction(r);if(n)return this._hub.captureEvent(n)}toContext(){const t=super.toContext();return Zt({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return zs(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(mt&&Re.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const r=this._hub.getClient();if(r&&r.emit&&r.emit("finishTransaction",this),this._sampled!==!0){mt&&Re.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}const n=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&Br(l).timestamp):[];if(this._trimEnd&&n.length>0){const l=n.map(d=>Br(d).timestamp).filter(Boolean);this._endTime=l.reduce((d,f)=>d>f?d:f)}const{scope:i,isolationScope:a}=pU(this),{metadata:s}=this,{source:o}=s,c={contexts:{...this._contexts,trace:yE(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:i,capturedSpanIsolationScope:a,...Zt({dynamicSamplingContext:zs(this)})},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(mt&&Re.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),mt&&Re.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const Td={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},mU="finishReason",cs=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class yU extends ej{constructor(t,r,n,i){super(i),this._pushActivity=t,this._popActivity=r,this.transactionSpanId=n}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const r=t.end;t.end=(...n)=>(this._popActivity(t.spanContext().spanId),r.apply(t,n)),Br(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class gU extends tj{constructor(t,r,n=Td.idleTimeout,i=Td.finalTimeout,a=Td.heartbeatInterval,s=!1,o=!1){super(t,r),this._idleHub=r,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=cs[4],this._autoFinishAllowed=!o,s&&(mt&&Re.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),r.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=cs[3],this.end())},this._finalTimeout)}end(t){const r=Zd(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(mU,this._finishReason),this.spanRecorder){mt&&Re.log("[Tracing] finishing IdleTransaction",new Date(r*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,r);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanContext().spanId===this.spanContext().spanId)return!0;Br(n).timestamp||(n.setStatus("cancelled"),n.end(r),mt&&Re.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const{start_timestamp:i,timestamp:a}=Br(n),s=i&&i<r,o=(this._finalTimeout+this._idleTimeout)/1e3,c=a&&i&&a-i<o;if(mt){const u=JSON.stringify(n,void 0,2);s?c||Re.log("[Tracing] discarding Span since it finished after Transaction final timeout",u):Re.log("[Tracing] discarding Span since it happened after Transaction was finished",u)}return s&&c}),mt&&Re.log("[Tracing] flushing IdleTransaction")}else mt&&Re.log("[Tracing] No active IdleTransaction");if(this._onScope){const n=this._idleHub.getScope();n.getTransaction()===this&&n.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const r=i=>{this._finished||this._pushActivity(i)},n=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new yU(r,n,this.spanContext().spanId,t),mt&&Re.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:r}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=r===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=cs[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(mt&&Re.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=cs[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),mt&&Re.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,mt&&Re.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(mt&&Re.log(`[Tracing] popActivity ${t}`),delete this.activities[t],mt&&Re.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const r=Ya();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=cs[5],this.end(r)):this._restartIdleTimeout(r+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(mt&&Re.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=cs[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){mt&&Re.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function rj(e,t,r){if(!oo(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Es,Number(e.sampled)),e;let n;return typeof t.tracesSampler=="function"?(n=t.tracesSampler(r),e.setAttribute(Es,Number(n))):r.parentSampled!==void 0?n=r.parentSampled:typeof t.tracesSampleRate<"u"?(n=t.tracesSampleRate,e.setAttribute(Es,Number(n))):(n=1,e.setAttribute(Es,n)),nj(n)?n?(e.sampled=Math.random()<n,e.sampled?(mt&&Re.log(`[Tracing] starting ${e.op} transaction - ${Br(e).description}`),e):(mt&&Re.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),e)):(mt&&Re.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(mt&&Re.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function nj(e){return iM(e)||!(typeof e=="number"||typeof e=="boolean")?(mt&&Re.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(mt&&Re.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function _U(){const t=this.getScope().getSpan();return t?{"sentry-trace":Qd(t)}:{}}function vU(e,t){const r=this.getClient(),n=r&&r.getOptions()||{},i=n.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(mt&&Re.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter.
|
|
24
|
+
The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new tj(e,this);return s=rj(s,n,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",s),s}function $0(e,t,r,n,i,a,s,o=!1){const c=e.getClient(),u=c&&c.getOptions()||{};let l=new gU(t,e,r,n,s,i,o);return l=rj(l,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),l.isRecording()&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}function EU(){const e=Vc();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=vU),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=_U),oU())}function bU(e,t,r){const n=Ha();n&&n.setMeasurement(e,t,r)}function SU(e,t){const r={sent_at:new Date().toISOString()};t&&(r.dsn=xa(t));const n=e.map(TU);return Ka(r,n)}function TU(e){return[{type:"span"},e]}const Dt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Je=ct;function wU(){Je.document?Je.document.addEventListener("visibilitychange",()=>{const e=Ha();if(Je.document.hidden&&e){const t="cancelled",{op:r,status:n}=Br(e);Dt&&Re.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${r}`),n||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):Dt&&Re.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const xc=(e,t,r)=>{let n,i;return a=>{t.value>=0&&(a||r)&&(i=t.value-(n||0),(i||n===void 0)&&(n=t.value,t.delta=i,e(t)))}},IU=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,RU=()=>{const e=Je.performance.timing,t=Je.performance.navigation.type,r={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const n in e)n!=="navigationStart"&&n!=="toJSON"&&(r[n]=Math.max(e[n]-e.navigationStart,0));return r},tf=()=>Je.__WEB_VITALS_POLYFILL__?Je.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||RU()):Je.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],bE=()=>{const e=tf();return e&&e.activationStart||0},Gc=(e,t)=>{const r=tf();let n="navigate";return r&&(Je.document&&Je.document.prerendering||bE()>0?n="prerender":n=r.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:IU(),navigationType:n}},co=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver(i=>{t(i.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch{}},zc=(e,t)=>{const r=n=>{(n.type==="pagehide"||Je.document.visibilityState==="hidden")&&(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};Je.document&&(addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0))},AU=(e,t={})=>{const r=Gc("CLS",0);let n,i=0,a=[];const s=c=>{c.forEach(u=>{if(!u.hadRecentInput){const l=a[0],d=a[a.length-1];i&&a.length!==0&&u.startTime-d.startTime<1e3&&u.startTime-l.startTime<5e3?(i+=u.value,a.push(u)):(i=u.value,a=[u]),i>r.value&&(r.value=i,r.entries=a,n&&n())}})},o=co("layout-shift",s);if(o){n=xc(e,r,t.reportAllChanges);const c=()=>{s(o.takeRecords()),n(!0)};return zc(c),c}};let $d=-1;const OU=()=>{Je.document&&Je.document.visibilityState&&($d=Je.document.visibilityState==="hidden"&&!Je.document.prerendering?0:1/0)},NU=()=>{zc(({timeStamp:e})=>{$d=e},!0)},SE=()=>($d<0&&(OU(),NU()),{get firstHiddenTime(){return $d}}),PU=e=>{const t=SE(),r=Gc("FID");let n;const i=o=>{o.startTime<t.firstHiddenTime&&(r.value=o.processingStart-o.startTime,r.entries.push(o),n(!0))},a=o=>{o.forEach(i)},s=co("first-input",a);n=xc(e,r),s&&zc(()=>{a(s.takeRecords()),s.disconnect()},!0)};let ij=0,Xf=1/0,rl=0;const CU=e=>{e.forEach(t=>{t.interactionId&&(Xf=Math.min(Xf,t.interactionId),rl=Math.max(rl,t.interactionId),ij=rl?(rl-Xf)/7+1:0)})};let bv;const MU=()=>bv?ij:performance.interactionCount||0,jU=()=>{"interactionCount"in performance||bv||(bv=co("event",CU,{type:"event",buffered:!0,durationThreshold:0}))},aj=()=>MU(),k0=10,oi=[],Jf={},q0=e=>{const t=oi[oi.length-1],r=Jf[e.interactionId];if(r||oi.length<k0||e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{const n={id:e.interactionId,latency:e.duration,entries:[e]};Jf[n.id]=n,oi.push(n)}oi.sort((n,i)=>i.latency-n.latency),oi.splice(k0).forEach(n=>{delete Jf[n.id]})}},DU=()=>{const e=Math.min(oi.length-1,Math.floor(aj()/50));return oi[e]},LU=(e,t)=>{t=t||{},jU();const r=Gc("INP");let n;const i=s=>{s.forEach(c=>{c.interactionId&&q0(c),c.entryType==="first-input"&&!oi.some(l=>l.entries.some(d=>c.duration===d.duration&&c.startTime===d.startTime))&&q0(c)});const o=DU();o&&o.latency!==r.value&&(r.value=o.latency,r.entries=o.entries,n())},a=co("event",i,{durationThreshold:t.durationThreshold||40});n=xc(e,r,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),zc(()=>{i(a.takeRecords()),r.value<0&&aj()>0&&(r.value=0,r.entries=[]),n(!0)}))},B0={},$U=e=>{const t=SE(),r=Gc("LCP");let n;const i=s=>{const o=s[s.length-1];if(o){const c=Math.max(o.startTime-bE(),0);c<t.firstHiddenTime&&(r.value=c,r.entries=[o],n())}},a=co("largest-contentful-paint",i);if(a){n=xc(e,r);const s=()=>{B0[r.id]||(i(a.takeRecords()),a.disconnect(),B0[r.id]=!0,n(!0))};return["keydown","click"].forEach(o=>{Je.document&&addEventListener(o,s,{once:!0,capture:!0})}),zc(s,!0),s}},Sv=e=>{Je.document&&(Je.document.prerendering?addEventListener("prerenderingchange",()=>Sv(e),!0):Je.document.readyState!=="complete"?addEventListener("load",()=>Sv(e),!0):setTimeout(e,0))},kU=(e,t)=>{t=t||{};const r=Gc("TTFB"),n=xc(e,r,t.reportAllChanges);Sv(()=>{const i=tf();if(i){if(r.value=Math.max(i.responseStart-bE(),0),r.value<0||r.value>performance.now())return;r.entries=[i],n(!0)}})},hc={},kd={};let sj,oj,cj,uj,lj;function qU(e,t=!1){return Wc("cls",e,VU,sj,t)}function BU(e,t=!1){return Wc("lcp",e,GU,cj,t)}function UU(e){return Wc("ttfb",e,zU,uj)}function FU(e){return Wc("fid",e,xU,oj)}function HU(e){return Wc("inp",e,WU,lj)}function Ic(e,t){return dj(e,t),kd[e]||(YU(e),kd[e]=!0),fj(e,t)}function uo(e,t){const r=hc[e];if(!(!r||!r.length))for(const n of r)try{n(t)}catch(i){Dt&&Re.error(`Error while triggering instrumentation handler.
|
|
25
|
+
Type: ${e}
|
|
26
|
+
Name: ${fi(n)}
|
|
27
|
+
Error:`,i)}}function VU(){return AU(e=>{uo("cls",{metric:e}),sj=e},{reportAllChanges:!0})}function xU(){return PU(e=>{uo("fid",{metric:e}),oj=e})}function GU(){return $U(e=>{uo("lcp",{metric:e}),cj=e})}function zU(){return kU(e=>{uo("ttfb",{metric:e}),uj=e})}function WU(){return LU(e=>{uo("inp",{metric:e}),lj=e})}function Wc(e,t,r,n,i=!1){dj(e,t);let a;return kd[e]||(a=r(),kd[e]=!0),n&&t({metric:n}),fj(e,t,i?a:void 0)}function YU(e){const t={};e==="event"&&(t.durationThreshold=0),co(e,r=>{uo(e,{entries:r})},t)}function dj(e,t){hc[e]=hc[e]||[],hc[e].push(t)}function fj(e,t,r){return()=>{r&&r();const n=hc[e];if(!n)return;const i=n.indexOf(t);i!==-1&&n.splice(i,1)}}function Qf(e){return typeof e=="number"&&isFinite(e)}function Ws(e,{startTimestamp:t,...r}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...r})}const KU=2147483647;function er(e){return e/1e3}function TE(){return Je&&Je.addEventListener&&Je.performance}let U0=0,Yt={},Dn,mc;function XU(){const e=TE();if(e&&rn){e.mark&&Je.performance.mark("sentry-tracing-init");const t=rF(),r=eF(),n=tF(),i=nF();return()=>{t(),r(),n(),i()}}return()=>{}}function JU(){Ic("longtask",({entries:e})=>{for(const t of e){const r=Ha();if(!r)return;const n=er(rn+t.startTime),i=er(t.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})}function QU(){Ic("event",({entries:e})=>{for(const t of e){const r=Ha();if(!r)return;if(t.name==="click"){const n=er(rn+t.startTime),i=er(t.duration),a={description:xs(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i},s=sM(t.target);s&&(a.attributes={"ui.component_name":s}),r.startChild(a)}}})}function ZU(e,t){if(TE()&&rn){const n=iF(e,t);return()=>{n()}}return()=>{}}function eF(){return qU(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Dt&&Re.log("[Measurements] Adding CLS"),Yt.cls={value:e.value,unit:""},mc=t)},!0)}function tF(){return BU(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Dt&&Re.log("[Measurements] Adding LCP"),Yt.lcp={value:e.value,unit:"millisecond"},Dn=t)},!0)}function rF(){return FU(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const r=er(rn),n=er(t.startTime);Dt&&Re.log("[Measurements] Adding FID"),Yt.fid={value:e.value,unit:"millisecond"},Yt["mark.fid"]={value:r+n,unit:"second"}})}function nF(){return UU(({metric:e})=>{e.entries[e.entries.length-1]&&(Dt&&Re.log("[Measurements] Adding TTFB"),Yt.ttfb={value:e.value,unit:"millisecond"})})}const F0={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function iF(e,t){return HU(({metric:r})=>{if(r.value===void 0)return;const n=r.entries.find(T=>T.duration===r.value&&F0[T.name]!==void 0),i=io();if(!n||!i)return;const a=F0[n.name],s=i.getOptions(),o=er(rn+n.startTime),c=er(r.value),u=n.interactionId!==void 0?e[n.interactionId]:void 0;if(u===void 0)return;const{routeName:l,parentContext:d,activeTransaction:f,user:p,replayId:g}=u,y=p!==void 0?p.email||p.id||p.ip_address:void 0,_=f!==void 0?f.getProfileId():void 0,R=new ef({startTimestamp:o,endTimestamp:o+c,op:`ui.interaction.${a}`,name:xs(n.target),attributes:{release:s.release,environment:s.environment,transaction:l,...y!==void 0&&y!==""?{user:y}:{},..._!==void 0?{profile_id:_}:{},...g!==void 0?{replay_id:g}:{}},exclusiveTime:r.value,measurements:{inp:{value:r.value,unit:"millisecond"}}}),h=pF(d,s,t);if(h&&Math.random()<h){const T=R?SU([R],i.getDsn()):void 0,I=i&&i.getTransport();I&&T&&I.send(T).then(null,m=>{Dt&&Re.error("Error while sending interaction:",m)});return}})}function aF(e){const t=TE();if(!t||!Je.performance.getEntries||!rn)return;Dt&&Re.log("[Tracing] Adding & adjusting spans using Performance API");const r=er(rn),n=t.getEntries(),{op:i,start_timestamp:a}=Br(e);if(n.slice(U0).forEach(s=>{const o=er(s.startTime),c=er(s.duration);if(!(e.op==="navigation"&&a&&r+o<a))switch(s.entryType){case"navigation":{oF(e,s,r);break}case"mark":case"paint":case"measure":{sF(e,s,o,c,r);const u=SE(),l=s.startTime<u.firstHiddenTime;s.name==="first-paint"&&l&&(Dt&&Re.log("[Measurements] Adding FP"),Yt.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&l&&(Dt&&Re.log("[Measurements] Adding FCP"),Yt.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{uF(e,s,s.name,o,c,r);break}}}),U0=Math.max(n.length-1,0),lF(e),i==="pageload"){fF(Yt),["fcp","fp","lcp"].forEach(o=>{if(!Yt[o]||!a||r>=a)return;const c=Yt[o].value,u=r+er(c),l=Math.abs((u-a)*1e3),d=l-c;Dt&&Re.log(`[Measurements] Normalized ${o} from ${c} to ${l} (${d})`),Yt[o].value=l});const s=Yt["mark.fid"];s&&Yt.fid&&(Ws(e,{description:"first input delay",endTimestamp:s.value+er(Yt.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete Yt["mark.fid"]),"fcp"in Yt||delete Yt.cls,Object.keys(Yt).forEach(o=>{bU(o,Yt[o].value,Yt[o].unit)}),dF(e)}Dn=void 0,mc=void 0,Yt={}}function sF(e,t,r,n,i){const a=i+r,s=a+n;return Ws(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function oF(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{nl(e,t,n,r)}),nl(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),nl(e,t,"fetch",r,"cache","domainLookupStart"),nl(e,t,"domainLookup",r,"DNS"),cF(e,t,r)}function nl(e,t,r,n,i,a){const s=a?t[a]:t[`${r}End`],o=t[`${r}Start`];!o||!s||Ws(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||r,startTimestamp:n+er(o),endTimestamp:n+er(s)})}function cF(e,t,r){t.responseEnd&&(Ws(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+er(t.requestStart),endTimestamp:r+er(t.responseEnd)}),Ws(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+er(t.responseStart),endTimestamp:r+er(t.responseEnd)}))}function uF(e,t,r,n,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=$a(r),o={};Zf(o,t,"transferSize","http.response_transfer_size"),Zf(o,t,"encodedBodySize","http.response_content_length"),Zf(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=r.includes(Je.location.origin);const c=a+n,u=c+i;Ws(e,{description:r.replace(Je.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:o})}function lF(e){const t=Je.navigator;if(!t)return;const r=t.connection;r&&(r.effectiveType&&e.setTag("effectiveConnectionType",r.effectiveType),r.type&&e.setTag("connectionType",r.type),Qf(r.rtt)&&(Yt["connection.rtt"]={value:r.rtt,unit:"millisecond"})),Qf(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Qf(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function dF(e){Dn&&(Dt&&Re.log("[Measurements] Adding LCP Data"),Dn.element&&e.setTag("lcp.element",xs(Dn.element)),Dn.id&&e.setTag("lcp.id",Dn.id),Dn.url&&e.setTag("lcp.url",Dn.url.trim().slice(0,200)),e.setTag("lcp.size",Dn.size)),mc&&mc.sources&&(Dt&&Re.log("[Measurements] Adding CLS Data"),mc.sources.forEach((t,r)=>e.setTag(`cls.source.${r+1}`,xs(t.node))))}function Zf(e,t,r,n){const i=t[r];i!=null&&i<KU&&(e[n]=i)}function fF(e){const t=tf();if(!t)return;const{responseStart:r,requestStart:n}=t;n<=r&&(Dt&&Re.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}function pF(e,t,r){if(!oo(t))return!1;let n;return e!==void 0&&typeof t.tracesSampler=="function"?n=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:Je.location}):e!==void 0&&e.sampled!==void 0?n=e.sampled:typeof t.tracesSampleRate<"u"?n=t.tracesSampleRate:n=1,nj(n)?n===!0?r:n===!1?0:n*r:(Dt&&Re.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function hF(e,t,r,n,i="auto.http.browser"){if(!oo()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const p=e.fetchData.__span;if(!p)return;const g=n[p];g&&(gF(g,e),delete n[p]);return}const s=ao(),o=io(),{method:c,url:u}=e.fetchData,l=yF(u),d=l?$a(l).host:void 0,f=a?JM({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":l,"server.address":d,[bs]:i},op:"http.client"}):void 0;if(f&&(e.fetchData.__span=f.spanContext().spanId,n[f.spanContext().spanId]=f),r(e.fetchData.url)&&o){const p=e.args[0];e.args[1]=e.args[1]||{};const g=e.args[1];g.headers=mF(p,o,s,g,f)}return f}function mF(e,t,r,n,i){const a=i||r.getSpan(),s=vE(),{traceId:o,spanId:c,sampled:u,dsc:l}={...s.getPropagationContext(),...r.getPropagationContext()},d=a?Qd(a):pE(o,c,u),f=SM(l||(a?zs(a):_E(o,t,r))),p=n.headers||(typeof Request<"u"&&di(e,Request)?e.headers:void 0);if(p)if(typeof Headers<"u"&&di(p,Headers)){const g=new Headers(p);return g.append("sentry-trace",d),f&&g.append(hv,f),g}else if(Array.isArray(p)){const g=[...p,["sentry-trace",d]];return f&&g.push([hv,f]),g}else{const g="baggage"in p?p.baggage:void 0,y=[];return Array.isArray(g)?y.push(...g):g&&y.push(g),f&&y.push(f),{...p,"sentry-trace":d,baggage:y.length>0?y.join(","):void 0}}else return{"sentry-trace":d,baggage:f}}function yF(e){try{return new URL(e).href}catch{return}}function gF(e,t){if(t.response){EE(e,t.response.status);const r=t.response&&t.response.headers&&t.response.headers.get("content-length");if(r){const n=parseInt(r);n>0&&e.setAttribute("http.response_content_length",n)}}else t.error&&e.setStatus("internal_error");e.end()}const Tv=["localhost",/^\/(?!\/)/],wv={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Tv,tracePropagationTargets:Tv};function _F(e){const{traceFetch:t,traceXHR:r,tracePropagationTargets:n,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:wv.traceFetch,traceXHR:wv.traceXHR,...e},o=typeof a=="function"?a:l=>!0,c=l=>SF(l,n||i),u={};t&&mM(l=>{const d=hF(l,o,c,u);if(d){const f=pj(l.fetchData.url),p=f?$a(f).host:void 0;d.setAttributes({"http.url":f,"server.address":p})}s&&d&&H0(d)}),r&&_M(l=>{const d=TF(l,o,c,u);s&&d&&H0(d)})}function vF(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function H0(e){const{url:t}=Br(e).data||{};if(!t||typeof t!="string")return;const r=Ic("resource",({entries:n})=>{n.forEach(i=>{vF(i)&&i.name.endsWith(t)&&(bF(i).forEach(s=>e.setAttribute(...s)),setTimeout(r))})})}function EF(e){let t="unknown",r="unknown",n="";for(const i of e){if(i==="/"){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t=n==="h"?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}}function Cn(e=0){return((rn||performance.timeOrigin)+e)/1e3}function bF(e){const{name:t,version:r}=EF(e.nextHopProtocol),n=[];return n.push(["network.protocol.version",r],["network.protocol.name",t]),rn?[...n,["http.request.redirect_start",Cn(e.redirectStart)],["http.request.fetch_start",Cn(e.fetchStart)],["http.request.domain_lookup_start",Cn(e.domainLookupStart)],["http.request.domain_lookup_end",Cn(e.domainLookupEnd)],["http.request.connect_start",Cn(e.connectStart)],["http.request.secure_connection_start",Cn(e.secureConnectionStart)],["http.request.connection_end",Cn(e.connectEnd)],["http.request.request_start",Cn(e.requestStart)],["http.request.response_start",Cn(e.responseStart)],["http.request.response_end",Cn(e.responseEnd)]]:n}function SF(e,t){return Uc(e,t||Tv)}function TF(e,t,r,n){const i=e.xhr,a=i&&i[vs];if(!oo()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const p=i.__sentry_xhr_span_id__;if(!p)return;const g=n[p];g&&a.status_code!==void 0&&(EE(g,a.status_code),g.end(),delete n[p]);return}const o=ao(),c=vE(),u=pj(a.url),l=u?$a(u).host:void 0,d=s?JM({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":u,url:a.url,"server.address":l,[bs]:"auto.http.browser"},op:"http.client"}):void 0;d&&(i.__sentry_xhr_span_id__=d.spanContext().spanId,n[i.__sentry_xhr_span_id__]=d);const f=io();if(i.setRequestHeader&&r(a.url)&&f){const{traceId:p,spanId:g,sampled:y,dsc:_}={...c.getPropagationContext(),...o.getPropagationContext()},R=d?Qd(d):pE(p,g,y),h=SM(_||(d?zs(d):_E(p,f,o)));wF(i,R,h)}return d}function wF(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader(hv,r)}catch{}}function pj(e){try{return new URL(e,Je.location.origin).href}catch{return}}function IF(e,t=!0,r=!0){if(!Je||!Je.location){Dt&&Re.warn("Could not initialize routing instrumentation due to invalid location");return}let n=Je.location.href,i;t&&(i=e({name:Je.location.pathname,startTimestamp:rn?rn/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&dE(({to:a,from:s})=>{if(s===void 0&&n&&n.indexOf(a)!==-1){n=void 0;return}s!==a&&(n=void 0,i&&(Dt&&Re.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:Je.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const RF="BrowserTracing",AF={...Td,markBackgroundTransactions:!0,routingInstrumentation:IF,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...wv},V0=10;class OF{constructor(t){this.name=RF,this._hasSetTracePropagationTargets=!1,EU(),Dt&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...AF,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=XU(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&ZU(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&JU(),this.options._experiments.enableInteractions&&QU(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,r){this._getCurrentHub=r;const i=r().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:c,markBackgroundTransactions:u,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:p,_experiments:g}=this.options,y=a&&a.tracePropagationTargets,_=y||this.options.tracePropagationTargets;Dt&&this._hasSetTracePropagationTargets&&y&&Re.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(R=>{const h=this._createRouteTransaction(R);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(h,R,r),h},c,o),u&&wU(),g.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),_F({traceFetch:l,traceXHR:d,tracePropagationTargets:_,shouldCreateSpanForRequest:f,enableHTTPTimings:p})}_createRouteTransaction(t){if(!this._getCurrentHub){Dt&&Re.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const r=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let c;if(o){const p=o?x0("sentry-trace"):"",g=o?x0("baggage"):void 0,{traceId:y,dsc:_,parentSpanId:R,sampled:h}=bq(p,g);c={traceId:y,parentSpanId:R,parentSampled:h,...t,metadata:{...t.metadata,dynamicSamplingContext:_},trimEnd:!0}}else c={trimEnd:!0,...t};const u=typeof n=="function"?n(c):c,l=u===void 0?{...c,sampled:!1}:u;l.metadata=l.name!==c.name?{...l.metadata,source:"custom"}:l.metadata,this._latestRoute.name=l.name,this._latestRoute.context=l,l.sampled===!1&&Dt&&Re.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),Dt&&Re.log(`[Tracing] Starting ${l.op} transaction on scope`);const{location:d}=Je,f=$0(r,l,i,a,!0,{location:d},s,o);return o&&Je.document&&(Je.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Je.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(Je.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(p=>{this._collectWebVitals(),aF(p)}),f}_registerInteractionListener(){let t;const r=()=>{const{idleTimeout:n,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=Ha();if(o&&o.op&&["navigation","pageload"].includes(o.op)){Dt&&Re.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){Dt&&Re.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){Dt&&Re.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const c=this._getCurrentHub(),{location:u}=Je,l={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[Rs]:this._latestRoute.context?NF(this._latestRoute.context):"url"}};t=$0(c,l,n,i,!0,{location:u},a)};["click"].forEach(n=>{Je.document&&addEventListener(n,r,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:r})=>{const n=io(),i=n!==void 0&&n.getIntegrationByName!==void 0?n.getIntegrationByName("Replay"):void 0,a=i!==void 0?i.getReplayId():void 0,s=Ha(),o=ao(),c=o!==void 0?o.getUser():void 0;r.forEach(u=>{if(PF(u)){const l=u.interactionId;if(l===void 0)return;const d=this._interactionIdToRouteNameMapping[l],f=u.duration,p=u.startTime,g=Object.keys(this._interactionIdToRouteNameMapping),y=g.length>0?g.reduce((_,R)=>this._interactionIdToRouteNameMapping[_].duration<this._interactionIdToRouteNameMapping[R].duration?_:R):void 0;if(u.entryType==="first-input"&&g.map(R=>this._interactionIdToRouteNameMapping[R]).some(R=>R.duration===f&&R.startTime===p)||!l)return;if(d)d.duration=Math.max(d.duration,f);else if(g.length<V0||y===void 0||f>this._interactionIdToRouteNameMapping[y].duration){const _=this._latestRoute.name,R=this._latestRoute.context;_&&R&&(y&&Object.keys(this._interactionIdToRouteNameMapping).length>=V0&&delete this._interactionIdToRouteNameMapping[y],this._interactionIdToRouteNameMapping[l]={routeName:_,duration:f,parentContext:R,user:c,activeTransaction:s,replayId:a,startTime:p})}}})};Ic("event",t),Ic("first-input",t)}}function x0(e){const t=Nk(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function NF(e){const t=e.attributes&&e.attributes[Rs],r=e.data&&e.data[Rs],n=e.metadata&&e.metadata.source;return t||r||n}function PF(e){return"duration"in e}const pt=ct;let Iv=0;function hj(){return Iv>0}function CF(){Iv++,setTimeout(()=>{Iv--})}function Ys(e,t={},r){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(uE(e))return e}catch{return e}const n=function(){const i=Array.prototype.slice.call(arguments);try{const a=i.map(s=>Ys(s,t));return e.apply(this,a)}catch(a){throw CF(),AM(s=>{s.addEventProcessor(o=>(t.mechanism&&(ov(o,void 0),Sc(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),mE(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}catch{}uM(n,e),Ba(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return e.name}})}catch{}return n}const tn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function mj(e,t){const r=wE(e,t),n={type:t&&t.name,value:LF(t)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function MF(e,t,r,n){const i=Pr(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:zd(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:qF(t,{isUnhandledRejection:n})}]},extra:{__serialized__:vM(t,a)}};if(r){const o=wE(e,r);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function ep(e,t){return{exception:{values:[mj(e,t)]}}}function wE(e,t){const r=t.stacktrace||t.stack||"",n=DF(t);try{return e(r,n)}catch{}return[]}const jF=/Minified React error #\d+;/i;function DF(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(jF.test(e.message))return 1}return 0}function LF(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function $F(e,t,r,n){const i=r&&r.syntheticException||void 0,a=IE(e,t,i,n);return Sc(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),Gs(a)}function kF(e,t,r="info",n,i){const a=n&&n.syntheticException||void 0,s=Rv(e,t,a,i);return s.level=r,n&&n.event_id&&(s.event_id=n.event_id),Gs(s)}function IE(e,t,r,n,i){let a;if(aE(t)&&t.error)return ep(e,t.error);if(n0(t)||vk(t)){const s=t;if("stack"in t)a=ep(e,t);else{const o=s.name||(n0(s)?"DOMError":"DOMException"),c=s.message?`${o}: ${s.message}`:o;a=Rv(e,c,r,n),ov(a,c)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return iE(t)?ep(e,t):qa(t)||zd(t)?(a=MF(e,t,r,i),Sc(a,{synthetic:!0}),a):(a=Rv(e,t,r,n),ov(a,`${t}`),Sc(a,{synthetic:!0}),a)}function Rv(e,t,r,n){const i={};if(n&&r){const a=wE(e,r);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(sE(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function qF(e,{isUnhandledRejection:t}){const r=kk(e),n=t?"promise rejection":"exception";return aE(e)?`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``:zd(e)?`Event \`${BF(e)}\` (type=${e.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function BF(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function UF(e,{metadata:t,tunnel:r,dsn:n}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:xa(n)}},a=FF(e);return Ka(i,[a])}function FF(e){return[{type:"user_report"},e]}class HF extends wB{constructor(t){const r=pt.SENTRY_SDK_SOURCE||aq();FM(t,"browser",["browser"],r),super(t),t.sendClientReports&&pt.document&&pt.document.addEventListener("visibilitychange",()=>{pt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,r){return $F(this._options.stackParser,t,r,this._options.attachStacktrace)}eventFromMessage(t,r="info",n){return kF(this._options.stackParser,t,r,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){tn&&Re.warn("SDK not enabled, will not capture user feedback.");return}const r=UF(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(r)}_prepareEvent(t,r,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,r,n)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){tn&&Re.log("No outcomes to send");return}if(!this._dsn){tn&&Re.log("No dsn provided, will not send outcomes");return}tn&&Re.log("Sending outcomes:",t);const r=Oq(t,this._options.tunnel&&xa(this._dsn));this._sendEnvelope(r)}}let Vo;function VF(){if(Vo)return Vo;if(dv(pt.fetch))return Vo=pt.fetch.bind(pt);const e=pt.document;let t=pt.fetch;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);const n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(r){tn&&Re.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return Vo=t.bind(pt)}function xF(){Vo=void 0}function GF(e,t=VF()){let r=0,n=0;function i(a){const s=a.body.length;r+=s,n++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{return t(e.url,o).then(c=>(r-=s,n--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return xF(),r-=s,n--,fE(c)}}return UM(e,i)}const zF=4;function WF(e){function t(r){return new qr((n,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===zF&&n({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(r.body)})}return UM(e,t)}const rf="?",YF=30,KF=40,XF=50;function RE(e,t,r,n){const i={filename:e,function:t,in_app:!0};return r!==void 0&&(i.lineno=r),n!==void 0&&(i.colno=n),i}const JF=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,QF=/\((\S*)(?::(\d+))(?::(\d+))\)/,ZF=e=>{const t=JF.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=QF.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[n,i]=yj(t[1]||rf,t[2]);return RE(i,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},e4=[YF,ZF],t4=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,r4=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,n4=e=>{const t=t4.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=r4.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let n=t[3],i=t[1]||rf;return[i,n]=yj(i,n),RE(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},i4=[XF,n4],a4=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,s4=e=>{const t=a4.exec(e);return t?RE(t[2],t[1]||rf,+t[3],t[4]?+t[4]:void 0):void 0},o4=[KF,s4],c4=[e4,i4,o4],u4=fM(...c4),yj=(e,t)=>{const r=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return r||n?[e.indexOf("@")!==-1?e.split("@")[0]:rf,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},il=1024,gj="Breadcrumbs",l4=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:gj,setupOnce(){},setup(r){t.console&&Fk(p4(r)),t.dom&&xk(f4(r,t.dom)),t.xhr&&_M(h4(r)),t.fetch&&mM(m4(r)),t.history&&dE(y4(r)),t.sentry&&r.on&&r.on("beforeSendEvent",d4(r))}}}),_j=l4;$i(gj,_j);function d4(e){return function(r){Pr()===e&&Fa({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:wi(r)},{event:r})}}function f4(e,t){return function(n){if(Pr()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>il&&(tn&&Re.warn(`\`dom.maxStringLength\` cannot exceed ${il}, but a value of ${o} was configured. Sentry will use ${il} instead.`),o=il),typeof s=="string"&&(s=[s]);try{const u=n.event,l=g4(u)?u.target:u;i=xs(l,{keyAttrs:s,maxStringLength:o}),a=sM(l)}catch{i="<unknown>"}if(i.length===0)return;const c={category:`ui.${n.name}`,message:i};a&&(c.data={"ui.component_name":a}),Fa(c,{event:n.event,name:n.name,global:n.global})}}function p4(e){return function(r){if(Pr()!==e)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:pq(r.level),message:i0(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${i0(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Fa(n,{input:r.args,level:r.level})}}function h4(e){return function(r){if(Pr()!==e)return;const{startTimestamp:n,endTimestamp:i}=r,a=r.xhr[vs];if(!n||!i||!a)return;const{method:s,url:o,status_code:c,body:u}=a,l={method:s,url:o,status_code:c},d={xhr:r.xhr,input:u,startTimestamp:n,endTimestamp:i};Fa({category:"xhr",data:l,type:"http"},d)}}function m4(e){return function(r){if(Pr()!==e)return;const{startTimestamp:n,endTimestamp:i}=r;if(i&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a=r.fetchData,s={data:r.error,input:r.args,startTimestamp:n,endTimestamp:i};Fa({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=r.response,s={...r.fetchData,status_code:a&&a.status},o={input:r.args,response:a,startTimestamp:n,endTimestamp:i};Fa({category:"fetch",data:s,type:"http"},o)}}}function y4(e){return function(r){if(Pr()!==e)return;let n=r.from,i=r.to;const a=$a(pt.location.href);let s=n?$a(n):void 0;const o=$a(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(n=s.relative),Fa({category:"navigation",data:{from:n,to:i}})}}function g4(e){return!!e&&!!e.target}const vj="Dedupe",_4=(()=>{let e;return{name:vj,setupOnce(){},processEvent(t){if(t.type)return t;try{if(v4(t,e))return tn&&Re.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),Ej=_4;$i(vj,Ej);function v4(e,t){return t?!!(E4(e,t)||b4(e,t)):!1}function E4(e,t){const r=e.message,n=t.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!Sj(e,t)||!bj(e,t))}function b4(e,t){const r=G0(t),n=G0(e);return!(!r||!n||r.type!==n.type||r.value!==n.value||!Sj(e,t)||!bj(e,t))}function bj(e,t){let r=z0(e),n=z0(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let i=0;i<n.length;i++){const a=n[i],s=r[i];if(a.filename!==s.filename||a.lineno!==s.lineno||a.colno!==s.colno||a.function!==s.function)return!1}return!0}function Sj(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return r.join("")===n.join("")}catch{return!1}}function G0(e){return e.exception&&e.exception.values&&e.exception.values[0]}function z0(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const Tj="GlobalHandlers",S4=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Tj,setupOnce(){Error.stackTraceLimit=50},setup(r){t.onerror&&(T4(r),W0("onerror")),t.onunhandledrejection&&(w4(r),W0("onunhandledrejection"))}}}),wj=S4;$i(Tj,wj);function T4(e){yM(t=>{const{stackParser:r,attachStacktrace:n}=Rj();if(Pr()!==e||hj())return;const{msg:i,url:a,line:s,column:o,error:c}=t,u=c===void 0&&Hn(i)?A4(i,a,s,o):Ij(IE(r,c||i,void 0,n,!1),a,s,o);u.level="error",RM(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function w4(e){gM(t=>{const{stackParser:r,attachStacktrace:n}=Rj();if(Pr()!==e||hj())return;const i=I4(t),a=oE(i)?R4(i):IE(r,i,void 0,n,!0);a.level="error",RM(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function I4(e){if(oE(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function R4(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function A4(e,t,r,n){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=aE(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),Ij({exception:{values:[{type:s,value:a}]}},t,r,n)}function Ij(e,t,r,n){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},c=o.frames=o.frames||[],u=isNaN(parseInt(n,10))?void 0:n,l=isNaN(parseInt(r,10))?void 0:r,d=Hn(t)&&t.length>0?t:Ok();return c.length===0&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),e}function W0(e){tn&&Re.log(`Global Handler attached: ${e}`)}function Rj(){const e=Pr();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Aj="HttpContext",O4=(()=>({name:Aj,setupOnce(){},preprocessEvent(e){if(!pt.navigator&&!pt.location&&!pt.document)return;const t=e.request&&e.request.url||pt.location&&pt.location.href,{referrer:r}=pt.document||{},{userAgent:n}=pt.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...e.request,...t&&{url:t},headers:i};e.request=a}})),Oj=O4;$i(Aj,Oj);const N4="cause",P4=5,Nj="LinkedErrors",C4=((e={})=>{const t=e.limit||P4,r=e.key||N4;return{name:Nj,setupOnce(){},preprocessEvent(n,i,a){const s=a.getOptions();wk(mj,s.stackParser,s.maxValueLength,r,t,n,i)}}}),Pj=C4;$i(Nj,Pj);const M4=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Cj="TryCatch",j4=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Cj,setupOnce(){t.setTimeout&&hr(pt,"setTimeout",Y0),t.setInterval&&hr(pt,"setInterval",Y0),t.requestAnimationFrame&&hr(pt,"requestAnimationFrame",D4),t.XMLHttpRequest&&"XMLHttpRequest"in pt&&hr(XMLHttpRequest.prototype,"send",L4);const r=t.eventTarget;r&&(Array.isArray(r)?r:M4).forEach($4)}}}),Mj=j4;$i(Cj,Mj);function Y0(e){return function(...t){const r=t[0];return t[0]=Ys(r,{mechanism:{data:{function:fi(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function D4(e){return function(t){return e.apply(this,[Ys(t,{mechanism:{data:{function:"requestAnimationFrame",handler:fi(e)},handled:!1,type:"instrument"}})])}}function L4(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in r&&typeof r[i]=="function"&&hr(r,i,function(a){const s={mechanism:{data:{function:i,handler:fi(a)},handled:!1,type:"instrument"}},o=uE(a);return o&&(s.mechanism.data.handler=fi(o)),Ys(a,s)})}),e.apply(this,t)}}function $4(e){const t=pt,r=t[e]&&t[e].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(hr(r,"addEventListener",function(n){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=Ys(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:fi(a),target:e},handled:!1,type:"instrument"}}))}catch{}return n.apply(this,[i,Ys(a,{mechanism:{data:{function:"addEventListener",handler:fi(a),target:e},handled:!1,type:"instrument"}}),s])}}),hr(r,"removeEventListener",function(n){return function(i,a,s){const o=a;try{const c=o&&o.__sentry_wrapped__;c&&n.call(this,i,c,s)}catch{}return n.call(this,i,o,s)}}))}const k4=[VM(),GM(),Mj(),_j(),wj(),Pj(),Ej(),Oj()];function q4(e){return[...k4]}function B4(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=q4()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),pt.SENTRY_RELEASE&&pt.SENTRY_RELEASE.id&&(e.release=pt.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:Bk(e.stackParser||u4),integrations:_B(e),transport:e.transport||(hM()?GF:WF)};AB(HF,t),e.autoSessionTracking&&U4()}const K0=(e={},t=vn())=>{if(!pt.document){tn&&Re.error("Global document not defined in showReportDialog call");return}const{client:r,scope:n}=t.getStackTop(),i=e.dsn||r&&r.getDsn();if(!i){tn&&Re.error("DSN not configured for showReportDialog call");return}n&&(e.user={...n.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const a=pt.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=yB(i,e),e.onLoad&&(a.onload=e.onLoad);const{onClose:s}=e;if(s){const c=u=>{if(u.data==="__sentry_reportdialog_closed__")try{s()}finally{pt.removeEventListener("message",c)}};pt.addEventListener("message",c)}const o=pt.document.head||pt.document.body;o?o.appendChild(a):tn&&Re.error("Not injecting report dialog. No injection point found in HTML")};function U4(){if(typeof pt.document>"u"){tn&&Re.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}E0({ignoreDuration:!0}),b0(),dE(({from:e,to:t})=>{e!==void 0&&e!==t&&(E0({ignoreDuration:!0}),b0())})}function F4(e){const t={...e};FM(t,"react"),B4(t)}var tp={exports:{}},Et={};/** @license React v16.13.1
|
|
28
|
+
* react-is.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var X0;function H4(){if(X0)return Et;X0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function T(m){if(typeof m=="object"&&m!==null){var E=m.$$typeof;switch(E){case t:switch(m=m.type,m){case c:case u:case n:case a:case i:case d:return m;default:switch(m=m&&m.$$typeof,m){case o:case l:case g:case p:case s:return m;default:return E}}case r:return E}}}function I(m){return T(m)===u}return Et.AsyncMode=c,Et.ConcurrentMode=u,Et.ContextConsumer=o,Et.ContextProvider=s,Et.Element=t,Et.ForwardRef=l,Et.Fragment=n,Et.Lazy=g,Et.Memo=p,Et.Portal=r,Et.Profiler=a,Et.StrictMode=i,Et.Suspense=d,Et.isAsyncMode=function(m){return I(m)||T(m)===c},Et.isConcurrentMode=I,Et.isContextConsumer=function(m){return T(m)===o},Et.isContextProvider=function(m){return T(m)===s},Et.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Et.isForwardRef=function(m){return T(m)===l},Et.isFragment=function(m){return T(m)===n},Et.isLazy=function(m){return T(m)===g},Et.isMemo=function(m){return T(m)===p},Et.isPortal=function(m){return T(m)===r},Et.isProfiler=function(m){return T(m)===a},Et.isStrictMode=function(m){return T(m)===i},Et.isSuspense=function(m){return T(m)===d},Et.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===u||m===a||m===i||m===d||m===f||typeof m=="object"&&m!==null&&(m.$$typeof===g||m.$$typeof===p||m.$$typeof===s||m.$$typeof===o||m.$$typeof===l||m.$$typeof===_||m.$$typeof===R||m.$$typeof===h||m.$$typeof===y)},Et.typeOf=T,Et}var J0;function V4(){return J0||(J0=1,tp.exports=H4()),tp.exports}var rp,Q0;function x4(){if(Q0)return rp;Q0=1;var e=V4(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=n,a[e.Memo]=i;function s(g){return e.isMemo(g)?i:a[g.$$typeof]||t}var o=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(g,y,_){if(typeof y!="string"){if(f){var R=d(y);R&&R!==f&&p(g,R,_)}var h=c(y);u&&(h=h.concat(u(y)));for(var T=s(g),I=s(y),m=0;m<h.length;++m){var E=h[m];if(!r[E]&&!(_&&_[E])&&!(I&&I[E])&&!(T&&T[E])){var b=l(y,E);try{o(g,E,b)}catch{}}}}return g}return rp=p,rp}x4();const G4=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function z4(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const Z0={componentStack:null,error:null,eventId:null};function W4(e,t){const r=new WeakMap;function n(i,a){if(!r.has(i)){if(i.cause)return r.set(i,!0),n(i.cause,a);i.cause=a}}n(e,t)}class qd extends ve.Component{constructor(t){super(t),qd.prototype.__init.call(this),this.state=Z0,this._openFallbackReportDialog=!0;const r=Pr();r&&r.on&&t.showDialog&&(this._openFallbackReportDialog=!1,r.on("afterSendEvent",n=>{!n.type&&n.event_id===this._lastEventId&&K0({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:r}){const{beforeCapture:n,onError:i,showDialog:a,dialogOptions:s}=this.props;AM(o=>{if(z4(ve.version)&&iE(t)){const u=new Error(t.message);u.name=`React ErrorBoundary ${t.name}`,u.stack=r,W4(t,u)}n&&n(o,t,r);const c=mE(t,{captureContext:{contexts:{react:{componentStack:r}}},mechanism:{handled:!!this.props.fallback}});i&&i(t,r,c),a&&(this._lastEventId=c,this._openFallbackReportDialog&&K0({...s,eventId:c})),this.setState({error:t,componentStack:r,eventId:c})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:r,eventId:n}=this.state,{onUnmount:i}=this.props;i&&i(t,r,n)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:r,componentStack:n,eventId:i}=this.state;t&&t(r,n,i),this.setState(Z0)}}render(){const{fallback:t,children:r}=this.props,n=this.state;if(n.error){let i;return typeof t=="function"?i=t({error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):i=t,ve.isValidElement(i)?i:(t&&G4&&Re.warn("fallback did not produce a valid ReactElement"),null)}return typeof r=="function"?r():r}}const Y4=ve.lazy(()=>ar(()=>import("./index-DxBzK74p.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(e=>({default:e.Navbar})));function K4(e){return P.jsx(ve.Suspense,{fallback:P.jsx("div",{className:"topnav-skeleton","aria-hidden":!0}),children:P.jsx(Y4,{...e})})}const X4={},eS=e=>{let t;const r=new Set,n=(l,d)=>{const f=typeof l=="function"?l(t):l;if(!Object.is(f,t)){const p=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),r.forEach(g=>g(t,p))}},i=()=>t,c={setState:n,getState:i,getInitialState:()=>u,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(X4?"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()}},u=t=e(n,i,c);return c},J4=e=>e?eS(e):eS;var np={exports:{}},ip={},ap={exports:{}},sp={};/**
|
|
35
|
+
* @license React
|
|
36
|
+
* use-sync-external-store-shim.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var tS;function Q4(){if(tS)return sp;tS=1;var e=UC();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function o(d,f){var p=f(),g=n({inst:{value:p,getSnapshot:f}}),y=g[0].inst,_=g[1];return a(function(){y.value=p,y.getSnapshot=f,c(y)&&_({inst:y})},[d,p,f]),i(function(){return c(y)&&_({inst:y}),d(function(){c(y)&&_({inst:y})})},[d]),s(p),p}function c(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!r(d,p)}catch{return!0}}function u(d,f){return f()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:o;return sp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,sp}var rS;function Z4(){return rS||(rS=1,ap.exports=Q4()),ap.exports}/**
|
|
43
|
+
* @license React
|
|
44
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var nS;function e3(){if(nS)return ip;nS=1;var e=UC(),t=Z4();function r(u,l){return u===l&&(u!==0||1/u===1/l)||u!==u&&l!==l}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,o=e.useMemo,c=e.useDebugValue;return ip.useSyncExternalStoreWithSelector=function(u,l,d,f,p){var g=a(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=o(function(){function R(E){if(!h){if(h=!0,T=E,E=f(E),p!==void 0&&y.hasValue){var b=y.value;if(p(b,E))return I=b}return I=E}if(b=I,n(T,E))return b;var N=f(E);return p!==void 0&&p(b,N)?(T=E,b):(T=E,I=N)}var h=!1,T,I,m=d===void 0?null:d;return[function(){return R(l())},m===null?void 0:function(){return R(m())}]},[l,d,f,p]);var _=i(u,g[0],g[1]);return s(function(){y.hasValue=!0,y.value=_},[_]),c(_),_},ip}var iS;function t3(){return iS||(iS=1,np.exports=e3()),np.exports}var r3=t3();const n3=Gd(r3),jj={},{useDebugValue:i3}=FC,{useSyncExternalStoreWithSelector:a3}=n3;let aS=!1;const s3=e=>e;function o3(e,t=s3,r){(jj?"production":void 0)!=="production"&&r&&!aS&&(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"),aS=!0);const n=a3(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return i3(n),n}const sS=e=>{(jj?"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"?J4(e):e,r=(n,i)=>o3(t,n,i);return Object.assign(r,t),r},Xa=e=>e?sS(e):sS;var sn={},Bi={},Ui={},op={},on={},al={exports:{}},cp={},Qn={},Fi={},up={},lp={},dp={},oS;function Rc(){return oS||(oS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(h){if(super(),!e.IDENTIFIER.test(h))throw new Error("CodeGen: name must be a valid identifier");this.str=h}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(h){super(),this._items=typeof h=="string"?[h]:h}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const h=this._items[0];return h===""||h==='""'}get str(){var h;return(h=this._str)!==null&&h!==void 0?h:this._str=this._items.reduce((T,I)=>`${T}${I}`,"")}get names(){var h;return(h=this._names)!==null&&h!==void 0?h:this._names=this._items.reduce((T,I)=>(I instanceof r&&(T[I.str]=(T[I.str]||0)+1),T),{})}}e._Code=n,e.nil=new n("");function i(R,...h){const T=[R[0]];let I=0;for(;I<h.length;)o(T,h[I]),T.push(R[++I]);return new n(T)}e._=i;const a=new n("+");function s(R,...h){const T=[p(R[0])];let I=0;for(;I<h.length;)T.push(a),o(T,h[I]),T.push(a,p(R[++I]));return c(T),new n(T)}e.str=s;function o(R,h){h instanceof n?R.push(...h._items):h instanceof r?R.push(h):R.push(d(h))}e.addCodeArg=o;function c(R){let h=1;for(;h<R.length-1;){if(R[h]===a){const T=u(R[h-1],R[h+1]);if(T!==void 0){R.splice(h-1,3,T);continue}R[h++]="+"}h++}}function u(R,h){if(h==='""')return R;if(R==='""')return h;if(typeof R=="string")return h instanceof r||R[R.length-1]!=='"'?void 0:typeof h!="string"?`${R.slice(0,-1)}${h}"`:h[0]==='"'?R.slice(0,-1)+h.slice(1):void 0;if(typeof h=="string"&&h[0]==='"'&&!(R instanceof r))return`"${R}${h.slice(1)}`}function l(R,h){return h.emptyStr()?R:R.emptyStr()?h:s`${R}${h}`}e.strConcat=l;function d(R){return typeof R=="number"||typeof R=="boolean"||R===null?R:p(Array.isArray(R)?R.join(","):R)}function f(R){return new n(p(R))}e.stringify=f;function p(R){return JSON.stringify(R).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=p;function g(R){return typeof R=="string"&&e.IDENTIFIER.test(R)?new n(`.${R}`):i`[${R}]`}e.getProperty=g;function y(R){if(typeof R=="string"&&e.IDENTIFIER.test(R))return new n(`${R}`);throw new Error(`CodeGen: invalid export name: ${R}, use explicit $id name mapping`)}e.getEsmExportName=y;function _(R){return new n(R.toString())}e.regexpCode=_})(dp)),dp}var fp={},cS;function uS(){return cS||(cS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Rc();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,this._parent=l}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const l=this._names[u]||this._nameGroup(u);return`${u}${l.index++}`}_nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||d===void 0)&&d.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=i;class a extends t.Name{constructor(u,l){super(l),this.prefix=u}setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(l)}[${d}]`}}e.ValueScopeName=a;const s=(0,t._)`\n`;class o extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s:t.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(u),{prefix:p}=f,g=(d=l.key)!==null&&d!==void 0?d:l.ref;let y=this._values[p];if(y){const h=y.get(g);if(h)return h}else y=this._values[p]=new Map;y.set(g,f);const _=this._scope[p]||(this._scope[p]=[]),R=_.length;return _[R]=l.ref,f.setValue(l,{property:p,itemIndex:R}),f}getValue(u,l){const d=this._values[u];if(d)return d.get(l)}scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${u}${d.scopePath}`})}scopeCode(u=this._values,l,d){return this._reduceValues(u,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},l,d)}_reduceValues(u,l,d={},f){let p=t.nil;for(const g in u){const y=u[g];if(!y)continue;const _=d[g]=d[g]||new Map;y.forEach(R=>{if(_.has(R))return;_.set(R,n.Started);let h=l(R);if(h){const T=this.opts.es5?e.varKinds.var:e.varKinds.const;p=(0,t._)`${p}${T} ${R} = ${h};${this.opts._n}`}else if(h=f==null?void 0:f(R))p=(0,t._)`${p}${h}${this.opts._n}`;else throw new r(R);_.set(R,n.Completed)})}return p}}e.ValueScope=o})(fp)),fp}var lS;function Ke(){return lS||(lS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Rc(),r=uS();var n=Rc();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=uS();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(C,k){return this}}class s extends a{constructor(C,k,ee){super(),this.varKind=C,this.name=k,this.rhs=ee}render({es5:C,_n:k}){const ee=C?r.varKinds.var:this.varKind,Ee=this.rhs===void 0?"":` = ${this.rhs}`;return`${ee} ${this.name}${Ee};`+k}optimizeNames(C,k){if(C[this.name.str])return this.rhs&&(this.rhs=F(this.rhs,C,k)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends a{constructor(C,k,ee){super(),this.lhs=C,this.rhs=k,this.sideEffects=ee}render({_n:C}){return`${this.lhs} = ${this.rhs};`+C}optimizeNames(C,k){if(!(this.lhs instanceof t.Name&&!C[this.lhs.str]&&!this.sideEffects))return this.rhs=F(this.rhs,C,k),this}get names(){const C=this.lhs instanceof t.Name?{}:{...this.lhs.names};return H(C,this.rhs)}}class c extends o{constructor(C,k,ee,Ee){super(C,ee,Ee),this.op=k}render({_n:C}){return`${this.lhs} ${this.op}= ${this.rhs};`+C}}class u extends a{constructor(C){super(),this.label=C,this.names={}}render({_n:C}){return`${this.label}:`+C}}class l extends a{constructor(C){super(),this.label=C,this.names={}}render({_n:C}){return`break${this.label?` ${this.label}`:""};`+C}}class d extends a{constructor(C){super(),this.error=C}render({_n:C}){return`throw ${this.error};`+C}get names(){return this.error.names}}class f extends a{constructor(C){super(),this.code=C}render({_n:C}){return`${this.code};`+C}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(C,k){return this.code=F(this.code,C,k),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(C=[]){super(),this.nodes=C}render(C){return this.nodes.reduce((k,ee)=>k+ee.render(C),"")}optimizeNodes(){const{nodes:C}=this;let k=C.length;for(;k--;){const ee=C[k].optimizeNodes();Array.isArray(ee)?C.splice(k,1,...ee):ee?C[k]=ee:C.splice(k,1)}return C.length>0?this:void 0}optimizeNames(C,k){const{nodes:ee}=this;let Ee=ee.length;for(;Ee--;){const me=ee[Ee];me.optimizeNames(C,k)||(te(C,me.names),ee.splice(Ee,1))}return ee.length>0?this:void 0}get names(){return this.nodes.reduce((C,k)=>V(C,k.names),{})}}class g extends p{render(C){return"{"+C._n+super.render(C)+"}"+C._n}}class y extends p{}class _ extends g{}_.kind="else";class R extends g{constructor(C,k){super(k),this.condition=C}render(C){let k=`if(${this.condition})`+super.render(C);return this.else&&(k+="else "+this.else.render(C)),k}optimizeNodes(){super.optimizeNodes();const C=this.condition;if(C===!0)return this.nodes;let k=this.else;if(k){const ee=k.optimizeNodes();k=this.else=Array.isArray(ee)?new _(ee):ee}if(k)return C===!1?k instanceof R?k:k.nodes:this.nodes.length?this:new R(ie(C),k instanceof R?[k]:k.nodes);if(!(C===!1||!this.nodes.length))return this}optimizeNames(C,k){var ee;if(this.else=(ee=this.else)===null||ee===void 0?void 0:ee.optimizeNames(C,k),!!(super.optimizeNames(C,k)||this.else))return this.condition=F(this.condition,C,k),this}get names(){const C=super.names;return H(C,this.condition),this.else&&V(C,this.else.names),C}}R.kind="if";class h extends g{}h.kind="for";class T extends h{constructor(C){super(),this.iteration=C}render(C){return`for(${this.iteration})`+super.render(C)}optimizeNames(C,k){if(super.optimizeNames(C,k))return this.iteration=F(this.iteration,C,k),this}get names(){return V(super.names,this.iteration.names)}}class I extends h{constructor(C,k,ee,Ee){super(),this.varKind=C,this.name=k,this.from=ee,this.to=Ee}render(C){const k=C.es5?r.varKinds.var:this.varKind,{name:ee,from:Ee,to:me}=this;return`for(${k} ${ee}=${Ee}; ${ee}<${me}; ${ee}++)`+super.render(C)}get names(){const C=H(super.names,this.from);return H(C,this.to)}}class m extends h{constructor(C,k,ee,Ee){super(),this.loop=C,this.varKind=k,this.name=ee,this.iterable=Ee}render(C){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(C)}optimizeNames(C,k){if(super.optimizeNames(C,k))return this.iterable=F(this.iterable,C,k),this}get names(){return V(super.names,this.iterable.names)}}class E extends g{constructor(C,k,ee){super(),this.name=C,this.args=k,this.async=ee}render(C){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(C)}}E.kind="func";class b extends p{render(C){return"return "+super.render(C)}}b.kind="return";class N extends g{render(C){let k="try"+super.render(C);return this.catch&&(k+=this.catch.render(C)),this.finally&&(k+=this.finally.render(C)),k}optimizeNodes(){var C,k;return super.optimizeNodes(),(C=this.catch)===null||C===void 0||C.optimizeNodes(),(k=this.finally)===null||k===void 0||k.optimizeNodes(),this}optimizeNames(C,k){var ee,Ee;return super.optimizeNames(C,k),(ee=this.catch)===null||ee===void 0||ee.optimizeNames(C,k),(Ee=this.finally)===null||Ee===void 0||Ee.optimizeNames(C,k),this}get names(){const C=super.names;return this.catch&&V(C,this.catch.names),this.finally&&V(C,this.finally.names),C}}class j extends g{constructor(C){super(),this.error=C}render(C){return`catch(${this.error})`+super.render(C)}}j.kind="catch";class $ extends g{render(C){return"finally"+super.render(C)}}$.kind="finally";class B{constructor(C,k={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...k,_n:k.lines?`
|
|
51
|
+
`:""},this._extScope=C,this._scope=new r.Scope({parent:C}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(C){return this._scope.name(C)}scopeName(C){return this._extScope.name(C)}scopeValue(C,k){const ee=this._extScope.value(C,k);return(this._values[ee.prefix]||(this._values[ee.prefix]=new Set)).add(ee),ee}getScopeValue(C,k){return this._extScope.getValue(C,k)}scopeRefs(C){return this._extScope.scopeRefs(C,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(C,k,ee,Ee){const me=this._scope.toName(k);return ee!==void 0&&Ee&&(this._constants[me.str]=ee),this._leafNode(new s(C,me,ee)),me}const(C,k,ee){return this._def(r.varKinds.const,C,k,ee)}let(C,k,ee){return this._def(r.varKinds.let,C,k,ee)}var(C,k,ee){return this._def(r.varKinds.var,C,k,ee)}assign(C,k,ee){return this._leafNode(new o(C,k,ee))}add(C,k){return this._leafNode(new c(C,e.operators.ADD,k))}code(C){return typeof C=="function"?C():C!==t.nil&&this._leafNode(new f(C)),this}object(...C){const k=["{"];for(const[ee,Ee]of C)k.length>1&&k.push(","),k.push(ee),(ee!==Ee||this.opts.es5)&&(k.push(":"),(0,t.addCodeArg)(k,Ee));return k.push("}"),new t._Code(k)}if(C,k,ee){if(this._blockNode(new R(C)),k&&ee)this.code(k).else().code(ee).endIf();else if(k)this.code(k).endIf();else if(ee)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(C){return this._elseNode(new R(C))}else(){return this._elseNode(new _)}endIf(){return this._endBlockNode(R,_)}_for(C,k){return this._blockNode(C),k&&this.code(k).endFor(),this}for(C,k){return this._for(new T(C),k)}forRange(C,k,ee,Ee,me=this.opts.es5?r.varKinds.var:r.varKinds.let){const Se=this._scope.toName(C);return this._for(new I(me,Se,k,ee),()=>Ee(Se))}forOf(C,k,ee,Ee=r.varKinds.const){const me=this._scope.toName(C);if(this.opts.es5){const Se=k instanceof t.Name?k:this.var("_arr",k);return this.forRange("_i",0,(0,t._)`${Se}.length`,we=>{this.var(me,(0,t._)`${Se}[${we}]`),ee(me)})}return this._for(new m("of",Ee,me,k),()=>ee(me))}forIn(C,k,ee,Ee=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(C,(0,t._)`Object.keys(${k})`,ee);const me=this._scope.toName(C);return this._for(new m("in",Ee,me,k),()=>ee(me))}endFor(){return this._endBlockNode(h)}label(C){return this._leafNode(new u(C))}break(C){return this._leafNode(new l(C))}return(C){const k=new b;if(this._blockNode(k),this.code(C),k.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(b)}try(C,k,ee){if(!k&&!ee)throw new Error('CodeGen: "try" without "catch" and "finally"');const Ee=new N;if(this._blockNode(Ee),this.code(C),k){const me=this.name("e");this._currNode=Ee.catch=new j(me),k(me)}return ee&&(this._currNode=Ee.finally=new $,this.code(ee)),this._endBlockNode(j,$)}throw(C){return this._leafNode(new d(C))}block(C,k){return this._blockStarts.push(this._nodes.length),C&&this.code(C).endBlock(k),this}endBlock(C){const k=this._blockStarts.pop();if(k===void 0)throw new Error("CodeGen: not in self-balancing block");const ee=this._nodes.length-k;if(ee<0||C!==void 0&&ee!==C)throw new Error(`CodeGen: wrong number of nodes: ${ee} vs ${C} expected`);return this._nodes.length=k,this}func(C,k=t.nil,ee,Ee){return this._blockNode(new E(C,k,ee)),Ee&&this.code(Ee).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(C=1){for(;C-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(C){return this._currNode.nodes.push(C),this}_blockNode(C){this._currNode.nodes.push(C),this._nodes.push(C)}_endBlockNode(C,k){const ee=this._currNode;if(ee instanceof C||k&&ee instanceof k)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${k?`${C.kind}/${k.kind}`:C.kind}"`)}_elseNode(C){const k=this._currNode;if(!(k instanceof R))throw new Error('CodeGen: "else" without "if"');return this._currNode=k.else=C,this}get _root(){return this._nodes[0]}get _currNode(){const C=this._nodes;return C[C.length-1]}set _currNode(C){const k=this._nodes;k[k.length-1]=C}}e.CodeGen=B;function V(W,C){for(const k in C)W[k]=(W[k]||0)+(C[k]||0);return W}function H(W,C){return C instanceof t._CodeOrName?V(W,C.names):W}function F(W,C,k){if(W instanceof t.Name)return ee(W);if(!Ee(W))return W;return new t._Code(W._items.reduce((me,Se)=>(Se instanceof t.Name&&(Se=ee(Se)),Se instanceof t._Code?me.push(...Se._items):me.push(Se),me),[]));function ee(me){const Se=k[me.str];return Se===void 0||C[me.str]!==1?me:(delete C[me.str],Se)}function Ee(me){return me instanceof t._Code&&me._items.some(Se=>Se instanceof t.Name&&C[Se.str]===1&&k[Se.str]!==void 0)}}function te(W,C){for(const k in C)W[k]=(W[k]||0)-(C[k]||0)}function ie(W){return typeof W=="boolean"||typeof W=="number"||W===null?!W:(0,t._)`!${U(W)}`}e.not=ie;const Z=M(e.operators.AND);function J(...W){return W.reduce(Z)}e.and=J;const K=M(e.operators.OR);function q(...W){return W.reduce(K)}e.or=q;function M(W){return(C,k)=>C===t.nil?k:k===t.nil?C:(0,t._)`${U(C)} ${W} ${U(k)}`}function U(W){return W instanceof t.Name?W:(0,t._)`(${W})`}})(lp)),lp}var Ze={},dS;function ht(){if(dS)return Ze;dS=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.checkStrictMode=Ze.getErrorPath=Ze.Type=Ze.useFunc=Ze.setEvaluated=Ze.evaluatedPropsToName=Ze.mergeEvaluated=Ze.eachItem=Ze.unescapeJsonPointer=Ze.escapeJsonPointer=Ze.escapeFragment=Ze.unescapeFragment=Ze.schemaRefOrVal=Ze.schemaHasRulesButRef=Ze.schemaHasRules=Ze.checkUnknownRules=Ze.alwaysValidSchema=Ze.toHash=void 0;const e=Ke(),t=Rc();function r(m){const E={};for(const b of m)E[b]=!0;return E}Ze.toHash=r;function n(m,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(i(m,E),!a(E,m.self.RULES.all))}Ze.alwaysValidSchema=n;function i(m,E=m.schema){const{opts:b,self:N}=m;if(!b.strictSchema||typeof E=="boolean")return;const j=N.RULES.keywords;for(const $ in E)j[$]||I(m,`unknown keyword: "${$}"`)}Ze.checkUnknownRules=i;function a(m,E){if(typeof m=="boolean")return!m;for(const b in m)if(E[b])return!0;return!1}Ze.schemaHasRules=a;function s(m,E){if(typeof m=="boolean")return!m;for(const b in m)if(b!=="$ref"&&E.all[b])return!0;return!1}Ze.schemaHasRulesButRef=s;function o({topSchemaRef:m,schemaPath:E},b,N,j){if(!j){if(typeof b=="number"||typeof b=="boolean")return b;if(typeof b=="string")return(0,e._)`${b}`}return(0,e._)`${m}${E}${(0,e.getProperty)(N)}`}Ze.schemaRefOrVal=o;function c(m){return d(decodeURIComponent(m))}Ze.unescapeFragment=c;function u(m){return encodeURIComponent(l(m))}Ze.escapeFragment=u;function l(m){return typeof m=="number"?`${m}`:m.replace(/~/g,"~0").replace(/\//g,"~1")}Ze.escapeJsonPointer=l;function d(m){return m.replace(/~1/g,"/").replace(/~0/g,"~")}Ze.unescapeJsonPointer=d;function f(m,E){if(Array.isArray(m))for(const b of m)E(b);else E(m)}Ze.eachItem=f;function p({mergeNames:m,mergeToName:E,mergeValues:b,resultToName:N}){return(j,$,B,V)=>{const H=B===void 0?$:B instanceof e.Name?($ instanceof e.Name?m(j,$,B):E(j,$,B),B):$ instanceof e.Name?(E(j,B,$),$):b($,B);return V===e.Name&&!(H instanceof e.Name)?N(j,H):H}}Ze.mergeEvaluated={props:p({mergeNames:(m,E,b)=>m.if((0,e._)`${b} !== true && ${E} !== undefined`,()=>{m.if((0,e._)`${E} === true`,()=>m.assign(b,!0),()=>m.assign(b,(0,e._)`${b} || {}`).code((0,e._)`Object.assign(${b}, ${E})`))}),mergeToName:(m,E,b)=>m.if((0,e._)`${b} !== true`,()=>{E===!0?m.assign(b,!0):(m.assign(b,(0,e._)`${b} || {}`),y(m,b,E))}),mergeValues:(m,E)=>m===!0?!0:{...m,...E},resultToName:g}),items:p({mergeNames:(m,E,b)=>m.if((0,e._)`${b} !== true && ${E} !== undefined`,()=>m.assign(b,(0,e._)`${E} === true ? true : ${b} > ${E} ? ${b} : ${E}`)),mergeToName:(m,E,b)=>m.if((0,e._)`${b} !== true`,()=>m.assign(b,E===!0?!0:(0,e._)`${b} > ${E} ? ${b} : ${E}`)),mergeValues:(m,E)=>m===!0?!0:Math.max(m,E),resultToName:(m,E)=>m.var("items",E)})};function g(m,E){if(E===!0)return m.var("props",!0);const b=m.var("props",(0,e._)`{}`);return E!==void 0&&y(m,b,E),b}Ze.evaluatedPropsToName=g;function y(m,E,b){Object.keys(b).forEach(N=>m.assign((0,e._)`${E}${(0,e.getProperty)(N)}`,!0))}Ze.setEvaluated=y;const _={};function R(m,E){return m.scopeValue("func",{ref:E,code:_[E.code]||(_[E.code]=new t._Code(E.code))})}Ze.useFunc=R;var h;(function(m){m[m.Num=0]="Num",m[m.Str=1]="Str"})(h||(Ze.Type=h={}));function T(m,E,b){if(m instanceof e.Name){const N=E===h.Num;return b?N?(0,e._)`"[" + ${m} + "]"`:(0,e._)`"['" + ${m} + "']"`:N?(0,e._)`"/" + ${m}`:(0,e._)`"/" + ${m}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return b?(0,e.getProperty)(m).toString():"/"+l(m)}Ze.getErrorPath=T;function I(m,E,b=m.opts.strictSchema){if(b){if(E=`strict mode: ${E}`,b===!0)throw new Error(E);m.self.logger.warn(E)}}return Ze.checkStrictMode=I,Ze}var sl={},fS;function mi(){if(fS)return sl;fS=1,Object.defineProperty(sl,"__esModule",{value:!0});const e=Ke(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return sl.default=t,sl}var pS;function Yc(){return pS||(pS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Ke(),r=ht(),n=mi();e.keywordError={message:({keyword:_})=>(0,t.str)`must pass "${_}" keyword validation`},e.keyword$DataError={message:({keyword:_,schemaType:R})=>R?(0,t.str)`"${_}" keyword must be ${R} ($data)`:(0,t.str)`"${_}" keyword is invalid ($data)`};function i(_,R=e.keywordError,h,T){const{it:I}=_,{gen:m,compositeRule:E,allErrors:b}=I,N=d(_,R,h);T??(E||b)?c(m,N):u(I,(0,t._)`[${N}]`)}e.reportError=i;function a(_,R=e.keywordError,h){const{it:T}=_,{gen:I,compositeRule:m,allErrors:E}=T,b=d(_,R,h);c(I,b),m||E||u(T,n.default.vErrors)}e.reportExtraError=a;function s(_,R){_.assign(n.default.errors,R),_.if((0,t._)`${n.default.vErrors} !== null`,()=>_.if(R,()=>_.assign((0,t._)`${n.default.vErrors}.length`,R),()=>_.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function o({gen:_,keyword:R,schemaValue:h,data:T,errsCount:I,it:m}){if(I===void 0)throw new Error("ajv implementation error");const E=_.name("err");_.forRange("i",I,n.default.errors,b=>{_.const(E,(0,t._)`${n.default.vErrors}[${b}]`),_.if((0,t._)`${E}.instancePath === undefined`,()=>_.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(n.default.instancePath,m.errorPath))),_.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${m.errSchemaPath}/${R}`),m.opts.verbose&&(_.assign((0,t._)`${E}.schema`,h),_.assign((0,t._)`${E}.data`,T))})}e.extendErrors=o;function c(_,R){const h=_.const("err",R);_.if((0,t._)`${n.default.vErrors} === null`,()=>_.assign(n.default.vErrors,(0,t._)`[${h}]`),(0,t._)`${n.default.vErrors}.push(${h})`),_.code((0,t._)`${n.default.errors}++`)}function u(_,R){const{gen:h,validateName:T,schemaEnv:I}=_;I.$async?h.throw((0,t._)`new ${_.ValidationError}(${R})`):(h.assign((0,t._)`${T}.errors`,R),h.return(!1))}const l={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(_,R,h){const{createErrors:T}=_.it;return T===!1?(0,t._)`{}`:f(_,R,h)}function f(_,R,h={}){const{gen:T,it:I}=_,m=[p(I,h),g(_,h)];return y(_,R,m),T.object(...m)}function p({errorPath:_},{instancePath:R}){const h=R?(0,t.str)`${_}${(0,r.getErrorPath)(R,r.Type.Str)}`:_;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,h)]}function g({keyword:_,it:{errSchemaPath:R}},{schemaPath:h,parentSchema:T}){let I=T?R:(0,t.str)`${R}/${_}`;return h&&(I=(0,t.str)`${I}${(0,r.getErrorPath)(h,r.Type.Str)}`),[l.schemaPath,I]}function y(_,{params:R,message:h},T){const{keyword:I,data:m,schemaValue:E,it:b}=_,{opts:N,propertyName:j,topSchemaRef:$,schemaPath:B}=b;T.push([l.keyword,I],[l.params,typeof R=="function"?R(_):R||(0,t._)`{}`]),N.messages&&T.push([l.message,typeof h=="function"?h(_):h]),N.verbose&&T.push([l.schema,E],[l.parentSchema,(0,t._)`${$}${B}`],[n.default.data,m]),j&&T.push([l.propertyName,j])}})(up)),up}var hS;function c3(){if(hS)return Fi;hS=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.boolOrEmptySchema=Fi.topBoolOrEmptySchema=void 0;const e=Yc(),t=Ke(),r=mi(),n={message:"boolean schema is false"};function i(o){const{gen:c,schema:u,validateName:l}=o;u===!1?s(o,!1):typeof u=="object"&&u.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${l}.errors`,null),c.return(!0))}Fi.topBoolOrEmptySchema=i;function a(o,c){const{gen:u,schema:l}=o;l===!1?(u.var(c,!1),s(o)):u.var(c,!0)}Fi.boolOrEmptySchema=a;function s(o,c){const{gen:u,data:l}=o,d={gen:u,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(d,n,void 0,c)}return Fi}var ur={},Hi={},mS;function Dj(){if(mS)return Hi;mS=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.getRules=Hi.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}Hi.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return Hi.getRules=n,Hi}var Zn={},yS;function Lj(){if(yS)return Zn;yS=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.shouldUseRule=Zn.shouldUseGroup=Zn.schemaHasRulesForType=void 0;function e({schema:n,self:i},a){const s=i.RULES.types[a];return s&&s!==!0&&t(n,s)}Zn.schemaHasRulesForType=e;function t(n,i){return i.rules.some(a=>r(n,a))}Zn.shouldUseGroup=t;function r(n,i){var a;return n[i.keyword]!==void 0||((a=i.definition.implements)===null||a===void 0?void 0:a.some(s=>n[s]!==void 0))}return Zn.shouldUseRule=r,Zn}var gS;function Bd(){if(gS)return ur;gS=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.reportTypeError=ur.checkDataTypes=ur.checkDataType=ur.coerceAndCheckDataType=ur.getJSONTypes=ur.getSchemaTypes=ur.DataType=void 0;const e=Dj(),t=Lj(),r=Yc(),n=Ke(),i=ht();var a;(function(h){h[h.Correct=0]="Correct",h[h.Wrong=1]="Wrong"})(a||(ur.DataType=a={}));function s(h){const T=o(h.type);if(T.includes("null")){if(h.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!T.length&&h.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');h.nullable===!0&&T.push("null")}return T}ur.getSchemaTypes=s;function o(h){const T=Array.isArray(h)?h:h?[h]:[];if(T.every(e.isJSONType))return T;throw new Error("type must be JSONType or JSONType[]: "+T.join(","))}ur.getJSONTypes=o;function c(h,T){const{gen:I,data:m,opts:E}=h,b=l(T,E.coerceTypes),N=T.length>0&&!(b.length===0&&T.length===1&&(0,t.schemaHasRulesForType)(h,T[0]));if(N){const j=g(T,m,E.strictNumbers,a.Wrong);I.if(j,()=>{b.length?d(h,T,b):_(h)})}return N}ur.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function l(h,T){return T?h.filter(I=>u.has(I)||T==="array"&&I==="array"):[]}function d(h,T,I){const{gen:m,data:E,opts:b}=h,N=m.let("dataType",(0,n._)`typeof ${E}`),j=m.let("coerced",(0,n._)`undefined`);b.coerceTypes==="array"&&m.if((0,n._)`${N} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>m.assign(E,(0,n._)`${E}[0]`).assign(N,(0,n._)`typeof ${E}`).if(g(T,E,b.strictNumbers),()=>m.assign(j,E))),m.if((0,n._)`${j} !== undefined`);for(const B of I)(u.has(B)||B==="array"&&b.coerceTypes==="array")&&$(B);m.else(),_(h),m.endIf(),m.if((0,n._)`${j} !== undefined`,()=>{m.assign(E,j),f(h,j)});function $(B){switch(B){case"string":m.elseIf((0,n._)`${N} == "number" || ${N} == "boolean"`).assign(j,(0,n._)`"" + ${E}`).elseIf((0,n._)`${E} === null`).assign(j,(0,n._)`""`);return;case"number":m.elseIf((0,n._)`${N} == "boolean" || ${E} === null
|
|
52
|
+
|| (${N} == "string" && ${E} && ${E} == +${E})`).assign(j,(0,n._)`+${E}`);return;case"integer":m.elseIf((0,n._)`${N} === "boolean" || ${E} === null
|
|
53
|
+
|| (${N} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(j,(0,n._)`+${E}`);return;case"boolean":m.elseIf((0,n._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(j,!1).elseIf((0,n._)`${E} === "true" || ${E} === 1`).assign(j,!0);return;case"null":m.elseIf((0,n._)`${E} === "" || ${E} === 0 || ${E} === false`),m.assign(j,null);return;case"array":m.elseIf((0,n._)`${N} === "string" || ${N} === "number"
|
|
54
|
+
|| ${N} === "boolean" || ${E} === null`).assign(j,(0,n._)`[${E}]`)}}}function f({gen:h,parentData:T,parentDataProperty:I},m){h.if((0,n._)`${T} !== undefined`,()=>h.assign((0,n._)`${T}[${I}]`,m))}function p(h,T,I,m=a.Correct){const E=m===a.Correct?n.operators.EQ:n.operators.NEQ;let b;switch(h){case"null":return(0,n._)`${T} ${E} null`;case"array":b=(0,n._)`Array.isArray(${T})`;break;case"object":b=(0,n._)`${T} && typeof ${T} == "object" && !Array.isArray(${T})`;break;case"integer":b=N((0,n._)`!(${T} % 1) && !isNaN(${T})`);break;case"number":b=N();break;default:return(0,n._)`typeof ${T} ${E} ${h}`}return m===a.Correct?b:(0,n.not)(b);function N(j=n.nil){return(0,n.and)((0,n._)`typeof ${T} == "number"`,j,I?(0,n._)`isFinite(${T})`:n.nil)}}ur.checkDataType=p;function g(h,T,I,m){if(h.length===1)return p(h[0],T,I,m);let E;const b=(0,i.toHash)(h);if(b.array&&b.object){const N=(0,n._)`typeof ${T} != "object"`;E=b.null?N:(0,n._)`!${T} || ${N}`,delete b.null,delete b.array,delete b.object}else E=n.nil;b.number&&delete b.integer;for(const N in b)E=(0,n.and)(E,p(N,T,I,m));return E}ur.checkDataTypes=g;const y={message:({schema:h})=>`must be ${h}`,params:({schema:h,schemaValue:T})=>typeof h=="string"?(0,n._)`{type: ${h}}`:(0,n._)`{type: ${T}}`};function _(h){const T=R(h);(0,r.reportError)(T,y)}ur.reportTypeError=_;function R(h){const{gen:T,data:I,schema:m}=h,E=(0,i.schemaRefOrVal)(h,m,"type");return{gen:T,keyword:"type",data:I,schema:m.type,schemaCode:E,schemaValue:E,parentSchema:m,params:{},it:h}}return ur}var bo={},_S;function u3(){if(_S)return bo;_S=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.assignDefaults=void 0;const e=Ke(),t=ht();function r(i,a){const{properties:s,items:o}=i.schema;if(a==="object"&&s)for(const c in s)n(i,c,s[c].default);else a==="array"&&Array.isArray(o)&&o.forEach((c,u)=>n(i,u,c.default))}bo.assignDefaults=r;function n(i,a,s){const{gen:o,compositeRule:c,data:u,opts:l}=i;if(s===void 0)return;const d=(0,e._)`${u}${(0,e.getProperty)(a)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${d}`);return}let f=(0,e._)`${d} === undefined`;l.useDefaults==="empty"&&(f=(0,e._)`${f} || ${d} === null || ${d} === ""`),o.if(f,(0,e._)`${d} = ${(0,e.stringify)(s)}`)}return bo}var cn={},Tt={},vS;function En(){if(vS)return Tt;vS=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.validateUnion=Tt.validateArray=Tt.usePattern=Tt.callValidateCode=Tt.schemaProperties=Tt.allSchemaProperties=Tt.noPropertyInData=Tt.propertyInData=Tt.isOwnProperty=Tt.hasPropFunc=Tt.reportMissingProp=Tt.checkMissingProp=Tt.checkReportMissingProp=void 0;const e=Ke(),t=ht(),r=mi(),n=ht();function i(h,T){const{gen:I,data:m,it:E}=h;I.if(l(I,m,T,E.opts.ownProperties),()=>{h.setParams({missingProperty:(0,e._)`${T}`},!0),h.error()})}Tt.checkReportMissingProp=i;function a({gen:h,data:T,it:{opts:I}},m,E){return(0,e.or)(...m.map(b=>(0,e.and)(l(h,T,b,I.ownProperties),(0,e._)`${E} = ${b}`)))}Tt.checkMissingProp=a;function s(h,T){h.setParams({missingProperty:T},!0),h.error()}Tt.reportMissingProp=s;function o(h){return h.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Tt.hasPropFunc=o;function c(h,T,I){return(0,e._)`${o(h)}.call(${T}, ${I})`}Tt.isOwnProperty=c;function u(h,T,I,m){const E=(0,e._)`${T}${(0,e.getProperty)(I)} !== undefined`;return m?(0,e._)`${E} && ${c(h,T,I)}`:E}Tt.propertyInData=u;function l(h,T,I,m){const E=(0,e._)`${T}${(0,e.getProperty)(I)} === undefined`;return m?(0,e.or)(E,(0,e.not)(c(h,T,I))):E}Tt.noPropertyInData=l;function d(h){return h?Object.keys(h).filter(T=>T!=="__proto__"):[]}Tt.allSchemaProperties=d;function f(h,T){return d(T).filter(I=>!(0,t.alwaysValidSchema)(h,T[I]))}Tt.schemaProperties=f;function p({schemaCode:h,data:T,it:{gen:I,topSchemaRef:m,schemaPath:E,errorPath:b},it:N},j,$,B){const V=B?(0,e._)`${h}, ${T}, ${m}${E}`:T,H=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,b)],[r.default.parentData,N.parentData],[r.default.parentDataProperty,N.parentDataProperty],[r.default.rootData,r.default.rootData]];N.opts.dynamicRef&&H.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const F=(0,e._)`${V}, ${I.object(...H)}`;return $!==e.nil?(0,e._)`${j}.call(${$}, ${F})`:(0,e._)`${j}(${F})`}Tt.callValidateCode=p;const g=(0,e._)`new RegExp`;function y({gen:h,it:{opts:T}},I){const m=T.unicodeRegExp?"u":"",{regExp:E}=T.code,b=E(I,m);return h.scopeValue("pattern",{key:b.toString(),ref:b,code:(0,e._)`${E.code==="new RegExp"?g:(0,n.useFunc)(h,E)}(${I}, ${m})`})}Tt.usePattern=y;function _(h){const{gen:T,data:I,keyword:m,it:E}=h,b=T.name("valid");if(E.allErrors){const j=T.let("valid",!0);return N(()=>T.assign(j,!1)),j}return T.var(b,!0),N(()=>T.break()),b;function N(j){const $=T.const("len",(0,e._)`${I}.length`);T.forRange("i",0,$,B=>{h.subschema({keyword:m,dataProp:B,dataPropType:t.Type.Num},b),T.if((0,e.not)(b),j)})}}Tt.validateArray=_;function R(h){const{gen:T,schema:I,keyword:m,it:E}=h;if(!Array.isArray(I))throw new Error("ajv implementation error");if(I.some($=>(0,t.alwaysValidSchema)(E,$))&&!E.opts.unevaluated)return;const N=T.let("valid",!1),j=T.name("_valid");T.block(()=>I.forEach(($,B)=>{const V=h.subschema({keyword:m,schemaProp:B,compositeRule:!0},j);T.assign(N,(0,e._)`${N} || ${j}`),h.mergeValidEvaluated(V,j)||T.if((0,e.not)(N))})),h.result(N,()=>h.reset(),()=>h.error(!0))}return Tt.validateUnion=R,Tt}var ES;function l3(){if(ES)return cn;ES=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.validateKeywordUsage=cn.validSchemaType=cn.funcKeywordCode=cn.macroKeywordCode=void 0;const e=Ke(),t=mi(),r=En(),n=Yc();function i(f,p){const{gen:g,keyword:y,schema:_,parentSchema:R,it:h}=f,T=p.macro.call(h.self,_,R,h),I=u(g,y,T);h.opts.validateSchema!==!1&&h.self.validateSchema(T,!0);const m=g.name("valid");f.subschema({schema:T,schemaPath:e.nil,errSchemaPath:`${h.errSchemaPath}/${y}`,topSchemaRef:I,compositeRule:!0},m),f.pass(m,()=>f.error(!0))}cn.macroKeywordCode=i;function a(f,p){var g;const{gen:y,keyword:_,schema:R,parentSchema:h,$data:T,it:I}=f;c(I,p);const m=!T&&p.compile?p.compile.call(I.self,R,h,I):p.validate,E=u(y,_,m),b=y.let("valid");f.block$data(b,N),f.ok((g=p.valid)!==null&&g!==void 0?g:b);function N(){if(p.errors===!1)B(),p.modifying&&s(f),V(()=>f.error());else{const H=p.async?j():$();p.modifying&&s(f),V(()=>o(f,H))}}function j(){const H=y.let("ruleErrs",null);return y.try(()=>B((0,e._)`await `),F=>y.assign(b,!1).if((0,e._)`${F} instanceof ${I.ValidationError}`,()=>y.assign(H,(0,e._)`${F}.errors`),()=>y.throw(F))),H}function $(){const H=(0,e._)`${E}.errors`;return y.assign(H,null),B(e.nil),H}function B(H=p.async?(0,e._)`await `:e.nil){const F=I.opts.passContext?t.default.this:t.default.self,te=!("compile"in p&&!T||p.schema===!1);y.assign(b,(0,e._)`${H}${(0,r.callValidateCode)(f,E,F,te)}`,p.modifying)}function V(H){var F;y.if((0,e.not)((F=p.valid)!==null&&F!==void 0?F:b),H)}}cn.funcKeywordCode=a;function s(f){const{gen:p,data:g,it:y}=f;p.if(y.parentData,()=>p.assign(g,(0,e._)`${y.parentData}[${y.parentDataProperty}]`))}function o(f,p){const{gen:g}=f;g.if((0,e._)`Array.isArray(${p})`,()=>{g.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${p} : ${t.default.vErrors}.concat(${p})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(f)},()=>f.error())}function c({schemaEnv:f},p){if(p.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,p,g){if(g===void 0)throw new Error(`keyword "${p}" failed to compile`);return f.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,e.stringify)(g)})}function l(f,p,g=!1){return!p.length||p.some(y=>y==="array"?Array.isArray(f):y==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==y||g&&typeof f>"u")}cn.validSchemaType=l;function d({schema:f,opts:p,self:g,errSchemaPath:y},_,R){if(Array.isArray(_.keyword)?!_.keyword.includes(R):_.keyword!==R)throw new Error("ajv implementation error");const h=_.dependencies;if(h!=null&&h.some(T=>!Object.prototype.hasOwnProperty.call(f,T)))throw new Error(`parent schema must have dependencies of ${R}: ${h.join(",")}`);if(_.validateSchema&&!_.validateSchema(f[R])){const I=`keyword "${R}" value is invalid at path "${y}": `+g.errorsText(_.validateSchema.errors);if(p.validateSchema==="log")g.logger.error(I);else throw new Error(I)}}return cn.validateKeywordUsage=d,cn}var ei={},bS;function d3(){if(bS)return ei;bS=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.extendSubschemaMode=ei.extendSubschemaData=ei.getSubschema=void 0;const e=Ke(),t=ht();function r(a,{keyword:s,schemaProp:o,schema:c,schemaPath:u,errSchemaPath:l,topSchemaRef:d}){if(s!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const f=a.schema[s];return o===void 0?{schema:f,schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${s}`}:{schema:f[o],schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(o)}`,errSchemaPath:`${a.errSchemaPath}/${s}/${(0,t.escapeFragment)(o)}`}}if(c!==void 0){if(u===void 0||l===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:d,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}ei.getSubschema=r;function n(a,s,{dataProp:o,dataPropType:c,data:u,dataTypes:l,propertyName:d}){if(u!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=s;if(o!==void 0){const{errorPath:g,dataPathArr:y,opts:_}=s,R=f.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);p(R),a.errorPath=(0,e.str)`${g}${(0,t.getErrorPath)(o,c,_.jsPropertySyntax)}`,a.parentDataProperty=(0,e._)`${o}`,a.dataPathArr=[...y,a.parentDataProperty]}if(u!==void 0){const g=u instanceof e.Name?u:f.let("data",u,!0);p(g),d!==void 0&&(a.propertyName=d)}l&&(a.dataTypes=l);function p(g){a.data=g,a.dataLevel=s.dataLevel+1,a.dataTypes=[],s.definedProperties=new Set,a.parentData=s.data,a.dataNames=[...s.dataNames,g]}}ei.extendSubschemaData=n;function i(a,{jtdDiscriminator:s,jtdMetadata:o,compositeRule:c,createErrors:u,allErrors:l}){c!==void 0&&(a.compositeRule=c),u!==void 0&&(a.createErrors=u),l!==void 0&&(a.allErrors=l),a.jtdDiscriminator=s,a.jtdMetadata=o}return ei.extendSubschemaMode=i,ei}var Ir={},pp,SS;function AE(){return SS||(SS=1,pp=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var s=a[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}),pp}var hp={exports:{}},TS;function f3(){if(TS)return hp.exports;TS=1;var e=hp.exports=function(n,i,a){typeof i=="function"&&(a=i,i={}),a=i.cb||a;var s=typeof a=="function"?a:a.pre||function(){},o=a.post||function(){};t(i,s,o,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,i,a,s,o,c,u,l,d,f){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,o,c,u,l,d,f);for(var p in s){var g=s[p];if(Array.isArray(g)){if(p in e.arrayKeywords)for(var y=0;y<g.length;y++)t(n,i,a,g[y],o+"/"+p+"/"+y,c,o,p,s,y)}else if(p in e.propsKeywords){if(g&&typeof g=="object")for(var _ in g)t(n,i,a,g[_],o+"/"+p+"/"+r(_),c,o,p,s,_)}else(p in e.keywords||n.allKeys&&!(p in e.skipKeywords))&&t(n,i,a,g,o+"/"+p,c,o,p,s)}a(s,o,c,u,l,d,f)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return hp.exports}var wS;function nf(){if(wS)return Ir;wS=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.getSchemaRefs=Ir.resolveUrl=Ir.normalizeId=Ir._getFullPath=Ir.getFullPath=Ir.inlineRef=void 0;const e=ht(),t=AE(),r=f3(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(y,_=!0){return typeof y=="boolean"?!0:_===!0?!s(y):_?o(y)<=_:!1}Ir.inlineRef=i;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(y){for(const _ in y){if(a.has(_))return!0;const R=y[_];if(Array.isArray(R)&&R.some(s)||typeof R=="object"&&s(R))return!0}return!1}function o(y){let _=0;for(const R in y){if(R==="$ref")return 1/0;if(_++,!n.has(R)&&(typeof y[R]=="object"&&(0,e.eachItem)(y[R],h=>_+=o(h)),_===1/0))return 1/0}return _}function c(y,_="",R){R!==!1&&(_=d(_));const h=y.parse(_);return u(y,h)}Ir.getFullPath=c;function u(y,_){return y.serialize(_).split("#")[0]+"#"}Ir._getFullPath=u;const l=/#\/?$/;function d(y){return y?y.replace(l,""):""}Ir.normalizeId=d;function f(y,_,R){return R=d(R),y.resolve(_,R)}Ir.resolveUrl=f;const p=/^[a-z_][-a-z0-9._]*$/i;function g(y,_){if(typeof y=="boolean")return{};const{schemaId:R,uriResolver:h}=this.opts,T=d(y[R]||_),I={"":T},m=c(h,T,!1),E={},b=new Set;return r(y,{allKeys:!0},($,B,V,H)=>{if(H===void 0)return;const F=m+B;let te=I[H];typeof $[R]=="string"&&(te=ie.call(this,$[R])),Z.call(this,$.$anchor),Z.call(this,$.$dynamicAnchor),I[B]=te;function ie(J){const K=this.opts.uriResolver.resolve;if(J=d(te?K(te,J):J),b.has(J))throw j(J);b.add(J);let q=this.refs[J];return typeof q=="string"&&(q=this.refs[q]),typeof q=="object"?N($,q.schema,J):J!==d(F)&&(J[0]==="#"?(N($,E[J],J),E[J]=$):this.refs[J]=F),J}function Z(J){if(typeof J=="string"){if(!p.test(J))throw new Error(`invalid anchor "${J}"`);ie.call(this,`#${J}`)}}}),E;function N($,B,V){if(B!==void 0&&!t($,B))throw j(V)}function j($){return new Error(`reference "${$}" resolves to more than one schema`)}}return Ir.getSchemaRefs=g,Ir}var IS;function Kc(){if(IS)return Qn;IS=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.getData=Qn.KeywordCxt=Qn.validateFunctionCode=void 0;const e=c3(),t=Bd(),r=Lj(),n=Bd(),i=u3(),a=l3(),s=d3(),o=Ke(),c=mi(),u=nf(),l=ht(),d=Yc();function f(ae){if(m(ae)&&(b(ae),I(ae))){_(ae);return}p(ae,()=>(0,e.topBoolOrEmptySchema)(ae))}Qn.validateFunctionCode=f;function p({gen:ae,validateName:ue,schema:fe,schemaEnv:pe,opts:be},Ae){be.code.es5?ae.func(ue,(0,o._)`${c.default.data}, ${c.default.valCxt}`,pe.$async,()=>{ae.code((0,o._)`"use strict"; ${h(fe,be)}`),y(ae,be),ae.code(Ae)}):ae.func(ue,(0,o._)`${c.default.data}, ${g(be)}`,pe.$async,()=>ae.code(h(fe,be)).code(Ae))}function g(ae){return(0,o._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${ae.dynamicRef?(0,o._)`, ${c.default.dynamicAnchors}={}`:o.nil}}={}`}function y(ae,ue){ae.if(c.default.valCxt,()=>{ae.var(c.default.instancePath,(0,o._)`${c.default.valCxt}.${c.default.instancePath}`),ae.var(c.default.parentData,(0,o._)`${c.default.valCxt}.${c.default.parentData}`),ae.var(c.default.parentDataProperty,(0,o._)`${c.default.valCxt}.${c.default.parentDataProperty}`),ae.var(c.default.rootData,(0,o._)`${c.default.valCxt}.${c.default.rootData}`),ue.dynamicRef&&ae.var(c.default.dynamicAnchors,(0,o._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{ae.var(c.default.instancePath,(0,o._)`""`),ae.var(c.default.parentData,(0,o._)`undefined`),ae.var(c.default.parentDataProperty,(0,o._)`undefined`),ae.var(c.default.rootData,c.default.data),ue.dynamicRef&&ae.var(c.default.dynamicAnchors,(0,o._)`{}`)})}function _(ae){const{schema:ue,opts:fe,gen:pe}=ae;p(ae,()=>{fe.$comment&&ue.$comment&&H(ae),$(ae),pe.let(c.default.vErrors,null),pe.let(c.default.errors,0),fe.unevaluated&&R(ae),N(ae),F(ae)})}function R(ae){const{gen:ue,validateName:fe}=ae;ae.evaluated=ue.const("evaluated",(0,o._)`${fe}.evaluated`),ue.if((0,o._)`${ae.evaluated}.dynamicProps`,()=>ue.assign((0,o._)`${ae.evaluated}.props`,(0,o._)`undefined`)),ue.if((0,o._)`${ae.evaluated}.dynamicItems`,()=>ue.assign((0,o._)`${ae.evaluated}.items`,(0,o._)`undefined`))}function h(ae,ue){const fe=typeof ae=="object"&&ae[ue.schemaId];return fe&&(ue.code.source||ue.code.process)?(0,o._)`/*# sourceURL=${fe} */`:o.nil}function T(ae,ue){if(m(ae)&&(b(ae),I(ae))){E(ae,ue);return}(0,e.boolOrEmptySchema)(ae,ue)}function I({schema:ae,self:ue}){if(typeof ae=="boolean")return!ae;for(const fe in ae)if(ue.RULES.all[fe])return!0;return!1}function m(ae){return typeof ae.schema!="boolean"}function E(ae,ue){const{schema:fe,gen:pe,opts:be}=ae;be.$comment&&fe.$comment&&H(ae),B(ae),V(ae);const Ae=pe.const("_errs",c.default.errors);N(ae,Ae),pe.var(ue,(0,o._)`${Ae} === ${c.default.errors}`)}function b(ae){(0,l.checkUnknownRules)(ae),j(ae)}function N(ae,ue){if(ae.opts.jtd)return ie(ae,[],!1,ue);const fe=(0,t.getSchemaTypes)(ae.schema),pe=(0,t.coerceAndCheckDataType)(ae,fe);ie(ae,fe,!pe,ue)}function j(ae){const{schema:ue,errSchemaPath:fe,opts:pe,self:be}=ae;ue.$ref&&pe.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(ue,be.RULES)&&be.logger.warn(`$ref: keywords ignored in schema at path "${fe}"`)}function $(ae){const{schema:ue,opts:fe}=ae;ue.default!==void 0&&fe.useDefaults&&fe.strictSchema&&(0,l.checkStrictMode)(ae,"default is ignored in the schema root")}function B(ae){const ue=ae.schema[ae.opts.schemaId];ue&&(ae.baseId=(0,u.resolveUrl)(ae.opts.uriResolver,ae.baseId,ue))}function V(ae){if(ae.schema.$async&&!ae.schemaEnv.$async)throw new Error("async schema in sync schema")}function H({gen:ae,schemaEnv:ue,schema:fe,errSchemaPath:pe,opts:be}){const Ae=fe.$comment;if(be.$comment===!0)ae.code((0,o._)`${c.default.self}.logger.log(${Ae})`);else if(typeof be.$comment=="function"){const qe=(0,o.str)`${pe}/$comment`,We=ae.scopeValue("root",{ref:ue.root});ae.code((0,o._)`${c.default.self}.opts.$comment(${Ae}, ${qe}, ${We}.schema)`)}}function F(ae){const{gen:ue,schemaEnv:fe,validateName:pe,ValidationError:be,opts:Ae}=ae;fe.$async?ue.if((0,o._)`${c.default.errors} === 0`,()=>ue.return(c.default.data),()=>ue.throw((0,o._)`new ${be}(${c.default.vErrors})`)):(ue.assign((0,o._)`${pe}.errors`,c.default.vErrors),Ae.unevaluated&&te(ae),ue.return((0,o._)`${c.default.errors} === 0`))}function te({gen:ae,evaluated:ue,props:fe,items:pe}){fe instanceof o.Name&&ae.assign((0,o._)`${ue}.props`,fe),pe instanceof o.Name&&ae.assign((0,o._)`${ue}.items`,pe)}function ie(ae,ue,fe,pe){const{gen:be,schema:Ae,data:qe,allErrors:We,opts:tt,self:Xe}=ae,{RULES:ut}=Xe;if(Ae.$ref&&(tt.ignoreKeywordsWithRef||!(0,l.schemaHasRulesButRef)(Ae,ut))){be.block(()=>Ee(ae,"$ref",ut.all.$ref.definition));return}tt.jtd||J(ae,ue),be.block(()=>{for(const It of ut.rules)Ht(It);Ht(ut.post)});function Ht(It){(0,r.shouldUseGroup)(Ae,It)&&(It.type?(be.if((0,n.checkDataType)(It.type,qe,tt.strictNumbers)),Z(ae,It),ue.length===1&&ue[0]===It.type&&fe&&(be.else(),(0,n.reportTypeError)(ae)),be.endIf()):Z(ae,It),We||be.if((0,o._)`${c.default.errors} === ${pe||0}`))}}function Z(ae,ue){const{gen:fe,schema:pe,opts:{useDefaults:be}}=ae;be&&(0,i.assignDefaults)(ae,ue.type),fe.block(()=>{for(const Ae of ue.rules)(0,r.shouldUseRule)(pe,Ae)&&Ee(ae,Ae.keyword,Ae.definition,ue.type)})}function J(ae,ue){ae.schemaEnv.meta||!ae.opts.strictTypes||(K(ae,ue),ae.opts.allowUnionTypes||q(ae,ue),M(ae,ae.dataTypes))}function K(ae,ue){if(ue.length){if(!ae.dataTypes.length){ae.dataTypes=ue;return}ue.forEach(fe=>{W(ae.dataTypes,fe)||k(ae,`type "${fe}" not allowed by context "${ae.dataTypes.join(",")}"`)}),C(ae,ue)}}function q(ae,ue){ue.length>1&&!(ue.length===2&&ue.includes("null"))&&k(ae,"use allowUnionTypes to allow union type keyword")}function M(ae,ue){const fe=ae.self.RULES.all;for(const pe in fe){const be=fe[pe];if(typeof be=="object"&&(0,r.shouldUseRule)(ae.schema,be)){const{type:Ae}=be.definition;Ae.length&&!Ae.some(qe=>U(ue,qe))&&k(ae,`missing type "${Ae.join(",")}" for keyword "${pe}"`)}}}function U(ae,ue){return ae.includes(ue)||ue==="number"&&ae.includes("integer")}function W(ae,ue){return ae.includes(ue)||ue==="integer"&&ae.includes("number")}function C(ae,ue){const fe=[];for(const pe of ae.dataTypes)W(ue,pe)?fe.push(pe):ue.includes("integer")&&pe==="number"&&fe.push("integer");ae.dataTypes=fe}function k(ae,ue){const fe=ae.schemaEnv.baseId+ae.errSchemaPath;ue+=` at "${fe}" (strictTypes)`,(0,l.checkStrictMode)(ae,ue,ae.opts.strictTypes)}class ee{constructor(ue,fe,pe){if((0,a.validateKeywordUsage)(ue,fe,pe),this.gen=ue.gen,this.allErrors=ue.allErrors,this.keyword=pe,this.data=ue.data,this.schema=ue.schema[pe],this.$data=fe.$data&&ue.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(ue,this.schema,pe,this.$data),this.schemaType=fe.schemaType,this.parentSchema=ue.schema,this.params={},this.it=ue,this.def=fe,this.$data)this.schemaCode=ue.gen.const("vSchema",we(this.$data,ue));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,fe.schemaType,fe.allowUndefined))throw new Error(`${pe} value must be ${JSON.stringify(fe.schemaType)}`);("code"in fe?fe.trackErrors:fe.errors!==!1)&&(this.errsCount=ue.gen.const("_errs",c.default.errors))}result(ue,fe,pe){this.failResult((0,o.not)(ue),fe,pe)}failResult(ue,fe,pe){this.gen.if(ue),pe?pe():this.error(),fe?(this.gen.else(),fe(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ue,fe){this.failResult((0,o.not)(ue),void 0,fe)}fail(ue){if(ue===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(ue),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ue){if(!this.$data)return this.fail(ue);const{schemaCode:fe}=this;this.fail((0,o._)`${fe} !== undefined && (${(0,o.or)(this.invalid$data(),ue)})`)}error(ue,fe,pe){if(fe){this.setParams(fe),this._error(ue,pe),this.setParams({});return}this._error(ue,pe)}_error(ue,fe){(ue?d.reportExtraError:d.reportError)(this,this.def.error,fe)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(ue){this.allErrors||this.gen.if(ue)}setParams(ue,fe){fe?Object.assign(this.params,ue):this.params=ue}block$data(ue,fe,pe=o.nil){this.gen.block(()=>{this.check$data(ue,pe),fe()})}check$data(ue=o.nil,fe=o.nil){if(!this.$data)return;const{gen:pe,schemaCode:be,schemaType:Ae,def:qe}=this;pe.if((0,o.or)((0,o._)`${be} === undefined`,fe)),ue!==o.nil&&pe.assign(ue,!0),(Ae.length||qe.validateSchema)&&(pe.elseIf(this.invalid$data()),this.$dataError(),ue!==o.nil&&pe.assign(ue,!1)),pe.else()}invalid$data(){const{gen:ue,schemaCode:fe,schemaType:pe,def:be,it:Ae}=this;return(0,o.or)(qe(),We());function qe(){if(pe.length){if(!(fe instanceof o.Name))throw new Error("ajv implementation error");const tt=Array.isArray(pe)?pe:[pe];return(0,o._)`${(0,n.checkDataTypes)(tt,fe,Ae.opts.strictNumbers,n.DataType.Wrong)}`}return o.nil}function We(){if(be.validateSchema){const tt=ue.scopeValue("validate$data",{ref:be.validateSchema});return(0,o._)`!${tt}(${fe})`}return o.nil}}subschema(ue,fe){const pe=(0,s.getSubschema)(this.it,ue);(0,s.extendSubschemaData)(pe,this.it,ue),(0,s.extendSubschemaMode)(pe,ue);const be={...this.it,...pe,items:void 0,props:void 0};return T(be,fe),be}mergeEvaluated(ue,fe){const{it:pe,gen:be}=this;pe.opts.unevaluated&&(pe.props!==!0&&ue.props!==void 0&&(pe.props=l.mergeEvaluated.props(be,ue.props,pe.props,fe)),pe.items!==!0&&ue.items!==void 0&&(pe.items=l.mergeEvaluated.items(be,ue.items,pe.items,fe)))}mergeValidEvaluated(ue,fe){const{it:pe,gen:be}=this;if(pe.opts.unevaluated&&(pe.props!==!0||pe.items!==!0))return be.if(fe,()=>this.mergeEvaluated(ue,o.Name)),!0}}Qn.KeywordCxt=ee;function Ee(ae,ue,fe,pe){const be=new ee(ae,fe,ue);"code"in fe?fe.code(be,pe):be.$data&&fe.validate?(0,a.funcKeywordCode)(be,fe):"macro"in fe?(0,a.macroKeywordCode)(be,fe):(fe.compile||fe.validate)&&(0,a.funcKeywordCode)(be,fe)}const me=/^\/(?:[^~]|~0|~1)*$/,Se=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function we(ae,{dataLevel:ue,dataNames:fe,dataPathArr:pe}){let be,Ae;if(ae==="")return c.default.rootData;if(ae[0]==="/"){if(!me.test(ae))throw new Error(`Invalid JSON-pointer: ${ae}`);be=ae,Ae=c.default.rootData}else{const Xe=Se.exec(ae);if(!Xe)throw new Error(`Invalid JSON-pointer: ${ae}`);const ut=+Xe[1];if(be=Xe[2],be==="#"){if(ut>=ue)throw new Error(tt("property/index",ut));return pe[ue-ut]}if(ut>ue)throw new Error(tt("data",ut));if(Ae=fe[ue-ut],!be)return Ae}let qe=Ae;const We=be.split("/");for(const Xe of We)Xe&&(Ae=(0,o._)`${Ae}${(0,o.getProperty)((0,l.unescapeJsonPointer)(Xe))}`,qe=(0,o._)`${qe} && ${Ae}`);return qe;function tt(Xe,ut){return`Cannot access ${Xe} ${ut} levels up, current level is ${ue}`}}return Qn.getData=we,Qn}var ol={},RS;function OE(){if(RS)return ol;RS=1,Object.defineProperty(ol,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return ol.default=e,ol}var cl={},AS;function af(){if(AS)return cl;AS=1,Object.defineProperty(cl,"__esModule",{value:!0});const e=nf();class t extends Error{constructor(n,i,a,s){super(s||`can't resolve reference ${a} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,a),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return cl.default=t,cl}var Vr={},OS;function NE(){if(OS)return Vr;OS=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.resolveSchema=Vr.getCompilingSchema=Vr.resolveRef=Vr.compileSchema=Vr.SchemaEnv=void 0;const e=Ke(),t=OE(),r=mi(),n=nf(),i=ht(),a=Kc();class s{constructor(R){var h;this.refs={},this.dynamicAnchors={};let T;typeof R.schema=="object"&&(T=R.schema),this.schema=R.schema,this.schemaId=R.schemaId,this.root=R.root||this,this.baseId=(h=R.baseId)!==null&&h!==void 0?h:(0,n.normalizeId)(T==null?void 0:T[R.schemaId||"$id"]),this.schemaPath=R.schemaPath,this.localRefs=R.localRefs,this.meta=R.meta,this.$async=T==null?void 0:T.$async,this.refs={}}}Vr.SchemaEnv=s;function o(_){const R=l.call(this,_);if(R)return R;const h=(0,n.getFullPath)(this.opts.uriResolver,_.root.baseId),{es5:T,lines:I}=this.opts.code,{ownProperties:m}=this.opts,E=new e.CodeGen(this.scope,{es5:T,lines:I,ownProperties:m});let b;_.$async&&(b=E.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const N=E.scopeName("validate");_.validateName=N;const j={gen:E,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:E.scopeValue("schema",this.opts.code.source===!0?{ref:_.schema,code:(0,e.stringify)(_.schema)}:{ref:_.schema}),validateName:N,ValidationError:b,schema:_.schema,schemaEnv:_,rootId:h,baseId:_.baseId||h,schemaPath:e.nil,errSchemaPath:_.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let $;try{this._compilations.add(_),(0,a.validateFunctionCode)(j),E.optimize(this.opts.code.optimize);const B=E.toString();$=`${E.scopeRefs(r.default.scope)}return ${B}`,this.opts.code.process&&($=this.opts.code.process($,_));const H=new Function(`${r.default.self}`,`${r.default.scope}`,$)(this,this.scope.get());if(this.scope.value(N,{ref:H}),H.errors=null,H.schema=_.schema,H.schemaEnv=_,_.$async&&(H.$async=!0),this.opts.code.source===!0&&(H.source={validateName:N,validateCode:B,scopeValues:E._values}),this.opts.unevaluated){const{props:F,items:te}=j;H.evaluated={props:F instanceof e.Name?void 0:F,items:te instanceof e.Name?void 0:te,dynamicProps:F instanceof e.Name,dynamicItems:te instanceof e.Name},H.source&&(H.source.evaluated=(0,e.stringify)(H.evaluated))}return _.validate=H,_}catch(B){throw delete _.validate,delete _.validateName,$&&this.logger.error("Error compiling schema, function code:",$),B}finally{this._compilations.delete(_)}}Vr.compileSchema=o;function c(_,R,h){var T;h=(0,n.resolveUrl)(this.opts.uriResolver,R,h);const I=_.refs[h];if(I)return I;let m=f.call(this,_,h);if(m===void 0){const E=(T=_.localRefs)===null||T===void 0?void 0:T[h],{schemaId:b}=this.opts;E&&(m=new s({schema:E,schemaId:b,root:_,baseId:R}))}if(m!==void 0)return _.refs[h]=u.call(this,m)}Vr.resolveRef=c;function u(_){return(0,n.inlineRef)(_.schema,this.opts.inlineRefs)?_.schema:_.validate?_:o.call(this,_)}function l(_){for(const R of this._compilations)if(d(R,_))return R}Vr.getCompilingSchema=l;function d(_,R){return _.schema===R.schema&&_.root===R.root&&_.baseId===R.baseId}function f(_,R){let h;for(;typeof(h=this.refs[R])=="string";)R=h;return h||this.schemas[R]||p.call(this,_,R)}function p(_,R){const h=this.opts.uriResolver.parse(R),T=(0,n._getFullPath)(this.opts.uriResolver,h);let I=(0,n.getFullPath)(this.opts.uriResolver,_.baseId,void 0);if(Object.keys(_.schema).length>0&&T===I)return y.call(this,h,_);const m=(0,n.normalizeId)(T),E=this.refs[m]||this.schemas[m];if(typeof E=="string"){const b=p.call(this,_,E);return typeof(b==null?void 0:b.schema)!="object"?void 0:y.call(this,h,b)}if(typeof(E==null?void 0:E.schema)=="object"){if(E.validate||o.call(this,E),m===(0,n.normalizeId)(R)){const{schema:b}=E,{schemaId:N}=this.opts,j=b[N];return j&&(I=(0,n.resolveUrl)(this.opts.uriResolver,I,j)),new s({schema:b,schemaId:N,root:_,baseId:I})}return y.call(this,h,E)}}Vr.resolveSchema=p;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(_,{baseId:R,schema:h,root:T}){var I;if(((I=_.fragment)===null||I===void 0?void 0:I[0])!=="/")return;for(const b of _.fragment.slice(1).split("/")){if(typeof h=="boolean")return;const N=h[(0,i.unescapeFragment)(b)];if(N===void 0)return;h=N;const j=typeof h=="object"&&h[this.opts.schemaId];!g.has(b)&&j&&(R=(0,n.resolveUrl)(this.opts.uriResolver,R,j))}let m;if(typeof h!="boolean"&&h.$ref&&!(0,i.schemaHasRulesButRef)(h,this.RULES)){const b=(0,n.resolveUrl)(this.opts.uriResolver,R,h.$ref);m=p.call(this,T,b)}const{schemaId:E}=this.opts;if(m=m||new s({schema:h,schemaId:E,root:T,baseId:R}),m.schema!==m.root.schema)return m}return Vr}const p3="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",h3="Meta-schema for $data reference (JSON AnySchema extension proposal)",m3="object",y3=["$data"],g3={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},_3=!1,v3={$id:p3,description:h3,type:m3,required:y3,properties:g3,additionalProperties:_3};var ul={},So={exports:{}},mp,NS;function $j(){if(NS)return mp;NS=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function a(m){let E="",b=0,N=0;for(N=0;N<m.length;N++)if(b=m[N].charCodeAt(0),b!==48){if(!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";E+=m[N];break}for(N+=1;N<m.length;N++){if(b=m[N].charCodeAt(0),!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";E+=m[N]}return E}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(m){return m.length=0,!0}function c(m,E,b){if(m.length){const N=a(m);if(N!=="")E.push(N);else return b.error=!0,!1;m.length=0}return!0}function u(m){let E=0;const b={error:!1,address:"",zone:""},N=[],j=[];let $=!1,B=!1,V=c;for(let H=0;H<m.length;H++){const F=m[H];if(!(F==="["||F==="]"))if(F===":"){if($===!0&&(B=!0),!V(j,N,b))break;if(++E>7){b.error=!0;break}H>0&&m[H-1]===":"&&($=!0),N.push(":");continue}else if(F==="%"){if(!V(j,N,b))break;V=o}else{j.push(F);continue}}return j.length&&(V===o?b.zone=j.join(""):B?N.push(j.join("")):N.push(a(j))),b.address=N.join(""),b}function l(m){if(d(m,":")<2)return{host:m,isIPV6:!1};const E=u(m);if(E.error)return{host:m,isIPV6:!1};{let b=E.address,N=E.address;return E.zone&&(b+="%"+E.zone,N+="%25"+E.zone),{host:b,isIPV6:!0,escapedHost:N}}}function d(m,E){let b=0;for(let N=0;N<m.length;N++)m[N]===E&&b++;return b}function f(m){let E=m;const b=[];let N=-1,j=0;for(;j=E.length;){if(j===1){if(E===".")break;if(E==="/"){b.push("/");break}else{b.push(E);break}}else if(j===2){if(E[0]==="."){if(E[1]===".")break;if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&(E[1]==="."||E[1]==="/")){b.push("/");break}}else if(j===3&&E==="/.."){b.length!==0&&b.pop(),b.push("/");break}if(E[0]==="."){if(E[1]==="."){if(E[2]==="/"){E=E.slice(3);continue}}else if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){if(E[2]==="/"){E=E.slice(2);continue}else if(E[2]==="."&&E[3]==="/"){E=E.slice(3),b.length!==0&&b.pop();continue}}if((N=E.indexOf("/",1))===-1){b.push(E);break}else b.push(E.slice(0,N)),E=E.slice(N)}return b.join("")}const p={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},g=/[@/?#:]/g,y=/[@/?#]/g;function _(m,E){const b=E?y:g;return b.lastIndex=0,m.replace(b,N=>p[N])}function R(m,E=!1){if(m.indexOf("%")===-1)return m;let b="";for(let N=0;N<m.length;N++){if(m[N]==="%"&&N+2<m.length){const j=m.slice(N+1,N+3);if(r(j)){const $=j.toUpperCase(),B=String.fromCharCode(parseInt($,16));E&&n(B)?b+=B:b+="%"+$,N+=2;continue}}b+=m[N]}return b}function h(m){let E="";for(let b=0;b<m.length;b++){if(m[b]==="%"&&b+2<m.length){const N=m.slice(b+1,b+3);if(r(N)){const j=N.toUpperCase(),$=String.fromCharCode(parseInt(j,16));$!=="."&&n($)?E+=$:E+="%"+j,b+=2;continue}}i(m[b])?E+=m[b]:E+=escape(m[b])}return E}function T(m){let E="";for(let b=0;b<m.length;b++){if(m[b]==="%"&&b+2<m.length){const N=m.slice(b+1,b+3);if(r(N)){E+="%"+N.toUpperCase(),b+=2;continue}}E+=escape(m[b])}return E}function I(m){const E=[];if(m.userinfo!==void 0&&(E.push(m.userinfo),E.push("@")),m.host!==void 0){let b=unescape(m.host);if(!t(b)){const N=l(b);N.isIPV6===!0?b=`[${N.escapedHost}]`:b=_(b,!1)}E.push(b)}return(typeof m.port=="number"||typeof m.port=="string")&&(E.push(":"),E.push(String(m.port))),E.length?E.join(""):void 0}return mp={nonSimpleDomain:s,recomposeAuthority:I,reescapeHostDelimiters:_,normalizePercentEncoding:R,normalizePathEncoding:h,escapePreservingEscapes:T,removeDotSegments:f,isIPv4:t,isUUID:e,normalizeIPv6:l,stringArrayToHexStripped:a},mp}var yp,PS;function E3(){if(PS)return yp;PS=1;const{isUUID:e}=$j(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(m){return r.indexOf(m)!==-1}function i(m){return m.secure===!0?!0:m.secure===!1?!1:m.scheme?m.scheme.length===3&&(m.scheme[0]==="w"||m.scheme[0]==="W")&&(m.scheme[1]==="s"||m.scheme[1]==="S")&&(m.scheme[2]==="s"||m.scheme[2]==="S"):!1}function a(m){return m.host||(m.error=m.error||"HTTP URIs must have a host."),m}function s(m){const E=String(m.scheme).toLowerCase()==="https";return(m.port===(E?443:80)||m.port==="")&&(m.port=void 0),m.path||(m.path="/"),m}function o(m){return m.secure=i(m),m.resourceName=(m.path||"/")+(m.query?"?"+m.query:""),m.path=void 0,m.query=void 0,m}function c(m){if((m.port===(i(m)?443:80)||m.port==="")&&(m.port=void 0),typeof m.secure=="boolean"&&(m.scheme=m.secure?"wss":"ws",m.secure=void 0),m.resourceName){const[E,b]=m.resourceName.split("?");m.path=E&&E!=="/"?E:void 0,m.query=b,m.resourceName=void 0}return m.fragment=void 0,m}function u(m,E){if(!m.path)return m.error="URN can not be parsed",m;const b=m.path.match(t);if(b){const N=E.scheme||m.scheme||"urn";m.nid=b[1].toLowerCase(),m.nss=b[2];const j=`${N}:${E.nid||m.nid}`,$=I(j);m.path=void 0,$&&(m=$.parse(m,E))}else m.error=m.error||"URN can not be parsed.";return m}function l(m,E){if(m.nid===void 0)throw new Error("URN without nid cannot be serialized");const b=E.scheme||m.scheme||"urn",N=m.nid.toLowerCase(),j=`${b}:${E.nid||N}`,$=I(j);$&&(m=$.serialize(m,E));const B=m,V=m.nss;return B.path=`${N||E.nid}:${V}`,E.skipEscape=!0,B}function d(m,E){const b=m;return b.uuid=b.nss,b.nss=void 0,!E.tolerant&&(!b.uuid||!e(b.uuid))&&(b.error=b.error||"UUID is not valid."),b}function f(m){const E=m;return E.nss=(m.uuid||"").toLowerCase(),E}const p={scheme:"http",domainHost:!0,parse:a,serialize:s},g={scheme:"https",domainHost:p.domainHost,parse:a,serialize:s},y={scheme:"ws",domainHost:!0,parse:o,serialize:c},_={scheme:"wss",domainHost:y.domainHost,parse:y.parse,serialize:y.serialize},T={http:p,https:g,ws:y,wss:_,urn:{scheme:"urn",parse:u,serialize:l,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:d,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(T,null);function I(m){return m&&(T[m]||T[m.toLowerCase()])||void 0}return yp={wsIsSecure:i,SCHEMES:T,isValidSchemeName:n,getSchemeHandler:I},yp}var CS;function b3(){if(CS)return So.exports;CS=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,escapePreservingEscapes:a,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:c}=$j(),{SCHEMES:u,getSchemeHandler:l}=E3();function d(N,j){return typeof N=="string"?N=I(N,j):typeof N=="object"&&(N=T(y(N,j),j)),N}function f(N,j,$){const B=$?Object.assign({scheme:"null"},$):{scheme:"null"},V=p(T(N,B),T(j,B),B,!0);return B.skipEscape=!0,y(V,B)}function p(N,j,$,B){const V={};return B||(N=T(y(N,$),$),j=T(y(j,$),$)),$=$||{},!$.tolerant&&j.scheme?(V.scheme=j.scheme,V.userinfo=j.userinfo,V.host=j.host,V.port=j.port,V.path=t(j.path||""),V.query=j.query):(j.userinfo!==void 0||j.host!==void 0||j.port!==void 0?(V.userinfo=j.userinfo,V.host=j.host,V.port=j.port,V.path=t(j.path||""),V.query=j.query):(j.path?(j.path[0]==="/"?V.path=t(j.path):((N.userinfo!==void 0||N.host!==void 0||N.port!==void 0)&&!N.path?V.path="/"+j.path:N.path?V.path=N.path.slice(0,N.path.lastIndexOf("/")+1)+j.path:V.path=j.path,V.path=t(V.path)),V.query=j.query):(V.path=N.path,j.query!==void 0?V.query=j.query:V.query=N.query),V.userinfo=N.userinfo,V.host=N.host,V.port=N.port),V.scheme=N.scheme),V.fragment=j.fragment,V}function g(N,j,$){const B=E(N,$),V=E(j,$);return B!==void 0&&V!==void 0&&B.toLowerCase()===V.toLowerCase()}function y(N,j){const $={host:N.host,scheme:N.scheme,userinfo:N.userinfo,port:N.port,path:N.path,query:N.query,nid:N.nid,nss:N.nss,uuid:N.uuid,fragment:N.fragment,reference:N.reference,resourceName:N.resourceName,secure:N.secure,error:""},B=Object.assign({},j),V=[],H=l(B.scheme||$.scheme);H&&H.serialize&&H.serialize($,B),$.path!==void 0&&(B.skipEscape?$.path=n($.path):($.path=a($.path),$.scheme!==void 0&&($.path=$.path.split("%3A").join(":")))),B.reference!=="suffix"&&$.scheme&&V.push($.scheme,":");const F=r($);if(F!==void 0&&(B.reference!=="suffix"&&V.push("//"),V.push(F),$.path&&$.path[0]!=="/"&&V.push("/")),$.path!==void 0){let te=$.path;!B.absolutePath&&(!H||!H.absolutePath)&&(te=t(te)),F===void 0&&te[0]==="/"&&te[1]==="/"&&(te="/%2F"+te.slice(2)),V.push(te)}return $.query!==void 0&&V.push("?",$.query),$.fragment!==void 0&&V.push("#",$.fragment),V.join("")}const _=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function R(N,j){if(j[2]!==void 0&&N.path&&N.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof N.port=="number"&&(N.port<0||N.port>65535))return"URI port is malformed."}function h(N,j){const $=Object.assign({},j),B={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let V=!1,H=!1;$.reference==="suffix"&&($.scheme?N=$.scheme+":"+N:N="//"+N);const F=N.match(_);if(F){B.scheme=F[1],B.userinfo=F[3],B.host=F[4],B.port=parseInt(F[5],10),B.path=F[6]||"",B.query=F[7],B.fragment=F[8],isNaN(B.port)&&(B.port=F[5]);const te=R(B,F);if(te!==void 0&&(B.error=B.error||te,V=!0),B.host)if(o(B.host)===!1){const J=e(B.host);B.host=J.host.toLowerCase(),H=J.isIPV6}else H=!0;B.scheme===void 0&&B.userinfo===void 0&&B.host===void 0&&B.port===void 0&&B.query===void 0&&!B.path?B.reference="same-document":B.scheme===void 0?B.reference="relative":B.fragment===void 0?B.reference="absolute":B.reference="uri",$.reference&&$.reference!=="suffix"&&$.reference!==B.reference&&(B.error=B.error||"URI is not a "+$.reference+" reference.");const ie=l($.scheme||B.scheme);if(!$.unicodeSupport&&(!ie||!ie.unicodeSupport)&&B.host&&($.domainHost||ie&&ie.domainHost)&&H===!1&&c(B.host))try{B.host=new URL("http://"+B.host).hostname}catch(Z){B.error=B.error||"Host's domain name can not be converted to ASCII: "+Z}if((!ie||ie&&!ie.skipNormalize)&&(N.indexOf("%")!==-1&&(B.scheme!==void 0&&(B.scheme=unescape(B.scheme)),B.host!==void 0&&(B.host=s(unescape(B.host),H))),B.path&&(B.path=i(B.path)),B.fragment))try{B.fragment=encodeURI(decodeURIComponent(B.fragment))}catch{B.error=B.error||"URI malformed"}ie&&ie.parse&&ie.parse(B,$)}else B.error=B.error||"URI can not be parsed.";return{parsed:B,malformedAuthorityOrPort:V}}function T(N,j){return h(N,j).parsed}function I(N,j){return m(N,j).normalized}function m(N,j){const{parsed:$,malformedAuthorityOrPort:B}=h(N,j);return{normalized:B?N:y($,j),malformedAuthorityOrPort:B}}function E(N,j){if(typeof N=="string"){const{normalized:$,malformedAuthorityOrPort:B}=m(N,j);return B?void 0:$}if(typeof N=="object")return y(N,j)}const b={SCHEMES:u,normalize:d,resolve:f,resolveComponent:p,equal:g,serialize:y,parse:T};return So.exports=b,So.exports.default=b,So.exports.fastUri=b,So.exports}var MS;function S3(){if(MS)return ul;MS=1,Object.defineProperty(ul,"__esModule",{value:!0});const e=b3();return e.code='require("ajv/dist/runtime/uri").default',ul.default=e,ul}var jS;function T3(){return jS||(jS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Kc();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ke();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=OE(),i=af(),a=Dj(),s=NE(),o=Ke(),c=nf(),u=Bd(),l=ht(),d=v3,f=S3(),p=(q,M)=>new RegExp(q,M);p.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),_={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},R={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},h=200;function T(q){var M,U,W,C,k,ee,Ee,me,Se,we,ae,ue,fe,pe,be,Ae,qe,We,tt,Xe,ut,Ht,It,tr,Rt;const mr=q.strict,yr=(M=q.code)===null||M===void 0?void 0:M.optimize,yt=yr===!0||yr===void 0?1:yr||0,Fr=(W=(U=q.code)===null||U===void 0?void 0:U.regExp)!==null&&W!==void 0?W:p,L=(C=q.uriResolver)!==null&&C!==void 0?C:f.default;return{strictSchema:(ee=(k=q.strictSchema)!==null&&k!==void 0?k:mr)!==null&&ee!==void 0?ee:!0,strictNumbers:(me=(Ee=q.strictNumbers)!==null&&Ee!==void 0?Ee:mr)!==null&&me!==void 0?me:!0,strictTypes:(we=(Se=q.strictTypes)!==null&&Se!==void 0?Se:mr)!==null&&we!==void 0?we:"log",strictTuples:(ue=(ae=q.strictTuples)!==null&&ae!==void 0?ae:mr)!==null&&ue!==void 0?ue:"log",strictRequired:(pe=(fe=q.strictRequired)!==null&&fe!==void 0?fe:mr)!==null&&pe!==void 0?pe:!1,code:q.code?{...q.code,optimize:yt,regExp:Fr}:{optimize:yt,regExp:Fr},loopRequired:(be=q.loopRequired)!==null&&be!==void 0?be:h,loopEnum:(Ae=q.loopEnum)!==null&&Ae!==void 0?Ae:h,meta:(qe=q.meta)!==null&&qe!==void 0?qe:!0,messages:(We=q.messages)!==null&&We!==void 0?We:!0,inlineRefs:(tt=q.inlineRefs)!==null&&tt!==void 0?tt:!0,schemaId:(Xe=q.schemaId)!==null&&Xe!==void 0?Xe:"$id",addUsedSchema:(ut=q.addUsedSchema)!==null&&ut!==void 0?ut:!0,validateSchema:(Ht=q.validateSchema)!==null&&Ht!==void 0?Ht:!0,validateFormats:(It=q.validateFormats)!==null&&It!==void 0?It:!0,unicodeRegExp:(tr=q.unicodeRegExp)!==null&&tr!==void 0?tr:!0,int32range:(Rt=q.int32range)!==null&&Rt!==void 0?Rt:!0,uriResolver:L}}class I{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...T(M)};const{es5:U,lines:W}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:y,es5:U,lines:W}),this.logger=V(M.logger);const C=M.validateFormats;M.validateFormats=!1,this.RULES=(0,a.getRules)(),m.call(this,_,M,"NOT SUPPORTED"),m.call(this,R,M,"DEPRECATED","warn"),this._metaOpts=$.call(this),M.formats&&N.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&j.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),b.call(this),M.validateFormats=C}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:U,schemaId:W}=this.opts;let C=d;W==="id"&&(C={...d},C.id=C.$id,delete C.$id),U&&M&&this.addMetaSchema(C,C[W],!1)}defaultMeta(){const{meta:M,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[U]||M:void 0}validate(M,U){let W;if(typeof M=="string"){if(W=this.getSchema(M),!W)throw new Error(`no schema with key or ref "${M}"`)}else W=this.compile(M);const C=W(U);return"$async"in W||(this.errors=W.errors),C}compile(M,U){const W=this._addSchema(M,U);return W.validate||this._compileSchemaEnv(W)}compileAsync(M,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:W}=this.opts;return C.call(this,M,U);async function C(we,ae){await k.call(this,we.$schema);const ue=this._addSchema(we,ae);return ue.validate||ee.call(this,ue)}async function k(we){we&&!this.getSchema(we)&&await C.call(this,{$ref:we},!0)}async function ee(we){try{return this._compileSchemaEnv(we)}catch(ae){if(!(ae instanceof i.default))throw ae;return Ee.call(this,ae),await me.call(this,ae.missingSchema),ee.call(this,we)}}function Ee({missingSchema:we,missingRef:ae}){if(this.refs[we])throw new Error(`AnySchema ${we} is loaded but ${ae} cannot be resolved`)}async function me(we){const ae=await Se.call(this,we);this.refs[we]||await k.call(this,ae.$schema),this.refs[we]||this.addSchema(ae,we,U)}async function Se(we){const ae=this._loading[we];if(ae)return ae;try{return await(this._loading[we]=W(we))}finally{delete this._loading[we]}}}addSchema(M,U,W,C=this.opts.validateSchema){if(Array.isArray(M)){for(const ee of M)this.addSchema(ee,void 0,W,C);return this}let k;if(typeof M=="object"){const{schemaId:ee}=this.opts;if(k=M[ee],k!==void 0&&typeof k!="string")throw new Error(`schema ${ee} must be string`)}return U=(0,c.normalizeId)(U||k),this._checkUnique(U),this.schemas[U]=this._addSchema(M,W,U,C,!0),this}addMetaSchema(M,U,W=this.opts.validateSchema){return this.addSchema(M,U,!0,W),this}validateSchema(M,U){if(typeof M=="boolean")return!0;let W;if(W=M.$schema,W!==void 0&&typeof W!="string")throw new Error("$schema must be a string");if(W=W||this.opts.defaultMeta||this.defaultMeta(),!W)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const C=this.validate(W,M);if(!C&&U){const k="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(k);else throw new Error(k)}return C}getSchema(M){let U;for(;typeof(U=E.call(this,M))=="string";)M=U;if(U===void 0){const{schemaId:W}=this.opts,C=new s.SchemaEnv({schema:{},schemaId:W});if(U=s.resolveSchema.call(this,C,M),!U)return;this.refs[M]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=E.call(this,M);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const U=M;this._cache.delete(U);let W=M[this.opts.schemaId];return W&&(W=(0,c.normalizeId)(W),delete this.schemas[W],delete this.refs[W]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const U of M)this.addKeyword(U);return this}addKeyword(M,U){let W;if(typeof M=="string")W=M,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=W);else if(typeof M=="object"&&U===void 0){if(U=M,W=U.keyword,Array.isArray(W)&&!W.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(F.call(this,W,U),!U)return(0,l.eachItem)(W,k=>te.call(this,k)),this;Z.call(this,U);const C={...U,type:(0,u.getJSONTypes)(U.type),schemaType:(0,u.getJSONTypes)(U.schemaType)};return(0,l.eachItem)(W,C.type.length===0?k=>te.call(this,k,C):k=>C.type.forEach(ee=>te.call(this,k,C,ee))),this}getKeyword(M){const U=this.RULES.all[M];return typeof U=="object"?U.definition:!!U}removeKeyword(M){const{RULES:U}=this;delete U.keywords[M],delete U.all[M];for(const W of U.rules){const C=W.rules.findIndex(k=>k.keyword===M);C>=0&&W.rules.splice(C,1)}return this}addFormat(M,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[M]=U,this}errorsText(M=this.errors,{separator:U=", ",dataVar:W="data"}={}){return!M||M.length===0?"No errors":M.map(C=>`${W}${C.instancePath} ${C.message}`).reduce((C,k)=>C+U+k)}$dataMetaSchema(M,U){const W=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const C of U){const k=C.split("/").slice(1);let ee=M;for(const Ee of k)ee=ee[Ee];for(const Ee in W){const me=W[Ee];if(typeof me!="object")continue;const{$data:Se}=me.definition,we=ee[Ee];Se&&we&&(ee[Ee]=K(we))}}return M}_removeAllSchemas(M,U){for(const W in M){const C=M[W];(!U||U.test(W))&&(typeof C=="string"?delete M[W]:C&&!C.meta&&(this._cache.delete(C.schema),delete M[W]))}}_addSchema(M,U,W,C=this.opts.validateSchema,k=this.opts.addUsedSchema){let ee;const{schemaId:Ee}=this.opts;if(typeof M=="object")ee=M[Ee];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let me=this._cache.get(M);if(me!==void 0)return me;W=(0,c.normalizeId)(ee||W);const Se=c.getSchemaRefs.call(this,M,W);return me=new s.SchemaEnv({schema:M,schemaId:Ee,meta:U,baseId:W,localRefs:Se}),this._cache.set(me.schema,me),k&&!W.startsWith("#")&&(W&&this._checkUnique(W),this.refs[W]=me),C&&this.validateSchema(M,!0),me}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):s.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const U=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,M)}finally{this.opts=U}}}I.ValidationError=n.default,I.MissingRefError=i.default,e.default=I;function m(q,M,U,W="error"){for(const C in q){const k=C;k in M&&this.logger[W](`${U}: option ${C}. ${q[k]}`)}}function E(q){return q=(0,c.normalizeId)(q),this.schemas[q]||this.refs[q]}function b(){const q=this.opts.schemas;if(q)if(Array.isArray(q))this.addSchema(q);else for(const M in q)this.addSchema(q[M],M)}function N(){for(const q in this.opts.formats){const M=this.opts.formats[q];M&&this.addFormat(q,M)}}function j(q){if(Array.isArray(q)){this.addVocabulary(q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in q){const U=q[M];U.keyword||(U.keyword=M),this.addKeyword(U)}}function $(){const q={...this.opts};for(const M of g)delete q[M];return q}const B={log(){},warn(){},error(){}};function V(q){if(q===!1)return B;if(q===void 0)return console;if(q.log&&q.warn&&q.error)return q;throw new Error("logger must implement log, warn and error methods")}const H=/^[a-z_$][a-z0-9_$:-]*$/i;function F(q,M){const{RULES:U}=this;if((0,l.eachItem)(q,W=>{if(U.keywords[W])throw new Error(`Keyword ${W} is already defined`);if(!H.test(W))throw new Error(`Keyword ${W} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function te(q,M,U){var W;const C=M==null?void 0:M.post;if(U&&C)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:k}=this;let ee=C?k.post:k.rules.find(({type:me})=>me===U);if(ee||(ee={type:U,rules:[]},k.rules.push(ee)),k.keywords[q]=!0,!M)return;const Ee={keyword:q,definition:{...M,type:(0,u.getJSONTypes)(M.type),schemaType:(0,u.getJSONTypes)(M.schemaType)}};M.before?ie.call(this,ee,Ee,M.before):ee.rules.push(Ee),k.all[q]=Ee,(W=M.implements)===null||W===void 0||W.forEach(me=>this.addKeyword(me))}function ie(q,M,U){const W=q.rules.findIndex(C=>C.keyword===U);W>=0?q.rules.splice(W,0,M):(q.rules.push(M),this.logger.warn(`rule ${U} is not defined`))}function Z(q){let{metaSchema:M}=q;M!==void 0&&(q.$data&&this.opts.$data&&(M=K(M)),q.validateSchema=this.compile(M,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function K(q){return{anyOf:[q,J]}}})(cp)),cp}var ll={},dl={},fl={},DS;function w3(){if(DS)return fl;DS=1,Object.defineProperty(fl,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return fl.default=e,fl}var Ei={},LS;function I3(){if(LS)return Ei;LS=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.callRef=Ei.getValidate=void 0;const e=af(),t=En(),r=Ke(),n=mi(),i=NE(),a=ht(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:l,schema:d,it:f}=u,{baseId:p,schemaEnv:g,validateName:y,opts:_,self:R}=f,{root:h}=g;if((d==="#"||d==="#/")&&p===h.baseId)return I();const T=i.resolveRef.call(R,h,p,d);if(T===void 0)throw new e.default(f.opts.uriResolver,p,d);if(T instanceof i.SchemaEnv)return m(T);return E(T);function I(){if(g===h)return c(u,y,g,g.$async);const b=l.scopeValue("root",{ref:h});return c(u,(0,r._)`${b}.validate`,h,h.$async)}function m(b){const N=o(u,b);c(u,N,b,b.$async)}function E(b){const N=l.scopeValue("schema",_.code.source===!0?{ref:b,code:(0,r.stringify)(b)}:{ref:b}),j=l.name("valid"),$=u.subschema({schema:b,dataTypes:[],schemaPath:r.nil,topSchemaRef:N,errSchemaPath:d},j);u.mergeEvaluated($),u.ok(j)}}};function o(u,l){const{gen:d}=u;return l.validate?d.scopeValue("validate",{ref:l.validate}):(0,r._)`${d.scopeValue("wrapper",{ref:l})}.validate`}Ei.getValidate=o;function c(u,l,d,f){const{gen:p,it:g}=u,{allErrors:y,schemaEnv:_,opts:R}=g,h=R.passContext?n.default.this:r.nil;f?T():I();function T(){if(!_.$async)throw new Error("async schema referenced by sync schema");const b=p.let("valid");p.try(()=>{p.code((0,r._)`await ${(0,t.callValidateCode)(u,l,h)}`),E(l),y||p.assign(b,!0)},N=>{p.if((0,r._)`!(${N} instanceof ${g.ValidationError})`,()=>p.throw(N)),m(N),y||p.assign(b,!1)}),u.ok(b)}function I(){u.result((0,t.callValidateCode)(u,l,h),()=>E(l),()=>m(l))}function m(b){const N=(0,r._)`${b}.errors`;p.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${N} : ${n.default.vErrors}.concat(${N})`),p.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function E(b){var N;if(!g.opts.unevaluated)return;const j=(N=d==null?void 0:d.validate)===null||N===void 0?void 0:N.evaluated;if(g.props!==!0)if(j&&!j.dynamicProps)j.props!==void 0&&(g.props=a.mergeEvaluated.props(p,j.props,g.props));else{const $=p.var("props",(0,r._)`${b}.evaluated.props`);g.props=a.mergeEvaluated.props(p,$,g.props,r.Name)}if(g.items!==!0)if(j&&!j.dynamicItems)j.items!==void 0&&(g.items=a.mergeEvaluated.items(p,j.items,g.items));else{const $=p.var("items",(0,r._)`${b}.evaluated.items`);g.items=a.mergeEvaluated.items(p,$,g.items,r.Name)}}}return Ei.callRef=c,Ei.default=s,Ei}var $S;function R3(){if($S)return dl;$S=1,Object.defineProperty(dl,"__esModule",{value:!0});const e=w3(),t=I3(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return dl.default=r,dl}var pl={},hl={},kS;function A3(){if(kS)return hl;kS=1,Object.defineProperty(hl,"__esModule",{value:!0});const e=Ke(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:a,schemaCode:s})=>(0,e.str)`must be ${r[a].okStr} ${s}`,params:({keyword:a,schemaCode:s})=>(0,e._)`{comparison: ${r[a].okStr}, limit: ${s}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{keyword:s,data:o,schemaCode:c}=a;a.fail$data((0,e._)`${o} ${r[s].fail} ${c} || isNaN(${o})`)}};return hl.default=i,hl}var ml={},qS;function O3(){if(qS)return ml;qS=1,Object.defineProperty(ml,"__esModule",{value:!0});const e=Ke(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:a,schemaCode:s,it:o}=n,c=o.opts.multipleOfPrecision,u=i.let("res"),l=c?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,e._)`${u} !== parseInt(${u})`;n.fail$data((0,e._)`(${s} === 0 || (${u} = ${a}/${s}, ${l}))`)}};return ml.default=r,ml}var yl={},gl={},BS;function N3(){if(BS)return gl;BS=1,Object.defineProperty(gl,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,i=0,a;for(;i<r;)n++,a=t.charCodeAt(i++),a>=55296&&a<=56319&&i<r&&(a=t.charCodeAt(i),(a&64512)===56320&&i++);return n}return gl.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',gl}var US;function P3(){if(US)return yl;US=1,Object.defineProperty(yl,"__esModule",{value:!0});const e=Ke(),t=ht(),r=N3(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:s}){const o=a==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${s} characters`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:s,data:o,schemaCode:c,it:u}=a,l=s==="maxLength"?e.operators.GT:e.operators.LT,d=u.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(a.gen,r.default)}(${o})`;a.fail$data((0,e._)`${d} ${l} ${c}`)}};return yl.default=i,yl}var _l={},FS;function C3(){if(FS)return _l;FS=1,Object.defineProperty(_l,"__esModule",{value:!0});const e=En(),t=ht(),r=Ke(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,r.str)`must match pattern "${a}"`,params:({schemaCode:a})=>(0,r._)`{pattern: ${a}}`},code(a){const{gen:s,data:o,$data:c,schema:u,schemaCode:l,it:d}=a,f=d.opts.unicodeRegExp?"u":"";if(c){const{regExp:p}=d.opts.code,g=p.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,p),y=s.let("valid");s.try(()=>s.assign(y,(0,r._)`${g}(${l}, ${f}).test(${o})`),()=>s.assign(y,!1)),a.fail$data((0,r._)`!${y}`)}else{const p=(0,e.usePattern)(a,u);a.fail$data((0,r._)`!${p}.test(${o})`)}}};return _l.default=i,_l}var vl={},HS;function M3(){if(HS)return vl;HS=1,Object.defineProperty(vl,"__esModule",{value:!0});const e=Ke(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:s}=n,o=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${a}).length ${o} ${s}`)}};return vl.default=r,vl}var El={},VS;function j3(){if(VS)return El;VS=1,Object.defineProperty(El,"__esModule",{value:!0});const e=En(),t=Ke(),r=ht(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,t.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,t._)`{missingProperty: ${a}}`},code(a){const{gen:s,schema:o,schemaCode:c,data:u,$data:l,it:d}=a,{opts:f}=d;if(!l&&o.length===0)return;const p=o.length>=f.loopRequired;if(d.allErrors?g():y(),f.strictRequired){const h=a.parentSchema.properties,{definedProperties:T}=a.it;for(const I of o)if((h==null?void 0:h[I])===void 0&&!T.has(I)){const m=d.schemaEnv.baseId+d.errSchemaPath,E=`required property "${I}" is not defined at "${m}" (strictRequired)`;(0,r.checkStrictMode)(d,E,d.opts.strictRequired)}}function g(){if(p||l)a.block$data(t.nil,_);else for(const h of o)(0,e.checkReportMissingProp)(a,h)}function y(){const h=s.let("missing");if(p||l){const T=s.let("valid",!0);a.block$data(T,()=>R(h,T)),a.ok(T)}else s.if((0,e.checkMissingProp)(a,o,h)),(0,e.reportMissingProp)(a,h),s.else()}function _(){s.forOf("prop",c,h=>{a.setParams({missingProperty:h}),s.if((0,e.noPropertyInData)(s,u,h,f.ownProperties),()=>a.error())})}function R(h,T){a.setParams({missingProperty:h}),s.forOf(h,c,()=>{s.assign(T,(0,e.propertyInData)(s,u,h,f.ownProperties)),s.if((0,t.not)(T),()=>{a.error(),s.break()})},t.nil)}}};return El.default=i,El}var bl={},xS;function D3(){if(xS)return bl;xS=1,Object.defineProperty(bl,"__esModule",{value:!0});const e=Ke(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:s}=n,o=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${a}.length ${o} ${s}`)}};return bl.default=r,bl}var Sl={},Tl={},GS;function PE(){if(GS)return Tl;GS=1,Object.defineProperty(Tl,"__esModule",{value:!0});const e=AE();return e.code='require("ajv/dist/runtime/equal").default',Tl.default=e,Tl}var zS;function L3(){if(zS)return Sl;zS=1,Object.defineProperty(Sl,"__esModule",{value:!0});const e=Bd(),t=Ke(),r=ht(),n=PE(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:o}})=>(0,t.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,params:({params:{i:s,j:o}})=>(0,t._)`{i: ${s}, j: ${o}}`},code(s){const{gen:o,data:c,$data:u,schema:l,parentSchema:d,schemaCode:f,it:p}=s;if(!u&&!l)return;const g=o.let("valid"),y=d.items?(0,e.getSchemaTypes)(d.items):[];s.block$data(g,_,(0,t._)`${f} === false`),s.ok(g);function _(){const I=o.let("i",(0,t._)`${c}.length`),m=o.let("j");s.setParams({i:I,j:m}),o.assign(g,!0),o.if((0,t._)`${I} > 1`,()=>(R()?h:T)(I,m))}function R(){return y.length>0&&!y.some(I=>I==="object"||I==="array")}function h(I,m){const E=o.name("item"),b=(0,e.checkDataTypes)(y,E,p.opts.strictNumbers,e.DataType.Wrong),N=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${I}--;`,()=>{o.let(E,(0,t._)`${c}[${I}]`),o.if(b,(0,t._)`continue`),y.length>1&&o.if((0,t._)`typeof ${E} == "string"`,(0,t._)`${E} += "_"`),o.if((0,t._)`typeof ${N}[${E}] == "number"`,()=>{o.assign(m,(0,t._)`${N}[${E}]`),s.error(),o.assign(g,!1).break()}).code((0,t._)`${N}[${E}] = ${I}`)})}function T(I,m){const E=(0,r.useFunc)(o,n.default),b=o.name("outer");o.label(b).for((0,t._)`;${I}--;`,()=>o.for((0,t._)`${m} = ${I}; ${m}--;`,()=>o.if((0,t._)`${E}(${c}[${I}], ${c}[${m}])`,()=>{s.error(),o.assign(g,!1).break(b)})))}}};return Sl.default=a,Sl}var wl={},WS;function $3(){if(WS)return wl;WS=1,Object.defineProperty(wl,"__esModule",{value:!0});const e=Ke(),t=ht(),r=PE(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:a})=>(0,e._)`{allowedValue: ${a}}`},code(a){const{gen:s,data:o,$data:c,schemaCode:u,schema:l}=a;c||l&&typeof l=="object"?a.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${o}, ${u})`):a.fail((0,e._)`${l} !== ${o}`)}};return wl.default=i,wl}var Il={},YS;function k3(){if(YS)return Il;YS=1,Object.defineProperty(Il,"__esModule",{value:!0});const e=Ke(),t=ht(),r=PE(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,e._)`{allowedValues: ${a}}`},code(a){const{gen:s,data:o,$data:c,schema:u,schemaCode:l,it:d}=a;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const f=u.length>=d.opts.loopEnum;let p;const g=()=>p??(p=(0,t.useFunc)(s,r.default));let y;if(f||c)y=s.let("valid"),a.block$data(y,_);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const h=s.const("vSchema",l);y=(0,e.or)(...u.map((T,I)=>R(h,I)))}a.pass(y);function _(){s.assign(y,!1),s.forOf("v",l,h=>s.if((0,e._)`${g()}(${o}, ${h})`,()=>s.assign(y,!0).break()))}function R(h,T){const I=u[T];return typeof I=="object"&&I!==null?(0,e._)`${g()}(${o}, ${h}[${T}])`:(0,e._)`${o} === ${I}`}}};return Il.default=i,Il}var KS;function q3(){if(KS)return pl;KS=1,Object.defineProperty(pl,"__esModule",{value:!0});const e=A3(),t=O3(),r=P3(),n=C3(),i=M3(),a=j3(),s=D3(),o=L3(),c=$3(),u=k3(),l=[e.default,t.default,r.default,n.default,i.default,a.default,s.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return pl.default=l,pl}var Rl={},us={},XS;function kj(){if(XS)return us;XS=1,Object.defineProperty(us,"__esModule",{value:!0}),us.validateAdditionalItems=void 0;const e=Ke(),t=ht(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{parentSchema:s,it:o}=a,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(a,c)}};function i(a,s){const{gen:o,schema:c,data:u,keyword:l,it:d}=a;d.items=!0;const f=o.const("len",(0,e._)`${u}.length`);if(c===!1)a.setParams({len:s.length}),a.pass((0,e._)`${f} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(d,c)){const g=o.var("valid",(0,e._)`${f} <= ${s.length}`);o.if((0,e.not)(g),()=>p(g)),a.ok(g)}function p(g){o.forRange("i",s.length,f,y=>{a.subschema({keyword:l,dataProp:y,dataPropType:t.Type.Num},g),d.allErrors||o.if((0,e.not)(g),()=>o.break())})}}return us.validateAdditionalItems=i,us.default=n,us}var Al={},ls={},JS;function qj(){if(JS)return ls;JS=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.validateTuple=void 0;const e=Ke(),t=ht(),r=En(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:s,it:o}=a;if(Array.isArray(s))return i(a,"additionalItems",s);o.items=!0,!(0,t.alwaysValidSchema)(o,s)&&a.ok((0,r.validateArray)(a))}};function i(a,s,o=a.schema){const{gen:c,parentSchema:u,data:l,keyword:d,it:f}=a;y(u),f.opts.unevaluated&&o.length&&f.items!==!0&&(f.items=t.mergeEvaluated.items(c,o.length,f.items));const p=c.name("valid"),g=c.const("len",(0,e._)`${l}.length`);o.forEach((_,R)=>{(0,t.alwaysValidSchema)(f,_)||(c.if((0,e._)`${g} > ${R}`,()=>a.subschema({keyword:d,schemaProp:R,dataProp:R},p)),a.ok(p))});function y(_){const{opts:R,errSchemaPath:h}=f,T=o.length,I=T===_.minItems&&(T===_.maxItems||_[s]===!1);if(R.strictTuples&&!I){const m=`"${d}" is ${T}-tuple, but minItems or maxItems/${s} are not specified or different at path "${h}"`;(0,t.checkStrictMode)(f,m,R.strictTuples)}}}return ls.validateTuple=i,ls.default=n,ls}var QS;function B3(){if(QS)return Al;QS=1,Object.defineProperty(Al,"__esModule",{value:!0});const e=qj(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Al.default=t,Al}var Ol={},ZS;function U3(){if(ZS)return Ol;ZS=1,Object.defineProperty(Ol,"__esModule",{value:!0});const e=Ke(),t=ht(),r=En(),n=kj(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:o,parentSchema:c,it:u}=s,{prefixItems:l}=c;u.items=!0,!(0,t.alwaysValidSchema)(u,o)&&(l?(0,n.validateAdditionalItems)(s,l):s.ok((0,r.validateArray)(s)))}};return Ol.default=a,Ol}var Nl={},e1;function F3(){if(e1)return Nl;e1=1,Object.defineProperty(Nl,"__esModule",{value:!0});const e=Ke(),t=ht(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:a}})=>a===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${a} valid item(s)`,params:({params:{min:i,max:a}})=>a===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${a}}`},code(i){const{gen:a,schema:s,parentSchema:o,data:c,it:u}=i;let l,d;const{minContains:f,maxContains:p}=o;u.opts.next?(l=f===void 0?1:f,d=p):l=1;const g=a.const("len",(0,e._)`${c}.length`);if(i.setParams({min:l,max:d}),d===void 0&&l===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(d!==void 0&&l>d){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(u,s)){let T=(0,e._)`${g} >= ${l}`;d!==void 0&&(T=(0,e._)`${T} && ${g} <= ${d}`),i.pass(T);return}u.items=!0;const y=a.name("valid");d===void 0&&l===1?R(y,()=>a.if(y,()=>a.break())):l===0?(a.let(y,!0),d!==void 0&&a.if((0,e._)`${c}.length > 0`,_)):(a.let(y,!1),_()),i.result(y,()=>i.reset());function _(){const T=a.name("_valid"),I=a.let("count",0);R(T,()=>a.if(T,()=>h(I)))}function R(T,I){a.forRange("i",0,g,m=>{i.subschema({keyword:"contains",dataProp:m,dataPropType:t.Type.Num,compositeRule:!0},T),I()})}function h(T){a.code((0,e._)`${T}++`),d===void 0?a.if((0,e._)`${T} >= ${l}`,()=>a.assign(y,!0).break()):(a.if((0,e._)`${T} > ${d}`,()=>a.assign(y,!1).break()),l===1?a.assign(y,!0):a.if((0,e._)`${T} >= ${l}`,()=>a.assign(y,!0)))}}};return Nl.default=n,Nl}var gp={},t1;function H3(){return t1||(t1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ke(),r=ht(),n=En();e.error={message:({params:{property:c,depsCount:u,deps:l}})=>{const d=u===1?"property":"properties";return(0,t.str)`must have ${d} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:l,missingProperty:d}})=>(0,t._)`{property: ${c},
|
|
55
|
+
missingProperty: ${d},
|
|
56
|
+
depsCount: ${u},
|
|
57
|
+
deps: ${l}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[u,l]=a(c);s(c,u),o(c,l)}};function a({schema:c}){const u={},l={};for(const d in c){if(d==="__proto__")continue;const f=Array.isArray(c[d])?u:l;f[d]=c[d]}return[u,l]}function s(c,u=c.schema){const{gen:l,data:d,it:f}=c;if(Object.keys(u).length===0)return;const p=l.let("missing");for(const g in u){const y=u[g];if(y.length===0)continue;const _=(0,n.propertyInData)(l,d,g,f.opts.ownProperties);c.setParams({property:g,depsCount:y.length,deps:y.join(", ")}),f.allErrors?l.if(_,()=>{for(const R of y)(0,n.checkReportMissingProp)(c,R)}):(l.if((0,t._)`${_} && (${(0,n.checkMissingProp)(c,y,p)})`),(0,n.reportMissingProp)(c,p),l.else())}}e.validatePropertyDeps=s;function o(c,u=c.schema){const{gen:l,data:d,keyword:f,it:p}=c,g=l.name("valid");for(const y in u)(0,r.alwaysValidSchema)(p,u[y])||(l.if((0,n.propertyInData)(l,d,y,p.opts.ownProperties),()=>{const _=c.subschema({keyword:f,schemaProp:y},g);c.mergeValidEvaluated(_,g)},()=>l.var(g,!0)),c.ok(g))}e.validateSchemaDeps=o,e.default=i})(gp)),gp}var Pl={},r1;function V3(){if(r1)return Pl;r1=1,Object.defineProperty(Pl,"__esModule",{value:!0});const e=Ke(),t=ht(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:a,schema:s,data:o,it:c}=i;if((0,t.alwaysValidSchema)(c,s))return;const u=a.name("valid");a.forIn("key",o,l=>{i.setParams({propertyName:l}),i.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},u),a.if((0,e.not)(u),()=>{i.error(!0),c.allErrors||a.break()})}),i.ok(u)}};return Pl.default=n,Pl}var Cl={},n1;function Bj(){if(n1)return Cl;n1=1,Object.defineProperty(Cl,"__esModule",{value:!0});const e=En(),t=Ke(),r=mi(),n=ht(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:o,schema:c,parentSchema:u,data:l,errsCount:d,it:f}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:p,opts:g}=f;if(f.props=!0,g.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(f,c))return;const y=(0,e.allSchemaProperties)(u.properties),_=(0,e.allSchemaProperties)(u.patternProperties);R(),s.ok((0,t._)`${d} === ${r.default.errors}`);function R(){o.forIn("key",l,E=>{!y.length&&!_.length?I(E):o.if(h(E),()=>I(E))})}function h(E){let b;if(y.length>8){const N=(0,n.schemaRefOrVal)(f,u.properties,"properties");b=(0,e.isOwnProperty)(o,N,E)}else y.length?b=(0,t.or)(...y.map(N=>(0,t._)`${E} === ${N}`)):b=t.nil;return _.length&&(b=(0,t.or)(b,..._.map(N=>(0,t._)`${(0,e.usePattern)(s,N)}.test(${E})`))),(0,t.not)(b)}function T(E){o.code((0,t._)`delete ${l}[${E}]`)}function I(E){if(g.removeAdditional==="all"||g.removeAdditional&&c===!1){T(E);return}if(c===!1){s.setParams({additionalProperty:E}),s.error(),p||o.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(f,c)){const b=o.name("valid");g.removeAdditional==="failing"?(m(E,b,!1),o.if((0,t.not)(b),()=>{s.reset(),T(E)})):(m(E,b),p||o.if((0,t.not)(b),()=>o.break()))}}function m(E,b,N){const j={keyword:"additionalProperties",dataProp:E,dataPropType:n.Type.Str};N===!1&&Object.assign(j,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(j,b)}}};return Cl.default=a,Cl}var Ml={},i1;function x3(){if(i1)return Ml;i1=1,Object.defineProperty(Ml,"__esModule",{value:!0});const e=Kc(),t=En(),r=ht(),n=Bj(),i={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:s,schema:o,parentSchema:c,data:u,it:l}=a;l.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(l,n.default,"additionalProperties"));const d=(0,t.allSchemaProperties)(o);for(const _ of d)l.definedProperties.add(_);l.opts.unevaluated&&d.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(s,(0,r.toHash)(d),l.props));const f=d.filter(_=>!(0,r.alwaysValidSchema)(l,o[_]));if(f.length===0)return;const p=s.name("valid");for(const _ of f)g(_)?y(_):(s.if((0,t.propertyInData)(s,u,_,l.opts.ownProperties)),y(_),l.allErrors||s.else().var(p,!0),s.endIf()),a.it.definedProperties.add(_),a.ok(p);function g(_){return l.opts.useDefaults&&!l.compositeRule&&o[_].default!==void 0}function y(_){a.subschema({keyword:"properties",schemaProp:_,dataProp:_},p)}}};return Ml.default=i,Ml}var jl={},a1;function G3(){if(a1)return jl;a1=1,Object.defineProperty(jl,"__esModule",{value:!0});const e=En(),t=Ke(),r=ht(),n=ht(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:s,schema:o,data:c,parentSchema:u,it:l}=a,{opts:d}=l,f=(0,e.allSchemaProperties)(o),p=f.filter(I=>(0,r.alwaysValidSchema)(l,o[I]));if(f.length===0||p.length===f.length&&(!l.opts.unevaluated||l.props===!0))return;const g=d.strictSchema&&!d.allowMatchingProperties&&u.properties,y=s.name("valid");l.props!==!0&&!(l.props instanceof t.Name)&&(l.props=(0,n.evaluatedPropsToName)(s,l.props));const{props:_}=l;R();function R(){for(const I of f)g&&h(I),l.allErrors?T(I):(s.var(y,!0),T(I),s.if(y))}function h(I){for(const m in g)new RegExp(I).test(m)&&(0,r.checkStrictMode)(l,`property ${m} matches pattern ${I} (use allowMatchingProperties)`)}function T(I){s.forIn("key",c,m=>{s.if((0,t._)`${(0,e.usePattern)(a,I)}.test(${m})`,()=>{const E=p.includes(I);E||a.subschema({keyword:"patternProperties",schemaProp:I,dataProp:m,dataPropType:n.Type.Str},y),l.opts.unevaluated&&_!==!0?s.assign((0,t._)`${_}[${m}]`,!0):!E&&!l.allErrors&&s.if((0,t.not)(y),()=>s.break())})})}}};return jl.default=i,jl}var Dl={},s1;function z3(){if(s1)return Dl;s1=1,Object.defineProperty(Dl,"__esModule",{value:!0});const e=ht(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:a}=r;if((0,e.alwaysValidSchema)(a,i)){r.fail();return}const s=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Dl.default=t,Dl}var Ll={},o1;function W3(){if(o1)return Ll;o1=1,Object.defineProperty(Ll,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:En().validateUnion,error:{message:"must match a schema in anyOf"}};return Ll.default=t,Ll}var $l={},c1;function Y3(){if(c1)return $l;c1=1,Object.defineProperty($l,"__esModule",{value:!0});const e=Ke(),t=ht(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:a,schema:s,parentSchema:o,it:c}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&o.discriminator)return;const u=s,l=a.let("valid",!1),d=a.let("passing",null),f=a.name("_valid");i.setParams({passing:d}),a.block(p),i.result(l,()=>i.reset(),()=>i.error(!0));function p(){u.forEach((g,y)=>{let _;(0,t.alwaysValidSchema)(c,g)?a.var(f,!0):_=i.subschema({keyword:"oneOf",schemaProp:y,compositeRule:!0},f),y>0&&a.if((0,e._)`${f} && ${l}`).assign(l,!1).assign(d,(0,e._)`[${d}, ${y}]`).else(),a.if(f,()=>{a.assign(l,!0),a.assign(d,y),_&&i.mergeEvaluated(_,e.Name)})})}}};return $l.default=n,$l}var kl={},u1;function K3(){if(u1)return kl;u1=1,Object.defineProperty(kl,"__esModule",{value:!0});const e=ht(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:a}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=n.name("valid");i.forEach((o,c)=>{if((0,e.alwaysValidSchema)(a,o))return;const u=r.subschema({keyword:"allOf",schemaProp:c},s);r.ok(s),r.mergeEvaluated(u)})}};return kl.default=t,kl}var ql={},l1;function X3(){if(l1)return ql;l1=1,Object.defineProperty(ql,"__esModule",{value:!0});const e=Ke(),t=ht(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,e.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,e._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:s,parentSchema:o,it:c}=a;o.then===void 0&&o.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const u=i(c,"then"),l=i(c,"else");if(!u&&!l)return;const d=s.let("valid",!0),f=s.name("_valid");if(p(),a.reset(),u&&l){const y=s.let("ifClause");a.setParams({ifClause:y}),s.if(f,g("then",y),g("else",y))}else u?s.if(f,g("then")):s.if((0,e.not)(f),g("else"));a.pass(d,()=>a.error(!0));function p(){const y=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);a.mergeEvaluated(y)}function g(y,_){return()=>{const R=a.subschema({keyword:y},f);s.assign(d,f),a.mergeValidEvaluated(R,d),_?s.assign(_,(0,e._)`${y}`):a.setParams({ifClause:y})}}}};function i(a,s){const o=a.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(a,o)}return ql.default=n,ql}var Bl={},d1;function J3(){if(d1)return Bl;d1=1,Object.defineProperty(Bl,"__esModule",{value:!0});const e=ht(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Bl.default=t,Bl}var f1;function Q3(){if(f1)return Rl;f1=1,Object.defineProperty(Rl,"__esModule",{value:!0});const e=kj(),t=B3(),r=qj(),n=U3(),i=F3(),a=H3(),s=V3(),o=Bj(),c=x3(),u=G3(),l=z3(),d=W3(),f=Y3(),p=K3(),g=X3(),y=J3();function _(R=!1){const h=[l.default,d.default,f.default,p.default,g.default,y.default,s.default,o.default,a.default,c.default,u.default];return R?h.push(t.default,n.default):h.push(e.default,r.default),h.push(i.default),h}return Rl.default=_,Rl}var Ul={},Fl={},p1;function Z3(){if(p1)return Fl;p1=1,Object.defineProperty(Fl,"__esModule",{value:!0});const e=Ke(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:a,data:s,$data:o,schema:c,schemaCode:u,it:l}=n,{opts:d,errSchemaPath:f,schemaEnv:p,self:g}=l;if(!d.validateFormats)return;o?y():_();function y(){const R=a.scopeValue("formats",{ref:g.formats,code:d.code.formats}),h=a.const("fDef",(0,e._)`${R}[${u}]`),T=a.let("fType"),I=a.let("format");a.if((0,e._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>a.assign(T,(0,e._)`${h}.type || "string"`).assign(I,(0,e._)`${h}.validate`),()=>a.assign(T,(0,e._)`"string"`).assign(I,h)),n.fail$data((0,e.or)(m(),E()));function m(){return d.strictSchema===!1?e.nil:(0,e._)`${u} && !${I}`}function E(){const b=p.$async?(0,e._)`(${h}.async ? await ${I}(${s}) : ${I}(${s}))`:(0,e._)`${I}(${s})`,N=(0,e._)`(typeof ${I} == "function" ? ${b} : ${I}.test(${s}))`;return(0,e._)`${I} && ${I} !== true && ${T} === ${i} && !${N}`}}function _(){const R=g.formats[c];if(!R){m();return}if(R===!0)return;const[h,T,I]=E(R);h===i&&n.pass(b());function m(){if(d.strictSchema===!1){g.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${c}" ignored in schema at path "${f}"`}}function E(N){const j=N instanceof RegExp?(0,e.regexpCode)(N):d.code.formats?(0,e._)`${d.code.formats}${(0,e.getProperty)(c)}`:void 0,$=a.scopeValue("formats",{key:c,ref:N,code:j});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,e._)`${$}.validate`]:["string",N,$]}function b(){if(typeof R=="object"&&!(R instanceof RegExp)&&R.async){if(!p.$async)throw new Error("async format in sync schema");return(0,e._)`await ${I}(${s})`}return typeof T=="function"?(0,e._)`${I}(${s})`:(0,e._)`${I}.test(${s})`}}}};return Fl.default=r,Fl}var h1;function eH(){if(h1)return Ul;h1=1,Object.defineProperty(Ul,"__esModule",{value:!0});const t=[Z3().default];return Ul.default=t,Ul}var Vi={},m1;function tH(){return m1||(m1=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.contentVocabulary=Vi.metadataVocabulary=void 0,Vi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Vi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Vi}var y1;function rH(){if(y1)return ll;y1=1,Object.defineProperty(ll,"__esModule",{value:!0});const e=R3(),t=q3(),r=Q3(),n=eH(),i=tH(),a=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return ll.default=a,ll}var Hl={},To={},g1;function nH(){if(g1)return To;g1=1,Object.defineProperty(To,"__esModule",{value:!0}),To.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(To.DiscrError=e={})),To}var _1;function iH(){if(_1)return Hl;_1=1,Object.defineProperty(Hl,"__esModule",{value:!0});const e=Ke(),t=nH(),r=NE(),n=af(),i=ht(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:c}})=>o===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:o,tag:c,tagName:u}})=>(0,e._)`{error: ${o}, tag: ${u}, tagValue: ${c}}`},code(o){const{gen:c,data:u,schema:l,parentSchema:d,it:f}=o,{oneOf:p}=d;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=l.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!p)throw new Error("discriminator: requires oneOf keyword");const y=c.let("valid",!1),_=c.const("tag",(0,e._)`${u}${(0,e.getProperty)(g)}`);c.if((0,e._)`typeof ${_} == "string"`,()=>R(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:_,tagName:g})),o.ok(y);function R(){const I=T();c.if(!1);for(const m in I)c.elseIf((0,e._)`${_} === ${m}`),c.assign(y,h(I[m]));c.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:_,tagName:g}),c.endIf()}function h(I){const m=c.name("valid"),E=o.subschema({keyword:"oneOf",schemaProp:I},m);return o.mergeEvaluated(E,e.Name),m}function T(){var I;const m={},E=N(d);let b=!0;for(let B=0;B<p.length;B++){let V=p[B];if(V!=null&&V.$ref&&!(0,i.schemaHasRulesButRef)(V,f.self.RULES)){const F=V.$ref;if(V=r.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,F),V instanceof r.SchemaEnv&&(V=V.schema),V===void 0)throw new n.default(f.opts.uriResolver,f.baseId,F)}const H=(I=V==null?void 0:V.properties)===null||I===void 0?void 0:I[g];if(typeof H!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);b=b&&(E||N(V)),j(H,B)}if(!b)throw new Error(`discriminator: "${g}" must be required`);return m;function N({required:B}){return Array.isArray(B)&&B.includes(g)}function j(B,V){if(B.const)$(B.const,V);else if(B.enum)for(const H of B.enum)$(H,V);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function $(B,V){if(typeof B!="string"||B in m)throw new Error(`discriminator: "${g}" values must be unique strings`);m[B]=V}}}};return Hl.default=s,Hl}const aH="http://json-schema.org/draft-07/schema#",sH="http://json-schema.org/draft-07/schema#",oH="Core schema meta-schema",cH={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},uH=["object","boolean"],lH={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dH={$schema:aH,$id:sH,title:oH,definitions:cH,type:uH,properties:lH,default:!0};var v1;function CE(){return v1||(v1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=T3(),n=rH(),i=iH(),a=dH,s=["/properties"],o="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(g,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=Kc();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var l=Ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=OE();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=af();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(al,al.exports)),al.exports}var xo={exports:{}},Go={exports:{}},zo={exports:{}},Vl={exports:{}},E1;function fH(){return E1||(E1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke(),n=["undefined","string","number","object","function","boolean","symbol"];function i(){return{keyword:"typeof",schemaType:["string","array"],code(a){const{data:s,schema:o,schemaValue:c}=a;a.fail(typeof o=="string"?(0,r._)`typeof ${s} != ${o}`:(0,r._)`${c}.indexOf(typeof ${s}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:n},{type:"array",items:{type:"string",enum:n}}]}}}t.default=i,e.exports=i})(Vl,Vl.exports)),Vl.exports}var b1=zo.exports,S1;function pH(){return S1||(S1=1,(function(e,t){var r=b1&&b1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(fH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(zo,zo.exports)),zo.exports}var Wo={exports:{}},Uj={},sf={};sf.byteLength=yH;sf.toByteArray=_H;sf.fromByteArray=bH;var Fn=[],Jr=[],hH=typeof Uint8Array<"u"?Uint8Array:Array,_p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ds=0,mH=_p.length;ds<mH;++ds)Fn[ds]=_p[ds],Jr[_p.charCodeAt(ds)]=ds;Jr[45]=62;Jr[95]=63;function Fj(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function yH(e){var t=Fj(e),r=t[0],n=t[1];return(r+n)*3/4-n}function gH(e,t,r){return(t+r)*3/4-r}function _H(e){var t,r=Fj(e),n=r[0],i=r[1],a=new hH(gH(e,n,i)),s=0,o=i>0?n-4:n,c;for(c=0;c<o;c+=4)t=Jr[e.charCodeAt(c)]<<18|Jr[e.charCodeAt(c+1)]<<12|Jr[e.charCodeAt(c+2)]<<6|Jr[e.charCodeAt(c+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=t&255;return i===2&&(t=Jr[e.charCodeAt(c)]<<2|Jr[e.charCodeAt(c+1)]>>4,a[s++]=t&255),i===1&&(t=Jr[e.charCodeAt(c)]<<10|Jr[e.charCodeAt(c+1)]<<4|Jr[e.charCodeAt(c+2)]>>2,a[s++]=t>>8&255,a[s++]=t&255),a}function vH(e){return Fn[e>>18&63]+Fn[e>>12&63]+Fn[e>>6&63]+Fn[e&63]}function EH(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(vH(n));return i.join("")}function bH(e){for(var t,r=e.length,n=r%3,i=[],a=16383,s=0,o=r-n;s<o;s+=a)i.push(EH(e,s,s+a>o?o:s+a));return n===1?(t=e[r-1],i.push(Fn[t>>2]+Fn[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Fn[t>>10]+Fn[t>>4&63]+Fn[t<<2&63]+"=")),i.join("")}var ME={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ME.read=function(e,t,r,n,i){var a,s,o=i*8-n-1,c=(1<<o)-1,u=c>>1,l=-7,d=r?i-1:0,f=r?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-l)-1,p>>=-l,l+=o;l>0;a=a*256+e[t+d],d+=f,l-=8);for(s=a&(1<<-l)-1,a>>=-l,l+=n;l>0;s=s*256+e[t+d],d+=f,l-=8);if(a===0)a=1-u;else{if(a===c)return s?NaN:(p?-1:1)*(1/0);s=s+Math.pow(2,n),a=a-u}return(p?-1:1)*s*Math.pow(2,a-n)};ME.write=function(e,t,r,n,i,a){var s,o,c,u=a*8-i-1,l=(1<<u)-1,d=l>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,g=n?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+d>=1?t+=f/c:t+=f*Math.pow(2,1-d),t*c>=2&&(s++,c/=2),s+d>=l?(o=0,s=l):s+d>=1?(o=(t*c-1)*Math.pow(2,i),s=s+d):(o=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=o&255,p+=g,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[r+p]=s&255,p+=g,s/=256,u-=8);e[r+p-g]|=y*128};/*!
|
|
58
|
+
* The buffer module from node.js, for the browser.
|
|
59
|
+
*
|
|
60
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
61
|
+
* @license MIT
|
|
62
|
+
*/(function(e){const t=sf,r=ME,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i;const{Uint8Array:a,ArrayBuffer:s,SharedArrayBuffer:o}=globalThis;l.TYPED_ARRAY_SUPPORT=c(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const L=new a(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,a.prototype),Object.setPrototypeOf(L,w),L.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function u(L){if(L>i)throw new RangeError('The value "'+L+'" is invalid for option "size"');const w=new a(L);return Object.setPrototypeOf(w,l.prototype),w}function l(L,w,O){if(typeof L=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(L)}return d(L,w,O)}l.poolSize=8192;function d(L,w,O){if(typeof L=="string")return y(L,w);if(s.isView(L))return R(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(Rt(L,s)||L&&Rt(L.buffer,s)||typeof o<"u"&&(Rt(L,o)||L&&Rt(L.buffer,o)))return h(L,w,O);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Y=L.valueOf&&L.valueOf();if(Y!=null&&Y!==L)return l.from(Y,w,O);const de=T(L);if(de)return de;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return l.from(L[Symbol.toPrimitive]("string"),w,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}l.from=function(L,w,O){return d(L,w,O)},Object.setPrototypeOf(l.prototype,a.prototype),Object.setPrototypeOf(l,a);function f(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function p(L,w,O){return f(L),L<=0?u(L):w!==void 0?typeof O=="string"?u(L).fill(w,O):u(L).fill(w):u(L)}l.alloc=function(L,w,O){return p(L,w,O)};function g(L){return f(L),u(L<0?0:I(L)|0)}l.allocUnsafe=function(L){return g(L)},l.allocUnsafeSlow=function(L){return g(L)};function y(L,w){if((typeof w!="string"||w==="")&&(w="utf8"),!l.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const O=E(L,w)|0;let Y=u(O);const de=Y.write(L,w);return de!==O&&(Y=Y.slice(0,de)),Y}function _(L){const w=L.length<0?0:I(L.length)|0,O=u(w);for(let Y=0;Y<w;Y+=1)O[Y]=L[Y]&255;return O}function R(L){if(Rt(L,a)){const w=new a(L);return h(w.buffer,w.byteOffset,w.byteLength)}return _(L)}function h(L,w,O){if(w<0||L.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(L.byteLength<w+(O||0))throw new RangeError('"length" is outside of buffer bounds');let Y;return w===void 0&&O===void 0?Y=new a(L):O===void 0?Y=new a(L,w):Y=new a(L,w,O),Object.setPrototypeOf(Y,l.prototype),Y}function T(L){if(l.isBuffer(L)){const w=I(L.length)|0,O=u(w);return O.length===0||L.copy(O,0,0,w),O}if(L.length!==void 0)return typeof L.length!="number"||mr(L.length)?u(0):_(L);if(L.type==="Buffer"&&Array.isArray(L.data))return _(L.data)}function I(L){if(L>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return L|0}function m(L){return+L!=L&&(L=0),l.alloc(+L)}l.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==l.prototype},l.compare=function(w,O){if(Rt(w,a)&&(w=l.from(w,w.offset,w.byteLength)),Rt(O,a)&&(O=l.from(O,O.offset,O.byteLength)),!l.isBuffer(w)||!l.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===O)return 0;let Y=w.length,de=O.length;for(let _e=0,Ie=Math.min(Y,de);_e<Ie;++_e)if(w[_e]!==O[_e]){Y=w[_e],de=O[_e];break}return Y<de?-1:de<Y?1:0},l.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(w,O){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return l.alloc(0);let Y;if(O===void 0)for(O=0,Y=0;Y<w.length;++Y)O+=w[Y].length;const de=l.allocUnsafe(O);let _e=0;for(Y=0;Y<w.length;++Y){let Ie=w[Y];if(Rt(Ie,a))_e+Ie.length>de.length?(l.isBuffer(Ie)||(Ie=l.from(Ie)),Ie.copy(de,_e)):a.prototype.set.call(de,Ie,_e);else if(l.isBuffer(Ie))Ie.copy(de,_e);else throw new TypeError('"list" argument must be an Array of Buffers');_e+=Ie.length}return de};function E(L,w){if(l.isBuffer(L))return L.length;if(s.isView(L)||Rt(L,s))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);const O=L.length,Y=arguments.length>2&&arguments[2]===!0;if(!Y&&O===0)return 0;let de=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Xe(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return It(L).length;default:if(de)return Y?-1:Xe(L).length;w=(""+w).toLowerCase(),de=!0}}l.byteLength=E;function b(L,w,O){let Y=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,w>>>=0,O<=w))return"";for(L||(L="utf8");;)switch(L){case"hex":return U(this,w,O);case"utf8":case"utf-8":return Z(this,w,O);case"ascii":return q(this,w,O);case"latin1":case"binary":return M(this,w,O);case"base64":return ie(this,w,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,w,O);default:if(Y)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),Y=!0}}l.prototype._isBuffer=!0;function N(L,w,O){const Y=L[w];L[w]=L[O],L[O]=Y}l.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<w;O+=2)N(this,O,O+1);return this},l.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<w;O+=4)N(this,O,O+3),N(this,O+1,O+2);return this},l.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<w;O+=8)N(this,O,O+7),N(this,O+1,O+6),N(this,O+2,O+5),N(this,O+3,O+4);return this},l.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?Z(this,0,w):b.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(w){if(!l.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:l.compare(this,w)===0},l.prototype.inspect=function(){let w="";const O=e.INSPECT_MAX_BYTES;return w=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(w+=" ... "),"<Buffer "+w+">"},n&&(l.prototype[n]=l.prototype.inspect),l.prototype.compare=function(w,O,Y,de,_e){if(Rt(w,a)&&(w=l.from(w,w.offset,w.byteLength)),!l.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(O===void 0&&(O=0),Y===void 0&&(Y=w?w.length:0),de===void 0&&(de=0),_e===void 0&&(_e=this.length),O<0||Y>w.length||de<0||_e>this.length)throw new RangeError("out of range index");if(de>=_e&&O>=Y)return 0;if(de>=_e)return-1;if(O>=Y)return 1;if(O>>>=0,Y>>>=0,de>>>=0,_e>>>=0,this===w)return 0;let Ie=_e-de,Qe=Y-O;const Lt=Math.min(Ie,Qe),At=this.slice(de,_e),$t=w.slice(O,Y);for(let it=0;it<Lt;++it)if(At[it]!==$t[it]){Ie=At[it],Qe=$t[it];break}return Ie<Qe?-1:Qe<Ie?1:0};function j(L,w,O,Y,de){if(L.length===0)return-1;if(typeof O=="string"?(Y=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,mr(O)&&(O=de?0:L.length-1),O<0&&(O=L.length+O),O>=L.length){if(de)return-1;O=L.length-1}else if(O<0)if(de)O=0;else return-1;if(typeof w=="string"&&(w=l.from(w,Y)),l.isBuffer(w))return w.length===0?-1:$(L,w,O,Y,de);if(typeof w=="number")return w=w&255,typeof a.prototype.indexOf=="function"?de?a.prototype.indexOf.call(L,w,O):a.prototype.lastIndexOf.call(L,w,O):$(L,[w],O,Y,de);throw new TypeError("val must be string, number or Buffer")}function $(L,w,O,Y,de){let _e=1,Ie=L.length,Qe=w.length;if(Y!==void 0&&(Y=String(Y).toLowerCase(),Y==="ucs2"||Y==="ucs-2"||Y==="utf16le"||Y==="utf-16le")){if(L.length<2||w.length<2)return-1;_e=2,Ie/=2,Qe/=2,O/=2}function Lt($t,it){return _e===1?$t[it]:$t.readUInt16BE(it*_e)}let At;if(de){let $t=-1;for(At=O;At<Ie;At++)if(Lt(L,At)===Lt(w,$t===-1?0:At-$t)){if($t===-1&&($t=At),At-$t+1===Qe)return $t*_e}else $t!==-1&&(At-=At-$t),$t=-1}else for(O+Qe>Ie&&(O=Ie-Qe),At=O;At>=0;At--){let $t=!0;for(let it=0;it<Qe;it++)if(Lt(L,At+it)!==Lt(w,it)){$t=!1;break}if($t)return At}return-1}l.prototype.includes=function(w,O,Y){return this.indexOf(w,O,Y)!==-1},l.prototype.indexOf=function(w,O,Y){return j(this,w,O,Y,!0)},l.prototype.lastIndexOf=function(w,O,Y){return j(this,w,O,Y,!1)};function B(L,w,O,Y){O=Number(O)||0;const de=L.length-O;Y?(Y=Number(Y),Y>de&&(Y=de)):Y=de;const _e=w.length;Y>_e/2&&(Y=_e/2);let Ie;for(Ie=0;Ie<Y;++Ie){const Qe=parseInt(w.substr(Ie*2,2),16);if(mr(Qe))return Ie;L[O+Ie]=Qe}return Ie}function V(L,w,O,Y){return tr(Xe(w,L.length-O),L,O,Y)}function H(L,w,O,Y){return tr(ut(w),L,O,Y)}function F(L,w,O,Y){return tr(It(w),L,O,Y)}function te(L,w,O,Y){return tr(Ht(w,L.length-O),L,O,Y)}l.prototype.write=function(w,O,Y,de){if(O===void 0)de="utf8",Y=this.length,O=0;else if(Y===void 0&&typeof O=="string")de=O,Y=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(Y)?(Y=Y>>>0,de===void 0&&(de="utf8")):(de=Y,Y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _e=this.length-O;if((Y===void 0||Y>_e)&&(Y=_e),w.length>0&&(Y<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");let Ie=!1;for(;;)switch(de){case"hex":return B(this,w,O,Y);case"utf8":case"utf-8":return V(this,w,O,Y);case"ascii":case"latin1":case"binary":return H(this,w,O,Y);case"base64":return F(this,w,O,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,w,O,Y);default:if(Ie)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Ie=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ie(L,w,O){return w===0&&O===L.length?t.fromByteArray(L):t.fromByteArray(L.slice(w,O))}function Z(L,w,O){O=Math.min(L.length,O);const Y=[];let de=w;for(;de<O;){const _e=L[de];let Ie=null,Qe=_e>239?4:_e>223?3:_e>191?2:1;if(de+Qe<=O){let Lt,At,$t,it;switch(Qe){case 1:_e<128&&(Ie=_e);break;case 2:Lt=L[de+1],(Lt&192)===128&&(it=(_e&31)<<6|Lt&63,it>127&&(Ie=it));break;case 3:Lt=L[de+1],At=L[de+2],(Lt&192)===128&&(At&192)===128&&(it=(_e&15)<<12|(Lt&63)<<6|At&63,it>2047&&(it<55296||it>57343)&&(Ie=it));break;case 4:Lt=L[de+1],At=L[de+2],$t=L[de+3],(Lt&192)===128&&(At&192)===128&&($t&192)===128&&(it=(_e&15)<<18|(Lt&63)<<12|(At&63)<<6|$t&63,it>65535&&it<1114112&&(Ie=it))}}Ie===null?(Ie=65533,Qe=1):Ie>65535&&(Ie-=65536,Y.push(Ie>>>10&1023|55296),Ie=56320|Ie&1023),Y.push(Ie),de+=Qe}return K(Y)}const J=4096;function K(L){const w=L.length;if(w<=J)return String.fromCharCode.apply(String,L);let O="",Y=0;for(;Y<w;)O+=String.fromCharCode.apply(String,L.slice(Y,Y+=J));return O}function q(L,w,O){let Y="";O=Math.min(L.length,O);for(let de=w;de<O;++de)Y+=String.fromCharCode(L[de]&127);return Y}function M(L,w,O){let Y="";O=Math.min(L.length,O);for(let de=w;de<O;++de)Y+=String.fromCharCode(L[de]);return Y}function U(L,w,O){const Y=L.length;(!w||w<0)&&(w=0),(!O||O<0||O>Y)&&(O=Y);let de="";for(let _e=w;_e<O;++_e)de+=yr[L[_e]];return de}function W(L,w,O){const Y=L.slice(w,O);let de="";for(let _e=0;_e<Y.length-1;_e+=2)de+=String.fromCharCode(Y[_e]+Y[_e+1]*256);return de}l.prototype.slice=function(w,O){const Y=this.length;w=~~w,O=O===void 0?Y:~~O,w<0?(w+=Y,w<0&&(w=0)):w>Y&&(w=Y),O<0?(O+=Y,O<0&&(O=0)):O>Y&&(O=Y),O<w&&(O=w);const de=this.subarray(w,O);return Object.setPrototypeOf(de,l.prototype),de};function C(L,w,O){if(L%1!==0||L<0)throw new RangeError("offset is not uint");if(L+w>O)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(w,O,Y){w=w>>>0,O=O>>>0,Y||C(w,O,this.length);let de=this[w],_e=1,Ie=0;for(;++Ie<O&&(_e*=256);)de+=this[w+Ie]*_e;return de},l.prototype.readUintBE=l.prototype.readUIntBE=function(w,O,Y){w=w>>>0,O=O>>>0,Y||C(w,O,this.length);let de=this[w+--O],_e=1;for(;O>0&&(_e*=256);)de+=this[w+--O]*_e;return de},l.prototype.readUint8=l.prototype.readUInt8=function(w,O){return w=w>>>0,O||C(w,1,this.length),this[w]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(w,O){return w=w>>>0,O||C(w,2,this.length),this[w]|this[w+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(w,O){return w=w>>>0,O||C(w,2,this.length),this[w]<<8|this[w+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(w,O){return w=w>>>0,O||C(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(w,O){return w=w>>>0,O||C(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},l.prototype.readBigUInt64LE=yt(function(w){w=w>>>0,Ae(w,"offset");const O=this[w],Y=this[w+7];(O===void 0||Y===void 0)&&qe(w,this.length-8);const de=O+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,_e=this[++w]+this[++w]*2**8+this[++w]*2**16+Y*2**24;return BigInt(de)+(BigInt(_e)<<BigInt(32))}),l.prototype.readBigUInt64BE=yt(function(w){w=w>>>0,Ae(w,"offset");const O=this[w],Y=this[w+7];(O===void 0||Y===void 0)&&qe(w,this.length-8);const de=O*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],_e=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+Y;return(BigInt(de)<<BigInt(32))+BigInt(_e)}),l.prototype.readIntLE=function(w,O,Y){w=w>>>0,O=O>>>0,Y||C(w,O,this.length);let de=this[w],_e=1,Ie=0;for(;++Ie<O&&(_e*=256);)de+=this[w+Ie]*_e;return _e*=128,de>=_e&&(de-=Math.pow(2,8*O)),de},l.prototype.readIntBE=function(w,O,Y){w=w>>>0,O=O>>>0,Y||C(w,O,this.length);let de=O,_e=1,Ie=this[w+--de];for(;de>0&&(_e*=256);)Ie+=this[w+--de]*_e;return _e*=128,Ie>=_e&&(Ie-=Math.pow(2,8*O)),Ie},l.prototype.readInt8=function(w,O){return w=w>>>0,O||C(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},l.prototype.readInt16LE=function(w,O){w=w>>>0,O||C(w,2,this.length);const Y=this[w]|this[w+1]<<8;return Y&32768?Y|4294901760:Y},l.prototype.readInt16BE=function(w,O){w=w>>>0,O||C(w,2,this.length);const Y=this[w+1]|this[w]<<8;return Y&32768?Y|4294901760:Y},l.prototype.readInt32LE=function(w,O){return w=w>>>0,O||C(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},l.prototype.readInt32BE=function(w,O){return w=w>>>0,O||C(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},l.prototype.readBigInt64LE=yt(function(w){w=w>>>0,Ae(w,"offset");const O=this[w],Y=this[w+7];(O===void 0||Y===void 0)&&qe(w,this.length-8);const de=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(Y<<24);return(BigInt(de)<<BigInt(32))+BigInt(O+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),l.prototype.readBigInt64BE=yt(function(w){w=w>>>0,Ae(w,"offset");const O=this[w],Y=this[w+7];(O===void 0||Y===void 0)&&qe(w,this.length-8);const de=(O<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(de)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+Y)}),l.prototype.readFloatLE=function(w,O){return w=w>>>0,O||C(w,4,this.length),r.read(this,w,!0,23,4)},l.prototype.readFloatBE=function(w,O){return w=w>>>0,O||C(w,4,this.length),r.read(this,w,!1,23,4)},l.prototype.readDoubleLE=function(w,O){return w=w>>>0,O||C(w,8,this.length),r.read(this,w,!0,52,8)},l.prototype.readDoubleBE=function(w,O){return w=w>>>0,O||C(w,8,this.length),r.read(this,w,!1,52,8)};function k(L,w,O,Y,de,_e){if(!l.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>de||w<_e)throw new RangeError('"value" argument is out of bounds');if(O+Y>L.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(w,O,Y,de){if(w=+w,O=O>>>0,Y=Y>>>0,!de){const Qe=Math.pow(2,8*Y)-1;k(this,w,O,Y,Qe,0)}let _e=1,Ie=0;for(this[O]=w&255;++Ie<Y&&(_e*=256);)this[O+Ie]=w/_e&255;return O+Y},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(w,O,Y,de){if(w=+w,O=O>>>0,Y=Y>>>0,!de){const Qe=Math.pow(2,8*Y)-1;k(this,w,O,Y,Qe,0)}let _e=Y-1,Ie=1;for(this[O+_e]=w&255;--_e>=0&&(Ie*=256);)this[O+_e]=w/Ie&255;return O+Y},l.prototype.writeUint8=l.prototype.writeUInt8=function(w,O,Y){return w=+w,O=O>>>0,Y||k(this,w,O,1,255,0),this[O]=w&255,O+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(w,O,Y){return w=+w,O=O>>>0,Y||k(this,w,O,2,65535,0),this[O]=w&255,this[O+1]=w>>>8,O+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(w,O,Y){return w=+w,O=O>>>0,Y||k(this,w,O,2,65535,0),this[O]=w>>>8,this[O+1]=w&255,O+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(w,O,Y){return w=+w,O=O>>>0,Y||k(this,w,O,4,4294967295,0),this[O+3]=w>>>24,this[O+2]=w>>>16,this[O+1]=w>>>8,this[O]=w&255,O+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(w,O,Y){return w=+w,O=O>>>0,Y||k(this,w,O,4,4294967295,0),this[O]=w>>>24,this[O+1]=w>>>16,this[O+2]=w>>>8,this[O+3]=w&255,O+4};function ee(L,w,O,Y,de){be(w,Y,de,L,O,7);let _e=Number(w&BigInt(4294967295));L[O++]=_e,_e=_e>>8,L[O++]=_e,_e=_e>>8,L[O++]=_e,_e=_e>>8,L[O++]=_e;let Ie=Number(w>>BigInt(32)&BigInt(4294967295));return L[O++]=Ie,Ie=Ie>>8,L[O++]=Ie,Ie=Ie>>8,L[O++]=Ie,Ie=Ie>>8,L[O++]=Ie,O}function Ee(L,w,O,Y,de){be(w,Y,de,L,O,7);let _e=Number(w&BigInt(4294967295));L[O+7]=_e,_e=_e>>8,L[O+6]=_e,_e=_e>>8,L[O+5]=_e,_e=_e>>8,L[O+4]=_e;let Ie=Number(w>>BigInt(32)&BigInt(4294967295));return L[O+3]=Ie,Ie=Ie>>8,L[O+2]=Ie,Ie=Ie>>8,L[O+1]=Ie,Ie=Ie>>8,L[O]=Ie,O+8}l.prototype.writeBigUInt64LE=yt(function(w,O=0){return ee(this,w,O,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=yt(function(w,O=0){return Ee(this,w,O,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(w,O,Y,de){if(w=+w,O=O>>>0,!de){const Lt=Math.pow(2,8*Y-1);k(this,w,O,Y,Lt-1,-Lt)}let _e=0,Ie=1,Qe=0;for(this[O]=w&255;++_e<Y&&(Ie*=256);)w<0&&Qe===0&&this[O+_e-1]!==0&&(Qe=1),this[O+_e]=(w/Ie>>0)-Qe&255;return O+Y},l.prototype.writeIntBE=function(w,O,Y,de){if(w=+w,O=O>>>0,!de){const Lt=Math.pow(2,8*Y-1);k(this,w,O,Y,Lt-1,-Lt)}let _e=Y-1,Ie=1,Qe=0;for(this[O+_e]=w&255;--_e>=0&&(Ie*=256);)w<0&&Qe===0&&this[O+_e+1]!==0&&(Qe=1),this[O+_e]=(w/Ie>>0)-Qe&255;return O+Y},l.prototype.writeInt8=function(w,O,Y){return w=+w,O=O>>>0,Y||k(this,w,O,1,127,-128),w<0&&(w=255+w+1),this[O]=w&255,O+1},l.prototype.writeInt16LE=function(w,O,Y){return w=+w,O=O>>>0,Y||k(this,w,O,2,32767,-32768),this[O]=w&255,this[O+1]=w>>>8,O+2},l.prototype.writeInt16BE=function(w,O,Y){return w=+w,O=O>>>0,Y||k(this,w,O,2,32767,-32768),this[O]=w>>>8,this[O+1]=w&255,O+2},l.prototype.writeInt32LE=function(w,O,Y){return w=+w,O=O>>>0,Y||k(this,w,O,4,2147483647,-2147483648),this[O]=w&255,this[O+1]=w>>>8,this[O+2]=w>>>16,this[O+3]=w>>>24,O+4},l.prototype.writeInt32BE=function(w,O,Y){return w=+w,O=O>>>0,Y||k(this,w,O,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[O]=w>>>24,this[O+1]=w>>>16,this[O+2]=w>>>8,this[O+3]=w&255,O+4},l.prototype.writeBigInt64LE=yt(function(w,O=0){return ee(this,w,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=yt(function(w,O=0){return Ee(this,w,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function me(L,w,O,Y,de,_e){if(O+Y>L.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function Se(L,w,O,Y,de){return w=+w,O=O>>>0,de||me(L,w,O,4),r.write(L,w,O,Y,23,4),O+4}l.prototype.writeFloatLE=function(w,O,Y){return Se(this,w,O,!0,Y)},l.prototype.writeFloatBE=function(w,O,Y){return Se(this,w,O,!1,Y)};function we(L,w,O,Y,de){return w=+w,O=O>>>0,de||me(L,w,O,8),r.write(L,w,O,Y,52,8),O+8}l.prototype.writeDoubleLE=function(w,O,Y){return we(this,w,O,!0,Y)},l.prototype.writeDoubleBE=function(w,O,Y){return we(this,w,O,!1,Y)},l.prototype.copy=function(w,O,Y,de){if(!l.isBuffer(w))throw new TypeError("argument should be a Buffer");if(Y||(Y=0),!de&&de!==0&&(de=this.length),O>=w.length&&(O=w.length),O||(O=0),de>0&&de<Y&&(de=Y),de===Y||w.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),w.length-O<de-Y&&(de=w.length-O+Y);const _e=de-Y;return this===w&&typeof a.prototype.copyWithin=="function"?this.copyWithin(O,Y,de):a.prototype.set.call(w,this.subarray(Y,de),O),_e},l.prototype.fill=function(w,O,Y,de){if(typeof w=="string"){if(typeof O=="string"?(de=O,O=0,Y=this.length):typeof Y=="string"&&(de=Y,Y=this.length),de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!l.isEncoding(de))throw new TypeError("Unknown encoding: "+de);if(w.length===1){const Ie=w.charCodeAt(0);(de==="utf8"&&Ie<128||de==="latin1")&&(w=Ie)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(O<0||this.length<O||this.length<Y)throw new RangeError("Out of range index");if(Y<=O)return this;O=O>>>0,Y=Y===void 0?this.length:Y>>>0,w||(w=0);let _e;if(typeof w=="number")for(_e=O;_e<Y;++_e)this[_e]=w;else{const Ie=l.isBuffer(w)?w:l.from(w,de),Qe=Ie.length;if(Qe===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(_e=0;_e<Y-O;++_e)this[_e+O]=Ie[_e%Qe]}return this};const ae={};function ue(L,w,O){ae[L]=class extends O{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${L}]`,this.stack,delete this.name}get code(){return L}set code(de){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:de,writable:!0})}toString(){return`${this.name} [${L}]: ${this.message}`}}}ue("ERR_BUFFER_OUT_OF_BOUNDS",function(L){return L?`${L} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ue("ERR_INVALID_ARG_TYPE",function(L,w){return`The "${L}" argument must be of type number. Received type ${typeof w}`},TypeError),ue("ERR_OUT_OF_RANGE",function(L,w,O){let Y=`The value of "${L}" is out of range.`,de=O;return Number.isInteger(O)&&Math.abs(O)>2**32?de=fe(String(O)):typeof O=="bigint"&&(de=String(O),(O>BigInt(2)**BigInt(32)||O<-(BigInt(2)**BigInt(32)))&&(de=fe(de)),de+="n"),Y+=` It must be ${w}. Received ${de}`,Y},RangeError);function fe(L){let w="",O=L.length;const Y=L[0]==="-"?1:0;for(;O>=Y+4;O-=3)w=`_${L.slice(O-3,O)}${w}`;return`${L.slice(0,O)}${w}`}function pe(L,w,O){Ae(w,"offset"),(L[w]===void 0||L[w+O]===void 0)&&qe(w,L.length-(O+1))}function be(L,w,O,Y,de,_e){if(L>O||L<w){const Ie=typeof w=="bigint"?"n":"";let Qe;throw w===0||w===BigInt(0)?Qe=`>= 0${Ie} and < 2${Ie} ** ${(_e+1)*8}${Ie}`:Qe=`>= -(2${Ie} ** ${(_e+1)*8-1}${Ie}) and < 2 ** ${(_e+1)*8-1}${Ie}`,new ae.ERR_OUT_OF_RANGE("value",Qe,L)}pe(Y,de,_e)}function Ae(L,w){if(typeof L!="number")throw new ae.ERR_INVALID_ARG_TYPE(w,"number",L)}function qe(L,w,O){throw Math.floor(L)!==L?(Ae(L,O),new ae.ERR_OUT_OF_RANGE("offset","an integer",L)):w<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,L)}const We=/[^+/0-9A-Za-z-_]/g;function tt(L){if(L=L.split("=")[0],L=L.trim().replace(We,""),L.length<2)return"";for(;L.length%4!==0;)L=L+"=";return L}function Xe(L,w){w=w||1/0;let O;const Y=L.length;let de=null;const _e=[];for(let Ie=0;Ie<Y;++Ie){if(O=L.charCodeAt(Ie),O>55295&&O<57344){if(!de){if(O>56319){(w-=3)>-1&&_e.push(239,191,189);continue}else if(Ie+1===Y){(w-=3)>-1&&_e.push(239,191,189);continue}de=O;continue}if(O<56320){(w-=3)>-1&&_e.push(239,191,189),de=O;continue}O=(de-55296<<10|O-56320)+65536}else de&&(w-=3)>-1&&_e.push(239,191,189);if(de=null,O<128){if((w-=1)<0)break;_e.push(O)}else if(O<2048){if((w-=2)<0)break;_e.push(O>>6|192,O&63|128)}else if(O<65536){if((w-=3)<0)break;_e.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((w-=4)<0)break;_e.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return _e}function ut(L){const w=[];for(let O=0;O<L.length;++O)w.push(L.charCodeAt(O)&255);return w}function Ht(L,w){let O,Y,de;const _e=[];for(let Ie=0;Ie<L.length&&!((w-=2)<0);++Ie)O=L.charCodeAt(Ie),Y=O>>8,de=O%256,_e.push(de),_e.push(Y);return _e}function It(L){return t.toByteArray(tt(L))}function tr(L,w,O,Y){let de;for(de=0;de<Y&&!(de+O>=w.length||de>=L.length);++de)w[de+O]=L[de];return de}function Rt(L,w){return L instanceof w||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===w.name}function mr(L){return L!==L}const yr=(function(){const L="0123456789abcdef",w=new Array(256);for(let O=0;O<16;++O){const Y=O*16;for(let de=0;de<16;++de)w[Y+de]=L[O]+L[de]}return w})();function yt(L){return typeof BigInt>"u"?Fr:L}function Fr(){throw new Error("BigInt not supported")}})(Uj);const T1=Uj.Buffer;var xl={exports:{}},w1;function SH(){return w1||(w1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r={Object,Array,Function,Number,String,Date,RegExp};typeof T1<"u"&&(r.Buffer=T1),typeof Promise<"u"&&(r.Promise=Promise);const n=Object.assign(i,{CONSTRUCTORS:r});function i(){return{keyword:"instanceof",schemaType:["string","array"],compile(s){if(typeof s=="string"){const o=a(s);return c=>c instanceof o}if(Array.isArray(s)){const o=s.map(a);return c=>{for(const u of o)if(c instanceof u)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function a(s){const o=r[s];if(o)return o;throw new Error(`invalid "instanceof" keyword value ${s}`)}t.default=n,e.exports=n})(xl,xl.exports)),xl.exports}var I1=Wo.exports,R1;function TH(){return R1||(R1=1,(function(e,t){var r=I1&&I1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(SH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Wo,Wo.exports)),Wo.exports}var Yo={exports:{}},Ko={exports:{}},Gl={},A1;function Hj(){if(A1)return Gl;A1=1,Object.defineProperty(Gl,"__esModule",{value:!0});function e(t){return()=>({keyword:t,type:"number",schemaType:"array",macro:function([n,i]){return r(n,i),t==="range"?{minimum:n,maximum:i}:{exclusiveMinimum:n,exclusiveMaximum:i}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function r(n,i){if(n>i||t==="exclusiveRange"&&n===i)throw new Error("There are no numbers in range")}}return Gl.default=e,Gl}var O1=Ko.exports,N1;function wH(){return N1||(N1=1,(function(e,t){var r=O1&&O1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(Hj()).default)("range");t.default=i,e.exports=i})(Ko,Ko.exports)),Ko.exports}var P1=Yo.exports,C1;function IH(){return C1||(C1=1,(function(e,t){var r=P1&&P1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(wH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Yo,Yo.exports)),Yo.exports}var Xo={exports:{}},Jo={exports:{}},M1=Jo.exports,j1;function RH(){return j1||(j1=1,(function(e,t){var r=M1&&M1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(Hj()).default)("exclusiveRange");t.default=i,e.exports=i})(Jo,Jo.exports)),Jo.exports}var D1=Xo.exports,L1;function AH(){return L1||(L1=1,(function(e,t){var r=D1&&D1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(RH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Xo,Xo.exports)),Xo.exports}var Qo={exports:{}},zl={exports:{}},xi={},$1;function of(){if($1)return xi;$1=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.usePattern=xi.metaSchemaRef=void 0;const e=Ke(),t="http://json-schema.org/schema";function r({defaultMeta:i}={}){return i===!1?{}:{$ref:i||t}}xi.metaSchemaRef=r;function n({gen:i,it:{opts:a}},s,o=a.unicodeRegExp?"u":""){const c=new RegExp(s,o);return i.scopeValue("pattern",{key:c.toString(),ref:c,code:(0,e._)`new RegExp(${s}, ${o})`})}return xi.usePattern=n,xi}var k1;function OH(){return k1||(k1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke(),n=of(),i={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},a=/^\/(.*)\/([gimuy]*)$/;function s(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(o){const{data:c,schema:u}=o,l=d(u);o.pass((0,r._)`${l}.test(${c})`);function d(f){if(typeof f=="object")return(0,n.usePattern)(o,f.pattern,f.flags);const p=a.exec(f);if(p)return(0,n.usePattern)(o,p[1],p[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},i]}}}t.default=s,e.exports=s})(zl,zl.exports)),zl.exports}var q1=Qo.exports,B1;function NH(){return B1||(B1=1,(function(e,t){var r=q1&&q1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(OH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Qo,Qo.exports)),Qo.exports}var Zo={exports:{}},Wl={exports:{}},U1;function PH(){return U1||(U1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke(),n={trimStart:c=>c.trimStart(),trimEnd:c=>c.trimEnd(),trimLeft:c=>c.trimStart(),trimRight:c=>c.trimEnd(),trim:c=>c.trim(),toLowerCase:c=>c.toLowerCase(),toUpperCase:c=>c.toUpperCase(),toEnumCase:(c,u)=>(u==null?void 0:u.hash[o(c)])||c},i=Object.assign(a,{transform:n});function a(){return{keyword:"transform",schemaType:"array",before:"enum",code(c){const{gen:u,data:l,schema:d,parentSchema:f,it:p}=c,{parentData:g,parentDataProperty:y}=p,_=d;if(!_.length)return;let R;if(_.includes("toEnumCase")){const T=s(f);R=u.scopeValue("obj",{ref:T,code:(0,r.stringify)(T)})}u.if((0,r._)`typeof ${l} == "string" && ${g} !== undefined`,()=>{u.assign(l,h(_.slice())),u.assign((0,r._)`${g}[${y}]`,l)});function h(T){if(!T.length)return l;const I=T.pop();if(!(I in n))throw new Error(`transform: unknown transformation ${I}`);const m=u.scopeValue("func",{ref:n[I],code:(0,r._)`require("ajv-keywords/dist/definitions/transform").transform${(0,r.getProperty)(I)}`}),E=h(T);return R&&I==="toEnumCase"?(0,r._)`${m}(${E}, ${R})`:(0,r._)`${m}(${E})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(n)}}}}function s(c){const u={hash:{}};if(!c.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const l of c.enum){if(typeof l!="string")continue;const d=o(l);if(u.hash[d])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');u.hash[d]=l}return u}function o(c){return c.toLowerCase()}t.default=i,e.exports=i})(Wl,Wl.exports)),Wl.exports}var F1=Zo.exports,H1;function CH(){return H1||(H1=1,(function(e,t){var r=F1&&F1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(PH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(Zo,Zo.exports)),Zo.exports}var ec={exports:{}},Yl={exports:{}},V1;function MH(){return V1||(V1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=AE(),n=["number","integer","string","boolean","null"];function i(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(s,o){const c=a(s,o);return u=>{if(u.length<=1)return!0;for(let l=0;l<s.length;l++){const d=s[l];if(c[l]){const f={};for(const p of u){if(!p||typeof p!="object")continue;let g=p[d];if(!(g&&typeof g=="object")){if(typeof g=="string"&&(g='"'+g),f[g])return!1;f[g]=!0}}}else for(let f=u.length;f--;){const p=u[f];if(!(!p||typeof p!="object"))for(let g=f;g--;){const y=u[g];if(y&&typeof y=="object"&&r(p[d],y[d]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}t.default=i;function a(s,o){return s.map(c=>{var u,l,d;const f=(d=(l=(u=o.items)===null||u===void 0?void 0:u.properties)===null||l===void 0?void 0:l[c])===null||d===void 0?void 0:d.type;return Array.isArray(f)?!f.includes("object")&&!f.includes("array"):n.includes(f)})}e.exports=i})(Yl,Yl.exports)),Yl.exports}var x1=ec.exports,G1;function jH(){return G1||(G1=1,(function(e,t){var r=x1&&x1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(MH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(ec,ec.exports)),ec.exports}var tc={exports:{}},Kl={exports:{}},z1;function DH(){return z1||(z1=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(n,i){if(!n)return!0;const a=Object.keys(i.properties);return a.length===0?!0:{required:a}},dependencies:["properties"]}}t.default=r,e.exports=r})(Kl,Kl.exports)),Kl.exports}var W1=tc.exports,Y1;function LH(){return Y1||(Y1=1,(function(e,t){var r=W1&&W1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(DH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(tc,tc.exports)),tc.exports}var rc={exports:{}},nc={exports:{}},Xl={},K1;function Vj(){if(K1)return Xl;K1=1,Object.defineProperty(Xl,"__esModule",{value:!0});function e(t){return()=>({keyword:t,type:"object",schemaType:"array",macro(r){return r.length===0?!0:r.length===1?{required:r}:{[t==="anyRequired"?"anyOf":"oneOf"]:r.map(i=>({required:[i]}))}},metaSchema:{type:"array",items:{type:"string"}}})}return Xl.default=e,Xl}var X1=nc.exports,J1;function $H(){return J1||(J1=1,(function(e,t){var r=X1&&X1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(Vj()).default)("anyRequired");t.default=i,e.exports=i})(nc,nc.exports)),nc.exports}var Q1=rc.exports,Z1;function kH(){return Z1||(Z1=1,(function(e,t){var r=Q1&&Q1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r($H()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(rc,rc.exports)),rc.exports}var ic={exports:{}},ac={exports:{}},eT=ac.exports,tT;function qH(){return tT||(tT=1,(function(e,t){var r=eT&&eT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(Vj()).default)("oneRequired");t.default=i,e.exports=i})(ac,ac.exports)),ac.exports}var rT=ic.exports,nT;function BH(){return nT||(nT=1,(function(e,t){var r=rT&&rT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(qH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(ic,ic.exports)),ic.exports}var sc={exports:{}},Jl={exports:{}},iT;function UH(){return iT||(iT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke(),n=of(),i={message:({params:{missingPattern:s}})=>(0,r.str)`should have property matching pattern '${s}'`,params:({params:{missingPattern:s}})=>(0,r._)`{missingPattern: ${s}}`};function a(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:i,code(s){const{gen:o,schema:c,data:u}=s;if(c.length===0)return;const l=o.let("valid",!0);for(const f of c)d(f);function d(f){const p=o.let("matched",!1);o.forIn("key",u,g=>{o.assign(p,(0,r._)`${(0,n.usePattern)(s,f)}.test(${g})`),o.if(p,()=>o.break())}),s.setParams({missingPattern:f}),o.assign(l,(0,r.and)(l,p)),s.pass(l)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}t.default=a,e.exports=a})(Jl,Jl.exports)),Jl.exports}var aT=sc.exports,sT;function FH(){return sT||(sT=1,(function(e,t){var r=aT&&aT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(UH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(sc,sc.exports)),sc.exports}var oc={exports:{}},Ql={exports:{}},oT;function HH(){return oT||(oT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(n){return n.length===0?!0:n.length===1?{not:{required:n}}:{not:{anyOf:n.map(i=>({required:[i]}))}}},metaSchema:{type:"array",items:{type:"string"}}}}t.default=r,e.exports=r})(Ql,Ql.exports)),Ql.exports}var cT=oc.exports,uT;function VH(){return uT||(uT=1,(function(e,t){var r=cT&&cT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(HH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(oc,oc.exports)),oc.exports}var cc={exports:{}},Zl={exports:{}},lT;function xH(){return lT||(lT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=of();function n(s){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(o){const c=[];for(const u in o)c.push(i(u,o[u]));return{allOf:c}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,r.metaSchemaRef)(s)}}}t.default=n;function i(s,o){const c=s.split("/"),u={};let l=u;for(let d=1;d<c.length;d++){let f=c[d];const p=d===c.length-1;f=a(f);const g=l.properties={};let y;if(/[0-9]+/.test(f)){let _=+f;for(y=l.items=[],l.type=["object","array"];_--;)y.push({})}else l.type="object";l=p?o:{},g[f]=l,y&&y.push(l)}return u}function a(s){return s.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=n})(Zl,Zl.exports)),Zl.exports}var dT=cc.exports,fT;function GH(){return fT||(fT=1,(function(e,t){var r=dT&&dT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(xH()),i=(a,s)=>a.addKeyword((0,n.default)(s));t.default=i,e.exports=i})(cc,cc.exports)),cc.exports}var uc={exports:{}},ed={exports:{}},pT;function zH(){return pT||(pT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke();function n(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(a){const{schema:s,data:o}=a,c=s.map(l=>(0,r._)`(${u(l)}) === undefined`);a.fail((0,r.or)(...c));function u(l){if(l==="")throw new Error("empty JSON pointer not allowed");const d=l.split("/");let f=o;const p=d.map((g,y)=>y?f=(0,r._)`${f}${(0,r.getProperty)(i(g))}`:f);return(0,r.and)(...p)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}t.default=n;function i(a){return a.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=n})(ed,ed.exports)),ed.exports}var hT=uc.exports,mT;function WH(){return mT||(mT=1,(function(e,t){var r=hT&&hT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(zH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(uc,uc.exports)),uc.exports}var lc={exports:{}},td={exports:{}},yT;function YH(){return yT||(yT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r={},n={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:l=>{var d;const f=(d=l==null?void 0:l.max)!==null&&d!==void 0?d:2;return()=>Math.floor(Math.random()*f)},seq:l=>{var d;const f=(d=l==null?void 0:l.name)!==null&&d!==void 0?d:"";return r[f]||(r[f]=0),()=>r[f]++}},i=Object.assign(a,{DEFAULTS:n});function a(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(l,d,f){if(!f.opts.useDefaults||f.compositeRule)return()=>!0;const p={};for(const y in l)p[y]=s(l[y]);const g=f.opts.useDefaults==="empty";return y=>{for(const _ in l)(y[_]===void 0||g&&(y[_]===null||y[_]===""))&&(y[_]=p[_]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function s(l){return typeof l=="object"?o(l):c(l)}function o({func:l,args:d}){const f=n[l];return u(l,f),f(d)}function c(l=""){const d=n[l];return u(l,d),d()}function u(l,d){if(!d)throw new Error(`invalid "dynamicDefaults" keyword property value: ${l}`)}t.default=i,e.exports=i})(td,td.exports)),td.exports}var gT=lc.exports,_T;function KH(){return _T||(_T=1,(function(e,t){var r=gT&&gT.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(YH()),i=a=>a.addKeyword((0,n.default)());t.default=i,e.exports=i})(lc,lc.exports)),lc.exports}var dc={exports:{}},rd={exports:{}},vT;function XH(){return vT||(vT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Ke(),n=of(),i={message:({params:{schemaProp:s}})=>s?(0,r.str)`should match case "${s}" schema`:(0,r.str)`should match default case schema`,params:({params:{schemaProp:s}})=>s?(0,r._)`{failingCase: ${s}}`:(0,r._)`{failingDefault: true}`};function a(s){const o=(0,n.metaSchemaRef)(s);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:i,dependencies:["selectCases"],code(c){const{gen:u,schemaCode:l,parentSchema:d}=c;c.block$data(r.nil,()=>{const f=u.let("valid",!0),p=u.name("_valid"),g=u.const("value",(0,r._)`${l} === null ? "null" : ${l}`);u.if(!1);for(const y in d.selectCases){c.setParams({schemaProp:y}),u.elseIf((0,r._)`"" + ${g} == ${y}`);const _=c.subschema({keyword:"selectCases",schemaProp:y},p);c.mergeEvaluated(_,r.Name),u.assign(f,p)}if(u.else(),d.selectDefault!==void 0){c.setParams({schemaProp:void 0});const y=c.subschema({keyword:"selectDefault"},p);c.mergeEvaluated(y,r.Name),u.assign(f,p)}u.endIf(),c.pass(f)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:o}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:o}]}t.default=a,e.exports=a})(rd,rd.exports)),rd.exports}var ET=dc.exports,bT;function JH(){return bT||(bT=1,(function(e,t){var r=ET&&ET.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(XH()),i=(a,s)=>((0,n.default)(s).forEach(o=>a.addKeyword(o)),a);t.default=i,e.exports=i})(dc,dc.exports)),dc.exports}var ST=Go.exports,TT;function QH(){return TT||(TT=1,(function(e,t){var r=ST&&ST.__importDefault||function(I){return I&&I.__esModule?I:{default:I}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(pH()),i=r(TH()),a=r(IH()),s=r(AH()),o=r(NH()),c=r(CH()),u=r(jH()),l=r(LH()),d=r(kH()),f=r(BH()),p=r(FH()),g=r(VH()),y=r(GH()),_=r(WH()),R=r(KH()),h=r(JH()),T={typeof:n.default,instanceof:i.default,range:a.default,exclusiveRange:s.default,regexp:o.default,transform:c.default,uniqueItemProperties:u.default,allRequired:l.default,anyRequired:d.default,oneRequired:f.default,patternRequired:p.default,prohibited:g.default,deepProperties:y.default,deepRequired:_.default,dynamicDefaults:R.default,select:h.default};t.default=T,e.exports=T})(Go,Go.exports)),Go.exports}var wT=xo.exports,IT;function xj(){return IT||(IT=1,(function(e,t){var r=wT&&wT.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(QH()),i=(s,o)=>{if(Array.isArray(o)){for(const c of o)a(c)(s);return s}if(o)return a(o)(s),s;for(o in n.default)a(o)(s);return s};i.get=a;function a(s){const o=n.default[s];if(!o)throw new Error("Unknown keyword "+s);return o}t.default=i,e.exports=i,e.exports.default=i})(xo,xo.exports)),xo.exports}var nd={exports:{}},RT;function Gj(){return RT||(RT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=CE(),n=Ke(),i=Rc(),a=Kc(),s=Yc(),o=mi(),c="errorMessage",u=new r.Name("emUsed"),l={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,p=/^""\s*\+\s*|\s*\+\s*""$/g;function g(_){return{keyword:c,schemaType:["string","object"],post:!0,code(R){const{gen:h,data:T,schema:I,schemaValue:m,it:E}=R;if(E.createErrors===!1)return;const b=I,N=n.strConcat(o.default.instancePath,E.errorPath);h.if(r._`${o.default.errors} > 0`,()=>{if(typeof b=="object"){const[W,C]=$(b);C&&B(C),W&&V(W),H(j(b))}const U=typeof b=="string"?b:b._;U&&F(U),_.keepErrors||te()});function j({properties:U,items:W}){const C={};if(U){C.props={};for(const k in U)C.props[k]=[]}if(W){C.items={};for(let k=0;k<W.length;k++)C.items[k]=[]}return C}function $(U){let W,C;for(const k in U){if(k==="properties"||k==="items")continue;const ee=U[k];if(typeof ee=="object"){W||(W={});const Ee=W[k]={};for(const me in ee)Ee[me]=[]}else C||(C={}),C[k]=[]}return[W,C]}function B(U){const W=h.const("emErrors",r.stringify(U)),C=h.const("templates",K(U,I));h.forOf("err",o.default.vErrors,me=>h.if(ie(me,W),()=>h.code(r._`${W}[${me}.keyword].push(${me})`).assign(r._`${me}.${u}`,!0)));const{singleError:k}=_;if(k){const me=h.let("message",r._`""`),Se=h.let("paramsErrors",r._`[]`);ee(we=>{h.if(me,()=>h.code(r._`${me} += ${typeof k=="string"?k:";"}`)),h.code(r._`${me} += ${Ee(we)}`),h.assign(Se,r._`${Se}.concat(${W}[${we}])`)}),s.reportError(R,{message:me,params:r._`{errors: ${Se}}`})}else ee(me=>s.reportError(R,{message:Ee(me),params:r._`{errors: ${W}[${me}]}`}));function ee(me){h.forIn("key",W,Se=>h.if(r._`${W}[${Se}].length`,()=>me(Se)))}function Ee(me){return r._`${me} in ${C} ? ${C}[${me}]() : ${m}[${me}]`}}function V(U){const W=h.const("emErrors",r.stringify(U)),C=[];for(const Se in U)C.push([Se,K(U[Se],I[Se])]);const k=h.const("templates",h.object(...C)),ee=h.scopeValue("obj",{ref:l,code:r.stringify(l)}),Ee=h.let("emPropParams"),me=h.let("emParamsErrors");h.forOf("err",o.default.vErrors,Se=>h.if(ie(Se,W),()=>{h.assign(Ee,r._`${ee}[${Se}.keyword]`),h.assign(me,r._`${W}[${Se}.keyword][${Se}.params[${Ee}]]`),h.if(me,()=>h.code(r._`${me}.push(${Se})`).assign(r._`${Se}.${u}`,!0))})),h.forIn("key",W,Se=>h.forIn("keyProp",r._`${W}[${Se}]`,we=>{h.assign(me,r._`${W}[${Se}][${we}]`),h.if(r._`${me}.length`,()=>{const ae=h.const("tmpl",r._`${k}[${Se}] && ${k}[${Se}][${we}]`);s.reportError(R,{message:r._`${ae} ? ${ae}() : ${m}[${Se}][${we}]`,params:r._`{errors: ${me}}`})})}))}function H(U){const{props:W,items:C}=U;if(!W&&!C)return;const k=r._`typeof ${T} == "object"`,ee=r._`Array.isArray(${T})`,Ee=h.let("emErrors");let me,Se;const we=h.let("templates");W&&C?(me=h.let("emChildKwd"),h.if(k),h.if(ee,()=>{ae(C,I.items),h.assign(me,r.str`items`)},()=>{ae(W,I.properties),h.assign(me,r.str`properties`)}),Se=r._`[${me}]`):C?(h.if(ee),ae(C,I.items),Se=r._`.items`):W&&(h.if(n.and(k,n.not(ee))),ae(W,I.properties),Se=r._`.properties`),h.forOf("err",o.default.vErrors,ue=>Z(ue,Ee,fe=>h.code(r._`${Ee}[${fe}].push(${ue})`).assign(r._`${ue}.${u}`,!0))),h.forIn("key",Ee,ue=>h.if(r._`${Ee}[${ue}].length`,()=>{s.reportError(R,{message:r._`${ue} in ${we} ? ${we}[${ue}]() : ${m}${Se}[${ue}]`,params:r._`{errors: ${Ee}[${ue}]}`}),h.assign(r._`${o.default.vErrors}[${o.default.errors}-1].instancePath`,r._`${N} + "/" + ${ue}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),h.endIf();function ae(ue,fe){h.assign(Ee,r.stringify(ue)),h.assign(we,K(ue,fe))}}function F(U){const W=h.const("emErrs",r._`[]`);h.forOf("err",o.default.vErrors,C=>h.if(J(C),()=>h.code(r._`${W}.push(${C})`).assign(r._`${C}.${u}`,!0))),h.if(r._`${W}.length`,()=>s.reportError(R,{message:q(U),params:r._`{errors: ${W}}`}))}function te(){const U=h.const("emErrs",r._`[]`);h.forOf("err",o.default.vErrors,W=>h.if(r._`!${W}.${u}`,()=>h.code(r._`${U}.push(${W})`))),h.assign(o.default.vErrors,U).assign(o.default.errors,r._`${U}.length`)}function ie(U,W){return n.and(r._`${U}.keyword !== ${c}`,r._`!${U}.${u}`,r._`${U}.instancePath === ${N}`,r._`${U}.keyword in ${W}`,r._`${U}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${U}.schemaPath.slice(${E.errSchemaPath.length}))`)}function Z(U,W,C){h.if(n.and(r._`${U}.keyword !== ${c}`,r._`!${U}.${u}`,r._`${U}.instancePath.indexOf(${N}) === 0`),()=>{const k=h.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),ee=h.const("emMatches",r._`${k}.exec(${U}.instancePath.slice(${N}.length))`),Ee=h.const("emChild",r._`${ee} && ${ee}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);h.if(r._`${Ee} !== undefined && ${Ee} in ${W}`,()=>C(Ee))})}function J(U){return n.and(r._`${U}.keyword !== ${c}`,r._`!${U}.${u}`,n.or(r._`${U}.instancePath === ${N}`,n.and(r._`${U}.instancePath.indexOf(${N}) === 0`,r._`${U}.instancePath[${N}.length] === "/"`)),r._`${U}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,r._`${U}.schemaPath[${E.errSchemaPath}.length] === "/"`)}function K(U,W){const C=[];for(const k in U){const ee=W[k];d.test(ee)&&C.push([k,M(ee)])}return h.object(...C)}function q(U){return d.test(U)?new i._Code(i.safeStringify(U).replace(f,(W,C)=>`" + JSON.stringify(${a.getData(C,E)}) + "`).replace(p,"")):r.stringify(U)}function M(U){return r._`function(){return ${q(U)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const y=(_,R={})=>{if(!_.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(_.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return _.addKeyword(g(R))};t.default=y,e.exports=y,e.exports.default=y})(nd,nd.exports)),nd.exports}var AT;function Ne(){if(AT)return on;AT=1;var e=on&&on.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(on,"__esModule",{value:!0}),on.validateType=on.generateLazyValidator=on.Ajv=void 0;const t=e(CE());on.Ajv=t.default;const r=e(xj()),n=e(Gj());function i(s,o){let c=null;const u=(l,d)=>{if(!c){const f=new t.default({$data:!0,allErrors:!0});(0,r.default)(f),(0,n.default)(f,{singleError:!0}),o==null||o.forEach(p=>f.addKeyword(p)),c=f.compile(s),Object.defineProperty(u,"errors",{get(){return c==null?void 0:c.errors}})}return c(l,d)};return u}on.generateLazyValidator=i;function a(s,o){return s.validate(o)}return on.validateType=a,on}var OT;function ZH(){return OT||(OT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const t=Ne();e.SCENE_UPDATE="SCENE_UPDATE",(function(r){r.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(op)),op}var vp={},NT;function eV(){return NT||(NT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const t=Ne();e.UPDATE="update",(function(r){r.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Update||(e.Update={}))})(vp)),vp}var PT;function tV(){return PT||(PT=1,(function(e){var t=Ui&&Ui.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Ui&&Ui.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(ZH(),e),r(eV(),e)})(Ui)),Ui}var Gi={},Ep={},CT;function rV(){return CT||(CT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const t=Ne();(function(r){r.SCENE="scene",r.SMART_ITEM="smart-item",r.PORTABLE_EXPERIENCE="portable-experience",r.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ProjectType||(e.ProjectType={}))})(Ep)),Ep}var bp={},Sp={},MT;function cf(){return MT||(MT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const t=Ne();(function(r){r.UNIQUE="unique",r.MYTHIC="mythic",r.EXOTIC="exotic",r.LEGENDARY="legendary",r.EPIC="epic",r.RARE="rare",r.UNCOMMON="uncommon",r.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema);const n={[r.UNIQUE]:1,[r.MYTHIC]:10,[r.EXOTIC]:50,[r.LEGENDARY]:100,[r.EPIC]:1e3,[r.RARE]:5e3,[r.UNCOMMON]:1e4,[r.COMMON]:1e5},i={[r.UNIQUE]:"#FFE617",[r.MYTHIC]:"#FB7DE3",[r.EXOTIC]:"#E4FFB8",[r.LEGENDARY]:"#A657ED",[r.EPIC]:"#6397F2",[r.RARE]:"#3AD682",[r.UNCOMMON]:"#FF8563",[r.COMMON]:"#D4E0E0"},a={[r.UNIQUE]:"#FFB626",[r.MYTHIC]:"#FF63E1",[r.EXOTIC]:"#CAFF73",[r.LEGENDARY]:"#842DDA",[r.EPIC]:"#3D85E6",[r.RARE]:"#36CF75",[r.UNCOMMON]:"#ED6D4F",[r.COMMON]:"#ABC1C1"};function s(l){return n[l]}r.getMaxSupply=s;function o(l){return a[l]}r.getColor=o;function c(){return[r.UNIQUE,r.MYTHIC,r.EXOTIC,r.LEGENDARY,r.EPIC,r.RARE,r.UNCOMMON,r.COMMON]}r.getRarities=c;function u(l){return[i[l],a[l]]}r.getGradient=u})(e.Rarity||(e.Rarity={}))})(Sp)),Sp}var Tp={},jT;function Ja(){return jT||(jT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const t=Ne();(function(r){r.EYEBROWS="eyebrows",r.EYES="eyes",r.FACIAL_HAIR="facial_hair",r.HAIR="hair",r.BODY_SHAPE="body_shape",r.MOUTH="mouth",r.UPPER_BODY="upper_body",r.LOWER_BODY="lower_body",r.FEET="feet",r.EARRING="earring",r.EYEWEAR="eyewear",r.HAT="hat",r.HELMET="helmet",r.MASK="mask",r.TIARA="tiara",r.TOP_HEAD="top_head",r.SKIN="skin",r.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WearableCategory||(e.WearableCategory={}))})(Tp)),Tp}var wp={},DT;function uf(){return DT||(DT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpringBonesData=e.SpringBoneParams=void 0;const t=Ne();var r;(function(n){n.schema={type:"object",properties:{stiffness:{type:"number",minimum:0,maximum:4},gravityPower:{type:"number",minimum:0,maximum:2},gravityDir:{type:"array",items:[{type:"number",minimum:-10,maximum:10},{type:"number",minimum:-10,maximum:10},{type:"number",minimum:-10,maximum:10}],minItems:3,maxItems:3},drag:{type:"number",minimum:0,maximum:1},center:{type:"string",nullable:!0},isRoot:{type:"boolean",nullable:!0}},required:["stiffness","gravityPower","gravityDir","drag"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(r=e.SpringBoneParams||(e.SpringBoneParams={})),(function(n){n.schema={type:"object",properties:{version:{type:"integer",enum:[1]},models:{type:"object",additionalProperties:{type:"object",additionalProperties:r.schema,required:[]},required:[]}},required:["version","models"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.SpringBonesData||(e.SpringBonesData={}))})(wp)),wp}var Ip={},Rp={},LT;function jE(){return LT||(LT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const t=Ne();(function(r){r.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",r.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BodyShape||(e.BodyShape={}))})(Rp)),Rp}var Ap={},Op={},$T;function zj(){return $T||($T=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const t=Ne();(function(r){r.HEAD="head",r.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(Op)),Op}var kT;function DE(){return kT||(kT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const t=Ja(),r=Ne(),n=zj();(function(i){i.schema={oneOf:[Object.assign({},t.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(Ap)),Ap}var qT;function LE(){return qT||(qT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const t=Ne(),r=jE(),n=DE();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:r.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(Ip)),Ip}var zi={},Wi={},Np={},Pp={},BT;function Qa(){return BT||(BT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const t=Ne();(function(r){r.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,t.generateLazyValidator)(r.schema);r.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(r){r.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(r){r.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(r){r.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(Pp)),Pp}var UT;function Wj(){return UT||(UT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const t=Ja(),r=Qa(),n=Ne();var i;(function(c){c.schema={type:"object",required:["face256","body"],properties:{face256:r.IPFSv2.schema,body:r.IPFSv2.schema}},c.validate=(0,n.generateLazyValidator)(c.schema)})(i=e.Snapshots||(e.Snapshots={}));var a;(function(c){c.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:r.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:r.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:r.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:t.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:Object.assign(Object.assign({},i.schema),{nullable:!0})},additionalProperties:!0},c.validate=(0,n.generateLazyValidator)(c.schema)})(a=e.AvatarInfo||(e.AvatarInfo={}));var s;(function(c){c.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const u=new RegExp(c.schema.pattern,"i");c.validate=l=>u.test(l)})(s=e.LinkUrl||(e.LinkUrl={}));var o;(function(c){c.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:s.schema}}})(o=e.Link||(e.Link={})),(function(c){c.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},nameColor:Object.assign(Object.assign({},r.Color3.schema),{nullable:!0}),description:{type:"string"},links:{type:"array",maxItems:5,items:o.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:r.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:a.schema},additionalProperties:!0},c.validate=(0,n.generateLazyValidator)(c.schema)})(e.Avatar||(e.Avatar={}))})(Np)),Np}var Cp={},FT;function nV(){return FT||(FT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const t=Ne(),r=Wj();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:r.Avatar.schema}},additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(Cp)),Cp}var HT;function iV(){return HT||(HT=1,(function(e){var t=Wi&&Wi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Wi&&Wi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Wj(),e),r(nV(),e)})(Wi)),Wi}var Mp={},jp={},VT;function Yj(){return VT||(VT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const t=Ne();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(r){r.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`},nearbyVoiceChat:{type:"string",enum:e.toggles,nullable:!0,errorMessage:`valid options are ${e.toggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(jp)),jp}var Dp={},xT;function Kj(){return xT||(xT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(Dp)),Dp}var Lp={},GT;function Xj(){return GT||(GT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const t=Ne();(function(r){r.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},r.schemaValidator=(0,t.generateLazyValidator)(r.schema),r.validate=n=>r.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(Lp)),Lp}var $p={},wo={},zT;function $E(){return zT||(zT=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.displayableProperties=void 0,wo.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),wo}var kp={},WT;function Jj(){return WT||(WT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Source||(e.Source={}))})(kp)),kp}var qp={},YT;function Qj(){return YT||(YT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(qp)),qp}var KT;function aV(){return KT||(KT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const t=Ne(),r=$E(),n=Yj(),i=Xj(),a=Jj(),s=Qj(),o=Kj();var c;(function(u){u.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",u.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",u.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",u.USE_WEB3_API="USE_WEB3_API",u.USE_FETCH="USE_FETCH",u.USE_WEBSOCKET="USE_WEBSOCKET",u.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(c=e.RequiredPermission||(e.RequiredPermission={})),(function(u){u.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},r.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},creator:{type:"string",nullable:!0,description:"Wallet address of the creator of the scene",pattern:"^(0x[a-fA-F0-9]{40})?$",errorMessage:"Creator must be a valid wallet address"},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},a.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:s.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(c)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},o.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:c.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},u.validate=(0,t.generateLazyValidator)(u.schema)})(e.Scene||(e.Scene={}))})($p)),$p}var XT;function sV(){return XT||(XT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var t=Yj();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return t.FeatureToggles}});var r=Kj();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return r.WorldConfiguration}});var n=Xj();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=aV();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var a=Jj();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return a.Source}});var s=Qj();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return s.SpawnPoint}})})(Mp)),Mp}var Yi={},Bp={},Up={},JT;function Zj(){return JT||(JT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const t=Ne();(function(r){r.EN="en",r.ES="es"})(e.Locale||(e.Locale={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Locale||(e.Locale={}))})(Up)),Up}var QT;function eD(){return QT||(QT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const t=Ne(),r=Zj();(function(n){n.schema={type:"object",properties:{code:r.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Bp)),Bp}var Fp={},ZT;function tD(){return ZT||(ZT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Metrics||(e.Metrics={}))})(Fp)),Fp}var Hp={},ew;function kE(){return ew||(ew=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const t=cf(),r=Ne();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:t.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,r.generateLazyValidator)(n);function a(s){return i(s)}e.isStandard=a})(Hp)),Hp}var Vp={},Ki={},xp={},tw;function oV(){return tw||(tw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.MerkleProof||(e.MerkleProof={}))})(xp)),xp}var rw;function rD(){return rw||(rw=1,(function(e){var t=Ki&&Ki.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Ki&&Ki.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(oV(),e)})(Ki)),Ki}var Gp={},nw;function qE(){return nw||(nw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMappingsHelper=e.AddMappingError=e.Mappings=e.Mapping=e.MultipleMapping=e.RangeMapping=e.AnyMapping=e.SingleMapping=e.ContractNetwork=e.MappingType=void 0;const t=Ne();var r;(function(d){d.SINGLE="single",d.ANY="any",d.MULTIPLE="multiple",d.RANGE="range"})(r=e.MappingType||(e.MappingType={}));var n;(function(d){d.MAINNET="mainnet",d.BASE_MAINNET="base_mainnet",d.BASE_SEPOLIA="base_sepolia",d.MONAD_MAINNET="monad_mainnet",d.MONAD_TESTNET="monad_testnet",d.APE_MAINNET="ape_mainnet",d.APE_CALDERA="ape_caldera",d.MATIC="matic",d.SEPOLIA="sepolia",d.AMOY="amoy"})(n=e.ContractNetwork||(e.ContractNetwork={}));var i;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.SINGLE},id:{type:"string",pattern:"^[0-9]+$"}},required:["type","id"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(i=e.SingleMapping||(e.SingleMapping={}));var a;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.ANY}},required:["type"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(a=e.AnyMapping||(e.AnyMapping={}));var s;(function(d){d._fromLessThanOrEqualTo={keyword:"_fromLessThanOrEqualTo",validate:function(p,g){if(!g||!g.from||!g.to)return!1;let{to:y,from:_}=g;return(typeof _!="bigint"||typeof y!="bigint")&&(_=BigInt(_),y=BigInt(y)),_<=y},errors:!1},d.schema={type:"object",properties:{type:{type:"string",const:r.RANGE},from:{type:"string",pattern:"^[0-9]+$"},to:{type:"string",pattern:"^[0-9]+$"}},required:["type","from","to"],additionalProperties:!1,_fromLessThanOrEqualTo:!0},d.validate=(0,t.generateLazyValidator)(d.schema,[d._fromLessThanOrEqualTo])})(s=e.RangeMapping||(e.RangeMapping={}));var o;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.MULTIPLE},ids:{type:"array",items:{type:"string",pattern:"^[0-9]+$"},minItems:1,uniqueItems:!0}},required:["type","ids"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(o=e.MultipleMapping||(e.MultipleMapping={}));var c;(function(d){d.schema={type:"object",properties:{type:{type:"string",enum:Object.values(r)}},required:["type"],oneOf:[i.schema,a.schema,s.schema,o.schema]},d.validate=(0,t.generateLazyValidator)(d.schema,[s._fromLessThanOrEqualTo])})(c=e.Mapping||(e.Mapping={})),(function(d){d._isMappingsValid={keyword:"_isMappingsValid",validate:function(p,g){try{l(g)}catch{return!1}return!0},errors:!1},d.innerSchema={type:"object",patternProperties:{"^0x[0-9a-fA-F]{40}$":{type:"array",items:c.schema}},minProperties:1,required:[],additionalProperties:!1};const f=Object.values(n).reduce((p,g)=>(p[g]=d.innerSchema,p),{});d.schema={type:"object",properties:f,minProperties:1,additionalProperties:!1,_isMappingsValid:!0},d.validate=(0,t.generateLazyValidator)(d.schema,[s._fromLessThanOrEqualTo,d._isMappingsValid])})(e.Mappings||(e.Mappings={}));class u extends Error{constructor(f,p,g){super(f),this.existingMapping=p,this.conflictingMapping=g}}e.AddMappingError=u;function l(d={}){const f={};for(const[m,E]of Object.entries(d)){f[m]={};for(const[b,N]of Object.entries(E))for(const j of N)T(m,b,j)}function p(){return JSON.parse(JSON.stringify(f))}function g(m,E,b){const N=BigInt(m);return N>=BigInt(E)&&N<=BigInt(b)}function y(m,E){switch(E.type){case r.SINGLE:return m.id===E.id;case r.MULTIPLE:return E.ids.includes(m.id);case r.RANGE:return g(m.id,E.from,E.to);default:return!1}}function _(m,E){switch(E.type){case r.SINGLE:return m.ids.includes(E.id);case r.MULTIPLE:return m.ids.some(b=>E.ids.includes(b));case r.RANGE:return m.ids.some(b=>g(b,E.from,E.to));default:return!1}}function R(m,E){switch(E.type){case r.SINGLE:return g(E.id,m.from,m.to);case r.MULTIPLE:return E.ids.some(b=>g(b,m.from,m.to));case r.RANGE:return BigInt(m.from)<=BigInt(E.to)&&BigInt(m.to)>=BigInt(E.from)}}function h(m,E){if(m.type===r.ANY||E.type===r.ANY)return!0;switch(m.type){case r.SINGLE:return y(m,E);case r.MULTIPLE:return _(m,E);case r.RANGE:return R(m,E)}}function T(m,E,b){var N,j;const $=E.toLowerCase();f[m]=(N=f[m])!==null&&N!==void 0?N:{},f[m][$]=(j=f[m][$])!==null&&j!==void 0?j:[];for(const B of f[m][$])if(h(B,b))throw new u(`Cannot add mapping to contract ${$} on network ${m} because it overlaps with existing mapping`,B,b);f[m][$].push(b)}function I(m,E,b){var N;return!((N=f[m])===null||N===void 0)&&N[E]?f[m][E].some(j=>{switch(j.type){case r.SINGLE:return j.id===b;case r.ANY:return!0;case r.MULTIPLE:return j.ids.includes(b);case r.RANGE:return BigInt(b)>=BigInt(j.from)&&BigInt(b)<=BigInt(j.to)}}):!1}return{addMapping:T,getMappings:p,includesNft:I}}e.createMappingsHelper=l})(Gp)),Gp}var iw;function BE(){return iw||(iw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.schema=void 0;const t=Ne(),r=rD(),n=qE();e.schema={type:"object",properties:{merkleProof:r.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]},mappings:Object.assign({nullable:!0},n.Mappings.schema)},required:["merkleProof","content"],_containsHashingKeys:!0};const i={keyword:"_containsHashingKeys",validate:function(o,c){var u;const l=c;return!((u=l==null?void 0:l.merkleProof)===null||u===void 0)&&u.hashingKeys?l.merkleProof.hashingKeys.every(d=>l.hasOwnProperty(d)):!1},errors:!1},a=(0,t.generateLazyValidator)(e.schema,[i,n.RangeMapping._fromLessThanOrEqualTo,n.Mappings._isMappingsValid]);function s(o){return a(o)}e.isThirdParty=s})(Vp)),Vp}var zp={},Wp={},un={},aw;function nD(){if(aw)return un;aw=1,Object.defineProperty(un,"__esModule",{value:!0}),un.isBaseEmote=un.isBaseAvatar=un.requiredBaseItemProps=un.baseItemProperties=void 0;const e=eD(),t=tD(),r=$E();un.baseItemProperties=Object.assign(Object.assign({},r.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},t.Metrics.schema),{nullable:!0})}),un.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(a){if(!a||!a.id)return!1;const s=a.id.split(":"),o=s[1]==="decentraland",c=s[3]==="base-avatars";return s.length===5&&o&&c}un.isBaseAvatar=n;function i(a){if(!a||!a.id)return!1;const s=a.id.split(":");return s.length===5&&s[1]==="decentraland"&&s[3]==="base-emotes"}return un.isBaseEmote=i,un}var sw;function cV(){return sw||(sw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const t=Ne(),r=Ja(),n=LE(),i=nD(),a=kE(),s=BE(),o=DE(),c=qE(),u=uf();(function(l){l.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),a.standardProperties),s.schema.properties.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:o.HideableWearableCategory.schema},hides:{type:"array",items:o.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:r.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0},springBones:Object.assign(Object.assign({},u.SpringBonesData.schema),{nullable:!0})},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity","mappings"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content","mappings"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const d={keyword:"_isThirdParty",validate:(p,g)=>!p||(0,s.isThirdParty)(g),errors:!1},f={keyword:"_isBaseAvatar",validate:(p,g)=>!p||(0,i.isBaseAvatar)(g),errors:!1};l.validate=(0,t.generateLazyValidator)(l.schema,[d,f,c.RangeMapping._fromLessThanOrEqualTo,c.Mappings._isMappingsValid])})(e.Wearable||(e.Wearable={}))})(Wp)),Wp}var ow;function uV(){return ow||(ow=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpringBonesData=e.SpringBoneParams=e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var t=LE();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return t.WearableRepresentation}});var r=cV();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return r.Wearable}});var n=Ja();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=zj();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var a=DE();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return a.HideableWearableCategory}});var s=uf();Object.defineProperty(e,"SpringBoneParams",{enumerable:!0,get:function(){return s.SpringBoneParams}}),Object.defineProperty(e,"SpringBonesData",{enumerable:!0,get:function(){return s.SpringBonesData}})})(zp)),zp}var Yp={},Kp={},Xp={},Jp={},cw;function iD(){return cw||(cw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const t=Ne();(function(r){r.DANCE="dance",r.STUNT="stunt",r.GREETINGS="greetings",r.FUN="fun",r.POSES="poses",r.REACTIONS="reactions",r.HORROR="horror",r.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(Jp)),Jp}var Qp={},uw;function aD(){return uw||(uw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const t=Ne(),r=jE();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:r.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(Qp)),Qp}var Zp={},lw;function sD(){return lw||(lw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutcomeGroup=e.StartAnimation=e.EmoteClip=e.ArmatureId=void 0;const t=Ne();var r;(function(i){i.Armature="Armature",i.Armature_Prop="Armature_Prop",i.Armature_Other="Armature_Other"})(r=e.ArmatureId||(e.ArmatureId={})),(function(i){i.schema={type:"string",enum:Object.values(i)},i.validate=(0,t.generateLazyValidator)(i.schema)})(r=e.ArmatureId||(e.ArmatureId={}));var n;(function(i){i.schema={type:"object",properties:{animation:{type:"string",minLength:1,errorMessage:"animation must be a non-empty string (GLB clip name)"}},required:["animation"],additionalProperties:!1,errorMessage:{required:{animation:"animation is required (GLB clip name)"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(n=e.EmoteClip||(e.EmoteClip={})),(function(i){i.schema={type:"object",properties:{loop:{type:"boolean",errorMessage:"startAnimation.loop must be a boolean"},[r.Armature]:Object.assign(Object.assign({},n.schema),{errorMessage:"startAnimation.Armature is required and must contain valid animation data"}),[r.Armature_Prop]:Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:"startAnimation.Armature_Prop must contain valid animation data when provided"}),audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["loop",r.Armature],additionalProperties:!1,errorMessage:{required:{loop:"startAnimation.loop is required",[r.Armature]:"startAnimation.Armature is required"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.StartAnimation||(e.StartAnimation={})),(function(i){i.schema={type:"object",properties:{title:{type:"string",minLength:1,errorMessage:"outcome.title must be a non-empty string"},loop:{type:"boolean",errorMessage:"outcome.loop must be a boolean"},clips:{type:"object",properties:Object.values(r).reduce((a,s)=>(a[s]=Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:`outcome.clips.${s} must contain valid animation data when provided`}),a),{}),additionalProperties:!0,minProperties:1,errorMessage:"outcome.clips must contain at least one armature animation"},audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["title","loop","clips"],additionalProperties:!1,errorMessage:{required:{title:"outcome.title is required",loop:"outcome.loop is required",clips:"outcome.clips is required"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.OutcomeGroup||(e.OutcomeGroup={}))})(Zp)),Zp}var dw;function oD(){return dw||(dw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const t=iD(),r=Ne(),n=aD(),i=sD();(function(a){a.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:t.EmoteCategory.schema,loop:{type:"boolean"},startAnimation:Object.assign(Object.assign({},i.StartAnimation.schema),{nullable:!0}),randomizeOutcomes:{type:"boolean",nullable:!0},outcomes:{type:"array",items:i.OutcomeGroup.schema,minItems:1,maxItems:3,nullable:!0}},required:["category","tags","representations","loop"],dependencies:{startAnimation:["randomizeOutcomes","outcomes"],randomizeOutcomes:["startAnimation","outcomes"],outcomes:["startAnimation","randomizeOutcomes"]},additionalProperties:!0},a.validate=(0,r.generateLazyValidator)(a.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(Xp)),Xp}var fw;function lV(){return fw||(fw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const t=cD(),r=Ne(),n=nD(),i=kE(),a=BE(),s=oD();(function(o){o.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),a.schema.properties),{emoteDataADR74:s.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const c={keyword:"_isThirdParty",validate:(l,d)=>!l||(0,t.isThirdParty)(d),errors:!1},u={keyword:"_isBaseEmote",validate:(l,d)=>!l||(0,n.isBaseEmote)(d),errors:!1};o.validate=(0,r.generateLazyValidator)(o.schema,[c,u,t.RangeMapping._fromLessThanOrEqualTo,t.Mappings._isMappingsValid])})(e.Emote||(e.Emote={}))})(Kp)),Kp}var eh={},pw;function dV(){return pw||(pw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const t=Ne();(function(r){r.SIMPLE="simple",r.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(eh)),eh}var th={},hw;function fV(){return hw||(hw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=void 0;const t=Ne();(function(r){r.SIMPLE_OUTCOME="so",r.MULTIPLE_OUTCOME="mo",r.RANDOM_OUTCOME="ro"})(e.EmoteOutcomeType||(e.EmoteOutcomeType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmoteOutcomeType||(e.EmoteOutcomeType={}))})(th)),th}var mw;function pV(){return mw||(mw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=e.EmotePlayMode=e.EmoteCategory=e.StartAnimation=e.OutcomeGroup=e.EmoteClip=e.ArmatureId=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var t=lV();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return t.Emote}});var r=aD();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return r.EmoteRepresentationADR74}});var n=oD();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=sD();Object.defineProperty(e,"ArmatureId",{enumerable:!0,get:function(){return i.ArmatureId}}),Object.defineProperty(e,"EmoteClip",{enumerable:!0,get:function(){return i.EmoteClip}}),Object.defineProperty(e,"OutcomeGroup",{enumerable:!0,get:function(){return i.OutcomeGroup}}),Object.defineProperty(e,"StartAnimation",{enumerable:!0,get:function(){return i.StartAnimation}});var a=iD();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return a.EmoteCategory}});var s=dV();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return s.EmotePlayMode}});var o=fV();Object.defineProperty(e,"EmoteOutcomeType",{enumerable:!0,get:function(){return o.EmoteOutcomeType}})})(Yp)),Yp}var yw;function cD(){return yw||(yw=1,(function(e){var t=Yi&&Yi.__createBinding||(Object.create?(function(u,l,d,f){f===void 0&&(f=d);var p=Object.getOwnPropertyDescriptor(l,d);(!p||("get"in p?!l.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(u,f,p)}):(function(u,l,d,f){f===void 0&&(f=d),u[f]=l[d]})),r=Yi&&Yi.__exportStar||function(u,l){for(var d in u)d!=="default"&&!Object.prototype.hasOwnProperty.call(l,d)&&t(l,u,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=eD();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=Zj();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var a=tD();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return a.Metrics}});var s=jE();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return s.BodyShape}});var o=kE();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return o.isStandard}});var c=BE();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return c.isThirdParty}}),r(qE(),e),r(uV(),e),r(pV(),e)})(Yi)),Yi}var rh={},nh={},gw;function Xc(){return gw||(gw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const t=Ne();var r;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(r=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(r)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:r.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,t.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(nh)),nh}var _w;function hV(){return _w||(_w=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const t=Qa(),r=Xc(),n=Ne();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:r.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:t.IPFSv1.schema}},{properties:{entityId:t.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:r.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:t.IPFSv1.schema}},{properties:{entityId:t.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(rh)),rh}var ih={},ah={},vw;function uD(){return vw||(vw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const t=Qa(),r=Ne();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[t.IPFSv1.schema,t.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,r.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(ah)),ah}var Ew;function lD(){return Ew||(Ew=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const t=Qa(),r=uD(),n=Ne();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[t.IPFSv1.schema,t.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:r.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(ih)),ih}var sh={},bw;function mV(){return bw||(bw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const t=Xc(),r=Ne();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:t.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,r.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(sh)),sh}var Xi={},oh={},Sw;function yV(){return Sw||(Sw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const t=Ja(),r=Qa(),n=Ne();var i;(function(a){a.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:r.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:r.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:r.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:t.WearableCategory.schema}},additionalProperties:!0},a.validate=(0,n.generateLazyValidator)(a.schema)})(i=e.Outfit||(e.Outfit={})),(function(a){a.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},a.validate=(0,n.generateLazyValidator)(a.schema)})(e.Outfits||(e.Outfits={}))})(oh)),oh}var Tw;function gV(){return Tw||(Tw=1,(function(e){var t=Xi&&Xi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Xi&&Xi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(yV(),e)})(Xi)),Xi}var Ji={},ch={},ww;function dD(){return ww||(ww=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationOptOutScope=e.NotificationType=void 0,(function(t){t.BADGE_GRANTED="badge_granted",t.BID_ACCEPTED="bid_accepted",t.BID_RECEIVED="bid_received",t.EVENTS_STARTED="events_started",t.EVENTS_STARTS_SOON="events_starts_soon",t.EVENT_CREATED="event_created",t.EVENT_APPROVED="event_approved",t.EVENT_REJECTED="event_rejected",t.EVENT_DELETED="event_deleted",t.GOVERNANCE_ANNOUNCEMENT="governance_announcement",t.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",t.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",t.GOVERNANCE_CLIFF_ENDED="governance_cliff_ended",t.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",t.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",t.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",t.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",t.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",t.GOVERNANCE_TENDER_PASSED="governance_tender_passed",t.GOVERNANCE_WHALE_VOTE="governance_whale_vote",t.GOVERNANCE_VOTED_ON_BEHALF="governance_voted_on_behalf",t.ITEM_SOLD="item_sold",t.ITEM_PUBLISHED="item_published",t.LAND_RENTAL_ENDED="rental_ended",t.LAND_RENTED="rental_started",t.REWARD_ASSIGNED="reward_assignment",t.REWARD_CAMPAIGN_OUT_OF_FUNDS="reward_campaign_out_of_funds",t.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="reward_campaign_gas_price_higher_than_expected",t.REWARD_CAMPAIGN_OUT_OF_STOCK="reward_campaign_out_of_stock",t.REWARD_DELAYED="reward_delayed",t.REWARD_IN_PROGRESS="reward_in_progress",t.ROYALTIES_EARNED="royalties_earned",t.SOCIAL_SERVICE_FRIENDSHIP_REQUEST="social_service_friendship_request",t.SOCIAL_SERVICE_FRIENDSHIP_ACCEPTED="social_service_friendship_accepted",t.WORLDS_ACCESS_RESTORED="worlds_access_restored",t.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",t.WORLDS_MISSING_RESOURCES="worlds_missing_resources",t.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",t.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",t.CREDITS_GOAL_COMPLETED="credits_goal_completed",t.CREDITS_ON_DEMAND_GRANTED="credits_on_demand_granted",t.STREAMING_KEY_RESET="streaming_key_reset",t.STREAMING_KEY_REVOKE="streaming_key_revoke",t.STREAMING_KEY_EXPIRED="streaming_key_expired",t.STREAMING_TIME_EXCEEDED="streaming_time_exceeded",t.STREAMING_PLACE_UPDATED="streaming_place_updated",t.CREDITS_REMINDER_COMPLETE_GOALS="credits_reminder_complete_goals",t.CREDITS_REMINDER_CLAIM_CREDITS="credits_reminder_claim_credits",t.CREDITS_REMINDER_USAGE="credits_reminder_usage",t.CREDITS_REMINDER_USAGE_24_HOURS="credits_reminder_usage_24_hours",t.CREDITS_REMINDER_DO_NOT_MISS_OUT="credits_reminder_do_not_miss_out",t.CREDITS_NEW_SEASON_REMINDER="credits_new_season_reminder",t.REFERRAL_INVITED_USERS_ACCEPTED="referral_invited_users_accepted",t.REFERRAL_NEW_TIER_REACHED="referral_new_tier_reached",t.COMMUNITY_DELETED="community_deleted",t.COMMUNITY_DELETED_CONTENT_VIOLATION="community_deleted_content_violation",t.COMMUNITY_RENAMED="community_renamed",t.COMMUNITY_MEMBER_BANNED="community_member_banned",t.COMMUNITY_MEMBER_REMOVED="community_member_removed",t.COMMUNITY_REQUEST_TO_JOIN_RECEIVED="community_request_to_join_received",t.COMMUNITY_REQUEST_TO_JOIN_ACCEPTED="community_request_to_join_accepted",t.COMMUNITY_INVITE_RECEIVED="community_invite_received",t.COMMUNITY_OWNERSHIP_TRANSFERRED="community_ownership_transferred",t.COMMUNITY_POST_ADDED="community_post_added",t.COMMUNITY_VOICE_CHAT_STARTED="community_voice_chat_started",t.USER_BANNED_FROM_SCENE="user_banned_from_scene",t.USER_UNBANNED_FROM_SCENE="user_unbanned_from_scene",t.TRANSFER_RECEIVED="transfer_received",t.TIP_RECEIVED="tip_received",t.BANNED="banned",t.BAN_WARNING="ban_warning",t.BAN_LIFTED="ban_lifted"})(e.NotificationType||(e.NotificationType={})),(function(t){t.COMMUNITY="community"})(e.NotificationOptOutScope||(e.NotificationOptOutScope={}))})(ch)),ch}var uh={},lh={},Iw;function fD(){return Iw||(Iw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionDetails=void 0;const t=Ne(),r=dD(),n={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},i=Object.values(r.NotificationType).reduce((a,s)=>(a[s]=n,a),{});(function(a){a.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(r.NotificationType),additionalProperties:!1,properties:i}}},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.SubscriptionDetails||(e.SubscriptionDetails={}))})(lh)),lh}var dh={},Rw;function pD(){return Rw||(Rw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Email=void 0,(function(t){t.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const r=new RegExp(t.schema.pattern);t.validate=n=>r.test(n)})(e.Email||(e.Email={}))})(dh)),dh}var Aw;function _V(){return Aw||(Aw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=void 0;const t=Ne(),r=fD(),n=Qa(),i=pD();(function(a){a.schema={type:"object",required:["address","details"],properties:{address:n.EthAddress.schema,email:Object.assign(Object.assign({},i.Email.schema),{nullable:!0}),details:r.SubscriptionDetails.schema}},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Subscription||(e.Subscription={}))})(uh)),uh}var Ow;function vV(){return Ow||(Ow=1,(function(e){var t=Ji&&Ji.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Ji&&Ji.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(dD(),e),r(_V(),e),r(fD(),e)})(Ji)),Ji}var Qi={},fh={},Nw;function Cr(){return Nw||(Nw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0,(function(t){(function(r){r.BLOCKCHAIN="blockchain",r.CATALYST_DEPLOYMENT="catalyst-deployment",r.WORLD="world",r.CLIENT="client",r.WEB="web",r.MARKETPLACE="marketplace",r.REWARDS="rewards",r.BADGE="badge",r.ASSET_BUNDLE="asset-bundle",r.SOCIAL_SERVICE="social-service",r.CREDITS_SERVICE="credits-service",r.STREAMING="streaming",r.COMMS="comms",r.REFERRAL="referral",r.COMMUNITY="community",r.CAMERA="camera",r.EVENT="event",r.GOVERNANCE="governance",r.MODERATION="moderation"})(t.Type||(t.Type={})),(function(r){(function(n){n.BID_ACCEPTED="bid-accepted",n.ITEM_SOLD="item-sold",n.RENTAL_ENDED="land-rental-ended",n.RENTAL_STARTED="land-rental-started",n.ROYALTIES_EARNED="royalties-earned",n.COLLECTION_CREATED="collection-created",n.ITEM_PUBLISHED="item-published",n.TRANSFER_RECEIVED="transfer-received",n.TIP_RECEIVED="tip-received"})(r.Blockchain||(r.Blockchain={})),(function(n){n.BID_RECEIVED="bid-received"})(r.Marketplace||(r.Marketplace={})),(function(n){n.SCENE="scene",n.PROFILE="profile",n.WEARABLE="wearable",n.STORE="store",n.EMOTE="emote",n.OUTFITS="outfits"})(r.CatalystDeployment||(r.CatalystDeployment={})),(function(n){n.DEPLOYMENT="deployment",n.WORLD_SETTINGS_CHANGED="world_settings_changed",n.WORLD_SCENES_UNDEPLOYMENT="world_scenes_undeployment",n.WORLD_UNDEPLOYMENT="world_undeployment",n.WORLD_SPAWN_COORDINATE_SET="world_spawn_coordinate_set",n.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",n.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",n.WORLDS_ACCESS_RESTORED="worlds_access_restored",n.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",n.WORLDS_MISSING_RESOURCES="worlds_missing_resources"})(r.Worlds||(r.Worlds={})),(function(n){n.LOGGED_IN="logged-in",n.LOGGED_IN_CACHED="logged-in-cached",n.MOVE_TO_PARCEL="move-to-parcel",n.USED_EMOTE="used-emote",n.PASSPORT_OPENED="passport-opened",n.WALKED_DISTANCE="walked-distance",n.VERTICAL_HEIGHT_REACHED="vertical-height-reached"})(r.Client||(r.Client={})),(function(n){n.AUTH_IDENTIFY="auth-identify"})(r.Web||(r.Web={})),(function(n){n.REWARD_IN_PROGRESS="reward-in-progress",n.REWARD_ASSIGNED="reward-assigned",n.CAMPAIGN_OUT_OF_FUNDS="campaign-out-of-funds",n.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="campaign-gas-price-higher-than-expected",n.CAMPAIGN_OUT_OF_STOCK="campaign-out-of-stock",n.REWARD_DELAYED="reward-delayed"})(r.Rewards||(r.Rewards={})),(function(n){n.GRANTED="badge-granted"})(r.Badge||(r.Badge={})),(function(n){n.CONVERTED="converted",n.MANUALLY_QUEUED="manually-queued"})(r.AssetBundle||(r.AssetBundle={})),(function(n){n.FRIENDSHIP_REQUEST="friendship-request",n.FRIENDSHIP_ACCEPTED="friendship-accepted"})(r.SocialService||(r.SocialService={})),(function(n){n.CREDITS_GOAL_COMPLETED="credits-goal-completed",n.COMPLETE_GOALS_REMINDER="complete-goals-reminder",n.CLAIM_CREDITS_REMINDER="claim-credits-reminder",n.DO_NOT_MISS_OUT_REMINDER="do-not-miss-out-reminder",n.USAGE_REMINDER="usage-reminder",n.USAGE_24_HOURS_REMINDER="usage-24-hours-reminder",n.ON_DEMAND_CREDITS_GRANTED="on-demand-credits-granted",n.NEW_SEASON_REMINDER="new-season-reminder"})(r.CreditsService||(r.CreditsService={})),(function(n){n.STREAMING_KEY_RESET="streaming-key-reset",n.STREAMING_KEY_REVOKE="streaming-key-revoke",n.STREAMING_KEY_EXPIRED="streaming-key-expired",n.STREAMING_TIME_EXCEEDED="streaming-time-exceeded",n.STREAMING_PLACE_UPDATED="streaming-place-updated",n.COMMUNITY_STREAMING_ENDED="community-streaming-ended"})(r.Streaming||(r.Streaming={})),(function(n){n.USER_JOINED_ROOM="user-joined-room",n.USER_LEFT_ROOM="user-left-room",n.USER_BANNED_FROM_SCENE="user-banned-from-scene",n.USER_UNBANNED_FROM_SCENE="user-unbanned-from-scene"})(r.Comms||(r.Comms={})),(function(n){n.REFERRAL_INVITED_USERS_ACCEPTED="referral-invited-users-accepted",n.REFERRAL_NEW_TIER_REACHED="referral-new-tier-reached"})(r.Referral||(r.Referral={})),(function(n){n.DELETED="community-deleted",n.DELETED_CONTENT_VIOLATION="community-deleted-content-violation",n.RENAMED="community-renamed",n.MEMBER_BANNED="community-member-banned",n.MEMBER_LEFT="community-member-left",n.MEMBER_REMOVED="community-member-removed",n.REQUEST_TO_JOIN_RECEIVED="community-request-to-join-received",n.REQUEST_TO_JOIN_ACCEPTED="community-request-to-join-accepted",n.INVITE_RECEIVED="community-invite-received",n.OWNERSHIP_TRANSFERRED="community-ownership-transferred",n.POST_ADDED="community-post-added",n.VOICE_CHAT_STARTED="community-voice-chat-started"})(r.Community||(r.Community={})),(function(n){n.PHOTO_TAKEN="photo-taken",n.PHOTO_PRIVACY_CHANGED="photo-privacy-changed"})(r.Camera||(r.Camera={})),(function(n){n.EVENT_CREATED="event-created",n.EVENT_STARTS_SOON="event-starts-soon",n.EVENT_STARTED="event-started",n.EVENT_ENDED="event-ended",n.EVENT_APPROVED="event-approved",n.EVENT_REJECTED="event-rejected",n.EVENT_DELETED="event-deleted"})(r.Event||(r.Event={})),(function(n){n.PROPOSAL_ENACTED="governance_proposal_enacted",n.COAUTHOR_REQUESTED="governance_coauthor_requested",n.PITCH_PASSED="governance_pitch_passed",n.TENDER_PASSED="governance_tender_passed",n.AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",n.VOTING_ENDED_VOTER="governance_voting_ended_voter",n.NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",n.NEW_COMMENT_ON_PROJECT_UPDATED="governance_new_comment_on_project_update",n.WHALE_VOTE="governance_whale_vote",n.VOTED_ON_BEHALF="governance_voted_on_behalf",n.CLIFF_ENDED="governance_cliff_ended"})(r.Governance||(r.Governance={})),(function(n){n.USER_BAN_CREATED="user-ban-created",n.USER_BAN_LIFTED="user-ban-lifted",n.USER_WARNING_CREATED="user-warning-created"})(r.Moderation||(r.Moderation={}))})(t.SubType||(t.SubType={}))})(e.Events||(e.Events={}))})(fh)),fh}var ph={},Pw;function EV(){return Pw||(Pw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TipReceivedEvent=e.TransferReceivedEvent=e.CollectionCreatedEvent=e.RoyaltiesEarnedEvent=e.RentalStartedEvent=e.RentalEndedEvent=e.ItemPublishedEvent=e.ItemSoldEvent=e.BidAcceptedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.BID_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BidAcceptedEvent||(e.BidAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ITEM_SOLD},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},buyer:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},tokenId:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string"}},required:["address","image","seller","category","link","network","title","description"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ItemSoldEvent||(e.ItemSoldEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ITEM_PUBLISHED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},itemId:{type:"string"},network:{type:"string"},urn:{type:"string"}},required:["creator","category","itemId","network","urn"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ItemPublishedEvent||(e.ItemPublishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.RENTAL_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RentalEndedEvent||(e.RentalEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.RENTAL_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RentalStartedEvent||(e.RentalStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ROYALTIES_EARNED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},royaltiesCut:{type:"string"},royaltiesCollector:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","image","category","link","royaltiesCut","royaltiesCollector","network","title"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RoyaltiesEarnedEvent||(e.RoyaltiesEarnedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.COLLECTION_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},name:{type:"string"}},required:["creator","name"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CollectionCreatedEvent||(e.CollectionCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.TRANSFER_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},tokenUri:{type:"string",nullable:!0}},required:["senderAddress","receiverAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.TransferReceivedEvent||(e.TransferReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.TIP_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},amount:{type:"string"}},required:["senderAddress","receiverAddress","amount"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.TipReceivedEvent||(e.TipReceivedEvent={}))})(ph)),ph}var hh={},Cw;function bV(){return Cw||(Cw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalystDeploymentEvent=void 0;const t=Xc(),r=Ne(),n=lD(),i=Cr();(function(a){a.schema={type:"object",properties:{type:{type:"string",const:i.Events.Type.CATALYST_DEPLOYMENT},subType:{type:"string",enum:Object.values(i.Events.SubType.CatalystDeployment)},key:{type:"string"},timestamp:{type:"number",minimum:1},entity:n.Entity.schema,authChain:t.AuthChain.schema},required:["type","subType","entity","authChain","key","timestamp"],additionalProperties:!1},a.validate=(0,r.generateLazyValidator)(a.schema)})(e.CatalystDeploymentEvent||(e.CatalystDeploymentEvent={}))})(hh)),hh}var mh={},Mw;function SV(){return Mw||(Mw=1,Object.defineProperty(mh,"__esModule",{value:!0})),mh}var yh={},jw;function TV(){return jw||(jw=1,Object.defineProperty(yh,"__esModule",{value:!0})),yh}var gh={},Dw;function wV(){return Dw||(Dw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BidReceivedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MARKETPLACE},subType:{type:"string",const:r.Events.SubType.Marketplace.BID_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BidReceivedEvent||(e.BidReceivedEvent={}))})(gh)),gh}var _h={},Io={},Lw;function lf(){if(Lw)return Io;Lw=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.createEventSchema=void 0;function e(t,r,n){return{type:"object",properties:{type:{type:"string",const:t},subType:{type:"string",const:r},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:n},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}}return Io.createEventSchema=e,Io}var $w;function IV(){return $w||($w=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RewardDelayedEvent=e.CampaignOutOfStockEvent=e.CampaignGasPriceHigherThanExpectedEvent=e.CampaignOutOfFundsEvent=e.RewardAssignedEvent=e.RewardInProgressEvent=void 0;const t=Ne(),r=Cr(),n=lf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},beneficiary:{type:"string"},tokenName:{type:"string"},tokenImage:{type:"string"},tokenRarity:{type:"string",nullable:!0},tokenCategory:{type:"string",nullable:!0}},required:["title","description","beneficiary","tokenName","tokenImage"],additionalProperties:!1},a={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},owner:{type:"string"},campaignId:{type:"string"},campaignName:{type:"string"}},required:["title","description","owner","campaignId","campaignName"],additionalProperties:!1};(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_IN_PROGRESS,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardInProgressEvent||(e.RewardInProgressEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_ASSIGNED,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardAssignedEvent||(e.RewardAssignedEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_OUT_OF_FUNDS,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignOutOfFundsEvent||(e.CampaignOutOfFundsEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignGasPriceHigherThanExpectedEvent||(e.CampaignGasPriceHigherThanExpectedEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_OUT_OF_STOCK,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignOutOfStockEvent||(e.CampaignOutOfStockEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_DELAYED,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardDelayedEvent||(e.RewardDelayedEvent={}))})(_h)),_h}var vh={},kw;function RV(){return kw||(kw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreditsClaimReminderEvent=e.CreditsDoNotMissOutReminderEvent=e.CreditsUsage24HoursReminderEvent=e.CreditsNewSeasonReminderEvent=e.CreditsUsageReminderEvent=e.CreditsCompleteGoalsReminderEvent=e.CreditsGoalCompletedEvent=e.CreditsOnDemandEvent=e.FriendshipAcceptedEvent=e.FriendshipRequestEvent=e.AssetBundleConversionManuallyQueuedEvent=e.AssetBundleConversionFinishedEvent=e.BadgeGrantedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BADGE},subType:{type:"string",const:r.Events.SubType.Badge.GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{badgeId:{type:"string"},badgeTierName:{type:"string",nullable:!0},badgeName:{type:"string"},badgeImageUrl:{type:"string"},address:{type:"string"}},required:["badgeId","badgeName","badgeImageUrl","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BadgeGrantedEvent||(e.BadgeGrantedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:r.Events.SubType.AssetBundle.CONVERTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},statusCode:{type:"number"},isLods:{type:"boolean"},isWorld:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","statusCode","isLods","isWorld","version"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.AssetBundleConversionFinishedEvent||(e.AssetBundleConversionFinishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:r.Events.SubType.AssetBundle.MANUALLY_QUEUED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},isLods:{type:"boolean"},isPriority:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","isLods"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.AssetBundleConversionManuallyQueuedEvent||(e.AssetBundleConversionManuallyQueuedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:r.Events.SubType.SocialService.FRIENDSHIP_REQUEST},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},message:{type:"string",nullable:!0}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.FriendshipRequestEvent||(e.FriendshipRequestEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:r.Events.SubType.SocialService.FRIENDSHIP_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.FriendshipAcceptedEvent||(e.FriendshipAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.ON_DEMAND_CREDITS_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creditsGranted:{type:"number",minimum:1},address:{type:"string"},granterAddress:{type:"string"}},required:["creditsGranted","address","granterAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsOnDemandEvent||(e.CreditsOnDemandEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.CREDITS_GOAL_COMPLETED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{goalId:{type:"string"},creditsObtained:{type:"number",minimum:0},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},address:{type:"string"}},required:["goalId","creditsObtained","seasonId","weekNumber","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsGoalCompletedEvent||(e.CreditsGoalCompletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.COMPLETE_GOALS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},pendingGoalIds:{type:"array",items:{type:"string"},minItems:1}},required:["address","seasonId","weekNumber","pendingGoalIds"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsCompleteGoalsReminderEvent||(e.CreditsCompleteGoalsReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.USAGE_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"},expirationDay:{type:"string"}},required:["address","creditsAmount","expirationDate","expirationDay"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsUsageReminderEvent||(e.CreditsUsageReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.NEW_SEASON_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{addresses:{type:"array",items:{type:"string"}},seasonName:{type:"string"},startDate:{type:"string"},endDate:{type:"string"}},required:["addresses","seasonName","startDate","endDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsNewSeasonReminderEvent||(e.CreditsNewSeasonReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.USAGE_24_HOURS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"}},required:["address","creditsAmount","expirationDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsUsage24HoursReminderEvent||(e.CreditsUsage24HoursReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.DO_NOT_MISS_OUT_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"}},required:["address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsDoNotMissOutReminderEvent||(e.CreditsDoNotMissOutReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.CLAIM_CREDITS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1}},required:["address","seasonId","weekNumber"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsClaimReminderEvent||(e.CreditsClaimReminderEvent={}))})(vh)),vh}var Eh={},qw;function AV(){return qw||(qw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityStreamingEndedEvent=e.StreamingPlaceUpdatedEvent=e.StreamingTimeExceededEvent=e.StreamingKeyExpiredEvent=e.StreamingKeyRevokeEvent=e.StreamingKeyResetEvent=void 0;const t=Ne(),r=Cr(),n=lf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},position:{type:"string"},worldName:{type:"string",nullable:!0},isWorld:{type:"boolean"},url:{type:"string"},address:{type:"string"},image:{type:"string"}},required:["position","isWorld","url","title","description","address","image"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_RESET,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyResetEvent||(e.StreamingKeyResetEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_REVOKE,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyRevokeEvent||(e.StreamingKeyRevokeEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_EXPIRED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyExpiredEvent||(e.StreamingKeyExpiredEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_TIME_EXCEEDED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingTimeExceededEvent||(e.StreamingTimeExceededEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_PLACE_UPDATED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingPlaceUpdatedEvent||(e.StreamingPlaceUpdatedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.COMMUNITY_STREAMING_ENDED,{type:"object",properties:{communityId:{type:"string"},totalParticipants:{type:"number"}},required:["communityId","totalParticipants"],additionalProperties:!1}),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.CommunityStreamingEndedEvent||(e.CommunityStreamingEndedEvent={}))})(Eh)),Eh}var bh={},Bw;function OV(){return Bw||(Bw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserUnbannedFromSceneEvent=e.UserBannedFromSceneEvent=e.UserLeftRoomEvent=e.UserJoinedRoomEvent=e.RoomType=void 0;const t=Ne(),r=Cr();var n;(function(i){i.PRIVATE_MESSAGE="private-message",i.VOICE_CHAT="voice-chat",i.COMMUNITY_VOICE_CHAT="community-voice-chat",i.ISLAND="island",i.SCENE="scene",i.WORLD="world",i.UNKNOWN="unknown"})(n=e.RoomType||(e.RoomType={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_JOINED_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{parcel:{type:"string"},sceneId:{type:"string"},userAddress:{type:"string"},realmName:{type:"string"},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)}},required:["parcel","sceneId","userAddress","realmName","isWorld","roomType"]}},required:["type","subType","key","timestamp","metadata"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserJoinedRoomEvent||(e.UserJoinedRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_LEFT_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},realmName:{type:"string"},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)},sceneId:{type:"string",nullable:!0},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0}},required:["isWorld","userAddress","realmName","roomType"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserLeftRoomEvent||(e.UserLeftRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_BANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserBannedFromSceneEvent||(e.UserBannedFromSceneEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_UNBANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserUnbannedFromSceneEvent||(e.UserUnbannedFromSceneEvent={}))})(bh)),bh}var Sh={},Uw;function NV(){return Uw||(Uw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReferralNewTierReachedEvent=e.ReferralInvitedUsersAcceptedEvent=void 0;const t=Ne(),r=Cr(),n=lf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},address:{type:"string"},tier:{type:"number",minimum:1},url:{type:"string"},image:{type:"string"},invitedUserAddress:{type:"string"},invitedUsers:{type:"number",minimum:1},rarity:{type:"string",nullable:!0}},required:["address","tier","url","title","description","image","invitedUserAddress"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.REFERRAL,r.Events.SubType.Referral.REFERRAL_INVITED_USERS_ACCEPTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.ReferralInvitedUsersAcceptedEvent||(e.ReferralInvitedUsersAcceptedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.REFERRAL,r.Events.SubType.Referral.REFERRAL_NEW_TIER_REACHED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.ReferralNewTierReachedEvent||(e.ReferralNewTierReachedEvent={}))})(Sh)),Sh}var Th={},Fw;function PV(){return Fw||(Fw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityVoiceChatStartedEvent=e.CommunityOwnershipTransferredEvent=e.CommunityPostAddedEvent=e.CommunityInviteReceivedEvent=e.CommunityRequestToJoinAcceptedEvent=e.CommunityRequestToJoinReceivedEvent=e.CommunityMemberRemovedEvent=e.CommunityMemberLeftEvent=e.CommunityMemberBannedEvent=e.CommunityRenamedEvent=e.CommunityDeletedContentViolationEvent=e.CommunityDeletedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.DELETED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","name","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityDeletedEvent||(e.CommunityDeletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.DELETED_CONTENT_VIOLATION},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},ownerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","ownerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityDeletedContentViolationEvent||(e.CommunityDeletedContentViolationEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.RENAMED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},oldName:{type:"string"},newName:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","oldName","newName","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRenamedEvent||(e.CommunityRenamedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_BANNED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberBannedEvent||(e.CommunityMemberBannedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_LEFT},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},memberAddress:{type:"string"}},required:["id","memberAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberLeftEvent||(e.CommunityMemberLeftEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_REMOVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberRemovedEvent||(e.CommunityMemberRemovedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.REQUEST_TO_JOIN_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},memberName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","memberAddress","memberName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinReceivedEvent||(e.CommunityRequestToJoinReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.REQUEST_TO_JOIN_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinAcceptedEvent||(e.CommunityRequestToJoinAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.INVITE_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityInviteReceivedEvent||(e.CommunityInviteReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.POST_ADDED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},postId:{type:"string"},authorAddress:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["addressesToNotify","communityId","communityName","thumbnailUrl","postId","authorAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityPostAddedEvent||(e.CommunityPostAddedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.OWNERSHIP_TRANSFERRED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},oldOwnerAddress:{type:"string"},newOwnerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","oldOwnerAddress","newOwnerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityOwnershipTransferredEvent||(e.CommunityOwnershipTransferredEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.VOICE_CHAT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityVoiceChatStartedEvent||(e.CommunityVoiceChatStartedEvent={}))})(Th)),Th}var wh={},Hw;function CV(){return Hw||(Hw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PhotoTakenEvent=e.PhotoPrivacyChangedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CAMERA},subType:{type:"string",const:r.Events.SubType.Camera.PHOTO_PRIVACY_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"}},required:["userAddress","photoId","isPublic"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PhotoPrivacyChangedEvent||(e.PhotoPrivacyChangedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CAMERA},subType:{type:"string",const:r.Events.SubType.Camera.PHOTO_TAKEN},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sceneId:{type:"string"},userAddress:{type:"string"},realm:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"},users:{type:"array",items:{type:"object",properties:{address:{type:"string"},isEmoting:{type:"boolean"}},required:["address","isEmoting"],additionalProperties:!1}},placeId:{type:"string",nullable:!0}},required:["userAddress","realm","photoId","isPublic","users"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PhotoTakenEvent||(e.PhotoTakenEvent={}))})(wh)),wh}var Ih={},Vw;function MV(){return Vw||(Vw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventDeletedEvent=e.EventRejectedEvent=e.EventApprovedEvent=e.EventEndedEvent=e.EventCreatedEvent=e.EventStartsSoonEvent=e.EventStartedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},communityId:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventStartedEvent||(e.EventStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_STARTS_SOON},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},startsAt:{type:"string"},endsAt:{type:"string"},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link","startsAt","endsAt"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventStartsSoonEvent||(e.EventStartsSoonEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},communityId:{type:"string"},communityName:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventCreatedEvent||(e.EventCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{communityId:{type:"string",nullable:!0},totalAttendees:{type:"number"}},required:["totalAttendees"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventEndedEvent||(e.EventEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_APPROVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{host:{type:"string"},title:{type:"string"},description:{type:"string"},image:{type:"string"},link:{type:"string"}},required:["host","title","image","link"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventApprovedEvent||(e.EventApprovedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_REJECTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{host:{type:"string"},title:{type:"string"},description:{type:"string"},image:{type:"string"},reason:{type:"string"}},required:["host","title","image","reason"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventRejectedEvent||(e.EventRejectedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_DELETED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{host:{type:"string"},title:{type:"string"},description:{type:"string"},image:{type:"string"},reason:{type:"string",nullable:!0}},required:["host","title","image"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventDeletedEvent||(e.EventDeletedEvent={}))})(Ih)),Ih}var Rh={},xw;function jV(){return xw||(xw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GovernanceCliffEndedEvent=e.GovernanceVotedOnBehalfEvent=e.GovernanceWhaleVoteEvent=e.GovernanceNewCommentOnProjectUpdatedEvent=e.GovernanceNewCommentOnProposalEvent=e.GovernanceVotingEndedVoterEvent=e.GovernanceAuthoredProposalFinishedEvent=e.GovernanceTenderPassedEvent=e.GovernancePitchPassedEvent=e.GovernanceCoauthorRequestedEvent=e.GovernanceProposalEnactedEvent=void 0;const t=Ne(),r=Cr(),n=lf(),i={type:"object",properties:{proposalId:{type:"string"},proposalTitle:{type:"string"},title:{type:"string"},description:{type:"string"},link:{type:"string"},address:{type:"string"}},required:["proposalId","proposalTitle","title","description","link","address"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.PROPOSAL_ENACTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceProposalEnactedEvent||(e.GovernanceProposalEnactedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.COAUTHOR_REQUESTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceCoauthorRequestedEvent||(e.GovernanceCoauthorRequestedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.PITCH_PASSED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernancePitchPassedEvent||(e.GovernancePitchPassedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.TENDER_PASSED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceTenderPassedEvent||(e.GovernanceTenderPassedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.AUTHORED_PROPOSAL_FINISHED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceAuthoredProposalFinishedEvent||(e.GovernanceAuthoredProposalFinishedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.VOTING_ENDED_VOTER,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceVotingEndedVoterEvent||(e.GovernanceVotingEndedVoterEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.NEW_COMMENT_ON_PROPOSAL,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceNewCommentOnProposalEvent||(e.GovernanceNewCommentOnProposalEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.NEW_COMMENT_ON_PROJECT_UPDATED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceNewCommentOnProjectUpdatedEvent||(e.GovernanceNewCommentOnProjectUpdatedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.WHALE_VOTE,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceWhaleVoteEvent||(e.GovernanceWhaleVoteEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.VOTED_ON_BEHALF,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceVotedOnBehalfEvent||(e.GovernanceVotedOnBehalfEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.CLIFF_ENDED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceCliffEndedEvent||(e.GovernanceCliffEndedEvent={}))})(Rh)),Rh}var Ah={},Gw;function DV(){return Gw||(Gw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldsMissingResourcesEvent=e.WorldsAccessRestrictedEvent=e.WorldsPermissionGrantedEvent=e.WorldsPermissionRevokedEvent=e.WorldsAccessRestoredEvent=e.WorldDeploymentEvent=e.WorldUndeploymentEvent=e.WorldScenesUndeploymentEvent=e.WorldSpawnCoordinateSetEvent=e.WorldSettingsChangedEvent=void 0;const t=Xc(),r=Ne(),n=Cr();(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SETTINGS_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"},title:{type:"string",nullable:!0},description:{type:"string",nullable:!0},contentRating:{type:"string",nullable:!0},skyboxTime:{type:"number",nullable:!0},categories:{type:"array",items:{type:"string"},nullable:!0},singlePlayer:{type:"boolean",nullable:!0},showInPlaces:{type:"boolean",nullable:!0},thumbnailUrl:{type:"string",nullable:!0},accessType:{type:"string",nullable:!0}},required:["worldName"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}})(e.WorldSettingsChangedEvent||(e.WorldSettingsChangedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SPAWN_COORDINATE_SET},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string",pattern:"^[a-zA-Z0-9_-]+\\.dcl\\.eth|[a-zA-Z0-9_-]+\\.eth$"},oldCoordinate:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"],additionalProperties:!1,nullable:!0},newCoordinate:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"],additionalProperties:!1}},required:["name","oldCoordinate","newCoordinate"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldSpawnCoordinateSetEvent||(e.WorldSpawnCoordinateSetEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SCENES_UNDEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"},scenes:{type:"array",items:{type:"object",properties:{entityId:{type:"string"},baseParcel:{type:"string"}},required:["entityId","baseParcel"],additionalProperties:!1},minItems:1}},required:["worldName","scenes"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldScenesUndeploymentEvent||(e.WorldScenesUndeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_UNDEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"}},required:["worldName"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldUndeploymentEvent||(e.WorldUndeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.DEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},entity:{type:"object",properties:{entityId:{type:"string"},authChain:t.AuthChain.schema},additionalProperties:!0,required:["entityId","authChain"]},contentServerUrls:{type:"array",items:{type:"string"},nullable:!0},force:{type:"boolean",nullable:!0},animation:{type:"string",nullable:!0},lods:{type:"array",items:{type:"string"},nullable:!0}},required:["type","subType","key","timestamp","entity"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldDeploymentEvent||(e.WorldDeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTORED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},attendee:{type:"string"}},required:["title","description","url","attendee"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsAccessRestoredEvent||(e.WorldsAccessRestoredEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_REVOKED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsPermissionRevokedEvent||(e.WorldsPermissionRevokedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsPermissionGrantedEvent||(e.WorldsPermissionGrantedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTRICTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsAccessRestrictedEvent||(e.WorldsAccessRestrictedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_MISSING_RESOURCES},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","url","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsMissingResourcesEvent||(e.WorldsMissingResourcesEvent={}))})(Ah)),Ah}var Oh={},zw;function LV(){return zw||(zw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserWarningCreatedEvent=e.UserBanLiftedEvent=e.UserBanCreatedEvent=void 0;const t=Ne(),r=Cr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_BAN_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},bannedAddress:{type:"string"},bannedBy:{type:"string"},reason:{type:"string"},bannedAt:{type:"number",minimum:0},expiresAt:{type:"number",nullable:!0,minimum:0},customMessage:{type:"string",nullable:!0}},required:["id","bannedAddress","bannedBy","reason","bannedAt","expiresAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserBanCreatedEvent||(e.UserBanCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_BAN_LIFTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},bannedAddress:{type:"string"},liftedBy:{type:"string"},liftedAt:{type:"number",minimum:0}},required:["id","bannedAddress","liftedBy","liftedAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserBanLiftedEvent||(e.UserBanLiftedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_WARNING_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},warnedAddress:{type:"string"},warnedBy:{type:"string"},reason:{type:"string"},warnedAt:{type:"number",minimum:0}},required:["id","warnedAddress","warnedBy","reason","warnedAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserWarningCreatedEvent||(e.UserWarningCreatedEvent={}))})(Oh)),Oh}var Ww;function $V(){return Ww||(Ww=1,(function(e){var t=Qi&&Qi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Qi&&Qi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Cr(),e),r(EV(),e),r(bV(),e),r(SV(),e),r(TV(),e),r(wV(),e),r(IV(),e),r(RV(),e),r(AV(),e),r(OV(),e),r(NV(),e),r(PV(),e),r(CV(),e),r(MV(),e),r(jV(),e),r(DV(),e),r(LV(),e)})(Qi)),Qi}var Yw;function UE(){return Yw||(Yw=1,(function(e){var t=zi&&zi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=zi&&zi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(iV(),e),r(sV(),e),r(cD(),e),r($E(),e),r(rD(),e),r(hV(),e),r(lD(),e),r(mV(),e),r(gV(),e),r(vV(),e),r($V(),e)})(zi)),zi}var Kw;function kV(){return Kw||(Kw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const t=cf(),r=Ja(),n=uf(),i=LE(),a=Ne(),s=UE();(function(o){o.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},t.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:r.WearableCategory.schema},hides:{type:"array",items:r.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:i.WearableRepresentation.schema,minItems:1},category:r.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:s.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0},springBones:Object.assign(Object.assign({},n.SpringBonesData.schema),{nullable:!0})},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.WearableJson||(e.WearableJson={}))})(bp)),bp}var Xw;function qV(){return Xw||(Xw=1,(function(e){var t=Gi&&Gi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Gi&&Gi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(rV(),e),r(kV(),e)})(Gi)),Gi}var Jw;function BV(){return Jw||(Jw=1,(function(e){var t=Bi&&Bi.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=Bi&&Bi.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(tV(),e),r(qV(),e)})(Bi)),Bi}var Zi={},Nh={},Qw;function UV(){return Qw||(Qw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const t=Ne();(function(r){r.MOST_SALES="most_sales",r.MOST_PURCHASES="most_purchases",r.MOST_SPENT="most_spent",r.MOST_EARNED="most_earned",r.MOST_ROYALTIES="most_royalties",r.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(r){r.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Account||(e.Account={}))})(Nh)),Nh}var Ph={},Ch={},Zw;function hD(){return Zw||(Zw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const t=Ne(),r=Sn();var n;(function(a){a.ETHEREUM_MAINNET="Ethereum Mainnet",a.ETHEREUM_ROPSTEN="Ropsten",a.ETHEREUM_RINKEBY="Rinkeby",a.ETHEREUM_GOERLI="Goerli",a.ETHEREUM_KOVAN="Kovan",a.ETHEREUM_SEPOLIA="Sepolia",a.MATIC_MAINNET="Polygon",a.MATIC_MUMBAI="Mumbai",a.MATIC_AMOY="Amoy",a.AVALANCHE_MAINNET="Avalanche",a.BINANCE_MAINNET="Binance Smart Chain",a.ARBITRUM_MAINNET="Arbitrum",a.OPTIMISM_MAINNET="Optimism",a.FANTOM_MAINNET="Fantom"})(n=e.ChainName||(e.ChainName={}));function i(a){switch(a){case n.ETHEREUM_MAINNET:return r.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return r.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return r.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return r.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return r.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return r.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return r.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return r.ChainId.MATIC_MUMBAI;case n.MATIC_AMOY:return r.ChainId.MATIC_AMOY;case n.AVALANCHE_MAINNET:return r.ChainId.AVALANCHE_MAINNET;case n.BINANCE_MAINNET:return r.ChainId.BSC_MAINNET;case n.ARBITRUM_MAINNET:return r.ChainId.ARBITRUM_MAINNET;case n.OPTIMISM_MAINNET:return r.ChainId.OPTIMISM_MAINNET;case n.FANTOM_MAINNET:return r.ChainId.FANTOM_MAINNET;default:return null}}e.getChainId=i,(function(a){a.schema={type:"string",enum:Object.values(a)},a.validate=(0,t.generateLazyValidator)(a.schema)})(n=e.ChainName||(e.ChainName={}))})(Ch)),Ch}var Mh={},eI;function bn(){return eI||(eI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const t=Ne();(function(r){r.ETHEREUM="ETHEREUM",r.MATIC="MATIC",r.AVALANCHE="AVALANCHE",r.BSC="BINANCE SMART CHAIN",r.OPTIMISM="OPTIMISM",r.ARBITRUM="ARBITRUM",r.FANTOM="FANTOM"})(e.Network||(e.Network={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Network||(e.Network={}))})(Mh)),Mh}var tI;function Sn(){return tI||(tI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const t=Ne(),r=hD(),n=bn();var i;(function(u){u[u.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",u[u.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",u[u.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",u[u.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",u[u.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",u[u.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",u[u.MATIC_MAINNET=137]="MATIC_MAINNET",u[u.MATIC_MUMBAI=80001]="MATIC_MUMBAI",u[u.MATIC_AMOY=80002]="MATIC_AMOY",u[u.BSC_MAINNET=56]="BSC_MAINNET",u[u.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",u[u.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",u[u.FANTOM_MAINNET=250]="FANTOM_MAINNET",u[u.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(i=e.ChainId||(e.ChainId={}));function a(u){switch(u){case i.ETHEREUM_MAINNET:return r.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return r.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return r.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return r.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return r.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return r.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return r.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return r.ChainName.MATIC_MUMBAI;case i.MATIC_AMOY:return r.ChainName.MATIC_AMOY;case i.BSC_MAINNET:return r.ChainName.BINANCE_MAINNET;case i.ARBITRUM_MAINNET:return r.ChainName.ARBITRUM_MAINNET;case i.OPTIMISM_MAINNET:return r.ChainName.OPTIMISM_MAINNET;case i.FANTOM_MAINNET:return r.ChainName.FANTOM_MAINNET;case i.AVALANCHE_MAINNET:return r.ChainName.AVALANCHE_MAINNET;default:return null}}e.getChainName=a;function s(u){switch(u){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";case i.MATIC_AMOY:return"amoy";default:return""}}e.getURNProtocol=s;function o(u){const l={[n.Network.BSC]:i.BSC_MAINNET,[n.Network.OPTIMISM]:i.OPTIMISM_MAINNET,[n.Network.ARBITRUM]:i.ARBITRUM_MAINNET,[n.Network.FANTOM]:i.FANTOM_MAINNET,[n.Network.AVALANCHE]:i.AVALANCHE_MAINNET};switch(u){case i.ETHEREUM_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},l);case i.ETHEREUM_ROPSTEN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI},l);case i.ETHEREUM_RINKEBY:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI},l);case i.ETHEREUM_GOERLI:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI},l);case i.ETHEREUM_KOVAN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI},l);case i.ETHEREUM_SEPOLIA:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_AMOY},l);case i.MATIC_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},l);case i.MATIC_MUMBAI:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI},l);case i.MATIC_AMOY:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_AMOY,[n.Network.MATIC]:i.MATIC_AMOY},l);default:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},l)}}e.getNetworkMapping=o;function c(u){switch(u){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:case i.MATIC_AMOY:return n.Network.MATIC;case i.BSC_MAINNET:return n.Network.BSC;case i.OPTIMISM_MAINNET:return n.Network.OPTIMISM;case i.ARBITRUM_MAINNET:return n.Network.ARBITRUM;case i.FANTOM_MAINNET:return n.Network.FANTOM;case i.AVALANCHE_MAINNET:return n.Network.AVALANCHE}}e.getNetwork=c,(function(u){u.schema={type:"number",enum:Object.values(u)},u.validate=(0,t.generateLazyValidator)(u.schema)})(i=e.ChainId||(e.ChainId={}))})(Ph)),Ph}var jh={},rI;function FV(){return rI||(rI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const t=Ne(),r=Sn(),n=bn();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:r.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(jh)),jh}var Dh={},Lh={},nI;function df(){return nI||(nI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const t=Ne();(function(r){r.PARCEL="parcel",r.ESTATE="estate",r.WEARABLE="wearable",r.ENS="ens",r.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.NFTCategory||(e.NFTCategory={}))})(Lh)),Lh}var iI;function HV(){return iI||(iI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const t=Ne(),r=Sn(),n=bn(),i=df();(function(a){a.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(a){a.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:r.ChainId.schema},required:["name","address","category","network","chainId"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Contract||(e.Contract={}))})(Dh)),Dh}var $h={},kh={},aI;function mD(){return aI||(aI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const t=Ne(),r=Sn(),n=UE(),i=bn(),a=df(),s=cf(),o=Ja();(function(c){c.NAME="name",c.NEWEST="newest",c.RECENTLY_LISTED="recently_listed",c.RECENTLY_SOLD="recently_sold",c.CHEAPEST="cheapest",c.RENTAL_LISTING_DATE="rental_listing_date",c.RENTAL_DATE="rented_date",c.MAX_RENTAL_PRICE="max_rental_price",c.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(c){c.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:o.WearableCategory.schema,description:{type:"string"},rarity:s.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:s.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"},outcomeType:{type:"string",nullable:!0}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:a.NFTCategory.schema,network:i.Network.schema,chainId:r.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},c.validate=(0,t.generateLazyValidator)(c.schema)})(e.NFT||(e.NFT={}))})(kh)),kh}var sI;function VV(){return sI||(sI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const t=Ne(),r=Sn(),n=bn(),i=mD(),a=df();(function(s){s.NAME="name",s.NEWEST="newest",s.RECENTLY_REVIEWED="recently_reviewed",s.RECENTLY_SOLD="recently_sold",s.RECENTLY_LISTED="recently_listed",s.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(s){s.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:a.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},tradeId:{type:"string",nullable:!0},tradeContractAddress:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:r.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0},tradeExpiresAt:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},s.validate=(0,t.generateLazyValidator)(s.schema)})(e.Item||(e.Item={}))})($h)),$h}var qh={},oI;function FE(){return oI||(oI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const t=Ne();(function(r){r.OPEN="open",r.SOLD="sold",r.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ListingStatus||(e.ListingStatus={}))})(qh)),qh}var Bh={},cI;function xV(){return cI||(cI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(Bh)),Bh}var Uh={},uI;function GV(){return uI||(uI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const t=Ne(),r=Sn(),n=bn();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:r.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(Uh)),Uh}var Fh={},lI;function zV(){return lI||(lI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(t){t.NEWEST="newest",t.RECENTLY_SOLD="recently_sold",t.CHEAPEST="cheapest",t.MOST_EXPENSIVE="most_expensive",t.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(t){t.ASC="asc",t.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(Fh)),Fh}var Hh={},dI;function WV(){return dI||(dI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const t=Ne(),r=Sn(),n=FE(),i=bn();(function(a){a.RECENTLY_LISTED="recently_listed",a.RECENTLY_UPDATED="recently_updated",a.CHEAPEST="cheapest",a.ISSUED_ID_ASC="issued_id_asc",a.ISSUED_ID_DESC="issued_id_desc",a.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(a){a.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:r.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"},tradeId:{type:"string",nullable:!0}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Order||(e.Order={}))})(Hh)),Hh}var Vh={},fI;function YV(){return fI||(fI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const t=Ne();(function(r){r.INJECTED="injected",r.MAGIC="magic",r.MAGIC_TEST="magic_test",r.FORTMATIC="formatic",r.NETWORK="network",r.WALLET_CONNECT="wallet_connect",r.WALLET_CONNECT_V2="wallet_connect_v2",r.WALLET_LINK="wallet_link",r.METAMASK_MOBILE="metamask_mobile",r.AUTH_SERVER="auth_server",r.THIRDWEB="thirdweb"})(e.ProviderType||(e.ProviderType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ProviderType||(e.ProviderType={}))})(Vh)),Vh}var xh={},pI;function yD(){return pI||(pI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const t=Ne();(function(r){r.ORDER="order",r.BID="bid",r.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SaleType||(e.SaleType={}))})(xh)),xh}var Gh={},hI;function KV(){return hI||(hI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const t=Ne(),r=Sn(),n=yD(),i=bn();(function(a){a.RECENTLY_SOLD="recently_sold",a.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(a){a.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:r.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Sale||(e.Sale={}))})(Gh)),Gh}var zh={},mI;function XV(){return mI||(mI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const t=Ne(),r=Sn(),n=bn();(function(a){a.OPEN="open",a.CANCELLED="cancelled",a.EXECUTED="executed",a.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(a){a.PARCEL="parcel",a.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(a){a.LAND_CREATION_DATE="land_creation_date",a.RENTAL_LISTING_DATE="rental_listing_date",a.RENTAL_DATE="rented_date",a.NAME="name",a.MAX_RENTAL_PRICE="max_rental_price",a.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(a){a.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(a){a.schema={type:"object",properties:{network:n.Network.schema,chainId:r.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(zh)),zh}var Wh={},yI;function JV(){return yI||(yI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(t){t.DATE="date",t.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(Wh)),Wh}var Yh={},gI;function QV(){return gI||(gI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Store||(e.Store={}))})(Yh)),Yh}var Kh={},_I;function ZV(){return _I||(_I=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const t=Ne();(function(r){r.MALE="male",r.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(r){r.MALE="male",r.FEMALE="female",r.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WearableGender||(e.WearableGender={}))})(Kh)),Kh}var Xh={},vI;function e5(){return vI||(vI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const t=Ne();function r(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=r;function n(i,a){const s=r().validWorldRanges;for(const o of s)if(i>=o.xMin&&i<=o.xMax&&a>=o.yMin&&a<=o.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(Xh)),Xh}var Jh={},EI;function t5(){return EI||(EI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const t=Ne(),r=Sn(),n=FE(),i=bn();(function(a){a.RECENTLY_OFFERED="recently_offered",a.RECENTLY_UPDATED="recently_updated",a.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(a){const s={properties:{id:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,contractAddress:{type:"string"},network:i.Network.schema,chainId:r.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidder","seller","price","fingerprint","status","contractAddress","network","chainId","expiresAt","createdAt","updatedAt"]};a.schema={type:"object",required:[],oneOf:[{properties:Object.assign(Object.assign({},s.properties),{tradeId:{type:"string"},tokenId:{type:"string"}}),required:[...s.required,"tradeId","tokenId"]},{type:"object",properties:Object.assign(Object.assign({},s.properties),{tradeId:{type:"string"},itemId:{type:"string"}}),required:[...s.required,"tradeId","itemId"]},{type:"object",properties:Object.assign(Object.assign({},s.properties),{bidAddress:{type:"string"},blockchainId:{type:"string"},blockNumber:{type:"string"},tokenId:{type:"string"}}),required:[...s.required,"bidAddress","blockchainId","blockNumber","tokenId"]}]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Bid||(e.Bid={}))})(Jh)),Jh}var Qh={},bI;function r5(){return bI||(bI=1,Object.defineProperty(Qh,"__esModule",{value:!0})),Qh}var Zh={},SI;function n5(){return SI||(SI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TradeAssetDirection=e.TradeAssetType=e.TradeType=void 0,(function(t){t.BID="bid",t.PUBLIC_NFT_ORDER="public_nft_order",t.PUBLIC_ITEM_ORDER="public_item_order"})(e.TradeType||(e.TradeType={})),(function(t){t[t.ERC20=1]="ERC20",t[t.USD_PEGGED_MANA=2]="USD_PEGGED_MANA",t[t.ERC721=3]="ERC721",t[t.COLLECTION_ITEM=4]="COLLECTION_ITEM"})(e.TradeAssetType||(e.TradeAssetType={})),(function(t){t.SENT="sent",t.RECEIVED="received"})(e.TradeAssetDirection||(e.TradeAssetDirection={}))})(Zh)),Zh}var ea={},em={},TI;function i5(){return TI||(TI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const t=Ne();(function(r){r.STATIC="static",r.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(em)),em}var tm={},wI;function a5(){return wI||(wI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewUnityMode=void 0,(function(t){t.AUTH="authentication",t.BUILDER="builder",t.MARKETPLACE="marketplace",t.PROFILE="profile",t.CONFIG="configurator",t.JESUS="jesus"})(e.PreviewUnityMode||(e.PreviewUnityMode={}))})(tm)),tm}var rm={},II;function s5(){return II||(II=1,Object.defineProperty(rm,"__esModule",{value:!0})),rm}var nm={},RI;function o5(){return RI||(RI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const t=Ne();(function(r){r.ANIMATION_PLAY="animation_play",r.ANIMATION_PAUSE="animation_pause",r.ANIMATION_LOOP="animation_loop",r.ANIMATION_END="animation_end",r.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(nm)),nm}var im={},AI;function c5(){return AI||(AI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const t=Ne();(function(r){r.IDLE="idle",r.WALK="walk",r.RUN="run",r.JUMP="jump",r.CLAP="clap",r.DAB="dab",r.DANCE="dance",r.FASHION="fashion",r.FASHION_2="fashion-2",r.FASHION_3="fashion-3",r.FASHION_4="fashion-4",r.LOVE="love",r.MONEY="money",r.FIST_PUMP="fist-pump",r.HEAD_EXPLODE="head-explode",r.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(im)),im}var am={},OI;function u5(){return OI||(OI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewRenderer=e.PreviewMessageType=void 0;const t=Ne();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.BABYLON="babylon",n.UNITY="unity"})(e.PreviewRenderer||(e.PreviewRenderer={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const r=(n,i,a,s="*")=>{const o={type:i,payload:a};n.postMessage(o,s)};e.sendMessage=r})(am)),am}var sm={},NI;function l5(){return NI||(NI=1,Object.defineProperty(sm,"__esModule",{value:!0})),sm}var om={},PI;function d5(){return PI||(PI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const t=Ne();(function(r){r.ORTHOGRAPHIC="orthographic",r.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(om)),om}var cm={},CI;function f5(){return CI||(CI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const t=Ne();(function(r){r.TEXTURE="texture",r.WEARABLE="wearable",r.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewType||(e.PreviewType={}))})(cm)),cm}var um={},MI;function p5(){return MI||(MI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpringBoneParams=void 0;var t=uf();Object.defineProperty(e,"SpringBoneParams",{enumerable:!0,get:function(){return t.SpringBoneParams}})})(um)),um}var lm={},jI;function h5(){return jI||(jI=1,Object.defineProperty(lm,"__esModule",{value:!0})),lm}var dm={},DI;function m5(){return DI||(DI=1,Object.defineProperty(dm,"__esModule",{value:!0})),dm}var fm={},LI;function y5(){return LI||(LI=1,Object.defineProperty(fm,"__esModule",{value:!0})),fm}var pm={},$I;function g5(){return $I||($I=1,Object.defineProperty(pm,"__esModule",{value:!0})),pm}var hm={},kI;function _5(){return kI||(kI=1,Object.defineProperty(hm,"__esModule",{value:!0})),hm}var mm={},qI;function v5(){return qI||(qI=1,Object.defineProperty(mm,"__esModule",{value:!0})),mm}var ym={},BI;function E5(){return BI||(BI=1,Object.defineProperty(ym,"__esModule",{value:!0})),ym}var gm={},UI;function b5(){return UI||(UI=1,Object.defineProperty(gm,"__esModule",{value:!0})),gm}var FI;function gD(){return FI||(FI=1,(function(e){var t=ea&&ea.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ea&&ea.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(i5(),e),r(a5(),e),r(s5(),e),r(o5(),e),r(c5(),e),r(u5(),e),r(l5(),e),r(d5(),e),r(f5(),e),r(p5(),e),r(h5(),e),r(m5(),e),r(y5(),e),r(g5(),e),r(_5(),e),r(v5(),e),r(E5(),e),r(b5(),e)})(ea)),ea}var ta={},Ro={},HI;function S5(){if(HI)return Ro;HI=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.isSysLink=void 0;const e=t=>t!==null&&typeof t=="object"&&"sys"in t&&"id"in t.sys;return Ro.isSysLink=e,Ro}var Ao={},VI;function T5(){if(VI)return Ao;VI=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.ContentfulLocale=void 0;var e;return(function(t){t.enUS="en-US",t.es="es",t.zh="zh"})(e||(e={})),Ao.ContentfulLocale=e,Ao}var _m={},xI;function w5(){return xI||(xI=1,Object.defineProperty(_m,"__esModule",{value:!0})),_m}var GI;function I5(){return GI||(GI=1,(function(e){var t=ta&&ta.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ta&&ta.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(S5(),e),r(T5(),e),r(w5(),e)})(ta)),ta}var zI;function R5(){return zI||(zI=1,(function(e){var t=Zi&&Zi.__createBinding||(Object.create?(function($,B,V,H){H===void 0&&(H=V);var F=Object.getOwnPropertyDescriptor(B,V);(!F||("get"in F?!B.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return B[V]}}),Object.defineProperty($,H,F)}):(function($,B,V,H){H===void 0&&(H=V),$[H]=B[V]})),r=Zi&&Zi.__exportStar||function($,B){for(var V in $)V!=="default"&&!Object.prototype.hasOwnProperty.call(B,V)&&t(B,$,V)};Object.defineProperty(e,"__esModule",{value:!0}),e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=void 0;var n=UV();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return n.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return n.AccountSortBy}});var i=Sn();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return i.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return i.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return i.getURNProtocol}});var a=hD();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return a.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return a.getChainId}});var s=FV();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return s.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return s.CollectionSortBy}});var o=HV();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return o.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return o.ContractSortBy}});var c=VV();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return c.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return c.ItemSortBy}});var u=FE();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return u.ListingStatus}});var l=xV();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return l.MetaTransaction}});var d=GV();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return d.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return d.MintSortBy}});var f=bn();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return f.Network}});var p=df();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return p.NFTCategory}});var g=mD();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return g.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return g.NFTSortBy}});var y=zV();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return y.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return y.CatalogSortDirection}});var _=WV();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return _.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return _.OrderSortBy}});var R=YV();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return R.ProviderType}});var h=cf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return h.Rarity}});var T=yD();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return T.SaleType}});var I=KV();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return I.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return I.SaleSortBy}});var m=XV();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return m.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return m.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return m.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return m.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return m.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return m.PeriodCreation}});var E=JV();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return E.AnalyticsDayDataSortBy}});var b=QV();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return b.Store}});var N=ZV();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return N.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return N.GenderFilterOption}});var j=e5();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return j.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return j.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return j.isInsideWorldLimits}}),r(t5(),e),r(r5(),e),r(n5(),e),r(gD(),e),r(I5(),e)})(Zi)),Zi}var vm={},WI;function A5(){return WI||(WI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const t=Ne();(function(r){r.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},onlyDev:{type:"boolean",nullable:!0},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(vm)),vm}var ra={},Em={},Oo={},YI;function _D(){if(YI)return Oo;YI=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.isInExceptionBlock=void 0;function e(i,a){return i>=62&&i<=150&&a>=151&&a<=158}function t(i,a){return i>=151&&i<=162&&a>=144&&a<=158}function r(i,a){return i>=151&&i<=163&&a>=59&&a<=143}function n(i,a){return e(i,a)||t(i,a)||r(i,a)}return Oo.isInExceptionBlock=n,Oo}var KI;function O5(){return KI||(KI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Parcel=e.PARCEL_LIMITS=void 0;const t=Ne(),r=_D();e.PARCEL_LIMITS={minX:-150,maxX:150,minY:-150,maxY:150},(function(n){n._isInLimits={keyword:"_isInLimits",validate:function(p,g){return!g||typeof g.x!="number"||typeof g.y!="number"?!1:o(g)||(0,r.isInExceptionBlock)(g.x,g.y)},errors:!1},n.schema={type:"object",required:["x","y"],properties:{x:{type:"number"},y:{type:"number"}},_isInLimits:!0,additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema,[n._isInLimits]);function i({x:f,y:p}){return`${f},${p}`}n.parcelToString=i;function a(f){const p=f.match(/^(-?\d+),(-?\d+)$/);if(!p)return null;const[,g,y]=p,_=parseInt(g,10),R=parseInt(y,10);return{x:_,y:R}}n.stringToParcel=a;function s(f){const p=a(f);return p?n.validate(p):!1}n.isParcelStringValid=s;function o(f){const{x:p,y:g}=f;return p>=e.PARCEL_LIMITS.minX&&p<=e.PARCEL_LIMITS.maxX&&g>=e.PARCEL_LIMITS.minY&&g<=e.PARCEL_LIMITS.maxY}n.isInStandardBounds=o;function c(f){return(0,r.isInExceptionBlock)(f.x,f.y)}n.isExceptionParcel=c;function u(f){return o(f)||c(f)}n.isInBounds=u;function l(f){return n.validate(f)}n.isValid=l;function d(f){const p=a(f);return p?n.validate(p):!1}n.isValidString=d})(e.Parcel||(e.Parcel={}))})(Em)),Em}var na={},XI;function N5(){if(XI)return na;XI=1,Object.defineProperty(na,"__esModule",{value:!0}),na.validateUrlInstance=na.validateUrl=void 0;const e={allowLocalhost:!1,allowedPorts:[]};function t(p,g=2){let y=p;for(let _=0;_<g;_++)try{y=decodeURIComponent(y)}catch{break}return y.normalize("NFKC")}function r(p){return/[\u0000-\u001F\u007F-\u009F\u202A-\u202E\u2066-\u2069]/.test(p)}function n(p){return!!(p.username||p.password)}function i(p){return/\\/.test(p)}const a=["80","443"];function s(p,g){return!!p.port&&!g.includes(p.port)}function o(p){const g=p.toLowerCase();return!!(g==="localhost"||g.endsWith(".local")||/^(127\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.|169\.254\.)/.test(g)||g==="::1"||g==="[::1]"||g.startsWith("fe80:")||g.startsWith("fc00:"))}function c(p){if(p.startsWith("//"))return null;try{return{url:new URL(p),wasRelative:!1}}catch{try{return{url:new URL(p,"https://example.com"),wasRelative:!0}}catch{return null}}}function u(p){const g=t(String(p).toLowerCase());return!(r(g)||i(g))}function l(p){return!(!p||p.includes("..")||p.includes("//")||r(p)||i(p))}function d(p,g={}){const y=Object.assign(Object.assign({},e),g),_=[...a,...y.allowedPorts];if(!p||p.length===0||p.length>4096||r(p)||i(p))return!1;const R=t(p);if(r(R)||i(R)||p.startsWith("//"))return!1;const h=c(p);if(!h)return!1;const{url:T,wasRelative:I}=h;if(T.protocol!=="http:"&&T.protocol!=="https:"&&T.protocol!==""||n(T)||i(p)||i(T.href)||!I&&(s(T,_)||!y.allowLocalhost&&T.hostname&&o(T.hostname))||!l(T.pathname)||T.pathname.length>2048)return!1;const m=Array.from(T.searchParams.entries());if(m.length>50||(T.search?T.search.startsWith("?")?T.search.length-1:T.search.length:0)>2048)return!1;for(const[b,N]of m)if(b.length===0||!u(b)||!u(N)||b.length>128||N.length>1024)return!1;return!(T.hash&&r(T.hash))}na.validateUrl=d;function f(p,g={}){return d(p.toString(),g)}return na.validateUrlInstance=f,na}var JI;function P5(){return JI||(JI=1,(function(e){var t=ra&&ra.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ra&&ra.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(O5(),e),r(_D(),e),r(N5(),e)})(ra)),ra}var QI;function C5(){return QI||(QI=1,(function(e){var t=sn&&sn.__createBinding||(Object.create?(function(s,o,c,u){u===void 0&&(u=c);var l=Object.getOwnPropertyDescriptor(o,c);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[c]}}),Object.defineProperty(s,u,l)}):(function(s,o,c,u){u===void 0&&(u=c),s[u]=o[c]})),r=sn&&sn.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),n=sn&&sn.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var c in s)c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)&&t(o,s,c);return r(o,s),o},i=sn&&sn.__exportStar||function(s,o){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&t(o,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=void 0;const a=n(BV());e.sdk=a,i(Ne(),e),i(R5(),e),i(UE(),e),i(Qa(),e),i(A5(),e),i(Xc(),e),i(uD(),e),i(pD(),e),i(P5(),e)})(sn)),sn}var Kr=C5(),ia={},ln={},fc={exports:{}},M5=fc.exports,ZI;function ff(){return ZI||(ZI=1,(function(e,t){(function(r,n){n(t)})(M5,(function(r){function n(v){if(v.jsonrpc="2.0",!v.id||typeof v.id!="number"||Math.floor(v.id)!==v.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(v)}`);if(!v.method||typeof v.method!="string"||v.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(v)}`);if(!v.params||typeof v.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(v)}`);return v}var i={};function a(){let v,A;const D=new Promise(((X,re)=>{v=ce=>{X(ce),D.isPending=!1},A=ce=>{re(ce),D.isPending=!1}})).catch((X=>Promise.reject(X)));return D.resolve=v,D.reject=A,"finally"in D||(D.finally=X=>{D.then(X),D.catch(X)}),D.isPending=!0,D}Object.defineProperty(i,"__esModule",{value:!0});var s=i.future=a;i.default=a;var o={exports:{}};/**
|
|
63
|
+
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
64
|
+
*
|
|
65
|
+
* @version 0.8.0
|
|
66
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
67
|
+
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
68
|
+
* @license MIT
|
|
69
|
+
*/(function(v){(function(){var A="input is invalid type",D=typeof window=="object",X=D?window:{};X.JS_SHA3_NO_WINDOW&&(D=!1);var re=!D&&typeof self=="object";!X.JS_SHA3_NO_NODE_JS&&typeof Ed=="object"&&Ed.versions&&Ed.versions.node?X=F_:re&&(X=self);var ce=!X.JS_SHA3_NO_COMMON_JS&&v.exports,Te=!X.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ce="0123456789abcdef".split(""),He=[4,1024,262144,67108864],xe=[0,8,16,24],Tr=[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],Vt=[224,256,384,512],je=[128,256],sr=["hex","buffer","arrayBuffer","array","digest"],Pt={128:168,256:136};!X.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(S){return Object.prototype.toString.call(S)==="[object Array]"}),!Te||!X.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(S){return typeof S=="object"&&S.buffer&&S.buffer.constructor===ArrayBuffer});for(var Ct=function(S,x,Q){return function(z){return new dt(S,x,S).update(z)[Q]()}},gr=function(S,x,Q){return function(z,ne){return new dt(S,x,ne).update(z)[Q]()}},Yn=function(S,x,Q){return function(z,ne,se,oe){return or["cshake"+S].update(z,ne,se,oe)[Q]()}},An=function(S,x,Q){return function(z,ne,se,oe){return or["kmac"+S].update(z,ne,se,oe)[Q]()}},_r=function(S,x,Q,z){for(var ne=0;ne<sr.length;++ne){var se=sr[ne];S[se]=x(Q,z,se)}return S},On=function(S,x){var Q=Ct(S,x,"hex");return Q.create=function(){return new dt(S,x,S)},Q.update=function(z){return Q.create().update(z)},_r(Q,Ct,S,x)},yi=[{name:"keccak",padding:[1,256,65536,16777216],bits:Vt,createMethod:On},{name:"sha3",padding:[6,1536,393216,100663296],bits:Vt,createMethod:On},{name:"shake",padding:[31,7936,2031616,520093696],bits:je,createMethod:function(S,x){var Q=gr(S,x,"hex");return Q.create=function(z){return new dt(S,x,z)},Q.update=function(z,ne){return Q.create(ne).update(z)},_r(Q,gr,S,x)}},{name:"cshake",padding:He,bits:je,createMethod:function(S,x){var Q=Pt[S],z=Yn(S,0,"hex");return z.create=function(ne,se,oe){return se||oe?new dt(S,x,ne).bytepad([se,oe],Q):or["shake"+S].create(ne)},z.update=function(ne,se,oe,he){return z.create(se,oe,he).update(ne)},_r(z,Yn,S,x)}},{name:"kmac",padding:He,bits:je,createMethod:function(S,x){var Q=Pt[S],z=An(S,0,"hex");return z.create=function(ne,se,oe){return new Hr(S,x,se).bytepad(["KMAC",oe],Q).bytepad([ne],Q)},z.update=function(ne,se,oe,he){return z.create(ne,oe,he).update(se)},_r(z,An,S,x)}}],or={},Kn=[],vr=0;vr<yi.length;++vr)for(var Nn=yi[vr],Oe=Nn.bits,Xn=0;Xn<Oe.length;++Xn){var as=Nn.name+"_"+Oe[Xn];if(Kn.push(as),or[as]=Nn.createMethod(Oe[Xn],Nn.padding),Nn.name!=="sha3"){var ss=Nn.name+Oe[Xn];Kn.push(ss),or[ss]=or[as]}}function dt(S,x,Q){this.blocks=[],this.s=[],this.padding=x,this.outputBits=Q,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(S<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Q>>5,this.extraBytes=(31&Q)>>3;for(var z=0;z<50;++z)this.s[z]=0}function Hr(S,x,Q){dt.call(this,S,x,Q)}dt.prototype.update=function(S){if(this.finalized)throw new Error("finalize already called");var x,Q=typeof S;if(Q!=="string"){if(Q!=="object")throw new Error(A);if(S===null)throw new Error(A);if(Te&&S.constructor===ArrayBuffer)S=new Uint8Array(S);else if(!(Array.isArray(S)||Te&&ArrayBuffer.isView(S)))throw new Error(A);x=!0}for(var z,ne,se=this.blocks,oe=this.byteCount,he=S.length,ge=this.blockCount,ye=0,Me=this.s;ye<he;){if(this.reset)for(this.reset=!1,se[0]=this.block,z=1;z<ge+1;++z)se[z]=0;if(x)for(z=this.start;ye<he&&z<oe;++ye)se[z>>2]|=S[ye]<<xe[3&z++];else for(z=this.start;ye<he&&z<oe;++ye)(ne=S.charCodeAt(ye))<128?se[z>>2]|=ne<<xe[3&z++]:ne<2048?(se[z>>2]|=(192|ne>>6)<<xe[3&z++],se[z>>2]|=(128|63&ne)<<xe[3&z++]):ne<55296||ne>=57344?(se[z>>2]|=(224|ne>>12)<<xe[3&z++],se[z>>2]|=(128|ne>>6&63)<<xe[3&z++],se[z>>2]|=(128|63&ne)<<xe[3&z++]):(ne=65536+((1023&ne)<<10|1023&S.charCodeAt(++ye)),se[z>>2]|=(240|ne>>18)<<xe[3&z++],se[z>>2]|=(128|ne>>12&63)<<xe[3&z++],se[z>>2]|=(128|ne>>6&63)<<xe[3&z++],se[z>>2]|=(128|63&ne)<<xe[3&z++]);if(this.lastByteIndex=z,z>=oe){for(this.start=z-oe,this.block=se[ge],z=0;z<ge;++z)Me[z]^=se[z];G(Me),this.reset=!0}else this.start=z}return this},dt.prototype.encode=function(S,x){var Q=255&S,z=1,ne=[Q];for(Q=255&(S>>=8);Q>0;)ne.unshift(Q),Q=255&(S>>=8),++z;return x?ne.push(z):ne.unshift(z),this.update(ne),ne.length},dt.prototype.encodeString=function(S){var x,Q=typeof S;if(Q!=="string"){if(Q!=="object")throw new Error(A);if(S===null)throw new Error(A);if(Te&&S.constructor===ArrayBuffer)S=new Uint8Array(S);else if(!(Array.isArray(S)||Te&&ArrayBuffer.isView(S)))throw new Error(A);x=!0}var z=0,ne=S.length;if(x)z=ne;else for(var se=0;se<S.length;++se){var oe=S.charCodeAt(se);oe<128?z+=1:oe<2048?z+=2:oe<55296||oe>=57344?z+=3:(oe=65536+((1023&oe)<<10|1023&S.charCodeAt(++se)),z+=4)}return z+=this.encode(8*z),this.update(S),z},dt.prototype.bytepad=function(S,x){for(var Q=this.encode(x),z=0;z<S.length;++z)Q+=this.encodeString(S[z]);var ne=x-Q%x,se=[];return se.length=ne,this.update(se),this},dt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var S=this.blocks,x=this.lastByteIndex,Q=this.blockCount,z=this.s;if(S[x>>2]|=this.padding[3&x],this.lastByteIndex===this.byteCount)for(S[0]=S[Q],x=1;x<Q+1;++x)S[x]=0;for(S[Q-1]|=2147483648,x=0;x<Q;++x)z[x]^=S[x];G(z)}},dt.prototype.toString=dt.prototype.hex=function(){this.finalize();for(var S,x=this.blockCount,Q=this.s,z=this.outputBlocks,ne=this.extraBytes,se=0,oe=0,he="";oe<z;){for(se=0;se<x&&oe<z;++se,++oe)S=Q[se],he+=Ce[S>>4&15]+Ce[15&S]+Ce[S>>12&15]+Ce[S>>8&15]+Ce[S>>20&15]+Ce[S>>16&15]+Ce[S>>28&15]+Ce[S>>24&15];oe%x==0&&(G(Q),se=0)}return ne&&(S=Q[se],he+=Ce[S>>4&15]+Ce[15&S],ne>1&&(he+=Ce[S>>12&15]+Ce[S>>8&15]),ne>2&&(he+=Ce[S>>20&15]+Ce[S>>16&15])),he},dt.prototype.arrayBuffer=function(){this.finalize();var S,x=this.blockCount,Q=this.s,z=this.outputBlocks,ne=this.extraBytes,se=0,oe=0,he=this.outputBits>>3;S=ne?new ArrayBuffer(z+1<<2):new ArrayBuffer(he);for(var ge=new Uint32Array(S);oe<z;){for(se=0;se<x&&oe<z;++se,++oe)ge[oe]=Q[se];oe%x==0&&G(Q)}return ne&&(ge[se]=Q[se],S=S.slice(0,he)),S},dt.prototype.buffer=dt.prototype.arrayBuffer,dt.prototype.digest=dt.prototype.array=function(){this.finalize();for(var S,x,Q=this.blockCount,z=this.s,ne=this.outputBlocks,se=this.extraBytes,oe=0,he=0,ge=[];he<ne;){for(oe=0;oe<Q&&he<ne;++oe,++he)S=he<<2,x=z[oe],ge[S]=255&x,ge[S+1]=x>>8&255,ge[S+2]=x>>16&255,ge[S+3]=x>>24&255;he%Q==0&&G(z)}return se&&(S=he<<2,x=z[oe],ge[S]=255&x,se>1&&(ge[S+1]=x>>8&255),se>2&&(ge[S+2]=x>>16&255)),ge},Hr.prototype=new dt,Hr.prototype.finalize=function(){return this.encode(this.outputBits,!0),dt.prototype.finalize.call(this)};var G=function(S){var x,Q,z,ne,se,oe,he,ge,ye,Me,Ve,Ye,at,Mt,Bt,rt,ft,Kt,Jn,gi,_i,wr,Pn,cr,Jt,Nt,du,fu,pu,hu,mu,yu,gu,_u,vu,Eu,bu,Su,Tu,wu,Iu,Ru,Au,Ou,Nu,Pu,Cu,Mu,ju,Du,Lu,$u,ku,qu,Bu,Uu,Fu,Hu,Vu,xu,Gu,zu,Wu;for(z=0;z<48;z+=2)ne=S[0]^S[10]^S[20]^S[30]^S[40],se=S[1]^S[11]^S[21]^S[31]^S[41],oe=S[2]^S[12]^S[22]^S[32]^S[42],he=S[3]^S[13]^S[23]^S[33]^S[43],ge=S[4]^S[14]^S[24]^S[34]^S[44],ye=S[5]^S[15]^S[25]^S[35]^S[45],Me=S[6]^S[16]^S[26]^S[36]^S[46],Ve=S[7]^S[17]^S[27]^S[37]^S[47],x=(Ye=S[8]^S[18]^S[28]^S[38]^S[48])^(oe<<1|he>>>31),Q=(at=S[9]^S[19]^S[29]^S[39]^S[49])^(he<<1|oe>>>31),S[0]^=x,S[1]^=Q,S[10]^=x,S[11]^=Q,S[20]^=x,S[21]^=Q,S[30]^=x,S[31]^=Q,S[40]^=x,S[41]^=Q,x=ne^(ge<<1|ye>>>31),Q=se^(ye<<1|ge>>>31),S[2]^=x,S[3]^=Q,S[12]^=x,S[13]^=Q,S[22]^=x,S[23]^=Q,S[32]^=x,S[33]^=Q,S[42]^=x,S[43]^=Q,x=oe^(Me<<1|Ve>>>31),Q=he^(Ve<<1|Me>>>31),S[4]^=x,S[5]^=Q,S[14]^=x,S[15]^=Q,S[24]^=x,S[25]^=Q,S[34]^=x,S[35]^=Q,S[44]^=x,S[45]^=Q,x=ge^(Ye<<1|at>>>31),Q=ye^(at<<1|Ye>>>31),S[6]^=x,S[7]^=Q,S[16]^=x,S[17]^=Q,S[26]^=x,S[27]^=Q,S[36]^=x,S[37]^=Q,S[46]^=x,S[47]^=Q,x=Me^(ne<<1|se>>>31),Q=Ve^(se<<1|ne>>>31),S[8]^=x,S[9]^=Q,S[18]^=x,S[19]^=Q,S[28]^=x,S[29]^=Q,S[38]^=x,S[39]^=Q,S[48]^=x,S[49]^=Q,Mt=S[0],Bt=S[1],Pu=S[11]<<4|S[10]>>>28,Cu=S[10]<<4|S[11]>>>28,fu=S[20]<<3|S[21]>>>29,pu=S[21]<<3|S[20]>>>29,xu=S[31]<<9|S[30]>>>23,Gu=S[30]<<9|S[31]>>>23,Ru=S[40]<<18|S[41]>>>14,Au=S[41]<<18|S[40]>>>14,_u=S[2]<<1|S[3]>>>31,vu=S[3]<<1|S[2]>>>31,rt=S[13]<<12|S[12]>>>20,ft=S[12]<<12|S[13]>>>20,Mu=S[22]<<10|S[23]>>>22,ju=S[23]<<10|S[22]>>>22,hu=S[33]<<13|S[32]>>>19,mu=S[32]<<13|S[33]>>>19,zu=S[42]<<2|S[43]>>>30,Wu=S[43]<<2|S[42]>>>30,qu=S[5]<<30|S[4]>>>2,Bu=S[4]<<30|S[5]>>>2,Eu=S[14]<<6|S[15]>>>26,bu=S[15]<<6|S[14]>>>26,Kt=S[25]<<11|S[24]>>>21,Jn=S[24]<<11|S[25]>>>21,Du=S[34]<<15|S[35]>>>17,Lu=S[35]<<15|S[34]>>>17,yu=S[45]<<29|S[44]>>>3,gu=S[44]<<29|S[45]>>>3,cr=S[6]<<28|S[7]>>>4,Jt=S[7]<<28|S[6]>>>4,Uu=S[17]<<23|S[16]>>>9,Fu=S[16]<<23|S[17]>>>9,Su=S[26]<<25|S[27]>>>7,Tu=S[27]<<25|S[26]>>>7,gi=S[36]<<21|S[37]>>>11,_i=S[37]<<21|S[36]>>>11,$u=S[47]<<24|S[46]>>>8,ku=S[46]<<24|S[47]>>>8,Ou=S[8]<<27|S[9]>>>5,Nu=S[9]<<27|S[8]>>>5,Nt=S[18]<<20|S[19]>>>12,du=S[19]<<20|S[18]>>>12,Hu=S[29]<<7|S[28]>>>25,Vu=S[28]<<7|S[29]>>>25,wu=S[38]<<8|S[39]>>>24,Iu=S[39]<<8|S[38]>>>24,wr=S[48]<<14|S[49]>>>18,Pn=S[49]<<14|S[48]>>>18,S[0]=Mt^~rt&Kt,S[1]=Bt^~ft&Jn,S[10]=cr^~Nt&fu,S[11]=Jt^~du&pu,S[20]=_u^~Eu&Su,S[21]=vu^~bu&Tu,S[30]=Ou^~Pu&Mu,S[31]=Nu^~Cu&ju,S[40]=qu^~Uu&Hu,S[41]=Bu^~Fu&Vu,S[2]=rt^~Kt&gi,S[3]=ft^~Jn&_i,S[12]=Nt^~fu&hu,S[13]=du^~pu&mu,S[22]=Eu^~Su&wu,S[23]=bu^~Tu&Iu,S[32]=Pu^~Mu&Du,S[33]=Cu^~ju&Lu,S[42]=Uu^~Hu&xu,S[43]=Fu^~Vu&Gu,S[4]=Kt^~gi&wr,S[5]=Jn^~_i&Pn,S[14]=fu^~hu&yu,S[15]=pu^~mu&gu,S[24]=Su^~wu&Ru,S[25]=Tu^~Iu&Au,S[34]=Mu^~Du&$u,S[35]=ju^~Lu&ku,S[44]=Hu^~xu&zu,S[45]=Vu^~Gu&Wu,S[6]=gi^~wr&Mt,S[7]=_i^~Pn&Bt,S[16]=hu^~yu&cr,S[17]=mu^~gu&Jt,S[26]=wu^~Ru&_u,S[27]=Iu^~Au&vu,S[36]=Du^~$u&Ou,S[37]=Lu^~ku&Nu,S[46]=xu^~zu&qu,S[47]=Gu^~Wu&Bu,S[8]=wr^~Mt&rt,S[9]=Pn^~Bt&ft,S[18]=yu^~cr&Nt,S[19]=gu^~Jt&du,S[28]=Ru^~_u&Eu,S[29]=Au^~vu&bu,S[38]=$u^~Ou&Pu,S[39]=ku^~Nu&Cu,S[48]=zu^~qu&Uu,S[49]=Wu^~Bu&Fu,S[0]^=Tr[z],S[1]^=Tr[z+1]};if(ce)v.exports=or;else for(vr=0;vr<Kn.length;++vr)X[Kn[vr]]=or[Kn[vr]]})()})(o);var c=o.exports,u=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,l=Math.ceil,d=Math.floor,f="[BigNumber Error] ",p=f+"Number primitive has more than 15 significant digits: ",g=1e14,y=14,_=9007199254740991,R=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,T=1e9;function I(v){var A=0|v;return v>0||v===A?A:A-1}function m(v){for(var A,D,X=1,re=v.length,ce=v[0]+"";X<re;){for(A=v[X++]+"",D=y-A.length;D--;A="0"+A);ce+=A}for(re=ce.length;ce.charCodeAt(--re)===48;);return ce.slice(0,re+1||1)}function E(v,A){var D,X,re=v.c,ce=A.c,Te=v.s,Ce=A.s,He=v.e,xe=A.e;if(!Te||!Ce)return null;if(D=re&&!re[0],X=ce&&!ce[0],D||X)return D?X?0:-Ce:Te;if(Te!=Ce)return Te;if(D=Te<0,X=He==xe,!re||!ce)return X?0:!re^D?1:-1;if(!X)return He>xe^D?1:-1;for(Ce=(He=re.length)<(xe=ce.length)?He:xe,Te=0;Te<Ce;Te++)if(re[Te]!=ce[Te])return re[Te]>ce[Te]^D?1:-1;return He==xe?0:He>xe^D?1:-1}function b(v,A,D,X){if(v<A||v>D||v!==d(v))throw Error(f+(X||"Argument")+(typeof v=="number"?v<A||v>D?" out of range: ":" not an integer: ":" not a primitive number: ")+String(v))}function N(v){var A=v.c.length-1;return I(v.e/y)==A&&v.c[A]%2!=0}function j(v,A){return(v.length>1?v.charAt(0)+"."+v.slice(1):v)+(A<0?"e":"e+")+A}function $(v,A,D){var X,re;if(A<0){for(re=D+".";++A;re+=D);v=re+v}else if(++A>(X=v.length)){for(re=D,A-=X;--A;re+=D);v+=re}else A<X&&(v=v.slice(0,A)+"."+v.slice(A));return v}var B=(function v(A){var D,X,re,ce,Te,Ce,He,xe,Tr,Vt,je=Oe.prototype={constructor:Oe,toString:null,valueOf:null},sr=new Oe(1),Pt=20,Ct=4,gr=-7,Yn=21,An=-1e7,_r=1e7,On=!1,yi=1,or=0,Kn={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},vr="0123456789abcdefghijklmnopqrstuvwxyz",Nn=!0;function Oe(G,S){var x,Q,z,ne,se,oe,he,ge,ye=this;if(!(ye instanceof Oe))return new Oe(G,S);if(S==null){if(G&&G._isBigNumber===!0)return ye.s=G.s,void(!G.c||G.e>_r?ye.c=ye.e=null:G.e<An?ye.c=[ye.e=0]:(ye.e=G.e,ye.c=G.c.slice()));if((oe=typeof G=="number")&&0*G==0){if(ye.s=1/G<0?(G=-G,-1):1,G===~~G){for(ne=0,se=G;se>=10;se/=10,ne++);return void(ne>_r?ye.c=ye.e=null:(ye.e=ne,ye.c=[G]))}ge=String(G)}else{if(!u.test(ge=String(G)))return re(ye,ge,oe);ye.s=ge.charCodeAt(0)==45?(ge=ge.slice(1),-1):1}(ne=ge.indexOf("."))>-1&&(ge=ge.replace(".","")),(se=ge.search(/e/i))>0?(ne<0&&(ne=se),ne+=+ge.slice(se+1),ge=ge.substring(0,se)):ne<0&&(ne=ge.length)}else{if(b(S,2,vr.length,"Base"),S==10&&Nn)return dt(ye=new Oe(G),Pt+ye.e+1,Ct);if(ge=String(G),oe=typeof G=="number"){if(0*G!=0)return re(ye,ge,oe,S);if(ye.s=1/G<0?(ge=ge.slice(1),-1):1,Oe.DEBUG&&ge.replace(/^0\.0*|\./,"").length>15)throw Error(p+G)}else ye.s=ge.charCodeAt(0)===45?(ge=ge.slice(1),-1):1;for(x=vr.slice(0,S),ne=se=0,he=ge.length;se<he;se++)if(x.indexOf(Q=ge.charAt(se))<0){if(Q=="."){if(se>ne){ne=he;continue}}else if(!z&&(ge==ge.toUpperCase()&&(ge=ge.toLowerCase())||ge==ge.toLowerCase()&&(ge=ge.toUpperCase()))){z=!0,se=-1,ne=0;continue}return re(ye,String(G),oe,S)}oe=!1,(ne=(ge=X(ge,S,10,ye.s)).indexOf("."))>-1?ge=ge.replace(".",""):ne=ge.length}for(se=0;ge.charCodeAt(se)===48;se++);for(he=ge.length;ge.charCodeAt(--he)===48;);if(ge=ge.slice(se,++he)){if(he-=se,oe&&Oe.DEBUG&&he>15&&(G>_||G!==d(G)))throw Error(p+ye.s*G);if((ne=ne-se-1)>_r)ye.c=ye.e=null;else if(ne<An)ye.c=[ye.e=0];else{if(ye.e=ne,ye.c=[],se=(ne+1)%y,ne<0&&(se+=y),se<he){for(se&&ye.c.push(+ge.slice(0,se)),he-=y;se<he;)ye.c.push(+ge.slice(se,se+=y));se=y-(ge=ge.slice(se)).length}else se-=he;for(;se--;ge+="0");ye.c.push(+ge)}}else ye.c=[ye.e=0]}function Xn(G,S,x,Q){var z,ne,se,oe,he;if(x==null?x=Ct:b(x,0,8),!G.c)return G.toString();if(z=G.c[0],se=G.e,S==null)he=m(G.c),he=Q==1||Q==2&&(se<=gr||se>=Yn)?j(he,se):$(he,se,"0");else if(ne=(G=dt(new Oe(G),S,x)).e,oe=(he=m(G.c)).length,Q==1||Q==2&&(S<=ne||ne<=gr)){for(;oe<S;he+="0",oe++);he=j(he,ne)}else if(S-=se,he=$(he,ne,"0"),ne+1>oe){if(--S>0)for(he+=".";S--;he+="0");}else if((S+=ne-oe)>0)for(ne+1==oe&&(he+=".");S--;he+="0");return G.s<0&&z?"-"+he:he}function as(G,S){for(var x,Q=1,z=new Oe(G[0]);Q<G.length;Q++){if(!(x=new Oe(G[Q])).s){z=x;break}S.call(z,x)&&(z=x)}return z}function ss(G,S,x){for(var Q=1,z=S.length;!S[--z];S.pop());for(z=S[0];z>=10;z/=10,Q++);return(x=Q+x*y-1)>_r?G.c=G.e=null:x<An?G.c=[G.e=0]:(G.e=x,G.c=S),G}function dt(G,S,x,Q){var z,ne,se,oe,he,ge,ye,Me=G.c,Ve=R;if(Me){e:{for(z=1,oe=Me[0];oe>=10;oe/=10,z++);if((ne=S-z)<0)ne+=y,se=S,ye=(he=Me[ge=0])/Ve[z-se-1]%10|0;else if((ge=l((ne+1)/y))>=Me.length){if(!Q)break e;for(;Me.length<=ge;Me.push(0));he=ye=0,z=1,se=(ne%=y)-y+1}else{for(he=oe=Me[ge],z=1;oe>=10;oe/=10,z++);ye=(se=(ne%=y)-y+z)<0?0:he/Ve[z-se-1]%10|0}if(Q=Q||S<0||Me[ge+1]!=null||(se<0?he:he%Ve[z-se-1]),Q=x<4?(ye||Q)&&(x==0||x==(G.s<0?3:2)):ye>5||ye==5&&(x==4||Q||x==6&&(ne>0?se>0?he/Ve[z-se]:0:Me[ge-1])%10&1||x==(G.s<0?8:7)),S<1||!Me[0])return Me.length=0,Q?(S-=G.e+1,Me[0]=Ve[(y-S%y)%y],G.e=-S||0):Me[0]=G.e=0,G;if(ne==0?(Me.length=ge,oe=1,ge--):(Me.length=ge+1,oe=Ve[y-ne],Me[ge]=se>0?d(he/Ve[z-se]%Ve[se])*oe:0),Q)for(;;){if(ge==0){for(ne=1,se=Me[0];se>=10;se/=10,ne++);for(se=Me[0]+=oe,oe=1;se>=10;se/=10,oe++);ne!=oe&&(G.e++,Me[0]==g&&(Me[0]=1));break}if(Me[ge]+=oe,Me[ge]!=g)break;Me[ge--]=0,oe=1}for(ne=Me.length;Me[--ne]===0;Me.pop());}G.e>_r?G.c=G.e=null:G.e<An&&(G.c=[G.e=0])}return G}function Hr(G){var S,x=G.e;return x===null?G.toString():(S=m(G.c),S=x<=gr||x>=Yn?j(S,x):$(S,x,"0"),G.s<0?"-"+S:S)}return Oe.clone=v,Oe.ROUND_UP=0,Oe.ROUND_DOWN=1,Oe.ROUND_CEIL=2,Oe.ROUND_FLOOR=3,Oe.ROUND_HALF_UP=4,Oe.ROUND_HALF_DOWN=5,Oe.ROUND_HALF_EVEN=6,Oe.ROUND_HALF_CEIL=7,Oe.ROUND_HALF_FLOOR=8,Oe.EUCLID=9,Oe.config=Oe.set=function(G){var S,x;if(G!=null){if(typeof G!="object")throw Error(f+"Object expected: "+G);if(G.hasOwnProperty(S="DECIMAL_PLACES")&&(b(x=G[S],0,T,S),Pt=x),G.hasOwnProperty(S="ROUNDING_MODE")&&(b(x=G[S],0,8,S),Ct=x),G.hasOwnProperty(S="EXPONENTIAL_AT")&&((x=G[S])&&x.pop?(b(x[0],-T,0,S),b(x[1],0,T,S),gr=x[0],Yn=x[1]):(b(x,-T,T,S),gr=-(Yn=x<0?-x:x))),G.hasOwnProperty(S="RANGE"))if((x=G[S])&&x.pop)b(x[0],-T,-1,S),b(x[1],1,T,S),An=x[0],_r=x[1];else{if(b(x,-T,T,S),!x)throw Error(f+S+" cannot be zero: "+x);An=-(_r=x<0?-x:x)}if(G.hasOwnProperty(S="CRYPTO")){if((x=G[S])!==!!x)throw Error(f+S+" not true or false: "+x);if(x){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw On=!x,Error(f+"crypto unavailable");On=x}else On=x}if(G.hasOwnProperty(S="MODULO_MODE")&&(b(x=G[S],0,9,S),yi=x),G.hasOwnProperty(S="POW_PRECISION")&&(b(x=G[S],0,T,S),or=x),G.hasOwnProperty(S="FORMAT")){if(typeof(x=G[S])!="object")throw Error(f+S+" not an object: "+x);Kn=x}if(G.hasOwnProperty(S="ALPHABET")){if(typeof(x=G[S])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(x))throw Error(f+S+" invalid: "+x);Nn=x.slice(0,10)=="0123456789",vr=x}}return{DECIMAL_PLACES:Pt,ROUNDING_MODE:Ct,EXPONENTIAL_AT:[gr,Yn],RANGE:[An,_r],CRYPTO:On,MODULO_MODE:yi,POW_PRECISION:or,FORMAT:Kn,ALPHABET:vr}},Oe.isBigNumber=function(G){if(!G||G._isBigNumber!==!0)return!1;if(!Oe.DEBUG)return!0;var S,x,Q=G.c,z=G.e,ne=G.s;e:if({}.toString.call(Q)=="[object Array]"){if((ne===1||ne===-1)&&z>=-T&&z<=T&&z===d(z)){if(Q[0]===0){if(z===0&&Q.length===1)return!0;break e}if((S=(z+1)%y)<1&&(S+=y),String(Q[0]).length==S){for(S=0;S<Q.length;S++)if((x=Q[S])<0||x>=g||x!==d(x))break e;if(x!==0)return!0}}}else if(Q===null&&z===null&&(ne===null||ne===1||ne===-1))return!0;throw Error(f+"Invalid BigNumber: "+G)},Oe.maximum=Oe.max=function(){return as(arguments,je.lt)},Oe.minimum=Oe.min=function(){return as(arguments,je.gt)},Oe.random=(ce=9007199254740992,Te=Math.random()*ce&2097151?function(){return d(Math.random()*ce)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(G){var S,x,Q,z,ne,se=0,oe=[],he=new Oe(sr);if(G==null?G=Pt:b(G,0,T),z=l(G/y),On)if(crypto.getRandomValues){for(S=crypto.getRandomValues(new Uint32Array(z*=2));se<z;)(ne=131072*S[se]+(S[se+1]>>>11))>=9e15?(x=crypto.getRandomValues(new Uint32Array(2)),S[se]=x[0],S[se+1]=x[1]):(oe.push(ne%1e14),se+=2);se=z/2}else{if(!crypto.randomBytes)throw On=!1,Error(f+"crypto unavailable");for(S=crypto.randomBytes(z*=7);se<z;)(ne=281474976710656*(31&S[se])+1099511627776*S[se+1]+4294967296*S[se+2]+16777216*S[se+3]+(S[se+4]<<16)+(S[se+5]<<8)+S[se+6])>=9e15?crypto.randomBytes(7).copy(S,se):(oe.push(ne%1e14),se+=7);se=z/7}if(!On)for(;se<z;)(ne=Te())<9e15&&(oe[se++]=ne%1e14);for(z=oe[--se],G%=y,z&&G&&(ne=R[y-G],oe[se]=d(z/ne)*ne);oe[se]===0;oe.pop(),se--);if(se<0)oe=[Q=0];else{for(Q=-1;oe[0]===0;oe.splice(0,1),Q-=y);for(se=1,ne=oe[0];ne>=10;ne/=10,se++);se<y&&(Q-=y-se)}return he.e=Q,he.c=oe,he}),Oe.sum=function(){for(var G=1,S=arguments,x=new Oe(S[0]);G<S.length;)x=x.plus(S[G++]);return x},X=(function(){var G="0123456789";function S(x,Q,z,ne){for(var se,oe,he=[0],ge=0,ye=x.length;ge<ye;){for(oe=he.length;oe--;he[oe]*=Q);for(he[0]+=ne.indexOf(x.charAt(ge++)),se=0;se<he.length;se++)he[se]>z-1&&(he[se+1]==null&&(he[se+1]=0),he[se+1]+=he[se]/z|0,he[se]%=z)}return he.reverse()}return function(x,Q,z,ne,se){var oe,he,ge,ye,Me,Ve,Ye,at,Mt=x.indexOf("."),Bt=Pt,rt=Ct;for(Mt>=0&&(ye=or,or=0,x=x.replace(".",""),Ve=(at=new Oe(Q)).pow(x.length-Mt),or=ye,at.c=S($(m(Ve.c),Ve.e,"0"),10,z,G),at.e=at.c.length),ge=ye=(Ye=S(x,Q,z,se?(oe=vr,G):(oe=G,vr))).length;Ye[--ye]==0;Ye.pop());if(!Ye[0])return oe.charAt(0);if(Mt<0?--ge:(Ve.c=Ye,Ve.e=ge,Ve.s=ne,Ye=(Ve=D(Ve,at,Bt,rt,z)).c,Me=Ve.r,ge=Ve.e),Mt=Ye[he=ge+Bt+1],ye=z/2,Me=Me||he<0||Ye[he+1]!=null,Me=rt<4?(Mt!=null||Me)&&(rt==0||rt==(Ve.s<0?3:2)):Mt>ye||Mt==ye&&(rt==4||Me||rt==6&&1&Ye[he-1]||rt==(Ve.s<0?8:7)),he<1||!Ye[0])x=Me?$(oe.charAt(1),-Bt,oe.charAt(0)):oe.charAt(0);else{if(Ye.length=he,Me)for(--z;++Ye[--he]>z;)Ye[he]=0,he||(++ge,Ye=[1].concat(Ye));for(ye=Ye.length;!Ye[--ye];);for(Mt=0,x="";Mt<=ye;x+=oe.charAt(Ye[Mt++]));x=$(x,ge,oe.charAt(0))}return x}})(),D=(function(){function G(Q,z,ne){var se,oe,he,ge,ye=0,Me=Q.length,Ve=z%h,Ye=z/h|0;for(Q=Q.slice();Me--;)ye=((oe=Ve*(he=Q[Me]%h)+(se=Ye*he+(ge=Q[Me]/h|0)*Ve)%h*h+ye)/ne|0)+(se/h|0)+Ye*ge,Q[Me]=oe%ne;return ye&&(Q=[ye].concat(Q)),Q}function S(Q,z,ne,se){var oe,he;if(ne!=se)he=ne>se?1:-1;else for(oe=he=0;oe<ne;oe++)if(Q[oe]!=z[oe]){he=Q[oe]>z[oe]?1:-1;break}return he}function x(Q,z,ne,se){for(var oe=0;ne--;)Q[ne]-=oe,oe=Q[ne]<z[ne]?1:0,Q[ne]=oe*se+Q[ne]-z[ne];for(;!Q[0]&&Q.length>1;Q.splice(0,1));}return function(Q,z,ne,se,oe){var he,ge,ye,Me,Ve,Ye,at,Mt,Bt,rt,ft,Kt,Jn,gi,_i,wr,Pn,cr=Q.s==z.s?1:-1,Jt=Q.c,Nt=z.c;if(!(Jt&&Jt[0]&&Nt&&Nt[0]))return new Oe(Q.s&&z.s&&(Jt?!Nt||Jt[0]!=Nt[0]:Nt)?Jt&&Jt[0]==0||!Nt?0*cr:cr/0:NaN);for(Bt=(Mt=new Oe(cr)).c=[],cr=ne+(ge=Q.e-z.e)+1,oe||(oe=g,ge=I(Q.e/y)-I(z.e/y),cr=cr/y|0),ye=0;Nt[ye]==(Jt[ye]||0);ye++);if(Nt[ye]>(Jt[ye]||0)&&ge--,cr<0)Bt.push(1),Me=!0;else{for(gi=Jt.length,wr=Nt.length,ye=0,cr+=2,(Ve=d(oe/(Nt[0]+1)))>1&&(Nt=G(Nt,Ve,oe),Jt=G(Jt,Ve,oe),wr=Nt.length,gi=Jt.length),Jn=wr,ft=(rt=Jt.slice(0,wr)).length;ft<wr;rt[ft++]=0);Pn=Nt.slice(),Pn=[0].concat(Pn),_i=Nt[0],Nt[1]>=oe/2&&_i++;do{if(Ve=0,(he=S(Nt,rt,wr,ft))<0){if(Kt=rt[0],wr!=ft&&(Kt=Kt*oe+(rt[1]||0)),(Ve=d(Kt/_i))>1)for(Ve>=oe&&(Ve=oe-1),at=(Ye=G(Nt,Ve,oe)).length,ft=rt.length;S(Ye,rt,at,ft)==1;)Ve--,x(Ye,wr<at?Pn:Nt,at,oe),at=Ye.length,he=1;else Ve==0&&(he=Ve=1),at=(Ye=Nt.slice()).length;if(at<ft&&(Ye=[0].concat(Ye)),x(rt,Ye,ft,oe),ft=rt.length,he==-1)for(;S(Nt,rt,wr,ft)<1;)Ve++,x(rt,wr<ft?Pn:Nt,ft,oe),ft=rt.length}else he===0&&(Ve++,rt=[0]);Bt[ye++]=Ve,rt[0]?rt[ft++]=Jt[Jn]||0:(rt=[Jt[Jn]],ft=1)}while((Jn++<gi||rt[0]!=null)&&cr--);Me=rt[0]!=null,Bt[0]||Bt.splice(0,1)}if(oe==g){for(ye=1,cr=Bt[0];cr>=10;cr/=10,ye++);dt(Mt,ne+(Mt.e=ye+ge*y-1)+1,se,Me)}else Mt.e=ge,Mt.r=+Me;return Mt}})(),Ce=/^(-?)0([xbo])(?=\w[\w.]*$)/i,He=/^([^.]+)\.$/,xe=/^\.([^.]+)$/,Tr=/^-?(Infinity|NaN)$/,Vt=/^\s*\+(?=[\w.])|^\s+|\s+$/g,re=function(G,S,x,Q){var z,ne=x?S:S.replace(Vt,"");if(Tr.test(ne))G.s=isNaN(ne)?null:ne<0?-1:1;else{if(!x&&(ne=ne.replace(Ce,(function(se,oe,he){return z=(he=he.toLowerCase())=="x"?16:he=="b"?2:8,Q&&Q!=z?se:oe})),Q&&(z=Q,ne=ne.replace(He,"$1").replace(xe,"0.$1")),S!=ne))return new Oe(ne,z);if(Oe.DEBUG)throw Error(f+"Not a"+(Q?" base "+Q:"")+" number: "+S);G.s=null}G.c=G.e=null},je.absoluteValue=je.abs=function(){var G=new Oe(this);return G.s<0&&(G.s=1),G},je.comparedTo=function(G,S){return E(this,new Oe(G,S))},je.decimalPlaces=je.dp=function(G,S){var x,Q,z,ne=this;if(G!=null)return b(G,0,T),S==null?S=Ct:b(S,0,8),dt(new Oe(ne),G+ne.e+1,S);if(!(x=ne.c))return null;if(Q=((z=x.length-1)-I(this.e/y))*y,z=x[z])for(;z%10==0;z/=10,Q--);return Q<0&&(Q=0),Q},je.dividedBy=je.div=function(G,S){return D(this,new Oe(G,S),Pt,Ct)},je.dividedToIntegerBy=je.idiv=function(G,S){return D(this,new Oe(G,S),0,1)},je.exponentiatedBy=je.pow=function(G,S){var x,Q,z,ne,se,oe,he,ge,ye=this;if((G=new Oe(G)).c&&!G.isInteger())throw Error(f+"Exponent not an integer: "+Hr(G));if(S!=null&&(S=new Oe(S)),se=G.e>14,!ye.c||!ye.c[0]||ye.c[0]==1&&!ye.e&&ye.c.length==1||!G.c||!G.c[0])return ge=new Oe(Math.pow(+Hr(ye),se?G.s*(2-N(G)):+Hr(G))),S?ge.mod(S):ge;if(oe=G.s<0,S){if(S.c?!S.c[0]:!S.s)return new Oe(NaN);(Q=!oe&&ye.isInteger()&&S.isInteger())&&(ye=ye.mod(S))}else{if(G.e>9&&(ye.e>0||ye.e<-1||(ye.e==0?ye.c[0]>1||se&&ye.c[1]>=24e7:ye.c[0]<8e13||se&&ye.c[0]<=9999975e7)))return ne=ye.s<0&&N(G)?-0:0,ye.e>-1&&(ne=1/ne),new Oe(oe?1/ne:ne);or&&(ne=l(or/y+2))}for(se?(x=new Oe(.5),oe&&(G.s=1),he=N(G)):he=(z=Math.abs(+Hr(G)))%2,ge=new Oe(sr);;){if(he){if(!(ge=ge.times(ye)).c)break;ne?ge.c.length>ne&&(ge.c.length=ne):Q&&(ge=ge.mod(S))}if(z){if((z=d(z/2))===0)break;he=z%2}else if(dt(G=G.times(x),G.e+1,1),G.e>14)he=N(G);else{if((z=+Hr(G))==0)break;he=z%2}ye=ye.times(ye),ne?ye.c&&ye.c.length>ne&&(ye.c.length=ne):Q&&(ye=ye.mod(S))}return Q?ge:(oe&&(ge=sr.div(ge)),S?ge.mod(S):ne?dt(ge,or,Ct,void 0):ge)},je.integerValue=function(G){var S=new Oe(this);return G==null?G=Ct:b(G,0,8),dt(S,S.e+1,G)},je.isEqualTo=je.eq=function(G,S){return E(this,new Oe(G,S))===0},je.isFinite=function(){return!!this.c},je.isGreaterThan=je.gt=function(G,S){return E(this,new Oe(G,S))>0},je.isGreaterThanOrEqualTo=je.gte=function(G,S){return(S=E(this,new Oe(G,S)))===1||S===0},je.isInteger=function(){return!!this.c&&I(this.e/y)>this.c.length-2},je.isLessThan=je.lt=function(G,S){return E(this,new Oe(G,S))<0},je.isLessThanOrEqualTo=je.lte=function(G,S){return(S=E(this,new Oe(G,S)))===-1||S===0},je.isNaN=function(){return!this.s},je.isNegative=function(){return this.s<0},je.isPositive=function(){return this.s>0},je.isZero=function(){return!!this.c&&this.c[0]==0},je.minus=function(G,S){var x,Q,z,ne,se=this,oe=se.s;if(S=(G=new Oe(G,S)).s,!oe||!S)return new Oe(NaN);if(oe!=S)return G.s=-S,se.plus(G);var he=se.e/y,ge=G.e/y,ye=se.c,Me=G.c;if(!he||!ge){if(!ye||!Me)return ye?(G.s=-S,G):new Oe(Me?se:NaN);if(!ye[0]||!Me[0])return Me[0]?(G.s=-S,G):new Oe(ye[0]?se:Ct==3?-0:0)}if(he=I(he),ge=I(ge),ye=ye.slice(),oe=he-ge){for((ne=oe<0)?(oe=-oe,z=ye):(ge=he,z=Me),z.reverse(),S=oe;S--;z.push(0));z.reverse()}else for(Q=(ne=(oe=ye.length)<(S=Me.length))?oe:S,oe=S=0;S<Q;S++)if(ye[S]!=Me[S]){ne=ye[S]<Me[S];break}if(ne&&(z=ye,ye=Me,Me=z,G.s=-G.s),(S=(Q=Me.length)-(x=ye.length))>0)for(;S--;ye[x++]=0);for(S=g-1;Q>oe;){if(ye[--Q]<Me[Q]){for(x=Q;x&&!ye[--x];ye[x]=S);--ye[x],ye[Q]+=g}ye[Q]-=Me[Q]}for(;ye[0]==0;ye.splice(0,1),--ge);return ye[0]?ss(G,ye,ge):(G.s=Ct==3?-1:1,G.c=[G.e=0],G)},je.modulo=je.mod=function(G,S){var x,Q,z=this;return G=new Oe(G,S),!z.c||!G.s||G.c&&!G.c[0]?new Oe(NaN):!G.c||z.c&&!z.c[0]?new Oe(z):(yi==9?(Q=G.s,G.s=1,x=D(z,G,0,3),G.s=Q,x.s*=Q):x=D(z,G,0,yi),(G=z.minus(x.times(G))).c[0]||yi!=1||(G.s=z.s),G)},je.multipliedBy=je.times=function(G,S){var x,Q,z,ne,se,oe,he,ge,ye,Me,Ve,Ye,at,Mt,Bt,rt=this,ft=rt.c,Kt=(G=new Oe(G,S)).c;if(!(ft&&Kt&&ft[0]&&Kt[0]))return!rt.s||!G.s||ft&&!ft[0]&&!Kt||Kt&&!Kt[0]&&!ft?G.c=G.e=G.s=null:(G.s*=rt.s,ft&&Kt?(G.c=[0],G.e=0):G.c=G.e=null),G;for(Q=I(rt.e/y)+I(G.e/y),G.s*=rt.s,(he=ft.length)<(Me=Kt.length)&&(at=ft,ft=Kt,Kt=at,z=he,he=Me,Me=z),z=he+Me,at=[];z--;at.push(0));for(Mt=g,Bt=h,z=Me;--z>=0;){for(x=0,Ve=Kt[z]%Bt,Ye=Kt[z]/Bt|0,ne=z+(se=he);ne>z;)x=((ge=Ve*(ge=ft[--se]%Bt)+(oe=Ye*ge+(ye=ft[se]/Bt|0)*Ve)%Bt*Bt+at[ne]+x)/Mt|0)+(oe/Bt|0)+Ye*ye,at[ne--]=ge%Mt;at[ne]=x}return x?++Q:at.splice(0,1),ss(G,at,Q)},je.negated=function(){var G=new Oe(this);return G.s=-G.s||null,G},je.plus=function(G,S){var x,Q=this,z=Q.s;if(S=(G=new Oe(G,S)).s,!z||!S)return new Oe(NaN);if(z!=S)return G.s=-S,Q.minus(G);var ne=Q.e/y,se=G.e/y,oe=Q.c,he=G.c;if(!ne||!se){if(!oe||!he)return new Oe(z/0);if(!oe[0]||!he[0])return he[0]?G:new Oe(oe[0]?Q:0*z)}if(ne=I(ne),se=I(se),oe=oe.slice(),z=ne-se){for(z>0?(se=ne,x=he):(z=-z,x=oe),x.reverse();z--;x.push(0));x.reverse()}for((z=oe.length)-(S=he.length)<0&&(x=he,he=oe,oe=x,S=z),z=0;S;)z=(oe[--S]=oe[S]+he[S]+z)/g|0,oe[S]=g===oe[S]?0:oe[S]%g;return z&&(oe=[z].concat(oe),++se),ss(G,oe,se)},je.precision=je.sd=function(G,S){var x,Q,z,ne=this;if(G!=null&&G!==!!G)return b(G,1,T),S==null?S=Ct:b(S,0,8),dt(new Oe(ne),G,S);if(!(x=ne.c))return null;if(Q=(z=x.length-1)*y+1,z=x[z]){for(;z%10==0;z/=10,Q--);for(z=x[0];z>=10;z/=10,Q++);}return G&&ne.e+1>Q&&(Q=ne.e+1),Q},je.shiftedBy=function(G){return b(G,-9007199254740991,_),this.times("1e"+G)},je.squareRoot=je.sqrt=function(){var G,S,x,Q,z,ne=this,se=ne.c,oe=ne.s,he=ne.e,ge=Pt+4,ye=new Oe("0.5");if(oe!==1||!se||!se[0])return new Oe(!oe||oe<0&&(!se||se[0])?NaN:se?ne:1/0);if((oe=Math.sqrt(+Hr(ne)))==0||oe==1/0?(((S=m(se)).length+he)%2==0&&(S+="0"),oe=Math.sqrt(+S),he=I((he+1)/2)-(he<0||he%2),x=new Oe(S=oe==1/0?"5e"+he:(S=oe.toExponential()).slice(0,S.indexOf("e")+1)+he)):x=new Oe(oe+""),x.c[0]){for((oe=(he=x.e)+ge)<3&&(oe=0);;)if(z=x,x=ye.times(z.plus(D(ne,z,ge,1))),m(z.c).slice(0,oe)===(S=m(x.c)).slice(0,oe)){if(x.e<he&&--oe,(S=S.slice(oe-3,oe+1))!="9999"&&(Q||S!="4999")){+S&&(+S.slice(1)||S.charAt(0)!="5")||(dt(x,x.e+Pt+2,1),G=!x.times(x).eq(ne));break}if(!Q&&(dt(z,z.e+Pt+2,0),z.times(z).eq(ne))){x=z;break}ge+=4,oe+=4,Q=1}}return dt(x,x.e+Pt+1,Ct,G)},je.toExponential=function(G,S){return G!=null&&(b(G,0,T),G++),Xn(this,G,S,1)},je.toFixed=function(G,S){return G!=null&&(b(G,0,T),G=G+this.e+1),Xn(this,G,S)},je.toFormat=function(G,S,x){var Q,z=this;if(x==null)G!=null&&S&&typeof S=="object"?(x=S,S=null):G&&typeof G=="object"?(x=G,G=S=null):x=Kn;else if(typeof x!="object")throw Error(f+"Argument not an object: "+x);if(Q=z.toFixed(G,S),z.c){var ne,se=Q.split("."),oe=+x.groupSize,he=+x.secondaryGroupSize,ge=x.groupSeparator||"",ye=se[0],Me=se[1],Ve=z.s<0,Ye=Ve?ye.slice(1):ye,at=Ye.length;if(he&&(ne=oe,oe=he,he=ne,at-=ne),oe>0&&at>0){for(ne=at%oe||oe,ye=Ye.substr(0,ne);ne<at;ne+=oe)ye+=ge+Ye.substr(ne,oe);he>0&&(ye+=ge+Ye.slice(ne)),Ve&&(ye="-"+ye)}Q=Me?ye+(x.decimalSeparator||"")+((he=+x.fractionGroupSize)?Me.replace(new RegExp("\\d{"+he+"}\\B","g"),"$&"+(x.fractionGroupSeparator||"")):Me):ye}return(x.prefix||"")+Q+(x.suffix||"")},je.toFraction=function(G){var S,x,Q,z,ne,se,oe,he,ge,ye,Me,Ve,Ye=this,at=Ye.c;if(G!=null&&(!(oe=new Oe(G)).isInteger()&&(oe.c||oe.s!==1)||oe.lt(sr)))throw Error(f+"Argument "+(oe.isInteger()?"out of range: ":"not an integer: ")+Hr(oe));if(!at)return new Oe(Ye);for(S=new Oe(sr),ge=x=new Oe(sr),Q=he=new Oe(sr),Ve=m(at),ne=S.e=Ve.length-Ye.e-1,S.c[0]=R[(se=ne%y)<0?y+se:se],G=!G||oe.comparedTo(S)>0?ne>0?S:ge:oe,se=_r,_r=1/0,oe=new Oe(Ve),he.c[0]=0;ye=D(oe,S,0,1),(z=x.plus(ye.times(Q))).comparedTo(G)!=1;)x=Q,Q=z,ge=he.plus(ye.times(z=ge)),he=z,S=oe.minus(ye.times(z=S)),oe=z;return z=D(G.minus(x),Q,0,1),he=he.plus(z.times(ge)),x=x.plus(z.times(Q)),he.s=ge.s=Ye.s,Me=D(ge,Q,ne*=2,Ct).minus(Ye).abs().comparedTo(D(he,x,ne,Ct).minus(Ye).abs())<1?[ge,Q]:[he,x],_r=se,Me},je.toNumber=function(){return+Hr(this)},je.toPrecision=function(G,S){return G!=null&&b(G,1,T),Xn(this,G,S,2)},je.toString=function(G){var S,x=this,Q=x.s,z=x.e;return z===null?Q?(S="Infinity",Q<0&&(S="-"+S)):S="NaN":(G==null?S=z<=gr||z>=Yn?j(m(x.c),z):$(m(x.c),z,"0"):G===10&&Nn?S=$(m((x=dt(new Oe(x),Pt+z+1,Ct)).c),x.e,"0"):(b(G,2,vr.length,"Base"),S=X($(m(x.c),z,"0"),10,G,Q,!0)),Q<0&&x.c[0]&&(S="-"+S)),S},je.valueOf=je.toJSON=function(){return Hr(this)},je._isBigNumber=!0,je[Symbol.toStringTag]="BigNumber",je[Symbol.for("nodejs.util.inspect.custom")]=je.valueOf,A!=null&&Oe.set(A),Oe})();const V={ROUNDING_MODE:B.ROUND_DOWN};function H(v){return new TextEncoder().encode(v)}function F(v){return typeof v=="string"?F(J(v)):new TextDecoder().decode(v)}B.config(V);const te="UNKNOWN_ERROR",ie="INVALID_ARGUMENT";function Z(v,A=te,D={}){const X=[];Object.keys(D).forEach((Te=>{try{X.push(Te+"="+JSON.stringify(D[Te]))}catch{X.push(Te+"="+JSON.stringify(D[Te].toString()))}}));const re=v;X.length&&(v+=" ("+X.join(", ")+")");const ce=new Error(v);return ce.reason=re,ce.code=A,Object.keys(D).forEach((function(Te){ce[Te]=D[Te]})),ce}function J(v){if(typeof v!="string")throw new Error("hexToBytes only accept strings, got: "+typeof v);if(v.substr(0,2)==="0x")return J(v.substr(2));const A=new Uint8Array(Math.ceil(v.length/2));let D=0;for(let X=0;X<v.length;X+=2){const re=parseInt(v.substr(X,2),16);if(isNaN(re))throw new Error("Cannot read hex string:"+JSON.stringify(v));A[D]=re,D++}return A}function K(v){return Array.from(v).map((A=>A.toString(16).padStart(2,"0"))).join("")}function q(v,A){if(typeof v=="string"){if(A&&A.encoding==="hex"&&typeof v=="string"){let D=v;D.length>2&&D.substr(0,2)==="0x"&&(D=D.substr(2));const X=J(D);return c.keccak256(X)}return c.keccak256(H(v))}return c.keccak256(v)}const M={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 U(v,A,D){return new Array(A-v.length+1).join(D||"0")+v}function W(v){let A="",D=0;const X=v.length;for(v.substring(0,2)==="0x"&&(D=2);D<X;D+=2){const re=parseInt(v.substr(D,2),16);A+=String.fromCharCode(re)}return A}function C(v){return O(v)&&v.name&&v.name.indexOf("(")!==-1?v.name:v.name+"("+ee(!1,v.inputs||[]).join(",")+")"}function k(...v){const A=v.reduce(((re,ce)=>re+ce.length),0),D=new Uint8Array(A);let X=0;for(const re of v)D.set(re,X),X+=re.length;return D}function ee(v,A){const D=[];return A.forEach((function(X){if(typeof X.components=="object"){if(X.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");let re="";const ce=X.type.indexOf("[");ce>=0&&(re=X.type.substring(ce));const Te=ee(v,X.components);D.push("("+Te.join(",")+")"+re)}else D.push(X.type)})),D}function Ee(v){const A=v.indexOf("("),D=v.indexOf(")");return A!==-1&&D!==-1?v.substr(0,A):v}function me(v){const A=v.indexOf("("),D=v.indexOf(")");return A!==-1&&D!==-1?v.substr(A+1,D-A-1).replace(" ",""):""}function Se(v){return v==null?v:We(v).toNumber()}function we(v){return We(v).toNumber()}function ae(v){return L(v)?v.toString(10):""+v}function ue(v){return typeof v=="string"&&!v.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(v)?"0x"+v:Ae(v)}function fe(v){if(typeof v=="string")return v.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(v)?Ae(v):"0x"+K(H(v));if(v instanceof Uint8Array)return"0x"+K(v);throw new Error(`toStringData: Error trying to convert ${v} (${typeof v}) to a hex string.`)}function pe(v){return typeof v=="boolean"?v:We(v).toNumber()!==0}function be(v){const A=We(v),D=A.toString(16);return A.isLessThan(0)?"-0x"+D.substr(1):"0x"+D}function Ae(v){if(Y(v))return be(+v);if(L(v))return be(v);if(w(v)){const A=v;if(A.indexOf("-0x")===0)return be(A);if(A.indexOf("0x")===0)return A;if(!isFinite(A))return K(H(A))}if(v instanceof Uint8Array)return"0x"+K(v);if(de(v)||O(v))throw new Error("toHex can only be called with scalar values, not objects or arrays");return be(v)}function qe(v){const A=v?v.toLowerCase():"ether",D=M[A];if(D===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(M,null,2));return new B(D,10)}function We(v){let A=v||0;return L(A)?A:(typeof A=="string"&&(A=A.trim()),typeof A!="string"||A.indexOf("0x")!==0&&A.indexOf("-0x")!==0?A instanceof Uint8Array?new B(K(A),16):new B(A,10):new B(A.replace("0x","").toLowerCase(),16))}function tt(v){return new B(new Array(v).fill("1").join(""),2)}function Xe(v,A=256){const D=We(v).integerValue();return D.isLessThan(0)?tt(A).plus(D).plus(1):D}function ut(v,A){return U(v.toString(2),A,"0")[0]==="1"}function Ht(v){if(typeof v!="string")throw Z("invalid address",ie,{arg:"address",value:v});if(v.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return v.trim().substring(0,2)!=="0x"&&(v="0x"+v),yr(v);throw Z("invalid address",ie,{arg:"address",value:v})}function It(v,A=256){if(ut(v,A)){const D=tt(A);return v.minus(D).minus(1)}return v}function tr(v){return/^0x[0-9a-f]{40}$/i.test(v)}function Rt(v){return!!/^(0x)?[0-9a-f]{40}$/i.test(v)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(v)&&!/^(0x)?[0-9A-F]{40}$/.test(v))||mr(v))}function mr(v){const A=v.replace("0x",""),D=q(A.toLowerCase());for(let X=0;X<40;X++)if(parseInt(D[X],16)>7&&A[X].toUpperCase()!==A[X]||parseInt(D[X],16)<=7&&A[X].toLowerCase()!==A[X])return!1;return!0}function yr(v){if(v===void 0)return"";const A=v.toLowerCase().replace("0x",""),D=q(A);let X="0x";for(let re=0;re<A.length;re++)parseInt(D[re],16)>7?X+=A[re].toUpperCase():X+=A[re];return X}function yt(v){if(!Array.isArray(v))throw new Error(`Value was not an array: ${JSON.stringify(v)}`);return v}function Fr(v){return tr(v)?v:/^[0-9a-f]{40}$/.test(v)?"0x"+v:"0x"+U(Ae(v).substr(2),40)}function L(v){return v instanceof B}function w(v){return typeof v=="string"||v&&v.constructor&&v.constructor.name==="String"}function O(v){return v!==null&&!Array.isArray(v)&&typeof v=="object"}function Y(v){return typeof v=="boolean"}function de(v){return Array.isArray(v)}var _e,Ie;function Qe(v,A){if(!v)throw new Error("jsonrpc method should be specified!");if(typeof v!="string")throw new Error(`jsonrpc must be a string, got ${typeof v}!`);return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:v,params:A||[]}}function Lt(v){return Array.isArray(v)?v.every(A):A(v);function A(D){return!!D&&(D.error===void 0||D.error===null)&&D.jsonrpc==="2.0"&&D.id!==null&&"result"in D&&D.result!==void 0}}r.TransactionStatus=void 0,(_e=r.TransactionStatus||(r.TransactionStatus={})).pending="pending",_e.confirmed="confirmed",_e.failed="failed",r.TransactionType=void 0,(Ie=r.TransactionType||(r.TransactionType={})).queued="queued",Ie.dropped="dropped",Ie.replaced="replaced",Ie.pending="pending",Ie.reverted="reverted",Ie.confirmed="confirmed",r.messageId=0;function At(v){return We(v)}function $t(v){return v==="latest"||v==="pending"||v==="earliest"}function it(v){return v===void 0?"latest":rr(v)}function rr(v){return v==null?null:$t(v)?v:Ae(v)}function Bf(v){return v.from&&(v.from=jr(v.from)),v.to&&(v.to=jr(v.to)),v.gasPrice!==void 0&&(v.gasPrice=be(v.gasPrice)),v.gas!==void 0&&(v.gas=be(v.gas)),v.value!==void 0&&(v.value=be(v.value)),v.nonce!==void 0&&(v.nonce=be(v.nonce)),v.data&&!v.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(v.data)&&(v.data="0x"+v.data),v}function is(v){if(typeof v!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(v));if(v.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(v));if(v.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(v));return v}function Uf(v){if(typeof v!="object")throw new Error("Did not provide transaction options");if(!v.from)throw new Error('Missing "from" in transaction options');return v.from=jr(v.from),v.to&&(v.to=jr(v.to)),v.gasPrice!==void 0&&(v.gasPrice=be(v.gasPrice)),v.gas!==void 0&&(v.gas=be(v.gas)),v.value!==void 0&&(v.value=be(v.value)),v.nonce!==void 0&&(v.nonce=be(v.nonce)),v.data&&!v.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(v.data)&&(v.data="0x"+v.data),v}function mo(v){return v?(v.blockNumber!==null&&(v.blockNumber=we(v.blockNumber)),v.transactionIndex!==null&&(v.transactionIndex=we(v.transactionIndex)),v.nonce=we(v.nonce),v.gas=we(v.gas),v.gasPrice=We(v.gasPrice),v.value=We(v.value),v):null}function Rb(v){return v?(v.blockNumber!==null&&(v.blockNumber=we(v.blockNumber)),v.transactionIndex!==null&&(v.transactionIndex=we(v.transactionIndex)),v.cumulativeGasUsed=we(v.cumulativeGasUsed),v.gasUsed=we(v.gasUsed),v.effectiveGasPrice!==void 0&&v.effectiveGasPrice!==null&&(v.effectiveGasPrice=we(v.effectiveGasPrice)),v.logs&&de(v.logs)&&(v.logs=v.logs.map((function(A){return ou(A)}))),v.status=we(v.status||""),v):null}function yo(v){return v?(v.gasLimit=we(v.gasLimit),v.gasUsed=we(v.gasUsed),v.size=we(v.size),v.timestamp=we(v.timestamp),v.number!==null&&(v.number=we(v.number)),v.difficulty=We(v.difficulty),v.totalDifficulty=We(v.totalDifficulty),de(v.transactions)&&v.transactions.forEach((function(A,D){w(A)||(v.transactions[D]=mo(A)||v.transactions[D])})),v):null}function ou(v){return v&&(v.blockNumber&&(v.blockNumber=we(v.blockNumber)),v.transactionIndex&&(v.transactionIndex=we(v.transactionIndex)),v.logIndex&&(v.logIndex=we(v.logIndex)),v)}function jr(v){if(tr(v))return v;if(Rt(v))return"0x"+v;throw new Error(`Invalid address: ${JSON.stringify(v)}`)}function Ab(v){return v}function Ob(v){return v&&(v.startingBlock=we(v.startingBlock),v.currentBlock=we(v.currentBlock),v.highestBlock=we(v.highestBlock),v.knownStates&&(v.knownStates=we(v.knownStates),v.pulledStates=we(v.pulledStates)),v)}function Ff(v){if(v===null)throw Z("cannot convert null value to array",ie,{arg:"value",value:v});if(v instanceof Uint8Array)return new Uint8Array(v);if(typeof v=="string"){const A=v.match(/^(0x)?[0-9a-fA-F]*$/);if(!A)throw Z("invalid hexidecimal string",ie,{arg:"value",value:v});if(A[1]!=="0x")throw Z("hex string must have 0x prefix",ie,{arg:"value",value:v});(v=v.substring(2)).length%2&&(v="0"+v);const D=[];for(let X=0;X<v.length;X+=2)D.push(parseInt(v.substr(X,2),16));return new Uint8Array(D)}if((function(A){if(!A||parseInt(String(A.length))!==A.length||typeof A=="string")return!1;for(let D=0;D<A.length;D++){const X=A[D];if(X<0||X>=256||parseInt(String(X))!==X)return!1}return!0})(v))return new Uint8Array(v);throw Z("invalid arrayify value",void 0,{arg:"value",value:v,type:typeof v})}function Nb(v,A,D){Object.defineProperty(v,A,{enumerable:!0,value:D,writable:!1})}const d2=new B(-1),f2=new B(0),p2=new B(1),Pb=new B("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Cb(v){return(function(A,D){function X(Te){return new Error('unexpected character "'+A[Te]+'" at position '+Te+' in "'+A+'"')}const re={type:"",name:"",state:{allowType:!0}};let ce=re;for(let Te=0;Te<A.length;Te++){const Ce=A[Te];switch(Ce){case"(":if(!ce.state.allowParams)throw X(Te);ce.state.allowType=!1,ce.type=go(ce.type),ce.components=[{type:"",name:"",parent:ce,state:{allowType:!0}}],ce=ce.components[0];break;case")":delete ce.state,ce.name==="indexed"&&(ce.indexed=!0,ce.name=""),ce.type=go(ce.type);const He=ce;if(ce=ce.parent,!ce)throw X(Te);delete He.parent,ce.state.allowParams=!1,ce.state.allowName=!0,ce.state.allowArray=!0;break;case",":delete ce.state,ce.name==="indexed"&&(ce.indexed=!0,ce.name=""),ce.type=go(ce.type);const xe={type:"",name:"",parent:ce.parent,state:{allowType:!0}};ce.parent.components.push(xe),delete ce.parent,ce=xe;break;case" ":ce.state.allowType&&ce.type!==""&&(ce.type=go(ce.type),delete ce.state.allowType,ce.state.allowName=!0,ce.state.allowParams=!0),ce.state.allowName&&ce.name!==""&&(ce.name==="indexed"?(ce.indexed=!0,ce.name=""):ce.state.allowName=!1);break;case"[":if(!ce.state.allowArray)throw X(Te);ce.type+=Ce,ce.state.allowArray=!1,ce.state.allowName=!1,ce.state.readArray=!0;break;case"]":if(!ce.state.readArray)throw X(Te);ce.type+=Ce,ce.state.readArray=!1,ce.state.allowArray=!0,ce.state.allowName=!0;break;default:if(ce.state.allowType)ce.type+=Ce,ce.state.allowParams=!0,ce.state.allowArray=!0;else if(ce.state.allowName)ce.name+=Ce,delete ce.state.allowArray;else{if(!ce.state.readArray)throw X(Te);ce.type+=Ce}}}if(ce.parent)throw new Error("unexpected eof");return delete re.state,ce.name==="indexed"&&(ce.indexed=!0,ce.name=""),re.type=go(re.type),re})(v)}function go(v){return v.match(/^uint($|[^1-9])/)?v="uint256"+v.substring(4):v.match(/^int($|[^1-9])/)&&(v="int256"+v.substring(3)),v}const h2=new RegExp(/^bytes([0-9]*)$/),Mb=new RegExp(/^(u?int)([0-9]*)$/),m2=new RegExp(/^(.*)\[([0-9]*)\]$/),y2=function(v,A){const D=v.match(Mb);return D&&parseInt(D[2])<=48?A.toNumber():A};class Rn{constructor(A,D,X,re="",ce){this.coerceFunc=A,this.name=D,this.type=X,this.localName=re,this.dynamic=ce}}class g2 extends Rn{constructor(A){super(A.coerceFunc,A.name,A.type,void 0,A.dynamic),Nb(this,"coder",A)}encode(A){return this.coder.encode(A)}decode(A,D){return this.coder.decode(A,D)}}class _2 extends Rn{constructor(A,D){super(A,"null","",D,!1)}encode(A){return Ff([])}decode(A,D){if(D>A.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function cu(v,A){return new B(v.toString(2).substr(-A),2)}class jb extends Rn{constructor(A,D,X,re){const ce=(X?"int":"uint")+8*D;super(A,ce,ce,re,!1),this.size=D,this.signed=X}encode(A){try{let D=We(A);if(this.signed){let re=cu(Pb,8*this.size-1);if(D.gt(re))throw new Error("out-of-bounds");if(re=re.plus(p2).multipliedBy(d2),D.lt(re))throw new Error("out-of-bounds")}else if(D.lt(f2)||D.gt(cu(Pb,8*this.size)))throw new Error("out-of-bounds");D=cu(Xe(D,8*this.size),8*this.size),this.signed&&(D=Xe(It(D,8*this.size),256));const X=U(Xe(D).toString(16),64);if(X.indexOf("NaN")!==-1)throw Z("invalid number value, NaN",ie,{arg:this.localName,coderType:this.name,value:A,v:D,twosComplement:Xe(D),twosComplement16:Xe(D).toString(16),pad:U(Xe(D).toString(16),64),size:this.size});return J(X)}catch(D){throw Z("invalid number value",ie,{arg:this.localName,coderType:this.name,value:A,message:D.toString()})}}decode(A,D){if(A.length<D+32)throw Z("insufficient data for "+this.name+" type",ie,{arg:this.localName,coderType:this.name,value:Ae(A.slice(D,D+32))});const X=32-this.size;let re=new B(K(A.slice(D+X,D+32)),16);return re=this.signed?It(re,8*this.size):cu(re,8*this.size),{consumed:32,value:this.coerceFunc(this.name,re)}}}const Wn=new jb((function(v,A){return A}),32,!1,"none");class Db extends Rn{constructor(A,D,X){const re="bytes"+D;super(A,re,re,X,!1),this.length=D}encode(A){const D=new Uint8Array(32);try{if(typeof A=="string"&&A.length%2!=0)throw new Error("hex string cannot be odd-length");const X=Ff(A);if(X.length>this.length)throw new Error("incorrect data length");D.set(X)}catch(X){throw Z("invalid "+this.name+" value. Use hex strings or Uint8Array",ie,{arg:this.localName,coderType:this.name,value:X.value||A,details:X.message})}return D}decode(A,D){if(A.length<D+32)throw Z("insufficient data for "+this.name+" type",ie,{arg:this.localName,coderType:this.name,value:Ae(A.slice(D,D+32))});return{consumed:32,value:this.coerceFunc(this.name,A.slice(D,D+this.length))}}}function Lb(v){const A=32*Math.ceil(v.length/32),D=new Uint8Array(A-v.length);return k(Wn.encode(v.length),v,D)}function $b(v,A,D){if(v.length<A+32)throw Z("insufficient data for dynamicBytes length",ie,{arg:D,coderType:"dynamicBytes",value:Ae(v.slice(A,A+32))});let X=Wn.decode(v,A).value;try{X=X.toNumber()}catch(re){throw re("dynamic bytes count too large",ie,{arg:D,coderType:"dynamicBytes",value:X.toString()})}if(v.length<A+32+X)throw Z("insufficient data for dynamicBytes type",ie,{arg:D,coderType:"dynamicBytes",value:Ae(v.slice(A,A+32+X))});return{consumed:32+32*Math.ceil(X/32),value:v.slice(A+32,A+32+X)}}function uu(v){return 32*Math.ceil(v/32)}function kb(v,A){if(!Array.isArray(A)){if(!A||typeof A!="object")throw Z("invalid tuple value",ie,{coderType:"tuple",value:A});{const He=[];v.forEach((function(xe){He.push(A[xe.localName])})),A=He}}if(v.length!==A.length)throw Z("types/value length mismatch",ie,{coderType:"tuple",value:A});const D=[];v.forEach((function(He,xe){D.push({dynamic:He.dynamic,value:He.encode(A[xe])})}));let X=0,re=0;D.forEach((function(He){He.dynamic?(X+=32,re+=uu(He.value.length)):X+=uu(He.value.length)}));let ce=0,Te=X;const Ce=new Uint8Array(X+re);return D.forEach((function(He){He.dynamic?(Ce.set(Wn.encode(Te),ce),ce+=32,Ce.set(He.value,Te),Te+=uu(He.value.length)):(Ce.set(He.value,ce),ce+=uu(He.value.length))})),Ce}class v2 extends Array{}class E2 extends Rn{constructor(A,D,X,re){super(A,"array",D.type+"["+(X>=0?X:"")+"]",re,X===-1||D.dynamic),this.coder=D,this.length=X}encode(A){if(!Array.isArray(A))throw Z("expected array value",ie,{arg:this.localName,coderType:"array",value:A});let D=this.length,X=new Uint8Array(0);D===-1&&(D=A.length,X=Wn.encode(D)),(function(ce,Te,Ce){if(Ce||(Ce=""),ce<Te)throw Z("missing argument"+Ce,"MISSING_ARGUMENT",{count:ce,expectedCount:Te});if(ce>Te)throw Z("too many arguments"+Ce,"UNEXPECTED_ARGUMENT",{count:ce,expectedCount:Te})})(D,A.length,"in coder array"+(this.localName?" "+this.localName:""));const re=[];for(let ce=0;ce<A.length;ce++)re.push(this.coder);return k(X,kb(re,A))}decode(A,D){let X=0,re=this.length;if(re===-1){let Ce;try{Ce=Wn.decode(A,D)}catch(He){throw Z("insufficient data for dynamic array length",ie,{arg:this.localName,coderType:"array",value:He.value})}try{re=Ce.value.toNumber()}catch{throw Z("array count too large",ie,{arg:this.localName,coderType:"array",value:Ce.value.toString()})}X+=Ce.consumed,D+=Ce.consumed}const ce=[];for(let Ce=0;Ce<re;Ce++)ce.push(new g2(this.coder));const Te=(function(Ce,He,xe){const Tr=xe;let Vt=0;const je=[];return Ce.forEach((function(sr){let Pt;if(sr.dynamic){const Ct=Wn.decode(He,xe);Pt=sr.decode(He,Tr+Ct.value.toNumber()),Pt.consumed=Ct.consumed}else Pt=sr.decode(He,xe);Pt.value!==void 0&&je.push(Pt.value),xe+=Pt.consumed,Vt+=Pt.consumed})),{value:je,consumed:Vt}})(ce,A,D);return Te.consumed+=X,Te.value=this.coerceFunc(this.type,Te.value),Te}}class Hf extends Rn{constructor(A,D,X){let re=!1;const ce=[];D.forEach((function(Te){Te.dynamic&&(re=!0),ce.push(Te.type)})),super(A,"tuple","tuple("+ce.join(",")+")",X,re),this.coders=D}encode(A){return kb(this.coders,A)}decode(A,D){const X=(function(re,ce,Te){const Ce=Te;let He=0;const xe=new v2;return re.forEach((function(Tr){let Vt;if(Tr.dynamic){const je=Wn.decode(ce,Te);Vt=Tr.decode(ce,Ce+je.value.toNumber()),Vt.consumed=je.consumed}else Vt=Tr.decode(ce,Te);Vt.value!==void 0&&xe.push(Vt.value),Te+=Vt.consumed,He+=Vt.consumed})),re.forEach((function(Tr,Vt){let je=Tr.localName;je&&(je==="length"&&(je="_length"),xe[je]!==null&&xe[je]!==void 0||(xe[je]=xe[Vt]))})),{value:xe,consumed:He}})(this.coders,A,D);return X.value=this.coerceFunc(this.type,X.value),X}}const b2={address:class extends Rn{constructor(v,A){super(v,"address","address",A,!1)}encode(v){const A=new Uint8Array(32),D=v.trim();if(!Rt(D))throw Z("invalid address format",ie,{arg:this.localName,coderType:"address",value:v});try{A.set(J(jr(D)),12)}catch(X){throw Z(`invalid address (${X.message})`,ie,{arg:this.localName,coderType:"address",value:v})}return A}decode(v,A){if(v.length<A+32)throw Z("insufficuent data for address type",ie,{arg:this.localName,coderType:"address",value:Ae(v.slice(A,A+32)),missingBytes:A+32-v.length});return{consumed:32,value:this.coerceFunc("address",Ht(Ae(v.slice(A+12,A+32))))}}},bool:class extends Rn{constructor(v,A){super(v,"bool","bool",A,!1)}encode(v){return Wn.encode(v?1:0)}decode(v,A){try{const D=Wn.decode(v,A);return{consumed:D.consumed,value:this.coerceFunc("bool",!D.value.isZero())}}catch(D){throw D.reason==="insufficient data for uint256 type"?Z("insufficient data for boolean type",ie,{arg:this.localName,coderType:"boolean",value:D.value}):D}}},string:class extends Rn{constructor(v,A){super(v,"string","string",A,!0)}encode(v){if(typeof v!="string")throw Z("invalid string value",ie,{arg:this.localName,coderType:"string",value:v});return Lb(H(v))}decode(v,A){const D=$b(v,A,this.localName);return D.value=this.coerceFunc("string",F(D.value)),D}},bytes:class extends Rn{constructor(v,A){super(v,"bytes","bytes",A,!0)}encode(v){try{return Lb(Ff(v))}catch(A){throw A("invalid bytes value",ie,{arg:this.localName,coderType:"bytes",value:A.value})}}decode(v,A){const D=$b(v,A,this.localName);return D.value=this.coerceFunc("bytes",D.value),D}},function:class extends Db{constructor(v,A){super(v,24,A)}}};function lu(v,A){const D=b2[A.type];if(D)return new D(v,A.name);let X=A.type.match(Mb);if(X){const re=parseInt(X[2]||"256");if(re===0||re>256||re%8!=0)throw Z("invalid "+X[1]+" bit length",ie,{arg:"param",value:A});return new jb(v,re/8,X[1]==="int",A.name)}if(X=A.type.match(h2),X){const re=parseInt(X[1]);if(re===0||re>32)throw Z("invalid bytes length",ie,{arg:"param",value:A});return new Db(v,re,A.name)}if(X=A.type.match(m2),X){const re=Object.assign({},A),ce=parseInt(X[2]||"-1");return re.type=X[1],new E2(v,lu(v,re),ce,A.name)}if(A.type.substring(0,5)==="tuple")return(function(re,ce,Te){ce||(ce=[]);const Ce=ce.map((He=>lu(re,He)));return new Hf(re,Ce,Te)})(v,A.components,A.name);if(A.type==="")return new _2(v,A.name);throw Z("invalid type",ie,{arg:"type",value:A.type,fullType:A})}class Vf{constructor(A){(function(D,X){if(!(D instanceof X))throw Z("missing new","MISSING_NEW",{name:X.name})})(this,Vf),A||(A=y2),Nb(this,"coerceFunc",A)}encode(A,D){if(A.length!==D.length)throw Z("types/values length mismatch",ie,{count:{types:A.length,values:D.length},value:{types:A,values:D}});const X=A.map((re=>typeof re=="string"?Cb(re):re)).map((re=>lu(this.coerceFunc,re)));return new Hf(this.coerceFunc,X,"_").encode(D)}decode(A,D){const X=A.map((re=>typeof re=="string"?Cb(re):re)).map((re=>lu(this.coerceFunc,re)));return new Hf(this.coerceFunc,X,"_").decode(D,0).value}}const qb=new Vf;var Bb,$e;function Be(v,A,D,X){var re,ce=arguments.length,Te=ce<3?A:X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Te=Reflect.decorate(v,A,D,X);else for(var Ce=v.length-1;Ce>=0;Ce--)(re=v[Ce])&&(Te=(ce<3?re(Te):ce>3?re(A,D,Te):re(A,D))||Te);return ce>3&&Te&&Object.defineProperty(A,D,Te),Te}function Ue(v,A){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(v,A)}r.coder=void 0,(Bb=r.coder||(r.coder={})).encodeParams=function(v,A){return K(qb.encode(v,A))},Bb.decodeParams=function(v,A){if(v.length>0&&(!A||A==="0x"||A==="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 qb.decode(v,J("0x"+A.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class Ge{constructor(A){this.callName=A.callName,this.params=A.params||0,this.inputFormatter=A.inputFormatter||null,this.outputFormatter=A.outputFormatter}validateArgs(A){if(A.length!==this.params)throw D=this.callName,X=A.length,re=this.params,new Error(`Invalid number of input parameters to RPC method "${D}" given: ${X}, expected: ${re}`);var D,X,re}formatInput(A){return this.inputFormatter?this.inputFormatter.map((function(D,X){return D?D(A[X]):A[X]})):A}formatOutput(A){return A!==null?this.outputFormatter(A):null}toPayload(A){const D=this.formatInput(A);return this.validateArgs(D),{method:this.callName,params:D}}async execute(A,...D){const X=this.toPayload(D);if(!A)throw new Error("Missing RequestManager in method#exec");const re=await A.sendAsync(X);return this.formatOutput(re)}}class Dr{constructor(A){this.getter=A.getter,this.outputFormatter=A.outputFormatter}formatOutput(A){return this.outputFormatter(A)}async execute(A,...D){const X=await A.sendAsync({method:this.getter,params:[]});return this.formatOutput(X)}}function Ub(v){return new Promise((A=>setTimeout(A,v)))}r.eth=void 0,($e=r.eth||(r.eth={})).eth_getBalance=new Ge({callName:"eth_getBalance",params:2,inputFormatter:[jr,it],outputFormatter:At}),$e.eth_getStorageAt=new Ge({callName:"eth_getStorageAt",params:3,inputFormatter:[jr,Ae,it],outputFormatter:ue}),$e.eth_getCode=new Ge({callName:"eth_getCode",params:2,inputFormatter:[jr,it],outputFormatter:ue}),$e.eth_getBlockByHash=new Ge({callName:"eth_getBlockByHash",params:2,inputFormatter:[rr,function(v){return!!v}],outputFormatter:yo}),$e.eth_getBlockByNumber=new Ge({callName:"eth_getBlockByNumber",params:2,inputFormatter:[rr,function(v){return!!v}],outputFormatter:yo}),$e.eth_getUncleByBlockHashAndIndex=new Ge({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[rr,Ae],outputFormatter:yo}),$e.eth_getUncleByBlockNumberAndIndex=new Ge({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[rr,Ae],outputFormatter:yo}),$e.eth_getBlockTransactionCountByHash=new Ge({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[rr],outputFormatter:we}),$e.eth_getBlockTransactionCountByNumber=new Ge({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[rr],outputFormatter:we}),$e.eth_getUncleCountByBlockHash=new Ge({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[rr],outputFormatter:we}),$e.eth_getUncleCountByBlockNumber=new Ge({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[rr],outputFormatter:we}),$e.eth_getTransactionByHash=new Ge({callName:"eth_getTransactionByHash",params:1,inputFormatter:[is],outputFormatter:mo}),$e.eth_getTransactionByBlockHashAndIndex=new Ge({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[rr,Ae],outputFormatter:mo}),$e.eth_getTransactionByBlockNumberAndIndex=new Ge({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[rr,Ae],outputFormatter:mo}),$e.eth_getTransactionReceipt=new Ge({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[is],outputFormatter:Rb}),$e.eth_getTransactionCount=new Ge({callName:"eth_getTransactionCount",params:2,inputFormatter:[jr,it],outputFormatter:we}),$e.eth_sendRawTransaction=new Ge({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:ue}),$e.web3_sha3=new Ge({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:ue}),$e.eth_sendTransaction=new Ge({callName:"eth_sendTransaction",params:1,inputFormatter:[Uf],outputFormatter:ue}),$e.eth_sign=new Ge({callName:"eth_sign",params:2,inputFormatter:[jr,null],outputFormatter:ue}),$e.eth_call=new Ge({callName:"eth_call",params:2,inputFormatter:[Bf,it],outputFormatter:ue}),$e.eth_estimateGas=new Ge({callName:"eth_estimateGas",params:1,inputFormatter:[Bf],outputFormatter:we}),$e.eth_submitWork=new Ge({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:pe}),$e.eth_getWork=new Ge({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:yt}),$e.eth_coinbase=new Dr({getter:"eth_coinbase",outputFormatter:Fr}),$e.eth_mining=new Dr({getter:"eth_mining",outputFormatter:pe}),$e.eth_hashrate=new Dr({getter:"eth_hashrate",outputFormatter:we}),$e.eth_syncing=new Dr({getter:"eth_syncing",outputFormatter:Ob}),$e.eth_gasPrice=new Dr({getter:"eth_gasPrice",outputFormatter:At}),$e.eth_accounts=new Dr({getter:"eth_accounts",outputFormatter:yt}),$e.eth_blockNumber=new Dr({getter:"eth_blockNumber",outputFormatter:we}),$e.eth_protocolVersion=new Dr({getter:"eth_protocolVersion",outputFormatter:we}),$e.web3_clientVersion=new Dr({getter:"web3_clientVersion",outputFormatter:ae}),$e.net_version=new Dr({getter:"net_version",outputFormatter:ae}),$e.shh_version=new Ge({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:we}),$e.shh_post=new Ge({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:pe}),$e.personal_newAccount=new Ge({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:Fr}),$e.personal_importRawKey=new Ge({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:Fr}),$e.personal_sign=new Ge({callName:"personal_sign",params:3,inputFormatter:[fe,jr,null],outputFormatter:ue}),$e.personal_ecRecover=new Ge({callName:"personal_ecRecover",params:2,inputFormatter:[fe,null],outputFormatter:Fr}),$e.personal_unlockAccount=new Ge({callName:"personal_unlockAccount",params:3,inputFormatter:[jr,null,Se],outputFormatter:pe}),$e.personal_sendTransaction=new Ge({callName:"personal_sendTransaction",params:2,inputFormatter:[Uf,null],outputFormatter:ue}),$e.personal_lockAccount=new Ge({callName:"personal_lockAccount",params:1,inputFormatter:[jr],outputFormatter:pe}),$e.personal_listAccounts=new Dr({getter:"personal_listAccounts",outputFormatter:yt}),$e.net_listening=new Dr({getter:"net_listening",outputFormatter:pe}),$e.net_peerCount=new Dr({getter:"net_peerCount",outputFormatter:we}),$e.eth_newFilter=new Ge({callName:"eth_newFilter",params:1,inputFormatter:[Ab],outputFormatter:Ae}),$e.eth_getLogs=new Ge({callName:"eth_getLogs",params:1,inputFormatter:[yt],outputFormatter:yt}),$e.eth_newBlockFilter=new Ge({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:Ae}),$e.eth_newPendingTransactionFilter=new Ge({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:Ae}),$e.eth_uninstallFilter=new Ge({callName:"eth_uninstallFilter",params:1,inputFormatter:[Ae],outputFormatter:pe}),$e.eth_getFilterLogs=new Ge({callName:"eth_getFilterLogs",params:1,inputFormatter:[Ae],outputFormatter:yt}),$e.eth_getFilterChanges=new Ge({callName:"eth_getFilterChanges",params:1,inputFormatter:[Ae],outputFormatter:yt}),$e.eth_submitHashrate=new Ge({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:pe}),$e.shh_newIdentity=new Ge({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:ue}),$e.shh_hasIdentity=new Ge({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:pe}),$e.shh_newGroup=new Ge({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:ue}),$e.shh_addToGroup=new Ge({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:pe}),$e.shh_newFilter=new Ge({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:Ae}),$e.shh_uninstallFilter=new Ge({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:pe}),$e.shh_getLogs=new Ge({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:yt}),$e.shh_getFilterMessages=new Ge({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:yt}),$e.shh_getFilterChanges=new Ge({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:yt}),$e.shh_getMessages=new Ge({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:yt});function Fe(v,A){const D=r.eth[A];if(!D)throw new Error(`Could not find the method/property named ${A.toString()}`);Object.defineProperty(v,A,{value:function(...X){return D.execute(this,...X)}})}class Le{constructor(A){this.provider=A,this.requests=new Map}async sendAsync(A){const D=await this.provider;if(!D)throw new Error("Provider not set or invalid");const X=Qe(A.method,A.params),re=s();return this.requests.set(X.id,re),D.sendAsync(X,((ce,Te)=>{this.requests.delete(X.id),ce?re.reject(ce):Lt(Te)?re.resolve(Te.result):re.reject((function(Ce){const He=Ce&&Ce.error&&Ce.error.message?Ce.error.message:"Invalid JSON RPC response: "+JSON.stringify(Ce);return new Error(He)})(Te))})),re}setProvider(A){this.provider=A}async getConfirmedTransaction(A){const D=await this.waitForCompletion(A);if(this.isFailure(D))throw new Error(`Transaction "${A}" failed`);return D}async waitForCompletion(A,D){const X=is(A);if(await this.isTxDropped(X,D)){const re=await this.getTransactionAndReceipt(X);return Object.assign(Object.assign({},re),{status:r.TransactionStatus.failed})}for(;;){const re=await this.getTransactionAndReceipt(X);if(!this.isPending(re)&&re.receipt)return Object.assign(Object.assign({},re),{status:this.isFailure(re)?r.TransactionStatus.failed:r.TransactionStatus.confirmed});await Ub(2e3)}}async getTransaction(A){let D,X=null;const re=is(A);try{const Te=(await this.eth_accounts())[0];Te&&(X=await this.eth_getTransactionCount(Te,"latest"))}catch{X=null}try{if(D=await this.eth_getTransactionByHash(re),D===null)return null}catch{return null}if(D.blockNumber===null){if(X!==null){if(D.nonce<X)return{hash:re,type:r.TransactionType.replaced,nonce:D.nonce};if(D.nonce>X)return{hash:re,type:r.TransactionType.queued,nonce:D.nonce}}return Object.assign({type:r.TransactionType.pending},D)}let ce;try{if(ce=await this.eth_getTransactionReceipt(re),ce===null||ce.status===0)return Object.assign({type:r.TransactionType.reverted},D)}catch{return null}return Object.assign(Object.assign({type:r.TransactionType.confirmed},D),{receipt:ce})}async isTxDropped(A,D=15){let X=D;for(;X>0;){if(await this.getTransactionAndReceipt(A)!==null)return!1;X-=1,await Ub(2e3)}return!0}async getTransactionAndReceipt(A){A=is(A);const[D,X]=await Promise.all([this.eth_getTransactionByHash(A),this.eth_getTransactionReceipt(A)]);return Object.assign(Object.assign({},D),{receipt:X})}isPending(A){return A&&A.blockNumber===null}isFailure(A){return A&&(!A.receipt||A.receipt.status===0)}}Be([Fe,Ue("design:type",Function)],Le.prototype,"web3_clientVersion",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"web3_sha3",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"net_version",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"net_peerCount",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"net_listening",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_protocolVersion",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_syncing",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_coinbase",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_mining",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_hashrate",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_gasPrice",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_accounts",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_blockNumber",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getBalance",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getStorageAt",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getTransactionCount",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getBlockTransactionCountByHash",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getBlockTransactionCountByNumber",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getUncleCountByBlockHash",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getUncleCountByBlockNumber",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getCode",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_sign",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_sendTransaction",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_sendRawTransaction",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_call",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_estimateGas",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getBlockByHash",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getBlockByNumber",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getTransactionByHash",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getTransactionReceipt",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getUncleByBlockHashAndIndex",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_newFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_newBlockFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_newPendingTransactionFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_uninstallFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getFilterChanges",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getFilterLogs",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getLogs",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_getWork",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_submitWork",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"eth_submitHashrate",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_post",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_version",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_newIdentity",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_hasIdentity",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_newGroup",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_addToGroup",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_newFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_uninstallFilter",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_getFilterChanges",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"shh_getMessages",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_unlockAccount",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_newAccount",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_listAccounts",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_lockAccount",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_importRawKey",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_sendTransaction",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_sign",void 0),Be([Fe,Ue("design:type",Function)],Le.prototype,"personal_ecRecover",void 0);class Fb{constructor(A){this.json=A,this._inputTypes=A.inputs||[],this._outputTypes=A.outputs||[],this._constant=!!A.constant,this._payable=!!A.payable||A.stateMutability==="payable",this.needsToBeTransaction=this._payable||"constant"in A&&!A.constant||A.stateMutability==="nonpayable",this._name=C(A)}extractDefaultBlock(A){return A.length>this._inputTypes.length&&!O(A[A.length-1])&&it(A.pop())||"latest"}validateArgs(A){if(A.some((ce=>ce===void 0)))throw new Error("Invalid call, some arguments are undefined");const D=A.filter((function(ce){return!(O(ce)===!0&&de(ce)===!1&&L(ce)===!1&&!(ce instanceof Uint8Array))}));if(D.length!==this._inputTypes.length)throw X=D.length,re=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${X}, expected: ${re}`);var X,re}toPayload(A){let D={to:void 0,data:void 0,value:void 0,from:void 0};A.length>this._inputTypes.length&&O(A[A.length-1])&&(D=A.pop()),this.validateArgs(A);const X=this.signature();let re=r.coder.encodeParams(this._inputTypes,A);return re.indexOf("0x")===0&&(re=re.substr(2)),D.data="0x"+X+re,D}signature(){return q(this._name).slice(0,8)}unpackOutput(A){if(!A)return;const D=A.length>=2?A.slice(2):A,X=r.coder.decodeParams(this._outputTypes,D);return X.length===1?X[0]:X}async execute(A,D,...X){if(!A)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const re=this.toPayload(X);if(re.to=D,re.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!re.from)throw new Error('Missing "from" in transaction options');return await A.eth_sendTransaction(re)}{const re=this.extractDefaultBlock(X),ce=this.toPayload(X);ce.to=D;const Te=await A.eth_call(ce,re);return this.unpackOutput(Te)}}estimateGas(A,D,...X){if(!(A instanceof Le))throw new Error("estimateGas needs to receive a RequestManager as first argument");const re=this.toPayload(X);return re.to=D,A.eth_estimateGas(re)}displayName(){return Ee(this._name)}typeName(){return me(this._name)||"void"}attachToContract(A){const D=this.displayName(),X=Object.assign(((...re)=>this.execute(A.requestManager,A.address,...re)),{estimateGas:this.estimateGas.bind(this,A.requestManager,A.address),toPayload:(...re)=>this.toPayload(re),toRPCMessage:(...re)=>{const ce=this.extractDefaultBlock(re),Te=this.toPayload(re);return Te.to=A.address,{method:"eth_call",params:[Te,ce]}},unpackOutput:re=>this.unpackOutput(re)});A[D]||(A[D]=X),A[D][this.typeName()]=X}}function Hb(v){if(v==null)return null;const A=String(v).toString();return A.indexOf("0x")===0?A:K(H(A))}class xf{constructor(A){this.requestManager=A,this.isStarted=!1,this.isDisposed=!1,this.formatter=D=>D,this.filterId=s(),this.callbacks=[],this.stopSemaphore=s()}async watch(A){if(this.isDisposed)throw new Error("The filter was disposed");A&&(this.callbacks.push(A),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 A=await this.getNewFilter();if(!A)throw new Error("Could not create a filter, response: "+JSON.stringify(A));this.filterId.resolve(A)}catch(A){throw A}this.stopSemaphore=s(),await this.poll()}}async stop(){if(!this.isStarted||this.isDisposed)return;this.isDisposed=!0;const A=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: ${A}`)}async poll(){if(this.isStarted){if(this.callbacks.length){const D=await this.getChanges();D&&this.callbacks.forEach((X=>{this.formatter?D.forEach((re=>{X(this.formatter(re))})):D.forEach((re=>X(re)))}))}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=s(),setTimeout((A=()=>this.poll(),function(){A().catch((D=>console.error(D)))}),500))}else this.stopSemaphore.resolve(1);var A}}class _o extends xf{constructor(A,D,X=(re=>re)){super(A),this.requestManager=A,this.options=D,this.formatter=X,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(re){return Hb(re)})),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"?rr(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?rr(this.options.toBlock)||void 0:"latest"}}async getLogs(){this.isStarted||await this.start();const A=await this.filterId;return this.requestManager.eth_getFilterLogs(A)}async getNewFilter(){return this.requestManager.eth_newFilter(this.options)}async getChanges(){const A=await this.filterId;return this.requestManager.eth_getFilterChanges(A)}async uninstall(){const A=await this.filterId;return this.requestManager.eth_uninstallFilter(A)}}class Gf{constructor(A,D,X){this.requestManager=A,this.address=X,this._anonymous=!1,this._params=D.inputs||[],this._name=C(D),this._anonymous=D.anonymous||!1}types(A){return this._params.filter((function(D){return D.indexed===A}))}displayName(){return Ee(this._name)}typeName(){return me(this._name)||"void"}signature(){return q(this._name)}encode(A={},D={}){const X={topics:[],address:this.address};D.fromBlock!==void 0&&(X.fromBlock=rr(D.fromBlock)||void 0),D.toBlock!==void 0&&(X.toBlock=rr(D.toBlock)||void 0),X.topics=X.topics||[],this._anonymous||X.topics.push("0x"+this.signature());const re=this._params.filter((function(ce){return ce.indexed===!0})).map((function(ce){const Te=A[ce.name];return Te==null?null:de(Te)?Te.map((function(Ce){return"0x"+r.coder.encodeParams([ce],[Ce])})):"0x"+r.coder.encodeParams([ce],[Te])}));return X.topics=X.topics.concat(re),X}decode(A){A.data=A.data||"",A.topics=A.topics||[];const D=(this._anonymous?A.topics:A.topics.slice(1)).map((function(Ce){return Ce.slice(2)})).join(""),X=r.coder.decodeParams(this.types(!0),D),re=A.data.slice(2),ce=r.coder.decodeParams(this.types(!1),re),Te=this._params.reduce((function(Ce,He){return Ce[He.name]=He.indexed?X.shift():ce.shift(),Ce}),{});return Object.assign(Object.assign({},ou(A)),{event:this.displayName(),address:A.address,args:Te})}async execute(A,D){const X=this.encode(A,D),re=this.decode.bind(this);return new _o(this.requestManager,X,re)}attachToContract(A){const D=this.execute.bind(this),X=this.displayName();A.events[X]||(A.events[X]=D),A.events[X][this.typeName()]=this.execute.bind(this,A)}}class S2{constructor(A,D,X){this._requestManager=A,this._json=D,this._address=X}encode(A={}){const D={address:this._address};return A.fromBlock!==void 0&&(D.fromBlock=rr(A.fromBlock)||void 0),A.toBlock!==void 0&&(D.toBlock=rr(A.toBlock)||void 0),D}decode(A){A.data=A.data||"";const D=de(A.topics)&&w(A.topics[0])?A.topics[0].slice(2):"",X=this._json.filter((function(re){return D===q(C(re))}))[0];return X?new Gf(this._requestManager,X,this._address).decode(A):ou(A)}async execute(A){const D=this.encode(A),X=this.decode.bind(this);return new _o(this._requestManager,D,X)}getAllEventsFunction(){return this.execute.bind(this)}}class Vb{constructor(A,D,X){var re;this.requestManager=A,this.abi=D,this.address=X,this.events={},this.transactionHash=null,this.address=X,this.abi=D,(re=this).abi.filter((function(ce){return ce.type==="function"})).map((function(ce){return new Fb(ce)})).forEach((function(ce){ce.attachToContract(re)})),this.allEvents=(function(ce){const Te=ce.abi.filter((function(He){return He.type==="event"})),Ce=new S2(ce.requestManager,Te,ce.address);return Te.map((function(He){return new Gf(ce.requestManager,He,ce.address)})).forEach((function(He){He.attachToContract(ce)})),Ce.getAllEventsFunction()})(this)}}r.AbstractFilter=xf,r.BigNumber=B,r.Contract=Vb,r.ContractFactory=class{constructor(v,A){this.requestManager=v,this.abi=A}async deploy(...v){let A;const D=v[v.length-1];if(O(D)&&!de(D)&&(A=v.pop()),!A)throw new Error("Missing options object");if(!A.data||typeof A.data!="string")throw new Error("Invalid options.data");if(we(A.value)>0&&!(this.abi.filter((function(xe){return xe.type==="constructor"&&xe.inputs.length===v.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const X=(re=this.abi,ce=v,re.filter((function(xe){return xe.type==="constructor"&&xe.inputs&&xe.inputs.length===ce.length})).map((function(xe){return xe.inputs||[]})).map((function(xe){return r.coder.encodeParams(xe,ce)}))[0]||"");var re,ce;A.data+=X,A.gas||(A.gas=await this.requestManager.eth_estimateGas(A));const Te=await this.requestManager.eth_sendTransaction(A);if(!Te)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const Ce=await(async function(xe,Tr){const Vt=s();let je=0;const sr=()=>{je++,je>50?Vt.reject(new Error("Contract transaction couldn't be found after 50 blocks")):xe.eth_getTransactionReceipt(Tr).then((gr=>{gr&&gr.blockHash?Vt.resolve(gr):setTimeout(sr,1e3)}),(gr=>Vt.reject(gr)))};sr();const Pt=await Vt,Ct=await xe.eth_getCode(Pt.contractAddress,"latest");if(Ct&&Ct.length>3)return Pt.contractAddress;throw Object.assign(new Error("The contract code couldn't be stored, please check your gas amount."),{response:Ct,receipt:Pt})})(this.requestManager,Te),He=await this.at(Ce);return He.transactionHash=Te,He}async at(v){if(!Rt(v))throw new TypeError(`Invalid address ${JSON.stringify(v)}`);return new Vb(this.requestManager,this.abi,v)}},r.EthBlockFilter=class extends _o{constructor(v){super(v,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},r.EthFilter=_o,r.EthPendingTransactionFilter=class extends _o{constructor(v){super(v,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},r.HTTPProvider=class{constructor(v,A={}){this.host=v,this.options=A,this.debug=!1,this.host=v||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(v,A){try{let D=null;D=v instanceof Array?v.map((ce=>n(ce))):n(v);const X=this.options.fetch||globalThis.fetch;if(X===void 0)throw new Error("There is no global fetch object nor it was provided. Please install and import isomorphic-fetch");const re={body:JSON.stringify(D),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+re.body),X(this.host,re).then((async ce=>{if(ce.ok){const Te=await ce.json();this.debug&&console.log("RECV << "+JSON.stringify(Te)),Te.error?A(Object.assign(new Error(Te.error.json||Te.error),Te.error)):A(null,Te)}else{const Te=(typeof ce.text=="function"?await ce.text().catch((()=>"")):"").trim().slice(0,512),Ce="External error. response code: "+ce.status+(Te?" — "+Te:"");this.debug&&console.log("ERR << "+Ce),A(new Error(Ce))}}),(ce=>{this.debug&&console.log("ERR << "+JSON.stringify(ce)),A(ce)}))}catch(D){this.debug&&console.log("ERR << "+JSON.stringify(D)),A(D)}}},r.Method=Ge,r.Property=Dr,r.RequestManager=Le,r.SHHFilter=class extends xf{constructor(v,A){super(v),this.requestManager=v,this.options=A,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(D){return Hb(D)})),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const v=await this.filterId;return this.requestManager.shh_getMessages(v)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const v=await this.filterId;return this.requestManager.shh_getFilterChanges(v)}async uninstall(){const v=await this.filterId;return this.requestManager.shh_uninstallFilter(v)}},r.SolidityEvent=Gf,r.SolidityFunction=Fb,r.WebSocketProvider=class{constructor(v,A={}){this.url=v,this.options=A,this.isDisposed=!1,this.responseCallbacks=new Map,this.notificationCallbacks=new Set,this.debug=!1,this.lastChunk="",this.connect()}dispose(){this.isDisposed=!0;const v=this.connection;this.timeout(new Error("Provider disposed.")),v.then((A=>A.close())).catch((A=>{this.debug&&console.error(A)}))}send(){throw new Error("Sync requests are deprecated")}sendAsync(v,A){const D=[];let X;if(v instanceof Array)X=Promise.all(v.map((re=>{const ce=s();try{const Te=n(re);D.push(Te),this.responseCallbacks.set(Te.id,ce)}catch(Te){ce.reject(Te)}return ce})));else{const re=s();try{const ce=n(v);D.push(ce),this.responseCallbacks.set(ce.id,re)}catch(ce){re.reject(ce)}X=re}X.then((re=>A(null,re)),(re=>A(re))),this.connection.then((re=>{D.forEach((ce=>{const Te=JSON.stringify(ce);this.debug&&console.log("SEND >> "+Te),re.send(Te)}))}),(re=>{A(re)}))}parseResponse(v){const A=[];return v.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((D=>{let X=D;this.lastChunk&&(X=this.lastChunk+X);let re=null;try{re=JSON.parse(X)}catch{return this.lastChunk=X,clearTimeout(this.lastChunkTimeout),void(this.lastChunkTimeout=setTimeout((()=>{this.timeout()}),15e3))}clearTimeout(this.lastChunkTimeout),this.lastChunk="",re&&A.push(re)})),A}processMessage(v){if("id"in v){const A=v.id,D=this.responseCallbacks.get(A);if(!D)return void console.error("Error: Received a response for an unknown request",v);this.responseCallbacks.delete(A),v.error!==void 0&&v.error!==null?D.reject(Object.assign(new Error(v.error.message||v.error),v.error)):"result"in v&&D.resolve(v)}else this.notificationCallbacks.forEach((A=>A(null,v)))}timeout(v){this.connection&&this.connection.isPending||(this.connection=s());const A=v||new Error("Connection timeout");this.responseCallbacks.forEach((D=>D.reject(A))),this.responseCallbacks.clear(),this.isDisposed||setTimeout((()=>this.connect()),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then((D=>D.close())).catch((D=>{this.debug&&console.error(D)})),this.connection&&this.connection.isPending||(this.connection=s()),this.lastChunk="";const v=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!v)throw new Error("Please provide a WebSocketConstructor");const A=new v(this.url,this.options.protocol);A.onopen=()=>{this.connection.resolve(A)},A.onerror=D=>{const X=new Error("Error in web socket");X.data=D,this.timeout(X)},A.onclose=D=>{this.timeout(new Error(`Connection closed (${D&&D.reason||"Unknown reason"})`))},A.onmessage=D=>{const X=typeof D.data=="string"?D.data:"";this.debug&&console.log("RECV << "+D.data),this.parseResponse(X).forEach((re=>{re instanceof Array?re.forEach((ce=>this.processMessage(ce))):this.processMessage(re)}))}}},r.bytesToHex=K,r.bytesToUtf8String=F,r.concatBytes=k,r.default=Le,r.extractDisplayName=Ee,r.extractTypeName=me,r.fromAscii=function(v,A=0){let D="";for(let X=0;X<v.length;X++){const re=v.charCodeAt(X).toString(16);D+=re.length<2?"0"+re:re}return"0x"+D.padEnd(A,"0")},r.fromDecimal=be,r.fromTwosComplement=It,r.fromWei=function(v,A){const D=We(v).dividedBy(qe(A));return L(v)?D:D.toString(10)},r.getAddress=Ht,r.getValueOfUnit=qe,r.hexToBytes=J,r.inputAddressFormatter=jr,r.inputBlockNumberFormatter=rr,r.inputCallFormatter=Bf,r.inputDefaultBlockNumberFormatter=it,r.inputFilterOptions=Ab,r.inputPostFormatter=function(v){return v?(v.ttl=be(v.ttl),v.workToProve=be(v.workToProve),v.priority=be(v.priority),de(v.topics)||(v.topics=v.topics?[v.topics]:[]),v.topics=v.topics.map((function(A){return A.indexOf("0x")===0?A:"0x"+K(H(A))})),v):null},r.inputTransactionFormatter=Uf,r.inputTransactionId=is,r.isAddress=Rt,r.isArray=de,r.isBigNumber=L,r.isBloom=function(v){return!!/^(0x)?[0-9a-f]{512}$/i.test(v)&&!!/^(0x)?[0-9a-f]{512}$/i.test(v)},r.isBoolean=Y,r.isChecksumAddress=mr,r.isFunction=function(v){return typeof v=="function"},r.isHex=function(v){return typeof v=="string"&&/^0x[0-9a-fA-F]+$/.test(v)},r.isJson=function(v){try{return!!JSON.parse(v)}catch{return!1}},r.isObject=O,r.isPredefinedBlockNumber=$t,r.isStrictAddress=tr,r.isString=w,r.isTopic=function(v){return!!/^(0x)?[0-9a-f]{64}$/i.test(v)&&!!/^(0x)?[0-9a-f]{64}$/i.test(v)},r.isValidResponse=Lt,r.outputBigNumberFormatter=At,r.outputBlockFormatter=yo,r.outputLogFormatter=ou,r.outputPostFormatter=function(v){return v?(v.expiry=we(v.expiry),v.sent=we(v.sent),v.ttl=we(v.ttl),v.workProved=we(v.workProved),v.topics||(v.topics=[]),v.topics=v.topics.map((function(A){return W(A)})),v):null},r.outputSyncingFormatter=Ob,r.outputTransactionFormatter=mo,r.outputTransactionReceiptFormatter=Rb,r.padLeft=U,r.padRight=function(v,A,D){return v+new Array(A-v.length+1).join(D||"0")},r.sha3=q,r.signedIsNegative=ut,r.stringToUtf8Bytes=H,r.toAddress=Fr,r.toArray=yt,r.toAscii=W,r.toBatchPayload=function(v){return v.map((function(A){return Qe(A.method,A.params)}))},r.toBigNumber=We,r.toBoolean=pe,r.toChecksumAddress=yr,r.toData=ue,r.toDecimal=we,r.toHex=Ae,r.toJsonRpcRequest=Qe,r.toNullDecimal=Se,r.toString=ae,r.toStringData=fe,r.toTwosComplement=Xe,r.toWei=function(v,A){const D=We(v).times(qe(A));return L(v)?D:D.toString(10)},r.transformToFullName=C,Object.defineProperty(r,"__esModule",{value:!0})}))})(fc,fc.exports)),fc.exports}var id={},eR;function j5(){if(eR)return id;eR=1,Object.defineProperty(id,"__esModule",{value:!0}),id.SignatureValidator=t;const e=ff();async function t(r,n){const i=[{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,i).at(n)}return id}var Mn={},bm={},Sm={},aa={},ti={},nr={},tR;function HE(){if(tR)return nr;tR=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.output=nr.exists=nr.hash=nr.bytes=nr.bool=nr.number=nr.isBytes=void 0;function e(c){if(!Number.isSafeInteger(c)||c<0)throw new Error(`positive integer expected, not ${c}`)}nr.number=e;function t(c){if(typeof c!="boolean")throw new Error(`boolean expected, not ${c}`)}nr.bool=t;function r(c){return c instanceof Uint8Array||c!=null&&typeof c=="object"&&c.constructor.name==="Uint8Array"}nr.isBytes=r;function n(c,...u){if(!r(c))throw new Error("Uint8Array expected");if(u.length>0&&!u.includes(c.length))throw new Error(`Uint8Array expected of length ${u}, not of length=${c.length}`)}nr.bytes=n;function i(c){if(typeof c!="function"||typeof c.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");e(c.outputLen),e(c.blockLen)}nr.hash=i;function a(c,u=!0){if(c.destroyed)throw new Error("Hash instance has been destroyed");if(u&&c.finished)throw new Error("Hash#digest() has already been called")}nr.exists=a;function s(c,u){n(c);const l=u.outputLen;if(c.length<l)throw new Error(`digestInto() expects output buffer of length at least ${l}`)}nr.output=s;const o={number:e,bool:t,bytes:n,hash:i,exists:a,output:s};return nr.default=o,nr}var Tm={},No={},rR;function D5(){return rR||(rR=1,Object.defineProperty(No,"__esModule",{value:!0}),No.crypto=void 0,No.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),No}var nR;function Jc(){return nR||(nR=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=D5(),r=HE();function n(V){return V instanceof Uint8Array||V!=null&&typeof V=="object"&&V.constructor.name==="Uint8Array"}e.isBytes=n;const i=V=>new Uint8Array(V.buffer,V.byteOffset,V.byteLength);e.u8=i;const a=V=>new Uint32Array(V.buffer,V.byteOffset,Math.floor(V.byteLength/4));e.u32=a;const s=V=>new DataView(V.buffer,V.byteOffset,V.byteLength);e.createView=s;const o=(V,H)=>V<<32-H|V>>>H;e.rotr=o;const c=(V,H)=>V<<H|V>>>32-H>>>0;e.rotl=c,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const u=V=>V<<24&4278190080|V<<8&16711680|V>>>8&65280|V>>>24&255;e.byteSwap=u,e.byteSwapIfBE=e.isLE?V=>V:V=>(0,e.byteSwap)(V);function l(V){for(let H=0;H<V.length;H++)V[H]=(0,e.byteSwap)(V[H])}e.byteSwap32=l;const d=Array.from({length:256},(V,H)=>H.toString(16).padStart(2,"0"));function f(V){(0,r.bytes)(V);let H="";for(let F=0;F<V.length;F++)H+=d[V[F]];return H}e.bytesToHex=f;const p={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function g(V){if(V>=p._0&&V<=p._9)return V-p._0;if(V>=p._A&&V<=p._F)return V-(p._A-10);if(V>=p._a&&V<=p._f)return V-(p._a-10)}function y(V){if(typeof V!="string")throw new Error("hex string expected, got "+typeof V);const H=V.length,F=H/2;if(H%2)throw new Error("padded hex string expected, got unpadded hex of length "+H);const te=new Uint8Array(F);for(let ie=0,Z=0;ie<F;ie++,Z+=2){const J=g(V.charCodeAt(Z)),K=g(V.charCodeAt(Z+1));if(J===void 0||K===void 0){const q=V[Z]+V[Z+1];throw new Error('hex string expected, got non-hex character "'+q+'" at index '+Z)}te[ie]=J*16+K}return te}e.hexToBytes=y;const _=async()=>{};e.nextTick=_;async function R(V,H,F){let te=Date.now();for(let ie=0;ie<V;ie++){F(ie);const Z=Date.now()-te;Z>=0&&Z<H||(await(0,e.nextTick)(),te+=Z)}}e.asyncLoop=R;function h(V){if(typeof V!="string")throw new Error(`utf8ToBytes expected string, got ${typeof V}`);return new Uint8Array(new TextEncoder().encode(V))}e.utf8ToBytes=h;function T(V){return typeof V=="string"&&(V=h(V)),(0,r.bytes)(V),V}e.toBytes=T;function I(...V){let H=0;for(let te=0;te<V.length;te++){const ie=V[te];(0,r.bytes)(ie),H+=ie.length}const F=new Uint8Array(H);for(let te=0,ie=0;te<V.length;te++){const Z=V[te];F.set(Z,ie),ie+=Z.length}return F}e.concatBytes=I;class m{clone(){return this._cloneInto()}}e.Hash=m;const E={}.toString;function b(V,H){if(H!==void 0&&E.call(H)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(V,H)}e.checkOpts=b;function N(V){const H=te=>V().update(T(te)).digest(),F=V();return H.outputLen=F.outputLen,H.blockLen=F.blockLen,H.create=()=>V(),H}e.wrapConstructor=N;function j(V){const H=(te,ie)=>V(ie).update(T(te)).digest(),F=V({});return H.outputLen=F.outputLen,H.blockLen=F.blockLen,H.create=te=>V(te),H}e.wrapConstructorWithOpts=j;function $(V){const H=(te,ie)=>V(ie).update(T(te)).digest(),F=V({});return H.outputLen=F.outputLen,H.blockLen=F.blockLen,H.create=te=>V(te),H}e.wrapXOFConstructorWithOpts=$;function B(V=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(V));throw new Error("crypto.getRandomValues must be defined")}e.randomBytes=B})(Tm)),Tm}var iR;function L5(){if(iR)return ti;iR=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.HashMD=ti.Maj=ti.Chi=void 0;const e=HE(),t=Jc();function r(s,o,c,u){if(typeof s.setBigUint64=="function")return s.setBigUint64(o,c,u);const l=BigInt(32),d=BigInt(4294967295),f=Number(c>>l&d),p=Number(c&d),g=u?4:0,y=u?0:4;s.setUint32(o+g,f,u),s.setUint32(o+y,p,u)}const n=(s,o,c)=>s&o^~s&c;ti.Chi=n;const i=(s,o,c)=>s&o^s&c^o&c;ti.Maj=i;class a extends t.Hash{constructor(o,c,u,l){super(),this.blockLen=o,this.outputLen=c,this.padOffset=u,this.isLE=l,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=(0,t.createView)(this.buffer)}update(o){(0,e.exists)(this);const{view:c,buffer:u,blockLen:l}=this;o=(0,t.toBytes)(o);const d=o.length;for(let f=0;f<d;){const p=Math.min(l-this.pos,d-f);if(p===l){const g=(0,t.createView)(o);for(;l<=d-f;f+=l)this.process(g,f);continue}u.set(o.subarray(f,f+p),this.pos),this.pos+=p,f+=p,this.pos===l&&(this.process(c,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){(0,e.exists)(this),(0,e.output)(o,this),this.finished=!0;const{buffer:c,view:u,blockLen:l,isLE:d}=this;let{pos:f}=this;c[f++]=128,this.buffer.subarray(f).fill(0),this.padOffset>l-f&&(this.process(u,0),f=0);for(let R=f;R<l;R++)c[R]=0;r(u,l-8,BigInt(this.length*8),d),this.process(u,0);const p=(0,t.createView)(o),g=this.outputLen;if(g%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const y=g/4,_=this.get();if(y>_.length)throw new Error("_sha2: outputLen bigger than state");for(let R=0;R<y;R++)p.setUint32(4*R,_[R],d)}digest(){const{buffer:o,outputLen:c}=this;this.digestInto(o);const u=o.slice(0,c);return this.destroy(),u}_cloneInto(o){o||(o=new this.constructor),o.set(...this.get());const{blockLen:c,buffer:u,length:l,finished:d,destroyed:f,pos:p}=this;return o.length=l,o.pos=p,o.finished=d,o.destroyed=f,l%c&&o.buffer.set(u),o}}return ti.HashMD=a,ti}var aR;function $5(){if(aR)return aa;aR=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.sha224=aa.sha256=void 0;const e=L5(),t=Jc(),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]),i=new Uint32Array(64);class a 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:c,B:u,C:l,D:d,E:f,F:p,G:g,H:y}=this;return[c,u,l,d,f,p,g,y]}set(c,u,l,d,f,p,g,y){this.A=c|0,this.B=u|0,this.C=l|0,this.D=d|0,this.E=f|0,this.F=p|0,this.G=g|0,this.H=y|0}process(c,u){for(let h=0;h<16;h++,u+=4)i[h]=c.getUint32(u,!1);for(let h=16;h<64;h++){const T=i[h-15],I=i[h-2],m=(0,t.rotr)(T,7)^(0,t.rotr)(T,18)^T>>>3,E=(0,t.rotr)(I,17)^(0,t.rotr)(I,19)^I>>>10;i[h]=E+i[h-7]+m+i[h-16]|0}let{A:l,B:d,C:f,D:p,E:g,F:y,G:_,H:R}=this;for(let h=0;h<64;h++){const T=(0,t.rotr)(g,6)^(0,t.rotr)(g,11)^(0,t.rotr)(g,25),I=R+T+(0,e.Chi)(g,y,_)+r[h]+i[h]|0,E=((0,t.rotr)(l,2)^(0,t.rotr)(l,13)^(0,t.rotr)(l,22))+(0,e.Maj)(l,d,f)|0;R=_,_=y,y=g,g=p+I|0,p=f,f=d,d=l,l=I+E|0}l=l+this.A|0,d=d+this.B|0,f=f+this.C|0,p=p+this.D|0,g=g+this.E|0,y=y+this.F|0,_=_+this.G|0,R=R+this.H|0,this.set(l,d,f,p,g,y,_,R)}roundClean(){i.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class s extends a{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 aa.sha256=(0,t.wrapConstructor)(()=>new a),aa.sha224=(0,t.wrapConstructor)(()=>new s),aa}var Po={},wm={},sR;function k5(){return sR||(sR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=HE(),r=Jc();class n extends r.Hash{constructor(s,o){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(s);const c=(0,r.toBytes)(o);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 u=this.blockLen,l=new Uint8Array(u);l.set(c.length>u?s.create().update(c).digest():c);for(let d=0;d<l.length;d++)l[d]^=54;this.iHash.update(l),this.oHash=s.create();for(let d=0;d<l.length;d++)l[d]^=106;this.oHash.update(l),l.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:o,iHash:c,finished:u,destroyed:l,blockLen:d,outputLen:f}=this;return s=s,s.finished=u,s.destroyed=l,s.blockLen=d,s.outputLen=f,s.oHash=o._cloneInto(s.oHash),s.iHash=c._cloneInto(s.iHash),s}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=n;const i=(a,s,o)=>new n(a,s).update(o).digest();e.hmac=i,e.hmac.create=(a,s)=>new n(a,s)})(wm)),wm}var Im={},Co={},Ut={},kt={},oR;function Ks(){if(oR)return kt;oR=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.bitMask=void 0,kt.isBytes=n,kt.abytes=i,kt.bytesToHex=s,kt.numberToHexUnpadded=o,kt.hexToNumber=c,kt.hexToBytes=d,kt.bytesToNumberBE=f,kt.bytesToNumberLE=p,kt.numberToBytesBE=g,kt.numberToBytesLE=y,kt.numberToVarBytesBE=_,kt.ensureBytes=R,kt.concatBytes=h,kt.equalBytes=T,kt.utf8ToBytes=I,kt.bitLen=m,kt.bitGet=E,kt.bitSet=b,kt.createHmacDrbg=B,kt.validateObject=H;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=BigInt(0),t=BigInt(1),r=BigInt(2);function n(F){return F instanceof Uint8Array||F!=null&&typeof F=="object"&&F.constructor.name==="Uint8Array"}function i(F){if(!n(F))throw new Error("Uint8Array expected")}const a=Array.from({length:256},(F,te)=>te.toString(16).padStart(2,"0"));function s(F){i(F);let te="";for(let ie=0;ie<F.length;ie++)te+=a[F[ie]];return te}function o(F){const te=F.toString(16);return te.length&1?`0${te}`:te}function c(F){if(typeof F!="string")throw new Error("hex string expected, got "+typeof F);return BigInt(F===""?"0":`0x${F}`)}const u={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function l(F){if(F>=u._0&&F<=u._9)return F-u._0;if(F>=u._A&&F<=u._F)return F-(u._A-10);if(F>=u._a&&F<=u._f)return F-(u._a-10)}function d(F){if(typeof F!="string")throw new Error("hex string expected, got "+typeof F);const te=F.length,ie=te/2;if(te%2)throw new Error("padded hex string expected, got unpadded hex of length "+te);const Z=new Uint8Array(ie);for(let J=0,K=0;J<ie;J++,K+=2){const q=l(F.charCodeAt(K)),M=l(F.charCodeAt(K+1));if(q===void 0||M===void 0){const U=F[K]+F[K+1];throw new Error('hex string expected, got non-hex character "'+U+'" at index '+K)}Z[J]=q*16+M}return Z}function f(F){return c(s(F))}function p(F){return i(F),c(s(Uint8Array.from(F).reverse()))}function g(F,te){return d(F.toString(16).padStart(te*2,"0"))}function y(F,te){return g(F,te).reverse()}function _(F){return d(o(F))}function R(F,te,ie){let Z;if(typeof te=="string")try{Z=d(te)}catch(K){throw new Error(`${F} must be valid hex string, got "${te}". Cause: ${K}`)}else if(n(te))Z=Uint8Array.from(te);else throw new Error(`${F} must be hex string or Uint8Array`);const J=Z.length;if(typeof ie=="number"&&J!==ie)throw new Error(`${F} expected ${ie} bytes, got ${J}`);return Z}function h(...F){let te=0;for(let Z=0;Z<F.length;Z++){const J=F[Z];i(J),te+=J.length}const ie=new Uint8Array(te);for(let Z=0,J=0;Z<F.length;Z++){const K=F[Z];ie.set(K,J),J+=K.length}return ie}function T(F,te){if(F.length!==te.length)return!1;let ie=0;for(let Z=0;Z<F.length;Z++)ie|=F[Z]^te[Z];return ie===0}function I(F){if(typeof F!="string")throw new Error(`utf8ToBytes expected string, got ${typeof F}`);return new Uint8Array(new TextEncoder().encode(F))}function m(F){let te;for(te=0;F>e;F>>=t,te+=1);return te}function E(F,te){return F>>BigInt(te)&t}function b(F,te,ie){return F|(ie?t:e)<<BigInt(te)}const N=F=>(r<<BigInt(F-1))-t;kt.bitMask=N;const j=F=>new Uint8Array(F),$=F=>Uint8Array.from(F);function B(F,te,ie){if(typeof F!="number"||F<2)throw new Error("hashLen must be a number");if(typeof te!="number"||te<2)throw new Error("qByteLen must be a number");if(typeof ie!="function")throw new Error("hmacFn must be a function");let Z=j(F),J=j(F),K=0;const q=()=>{Z.fill(1),J.fill(0),K=0},M=(...k)=>ie(J,Z,...k),U=(k=j())=>{J=M($([0]),k),Z=M(),k.length!==0&&(J=M($([1]),k),Z=M())},W=()=>{if(K++>=1e3)throw new Error("drbg: tried 1000 values");let k=0;const ee=[];for(;k<te;){Z=M();const Ee=Z.slice();ee.push(Ee),k+=Z.length}return h(...ee)};return(k,ee)=>{q(),U(k);let Ee;for(;!(Ee=ee(W()));)U();return q(),Ee}}const V={bigint:F=>typeof F=="bigint",function:F=>typeof F=="function",boolean:F=>typeof F=="boolean",string:F=>typeof F=="string",stringOrUint8Array:F=>typeof F=="string"||n(F),isSafeInteger:F=>Number.isSafeInteger(F),array:F=>Array.isArray(F),field:(F,te)=>te.Fp.isValid(F),hash:F=>typeof F=="function"&&Number.isSafeInteger(F.outputLen)};function H(F,te,ie={}){const Z=(J,K,q)=>{const M=V[K];if(typeof M!="function")throw new Error(`Invalid validator "${K}", expected function`);const U=F[J];if(!(q&&U===void 0)&&!M(U,F))throw new Error(`Invalid param ${String(J)}=${U} (${typeof U}), expected ${K}`)};for(const[J,K]of Object.entries(te))Z(J,K,!1);for(const[J,K]of Object.entries(ie))Z(J,K,!0);return F}return kt}var cR;function pf(){if(cR)return Ut;cR=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.isNegativeLE=void 0,Ut.mod=c,Ut.pow=u,Ut.pow2=l,Ut.invert=d,Ut.tonelliShanks=f,Ut.FpSqrt=p,Ut.validateField=_,Ut.FpPow=R,Ut.FpInvertBatch=h,Ut.FpDiv=T,Ut.FpIsSquare=I,Ut.nLength=m,Ut.Field=E,Ut.FpSqrtOdd=b,Ut.FpSqrtEven=N,Ut.hashToPrivateScalar=j,Ut.getFieldBytesLength=$,Ut.getMinHashLength=B,Ut.mapHashToField=V;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Ks(),t=BigInt(0),r=BigInt(1),n=BigInt(2),i=BigInt(3),a=BigInt(4),s=BigInt(5),o=BigInt(8);BigInt(9),BigInt(16);function c(H,F){const te=H%F;return te>=t?te:F+te}function u(H,F,te){if(te<=t||F<t)throw new Error("Expected power/modulo > 0");if(te===r)return t;let ie=r;for(;F>t;)F&r&&(ie=ie*H%te),H=H*H%te,F>>=r;return ie}function l(H,F,te){let ie=H;for(;F-- >t;)ie*=ie,ie%=te;return ie}function d(H,F){if(H===t||F<=t)throw new Error(`invert: expected positive integers, got n=${H} mod=${F}`);let te=c(H,F),ie=F,Z=t,J=r;for(;te!==t;){const q=ie/te,M=ie%te,U=Z-J*q;ie=te,te=M,Z=J,J=U}if(ie!==r)throw new Error("invert: does not exist");return c(Z,F)}function f(H){const F=(H-r)/n;let te,ie,Z;for(te=H-r,ie=0;te%n===t;te/=n,ie++);for(Z=n;Z<H&&u(Z,F,H)!==H-r;Z++);if(ie===1){const K=(H+r)/a;return function(M,U){const W=M.pow(U,K);if(!M.eql(M.sqr(W),U))throw new Error("Cannot find square root");return W}}const J=(te+r)/n;return function(q,M){if(q.pow(M,F)===q.neg(q.ONE))throw new Error("Cannot find square root");let U=ie,W=q.pow(q.mul(q.ONE,Z),te),C=q.pow(M,J),k=q.pow(M,te);for(;!q.eql(k,q.ONE);){if(q.eql(k,q.ZERO))return q.ZERO;let ee=1;for(let me=q.sqr(k);ee<U&&!q.eql(me,q.ONE);ee++)me=q.sqr(me);const Ee=q.pow(W,r<<BigInt(U-ee-1));W=q.sqr(Ee),C=q.mul(C,Ee),k=q.mul(k,W),U=ee}return C}}function p(H){if(H%a===i){const F=(H+r)/a;return function(ie,Z){const J=ie.pow(Z,F);if(!ie.eql(ie.sqr(J),Z))throw new Error("Cannot find square root");return J}}if(H%o===s){const F=(H-s)/o;return function(ie,Z){const J=ie.mul(Z,n),K=ie.pow(J,F),q=ie.mul(Z,K),M=ie.mul(ie.mul(q,n),K),U=ie.mul(q,ie.sub(M,ie.ONE));if(!ie.eql(ie.sqr(U),Z))throw new Error("Cannot find square root");return U}}return f(H)}const g=(H,F)=>(c(H,F)&r)===r;Ut.isNegativeLE=g;const y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function _(H){const F={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},te=y.reduce((ie,Z)=>(ie[Z]="function",ie),F);return(0,e.validateObject)(H,te)}function R(H,F,te){if(te<t)throw new Error("Expected power > 0");if(te===t)return H.ONE;if(te===r)return F;let ie=H.ONE,Z=F;for(;te>t;)te&r&&(ie=H.mul(ie,Z)),Z=H.sqr(Z),te>>=r;return ie}function h(H,F){const te=new Array(F.length),ie=F.reduce((J,K,q)=>H.is0(K)?J:(te[q]=J,H.mul(J,K)),H.ONE),Z=H.inv(ie);return F.reduceRight((J,K,q)=>H.is0(K)?J:(te[q]=H.mul(J,te[q]),H.mul(J,K)),Z),te}function T(H,F,te){return H.mul(F,typeof te=="bigint"?d(te,H.ORDER):H.inv(te))}function I(H){const F=(H.ORDER-r)/n;return te=>{const ie=H.pow(te,F);return H.eql(ie,H.ZERO)||H.eql(ie,H.ONE)}}function m(H,F){const te=F!==void 0?F:H.toString(2).length,ie=Math.ceil(te/8);return{nBitLength:te,nByteLength:ie}}function E(H,F,te=!1,ie={}){if(H<=t)throw new Error(`Expected Field ORDER > 0, got ${H}`);const{nBitLength:Z,nByteLength:J}=m(H,F);if(J>2048)throw new Error("Field lengths over 2048 bytes are not supported");const K=p(H),q=Object.freeze({ORDER:H,BITS:Z,BYTES:J,MASK:(0,e.bitMask)(Z),ZERO:t,ONE:r,create:M=>c(M,H),isValid:M=>{if(typeof M!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof M}`);return t<=M&&M<H},is0:M=>M===t,isOdd:M=>(M&r)===r,neg:M=>c(-M,H),eql:(M,U)=>M===U,sqr:M=>c(M*M,H),add:(M,U)=>c(M+U,H),sub:(M,U)=>c(M-U,H),mul:(M,U)=>c(M*U,H),pow:(M,U)=>R(q,M,U),div:(M,U)=>c(M*d(U,H),H),sqrN:M=>M*M,addN:(M,U)=>M+U,subN:(M,U)=>M-U,mulN:(M,U)=>M*U,inv:M=>d(M,H),sqrt:ie.sqrt||(M=>K(q,M)),invertBatch:M=>h(q,M),cmov:(M,U,W)=>W?U:M,toBytes:M=>te?(0,e.numberToBytesLE)(M,J):(0,e.numberToBytesBE)(M,J),fromBytes:M=>{if(M.length!==J)throw new Error(`Fp.fromBytes: expected ${J}, got ${M.length}`);return te?(0,e.bytesToNumberLE)(M):(0,e.bytesToNumberBE)(M)}});return Object.freeze(q)}function b(H,F){if(!H.isOdd)throw new Error("Field doesn't have isOdd");const te=H.sqrt(F);return H.isOdd(te)?te:H.neg(te)}function N(H,F){if(!H.isOdd)throw new Error("Field doesn't have isOdd");const te=H.sqrt(F);return H.isOdd(te)?H.neg(te):te}function j(H,F,te=!1){H=(0,e.ensureBytes)("privateHash",H);const ie=H.length,Z=m(F).nByteLength+8;if(Z<24||ie<Z||ie>1024)throw new Error(`hashToPrivateScalar: expected ${Z}-1024 bytes of input, got ${ie}`);const J=te?(0,e.bytesToNumberLE)(H):(0,e.bytesToNumberBE)(H);return c(J,F-r)+r}function $(H){if(typeof H!="bigint")throw new Error("field order must be bigint");const F=H.toString(2).length;return Math.ceil(F/8)}function B(H){const F=$(H);return F+Math.ceil(F/2)}function V(H,F,te=!1){const ie=H.length,Z=$(F),J=B(F);if(ie<16||ie<J||ie>1024)throw new Error(`expected ${J}-1024 bytes of input, got ${ie}`);const K=te?(0,e.bytesToNumberBE)(H):(0,e.bytesToNumberLE)(H),q=c(K,F-r)+r;return te?(0,e.numberToBytesLE)(q,Z):(0,e.numberToBytesBE)(q,Z)}return Ut}var uR;function q5(){if(uR)return Co;uR=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.wNAF=i,Co.validateBasic=a;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=pf(),t=Ks(),r=BigInt(0),n=BigInt(1);function i(s,o){const c=(l,d)=>{const f=d.negate();return l?f:d},u=l=>{const d=Math.ceil(o/l)+1,f=2**(l-1);return{windows:d,windowSize:f}};return{constTimeNegate:c,unsafeLadder(l,d){let f=s.ZERO,p=l;for(;d>r;)d&n&&(f=f.add(p)),p=p.double(),d>>=n;return f},precomputeWindow(l,d){const{windows:f,windowSize:p}=u(d),g=[];let y=l,_=y;for(let R=0;R<f;R++){_=y,g.push(_);for(let h=1;h<p;h++)_=_.add(y),g.push(_);y=_.double()}return g},wNAF(l,d,f){const{windows:p,windowSize:g}=u(l);let y=s.ZERO,_=s.BASE;const R=BigInt(2**l-1),h=2**l,T=BigInt(l);for(let I=0;I<p;I++){const m=I*g;let E=Number(f&R);f>>=T,E>g&&(E-=h,f+=n);const b=m,N=m+Math.abs(E)-1,j=I%2!==0,$=E<0;E===0?_=_.add(c(j,d[b])):y=y.add(c($,d[N]))}return{p:y,f:_}},wNAFCached(l,d,f,p){const g=l._WINDOW_SIZE||1;let y=d.get(l);return y||(y=this.precomputeWindow(l,g),g!==1&&d.set(l,p(y))),this.wNAF(g,y,f)}}}function a(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 Co}var lR;function vD(){return lR||(lR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DER=void 0,e.weierstrassPoints=p,e.weierstrass=y,e.SWUFpSqrtRatio=_,e.mapToCurveSimpleSWU=R;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=q5(),r=pf(),n=Ks(),i=Ks();function a(h){const T=(0,t.validateBasic)(h);n.validateObject(T,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:I,Fp:m,a:E}=T;if(I){if(!m.eql(E,m.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof I!="object"||typeof I.beta!="bigint"||typeof I.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...T})}const{bytesToNumberBE:s,hexToBytes:o}=n;e.DER={Err:class extends Error{constructor(T=""){super(T)}},_parseInt(h){const{Err:T}=e.DER;if(h.length<2||h[0]!==2)throw new T("Invalid signature integer tag");const I=h[1],m=h.subarray(2,I+2);if(!I||m.length!==I)throw new T("Invalid signature integer: wrong length");if(m[0]&128)throw new T("Invalid signature integer: negative");if(m[0]===0&&!(m[1]&128))throw new T("Invalid signature integer: unnecessary leading zero");return{d:s(m),l:h.subarray(I+2)}},toSig(h){const{Err:T}=e.DER,I=typeof h=="string"?o(h):h;n.abytes(I);let m=I.length;if(m<2||I[0]!=48)throw new T("Invalid signature tag");if(I[1]!==m-2)throw new T("Invalid signature: incorrect length");const{d:E,l:b}=e.DER._parseInt(I.subarray(2)),{d:N,l:j}=e.DER._parseInt(b);if(j.length)throw new T("Invalid signature: left bytes after parsing");return{r:E,s:N}},hexFromSig(h){const T=B=>Number.parseInt(B[0],16)&8?"00"+B:B,I=B=>{const V=B.toString(16);return V.length&1?`0${V}`:V},m=T(I(h.s)),E=T(I(h.r)),b=m.length/2,N=E.length/2,j=I(b),$=I(N);return`30${I(N+b+4)}02${$}${E}02${j}${m}`}};const c=BigInt(0),u=BigInt(1),l=BigInt(2),d=BigInt(3),f=BigInt(4);function p(h){const T=a(h),{Fp:I}=T,m=T.toBytes||((ie,Z,J)=>{const K=Z.toAffine();return n.concatBytes(Uint8Array.from([4]),I.toBytes(K.x),I.toBytes(K.y))}),E=T.fromBytes||(ie=>{const Z=ie.subarray(1),J=I.fromBytes(Z.subarray(0,I.BYTES)),K=I.fromBytes(Z.subarray(I.BYTES,2*I.BYTES));return{x:J,y:K}});function b(ie){const{a:Z,b:J}=T,K=I.sqr(ie),q=I.mul(K,ie);return I.add(I.add(q,I.mul(ie,Z)),J)}if(!I.eql(I.sqr(T.Gy),b(T.Gx)))throw new Error("bad generator point: equation left != right");function N(ie){return typeof ie=="bigint"&&c<ie&&ie<T.n}function j(ie){if(!N(ie))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function $(ie){const{allowedPrivateKeyLengths:Z,nByteLength:J,wrapPrivateKey:K,n:q}=T;if(Z&&typeof ie!="bigint"){if(n.isBytes(ie)&&(ie=n.bytesToHex(ie)),typeof ie!="string"||!Z.includes(ie.length))throw new Error("Invalid key");ie=ie.padStart(J*2,"0")}let M;try{M=typeof ie=="bigint"?ie:n.bytesToNumberBE((0,i.ensureBytes)("private key",ie,J))}catch{throw new Error(`private key must be ${J} bytes, hex or bigint, not ${typeof ie}`)}return K&&(M=r.mod(M,q)),j(M),M}const B=new Map;function V(ie){if(!(ie instanceof H))throw new Error("ProjectivePoint expected")}class H{constructor(Z,J,K){if(this.px=Z,this.py=J,this.pz=K,Z==null||!I.isValid(Z))throw new Error("x required");if(J==null||!I.isValid(J))throw new Error("y required");if(K==null||!I.isValid(K))throw new Error("z required")}static fromAffine(Z){const{x:J,y:K}=Z||{};if(!Z||!I.isValid(J)||!I.isValid(K))throw new Error("invalid affine point");if(Z instanceof H)throw new Error("projective point not allowed");const q=M=>I.eql(M,I.ZERO);return q(J)&&q(K)?H.ZERO:new H(J,K,I.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Z){const J=I.invertBatch(Z.map(K=>K.pz));return Z.map((K,q)=>K.toAffine(J[q])).map(H.fromAffine)}static fromHex(Z){const J=H.fromAffine(E((0,i.ensureBytes)("pointHex",Z)));return J.assertValidity(),J}static fromPrivateKey(Z){return H.BASE.multiply($(Z))}_setWindowSize(Z){this._WINDOW_SIZE=Z,B.delete(this)}assertValidity(){if(this.is0()){if(T.allowInfinityPoint&&!I.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Z,y:J}=this.toAffine();if(!I.isValid(Z)||!I.isValid(J))throw new Error("bad point: x or y not FE");const K=I.sqr(J),q=b(Z);if(!I.eql(K,q))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Z}=this.toAffine();if(I.isOdd)return!I.isOdd(Z);throw new Error("Field doesn't support isOdd")}equals(Z){V(Z);const{px:J,py:K,pz:q}=this,{px:M,py:U,pz:W}=Z,C=I.eql(I.mul(J,W),I.mul(M,q)),k=I.eql(I.mul(K,W),I.mul(U,q));return C&&k}negate(){return new H(this.px,I.neg(this.py),this.pz)}double(){const{a:Z,b:J}=T,K=I.mul(J,d),{px:q,py:M,pz:U}=this;let W=I.ZERO,C=I.ZERO,k=I.ZERO,ee=I.mul(q,q),Ee=I.mul(M,M),me=I.mul(U,U),Se=I.mul(q,M);return Se=I.add(Se,Se),k=I.mul(q,U),k=I.add(k,k),W=I.mul(Z,k),C=I.mul(K,me),C=I.add(W,C),W=I.sub(Ee,C),C=I.add(Ee,C),C=I.mul(W,C),W=I.mul(Se,W),k=I.mul(K,k),me=I.mul(Z,me),Se=I.sub(ee,me),Se=I.mul(Z,Se),Se=I.add(Se,k),k=I.add(ee,ee),ee=I.add(k,ee),ee=I.add(ee,me),ee=I.mul(ee,Se),C=I.add(C,ee),me=I.mul(M,U),me=I.add(me,me),ee=I.mul(me,Se),W=I.sub(W,ee),k=I.mul(me,Ee),k=I.add(k,k),k=I.add(k,k),new H(W,C,k)}add(Z){V(Z);const{px:J,py:K,pz:q}=this,{px:M,py:U,pz:W}=Z;let C=I.ZERO,k=I.ZERO,ee=I.ZERO;const Ee=T.a,me=I.mul(T.b,d);let Se=I.mul(J,M),we=I.mul(K,U),ae=I.mul(q,W),ue=I.add(J,K),fe=I.add(M,U);ue=I.mul(ue,fe),fe=I.add(Se,we),ue=I.sub(ue,fe),fe=I.add(J,q);let pe=I.add(M,W);return fe=I.mul(fe,pe),pe=I.add(Se,ae),fe=I.sub(fe,pe),pe=I.add(K,q),C=I.add(U,W),pe=I.mul(pe,C),C=I.add(we,ae),pe=I.sub(pe,C),ee=I.mul(Ee,fe),C=I.mul(me,ae),ee=I.add(C,ee),C=I.sub(we,ee),ee=I.add(we,ee),k=I.mul(C,ee),we=I.add(Se,Se),we=I.add(we,Se),ae=I.mul(Ee,ae),fe=I.mul(me,fe),we=I.add(we,ae),ae=I.sub(Se,ae),ae=I.mul(Ee,ae),fe=I.add(fe,ae),Se=I.mul(we,fe),k=I.add(k,Se),Se=I.mul(pe,fe),C=I.mul(ue,C),C=I.sub(C,Se),Se=I.mul(ue,we),ee=I.mul(pe,ee),ee=I.add(ee,Se),new H(C,k,ee)}subtract(Z){return this.add(Z.negate())}is0(){return this.equals(H.ZERO)}wNAF(Z){return te.wNAFCached(this,B,Z,J=>{const K=I.invertBatch(J.map(q=>q.pz));return J.map((q,M)=>q.toAffine(K[M])).map(H.fromAffine)})}multiplyUnsafe(Z){const J=H.ZERO;if(Z===c)return J;if(j(Z),Z===u)return this;const{endo:K}=T;if(!K)return te.unsafeLadder(this,Z);let{k1neg:q,k1:M,k2neg:U,k2:W}=K.splitScalar(Z),C=J,k=J,ee=this;for(;M>c||W>c;)M&u&&(C=C.add(ee)),W&u&&(k=k.add(ee)),ee=ee.double(),M>>=u,W>>=u;return q&&(C=C.negate()),U&&(k=k.negate()),k=new H(I.mul(k.px,K.beta),k.py,k.pz),C.add(k)}multiply(Z){j(Z);let J=Z,K,q;const{endo:M}=T;if(M){const{k1neg:U,k1:W,k2neg:C,k2:k}=M.splitScalar(J);let{p:ee,f:Ee}=this.wNAF(W),{p:me,f:Se}=this.wNAF(k);ee=te.constTimeNegate(U,ee),me=te.constTimeNegate(C,me),me=new H(I.mul(me.px,M.beta),me.py,me.pz),K=ee.add(me),q=Ee.add(Se)}else{const{p:U,f:W}=this.wNAF(J);K=U,q=W}return H.normalizeZ([K,q])[0]}multiplyAndAddUnsafe(Z,J,K){const q=H.BASE,M=(W,C)=>C===c||C===u||!W.equals(q)?W.multiplyUnsafe(C):W.multiply(C),U=M(this,J).add(M(Z,K));return U.is0()?void 0:U}toAffine(Z){const{px:J,py:K,pz:q}=this,M=this.is0();Z==null&&(Z=M?I.ONE:I.inv(q));const U=I.mul(J,Z),W=I.mul(K,Z),C=I.mul(q,Z);if(M)return{x:I.ZERO,y:I.ZERO};if(!I.eql(C,I.ONE))throw new Error("invZ was invalid");return{x:U,y:W}}isTorsionFree(){const{h:Z,isTorsionFree:J}=T;if(Z===u)return!0;if(J)return J(H,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Z,clearCofactor:J}=T;return Z===u?this:J?J(H,this):this.multiplyUnsafe(T.h)}toRawBytes(Z=!0){return this.assertValidity(),m(H,this,Z)}toHex(Z=!0){return n.bytesToHex(this.toRawBytes(Z))}}H.BASE=new H(T.Gx,T.Gy,I.ONE),H.ZERO=new H(I.ZERO,I.ONE,I.ZERO);const F=T.nBitLength,te=(0,t.wNAF)(H,T.endo?Math.ceil(F/2):F);return{CURVE:T,ProjectivePoint:H,normPrivateKeyToScalar:$,weierstrassEquation:b,isWithinCurveOrder:N}}function g(h){const T=(0,t.validateBasic)(h);return n.validateObject(T,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...T})}function y(h){const T=g(h),{Fp:I,n:m}=T,E=I.BYTES+1,b=2*I.BYTES+1;function N(fe){return c<fe&&fe<I.ORDER}function j(fe){return r.mod(fe,m)}function $(fe){return r.invert(fe,m)}const{ProjectivePoint:B,normPrivateKeyToScalar:V,weierstrassEquation:H,isWithinCurveOrder:F}=p({...T,toBytes(fe,pe,be){const Ae=pe.toAffine(),qe=I.toBytes(Ae.x),We=n.concatBytes;return be?We(Uint8Array.from([pe.hasEvenY()?2:3]),qe):We(Uint8Array.from([4]),qe,I.toBytes(Ae.y))},fromBytes(fe){const pe=fe.length,be=fe[0],Ae=fe.subarray(1);if(pe===E&&(be===2||be===3)){const qe=n.bytesToNumberBE(Ae);if(!N(qe))throw new Error("Point is not on curve");const We=H(qe);let tt;try{tt=I.sqrt(We)}catch(Ht){const It=Ht instanceof Error?": "+Ht.message:"";throw new Error("Point is not on curve"+It)}const Xe=(tt&u)===u;return(be&1)===1!==Xe&&(tt=I.neg(tt)),{x:qe,y:tt}}else if(pe===b&&be===4){const qe=I.fromBytes(Ae.subarray(0,I.BYTES)),We=I.fromBytes(Ae.subarray(I.BYTES,2*I.BYTES));return{x:qe,y:We}}else throw new Error(`Point of length ${pe} was invalid. Expected ${E} compressed bytes or ${b} uncompressed bytes`)}}),te=fe=>n.bytesToHex(n.numberToBytesBE(fe,T.nByteLength));function ie(fe){const pe=m>>u;return fe>pe}function Z(fe){return ie(fe)?j(-fe):fe}const J=(fe,pe,be)=>n.bytesToNumberBE(fe.slice(pe,be));class K{constructor(pe,be,Ae){this.r=pe,this.s=be,this.recovery=Ae,this.assertValidity()}static fromCompact(pe){const be=T.nByteLength;return pe=(0,i.ensureBytes)("compactSignature",pe,be*2),new K(J(pe,0,be),J(pe,be,2*be))}static fromDER(pe){const{r:be,s:Ae}=e.DER.toSig((0,i.ensureBytes)("DER",pe));return new K(be,Ae)}assertValidity(){if(!F(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!F(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(pe){return new K(this.r,this.s,pe)}recoverPublicKey(pe){const{r:be,s:Ae,recovery:qe}=this,We=k((0,i.ensureBytes)("msgHash",pe));if(qe==null||![0,1,2,3].includes(qe))throw new Error("recovery id invalid");const tt=qe===2||qe===3?be+T.n:be;if(tt>=I.ORDER)throw new Error("recovery id 2 or 3 invalid");const Xe=(qe&1)===0?"02":"03",ut=B.fromHex(Xe+te(tt)),Ht=$(tt),It=j(-We*Ht),tr=j(Ae*Ht),Rt=B.BASE.multiplyAndAddUnsafe(ut,It,tr);if(!Rt)throw new Error("point at infinify");return Rt.assertValidity(),Rt}hasHighS(){return ie(this.s)}normalizeS(){return this.hasHighS()?new K(this.r,j(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return te(this.r)+te(this.s)}}const q={isValidPrivateKey(fe){try{return V(fe),!0}catch{return!1}},normPrivateKeyToScalar:V,randomPrivateKey:()=>{const fe=r.getMinHashLength(T.n);return r.mapHashToField(T.randomBytes(fe),T.n)},precompute(fe=8,pe=B.BASE){return pe._setWindowSize(fe),pe.multiply(BigInt(3)),pe}};function M(fe,pe=!0){return B.fromPrivateKey(fe).toRawBytes(pe)}function U(fe){const pe=n.isBytes(fe),be=typeof fe=="string",Ae=(pe||be)&&fe.length;return pe?Ae===E||Ae===b:be?Ae===2*E||Ae===2*b:fe instanceof B}function W(fe,pe,be=!0){if(U(fe))throw new Error("first arg must be private key");if(!U(pe))throw new Error("second arg must be public key");return B.fromHex(pe).multiply(V(fe)).toRawBytes(be)}const C=T.bits2int||function(fe){const pe=n.bytesToNumberBE(fe),be=fe.length*8-T.nBitLength;return be>0?pe>>BigInt(be):pe},k=T.bits2int_modN||function(fe){return j(C(fe))},ee=n.bitMask(T.nBitLength);function Ee(fe){if(typeof fe!="bigint")throw new Error("bigint expected");if(!(c<=fe&&fe<ee))throw new Error(`bigint expected < 2^${T.nBitLength}`);return n.numberToBytesBE(fe,T.nByteLength)}function me(fe,pe,be=Se){if(["recovered","canonical"].some(yr=>yr in be))throw new Error("sign() legacy options not supported");const{hash:Ae,randomBytes:qe}=T;let{lowS:We,prehash:tt,extraEntropy:Xe}=be;We==null&&(We=!0),fe=(0,i.ensureBytes)("msgHash",fe),tt&&(fe=(0,i.ensureBytes)("prehashed msgHash",Ae(fe)));const ut=k(fe),Ht=V(pe),It=[Ee(Ht),Ee(ut)];if(Xe!=null&&Xe!==!1){const yr=Xe===!0?qe(I.BYTES):Xe;It.push((0,i.ensureBytes)("extraEntropy",yr))}const tr=n.concatBytes(...It),Rt=ut;function mr(yr){const yt=C(yr);if(!F(yt))return;const Fr=$(yt),L=B.BASE.multiply(yt).toAffine(),w=j(L.x);if(w===c)return;const O=j(Fr*j(Rt+w*Ht));if(O===c)return;let Y=(L.x===w?0:2)|Number(L.y&u),de=O;return We&&ie(O)&&(de=Z(O),Y^=1),new K(w,de,Y)}return{seed:tr,k2sig:mr}}const Se={lowS:T.lowS,prehash:!1},we={lowS:T.lowS,prehash:!1};function ae(fe,pe,be=Se){const{seed:Ae,k2sig:qe}=me(fe,pe,be),We=T;return n.createHmacDrbg(We.hash.outputLen,We.nByteLength,We.hmac)(Ae,qe)}B.BASE._setWindowSize(8);function ue(fe,pe,be,Ae=we){var L;const qe=fe;if(pe=(0,i.ensureBytes)("msgHash",pe),be=(0,i.ensureBytes)("publicKey",be),"strict"in Ae)throw new Error("options.strict was renamed to lowS");const{lowS:We,prehash:tt}=Ae;let Xe,ut;try{if(typeof qe=="string"||n.isBytes(qe))try{Xe=K.fromDER(qe)}catch(w){if(!(w instanceof e.DER.Err))throw w;Xe=K.fromCompact(qe)}else if(typeof qe=="object"&&typeof qe.r=="bigint"&&typeof qe.s=="bigint"){const{r:w,s:O}=qe;Xe=new K(w,O)}else throw new Error("PARSE");ut=B.fromHex(be)}catch(w){if(w.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(We&&Xe.hasHighS())return!1;tt&&(pe=T.hash(pe));const{r:Ht,s:It}=Xe,tr=k(pe),Rt=$(It),mr=j(tr*Rt),yr=j(Ht*Rt),yt=(L=B.BASE.multiplyAndAddUnsafe(ut,mr,yr))==null?void 0:L.toAffine();return yt?j(yt.x)===Ht:!1}return{CURVE:T,getPublicKey:M,getSharedSecret:W,sign:ae,verify:ue,ProjectivePoint:B,Signature:K,utils:q}}function _(h,T){const I=h.ORDER;let m=c;for(let ie=I-u;ie%l===c;ie/=l)m+=u;const E=m,b=l<<E-u-u,N=b*l,j=(I-u)/N,$=(j-u)/l,B=N-u,V=b,H=h.pow(T,j),F=h.pow(T,(j+u)/l);let te=(ie,Z)=>{let J=H,K=h.pow(Z,B),q=h.sqr(K);q=h.mul(q,Z);let M=h.mul(ie,q);M=h.pow(M,$),M=h.mul(M,K),K=h.mul(M,Z),q=h.mul(M,ie);let U=h.mul(q,K);M=h.pow(U,V);let W=h.eql(M,h.ONE);K=h.mul(q,F),M=h.mul(U,J),q=h.cmov(K,q,W),U=h.cmov(M,U,W);for(let C=E;C>u;C--){let k=C-l;k=l<<k-u;let ee=h.pow(U,k);const Ee=h.eql(ee,h.ONE);K=h.mul(q,J),J=h.mul(J,J),ee=h.mul(U,J),q=h.cmov(K,q,Ee),U=h.cmov(ee,U,Ee)}return{isValid:W,value:q}};if(h.ORDER%f===d){const ie=(h.ORDER-d)/f,Z=h.sqrt(h.neg(T));te=(J,K)=>{let q=h.sqr(K);const M=h.mul(J,K);q=h.mul(q,M);let U=h.pow(q,ie);U=h.mul(U,M);const W=h.mul(U,Z),C=h.mul(h.sqr(U),K),k=h.eql(C,J);let ee=h.cmov(W,U,k);return{isValid:k,value:ee}}}return te}function R(h,T){if(r.validateField(h),!h.isValid(T.A)||!h.isValid(T.B)||!h.isValid(T.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const I=_(h,T.Z);if(!h.isOdd)throw new Error("Fp.isOdd is not implemented!");return m=>{let E,b,N,j,$,B,V,H;E=h.sqr(m),E=h.mul(E,T.Z),b=h.sqr(E),b=h.add(b,E),N=h.add(b,h.ONE),N=h.mul(N,T.B),j=h.cmov(T.Z,h.neg(b),!h.eql(b,h.ZERO)),j=h.mul(j,T.A),b=h.sqr(N),B=h.sqr(j),$=h.mul(B,T.A),b=h.add(b,$),b=h.mul(b,N),B=h.mul(B,j),$=h.mul(B,T.B),b=h.add(b,$),V=h.mul(E,N);const{isValid:F,value:te}=I(b,B);H=h.mul(E,m),H=h.mul(H,te),V=h.cmov(V,N,F),H=h.cmov(H,te,F);const ie=h.isOdd(m)===h.isOdd(H);return H=h.cmov(h.neg(H),H,ie),V=h.div(V,j),{x:V,y:H}}}})(Im)),Im}var dR;function B5(){if(dR)return Po;dR=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.getHash=n,Po.createCurve=i;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=k5(),t=Jc(),r=vD();function n(a){return{hash:a,hmac:(s,...o)=>(0,e.hmac)(a,s,(0,t.concatBytes)(...o)),randomBytes:t.randomBytes}}function i(a,s){const o=c=>(0,r.weierstrass)({...a,...n(c)});return Object.freeze({...o(s),create:o})}return Po}var bi={},fR;function U5(){if(fR)return bi;fR=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.expand_message_xmd=s,bi.expand_message_xof=o,bi.hash_to_field=c,bi.isogenyMap=u,bi.createHasher=l;const e=pf(),t=Ks(),r=t.bytesToNumberBE;function n(d,f){if(d<0||d>=1<<8*f)throw new Error(`bad I2OSP call: value=${d} length=${f}`);const p=Array.from({length:f}).fill(0);for(let g=f-1;g>=0;g--)p[g]=d&255,d>>>=8;return new Uint8Array(p)}function i(d,f){const p=new Uint8Array(d.length);for(let g=0;g<d.length;g++)p[g]=d[g]^f[g];return p}function a(d){if(!Number.isSafeInteger(d))throw new Error("number expected")}function s(d,f,p,g){(0,t.abytes)(d),(0,t.abytes)(f),a(p),f.length>255&&(f=g((0,t.concatBytes)((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-"),f)));const{outputLen:y,blockLen:_}=g,R=Math.ceil(p/y);if(R>255)throw new Error("Invalid xmd length");const h=(0,t.concatBytes)(f,n(f.length,1)),T=n(0,_),I=n(p,2),m=new Array(R),E=g((0,t.concatBytes)(T,d,I,n(0,1),h));m[0]=g((0,t.concatBytes)(E,n(1,1),h));for(let N=1;N<=R;N++){const j=[i(E,m[N-1]),n(N+1,1),h];m[N]=g((0,t.concatBytes)(...j))}return(0,t.concatBytes)(...m).slice(0,p)}function o(d,f,p,g,y){if((0,t.abytes)(d),(0,t.abytes)(f),a(p),f.length>255){const _=Math.ceil(2*g/8);f=y.create({dkLen:_}).update((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(f).digest()}if(p>65535||f.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return y.create({dkLen:p}).update(d).update(n(p,2)).update(f).update(n(f.length,1)).digest()}function c(d,f,p){(0,t.validateObject)(p,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:g,k:y,m:_,hash:R,expand:h,DST:T}=p;(0,t.abytes)(d),a(f);const I=typeof T=="string"?(0,t.utf8ToBytes)(T):T,m=g.toString(2).length,E=Math.ceil((m+y)/8),b=f*_*E;let N;if(h==="xmd")N=s(d,I,b,R);else if(h==="xof")N=o(d,I,b,y,R);else if(h==="_internal_pass")N=d;else throw new Error('expand must be "xmd" or "xof"');const j=new Array(f);for(let $=0;$<f;$++){const B=new Array(_);for(let V=0;V<_;V++){const H=E*(V+$*_),F=N.subarray(H,H+E);B[V]=(0,e.mod)(r(F),g)}j[$]=B}return j}function u(d,f){const p=f.map(g=>Array.from(g).reverse());return(g,y)=>{const[_,R,h,T]=p.map(I=>I.reduce((m,E)=>d.add(d.mul(m,g),E)));return g=d.div(_,R),y=d.mul(y,d.div(h,T)),{x:g,y}}}function l(d,f,p){if(typeof f!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(g,y){const _=c(g,2,{...p,DST:p.DST,...y}),R=d.fromAffine(f(_[0])),h=d.fromAffine(f(_[1])),T=R.add(h).clearCofactor();return T.assertValidity(),T},encodeToCurve(g,y){const _=c(g,1,{...p,DST:p.encodeDST,...y}),R=d.fromAffine(f(_[0])).clearCofactor();return R.assertValidity(),R},mapToCurve(g){if(!Array.isArray(g))throw new Error("mapToCurve: expected array of bigints");for(const _ of g)if(typeof _!="bigint")throw new Error(`mapToCurve: expected array of bigints, got ${_} in array`);const y=d.fromAffine(f(g)).clearCofactor();return y.assertValidity(),y}}}return bi}var pR;function F5(){return pR||(pR=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=$5(),r=Jc(),n=B5(),i=U5(),a=pf(),s=Ks(),o=vD(),c=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),u=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),l=BigInt(1),d=BigInt(2),f=(K,q)=>(K+q/d)/q;function p(K){const q=c,M=BigInt(3),U=BigInt(6),W=BigInt(11),C=BigInt(22),k=BigInt(23),ee=BigInt(44),Ee=BigInt(88),me=K*K*K%q,Se=me*me*K%q,we=(0,a.pow2)(Se,M,q)*Se%q,ae=(0,a.pow2)(we,M,q)*Se%q,ue=(0,a.pow2)(ae,d,q)*me%q,fe=(0,a.pow2)(ue,W,q)*ue%q,pe=(0,a.pow2)(fe,C,q)*fe%q,be=(0,a.pow2)(pe,ee,q)*pe%q,Ae=(0,a.pow2)(be,Ee,q)*be%q,qe=(0,a.pow2)(Ae,ee,q)*pe%q,We=(0,a.pow2)(qe,M,q)*Se%q,tt=(0,a.pow2)(We,k,q)*fe%q,Xe=(0,a.pow2)(tt,U,q)*me%q,ut=(0,a.pow2)(Xe,d,q);if(!g.eql(g.sqr(ut),K))throw new Error("Cannot find square root");return ut}const g=(0,a.Field)(c,void 0,void 0,{sqrt:p});e.secp256k1=(0,n.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:u,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:K=>{const q=u,M=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),U=-l*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),W=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),C=M,k=BigInt("0x100000000000000000000000000000000"),ee=f(C*K,q),Ee=f(-U*K,q);let me=(0,a.mod)(K-ee*M-Ee*W,q),Se=(0,a.mod)(-ee*U-Ee*C,q);const we=me>k,ae=Se>k;if(we&&(me=q-me),ae&&(Se=q-Se),me>k||Se>k)throw new Error("splitScalar: Endomorphism failed, k="+K);return{k1neg:we,k1:me,k2neg:ae,k2:Se}}}},t.sha256);const y=BigInt(0),_=K=>typeof K=="bigint"&&y<K&&K<c,R=K=>typeof K=="bigint"&&y<K&&K<u,h={};function T(K,...q){let M=h[K];if(M===void 0){const U=(0,t.sha256)(Uint8Array.from(K,W=>W.charCodeAt(0)));M=(0,s.concatBytes)(U,U),h[K]=M}return(0,t.sha256)((0,s.concatBytes)(M,...q))}const I=K=>K.toRawBytes(!0).slice(1),m=K=>(0,s.numberToBytesBE)(K,32),E=K=>(0,a.mod)(K,c),b=K=>(0,a.mod)(K,u),N=e.secp256k1.ProjectivePoint,j=(K,q,M)=>N.BASE.multiplyAndAddUnsafe(K,q,M);function $(K){let q=e.secp256k1.utils.normPrivateKeyToScalar(K),M=N.fromPrivateKey(q);return{scalar:M.hasEvenY()?q:b(-q),bytes:I(M)}}function B(K){if(!_(K))throw new Error("bad x: need 0 < x < p");const q=E(K*K),M=E(q*K+BigInt(7));let U=p(M);U%d!==y&&(U=E(-U));const W=new N(K,U,l);return W.assertValidity(),W}function V(...K){return b((0,s.bytesToNumberBE)(T("BIP0340/challenge",...K)))}function H(K){return $(K).bytes}function F(K,q,M=(0,r.randomBytes)(32)){const U=(0,s.ensureBytes)("message",K),{bytes:W,scalar:C}=$(q),k=(0,s.ensureBytes)("auxRand",M,32),ee=m(C^(0,s.bytesToNumberBE)(T("BIP0340/aux",k))),Ee=T("BIP0340/nonce",ee,W,U),me=b((0,s.bytesToNumberBE)(Ee));if(me===y)throw new Error("sign failed: k is zero");const{bytes:Se,scalar:we}=$(me),ae=V(Se,W,U),ue=new Uint8Array(64);if(ue.set(Se,0),ue.set(m(b(we+ae*C)),32),!te(ue,U,W))throw new Error("sign: Invalid signature produced");return ue}function te(K,q,M){const U=(0,s.ensureBytes)("signature",K,64),W=(0,s.ensureBytes)("message",q),C=(0,s.ensureBytes)("publicKey",M,32);try{const k=B((0,s.bytesToNumberBE)(C)),ee=(0,s.bytesToNumberBE)(U.subarray(0,32));if(!_(ee))return!1;const Ee=(0,s.bytesToNumberBE)(U.subarray(32,64));if(!R(Ee))return!1;const me=V(m(ee),I(k),W),Se=j(k,Ee,b(-me));return!(!Se||!Se.hasEvenY()||Se.toAffine().x!==ee)}catch{return!1}}e.schnorr={getPublicKey:H,sign:F,verify:te,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:B,pointToBytes:I,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:T,mod:a.mod}};const ie=(0,i.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(K=>K.map(q=>BigInt(q)))),Z=(0,o.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}),J=(0,i.createHasher)(e.secp256k1.ProjectivePoint,K=>{const{x:q,y:M}=Z(g.create(K[0]));return ie(q,M)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=J.hashToCurve,e.encodeToCurve=J.encodeToCurve})(Sm)),Sm}var hR;function H5(){return hR||(hR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var t=F5();Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return t.secp256k1}})})(bm)),bm}var mR;function V5(){if(mR)return Mn;mR=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.recoverPublicKey=r,Mn.recoverAddressFromEthSignature=i,Mn.sign=a,Mn.createEthereumMessageHash=s,Mn.ethSign=o,Mn.computeAddress=c,Mn.createUnsafeIdentity=u;const e=ff(),t=H5();function r(l,d){if(l.length!==65)throw new Error("Invalid signature length "+l.length);const f=l[64];if(f!==27&&f!==28)throw new Error(`Invalid signature recovery value: ${f}. Expected 27 or 28.`);const p=l.slice(0,l.length-1),g=f===28?1:0;return t.secp256k1.Signature.fromCompact(p).addRecoveryBit(g).recoverPublicKey(d).toRawBytes(!1).slice(1)}function n(l){if(l.length!==65)throw new Error("Invalid ethereum signature");const d=l[64];if(d===0||d===1){const f=new Uint8Array(l);return f[64]=d+27,f}return l}function i(l,d){if(typeof l=="string"){if((0,e.isHex)(l))return i((0,e.hexToBytes)(l),d);throw new Error("String signatures must be encoded in hex")}return c(r(n(l),s(d)))}function a(l,d){const f=t.secp256k1.sign(d,l),p=f.recovery===1?"1c":"1b";return"0x"+f.toCompactHex()+p}function s(l){const d=typeof l=="string"?(0,e.stringToUtf8Bytes)(l):l,f=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
|
|
70
|
+
`),(0,e.stringToUtf8Bytes)(String(d.length)),d);return(0,e.hexToBytes)((0,e.sha3)(f))}function o(l,d){return a(l,s(d))}function c(l){let d;if(l.length===65&&l[0]===4)d=l.slice(1);else if(l.length===64)d=l;else throw new Error(`Invalid public key length: ${l.length}. Expected 64 bytes, or 65 bytes with a leading 0x04 uncompressed prefix.`);return(0,e.getAddress)((0,e.sha3)(d).substring(24))}function u(){const l=t.secp256k1.utils.randomPrivateKey(),d=t.secp256k1.getPublicKey(l,!1).slice(1),f=c(d);return{privateKey:(0,e.bytesToHex)(l),publicKey:(0,e.bytesToHex)(d),address:f}}return Mn}var ad={},yR;function x5(){if(yR)return ad;yR=1,Object.defineProperty(ad,"__esModule",{value:!0});const e=ff();class t{constructor(n,i=!0){vi(this,"requestManager");vi(this,"checkedBlocks");vi(this,"saveBlocks");vi(this,"savedBlocks");vi(this,"requests");vi(this,"blockTime");vi(this,"firstTimestamp");this.requestManager=n,this.checkedBlocks={},this.saveBlocks=i,this.savedBlocks={},this.requests=0}async fillBlockTime(){const n=await this.getBlockWrapper("latest"),i=await this.getBlockWrapper(1);return this.blockTime=(n.timestamp-i.timestamp)/(Number(n.number)-1),this.firstTimestamp=i.timestamp,{blockTime:this.blockTime,firstTimestamp:this.firstTimestamp}}async getDate(n,i=!0){const a=n/1e3,s=Date.now()/1e3;let o=this.firstTimestamp,c=this.blockTime;if((o===void 0||c===void 0)&&({firstTimestamp:o,blockTime:c}=await this.fillBlockTime()),a<o)return{block:1,timestamp:a};const u=this.savedBlocks.latest;if(a>=s||u&&a>u.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:a};this.checkedBlocks[a]=[];const l=await this.getBlockWrapper(Math.ceil((a-o)/c));return{block:await this.findBetter(a,l,i,c),timestamp:a}}async findBetter(n,i,a,s){let o=s??this.blockTime??(await this.fillBlockTime()).blockTime;if(await this.isBetterBlock(n,i,a))return i.number;const c=n-i.timestamp;let u=Math.ceil(c/o);u===0&&(u=c<0?-1:1);const l=await this.getBlockWrapper(this.getNextBlock(n,i.number,u));return o=Math.abs((i.timestamp-l.timestamp)/(i.number-l.number)),this.findBetter(n,l,a,o)}async isBetterBlock(n,i,a){const s=i.timestamp;if(a){if(s<n)return!1;const o=await this.getBlockWrapper(i.number-1);if(s>=n&&o.timestamp<n)return!0}else{if(s>=n)return!1;const o=await this.getBlockWrapper(i.number+1);if(s<n&&o.timestamp>=n)return!0}return!1}getNextBlock(n,i,a){const s=i+a;if(this.checkedBlocks[n].includes(s)){const o=a<0?a+1:a-1;if(o===0)throw new Error(`Could not find an unchecked block for timestamp ${n}`);return this.getNextBlock(n,i,o)}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 i=n.toString();if(this.savedBlocks[i])return this.savedBlocks[i];if(typeof n=="number"&&this.savedBlocks.latest&&this.savedBlocks.latest.number<=n)return this.savedBlocks.latest;const{timestamp:a}=await this.requestManager.eth_getBlockByNumber(n,!1);return this.savedBlocks[i]={number:(0,e.toBigNumber)(n==="latest"?await this.requestManager.eth_blockNumber():n).toNumber(),timestamp:(0,e.toBigNumber)(a).toNumber()},this.requests++,this.savedBlocks[i]}}return ad.default=t,ad}var sd={},gR;function G5(){if(gR)return sd;gR=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.moveMinutes=e;function e(t){const r=new Date;return r.setMinutes(r.getMinutes()+t),r}return sd}var Rm={},dn={},sa={},oa={},Am={},fn={},_R;function Pe(){if(_R)return fn;_R=1;var e=fn&&fn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(fn,"__esModule",{value:!0}),fn.validateType=fn.generateLazyValidator=fn.Ajv=void 0;const t=e(CE());fn.Ajv=t.default;const r=e(xj()),n=e(Gj());function i(s,o){let c=null;const u=(l,d)=>{if(!c){const f=new t.default({$data:!0,allErrors:!0});(0,r.default)(f),(0,n.default)(f,{singleError:!0}),o==null||o.forEach(p=>f.addKeyword(p)),c=f.compile(s),Object.defineProperty(u,"errors",{get(){return c==null?void 0:c.errors}})}return c(l,d)};return u}fn.generateLazyValidator=i;function a(s,o){return s.validate(o)}return fn.validateType=a,fn}var vR;function z5(){return vR||(vR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const t=Pe();e.SCENE_UPDATE="SCENE_UPDATE",(function(r){r.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(Am)),Am}var Om={},ER;function W5(){return ER||(ER=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const t=Pe();e.UPDATE="update",(function(r){r.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Update||(e.Update={}))})(Om)),Om}var bR;function Y5(){return bR||(bR=1,(function(e){var t=oa&&oa.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=oa&&oa.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(z5(),e),r(W5(),e)})(oa)),oa}var ca={},Nm={},SR;function K5(){return SR||(SR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const t=Pe();(function(r){r.SCENE="scene",r.SMART_ITEM="smart-item",r.PORTABLE_EXPERIENCE="portable-experience",r.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ProjectType||(e.ProjectType={}))})(Nm)),Nm}var Pm={},Cm={},TR;function hf(){return TR||(TR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const t=Pe();(function(r){r.UNIQUE="unique",r.MYTHIC="mythic",r.EXOTIC="exotic",r.LEGENDARY="legendary",r.EPIC="epic",r.RARE="rare",r.UNCOMMON="uncommon",r.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema);const n={[r.UNIQUE]:1,[r.MYTHIC]:10,[r.EXOTIC]:50,[r.LEGENDARY]:100,[r.EPIC]:1e3,[r.RARE]:5e3,[r.UNCOMMON]:1e4,[r.COMMON]:1e5},i={[r.UNIQUE]:"#FFE617",[r.MYTHIC]:"#FB7DE3",[r.EXOTIC]:"#E4FFB8",[r.LEGENDARY]:"#A657ED",[r.EPIC]:"#6397F2",[r.RARE]:"#3AD682",[r.UNCOMMON]:"#FF8563",[r.COMMON]:"#D4E0E0"},a={[r.UNIQUE]:"#FFB626",[r.MYTHIC]:"#FF63E1",[r.EXOTIC]:"#CAFF73",[r.LEGENDARY]:"#842DDA",[r.EPIC]:"#3D85E6",[r.RARE]:"#36CF75",[r.UNCOMMON]:"#ED6D4F",[r.COMMON]:"#ABC1C1"};function s(l){return n[l]}r.getMaxSupply=s;function o(l){return a[l]}r.getColor=o;function c(){return[r.UNIQUE,r.MYTHIC,r.EXOTIC,r.LEGENDARY,r.EPIC,r.RARE,r.UNCOMMON,r.COMMON]}r.getRarities=c;function u(l){return[i[l],a[l]]}r.getGradient=u})(e.Rarity||(e.Rarity={}))})(Cm)),Cm}var Mm={},wR;function Za(){return wR||(wR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const t=Pe();(function(r){r.EYEBROWS="eyebrows",r.EYES="eyes",r.FACIAL_HAIR="facial_hair",r.HAIR="hair",r.BODY_SHAPE="body_shape",r.MOUTH="mouth",r.UPPER_BODY="upper_body",r.LOWER_BODY="lower_body",r.FEET="feet",r.EARRING="earring",r.EYEWEAR="eyewear",r.HAT="hat",r.HELMET="helmet",r.MASK="mask",r.TIARA="tiara",r.TOP_HEAD="top_head",r.SKIN="skin",r.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WearableCategory||(e.WearableCategory={}))})(Mm)),Mm}var jm={},Dm={},IR;function VE(){return IR||(IR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const t=Pe();(function(r){r.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",r.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BodyShape||(e.BodyShape={}))})(Dm)),Dm}var Lm={},$m={},RR;function ED(){return RR||(RR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const t=Pe();(function(r){r.HEAD="head",r.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})($m)),$m}var AR;function xE(){return AR||(AR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const t=Za(),r=Pe(),n=ED();(function(i){i.schema={oneOf:[Object.assign({},t.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(Lm)),Lm}var OR;function GE(){return OR||(OR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const t=Pe(),r=VE(),n=xE();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:r.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(jm)),jm}var ua={},la={},km={},qm={},NR;function es(){return NR||(NR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const t=Pe();(function(r){r.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,t.generateLazyValidator)(r.schema);r.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(r){r.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(r){r.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(r){r.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(r.schema.pattern);r.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(qm)),qm}var PR;function bD(){return PR||(PR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const t=Za(),r=es(),n=Pe();var i;(function(c){c.schema={type:"object",required:["face256","body"],properties:{face256:r.IPFSv2.schema,body:r.IPFSv2.schema}},c.validate=(0,n.generateLazyValidator)(c.schema)})(i=e.Snapshots||(e.Snapshots={}));var a;(function(c){c.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:r.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:r.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:r.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:t.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:Object.assign(Object.assign({},i.schema),{nullable:!0})},additionalProperties:!0},c.validate=(0,n.generateLazyValidator)(c.schema)})(a=e.AvatarInfo||(e.AvatarInfo={}));var s;(function(c){c.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const u=new RegExp(c.schema.pattern,"i");c.validate=l=>u.test(l)})(s=e.LinkUrl||(e.LinkUrl={}));var o;(function(c){c.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:s.schema}}})(o=e.Link||(e.Link={})),(function(c){c.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},nameColor:Object.assign(Object.assign({},r.Color3.schema),{nullable:!0}),description:{type:"string"},links:{type:"array",maxItems:5,items:o.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:r.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:a.schema},additionalProperties:!0},c.validate=(0,n.generateLazyValidator)(c.schema)})(e.Avatar||(e.Avatar={}))})(km)),km}var Bm={},CR;function X5(){return CR||(CR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const t=Pe(),r=bD();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:r.Avatar.schema}},additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(Bm)),Bm}var MR;function J5(){return MR||(MR=1,(function(e){var t=la&&la.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=la&&la.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(bD(),e),r(X5(),e)})(la)),la}var Um={},Fm={},jR;function SD(){return jR||(jR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const t=Pe();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(r){r.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(Fm)),Fm}var Hm={},DR;function TD(){return DR||(DR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(Hm)),Hm}var Vm={},LR;function wD(){return LR||(LR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const t=Pe();(function(r){r.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},r.schemaValidator=(0,t.generateLazyValidator)(r.schema),r.validate=n=>r.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(Vm)),Vm}var xm={},Mo={},$R;function zE(){return $R||($R=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.displayableProperties=void 0,Mo.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),Mo}var Gm={},kR;function ID(){return kR||(kR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Source||(e.Source={}))})(Gm)),Gm}var zm={},qR;function RD(){return qR||(qR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(zm)),zm}var BR;function Q5(){return BR||(BR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const t=Pe(),r=zE(),n=SD(),i=wD(),a=ID(),s=RD(),o=TD();var c;(function(u){u.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",u.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",u.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",u.USE_WEB3_API="USE_WEB3_API",u.USE_FETCH="USE_FETCH",u.USE_WEBSOCKET="USE_WEBSOCKET",u.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(c=e.RequiredPermission||(e.RequiredPermission={})),(function(u){u.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},r.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},creator:{type:"string",nullable:!0,description:"Wallet address of the creator of the scene",pattern:"^(0x[a-fA-F0-9]{40})?$",errorMessage:"Creator must be a valid wallet address"},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},a.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:s.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(c)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},o.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:c.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},u.validate=(0,t.generateLazyValidator)(u.schema)})(e.Scene||(e.Scene={}))})(xm)),xm}var UR;function Z5(){return UR||(UR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var t=SD();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return t.FeatureToggles}});var r=TD();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return r.WorldConfiguration}});var n=wD();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=Q5();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var a=ID();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return a.Source}});var s=RD();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return s.SpawnPoint}})})(Um)),Um}var da={},Wm={},Ym={},FR;function AD(){return FR||(FR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const t=Pe();(function(r){r.EN="en",r.ES="es"})(e.Locale||(e.Locale={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Locale||(e.Locale={}))})(Ym)),Ym}var HR;function OD(){return HR||(HR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const t=Pe(),r=AD();(function(n){n.schema={type:"object",properties:{code:r.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Wm)),Wm}var Km={},VR;function ND(){return VR||(VR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Metrics||(e.Metrics={}))})(Km)),Km}var Xm={},xR;function WE(){return xR||(xR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const t=hf(),r=Pe();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:t.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,r.generateLazyValidator)(n);function a(s){return i(s)}e.isStandard=a})(Xm)),Xm}var Jm={},fa={},Qm={},GR;function e6(){return GR||(GR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.MerkleProof||(e.MerkleProof={}))})(Qm)),Qm}var zR;function PD(){return zR||(zR=1,(function(e){var t=fa&&fa.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=fa&&fa.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(e6(),e)})(fa)),fa}var Zm={},WR;function YE(){return WR||(WR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMappingsHelper=e.AddMappingError=e.Mappings=e.Mapping=e.MultipleMapping=e.RangeMapping=e.AnyMapping=e.SingleMapping=e.ContractNetwork=e.MappingType=void 0;const t=Pe();var r;(function(d){d.SINGLE="single",d.ANY="any",d.MULTIPLE="multiple",d.RANGE="range"})(r=e.MappingType||(e.MappingType={}));var n;(function(d){d.MAINNET="mainnet",d.BASE_MAINNET="base_mainnet",d.BASE_SEPOLIA="base_sepolia",d.MONAD_MAINNET="monad_mainnet",d.MONAD_TESTNET="monad_testnet",d.APE_MAINNET="ape_mainnet",d.APE_CALDERA="ape_caldera",d.MATIC="matic",d.SEPOLIA="sepolia",d.AMOY="amoy"})(n=e.ContractNetwork||(e.ContractNetwork={}));var i;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.SINGLE},id:{type:"string",pattern:"^[0-9]+$"}},required:["type","id"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(i=e.SingleMapping||(e.SingleMapping={}));var a;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.ANY}},required:["type"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(a=e.AnyMapping||(e.AnyMapping={}));var s;(function(d){d._fromLessThanOrEqualTo={keyword:"_fromLessThanOrEqualTo",validate:function(p,g){if(!g||!g.from||!g.to)return!1;let{to:y,from:_}=g;return(typeof _!="bigint"||typeof y!="bigint")&&(_=BigInt(_),y=BigInt(y)),_<=y},errors:!1},d.schema={type:"object",properties:{type:{type:"string",const:r.RANGE},from:{type:"string",pattern:"^[0-9]+$"},to:{type:"string",pattern:"^[0-9]+$"}},required:["type","from","to"],additionalProperties:!1,_fromLessThanOrEqualTo:!0},d.validate=(0,t.generateLazyValidator)(d.schema,[d._fromLessThanOrEqualTo])})(s=e.RangeMapping||(e.RangeMapping={}));var o;(function(d){d.schema={type:"object",properties:{type:{type:"string",const:r.MULTIPLE},ids:{type:"array",items:{type:"string",pattern:"^[0-9]+$"},minItems:1,uniqueItems:!0}},required:["type","ids"],additionalProperties:!1},d.validate=(0,t.generateLazyValidator)(d.schema)})(o=e.MultipleMapping||(e.MultipleMapping={}));var c;(function(d){d.schema={type:"object",properties:{type:{type:"string",enum:Object.values(r)}},required:["type"],oneOf:[i.schema,a.schema,s.schema,o.schema]},d.validate=(0,t.generateLazyValidator)(d.schema,[s._fromLessThanOrEqualTo])})(c=e.Mapping||(e.Mapping={})),(function(d){d._isMappingsValid={keyword:"_isMappingsValid",validate:function(p,g){try{l(g)}catch{return!1}return!0},errors:!1},d.innerSchema={type:"object",patternProperties:{"^0x[0-9a-fA-F]{40}$":{type:"array",items:c.schema}},minProperties:1,required:[],additionalProperties:!1};const f=Object.values(n).reduce((p,g)=>(p[g]=d.innerSchema,p),{});d.schema={type:"object",properties:f,minProperties:1,additionalProperties:!1,_isMappingsValid:!0},d.validate=(0,t.generateLazyValidator)(d.schema,[s._fromLessThanOrEqualTo,d._isMappingsValid])})(e.Mappings||(e.Mappings={}));class u extends Error{constructor(f,p,g){super(f),this.existingMapping=p,this.conflictingMapping=g}}e.AddMappingError=u;function l(d={}){const f={};for(const[m,E]of Object.entries(d)){f[m]={};for(const[b,N]of Object.entries(E))for(const j of N)T(m,b,j)}function p(){return JSON.parse(JSON.stringify(f))}function g(m,E,b){const N=BigInt(m);return N>=BigInt(E)&&N<=BigInt(b)}function y(m,E){switch(E.type){case r.SINGLE:return m.id===E.id;case r.MULTIPLE:return E.ids.includes(m.id);case r.RANGE:return g(m.id,E.from,E.to);default:return!1}}function _(m,E){switch(E.type){case r.SINGLE:return m.ids.includes(E.id);case r.MULTIPLE:return m.ids.some(b=>E.ids.includes(b));case r.RANGE:return m.ids.some(b=>g(b,E.from,E.to));default:return!1}}function R(m,E){switch(E.type){case r.SINGLE:return g(E.id,m.from,m.to);case r.MULTIPLE:return E.ids.some(b=>g(b,m.from,m.to));case r.RANGE:return BigInt(m.from)<=BigInt(E.to)&&BigInt(m.to)>=BigInt(E.from)}}function h(m,E){if(m.type===r.ANY||E.type===r.ANY)return!0;switch(m.type){case r.SINGLE:return y(m,E);case r.MULTIPLE:return _(m,E);case r.RANGE:return R(m,E)}}function T(m,E,b){var N,j;const $=E.toLowerCase();f[m]=(N=f[m])!==null&&N!==void 0?N:{},f[m][$]=(j=f[m][$])!==null&&j!==void 0?j:[];for(const B of f[m][$])if(h(B,b))throw new u(`Cannot add mapping to contract ${$} on network ${m} because it overlaps with existing mapping`,B,b);f[m][$].push(b)}function I(m,E,b){var N;return!((N=f[m])===null||N===void 0)&&N[E]?f[m][E].some(j=>{switch(j.type){case r.SINGLE:return j.id===b;case r.ANY:return!0;case r.MULTIPLE:return j.ids.includes(b);case r.RANGE:return BigInt(b)>=BigInt(j.from)&&BigInt(b)<=BigInt(j.to)}}):!1}return{addMapping:T,getMappings:p,includesNft:I}}e.createMappingsHelper=l})(Zm)),Zm}var YR;function KE(){return YR||(YR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.schema=void 0;const t=Pe(),r=PD(),n=YE();e.schema={type:"object",properties:{merkleProof:r.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]},mappings:Object.assign({nullable:!0},n.Mappings.schema)},required:["merkleProof","content"],_containsHashingKeys:!0};const i={keyword:"_containsHashingKeys",validate:function(o,c){var u;const l=c;return!((u=l==null?void 0:l.merkleProof)===null||u===void 0)&&u.hashingKeys?l.merkleProof.hashingKeys.every(d=>l.hasOwnProperty(d)):!1},errors:!1},a=(0,t.generateLazyValidator)(e.schema,[i,n.RangeMapping._fromLessThanOrEqualTo,n.Mappings._isMappingsValid]);function s(o){return a(o)}e.isThirdParty=s})(Jm)),Jm}var ey={},ty={},pn={},KR;function CD(){if(KR)return pn;KR=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.isBaseEmote=pn.isBaseAvatar=pn.requiredBaseItemProps=pn.baseItemProperties=void 0;const e=OD(),t=ND(),r=zE();pn.baseItemProperties=Object.assign(Object.assign({},r.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},t.Metrics.schema),{nullable:!0})}),pn.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(a){if(!a||!a.id)return!1;const s=a.id.split(":"),o=s[1]==="decentraland",c=s[3]==="base-avatars";return s.length===5&&o&&c}pn.isBaseAvatar=n;function i(a){if(!a||!a.id)return!1;const s=a.id.split(":");return s.length===5&&s[1]==="decentraland"&&s[3]==="base-emotes"}return pn.isBaseEmote=i,pn}var XR;function t6(){return XR||(XR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const t=Pe(),r=Za(),n=GE(),i=CD(),a=WE(),s=KE(),o=xE(),c=YE();(function(u){u.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),a.standardProperties),s.schema.properties.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:o.HideableWearableCategory.schema},hides:{type:"array",items:o.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:r.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity","mappings"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content","mappings"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const l={keyword:"_isThirdParty",validate:(f,p)=>!f||(0,s.isThirdParty)(p),errors:!1},d={keyword:"_isBaseAvatar",validate:(f,p)=>!f||(0,i.isBaseAvatar)(p),errors:!1};u.validate=(0,t.generateLazyValidator)(u.schema,[l,d,c.RangeMapping._fromLessThanOrEqualTo,c.Mappings._isMappingsValid])})(e.Wearable||(e.Wearable={}))})(ty)),ty}var JR;function r6(){return JR||(JR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var t=GE();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return t.WearableRepresentation}});var r=t6();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return r.Wearable}});var n=Za();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=ED();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var a=xE();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return a.HideableWearableCategory}})})(ey)),ey}var ry={},ny={},iy={},ay={},QR;function MD(){return QR||(QR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const t=Pe();(function(r){r.DANCE="dance",r.STUNT="stunt",r.GREETINGS="greetings",r.FUN="fun",r.POSES="poses",r.REACTIONS="reactions",r.HORROR="horror",r.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(ay)),ay}var sy={},ZR;function jD(){return ZR||(ZR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const t=Pe(),r=VE();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:r.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(sy)),sy}var oy={},eA;function DD(){return eA||(eA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutcomeGroup=e.StartAnimation=e.EmoteClip=e.ArmatureId=void 0;const t=Pe();var r;(function(i){i.Armature="Armature",i.Armature_Prop="Armature_Prop",i.Armature_Other="Armature_Other"})(r=e.ArmatureId||(e.ArmatureId={})),(function(i){i.schema={type:"string",enum:Object.values(i)},i.validate=(0,t.generateLazyValidator)(i.schema)})(r=e.ArmatureId||(e.ArmatureId={}));var n;(function(i){i.schema={type:"object",properties:{animation:{type:"string",minLength:1,errorMessage:"animation must be a non-empty string (GLB clip name)"}},required:["animation"],additionalProperties:!1,errorMessage:{required:{animation:"animation is required (GLB clip name)"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(n=e.EmoteClip||(e.EmoteClip={})),(function(i){i.schema={type:"object",properties:{loop:{type:"boolean",errorMessage:"startAnimation.loop must be a boolean"},[r.Armature]:Object.assign(Object.assign({},n.schema),{errorMessage:"startAnimation.Armature is required and must contain valid animation data"}),[r.Armature_Prop]:Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:"startAnimation.Armature_Prop must contain valid animation data when provided"}),audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["loop",r.Armature],additionalProperties:!1,errorMessage:{required:{loop:"startAnimation.loop is required",[r.Armature]:"startAnimation.Armature is required"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.StartAnimation||(e.StartAnimation={})),(function(i){i.schema={type:"object",properties:{title:{type:"string",minLength:1,errorMessage:"outcome.title must be a non-empty string"},loop:{type:"boolean",errorMessage:"outcome.loop must be a boolean"},clips:{type:"object",properties:Object.values(r).reduce((a,s)=>(a[s]=Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:`outcome.clips.${s} must contain valid animation data when provided`}),a),{}),additionalProperties:!0,minProperties:1,errorMessage:"outcome.clips must contain at least one armature animation"},audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["title","loop","clips"],additionalProperties:!1,errorMessage:{required:{title:"outcome.title is required",loop:"outcome.loop is required",clips:"outcome.clips is required"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.OutcomeGroup||(e.OutcomeGroup={}))})(oy)),oy}var tA;function LD(){return tA||(tA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const t=MD(),r=Pe(),n=jD(),i=DD();(function(a){a.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:t.EmoteCategory.schema,loop:{type:"boolean"},startAnimation:Object.assign(Object.assign({},i.StartAnimation.schema),{nullable:!0}),randomizeOutcomes:{type:"boolean",nullable:!0},outcomes:{type:"array",items:i.OutcomeGroup.schema,minItems:1,maxItems:3,nullable:!0}},required:["category","tags","representations","loop"],dependencies:{startAnimation:["randomizeOutcomes","outcomes"],randomizeOutcomes:["startAnimation","outcomes"],outcomes:["startAnimation","randomizeOutcomes"]},additionalProperties:!0},a.validate=(0,r.generateLazyValidator)(a.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(iy)),iy}var rA;function n6(){return rA||(rA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const t=$D(),r=Pe(),n=CD(),i=WE(),a=KE(),s=LD();(function(o){o.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),a.schema.properties),{emoteDataADR74:s.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const c={keyword:"_isThirdParty",validate:(l,d)=>!l||(0,t.isThirdParty)(d),errors:!1},u={keyword:"_isBaseEmote",validate:(l,d)=>!l||(0,n.isBaseEmote)(d),errors:!1};o.validate=(0,r.generateLazyValidator)(o.schema,[c,u,t.RangeMapping._fromLessThanOrEqualTo,t.Mappings._isMappingsValid])})(e.Emote||(e.Emote={}))})(ny)),ny}var cy={},nA;function i6(){return nA||(nA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const t=Pe();(function(r){r.SIMPLE="simple",r.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(cy)),cy}var uy={},iA;function a6(){return iA||(iA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=void 0;const t=Pe();(function(r){r.SIMPLE_OUTCOME="so",r.MULTIPLE_OUTCOME="mo",r.RANDOM_OUTCOME="ro"})(e.EmoteOutcomeType||(e.EmoteOutcomeType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmoteOutcomeType||(e.EmoteOutcomeType={}))})(uy)),uy}var aA;function s6(){return aA||(aA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=e.EmotePlayMode=e.EmoteCategory=e.StartAnimation=e.OutcomeGroup=e.EmoteClip=e.ArmatureId=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var t=n6();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return t.Emote}});var r=jD();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return r.EmoteRepresentationADR74}});var n=LD();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=DD();Object.defineProperty(e,"ArmatureId",{enumerable:!0,get:function(){return i.ArmatureId}}),Object.defineProperty(e,"EmoteClip",{enumerable:!0,get:function(){return i.EmoteClip}}),Object.defineProperty(e,"OutcomeGroup",{enumerable:!0,get:function(){return i.OutcomeGroup}}),Object.defineProperty(e,"StartAnimation",{enumerable:!0,get:function(){return i.StartAnimation}});var a=MD();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return a.EmoteCategory}});var s=i6();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return s.EmotePlayMode}});var o=a6();Object.defineProperty(e,"EmoteOutcomeType",{enumerable:!0,get:function(){return o.EmoteOutcomeType}})})(ry)),ry}var sA;function $D(){return sA||(sA=1,(function(e){var t=da&&da.__createBinding||(Object.create?(function(u,l,d,f){f===void 0&&(f=d);var p=Object.getOwnPropertyDescriptor(l,d);(!p||("get"in p?!l.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(u,f,p)}):(function(u,l,d,f){f===void 0&&(f=d),u[f]=l[d]})),r=da&&da.__exportStar||function(u,l){for(var d in u)d!=="default"&&!Object.prototype.hasOwnProperty.call(l,d)&&t(l,u,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=OD();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=AD();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var a=ND();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return a.Metrics}});var s=VE();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return s.BodyShape}});var o=WE();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return o.isStandard}});var c=KE();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return c.isThirdParty}}),r(YE(),e),r(r6(),e),r(s6(),e)})(da)),da}var ly={},dy={},oA;function Qc(){return oA||(oA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const t=Pe();var r;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(r=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(r)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:r.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,t.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(dy)),dy}var cA;function o6(){return cA||(cA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const t=es(),r=Qc(),n=Pe();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:r.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:t.IPFSv1.schema}},{properties:{entityId:t.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:r.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:t.IPFSv1.schema}},{properties:{entityId:t.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(ly)),ly}var fy={},py={},uA;function kD(){return uA||(uA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const t=es(),r=Pe();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[t.IPFSv1.schema,t.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,r.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(py)),py}var lA;function qD(){return lA||(lA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const t=es(),r=kD(),n=Pe();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[t.IPFSv1.schema,t.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:r.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(fy)),fy}var hy={},dA;function c6(){return dA||(dA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const t=Qc(),r=Pe();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:t.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,r.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(hy)),hy}var pa={},my={},fA;function u6(){return fA||(fA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const t=Za(),r=es(),n=Pe();var i;(function(a){a.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:r.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:r.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:r.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:t.WearableCategory.schema}},additionalProperties:!0},a.validate=(0,n.generateLazyValidator)(a.schema)})(i=e.Outfit||(e.Outfit={})),(function(a){a.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},a.validate=(0,n.generateLazyValidator)(a.schema)})(e.Outfits||(e.Outfits={}))})(my)),my}var pA;function l6(){return pA||(pA=1,(function(e){var t=pa&&pa.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=pa&&pa.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(u6(),e)})(pa)),pa}var ha={},yy={},hA;function BD(){return hA||(hA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationOptOutScope=e.NotificationType=void 0,(function(t){t.BADGE_GRANTED="badge_granted",t.BID_ACCEPTED="bid_accepted",t.BID_RECEIVED="bid_received",t.EVENTS_STARTED="events_started",t.EVENTS_STARTS_SOON="events_starts_soon",t.EVENT_CREATED="event_created",t.GOVERNANCE_ANNOUNCEMENT="governance_announcement",t.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",t.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",t.GOVERNANCE_CLIFF_ENDED="governance_cliff_ended",t.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",t.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",t.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",t.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",t.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",t.GOVERNANCE_TENDER_PASSED="governance_tender_passed",t.GOVERNANCE_WHALE_VOTE="governance_whale_vote",t.GOVERNANCE_VOTED_ON_BEHALF="governance_voted_on_behalf",t.ITEM_SOLD="item_sold",t.ITEM_PUBLISHED="item_published",t.LAND_RENTAL_ENDED="rental_ended",t.LAND_RENTED="rental_started",t.REWARD_ASSIGNED="reward_assignment",t.REWARD_CAMPAIGN_OUT_OF_FUNDS="reward_campaign_out_of_funds",t.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="reward_campaign_gas_price_higher_than_expected",t.REWARD_CAMPAIGN_OUT_OF_STOCK="reward_campaign_out_of_stock",t.REWARD_DELAYED="reward_delayed",t.REWARD_IN_PROGRESS="reward_in_progress",t.ROYALTIES_EARNED="royalties_earned",t.SOCIAL_SERVICE_FRIENDSHIP_REQUEST="social_service_friendship_request",t.SOCIAL_SERVICE_FRIENDSHIP_ACCEPTED="social_service_friendship_accepted",t.WORLDS_ACCESS_RESTORED="worlds_access_restored",t.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",t.WORLDS_MISSING_RESOURCES="worlds_missing_resources",t.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",t.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",t.CREDITS_GOAL_COMPLETED="credits_goal_completed",t.CREDITS_ON_DEMAND_GRANTED="credits_on_demand_granted",t.STREAMING_KEY_RESET="streaming_key_reset",t.STREAMING_KEY_REVOKE="streaming_key_revoke",t.STREAMING_KEY_EXPIRED="streaming_key_expired",t.STREAMING_TIME_EXCEEDED="streaming_time_exceeded",t.STREAMING_PLACE_UPDATED="streaming_place_updated",t.CREDITS_REMINDER_COMPLETE_GOALS="credits_reminder_complete_goals",t.CREDITS_REMINDER_CLAIM_CREDITS="credits_reminder_claim_credits",t.CREDITS_REMINDER_USAGE="credits_reminder_usage",t.CREDITS_REMINDER_USAGE_24_HOURS="credits_reminder_usage_24_hours",t.CREDITS_REMINDER_DO_NOT_MISS_OUT="credits_reminder_do_not_miss_out",t.CREDITS_NEW_SEASON_REMINDER="credits_new_season_reminder",t.REFERRAL_INVITED_USERS_ACCEPTED="referral_invited_users_accepted",t.REFERRAL_NEW_TIER_REACHED="referral_new_tier_reached",t.COMMUNITY_DELETED="community_deleted",t.COMMUNITY_DELETED_CONTENT_VIOLATION="community_deleted_content_violation",t.COMMUNITY_RENAMED="community_renamed",t.COMMUNITY_MEMBER_BANNED="community_member_banned",t.COMMUNITY_MEMBER_REMOVED="community_member_removed",t.COMMUNITY_REQUEST_TO_JOIN_RECEIVED="community_request_to_join_received",t.COMMUNITY_REQUEST_TO_JOIN_ACCEPTED="community_request_to_join_accepted",t.COMMUNITY_INVITE_RECEIVED="community_invite_received",t.COMMUNITY_OWNERSHIP_TRANSFERRED="community_ownership_transferred",t.COMMUNITY_POST_ADDED="community_post_added",t.COMMUNITY_VOICE_CHAT_STARTED="community_voice_chat_started",t.USER_BANNED_FROM_SCENE="user_banned_from_scene",t.USER_UNBANNED_FROM_SCENE="user_unbanned_from_scene",t.TRANSFER_RECEIVED="transfer_received",t.TIP_RECEIVED="tip_received",t.BANNED="banned",t.BAN_WARNING="ban_warning",t.BAN_LIFTED="ban_lifted"})(e.NotificationType||(e.NotificationType={})),(function(t){t.COMMUNITY="community"})(e.NotificationOptOutScope||(e.NotificationOptOutScope={}))})(yy)),yy}var gy={},_y={},mA;function UD(){return mA||(mA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionDetails=void 0;const t=Pe(),r=BD(),n={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},i=Object.values(r.NotificationType).reduce((a,s)=>(a[s]=n,a),{});(function(a){a.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(r.NotificationType),additionalProperties:!1,properties:i}}},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.SubscriptionDetails||(e.SubscriptionDetails={}))})(_y)),_y}var vy={},yA;function FD(){return yA||(yA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Email=void 0,(function(t){t.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const r=new RegExp(t.schema.pattern);t.validate=n=>r.test(n)})(e.Email||(e.Email={}))})(vy)),vy}var gA;function d6(){return gA||(gA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=void 0;const t=Pe(),r=UD(),n=es(),i=FD();(function(a){a.schema={type:"object",required:["address","details"],properties:{address:n.EthAddress.schema,email:Object.assign(Object.assign({},i.Email.schema),{nullable:!0}),details:r.SubscriptionDetails.schema}},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Subscription||(e.Subscription={}))})(gy)),gy}var _A;function f6(){return _A||(_A=1,(function(e){var t=ha&&ha.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ha&&ha.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(BD(),e),r(d6(),e),r(UD(),e)})(ha)),ha}var ma={},Ey={},vA;function Mr(){return vA||(vA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0,(function(t){(function(r){r.BLOCKCHAIN="blockchain",r.CATALYST_DEPLOYMENT="catalyst-deployment",r.WORLD="world",r.CLIENT="client",r.WEB="web",r.MARKETPLACE="marketplace",r.REWARDS="rewards",r.BADGE="badge",r.ASSET_BUNDLE="asset-bundle",r.SOCIAL_SERVICE="social-service",r.CREDITS_SERVICE="credits-service",r.STREAMING="streaming",r.COMMS="comms",r.REFERRAL="referral",r.COMMUNITY="community",r.CAMERA="camera",r.EVENT="event",r.GOVERNANCE="governance",r.MODERATION="moderation"})(t.Type||(t.Type={})),(function(r){(function(n){n.BID_ACCEPTED="bid-accepted",n.ITEM_SOLD="item-sold",n.RENTAL_ENDED="land-rental-ended",n.RENTAL_STARTED="land-rental-started",n.ROYALTIES_EARNED="royalties-earned",n.COLLECTION_CREATED="collection-created",n.ITEM_PUBLISHED="item-published",n.TRANSFER_RECEIVED="transfer-received",n.TIP_RECEIVED="tip-received"})(r.Blockchain||(r.Blockchain={})),(function(n){n.BID_RECEIVED="bid-received"})(r.Marketplace||(r.Marketplace={})),(function(n){n.SCENE="scene",n.PROFILE="profile",n.WEARABLE="wearable",n.STORE="store",n.EMOTE="emote",n.OUTFITS="outfits"})(r.CatalystDeployment||(r.CatalystDeployment={})),(function(n){n.DEPLOYMENT="deployment",n.WORLD_SETTINGS_CHANGED="world_settings_changed",n.WORLD_SCENES_UNDEPLOYMENT="world_scenes_undeployment",n.WORLD_UNDEPLOYMENT="world_undeployment",n.WORLD_SPAWN_COORDINATE_SET="world_spawn_coordinate_set",n.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",n.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",n.WORLDS_ACCESS_RESTORED="worlds_access_restored",n.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",n.WORLDS_MISSING_RESOURCES="worlds_missing_resources"})(r.Worlds||(r.Worlds={})),(function(n){n.LOGGED_IN="logged-in",n.LOGGED_IN_CACHED="logged-in-cached",n.MOVE_TO_PARCEL="move-to-parcel",n.USED_EMOTE="used-emote",n.PASSPORT_OPENED="passport-opened",n.WALKED_DISTANCE="walked-distance",n.VERTICAL_HEIGHT_REACHED="vertical-height-reached"})(r.Client||(r.Client={})),(function(n){n.AUTH_IDENTIFY="auth-identify"})(r.Web||(r.Web={})),(function(n){n.REWARD_IN_PROGRESS="reward-in-progress",n.REWARD_ASSIGNED="reward-assigned",n.CAMPAIGN_OUT_OF_FUNDS="campaign-out-of-funds",n.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="campaign-gas-price-higher-than-expected",n.CAMPAIGN_OUT_OF_STOCK="campaign-out-of-stock",n.REWARD_DELAYED="reward-delayed"})(r.Rewards||(r.Rewards={})),(function(n){n.GRANTED="badge-granted"})(r.Badge||(r.Badge={})),(function(n){n.CONVERTED="converted",n.MANUALLY_QUEUED="manually-queued"})(r.AssetBundle||(r.AssetBundle={})),(function(n){n.FRIENDSHIP_REQUEST="friendship-request",n.FRIENDSHIP_ACCEPTED="friendship-accepted"})(r.SocialService||(r.SocialService={})),(function(n){n.CREDITS_GOAL_COMPLETED="credits-goal-completed",n.COMPLETE_GOALS_REMINDER="complete-goals-reminder",n.CLAIM_CREDITS_REMINDER="claim-credits-reminder",n.DO_NOT_MISS_OUT_REMINDER="do-not-miss-out-reminder",n.USAGE_REMINDER="usage-reminder",n.USAGE_24_HOURS_REMINDER="usage-24-hours-reminder",n.ON_DEMAND_CREDITS_GRANTED="on-demand-credits-granted",n.NEW_SEASON_REMINDER="new-season-reminder"})(r.CreditsService||(r.CreditsService={})),(function(n){n.STREAMING_KEY_RESET="streaming-key-reset",n.STREAMING_KEY_REVOKE="streaming-key-revoke",n.STREAMING_KEY_EXPIRED="streaming-key-expired",n.STREAMING_TIME_EXCEEDED="streaming-time-exceeded",n.STREAMING_PLACE_UPDATED="streaming-place-updated",n.COMMUNITY_STREAMING_ENDED="community-streaming-ended"})(r.Streaming||(r.Streaming={})),(function(n){n.USER_JOINED_ROOM="user-joined-room",n.USER_LEFT_ROOM="user-left-room",n.USER_BANNED_FROM_SCENE="user-banned-from-scene",n.USER_UNBANNED_FROM_SCENE="user-unbanned-from-scene"})(r.Comms||(r.Comms={})),(function(n){n.REFERRAL_INVITED_USERS_ACCEPTED="referral-invited-users-accepted",n.REFERRAL_NEW_TIER_REACHED="referral-new-tier-reached"})(r.Referral||(r.Referral={})),(function(n){n.DELETED="community-deleted",n.DELETED_CONTENT_VIOLATION="community-deleted-content-violation",n.RENAMED="community-renamed",n.MEMBER_BANNED="community-member-banned",n.MEMBER_LEFT="community-member-left",n.MEMBER_REMOVED="community-member-removed",n.REQUEST_TO_JOIN_RECEIVED="community-request-to-join-received",n.REQUEST_TO_JOIN_ACCEPTED="community-request-to-join-accepted",n.INVITE_RECEIVED="community-invite-received",n.OWNERSHIP_TRANSFERRED="community-ownership-transferred",n.POST_ADDED="community-post-added",n.VOICE_CHAT_STARTED="community-voice-chat-started"})(r.Community||(r.Community={})),(function(n){n.PHOTO_TAKEN="photo-taken",n.PHOTO_PRIVACY_CHANGED="photo-privacy-changed"})(r.Camera||(r.Camera={})),(function(n){n.EVENT_CREATED="event-created",n.EVENT_STARTS_SOON="event-starts-soon",n.EVENT_STARTED="event-started",n.EVENT_ENDED="event-ended"})(r.Event||(r.Event={})),(function(n){n.PROPOSAL_ENACTED="governance_proposal_enacted",n.COAUTHOR_REQUESTED="governance_coauthor_requested",n.PITCH_PASSED="governance_pitch_passed",n.TENDER_PASSED="governance_tender_passed",n.AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",n.VOTING_ENDED_VOTER="governance_voting_ended_voter",n.NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",n.NEW_COMMENT_ON_PROJECT_UPDATED="governance_new_comment_on_project_update",n.WHALE_VOTE="governance_whale_vote",n.VOTED_ON_BEHALF="governance_voted_on_behalf",n.CLIFF_ENDED="governance_cliff_ended"})(r.Governance||(r.Governance={})),(function(n){n.USER_BAN_CREATED="user-ban-created",n.USER_BAN_LIFTED="user-ban-lifted",n.USER_WARNING_CREATED="user-warning-created"})(r.Moderation||(r.Moderation={}))})(t.SubType||(t.SubType={}))})(e.Events||(e.Events={}))})(Ey)),Ey}var by={},EA;function p6(){return EA||(EA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TipReceivedEvent=e.TransferReceivedEvent=e.CollectionCreatedEvent=e.RoyaltiesEarnedEvent=e.RentalStartedEvent=e.RentalEndedEvent=e.ItemPublishedEvent=e.ItemSoldEvent=e.BidAcceptedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.BID_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BidAcceptedEvent||(e.BidAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ITEM_SOLD},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},buyer:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},tokenId:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string"}},required:["address","image","seller","category","link","network","title","description"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ItemSoldEvent||(e.ItemSoldEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ITEM_PUBLISHED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},itemId:{type:"string"},network:{type:"string"},urn:{type:"string"}},required:["creator","category","itemId","network","urn"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ItemPublishedEvent||(e.ItemPublishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.RENTAL_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RentalEndedEvent||(e.RentalEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.RENTAL_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RentalStartedEvent||(e.RentalStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.ROYALTIES_EARNED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},royaltiesCut:{type:"string"},royaltiesCollector:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","image","category","link","royaltiesCut","royaltiesCollector","network","title"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.RoyaltiesEarnedEvent||(e.RoyaltiesEarnedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.COLLECTION_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},name:{type:"string"}},required:["creator","name"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CollectionCreatedEvent||(e.CollectionCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.TRANSFER_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},tokenUri:{type:"string",nullable:!0}},required:["senderAddress","receiverAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.TransferReceivedEvent||(e.TransferReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BLOCKCHAIN},subType:{type:"string",const:r.Events.SubType.Blockchain.TIP_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},amount:{type:"string"}},required:["senderAddress","receiverAddress","amount"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.TipReceivedEvent||(e.TipReceivedEvent={}))})(by)),by}var Sy={},bA;function h6(){return bA||(bA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalystDeploymentEvent=void 0;const t=Qc(),r=Pe(),n=qD(),i=Mr();(function(a){a.schema={type:"object",properties:{type:{type:"string",const:i.Events.Type.CATALYST_DEPLOYMENT},subType:{type:"string",enum:Object.values(i.Events.SubType.CatalystDeployment)},key:{type:"string"},timestamp:{type:"number",minimum:1},entity:n.Entity.schema,authChain:t.AuthChain.schema},required:["type","subType","entity","authChain","key","timestamp"],additionalProperties:!1},a.validate=(0,r.generateLazyValidator)(a.schema)})(e.CatalystDeploymentEvent||(e.CatalystDeploymentEvent={}))})(Sy)),Sy}var Ty={},SA;function m6(){return SA||(SA=1,Object.defineProperty(Ty,"__esModule",{value:!0})),Ty}var wy={},TA;function y6(){return TA||(TA=1,Object.defineProperty(wy,"__esModule",{value:!0})),wy}var Iy={},wA;function g6(){return wA||(wA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BidReceivedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MARKETPLACE},subType:{type:"string",const:r.Events.SubType.Marketplace.BID_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BidReceivedEvent||(e.BidReceivedEvent={}))})(Iy)),Iy}var Ry={},jo={},IA;function mf(){if(IA)return jo;IA=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.createEventSchema=void 0;function e(t,r,n){return{type:"object",properties:{type:{type:"string",const:t},subType:{type:"string",const:r},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:n},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}}return jo.createEventSchema=e,jo}var RA;function _6(){return RA||(RA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RewardDelayedEvent=e.CampaignOutOfStockEvent=e.CampaignGasPriceHigherThanExpectedEvent=e.CampaignOutOfFundsEvent=e.RewardAssignedEvent=e.RewardInProgressEvent=void 0;const t=Pe(),r=Mr(),n=mf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},beneficiary:{type:"string"},tokenName:{type:"string"},tokenImage:{type:"string"},tokenRarity:{type:"string",nullable:!0},tokenCategory:{type:"string",nullable:!0}},required:["title","description","beneficiary","tokenName","tokenImage"],additionalProperties:!1},a={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},owner:{type:"string"},campaignId:{type:"string"},campaignName:{type:"string"}},required:["title","description","owner","campaignId","campaignName"],additionalProperties:!1};(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_IN_PROGRESS,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardInProgressEvent||(e.RewardInProgressEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_ASSIGNED,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardAssignedEvent||(e.RewardAssignedEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_OUT_OF_FUNDS,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignOutOfFundsEvent||(e.CampaignOutOfFundsEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignGasPriceHigherThanExpectedEvent||(e.CampaignGasPriceHigherThanExpectedEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.CAMPAIGN_OUT_OF_STOCK,a),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.CampaignOutOfStockEvent||(e.CampaignOutOfStockEvent={})),(function(s){s.schema=(0,n.createEventSchema)(r.Events.Type.REWARDS,r.Events.SubType.Rewards.REWARD_DELAYED,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardDelayedEvent||(e.RewardDelayedEvent={}))})(Ry)),Ry}var Ay={},AA;function v6(){return AA||(AA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreditsClaimReminderEvent=e.CreditsDoNotMissOutReminderEvent=e.CreditsUsage24HoursReminderEvent=e.CreditsNewSeasonReminderEvent=e.CreditsUsageReminderEvent=e.CreditsCompleteGoalsReminderEvent=e.CreditsGoalCompletedEvent=e.CreditsOnDemandEvent=e.FriendshipAcceptedEvent=e.FriendshipRequestEvent=e.AssetBundleConversionManuallyQueuedEvent=e.AssetBundleConversionFinishedEvent=e.BadgeGrantedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.BADGE},subType:{type:"string",const:r.Events.SubType.Badge.GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{badgeId:{type:"string"},badgeTierName:{type:"string",nullable:!0},badgeName:{type:"string"},badgeImageUrl:{type:"string"},address:{type:"string"}},required:["badgeId","badgeName","badgeImageUrl","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.BadgeGrantedEvent||(e.BadgeGrantedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:r.Events.SubType.AssetBundle.CONVERTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},statusCode:{type:"number"},isLods:{type:"boolean"},isWorld:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","statusCode","isLods","isWorld","version"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.AssetBundleConversionFinishedEvent||(e.AssetBundleConversionFinishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:r.Events.SubType.AssetBundle.MANUALLY_QUEUED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},isLods:{type:"boolean"},isPriority:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","isLods"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.AssetBundleConversionManuallyQueuedEvent||(e.AssetBundleConversionManuallyQueuedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:r.Events.SubType.SocialService.FRIENDSHIP_REQUEST},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},message:{type:"string",nullable:!0}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.FriendshipRequestEvent||(e.FriendshipRequestEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:r.Events.SubType.SocialService.FRIENDSHIP_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.FriendshipAcceptedEvent||(e.FriendshipAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.ON_DEMAND_CREDITS_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creditsGranted:{type:"number",minimum:1},address:{type:"string"},granterAddress:{type:"string"}},required:["creditsGranted","address","granterAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsOnDemandEvent||(e.CreditsOnDemandEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.CREDITS_GOAL_COMPLETED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{goalId:{type:"string"},creditsObtained:{type:"number",minimum:0},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},address:{type:"string"}},required:["goalId","creditsObtained","seasonId","weekNumber","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsGoalCompletedEvent||(e.CreditsGoalCompletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.COMPLETE_GOALS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},pendingGoalIds:{type:"array",items:{type:"string"},minItems:1}},required:["address","seasonId","weekNumber","pendingGoalIds"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsCompleteGoalsReminderEvent||(e.CreditsCompleteGoalsReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.USAGE_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"},expirationDay:{type:"string"}},required:["address","creditsAmount","expirationDate","expirationDay"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsUsageReminderEvent||(e.CreditsUsageReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.NEW_SEASON_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{addresses:{type:"array",items:{type:"string"}},seasonName:{type:"string"},startDate:{type:"string"},endDate:{type:"string"}},required:["addresses","seasonName","startDate","endDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsNewSeasonReminderEvent||(e.CreditsNewSeasonReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.USAGE_24_HOURS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"}},required:["address","creditsAmount","expirationDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsUsage24HoursReminderEvent||(e.CreditsUsage24HoursReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.DO_NOT_MISS_OUT_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"}},required:["address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsDoNotMissOutReminderEvent||(e.CreditsDoNotMissOutReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:r.Events.SubType.CreditsService.CLAIM_CREDITS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1}},required:["address","seasonId","weekNumber"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CreditsClaimReminderEvent||(e.CreditsClaimReminderEvent={}))})(Ay)),Ay}var Oy={},OA;function E6(){return OA||(OA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityStreamingEndedEvent=e.StreamingPlaceUpdatedEvent=e.StreamingTimeExceededEvent=e.StreamingKeyExpiredEvent=e.StreamingKeyRevokeEvent=e.StreamingKeyResetEvent=void 0;const t=Pe(),r=Mr(),n=mf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},position:{type:"string"},worldName:{type:"string",nullable:!0},isWorld:{type:"boolean"},url:{type:"string"},address:{type:"string"},image:{type:"string"}},required:["position","isWorld","url","title","description","address","image"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_RESET,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyResetEvent||(e.StreamingKeyResetEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_REVOKE,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyRevokeEvent||(e.StreamingKeyRevokeEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_KEY_EXPIRED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyExpiredEvent||(e.StreamingKeyExpiredEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_TIME_EXCEEDED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingTimeExceededEvent||(e.StreamingTimeExceededEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.STREAMING_PLACE_UPDATED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingPlaceUpdatedEvent||(e.StreamingPlaceUpdatedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.STREAMING,r.Events.SubType.Streaming.COMMUNITY_STREAMING_ENDED,{type:"object",properties:{communityId:{type:"string"},totalParticipants:{type:"number"}},required:["communityId","totalParticipants"],additionalProperties:!1}),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.CommunityStreamingEndedEvent||(e.CommunityStreamingEndedEvent={}))})(Oy)),Oy}var Ny={},NA;function b6(){return NA||(NA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserUnbannedFromSceneEvent=e.UserBannedFromSceneEvent=e.UserLeftRoomEvent=e.UserJoinedRoomEvent=e.RoomType=void 0;const t=Pe(),r=Mr();var n;(function(i){i.PRIVATE_MESSAGE="private-message",i.VOICE_CHAT="voice-chat",i.COMMUNITY_VOICE_CHAT="community-voice-chat",i.ISLAND="island",i.SCENE="scene",i.WORLD="world",i.UNKNOWN="unknown"})(n=e.RoomType||(e.RoomType={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_JOINED_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{parcel:{type:"string"},sceneId:{type:"string"},userAddress:{type:"string"},realmName:{type:"string"},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)}},required:["parcel","sceneId","userAddress","realmName","isWorld","roomType"]}},required:["type","subType","key","timestamp","metadata"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserJoinedRoomEvent||(e.UserJoinedRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_LEFT_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},realmName:{type:"string"},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)},sceneId:{type:"string",nullable:!0},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0}},required:["isWorld","userAddress","realmName","roomType"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserLeftRoomEvent||(e.UserLeftRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_BANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserBannedFromSceneEvent||(e.UserBannedFromSceneEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMS},subType:{type:"string",const:r.Events.SubType.Comms.USER_UNBANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.UserUnbannedFromSceneEvent||(e.UserUnbannedFromSceneEvent={}))})(Ny)),Ny}var Py={},PA;function S6(){return PA||(PA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReferralNewTierReachedEvent=e.ReferralInvitedUsersAcceptedEvent=void 0;const t=Pe(),r=Mr(),n=mf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},address:{type:"string"},tier:{type:"number",minimum:1},url:{type:"string"},image:{type:"string"},invitedUserAddress:{type:"string"},invitedUsers:{type:"number",minimum:1},rarity:{type:"string",nullable:!0}},required:["address","tier","url","title","description","image","invitedUserAddress"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.REFERRAL,r.Events.SubType.Referral.REFERRAL_INVITED_USERS_ACCEPTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.ReferralInvitedUsersAcceptedEvent||(e.ReferralInvitedUsersAcceptedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.REFERRAL,r.Events.SubType.Referral.REFERRAL_NEW_TIER_REACHED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.ReferralNewTierReachedEvent||(e.ReferralNewTierReachedEvent={}))})(Py)),Py}var Cy={},CA;function T6(){return CA||(CA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityVoiceChatStartedEvent=e.CommunityOwnershipTransferredEvent=e.CommunityPostAddedEvent=e.CommunityInviteReceivedEvent=e.CommunityRequestToJoinAcceptedEvent=e.CommunityRequestToJoinReceivedEvent=e.CommunityMemberRemovedEvent=e.CommunityMemberLeftEvent=e.CommunityMemberBannedEvent=e.CommunityRenamedEvent=e.CommunityDeletedContentViolationEvent=e.CommunityDeletedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.DELETED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","name","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityDeletedEvent||(e.CommunityDeletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.DELETED_CONTENT_VIOLATION},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},ownerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","ownerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityDeletedContentViolationEvent||(e.CommunityDeletedContentViolationEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.RENAMED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},oldName:{type:"string"},newName:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","oldName","newName","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRenamedEvent||(e.CommunityRenamedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_BANNED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberBannedEvent||(e.CommunityMemberBannedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_LEFT},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},memberAddress:{type:"string"}},required:["id","memberAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberLeftEvent||(e.CommunityMemberLeftEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.MEMBER_REMOVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityMemberRemovedEvent||(e.CommunityMemberRemovedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.REQUEST_TO_JOIN_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},memberName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","memberAddress","memberName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinReceivedEvent||(e.CommunityRequestToJoinReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.REQUEST_TO_JOIN_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinAcceptedEvent||(e.CommunityRequestToJoinAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.INVITE_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityInviteReceivedEvent||(e.CommunityInviteReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.POST_ADDED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},postId:{type:"string"},authorAddress:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["addressesToNotify","communityId","communityName","thumbnailUrl","postId","authorAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityPostAddedEvent||(e.CommunityPostAddedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.OWNERSHIP_TRANSFERRED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},oldOwnerAddress:{type:"string"},newOwnerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","oldOwnerAddress","newOwnerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityOwnershipTransferredEvent||(e.CommunityOwnershipTransferredEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.COMMUNITY},subType:{type:"string",const:r.Events.SubType.Community.VOICE_CHAT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.CommunityVoiceChatStartedEvent||(e.CommunityVoiceChatStartedEvent={}))})(Cy)),Cy}var My={},MA;function w6(){return MA||(MA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PhotoTakenEvent=e.PhotoPrivacyChangedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CAMERA},subType:{type:"string",const:r.Events.SubType.Camera.PHOTO_PRIVACY_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"}},required:["userAddress","photoId","isPublic"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PhotoPrivacyChangedEvent||(e.PhotoPrivacyChangedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.CAMERA},subType:{type:"string",const:r.Events.SubType.Camera.PHOTO_TAKEN},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sceneId:{type:"string"},userAddress:{type:"string"},realm:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"},users:{type:"array",items:{type:"object",properties:{address:{type:"string"},isEmoting:{type:"boolean"}},required:["address","isEmoting"],additionalProperties:!1}},placeId:{type:"string",nullable:!0}},required:["userAddress","realm","photoId","isPublic","users"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PhotoTakenEvent||(e.PhotoTakenEvent={}))})(My)),My}var jy={},jA;function I6(){return jA||(jA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventEndedEvent=e.EventCreatedEvent=e.EventStartsSoonEvent=e.EventStartedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},communityId:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventStartedEvent||(e.EventStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_STARTS_SOON},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},startsAt:{type:"string"},endsAt:{type:"string"},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link","startsAt","endsAt"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventStartsSoonEvent||(e.EventStartsSoonEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},communityId:{type:"string"},communityName:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventCreatedEvent||(e.EventCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.EVENT},subType:{type:"string",const:r.Events.SubType.Event.EVENT_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{communityId:{type:"string",nullable:!0},totalAttendees:{type:"number"}},required:["totalAttendees"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.EventEndedEvent||(e.EventEndedEvent={}))})(jy)),jy}var Dy={},DA;function R6(){return DA||(DA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GovernanceCliffEndedEvent=e.GovernanceVotedOnBehalfEvent=e.GovernanceWhaleVoteEvent=e.GovernanceNewCommentOnProjectUpdatedEvent=e.GovernanceNewCommentOnProposalEvent=e.GovernanceVotingEndedVoterEvent=e.GovernanceAuthoredProposalFinishedEvent=e.GovernanceTenderPassedEvent=e.GovernancePitchPassedEvent=e.GovernanceCoauthorRequestedEvent=e.GovernanceProposalEnactedEvent=void 0;const t=Pe(),r=Mr(),n=mf(),i={type:"object",properties:{proposalId:{type:"string"},proposalTitle:{type:"string"},title:{type:"string"},description:{type:"string"},link:{type:"string"},address:{type:"string"}},required:["proposalId","proposalTitle","title","description","link","address"],additionalProperties:!1};(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.PROPOSAL_ENACTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceProposalEnactedEvent||(e.GovernanceProposalEnactedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.COAUTHOR_REQUESTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceCoauthorRequestedEvent||(e.GovernanceCoauthorRequestedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.PITCH_PASSED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernancePitchPassedEvent||(e.GovernancePitchPassedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.TENDER_PASSED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceTenderPassedEvent||(e.GovernanceTenderPassedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.AUTHORED_PROPOSAL_FINISHED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceAuthoredProposalFinishedEvent||(e.GovernanceAuthoredProposalFinishedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.VOTING_ENDED_VOTER,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceVotingEndedVoterEvent||(e.GovernanceVotingEndedVoterEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.NEW_COMMENT_ON_PROPOSAL,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceNewCommentOnProposalEvent||(e.GovernanceNewCommentOnProposalEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.NEW_COMMENT_ON_PROJECT_UPDATED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceNewCommentOnProjectUpdatedEvent||(e.GovernanceNewCommentOnProjectUpdatedEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.WHALE_VOTE,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceWhaleVoteEvent||(e.GovernanceWhaleVoteEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.VOTED_ON_BEHALF,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceVotedOnBehalfEvent||(e.GovernanceVotedOnBehalfEvent={})),(function(a){a.schema=(0,n.createEventSchema)(r.Events.Type.GOVERNANCE,r.Events.SubType.Governance.CLIFF_ENDED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceCliffEndedEvent||(e.GovernanceCliffEndedEvent={}))})(Dy)),Dy}var Ly={},LA;function A6(){return LA||(LA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldsMissingResourcesEvent=e.WorldsAccessRestrictedEvent=e.WorldsPermissionGrantedEvent=e.WorldsPermissionRevokedEvent=e.WorldsAccessRestoredEvent=e.WorldDeploymentEvent=e.WorldUndeploymentEvent=e.WorldScenesUndeploymentEvent=e.WorldSpawnCoordinateSetEvent=e.WorldSettingsChangedEvent=void 0;const t=Qc(),r=Pe(),n=Mr();(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SETTINGS_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"},title:{type:"string",nullable:!0},description:{type:"string",nullable:!0},contentRating:{type:"string",nullable:!0},skyboxTime:{type:"number",nullable:!0},categories:{type:"array",items:{type:"string"},nullable:!0},singlePlayer:{type:"boolean",nullable:!0},showInPlaces:{type:"boolean",nullable:!0},thumbnailUrl:{type:"string",nullable:!0},accessType:{type:"string",nullable:!0}},required:["worldName"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}})(e.WorldSettingsChangedEvent||(e.WorldSettingsChangedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SPAWN_COORDINATE_SET},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string",pattern:"^[a-zA-Z0-9_-]+\\.dcl\\.eth|[a-zA-Z0-9_-]+\\.eth$"},oldCoordinate:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"],additionalProperties:!1,nullable:!0},newCoordinate:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"],additionalProperties:!1}},required:["name","oldCoordinate","newCoordinate"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldSpawnCoordinateSetEvent||(e.WorldSpawnCoordinateSetEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_SCENES_UNDEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"},scenes:{type:"array",items:{type:"object",properties:{entityId:{type:"string"},baseParcel:{type:"string"}},required:["entityId","baseParcel"],additionalProperties:!1},minItems:1}},required:["worldName","scenes"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldScenesUndeploymentEvent||(e.WorldScenesUndeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLD_UNDEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"}},required:["worldName"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldUndeploymentEvent||(e.WorldUndeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.DEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},entity:{type:"object",properties:{entityId:{type:"string"},authChain:t.AuthChain.schema},additionalProperties:!0,required:["entityId","authChain"]},contentServerUrls:{type:"array",items:{type:"string"},nullable:!0},force:{type:"boolean",nullable:!0},animation:{type:"string",nullable:!0},lods:{type:"array",items:{type:"string"},nullable:!0}},required:["type","subType","key","timestamp","entity"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldDeploymentEvent||(e.WorldDeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTORED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},attendee:{type:"string"}},required:["title","description","url","attendee"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsAccessRestoredEvent||(e.WorldsAccessRestoredEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_REVOKED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsPermissionRevokedEvent||(e.WorldsPermissionRevokedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsPermissionGrantedEvent||(e.WorldsPermissionGrantedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTRICTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsAccessRestrictedEvent||(e.WorldsAccessRestrictedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_MISSING_RESOURCES},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","url","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.WorldsMissingResourcesEvent||(e.WorldsMissingResourcesEvent={}))})(Ly)),Ly}var $y={},$A;function O6(){return $A||($A=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserWarningCreatedEvent=e.UserBanLiftedEvent=e.UserBanCreatedEvent=void 0;const t=Pe(),r=Mr();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_BAN_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},bannedAddress:{type:"string"},bannedBy:{type:"string"},reason:{type:"string"},bannedAt:{type:"number",minimum:0},expiresAt:{type:"number",nullable:!0,minimum:0},customMessage:{type:"string",nullable:!0}},required:["id","bannedAddress","bannedBy","reason","bannedAt","expiresAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserBanCreatedEvent||(e.UserBanCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_BAN_LIFTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},bannedAddress:{type:"string"},liftedBy:{type:"string"},liftedAt:{type:"number",minimum:0}},required:["id","bannedAddress","liftedBy","liftedAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserBanLiftedEvent||(e.UserBanLiftedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.MODERATION},subType:{type:"string",const:r.Events.SubType.Moderation.USER_WARNING_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},warnedAddress:{type:"string"},warnedBy:{type:"string"},reason:{type:"string"},warnedAt:{type:"number",minimum:0}},required:["id","warnedAddress","warnedBy","reason","warnedAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.UserWarningCreatedEvent||(e.UserWarningCreatedEvent={}))})($y)),$y}var kA;function N6(){return kA||(kA=1,(function(e){var t=ma&&ma.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ma&&ma.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Mr(),e),r(p6(),e),r(h6(),e),r(m6(),e),r(y6(),e),r(g6(),e),r(_6(),e),r(v6(),e),r(E6(),e),r(b6(),e),r(S6(),e),r(T6(),e),r(w6(),e),r(I6(),e),r(R6(),e),r(A6(),e),r(O6(),e)})(ma)),ma}var qA;function XE(){return qA||(qA=1,(function(e){var t=ua&&ua.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ua&&ua.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(J5(),e),r(Z5(),e),r($D(),e),r(zE(),e),r(PD(),e),r(o6(),e),r(qD(),e),r(c6(),e),r(l6(),e),r(f6(),e),r(N6(),e)})(ua)),ua}var BA;function P6(){return BA||(BA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const t=hf(),r=Za(),n=GE(),i=Pe(),a=XE();(function(s){s.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},t.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:r.WearableCategory.schema},hides:{type:"array",items:r.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:r.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:a.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},s.validate=(0,i.generateLazyValidator)(s.schema)})(e.WearableJson||(e.WearableJson={}))})(Pm)),Pm}var UA;function C6(){return UA||(UA=1,(function(e){var t=ca&&ca.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ca&&ca.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(K5(),e),r(P6(),e)})(ca)),ca}var FA;function M6(){return FA||(FA=1,(function(e){var t=sa&&sa.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=sa&&sa.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Y5(),e),r(C6(),e)})(sa)),sa}var ya={},ky={},HA;function j6(){return HA||(HA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const t=Pe();(function(r){r.MOST_SALES="most_sales",r.MOST_PURCHASES="most_purchases",r.MOST_SPENT="most_spent",r.MOST_EARNED="most_earned",r.MOST_ROYALTIES="most_royalties",r.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(r){r.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Account||(e.Account={}))})(ky)),ky}var qy={},By={},VA;function HD(){return VA||(VA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const t=Pe(),r=wn();var n;(function(a){a.ETHEREUM_MAINNET="Ethereum Mainnet",a.ETHEREUM_ROPSTEN="Ropsten",a.ETHEREUM_RINKEBY="Rinkeby",a.ETHEREUM_GOERLI="Goerli",a.ETHEREUM_KOVAN="Kovan",a.ETHEREUM_SEPOLIA="Sepolia",a.MATIC_MAINNET="Polygon",a.MATIC_MUMBAI="Mumbai",a.MATIC_AMOY="Amoy",a.AVALANCHE_MAINNET="Avalanche",a.BINANCE_MAINNET="Binance Smart Chain",a.ARBITRUM_MAINNET="Arbitrum",a.OPTIMISM_MAINNET="Optimism",a.FANTOM_MAINNET="Fantom"})(n=e.ChainName||(e.ChainName={}));function i(a){switch(a){case n.ETHEREUM_MAINNET:return r.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return r.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return r.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return r.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return r.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return r.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return r.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return r.ChainId.MATIC_MUMBAI;case n.MATIC_AMOY:return r.ChainId.MATIC_AMOY;case n.AVALANCHE_MAINNET:return r.ChainId.AVALANCHE_MAINNET;case n.BINANCE_MAINNET:return r.ChainId.BSC_MAINNET;case n.ARBITRUM_MAINNET:return r.ChainId.ARBITRUM_MAINNET;case n.OPTIMISM_MAINNET:return r.ChainId.OPTIMISM_MAINNET;case n.FANTOM_MAINNET:return r.ChainId.FANTOM_MAINNET;default:return null}}e.getChainId=i,(function(a){a.schema={type:"string",enum:Object.values(a)},a.validate=(0,t.generateLazyValidator)(a.schema)})(n=e.ChainName||(e.ChainName={}))})(By)),By}var Uy={},xA;function Tn(){return xA||(xA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const t=Pe();(function(r){r.ETHEREUM="ETHEREUM",r.MATIC="MATIC",r.AVALANCHE="AVALANCHE",r.BSC="BINANCE SMART CHAIN",r.OPTIMISM="OPTIMISM",r.ARBITRUM="ARBITRUM",r.FANTOM="FANTOM"})(e.Network||(e.Network={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Network||(e.Network={}))})(Uy)),Uy}var GA;function wn(){return GA||(GA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const t=Pe(),r=HD(),n=Tn();var i;(function(u){u[u.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",u[u.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",u[u.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",u[u.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",u[u.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",u[u.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",u[u.MATIC_MAINNET=137]="MATIC_MAINNET",u[u.MATIC_MUMBAI=80001]="MATIC_MUMBAI",u[u.MATIC_AMOY=80002]="MATIC_AMOY",u[u.BSC_MAINNET=56]="BSC_MAINNET",u[u.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",u[u.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",u[u.FANTOM_MAINNET=250]="FANTOM_MAINNET",u[u.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(i=e.ChainId||(e.ChainId={}));function a(u){switch(u){case i.ETHEREUM_MAINNET:return r.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return r.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return r.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return r.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return r.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return r.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return r.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return r.ChainName.MATIC_MUMBAI;case i.MATIC_AMOY:return r.ChainName.MATIC_AMOY;case i.BSC_MAINNET:return r.ChainName.BINANCE_MAINNET;case i.ARBITRUM_MAINNET:return r.ChainName.ARBITRUM_MAINNET;case i.OPTIMISM_MAINNET:return r.ChainName.OPTIMISM_MAINNET;case i.FANTOM_MAINNET:return r.ChainName.FANTOM_MAINNET;case i.AVALANCHE_MAINNET:return r.ChainName.AVALANCHE_MAINNET;default:return null}}e.getChainName=a;function s(u){switch(u){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";case i.MATIC_AMOY:return"amoy";default:return""}}e.getURNProtocol=s;function o(u){const l={[n.Network.BSC]:i.BSC_MAINNET,[n.Network.OPTIMISM]:i.OPTIMISM_MAINNET,[n.Network.ARBITRUM]:i.ARBITRUM_MAINNET,[n.Network.FANTOM]:i.FANTOM_MAINNET,[n.Network.AVALANCHE]:i.AVALANCHE_MAINNET};switch(u){case i.ETHEREUM_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},l);case i.ETHEREUM_ROPSTEN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI},l);case i.ETHEREUM_RINKEBY:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI},l);case i.ETHEREUM_GOERLI:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI},l);case i.ETHEREUM_KOVAN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI},l);case i.ETHEREUM_SEPOLIA:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_AMOY},l);case i.MATIC_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},l);case i.MATIC_MUMBAI:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI},l);case i.MATIC_AMOY:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_AMOY,[n.Network.MATIC]:i.MATIC_AMOY},l);default:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},l)}}e.getNetworkMapping=o;function c(u){switch(u){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:case i.MATIC_AMOY:return n.Network.MATIC;case i.BSC_MAINNET:return n.Network.BSC;case i.OPTIMISM_MAINNET:return n.Network.OPTIMISM;case i.ARBITRUM_MAINNET:return n.Network.ARBITRUM;case i.FANTOM_MAINNET:return n.Network.FANTOM;case i.AVALANCHE_MAINNET:return n.Network.AVALANCHE}}e.getNetwork=c,(function(u){u.schema={type:"number",enum:Object.values(u)},u.validate=(0,t.generateLazyValidator)(u.schema)})(i=e.ChainId||(e.ChainId={}))})(qy)),qy}var Fy={},zA;function D6(){return zA||(zA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const t=Pe(),r=wn(),n=Tn();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:r.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(Fy)),Fy}var Hy={},Vy={},WA;function yf(){return WA||(WA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const t=Pe();(function(r){r.PARCEL="parcel",r.ESTATE="estate",r.WEARABLE="wearable",r.ENS="ens",r.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.NFTCategory||(e.NFTCategory={}))})(Vy)),Vy}var YA;function L6(){return YA||(YA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const t=Pe(),r=wn(),n=Tn(),i=yf();(function(a){a.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(a){a.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:r.ChainId.schema},required:["name","address","category","network","chainId"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Contract||(e.Contract={}))})(Hy)),Hy}var xy={},Gy={},KA;function VD(){return KA||(KA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const t=Pe(),r=wn(),n=XE(),i=Tn(),a=yf(),s=hf(),o=Za();(function(c){c.NAME="name",c.NEWEST="newest",c.RECENTLY_LISTED="recently_listed",c.RECENTLY_SOLD="recently_sold",c.CHEAPEST="cheapest",c.RENTAL_LISTING_DATE="rental_listing_date",c.RENTAL_DATE="rented_date",c.MAX_RENTAL_PRICE="max_rental_price",c.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(c){c.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:o.WearableCategory.schema,description:{type:"string"},rarity:s.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:s.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"},outcomeType:{type:"string",nullable:!0}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:a.NFTCategory.schema,network:i.Network.schema,chainId:r.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},c.validate=(0,t.generateLazyValidator)(c.schema)})(e.NFT||(e.NFT={}))})(Gy)),Gy}var XA;function $6(){return XA||(XA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const t=Pe(),r=wn(),n=Tn(),i=VD(),a=yf();(function(s){s.NAME="name",s.NEWEST="newest",s.RECENTLY_REVIEWED="recently_reviewed",s.RECENTLY_SOLD="recently_sold",s.RECENTLY_LISTED="recently_listed",s.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(s){s.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:a.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},tradeId:{type:"string",nullable:!0},tradeContractAddress:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:r.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0},tradeExpiresAt:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},s.validate=(0,t.generateLazyValidator)(s.schema)})(e.Item||(e.Item={}))})(xy)),xy}var zy={},JA;function JE(){return JA||(JA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const t=Pe();(function(r){r.OPEN="open",r.SOLD="sold",r.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ListingStatus||(e.ListingStatus={}))})(zy)),zy}var Wy={},QA;function k6(){return QA||(QA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(Wy)),Wy}var Yy={},ZA;function q6(){return ZA||(ZA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const t=Pe(),r=wn(),n=Tn();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:r.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(Yy)),Yy}var Ky={},eO;function B6(){return eO||(eO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(t){t.NEWEST="newest",t.RECENTLY_SOLD="recently_sold",t.CHEAPEST="cheapest",t.MOST_EXPENSIVE="most_expensive",t.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(t){t.ASC="asc",t.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(Ky)),Ky}var Xy={},tO;function U6(){return tO||(tO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const t=Pe(),r=wn(),n=JE(),i=Tn();(function(a){a.RECENTLY_LISTED="recently_listed",a.RECENTLY_UPDATED="recently_updated",a.CHEAPEST="cheapest",a.ISSUED_ID_ASC="issued_id_asc",a.ISSUED_ID_DESC="issued_id_desc",a.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(a){a.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:r.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"},tradeId:{type:"string",nullable:!0}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Order||(e.Order={}))})(Xy)),Xy}var Jy={},rO;function F6(){return rO||(rO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const t=Pe();(function(r){r.INJECTED="injected",r.MAGIC="magic",r.MAGIC_TEST="magic_test",r.FORTMATIC="formatic",r.NETWORK="network",r.WALLET_CONNECT="wallet_connect",r.WALLET_CONNECT_V2="wallet_connect_v2",r.WALLET_LINK="wallet_link",r.METAMASK_MOBILE="metamask_mobile",r.AUTH_SERVER="auth_server",r.THIRDWEB="thirdweb"})(e.ProviderType||(e.ProviderType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.ProviderType||(e.ProviderType={}))})(Jy)),Jy}var Qy={},nO;function xD(){return nO||(nO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const t=Pe();(function(r){r.ORDER="order",r.BID="bid",r.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SaleType||(e.SaleType={}))})(Qy)),Qy}var Zy={},iO;function H6(){return iO||(iO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const t=Pe(),r=wn(),n=xD(),i=Tn();(function(a){a.RECENTLY_SOLD="recently_sold",a.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(a){a.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:r.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Sale||(e.Sale={}))})(Zy)),Zy}var eg={},aO;function V6(){return aO||(aO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const t=Pe(),r=wn(),n=Tn();(function(a){a.OPEN="open",a.CANCELLED="cancelled",a.EXECUTED="executed",a.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(a){a.PARCEL="parcel",a.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(a){a.LAND_CREATION_DATE="land_creation_date",a.RENTAL_LISTING_DATE="rental_listing_date",a.RENTAL_DATE="rented_date",a.NAME="name",a.MAX_RENTAL_PRICE="max_rental_price",a.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(a){a.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(a){a.schema={type:"object",properties:{network:n.Network.schema,chainId:r.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(eg)),eg}var tg={},sO;function x6(){return sO||(sO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(t){t.DATE="date",t.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(tg)),tg}var rg={},oO;function G6(){return oO||(oO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Store||(e.Store={}))})(rg)),rg}var ng={},cO;function z6(){return cO||(cO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const t=Pe();(function(r){r.MALE="male",r.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(r){r.MALE="male",r.FEMALE="female",r.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.WearableGender||(e.WearableGender={}))})(ng)),ng}var ig={},uO;function W6(){return uO||(uO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const t=Pe();function r(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=r;function n(i,a){const s=r().validWorldRanges;for(const o of s)if(i>=o.xMin&&i<=o.xMax&&a>=o.yMin&&a<=o.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(ig)),ig}var ag={},lO;function Y6(){return lO||(lO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const t=Pe(),r=wn(),n=JE(),i=Tn();(function(a){a.RECENTLY_OFFERED="recently_offered",a.RECENTLY_UPDATED="recently_updated",a.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(a){const s={properties:{id:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,contractAddress:{type:"string"},network:i.Network.schema,chainId:r.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidder","seller","price","fingerprint","status","contractAddress","network","chainId","expiresAt","createdAt","updatedAt"]};a.schema={type:"object",required:[],oneOf:[{properties:Object.assign(Object.assign({},s.properties),{tradeId:{type:"string"},tokenId:{type:"string"}}),required:[...s.required,"tradeId","tokenId"]},{type:"object",properties:Object.assign(Object.assign({},s.properties),{tradeId:{type:"string"},itemId:{type:"string"}}),required:[...s.required,"tradeId","itemId"]},{type:"object",properties:Object.assign(Object.assign({},s.properties),{bidAddress:{type:"string"},blockchainId:{type:"string"},blockNumber:{type:"string"},tokenId:{type:"string"}}),required:[...s.required,"bidAddress","blockchainId","blockNumber","tokenId"]}]},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Bid||(e.Bid={}))})(ag)),ag}var sg={},dO;function K6(){return dO||(dO=1,Object.defineProperty(sg,"__esModule",{value:!0})),sg}var og={},fO;function X6(){return fO||(fO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TradeAssetDirection=e.TradeAssetType=e.TradeType=void 0,(function(t){t.BID="bid",t.PUBLIC_NFT_ORDER="public_nft_order",t.PUBLIC_ITEM_ORDER="public_item_order"})(e.TradeType||(e.TradeType={})),(function(t){t[t.ERC20=1]="ERC20",t[t.USD_PEGGED_MANA=2]="USD_PEGGED_MANA",t[t.ERC721=3]="ERC721",t[t.COLLECTION_ITEM=4]="COLLECTION_ITEM"})(e.TradeAssetType||(e.TradeAssetType={})),(function(t){t.SENT="sent",t.RECEIVED="received"})(e.TradeAssetDirection||(e.TradeAssetDirection={}))})(og)),og}var ga={},cg={},pO;function J6(){return pO||(pO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const t=Pe();(function(r){r.STATIC="static",r.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(cg)),cg}var ug={},hO;function Q6(){return hO||(hO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewUnityMode=void 0,(function(t){t.AUTH="authentication",t.BUILDER="builder",t.MARKETPLACE="marketplace",t.PROFILE="profile",t.CONFIG="configurator",t.JESUS="jesus"})(e.PreviewUnityMode||(e.PreviewUnityMode={}))})(ug)),ug}var lg={},mO;function Z6(){return mO||(mO=1,Object.defineProperty(lg,"__esModule",{value:!0})),lg}var dg={},yO;function ex(){return yO||(yO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const t=Pe();(function(r){r.ANIMATION_PLAY="animation_play",r.ANIMATION_PAUSE="animation_pause",r.ANIMATION_LOOP="animation_loop",r.ANIMATION_END="animation_end",r.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(dg)),dg}var fg={},gO;function tx(){return gO||(gO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const t=Pe();(function(r){r.IDLE="idle",r.WALK="walk",r.RUN="run",r.JUMP="jump",r.CLAP="clap",r.DAB="dab",r.DANCE="dance",r.FASHION="fashion",r.FASHION_2="fashion-2",r.FASHION_3="fashion-3",r.FASHION_4="fashion-4",r.LOVE="love",r.MONEY="money",r.FIST_PUMP="fist-pump",r.HEAD_EXPLODE="head-explode",r.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(fg)),fg}var pg={},_O;function rx(){return _O||(_O=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewRenderer=e.PreviewMessageType=void 0;const t=Pe();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.BABYLON="babylon",n.UNITY="unity"})(e.PreviewRenderer||(e.PreviewRenderer={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const r=(n,i,a,s="*")=>{const o={type:i,payload:a};n.postMessage(o,s)};e.sendMessage=r})(pg)),pg}var hg={},vO;function nx(){return vO||(vO=1,Object.defineProperty(hg,"__esModule",{value:!0})),hg}var mg={},EO;function ix(){return EO||(EO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const t=Pe();(function(r){r.ORTHOGRAPHIC="orthographic",r.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(mg)),mg}var yg={},bO;function ax(){return bO||(bO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const t=Pe();(function(r){r.TEXTURE="texture",r.WEARABLE="wearable",r.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PreviewType||(e.PreviewType={}))})(yg)),yg}var gg={},SO;function sx(){return SO||(SO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpringBoneParams=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{stiffness:{type:"number",minimum:0,maximum:5},gravityPower:{type:"number",minimum:0,maximum:10},gravityDir:{type:"array",items:[{type:"number"},{type:"number"},{type:"number"}],minItems:3,maxItems:3},dragForce:{type:"number",minimum:0,maximum:1},center:{type:"integer",minimum:0,nullable:!0}},required:["stiffness","gravityPower","gravityDir","dragForce"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.SpringBoneParams||(e.SpringBoneParams={}))})(gg)),gg}var _g={},TO;function ox(){return TO||(TO=1,Object.defineProperty(_g,"__esModule",{value:!0})),_g}var vg={},wO;function cx(){return wO||(wO=1,Object.defineProperty(vg,"__esModule",{value:!0})),vg}var Eg={},IO;function ux(){return IO||(IO=1,Object.defineProperty(Eg,"__esModule",{value:!0})),Eg}var bg={},RO;function lx(){return RO||(RO=1,Object.defineProperty(bg,"__esModule",{value:!0})),bg}var Sg={},AO;function dx(){return AO||(AO=1,Object.defineProperty(Sg,"__esModule",{value:!0})),Sg}var Tg={},OO;function fx(){return OO||(OO=1,Object.defineProperty(Tg,"__esModule",{value:!0})),Tg}var wg={},NO;function px(){return NO||(NO=1,Object.defineProperty(wg,"__esModule",{value:!0})),wg}var Ig={},PO;function hx(){return PO||(PO=1,Object.defineProperty(Ig,"__esModule",{value:!0})),Ig}var CO;function mx(){return CO||(CO=1,(function(e){var t=ga&&ga.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ga&&ga.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(J6(),e),r(Q6(),e),r(Z6(),e),r(ex(),e),r(tx(),e),r(rx(),e),r(nx(),e),r(ix(),e),r(ax(),e),r(sx(),e),r(ox(),e),r(cx(),e),r(ux(),e),r(lx(),e),r(dx(),e),r(fx(),e),r(px(),e),r(hx(),e)})(ga)),ga}var _a={},Do={},MO;function yx(){if(MO)return Do;MO=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.isSysLink=void 0;const e=t=>t!==null&&typeof t=="object"&&"sys"in t&&"id"in t.sys;return Do.isSysLink=e,Do}var Lo={},jO;function gx(){if(jO)return Lo;jO=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.ContentfulLocale=void 0;var e;return(function(t){t.enUS="en-US",t.es="es",t.zh="zh"})(e||(e={})),Lo.ContentfulLocale=e,Lo}var Rg={},DO;function _x(){return DO||(DO=1,Object.defineProperty(Rg,"__esModule",{value:!0})),Rg}var LO;function vx(){return LO||(LO=1,(function(e){var t=_a&&_a.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=_a&&_a.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(yx(),e),r(gx(),e),r(_x(),e)})(_a)),_a}var $O;function Ex(){return $O||($O=1,(function(e){var t=ya&&ya.__createBinding||(Object.create?(function($,B,V,H){H===void 0&&(H=V);var F=Object.getOwnPropertyDescriptor(B,V);(!F||("get"in F?!B.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return B[V]}}),Object.defineProperty($,H,F)}):(function($,B,V,H){H===void 0&&(H=V),$[H]=B[V]})),r=ya&&ya.__exportStar||function($,B){for(var V in $)V!=="default"&&!Object.prototype.hasOwnProperty.call(B,V)&&t(B,$,V)};Object.defineProperty(e,"__esModule",{value:!0}),e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=void 0;var n=j6();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return n.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return n.AccountSortBy}});var i=wn();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return i.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return i.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return i.getURNProtocol}});var a=HD();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return a.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return a.getChainId}});var s=D6();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return s.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return s.CollectionSortBy}});var o=L6();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return o.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return o.ContractSortBy}});var c=$6();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return c.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return c.ItemSortBy}});var u=JE();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return u.ListingStatus}});var l=k6();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return l.MetaTransaction}});var d=q6();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return d.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return d.MintSortBy}});var f=Tn();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return f.Network}});var p=yf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return p.NFTCategory}});var g=VD();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return g.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return g.NFTSortBy}});var y=B6();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return y.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return y.CatalogSortDirection}});var _=U6();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return _.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return _.OrderSortBy}});var R=F6();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return R.ProviderType}});var h=hf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return h.Rarity}});var T=xD();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return T.SaleType}});var I=H6();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return I.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return I.SaleSortBy}});var m=V6();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return m.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return m.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return m.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return m.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return m.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return m.PeriodCreation}});var E=x6();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return E.AnalyticsDayDataSortBy}});var b=G6();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return b.Store}});var N=z6();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return N.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return N.GenderFilterOption}});var j=W6();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return j.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return j.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return j.isInsideWorldLimits}}),r(Y6(),e),r(K6(),e),r(X6(),e),r(mx(),e),r(vx(),e)})(ya)),ya}var Ag={},kO;function bx(){return kO||(kO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const t=Pe();(function(r){r.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},onlyDev:{type:"boolean",nullable:!0},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(Ag)),Ag}var va={},Og={},$o={},qO;function GD(){if(qO)return $o;qO=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.isInExceptionBlock=void 0;function e(i,a){return i>=62&&i<=150&&a>=151&&a<=158}function t(i,a){return i>=151&&i<=162&&a>=144&&a<=158}function r(i,a){return i>=151&&i<=163&&a>=59&&a<=143}function n(i,a){return e(i,a)||t(i,a)||r(i,a)}return $o.isInExceptionBlock=n,$o}var BO;function Sx(){return BO||(BO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Parcel=e.PARCEL_LIMITS=void 0;const t=Pe(),r=GD();e.PARCEL_LIMITS={minX:-150,maxX:150,minY:-150,maxY:150},(function(n){n._isInLimits={keyword:"_isInLimits",validate:function(p,g){return!g||typeof g.x!="number"||typeof g.y!="number"?!1:o(g)||(0,r.isInExceptionBlock)(g.x,g.y)},errors:!1},n.schema={type:"object",required:["x","y"],properties:{x:{type:"number"},y:{type:"number"}},_isInLimits:!0,additionalProperties:!1},n.validate=(0,t.generateLazyValidator)(n.schema,[n._isInLimits]);function i({x:f,y:p}){return`${f},${p}`}n.parcelToString=i;function a(f){const p=f.match(/^(-?\d+),(-?\d+)$/);if(!p)return null;const[,g,y]=p,_=parseInt(g,10),R=parseInt(y,10);return{x:_,y:R}}n.stringToParcel=a;function s(f){const p=a(f);return p?n.validate(p):!1}n.isParcelStringValid=s;function o(f){const{x:p,y:g}=f;return p>=e.PARCEL_LIMITS.minX&&p<=e.PARCEL_LIMITS.maxX&&g>=e.PARCEL_LIMITS.minY&&g<=e.PARCEL_LIMITS.maxY}n.isInStandardBounds=o;function c(f){return(0,r.isInExceptionBlock)(f.x,f.y)}n.isExceptionParcel=c;function u(f){return o(f)||c(f)}n.isInBounds=u;function l(f){return n.validate(f)}n.isValid=l;function d(f){const p=a(f);return p?n.validate(p):!1}n.isValidString=d})(e.Parcel||(e.Parcel={}))})(Og)),Og}var Ea={},UO;function Tx(){if(UO)return Ea;UO=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.validateUrlInstance=Ea.validateUrl=void 0;const e={allowLocalhost:!1,allowedPorts:[]};function t(p,g=2){let y=p;for(let _=0;_<g;_++)try{y=decodeURIComponent(y)}catch{break}return y.normalize("NFKC")}function r(p){return/[\u0000-\u001F\u007F-\u009F\u202A-\u202E\u2066-\u2069]/.test(p)}function n(p){return!!(p.username||p.password)}function i(p){return/\\/.test(p)}const a=["80","443"];function s(p,g){return!!p.port&&!g.includes(p.port)}function o(p){const g=p.toLowerCase();return!!(g==="localhost"||g.endsWith(".local")||/^(127\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.|169\.254\.)/.test(g)||g==="::1"||g==="[::1]"||g.startsWith("fe80:")||g.startsWith("fc00:"))}function c(p){if(p.startsWith("//"))return null;try{return{url:new URL(p),wasRelative:!1}}catch{try{return{url:new URL(p,"https://example.com"),wasRelative:!0}}catch{return null}}}function u(p){const g=t(String(p).toLowerCase());return!(r(g)||i(g))}function l(p){return!(!p||p.includes("..")||p.includes("//")||r(p)||i(p))}function d(p,g={}){const y=Object.assign(Object.assign({},e),g),_=[...a,...y.allowedPorts];if(!p||p.length===0||p.length>4096||r(p)||i(p))return!1;const R=t(p);if(r(R)||i(R)||p.startsWith("//"))return!1;const h=c(p);if(!h)return!1;const{url:T,wasRelative:I}=h;if(T.protocol!=="http:"&&T.protocol!=="https:"&&T.protocol!==""||n(T)||i(p)||i(T.href)||!I&&(s(T,_)||!y.allowLocalhost&&T.hostname&&o(T.hostname))||!l(T.pathname)||T.pathname.length>2048)return!1;const m=Array.from(T.searchParams.entries());if(m.length>50||(T.search?T.search.startsWith("?")?T.search.length-1:T.search.length:0)>2048)return!1;for(const[b,N]of m)if(b.length===0||!u(b)||!u(N)||b.length>128||N.length>1024)return!1;return!(T.hash&&r(T.hash))}Ea.validateUrl=d;function f(p,g={}){return d(p.toString(),g)}return Ea.validateUrlInstance=f,Ea}var FO;function wx(){return FO||(FO=1,(function(e){var t=va&&va.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=va&&va.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Sx(),e),r(GD(),e),r(Tx(),e)})(va)),va}var HO;function Ix(){return HO||(HO=1,(function(e){var t=dn&&dn.__createBinding||(Object.create?(function(s,o,c,u){u===void 0&&(u=c);var l=Object.getOwnPropertyDescriptor(o,c);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[c]}}),Object.defineProperty(s,u,l)}):(function(s,o,c,u){u===void 0&&(u=c),s[u]=o[c]})),r=dn&&dn.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),n=dn&&dn.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var c in s)c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)&&t(o,s,c);return r(o,s),o},i=dn&&dn.__exportStar||function(s,o){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&t(o,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=void 0;const a=n(M6());e.sdk=a,i(Pe(),e),i(Ex(),e),i(XE(),e),i(es(),e),i(bx(),e),i(Qc(),e),i(kD(),e),i(FD(),e),i(wx(),e)})(dn)),dn}var VO;function zD(){return VO||(VO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const t=Ix();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}})})(Rm)),Rm}var xO;function WD(){return xO||(xO=1,(function(e){var t=ln&&ln.__createBinding||(Object.create?(function(J,K,q,M){M===void 0&&(M=q);var U=Object.getOwnPropertyDescriptor(K,q);(!U||("get"in U?!K.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return K[q]}}),Object.defineProperty(J,M,U)}):(function(J,K,q,M){M===void 0&&(M=q),J[M]=K[q]})),r=ln&&ln.__setModuleDefault||(Object.create?(function(J,K){Object.defineProperty(J,"default",{enumerable:!0,value:K})}):function(J,K){J.default=K}),n=ln&&ln.__importStar||(function(){var J=function(K){return J=Object.getOwnPropertyNames||function(q){var M=[];for(var U in q)Object.prototype.hasOwnProperty.call(q,U)&&(M[M.length]=U);return M},J(K)};return function(K){if(K&&K.__esModule)return K;var q={};if(K!=null)for(var M=J(K),U=0;U<M.length;U++)M[U]!=="default"&&t(q,K,M[U]);return r(q,K),q}})(),i=ln&&ln.__importDefault||function(J){return J&&J.__esModule?J:{default:J}};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=f,e.isValidAuthChain=p,e.createEIP1271MessageHash=g,e.createSimpleAuthChain=y,e.createAuthChain=_,e.initializeAuthChain=R,e.signPayload=h,e.createSignature=T,e.ownerAddress=I,e.getEphemeralMessage=m,e.getEphemeralSignatureType=V,e.getSignedIdentitySignatureType=H,e.parseEphemeralPayload=F,e.isValidEIP1271Signature=te;const a=n(ff()),s=j5(),o=V5(),c=i(x5()),u=G5(),l=zD();e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const d=132;async function f(J,K,q,M=Date.now()){let U="";if(!p(K))return{ok:!1,message:"ERROR: Malformed authChain"};for(const C of K){const k=Z(C.type);try{const{nextAuthority:ee}=await k(U,C,{provider:q,dateToValidateExpirationInMillis:M});U=ee||""}catch(ee){const Ee=ee instanceof Error?ee.message:String(ee);return{ok:!1,message:`ERROR. Link type: ${C.type}. ${Ee}.`}}}const W=U===J;return{ok:W,message:W?void 0:`ERROR: Invalid final authority. Expected: ${J}. Current ${U}.`}}function p(J){for(const[K,q]of J.entries())if(K===0&&q.type!==l.AuthLinkType.SIGNER||q.type===l.AuthLinkType.SIGNER&&K!==0)return!1;return!0}function g(J){return(0,a.hexToBytes)((0,a.sha3)((0,a.stringToUtf8Bytes)(J)))}function y(J,K,q){return[{type:l.AuthLinkType.SIGNER,payload:K,signature:""},{type:H(q),payload:J,signature:q}]}function _(J,K,q,M){const U=(0,u.moveMinutes)(q),W=m(K.address,U),C=T(J,W),k=T(K,M);return[{type:l.AuthLinkType.SIGNER,payload:J.address,signature:""},{type:l.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL,payload:W,signature:C},{type:l.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:M,signature:k}]}async function R(J,K,q,M){const U=(0,u.moveMinutes)(q),W=m(K.address,U),C=await M(W),k=[{type:l.AuthLinkType.SIGNER,payload:J,signature:""},{type:V(C),payload:W,signature:C}];return{ephemeralIdentity:K,expiration:U,authChain:k}}function h(J,K){const q=T(J.ephemeralIdentity,K);return[...J.authChain,{type:l.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:K,signature:q}]}e.createEthereumMessageHash=o.createEthereumMessageHash;function T(J,K){return(0,o.ethSign)((0,a.hexToBytes)(J.privateKey),K)}function I(J){return J.length>0&&J[0].type===l.AuthLinkType.SIGNER?J[0].payload:"Invalid-Owner-Address"}function m(J,K){return`Decentraland Login
|
|
71
|
+
Ephemeral address: ${J}
|
|
72
|
+
Expiration: ${K.toISOString()}`}e.Authenticator={validateSignature:f,isValidAuthChain:p,createEIP1271MessageHash:g,createSimpleAuthChain:y,createAuthChain:_,initializeAuthChain:R,signPayload:h,createEthereumMessageHash:e.createEthereumMessageHash,createSignature:T,ownerAddress:I,getEphemeralMessage:m};const E=async(J,K)=>({nextAuthority:K.payload});e.SIGNER_VALIDATOR=E;const b=async(J,K)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_SIGNED_ENTITY_VALIDATOR'");const q=(0,o.recoverAddressFromEthSignature)(K.signature,K.payload),M=J.toLocaleLowerCase(),U=q.toLocaleLowerCase();if(M===U)return{nextAuthority:K.payload};throw new Error(`Invalid signer address. Expected: ${M}. Actual: ${U}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=b;const N=async(J,K,q)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:M,ephemeralAddress:U,expiration:W}=F(K.payload),C=(q==null?void 0:q.dateToValidateExpirationInMillis)||Date.now();if(W>C){const k=(0,o.recoverAddressFromEthSignature)(K.signature,M),ee=J.toLocaleLowerCase(),Ee=k.toLocaleLowerCase();if(ee===Ee)return{nextAuthority:U};throw new Error(`Invalid signer address. Expected: ${ee}. Actual: ${Ee}`)}throw new Error(`Ephemeral key expired. Expiration: ${W}. Test: ${C}`)};e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=N;const j=async(J,K,q)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_EIP_1654_EPHEMERAL_VALIDATOR'");const{message:M,ephemeralAddress:U,expiration:W}=F(K.payload),C=(q==null?void 0:q.dateToValidateExpirationInMillis)||Date.now();if(W>C&&await ie(q==null?void 0:q.provider,J,M,K.signature,C))return{nextAuthority:U};throw new Error(`Ephemeral key expired. Expiration: ${W}. Test: ${C}`)};e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=j;const $=async(J,K,q)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(!q)throw new Error("Missing validation options for 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(await ie(q.provider,J,K.payload,K.signature,q.dateToValidateExpirationInMillis))return{nextAuthority:K.payload};throw new Error("Invalid validation")};e.EIP_1654_SIGNED_ENTITY_VALIDATOR=$;const B=async(J,K)=>({error:"Error Validator."});function V(J){return J.length===d?l.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:l.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL}function H(J){return J.length===d?l.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:l.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY}function F(J){const K=J.replace(/\r/g,""),q=K.split(`
|
|
73
|
+
`),M="Ephemeral address: ",U="Expiration: ";if(q.length<3||!q[1].startsWith(M)||!q[2].startsWith(U))throw new Error(`Invalid ephemeral payload. Expected 3 lines with "${M}" on line 2 and "${U}" on line 3.`);const W=q[1].substring(M.length),C=q[2].substring(U.length),k=Date.parse(C);if(Number.isNaN(k))throw new Error(`Invalid expiration date in ephemeral payload: "${C}"`);return{message:K,ephemeralAddress:W,expiration:k}}e.parseEmphemeralPayload=F;async function te(J,K,q,M){const U=g(K),W=(0,a.hexToBytes)(q);let C;try{C=(0,a.bytesToHex)(await J.isValidSignature(U,W,M))}catch{}if(C===e.ERC1654_MAGIC_VALUE)return!0;const k=(0,o.createEthereumMessageHash)(K);try{C=(0,a.bytesToHex)(await J.isValidSignature(k,W,M))}catch{}return C===e.ERC1654_MAGIC_VALUE}async function ie(J,K,q,M,U){if(!J)throw new Error("Missing provider");const W=new a.default(J),C=await(0,s.SignatureValidator)(W,K);let k=await te(C,q,M);if(k)return!0;const ee=new c.default(W);try{const{block:Ee}=await ee.getDate(U,!1);if(k=await te(C,q,M,Ee),k)return!0}catch(Ee){const me=Ee instanceof Error?Ee.message:String(Ee);throw new Error(`Invalid validation. Error: ${me}`)}throw new Error(`Invalid validation. Expected: ${e.ERC1654_MAGIC_VALUE}. Actual: ${k}`)}function Z(J){switch(J){case l.AuthLinkType.SIGNER:return e.SIGNER_VALIDATOR;case l.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:return e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR;case l.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:return e.ECDSA_SIGNED_ENTITY_VALIDATOR;case l.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL:return e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR;case l.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY:return e.EIP_1654_SIGNED_ENTITY_VALIDATOR;default:return B}}})(ln)),ln}var ri={},GO;function Rx(){return GO||(GO=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.AUTH_METADATA_HEADER=ri.AUTH_TIMESTAMP_HEADER=ri.AUTH_CHAIN_HEADER_PREFIX=void 0,ri.AUTH_CHAIN_HEADER_PREFIX="x-identity-auth-chain-",ri.AUTH_TIMESTAMP_HEADER="x-identity-timestamp",ri.AUTH_METADATA_HEADER="x-identity-metadata"),ri}var zO;function Ax(){return zO||(zO=1,(function(e){var t=ia&&ia.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ia&&ia.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(WD(),e),r(Rx(),e),r(zD(),e)})(ia)),ia}var Ox=Ax(),ba={},hn={},od={exports:{}},cd={exports:{}},WO;function QE(){return WO||(WO=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})(cd,cd.exports)),cd.exports}var ud={exports:{}},YO;function Nx(){return YO||(YO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(i){return Object.prototype.toString.call(i)==="[object RegExp]"}function n(i,a){for(var s=0;s<a.length;s++){var o=a[s];if(i===o||r(o)&&o.test(i))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(ud,ud.exports)),ud.exports}var ld={exports:{}},KO;function Px(){return KO||(KO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(i,a){return i.indexOf(a)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(ld,ld.exports)),ld.exports}var dd={exports:{}},fd={exports:{}},XO;function YD(){return XO||(XO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(i){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},r(i)}function n(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;(r(i)!=="object"||i===null)&&(i={});for(var s in a)typeof i[s]>"u"&&(i[s]=a[s]);return i}e.exports=t.default,e.exports.default=t.default})(fd,fd.exports)),fd.exports}var JO;function Cx(){return JO||(JO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(QE()),n=i(YD());function i(o){return o&&o.__esModule?o:{default:o}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function s(o,c){(0,r.default)(o),c=(0,n.default)(c,a),c.allow_trailing_dot&&o[o.length-1]==="."&&(o=o.substring(0,o.length-1)),c.allow_wildcard===!0&&o.indexOf("*.")===0&&(o=o.substring(2));var u=o.split("."),l=u[u.length-1];return c.require_tld&&(u.length<2||!c.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(l)||/\s/.test(l))||!c.allow_numeric_tld&&/^\d+$/.test(l)?!1:u.every(function(d){return!(d.length>63&&!c.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(d)||/[\uff01-\uff5e]/.test(d)||/^-|-$/.test(d)||!c.allow_underscores&&/_/.test(d))})}e.exports=t.default,e.exports.default=t.default})(dd,dd.exports)),dd.exports}var pd={exports:{}},QO;function Mx(){return QO||(QO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=n(QE());function n(d){return d&&d.__esModule?d:{default:d}}function i(d){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i(d)}var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",s="(".concat(a,"[.]){3}").concat(a),o=new RegExp("^".concat(s,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(s,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(s,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(s,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(s,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(s,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(s,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(s,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function l(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(d);var p=(i(f)==="object"?f.version:arguments[1])||"";return p?p.toString()==="4"?o.test(d):p.toString()==="6"?u.test(d):!1:l(d,{version:4})||l(d,{version:6})}e.exports=t.default,e.exports.default=t.default})(pd,pd.exports)),pd.exports}var ZO;function jx(){return ZO||(ZO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=R;var r=c(QE()),n=c(Nx()),i=c(Px()),a=c(Cx()),s=c(Mx()),o=c(YD());function c(h){return h&&h.__esModule?h:{default:h}}function u(h,T){return g(h)||p(h,T)||d(h,T)||l()}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
74
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(h,T){if(h){if(typeof h=="string")return f(h,T);var I={}.toString.call(h).slice(8,-1);return I==="Object"&&h.constructor&&(I=h.constructor.name),I==="Map"||I==="Set"?Array.from(h):I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)?f(h,T):void 0}}function f(h,T){(T==null||T>h.length)&&(T=h.length);for(var I=0,m=Array(T);I<T;I++)m[I]=h[I];return m}function p(h,T){var I=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(I!=null){var m,E,b,N,j=[],$=!0,B=!1;try{if(b=(I=I.call(h)).next,T!==0)for(;!($=(m=b.call(I)).done)&&(j.push(m.value),j.length!==T);$=!0);}catch(V){B=!0,E=V}finally{try{if(!$&&I.return!=null&&(N=I.return(),Object(N)!==N))return}finally{if(B)throw E}}return j}}function g(h){if(Array.isArray(h))return h}var y={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},_=/^\[([^\]]+)\](?::([0-9]+))?$/;function R(h,T){if((0,r.default)(h),!h||/[\s<>]/.test(h)||h.indexOf("mailto:")===0||(T=(0,o.default)(T,y),T.validate_length&&h.length>T.max_allowed_length)||!T.allow_fragments&&(0,i.default)(h,"#")||!T.allow_query_components&&((0,i.default)(h,"?")||(0,i.default)(h,"&")))return!1;var I,m,E,b,N,j,$,B;$=h.split("#"),h=$.shift(),$=h.split("?"),h=$.shift();var V=h.match(/^([a-z][a-z0-9+\-.]*):/i),H=!1,F=function(ue){return H=!0,I=ue.toLowerCase(),T.require_valid_protocol&&T.protocols.indexOf(I)===-1?!1:h.substring(V[0].length)};if(V){var te=V[1],ie=h.substring(V[0].length),Z=ie.slice(0,2)==="//";if(Z){if(h=F(te),h===!1)return!1}else{var J=ie.indexOf("/"),K=J===-1?ie:ie.substring(0,J),q=K.indexOf("@");if(q!==-1){var M=K.substring(0,q),U=/^[a-zA-Z0-9\-_.%:]*$/,W=U.test(M),C=/%[0-9a-fA-F]{2}/.test(M);if(W&&!C){if(T.require_protocol)return!1}else if(h=F(te),h===!1)return!1}else{var k=/^[0-9]/.test(ie);if(k){if(T.require_protocol)return!1}else if(h=F(te),h===!1)return!1}}}else if(T.require_protocol)return!1;if(h.slice(0,2)==="//"){if(!H&&!T.allow_protocol_relative_urls)return!1;h=h.slice(2)}if(h==="")return!1;if($=h.split("/"),h=$.shift(),h===""&&!T.require_host)return!0;if($=h.split("@"),$.length>1){if(T.disallow_auth||$[0]===""||(m=$.shift(),m.indexOf(":")>=0&&m.split(":").length>2))return!1;var ee=m.split(":"),Ee=u(ee,2),me=Ee[0],Se=Ee[1];if(me===""&&Se==="")return!1}b=$.join("@"),j=null,B=null;var we=b.match(_);if(we?(E="",B=we[1],j=we[2]||null):($=b.split(":"),E=$.shift(),$.length&&(j=$.join(":"))),j!==null&&j.length>0){if(N=parseInt(j,10),!/^[0-9]+$/.test(j)||N<=0||N>65535)return!1}else if(T.require_port)return!1;return T.host_whitelist?(0,n.default)(E,T.host_whitelist):E===""&&!T.require_host?!0:!(!(0,s.default)(E)&&!(0,a.default)(E,T)&&(!B||!(0,s.default)(B,6))||(E=E||B,T.host_blacklist&&(0,n.default)(E,T.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(od,od.exports)),od.exports}var Ng={},eN;function KD(){return eN||(eN=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(o){o.GET="get",o.STORE="store",o.CLEAR="clear",o.PING="ping"})(t||(e.Action=t={})),e.SINGLE_SIGN_ON_TARGET="single-sign-on";function r(o){return{target:e.SINGLE_SIGN_ON_TARGET,...o}}e.createMessage=r;function n(o){const c=localStorage.getItem(s(o));if(!c)return null;let u;try{u=JSON.parse(c)}catch{return a(o),null}return u.expiration=new Date(u.expiration),u.expiration.getTime()<=Date.now()?(a(o),null):u}e.localStorageGetIdentity=n;function i(o,c){new Date(c.expiration).getTime()>Date.now()&&localStorage.setItem(s(o),JSON.stringify(c))}e.localStorageStoreIdentity=i;function a(o){localStorage.removeItem(s(o))}e.localStorageClearIdentity=a;function s(o){if(!/^0x[a-fA-F0-9]{40}$/.test(o))throw new Error("User must be a valid ethereum address");return`single-sign-on-${o.toLowerCase()}`}})(Ng)),Ng}var tN;function Dx(){if(tN)return hn;tN=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.clearIdentity=hn.storeIdentity=hn.getIdentity=hn.init=void 0;const e=jx(),t=KD(),r=t.SINGLE_SIGN_ON_TARGET,n=500,i=5;let a=0,s="";const o={protocols:["https"],require_protocol:!0};function c(_,R={}){if(!(0,e.default)(_,{...o,...R}))throw new Error(`Invalid url: ${_}`);if(s)throw new Error("Already initialized");const h=document.createElement("iframe");h.id=r,h.src=_,h.style.width="0",h.style.height="0",h.style.border="none",h.style.position="absolute",document.body.appendChild(h),s=_}hn.init=c;async function u(_){let R;try{R=(await p(await f(),t.Action.GET,{user:_})).identity??null}catch(h){y(h),R=(0,t.localStorageGetIdentity)(_)}return R}hn.getIdentity=u;async function l(_,R){try{await p(await f(),t.Action.STORE,{user:_,identity:R})}catch(h){y(h),(0,t.localStorageStoreIdentity)(_,R)}}hn.storeIdentity=l;async function d(_){try{await p(await f(),t.Action.CLEAR,{user:_})}catch(R){y(R),(0,t.localStorageClearIdentity)(_)}}hn.clearIdentity=d;async function f(){if(!s)throw new Error("Not initialized");for(let _=0;_<i;_++){const R=document.getElementById(r),h=R==null?void 0:R.contentWindow;if(!h){await g(n);continue}try{await p(h,t.Action.PING,{},n)}catch{continue}return h}throw new Error("Could not get iframe because it is not ready or cannot be communicated with")}async function p(_,R,h,T=0){a++;const I=a;let m=null;const E=new Promise((b,N)=>{m=({data:j})=>{!j||j.target!==t.SINGLE_SIGN_ON_TARGET||j.id!==I||(j.error?N(new Error(j.error)):b(j))},window.addEventListener("message",m)});_.postMessage((0,t.createMessage)({id:I,action:R,...h}),s);try{return await(T?Promise.race([E,new Promise((b,N)=>setTimeout(()=>N(new Error("Did not receive a response in time")),T))]):E)}catch(b){throw b}finally{m&&window.removeEventListener("message",m)}}function g(_){return new Promise(R=>setTimeout(R,_))}function y(_){console.warn("Could not get identity from iframe, falling back to localStorage. Error:",_.message)}return hn}var rN;function Lx(){return rN||(rN=1,(function(e){var t=ba&&ba.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=ba&&ba.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Dx(),e),r(KD(),e)})(ba)),ba}var Av=Lx();function $x(e){const{host:t}=e;return t.endsWith(".org")||t.endsWith(".co")?Vn.PRODUCTION:t.endsWith(".today")||t.endsWith(".net")?Vn.STAGING:t.endsWith(".io")||t.endsWith(".zone")?Vn.DEVELOPMENT:null}function kx(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(JD(n))return n}return null}var nN={},Vn;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(Vn||(Vn={}));function XD(){return Object.values(Vn)}function JD(e){return XD().includes(e)}function hd(e){if(JD(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${XD().map(t=>`"${t}"`).join(", ")}.`)}function qx(e={}){const{DCL_DEFAULT_ENV:t,REACT_APP_DCL_DEFAULT_ENV:r,VITE_DCL_DEFAULT_ENV:n,GATSBY_DCL_DEFAULT_ENV:i}=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&&i&&t!==i)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(r&&i&&r!==i)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return t?hd(t):r?hd(r):n?hd(n):i?hd(i):Vn.PRODUCTION}function Bx(e){if(typeof window<"u"){const r=kx(window.location);if(r)return r;const n=$x(window.location);if(n)return n}return qx(typeof e>"u"&&typeof Ed=="object"&&typeof nN=="object"?nN:e)}function Ux(e,t){const r=Bx(t==null?void 0:t.systemEnvVariables),n=e[r];return{get:(i,a="")=>{if(!n)throw new Error(`Could not find a config for env=${r}`);return i in n?n[i]:a},is:i=>r===i,getEnv:()=>r}}const Fx="development",Hx="80002",Vx="https://marketplace-api.decentraland.zone",xx="https://marketplace-api.decentraland.zone",Gx="/auth",zx="https://rpc.decentraland.org/amoy",Wx="https://credits.decentraland.zone",Yx="https://builder-api.decentraland.zone",Kx="https://peer.decentraland.zone",Xx="https://decentraland.zone/profile",Jx="",Qx="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",Zx="",e8="",t8={ENVIRONMENT:Fx,CHAIN_ID:Hx,MARKETPLACE_SERVER_URL:Vx,NFT_API_URL:xx,AUTH_URL:Gx,RPC_URL:zx,CREDITS_SERVER_URL:Wx,BUILDER_SERVER_URL:Yx,PEER_URL:Kx,PROFILE_URL:Xx,SHOP_SERVER_URL:Jx,STRIPE_PUBLISHABLE_KEY:Qx,SEGMENT_WRITE_KEY:Zx,SENTRY_DSN:e8},r8="staging",n8="80002",i8="https://marketplace-api.decentraland.zone",a8="https://marketplace-api.decentraland.zone",s8="/auth",o8="https://rpc.decentraland.org/amoy",c8="https://credits.decentraland.zone",u8="https://builder-api.decentraland.zone",l8="https://peer.decentraland.zone",d8="https://decentraland.zone/profile",f8="",p8="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",h8="",m8="",y8={ENVIRONMENT:r8,CHAIN_ID:n8,MARKETPLACE_SERVER_URL:i8,NFT_API_URL:a8,AUTH_URL:s8,RPC_URL:o8,CREDITS_SERVER_URL:c8,BUILDER_SERVER_URL:u8,PEER_URL:l8,PROFILE_URL:d8,SHOP_SERVER_URL:f8,STRIPE_PUBLISHABLE_KEY:p8,SEGMENT_WRITE_KEY:h8,SENTRY_DSN:m8},g8="production",_8="137",v8="https://marketplace-api.decentraland.org",E8="https://marketplace-api.decentraland.org",b8="/auth",S8="https://rpc.decentraland.org/polygon",T8="https://credits.decentraland.org",w8="https://builder-api.decentraland.org",I8="https://peer.decentraland.org",R8="https://decentraland.org/profile",A8="",O8="",N8="",P8="",C8={ENVIRONMENT:g8,CHAIN_ID:_8,MARKETPLACE_SERVER_URL:v8,NFT_API_URL:E8,AUTH_URL:b8,RPC_URL:S8,CREDITS_SERVER_URL:T8,BUILDER_SERVER_URL:w8,PEER_URL:I8,PROFILE_URL:R8,SHOP_SERVER_URL:A8,STRIPE_PUBLISHABLE_KEY:O8,SEGMENT_WRITE_KEY:N8,SENTRY_DSN:P8},M8={},Lr=Ux({[Vn.DEVELOPMENT]:t8,[Vn.STAGING]:y8,[Vn.PRODUCTION]:C8},{systemEnvVariables:{VITE_DCL_DEFAULT_ENV:"dev"}}),lr=M8,St={marketplaceServerUrl:lr.VITE_MARKETPLACE_SERVER_URL??Lr.get("MARKETPLACE_SERVER_URL"),nftApiUrl:lr.VITE_NFT_API_URL??Lr.get("NFT_API_URL"),chainId:Number(lr.VITE_CHAIN_ID??Lr.get("CHAIN_ID")),authUrl:lr.VITE_AUTH_URL??Lr.get("AUTH_URL"),rpcUrl:lr.VITE_RPC_URL??Lr.get("RPC_URL"),creditsServerUrl:lr.VITE_CREDITS_SERVER_URL??Lr.get("CREDITS_SERVER_URL"),builderServerUrl:lr.VITE_BUILDER_SERVER_URL??Lr.get("BUILDER_SERVER_URL"),peerUrl:lr.VITE_PEER_URL??Lr.get("PEER_URL"),profileUrl:lr.VITE_PROFILE_URL??Lr.get("PROFILE_URL"),shopServerUrl:lr.VITE_SHOP_SERVER_URL??Lr.get("SHOP_SERVER_URL"),stripePublishableKey:lr.VITE_STRIPE_PK??Lr.get("STRIPE_PUBLISHABLE_KEY"),segmentWriteKey:lr.VITE_SEGMENT_WRITE_KEY??Lr.get("SEGMENT_WRITE_KEY"),sentryDsn:lr.VITE_SENTRY_DSN??Lr.get("SENTRY_DSN"),sentryEnvironment:lr.VITE_SENTRY_ENVIRONMENT??(Number(lr.VITE_CHAIN_ID??Lr.get("CHAIN_ID"))===80002?"dev":"prod"),sentryRelease:lr.VITE_SENTRY_RELEASE??`shop@${lr.VITE_APP_VERSION??"0.0.0-dev"}`},j8=744*60;async function QD(){return(await ar(async()=>{const{connection:e}=await import("./index-BIJTdhnz.js").then(t=>t.i);return{connection:e}},__vite__mapDeps([7,1,8]))).connection}async function D8(e){if(!e.account)throw new Error("No account returned by the wallet");const t=e.account.toLowerCase(),r=new C2(e.provider),n=r.getSigner();let i=Av.localStorageGetIdentity(t);if(!i){const a=M2.createRandom();i=await Ox.Authenticator.initializeAuthChain(t,{address:a.address,publicKey:zb(a.publicKey),privateKey:zb(a.privateKey)},j8,s=>n.signMessage(s)),Av.localStorageStoreIdentity(t,i)}return{address:t,chainId:e.chainId,signer:n,web3Provider:r,identity:i,providerType:e.providerType}}function L8(){const e=encodeURIComponent(window.location.href);window.location.replace(`${St.authUrl}/login?redirectTo=${e}`)}async function $8(){try{const t=await(await QD()).tryPreviousConnection();return!t.account||!Av.localStorageGetIdentity(t.account.toLowerCase())?null:await D8(t)}catch{return null}}async function k8(){try{await(await QD()).disconnect()}catch{}}const q8=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`s-${String(performance.now())}`,B8=St.chainId===80002?"amoy":"polygon",U8=St.chainId===80002?"dev":"prod";function ZE(){return window.analytics}function F8(){let e;try{e=lo.getState().session}catch{e=null}return{address:(e==null?void 0:e.address)??null,is_signed_in:!!e,session_id:q8,network:B8,app_env:U8}}function _n(e,t={}){const r={...F8(),...t},n=ZE();n&&n.track(e,r)}function H8(e,t={}){const r=ZE();r&&r.identify(e.toLowerCase(),t)}function V8(){const e=ZE();e!=null&&e.reset&&e.reset()}function x8(e){_n("Shop Viewed Page",{page:e})}function iN(e){return e===Kr.ProviderType.MAGIC||e===Kr.ProviderType.MAGIC_TEST?"magic":"wallet"}function G8(e){const t=`shop:seen:${e.toLowerCase()}`;try{return localStorage.getItem(t)?!1:(localStorage.setItem(t,"1"),!0)}catch{return!1}}function Ac(e){return Math.round(e*10)/100}function eb(e){return!e.tokenId}function BJ(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:Ac(e.priceCredits),rarity:e.rarity,creator:e.creator||null,is_primary:eb(e)}}function UJ(e){const t=e.reduce((n,i)=>n+i.priceCredits,0),r=e.some(eb);return{items:e.map(n=>({item_id:n.itemId??null,contract_address:n.contractAddress,token_id:n.tokenId??null,price_usd:Ac(n.priceCredits)})),value_credits:t,value_usd:Ac(t),purchase_type:r?"item":"nft_resale",is_primary:r}}function z8(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 FJ(e){return z8(e)==="user_rejected"}function W8(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=>(...i)=>(r.push([n,...i]),r);for(const n of r.methods)r[n]=r.factory(n);r.load=n=>{const i=document.createElement("script");i.async=!0,i.src=`https://cdn.segment.com/analytics.js/v1/${encodeURIComponent(n)}/analytics.min.js`,document.head.appendChild(i)},t.analytics=r,r.load(e),r.page()}let aN=!1;function Y8(){if(aN)return;aN=!0;const e=St.segmentWriteKey;e&&W8(e)}let Ov=null;function K8(e){Ov=e}function sN(e,t={}){const r=typeof t.flow=="string"?`error in ${t.flow}`:"error";if(console.error(`[shop] ${r}`,e,t),Ov)try{Ov(e,t)}catch{}}const X8=/0x[a-fA-F0-9]{130}\b/g,J8=/0x[a-fA-F0-9]{64}\b/g,Q8=/(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,Z8=/(signature|private|identity|authchain|auth_chain|ephemeral|token|secret|password|cookie|authorization)/i;function ko(e){return e.replace(X8,"<signature>").replace(Q8,"<secret>").replace(J8,"<hex32>")}function eG(e){var r;e.message&&(e.message=ko(e.message));for(const n of((r=e.exception)==null?void 0:r.values)??[])n.value&&(n.value=ko(n.value));for(const n of e.breadcrumbs??[])n.message&&(n.message=ko(n.message));e.request&&(e.request.url&&(e.request.url=ko(e.request.url)),delete e.request.cookies,delete e.request.headers);const t=n=>{if(n)for(const i of Object.keys(n)){if(Z8.test(i)){delete n[i];continue}typeof n[i]=="string"&&(n[i]=ko(n[i]))}};return t(e.tags),t(e.extra),e}let oN=!1;function tG(){if(oN)return;const e=St.sentryDsn;if(!e)return;oN=!0,F4({dsn:e,environment:St.sentryEnvironment,release:St.sentryRelease,integrations:[new OF],tracesSampleRate:.01,sendDefaultPii:!1,ignoreErrors:[/user rejected/i,/user denied/i,"ResizeObserver loop limit exceeded"],beforeSend:eG});const t=rG();t&&Jq({id:t}),K8((r,n)=>mE(r,{extra:n}))}function rG(){var e;try{return((e=lo.getState().session)==null?void 0:e.address)??null}catch{return null}}const cN="shop-favorites";let wd=null;const ZD=e=>e?`${cN}:${e.toLowerCase()}`:cN;function uN(e){var t;try{const r=localStorage.getItem(ZD(e));if(!r)return{};const n=JSON.parse(r);if(!n||typeof n!="object")return{};const i=n,a="state"in n&&((t=i.state)!=null&&t.items)?i.state.items:n;return a&&typeof a=="object"?a:{}}catch{return{}}}function lN(e){try{localStorage.setItem(ZD(wd),JSON.stringify(e))}catch{}}const Ud=Xa(e=>({items:uN(wd),toggle:t=>e(r=>{const n={...r.items};return n[t.id]?delete n[t.id]:n[t.id]=t,lN(n),{items:n}}),remove:t=>e(r=>{const n={...r.items};return delete n[t],lN(n),{items:n}}),reloadFor:t=>{wd=t?t.toLowerCase():null,e({items:uN(wd)})}})),dN="shop:followed-creators:v1",nG=200;let tb=null;const eL=e=>e?`${dN}:${e.toLowerCase()}`:dN;function fN(){try{const e=localStorage.getItem(eL(tb));if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"):[]}catch{return[]}}function pN(e){try{localStorage.setItem(eL(tb),JSON.stringify(e))}catch{}}const Nv=Xa((e,t)=>({followed:fN(),isFollowing:r=>t().followed.includes(r.toLowerCase()),follow:r=>{const n=r.toLowerCase();if(!n||t().followed.includes(n))return;const i=[n,...t().followed].slice(0,nG);pN(i),e({followed:i}),_n("Shop Followed Creator",{creator_address:n,following_count:i.length})},unfollow:r=>{const n=r.toLowerCase();if(!t().followed.includes(n))return;const i=t().followed.filter(a=>a!==n);pN(i),e({followed:i}),_n("Shop Unfollowed Creator",{creator_address:n,following_count:i.length})},toggle:r=>t().isFollowing(r)?t().unfollow(r):t().follow(r),reloadFor:r=>{tb=r?r.toLowerCase():null,e({followed:fN()})}})),Pg="shop:signing_in",lo=Xa(e=>({session:null,connecting:!1,error:null,signIn:()=>{try{sessionStorage.setItem(Pg,"1")}catch{}L8()},disconnect:async()=>{_n("Shop Signed Out");try{await k8()}catch(t){sN(t,{flow:"wallet",step:"disconnect"})}V8(),Ud.getState().reloadFor(null),Nv.getState().reloadFor(null),e({session:null})},restore:async()=>{let t;try{t=await $8()}catch(n){sN(n,{flow:"wallet",step:"restore"});return}if(!t)return;e({session:t}),Ud.getState().reloadFor(t.address),Nv.getState().reloadFor(t.address),H8(t.address,{sign_in_method:iN(t.providerType)});let r=!1;try{r=sessionStorage.getItem(Pg)==="1",r&&sessionStorage.removeItem(Pg)}catch{}r&&_n("Shop Signed In",{method:iN(t.providerType),is_new_user:G8(t.address)})}}));async function tL(e){var n;const t=await fetch(`${St.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 gf(e){return li({queryKey:["profile",e],enabled:!!e,staleTime:5*6e4,queryFn:()=>tL(e)})}var ni={},Cg={},hN;function rL(){return hN||(hN=1,Object.defineProperty(Cg,"__esModule",{value:!0})),Cg}var ii={},jn={},fs={},Sa={},mN={},qo,yN;function In(){if(yN)return qo;yN=1;var e=function(t){return t&&t.Math===Math&&t};return qo=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof F_=="object"&&F_)||e(typeof qo=="object"&&qo)||(function(){return this})()||Function("return this")(),qo}var Mg,gN;function ts(){return gN||(gN=1,Mg=function(e){try{return!!e()}catch{return!0}}),Mg}var jg,_N;function _f(){if(_N)return jg;_N=1;var e=ts();return jg=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),jg}var Dg,vN;function iG(){if(vN)return Dg;vN=1;var e=_f(),t=Function.prototype,r=t.apply,n=t.call;return Dg=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Dg}var Lg,EN;function fo(){if(EN)return Lg;EN=1;var e=_f(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Lg=e?n:function(i){return function(){return r.apply(i,arguments)}},Lg}var $g,bN;function nL(){if(bN)return $g;bN=1;var e=fo(),t=e({}.toString),r=e("".slice);return $g=function(n){return r(t(n),8,-1)},$g}var kg,SN;function iL(){if(SN)return kg;SN=1;var e=nL(),t=fo();return kg=function(r){if(e(r)==="Function")return t(r)},kg}var qg,TN;function rs(){if(TN)return qg;TN=1;var e=typeof document=="object"&&document.all;return qg=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},qg}var Bg={},Ug,wN;function Zc(){if(wN)return Ug;wN=1;var e=ts();return Ug=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Ug}var Fg,IN;function rb(){if(IN)return Fg;IN=1;var e=_f(),t=Function.prototype.call;return Fg=e?t.bind(t):function(){return t.apply(t,arguments)},Fg}var Hg={},RN;function aG(){if(RN)return Hg;RN=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Hg.f=r?function(i){var a=t(this,i);return!!a&&a.enumerable}:e,Hg}var Vg,AN;function aL(){return AN||(AN=1,Vg=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Vg}var xg,ON;function sG(){if(ON)return xg;ON=1;var e=fo(),t=ts(),r=nL(),n=Object,i=e("".split);return xg=t(function(){return!n("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):n(a)}:n,xg}var Gg,NN;function sL(){return NN||(NN=1,Gg=function(e){return e==null}),Gg}var zg,PN;function oL(){if(PN)return zg;PN=1;var e=sL(),t=TypeError;return zg=function(r){if(e(r))throw new t("Can't call method on "+r);return r},zg}var Wg,CN;function oG(){if(CN)return Wg;CN=1;var e=sG(),t=oL();return Wg=function(r){return e(t(r))},Wg}var Yg,MN;function vf(){if(MN)return Yg;MN=1;var e=rs();return Yg=function(t){return typeof t=="object"?t!==null:e(t)},Yg}var Kg,jN;function cL(){return jN||(jN=1,Kg={}),Kg}var Xg,DN;function cG(){if(DN)return Xg;DN=1;var e=cL(),t=In(),r=rs(),n=function(i){return r(i)?i:void 0};return Xg=function(i,a){return arguments.length<2?n(e[i])||n(t[i]):e[i]&&e[i][a]||t[i]&&t[i][a]},Xg}var Jg,LN;function uG(){if(LN)return Jg;LN=1;var e=fo();return Jg=e({}.isPrototypeOf),Jg}var Qg,$N;function lG(){if($N)return Qg;$N=1;var e=In(),t=e.navigator,r=t&&t.userAgent;return Qg=r?String(r):"",Qg}var Zg,kN;function dG(){if(kN)return Zg;kN=1;var e=In(),t=lG(),r=e.process,n=e.Deno,i=r&&r.versions||n&&n.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&t&&(s=t.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=t.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),Zg=o,Zg}var e_,qN;function uL(){if(qN)return e_;qN=1;var e=dG(),t=ts(),r=In(),n=r.String;return e_=!!Object.getOwnPropertySymbols&&!t(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),e_}var t_,BN;function lL(){if(BN)return t_;BN=1;var e=uL();return t_=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",t_}var r_,UN;function dL(){if(UN)return r_;UN=1;var e=cG(),t=rs(),r=uG(),n=lL(),i=Object;return r_=n?function(a){return typeof a=="symbol"}:function(a){var s=e("Symbol");return t(s)&&r(s.prototype,i(a))},r_}var n_,FN;function fG(){if(FN)return n_;FN=1;var e=String;return n_=function(t){try{return e(t)}catch{return"Object"}},n_}var i_,HN;function fL(){if(HN)return i_;HN=1;var e=rs(),t=fG(),r=TypeError;return i_=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},i_}var a_,VN;function pG(){if(VN)return a_;VN=1;var e=fL(),t=sL();return a_=function(r,n){var i=r[n];return t(i)?void 0:e(i)},a_}var s_,xN;function hG(){if(xN)return s_;xN=1;var e=rb(),t=rs(),r=vf(),n=TypeError;return s_=function(i,a){var s,o;if(a==="string"&&t(s=i.toString)&&!r(o=e(s,i))||t(s=i.valueOf)&&!r(o=e(s,i))||a!=="string"&&t(s=i.toString)&&!r(o=e(s,i)))return o;throw new n("Can't convert object to primitive value")},s_}var o_={exports:{}},c_,GN;function mG(){return GN||(GN=1,c_=!0),c_}var u_,zN;function yG(){if(zN)return u_;zN=1;var e=In(),t=Object.defineProperty;return u_=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},u_}var WN;function gG(){if(WN)return o_.exports;WN=1;var e=mG(),t=In(),r=yG(),n="__core-js_shared__",i=o_.exports=t[n]||r(n,{});return(i.versions||(i.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"}),o_.exports}var l_,YN;function _G(){if(YN)return l_;YN=1;var e=gG();return l_=function(t,r){return e[t]||(e[t]=r||{})},l_}var d_,KN;function vG(){if(KN)return d_;KN=1;var e=oL(),t=Object;return d_=function(r){return t(e(r))},d_}var f_,XN;function nb(){if(XN)return f_;XN=1;var e=fo(),t=vG(),r=e({}.hasOwnProperty);return f_=Object.hasOwn||function(i,a){return r(t(i),a)},f_}var p_,JN;function EG(){if(JN)return p_;JN=1;var e=fo(),t=0,r=Math.random(),n=e(1.1.toString);return p_=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++t+r,36)},p_}var h_,QN;function bG(){if(QN)return h_;QN=1;var e=In(),t=_G(),r=nb(),n=EG(),i=uL(),a=lL(),s=e.Symbol,o=t("wks"),c=a?s.for||s:s&&s.withoutSetter||n;return h_=function(u){return r(o,u)||(o[u]=i&&r(s,u)?s[u]:c("Symbol."+u)),o[u]},h_}var m_,ZN;function SG(){if(ZN)return m_;ZN=1;var e=rb(),t=vf(),r=dL(),n=pG(),i=hG(),a=bG(),s=TypeError,o=a("toPrimitive");return m_=function(c,u){if(!t(c)||r(c))return c;var l=n(c,o),d;if(l){if(u===void 0&&(u="default"),d=e(l,c,u),!t(d)||r(d))return d;throw new s("Can't convert object to primitive value")}return u===void 0&&(u="number"),i(c,u)},m_}var y_,eP;function pL(){if(eP)return y_;eP=1;var e=SG(),t=dL();return y_=function(r){var n=e(r,"string");return t(n)?n:n+""},y_}var g_,tP;function TG(){if(tP)return g_;tP=1;var e=In(),t=vf(),r=e.document,n=t(r)&&t(r.createElement);return g_=function(i){return n?r.createElement(i):{}},g_}var __,rP;function hL(){if(rP)return __;rP=1;var e=Zc(),t=ts(),r=TG();return __=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),__}var nP;function wG(){if(nP)return Bg;nP=1;var e=Zc(),t=rb(),r=aG(),n=aL(),i=oG(),a=pL(),s=nb(),o=hL(),c=Object.getOwnPropertyDescriptor;return Bg.f=e?c:function(l,d){if(l=i(l),d=a(d),o)try{return c(l,d)}catch{}if(s(l,d))return n(!t(r.f,l,d),l[d])},Bg}var v_,iP;function IG(){if(iP)return v_;iP=1;var e=ts(),t=rs(),r=/#|\.prototype\./,n=function(c,u){var l=a[i(c)];return l===o?!0:l===s?!1:t(u)?e(u):!!u},i=n.normalize=function(c){return String(c).replace(r,".").toLowerCase()},a=n.data={},s=n.NATIVE="N",o=n.POLYFILL="P";return v_=n,v_}var E_,aP;function RG(){if(aP)return E_;aP=1;var e=iL(),t=fL(),r=_f(),n=e(e.bind);return E_=function(i,a){return t(i),a===void 0?i:r?n(i,a):function(){return i.apply(a,arguments)}},E_}var b_={},S_,sP;function AG(){if(sP)return S_;sP=1;var e=Zc(),t=ts();return S_=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),S_}var T_,oP;function OG(){if(oP)return T_;oP=1;var e=vf(),t=String,r=TypeError;return T_=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},T_}var cP;function NG(){if(cP)return b_;cP=1;var e=Zc(),t=hL(),r=AG(),n=OG(),i=pL(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c="enumerable",u="configurable",l="writable";return b_.f=e?r?function(f,p,g){if(n(f),p=i(p),n(g),typeof f=="function"&&p==="prototype"&&"value"in g&&l in g&&!g[l]){var y=o(f,p);y&&y[l]&&(f[p]=g.value,g={configurable:u in g?g[u]:y[u],enumerable:c in g?g[c]:y[c],writable:!1})}return s(f,p,g)}:s:function(f,p,g){if(n(f),p=i(p),n(g),t)try{return s(f,p,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(f[p]=g.value),f},b_}var w_,uP;function PG(){if(uP)return w_;uP=1;var e=Zc(),t=NG(),r=aL();return w_=e?function(n,i,a){return t.f(n,i,r(1,a))}:function(n,i,a){return n[i]=a,n},w_}var I_,lP;function CG(){if(lP)return I_;lP=1;var e=In(),t=iG(),r=iL(),n=rs(),i=wG().f,a=IG(),s=cL(),o=RG(),c=PG(),u=nb(),l=function(d){var f=function(p,g,y){if(this instanceof f){switch(arguments.length){case 0:return new d;case 1:return new d(p);case 2:return new d(p,g)}return new d(p,g,y)}return t(d,this,arguments)};return f.prototype=d.prototype,f};return I_=function(d,f){var p=d.target,g=d.global,y=d.stat,_=d.proto,R=g?e:y?e[p]:e[p]&&e[p].prototype,h=g?s:s[p]||c(s,p,{})[p],T=h.prototype,I,m,E,b,N,j,$,B,V;for(b in f)I=a(g?b:p+(y?".":"#")+b,d.forced),m=!I&&R&&u(R,b),j=h[b],m&&(d.dontCallGetSet?(V=i(R,b),$=V&&V.value):$=R[b]),N=m&&$?$:f[b],!(!I&&!_&&typeof j==typeof N)&&(d.bind&&m?B=o(N,e):d.wrap&&m?B=l(N):_&&n(N)?B=r(N):B=N,(d.sham||N&&N.sham||j&&j.sham)&&c(B,"sham",!0),c(h,b,B),_&&(E=p+"Prototype",u(s,E)||c(s,E,{}),c(s[E],b,N),d.real&&T&&(I||!T[b])&&c(T,b,N)))},I_}var dP;function MG(){if(dP)return mN;dP=1;var e=CG(),t=In();return e({global:!0,forced:t.globalThis!==t},{globalThis:t}),mN}var R_,fP;function jG(){return fP||(fP=1,MG(),R_=In()),R_}var A_,pP;function DG(){if(pP)return A_;pP=1;var e=jG();return A_=e,A_}var hP;function mL(){if(hP)return Sa;hP=1;var e=Sa&&Sa.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.getImplementation=void 0;var t=e(DG());function r(n,i){var a,s=(a=n[i])!==null&&a!==void 0?a:t.default[i];if(!s)throw new ReferenceError('"'+i+'" is not defined');return s}return Sa.getImplementation=r,Sa}var mP;function yL(){if(mP)return fs;mP=1;var e=fs&&fs.__values||function(o){var c=typeof Symbol=="function"&&Symbol.iterator,u=c&&o[c],l=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&l>=o.length&&(o=void 0),{value:o&&o[l++],done:!o}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(fs,"__esModule",{value:!0});var t=WD(),r=mL(),n="x-identity-auth-chain-",i="x-identity-timestamp",a="x-identity-metadata";function s(o){o===void 0&&(o={});var c=(0,r.getImplementation)(o,"Headers");return function(l,d,f,p,g){var y,_,R=new c(g),h=String(Date.now()),T=JSON.stringify(p),I=[d,f,h,T].join(":").toLowerCase(),m=0,E=t.Authenticator.signPayload(l,I);try{for(var b=e(E),N=b.next();!N.done;N=b.next()){var j=N.value;R.set(n+m,JSON.stringify(j)),m++}}catch($){y={error:$}}finally{try{N&&!N.done&&(_=b.return)&&_.call(b)}finally{if(y)throw y.error}}return R.set(i,h),R.set(a,T),R}}return fs.default=s,fs}var yP;function gL(){if(yP)return jn;yP=1;var e=jn&&jn.__assign||function(){return e=Object.assign||function(s){for(var o,c=1,u=arguments.length;c<u;c++){o=arguments[c];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(s[l]=o[l])}return s},e.apply(this,arguments)},t=jn&&jn.__rest||function(s,o){var c={};for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&o.indexOf(u)<0&&(c[u]=s[u]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,u=Object.getOwnPropertySymbols(s);l<u.length;l++)o.indexOf(u[l])<0&&Object.prototype.propertyIsEnumerable.call(s,u[l])&&(c[u[l]]=s[u[l]]);return c},r=jn&&jn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(jn,"__esModule",{value:!0});var n=r(yL()),i=mL();function a(s){s===void 0&&(s={});var o=(0,n.default)(s),c=(0,i.getImplementation)(s,"URL"),u=(0,i.getImplementation)(s,"Request"),l=(0,i.getImplementation)(s,"fetch");return function(f,p){if(p&&p.identity){var g=p.identity,y=p.metadata,_=t(p,["identity","metadata"]);if(typeof f=="string"||f instanceof c||globalThis.URL&&f instanceof globalThis.URL){var R=typeof f=="string"?new c(f):f,h=new u(R.toString(),e(e({},_),{headers:o(g,p.method||"GET",R.pathname,y||{},_==null?void 0:_.headers)}));return l(h)}var T=new c(f.url),I=new u(f),m=o(g,f.method||"GET",T.pathname,y||{});return m.forEach(function(E,b){I.headers.set(b,E)}),l(I)}return l(f,p)}}return jn.default=a,jn}var gP;function LG(){return gP||(gP=1,(function(e){var t=ii&&ii.__createBinding||(Object.create?(function(s,o,c,u){u===void 0&&(u=c),Object.defineProperty(s,u,{enumerable:!0,get:function(){return o[c]}})}):(function(s,o,c,u){u===void 0&&(u=c),s[u]=o[c]})),r=ii&&ii.__exportStar||function(s,o){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&t(o,s,c)},n=ii&&ii.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.signedHeaderFactory=e.signedFetchFactory=void 0,r(rL(),e);var i=gL();Object.defineProperty(e,"signedFetchFactory",{enumerable:!0,get:function(){return n(i).default}});var a=yL();Object.defineProperty(e,"signedHeaderFactory",{enumerable:!0,get:function(){return n(a).default}})})(ii)),ii}var _P;function $G(){return _P||(_P=1,(function(e){var t=ni&&ni.__createBinding||(Object.create?(function(a,s,o,c){c===void 0&&(c=o),Object.defineProperty(a,c,{enumerable:!0,get:function(){return s[o]}})}):(function(a,s,o,c){c===void 0&&(c=o),a[c]=s[o]})),r=ni&&ni.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&t(s,a,o)},n=ni&&ni.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),r(rL(),e),r(LG(),e);var i=n(gL());e.default=(0,i.default)()})(ni)),ni}var kG=$G();const Ef=Gd(kG);async function qG(e,t){const r=`${St.creditsServerUrl}/users/${e.toLowerCase()}/credits`,n=await Ef(r,{method:"GET",identity:t,metadata:{}});if(!n.ok)throw new Error(`getUserCredits ${n.status}: ${await n.text()}`);return n.json()}async function BG(e,t){const{usd:r}=await qG(e,t);return r??{balanceCents:0,credits:0}}async function HJ(e,t,r){const n=`${St.creditsServerUrl}/credits/authorize`,i=await Ef(n,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({usdPriceCents:t,tradeId:r})});if(!i.ok)throw new Error(`authorizeUsdCredit ${i.status}: ${await i.text()}`);return i.json()}async function VJ(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 i=n.toString(),a=`${St.creditsServerUrl}/users/${e.toLowerCase()}/purchases${i?`?${i}`:""}`,s=await Ef(a,{method:"GET",identity:t,metadata:{}});if(!s.ok)throw new Error(`fetchUserPurchases ${s.status}: ${await s.text()}`);const o=await s.json(),c=o.purchases??[],u=(r==null?void 0:r.skip)??0,l=r==null?void 0:r.first,d=typeof o.total=="number"?o.total:u+c.length+(c.length>=l?1:0);return{items:c,total:d}}async function xJ(e,t){if(t.length===0)return 0;const r=`${St.creditsServerUrl}/credits/authorize/cancel`,n=await Ef(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 GJ(e,t=1e3){const r=await fetch(`${St.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 UG(e){return li({queryKey:["usd-balance",e==null?void 0:e.address],enabled:!!e,staleTime:3e4,queryFn:async()=>BG(e.address,e.identity)})}function FG(e,t){return t?"—":(e==null?void 0:e.credits)??0}const HG={};function _L(e,t){let r;try{r=e()}catch{return}return{getItem:i=>{var a;const s=c=>c===null?null:JSON.parse(c,void 0),o=(a=r.getItem(i))!=null?a:null;return o instanceof Promise?o.then(s):s(o)},setItem:(i,a)=>r.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>r.removeItem(i)}}const Oc=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return Oc(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return Oc(n)(r)}}}},VG=(e,t)=>(r,n,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:_=>_,version:0,merge:(_,R)=>({...R,..._}),...t},s=!1;const o=new Set,c=new Set;let u;try{u=a.getStorage()}catch{}if(!u)return e((..._)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(..._)},n,i);const l=Oc(a.serialize),d=()=>{const _=a.partialize({...n()});let R;const h=l({state:_,version:a.version}).then(T=>u.setItem(a.name,T)).catch(T=>{R=T});if(R)throw R;return h},f=i.setState;i.setState=(_,R)=>{f(_,R),d()};const p=e((..._)=>{r(..._),d()},n,i);let g;const y=()=>{var _;if(!u)return;s=!1,o.forEach(h=>h(n()));const R=((_=a.onRehydrateStorage)==null?void 0:_.call(a,n()))||void 0;return Oc(u.getItem.bind(u))(a.name).then(h=>{if(h)return a.deserialize(h)}).then(h=>{if(h)if(typeof h.version=="number"&&h.version!==a.version){if(a.migrate)return a.migrate(h.state,h.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return h.state}).then(h=>{var T;return g=a.merge(h,(T=n())!=null?T:p),r(g,!0),d()}).then(()=>{R==null||R(g,void 0),s=!0,c.forEach(h=>h(g))}).catch(h=>{R==null||R(void 0,h)})};return i.persist={setOptions:_=>{a={...a,..._},_.getStorage&&(u=_.getStorage())},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>y(),hasHydrated:()=>s,onHydrate:_=>(o.add(_),()=>{o.delete(_)}),onFinishHydration:_=>(c.add(_),()=>{c.delete(_)})},y(),g||p},xG=(e,t)=>(r,n,i)=>{let a={storage:_L(()=>localStorage),partialize:y=>y,version:0,merge:(y,_)=>({..._,...y}),...t},s=!1;const o=new Set,c=new Set;let u=a.storage;if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...y)},n,i);const l=()=>{const y=a.partialize({...n()});return u.setItem(a.name,{state:y,version:a.version})},d=i.setState;i.setState=(y,_)=>{d(y,_),l()};const f=e((...y)=>{r(...y),l()},n,i);i.getInitialState=()=>f;let p;const g=()=>{var y,_;if(!u)return;s=!1,o.forEach(h=>{var T;return h((T=n())!=null?T:f)});const R=((_=a.onRehydrateStorage)==null?void 0:_.call(a,(y=n())!=null?y:f))||void 0;return Oc(u.getItem.bind(u))(a.name).then(h=>{if(h)if(typeof h.version=="number"&&h.version!==a.version){if(a.migrate)return[!0,a.migrate(h.state,h.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,h.state];return[!1,void 0]}).then(h=>{var T;const[I,m]=h;if(p=a.merge(m,(T=n())!=null?T:f),r(p,!0),I)return l()}).then(()=>{R==null||R(p,void 0),p=n(),s=!0,c.forEach(h=>h(p))}).catch(h=>{R==null||R(void 0,h)})};return i.persist={setOptions:y=>{a={...a,...y},y.storage&&(u=y.storage)},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:y=>(o.add(y),()=>{o.delete(y)}),onFinishHydration:y=>(c.add(y),()=>{c.delete(y)})},a.skipHydration||g(),p||f},GG=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((HG?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),VG(e,t)):xG(e,t),zG=GG,WG=e=>Ac(e.reduce((t,r)=>t+r.priceCredits,0)),zr=Xa()(zG((e,t)=>({items:[],open:!1,justAddedCount:0,fittingOpen:!1,add:(r,n="grid")=>{const i=t().items.some(s=>s.id===r.id);if(e(s=>i?{open:!0}:{items:[...s.items,r],open:!0,justAddedCount:(s.open?s.justAddedCount:0)+1}),i)return;const a=t().items;_n("Shop Added To Cart",{item_id:r.itemId??null,contract_address:r.contractAddress,price_credits:r.priceCredits,price_usd:Ac(r.priceCredits),is_primary:!r.tokenId,source:n,cart_size:a.length,cart_value_usd:WG(a)})},remove:r=>{const n=t().items.find(i=>i.id===r);e(i=>({items:i.items.filter(a=>a.id!==r)})),n&&_n("Shop Removed From Cart",{item_id:n.itemId??null,cart_size:t().items.length})},clear:()=>e({items:[]}),restore:r=>e(n=>n.items.length?{}:{items:r}),setOpen:r=>e({open:r,justAddedCount:0}),setFittingOpen:r=>e(r?{fittingOpen:r,open:!1}:{fittingOpen:r})}),{name:"dcl_shop_cart",version:1,storage:_L(()=>localStorage),partialize:e=>({items:e.items})})),Xs={name:"credits",nameSingular:"credit",symbol:"◈",iconClass:"ico-credits"};function zJ(e){return`${e} ${e===1?Xs.nameSingular:Xs.name}`}const YG=Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2});function Ss(e){return YG.format(e)}function yc(e){return e.toLocaleString("en")}function yn({className:e}){return P.jsx("span",{className:`ico ${Xs.iconClass}${e?` ${e}`:""}`,"aria-hidden":!0})}function vL(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function KG(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function XG(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 JG(e,t){var r;return(((r=e==null?void 0:e.trim())==null?void 0:r[0])||t.replace(/^0x/i,"")[0]||"?").toUpperCase()}function ib({address:e,className:t,linkToProfile:r,hidePrefix:n}){var p,g;const i=Zv(),{data:a}=gf(e),s=(g=(p=a==null?void 0:a.avatar)==null?void 0:p.snapshots)==null?void 0:g.face256,[o,c]=ve.useState(!1);if(ve.useEffect(()=>c(!1),[s]),!e)return null;const u=a!=null&&a.name?vL(a.name):KG(e),d=!!s&&!o?P.jsx("img",{className:"creator__ava",src:s,alt:"",loading:"lazy",onError:()=>c(!0)}):P.jsx("span",{className:"creator__ava creator__ava--letter",style:{backgroundColor:XG(e)},"aria-hidden":!0,children:JG(a==null?void 0:a.name,e)}),f=P.jsxs(P.Fragment,{children:[d,P.jsxs("span",{className:"creator__name",children:[n?null:"By ",P.jsx("span",{className:"creator__display",children:u})]})]});return r?P.jsx("button",{className:`creator creator--link${t?` ${t}`:""}`,onClick:y=>{y.stopPropagation(),i(`/assets/creator/${e}`)},children:f}):P.jsx("span",{className:`creator${t?` ${t}`:""}`,children:f})}function EL(){return P.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:[P.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"#1ea672"}),P.jsx("path",{d:"M5.8 10.3l2.7 2.7 5.7-6",stroke:"#fff",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]})}function QG({item:e,onRemove:t}){return P.jsxs("li",{className:"cartd__card",children:[P.jsxs("div",{className:"cartd__thumb",children:[e.thumbnail?P.jsx("img",{src:e.thumbnail,alt:e.name}):null,P.jsx("span",{className:"cartd__thumb-check",children:P.jsx(EL,{})})]}),P.jsxs("div",{className:"cartd__info",children:[P.jsxs("div",{children:[P.jsx("div",{className:"cartd__name",title:e.name,children:e.name}),e.creator?P.jsx(ib,{address:e.creator,className:"cartd__by"}):null]}),P.jsxs("div",{className:"cartd__rowbottom",children:[P.jsxs("div",{className:"cartd__stepper",children:[P.jsx("button",{className:"cartd__step",onClick:()=>t(e.id),"aria-label":`Remove ${e.name} from cart`,children:P.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:P.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),P.jsx("span",{className:"cartd__qty",children:"1"}),P.jsx("button",{className:"cartd__step",disabled:!0,"aria-label":"Increase quantity",children:P.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:P.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}),P.jsxs("div",{className:"cartd__price",title:yc(e.priceCredits),children:[P.jsx(yn,{className:"cartd__diamond"}),Ss(e.priceCredits)]})]})]}),P.jsx("button",{className:"cartd__del",onClick:()=>t(e.id),"aria-label":`Remove ${e.name}`,title:"Remove",children:P.jsx("span",{className:"ico ico-trash","aria-hidden":!0})})]})}function ZG(){const e=zr(c=>c.items),t=zr(c=>c.open),r=zr(c=>c.justAddedCount),n=zr(c=>c.setOpen),i=zr(c=>c.remove),a=ve.useRef(null),s=e.reduce((c,u)=>c+u.priceCredits,0),o=e.length;return ve.useEffect(()=>{if(!t)return;const c=u=>{u.key==="Escape"&&n(!1)};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[t,n]),!t||o===0?null:I2.createPortal(P.jsxs("div",{className:"cartd",role:"dialog","aria-modal":"true","aria-label":"Shopping cart",children:[P.jsx("div",{className:"cartd__scrim",onClick:()=>n(!1)}),P.jsxs("aside",{className:"cartd__panel",ref:a,children:[P.jsxs("header",{className:"cartd__head",children:[P.jsxs("h2",{className:"cartd__title",children:["Shopping Cart (",o,")"]}),P.jsx("button",{className:"cartd__close",onClick:()=>n(!1),"aria-label":"Close",children:P.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,focusable:"false",children:P.jsx("path",{d:"M5 5l14 14M19 5L5 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),P.jsxs("div",{className:"cartd__body",children:[r>0?P.jsxs("div",{className:"cartd__banner",children:[P.jsx("span",{className:"cartd__banner-check",children:P.jsx(EL,{})}),P.jsxs("p",{children:[P.jsxs("strong",{children:[r," Item",r>1?"s":""]})," ","successfully added to cart!"]})]}):null,P.jsx("ul",{className:"cartd__list",children:e.map(c=>P.jsx(QG,{item:c,onRemove:i},c.id))})]}),P.jsxs("footer",{className:"cartd__foot",children:[P.jsxs("div",{className:"cartd__totalrow",children:[P.jsxs("span",{className:"cartd__total-label",children:["Total: ",o," item",o>1?"s":""]}),P.jsxs("span",{className:"cartd__total-val",title:yc(s),children:[P.jsx(yn,{className:"cartd__total-diamond"}),Ss(s)]})]}),P.jsxs("div",{className:"cartd__ctas",children:[P.jsx(Ia,{className:"cartd__cta cartd__cta--primary",to:"/cart",onClick:()=>n(!1),children:"Go to cart"}),P.jsx("button",{className:"cartd__cta cartd__cta--secondary",onClick:()=>n(!1),children:"Continue shopping"})]})]})]})]}),document.body)}var Bo={},O_={exports:{}},vP;function ab(){return vP||(vP=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})(O_)),O_.exports}var N_={};function wt(){return wt=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},wt.apply(null,arguments)}function Ii(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 bL(e){if(ve.isValidElement(e)||!Ii(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=bL(e[r])}),t}function xn(e,t,r={clone:!0}){const n=r.clone?wt({},e):e;return Ii(e)&&Ii(t)&&Object.keys(t).forEach(i=>{ve.isValidElement(t[i])?n[i]=t[i]:Ii(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ii(e[i])?n[i]=xn(e[i],t[i],r):r.clone?n[i]=Ii(t[i])?bL(t[i]):t[i]:n[i]=t[i]}),n}const ez=Object.freeze(Object.defineProperty({__proto__:null,default:xn,isPlainObject:Ii},Symbol.toStringTag,{value:"Module"}));function Nc(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 tz=Object.freeze(Object.defineProperty({__proto__:null,default:Nc},Symbol.toStringTag,{value:"Module"}));var P_={exports:{}},Ot={};/**
|
|
75
|
+
* @license React
|
|
76
|
+
* react-is.production.js
|
|
77
|
+
*
|
|
78
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the MIT license found in the
|
|
81
|
+
* LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/var EP;function rz(){if(EP)return Ot;EP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function g(y){if(typeof y=="object"&&y!==null){var _=y.$$typeof;switch(_){case e:switch(y=y.type,y){case r:case i:case n:case c:case u:case f:return y;default:switch(y=y&&y.$$typeof,y){case s:case o:case d:case l:return y;case a:return y;default:return _}}case t:return _}}}return Ot.ContextConsumer=a,Ot.ContextProvider=s,Ot.Element=e,Ot.ForwardRef=o,Ot.Fragment=r,Ot.Lazy=d,Ot.Memo=l,Ot.Portal=t,Ot.Profiler=i,Ot.StrictMode=n,Ot.Suspense=c,Ot.SuspenseList=u,Ot.isContextConsumer=function(y){return g(y)===a},Ot.isContextProvider=function(y){return g(y)===s},Ot.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Ot.isForwardRef=function(y){return g(y)===o},Ot.isFragment=function(y){return g(y)===r},Ot.isLazy=function(y){return g(y)===d},Ot.isMemo=function(y){return g(y)===l},Ot.isPortal=function(y){return g(y)===t},Ot.isProfiler=function(y){return g(y)===i},Ot.isStrictMode=function(y){return g(y)===n},Ot.isSuspense=function(y){return g(y)===c},Ot.isSuspenseList=function(y){return g(y)===u},Ot.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===c||y===u||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===l||y.$$typeof===s||y.$$typeof===a||y.$$typeof===o||y.$$typeof===p||y.getModuleId!==void 0)},Ot.typeOf=g,Ot}var bP;function nz(){return bP||(bP=1,P_.exports=rz()),P_.exports}var SP=nz();const iz=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function SL(e){const t=`${e}`.match(iz);return t&&t[1]||""}function TL(e,t=""){return e.displayName||e.name||SL(e)||t}function TP(e,t,r){const n=TL(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function az(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return TL(e,"Component");if(typeof e=="object")switch(e.$$typeof){case SP.ForwardRef:return TP(e,e.render,"ForwardRef");case SP.Memo:return TP(e,e.type,"memo");default:return}}}const sz=Object.freeze(Object.defineProperty({__proto__:null,default:az,getFunctionName:SL},Symbol.toStringTag,{value:"Module"}));function Li(e){if(typeof e!="string")throw new Error(Nc(7));return e.charAt(0).toUpperCase()+e.slice(1)}const oz=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"}));function cz(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function uz(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function lz(e,t){return()=>null}function dz(e,t){var r,n;return ve.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 wL(e){return e&&e.ownerDocument||document}function fz(e){return wL(e).defaultView||window}function pz(e,t){return()=>null}function IL(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const RL=typeof window<"u"?ve.useLayoutEffect:ve.useEffect;let wP=0;function hz(e){const[t,r]=ve.useState(e),n=e||t;return ve.useEffect(()=>{t==null&&(wP+=1,r(`mui-${wP}`))},[t]),n}const IP=H_.useId;function mz(e){if(IP!==void 0){const t=IP();return e??t}return hz(e)}function yz(e,t,r,n,i){return null}function gz({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=ve.useRef(e!==void 0),[a,s]=ve.useState(t),o=i?e:a,c=ve.useCallback(u=>{i||s(u)},[]);return[o,c]}function _z(e){const t=ve.useRef(e);return RL(()=>{t.current=e}),ve.useRef((...r)=>(0,t.current)(...r)).current}function vz(...e){return ve.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{IL(r,t)})},e)}const RP={};function Ez(e,t){const r=ve.useRef(RP);return r.current===RP&&(r.current=e(t)),r}const bz=[];function Sz(e){ve.useEffect(e,bz)}class bf{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new bf}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function WJ(){const e=Ez(bf.create).current;return Sz(e.disposeEffect),e}let Sf=!0,Pv=!1;const Tz=new bf,wz={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 Iz(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&wz[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Rz(e){e.metaKey||e.altKey||e.ctrlKey||(Sf=!0)}function C_(){Sf=!1}function Az(){this.visibilityState==="hidden"&&Pv&&(Sf=!0)}function Oz(e){e.addEventListener("keydown",Rz,!0),e.addEventListener("mousedown",C_,!0),e.addEventListener("pointerdown",C_,!0),e.addEventListener("touchstart",C_,!0),e.addEventListener("visibilitychange",Az,!0)}function Nz(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Sf||Iz(t)}function Pz(){const e=ve.useCallback(i=>{i!=null&&Oz(i.ownerDocument)},[]),t=ve.useRef(!1);function r(){return t.current?(Pv=!0,Tz.start(100,()=>{Pv=!1}),t.current=!1,!0):!1}function n(i){return Nz(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Cv(e,t){const r=wt({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=wt({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=wt({},a),Object.keys(i).forEach(s=>{r[n][s]=Cv(i[s],a[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Cz(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),r&&r[s]&&a.push(r[s])}return a},[]).join(" ")}),n}const AP=e=>e,Mz=()=>{let e=AP;return{configure(t){e=t},generate(t){return e(t)},reset(){e=AP}}},AL=Mz(),jz={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 OL(e,t,r="Mui"){const n=jz[t];return n?`${r}-${n}`:`${AL.generate(e)}-${t}`}function Dz(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=OL(e,i,r)}),n}function Lz(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const $z=Object.freeze(Object.defineProperty({__proto__:null,default:Lz},Symbol.toStringTag,{value:"Module"}));function ki(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 NL(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=NL(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function kz(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=NL(e))&&(n&&(n+=" "),n+=t);return n}const PL=ve.createContext(void 0);function YJ({value:e,children:t}){return P.jsx(PL.Provider,{value:e,children:t})}function qz(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Cv(i.defaultProps,n):!i.styleOverrides&&!i.variants?Cv(i,n):n}function Bz({props:e,name:t}){const r=ve.useContext(PL);return qz({props:e,name:t,theme:{components:r}})}function Uz(e){return Bz(e)}var Ta={},M_={exports:{}},OP;function Fz(){return OP||(OP=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 i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(r[a]=i[a])}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})(M_)),M_.exports}var j_={exports:{}},NP;function Hz(){return NP||(NP=1,(function(e){function t(r,n){if(r==null)return{};var i={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.indexOf(a)!==-1)continue;i[a]=r[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(j_)),j_.exports}function Vz(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 xz(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 Gz=(function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},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(xz(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Vz(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e})(),br="-ms-",Fd="-moz-",gt="-webkit-",CL="comm",sb="rule",ob="decl",zz="@import",ML="@keyframes",Wz="@layer",Yz=Math.abs,Tf=String.fromCharCode,Kz=Object.assign;function Xz(e,t){return dr(e,0)^45?(((t<<2^dr(e,0))<<2^dr(e,1))<<2^dr(e,2))<<2^dr(e,3):0}function jL(e){return e.trim()}function Jz(e,t){return(e=t.exec(e))?e[0]:e}function _t(e,t,r){return e.replace(t,r)}function Mv(e,t){return e.indexOf(t)}function dr(e,t){return e.charCodeAt(t)|0}function Pc(e,t,r){return e.slice(t,r)}function qn(e){return e.length}function cb(e){return e.length}function md(e,t){return t.push(e),e}function Qz(e,t){return e.map(t).join("")}var wf=1,Js=1,DL=0,Ur=0,Qt=0,po="";function If(e,t,r,n,i,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:wf,column:Js,length:s,return:""}}function Uo(e,t){return Kz(If("",null,null,"",null,null,0),e,{length:-e.length},t)}function Zz(){return Qt}function eW(){return Qt=Ur>0?dr(po,--Ur):0,Js--,Qt===10&&(Js=1,wf--),Qt}function Yr(){return Qt=Ur<DL?dr(po,Ur++):0,Js++,Qt===10&&(Js=1,wf++),Qt}function Gn(){return dr(po,Ur)}function Id(){return Ur}function eu(e,t){return Pc(po,e,t)}function Cc(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 LL(e){return wf=Js=1,DL=qn(po=e),Ur=0,[]}function $L(e){return po="",e}function Rd(e){return jL(eu(Ur-1,jv(e===91?e+2:e===40?e+1:e)))}function tW(e){for(;(Qt=Gn())&&Qt<33;)Yr();return Cc(e)>2||Cc(Qt)>3?"":" "}function rW(e,t){for(;--t&&Yr()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return eu(e,Id()+(t<6&&Gn()==32&&Yr()==32))}function jv(e){for(;Yr();)switch(Qt){case e:return Ur;case 34:case 39:e!==34&&e!==39&&jv(Qt);break;case 40:e===41&&jv(e);break;case 92:Yr();break}return Ur}function nW(e,t){for(;Yr()&&e+Qt!==57;)if(e+Qt===84&&Gn()===47)break;return"/*"+eu(t,Ur-1)+"*"+Tf(e===47?e:Yr())}function iW(e){for(;!Cc(Gn());)Yr();return eu(e,Ur)}function aW(e){return $L(Ad("",null,null,null,[""],e=LL(e),0,[0],e))}function Ad(e,t,r,n,i,a,s,o,c){for(var u=0,l=0,d=s,f=0,p=0,g=0,y=1,_=1,R=1,h=0,T="",I=i,m=a,E=n,b=T;_;)switch(g=h,h=Yr()){case 40:if(g!=108&&dr(b,d-1)==58){Mv(b+=_t(Rd(h),"&","&\f"),"&\f")!=-1&&(R=-1);break}case 34:case 39:case 91:b+=Rd(h);break;case 9:case 10:case 13:case 32:b+=tW(g);break;case 92:b+=rW(Id()-1,7);continue;case 47:switch(Gn()){case 42:case 47:md(sW(nW(Yr(),Id()),t,r),c);break;default:b+="/"}break;case 123*y:o[u++]=qn(b)*R;case 125*y:case 59:case 0:switch(h){case 0:case 125:_=0;case 59+l:R==-1&&(b=_t(b,/\f/g,"")),p>0&&qn(b)-d&&md(p>32?CP(b+";",n,r,d-1):CP(_t(b," ","")+";",n,r,d-2),c);break;case 59:b+=";";default:if(md(E=PP(b,t,r,u,l,i,o,T,I=[],m=[],d),a),h===123)if(l===0)Ad(b,t,E,E,I,a,d,o,m);else switch(f===99&&dr(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ad(e,E,E,n&&md(PP(e,E,E,0,0,i,o,T,i,I=[],d),m),i,m,d,o,n?I:m);break;default:Ad(b,E,E,E,[""],m,0,o,m)}}u=l=p=0,y=R=1,T=b="",d=s;break;case 58:d=1+qn(b),p=g;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&eW()==125)continue}switch(b+=Tf(h),h*y){case 38:R=l>0?1:(b+="\f",-1);break;case 44:o[u++]=(qn(b)-1)*R,R=1;break;case 64:Gn()===45&&(b+=Rd(Yr())),f=Gn(),l=d=qn(T=b+=iW(Id())),h++;break;case 45:g===45&&qn(b)==2&&(y=0)}}return a}function PP(e,t,r,n,i,a,s,o,c,u,l){for(var d=i-1,f=i===0?a:[""],p=cb(f),g=0,y=0,_=0;g<n;++g)for(var R=0,h=Pc(e,d+1,d=Yz(y=s[g])),T=e;R<p;++R)(T=jL(y>0?f[R]+" "+h:_t(h,/&\f/g,f[R])))&&(c[_++]=T);return If(e,t,r,i===0?sb:o,c,u,l)}function sW(e,t,r){return If(e,t,r,CL,Tf(Zz()),Pc(e,2,-2),0)}function CP(e,t,r,n){return If(e,t,r,ob,Pc(e,0,n),Pc(e,n+1,-1),n)}function As(e,t){for(var r="",n=cb(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function oW(e,t,r,n){switch(e.type){case Wz:if(e.children.length)break;case zz:case ob:return e.return=e.return||e.value;case CL:return"";case ML:return e.return=e.value+"{"+As(e.children,n)+"}";case sb:e.value=e.props.join(",")}return qn(r=As(e.children,n))?e.return=e.value+"{"+r+"}":""}function cW(e){var t=cb(e);return function(r,n,i,a){for(var s="",o=0;o<t;o++)s+=e[o](r,n,i,a)||"";return s}}function uW(e){return function(t){t.root||(t=t.return)&&e(t)}}function kL(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var lW=function(t,r,n){for(var i=0,a=0;i=a,a=Gn(),i===38&&a===12&&(r[n]=1),!Cc(a);)Yr();return eu(t,Ur)},dW=function(t,r){var n=-1,i=44;do switch(Cc(i)){case 0:i===38&&Gn()===12&&(r[n]=1),t[n]+=lW(Ur-1,r,n);break;case 2:t[n]+=Rd(i);break;case 4:if(i===44){t[++n]=Gn()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Tf(i)}while(i=Yr());return t},fW=function(t,r){return $L(dW(LL(t),r))},MP=new WeakMap,pW=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=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&&!MP.get(n))&&!i){MP.set(t,!0);for(var a=[],s=fW(r,a),o=n.props,c=0,u=0;c<s.length;c++)for(var l=0;l<o.length;l++,u++)t.props[u]=a[c]?s[c].replace(/&\f/g,o[l]):o[l]+" "+s[c]}}},hW=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function qL(e,t){switch(Xz(e,t)){case 5103:return gt+"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 gt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+Fd+e+br+e+e;case 6828:case 4268:return gt+e+br+e+e;case 6165:return gt+e+br+"flex-"+e+e;case 5187:return gt+e+_t(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+br+"flex-$1$2")+e;case 5443:return gt+e+br+"flex-item-"+_t(e,/flex-|-self/,"")+e;case 4675:return gt+e+br+"flex-line-pack"+_t(e,/align-content|flex-|-self/,"")+e;case 5548:return gt+e+br+_t(e,"shrink","negative")+e;case 5292:return gt+e+br+_t(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+_t(e,"-grow","")+gt+e+br+_t(e,"grow","positive")+e;case 4554:return gt+_t(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return _t(_t(_t(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return _t(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return _t(_t(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+br+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gt+e+e;case 4095:case 3583:case 4068:case 2532:return _t(e,/(.+)-inline(.+)/,gt+"$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(qn(e)-1-t>6)switch(dr(e,t+1)){case 109:if(dr(e,t+4)!==45)break;case 102:return _t(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+Fd+(dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Mv(e,"stretch")?qL(_t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dr(e,t+1)!==115)break;case 6444:switch(dr(e,qn(e)-3-(~Mv(e,"!important")&&10))){case 107:return _t(e,":",":"+gt)+e;case 101:return _t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gt+(dr(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+br+"$2box$3")+e}break;case 5936:switch(dr(e,t+11)){case 114:return gt+e+br+_t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+br+_t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+br+_t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gt+e+br+e+e}return e}var mW=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case ob:t.return=qL(t.value,t.length);break;case ML:return As([Uo(t,{value:_t(t.value,"@","@"+gt)})],i);case sb:if(t.length)return Qz(t.props,function(a){switch(Jz(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return As([Uo(t,{props:[_t(a,/:(read-\w+)/,":"+Fd+"$1")]})],i);case"::placeholder":return As([Uo(t,{props:[_t(a,/:(plac\w+)/,":"+gt+"input-$1")]}),Uo(t,{props:[_t(a,/:(plac\w+)/,":"+Fd+"$1")]}),Uo(t,{props:[_t(a,/:(plac\w+)/,br+"input-$1")]})],i)}return""})}},yW=[mW],BL=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var _=y.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||yW,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var _=y.getAttribute("data-emotion").split(" "),R=1;R<_.length;R++)a[_[R]]=!0;o.push(y)});var c,u=[pW,hW];{var l,d=[oW,uW(function(y){l.insert(y)})],f=cW(u.concat(i,d)),p=function(_){return As(aW(_),f)};c=function(_,R,h,T){l=h,p(_?_+"{"+R.styles+"}":R.styles),T&&(g.inserted[R.name]=!0)}}var g={key:r,sheet:new Gz({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return g.sheet.hydrate(o),g},gW=!0;function UL(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var ub=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||gW===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},lb=function(t,r,n){ub(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function _W(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=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(i){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 vW={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},EW=/[A-Z]|^ms/g,bW=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FL=function(t){return t.charCodeAt(1)===45},jP=function(t){return t!=null&&typeof t!="boolean"},D_=kL(function(e){return FL(e)?e:e.replace(EW,"-$&").toLowerCase()}),DP=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(bW,function(n,i,a){return Bn={name:i,styles:a,next:Bn},i})}return vW[t]!==1&&!FL(t)&&typeof r=="number"&&r!==0?r+"px":r};function Mc(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 i=r;if(i.anim===1)return Bn={name:i.name,styles:i.styles,next:Bn},i.name;var a=r;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Bn={name:s.name,styles:s.styles,next:Bn},s=s.next;var o=a.styles+";";return o}return SW(e,t,r)}case"function":{if(e!==void 0){var c=Bn,u=r(e);return Bn=c,Mc(e,t,u)}break}}var l=r;if(t==null)return l;var d=t[l];return d!==void 0?d:l}function SW(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Mc(e,t,r[i])+";";else for(var a in r){var s=r[a];if(typeof s!="object"){var o=s;t!=null&&t[o]!==void 0?n+=a+"{"+t[o]+"}":jP(o)&&(n+=D_(a)+":"+DP(a,o)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)jP(s[c])&&(n+=D_(a)+":"+DP(a,s[c])+";");else{var u=Mc(e,t,s);switch(a){case"animation":case"animationName":{n+=D_(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var LP=/label:\s*([^\s;{]+)\s*(;|$)/g,Bn;function tu(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,i="";Bn=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Mc(r,t,a);else{var s=a;i+=s[0]}for(var o=1;o<e.length;o++)if(i+=Mc(r,t,e[o]),n){var c=a;i+=c[o]}LP.lastIndex=0;for(var u="",l;(l=LP.exec(i))!==null;)u+="-"+l[1];var d=_W(i)+u;return{name:d,styles:i,next:Bn}}var TW=function(t){return t()},HL=H_.useInsertionEffect?H_.useInsertionEffect:!1,VL=HL||TW,$P=HL||ve.useLayoutEffect,xL=ve.createContext(typeof HTMLElement<"u"?BL({key:"css"}):null),wW=xL.Provider,db=function(t){return ve.forwardRef(function(r,n){var i=ve.useContext(xL);return t(r,i,n)})},Rf=ve.createContext({}),fb={}.hasOwnProperty,Dv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",IW=function(t,r){var n={};for(var i in r)fb.call(r,i)&&(n[i]=r[i]);return n[Dv]=t,n},RW=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return ub(r,n,i),VL(function(){return lb(r,n,i)}),null},AW=db(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[Dv],a=[n],s="";typeof e.className=="string"?s=UL(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var o=tu(a,void 0,ve.useContext(Rf));s+=t.key+"-"+o.name;var c={};for(var u in e)fb.call(e,u)&&u!=="css"&&u!==Dv&&(c[u]=e[u]);return c.className=s,r&&(c.ref=r),ve.createElement(ve.Fragment,null,ve.createElement(RW,{cache:t,serialized:o,isStringTag:typeof i=="string"}),ve.createElement(i,c))}),OW=AW,kP=function(t,r){var n=arguments;if(r==null||!fb.call(r,"css"))return ve.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=OW,a[1]=IW(t,r);for(var s=2;s<i;s++)a[s]=n[s];return ve.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(kP||(kP={}));var NW=db(function(e,t){var r=e.styles,n=tu([r],void 0,ve.useContext(Rf)),i=ve.useRef();return $P(function(){var a=t.key+"-global",s=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,c=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(o=!0,c.setAttribute("data-emotion",a),s.hydrate([c])),i.current=[s,o],function(){s.flush()}},[t]),$P(function(){var a=i.current,s=a[0],o=a[1];if(o){a[1]=!1;return}if(n.next!==void 0&&lb(t,n.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function GL(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return tu(t)}function PW(){var e=GL.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 CW=/^((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)-.*))$/,MW=kL(function(e){return CW.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),jW=MW,DW=function(t){return t!=="theme"},qP=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?jW:DW},BP=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},LW=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return ub(r,n,i),VL(function(){return lb(r,n,i)}),null},$W=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,s;r!==void 0&&(a=r.label,s=r.target);var o=BP(t,r,n),c=o||qP(i),u=!c("as");return function(){var l=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),l[0]==null||l[0].raw===void 0)d.push.apply(d,l);else{var f=l[0];d.push(f[0]);for(var p=l.length,g=1;g<p;g++)d.push(l[g],f[g])}var y=db(function(_,R,h){var T=u&&_.as||i,I="",m=[],E=_;if(_.theme==null){E={};for(var b in _)E[b]=_[b];E.theme=ve.useContext(Rf)}typeof _.className=="string"?I=UL(R.registered,m,_.className):_.className!=null&&(I=_.className+" ");var N=tu(d.concat(m),R.registered,E);I+=R.key+"-"+N.name,s!==void 0&&(I+=" "+s);var j=u&&o===void 0?qP(T):c,$={};for(var B in _)u&&B==="as"||j(B)&&($[B]=_[B]);return $.className=I,h&&($.ref=h),ve.createElement(ve.Fragment,null,ve.createElement(LW,{cache:R,serialized:N,isStringTag:typeof T=="string"}),ve.createElement(T,$))});return y.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=d,y.__emotion_forwardProp=o,Object.defineProperty(y,"toString",{value:function(){return"."+s}}),y.withComponent=function(_,R){var h=e(_,wt({},r,R,{shouldForwardProp:BP(y,R,!0)}));return h.apply(void 0,d)},y}},kW=["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"],Lv=$W.bind(null);kW.forEach(function(e){Lv[e]=Lv(e)});function qW(e,t){const r=BL({key:"css",prepend:e});if(t){const n=r.insert;r.insert=(...i)=>(i[1].styles.match(/^@layer\s+[^{]*$/)||(i[1].styles=`@layer mui {${i[1].styles}}`),n(...i))}return r}const L_=new Map;function BW(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,i=ve.useMemo(()=>{const a=`${t}-${r}`;if(typeof document=="object"&&L_.has(a))return L_.get(a);const s=qW(t,r);return L_.set(a,s),s},[t,r]);return t||r?P.jsx(wW,{value:i,children:n}):n}function UW(e){return e==null||Object.keys(e).length===0}function FW(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(UW(i)?r:i):t;return P.jsx(NW,{styles:n})}function HW(e,t){return Lv(e,t)}const VW=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},UP=[];function xW(e){return UP[0]=e,tu(UP)}const GW=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:FW,StyledEngineProvider:BW,ThemeContext:Rf,css:GL,default:HW,internal_processStyles:VW,internal_serializeStyles:xW,keyframes:PW},Symbol.toStringTag,{value:"Module"})),zW=hi(GW),WW=hi(ez),YW=hi(oz),KW=hi(sz),XW=["values","unit","step"],JW=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)=>wt({},r,{[n.key]:n.val}),{})};function zL(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ki(e,XW),a=JW(t),s=Object.keys(a);function o(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,p){const g=s.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:p)-n/100}${r})`}function l(f){return s.indexOf(f)+1<s.length?u(f,s[s.indexOf(f)+1]):o(f)}function d(f){const p=s.indexOf(f);return p===0?o(s[1]):p===s.length-1?c(s[p]):u(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return wt({keys:s,values:a,up:o,down:c,between:u,only:l,not:d,unit:r},i)}const QW={borderRadius:4};function gc(e,t){return t?xn(e,t,{clone:!1}):e}const pb={xs:0,sm:600,md:900,lg:1200,xl:1536},FP={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pb[e]}px)`};function pi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||FP;return t.reduce((s,o,c)=>(s[a.up(a.keys[c])]=r(t[c]),s),{})}if(typeof t=="object"){const a=n.breakpoints||FP;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||pb).indexOf(o)!==-1){const c=a.up(o);s[c]=r(t[o],o)}else{const c=o;s[c]=t[c]}return s},{})}return r(t)}function ZW(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function HP(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function Af(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Hd(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Af(e,r)||n,t&&(i=t(i,n,e)),i}function Xt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],c=s.theme,u=Af(c,n)||{};return pi(s,o,d=>{let f=Hd(u,i,d);return d===f&&typeof d=="string"&&(f=Hd(u,i,`${t}${d==="default"?"":Li(d)}`,d)),r===!1?f:{[r]:f}})};return a.propTypes={},a.filterProps=[t],a}function e7(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const t7={m:"margin",p:"padding"},r7={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},VP={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},n7=e7(e=>{if(e.length>2)if(VP[e])e=VP[e];else return[e];const[t,r]=e.split(""),n=t7[t],i=r7[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),hb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hb,...mb];function ru(e,t,r,n){var i;const a=(i=Af(e,t,!1))!=null?i:r;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function WL(e){return ru(e,"spacing",8)}function nu(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 i7(e,t){return r=>e.reduce((n,i)=>(n[i]=nu(t,r),n),{})}function a7(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=n7(r),a=i7(i,n),s=e[r];return pi(e,s,a)}function YL(e,t){const r=WL(e.theme);return Object.keys(e).map(n=>a7(e,t,n,r)).reduce(gc,{})}function Gt(e){return YL(e,hb)}Gt.propTypes={};Gt.filterProps=hb;function zt(e){return YL(e,mb)}zt.propTypes={};zt.filterProps=mb;function s7(e=8){if(e.mui)return e;const t=WL({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function Of(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?gc(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Zr(e){return typeof e!="number"?e:`${e}px solid`}function nn(e,t){return Xt({prop:e,themeKey:"borders",transform:t})}const o7=nn("border",Zr),c7=nn("borderTop",Zr),u7=nn("borderRight",Zr),l7=nn("borderBottom",Zr),d7=nn("borderLeft",Zr),f7=nn("borderColor"),p7=nn("borderTopColor"),h7=nn("borderRightColor"),m7=nn("borderBottomColor"),y7=nn("borderLeftColor"),g7=nn("outline",Zr),_7=nn("outlineColor"),Nf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ru(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:nu(t,n)});return pi(e,e.borderRadius,r)}return null};Nf.propTypes={};Nf.filterProps=["borderRadius"];Of(o7,c7,u7,l7,d7,f7,p7,h7,m7,y7,Nf,g7,_7);const Pf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ru(e.theme,"spacing",8),r=n=>({gap:nu(t,n)});return pi(e,e.gap,r)}return null};Pf.propTypes={};Pf.filterProps=["gap"];const Cf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ru(e.theme,"spacing",8),r=n=>({columnGap:nu(t,n)});return pi(e,e.columnGap,r)}return null};Cf.propTypes={};Cf.filterProps=["columnGap"];const Mf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ru(e.theme,"spacing",8),r=n=>({rowGap:nu(t,n)});return pi(e,e.rowGap,r)}return null};Mf.propTypes={};Mf.filterProps=["rowGap"];const v7=Xt({prop:"gridColumn"}),E7=Xt({prop:"gridRow"}),b7=Xt({prop:"gridAutoFlow"}),S7=Xt({prop:"gridAutoColumns"}),T7=Xt({prop:"gridAutoRows"}),w7=Xt({prop:"gridTemplateColumns"}),I7=Xt({prop:"gridTemplateRows"}),R7=Xt({prop:"gridTemplateAreas"}),A7=Xt({prop:"gridArea"});Of(Pf,Cf,Mf,v7,E7,b7,S7,T7,w7,I7,R7,A7);function Os(e,t){return t==="grey"?t:e}const O7=Xt({prop:"color",themeKey:"palette",transform:Os}),N7=Xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Os}),P7=Xt({prop:"backgroundColor",themeKey:"palette",transform:Os});Of(O7,N7,P7);function Wr(e){return e<=1&&e!==0?`${e*100}%`:e}const C7=Xt({prop:"width",transform:Wr}),yb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||pb[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Wr(r)}};return pi(e,e.maxWidth,t)}return null};yb.filterProps=["maxWidth"];const M7=Xt({prop:"minWidth",transform:Wr}),j7=Xt({prop:"height",transform:Wr}),D7=Xt({prop:"maxHeight",transform:Wr}),L7=Xt({prop:"minHeight",transform:Wr});Xt({prop:"size",cssProperty:"width",transform:Wr});Xt({prop:"size",cssProperty:"height",transform:Wr});const $7=Xt({prop:"boxSizing"});Of(C7,yb,M7,j7,D7,L7,$7);const iu={border:{themeKey:"borders",transform:Zr},borderTop:{themeKey:"borders",transform:Zr},borderRight:{themeKey:"borders",transform:Zr},borderBottom:{themeKey:"borders",transform:Zr},borderLeft:{themeKey:"borders",transform:Zr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nf},color:{themeKey:"palette",transform:Os},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Os},backgroundColor:{themeKey:"palette",transform:Os},p:{style:zt},pt:{style:zt},pr:{style:zt},pb:{style:zt},pl:{style:zt},px:{style:zt},py:{style:zt},padding:{style:zt},paddingTop:{style:zt},paddingRight:{style:zt},paddingBottom:{style:zt},paddingLeft:{style:zt},paddingX:{style:zt},paddingY:{style:zt},paddingInline:{style:zt},paddingInlineStart:{style:zt},paddingInlineEnd:{style:zt},paddingBlock:{style:zt},paddingBlockStart:{style:zt},paddingBlockEnd:{style:zt},m:{style:Gt},mt:{style:Gt},mr:{style:Gt},mb:{style:Gt},ml:{style:Gt},mx:{style:Gt},my:{style:Gt},margin:{style:Gt},marginTop:{style:Gt},marginRight:{style:Gt},marginBottom:{style:Gt},marginLeft:{style:Gt},marginX:{style:Gt},marginY:{style:Gt},marginInline:{style:Gt},marginInlineStart:{style:Gt},marginInlineEnd:{style:Gt},marginBlock:{style:Gt},marginBlockStart:{style:Gt},marginBlockEnd:{style:Gt},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:Pf},rowGap:{style:Mf},columnGap:{style:Cf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wr},maxWidth:{style:yb},minWidth:{transform:Wr},height:{transform:Wr},maxHeight:{transform:Wr},minHeight:{transform:Wr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function k7(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function q7(e,t){return typeof e=="function"?e(t):e}function KL(){function e(r,n,i,a){const s={[r]:n,theme:i},o=a[r];if(!o)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:l,style:d}=o;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=Af(i,u)||{};return d?d(s):pi(s,n,g=>{let y=Hd(f,l,g);return g===y&&typeof g=="string"&&(y=Hd(f,l,`${r}${g==="default"?"":Li(g)}`,g)),c===!1?y:{[c]:y}})}function t(r){var n;const{sx:i,theme:a={},nested:s}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:iu;function c(u){let l=u;if(typeof u=="function")l=u(a);else if(typeof u!="object")return u;if(!l)return null;const d=ZW(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(l).forEach(g=>{const y=q7(l[g],a);if(y!=null)if(typeof y=="object")if(o[g])p=gc(p,e(g,y,a,o));else{const _=pi({theme:a},y,R=>({[g]:R}));k7(_,y)?p[g]=t({sx:y,theme:a,nested:!0}):p=gc(p,_)}else p=gc(p,e(g,y,a,o))}),!s&&a.modularCssLayers?{"@layer sx":HP(f,p)}:HP(f,p)}return Array.isArray(i)?i.map(c):c(i)}return t}const jf=KL();jf.filterProps=["sx"];function XL(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 B7=["breakpoints","palette","spacing","shape"];function JL(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,s=ki(e,B7),o=zL(r),c=s7(i);let u=xn({breakpoints:o,direction:"ltr",components:{},palette:wt({mode:"light"},n),spacing:c,shape:wt({},QW,a)},s);return u.applyStyles=XL,u=t.reduce((l,d)=>xn(l,d),u),u.unstable_sxConfig=wt({},iu,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return jf({sx:d,theme:this})},u}const U7=Object.freeze(Object.defineProperty({__proto__:null,default:JL,private_createBreakpoints:zL,unstable_applyStyles:XL},Symbol.toStringTag,{value:"Module"})),F7=hi(U7),H7=["sx"],V7=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:iu;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function x7(e){const{sx:t}=e,r=ki(e,H7),{systemProps:n,otherProps:i}=V7(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return Ii(o)?wt({},n,o):n}:a=wt({},n,t),wt({},i,{sx:a})}const G7=Object.freeze(Object.defineProperty({__proto__:null,default:jf,extendSxProp:x7,unstable_createStyleFunctionSx:KL,unstable_defaultSxConfig:iu},Symbol.toStringTag,{value:"Module"})),z7=hi(G7);var xP;function W7(){if(xP)return Ta;xP=1;var e=ab();Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=m,Ta.shouldForwardProp=g,Ta.systemDefaultTheme=void 0;var t=e(Fz()),r=e(Hz()),n=d(zW),i=WW;e(YW),e(KW);var a=e(F7),s=e(z7);const o=["ownerState"],c=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function l(E){if(typeof WeakMap!="function")return null;var b=new WeakMap,N=new WeakMap;return(l=function(j){return j?N:b})(E)}function d(E,b){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var N=l(b);if(N&&N.has(E))return N.get(E);var j={__proto__:null},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in E)if(B!=="default"&&Object.prototype.hasOwnProperty.call(E,B)){var V=$?Object.getOwnPropertyDescriptor(E,B):null;V&&(V.get||V.set)?Object.defineProperty(j,B,V):j[B]=E[B]}return j.default=E,N&&N.set(E,j),j}function f(E){return Object.keys(E).length===0}function p(E){return typeof E=="string"&&E.charCodeAt(0)>96}function g(E){return E!=="ownerState"&&E!=="theme"&&E!=="sx"&&E!=="as"}function y(E,b){return b&&E&&typeof E=="object"&&E.styles&&!E.styles.startsWith("@layer")&&(E.styles=`@layer ${b}{${String(E.styles)}}`),E}const _=Ta.systemDefaultTheme=(0,a.default)(),R=E=>E&&E.charAt(0).toLowerCase()+E.slice(1);function h({defaultTheme:E,theme:b,themeId:N}){return f(b)?E:b[N]||b}function T(E){return E?(b,N)=>N[E]:null}function I(E,b,N){let{ownerState:j}=b,$=(0,r.default)(b,o);const B=typeof E=="function"?E((0,t.default)({ownerState:j},$)):E;if(Array.isArray(B))return B.flatMap(V=>I(V,(0,t.default)({ownerState:j},$),N));if(B&&typeof B=="object"&&Array.isArray(B.variants)){const{variants:V=[]}=B;let F=(0,r.default)(B,c);return V.forEach(te=>{let ie=!0;if(typeof te.props=="function"?ie=te.props((0,t.default)({ownerState:j},$,j)):Object.keys(te.props).forEach(Z=>{(j==null?void 0:j[Z])!==te.props[Z]&&$[Z]!==te.props[Z]&&(ie=!1)}),ie){Array.isArray(F)||(F=[F]);const Z=typeof te.style=="function"?te.style((0,t.default)({ownerState:j},$,j)):te.style;F.push(N?y((0,n.internal_serializeStyles)(Z),N):Z)}}),F}return N?y((0,n.internal_serializeStyles)(B),N):B}function m(E={}){const{themeId:b,defaultTheme:N=_,rootShouldForwardProp:j=g,slotShouldForwardProp:$=g}=E,B=V=>(0,s.default)((0,t.default)({},V,{theme:h((0,t.default)({},V,{defaultTheme:N,themeId:b}))}));return B.__mui_systemSx=!0,(V,H={})=>{(0,n.internal_processStyles)(V,me=>me.filter(Se=>!(Se!=null&&Se.__mui_systemSx)));const{name:F,slot:te,skipVariantsResolver:ie,skipSx:Z,overridesResolver:J=T(R(te))}=H,K=(0,r.default)(H,u),q=F&&F.startsWith("Mui")||te?"components":"custom",M=ie!==void 0?ie:te&&te!=="Root"&&te!=="root"||!1,U=Z||!1;let W,C=g;te==="Root"||te==="root"?C=j:te?C=$:p(V)&&(C=void 0);const k=(0,n.default)(V,(0,t.default)({shouldForwardProp:C,label:W},K)),ee=me=>typeof me=="function"&&me.__emotion_real!==me||(0,i.isPlainObject)(me)?Se=>{const we=h({theme:Se.theme,defaultTheme:N,themeId:b});return I(me,(0,t.default)({},Se,{theme:we}),we.modularCssLayers?q:void 0)}:me,Ee=(me,...Se)=>{let we=ee(me);const ae=Se?Se.map(ee):[];F&&J&&ae.push(pe=>{const be=h((0,t.default)({},pe,{defaultTheme:N,themeId:b}));if(!be.components||!be.components[F]||!be.components[F].styleOverrides)return null;const Ae=be.components[F].styleOverrides,qe={};return Object.entries(Ae).forEach(([We,tt])=>{qe[We]=I(tt,(0,t.default)({},pe,{theme:be}),be.modularCssLayers?"theme":void 0)}),J(pe,qe)}),F&&!M&&ae.push(pe=>{var be;const Ae=h((0,t.default)({},pe,{defaultTheme:N,themeId:b})),qe=Ae==null||(be=Ae.components)==null||(be=be[F])==null?void 0:be.variants;return I({variants:qe},(0,t.default)({},pe,{theme:Ae}),Ae.modularCssLayers?"theme":void 0)}),U||ae.push(B);const ue=ae.length-Se.length;if(Array.isArray(me)&&ue>0){const pe=new Array(ue).fill("");we=[...me,...pe],we.raw=[...me.raw,...pe]}const fe=k(we,...ae);return V.muiName&&(fe.muiName=V.muiName),fe};return k.withConfig&&(Ee.withConfig=k.withConfig),Ee}}return Ta}var Y7=W7();const K7=Gd(Y7);function X7(e,t){return wt({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var xt={};const J7=hi(tz),Q7=hi($z);var GP;function Z7(){if(GP)return xt;GP=1;var e=ab();Object.defineProperty(xt,"__esModule",{value:!0}),xt.alpha=g,xt.blend=E,xt.colorChannel=void 0,xt.darken=_,xt.decomposeColor=s,xt.emphasize=I,xt.getContrastRatio=p,xt.getLuminance=f,xt.hexToRgb=i,xt.hslToRgb=d,xt.lighten=h,xt.private_safeAlpha=y,xt.private_safeColorChannel=void 0,xt.private_safeDarken=R,xt.private_safeEmphasize=m,xt.private_safeLighten=T,xt.recomposeColor=u,xt.rgbToHex=l;var t=e(J7),r=e(Q7);function n(b,N=0,j=1){return(0,r.default)(b,N,j)}function i(b){b=b.slice(1);const N=new RegExp(`.{1,${b.length>=6?2:1}}`,"g");let j=b.match(N);return j&&j[0].length===1&&(j=j.map($=>$+$)),j?`rgb${j.length===4?"a":""}(${j.map(($,B)=>B<3?parseInt($,16):Math.round(parseInt($,16)/255*1e3)/1e3).join(", ")})`:""}function a(b){const N=b.toString(16);return N.length===1?`0${N}`:N}function s(b){if(b.type)return b;if(b.charAt(0)==="#")return s(i(b));const N=b.indexOf("("),j=b.substring(0,N);if(["rgb","rgba","hsl","hsla","color"].indexOf(j)===-1)throw new Error((0,t.default)(9,b));let $=b.substring(N+1,b.length-1),B;if(j==="color"){if($=$.split(" "),B=$.shift(),$.length===4&&$[3].charAt(0)==="/"&&($[3]=$[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(B)===-1)throw new Error((0,t.default)(10,B))}else $=$.split(",");return $=$.map(V=>parseFloat(V)),{type:j,values:$,colorSpace:B}}const o=b=>{const N=s(b);return N.values.slice(0,3).map((j,$)=>N.type.indexOf("hsl")!==-1&&$!==0?`${j}%`:j).join(" ")};xt.colorChannel=o;const c=(b,N)=>{try{return o(b)}catch{return b}};xt.private_safeColorChannel=c;function u(b){const{type:N,colorSpace:j}=b;let{values:$}=b;return N.indexOf("rgb")!==-1?$=$.map((B,V)=>V<3?parseInt(B,10):B):N.indexOf("hsl")!==-1&&($[1]=`${$[1]}%`,$[2]=`${$[2]}%`),N.indexOf("color")!==-1?$=`${j} ${$.join(" ")}`:$=`${$.join(", ")}`,`${N}(${$})`}function l(b){if(b.indexOf("#")===0)return b;const{values:N}=s(b);return`#${N.map((j,$)=>a($===3?Math.round(255*j):j)).join("")}`}function d(b){b=s(b);const{values:N}=b,j=N[0],$=N[1]/100,B=N[2]/100,V=$*Math.min(B,1-B),H=(ie,Z=(ie+j/30)%12)=>B-V*Math.max(Math.min(Z-3,9-Z,1),-1);let F="rgb";const te=[Math.round(H(0)*255),Math.round(H(8)*255),Math.round(H(4)*255)];return b.type==="hsla"&&(F+="a",te.push(N[3])),u({type:F,values:te})}function f(b){b=s(b);let N=b.type==="hsl"||b.type==="hsla"?s(d(b)).values:b.values;return N=N.map(j=>(b.type!=="color"&&(j/=255),j<=.03928?j/12.92:((j+.055)/1.055)**2.4)),Number((.2126*N[0]+.7152*N[1]+.0722*N[2]).toFixed(3))}function p(b,N){const j=f(b),$=f(N);return(Math.max(j,$)+.05)/(Math.min(j,$)+.05)}function g(b,N){return b=s(b),N=n(N),(b.type==="rgb"||b.type==="hsl")&&(b.type+="a"),b.type==="color"?b.values[3]=`/${N}`:b.values[3]=N,u(b)}function y(b,N,j){try{return g(b,N)}catch{return b}}function _(b,N){if(b=s(b),N=n(N),b.type.indexOf("hsl")!==-1)b.values[2]*=1-N;else if(b.type.indexOf("rgb")!==-1||b.type.indexOf("color")!==-1)for(let j=0;j<3;j+=1)b.values[j]*=1-N;return u(b)}function R(b,N,j){try{return _(b,N)}catch{return b}}function h(b,N){if(b=s(b),N=n(N),b.type.indexOf("hsl")!==-1)b.values[2]+=(100-b.values[2])*N;else if(b.type.indexOf("rgb")!==-1)for(let j=0;j<3;j+=1)b.values[j]+=(255-b.values[j])*N;else if(b.type.indexOf("color")!==-1)for(let j=0;j<3;j+=1)b.values[j]+=(1-b.values[j])*N;return u(b)}function T(b,N,j){try{return h(b,N)}catch{return b}}function I(b,N=.15){return f(b)>.5?_(b,N):h(b,N)}function m(b,N,j){try{return I(b,N)}catch{return b}}function E(b,N,j,$=1){const B=(te,ie)=>Math.round((te**(1/$)*(1-j)+ie**(1/$)*j)**$),V=s(b),H=s(N),F=[B(V.values[0],H.values[0]),B(V.values[1],H.values[1]),B(V.values[2],H.values[2])];return u({type:"rgb",values:F})}return xt}var $v=Z7();const jc={black:"#000",white:"#fff"},e9={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"},ps={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},hs={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Fo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ms={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ys={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},gs={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},t9=["mode","contrastThreshold","tonalOffset"],zP={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:jc.white,default:jc.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}},$_={text:{primary:jc.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:jc.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 WP(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=$v.lighten(e.main,i):t==="dark"&&(e.dark=$v.darken(e.main,a)))}function r9(e="light"){return e==="dark"?{main:ms[200],light:ms[50],dark:ms[400]}:{main:ms[700],light:ms[400],dark:ms[800]}}function n9(e="light"){return e==="dark"?{main:ps[200],light:ps[50],dark:ps[400]}:{main:ps[500],light:ps[300],dark:ps[700]}}function i9(e="light"){return e==="dark"?{main:hs[500],light:hs[300],dark:hs[700]}:{main:hs[700],light:hs[400],dark:hs[800]}}function a9(e="light"){return e==="dark"?{main:ys[400],light:ys[300],dark:ys[700]}:{main:ys[700],light:ys[500],dark:ys[900]}}function s9(e="light"){return e==="dark"?{main:gs[400],light:gs[300],dark:gs[700]}:{main:gs[800],light:gs[500],dark:gs[900]}}function o9(e="light"){return e==="dark"?{main:Fo[400],light:Fo[300],dark:Fo[700]}:{main:"#ed6c02",light:Fo[500],dark:Fo[900]}}function c9(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ki(e,t9),a=e.primary||r9(t),s=e.secondary||n9(t),o=e.error||i9(t),c=e.info||a9(t),u=e.success||s9(t),l=e.warning||o9(t);function d(y){return $v.getContrastRatio(y,$_.text.primary)>=r?$_.text.primary:zP.text.primary}const f=({color:y,name:_,mainShade:R=500,lightShade:h=300,darkShade:T=700})=>{if(y=wt({},y),!y.main&&y[R]&&(y.main=y[R]),!y.hasOwnProperty("main"))throw new Error(Nc(11,_?` (${_})`:"",R));if(typeof y.main!="string")throw new Error(Nc(12,_?` (${_})`:"",JSON.stringify(y.main)));return WP(y,"light",h,n),WP(y,"dark",T,n),y.contrastText||(y.contrastText=d(y.main)),y},p={dark:$_,light:zP};return xn(wt({common:wt({},jc),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:o,name:"error"}),warning:f({color:l,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:e9,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},p[t]),i)}const u9=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function l9(e){return Math.round(e*1e5)/1e5}const YP={textTransform:"uppercase"},KP='"Roboto", "Helvetica", "Arial", sans-serif';function d9(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=KP,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:l,pxToRem:d}=r,f=ki(r,u9),p=i/14,g=d||(R=>`${R/u*p}rem`),y=(R,h,T,I,m)=>wt({fontFamily:n,fontWeight:R,fontSize:g(h),lineHeight:T},n===KP?{letterSpacing:`${l9(I/h)}em`}:{},m,l),_={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(o,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(o,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(o,14,1.75,.4,YP),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,YP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xn(wt({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:c},_),f,{clone:!1})}const f9=.2,p9=.14,h9=.12;function Ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${f9})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${p9})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${h9})`].join(",")}const m9=["none",Ft(0,2,1,-1,0,1,1,0,0,1,3,0),Ft(0,3,1,-2,0,2,2,0,0,1,5,0),Ft(0,3,3,-2,0,3,4,0,0,1,8,0),Ft(0,2,4,-1,0,4,5,0,0,1,10,0),Ft(0,3,5,-1,0,5,8,0,0,1,14,0),Ft(0,3,5,-1,0,6,10,0,0,1,18,0),Ft(0,4,5,-2,0,7,10,1,0,2,16,1),Ft(0,5,5,-3,0,8,10,1,0,3,14,2),Ft(0,5,6,-3,0,9,12,1,0,3,16,2),Ft(0,6,6,-3,0,10,14,1,0,4,18,3),Ft(0,6,7,-4,0,11,15,1,0,4,20,3),Ft(0,7,8,-4,0,12,17,2,0,5,22,4),Ft(0,7,8,-4,0,13,19,2,0,5,24,4),Ft(0,7,9,-4,0,14,21,2,0,5,26,4),Ft(0,8,9,-5,0,15,22,2,0,6,28,5),Ft(0,8,10,-5,0,16,24,2,0,6,30,5),Ft(0,8,11,-5,0,17,26,2,0,6,32,5),Ft(0,9,11,-5,0,18,28,2,0,7,34,6),Ft(0,9,12,-6,0,19,29,2,0,7,36,6),Ft(0,10,13,-6,0,20,31,3,0,8,38,7),Ft(0,10,13,-6,0,21,33,3,0,8,40,7),Ft(0,10,14,-6,0,22,35,3,0,8,42,7),Ft(0,11,14,-7,0,23,36,3,0,9,44,8),Ft(0,11,15,-7,0,24,38,3,0,9,46,8)],y9=["duration","easing","delay"],g9={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)"},_9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function XP(e){return`${Math.round(e)}ms`}function v9(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function E9(e){const t=wt({},g9,e.easing),r=wt({},_9,e.duration);return wt({getAutoHeightDuration:v9,create:(i=["all"],a={})=>{const{duration:s=r.standard,easing:o=t.easeInOut,delay:c=0}=a;return ki(a,y9),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:XP(s)} ${o} ${typeof c=="string"?c:XP(c)}`).join(",")}},e,{easing:t,duration:r})}const b9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},S9=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function QL(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,s=ki(e,S9);if(e.vars)throw new Error(Nc(18));const o=c9(n),c=JL(e);let u=xn(c,{mixins:X7(c.breakpoints,r),palette:o,shadows:m9.slice(),typography:d9(o,a),transitions:E9(i),zIndex:wt({},b9)});return u=xn(u,s),u=t.reduce((l,d)=>xn(l,d),u),u.unstable_sxConfig=wt({},iu,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return jf({sx:d,theme:this})},u}function KJ(...e){return QL(...e)}const T9=QL(),w9="$$material";function I9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const R9=e=>I9(e)&&e!=="classes",A9=K7({themeId:w9,defaultTheme:T9,rootShouldForwardProp:R9});function O9(e){return OL("MuiSvgIcon",e)}Dz("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const N9=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],P9=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Li(t)}`,`fontSize${Li(r)}`]};return Cz(i,O9,n)},C9=A9("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Li(r.color)}`],t[`fontSize${Li(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,s,o,c,u,l,d,f,p,g;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:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(c=o.pxToRem)==null?void 0:c.call(o,24))||"1.5rem",large:((u=e.typography)==null||(l=u.pxToRem)==null?void 0:l.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),kv=ve.forwardRef(function(t,r){const n=Uz({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:l=!1,titleAccess:d,viewBox:f="0 0 24 24"}=n,p=ki(n,N9),g=ve.isValidElement(i)&&i.type==="svg",y=wt({},n,{color:s,component:o,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:l,viewBox:f,hasSvgAsChild:g}),_={};l||(_.viewBox=f);const R=P9(y);return P.jsxs(C9,wt({as:o,className:kz(R.root,a),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},_,p,g&&i.props,{ownerState:y,children:[g?i.props.children:i,d?P.jsx("title",{children:d}):null]}))});kv.muiName="SvgIcon";function M9(e,t){function r(n,i){return P.jsx(kv,wt({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=kv.muiName,ve.memo(ve.forwardRef(r))}const j9={configure:e=>{AL.configure(e)}},D9=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Li,createChainedFunction:cz,createSvgIcon:M9,debounce:uz,deprecatedPropType:lz,isMuiElement:dz,ownerDocument:wL,ownerWindow:fz,requirePropFactory:pz,setRef:IL,unstable_ClassNameGenerator:j9,unstable_useEnhancedEffect:RL,unstable_useId:mz,unsupportedProp:yz,useControlled:gz,useEventCallback:_z,useForkRef:vz,useIsFocusVisible:Pz},Symbol.toStringTag,{value:"Module"})),L9=hi(D9);var JP;function $9(){return JP||(JP=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=L9})(N_)),N_}var QP;function k9(){if(QP)return Bo;QP=1;var e=ab();Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var t=e($9()),r=R2();return Bo.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"),Bo}var q9=k9();const ZL=Gd(q9),Df=`${St.nftApiUrl}/v1`;function e$(e){if(!e)return 0;try{return Math.ceil(Number(VC(e))*10)}catch{return 0}}function XJ(e){if(!e)return 0;try{const t=BigInt(e),r=10n**16n;return Number((t+r-1n)/r)}catch{return 0}}async function JJ(e,t){var n,i,a;const r=new URLSearchParams({contractAddresses:e,itemId:t,first:"1"});try{const s=await fetch(`${St.nftApiUrl}/v2/catalog?${r.toString()}`);if(!s.ok)return"";const{data:o}=await s.json(),c=(n=o==null?void 0:o[0])==null?void 0:n.data;return(((i=c==null?void 0:c.wearable)==null?void 0:i.description)??((a=c==null?void 0:c.emote)==null?void 0:a.description)??"").trim()}catch{return""}}async function QJ(e){const{listings:t}=await Lf({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 B9(e,t){var a;const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${Df}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:i}=await n.json();return((a=i==null?void 0:i[0])==null?void 0:a.nft)??null}function gb(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 Lf(e){var i,a;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),(i=e.rarities)!=null&&i.length&&t.set("rarity",e.rarities.join(",")),(a=e.wearableCategories)!=null&&a.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(`${St.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 ZJ(e,t){const{listings:r}=await Lf({contractAddress:e,itemId:t,first:1});return r[0]?gb(r[0]):null}async function t$({first:e=100,...t}={}){const{listings:r,total:n}=await Lf({...t,first:e});return{items:r.map(gb),total:n}}function U9(e){return{...gb(e),source:e.source,manaWei:e.manaWei??null}}async function eQ({first:e=100,...t}={}){var s,o;const r=new URLSearchParams;(t.category==="wearable"||t.category==="emote")&&r.set("category",t.category),r.set("first",String(e)),t.skip!=null&&r.set("skip",String(t.skip)),t.contractAddress&&r.set("contractAddress",t.contractAddress),t.itemId!=null&&r.set("itemId",t.itemId),t.creator&&r.set("creator",t.creator),(s=t.rarities)!=null&&s.length&&r.set("rarity",t.rarities.join(",")),(o=t.wearableCategories)!=null&&o.length&&r.set("wearableCategory",t.wearableCategories.join(",")),t.minPriceCredits!=null&&r.set("minPriceCredits",String(t.minPriceCredits)),t.maxPriceCredits!=null&&r.set("maxPriceCredits",String(t.maxPriceCredits)),t.search&&r.set("search",t.search),t.sortBy&&r.set("sortBy",t.sortBy);const n=await fetch(`${St.marketplaceServerUrl}/v3/catalog/unified?${r.toString()}`);if(!n.ok)throw new Error(`fetchUnified ${n.status}`);const i=await n.json(),a=i.data??[];return{items:a.map(U9),total:i.total??a.length}}async function tQ(e,t,r){try{const n=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,itemId:r,first:"1"}),i=await fetch(`${Df}/nfts?${n.toString()}`);if(!i.ok)return!1;const{total:a}=await i.json();return(a??0)>0}catch{return!1}}async function rQ(e,{category:t="wearable",first:r=48,skip:n=0}={}){const i=new URLSearchParams({owner:e.toLowerCase(),category:t,first:String(r),skip:String(n),sortBy:"newest",orderDirection:"desc"}),a=await fetch(`${Df}/nfts?${i.toString()}`);if(!a.ok)throw new Error(`Failed to fetch assets (${a.status})`);const{data:s,total:o}=await a.json();return{assets:s.map(u=>{var l,d,f,p,g;return{id:u.nft.id,contractAddress:u.nft.contractAddress,tokenId:u.nft.tokenId,itemId:u.nft.itemId??null,name:u.nft.name,category:u.nft.category,image:u.nft.image,rarity:((d=(l=u.nft.data)==null?void 0:l.wearable)==null?void 0:d.rarity)??((p=(f=u.nft.data)==null?void 0:f.emote)==null?void 0:p.rarity),network:u.nft.network,chainId:u.nft.chainId,isOnSale:u.order!=null,listingPrice:u.order?e$(u.order.price):void 0,tradeId:(g=u.order)==null?void 0:g.tradeId}}),total:o}}const F9="dcl:marketplace";async function nQ(e,t){const{TradeService:r}=await ar(async()=>{const{TradeService:i}=await import("./TradeService-CzTJfCBU.js");return{TradeService:i}},__vite__mapDeps([9,6,1,10,2,7,8]));return new r(F9,St.marketplaceServerUrl,()=>t).addTrade(e)}class r$ extends Error{constructor(t){super("fetchTrade 404"),this.tradeId=t,this.name="TradeNotFoundError"}}async function _b(e){var n;const t=await fetch(`${St.marketplaceServerUrl}/v1/trades/${e}`);if(t.status===404)throw(n=t.body)==null||n.cancel(),new r$(e);if(!t.ok)throw new Error(`fetchTrade ${t.status}`);const r=await t.json();return r.data??r}async function iQ(e){if(e.tradeId)try{return await _b(e.tradeId)}catch(t){if(!(t instanceof r$)||!e.itemId)throw t}return e.itemId?V9(e.contractAddress,e.itemId):null}async function H9(e,t){const r=new URLSearchParams({contractAddress:e,itemId:t,first:"1"}),n=await fetch(`${Df}/items?${r.toString()}`);if(!n.ok)return null;const{data:i}=await n.json();return(i==null?void 0:i[0])??null}async function aQ(e){var c,u;let t;try{t=await _b(e)}catch{return null}const r=(c=t.sent)==null?void 0:c[0],n=(u=t.received)==null?void 0:u[0],i=e$(n==null?void 0:n.amount),a=(r==null?void 0:r.contractAddress)??"",s=(r==null?void 0:r.value)??"";if(!a)return{name:"Item",thumbnail:"",credits:i,contractAddress:""};if((r==null?void 0:r.assetType)===Kr.TradeAssetType.COLLECTION_ITEM){const l=await H9(a,s);return{name:(l==null?void 0:l.name)??"Item",thumbnail:(l==null?void 0:l.thumbnail)??"",credits:i,contractAddress:a,itemId:s}}const o=await B9(a,s);return{name:(o==null?void 0:o.name)??`#${s}`,thumbnail:(o==null?void 0:o.image)??"",credits:i,contractAddress:a,tokenId:s}}async function V9(e,t){var i;const{listings:r}=await Lf({contractAddress:e,itemId:t,first:1}),n=(i=r[0])==null?void 0:i.tradeId;return n?_b(n):null}async function x9(e,t=4){const r=new URLSearchParams({search:e,first:String(t)}),n=await fetch(`${St.nftApiUrl}/v1/collections?${r.toString()}`);if(!n.ok)throw new Error(`fetchCollectionSuggestions ${n.status}`);const{data:i}=await n.json();return(i??[]).filter(a=>a.contractAddress&&a.name).map(a=>({contractAddress:a.contractAddress,name:a.name,creator:a.creator??""}))}async function G9(e,t){var s,o,c;const r=new URLSearchParams({category:"ens",search:e,first:String(t)}),n=await fetch(`${St.nftApiUrl}/v1/nfts?${r.toString()}`);if(!n.ok)throw new Error(`fetchNameOwners ${n.status}`);const{data:i}=await n.json(),a=new Map;for(const u of i??[]){const l=(o=(s=u.nft)==null?void 0:s.owner)==null?void 0:o.toLowerCase(),d=(c=u.nft)==null?void 0:c.name;l&&d&&!a.has(l)&&a.set(l,d)}return a}async function z9(e){if(e.length===0)return new Map;const t=new URLSearchParams({sortBy:"most_collections"});for(const a of e)t.append("address",a);const r=await fetch(`${St.nftApiUrl}/v1/accounts?${t.toString()}`);if(!r.ok)throw new Error(`fetchSellerCounts ${r.status}`);const{data:n}=await r.json(),i=new Map;for(const a of n??[])(a.collections??0)>0&&i.set(a.address.toLowerCase(),a.collections??0);return i}async function W9(e,t=4,r=20){const n=e.trim();if(!n)return[];const i=await G9(n,r);if(i.size===0)return[];const a=await z9([...i.keys()]),s=[...i.keys()].filter(o=>a.has(o)).slice(0,t);return s.length===0?[]:Promise.all(s.map(async o=>{var u,l;const c=await tL(o);return{address:o,name:(c==null?void 0:c.name)||(i.get(o)??o),face:(l=(u=c==null?void 0:c.avatar)==null?void 0:u.snapshots)==null?void 0:l.face256}}))}function Y9(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 n$(e){var t,r,n,i,a,s,o,c;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)??((i=(n=e.data)==null?void 0:n.emote)==null?void 0:i.category),rarity:e.rarity??"common",isSmart:!!((s=(a=e.data)==null?void 0:a.wearable)!=null&&s.isSmart),network:e.network,chainId:e.chainId,thumbnail:e.thumbnail??"",priceCredits:e.priceCredits??0,gender:Y9((c=(o=e.data)==null?void 0:o.wearable)==null?void 0:c.bodyShapes)}}async function K9(e,{first:t=20,skip:r=0,category:n,rarities:i,wearableCategories:a,minPriceCredits:s,maxPriceCredits:o,sortBy:c}={}){const u=new URLSearchParams({contractAddress:e,first:String(t),skip:String(r),includeSocialEmotes:"false"});n&&n!=="all"&&u.set("category",n),i==null||i.forEach(g=>u.append("rarity",g)),a==null||a.forEach(g=>u.append("wearableCategory",g)),s!=null&&u.set("minPrice",String(s)),o!=null&&u.set("maxPrice",String(o)),c&&u.set("sortBy",c);const l=await fetch(`${St.marketplaceServerUrl}/v3/catalog/items?${u.toString()}`);if(!l.ok)throw new Error(`fetchCollectionItems ${l.status}`);const{data:d,total:f}=await l.json(),p=(d??[]).map(n$);return{items:p,total:f??r+p.length}}async function X9(e,{first:t=60,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),includeSocialEmotes:"false"}),i=await fetch(`${St.marketplaceServerUrl}/v3/catalog/items?${n.toString()}`);if(!i.ok)throw new Error(`fetchCreatorItems ${i.status}`);const{data:a,total:s}=await i.json(),o=(a??[]).map(n$);return{items:o,total:s??r+o.length}}async function sQ(e,{first:t=24,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),sortBy:"newest"}),i=await fetch(`${St.nftApiUrl}/v1/collections?${n.toString()}`);if(!i.ok)throw new Error(`fetchCreatorCollections ${i.status}`);const{data:a,total:s}=await i.json(),o=(a??[]).map(c=>({contractAddress:c.contractAddress,name:c.name??"",creator:c.creator??"",itemCount:c.size??0}));return{collections:o,total:s??r+o.length}}async function oQ(e){const t=new URLSearchParams({contractAddress:e,first:"1"}),r=await fetch(`${St.nftApiUrl}/v1/collections?${t.toString()}`);if(!r.ok)throw new Error(`fetchCollection ${r.status}`);const{data:n}=await r.json(),i=n==null?void 0:n[0];return i&&i.contractAddress?{contractAddress:i.contractAddress,name:i.name??"",creator:i.creator??""}:null}const ZP="radial-gradient(#c0bdc6, #a09ba8)",eC="#E6E6E6";function i$(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 J9([e,t,r]){return .299*e+.587*t+.114*r}function a$(e){return e&&Kr.Rarity.getColor(e.toLowerCase())||eC}function Q9(e,t=.3){const r=i$(a$(e));return r?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${t})`:`rgba(160, 155, 168, ${t})`}function Z9(e,t=120){const r=a$(e),n=i$(r);if(!n)return"#161518";const i=J9(n);if(i<=t)return r;const a=t/i,s=o=>Math.round(o*a).toString(16).padStart(2,"0");return`#${s(n[0])}${s(n[1])}${s(n[2])}`}function eY(e){const t=vL(e??"Common");try{const r=Kr.Rarity.getMaxSupply((e??"common").toLowerCase());if(r>0)return`${t} rarity — only ${r.toLocaleString()} can ever be minted`}catch{}return`${t} rarity`}function tY(e){try{const[t,r]=Kr.Rarity.getGradient((e??"common").toLowerCase());return!t||!r?ZP:`radial-gradient(${t}, ${r})`}catch{return ZP}}const s$=4;function rY(e,t=!0){return li({queryKey:["collection-preview",e],queryFn:()=>K9(e,{first:s$}),enabled:t,staleTime:5*6e4})}function nY({items:e,className:t}){const r=e.slice(0,s$);return P.jsx("span",{className:`coll-thumb${t?` ${t}`:""}`,"data-count":r.length,"aria-hidden":!0,children:r.map(n=>P.jsx("span",{className:"coll-thumb__cell",style:{backgroundImage:tY(n.rarity)},children:n.thumbnail?P.jsx("img",{src:n.thumbnail,alt:"",loading:"lazy"}):null},n.id))})}function iY({contractAddress:e,className:t,fallback:r=null}){const{data:n}=rY(e),i=(n==null?void 0:n.items)??[];return i.length===0?P.jsx(P.Fragment,{children:r}):P.jsx(nY,{items:i,className:t})}var qv=function(e,t){return qv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},qv(e,t)};function Xr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qv(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ke=function(){return ke=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ke.apply(this,arguments)};function ho(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o$(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c$(e,t){return function(r,n){t(r,n,e)}}function u$(e,t,r,n,i,a){function s(R){if(R!==void 0&&typeof R!="function")throw new TypeError("Function expected");return R}for(var o=n.kind,c=o==="getter"?"get":o==="setter"?"set":"value",u=!t&&e?n.static?e:e.prototype:null,l=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),d,f=!1,p=r.length-1;p>=0;p--){var g={};for(var y in n)g[y]=y==="access"?{}:n[y];for(var y in n.access)g.access[y]=n.access[y];g.addInitializer=function(R){if(f)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(R||null))};var _=(0,r[p])(o==="accessor"?{get:l.get,set:l.set}:l[c],g);if(o==="accessor"){if(_===void 0)continue;if(_===null||typeof _!="object")throw new TypeError("Object expected");(d=s(_.get))&&(l.get=d),(d=s(_.set))&&(l.set=d),(d=s(_.init))&&i.unshift(d)}else(d=s(_))&&(o==="field"?i.unshift(d):l[c]=d)}u&&Object.defineProperty(u,n.name,l),f=!0}function l$(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function d$(e){return typeof e=="symbol"?e:"".concat(e)}function f$(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p$(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function h$(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?a(l.value):i(l.value).then(o,c)}u((n=n.apply(e,t||[])).next())})}function m$(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var $f=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function y$(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&$f(t,e,r)}function Vd(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vb(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return a}function g$(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(vb(arguments[t]));return e}function _$(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)n[i]=a[s];return n}function pr(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function Qs(e){return this instanceof Qs?(this.v=e,this):new Qs(e)}function v$(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(p){return function(g){return Promise.resolve(g).then(p,d)}}function o(p,g){n[p]&&(i[p]=function(y){return new Promise(function(_,R){a.push([p,y,_,R])>1||c(p,y)})},g&&(i[p]=g(i[p])))}function c(p,g){try{u(n[p](g))}catch(y){f(a[0][3],y)}}function u(p){p.value instanceof Qs?Promise.resolve(p.value.v).then(l,d):f(a[0][2],p)}function l(p){c("next",p)}function d(p){c("throw",p)}function f(p,g){p(g),a.shift(),a.length&&c(a[0][0],a[0][1])}}function E$(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=e[i]?function(s){return(r=!r)?{value:Qs(e[i](s)),done:!1}:a?a(s):s}:a}}function b$(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Vd=="function"?Vd(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(s){return new Promise(function(o,c){s=e[a](s),i(o,c,s.done,s.value)})}}function i(a,s,o,c){Promise.resolve(c).then(function(u){a({value:u,done:o})},s)}}function S$(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var aY=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Bv=function(e){return Bv=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Bv(e)};function T$(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Bv(e),n=0;n<r.length;n++)r[n]!=="default"&&$f(t,e,r[n]);return aY(t,e),t}function w$(e){return e&&e.__esModule?e:{default:e}}function I$(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function R$(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function A$(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function O$(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var sY=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function N$(e){function t(a){e.error=e.hasError?new sY(a,e.error,"An error was suppressed during disposal."):a,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(i,function(s){return t(s),i()})}else n|=1}catch(s){t(s)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function P$(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,a,s){return n?t?".jsx":".js":i&&(!a||!s)?r:i+a+"."+s.toLowerCase()+"js"}):e}const oY={__extends:Xr,__assign:ke,__rest:ho,__decorate:o$,__param:c$,__esDecorate:u$,__runInitializers:l$,__propKey:d$,__setFunctionName:f$,__metadata:p$,__awaiter:h$,__generator:m$,__createBinding:$f,__exportStar:y$,__values:Vd,__read:vb,__spread:g$,__spreadArrays:_$,__spreadArray:pr,__await:Qs,__asyncGenerator:v$,__asyncDelegator:E$,__asyncValues:b$,__makeTemplateObject:S$,__importStar:T$,__importDefault:w$,__classPrivateFieldGet:I$,__classPrivateFieldSet:R$,__classPrivateFieldIn:A$,__addDisposableResource:O$,__disposeResources:N$,__rewriteRelativeImportExtension:P$},cQ=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:O$,get __assign(){return ke},__asyncDelegator:E$,__asyncGenerator:v$,__asyncValues:b$,__await:Qs,__awaiter:h$,__classPrivateFieldGet:I$,__classPrivateFieldIn:A$,__classPrivateFieldSet:R$,__createBinding:$f,__decorate:o$,__disposeResources:N$,__esDecorate:u$,__exportStar:y$,__extends:Xr,__generator:m$,__importDefault:w$,__importStar:T$,__makeTemplateObject:S$,__metadata:p$,__param:c$,__propKey:d$,__read:vb,__rest:ho,__rewriteRelativeImportExtension:P$,__runInitializers:l$,__setFunctionName:f$,__spread:g$,__spreadArray:pr,__spreadArrays:_$,__values:Vd,default:oY},Symbol.toStringTag,{value:"Module"}));function Or(e,t){var r=t&&t.cache?t.cache:pY,n=t&&t.serializer?t.serializer:fY,i=t&&t.strategy?t.strategy:lY;return i(e,{cache:r,serializer:n})}function cY(e){return e==null||typeof e=="number"||typeof e=="boolean"}function uY(e,t,r,n){var i=cY(n)?n:r(n),a=t.get(i);return typeof a>"u"&&(a=e.call(this,n),t.set(i,a)),a}function C$(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function M$(e,t,r,n,i){return r.bind(t,e,n,i)}function lY(e,t){var r=e.length===1?uY:C$;return M$(e,this,r,t.cache.create(),t.serializer)}function dY(e,t){return M$(e,this,C$,t.cache.create(),t.serializer)}var fY=function(){return JSON.stringify(arguments)};function Eb(){this.cache=Object.create(null)}Eb.prototype.get=function(e){return this.cache[e]};Eb.prototype.set=function(e,t){this.cache[e]=t};var pY={create:function(){return new Eb}},Nr={variadic:dY};function j$(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}Or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,pr([void 0],t,!1)))},{strategy:Nr.variadic});Or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,pr([void 0],t,!1)))},{strategy:Nr.variadic});Or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,pr([void 0],t,!1)))},{strategy:Nr.variadic});Or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.Locale).bind.apply(e,pr([void 0],t,!1)))},{strategy:Nr.variadic});Or(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.ListFormat).bind.apply(e,pr([void 0],t,!1)))},{strategy:Nr.variadic});var st;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(st||(st={}));var qt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(qt||(qt={}));var Zs;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Zs||(Zs={}));function tC(e){return e.type===qt.literal}function hY(e){return e.type===qt.argument}function D$(e){return e.type===qt.number}function L$(e){return e.type===qt.date}function $$(e){return e.type===qt.time}function k$(e){return e.type===qt.select}function q$(e){return e.type===qt.plural}function mY(e){return e.type===qt.pound}function B$(e){return e.type===qt.tag}function U$(e){return!!(e&&typeof e=="object"&&e.type===Zs.number)}function Uv(e){return!!(e&&typeof e=="object"&&e.type===Zs.dateTime)}var F$=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,yY=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function gY(e){var t={};return e.replace(yY,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var _Y=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function vY(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(_Y).filter(function(f){return f.length>0}),r=[],n=0,i=t;n<i.length;n++){var a=i[n],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],c=s.slice(1),u=0,l=c;u<l.length;u++){var d=l[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:c})}return r}function EY(e){return e.replace(/^(.*?)-/,"")}var rC=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,H$=/^(@+)?(\+|#+)?[rs]?$/g,bY=/(\*)(0+)|(#+)(0+)|(0+)/g,V$=/^(0+)$/;function nC(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(H$,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function x$(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function SY(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!V$.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function iC(e){var t={},r=x$(e);return r||t}function TY(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=EY(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ke(ke(ke({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return ke(ke({},c),iC(u))},{}));continue;case"engineering":t=ke(ke(ke({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return ke(ke({},c),iC(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(bY,function(c,u,l,d,f,p){if(u)t.minimumIntegerDigits=l.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(V$.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(rC.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(rC,function(c,u,l,d,f,p){return l==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=ke(ke({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=ke(ke({},t),nC(a)));continue}if(H$.test(i.stem)){t=ke(ke({},t),nC(i.stem));continue}var s=x$(i.stem);s&&(t=ke(ke({},t),s));var o=SY(i.stem);o&&(t=ke(ke({},t),o))}return t}var yd={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function wY(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var s=1+(a&1),o=a<2?1:3+(a>>1),c="a",u=IY(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=c;for(;s-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function IY(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=yd[n||""]||yd[r||""]||yd["".concat(r,"-001")]||yd["001"];return i[0]}var k_,RY=new RegExp("^".concat(F$.source,"*")),AY=new RegExp("".concat(F$.source,"*$"));function lt(e,t){return{start:e,end:t}}var OY=!!String.prototype.startsWith&&"_a".startsWith("a",1),NY=!!String.fromCodePoint,PY=!!Object.fromEntries,CY=!!String.prototype.codePointAt,MY=!!String.prototype.trimStart,jY=!!String.prototype.trimEnd,DY=!!Number.isSafeInteger,LY=DY?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fv=!0;try{var $Y=z$("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fv=((k_=$Y.exec("a"))===null||k_===void 0?void 0:k_[0])==="a"}catch{Fv=!1}var aC=OY?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Hv=NY?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0,s;i>a;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},sC=PY?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var a=i[n],s=a[0],o=a[1];r[s]=o}return r},G$=CY?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},kY=MY?function(t){return t.trimStart()}:function(t){return t.replace(RY,"")},qY=jY?function(t){return t.trimEnd()}:function(t){return t.replace(AY,"")};function z$(e,t){return new RegExp(e,t)}var Vv;if(Fv){var oC=z$("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Vv=function(t,r){var n;oC.lastIndex=r;var i=oC.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Vv=function(t,r){for(var n=[];;){var i=G$(t,r);if(i===void 0||W$(i)||HY(i))break;n.push(i),r+=i>=65536?2:1}return Hv.apply(void 0,n)};var BY=(function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:qt.pound,location:lt(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(st.UNMATCHED_CLOSING_TAG,lt(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&xv(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:qt.literal,value:"<".concat(i,"/>"),location:lt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xv(this.char()))return this.error(st.INVALID_TAG,lt(o,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(st.UNMATCHED_CLOSING_TAG,lt(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:qt.tag,value:i,children:s,location:lt(n,this.clonePosition())},err:null}:this.error(st.INVALID_TAG,lt(o,this.clonePosition())))}else return this.error(st.UNCLOSED_TAG,lt(n,this.clonePosition()))}else return this.error(st.INVALID_TAG,lt(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&FY(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var c=lt(n,this.clonePosition());return{val:{type:qt.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!UY(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Hv.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Hv(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(st.EXPECT_ARGUMENT_CLOSING_BRACE,lt(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(st.EMPTY_ARGUMENT,lt(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(st.MALFORMED_ARGUMENT,lt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(st.EXPECT_ARGUMENT_CLOSING_BRACE,lt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:qt.argument,value:i,location:lt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(st.EXPECT_ARGUMENT_CLOSING_BRACE,lt(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(st.MALFORMED_ARGUMENT,lt(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Vv(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=lt(t,a);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(o){case"":return this.error(st.EXPECT_ARGUMENT_TYPE,lt(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=qY(d.val);if(f.length===0)return this.error(st.EXPECT_ARGUMENT_STYLE,lt(this.clonePosition(),this.clonePosition()));var p=lt(l,this.clonePosition());u={style:f,styleLocation:p}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var y=lt(i,this.clonePosition());if(u&&aC(u==null?void 0:u.style,"::",0)){var _=kY(u.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(_,u.styleLocation);return d.err?d:{val:{type:qt.number,value:n,location:y,style:d.val},err:null}}else{if(_.length===0)return this.error(st.EXPECT_DATE_TIME_SKELETON,y);var R=_;this.locale&&(R=wY(_,this.locale));var f={type:Zs.dateTime,pattern:R,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?gY(R):{}},h=o==="date"?qt.date:qt.time;return{val:{type:h,value:n,location:y,style:f},err:null}}}return{val:{type:o==="number"?qt.number:o==="date"?qt.date:qt.time,value:n,location:y,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(st.EXPECT_SELECT_ARGUMENT_OPTIONS,lt(T,ke({},T)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),m=0;if(o!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(st.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,lt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(st.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,st.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),I=this.parseIdentifierIfPossible(),m=d.val}var E=this.tryParsePluralOrSelectOptions(t,o,r,I);if(E.err)return E;var g=this.tryParseArgumentClose(i);if(g.err)return g;var b=lt(i,this.clonePosition());return o==="select"?{val:{type:qt.select,value:n,options:sC(E.val),location:b},err:null}:{val:{type:qt.plural,value:n,options:sC(E.val),offset:m,pluralType:o==="plural"?"cardinal":"ordinal",location:b},err:null}}default:return this.error(st.INVALID_ARGUMENT_TYPE,lt(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(st.EXPECT_ARGUMENT_CLOSING_BRACE,lt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(st.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,lt(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=vY(t)}catch{return this.error(st.INVALID_NUMBER_SKELETON,r)}return{val:{type:Zs.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?TY(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var a,s=!1,o=[],c=new Set,u=i.value,l=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(st.EXPECT_PLURAL_ARGUMENT_SELECTOR,st.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=lt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(c.has(u))return this.error(r==="select"?st.DUPLICATE_SELECT_ARGUMENT_SELECTOR:st.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);u==="other"&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?st.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:st.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,lt(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var y=this.tryParseArgumentClose(p);if(y.err)return y;o.push([u,{value:g.val,location:lt(p,this.clonePosition())}]),c.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,l=a.location}return o.length===0?this.error(r==="select"?st.EXPECT_SELECT_ARGUMENT_SELECTOR:st.EXPECT_PLURAL_ARGUMENT_SELECTOR,lt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(st.MISSING_OTHER_CLAUSE,lt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var c=lt(i,this.clonePosition());return a?(s*=n,LY(s)?{val:s,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=G$(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(aC(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&W$(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e})();function xv(e){return e>=97&&e<=122||e>=65&&e<=90}function UY(e){return xv(e)||e===47}function FY(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function W$(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function HY(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Gv(e){e.forEach(function(t){if(delete t.location,k$(t)||q$(t))for(var r in t.options)delete t.options[r].location,Gv(t.options[r].value);else D$(t)&&U$(t.style)||(L$(t)||$$(t))&&Uv(t.style)?delete t.style.location:B$(t)&&Gv(t.children)})}function VY(e,t){t===void 0&&(t={}),t=ke({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new BY(e,t).parse();if(r.err){var n=SyntaxError(st[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Gv(r.val),r.val}var zn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(zn||(zn={}));var qi=(function(e){Xr(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),cC=(function(e){Xr(t,e);function t(r,n,i,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),zn.INVALID_VALUE,a)||this}return t})(qi),xY=(function(e){Xr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),zn.INVALID_VALUE,i)||this}return t})(qi),GY=(function(e){Xr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),zn.MISSING_VALUE,n)||this}return t})(qi),Ar;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ar||(Ar={}));function zY(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Ar.literal||r.type!==Ar.literal?t.push(r):n.value+=r.value,t},[])}function Y$(e){return typeof e=="function"}function Od(e,t,r,n,i,a,s){if(e.length===1&&tC(e[0]))return[{type:Ar.literal,value:e[0].value}];for(var o=[],c=0,u=e;c<u.length;c++){var l=u[c];if(tC(l)){o.push({type:Ar.literal,value:l.value});continue}if(mY(l)){typeof a=="number"&&o.push({type:Ar.literal,value:r.getNumberFormat(t).format(a)});continue}var d=l.value;if(!(i&&d in i))throw new GY(d,s);var f=i[d];if(hY(l)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),o.push({type:typeof f=="string"?Ar.literal:Ar.object,value:f});continue}if(L$(l)){var p=typeof l.style=="string"?n.date[l.style]:Uv(l.style)?l.style.parsedOptions:void 0;o.push({type:Ar.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if($$(l)){var p=typeof l.style=="string"?n.time[l.style]:Uv(l.style)?l.style.parsedOptions:n.time.medium;o.push({type:Ar.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(D$(l)){var p=typeof l.style=="string"?n.number[l.style]:U$(l.style)?l.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),o.push({type:Ar.literal,value:r.getNumberFormat(t,p).format(f)});continue}if(B$(l)){var g=l.children,y=l.value,_=i[y];if(!Y$(_))throw new xY(y,"function",s);var R=Od(g,t,r,n,i,a),h=_(R.map(function(m){return m.value}));Array.isArray(h)||(h=[h]),o.push.apply(o,h.map(function(m){return{type:typeof m=="string"?Ar.literal:Ar.object,value:m}}))}if(k$(l)){var T=l.options[f]||l.options.other;if(!T)throw new cC(l.value,f,Object.keys(l.options),s);o.push.apply(o,Od(T.value,t,r,n,i));continue}if(q$(l)){var T=l.options["=".concat(f)];if(!T){if(!Intl.PluralRules)throw new qi(`Intl.PluralRules is not available in this environment.
|
|
83
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
84
|
+
`,zn.MISSING_INTL_API,s);var I=r.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));T=l.options[I]||l.options.other}if(!T)throw new cC(l.value,f,Object.keys(l.options),s);o.push.apply(o,Od(T.value,t,r,n,i,f-(l.offset||0)));continue}}return zY(o)}function WY(e,t){return t?ke(ke(ke({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ke(ke({},e[n]),t[n]||{}),r},{})):e}function YY(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=WY(e[n],t[n]),r},ke({},e)):e}function q_(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function KY(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Or(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,pr([void 0],r,!1)))},{cache:q_(e.number),strategy:Nr.variadic}),getDateTimeFormat:Or(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,pr([void 0],r,!1)))},{cache:q_(e.dateTime),strategy:Nr.variadic}),getPluralRules:Or(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,pr([void 0],r,!1)))},{cache:q_(e.pluralRules),strategy:Nr.variadic})}}var K$=(function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=a.formatToParts(c);if(u.length===1)return u[0].value;var l=u.reduce(function(d,f){return!d.length||f.type!==Ar.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return l.length<=1?l[0]||"":l},this.formatToParts=function(c){return Od(a.ast,a.locales,a.formatters,a.formats,c,void 0,a.message)},this.resolvedOptions=function(){var c;return{locale:((c=a.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var o=ho(s,["formatters"]);this.ast=e.__parse(t,ke(ke({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=YY(e.formats,n),this.formatters=i&&i.formatters||KY(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=VY,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})(),Va;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Va||(Va={}));var au=(function(e){Xr(t,e);function t(r,n,i){var a=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
|
|
85
|
+
`).concat(s?`
|
|
86
|
+
`.concat(s.message,`
|
|
87
|
+
`).concat(s.stack):""))||this,a.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t})(Error),XY=(function(e){Xr(t,e);function t(r,n){return e.call(this,Va.UNSUPPORTED_FORMATTER,r,n)||this}return t})(au),JY=(function(e){Xr(t,e);function t(r,n){return e.call(this,Va.INVALID_CONFIG,r,n)||this}return t})(au),uC=(function(e){Xr(t,e);function t(r,n){return e.call(this,Va.MISSING_DATA,r,n)||this}return t})(au),an=(function(e){Xr(t,e);function t(r,n,i){var a=e.call(this,Va.FORMAT_ERROR,"".concat(r,`
|
|
88
|
+
Locale: `).concat(n,`
|
|
89
|
+
`),i)||this;return a.locale=n,a}return t})(au),B_=(function(e){Xr(t,e);function t(r,n,i,a){var s=e.call(this,"".concat(r,`
|
|
90
|
+
MessageID: `).concat(i==null?void 0:i.id,`
|
|
91
|
+
Default Message: `).concat(i==null?void 0:i.defaultMessage,`
|
|
92
|
+
Description: `).concat(i==null?void 0:i.description,`
|
|
93
|
+
`),n,a)||this;return s.descriptor=i,s.locale=n,s}return t})(an),QY=(function(e){Xr(t,e);function t(r,n){var i=e.call(this,Va.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(a){var s;return(s=a.value)!==null&&s!==void 0?s:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=r,i}return t})(au);function ns(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var ZY=function(e){},eK=function(e){},X$={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:ZY,onWarn:eK};function J$(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function wa(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function tK(e){e===void 0&&(e=J$());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=Or(function(){for(var o,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((o=Intl.DateTimeFormat).bind.apply(o,pr([void 0],c,!1)))},{cache:wa(e.dateTime),strategy:Nr.variadic}),a=Or(function(){for(var o,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((o=Intl.NumberFormat).bind.apply(o,pr([void 0],c,!1)))},{cache:wa(e.number),strategy:Nr.variadic}),s=Or(function(){for(var o,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((o=Intl.PluralRules).bind.apply(o,pr([void 0],c,!1)))},{cache:wa(e.pluralRules),strategy:Nr.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:Or(function(o,c,u,l){return new K$(o,c,u,ke({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:s}},l||{}))},{cache:wa(e.message),strategy:Nr.variadic}),getRelativeTimeFormat:Or(function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new(t.bind.apply(t,pr([void 0],o,!1)))},{cache:wa(e.relativeTime),strategy:Nr.variadic}),getPluralRules:s,getListFormat:Or(function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new(r.bind.apply(r,pr([void 0],o,!1)))},{cache:wa(e.list),strategy:Nr.variadic}),getDisplayNames:Or(function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new(n.bind.apply(n,pr([void 0],o,!1)))},{cache:wa(e.displayNames),strategy:Nr.variadic})}}function bb(e,t,r,n){var i=e&&e[t],a;if(i&&(a=i[r]),a)return a;n(new XY("No ".concat(t," format named: ").concat(r)))}function gd(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=ke({timeZone:t},e[n]),r},{})}function lC(e,t){var r=Object.keys(ke(ke({},e),t));return r.reduce(function(n,i){return n[i]=ke(ke({},e[i]||{}),t[i]||{}),n},{})}function dC(e,t){if(!t)return e;var r=K$.formats;return ke(ke(ke({},r),e),{date:lC(gd(r.date,t),gd(e.date||{},t)),time:lC(gd(r.time,t),gd(e.time||{},t))})}var zv=function(e,t,r,n,i){var a=e.locale,s=e.formats,o=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.fallbackOnEmptyString,d=e.onError,f=e.timeZone,p=e.defaultRichTextElements;r===void 0&&(r={id:""});var g=r.id,y=r.defaultMessage;j$(!!g,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var _=String(g),R=o&&Object.prototype.hasOwnProperty.call(o,_)&&o[_];if(Array.isArray(R)&&R.length===1&&R[0].type===qt.literal)return R[0].value;if(!n&&R&&typeof R=="string"&&!p)return R.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=ke(ke({},p),n||{}),s=dC(s,f),u=dC(u,f),!R){if(l===!1&&R==="")return R;if((!y||a&&a.toLowerCase()!==c.toLowerCase())&&d(new QY(r,a)),y)try{var h=t.getMessageFormat(y,c,u,i);return h.format(n)}catch(T){return d(new B_('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),a,r,T)),typeof y=="string"?y:_}return _}try{var h=t.getMessageFormat(R,a,s,ke({formatters:t},i||{}));return h.format(n)}catch(T){d(new B_('Error formatting message: "'.concat(_,'", using ').concat(y?"default message":"id"," as fallback."),a,r,T))}if(y)try{var h=t.getMessageFormat(y,c,u,i);return h.format(n)}catch(T){d(new B_('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),a,r,T))}return typeof R=="string"?R:typeof y=="string"?y:_},Q$=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function kf(e,t,r,n){var i=e.locale,a=e.formats,s=e.onError,o=e.timeZone;n===void 0&&(n={});var c=n.format,u=ke(ke({},o&&{timeZone:o}),c&&bb(a,t,c,s)),l=ns(n,Q$,u);return t==="time"&&!l.hour&&!l.minute&&!l.second&&!l.timeStyle&&!l.dateStyle&&(l=ke(ke({},l),{hour:"numeric",minute:"numeric"})),r(i,l)}function rK(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return kf(e,"date",t,s).format(o)}catch(c){e.onError(new an("Error formatting date.",e.locale,c))}return String(o)}function nK(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return kf(e,"time",t,s).format(o)}catch(c){e.onError(new an("Error formatting time.",e.locale,c))}return String(o)}function iK(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=r[2],o=s===void 0?{}:s,c=e.timeZone,u=e.locale,l=e.onError,d=ns(o,Q$,c?{timeZone:c}:{});try{return t(u,d).formatRange(i,a)}catch(f){l(new an("Error formatting date time range.",e.locale,f))}return String(i)}function aK(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return kf(e,"date",t,s).formatToParts(o)}catch(c){e.onError(new an("Error formatting date.",e.locale,c))}return[]}function sK(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return kf(e,"time",t,s).formatToParts(o)}catch(c){e.onError(new an("Error formatting time.",e.locale,c))}return[]}var oK=["style","type","fallback","languageDisplay"];function cK(e,t,r,n){var i=e.locale,a=e.onError,s=Intl.DisplayNames;s||a(new qi(`Intl.DisplayNames is not available in this environment.
|
|
94
|
+
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
95
|
+
`,zn.MISSING_INTL_API));var o=ns(n,oK);try{return t(i,o).of(r)}catch(c){a(new an("Error formatting display name.",i,c))}}var uK=["type","style"],fC=Date.now();function lK(e){return"".concat(fC,"_").concat(e,"_").concat(fC)}function dK(e,t,r,n){n===void 0&&(n={});var i=Z$(e,t,r,n).reduce(function(a,s){var o=s.value;return typeof o!="string"?a.push(o):typeof a[a.length-1]=="string"?a[a.length-1]+=o:a.push(o),a},[]);return i.length===1?i[0]:i.length===0?"":i}function Z$(e,t,r,n){var i=e.locale,a=e.onError;n===void 0&&(n={});var s=Intl.ListFormat;s||a(new qi(`Intl.ListFormat is not available in this environment.
|
|
96
|
+
Try polyfilling it using "@formatjs/intl-listformat"
|
|
97
|
+
`,zn.MISSING_INTL_API));var o=ns(n,uK);try{var c={},u=r.map(function(l,d){if(typeof l=="object"){var f=lK(d);return c[f]=l,f}return String(l)});return t(i,o).formatToParts(u).map(function(l){return l.type==="literal"?l:ke(ke({},l),{value:c[l.value]||l.value})})}catch(l){a(new an("Error formatting list.",i,l))}return r}var fK=["type"];function pK(e,t,r,n){var i=e.locale,a=e.onError;n===void 0&&(n={}),Intl.PluralRules||a(new qi(`Intl.PluralRules is not available in this environment.
|
|
98
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
99
|
+
`,zn.MISSING_INTL_API));var s=ns(n,fK);try{return t(i,s).select(r)}catch(o){a(new an("Error formatting plural.",i,o))}return"other"}var hK=["numeric","style"];function mK(e,t,r){var n=e.locale,i=e.formats,a=e.onError;r===void 0&&(r={});var s=r.format,o=!!s&&bb(i,"relative",s,a)||{},c=ns(r,hK,o);return t(n,c)}function yK(e,t,r,n,i){i===void 0&&(i={}),n||(n="second");var a=Intl.RelativeTimeFormat;a||e.onError(new qi(`Intl.RelativeTimeFormat is not available in this environment.
|
|
100
|
+
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
101
|
+
`,zn.MISSING_INTL_API));try{return mK(e,t,i).format(r,n)}catch(s){e.onError(new an("Error formatting relative time.",e.locale,s))}return String(r)}var gK=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function e2(e,t,r){var n=e.locale,i=e.formats,a=e.onError;r===void 0&&(r={});var s=r.format,o=s&&bb(i,"number",s,a)||{},c=ns(r,gK,o);return t(n,c)}function _K(e,t,r,n){n===void 0&&(n={});try{return e2(e,t,n).format(r)}catch(i){e.onError(new an("Error formatting number.",e.locale,i))}return String(r)}function vK(e,t,r,n){n===void 0&&(n={});try{return e2(e,t,n).formatToParts(r)}catch(i){e.onError(new an("Error formatting number.",e.locale,i))}return[]}function EK(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function bK(e){e.onWarn&&e.defaultRichTextElements&&EK(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
102
|
+
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
103
|
+
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function SK(e,t){var r=tK(t),n=ke(ke({},X$),e),i=n.locale,a=n.defaultLocale,s=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new uC('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new uC('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new JY('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),bK(n),ke(ke({},n),{formatters:r,formatNumber:_K.bind(null,n,r.getNumberFormat),formatNumberToParts:vK.bind(null,n,r.getNumberFormat),formatRelativeTime:yK.bind(null,n,r.getRelativeTimeFormat),formatDate:rK.bind(null,n,r.getDateTimeFormat),formatDateToParts:aK.bind(null,n,r.getDateTimeFormat),formatTime:nK.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:iK.bind(null,n,r.getDateTimeFormat),formatTimeToParts:sK.bind(null,n,r.getDateTimeFormat),formatPlural:pK.bind(null,n,r.getPluralRules),formatMessage:zv.bind(null,n,r),$t:zv.bind(null,n,r),formatList:dK.bind(null,n,r.getListFormat),formatListToParts:Z$.bind(null,n,r.getListFormat),formatDisplayName:cK.bind(null,n,r.getDisplayNames)})}function TK(e){j$(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var wK=ke(ke({},X$),{textComponent:ve.Fragment});function IK(e){return function(t){return e(ve.Children.toArray(t))}}var Sb=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=ve.createContext(null)):ve.createContext(null);Sb.Consumer;var RK=Sb.Provider,AK=RK,OK=Sb;function t2(){var e=ve.useContext(OK);return TK(e),e}var Wv;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Wv||(Wv={}));var Yv;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Yv||(Yv={}));function r2(e){var t=function(r){var n=t2(),i=r.value,a=r.children,s=ho(r,["value","children"]),o=typeof i=="string"?new Date(i||0):i,c=e==="formatDate"?n.formatDateToParts(o,s):n.formatTimeToParts(o,s);return a(c)};return t.displayName=Yv[e],t}function su(e){var t=function(r){var n=t2(),i=r.value,a=r.children,s=ho(r,["value","children"]),o=n[e](i,s);if(typeof a=="function")return a(o);var c=n.textComponent||ve.Fragment;return ve.createElement(c,null,o)};return t.displayName=Wv[e],t}function n2(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=Y$(n)?IK(n):n,t},{})}var pC=function(e,t,r,n){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var s=n2(n),o=zv.apply(void 0,pr([e,t,r,s],i,!1));return Array.isArray(o)?ve.Children.toArray(o):o},NK=function(e,t){var r=e.defaultRichTextElements,n=ho(e,["defaultRichTextElements"]),i=n2(r),a=SK(ke(ke(ke({},wK),n),{defaultRichTextElements:i}),t),s={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:i};return ke(ke({},a),{formatMessage:pC.bind(null,s,a.formatters),$t:pC.bind(null,s,a.formatters)})};su("formatDate");su("formatTime");su("formatNumber");su("formatList");su("formatDisplayName");r2("formatDate");r2("formatTime");const PK={overview:"Overview",collectibles:"Collectibles",myAssets:"My Assets",myFavorites:"My Favorites",myPurchases:"My Purchases",searchPlaceholder:"Search items…",searchAria:"Search the shop",yourBalance:"Your {currency}",getCredits:"Get {currency}",cart:"Cart"},CK={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}"},MK={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."},jK={viewCollection:"View collection",itemCount:"{count, plural, one {# Item} other {# Items}}"},DK={shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",collections:"Collections",head:"Head",upperBody:"Upper Body",handwear:"Handwear",lowerBody:"Lower Body",feet:"Feet",accessories:"Accessories",skins:"Skins",dance:"Dance",stunt:"Stunt",greetings:"Greetings",fun:"Fun",poses:"Poses",reactions:"Reactions",horror:"Horror",miscellaneous:"Miscellaneous"},LK={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."},$K={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}"},kK={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"},qK={empty:{title:"Your cart is empty",body:"Find something you love and it’ll show up here.",cta:"Browse Collectibles"}},BK={price:"Price"},UK={sale:"SALE",saleWithDiscount:"SALE -{pct}%",smart:"Smart",addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites",marketPrice:"Market price",unavailable:"Unavailable",buyNow:"Buy now",yourItem:"Your item",inCart:"In cart",addToCart:"Add to cart"},FK={nav:PK,search:CK,collection:MK,collectionCard:jK,categories:DK,creator:LK,storeSettings:$K,notFound:kK,cart:qK,filter:BK,assetCard:UK},HK={overview:"Inicio",collectibles:"Coleccionables",myAssets:"Mis artículos",myFavorites:"Mis favoritos",myPurchases:"Mis compras",searchPlaceholder:"Busca artículos…",searchAria:"Buscar en la tienda",yourBalance:"Tus {currency}",getCredits:"Conseguir {currency}",cart:"Carrito"},VK={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}"},xK={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."},GK={viewCollection:"Ver colección",itemCount:"{count, plural, one {# Artículo} other {# Artículos}}"},zK={shopAll:"Ver todo",wearables:"Wearables",emotes:"Emotes",collections:"Colecciones",head:"Cabeza",upperBody:"Torso",handwear:"Manos",lowerBody:"Piernas",feet:"Pies",accessories:"Accesorios",skins:"Skins",dance:"Baile",stunt:"Truco",greetings:"Saludos",fun:"Divertido",poses:"Poses",reactions:"Reacciones",horror:"Horror",miscellaneous:"Misceláneos"},WK={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."},YK={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}"},KK={title:"Página no encontrada",body:"La página que buscas no está aquí. Volvamos a la tienda.",cta:"Ver coleccionables"},XK={empty:{title:"Tu carrito está vacío",body:"Encuentra algo que te guste y aparecerá aquí.",cta:"Ver coleccionables"}},JK={price:"Precio"},QK={sale:"OFERTA",saleWithDiscount:"OFERTA -{pct}%",smart:"Smart",addToFavorites:"Agregar a favoritos",removeFromFavorites:"Quitar de favoritos",marketPrice:"Precio de mercado",unavailable:"No disponible",buyNow:"Comprar ahora",yourItem:"Tu artículo",inCart:"En el carrito",addToCart:"Agregar al carrito"},ZK={nav:HK,search:VK,collection:xK,collectionCard:GK,categories:zK,creator:WK,storeSettings:YK,notFound:KK,cart:XK,filter:JK,assetCard:QK},Nd=["en","es"];function Kv(e,t="",r={}){for(const[n,i]of Object.entries(e)){const a=t?`${t}.${n}`:n;i&&typeof i=="object"&&!Array.isArray(i)?Kv(i,a,r):r[a]=String(i)}return r}const eX={en:Kv(FK),es:Kv(ZK)},tX=J$(),U_={};function Tb(e){return U_[e]||(U_[e]=NK({locale:e,defaultLocale:"en",messages:eX[e],onError:()=>{}},tX)),U_[e]}let i2=Tb("en");function rX(e){i2=Tb(e)}function et(e,t){return i2.formatMessage({id:e},t)}function nX(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function hC({address:e,className:t}){const{data:r}=gf(e),n=(r==null?void 0:r.name)||nX(e);return P.jsx("span",{className:t,children:et("search.byCreator",{name:n})})}function iX({contractAddress:e}){return P.jsx(iY,{contractAddress:e,className:"search-pop__collthumb",fallback:P.jsx("span",{className:"search-pop__thumb search-pop__thumb--icon",children:P.jsx("span",{className:"ico ico-search","aria-hidden":!0})})})}const aX=5,sX=2;function oX({query:e,recent:t,onSelectItem:r,onSelectCollection:n,onSelectCreator:i,onRunSearch:a,onRemoveRecent:s,onClearRecent:o}){const c=e.length>=sX,{data:u,isFetching:l}=li({queryKey:["search-suggest",e],queryFn:()=>t$({search:e,first:aX}),enabled:c,placeholderData:Wf,staleTime:3e4}),{data:d=[]}=li({queryKey:["search-suggest-collections",e],queryFn:()=>x9(e),enabled:c,placeholderData:Wf,staleTime:3e4}),{data:f=[]}=li({queryKey:["search-suggest-creators",e],queryFn:()=>W9(e),enabled:c,placeholderData:Wf,staleTime:3e4}),p=c?(u==null?void 0:u.items)??[]:[],g=(u==null?void 0:u.total)??0;if(!c)return t.length===0?null:P.jsxs("div",{className:"search-pop",role:"listbox","aria-label":et("search.suggestions"),children:[P.jsxs("div",{className:"search-pop__section-head",children:[P.jsx("span",{children:et("search.recent")}),P.jsx("button",{type:"button",className:"search-pop__clear",onClick:o,children:et("search.clearRecent")})]}),P.jsx("ul",{className:"search-pop__list",children:t.map(_=>P.jsxs("li",{className:"search-pop__recent",children:[P.jsxs("button",{type:"button",className:"search-pop__recent-btn",onClick:()=>a(_),children:[P.jsx("span",{className:"ico ico-search search-pop__recent-ico","aria-hidden":!0}),P.jsx("span",{className:"search-pop__recent-text",children:_})]}),P.jsx("button",{type:"button",className:"search-pop__recent-remove","aria-label":et("search.removeRecent",{query:_}),onClick:()=>s(_),children:P.jsx(ZL,{})})]},_))})]});const y=p.length===0&&d.length===0&&f.length===0;return P.jsx("div",{className:"search-pop",role:"listbox","aria-label":et("search.suggestions"),children:y?P.jsx("p",{className:"search-pop__empty",children:l?et("search.searching"):et("search.noResults",{query:e})}):P.jsxs(P.Fragment,{children:[p.length>0?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"search-pop__section-head",children:P.jsx("span",{children:et("search.items")})}),P.jsx("ul",{className:"search-pop__list",children:p.map(_=>P.jsx("li",{children:P.jsxs("button",{type:"button",className:"search-pop__row",onClick:()=>r(_),children:[P.jsx("span",{className:"search-pop__thumb",children:_.thumbnail?P.jsx("img",{src:_.thumbnail,alt:""}):null}),P.jsxs("span",{className:"search-pop__text",children:[P.jsx("span",{className:"search-pop__name",title:_.name,children:_.name}),_.creator?P.jsx(hC,{address:_.creator,className:"search-pop__sub"}):null]}),P.jsxs("span",{className:"search-pop__price",children:[P.jsx(yn,{className:"ccy-mark"})," ",_.priceCredits]})]})},_.id))})]}):null,d.length>0?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"search-pop__section-head",children:P.jsx("span",{children:et("search.collections")})}),P.jsx("ul",{className:"search-pop__list",children:d.map(_=>P.jsx("li",{children:P.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--collection",onClick:()=>n(_),children:[P.jsx(iX,{contractAddress:_.contractAddress}),P.jsxs("span",{className:"search-pop__text",children:[P.jsx("span",{className:"search-pop__name",title:_.name,children:_.name}),_.creator?P.jsx(hC,{address:_.creator,className:"search-pop__sub"}):null]})]})},_.contractAddress))})]}):null,f.length>0?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"search-pop__section-head",children:P.jsx("span",{children:et("search.creators")})}),P.jsx("ul",{className:"search-pop__list",children:f.map(_=>P.jsx("li",{children:P.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--creator",onClick:()=>i(_),children:[P.jsx("span",{className:"search-pop__thumb search-pop__thumb--round",children:_.face?P.jsx("img",{src:_.face,alt:""}):null}),P.jsx("span",{className:"search-pop__text",children:P.jsx("span",{className:"search-pop__name",title:_.name,children:_.name})})]})},_.address))})]}):null,g>0?P.jsx("button",{type:"button",className:"search-pop__seeall",onClick:()=>a(e),children:et("search.seeAll",{count:g.toLocaleString()})}):null]})})}const qf="shop:recent-searches",a2=8;function xd(){try{const e=localStorage.getItem(qf);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"&&r.length>0).slice(0,a2):[]}catch{return[]}}function _d(e){const t=e.trim();if(t)try{const r=[t,...xd().filter(n=>n.toLowerCase()!==t.toLowerCase())].slice(0,a2);localStorage.setItem(qf,JSON.stringify(r))}catch{}}function cX(e){try{const t=xd().filter(r=>r.toLowerCase()!==e.trim().toLowerCase());localStorage.setItem(qf,JSON.stringify(t))}catch{}}function uX(){try{localStorage.removeItem(qf)}catch{}}function lX(){const{session:e,connecting:t,signIn:r,disconnect:n,restore:i}=lo(),a=e==null?void 0:e.address,{data:s,isLoading:o}=gf(a),{data:c,isError:u}=UG(e),l=zr(M=>M.items.length),d=zr(M=>M.setOpen),f=Zv(),[p]=A2(),{pathname:g}=HC(),y=/^\/(assets|item|collection|creator)(\/|$)/.test(g),_=p.get("q")??"",[R,h]=ve.useState(_),[T,I]=ve.useState(_),[m,E]=ve.useState(!1),[b,N]=ve.useState([]),j=ve.useRef(),$=ve.useRef(null);ve.useEffect(()=>{i()},[i]),ve.useEffect(()=>{h(_),I(_)},[_]),ve.useEffect(()=>{if(!m)return;const M=U=>{$.current&&!$.current.contains(U.target)&&E(!1)};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[m]);function B(){N(xd()),E(!0)}function V(M){const U=M.trim();E(!1),U&&_d(U),f(U?`/assets?q=${encodeURIComponent(U)}`:"/assets",{replace:!0})}function H(M){E(!1),R.trim()&&_d(R.trim()),_n("Shop Search Suggestion Clicked",{query:R.trim(),type:"item",item_id:M.id});const U=M.tokenId??M.itemId;M.contractAddress&&U?f(`/item/${M.contractAddress}/${U}`,{state:{item:M,tradeId:M.tradeId}}):V(R)}function F(M){E(!1),R.trim()&&_d(R.trim()),_n("Shop Search Suggestion Clicked",{query:R.trim(),type:"collection",contract_address:M.contractAddress}),f(`/collection/${M.contractAddress}`)}function te(M){E(!1),R.trim()&&_d(R.trim()),_n("Shop Search Suggestion Clicked",{query:R.trim(),type:"creator",creator_address:M.address}),f(`/assets/creator/${M.address}`)}function ie(M){h(M),E(!0),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>I(M.trim()),300)}function Z(){h(""),I(""),E(!1),f("/assets",{replace:!0})}function J(M){cX(M),N(xd())}function K(){uX(),N([])}function q(M){if(M.key==="Escape"){E(!1);return}M.key==="Enter"&&(j.current&&clearTimeout(j.current),V(R))}return P.jsxs(P.Fragment,{children:[P.jsx(K4,{activePage:"shop",isSignedIn:!!e,isSigningIn:t,isLoadingProfile:!!e&&o,address:a,avatar:s,onClickSignIn:()=>r(),onClickSignOut:()=>void n()}),P.jsxs("div",{className:"subnav",children:[P.jsxs("nav",{className:"subnav__tabs",children:[P.jsx(os,{to:"/overview",children:et("nav.overview")}),P.jsx(os,{to:"/assets",className:()=>y?"active":"",children:et("nav.collectibles")}),P.jsx(os,{to:"/my-assets",children:et("nav.myAssets")}),e?P.jsx(os,{to:"/my-purchases",children:et("nav.myPurchases")}):null]}),P.jsxs("div",{className:"subnav__search",ref:$,children:[P.jsx("span",{className:"ico ico-search subnav__search-ico","aria-hidden":!0}),P.jsx("input",{value:R,"aria-label":et("nav.searchAria"),placeholder:et("nav.searchPlaceholder"),onChange:M=>ie(M.target.value),onFocus:B,onKeyDown:q}),R?P.jsx("button",{type:"button",className:"subnav__search-clear","aria-label":et("search.clear"),onClick:Z,children:P.jsx(ZL,{})}):null,m?P.jsx(oX,{query:T,recent:b,onSelectItem:H,onSelectCollection:F,onSelectCreator:te,onRunSearch:V,onRemoveRecent:J,onClearRecent:K}):null]}),e?P.jsxs("span",{className:"subnav__balance",title:et("nav.yourBalance",{currency:Xs.name}),children:[P.jsx(yn,{className:"subnav__balance-ico"}),FG(c,u)]}):null,P.jsxs(os,{to:"/credits",className:"subnav__credits",children:[P.jsx(yn,{className:"subnav__credits-ico"}),et("nav.getCredits",{currency:Xs.name})]}),P.jsx(os,{to:"/my-favorites",className:"subnav__fav","aria-label":et("nav.myFavorites"),children:P.jsx("span",{className:"ico ico-heart","aria-hidden":!0})}),P.jsxs("div",{className:"subnav__cart-wrap",children:[P.jsxs("button",{type:"button",className:"subnav__cart","aria-label":et("nav.cart"),onClick:()=>l>0?d(!0):f("/cart"),children:[P.jsx("span",{className:"ico ico-cart","aria-hidden":!0}),l>0?P.jsx("span",{className:"subnav__cart-badge",children:l}):null]}),P.jsx(ZG,{})]})]})]})}let dX=0;const _c=Xa(e=>({toasts:[],push:t=>{const r=++dX;return e(n=>({toasts:[...n.toasts,{...t,id:r}]})),r},dismiss:t=>e(r=>({toasts:r.toasts.filter(n=>n.id!==t)}))})),uQ={success:e=>_c.getState().push({message:e,kind:"success"}),error:e=>_c.getState().push({message:e,kind:"error"}),info:e=>_c.getState().push({message:e,kind:"info"})},fX={success:"✓",error:"!",info:"i"};function pX({t:e}){const t=_c(r=>r.dismiss);return ve.useEffect(()=>{const r=setTimeout(()=>t(e.id),4500);return()=>clearTimeout(r)},[e.id,t]),P.jsxs("div",{className:`toast toast--${e.kind}`,role:e.kind==="error"?"alert":"status",onClick:()=>t(e.id),children:[P.jsx("span",{className:"toast__icon","aria-hidden":!0,children:fX[e.kind]}),P.jsx("span",{className:"toast__msg",children:e.message})]})}function hX(){const e=_c(t=>t.toasts);return e.length===0?null:P.jsx("div",{className:"toaster","aria-live":"polite",children:e.map(t=>P.jsx(pX,{t},t.id))})}const mX=ve.lazy(()=>ar(()=>import("./index-BEob012O.js"),__vite__mapDeps([11,1,12,6,13,4,14,15,3,16,17])).then(e=>({default:e.WearablePreview})));function s2(e){return P.jsx(ve.Suspense,{fallback:null,children:P.jsx(mX,{...e})})}function yX(e){return e.itemId?`urn:decentraland:${St.chainId===80002?"amoy":"matic"}:collections-v2:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}const Ns=Kr.BodyShape.MALE,Ps=Kr.BodyShape.FEMALE;function Xv(e){if(e.category==="emote")return[Ns,Ps];switch(e.gender){case"male":return[Ns];case"female":return[Ps];default:return[Ns,Ps]}}function gX(e){var r;const t=(r=e==null?void 0:e.avatar)==null?void 0:r.bodyShape;return t?t.includes("BaseFemale")?Ps:Ns:null}function wb(e,t){return t==null||Xv(e).includes(t)}function mC(e){return e===Ps?"Female":"Male"}function _X(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?Ps:Ns}function ka(e){return e.category!=="emote"}function eo(e){return ka(e)?e.wearableCategory??`unknown:${e.id}`:null}const vX=new Set(["hat","helmet","mask","tiara","top_head","hair","facial_hair","eyewear","earring","eyes","eyebrows","mouth"]);function EX(e){if(!ka(e))return"item";const t=e.wearableCategory;return t?vX.has(t)?"head":t==="upper_body"?"upper":t==="lower_body"?"lower":t==="feet"?"feet":t==="hands"||t==="hands_wear"?"hands":"item":"item"}function yC(e,t=null){const r=new Set,n=new Set;for(const i of e){const a=eo(i);a==null||n.has(a)||wb(i,t)&&(n.add(a),r.add(i.id))}return r}function bX(e,t,r){if(!ka(t))return e;const n=new Set(e);if(n.has(t.id))return n.delete(t.id),n;const i=eo(t);if(i!=null)for(const a of r)a.id!==t.id&&n.has(a.id)&&eo(a)===i&&n.delete(a.id);return n.add(t.id),n}function SX(e){const t=new Map;for(const n of e){const i=eo(n);if(i==null)continue;const a=t.get(i)??[];a.push(n.id),t.set(i,a)}const r=new Set;for(const n of t.values())n.length>1&&n.forEach(i=>r.add(i));return r}function TX(e,t,r=null){const n=[];for(const i of e){if(!t.has(i.id)||!ka(i)||!wb(i,r))continue;const a=yX(i);a&&n.push(a)}return n}const wX=ve.lazy(()=>ar(()=>import("./AnimatedBackground-psFU9eqJ.js"),__vite__mapDeps([18,1,19])));function gC(e){return!e||e.startsWith("unknown:")?"Wearable":e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g," ")}function IX(){const e=zr(m=>m.fittingOpen),t=zr(m=>m.setFittingOpen),r=zr(m=>m.items),n=zr(m=>m.remove),i=Zv(),a=lo(m=>{var E;return(E=m.session)==null?void 0:E.address}),{data:s,isFetched:o}=gf(a),c=!a||o,u=!!a&&!!s,l=u?a:"default",d=gX(s)??_X(r)??Ns,[f,p]=ve.useState(()=>yC(r,d)),[g,y]=ve.useState(!1);ve.useEffect(()=>{e&&p(yC(r,d))},[e,d]),ve.useEffect(()=>{const m=new Set(r.map(E=>E.id));p(E=>{const b=new Set([...E].filter(N=>m.has(N)));return b.size===E.size?E:b})},[r]);const _=ve.useMemo(()=>SX(r),[r]),R=ve.useMemo(()=>TX(r,f,d),[r,f,d]),h=r.reduce((m,E)=>m+E.priceCredits,0),T=R.join(",");ve.useEffect(()=>{y(!1)},[T,l]);const I=ve.useRef(!1);return ve.useEffect(()=>{if(!e){I.current=!1;return}I.current||(I.current=!0,_n("Shop Tried On Outfit",{cart_size:r.length,wearables:r.filter(ka).length,emotes:r.filter(m=>!ka(m)).length,cart_value_credits:h}))},[e,r,h]),ve.useEffect(()=>{if(!e)return;const m=E=>{E.key==="Escape"&&t(!1)};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[e,t]),!e||r.length===0?null:P.jsxs("div",{className:"fitting",role:"dialog","aria-modal":"true","aria-label":"Fitting room",children:[P.jsx("div",{className:"fitting__scrim",onClick:()=>t(!1)}),P.jsxs("div",{className:"fitting__panel",children:[P.jsx("button",{className:"fitting__close",onClick:()=>t(!1),"aria-label":"Close",children:"×"}),P.jsxs("div",{className:"fitting__stage",children:[P.jsx(ve.Suspense,{fallback:null,children:P.jsx(wX,{})}),c?R.length>0?P.jsxs(P.Fragment,{children:[P.jsx(s2,{profile:l,bodyShape:u?void 0:d,urns:R,type:Kr.PreviewType.AVATAR,emote:Kr.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0,dev:St.chainId===80002,onLoad:()=>y(!0)},l),g?null:P.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:P.jsx("span",{className:"fitting__spinner"})})]}):P.jsxs("div",{className:"fitting__empty-stage",children:[P.jsx("p",{children:"Nothing on right now."}),P.jsx("p",{className:"muted",children:"Turn on an item from the list to try it."})]}):P.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:P.jsx("span",{className:"fitting__spinner"})})]}),P.jsxs("div",{className:"fitting__side",children:[P.jsxs("div",{className:"fitting__head",children:[P.jsx("h2",{className:"fitting__title",children:"Fitting room"}),P.jsx("p",{className:"fitting__sub muted",children:"Mix and match your cart. Turn items on and off to see the look."})]}),P.jsx("div",{className:"fitting__items",children:r.map(m=>{const E=ka(m),b=E&&!wb(m,d),N=f.has(m.id),j=_.has(m.id);return P.jsxs("div",{className:`fitting-row${N?" is-on":""}${b?" is-incompatible":""}`,children:[P.jsxs("label",{className:"fitting-row__toggle",children:[P.jsx("input",{type:"checkbox",checked:N,disabled:!E||b,onChange:()=>p($=>bX($,m,r))}),P.jsx("span",{className:"fitting-row__box","aria-hidden":!0})]}),P.jsx("div",{className:"fitting-row__thumb",children:m.thumbnail?P.jsx("img",{src:m.thumbnail,alt:m.name}):null}),P.jsxs("div",{className:"fitting-row__info",children:[P.jsx("div",{className:"fitting-row__name",title:m.name,children:m.name}),P.jsxs("div",{className:"fitting-row__meta",children:[P.jsx("span",{className:`ico ico-slot-${E?EX(m):"item"} fitting-row__slot-ico`,title:E?gC(eo(m)):"Emote",role:"img","aria-label":E?gC(eo(m)):"Emote"}),j&&!b?P.jsx("span",{className:"fitting-row__conflict",title:"Only one item per slot can be worn",children:"1 per slot"}):null,b?P.jsxs("span",{className:"fitting-row__incompat",title:`This item is made for the ${mC(Xv(m)[0])} body shape`,children:[mC(Xv(m)[0])," only"]}):null]})]}),P.jsxs("div",{className:"fitting-row__price",children:[P.jsx(yn,{className:"fitting-row__diamond"}),m.priceCredits]}),P.jsx("button",{className:"fitting-row__remove",onClick:()=>n(m.id),"aria-label":`Remove ${m.name} from cart`,title:"Remove",children:P.jsx("span",{className:"ico ico-trash","aria-hidden":!0})})]},m.id)})}),P.jsxs("div",{className:"fitting__foot",children:[P.jsxs("div",{className:"fitting__total",children:[r.length," item",r.length>1?"s":""," ·"," ",P.jsxs("strong",{children:[Xs.symbol," ",h]})]}),P.jsx("button",{className:"btn btn--purple fitting__checkout",onClick:()=>{t(!1),i("/cart")},children:"Checkout"})]})]})]})]})}const o2="shop:locale";function RX(){var e;try{const t=new URLSearchParams(window.location.search).get("lang");if(t&&Nd.includes(t))return t;const r=localStorage.getItem(o2);if(r&&Nd.includes(r))return r;const n=(e=navigator.language)==null?void 0:e.slice(0,2);if(n&&Nd.includes(n))return n}catch{}return"en"}const Jv=Xa(e=>({locale:RX(),setLocale:t=>{try{localStorage.setItem(o2,t)}catch{}e({locale:t})}})),AX="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",_C=[{label:"What is Decentraland",url:"https://docs.decentraland.org/introduction/about-decentraland"},{label:"Download",url:"https://decentraland.org/download"},{label:"System Requirements",url:"https://docs.decentraland.org/in-world/settings-and-performance"},{label:"FAQs",url:"https://docs.decentraland.org/faqs/decentraland-101"},{label:"Contact Support",url:"https://decentraland.org/help/"}],vC=[{label:"Marketplace",url:"https://decentraland.org/marketplace"},{label:"Creator Hub",url:"https://decentraland.org/create/"},{label:"Docs",url:"https://docs.decentraland.org"},{label:"Blog",url:"https://decentraland.org/blog/"},{label:"Vote",url:"https://decentraland.org/dao"}],OX=[{name:"Discord",url:"https://dcl.gg/discord",icon:CX},{name:"GitHub",url:"https://github.com/decentraland",icon:MX},{name:"X",url:"https://x.com/decentraland",icon:jX},{name:"Instagram",url:"https://instagram.com/decentraland_foundation/",icon:DX},{name:"YouTube",url:"https://youtube.com/@decentraland_foundation",icon:LX},{name:"TikTok",url:"https://tiktok.com/@decentraland_fdn",icon:$X},{name:"LinkedIn",url:"https://linkedin.com/company/decentralandorg",icon:kX}],NX=[{label:"Privacy Policy",url:"https://decentraland.org/privacy/"},{label:"Terms of Use",url:"https://decentraland.org/terms/"},{label:"Content Policy",url:"https://decentraland.org/content/"},{label:"Code of Ethics",url:"https://decentraland.org/ethics/"}],vd={en:{label:"English",flag:"🇺🇸"},es:{label:"Español",flag:"🇪🇸"}};function EC(){return P.jsx("div",{className:"dcl-footer__social",children:OX.map(({name:e,url:t,icon:r})=>P.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":e,children:P.jsx(r,{})},e))})}function PX(){const e=Jv(u=>u.locale),t=Jv(u=>u.setLocale),[r,n]=ve.useState(null),[i,a]=ve.useState(!1),s=ve.useRef(null),o=vd[e]??vd.en;ve.useEffect(()=>{if(!i)return;const u=l=>{s.current&&!s.current.contains(l.target)&&a(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[i]);const c=u=>n(l=>l===u?null:u);return P.jsxs("footer",{className:"dcl-footer",children:[P.jsxs("div",{className:"dcl-footer__main",children:[P.jsxs("div",{className:"dcl-footer__left",children:[P.jsx("span",{className:"dcl-footer__wordmark",children:"Decentraland"}),P.jsxs("div",{className:"dcl-footer__news",children:[P.jsx("p",{className:"dcl-footer__news-title",children:"Get the weekly highlights in your inbox"}),P.jsx("iframe",{className:"dcl-footer__news-frame",src:AX,height:"65",frameBorder:"0",scrolling:"no",title:"Newsletter signup"})]}),P.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--desktop",children:[P.jsx("p",{className:"dcl-footer__label",children:"Connect"}),P.jsx(EC,{})]})]}),P.jsxs("div",{className:"dcl-footer__right",children:[P.jsxs("div",{className:"dcl-footer__col",children:[P.jsx("p",{className:"dcl-footer__label",children:"Getting Started"}),_C.map(u=>P.jsx("a",{className:"dcl-footer__link",href:u.url,target:"_blank",rel:"noopener noreferrer",children:u.label},u.label))]}),P.jsxs("div",{className:"dcl-footer__col",children:[P.jsx("p",{className:"dcl-footer__label",children:"Resources"}),vC.map(u=>P.jsx("a",{className:"dcl-footer__link",href:u.url,target:"_blank",rel:"noopener noreferrer",children:u.label},u.label))]})]}),P.jsxs("div",{className:"dcl-footer__mobile-menu",children:[P.jsx("p",{className:"dcl-footer__menu-label",children:"Menu"}),[{key:"getting-started",label:"Getting Started",links:_C},{key:"resources",label:"Resources",links:vC}].map(u=>P.jsxs("div",{children:[P.jsxs("button",{type:"button",className:"dcl-footer__dropdown","aria-expanded":r===u.key,onClick:()=>c(u.key),children:[u.label,P.jsx("span",{className:`dcl-footer__chev${r===u.key?" is-open":""}`,children:P.jsx(bC,{})})]}),P.jsx("div",{className:`dcl-footer__dropdown-content${r===u.key?" is-open":""}`,children:u.links.map(l=>P.jsx("a",{className:"dcl-footer__mlink",href:l.url,target:"_blank",rel:"noopener noreferrer",children:l.label},l.label))})]},u.key))]}),P.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--mobile",children:[P.jsx("p",{className:"dcl-footer__label",children:"Connect"}),P.jsx(EC,{})]})]}),P.jsxs("div",{className:"dcl-footer__bottom",children:[P.jsxs("div",{className:"dcl-footer__bottom-left",children:[P.jsxs("div",{className:"dcl-footer__lang",ref:s,children:[P.jsxs("button",{type:"button",className:"dcl-footer__lang-btn",onClick:()=>a(u=>!u),children:[P.jsx("span",{"aria-hidden":!0,children:o.flag}),o.label,P.jsx("span",{className:`dcl-footer__chev${i?" is-open":""}`,children:P.jsx(bC,{})})]}),i?P.jsx("div",{className:"dcl-footer__lang-menu",children:Nd.map(u=>P.jsxs("button",{className:u===e?"is-active":"",onClick:()=>{t(u),a(!1)},children:[P.jsx("span",{"aria-hidden":!0,children:vd[u].flag}),vd[u].label]},u))}):null]}),P.jsx("div",{className:"dcl-footer__legal",children:NX.map(u=>P.jsx("a",{className:"dcl-footer__legal-link",href:u.url,target:"_blank",rel:"noopener noreferrer",children:u.label},u.label))})]}),P.jsxs("span",{className:"dcl-footer__copy",children:["© ",new Date().getFullYear()," Decentraland"]})]})]})}function CX(){return P.jsx("svg",{viewBox:"0 0 28 22",fill:"currentColor",width:"26",height:"20","aria-hidden":!0,children:P.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 MX(){return P.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:P.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 jX(){return P.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:P.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 DX(){return P.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:P.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 LX(){return P.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:P.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 $X(){return P.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:P.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 kX(){return P.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:P.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 bC(){return P.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18","aria-hidden":!0,children:P.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}var SC=gD();const en=Xa((e,t)=>({item:null,anchor:null,ready:!1,token:0,show:(r,n)=>{var a;const i=t();((a=i.item)==null?void 0:a.id)===r.id&&i.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})})),TC="hover-preview";function qX(){const e=en(_=>_.item),t=en(_=>_.anchor),r=en(_=>_.token),n=en(_=>_.ready),i=en(_=>_.setReady),[a,s]=ve.useState(!1),[o,c]=ve.useState(!1),u=ve.useRef(!1),l=ve.useRef(-1),[d,f]=ve.useState(null);ve.useEffect(()=>{if(typeof window.requestIdleCallback=="function"){const R=window.requestIdleCallback(()=>s(!0),{timeout:3e3});return()=>window.cancelIdleCallback(R)}const _=window.setTimeout(()=>s(!0),1500);return()=>window.clearTimeout(_)},[]),ve.useEffect(()=>{if(!t){f(null);return}let _=0;const R=()=>f(t.getBoundingClientRect());R();const h=()=>{cancelAnimationFrame(_),_=requestAnimationFrame(R)};return window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{cancelAnimationFrame(_),window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[t]),ve.useEffect(()=>{if(!e)return;const _=document.getElementById(TC);if(!(_!=null&&_.contentWindow)||!u.current)return;l.current=r;const R=e.category==="emote";SC.sendMessage(_.contentWindow,SC.PreviewMessageType.UPDATE,{options:{contractAddress:e.contractAddress,itemId:e.itemId??void 0,profile:"default",type:R?void 0:Kr.PreviewType.AVATAR,emote:R?void 0:Kr.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0}})},[e,r,o]);function p(){if(!u.current){u.current=!0,c(!0);return}const _=en.getState();_.item&&_.token===l.current&&i()}if(!a)return null;const y=!!e&&!!d?{position:"fixed",left:d.left,top:d.top,width:d.width,height:d.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 P.jsx("div",{className:"hover-preview","aria-hidden":!0,style:y,children:P.jsx(s2,{id:TC,profile:"default",disableBackground:!0,disableFadeEffect:!0,dev:St.chainId===80002,onLoad:p})})}function BX(){const e=lo(t=>t.session);ve.useEffect(()=>{if(!e||e.providerType!==Kr.ProviderType.INJECTED)return;const t=e.web3Provider.provider;if(!(t!=null&&t.on)||!t.removeListener)return;const r=e.address.toLowerCase(),n=(...i)=>{var o;((o=(i[0]??[])[0])==null?void 0:o.toLowerCase())!==r&&window.location.reload()};return t.on("accountsChanged",n),()=>{var i;return(i=t.removeListener)==null?void 0:i.call(t,"accountsChanged",n)}},[e])}function UX(e,t){return!t||!e.creator?!1:eb(e)&&e.creator.toLowerCase()===t.toLowerCase()}function lQ(e,t){return!!e.signer&&!!t&&e.signer.toLowerCase()===t.toLowerCase()}const wC={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 FX(e){var r;const t=(r=e.wearableCategory)==null?void 0:r.toLowerCase();return t&&wC[t]?wC[t]:e.category==="emote"?"emote-misc":null}function HX(e){return e==="male"?"gender-male":e==="female"?"gender-female":e==="unisex"?"gender-unisex":null}function VX(e,t=Date.now()){const{priceCredits:r,compareAtCredits:n,saleEndsAt:i}=e;return!(n==null||!(n>r)||i!=null&&i<=t)}function xX(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 pc(e,t=Date.now()){return e==null?1/0:Math.max(0,e-t)}function GX(e){if(!isFinite(e)||e<=0)return"";const t=Math.floor(e/1e3),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),a=t%60;return r>0?n>0?`${r}d ${n}h`:`${r}d`:n>0?`${n}h ${i}m`:i>0?`${i}m ${a}s`:`${a}s`}function IC(e){return!isFinite(e)||e<=0?0:e<36e5?1e3:6e4}function zX({endsAt:e,className:t}){const[r,n]=ve.useState(()=>pc(e));ve.useEffect(()=>{if(n(pc(e)),e==null)return;let a;const s=()=>{const c=pc(e);n(c);const u=IC(c);u>0&&(a=setTimeout(s,u))},o=IC(pc(e));return o>0&&(a=setTimeout(s,o)),()=>clearTimeout(a)},[e]);const i=GX(r);return i?P.jsxs("span",{className:t??"sale-countdown",children:[P.jsx("span",{className:"ico ico-clock sale-countdown__ico","aria-hidden":!0}),i]}):null}function WX(e){const[,t]=ve.useState(0);return ve.useEffect(()=>{const r=pc(e.saleEndsAt);if(!isFinite(r)||r<=0||r>2147483647)return;const n=setTimeout(()=>t(i=>i+1),r+1);return()=>clearTimeout(n)},[e.saleEndsAt]),VX(e)}const YX=120;function Ib(e){const{item:t}=e,r=e.mode==="market",n=ve.useRef(),i=ve.useRef(null),a=zr($=>$.add),s=zr($=>$.items.some(B=>B.id===t.id)),o=lo($=>{var B;return(B=$.session)==null?void 0:B.address}),c=UX(t,o),u=Ud($=>$.toggle),l=Ud($=>!!$.items[t.id]),d=en($=>$.show),f=en($=>$.hide),p=en($=>{var B;return((B=$.item)==null?void 0:B.id)===t.id}),g=en($=>{var B;return((B=$.item)==null?void 0:B.id)===t.id?$.ready:!1}),y=!!t.contractAddress&&!!t.itemId,_=t.tokenId??t.itemId,R=!!t.contractAddress&&!!_,h=`/item/${t.contractAddress}/${_}`;function T(){typeof window<"u"&&window.matchMedia&&!window.matchMedia("(hover: hover)").matches||(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{y&&i.current&&d(t,i.current)},YX))}function I(){var $;n.current&&clearTimeout(n.current),(($=en.getState().item)==null?void 0:$.id)===t.id&&f()}ve.useEffect(()=>()=>{var $;n.current&&clearTimeout(n.current),(($=en.getState().item)==null?void 0:$.id)===t.id&&f()},[t.id,f]);const m=FX(t),E=HX(t.gender),b=WX({priceCredits:t.priceCredits,compareAtCredits:t.compareAtCredits,saleEndsAt:t.saleEndsAt}),N=!r&&b,j=N?xX(t.compareAtCredits,t.priceCredits):0;return P.jsxs("article",{className:"card",style:R?{cursor:"pointer"}:void 0,onMouseEnter:T,onMouseLeave:I,children:[R?P.jsx(Ia,{className:"card__link",to:h,state:e.mode==="market"?{item:t,market:!0,marketPriceCredits:e.marketPriceCredits}:{item:t,tradeId:t.tradeId},"aria-label":t.name}):null,P.jsx("button",{className:`card__fav${l?" is-on":""}`,onClick:$=>{$.stopPropagation(),u(t)},"aria-label":et(l?"assetCard.removeFromFavorites":"assetCard.addToFavorites"),children:P.jsx("span",{className:`ico ${l?"ico-heart-solid":"ico-heart"}`,"aria-hidden":!0})}),P.jsxs("div",{className:"card__media",ref:i,children:[N?P.jsx("span",{className:"card__sale-badge",children:j>0?et("assetCard.saleWithDiscount",{pct:j}):et("assetCard.sale")}):null,t.thumbnail?P.jsx("img",{className:`card__img${p&&g?" card__img--hidden":""}`,src:t.thumbnail,alt:t.name,loading:"lazy"}):null]}),P.jsxs("div",{className:"card__body",children:[P.jsxs("div",{className:"card__top",children:[P.jsxs("div",{className:"card__desc",children:[P.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.creator?P.jsx(ib,{address:t.creator,className:"card__creator",linkToProfile:!0}):P.jsx("div",{className:"card__creator",children:" "})]}),r&&e.mode==="market"?P.jsxs("div",{className:"card__price card__price--market",children:[P.jsx("span",{className:"card__approx","aria-hidden":!0,children:"≈"}),P.jsx(yn,{className:"card__diamond"}),e.marketPriceCredits==null?"—":Ss(e.marketPriceCredits)]}):N?P.jsxs("div",{className:"card__price card__price--sale",children:[P.jsxs("span",{className:"card__price-now",title:yc(t.priceCredits),children:[P.jsx(yn,{className:"card__diamond"}),Ss(t.priceCredits)]}),P.jsxs("span",{className:"card__price-was",title:yc(t.compareAtCredits),children:[P.jsx(yn,{className:"card__diamond card__diamond--was"}),Ss(t.compareAtCredits)]}),P.jsx(zX,{endsAt:t.saleEndsAt,className:"card__countdown"})]}):P.jsxs("div",{className:"card__price",title:yc(t.priceCredits),children:[P.jsx(yn,{className:"card__diamond"}),Ss(t.priceCredits)]})]}),P.jsxs("div",{className:"card__action",children:[P.jsxs("div",{className:"card__chips",children:[r?P.jsx("span",{className:"chip chip--market",children:et("assetCard.marketPrice")}):null,P.jsx("span",{className:"chip chip--rarity",style:{background:Q9(t.rarity),color:Z9(t.rarity)},title:eY(t.rarity),children:t.rarity}),t.isSmart?P.jsxs("span",{className:"chip chip--smart",children:[P.jsx("span",{className:"ico ico-smart","aria-hidden":!0}),et("assetCard.smart")]}):null,m?P.jsx("span",{className:"chip chip--icon",children:P.jsx("span",{className:`ico ico-${m}`,"aria-hidden":!0})}):null,E?P.jsx("span",{className:"chip chip--icon",children:P.jsx("span",{className:`ico ico-${E}`,"aria-hidden":!0})}):null]}),r&&e.mode==="market"?P.jsx("button",{className:"card__add-round",onClick:$=>{$.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,"aria-label":e.marketPriceCredits==null?et("assetCard.unavailable"):et("assetCard.buyNow"),children:P.jsx("span",{className:"ico ico-plus","aria-hidden":!0})}):P.jsx("button",{className:`card__add-round${s?" is-in":""}`,onClick:$=>{$.stopPropagation(),c||a(t,"grid")},disabled:s||c,"aria-label":et(c?"assetCard.yourItem":s?"assetCard.inCart":"assetCard.addToCart"),children:P.jsx("span",{className:"ico ico-plus","aria-hidden":!0})}),r&&e.mode==="market"?P.jsx("button",{className:"card__cart",onClick:$=>{$.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,children:e.marketPriceCredits==null?et("assetCard.unavailable"):et("assetCard.buyNow")}):P.jsxs("button",{className:`card__cart${s?" is-in":""}`,onClick:$=>{$.stopPropagation(),c||a(t,"grid")},disabled:s||c,children:[c?null:P.jsx("span",{className:"ico ico-cart-solid card__cart-ico","aria-hidden":!0}),et(c?"assetCard.yourItem":s?"assetCard.inCart":"assetCard.addToCart")]})]})]})]})}const KX=8,XX=8,JX=12;function QX(){const t=Nv(i=>i.followed).slice(0,KX),{data:r=[],isLoading:n}=li({queryKey:["followed-creators-row",t.join(",")],enabled:t.length>0,queryFn:async()=>{const i=await Promise.all(t.map(a=>X9(a,{first:XX}).then(s=>s.items).catch(()=>[])));return ZX(i).filter(a=>a.priceCredits>0).slice(0,JX)}});return t.length===0||!n&&r.length===0?null:P.jsxs("section",{className:"row",children:[P.jsx("div",{className:"row__head",children:P.jsx("h2",{className:"row__title",children:"From creators you follow"})}),P.jsx("div",{className:"row__track",children:n?Array.from({length:6}).map((i,a)=>P.jsx("div",{className:"card card--skeleton"},a)):r.map(i=>P.jsx(Ib,{item:i},i.id))})]})}function ZX(e){const t=[],r=new Set,n=e.reduce((i,a)=>Math.max(i,a.length),0);for(let i=0;i<n;i++)for(const a of e){const s=a[i];s&&!r.has(s.id)&&(r.add(s.id),t.push(s))}return t}const c2="shop:recently-viewed",u2=12;function l2(){try{const e=localStorage.getItem(c2);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.slice(0,u2):[]}catch{return[]}}function dQ(e){if(e!=null&&e.id)try{const t=[e,...l2().filter(r=>r.id!==e.id)].slice(0,u2);localStorage.setItem(c2,JSON.stringify(t))}catch{}}function eJ({excludeId:e}){const t=ve.useMemo(()=>l2().filter(r=>r.id!==e),[e]);return t.length===0?null:P.jsxs("section",{className:"row",children:[P.jsx("div",{className:"row__head",children:P.jsx("h2",{className:"row__title",children:"Recently viewed"})}),P.jsx("div",{className:"row__track",children:t.map(r=>P.jsx(Ib,{item:r},r.id))})]})}async function tJ(e="week",t=10,r="most_volume"){const n=new URLSearchParams({sortBy:r,first:String(t)}),i=await fetch(`${St.marketplaceServerUrl}/v1/rankings/creators/${e}?${n.toString()}`);if(!i.ok)throw new Error(`fetchTopCreators ${i.status}`);return(await i.json()).data??[]}const RC=10;function rJ(e){try{return Math.floor(Number(VC(e))).toLocaleString("en-US")}catch{return"0"}}function nJ({rank:e,creator:t}){return P.jsxs("tr",{className:"ov-creators__row",children:[P.jsx("td",{className:"ov-creators__rank-cell",children:P.jsx("span",{className:"ov-creators__rank",children:e})}),P.jsx("td",{className:"ov-creators__creator-cell",children:P.jsx(ib,{address:t.id,className:"ov-creators__creator",linkToProfile:!0})}),P.jsx("td",{className:"ov-creators__num",children:t.collections.toLocaleString("en-US")}),P.jsx("td",{className:"ov-creators__num",children:t.sales.toLocaleString("en-US")}),P.jsxs("td",{className:"ov-creators__num ov-creators__volume",children:[P.jsx(yn,{className:"ov-creators__coin"}),rJ(t.earned)]})]})}function iJ(){return P.jsxs("tr",{className:"ov-creators__row",children:[P.jsx("td",{className:"ov-creators__rank-cell",children:P.jsx("span",{className:"ov-creators__rank ov-creators__rank--skeleton"})}),P.jsx("td",{className:"ov-creators__creator-cell",children:P.jsx("span",{className:"ov-creators__skeleton ov-creators__skeleton--creator"})}),P.jsx("td",{className:"ov-creators__num",children:P.jsx("span",{className:"ov-creators__skeleton"})}),P.jsx("td",{className:"ov-creators__num",children:P.jsx("span",{className:"ov-creators__skeleton"})}),P.jsx("td",{className:"ov-creators__num",children:P.jsx("span",{className:"ov-creators__skeleton"})})]})}function aJ(){const{data:e,isLoading:t,isError:r}=li({queryKey:["rankings","creators","week"],queryFn:()=>tJ("week",RC)}),n=e??[];return r||!t&&n.length===0?null:P.jsxs("section",{className:"ov-creators",children:[P.jsxs("div",{className:"ov-creators__head",children:[P.jsx("h2",{className:"ov-creators__title",children:"Week Top Creators"}),P.jsx("span",{className:"ov-creators__period",children:"This Week"})]}),P.jsx("div",{className:"ov-creators__scroll",children:P.jsxs("table",{className:"ov-creators__table",children:[P.jsx("thead",{children:P.jsxs("tr",{className:"ov-creators__header",children:[P.jsx("th",{className:"ov-creators__th ov-creators__th--rank",scope:"col",children:"Rank"}),P.jsx("th",{className:"ov-creators__th",scope:"col",children:"Creator"}),P.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:"Collections"}),P.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:"Sales"}),P.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:"Volume"})]})}),P.jsx("tbody",{children:t?Array.from({length:RC}).map((i,a)=>P.jsx(iJ,{},a)):n.map((i,a)=>P.jsx(nJ,{rank:a+1,creator:i},i.id))})]})})]})}const AC="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",sJ="https://cdn.decentraland.org/@dcl/shop/0.1.0-29588264451.commit-627b4b7/assets/hero-fashion-week-B9LOzkde.png",oJ="https://cdn.decentraland.org/@dcl/shop/0.1.0-29588264451.commit-627b4b7/assets/promo-best-rated-emotes-C6kNvB-a.png",cJ="https://cdn.decentraland.org/@dcl/shop/0.1.0-29588264451.commit-627b4b7/assets/promo-week-selected-outfits-BBmkZYZx.png",OC=6;function NC({title:e,items:t,loading:r}){const n=ve.useRef(null),[i,a]=ve.useState(1),[s,o]=ve.useState(0),c=r?OC:t.length,u=ve.useCallback(()=>{const f=n.current;if(!f)return;const p=f.clientWidth;if(p<=0)return;const g=Math.max(1,Math.ceil((f.scrollWidth-p)/p)+1);a(g),o(Math.min(g-1,Math.round(f.scrollLeft/p)));const y=f.querySelector(".card__media"),_=f.parentElement;_&&_.style.setProperty("--ov-arrow-top",`${12+(y?y.offsetHeight:150)/2}px`)},[]);ve.useEffect(()=>{u();const f=n.current;if(!f)return;const p=()=>o(Math.round(f.scrollLeft/Math.max(1,f.clientWidth)));return f.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",u),()=>{f.removeEventListener("scroll",p),window.removeEventListener("resize",u)}},[u,c]);const l=ve.useCallback(f=>{const p=n.current;if(!p)return;const g=Math.max(0,Math.min(i-1,f));p.scrollTo({left:g*p.clientWidth,behavior:"smooth"})},[i]),d=!r&&i>1;return P.jsxs("section",{className:"row ov-carousel",children:[P.jsxs("div",{className:"row__head",children:[P.jsx("h2",{className:"row__title",children:e}),P.jsxs(Ia,{className:"row__viewall",to:"/assets",children:["View all ",P.jsx("span",{className:"ico ico-viewall","aria-hidden":!0})]})]}),P.jsxs("div",{className:"ov-carousel__viewport",children:[d?P.jsx("button",{className:"ov-arrow ov-arrow--left",onClick:()=>l(s-1),disabled:s<=0,"aria-label":"Previous",children:P.jsx("img",{src:AC,alt:"","aria-hidden":!0})}):null,P.jsx("div",{className:"ov-carousel__track",ref:n,children:r?Array.from({length:OC}).map((f,p)=>P.jsx("div",{className:"card card--skeleton"},p)):t.map(f=>P.jsx(Ib,{item:f},f.id))}),d?P.jsx("button",{className:"ov-arrow ov-arrow--right",onClick:()=>l(s+1),disabled:s>=i-1,"aria-label":"Next",children:P.jsx("img",{src:AC,alt:"","aria-hidden":!0})}):null]}),d?P.jsx("div",{className:"ov-carousel__dots","aria-label":`${e} pages`,children:Array.from({length:i}).map((f,p)=>P.jsx("button",{className:`ov-dot${p===s?" is-active":""}`,onClick:()=>l(p),"aria-label":`Go to page ${p+1}`,"aria-current":p===s?"true":void 0},p))}):null]})}function uJ(){const{data:e,isLoading:t}=li({queryKey:["overview-listings"],queryFn:()=>t$({first:24})}),r=(e==null?void 0:e.items)??[];return P.jsxs("div",{className:"overview",children:[P.jsxs("section",{className:"ov-hero",children:[P.jsx("img",{className:"ov-hero__bg",src:sJ,alt:"","aria-hidden":!0}),P.jsx("div",{className:"ov-hero__scrim","aria-hidden":!0}),P.jsxs("div",{className:"ov-hero__inner",children:[P.jsx("h1",{className:"ov-hero__title",children:"Fashion week outfits"}),P.jsx(Ia,{className:"btn btn--purple ov-hero__cta",to:"/assets",children:"Explore collection"})]})]}),t||r.length>0?P.jsxs(P.Fragment,{children:[P.jsx(NC,{title:"Featured Products",items:r.slice(0,12),loading:t}),P.jsxs("section",{className:"ov-promos",children:[P.jsx(Ia,{className:"ov-promo",to:"/assets","aria-label":"Best rated emotes — explore collection",children:P.jsx("img",{src:oJ,alt:"Best rated emotes"})}),P.jsx(Ia,{className:"ov-promo",to:"/assets","aria-label":"Week selected outfits — explore collection",children:P.jsx("img",{src:cJ,alt:"Week selected outfits"})})]}),r.length>12?P.jsx(NC,{title:"New Creations",items:r.slice(12,24),loading:!1}):null]}):P.jsxs("div",{className:"overview__empty",children:[P.jsx("p",{className:"overview__empty-title",children:"New drops are on the way"}),P.jsx("p",{className:"muted",children:"There are no items on sale right now — check back soon."}),P.jsx(Ia,{className:"btn btn--purple",to:"/assets",children:"Browse Collectibles"})]}),P.jsx(eJ,{}),P.jsx(QX,{}),P.jsx(aJ,{})]})}const lJ={"/overview":"overview","/assets":"assets","/my-assets":"my_assets","/my-favorites":"favorites","/my-purchases":"my_purchases","/import":"import","/store-settings":"store_settings","/cart":"cart","/credits":"credits","/success":"success"},dJ=ve.lazy(()=>ar(()=>import("./Assets-iKVqmFqq.js"),__vite__mapDeps([20,1,21,10,6,22,23,24,25,26,27,28,29])).then(e=>({default:e.Assets}))),fJ=ve.lazy(()=>ar(()=>import("./ItemDetail-Cx-6T0Eg.js"),__vite__mapDeps([30,1,23,24,10,6,25,31,32,15,22,21,33])).then(e=>({default:e.ItemDetail}))),pJ=ve.lazy(()=>ar(()=>import("./Collection-D5Q48x8i.js"),__vite__mapDeps([34,1,35,36,37,26,27,28,29,6,38])).then(e=>({default:e.Collection}))),hJ=ve.lazy(()=>ar(()=>import("./Creator-Cw25k_kz.js"),__vite__mapDeps([39,1,35,36,37,26,27,28,29,6,40])).then(e=>({default:e.Creator}))),mJ=ve.lazy(()=>ar(()=>import("./StoreSettings-DfKsXLjF.js"),__vite__mapDeps([41,1,37,6,42])).then(e=>({default:e.StoreSettings}))),yJ=ve.lazy(()=>ar(()=>import("./MyAssets-DxI94ipn.js"),__vite__mapDeps([43,1,44,23,24,10,6,21,45,28,29,46])).then(e=>({default:e.MyAssets}))),gJ=ve.lazy(()=>ar(()=>import("./MyFavorites-D2VaWS1B.js"),__vite__mapDeps([47,1,28,6])).then(e=>({default:e.MyFavorites}))),_J=ve.lazy(()=>ar(()=>import("./MyPurchases-B9emkBFN.js"),__vite__mapDeps([48,1,28,29,6])).then(e=>({default:e.MyPurchases}))),vJ=ve.lazy(()=>ar(()=>import("./ImportListings-dKZfPQUt.js"),__vite__mapDeps([49,1,44,23,24,10,6,21,45,50])).then(e=>({default:e.ImportListings}))),EJ=ve.lazy(()=>ar(()=>import("./Cart-B0oxrKWW.js"),__vite__mapDeps([51,1,23,24,10,6,25,52,31,53])).then(e=>({default:e.Cart}))),bJ=ve.lazy(()=>ar(()=>import("./GetCredits-HKG4BM_P.js"),__vite__mapDeps([54,1,32,52,31,15,6])).then(e=>({default:e.GetCredits}))),SJ=ve.lazy(()=>ar(()=>import("./Success-D8vbmLlB.js"),__vite__mapDeps([55,1,45,25,24,10,6])).then(e=>({default:e.Success}))),TJ=ve.lazy(()=>ar(()=>import("./NotFound-E0wDMFCK.js"),__vite__mapDeps([56,1,6])).then(e=>({default:e.NotFound})));function wJ(){return P.jsx("div",{className:"page-loading","aria-busy":"true",children:P.jsx("span",{className:"spinner","aria-hidden":!0})})}function IJ(){return P.jsxs("div",{className:"overview__empty",children:[P.jsx("p",{className:"overview__empty-title",children:"Something went wrong"}),P.jsx("p",{className:"muted",children:"This page hit an unexpected error. Try reloading."}),P.jsx("button",{className:"btn btn--purple",onClick:()=>window.location.reload(),children:"Reload"})]})}function RJ(){BX();const e=HC();return ve.useEffect(()=>{Y8()},[]),ve.useEffect(()=>{const t=e.pathname,r=lJ[t]??(t.startsWith("/item/")?"item":t.startsWith("/collection/")?"collection":t.startsWith("/assets/creator/")?"creator":"other");x8(r)},[e.pathname]),P.jsxs(P.Fragment,{children:[P.jsx(hX,{}),P.jsx(qX,{}),P.jsx(IX,{}),P.jsx(lX,{}),P.jsx("main",{className:"page",children:P.jsx(qd,{fallback:P.jsx(IJ,{}),children:P.jsx(ve.Suspense,{fallback:P.jsx(wJ,{}),children:P.jsxs(O2,{children:[P.jsx(Er,{path:"/",element:P.jsx(Gb,{to:"/overview",replace:!0})}),P.jsx(Er,{path:"/overview",element:P.jsx(uJ,{})}),P.jsx(Er,{path:"/assets",element:P.jsx(dJ,{})}),P.jsx(Er,{path:"/market",element:P.jsx(Gb,{to:"/assets",replace:!0})}),P.jsx(Er,{path:"/item/:contractAddress/:tokenId",element:P.jsx(fJ,{})}),P.jsx(Er,{path:"/collection/:contractAddress",element:P.jsx(pJ,{})}),P.jsx(Er,{path:"/assets/creator/:address",element:P.jsx(hJ,{})}),P.jsx(Er,{path:"/store-settings",element:P.jsx(mJ,{})}),P.jsx(Er,{path:"/my-assets",element:P.jsx(yJ,{})}),P.jsx(Er,{path:"/my-favorites",element:P.jsx(gJ,{})}),P.jsx(Er,{path:"/my-purchases",element:P.jsx(_J,{})}),P.jsx(Er,{path:"/import",element:P.jsx(vJ,{})}),P.jsx(Er,{path:"/cart",element:P.jsx(EJ,{})}),P.jsx(Er,{path:"/credits",element:P.jsx(bJ,{})}),P.jsx(Er,{path:"/success",element:P.jsx(SJ,{})}),P.jsx(Er,{path:"*",element:P.jsx(TJ,{})})]})})})}),P.jsx(qd,{fallback:P.jsx(P.Fragment,{}),children:P.jsx(PX,{})})]})}function AJ({children:e}){const t=Jv(r=>r.locale);return rX(t),P.jsx(AK,{value:Tb(t),children:e},t)}tG();const OJ=new nk({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),NJ=["localhost","127.0.0.1"].includes(window.location.hostname),PJ=NJ?void 0:"/shop";N2.createRoot(document.getElementById("root")).render(P.jsx(FC.StrictMode,{children:P.jsx(ak,{client:OJ,children:P.jsx(AJ,{children:P.jsx(P2,{basename:PJ,children:P.jsx(RJ,{})})})})}));export{MW as $,Ib as A,T1 as B,yn as C,Ox as D,Ef as E,GJ as F,gf as G,yX as H,gX as I,wb as J,_X as K,Ns as L,tQ as M,OL as N,Dz as O,Uz as P,ki as Q,wt as R,kz as S,w9 as T,Li as U,Cz as V,s2 as W,A9 as X,GL as Y,PW as Z,ar as _,Ud as a,d9 as a$,db as a0,Rf as a1,UL as a2,tu as a3,ub as a4,VL as a5,lb as a6,JL as a7,X2 as a8,LJ as a9,WX as aA,BJ as aB,dQ as aC,FX as aD,HX as aE,eY as aF,Z9 as aG,Q9 as aH,xX as aI,zX as aJ,ZJ as aK,JJ as aL,V9 as aM,c9 as aN,kv as aO,Cv as aP,Nc as aQ,Lz as aR,s7 as aS,zL as aT,QL as aU,xn as aV,BW as aW,KJ as aX,_9 as aY,g9 as aZ,X7 as a_,DJ as aa,yk as ab,Wf as ac,uQ as ad,Ss as ae,zr as af,ib as ag,Ac as ah,iQ as ai,UJ as aj,t$ as ak,Ux as al,Vn as am,K9 as an,oQ as ao,UX as ap,rQ as aq,QJ as ar,rY as as,nY as at,Nv as au,sQ as av,Xv as aw,mC as ax,AC as ay,vL as az,lo as b,FW as b0,xW as b1,mz as b2,RL as b3,YJ as b4,$v as b5,iu as b6,jf as b7,Sn as b8,YV as b9,kG as ba,Jc as bb,HE as bc,SC as bd,vz as be,jz as bf,_z as bg,wL as bh,IL as bi,gz as bj,Pz as bk,zW as bl,WJ as bm,R9 as bn,I9 as bo,ab as bp,$9 as bq,CE as br,xj as bs,Gj as bt,cQ as bu,o5 as bv,HW as bw,x7 as bx,AL as by,VJ as c,li as d,aQ as e,eQ as f,_b as g,St as h,Kr as i,Xs as j,sN as k,z8 as l,zJ as m,lQ as n,XJ as o,nQ as p,et as q,bn as r,T9 as s,_n as t,ik as u,UG as v,xJ as w,FG as x,HJ as y,FJ as z};
|