@abtnode/blocklet-services 1.16.37-beta-20241225-042616-74a39677 → 1.16.37-beta-20250102-115729-ae7f327e
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/api/services/auth/session.js +8 -1
- package/api/services/dashboard/index.js +94 -39
- package/api/socket/channel/did.js +18 -24
- package/dist/assets/{Add-BkB4hzWP.js → Add-DoWwr2Ul.js} +1 -1
- package/dist/assets/{Alert-ChKHObzy.js → Alert-W6ZoTZ3g.js} +1 -1
- package/dist/assets/{ArrowDropDown-NI0e1CcL.js → ArrowDropDown-DQkl2nkF.js} +1 -1
- package/dist/assets/{Autocomplete-p5GqoeXs.js → Autocomplete-D-KX7tlO.js} +1 -1
- package/dist/assets/Avatar-hKVZimRi.js +1 -0
- package/dist/assets/{ButtonGroup-BYk4i3Xj.js → ButtonGroup-3SFP3-pq.js} +1 -1
- package/dist/assets/{CSSTransition-BiICcXS_.js → CSSTransition-VHrj2IrJ.js} +1 -1
- package/dist/assets/{CheckCircle-rLcqJXM-.js → CheckCircle-BDJMl1SC.js} +1 -1
- package/dist/assets/{ChevronLeft-DpZEnYw8.js → ChevronLeft-B-NWC0xt.js} +1 -1
- package/dist/assets/{ChevronRight-zqeMGTU8.js → ChevronRight-Ddp2NEiN.js} +1 -1
- package/dist/assets/{Clear-CDTgnxEs.js → Clear-De-d2EF8.js} +1 -1
- package/dist/assets/{CloseOutlined-5KxLf6kj.js → CloseOutlined-BctPwMsA.js} +1 -1
- package/dist/assets/{Delete-WEUwYpNY.js → Delete-3M81lrPw.js} +1 -1
- package/dist/assets/{DeleteOutline-CLetbYHM.js → DeleteOutline-ANDKP8NK.js} +1 -1
- package/dist/assets/{DialogContentText-ClFxaW7v.js → DialogContentText-Dn5BO5iN.js} +1 -1
- package/dist/assets/{Done-B2yIKbPe.js → Done-Bhem2M06.js} +1 -1
- package/dist/assets/{Download-D3oyzH2g.js → Download-BPmZzvvE.js} +1 -1
- package/dist/assets/{EditIcon-C5qnPQPK.js → EditIcon-D33iMvFv.js} +1 -1
- package/dist/assets/{Error-DCiGz0W4.js → Error-BCA7Sqlp.js} +1 -1
- package/dist/assets/{ExpandMore-A8864VcF.js → ExpandMore-5qu10-VQ.js} +1 -1
- package/dist/assets/FormControl-OqvyHuZv.js +1 -0
- package/dist/assets/{FormControlLabel-gmMi3Y73.js → FormControlLabel-DOOEGsWf.js} +1 -1
- package/dist/assets/FormGroup-CMuwdC56.js +1 -0
- package/dist/assets/{Google-CZkEeoSf.js → Google-BuyGXo_n.js} +1 -1
- package/dist/assets/{Grid-OTVy8H2X.js → Grid-DtUfQ3Vj.js} +1 -1
- package/dist/assets/{HelpOutline-C4qxhpk-.js → HelpOutline-Bmrs_0Er.js} +1 -1
- package/dist/assets/{Hidden-NKkV7HZo.js → Hidden-CUtsI_97.js} +1 -1
- package/dist/assets/{InfoOutlined-D5Xbo4zj.js → InfoOutlined-Cs_orBaQ.js} +1 -1
- package/dist/assets/InputAdornment-BEqTI4V4.js +1 -0
- package/dist/assets/{LastPage-kYHf2Jgz.js → LastPage-Bb4DD2DL.js} +1 -1
- package/dist/assets/{Launch-BPdkR5Yb.js → Launch-DHVfRKfR.js} +1 -1
- package/dist/assets/{LaunchOutlined-C4F_A-BZ.js → LaunchOutlined-Bb4OL7ma.js} +1 -1
- package/dist/assets/Link-DVsnc_O1.js +1 -0
- package/dist/assets/{ListItemButton-CUd7HZtZ.js → ListItemButton-ChDufQ0D.js} +1 -1
- package/dist/assets/{ListSubheader-BtQjujI6.js → ListSubheader-BH5XlJEK.js} +1 -1
- package/dist/assets/{LoadingButton-aRwO6vTQ.js → LoadingButton-D11bbs7Z.js} +1 -1
- package/dist/assets/{LockIcon-mSZR8Wpo.js → LockIcon-Dxf0oSGl.js} +1 -1
- package/dist/assets/{Loop-BW41YAf5.js → Loop-CYBwfB9B.js} +1 -1
- package/dist/assets/{Menu-BEfro0go.js → Menu-BbykPAXR.js} +1 -1
- package/dist/assets/{MoreHoriz-CchvQ4x8.js → MoreHoriz-XHayrhxr.js} +1 -1
- package/dist/assets/{MoreVert-CvexrbHc.js → MoreVert-BO-o5JnK.js} +1 -1
- package/dist/assets/{OpenInNew-DEvTVCLv.js → OpenInNew-__JhP3_b.js} +1 -1
- package/dist/assets/{OutlinedInput-CciGoCMS.js → OutlinedInput-DYGzdilY.js} +2 -2
- package/dist/assets/{PlayArrow-Bp2splvT.js → PlayArrow-l1xyNa8v.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-C6CYRmzY.js → QuestionMarkCircle-CgS1lsZu.js} +1 -1
- package/dist/assets/RadioGroup-D2BrBv0W.js +1 -0
- package/dist/assets/Search-C-_AhyGc.js +1 -0
- package/dist/assets/{Select-B2258gYR.js → Select-DdaHDvk1.js} +1 -1
- package/dist/assets/{ServerLogo-BZwoaegZ.js → ServerLogo-3sWhasNo.js} +1 -1
- package/dist/assets/{Stepper-B0-CbxVQ.js → Stepper-AlrTJRkZ.js} +1 -1
- package/dist/assets/TextField-F_rhcivt.js +1 -0
- package/dist/assets/{Toolbar-BHvcJ4YW.js → Toolbar-NIQ6PygD.js} +1 -1
- package/dist/assets/{ViewColumn-CGSCYe5U.js → ViewColumn-hY5ABDIE.js} +1 -1
- package/dist/assets/{ViewList-BQkleo17.js → ViewList-DTOCqN2q.js} +1 -1
- package/dist/assets/{_createAggregator-CL0QbW5c.js → _createAggregator-C_N0DCeP.js} +1 -1
- package/dist/assets/{access-control-gTPVrvEV.js → access-control-4hTaCeVw.js} +1 -1
- package/dist/assets/{actions-B0wpb8WP.js → actions-x_23wAjB.js} +1 -1
- package/dist/assets/{add-component-core-DEP3pvl3.js → add-component-core-ChNA1r63.js} +1 -1
- package/dist/assets/add-resource-Cn0pNFEC.js +1 -0
- package/dist/assets/{addon-CWvLtMZJ.js → addon-Buee4n4q.js} +1 -1
- package/dist/assets/{analytics-l5gy5arJ.js → analytics-BKlawrzh.js} +8 -8
- package/dist/assets/api-CSS3RGWL.js +1 -0
- package/dist/assets/audit-logs-CZXS4N0R.js +59 -0
- package/dist/assets/{base32-imhHGclO.js → base32-CxcE4z8e.js} +1 -1
- package/dist/assets/branding-C1OjV7l2.js +40 -0
- package/dist/assets/bundle-avatar-O5LAhLys.js +1 -0
- package/dist/assets/{button-C8ULfHVF.js → button-Bk5F6Z8J.js} +1 -1
- package/dist/assets/{click-to-copy-v_Opm3QR.js → click-to-copy-BBJwL23k.js} +1 -1
- package/dist/assets/{complete-CygXvKWj.js → complete-zUtTPZWF.js} +4 -4
- package/dist/assets/{component-B0HYQmUN.js → component-CkbTdshc.js} +66 -66
- package/dist/assets/{config-DXrpezKF.js → config-B1LTpJFT.js} +2 -2
- package/dist/assets/{config-Df-SNcsy.js → config-DS2yUOy5.js} +1 -1
- package/dist/assets/{config-navigation-BEHsCO8s.js → config-navigation-CghjCkdz.js} +5 -5
- package/dist/assets/{config-space-D5bEt5Gp.js → config-space-Bw1lK4NV.js} +1 -1
- package/dist/assets/{confirm-DYfoP4Se.js → confirm-ULP5BJCc.js} +2 -2
- package/dist/assets/{connect-BVMwZTAm.js → connect-B7eXSDIr.js} +1 -1
- package/dist/assets/{connect-BFdPgdv_.js → connect-iIwcK5jn.js} +1 -1
- package/dist/assets/connect-to-AXzvKU6L.js +29 -0
- package/dist/assets/{content-layout-BWfZStKw.js → content-layout-ANaBTlDS.js} +1 -1
- package/dist/assets/dashboard-DOZ7LRQI.js +122 -0
- package/dist/assets/{deprecate-Osa-TpP_.js → deprecate-Bo7yGTJO.js} +1 -1
- package/dist/assets/{did-address-fJXOgCji.js → did-address-DdPH8Oii.js} +1 -1
- package/dist/assets/{domain-AZtYfQs6.js → domain-BPKUv94X.js} +2 -2
- package/dist/assets/{domain-list-BtZxFC7u.js → domain-list-Cc3vVMhj.js} +1 -1
- package/dist/assets/email-RMPOCYzR.js +18 -0
- package/dist/assets/emotion-cache.browser.esm-XJ-XPpML.js +1 -0
- package/dist/assets/{exchange-passport-DICDwXnl.js → exchange-passport-BXag-hFz.js} +1 -1
- package/dist/assets/fallback-C1u7ttF8.js +1 -0
- package/dist/assets/{form-text-input-CAY-lMxo.js → form-text-input-CihqUkoN.js} +2 -2
- package/dist/assets/{format-error-CUK_a_10.js → format-error-D2V1IlSA.js} +1 -1
- package/dist/assets/{fuel-BKd5UYAP.js → fuel-DYi3vbS8.js} +1 -1
- package/dist/assets/{fullpage-BYwrS6HY.js → fullpage-DRR65bg5.js} +1 -1
- package/dist/assets/{get-safe-url-DnaY_sIP.js → get-safe-url-BRitJXVO.js} +1 -1
- package/dist/assets/{get-safe-url-ZoRLtlYY.js → get-safe-url-V1nDCXmu.js} +1 -1
- package/dist/assets/home-DvWIY2vO.js +1 -0
- package/dist/assets/iframe-BgHkFTAs.js +1 -0
- package/dist/assets/{index-D09LFMFr.js → index-2qT6Nx8y.js} +1 -1
- package/dist/assets/index-6R7fU17e.js +1 -0
- package/dist/assets/{index-CJPKRS_9.js → index-B0lK7ost.js} +2 -2
- package/dist/assets/{index-DT7yCya3.js → index-BDf4kEgE.js} +1 -1
- package/dist/assets/{index-tiK1UfUP.js → index-BFWnlhoS.js} +1 -1
- package/dist/assets/index-BHTgfI3J.js +1413 -0
- package/dist/assets/{index-DH1QaI_0.js → index-BSHm8cVk.js} +4 -4
- package/dist/assets/{index-Cu3ENsjg.js → index-BZXNfshl.js} +1 -1
- package/dist/assets/{index-BsTptIhN.js → index-Bk2jPh4B.js} +1 -1
- package/dist/assets/{index-DoUsy4Am.js → index-Bof7se0O.js} +18 -18
- package/dist/assets/index-BrmO4-ZK.js +5 -0
- package/dist/assets/{index-DbWPFW9j.js → index-BuDChzu6.js} +1 -1
- package/dist/assets/{index-Ciyml8mD.js → index-Bu_gkGlR.js} +1 -1
- package/dist/assets/{index-DNbmG1Aj.js → index-C16yDs-W.js} +1 -1
- package/dist/assets/{index-C2homhPJ.js → index-CORQxWB5.js} +7 -7
- package/dist/assets/{index-D_G--uzQ.js → index-CUC8utCb.js} +1 -1
- package/dist/assets/{index-rwuCoVH7.js → index-Cv5S4z7J.js} +1 -1
- package/dist/assets/{index-IGQ16zgs.js → index-CyUo44rA.js} +1 -1
- package/dist/assets/{index-DduAmTQM.js → index-D-H65z2j.js} +2 -2
- package/dist/assets/index-D2DRxJlW.js +1 -0
- package/dist/assets/{index-DTirNi8X.js → index-DC_6kAED.js} +9 -9
- package/dist/assets/index-DF3kd1Sh.js +1 -0
- package/dist/assets/{index-Cq2_T2PN.js → index-DUI49Z8_.js} +1 -1
- package/dist/assets/index-DesHTrdZ.js +134 -0
- package/dist/assets/{index-DTlA_n5o.js → index-Dz6UVrgJ.js} +9 -9
- package/dist/assets/index-Q-uhDp8D.js +221 -0
- package/dist/assets/{index-H94hXmzT.js → index-TosM5wPB.js} +1 -1
- package/dist/assets/index-Tzm7gzea.js +4 -0
- package/dist/assets/{index-BE21Hh0c.js → index-cTQLMlpc.js} +1 -1
- package/dist/assets/{index-Cl7SKZEV.js → index-fZw7Vpgz.js} +1 -1
- package/dist/assets/{index-BUvP8QK5.js → index-hcmgeyWk.js} +1 -1
- package/dist/assets/{index-DZIZsduD.js → index-uWCiD0vp.js} +15 -15
- package/dist/assets/{index-DvlFQr4i.js → index-vYhCTuA2.js} +1 -1
- package/dist/assets/{index-9sT6N2YX.js → index-yHuDMvJG.js} +10 -10
- package/dist/assets/{invitation-Cmm6wjCf.js → invitation-CEnhUxqR.js} +1 -1
- package/dist/assets/{invite-Bqr2ffuS.js → invite-Djgak5cM.js} +1 -1
- package/dist/assets/{isEmail-xeQb73BU.js → isEmail-CVqVoLMc.js} +1 -1
- package/dist/assets/{issue-passport-uOjBXSvI.js → issue-passport-OTW1CE4-.js} +1 -1
- package/dist/assets/{item-B4MlNECd.js → item-DuOVC0zG.js} +1 -1
- package/dist/assets/jss-plugin-props-sort.esm-C1sdxDXq.js +14 -0
- package/dist/assets/{launch-result-message-DDgbpHDK.js → launch-result-message-KFpSWl3O.js} +1 -1
- package/dist/assets/{layout-B2RjMoIa.js → layout-qVa0Azu2.js} +1 -1
- package/dist/assets/{list-header-DUgbQ6vJ.js → list-header-BEzk1po8.js} +1 -1
- package/dist/assets/localization-CSEYhUZ2.js +1 -0
- package/dist/assets/{log-BtJnPSoV.js → log-Bq3RbJRi.js} +1 -1
- package/dist/assets/{login-DSWRkLwv.js → login-C3EevTE0.js} +1 -1
- package/dist/assets/{login-oauth-callback-BLXm9APb.js → login-oauth-callback-AOtjEuqk.js} +1 -1
- package/dist/assets/logo-uploader-BFKU96PE.js +133 -0
- package/dist/assets/{lost-passport-BaQoJYDp.js → lost-passport-Iq98nbcM.js} +3 -3
- package/dist/assets/{lottie-react.esm-C6oeX0f_.js → lottie-react.esm-C3V68SQT.js} +1 -1
- package/dist/assets/{open-window-rLjL3D-p.js → open-window-lc2oKdlW.js} +1 -1
- package/dist/assets/{overview-CE7qiKaY.js → overview-DzTYyyOK.js} +1 -1
- package/dist/assets/{page-header-Czj7nA0M.js → page-header-DjhLNLyP.js} +1 -1
- package/dist/assets/{permission-BbBZ-Q07.js → permission-BZvOkDQF.js} +1 -1
- package/dist/assets/preferences-C93eFPAg.js +1 -0
- package/dist/assets/publish-resource-X3eI0niL.js +1 -0
- package/dist/assets/{raf-schd.esm-BsOKAQic.js → raf-schd.esm-Bwmb5y9p.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-D8as9nxo.js → react-beautiful-dnd.esm-X7VVnJcV.js} +4 -4
- package/dist/assets/refType-CEDeXbgm.js +1 -0
- package/dist/assets/{relative-time-Co8rNTBz.js → relative-time-CTnNqlzz.js} +1 -1
- package/dist/assets/{resource-dialog-jqPe2lGW.js → resource-dialog-BgQL1Bby.js} +9 -9
- package/dist/assets/sdk-DOHTCfK1.js +1 -0
- package/dist/assets/selector-C2hu0WUk.js +48 -0
- package/dist/assets/session-B2D3crc6.js +1 -0
- package/dist/assets/setup-CIZIzYOP.js +19 -0
- package/dist/assets/{shorten-label-OkrzWx8E.js → shorten-label-CfxSH4kN.js} +1 -1
- package/dist/assets/{simple-select-D5ETdYI4.js → simple-select-BP_h5NOM.js} +1 -1
- package/dist/assets/slicedToArray-WKq_kWhB.js +2 -0
- package/dist/assets/{start-qZ58zL2F.js → start-Ceyr0Slk.js} +1 -1
- package/dist/assets/{step-actions-Bz29BFsU.js → step-actions-BKTyBqOr.js} +1 -1
- package/dist/assets/{studio-DprXN3bN.js → studio-wrdTUHb8.js} +1 -1
- package/dist/assets/{switch-control-WXuqJlxM.js → switch-control-Bhky7auW.js} +1 -1
- package/dist/assets/{toUpper-Cei2i7zM.js → toUpper-zlUBufNw.js} +1 -1
- package/dist/assets/{transfer-DIpg3uLY.js → transfer-Bs21EL8V.js} +1 -1
- package/dist/assets/trim-Ci8FKlWl.js +1 -0
- package/dist/assets/{uniqBy-nJKEYOxf.js → uniqBy-DX0iyhMx.js} +1 -1
- package/dist/assets/{unsubscribe-_HykDKcM.js → unsubscribe-C74g_s8L.js} +1 -1
- package/dist/assets/{url-join-M3fXRJn0.js → url-join-GUOMgSK4.js} +1 -1
- package/dist/assets/{use-mobile-CtPmWX3g.js → use-mobile-C8gQQg5h.js} +1 -1
- package/dist/assets/{use-mobile-CPjGL-vp.js → use-mobile-QzoRHUEw.js} +1 -1
- package/dist/assets/{useAsync-9px8VBp_.js → useAsync-CA1s-Q3Q.js} +1 -1
- package/dist/assets/{useAsyncRetry-D9I5b4ls.js → useAsyncRetry-CC8wuBBZ.js} +1 -1
- package/dist/assets/{useFormControl-CJf6eDNE.js → useFormControl--BH_DJ53.js} +1 -1
- package/dist/assets/{useLocalStorage-CE9vPTSl.js → useLocalStorage-CvimZx-D.js} +1 -1
- package/dist/assets/{useSetState-DrfWhk6y.js → useSetState-BYl9GHuD.js} +1 -1
- package/dist/assets/useSlot-B-WSi9Gx.js +1 -0
- package/dist/assets/{useThemeProps-BsjQj15M.js → useThemeProps-CKP9Y0ID.js} +1 -1
- package/dist/assets/user-center-D4cWW8SV.js +334 -0
- package/dist/assets/{util-COsFrtKD.js → util-DKzAB6dy.js} +1 -1
- package/dist/assets/{wrap-locale-Lg1ICLx4.js → wrap-locale-CmUR3sB1.js} +1 -1
- package/dist/index.html +2 -2
- package/dist/service-worker.js +2 -2
- package/dist/share/shared-service-worker.js +36 -0
- package/dist/share/workbox-v7.3.0/workbox-background-sync.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-broadcast-update.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-cacheable-response.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-core.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-expiration.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-navigation-preload.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-offline-ga.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-precaching.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-range-requests.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-recipes.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-routing.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-strategies.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-streams.prod.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-sw.js +1 -0
- package/dist/share/workbox-v7.3.0/workbox-window.prod.es5.mjs +1 -0
- package/dist/share/workbox-v7.3.0/workbox-window.prod.mjs +1 -0
- package/dist/share/workbox-v7.3.0/workbox-window.prod.umd.js +1 -0
- package/package.json +43 -42
- package/dist/assets/Avatar-DlUYYqzV.js +0 -1
- package/dist/assets/Checkbox-Bhkb2Q7e.js +0 -1
- package/dist/assets/FormControl-BnCs9TYC.js +0 -1
- package/dist/assets/FormGroup-DAS3Wdrs.js +0 -1
- package/dist/assets/InputAdornment-CSzQ4LZF.js +0 -1
- package/dist/assets/Link-C_kVN1IN.js +0 -1
- package/dist/assets/MarkEmailRead-DDXcmvAD.js +0 -1
- package/dist/assets/Pagination-kuH1inkO.js +0 -2
- package/dist/assets/RadioGroup-DeYUiM4a.js +0 -1
- package/dist/assets/Search-C5TLLWdE.js +0 -1
- package/dist/assets/Skeleton-BuEuviLL.js +0 -51
- package/dist/assets/TextField-DdBwv6WG.js +0 -1
- package/dist/assets/add-resource-B6KGvflZ.js +0 -1
- package/dist/assets/api-BhCBiRAm.js +0 -1
- package/dist/assets/audit-logs-Du8bIKSU.js +0 -58
- package/dist/assets/branding-Csm-KHUR.js +0 -40
- package/dist/assets/bundle-avatar-B9RBzSN1.js +0 -1
- package/dist/assets/connect-to-D6szP_mS.js +0 -29
- package/dist/assets/createSuper-DKliGZhT.js +0 -1
- package/dist/assets/dashboard-DD-yzt8D.js +0 -122
- package/dist/assets/email-C58FE35W.js +0 -18
- package/dist/assets/emotion-cache.browser.esm-Di9JeT_p.js +0 -1
- package/dist/assets/fallback-4BqcBhXb.js +0 -15
- package/dist/assets/home-Ch-Nd7rN.js +0 -1
- package/dist/assets/iframe-DvGgn53X.js +0 -1
- package/dist/assets/index-B_PrlAJB.js +0 -4
- package/dist/assets/index-C8Sskh3w.js +0 -1
- package/dist/assets/index-CJRqLJP3.js +0 -134
- package/dist/assets/index-CvLkRg-n.js +0 -5
- package/dist/assets/index-D8L2UAAh.js +0 -1365
- package/dist/assets/index-DIP4uyR4.js +0 -221
- package/dist/assets/index-jBwf2OX8.js +0 -1
- package/dist/assets/index-uahSiLR3.js +0 -1
- package/dist/assets/jss-plugin-props-sort.esm-CYd_rw6C.js +0 -13
- package/dist/assets/localization-CScrEYZO.js +0 -1
- package/dist/assets/logo-uploader-B0QlJBxO.js +0 -133
- package/dist/assets/notifications-BXkrhdJX.js +0 -65
- package/dist/assets/objectWithoutProperties-BENPtOBN.js +0 -1
- package/dist/assets/preferences-DuqeK6jY.js +0 -1
- package/dist/assets/publish-resource-DZ0_g98Y.js +0 -1
- package/dist/assets/refType-wiGU_CYL.js +0 -1
- package/dist/assets/sdk-JrWngYdm.js +0 -1
- package/dist/assets/selector-COWEdXx0.js +0 -48
- package/dist/assets/session-B7F0NwQP.js +0 -1
- package/dist/assets/setup-Cnkq73eJ.js +0 -19
- package/dist/assets/slicedToArray-D4TxSsqm.js +0 -2
- package/dist/assets/tag-b_Ohy0yl.js +0 -13
- package/dist/assets/toConsumableArray-Dwhm2s8G.js +0 -2
- package/dist/assets/trim-CS2xCjjU.js +0 -1
- package/dist/assets/useSlot-BOWweaUi.js +0 -1
- package/dist/assets/user-center-DcUzUPto.js +0 -448
- package/dist/manifest.webmanifest +0 -1
- package/dist/registerSW.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var We=Object.defineProperty;var Ze=(t,n,e)=>n in t?We(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var U=(t,n,e)=>Ze(t,typeof n!="symbol"?n+"":n,e);import{
|
|
1
|
+
var We=Object.defineProperty;var Ze=(t,n,e)=>n in t?We(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var U=(t,n,e)=>Ze(t,typeof n!="symbol"?n+"":n,e);import{bn as Qe,bm as Je,bo as se,bV as A,r as R,bq as Ge,br as Ke,bp as nt,cE as Nt,bs as Et,j as h,bu as Xe,P as f,J as Ye,l as tn,aI as ie,cj as qt,cp as en,ck as nn,cH as on,ao as rn,bP as j,cI as sn,B as cn,cJ as an,T as ln,cK as un,cL as fn,a7 as dn,cM as pn,k as hn,cb as ce,u as ae,aJ as gn,f as mn,F as bn,ai as yn}from"./index-BHTgfI3J.js";import{D as vn}from"./index-DC_6kAED.js";import{L as xn}from"./MoreVert-BO-o5JnK.js";import{u as le,L as wn}from"./ListItemButton-ChDufQ0D.js";import{L as Cn}from"./selector-C2hu0WUk.js";function Pn(t){const{badgeContent:n,invisible:e=!1,max:o=99,showZero:r=!1}=t,s=le({badgeContent:n,max:o});let i=e;e===!1&&n===0&&!r&&(i=!0);const{badgeContent:a,max:c=o}=i?s:t,l=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:i,max:c,displayValue:l}}function On(t){return Je("MuiBadge",t)}const k=Qe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),In=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ot=10,rt=4,Sn=t=>{const{color:n,anchorOrigin:e,invisible:o,overlap:r,variant:s,classes:i={}}=t,a={root:["root"],badge:["badge",s,o&&"invisible",`anchorOrigin${A(e.vertical)}${A(e.horizontal)}`,`anchorOrigin${A(e.vertical)}${A(e.horizontal)}${A(r)}`,`overlap${A(r)}`,n!=="default"&&`color${A(n)}`]};return Xe(a,On,i)},Tn=se("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,n)=>n.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),jn=se("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.badge,n[e.variant],n[`anchorOrigin${A(e.anchorOrigin.vertical)}${A(e.anchorOrigin.horizontal)}${A(e.overlap)}`],e.color!=="default"&&n[`color${A(e.color)}`],e.invisible&&n.invisible]}})(({theme:t})=>{var n;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:ot*2,lineHeight:1,padding:"0 6px",height:ot*2,borderRadius:ot,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.keys(((n=t.vars)!=null?n:t).palette).filter(e=>{var o,r;return((o=t.vars)!=null?o:t).palette[e].main&&((r=t.vars)!=null?r:t).palette[e].contrastText}).map(e=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText}})),{props:{variant:"dot"},style:{borderRadius:rt,height:rt*2,minWidth:rt*2,padding:0}},{props:({ownerState:e})=>e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${k.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${k.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${k.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${k.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${k.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${k.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${k.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${k.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}}),An=R.forwardRef(function(n,e){var o,r,s,i,a,c;const l=Ge({props:n,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:d,component:g,components:m={},componentsProps:b={},children:v,overlap:O="rectangular",color:S="default",invisible:P=!1,max:y=99,badgeContent:M,slots:x,slotProps:p,showZero:w=!1,variant:T="standard"}=l,C=Ke(l,In),{badgeContent:I,invisible:qe,max:Be,displayValue:ze}=Pn({max:y,invisible:P,badgeContent:M,showZero:w}),$e=le({anchorOrigin:u,color:S,overlap:O,variant:T,badgeContent:M}),At=qe||I==null&&T!=="dot",{color:Fe=S,overlap:He=O,anchorOrigin:De=u,variant:Rt=T}=At?$e:l,kt=Rt!=="dot"?ze:void 0,Y=nt({},l,{badgeContent:I,invisible:At,max:Be,displayValue:kt,showZero:w,anchorOrigin:De,color:Fe,overlap:He,variant:Rt}),Lt=Sn(Y),Mt=(o=(r=x==null?void 0:x.root)!=null?r:m.Root)!=null?o:Tn,_t=(s=(i=x==null?void 0:x.badge)!=null?i:m.Badge)!=null?s:jn,tt=(a=p==null?void 0:p.root)!=null?a:b.root,et=(c=p==null?void 0:p.badge)!=null?c:b.badge,Ue=Nt({elementType:Mt,externalSlotProps:tt,externalForwardedProps:C,additionalProps:{ref:e,as:g},ownerState:Y,className:Et(tt==null?void 0:tt.className,Lt.root,d)}),Ve=Nt({elementType:_t,externalSlotProps:et,ownerState:Y,className:Et(Lt.badge,et==null?void 0:et.className)});return h.jsxs(Mt,nt({},Ue,{children:[v,h.jsx(_t,nt({},Ve,{children:kt}))]}))});/**
|
|
2
2
|
* (c) Iconify
|
|
3
3
|
*
|
|
4
4
|
* For the full copyright and license information, please view the license.txt
|
|
@@ -8,4 +8,4 @@ var We=Object.defineProperty;var Ze=(t,n,e)=>n in t?We(t,n,{enumerable:!0,config
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
* @version 1.0.8
|
|
11
|
-
*/const ue=Object.freeze({left:0,top:0,width:16,height:16}),Q=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F=Object.freeze({...ue,...Q}),ut=Object.freeze({...F,body:"",hidden:!1}),Rn=Object.freeze({width:null,height:null}),fe=Object.freeze({...Rn,...Q});function kn(t,n=0){const e=t.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(e===""){const r=parseInt(t);return isNaN(r)?0:o(r)}else if(e!==t){let r=0;switch(e){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(t.slice(0,t.length-e.length));return isNaN(s)?0:(s=s/r,s%1===0?o(s):0)}}return n}const Ln=/[\s,]+/;function _n(t,n){n.split(Ln).forEach(e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const de={...fe,preserveAspectRatio:""};function Bt(t){const n={...de},e=(o,r)=>t.getAttribute(o)||r;return n.width=e("width",null),n.height=e("height",null),n.rotate=kn(e("rotate","")),_n(n,e("flip","")),n.preserveAspectRatio=e("preserveAspectRatio",e("preserveaspectratio","")),n}function Mn(t,n){for(const e in de)if(t[e]!==n[e])return!0;return!1}const E=/^[a-z0-9]+(-[a-z0-9]+)*$/,H=(t,n,e,o="")=>{const r=t.split(":");if(t.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const a=r.pop(),c=r.pop(),l={provider:r.length>0?r[0]:o,prefix:c,name:a};return n&&!W(l)?null:l}const s=r[0],i=s.split("-");if(i.length>1){const a={provider:o,prefix:i.shift(),name:i.join("-")};return n&&!W(a)?null:a}if(e&&o===""){const a={provider:o,prefix:"",name:s};return n&&!W(a,e)?null:a}return null},W=(t,n)=>t?!!((t.provider===""||t.provider.match(E))&&(n&&t.prefix===""||t.prefix.match(E))&&t.name.match(E)):!1;function Nn(t,n){const e={};!t.hFlip!=!n.hFlip&&(e.hFlip=!0),!t.vFlip!=!n.vFlip&&(e.vFlip=!0);const o=((t.rotate||0)+(n.rotate||0))%4;return o&&(e.rotate=o),e}function zt(t,n){const e=Nn(t,n);for(const o in ut)o in Q?o in t&&!(o in e)&&(e[o]=Q[o]):o in n?e[o]=n[o]:o in t&&(e[o]=t[o]);return e}function En(t,n){const e=t.icons,o=t.aliases||Object.create(null),r=Object.create(null);function s(i){if(e[i])return r[i]=[];if(!(i in r)){r[i]=null;const a=o[i]&&o[i].parent,c=a&&s(a);c&&(r[i]=[a].concat(c))}return r[i]}return Object.keys(e).concat(Object.keys(o)).forEach(s),r}function qn(t,n,e){const o=t.icons,r=t.aliases||Object.create(null);let s={};function i(a){s=zt(o[a]||r[a],s)}return i(n),e.forEach(i),zt(t,s)}function pe(t,n){const e=[];if(typeof t!="object"||typeof t.icons!="object")return e;t.not_found instanceof Array&&t.not_found.forEach(r=>{n(r,null),e.push(r)});const o=En(t);for(const r in o){const s=o[r];s&&(n(r,qn(t,r,s)),e.push(r))}return e}const Bn={provider:"",aliases:{},not_found:{},...ue};function st(t,n){for(const e in n)if(e in t&&typeof t[e]!=typeof n[e])return!1;return!0}function he(t){if(typeof t!="object"||t===null)return null;const n=t;if(typeof n.prefix!="string"||!t.icons||typeof t.icons!="object"||!st(t,Bn))return null;const e=n.icons;for(const r in e){const s=e[r];if(!r.match(E)||typeof s.body!="string"||!st(s,ut))return null}const o=n.aliases||Object.create(null);for(const r in o){const s=o[r],i=s.parent;if(!r.match(E)||typeof i!="string"||!e[i]&&!o[i]||!st(s,ut))return null}return n}const J=Object.create(null);function zn(t,n){return{provider:t,prefix:n,icons:Object.create(null),missing:new Set}}function L(t,n){const e=J[t]||(J[t]=Object.create(null));return e[n]||(e[n]=zn(t,n))}function vt(t,n){return he(n)?pe(n,(e,o)=>{o?t.icons[e]=o:t.missing.add(e)}):[]}function $n(t,n,e){try{if(typeof e.body=="string")return t.icons[n]={...e},!0}catch{}return!1}function Fn(t,n){let e=[];return(typeof t=="string"?[t]:Object.keys(J)).forEach(r=>{(typeof r=="string"&&typeof n=="string"?[n]:Object.keys(J[r]||{})).forEach(i=>{const a=L(r,i);e=e.concat(Object.keys(a.icons).map(c=>(r!==""?"@"+r+":":"")+i+":"+c))})}),e}let B=!1;function ge(t){return typeof t=="boolean"&&(B=t),B}function z(t){const n=typeof t=="string"?H(t,!0,B):t;if(n){const e=L(n.provider,n.prefix),o=n.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}function me(t,n){const e=H(t,!0,B);if(!e)return!1;const o=L(e.provider,e.prefix);return $n(o,e.name,n)}function $t(t,n){if(typeof t!="object")return!1;if(typeof n!="string"&&(n=t.provider||""),B&&!n&&!t.prefix){let r=!1;return he(t)&&(t.prefix="",pe(t,(s,i)=>{i&&me(s,i)&&(r=!0)})),r}const e=t.prefix;if(!W({provider:n,prefix:e,name:"a"}))return!1;const o=L(n,e);return!!vt(o,t)}function Hn(t){return!!z(t)}function Dn(t){const n=z(t);return n?{...F,...n}:null}function Un(t){const n={loaded:[],missing:[],pending:[]},e=Object.create(null);t.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let o={provider:"",prefix:"",name:""};return t.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const s=r.provider,i=r.prefix,a=r.name,c=e[s]||(e[s]=Object.create(null)),l=c[i]||(c[i]=L(s,i));let u;a in l.icons?u=n.loaded:i===""||l.missing.has(a)?u=n.missing:u=n.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),n}function be(t,n){t.forEach(e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter(r=>r.id!==n))})}function Vn(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const n=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!n.length)return;let e=!1;const o=t.provider,r=t.prefix;n.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==r)return!0;const l=c.name;if(t.icons[l])i.loaded.push({provider:o,prefix:r,name:l});else if(t.missing.has(l))i.missing.push({provider:o,prefix:r,name:l});else return e=!0,!0;return!1}),i.pending.length!==a&&(e||be([t],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Wn=0;function Zn(t,n,e){const o=Wn++,r=be.bind(null,e,o);if(!n.pending.length)return r;const s={id:o,icons:n,callback:t,abort:r};return e.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),r}const ft=Object.create(null);function Ft(t,n){ft[t]=n}function dt(t){return ft[t]||ft[""]}function Qn(t,n=!0,e=!1){const o=[];return t.forEach(r=>{const s=typeof r=="string"?H(r,n,e):r;s&&o.push(s)}),o}var Jn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Gn(t,n,e,o){const r=t.resources.length,s=t.random?Math.floor(Math.random()*r):t.index;let i;if(t.random){let p=t.resources.slice(0);for(i=[];p.length>1;){const w=Math.floor(Math.random()*p.length);i.push(p[w]),p=p.slice(0,w).concat(p.slice(w+1))}i=i.concat(p)}else i=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,g=[],m=[];typeof o=="function"&&m.push(o);function b(){d&&(clearTimeout(d),d=null)}function v(){c==="pending"&&(c="aborted"),b(),g.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),g=[]}function O(p,w){w&&(m=[]),typeof p=="function"&&m.push(p)}function S(){return{startTime:a,payload:n,status:c,queriesSent:l,queriesPending:g.length,subscribe:O,abort:v}}function P(){c="failed",m.forEach(p=>{p(void 0,u)})}function y(){g.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),g=[]}function _(p,w,T){const C=w!=="success";switch(g=g.filter(I=>I!==p),c){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(w==="abort"){u=T,P();return}if(C){u=T,g.length||(i.length?x():P());return}if(b(),y(),!t.random){const I=t.resources.indexOf(p.resource);I!==-1&&I!==t.index&&(t.index=I)}c="completed",m.forEach(I=>{I(T)})}function x(){if(c!=="pending")return;b();const p=i.shift();if(p===void 0){if(g.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),P())},t.timeout);return}P();return}const w={status:"pending",resource:p,callback:(T,C)=>{_(w,T,C)}};g.push(w),l++,d=setTimeout(x,t.rotate),e(p,n,w.callback)}return setTimeout(x),S}function ye(t){const n={...Jn,...t};let e=[];function o(){e=e.filter(a=>a().status==="pending")}function r(a,c,l){const u=Gn(n,a,c,(d,g)=>{o(),l&&l(d,g)});return e.push(u),u}function s(a){return e.find(c=>a(c))||null}return{query:r,find:s,setIndex:a=>{n.index=a},getIndex:()=>n.index,cleanup:o}}function xt(t){let n;if(typeof t.resources=="string")n=[t.resources];else if(n=t.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const X=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;N.length>0;)N.length===1||Math.random()>.5?Z.push(N.shift()):Z.push(N.pop());X[""]=xt({resources:["https://api.iconify.design"].concat(Z)});function Ht(t,n){const e=xt(n);return e===null?!1:(X[t]=e,!0)}function Y(t){return X[t]}function Xn(){return Object.keys(X)}function Dt(){}const it=Object.create(null);function Yn(t){if(!it[t]){const n=Y(t);if(!n)return;const e=ye(n),o={config:n,redundancy:e};it[t]=o}return it[t]}function ve(t,n,e){let o,r;if(typeof t=="string"){const s=dt(t);if(!s)return e(void 0,424),Dt;r=s.send;const i=Yn(t);i&&(o=i.redundancy)}else{const s=xt(t);if(s){o=ye(s);const i=t.resources?t.resources[0]:"",a=dt(i);a&&(r=a.send)}}return!o||!r?(e(void 0,424),Dt):o.query(n,r,e)().abort}const Ut="iconify2",$="iconify",xe=$+"-count",Vt=$+"-version",we=36e5,Kn=168;function pt(t,n){try{return t.getItem(n)}catch{}}function wt(t,n,e){try{return t.setItem(n,e),!0}catch{}}function Wt(t,n){try{t.removeItem(n)}catch{}}function ht(t,n){return wt(t,xe,n.toString())}function gt(t){return parseInt(pt(t,xe))||0}const M={local:!0,session:!0},Ce={local:new Set,session:new Set};let Ct=!1;function to(t){Ct=t}let V=typeof window>"u"?{}:window;function Pe(t){const n=t+"Storage";try{if(V&&V[n]&&typeof V[n].length=="number")return V[n]}catch{}M[t]=!1}function Oe(t,n){const e=Pe(t);if(!e)return;const o=pt(e,Vt);if(o!==Ut){if(o){const a=gt(e);for(let c=0;c<a;c++)Wt(e,$+c.toString())}wt(e,Vt,Ut),ht(e,0);return}const r=Math.floor(Date.now()/we)-Kn,s=a=>{const c=$+a.toString(),l=pt(e,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,a))return!0}catch{}Wt(e,c)}};let i=gt(e);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ht(e,i)):Ce[t].add(a))}function Ie(){if(!Ct){to(!0);for(const t in M)Oe(t,n=>{const e=n.data,o=n.provider,r=e.prefix,s=L(o,r);if(!vt(s,e).length)return!1;const i=e.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function eo(t,n){const e=t.lastModifiedCached;if(e&&e>=n)return e===n;if(t.lastModifiedCached=n,e)for(const o in M)Oe(o,r=>{const s=r.data;return r.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===n});return!0}function no(t,n){Ct||Ie();function e(o){let r;if(!M[o]||!(r=Pe(o)))return;const s=Ce[o];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=gt(r),!ht(r,i+1))return;const a={cached:Math.floor(Date.now()/we),provider:t.provider,data:n};return wt(r,$+i.toString(),JSON.stringify(a))}n.lastModified&&!eo(t,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),e("local")||e("session"))}function Zt(){}function oo(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Vn(t)}))}function ro(t,n){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(n).sort():t.iconsToLoad=n,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:e,prefix:o}=t,r=t.iconsToLoad;delete t.iconsToLoad;let s;if(!r||!(s=dt(e)))return;s.prepare(e,o,r).forEach(a=>{ve(e,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=vt(t,c);if(!l.length)return;const u=t.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),no(t,c)}catch(l){console.error(l)}oo(t)})})}))}const Pt=(t,n)=>{const e=Qn(t,!0,ge()),o=Un(e);if(!o.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(o.loaded,o.missing,o.pending,Zt)}),()=>{c=!1}}const r=Object.create(null),s=[];let i,a;return o.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(L(l,u));const d=r[l]||(r[l]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,g=L(l,u),m=g.pendingIcons||(g.pendingIcons=new Set);m.has(d)||(m.add(d),r[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;r[l][u].length&&ro(c,r[l][u])}),n?Zn(n,o,s):Zt},so=t=>new Promise((n,e)=>{const o=typeof t=="string"?H(t,!0):t;if(!o){e(t);return}Pt([o||t],r=>{if(r.length&&o){const s=z(o);if(s){n({...F,...s});return}}e(t)})});function io(t){try{const n=typeof t=="string"?JSON.parse(t):t;if(typeof n.body=="string")return{...n}}catch{}}function co(t,n){const e=typeof t=="string"?H(t,!0,!0):null;if(!e){const s=io(t);return{value:t,data:s}}const o=z(e);if(o!==void 0||!e.prefix)return{value:t,name:e,data:o};const r=Pt([e],()=>n(t,e,z(e)));return{value:t,name:e,loading:r}}function ct(t){return t.hasAttribute("inline")}let Se=!1;try{Se=navigator.vendor.indexOf("Apple")===0}catch{}function ao(t,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(Se||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const lo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,uo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function mt(t,n,e){if(n===1)return t;if(e=e||100,typeof t=="number")return Math.ceil(t*n*e)/e;if(typeof t!="string")return t;const o=t.split(lo);if(o===null||!o.length)return t;const r=[];let s=o.shift(),i=uo.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?r.push(s):r.push(Math.ceil(a*n*e)/e)}else r.push(s);if(s=o.shift(),s===void 0)return r.join("");i=!i}}const fo=t=>t==="unset"||t==="undefined"||t==="none";function Te(t,n){const e={...F,...t},o={...fe,...n},r={left:e.left,top:e.top,width:e.width,height:e.height};let s=e.body;[e,o].forEach(b=>{const v=[],O=b.hFlip,S=b.vFlip;let P=b.rotate;O?S?P+=2:(v.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),v.push("scale(-1 1)"),r.top=r.left=0):S&&(v.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),v.push("scale(1 -1)"),r.top=r.left=0);let y;switch(P<0&&(P-=Math.floor(P/4)*4),P=P%4,P){case 1:y=r.height/2+r.top,v.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:v.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:y=r.width/2+r.left,v.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}P%2===1&&(r.left!==r.top&&(y=r.left,r.left=r.top,r.top=y),r.width!==r.height&&(y=r.width,r.width=r.height,r.height=y)),v.length&&(s='<g transform="'+v.join(" ")+'">'+s+"</g>")});const i=o.width,a=o.height,c=r.width,l=r.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=mt(d,c/l)):(u=i==="auto"?c:i,d=a===null?mt(u,l/c):a==="auto"?l:a);const g={},m=(b,v)=>{fo(v)||(g[b]=v.toString())};return m("width",u),m("height",d),g.viewBox=r.left.toString()+" "+r.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:g,body:s}}const po=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let G=po();function ho(t){G=t}function go(){return G}function mo(t,n){const e=Y(t);if(!e)return 0;let o;if(!e.maxURL)o=0;else{let r=0;e.resources.forEach(i=>{r=Math.max(r,i.length)});const s=n+".json?icons=";o=e.maxURL-r-e.path.length-s.length}return o}function bo(t){return t===404}const yo=(t,n,e)=>{const o=[],r=mo(t,n),s="icons";let i={type:s,provider:t,prefix:n,icons:[]},a=0;return e.forEach((c,l)=>{a+=c.length+1,a>=r&&l>0&&(o.push(i),i={type:s,provider:t,prefix:n,icons:[]},a=c.length),i.icons.push(c)}),o.push(i),o};function vo(t){if(typeof t=="string"){const n=Y(t);if(n)return n.path}return"/"}const xo=(t,n,e)=>{if(!G){e("abort",424);return}let o=vo(n.provider);switch(n.type){case"icons":{const s=n.prefix,a=n.icons.join(","),c=new URLSearchParams({icons:a});o+=s+".json?"+c.toString();break}case"custom":{const s=n.uri;o+=s.slice(0,1)==="/"?s.slice(1):s;break}default:e("abort",400);return}let r=503;G(t+o).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{e(bo(i)?"abort":"next",i)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?e("abort",s):e("next",r)});return}setTimeout(()=>{e("success",s)})}).catch(()=>{e("next",r)})},wo={prepare:yo,send:xo};function Qt(t,n){switch(t){case"local":case"session":M[t]=n;break;case"all":for(const e in M)M[e]=n;break}}const at="data-style";let je="";function Co(t){je=t}function Jt(t,n){let e=Array.from(t.childNodes).find(o=>o.hasAttribute&&o.hasAttribute(at));e||(e=document.createElement("style"),e.setAttribute(at,at),t.appendChild(e)),e.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+je}function Ae(){Ft("",wo),ge(!0);let t;try{t=window}catch{}if(t){if(Ie(),t.IconifyPreload!==void 0){const e=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!$t(r))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(const o in e){const r="IconifyProviders["+o+"] is invalid.";try{const s=e[o];if(typeof s!="object"||!s||s.resources===void 0)continue;Ht(o,s)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>Qt(e,!0),disableCache:e=>Qt(e,!1),iconExists:Hn,getIcon:Dn,listIcons:Fn,addIcon:me,addCollection:$t,calculateSize:mt,buildIcon:Te,loadIcons:Pt,loadIcon:so,addAPIProvider:Ht,appendCustomStyle:Co,_api:{getAPIConfig:Y,setAPIModule:Ft,sendAPIQuery:ve,setFetch:ho,getFetch:go,listAPIProviders:Xn}}}function Re(t,n){let e=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in n)e+=" "+o+'="'+n[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+t+"</svg>"}function Po(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Oo(t){return"data:image/svg+xml,"+Po(t)}function Io(t){return'url("'+Oo(t)+'")'}const bt={"background-color":"currentColor"},ke={"background-color":"transparent"},Gt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Xt={"-webkit-mask":bt,mask:bt,background:ke};for(const t in Xt){const n=Xt[t];for(const e in Gt)n[t+"-"+e]=Gt[e]}function Yt(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function So(t,n,e){const o=document.createElement("span");let r=t.body;r.indexOf("<a")!==-1&&(r+="<!-- "+Date.now()+" -->");const s=t.attributes,i=Re(r,{...s,width:n.width+"",height:n.height+""}),a=Io(i),c=o.style,l={"--svg":a,width:Yt(s.width),height:Yt(s.height),...e?bt:ke};for(const u in l)c.setProperty(u,l[u]);return o}let q;function To(){try{q=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{q=null}}function jo(t){return q===void 0&&To(),q?q.createHTML(t):t}function Ao(t){const n=document.createElement("span"),e=t.attributes;let o="";e.width||(o="width: inherit;"),e.height||(o+="height: inherit;"),o&&(e.style=o);const r=Re(t.body,e);return n.innerHTML=jo(r),n.firstChild}function Kt(t,n){const e=n.icon.data,o=n.customisations,r=Te(e,o);o.preserveAspectRatio&&(r.attributes.preserveAspectRatio=o.preserveAspectRatio);const s=n.renderedMode;let i;switch(s){case"svg":i=Ao(r);break;default:i=So(r,{...F,...e},s==="mask")}const a=Array.from(t.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):t.replaceChild(i,a):t.appendChild(i)}function te(t,n,e){const o=e&&(e.rendered?e:e.lastRender);return{rendered:!1,inline:n,icon:t,lastRender:o}}function Ro(t="iconify-icon"){let n,e;try{n=window.customElements,e=window.HTMLElement}catch{return}if(!n||!e)return;const o=n.get(t);if(o)return o;const r=["icon","mode","inline","width","height","rotate","flip"],s=class extends e{constructor(){super();U(this,"_shadowRoot");U(this,"_state");U(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=ct(this);Jt(c,l),this._state=te({value:""},l),this._queueCheck()}static get observedAttributes(){return r.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=ct(this),u=this._state;l!==u.inline&&(u.inline=l,Jt(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return ct(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Kt(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=Bt(this);(c.attrMode!==u||Mn(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=co(c,(u,d,g)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:g};b.data?this._gotIconData(b):m.icon=b});l.data?this._gotIconData(l):this._state=te(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Bt(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=ao(c.data.body,u),g=this._state.inline;Kt(this._shadowRoot,this._state={rendered:!0,icon:c,inline:g,customisations:l,attrMode:u,renderedMode:d})}};r.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Ae();for(const a in i)s[a]=s.prototype[a]=i[a];return n.define(t,s),s}Ro()||Ae();const ko=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),Le=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),D=(t,n,e="children")=>t.map(o=>Array.isArray(o[e])?n({...o,[e]:D(o[e],n,e)}):n(o)),Lo=(t,n="children")=>{const e=[];return D(t,o=>e.push(o),n),e},Ot=(t,n,e="children")=>t.map(o=>({...o})).filter(o=>{const r=o[e];if(Array.isArray(r)){const i=Ot(r,n,e);o[e]=i!=null&&i.length?i:void 0}const s={filteredChildren:o[e],isLeaf:!(r!=null&&r.length)};return n(o,s)}),_o=t=>/^https?:\/\//.test(t),Mo=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const n=r=>r.endsWith("/")?r:`${r}/`,e=n(window.location.pathname),o=n(new URL(t,window.location.origin).pathname);return e.startsWith(o)},No=(t=[])=>{const n=t.map((o,r)=>({path:o,index:r})).filter(o=>Mo(o.path));return n!=null&&n.length?n.slice(1).reduce((o,r)=>o.path.length>=r.path.length?o:r,n[0]).index:-1};var oe,re;const yt=((oe=window==null?void 0:window.blocklet)==null?void 0:oe.groupPrefix)||((re=window==null?void 0:window.blocklet)==null?void 0:re.prefix)||"/",Eo=t=>{const n={...t},e=t==null?void 0:t.background;return typeof e=="string"?n.background={header:e,footer:e,default:e}:e&&typeof e=="object"&&(n.background={header:e.header||e.default,footer:e.footer||e.default,default:e.default}),n},qo=(t,n="en")=>{if(typeof t=="string"){if(_o(t)){const o=new URL(t);return o.searchParams.set("locale",n),o.href}const e=new URL(t,window.location.origin);return e.searchParams.set("locale",n),e.pathname+e.search}return typeof t=="object"?t[n]||(t==null?void 0:t.en)||(t==null?void 0:t.zh):t},_e=(t,n="en")=>{if(!(t!=null&&t.length))return t;const e=(o,r)=>typeof o=="string"?o:typeof o=="object"?o[r]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o;return D(t,o=>{var r;return{...o,title:e(o.title,n),link:(r=o.items)!=null&&r.length?o.link:qo(o.link,n),_rawLink:o.link}},"items")},Bo=t=>D(t,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),zo=t=>{if(!(t!=null&&t.length))return null;const n=Bo(t),e={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(o=>{var r;o.section?Array.isArray(o.section)?o.section.forEach(s=>{var i;(i=e[s])==null||i.push(o)}):typeof o.section=="string"&&((r=e[o.section])==null||r.push(o)):e.header.push(o)}),e},$o=t=>{if(!t)return null;const n={...t};return n.theme=Eo(n.theme),n.navigation=zo(Fo(n.navigation)),n},Fo=(t=[])=>Ot(t,(n,e)=>{var o;return!!n.link||((o=e.filteredChildren)==null?void 0:o.length)},"items"),Me=(t,n)=>Ot(t,(e,o)=>{var s;const r=!e.role||n&&(e.role.includes(n)||e.role.includes("guest"));return o.isLeaf?r:r&&((s=o.filteredChildren)==null?void 0:s.length)},"items"),Ho={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Do={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Uo({session:t,locale:n="zh",size:e=24}){const o=(window==null?void 0:window.blocklet)||{},r=(o.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=t==null?void 0:t.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((o==null?void 0:o.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=R.useRef(null),i=Ke({open:!1}),a=tn((c=!i.open)=>{i.open=c});return r.length===0||!(t!=null&&t.user)?null:h.jsxs(h.Fragment,{children:[h.jsx(ie,{size:"medium",ref:s,onClick:()=>a(),children:h.jsx(qt,{icon:Ho,fontSize:e,style:{transform:"scale(1.08)"}})}),h.jsx(en,{open:i.open,anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>h.jsx(nn,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:h.jsx(on,{...c,timeout:350,children:h.jsxs(rn,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:j.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${j.gray6}, 0px 0px 0px 1px ${j.gray6}`},children:[h.jsx(sn,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:r.map(l=>{var u;return h.jsx(xn,{disablePadding:!0,children:h.jsxs(wn,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:j.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?h.jsx(cn,{component:"img",src:`${an}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):h.jsx(qt,{fontSize:50,icon:l.icon||Do,color:j.textSubtitle}),h.jsx(ln,{sx:{fontSize:"12px",color:j.textBase,textAlign:"center",lineHeight:"normal"},children:un(l.title,n)})]})},l.id)})}),h.jsx(fn,{session:t,children:h.jsx(dn,{variant:"outlined",fullWidth:!0,href:pn,sx:{mt:1,borderRadius:2,color:j.textBase,borderColor:j.lineBorderStrong,"&:hover":{color:j.primaryBase,borderColor:j.primaryBase}},children:n==="zh"?"管理":"Manage"})})]})})})})]})}var It={};Object.defineProperty(It,"__esModule",{value:!0});var Ne=It.default=void 0;Vo(R);var lt=h;function Vo(t){return t&&t.__esModule?t:{default:t}}function ee(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,o)}return e}function ne(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?ee(Object(e),!0).forEach(function(o){Wo(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ee(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function Wo(t,n,e){return(n=Zo(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Zo(t){var n=Qo(t,"string");return typeof n=="symbol"?n:n+""}function Qo(t,n){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,n||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}var St=function(n){return(0,lt.jsxs)("svg",ne(ne({},n),{},{children:[(0,lt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.25107 2.50001C6.67528 2.49385 4.50443 4.60042 4.48473 7.00559V12.7899C4.48473 13.5826 4.40145 14.5678 3.90413 15.4998H16.0954C15.599 14.5684 15.5146 13.5831 15.5146 12.7889V7.01078C15.4804 4.60752 13.3051 2.50948 10.7176 2.50301C10.7174 2.50301 10.7177 2.50301 10.7176 2.50301L9.25107 2.50001ZM17.0146 7.00094V12.7889C17.0146 13.5789 17.1156 14.3509 17.5456 15.0078L17.8325 15.4458C18.2685 16.1098 17.7995 16.9998 17.0146 16.9998H2.98473C2.19974 16.9998 1.72975 16.1098 2.16674 15.4458L2.45374 15.0078C2.88473 14.3509 2.98473 13.5799 2.98473 12.7899V6.99994C3.00773 3.70898 5.9107 0.992018 9.25465 1.00002L10.7206 1.00302C14.0646 1.01102 16.9746 3.70898 17.0146 7.00094Z",fill:"currentColor"}),(0,lt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0602 18.0606C11.3415 17.7793 11.4996 17.3978 11.4996 17H12.9996C12.9996 17.7956 12.6835 18.5587 12.1209 19.1213C11.5583 19.6839 10.7952 19.9999 9.9996 19.9999C9.20396 19.9999 8.4409 19.6839 7.8783 19.1213C7.3157 18.5587 6.99963 17.7956 6.99963 17H8.49963C8.49963 17.3978 8.65767 17.7793 8.93896 18.0606C9.22026 18.3419 9.60178 18.4999 9.9996 18.4999C10.3974 18.4999 10.7789 18.3419 11.0602 18.0606Z",fill:"currentColor"})]}))};St.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};St.displayName="notification";Ne=It.default=St;function Tt({session:t={}}){const{unReadCount:n}=t,e=hn(()=>{const{navigation:o}=window.blocklet??{},r=o==null?void 0:o.find(s=>s.id==="/userCenter/notification");return r==null?void 0:r.link});return!t.user||!e?null:h.jsx(ie,{size:"medium",variant:"outlined",href:e,sx:{borderRadius:2,borderColor:j.lineBorderStrong,"&:hover":{borderRadius:"50%"}},children:h.jsx(An,{variant:"dot",color:"error",invisible:n===0,children:h.jsx(Ne,{style:{width:"auto",height:24}})})})}Tt.propTypes={session:f.object};Tt.defaultProps={session:{}};const Jo=()=>{var n;return!!(((n=window==null?void 0:window.blocklet)==null?void 0:n.navigation)??[]).find(e=>e.id==="/userCenter/notification")};function jt({formattedBlocklet:t,addons:n,sessionManagerProps:e}){var g,m,b,v;const o=R.useContext(ce),{locale:r}=ae()||{},{enableConnect:s=!0,enableLocale:i=!0}=t,a=!!((g=o==null?void 0:o.session)!=null&&g.user);let c=_e((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,r)||[];c=Me(c,(v=(b=o==null?void 0:o.session)==null?void 0:b.user)==null?void 0:v.role);const u=(()=>{if(n&&typeof n!="function")return Array.isArray(n)?n:[n];let O=[];if(Jo()&&O.push(h.jsx(Tt,{session:o.session},"notification-addon")),i&&r&&O.push(h.jsx(Cn,{showText:!1},"locale-selector")),s&&o){const S=[];a&&(c?c.slice(0,5):[]).forEach(y=>{S.push({label:y.title,icon:y.icon?h.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),O.push(h.jsx(Uo,{session:o.session,locale:r},"session-blocklet")),O.push(h.jsx(gn,{session:o.session,locale:r,menu:S,showRole:!0,...e},"session-user"))}return typeof n=="function"&&(O=n(O)||[]),O})();return R.createElement(h.Fragment,null,...Array.isArray(u)?u:[u])}jt.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:Le};jt.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Go=()=>{const t=mn();R.useEffect(()=>{(t.wallet||t.arcSphere)&&bn.call("arcHideTopBar","{}")},[t])};function Ee({meta:t,fallbackUrl:n,invalidPathFallback:e,headerAddons:o,sessionManagerProps:r,links:s,...i}){var _;Go();const a=R.useContext(ce),c=(_=a==null?void 0:a.session)==null?void 0:_.user,l=c==null?void 0:c.role,{locale:u}=ae()||{},d=R.useMemo(()=>{const x=Object.assign({},window.blocklet,t);try{return $o(x)}catch(p){return console.error("Failed to format blocklet info",p,x),x}},[t]),{localizedNav:g,flattened:m,matchedIndex:b}=R.useMemo(()=>{var T;let x=_e((T=d==null?void 0:d.navigation)==null?void 0:T.dashboard,u)||[];x=Me(x,l),x=D(x,C=>{let I=null;return C.icon&&(C.icon.startsWith("http")||C.icon.startsWith("data:")?I=h.jsx(yn,{src:C.icon}):I=h.jsx("iconify-icon",{height:"100%",width:"100%",icon:C.icon})),{title:C.title,url:C.link,icon:I,external:!0,children:C.items}},"items");const p=Lo(x).filter(C=>!!C.url),w=No(p.map(C=>C.url));return w!==-1&&(p[w].active=!0),{localizedNav:x,flattened:p,matchedIndex:w}},[d,u,l]),v=typeof s=="function"?s(g):[...g,...s];if(R.useLayoutEffect(()=>{c&&!(m!=null&&m.length)&&n&&(window.location.href=n)},[n]),R.useLayoutEffect(()=>{c&&(m!=null&&m.length)&&b===-1&&e&&e()},[e,m,b]),!d.appName)return null;const{appLogo:O,appLogoRect:S,appName:P}=d,y=h.jsx(jt,{formattedBlocklet:d,addons:o,sessionManagerProps:r});return h.jsx(vn,{title:P,fullWidth:!0,sidebarWidth:128,legacy:!1,links:v,...i,headerProps:{homeLink:yt,logo:h.jsx("img",{src:S||O,alt:"logo"}),addons:y,...i.headerProps}})}Ee.propTypes={meta:ko,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:Le,links:f.oneOfType([f.array,f.func])};Ee.defaultProps={meta:{},fallbackUrl:yt,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=yt}},links:[]};export{An as B,Ee as D,jt as H,Lo as a,No as b,ko as c,qo as d,$o as f,_e as g,_o as i,D as m,yt as p,Go as u};
|
|
11
|
+
*/const ue=Object.freeze({left:0,top:0,width:16,height:16}),Q=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F=Object.freeze({...ue,...Q}),ut=Object.freeze({...F,body:"",hidden:!1}),Rn=Object.freeze({width:null,height:null}),fe=Object.freeze({...Rn,...Q});function kn(t,n=0){const e=t.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(e===""){const r=parseInt(t);return isNaN(r)?0:o(r)}else if(e!==t){let r=0;switch(e){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(t.slice(0,t.length-e.length));return isNaN(s)?0:(s=s/r,s%1===0?o(s):0)}}return n}const Ln=/[\s,]+/;function Mn(t,n){n.split(Ln).forEach(e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const de={...fe,preserveAspectRatio:""};function Bt(t){const n={...de},e=(o,r)=>t.getAttribute(o)||r;return n.width=e("width",null),n.height=e("height",null),n.rotate=kn(e("rotate","")),Mn(n,e("flip","")),n.preserveAspectRatio=e("preserveAspectRatio",e("preserveaspectratio","")),n}function _n(t,n){for(const e in de)if(t[e]!==n[e])return!0;return!1}const E=/^[a-z0-9]+(-[a-z0-9]+)*$/,H=(t,n,e,o="")=>{const r=t.split(":");if(t.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const a=r.pop(),c=r.pop(),l={provider:r.length>0?r[0]:o,prefix:c,name:a};return n&&!W(l)?null:l}const s=r[0],i=s.split("-");if(i.length>1){const a={provider:o,prefix:i.shift(),name:i.join("-")};return n&&!W(a)?null:a}if(e&&o===""){const a={provider:o,prefix:"",name:s};return n&&!W(a,e)?null:a}return null},W=(t,n)=>t?!!((t.provider===""||t.provider.match(E))&&(n&&t.prefix===""||t.prefix.match(E))&&t.name.match(E)):!1;function Nn(t,n){const e={};!t.hFlip!=!n.hFlip&&(e.hFlip=!0),!t.vFlip!=!n.vFlip&&(e.vFlip=!0);const o=((t.rotate||0)+(n.rotate||0))%4;return o&&(e.rotate=o),e}function zt(t,n){const e=Nn(t,n);for(const o in ut)o in Q?o in t&&!(o in e)&&(e[o]=Q[o]):o in n?e[o]=n[o]:o in t&&(e[o]=t[o]);return e}function En(t,n){const e=t.icons,o=t.aliases||Object.create(null),r=Object.create(null);function s(i){if(e[i])return r[i]=[];if(!(i in r)){r[i]=null;const a=o[i]&&o[i].parent,c=a&&s(a);c&&(r[i]=[a].concat(c))}return r[i]}return Object.keys(e).concat(Object.keys(o)).forEach(s),r}function qn(t,n,e){const o=t.icons,r=t.aliases||Object.create(null);let s={};function i(a){s=zt(o[a]||r[a],s)}return i(n),e.forEach(i),zt(t,s)}function pe(t,n){const e=[];if(typeof t!="object"||typeof t.icons!="object")return e;t.not_found instanceof Array&&t.not_found.forEach(r=>{n(r,null),e.push(r)});const o=En(t);for(const r in o){const s=o[r];s&&(n(r,qn(t,r,s)),e.push(r))}return e}const Bn={provider:"",aliases:{},not_found:{},...ue};function st(t,n){for(const e in n)if(e in t&&typeof t[e]!=typeof n[e])return!1;return!0}function he(t){if(typeof t!="object"||t===null)return null;const n=t;if(typeof n.prefix!="string"||!t.icons||typeof t.icons!="object"||!st(t,Bn))return null;const e=n.icons;for(const r in e){const s=e[r];if(!r.match(E)||typeof s.body!="string"||!st(s,ut))return null}const o=n.aliases||Object.create(null);for(const r in o){const s=o[r],i=s.parent;if(!r.match(E)||typeof i!="string"||!e[i]&&!o[i]||!st(s,ut))return null}return n}const J=Object.create(null);function zn(t,n){return{provider:t,prefix:n,icons:Object.create(null),missing:new Set}}function L(t,n){const e=J[t]||(J[t]=Object.create(null));return e[n]||(e[n]=zn(t,n))}function vt(t,n){return he(n)?pe(n,(e,o)=>{o?t.icons[e]=o:t.missing.add(e)}):[]}function $n(t,n,e){try{if(typeof e.body=="string")return t.icons[n]={...e},!0}catch{}return!1}function Fn(t,n){let e=[];return(typeof t=="string"?[t]:Object.keys(J)).forEach(r=>{(typeof r=="string"&&typeof n=="string"?[n]:Object.keys(J[r]||{})).forEach(i=>{const a=L(r,i);e=e.concat(Object.keys(a.icons).map(c=>(r!==""?"@"+r+":":"")+i+":"+c))})}),e}let B=!1;function ge(t){return typeof t=="boolean"&&(B=t),B}function z(t){const n=typeof t=="string"?H(t,!0,B):t;if(n){const e=L(n.provider,n.prefix),o=n.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}function me(t,n){const e=H(t,!0,B);if(!e)return!1;const o=L(e.provider,e.prefix);return $n(o,e.name,n)}function $t(t,n){if(typeof t!="object")return!1;if(typeof n!="string"&&(n=t.provider||""),B&&!n&&!t.prefix){let r=!1;return he(t)&&(t.prefix="",pe(t,(s,i)=>{i&&me(s,i)&&(r=!0)})),r}const e=t.prefix;if(!W({provider:n,prefix:e,name:"a"}))return!1;const o=L(n,e);return!!vt(o,t)}function Hn(t){return!!z(t)}function Dn(t){const n=z(t);return n?{...F,...n}:null}function Un(t){const n={loaded:[],missing:[],pending:[]},e=Object.create(null);t.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let o={provider:"",prefix:"",name:""};return t.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const s=r.provider,i=r.prefix,a=r.name,c=e[s]||(e[s]=Object.create(null)),l=c[i]||(c[i]=L(s,i));let u;a in l.icons?u=n.loaded:i===""||l.missing.has(a)?u=n.missing:u=n.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),n}function be(t,n){t.forEach(e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter(r=>r.id!==n))})}function Vn(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const n=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!n.length)return;let e=!1;const o=t.provider,r=t.prefix;n.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==r)return!0;const l=c.name;if(t.icons[l])i.loaded.push({provider:o,prefix:r,name:l});else if(t.missing.has(l))i.missing.push({provider:o,prefix:r,name:l});else return e=!0,!0;return!1}),i.pending.length!==a&&(e||be([t],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Wn=0;function Zn(t,n,e){const o=Wn++,r=be.bind(null,e,o);if(!n.pending.length)return r;const s={id:o,icons:n,callback:t,abort:r};return e.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),r}const ft=Object.create(null);function Ft(t,n){ft[t]=n}function dt(t){return ft[t]||ft[""]}function Qn(t,n=!0,e=!1){const o=[];return t.forEach(r=>{const s=typeof r=="string"?H(r,n,e):r;s&&o.push(s)}),o}var Jn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Gn(t,n,e,o){const r=t.resources.length,s=t.random?Math.floor(Math.random()*r):t.index;let i;if(t.random){let p=t.resources.slice(0);for(i=[];p.length>1;){const w=Math.floor(Math.random()*p.length);i.push(p[w]),p=p.slice(0,w).concat(p.slice(w+1))}i=i.concat(p)}else i=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,g=[],m=[];typeof o=="function"&&m.push(o);function b(){d&&(clearTimeout(d),d=null)}function v(){c==="pending"&&(c="aborted"),b(),g.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),g=[]}function O(p,w){w&&(m=[]),typeof p=="function"&&m.push(p)}function S(){return{startTime:a,payload:n,status:c,queriesSent:l,queriesPending:g.length,subscribe:O,abort:v}}function P(){c="failed",m.forEach(p=>{p(void 0,u)})}function y(){g.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),g=[]}function M(p,w,T){const C=w!=="success";switch(g=g.filter(I=>I!==p),c){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(w==="abort"){u=T,P();return}if(C){u=T,g.length||(i.length?x():P());return}if(b(),y(),!t.random){const I=t.resources.indexOf(p.resource);I!==-1&&I!==t.index&&(t.index=I)}c="completed",m.forEach(I=>{I(T)})}function x(){if(c!=="pending")return;b();const p=i.shift();if(p===void 0){if(g.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),P())},t.timeout);return}P();return}const w={status:"pending",resource:p,callback:(T,C)=>{M(w,T,C)}};g.push(w),l++,d=setTimeout(x,t.rotate),e(p,n,w.callback)}return setTimeout(x),S}function ye(t){const n={...Jn,...t};let e=[];function o(){e=e.filter(a=>a().status==="pending")}function r(a,c,l){const u=Gn(n,a,c,(d,g)=>{o(),l&&l(d,g)});return e.push(u),u}function s(a){return e.find(c=>a(c))||null}return{query:r,find:s,setIndex:a=>{n.index=a},getIndex:()=>n.index,cleanup:o}}function xt(t){let n;if(typeof t.resources=="string")n=[t.resources];else if(n=t.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const K=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;N.length>0;)N.length===1||Math.random()>.5?Z.push(N.shift()):Z.push(N.pop());K[""]=xt({resources:["https://api.iconify.design"].concat(Z)});function Ht(t,n){const e=xt(n);return e===null?!1:(K[t]=e,!0)}function X(t){return K[t]}function Kn(){return Object.keys(K)}function Dt(){}const it=Object.create(null);function Xn(t){if(!it[t]){const n=X(t);if(!n)return;const e=ye(n),o={config:n,redundancy:e};it[t]=o}return it[t]}function ve(t,n,e){let o,r;if(typeof t=="string"){const s=dt(t);if(!s)return e(void 0,424),Dt;r=s.send;const i=Xn(t);i&&(o=i.redundancy)}else{const s=xt(t);if(s){o=ye(s);const i=t.resources?t.resources[0]:"",a=dt(i);a&&(r=a.send)}}return!o||!r?(e(void 0,424),Dt):o.query(n,r,e)().abort}const Ut="iconify2",$="iconify",xe=$+"-count",Vt=$+"-version",we=36e5,Yn=168;function pt(t,n){try{return t.getItem(n)}catch{}}function wt(t,n,e){try{return t.setItem(n,e),!0}catch{}}function Wt(t,n){try{t.removeItem(n)}catch{}}function ht(t,n){return wt(t,xe,n.toString())}function gt(t){return parseInt(pt(t,xe))||0}const _={local:!0,session:!0},Ce={local:new Set,session:new Set};let Ct=!1;function to(t){Ct=t}let V=typeof window>"u"?{}:window;function Pe(t){const n=t+"Storage";try{if(V&&V[n]&&typeof V[n].length=="number")return V[n]}catch{}_[t]=!1}function Oe(t,n){const e=Pe(t);if(!e)return;const o=pt(e,Vt);if(o!==Ut){if(o){const a=gt(e);for(let c=0;c<a;c++)Wt(e,$+c.toString())}wt(e,Vt,Ut),ht(e,0);return}const r=Math.floor(Date.now()/we)-Yn,s=a=>{const c=$+a.toString(),l=pt(e,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,a))return!0}catch{}Wt(e,c)}};let i=gt(e);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ht(e,i)):Ce[t].add(a))}function Ie(){if(!Ct){to(!0);for(const t in _)Oe(t,n=>{const e=n.data,o=n.provider,r=e.prefix,s=L(o,r);if(!vt(s,e).length)return!1;const i=e.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function eo(t,n){const e=t.lastModifiedCached;if(e&&e>=n)return e===n;if(t.lastModifiedCached=n,e)for(const o in _)Oe(o,r=>{const s=r.data;return r.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===n});return!0}function no(t,n){Ct||Ie();function e(o){let r;if(!_[o]||!(r=Pe(o)))return;const s=Ce[o];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=gt(r),!ht(r,i+1))return;const a={cached:Math.floor(Date.now()/we),provider:t.provider,data:n};return wt(r,$+i.toString(),JSON.stringify(a))}n.lastModified&&!eo(t,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),e("local")||e("session"))}function Zt(){}function oo(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Vn(t)}))}function ro(t,n){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(n).sort():t.iconsToLoad=n,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:e,prefix:o}=t,r=t.iconsToLoad;delete t.iconsToLoad;let s;if(!r||!(s=dt(e)))return;s.prepare(e,o,r).forEach(a=>{ve(e,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=vt(t,c);if(!l.length)return;const u=t.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),no(t,c)}catch(l){console.error(l)}oo(t)})})}))}const Pt=(t,n)=>{const e=Qn(t,!0,ge()),o=Un(e);if(!o.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(o.loaded,o.missing,o.pending,Zt)}),()=>{c=!1}}const r=Object.create(null),s=[];let i,a;return o.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(L(l,u));const d=r[l]||(r[l]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,g=L(l,u),m=g.pendingIcons||(g.pendingIcons=new Set);m.has(d)||(m.add(d),r[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;r[l][u].length&&ro(c,r[l][u])}),n?Zn(n,o,s):Zt},so=t=>new Promise((n,e)=>{const o=typeof t=="string"?H(t,!0):t;if(!o){e(t);return}Pt([o||t],r=>{if(r.length&&o){const s=z(o);if(s){n({...F,...s});return}}e(t)})});function io(t){try{const n=typeof t=="string"?JSON.parse(t):t;if(typeof n.body=="string")return{...n}}catch{}}function co(t,n){const e=typeof t=="string"?H(t,!0,!0):null;if(!e){const s=io(t);return{value:t,data:s}}const o=z(e);if(o!==void 0||!e.prefix)return{value:t,name:e,data:o};const r=Pt([e],()=>n(t,e,z(e)));return{value:t,name:e,loading:r}}function ct(t){return t.hasAttribute("inline")}let Se=!1;try{Se=navigator.vendor.indexOf("Apple")===0}catch{}function ao(t,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(Se||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const lo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,uo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function mt(t,n,e){if(n===1)return t;if(e=e||100,typeof t=="number")return Math.ceil(t*n*e)/e;if(typeof t!="string")return t;const o=t.split(lo);if(o===null||!o.length)return t;const r=[];let s=o.shift(),i=uo.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?r.push(s):r.push(Math.ceil(a*n*e)/e)}else r.push(s);if(s=o.shift(),s===void 0)return r.join("");i=!i}}const fo=t=>t==="unset"||t==="undefined"||t==="none";function Te(t,n){const e={...F,...t},o={...fe,...n},r={left:e.left,top:e.top,width:e.width,height:e.height};let s=e.body;[e,o].forEach(b=>{const v=[],O=b.hFlip,S=b.vFlip;let P=b.rotate;O?S?P+=2:(v.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),v.push("scale(-1 1)"),r.top=r.left=0):S&&(v.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),v.push("scale(1 -1)"),r.top=r.left=0);let y;switch(P<0&&(P-=Math.floor(P/4)*4),P=P%4,P){case 1:y=r.height/2+r.top,v.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:v.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:y=r.width/2+r.left,v.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}P%2===1&&(r.left!==r.top&&(y=r.left,r.left=r.top,r.top=y),r.width!==r.height&&(y=r.width,r.width=r.height,r.height=y)),v.length&&(s='<g transform="'+v.join(" ")+'">'+s+"</g>")});const i=o.width,a=o.height,c=r.width,l=r.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=mt(d,c/l)):(u=i==="auto"?c:i,d=a===null?mt(u,l/c):a==="auto"?l:a);const g={},m=(b,v)=>{fo(v)||(g[b]=v.toString())};return m("width",u),m("height",d),g.viewBox=r.left.toString()+" "+r.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:g,body:s}}const po=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let G=po();function ho(t){G=t}function go(){return G}function mo(t,n){const e=X(t);if(!e)return 0;let o;if(!e.maxURL)o=0;else{let r=0;e.resources.forEach(i=>{r=Math.max(r,i.length)});const s=n+".json?icons=";o=e.maxURL-r-e.path.length-s.length}return o}function bo(t){return t===404}const yo=(t,n,e)=>{const o=[],r=mo(t,n),s="icons";let i={type:s,provider:t,prefix:n,icons:[]},a=0;return e.forEach((c,l)=>{a+=c.length+1,a>=r&&l>0&&(o.push(i),i={type:s,provider:t,prefix:n,icons:[]},a=c.length),i.icons.push(c)}),o.push(i),o};function vo(t){if(typeof t=="string"){const n=X(t);if(n)return n.path}return"/"}const xo=(t,n,e)=>{if(!G){e("abort",424);return}let o=vo(n.provider);switch(n.type){case"icons":{const s=n.prefix,a=n.icons.join(","),c=new URLSearchParams({icons:a});o+=s+".json?"+c.toString();break}case"custom":{const s=n.uri;o+=s.slice(0,1)==="/"?s.slice(1):s;break}default:e("abort",400);return}let r=503;G(t+o).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{e(bo(i)?"abort":"next",i)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?e("abort",s):e("next",r)});return}setTimeout(()=>{e("success",s)})}).catch(()=>{e("next",r)})},wo={prepare:yo,send:xo};function Qt(t,n){switch(t){case"local":case"session":_[t]=n;break;case"all":for(const e in _)_[e]=n;break}}const at="data-style";let je="";function Co(t){je=t}function Jt(t,n){let e=Array.from(t.childNodes).find(o=>o.hasAttribute&&o.hasAttribute(at));e||(e=document.createElement("style"),e.setAttribute(at,at),t.appendChild(e)),e.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+je}function Ae(){Ft("",wo),ge(!0);let t;try{t=window}catch{}if(t){if(Ie(),t.IconifyPreload!==void 0){const e=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!$t(r))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(const o in e){const r="IconifyProviders["+o+"] is invalid.";try{const s=e[o];if(typeof s!="object"||!s||s.resources===void 0)continue;Ht(o,s)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>Qt(e,!0),disableCache:e=>Qt(e,!1),iconExists:Hn,getIcon:Dn,listIcons:Fn,addIcon:me,addCollection:$t,calculateSize:mt,buildIcon:Te,loadIcons:Pt,loadIcon:so,addAPIProvider:Ht,appendCustomStyle:Co,_api:{getAPIConfig:X,setAPIModule:Ft,sendAPIQuery:ve,setFetch:ho,getFetch:go,listAPIProviders:Kn}}}function Re(t,n){let e=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in n)e+=" "+o+'="'+n[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+t+"</svg>"}function Po(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Oo(t){return"data:image/svg+xml,"+Po(t)}function Io(t){return'url("'+Oo(t)+'")'}const bt={"background-color":"currentColor"},ke={"background-color":"transparent"},Gt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Kt={"-webkit-mask":bt,mask:bt,background:ke};for(const t in Kt){const n=Kt[t];for(const e in Gt)n[t+"-"+e]=Gt[e]}function Xt(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function So(t,n,e){const o=document.createElement("span");let r=t.body;r.indexOf("<a")!==-1&&(r+="<!-- "+Date.now()+" -->");const s=t.attributes,i=Re(r,{...s,width:n.width+"",height:n.height+""}),a=Io(i),c=o.style,l={"--svg":a,width:Xt(s.width),height:Xt(s.height),...e?bt:ke};for(const u in l)c.setProperty(u,l[u]);return o}let q;function To(){try{q=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{q=null}}function jo(t){return q===void 0&&To(),q?q.createHTML(t):t}function Ao(t){const n=document.createElement("span"),e=t.attributes;let o="";e.width||(o="width: inherit;"),e.height||(o+="height: inherit;"),o&&(e.style=o);const r=Re(t.body,e);return n.innerHTML=jo(r),n.firstChild}function Yt(t,n){const e=n.icon.data,o=n.customisations,r=Te(e,o);o.preserveAspectRatio&&(r.attributes.preserveAspectRatio=o.preserveAspectRatio);const s=n.renderedMode;let i;switch(s){case"svg":i=Ao(r);break;default:i=So(r,{...F,...e},s==="mask")}const a=Array.from(t.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):t.replaceChild(i,a):t.appendChild(i)}function te(t,n,e){const o=e&&(e.rendered?e:e.lastRender);return{rendered:!1,inline:n,icon:t,lastRender:o}}function Ro(t="iconify-icon"){let n,e;try{n=window.customElements,e=window.HTMLElement}catch{return}if(!n||!e)return;const o=n.get(t);if(o)return o;const r=["icon","mode","inline","width","height","rotate","flip"],s=class extends e{constructor(){super();U(this,"_shadowRoot");U(this,"_state");U(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=ct(this);Jt(c,l),this._state=te({value:""},l),this._queueCheck()}static get observedAttributes(){return r.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=ct(this),u=this._state;l!==u.inline&&(u.inline=l,Jt(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return ct(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Yt(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=Bt(this);(c.attrMode!==u||_n(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=co(c,(u,d,g)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:g};b.data?this._gotIconData(b):m.icon=b});l.data?this._gotIconData(l):this._state=te(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Bt(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=ao(c.data.body,u),g=this._state.inline;Yt(this._shadowRoot,this._state={rendered:!0,icon:c,inline:g,customisations:l,attrMode:u,renderedMode:d})}};r.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Ae();for(const a in i)s[a]=s.prototype[a]=i[a];return n.define(t,s),s}Ro()||Ae();const ko=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),Le=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),D=(t,n,e="children")=>t.map(o=>Array.isArray(o[e])?n({...o,[e]:D(o[e],n,e)}):n(o)),Lo=(t,n="children")=>{const e=[];return D(t,o=>e.push(o),n),e},Ot=(t,n,e="children")=>t.map(o=>({...o})).filter(o=>{const r=o[e];if(Array.isArray(r)){const i=Ot(r,n,e);o[e]=i!=null&&i.length?i:void 0}const s={filteredChildren:o[e],isLeaf:!(r!=null&&r.length)};return n(o,s)}),Mo=t=>/^https?:\/\//.test(t),_o=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const n=r=>r.endsWith("/")?r:`${r}/`,e=n(window.location.pathname),o=n(new URL(t,window.location.origin).pathname);return e.startsWith(o)},No=(t=[])=>{const n=t.map((o,r)=>({path:o,index:r})).filter(o=>_o(o.path));return n!=null&&n.length?n.slice(1).reduce((o,r)=>o.path.length>=r.path.length?o:r,n[0]).index:-1};var oe,re;const yt=((oe=window==null?void 0:window.blocklet)==null?void 0:oe.groupPrefix)||((re=window==null?void 0:window.blocklet)==null?void 0:re.prefix)||"/",Eo=t=>{const n={...t},e=t==null?void 0:t.background;return typeof e=="string"?n.background={header:e,footer:e,default:e}:e&&typeof e=="object"&&(n.background={header:e.header||e.default,footer:e.footer||e.default,default:e.default}),n},qo=(t,n="en")=>{if(typeof t=="string"){if(Mo(t)){const o=new URL(t);return o.searchParams.set("locale",n),o.href}const e=new URL(t,window.location.origin);return e.searchParams.set("locale",n),e.pathname+e.search}return typeof t=="object"?t[n]||(t==null?void 0:t.en)||(t==null?void 0:t.zh):t},Me=(t,n="en")=>{if(!(t!=null&&t.length))return t;const e=(o,r)=>typeof o=="string"?o:typeof o=="object"?o[r]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o;return D(t,o=>{var r;return{...o,title:e(o.title,n),link:(r=o.items)!=null&&r.length?o.link:qo(o.link,n),_rawLink:o.link}},"items")},Bo=t=>D(t,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),zo=t=>{if(!(t!=null&&t.length))return null;const n=Bo(t),e={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(o=>{var r;o.section?Array.isArray(o.section)?o.section.forEach(s=>{var i;(i=e[s])==null||i.push(o)}):typeof o.section=="string"&&((r=e[o.section])==null||r.push(o)):e.header.push(o)}),e},$o=t=>{if(!t)return null;const n={...t};return n.theme=Eo(n.theme),n.navigation=zo(Fo(n.navigation)),n},Fo=(t=[])=>Ot(t,(n,e)=>{var o;return!!n.link||((o=e.filteredChildren)==null?void 0:o.length)},"items"),_e=(t,n)=>Ot(t,(e,o)=>{var s;const r=!e.role||n&&(e.role.includes(n)||e.role.includes("guest"));return o.isLeaf?r:r&&((s=o.filteredChildren)==null?void 0:s.length)},"items"),Ho={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Do={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Uo({session:t,locale:n="zh",size:e=24}){const o=(window==null?void 0:window.blocklet)||{},r=(o.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=t==null?void 0:t.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((o==null?void 0:o.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=R.useRef(null),i=Ye({open:!1}),a=tn((c=!i.open)=>{i.open=c});return r.length===0||!(t!=null&&t.user)?null:h.jsxs(h.Fragment,{children:[h.jsx(ie,{size:"medium",ref:s,onClick:()=>a(),children:h.jsx(qt,{icon:Ho,fontSize:e,style:{transform:"scale(1.08)"}})}),h.jsx(en,{open:i.open,anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>h.jsx(nn,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:h.jsx(on,{...c,timeout:350,children:h.jsxs(rn,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:j.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${j.gray6}, 0px 0px 0px 1px ${j.gray6}`},children:[h.jsx(sn,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:r.map(l=>{var u;return h.jsx(xn,{disablePadding:!0,children:h.jsxs(wn,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:j.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?h.jsx(cn,{component:"img",src:`${an}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):h.jsx(qt,{fontSize:50,icon:l.icon||Do,color:j.textSubtitle}),h.jsx(ln,{sx:{fontSize:"12px",color:j.textBase,textAlign:"center",lineHeight:"normal"},children:un(l.title,n)})]})},l.id)})}),h.jsx(fn,{session:t,children:h.jsx(dn,{variant:"outlined",fullWidth:!0,href:pn,sx:{mt:1,borderRadius:2,color:j.textBase,borderColor:j.lineBorderStrong,"&:hover":{color:j.primaryBase,borderColor:j.primaryBase}},children:n==="zh"?"管理":"Manage"})})]})})})})]})}var It={};Object.defineProperty(It,"__esModule",{value:!0});var Ne=It.default=void 0;Vo(R);var lt=h;function Vo(t){return t&&t.__esModule?t:{default:t}}function ee(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,o)}return e}function ne(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?ee(Object(e),!0).forEach(function(o){Wo(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ee(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function Wo(t,n,e){return(n=Zo(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Zo(t){var n=Qo(t,"string");return typeof n=="symbol"?n:n+""}function Qo(t,n){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,n||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}var St=function(n){return(0,lt.jsxs)("svg",ne(ne({},n),{},{children:[(0,lt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.25107 2.50001C6.67528 2.49385 4.50443 4.60042 4.48473 7.00559V12.7899C4.48473 13.5826 4.40145 14.5678 3.90413 15.4998H16.0954C15.599 14.5684 15.5146 13.5831 15.5146 12.7889V7.01078C15.4804 4.60752 13.3051 2.50948 10.7176 2.50301C10.7174 2.50301 10.7177 2.50301 10.7176 2.50301L9.25107 2.50001ZM17.0146 7.00094V12.7889C17.0146 13.5789 17.1156 14.3509 17.5456 15.0078L17.8325 15.4458C18.2685 16.1098 17.7995 16.9998 17.0146 16.9998H2.98473C2.19974 16.9998 1.72975 16.1098 2.16674 15.4458L2.45374 15.0078C2.88473 14.3509 2.98473 13.5799 2.98473 12.7899V6.99994C3.00773 3.70898 5.9107 0.992018 9.25465 1.00002L10.7206 1.00302C14.0646 1.01102 16.9746 3.70898 17.0146 7.00094Z",fill:"currentColor"}),(0,lt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0602 18.0606C11.3415 17.7793 11.4996 17.3978 11.4996 17H12.9996C12.9996 17.7956 12.6835 18.5587 12.1209 19.1213C11.5583 19.6839 10.7952 19.9999 9.9996 19.9999C9.20396 19.9999 8.4409 19.6839 7.8783 19.1213C7.3157 18.5587 6.99963 17.7956 6.99963 17H8.49963C8.49963 17.3978 8.65767 17.7793 8.93896 18.0606C9.22026 18.3419 9.60178 18.4999 9.9996 18.4999C10.3974 18.4999 10.7789 18.3419 11.0602 18.0606Z",fill:"currentColor"})]}))};St.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};St.displayName="notification";Ne=It.default=St;function Tt({session:t={}}){const{unReadCount:n}=t,e=hn(()=>{const{navigation:o}=window.blocklet??{},r=o==null?void 0:o.find(s=>s.id==="/userCenter/notification");return r==null?void 0:r.link});return!t.user||!e?null:h.jsx(ie,{size:"medium",variant:"outlined",href:e,sx:{borderRadius:2,borderColor:j.lineBorderStrong,"&:hover":{borderRadius:"50%"}},children:h.jsx(An,{variant:"dot",color:"error",invisible:n===0,children:h.jsx(Ne,{style:{width:"auto",height:24}})})})}Tt.propTypes={session:f.object};Tt.defaultProps={session:{}};const Jo=()=>{var n;return!!(((n=window==null?void 0:window.blocklet)==null?void 0:n.navigation)??[]).find(e=>e.id==="/userCenter/notification")};function jt({formattedBlocklet:t,addons:n,sessionManagerProps:e}){var g,m,b,v;const o=R.useContext(ce),{locale:r}=ae()||{},{enableConnect:s=!0,enableLocale:i=!0}=t,a=!!((g=o==null?void 0:o.session)!=null&&g.user);let c=Me((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,r)||[];c=_e(c,(v=(b=o==null?void 0:o.session)==null?void 0:b.user)==null?void 0:v.role);const u=(()=>{if(n&&typeof n!="function")return Array.isArray(n)?n:[n];let O=[];if(Jo()&&O.push(h.jsx(Tt,{session:o.session},"notification-addon")),i&&r&&O.push(h.jsx(Cn,{showText:!1},"locale-selector")),s&&o){const S=[];a&&(c?c.slice(0,5):[]).forEach(y=>{S.push({label:y.title,icon:y.icon?h.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),O.push(h.jsx(Uo,{session:o.session,locale:r},"session-blocklet")),O.push(h.jsx(gn,{session:o.session,locale:r,menu:S,showRole:!0,...e},"session-user"))}return typeof n=="function"&&(O=n(O)||[]),O})();return R.createElement(h.Fragment,null,...Array.isArray(u)?u:[u])}jt.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:Le};jt.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Go=()=>{const t=mn();R.useEffect(()=>{(t.wallet||t.arcSphere)&&bn.call("arcHideTopBar","{}")},[t])};function Ee({meta:t,fallbackUrl:n,invalidPathFallback:e,headerAddons:o,sessionManagerProps:r,links:s,...i}){var M;Go();const a=R.useContext(ce),c=(M=a==null?void 0:a.session)==null?void 0:M.user,l=c==null?void 0:c.role,{locale:u}=ae()||{},d=R.useMemo(()=>{const x=Object.assign({},window.blocklet,t);try{return $o(x)}catch(p){return console.error("Failed to format blocklet info",p,x),x}},[t]),{localizedNav:g,flattened:m,matchedIndex:b}=R.useMemo(()=>{var T;let x=Me((T=d==null?void 0:d.navigation)==null?void 0:T.dashboard,u)||[];x=_e(x,l),x=D(x,C=>{let I=null;return C.icon&&(C.icon.startsWith("http")||C.icon.startsWith("data:")?I=h.jsx(yn,{src:C.icon}):I=h.jsx("iconify-icon",{height:"100%",width:"100%",icon:C.icon})),{title:C.title,url:C.link,icon:I,external:!0,children:C.items}},"items");const p=Lo(x).filter(C=>!!C.url),w=No(p.map(C=>C.url));return w!==-1&&(p[w].active=!0),{localizedNav:x,flattened:p,matchedIndex:w}},[d,u,l]),v=typeof s=="function"?s(g):[...g,...s];if(R.useLayoutEffect(()=>{c&&!(m!=null&&m.length)&&n&&(window.location.href=n)},[n]),R.useLayoutEffect(()=>{c&&(m!=null&&m.length)&&b===-1&&e&&e()},[e,m,b]),!d.appName)return null;const{appLogo:O,appLogoRect:S,appName:P}=d,y=h.jsx(jt,{formattedBlocklet:d,addons:o,sessionManagerProps:r});return h.jsx(vn,{title:P,fullWidth:!0,sidebarWidth:128,legacy:!1,links:v,...i,headerProps:{homeLink:yt,logo:h.jsx("img",{src:S||O,alt:"logo"}),addons:y,...i.headerProps}})}Ee.propTypes={meta:ko,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:Le,links:f.oneOfType([f.array,f.func])};Ee.defaultProps={meta:{},fallbackUrl:yt,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=yt}},links:[]};export{An as B,Ee as D,jt as H,Lo as a,No as b,ko as c,qo as d,$o as f,Me as g,Mo as i,D as m,yt as p,Go as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as c,r as _,l as f,ch as S,ci as r}from"./index-BHTgfI3J.js";var d=function(n){var a=c(_.useState(n),2),u=a[0],i=a[1],o=f(function(t){i(function(e){var s=S(t)?t(e):t;return s?r(r({},e),s):e})});return[u,o]};export{d as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bm as Re,bn as Ae,bo as He,ao as Ve,bV as D,bp as F,r as p,bq as Ee,br as De,j as t,bs as _,bu as We,a0 as Te,c_ as Oe,c$ as Se,$ as Ue,bL as qe,az as Y,a2 as ie,a3 as le,bf as f,ai as Ge,ap as Q,aH as X,Q as W,T as P,b as Ye,aI as de,B as w,bh as Qe,M as H,d0 as ce,H as ue,d1 as pe,a5 as Xe,J as he,k as q,d2 as Je,l as V,d3 as Ke,d4 as Ze}from"./index-BHTgfI3J.js";import{d as xe}from"./Menu-BbykPAXR.js";import{T as et}from"./Toolbar-NIQ6PygD.js";import{H as me}from"./Hidden-CUtsI_97.js";const G={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function tt(e){return Re("MuiAppBar",e)}Ae("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const nt=["className","color","enableColorOnDark","position"],at=e=>{const{color:n,position:a,classes:r}=e,i={root:["root",`color${D(n)}`,`position${D(a)}`]};return We(i,tt,r)},E=(e,n)=>e?`${e==null?void 0:e.replace(")","")}, ${n})`:n,ot=He(Ve,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`position${D(a.position)}`],n[`color${D(a.color)}`]]}})(({theme:e,ownerState:n})=>{const a=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},n.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},n.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},n.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},n.position==="static"&&{position:"static"},n.position==="relative"&&{position:"relative"},!e.vars&&F({},n.color==="default"&&{backgroundColor:a,color:e.palette.getContrastText(a)},n.color&&n.color!=="default"&&n.color!=="inherit"&&n.color!=="transparent"&&{backgroundColor:e.palette[n.color].main,color:e.palette[n.color].contrastText},n.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!n.enableColorOnDark&&{backgroundColor:null,color:null},n.color==="transparent"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},n.color==="default"&&{"--AppBar-background":n.enableColorOnDark?e.vars.palette.AppBar.defaultBg:E(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?e.vars.palette.text.primary:E(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?e.vars.palette[n.color].main:E(e.vars.palette.AppBar.darkBg,e.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?e.vars.palette[n.color].contrastText:E(e.vars.palette.AppBar.darkColor,e.vars.palette[n.color].contrastText)},!["inherit","transparent"].includes(n.color)&&{backgroundColor:"var(--AppBar-background)"},{color:n.color==="inherit"?"inherit":"var(--AppBar-color)"},n.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),rt=p.forwardRef(function(n,a){const r=Ee({props:n,name:"MuiAppBar"}),{className:i,color:d="primary",enableColorOnDark:c=!1,position:s="fixed"}=r,u=De(r,nt),o=F({},r,{color:d,position:s,enableColorOnDark:c}),l=at(o);return t.jsx(ot,F({square:!0,component:"header",ownerState:o,elevation:4,className:_(l.root,i,s==="fixed"&&"mui-fixed"),ref:a},u))});function st(e,n){var a,r=Te(e),i=(a=n==null?void 0:n.wait)!==null&&a!==void 0?a:1e3,d=p.useMemo(function(){return Oe(function(){for(var c=[],s=0;s<arguments.length;s++)c[s]=arguments[s];return r.current.apply(r,Se([],Ue(c),!1))},i,n)},[]);return qe(function(){d.cancel()}),{run:d,cancel:d.cancel,flush:d.flush}}const it=Y(t.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lt=Y(t.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),dt=Y(t.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),fe=p.createContext(null),ct=e=>{const n=p.useContext(fe);return p.useLayoutEffect(()=>{},[]),n};function ut({children:e,...n}){const[a,r]=p.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),i=()=>{r(c=>({...c,inFullPage:!c.inFullPage}))},d=p.useMemo(()=>({...a,headerVisible:!a.inFullPage||a.headerVisibleInFullPage,footerVisible:!a.inFullPage||a.footerVisibleInFullPage,sidebarVisible:!a.inFullPage||a.sidebarVisibleInFullPage,toggleFullPage:i,configure:c=>r(s=>({...s,...c}))}),[a]);return t.jsx(fe.Provider,{value:d,...n,children:e})}var J={},pt=le;Object.defineProperty(J,"__esModule",{value:!0});var ge=J.default=void 0,ht=pt(ie()),xt=t;ge=J.default=(0,ht.default)((0,xt.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var K={},mt=le;Object.defineProperty(K,"__esModule",{value:!0});var be=K.default=void 0,ft=mt(ie()),gt=t;be=K.default=(0,ft.default)((0,gt.jsx)("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");function bt({name:e,size:n=36,alt:a="",color:r="#000000",prefix:i="/images",showBadge:d=!1,style:c={},...s}){const u=`${i}/${e}-${r.replace(/^#/,"")}.png`;return t.jsxs(vt,{style:{width:n,height:n},children:[t.jsx(Ge,{width:n,height:n,alt:a||e,src:u,style:Object.assign({width:n},c),...s}),d&&t.jsx("i",{className:"badge-point"})]})}const vt=f("div")`
|
|
2
2
|
position: relative;
|
|
3
3
|
.badge-point {
|
|
4
4
|
position: absolute;
|
|
@@ -12,7 +12,7 @@ import{bR as Re,bQ as Ae,bS as He,ao as Ve,bT as D,bp as F,r as p,bW as Ee,bX as
|
|
|
12
12
|
0px 1px 4px rgba(0, 0, 0, 0.3),
|
|
13
13
|
0px 0px 20px rgba(0, 0, 0, 0.1);
|
|
14
14
|
}
|
|
15
|
-
`;var ve=function(n){return t.jsx("svg",{...n,children:t.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[t.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25M.5 38.077l43.301-25"}),t.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};ve.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var ye=function(n){return t.jsx("svg",{...n,children:t.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917H43.065v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4V12.822c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};ye.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var je=function(n){return t.jsx("svg",{...n,children:t.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[t.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25M.5 38.077l43.301-25"}),t.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};je.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var we=function(n){return t.jsx("svg",{...n,children:t.jsx("path",{fill:"#000",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917H43.065v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4V12.822c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};we.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function
|
|
15
|
+
`;var ve=function(n){return t.jsx("svg",{...n,children:t.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[t.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25M.5 38.077l43.301-25"}),t.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};ve.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var ye=function(n){return t.jsx("svg",{...n,children:t.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917H43.065v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4V12.822c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};ye.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var je=function(n){return t.jsx("svg",{...n,children:t.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[t.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25M.5 38.077l43.301-25"}),t.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};je.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var we=function(n){return t.jsx("svg",{...n,children:t.jsx("path",{fill:"#000",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917H43.065v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4V12.822c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};we.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function Z({showText:e=!0,showLogo:n=!0,mode:a="dark",layout:r="vertical",size:i,style:d={},...c}){const s=a==="light",u=s?t.jsx(ve,{}):t.jsx(je,{}),o=s?t.jsx(ye,{className:"logo-text"}):t.jsx(we,{className:"logo-text"});return i&&(d.width=`${i}px`,d.height=`${i}px`),t.jsxs(yt,{layout:r,style:d,...c,children:[n&&u,e&&o]})}const yt=f("span")`
|
|
16
16
|
display: inline-flex;
|
|
17
17
|
flex-direction: ${e=>e.layout==="horizontal"?"row":"column"};
|
|
18
18
|
justify-content: center;
|
|
@@ -22,7 +22,7 @@ import{bR as Re,bQ as Ae,bS as He,ao as Ve,bT as D,bp as F,r as p,bW as Ee,bX as
|
|
|
22
22
|
${e=>e.layout==="vertical"?"margin-top: 8px;":""}
|
|
23
23
|
${e=>e.layout==="vertical"?"":"margin-left: 8px;"};
|
|
24
24
|
}
|
|
25
|
-
`;function jt({images:e,links:n,prefix:a="/images",addons:r,logo:
|
|
25
|
+
`;function jt({images:e,links:n,prefix:a="/images",addons:r,logo:i,...d}){const c=Q(),s=X(),u=(o,l)=>new RegExp(`/${l}`).test(s.pathname);return t.jsxs(wt,{...d,children:[t.jsx(W,{to:"/",className:"sidebar-logo",children:i||t.jsx(Z,{showText:!1,size:20})}),n.map(({url:o,name:l,title:x,showBadge:b})=>{const j=u(o,l);return t.jsxs(kt,{component:W,selected:j,to:o,children:[t.jsx(bt,{name:e[l],size:36,color:j?"#00c2c4":c.typography.color.main,prefix:a,showBadge:b}),t.jsx(P,{component:"span",className:"menu-title",children:x})]},o)}),t.jsx("div",{style:{flex:1}}),r]})}const wt=p.memo(f("div")`
|
|
26
26
|
flex: 1;
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: column;
|
|
@@ -142,7 +142,7 @@ import{bR as Re,bQ as Ae,bS as He,ao as Ve,bT as D,bp as F,r as p,bW as Ee,bX as
|
|
|
142
142
|
display: block;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
`;function zt({onToggleMenu:e,brand:n,description:a,addons:r,brandAddon:
|
|
145
|
+
`;function zt({onToggleMenu:e,brand:n,description:a,addons:r,brandAddon:i,homeUrl:d="/",logo:c,children:s,...u}){return t.jsx($t,{position:"sticky",className:"header",...u,children:t.jsxs(et,{disableGutters:!1,className:"header-toolbar",children:[t.jsx(de,{color:"inherit","aria-label":"open drawer",edge:"start",className:"header-menu","aira-label":"header menu button",onClick:e,children:t.jsx(xe,{})}),t.jsxs(W,{to:d,className:"header-link",children:[t.jsx(me,{mdDown:!0,children:t.jsx("div",{className:"header-logo",children:c||t.jsx(Z,{showText:!1})})}),t.jsxs("div",{className:"header-title",children:[t.jsxs(P,{component:"h2",noWrap:!0,className:"header-title__primary",children:[n,i]}),t.jsx(P,{component:"p",noWrap:!0,className:"header-title__secondary",children:a})]})]}),t.jsx(w,{flexGrow:1}),!!s&&t.jsx("div",{className:"header-children",children:s}),t.jsx("div",{className:"header-addons",children:r})]})})}function O(e){var x;const n=Qe(e,O,["dark","style"]),{className:a,copyStart:r,style:i,brand:d,dark:c,addon:s}=n,u=`${new Date().getFullYear()}`,o=`${r}`,l=u===o?u:`${o}-${u}`;return t.jsxs(Nt,{className:a,style:i,dark:c,children:[t.jsx(H,{maxWidth:!1,children:t.jsxs(P,{component:"div",className:"footer",children:[t.jsxs(P,{component:"p",className:"footer-item",children:[t.jsxs("span",{className:"footer-copy",children:["Copyright © ",l," "]}),t.jsx("span",{className:"footer-brand",children:d})]}),s&&t.jsx(P,{component:"div",className:"footer-item",sx:{order:{xs:"-1",md:"initial"},ml:{xs:0,md:"auto"},width:{xs:"100%",md:"auto"}},children:s}),t.jsxs(P,{component:"p",className:"footer-item",style:{justifyContent:"flex-end",flexShrink:0},children:["Powered by",t.jsx(Z,{mode:c?"light":"dark",layout:"horizontal",className:"logo-container"})]})]})}),t.jsx(w,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(x=window==null?void 0:window.blocklet)==null?void 0:x.version})]})}O.defaultProps={dark:!1,className:"",copyStart:"2017",brand:"ArcBlock",style:{},addon:null};const Nt=f("div",{shouldForwardProp:e=>e!=="dark"})`
|
|
146
146
|
position: relative;
|
|
147
147
|
margin-top: 64px;
|
|
148
148
|
padding: 24px 0 32px;
|
|
@@ -230,7 +230,7 @@ import{bR as Re,bQ as Ae,bS as He,ao as Ve,bT as D,bp as F,r as p,bW as Ee,bX as
|
|
|
230
230
|
box-shadow: 2px 16px 10px 0 rgba(0, 0, 0, ${e=>e.theme.mode==="light"?.05:.5});
|
|
231
231
|
border: 0;
|
|
232
232
|
}
|
|
233
|
-
`;function Mt({links:e=[],brand:n="",description:a="",images:r,title:
|
|
233
|
+
`;function Mt({links:e=[],brand:n="",description:a="",images:r,title:i="Home",brandAddon:d,headerAddon:c,prefix:s="/images",fullWidth:u=!1,contentLayout:o="column",className:l="",homeUrl:x="/",logo:b,children:j,...z}){const m=ce(document.body),v=(m==null?void 0:m.width)||0,[M,I]=p.useState(v>=960?"permanent":"temporary"),[B,R]=p.useState(M==="permanent");p.useEffect(()=>{const k=v>=960?"permanent":"temporary";I(k),R(k!=="temporary")},[v]);const $=()=>{R(!B)},g=u||o==="row";return t.jsxs(Ct,{className:`dashboard ${l}`,...z,children:[t.jsx(ue,{title:`${i}-${n}`}),t.jsx(zt,{className:"dashboard__header",onToggleMenu:$,brand:n,brandAddon:d,description:a,addons:c,homeUrl:x,logo:b}),t.jsxs(w,{display:"flex",className:"dashboard__body",children:[t.jsx(pe,{variant:M,className:"drawer",classes:{paper:"drawerPaper"},open:B,onClose:$,ModalProps:{disablePortal:!0,keepMounted:!0},children:t.jsx(jt,{className:"dashboard__sidebar",images:r,links:e,prefix:s,logo:b})}),t.jsxs(w,{className:"dashboard__main",children:[t.jsx(H,{maxWidth:g?!1:"lg",className:"dashboard__content",children:j}),t.jsx(O,{})]})]})]})}function It({height:e,...n}){return t.jsx(Pt,{height:e,...n})}const Pt=f(w)`
|
|
234
234
|
overflow: hidden;
|
|
235
235
|
&:before {
|
|
236
236
|
content: '';
|
|
@@ -243,7 +243,7 @@ import{bR as Re,bQ as Ae,bS as He,ao as Ve,bT as D,bp as F,r as p,bW as Ee,bX as
|
|
|
243
243
|
float: left;
|
|
244
244
|
white-space: nowrap;
|
|
245
245
|
}
|
|
246
|
-
`;function ke({logo:e=null,brand:n=null,brandAddon:a=null,description:r=null,children:
|
|
246
|
+
`;function ke({logo:e=null,brand:n=null,brandAddon:a=null,description:r=null,children:i=null,addons:d=null,prepend:c=null,align:s="left",maxWidth:u,homeLink:o="/",...l}){const x=p.useRef(null),[b,j]=p.useState("0px"),z={minWidth:b};p.useEffect(()=>{const{searchParams:m}=new URL(window.location.href);m.get("inviter")&&window.localStorage.setItem("inviter",m.get("inviter")),x.current&&j(`${x.current.offsetWidth}px`)},[]);const N=()=>{const m=t.jsxs(t.Fragment,{children:[e&&t.jsx("div",{className:"header-logo",ref:x,children:e}),n&&t.jsx(It,{height:44,sx:{flexShrink:{xs:1}},children:t.jsxs("div",{className:"header-brand",children:[t.jsx("div",{className:"header-brand-title",children:t.jsx("h2",{children:n})}),t.jsx("div",{className:"header-brand-desc",children:r})]})})]});return typeof o=="function"?o(m):t.jsx("a",{href:o,children:m})};return t.jsx(Lt,{...l,children:t.jsxs(H,{maxWidth:u,className:"header-container",children:[c,t.jsx("div",{className:"header-brand-wrapper",style:z,children:N()}),t.jsx("div",{className:"header-brand-addon",children:a}),s==="right"&&t.jsx(w,{display:"inline-block",flexGrow:1}),i,s==="left"&&t.jsx(w,{display:"inline-block",flexGrow:1}),t.jsx("div",{className:"header-addons",children:d})]})})}const Lt=f(w)`
|
|
247
247
|
position: relative;
|
|
248
248
|
z-index: ${e=>e.theme.zIndex.appBar};
|
|
249
249
|
font-size: 14px;
|
|
@@ -339,7 +339,7 @@ import{bR as Re,bQ as Ae,bS as He,ao as Ve,bT as D,bp as F,r as p,bW as Ee,bX as
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
`;function _t({menu:e,prepend:n,children:a,...r}){const
|
|
342
|
+
`;function _t({menu:e,prepend:n,children:a,...r}){const i=Q(),d=Xe(i.breakpoints.down("md")),[c,s]=p.useState(!1),u=typeof a=="function"?a({isMobile:d,closeMenu:()=>s(!1)}):a,o=he({changed:!1,value:"",priority:""});return q(()=>{var l;if((l=document.documentElement)!=null&&l.style){const x=()=>{o.changed&&(o.value?document.documentElement.style.setProperty("overflow",o.value,o.priority):document.documentElement.style.removeProperty("overflow"),o.value="",o.priority="",o.changed=!1)};return c?(o.changed=!0,o.value=document.documentElement.style.getPropertyValue("overflow"),o.priority=document.documentElement.style.getPropertyPriority("overflow"),document.documentElement.style.setProperty("overflow","revert","important")):x(),x}return()=>{}},[c]),a?t.jsxs(Bt,{prepend:n||t.jsx(de,{sx:{color:i.palette.grey[500]},edge:"start",className:"header-menu","aria-label":"header menu button",onClick:()=>s(!c),children:c?t.jsx(Je,{}):t.jsx(xe,{})}),...r,children:[!d&&u,d&&t.jsx(pe,{open:c,onClose:()=>s(!1),ModalProps:{disablePortal:!1,keepMounted:!0,BackdropComponent:void 0},anchor:"top",sx:{top:64,zIndex:i.zIndex.appBar-1},PaperProps:{style:{top:64,bottom:0,boxShadow:"none"}},children:t.jsx(Ft,{children:u})})]}):t.jsx(ke,{prepend:n,...r})}const Bt=f(ke)`
|
|
343
343
|
.header-menu {
|
|
344
344
|
display: none;
|
|
345
345
|
}
|
|
@@ -536,7 +536,7 @@ import{bR as Re,bQ as Ae,bS as He,ao as Ve,bT as D,bp as F,r as p,bW as Ee,bX as
|
|
|
536
536
|
.navmenu-sub--opened > .navmenu-sub-container {
|
|
537
537
|
display: block;
|
|
538
538
|
}
|
|
539
|
-
`,ee=p.createContext(null);function ze(e){return e?p.Children.toArray(e).filter(n=>p.isValidElement(n)?n.type===ne||n.type===T:!1):null}function Ne(e){return p.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function te({items:e=[],mode:n="horizontal",children:a=null,activeId:r=null,textColor:
|
|
539
|
+
`,ee=p.createContext(null);function ze(e){return e?p.Children.toArray(e).filter(n=>p.isValidElement(n)?n.type===ne||n.type===T:!1):null}function Ne(e){return p.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function te({items:e=[],mode:n="horizontal",children:a=null,activeId:r=null,textColor:i="#9397a1",activeTextColor:d="#25292f",bgColor:c="#fff",onSelected:s,...u}){var ae;const o=ze(a);if(!(e!=null&&e.length)&&!(o!=null&&o.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const l=he({activeId:r,openedIds:[],hiddenItemCount:0}),x=V(h=>{l.activeId=h,s==null||s(h)}),b=V(h=>{l.openedIds.push(h)}),j=V(h=>{l.openedIds=l.openedIds.filter(y=>y!==h)}),z=q(()=>({...l,mode:n,activate:x,open:b,close:j}),[l.activeId,l.hiddenItemCount,l.openedIds,n,x,b,j]),N=p.useRef(null),m=p.useRef([]),v=p.useRef(null),M=l.hiddenItemCount===((ae=m.current)==null?void 0:ae.length),I=M?{marginLeft:"0px"}:void 0,B=q(()=>M?t.jsx(lt,{}):t.jsx(dt,{}),[M]),R=h=>p.Children.map(h,(y,L)=>p.cloneElement(y,{ref:C=>{m.current[L]=C}})),$=ce(N.current),{run:g}=st(V(()=>{let h=0,y=0,L=!1;const C=($==null?void 0:$.width)||0,U=v.current?v.current.offsetWidth+parseFloat(window.getComputedStyle(v.current).marginLeft):0;m.current.forEach((A,Be)=>{if(A){A.style.display="flex";const Fe=Be>0?parseFloat(window.getComputedStyle(A).marginLeft):0,oe=A.offsetWidth+Fe;C-U>=h+oe&&!L?h+=oe:(A.style.display="none",L=!0,y++)}}),y!==l.hiddenItemCount&&(l.hiddenItemCount=y)}),{wait:100});p.useLayoutEffect(()=>{n==="horizontal"&&g()},[$==null?void 0:$.width,n]),p.useEffect(()=>{if(n==="horizontal")return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[n,e]),p.useEffect(()=>{r!=null&&(l.activeId=r)},[r]);const k=_("navmenu",`navmenu--${n}`,u.className),S=(h,y,L=!1)=>h!=null&&h.children?t.jsx(T,{id:h.id,icon:h.icon,label:h.label,ref:L?C=>{m.current[y]=C}:void 0,children:h.children.map((C,U)=>S(C,U,!1))},h.id):t.jsx(ne,{id:h.id,icon:h.icon,label:h.label,active:h.active,ref:L?C=>{m.current[y]=C}:void 0},h.id),Le=e?e==null?void 0:e.slice(-l.hiddenItemCount).map((h,y)=>S(h,y)):o==null?void 0:o.slice(-l.hiddenItemCount),_e=n==="inline"?At:Rt;return t.jsx(ee.Provider,{value:z,children:t.jsx(_e,{...u,className:k,$textColor:i,$activeTextColor:d,$bgColor:c,children:t.jsxs("ul",{className:"navmenu-root",ref:N,children:[e?e.map((h,y)=>S(h,y,!0)):R(o||[]),l.hiddenItemCount>0&&t.jsx(T,{expandIcon:!1,icon:B,label:"",ref:v,style:I,children:Le})]})})})}const ne=p.forwardRef(({id:e="",icon:n=null,label:a="",active:r=!1,onClick:i=null,...d},c)=>{const s=Ne(e),{activeId:u,activate:o}=p.useContext(ee)||{},l=_("navmenu-item",{"navmenu-item--active":u===s},d.className);p.useEffect(()=>{r&&(o==null||o(s))},[r]);const x=()=>{i==null||i(),o==null||o(s)};return t.jsxs("li",{...d,className:l,onClick:x,ref:c,children:[n&&t.jsx("span",{className:"navmenu-item-icon",children:n}),t.jsx("span",{className:"navmenu-item-label",children:a})]})}),T=p.forwardRef(({id:e="",icon:n=null,label:a=null,children:r,expandIcon:i=({isOpen:s})=>t.jsx(it,{style:{transform:`rotate(${s?180:0}deg)`}}),...d},c)=>{const s=Ne(e),{openedIds:u,open:o,close:l,mode:x}=p.useContext(ee)||{},b=(u==null?void 0:u.includes(s))??!1,j=_("navmenu-sub",{"navmenu-sub--opened":b},d.className),z=x==="inline",N=z?{onClick:()=>{u!=null&&u.includes(s)?l==null||l(s):o==null||o(s)}}:{onMouseEnter:()=>o==null?void 0:o(s),onMouseLeave:()=>l==null?void 0:l(s)},m=z?{onClick:v=>v.stopPropagation()}:{};return t.jsxs("li",{...d,className:j,...N,ref:c,children:[n&&t.jsx("span",{className:"navmenu-sub-icon",children:n}),t.jsx("span",{className:"navmenu-sub-label",children:a}),i&&t.jsx("span",{className:"navmenu-sub-expand-icon",children:typeof i=="function"?i({isOpen:b}):i}),t.jsx("div",{className:"navmenu-sub-container",...m,children:t.jsx("ul",{className:"navmenu-sub-list",children:ze(r)})})]})});te.Item=ne;te.Sub=T;function Ce({routerLinkComponent:e,to:n,external:a=!1,children:r,...i}){return a?t.jsx("a",{href:n,...i,children:r}):t.jsx(e,{to:n,...i,children:r})}function Me(e){return t.jsx(Ce,{routerLinkComponent:W,...e})}function Ht({className:e="",...n}){const a=typeof e=="function"?e():e;return t.jsx(Ce,{routerLinkComponent:Ke,className:a,...n})}function Ie(e,n){var u;if((u=e.children)!=null&&u.length)return Vt(e,n);const{url:a,icon:r,title:i,showBadge:d,external:c,active:s}=e;return t.jsx("li",{className:"layout-sidebar-item",children:t.jsxs(Ht,{external:c,to:a,className:()=>_("layout-sidebar-link",{"layout-sidebar-link--active":c?s:!1}),children:[r&&t.jsx("span",{className:`layout-sidebar-icon ${d?"layout-sidebar-badge":""}`,children:r}),t.jsx(P,{component:"span",className:"layout-sidebar-link-text",children:i})]})},`${a}-${n}`)}function Vt(e,n){return t.jsxs("li",{className:"layout-sidebar-group",children:[t.jsx("span",{className:"layout-sidebar-group-title",children:e.title}),t.jsx("ul",{children:e.children.map(Ie)})]},`group-${e.title}-${n}`)}function se({links:e,addons:n,dense:a=!1,...r}){return t.jsxs(Dt,{...r,className:_({"layout-sidebar-dense":a}),children:[t.jsx("ul",{children:e.map(Ie)}),t.jsx("div",{style:{flex:1}}),n]})}const Et="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",Dt=f("div")`
|
|
540
540
|
display: flex;
|
|
541
541
|
flex-direction: column;
|
|
542
542
|
ul {
|
|
@@ -661,7 +661,7 @@ import{bR as Re,bQ as Ae,bS as He,ao as Ve,bT as D,bp as F,r as p,bW as Ee,bX as
|
|
|
661
661
|
margin-top: 16px;
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
`;function Wt({closeMenu:e,...n}){const a=X();return p.useEffect(()=>{e()},[a]),t.jsx(te,{...n})}function Pe(e,n){return e.map(a=>{var r;return(r=a.children)!=null&&r.length?{...a,label:a.title,children:Pe(a.children,n)}:{...a,label:t.jsx(Me,{to:a.url,external:a.external,children:a.title}),active:a.external?a.active:!!
|
|
664
|
+
`;function Wt({closeMenu:e,...n}){const a=X();return p.useEffect(()=>{e()},[a]),t.jsx(te,{...n})}function Pe(e,n){return e.map(a=>{var r;return(r=a.children)!=null&&r.length?{...a,label:a.title,children:Pe(a.children,n)}:{...a,label:t.jsx(Me,{to:a.url,external:a.external,children:a.title}),active:a.external?a.active:!!Ze({path:a.url,end:!1},n.pathname)}})}function Tt({title:e="Home",headerProps:n={},links:a=[],sidebarWidth:r=120,fullWidth:i=!1,dense:d="auto",footerProps:c={},children:s,...u}){const o=Q(),{inFullPage:l,showToggleButton:x,headerVisible:b,footerVisible:j,sidebarVisible:z,toggleFullPage:N}=ct(),m=X(),v=p.useMemo(()=>Pe(a,m),[m,a]),M=v.some(g=>{var k;return!!((k=g.children)!=null&&k.length)}),I=d==="auto"?v.length>=8||M:d,B=_("dashboard",{"dashboard-dense":I},u.className),$={homeLink:g=>{var k;return t.jsx(Me,{to:((k=window.blocklet)==null?void 0:k.prefix)||"/",children:g})},...n};return p.useEffect(()=>{const{searchParams:g}=new URL(window.location.href);g.get("inviter")&&window.localStorage.setItem("inviter",g.get("inviter"))},[]),t.jsxs(Ot,{...u,className:B,sidebarWidth:r,children:[t.jsx(ue,{title:e},e),b&&t.jsx(St,{...$,className:"dashboard-header",children:a!=null&&a.length?({isMobile:g,closeMenu:k})=>g?t.jsx(Wt,{mode:"inline",items:v,closeMenu:k,bgColor:"transparent",activeTextColor:o.palette.primary.main}):null:null}),t.jsxs(w,{display:"flex",className:"dashboard-body",children:[t.jsx(me,{mdDown:!0,children:!!(a!=null&&a.length)&&z&&t.jsx(w,{className:"dashboard-sidebar",children:I?t.jsx(se,{links:a,dense:I}):t.jsx(w,{className:"dashboard-sidebar-container",children:t.jsx(se,{links:a,dense:I})})})}),t.jsxs(w,{className:"dashboard-main",children:[x&&t.jsx(w,{sx:{position:"absolute",top:4,right:4,display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24,color:"#fff",bgcolor:"rgba(158,158,158, 0.6);",borderRadius:1,cursor:"pointer"},onClick:N,children:l?t.jsx(be,{style:{fontSize:18}}):t.jsx(ge,{style:{fontSize:18}})}),t.jsx(H,{className:"dashboard-content",...i&&{maxWidth:!1},children:s}),j&&t.jsx(O,{...c})]})]})]})}const Ot=f("div",{shouldForwardProp:e=>e!=="sidebarWidth"})`
|
|
665
665
|
&.dashboard {
|
|
666
666
|
display: flex;
|
|
667
667
|
flex-direction: column;
|