@abtnode/blocklet-services 1.16.33-beta-20241015-065257-56072e40 → 1.16.33-beta-20241016-094817-da9da642
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/connect/connect-to-did-spaces-for-user.js +21 -15
- package/dist/assets/{Add-DqnQRxKy.js → Add-DAQA4hl7.js} +1 -1
- package/dist/assets/{Alert-D-5Cob8e.js → Alert-B8kenWpY.js} +1 -1
- package/dist/assets/{ArrowDropDown-D0Z0e8Y7.js → ArrowDropDown-B4CQuaFu.js} +1 -1
- package/dist/assets/Autocomplete-D0sWlFIR.js +1 -0
- package/dist/assets/{Avatar-s-RbgNaK.js → Avatar-7y20d6uv.js} +1 -1
- package/dist/assets/{ButtonGroup-CbB4bj5R.js → ButtonGroup-DRVN-vsI.js} +1 -1
- package/dist/assets/{CheckCircle-DCNwD36J.js → CheckCircle-BI66VMY6.js} +1 -1
- package/dist/assets/{ChevronLeft-D9qAKhUC.js → ChevronLeft-DmDrmJDF.js} +1 -1
- package/dist/assets/{ChevronRight-Bg7d5X-4.js → ChevronRight-D-HWZ2Zs.js} +1 -1
- package/dist/assets/{Close-BrR3bQ06.js → Close-BWGd-Nvb.js} +1 -1
- package/dist/assets/{CloseOutlined-C5GNiQn3.js → CloseOutlined-BxdDTJtY.js} +1 -1
- package/dist/assets/Delete-Cbmwi2_n.js +1 -0
- package/dist/assets/{DeleteOutline-DmQE35jW.js → DeleteOutline-DCYu02gd.js} +1 -1
- package/dist/assets/{DialogContentText-CD_9b35x.js → DialogContentText-M0t1zhqn.js} +1 -1
- package/dist/assets/{Done-CqmY_Vcx.js → Done-DqYPOWOz.js} +1 -1
- package/dist/assets/{Download-CQuftYbA.js → Download-BRihSpJ5.js} +1 -1
- package/dist/assets/{Edit-BDivRC_m.js → Edit-Dm5CBPHC.js} +1 -1
- package/dist/assets/{EditIcon-BGTWmwGP.js → EditIcon-BzxcFyWF.js} +1 -1
- package/dist/assets/{Error-K08nzD90.js → Error-D_2Fmq_E.js} +1 -1
- package/dist/assets/{ExpandMore-CbxNhKjL.js → ExpandMore-BlBxw7cf.js} +1 -1
- package/dist/assets/{FormControl-DU81G5bu.js → FormControl-P0hOBz_d.js} +1 -1
- package/dist/assets/{FormControlLabel-8jOHLgVZ.js → FormControlLabel-DXJxfDzh.js} +1 -1
- package/dist/assets/{FormGroup-QuqjTPhE.js → FormGroup-BMxqnWKW.js} +1 -1
- package/dist/assets/{Google-D-XsFWKn.js → Google-Dz_lBWZG.js} +1 -1
- package/dist/assets/{Grid-DwcLhQj8.js → Grid-Dk_DYqwe.js} +1 -1
- package/dist/assets/{Hidden-BWJFU4i6.js → Hidden-3B3zKMrj.js} +1 -1
- package/dist/assets/{InfoOutlined-C3RYxox6.js → InfoOutlined-BxfEr3Yv.js} +1 -1
- package/dist/assets/{InputAdornment-C0QKC-6w.js → InputAdornment-DBYVP0VZ.js} +1 -1
- package/dist/assets/{InputLabel-CsbfU4t_.js → InputLabel-CUj0gAgE.js} +1 -1
- package/dist/assets/{LastPage-BSjbJ19R.js → LastPage-DfP2R9Oa.js} +1 -1
- package/dist/assets/{Launch-CaoQNMs1.js → Launch-B871fo3J.js} +1 -1
- package/dist/assets/{LaunchOutlined-vrY0ldr3.js → LaunchOutlined-DMPabe2p.js} +1 -1
- package/dist/assets/{Link-Bd4I60CZ.js → Link-DiIwF6B2.js} +1 -1
- package/dist/assets/{LoadingButton-COZG9CB2.js → LoadingButton-B9Uh-LQA.js} +1 -1
- package/dist/assets/{LockIcon-wo568AAO.js → LockIcon-PoUIp4UY.js} +1 -1
- package/dist/assets/{Loop-CUHuPZIs.js → Loop-Cz6irMix.js} +1 -1
- package/dist/assets/{Menu-__JVjbvi.js → Menu-D9WDrqHE.js} +1 -1
- package/dist/assets/{MoreHoriz-BH5FNIZr.js → MoreHoriz-Bzyp9XwU.js} +1 -1
- package/dist/assets/{MoreVert-D-K4HVDp.js → MoreVert-6cQtfCA6.js} +1 -1
- package/dist/assets/{OpenInNew-BpWAPS1j.js → OpenInNew-Cyzkq5Z6.js} +1 -1
- package/dist/assets/{Pagination-BdSgult3.js → Pagination-CIhFbEoY.js} +1 -1
- package/dist/assets/{PlayArrow-CMt8YTny.js → PlayArrow-DfVelCxI.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-BekFUFeC.js → QuestionMarkCircle-Dmo7fO3q.js} +1 -1
- package/dist/assets/{RadioGroup-B2Khdnc_.js → RadioGroup-C8LRTono.js} +1 -1
- package/dist/assets/{Search-KdQ0ouxL.js → Search-sf4kfFV4.js} +1 -1
- package/dist/assets/{Select-DAnPr_8-.js → Select-DiRwP_6a.js} +1 -1
- package/dist/assets/{ServerLogo-BbRAfhR0.js → ServerLogo-DrHcOw4m.js} +1 -1
- package/dist/assets/{Skeleton-H3kZ6ORR.js → Skeleton-DiG5VWr2.js} +1 -1
- package/dist/assets/{Slider-CoVFgzif.js → Slider-DHlnySvX.js} +1 -1
- package/dist/assets/{Stack-kpnWV2Q2.js → Stack-BkDLp2S8.js} +1 -1
- package/dist/assets/{Stepper-Bpc-SXn1.js → Stepper-Cr4Ue7LM.js} +1 -1
- package/dist/assets/{TextField-iQ2izHdV.js → TextField-CCB_Jmv_.js} +1 -1
- package/dist/assets/{Toolbar-C8tBwEgb.js → Toolbar-BAiWv4-B.js} +1 -1
- package/dist/assets/{ViewColumn-CAU8rzyD.js → ViewColumn-DhNVCNtY.js} +1 -1
- package/dist/assets/{ViewList-BN0LV4EA.js → ViewList-D2QiFryN.js} +1 -1
- package/dist/assets/{access-control-JIrHa3mu.js → access-control-B1yRTcWF.js} +1 -1
- package/dist/assets/actions-Cm4y3Vxr.js +1 -0
- package/dist/assets/{add-component-core-11KaEkJm.js → add-component-core-BAFb6uHx.js} +55 -55
- package/dist/assets/add-resource-Bxy_EIU5.js +1 -0
- package/dist/assets/{addon-s6cY0RTa.js → addon-uerpU2Yk.js} +1 -1
- package/dist/assets/{analytics-d1lnz8LZ.js → analytics-CX0H_3Z4.js} +3 -3
- package/dist/assets/api-DxtqIksv.js +1 -0
- package/dist/assets/audit-logs-B77XgUxl.js +58 -0
- package/dist/assets/{base32-BQxmSgK5.js → base32-BbDUMCim.js} +1 -1
- package/dist/assets/{bundle-avatar-CxueSElp.js → bundle-avatar-J_a9wisR.js} +1 -1
- package/dist/assets/{button-j8-IOkkQ.js → button-CZGN0DFI.js} +1 -1
- package/dist/assets/{click-to-copy-DglMzVEl.js → click-to-copy-CPjwr766.js} +1 -1
- package/dist/assets/{complete-DQAgKCkw.js → complete-C9fCRXxg.js} +2 -2
- package/dist/assets/{component-CMHk7ZdA.js → component-Bjp-R3IE.js} +1 -1
- package/dist/assets/{config-Wu6XmTD_.js → config-BxeAHcCc.js} +1 -1
- package/dist/assets/{config-DekTNtmY.js → config-ChJImtJc.js} +1 -1
- package/dist/assets/{config-navigation-DkA8cq-f.js → config-navigation-Cxy6wwv0.js} +2 -2
- package/dist/assets/{confirm-C-ZpymsR.js → confirm-CZh9lrf7.js} +1 -1
- package/dist/assets/{connect-BbggA6aj.js → connect-CKHZQLeh.js} +1 -1
- package/dist/assets/{connect-D6WVNvFp.js → connect-Cc_HQwn4.js} +1 -1
- package/dist/assets/connect-to-BvUi2lDi.js +54 -0
- package/dist/assets/{content-layout-Bw7ct9HF.js → content-layout-dCNXPQB4.js} +1 -1
- package/dist/assets/{dashboard-hWtF2-L2.js → dashboard-BhEpCrng.js} +7 -7
- package/dist/assets/{deprecate-CeNqPdFm.js → deprecate-CstKkKFM.js} +1 -1
- package/dist/assets/{did-address-D8JyTgrD.js → did-address-DXunIer2.js} +1 -1
- package/dist/assets/domain-T2wMVe21.js +9 -0
- package/dist/assets/domain-list-BIxxgG74.js +15 -0
- package/dist/assets/{email-BTR1Y1ZI.js → email-BWRSAcoV.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-Mm6229p7.js +1 -0
- package/dist/assets/{exchange-passport-CCKPXR9k.js → exchange-passport-CuCHGbCf.js} +1 -1
- package/dist/assets/{fallback-Cmo8A_sx.js → fallback-B1bvHdlx.js} +1 -1
- package/dist/assets/{format-error-Dg_Wyxee.js → format-error-MSTr4Dld.js} +1 -1
- package/dist/assets/{fuel-CyQICCYM.js → fuel-Dgzaq3De.js} +1 -1
- package/dist/assets/{fullpage-BWf8VCc2.js → fullpage-BwWBbfSq.js} +1 -1
- package/dist/assets/{home-CudcogEq.js → home-74tIkF1B.js} +1 -1
- package/dist/assets/{iframe-DeQzhqQa.js → iframe-86-twlRv.js} +1 -1
- package/dist/assets/{index-CQMONHyO.js → index-29_4R1is.js} +1 -1
- package/dist/assets/{index-ClWQBhLB.js → index-B5PmYJ9f.js} +4 -4
- package/dist/assets/{index-zI_ZOFnN.js → index-BFeN7gRX.js} +1 -1
- package/dist/assets/{index-uIjak6TC.js → index-BJZKVgnz.js} +1 -1
- package/dist/assets/{index-BiimVseX.js → index-BKvulX5F.js} +1 -1
- package/dist/assets/{index-Bkw6k1IR.js → index-BYwmGv42.js} +1 -1
- package/dist/assets/{index-DyetLrsl.js → index-B_vncBdF.js} +1 -1
- package/dist/assets/{index-LFr2EjPD.js → index-BaOr19U9.js} +1 -1
- package/dist/assets/{index-B2EWcNti.js → index-Bi4O8Q7b.js} +1 -1
- package/dist/assets/{index-HduLTk-B.js → index-BnwRbf34.js} +1 -1
- package/dist/assets/{index-lDFcjwBH.js → index-C2SclAt1.js} +3 -3
- package/dist/assets/{index-B38g4Lrs.js → index-C8tvv1mE.js} +1 -1
- package/dist/assets/{index-D4hqMq4n.js → index-C9uoGnCi.js} +5 -5
- package/dist/assets/{index-BYWPqRt3.js → index-Cb5ummYm.js} +1 -1
- package/dist/assets/{index-BKiZMfI8.js → index-D1wE6UgA.js} +1 -1
- package/dist/assets/{index-D0d5K626.js → index-D2v_q--c.js} +1 -1
- package/dist/assets/{index-DL2n6aNi.js → index-D3z0u_tU.js} +1 -1
- package/dist/assets/{index-BFdHbwvA.js → index-D6Fo42LG.js} +8 -8
- package/dist/assets/{index-DL8j4eLo.js → index-DL-uDyV1.js} +2 -2
- package/dist/assets/{index-WK-4Jv48.js → index-DY43G97W.js} +1 -1
- package/dist/assets/{index-DsFggFMW.js → index-DYgo92mz.js} +1 -1
- package/dist/assets/{index-D5hrwpNn.js → index-DYtGXeNF.js} +1 -1
- package/dist/assets/index-DZAe2asg.js +68 -0
- package/dist/assets/{index-huBceCKu.js → index-D_l3bgiM.js} +1 -1
- package/dist/assets/{index-DXdaJNxD.js → index-Df44Oc0v.js} +1 -1
- package/dist/assets/{index-Dbd0UdkJ.js → index-DlP4vQPr.js} +1 -1
- package/dist/assets/{index-BEYLS2u3.js → index-Dvdwt5er.js} +1 -1
- package/dist/assets/{index-vR66LHmq.js → index-DyV0uX5c.js} +1 -1
- package/dist/assets/{index-ByEsfkzb.js → index-HE7O7jgn.js} +1 -1
- package/dist/assets/{index-BbQ5j9k0.js → index-TIPq1YB5.js} +1 -1
- package/dist/assets/{index-LX_b6VRi.js → index-bo5TF2Hm.js} +1 -1
- package/dist/assets/{index-B1SC_K3b.js → index-j8fq8gc5.js} +1 -1
- package/dist/assets/{index-BnA2ESWk.js → index-rvdKk-hW.js} +1 -1
- package/dist/assets/{index.es-DfiZlCd9.js → index.es-D6kSEknT.js} +1 -1
- package/dist/assets/index.esm-BACx3Bgt.js +1 -0
- package/dist/assets/{invitation-BqxPLgK4.js → invitation--LuhvYG3.js} +1 -1
- package/dist/assets/{invite-DzIfhYiY.js → invite-CnAaywBJ.js} +1 -1
- package/dist/assets/{issue-passport-9BLYNaCr.js → issue-passport-CHQbzhyM.js} +1 -1
- package/dist/assets/{item-na2wyX63.js → item-DiPWmg4D.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-5l3ETyUY.js → jss-plugin-props-sort.esm-BbUCTvTY.js} +4 -4
- package/dist/assets/{launch-result-message-Cy6kSqOC.js → launch-result-message-DUOKkM73.js} +1 -1
- package/dist/assets/{layout-C5DlPn9b.js → layout-DpBlA8e2.js} +1 -1
- package/dist/assets/{list-header-BKwrl-hH.js → list-header-DWE1hNBN.js} +1 -1
- package/dist/assets/localization-C5NLdJbv.js +1 -0
- package/dist/assets/{log-CYXHC1Be.js → log-53QGCL9A.js} +1 -1
- package/dist/assets/{login-DBaWywd8.js → login-BaZ1FJDR.js} +1 -1
- package/dist/assets/{login-oauth-callback-DgED49zc.js → login-oauth-callback-CTDRh2SM.js} +1 -1
- package/dist/assets/logo-uploader-D48tPsQ7.js +122 -0
- package/dist/assets/{lost-passport-CUOsAPVE.js → lost-passport-BguCyjaA.js} +3 -3
- package/dist/assets/{lottie-B_-5Nu2X.js → lottie-DXvsb19-.js} +1 -1
- package/dist/assets/notifications-0JFtARNG.js +62 -0
- package/dist/assets/{open-window-Di3nvKTK.js → open-window-CpqnuS9I.js} +1 -1
- package/dist/assets/overview-CiGfQ_r4.js +12 -0
- package/dist/assets/{page-header-MeO_z3el.js → page-header-BhMIblde.js} +1 -1
- package/dist/assets/{permission-CE9IIvmU.js → permission-Bn8ONtBu.js} +1 -1
- package/dist/assets/{preferences-Dwq31bO_.js → preferences-Be_zxnom.js} +1 -1
- package/dist/assets/publish-resource-B2D7mrbE.js +1 -0
- package/dist/assets/{react-87q4e1zg.js → react-B76g6xcQ.js} +3 -3
- package/dist/assets/{redux-B_wza_7l.js → redux-DNNFTtlX.js} +1 -1
- package/dist/assets/{resource-dialog-o1JpezFF.js → resource-dialog-D9phHFD1.js} +1 -1
- package/dist/assets/sdk-D3N7Lly-.js +1 -0
- package/dist/assets/{selector-D4kevKoJ.js → selector-CHNq0IRi.js} +1 -1
- package/dist/assets/session-DQy8BnkU.js +1 -0
- package/dist/assets/setup-BQC0e1_I.js +19 -0
- package/dist/assets/{shorten-label-945B5Up2.js → shorten-label-DsvGvUrQ.js} +1 -1
- package/dist/assets/{slicedToArray-CnpUWxvD.js → slicedToArray-DXMU5JZD.js} +2 -2
- package/dist/assets/{spaces-DWho7Umf.js → spaces-D4gX0_rK.js} +1 -1
- package/dist/assets/{start-Cn6C_fbf.js → start-Bt8Vsvhc.js} +1 -1
- package/dist/assets/{step-actions-Bx6nqm4u.js → step-actions-Dkbriu2L.js} +1 -1
- package/dist/assets/{studio-COHSHcfG.js → studio-Dqu6paHO.js} +1 -1
- package/dist/assets/{switch-control-C49xUZcp.js → switch-control-DbSaBWqA.js} +1 -1
- package/dist/assets/{toUpper-bXsm_qXw.js → toUpper-CliKP7G7.js} +1 -1
- package/dist/assets/{transfer-CtRN0KqM.js → transfer-Bm_twE74.js} +1 -1
- package/dist/assets/{trim-DqVVu3Il.js → trim-B-4xv-e3.js} +1 -1
- package/dist/assets/{uniqBy-7lIpMVYc.js → uniqBy-B9USxWYR.js} +1 -1
- package/dist/assets/{unsubscribe-BkF0tuUQ.js → unsubscribe-CmK-13jy.js} +1 -1
- package/dist/assets/{url-join-DE9yKz66.js → url-join-M0zkNbYb.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-CRYIjvnV.js → use-blocklet-info-for-connect-did-spaces-D6v0hDzW.js} +1 -1
- package/dist/assets/{use-mobile-DKrWYav8.js → use-mobile-B0GQXwHM.js} +1 -1
- package/dist/assets/{useAsync-D04qYCKi.js → useAsync-BWFWaRkz.js} +1 -1
- package/dist/assets/{useFormControl-i0joqxpq.js → useFormControl-B0cusiJt.js} +1 -1
- package/dist/assets/useLocalStorage-CuRBIcWm.js +1 -0
- package/dist/assets/{useSetState-AqQC8uHm.js → useSetState-BMiClb9g.js} +1 -1
- package/dist/assets/{useSlot-1RyLiIq-.js → useSlot-CRlI8p2I.js} +1 -1
- package/dist/assets/{useSlotProps-ChBJ3S4r.js → useSlotProps-JEaJsoR3.js} +1 -1
- package/dist/assets/{useThemeProps-CQg5bnNT.js → useThemeProps-pSaUXwQT.js} +1 -1
- package/dist/assets/user-center-Pqaf1DAY.js +1 -0
- package/dist/assets/{user-sessions-DNBXGW2i.js → user-sessions-Cc78WqU9.js} +1 -1
- package/dist/assets/{util-dbb-2LGO.js → util-BKr59-9_.js} +1 -1
- package/dist/assets/{wrap-locale-Cng_yCBU.js → wrap-locale-CK-9zfpl.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +18 -18
- package/dist/assets/Delete-B15-niP2.js +0 -1
- package/dist/assets/ListItemText-Ch-Hk6jW.js +0 -1
- package/dist/assets/actions-C4C-_7q7.js +0 -1
- package/dist/assets/add-resource-BB2L3tHk.js +0 -1
- package/dist/assets/api-CGBrxiXH.js +0 -1
- package/dist/assets/audit-logs-BOd17etC.js +0 -58
- package/dist/assets/connect-to-CQAPJyx5.js +0 -54
- package/dist/assets/domain-XgUsUoU_.js +0 -9
- package/dist/assets/domain-list-CegYP2MT.js +0 -15
- package/dist/assets/emotion-cache.browser.esm-ChperYzD.js +0 -1
- package/dist/assets/index-IYWm69Iu.js +0 -68
- package/dist/assets/index.esm-DEFFuCAx.js +0 -1
- package/dist/assets/localization-Bt5wkdvO.js +0 -1
- package/dist/assets/logo-uploader-DICViK_m.js +0 -122
- package/dist/assets/notifications-CNKkgV5g.js +0 -62
- package/dist/assets/overview-C9i2bvR9.js +0 -12
- package/dist/assets/publish-resource-DUMhyaXr.js +0 -1
- package/dist/assets/sdk-DGa3oCWi.js +0 -1
- package/dist/assets/session-PAtiUW6l.js +0 -1
- package/dist/assets/setup-BVFgT3ZW.js +0 -19
- package/dist/assets/useLocalStorage-DKFLmhtB.js +0 -1
- package/dist/assets/user-center-DAb90CGM.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{X as ze,Y as De,j as o,bA as Q,c as fe,bB as he,u as z,r as O,bC as ee,l as y,k as C,aj as ke,B as h,A as Ce,bD as q,T as B,bf as _e,bE as j,bF as P,bG as Ee,bH as Fe,a as re,bI as L,n as oe,D as Se,aC as H,t as _,bJ as Me,bK as Pe,bL as ge,bM as Oe,N as K,aT as ne,bN as We,bO as $e,O as ie,bP as me,aS as He,a1 as ae,bQ as Ie,bR as Ne,bS as S,bT as Ge,bU as Ve,bV as qe,bW as Qe,s as Xe,q as Ke,bX as Je,bY as Ye,bZ as Ze,b_ as eo,b$ as oo,c0 as to,c1 as ro,c2 as no,m as io,R as ao,w as be,bx as so,H as lo}from"./index-C2SclAt1.js";import{H as co,F as po}from"./index-Cb5ummYm.js";import{f as uo,g as xo}from"./index-BJZKVgnz.js";import{S as fo,t as T,P as ho,a as go,b as mo,M as bo,C as ve,c as vo,d as jo,E as wo,D as yo,A as ko,e as M,I as Co,L as So,f as Po,g as Io}from"./resource-dialog-D9phHFD1.js";import{T as Ae}from"./index-BYwmGv42.js";import{E as Z}from"./index-BaOr19U9.js";import{E as Ao}from"./fallback-B1bvHdlx.js";import{d as Bo,U as Ro}from"./user-sessions-Cc78WqU9.js";import{u as je}from"./uniqBy-B9USxWYR.js";import{S as Be}from"./index-29_4R1is.js";import{i as Lo}from"./index-D1wE6UgA.js";import{S as Re}from"./Select-DiRwP_6a.js";import{T as To}from"./TextField-CCB_Jmv_.js";import{I as Uo}from"./InputAdornment-DBYVP0VZ.js";import{A as zo}from"./Alert-B8kenWpY.js";import{S as Do}from"./Stack-BkDLp2S8.js";import"./index-C9uoGnCi.js";import"./index-TIPq1YB5.js";import"./Menu-D9WDrqHE.js";import"./Toolbar-BAiWv4-B.js";import"./Hidden-3B3zKMrj.js";import"./ExpandMore-BlBxw7cf.js";import"./Avatar-7y20d6uv.js";import"./useSlot-CRlI8p2I.js";import"./MoreVert-6cQtfCA6.js";import"./selector-CHNq0IRi.js";import"./index-j8fq8gc5.js";import"./emotion-cache.browser.esm-Mm6229p7.js";import"./OpenInNew-Cyzkq5Z6.js";import"./CloseOutlined-BxdDTJtY.js";import"./use-mobile-B0GQXwHM.js";import"./Link-DiIwF6B2.js";import"./FormControlLabel-DXJxfDzh.js";import"./useFormControl-B0cusiJt.js";import"./FormControl-P0hOBz_d.js";import"./InputLabel-CUj0gAgE.js";import"./useThemeProps-pSaUXwQT.js";import"./Grid-Dk_DYqwe.js";import"./index-BFeN7gRX.js";import"./redux-DNNFTtlX.js";import"./ViewColumn-DhNVCNtY.js";import"./FormGroup-BMxqnWKW.js";import"./Delete-Cbmwi2_n.js";import"./LastPage-DfP2R9Oa.js";import"./Search-sf4kfFV4.js";var se={},_o=De;Object.defineProperty(se,"__esModule",{value:!0});var Le=se.default=void 0,Eo=_o(ze()),Fo=o;Le=se.default=(0,Eo.default)((0,Fo.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"RefreshOutlined");const Te=(e,c)=>{let a;return e==="default"?a=Q.DEFAULT_COLORS["app-passport"]:e==="auto"?a=Q.getNftBGColorFromDid(c):a=Q.getNftBGColor(e),a},Mo=({issuer:e="",title:c="",issuerDid:a="",issuerAvatarUrl:g="",ownerDid:i="",ownerAvatarUrl:d="",preferredColor:x="default",revoked:r=!1,isDataUrl:l=!1,width:t="100%",height:p="100%"})=>{const f=Te(x,a),v=Q.getSvg({width:t,height:p,tag:r?"revoked":"",tagVariant:r?"error":"info",color:f,did:i,variant:"app-passport",verifiable:!0,issuer:{name:e,icon:g},header:{name:c,icon:d},extra:{key:"Exp",value:"2123-01-01"}});return l?`data:image/svg+xml;utf8,${encodeURIComponent(v)}`:v},Oo=({issuer:e="",title:c="",issuerDid:a="",issuerAvatarUrl:g="",ownerDid:i="",ownerName:d="",ownerAvatarUrl:x="",preferredColor:r="default",type:l="email",revoked:t=!1,isDataUrl:p=!1,width:f="100%",height:v="100%"})=>{const u=Te(r,a),s=Q.getSvg({width:f,height:v,tag:t?"revoked":"",tagVariant:t?"error":"info",color:u,did:i,variant:"app-kyc",verifiable:!0,issuer:{name:e,icon:g},header:{name:d,icon:x},extra:{key:l,value:c}});return p?`data:image/svg+xml;utf8,${encodeURIComponent(s)}`:s},X=e=>{const{response:c}=e;return c?`Request failed: ${c.status} ${c.statusText}: ${JSON.stringify(c.data)}`:e.message},Wo=e=>e.scope==="kyc"?Oo({...e,issuerAvatarUrl:fe(window.location.origin,he,"/blocklet/logo"),type:e.role}):Mo({...e,issuerAvatarUrl:fe(window.location.origin,he,"/blocklet/logo")});function we({user:e,isMyself:c=!0,showFullDid:a=!0,switchPassport:g,switchProfile:i,openSettings:d,...x}){var b;const{locale:r}=z(),{session:l}=O.useContext(ee),[t,p]=O.useState(!1),f=y((m,k={})=>L(T,m,r,"en",k)),v=C(()=>{var m;return(m=(e==null?void 0:e.passports)||[])==null?void 0:m.find(k=>k.name===e.role)},[e==null?void 0:e.passports,e==null?void 0:e.role]),u=ke(),s=u.breakpoints.down("md");if(!e)return null;const n=async()=>{try{p(!0),await l.refreshProfile(),l.refresh(),_.success(L(T,"refreshProfile.successfully",r))}catch(m){console.error(m),_.error(X(m))}finally{p(!1)}};return o.jsxs(h,{...x,sx:{position:"relative",...x.sx},children:[o.jsx(Ce,{src:e==null?void 0:e.avatar,did:e==null?void 0:e.did,size:s?64:80,variant:"circle",shape:"circle",sx:{borderRadius:"100%",backgroundColor:"#fff",position:"relative",overflow:"hidden",mb:1.5,...c?{cursor:"pointer","&:hover":{"&::after":{content:`"${f("switchProfile")}"`}},"&::after":{color:"white",position:"absolute",fontSize:"12px",bottom:0,left:0,right:0,height:"50%",backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",justifyContent:"center",alignItems:"center"}}:{}},onClick:c?i:q}),o.jsxs(B,{variant:"h6",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1,fontSize:"24px !important"},children:[e==null?void 0:e.fullName,c?o.jsxs(o.Fragment,{children:[o.jsx(_e,{label:(v==null?void 0:v.title)||(e==null?void 0:e.role)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:j.textBase,borderColor:j.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:1,pl:.5,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&:active":{boxShadow:"none"}},clickable:!0,deleteIcon:o.jsx(P,{icon:Ee,color:j.textBase}),onDelete:g,onClick:g}),!Fe(e.url)&&o.jsx(re,{title:!t&&L(T,"refreshProfile.title",r),sx:{display:"flex",alignItems:"center"},children:t?o.jsx(oe,{size:"16px",sx:{color:(b=u==null?void 0:u.colors)==null?void 0:b.primary,ml:.5}}):o.jsx(Le,{onClick:n})})]}):null]}),o.jsx(Se,{did:e.did,showQrcode:!0,copyable:!0,compact:!a,responsive:!a,locale:r}),c?o.jsx(H,{sx:{borderRadius:2,color:j.textBase,backgroundColor:"white",border:`1px solid ${j.strokeBorderBase}`,position:"absolute",top:0,right:0},disableFocusRipple:!0,onClick:d,children:o.jsx(P,{icon:fo})}):null]})}function $o({data:e,verified:c,...a}){return o.jsxs(h,{...a,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",...a.sx},children:[o.jsxs(B,{sx:{display:"flex",alignItems:"center",color:j.textBase,fontSize:"14px",gap:1,fontWeight:500},children:[e.icon,e.title]}),o.jsxs(h,{display:"flex",flexDirection:"row",alignItems:"center",children:[o.jsx(B,{sx:{color:j.textSubtitle,whiteSpace:"pre-wrap",fontSize:"14px"},children:e.content}),c&&o.jsx(Bo,{color:"success",style:{fontSize:16,marginLeft:4}})]})]})}function Ho({user:e,isMySelf:c=!1,...a}){const{locale:g}=z(),i=y((r,l={})=>L(T,r,g,"en",l)),d=C(()=>(e==null?void 0:e.sourceProvider)&&Me[e.sourceProvider]||i("unknown"),[e==null?void 0:e.sourceProvider]),x=[];return c&&(x.push({icon:o.jsx(P,{fontSize:16,icon:Pe}),title:i("email"),content:(e==null?void 0:e.email)||i("emptyField"),verified:e==null?void 0:e.emailVerified}),x.push({icon:o.jsx(P,{fontSize:16,icon:ho}),title:i("phone"),content:(e==null?void 0:e.phone)||i("emptyField"),verified:e==null?void 0:e.phoneVerified}),x.push({icon:o.jsx(P,{fontSize:16,icon:go}),title:i("lastLoginAt"),content:e!=null&&e.lastLoginAt?o.jsx(ge,{locale:g,value:e==null?void 0:e.lastLoginAt,relativeRange:3*86400*1e3}):i("unknown")}),x.push({icon:o.jsx(P,{fontSize:16,icon:mo}),title:i("lastLoginIp"),content:(e==null?void 0:e.lastLoginIp)||i("unknown")})),x.push({icon:o.jsx(P,{fontSize:16,icon:bo}),title:i("createdAt"),content:e!=null&&e.createdAt?o.jsx(ge,{locale:g,value:e==null?void 0:e.createdAt}):i("unknown")}),c&&(x.push({icon:o.jsx(P,{fontSize:16,icon:ve}),title:i("registerFrom"),content:d}),x.push({icon:o.jsx(P,{fontSize:16,icon:ve}),title:i("invitedBy"),content:e!=null&&e.inviter?o.jsx(Se,{did:e.inviter,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:g}):"-"})),o.jsx(h,{...a,sx:{display:"flex",flexDirection:"column",gap:1.5,...a==null?void 0:a.sx},children:x.map(r=>o.jsx($o,{data:r,sx:{flex:1},verified:r.verified},r.title))})}function No({user:e,...c}){var l,t;const{locale:a}=z(),g=y((p,f={})=>L(T,p,a,"en",f)),i=ke(),d=C(()=>{const p=((e==null?void 0:e.passports)||[]).map(f=>({...f,revoked:f.status===Oe.REVOKED}));return p.sort((f,v)=>f.revoked===v.revoked?0:f.revoked?1:-1),je(p.filter(f=>!f.display),"role").concat(je(p.filter(f=>f.display),"display.content"))},[e==null?void 0:e.passports]),x=C(()=>d==null?void 0:d.find(p=>p.name===e.role),[d,e==null?void 0:e.role]),r=C(()=>{var p,f;return((f=(p=i==null?void 0:i.palette)==null?void 0:p.primary)==null?void 0:f.main)||j.textBase},[(t=(l=i==null?void 0:i.palette)==null?void 0:l.primary)==null?void 0:t.main]);return d.length===0?o.jsx(h,{children:o.jsx(Z,{children:g("noPassport")})}):o.jsx(h,{...c,sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",md:"repeat(2, 1fr)"},gap:2.5,...c.sx},children:d.map(p=>o.jsx(vo,{passport:p,user:e,color:window.blocklet.passportColor,createPassportSvg:Wo,title:x&&x.role===p.role?g("currentPassport"):"",sx:{flexDirection:"column",alignItems:"center",gap:1,".passport-item__display":{width:166,height:166,borderRadius:2,px:2,display:"flex",justifyContent:"center",backgroundColor:j.backgroundsBgComponent,boxShadow:x&&x.role===p.role?`0px 2px 4px 0px ${r}, 0px 1px 2px -1px ${r}, 0px 0px 0px 1px ${r} !important`:"unset"},".passport-item__body":{marginLeft:"0 !important"}}},p.id))})}function ye({onTest:e=q,onDelete:c=q,onSave:a=q,onCancel:g=q,type:i="slack",url:d="",edit:x=!1}){const{locale:r}=z(),l=y((n,b={})=>L(T,n,r,"en",b)),t=K({type:i||"slack",url:d||"",edit:x??!1,error:"",loading:!1}),p=y(()=>t.url?Lo(t.url)?(t.error="",!0):(t.error=l("common.invalid"),!1):(t.error=l("common.required"),!1)),f=y(()=>{t.edit=!1,t.url=d||"",t.type=i||"slack",t.error="",t.loading=!1,g()}),v=y(async n=>{t.loading=!0,await e(n),t.loading=!1}),u=y(n=>()=>{p()&&n({type:t.type,url:t.url})}),s=C(()=>t.error?o.jsx(B,{component:"span",color:"error",children:t.error}):t.edit?t.loading?o.jsx(oe,{size:16}):o.jsx(H,{size:"small",onClick:u(v),sx:{mr:-1},children:o.jsx(P,{icon:jo})}):null,[t.error,t.edit,t.loading]);return o.jsxs(h,{sx:{display:"flex",gap:1.5,width:"100%",alignItems:{xs:"flex-start",md:"center"},flexDirection:{xs:"column",md:"row"}},children:[o.jsxs(Re,{sx:{borderRadius:2,"&.Mui-disabled":{backgroundColor:j.backgroundsBgField}},disabled:!t.edit||t.loading,size:"small",value:t.type,onChange:n=>{t.type=n.target.value},children:[o.jsx(ne,{value:"api",children:l("webhook.url")}),o.jsx(ne,{value:"slack",children:l("webhook.slack")})]}),o.jsxs(h,{sx:{display:"flex",alignItems:"center",gap:.5,width:"100%"},children:[o.jsx(To,{sx:{flex:1,".MuiInputBase-root":{borderRadius:2,"&.Mui-disabled":{backgroundColor:j.backgroundsBgField}}},disabled:!t.edit||t.loading,fullWidth:!0,size:"small",required:!0,value:t.url,onChange:n=>{t.url=n.target.value,p()},error:!!t.error,InputProps:{endAdornment:o.jsx(Uo,{position:"end",children:s})}}),o.jsx(h,{sx:{display:"flex",gap:.5},children:t.edit?o.jsxs(o.Fragment,{children:[o.jsx(H,{color:"success",onClick:u((...n)=>{a(...n),t.edit=!1}),sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:We})}),o.jsx(H,{color:"error",onClick:f,sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:$e})})]}):o.jsxs(o.Fragment,{children:[o.jsx(H,{onClick:()=>{t.edit=!0},sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:wo})}),o.jsx(H,{color:"error",onClick:()=>{c({type:t.type,url:t.url})},sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:yo})})]})})]})]})}function te({title:e,description:c,value:a,onChange:g}){return o.jsx(Be,{checked:a,labelProps:{label:o.jsxs(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:[e,c]})},size:"small",onChange:g})}function Go({user:e}){var u,s;const{locale:c}=z(),a=y((n,b={})=>L(T,n,c,"en",b)),g=K({showAdd:!1}),i=ie(async()=>await M.user.getUserNotificationConfig(),{refreshDeps:[e],loadingDelay:300}),d=C(()=>{var n;return{wallet:!0,email:!0,phone:!1,push:!0,...((n=i==null?void 0:i.data)==null?void 0:n.notifications)||{}}},[(u=i==null?void 0:i.data)==null?void 0:u.notifications]),x=C(()=>{var n;return((n=i==null?void 0:i.data)==null?void 0:n.webhooks)||[]},[(s=i==null?void 0:i.data)==null?void 0:s.webhooks]),r=y(async n=>{try{await M.user.saveUserNotificationConfig(n),_.success(a("saveSuccess")),i.run()}catch(b){_.error(X(b))}}),l=y(async(n,b)=>{await r({notifications:{[n]:b}})}),t=async n=>{try{await M.user.testNotificationWebhook(n),_.success(a("webhookTested"))}catch(b){_.error(X(b))}},p=y(async n=>{await r({webhooks:x.filter((b,m)=>m!==n)})}),f=y(async(n,b)=>{await r({webhooks:x.map((m,k)=>k===n?b:m)})}),v=y(async n=>{await r({webhooks:[...x,n]}),g.showAdd=!1});return i.error?o.jsx(zo,{severity:"error",children:i.error.message}):i.loading||!i.data?o.jsx(h,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px"},children:o.jsx(oe,{})}):o.jsxs(h,{sx:{display:"flex",flexDirection:"column",gap:2},children:[o.jsxs(h,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:[o.jsx(te,{value:d.wallet,title:a("walletNotification"),onChange:n=>l("wallet",n.target.checked),description:me(e)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:me(e)})}),o.jsx(te,{value:d.email,onChange:n=>l("email",n.target.checked),title:a("emailNotification"),description:(e==null?void 0:e.email)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:e==null?void 0:e.email})}),o.jsx(te,{value:d.push,title:a("pushNotification"),onChange:n=>l("push",n.target.checked)})]}),o.jsx(He,{}),o.jsxs(Do,{spacing:1.5,useFlexGap:!0,direction:"column",alignItems:"start",children:[x.map((n,b)=>o.jsx(ye,{onTest:t,onDelete:()=>p(b),onSave:(...m)=>f(b,...m),type:n.type,url:n.url,edit:!1},`${b}_${n.url}`)),g.showAdd&&o.jsx(ye,{onTest:t,onCancel:()=>{g.showAdd=!1},onSave:(...n)=>v(...n),edit:!0},"add"),o.jsx(ae,{variant:"outlined",size:"small",sx:{color:j.foregroundsFgBase,borderColor:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutral,"&:hover":{borderColor:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutralHover},py:.5,borderRadius:2},startIcon:o.jsx(P,{icon:ko}),onClick:()=>{g.showAdd=!0},children:a("addWebhook")})]})]})}function Vo({configList:e,onSave:c}){const[a,g]=O.useState(e),{locale:i}=z(),d=y((r,l={})=>L(T,r,i,"en",l)),x=y(async(r,l)=>{try{const t=await M.user.saveUserPrivacyConfig({[r]:!l});g(a.map(p=>({...p,value:(t==null?void 0:t[p.key])??p.value}))),_.success(d("saveSuccess")),c("privacy")}catch(t){_.error(X(t))}});return o.jsx(h,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:a.map(r=>o.jsx(Be,{checked:!r.value,labelProps:{label:o.jsx(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:d("toPublic",{name:r.name})})},size:"small",onChange:l=>x(r.key,l.target.checked)},r.key))})}function qo({item:e}){var n,b,m,k,J;const{confirmApi:c,confirmHolder:a}=Ie(),g=K({loading:!1}),{locale:i}=z(),d=y((U,A={})=>L(T,U,i,"en",A)),{session:x}=O.useContext(ee),{bindOAuth:r,unbindOAuth:l,setBaseUrl:t,baseUrl:p}=x.useOAuth(),f={[S.AUTH0]:Pe,[S.APPLE]:Ge,[S.GITHUB]:Ve,[S.GOOGLE]:qe},v=C(()=>f[e==null?void 0:e.provider],[e==null?void 0:e.provider]),u=C(()=>Ne[e==null?void 0:e.provider]||"unknown",[e==null?void 0:e.provider]),s=y(async()=>{try{g.loading=!0,await new Promise((U,A)=>{var R;if(e!=null&&e._bind)c.open({title:d("thirdPartyLogin.confirmUnbind",{name:u}),content:d("thirdPartyLogin.confirmUnbindDescription",{name:u}),confirmButtonText:d("common.confirm"),cancelButtonText:d("common.cancel"),onConfirm(E){l({session:x,connectedAccount:{...Qe(e,["did","pk"]),showProvider:e.provider,provider:e._rawProvider}}).then(U).catch(A),E()},onCancel:U});else{const E=p,Y=window==null?void 0:window.blocklet;let W="/";const N=Xe(Y),$=Ke(Y);N&&($!=null&&$.appPid)&&((R=x==null?void 0:x.user)!=null&&R.sourceAppPid)&&(W=$.appUrl),t(W),r({session:x,oauthItem:{...e,provider:e._rawProvider}}).then(U).catch(A).finally(()=>{t(E)})}})}catch(U){console.error(`Failed to ${e!=null&&e._bind?"unbind":"bind"} oauth account`,U)}finally{g.loading=!1}});return o.jsxs(o.Fragment,{children:[o.jsxs(h,{sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`,background:j.backgroundsBgField,display:"flex",alignItems:"center",py:1,px:1.5,gap:.75,fontSize:"14px",lineHeight:1,overflow:"hidden"},children:[o.jsx(h,{component:P,icon:v,width:"1em",height:"1em",sx:{flexShrink:0,fontSize:16}}),o.jsx(h,{sx:{flex:1},children:u}),o.jsxs(h,{sx:{display:"flex",alignItems:"center",gap:.5},children:[o.jsx(h,{sx:{flex:1,textOverflow:"ellipsis",overflow:"hidden",lineHeight:"normal"},children:((n=e.userInfo)==null?void 0:n.email)||e.did}),(b=e.userInfo)!=null&&b.email?o.jsx(re,{title:o.jsx(o.Fragment,{children:o.jsxs(h,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(Ce,{size:36,variant:"circle",shape:"circle",src:(m=e.userInfo)==null?void 0:m.picture,did:e.did}),o.jsxs(h,{children:[o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(k=e.userInfo)==null?void 0:k.name}),o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(J=e.userInfo)==null?void 0:J.email})]})]})}),children:o.jsx(h,{component:P,icon:Co,color:j.textSubtitle,fontSize:16,sx:{cursor:"pointer",flexShrink:0}})}):null]})]}),o.jsx(re,{title:e._mainProvider?d("thirdPartyLogin.mainProviderCantRemove"):"",children:o.jsx(h,{children:o.jsx(ae,{variant:"outlined",size:"small",sx:{color:e!=null&&e._bind?j.red:j.foregroundsFgBase,borderColor:e!=null&&e._bind?j.red:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutral,"&:hover":{borderColor:e!=null&&e._bind?j.red:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutralHover},py:.5,borderRadius:2,fontWeight:500,whiteSpace:"nowrap"},fullWidth:!0,startIcon:g.loading?null:o.jsx(P,{icon:So}),onClick:s,disabled:e._mainProvider,loading:g.loading,children:e!=null&&e._bind?d("thirdPartyLogin.disconnect"):d("thirdPartyLogin.connect")})})}),a]})}function Qo({user:e}){const{session:c}=O.useContext(ee),[a,g]=O.useState({}),{getOAuthConfigs:i}=c.useOAuth();Je(async()=>{const r=await i({sourceAppPid:e==null?void 0:e.sourceAppPid});g(r)},[e==null?void 0:e.sourceAppPid]);const d=C(()=>Object.keys(a).map(l=>({...a[l],provider:l})).filter(l=>l.enabled),[a]),x=C(()=>{const r=Ye(e);let l=!1,t="",p=Ze(e);const f=r.find(u=>u.provider===S.AUTH0);return f&&(f.id.startsWith("google-oauth2|")&&(r.some(u=>u.provider==="google")||(l=!0,t=S.GOOGLE,p===S.AUTH0&&(p=S.GOOGLE))),f.id.startsWith("appleid|")&&(r.some(u=>u.provider===S.APPLE)||(l=!0,t=S.APPLE,p===S.AUTH0&&(p=S.APPLE))),f.id.startsWith("github|")&&(r.some(u=>u.provider===S.GITHUB)||(l=!0,t=S.GITHUB,p===S.AUTH0&&(p=S.GITHUB)))),d.map(u=>{if(u.provider===S.AUTH0&&l)return null;const s=l&&u.provider===t?r.find(n=>n.provider===S.AUTH0):r.find(n=>n.provider===u.provider);return s?{...u,provider:u.provider,did:s.did,pk:s.pk,userInfo:s.userInfo,_bind:!0,_rawProvider:s.provider,_mainProvider:u.provider===p}:{...u,provider:u.provider,_rawProvider:u.provider,_mainProvider:u.provider===p}}).filter(Boolean).sort((u,s)=>(u==null?void 0:u.order)!==void 0&&(s==null?void 0:s.order)!==void 0?u.order-s.order:(u==null?void 0:u.order)!==void 0?-1:1)},[e==null?void 0:e.connectedAccounts,d]);return o.jsx(h,{sx:{gap:1,display:"grid",gridTemplateColumns:"1fr min-content"},children:x.map(r=>o.jsx(qo,{item:r},r==null?void 0:r.provider))})}const Xo=[{name:"English",code:"en"},{name:"中文",code:"zh"}];function Ko({user:e,onSave:c}){const{locale:a,changeLocale:g}=z(),i=y((r,l={})=>L(T,r,a,"en",l)),d=K({locale:e.locale,loading:!1}),x=y(async r=>{try{const{value:l}=r.target;d.loading=!0,await M.user.saveProfile({locale:l}),await c("profile"),g(l),d.locale=l}catch(l){_.error(X(l))}finally{d.loading=!1}});return o.jsxs(h,{sx:{gap:1,display:"grid",alignItems:"center",gridTemplateColumns:{xs:"1fr",sm:"max-content 1fr"}},children:[o.jsx(h,{children:i("commonSetting.locale")}),o.jsxs(h,{children:[o.jsx(eo,{color:"primary",sx:{visibility:d.loading?"visible":"hidden",height:2}}),o.jsx(Re,{fullWidth:!0,value:d.locale,onChange:x,size:"small",children:(window.blocklet.languages||Xo).map(r=>o.jsx(ne,{value:r.code,children:r.name}))})]})]})}function Jo({user:e,settings:c,onSave:a,...g}){const{locale:i}=z(),d=y((f,v={})=>L(T,f,i,"en",v)),x=C(()=>((c==null?void 0:c.userCenterTabs)||[]).map(v=>({key:v.value,name:v.label,value:v.protected})),[c==null?void 0:c.userCenterTabs]),r=C(()=>{var f;return[{label:d("commonSetting.title"),value:"common",content:o.jsx(Ko,{user:e,onSave:a})},{label:d("notificationManagement"),value:"notification",content:o.jsx(Go,{user:e})},{label:d("thirdPartyLogin.title"),value:"thirdPartyLogin",content:o.jsx(Qo,{user:e})},{label:d("privacyManagement"),value:"privacy",content:o.jsx(Vo,{configList:x,onSave:a})},((f=e==null?void 0:e.didSpace)==null?void 0:f.endpoint)&&{label:d("storageManagement"),value:"storage",content:o.jsx(Po,{children:o.jsx(Io,{})})},{label:d("sessionManagement"),value:"session",content:o.jsx(Ro,{user:e})}].filter(Boolean)},[e,x]),l=K({tab:r[0].value}),t=C(()=>r.find(f=>f.value===l.tab),[l.tab,r]),p=y(f=>{l.tab=f});return t&&o.jsxs(h,{...g,sx:{...g==null?void 0:g.sx,minWidth:{md:500},maxWidth:"100%"},children:[o.jsx(Ae,{variant:"card",tabs:r,current:t.value,onChange:p}),o.jsx(h,{mt:2.5,children:t.content})]})}function Yo({children:e,notLoginContent:c=null,currentTab:a,contentProps:g={},disableAutoRedirect:i=!1,autoPopupSetting:d=!1,hideFooter:x=!1,headerProps:r={},footerProps:l={},userDid:t=void 0,stickySidebar:p=!1}){var le,ce,de,pe,ue,xe;const{locale:f}=z(),v=y((w,I={})=>L(T,w,f,"en",I)),u=O.useContext(ee),s=u==null?void 0:u.session,n=C(()=>{var D;if(t)return t;const w=window.location.href,I=oo(w);return I!=null&&I.did?Array.isArray(I.did)?I.did[0]:I.did:(D=s==null?void 0:s.user)==null?void 0:D.did},[(le=s==null?void 0:s.user)==null?void 0:le.did,t]),b=C(()=>{var w;return s!=null&&s.user?n===((w=s==null?void 0:s.user)==null?void 0:w.did):!1},[n,(ce=s==null?void 0:s.user)==null?void 0:ce.did]),m=ie(async()=>{if(await to(()=>s==null?void 0:s.initialized),b)return s.user;if(n)return M.user.getUserPublicInfo({did:n})},{refreshDeps:[n,b,s==null?void 0:s.initialized,s==null?void 0:s.user]}),k=ie(async()=>m.data&&a?await M.user.getUserPrivacyConfig({did:n}):null,{refreshDeps:[n,m.data,a],loadingDelay:300}),{confirmHolder:J,confirmApi:U}=Ie({sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1200},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),A=C(()=>{const w=ro(window.blocklet);try{return uo(w)}catch(I){return console.error("Failed to format blocklet info",I,w),w}},[]),R=C(()=>{var D;const w=((D=A==null?void 0:A.navigation)==null?void 0:D.userCenter)||[];return(xo(w,f)||[]).map(F=>{var V;const G=F._rawLink??F.link;return{value:G,label:F.title,url:F.link,protected:((V=k==null?void 0:k.data)==null?void 0:V[G])??!1}})},[A,m.data,k==null?void 0:k.data,f]),E=C(()=>R.find(w=>w.value===a),[R]),Y=y(w=>{const I=R.find(D=>D.value===w);I&&(window.location.href=be(I.url,{did:b?void 0:n}))}),W=C(()=>o.jsx(Jo,{user:m.data,settings:{userCenterTabs:R},onSave:async w=>w==="privacy"?(await k.runAsync(),k.data):(w==="profile"&&await s.refresh(),null)}),[m.data,R,k.data,k.runAsync]),N=y(()=>{U.open({title:v("settings"),content:W,showCancelButton:!1,confirmButtonText:v("done"),onConfirm:U.close})});no(()=>{U.update({content:W})},[W]),io(()=>{d&&N()});const $=C(()=>{var w,I,D,F,G;if(m.loading||s.loading)return null;if(m.error){if(((I=(w=m.error)==null?void 0:w.response)==null?void 0:I.status)===404)return o.jsx(h,{sx:{width:"100%"},children:o.jsx(ao,{status:404,description:v("noUserFound")})});const Ue={message:((F=(D=m.error.response)==null?void 0:D.data)==null?void 0:F.error)||m.error.message||"error occurred"};return o.jsx(h,{sx:{width:"100%"},children:o.jsx(Ao,{error:Ue})})}return!n&&!m.data?c||o.jsx(h,{sx:{width:"100%"},children:o.jsxs(h,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:1},children:[o.jsx(Z,{children:v("viewAfterLogin")}),o.jsx(ae,{size:"small",variant:"contained",onClick:()=>s.login(),children:v("loginNow")})]})}):o.jsxs(o.Fragment,{children:[o.jsxs(h,{sx:[{flex:{xs:"revert",md:1},overflow:"hidden"}],children:[(G=m==null?void 0:m.data)!=null&&G.fullName?o.jsx(B,{variant:"h4",sx:{py:1.5,fontWeight:700,display:{xs:"none",md:"block"}},children:m.data.fullName}):null,o.jsx(we,{isMyself:b,switchPassport:s.switchPassport,switchProfile:s.switchProfile,openSettings:N,user:m.data,showFullDid:!1,sx:{display:{md:"none",xs:"block"},mb:1.5}}),R.length>0&&a?o.jsxs(h,{sx:{overflow:"auto",padding:"1px"},children:[o.jsx(Ae,{variant:"line",tabs:R,current:a,onChange:Y,sx:{mb:1.5}}),!k.data||k.loading?o.jsx(h,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(oe,{sx:{color:j.primary100}})}):o.jsx(o.Fragment,{children:E!=null&&E.protected&&!b?o.jsx(h,{children:o.jsx(Z,{children:v("underProtected")})}):o.jsx(o.Fragment,{children:e&&o.jsx(h,{...g,children:e})})})]}):null,R.length===0?o.jsx(h,{sx:{display:{xs:b?"none":"block",md:"block"},py:3},children:o.jsx(Z,{children:v("emptyContent")})}):null]}),o.jsx(h,{sx:{display:{xs:"none",md:"block"},width:"1px",my:-3,backgroundColor:j.strokeSep}}),o.jsx(h,{sx:{width:{sx:"100%",md:420},maxWidth:"100%",position:"relative"},children:o.jsxs(h,{sx:{display:"flex",flexDirection:"column",gap:2.5,position:{xs:"static",md:p?"sticky":"static"},top:V=>p?V.spacing(3):"unset"},children:[o.jsx(we,{isMyself:b,switchPassport:s.switchPassport,switchProfile:s.switchProfile,openSettings:N,user:m.data,sx:{display:{xs:"none",md:"block"}}}),o.jsxs(h,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:v(b?"myInfo":"hisInfo")}),o.jsx(Ho,{user:m.data,isMySelf:b})]}),b?o.jsxs(h,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:v("passport")}),o.jsx(No,{user:m.data})]}):null]})})]})},[m,R,b,E,k,a,p]);if(!i&&!a&&((pe=(de=A==null?void 0:A.navigation)==null?void 0:de.userCenter)==null?void 0:pe.length)>0){const w=(xe=(ue=A==null?void 0:A.navigation)==null?void 0:ue.userCenter[0])==null?void 0:xe.link;return w&&window.location.replace(be(w,{did:b?void 0:n})),null}return o.jsxs(h,{sx:{backgroundColor:j.backgroundsBgSubtitle,minHeight:"100vh",display:"flex",flexDirection:"column"},children:[o.jsx(co,{bordered:!0,...r}),o.jsxs(h,{flex:1,sx:{width:"100%",maxWidth:1200,margin:"0 auto",p:3,display:"flex",alignItems:"stretch",flexDirection:{xs:"column",md:"row"},gap:2.5},children:[$,J]}),x?null:o.jsx(po,{bordered:!0,...l})]})}function Gt(){const c=so().tab,{t:a}=z();return o.jsxs(o.Fragment,{children:[o.jsx(lo,{children:o.jsx("title",{children:a("pageTitle.userCenter")})}),o.jsx(Yo,{disableAutoRedirect:c==="settings",autoPopupSetting:c==="settings"})]})}export{Gt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as Y,Y as G,j as s,k as A,B as m,A as H,a as F,T as S,bf as J,bE as O,g as Q,u as X,bQ as K,l as E,O as U,b as k,bL as N,bI as Z,eC as ee}from"./index-
|
|
1
|
+
import{X as Y,Y as G,j as s,k as A,B as m,A as H,a as F,T as S,bf as J,bE as O,g as Q,u as X,bQ as K,l as E,O as U,b as k,bL as N,bI as Z,eC as ee}from"./index-C2SclAt1.js";import{D as te}from"./index-C9uoGnCi.js";import{U as T,e as R}from"./resource-dialog-D9phHFD1.js";var L={},oe=G;Object.defineProperty(L,"__esModule",{value:!0});var ne=L.default=void 0,re=oe(Y()),ie=s;ne=L.default=(0,re.default)((0,ie.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");class se extends Error{constructor(n){super(),this.name="AbortError",this.message=n}}const z=e=>globalThis.DOMException===void 0?new se(e):new DOMException(e),M=e=>{const n=e.reason===void 0?z("This operation was aborted."):e.reason;return n instanceof Error?n:z(n)};async function ae(e,n,{concurrency:i=Number.POSITIVE_INFINITY,stopOnError:a=!0,signal:u}={}){return new Promise((w,C)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof n!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(i)||i===Number.POSITIVE_INFINITY)&&i>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${i}\` (${typeof i})`);const r=[],v=[],g=new Map;let c=!1,x=!1,b=!1,y=0,B=0;const D=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),h=t=>{c=!0,x=!0,C(t)};u&&(u.aborted&&h(M(u)),u.addEventListener("abort",()=>{h(M(u))}));const I=async()=>{if(x)return;const t=await D.next(),o=B;if(B++,t.done){if(b=!0,y===0&&!x){if(!a&&v.length>0){h(new AggregateError(v));return}if(x=!0,g.size===0){w(r);return}const l=[];for(const[d,p]of r.entries())g.get(d)!==_&&l.push(p);w(l)}return}y++,(async()=>{try{const l=await t.value;if(x)return;const d=await n(l,o);d===_&&g.set(o,d),r[o]=d,y--,await I()}catch(l){if(a)h(l);else{v.push(l),y--;try{await I()}catch(d){h(d)}}}})()};(async()=>{for(let t=0;t<i;t++){try{await I()}catch(o){h(o);break}if(b||c)break}})()})}const _=Symbol("skip");async function le(e,n){return ae(e,i=>i(),n)}function ue({user:e,sessionUser:n}){const i=A(()=>{var a;return(a=(e==null?void 0:e.passports)||[])==null?void 0:a.find(u=>u.name===n.role)},[e==null?void 0:e.passports,n==null?void 0:n.role]);return s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(H,{size:40,variant:"circle",shape:"circle",src:n.avatar,did:n.did,sx:{flexShrink:0}}),s.jsxs(m,{sx:{flex:1,overflow:"hidden"},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(F,{title:n.fullName,children:s.jsx(S,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:n.fullName})}),s.jsx(J,{label:(i==null?void 0:i.title)||(i==null?void 0:i.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:O.textBase,borderColor:O.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),s.jsx(F,{title:n.email,children:s.jsx(S,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.email})})]})]})}const ce={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},V="Reserved IP",P="ip-region-cache";async function de(e){const n=`https://ipapi.co/${e}/json/`,a=await(await fetch(n)).json();let u="";return a.error?a.reserved&&(u=V):u=[a.country_name,a.region,a.city].filter(Boolean).join("/"),u}async function pe(e){const n=`https://api.ip.sb/geoip/${e}`,a=await(await fetch(n)).json();let u="";return a.error?a.reserved&&(u=V):u=[a.country,a.region,a.city].filter(Boolean).join("/"),u}async function fe(e){let n="",i={};try{const a=localStorage.getItem(P);a&&(i=JSON.parse(a))}catch{i={}}if(i[e])n=i[e];else{try{n=await pe(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!n)try{n=await de(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(n){const a=Object.keys(i);a.length>100&&delete i[a[0]],i[e]&&delete i[e],i[e]=n,localStorage.setItem(P,JSON.stringify(i))}return n}async function me(e){return Promise.all(e.map(n=>fe(n)))}const W=e=>new T(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[T.BROWSER.NAME,T.BROWSER.VERSION]]}).getResult();function we({user:e,showAction:n=!0,showUser:i=!0}){const a=Q(),{locale:u}=X(),{confirmApi:w,confirmHolder:C}=K(),r=E((t,o={})=>Z(ce,t,u,"en",o)),v=E(async()=>{let t=e==null?void 0:e.userSessions;t||(t=await R.userSession.getUserSessions({did:e.did}));try{const l=t==null?void 0:t.map((f,j)=>[j,f.lastLoginIp]).filter(f=>!!f[1]),d=l==null?void 0:l.map(f=>f[1]),p=await me(d);for(let f=0;f<p.length;f++){const j=p[f],q=l[f],$=t[q[0]];$.ipRegion=j}}catch(l){console.warn("Failed to convert ip to region"),console.error(l)}const o=new Date().getTime();return ee(t,l=>l.visitorId===a?-1:o-new Date(l.updatedAt).getTime())}),g=U(v),c=A(()=>g.data||[],[g.data]),x=A(()=>c.reduce((t,o)=>(t[o.lastLoginIp]=o.ipRegion,t),{}),[c]),b=E(({visitorId:t})=>{w.open({title:r("logoutThisSession"),content:r("logoutThisSessionConfirm"),confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),onConfirm:async()=>{await R.user.logout({visitorId:t}),g.refresh(),w.close()}})}),y=A(()=>c.filter(o=>o.visitorId!==a),[c]),B=E(()=>{w.open({title:r("logoutAllSession"),content:r("logoutAllSessionConfirm"),confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),onConfirm:async()=>{const t=y.map(o=>()=>R.user.logout({visitorId:o.visitorId}));await le(t,{concurrency:3,stopOnError:!1}),g.refresh(),w.close()}})}),D=[];n&&D.push(s.jsx(F,{title:r("logoutAllTips"),children:s.jsx(k,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:B,disabled:y.length===0,children:r("logoutAll")})},"logoutAll"));const h=A(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),I=[{label:r("platform"),name:"platform",options:{customBodyRenderLite:t=>{var d,p;const o=c[t],l=W(o.ua);return s.jsx(m,{children:[(d=l.os)==null?void 0:d.name,(p=l.os)==null?void 0:p.version].filter(Boolean).join("/")||r("unknown")})}}},{label:r("deviceType"),name:"deviceType",options:{customBodyRenderLite:t=>{var d,p;const o=c[t],l=W(o.ua);return s.jsx(m,{children:[(d=l.browser)==null?void 0:d.name,(p=l.browser)==null?void 0:p.version].filter(Boolean).join("/")||r("unknown")})}}},{label:r("walletOS"),name:"walletOS",options:{customBodyRenderLite:t=>{var l;const o=c[t];return s.jsx(m,{children:((l=o.extra)==null?void 0:l.walletOS)||r("unknown")})}}},i&&{label:r("user"),name:"user",options:{customBodyRenderLite:t=>{const o=c[t];return s.jsx(m,{sx:{minWidth:150,maxWidth:250},children:s.jsx(ue,{sessionUser:o.user,user:e})})}}},{label:r("createdAt"),name:"createdAt",options:{customBodyRenderLite:t=>{const o=c[t];return o.createdAt?s.jsx(N,{value:o.createdAt,relativeRange:3*86400*1e3,locale:u}):r("unknown")}}},{label:r("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:t=>{const o=c[t];return o.status==="expired"?r("expired"):s.jsx(N,{value:o.updatedAt,relativeRange:3*86400*1e3,locale:u})}}},{label:r("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:t=>{const o=c[t];return s.jsx(m,{children:x[o.lastLoginIp]?s.jsxs(s.Fragment,{children:[s.jsx(S,{variant:"body2",children:x[o.lastLoginIp]}),s.jsx(S,{variant:"body2",color:"grey",children:o.lastLoginIp||r("unknown")})]}):s.jsx(S,{children:o.lastLoginIp||r("unknown")})})}}},n&&{label:r("actions"),name:"actions",options:{customBodyRenderLite:t=>{const o=c[t];return s.jsx(m,{children:s.jsx(k,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:a===o.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>b({visitorId:o.visitorId}),children:o.status==="expired"?r("remove"):a===o.visitorId?r("currentSession"):r("logout")})})}}}].filter(Boolean);return s.jsxs(m,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[C,s.jsx(te,{locale:u,data:c,columns:I,customButtons:D,options:h,loading:g.loading})]})}export{we as U,ne as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b7 as s,fq as h,fr as l,aa as P,G as u}from"./index-
|
|
1
|
+
import{b7 as s,fq as h,fr as l,aa as P,G as u}from"./index-C2SclAt1.js";const d=h;var E=(e,r)=>d(e)===d(r);const c=s(E),x=(e,r)=>{if(e.type===u.ROUTING_RULE_TYPES.REDIRECT){if(!e.url)return new Error(`${r("router.validation.redirectUrlRequired")}`);if(!e.redirectCode)return new Error(`redirect ${r("router.validation.redirectCodeRequired")}`)}else if(e.type===u.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(r("router.validation.didRequired"));return null},R=(e,r)=>{const t=x(e,r);return t||(e.pathPrefix.length?e.pathPrefix.length>150?new Error(r("router.validation.pathPrefixTooLong",{length:150})):null:new Error(r("router.validation.pathPrefixCannotBeEmpty")))},v=({params:e,blocklets:r,blocklet:t,locale:o="en"})=>{if(t){let i=(t.children||[]).find(f=>l.hasStartEngine(f.meta)&&c(f.mountPoint,e.pathPrefix));if(t.meta.group!=="gateway"&&e.pathPrefix==="/"&&(i="/"),i)return{zh:`挂载点 ${e.pathPrefix} 已存在,请使用其他挂载点`,en:`The mount point ${e.pathPrefix} already exist, please use another mount point`}[o]}const a=r.find(i=>i.meta.did===e.did);if(!a)return"";const n=a.meta.interfaces.find(i=>i.type==="web");return n&&n.prefix!==P.BLOCKLET_DYNAMIC_PATH_PREFIX&&e.pathPrefix!==n.prefix?{zh:`该 blocklet 只能挂载在 ${n.prefix}`,en:`This blocklet can only be mounted on ${n.prefix}`}[o]:""},T=e=>{if(!e||typeof e!="string")return e;let r=e.trim();try{return r=r.toLowerCase(),r.startsWith("http://")||r.startsWith("https://")?new URL(r).hostname:r}catch(t){return console.error("format domain failed",t),r}};export{R as a,T as p,v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ay as _,az as i,a3 as e,j as r,aA as a}from"./index-
|
|
1
|
+
import{ay as _,az as i,a3 as e,j as r,aA as a}from"./index-C2SclAt1.js";const u={en:_(i),ar:()=>e(()=>import("./ar-rur8F6ox.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-C-5DrcsF.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-CDmziQ2d.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-RdOP2uWC.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-V6iw7v5V.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-CeB6Ugb-.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-DlWywLev.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-ESHUwy9c.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-BMSFPKAT.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-2aTr2i-M.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-D2W7tb3N.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-DTSqGMo-.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-CwZfwqpL.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-AGc49itB.js"),[]).then(t=>_(t.default))};function E(t){return function(o){return r.jsx(a,{translations:u,children:r.jsx(t,{...o})})}}export{E as w};
|
package/dist/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
padding: 0;
|
|
14
14
|
}
|
|
15
15
|
</style>
|
|
16
|
-
<script type="module" crossorigin src="/.well-known/service/static/assets/index-
|
|
16
|
+
<script type="module" crossorigin src="/.well-known/service/static/assets/index-C2SclAt1.js"></script>
|
|
17
17
|
<link rel="stylesheet" crossorigin href="/.well-known/service/static/assets/index-D8NuaJ66.css">
|
|
18
18
|
<link rel="manifest" href="/.well-known/service/static/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/.well-known/service/static/registerSW.js"></script></head>
|
|
19
19
|
|
package/dist/service-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
try{self["workbox:core:7.0.0"]&&_()}catch{}const ae=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},ne=ae;let y=class extends Error{constructor(e,t){const r=ne(e,t);super(r),this.name=e,this.details=t}};const ie=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},N=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),ce=s=>{for(const e of Object.keys(d))s(e)},oe={updateDetails:s=>{ce(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||N(d.googleAnalytics),getPrecacheName:s=>s||N(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||N(d.runtime),getSuffix:()=>d.suffix};function $(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function le(s,e,t,r){const a=$(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=$(c.url,t);if(a===o)return s.match(c,r)}}let he=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ue(){for(const s of ie)await s()}const fe=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function de(s){return new Promise(e=>setTimeout(e,s))}function pe(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const ge=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},me=ge;let u=class extends Error{constructor(e,t){const r=me(e,t);super(r),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),we=s=>{for(const e of Object.keys(p))s(e)},j={updateDetails:s=>{we(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(p.googleAnalytics),getPrecacheName:s=>s||M(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||M(p.runtime),getSuffix:()=>p.suffix};function H(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const ye="__WB_REVISION__";function _e(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const i=new URL(s,location.href);return{cacheKey:i.href,url:i.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const i=new URL(t,location.href);return{cacheKey:i.href,url:i.href}}const r=new URL(t,location.href),a=new URL(t,location.href);return r.searchParams.set(ye,e),{cacheKey:r.href,url:a.href}}class Re{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:r})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;r?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return r}}}class be{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:r})=>{const a=(r==null?void 0:r.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let b;function Ce(){if(b===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),b=!0}catch{b=!1}b=!1}return b}async function xe(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new u("cross-origin-copy-response",{origin:t});const r=s.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},n=Ce()?r.body:await r.blob();return new Response(n,i)}const ke=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function B(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function Ee(s,e,t,r){const a=B(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=B(c.url,t);if(a===o)return s.match(c,r)}}class De{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ue=new Set;async function Le(){for(const s of Ue)await s()}function Pe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function D(s){return typeof s=="string"?new Request(s):s}let ve=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new De,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=D(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=D(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=D(e);await Pe(0);const a=await this.getCacheKey(r,"write");if(!t)throw new u("cache-put-with-no-response",{url:ke(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await Ee(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Le(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=D(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}},Ne=class{constructor(e={}){this.cacheName=j.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new ve(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new u("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}};class w extends Ne{constructor(e={}){e.cacheName=j.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(w.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const r=await t.cacheMatch(e);return r||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let r;const a=t.params||{};if(this._fallbackToNetwork){const i=a.integrity,n=e.integrity,c=!n||n===i;r=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?n||i:void 0})),i&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,r.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return r}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const r=await t.fetch(e);if(!await t.cachePut(e,r.clone()))throw new u("bad-precaching-response",{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[r,a]of this.plugins.entries())a!==w.copyRedirectedCacheableResponsesPlugin&&(a===w.defaultPrecacheCacheabilityPlugin&&(e=r),a.cacheWillUpdate&&t++);t===0?this.plugins.push(w.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}w.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};w.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await xe(s):s}};class Me{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:r=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new w({cacheName:j.getPrecacheName(e),plugins:[...t,new be({precacheController:this})],fallbackToNetwork:r}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const r of e){typeof r=="string"?t.push(r):r&&r.revision===void 0&&t.push(r.url);const{cacheKey:a,url:i}=_e(r),n=typeof r!="string"&&r.revision?"reload":"default";if(this._urlsToCacheKeys.has(i)&&this._urlsToCacheKeys.get(i)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(i),secondEntry:a});if(typeof r!="string"&&r.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==r.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:i});this._cacheKeysToIntegrities.set(a,r.integrity)}if(this._urlsToCacheKeys.set(i,a),this._urlsToCacheModes.set(i,n),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")}
|
|
2
|
-
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new nt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const r=Date.now();return t>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/access-control-JIrHa3mu.js"},{"revision":null,"url":"assets/actions-C4C-_7q7.js"},{"revision":null,"url":"assets/add-component-core-11KaEkJm.js"},{"revision":null,"url":"assets/add-component-core-Dg7G08Fh.css"},{"revision":null,"url":"assets/Add-DqnQRxKy.js"},{"revision":null,"url":"assets/add-resource-BB2L3tHk.js"},{"revision":null,"url":"assets/addon-s6cY0RTa.js"},{"revision":null,"url":"assets/Alert-D-5Cob8e.js"},{"revision":null,"url":"assets/analytics-d1lnz8LZ.js"},{"revision":null,"url":"assets/api-CGBrxiXH.js"},{"revision":null,"url":"assets/ar-BcsWe-M7.js"},{"revision":null,"url":"assets/ar-rur8F6ox.js"},{"revision":null,"url":"assets/ArrowDropDown-D0Z0e8Y7.js"},{"revision":null,"url":"assets/audit-logs-BOd17etC.js"},{"revision":null,"url":"assets/Avatar-s-RbgNaK.js"},{"revision":null,"url":"assets/base32-BQxmSgK5.js"},{"revision":null,"url":"assets/bundle-avatar-CxueSElp.js"},{"revision":null,"url":"assets/button-j8-IOkkQ.js"},{"revision":null,"url":"assets/ButtonGroup-CbB4bj5R.js"},{"revision":null,"url":"assets/CheckCircle-DCNwD36J.js"},{"revision":null,"url":"assets/ChevronLeft-D9qAKhUC.js"},{"revision":null,"url":"assets/ChevronRight-Bg7d5X-4.js"},{"revision":null,"url":"assets/click-to-copy-DglMzVEl.js"},{"revision":null,"url":"assets/Close-BrR3bQ06.js"},{"revision":null,"url":"assets/CloseOutlined-C5GNiQn3.js"},{"revision":null,"url":"assets/complete-DQAgKCkw.js"},{"revision":null,"url":"assets/component-CMHk7ZdA.js"},{"revision":null,"url":"assets/config-DekTNtmY.js"},{"revision":null,"url":"assets/config-navigation-DkA8cq-f.js"},{"revision":null,"url":"assets/config-Wu6XmTD_.js"},{"revision":null,"url":"assets/confirm-C-ZpymsR.js"},{"revision":null,"url":"assets/connect-BbggA6aj.js"},{"revision":null,"url":"assets/connect-D6WVNvFp.js"},{"revision":null,"url":"assets/connect-to-CQAPJyx5.js"},{"revision":null,"url":"assets/content-layout-Bw7ct9HF.js"},{"revision":null,"url":"assets/dashboard-hWtF2-L2.js"},{"revision":null,"url":"assets/de-C-5DrcsF.js"},{"revision":null,"url":"assets/de-f8XZAb4q.js"},{"revision":null,"url":"assets/Delete-B15-niP2.js"},{"revision":null,"url":"assets/DeleteOutline-DmQE35jW.js"},{"revision":null,"url":"assets/deprecate-CeNqPdFm.js"},{"revision":null,"url":"assets/DialogContentText-CD_9b35x.js"},{"revision":null,"url":"assets/did-address-D8JyTgrD.js"},{"revision":null,"url":"assets/domain-list-CegYP2MT.js"},{"revision":null,"url":"assets/domain-XgUsUoU_.js"},{"revision":null,"url":"assets/Done-CqmY_Vcx.js"},{"revision":null,"url":"assets/Download-CQuftYbA.js"},{"revision":null,"url":"assets/Edit-BDivRC_m.js"},{"revision":null,"url":"assets/EditIcon-BGTWmwGP.js"},{"revision":null,"url":"assets/email-BTR1Y1ZI.js"},{"revision":null,"url":"assets/emotion-cache.browser.esm-ChperYzD.js"},{"revision":null,"url":"assets/Error-K08nzD90.js"},{"revision":null,"url":"assets/es-CDmziQ2d.js"},{"revision":null,"url":"assets/es-Dkw0SgdE.js"},{"revision":null,"url":"assets/exchange-passport-CCKPXR9k.js"},{"revision":null,"url":"assets/ExpandMore-CbxNhKjL.js"},{"revision":null,"url":"assets/fallback-Cmo8A_sx.js"},{"revision":null,"url":"assets/format-error-Dg_Wyxee.js"},{"revision":null,"url":"assets/FormControl-DU81G5bu.js"},{"revision":null,"url":"assets/FormControlLabel-8jOHLgVZ.js"},{"revision":null,"url":"assets/FormGroup-QuqjTPhE.js"},{"revision":null,"url":"assets/fr-CutjrzQz.js"},{"revision":null,"url":"assets/fr-RdOP2uWC.js"},{"revision":null,"url":"assets/fuel-CyQICCYM.js"},{"revision":null,"url":"assets/fullpage-BWf8VCc2.js"},{"revision":null,"url":"assets/Google-D-XsFWKn.js"},{"revision":null,"url":"assets/Grid-DwcLhQj8.js"},{"revision":null,"url":"assets/hi-BwtTylyX.js"},{"revision":null,"url":"assets/hi-V6iw7v5V.js"},{"revision":null,"url":"assets/Hidden-BWJFU4i6.js"},{"revision":null,"url":"assets/home-CudcogEq.js"},{"revision":null,"url":"assets/id-CeB6Ugb-.js"},{"revision":null,"url":"assets/id-Dz8dfVhg.js"},{"revision":null,"url":"assets/iframe-DeQzhqQa.js"},{"revision":null,"url":"assets/index-B1SC_K3b.js"},{"revision":null,"url":"assets/index-B2EWcNti.js"},{"revision":null,"url":"assets/index-B38g4Lrs.js"},{"revision":null,"url":"assets/index-BbQ5j9k0.js"},{"revision":null,"url":"assets/index-BEYLS2u3.js"},{"revision":null,"url":"assets/index-BFdHbwvA.js"},{"revision":null,"url":"assets/index-BiimVseX.js"},{"revision":null,"url":"assets/index-BKiZMfI8.js"},{"revision":null,"url":"assets/index-Bkw6k1IR.js"},{"revision":null,"url":"assets/index-BnA2ESWk.js"},{"revision":null,"url":"assets/index-ByEsfkzb.js"},{"revision":null,"url":"assets/index-BYWPqRt3.js"},{"revision":null,"url":"assets/index-ClWQBhLB.js"},{"revision":null,"url":"assets/index-CQMONHyO.js"},{"revision":null,"url":"assets/index-D0d5K626.js"},{"revision":null,"url":"assets/index-D4hqMq4n.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D5hrwpNn.js"},{"revision":null,"url":"assets/index-D8NuaJ66.css"},{"revision":null,"url":"assets/index-Dbd0UdkJ.js"},{"revision":null,"url":"assets/index-DL2n6aNi.js"},{"revision":null,"url":"assets/index-DL8j4eLo.js"},{"revision":null,"url":"assets/index-DsFggFMW.js"},{"revision":null,"url":"assets/index-DTEEl-sV.js"},{"revision":null,"url":"assets/index-DXdaJNxD.js"},{"revision":null,"url":"assets/index-DyetLrsl.js"},{"revision":null,"url":"assets/index-foZCwT8M.css"},{"revision":null,"url":"assets/index-HduLTk-B.js"},{"revision":null,"url":"assets/index-HqFqdQ4r.js"},{"revision":null,"url":"assets/index-huBceCKu.js"},{"revision":null,"url":"assets/index-IYWm69Iu.js"},{"revision":null,"url":"assets/index-lDFcjwBH.js"},{"revision":null,"url":"assets/index-LFr2EjPD.js"},{"revision":null,"url":"assets/index-LX_b6VRi.js"},{"revision":null,"url":"assets/index-uIjak6TC.js"},{"revision":null,"url":"assets/index-vR66LHmq.js"},{"revision":null,"url":"assets/index-WK-4Jv48.js"},{"revision":null,"url":"assets/index-zI_ZOFnN.js"},{"revision":null,"url":"assets/index.es-DfiZlCd9.js"},{"revision":null,"url":"assets/index.esm-DEFFuCAx.js"},{"revision":null,"url":"assets/InfoOutlined-C3RYxox6.js"},{"revision":null,"url":"assets/InputAdornment-C0QKC-6w.js"},{"revision":null,"url":"assets/InputLabel-CsbfU4t_.js"},{"revision":null,"url":"assets/invitation-BqxPLgK4.js"},{"revision":null,"url":"assets/invite-DzIfhYiY.js"},{"revision":null,"url":"assets/issue-passport-9BLYNaCr.js"},{"revision":null,"url":"assets/item-na2wyX63.js"},{"revision":null,"url":"assets/ja-BZrZ4ULY.js"},{"revision":null,"url":"assets/ja-DlWywLev.js"},{"revision":null,"url":"assets/jss-plugin-props-sort.esm-5l3ETyUY.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-DLaz-pjP.js"},{"revision":null,"url":"assets/ko-ESHUwy9c.js"},{"revision":null,"url":"assets/LastPage-BSjbJ19R.js"},{"revision":null,"url":"assets/Launch-CaoQNMs1.js"},{"revision":null,"url":"assets/launch-result-message-Cy6kSqOC.js"},{"revision":null,"url":"assets/LaunchOutlined-vrY0ldr3.js"},{"revision":null,"url":"assets/layout-C5DlPn9b.js"},{"revision":null,"url":"assets/Link-Bd4I60CZ.js"},{"revision":null,"url":"assets/list-header-BKwrl-hH.js"},{"revision":null,"url":"assets/ListItemText-Ch-Hk6jW.js"},{"revision":null,"url":"assets/LoadingButton-COZG9CB2.js"},{"revision":null,"url":"assets/localization-Bt5wkdvO.js"},{"revision":null,"url":"assets/LockIcon-wo568AAO.js"},{"revision":null,"url":"assets/log-CYXHC1Be.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/login-DBaWywd8.js"},{"revision":null,"url":"assets/login-oauth-callback-DgED49zc.js"},{"revision":null,"url":"assets/logo-uploader-DICViK_m.js"},{"revision":null,"url":"assets/Loop-CUHuPZIs.js"},{"revision":null,"url":"assets/lost-passport-CUOsAPVE.js"},{"revision":null,"url":"assets/lottie-B_-5Nu2X.js"},{"revision":null,"url":"assets/Menu-__JVjbvi.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/MoreHoriz-BH5FNIZr.js"},{"revision":null,"url":"assets/MoreVert-D-K4HVDp.js"},{"revision":null,"url":"assets/notifications-CNKkgV5g.js"},{"revision":null,"url":"assets/open-window-Di3nvKTK.js"},{"revision":null,"url":"assets/OpenInNew-BpWAPS1j.js"},{"revision":null,"url":"assets/overview-C9i2bvR9.js"},{"revision":null,"url":"assets/page-header-MeO_z3el.js"},{"revision":null,"url":"assets/Pagination-BdSgult3.js"},{"revision":null,"url":"assets/permission-CE9IIvmU.js"},{"revision":null,"url":"assets/PlayArrow-CMt8YTny.js"},{"revision":null,"url":"assets/preact.module-DJUF--8d.js"},{"revision":null,"url":"assets/preferences-Dwq31bO_.js"},{"revision":null,"url":"assets/pt-BMSFPKAT.js"},{"revision":null,"url":"assets/pt-CysEhQ_Z.js"},{"revision":null,"url":"assets/publish-resource-DUMhyaXr.js"},{"revision":null,"url":"assets/QuestionMarkCircle-BekFUFeC.js"},{"revision":null,"url":"assets/RadioGroup-B2Khdnc_.js"},{"revision":null,"url":"assets/react-87q4e1zg.js"},{"revision":null,"url":"assets/react-AgKpYdvC.css"},{"revision":null,"url":"assets/redux-B_wza_7l.js"},{"revision":null,"url":"assets/resource-dialog-o1JpezFF.js"},{"revision":null,"url":"assets/ru-2aTr2i-M.js"},{"revision":null,"url":"assets/ru-C-IO4heq.js"},{"revision":null,"url":"assets/sdk-DGa3oCWi.js"},{"revision":null,"url":"assets/Search-KdQ0ouxL.js"},{"revision":null,"url":"assets/Select-DAnPr_8-.js"},{"revision":null,"url":"assets/selector-D4kevKoJ.js"},{"revision":null,"url":"assets/ServerLogo-BbRAfhR0.js"},{"revision":null,"url":"assets/session-PAtiUW6l.js"},{"revision":null,"url":"assets/setup-BVFgT3ZW.js"},{"revision":null,"url":"assets/shorten-label-945B5Up2.js"},{"revision":null,"url":"assets/Skeleton-H3kZ6ORR.js"},{"revision":null,"url":"assets/slicedToArray-CnpUWxvD.js"},{"revision":null,"url":"assets/Slider-CoVFgzif.js"},{"revision":null,"url":"assets/spaces-DWho7Umf.js"},{"revision":null,"url":"assets/Stack-kpnWV2Q2.js"},{"revision":null,"url":"assets/start-Cn6C_fbf.js"},{"revision":null,"url":"assets/step-actions-Bx6nqm4u.js"},{"revision":null,"url":"assets/Stepper-Bpc-SXn1.js"},{"revision":null,"url":"assets/studio-COHSHcfG.js"},{"revision":null,"url":"assets/switch-control-C49xUZcp.js"},{"revision":null,"url":"assets/TextField-iQ2izHdV.js"},{"revision":null,"url":"assets/th-Bd6_ise5.js"},{"revision":null,"url":"assets/th-D2W7tb3N.js"},{"revision":null,"url":"assets/Toolbar-C8tBwEgb.js"},{"revision":null,"url":"assets/toUpper-bXsm_qXw.js"},{"revision":null,"url":"assets/transfer-CtRN0KqM.js"},{"revision":null,"url":"assets/trim-DqVVu3Il.js"},{"revision":null,"url":"assets/uniqBy-7lIpMVYc.js"},{"revision":null,"url":"assets/unsubscribe-BkF0tuUQ.js"},{"revision":null,"url":"assets/url-join-DE9yKz66.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-CRYIjvnV.js"},{"revision":null,"url":"assets/use-mobile-DKrWYav8.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-D04qYCKi.js"},{"revision":null,"url":"assets/useFormControl-i0joqxpq.js"},{"revision":null,"url":"assets/useLocalStorage-DKFLmhtB.js"},{"revision":null,"url":"assets/user-center-DAb90CGM.js"},{"revision":null,"url":"assets/user-sessions-DNBXGW2i.js"},{"revision":null,"url":"assets/useSetState-AqQC8uHm.js"},{"revision":null,"url":"assets/useSlot-1RyLiIq-.js"},{"revision":null,"url":"assets/useSlotProps-ChBJ3S4r.js"},{"revision":null,"url":"assets/useThemeProps-CQg5bnNT.js"},{"revision":null,"url":"assets/util-dbb-2LGO.js"},{"revision":null,"url":"assets/vi-BrQQz2Dk.js"},{"revision":null,"url":"assets/vi-DTSqGMo-.js"},{"revision":null,"url":"assets/ViewColumn-CAU8rzyD.js"},{"revision":null,"url":"assets/ViewList-BN0LV4EA.js"},{"revision":null,"url":"assets/wrap-locale-Cng_yCBU.js"},{"revision":null,"url":"assets/zh-AGc49itB.js"},{"revision":null,"url":"assets/zh-BUjxGa7K.js"},{"revision":null,"url":"assets/zh-tw-CwZfwqpL.js"},{"revision":null,"url":"assets/zh-tw-DYU_VaXB.js"},{"revision":"f76eb4e88e4d9d4aab58afb33ac69843","url":"index.html"},{"revision":"186b2f1889d7c89ecd30e422ab415c8a","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"ecdddc9b1297e7511cad18529d5cfd89","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/router/-template-styles/")},new yt);
|
|
2
|
+
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new nt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const r=Date.now();return t>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/access-control-B1yRTcWF.js"},{"revision":null,"url":"assets/actions-Cm4y3Vxr.js"},{"revision":null,"url":"assets/add-component-core-BAFb6uHx.js"},{"revision":null,"url":"assets/add-component-core-Dg7G08Fh.css"},{"revision":null,"url":"assets/Add-DAQA4hl7.js"},{"revision":null,"url":"assets/add-resource-Bxy_EIU5.js"},{"revision":null,"url":"assets/addon-uerpU2Yk.js"},{"revision":null,"url":"assets/Alert-B8kenWpY.js"},{"revision":null,"url":"assets/analytics-CX0H_3Z4.js"},{"revision":null,"url":"assets/api-DxtqIksv.js"},{"revision":null,"url":"assets/ar-BcsWe-M7.js"},{"revision":null,"url":"assets/ar-rur8F6ox.js"},{"revision":null,"url":"assets/ArrowDropDown-B4CQuaFu.js"},{"revision":null,"url":"assets/audit-logs-B77XgUxl.js"},{"revision":null,"url":"assets/Autocomplete-D0sWlFIR.js"},{"revision":null,"url":"assets/Avatar-7y20d6uv.js"},{"revision":null,"url":"assets/base32-BbDUMCim.js"},{"revision":null,"url":"assets/bundle-avatar-J_a9wisR.js"},{"revision":null,"url":"assets/button-CZGN0DFI.js"},{"revision":null,"url":"assets/ButtonGroup-DRVN-vsI.js"},{"revision":null,"url":"assets/CheckCircle-BI66VMY6.js"},{"revision":null,"url":"assets/ChevronLeft-DmDrmJDF.js"},{"revision":null,"url":"assets/ChevronRight-D-HWZ2Zs.js"},{"revision":null,"url":"assets/click-to-copy-CPjwr766.js"},{"revision":null,"url":"assets/Close-BWGd-Nvb.js"},{"revision":null,"url":"assets/CloseOutlined-BxdDTJtY.js"},{"revision":null,"url":"assets/complete-C9fCRXxg.js"},{"revision":null,"url":"assets/component-Bjp-R3IE.js"},{"revision":null,"url":"assets/config-BxeAHcCc.js"},{"revision":null,"url":"assets/config-ChJImtJc.js"},{"revision":null,"url":"assets/config-navigation-Cxy6wwv0.js"},{"revision":null,"url":"assets/confirm-CZh9lrf7.js"},{"revision":null,"url":"assets/connect-Cc_HQwn4.js"},{"revision":null,"url":"assets/connect-CKHZQLeh.js"},{"revision":null,"url":"assets/connect-to-BvUi2lDi.js"},{"revision":null,"url":"assets/content-layout-dCNXPQB4.js"},{"revision":null,"url":"assets/dashboard-BhEpCrng.js"},{"revision":null,"url":"assets/de-C-5DrcsF.js"},{"revision":null,"url":"assets/de-f8XZAb4q.js"},{"revision":null,"url":"assets/Delete-Cbmwi2_n.js"},{"revision":null,"url":"assets/DeleteOutline-DCYu02gd.js"},{"revision":null,"url":"assets/deprecate-CstKkKFM.js"},{"revision":null,"url":"assets/DialogContentText-M0t1zhqn.js"},{"revision":null,"url":"assets/did-address-DXunIer2.js"},{"revision":null,"url":"assets/domain-list-BIxxgG74.js"},{"revision":null,"url":"assets/domain-T2wMVe21.js"},{"revision":null,"url":"assets/Done-DqYPOWOz.js"},{"revision":null,"url":"assets/Download-BRihSpJ5.js"},{"revision":null,"url":"assets/Edit-Dm5CBPHC.js"},{"revision":null,"url":"assets/EditIcon-BzxcFyWF.js"},{"revision":null,"url":"assets/email-BWRSAcoV.js"},{"revision":null,"url":"assets/emotion-cache.browser.esm-Mm6229p7.js"},{"revision":null,"url":"assets/Error-D_2Fmq_E.js"},{"revision":null,"url":"assets/es-CDmziQ2d.js"},{"revision":null,"url":"assets/es-Dkw0SgdE.js"},{"revision":null,"url":"assets/exchange-passport-CuCHGbCf.js"},{"revision":null,"url":"assets/ExpandMore-BlBxw7cf.js"},{"revision":null,"url":"assets/fallback-B1bvHdlx.js"},{"revision":null,"url":"assets/format-error-MSTr4Dld.js"},{"revision":null,"url":"assets/FormControl-P0hOBz_d.js"},{"revision":null,"url":"assets/FormControlLabel-DXJxfDzh.js"},{"revision":null,"url":"assets/FormGroup-BMxqnWKW.js"},{"revision":null,"url":"assets/fr-CutjrzQz.js"},{"revision":null,"url":"assets/fr-RdOP2uWC.js"},{"revision":null,"url":"assets/fuel-Dgzaq3De.js"},{"revision":null,"url":"assets/fullpage-BwWBbfSq.js"},{"revision":null,"url":"assets/Google-Dz_lBWZG.js"},{"revision":null,"url":"assets/Grid-Dk_DYqwe.js"},{"revision":null,"url":"assets/hi-BwtTylyX.js"},{"revision":null,"url":"assets/hi-V6iw7v5V.js"},{"revision":null,"url":"assets/Hidden-3B3zKMrj.js"},{"revision":null,"url":"assets/home-74tIkF1B.js"},{"revision":null,"url":"assets/id-CeB6Ugb-.js"},{"revision":null,"url":"assets/id-Dz8dfVhg.js"},{"revision":null,"url":"assets/iframe-86-twlRv.js"},{"revision":null,"url":"assets/index-29_4R1is.js"},{"revision":null,"url":"assets/index-B_vncBdF.js"},{"revision":null,"url":"assets/index-B5PmYJ9f.js"},{"revision":null,"url":"assets/index-BaOr19U9.js"},{"revision":null,"url":"assets/index-BFeN7gRX.js"},{"revision":null,"url":"assets/index-Bi4O8Q7b.js"},{"revision":null,"url":"assets/index-BJZKVgnz.js"},{"revision":null,"url":"assets/index-BKvulX5F.js"},{"revision":null,"url":"assets/index-BnwRbf34.js"},{"revision":null,"url":"assets/index-bo5TF2Hm.js"},{"revision":null,"url":"assets/index-BYwmGv42.js"},{"revision":null,"url":"assets/index-C2SclAt1.js"},{"revision":null,"url":"assets/index-C8tvv1mE.js"},{"revision":null,"url":"assets/index-C9uoGnCi.js"},{"revision":null,"url":"assets/index-Cb5ummYm.js"},{"revision":null,"url":"assets/index-D_l3bgiM.js"},{"revision":null,"url":"assets/index-D1wE6UgA.js"},{"revision":null,"url":"assets/index-D2v_q--c.js"},{"revision":null,"url":"assets/index-D3z0u_tU.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D6Fo42LG.js"},{"revision":null,"url":"assets/index-D8NuaJ66.css"},{"revision":null,"url":"assets/index-Df44Oc0v.js"},{"revision":null,"url":"assets/index-DL-uDyV1.js"},{"revision":null,"url":"assets/index-DlP4vQPr.js"},{"revision":null,"url":"assets/index-DTEEl-sV.js"},{"revision":null,"url":"assets/index-Dvdwt5er.js"},{"revision":null,"url":"assets/index-DY43G97W.js"},{"revision":null,"url":"assets/index-DYgo92mz.js"},{"revision":null,"url":"assets/index-DYtGXeNF.js"},{"revision":null,"url":"assets/index-DyV0uX5c.js"},{"revision":null,"url":"assets/index-DZAe2asg.js"},{"revision":null,"url":"assets/index-foZCwT8M.css"},{"revision":null,"url":"assets/index-HE7O7jgn.js"},{"revision":null,"url":"assets/index-HqFqdQ4r.js"},{"revision":null,"url":"assets/index-j8fq8gc5.js"},{"revision":null,"url":"assets/index-rvdKk-hW.js"},{"revision":null,"url":"assets/index-TIPq1YB5.js"},{"revision":null,"url":"assets/index.es-D6kSEknT.js"},{"revision":null,"url":"assets/index.esm-BACx3Bgt.js"},{"revision":null,"url":"assets/InfoOutlined-BxfEr3Yv.js"},{"revision":null,"url":"assets/InputAdornment-DBYVP0VZ.js"},{"revision":null,"url":"assets/InputLabel-CUj0gAgE.js"},{"revision":null,"url":"assets/invitation--LuhvYG3.js"},{"revision":null,"url":"assets/invite-CnAaywBJ.js"},{"revision":null,"url":"assets/issue-passport-CHQbzhyM.js"},{"revision":null,"url":"assets/item-DiPWmg4D.js"},{"revision":null,"url":"assets/ja-BZrZ4ULY.js"},{"revision":null,"url":"assets/ja-DlWywLev.js"},{"revision":null,"url":"assets/jss-plugin-props-sort.esm-BbUCTvTY.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-DLaz-pjP.js"},{"revision":null,"url":"assets/ko-ESHUwy9c.js"},{"revision":null,"url":"assets/LastPage-DfP2R9Oa.js"},{"revision":null,"url":"assets/Launch-B871fo3J.js"},{"revision":null,"url":"assets/launch-result-message-DUOKkM73.js"},{"revision":null,"url":"assets/LaunchOutlined-DMPabe2p.js"},{"revision":null,"url":"assets/layout-DpBlA8e2.js"},{"revision":null,"url":"assets/Link-DiIwF6B2.js"},{"revision":null,"url":"assets/list-header-DWE1hNBN.js"},{"revision":null,"url":"assets/LoadingButton-B9Uh-LQA.js"},{"revision":null,"url":"assets/localization-C5NLdJbv.js"},{"revision":null,"url":"assets/LockIcon-PoUIp4UY.js"},{"revision":null,"url":"assets/log-53QGCL9A.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/login-BaZ1FJDR.js"},{"revision":null,"url":"assets/login-oauth-callback-CTDRh2SM.js"},{"revision":null,"url":"assets/logo-uploader-D48tPsQ7.js"},{"revision":null,"url":"assets/Loop-Cz6irMix.js"},{"revision":null,"url":"assets/lost-passport-BguCyjaA.js"},{"revision":null,"url":"assets/lottie-DXvsb19-.js"},{"revision":null,"url":"assets/Menu-D9WDrqHE.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/MoreHoriz-Bzyp9XwU.js"},{"revision":null,"url":"assets/MoreVert-6cQtfCA6.js"},{"revision":null,"url":"assets/notifications-0JFtARNG.js"},{"revision":null,"url":"assets/open-window-CpqnuS9I.js"},{"revision":null,"url":"assets/OpenInNew-Cyzkq5Z6.js"},{"revision":null,"url":"assets/overview-CiGfQ_r4.js"},{"revision":null,"url":"assets/page-header-BhMIblde.js"},{"revision":null,"url":"assets/Pagination-CIhFbEoY.js"},{"revision":null,"url":"assets/permission-Bn8ONtBu.js"},{"revision":null,"url":"assets/PlayArrow-DfVelCxI.js"},{"revision":null,"url":"assets/preact.module-DJUF--8d.js"},{"revision":null,"url":"assets/preferences-Be_zxnom.js"},{"revision":null,"url":"assets/pt-BMSFPKAT.js"},{"revision":null,"url":"assets/pt-CysEhQ_Z.js"},{"revision":null,"url":"assets/publish-resource-B2D7mrbE.js"},{"revision":null,"url":"assets/QuestionMarkCircle-Dmo7fO3q.js"},{"revision":null,"url":"assets/RadioGroup-C8LRTono.js"},{"revision":null,"url":"assets/react-AgKpYdvC.css"},{"revision":null,"url":"assets/react-B76g6xcQ.js"},{"revision":null,"url":"assets/redux-DNNFTtlX.js"},{"revision":null,"url":"assets/resource-dialog-D9phHFD1.js"},{"revision":null,"url":"assets/ru-2aTr2i-M.js"},{"revision":null,"url":"assets/ru-C-IO4heq.js"},{"revision":null,"url":"assets/sdk-D3N7Lly-.js"},{"revision":null,"url":"assets/Search-sf4kfFV4.js"},{"revision":null,"url":"assets/Select-DiRwP_6a.js"},{"revision":null,"url":"assets/selector-CHNq0IRi.js"},{"revision":null,"url":"assets/ServerLogo-DrHcOw4m.js"},{"revision":null,"url":"assets/session-DQy8BnkU.js"},{"revision":null,"url":"assets/setup-BQC0e1_I.js"},{"revision":null,"url":"assets/shorten-label-DsvGvUrQ.js"},{"revision":null,"url":"assets/Skeleton-DiG5VWr2.js"},{"revision":null,"url":"assets/slicedToArray-DXMU5JZD.js"},{"revision":null,"url":"assets/Slider-DHlnySvX.js"},{"revision":null,"url":"assets/spaces-D4gX0_rK.js"},{"revision":null,"url":"assets/Stack-BkDLp2S8.js"},{"revision":null,"url":"assets/start-Bt8Vsvhc.js"},{"revision":null,"url":"assets/step-actions-Dkbriu2L.js"},{"revision":null,"url":"assets/Stepper-Cr4Ue7LM.js"},{"revision":null,"url":"assets/studio-Dqu6paHO.js"},{"revision":null,"url":"assets/switch-control-DbSaBWqA.js"},{"revision":null,"url":"assets/TextField-CCB_Jmv_.js"},{"revision":null,"url":"assets/th-Bd6_ise5.js"},{"revision":null,"url":"assets/th-D2W7tb3N.js"},{"revision":null,"url":"assets/Toolbar-BAiWv4-B.js"},{"revision":null,"url":"assets/toUpper-CliKP7G7.js"},{"revision":null,"url":"assets/transfer-Bm_twE74.js"},{"revision":null,"url":"assets/trim-B-4xv-e3.js"},{"revision":null,"url":"assets/uniqBy-B9USxWYR.js"},{"revision":null,"url":"assets/unsubscribe-CmK-13jy.js"},{"revision":null,"url":"assets/url-join-M0zkNbYb.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-D6v0hDzW.js"},{"revision":null,"url":"assets/use-mobile-B0GQXwHM.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-BWFWaRkz.js"},{"revision":null,"url":"assets/useFormControl-B0cusiJt.js"},{"revision":null,"url":"assets/useLocalStorage-CuRBIcWm.js"},{"revision":null,"url":"assets/user-center-Pqaf1DAY.js"},{"revision":null,"url":"assets/user-sessions-Cc78WqU9.js"},{"revision":null,"url":"assets/useSetState-BMiClb9g.js"},{"revision":null,"url":"assets/useSlot-CRlI8p2I.js"},{"revision":null,"url":"assets/useSlotProps-JEaJsoR3.js"},{"revision":null,"url":"assets/useThemeProps-pSaUXwQT.js"},{"revision":null,"url":"assets/util-BKr59-9_.js"},{"revision":null,"url":"assets/vi-BrQQz2Dk.js"},{"revision":null,"url":"assets/vi-DTSqGMo-.js"},{"revision":null,"url":"assets/ViewColumn-DhNVCNtY.js"},{"revision":null,"url":"assets/ViewList-D2QiFryN.js"},{"revision":null,"url":"assets/wrap-locale-CK-9zfpl.js"},{"revision":null,"url":"assets/zh-AGc49itB.js"},{"revision":null,"url":"assets/zh-BUjxGa7K.js"},{"revision":null,"url":"assets/zh-tw-CwZfwqpL.js"},{"revision":null,"url":"assets/zh-tw-DYU_VaXB.js"},{"revision":"75ff79cdead105d354c445950598fec0","url":"index.html"},{"revision":"186b2f1889d7c89ecd30e422ab415c8a","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"ecdddc9b1297e7511cad18529d5cfd89","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/router/-template-styles/")},new yt);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.33-beta-
|
|
6
|
+
"version": "1.16.33-beta-20241016-094817-da9da642",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/analytics": "1.16.33-beta-
|
|
37
|
-
"@abtnode/auth": "1.16.33-beta-
|
|
38
|
-
"@abtnode/client": "1.16.33-beta-
|
|
39
|
-
"@abtnode/connect-storage": "1.16.33-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.33-beta-
|
|
41
|
-
"@abtnode/core": "1.16.33-beta-
|
|
42
|
-
"@abtnode/cron": "1.16.33-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.33-beta-
|
|
44
|
-
"@abtnode/models": "1.16.33-beta-
|
|
45
|
-
"@abtnode/router-templates": "1.16.33-beta-
|
|
46
|
-
"@abtnode/util": "1.16.33-beta-
|
|
36
|
+
"@abtnode/analytics": "1.16.33-beta-20241016-094817-da9da642",
|
|
37
|
+
"@abtnode/auth": "1.16.33-beta-20241016-094817-da9da642",
|
|
38
|
+
"@abtnode/client": "1.16.33-beta-20241016-094817-da9da642",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.33-beta-20241016-094817-da9da642",
|
|
40
|
+
"@abtnode/constant": "1.16.33-beta-20241016-094817-da9da642",
|
|
41
|
+
"@abtnode/core": "1.16.33-beta-20241016-094817-da9da642",
|
|
42
|
+
"@abtnode/cron": "1.16.33-beta-20241016-094817-da9da642",
|
|
43
|
+
"@abtnode/logger": "1.16.33-beta-20241016-094817-da9da642",
|
|
44
|
+
"@abtnode/models": "1.16.33-beta-20241016-094817-da9da642",
|
|
45
|
+
"@abtnode/router-templates": "1.16.33-beta-20241016-094817-da9da642",
|
|
46
|
+
"@abtnode/util": "1.16.33-beta-20241016-094817-da9da642",
|
|
47
47
|
"@arcblock/did": "^1.18.135",
|
|
48
48
|
"@arcblock/did-auth": "1.18.135",
|
|
49
49
|
"@arcblock/did-ext": "^1.18.135",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@arcblock/jwt": "1.18.135",
|
|
53
53
|
"@arcblock/validator": "^1.18.135",
|
|
54
54
|
"@arcblock/ws": "1.18.135",
|
|
55
|
-
"@blocklet/constant": "1.16.33-beta-
|
|
55
|
+
"@blocklet/constant": "1.16.33-beta-20241016-094817-da9da642",
|
|
56
56
|
"@blocklet/form-builder": "^0.1.11",
|
|
57
57
|
"@blocklet/form-collector": "^0.1.8",
|
|
58
|
-
"@blocklet/meta": "1.16.33-beta-
|
|
59
|
-
"@blocklet/sdk": "1.16.33-beta-
|
|
58
|
+
"@blocklet/meta": "1.16.33-beta-20241016-094817-da9da642",
|
|
59
|
+
"@blocklet/sdk": "1.16.33-beta-20241016-094817-da9da642",
|
|
60
60
|
"@did-connect/authenticator": "^2.2.4",
|
|
61
61
|
"@did-connect/relay-adapter-express": "^2.2.4",
|
|
62
62
|
"@ocap/client": "1.18.135",
|
|
@@ -102,14 +102,14 @@
|
|
|
102
102
|
"minimatch": "9.0.4"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@abtnode/ux": "1.16.33-beta-
|
|
105
|
+
"@abtnode/ux": "1.16.33-beta-20241016-094817-da9da642",
|
|
106
106
|
"@arcblock/bridge": "^2.10.45",
|
|
107
107
|
"@arcblock/did-connect": "^2.10.45",
|
|
108
108
|
"@arcblock/icons": "^2.10.45",
|
|
109
109
|
"@arcblock/react-hooks": "^2.10.45",
|
|
110
110
|
"@arcblock/ux": "^2.10.45",
|
|
111
111
|
"@blocklet/launcher-layout": "2.10.45",
|
|
112
|
-
"@blocklet/tracker": "1.16.33-beta-
|
|
112
|
+
"@blocklet/tracker": "1.16.33-beta-20241016-094817-da9da642",
|
|
113
113
|
"@blocklet/ui-react": "^2.10.45",
|
|
114
114
|
"@emotion/react": "^11.11.4",
|
|
115
115
|
"@emotion/styled": "^11.11.5",
|
|
@@ -183,5 +183,5 @@
|
|
|
183
183
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
184
184
|
"email": "shijun@arcblock.io"
|
|
185
185
|
},
|
|
186
|
-
"gitHead": "
|
|
186
|
+
"gitHead": "a714300a967417cb3244e00eced42b844bf8e12f"
|
|
187
187
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{X as t,Y as r,j as a}from"./index-lDFcjwBH.js";var e={},u=r;Object.defineProperty(e,"__esModule",{value:!0});var l=e.default=void 0,o=u(t()),s=a;l=e.default=(0,o.default)((0,s.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");export{e as D,l as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aG as h,aK as a,r as x,aI as L,aJ as v,aO as C,j as y,aM as N,aN as R,d1 as M,d2 as T,T as d,d3 as S}from"./index-lDFcjwBH.js";const w=["className"],U=t=>{const{alignItems:s,classes:e}=t;return R({root:["root",s==="flex-start"&&"alignItemsFlexStart"]},M,e)},_=h("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:e}=t;return[s.root,e.alignItems==="flex-start"&&s.alignItemsFlexStart]}})(({theme:t,ownerState:s})=>a({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},s.alignItems==="flex-start"&&{marginTop:8})),E=x.forwardRef(function(s,e){const o=L({props:s,name:"MuiListItemIcon"}),{className:c}=o,l=v(o,w),r=x.useContext(C),m=a({},o,{alignItems:r.alignItems}),p=U(m);return y.jsx(_,a({className:N(p.root,c),ownerState:m,ref:e},l))}),$=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],k=t=>{const{classes:s,inset:e,primary:o,secondary:c,dense:l}=t;return R({root:["root",e&&"inset",l&&"dense",o&&c&&"multiline"],primary:["primary"],secondary:["secondary"]},S,s)},W=h("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:e}=t;return[{[`& .${T.primary}`]:s.primary},{[`& .${T.secondary}`]:s.secondary},s.root,e.inset&&s.inset,e.primary&&e.secondary&&s.multiline,e.dense&&s.dense]}})(({ownerState:t})=>a({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})),F=x.forwardRef(function(s,e){const o=L({props:s,name:"MuiListItemText"}),{children:c,className:l,disableTypography:r=!1,inset:m=!1,primary:p,primaryTypographyProps:u,secondary:b,secondaryTypographyProps:P}=o,j=v(o,$),{dense:g}=x.useContext(C);let n=p??c,i=b;const f=a({},o,{disableTypography:r,inset:m,primary:!!n,secondary:!!i,dense:g}),I=k(f);return n!=null&&n.type!==d&&!r&&(n=y.jsx(d,a({variant:g?"body2":"body1",className:I.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:n}))),i!=null&&i.type!==d&&!r&&(i=y.jsx(d,a({variant:"body2",className:I.secondary,color:"text.secondary",display:"block"},P,{children:i}))),y.jsxs(W,a({className:N(I.root,l),ownerState:f,ref:e},j,{children:[n,i]}))});export{E as L,F as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as c,j as a,aC as P,aR as E,aS as v,aT as I,P as p,Z as T}from"./index-lDFcjwBH.js";import{d as C}from"./MoreHoriz-BH5FNIZr.js";import{L as D,a as b}from"./ListItemText-Ch-Hk6jW.js";function l({actions:u,size:m,...d}){const[n,r]=c.useState(null),f=!!n,y=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},e=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return a.jsxs(k,{...d,children:[a.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:y,size:m,children:a.jsx(C,{})}),a.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:f,onClose:e,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:e});if(t.separator)return a.jsx(v,{},`separator-${s}`);const{icon:h,text:x,render:z,onClick:o,disabled:j=!1,...g}=t;return c.createElement(I,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(o==null?void 0:o(i)),e()},key:s,"data-cy":`actions-menu-${s}`},a.jsx(D,{style:{minWidth:24,marginRight:8},children:h}),a.jsx(b,{primary:x}))})})]})}l.propTypes={actions:p.array,size:p.oneOf(["small","medium","large"])};l.defaultProps={actions:[],size:"small"};const k=T.div``;export{l as A};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as B,ak as L,bx as W,$ as O,r,c as A,c3 as T,bw as _,m as h,l as $,c4 as F,j as w,au as K}from"./index-lDFcjwBH.js";import{A as z,S as G}from"./add-component-core-11KaEkJm.js";import"./item-na2wyX63.js";import"./Add-DqnQRxKy.js";import"./MoreVert-D-K4HVDp.js";import"./DialogContentText-CD_9b35x.js";import"./TextField-iQ2izHdV.js";import"./FormControl-DU81G5bu.js";import"./useFormControl-i0joqxpq.js";import"./InputLabel-CsbfU4t_.js";import"./Select-DAnPr_8-.js";import"./Alert-D-5Cob8e.js";import"./useSlot-1RyLiIq-.js";import"./format-error-Dg_Wyxee.js";import"./Launch-CaoQNMs1.js";import"./Done-CqmY_Vcx.js";import"./DeleteOutline-DmQE35jW.js";import"./click-to-copy-DglMzVEl.js";import"./shorten-label-945B5Up2.js";import"./confirm-C-ZpymsR.js";import"./session-PAtiUW6l.js";import"./did-address-D8JyTgrD.js";import"./Link-Bd4I60CZ.js";import"./Avatar-s-RbgNaK.js";import"./ButtonGroup-CbB4bj5R.js";import"./jss-plugin-props-sort.esm-5l3ETyUY.js";import"./Grid-DwcLhQj8.js";import"./lottie-B_-5Nu2X.js";import"./index-DsFggFMW.js";import"./spaces-DWho7Umf.js";import"./index-BKiZMfI8.js";import"./api-CGBrxiXH.js";import"./url-join-DE9yKz66.js";import"./Skeleton-H3kZ6ORR.js";import"./Hidden-BWJFU4i6.js";import"./launch-result-message-Cy6kSqOC.js";import"./Close-BrR3bQ06.js";import"./page-header-MeO_z3el.js";import"./uniqBy-7lIpMVYc.js";import"./logo-uploader-DICViK_m.js";import"./index-Dbd0UdkJ.js";import"./index-B38g4Lrs.js";import"./EditIcon-BGTWmwGP.js";import"./Google-D-XsFWKn.js";import"./index-vR66LHmq.js";import"./FormControlLabel-8jOHLgVZ.js";import"./Stack-kpnWV2Q2.js";import"./index-LX_b6VRi.js";import"./index-DXdaJNxD.js";import"./Stepper-Bpc-SXn1.js";import"./ListItemText-Ch-Hk6jW.js";import"./util-dbb-2LGO.js";import"./connect-to-CQAPJyx5.js";import"./use-blocklet-info-for-connect-did-spaces-CRYIjvnV.js";import"./CloseOutlined-C5GNiQn3.js";import"./index-DyetLrsl.js";import"./ExpandMore-CbxNhKjL.js";import"./content-layout-Bw7ct9HF.js";import"./ArrowDropDown-D0Z0e8Y7.js";import"./useLocalStorage-DKFLmhtB.js";import"./fallback-Cmo8A_sx.js";import"./ChevronLeft-D9qAKhUC.js";import"./ChevronRight-Bg7d5X-4.js";import"./index-LFr2EjPD.js";import"./Menu-__JVjbvi.js";import"./Search-KdQ0ouxL.js";import"./preact.module-DJUF--8d.js";import"./InputAdornment-C0QKC-6w.js";function so(){var d;const{t:g}=B(),{blocklet:a}=L(),{componentDid:s}=W(),f=O(t=>t.breakpoints.down("md")),e=new URL(window.location.href),C=e.searchParams.get("mode")==="dialog",p=e.searchParams.get("resourceType")||"",c=e.searchParams.get("resourceDid")||s,R=e.searchParams.get("store")||"",S=e.searchParams.get("showFromUrl")!=="false",y=e.searchParams.get("showResourcesSwitch")!=="false",E=e.searchParams.get("enableRunBackground")!=="false",P=e.searchParams.get("showCategory")!=="false",m=(d=a==null?void 0:a.meta)==null?void 0:d.did,n=R.split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[b,D]=r.useState(n.map(t=>({url:t,name:t.replace("https://","")}))),[x,U]=r.useState(null),[j,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const t=await Promise.all(n.map(async o=>{const i=A(o,"/api/store.json"),{data:v}=await T.get(i);return{url:o,name:v.name}}));D(t||[])}catch(t){console.error(t)}})()},[n.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const t=_();return m&&t.connect(),()=>{m&&t.isConnected()&&t.disconnect()}},[m]),h(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=$(t=>{var o,i;((o=t.data)==null?void 0:o.event)==="resourceDialog.select"&&((i=t.data)==null?void 0:i.componentDid)===s&&(U(t.data.data),M(t.data.storeUrl))});h(()=>{window.addEventListener("message",l)}),F(()=>{window.removeEventListener("message",l)});const u=({inDialog:t=!0}={})=>w.jsx(z,{stores:b,selectedMeta:x,storeUrl:j,resourceType:p,resourceDid:c,mode:"embed",inDialog:t,storageKey:G(`${p}+${c}`),showResourcesSwitch:y,showFromUrl:S,enableRunBackground:E,showCategory:P});return C?w.jsx(K,{className:"resource-dialog",title:g("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:u()}):u({inDialog:!1})}export{so as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c3 as a}from"./index-lDFcjwBH.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import{aP as C,r as n,j as t,t as E,u as T,n as B,B as x,aT as M,Z as I,A as b,T as d,L,G as _}from"./index-lDFcjwBH.js";import{M as W}from"./index-vR66LHmq.js";import{E as F}from"./index-LFr2EjPD.js";import{T as z}from"./index-WK-4Jv48.js";import{_ as R}from"./useLocalStorage-DKFLmhtB.js";import{R as D}from"./dashboard-hWtF2-L2.js";import{F as G}from"./FormControl-DU81G5bu.js";import{I as K}from"./InputLabel-CsbfU4t_.js";import{S as O}from"./Select-DAnPr_8-.js";import{P as U}from"./Pagination-BdSgult3.js";import{r as H}from"./index-D0d5K626.js";import"./index-Bkw6k1IR.js";import"./MoreVert-D-K4HVDp.js";import"./confirm-C-ZpymsR.js";import"./DialogContentText-CD_9b35x.js";import"./Alert-D-5Cob8e.js";import"./useSlot-1RyLiIq-.js";import"./format-error-Dg_Wyxee.js";import"./Delete-B15-niP2.js";import"./PlayArrow-CMt8YTny.js";import"./ListItemText-Ch-Hk6jW.js";import"./ButtonGroup-CbB4bj5R.js";import"./RadioGroup-B2Khdnc_.js";import"./FormControlLabel-8jOHLgVZ.js";import"./useFormControl-i0joqxpq.js";import"./Stack-kpnWV2Q2.js";import"./FormGroup-QuqjTPhE.js";import"./Avatar-s-RbgNaK.js";import"./session-PAtiUW6l.js";import"./permission-CE9IIvmU.js";import"./useAsync-D04qYCKi.js";import"./Link-Bd4I60CZ.js";import"./useSetState-AqQC8uHm.js";import"./fallback-Cmo8A_sx.js";import"./index-BbQ5j9k0.js";import"./Menu-__JVjbvi.js";import"./Toolbar-C8tBwEgb.js";import"./Hidden-BWJFU4i6.js";import"./index-uIjak6TC.js";import"./selector-D4kevKoJ.js";import"./deprecate-CeNqPdFm.js";import"./LastPage-BSjbJ19R.js";const S=n.createContext({}),{Provider:Z,Consumer:Ge}=S;function q({children:e,scope:o="",categories:a=[],showScope:i,scopeFormatter:p}){const{api:s,info:l}=C(),[c,r]=n.useState([]),[f,A]=n.useState({total:0,pageSize:20,pageCount:0,page:1}),[j,h]=n.useState(!1),[u,k]=R(`audit-log-category-${o}`,"all"),N=[{value:"all",label:"All",description:""},{value:"blocklet",label:"Blocklet Management",description:""},{value:"server",label:"Server Management",description:""},{value:"team",label:"Team Management",description:""},{value:"security",label:"Security",description:""},{value:"certificates",label:"Certificate Management",description:""},{value:"integrations",label:"Integration Management",description:""},{value:"gateway",label:"Gateway",description:""}].filter(g=>a.length?g.value==="all"||a.includes(g.value):!0),y=async({page:g=1,silent:$=!0}={})=>{if(!j){$||h(!0);try{const m=await s.getAuditLogs({input:{paging:{page:g},category:u==="all"?"":u,scope:o}});i&&(m.list||[]).forEach(v=>{v.scope!==l.did&&(v.link=`/blocklets/${v.scope}/components`)}),r(m.list),A(m.paging),h(!1)}catch(m){E.error(m.message),h(!1)}}};n.useEffect(()=>{y({page:1,silent:!1})},[]),n.useEffect(()=>{y({page:1,silent:!1})},[u]);const P={loading:j,fetch:y,filter:{category:u,scope:o},categories:N,setCategory:k,data:c,paging:f,showScope:i,scopeFormatter:p};return t.jsx(Z,{value:{auditLogs:P},children:e})}function w(){const{auditLogs:e}=n.useContext(S);return e}const J=({log:e,info:o,inService:a})=>a?`${_.WELLKNOWN_BLOCKLET_ADMIN_PATH}/members?did=${e.actor.did}`:e.scope===o.did?`/team/members?did=${e.actor.did}`:`/blocklets/${e.scope}/members?did=${e.actor.did}`;function Q({log:e}){var l,c;const{inService:o,info:a}=C(),{showScope:i,scopeFormatter:p=r=>r}=w();if(!e.actor.did)return null;const s=!["blocklet",""].includes(e.actor.role);return t.jsxs(x,{className:"log-entry","data-cy":"log-entry",children:[t.jsx("div",{className:"log-author",children:s?t.jsx(b,{did:e.actor.did,size:36,shape:"circle"}):t.jsx(b,{did:e.actor.did,size:36})}),t.jsxs("div",{className:"log-body",children:[t.jsxs(d,{className:"log-header",color:"textSecondary",component:"p",gutterBottom:!0,display:"flex",alignItems:"center",children:[i&&t.jsx(L,{to:e.link,children:t.jsx(z,{style:{marginRight:8},children:p(e.scope)})}),s?t.jsxs(L,{to:J({log:e,inService:o,info:a}),target:"_blank",children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]}):t.jsxs("span",{children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]})," ",t.jsx("span",{style:{margin:"0 4px"},children:"-"})," ",e.action]}),t.jsx(d,{className:"log-content",maxWidth:"lg",color:"textPrimary",component:"div","data-color-mode":"light",gutterBottom:!0,children:t.jsx(W,{source:e.content,rehypePlugins:[[H,{target:"_blank"}]]})}),t.jsxs(x,{className:"log-meta",variant:"body2",children:[!!e.ip&&t.jsx(d,{component:"span",color:"textSecondary",children:`IP: ${e.ip}`}),!!((l=e.env.os)!=null&&l.name)&&t.jsxs(d,{component:"span",color:"textSecondary",children:[e.env.os.name,"(",e.env.os.version,")"]}),!!((c=e.env.browser)!=null&&c.name)&&t.jsxs(d,{component:"span",color:"textSecondary",children:[e.env.browser.name,"(",e.env.browser.version,")"]}),t.jsx(d,{component:"span",color:"textSecondary",children:t.jsx(D,{value:e.createdAt})})]})]})]})}function V(){const{t:e}=T(),{data:o,loading:a,paging:i,filter:p,categories:s,setCategory:l,fetch:c}=w();return a?t.jsx("div",{style:{textAlign:"center",marginTop:"50px"},children:t.jsx(B,{})}):t.jsxs(X,{"data-cy":"audit-logs",children:[t.jsx(x,{className:"log-controls",children:t.jsxs(G,{style:{width:"240px"},variant:"outlined",children:[t.jsx(K,{children:e("common.filter")}),t.jsx(O,{"data-cy":"filter-by-category-trigger",value:p.category,onChange:r=>l(r.target.value),fullWidth:!0,label:e("common.category"),disabled:a,children:s.map(r=>t.jsx(M,{value:r.value,"data-cy":`filter-by-category-${r.value}`,children:t.jsx(x,{children:t.jsx("span",{children:r.label})})},r.label))})]})}),o.length===0&&t.jsx(F,{children:e("common.empty")}),o.length>0&&o.map(r=>t.jsx(Q,{log:r},r.id)),i.pageCount>1&&t.jsx(U,{page:i.page,count:i.pageCount,onChange:(r,f)=>c({page:f}),showFirstButton:!0,showLastButton:!0})]})}function Ke({scope:e,categories:o,showScope:a,scopeFormatter:i}){return t.jsx(q,{scope:e,categories:o,showScope:a,scopeFormatter:i,children:t.jsx(V,{})})}const X=I.div`
|
|
2
|
-
.log-controls {
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
}
|
|
6
|
-
.log-entry {
|
|
7
|
-
display: flex;
|
|
8
|
-
margin: 16px 0;
|
|
9
|
-
|
|
10
|
-
.log-author {
|
|
11
|
-
margin-right: 8px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.log-body {
|
|
15
|
-
flex: 1;
|
|
16
|
-
|
|
17
|
-
a {
|
|
18
|
-
color: ${({theme:e})=>e.palette.primary.main};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.log-header {
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.log-content {
|
|
25
|
-
p {
|
|
26
|
-
margin-bottom: 4px;
|
|
27
|
-
}
|
|
28
|
-
ul,
|
|
29
|
-
ol {
|
|
30
|
-
padding-left: 2rem;
|
|
31
|
-
}
|
|
32
|
-
li {
|
|
33
|
-
list-style-type: disc;
|
|
34
|
-
}
|
|
35
|
-
code.code-highlight {
|
|
36
|
-
max-height: 300px;
|
|
37
|
-
overflow: auto;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.log-meta {
|
|
42
|
-
margin-top: 4px;
|
|
43
|
-
|
|
44
|
-
span {
|
|
45
|
-
font-size: 0.8rem;
|
|
46
|
-
display: inline-block;
|
|
47
|
-
margin-right: 8px;
|
|
48
|
-
padding-right: 8px;
|
|
49
|
-
border-right: 1px solid #ccc;
|
|
50
|
-
|
|
51
|
-
&:last-of-type {
|
|
52
|
-
border-right: none;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`;export{Ke as default};
|