@dcl/landing-site 0.5.1-24803483354.commit-bb6520e → 0.5.1-24846465451.commit-1f3abc7
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/{AccessTime-DpsycoTx.js → AccessTime-HgE1uMjl.js} +1 -1
- package/assets/{AccessTime-DpsycoTx.js.map → AccessTime-HgE1uMjl.js.map} +1 -1
- package/assets/{Add-CtUiG6Qa.js → Add-DWpGYLEy.js} +1 -1
- package/assets/{Add-CtUiG6Qa.js.map → Add-DWpGYLEy.js.map} +1 -1
- package/assets/AdminLayout.styled-CQwL2XEi.js +1 -0
- package/assets/AdminLayout.styled-CQwL2XEi.js.map +1 -0
- package/assets/{AnimatedBackground-CO__t7bG.js → AnimatedBackground-CY9KApzI.js} +2 -2
- package/assets/{AnimatedBackground-CO__t7bG.js.map → AnimatedBackground-CY9KApzI.js.map} +1 -1
- package/assets/{AnimatedSection-CpvtnDxq.js → AnimatedSection-atlqhaaJ.js} +1 -1
- package/assets/{AnimatedSection-CpvtnDxq.js.map → AnimatedSection-atlqhaaJ.js.map} +1 -1
- package/assets/{AuthorPage-Bpt5CD2Q.js → AuthorPage-OXQ0S0tL.js} +1 -1
- package/assets/{AuthorPage-Bpt5CD2Q.js.map → AuthorPage-OXQ0S0tL.js.map} +1 -1
- package/assets/{Avatar-DM27A1Qp.js → Avatar-UH4W2WAk.js} +1 -1
- package/assets/{Avatar-DM27A1Qp.js.map → Avatar-UH4W2WAk.js.map} +1 -1
- package/assets/{AvatarFace-L7ktQqoW.js → AvatarFace-8lGZVR0F.js} +1 -1
- package/assets/{AvatarFace-L7ktQqoW.js.map → AvatarFace-8lGZVR0F.js.map} +1 -1
- package/assets/{Badges-Cfdyl8RH.js → Badges-DIf7qRfK.js} +1 -1
- package/assets/{Badges-Cfdyl8RH.js.map → Badges-DIf7qRfK.js.map} +1 -1
- package/assets/{BlogLayout-C4txjesH.js → BlogLayout-Bvlb_hEZ.js} +1 -1
- package/assets/{BlogLayout-C4txjesH.js.map → BlogLayout-Bvlb_hEZ.js.map} +1 -1
- package/assets/{BlogPage-Ck61T45y.js → BlogPage-D3i9CzrU.js} +1 -1
- package/assets/{BlogPage-Ck61T45y.js.map → BlogPage-D3i9CzrU.js.map} +1 -1
- package/assets/{CTAButton-CFiXuCIG.js → CTAButton-CIRbCRyU.js} +1 -1
- package/assets/{CTAButton-CFiXuCIG.js.map → CTAButton-CIRbCRyU.js.map} +1 -1
- package/assets/{CardContent-BmJC2B1l.js → CardContent-THhPoxmR.js} +1 -1
- package/assets/{CardContent-BmJC2B1l.js.map → CardContent-THhPoxmR.js.map} +1 -1
- package/assets/{CardMedia-BvzeWU4S.js → CardMedia-9XvH5baB.js} +1 -1
- package/assets/{CardMedia-BvzeWU4S.js.map → CardMedia-9XvH5baB.js.map} +1 -1
- package/assets/{Carousel-ByC5ldRJ.js → Carousel-BqIJDEb9.js} +1 -1
- package/assets/{Carousel-ByC5ldRJ.js.map → Carousel-BqIJDEb9.js.map} +1 -1
- package/assets/{CategoryPage-BqkILV2z.js → CategoryPage-C4u5o4mh.js} +1 -1
- package/assets/{CategoryPage-BqkILV2z.js.map → CategoryPage-C4u5o4mh.js.map} +1 -1
- package/assets/{Check-BOF4_DCU.js → Check-CFiKgYJs.js} +1 -1
- package/assets/{Check-BOF4_DCU.js.map → Check-CFiKgYJs.js.map} +1 -1
- package/assets/{CircleAndArrow-El01hGIC.js → CircleAndArrow-O8sN3E_v.js} +1 -1
- package/assets/{CircleAndArrow-El01hGIC.js.map → CircleAndArrow-O8sN3E_v.js.map} +1 -1
- package/assets/{CircularProgress-D1x03AKQ.js → CircularProgress-Z0W76ens.js} +1 -1
- package/assets/{CircularProgress-D1x03AKQ.js.map → CircularProgress-Z0W76ens.js.map} +1 -1
- package/assets/{ContentCopy-C4kDxda3.js → ContentCopy-88ne4JTk.js} +1 -1
- package/assets/{ContentCopy-C4kDxda3.js.map → ContentCopy-88ne4JTk.js.map} +1 -1
- package/assets/CreateEventPage-HI_5pzkQ.js +16 -0
- package/assets/CreateEventPage-HI_5pzkQ.js.map +1 -0
- package/assets/{CreatorHubDownload-D_CBz7M3.js → CreatorHubDownload-C_IyZZl2.js} +1 -1
- package/assets/{CreatorHubDownload-D_CBz7M3.js.map → CreatorHubDownload-C_IyZZl2.js.map} +1 -1
- package/assets/{CreatorHubDownloadSuccess-B5QI-fsj.js → CreatorHubDownloadSuccess-DVGIO7MB.js} +1 -1
- package/assets/{CreatorHubDownloadSuccess-B5QI-fsj.js.map → CreatorHubDownloadSuccess-DVGIO7MB.js.map} +1 -1
- package/assets/{DappsShell-BC3H8ts9.js → DappsShell-CFZyE77Z.js} +1 -1
- package/assets/{DappsShell-BC3H8ts9.js.map → DappsShell-CFZyE77Z.js.map} +1 -1
- package/assets/{DownloadSuccessLayout-DUmT7uWX.js → DownloadSuccessLayout-Bqi9ZKaN.js} +1 -1
- package/assets/{DownloadSuccessLayout-DUmT7uWX.js.map → DownloadSuccessLayout-Bqi9ZKaN.js.map} +1 -1
- package/assets/{EventsPage-C9kUjKcs.js → EventsPage-DQRgzFAr.js} +1 -1
- package/assets/{EventsPage-C9kUjKcs.js.map → EventsPage-DQRgzFAr.js.map} +1 -1
- package/assets/{Grow-BxJOb7Ur.js → Grow-BHy15Dn2.js} +1 -1
- package/assets/{Grow-BxJOb7Ur.js.map → Grow-BHy15Dn2.js.map} +1 -1
- package/assets/HomePage-By8bcZyK.js +1 -0
- package/assets/HomePage-By8bcZyK.js.map +1 -0
- package/assets/{InvalidPage-Bzsjkjz7.js → InvalidPage-Debgf-PV.js} +1 -1
- package/assets/{InvalidPage-Bzsjkjz7.js.map → InvalidPage-Debgf-PV.js.map} +1 -1
- package/assets/{InviteFaqs-D5mF7omx.js → InviteFaqs-GNUarAeA.js} +1 -1
- package/assets/{InviteFaqs-D5mF7omx.js.map → InviteFaqs-GNUarAeA.js.map} +1 -1
- package/assets/{InvitePage-BpKnAj4V.js → InvitePage-BWbamxve.js} +2 -2
- package/assets/{InvitePage-BpKnAj4V.js.map → InvitePage-BWbamxve.js.map} +1 -1
- package/assets/{JumpInButton-CqKycSau.js → JumpInButton-DorJjQyB.js} +1 -1
- package/assets/{JumpInButton-CqKycSau.js.map → JumpInButton-DorJjQyB.js.map} +1 -1
- package/assets/{JumpInIcon-ZOn0wOk1.js → JumpInIcon-DfpHf5gS.js} +1 -1
- package/assets/{JumpInIcon-ZOn0wOk1.js.map → JumpInIcon-DfpHf5gS.js.map} +1 -1
- package/assets/{KeyboardArrowRight-BYjm2LN-.js → KeyboardArrowRight-DdkI-avV.js} +1 -1
- package/assets/{KeyboardArrowRight-BYjm2LN-.js.map → KeyboardArrowRight-DdkI-avV.js.map} +1 -1
- package/assets/{LegacyEventRedirect-dCzyDptD.js → LegacyEventRedirect-DRboznqd.js} +1 -1
- package/assets/{LegacyEventRedirect-dCzyDptD.js.map → LegacyEventRedirect-DRboznqd.js.map} +1 -1
- package/assets/{LegalPageLayout-DINPtlgk.js → LegalPageLayout-S2fzAMXj.js} +1 -1
- package/assets/{LegalPageLayout-DINPtlgk.js.map → LegalPageLayout-S2fzAMXj.js.map} +1 -1
- package/assets/{Link-lvNSZJho.js → Link-DzgysiL-.js} +1 -1
- package/assets/{Link-lvNSZJho.js.map → Link-DzgysiL-.js.map} +1 -1
- package/assets/Menu-GeJMADr-.js +1 -0
- package/assets/Menu-GeJMADr-.js.map +1 -0
- package/assets/MenuItem-BK7OLKkT.js +1 -0
- package/assets/MenuItem-BK7OLKkT.js.map +1 -0
- package/assets/{PageContainer.styled-Bbv_6rIn.js → PageContainer.styled-DvE7NPbD.js} +1 -1
- package/assets/{PageContainer.styled-Bbv_6rIn.js.map → PageContainer.styled-DvE7NPbD.js.map} +1 -1
- package/assets/{Paper-CaFKxPzv.js → Paper-D1WB3MQ6.js} +1 -1
- package/assets/{Paper-CaFKxPzv.js.map → Paper-D1WB3MQ6.js.map} +1 -1
- package/assets/PendingEventCard-B7JbvnL5.js +3 -0
- package/assets/PendingEventCard-B7JbvnL5.js.map +1 -0
- package/assets/PendingEventsPage-CcDBEr9M.js +1 -0
- package/assets/PendingEventsPage-CcDBEr9M.js.map +1 -0
- package/assets/{PlacesPage-Btx40VGe.js → PlacesPage-MkHUyi3j.js} +1 -1
- package/assets/{PlacesPage-Btx40VGe.js.map → PlacesPage-MkHUyi3j.js.map} +1 -1
- package/assets/{PostCard-SDZ_3aVu.js → PostCard-C61NfgmU.js} +1 -1
- package/assets/{PostCard-SDZ_3aVu.js.map → PostCard-C61NfgmU.js.map} +1 -1
- package/assets/{PostPage-D9faiVAT.js → PostPage-BCzjf8V1.js} +1 -1
- package/assets/{PostPage-D9faiVAT.js.map → PostPage-BCzjf8V1.js.map} +1 -1
- package/assets/{PostPage.styled-CzIG7Tl3.js → PostPage.styled-BRWGJ8p8.js} +3 -3
- package/assets/{PostPage.styled-CzIG7Tl3.js.map → PostPage.styled-BRWGJ8p8.js.map} +1 -1
- package/assets/{PreviewPage-CF-KNgQh.js → PreviewPage-DWebBF8F.js} +1 -1
- package/assets/{PreviewPage-CF-KNgQh.js.map → PreviewPage-DWebBF8F.js.map} +1 -1
- package/assets/{RemindMeButton-BtxpQEzy.js → RemindMeButton-DnlXMDH0.js} +1 -1
- package/assets/{RemindMeButton-BtxpQEzy.js.map → RemindMeButton-DnlXMDH0.js.map} +1 -1
- package/assets/{SEO-B1EK7Y3P.js → SEO-5chg1jEQ.js} +1 -1
- package/assets/{SEO-B1EK7Y3P.js.map → SEO-5chg1jEQ.js.map} +1 -1
- package/assets/{SearchPage-B4wICXqh.js → SearchPage-Db-35tEZ.js} +1 -1
- package/assets/{SearchPage-B4wICXqh.js.map → SearchPage-Db-35tEZ.js.map} +1 -1
- package/assets/{SignInRedirect-CFIlTqwD.js → SignInRedirect-C1Hp0Nnl.js} +1 -1
- package/assets/{SignInRedirect-CFIlTqwD.js.map → SignInRedirect-C1Hp0Nnl.js.map} +1 -1
- package/assets/{SignInRedirect-DunroI2V.js → SignInRedirect-DcrAjaP6.js} +1 -1
- package/assets/{SignInRedirect-DunroI2V.js.map → SignInRedirect-DcrAjaP6.js.map} +1 -1
- package/assets/{Skeleton-iNlScP9H.js → Skeleton-CSFvCtu0.js} +1 -1
- package/assets/{Skeleton-iNlScP9H.js.map → Skeleton-CSFvCtu0.js.map} +1 -1
- package/assets/Switch-swOw3biA.js +1 -0
- package/assets/Switch-swOw3biA.js.map +1 -0
- package/assets/TextField-C018XFrK.js +2 -0
- package/assets/TextField-C018XFrK.js.map +1 -0
- package/assets/{Tooltip-Kem9dSAd.js → Tooltip-CasBLMgX.js} +1 -1
- package/assets/{Tooltip-Kem9dSAd.js.map → Tooltip-CasBLMgX.js.map} +1 -1
- package/assets/{TwitterEmbed-BRI3ivet.js → TwitterEmbed-CLNUtpsQ.js} +1 -1
- package/assets/{TwitterEmbed-BRI3ivet.js.map → TwitterEmbed-CLNUtpsQ.js.map} +1 -1
- package/assets/UsersAdminPage-UAdQmyUX.js +2 -0
- package/assets/UsersAdminPage-UAdQmyUX.js.map +1 -0
- package/assets/{Video-CKs5_Z0w.js → Video-NGhd3LeA.js} +1 -1
- package/assets/{Video-CKs5_Z0w.js.map → Video-NGhd3LeA.js.map} +1 -1
- package/assets/WearablePreview-BilBSC94.js +4 -0
- package/assets/{WearablePreview-Bca5KMOK.js.map → WearablePreview-BilBSC94.js.map} +1 -1
- package/assets/{WhatsOnLayout-BiKCXvlg.js → WhatsOnLayout-SFhGzfLv.js} +1 -1
- package/assets/{WhatsOnLayout-BiKCXvlg.js.map → WhatsOnLayout-SFhGzfLv.js.map} +1 -1
- package/assets/admin.client-B5xGzvMY.js +1 -0
- package/assets/admin.client-B5xGzvMY.js.map +1 -0
- package/assets/{auto-track-DNEnayEP.js → auto-track-CVCHvRCG.js} +1 -1
- package/assets/{auto-track-DNEnayEP.js.map → auto-track-CVCHvRCG.js.map} +1 -1
- package/assets/{ccip-BhHvKQc6.js → ccip-YeVOYAND.js} +1 -1
- package/assets/{ccip-BhHvKQc6.js.map → ccip-YeVOYAND.js.map} +1 -1
- package/assets/{createSvgIcon-B2OEoWjD.js → createSvgIcon-BXXQfd3j.js} +1 -1
- package/assets/{createSvgIcon-B2OEoWjD.js.map → createSvgIcon-BXXQfd3j.js.map} +1 -1
- package/assets/{download-BJW25sds.js → download-DIO3YpIC.js} +2 -2
- package/assets/{download-BJW25sds.js.map → download-DIO3YpIC.js.map} +1 -1
- package/assets/{downloadWithIdentity-COI7bkOD.js → downloadWithIdentity-_pqyEylP.js} +1 -1
- package/assets/{downloadWithIdentity-COI7bkOD.js.map → downloadWithIdentity-_pqyEylP.js.map} +1 -1
- package/assets/events.client-KDioNnTz.js +1 -0
- package/assets/events.client-KDioNnTz.js.map +1 -0
- package/assets/{index-Bu59k1qI.js → index-46z1cHVl.js} +1 -1
- package/assets/{index-Bu59k1qI.js.map → index-46z1cHVl.js.map} +1 -1
- package/assets/{index-BbM07Zad.js → index-B-jMtaWP.js} +1 -1
- package/assets/{index-BbM07Zad.js.map → index-B-jMtaWP.js.map} +1 -1
- package/assets/{index-CCJh3g39.js → index-BAm-Pzt1.js} +1 -1
- package/assets/{index-CCJh3g39.js.map → index-BAm-Pzt1.js.map} +1 -1
- package/assets/{index-DsKNeH7X.js → index-BFPvT5pa.js} +1 -1
- package/assets/{index-DsKNeH7X.js.map → index-BFPvT5pa.js.map} +1 -1
- package/assets/{index-gJ1MOEiZ.js → index-BP0MprVq.js} +3 -3
- package/assets/{index-gJ1MOEiZ.js.map → index-BP0MprVq.js.map} +1 -1
- package/assets/{index-DOEJnoYg.js → index-BPWecXcY.js} +1 -1
- package/assets/{index-DOEJnoYg.js.map → index-BPWecXcY.js.map} +1 -1
- package/assets/{index-B7GlY0il.js → index-BV5D6He9.js} +1 -1
- package/assets/{index-B7GlY0il.js.map → index-BV5D6He9.js.map} +1 -1
- package/assets/{index-D9krZGYy.js → index-BWvXRlTE.js} +34 -34
- package/assets/index-BWvXRlTE.js.map +1 -0
- package/assets/{index-BRm9VGyh.js → index-ButFVFTl.js} +1 -1
- package/assets/{index-BRm9VGyh.js.map → index-ButFVFTl.js.map} +1 -1
- package/assets/{index-tw_cdOWS.js → index-C-p9HFH_.js} +1 -1
- package/assets/{index-tw_cdOWS.js.map → index-C-p9HFH_.js.map} +1 -1
- package/assets/{index-BDx-bY1l.js → index-C5LUyd00.js} +2 -2
- package/assets/{index-BDx-bY1l.js.map → index-C5LUyd00.js.map} +1 -1
- package/assets/{index-DErVyQiP.js → index-CMGrnQsz.js} +1 -1
- package/assets/{index-DErVyQiP.js.map → index-CMGrnQsz.js.map} +1 -1
- package/assets/{index-ch8SCHpn.js → index-CeEWUadA.js} +1 -1
- package/assets/{index-ch8SCHpn.js.map → index-CeEWUadA.js.map} +1 -1
- package/assets/{index-BqjJBRSi.js → index-CgMXgkmG.js} +1 -1
- package/assets/{index-BqjJBRSi.js.map → index-CgMXgkmG.js.map} +1 -1
- package/assets/index-CjU0loIz.js +1 -0
- package/assets/{index-Dg4AWVL8.js.map → index-CjU0loIz.js.map} +1 -1
- package/assets/{index-XmZQan5Q.js → index-CjsVUu5b.js} +1 -1
- package/assets/{index-XmZQan5Q.js.map → index-CjsVUu5b.js.map} +1 -1
- package/assets/{index-DytFFz4y.js → index-D-HyZoai.js} +3 -3
- package/assets/{index-DytFFz4y.js.map → index-D-HyZoai.js.map} +1 -1
- package/assets/{index-eL7TPZy3.js → index-D4XK2ofK.js} +1 -1
- package/assets/{index-eL7TPZy3.js.map → index-D4XK2ofK.js.map} +1 -1
- package/assets/{index-DukWSxvV.js → index-DBoeO0yj.js} +1 -1
- package/assets/{index-DukWSxvV.js.map → index-DBoeO0yj.js.map} +1 -1
- package/assets/{index-h1t0zAy8.js → index-DHyrb8Ae.js} +1 -1
- package/assets/{index-h1t0zAy8.js.map → index-DHyrb8Ae.js.map} +1 -1
- package/assets/{index-BEU_7_ne.js → index-DJYAOhbz.js} +1 -1
- package/assets/{index-BEU_7_ne.js.map → index-DJYAOhbz.js.map} +1 -1
- package/assets/{index-aBiQGEwK.js → index-DUwBC5EP.js} +1 -1
- package/assets/{index-aBiQGEwK.js.map → index-DUwBC5EP.js.map} +1 -1
- package/assets/{index-Ds3h83Za.js → index-DVUi9PgH.js} +1 -1
- package/assets/{index-Ds3h83Za.js.map → index-DVUi9PgH.js.map} +1 -1
- package/assets/{index-Cec4TfYr.js → index-DZpTCrkB.js} +1 -1
- package/assets/{index-Cec4TfYr.js.map → index-DZpTCrkB.js.map} +1 -1
- package/assets/{index-CbJkiIwc.js → index-DrcOL406.js} +1 -1
- package/assets/{index-CbJkiIwc.js.map → index-DrcOL406.js.map} +1 -1
- package/assets/{index-PzH_zo30.js → index-DwmSadCe.js} +1 -1
- package/assets/{index-PzH_zo30.js.map → index-DwmSadCe.js.map} +1 -1
- package/assets/{index-TNlEMSkO.js → index-Dy9lOKvc.js} +1 -1
- package/assets/{index-TNlEMSkO.js.map → index-Dy9lOKvc.js.map} +1 -1
- package/assets/{index-DskznNlR.js → index-EndbBmWs.js} +1 -1
- package/assets/{index-DskznNlR.js.map → index-EndbBmWs.js.map} +1 -1
- package/assets/index-FOXwt2hH.js +1 -0
- package/assets/{index-B-X7xo-v.js.map → index-FOXwt2hH.js.map} +1 -1
- package/assets/{index-B3_NlVHL.js → index-PNT9J6AQ.js} +1 -1
- package/assets/{index-B3_NlVHL.js.map → index-PNT9J6AQ.js.map} +1 -1
- package/assets/{index-DvT2DV5d.js → index-U6w71K7Y.js} +1 -1
- package/assets/{index-DvT2DV5d.js.map → index-U6w71K7Y.js.map} +1 -1
- package/assets/{index-BM3mFwuT.js → index-mJ6v7MBb.js} +1 -1
- package/assets/{index-BM3mFwuT.js.map → index-mJ6v7MBb.js.map} +1 -1
- package/assets/{placesClient-Brx26wG2.js → placesClient-C2aFU8QL.js} +1 -1
- package/assets/{placesClient-Brx26wG2.js.map → placesClient-C2aFU8QL.js.map} +1 -1
- package/assets/{profile.client-BhwopOt8.js → profile.client-X_-2wpWn.js} +1 -1
- package/assets/{profile.client-BhwopOt8.js.map → profile.client-X_-2wpWn.js.map} +1 -1
- package/assets/rtk-query-react.modern-eNgJtwbJ.js +9 -0
- package/assets/{rtk-query-react.modern-BAShPeSa.js.map → rtk-query-react.modern-eNgJtwbJ.js.map} +1 -1
- package/assets/{shared.styled-CwLQaYli.js → shared.styled-CzGNFzDn.js} +1 -1
- package/assets/{shared.styled-CwLQaYli.js.map → shared.styled-CzGNFzDn.js.map} +1 -1
- package/assets/{signedFetch-BH66xky9.js → signedFetch-wfXfas0G.js} +1 -1
- package/assets/{signedFetch-BH66xky9.js.map → signedFetch-wfXfas0G.js.map} +1 -1
- package/assets/store-Yluidaqz.js +1 -0
- package/assets/store-Yluidaqz.js.map +1 -0
- package/assets/{url-D90migVD.js → url-BvNOSdx9.js} +1 -1
- package/assets/{url-D90migVD.js.map → url-BvNOSdx9.js.map} +1 -1
- package/assets/useAdminPermissions-DtBORrGI.js +1 -0
- package/assets/useAdminPermissions-DtBORrGI.js.map +1 -0
- package/assets/{useAuthIdentity-B6QSalIu.js → useAuthIdentity-B89tP4lt.js} +1 -1
- package/assets/{useAuthIdentity-B6QSalIu.js.map → useAuthIdentity-B89tP4lt.js.map} +1 -1
- package/assets/useCanEditEvent-BhQzxRgL.js +1 -0
- package/assets/useCanEditEvent-BhQzxRgL.js.map +1 -0
- package/assets/{useCreatorHubDownload-Cqo_jiD_.js → useCreatorHubDownload-BI1AVMM2.js} +1 -1
- package/assets/{useCreatorHubDownload-Cqo_jiD_.js.map → useCreatorHubDownload-BI1AVMM2.js.map} +1 -1
- package/assets/{useInfiniteBlogPosts-DJkZrrll.js → useInfiniteBlogPosts-Dhb_txNw.js} +1 -1
- package/assets/{useInfiniteBlogPosts-DJkZrrll.js.map → useInfiniteBlogPosts-Dhb_txNw.js.map} +1 -1
- package/assets/{useManaBalances.impl-CnS1IZqg.js → useManaBalances.impl-Byl7YHKM.js} +3 -3
- package/assets/{useManaBalances.impl-CnS1IZqg.js.map → useManaBalances.impl-Byl7YHKM.js.map} +1 -1
- package/assets/{useProfileAvatar-C_W2tZIS.js → useProfileAvatar-BAqgxJ1A.js} +1 -1
- package/assets/{useProfileAvatar-C_W2tZIS.js.map → useProfileAvatar-BAqgxJ1A.js.map} +1 -1
- package/assets/{useSlot-8XCS788i.js → useSlot-GF7Jj78E.js} +1 -1
- package/assets/{useSlot-8XCS788i.js.map → useSlot-GF7Jj78E.js.map} +1 -1
- package/assets/{utils-CNAAosuZ.js → utils-CmqDRpr2.js} +1 -1
- package/assets/{utils-CNAAosuZ.js.map → utils-CmqDRpr2.js.map} +1 -1
- package/index.html +15 -15
- package/package.json +3 -3
- package/assets/AdminLayout.styled-nMbBrmih.js +0 -1
- package/assets/AdminLayout.styled-nMbBrmih.js.map +0 -1
- package/assets/ArrowBackIosNew-Dvsk5ZUT.js +0 -1
- package/assets/ArrowBackIosNew-Dvsk5ZUT.js.map +0 -1
- package/assets/CreateEventPage-ZOlXojoA.js +0 -16
- package/assets/CreateEventPage-ZOlXojoA.js.map +0 -1
- package/assets/FutureCard-WKBFz6qp.js +0 -3
- package/assets/FutureCard-WKBFz6qp.js.map +0 -1
- package/assets/HomePage-CUPFKRVr.js +0 -1
- package/assets/HomePage-CUPFKRVr.js.map +0 -1
- package/assets/MenuItem-duRqfCJq.js +0 -1
- package/assets/MenuItem-duRqfCJq.js.map +0 -1
- package/assets/PendingEventsPage-CM3liVzS.js +0 -1
- package/assets/PendingEventsPage-CM3liVzS.js.map +0 -1
- package/assets/TextField-DpWq-ZfM.js +0 -2
- package/assets/TextField-DpWq-ZfM.js.map +0 -1
- package/assets/UsersAdminPage-Bv_kpY6k.js +0 -2
- package/assets/UsersAdminPage-Bv_kpY6k.js.map +0 -1
- package/assets/WearablePreview-Bca5KMOK.js +0 -4
- package/assets/admin.client-BVloTpEY.js +0 -1
- package/assets/admin.client-BVloTpEY.js.map +0 -1
- package/assets/events.client-By7Zddj9.js +0 -1
- package/assets/events.client-By7Zddj9.js.map +0 -1
- package/assets/index-B-X7xo-v.js +0 -1
- package/assets/index-D9krZGYy.js.map +0 -1
- package/assets/index-Dg4AWVL8.js +0 -1
- package/assets/rtk-query-react.modern-BAShPeSa.js +0 -9
- package/assets/store-CyqSuDHi.js +0 -1
- package/assets/store-CyqSuDHi.js.map +0 -1
- package/assets/useAdminPermissions-CkjK7NYZ.js +0 -1
- package/assets/useAdminPermissions-CkjK7NYZ.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r,a as c,w as C,A as f,Y as v,j as e,a1 as w,U as k,x as y,aq as M,u as j,Z as A,a2 as W}from"./index-
|
|
1
|
+
import{s as r,a as c,w as C,A as f,Y as v,j as e,a1 as w,U as k,x as y,aq as M,u as j,Z as A,a2 as W}from"./index-BWvXRlTE.js";import{r as l}from"./vendor-router-D7SOoytt.js";import{C as b}from"./Carousel-BqIJDEb9.js";import{u as O}from"./profile.client-X_-2wpWn.js";import{E as L,B as D,L as B,U as E}from"./Badges-DIf7qRfK.js";import{A as G}from"./AnimatedBackground-CY9KApzI.js";import"./vendor-crypto-CXsBIwXr.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-DCdewyWN.js";import"./vendor-ua-D7qqAxdq.js";import"./vendor-intl-D2lXWsDp.js";import"./JumpInIcon-DfpHf5gS.js";import"./CardContent-THhPoxmR.js";import"./Paper-D1WB3MQ6.js";import"./Skeleton-CSFvCtu0.js";import"./CardMedia-9XvH5baB.js";import"./Link-DzgysiL-.js";import"./createSvgIcon-BXXQfd3j.js";import"./AvatarFace-8lGZVR0F.js";import"./Avatar-UH4W2WAk.js";import"./useSlot-GF7Jj78E.js";const I=r(c)(({theme:t})=>({width:"100%",padding:t.spacing(10,8),display:"flex",flexDirection:"column",alignItems:"center",gap:t.spacing(6),position:"relative",overflow:"hidden",[t.breakpoints.down("sm")]:{padding:t.spacing(6,2)}})),N=r(C)(({theme:t})=>({color:f.white,fontWeight:700,textAlign:"center",position:"relative",zIndex:10,fontSize:48,[t.breakpoints.down("sm")]:{fontSize:32}})),h=62,T=r(c)(({theme:t})=>({display:"flex",gap:t.spacing(3),justifyContent:"center",width:"100%",position:"relative",zIndex:10,"& > *":{flex:"1 1 0",minWidth:0,maxWidth:850,"&:only-child, &:first-child:nth-last-child(2), &:first-child:nth-last-child(2) ~ *":{minHeight:427}},"& .MuiCard-root":{containerType:"inline-size",overflow:"hidden",height:"min(62.5cqw + 130px, 427px)"},"& .MuiCardActionArea-root":{height:"100%"},"&& .MuiCardMedia-root":{height:"min(62.5cqw, 297px)",transition:"height 0.3s ease"},"&& .MuiCardActionArea-root:hover .MuiCardMedia-root":{height:`min(calc(62.5cqw - ${h}px), ${297-h}px)`},"& .MuiCardContent-root .MuiBox-root .MuiBox-root:has(.MuiAvatar-root)":{maxWidth:"100%"},[t.breakpoints.down("sm")]:{display:"none"}})),z=r(c)(({theme:t})=>({display:"none",width:"100%",position:"relative",zIndex:10,[t.breakpoints.down("sm")]:{display:"block"}})),P=r("div")({borderRadius:16,overflow:"hidden",display:"flex",flexDirection:"column","&& .MuiCardContent-root":{backgroundColor:"rgba(0, 0, 0, 0.6)"},"&& .MuiCard-root":{minWidth:0,maxWidth:"100%"},"&& .MuiTypography-h6":{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",WebkitLineClamp:"unset",WebkitBoxOrient:"unset"}}),_=k("/dcl-logo.svg").replace(/^http:\/\//,"https://"),n=l.memo(({card:t,loading:a})=>{const i=v(),{data:d}=O(t?.creatorAddress,{skip:!t?.creatorAddress});let s=d?.avatars?.[0];return!s&&t?.creatorName&&(s={name:t.creatorName,ethAddress:"",...t.isGenesisPlaza&&{avatar:{snapshots:{face256:_,body:""}}}}),e.jsx(P,{"data-place":w.LANDING_EXPLORE,"data-event":"click","data-card":t?.title,onClick:i,children:e.jsx(L,{loading:a,image:t?.image??"",sceneName:t?.title??"",avatar:s,coordinates:t?.coordinates,leftBadgeTransparent:!0,hideLocation:!0,leftBadge:t?e.jsxs(D,{children:[e.jsx(B,{}),e.jsx(E,{count:t.users})]}):void 0})})});n.displayName="WhatsOnCard";const H=[0,1,2],S=l.memo(()=>{const t=y(),{data:a,isLoading:i}=M(),{isConnected:d}=j(),{handleClick:p,isDownloadModalOpen:s,closeDownloadModal:u,downloadModalProps:x}=A(),m=l.useCallback(o=>{d||(o.preventDefault(),o.stopPropagation(),p(o))},[d,p]);if(!i&&a.length===0)return null;const g=l.useMemo(()=>i?H.map(o=>e.jsx(n,{loading:!0},o)):a.map(o=>e.jsx(n,{card:o},o.id)),[i,a]);return e.jsxs(I,{children:[e.jsx(G,{variant:"absolute"}),e.jsx(N,{variant:"h3",children:t("page.home.whats_on.title")}),e.jsx(T,{onClickCapture:m,children:g}),e.jsx(z,{onClickCapture:m,children:i?e.jsx(n,{loading:!0}):a.length>0&&e.jsx(b,{items:a,renderItem:o=>e.jsx(n,{card:o}),keyExtractor:o=>o.id,autoplayDelay:5e3})}),e.jsx(W,{open:s,onClose:u,...x})]})});S.displayName="WhatsOn";export{S as WhatsOn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-DvT2DV5d.js","sources":["../../src/components/Home/WhatsOn/WhatsOn.styled.ts","../../src/components/Home/WhatsOn/WhatsOnCard.tsx","../../src/components/Home/WhatsOn/WhatsOn.tsx"],"sourcesContent":["import { Box, Typography, dclColors, styled } from 'decentraland-ui2'\n\nconst WhatsOnContainer = styled(Box)(({ theme }) => ({\n width: '100%',\n padding: theme.spacing(10, 8),\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: theme.spacing(6),\n position: 'relative',\n overflow: 'hidden',\n [theme.breakpoints.down('sm')]: {\n padding: theme.spacing(6, 2)\n }\n}))\n\nconst SectionTitle = styled(Typography)(({ theme }) => ({\n color: dclColors.neutral.white,\n fontWeight: 700,\n textAlign: 'center',\n position: 'relative',\n zIndex: 10,\n fontSize: 48,\n [theme.breakpoints.down('sm')]: {\n fontSize: 32\n }\n}))\n\nconst JUMP_IN_HEIGHT = 62\n\nconst CardsGrid = styled(Box)(({ theme }) => ({\n display: 'flex',\n gap: theme.spacing(3),\n justifyContent: 'center',\n width: '100%',\n position: 'relative',\n zIndex: 10,\n /* eslint-disable @typescript-eslint/naming-convention */\n '& > *': {\n flex: '1 1 0',\n minWidth: 0,\n maxWidth: 850,\n '&:only-child, &:first-child:nth-last-child(2), &:first-child:nth-last-child(2) ~ *': {\n minHeight: 427\n }\n },\n '& .MuiCard-root': {\n containerType: 'inline-size',\n overflow: 'hidden',\n height: 'min(62.5cqw + 130px, 427px)'\n },\n '& .MuiCardActionArea-root': {\n height: '100%'\n },\n '&& .MuiCardMedia-root': {\n height: 'min(62.5cqw, 297px)',\n transition: 'height 0.3s ease'\n },\n '&& .MuiCardActionArea-root:hover .MuiCardMedia-root': {\n height: `min(calc(62.5cqw - ${JUMP_IN_HEIGHT}px), ${297 - JUMP_IN_HEIGHT}px)`\n },\n // Expand avatar container so the \"by\" label is not truncated\n // (targets the inner Box wrapping the AvatarFace inside EventCard)\n '& .MuiCardContent-root .MuiBox-root .MuiBox-root:has(.MuiAvatar-root)': {\n maxWidth: '100%'\n },\n /* eslint-enable @typescript-eslint/naming-convention */\n [theme.breakpoints.down('sm')]: {\n display: 'none'\n }\n}))\n\nconst MobileCarousel = styled(Box)(({ theme }) => ({\n display: 'none',\n width: '100%',\n position: 'relative',\n zIndex: 10,\n [theme.breakpoints.down('sm')]: {\n display: 'block'\n }\n}))\n\nconst CardWrapper = styled('div')({\n borderRadius: 16,\n overflow: 'hidden',\n display: 'flex',\n flexDirection: 'column',\n // Override ui2's 0.4 opacity to 0.6\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '&& .MuiCardContent-root': {\n backgroundColor: 'rgba(0, 0, 0, 0.6)'\n },\n // Force card to respect container width on small screens\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '&& .MuiCard-root': {\n minWidth: 0,\n maxWidth: '100%'\n },\n /* eslint-disable @typescript-eslint/naming-convention */\n '&& .MuiTypography-h6': {\n display: 'block',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n WebkitLineClamp: 'unset',\n WebkitBoxOrient: 'unset'\n }\n /* eslint-enable @typescript-eslint/naming-convention */\n})\n\nexport { CardWrapper, CardsGrid, WhatsOnContainer, MobileCarousel, SectionTitle }\n","import { memo } from 'react'\nimport type { Avatar } from '@dcl/schemas'\nimport { BadgeGroup, EventCard, LiveBadge, UserCountBadge } from 'decentraland-ui2'\nimport type { ExploreItem } from '../../../features/events/events.types'\nimport { useGetProfileQuery } from '../../../features/profile/profile.client'\nimport { useTrackClick } from '../../../hooks/adapters/useTrackLinkContext'\nimport { SectionViewedTrack } from '../../../modules/segment'\nimport { assetUrl } from '../../../utils/assetUrl'\nimport { CardWrapper } from './WhatsOn.styled'\n\n// AvatarFace only passes through URLs starting with https://, otherwise it\n// prepends peer.decentraland.org. In prod assetUrl gives https://cdn..., in\n// dev we force https by replacing the protocol.\nconst DCL_LOGO_URL = assetUrl('/dcl-logo.svg').replace(/^http:\\/\\//, 'https://')\n\nconst WhatsOnCard = memo(({ card, loading }: { card?: ExploreItem; loading?: boolean }) => {\n const onClickHandle = useTrackClick()\n const { data: profile } = useGetProfileQuery(card?.creatorAddress, { skip: !card?.creatorAddress })\n const fetchedAvatar = profile?.avatars?.[0]\n\n let avatar: Avatar | undefined = fetchedAvatar as Avatar | undefined\n if (!avatar && card?.creatorName) {\n avatar = {\n name: card.creatorName,\n ethAddress: '',\n ...(card.isGenesisPlaza && {\n avatar: { snapshots: { face256: DCL_LOGO_URL, body: '' } }\n })\n } as Avatar\n }\n\n return (\n <CardWrapper data-place={SectionViewedTrack.LANDING_EXPLORE} data-event=\"click\" data-card={card?.title} onClick={onClickHandle}>\n <EventCard\n loading={loading}\n image={card?.image ?? ''}\n sceneName={card?.title ?? ''}\n avatar={avatar}\n coordinates={card?.coordinates}\n leftBadgeTransparent\n hideLocation\n leftBadge={\n card ? (\n <BadgeGroup>\n <LiveBadge />\n <UserCountBadge count={card.users} />\n </BadgeGroup>\n ) : undefined\n }\n />\n </CardWrapper>\n )\n})\n\nWhatsOnCard.displayName = 'WhatsOnCard'\n\nexport { WhatsOnCard }\n","import { memo, useCallback, useMemo } from 'react'\nimport { AnimatedBackground, DownloadModal } from 'decentraland-ui2'\nimport { useGetWhatsOnDataQuery } from '../../../features/events/events.client'\nimport { useFormatMessage } from '../../../hooks/adapters/useFormatMessage'\nimport { useHangOutAction } from '../../../hooks/useHangOutAction'\nimport { useWalletAddress } from '../../../hooks/useWalletAddress'\nimport { Carousel } from '../../Carousel/Carousel'\nimport { WhatsOnCard } from './WhatsOnCard'\nimport { CardsGrid, MobileCarousel, SectionTitle, WhatsOnContainer } from './WhatsOn.styled'\n\nconst LOADING_PLACEHOLDERS = [0, 1, 2]\n\nconst WhatsOn = memo(() => {\n const l = useFormatMessage()\n const { data: cards, isLoading } = useGetWhatsOnDataQuery()\n const { isConnected } = useWalletAddress()\n const { handleClick, isDownloadModalOpen, closeDownloadModal, downloadModalProps } = useHangOutAction()\n\n // Intercept card clicks when not signed in → show download modal instead\n const handleCardClick = useCallback(\n (e: React.MouseEvent) => {\n if (!isConnected) {\n e.preventDefault()\n e.stopPropagation()\n handleClick(e)\n }\n },\n [isConnected, handleClick]\n )\n\n if (!isLoading && cards.length === 0) return null\n\n const cardElements = useMemo(\n () =>\n isLoading\n ? LOADING_PLACEHOLDERS.map(i => <WhatsOnCard key={i} loading />)\n : cards.map(card => <WhatsOnCard key={card.id} card={card} />),\n [isLoading, cards]\n )\n\n return (\n <WhatsOnContainer>\n <AnimatedBackground variant=\"absolute\" />\n <SectionTitle variant=\"h3\">{l('page.home.whats_on.title')}</SectionTitle>\n <CardsGrid onClickCapture={handleCardClick}>{cardElements}</CardsGrid>\n <MobileCarousel onClickCapture={handleCardClick}>\n {isLoading ? (\n <WhatsOnCard loading />\n ) : (\n cards.length > 0 && (\n <Carousel items={cards} renderItem={card => <WhatsOnCard card={card} />} keyExtractor={card => card.id} autoplayDelay={5000} />\n )\n )}\n </MobileCarousel>\n <DownloadModal open={isDownloadModalOpen} onClose={closeDownloadModal} {...downloadModalProps} />\n </WhatsOnContainer>\n )\n})\n\nWhatsOn.displayName = 'WhatsOn'\n\nexport { WhatsOn }\n"],"names":["WhatsOnContainer","styled","Box","theme","SectionTitle","Typography","dclColors.neutral","JUMP_IN_HEIGHT","CardsGrid","MobileCarousel","CardWrapper","DCL_LOGO_URL","assetUrl","WhatsOnCard","memo","card","loading","onClickHandle","useTrackClick","profile","useGetProfileQuery","avatar","jsx","SectionViewedTrack","EventCard","jsxs","BadgeGroup","LiveBadge","UserCountBadge","LOADING_PLACEHOLDERS","WhatsOn","l","useFormatMessage","cards","isLoading","useGetWhatsOnDataQuery","isConnected","useWalletAddress","handleClick","isDownloadModalOpen","closeDownloadModal","downloadModalProps","useHangOutAction","handleCardClick","useCallback","e","cardElements","useMemo","i","AnimatedBackground","Carousel","DownloadModal"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index-U6w71K7Y.js","sources":["../../src/components/Home/WhatsOn/WhatsOn.styled.ts","../../src/components/Home/WhatsOn/WhatsOnCard.tsx","../../src/components/Home/WhatsOn/WhatsOn.tsx"],"sourcesContent":["import { Box, Typography, dclColors, styled } from 'decentraland-ui2'\n\nconst WhatsOnContainer = styled(Box)(({ theme }) => ({\n width: '100%',\n padding: theme.spacing(10, 8),\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: theme.spacing(6),\n position: 'relative',\n overflow: 'hidden',\n [theme.breakpoints.down('sm')]: {\n padding: theme.spacing(6, 2)\n }\n}))\n\nconst SectionTitle = styled(Typography)(({ theme }) => ({\n color: dclColors.neutral.white,\n fontWeight: 700,\n textAlign: 'center',\n position: 'relative',\n zIndex: 10,\n fontSize: 48,\n [theme.breakpoints.down('sm')]: {\n fontSize: 32\n }\n}))\n\nconst JUMP_IN_HEIGHT = 62\n\nconst CardsGrid = styled(Box)(({ theme }) => ({\n display: 'flex',\n gap: theme.spacing(3),\n justifyContent: 'center',\n width: '100%',\n position: 'relative',\n zIndex: 10,\n /* eslint-disable @typescript-eslint/naming-convention */\n '& > *': {\n flex: '1 1 0',\n minWidth: 0,\n maxWidth: 850,\n '&:only-child, &:first-child:nth-last-child(2), &:first-child:nth-last-child(2) ~ *': {\n minHeight: 427\n }\n },\n '& .MuiCard-root': {\n containerType: 'inline-size',\n overflow: 'hidden',\n height: 'min(62.5cqw + 130px, 427px)'\n },\n '& .MuiCardActionArea-root': {\n height: '100%'\n },\n '&& .MuiCardMedia-root': {\n height: 'min(62.5cqw, 297px)',\n transition: 'height 0.3s ease'\n },\n '&& .MuiCardActionArea-root:hover .MuiCardMedia-root': {\n height: `min(calc(62.5cqw - ${JUMP_IN_HEIGHT}px), ${297 - JUMP_IN_HEIGHT}px)`\n },\n // Expand avatar container so the \"by\" label is not truncated\n // (targets the inner Box wrapping the AvatarFace inside EventCard)\n '& .MuiCardContent-root .MuiBox-root .MuiBox-root:has(.MuiAvatar-root)': {\n maxWidth: '100%'\n },\n /* eslint-enable @typescript-eslint/naming-convention */\n [theme.breakpoints.down('sm')]: {\n display: 'none'\n }\n}))\n\nconst MobileCarousel = styled(Box)(({ theme }) => ({\n display: 'none',\n width: '100%',\n position: 'relative',\n zIndex: 10,\n [theme.breakpoints.down('sm')]: {\n display: 'block'\n }\n}))\n\nconst CardWrapper = styled('div')({\n borderRadius: 16,\n overflow: 'hidden',\n display: 'flex',\n flexDirection: 'column',\n // Override ui2's 0.4 opacity to 0.6\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '&& .MuiCardContent-root': {\n backgroundColor: 'rgba(0, 0, 0, 0.6)'\n },\n // Force card to respect container width on small screens\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '&& .MuiCard-root': {\n minWidth: 0,\n maxWidth: '100%'\n },\n /* eslint-disable @typescript-eslint/naming-convention */\n '&& .MuiTypography-h6': {\n display: 'block',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n WebkitLineClamp: 'unset',\n WebkitBoxOrient: 'unset'\n }\n /* eslint-enable @typescript-eslint/naming-convention */\n})\n\nexport { CardWrapper, CardsGrid, WhatsOnContainer, MobileCarousel, SectionTitle }\n","import { memo } from 'react'\nimport type { Avatar } from '@dcl/schemas'\nimport { BadgeGroup, EventCard, LiveBadge, UserCountBadge } from 'decentraland-ui2'\nimport type { ExploreItem } from '../../../features/events/events.types'\nimport { useGetProfileQuery } from '../../../features/profile/profile.client'\nimport { useTrackClick } from '../../../hooks/adapters/useTrackLinkContext'\nimport { SectionViewedTrack } from '../../../modules/segment'\nimport { assetUrl } from '../../../utils/assetUrl'\nimport { CardWrapper } from './WhatsOn.styled'\n\n// AvatarFace only passes through URLs starting with https://, otherwise it\n// prepends peer.decentraland.org. In prod assetUrl gives https://cdn..., in\n// dev we force https by replacing the protocol.\nconst DCL_LOGO_URL = assetUrl('/dcl-logo.svg').replace(/^http:\\/\\//, 'https://')\n\nconst WhatsOnCard = memo(({ card, loading }: { card?: ExploreItem; loading?: boolean }) => {\n const onClickHandle = useTrackClick()\n const { data: profile } = useGetProfileQuery(card?.creatorAddress, { skip: !card?.creatorAddress })\n const fetchedAvatar = profile?.avatars?.[0]\n\n let avatar: Avatar | undefined = fetchedAvatar as Avatar | undefined\n if (!avatar && card?.creatorName) {\n avatar = {\n name: card.creatorName,\n ethAddress: '',\n ...(card.isGenesisPlaza && {\n avatar: { snapshots: { face256: DCL_LOGO_URL, body: '' } }\n })\n } as Avatar\n }\n\n return (\n <CardWrapper data-place={SectionViewedTrack.LANDING_EXPLORE} data-event=\"click\" data-card={card?.title} onClick={onClickHandle}>\n <EventCard\n loading={loading}\n image={card?.image ?? ''}\n sceneName={card?.title ?? ''}\n avatar={avatar}\n coordinates={card?.coordinates}\n leftBadgeTransparent\n hideLocation\n leftBadge={\n card ? (\n <BadgeGroup>\n <LiveBadge />\n <UserCountBadge count={card.users} />\n </BadgeGroup>\n ) : undefined\n }\n />\n </CardWrapper>\n )\n})\n\nWhatsOnCard.displayName = 'WhatsOnCard'\n\nexport { WhatsOnCard }\n","import { memo, useCallback, useMemo } from 'react'\nimport { AnimatedBackground, DownloadModal } from 'decentraland-ui2'\nimport { useGetWhatsOnDataQuery } from '../../../features/events/events.client'\nimport { useFormatMessage } from '../../../hooks/adapters/useFormatMessage'\nimport { useHangOutAction } from '../../../hooks/useHangOutAction'\nimport { useWalletAddress } from '../../../hooks/useWalletAddress'\nimport { Carousel } from '../../Carousel/Carousel'\nimport { WhatsOnCard } from './WhatsOnCard'\nimport { CardsGrid, MobileCarousel, SectionTitle, WhatsOnContainer } from './WhatsOn.styled'\n\nconst LOADING_PLACEHOLDERS = [0, 1, 2]\n\nconst WhatsOn = memo(() => {\n const l = useFormatMessage()\n const { data: cards, isLoading } = useGetWhatsOnDataQuery()\n const { isConnected } = useWalletAddress()\n const { handleClick, isDownloadModalOpen, closeDownloadModal, downloadModalProps } = useHangOutAction()\n\n // Intercept card clicks when not signed in → show download modal instead\n const handleCardClick = useCallback(\n (e: React.MouseEvent) => {\n if (!isConnected) {\n e.preventDefault()\n e.stopPropagation()\n handleClick(e)\n }\n },\n [isConnected, handleClick]\n )\n\n if (!isLoading && cards.length === 0) return null\n\n const cardElements = useMemo(\n () =>\n isLoading\n ? LOADING_PLACEHOLDERS.map(i => <WhatsOnCard key={i} loading />)\n : cards.map(card => <WhatsOnCard key={card.id} card={card} />),\n [isLoading, cards]\n )\n\n return (\n <WhatsOnContainer>\n <AnimatedBackground variant=\"absolute\" />\n <SectionTitle variant=\"h3\">{l('page.home.whats_on.title')}</SectionTitle>\n <CardsGrid onClickCapture={handleCardClick}>{cardElements}</CardsGrid>\n <MobileCarousel onClickCapture={handleCardClick}>\n {isLoading ? (\n <WhatsOnCard loading />\n ) : (\n cards.length > 0 && (\n <Carousel items={cards} renderItem={card => <WhatsOnCard card={card} />} keyExtractor={card => card.id} autoplayDelay={5000} />\n )\n )}\n </MobileCarousel>\n <DownloadModal open={isDownloadModalOpen} onClose={closeDownloadModal} {...downloadModalProps} />\n </WhatsOnContainer>\n )\n})\n\nWhatsOn.displayName = 'WhatsOn'\n\nexport { WhatsOn }\n"],"names":["WhatsOnContainer","styled","Box","theme","SectionTitle","Typography","dclColors.neutral","JUMP_IN_HEIGHT","CardsGrid","MobileCarousel","CardWrapper","DCL_LOGO_URL","assetUrl","WhatsOnCard","memo","card","loading","onClickHandle","useTrackClick","profile","useGetProfileQuery","avatar","jsx","SectionViewedTrack","EventCard","jsxs","BadgeGroup","LiveBadge","UserCountBadge","LOADING_PLACEHOLDERS","WhatsOn","l","useFormatMessage","cards","isLoading","useGetWhatsOnDataQuery","isConnected","useWalletAddress","handleClick","isDownloadModalOpen","closeDownloadModal","downloadModalProps","useHangOutAction","handleCardClick","useCallback","e","cardElements","useMemo","i","AnimatedBackground","Carousel","DownloadModal"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./index-D9krZGYy.js";import{r as i}from"./vendor-router-D7SOoytt.js";import{L as a,S as o,a as n,P as t}from"./LegalPageLayout-DINPtlgk.js";import"./vendor-crypto-CXsBIwXr.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-DCdewyWN.js";import"./vendor-ua-D7qqAxdq.js";import"./vendor-intl-D2lXWsDp.js";const r=[{id:"definitions",label:"1. Definitions"},{id:"prohibited-content",label:"2. Prohibited Content"},{id:"gambling",label:"3. Gambling"},{id:"breaches-of-this-policy",label:"4. Breaches of this Policy"},{id:"age-restricted-content",label:"5. Age-Restricted Content"},{id:"user-representations-and-warranties",label:"6. User Representations and Warranties"},{id:"storage",label:"7. Storage"},{id:"limitations-to-liability",label:"8. Limitations to Liability"},{id:"changes-to-this-policy",label:"9. Changes to this Policy"}],s=i.memo(()=>e.jsxs(a,{title:"Content Policy",activeSlug:"/content",tableOfContents:r,children:[e.jsxs(o,{id:"definitions",children:[e.jsx(n,{children:"1. Definitions"}),e.jsx(t,{children:'"Content" shall mean any work of authorship, creative works, graphics, images, textures, photos, logos, video, audio, text and interactive features, including without limitation NFTs, submitted by the Users of Decentraland.'}),e.jsx(t,{children:`"Intellectual Property Rights" shall mean rights in, arising out of, or associated with intellectual property in any jurisdiction, including without limitation rights in or arising out of, or associated with (1) copyrights, mask work rights... (2) patents... (3) trademarks... (4) trade secrets... (5) a person's name, voice... (6) attribution and integrity... (7) internet domain names; (8) data and databases; and (9) similar proprietary rights arising under the laws of any jurisdiction`}),e.jsx(t,{children:'"NFT" means non-fungible token, including, LAND, Wearables and any other kind of NFTs available in Decentraland. All NFTs must comply with this Content Policy in accordance with section 12.4 of the Terms of Use.'})]}),e.jsxs(o,{id:"prohibited-content",children:[e.jsx(n,{children:"2. Prohibited Content"}),e.jsx(t,{children:"All Content uploaded, posted, created, displayed, transmitted or made available by the User through the Tools must not include:"}),e.jsx(t,{children:"2.1. Content involving illegality, such as piracy, criminal activity, terrorism, obscenity, child pornography, gambling (subject to Section 3 below), and illegal drug use."}),e.jsx(t,{children:"2.2. Content infringing third party Intellectual Property Rights."}),e.jsx(t,{children:"2.3. Cruel or hateful Content that could harm, harass, promote or condone violence against, or that is primarily intended to incite hatred of, animals, or individuals or groups based on race or ethnic origin, religion, nationality, disability, gender, age, veteran status, or sexual orientation/gender identity."}),e.jsx(t,{children:"2.4. Content that is libelous, false, inaccurate, misleading, or invades another person's privacy."}),e.jsx(t,{children:"2.5. Content that breaches the Privacy Policy or applicable data privacy laws."}),e.jsx(t,{children:"2.6. Content that promotes or could be construed as primarily intended to evade the limitations above."})]}),e.jsxs(o,{id:"gambling",children:[e.jsx(n,{children:"3. Gambling"}),e.jsx(t,{children:"If your Content involves gambling, the following shall apply: (i) if you reside in a jurisdiction which requires a license for online gambling, you must obtain such license prior to making your Content available; (ii) you must be in full compliance with the regulations of your country of residence; (iii) you must geo-block your Content for IPs from jurisdictions where online gambling is banned (including, without limitation, the United States of America, South Korea and China) and (iv) you must include in the terms and conditions of use of your Content (if any) a release from liability in favor of the Foundation and the DAO to the fullest extent allowed by applicable law vis a vis you and the users of your Content."})]}),e.jsxs(o,{id:"breaches-of-this-policy",children:[e.jsx(n,{children:"4. Breaches of this Policy"}),e.jsx(t,{children:"Any Content in infringement of Section 2, may be blocked and upon blocking shall not be available to other users of the Tools. Moreover, infringing Content may result in suspension of the Account, court orders, civil actions, injunctions, criminal prosecutions and other legal consequences brought by the Foundation, the DAO or third parties against the creator, distributor and/or user of said infringing Content. The User's Account may also be terminated in accordance with Section 15 of the Terms of Use."})]}),e.jsxs(o,{id:"age-restricted-content",children:[e.jsx(n,{children:"5. Age-Restricted Content"}),e.jsx(t,{children:"Any Content which qualifies as (i) intensely violent or graphic, (ii) gambling or (ii) sexually explicit, shall only be available to people aged 18 or older. If you upload, post, create, display, transmit or make available such Content on the Tools, you must provide sufficient warning as to this restriction. Failure to do so may result in termination of your Account pursuant to Section 15 of the Terms."})]}),e.jsxs(o,{id:"user-representations-and-warranties",children:[e.jsx(n,{children:"6. User Representations and Warranties"}),e.jsx(t,{children:"You represent and warrant that at any time you submit Content, you are at least the age of majority in the jurisdiction in which you reside and are the parent or legal guardian, or have all proper consents from the parent or legal guardian, of any minor who is depicted in or contributed to any Content you submit, and that, as to that Content, (a) you are the sole author and owner of the Intellectual Property Rights to such Content, or you have a lawful right to submit the Content, all without any obligation to obtain consent of any third party and without creating any obligation or liability for the Foundation; (b) the Content is accurate; (c) the Content does not and will not infringe any Intellectual Property Right of any third party; and (d) the User Content will not violate the Terms or this Content Policy, or cause injury or harm to any person."}),e.jsx(t,{children:"You expressly acknowledge and accept that the Content you submit will be accessible to and viewable by other users and waive any claim with regards to the Foundation, its directors, officers, employees and affiliates in connection with said third party access. You can withdraw your Content at any time you wish."}),e.jsx(t,{children:"Please remember that the Content that you submit will be accessible to and viewable by other users. Except as may be required to register and/or maintain your Account, do not submit personally identifiable information (e.g. first and last name together, password, phone number, address, credit or debit card number, medical information, e-mail address, or other contact information) on the Tools."}),e.jsx(t,{children:"By submitting, posting or displaying content, and or through Decentraland and/or the Marketplace, you grant us a worldwide, non-exclusive, royalty-free perpetual, irrevocable, transferable right and license (with the right to sublicense) to use, copy, reproduce, process, adapt, modify, publish, transmit, display, develop, improve, distribute such Content, promote Decentraland, activities, Events, in any and all media or distribution methods (now known or later developed). You further grant Decentraland, the DAO and/or the Foundation, the right to use your name and trademarks, if any, in connection with our use of your Content available at the Platform and/or the Marketplace, from time to time."})]}),e.jsxs(o,{id:"storage",children:[e.jsx(n,{children:"7. Storage"}),e.jsx(t,{children:'You acknowledge that due to the decentralized nature of Decentraland and of the blockchain technology, all Content and information submitted by you is not stored in a centralized server, but in several decentralized nodes (the "Nodes"). Thus, the Foundation or the DAO are not liable for any loss of content or information.'}),e.jsx(t,{children:"The Nodes recognize and accept that in the event of any court order relating to the blocking, suspension or deletion of any Content, they will abide by any such court order."})]}),e.jsxs(o,{id:"limitations-to-liability",children:[e.jsx(n,{children:"8. Limitations to Liability"}),e.jsx(t,{children:"The Foundation, its officers, employees, and the DAO are not responsible or liable for the Content, conduct, or services of users or third parties. The Foundation, its officers, employees and the DAO do not control or endorse the Content of communications between users or users' interactions with each other or the Tools."}),e.jsx(t,{children:"You acknowledge that you will be exposed to various aspects of the Tools involving the conduct, Content, and services of users, and that the Foundation does not control and is not responsible or liable for the quality, safety, legality, truthfulness or accuracy of any such user conduct, Content or user services. You acknowledge that the Foundation does not guarantee the accuracy of information submitted by any user of the Tools, nor any identity information about any user. Your interactions with other users and your use of Content are entirely at your own risk. The Foundation has no obligation to become involved in any dispute that you may have or claim to have with one or more users of the Tools, or in any manner in any resolution thereof."}),e.jsx(t,{children:"THE TOOLS MAY CONTAIN LINKS TO OR OTHERWISE ALLOW CONNECTIONS TO THIRD-PARTY WEBSITES, SERVERS, AND ONLINE SERVICES OR ENVIRONMENTS THAT ARE NOT OWNED OR CONTROLLED BY THE FOUNDATION. THE FOUNDATION, ITS OFFICERS, EMPLOYEES AND THE DAO ARE NOT RESPONSIBLE OR LIABLE FOR THE CONTENT, POLICIES OR PRACTICES OF ANY THIRD-PARTY WEBSITES, SERVERS OR ONLINE SERVICES OR ENVIRONMENTS. Please consult any applicable terms of use and privacy policies provided by the third party for such websites, servers or online services or environments."}),e.jsx(t,{children:'You acknowledge that the Content of the Tools is provided or made available to you under license from independent Content Providers, including other users of the Tools ("Content Providers"). You acknowledge and agree that except as expressly provided in this Agreement, the Intellectual Property Rights of other Content Providers in their respective Content are not licensed to you by your mere use of the Tools. You must obtain from the applicable Content Providers any necessary license rights in Content that you desire to use or access.'}),e.jsx(t,{children:"You copy and use Content at your own risk. You are solely responsible and liable for your use, reproduction, distribution, modification, display, or performance of any Content in violation of any Intellectual Property Rights. You agree that the Foundation will have no liability for, and you agree to defend, indemnify, and hold the Foundation harmless from, any claims, losses or damages arising out of or in connection with your use, reproduction, distribution, modification, display, or performance of any Content."})]}),e.jsxs(o,{id:"changes-to-this-policy",children:[e.jsx(n,{children:"9. Changes to this Policy"}),e.jsx(t,{children:"The DAO may change this Content Policy from time to time. All users have the obligation to be aware of the updated versions of this Policy."}),e.jsx(t,{children:e.jsx("a",{href:"https://governance.decentraland.org/proposal/?id=7e3f57c0-e0f2-11eb-a20f-d75df7f87ed8",target:"_blank",rel:"noopener noreferrer",children:"Approved by the DAO on Jul 16, 2021"})})]})]}));s.displayName="ContentPolicy";export{s as ContentPolicy};
|
|
1
|
+
import{j as e}from"./index-BWvXRlTE.js";import{r as i}from"./vendor-router-D7SOoytt.js";import{L as a,S as o,a as n,P as t}from"./LegalPageLayout-S2fzAMXj.js";import"./vendor-crypto-CXsBIwXr.js";import"./vendor-schemas-DJzTSxpO.js";import"./vendor-sentry-DCdewyWN.js";import"./vendor-ua-D7qqAxdq.js";import"./vendor-intl-D2lXWsDp.js";const r=[{id:"definitions",label:"1. Definitions"},{id:"prohibited-content",label:"2. Prohibited Content"},{id:"gambling",label:"3. Gambling"},{id:"breaches-of-this-policy",label:"4. Breaches of this Policy"},{id:"age-restricted-content",label:"5. Age-Restricted Content"},{id:"user-representations-and-warranties",label:"6. User Representations and Warranties"},{id:"storage",label:"7. Storage"},{id:"limitations-to-liability",label:"8. Limitations to Liability"},{id:"changes-to-this-policy",label:"9. Changes to this Policy"}],s=i.memo(()=>e.jsxs(a,{title:"Content Policy",activeSlug:"/content",tableOfContents:r,children:[e.jsxs(o,{id:"definitions",children:[e.jsx(n,{children:"1. Definitions"}),e.jsx(t,{children:'"Content" shall mean any work of authorship, creative works, graphics, images, textures, photos, logos, video, audio, text and interactive features, including without limitation NFTs, submitted by the Users of Decentraland.'}),e.jsx(t,{children:`"Intellectual Property Rights" shall mean rights in, arising out of, or associated with intellectual property in any jurisdiction, including without limitation rights in or arising out of, or associated with (1) copyrights, mask work rights... (2) patents... (3) trademarks... (4) trade secrets... (5) a person's name, voice... (6) attribution and integrity... (7) internet domain names; (8) data and databases; and (9) similar proprietary rights arising under the laws of any jurisdiction`}),e.jsx(t,{children:'"NFT" means non-fungible token, including, LAND, Wearables and any other kind of NFTs available in Decentraland. All NFTs must comply with this Content Policy in accordance with section 12.4 of the Terms of Use.'})]}),e.jsxs(o,{id:"prohibited-content",children:[e.jsx(n,{children:"2. Prohibited Content"}),e.jsx(t,{children:"All Content uploaded, posted, created, displayed, transmitted or made available by the User through the Tools must not include:"}),e.jsx(t,{children:"2.1. Content involving illegality, such as piracy, criminal activity, terrorism, obscenity, child pornography, gambling (subject to Section 3 below), and illegal drug use."}),e.jsx(t,{children:"2.2. Content infringing third party Intellectual Property Rights."}),e.jsx(t,{children:"2.3. Cruel or hateful Content that could harm, harass, promote or condone violence against, or that is primarily intended to incite hatred of, animals, or individuals or groups based on race or ethnic origin, religion, nationality, disability, gender, age, veteran status, or sexual orientation/gender identity."}),e.jsx(t,{children:"2.4. Content that is libelous, false, inaccurate, misleading, or invades another person's privacy."}),e.jsx(t,{children:"2.5. Content that breaches the Privacy Policy or applicable data privacy laws."}),e.jsx(t,{children:"2.6. Content that promotes or could be construed as primarily intended to evade the limitations above."})]}),e.jsxs(o,{id:"gambling",children:[e.jsx(n,{children:"3. Gambling"}),e.jsx(t,{children:"If your Content involves gambling, the following shall apply: (i) if you reside in a jurisdiction which requires a license for online gambling, you must obtain such license prior to making your Content available; (ii) you must be in full compliance with the regulations of your country of residence; (iii) you must geo-block your Content for IPs from jurisdictions where online gambling is banned (including, without limitation, the United States of America, South Korea and China) and (iv) you must include in the terms and conditions of use of your Content (if any) a release from liability in favor of the Foundation and the DAO to the fullest extent allowed by applicable law vis a vis you and the users of your Content."})]}),e.jsxs(o,{id:"breaches-of-this-policy",children:[e.jsx(n,{children:"4. Breaches of this Policy"}),e.jsx(t,{children:"Any Content in infringement of Section 2, may be blocked and upon blocking shall not be available to other users of the Tools. Moreover, infringing Content may result in suspension of the Account, court orders, civil actions, injunctions, criminal prosecutions and other legal consequences brought by the Foundation, the DAO or third parties against the creator, distributor and/or user of said infringing Content. The User's Account may also be terminated in accordance with Section 15 of the Terms of Use."})]}),e.jsxs(o,{id:"age-restricted-content",children:[e.jsx(n,{children:"5. Age-Restricted Content"}),e.jsx(t,{children:"Any Content which qualifies as (i) intensely violent or graphic, (ii) gambling or (ii) sexually explicit, shall only be available to people aged 18 or older. If you upload, post, create, display, transmit or make available such Content on the Tools, you must provide sufficient warning as to this restriction. Failure to do so may result in termination of your Account pursuant to Section 15 of the Terms."})]}),e.jsxs(o,{id:"user-representations-and-warranties",children:[e.jsx(n,{children:"6. User Representations and Warranties"}),e.jsx(t,{children:"You represent and warrant that at any time you submit Content, you are at least the age of majority in the jurisdiction in which you reside and are the parent or legal guardian, or have all proper consents from the parent or legal guardian, of any minor who is depicted in or contributed to any Content you submit, and that, as to that Content, (a) you are the sole author and owner of the Intellectual Property Rights to such Content, or you have a lawful right to submit the Content, all without any obligation to obtain consent of any third party and without creating any obligation or liability for the Foundation; (b) the Content is accurate; (c) the Content does not and will not infringe any Intellectual Property Right of any third party; and (d) the User Content will not violate the Terms or this Content Policy, or cause injury or harm to any person."}),e.jsx(t,{children:"You expressly acknowledge and accept that the Content you submit will be accessible to and viewable by other users and waive any claim with regards to the Foundation, its directors, officers, employees and affiliates in connection with said third party access. You can withdraw your Content at any time you wish."}),e.jsx(t,{children:"Please remember that the Content that you submit will be accessible to and viewable by other users. Except as may be required to register and/or maintain your Account, do not submit personally identifiable information (e.g. first and last name together, password, phone number, address, credit or debit card number, medical information, e-mail address, or other contact information) on the Tools."}),e.jsx(t,{children:"By submitting, posting or displaying content, and or through Decentraland and/or the Marketplace, you grant us a worldwide, non-exclusive, royalty-free perpetual, irrevocable, transferable right and license (with the right to sublicense) to use, copy, reproduce, process, adapt, modify, publish, transmit, display, develop, improve, distribute such Content, promote Decentraland, activities, Events, in any and all media or distribution methods (now known or later developed). You further grant Decentraland, the DAO and/or the Foundation, the right to use your name and trademarks, if any, in connection with our use of your Content available at the Platform and/or the Marketplace, from time to time."})]}),e.jsxs(o,{id:"storage",children:[e.jsx(n,{children:"7. Storage"}),e.jsx(t,{children:'You acknowledge that due to the decentralized nature of Decentraland and of the blockchain technology, all Content and information submitted by you is not stored in a centralized server, but in several decentralized nodes (the "Nodes"). Thus, the Foundation or the DAO are not liable for any loss of content or information.'}),e.jsx(t,{children:"The Nodes recognize and accept that in the event of any court order relating to the blocking, suspension or deletion of any Content, they will abide by any such court order."})]}),e.jsxs(o,{id:"limitations-to-liability",children:[e.jsx(n,{children:"8. Limitations to Liability"}),e.jsx(t,{children:"The Foundation, its officers, employees, and the DAO are not responsible or liable for the Content, conduct, or services of users or third parties. The Foundation, its officers, employees and the DAO do not control or endorse the Content of communications between users or users' interactions with each other or the Tools."}),e.jsx(t,{children:"You acknowledge that you will be exposed to various aspects of the Tools involving the conduct, Content, and services of users, and that the Foundation does not control and is not responsible or liable for the quality, safety, legality, truthfulness or accuracy of any such user conduct, Content or user services. You acknowledge that the Foundation does not guarantee the accuracy of information submitted by any user of the Tools, nor any identity information about any user. Your interactions with other users and your use of Content are entirely at your own risk. The Foundation has no obligation to become involved in any dispute that you may have or claim to have with one or more users of the Tools, or in any manner in any resolution thereof."}),e.jsx(t,{children:"THE TOOLS MAY CONTAIN LINKS TO OR OTHERWISE ALLOW CONNECTIONS TO THIRD-PARTY WEBSITES, SERVERS, AND ONLINE SERVICES OR ENVIRONMENTS THAT ARE NOT OWNED OR CONTROLLED BY THE FOUNDATION. THE FOUNDATION, ITS OFFICERS, EMPLOYEES AND THE DAO ARE NOT RESPONSIBLE OR LIABLE FOR THE CONTENT, POLICIES OR PRACTICES OF ANY THIRD-PARTY WEBSITES, SERVERS OR ONLINE SERVICES OR ENVIRONMENTS. Please consult any applicable terms of use and privacy policies provided by the third party for such websites, servers or online services or environments."}),e.jsx(t,{children:'You acknowledge that the Content of the Tools is provided or made available to you under license from independent Content Providers, including other users of the Tools ("Content Providers"). You acknowledge and agree that except as expressly provided in this Agreement, the Intellectual Property Rights of other Content Providers in their respective Content are not licensed to you by your mere use of the Tools. You must obtain from the applicable Content Providers any necessary license rights in Content that you desire to use or access.'}),e.jsx(t,{children:"You copy and use Content at your own risk. You are solely responsible and liable for your use, reproduction, distribution, modification, display, or performance of any Content in violation of any Intellectual Property Rights. You agree that the Foundation will have no liability for, and you agree to defend, indemnify, and hold the Foundation harmless from, any claims, losses or damages arising out of or in connection with your use, reproduction, distribution, modification, display, or performance of any Content."})]}),e.jsxs(o,{id:"changes-to-this-policy",children:[e.jsx(n,{children:"9. Changes to this Policy"}),e.jsx(t,{children:"The DAO may change this Content Policy from time to time. All users have the obligation to be aware of the updated versions of this Policy."}),e.jsx(t,{children:e.jsx("a",{href:"https://governance.decentraland.org/proposal/?id=7e3f57c0-e0f2-11eb-a20f-d75df7f87ed8",target:"_blank",rel:"noopener noreferrer",children:"Approved by the DAO on Jul 16, 2021"})})]})]}));s.displayName="ContentPolicy";export{s as ContentPolicy};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-BM3mFwuT.js","sources":["../../src/pages/content/ContentPolicy.tsx"],"sourcesContent":["import { memo } from 'react'\nimport { LegalPageLayout, Paragraph, Section, SectionTitle } from '../../components/LegalPage'\nimport type { TOCEntry } from '../../components/LegalPage'\n\nconst TABLE_OF_CONTENTS: TOCEntry[] = [\n { id: 'definitions', label: '1. Definitions' },\n { id: 'prohibited-content', label: '2. Prohibited Content' },\n { id: 'gambling', label: '3. Gambling' },\n { id: 'breaches-of-this-policy', label: '4. Breaches of this Policy' },\n { id: 'age-restricted-content', label: '5. Age-Restricted Content' },\n { id: 'user-representations-and-warranties', label: '6. User Representations and Warranties' },\n { id: 'storage', label: '7. Storage' },\n { id: 'limitations-to-liability', label: '8. Limitations to Liability' },\n { id: 'changes-to-this-policy', label: '9. Changes to this Policy' }\n]\n\nconst ContentPolicy = memo(() => (\n <LegalPageLayout title=\"Content Policy\" activeSlug=\"/content\" tableOfContents={TABLE_OF_CONTENTS}>\n <Section id=\"definitions\">\n <SectionTitle>1. Definitions</SectionTitle>\n <Paragraph>\n "Content" shall mean any work of authorship, creative works, graphics, images, textures, photos, logos, video, audio, text\n and interactive features, including without limitation NFTs, submitted by the Users of Decentraland.\n </Paragraph>\n <Paragraph>\n "Intellectual Property Rights" shall mean rights in, arising out of, or associated with intellectual property in any\n jurisdiction, including without limitation rights in or arising out of, or associated with (1) copyrights, mask work rights... (2)\n patents... (3) trademarks... (4) trade secrets... (5) a person's name, voice... (6) attribution and integrity... (7) internet\n domain names; (8) data and databases; and (9) similar proprietary rights arising under the laws of any jurisdiction\n </Paragraph>\n <Paragraph>\n "NFT" means non-fungible token, including, LAND, Wearables and any other kind of NFTs available in Decentraland. All NFTs\n must comply with this Content Policy in accordance with section 12.4 of the Terms of Use.\n </Paragraph>\n </Section>\n\n <Section id=\"prohibited-content\">\n <SectionTitle>2. Prohibited Content</SectionTitle>\n <Paragraph>\n All Content uploaded, posted, created, displayed, transmitted or made available by the User through the Tools must not include:\n </Paragraph>\n <Paragraph>\n 2.1. Content involving illegality, such as piracy, criminal activity, terrorism, obscenity, child pornography, gambling (subject to\n Section 3 below), and illegal drug use.\n </Paragraph>\n <Paragraph>2.2. Content infringing third party Intellectual Property Rights.</Paragraph>\n <Paragraph>\n 2.3. Cruel or hateful Content that could harm, harass, promote or condone violence against, or that is primarily intended to incite\n hatred of, animals, or individuals or groups based on race or ethnic origin, religion, nationality, disability, gender, age, veteran\n status, or sexual orientation/gender identity.\n </Paragraph>\n <Paragraph>2.4. Content that is libelous, false, inaccurate, misleading, or invades another person's privacy.</Paragraph>\n <Paragraph>2.5. Content that breaches the Privacy Policy or applicable data privacy laws.</Paragraph>\n <Paragraph>2.6. Content that promotes or could be construed as primarily intended to evade the limitations above.</Paragraph>\n </Section>\n\n <Section id=\"gambling\">\n <SectionTitle>3. Gambling</SectionTitle>\n <Paragraph>\n If your Content involves gambling, the following shall apply: (i) if you reside in a jurisdiction which requires a license for\n online gambling, you must obtain such license prior to making your Content available; (ii) you must be in full compliance with the\n regulations of your country of residence; (iii) you must geo-block your Content for IPs from jurisdictions where online gambling is\n banned (including, without limitation, the United States of America, South Korea and China) and (iv) you must include in the terms\n and conditions of use of your Content (if any) a release from liability in favor of the Foundation and the DAO to the fullest extent\n allowed by applicable law vis a vis you and the users of your Content.\n </Paragraph>\n </Section>\n\n <Section id=\"breaches-of-this-policy\">\n <SectionTitle>4. Breaches of this Policy</SectionTitle>\n <Paragraph>\n Any Content in infringement of Section 2, may be blocked and upon blocking shall not be available to other users of the Tools.\n Moreover, infringing Content may result in suspension of the Account, court orders, civil actions, injunctions, criminal\n prosecutions and other legal consequences brought by the Foundation, the DAO or third parties against the creator, distributor\n and/or user of said infringing Content. The User's Account may also be terminated in accordance with Section 15 of the Terms of\n Use.\n </Paragraph>\n </Section>\n\n <Section id=\"age-restricted-content\">\n <SectionTitle>5. Age-Restricted Content</SectionTitle>\n <Paragraph>\n Any Content which qualifies as (i) intensely violent or graphic, (ii) gambling or (ii) sexually explicit, shall only be available to\n people aged 18 or older. If you upload, post, create, display, transmit or make available such Content on the Tools, you must\n provide sufficient warning as to this restriction. Failure to do so may result in termination of your Account pursuant to Section 15\n of the Terms.\n </Paragraph>\n </Section>\n\n <Section id=\"user-representations-and-warranties\">\n <SectionTitle>6. User Representations and Warranties</SectionTitle>\n <Paragraph>\n You represent and warrant that at any time you submit Content, you are at least the age of majority in the jurisdiction in which you\n reside and are the parent or legal guardian, or have all proper consents from the parent or legal guardian, of any minor who is\n depicted in or contributed to any Content you submit, and that, as to that Content, (a) you are the sole author and owner of the\n Intellectual Property Rights to such Content, or you have a lawful right to submit the Content, all without any obligation to obtain\n consent of any third party and without creating any obligation or liability for the Foundation; (b) the Content is accurate; (c) the\n Content does not and will not infringe any Intellectual Property Right of any third party; and (d) the User Content will not violate\n the Terms or this Content Policy, or cause injury or harm to any person.\n </Paragraph>\n <Paragraph>\n You expressly acknowledge and accept that the Content you submit will be accessible to and viewable by other users and waive any\n claim with regards to the Foundation, its directors, officers, employees and affiliates in connection with said third party access.\n You can withdraw your Content at any time you wish.\n </Paragraph>\n <Paragraph>\n Please remember that the Content that you submit will be accessible to and viewable by other users. Except as may be required to\n register and/or maintain your Account, do not submit personally identifiable information (e.g. first and last name together,\n password, phone number, address, credit or debit card number, medical information, e-mail address, or other contact information) on\n the Tools.\n </Paragraph>\n <Paragraph>\n By submitting, posting or displaying content, and or through Decentraland and/or the Marketplace, you grant us a worldwide,\n non-exclusive, royalty-free perpetual, irrevocable, transferable right and license (with the right to sublicense) to use, copy,\n reproduce, process, adapt, modify, publish, transmit, display, develop, improve, distribute such Content, promote Decentraland,\n activities, Events, in any and all media or distribution methods (now known or later developed). You further grant Decentraland, the\n DAO and/or the Foundation, the right to use your name and trademarks, if any, in connection with our use of your Content available\n at the Platform and/or the Marketplace, from time to time.\n </Paragraph>\n </Section>\n\n <Section id=\"storage\">\n <SectionTitle>7. Storage</SectionTitle>\n <Paragraph>\n You acknowledge that due to the decentralized nature of Decentraland and of the blockchain technology, all Content and information\n submitted by you is not stored in a centralized server, but in several decentralized nodes (the "Nodes"). Thus, the\n Foundation or the DAO are not liable for any loss of content or information.\n </Paragraph>\n <Paragraph>\n The Nodes recognize and accept that in the event of any court order relating to the blocking, suspension or deletion of any Content,\n they will abide by any such court order.\n </Paragraph>\n </Section>\n\n <Section id=\"limitations-to-liability\">\n <SectionTitle>8. Limitations to Liability</SectionTitle>\n <Paragraph>\n The Foundation, its officers, employees, and the DAO are not responsible or liable for the Content, conduct, or services of users or\n third parties. The Foundation, its officers, employees and the DAO do not control or endorse the Content of communications between\n users or users' interactions with each other or the Tools.\n </Paragraph>\n <Paragraph>\n You acknowledge that you will be exposed to various aspects of the Tools involving the conduct, Content, and services of users, and\n that the Foundation does not control and is not responsible or liable for the quality, safety, legality, truthfulness or accuracy of\n any such user conduct, Content or user services. You acknowledge that the Foundation does not guarantee the accuracy of information\n submitted by any user of the Tools, nor any identity information about any user. Your interactions with other users and your use of\n Content are entirely at your own risk. The Foundation has no obligation to become involved in any dispute that you may have or claim\n to have with one or more users of the Tools, or in any manner in any resolution thereof.\n </Paragraph>\n <Paragraph>\n THE TOOLS MAY CONTAIN LINKS TO OR OTHERWISE ALLOW CONNECTIONS TO THIRD-PARTY WEBSITES, SERVERS, AND ONLINE SERVICES OR ENVIRONMENTS\n THAT ARE NOT OWNED OR CONTROLLED BY THE FOUNDATION. THE FOUNDATION, ITS OFFICERS, EMPLOYEES AND THE DAO ARE NOT RESPONSIBLE OR\n LIABLE FOR THE CONTENT, POLICIES OR PRACTICES OF ANY THIRD-PARTY WEBSITES, SERVERS OR ONLINE SERVICES OR ENVIRONMENTS. Please\n consult any applicable terms of use and privacy policies provided by the third party for such websites, servers or online services\n or environments.\n </Paragraph>\n <Paragraph>\n You acknowledge that the Content of the Tools is provided or made available to you under license from independent Content Providers,\n including other users of the Tools ("Content Providers"). You acknowledge and agree that except as expressly provided in\n this Agreement, the Intellectual Property Rights of other Content Providers in their respective Content are not licensed to you by\n your mere use of the Tools. You must obtain from the applicable Content Providers any necessary license rights in Content that you\n desire to use or access.\n </Paragraph>\n <Paragraph>\n You copy and use Content at your own risk. You are solely responsible and liable for your use, reproduction, distribution,\n modification, display, or performance of any Content in violation of any Intellectual Property Rights. You agree that the Foundation\n will have no liability for, and you agree to defend, indemnify, and hold the Foundation harmless from, any claims, losses or damages\n arising out of or in connection with your use, reproduction, distribution, modification, display, or performance of any Content.\n </Paragraph>\n </Section>\n\n <Section id=\"changes-to-this-policy\">\n <SectionTitle>9. Changes to this Policy</SectionTitle>\n <Paragraph>\n The DAO may change this Content Policy from time to time. All users have the obligation to be aware of the updated versions of this\n Policy.\n </Paragraph>\n <Paragraph>\n <a\n href=\"https://governance.decentraland.org/proposal/?id=7e3f57c0-e0f2-11eb-a20f-d75df7f87ed8\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n Approved by the DAO on Jul 16, 2021\n </a>\n </Paragraph>\n </Section>\n </LegalPageLayout>\n))\n\nContentPolicy.displayName = 'ContentPolicy'\n\nexport { ContentPolicy }\n"],"names":["TABLE_OF_CONTENTS","ContentPolicy","memo","jsxs","LegalPageLayout","Section","jsx","SectionTitle","Paragraph"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index-mJ6v7MBb.js","sources":["../../src/pages/content/ContentPolicy.tsx"],"sourcesContent":["import { memo } from 'react'\nimport { LegalPageLayout, Paragraph, Section, SectionTitle } from '../../components/LegalPage'\nimport type { TOCEntry } from '../../components/LegalPage'\n\nconst TABLE_OF_CONTENTS: TOCEntry[] = [\n { id: 'definitions', label: '1. Definitions' },\n { id: 'prohibited-content', label: '2. Prohibited Content' },\n { id: 'gambling', label: '3. Gambling' },\n { id: 'breaches-of-this-policy', label: '4. Breaches of this Policy' },\n { id: 'age-restricted-content', label: '5. Age-Restricted Content' },\n { id: 'user-representations-and-warranties', label: '6. User Representations and Warranties' },\n { id: 'storage', label: '7. Storage' },\n { id: 'limitations-to-liability', label: '8. Limitations to Liability' },\n { id: 'changes-to-this-policy', label: '9. Changes to this Policy' }\n]\n\nconst ContentPolicy = memo(() => (\n <LegalPageLayout title=\"Content Policy\" activeSlug=\"/content\" tableOfContents={TABLE_OF_CONTENTS}>\n <Section id=\"definitions\">\n <SectionTitle>1. Definitions</SectionTitle>\n <Paragraph>\n "Content" shall mean any work of authorship, creative works, graphics, images, textures, photos, logos, video, audio, text\n and interactive features, including without limitation NFTs, submitted by the Users of Decentraland.\n </Paragraph>\n <Paragraph>\n "Intellectual Property Rights" shall mean rights in, arising out of, or associated with intellectual property in any\n jurisdiction, including without limitation rights in or arising out of, or associated with (1) copyrights, mask work rights... (2)\n patents... (3) trademarks... (4) trade secrets... (5) a person's name, voice... (6) attribution and integrity... (7) internet\n domain names; (8) data and databases; and (9) similar proprietary rights arising under the laws of any jurisdiction\n </Paragraph>\n <Paragraph>\n "NFT" means non-fungible token, including, LAND, Wearables and any other kind of NFTs available in Decentraland. All NFTs\n must comply with this Content Policy in accordance with section 12.4 of the Terms of Use.\n </Paragraph>\n </Section>\n\n <Section id=\"prohibited-content\">\n <SectionTitle>2. Prohibited Content</SectionTitle>\n <Paragraph>\n All Content uploaded, posted, created, displayed, transmitted or made available by the User through the Tools must not include:\n </Paragraph>\n <Paragraph>\n 2.1. Content involving illegality, such as piracy, criminal activity, terrorism, obscenity, child pornography, gambling (subject to\n Section 3 below), and illegal drug use.\n </Paragraph>\n <Paragraph>2.2. Content infringing third party Intellectual Property Rights.</Paragraph>\n <Paragraph>\n 2.3. Cruel or hateful Content that could harm, harass, promote or condone violence against, or that is primarily intended to incite\n hatred of, animals, or individuals or groups based on race or ethnic origin, religion, nationality, disability, gender, age, veteran\n status, or sexual orientation/gender identity.\n </Paragraph>\n <Paragraph>2.4. Content that is libelous, false, inaccurate, misleading, or invades another person's privacy.</Paragraph>\n <Paragraph>2.5. Content that breaches the Privacy Policy or applicable data privacy laws.</Paragraph>\n <Paragraph>2.6. Content that promotes or could be construed as primarily intended to evade the limitations above.</Paragraph>\n </Section>\n\n <Section id=\"gambling\">\n <SectionTitle>3. Gambling</SectionTitle>\n <Paragraph>\n If your Content involves gambling, the following shall apply: (i) if you reside in a jurisdiction which requires a license for\n online gambling, you must obtain such license prior to making your Content available; (ii) you must be in full compliance with the\n regulations of your country of residence; (iii) you must geo-block your Content for IPs from jurisdictions where online gambling is\n banned (including, without limitation, the United States of America, South Korea and China) and (iv) you must include in the terms\n and conditions of use of your Content (if any) a release from liability in favor of the Foundation and the DAO to the fullest extent\n allowed by applicable law vis a vis you and the users of your Content.\n </Paragraph>\n </Section>\n\n <Section id=\"breaches-of-this-policy\">\n <SectionTitle>4. Breaches of this Policy</SectionTitle>\n <Paragraph>\n Any Content in infringement of Section 2, may be blocked and upon blocking shall not be available to other users of the Tools.\n Moreover, infringing Content may result in suspension of the Account, court orders, civil actions, injunctions, criminal\n prosecutions and other legal consequences brought by the Foundation, the DAO or third parties against the creator, distributor\n and/or user of said infringing Content. The User's Account may also be terminated in accordance with Section 15 of the Terms of\n Use.\n </Paragraph>\n </Section>\n\n <Section id=\"age-restricted-content\">\n <SectionTitle>5. Age-Restricted Content</SectionTitle>\n <Paragraph>\n Any Content which qualifies as (i) intensely violent or graphic, (ii) gambling or (ii) sexually explicit, shall only be available to\n people aged 18 or older. If you upload, post, create, display, transmit or make available such Content on the Tools, you must\n provide sufficient warning as to this restriction. Failure to do so may result in termination of your Account pursuant to Section 15\n of the Terms.\n </Paragraph>\n </Section>\n\n <Section id=\"user-representations-and-warranties\">\n <SectionTitle>6. User Representations and Warranties</SectionTitle>\n <Paragraph>\n You represent and warrant that at any time you submit Content, you are at least the age of majority in the jurisdiction in which you\n reside and are the parent or legal guardian, or have all proper consents from the parent or legal guardian, of any minor who is\n depicted in or contributed to any Content you submit, and that, as to that Content, (a) you are the sole author and owner of the\n Intellectual Property Rights to such Content, or you have a lawful right to submit the Content, all without any obligation to obtain\n consent of any third party and without creating any obligation or liability for the Foundation; (b) the Content is accurate; (c) the\n Content does not and will not infringe any Intellectual Property Right of any third party; and (d) the User Content will not violate\n the Terms or this Content Policy, or cause injury or harm to any person.\n </Paragraph>\n <Paragraph>\n You expressly acknowledge and accept that the Content you submit will be accessible to and viewable by other users and waive any\n claim with regards to the Foundation, its directors, officers, employees and affiliates in connection with said third party access.\n You can withdraw your Content at any time you wish.\n </Paragraph>\n <Paragraph>\n Please remember that the Content that you submit will be accessible to and viewable by other users. Except as may be required to\n register and/or maintain your Account, do not submit personally identifiable information (e.g. first and last name together,\n password, phone number, address, credit or debit card number, medical information, e-mail address, or other contact information) on\n the Tools.\n </Paragraph>\n <Paragraph>\n By submitting, posting or displaying content, and or through Decentraland and/or the Marketplace, you grant us a worldwide,\n non-exclusive, royalty-free perpetual, irrevocable, transferable right and license (with the right to sublicense) to use, copy,\n reproduce, process, adapt, modify, publish, transmit, display, develop, improve, distribute such Content, promote Decentraland,\n activities, Events, in any and all media or distribution methods (now known or later developed). You further grant Decentraland, the\n DAO and/or the Foundation, the right to use your name and trademarks, if any, in connection with our use of your Content available\n at the Platform and/or the Marketplace, from time to time.\n </Paragraph>\n </Section>\n\n <Section id=\"storage\">\n <SectionTitle>7. Storage</SectionTitle>\n <Paragraph>\n You acknowledge that due to the decentralized nature of Decentraland and of the blockchain technology, all Content and information\n submitted by you is not stored in a centralized server, but in several decentralized nodes (the "Nodes"). Thus, the\n Foundation or the DAO are not liable for any loss of content or information.\n </Paragraph>\n <Paragraph>\n The Nodes recognize and accept that in the event of any court order relating to the blocking, suspension or deletion of any Content,\n they will abide by any such court order.\n </Paragraph>\n </Section>\n\n <Section id=\"limitations-to-liability\">\n <SectionTitle>8. Limitations to Liability</SectionTitle>\n <Paragraph>\n The Foundation, its officers, employees, and the DAO are not responsible or liable for the Content, conduct, or services of users or\n third parties. The Foundation, its officers, employees and the DAO do not control or endorse the Content of communications between\n users or users' interactions with each other or the Tools.\n </Paragraph>\n <Paragraph>\n You acknowledge that you will be exposed to various aspects of the Tools involving the conduct, Content, and services of users, and\n that the Foundation does not control and is not responsible or liable for the quality, safety, legality, truthfulness or accuracy of\n any such user conduct, Content or user services. You acknowledge that the Foundation does not guarantee the accuracy of information\n submitted by any user of the Tools, nor any identity information about any user. Your interactions with other users and your use of\n Content are entirely at your own risk. The Foundation has no obligation to become involved in any dispute that you may have or claim\n to have with one or more users of the Tools, or in any manner in any resolution thereof.\n </Paragraph>\n <Paragraph>\n THE TOOLS MAY CONTAIN LINKS TO OR OTHERWISE ALLOW CONNECTIONS TO THIRD-PARTY WEBSITES, SERVERS, AND ONLINE SERVICES OR ENVIRONMENTS\n THAT ARE NOT OWNED OR CONTROLLED BY THE FOUNDATION. THE FOUNDATION, ITS OFFICERS, EMPLOYEES AND THE DAO ARE NOT RESPONSIBLE OR\n LIABLE FOR THE CONTENT, POLICIES OR PRACTICES OF ANY THIRD-PARTY WEBSITES, SERVERS OR ONLINE SERVICES OR ENVIRONMENTS. Please\n consult any applicable terms of use and privacy policies provided by the third party for such websites, servers or online services\n or environments.\n </Paragraph>\n <Paragraph>\n You acknowledge that the Content of the Tools is provided or made available to you under license from independent Content Providers,\n including other users of the Tools ("Content Providers"). You acknowledge and agree that except as expressly provided in\n this Agreement, the Intellectual Property Rights of other Content Providers in their respective Content are not licensed to you by\n your mere use of the Tools. You must obtain from the applicable Content Providers any necessary license rights in Content that you\n desire to use or access.\n </Paragraph>\n <Paragraph>\n You copy and use Content at your own risk. You are solely responsible and liable for your use, reproduction, distribution,\n modification, display, or performance of any Content in violation of any Intellectual Property Rights. You agree that the Foundation\n will have no liability for, and you agree to defend, indemnify, and hold the Foundation harmless from, any claims, losses or damages\n arising out of or in connection with your use, reproduction, distribution, modification, display, or performance of any Content.\n </Paragraph>\n </Section>\n\n <Section id=\"changes-to-this-policy\">\n <SectionTitle>9. Changes to this Policy</SectionTitle>\n <Paragraph>\n The DAO may change this Content Policy from time to time. All users have the obligation to be aware of the updated versions of this\n Policy.\n </Paragraph>\n <Paragraph>\n <a\n href=\"https://governance.decentraland.org/proposal/?id=7e3f57c0-e0f2-11eb-a20f-d75df7f87ed8\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n Approved by the DAO on Jul 16, 2021\n </a>\n </Paragraph>\n </Section>\n </LegalPageLayout>\n))\n\nContentPolicy.displayName = 'ContentPolicy'\n\nexport { ContentPolicy }\n"],"names":["TABLE_OF_CONTENTS","ContentPolicy","memo","jsxs","LegalPageLayout","Section","jsx","SectionTitle","Paragraph"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,f as a}from"./rtk-query-react.modern-
|
|
1
|
+
import{c as e,f as a}from"./rtk-query-react.modern-eNgJtwbJ.js";const s=e({reducerPath:"placesClient",baseQuery:a(),tagTypes:["Place","World","SceneMetadata"],keepUnusedDataFor:300,refetchOnFocus:!1,refetchOnReconnect:!1,endpoints:()=>({})});export{s as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placesClient-
|
|
1
|
+
{"version":3,"file":"placesClient-C2aFU8QL.js","sources":["../../src/services/placesClient.ts"],"sourcesContent":["import { createApi, fakeBaseQuery } from '@reduxjs/toolkit/query/react'\n\n// fakeBaseQuery: all injected endpoints use `queryFn` with raw fetch against\n// multiple origins (places-api, worlds-content, decentraland catalyst), so no\n// single base URL applies.\nconst placesClient = createApi({\n reducerPath: 'placesClient',\n baseQuery: fakeBaseQuery(),\n tagTypes: ['Place', 'World', 'SceneMetadata'],\n keepUnusedDataFor: 300,\n refetchOnFocus: false,\n refetchOnReconnect: false,\n endpoints: () => ({})\n})\n\nexport { placesClient }\n"],"names":["placesClient","createApi","fakeBaseQuery"],"mappings":"gEAKA,MAAMA,EAAeC,EAAU,CAC7B,YAAa,eACb,UAAWC,EAAA,EACX,SAAU,CAAC,QAAS,QAAS,eAAe,EAC5C,kBAAmB,IACnB,eAAgB,GAChB,mBAAoB,GACpB,UAAW,KAAO,CAAA,EACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a}from"./vendor-router-D7SOoytt.js";import{g as f}from"./index-
|
|
1
|
+
import{r as a}from"./vendor-router-D7SOoytt.js";import{g as f}from"./index-BWvXRlTE.js";const d={data:null,loaded:!1,fetching:null},g={data:null,isLoading:!1},u=new Map,i=new Map,o=new Map;function p(t){return{data:t.data,isLoading:!t.loaded}}function h(t){o.get(t)?.forEach(e=>e())}function r(t,e){u.set(t,e),i.set(t,p(e)),h(t)}async function E(t){try{const e=f("PEER_URL");return await(await fetch(`${e}/lambdas/profiles/${t.toLowerCase()}`)).json()??null}catch{return null}}function w(t){const e=u.get(t)??d;if(e.loaded||e.fetching)return e.fetching??Promise.resolve();const n=(async()=>{try{const s=await E(t);r(t,{data:s,loaded:!0,fetching:null})}catch{r(t,{data:null,loaded:!0,fetching:null})}})();return r(t,{...e,fetching:n}),n}function b(t,e){let n=o.get(t);return n||(n=new Set,o.set(t,n)),n.add(e),w(t),()=>{n.delete(e),n.size===0&&o.delete(t)}}function m(t){const e=i.get(t);if(e)return e;const n={data:null,isLoading:!0};return i.set(t,n),n}function L(t,e={}){const n=e.skip||!t?"":t.toLowerCase(),s=a.useCallback(l=>n?b(n,l):()=>{},[n]),c=a.useCallback(()=>n?m(n):g,[n]);return a.useSyncExternalStore(s,c,c)}export{L as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.client-
|
|
1
|
+
{"version":3,"file":"profile.client-X_-2wpWn.js","sources":["../../src/features/profile/profile.client.ts"],"sourcesContent":["import { useCallback, useSyncExternalStore } from 'react'\nimport type { Profile } from 'dcl-catalyst-client/dist/client/specs/lambdas-client'\nimport { getEnv } from '../../config/env'\n\ntype Entry = {\n data: Profile | null\n loaded: boolean\n fetching: Promise<void> | null\n}\n\ntype Snapshot = { data: Profile | null; isLoading: boolean }\n\nconst EMPTY_ENTRY: Entry = { data: null, loaded: false, fetching: null }\nconst EMPTY_SNAPSHOT: Snapshot = { data: null, isLoading: false }\n\nconst entries = new Map<string, Entry>()\nconst snapshots = new Map<string, Snapshot>()\nconst listenersByKey = new Map<string, Set<() => void>>()\n\nfunction snapshotOf(entry: Entry): Snapshot {\n return { data: entry.data, isLoading: !entry.loaded }\n}\n\nfunction notify(key: string) {\n listenersByKey.get(key)?.forEach(fn => fn())\n}\n\nfunction setEntry(key: string, next: Entry) {\n entries.set(key, next)\n snapshots.set(key, snapshotOf(next))\n notify(key)\n}\n\nasync function fetchProfile(address: string): Promise<Profile | null> {\n try {\n const peerUrl = getEnv('PEER_URL')\n const response = await fetch(`${peerUrl}/lambdas/profiles/${address.toLowerCase()}`)\n const data = await response.json()\n return data ?? null\n } catch {\n return null\n }\n}\n\nfunction ensureFetch(key: string): Promise<void> {\n const existing = entries.get(key) ?? EMPTY_ENTRY\n if (existing.loaded || existing.fetching) return existing.fetching ?? Promise.resolve()\n\n const promise = (async () => {\n try {\n const data = await fetchProfile(key)\n setEntry(key, { data, loaded: true, fetching: null })\n } catch {\n setEntry(key, { data: null, loaded: true, fetching: null })\n }\n })()\n\n setEntry(key, { ...existing, fetching: promise })\n return promise\n}\n\nfunction subscribeTo(key: string, listener: () => void): () => void {\n let set = listenersByKey.get(key)\n if (!set) {\n set = new Set()\n listenersByKey.set(key, set)\n }\n set.add(listener)\n void ensureFetch(key)\n return () => {\n set.delete(listener)\n if (set.size === 0) listenersByKey.delete(key)\n }\n}\n\nfunction getSnapshotFor(key: string): Snapshot {\n const snap = snapshots.get(key)\n if (snap) return snap\n // Seed a stable pending snapshot so useSyncExternalStore doesn't loop.\n const pending: Snapshot = { data: null, isLoading: true }\n snapshots.set(key, pending)\n return pending\n}\n\ntype QueryOptions = { skip?: boolean }\n\nfunction useGetProfileQuery(address: string | undefined, options: QueryOptions = {}): Snapshot {\n const key = options.skip || !address ? '' : address.toLowerCase()\n\n const subscribe = useCallback(\n (listener: () => void) => {\n if (!key) return () => undefined\n return subscribeTo(key, listener)\n },\n [key]\n )\n\n const getSnapshot = useCallback(() => {\n if (!key) return EMPTY_SNAPSHOT\n return getSnapshotFor(key)\n }, [key])\n\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot)\n}\n\nexport { useGetProfileQuery, type Profile }\n"],"names":["EMPTY_ENTRY","EMPTY_SNAPSHOT","entries","snapshots","listenersByKey","snapshotOf","entry","notify","key","fn","setEntry","next","fetchProfile","address","peerUrl","getEnv","ensureFetch","existing","promise","data","subscribeTo","listener","set","getSnapshotFor","snap","pending","useGetProfileQuery","options","subscribe","useCallback","getSnapshot","useSyncExternalStore"],"mappings":"wFAYA,MAAMA,EAAqB,CAAE,KAAM,KAAM,OAAQ,GAAO,SAAU,IAAA,EAC5DC,EAA2B,CAAE,KAAM,KAAM,UAAW,EAAA,EAEpDC,MAAc,IACdC,MAAgB,IAChBC,MAAqB,IAE3B,SAASC,EAAWC,EAAwB,CAC1C,MAAO,CAAE,KAAMA,EAAM,KAAM,UAAW,CAACA,EAAM,MAAA,CAC/C,CAEA,SAASC,EAAOC,EAAa,CAC3BJ,EAAe,IAAII,CAAG,GAAG,QAAQC,GAAMA,GAAI,CAC7C,CAEA,SAASC,EAASF,EAAaG,EAAa,CAC1CT,EAAQ,IAAIM,EAAKG,CAAI,EACrBR,EAAU,IAAIK,EAAKH,EAAWM,CAAI,CAAC,EACnCJ,EAAOC,CAAG,CACZ,CAEA,eAAeI,EAAaC,EAA0C,CACpE,GAAI,CACF,MAAMC,EAAUC,EAAO,UAAU,EAGjC,OADa,MADI,MAAM,MAAM,GAAGD,CAAO,qBAAqBD,EAAQ,YAAA,CAAa,EAAE,GACvD,KAAA,GACb,IACjB,MAAQ,CACN,OAAO,IACT,CACF,CAEA,SAASG,EAAYR,EAA4B,CAC/C,MAAMS,EAAWf,EAAQ,IAAIM,CAAG,GAAKR,EACrC,GAAIiB,EAAS,QAAUA,EAAS,gBAAiBA,EAAS,UAAY,QAAQ,QAAA,EAE9E,MAAMC,GAAW,SAAY,CAC3B,GAAI,CACF,MAAMC,EAAO,MAAMP,EAAaJ,CAAG,EACnCE,EAASF,EAAK,CAAE,KAAAW,EAAM,OAAQ,GAAM,SAAU,KAAM,CACtD,MAAQ,CACNT,EAASF,EAAK,CAAE,KAAM,KAAM,OAAQ,GAAM,SAAU,KAAM,CAC5D,CACF,GAAA,EAEA,OAAAE,EAASF,EAAK,CAAE,GAAGS,EAAU,SAAUC,EAAS,EACzCA,CACT,CAEA,SAASE,EAAYZ,EAAaa,EAAkC,CAClE,IAAIC,EAAMlB,EAAe,IAAII,CAAG,EAChC,OAAKc,IACHA,MAAU,IACVlB,EAAe,IAAII,EAAKc,CAAG,GAE7BA,EAAI,IAAID,CAAQ,EACXL,EAAYR,CAAG,EACb,IAAM,CACXc,EAAI,OAAOD,CAAQ,EACfC,EAAI,OAAS,GAAGlB,EAAe,OAAOI,CAAG,CAC/C,CACF,CAEA,SAASe,EAAef,EAAuB,CAC7C,MAAMgB,EAAOrB,EAAU,IAAIK,CAAG,EAC9B,GAAIgB,EAAM,OAAOA,EAEjB,MAAMC,EAAoB,CAAE,KAAM,KAAM,UAAW,EAAA,EACnD,OAAAtB,EAAU,IAAIK,EAAKiB,CAAO,EACnBA,CACT,CAIA,SAASC,EAAmBb,EAA6Bc,EAAwB,GAAc,CAC7F,MAAMnB,EAAMmB,EAAQ,MAAQ,CAACd,EAAU,GAAKA,EAAQ,YAAA,EAE9Ce,EAAYC,EAAAA,YACfR,GACMb,EACEY,EAAYZ,EAAKa,CAAQ,EADf,OAGnB,CAACb,CAAG,CAAA,EAGAsB,EAAcD,EAAAA,YAAY,IACzBrB,EACEe,EAAef,CAAG,EADRP,EAEhB,CAACO,CAAG,CAAC,EAER,OAAOuB,uBAAqBH,EAAWE,EAAaA,CAAW,CACjE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{p as oi}from"./vendor-sentry-DCdewyWN.js";import{r as N}from"./vendor-router-D7SOoytt.js";function J(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ci=typeof Symbol=="function"&&Symbol.observable||"@@observable",An=ci,Kt=()=>Math.random().toString(36).substring(7).split("").join("."),ai={INIT:`@@redux/INIT${Kt()}`,REPLACE:`@@redux/REPLACE${Kt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Kt()}`},mt=ai;function ye(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function fr(e,t,n){if(typeof e!="function")throw new Error(J(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(J(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(J(1));return n(fr)(e,t)}let r=e,i=t,s=new Map,o=s,g=0,b=!1;function w(){o===s&&(o=new Map,s.forEach((c,d)=>{o.set(d,c)}))}function P(){if(b)throw new Error(J(3));return i}function _(c){if(typeof c!="function")throw new Error(J(4));if(b)throw new Error(J(5));let d=!0;w();const A=g++;return o.set(A,c),function(){if(d){if(b)throw new Error(J(6));d=!1,w(),o.delete(A),s=null}}}function I(c){if(!ye(c))throw new Error(J(7));if(typeof c.type>"u")throw new Error(J(8));if(typeof c.type!="string")throw new Error(J(17));if(b)throw new Error(J(9));try{b=!0,i=r(i,c)}finally{b=!1}return(s=o).forEach(A=>{A()}),c}function v(c){if(typeof c!="function")throw new Error(J(10));r=c,I({type:mt.REPLACE})}function a(){const c=_;return{subscribe(d){if(typeof d!="object"||d===null)throw new Error(J(11));function A(){const l=d;l.next&&l.next(P())}return A(),{unsubscribe:c(A)}},[An](){return this}}}return I({type:mt.INIT}),{dispatch:I,subscribe:_,getState:P,replaceReducer:v,[An]:a}}function ui(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:mt.INIT})>"u")throw new Error(J(12));if(typeof n(void 0,{type:mt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(J(13))})}function dr(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const o=t[s];typeof e[o]=="function"&&(n[o]=e[o])}const r=Object.keys(n);let i;try{ui(n)}catch(s){i=s}return function(o={},g){if(i)throw i;let b=!1;const w={};for(let P=0;P<r.length;P++){const _=r[P],I=n[_],v=o[_],a=I(v,g);if(typeof a>"u")throw g&&g.type,new Error(J(14));w[_]=a,b=b||a!==v}return b=b||r.length!==Object.keys(o).length,b?w:o}}function bt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function li(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(J(15))};const o={getState:i.getState,dispatch:(b,...w)=>s(b,...w)},g=e.map(b=>b(o));return s=bt(...g)(i.dispatch),{...i,dispatch:s}}}function Ot(e){return ye(e)&&"type"in e&&typeof e.type=="string"}var yn=Symbol.for("immer-nothing"),Ue=Symbol.for("immer-draftable"),G=Symbol.for("immer-state");function Y(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ne=Object,we=ne.getPrototypeOf,Ke="constructor",Ze="prototype",Zt="configurable",vt="enumerable",yt="writable",We="value",Z=e=>!!e&&!!e[G];function re(e){return e?pr(e)||tt(e)||!!e[Ue]||!!e[Ke]?.[Ue]||nt(e)||rt(e):!1}var fi=ne[Ze][Ke].toString(),In=new WeakMap;function pr(e){if(!e||!Te(e))return!1;const t=we(e);if(t===null||t===ne[Ze])return!0;const n=ne.hasOwnProperty.call(t,Ke)&&t[Ke];if(n===Object)return!0;if(!ve(n))return!1;let r=In.get(n);return r===void 0&&(r=Function.toString.call(n),In.set(n,r)),r===fi}function di(e){return Z(e)||Y(15,e),e[G].base_}function et(e,t,n=!0){_e(e)===0?(n?Reflect.ownKeys(e):ne.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function _e(e){const t=e[G];return t?t.type_:tt(e)?1:nt(e)?2:rt(e)?3:0}var $e=(e,t,n=_e(e))=>n===2?e.has(t):ne[Ze].hasOwnProperty.call(e,t),ae=(e,t,n=_e(e))=>n===2?e.get(t):e[t],St=(e,t,n,r=_e(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function pi(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var tt=Array.isArray,nt=e=>e instanceof Map,rt=e=>e instanceof Set,Te=e=>typeof e=="object",ve=e=>typeof e=="function",Wt=e=>typeof e=="boolean";function yi(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var hi=e=>Te(e)?e?.[G]:null,ue=e=>e.copy_||e.base_,hn=e=>e.modified_?e.copy_:e.base_;function en(e,t){if(nt(e))return new Map(e);if(rt(e))return new Set(e);if(tt(e))return Array[Ze].slice.call(e);const n=pr(e);if(t===!0||t==="class_only"&&!n){const r=ne.getOwnPropertyDescriptors(e);delete r[G];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const o=i[s],g=r[o];g[yt]===!1&&(g[yt]=!0,g[Zt]=!0),(g.get||g.set)&&(r[o]={[Zt]:!0,[yt]:!0,[vt]:g[vt],[We]:e[o]})}return ne.create(we(e),r)}else{const r=we(e);if(r!==null&&n)return{...e};const i=ne.create(r);return ne.assign(i,e)}}function gn(e,t=!1){return Tt(e)||Z(e)||!re(e)||(_e(e)>1&&ne.defineProperties(e,{set:ct,add:ct,clear:ct,delete:ct}),ne.freeze(e),t&&et(e,(n,r)=>{gn(r,!0)},!1)),e}function gi(){Y(2)}var ct={[We]:gi};function Tt(e){return e===null||!Te(e)?!0:ne.isFrozen(e)}var wt="MapSet",_t="Patches",On="ArrayMethods",Et={};function Ee(e){const t=Et[e];return t||Y(0,e),t}var Tn=e=>!!Et[e];function mi(e,t){Et[e]||(Et[e]=t)}var Be,yr=()=>Be,bi=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Tn(wt)?Ee(wt):void 0,arrayMethodsPlugin_:Tn(On)?Ee(On):void 0});function Dn(e,t){t&&(e.patchPlugin_=Ee(_t),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function tn(e){nn(e),e.drafts_.forEach(vi),e.drafts_=null}function nn(e){e===Be&&(Be=e.parent_)}var kn=e=>Be=bi(Be,e);function vi(e){const t=e[G];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Qn(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[G].modified_&&(tn(t),Y(4)),re(e)&&(e=Nn(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[G].base_,e,t)}else e=Nn(t,n);return Si(t,e,!0),tn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==yn?e:void 0}function Nn(e,t){if(Tt(t))return t;const n=t[G];if(!n)return Pt(t,e.handledSet_,e);if(!Dt(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);mr(n,e)}return n.copy_}function Si(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&gn(t,n)}function hr(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Dt=(e,t)=>e.scope_===t,wi=[];function gr(e,t,n,r){const i=ue(e),s=e.type_;if(r!==void 0&&ae(i,r,s)===t){St(i,r,n,s);return}if(!e.draftLocations_){const g=e.draftLocations_=new Map;et(i,(b,w)=>{if(Z(w)){const P=g.get(w)||[];P.push(b),g.set(w,P)}})}const o=e.draftLocations_.get(t)??wi;for(const g of o)St(i,g,n,s)}function _i(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!Dt(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const o=hn(s);gr(e,s.draft_??s,o,n),mr(s,i)})}function mr(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}hr(e)}}function Ei(e,t,n){const{scope_:r}=e;if(Z(n)){const i=n[G];Dt(i,r)&&i.callbacks_.push(function(){ht(e);const o=hn(i);gr(e,n,o,t)})}else re(n)&&e.callbacks_.push(function(){const s=ue(e);e.type_===3?s.has(n)&&Pt(n,r.handledSet_,r):ae(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Pt(ae(e.copy_,t,e.type_),r.handledSet_,r)})}function Pt(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Z(e)||t.has(e)||!re(e)||Tt(e)||(t.add(e),et(e,(r,i)=>{if(Z(i)){const s=i[G];if(Dt(s,n)){const o=hn(s);St(e,r,o,e.type_),hr(s)}}else re(i)&&Pt(i,t,n)})),e}function Pi(e,t){const n=tt(e),r={type_:n?1:0,scope_:t?t.scope_:yr(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,s=Rt;n&&(i=[r],s=He);const{revoke:o,proxy:g}=Proxy.revocable(i,s);return r.draft_=g,r.revoke_=o,[g,r]}var Rt={get(e,t){if(t===G)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=ue(e);if(!$e(i,t,e.type_))return Ri(e,i,t);const s=i[t];if(e.finalized_||!re(s)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&yi(t))return s;if(s===Bt(e.base_,t)){ht(e);const o=e.type_===1?+t:t,g=sn(e.scope_,s,e,o);return e.copy_[o]=g}return s},has(e,t){return t in ue(e)},ownKeys(e){return Reflect.ownKeys(ue(e))},set(e,t,n){const r=br(ue(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Bt(ue(e),t),s=i?.[G];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(pi(n,i)&&(n!==void 0||$e(e.base_,t,e.type_)))return!0;ht(e),rn(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Ei(e,t,n)),!0},deleteProperty(e,t){return ht(e),Bt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),rn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ue(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[yt]:!0,[Zt]:e.type_!==1||t!=="length",[vt]:r[vt],[We]:n[t]}},defineProperty(){Y(11)},getPrototypeOf(e){return we(e.base_)},setPrototypeOf(){Y(12)}},He={};for(let e in Rt){let t=Rt[e];He[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}He.deleteProperty=function(e,t){return He.set.call(this,e,t,void 0)};He.set=function(e,t,n){return Rt.set.call(this,e[0],t,n,e[0])};function Bt(e,t){const n=e[G];return(n?ue(n):e)[t]}function Ri(e,t,n){const r=br(t,n);return r?We in r?r[We]:r.get?.call(e.draft_):void 0}function br(e,t){if(!(t in e))return;let n=we(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=we(n)}}function rn(e){e.modified_||(e.modified_=!0,e.parent_&&rn(e.parent_))}function ht(e){e.copy_||(e.assigned_=new Map,e.copy_=en(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Mi=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(ve(t)&&!ve(n)){const s=n;n=t;const o=this;return function(b=s,...w){return o.produce(b,P=>n.call(this,P,...w))}}ve(n)||Y(6),r!==void 0&&!ve(r)&&Y(7);let i;if(re(t)){const s=kn(this),o=sn(s,t,void 0);let g=!0;try{i=n(o),g=!1}finally{g?tn(s):nn(s)}return Dn(s,r),Qn(i,s)}else if(!t||!Te(t)){if(i=n(t),i===void 0&&(i=t),i===yn&&(i=void 0),this.autoFreeze_&&gn(i,!0),r){const s=[],o=[];Ee(_t).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:o}),r(s,o)}return i}else Y(1,t)},this.produceWithPatches=(t,n)=>{if(ve(t))return(o,...g)=>this.produceWithPatches(o,b=>t(b,...g));let r,i;return[this.produce(t,n,(o,g)=>{r=o,i=g}),r,i]},Wt(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Wt(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Wt(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){re(e)||Y(8),Z(e)&&(e=kt(e));const t=kn(this),n=sn(t,e,void 0);return n[G].isManual_=!0,nn(t),n}finishDraft(e,t){const n=e&&e[G];(!n||!n.isManual_)&&Y(9);const{scope_:r}=n;return Dn(r,t),Qn(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ee(_t).applyPatches_;return Z(e)?r(e,t):this.produce(e,i=>r(i,t))}};function sn(e,t,n,r){const[i,s]=nt(t)?Ee(wt).proxyMap_(t,n):rt(t)?Ee(wt).proxySet_(t,n):Pi(t,n);return(n?.scope_??yr()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?_i(n,s,r):s.callbacks_.push(function(b){b.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:w}=b;s.modified_&&w&&w.generatePatches_(s,[],b)}),i}function kt(e){return Z(e)||Y(10,e),vr(e)}function vr(e){if(!re(e)||Tt(e))return e;const t=e[G];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=en(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=en(e,!0);return et(n,(i,s)=>{St(n,i,vr(s))},r),t&&(t.finalized_=!1),n}function Ci(){function t(a,y=[]){if(a.key_!==void 0){const c=a.parent_.copy_??a.parent_.base_,d=hi(ae(c,a.key_)),A=ae(c,a.key_);if(A===void 0||A!==a.draft_&&A!==a.base_&&A!==a.copy_||d!=null&&d.base_!==a.base_)return null;const u=a.parent_.type_===3;let l;if(u){const p=a.parent_;l=Array.from(p.drafts_.keys()).indexOf(a.key_)}else l=a.key_;if(!(u&&c.size>l||$e(c,l)))return null;y.push(l)}if(a.parent_)return t(a.parent_,y);y.reverse();try{n(a.copy_,y)}catch{return null}return y}function n(a,y){let c=a;for(let d=0;d<y.length-1;d++){const A=y[d];if(c=ae(c,A),!Te(c)||c===null)throw new Error(`Cannot resolve path at '${y.join("/")}'`)}return c}const r="replace",i="add",s="remove";function o(a,y,c){if(a.scope_.processedForPatches_.has(a))return;a.scope_.processedForPatches_.add(a);const{patches_:d,inversePatches_:A}=c;switch(a.type_){case 0:case 2:return b(a,y,d,A);case 1:return g(a,y,d,A);case 3:return w(a,y,d,A)}}function g(a,y,c,d){let{base_:A,assigned_:u}=a,l=a.copy_;l.length<A.length&&([A,l]=[l,A],[c,d]=[d,c]);const p=a.allIndicesReassigned_===!0;for(let h=0;h<A.length;h++){const E=l[h],M=A[h];if((p||u?.get(h.toString()))&&E!==M){const S=E?.[G];if(S&&S.modified_)continue;const f=y.concat([h]);c.push({op:r,path:f,value:v(E)}),d.push({op:r,path:f,value:v(M)})}}for(let h=A.length;h<l.length;h++){const E=y.concat([h]);c.push({op:i,path:E,value:v(l[h])})}for(let h=l.length-1;A.length<=h;--h){const E=y.concat([h]);d.push({op:s,path:E})}}function b(a,y,c,d){const{base_:A,copy_:u,type_:l}=a;et(a.assigned_,(p,h)=>{const E=ae(A,p,l),M=ae(u,p,l),C=h?$e(A,p)?r:i:s;if(E===M&&C===r)return;const S=y.concat(p);c.push(C===s?{op:C,path:S}:{op:C,path:S,value:v(M)}),d.push(C===i?{op:s,path:S}:C===s?{op:i,path:S,value:v(E)}:{op:r,path:S,value:v(E)})})}function w(a,y,c,d){let{base_:A,copy_:u}=a,l=0;A.forEach(p=>{if(!u.has(p)){const h=y.concat([l]);c.push({op:s,path:h,value:p}),d.unshift({op:i,path:h,value:p})}l++}),l=0,u.forEach(p=>{if(!A.has(p)){const h=y.concat([l]);c.push({op:i,path:h,value:p}),d.unshift({op:s,path:h,value:p})}l++})}function P(a,y,c){const{patches_:d,inversePatches_:A}=c;d.push({op:r,path:[],value:y===yn?void 0:y}),A.push({op:r,path:[],value:a})}function _(a,y){return y.forEach(c=>{const{path:d,op:A}=c;let u=a;for(let E=0;E<d.length-1;E++){const M=_e(u);let C=d[E];typeof C!="string"&&typeof C!="number"&&(C=""+C),(M===0||M===1)&&(C==="__proto__"||C===Ke)&&Y(19),ve(u)&&C===Ze&&Y(19),u=ae(u,C),Te(u)||Y(18,d.join("/"))}const l=_e(u),p=I(c.value),h=d[d.length-1];switch(A){case r:switch(l){case 2:return u.set(h,p);case 3:Y(16);default:return u[h]=p}case i:switch(l){case 1:return h==="-"?u.push(p):u.splice(h,0,p);case 2:return u.set(h,p);case 3:return u.add(p);default:return u[h]=p}case s:switch(l){case 1:return u.splice(h,1);case 2:return u.delete(h);case 3:return u.delete(c.value);default:return delete u[h]}default:Y(17,A)}}),a}function I(a){if(!re(a))return a;if(tt(a))return a.map(I);if(nt(a))return new Map(Array.from(a.entries()).map(([c,d])=>[c,I(d)]));if(rt(a))return new Set(Array.from(a).map(I));const y=Object.create(we(a));for(const c in a)y[c]=I(a[c]);return $e(a,Ue)&&(y[Ue]=a[Ue]),y}function v(a){return Z(a)?I(a):a}mi(_t,{applyPatches_:_,generatePatches_:o,generateReplacementPatches_:P,getPath:t})}var Ge=new Mi,Qe=Ge.produce,Sr=Ge.produceWithPatches.bind(Ge),xn=Ge.applyPatches.bind(Ge);function Ai(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Ii(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Oi(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var qn=e=>Array.isArray(e)?e:[e];function Ti(e){const t=Array.isArray(e[0])?e[0]:e;return Oi(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Di(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var ki=class{constructor(e){this.value=e}deref(){return this.value}},Qi=typeof WeakRef<"u"?WeakRef:ki,Ni=0,Fn=1;function at(){return{s:Ni,v:void 0,o:null,p:null}}function Je(e,t={}){let n=at();const{resultEqualityCheck:r}=t;let i,s=0;function o(){let g=n;const{length:b}=arguments;for(let _=0,I=b;_<I;_++){const v=arguments[_];if(typeof v=="function"||typeof v=="object"&&v!==null){let a=g.o;a===null&&(g.o=a=new WeakMap);const y=a.get(v);y===void 0?(g=at(),a.set(v,g)):g=y}else{let a=g.p;a===null&&(g.p=a=new Map);const y=a.get(v);y===void 0?(g=at(),a.set(v,g)):g=y}}const w=g;let P;if(g.s===Fn)P=g.v;else if(P=e.apply(null,arguments),s++,r){const _=i?.deref?.()??i;_!=null&&r(_,P)&&(P=_,s!==0&&s--),i=typeof P=="object"&&P!==null||typeof P=="function"?new Qi(P):P}return w.s=Fn,w.v=P,P}return o.clearCache=()=>{n=at(),o.resetResultsCount()},o.resultsCount=()=>s,o.resetResultsCount=()=>{s=0},o}function wr(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,o=0,g,b={},w=i.pop();typeof w=="object"&&(b=w,w=i.pop()),Ai(w,`createSelector expects an output function after the inputs, but received: [${typeof w}]`);const P={...n,...b},{memoize:_,memoizeOptions:I=[],argsMemoize:v=Je,argsMemoizeOptions:a=[]}=P,y=qn(I),c=qn(a),d=Ti(i),A=_(function(){return s++,w.apply(null,arguments)},...y),u=v(function(){o++;const p=Di(d,arguments);return g=A.apply(null,p),g},...c);return Object.assign(u,{resultFunc:w,memoizedResultFunc:A,dependencies:d,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>g,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:_,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var mn=wr(Je),xi=Object.assign((e,t=mn)=>{Ii(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((o,g,b)=>(o[n[b]]=g,o),{}))},{withTypes:()=>xi});function _r(e){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,e):i(s)}var qi=_r(),Fi=_r,Li=(...e)=>{const t=wr(...e),n=Object.assign((...r)=>{const i=t(...r),s=(o,...g)=>i(Z(o)?kt(o):o,...g);return Object.assign(s,i),s},{withTypes:()=>n});return n},ji=Li(Je),Ui=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bt:bt.apply(null,arguments)},$i=e=>e&&typeof e.match=="function";function ee(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(X(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Ot(r)&&r.type===e,n}function zi(e){return Ot(e)&&Object.keys(e).every(Vi)}function Vi(e){return["type","payload","error","meta"].indexOf(e)>-1}var Er=class Fe extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Fe.prototype)}static get[Symbol.species](){return Fe}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Fe(...t[0].concat(this)):new Fe(...t.concat(this))}};function Ln(e){return re(e)?Qe(e,()=>{}):e}function ut(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Ki(e){return typeof e=="boolean"}var Wi=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let o=new Er;return n&&(Ki(n)?o.push(qi):o.push(Fi(n.extraArgument))),o},Qt="RTK_autoBatch",Ne=()=>e=>({payload:e,meta:{[Qt]:!0}}),jn=e=>t=>{setTimeout(t,e)},Bi=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,o=!1;const g=new Set,b=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jn(10):e.type==="callback"?e.queueNotification:jn(e.timeout),w=()=>{o=!1,s&&(s=!1,g.forEach(P=>P()))};return Object.assign({},r,{subscribe(P){const _=()=>i&&P(),I=r.subscribe(_);return g.add(P),()=>{I(),g.delete(P)}},dispatch(P){try{return i=!P?.meta?.[Qt],s=!i,s&&(o||(o=!0,b(w))),r.dispatch(P)}finally{i=!0}}})},Hi=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Er(e);return r&&i.push(Bi(typeof r=="object"?r:void 0)),i};function Go(e){const t=Wi(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:s=void 0,enhancers:o=void 0}=e||{};let g;if(typeof n=="function")g=n;else if(ye(n))g=dr(n);else throw new Error(X(1));let b;typeof r=="function"?b=r(t):b=t();let w=bt;i&&(w=Ui({trace:!1,...typeof i=="object"&&i}));const P=li(...b),_=Hi(P);let I=typeof o=="function"?o(_):_();const v=w(...I);return fr(g,s,v)}function Pr(e){const t={},n=[];let r;const i={addCase(s,o){const g=typeof s=="string"?s:s.type;if(!g)throw new Error(X(28));if(g in t)throw new Error(X(29));return t[g]=o,i},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&n.push({matcher:s.settled,reducer:o.settled}),i},addMatcher(s,o){return n.push({matcher:s,reducer:o}),i},addDefaultCase(s){return r=s,i}};return e(i),[t,n,r]}function Gi(e){return typeof e=="function"}function Ji(e,t){let[n,r,i]=Pr(t),s;if(Gi(e))s=()=>Ln(e());else{const g=Ln(e);s=()=>g}function o(g=s(),b){let w=[n[b.type],...r.filter(({matcher:P})=>P(b)).map(({reducer:P})=>P)];return w.filter(P=>!!P).length===0&&(w=[i]),w.reduce((P,_)=>{if(_)if(Z(P)){const v=_(P,b);return v===void 0?P:v}else{if(re(P))return Qe(P,I=>_(I,b));{const I=_(P,b);if(I===void 0){if(P===null)return P;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}}return P},g)}return o.getInitialState=s,o}var Rr=(e,t)=>$i(e)?e.match(t):e(t);function le(...e){return t=>e.some(n=>Rr(n,t))}function ze(...e){return t=>e.every(n=>Rr(n,t))}function Nt(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function it(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function bn(...e){return e.length===0?t=>Nt(t,["pending"]):it(e)?le(...e.map(t=>t.pending)):bn()(e[0])}function De(...e){return e.length===0?t=>Nt(t,["rejected"]):it(e)?le(...e.map(t=>t.rejected)):De()(e[0])}function xt(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?ze(De(...e),t):it(e)?ze(De(...e),t):xt()(e[0])}function he(...e){return e.length===0?t=>Nt(t,["fulfilled"]):it(e)?le(...e.map(t=>t.fulfilled)):he()(e[0])}function on(...e){return e.length===0?t=>Nt(t,["pending","fulfilled","rejected"]):it(e)?le(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):on()(e[0])}var Yi="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",qt=(e=21)=>{let t="",n=e;for(;n--;)t+=Yi[Math.random()*64|0];return t},Xi=["name","message","stack","code"],Ht=class{constructor(e,t){this.payload=e,this.meta=t}_type},Un=class{constructor(e,t){this.payload=e,this.meta=t}_type},Zi=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Xi)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},$n="External signal was aborted",zn=(()=>{function e(t,n,r){const i=ee(t+"/fulfilled",(b,w,P,_)=>({payload:b,meta:{..._||{},arg:P,requestId:w,requestStatus:"fulfilled"}})),s=ee(t+"/pending",(b,w,P)=>({payload:void 0,meta:{...P||{},arg:w,requestId:b,requestStatus:"pending"}})),o=ee(t+"/rejected",(b,w,P,_,I)=>({payload:_,error:(r&&r.serializeError||Zi)(b||"Rejected"),meta:{...I||{},arg:P,requestId:w,rejectedWithValue:!!_,requestStatus:"rejected",aborted:b?.name==="AbortError",condition:b?.name==="ConditionError"}}));function g(b,{signal:w}={}){return(P,_,I)=>{const v=r?.idGenerator?r.idGenerator(b):qt(),a=new AbortController;let y,c;function d(u){c=u,a.abort()}w&&(w.aborted?d($n):w.addEventListener("abort",()=>d($n),{once:!0}));const A=async function(){let u;try{let p=r?.condition?.(b,{getState:_,extra:I});if(ts(p)&&(p=await p),p===!1||a.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const h=new Promise((E,M)=>{y=()=>{M({name:"AbortError",message:c||"Aborted"})},a.signal.addEventListener("abort",y,{once:!0})});P(s(v,b,r?.getPendingMeta?.({requestId:v,arg:b},{getState:_,extra:I}))),u=await Promise.race([h,Promise.resolve(n(b,{dispatch:P,getState:_,extra:I,requestId:v,signal:a.signal,abort:d,rejectWithValue:(E,M)=>new Ht(E,M),fulfillWithValue:(E,M)=>new Un(E,M)})).then(E=>{if(E instanceof Ht)throw E;return E instanceof Un?i(E.payload,v,b,E.meta):i(E,v,b)})])}catch(p){u=p instanceof Ht?o(null,v,b,p.payload,p.meta):o(p,v,b)}finally{y&&a.signal.removeEventListener("abort",y)}return r&&!r.dispatchConditionRejection&&o.match(u)&&u.meta.condition||P(u),u}();return Object.assign(A,{abort:d,requestId:v,arg:b,unwrap(){return A.then(es)}})}}return Object.assign(g,{pending:s,rejected:o,fulfilled:i,settled:le(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function es(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ts(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ns=Symbol.for("rtk-slice-createasyncthunk");function rs(e,t){return`${e}/${t}`}function is({creators:e}={}){const t=e?.asyncThunk?.[ns];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(X(11));const o=(typeof r.reducers=="function"?r.reducers(os()):r.reducers)||{},g=Object.keys(o),b={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},w={addCase(u,l){const p=typeof u=="string"?u:u.type;if(!p)throw new Error(X(12));if(p in b.sliceCaseReducersByType)throw new Error(X(13));return b.sliceCaseReducersByType[p]=l,w},addMatcher(u,l){return b.sliceMatchers.push({matcher:u,reducer:l}),w},exposeAction(u,l){return b.actionCreators[u]=l,w},exposeCaseReducer(u,l){return b.sliceCaseReducersByName[u]=l,w}};g.forEach(u=>{const l=o[u],p={reducerName:u,type:rs(i,u),createNotation:typeof r.reducers=="function"};as(l)?ls(p,l,w,t):cs(p,l,w)});function P(){const[u={},l=[],p=void 0]=typeof r.extraReducers=="function"?Pr(r.extraReducers):[r.extraReducers],h={...u,...b.sliceCaseReducersByType};return Ji(r.initialState,E=>{for(let M in h)E.addCase(M,h[M]);for(let M of b.sliceMatchers)E.addMatcher(M.matcher,M.reducer);for(let M of l)E.addMatcher(M.matcher,M.reducer);p&&E.addDefaultCase(p)})}const _=u=>u,I=new Map,v=new WeakMap;let a;function y(u,l){return a||(a=P()),a(u,l)}function c(){return a||(a=P()),a.getInitialState()}function d(u,l=!1){function p(E){let M=E[u];return typeof M>"u"&&l&&(M=ut(v,p,c)),M}function h(E=_){const M=ut(I,l,()=>new WeakMap);return ut(M,E,()=>{const C={};for(const[S,f]of Object.entries(r.selectors??{}))C[S]=ss(f,E,()=>ut(v,E,c),l);return C})}return{reducerPath:u,getSelectors:h,get selectors(){return h(p)},selectSlice:p}}const A={name:i,reducer:y,actions:b.actionCreators,caseReducers:b.sliceCaseReducersByName,getInitialState:c,...d(s),injectInto(u,{reducerPath:l,...p}={}){const h=l??s;return u.inject({reducerPath:h,reducer:y},p),{...A,...d(h,!0)}}};return A}}function ss(e,t,n,r){function i(s,...o){let g=t(s);return typeof g>"u"&&r&&(g=n()),e(g,...o)}return i.unwrapped=e,i}var Ce=is();function os(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function cs({type:e,reducerName:t,createNotation:n},r,i){let s,o;if("reducer"in r){if(n&&!us(r))throw new Error(X(17));s=r.reducer,o=r.prepare}else s=r;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?ee(e,o):ee(e))}function as(e){return e._reducerDefinitionType==="asyncThunk"}function us(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ls({type:e,reducerName:t},n,r,i){if(!i)throw new Error(X(18));const{payloadCreator:s,fulfilled:o,pending:g,rejected:b,settled:w,options:P}=n,_=i(e,s,P);r.exposeAction(t,_),o&&r.addCase(_.fulfilled,o),g&&r.addCase(_.pending,g),b&&r.addCase(_.rejected,b),w&&r.addMatcher(_.settled,w),r.exposeCaseReducer(t,{fulfilled:o||lt,pending:g||lt,rejected:b||lt,settled:w||lt})}function lt(){}function fs(){return{ids:[],entities:{}}}function ds(e){function t(n={},r){const i=Object.assign(fs(),n);return r?e.setAll(i,r):i}return{getInitialState:t}}function ps(){function e(t,n={}){const{createSelector:r=ji}=n,i=_=>_.ids,s=_=>_.entities,o=r(i,s,(_,I)=>_.map(v=>I[v])),g=(_,I)=>I,b=(_,I)=>_[I],w=r(i,_=>_.length);if(!t)return{selectIds:i,selectEntities:s,selectAll:o,selectTotal:w,selectById:r(s,g,b)};const P=r(t,s);return{selectIds:r(t,i),selectEntities:P,selectAll:r(t,o),selectTotal:r(t,w),selectById:r(P,g,b)}}return{getSelectors:e}}var ys=Z;function hs(e){const t=H((n,r)=>e(r));return function(r){return t(r,void 0)}}function H(e){return function(n,r){function i(o){return zi(o)}const s=o=>{i(r)?e(r.payload,o):e(r,o)};return ys(n)?(s(n),n):Qe(n,s)}}function Ie(e,t){return t(e)}function pe(e){return Array.isArray(e)||(e=Object.values(e)),e}function gt(e){return Z(e)?kt(e):e}function Mr(e,t,n){e=pe(e);const r=gt(n.ids),i=new Set(r),s=[],o=new Set([]),g=[];for(const b of e){const w=Ie(b,t);i.has(w)||o.has(w)?g.push({id:w,changes:b}):(o.add(w),s.push(b))}return[s,g,r]}function Cr(e){function t(a,y){const c=Ie(a,e);c in y.entities||(y.ids.push(c),y.entities[c]=a)}function n(a,y){a=pe(a);for(const c of a)t(c,y)}function r(a,y){const c=Ie(a,e);c in y.entities||y.ids.push(c),y.entities[c]=a}function i(a,y){a=pe(a);for(const c of a)r(c,y)}function s(a,y){a=pe(a),y.ids=[],y.entities={},n(a,y)}function o(a,y){return g([a],y)}function g(a,y){let c=!1;a.forEach(d=>{d in y.entities&&(delete y.entities[d],c=!0)}),c&&(y.ids=y.ids.filter(d=>d in y.entities))}function b(a){Object.assign(a,{ids:[],entities:{}})}function w(a,y,c){const d=c.entities[y.id];if(d===void 0)return!1;const A=Object.assign({},d,y.changes),u=Ie(A,e),l=u!==y.id;return l&&(a[y.id]=u,delete c.entities[y.id]),c.entities[u]=A,l}function P(a,y){return _([a],y)}function _(a,y){const c={},d={};a.forEach(u=>{u.id in y.entities&&(d[u.id]={id:u.id,changes:{...d[u.id]?.changes,...u.changes}})}),a=Object.values(d),a.length>0&&a.filter(l=>w(c,l,y)).length>0&&(y.ids=Object.values(y.entities).map(l=>Ie(l,e)))}function I(a,y){return v([a],y)}function v(a,y){const[c,d]=Mr(a,e,y);n(c,y),_(d,y)}return{removeAll:hs(b),addOne:H(t),addMany:H(n),setOne:H(r),setMany:H(i),setAll:H(s),updateOne:H(P),updateMany:H(_),upsertOne:H(I),upsertMany:H(v),removeOne:H(o),removeMany:H(g)}}function gs(e,t,n){let r=0,i=e.length;for(;r<i;){let s=r+i>>>1;const o=e[s];n(t,o)>=0?r=s+1:i=s}return r}function ms(e,t,n){const r=gs(e,t,n);return e.splice(r,0,t),e}function bs(e,t){const{removeOne:n,removeMany:r,removeAll:i}=Cr(e);function s(c,d){return o([c],d)}function o(c,d,A){c=pe(c);const u=new Set(A??gt(d.ids)),l=new Set,p=c.filter(h=>{const E=Ie(h,e),M=!l.has(E);return M&&l.add(E),!u.has(E)&&M});p.length!==0&&y(d,p)}function g(c,d){return b([c],d)}function b(c,d){let A={};if(c=pe(c),c.length!==0){for(const u of c){const l=e(u);A[l]=u,delete d.entities[l]}c=pe(A),y(d,c)}}function w(c,d){c=pe(c),d.entities={},d.ids=[],o(c,d,[])}function P(c,d){return _([c],d)}function _(c,d){let A=!1,u=!1;for(let l of c){const p=d.entities[l.id];if(!p)continue;A=!0,Object.assign(p,l.changes);const h=e(p);if(l.id!==h){u=!0,delete d.entities[l.id];const E=d.ids.indexOf(l.id);d.ids[E]=h,d.entities[h]=p}}A&&y(d,[],A,u)}function I(c,d){return v([c],d)}function v(c,d){const[A,u,l]=Mr(c,e,d);A.length&&o(A,d,l),u.length&&_(u,d)}function a(c,d){if(c.length!==d.length)return!1;for(let A=0;A<c.length;A++)if(c[A]!==d[A])return!1;return!0}const y=(c,d,A,u)=>{const l=gt(c.entities),p=gt(c.ids),h=c.entities;let E=p;u&&(E=new Set(p));let M=[];for(const f of E){const m=l[f];m&&M.push(m)}const C=M.length===0;for(const f of d)h[e(f)]=f,C||ms(M,f,t);C?M=d.slice().sort(t):A&&M.sort(t);const S=M.map(e);a(p,S)||(c.ids=S)};return{removeOne:n,removeMany:r,removeAll:i,addOne:H(s),updateOne:H(P),upsertOne:H(I),setOne:H(g),setMany:H(b),setAll:H(w),addMany:H(o),updateMany:H(_),upsertMany:H(v)}}function Jo(e={}){const{selectId:t,sortComparer:n}={sortComparer:!1,selectId:o=>o.id,...e},r=n?bs(t,n):Cr(t),i=ds(r),s=ps();return{selectId:t,sortComparer:n,...i,...s,...r}}var vs="task",Ar="listener",Ir="completed",vn="cancelled",Ss=`task-${vn}`,ws=`task-${Ir}`,cn=`${Ar}-${vn}`,_s=`${Ar}-${Ir}`,Ft=class{constructor(e){this.code=e,this.message=`${vs} ${vn} (reason: ${e})`}name="TaskAbortError";message},Sn=(e,t)=>{if(typeof e!="function")throw new TypeError(X(32))},Mt=()=>{},Or=(e,t=Mt)=>(e.catch(t),e),Tr=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Se=e=>{if(e.aborted)throw new Ft(e.reason)};function Dr(e,t){let n=Mt;return new Promise((r,i)=>{const s=()=>i(new Ft(e.reason));if(e.aborted){s();return}n=Tr(e,s),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Mt})}var Es=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Ft?"cancelled":"rejected",error:n}}finally{t?.()}},Ct=e=>t=>Or(Dr(e,t).then(n=>(Se(e),n))),kr=e=>{const t=Ct(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Oe}=Object,Vn={},Lt="listenerMiddleware",Ps=(e,t)=>{const n=r=>Tr(e,()=>r.abort(e.reason));return(r,i)=>{Sn(r);const s=new AbortController;n(s);const o=Es(async()=>{Se(e),Se(s.signal);const g=await r({pause:Ct(s.signal),delay:kr(s.signal),signal:s.signal});return Se(s.signal),g},()=>s.abort(ws));return i?.autoJoin&&t.push(o.catch(Mt)),{result:Ct(e)(o),cancel(){s.abort(Ss)}}}},Rs=(e,t)=>{const n=async(r,i)=>{Se(t);let s=()=>{};const g=[new Promise((b,w)=>{let P=e({predicate:r,effect:(_,I)=>{I.unsubscribe(),b([_,I.getState(),I.getOriginalState()])}});s=()=>{P(),w()}})];i!=null&&g.push(new Promise(b=>setTimeout(b,i,null)));try{const b=await Dr(t,Promise.race(g));return Se(t),b}finally{s()}};return(r,i)=>Or(n(r,i))},Qr=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:s}=e;if(t)i=ee(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(X(21));return Sn(s),{predicate:i,type:t,effect:s}},Nr=Oe(e=>{const{type:t,predicate:n,effect:r}=Qr(e);return{id:qt(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(X(22))}}},{withTypes:()=>Nr}),Kn=(e,t)=>{const{type:n,effect:r,predicate:i}=Qr(t);return Array.from(e.values()).find(s=>(typeof n=="string"?s.type===n:s.predicate===i)&&s.effect===r)},an=e=>{e.pending.forEach(t=>{t.abort(cn)})},Ms=(e,t)=>()=>{for(const n of t.keys())an(n);e.clear()},Wn=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},xr=Oe(ee(`${Lt}/add`),{withTypes:()=>xr}),Cs=ee(`${Lt}/removeAll`),qr=Oe(ee(`${Lt}/remove`),{withTypes:()=>qr}),As=(...e)=>{console.error(`${Lt}/error`,...e)},Yo=(e={})=>{const t=new Map,n=new Map,r=v=>{const a=n.get(v)??0;n.set(v,a+1)},i=v=>{const a=n.get(v)??1;a===1?n.delete(v):n.set(v,a-1)},{extra:s,onError:o=As}=e;Sn(o);const g=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),a=>{v.unsubscribe(),a?.cancelActive&&an(v)}),b=v=>{const a=Kn(t,v)??Nr(v);return g(a)};Oe(b,{withTypes:()=>b});const w=v=>{const a=Kn(t,v);return a&&(a.unsubscribe(),v.cancelActive&&an(a)),!!a};Oe(w,{withTypes:()=>w});const P=async(v,a,y,c)=>{const d=new AbortController,A=Rs(b,d.signal),u=[];try{v.pending.add(d),r(v),await Promise.resolve(v.effect(a,Oe({},y,{getOriginalState:c,condition:(l,p)=>A(l,p).then(Boolean),take:A,delay:kr(d.signal),pause:Ct(d.signal),extra:s,signal:d.signal,fork:Ps(d.signal,u),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((l,p,h)=>{l!==d&&(l.abort(cn),h.delete(l))})},cancel:()=>{d.abort(cn),v.pending.delete(d)},throwIfCancelled:()=>{Se(d.signal)}})))}catch(l){l instanceof Ft||Wn(o,l,{raisedBy:"effect"})}finally{await Promise.all(u),d.abort(_s),i(v),v.pending.delete(d)}},_=Ms(t,n);return{middleware:v=>a=>y=>{if(!Ot(y))return a(y);if(xr.match(y))return b(y.payload);if(Cs.match(y)){_();return}if(qr.match(y))return w(y.payload);let c=v.getState();const d=()=>{if(c===Vn)throw new Error(X(23));return c};let A;try{if(A=a(y),t.size>0){const u=v.getState(),l=Array.from(t.values());for(const p of l){let h=!1;try{h=p.predicate(y,u,c)}catch(E){h=!1,Wn(o,E,{raisedBy:"predicate"})}h&&P(p,y,v,d)}}}finally{c=Vn}return A},startListening:b,stopListening:w,clearListeners:_}};function X(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Is=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},Fr=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Fr||{}),fe="uninitialized",un="pending",Le="fulfilled",je="rejected";function Bn(e){return{status:e,isUninitialized:e===fe,isLoading:e===un,isSuccess:e===Le,isError:e===je}}var Hn=ye;function wn(e,t){if(e===t||!(Hn(e)&&Hn(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const s=Array.isArray(t)?[]:{};for(const o of n)s[o]=wn(e[o],t[o]),i&&(i=e[o]===s[o]);return i?e:s}function ln(e,t,n){return e.reduce((r,i,s)=>(t(i,s)&&r.push(n(i,s)),r),[]).flat()}function Os(e){return new RegExp("(^|:)//").test(e)}function Ts(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function _n(e){return e!=null}function Gn(e){return[...e?.values()??[]].filter(_n)}function Ds(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var ks=e=>e.replace(/\/$/,""),Qs=e=>e.replace(/^\//,"");function Ns(e,t){if(!e)return t;if(!t)return e;if(Os(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=ks(e),t=Qs(t),`${e}${n}${t}`}function At(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var fn=()=>new Map,xs=e=>{const t=new AbortController;return setTimeout(()=>{const n="signal timed out",r="TimeoutError";t.abort(typeof DOMException<"u"?new DOMException(n,r):Object.assign(new Error(n),{name:r}))},e),t.signal},qs=(...e)=>{for(const n of e)if(n.aborted)return AbortSignal.abort(n.reason);const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal},Jn=(...e)=>fetch(...e),Fs=e=>e.status>=200&&e.status<=299,Ls=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Yn(e){if(!ye(e))return e;const t={...e};for(const[n,r]of Object.entries(t))r===void 0&&delete t[n];return t}var js=e=>typeof e=="object"&&(ye(e)||Array.isArray(e)||typeof e.toJSON=="function");function Xo({baseUrl:e,prepareHeaders:t=_=>_,fetchFn:n=Jn,paramsSerializer:r,isJsonContentType:i=Ls,jsonContentType:s="application/json",jsonReplacer:o,timeout:g,responseHandler:b,validateStatus:w,...P}={}){return typeof fetch>"u"&&n===Jn&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(I,v,a)=>{const{getState:y,extra:c,endpoint:d,forced:A,type:u}=v;let l,{url:p,headers:h=new Headers(P.headers),params:E=void 0,responseHandler:M=b??"json",validateStatus:C=w??Fs,timeout:S=g,...f}=typeof I=="string"?{url:I}:I,m={...P,signal:S?qs(v.signal,xs(S)):v.signal,...f};h=new Headers(Yn(h)),m.headers=await t(h,{getState:y,arg:I,extra:c,endpoint:d,forced:A,type:u,extraOptions:a})||h;const R=js(m.body);if(m.body!=null&&!R&&typeof m.body!="string"&&m.headers.delete("content-type"),!m.headers.has("content-type")&&R&&m.headers.set("content-type",s),R&&i(m.headers)&&(m.body=JSON.stringify(m.body,o)),m.headers.has("accept")||(M==="json"?m.headers.set("accept","application/json"):M==="text"&&m.headers.set("accept","text/plain, text/html, */*")),E){const x=~p.indexOf("?")?"&":"?",F=r?r(E):new URLSearchParams(Yn(E));p+=x+F}p=Ns(e,p);const O=new Request(p,m);l={request:new Request(p,m)};let Q;try{Q=await n(O)}catch(x){return{error:{status:(x instanceof Error||typeof DOMException<"u"&&x instanceof DOMException)&&x.name==="TimeoutError"?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(x)},meta:l}}const q=Q.clone();l.response=q;let k,D="";try{let x;if(await Promise.all([_(Q,M).then(F=>k=F,F=>x=F),q.text().then(F=>D=F,()=>{})]),x)throw x}catch(x){return{error:{status:"PARSING_ERROR",originalStatus:Q.status,data:D,error:String(x)},meta:l}}return C(Q,k)?{data:k,meta:l}:{error:{status:Q.status,data:k},meta:l}};async function _(I,v){if(typeof v=="function")return v(I);if(v==="content-type"&&(v=i(I.headers)?"json":"text"),v==="json"){const a=await I.text();return a.length?JSON.parse(a):null}return I.text()}}var Xn=class{constructor(e,t=void 0){this.value=e,this.meta=t}},jt="__rtkq/",Us="online",$s="offline",Lr="focused",En=ee(`${jt}${Lr}`),jr=ee(`${jt}un${Lr}`),Pn=ee(`${jt}${Us}`),Ur=ee(`${jt}${$s}`),st="query",$r="mutation",zr="infinitequery";function Ut(e){return e.type===st}function zs(e){return e.type===$r}function $t(e){return e.type===zr}function It(e){return Ut(e)||$t(e)}function Rn(e,t,n,r,i,s){const o=Vs(e)?e(t,n,r,i):e;return o?ln(o,_n,g=>s(Vr(g))):[]}function Vs(e){return typeof e=="function"}function Vr(e){return typeof e=="string"?{type:e}:e}function Ks(e,t){return e.catch(t)}var ke=(e,t)=>e.endpointDefinitions[t],Ye=Symbol("forceQueryFn"),dn=e=>typeof e[Ye]=="function";function Ws({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:i,context:s,getInternalState:o}){const g=l=>o(l)?.runningQueries,b=l=>o(l)?.runningMutations,{unsubscribeQueryResult:w,removeMutationResult:P,updateSubscriptionOptions:_}=i.internalActions;return{buildInitiateQuery:d,buildInitiateInfiniteQuery:A,buildInitiateMutation:u,getRunningQueryThunk:I,getRunningMutationThunk:v,getRunningQueriesThunk:a,getRunningMutationsThunk:y};function I(l,p){return h=>{const E=ke(s,l),M=e({queryArgs:p,endpointDefinition:E,endpointName:l});return g(h)?.get(M)}}function v(l,p){return h=>b(h)?.get(p)}function a(){return l=>Gn(g(l))}function y(){return l=>Gn(b(l))}function c(l,p){const h=(E,{subscribe:M=!0,forceRefetch:C,subscriptionOptions:S,[Ye]:f,...m}={})=>(R,O)=>{const T=e({queryArgs:E,endpointDefinition:p,endpointName:l});let Q;const q={...m,type:st,subscribe:M,forceRefetch:C,subscriptionOptions:S,endpointName:l,originalArgs:E,queryCacheKey:T,[Ye]:f};if(Ut(p))Q=t(q);else{const{direction:L,initialPageParam:B,refetchCachedPages:U}=m;Q=n({...q,direction:L,initialPageParam:B,refetchCachedPages:U})}const k=i.endpoints[l].select(E),D=R(Q),x=k(O()),{requestId:F,abort:V}=D,K=x.requestId!==F,j=g(R)?.get(T),W=()=>k(O()),z=Object.assign(f?D.then(W):K&&!j?Promise.resolve(x):Promise.all([j,D]).then(W),{arg:E,requestId:F,subscriptionOptions:S,queryCacheKey:T,abort:V,async unwrap(){const L=await z;if(L.isError)throw L.error;return L.data},refetch:L=>R(h(E,{subscribe:!1,forceRefetch:!0,...L})),unsubscribe(){M&&R(w({queryCacheKey:T,requestId:F}))},updateSubscriptionOptions(L){z.subscriptionOptions=L,R(_({endpointName:l,requestId:F,queryCacheKey:T,options:L}))}});if(!j&&!K&&!f){const L=g(R);L.set(T,z),z.then(()=>{L.delete(T)})}return z};return h}function d(l,p){return c(l,p)}function A(l,p){return c(l,p)}function u(l){return(p,{track:h=!0,fixedCacheKey:E}={})=>(M,C)=>{const S=r({type:"mutation",endpointName:l,originalArgs:p,track:h,fixedCacheKey:E}),f=M(S),{requestId:m,abort:R,unwrap:O}=f,T=Ks(f.unwrap().then(D=>({data:D})),D=>({error:D})),Q=()=>{M(P({requestId:m,fixedCacheKey:E}))},q=Object.assign(T,{arg:f.arg,requestId:m,abort:R,unwrap:O,reset:Q}),k=b(M);return k.set(m,q),q.then(()=>{k.delete(m)}),E&&(k.set(E,q),q.then(()=>{k.get(E)===q&&k.delete(E)})),q}}}var Kr=class extends Is{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}},me=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function be(e,t,n,r){const i=await e["~standard"].validate(t);if(i.issues)throw new Kr(i.issues,t,n,r);return i.value}function Zn(e){return e}var xe=(e={})=>({...e,[Qt]:!0});function Bs({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:i,assertTagType:s,selectors:o,onSchemaFailure:g,catchSchemaFailure:b,skipSchemaValidation:w}){const P=(f,m,R,O)=>(T,Q)=>{const q=n[f],k=r({queryArgs:m,endpointDefinition:q,endpointName:f});if(T(i.internalActions.queryResultPatched({queryCacheKey:k,patches:R})),!O)return;const D=i.endpoints[f].select(m)(Q()),x=Rn(q.providesTags,D.data,void 0,m,{},s);T(i.internalActions.updateProvidedBy([{queryCacheKey:k,providedTags:x}]))};function _(f,m,R=0){const O=[m,...f];return R&&O.length>R?O.slice(0,-1):O}function I(f,m,R=0){const O=[...f,m];return R&&O.length>R?O.slice(1):O}const v=(f,m,R,O=!0)=>(T,Q)=>{const k=i.endpoints[f].select(m)(Q()),D={patches:[],inversePatches:[],undo:()=>T(i.util.patchQueryData(f,m,D.inversePatches,O))};if(k.status===fe)return D;let x;if("data"in k)if(re(k.data)){const[F,V,K]=Sr(k.data,R);D.patches.push(...V),D.inversePatches.push(...K),x=F}else x=R(k.data),D.patches.push({op:"replace",path:[],value:x}),D.inversePatches.push({op:"replace",path:[],value:k.data});return D.patches.length===0||T(i.util.patchQueryData(f,m,D.patches,O)),D},a=(f,m,R)=>O=>O(i.endpoints[f].initiate(m,{subscribe:!1,forceRefetch:!0,[Ye]:()=>({data:R})})),y=(f,m)=>f.query&&f[m]?f[m]:Zn,c=async(f,{signal:m,abort:R,rejectWithValue:O,fulfillWithValue:T,dispatch:Q,getState:q,extra:k})=>{const D=n[f.endpointName],{metaSchema:x,skipSchemaValidation:F=w}=D,V=f.type===st;try{let K=Zn;const j={signal:m,abort:R,dispatch:Q,getState:q,extra:k,endpoint:f.endpointName,type:f.type,forced:V?d(f,q()):void 0,queryCacheKey:V?f.queryCacheKey:void 0},W=V?f[Ye]:void 0;let z;const L=async(U,$,se,te)=>{if($==null&&U.pages.length)return Promise.resolve({data:U});const Pe={queryArg:f.originalArgs,pageParam:$},oe=await B(Pe),Re=te?_:I;return{data:{pages:Re(U.pages,oe.data,se),pageParams:Re(U.pageParams,$,se)},meta:oe.meta}};async function B(U){let $;const{extraOptions:se,argSchema:te,rawResponseSchema:Pe,responseSchema:oe}=D;if(te&&!me(F,"arg")&&(U=await be(te,U,"argSchema",{})),W?$=W():D.query?(K=y(D,"transformResponse"),$=await t(D.query(U),j,se)):$=await D.queryFn(U,j,se,Me=>t(Me,j,se)),typeof oi<"u",$.error)throw new Xn($.error,$.meta);let{data:Re}=$;Pe&&!me(F,"rawResponse")&&(Re=await be(Pe,$.data,"rawResponseSchema",$.meta));let de=await K(Re,$.meta,U);return oe&&!me(F,"response")&&(de=await be(oe,de,"responseSchema",$.meta)),{...$,data:de}}if(V&&"infiniteQueryOptions"in D){const{infiniteQueryOptions:U}=D,{maxPages:$=1/0}=U,se=f.refetchCachedPages??U.refetchCachedPages??!0;let te;const Pe={pages:[],pageParams:[]},oe=o.selectQueryEntry(q(),f.queryCacheKey)?.data,de=d(f,q())&&!f.direction||!oe?Pe:oe;if("direction"in f&&f.direction&&de.pages.length){const Me=f.direction==="backward",Vt=(Me?Wr:pn)(U,de,f.originalArgs);te=await L(de,Vt,$,Me)}else{const{initialPageParam:Me=U.initialPageParam}=f,zt=oe?.pageParams??[],Vt=zt[0]??Me,ii=zt.length;if(te=await L(de,Vt,$),W&&(te={data:te.data.pages[0]}),se)for(let Cn=1;Cn<ii;Cn++){const si=pn(U,te.data,f.originalArgs);te=await L(te.data,si,$)}}z=te}else z=await B(f.originalArgs);return x&&!me(F,"meta")&&z.meta&&(z.meta=await be(x,z.meta,"metaSchema",z.meta)),T(z.data,xe({fulfilledTimeStamp:Date.now(),baseQueryMeta:z.meta}))}catch(K){let j=K;if(j instanceof Xn){let W=y(D,"transformErrorResponse");const{rawErrorResponseSchema:z,errorResponseSchema:L}=D;let{value:B,meta:U}=j;try{z&&!me(F,"rawErrorResponse")&&(B=await be(z,B,"rawErrorResponseSchema",U)),x&&!me(F,"meta")&&(U=await be(x,U,"metaSchema",U));let $=await W(B,U,f.originalArgs);return L&&!me(F,"errorResponse")&&($=await be(L,$,"errorResponseSchema",U)),O($,xe({baseQueryMeta:U}))}catch($){j=$}}try{if(j instanceof Kr){const W={endpoint:f.endpointName,arg:f.originalArgs,type:f.type,queryCacheKey:V?f.queryCacheKey:void 0};D.onSchemaFailure?.(j,W),g?.(j,W);const{catchSchemaFailure:z=b}=D;if(z)return O(z(j,W),xe({baseQueryMeta:j._bqMeta}))}}catch(W){j=W}throw console.error(j),j}};function d(f,m){const R=o.selectQueryEntry(m,f.queryCacheKey),O=o.selectConfig(m).refetchOnMountOrArgChange,T=R?.fulfilledTimeStamp,Q=f.forceRefetch??(f.subscribe&&O);return Q?Q===!0||(Number(new Date)-Number(T))/1e3>=Q:!1}const A=()=>zn(`${e}/executeQuery`,c,{getPendingMeta({arg:m}){const R=n[m.endpointName];return xe({startedTimeStamp:Date.now(),...$t(R)?{direction:m.direction}:{}})},condition(m,{getState:R}){const O=R(),T=o.selectQueryEntry(O,m.queryCacheKey),Q=T?.fulfilledTimeStamp,q=m.originalArgs,k=T?.originalArgs,D=n[m.endpointName],x=m.direction;return dn(m)?!0:T?.status==="pending"?!1:d(m,O)||Ut(D)&&D?.forceRefetch?.({currentArg:q,previousArg:k,endpointState:T,state:O})?!0:!(Q&&!x)},dispatchConditionRejection:!0}),u=A(),l=A(),p=zn(`${e}/executeMutation`,c,{getPendingMeta(){return xe({startedTimeStamp:Date.now()})}}),h=f=>"force"in f,E=f=>"ifOlderThan"in f,M=(f,m,R={})=>(O,T)=>{const Q=h(R)&&R.force,q=E(R)&&R.ifOlderThan,k=(x=!0)=>{const F={forceRefetch:x,subscribe:!1};return i.endpoints[f].initiate(m,F)},D=i.endpoints[f].select(m)(T());if(Q)O(k());else if(q){const x=D?.fulfilledTimeStamp;if(!x){O(k());return}(Number(new Date)-Number(new Date(x)))/1e3>=q&&O(k())}else O(k(!1))};function C(f){return m=>m?.meta?.arg?.endpointName===f}function S(f,m){return{matchPending:ze(bn(f),C(m)),matchFulfilled:ze(he(f),C(m)),matchRejected:ze(De(f),C(m))}}return{queryThunk:u,mutationThunk:p,infiniteQueryThunk:l,prefetch:M,updateQueryData:v,upsertQueryData:a,patchQueryData:P,buildMatchThunkActions:S}}function pn(e,{pages:t,pageParams:n},r){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,r)}function Wr(e,{pages:t,pageParams:n},r){return e.getPreviousPageParam?.(t[0],t,n[0],n,r)}function Br(e,t,n,r){return Rn(n[e.meta.arg.endpointName][t],he(e)?e.payload:void 0,xt(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function er(e){return Z(e)?kt(e):e}function ft(e,t,n){const r=e[t];r&&n(r)}function Xe(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function tr(e,t,n){const r=e[Xe(t)];r&&n(r)}var dt={};function Hs({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:i,apiUid:s,extractRehydrationInfo:o,hasRehydrationInfo:g},assertTagType:b,config:w}){const P=ee(`${e}/resetApiState`);function _(C,S,f,m){C[S.queryCacheKey]??={status:fe,endpointName:S.endpointName},ft(C,S.queryCacheKey,R=>{R.status=un,R.requestId=f&&R.requestId?R.requestId:m.requestId,S.originalArgs!==void 0&&(R.originalArgs=S.originalArgs),R.startedTimeStamp=m.startedTimeStamp;const O=i[m.arg.endpointName];$t(O)&&"direction"in S&&(R.direction=S.direction)})}function I(C,S,f,m){ft(C,S.arg.queryCacheKey,R=>{if(R.requestId!==S.requestId&&!m)return;const{merge:O}=i[S.arg.endpointName];if(R.status=Le,O)if(R.data!==void 0){const{fulfilledTimeStamp:T,arg:Q,baseQueryMeta:q,requestId:k}=S;let D=Qe(R.data,x=>O(x,f,{arg:Q.originalArgs,baseQueryMeta:q,fulfilledTimeStamp:T,requestId:k}));R.data=D}else R.data=f;else R.data=i[S.arg.endpointName].structuralSharing??!0?wn(Z(R.data)?di(R.data):R.data,f):f;delete R.error,R.fulfilledTimeStamp=S.fulfilledTimeStamp})}const v=Ce({name:`${e}/queries`,initialState:dt,reducers:{removeQueryResult:{reducer(C,{payload:{queryCacheKey:S}}){delete C[S]},prepare:Ne()},cacheEntriesUpserted:{reducer(C,S){for(const f of S.payload){const{queryDescription:m,value:R}=f;_(C,m,!0,{arg:m,requestId:S.meta.requestId,startedTimeStamp:S.meta.timestamp}),I(C,{arg:m,requestId:S.meta.requestId,fulfilledTimeStamp:S.meta.timestamp,baseQueryMeta:{}},R,!0)}},prepare:C=>({payload:C.map(m=>{const{endpointName:R,arg:O,value:T}=m,Q=i[R];return{queryDescription:{type:st,endpointName:R,originalArgs:m.arg,queryCacheKey:r({queryArgs:O,endpointDefinition:Q,endpointName:R})},value:T}}),meta:{[Qt]:!0,requestId:qt(),timestamp:Date.now()}})},queryResultPatched:{reducer(C,{payload:{queryCacheKey:S,patches:f}}){ft(C,S,m=>{m.data=xn(m.data,f.concat())})},prepare:Ne()}},extraReducers(C){C.addCase(t.pending,(S,{meta:f,meta:{arg:m}})=>{const R=dn(m);_(S,m,R,f)}).addCase(t.fulfilled,(S,{meta:f,payload:m})=>{const R=dn(f.arg);I(S,f,m,R)}).addCase(t.rejected,(S,{meta:{condition:f,arg:m,requestId:R},error:O,payload:T})=>{ft(S,m.queryCacheKey,Q=>{if(!f){if(Q.requestId!==R)return;Q.status=je,Q.error=T??O}})}).addMatcher(g,(S,f)=>{const{queries:m}=o(f);for(const[R,O]of Object.entries(m))(O?.status===Le||O?.status===je)&&(S[R]=O)})}}),a=Ce({name:`${e}/mutations`,initialState:dt,reducers:{removeMutationResult:{reducer(C,{payload:S}){const f=Xe(S);f in C&&delete C[f]},prepare:Ne()}},extraReducers(C){C.addCase(n.pending,(S,{meta:f,meta:{requestId:m,arg:R,startedTimeStamp:O}})=>{R.track&&(S[Xe(f)]={requestId:m,status:un,endpointName:R.endpointName,startedTimeStamp:O})}).addCase(n.fulfilled,(S,{payload:f,meta:m})=>{m.arg.track&&tr(S,m,R=>{R.requestId===m.requestId&&(R.status=Le,R.data=f,R.fulfilledTimeStamp=m.fulfilledTimeStamp)})}).addCase(n.rejected,(S,{payload:f,error:m,meta:R})=>{R.arg.track&&tr(S,R,O=>{O.requestId===R.requestId&&(O.status=je,O.error=f??m)})}).addMatcher(g,(S,f)=>{const{mutations:m}=o(f);for(const[R,O]of Object.entries(m))(O?.status===Le||O?.status===je)&&R!==O?.requestId&&(S[R]=O)})}}),y={tags:{},keys:{}},c=Ce({name:`${e}/invalidation`,initialState:y,reducers:{updateProvidedBy:{reducer(C,S){for(const{queryCacheKey:f,providedTags:m}of S.payload){d(C,f);for(const{type:R,id:O}of m){const T=(C.tags[R]??={})[O||"__internal_without_id"]??=[];T.includes(f)||T.push(f)}C.keys[f]=m}},prepare:Ne()}},extraReducers(C){C.addCase(v.actions.removeQueryResult,(S,{payload:{queryCacheKey:f}})=>{d(S,f)}).addMatcher(g,(S,f)=>{const{provided:m}=o(f);for(const[R,O]of Object.entries(m.tags??{}))for(const[T,Q]of Object.entries(O)){const q=(S.tags[R]??={})[T||"__internal_without_id"]??=[];for(const k of Q)q.includes(k)||q.push(k),S.keys[k]=m.keys[k]}}).addMatcher(le(he(t),xt(t)),(S,f)=>{A(S,[f])}).addMatcher(v.actions.cacheEntriesUpserted.match,(S,f)=>{const m=f.payload.map(({queryDescription:R,value:O})=>({type:"UNKNOWN",payload:O,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:R}}));A(S,m)})}});function d(C,S){const f=er(C.keys[S]??[]);for(const m of f){const R=m.type,O=m.id??"__internal_without_id",T=C.tags[R]?.[O];T&&(C.tags[R][O]=er(T).filter(Q=>Q!==S))}delete C.keys[S]}function A(C,S){const f=S.map(m=>{const R=Br(m,"providesTags",i,b),{queryCacheKey:O}=m.meta.arg;return{queryCacheKey:O,providedTags:R}});c.caseReducers.updateProvidedBy(C,c.actions.updateProvidedBy(f))}const u=Ce({name:`${e}/subscriptions`,initialState:dt,reducers:{updateSubscriptionOptions(C,S){},unsubscribeQueryResult(C,S){},internal_getRTKQSubscriptions(){}}}),l=Ce({name:`${e}/internalSubscriptions`,initialState:dt,reducers:{subscriptionsUpdated:{reducer(C,S){return xn(C,S.payload)},prepare:Ne()}}}),p=Ce({name:`${e}/config`,initialState:{online:Ds(),focused:Ts(),middlewareRegistered:!1,...w},reducers:{middlewareRegistered(C,{payload:S}){C.middlewareRegistered=C.middlewareRegistered==="conflict"||s!==S?"conflict":!0}},extraReducers:C=>{C.addCase(Pn,S=>{S.online=!0}).addCase(Ur,S=>{S.online=!1}).addCase(En,S=>{S.focused=!0}).addCase(jr,S=>{S.focused=!1}).addMatcher(g,S=>({...S}))}}),h=dr({queries:v.reducer,mutations:a.reducer,provided:c.reducer,subscriptions:l.reducer,config:p.reducer}),E=(C,S)=>h(P.match(S)?void 0:C,S),M={...p.actions,...v.actions,...u.actions,...l.actions,...a.actions,...c.actions,resetApiState:P};return{reducer:E,actions:M}}var ie=Symbol.for("RTKQ/skipToken"),Hr={status:fe},nr=Qe(Hr,()=>{}),rr=Qe(Hr,()=>{});function Gs({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=u=>nr,i=u=>rr;return{buildQuerySelector:I,buildInfiniteQuerySelector:v,buildMutationSelector:a,selectInvalidatedBy:y,selectCachedArgsForQuery:c,selectApiState:o,selectQueries:g,selectMutations:w,selectQueryEntry:b,selectConfig:P};function s(u){return{...u,...Bn(u.status)}}function o(u){return u[t]}function g(u){return o(u)?.queries}function b(u,l){return g(u)?.[l]}function w(u){return o(u)?.mutations}function P(u){return o(u)?.config}function _(u,l,p){return h=>{if(h===ie)return n(r,p);const E=e({queryArgs:h,endpointDefinition:l,endpointName:u});return n(C=>b(C,E)??nr,p)}}function I(u,l){return _(u,l,s)}function v(u,l){const{infiniteQueryOptions:p}=l;function h(E){const M={...E,...Bn(E.status)},{isLoading:C,isError:S,direction:f}=M,m=f==="forward",R=f==="backward";return{...M,hasNextPage:d(p,M.data,M.originalArgs),hasPreviousPage:A(p,M.data,M.originalArgs),isFetchingNextPage:C&&m,isFetchingPreviousPage:C&&R,isFetchNextPageError:S&&m,isFetchPreviousPageError:S&&R}}return _(u,l,h)}function a(){return u=>{let l;return typeof u=="object"?l=Xe(u)??ie:l=u,n(l===ie?i:E=>o(E)?.mutations?.[l]??rr,s)}}function y(u,l){const p=u[t],h=new Set,E=ln(l,_n,Vr);for(const M of E){const C=p.provided.tags[M.type];if(!C)continue;let S=(M.id!==void 0?C[M.id]:Object.values(C).flat())??[];for(const f of S)h.add(f)}return Array.from(h.values()).flatMap(M=>{const C=p.queries[M];return C?{queryCacheKey:M,endpointName:C.endpointName,originalArgs:C.originalArgs}:[]})}function c(u,l){return ln(Object.values(g(u)),p=>p?.endpointName===l&&p.status!==fe,p=>p.originalArgs)}function d(u,l,p){return l?pn(u,l,p)!=null:!1}function A(u,l,p){return!l||!u.getPreviousPageParam?!1:Wr(u,l,p)!=null}}var ir=WeakMap?new WeakMap:void 0,sr=({endpointName:e,queryArgs:t})=>{let n="";const r=ir?.get(t);if(typeof r=="string")n=r;else{const i=JSON.stringify(t,(s,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=ye(o)?Object.keys(o).sort().reduce((g,b)=>(g[b]=o[b],g),{}):o,o));ye(t)&&ir?.set(t,i),n=i}return`${e}(${n})`};function Gr(...e){return function(n){const r=Je(w=>n.extractRehydrationInfo?.(w,{reducerPath:n.reducerPath??"api"})),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(w){let P=sr;if("serializeQueryArgs"in w.endpointDefinition){const _=w.endpointDefinition.serializeQueryArgs;P=I=>{const v=_(I);return typeof v=="string"?v:sr({...I,queryArgs:v})}}else n.serializeQueryArgs&&(P=n.serializeQueryArgs);return P(w)},tagTypes:[...n.tagTypes||[]]},s={endpointDefinitions:{},batch(w){w()},apiUid:qt(),extractRehydrationInfo:r,hasRehydrationInfo:Je(w=>r(w)!=null)},o={injectEndpoints:b,enhanceEndpoints({addTagTypes:w,endpoints:P}){if(w)for(const _ of w)i.tagTypes.includes(_)||i.tagTypes.push(_);if(P)for(const[_,I]of Object.entries(P))typeof I=="function"?I(ke(s,_)):Object.assign(ke(s,_)||{},I);return o}},g=e.map(w=>w.init(o,i,s));function b(w){const P=w.endpoints({query:_=>({..._,type:st}),mutation:_=>({..._,type:$r}),infiniteQuery:_=>({..._,type:zr})});for(const[_,I]of Object.entries(P)){if(w.overrideExisting!==!0&&_ in s.endpointDefinitions){if(w.overrideExisting==="throw")throw new Error(X(39));continue}s.endpointDefinitions[_]=I;for(const v of g)v.injectEndpoint(_,I)}return o}return o.injectEndpoints({endpoints:n.endpoints})}}function Zo(){return function(){throw new Error(X(33))}}function ce(e,...t){return Object.assign(e,...t)}var Js=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const i=`${e.reducerPath}/subscriptions`;let s=null,o=null;const{updateSubscriptionOptions:g,unsubscribeQueryResult:b}=e.internalActions,w=(y,c)=>{if(g.match(c)){const{queryCacheKey:A,requestId:u,options:l}=c.payload,p=y.get(A);return p?.has(u)&&p.set(u,l),!0}if(b.match(c)){const{queryCacheKey:A,requestId:u}=c.payload,l=y.get(A);return l&&l.delete(u),!0}if(e.internalActions.removeQueryResult.match(c))return y.delete(c.payload.queryCacheKey),!0;if(t.pending.match(c)){const{meta:{arg:A,requestId:u}}=c,l=At(y,A.queryCacheKey,fn);return A.subscribe&&l.set(u,A.subscriptionOptions??l.get(u)??{}),!0}let d=!1;if(t.rejected.match(c)){const{meta:{condition:A,arg:u,requestId:l}}=c;if(A&&u.subscribe){const p=At(y,u.queryCacheKey,fn);p.set(l,u.subscriptionOptions??p.get(l)??{}),d=!0}}return d},P=()=>n.currentSubscriptions,v={getSubscriptions:P,getSubscriptionCount:y=>P().get(y)?.size??0,isRequestSubscribed:(y,c)=>!!P()?.get(y)?.get(c)};function a(y){return JSON.parse(JSON.stringify(Object.fromEntries([...y].map(([c,d])=>[c,Object.fromEntries(d)]))))}return(y,c)=>{if(s||(s=a(n.currentSubscriptions)),e.util.resetApiState.match(y))return s={},n.currentSubscriptions.clear(),o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(y))return[!1,v];const d=w(n.currentSubscriptions,y);let A=!0;if(d){o||(o=setTimeout(()=>{const p=a(n.currentSubscriptions),[,h]=Sr(s,()=>p);c.next(e.internalActions.subscriptionsUpdated(h)),s=p,o=null},500));const u=typeof y.type=="string"&&!!y.type.startsWith(i),l=t.rejected.match(y)&&y.meta.condition&&!!y.meta.arg.subscribe;A=!u&&!l}return[A,!1]}},Ys=2147483647/1e3-1,Xs=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i,selectors:{selectQueryEntry:s,selectConfig:o},getRunningQueryThunk:g,mwApi:b})=>{const{removeQueryResult:w,unsubscribeQueryResult:P,cacheEntriesUpserted:_}=t.internalActions,I=le(P.match,n.fulfilled,n.rejected,_.match);function v(u){const l=i.currentSubscriptions.get(u);return l?l.size>0:!1}const a={};function y(u){for(const l of u.values())l?.abort?.()}const c=(u,l)=>{const p=l.getState(),h=o(p);if(I(u)){let E;if(_.match(u))E=u.payload.map(M=>M.queryDescription.queryCacheKey);else{const{queryCacheKey:M}=P.match(u)?u.payload:u.meta.arg;E=[M]}d(E,l,h)}if(t.util.resetApiState.match(u)){for(const[E,M]of Object.entries(a))M&&clearTimeout(M),delete a[E];y(i.runningQueries),y(i.runningMutations)}if(r.hasRehydrationInfo(u)){const{queries:E}=r.extractRehydrationInfo(u);d(Object.keys(E),l,h)}};function d(u,l,p){const h=l.getState();for(const E of u){const M=s(h,E);M?.endpointName&&A(E,M.endpointName,l,p)}}function A(u,l,p,h){const M=ke(r,l)?.keepUnusedDataFor??h.keepUnusedDataFor;if(M===1/0)return;const C=Math.max(0,Math.min(M,Ys));if(!v(u)){const S=a[u];S&&clearTimeout(S),a[u]=setTimeout(()=>{if(!v(u)){const f=s(p.getState(),u);f?.endpointName&&p.dispatch(g(f.endpointName,f.originalArgs))?.abort(),p.dispatch(w({queryCacheKey:u}))}delete a[u]},C*1e3)}}return c},or=new Error("Promise never resolved before cacheEntryRemoved."),Zs=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:s,selectors:{selectQueryEntry:o,selectApiState:g}})=>{const b=on(r),w=on(i),P=he(r,i),_={},{removeQueryResult:I,removeMutationResult:v,cacheEntriesUpserted:a}=e.internalActions;function y(p,h,E){const M=_[p];M?.valueResolved&&(M.valueResolved({data:h,meta:E}),delete M.valueResolved)}function c(p){const h=_[p];h&&(delete _[p],h.cacheEntryRemoved())}function d(p){const{arg:h,requestId:E}=p.meta,{endpointName:M,originalArgs:C}=h;return[M,C,E]}const A=(p,h,E)=>{const M=u(p);function C(S,f,m,R){const O=o(E,f),T=o(h.getState(),f);!O&&T&&l(S,R,f,h,m)}if(r.pending.match(p)){const[S,f,m]=d(p);C(S,M,m,f)}else if(a.match(p))for(const{queryDescription:S,value:f}of p.payload){const{endpointName:m,originalArgs:R,queryCacheKey:O}=S;C(m,O,p.meta.requestId,R),y(O,f,{})}else if(i.pending.match(p)){if(h.getState()[t].mutations[M]){const[f,m,R]=d(p);l(f,m,M,h,R)}}else if(P(p))y(M,p.payload,p.meta.baseQueryMeta);else if(I.match(p)||v.match(p))c(M);else if(e.util.resetApiState.match(p))for(const S of Object.keys(_))c(S)};function u(p){return b(p)?p.meta.arg.queryCacheKey:w(p)?p.meta.arg.fixedCacheKey??p.meta.requestId:I.match(p)?p.payload.queryCacheKey:v.match(p)?Xe(p.payload):""}function l(p,h,E,M,C){const S=ke(n,p),f=S?.onCacheEntryAdded;if(!f)return;const m={},R=new Promise(D=>{m.cacheEntryRemoved=D}),O=Promise.race([new Promise(D=>{m.valueResolved=D}),R.then(()=>{throw or})]);O.catch(()=>{}),_[E]=m;const T=e.endpoints[p].select(It(S)?h:E),Q=M.dispatch((D,x,F)=>F),q={...M,getCacheEntry:()=>T(M.getState()),requestId:C,extra:Q,updateCachedData:It(S)?D=>M.dispatch(e.util.updateQueryData(p,h,D)):void 0,cacheDataLoaded:O,cacheEntryRemoved:R},k=f(h,q);Promise.resolve(k).catch(D=>{if(D!==or)throw D})}return A},eo=({api:e,context:{apiUid:t},reducerPath:n})=>(r,i)=>{e.util.resetApiState.match(r)&&i.dispatch(e.internalActions.middlewareRegistered(t))},to=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:s,assertTagType:o,refetchQuery:g,internalState:b})=>{const{removeQueryResult:w}=s.internalActions,P=le(he(r),xt(r)),_=le(he(i,r),De(i,r));let I=[],v=0;const a=(d,A)=>{(i.pending.match(d)||r.pending.match(d))&&v++,_(d)&&(v=Math.max(0,v-1)),P(d)?c(Br(d,"invalidatesTags",n,o),A):_(d)?c([],A):s.util.invalidateTags.match(d)&&c(Rn(d.payload,void 0,void 0,void 0,void 0,o),A)};function y(){return v>0}function c(d,A){const u=A.getState(),l=u[e];if(I.push(...d),l.config.invalidationBehavior==="delayed"&&y())return;const p=I;if(I=[],p.length===0)return;const h=s.util.selectInvalidatedBy(u,p);t.batch(()=>{const E=Array.from(h.values());for(const{queryCacheKey:M}of E){const C=l.queries[M],S=At(b.currentSubscriptions,M,fn);C&&(S.size===0?A.dispatch(w({queryCacheKey:M})):C.status!==fe&&A.dispatch(g(C)))}})}return a},no=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const{currentPolls:s,currentSubscriptions:o}=i,g=new Set;let b=null;const w=(c,d)=>{(n.internalActions.updateSubscriptionOptions.match(c)||n.internalActions.unsubscribeQueryResult.match(c))&&P(c.payload.queryCacheKey,d),(t.pending.match(c)||t.rejected.match(c)&&c.meta.condition)&&P(c.meta.arg.queryCacheKey,d),(t.fulfilled.match(c)||t.rejected.match(c)&&!c.meta.condition)&&_(c.meta.arg,d),n.util.resetApiState.match(c)&&(a(),b&&(clearTimeout(b),b=null),g.clear())};function P(c,d){g.add(c),b||(b=setTimeout(()=>{for(const A of g)I({queryCacheKey:A},d);g.clear(),b=null},0))}function _({queryCacheKey:c},d){const A=d.getState()[e],u=A.queries[c],l=o.get(c);if(!u||u.status===fe)return;const{lowestPollingInterval:p,skipPollingIfUnfocused:h}=y(l);if(!Number.isFinite(p))return;const E=s.get(c);E?.timeout&&(clearTimeout(E.timeout),E.timeout=void 0);const M=Date.now()+p;s.set(c,{nextPollTimestamp:M,pollingInterval:p,timeout:setTimeout(()=>{(A.config.focused||!h)&&d.dispatch(r(u)),_({queryCacheKey:c},d)},p)})}function I({queryCacheKey:c},d){const u=d.getState()[e].queries[c],l=o.get(c);if(!u||u.status===fe)return;const{lowestPollingInterval:p}=y(l);if(!Number.isFinite(p)){v(c);return}const h=s.get(c),E=Date.now()+p;(!h||E<h.nextPollTimestamp)&&_({queryCacheKey:c},d)}function v(c){const d=s.get(c);d?.timeout&&clearTimeout(d.timeout),s.delete(c)}function a(){for(const c of s.keys())v(c)}function y(c=new Map){let d=!1,A=Number.POSITIVE_INFINITY;for(const u of c.values())u.pollingInterval&&(A=Math.min(u.pollingInterval,A),d=u.skipPollingIfUnfocused||d);return{lowestPollingInterval:A,skipPollingIfUnfocused:d}}return w},ro=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=bn(n,r),s=De(n,r),o=he(n,r),g={};return(w,P)=>{if(i(w)){const{requestId:_,arg:{endpointName:I,originalArgs:v}}=w.meta,a=ke(t,I),y=a?.onQueryStarted;if(y){const c={},d=new Promise((p,h)=>{c.resolve=p,c.reject=h});d.catch(()=>{}),g[_]=c;const A=e.endpoints[I].select(It(a)?v:_),u=P.dispatch((p,h,E)=>E),l={...P,getCacheEntry:()=>A(P.getState()),requestId:_,extra:u,updateCachedData:It(a)?p=>P.dispatch(e.util.updateQueryData(I,v,p)):void 0,queryFulfilled:d};y(v,l)}}else if(o(w)){const{requestId:_,baseQueryMeta:I}=w.meta;g[_]?.resolve({data:w.payload,meta:I}),delete g[_]}else if(s(w)){const{requestId:_,rejectedWithValue:I,baseQueryMeta:v}=w.meta;g[_]?.reject({error:w.payload??w.error,isUnhandledError:!I,meta:v}),delete g[_]}}},io=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:s}=n.internalActions,o=(b,w)=>{En.match(b)&&g(w,"refetchOnFocus"),Pn.match(b)&&g(w,"refetchOnReconnect")};function g(b,w){const P=b.getState()[e],_=P.queries,I=i.currentSubscriptions;t.batch(()=>{for(const v of I.keys()){const a=_[v],y=I.get(v);if(!y||!a)continue;const c=[...y.values()];(c.some(A=>A[w]===!0)||c.every(A=>A[w]===void 0)&&P.config[w])&&(y.size===0?b.dispatch(s({queryCacheKey:v})):a.status!==fe&&b.dispatch(r(a)))}})}return o};function so(e){const{reducerPath:t,queryThunk:n,api:r,context:i,getInternalState:s}=e,{apiUid:o}=i,g={invalidateTags:ee(`${t}/invalidateTags`)},b=I=>I.type.startsWith(`${t}/`),w=[eo,Xs,to,no,Zs,ro];return{middleware:I=>{let v=!1;const a=s(I.dispatch),y={...e,internalState:a,refetchQuery:_,isThisApiSliceAction:b,mwApi:I},c=w.map(u=>u(y)),d=Js(y),A=io(y);return u=>l=>{if(!Ot(l))return u(l);v||(v=!0,I.dispatch(r.internalActions.middlewareRegistered(o)));const p={...I,next:u},h=I.getState(),[E,M]=d(l,p,h);let C;if(E?C=u(l):C=M,I.getState()[t]&&(A(l,p,h),b(l)||i.hasRehydrationInfo(l)))for(const S of c)S(l,p,h);return C}},actions:g};function _(I){return e.api.endpoints[I.endpointName].initiate(I.originalArgs,{subscribe:!1,forceRefetch:!0})}}var cr=Symbol(),Jr=({createSelector:e=mn}={})=>({name:cr,init(t,{baseQuery:n,tagTypes:r,reducerPath:i,serializeQueryArgs:s,keepUnusedDataFor:o,refetchOnMountOrArgChange:g,refetchOnFocus:b,refetchOnReconnect:w,invalidationBehavior:P,onSchemaFailure:_,catchSchemaFailure:I,skipSchemaValidation:v},a){Ci();const y=L=>L;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:Pn,onOffline:Ur,onFocus:En,onFocusLost:jr},util:{}});const c=Gs({serializeQueryArgs:s,reducerPath:i,createSelector:e}),{selectInvalidatedBy:d,selectCachedArgsForQuery:A,buildQuerySelector:u,buildInfiniteQuerySelector:l,buildMutationSelector:p}=c;ce(t.util,{selectInvalidatedBy:d,selectCachedArgsForQuery:A});const{queryThunk:h,infiniteQueryThunk:E,mutationThunk:M,patchQueryData:C,updateQueryData:S,upsertQueryData:f,prefetch:m,buildMatchThunkActions:R}=Bs({baseQuery:n,reducerPath:i,context:a,api:t,serializeQueryArgs:s,assertTagType:y,selectors:c,onSchemaFailure:_,catchSchemaFailure:I,skipSchemaValidation:v}),{reducer:O,actions:T}=Hs({context:a,queryThunk:h,mutationThunk:M,serializeQueryArgs:s,reducerPath:i,assertTagType:y,config:{refetchOnFocus:b,refetchOnReconnect:w,refetchOnMountOrArgChange:g,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:P}});ce(t.util,{patchQueryData:C,updateQueryData:S,upsertQueryData:f,prefetch:m,resetApiState:T.resetApiState,upsertQueryEntries:T.cacheEntriesUpserted}),ce(t.internalActions,T);const Q=new WeakMap,q=L=>At(Q,L,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:k,buildInitiateInfiniteQuery:D,buildInitiateMutation:x,getRunningMutationThunk:F,getRunningMutationsThunk:V,getRunningQueriesThunk:K,getRunningQueryThunk:j}=Ws({queryThunk:h,mutationThunk:M,infiniteQueryThunk:E,api:t,serializeQueryArgs:s,context:a,getInternalState:q});ce(t.util,{getRunningMutationThunk:F,getRunningMutationsThunk:V,getRunningQueryThunk:j,getRunningQueriesThunk:K});const{middleware:W,actions:z}=so({reducerPath:i,context:a,queryThunk:h,mutationThunk:M,infiniteQueryThunk:E,api:t,assertTagType:y,selectors:c,getRunningQueryThunk:j,getInternalState:q});return ce(t.util,z),ce(t,{reducer:O,middleware:W}),{name:cr,injectEndpoint(L,B){const U=t,$=U.endpoints[L]??={};Ut(B)&&ce($,{name:L,select:u(L,B),initiate:k(L,B)},R(h,L)),zs(B)&&ce($,{name:L,select:p(),initiate:x(L)},R(M,L)),$t(B)&&ce($,{name:L,select:l(L,B),initiate:D(L,B)},R(h,L))}}}});Jr();var Yr={exports:{}},Xr={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-with-selector.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ot=N;function oo(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var co=typeof Object.is=="function"?Object.is:oo,ao=ot.useSyncExternalStore,uo=ot.useRef,lo=ot.useEffect,fo=ot.useMemo,po=ot.useDebugValue;Xr.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=uo(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=fo(function(){function b(v){if(!w){if(w=!0,P=v,v=r(v),i!==void 0&&o.hasValue){var a=o.value;if(i(a,v))return _=a}return _=v}if(a=_,co(P,v))return a;var y=r(v);return i!==void 0&&i(a,y)?(P=v,a):(P=v,_=y)}var w=!1,P,_,I=n===void 0?null:n;return[function(){return b(t())},I===null?void 0:function(){return b(I())}]},[t,n,r,i]);var g=ao(e,s[0],s[1]);return lo(function(){o.hasValue=!0,o.value=g},[g]),po(g),g};Yr.exports=Xr;var yo=Yr.exports;function Zr(e){e()}function ho(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Zr(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var ar={notify(){},get:()=>[]};function go(e,t){let n,r=ar,i=0,s=!1;function o(y){P();const c=r.subscribe(y);let d=!1;return()=>{d||(d=!0,c(),_())}}function g(){r.notify()}function b(){a.onStateChange&&a.onStateChange()}function w(){return s}function P(){i++,n||(n=e.subscribe(b),r=ho())}function _(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=ar)}function I(){s||(s=!0,P())}function v(){s&&(s=!1,_())}const a={addNestedSub:o,notifyNestedSubs:g,handleChangeWrapper:b,isSubscribed:w,trySubscribe:I,tryUnsubscribe:v,getListeners:()=>r};return a}var mo=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bo=mo(),vo=()=>typeof navigator<"u"&&navigator.product==="ReactNative",So=vo(),wo=()=>bo||So?N.useLayoutEffect:N.useEffect,_o=wo();function ur(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Ve(e,t){if(ur(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!ur(e[n[i]],t[n[i]]))return!1;return!0}var Eo=Symbol.for("react-redux-context"),Po=typeof globalThis<"u"?globalThis:{};function Ro(){if(!N.createContext)return{};const e=Po[Eo]??=new Map;let t=e.get(N.createContext);return t||(t=N.createContext(null),e.set(N.createContext,t)),t}var ge=Ro();function Mo(e){const{children:t,context:n,serverState:r,store:i}=e,s=N.useMemo(()=>{const b=go(i);return{store:i,subscription:b,getServerState:r?()=>r:void 0}},[i,r]),o=N.useMemo(()=>i.getState(),[i]);_o(()=>{const{subscription:b}=s;return b.onStateChange=b.notifyNestedSubs,b.trySubscribe(),o!==i.getState()&&b.notifyNestedSubs(),()=>{b.tryUnsubscribe(),b.onStateChange=void 0}},[s,o]);const g=n||ge;return N.createElement(g.Provider,{value:s},t)}var ec=Mo;function Mn(e=ge){return function(){return N.useContext(e)}}var ei=Mn();function ti(e=ge){const t=e===ge?ei:Mn(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var ni=ti();function Co(e=ge){const t=e===ge?ni:ti(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ao=Co(),Io=(e,t)=>e===t;function Oo(e=ge){const t=e===ge?ei:Mn(e),n=(r,i={})=>{const{equalityFn:s=Io}=typeof i=="function"?{equalityFn:i}:i,o=t(),{store:g,subscription:b,getServerState:w}=o;N.useRef(!0);const P=N.useCallback({[r.name](I){return r(I)}}[r.name],[r]),_=yo.useSyncExternalStoreWithSelector(b.addNestedSub,g.getState,w||g.getState,P,s);return N.useDebugValue(_),_};return Object.assign(n,{withTypes:()=>n}),n}var To=Oo(),Do=Zr;function pt(e){return e.replace(e[0],e[0].toUpperCase())}var ko="query",Qo="mutation",No="infinitequery";function xo(e){return e.type===ko}function qo(e){return e.type===Qo}function ri(e){return e.type===No}function qe(e,...t){return Object.assign(e,...t)}var Gt=Symbol();function Jt(e){const t=N.useRef(e),n=N.useMemo(()=>wn(t.current,e),[e]);return N.useEffect(()=>{t.current!==n&&(t.current=n)},[n]),n}function Ae(e){const t=N.useRef(e);return N.useEffect(()=>{Ve(t.current,e)||(t.current=e)},[e]),Ve(t.current,e)?t.current:e}var Fo=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lo=Fo(),jo=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Uo=jo(),$o=()=>Lo||Uo?N.useLayoutEffect:N.useEffect,zo=$o(),lr=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Fr.pending}:e;function Yt(e,...t){const n={};return t.forEach(r=>{n[r]=e[r]}),n}var Xt=["data","status","isLoading","isSuccess","isError","error"];function Vo({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:i},unstable__sideEffectsInRender:s,createSelector:o},serializeQueryArgs:g,context:b}){const w=s?h=>h():N.useEffect,P=h=>h.current?.unsubscribe?.(),_=b.endpointDefinitions;return{buildQueryHooks:u,buildInfiniteQueryHooks:l,buildMutationHook:p,usePrefetch:a};function I(h,E,M){if(E?.endpointName&&h.isUninitialized){const{endpointName:O}=E,T=_[O];M!==ie&&g({queryArgs:E.originalArgs,endpointDefinition:T,endpointName:O})===g({queryArgs:M,endpointDefinition:T,endpointName:O})&&(E=void 0)}let C=h.isSuccess?h.data:E?.data;C===void 0&&(C=h.data);const S=C!==void 0,f=h.isLoading,m=(!E||E.isLoading||E.isUninitialized)&&!S&&f,R=h.isSuccess||S&&(f&&!E?.isError||h.isUninitialized);return{...h,data:C,currentData:h.data,isFetching:f,isLoading:m,isSuccess:R}}function v(h,E,M){if(E?.endpointName&&h.isUninitialized){const{endpointName:O}=E,T=_[O];M!==ie&&g({queryArgs:E.originalArgs,endpointDefinition:T,endpointName:O})===g({queryArgs:M,endpointDefinition:T,endpointName:O})&&(E=void 0)}let C=h.isSuccess?h.data:E?.data;C===void 0&&(C=h.data);const S=C!==void 0,f=h.isLoading,m=(!E||E.isLoading||E.isUninitialized)&&!S&&f,R=h.isSuccess||f&&S;return{...h,data:C,currentData:h.data,isFetching:f,isLoading:m,isSuccess:R}}function a(h,E){const M=n(),C=Ae(E);return N.useCallback((S,f)=>M(e.util.prefetch(h,S,{...C,...f})),[h,M,C])}function y(h,E,{refetchOnReconnect:M,refetchOnFocus:C,refetchOnMountOrArgChange:S,skip:f=!1,pollingInterval:m=0,skipPollingIfUnfocused:R=!1,...O}={}){const{initiate:T}=e.endpoints[h],Q=n(),q=N.useRef(void 0);if(!q.current){const U=Q(e.internalActions.internal_getRTKQSubscriptions());q.current=U}const k=Jt(f?ie:E),D=Ae({refetchOnReconnect:M,refetchOnFocus:C,pollingInterval:m,skipPollingIfUnfocused:R}),x=O.initialPageParam,F=Ae(x),V=O.refetchCachedPages,K=Ae(V),j=N.useRef(void 0);let{queryCacheKey:W,requestId:z}=j.current||{},L=!1;W&&z&&(L=q.current.isRequestSubscribed(W,z));const B=!L&&j.current!==void 0;return w(()=>{B&&(j.current=void 0)},[B]),w(()=>{const U=j.current;if(k===ie){U?.unsubscribe(),j.current=void 0;return}const $=j.current?.subscriptionOptions;if(!U||U.arg!==k){U?.unsubscribe();const se=Q(T(k,{subscriptionOptions:D,forceRefetch:S,...ri(_[h])?{initialPageParam:F,refetchCachedPages:K}:{}}));j.current=se}else D!==$&&U.updateSubscriptionOptions(D)},[Q,T,S,k,D,B,F,K,h]),[j,Q,T,D]}function c(h,E){return(C,{skip:S=!1,selectFromResult:f}={})=>{const{select:m}=e.endpoints[h],R=Jt(S?ie:C),O=N.useRef(void 0),T=N.useMemo(()=>o([m(R),(x,F)=>F,x=>R],E,{memoizeOptions:{resultEqualityCheck:Ve}}),[m,R]),Q=N.useMemo(()=>f?o([T],f,{devModeChecks:{identityFunctionCheck:"never"}}):T,[T,f]),q=r(x=>Q(x,O.current),Ve),k=i(),D=T(k.getState(),O.current);return zo(()=>{O.current=D},[D]),q}}function d(h){N.useEffect(()=>()=>{P(h),h.current=void 0},[h])}function A(h){if(!h.current)throw new Error(X(38));return h.current.refetch()}function u(h){const E=(S,f={})=>{const[m]=y(h,S,f);return d(m),N.useMemo(()=>({refetch:()=>A(m)}),[m])},M=({refetchOnReconnect:S,refetchOnFocus:f,pollingInterval:m=0,skipPollingIfUnfocused:R=!1}={})=>{const{initiate:O}=e.endpoints[h],T=n(),[Q,q]=N.useState(Gt),k=N.useRef(void 0),D=Ae({refetchOnReconnect:S,refetchOnFocus:f,pollingInterval:m,skipPollingIfUnfocused:R});w(()=>{const K=k.current?.subscriptionOptions;D!==K&&k.current?.updateSubscriptionOptions(D)},[D]);const x=N.useRef(D);w(()=>{x.current=D},[D]);const F=N.useCallback(function(K,j=!1){let W;return t(()=>{P(k),k.current=W=T(O(K,{subscriptionOptions:x.current,forceRefetch:!j})),q(K)}),W},[T,O]),V=N.useCallback(()=>{k.current?.queryCacheKey&&T(e.internalActions.removeQueryResult({queryCacheKey:k.current?.queryCacheKey}))},[T]);return N.useEffect(()=>()=>{P(k)},[]),N.useEffect(()=>{Q!==Gt&&!k.current&&F(Q,!0)},[Q,F]),N.useMemo(()=>[F,Q,{reset:V}],[F,Q,V])},C=c(h,I);return{useQueryState:C,useQuerySubscription:E,useLazyQuerySubscription:M,useLazyQuery(S){const[f,m,{reset:R}]=M(S),O=C(m,{...S,skip:m===Gt}),T=N.useMemo(()=>({lastArg:m}),[m]);return N.useMemo(()=>[f,{...O,reset:R},T],[f,O,R,T])},useQuery(S,f){const m=E(S,f),R=C(S,{selectFromResult:S===ie||f?.skip?void 0:lr,...f}),O=Yt(R,...Xt);return N.useDebugValue(O),N.useMemo(()=>({...R,...m}),[R,m])}}}function l(h){const E=(C,S={})=>{const[f,m,R,O]=y(h,C,S),T=N.useRef(O);w(()=>{T.current=O},[O]);const Q=S.refetchCachedPages,q=Ae(Q),k=N.useCallback(function(F,V){let K;return t(()=>{P(f),f.current=K=m(R(F,{subscriptionOptions:T.current,direction:V}))}),K},[f,m,R]);d(f);const D=Jt(S.skip?ie:C),x=N.useCallback(F=>{if(!f.current)throw new Error(X(38));const V={refetchCachedPages:F?.refetchCachedPages??q};return f.current.refetch(V)},[f,q]);return N.useMemo(()=>({trigger:k,refetch:x,fetchNextPage:()=>k(D,"forward"),fetchPreviousPage:()=>k(D,"backward")}),[x,k,D])},M=c(h,v);return{useInfiniteQueryState:M,useInfiniteQuerySubscription:E,useInfiniteQuery(C,S){const{refetch:f,fetchNextPage:m,fetchPreviousPage:R}=E(C,S),O=M(C,{selectFromResult:C===ie||S?.skip?void 0:lr,...S}),T=Yt(O,...Xt,"hasNextPage","hasPreviousPage");return N.useDebugValue(T),N.useMemo(()=>({...O,fetchNextPage:m,fetchPreviousPage:R,refetch:f}),[O,m,R,f])}}}function p(h){return({selectFromResult:E,fixedCacheKey:M}={})=>{const{select:C,initiate:S}=e.endpoints[h],f=n(),[m,R]=N.useState();N.useEffect(()=>()=>{m?.arg.fixedCacheKey||m?.reset()},[m]);const O=N.useCallback(function(K){const j=f(S(K,{fixedCacheKey:M}));return R(j),j},[f,S,M]),{requestId:T}=m||{},Q=N.useMemo(()=>C({fixedCacheKey:M,requestId:m?.requestId}),[M,m,C]),q=N.useMemo(()=>E?o([Q],E):Q,[E,Q]),k=r(q,Ve),D=M==null?m?.arg.originalArgs:void 0,x=N.useCallback(()=>{t(()=>{m&&R(void 0),M&&f(e.internalActions.removeMutationResult({requestId:T,fixedCacheKey:M}))})},[f,M,m,T]),F=Yt(k,...Xt,"endpointName");N.useDebugValue(F);const V=N.useMemo(()=>({...k,originalArgs:D,reset:x}),[k,D,x]);return N.useMemo(()=>[O,V],[O,V])}}}var Ko=Symbol(),Wo=({batch:e=Do,hooks:t={useDispatch:Ao,useSelector:To,useStore:ni},createSelector:n=mn,unstable__sideEffectsInRender:r=!1,...i}={})=>({name:Ko,init(s,{serializeQueryArgs:o},g){const b=s,{buildQueryHooks:w,buildInfiniteQueryHooks:P,buildMutationHook:_,usePrefetch:I}=Vo({api:s,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:g});return qe(b,{usePrefetch:I}),qe(g,{batch:e}),{injectEndpoint(v,a){if(xo(a)){const{useQuery:y,useLazyQuery:c,useLazyQuerySubscription:d,useQueryState:A,useQuerySubscription:u}=w(v);qe(b.endpoints[v],{useQuery:y,useLazyQuery:c,useLazyQuerySubscription:d,useQueryState:A,useQuerySubscription:u}),s[`use${pt(v)}Query`]=y,s[`useLazy${pt(v)}Query`]=c}if(qo(a)){const y=_(v);qe(b.endpoints[v],{useMutation:y}),s[`use${pt(v)}Mutation`]=y}else if(ri(a)){const{useInfiniteQuery:y,useInfiniteQuerySubscription:c,useInfiniteQueryState:d}=P(v);qe(b.endpoints[v],{useInfiniteQuery:y,useInfiniteQuerySubscription:c,useInfiniteQueryState:d}),s[`use${pt(v)}InfiniteQuery`]=y}}}}}),tc=Gr(Jr(),Wo());export{ec as P,Xo as a,Jo as b,tc as c,Ce as d,Yo as e,Zo as f,Go as g,dr as h,le as i,mn as j,ie as s,To as u};
|