@abtnode/webapp 1.17.7 → 1.17.8-beta-20260104-120132-cb5b1914
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/{AdapterDayjs-Bf62_KHd.js → AdapterDayjs-Vs-c78Fd.js} +1 -1
- package/dist/assets/{Add-DsCZxomS.js → Add-DDUKFJZu.js} +1 -1
- package/dist/assets/ArrowDropDown-D2C1Adnj.js +1 -0
- package/dist/assets/{Autocomplete-3RVWHTcY.js → Autocomplete-D16Gs8zB.js} +1 -1
- package/dist/assets/{Breadcrumbs-Ce4oQ7Yc.js → Breadcrumbs-Ce4ltGu-.js} +1 -1
- package/dist/assets/{ButtonGroup-BBkFKNOE.js → ButtonGroup-BHahRCP8.js} +1 -1
- package/dist/assets/{CSSTransition-Bdj4Mjb5.js → CSSTransition-CgzKcQFn.js} +1 -1
- package/dist/assets/{CallMerge-DB0zaZAy.js → CallMerge-DxAFzQUN.js} +1 -1
- package/dist/assets/{CardContent-DYbZwS2P.js → CardContent-lfT7ngTs.js} +1 -1
- package/dist/assets/{ChevronLeft-LUIxb-Gs.js → ChevronLeft-j4acQ5VL.js} +1 -1
- package/dist/assets/{ChevronRight-CMxsc1-C.js → ChevronRight-DkMJwq2n.js} +1 -1
- package/dist/assets/{Clear-C3sN6cHh.js → Clear-CwtlvQC0.js} +1 -1
- package/dist/assets/{Delete-Dfzx-_QK.js → Delete-Go0rVsno.js} +1 -1
- package/dist/assets/{DeleteOutline-DpQcJ9uI.js → DeleteOutline-Cb8Q1XUk.js} +1 -1
- package/dist/assets/{Done-B-lhh5Lr.js → Done-pmipBbat.js} +1 -1
- package/dist/assets/{Edit-BC3nr7bV.js → Edit-CcS7V9Ak.js} +1 -1
- package/dist/assets/{ErrorOutline-B8rqfUz9.js → ErrorOutline-DrIyPB6z.js} +1 -1
- package/dist/assets/{FilterList-rsYn09vK.js → FilterList-2EXj6a6n.js} +1 -1
- package/dist/assets/{Google-DvG9EWSC.js → Google-DktWgt0U.js} +1 -1
- package/dist/assets/{HelpOutline-DV_Sx2ni.js → HelpOutline-Hg9WCxla.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-DrxfizRQ.js → KeyboardArrowDown-BWVvLKw7.js} +1 -1
- package/dist/assets/{Launch-CtQmWL-A.js → Launch-BLe0UBZt.js} +1 -1
- package/dist/assets/{Link-DWefbDaG.js → Link-y1h-oO1V.js} +1 -1
- package/dist/assets/{ListItemButton-3I3mSJkP.js → ListItemButton-Ce85VoIN.js} +1 -1
- package/dist/assets/{ListSubheader-6QF36c7B.js → ListSubheader-BcKYZ8JH.js} +1 -1
- package/dist/assets/{LoadingButton-BYeGfUfG.js → LoadingButton-Dcydz6oY.js} +1 -1
- package/dist/assets/{MoreVert-trwGA3wl.js → MoreVert-CiOr5AIx.js} +1 -1
- package/dist/assets/{OpenInNew-BPFABZ3A.js → OpenInNew-Dk7iCLrt.js} +1 -1
- package/dist/assets/{Refresh-BHzztae5.js → Refresh-BobTHUut.js} +1 -1
- package/dist/assets/{Replay-DL5tXUkH.js → Replay-Dea3-rmp.js} +1 -1
- package/dist/assets/{Search-3NZ8vA4F.js → Search-BZH2Y-GF.js} +1 -1
- package/dist/assets/{Stepper-Czt9JHmf.js → Stepper-BIVcZycJ.js} +1 -1
- package/dist/assets/{TableSearch-B_n7jlL9.js → TableSearch-qOyd56Ni.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BUuAjiiA.js → ToggleButtonGroup-CATAh5dF.js} +1 -1
- package/dist/assets/{UnfoldMore-C_VudNPV.js → UnfoldMore-DVzs5Fd_.js} +1 -1
- package/dist/assets/{Verified-Wsp8TANt.js → Verified-DXMVMP7I.js} +1 -1
- package/dist/assets/{VerifiedUser-BtmbPbB1.js → VerifiedUser-D4F-7jv5.js} +1 -1
- package/dist/assets/{ViewList-B70rgoza.js → ViewList-CbzcdOde.js} +1 -1
- package/dist/assets/{_createAggregator-3CFJfow4.js → _createAggregator-Lfp1Ke0G.js} +1 -1
- package/dist/assets/{actions-BAAc2dMh.js → actions-CGUgsaws.js} +1 -1
- package/dist/assets/{actions-CVw0Ioh6.js → actions-DG35HPVB.js} +1 -1
- package/dist/assets/{agreement-CN5OCdHh.js → agreement-Cv-J-Fjv.js} +1 -1
- package/dist/assets/api-C_DWrTOw.js +1 -0
- package/dist/assets/{appearance-Bg3eFrYH.js → appearance-BZ4JSCZa.js} +1 -1
- package/dist/assets/{audit-logs-BqRm_F9G.js → audit-logs-BJKzDQxA.js} +1 -1
- package/dist/assets/{base-chart-CLPgrkli.js → base-chart-CwZKJ_pP.js} +1 -1
- package/dist/assets/{blocklet-DI09kb3z.js → blocklet-CVUABgLB.js} +1 -1
- package/dist/assets/{chain-C3ooT1VP.js → chain-W2rcXV0v.js} +1 -1
- package/dist/assets/{click-to-copy-D3DsyQ7B.js → click-to-copy-C9CEoG_G.js} +1 -1
- package/dist/assets/cloneDeep-xQSdy3ru.js +1 -0
- package/dist/assets/{config-navigation-B2tX-3vU.js → config-navigation-4S-dNGE7.js} +3 -3
- package/dist/assets/{connect-to-D2kofpuz.js → connect-to-XIJwhb9Y.js} +2 -2
- package/dist/assets/{cssMode-C-HXmW9S.js → cssMode-Du7mCixB.js} +1 -1
- package/dist/assets/{delete-confirm-y9uI0hXG.js → delete-confirm-DzRNsfZf.js} +1 -1
- package/dist/assets/{depsEqual-AZEPsRt3.js → depsEqual-DGV4LqLy.js} +1 -1
- package/dist/assets/{detail-CUJgqlsd.js → detail-BuBPXCBN.js} +3 -3
- package/dist/assets/{domains-Ds-t-5cC.js → domains-Dx67UXgN.js} +1 -1
- package/dist/assets/{download-CRh8yH_q.js → download-CH7_x1eB.js} +1 -1
- package/dist/assets/{edit.svg-BRRfsd3L.js → edit.svg-dSshOuok.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-SC5V9-Mk.js +1 -0
- package/dist/assets/engine-C0EQfmPn.js +1 -0
- package/dist/assets/{freemarker2-CGpgj78_.js → freemarker2-B9kx0OLY.js} +1 -1
- package/dist/assets/{get-safe-url-BR_QU8Dh.js → get-safe-url-BM3lF-2e.js} +1 -1
- package/dist/assets/getValidReactChildren-epDyUSMI.js +1 -0
- package/dist/assets/{graphqlMode-C9KkLkCB.js → graphqlMode-CkbaDQgp.js} +2 -2
- package/dist/assets/{handlebars-D_BNerME.js → handlebars-DUBIehcf.js} +1 -1
- package/dist/assets/{html-C8nmUyPA.js → html-COyeeKnL.js} +1 -1
- package/dist/assets/{html-title-CHWL92Ab.js → html-title-BmeDpLW7.js} +1 -1
- package/dist/assets/{htmlMode-Cbln7vuj.js → htmlMode-Bu-rnyRy.js} +1 -1
- package/dist/assets/{iframe-DJmf2DN1.js → iframe-LFRAd_0t.js} +1 -1
- package/dist/assets/{index-sdZCV0b1.js → index-B5dTlpQ6.js} +3 -3
- package/dist/assets/{index-BeQc3UkQ.js → index-BAG4sFIa.js} +474 -474
- package/dist/assets/{index-DqxSKSRU.js → index-BFlu8DSs.js} +1 -1
- package/dist/assets/{index-Bl4BVg_B.js → index-BFqzpwMp.js} +3 -3
- package/dist/assets/{index-C6cCABCg.js → index-BHBFPu4-.js} +1 -1
- package/dist/assets/{index-hAMgv1Ac.js → index-BII0tBQJ.js} +1 -1
- package/dist/assets/{index-DiZi9bmR.js → index-BJGsab_w.js} +1 -1
- package/dist/assets/{index-D3erh2pC.js → index-BMJQwcrZ.js} +3 -3
- package/dist/assets/{index-BHXV_Uyd.js → index-BNneiGbE.js} +1 -1
- package/dist/assets/{index-BgCWds86.js → index-B_CFto00.js} +1 -1
- package/dist/assets/{index-DNUQq8Bi.js → index-BgREj7bL.js} +1 -1
- package/dist/assets/{index-BbeJesOq.js → index-BiHajix6.js} +1 -1
- package/dist/assets/{index-aU6di1GB.js → index-BlTw-6BM.js} +1 -1
- package/dist/assets/{index--sEMugrz.js → index-BlwUzAku.js} +1 -1
- package/dist/assets/{index-CbALc3XH.js → index-Br-U1FnX.js} +1 -1
- package/dist/assets/{index-CJ1w1KYa.js → index-Bw9bFr7r.js} +9 -9
- package/dist/assets/{index-COUqJ9-z.js → index-C05tV0ZE.js} +1 -1
- package/dist/assets/{index-CxvZy8qq.js → index-C0YtVsBZ.js} +1 -1
- package/dist/assets/{index-O0QMxlIj.js → index-C2IzEz22.js} +1 -1
- package/dist/assets/{index-xcANvyL-.js → index-C81qWcGU.js} +1 -1
- package/dist/assets/{index-CODhl4Ao.js → index-C9MSpDFK.js} +1 -1
- package/dist/assets/{index--aRvqG_y.js → index-Cae5PiHg.js} +1 -1
- package/dist/assets/{index-BDT45MlS.js → index-Cb-DKFcI.js} +1 -1
- package/dist/assets/{index-D31fr5VL.js → index-D7So_MpN.js} +1 -1
- package/dist/assets/{index-52mqVMFt.js → index-DE_vu8sU.js} +1 -1
- package/dist/assets/{index-6nMPypbs.js → index-DLuK9hbg.js} +1 -1
- package/dist/assets/{index-ClbnPUTw.js → index-DTbf05gc.js} +1 -1
- package/dist/assets/{index-xEJdUfGB.js → index-DZS5ngzW.js} +1 -1
- package/dist/assets/{index-2MKd-1Yf.js → index-DkuvHf4y.js} +3 -3
- package/dist/assets/{index-DKUJWUc3.js → index-Dn2Htnmc.js} +1 -1
- package/dist/assets/{index-BozRXjdh.js → index-K0hgrWRS.js} +1 -1
- package/dist/assets/{index-D3Ou3XmE.js → index-UmFQuVKj.js} +1 -1
- package/dist/assets/{index-BAreTrrc.js → index-VknOfNJf.js} +1 -1
- package/dist/assets/{index-DOgexfV_.js → index-VmjW0dsI.js} +1 -1
- package/dist/assets/index-ZOh2DQ-e.js +1 -0
- package/dist/assets/{index-BZEpEbZE.js → index-Z_UozIXP.js} +1 -1
- package/dist/assets/{index-8mapgkUu.js → index-chjM6enQ.js} +1 -1
- package/dist/assets/{index-L59zcQ3y.js → index-fMsDDFcL.js} +1 -1
- package/dist/assets/{index-xstE610P.js → index-fVVKWgqI.js} +1 -1
- package/dist/assets/{index-D-SnE_aW.js → index-gCoH7vaA.js} +1 -1
- package/dist/assets/{index-Fn1MOxir.js → index-qc1lGVZ3.js} +1 -1
- package/dist/assets/{index-DOir4J5b.js → index-u_QBRhjP.js} +2 -2
- package/dist/assets/{index-BWJoCxfo.js → index-x0PsmbaE.js} +1 -1
- package/dist/assets/{index-TBuePazk.js → index-xAYo0tnA.js} +1 -1
- package/dist/assets/{index.esm-DWSKQCVf.js → index.esm-Bf_QZb6r.js} +1 -1
- package/dist/assets/{install-from-url-DDaq0WfF.js → install-from-url-nk7F4qMd.js} +1 -1
- package/dist/assets/{invitation-BtOYVKCc.js → invitation-B_9wi5W5.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-DSamcBqo.js → is-path-prefix-equal-CzIiUrel.js} +1 -1
- package/dist/assets/{item-DixRT1Ir.js → item-DkZh8Hhp.js} +1 -1
- package/dist/assets/{javascript-COnhTyPR.js → javascript-Q7umZWAd.js} +1 -1
- package/dist/assets/{jsonMode-B-wg4b0L.js → jsonMode-C6c2lIq6.js} +1 -1
- package/dist/assets/{liquid-DkJ8XF8g.js → liquid-CUNhEHdT.js} +1 -1
- package/dist/assets/{list-header-CQPLxTLi.js → list-header-iCOCzxwu.js} +1 -1
- package/dist/assets/{lock.svg-CfRs8nBP.js → lock.svg-BHzJlnL9.js} +1 -1
- package/dist/assets/{log-3m4zIEL-.js → log-fZVSp3m5.js} +1 -1
- package/dist/assets/{lottie-react.esm-Ho0K4HxG.js → lottie-react.esm-DdCGF8TN.js} +1 -1
- package/dist/assets/{mdx-BaqshKqy.js → mdx-BVwzzx49.js} +1 -1
- package/dist/assets/{memory-Bmu9KdH5.js → memory-D5_ocLrh.js} +1 -1
- package/dist/assets/{metric-CYgfR-6x.js → metric-CKUrN2-J.js} +1 -1
- package/dist/assets/omit-AtPtqkZn.js +1 -0
- package/dist/assets/{overview-DPxRgZrc.js → overview-DpaUtqpu.js} +1 -1
- package/dist/assets/{permission-fAWDL6eA.js → permission-CHoPVbRo.js} +1 -1
- package/dist/assets/{preference-BdCzfdKd.js → preference-ByJourOS.js} +3 -3
- package/dist/assets/{python-DDh1Sld9.js → python-DLHaQGBR.js} +1 -1
- package/dist/assets/{raf-schd.esm-y75m-HYf.js → raf-schd.esm-CCmBZGJO.js} +1 -1
- package/dist/assets/{razor-B6iT4xzc.js → razor-CKWImlfd.js} +1 -1
- package/dist/assets/{rotate-session-key-Bh2rfrqq.js → rotate-session-key-DUFrAiqM.js} +1 -1
- package/dist/assets/{runtime-Br6d5OIR.js → runtime-DjHvP0dh.js} +1 -1
- package/dist/assets/schema-Cs8BMbik.js +1 -0
- package/dist/assets/sdk-BgSACA1b.js +1 -0
- package/dist/assets/{service-CktTTJWl.js → service-BKneL2po.js} +1 -1
- package/dist/assets/{shorten-label-hqt7jmPr.js → shorten-label-Bbwb6iCZ.js} +1 -1
- package/dist/assets/{simple-select-CQeor5tC.js → simple-select-Dmadn013.js} +1 -1
- package/dist/assets/{spaces-CfDVuFGr.js → spaces-DiNJcyfo.js} +1 -1
- package/dist/assets/{status-B5KZ8DJC.js → status-BBz_v2_j.js} +1 -1
- package/dist/assets/{status--oG1pao2.js → status-Cjdz-yj2.js} +1 -1
- package/dist/assets/{switch-control-Ce7-RZ39.js → switch-control-CUmdJFfi.js} +1 -1
- package/dist/assets/{table-icons-CRF7M3DQ.js → table-icons-Cz9AeFAu.js} +1 -1
- package/dist/assets/{team-B5ZkAUsr.js → team-CBKW6kF_.js} +1 -1
- package/dist/assets/{toLower-D3hDe9vm.js → toLower-CoePqXpD.js} +1 -1
- package/dist/assets/toUpper-cyn7A90V.js +1 -0
- package/dist/assets/{traffic-DLkNU8lW.js → traffic-BA_E7yI0.js} +1 -1
- package/dist/assets/{tsMode-Cgz7fmer.js → tsMode-CFU_SCMw.js} +1 -1
- package/dist/assets/{typescript-DeFz7cju.js → typescript-CQJv57lf.js} +1 -1
- package/dist/assets/{url-evaluation-CnA0uWcs.js → url-evaluation-2HGMyS33.js} +1 -1
- package/dist/assets/{url-join-Di70zMv6.js → url-join-Cb-sLZRl.js} +1 -1
- package/dist/assets/{use-mobile-DHdENrRR.js → use-mobile-BZHIPj7_.js} +1 -1
- package/dist/assets/{use-mobile-BoSC-OO1.js → use-mobile-CnGwCUj_.js} +1 -1
- package/dist/assets/{useAsync-EIK7zv0J.js → useAsync-DOTk7wjs.js} +1 -1
- package/dist/assets/{useAsyncRetry-CDmpGaec.js → useAsyncRetry-CsHLaHBL.js} +1 -1
- package/dist/assets/{useLocalStorage-CAyV6Ga8.js → useLocalStorage-Cf7Ll0kD.js} +1 -1
- package/dist/assets/{useThemeProps-BT_wjfR7.js → useThemeProps-C7GjsUo9.js} +1 -1
- package/dist/assets/{util-D64hwso0.js → util-BcCxYadv.js} +1 -1
- package/dist/assets/{wait-container-XW4Jhu4r.js → wait-container-Da9bS4MH.js} +1 -1
- package/dist/assets/{without-wallet-BasvtIaA.js → without-wallet-C1RpuGzp.js} +1 -1
- package/dist/assets/wrap-locale-xftzzPT-.js +1 -0
- package/dist/assets/{xml-C_dKn8b3.js → xml-B3UH2gda.js} +1 -1
- package/dist/assets/{yaml-BUcCDLGx.js → yaml-z0fSM7T1.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-Cm-Ihf0X.js +0 -1
- package/dist/assets/api-DSxoqzJR.js +0 -1
- package/dist/assets/cloneDeep-Dt4wqcIj.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-D3p6zzp2.js +0 -1
- package/dist/assets/engine-PI4c2H--.js +0 -1
- package/dist/assets/getValidReactChildren-COj4IOg4.js +0 -1
- package/dist/assets/index-CNkhBuLJ.js +0 -1
- package/dist/assets/omit-BmEXjsUv.js +0 -1
- package/dist/assets/schema-BeTx8rxj.js +0 -1
- package/dist/assets/sdk-D4uiEFbJ.js +0 -1
- package/dist/assets/toUpper-DLp0iOYu.js +0 -1
- package/dist/assets/wrap-locale--ZpyxCeq.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-
|
|
2
|
-
import{V as He,n as qe,bo as Ct,r as b,aI as F,j as d,Z as Qe,K as Y,v as Ge,w as Tt,i as j,bD as jt,H as J,_ as Ke,bn as We,A as Pt,u as At,d as Dt,bE as Ot,bF as Lt,bG as Ae,bH as Bt,bI as Mt,I as De,C as Oe,N as Rt,bJ as Nt,T as ue,M as Ft,bK as I,s as Vt}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-DpaUtqpu.js","./index-BAG4sFIa.js","./index-DGkT7afN.css","./HelpOutline-Hg9WCxla.js","./index-BojVbZw0.js","./index-DLuK9hbg.js","./blocklet-CVUABgLB.js","./team-CBKW6kF_.js","./url-evaluation-2HGMyS33.js","./status-BBz_v2_j.js","./index-ZOh2DQ-e.js","./ErrorOutline-DrIyPB6z.js","./omit-AtPtqkZn.js","./metric-CKUrN2-J.js","./CardContent-lfT7ngTs.js","./spaces-DiNJcyfo.js","./api-C_DWrTOw.js","./domains-Dx67UXgN.js","./useAsync-DOTk7wjs.js","./permission-CHoPVbRo.js","./Delete-Go0rVsno.js","./actions-CGUgsaws.js","./delete-confirm-DzRNsfZf.js","./click-to-copy-C9CEoG_G.js","./status-Cjdz-yj2.js","./VerifiedUser-D4F-7jv5.js","./Add-DDUKFJZu.js","./CallMerge-DxAFzQUN.js","./toLower-CoePqXpD.js","./use-mobile-BZHIPj7_.js","./util-BcCxYadv.js","./is-path-prefix-equal-CzIiUrel.js","./engine-C0EQfmPn.js","./OpenInNew-Dk7iCLrt.js","./LoadingButton-Dcydz6oY.js","./index-BiHajix6.js","./actions-DG35HPVB.js","./useLocalStorage-Cf7Ll0kD.js","./MoreVert-CiOr5AIx.js","./DeleteOutline-Cb8Q1XUk.js","./get-safe-url-BM3lF-2e.js","./ButtonGroup-BHahRCP8.js","./getValidReactChildren-epDyUSMI.js","./ChevronRight-DkMJwq2n.js","./html-title-BmeDpLW7.js","./preference-ByJourOS.js","./index-C9MSpDFK.js","./Done-pmipBbat.js","./edit.svg-dSshOuok.js","./ArrowDropDown-D2C1Adnj.js","./index-BlTw-6BM.js","./iframe-LFRAd_0t.js","./Autocomplete-D16Gs8zB.js","./ListSubheader-BcKYZ8JH.js","./rotate-session-key-DUFrAiqM.js","./visuallyHidden-Dan1xhjv.js","./chain-W2rcXV0v.js","./switch-control-CUmdJFfi.js","./index.esm-Bf_QZb6r.js","./index-C2IzEz22.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./simple-select-Dmadn013.js","./index-Z_UozIXP.js","./FilterList-2EXj6a6n.js","./CSSTransition-CgzKcQFn.js","./emotion-cache.browser.esm-SC5V9-Mk.js","./depsEqual-DGV4LqLy.js","./TableSearch-qOyd56Ni.js","./Search-BZH2Y-GF.js","./Clear-CwtlvQC0.js","./use-mobile-CnGwCUj_.js","./appearance-BZ4JSCZa.js","./config-navigation-4S-dNGE7.js","./cloneDeep-xQSdy3ru.js","./_createAggregator-Lfp1Ke0G.js","./raf-schd.esm-CCmBZGJO.js","./ListItemButton-Ce85VoIN.js","./index-chjM6enQ.js","./KeyboardArrowDown-BWVvLKw7.js","./index-BJGsab_w.js","./index-DTbf05gc.js","./shorten-label-Bbwb6iCZ.js","./Replay-Dea3-rmp.js","./Refresh-BobTHUut.js","./traffic-BA_E7yI0.js","./ChevronLeft-j4acQ5VL.js","./index-DBii9-f-.js","./base-chart-CwZKJ_pP.js","./index-VknOfNJf.js","./AdapterDayjs-Vs-c78Fd.js","./useThemeProps-C7GjsUo9.js","./audit-logs-BJKzDQxA.js","./index-DZS5ngzW.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-DVzs5Fd_.js","./index-D7So_MpN.js","./ua-parser-DP5omx3I.js","./index-BgREj7bL.js","./Google-DktWgt0U.js","./list-header-iCOCzxwu.js","./ToggleButtonGroup-CATAh5dF.js","./lock.svg-BHzJlnL9.js","./index-fMsDDFcL.js","./ViewList-CbzcdOde.js","./Verified-DXMVMP7I.js","./index-xAYo0tnA.js","./sdk-BgSACA1b.js","./service-BKneL2po.js","./table-icons-Cz9AeFAu.js","./Edit-CcS7V9Ak.js","./index-BFqzpwMp.js","./Link-y1h-oO1V.js","./item-DkZh8Hhp.js","./Launch-BLe0UBZt.js","./item-G0iZE90Q.css","./index-fVVKWgqI.js","./url-join-Cb-sLZRl.js","./connect-to-XIJwhb9Y.js","./index-DRYJ0xIl.js","./agreement-Cv-J-Fjv.js","./install-from-url-nk7F4qMd.js","./without-wallet-C1RpuGzp.js","./Stepper-BIVcZycJ.js","./toUpper-cyn7A90V.js","./log-fZVSp3m5.js","./download-CH7_x1eB.js","./runtime-DjHvP0dh.js","./memory-D5_ocLrh.js","./index-Cb-DKFcI.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{V as He,n as qe,bo as Ct,r as b,aI as F,j as d,Z as Qe,K as Y,v as Ge,w as Tt,i as j,bD as jt,H as J,_ as Ke,bn as We,A as Pt,u as At,d as Dt,bE as Ot,bF as Lt,bG as Ae,bH as Bt,bI as Mt,I as De,C as Oe,N as Rt,bJ as Nt,T as ue,M as Ft,bK as I,s as Vt}from"./index-BAG4sFIa.js";import{T as zt,u as $t}from"./html-title-BmeDpLW7.js";import{B as Ut}from"./status-Cjdz-yj2.js";import{D as Ht,B as qt}from"./actions-DG35HPVB.js";import{u as Qt}from"./blocklet-CVUABgLB.js";import{p as Gt}from"./index-Br-U1FnX.js";import{B as Kt,a as Wt,T as Jt}from"./team-CBKW6kF_.js";import{P as Xt}from"./permission-CHoPVbRo.js";import{B as Zt}from"./Breadcrumbs-Ce4ltGu-.js";import"./useLocalStorage-Cf7Ll0kD.js";import"./MoreVert-CiOr5AIx.js";import"./DeleteOutline-Cb8Q1XUk.js";import"./get-safe-url-BM3lF-2e.js";import"./ButtonGroup-BHahRCP8.js";import"./getValidReactChildren-epDyUSMI.js";import"./url-evaluation-2HGMyS33.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{V as He,n as qe,bo as Ct,r as b,aI as F,j as d,Z as Qe,K as Y,v as Ge,w a
|
|
|
9
9
|
*
|
|
10
10
|
* @license MIT
|
|
11
11
|
* @version 3.1.1
|
|
12
|
-
*/const Je=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Je,...ee}),me=Object.freeze({...H,body:"",hidden:!1});function Yt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Le(e,t){const n=Yt(e,t);for(const r in me)r in ee?r in e&&!(r in n)&&(n[r]=ee[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function en(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function tn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Le(r[c]||o[c],s)}return i(t),n.forEach(i),Le(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=en(e);for(const o in r){const s=r[o];s&&(t(o,tn(e,o,s)),n.push(o))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!X(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!X(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!X(c,n)?null:c}return null},X=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Je};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fe(e,on))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(V)||typeof s.body!="string"||!fe(s,me))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(V)||typeof i!="string"||!n[i]&&!r[i]||!fe(s,me))return null}return t}const te=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=te[e]||(te[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function Ee(e,t){return rn(t)?nn(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(te)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(te[o]||{})).forEach(i=>{const c=C(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let _e=!1;function ln(e){return _e}function q(e){const t=typeof e=="string"?R(e,!0,_e):e;if(t){const n=C(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function un(e,t){const n=R(e,!0,_e);if(!n)return!1;const r=C(n.provider,n.prefix);return cn(r,n.name,t)}function Xe(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!X({provider:t,prefix:n,name:"a"}))return!1;const r=C(t,n);return!!Ee(r,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ze=Object.freeze({width:null,height:null}),Ye=Object.freeze({...Ze,...ee}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(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 r=e.split(pn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function re(e,t){const n={...H,...e},r={...Ye,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const y=[],E=g.hFlip,A=g.vFlip;let w=g.rotate;E?A?w+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):A&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=o.height/2+o.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:S=o.width/2+o.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(o.left!==o.top&&(S=o.left,o.left=o.top,o.top=S),o.width!==o.height&&(S=o.width,o.width=o.height,o.height=S)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=he(p,l/a)):(u=i==="auto"?l:i,p=c===null?he(u,a/l):c==="auto"?a:c);const f={},h=(g,y)=>{hn(y)||(f[g]=y.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function et(e,t=bn){const n=[];let r;for(;r=gn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const D={local:!0,session:!0},tt={local:new Set,session:new Set};let Ce=!1;function vn(e){Ce=e}const Be="iconify2",U="iconify",nt=U+"-count",Me=U+"-version",ot=36e5,xn=168;function ge(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Re(e,t){try{e.removeItem(t)}catch{}}function be(e,t){return Te(e,nt,t.toString())}function ye(e){return parseInt(ge(e,nt))||0}let K=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}D[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ge(n,Me);if(r!==Be){if(r){const c=ye(n);for(let l=0;l<c;l++)Re(n,U+l.toString())}Te(n,Me,Be),be(n,0);return}const o=Math.floor(Date.now()/ot)-xn,s=c=>{const l=U+c.toString(),a=ge(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Re(n,l)}};let i=ye(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,be(n,i)):tt[e].add(c))}function it(){if(!Ce){vn(!0);for(const e in D)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=C(r,o);if(!Ee(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function ct(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ve=Object.create(null);function at(e,t){ve[e]=t}function xe(e){return ve[e]||ve[""]}function je(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 se=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;N.length>0;)N.length===1||Math.random()>.5?Z.push(N.shift()):Z.push(N.pop());se[""]=je({resources:["https://api.iconify.design"].concat(Z)});function lt(e,t){const n=je(t);return n===null?!1:(se[e]=n,!0)}function ie(e){return se[e]}function wn(){return Object.keys(se)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ne=Sn();function In(e){ne=e}function kn(){return ne}function En(e,t){const n=ie(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function _n(e){return e===404}const Cn=(e,t,n)=>{const r=[],o=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function Tn(e){if(typeof e=="string"){const t=ie(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!ne){n("abort",424);return}let r=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ne(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function ut(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Dn(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 r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ut([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let On=0;function Ln(e,t,n){const r=On++,o=ut.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Bn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Mn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const k=Math.floor(Math.random()*m.length);i.push(m[k]),m=m.slice(0,k).concat(m.slice(k+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(clearTimeout(p),p=null)}function y(){l==="pending"&&(l="aborted"),g(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function E(m,k){k&&(h=[]),typeof m=="function"&&h.push(m)}function A(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:E,abort:y}}function w(){l="failed",h.forEach(m=>{m(void 0,u)})}function S(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function L(m,k,_){const B=k!=="success";switch(f=f.filter(T=>T!==m),l){case"pending":break;case"failed":if(B||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){u=_,w();return}if(B){u=_,f.length||(i.length?v():w());return}if(g(),S(),!e.random){const T=e.resources.indexOf(m.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(_)})}function v(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{g(),l==="pending"&&(S(),w())},e.timeout);return}w();return}const k={status:"pending",resource:m,callback:(_,B)=>{L(k,_,B)}};f.push(k),a++,p=setTimeout(v,e.rotate),n(m,t,k.callback)}return setTimeout(v),A}function ft(e){const t={...Mn,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=Rn(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ne(){}const de=Object.create(null);function Nn(e){if(!de[e]){const t=ie(e);if(!t)return;const n=ft(t),r={config:t,redundancy:n};de[e]=r}return de[e]}function dt(e,t,n){let r,o;if(typeof e=="string"){const s=xe(e);if(!s)return n(void 0,424),Ne;o=s.send;const i=Nn(e);i&&(r=i.redundancy)}else{const s=je(e);if(s){r=ft(s);const i=e.resources?e.resources[0]:"",c=xe(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Ne):r.query(t,o,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in D)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Ce||it();function n(r){let o;if(!D[r]||!(o=rt(r)))return;const s=tt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ye(o),!be(o,i+1))return;const c={cached:Math.floor(Date.now()/ot),provider:e.provider,data:t};return Te(o,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fe(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Dn(e)}))}function $n(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:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=xe(n)))return;s.prepare(n,r,o).forEach(c=>{dt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ee(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Pe=(e,t)=>{const n=Bn(e,!0,ln()),r=An(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Fe)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=C(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&$n(l,o[a][u])}),t?Ln(t,r,s):Fe},Hn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}Pe([r||e],o=>{if(o.length&&r){const s=q(r);if(s){t({...H,...s});return}}n(e)})});function pt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ze?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ce={...Ye,inline:!1},pe="iconify",we="iconify-inline",P="iconifyData"+Date.now();let O=[];function Q(e){for(let t=0;t<O.length;t++){const n=O[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function mt(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},O.push(n),n)}function qn(){if(document.documentElement)return mt(document.documentElement);O.push({node:()=>document.documentElement})}function Qn(e){O=O.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function G(){return O}function Gn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Kn={childList:!0,subtree:!0,attributes:!0};function ht(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Wn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[P]!==void 0){n.paused||ht(e);return}}}function gt(e,t){e.observer.instance.observe(t,Kn)}function oe(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(Wn.bind(null,e)),gt(e,n),t.paused||ht(e))}function Ve(){G().forEach(oe)}function bt(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 Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(bt)),t){Ve();return}Gn(Ve)}function Se(e){(e?[e]:G()).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 Xn(e){if(e){const t=Q(e);t&&Se(t)}else Se()}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){oe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?gt(t,r):oe(t);else return}})}function Zn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function yt(e,t=!1){const n=mt(e,t);return oe(n),n}function vt(e){const t=Q(e);t&&(bt(t),Qn(e))}function Yn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ce)if(n[o]!==r[o])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const r={...ce,inline:e.classList&&e.classList.contains(we)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=eo(o));const s=e.getAttribute("data-flip");typeof s=="string"&&no(r,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const co="svg."+pe+", i."+pe+", span."+pe+", i."+we+", span."+we;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const r=n[P]||n.tagName.toLowerCase()!=="svg"?io(n):null;r&&t.push({node:n,props:r})}),t}function xt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function wt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function St(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function It(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function kt(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=re(n,o),i=e[P],c=xt(et(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=uo(c);const l=r.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=wt(t.icon),p=St(l,u,new Set(i&&i.addedClasses),e),f=It(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[P]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},ke={"background-color":"currentColor"},Et={"background-color":"transparent"},ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},$e={"-webkit-mask":ke,mask:ke,background:Et};for(const e in $e){const t=$e[e];for(const n in ze)t[e+"-"+n]=ze[n]}function Ue(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,r){const o=t.customisations,s=re(n,o),i=s.attributes,c=e[P],l=xt(s.body,{...i,width:n.width+"",height:n.height+""}),a=wt(t.icon),u=St(e,a,new Set(c&&c.addedClasses)),f={"--svg":mo(l),width:Ue(i.width),height:Ue(i.height),...ho,...r?ke:Et};o.inline&&(f["vertical-align"]="-0.125em");const h=It(e,f,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[P]=g,e}let W=!1;function bo(){W||(W=!0,setTimeout(()=>{W&&(W=!1,M())}))}function M(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:G()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,Se(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...p},h);return}}kt(a,u,p)}ao(s).forEach(({node:a,props:u})=>{const p=a[P];if(!p){const{status:h,icon:g}=r(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[P]={...u,status:h};return}let f;if(Yn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?vt(s):t&&i?yt(s,!0):c&&o.observer&&Ie(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Pe(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?M(t):M({node:e,temporary:!0},!0)}function _t(e,t,n=!1){const r=q(e);if(!r)return null;const o=R(e),s=pt(ce,t||{}),i=kt(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return _t(e,t,!1)}function wo(e,t){return _t(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const r=pt(ce,t||{});return re(n,r)}function Io(e){e?yo(e):M()}if(typeof document<"u"&&typeof window<"u"){qn();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(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Xe(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(M),M()})}function ko(e,t){ct(e,t!==!1)}function Eo(e){ct(e,!0)}at("",Pn);if(typeof document<"u"&&typeof window<"u"){it();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;lt(n,o)||console.error(r)}catch{console.error(r)}}}}const _o={getAPIConfig:ie,setAPIModule:at,sendAPIQuery:dt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:lt,loadIcons:Pe,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Xe,replaceIDs:et,calculateSize:he,buildIcon:re,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:yt,stopObserving:vt,pauseObserver:Xn,resumeObserver:Zn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return j.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=j.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Po(){const{t:e}=He(),{api:t}=qe(),{blocklet:n}=Qt(),{inService:r}=Ct(),[o,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(j.isBlockletRunning(n)){J.error(e("blocklet.migrate.tip.running"));return}const f=To(n);if(f){J.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){J.error(Ke(f))}},u=()=>{const f=jo(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Y,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Ge,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Y,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(Tt,{popup:!0,open:o,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:jt(n,!0),title:j.getDisplayName(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:p},"connect")]}const Ao=b.lazy(()=>I(()=>import("./overview-DPxRgZrc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./domains-Ds-t-5cC.js"),__vite__mapDeps([17,1,2,18,6,19,20,21,22,23,24,25,14,26,27,28,29,5,30,31,32,33,34,10]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./index-BbeJesOq.js"),__vite__mapDeps([35,1,2,36,37,38,39,40,41,42,8,19,43,44,10,45,12,46,47,48,49,50,51,52,53,54,55,6,23,7,5,56,9,11,57,58,59,60,61,62,20,26,63,64,65,66,67,68,69,70,71,14]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./appearance-Bg3eFrYH.js"),__vite__mapDeps([72,1,2,6,71]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./config-navigation-B2tX-3vU.js"),__vite__mapDeps([73,1,2,12,74,46,75,67,6,59,60,61,76,7,8,36,37,38,39,40,41,42,19,58,62,44,70,49,16,52,53,77,29,78,79,69,26,33,80,51,34]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-ClbnPUTw.js"),__vite__mapDeps([81,1,2,63,64,65,66,59,60,61,67,68,69,70,38,82,5,44,83,84,85,51,86,43,87,88,89,90,91,55]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-BqRm_F9G.js"),__vite__mapDeps([92,1,2,68,69,70,37,93,94,95,96,82,7,6,8]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-D31fr5VL.js").then(e=>e.i),__vite__mapDeps([97,1,2,63,64,65,66,59,60,61,67,68,69,70,38,44,7,6,8,98,71,99,41,42,19,100,74,26,48,101,56,102,103]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./index-L59zcQ3y.js").then(e=>e.i),__vite__mapDeps([104,1,2,26,105,63,64,65,66,59,60,61,67,68,69,70,38,99,41,42,7,6,8,58,100,74,52,53,96,19,23,90,91,55,44,5,106,39,11,107,108,78,71,20,21,82,98]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./service-CktTTJWl.js"),__vite__mapDeps([109,1,2,110,64,65,66,87,61,76,60,91,44,26,20,70,111,43,86,69,49]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./index-Bl4BVg_B.js"),__vite__mapDeps([112,1,2,36,37,38,39,40,41,42,8,19,57,6,111,110,64,65,66,87,61,76,60,91,44,26,20,70,43,86,69,49,45,12,46,47,48,50,51,23,99,113,114,78,79,52,53,106,25,115,22,116,117,118,32,119,4,15,16,33,120,3,121,93,94,95,100,74,122,24,123,5,77,124,30,31,71,11,103,83,21,125,7]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./log-3m4zIEL-.js"),__vite__mapDeps([126,1,2,37,127,41,42,53]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./runtime-Br6d5OIR.js"),__vite__mapDeps([128,1,2,63,64,65,66,59,60,61,67,68,69,70,38,6,120,129,88,89,24,102,42]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./traffic-DLkNU8lW.js").then(e=>e.t),__vite__mapDeps([85,1,2,51,86,43,87,61,88,89,90,91,65,55]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-BDT45MlS.js"),__vite__mapDeps([130,1,2,44,6,71,119,99,41,42,4,15,16,39,33,120,3,5,89,63,64,65,66,59,60,61,67,68,69,70,38,40,57,101]),import.meta.url)),Qo=({children:e})=>e;function Go(){const e=Pt(),{tab:t="overview"}=We(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Wt(),{refresh:l}=At(),{t:a}=He(),{session:u}=qe(),{data:p}=Dt(),f=Ot(()=>u.user?.role&&Lt.includes(u.user.role),[u]),h=b.useCallback(()=>d.jsx(Ro,{scope:n,blocklets:p}),[n,p]),g=b.useCallback(()=>f?d.jsx(Mo,{blocklet:r}):d.jsx(Gt,{status:403}),[r,f]),y=r?.environments.find(x=>x.key==="BLOCKLET_APP_URL")?.value||window.location.origin,E=x=>Mt(x,y),A=x=>{e(`/blocklets/${n}/${x}`)},w=x=>{x&&i(x),c()},S=!r||Ae(r.status)?[]:j.getAppMissingConfigs(r);let L=null;const v=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Bt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!S.length,children:a("common.components")}),value:"components"}];if(o)L=d.jsxs(d.Fragment,{children:[d.jsx(Qe,{severity:"error",children:Ke(o)}),d.jsx(Ge,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const x={overview:d.jsx(Ao,{}),domains:d.jsx(Do,{}),configuration:Oo,appearance:Lo,navigation:Bo,services:Vo,members:d.jsx(Fo,{type:"blocklet",createPassportSvg:E}),passports:No,components:zo,"audit-logs":h,notifications:g,logs:$o,runtime:d.jsx(Uo,{}),traffic:d.jsx(Ho,{client:s,did:n}),didSpaces:d.jsx(qo,{})};t==="configuration"&&Ae(r.status)&&A("overview"),v.push({label:a("common.domains"),value:"domains"}),v.push({label:a("common.members"),value:"members"}),v.push({label:a("team.member.passports"),value:"passports"}),v.push({label:a("common.configuration"),value:"configuration"}),v.push({label:a("common.appearance"),value:"appearance"}),v.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&v.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===F.APP_STRUCT_VERSION&&v.push({label:a("common.logs"),value:"logs"}),v.push({label:a("common.configNavigation"),value:"navigation"}),v.push({label:a("common.runtime"),value:"runtime"}),v.push({label:a("common.traffic"),value:"traffic"}),v.push({label:a("storage.spaces.title"),value:"didSpaces"}),j.getBlockletServices(r).length&&v.splice(2,0,{label:a("blocklet.services"),value:"services"});const le=x[t]||x.overview;L=d.jsxs(Ht,{type:"components",children:[!j.isExternalBlocklet(r)&&d.jsx(zt,{tabs:v,current:t,onChange:A,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(b.Suspense,{fallback:d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})}),children:b.isValidElement(le)?le:d.jsx(le,{blocklet:r,onUpdate:w,createPassportSvg:E})})})]})}else L=d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})});const m=()=>{},k=({action:x,error:ae})=>{if(ae){J.error(ae.message);return}x==="remove"?(l(),e("/blocklets")):c()},_=v.find(x=>x.value===t),B=r?Jt:Qo,T=$t(_,r?.meta?.title||a("common.blocklets"));return d.jsxs(B,{teamDid:n,children:[T,d.jsxs(Ko,{children:[d.jsxs(Zt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Rt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Nt,{to:`/blocklets/${n}/overview`,style:x=>x?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(ue,{color:"textSecondary",children:_?_.breadcrumbsLabel||_.label:""})]}),d.jsxs(ue,{component:"div",className:"page-header",children:[d.jsxs(ue,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Ft,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Y,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Y,{children:j.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(Ut,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Xt,{permission:"mutate_blocklets",children:!!r&&!j.isExternalBlocklet(r)&&d.jsx(qt,{className:"page-actions",blocklet:r,onStart:m,onComplete:k,variant:"group",source:"blocklet-detail"})})]}),d.jsx(Po,{}),L]})]})}function fr(){const{did:e}=We();return e?d.jsx(Kt,{did:e,children:d.jsx(Go,{})}):null}const Ko=Vt.main`
|
|
12
|
+
*/const Je=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Je,...ee}),me=Object.freeze({...H,body:"",hidden:!1});function Yt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Le(e,t){const n=Yt(e,t);for(const r in me)r in ee?r in e&&!(r in n)&&(n[r]=ee[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function en(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function tn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Le(r[c]||o[c],s)}return i(t),n.forEach(i),Le(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=en(e);for(const o in r){const s=r[o];s&&(t(o,tn(e,o,s)),n.push(o))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!X(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!X(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!X(c,n)?null:c}return null},X=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Je};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fe(e,on))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(V)||typeof s.body!="string"||!fe(s,me))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(V)||typeof i!="string"||!n[i]&&!r[i]||!fe(s,me))return null}return t}const te=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=te[e]||(te[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function Ee(e,t){return rn(t)?nn(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(te)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(te[o]||{})).forEach(i=>{const c=C(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let _e=!1;function ln(e){return _e}function q(e){const t=typeof e=="string"?R(e,!0,_e):e;if(t){const n=C(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function un(e,t){const n=R(e,!0,_e);if(!n)return!1;const r=C(n.provider,n.prefix);return cn(r,n.name,t)}function Xe(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!X({provider:t,prefix:n,name:"a"}))return!1;const r=C(t,n);return!!Ee(r,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ze=Object.freeze({width:null,height:null}),Ye=Object.freeze({...Ze,...ee}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(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 r=e.split(pn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function re(e,t){const n={...H,...e},r={...Ye,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const y=[],E=g.hFlip,A=g.vFlip;let w=g.rotate;E?A?w+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):A&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=o.height/2+o.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:S=o.width/2+o.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(o.left!==o.top&&(S=o.left,o.left=o.top,o.top=S),o.width!==o.height&&(S=o.width,o.width=o.height,o.height=S)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=he(p,l/a)):(u=i==="auto"?l:i,p=c===null?he(u,a/l):c==="auto"?a:c);const f={},h=(g,y)=>{hn(y)||(f[g]=y.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function et(e,t=bn){const n=[];let r;for(;r=gn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const D={local:!0,session:!0},tt={local:new Set,session:new Set};let Ce=!1;function vn(e){Ce=e}const Be="iconify2",U="iconify",nt=U+"-count",Me=U+"-version",ot=36e5,xn=168;function ge(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Re(e,t){try{e.removeItem(t)}catch{}}function be(e,t){return Te(e,nt,t.toString())}function ye(e){return parseInt(ge(e,nt))||0}let K=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}D[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ge(n,Me);if(r!==Be){if(r){const c=ye(n);for(let l=0;l<c;l++)Re(n,U+l.toString())}Te(n,Me,Be),be(n,0);return}const o=Math.floor(Date.now()/ot)-xn,s=c=>{const l=U+c.toString(),a=ge(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Re(n,l)}};let i=ye(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,be(n,i)):tt[e].add(c))}function it(){if(!Ce){vn(!0);for(const e in D)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=C(r,o);if(!Ee(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function ct(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ve=Object.create(null);function at(e,t){ve[e]=t}function xe(e){return ve[e]||ve[""]}function je(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 se=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;N.length>0;)N.length===1||Math.random()>.5?Z.push(N.shift()):Z.push(N.pop());se[""]=je({resources:["https://api.iconify.design"].concat(Z)});function lt(e,t){const n=je(t);return n===null?!1:(se[e]=n,!0)}function ie(e){return se[e]}function wn(){return Object.keys(se)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ne=Sn();function In(e){ne=e}function kn(){return ne}function En(e,t){const n=ie(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function _n(e){return e===404}const Cn=(e,t,n)=>{const r=[],o=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function Tn(e){if(typeof e=="string"){const t=ie(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!ne){n("abort",424);return}let r=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ne(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function ut(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Dn(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 r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ut([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let On=0;function Ln(e,t,n){const r=On++,o=ut.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Bn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Mn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const k=Math.floor(Math.random()*m.length);i.push(m[k]),m=m.slice(0,k).concat(m.slice(k+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(clearTimeout(p),p=null)}function y(){l==="pending"&&(l="aborted"),g(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function E(m,k){k&&(h=[]),typeof m=="function"&&h.push(m)}function A(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:E,abort:y}}function w(){l="failed",h.forEach(m=>{m(void 0,u)})}function S(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function L(m,k,_){const B=k!=="success";switch(f=f.filter(T=>T!==m),l){case"pending":break;case"failed":if(B||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){u=_,w();return}if(B){u=_,f.length||(i.length?v():w());return}if(g(),S(),!e.random){const T=e.resources.indexOf(m.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(_)})}function v(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{g(),l==="pending"&&(S(),w())},e.timeout);return}w();return}const k={status:"pending",resource:m,callback:(_,B)=>{L(k,_,B)}};f.push(k),a++,p=setTimeout(v,e.rotate),n(m,t,k.callback)}return setTimeout(v),A}function ft(e){const t={...Mn,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=Rn(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ne(){}const de=Object.create(null);function Nn(e){if(!de[e]){const t=ie(e);if(!t)return;const n=ft(t),r={config:t,redundancy:n};de[e]=r}return de[e]}function dt(e,t,n){let r,o;if(typeof e=="string"){const s=xe(e);if(!s)return n(void 0,424),Ne;o=s.send;const i=Nn(e);i&&(r=i.redundancy)}else{const s=je(e);if(s){r=ft(s);const i=e.resources?e.resources[0]:"",c=xe(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Ne):r.query(t,o,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in D)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Ce||it();function n(r){let o;if(!D[r]||!(o=rt(r)))return;const s=tt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ye(o),!be(o,i+1))return;const c={cached:Math.floor(Date.now()/ot),provider:e.provider,data:t};return Te(o,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fe(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Dn(e)}))}function $n(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:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=xe(n)))return;s.prepare(n,r,o).forEach(c=>{dt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ee(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Pe=(e,t)=>{const n=Bn(e,!0,ln()),r=An(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Fe)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=C(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&$n(l,o[a][u])}),t?Ln(t,r,s):Fe},Hn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}Pe([r||e],o=>{if(o.length&&r){const s=q(r);if(s){t({...H,...s});return}}n(e)})});function pt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ze?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ce={...Ye,inline:!1},pe="iconify",we="iconify-inline",P="iconifyData"+Date.now();let O=[];function Q(e){for(let t=0;t<O.length;t++){const n=O[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function mt(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},O.push(n),n)}function qn(){if(document.documentElement)return mt(document.documentElement);O.push({node:()=>document.documentElement})}function Qn(e){O=O.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function G(){return O}function Gn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Kn={childList:!0,subtree:!0,attributes:!0};function ht(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Wn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[P]!==void 0){n.paused||ht(e);return}}}function gt(e,t){e.observer.instance.observe(t,Kn)}function oe(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(Wn.bind(null,e)),gt(e,n),t.paused||ht(e))}function Ve(){G().forEach(oe)}function bt(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 Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(bt)),t){Ve();return}Gn(Ve)}function Se(e){(e?[e]:G()).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 Xn(e){if(e){const t=Q(e);t&&Se(t)}else Se()}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){oe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?gt(t,r):oe(t);else return}})}function Zn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function yt(e,t=!1){const n=mt(e,t);return oe(n),n}function vt(e){const t=Q(e);t&&(bt(t),Qn(e))}function Yn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ce)if(n[o]!==r[o])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const r={...ce,inline:e.classList&&e.classList.contains(we)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=eo(o));const s=e.getAttribute("data-flip");typeof s=="string"&&no(r,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const co="svg."+pe+", i."+pe+", span."+pe+", i."+we+", span."+we;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const r=n[P]||n.tagName.toLowerCase()!=="svg"?io(n):null;r&&t.push({node:n,props:r})}),t}function xt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function wt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function St(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function It(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function kt(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=re(n,o),i=e[P],c=xt(et(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=uo(c);const l=r.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=wt(t.icon),p=St(l,u,new Set(i&&i.addedClasses),e),f=It(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[P]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},ke={"background-color":"currentColor"},Et={"background-color":"transparent"},ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},$e={"-webkit-mask":ke,mask:ke,background:Et};for(const e in $e){const t=$e[e];for(const n in ze)t[e+"-"+n]=ze[n]}function Ue(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,r){const o=t.customisations,s=re(n,o),i=s.attributes,c=e[P],l=xt(s.body,{...i,width:n.width+"",height:n.height+""}),a=wt(t.icon),u=St(e,a,new Set(c&&c.addedClasses)),f={"--svg":mo(l),width:Ue(i.width),height:Ue(i.height),...ho,...r?ke:Et};o.inline&&(f["vertical-align"]="-0.125em");const h=It(e,f,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[P]=g,e}let W=!1;function bo(){W||(W=!0,setTimeout(()=>{W&&(W=!1,M())}))}function M(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:G()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,Se(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...p},h);return}}kt(a,u,p)}ao(s).forEach(({node:a,props:u})=>{const p=a[P];if(!p){const{status:h,icon:g}=r(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[P]={...u,status:h};return}let f;if(Yn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?vt(s):t&&i?yt(s,!0):c&&o.observer&&Ie(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Pe(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?M(t):M({node:e,temporary:!0},!0)}function _t(e,t,n=!1){const r=q(e);if(!r)return null;const o=R(e),s=pt(ce,t||{}),i=kt(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return _t(e,t,!1)}function wo(e,t){return _t(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const r=pt(ce,t||{});return re(n,r)}function Io(e){e?yo(e):M()}if(typeof document<"u"&&typeof window<"u"){qn();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(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Xe(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(M),M()})}function ko(e,t){ct(e,t!==!1)}function Eo(e){ct(e,!0)}at("",Pn);if(typeof document<"u"&&typeof window<"u"){it();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;lt(n,o)||console.error(r)}catch{console.error(r)}}}}const _o={getAPIConfig:ie,setAPIModule:at,sendAPIQuery:dt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:lt,loadIcons:Pe,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Xe,replaceIDs:et,calculateSize:he,buildIcon:re,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:yt,stopObserving:vt,pauseObserver:Xn,resumeObserver:Zn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return j.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=j.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Po(){const{t:e}=He(),{api:t}=qe(),{blocklet:n}=Qt(),{inService:r}=Ct(),[o,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(j.isBlockletRunning(n)){J.error(e("blocklet.migrate.tip.running"));return}const f=To(n);if(f){J.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){J.error(Ke(f))}},u=()=>{const f=jo(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Y,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Ge,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Y,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(Tt,{popup:!0,open:o,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:jt(n,!0),title:j.getDisplayName(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:p},"connect")]}const Ao=b.lazy(()=>I(()=>import("./overview-DpaUtqpu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./domains-Dx67UXgN.js"),__vite__mapDeps([17,1,2,18,6,19,20,21,22,23,24,25,14,26,27,28,29,5,30,31,32,33,34,10]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./index-BiHajix6.js"),__vite__mapDeps([35,1,2,36,37,38,39,40,41,42,8,19,43,44,10,45,12,46,47,48,49,50,51,52,53,54,55,6,23,7,5,56,9,11,57,58,59,60,61,62,20,26,63,64,65,66,67,68,69,70,71,14]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./appearance-BZ4JSCZa.js"),__vite__mapDeps([72,1,2,6,71]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./config-navigation-4S-dNGE7.js"),__vite__mapDeps([73,1,2,12,74,46,75,67,6,59,60,61,76,7,8,36,37,38,39,40,41,42,19,58,62,44,70,49,16,52,53,77,29,78,79,69,26,33,80,51,34]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-DTbf05gc.js"),__vite__mapDeps([81,1,2,63,64,65,66,59,60,61,67,68,69,70,38,82,5,44,83,84,85,51,86,43,87,88,89,90,91,55]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-BJKzDQxA.js"),__vite__mapDeps([92,1,2,68,69,70,37,93,94,95,96,82,7,6,8]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-D7So_MpN.js").then(e=>e.i),__vite__mapDeps([97,1,2,63,64,65,66,59,60,61,67,68,69,70,38,44,7,6,8,98,71,99,41,42,19,100,74,26,48,101,56,102,103]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./index-fMsDDFcL.js").then(e=>e.i),__vite__mapDeps([104,1,2,26,105,63,64,65,66,59,60,61,67,68,69,70,38,99,41,42,7,6,8,58,100,74,52,53,96,19,23,90,91,55,44,5,106,39,11,107,108,78,71,20,21,82,98]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./service-BKneL2po.js"),__vite__mapDeps([109,1,2,110,64,65,66,87,61,76,60,91,44,26,20,70,111,43,86,69,49]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./index-BFqzpwMp.js"),__vite__mapDeps([112,1,2,36,37,38,39,40,41,42,8,19,57,6,111,110,64,65,66,87,61,76,60,91,44,26,20,70,43,86,69,49,45,12,46,47,48,50,51,23,99,113,114,78,79,52,53,106,25,115,22,116,117,118,32,119,4,15,16,33,120,3,121,93,94,95,100,74,122,24,123,5,77,124,30,31,71,11,103,83,21,125,7]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./log-fZVSp3m5.js"),__vite__mapDeps([126,1,2,37,127,41,42,53]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./runtime-DjHvP0dh.js"),__vite__mapDeps([128,1,2,63,64,65,66,59,60,61,67,68,69,70,38,6,120,129,88,89,24,102,42]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./traffic-BA_E7yI0.js").then(e=>e.t),__vite__mapDeps([85,1,2,51,86,43,87,61,88,89,90,91,65,55]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-Cb-DKFcI.js"),__vite__mapDeps([130,1,2,44,6,71,119,99,41,42,4,15,16,39,33,120,3,5,89,63,64,65,66,59,60,61,67,68,69,70,38,40,57,101]),import.meta.url)),Qo=({children:e})=>e;function Go(){const e=Pt(),{tab:t="overview"}=We(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Wt(),{refresh:l}=At(),{t:a}=He(),{session:u}=qe(),{data:p}=Dt(),f=Ot(()=>u.user?.role&&Lt.includes(u.user.role),[u]),h=b.useCallback(()=>d.jsx(Ro,{scope:n,blocklets:p}),[n,p]),g=b.useCallback(()=>f?d.jsx(Mo,{blocklet:r}):d.jsx(Gt,{status:403}),[r,f]),y=r?.environments.find(x=>x.key==="BLOCKLET_APP_URL")?.value||window.location.origin,E=x=>Mt(x,y),A=x=>{e(`/blocklets/${n}/${x}`)},w=x=>{x&&i(x),c()},S=!r||Ae(r.status)?[]:j.getAppMissingConfigs(r);let L=null;const v=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Bt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!S.length,children:a("common.components")}),value:"components"}];if(o)L=d.jsxs(d.Fragment,{children:[d.jsx(Qe,{severity:"error",children:Ke(o)}),d.jsx(Ge,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const x={overview:d.jsx(Ao,{}),domains:d.jsx(Do,{}),configuration:Oo,appearance:Lo,navigation:Bo,services:Vo,members:d.jsx(Fo,{type:"blocklet",createPassportSvg:E}),passports:No,components:zo,"audit-logs":h,notifications:g,logs:$o,runtime:d.jsx(Uo,{}),traffic:d.jsx(Ho,{client:s,did:n}),didSpaces:d.jsx(qo,{})};t==="configuration"&&Ae(r.status)&&A("overview"),v.push({label:a("common.domains"),value:"domains"}),v.push({label:a("common.members"),value:"members"}),v.push({label:a("team.member.passports"),value:"passports"}),v.push({label:a("common.configuration"),value:"configuration"}),v.push({label:a("common.appearance"),value:"appearance"}),v.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&v.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===F.APP_STRUCT_VERSION&&v.push({label:a("common.logs"),value:"logs"}),v.push({label:a("common.configNavigation"),value:"navigation"}),v.push({label:a("common.runtime"),value:"runtime"}),v.push({label:a("common.traffic"),value:"traffic"}),v.push({label:a("storage.spaces.title"),value:"didSpaces"}),j.getBlockletServices(r).length&&v.splice(2,0,{label:a("blocklet.services"),value:"services"});const le=x[t]||x.overview;L=d.jsxs(Ht,{type:"components",children:[!j.isExternalBlocklet(r)&&d.jsx(zt,{tabs:v,current:t,onChange:A,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(b.Suspense,{fallback:d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})}),children:b.isValidElement(le)?le:d.jsx(le,{blocklet:r,onUpdate:w,createPassportSvg:E})})})]})}else L=d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})});const m=()=>{},k=({action:x,error:ae})=>{if(ae){J.error(ae.message);return}x==="remove"?(l(),e("/blocklets")):c()},_=v.find(x=>x.value===t),B=r?Jt:Qo,T=$t(_,r?.meta?.title||a("common.blocklets"));return d.jsxs(B,{teamDid:n,children:[T,d.jsxs(Ko,{children:[d.jsxs(Zt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Rt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Nt,{to:`/blocklets/${n}/overview`,style:x=>x?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(ue,{color:"textSecondary",children:_?_.breadcrumbsLabel||_.label:""})]}),d.jsxs(ue,{component:"div",className:"page-header",children:[d.jsxs(ue,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Ft,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Y,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Y,{children:j.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(Ut,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Xt,{permission:"mutate_blocklets",children:!!r&&!j.isExternalBlocklet(r)&&d.jsx(qt,{className:"page-actions",blocklet:r,onStart:m,onComplete:k,variant:"group",source:"blocklet-detail"})})]}),d.jsx(Po,{}),L]})]})}function fr(){const{did:e}=We();return e?d.jsx(Kt,{did:e,children:d.jsx(Go,{})}):null}const Ko=Vt.main`
|
|
13
13
|
.page-header {
|
|
14
14
|
display: flex;
|
|
15
15
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c1 as W,c0 as V,r as y,c2 as G,j as e,h6 as Ut,b9 as K,c4 as X,c5 as Z,b_ as Je,h7 as Te,aw as ve,aG as Ye,f9 as et,y as ae,h8 as Ft,z as Nt,fc as tt,d4 as zt,V as S,cw as $t,F as ne,h9 as Ht,$ as Ot,K as x,C as N,b8 as _t,T,Z as de,q as ue,f as Q,E as me,Q as E,b2 as nt,ha as Wt,aZ as ot,O as Vt,bo as L,e as Gt,b as Ue,ae as pe,H as M,o,v as fe,aT as Kt,X as st,aF as Xt,aa as Zt,b3 as Qt,h as Jt,b4 as Fe,b1 as Yt,bF as en,h2 as it,b5 as rt,cp as Ce,aW as O,J as tn,dK as at,hb as nn,b6 as on,fI as lt,gv as ke,s as sn,hc as ct,hd as rn,he as an,dz as dt,hf as ln,be as cn,hg as dn,L as un,hh as H,_ as z,i as le,hi as mn,aX as pn,dJ as oe,I as Ne,t as fn,aS as xn,hj as hn}from"./index-BeQc3UkQ.js";import{u as gn}from"./useAsync-EIK7zv0J.js";import{u as J}from"./blocklet-DI09kb3z.js";import{w as ut}from"./permission-fAWDL6eA.js";import{D as mt}from"./Delete-Dfzx-_QK.js";import{A as yn}from"./actions-BAAc2dMh.js";import{D as Dn}from"./delete-confirm-y9uI0hXG.js";import{D as ze}from"./status--oG1pao2.js";import{S as bn,V as jn}from"./VerifiedUser-BtmbPbB1.js";import{C as vn}from"./CardContent-DYbZwS2P.js";import{A as Cn}from"./Add-DsCZxomS.js";import{A as wn}from"./CallMerge-DB0zaZAy.js";import{a as Rn}from"./toLower-D3hDe9vm.js";import{u as Sn}from"./use-mobile-DHdENrRR.js";import{v as Tn}from"./index-6nMPypbs.js";import{g as kn,p as $e}from"./util-D64hwso0.js";import{O as An}from"./OpenInNew-BPFABZ3A.js";import{C as In}from"./click-to-copy-D3DsyQ7B.js";import{L as pt}from"./LoadingButton-BYeGfUfG.js";import{u as Pn}from"./index-CNkhBuLJ.js";import"./is-path-prefix-equal-DSamcBqo.js";import"./engine-PI4c2H--.js";function qn(t){return W("MuiTable",t)}V("MuiTable",["root","stickyHeader"]);const Mn=t=>{const{classes:n,stickyHeader:s}=t;return Z({root:["root",s&&"stickyHeader"]},qn,n)},En=K("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.stickyHeader&&n.stickyHeader]}})(Je(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:n})=>n.stickyHeader,style:{borderCollapse:"separate"}}]}))),He="table",Ln=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTable"}),{className:i,component:r=He,padding:c="normal",size:l="medium",stickyHeader:d=!1,...p}=a,f={...a,component:r,padding:c,size:l,stickyHeader:d},u=Mn(f),g=y.useMemo(()=>({padding:c,size:l,stickyHeader:d}),[c,l,d]);return e.jsx(Ut.Provider,{value:g,children:e.jsx(En,{as:r,role:r===He?null:"table",ref:s,className:X(u.root,i),ownerState:f,...p})})});function Bn(t){return W("MuiTableBody",t)}V("MuiTableBody",["root"]);const Un=t=>{const{classes:n}=t;return Z({root:["root"]},Bn,n)},Fn=K("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Nn={variant:"body"},Oe="tbody",zn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableBody"}),{className:i,component:r=Oe,...c}=a,l={...a,component:r},d=Un(l);return e.jsx(Te.Provider,{value:Nn,children:e.jsx(Fn,{className:X(d.root,i),as:r,ref:s,role:r===Oe?null:"rowgroup",ownerState:l,...c})})});function $n(t){return W("MuiTableContainer",t)}V("MuiTableContainer",["root"]);const Hn=t=>{const{classes:n}=t;return Z({root:["root"]},$n,n)},On=K("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),_n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableContainer"}),{className:i,component:r="div",...c}=a,l={...a,component:r},d=Hn(l);return e.jsx(On,{ref:s,as:r,className:X(d.root,i),ownerState:l,...c})});function Wn(t){return W("MuiTableHead",t)}V("MuiTableHead",["root"]);const Vn=t=>{const{classes:n}=t;return Z({root:["root"]},Wn,n)},Gn=K("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),Kn={variant:"head"},_e="thead",Xn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableHead"}),{className:i,component:r=_e,...c}=a,l={...a,component:r},d=Vn(l);return e.jsx(Te.Provider,{value:Kn,children:e.jsx(Gn,{as:r,className:X(d.root,i),ref:s,role:r===_e?null:"rowgroup",ownerState:l,...c})})});function Zn(t){return W("MuiTableRow",t)}const We=V("MuiTableRow",["root","selected","hover","head","footer"]),Qn=t=>{const{classes:n,selected:s,hover:a,head:i,footer:r}=t;return Z({root:["root",s&&"selected",a&&"hover",i&&"head",r&&"footer"]},Zn,n)},Jn=K("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.head&&n.head,s.footer&&n.footer]}})(Je(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${We.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${We.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ve(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ve(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Ve="tr",Ge=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableRow"}),{className:i,component:r=Ve,hover:c=!1,selected:l=!1,...d}=a,p=y.useContext(Te),f={...a,component:r,hover:c,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},u=Qn(f);return e.jsx(Jn,{as:r,ref:s,className:X(u.root,i),role:r===Ve?null:"row",ownerState:f,...d})}),Yn=Ye(e.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),eo=Ye(e.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"})),to=et({});to.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=ae("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=Ft()),t},t=>Promise.reject(t));const ft=(...t)=>et(...t),no=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,oo=(t,{width:n=600,height:s=700,name:a="did-domain:popup"}={})=>{const i=window.screenX+(window.innerWidth-n)/2,r=window.screenY+(window.innerHeight-s)/2,c=[`left=${i}`,`top=${r}`,`width=${n}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],l=window.open("",a,c.join(","));if(l===null)throw new Error("Failed to open popup");return l.location.href=Nt(t,{opener:window.location.origin}),l},so="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async t=>{if(!t||!t?.trim())return null;const n=ft(),s=new URL(t);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:a}=await n.get(s.toString()),i=a?.componentMountPoints?.find(d=>d.did===so),r=new URL(t);r.pathname=i?.mountPoint;const c=r.toString(),l=ae(c,"/api");return{base:c,api:l}},io=tt({embed:{iconTip:"Click to view subscription details"},buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),ro=tt({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),ao={zh:ro,en:io},lo=async({didDomainURL:t,delegatee:n,delegateePk:s})=>{const a=await xt(t);if(!a)return null;const i=ft({baseURL:a.api}),{data:r}=await i.post("/payment/session",{delegatee:n,delegateePk:s});return{sessionId:r.sessionId,baseURL:a.base}};function co({delegatee:t,delegateePk:n,didDomainURL:s,locale:a,title:i="",onSuccess:r=()=>{},...c}){const{t:l}=S(),[d,p]=Pn({currentState:1}),f=y.useRef(null),u=$t(async()=>{const m=await lo({didDomainURL:s,delegatee:t,delegateePk:n});return m},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(m){console.error(m)}}),g=ne(m=>{m.data.type==="didDomain.success"&&(r?.({nftDid:m.data?.nftDid,domain:m.data?.domain,chainHost:m.data?.chainHost}),f.current?.close(),f.current=null,p({currentState:4}),setTimeout(()=>{p({currentState:8})},2e3))});Ht(()=>{try{window.removeEventListener("message",g),f.current?.close(),f.current=null}catch(m){console.warn("Failed to close popup",m)}});const b=ne(()=>{p({currentState:1})}),h=ne(()=>{if(p({currentState:2}),!u.data){console.error("Failed to create session");return}j({sessionId:u.data.sessionId,baseURL:u.data.baseURL})}),j=ne(({sessionId:m,baseURL:w})=>{window.addEventListener("message",g);const C=new URL(w);C.searchParams.set("sessionId",m),C.searchParams.set("locale",a),C.searchParams.set("embed","1"),f.current=oo(C.toString());const q=setInterval(()=>{f.current?.closed&&(clearInterval(q),b())},1e3);return()=>clearInterval(q)});return e.jsxs(e.Fragment,{children:[e.jsx(pt,{loading:u.loading,onClick:h,variant:"contained",startIcon:e.jsx(bn,{}),...c,children:i||l("buy.button.title")}),e.jsxs(Ot,{fullWidth:!0,maxWidth:"xs",open:d.currentState>1&&d.currentState<8,onClose:b,children:[!u.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[d.currentState===2&&e.jsx(N,{size:50}),d.currentState===4&&e.jsx(_t,{sx:{color:"primary.main",fontSize:"5rem"}}),d.currentState===2&&e.jsx(T,{children:l("buy.status.inProgress")}),d.currentState===4&&e.jsx(T,{children:l("buy.status.success")})]}),u.error&&e.jsx(de,{severity:"error",children:l("buy.error.failedToCreateSession")})]})]})}function uo(t){return e.jsx(zt,{locale:t.locale,translations:ao,children:e.jsx(co,{...t})})}function mo({nftDid:t,didDomainURL:n,locale:s,sx:a={}}){const{t:i}=S(),[r,c]=ue({safeIframeRef:null,popoverAnchorEl:null}),l=y.useRef(null),d=Q(),p=me(d.breakpoints.down("md")),f=h=>{c({popoverAnchorEl:h.currentTarget})},u=()=>{c({popoverAnchorEl:null})},g=gn(async()=>{const h=await xt(n);return h?h.base:null});if(!g.value)return null;if(g.loading)return e.jsx(N,{});const b=ae(g.value,`/embed/domain?nft-did=${t}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(E,{title:i("embed.iconTip"),children:e.jsx(x,{component:"img",src:ae(n,"/.well-known/service/blocklet/logo"),alt:"logo",onClick:f,sx:[{width:16,height:16},no({cursor:"pointer"},a)]})}),e.jsx(nt,{id:"popover-info",open:!!r.popoverAnchorEl,anchorEl:r.popoverAnchorEl,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:l,title:i("common.subscription"),width:p?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:b})})]})}const po=t=>["waiting","creating","renewaling"].includes(t);function ht({siteId:t,domain:n,onAdd:s=()=>{},children:a=null,did:i,issuing:r=!1,setIssuing:c=()=>{}}){const{t:l}=S(),[d,p]=y.useState(!1),{inService:f}=L(),[u,g]=y.useState(null),{api:b,ws:{useSubscription:h}}=L(),{mode:j,actions:{refreshDomainStatus:m}}=J(),w=Gt(async()=>{const{cert:A}=await b.findCertificateByDomain({input:{domain:n,did:i}});return A}),C=(A,R)=>{A.domain===n&&(c(!1),p(!1),f&&j!=="setup"&&(R==="success"?M.success(l("setup.domain.genCertSuccess",{domain:A.domain})):R==="error"&&M.error(l("setup.domain.genCertFailed",{domain:A.domain,message:A.message}))))};if(y.useEffect(()=>{w.loading||c(po(w.value?.status))},[w.loading,w.value?.status,c]),h(Ue.BlockletEvents.certError,A=>C(A,"error")),h(Ue.BlockletEvents.certIssued,A=>{w.retry(),m(A.domain),C(A,"success")}),w.loading||w.value?.status==="normal")return"";const q=()=>{p(!1),g(null)},U=async()=>{p(!0);try{await b.issueLetsEncryptCert({input:{siteId:t,domain:n,did:i,inBlockletSetup:j==="setup"}}),s(),c(!0)}catch(A){console.error(A),c(!1)}finally{p(!1),g(null)}},B={title:l("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(de,{severity:"success",children:l("router.cert.genLetsEncryptCert.dnsTip")}),l("router.cert.genLetsEncryptCert.description")]}),confirm:l("common.confirm"),onConfirm:U,onCancel:q},F=A=>{A.stopPropagation(),g(B)};return e.jsxs(e.Fragment,{children:[r?e.jsx(E,{title:l("router.cert.issuing"),children:e.jsx(N,{size:13,style:{fontSize:"13px"}})}):a({loading:d,open:F}),u&&e.jsx(pe,{color:"primary",title:u.title,description:u.description,confirm:u.confirm,params:u.params,onConfirm:u.onConfirm,onCancel:u.onCancel})]})}ht.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function gt({domain:t,domainStatus:n,did:s,onAdd:a=()=>{},children:i=null,issuing:r=!1,setIssuing:c=()=>{},...l}){return Wt(t)||!ot(t)||Vt(n)||n?.isHttps?"":e.jsx(ht,{...l,domain:t,did:s,onAdd:a,issuing:r,setIssuing:c,children:i})}gt.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function yt({id:t,domain:n,children:s=null,teamDid:a="",onDelete:i=null}){const{t:r}=S(),[c,l]=y.useState(!1),[d,p]=y.useState(null),{api:f}=L(),u=()=>{l(!1),p(null)},g=async()=>{l(!0);try{await f.deleteDomainAlias({input:{id:t,domainAlias:n,teamDid:a}}),i?.(),await Kt(2e3)}catch(j){M.error(j.message)}finally{p(null),l(!1)}},b={keyName:n,title:r("router.domainAlias.delete.title"),description:r("router.domainAlias.delete.description",{domain:n}),confirmPlaceholder:r("router.domainAlias.delete.confirmPlaceholder",{domain:n}),confirm:r("common.delete"),onConfirm:g,onCancel:u},h=j=>{j.stopPropagation(),p(b)};return e.jsxs(e.Fragment,{children:[typeof s=="function"?s({loading:c,open:h}):e.jsxs(fe,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[c?e.jsx(N,{size:16}):e.jsx(mt,{style:{fontSize:16}}),r("common.delete")]}),d&&e.jsx(Dn,{keyName:d.keyName,title:d.title,description:d.description,confirmPlaceholder:d.confirmPlaceholder,confirm:d.confirm,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}yt.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};function Dt({site:t,domain:n,blocklet:s,onDelete:a=()=>{}}){const{t:i}=S(),r=n.value===window.location.hostname;return e.jsx(yn,{"data-cy":"domain-actions",size:"large",actions:[({close:c})=>e.jsx(yt,{id:t.id,domain:n.value,teamDid:s?.meta?.did,onDelete:a,children:({open:l})=>e.jsx(E,{title:r?i("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(st,{disabled:n.isProtected||r,dense:!0,onClick:d=>{c(),l(d)},"data-cy":"action-toggle-block",children:[e.jsx(Xt,{style:{minWidth:24,marginRight:8},children:e.jsx(mt,{})}),e.jsx(Zt,{primary:i("common.delete")})]},"remove")})})})]})}Dt.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};const xe=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function bt({certificate:t={}}){const[n,s]=y.useState(null),a=L(),{t:i,locale:r}=S(),c=p=>{s(p.currentTarget)},l=()=>{s(null)},d=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(jn,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:c,onMouseLeave:l,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(nt,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:e.jsx(Qt,{children:e.jsxs(vn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${a.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(T,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(T,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(T,{component:"div",children:`${i("common.issuer")}: ${Jt(t,"issuer.commonName","")}`}),e.jsx(T,{component:"div",children:`${i("router.cert.issuedOn")}: ${Fe(t.validFrom,r)}`}),e.jsx(T,{component:"div",children:`${i("router.cert.expiryOn")}: ${Fe(t.validTo,r)}`})]})]})})})]})}bt.propTypes={certificate:o.object};function ce({domain:t,filters:n=["domain","http"]}){const{t:s}=S(),{value:a,domainStatus:i}=t;if(!ot(a))return null;let r=null,c=null;const{isHttps:l,matchedCert:d}=i,{dns:{ip:p,isDnsResolved:f,isCnameMatch:u}={}}=i,g=f&&u;Yt(a)||(g||p==="127.0.0.1"?r=e.jsx(E,{title:s("router.domain.verify.ok"),children:e.jsx(ze,{color:"success"})}):r=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx(ze,{color:"error"})})),g?l?c=e.jsx(bt,{certificate:d}):c=e.jsx(E,{title:s("router.domain.https.bad"),children:e.jsx(eo,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):c=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx(Yn,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const b=n.map(h=>h==="domain"?r:h==="http"?c:null);return y.createElement(y.Fragment,null,...b)}ce.propTypes={domain:xe.isRequired,filters:o.array};const fo=ut(Ae,"mutate_blocklets"),xo=ut(Ae,"",en);function ho(t){const{inService:n}=L(),{blocklet:s,loadingRuntimeInfo:a}=J();let i=fo;return n&&(i=xo),e.jsx(i,{...t,blocklet:s,inService:n,loadingRuntimeInfo:a})}const Ke="nft-domain";function Ae({hasPermission:t=!1,blocklet:n,loadingRuntimeInfo:s=!1,inService:a=!1,showAllDomains:i=!1,updateBlockletDomainAliases:r=()=>{},systemTips:c=null}){const{t:l}=S(),d=me(m=>m.breakpoints.down("md")),p=y.useMemo(()=>{let m=t;return it(n)&&(m=m&&a),m},[t,a,n]),{site:f}=n,u=y.useMemo(()=>rt(n.site?.domainAliases),[n.site?.domainAliases]),g=y.useMemo(()=>u.filter(m=>!Ce.isCustomDomain(m.value)),[u]),b=y.useMemo(()=>u.filter(m=>Ce.isCustomDomain(m.value)),[u]),h=y.useMemo(()=>b.filter(m=>m.type!==Ke),[b]),j=y.useMemo(()=>b.filter(m=>m.type===Ke),[b]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{sx:{gap:3},children:[!!j.length&&e.jsx(re,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:j,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!h.length&&e.jsx(re,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:h,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!g.length&&e.jsxs(x,{children:[c,e.jsx(re,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:g,hasMutatePermission:p,blocklet:n,site:f,mobile:d,updateBlockletDomainAliases:r})]})]}),!u.length&&(s?e.jsx(N,{size:16}):e.jsx(tn,{children:l("common.empty")}))]})}Ae.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func,systemTips:o.node};function se({children:t=null}){return e.jsx(x,{component:"span",sx:{verticalAlign:"bottom"},children:t})}se.propTypes={children:o.node};function we({domain:t,children:n,suffix:s=null,...a}){const{t:i,locale:r}=S(),c=Q(),{href:l,accessibility:d,value:p}=t,f=y.useCallback(()=>e.jsx(lt,{content:ke(p),locale:r,style:{marginLeft:"4px",color:c.palette.text.secondary,fontSize:"0.8em"}}),[p,r,c]);return!d||d.loading?e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),f(),e.jsx(se,{children:s}),e.jsx(E,{title:i("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(N,{size:13,style:{fontSize:"13px"}})})})]}):d.accessible?e.jsxs(De,{component:"span",...a,children:[e.jsx(x,{component:"a",href:l,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),f(),e.jsx(se,{children:s})]}):e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:i("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&f(),e.jsx(se,{children:s})]})}we.propTypes={domain:xe.isRequired,children:o.any.isRequired,suffix:o.node};const De=sn(x)`
|
|
1
|
+
import{c1 as W,c0 as V,r as y,c2 as G,j as e,h6 as Ut,b9 as K,c4 as X,c5 as Z,b_ as Je,h7 as Te,aw as ve,aG as Ye,f9 as et,y as ae,h8 as Ft,z as Nt,fc as tt,d4 as zt,V as S,cw as $t,F as ne,h9 as Ht,$ as Ot,K as x,C as N,b8 as _t,T,Z as de,q as ue,f as Q,E as me,Q as E,b2 as nt,ha as Wt,aZ as ot,O as Vt,bo as L,e as Gt,b as Ue,ae as pe,H as M,o,v as fe,aT as Kt,X as st,aF as Xt,aa as Zt,b3 as Qt,h as Jt,b4 as Fe,b1 as Yt,bF as en,h2 as it,b5 as rt,cp as Ce,aW as O,J as tn,dK as at,hb as nn,b6 as on,fI as lt,gv as ke,s as sn,hc as ct,hd as rn,he as an,dz as dt,hf as ln,be as cn,hg as dn,L as un,hh as H,_ as z,i as le,hi as mn,aX as pn,dJ as oe,I as Ne,t as fn,aS as xn,hj as hn}from"./index-BAG4sFIa.js";import{u as gn}from"./useAsync-DOTk7wjs.js";import{u as J}from"./blocklet-CVUABgLB.js";import{w as ut}from"./permission-CHoPVbRo.js";import{D as mt}from"./Delete-Go0rVsno.js";import{A as yn}from"./actions-CGUgsaws.js";import{D as Dn}from"./delete-confirm-DzRNsfZf.js";import{D as ze}from"./status-Cjdz-yj2.js";import{S as bn,V as jn}from"./VerifiedUser-D4F-7jv5.js";import{C as vn}from"./CardContent-lfT7ngTs.js";import{A as Cn}from"./Add-DDUKFJZu.js";import{A as wn}from"./CallMerge-DxAFzQUN.js";import{a as Rn}from"./toLower-CoePqXpD.js";import{u as Sn}from"./use-mobile-BZHIPj7_.js";import{v as Tn}from"./index-DLuK9hbg.js";import{g as kn,p as $e}from"./util-BcCxYadv.js";import{O as An}from"./OpenInNew-Dk7iCLrt.js";import{C as In}from"./click-to-copy-C9CEoG_G.js";import{L as pt}from"./LoadingButton-Dcydz6oY.js";import{u as Pn}from"./index-ZOh2DQ-e.js";import"./is-path-prefix-equal-CzIiUrel.js";import"./engine-C0EQfmPn.js";function qn(t){return W("MuiTable",t)}V("MuiTable",["root","stickyHeader"]);const Mn=t=>{const{classes:n,stickyHeader:s}=t;return Z({root:["root",s&&"stickyHeader"]},qn,n)},En=K("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.stickyHeader&&n.stickyHeader]}})(Je(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:n})=>n.stickyHeader,style:{borderCollapse:"separate"}}]}))),He="table",Ln=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTable"}),{className:i,component:r=He,padding:c="normal",size:l="medium",stickyHeader:d=!1,...p}=a,f={...a,component:r,padding:c,size:l,stickyHeader:d},u=Mn(f),g=y.useMemo(()=>({padding:c,size:l,stickyHeader:d}),[c,l,d]);return e.jsx(Ut.Provider,{value:g,children:e.jsx(En,{as:r,role:r===He?null:"table",ref:s,className:X(u.root,i),ownerState:f,...p})})});function Bn(t){return W("MuiTableBody",t)}V("MuiTableBody",["root"]);const Un=t=>{const{classes:n}=t;return Z({root:["root"]},Bn,n)},Fn=K("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Nn={variant:"body"},Oe="tbody",zn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableBody"}),{className:i,component:r=Oe,...c}=a,l={...a,component:r},d=Un(l);return e.jsx(Te.Provider,{value:Nn,children:e.jsx(Fn,{className:X(d.root,i),as:r,ref:s,role:r===Oe?null:"rowgroup",ownerState:l,...c})})});function $n(t){return W("MuiTableContainer",t)}V("MuiTableContainer",["root"]);const Hn=t=>{const{classes:n}=t;return Z({root:["root"]},$n,n)},On=K("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),_n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableContainer"}),{className:i,component:r="div",...c}=a,l={...a,component:r},d=Hn(l);return e.jsx(On,{ref:s,as:r,className:X(d.root,i),ownerState:l,...c})});function Wn(t){return W("MuiTableHead",t)}V("MuiTableHead",["root"]);const Vn=t=>{const{classes:n}=t;return Z({root:["root"]},Wn,n)},Gn=K("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),Kn={variant:"head"},_e="thead",Xn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableHead"}),{className:i,component:r=_e,...c}=a,l={...a,component:r},d=Vn(l);return e.jsx(Te.Provider,{value:Kn,children:e.jsx(Gn,{as:r,className:X(d.root,i),ref:s,role:r===_e?null:"rowgroup",ownerState:l,...c})})});function Zn(t){return W("MuiTableRow",t)}const We=V("MuiTableRow",["root","selected","hover","head","footer"]),Qn=t=>{const{classes:n,selected:s,hover:a,head:i,footer:r}=t;return Z({root:["root",s&&"selected",a&&"hover",i&&"head",r&&"footer"]},Zn,n)},Jn=K("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.head&&n.head,s.footer&&n.footer]}})(Je(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${We.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${We.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ve(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ve(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Ve="tr",Ge=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableRow"}),{className:i,component:r=Ve,hover:c=!1,selected:l=!1,...d}=a,p=y.useContext(Te),f={...a,component:r,hover:c,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},u=Qn(f);return e.jsx(Jn,{as:r,ref:s,className:X(u.root,i),role:r===Ve?null:"row",ownerState:f,...d})}),Yn=Ye(e.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),eo=Ye(e.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"})),to=et({});to.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=ae("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=Ft()),t},t=>Promise.reject(t));const ft=(...t)=>et(...t),no=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,oo=(t,{width:n=600,height:s=700,name:a="did-domain:popup"}={})=>{const i=window.screenX+(window.innerWidth-n)/2,r=window.screenY+(window.innerHeight-s)/2,c=[`left=${i}`,`top=${r}`,`width=${n}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],l=window.open("",a,c.join(","));if(l===null)throw new Error("Failed to open popup");return l.location.href=Nt(t,{opener:window.location.origin}),l},so="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async t=>{if(!t||!t?.trim())return null;const n=ft(),s=new URL(t);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:a}=await n.get(s.toString()),i=a?.componentMountPoints?.find(d=>d.did===so),r=new URL(t);r.pathname=i?.mountPoint;const c=r.toString(),l=ae(c,"/api");return{base:c,api:l}},io=tt({embed:{iconTip:"Click to view subscription details"},buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),ro=tt({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),ao={zh:ro,en:io},lo=async({didDomainURL:t,delegatee:n,delegateePk:s})=>{const a=await xt(t);if(!a)return null;const i=ft({baseURL:a.api}),{data:r}=await i.post("/payment/session",{delegatee:n,delegateePk:s});return{sessionId:r.sessionId,baseURL:a.base}};function co({delegatee:t,delegateePk:n,didDomainURL:s,locale:a,title:i="",onSuccess:r=()=>{},...c}){const{t:l}=S(),[d,p]=Pn({currentState:1}),f=y.useRef(null),u=$t(async()=>{const m=await lo({didDomainURL:s,delegatee:t,delegateePk:n});return m},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(m){console.error(m)}}),g=ne(m=>{m.data.type==="didDomain.success"&&(r?.({nftDid:m.data?.nftDid,domain:m.data?.domain,chainHost:m.data?.chainHost}),f.current?.close(),f.current=null,p({currentState:4}),setTimeout(()=>{p({currentState:8})},2e3))});Ht(()=>{try{window.removeEventListener("message",g),f.current?.close(),f.current=null}catch(m){console.warn("Failed to close popup",m)}});const b=ne(()=>{p({currentState:1})}),h=ne(()=>{if(p({currentState:2}),!u.data){console.error("Failed to create session");return}j({sessionId:u.data.sessionId,baseURL:u.data.baseURL})}),j=ne(({sessionId:m,baseURL:w})=>{window.addEventListener("message",g);const C=new URL(w);C.searchParams.set("sessionId",m),C.searchParams.set("locale",a),C.searchParams.set("embed","1"),f.current=oo(C.toString());const q=setInterval(()=>{f.current?.closed&&(clearInterval(q),b())},1e3);return()=>clearInterval(q)});return e.jsxs(e.Fragment,{children:[e.jsx(pt,{loading:u.loading,onClick:h,variant:"contained",startIcon:e.jsx(bn,{}),...c,children:i||l("buy.button.title")}),e.jsxs(Ot,{fullWidth:!0,maxWidth:"xs",open:d.currentState>1&&d.currentState<8,onClose:b,children:[!u.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[d.currentState===2&&e.jsx(N,{size:50}),d.currentState===4&&e.jsx(_t,{sx:{color:"primary.main",fontSize:"5rem"}}),d.currentState===2&&e.jsx(T,{children:l("buy.status.inProgress")}),d.currentState===4&&e.jsx(T,{children:l("buy.status.success")})]}),u.error&&e.jsx(de,{severity:"error",children:l("buy.error.failedToCreateSession")})]})]})}function uo(t){return e.jsx(zt,{locale:t.locale,translations:ao,children:e.jsx(co,{...t})})}function mo({nftDid:t,didDomainURL:n,locale:s,sx:a={}}){const{t:i}=S(),[r,c]=ue({safeIframeRef:null,popoverAnchorEl:null}),l=y.useRef(null),d=Q(),p=me(d.breakpoints.down("md")),f=h=>{c({popoverAnchorEl:h.currentTarget})},u=()=>{c({popoverAnchorEl:null})},g=gn(async()=>{const h=await xt(n);return h?h.base:null});if(!g.value)return null;if(g.loading)return e.jsx(N,{});const b=ae(g.value,`/embed/domain?nft-did=${t}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(E,{title:i("embed.iconTip"),children:e.jsx(x,{component:"img",src:ae(n,"/.well-known/service/blocklet/logo"),alt:"logo",onClick:f,sx:[{width:16,height:16},no({cursor:"pointer"},a)]})}),e.jsx(nt,{id:"popover-info",open:!!r.popoverAnchorEl,anchorEl:r.popoverAnchorEl,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:l,title:i("common.subscription"),width:p?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:b})})]})}const po=t=>["waiting","creating","renewaling"].includes(t);function ht({siteId:t,domain:n,onAdd:s=()=>{},children:a=null,did:i,issuing:r=!1,setIssuing:c=()=>{}}){const{t:l}=S(),[d,p]=y.useState(!1),{inService:f}=L(),[u,g]=y.useState(null),{api:b,ws:{useSubscription:h}}=L(),{mode:j,actions:{refreshDomainStatus:m}}=J(),w=Gt(async()=>{const{cert:A}=await b.findCertificateByDomain({input:{domain:n,did:i}});return A}),C=(A,R)=>{A.domain===n&&(c(!1),p(!1),f&&j!=="setup"&&(R==="success"?M.success(l("setup.domain.genCertSuccess",{domain:A.domain})):R==="error"&&M.error(l("setup.domain.genCertFailed",{domain:A.domain,message:A.message}))))};if(y.useEffect(()=>{w.loading||c(po(w.value?.status))},[w.loading,w.value?.status,c]),h(Ue.BlockletEvents.certError,A=>C(A,"error")),h(Ue.BlockletEvents.certIssued,A=>{w.retry(),m(A.domain),C(A,"success")}),w.loading||w.value?.status==="normal")return"";const q=()=>{p(!1),g(null)},U=async()=>{p(!0);try{await b.issueLetsEncryptCert({input:{siteId:t,domain:n,did:i,inBlockletSetup:j==="setup"}}),s(),c(!0)}catch(A){console.error(A),c(!1)}finally{p(!1),g(null)}},B={title:l("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(de,{severity:"success",children:l("router.cert.genLetsEncryptCert.dnsTip")}),l("router.cert.genLetsEncryptCert.description")]}),confirm:l("common.confirm"),onConfirm:U,onCancel:q},F=A=>{A.stopPropagation(),g(B)};return e.jsxs(e.Fragment,{children:[r?e.jsx(E,{title:l("router.cert.issuing"),children:e.jsx(N,{size:13,style:{fontSize:"13px"}})}):a({loading:d,open:F}),u&&e.jsx(pe,{color:"primary",title:u.title,description:u.description,confirm:u.confirm,params:u.params,onConfirm:u.onConfirm,onCancel:u.onCancel})]})}ht.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function gt({domain:t,domainStatus:n,did:s,onAdd:a=()=>{},children:i=null,issuing:r=!1,setIssuing:c=()=>{},...l}){return Wt(t)||!ot(t)||Vt(n)||n?.isHttps?"":e.jsx(ht,{...l,domain:t,did:s,onAdd:a,issuing:r,setIssuing:c,children:i})}gt.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function yt({id:t,domain:n,children:s=null,teamDid:a="",onDelete:i=null}){const{t:r}=S(),[c,l]=y.useState(!1),[d,p]=y.useState(null),{api:f}=L(),u=()=>{l(!1),p(null)},g=async()=>{l(!0);try{await f.deleteDomainAlias({input:{id:t,domainAlias:n,teamDid:a}}),i?.(),await Kt(2e3)}catch(j){M.error(j.message)}finally{p(null),l(!1)}},b={keyName:n,title:r("router.domainAlias.delete.title"),description:r("router.domainAlias.delete.description",{domain:n}),confirmPlaceholder:r("router.domainAlias.delete.confirmPlaceholder",{domain:n}),confirm:r("common.delete"),onConfirm:g,onCancel:u},h=j=>{j.stopPropagation(),p(b)};return e.jsxs(e.Fragment,{children:[typeof s=="function"?s({loading:c,open:h}):e.jsxs(fe,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[c?e.jsx(N,{size:16}):e.jsx(mt,{style:{fontSize:16}}),r("common.delete")]}),d&&e.jsx(Dn,{keyName:d.keyName,title:d.title,description:d.description,confirmPlaceholder:d.confirmPlaceholder,confirm:d.confirm,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}yt.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};function Dt({site:t,domain:n,blocklet:s,onDelete:a=()=>{}}){const{t:i}=S(),r=n.value===window.location.hostname;return e.jsx(yn,{"data-cy":"domain-actions",size:"large",actions:[({close:c})=>e.jsx(yt,{id:t.id,domain:n.value,teamDid:s?.meta?.did,onDelete:a,children:({open:l})=>e.jsx(E,{title:r?i("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(st,{disabled:n.isProtected||r,dense:!0,onClick:d=>{c(),l(d)},"data-cy":"action-toggle-block",children:[e.jsx(Xt,{style:{minWidth:24,marginRight:8},children:e.jsx(mt,{})}),e.jsx(Zt,{primary:i("common.delete")})]},"remove")})})})]})}Dt.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};const xe=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function bt({certificate:t={}}){const[n,s]=y.useState(null),a=L(),{t:i,locale:r}=S(),c=p=>{s(p.currentTarget)},l=()=>{s(null)},d=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(jn,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:c,onMouseLeave:l,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(nt,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:e.jsx(Qt,{children:e.jsxs(vn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${a.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(T,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(T,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(T,{component:"div",children:`${i("common.issuer")}: ${Jt(t,"issuer.commonName","")}`}),e.jsx(T,{component:"div",children:`${i("router.cert.issuedOn")}: ${Fe(t.validFrom,r)}`}),e.jsx(T,{component:"div",children:`${i("router.cert.expiryOn")}: ${Fe(t.validTo,r)}`})]})]})})})]})}bt.propTypes={certificate:o.object};function ce({domain:t,filters:n=["domain","http"]}){const{t:s}=S(),{value:a,domainStatus:i}=t;if(!ot(a))return null;let r=null,c=null;const{isHttps:l,matchedCert:d}=i,{dns:{ip:p,isDnsResolved:f,isCnameMatch:u}={}}=i,g=f&&u;Yt(a)||(g||p==="127.0.0.1"?r=e.jsx(E,{title:s("router.domain.verify.ok"),children:e.jsx(ze,{color:"success"})}):r=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx(ze,{color:"error"})})),g?l?c=e.jsx(bt,{certificate:d}):c=e.jsx(E,{title:s("router.domain.https.bad"),children:e.jsx(eo,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):c=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx(Yn,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const b=n.map(h=>h==="domain"?r:h==="http"?c:null);return y.createElement(y.Fragment,null,...b)}ce.propTypes={domain:xe.isRequired,filters:o.array};const fo=ut(Ae,"mutate_blocklets"),xo=ut(Ae,"",en);function ho(t){const{inService:n}=L(),{blocklet:s,loadingRuntimeInfo:a}=J();let i=fo;return n&&(i=xo),e.jsx(i,{...t,blocklet:s,inService:n,loadingRuntimeInfo:a})}const Ke="nft-domain";function Ae({hasPermission:t=!1,blocklet:n,loadingRuntimeInfo:s=!1,inService:a=!1,showAllDomains:i=!1,updateBlockletDomainAliases:r=()=>{},systemTips:c=null}){const{t:l}=S(),d=me(m=>m.breakpoints.down("md")),p=y.useMemo(()=>{let m=t;return it(n)&&(m=m&&a),m},[t,a,n]),{site:f}=n,u=y.useMemo(()=>rt(n.site?.domainAliases),[n.site?.domainAliases]),g=y.useMemo(()=>u.filter(m=>!Ce.isCustomDomain(m.value)),[u]),b=y.useMemo(()=>u.filter(m=>Ce.isCustomDomain(m.value)),[u]),h=y.useMemo(()=>b.filter(m=>m.type!==Ke),[b]),j=y.useMemo(()=>b.filter(m=>m.type===Ke),[b]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{sx:{gap:3},children:[!!j.length&&e.jsx(re,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:j,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!h.length&&e.jsx(re,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:h,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!g.length&&e.jsxs(x,{children:[c,e.jsx(re,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:g,hasMutatePermission:p,blocklet:n,site:f,mobile:d,updateBlockletDomainAliases:r})]})]}),!u.length&&(s?e.jsx(N,{size:16}):e.jsx(tn,{children:l("common.empty")}))]})}Ae.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func,systemTips:o.node};function se({children:t=null}){return e.jsx(x,{component:"span",sx:{verticalAlign:"bottom"},children:t})}se.propTypes={children:o.node};function we({domain:t,children:n,suffix:s=null,...a}){const{t:i,locale:r}=S(),c=Q(),{href:l,accessibility:d,value:p}=t,f=y.useCallback(()=>e.jsx(lt,{content:ke(p),locale:r,style:{marginLeft:"4px",color:c.palette.text.secondary,fontSize:"0.8em"}}),[p,r,c]);return!d||d.loading?e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),f(),e.jsx(se,{children:s}),e.jsx(E,{title:i("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(N,{size:13,style:{fontSize:"13px"}})})})]}):d.accessible?e.jsxs(De,{component:"span",...a,children:[e.jsx(x,{component:"a",href:l,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),f(),e.jsx(se,{children:s})]}):e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:i("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&f(),e.jsx(se,{children:s})]})}we.propTypes={domain:xe.isRequired,children:o.any.isRequired,suffix:o.node};const De=sn(x)`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
vertical-align: middle;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aG as Ne,j as Y,eA as ke,s as ge,bf as $e,fE as je,dJ as Le,o as te,r as he,fF as ze,fG as Ke,bo as Ie,E as qe,bB as Ve,be as Ge,V as Ye,K as pe,v as De,C as Re,$ as Xe,R as Je,U as Ze,X as Qe,bg as et,H as tt}from"./index-
|
|
1
|
+
import{aG as Ne,j as Y,eA as ke,s as ge,bf as $e,fE as je,dJ as Le,o as te,r as he,fF as ze,fG as Ke,bo as Ie,E as qe,bB as Ve,be as Ge,V as Ye,K as pe,v as De,C as Re,$ as Xe,R as Je,U as Ze,X as Qe,bg as et,H as tt}from"./index-BAG4sFIa.js";import{B as it}from"./ButtonGroup-BHahRCP8.js";const rt=Ne(Y.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}));var we={exports:{}},Ae;function st(){return Ae||(Ae=1,function(X,q){(function(j,V){X.exports=V()})(globalThis,()=>(()=>{var j={4567:function(A,s,o){var d=this&&this.__decorate||function(e,r,a,f){var p,g=arguments.length,l=g<3?r:f===null?f=Object.getOwnPropertyDescriptor(r,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,r,a,f);else for(var m=e.length-1;m>=0;m--)(p=e[m])&&(l=(g<3?p(l):g>3?p(r,a,l):p(r,a))||l);return g>3&&l&&Object.defineProperty(r,a,l),l},_=this&&this.__param||function(e,r){return function(a,f){r(a,f,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const n=o(9042),c=o(9924),u=o(844),v=o(4725),h=o(2585),t=o(3656);let i=s.AccessibilityManager=class extends u.Disposable{constructor(e,r,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let p=0;p<this._terminal.rows;p++)this._rowElements[p]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[p]);if(this._topBoundaryFocusListener=p=>this._handleBoundaryFocus(p,0),this._bottomBoundaryFocusListener=p=>this._handleBoundaryFocus(p,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new c.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(p=>this._handleResize(p.rows))),this.register(this._terminal.onRender(p=>this._refreshRows(p.start,p.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(p=>this._handleChar(p))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
|
|
2
2
|
`))),this.register(this._terminal.onA11yTab(p=>this._handleTab(p))),this.register(this._terminal.onKey(p=>this._handleKey(p.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this.register((0,t.addDisposableDomListener)(document,"selectionchange",()=>this._handleSelectionChange())),this.register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,u.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let r=0;r<e;r++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
|
|
3
3
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,r){this._liveRegionDebouncer.refresh(e,r,this._terminal.rows)}_renderRows(e,r){const a=this._terminal.buffer,f=a.lines.length.toString();for(let p=e;p<=r;p++){const g=a.lines.get(a.ydisp+p),l=[],m=g?.translateToString(!0,void 0,void 0,l)||"",E=(a.ydisp+p+1).toString(),x=this._rowElements[p];x&&(m.length===0?(x.innerText=" ",this._rowColumns.set(x,[0,1])):(x.textContent=m,this._rowColumns.set(x,l)),x.setAttribute("aria-posinset",E),x.setAttribute("aria-setsize",f))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,r){const a=e.target,f=this._rowElements[r===0?1:this._rowElements.length-2];if(a.getAttribute("aria-posinset")===(r===0?"1":`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==f)return;let p,g;if(r===0?(p=a,g=this._rowElements.pop(),this._rowContainer.removeChild(g)):(p=this._rowElements.shift(),g=a,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),g.removeEventListener("focus",this._bottomBoundaryFocusListener),r===0){const l=this._createAccessibilityTreeNode();this._rowElements.unshift(l),this._rowContainer.insertAdjacentElement("afterbegin",l)}else{const l=this._createAccessibilityTreeNode();this._rowElements.push(l),this._rowContainer.appendChild(l)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(r===0?-1:1),this._rowElements[r===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;const e=document.getSelection();if(!e)return;if(e.isCollapsed)return void(this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection());if(!e.anchorNode||!e.focusNode)return void console.error("anchorNode and/or focusNode are null");let r={node:e.anchorNode,offset:e.anchorOffset},a={node:e.focusNode,offset:e.focusOffset};if((r.node.compareDocumentPosition(a.node)&Node.DOCUMENT_POSITION_PRECEDING||r.node===a.node&&r.offset>a.offset)&&([r,a]=[a,r]),r.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(r={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(r.node))return;const f=this._rowElements.slice(-1)[0];if(a.node.compareDocumentPosition(f)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(a={node:f,offset:f.textContent?.length??0}),!this._rowContainer.contains(a.node))return;const p=({node:m,offset:E})=>{const x=m instanceof Text?m.parentNode:m;let L=parseInt(x?.getAttribute("aria-posinset"),10)-1;if(isNaN(L))return console.warn("row is invalid. Race condition?"),null;const b=this._rowColumns.get(x);if(!b)return console.warn("columns is null. Race condition?"),null;let R=E<b.length?b[E]:b.slice(-1)[0]+1;return R>=this._terminal.cols&&(++L,R=0),{row:L,column:R}},g=p(r),l=p(a);if(g&&l){if(g.row>l.row||g.row===l.row&&g.column>=l.column)throw new Error("invalid range");this._terminal.select(g.column,g.row,(l.row-g.row)*this._terminal.cols-g.column+l.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let r=this._rowContainer.children.length;r<this._terminal.rows;r++)this._rowElements[r]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[r]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}};s.AccessibilityManager=i=d([_(1,h.IInstantiationService),_(2,v.ICoreBrowserService),_(3,v.IRenderService)],i)},3614:(A,s)=>{function o(c){return c.replace(/\r?\n/g,"\r")}function d(c,u){return u?"\x1B[200~"+c+"\x1B[201~":c}function _(c,u,v,h){c=d(c=o(c),v.decPrivateModes.bracketedPasteMode&&h.rawOptions.ignoreBracketedPasteMode!==!0),v.triggerDataEvent(c,!0),u.value=""}function n(c,u,v){const h=v.getBoundingClientRect(),t=c.clientX-h.left-10,i=c.clientY-h.top-10;u.style.width="20px",u.style.height="20px",u.style.left=`${t}px`,u.style.top=`${i}px`,u.style.zIndex="1000",u.focus()}Object.defineProperty(s,"__esModule",{value:!0}),s.rightClickHandler=s.moveTextAreaUnderMouseCursor=s.paste=s.handlePasteEvent=s.copyHandler=s.bracketTextForPaste=s.prepareTextForTerminal=void 0,s.prepareTextForTerminal=o,s.bracketTextForPaste=d,s.copyHandler=function(c,u){c.clipboardData&&c.clipboardData.setData("text/plain",u.selectionText),c.preventDefault()},s.handlePasteEvent=function(c,u,v,h){c.stopPropagation(),c.clipboardData&&_(c.clipboardData.getData("text/plain"),u,v,h)},s.paste=_,s.moveTextAreaUnderMouseCursor=n,s.rightClickHandler=function(c,u,v,h,t){n(c,u,v),t&&h.rightClickSelect(c),u.value=h.selectionText,u.select()}},7239:(A,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorContrastCache=void 0;const d=o(1505);s.ColorContrastCache=class{constructor(){this._color=new d.TwoKeyMap,this._css=new d.TwoKeyMap}setCss(_,n,c){this._css.set(_,n,c)}getCss(_,n){return this._css.get(_,n)}setColor(_,n,c){this._color.set(_,n,c)}getColor(_,n){return this._color.get(_,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(A,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.addDisposableDomListener=void 0,s.addDisposableDomListener=function(o,d,_,n){o.addEventListener(d,_,n);let c=!1;return{dispose:()=>{c||(c=!0,o.removeEventListener(d,_,n))}}}},3551:function(A,s,o){var d=this&&this.__decorate||function(i,e,r,a){var f,p=arguments.length,g=p<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,e,r,a);else for(var l=i.length-1;l>=0;l--)(f=i[l])&&(g=(p<3?f(g):p>3?f(e,r,g):f(e,r))||g);return p>3&&g&&Object.defineProperty(e,r,g),g},_=this&&this.__param||function(i,e){return function(r,a){e(r,a,i)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Linkifier=void 0;const n=o(3656),c=o(8460),u=o(844),v=o(2585),h=o(4725);let t=s.Linkifier=class extends u.Disposable{get currentLink(){return this._currentLink}constructor(i,e,r,a,f){super(),this._element=i,this._mouseService=e,this._renderService=r,this._bufferService=a,this._linkProviderService=f,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new c.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new c.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,u.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,u.toDisposable)(()=>{this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(i){this._lastMouseEvent=i;const e=this._positionFromMouseEvent(i,this._element,this._mouseService);if(!e)return;this._isMouseOut=!1;const r=i.composedPath();for(let a=0;a<r.length;a++){const f=r[a];if(f.classList.contains("xterm"))break;if(f.classList.contains("xterm-hover"))return}this._lastBufferCell&&e.x===this._lastBufferCell.x&&e.y===this._lastBufferCell.y||(this._handleHover(e),this._lastBufferCell=e)}_handleHover(i){if(this._activeLine!==i.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(i,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,i)||(this._clearCurrentLink(),this._askForLink(i,!0))}_askForLink(i,e){this._activeProviderReplies&&e||(this._activeProviderReplies?.forEach(a=>{a?.forEach(f=>{f.link.dispose&&f.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=i.y);let r=!1;for(const[a,f]of this._linkProviderService.linkProviders.entries())e?this._activeProviderReplies?.get(a)&&(r=this._checkLinkProviderResult(a,i,r)):f.provideLinks(i.y,p=>{if(this._isMouseOut)return;const g=p?.map(l=>({link:l}));this._activeProviderReplies?.set(a,g),r=this._checkLinkProviderResult(a,i,r),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(i.y,this._activeProviderReplies)})}_removeIntersectingLinks(i,e){const r=new Set;for(let a=0;a<e.size;a++){const f=e.get(a);if(f)for(let p=0;p<f.length;p++){const g=f[p],l=g.link.range.start.y<i?0:g.link.range.start.x,m=g.link.range.end.y>i?this._bufferService.cols:g.link.range.end.x;for(let E=l;E<=m;E++){if(r.has(E)){f.splice(p--,1);break}r.add(E)}}}}_checkLinkProviderResult(i,e,r){if(!this._activeProviderReplies)return r;const a=this._activeProviderReplies.get(i);let f=!1;for(let p=0;p<i;p++)this._activeProviderReplies.has(p)&&!this._activeProviderReplies.get(p)||(f=!0);if(!f&&a){const p=a.find(g=>this._linkAtPosition(g.link,e));p&&(r=!0,this._handleNewLink(p))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!r)for(let p=0;p<this._activeProviderReplies.size;p++){const g=this._activeProviderReplies.get(p)?.find(l=>this._linkAtPosition(l.link,e));if(g){r=!0,this._handleNewLink(g);break}}return r}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(i){if(!this._currentLink)return;const e=this._positionFromMouseEvent(i,this._element,this._mouseService);e&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,e)&&this._currentLink.link.activate(i,this._currentLink.link.text)}_clearCurrentLink(i,e){this._currentLink&&this._lastMouseEvent&&(!i||!e||this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=e)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,u.disposeArray)(this._linkCacheDisposables))}_handleNewLink(i){if(!this._lastMouseEvent)return;const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._linkAtPosition(i.link,e)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:i.link.decorations===void 0||i.link.decorations.underline,pointerCursor:i.link.decorations===void 0||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:r=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==r&&(this._currentLink.state.decorations.pointerCursor=r,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",r))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:r=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==r&&(this._currentLink.state.decorations.underline=r,this._currentLink.state.isHovered&&this._fireUnderlineEvent(i.link,r))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(r=>{if(!this._currentLink)return;const a=r.start===0?0:r.start+1+this._bufferService.buffer.ydisp,f=this._bufferService.buffer.ydisp+1+r.end;if(this._currentLink.link.range.start.y>=a&&this._currentLink.link.range.end.y<=f&&(this._clearCurrentLink(a,f),this._lastMouseEvent)){const p=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);p&&this._askForLink(p,!1)}})))}_linkHover(i,e,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!0),this._currentLink.state.decorations.pointerCursor&&i.classList.add("xterm-cursor-pointer")),e.hover&&e.hover(r,e.text)}_fireUnderlineEvent(i,e){const r=i.range,a=this._bufferService.buffer.ydisp,f=this._createLinkUnderlineEvent(r.start.x-1,r.start.y-a-1,r.end.x,r.end.y-a-1,void 0);(e?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)}_linkLeave(i,e,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!1),this._currentLink.state.decorations.pointerCursor&&i.classList.remove("xterm-cursor-pointer")),e.leave&&e.leave(r,e.text)}_linkAtPosition(i,e){const r=i.range.start.y*this._bufferService.cols+i.range.start.x,a=i.range.end.y*this._bufferService.cols+i.range.end.x,f=e.y*this._bufferService.cols+e.x;return r<=f&&f<=a}_positionFromMouseEvent(i,e,r){const a=r.getCoords(i,e,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(i,e,r,a,f){return{x1:i,y1:e,x2:r,y2:a,cols:this._bufferService.cols,fg:f}}};s.Linkifier=t=d([_(1,h.IMouseService),_(2,h.IRenderService),_(3,v.IBufferService),_(4,h.ILinkProviderService)],t)},9042:(A,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.tooMuchOutput=s.promptLabel=void 0,s.promptLabel="Terminal input",s.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(A,s,o){var d=this&&this.__decorate||function(h,t,i,e){var r,a=arguments.length,f=a<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,i):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(h,t,i,e);else for(var p=h.length-1;p>=0;p--)(r=h[p])&&(f=(a<3?r(f):a>3?r(t,i,f):r(t,i))||f);return a>3&&f&&Object.defineProperty(t,i,f),f},_=this&&this.__param||function(h,t){return function(i,e){t(i,e,h)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkProvider=void 0;const n=o(511),c=o(2585);let u=s.OscLinkProvider=class{constructor(h,t,i){this._bufferService=h,this._optionsService=t,this._oscLinkService=i}provideLinks(h,t){const i=this._bufferService.buffer.lines.get(h-1);if(!i)return void t(void 0);const e=[],r=this._optionsService.rawOptions.linkHandler,a=new n.CellData,f=i.getTrimmedLength();let p=-1,g=-1,l=!1;for(let m=0;m<f;m++)if(g!==-1||i.hasContent(m)){if(i.loadCell(m,a),a.hasExtendedAttrs()&&a.extended.urlId){if(g===-1){g=m,p=a.extended.urlId;continue}l=a.extended.urlId!==p}else g!==-1&&(l=!0);if(l||g!==-1&&m===f-1){const E=this._oscLinkService.getLinkData(p)?.uri;if(E){const x={start:{x:g+1,y:h},end:{x:m+(l||m!==f-1?0:1),y:h}};let L=!1;if(!r?.allowNonHttpProtocols)try{const b=new URL(E);["http:","https:"].includes(b.protocol)||(L=!0)}catch{L=!0}L||e.push({text:E,range:x,activate:(b,R)=>r?r.activate(b,R,x):v(0,R),hover:(b,R)=>r?.hover?.(b,R,x),leave:(b,R)=>r?.leave?.(b,R,x)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(g=m,p=a.extended.urlId):(g=-1,p=-1)}}t(e)}};function v(h,t){if(confirm(`Do you want to navigate to ${t}?
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as C}from"./index-
|
|
1
|
+
import{r as C}from"./index-BAG4sFIa.js";const L=t=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},C.createElement("path",{d:"M6.03984 17.625C6.08672 17.625 6.13359 17.6203 6.18047 17.6133L10.1227 16.9219C10.1695 16.9125 10.2141 16.8914 10.2469 16.8563L20.182 6.92109C20.2038 6.89941 20.221 6.87366 20.2328 6.8453C20.2445 6.81695 20.2506 6.78656 20.2506 6.75586C20.2506 6.72516 20.2445 6.69477 20.2328 6.66642C20.221 6.63806 20.2038 6.61231 20.182 6.59063L16.2867 2.69297C16.2422 2.64844 16.1836 2.625 16.1203 2.625C16.057 2.625 15.9984 2.64844 15.9539 2.69297L6.01875 12.6281C5.98359 12.6633 5.9625 12.7055 5.95312 12.7523L5.26172 16.6945C5.23892 16.8201 5.24707 16.9493 5.28545 17.071C5.32384 17.1927 5.39132 17.3032 5.48203 17.393C5.63672 17.543 5.83125 17.625 6.03984 17.625ZM7.61953 13.5375L16.1203 5.03906L17.8383 6.75703L9.3375 15.2555L7.25391 15.6234L7.61953 13.5375ZM20.625 19.5938H3.375C2.96016 19.5938 2.625 19.9289 2.625 20.3438V21.1875C2.625 21.2906 2.70937 21.375 2.8125 21.375H21.1875C21.2906 21.375 21.375 21.2906 21.375 21.1875V20.3438C21.375 19.9289 21.0398 19.5938 20.625 19.5938Z"}));export{L as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dz as e,eX as r,eY as s}from"./index-BAG4sFIa.js";const a=e(r),t=e(s);export{a,t as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{fq as e}from"./index-BAG4sFIa.js";var i=e();export{i as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as f}from"./index-
|
|
1
|
+
import{m as f}from"./index-Bw9bFr7r.js";import"./index-BAG4sFIa.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cY as t,H as o}from"./index-
|
|
1
|
+
import{cY as t,H as o}from"./index-BAG4sFIa.js";function c(...e){try{return t(...e)}catch(r){throw o.error("Invalid redirect url"),console.error("Invalid redirect url",r),r}}export{c as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r}from"./index-BAG4sFIa.js";function a(t){return r.Children.toArray(t).filter(e=>r.isValidElement(e))}export{a as g};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{e as h,g as v,a as f,U as M,l as m,C as r}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Bw9bFr7r.js","./index-BAG4sFIa.js","./index-DGkT7afN.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{e as h,g as v,a as f,U as M,l as m,C as r}from"./index-Bw9bFr7r.js";import{bK as T}from"./index-BAG4sFIa.js";import"./decode-DPztD6kB.js";const x=2*60*1e3;class b{_defaults;_idleCheckInterval;_lastUsedTime=0;_configChangeListener;_worker=null;_client=null;constructor(e){this._defaults=e,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._configChangeListener=this._defaults.onDidChange(()=>{this._stopWorker()})}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}async _getClient(){if(this._lastUsedTime=Date.now(),!this._client&&!this._worker)try{const{languageId:e,formattingOptions:s,schemas:c,externalFragmentDefinitions:a,completionSettings:l}=this._defaults;this._worker=h.createWebWorker({moduleId:"monaco-graphql/esm/GraphQLWorker.js",label:e,createData:{languageId:e,formattingOptions:s,languageConfig:{schemas:c?.map(v),externalFragmentDefinitions:a,fillLeafsOnComplete:l.__experimental__fillLeafsOnComplete}}}),this._client=this._worker.getProxy()}catch(e){console.error("error loading worker",e)}return this._client}async getLanguageServiceWorker(...e){const s=await this._getClient();return await this._worker.withSyncedResources(e),s}}class F{defaults;_worker;_disposables=[];_listener=Object.create(null);constructor(e,s){this.defaults=e,this._worker=s,this._worker=s;let c;const a=t=>{const d=f(t);if(d!==this.defaults.languageId)return;const g=t.uri.toString(),u=e.diagnosticSettings.validateVariablesJSON?.[g];c=setTimeout(()=>{this._doValidate(t.uri,d,u)},400),this._listener[g]=t.onDidChangeContent(()=>{clearTimeout(c),c=setTimeout(()=>{this._doValidate(t.uri,d,u)},400)})},l=t=>{h.setModelMarkers(t,this.defaults.languageId,[]);const d=t.uri.toString(),g=this._listener[d];g&&(g.dispose(),delete this._listener[d])};this._disposables.push(h.onDidCreateModel(a),{dispose(){clearTimeout(c)}},h.onWillDisposeModel(t=>{l(t)}),h.onDidChangeModelLanguage(t=>{l(t.model),a(t.model)}),{dispose:()=>{for(const t of Object.values(this._listener))t.dispose()}},e.onDidChange(()=>{for(const t of h.getModels())f(t)===this.defaults.languageId&&(l(t),a(t))}));for(const t of h.getModels())f(t)===this.defaults.languageId&&a(t)}dispose(){for(const e of this._disposables)e.dispose();this._disposables=[]}async _doValidate(e,s,c){const a=await this._worker(e);if(!a)return;const l=await a.doValidation(e.toString());if(h.setModelMarkers(h.getModel(e),s,l),c){if(await T(()=>import("./index-Bw9bFr7r.js").then(p=>p.b),__vite__mapDeps([0,1,2,3,4]),import.meta.url),!c.length)throw new Error("No variables URI strings provided to validate");const t=await a.doGetVariablesJSONSchema(e.toString());if(!t)return;const d=M.file(c[0].replace(".json","-schema.json")).toString(),g={uri:d,schema:t,fileMatch:c},u=m.json.jsonDefaults.diagnosticsOptions.schemas?.filter(p=>p.uri!==d)||[];m.json.jsonDefaults.setDiagnosticsOptions({schemaValidation:"error",validate:!0,...this.defaults.diagnosticSettings.jsonDiagnosticSettings,schemas:[...u,g],enableSchemaRequest:!1})}}}const i=m.CompletionItemKind,C={[r.Text]:i.Text,[r.Method]:i.Method,[r.Function]:i.Function,[r.Constructor]:i.Constructor,[r.Field]:i.Field,[r.Variable]:i.Variable,[r.Class]:i.Class,[r.Interface]:i.Interface,[r.Module]:i.Module,[r.Property]:i.Property,[r.Unit]:i.Unit,[r.Value]:i.Value,[r.Enum]:i.Enum,[r.Keyword]:i.Keyword,[r.Snippet]:i.Snippet,[r.Color]:i.Color,[r.File]:i.File,[r.Reference]:i.Reference,[r.Folder]:i.Folder,[r.EnumMember]:i.EnumMember,[r.Constant]:i.Constant,[r.Struct]:i.Struct,[r.Event]:i.Event,[r.Operator]:i.Operator,[r.TypeParameter]:i.TypeParameter};function E(o){return o in C?C[o]:i.Text}function O(o){return{range:o.range,kind:E(o.kind),label:o.label,insertText:o.insertText??o.label,insertTextRules:o.insertText?m.CompletionItemInsertTextRule.InsertAsSnippet:void 0,sortText:o.sortText,filterText:o.filterText,documentation:o.documentation,detail:o.detail,command:o.command}}class L{_worker;constructor(e){this._worker=e,this._worker=e}get triggerCharacters(){return[":","$"," ","(","@"]}async provideCompletionItems(e,s,c,a){try{return{incomplete:!0,suggestions:(await(await this._worker(e.uri)).doComplete(e.uri.toString(),s)).map(O)}}catch(l){return console.error("Error fetching completion items",l),{suggestions:[]}}}}class P{_worker;constructor(e){this._worker=e,this._worker=e}async provideDocumentFormattingEdits(e,s,c){const l=await(await this._worker(e.uri)).doFormat(e.uri.toString());return l?[{range:e.getFullModelRange(),text:l}]:[]}}class V{_worker;constructor(e){this._worker=e}async provideHover(e,s,c){const a=e.uri,t=await(await this._worker(e.uri)).doHover(a.toString(),s);return t?{range:t.range,contents:[{value:t.content}]}:{contents:[]}}dispose(){}}function W(o){const e=[],s=[],c=new b(o);e.push(c);const a=(...n)=>{try{return c.getLanguageServiceWorker(...n)}catch{throw new Error("Error fetching graphql language service worker")}};function l(){const{modeConfiguration:n,languageId:_}=o;n.documentFormattingEdits&&s.push(m.registerDocumentFormattingEditProvider(_,new P(a)))}function t(n){const{modeConfiguration:_,languageId:w}=o;S(s),_.completionItems&&s.push(m.registerCompletionItemProvider(w,new L(a))),_.diagnostics&&s.push(new F(n,a)),_.hovers&&s.push(m.registerHoverProvider(w,new V(a))),l()}let{modeConfiguration:d,formattingOptions:g,diagnosticSettings:u,externalFragmentDefinitions:p,schemas:k}=o;return t(o),o.onDidChange(n=>{n.modeConfiguration!==d&&(d=n.modeConfiguration,t(n)),n.formattingOptions!==g&&(g=n.formattingOptions,l()),n.externalFragmentDefinitions!==p&&(p=n.externalFragmentDefinitions,t(n)),n.diagnosticSettings!==u&&(u=n.diagnosticSettings,t(n)),n.schemas!==k&&(k=n.schemas,t(n))}),e.push(I(s)),I(e)}function I(o){return{dispose:()=>S(o)}}function S(o){for(;o.length;)o.pop().dispose()}export{W as setupMode};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as i}from"./index-
|
|
1
|
+
import{m as i}from"./index-Bw9bFr7r.js";import"./index-BAG4sFIa.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as s}from"./index-
|
|
1
|
+
import{m as s}from"./index-Bw9bFr7r.js";import"./index-BAG4sFIa.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|