@abtnode/webapp 1.16.27-beta-9397aa36 → 1.16.27
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-BYcTrfwq.js → Add-DOwN6I9N.js} +1 -1
- package/dist/assets/{ArrowDropDown-Ce8utXjU.js → ArrowDropDown-CEsdzzcK.js} +1 -1
- package/dist/assets/{Autocomplete-BgbFIwgC.js → Autocomplete-DcC19-q2.js} +1 -1
- package/dist/assets/{Breadcrumbs-DhzWQAd5.js → Breadcrumbs-f87TWJgq.js} +1 -1
- package/dist/assets/{ButtonGroup-DsDQPFq5.js → ButtonGroup-CKY0O7tT.js} +1 -1
- package/dist/assets/{CheckCircle-z0EmvxpD.js → CheckCircle-BA-bGNdF.js} +1 -1
- package/dist/assets/{ChevronLeft-CwZ4eGkY.js → ChevronLeft-DRzRLgnp.js} +1 -1
- package/dist/assets/{ChevronRight-DF2TQuxF.js → ChevronRight-B2YICLYm.js} +1 -1
- package/dist/assets/{Close-TD13_jXp.js → Close-D9SKZkJ7.js} +1 -1
- package/dist/assets/{Delete-B32Y4H9I.js → Delete-h8Ye2r4b.js} +1 -1
- package/dist/assets/DeleteOutline-C-1A8rVu.js +1 -0
- package/dist/assets/{DeleteOutline-DvvZ31vT.js → DeleteOutline-ClZ-ABF-.js} +1 -1
- package/dist/assets/{Done-Dh00ds6i.js → Done-DaMxTX7e.js} +1 -1
- package/dist/assets/{Edit-BJLfjGzO.js → Edit-B1ySEana.js} +1 -1
- package/dist/assets/{EditIcon-BM1-fNyQ.js → EditIcon-BQGlXOR3.js} +1 -1
- package/dist/assets/{FilterList-0wFVrPUc.js → FilterList-DKFhXHd2.js} +1 -1
- package/dist/assets/{Google-Bh_n6egY.js → Google-D2cPndsH.js} +1 -1
- package/dist/assets/{Https-C3LwivZ6.js → Https-CsiKqkaT.js} +1 -1
- package/dist/assets/{InfoOutlined-Dv-PS_K9.js → InfoOutlined-BUn5fKCT.js} +1 -1
- package/dist/assets/{InputAdornment-BsJrfw9W.js → InputAdornment-DHLm1mFN.js} +1 -1
- package/dist/assets/{InputLabel-3Wx_imEU.js → InputLabel-BjbeXM2B.js} +1 -1
- package/dist/assets/{LastPage-IxsHKdZG.js → LastPage-DXu9ZGZF.js} +1 -1
- package/dist/assets/{Launch-0VxvnuWe.js → Launch-BIqLZtET.js} +1 -1
- package/dist/assets/{Link-D4THmfDH.js → Link-DN_Lz3rV.js} +1 -1
- package/dist/assets/{LoadingButton-kMo-bLLA.js → LoadingButton-3UN68oPJ.js} +1 -1
- package/dist/assets/{LockIcon-DVMXWBuj.js → LockIcon-mC00ojRt.js} +1 -1
- package/dist/assets/{Loop-8YHpWrw7.js → Loop-2BGd9rzF.js} +1 -1
- package/dist/assets/{MoreVert-Dy-UXLSF.js → MoreVert-BCR8irtL.js} +1 -1
- package/dist/assets/{Pagination-CvzuQKWn.js → Pagination-0NPBd4bk.js} +1 -1
- package/dist/assets/{Public-Cy1SlD9D.js → Public-333jCEeA.js} +1 -1
- package/dist/assets/{SchemaReference.es-Wg6qjI2Q.js → SchemaReference.es-oKwgj6eC.js} +1 -1
- package/dist/assets/{Search-CLqP6dSG.js → Search-5iZBDNjz.js} +1 -1
- package/dist/assets/{Select-DacRJUpT.js → Select-CPvSg7uW.js} +1 -1
- package/dist/assets/{Skeleton-B635xq9w.js → Skeleton-B4-1c0OT.js} +1 -1
- package/dist/assets/{Slider-kWM3QD3U.js → Slider-DdynydW3.js} +1 -1
- package/dist/assets/{Stepper-CfMuItAU.js → Stepper-DpooXZzV.js} +1 -1
- package/dist/assets/{TextField-ChYCqgnF.js → TextField-sj2mcEXD.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-D-TzdChr.js → ToggleButtonGroup-BKQ2fKoV.js} +1 -1
- package/dist/assets/{ViewList-C9rEsLfO.js → ViewList-Cul4OAvz.js} +1 -1
- package/dist/assets/actions-ByUCXaaH.js +11 -0
- package/dist/assets/{actions-BwC0xihZ.js → actions-xngcxvp5.js} +1 -1
- package/dist/assets/{agreement-C-3kwpSq.js → agreement-DBRJClMM.js} +1 -1
- package/dist/assets/api-BdOqJGVs.js +1 -0
- package/dist/assets/{app-avatar-CLoA8FKQ.js → app-avatar-DEqDSBYG.js} +1 -1
- package/dist/assets/{audit-logs-CQgLtoSJ.js → audit-logs-BkgPztEs.js} +1 -1
- package/dist/assets/{brace-fold.es-C7pAHsAz.js → brace-fold.es-CsornGfx.js} +1 -1
- package/dist/assets/{bundle-avatar-C0jAIMBi.js → bundle-avatar-DzcvR6DI.js} +1 -1
- package/dist/assets/{chart-CCJil07D.js → chart-CQeRS3mZ.js} +1 -1
- package/dist/assets/{click-to-copy-BxRY2T53.js → click-to-copy-CBs5PKxt.js} +1 -1
- package/dist/assets/{closebrackets.es-CW-znL7B.js → closebrackets.es-5NAqcDxa.js} +1 -1
- package/dist/assets/{codemirror.es-BCKCN0pa.js → codemirror.es-CEoouqN7.js} +1 -1
- package/dist/assets/{comment.es--JXaP270.js → comment.es-DX01jrAI.js} +1 -1
- package/dist/assets/{config-navigation-9U1-i3qG.js → config-navigation-Ngw7D7GZ.js} +1 -1
- package/dist/assets/{delete-confirm-Cu52-w9K.js → delete-confirm-Da1BomBl.js} +1 -1
- package/dist/assets/{detail-TSZFt17G.js → detail-CaMUtLL5.js} +3 -3
- package/dist/assets/{dialog.es-DdP5pxPG.js → dialog.es-Oh6qpXQO.js} +1 -1
- package/dist/assets/{download-BTNda_FN.js → download-DHPNYF1S.js} +1 -1
- package/dist/assets/{foldgutter.es-gix6KVwn.js → foldgutter.es-DqR5-lAT.js} +1 -1
- package/dist/assets/getValidReactChildren-B_HEoXEd.js +1 -0
- package/dist/assets/{hint.es-BkoxNExU.js → hint.es-D5LvE1_r.js} +1 -1
- package/dist/assets/{hint.es2-D0UclqLD.js → hint.es2-CgI0iRUf.js} +1 -1
- package/dist/assets/{iframe-Dry0Q1RC.js → iframe-BcDoraJg.js} +1 -1
- package/dist/assets/{index-DdYi7g5A.js → index--Q6KdM7v.js} +1 -1
- package/dist/assets/{index-DZ38lcnS.js → index-3vcNDYsD.js} +1 -1
- package/dist/assets/{index-Z23xnW60.js → index-4SJGeyEI.js} +1 -1
- package/dist/assets/{index-CV5o0SmN.js → index-B-OHtxJg.js} +5 -5
- package/dist/assets/{index-CZxztyyO.js → index-B6ReOJJN.js} +1 -1
- package/dist/assets/{index-DyLmBsrc.js → index-B7-XNbV9.js} +1 -1
- package/dist/assets/{index-D4mUNiA3.js → index-BCPsngBN.js} +1 -1
- package/dist/assets/{index-Cybcu3bZ.js → index-BCQQEHyP.js} +1 -1
- package/dist/assets/{index-CJjmaZOb.js → index-BMkbX5aS.js} +1 -1
- package/dist/assets/{index-nk7Jeg9T.js → index-BPEtPX12.js} +1 -1
- package/dist/assets/{index-58xom0se.js → index-BXmzbebA.js} +1 -1
- package/dist/assets/{index-CwvvU6sG.js → index-B_M-nPU6.js} +1 -1
- package/dist/assets/{index-DHy7fnHK.js → index-BgqVsUwi.js} +1 -1
- package/dist/assets/{index-cto27BjI.js → index-Boqyvc8Q.js} +2 -2
- package/dist/assets/{index-BPb4u19B.js → index-Bvs8qR9r.js} +1 -1
- package/dist/assets/{index-DdImsIrU.js → index-BwcFSka9.js} +1 -1
- package/dist/assets/{index-CcI2gztc.js → index-C7GDLIo-.js} +1 -1
- package/dist/assets/{index-CpMrB60J.js → index-CAH8ukaj.js} +3 -3
- package/dist/assets/{index-Bq3EqJlL.js → index-CBdVDTUr.js} +1 -1
- package/dist/assets/{index-fzAzVQZ7.js → index-CWilKNfl.js} +1 -1
- package/dist/assets/{index-CLLusFhD.js → index-Cl7gQviA.js} +1 -1
- package/dist/assets/{index-RXFOkpdO.js → index-CsVg93BX.js} +1 -1
- package/dist/assets/{index-DHBWVWpd.js → index-CtWm5SK6.js} +1 -1
- package/dist/assets/{index-ByTAZBnH.js → index-Ct_q9GS4.js} +1 -1
- package/dist/assets/{index-MraPT5rJ.js → index-D81FDm0a.js} +1 -1
- package/dist/assets/{index-BYxU5EuJ.js → index-DC46OSan.js} +1 -1
- package/dist/assets/{index-tCtD2xpl.js → index-DMKpICI6.js} +1 -1
- package/dist/assets/{index-C6Wak-Bp.js → index-DPGsh5ca.js} +1 -1
- package/dist/assets/{index-D2aPyZEh.js → index-DV-pE5RI.js} +3 -3
- package/dist/assets/{index-CPsoyw3K.js → index-DY9g7uAE.js} +1 -1
- package/dist/assets/{index-CivlhCtE.js → index-DZnZf-o0.js} +1 -1
- package/dist/assets/{index-C9snPGrA.js → index-DdxWI-QG.js} +1 -1
- package/dist/assets/{index-D1IHJL8V.js → index-DoMsU5M2.js} +1 -1
- package/dist/assets/{index-udgf9h3j.js → index-DuwHJNV9.js} +1 -1
- package/dist/assets/{index-7VEn8pMG.js → index-DwOVPSU7.js} +1 -1
- package/dist/assets/{index-4SekL7Au.js → index-DycwPjM3.js} +1 -1
- package/dist/assets/{index-BkfzVG1e.js → index-Mr6j5sdU.js} +1 -1
- package/dist/assets/{index-BmYduQjf.js → index-PDofIfka.js} +1 -1
- package/dist/assets/{index-MgqsR5Yr.js → index-RlfSCcPa.js} +1 -1
- package/dist/assets/{index-BOyFzt02.js → index-_NTV4-zc.js} +1 -1
- package/dist/assets/{index-DKleljgS.js → index-eGpwmK92.js} +1 -1
- package/dist/assets/{index-DYIWxxvc.js → index-opBznRc5.js} +1 -1
- package/dist/assets/{index-D1qmIEQe.js → index-zUZPbg2I.js} +1 -1
- package/dist/assets/{index.es-VZygEdns.js → index.es-C_vrKJwx.js} +1 -1
- package/dist/assets/{index.esm-Bpp1W-0n.js → index.esm-Cnicyd3_.js} +1 -1
- package/dist/assets/{info-addon.es-Dz55t6aF.js → info-addon.es-B0sGOwNz.js} +1 -1
- package/dist/assets/{info.es-DlvBMDVd.js → info.es-x51I_2sm.js} +1 -1
- package/dist/assets/{install-from-url-BfQGdJqB.js → install-from-url-Cnfp9xqR.js} +1 -1
- package/dist/assets/{invitation-Db4MC3JQ.js → invitation-B30vIvMt.js} +1 -1
- package/dist/assets/{isEqual-SGvPf73-.js → isEqual-DbZp5EUk.js} +1 -1
- package/dist/assets/{item-BftAM0Zi.js → item-BdJl6I8q.js} +1 -1
- package/dist/assets/{javascript.es-BNj6-t-x.js → javascript.es-AOt9muQq.js} +1 -1
- package/dist/assets/{jump-to-line.es-DgFeCONV.js → jump-to-line.es-p4ynQoBS.js} +1 -1
- package/dist/assets/{jump.es-DW68RHsu.js → jump.es-BrSOPKg0.js} +1 -1
- package/dist/assets/{line-1yBH41Wd.js → line-DdSLBn8H.js} +3 -3
- package/dist/assets/{lint.es-DmdHzCyK.js → lint.es-BMdrvXUs.js} +1 -1
- package/dist/assets/{lint.es2-CgJGCOHv.js → lint.es2-DX4OlyGK.js} +1 -1
- package/dist/assets/{lint.es3-BL6uCIJs.js → lint.es3-BYQCiNDn.js} +1 -1
- package/dist/assets/{list-header-CwzHI2Rt.js → list-header-BnipX_Rp.js} +1 -1
- package/dist/assets/{log-Ec_QJxk0.js → log-i4SQ4Z0y.js} +1 -1
- package/dist/assets/{lottie-LUS1MfCT.js → lottie-BYxFXW-g.js} +1 -1
- package/dist/assets/{matchbrackets.es-CHrUGVwe.js → matchbrackets.es-aeJus3PD.js} +1 -1
- package/dist/assets/{memory-yOjaiNVs.js → memory-Cu-5WL0k.js} +1 -1
- package/dist/assets/{mode.es-CmPIaKTd.js → mode.es-CXfOP3-9.js} +1 -1
- package/dist/assets/{mode.es2-CpVpeZ6j.js → mode.es2-DOeKit6c.js} +1 -1
- package/dist/assets/{mode.es3-BhW-mRJe.js → mode.es3-8pUUSOKg.js} +1 -1
- package/dist/assets/{onlineParser.es-DLbzJOgY.js → onlineParser.es-Bsw_5f31.js} +1 -1
- package/dist/assets/{overview-BjZwvO3w.js → overview-CnuzNSfm.js} +1 -1
- package/dist/assets/{react-BX905qse.js → react-BU7lI6gg.js} +3 -3
- package/dist/assets/{redux-BfgfWfKE.js → redux-07bmubSg.js} +1 -1
- package/dist/assets/{resource-dialog-D46mQ3iv.js → resource-dialog-Co295aU2.js} +1 -1
- package/dist/assets/{runtime-BudjolOf.js → runtime-CW-W-Oej.js} +1 -1
- package/dist/assets/{search.es-J1x6rp7i.js → search.es-ByHwIa0U.js} +1 -1
- package/dist/assets/{searchcursor.es-DGZQjnVx.js → searchcursor.es-CsQOLBoo.js} +1 -1
- package/dist/assets/service-DNZLEaeT.js +1 -0
- package/dist/assets/{show-hint.es-DgCG1PfH.js → show-hint.es-BY2B9aLR.js} +1 -1
- package/dist/assets/{slicedToArray-j5L_xxoK.js → slicedToArray-BwJA6b7k.js} +1 -1
- package/dist/assets/{spaces-BzjtPxcp.js → spaces-CGO2dSgv.js} +1 -1
- package/dist/assets/{sublime.es-BmvW8WLk.js → sublime.es-DZOyVbIC.js} +1 -1
- package/dist/assets/{switch-control-2xhJNPLI.js → switch-control-D1Iqbf5D.js} +1 -1
- package/dist/assets/{table-icons-DNH5IpNS.js → table-icons-CB9vK-gH.js} +2 -2
- package/dist/assets/{tag-DwIjrotQ.js → tag-CANB-Fll.js} +1 -1
- package/dist/assets/{team-Bds6tH0s.js → team-rrZYIohT.js} +1 -1
- package/dist/assets/{toUpper-DmN3YmMF.js → toUpper-D0HPBfn5.js} +1 -1
- package/dist/assets/{traffic-DRJFVCky.js → traffic-CmQ-j2sa.js} +1 -1
- package/dist/assets/{url-evaluation-Dw2A031X.js → url-evaluation-DymLev_N.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-CWFXmzXz.js → use-blocklet-info-for-connect-did-spaces-YWN8QaVT.js} +1 -1
- package/dist/assets/{useLocalStorage-C7ck6rDl.js → useLocalStorage-BNvbpN9F.js} +1 -1
- package/dist/assets/{util-BHhvzew-.js → util-CRUZQ4-B.js} +1 -1
- package/dist/assets/{wait-container-DrkB9Qje.js → wait-container-mYVBI-ZE.js} +1 -1
- package/dist/assets/{withStyles-DQBIFjtv.js → withStyles-CSLQqeaB.js} +1 -1
- package/dist/assets/{wrap-locale-BMwksOY3.js → wrap-locale-B076jNc7.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/DeleteOutline-CfcGLGyQ.js +0 -1
- package/dist/assets/actions-DLUCcZnb.js +0 -11
- package/dist/assets/api-Dg1aNjni.js +0 -1
- package/dist/assets/getValidReactChildren-BSSAKXXh.js +0 -1
- package/dist/assets/service-1xIndkC2.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__fileDeps=["./overview-
|
|
2
|
-
import{q as Te,t as qt,bm as M,r as m,F as V,j as p,J as Ye,Q as te,B as Ze,x as Ht,bn as Kt,M as Ae,A as O,K as ie,bo as Qt,a0 as Be,bp as ce,b as ye,P as Wt,bh as et,bq as P,z as Jt,u as Xt,br as de,N as Yt,bs as Zt,bt as en,bu as Fe,X as Ue,C as Ve,O as tn,bv as nn,m as pe,V as on,n as sn,bw as rn}from"./index-
|
|
1
|
+
const __vite__fileDeps=["./overview-CnuzNSfm.js","./index-Boqyvc8Q.js","./index-D7K8de1w.css","./index-B6ReOJJN.js","./team-rrZYIohT.js","./url-evaluation-DymLev_N.js","./Delete-h8Ye2r4b.js","./tag-CANB-Fll.js","./Add-DOwN6I9N.js","./LockIcon-mC00ojRt.js","./index-BXmzbebA.js","./Https-CsiKqkaT.js","./InfoOutlined-BUn5fKCT.js","./index-C7GDLIo-.js","./api-BdOqJGVs.js","./util-CRUZQ4-B.js","./TextField-sj2mcEXD.js","./Select-CPvSg7uW.js","./InputLabel-BjbeXM2B.js","./LoadingButton-3UN68oPJ.js","./actions-xngcxvp5.js","./index-DdxWI-QG.js","./iframe-BcDoraJg.js","./line-DdSLBn8H.js","./Done-DaMxTX7e.js","./EditIcon-BQGlXOR3.js","./ArrowDropDown-CEsdzzcK.js","./ButtonGroup-CKY0O7tT.js","./getValidReactChildren-B_HEoXEd.js","./index-DC46OSan.js","./ChevronRight-B2YICLYm.js","./index-zUZPbg2I.js","./bundle-avatar-DzcvR6DI.js","./app-avatar-DEqDSBYG.js","./isEqual-DbZp5EUk.js","./Loop-2BGd9rzF.js","./Autocomplete-DcC19-q2.js","./mode-B2dWMeTO.js","./Public-333jCEeA.js","./click-to-copy-CBs5PKxt.js","./index-D81FDm0a.js","./index.esm-Cnicyd3_.js","./Launch-BIqLZtET.js","./Edit-B1ySEana.js","./actions-ByUCXaaH.js","./useLocalStorage-BNvbpN9F.js","./MoreVert-BCR8irtL.js","./index-_NTV4-zc.js","./redux-07bmubSg.js","./switch-control-D1Iqbf5D.js","./Slider-DdynydW3.js","./index-CtWm5SK6.js","./FilterList-DKFhXHd2.js","./LastPage-DXu9ZGZF.js","./Search-5iZBDNjz.js","./index-DPGsh5ca.js","./index-DU3JORH0.css","./config-navigation-Ngw7D7GZ.js","./slicedToArray-BwJA6b7k.js","./index-BgqVsUwi.js","./InputAdornment-DHLm1mFN.js","./index-BPEtPX12.js","./Skeleton-B4-1c0OT.js","./audit-logs-BkgPztEs.js","./index-DycwPjM3.js","./index-D4PP6P2d.css","./Pagination-0NPBd4bk.js","./index-CWilKNfl.js","./index-RlfSCcPa.js","./list-header-BnipX_Rp.js","./Google-D2cPndsH.js","./index-BCPsngBN.js","./index-eGpwmK92.js","./ToggleButtonGroup-BKQ2fKoV.js","./index-BCQQEHyP.js","./ViewList-Cul4OAvz.js","./resource-dialog-Co295aU2.js","./index--Q6KdM7v.js","./service-DNZLEaeT.js","./table-icons-CB9vK-gH.js","./ChevronLeft-DRzRLgnp.js","./DeleteOutline-ClZ-ABF-.js","./memoize-one.esm-BdPwpGay.js","./index-3vcNDYsD.js","./agreement-DBRJClMM.js","./Link-DN_Lz3rV.js","./item-BdJl6I8q.js","./preact.module-B1z5cdvs.js","./DeleteOutline-C-1A8rVu.js","./delete-confirm-Da1BomBl.js","./item-CxkJY_14.css","./index-Bvs8qR9r.js","./Close-D9SKZkJ7.js","./lottie-BYxFXW-g.js","./toUpper-D0HPBfn5.js","./spaces-CGO2dSgv.js","./install-from-url-Cnfp9xqR.js","./Stepper-DpooXZzV.js","./use-blocklet-info-for-connect-did-spaces-YWN8QaVT.js","./Breadcrumbs-f87TWJgq.js","./log-i4SQ4Z0y.js","./download-DHPNYF1S.js","./download-D33dFtt_.css","./runtime-CW-W-Oej.js","./memory-Cu-5WL0k.js","./chart-CQeRS3mZ.js","./traffic-CmQ-j2sa.js","./index-DY9g7uAE.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{q as Te,t as qt,bm as M,r as m,F as V,j as p,J as Ye,Q as te,B as Ze,x as Ht,bn as Kt,M as Ae,A as O,K as ie,bo as Qt,a0 as Be,bp as ce,b as ye,P as Wt,bh as et,bq as P,z as Jt,u as Xt,br as de,N as Yt,bs as Zt,bt as en,bu as Fe,X as Ue,C as Ve,O as tn,bv as nn,m as pe,V as on,n as sn,bw as rn}from"./index-Boqyvc8Q.js";import{T as cn}from"./index-zUZPbg2I.js";import{B as an}from"./url-evaluation-DymLev_N.js";import{D as ln,B as un}from"./actions-ByUCXaaH.js";import{B as fn}from"./app-avatar-DEqDSBYG.js";import{u as R,B as dn,a as pn,T as hn}from"./team-rrZYIohT.js";import{a as mn,b as gn}from"./spaces-CGO2dSgv.js";import{B as yn}from"./Breadcrumbs-f87TWJgq.js";/**
|
|
3
3
|
* (c) Iconify
|
|
4
4
|
*
|
|
5
5
|
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
@@ -9,7 +9,7 @@ import{q as Te,t as qt,bm as M,r as m,F as V,j as p,J as Ye,Q as te,B as Ze,x as
|
|
|
9
9
|
*
|
|
10
10
|
* @license MIT
|
|
11
11
|
* @version 3.1.1
|
|
12
|
-
*/const tt=Object.freeze({left:0,top:0,width:16,height:16}),ne=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),K=Object.freeze({...tt,...ne}),be=Object.freeze({...K,body:"",hidden:!1});function bn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function ze(e,t){const n=bn(e,t);for(const o in be)o in ne?o in e&&!(o in n)&&(n[o]=ne[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function vn(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function r(i){if(n[i])return s[i]=[];if(!(i in s)){s[i]=null;const c=o[i]&&o[i].parent,a=c&&r(c);a&&(s[i]=[c].concat(a))}return s[i]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(r),s}function xn(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let r={};function i(c){r=ze(o[c]||s[c],r)}return i(t),n.forEach(i),ze(e,r)}function nt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const o=vn(e);for(const s in o){const r=o[s];r&&(t(s,xn(e,s,r)),n.push(s))}return n}const z=/^[a-z0-9]+(-[a-z0-9]+)*$/,F=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),a=s.pop(),l={provider:s.length>0?s[0]:o,prefix:a,name:c};return t&&!Z(l)?null:l}const r=s[0],i=r.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!Z(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:r};return t&&!Z(c,n)?null:c}return null},Z=(e,t)=>e?!!((e.provider===""||e.provider.match(z))&&(t&&e.prefix===""||e.prefix.match(z))&&e.name.match(z)):!1,Sn={provider:"",aliases:{},not_found:{},...tt};function he(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ot(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!he(e,Sn))return null;const n=t.icons;for(const s in n){const r=n[s];if(!s.match(z)||typeof r.body!="string"||!he(r,be))return null}const o=t.aliases||Object.create(null);for(const s in o){const r=o[s],i=r.parent;if(!s.match(z)||typeof i!="string"||!n[i]&&!o[i]||!he(r,be))return null}return t}const oe=Object.create(null);function wn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function T(e,t){const n=oe[e]||(oe[e]=Object.create(null));return n[t]||(n[t]=wn(e,t))}function je(e,t){return ot(t)?nt(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function kn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function In(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(oe)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(oe[s]||{})).forEach(i=>{const c=T(s,i);n=n.concat(Object.keys(c.icons).map(a=>(s!==""?"@"+s+":":"")+i+":"+a))})}),n}let q=!1;function Cn(e){return typeof e=="boolean"&&(q=e),q}function Q(e){const t=typeof e=="string"?F(e,!0,q):e;if(t){const n=T(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function st(e,t){const n=F(e,!0,q);if(!n)return!1;const o=T(n.provider,n.prefix);return kn(o,n.name,t)}function rt(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),q&&!t&&!e.prefix){let s=!1;return ot(e)&&(e.prefix="",nt(e,(r,i)=>{i&&st(r,i)&&(s=!0)})),s}const n=e.prefix;if(!Z({provider:t,prefix:n,name:"a"}))return!1;const o=T(t,n);return!!je(o,e)}function En(e){return!!Q(e)}function Pn(e){const t=Q(e);return t?{...K,...t}:null}const it=Object.freeze({width:null,height:null}),ct=Object.freeze({...it,...ne}),_n=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Tn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ve(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(_n);if(o===null||!o.length)return e;const s=[];let r=o.shift(),i=Tn.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?s.push(r):s.push(Math.ceil(c*t*n)/n)}else s.push(r);if(r=o.shift(),r===void 0)return s.join("");i=!i}}const An=e=>e==="unset"||e==="undefined"||e==="none";function ae(e,t){const n={...K,...e},o={...ct,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach(v=>{const x=[],C=v.hFlip,S=v.vFlip;let w=v.rotate;C?S?w+=2:(x.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),x.push("scale(-1 1)"),s.top=s.left=0):S&&(x.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),x.push("scale(1 -1)"),s.top=s.left=0);let k;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:k=s.height/2+s.top,x.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:x.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:k=s.width/2+s.left,x.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}w%2===1&&(s.left!==s.top&&(k=s.left,s.left=s.top,s.top=k),s.width!==s.height&&(k=s.width,s.width=s.height,s.height=k)),x.length&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=o.width,c=o.height,a=s.width,l=s.height;let u,d;i===null?(d=c===null?"1em":c==="auto"?l:c,u=ve(d,a/l)):(u=i==="auto"?a:i,d=c===null?ve(u,l/a):c==="auto"?l:c);const f={},y=(v,x)=>{An(x)||(f[v]=x.toString())};return y("width",u),y("height",d),f.viewBox=s.left.toString()+" "+s.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:f,body:r}}const Bn=/\sid="(\S+)"/g,jn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let On=0;function at(e,t=jn){const n=[];let o;for(;o=Bn.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(On++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const D={local:!0,session:!0},lt={local:new Set,session:new Set};let Oe=!1;function Dn(e){Oe=e}const $e="iconify2",H="iconify",ut=H+"-count",Ge=H+"-version",ft=36e5,Ln=168;function xe(e,t){try{return e.getItem(t)}catch{}}function De(e,t,n){try{return e.setItem(t,n),!0}catch{}}function qe(e,t){try{e.removeItem(t)}catch{}}function Se(e,t){return De(e,ut,t.toString())}function we(e){return parseInt(xe(e,ut))||0}let X=typeof window>"u"?{}:window;function dt(e){const t=e+"Storage";try{if(X&&X[t]&&typeof X[t].length=="number")return X[t]}catch{}D[e]=!1}function pt(e,t){const n=dt(e);if(!n)return;const o=xe(n,Ge);if(o!==$e){if(o){const c=we(n);for(let a=0;a<c;a++)qe(n,H+a.toString())}De(n,Ge,$e),Se(n,0);return}const s=Math.floor(Date.now()/ft)-Ln,r=c=>{const a=H+c.toString(),l=xe(n,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>s&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}qe(n,a)}};let i=we(n);for(let c=i-1;c>=0;c--)r(c)||(c===i-1?(i--,Se(n,i)):lt[e].add(c))}function ht(){if(!Oe){Dn(!0);for(const e in D)pt(e,t=>{const n=t.data,o=t.provider,s=n.prefix,r=T(o,s);if(!je(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function mt(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ke=Object.create(null);function gt(e,t){ke[e]=t}function Ie(e){return ke[e]||ke[""]}function Le(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const le=Object.create(null),U=["https://api.simplesvg.com","https://api.unisvg.com"],ee=[];for(;U.length>0;)U.length===1||Math.random()>.5?ee.push(U.shift()):ee.push(U.pop());le[""]=Le({resources:["https://api.iconify.design"].concat(ee)});function yt(e,t){const n=Le(t);return n===null?!1:(le[e]=n,!0)}function ue(e){return le[e]}function Mn(){return Object.keys(le)}const Nn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let se=Nn();function Rn(e){se=e}function Fn(){return se}function Un(e,t){const n=ue(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(i=>{s=Math.max(s,i.length)});const r=t+".json?icons=";o=n.maxURL-s-n.path.length-r.length}return o}function Vn(e){return e===404}const zn=(e,t,n)=>{const o=[],s=Un(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,l)=>{c+=a.length+1,c>=s&&l>0&&(o.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),o.push(i),o};function $n(e){if(typeof e=="string"){const t=ue(e);if(t)return t.path}return"/"}const Gn=(e,t,n)=>{if(!se){n("abort",424);return}let o=$n(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});o+=r+".json?"+a.toString();break}case"custom":{const r=t.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let s=503;se(e+o).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(Vn(i)?"abort":"next",i)});return}return s=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",s)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",s)})},qn={prepare:zn,send:Gn};function Hn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,r)=>s.provider!==r.provider?s.provider.localeCompare(r.provider):s.prefix!==r.prefix?s.prefix.localeCompare(r.prefix):s.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const r=s.provider,i=s.prefix,c=s.name,a=n[r]||(n[r]=Object.create(null)),l=a[i]||(a[i]=T(r,i));let u;c in l.icons?u=t.loaded:i===""||l.missing.has(c)?u=t.missing:u=t.pending;const d={provider:r,prefix:i,name:c};u.push(d)}),t}function bt(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function Kn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,s=e.prefix;t.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==s)return!0;const l=a.name;if(e.icons[l])i.loaded.push({provider:o,prefix:s,name:l});else if(e.missing.has(l))i.missing.push({provider:o,prefix:s,name:l});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||bt([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Qn=0;function Wn(e,t,n){const o=Qn++,s=bt.bind(null,n,o);if(!t.pending.length)return s;const r={id:o,icons:t,callback:e,abort:s};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),s}function Jn(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const r=typeof s=="string"?F(s,t,n):s;r&&o.push(r)}),o}var Xn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Yn(e,t,n,o){const s=e.resources.length,r=e.random?Math.floor(Math.random()*s):e.index;let i;if(e.random){let g=e.resources.slice(0);for(i=[];g.length>1;){const I=Math.floor(Math.random()*g.length);i.push(g[I]),g=g.slice(0,I).concat(g.slice(I+1))}i=i.concat(g)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let a="pending",l=0,u,d=null,f=[],y=[];typeof o=="function"&&y.push(o);function v(){d&&(clearTimeout(d),d=null)}function x(){a==="pending"&&(a="aborted"),v(),f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function C(g,I){I&&(y=[]),typeof g=="function"&&y.push(g)}function S(){return{startTime:c,payload:t,status:a,queriesSent:l,queriesPending:f.length,subscribe:C,abort:x}}function w(){a="failed",y.forEach(g=>{g(void 0,u)})}function k(){f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function B(g,I,b){const _=I!=="success";switch(f=f.filter(E=>E!==g),a){case"pending":break;case"failed":if(_||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=b,w();return}if(_){u=b,f.length||(i.length?j():w());return}if(v(),k(),!e.random){const E=e.resources.indexOf(g.resource);E!==-1&&E!==e.index&&(e.index=E)}a="completed",y.forEach(E=>{E(b)})}function j(){if(a!=="pending")return;v();const g=i.shift();if(g===void 0){if(f.length){d=setTimeout(()=>{v(),a==="pending"&&(k(),w())},e.timeout);return}w();return}const I={status:"pending",resource:g,callback:(b,_)=>{B(I,b,_)}};f.push(I),l++,d=setTimeout(j,e.rotate),n(g,t,I.callback)}return setTimeout(j),S}function vt(e){const t={...Xn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,a,l){const u=Yn(t,c,a,(d,f)=>{o(),l&&l(d,f)});return n.push(u),u}function r(c){return n.find(a=>c(a))||null}return{query:s,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function He(){}const me=Object.create(null);function Zn(e){if(!me[e]){const t=ue(e);if(!t)return;const n=vt(t),o={config:t,redundancy:n};me[e]=o}return me[e]}function xt(e,t,n){let o,s;if(typeof e=="string"){const r=Ie(e);if(!r)return n(void 0,424),He;s=r.send;const i=Zn(e);i&&(o=i.redundancy)}else{const r=Le(e);if(r){o=vt(r);const i=e.resources?e.resources[0]:"",c=Ie(i);c&&(s=c.send)}}return!o||!s?(n(void 0,424),He):o.query(t,s,n)().abort}function eo(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in D)pt(o,s=>{const r=s.data;return s.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function to(e,t){Oe||ht();function n(o){let s;if(!D[o]||!(s=dt(o)))return;const r=lt[o];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=we(s),!Se(s,i+1))return;const c={cached:Math.floor(Date.now()/ft),provider:e.provider,data:t};return De(s,H+i.toString(),JSON.stringify(c))}t.lastModified&&!eo(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ke(){}function no(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Kn(e)}))}function oo(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,s=e.iconsToLoad;delete e.iconsToLoad;let r;if(!s||!(r=Ie(n)))return;r.prepare(n,o,s).forEach(c=>{xt(n,c,a=>{if(typeof a!="object")c.icons.forEach(l=>{e.missing.add(l)});else try{const l=je(e,a);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),to(e,a)}catch(l){console.error(l)}no(e)})})}))}const so=e=>{const n=T(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Me=(e,t)=>{const n=Jn(e,!0,Cn()),o=Hn(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,Ke)}),()=>{a=!1}}const s=Object.create(null),r=[];let i,c;return o.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===c&&l===i)return;i=l,c=u,r.push(T(l,u));const d=s[l]||(s[l]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(a=>{const{provider:l,prefix:u,name:d}=a,f=T(l,u),y=f.pendingIcons||(f.pendingIcons=new Set);y.has(d)||(y.add(d),s[l][u].push(d))}),r.forEach(a=>{const{provider:l,prefix:u}=a;s[l][u].length&&oo(a,s[l][u])}),t?Wn(t,o,r):Ke},ro=e=>new Promise((t,n)=>{const o=typeof e=="string"?F(e,!0):e;if(!o){n(e);return}Me([o||e],s=>{if(s.length&&o){const r=Q(o);if(r){t({...K,...r});return}}n(e)})});function St(e,t){const n={...e};for(const o in t){const s=t[o],r=typeof s;o in it?(s===null||s&&(r==="string"||r==="number"))&&(n[o]=s):r===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const fe={...ct,inline:!1},ge="iconify",Ce="iconify-inline",A="iconifyData"+Date.now();let L=[];function W(e){for(let t=0;t<L.length;t++){const n=L[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function wt(e,t=!1){let n=W(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},L.push(n),n)}function io(){if(document.documentElement)return wt(document.documentElement);L.push({node:()=>document.documentElement})}function co(e){L=L.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function J(){return L}function ao(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let $=null;const lo={childList:!0,subtree:!0,attributes:!0};function kt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,$&&$(e)}))}function uo(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const s=t[o];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[A]!==void 0){n.paused||kt(e);return}}}function It(e,t){e.observer.instance.observe(t,lo)}function re(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(uo.bind(null,e)),It(e,n),t.paused||kt(e))}function Qe(){J().forEach(re)}function Ct(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function fo(e){const t=$!==null;if($!==e&&($=e,t&&J().forEach(Ct)),t){Qe();return}ao(Qe)}function Ee(e){(e?[e]:J()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function po(e){if(e){const t=W(e);t&&Ee(t)}else Ee()}function Pe(e){(e?[e]:J()).forEach(t=>{if(!t.observer){re(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?It(t,o):re(t);else return}})}function ho(e){if(e){const t=W(e);t&&Pe(t)}else Pe()}function Et(e,t=!1){const n=wt(e,t);return re(n),n}function Pt(e){const t=W(e);t&&(Ct(t),co(e))}function mo(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const s in fe)if(n[s]!==o[s])return!0;return!1}function go(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/s,r%1===0?o(r):0)}}return t}const yo=/[\s,]+/;function bo(e,t){t.split(yo).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const vo=["width","height"],xo=["inline","hFlip","vFlip"];function So(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function wo(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&F(t,!0);if(!n)return null;const o={...fe,inline:e.classList&&e.classList.contains(Ce)};vo.forEach(c=>{const a=e.getAttribute("data-"+c);a&&(o[c]=a)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(o.rotate=go(s));const r=e.getAttribute("data-flip");typeof r=="string"&&bo(o,r),xo.forEach(c=>{const a="data-"+c,l=So(e.getAttribute(a),a);typeof l=="boolean"&&(o[c]=l)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const ko="svg."+ge+", i."+ge+", span."+ge+", i."+Ce+", span."+Ce;function Io(e){const t=[];return e.querySelectorAll(ko).forEach(n=>{const o=n[A]||n.tagName.toLowerCase()!=="svg"?wo(n):null;o&&t.push({node:n,props:o})}),t}function _t(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let G;function Co(){try{G=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{G=null}}function Eo(e){return G===void 0&&Co(),G?G.createHTML(e):e}function Tt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function At(e,t,n,o){const s=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{s.add(c)})}const r=[];return t.forEach(i=>{s.contains(i)?n.has(i)&&r.push(i):(s.add(i),r.push(i))}),n.forEach(i=>{t.has(i)||s.remove(i)}),r}function Bt(e,t,n){const o=e.style;(n||[]).forEach(r=>{o.removeProperty(r)});const s=[];for(const r in t)o.getPropertyValue(r)||(s.push(r),o.setProperty(r,t[r]));return s}function jt(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const s=t.customisations,r=ae(n,s),i=e[A],c=_t(at(r.body),{"aria-hidden":"true",role:"img",...r.attributes});o.innerHTML=Eo(c);const a=o.childNodes[0],l=e.attributes;for(let v=0;v<l.length;v++){const x=l.item(v),C=x.name;C!=="class"&&!a.hasAttribute(C)&&a.setAttribute(C,x.value)}const u=Tt(t.icon),d=At(a,u,new Set(i&&i.addedClasses),e),f=Bt(a,s.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),y={...t,status:"loaded",addedClasses:d,addedStyles:f};return a[A]=y,e.parentNode&&e.parentNode.replaceChild(a,e),a}function Po(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _o(e){return"data:image/svg+xml,"+Po(e)}function To(e){return'url("'+_o(e)+'")'}const Ao={display:"inline-block"},_e={"background-color":"currentColor"},Ot={"background-color":"transparent"},We={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Je={"-webkit-mask":_e,mask:_e,background:Ot};for(const e in Je){const t=Je[e];for(const n in We)t[e+"-"+n]=We[n]}function Xe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Bo(e,t,n,o){const s=t.customisations,r=ae(n,s),i=r.attributes,c=e[A],a=_t(r.body,{...i,width:n.width+"",height:n.height+""}),l=Tt(t.icon),u=At(e,l,new Set(c&&c.addedClasses)),f={"--svg":To(a),width:Xe(i.width),height:Xe(i.height),...Ao,...o?_e:Ot};s.inline&&(f["vertical-align"]="-0.125em");const y=Bt(e,f,c&&c.addedStyles),v={...t,status:"loaded",addedClasses:u,addedStyles:y};return e[A]=v,e}let Y=!1;function jo(){Y||(Y=!0,setTimeout(()=>{Y&&(Y=!1,N())}))}function N(e,t=!1){const n=Object.create(null);function o(s,r){const{provider:i,prefix:c,name:a}=s,l=T(i,c),u=l.icons[a];if(u)return{status:"loaded",icon:u};if(l.missing.has(a))return{status:"missing"};if(r&&!so(s)){const d=n[i]||(n[i]=Object.create(null));(d[c]||(d[c]=new Set)).add(a)}return{status:"loading"}}(e?[e]:J()).forEach(s=>{const r=typeof s.node=="function"?s.node():s.node;if(!r||!r.querySelectorAll)return;let i=!1,c=!1;function a(l,u,d){if(c||(c=!0,Ee(s)),l.tagName.toUpperCase()!=="SVG"){const f=u.mode,y=f==="mask"||(f==="bg"?!1:f==="style"?d.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){Bo(l,u,{...K,...d},y);return}}jt(l,u,d)}Io(r).forEach(({node:l,props:u})=>{const d=l[A];if(!d){const{status:y,icon:v}=o(u.icon,!0);if(v){a(l,u,v);return}i=i||y==="loading",l[A]={...u,status:y};return}let f;if(mo(d,u)){if(f=o(u.icon,d.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(d,{...u,status:f.status});return}}else{if(d.status!=="loading")return;if(f=o(u.icon,!1),!f.icon){d.status=f.status;return}}a(l,u,f.icon)}),s.temporary&&!i?Pt(r):t&&i?Et(r,!0):c&&s.observer&&Pe(s)});for(const s in n){const r=n[s];for(const i in r){const c=r[i];Me(Array.from(c).map(a=>({provider:s,prefix:i,name:a})),jo)}}}function Oo(e){const t=W(e);t?N(t):N({node:e,temporary:!0},!0)}function Dt(e,t,n=!1){const o=Q(e);if(!o)return null;const s=F(e),r=St(fe,t||{}),i=jt(document.createElement("span"),{name:e,icon:s,customisations:r},o);return n?i.outerHTML:i}function Do(){return"3.1.1"}function Lo(e,t){return Dt(e,t,!1)}function Mo(e,t){return Dt(e,t,!0)}function No(e,t){const n=Q(e);if(!n)return null;const o=St(fe,t||{});return ae(n,o)}function Ro(e){e?Oo(e):N()}if(typeof document<"u"&&typeof window<"u"){io();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!rt(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{fo(N),N()})}function Fo(e,t){mt(e,t!==!1)}function Uo(e){mt(e,!0)}gt("",qn);if(typeof document<"u"&&typeof window<"u"){ht();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;yt(n,s)||console.error(o)}catch{console.error(o)}}}}const Vo={getAPIConfig:ue,setAPIModule:gt,sendAPIQuery:xt,setFetch:Rn,getFetch:Fn,listAPIProviders:Mn},zo={_api:Vo,addAPIProvider:yt,loadIcons:Me,loadIcon:ro,iconExists:En,getIcon:Pn,listIcons:In,addIcon:st,addCollection:rt,replaceIDs:at,calculateSize:ve,buildIcon:ae,getVersion:Do,renderSVG:Lo,renderHTML:Mo,renderIcon:No,scan:Ro,observe:Et,stopObserving:Pt,pauseObserver:po,resumeObserver:ho,enableCache:Fo,disableCache:Uo};try{self.Iconify===void 0&&(self.Iconify=zo)}catch{}const $o=e=>{const t={};let n=null;return Qt(e,o=>{t[o.meta.bundleDid]?n=Ae(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},Go=(e,t,n)=>{var r;const{hostname:o,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return s;const a=c[0],u=((((r=t.site)==null?void 0:r.domainAliases)||[]).map(d=>d.value).filter(Boolean).find(d=>d.endsWith(V.DEFAULT_DID_DOMAIN))||"").replace(`.${V.DEFAULT_DID_DOMAIN}`,"");return u?s.replace(o,`${u}-${a}.${V.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function Lt(){const{t:e}=Te(),{api:t}=qt(),{blocklet:n}=R(),{inService:o}=M(),[s,r]=m.useState(!1),[i,c]=m.useState(5),a=n&&n.structVersion!==V.APP_STRUCT_VERSION,l=()=>{try{if(n.status==="running"){O.error(e("blocklet.migrate.tip.running"));return}const f=$o(n);if(f){O.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}r(!0)}catch(f){O.error(ie(f))}},u=()=>{const f=Go(window.location,n,o);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(y=>y-1)},1e3)},d=()=>r(!1);return[a&&p.jsxs(Ye,{type:"warning",style:{margin:"12px 0"},children:[p.jsxs(te,{display:"flex",alignItems:"center",children:[p.jsx(Ze,{variant:"contained",size:"small",color:"primary",onClick:()=>l(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>p.jsx(te,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&p.jsx(Ht,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Kt(n,!0),title:Ae(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:d},"connect")]}Lt.propTypes={};async function qo({blockletDid:e,nodeApi:t,spaceGateways:n}){let o=!1;const s=await Promise.all(n.map(async r=>{let{name:i}=r;const c=await mn(r.endpoint);return!Be.isEmpty(c)&&c!==i&&(i=c,o=!0),{...r,name:i}}));return o&&await Promise.all(s.filter(r=>r.did).map(r=>t.updateBlockletSpaceGateway({input:{did:e,where:{did:r.did},spaceGateway:{...r}}}))),s}function Ho({setLoading:e,refresh:t}={}){var a;const{blocklet:n,actions:{refreshBlocklet:o}}=R(),s=(a=n==null?void 0:n.meta)==null?void 0:a.did,[r,i]=m.useState([]),{api:c}=M();return ce(async()=>{try{if(!s){i([]);return}e==null||e(!0);const{spaceGateways:l}=await c.getBlockletSpaceGateways({input:{did:s}}),u=await qo({blockletDid:s,nodeApi:c,spaceGateways:l});i(u??[])}catch(l){console.error(l),O.error(ie(l))}finally{e==null||e(!1)}},[s,o,t]),{spaceGateways:r}}function Mt({deps:e,setLoading:t}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=R(),[o,s]=m.useState([]),{api:r}=M(),i=Be.debounce(async()=>{try{if(t(!0),!n){s([]);return}const{backups:a}=await r.getBlockletBackups({input:{did:n.meta.did}});s(a??[])}catch(a){console.error(a),O.error(ie(a))}finally{t(!1)}},2e3);return ce(async()=>{i()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(e)),{backups:o}}function Ko({appDid:e}){const{backups:t}=Mt(),[n,o]=m.useState({message:"",progress:0,completed:!1}),s=M(),{ws:{useSubscription:r}}=s;return r(ye.BlockletEvents.backupProgress,i=>{e===(i==null?void 0:i.appDid)&&o(()=>({...i}))},[e]),m.useEffect(()=>{var i;if(t!=null&&t.length&&Be.isNull((i=t[0])==null?void 0:i.status)){const[c]=t;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[t]),n}function Qo({deps:e}={deps:[]}){var r;const{blocklet:t}=R(),{api:n}=M(),[o,s]=m.useState(null);return ce(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoBackup:c}=await n.getAutoBackup({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}function Wo({deps:e}={deps:[]}){var r;const{blocklet:t}=R(),{api:n}=M(),[o,s]=m.useState(null);return ce(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoCheckUpdate:c}=await n.getAutoCheckUpdate({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}const Nt=m.createContext({}),{Provider:Jo,Consumer:Ss}=Nt;function Ne({children:e}){const{t}=Te(),{api:n}=M(),{blocklet:o}=R(),[s,r]=m.useState(!1),[i,c]=m.useState(!1),{spaceGateways:a}=Ho({refresh:i,setLoading:r}),l=Ko({appDid:o==null?void 0:o.appDid}),[u,d]=m.useState(!1),f=m.useMemo(()=>gn(o==null?void 0:o.environments),[o,i,u]),[y,v]=m.useState(!1),{backups:x}=Mt({deps:[l],setLoading:v}),[C,S]=m.useState(a==null?void 0:a.find(h=>h.endpoint===f)),[w,k]=m.useState(!1),B=Qo({deps:[w]}),[j,g]=m.useState(!1),I=Wo({deps:[j]}),b=()=>{c(h=>!h)},_=()=>{d(h=>!h)},E=()=>{k(h=>!h)},Rt=()=>{g(h=>!h)},Ft=async(h,Re)=>{a.push({...h,loading:!0}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:h}}),f!==Re&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:ye.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Re}]}}),b(),S(h)},Ut=async h=>{h&&(await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),b(),S(h))},Vt=async h=>{await n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:h.did},spaceGateway:h}}),f!==h.endpoint&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:ye.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),O.success(t("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),b()},zt=h=>(h==null?void 0:h.endpoint)===f,$t=async h=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:h}}),E()},Gt=async h=>{await n.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:h}}),Rt()};return p.jsx(Jo,{value:{spaceGateways:a,selectedSpaceGateway:C,addSpaceGateway:Ft,deleteSpaceGateway:Ut,updateSpaceGateway:Vt,refreshSpaceGateways:b,spaceGatewaysLoading:s,spaceGatewayIsSelected:zt,updateAutoBackup:$t,updateAutoCheckUpdate:Gt,autoCheckUpdate:I,backupEndpoint:f,backupProgress:l,backups:x,backupsLoading:y,refreshBackupEndpoint:_,autoBackup:B},children:e})}Ne.propTypes={children:Wt.any.isRequired};Ne.defaultProps={};function ws(){return m.useContext(Nt)}const Xo=m.lazy(()=>P(()=>import("./overview-BjZwvO3w.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url)),Yo=m.lazy(()=>P(()=>import("./index-C9snPGrA.js"),__vite__mapDeps([21,1,2,22,23,24,25,26,27,28,16,17,18,29,30,31,6,32,33,34,35,36,37,38,4,39,40,10,41,42,43,44,45,46,5,7,47,48,49,50,51,52,53,54,3,55,56]),import.meta.url)),Zo=m.lazy(()=>P(()=>import("./config-navigation-9U1-i3qG.js"),__vite__mapDeps([57,1,2,47,48,58,34,44,45,46,6,27,28,5,7,41,59,17,18,16,31,4,60,36,61,33,62,19]),import.meta.url)),es=m.lazy(()=>P(()=>import("./audit-logs-CQgLtoSJ.js"),__vite__mapDeps([63,1,2,64,65,10,45,17,18,66,53]),import.meta.url)),ts=m.lazy(()=>P(()=>import("./index-fzAzVQZ7.js"),__vite__mapDeps([67,1,2,8,68,27,28,25,9,69,54,16,17,18,4,70,10,71,34,72,60,73]),import.meta.url)),ns=m.lazy(()=>P(()=>import("./index-Cybcu3bZ.js").then(e=>e.i),__vite__mapDeps([74,1,2,29,8,35,75,69,54,16,17,18,51,52,6,53,47,48,10,46,61,76,77,31,40,7,4,39,3,20]),import.meta.url)),os=m.lazy(()=>P(()=>import("./service-1xIndkC2.js"),__vite__mapDeps([78,1,2,79,52,17,6,18,16,53,58,54,44,45,46,27,28,5,7,80,43,30,81,48,62,60,31,82,8,26]),import.meta.url)),ss=m.lazy(()=>P(()=>import("./index-DZ38lcnS.js"),__vite__mapDeps([83,1,2,8,23,24,25,26,27,28,16,17,18,29,84,64,65,10,44,45,46,6,5,7,49,40,43,31,79,52,53,58,54,80,30,81,48,62,60,82,39,85,86,72,87,42,88,89,90,91,92,93,94,4,95,14,70,96,3,97,15,12,98,77,68,9,32,20,33,99]),import.meta.url)),rs=m.lazy(()=>P(()=>import("./log-Ec_QJxk0.js"),__vite__mapDeps([100,1,2,45,101,27,28,17,102]),import.meta.url)),is=m.lazy(()=>P(()=>import("./runtime-BudjolOf.js"),__vite__mapDeps([103,1,2,51,52,17,6,18,16,53,47,48,54,10,46,4,104,105,32]),import.meta.url)),cs=m.lazy(()=>P(()=>import("./traffic-DRJFVCky.js"),__vite__mapDeps([106,1,2,22,80,30,17,105,16,18,60]),import.meta.url)),as=m.lazy(()=>P(()=>import("./index-CPsoyw3K.js"),__vite__mapDeps([107,1,2,4,68,27,28,14,98,77,95,16,17,18,3,49,40,46,88,81,37,51,52,6,53,47,48,54,10,31,5,7,44,45,33,99]),import.meta.url)),ls=({children:e})=>e;function us(){var g,I;const e=Jt(),{tab:t="overview"}=et(),{did:n,blocklet:o,error:s,client:r,actions:{setBlocklet:i,refreshBlocklet:c}}=pn(),{refresh:a}=Xt(),{t:l}=Te(),u=m.useCallback(()=>p.jsx(es,{scope:n}),[n]),d=((g=o==null?void 0:o.environments.find(b=>b.key==="BLOCKLET_APP_URL"))==null?void 0:g.value)||window.location.origin,f=b=>rn(b,d),y=b=>{e(`/blocklets/${n}/${b}`)},v=b=>{b&&i(b),c()},x=!o||de(o.status)?[]:Yt(o);let C=null;const S=[{label:l("common.overview"),value:"overview"},{breadcrumbsLabel:l("common.components"),label:p.jsx(Zt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!x.length,children:l("common.components")}),value:"components"}];if(s)C=p.jsxs(p.Fragment,{children:[p.jsx(Ye,{type:"error",variant:"icon",children:ie(s)}),p.jsx(Ze,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:l("common.retry")})})]});else if(o){const b={overview:p.jsx(Xo,{}),configuration:Yo,navigation:Zo,services:os,members:p.jsx(ns,{type:"blocklet",createPassportSvg:f}),passports:ts,components:ss,"audit-logs":u,logs:rs,runtime:p.jsx(is,{}),traffic:p.jsx(cs,{client:r,did:n}),storage:p.jsx(as,{})};t==="configuration"&&de(o.status)&&y("overview"),de(o.status)||(S.push({label:l("common.members"),value:"members"}),S.push({label:l("common.passport"),value:"passports"}),S.push({label:l("common.configuration"),value:"configuration"})),S.push({label:l("common.auditLogs"),value:"audit-logs"}),o&&((I=o.children)!=null&&I.length)&&o.structVersion===V.APP_STRUCT_VERSION&&S.push({label:l("common.logs"),value:"logs"}),S.push({label:l("common.configNavigation"),value:"navigation"}),S.push({label:l("common.runtime"),value:"runtime"}),S.push({label:l("common.traffic"),value:"traffic"}),S.push({label:l("common.storage"),value:"storage"}),en(o).length&&S.splice(2,0,{label:l("blocklet.services"),value:"services"});const E=b[t]||b.overview;C=p.jsxs(ln,{type:"components",children:[!Fe(o)&&p.jsx(cn,{tabs:S,current:t,onChange:y,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(m.Suspense,{fallback:p.jsx(Ue,{relative:"parent",children:p.jsx(Ve,{})}),children:m.isValidElement(E)?E:p.jsx(E,{blocklet:o,onUpdate:v,createPassportSvg:f})})})]})}else C=p.jsx(Ue,{relative:"parent",children:p.jsx(Ve,{})});const w=()=>{},k=({action:b,error:_})=>{if(_){O.error(_.message);return}b==="remove"?(a(),e("/blocklets")):c()},B=S.find(b=>b.value===t),j=o?hn:ls;return p.jsx(j,{teamDid:n,children:p.jsxs(ds,{children:[p.jsxs(yn,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(tn,{color:"textSecondary",to:"/blocklets",children:l("common.blocklets")}),p.jsx(nn,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:l("common.detail")}),p.jsx(pe,{color:"textSecondary",children:B?B.breadcrumbsLabel||B.label:""})]}),p.jsxs(pe,{component:"div",className:"page-header",children:[p.jsxs(pe,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(fn,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(te,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(te,{children:Ae(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(an,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${l("common.blocklet")} ${l("common.detail")}`]}),p.jsx(on,{permission:"mutate_blocklets",children:!!o&&!Fe(o)&&p.jsx(un,{className:"page-actions",blocklet:o,onStart:w,onComplete:k,variant:"group"})})]}),p.jsx(Lt,{}),C]})})}function fs(){const{did:e}=et();return e?p.jsx(dn,{did:e,children:p.jsx(Ne,{children:p.jsx(us,{})})}):null}const ds=sn.main`
|
|
12
|
+
*/const tt=Object.freeze({left:0,top:0,width:16,height:16}),ne=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),K=Object.freeze({...tt,...ne}),be=Object.freeze({...K,body:"",hidden:!1});function bn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function ze(e,t){const n=bn(e,t);for(const o in be)o in ne?o in e&&!(o in n)&&(n[o]=ne[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function vn(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function r(i){if(n[i])return s[i]=[];if(!(i in s)){s[i]=null;const c=o[i]&&o[i].parent,a=c&&r(c);a&&(s[i]=[c].concat(a))}return s[i]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(r),s}function xn(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let r={};function i(c){r=ze(o[c]||s[c],r)}return i(t),n.forEach(i),ze(e,r)}function nt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const o=vn(e);for(const s in o){const r=o[s];r&&(t(s,xn(e,s,r)),n.push(s))}return n}const z=/^[a-z0-9]+(-[a-z0-9]+)*$/,F=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),a=s.pop(),l={provider:s.length>0?s[0]:o,prefix:a,name:c};return t&&!Z(l)?null:l}const r=s[0],i=r.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!Z(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:r};return t&&!Z(c,n)?null:c}return null},Z=(e,t)=>e?!!((e.provider===""||e.provider.match(z))&&(t&&e.prefix===""||e.prefix.match(z))&&e.name.match(z)):!1,Sn={provider:"",aliases:{},not_found:{},...tt};function he(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ot(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!he(e,Sn))return null;const n=t.icons;for(const s in n){const r=n[s];if(!s.match(z)||typeof r.body!="string"||!he(r,be))return null}const o=t.aliases||Object.create(null);for(const s in o){const r=o[s],i=r.parent;if(!s.match(z)||typeof i!="string"||!n[i]&&!o[i]||!he(r,be))return null}return t}const oe=Object.create(null);function wn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function T(e,t){const n=oe[e]||(oe[e]=Object.create(null));return n[t]||(n[t]=wn(e,t))}function je(e,t){return ot(t)?nt(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function kn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function In(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(oe)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(oe[s]||{})).forEach(i=>{const c=T(s,i);n=n.concat(Object.keys(c.icons).map(a=>(s!==""?"@"+s+":":"")+i+":"+a))})}),n}let q=!1;function Cn(e){return typeof e=="boolean"&&(q=e),q}function Q(e){const t=typeof e=="string"?F(e,!0,q):e;if(t){const n=T(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function st(e,t){const n=F(e,!0,q);if(!n)return!1;const o=T(n.provider,n.prefix);return kn(o,n.name,t)}function rt(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),q&&!t&&!e.prefix){let s=!1;return ot(e)&&(e.prefix="",nt(e,(r,i)=>{i&&st(r,i)&&(s=!0)})),s}const n=e.prefix;if(!Z({provider:t,prefix:n,name:"a"}))return!1;const o=T(t,n);return!!je(o,e)}function En(e){return!!Q(e)}function Pn(e){const t=Q(e);return t?{...K,...t}:null}const it=Object.freeze({width:null,height:null}),ct=Object.freeze({...it,...ne}),_n=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Tn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ve(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(_n);if(o===null||!o.length)return e;const s=[];let r=o.shift(),i=Tn.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?s.push(r):s.push(Math.ceil(c*t*n)/n)}else s.push(r);if(r=o.shift(),r===void 0)return s.join("");i=!i}}const An=e=>e==="unset"||e==="undefined"||e==="none";function ae(e,t){const n={...K,...e},o={...ct,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach(v=>{const x=[],C=v.hFlip,S=v.vFlip;let w=v.rotate;C?S?w+=2:(x.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),x.push("scale(-1 1)"),s.top=s.left=0):S&&(x.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),x.push("scale(1 -1)"),s.top=s.left=0);let k;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:k=s.height/2+s.top,x.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:x.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:k=s.width/2+s.left,x.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}w%2===1&&(s.left!==s.top&&(k=s.left,s.left=s.top,s.top=k),s.width!==s.height&&(k=s.width,s.width=s.height,s.height=k)),x.length&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=o.width,c=o.height,a=s.width,l=s.height;let u,d;i===null?(d=c===null?"1em":c==="auto"?l:c,u=ve(d,a/l)):(u=i==="auto"?a:i,d=c===null?ve(u,l/a):c==="auto"?l:c);const f={},y=(v,x)=>{An(x)||(f[v]=x.toString())};return y("width",u),y("height",d),f.viewBox=s.left.toString()+" "+s.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:f,body:r}}const Bn=/\sid="(\S+)"/g,jn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let On=0;function at(e,t=jn){const n=[];let o;for(;o=Bn.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(On++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const D={local:!0,session:!0},lt={local:new Set,session:new Set};let Oe=!1;function Dn(e){Oe=e}const $e="iconify2",H="iconify",ut=H+"-count",Ge=H+"-version",ft=36e5,Ln=168;function xe(e,t){try{return e.getItem(t)}catch{}}function De(e,t,n){try{return e.setItem(t,n),!0}catch{}}function qe(e,t){try{e.removeItem(t)}catch{}}function Se(e,t){return De(e,ut,t.toString())}function we(e){return parseInt(xe(e,ut))||0}let X=typeof window>"u"?{}:window;function dt(e){const t=e+"Storage";try{if(X&&X[t]&&typeof X[t].length=="number")return X[t]}catch{}D[e]=!1}function pt(e,t){const n=dt(e);if(!n)return;const o=xe(n,Ge);if(o!==$e){if(o){const c=we(n);for(let a=0;a<c;a++)qe(n,H+a.toString())}De(n,Ge,$e),Se(n,0);return}const s=Math.floor(Date.now()/ft)-Ln,r=c=>{const a=H+c.toString(),l=xe(n,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>s&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}qe(n,a)}};let i=we(n);for(let c=i-1;c>=0;c--)r(c)||(c===i-1?(i--,Se(n,i)):lt[e].add(c))}function ht(){if(!Oe){Dn(!0);for(const e in D)pt(e,t=>{const n=t.data,o=t.provider,s=n.prefix,r=T(o,s);if(!je(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function mt(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ke=Object.create(null);function gt(e,t){ke[e]=t}function Ie(e){return ke[e]||ke[""]}function Le(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const le=Object.create(null),U=["https://api.simplesvg.com","https://api.unisvg.com"],ee=[];for(;U.length>0;)U.length===1||Math.random()>.5?ee.push(U.shift()):ee.push(U.pop());le[""]=Le({resources:["https://api.iconify.design"].concat(ee)});function yt(e,t){const n=Le(t);return n===null?!1:(le[e]=n,!0)}function ue(e){return le[e]}function Mn(){return Object.keys(le)}const Nn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let se=Nn();function Rn(e){se=e}function Fn(){return se}function Un(e,t){const n=ue(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(i=>{s=Math.max(s,i.length)});const r=t+".json?icons=";o=n.maxURL-s-n.path.length-r.length}return o}function Vn(e){return e===404}const zn=(e,t,n)=>{const o=[],s=Un(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,l)=>{c+=a.length+1,c>=s&&l>0&&(o.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),o.push(i),o};function $n(e){if(typeof e=="string"){const t=ue(e);if(t)return t.path}return"/"}const Gn=(e,t,n)=>{if(!se){n("abort",424);return}let o=$n(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});o+=r+".json?"+a.toString();break}case"custom":{const r=t.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let s=503;se(e+o).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(Vn(i)?"abort":"next",i)});return}return s=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",s)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",s)})},qn={prepare:zn,send:Gn};function Hn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,r)=>s.provider!==r.provider?s.provider.localeCompare(r.provider):s.prefix!==r.prefix?s.prefix.localeCompare(r.prefix):s.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const r=s.provider,i=s.prefix,c=s.name,a=n[r]||(n[r]=Object.create(null)),l=a[i]||(a[i]=T(r,i));let u;c in l.icons?u=t.loaded:i===""||l.missing.has(c)?u=t.missing:u=t.pending;const d={provider:r,prefix:i,name:c};u.push(d)}),t}function bt(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function Kn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,s=e.prefix;t.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==s)return!0;const l=a.name;if(e.icons[l])i.loaded.push({provider:o,prefix:s,name:l});else if(e.missing.has(l))i.missing.push({provider:o,prefix:s,name:l});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||bt([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Qn=0;function Wn(e,t,n){const o=Qn++,s=bt.bind(null,n,o);if(!t.pending.length)return s;const r={id:o,icons:t,callback:e,abort:s};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),s}function Jn(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const r=typeof s=="string"?F(s,t,n):s;r&&o.push(r)}),o}var Xn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Yn(e,t,n,o){const s=e.resources.length,r=e.random?Math.floor(Math.random()*s):e.index;let i;if(e.random){let g=e.resources.slice(0);for(i=[];g.length>1;){const I=Math.floor(Math.random()*g.length);i.push(g[I]),g=g.slice(0,I).concat(g.slice(I+1))}i=i.concat(g)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let a="pending",l=0,u,d=null,f=[],y=[];typeof o=="function"&&y.push(o);function v(){d&&(clearTimeout(d),d=null)}function x(){a==="pending"&&(a="aborted"),v(),f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function C(g,I){I&&(y=[]),typeof g=="function"&&y.push(g)}function S(){return{startTime:c,payload:t,status:a,queriesSent:l,queriesPending:f.length,subscribe:C,abort:x}}function w(){a="failed",y.forEach(g=>{g(void 0,u)})}function k(){f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function B(g,I,b){const _=I!=="success";switch(f=f.filter(E=>E!==g),a){case"pending":break;case"failed":if(_||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=b,w();return}if(_){u=b,f.length||(i.length?j():w());return}if(v(),k(),!e.random){const E=e.resources.indexOf(g.resource);E!==-1&&E!==e.index&&(e.index=E)}a="completed",y.forEach(E=>{E(b)})}function j(){if(a!=="pending")return;v();const g=i.shift();if(g===void 0){if(f.length){d=setTimeout(()=>{v(),a==="pending"&&(k(),w())},e.timeout);return}w();return}const I={status:"pending",resource:g,callback:(b,_)=>{B(I,b,_)}};f.push(I),l++,d=setTimeout(j,e.rotate),n(g,t,I.callback)}return setTimeout(j),S}function vt(e){const t={...Xn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,a,l){const u=Yn(t,c,a,(d,f)=>{o(),l&&l(d,f)});return n.push(u),u}function r(c){return n.find(a=>c(a))||null}return{query:s,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function He(){}const me=Object.create(null);function Zn(e){if(!me[e]){const t=ue(e);if(!t)return;const n=vt(t),o={config:t,redundancy:n};me[e]=o}return me[e]}function xt(e,t,n){let o,s;if(typeof e=="string"){const r=Ie(e);if(!r)return n(void 0,424),He;s=r.send;const i=Zn(e);i&&(o=i.redundancy)}else{const r=Le(e);if(r){o=vt(r);const i=e.resources?e.resources[0]:"",c=Ie(i);c&&(s=c.send)}}return!o||!s?(n(void 0,424),He):o.query(t,s,n)().abort}function eo(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in D)pt(o,s=>{const r=s.data;return s.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function to(e,t){Oe||ht();function n(o){let s;if(!D[o]||!(s=dt(o)))return;const r=lt[o];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=we(s),!Se(s,i+1))return;const c={cached:Math.floor(Date.now()/ft),provider:e.provider,data:t};return De(s,H+i.toString(),JSON.stringify(c))}t.lastModified&&!eo(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ke(){}function no(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Kn(e)}))}function oo(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,s=e.iconsToLoad;delete e.iconsToLoad;let r;if(!s||!(r=Ie(n)))return;r.prepare(n,o,s).forEach(c=>{xt(n,c,a=>{if(typeof a!="object")c.icons.forEach(l=>{e.missing.add(l)});else try{const l=je(e,a);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),to(e,a)}catch(l){console.error(l)}no(e)})})}))}const so=e=>{const n=T(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Me=(e,t)=>{const n=Jn(e,!0,Cn()),o=Hn(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,Ke)}),()=>{a=!1}}const s=Object.create(null),r=[];let i,c;return o.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===c&&l===i)return;i=l,c=u,r.push(T(l,u));const d=s[l]||(s[l]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(a=>{const{provider:l,prefix:u,name:d}=a,f=T(l,u),y=f.pendingIcons||(f.pendingIcons=new Set);y.has(d)||(y.add(d),s[l][u].push(d))}),r.forEach(a=>{const{provider:l,prefix:u}=a;s[l][u].length&&oo(a,s[l][u])}),t?Wn(t,o,r):Ke},ro=e=>new Promise((t,n)=>{const o=typeof e=="string"?F(e,!0):e;if(!o){n(e);return}Me([o||e],s=>{if(s.length&&o){const r=Q(o);if(r){t({...K,...r});return}}n(e)})});function St(e,t){const n={...e};for(const o in t){const s=t[o],r=typeof s;o in it?(s===null||s&&(r==="string"||r==="number"))&&(n[o]=s):r===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const fe={...ct,inline:!1},ge="iconify",Ce="iconify-inline",A="iconifyData"+Date.now();let L=[];function W(e){for(let t=0;t<L.length;t++){const n=L[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function wt(e,t=!1){let n=W(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},L.push(n),n)}function io(){if(document.documentElement)return wt(document.documentElement);L.push({node:()=>document.documentElement})}function co(e){L=L.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function J(){return L}function ao(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let $=null;const lo={childList:!0,subtree:!0,attributes:!0};function kt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,$&&$(e)}))}function uo(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const s=t[o];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[A]!==void 0){n.paused||kt(e);return}}}function It(e,t){e.observer.instance.observe(t,lo)}function re(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(uo.bind(null,e)),It(e,n),t.paused||kt(e))}function Qe(){J().forEach(re)}function Ct(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function fo(e){const t=$!==null;if($!==e&&($=e,t&&J().forEach(Ct)),t){Qe();return}ao(Qe)}function Ee(e){(e?[e]:J()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function po(e){if(e){const t=W(e);t&&Ee(t)}else Ee()}function Pe(e){(e?[e]:J()).forEach(t=>{if(!t.observer){re(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?It(t,o):re(t);else return}})}function ho(e){if(e){const t=W(e);t&&Pe(t)}else Pe()}function Et(e,t=!1){const n=wt(e,t);return re(n),n}function Pt(e){const t=W(e);t&&(Ct(t),co(e))}function mo(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const s in fe)if(n[s]!==o[s])return!0;return!1}function go(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/s,r%1===0?o(r):0)}}return t}const yo=/[\s,]+/;function bo(e,t){t.split(yo).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const vo=["width","height"],xo=["inline","hFlip","vFlip"];function So(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function wo(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&F(t,!0);if(!n)return null;const o={...fe,inline:e.classList&&e.classList.contains(Ce)};vo.forEach(c=>{const a=e.getAttribute("data-"+c);a&&(o[c]=a)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(o.rotate=go(s));const r=e.getAttribute("data-flip");typeof r=="string"&&bo(o,r),xo.forEach(c=>{const a="data-"+c,l=So(e.getAttribute(a),a);typeof l=="boolean"&&(o[c]=l)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const ko="svg."+ge+", i."+ge+", span."+ge+", i."+Ce+", span."+Ce;function Io(e){const t=[];return e.querySelectorAll(ko).forEach(n=>{const o=n[A]||n.tagName.toLowerCase()!=="svg"?wo(n):null;o&&t.push({node:n,props:o})}),t}function _t(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let G;function Co(){try{G=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{G=null}}function Eo(e){return G===void 0&&Co(),G?G.createHTML(e):e}function Tt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function At(e,t,n,o){const s=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{s.add(c)})}const r=[];return t.forEach(i=>{s.contains(i)?n.has(i)&&r.push(i):(s.add(i),r.push(i))}),n.forEach(i=>{t.has(i)||s.remove(i)}),r}function Bt(e,t,n){const o=e.style;(n||[]).forEach(r=>{o.removeProperty(r)});const s=[];for(const r in t)o.getPropertyValue(r)||(s.push(r),o.setProperty(r,t[r]));return s}function jt(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const s=t.customisations,r=ae(n,s),i=e[A],c=_t(at(r.body),{"aria-hidden":"true",role:"img",...r.attributes});o.innerHTML=Eo(c);const a=o.childNodes[0],l=e.attributes;for(let v=0;v<l.length;v++){const x=l.item(v),C=x.name;C!=="class"&&!a.hasAttribute(C)&&a.setAttribute(C,x.value)}const u=Tt(t.icon),d=At(a,u,new Set(i&&i.addedClasses),e),f=Bt(a,s.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),y={...t,status:"loaded",addedClasses:d,addedStyles:f};return a[A]=y,e.parentNode&&e.parentNode.replaceChild(a,e),a}function Po(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _o(e){return"data:image/svg+xml,"+Po(e)}function To(e){return'url("'+_o(e)+'")'}const Ao={display:"inline-block"},_e={"background-color":"currentColor"},Ot={"background-color":"transparent"},We={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Je={"-webkit-mask":_e,mask:_e,background:Ot};for(const e in Je){const t=Je[e];for(const n in We)t[e+"-"+n]=We[n]}function Xe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Bo(e,t,n,o){const s=t.customisations,r=ae(n,s),i=r.attributes,c=e[A],a=_t(r.body,{...i,width:n.width+"",height:n.height+""}),l=Tt(t.icon),u=At(e,l,new Set(c&&c.addedClasses)),f={"--svg":To(a),width:Xe(i.width),height:Xe(i.height),...Ao,...o?_e:Ot};s.inline&&(f["vertical-align"]="-0.125em");const y=Bt(e,f,c&&c.addedStyles),v={...t,status:"loaded",addedClasses:u,addedStyles:y};return e[A]=v,e}let Y=!1;function jo(){Y||(Y=!0,setTimeout(()=>{Y&&(Y=!1,N())}))}function N(e,t=!1){const n=Object.create(null);function o(s,r){const{provider:i,prefix:c,name:a}=s,l=T(i,c),u=l.icons[a];if(u)return{status:"loaded",icon:u};if(l.missing.has(a))return{status:"missing"};if(r&&!so(s)){const d=n[i]||(n[i]=Object.create(null));(d[c]||(d[c]=new Set)).add(a)}return{status:"loading"}}(e?[e]:J()).forEach(s=>{const r=typeof s.node=="function"?s.node():s.node;if(!r||!r.querySelectorAll)return;let i=!1,c=!1;function a(l,u,d){if(c||(c=!0,Ee(s)),l.tagName.toUpperCase()!=="SVG"){const f=u.mode,y=f==="mask"||(f==="bg"?!1:f==="style"?d.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){Bo(l,u,{...K,...d},y);return}}jt(l,u,d)}Io(r).forEach(({node:l,props:u})=>{const d=l[A];if(!d){const{status:y,icon:v}=o(u.icon,!0);if(v){a(l,u,v);return}i=i||y==="loading",l[A]={...u,status:y};return}let f;if(mo(d,u)){if(f=o(u.icon,d.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(d,{...u,status:f.status});return}}else{if(d.status!=="loading")return;if(f=o(u.icon,!1),!f.icon){d.status=f.status;return}}a(l,u,f.icon)}),s.temporary&&!i?Pt(r):t&&i?Et(r,!0):c&&s.observer&&Pe(s)});for(const s in n){const r=n[s];for(const i in r){const c=r[i];Me(Array.from(c).map(a=>({provider:s,prefix:i,name:a})),jo)}}}function Oo(e){const t=W(e);t?N(t):N({node:e,temporary:!0},!0)}function Dt(e,t,n=!1){const o=Q(e);if(!o)return null;const s=F(e),r=St(fe,t||{}),i=jt(document.createElement("span"),{name:e,icon:s,customisations:r},o);return n?i.outerHTML:i}function Do(){return"3.1.1"}function Lo(e,t){return Dt(e,t,!1)}function Mo(e,t){return Dt(e,t,!0)}function No(e,t){const n=Q(e);if(!n)return null;const o=St(fe,t||{});return ae(n,o)}function Ro(e){e?Oo(e):N()}if(typeof document<"u"&&typeof window<"u"){io();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!rt(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{fo(N),N()})}function Fo(e,t){mt(e,t!==!1)}function Uo(e){mt(e,!0)}gt("",qn);if(typeof document<"u"&&typeof window<"u"){ht();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;yt(n,s)||console.error(o)}catch{console.error(o)}}}}const Vo={getAPIConfig:ue,setAPIModule:gt,sendAPIQuery:xt,setFetch:Rn,getFetch:Fn,listAPIProviders:Mn},zo={_api:Vo,addAPIProvider:yt,loadIcons:Me,loadIcon:ro,iconExists:En,getIcon:Pn,listIcons:In,addIcon:st,addCollection:rt,replaceIDs:at,calculateSize:ve,buildIcon:ae,getVersion:Do,renderSVG:Lo,renderHTML:Mo,renderIcon:No,scan:Ro,observe:Et,stopObserving:Pt,pauseObserver:po,resumeObserver:ho,enableCache:Fo,disableCache:Uo};try{self.Iconify===void 0&&(self.Iconify=zo)}catch{}const $o=e=>{const t={};let n=null;return Qt(e,o=>{t[o.meta.bundleDid]?n=Ae(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},Go=(e,t,n)=>{var r;const{hostname:o,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return s;const a=c[0],u=((((r=t.site)==null?void 0:r.domainAliases)||[]).map(d=>d.value).filter(Boolean).find(d=>d.endsWith(V.DEFAULT_DID_DOMAIN))||"").replace(`.${V.DEFAULT_DID_DOMAIN}`,"");return u?s.replace(o,`${u}-${a}.${V.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function Lt(){const{t:e}=Te(),{api:t}=qt(),{blocklet:n}=R(),{inService:o}=M(),[s,r]=m.useState(!1),[i,c]=m.useState(5),a=n&&n.structVersion!==V.APP_STRUCT_VERSION,l=()=>{try{if(n.status==="running"){O.error(e("blocklet.migrate.tip.running"));return}const f=$o(n);if(f){O.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}r(!0)}catch(f){O.error(ie(f))}},u=()=>{const f=Go(window.location,n,o);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(y=>y-1)},1e3)},d=()=>r(!1);return[a&&p.jsxs(Ye,{type:"warning",style:{margin:"12px 0"},children:[p.jsxs(te,{display:"flex",alignItems:"center",children:[p.jsx(Ze,{variant:"contained",size:"small",color:"primary",onClick:()=>l(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>p.jsx(te,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&p.jsx(Ht,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Kt(n,!0),title:Ae(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:d},"connect")]}Lt.propTypes={};async function qo({blockletDid:e,nodeApi:t,spaceGateways:n}){let o=!1;const s=await Promise.all(n.map(async r=>{let{name:i}=r;const c=await mn(r.endpoint);return!Be.isEmpty(c)&&c!==i&&(i=c,o=!0),{...r,name:i}}));return o&&await Promise.all(s.filter(r=>r.did).map(r=>t.updateBlockletSpaceGateway({input:{did:e,where:{did:r.did},spaceGateway:{...r}}}))),s}function Ho({setLoading:e,refresh:t}={}){var a;const{blocklet:n,actions:{refreshBlocklet:o}}=R(),s=(a=n==null?void 0:n.meta)==null?void 0:a.did,[r,i]=m.useState([]),{api:c}=M();return ce(async()=>{try{if(!s){i([]);return}e==null||e(!0);const{spaceGateways:l}=await c.getBlockletSpaceGateways({input:{did:s}}),u=await qo({blockletDid:s,nodeApi:c,spaceGateways:l});i(u??[])}catch(l){console.error(l),O.error(ie(l))}finally{e==null||e(!1)}},[s,o,t]),{spaceGateways:r}}function Mt({deps:e,setLoading:t}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=R(),[o,s]=m.useState([]),{api:r}=M(),i=Be.debounce(async()=>{try{if(t(!0),!n){s([]);return}const{backups:a}=await r.getBlockletBackups({input:{did:n.meta.did}});s(a??[])}catch(a){console.error(a),O.error(ie(a))}finally{t(!1)}},2e3);return ce(async()=>{i()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(e)),{backups:o}}function Ko({appDid:e}){const{backups:t}=Mt(),[n,o]=m.useState({message:"",progress:0,completed:!1}),s=M(),{ws:{useSubscription:r}}=s;return r(ye.BlockletEvents.backupProgress,i=>{e===(i==null?void 0:i.appDid)&&o(()=>({...i}))},[e]),m.useEffect(()=>{var i;if(t!=null&&t.length&&Be.isNull((i=t[0])==null?void 0:i.status)){const[c]=t;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[t]),n}function Qo({deps:e}={deps:[]}){var r;const{blocklet:t}=R(),{api:n}=M(),[o,s]=m.useState(null);return ce(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoBackup:c}=await n.getAutoBackup({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}function Wo({deps:e}={deps:[]}){var r;const{blocklet:t}=R(),{api:n}=M(),[o,s]=m.useState(null);return ce(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoCheckUpdate:c}=await n.getAutoCheckUpdate({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}const Nt=m.createContext({}),{Provider:Jo,Consumer:Ss}=Nt;function Ne({children:e}){const{t}=Te(),{api:n}=M(),{blocklet:o}=R(),[s,r]=m.useState(!1),[i,c]=m.useState(!1),{spaceGateways:a}=Ho({refresh:i,setLoading:r}),l=Ko({appDid:o==null?void 0:o.appDid}),[u,d]=m.useState(!1),f=m.useMemo(()=>gn(o==null?void 0:o.environments),[o,i,u]),[y,v]=m.useState(!1),{backups:x}=Mt({deps:[l],setLoading:v}),[C,S]=m.useState(a==null?void 0:a.find(h=>h.endpoint===f)),[w,k]=m.useState(!1),B=Qo({deps:[w]}),[j,g]=m.useState(!1),I=Wo({deps:[j]}),b=()=>{c(h=>!h)},_=()=>{d(h=>!h)},E=()=>{k(h=>!h)},Rt=()=>{g(h=>!h)},Ft=async(h,Re)=>{a.push({...h,loading:!0}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:h}}),f!==Re&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:ye.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Re}]}}),b(),S(h)},Ut=async h=>{h&&(await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),b(),S(h))},Vt=async h=>{await n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:h.did},spaceGateway:h}}),f!==h.endpoint&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:ye.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),O.success(t("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),b()},zt=h=>(h==null?void 0:h.endpoint)===f,$t=async h=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:h}}),E()},Gt=async h=>{await n.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:h}}),Rt()};return p.jsx(Jo,{value:{spaceGateways:a,selectedSpaceGateway:C,addSpaceGateway:Ft,deleteSpaceGateway:Ut,updateSpaceGateway:Vt,refreshSpaceGateways:b,spaceGatewaysLoading:s,spaceGatewayIsSelected:zt,updateAutoBackup:$t,updateAutoCheckUpdate:Gt,autoCheckUpdate:I,backupEndpoint:f,backupProgress:l,backups:x,backupsLoading:y,refreshBackupEndpoint:_,autoBackup:B},children:e})}Ne.propTypes={children:Wt.any.isRequired};Ne.defaultProps={};function ws(){return m.useContext(Nt)}const Xo=m.lazy(()=>P(()=>import("./overview-CnuzNSfm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url)),Yo=m.lazy(()=>P(()=>import("./index-DdxWI-QG.js"),__vite__mapDeps([21,1,2,22,23,24,25,26,27,28,16,17,18,29,30,31,6,32,33,34,35,36,37,38,4,39,40,10,41,42,43,44,45,46,5,7,47,48,49,50,51,52,53,54,3,55,56]),import.meta.url)),Zo=m.lazy(()=>P(()=>import("./config-navigation-Ngw7D7GZ.js"),__vite__mapDeps([57,1,2,47,48,58,34,44,45,46,6,27,28,5,7,41,59,17,18,16,31,4,60,36,61,33,62,19]),import.meta.url)),es=m.lazy(()=>P(()=>import("./audit-logs-BkgPztEs.js"),__vite__mapDeps([63,1,2,64,65,10,45,17,18,66,53]),import.meta.url)),ts=m.lazy(()=>P(()=>import("./index-CWilKNfl.js"),__vite__mapDeps([67,1,2,8,68,27,28,25,9,69,54,16,17,18,4,70,10,71,34,72,60,73]),import.meta.url)),ns=m.lazy(()=>P(()=>import("./index-BCQQEHyP.js").then(e=>e.i),__vite__mapDeps([74,1,2,29,8,35,75,69,54,16,17,18,51,52,6,53,47,48,10,46,61,76,77,31,40,7,4,39,3,20]),import.meta.url)),os=m.lazy(()=>P(()=>import("./service-DNZLEaeT.js"),__vite__mapDeps([78,1,2,79,52,17,6,18,16,53,58,54,44,45,46,27,28,5,7,80,43,30,81,48,62,60,31,82,8,26]),import.meta.url)),ss=m.lazy(()=>P(()=>import("./index-3vcNDYsD.js"),__vite__mapDeps([83,1,2,8,23,24,25,26,27,28,16,17,18,29,84,64,65,10,44,45,46,6,5,7,49,40,43,31,79,52,53,58,54,80,30,81,48,62,60,82,39,85,86,72,87,42,88,89,90,91,92,93,94,4,95,14,70,96,3,97,15,12,98,77,68,9,32,20,33,99]),import.meta.url)),rs=m.lazy(()=>P(()=>import("./log-i4SQ4Z0y.js"),__vite__mapDeps([100,1,2,45,101,27,28,17,102]),import.meta.url)),is=m.lazy(()=>P(()=>import("./runtime-CW-W-Oej.js"),__vite__mapDeps([103,1,2,51,52,17,6,18,16,53,47,48,54,10,46,4,104,105,32]),import.meta.url)),cs=m.lazy(()=>P(()=>import("./traffic-CmQ-j2sa.js"),__vite__mapDeps([106,1,2,22,80,30,17,105,16,18,60]),import.meta.url)),as=m.lazy(()=>P(()=>import("./index-DY9g7uAE.js"),__vite__mapDeps([107,1,2,4,68,27,28,14,98,77,95,16,17,18,3,49,40,46,88,81,37,51,52,6,53,47,48,54,10,31,5,7,44,45,33,99]),import.meta.url)),ls=({children:e})=>e;function us(){var g,I;const e=Jt(),{tab:t="overview"}=et(),{did:n,blocklet:o,error:s,client:r,actions:{setBlocklet:i,refreshBlocklet:c}}=pn(),{refresh:a}=Xt(),{t:l}=Te(),u=m.useCallback(()=>p.jsx(es,{scope:n}),[n]),d=((g=o==null?void 0:o.environments.find(b=>b.key==="BLOCKLET_APP_URL"))==null?void 0:g.value)||window.location.origin,f=b=>rn(b,d),y=b=>{e(`/blocklets/${n}/${b}`)},v=b=>{b&&i(b),c()},x=!o||de(o.status)?[]:Yt(o);let C=null;const S=[{label:l("common.overview"),value:"overview"},{breadcrumbsLabel:l("common.components"),label:p.jsx(Zt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!x.length,children:l("common.components")}),value:"components"}];if(s)C=p.jsxs(p.Fragment,{children:[p.jsx(Ye,{type:"error",variant:"icon",children:ie(s)}),p.jsx(Ze,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:l("common.retry")})})]});else if(o){const b={overview:p.jsx(Xo,{}),configuration:Yo,navigation:Zo,services:os,members:p.jsx(ns,{type:"blocklet",createPassportSvg:f}),passports:ts,components:ss,"audit-logs":u,logs:rs,runtime:p.jsx(is,{}),traffic:p.jsx(cs,{client:r,did:n}),storage:p.jsx(as,{})};t==="configuration"&&de(o.status)&&y("overview"),de(o.status)||(S.push({label:l("common.members"),value:"members"}),S.push({label:l("common.passport"),value:"passports"}),S.push({label:l("common.configuration"),value:"configuration"})),S.push({label:l("common.auditLogs"),value:"audit-logs"}),o&&((I=o.children)!=null&&I.length)&&o.structVersion===V.APP_STRUCT_VERSION&&S.push({label:l("common.logs"),value:"logs"}),S.push({label:l("common.configNavigation"),value:"navigation"}),S.push({label:l("common.runtime"),value:"runtime"}),S.push({label:l("common.traffic"),value:"traffic"}),S.push({label:l("common.storage"),value:"storage"}),en(o).length&&S.splice(2,0,{label:l("blocklet.services"),value:"services"});const E=b[t]||b.overview;C=p.jsxs(ln,{type:"components",children:[!Fe(o)&&p.jsx(cn,{tabs:S,current:t,onChange:y,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(m.Suspense,{fallback:p.jsx(Ue,{relative:"parent",children:p.jsx(Ve,{})}),children:m.isValidElement(E)?E:p.jsx(E,{blocklet:o,onUpdate:v,createPassportSvg:f})})})]})}else C=p.jsx(Ue,{relative:"parent",children:p.jsx(Ve,{})});const w=()=>{},k=({action:b,error:_})=>{if(_){O.error(_.message);return}b==="remove"?(a(),e("/blocklets")):c()},B=S.find(b=>b.value===t),j=o?hn:ls;return p.jsx(j,{teamDid:n,children:p.jsxs(ds,{children:[p.jsxs(yn,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(tn,{color:"textSecondary",to:"/blocklets",children:l("common.blocklets")}),p.jsx(nn,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:l("common.detail")}),p.jsx(pe,{color:"textSecondary",children:B?B.breadcrumbsLabel||B.label:""})]}),p.jsxs(pe,{component:"div",className:"page-header",children:[p.jsxs(pe,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(fn,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(te,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(te,{children:Ae(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(an,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${l("common.blocklet")} ${l("common.detail")}`]}),p.jsx(on,{permission:"mutate_blocklets",children:!!o&&!Fe(o)&&p.jsx(un,{className:"page-actions",blocklet:o,onStart:w,onComplete:k,variant:"group"})})]}),p.jsx(Lt,{}),C]})})}function fs(){const{did:e}=et();return e?p.jsx(dn,{did:e,children:p.jsx(Ne,{children:p.jsx(us,{})})}):null}const ds=sn.main`
|
|
13
13
|
.page-header {
|
|
14
14
|
display: flex;
|
|
15
15
|
justify-content: space-between;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _}from"./codemirror.es-
|
|
1
|
+
import{a as _}from"./codemirror.es-CEoouqN7.js";import"./index-B-OHtxJg.js";import"./index-Boqyvc8Q.js";var O=Object.defineProperty,m=(g,v)=>O(g,"name",{value:v,configurable:!0});function N(g,v){return v.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(c){if(c!=="default"&&!(c in g)){var d=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(g,c,d.get?d:{enumerable:!0,get:function(){return e[c]}})}})}),Object.freeze(g)}m(N,"_mergeNamespaces");var b={exports:{}};(function(g,v){(function(e){e(_.exports)})(function(e){function c(f,u,n){var o=f.getWrapperElement(),l;return l=o.appendChild(document.createElement("div")),n?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof u=="string"?l.innerHTML=u:l.appendChild(u),e.addClass(o,"dialog-opened"),l}m(c,"dialogDiv");function d(f,u){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=u}m(d,"closeNotification"),e.defineExtension("openDialog",function(f,u,n){n||(n={}),d(this,null);var o=c(this,f,n.bottom),l=!1,r=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),r.focus(),n.onClose&&n.onClose(o)}}m(i,"close");var a=o.getElementsByTagName("input")[0],s;return a?(a.focus(),n.value&&(a.value=n.value,n.selectValueOnOpen!==!1&&a.select()),n.onInput&&e.on(a,"input",function(t){n.onInput(t,a.value,i)}),n.onKeyUp&&e.on(a,"keyup",function(t){n.onKeyUp(t,a.value,i)}),e.on(a,"keydown",function(t){n&&n.onKeyDown&&n.onKeyDown(t,a.value,i)||((t.keyCode==27||n.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),e.e_stop(t),i()),t.keyCode==13&&u(a.value,t))}),n.closeOnBlur!==!1&&e.on(o,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=o.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){i(),r.focus()}),n.closeOnBlur!==!1&&e.on(s,"blur",i),s.focus()),i}),e.defineExtension("openConfirm",function(f,u,n){d(this,null);var o=c(this,f,n&&n.bottom),l=o.getElementsByTagName("button"),r=!1,i=this,a=1;function s(){r||(r=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),i.focus())}m(s,"close"),l[0].focus();for(var t=0;t<l.length;++t){var p=l[t];(function(y){e.on(p,"click",function(h){e.e_preventDefault(h),s(),y&&y(i)})})(u[t]),e.on(p,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),e.on(p,"focus",function(){++a})}}),e.defineExtension("openNotification",function(f,u){d(this,i);var n=c(this,f,u&&u.bottom),o=!1,l,r=u&&typeof u.duration<"u"?u.duration:5e3;function i(){o||(o=!0,clearTimeout(l),e.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n))}return m(i,"close"),e.on(n,"click",function(a){e.e_preventDefault(a),i()}),r&&(l=setTimeout(i,r)),i})})})();var E=b.exports,j=Object.freeze(N({__proto__:null,[Symbol.toStringTag]:"Module",default:E},[b.exports]));export{b as a,j as d};
|