@abtnode/webapp 1.16.28-beta-7ddc3b2d → 1.16.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-i_eGmIkF.js → Add-B8Ae2MjM.js} +1 -1
- package/dist/assets/{ArrowDropDown-CRJiMsxl.js → ArrowDropDown-BNt-WuI3.js} +1 -1
- package/dist/assets/{Autocomplete-BkNAtuyq.js → Autocomplete-Bo6UH2XL.js} +1 -1
- package/dist/assets/{Breadcrumbs-D8UxFHZC.js → Breadcrumbs-CkmMkQDW.js} +1 -1
- package/dist/assets/{ButtonGroup-G7oFneKA.js → ButtonGroup-OcQcEz6r.js} +1 -1
- package/dist/assets/{CheckCircle-CpgwIoc6.js → CheckCircle-BnRenrK4.js} +1 -1
- package/dist/assets/{ChevronLeft-BqOWO5Oh.js → ChevronLeft-Dp9aa91c.js} +1 -1
- package/dist/assets/{ChevronRight-DDJkuJhV.js → ChevronRight-C3NPaw6o.js} +1 -1
- package/dist/assets/{Close-BltjIlg7.js → Close-Cbaq-RRq.js} +1 -1
- package/dist/assets/{Delete-KztH8pOq.js → Delete-CnrKsAGC.js} +1 -1
- package/dist/assets/DeleteOutline-B4LqoCK2.js +1 -0
- package/dist/assets/{Done-CEgWviUN.js → Done-BCLH1e-Y.js} +1 -1
- package/dist/assets/{Edit-jbcm5AKt.js → Edit-i_Bman7K.js} +1 -1
- package/dist/assets/{EditIcon-DAtBHTkl.js → EditIcon-DmNEjmIQ.js} +1 -1
- package/dist/assets/{FilterList-D84A-7C6.js → FilterList-fpG1-3KQ.js} +1 -1
- package/dist/assets/{Google-CCNGxrji.js → Google-DLkd6TAZ.js} +1 -1
- package/dist/assets/{Https-DsiZfUtZ.js → Https-amCzjB1a.js} +1 -1
- package/dist/assets/{InputAdornment-CfEcRXzS.js → InputAdornment-C6LFxcti.js} +1 -1
- package/dist/assets/{InputLabel-ERXbfftZ.js → InputLabel-avYwCvJM.js} +1 -1
- package/dist/assets/{LastPage-Cad46J9e.js → LastPage-DnBOlrut.js} +1 -1
- package/dist/assets/{Launch-fB5PS8PY.js → Launch-DPclIZbd.js} +1 -1
- package/dist/assets/{Link-Dzd80klt.js → Link-DfSEdivF.js} +1 -1
- package/dist/assets/{LoadingButton-hHC9D6Jh.js → LoadingButton-xveWP_M5.js} +1 -1
- package/dist/assets/{LockIcon-BgCC_gMD.js → LockIcon-9c7sG23a.js} +1 -1
- package/dist/assets/{Loop-BTQochTH.js → Loop-DwAWKPvc.js} +1 -1
- package/dist/assets/{MoreVert-CWypNP8g.js → MoreVert-Nc1QBj2D.js} +1 -1
- package/dist/assets/{Pagination-Btpup9Q2.js → Pagination-D5t0OCBH.js} +1 -1
- package/dist/assets/{Public-YuAmoyPx.js → Public-BLh26Bb9.js} +1 -1
- package/dist/assets/{SchemaReference.es-DbpM2rcO.js → SchemaReference.es--oFfd0mm.js} +1 -1
- package/dist/assets/{Search-uFerpv5L.js → Search-DnnCUnjB.js} +1 -1
- package/dist/assets/{Select-b09v8FPX.js → Select-CBA-xyOJ.js} +1 -1
- package/dist/assets/{Skeleton-zb5bXzJn.js → Skeleton-CQPjJHp3.js} +1 -1
- package/dist/assets/{Slider-Ct9swbug.js → Slider-Bdpm9oO4.js} +1 -1
- package/dist/assets/{Stepper-WgjnG7-H.js → Stepper-UEQaZPW7.js} +1 -1
- package/dist/assets/{TextField-BPO9Hci-.js → TextField-DjRhIjo4.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-PBOhq3jx.js → ToggleButtonGroup-Drarswgi.js} +1 -1
- package/dist/assets/{ViewList-DiAWVo-f.js → ViewList-CoYI2XgO.js} +1 -1
- package/dist/assets/{actions-CS2Trs8B.js → actions-BAUfPsQv.js} +1 -1
- package/dist/assets/{actions-CYOQRhpw.js → actions-C1t0ka-G.js} +1 -1
- package/dist/assets/{agreement-Br53N-6_.js → agreement-_qYynElX.js} +1 -1
- package/dist/assets/api-xvCGCwMn.js +1 -0
- package/dist/assets/{app-avatar-BhPctNAT.js → app-avatar-DcgC0kB0.js} +1 -1
- package/dist/assets/{audit-logs-DTUtFnAK.js → audit-logs-BqT_1MLt.js} +1 -1
- package/dist/assets/{brace-fold.es-BSNAOfKd.js → brace-fold.es-CkrKXotH.js} +1 -1
- package/dist/assets/{bundle-avatar-CbU_wbB2.js → bundle-avatar-RiFaz1Hb.js} +1 -1
- package/dist/assets/{chart-BUxn7CWp.js → chart-Cinf5zq_.js} +1 -1
- package/dist/assets/{click-to-copy-BLqu2SLV.js → click-to-copy-Bj13kdln.js} +1 -1
- package/dist/assets/{closebrackets.es-DynJAn1e.js → closebrackets.es-C32XuxI5.js} +1 -1
- package/dist/assets/{codemirror.es-cljF5Vfg.js → codemirror.es-oms3GpFv.js} +1 -1
- package/dist/assets/{comment.es-CoFz2Oy_.js → comment.es-AVZXTIDr.js} +1 -1
- package/dist/assets/{config-navigation-DZx1cn4-.js → config-navigation-LFUjTzgk.js} +1 -1
- package/dist/assets/{delete-confirm-CcpxufKB.js → delete-confirm-BoeDYrYX.js} +1 -1
- package/dist/assets/{detail-CIhc9jZt.js → detail-CHKmnQLc.js} +3 -3
- package/dist/assets/{dialog.es-C6n3qH0v.js → dialog.es-DHZdXjGS.js} +1 -1
- package/dist/assets/{download-xUEvruKh.js → download-DFPnF7mz.js} +1 -1
- package/dist/assets/{foldgutter.es-C2zr_tXR.js → foldgutter.es-CSicbQSJ.js} +1 -1
- package/dist/assets/getValidReactChildren-GMOIXwRG.js +1 -0
- package/dist/assets/{hint.es-D0wd5c9g.js → hint.es-DAEQ9N76.js} +1 -1
- package/dist/assets/{hint.es2-DMsolbMA.js → hint.es2-DYXluLKu.js} +1 -1
- package/dist/assets/{iframe-n_w2gI30.js → iframe-DwuYX0Xq.js} +1 -1
- package/dist/assets/{index-xRBNy1in.js → index-0RUAEm49.js} +1 -1
- package/dist/assets/{index-C8pFKy9H.js → index-7J6TijHC.js} +1 -1
- package/dist/assets/{index-BBEuxxjq.js → index-9R6mPPbN.js} +1 -1
- package/dist/assets/{index-Cr1Psinm.js → index-B60jROHj.js} +2 -2
- package/dist/assets/{index-Chps_oCL.js → index-BBnT5XB9.js} +1 -1
- package/dist/assets/{index-H43aSOyt.js → index-BKck0oIO.js} +1 -1
- package/dist/assets/{index-BgG0evtj.js → index-BKi0XLcv.js} +1 -1
- package/dist/assets/{index-BOADFDIv.js → index-BVznp3M0.js} +1 -1
- package/dist/assets/{index-C2Cgygdk.js → index-BbS1Wq4p.js} +1 -1
- package/dist/assets/{index-BEQyLEKb.js → index-BbW2IRRR.js} +1 -1
- package/dist/assets/{index-yF_Q2_O-.js → index-BnFWpIPQ.js} +1 -1
- package/dist/assets/{index-CxaGo2hZ.js → index-ByF3apMm.js} +10 -10
- package/dist/assets/{index-Dvf0fvGe.js → index-CHjwpGia.js} +1 -1
- package/dist/assets/{index-DxX4hb7b.js → index-CIbzY-F7.js} +1 -1
- package/dist/assets/{index-zZFI1GlJ.js → index-CKOyruf_.js} +1 -1
- package/dist/assets/{index-DIuisRmH.js → index-CZKHzmkC.js} +1 -1
- package/dist/assets/{index-D3ulER0U.js → index-CiZAReVP.js} +1 -1
- package/dist/assets/{index-BLEzKgrJ.js → index-Cl2QG8J6.js} +1 -1
- package/dist/assets/{index-DS1JU_-_.js → index-CqcpZ8C3.js} +2 -2
- package/dist/assets/{index-BSqmsUTI.js → index-CtzAe2AR.js} +1 -1
- package/dist/assets/{index-Dl2hud6k.js → index-CucnV9EX.js} +1 -1
- package/dist/assets/{index-DCQd0BKE.js → index-CyYUysSv.js} +1 -1
- package/dist/assets/{index-DxGSDzwI.js → index-D5MDxbqt.js} +1 -1
- package/dist/assets/{index-BwD5fAbE.js → index-DHYJxTcV.js} +5 -5
- package/dist/assets/{index-CHBNQD8C.js → index-DKkTRBZn.js} +3 -3
- package/dist/assets/{index-JffoMuKt.js → index-DOsg2sHH.js} +1 -1
- package/dist/assets/{index-CLIK5uaQ.js → index-DPx9NPlp.js} +1 -1
- package/dist/assets/{index-B2PJyxbf.js → index-DSByvARI.js} +1 -1
- package/dist/assets/{index-DNSbmp0u.js → index-DU7hJgoO.js} +1 -1
- package/dist/assets/{index-BoHcyWvQ.js → index-DV2quTIn.js} +1 -1
- package/dist/assets/{index-DqdZ9FKF.js → index-DcU_Cijj.js} +1 -1
- package/dist/assets/{index-Db0xkYaW.js → index-DfNh08gP.js} +3 -3
- package/dist/assets/{index-DvtCtx64.js → index-DmPgcoiv.js} +1 -1
- package/dist/assets/{index-BtKnBn2o.js → index-DrWhB0MJ.js} +1 -1
- package/dist/assets/{index-RAfI5Ovd.js → index-DsUZ7uiP.js} +1 -1
- package/dist/assets/{index-DZdSy-Ha.js → index-ECk6dODK.js} +1 -1
- package/dist/assets/index-HOVCi07-.js +54 -0
- package/dist/assets/index-ZQu91rXz.js +21 -0
- package/dist/assets/{index-DitmQRsw.js → index-baq8DMtQ.js} +1 -1
- package/dist/assets/{index-B_u7mT5U.js → index-cmiUur_8.js} +1 -1
- package/dist/assets/{index-CCIbtRAj.js → index-rPqHtLu4.js} +1 -1
- package/dist/assets/{index-BR3eM8Lx.js → index-v2cqn0eS.js} +1 -1
- package/dist/assets/{index-CzXBr0fB.js → index-zFXZLqso.js} +1 -1
- package/dist/assets/{index.es-Bq5abo39.js → index.es-Dkh9ejMp.js} +1 -1
- package/dist/assets/{index.esm-DvG22D3z.js → index.esm-Hqw0Nfnx.js} +1 -1
- package/dist/assets/{info-addon.es-C24VfKdY.js → info-addon.es-5NmROke-.js} +1 -1
- package/dist/assets/{info.es-Bqu2hgxq.js → info.es-CsELEfUv.js} +1 -1
- package/dist/assets/{install-from-url-BsrxhAMw.js → install-from-url-DXGlT7R8.js} +1 -1
- package/dist/assets/{invitation-BMg6rGzW.js → invitation-CSNEw5oM.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-PjyGugoV.js → is-path-prefix-equal-CoJozASB.js} +1 -1
- package/dist/assets/{isEqual-3iEl-twA.js → isEqual-BLnnfE4T.js} +1 -1
- package/dist/assets/{item-Yv551hqX.js → item-tD3jAfba.js} +1 -1
- package/dist/assets/{javascript.es-DqZLq1Ic.js → javascript.es-BIUhEWTj.js} +1 -1
- package/dist/assets/{jump-to-line.es-CUkkqFSr.js → jump-to-line.es-BQjWkUgo.js} +1 -1
- package/dist/assets/{jump.es-dT0NLpeH.js → jump.es-D8ZxFsmc.js} +1 -1
- package/dist/assets/{line-CG9AJRHJ.js → line-DW0juCGB.js} +3 -3
- package/dist/assets/{lint.es-BQv8s92u.js → lint.es-Dv2pWRyz.js} +1 -1
- package/dist/assets/{lint.es2-Bw5fcxch.js → lint.es2-CqGQ_rnk.js} +1 -1
- package/dist/assets/{lint.es3-CX_qCTWo.js → lint.es3-g58ofVJA.js} +1 -1
- package/dist/assets/{list-header-3UZEZSQm.js → list-header-tjKXNgOR.js} +1 -1
- package/dist/assets/{log-C6NBJs93.js → log-BFiA_Tyh.js} +1 -1
- package/dist/assets/{lottie-GpNsBU3J.js → lottie-yeTV0Y2m.js} +1 -1
- package/dist/assets/{matchbrackets.es-Kf3wI0kD.js → matchbrackets.es-B-Xj5H9Q.js} +1 -1
- package/dist/assets/{memory-CnY03W9t.js → memory-C7a59RsU.js} +1 -1
- package/dist/assets/{mode.es-DGRXJ00j.js → mode.es-BSNxo6gK.js} +1 -1
- package/dist/assets/{mode.es2-DtvaqXOt.js → mode.es2-C1LDwVOl.js} +1 -1
- package/dist/assets/{mode.es3-B8JtCbCV.js → mode.es3-C6-ZTyOk.js} +1 -1
- package/dist/assets/{onlineParser.es-ZkK82Jda.js → onlineParser.es-BzK7GlZv.js} +1 -1
- package/dist/assets/{overview-BUJYpj1Q.js → overview-BlWFlRx2.js} +1 -1
- package/dist/assets/{react-BjVyu04q.js → react-1fE0Sobf.js} +3 -3
- package/dist/assets/{redux-gonzvYQ4.js → redux-hfExDDyr.js} +1 -1
- package/dist/assets/{resource-dialog-DO7gkp11.js → resource-dialog-DinbvH2C.js} +1 -1
- package/dist/assets/{runtime-BtNyIENm.js → runtime-tAjj0dmb.js} +1 -1
- package/dist/assets/{search.es-B_DIO3P6.js → search.es-DxfjuUNu.js} +1 -1
- package/dist/assets/{searchcursor.es-DSbkhPIa.js → searchcursor.es-C0Z2DY1c.js} +1 -1
- package/dist/assets/service-1GhnQw9a.js +1 -0
- package/dist/assets/{show-hint.es-DNIrnFs-.js → show-hint.es-q24U0q_A.js} +1 -1
- package/dist/assets/{slicedToArray-CjyU228M.js → slicedToArray-CYGiqzmA.js} +1 -1
- package/dist/assets/{spaces-BSCd0GtL.js → spaces-C58gy1rM.js} +1 -1
- package/dist/assets/{sublime.es-PWDR4BS_.js → sublime.es-BffqyCoy.js} +1 -1
- package/dist/assets/{switch-control-C8El4PwO.js → switch-control-CuPWIx6T.js} +1 -1
- package/dist/assets/{table-icons-DwX90JdI.js → table-icons-DOOoyljy.js} +2 -2
- package/dist/assets/{tag-Cvwm2gDk.js → tag-Cxx1sXPF.js} +1 -1
- package/dist/assets/{team-N6DYcIw9.js → team-BynFP1rM.js} +1 -1
- package/dist/assets/{toUpper-psJiJObX.js → toUpper-mYvRPeiI.js} +1 -1
- package/dist/assets/{traffic-CQiojOw9.js → traffic-D03HdfGL.js} +1 -1
- package/dist/assets/{url-evaluation-DjVe9I2g.js → url-evaluation-dheoi_Nj.js} +1 -1
- package/dist/assets/{url-join-D1xrWbhs.js → url-join-DMIMYkEk.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-IAC6QCQz.js → use-blocklet-info-for-connect-did-spaces-DWywlTbc.js} +1 -1
- package/dist/assets/{useLocalStorage-CcTbqaWM.js → useLocalStorage-C3GQNaV2.js} +1 -1
- package/dist/assets/{util-_4tqOqNO.js → util-cf4pvQDW.js} +1 -1
- package/dist/assets/{wait-container-4d4Uc1iI.js → wait-container-BwlRhWl0.js} +1 -1
- package/dist/assets/{withStyles-BiL7OyyA.js → withStyles-BkcRLEgx.js} +1 -1
- package/dist/assets/{wrap-locale-b15Mq8e0.js → wrap-locale-BqGpRCMA.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/DeleteOutline-Cwej9e35.js +0 -1
- package/dist/assets/DeleteOutline-DvFRqyWQ.js +0 -1
- package/dist/assets/api-UFWd_s1k.js +0 -1
- package/dist/assets/getValidReactChildren-7IUHA6fR.js +0 -1
- package/dist/assets/index-D9E6SEa0.js +0 -21
- package/dist/assets/index-DPGMTLlW.js +0 -54
- package/dist/assets/service-B4g9jUew.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__fileDeps=["./index-
|
|
1
|
+
const __vite__fileDeps=["./index-9R6mPPbN.js","./index-D9k2I5J1.js","./index-BKi0XLcv.js","./click-to-copy-Bj13kdln.js","./withStyles-BkcRLEgx.js","./index-0RUAEm49.js","./useLocalStorage-C3GQNaV2.js","./index-CZKHzmkC.js","./FilterList-fpG1-3KQ.js","./Select-CBA-xyOJ.js","./Delete-CnrKsAGC.js","./InputLabel-avYwCvJM.js","./TextField-DjRhIjo4.js","./LastPage-DnBOlrut.js","./index-baq8DMtQ.js","./redux-hfExDDyr.js","./Search-DnnCUnjB.js","./index-CtzAe2AR.js","./MoreVert-Nc1QBj2D.js","./url-evaluation-dheoi_Nj.js","./tag-Cxx1sXPF.js","./actions-C1t0ka-G.js","./ButtonGroup-OcQcEz6r.js","./getValidReactChildren-GMOIXwRG.js","./index-BVznp3M0.js","./isEqual-BLnnfE4T.js","./install-from-url-DXGlT7R8.js","./Stepper-UEQaZPW7.js","./app-avatar-DcgC0kB0.js","./Add-B8Ae2MjM.js","./index-CKOyruf_.js","./index-ByF3apMm.js","./index-D5MDxbqt.js","./url-join-DMIMYkEk.js","./Skeleton-CQPjJHp3.js","./Close-Cbaq-RRq.js","./lottie-yeTV0Y2m.js","./wait-container-BwlRhWl0.js","./Launch-DPclIZbd.js","./DeleteOutline-B4LqoCK2.js","./spaces-C58gy1rM.js","./api-xvCGCwMn.js","./index-ZQu91rXz.js","./item-tD3jAfba.js","./index-CyYUysSv.js","./index-DcU_Cijj.js","./InputAdornment-C6LFxcti.js","./preact.module-B1z5cdvs.js","./Done-BCLH1e-Y.js","./delete-confirm-BoeDYrYX.js","./item-CxkJY_14.css","./ArrowDropDown-BNt-WuI3.js","./Breadcrumbs-CkmMkQDW.js","./index-CucnV9EX.js","./index-CIbzY-F7.js","./index.esm-Hqw0Nfnx.js","./switch-control-CuPWIx6T.js","./is-path-prefix-equal-CoJozASB.js","./Link-DfSEdivF.js","./logo-BKA11TRi.js","./LoadingButton-xveWP_M5.js","./Public-BLh26Bb9.js","./CheckCircle-BnRenrK4.js","./ChevronRight-C3NPaw6o.js","./Edit-i_Bman7K.js","./Https-amCzjB1a.js","./Slider-Bdpm9oO4.js","./index-DPx9NPlp.js","./download-DFPnF7mz.js","./download-D33dFtt_.css","./index-BbW2IRRR.js","./audit-logs-BqT_1MLt.js","./index-BbS1Wq4p.js","./index-D4PP6P2d.css","./Pagination-D5t0OCBH.js","./index-BKck0oIO.js","./index-v2cqn0eS.js","./Loop-DwAWKPvc.js","./ViewList-CoYI2XgO.js","./list-header-tjKXNgOR.js","./index-ECk6dODK.js","./resource-dialog-DinbvH2C.js","./index-DSByvARI.js","./team-BynFP1rM.js","./actions-BAUfPsQv.js","./index-CHjwpGia.js","./EditIcon-DmNEjmIQ.js","./LockIcon-9c7sG23a.js","./Google-DLkd6TAZ.js","./ToggleButtonGroup-Drarswgi.js","./detail-CHKmnQLc.js","./index-DsUZ7uiP.js","./index-DOsg2sHH.js","./invitation-CSNEw5oM.js","./index-7J6TijHC.js","./index-cmiUur_8.js","./wrap-locale-BqGpRCMA.js","./index-DfNh08gP.js","./index-DrWhB0MJ.js","./index-DmPgcoiv.js","./agreement-_qYynElX.js","./index-DV2quTIn.js","./index-zFXZLqso.js","./index-DHYJxTcV.js","./index-C7igR7se.css","./index-BnFWpIPQ.js","./traffic-D03HdfGL.js","./iframe-DwuYX0Xq.js","./ChevronLeft-Dp9aa91c.js","./chart-Cinf5zq_.js","./bundle-avatar-RiFaz1Hb.js","./memory-C7a59RsU.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
2
|
function OW(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var IW={exports:{}},i4={},PW={exports:{}},zn={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -2518,4 +2518,4 @@ ${r}
|
|
|
2518
2518
|
${e=>e.scrollable?"":"overflow: hidden"};
|
|
2519
2519
|
}
|
|
2520
2520
|
`;function nCt(){const{t:e}=fo(),{session:t}=y0(),{info:n,refresh:r}=Sl();return Ki(ti.TeamEvents.userUpdated,({teamDid:i,user:o})=>{i===n.did&&o&&!o.approved&&t&&t.user&&t.user.did===o.did&&(ci.warning(e("session.forbidLogin"),{autoHideDuration:10*1e3}),t.logout())}),Ki(rn.EVENTS.NOTIFICATION_CREATE,i=>{i.entityType==="node"&&r({silent:!0})}),Ki(rn.EVENTS.NODE_UPDATED,()=>{r({silent:!0})}),null}var Ss={},rCt=sie;function iCt(e){return e&&e.length?rCt(e):[]}var Vle=iCt;const P_t=Kt(Vle),oCt=gi(Lze);class aCt{constructor(t){this.value=t,this.next=void 0}}let sCt=class{constructor(){this.clear()}enqueue(t){const n=new aCt(t);this._head?(this._tail.next=n,this._tail=n):(this._head=n,this._tail=n),this._size++}dequeue(){const t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};var lCt=sCt;const uCt=lCt,cCt=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new uCt;let n=0;const r=()=>{n--,t.size>0&&t.dequeue()()},i=async(s,l,...c)=>{n++;const u=(async()=>s(...c))();l(u);try{await u}catch{}r()},o=(s,l,...c)=>{t.enqueue(i.bind(null,s,l,...c)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},a=(s,...l)=>new Promise(c=>{o(s,c,...l)});return Object.defineProperties(a,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a};var fCt=cCt,zle={},Ri={};Ri.endianness=function(){return"LE"};Ri.hostname=function(){return typeof location<"u"?location.hostname:""};Ri.loadavg=function(){return[]};Ri.uptime=function(){return 0};Ri.freemem=function(){return Number.MAX_VALUE};Ri.totalmem=function(){return Number.MAX_VALUE};Ri.cpus=function(){return[]};Ri.type=function(){return"Browser"};Ri.release=function(){return typeof navigator<"u"?navigator.appVersion:""};Ri.networkInterfaces=Ri.getNetworkInterfaces=function(){return{}};Ri.arch=function(){return"javascript"};Ri.platform=function(){return"browser"};Ri.tmpdir=Ri.tmpDir=function(){return"/tmp"};Ri.EOL=`
|
|
2521
|
-
`;Ri.homedir=function(){return"/"};(function(e){var t=mt&&mt.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.hasMountPoint=e.hasStartEngine=e.isPackBlocklet=e.isGatewayBlocklet=e.getBlockletEngine=void 0;const n=t(Ri),r=ti,i=c=>{if(c===void 0)throw new Error("blocklet meta param is required");const{engine:u}=c;if(!u)return{interpreter:"node",source:""};if(!Array.isArray(u))return u;const d=n.default.platform(),p=u.find(g=>g.platform===d);if(!p)throw new Error(`can not find a proper engine interpreter on ${d}`);return p};e.getBlockletEngine=i;const o=c=>(c==null?void 0:c.group)===r.BlockletGroup.gateway;e.isGatewayBlocklet=o;const a=c=>(c==null?void 0:c.group)===r.BlockletGroup.pack;e.isPackBlocklet=a;const s=c=>!!(c!=null&&c.main)||(0,e.getBlockletEngine)(c||{}).interpreter==="blocklet";e.hasStartEngine=s;const l=c=>((0,e.hasStartEngine)(c)||((c==null?void 0:c.interfaces)||[]).find(u=>u.type===r.BLOCKLET_INTERFACE_TYPE_WEB))&&(0,e.isGatewayBlocklet)(c)===!1;e.hasMountPoint=l})(zle);(function(e){var t=mt&&mt.__importDefault||function(te){return te&&te.__esModule?te:{default:te}};Object.defineProperty(e,"__esModule",{value:!0}),e.isPackBlocklet=e.isGatewayBlocklet=e.isAccessible=e.isRunning=e.isBeforeInstalled=e.isInProgress=e.getBlockletServices=e.getBlockletAppIdList=e.getRolesFromAuthConfig=e.isPreferenceKey=e.isExternalBlocklet=e.getBlockletChainInfo=e.getChainInfo=e.getConnectAppUrl=e.getParentComponentName=e.filterComponentsV2=e.findComponentByIdV2=e.findComponentV2=e.findComponentById=e.findComponent=e.getComponentBundleId=e.getComponentName=e.getComponentId=e.replaceSlotToIp=e.getComponentWhoCanAccess=e.getWhoCanAccess=e.findServiceFromMeta=e.findWebInterfacePort=e.findWebInterface=e.fixBlockletStatus=e.getAppDescription=e.getDisplayName=e.getAppName=e.hasRunnableComponent=e.wipeSensitiveData=e.isEnvShareable=e.isEnvShareableToClient=e.getComponentMissingConfigs=e.getAppMissingConfigs=e.getSharedConfigObj=e.isDeletableBlocklet=e.forEachComponentV2Sync=e.forEachComponentV2=e.forEachChildSync=e.forEachChild=e.forEachBlockletSync=e.forEachBlocklet=e.isFreeComponent=e.isFreeBlocklet=e.getAppUrl=void 0,e.hasResourceType=e.hasStartEngine=void 0;const n=t(vw),r=t(Vle),i=oCt,o=t(fCt),a=t(rn),s=ti,l=zle;Object.defineProperty(e,"hasStartEngine",{enumerable:!0,get:function(){return l.hasStartEngine}}),Object.defineProperty(e,"isGatewayBlocklet",{enumerable:!0,get:function(){return l.isGatewayBlocklet}}),Object.defineProperty(e,"isPackBlocklet",{enumerable:!0,get:function(){return l.isPackBlocklet}});const{NODE_SERVICES:c,SLOT_FOR_IP_DNS_SITE:u,WHO_CAN_ACCESS:d,WHO_CAN_ACCESS_PREFIX_ROLES:p}=a.default,g=(te,we=[])=>`${we.map($e=>$e&&$e.meta?$e.meta.did:"").join("/")}${we.length?"/":""}${te&&te.meta?te.meta.did:""}`;e.getComponentId=g;const y=(te,we=[])=>`${we.map($e=>$e&&$e.meta?$e.meta.name:"").join("/")}${we.length?"/":""}${te&&te.meta?te.meta.name:""}`;e.getComponentName=y;const b=te=>`${te.meta.bundleName}@${te.meta.version}`;e.getComponentBundleId=b;const A=te=>{if(!te)return"";const we=te.split("/");return we.pop(),!we.length||(we[we.length-1].startsWith("@")&&we.pop(),!we.length)?"":we.join("/")};e.getParentComponentName=A;const x=(te,we,{parallel:$e=!1,concurrencyLimit:De=5,sync:re,params:q,_parent:W,_root:ce,_level:ke=0,_tasks:Ee,_ancestors:xe=[],_limit:Ue}={})=>{const je=ce||W||te,He=g(te,xe),lt=xe.concat(te);if(re){const Oe=we(te,{parent:W,root:je,level:ke,params:q,ancestors:xe,id:He});if(te.children)for(const Le of te.children)x(Le,we,{sync:re,params:Oe,_parent:te,_root:je,_level:ke+1,_ancestors:lt});return null}if(!$e)return new Promise(async(Oe,Le)=>{try{const Pe=await we(te,{parent:W,root:je,level:ke,ancestors:xe,params:q,id:He});if(te.children)for(const nt of te.children)await x(nt,we,{params:Pe,_parent:te,_root:je,_level:ke+1,_ancestors:lt});Oe(null)}catch(Pe){Le(Pe)}});const Ze=Ue||(0,o.default)(De),Ye=Ee||[];if(Ye.push(Ze(()=>we(te,{parent:W,root:je,level:ke,ancestors:xe,id:He}))),te.children)for(const Oe of te.children)x(Oe,we,{parallel:$e,_parent:te,_root:je,_level:ke+1,_tasks:Ye,_ancestors:lt,_limit:Ze});return Ee?null:Promise.all(Ye)};e.forEachBlocklet=x;const D=(te,we)=>x(te,we,{sync:!0});e.forEachBlockletSync=D;const O=(te,we,{parallel:$e=!1,concurrencyLimit:De=5,sync:re}={})=>{if(re){if(te.children)for(const ce of te.children)we(ce);return null}if(!$e)return new Promise(async(ce,ke)=>{try{if(te.children)for(const Ee of te.children)await we(Ee);ce(null)}catch(Ee){ke(Ee)}});const q=(0,o.default)(De),W=[];if(te.children)for(const ce of te.children)W.push(q(()=>we(ce)));return Promise.all(W)};e.forEachComponentV2=O;const P=(te,we)=>O(te,we,{sync:!0});e.forEachComponentV2Sync=P;const V=(te,we,$e)=>x(te,(De,re)=>re.level===0?{}:we(De,re),$e);e.forEachChild=V;const M=(te,we)=>V(te,we,{sync:!0});e.forEachChildSync=M;const j=(te,we,{_ancestors:$e=[],returnAncestors:De=!1}={})=>{if(!we)return null;if(we(te,{ancestors:$e}))return De?{component:te,ancestors:$e}:te;for(const re of te.children||[]){const q=$e.concat(te),W=j(re,we,{_ancestors:q,returnAncestors:De});if(W)return W}return null};e.findComponent=j;const G=(te,we,{returnAncestors:$e=!1}={})=>(Array.isArray(we)&&(we=we.join("/")),j(te,(De,{ancestors:re})=>{const q=g(De,re);return we===q},{returnAncestors:$e}));e.findComponentById=G;const ie=(te,we)=>{if(!we)return null;for(const $e of te.children||[])if(we($e,te))return $e;return null};e.findComponentV2=ie;const ue=(te,we)=>we?(Array.isArray(we)&&(we=we.join("/")),ie(te,($e,De)=>{if(we.includes("/")){const re=g($e,[De]);return we===re}return we===$e.meta.did})):null;e.findComponentByIdV2=ue;const K=(te,we)=>{if(!we)return[];const $e=[];for(const De of te.children||[])we(De,te)&&$e.push(De);return $e};e.filterComponentsV2=K;const N=te=>!!te&&!!(te.key||te.name)&&!te.secure&&te.shared!==!1&&!s.BLOCKLET_CONFIGURABLE_KEY[te.key||te.name];e.isEnvShareableToClient=N;const T=te=>!!te&&!!(te.key||te.name)&&!te.secure&&!!te.shared&&!s.BLOCKLET_CONFIGURABLE_KEY[te.key||te.name];e.isEnvShareable=T;const f=(te,we)=>{const $e={};return!te||!we||(Array.isArray(te.configs)&&te.configs.forEach(({key:De,value:re,secure:q})=>{if(!T({key:De,secure:q,shared:!0}))return;const W=(te.configObj||{})[De]||re,ce=(we.configs||[]).find(ke=>ke.key===De);(!ce||T(ce)||!ce.value&&!(we.configObj||{})[ce.key])&&($e[De]=W)}),(te.configs||[]).forEach(({key:De,value:re})=>{[s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_HOST,s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_ID,s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_TYPE].includes(De)&&($e[s.CHAIN_PROP_MAP[De]]=re)})),$e};e.getSharedConfigObj=f;const h=te=>te.key.startsWith(s.BLOCKLET_PREFERENCE_PREFIX)===!0;e.isPreferenceKey=h;const w=(te,we)=>!!(te.required&&(!te.value&&!we[te.key]||Object.values(s.CHAIN_PROP_MAP).includes(te.key)&&Object.keys(we).includes(te.key)&&!we[te.key])),_=(te={})=>{const we=[];return P(te,$e=>{var q;if(((q=$e.meta)==null?void 0:q.group)===s.BlockletGroup.gateway)return;const De=$e.configs||[],re=f(te,$e);De.forEach(W=>{w(W,re)&&we.push({did:$e.meta.did,key:W.key,description:W.description})})}),we.filter($e=>!h($e))};e.getAppMissingConfigs=_;const R=(te={},we={})=>{const $e=[],De=te.configs||[],re=f(we,te);return De.forEach(q=>{w(q,re)&&$e.push({did:te.meta.did,key:q.key,description:q.description})}),$e};e.getComponentMissingConfigs=R;const k=te=>te.payment?(te.payment.price||[]).map($e=>$e.value||0).every($e=>$e===0):!0;e.isFreeBlocklet=k;const C=te=>!te.payment||!te.payment.componentPrice?!0:!te.payment.componentPrice.length;e.isFreeComponent=C;const E=te=>te&&(x(te,we=>{we.configs&&(we.configs=we.configs.filter($e=>!h($e)),we.configs.forEach($e=>{$e.secure&&($e.value=$e.value?"__encrypted__":"")})),(we.environments||[]).forEach($e=>{["BLOCKLET_APP_SK","BLOCKLET_APP_PSK"].includes($e.key)&&($e.value="__encrypted__")}),(we.migratedFrom||[]).forEach($e=>{$e.appSk="__encrypted__"}),delete te.configObj,delete te.environmentObj},{sync:!0}),te);e.wipeSensitiveData=E;const v=te=>{if(!te)return!1;const we=te.environments.find($e=>$e.key==="BLOCKLET_DELETABLE");return we?we.value==="yes":!0};e.isDeletableBlocklet=v;const L=te=>{let we=!1;return D(te,$e=>{$e.meta.group!==s.BlockletGroup.gateway&&(we=!0)}),we};e.hasRunnableComponent=L;const ne=(te,we=!1)=>{if(!te)return"";const{meta:$e}=te;let De;if(!we&&te.environments){const re=te.environments.find(q=>q.key==="BLOCKLET_APP_NAME");re&&re.value&&(De=re.value)}return De||$e.title||$e.name};e.getAppName=ne,e.getDisplayName=ne;const F=(te,we=!1)=>{if(!te)return"";const{meta:$e}=te;let De;if(!we&&te.environments){const re=te.environments.find(q=>q.key==="BLOCKLET_APP_DESCRIPTION");re&&re.value&&(De=re.value)}return De||$e.description||$e.name};e.getAppDescription=F;function J(te){var De,re,q;const we=(q=(re=(De=te==null?void 0:te.site)==null?void 0:De.domainAliases)==null?void 0:re.sort((W,ce)=>{var ke,Ee,xe,Ue;return(ke=W.accessibility)!=null&&ke.accessible&&((Ee=ce.accessibility)!=null&&Ee.accessible)?+W.isProtected-+ce.isProtected:+((xe=ce.accessibility)==null?void 0:xe.accessible)-+((Ue=W.accessibility)==null?void 0:Ue.accessible)}))==null?void 0:q.map(W=>{var Ee;const ce=(Ee=W==null?void 0:W.domainStatus)!=null&&Ee.isHttps?"https://":"http://",ke=W==null?void 0:W.value;return`${ce}${ke}`}).filter(Boolean);return we==null?void 0:we[0]}e.getAppUrl=J;const se=te=>{te&&(D(te,we=>{we.status=(0,s.fromBlockletStatus)(we.status),we.source!==void 0&&(we.source=(0,s.fromBlockletSource)(we.source))}),te.settings&&(te.settings.children||[]).forEach(we=>{D(we,$e=>{$e.status=(0,s.fromBlockletStatus)($e.status),$e.source!==void 0&&($e.source=(0,s.fromBlockletSource)($e.source))})}))};e.fixBlockletStatus=se;const pe=te=>{if(!te)return null;const we=te.meta||te||{},{interfaces:$e=[]}=we;return Array.isArray($e)?$e.find(De=>De.type===s.BLOCKLET_INTERFACE_TYPE_WEB):null};e.findWebInterface=pe;const be=te=>{if(!te)return null;const we=pe(te),{ports:$e}=te;return!we||!$e?null:$e[we.port]};e.findWebInterfacePort=be;const Re=(te,we)=>{const $e=[we];we===c.AUTH&&$e.push(c.AUTH_SERVICE);const De=pe(te);return De?(De.services||[]).find(re=>$e.includes(re.name)):null};e.findServiceFromMeta=Re;const H=te=>{if(!te)return d.ALL;if((0,n.default)(te,"settings.whoCanAccess"))return te.settings.whoCanAccess;const we=Re(te.meta,c.AUTH);return(0,n.default)(we,"config.whoCanAccess")?we.config.whoCanAccess:d.ALL};e.getWhoCanAccess=H;const $=(te,we)=>{const $e=(te.configs||[]).find(re=>re.key===s.BLOCKLET_CONFIGURABLE_KEY.COMPONENT_ACCESS_WHO);if($e)return $e.value;if(we&&(0,n.default)(we,"settings.whoCanAccess")&&(0,n.default)(we,"settings.whoCanAccess")!==d.ALL)return(0,n.default)(we,"settings.whoCanAccess");const De=Re(te.meta,c.AUTH);return(0,n.default)(De,"config.whoCanAccess")?De.config.whoCanAccess:d.ALL};e.getComponentWhoCanAccess=$;const X=({request:te,baseUrl:we})=>{const $e=te.headers["x-blocklet-did"]||"",De=te.headers["x-blocklet-real-did"]||"",re=te.headers["x-path-prefix"]||"/",q=te.headers["x-group-path-prefix"]||"/";let W=we;return $e!==De&&re!==q&&(W=(0,i.joinURL)(W,"/").replace(re,q)),W};e.getConnectAppUrl=X;const Y=(te,we)=>{const $e=(we||"").includes(":")?":":/\./;return(te||"").replace(u,(we||"").replace(new RegExp($e,"g"),"-"))};e.replaceSlotToIp=Y;const oe=te=>{const we=Object.entries(s.CHAIN_INFO_CONFIG).reduce(($e,De)=>{const[re,[q,W]]=De;return $e[q]=(0,n.default)(te,re)||W,$e},{});return we.type==="ethereum"&&we.id==="none"&&(we.id="1"),we};e.getChainInfo=oe;const Te=te=>{const we=oe({});if(!te)return we;const $e=oe(te.configObj);if($e.host!=="none")return $e;let De;return M(te,re=>{if(De&&De.host!=="none")return;const q=oe(re.configObj);q.host!=="none"&&(De=q)}),De||we};e.getBlockletChainInfo=Te;const me=te=>!!(te!=null&&te.controller);e.isExternalBlocklet=me;const le=te=>te.whoCanAccess.startsWith(p)?te.whoCanAccess.substring(p.length).split(","):[];e.getRolesFromAuthConfig=le;const ve=te=>{const we=Array.isArray(te.migratedFrom)?te.migratedFrom.map($e=>$e.appDid):[];return(0,r.default)([te.appDid,te.appPid,...we].filter(Boolean))};e.getBlockletAppIdList=ve;const _e=te=>{const we=[];return te&&D(te,$e=>{var re;(((re=$e.meta)==null?void 0:re.interfaces)||[]).filter(q=>q.type===s.BLOCKLET_INTERFACE_TYPE_SERVICE).forEach(q=>{const W=q.port||{};we.push({name:q.name,protocol:q.protocol,port:Number(W.external),upstreamPort:Number(($e.ports||{})[W.internal])})})}),we};e.getBlockletServices=_e;const Se=te=>[s.BlockletStatus.downloading,s.BlockletStatus.waiting,s.BlockletStatus.starting,s.BlockletStatus.installing,s.BlockletStatus.stopping,s.BlockletStatus.upgrading,"downloading","waiting","starting","installing","extracting","stopping","upgrading","restarting","deleting"].includes(te);e.isInProgress=Se;const ze=te=>[s.BlockletStatus.added,s.BlockletStatus.waiting,s.BlockletStatus.downloading,s.BlockletStatus.installing,"added","waiting","downloading","installing"].includes(te);e.isBeforeInstalled=ze;const Je=te=>[s.BlockletStatus.running,"running"].includes(te);e.isRunning=Je;const ge=te=>[s.BlockletStatus.running,s.BlockletStatus.waiting,s.BlockletStatus.downloading,"running","waiting","downloading"].includes(te);e.isAccessible=ge;const Ie=(te,{type:we,did:$e}={type:"",did:""})=>{var De,re,q;return te?!(0,l.hasStartEngine)(te.meta)&&((q=(re=(De=te.meta)==null?void 0:De.resource)==null?void 0:re.bundles)==null?void 0:q.length)>0&&(te.meta.resource.bundles||[]).some(W=>W.type===we&&W.did===$e):!1};e.hasResourceType=Ie,e.default={isFreeBlocklet:k,isFreeComponent:C,forEachBlocklet:x,forEachBlockletSync:D,forEachChild:V,forEachChildSync:M,forEachComponentV2:O,forEachComponentV2Sync:P,isDeletableBlocklet:v,getSharedConfigObj:f,getAppMissingConfigs:_,getComponentMissingConfigs:R,isEnvShareableToClient:N,isEnvShareable:T,wipeSensitiveData:E,hasRunnableComponent:L,getAppName:ne,getAppDescription:F,getAppUrl:J,getDisplayName:ne,fixBlockletStatus:se,findWebInterface:pe,findWebInterfacePort:be,findServiceFromMeta:Re,getWhoCanAccess:H,getComponentWhoCanAccess:$,replaceSlotToIp:Y,getComponentId:g,getComponentName:y,getComponentBundleId:b,findComponent:j,findComponentById:G,findComponentV2:ie,findComponentByIdV2:ue,filterComponentsV2:K,getParentComponentName:A,getConnectAppUrl:X,getChainInfo:oe,getBlockletChainInfo:Te,isExternalBlocklet:me,isPreferenceKey:h,getRolesFromAuthConfig:le,getBlockletServices:_e,isInProgress:Se,isBeforeInstalled:ze,isRunning:Je,isAccessible:ge,isGatewayBlocklet:l.isGatewayBlocklet,isPackBlocklet:l.isPackBlocklet,hasStartEngine:l.hasStartEngine,hasResourceType:Ie}})(Ss);const Hle=(e,t=!1)=>{const n=e.routing.adminPath;return t?encodeURIComponent(Ln(window.location.origin,n)):Ln(window.location.origin,n)},B_t=(e,t,n)=>{const r=Hle(t),i=Ln(n,`/api/blocklets/${e.did}/blocklet.json`),o=new URL(Ln(r,"/launch-blocklet/agreement"));return o.searchParams.set("blocklet_meta_url",i),o.searchParams.set("from",window.location.href),o.href},dCt=async(e,{getIP:t}={})=>{if(!e||!e.length)return[];if(!t||!e.some(r=>r.value.includes(rn.SLOT_FOR_IP_DNS_SITE)))return e;const n=await t();return n?e.map(r=>{try{return r.value=Ss.replaceSlotToIp(r.value,n),r}catch{return r}}).filter(Boolean):e},pCt=e=>{const t={didSpace:null};return Ss.forEachBlockletSync(e,n=>{var r,i;t.didSpace===ti.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||t.didSpace===ti.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP||(i=(r=n==null?void 0:n.meta)==null?void 0:r.capabilities)!=null&&i.didSpace&&(t.didSpace=n.meta.capabilities.didSpace)}),t},_W=async(e,{fixRuntime:t=!0,oldBlocklet:n,getIP:r}={})=>{if(e.site||(e.site={domainAliases:[],rules:[]}),e.site.rules.forEach(i=>{i.from.pathPrefix=G9(i.from.pathPrefix||"/")}),e.site.rules=cie(e.site.rules,i=>i.from.pathPrefix),t===!0)e.site.domainAliases=await dCt(e.site.domainAliases,{getIP:r}),e.appRuntimeInfo&&(e.appRuntimeInfo.startAt=new Date-e.appRuntimeInfo.uptime),Ss.forEachBlockletSync(e,i=>{i.runtimeInfo&&(i.runtimeInfo.startAt=new Date-i.runtimeInfo.uptime)});else if(t==="merge-old"&&n){e.site.domainAliases=n.site.domainAliases,e.appRuntimeInfo=n.appRuntimeInfo;const i={};Ss.forEachBlockletSync(n,(o,{id:a})=>{i[a]=o}),Ss.forEachBlockletSync(e,(o,{id:a})=>{const s=i[a];s&&(o.runtimeInfo=s.runtimeInfo,o.diskInfo=s.diskInfo,o.engine=s.engine)})}else e.site.domainAliases=[];e.capabilities=pCt(e)},EW="arcblock",N_t=(e,t=!1)=>{let n;return t?(n=(e.configs||[]).find(r=>r.key==="BLOCKLET_APP_CHAIN_TYPE"),n&&n.value||(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.key)),n&&n.value)?n.value:EW):(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.name)),n&&n.default?n.default:EW)},$_t=e=>!Ok(e==null?void 0:e.controller);let PC=null;const hCt=async()=>{const e=window.env.apiPrefix||"/",t=Ln(e,"/api/dns-resolve?accessible=1");try{return(await Ir.get(t)).data.address}catch{return null}},RW=()=>(PC||(PC=hCt()),PC),Wle=U.createContext({}),{Provider:mCt,Consumer:F_t}=Wle,kW=(e,t,n)=>n?e.map(r=>{const i={...r},o=t.find(a=>a.meta.did===r.meta.did);return o&&n.forEach(a=>{i[a]=o[a]}),i}):t;function gCt({children:e}){const t=Sl(),n=i5(),[r,i]=U.useState(null),[o,a]=U.useState(!1),[s,l]=U.useState([]),[c,u]=U.useState([]),[d,p]=U.useState(!1),g=(P,V)=>{Ss.isExternalBlocklet(P)?u(V):l(V)},y=4,b=async({silent:P=!0,retries:V=y,updates:M,useCache:j=!0}={})=>{P||a(!0);try{i(null);const{blocklets:G}=await n.getBlocklets({input:{useCache:j}});for(const K of G)await _W(K,{getIP:RW});const ie=G.filter(K=>!Ss.isExternalBlocklet(K)),ue=G.filter(Ss.isExternalBlocklet);l(K=>kW(K,ie,M)),u(K=>kW(K,ue,M)),a(!1),p(!0)}catch(G){V>0?setTimeout(()=>b({silent:P,retries:V-1,useCache:j}),1e3):(a(!1),i(G))}},A=async P=>{try{const{blocklet:V}=await t.api.getBlocklet({input:{did:P.meta.did,attachRuntimeInfo:!0}});await _W(V,{getIP:RW}),g(V,M=>M.some(j=>j.meta.did===V.meta.did)?M.map(j=>j.meta.did===V.meta.did?V:j):[...M,V])}catch(V){i(V)}},x=P=>{t.refresh(),A(P)};U.useEffect(()=>{b({silent:!1})},[]);const D=P=>{const V={};Ss.forEachBlockletSync(P,(M,{id:j})=>{V[j]=ti.fromBlockletStatus(M.status)}),g(P,M=>M.map(j=>(j.meta.did===P.meta.did&&Ss.forEachBlockletSync(j,(G,{id:ie})=>{V[ie]&&(G.status=V[ie])}),j)))};Ki(ti.BlockletEvents.added,P=>{P.status=ti.fromBlockletStatus(P.status),g(P,V=>[...V,P])}),Ki(ti.BlockletEvents.removed,P=>{t.refresh(),g(P,V=>V.filter(M=>M.meta.did!==P.meta.did))}),Ki(ti.BlockletEvents.statusChange,D),Ki(ti.BlockletEvents.installed,x),Ki(ti.BlockletEvents.upgraded,x),Ki(ti.BlockletEvents.updated,A),Ki(ti.BlockletEvents.startFailed,A),Ki(ti.BlockletEvents.reloaded,A);const O={loading:o,error:r,data:s,externalData:c,refresh:b,initialized:d,api:n};return I.jsx(mCt,{value:{blocklets:O},children:e})}function U_t(){const{blocklets:e}=U.useContext(Wle);return e}const yCt=({user:e,launchType:t,nftId:n})=>{var r;if(!e)return!1;if(t==="serverless"){if(!n)throw new Error("nftId is required");return((r=e==null?void 0:e.controller)==null?void 0:r.nftId)===n}return(e.permissions||[]).includes("mutate_blocklets")},j_t=e=>{var t,n;return e.isGetBlocklet&&((n=(t=e.runtimeBlocklet)==null?void 0:t.controller)==null?void 0:n.consumedAt)},q_t=async e=>{const t=bdt({blocklet:e});let n="";return n=t.find(r=>{try{const{hostname:i}=new URL(r);return koe.isSlpDomain(i)}catch(i){return console.error(i),!1}}),n||(n=await Sdt(t)),n},Gle=U.createContext({}),{Provider:vCt,Consumer:V_t}=Gle;function bCt({children:e}){const{session:t}=y0(),{t:n}=fo(),{api:r,info:i}=Sl(),[o]=BJ(),a=i5(),s=o.get("launchType"),l=o.get("fromLauncher"),c=o.get("blocklet_meta_url")||"",u=o.get("nftId")||"",d=o.get("launcherSessionId")||"",p=o.get("launcherUrl")||"",g=new URL(c).origin,[y,b]=U.useState({meta:null,appDid:o.get("appDid")||null,sessionId:o.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null}),A=(ue,K)=>b(N=>({...N,appDid:ue,sessionId:K})),x=yCt({user:t.user,launchType:s,nftId:u}),[D,O]=U.useState(null),[P,V]=U.useState(!0),M=U.useMemo(()=>i?Hle(i):"",[i]),j=async ue=>{if(!ue)throw new Error("appDid should not be empty");const{blocklet:K}=await r.getBlocklet({input:{did:ue,attachConfig:!1}});if(!K)return null;const N=ti.BlockletStatus[K.status],T=!!u,f=N<ti.BlockletStatus.installed,h=N===ti.BlockletStatus.installed,w=N===ti.BlockletStatus.running;return b(_=>({..._,isInstalled:h,isRunning:w,isExternal:T,isInstalling:f})),{isInstalled:h,isRunning:w,isExternal:T,isInstalling:f}},G=async()=>{V(!0);try{if(!c)throw new Error(n("common.invalidParam"));const[{meta:ue,isFree:K},{launcherSession:N,error:T}]=await Promise.all([r.getBlockletMetaFromUrl({input:{url:c,checkPrice:!0}}),d?r.getLauncherSession({input:{launcherSessionId:d,launcherUrl:p}}):Promise.resolve({})]);if(d&&!N)throw new Error(`Launch session invalid: ${T}`);if(!ue)throw new Error(n("LaunchBlockletBlocklet.error.loadMetaFailed"));let f={};x&&y.appDid&&(f=await j(y.appDid)),b(h=>({...h,...f,meta:ue,isFree:K,launcherSession:N}))}catch(ue){console.error(ue),O(ue.message)}finally{V(!1)}};U.useEffect(()=>{var ue,K,N;((ue=t==null?void 0:t.user)==null?void 0:ue.role)===rn.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&((N=(K=t==null?void 0:t.user)==null?void 0:K.controller)==null?void 0:N.nftId)!==u&&t.logout(),G()},[]),U.useEffect(()=>{P||!y.meta||(x?y.appDid&&j(y.appDid).catch(ue=>{ci.error(ue.message)}):(b(ue=>({...ue,isInstalled:!1,isRunning:!1,isExternal:!1})),O(null)))},[x]);const ie={meta:y.meta,isFree:y.isFree,appDid:y.appDid,sessionId:y.sessionId,isInstalling:y.isInstalling,isInstalled:y.isInstalled,isExternal:y.isExternal,isRunning:y.isRunning,serverUrl:M,storeUrl:g,blockletMetaUrl:c,fromLauncher:l,loading:P,error:D,api:a,getBlocklet:j,setAppDid:A,launcherUrl:p,launcherSession:y.launcherSession,launcherSessionId:d};return I.jsx(vCt,{value:ie,children:e})}function z_t(){return U.useContext(Gle)}function Kle(){return new URLSearchParams(yi().search)}const Jle=U.createContext(),{Provider:wCt,Consumer:H_t}=Jle;function Yle({children:e}){const n=Kle().get("blocklet_meta_url"),r=S8t(async()=>{const{data:o}=await W9.get(n);return o});if(r.loading)return I.jsx(Qo,{children:I.jsx(ra,{})});const i={meta:r.value,error:r.error};return I.jsx(wCt,{value:i,children:e})}Yle.propTypes={children:Z.any.isRequired};function W_t(){return U.useContext(Jle)}const TCt=U.lazy(()=>gn(()=>import("./index-BBEuxxjq.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),xCt=U.lazy(()=>gn(()=>import("./index-xRBNy1in.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,2,27,28,29,30]),import.meta.url)),SCt=U.lazy(()=>gn(()=>import("./index-CxaGo2hZ.js"),__vite__mapDeps([31,32,33,34,35,36,37,6,38,39,40,41,42,12,9,11,25,18,17]),import.meta.url)),CCt=U.lazy(()=>gn(()=>import("./index-D9E6SEa0.js"),__vite__mapDeps([43,6,44,45,17,16,46,9,47,48,29,12,11,38,49,39,40,50,3,18,22,23,51,52,53]),import.meta.url)),ACt=U.lazy(()=>gn(()=>import("./index-Dl2hud6k.js"),__vite__mapDeps([54,55,10,52,56,57,46,58,12,9,11,7,8,13,14,15,16,17,18,59,50,3,2,60,6,61,62,29,19,20,63,64,65,66,4,67]),import.meta.url)),_Ct=U.lazy(()=>gn(()=>import("./index-CLIK5uaQ.js"),__vite__mapDeps([68,69,22,23,9,70]),import.meta.url)),ECt=U.lazy(()=>gn(()=>import("./index-BEQyLEKb.js"),__vite__mapDeps([71,55,10,72,73,74,17,6,9,11,75,13,76,77,29,78,79,80,16,12,7,8,14,15,18,81,82,83,46,20,84,3,2,85,86,30,22,23,87,88,89,24,25,45,47,90,1,50,65]),import.meta.url)),RCt=U.lazy(()=>gn(()=>import("./detail-CIhc9jZt.js").then(e=>e.d),__vite__mapDeps([91,55,10,19,20,21,6,18,22,23,28,84,41,42,53]),import.meta.url)),kCt=U.lazy(()=>gn(()=>import("./index-Chps_oCL.js"),[],import.meta.url)),DCt=U.lazy(()=>gn(()=>import("./index-RAfI5Ovd.js"),__vite__mapDeps([92,1,75,13]),import.meta.url)),LCt=U.lazy(()=>gn(()=>import("./index-JffoMuKt.js"),__vite__mapDeps([93,94,95,96,63,97]),import.meta.url)),OCt=U.lazy(()=>gn(()=>import("./index-Db0xkYaW.js"),__vite__mapDeps([98,63,79,49,97,27]),import.meta.url)),ICt=U.lazy(()=>gn(()=>import("./index-BtKnBn2o.js"),__vite__mapDeps([99,97]),import.meta.url)),PCt=U.lazy(()=>gn(()=>import("./index-DvtCtx64.js"),__vite__mapDeps([100,32,33,34,35,36,37,101,73,74,42,25,6,60]),import.meta.url)),MCt=U.lazy(()=>gn(()=>import("./index-BoHcyWvQ.js"),__vite__mapDeps([102,95]),import.meta.url)),BCt=U.lazy(()=>gn(()=>import("./index-CzXBr0fB.js"),__vite__mapDeps([103,94,95,96,63,97]),import.meta.url)),NCt=U.lazy(()=>gn(()=>import("./index-BwD5fAbE.js").then(e=>e.a2),__vite__mapDeps([104,105]),import.meta.url)),$Ct=U.lazy(()=>gn(()=>import("./index-yF_Q2_O-.js"),__vite__mapDeps([106,55,10,107,108,109,64,9,110,12,11,47,7,8,13,14,15,16,17,18,28,111,112,4,6,90,23]),import.meta.url));function Zle(){const e=Sl(),{session:t}=y0(),{wallet:n}=Vh(),r=t.user&&t.user.did;return U.useEffect(()=>{const i=f5();return r?i.connect():i.isConnected()&&i.disconnect(),()=>{i.isConnected()&&i.disconnect()}},[r]),U.useEffect(()=>{if(n)return()=>{};const i=()=>{document.visibilityState==="visible"&&t.refresh()};return document.addEventListener("visibilitychange",i),()=>{document.removeEventListener("visibilitychange",i)}},[]),{node:e,session:t}}function FCt(){var a;const{t:e}=fo(),{node:t,session:n}=Zle(),r=yi();U.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${r.pathname}${r.search}`)},[r]),U.useEffect(()=>{var s;((s=n==null?void 0:n.user)==null?void 0:s.role)===rn.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&n.logout()},[(a=n==null?void 0:n.user)==null?void 0:a.role]);const i=I.jsx(ra,{});if(t.loading||n.loading)return I.jsx(Qo,{children:i});if(!t.info.initialized)return b8e.getServerAuthMethod(t.info)==="nft"?I.jsx(YL,{action:"verify-owner"}):I.jsx(Qo,{children:I.jsx(m6t,{})});if(t.info.upgradeSessionId)return I.jsx(Qo,{children:I.jsx(Nse,{})});if(!n.user)return I.jsx(XL,{loadingEle:i});const o=I.jsx(Qo,{children:I.jsx(ra,{})});return I.jsx(Q8t,{children:I.jsxs(gCt,{children:[I.jsx(C6t,{}),I.jsx(OTt,{}),I.jsx(nCt,{}),I.jsx(U.Suspense,{fallback:o,children:I.jsxs(A4,{children:[I.jsx(or,{path:"/dashboard",element:I.jsx(Ko,{fullWidth:!0,title:"Dashboard",children:I.jsx(TCt,{})})}),I.jsx(or,{path:"/blocklets",element:I.jsx(Ko,{fullWidth:!0,title:e("common.blocklets"),children:I.jsx(xCt,{})})}),I.jsx(or,{path:"/blocklets/:did/:tab",element:I.jsx(Ko,{fullWidth:!0,title:"Blocklets",children:I.jsx(RCt,{})})}),I.jsx(or,{path:"/settings/:tab",element:I.jsx(Ko,{fullWidth:!0,title:e("common.setting"),children:I.jsx(ACt,{})})}),I.jsx(or,{path:"/eula",element:I.jsx(Ko,{fullWidth:!0,title:e("setup.steps.eula"),children:I.jsx(kCt,{})})}),I.jsx(or,{path:"/store",element:I.jsx(Ko,{fullWidth:!0,title:e("common.store"),children:I.jsx(CCt,{})})}),I.jsx(or,{path:"/console",element:I.jsx(Ko,{title:`GraphQL ${e("common.console")}`,scrollable:!1,fullWidth:!0,children:I.jsx(NCt,{})})}),I.jsx(or,{path:"/notifications",element:I.jsx(Ko,{children:I.jsx(DCt,{})})}),I.jsx(or,{path:"/team/:tab",element:I.jsx(Ko,{fullWidth:!0,title:e("common.team"),children:I.jsx(ECt,{})})}),I.jsx(or,{path:"/logs/:name",element:I.jsx(Ko,{scrollable:!1,fullWidth:!0,title:e("common.logs"),children:I.jsx(_Ct,{})})}),I.jsx(or,{path:"/analytics/:tab",element:I.jsx(Ko,{fullWidth:!0,title:e("common.analytics"),children:I.jsx($Ct,{})})}),I.jsx(or,{path:"/",element:I.jsx(Gs,{to:"/dashboard",replace:!0})}),I.jsx(or,{path:"/team",element:I.jsx(Gs,{to:"/team/members",replace:!0})}),I.jsx(or,{path:"/analytics",element:I.jsx(Gs,{to:"/analytics/traffic",replace:!0})}),I.jsx(or,{path:"/logs",element:I.jsx(Gs,{to:"/logs/abtnode",replace:!0})}),I.jsx(or,{path:"/router",element:I.jsx(Gs,{to:"/router/rules",replace:!0})}),I.jsx(or,{path:"/settings",element:I.jsx(Gs,{to:"/settings/basic",replace:!0})}),I.jsx(or,{path:"/marketplace",element:I.jsx(Gs,{to:"/store",replace:!0})}),I.jsx(or,{path:"/marketplace/:did",element:I.jsx(Gs,{to:"/store/:did",replace:!0})}),I.jsx(or,{path:"*",element:I.jsx(MCt,{})})]})})]})})}function Jc({children:e}){const{node:t,session:n}=Zle();return t.loading||!n.initialized&&n.loading?I.jsx(Qo,{children:I.jsx(ra,{})}):t.info.upgradeSessionId?I.jsx(Qo,{children:I.jsx(Nse,{})}):e}function UCt(){const{changeLocale:e}=fo(),t=Kle();U.useEffect(()=>{const r=t.get("locale");r&&["zh","en"].includes(r)&&e(r)},[]);const n=I.jsx(Qo,{children:I.jsx(ra,{})});return I.jsx(U.Suspense,{fallback:n,children:I.jsxs(A4,{children:[I.jsx(or,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:I.jsx(Jc,{children:I.jsx(LCt,{})})}),I.jsx(or,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:I.jsx(Jc,{children:I.jsx(OCt,{})})}),I.jsx(or,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:I.jsx(Jc,{children:I.jsx(ICt,{})})}),I.jsx(or,{path:"/accept-server",element:I.jsx(Jc,{children:I.jsx(YL,{action:"accept-server"})})}),I.jsx(or,{path:"/launch-blocklet/*",element:I.jsx(Jc,{children:I.jsx(bCt,{children:I.jsx(PCt,{})})})}),I.jsx(or,{path:"/blocklets/restore/*",element:I.jsx(Jc,{children:I.jsx(Yle,{children:I.jsx(SCt,{})})})}),I.jsx(or,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:I.jsx(Jc,{children:I.jsx(BCt,{})})}),I.jsx(or,{path:"/*",element:I.jsx(FCt,{})})]})})}function jCt(){const e=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return I.jsxs(I.Fragment,{children:[I.jsx($7,{}),I.jsx(OJ,{history:X8e,basename:e,children:I.jsx(VTt,{children:I.jsx(UCt,{})})})]})}const qCt=WK(document.getElementById("root"));qCt.render(I.jsx(jCt,{}));const DW=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";wge(`${DW}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:DW},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(e){console.error("Error during service worker registration:",e)}});export{Hp as $,ci as A,ks as B,ra as C,QD as D,BJ as E,rn as F,gx as G,Ps as H,SO as I,Tat as J,Yct as K,DX as L,Ss as M,cl as N,ft as O,Z as P,Ok as Q,ND as R,B1 as S,Lle as T,y5 as U,Qo as V,oO as W,Ac as X,Ave as Y,OD as Z,Qst as _,Ki as a,wk as a$,rL as a0,Ln as a1,to as a2,_6 as a3,kTt as a4,S_t as a5,s9e as a6,bk as a7,m9e as a8,IX as a9,dle as aA,Tdt as aB,zle as aC,R9e as aD,dCt as aE,G9 as aF,cie as aG,RW as aH,XAt as aI,joe as aJ,fa as aK,co as aL,X8e as aM,vdt as aN,sk as aO,KAt as aP,Lke as aQ,l_t as aR,S8t as aS,W9 as aT,YAt as aU,g_t as aV,ydt as aW,AX as aX,yX as aY,tLe as aZ,ZAt as a_,Hle as aa,W_t as ab,b8e as ac,iO as ad,nL as ae,q_t as af,DAt as ag,j_t as ah,f5 as ai,Kle as aj,o_t as ak,GO as al,KL as am,x7 as an,A4 as ao,or as ap,Gs as aq,cu as ar,yl as as,$V as at,B_t as au,Ir as av,y0 as aw,Io as ax,c_t as ay,T6 as az,ti as b,NA as b$,NRe as b0,JRe as b1,wdt as b2,m_t as b3,xle as b4,xCe as b5,hct as b6,Iw as b7,Pw as b8,jX as b9,sie as bA,zg as bB,PXe as bC,Wre as bD,JD as bE,sle as bF,HAt as bG,L_t as bH,FAt as bI,s_t as bJ,Zte as bK,ua as bL,kt as bM,mc as bN,ye as bO,Ybe as bP,Bt as bQ,un as bR,an as bS,hn as bT,fl as bU,Pt as bV,sn as bW,fu as bX,d7e as bY,ht as bZ,Gn as b_,en as ba,Hr as bb,Wu as bc,uh as bd,a_t as be,B6 as bf,bJ as bg,Yo as bh,qX as bi,G1 as bj,T_t as bk,Cie as bl,N_t as bm,iQ as bn,gn as bo,zAt as bp,mRe as bq,IJ as br,x_t as bs,GD as bt,Uh as bu,Og as bv,pre as bw,hre as bx,KD as by,r9 as bz,i5 as c,fw as c$,B7 as c0,$r as c1,M7 as c2,sAt as c3,MAt as c4,bdt as c5,koe as c6,ile as c7,p_t as c8,D6 as c9,_f as cA,yi as cB,CD as cC,pi as cD,VAt as cE,UAt as cF,jAt as cG,rle as cH,FTt as cI,tk as cJ,gi as cK,oAt as cL,wm as cM,Np as cN,Zut as cO,mt as cP,Jne as cQ,zCt as cR,cAt as cS,_ct as cT,V6 as cU,I8t as cV,pbe as cW,b_t as cX,Ya as cY,P7 as cZ,dc as c_,_W as ca,SRe as cb,ARe as cc,Adt as cd,T9e as ce,XEe as cf,Ule as cg,eCt as ch,NOe as ci,Ct as cj,GLe as ck,Or as cl,dh as cm,nu as cn,mi as co,Vh as cp,_g as cq,Ku as cr,S6t as cs,d5 as ct,z_t as cu,hGe as cv,yCt as cw,f_t as cx,Sdt as cy,i_t as cz,U_t as d,YCt as d$,$a as d0,Ai as d1,Rt as d2,hX as d3,FEe as d4,Ba as d5,OAt as d6,IAt as d7,PD as d8,Uke as d9,yu as dA,L9 as dB,SZe as dC,Vie as dD,JAt as dE,jEe as dF,s3 as dG,K4e as dH,cc as dI,_o as dJ,zY as dK,bwe as dL,Rw as dM,rs as dN,zh as dO,Lw as dP,Hh as dQ,N7 as dR,AY as dS,L4e as dT,I4e as dU,jve as dV,tY as dW,mg as dX,ZCt as dY,QCt as dZ,XCt as d_,M1 as da,c3 as db,MX as dc,q9e as dd,J$ as de,K$ as df,N9e as dg,yAt as dh,dn as di,GCt as dj,WCt as dk,HCt as dl,KCt as dm,Rh as dn,kD as dp,L6 as dq,ad as dr,Hg as ds,cJe as dt,CZ as du,Jn as dv,aAt as dw,Wp as dx,AZ as dy,Qt as dz,_8t as e,Y4 as e$,Xbe as e0,ug as e1,Dh as e2,RN as e3,JCt as e4,$f as e5,E3e as e6,S7 as e7,XY as e8,rAt as e9,OEe as eA,wv as eB,wRe as eC,hx as eD,g7e as eE,xm as eF,Oke as eG,k9e as eH,f3 as eI,nLe as eJ,em as eK,SLe as eL,Wl as eM,Xb as eN,Zb as eO,NLe as eP,LLe as eQ,bAt as eR,Yre as eS,Ls as eT,T_ as eU,F7 as eV,xY as eW,RX as eX,LGe as eY,Lh as eZ,qY as e_,eAt as ea,l4e as eb,fc as ec,BY as ed,I3e as ee,c4e as ef,nAt as eg,BA as eh,o4e as ei,s4e as ej,vl as ek,u4e as el,Wbe as em,lw as en,Mwe as eo,tAt as ep,Dwe as eq,jc as er,SCe as es,pAt as et,eAe as eu,tAe as ev,vAe as ew,hAt as ex,tr as ey,Tp as ez,Ec as f,ay as f$,hg as f0,_7 as f1,p3 as f2,tF as f3,jf as f4,fi as f5,Bot as f6,$o as f7,a0 as f8,tn as f9,t_t as fA,PAt as fB,r_t as fC,Aie as fD,hoe as fE,t6t as fF,p9 as fG,tse as fH,Uoe as fI,vw as fJ,T2t as fK,iie as fL,Q4e as fM,QY as fN,U7 as fO,Kn as fP,Ew as fQ,n9e as fR,Y7 as fS,d8e as fT,$O as fU,uAt as fV,qO as fW,jO as fX,I6 as fY,EAt as fZ,RO as f_,Eg as fa,Hf as fb,UOe as fc,WK as fd,Kh as fe,Xn as ff,bee as fg,gee as fh,Sw as fi,Xct as fj,kY as fk,cw as fl,l3 as fm,i7 as fn,tQ as fo,VQ as fp,v6t as fq,qAt as fr,nI as fs,rQ as ft,VCt as fu,pc as fv,CYe as fw,_c as fx,QAt as fy,ud as fz,Kt as g,Sh as g$,IO as g0,UWe as g1,Gh as g2,Tle as g3,A6 as g4,lot as g5,bot as g6,qte as g7,Sk as g8,Zrt as g9,Hct as gA,ID as gB,$_t as gC,v_t as gD,GAt as gE,e_t as gF,n_t as gG,R6 as gH,Tre as gI,xre as gJ,wre as gK,Pre as gL,WY as gM,e3 as gN,cAe as gO,dbe as gP,f5t as gQ,y5t as gR,w5t as gS,C5t as gT,E5t as gU,lTt as gV,uTt as gW,Vse as gX,zse as gY,MVe as gZ,Ktt as g_,wie as ga,Kf as gb,E6 as gc,L1 as gd,kw as ge,mx as gf,Dw as gg,YAe as gh,bX as gi,hCe as gj,ZZ as gk,cve as gl,WAt as gm,d_t as gn,Lxt as go,Sg as gp,lCe as gq,Cw as gr,dre as gs,H7 as gt,mSe as gu,W7 as gv,yct as gw,K7 as gx,$At as gy,oCt as gz,rO as h,q1 as h0,jVe as h1,BAt as h2,TAt as h3,y_t as h4,sV as h5,Zm as h6,GOe as h7,aQ as h8,d3 as h9,RAt as hA,Act as hB,O_t as hC,wX as hD,mot as hE,e9 as hF,LOe as hG,E_t as hH,__t as hI,nQ as hJ,Ite as hK,P_t as hL,mX as hM,wAt as ha,N1 as hb,iAt as hc,wwe as hd,dAt as he,mCe as hf,yRe as hg,bDe as hh,hDe as hi,mAt as hj,wDe as hk,gAt as hl,z9e as hm,vAt as hn,D5t as ho,KA as hp,YA as hq,$se as hr,X4e as hs,LD as ht,hN as hu,u_t as hv,Ibt as hw,w_t as hx,h_t as hy,mH as hz,ch as i,I as j,Tf as k,NAt as l,Xt as m,Ka as n,q6 as o,jE as p,fo as q,U as r,er as s,F8t as t,Sl as u,R8t as v,ake as w,C9 as x,tL as y,xc as z};
|
|
2521
|
+
`;Ri.homedir=function(){return"/"};(function(e){var t=mt&&mt.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.hasMountPoint=e.hasStartEngine=e.isPackBlocklet=e.isGatewayBlocklet=e.getBlockletEngine=void 0;const n=t(Ri),r=ti,i=c=>{if(c===void 0)throw new Error("blocklet meta param is required");const{engine:u}=c;if(!u)return{interpreter:"node",source:""};if(!Array.isArray(u))return u;const d=n.default.platform(),p=u.find(g=>g.platform===d);if(!p)throw new Error(`can not find a proper engine interpreter on ${d}`);return p};e.getBlockletEngine=i;const o=c=>(c==null?void 0:c.group)===r.BlockletGroup.gateway;e.isGatewayBlocklet=o;const a=c=>(c==null?void 0:c.group)===r.BlockletGroup.pack;e.isPackBlocklet=a;const s=c=>!!(c!=null&&c.main)||(0,e.getBlockletEngine)(c||{}).interpreter==="blocklet";e.hasStartEngine=s;const l=c=>((0,e.hasStartEngine)(c)||((c==null?void 0:c.interfaces)||[]).find(u=>u.type===r.BLOCKLET_INTERFACE_TYPE_WEB))&&(0,e.isGatewayBlocklet)(c)===!1;e.hasMountPoint=l})(zle);(function(e){var t=mt&&mt.__importDefault||function(te){return te&&te.__esModule?te:{default:te}};Object.defineProperty(e,"__esModule",{value:!0}),e.isPackBlocklet=e.isGatewayBlocklet=e.isAccessible=e.isRunning=e.isBeforeInstalled=e.isInProgress=e.getBlockletServices=e.getBlockletAppIdList=e.getRolesFromAuthConfig=e.isPreferenceKey=e.isExternalBlocklet=e.getBlockletChainInfo=e.getChainInfo=e.getConnectAppUrl=e.getParentComponentName=e.filterComponentsV2=e.findComponentByIdV2=e.findComponentV2=e.findComponentById=e.findComponent=e.getComponentBundleId=e.getComponentName=e.getComponentId=e.replaceSlotToIp=e.getComponentWhoCanAccess=e.getWhoCanAccess=e.findServiceFromMeta=e.findWebInterfacePort=e.findWebInterface=e.fixBlockletStatus=e.getAppDescription=e.getDisplayName=e.getAppName=e.hasRunnableComponent=e.wipeSensitiveData=e.isEnvShareable=e.isEnvShareableToClient=e.getComponentMissingConfigs=e.getAppMissingConfigs=e.getSharedConfigObj=e.isDeletableBlocklet=e.forEachComponentV2Sync=e.forEachComponentV2=e.forEachChildSync=e.forEachChild=e.forEachBlockletSync=e.forEachBlocklet=e.isFreeComponent=e.isFreeBlocklet=e.getAppUrl=void 0,e.hasResourceType=e.hasStartEngine=void 0;const n=t(vw),r=t(Vle),i=oCt,o=t(fCt),a=t(rn),s=ti,l=zle;Object.defineProperty(e,"hasStartEngine",{enumerable:!0,get:function(){return l.hasStartEngine}}),Object.defineProperty(e,"isGatewayBlocklet",{enumerable:!0,get:function(){return l.isGatewayBlocklet}}),Object.defineProperty(e,"isPackBlocklet",{enumerable:!0,get:function(){return l.isPackBlocklet}});const{NODE_SERVICES:c,SLOT_FOR_IP_DNS_SITE:u,WHO_CAN_ACCESS:d,WHO_CAN_ACCESS_PREFIX_ROLES:p}=a.default,g=(te,we=[])=>`${we.map($e=>$e&&$e.meta?$e.meta.did:"").join("/")}${we.length?"/":""}${te&&te.meta?te.meta.did:""}`;e.getComponentId=g;const y=(te,we=[])=>`${we.map($e=>$e&&$e.meta?$e.meta.name:"").join("/")}${we.length?"/":""}${te&&te.meta?te.meta.name:""}`;e.getComponentName=y;const b=te=>`${te.meta.bundleName}@${te.meta.version}`;e.getComponentBundleId=b;const A=te=>{if(!te)return"";const we=te.split("/");return we.pop(),!we.length||(we[we.length-1].startsWith("@")&&we.pop(),!we.length)?"":we.join("/")};e.getParentComponentName=A;const x=(te,we,{parallel:$e=!1,concurrencyLimit:De=5,sync:re,params:q,_parent:W,_root:ce,_level:ke=0,_tasks:Ee,_ancestors:xe=[],_limit:Ue}={})=>{const je=ce||W||te,He=g(te,xe),lt=xe.concat(te);if(re){const Oe=we(te,{parent:W,root:je,level:ke,params:q,ancestors:xe,id:He});if(te.children)for(const Le of te.children)x(Le,we,{sync:re,params:Oe,_parent:te,_root:je,_level:ke+1,_ancestors:lt});return null}if(!$e)return new Promise(async(Oe,Le)=>{try{const Pe=await we(te,{parent:W,root:je,level:ke,ancestors:xe,params:q,id:He});if(te.children)for(const nt of te.children)await x(nt,we,{params:Pe,_parent:te,_root:je,_level:ke+1,_ancestors:lt});Oe(null)}catch(Pe){Le(Pe)}});const Ze=Ue||(0,o.default)(De),Ye=Ee||[];if(Ye.push(Ze(()=>we(te,{parent:W,root:je,level:ke,ancestors:xe,id:He}))),te.children)for(const Oe of te.children)x(Oe,we,{parallel:$e,_parent:te,_root:je,_level:ke+1,_tasks:Ye,_ancestors:lt,_limit:Ze});return Ee?null:Promise.all(Ye)};e.forEachBlocklet=x;const D=(te,we)=>x(te,we,{sync:!0});e.forEachBlockletSync=D;const O=(te,we,{parallel:$e=!1,concurrencyLimit:De=5,sync:re}={})=>{if(re){if(te.children)for(const ce of te.children)we(ce);return null}if(!$e)return new Promise(async(ce,ke)=>{try{if(te.children)for(const Ee of te.children)await we(Ee);ce(null)}catch(Ee){ke(Ee)}});const q=(0,o.default)(De),W=[];if(te.children)for(const ce of te.children)W.push(q(()=>we(ce)));return Promise.all(W)};e.forEachComponentV2=O;const P=(te,we)=>O(te,we,{sync:!0});e.forEachComponentV2Sync=P;const V=(te,we,$e)=>x(te,(De,re)=>re.level===0?{}:we(De,re),$e);e.forEachChild=V;const M=(te,we)=>V(te,we,{sync:!0});e.forEachChildSync=M;const j=(te,we,{_ancestors:$e=[],returnAncestors:De=!1}={})=>{if(!we)return null;if(we(te,{ancestors:$e}))return De?{component:te,ancestors:$e}:te;for(const re of te.children||[]){const q=$e.concat(te),W=j(re,we,{_ancestors:q,returnAncestors:De});if(W)return W}return null};e.findComponent=j;const G=(te,we,{returnAncestors:$e=!1}={})=>(Array.isArray(we)&&(we=we.join("/")),j(te,(De,{ancestors:re})=>{const q=g(De,re);return we===q},{returnAncestors:$e}));e.findComponentById=G;const ie=(te,we)=>{if(!we)return null;for(const $e of te.children||[])if(we($e,te))return $e;return null};e.findComponentV2=ie;const ue=(te,we)=>we?(Array.isArray(we)&&(we=we.join("/")),ie(te,($e,De)=>{if(we.includes("/")){const re=g($e,[De]);return we===re}return we===$e.meta.did})):null;e.findComponentByIdV2=ue;const K=(te,we)=>{if(!we)return[];const $e=[];for(const De of te.children||[])we(De,te)&&$e.push(De);return $e};e.filterComponentsV2=K;const N=te=>!!te&&!!(te.key||te.name)&&!te.secure&&te.shared!==!1&&!s.BLOCKLET_CONFIGURABLE_KEY[te.key||te.name];e.isEnvShareableToClient=N;const T=te=>!!te&&!!(te.key||te.name)&&!te.secure&&!!te.shared&&!s.BLOCKLET_CONFIGURABLE_KEY[te.key||te.name];e.isEnvShareable=T;const f=(te,we)=>{const $e={};return!te||!we||(Array.isArray(te.configs)&&te.configs.forEach(({key:De,value:re,secure:q})=>{if(!T({key:De,secure:q,shared:!0}))return;const W=(te.configObj||{})[De]||re,ce=(we.configs||[]).find(ke=>ke.key===De);(!ce||T(ce)||!ce.value&&!(we.configObj||{})[ce.key])&&($e[De]=W)}),(te.configs||[]).forEach(({key:De,value:re})=>{[s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_HOST,s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_ID,s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_TYPE].includes(De)&&($e[s.CHAIN_PROP_MAP[De]]=re)})),$e};e.getSharedConfigObj=f;const h=te=>te.key.startsWith(s.BLOCKLET_PREFERENCE_PREFIX)===!0;e.isPreferenceKey=h;const w=(te,we)=>!!(te.required&&(!te.value&&!we[te.key]||Object.values(s.CHAIN_PROP_MAP).includes(te.key)&&Object.keys(we).includes(te.key)&&!we[te.key])),_=(te={})=>{const we=[];return P(te,$e=>{var q;if(((q=$e.meta)==null?void 0:q.group)===s.BlockletGroup.gateway)return;const De=$e.configs||[],re=f(te,$e);De.forEach(W=>{w(W,re)&&we.push({did:$e.meta.did,key:W.key,description:W.description})})}),we.filter($e=>!h($e))};e.getAppMissingConfigs=_;const R=(te={},we={})=>{const $e=[],De=te.configs||[],re=f(we,te);return De.forEach(q=>{w(q,re)&&$e.push({did:te.meta.did,key:q.key,description:q.description})}),$e};e.getComponentMissingConfigs=R;const k=te=>te.payment?(te.payment.price||[]).map($e=>$e.value||0).every($e=>$e===0):!0;e.isFreeBlocklet=k;const C=te=>!te.payment||!te.payment.componentPrice?!0:!te.payment.componentPrice.length;e.isFreeComponent=C;const E=te=>te&&(x(te,we=>{we.configs&&(we.configs=we.configs.filter($e=>!h($e)),we.configs.forEach($e=>{$e.secure&&($e.value=$e.value?"__encrypted__":"")})),(we.environments||[]).forEach($e=>{["BLOCKLET_APP_SK","BLOCKLET_APP_PSK"].includes($e.key)&&($e.value="__encrypted__")}),(we.migratedFrom||[]).forEach($e=>{$e.appSk="__encrypted__"}),delete te.configObj,delete te.environmentObj},{sync:!0}),te);e.wipeSensitiveData=E;const v=te=>{if(!te)return!1;const we=te.environments.find($e=>$e.key==="BLOCKLET_DELETABLE");return we?we.value==="yes":!0};e.isDeletableBlocklet=v;const L=te=>{let we=!1;return D(te,$e=>{$e.meta.group!==s.BlockletGroup.gateway&&(we=!0)}),we};e.hasRunnableComponent=L;const ne=(te,we=!1)=>{if(!te)return"";const{meta:$e}=te;let De;if(!we&&te.environments){const re=te.environments.find(q=>q.key==="BLOCKLET_APP_NAME");re&&re.value&&(De=re.value)}return De||$e.title||$e.name};e.getAppName=ne,e.getDisplayName=ne;const F=(te,we=!1)=>{if(!te)return"";const{meta:$e}=te;let De;if(!we&&te.environments){const re=te.environments.find(q=>q.key==="BLOCKLET_APP_DESCRIPTION");re&&re.value&&(De=re.value)}return De||$e.description||$e.name};e.getAppDescription=F;function J(te){var De,re,q;const we=(q=(re=(De=te==null?void 0:te.site)==null?void 0:De.domainAliases)==null?void 0:re.sort((W,ce)=>{var ke,Ee,xe,Ue;return(ke=W.accessibility)!=null&&ke.accessible&&((Ee=ce.accessibility)!=null&&Ee.accessible)?+W.isProtected-+ce.isProtected:+((xe=ce.accessibility)==null?void 0:xe.accessible)-+((Ue=W.accessibility)==null?void 0:Ue.accessible)}))==null?void 0:q.map(W=>{var Ee;const ce=(Ee=W==null?void 0:W.domainStatus)!=null&&Ee.isHttps?"https://":"http://",ke=W==null?void 0:W.value;return`${ce}${ke}`}).filter(Boolean);return we==null?void 0:we[0]}e.getAppUrl=J;const se=te=>{te&&(D(te,we=>{we.status=(0,s.fromBlockletStatus)(we.status),we.source!==void 0&&(we.source=(0,s.fromBlockletSource)(we.source))}),te.settings&&(te.settings.children||[]).forEach(we=>{D(we,$e=>{$e.status=(0,s.fromBlockletStatus)($e.status),$e.source!==void 0&&($e.source=(0,s.fromBlockletSource)($e.source))})}))};e.fixBlockletStatus=se;const pe=te=>{if(!te)return null;const we=te.meta||te||{},{interfaces:$e=[]}=we;return Array.isArray($e)?$e.find(De=>De.type===s.BLOCKLET_INTERFACE_TYPE_WEB):null};e.findWebInterface=pe;const be=te=>{if(!te)return null;const we=pe(te),{ports:$e}=te;return!we||!$e?null:$e[we.port]};e.findWebInterfacePort=be;const Re=(te,we)=>{const $e=[we];we===c.AUTH&&$e.push(c.AUTH_SERVICE);const De=pe(te);return De?(De.services||[]).find(re=>$e.includes(re.name)):null};e.findServiceFromMeta=Re;const H=te=>{if(!te)return d.ALL;if((0,n.default)(te,"settings.whoCanAccess"))return te.settings.whoCanAccess;const we=Re(te.meta,c.AUTH);return(0,n.default)(we,"config.whoCanAccess")?we.config.whoCanAccess:d.ALL};e.getWhoCanAccess=H;const $=(te,we)=>{const $e=(te.configs||[]).find(re=>re.key===s.BLOCKLET_CONFIGURABLE_KEY.COMPONENT_ACCESS_WHO);if($e)return $e.value;if(we&&(0,n.default)(we,"settings.whoCanAccess")&&(0,n.default)(we,"settings.whoCanAccess")!==d.ALL)return(0,n.default)(we,"settings.whoCanAccess");const De=Re(te.meta,c.AUTH);return(0,n.default)(De,"config.whoCanAccess")?De.config.whoCanAccess:d.ALL};e.getComponentWhoCanAccess=$;const X=({request:te,baseUrl:we})=>{const $e=te.headers["x-blocklet-did"]||"",De=te.headers["x-blocklet-real-did"]||"",re=te.headers["x-path-prefix"]||"/",q=te.headers["x-group-path-prefix"]||"/";let W=we;return $e!==De&&re!==q&&(W=(0,i.joinURL)(W,"/").replace(re,q)),W};e.getConnectAppUrl=X;const Y=(te,we)=>{const $e=(we||"").includes(":")?":":/\./;return(te||"").replace(u,(we||"").replace(new RegExp($e,"g"),"-"))};e.replaceSlotToIp=Y;const oe=te=>{const we=Object.entries(s.CHAIN_INFO_CONFIG).reduce(($e,De)=>{const[re,[q,W]]=De;return $e[q]=(0,n.default)(te,re)||W,$e},{});return we.type==="ethereum"&&we.id==="none"&&(we.id="1"),we};e.getChainInfo=oe;const Te=te=>{const we=oe({});if(!te)return we;const $e=oe(te.configObj);if($e.host!=="none")return $e;let De;return M(te,re=>{if(De&&De.host!=="none")return;const q=oe(re.configObj);q.host!=="none"&&(De=q)}),De||we};e.getBlockletChainInfo=Te;const me=te=>!!(te!=null&&te.controller);e.isExternalBlocklet=me;const le=te=>te.whoCanAccess.startsWith(p)?te.whoCanAccess.substring(p.length).split(","):[];e.getRolesFromAuthConfig=le;const ve=te=>{const we=Array.isArray(te.migratedFrom)?te.migratedFrom.map($e=>$e.appDid):[];return(0,r.default)([te.appDid,te.appPid,...we].filter(Boolean))};e.getBlockletAppIdList=ve;const _e=te=>{const we=[];return te&&D(te,$e=>{var re;(((re=$e.meta)==null?void 0:re.interfaces)||[]).filter(q=>q.type===s.BLOCKLET_INTERFACE_TYPE_SERVICE).forEach(q=>{const W=q.port||{};we.push({name:q.name,protocol:q.protocol,port:Number(W.external),upstreamPort:Number(($e.ports||{})[W.internal])})})}),we};e.getBlockletServices=_e;const Se=te=>[s.BlockletStatus.downloading,s.BlockletStatus.waiting,s.BlockletStatus.starting,s.BlockletStatus.installing,s.BlockletStatus.stopping,s.BlockletStatus.upgrading,"downloading","waiting","starting","installing","extracting","stopping","upgrading","restarting","deleting"].includes(te);e.isInProgress=Se;const ze=te=>[s.BlockletStatus.added,s.BlockletStatus.waiting,s.BlockletStatus.downloading,s.BlockletStatus.installing,"added","waiting","downloading","installing"].includes(te);e.isBeforeInstalled=ze;const Je=te=>[s.BlockletStatus.running,"running"].includes(te);e.isRunning=Je;const ge=te=>[s.BlockletStatus.running,s.BlockletStatus.waiting,s.BlockletStatus.downloading,"running","waiting","downloading"].includes(te);e.isAccessible=ge;const Ie=(te,{type:we,did:$e}={type:"",did:""})=>{var De,re,q;return te?!(0,l.hasStartEngine)(te.meta)&&((q=(re=(De=te.meta)==null?void 0:De.resource)==null?void 0:re.bundles)==null?void 0:q.length)>0&&(te.meta.resource.bundles||[]).some(W=>W.type===we&&W.did===$e):!1};e.hasResourceType=Ie,e.default={isFreeBlocklet:k,isFreeComponent:C,forEachBlocklet:x,forEachBlockletSync:D,forEachChild:V,forEachChildSync:M,forEachComponentV2:O,forEachComponentV2Sync:P,isDeletableBlocklet:v,getSharedConfigObj:f,getAppMissingConfigs:_,getComponentMissingConfigs:R,isEnvShareableToClient:N,isEnvShareable:T,wipeSensitiveData:E,hasRunnableComponent:L,getAppName:ne,getAppDescription:F,getAppUrl:J,getDisplayName:ne,fixBlockletStatus:se,findWebInterface:pe,findWebInterfacePort:be,findServiceFromMeta:Re,getWhoCanAccess:H,getComponentWhoCanAccess:$,replaceSlotToIp:Y,getComponentId:g,getComponentName:y,getComponentBundleId:b,findComponent:j,findComponentById:G,findComponentV2:ie,findComponentByIdV2:ue,filterComponentsV2:K,getParentComponentName:A,getConnectAppUrl:X,getChainInfo:oe,getBlockletChainInfo:Te,isExternalBlocklet:me,isPreferenceKey:h,getRolesFromAuthConfig:le,getBlockletServices:_e,isInProgress:Se,isBeforeInstalled:ze,isRunning:Je,isAccessible:ge,isGatewayBlocklet:l.isGatewayBlocklet,isPackBlocklet:l.isPackBlocklet,hasStartEngine:l.hasStartEngine,hasResourceType:Ie}})(Ss);const Hle=(e,t=!1)=>{const n=e.routing.adminPath;return t?encodeURIComponent(Ln(window.location.origin,n)):Ln(window.location.origin,n)},B_t=(e,t,n)=>{const r=Hle(t),i=Ln(n,`/api/blocklets/${e.did}/blocklet.json`),o=new URL(Ln(r,"/launch-blocklet/agreement"));return o.searchParams.set("blocklet_meta_url",i),o.searchParams.set("from",window.location.href),o.href},dCt=async(e,{getIP:t}={})=>{if(!e||!e.length)return[];if(!t||!e.some(r=>r.value.includes(rn.SLOT_FOR_IP_DNS_SITE)))return e;const n=await t();return n?e.map(r=>{try{return r.value=Ss.replaceSlotToIp(r.value,n),r}catch{return r}}).filter(Boolean):e},pCt=e=>{const t={didSpace:null};return Ss.forEachBlockletSync(e,n=>{var r,i;t.didSpace===ti.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||t.didSpace===ti.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP||(i=(r=n==null?void 0:n.meta)==null?void 0:r.capabilities)!=null&&i.didSpace&&(t.didSpace=n.meta.capabilities.didSpace)}),t},_W=async(e,{fixRuntime:t=!0,oldBlocklet:n,getIP:r}={})=>{if(e.site||(e.site={domainAliases:[],rules:[]}),e.site.rules.forEach(i=>{i.from.pathPrefix=G9(i.from.pathPrefix||"/")}),e.site.rules=cie(e.site.rules,i=>i.from.pathPrefix),t===!0)e.site.domainAliases=await dCt(e.site.domainAliases,{getIP:r}),e.appRuntimeInfo&&(e.appRuntimeInfo.startAt=new Date-e.appRuntimeInfo.uptime),Ss.forEachBlockletSync(e,i=>{i.runtimeInfo&&(i.runtimeInfo.startAt=new Date-i.runtimeInfo.uptime)});else if(t==="merge-old"&&n){e.site.domainAliases=n.site.domainAliases,e.appRuntimeInfo=n.appRuntimeInfo;const i={};Ss.forEachBlockletSync(n,(o,{id:a})=>{i[a]=o}),Ss.forEachBlockletSync(e,(o,{id:a})=>{const s=i[a];s&&(o.runtimeInfo=s.runtimeInfo,o.diskInfo=s.diskInfo,o.engine=s.engine)})}else e.site.domainAliases=[];e.capabilities=pCt(e)},EW="arcblock",N_t=(e,t=!1)=>{let n;return t?(n=(e.configs||[]).find(r=>r.key==="BLOCKLET_APP_CHAIN_TYPE"),n&&n.value||(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.key)),n&&n.value)?n.value:EW):(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.name)),n&&n.default?n.default:EW)},$_t=e=>!Ok(e==null?void 0:e.controller);let PC=null;const hCt=async()=>{const e=window.env.apiPrefix||"/",t=Ln(e,"/api/dns-resolve?accessible=1");try{return(await Ir.get(t)).data.address}catch{return null}},RW=()=>(PC||(PC=hCt()),PC),Wle=U.createContext({}),{Provider:mCt,Consumer:F_t}=Wle,kW=(e,t,n)=>n?e.map(r=>{const i={...r},o=t.find(a=>a.meta.did===r.meta.did);return o&&n.forEach(a=>{i[a]=o[a]}),i}):t;function gCt({children:e}){const t=Sl(),n=i5(),[r,i]=U.useState(null),[o,a]=U.useState(!1),[s,l]=U.useState([]),[c,u]=U.useState([]),[d,p]=U.useState(!1),g=(P,V)=>{Ss.isExternalBlocklet(P)?u(V):l(V)},y=4,b=async({silent:P=!0,retries:V=y,updates:M,useCache:j=!0}={})=>{P||a(!0);try{i(null);const{blocklets:G}=await n.getBlocklets({input:{useCache:j}});for(const K of G)await _W(K,{getIP:RW});const ie=G.filter(K=>!Ss.isExternalBlocklet(K)),ue=G.filter(Ss.isExternalBlocklet);l(K=>kW(K,ie,M)),u(K=>kW(K,ue,M)),a(!1),p(!0)}catch(G){V>0?setTimeout(()=>b({silent:P,retries:V-1,useCache:j}),1e3):(a(!1),i(G))}},A=async P=>{try{const{blocklet:V}=await t.api.getBlocklet({input:{did:P.meta.did,attachRuntimeInfo:!0}});await _W(V,{getIP:RW}),g(V,M=>M.some(j=>j.meta.did===V.meta.did)?M.map(j=>j.meta.did===V.meta.did?V:j):[...M,V])}catch(V){i(V)}},x=P=>{t.refresh(),A(P)};U.useEffect(()=>{b({silent:!1})},[]);const D=P=>{const V={};Ss.forEachBlockletSync(P,(M,{id:j})=>{V[j]=ti.fromBlockletStatus(M.status)}),g(P,M=>M.map(j=>(j.meta.did===P.meta.did&&Ss.forEachBlockletSync(j,(G,{id:ie})=>{V[ie]&&(G.status=V[ie])}),j)))};Ki(ti.BlockletEvents.added,P=>{P.status=ti.fromBlockletStatus(P.status),g(P,V=>[...V,P])}),Ki(ti.BlockletEvents.removed,P=>{t.refresh(),g(P,V=>V.filter(M=>M.meta.did!==P.meta.did))}),Ki(ti.BlockletEvents.statusChange,D),Ki(ti.BlockletEvents.installed,x),Ki(ti.BlockletEvents.upgraded,x),Ki(ti.BlockletEvents.updated,A),Ki(ti.BlockletEvents.startFailed,A),Ki(ti.BlockletEvents.reloaded,A);const O={loading:o,error:r,data:s,externalData:c,refresh:b,initialized:d,api:n};return I.jsx(mCt,{value:{blocklets:O},children:e})}function U_t(){const{blocklets:e}=U.useContext(Wle);return e}const yCt=({user:e,launchType:t,nftId:n})=>{var r;if(!e)return!1;if(t==="serverless"){if(!n)throw new Error("nftId is required");return((r=e==null?void 0:e.controller)==null?void 0:r.nftId)===n}return(e.permissions||[]).includes("mutate_blocklets")},j_t=e=>{var t,n;return e.isGetBlocklet&&((n=(t=e.runtimeBlocklet)==null?void 0:t.controller)==null?void 0:n.consumedAt)},q_t=async e=>{const t=bdt({blocklet:e});let n="";return n=t.find(r=>{try{const{hostname:i}=new URL(r);return koe.isSlpDomain(i)}catch(i){return console.error(i),!1}}),n||(n=await Sdt(t)),n},Gle=U.createContext({}),{Provider:vCt,Consumer:V_t}=Gle;function bCt({children:e}){const{session:t}=y0(),{t:n}=fo(),{api:r,info:i}=Sl(),[o]=BJ(),a=i5(),s=o.get("launchType"),l=o.get("fromLauncher"),c=o.get("blocklet_meta_url")||"",u=o.get("nftId")||"",d=o.get("launcherSessionId")||"",p=o.get("launcherUrl")||"",g=new URL(c).origin,[y,b]=U.useState({meta:null,appDid:o.get("appDid")||null,sessionId:o.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null}),A=(ue,K)=>b(N=>({...N,appDid:ue,sessionId:K})),x=yCt({user:t.user,launchType:s,nftId:u}),[D,O]=U.useState(null),[P,V]=U.useState(!0),M=U.useMemo(()=>i?Hle(i):"",[i]),j=async ue=>{if(!ue)throw new Error("appDid should not be empty");const{blocklet:K}=await r.getBlocklet({input:{did:ue,attachConfig:!1}});if(!K)return null;const N=ti.BlockletStatus[K.status],T=!!u,f=N<ti.BlockletStatus.installed,h=N===ti.BlockletStatus.installed,w=N===ti.BlockletStatus.running;return b(_=>({..._,isInstalled:h,isRunning:w,isExternal:T,isInstalling:f})),{isInstalled:h,isRunning:w,isExternal:T,isInstalling:f}},G=async()=>{V(!0);try{if(!c)throw new Error(n("common.invalidParam"));const[{meta:ue,isFree:K},{launcherSession:N,error:T}]=await Promise.all([r.getBlockletMetaFromUrl({input:{url:c,checkPrice:!0}}),d?r.getLauncherSession({input:{launcherSessionId:d,launcherUrl:p}}):Promise.resolve({})]);if(d&&!N)throw new Error(`Launch session invalid: ${T}`);if(!ue)throw new Error(n("LaunchBlockletBlocklet.error.loadMetaFailed"));let f={};x&&y.appDid&&(f=await j(y.appDid)),b(h=>({...h,...f,meta:ue,isFree:K,launcherSession:N}))}catch(ue){console.error(ue),O(ue.message)}finally{V(!1)}};U.useEffect(()=>{var ue,K,N;((ue=t==null?void 0:t.user)==null?void 0:ue.role)===rn.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&((N=(K=t==null?void 0:t.user)==null?void 0:K.controller)==null?void 0:N.nftId)!==u&&t.logout(),G()},[]),U.useEffect(()=>{P||!y.meta||(x?y.appDid&&j(y.appDid).catch(ue=>{ci.error(ue.message)}):(b(ue=>({...ue,isInstalled:!1,isRunning:!1,isExternal:!1})),O(null)))},[x]);const ie={meta:y.meta,isFree:y.isFree,appDid:y.appDid,sessionId:y.sessionId,isInstalling:y.isInstalling,isInstalled:y.isInstalled,isExternal:y.isExternal,isRunning:y.isRunning,serverUrl:M,storeUrl:g,blockletMetaUrl:c,fromLauncher:l,loading:P,error:D,api:a,getBlocklet:j,setAppDid:A,launcherUrl:p,launcherSession:y.launcherSession,launcherSessionId:d};return I.jsx(vCt,{value:ie,children:e})}function z_t(){return U.useContext(Gle)}function Kle(){return new URLSearchParams(yi().search)}const Jle=U.createContext(),{Provider:wCt,Consumer:H_t}=Jle;function Yle({children:e}){const n=Kle().get("blocklet_meta_url"),r=S8t(async()=>{const{data:o}=await W9.get(n);return o});if(r.loading)return I.jsx(Qo,{children:I.jsx(ra,{})});const i={meta:r.value,error:r.error};return I.jsx(wCt,{value:i,children:e})}Yle.propTypes={children:Z.any.isRequired};function W_t(){return U.useContext(Jle)}const TCt=U.lazy(()=>gn(()=>import("./index-9R6mPPbN.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),xCt=U.lazy(()=>gn(()=>import("./index-0RUAEm49.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,2,27,28,29,30]),import.meta.url)),SCt=U.lazy(()=>gn(()=>import("./index-ByF3apMm.js"),__vite__mapDeps([31,32,33,34,35,36,37,6,38,39,40,41,12,9,11,25,18,17]),import.meta.url)),CCt=U.lazy(()=>gn(()=>import("./index-ZQu91rXz.js"),__vite__mapDeps([42,6,43,44,17,16,45,9,46,47,29,12,11,38,48,39,49,3,18,22,23,50,51,52]),import.meta.url)),ACt=U.lazy(()=>gn(()=>import("./index-CucnV9EX.js"),__vite__mapDeps([53,54,10,51,55,56,45,57,12,9,11,7,8,13,14,15,16,17,18,58,49,3,2,59,6,60,61,29,19,20,62,63,64,65,4,66]),import.meta.url)),_Ct=U.lazy(()=>gn(()=>import("./index-DPx9NPlp.js"),__vite__mapDeps([67,68,22,23,9,69]),import.meta.url)),ECt=U.lazy(()=>gn(()=>import("./index-BbW2IRRR.js"),__vite__mapDeps([70,54,10,71,72,73,17,6,9,11,74,13,75,76,29,77,78,79,16,12,7,8,14,15,18,80,81,82,45,20,83,3,2,84,85,30,22,23,86,87,88,24,25,44,46,89,1,49,64]),import.meta.url)),RCt=U.lazy(()=>gn(()=>import("./detail-CHKmnQLc.js").then(e=>e.d),__vite__mapDeps([90,54,10,19,20,21,6,18,22,23,28,83,40,41,52]),import.meta.url)),kCt=U.lazy(()=>gn(()=>import("./index-BBnT5XB9.js"),[],import.meta.url)),DCt=U.lazy(()=>gn(()=>import("./index-DsUZ7uiP.js"),__vite__mapDeps([91,1,74,13]),import.meta.url)),LCt=U.lazy(()=>gn(()=>import("./index-DOsg2sHH.js"),__vite__mapDeps([92,93,94,95,62,96]),import.meta.url)),OCt=U.lazy(()=>gn(()=>import("./index-DfNh08gP.js"),__vite__mapDeps([97,62,78,48,96,27]),import.meta.url)),ICt=U.lazy(()=>gn(()=>import("./index-DrWhB0MJ.js"),__vite__mapDeps([98,96]),import.meta.url)),PCt=U.lazy(()=>gn(()=>import("./index-DmPgcoiv.js"),__vite__mapDeps([99,32,33,34,35,36,37,100,72,73,41,25,6,59]),import.meta.url)),MCt=U.lazy(()=>gn(()=>import("./index-DV2quTIn.js"),__vite__mapDeps([101,94]),import.meta.url)),BCt=U.lazy(()=>gn(()=>import("./index-zFXZLqso.js"),__vite__mapDeps([102,93,94,95,62,96]),import.meta.url)),NCt=U.lazy(()=>gn(()=>import("./index-DHYJxTcV.js").then(e=>e.a2),__vite__mapDeps([103,104]),import.meta.url)),$Ct=U.lazy(()=>gn(()=>import("./index-BnFWpIPQ.js"),__vite__mapDeps([105,54,10,106,107,108,63,9,109,12,11,46,7,8,13,14,15,16,17,18,28,110,111,4,6,89,23]),import.meta.url));function Zle(){const e=Sl(),{session:t}=y0(),{wallet:n}=Vh(),r=t.user&&t.user.did;return U.useEffect(()=>{const i=f5();return r?i.connect():i.isConnected()&&i.disconnect(),()=>{i.isConnected()&&i.disconnect()}},[r]),U.useEffect(()=>{if(n)return()=>{};const i=()=>{document.visibilityState==="visible"&&t.refresh()};return document.addEventListener("visibilitychange",i),()=>{document.removeEventListener("visibilitychange",i)}},[]),{node:e,session:t}}function FCt(){var a;const{t:e}=fo(),{node:t,session:n}=Zle(),r=yi();U.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${r.pathname}${r.search}`)},[r]),U.useEffect(()=>{var s;((s=n==null?void 0:n.user)==null?void 0:s.role)===rn.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&n.logout()},[(a=n==null?void 0:n.user)==null?void 0:a.role]);const i=I.jsx(ra,{});if(t.loading||n.loading)return I.jsx(Qo,{children:i});if(!t.info.initialized)return b8e.getServerAuthMethod(t.info)==="nft"?I.jsx(YL,{action:"verify-owner"}):I.jsx(Qo,{children:I.jsx(m6t,{})});if(t.info.upgradeSessionId)return I.jsx(Qo,{children:I.jsx(Nse,{})});if(!n.user)return I.jsx(XL,{loadingEle:i});const o=I.jsx(Qo,{children:I.jsx(ra,{})});return I.jsx(Q8t,{children:I.jsxs(gCt,{children:[I.jsx(C6t,{}),I.jsx(OTt,{}),I.jsx(nCt,{}),I.jsx(U.Suspense,{fallback:o,children:I.jsxs(A4,{children:[I.jsx(or,{path:"/dashboard",element:I.jsx(Ko,{fullWidth:!0,title:"Dashboard",children:I.jsx(TCt,{})})}),I.jsx(or,{path:"/blocklets",element:I.jsx(Ko,{fullWidth:!0,title:e("common.blocklets"),children:I.jsx(xCt,{})})}),I.jsx(or,{path:"/blocklets/:did/:tab",element:I.jsx(Ko,{fullWidth:!0,title:"Blocklets",children:I.jsx(RCt,{})})}),I.jsx(or,{path:"/settings/:tab",element:I.jsx(Ko,{fullWidth:!0,title:e("common.setting"),children:I.jsx(ACt,{})})}),I.jsx(or,{path:"/eula",element:I.jsx(Ko,{fullWidth:!0,title:e("setup.steps.eula"),children:I.jsx(kCt,{})})}),I.jsx(or,{path:"/store",element:I.jsx(Ko,{fullWidth:!0,title:e("common.store"),children:I.jsx(CCt,{})})}),I.jsx(or,{path:"/console",element:I.jsx(Ko,{title:`GraphQL ${e("common.console")}`,scrollable:!1,fullWidth:!0,children:I.jsx(NCt,{})})}),I.jsx(or,{path:"/notifications",element:I.jsx(Ko,{children:I.jsx(DCt,{})})}),I.jsx(or,{path:"/team/:tab",element:I.jsx(Ko,{fullWidth:!0,title:e("common.team"),children:I.jsx(ECt,{})})}),I.jsx(or,{path:"/logs/:name",element:I.jsx(Ko,{scrollable:!1,fullWidth:!0,title:e("common.logs"),children:I.jsx(_Ct,{})})}),I.jsx(or,{path:"/analytics/:tab",element:I.jsx(Ko,{fullWidth:!0,title:e("common.analytics"),children:I.jsx($Ct,{})})}),I.jsx(or,{path:"/",element:I.jsx(Gs,{to:"/dashboard",replace:!0})}),I.jsx(or,{path:"/team",element:I.jsx(Gs,{to:"/team/members",replace:!0})}),I.jsx(or,{path:"/analytics",element:I.jsx(Gs,{to:"/analytics/traffic",replace:!0})}),I.jsx(or,{path:"/logs",element:I.jsx(Gs,{to:"/logs/abtnode",replace:!0})}),I.jsx(or,{path:"/router",element:I.jsx(Gs,{to:"/router/rules",replace:!0})}),I.jsx(or,{path:"/settings",element:I.jsx(Gs,{to:"/settings/basic",replace:!0})}),I.jsx(or,{path:"/marketplace",element:I.jsx(Gs,{to:"/store",replace:!0})}),I.jsx(or,{path:"/marketplace/:did",element:I.jsx(Gs,{to:"/store/:did",replace:!0})}),I.jsx(or,{path:"*",element:I.jsx(MCt,{})})]})})]})})}function Jc({children:e}){const{node:t,session:n}=Zle();return t.loading||!n.initialized&&n.loading?I.jsx(Qo,{children:I.jsx(ra,{})}):t.info.upgradeSessionId?I.jsx(Qo,{children:I.jsx(Nse,{})}):e}function UCt(){const{changeLocale:e}=fo(),t=Kle();U.useEffect(()=>{const r=t.get("locale");r&&["zh","en"].includes(r)&&e(r)},[]);const n=I.jsx(Qo,{children:I.jsx(ra,{})});return I.jsx(U.Suspense,{fallback:n,children:I.jsxs(A4,{children:[I.jsx(or,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:I.jsx(Jc,{children:I.jsx(LCt,{})})}),I.jsx(or,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:I.jsx(Jc,{children:I.jsx(OCt,{})})}),I.jsx(or,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:I.jsx(Jc,{children:I.jsx(ICt,{})})}),I.jsx(or,{path:"/accept-server",element:I.jsx(Jc,{children:I.jsx(YL,{action:"accept-server"})})}),I.jsx(or,{path:"/launch-blocklet/*",element:I.jsx(Jc,{children:I.jsx(bCt,{children:I.jsx(PCt,{})})})}),I.jsx(or,{path:"/blocklets/restore/*",element:I.jsx(Jc,{children:I.jsx(Yle,{children:I.jsx(SCt,{})})})}),I.jsx(or,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:I.jsx(Jc,{children:I.jsx(BCt,{})})}),I.jsx(or,{path:"/*",element:I.jsx(FCt,{})})]})})}function jCt(){const e=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return I.jsxs(I.Fragment,{children:[I.jsx($7,{}),I.jsx(OJ,{history:X8e,basename:e,children:I.jsx(VTt,{children:I.jsx(UCt,{})})})]})}const qCt=WK(document.getElementById("root"));qCt.render(I.jsx(jCt,{}));const DW=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";wge(`${DW}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:DW},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(e){console.error("Error during service worker registration:",e)}});export{Hp as $,ci as A,ks as B,ra as C,QD as D,BJ as E,rn as F,gx as G,Ps as H,SO as I,Tat as J,Yct as K,DX as L,Ss as M,cl as N,ft as O,Z as P,Ok as Q,ND as R,B1 as S,Lle as T,y5 as U,Qo as V,oO as W,Ac as X,Ave as Y,OD as Z,Qst as _,Ki as a,wk as a$,rL as a0,Ln as a1,to as a2,_6 as a3,kTt as a4,S_t as a5,s9e as a6,bk as a7,m9e as a8,IX as a9,dle as aA,Tdt as aB,zle as aC,R9e as aD,dCt as aE,G9 as aF,cie as aG,RW as aH,XAt as aI,joe as aJ,fa as aK,co as aL,X8e as aM,vdt as aN,sk as aO,KAt as aP,Lke as aQ,l_t as aR,S8t as aS,W9 as aT,YAt as aU,g_t as aV,ydt as aW,AX as aX,yX as aY,tLe as aZ,ZAt as a_,Hle as aa,W_t as ab,b8e as ac,iO as ad,nL as ae,q_t as af,DAt as ag,j_t as ah,f5 as ai,Kle as aj,o_t as ak,GO as al,KL as am,x7 as an,A4 as ao,or as ap,Gs as aq,cu as ar,yl as as,$V as at,B_t as au,Ir as av,y0 as aw,Io as ax,c_t as ay,T6 as az,ti as b,NA as b$,NRe as b0,JRe as b1,wdt as b2,m_t as b3,xle as b4,xCe as b5,hct as b6,Iw as b7,Pw as b8,jX as b9,sie as bA,zg as bB,PXe as bC,Wre as bD,JD as bE,sle as bF,HAt as bG,L_t as bH,FAt as bI,s_t as bJ,Zte as bK,ua as bL,kt as bM,mc as bN,ye as bO,Ybe as bP,Bt as bQ,un as bR,an as bS,hn as bT,fl as bU,Pt as bV,sn as bW,fu as bX,d7e as bY,ht as bZ,Gn as b_,en as ba,Hr as bb,Wu as bc,uh as bd,a_t as be,B6 as bf,bJ as bg,Yo as bh,qX as bi,G1 as bj,T_t as bk,Cie as bl,N_t as bm,iQ as bn,gn as bo,zAt as bp,mRe as bq,IJ as br,x_t as bs,GD as bt,Uh as bu,Og as bv,pre as bw,hre as bx,KD as by,r9 as bz,i5 as c,fw as c$,B7 as c0,$r as c1,M7 as c2,sAt as c3,MAt as c4,bdt as c5,koe as c6,ile as c7,p_t as c8,D6 as c9,_f as cA,yi as cB,CD as cC,pi as cD,VAt as cE,UAt as cF,jAt as cG,rle as cH,FTt as cI,tk as cJ,gi as cK,oAt as cL,wm as cM,Np as cN,Zut as cO,mt as cP,Jne as cQ,zCt as cR,cAt as cS,_ct as cT,V6 as cU,I8t as cV,pbe as cW,b_t as cX,Ya as cY,P7 as cZ,dc as c_,_W as ca,SRe as cb,ARe as cc,Adt as cd,T9e as ce,XEe as cf,Ule as cg,eCt as ch,NOe as ci,Ct as cj,GLe as ck,Or as cl,dh as cm,nu as cn,mi as co,Vh as cp,_g as cq,Ku as cr,S6t as cs,d5 as ct,z_t as cu,hGe as cv,yCt as cw,f_t as cx,Sdt as cy,i_t as cz,U_t as d,YCt as d$,$a as d0,Ai as d1,Rt as d2,hX as d3,FEe as d4,Ba as d5,OAt as d6,IAt as d7,PD as d8,Uke as d9,yu as dA,L9 as dB,SZe as dC,Vie as dD,JAt as dE,jEe as dF,s3 as dG,K4e as dH,cc as dI,_o as dJ,zY as dK,bwe as dL,Rw as dM,rs as dN,zh as dO,Lw as dP,Hh as dQ,N7 as dR,AY as dS,L4e as dT,I4e as dU,jve as dV,tY as dW,mg as dX,ZCt as dY,QCt as dZ,XCt as d_,M1 as da,c3 as db,MX as dc,q9e as dd,J$ as de,K$ as df,N9e as dg,yAt as dh,dn as di,GCt as dj,WCt as dk,HCt as dl,KCt as dm,Rh as dn,kD as dp,L6 as dq,ad as dr,Hg as ds,cJe as dt,CZ as du,Jn as dv,aAt as dw,Wp as dx,AZ as dy,Qt as dz,_8t as e,Y4 as e$,Xbe as e0,ug as e1,Dh as e2,RN as e3,JCt as e4,$f as e5,E3e as e6,S7 as e7,XY as e8,rAt as e9,OEe as eA,wv as eB,wRe as eC,hx as eD,g7e as eE,xm as eF,Oke as eG,k9e as eH,f3 as eI,nLe as eJ,em as eK,SLe as eL,Wl as eM,Xb as eN,Zb as eO,NLe as eP,LLe as eQ,bAt as eR,Yre as eS,Ls as eT,T_ as eU,F7 as eV,xY as eW,RX as eX,LGe as eY,Lh as eZ,qY as e_,eAt as ea,l4e as eb,fc as ec,BY as ed,I3e as ee,c4e as ef,nAt as eg,BA as eh,o4e as ei,s4e as ej,vl as ek,u4e as el,Wbe as em,lw as en,Mwe as eo,tAt as ep,Dwe as eq,jc as er,SCe as es,pAt as et,eAe as eu,tAe as ev,vAe as ew,hAt as ex,tr as ey,Tp as ez,Ec as f,ay as f$,hg as f0,_7 as f1,p3 as f2,tF as f3,jf as f4,fi as f5,Bot as f6,$o as f7,a0 as f8,tn as f9,t_t as fA,PAt as fB,r_t as fC,Aie as fD,hoe as fE,t6t as fF,p9 as fG,tse as fH,Uoe as fI,vw as fJ,T2t as fK,iie as fL,Q4e as fM,QY as fN,U7 as fO,Kn as fP,Ew as fQ,n9e as fR,Y7 as fS,d8e as fT,$O as fU,uAt as fV,qO as fW,jO as fX,I6 as fY,EAt as fZ,RO as f_,Eg as fa,Hf as fb,UOe as fc,WK as fd,Kh as fe,Xn as ff,bee as fg,gee as fh,Sw as fi,Xct as fj,kY as fk,cw as fl,l3 as fm,i7 as fn,tQ as fo,VQ as fp,v6t as fq,qAt as fr,nI as fs,rQ as ft,VCt as fu,pc as fv,CYe as fw,_c as fx,QAt as fy,ud as fz,Kt as g,Sh as g$,IO as g0,UWe as g1,Gh as g2,Tle as g3,A6 as g4,lot as g5,bot as g6,qte as g7,Sk as g8,Zrt as g9,Hct as gA,ID as gB,$_t as gC,v_t as gD,GAt as gE,e_t as gF,n_t as gG,R6 as gH,Tre as gI,xre as gJ,wre as gK,Pre as gL,WY as gM,e3 as gN,cAe as gO,dbe as gP,f5t as gQ,y5t as gR,w5t as gS,C5t as gT,E5t as gU,lTt as gV,uTt as gW,Vse as gX,zse as gY,MVe as gZ,Ktt as g_,wie as ga,Kf as gb,E6 as gc,L1 as gd,kw as ge,mx as gf,Dw as gg,YAe as gh,bX as gi,hCe as gj,ZZ as gk,cve as gl,WAt as gm,d_t as gn,Lxt as go,Sg as gp,lCe as gq,Cw as gr,dre as gs,H7 as gt,mSe as gu,W7 as gv,yct as gw,K7 as gx,$At as gy,oCt as gz,rO as h,q1 as h0,jVe as h1,BAt as h2,TAt as h3,y_t as h4,sV as h5,Zm as h6,GOe as h7,aQ as h8,d3 as h9,RAt as hA,Act as hB,O_t as hC,wX as hD,mot as hE,e9 as hF,LOe as hG,E_t as hH,__t as hI,nQ as hJ,Ite as hK,P_t as hL,mX as hM,wAt as ha,N1 as hb,iAt as hc,wwe as hd,dAt as he,mCe as hf,yRe as hg,bDe as hh,hDe as hi,mAt as hj,wDe as hk,gAt as hl,z9e as hm,vAt as hn,D5t as ho,KA as hp,YA as hq,$se as hr,X4e as hs,LD as ht,hN as hu,u_t as hv,Ibt as hw,w_t as hx,h_t as hy,mH as hz,ch as i,I as j,Tf as k,NAt as l,Xt as m,Ka as n,q6 as o,jE as p,fo as q,U as r,er as s,F8t as t,Sl as u,R8t as v,ake as w,C9 as x,tL as y,xc as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as y,j as i,s as h,O as p,P as o}from"./index-
|
|
1
|
+
import{r as y,j as i,s as h,O as p,P as o}from"./index-CqcpZ8C3.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var f=a.default=void 0;v(y);var s=i;function v(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(n){g(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g(e,t,r){return t=b(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t=O(e,"string");return typeof t=="symbol"?t:String(t)}function O(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,s.jsx)("svg",c(c({},t),{},{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};l.displayName="empty";f=a.default=l;const j=h(p)`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as p,c as ue,u as J,e as Pe,aE as Rr,j as e,F as D,aF as ln,aG as $n,aH as Tr,aI as cn,aJ as _t,aK as ge,aL as he,P as u,n as V,q as N,ad as ne,aM as dn,m as L,U as te,ax as pe,J as Se,B as G,C as Y,aN as Mn,K as de,O as ee,A as ce,f as Dt,R as zn,aO as Er,aP as Pr,aQ as Ar,aa as Ir,aR as Lr,aS as Or,aT as kr,z as Bn,W as un,T as mn,k as Q,aU as Rt,a as xt,S as ie,b as Je,aV as Wn,aW as qn,aX as Hn,aY as Fr,a2 as Nr,aZ as Ur,a_ as $r,a$ as Mr,b0 as zr,b1 as Br,b2 as ze,a8 as Wr,d as Kn,M as qr,b3 as Hr,aD as ut,b4 as Kr,a9 as mt,a6 as ft,b5 as Gr,a7 as yt,i as Gn,N as Yr,b6 as Vr,b7 as we,b8 as _e,b9 as Xr,ba as Qr,D as Yn,w as vt,bb as Jr,h as Zr,at as fn,bc as ei,bd as pn,aj as ti,be as ni,bf as ri,bg as ii}from"./index-
|
|
1
|
+
import{r as p,c as ue,u as J,e as Pe,aE as Rr,j as e,F as D,aF as ln,aG as $n,aH as Tr,aI as cn,aJ as _t,aK as ge,aL as he,P as u,n as V,q as N,ad as ne,aM as dn,m as L,U as te,ax as pe,J as Se,B as G,C as Y,aN as Mn,K as de,O as ee,A as ce,f as Dt,R as zn,aO as Er,aP as Pr,aQ as Ar,aa as Ir,aR as Lr,aS as Or,aT as kr,z as Bn,W as un,T as mn,k as Q,aU as Rt,a as xt,S as ie,b as Je,aV as Wn,aW as qn,aX as Hn,aY as Fr,a2 as Nr,aZ as Ur,a_ as $r,a$ as Mr,b0 as zr,b1 as Br,b2 as ze,a8 as Wr,d as Kn,M as qr,b3 as Hr,aD as ut,b4 as Kr,a9 as mt,a6 as ft,b5 as Gr,a7 as yt,i as Gn,N as Yr,b6 as Vr,b7 as we,b8 as _e,b9 as Xr,ba as Qr,D as Yn,w as vt,bb as Jr,h as Zr,at as fn,bc as ei,bd as pn,aj as ti,be as ni,bf as ri,bg as ii}from"./index-CqcpZ8C3.js";import{T as oi}from"./index-CIbzY-F7.js";import{d as ai}from"./ArrowDropDown-BNt-WuI3.js";import{u as Tt,C as re,a as gn}from"./index.esm-Hqw0Nfnx.js";import{S as je}from"./switch-control-CuPWIx6T.js";import{d as Vn,i as si}from"./is-path-prefix-equal-CoJozASB.js";import{T as K,F as li}from"./TextField-DjRhIjo4.js";import{D as Xn,g as ci}from"./index-CZKHzmkC.js";import{d as Qn}from"./Link-DfSEdivF.js";import{d as Ae}from"./Delete-CnrKsAGC.js";import{C as Et}from"./delete-confirm-BoeDYrYX.js";import{I as Be}from"./index-BKi0XLcv.js";import{s as di}from"./logo-BKA11TRi.js";import{_ as ui}from"./useLocalStorage-C3GQNaV2.js";import{L as mi}from"./LoadingButton-xveWP_M5.js";import{C as fi,d as Jn}from"./Public-BLh26Bb9.js";import{d as Pt}from"./Add-B8Ae2MjM.js";import{a as pi,B as Zn,D as hn,R as gi,b as hi}from"./url-evaluation-dheoi_Nj.js";import{d as xi}from"./CheckCircle-BnRenrK4.js";import{d as yi}from"./ChevronRight-C3NPaw6o.js";import{d as vi}from"./MoreVert-Nc1QBj2D.js";import{d as er}from"./Edit-i_Bman7K.js";import{d as bi,a as tr}from"./Https-amCzjB1a.js";import{W as $e}from"./tag-Cxx1sXPF.js";import{w as ji}from"./withStyles-BkcRLEgx.js";import{S as Ci}from"./Slider-Bdpm9oO4.js";import"./index-DcU_Cijj.js";import"./Select-CBA-xyOJ.js";import"./InputLabel-avYwCvJM.js";import"./FilterList-fpG1-3KQ.js";import"./LastPage-DnBOlrut.js";import"./index-baq8DMtQ.js";import"./redux-hfExDDyr.js";import"./Search-DnnCUnjB.js";import"./index-CtzAe2AR.js";import"./click-to-copy-Bj13kdln.js";const fe="Dashboard",nr=p.createContext({}),{Provider:Si,Consumer:ns}=nr,xn=[fe,D.DOMAIN_FOR_IP_SITE,D.DOMAIN_FOR_IP_SITE_REGEXP],wi=(t,n)=>{if(t.name===D.DOMAIN_FOR_DEFAULT_SITE)return-1;if(n.name===D.DOMAIN_FOR_DEFAULT_SITE)return 1;const r=xn.includes(t.name),i=xn.includes(n.name);return r&&i?cn(t.name,n.name):r?-1:i?1:cn(t.name,n.name)},_i=({sites:t,nodePort:n})=>{const r=window.location.host,o=(t||[]).map(a=>{const{id:l,rules:c=[],corsAllowedOrigins:h=[]}=a;let{domain:d,domainAliases:m}=a;m=m||[],[D.DOMAIN_FOR_IP_SITE,D.DOMAIN_FOR_IP_SITE_REGEXP].includes(d)&&(d=fe,m.find(f=>f.value===r)||m.unshift({protected:!1,value:r}));const g={id:l,name:d,type:"domain",items:[],domainAliases:m,isProtected:a.isProtected,corsAllowedOrigins:h};return(c||[]).forEach(f=>{const{id:y,isProtected:j,from:{pathPrefix:b},to:S}=f;if(S.type===D.ROUTING_RULE_TYPES.BLOCKLET){let R="";Number.parseInt(S.port,10)===Number.parseInt(n,10)?(R="Blocklet Server Dashboard",S.type=D.ROUTING_RULE_TYPES.DAEMON):R=S.did,g.items.push({id:y,name:ln(b||"/"),title:R,type:"rule",isProtected:j,pathPrefix:b,to:S})}else g.items.push({id:y,pathPrefix:b,name:ln(b||"/"),title:"Blocklet Server Dashboard",type:"rule",isProtected:j,to:S})}),g.items=$n(g.items,f=>f.name),g}).sort(wi),s=o.reduce((a,l)=>{let{name:c}=l;return c.endsWith(D.BLOCKLET_SITE_GROUP_SUFFIX)&&([c]=c.split(".")),a[c]={...l,rules:l.items},a},{});return{sites:o,siteMap:s}},Di=({did:t,domain:n,mountPoint:r,siteMap:i,params:o}={})=>{if(!i)return null;const s=i[t];if(!s)return null;const a=n||(s.domainAliases||[])[0];if(!a)return null;let l=r;if(!l){const c=s.rules.filter(h=>!h.name.startsWith(D.WELLKNOWN_PATH_PREFIX))[0];l=c?c.name:"/"}return _t(a.value,l,o)},Ri=({did:t,mountPoint:n,siteMap:r,params:i}={})=>{if(!r)return[];const o=r[t];if(!o)return[];const s=o.domainAliases||[];if(!s.length)return[];let a=n;if(!a){const l=o.rules.filter(c=>!c.name.startsWith(D.WELLKNOWN_PATH_PREFIX))[0];a=l?l.name:"/"}return s.map(l=>_t(l.value,a,i))},Ti=t=>{const n=t.map(i=>i.domain).filter(i=>![D.DOMAIN_FOR_IP_SITE_REGEXP,D.DOMAIN_FOR_DEFAULT_SITE].includes(i));let r=[];return t.forEach(i=>r.push(...i.domainAliases||[])),r=r.map(i=>typeof i=="string"?{value:i,isProtected:!1}:i),{domains:n,domainsAliases:r}};function yn({children:t}){const n=ue(),{info:r}=J(),[i,o]=p.useState([]),[s,a]=p.useState([]),[l,c]=p.useState([]),h=Pe(async()=>{const{sites:P}=await n.getRoutingSites({input:{snapshotHash:""}}),T=P||[];await Promise.all(T.map(async v=>(v.domainAliases=await Rr(v.domainAliases,{getIP:Tr}),v)));const I=Ti(T);o(T),a(I.domains),c([window.location.hostname,...I.domains,...I.domainsAliases.map(v=>v.value)])},[r]),d=(P,T)=>{o(I=>I.map(v=>v.id===P?T.domain?T:{...T,domain:v.domain}:v))},m=P=>n.takeRoutingSnapshot({input:{dryRun:!1,message:encodeURIComponent(P)}}),g=async P=>{const T=await n.addRoutingSite({input:P});o(i.concat(T.site))},f=async(P,T)=>{const I=await n.updateRoutingSite({input:{id:P,...T}});if(I.site&&I.site.id){const v=i.findIndex(A=>A.id===I.site.id);v!==-1&&(i.splice(v,1,I.site),o([].concat(i)))}},y=async P=>{await n.deleteRoutingSite({input:{id:P}}),o(i.filter(T=>T.id!==P))},j=async(P,T,I)=>{const v=await n.addDomainAlias({input:{id:P,domainAlias:T,force:I}});d(P,v.site)},b=async(P,T)=>{const I=await n.deleteDomainAlias({input:{id:P,domainAlias:T}});d(P,I.site)},S=async(P,T)=>{const{site:I}=await n.addRoutingRule({input:{id:P,rule:T}});d(P,I)},R=async(P,T)=>{const{site:I}=await n.updateRoutingRule({input:{id:P,rule:T}});d(P,I)},C=async(P,T)=>{const{site:I}=await n.deleteRoutingRule({input:{id:P,ruleId:T}});d(P,I)},x={loading:h.loading,error:h.error,refresh:h.retry,api:n,actions:{addSite:g,updateSite:f,deleteSite:y,addDomainAlias:j,deleteDomainAlias:b,takeSnapshot:m,addRule:S,updateRule:R,deleteRule:C}},{sites:E,siteMap:_}=_i({sites:i,nodePort:r.port});return x.sites=E,x.siteMap=_,x.domains=s,x.allDomains=l,x.getBlockletUrl=({did:P,domain:T,mountPoint:I,params:v})=>Di({did:P,domain:T,mountPoint:I,siteMap:x.siteMap,params:v}),x.getBlockletUrls=({did:P,mountPoint:T,params:I})=>Ri({did:P,mountPoint:T,siteMap:x.siteMap,params:I}),e.jsx(Si,{value:{routing:x},children:t})}function ae(){const{routing:t}=p.useContext(nr);return t}function At(t){const n=[D.DOMAIN_FOR_IP_SITE_REGEXP,D.DOMAIN_FOR_DEFAULT_SITE,D.DOMAIN_FOR_IP_SITE];return typeof window<"u"&&typeof window.location<"u"&&n.push(window.location.hostname),n.includes(t)}var It={},Ei=he;Object.defineProperty(It,"__esModule",{value:!0});var rr=It.default=void 0,Pi=Ei(ge()),Ai=e;rr=It.default=(0,Pi.default)((0,Ai.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");function Ii(){return null}function Lt({confirm:t}){const[n,r]=p.useState(null),{t:i}=N(),o=()=>{r(null)},s=async l=>{if(l){let c=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";c==="/"?dn.push(`${l.pathname}`):(c.endsWith("/")&&(c=c.substring(0,c.length-1)),dn.push(`${c}${l.pathname}`)),window.location.reload()}},a=(l,...c)=>{let h=typeof t=="function"?t(l,...c):t;return h?(typeof h=="string"&&(h={description:h}),r({title:i("common.noticeTitle"),description:i("common.leavePageTip"),confirm:i("common.confirm"),cancel:i("common.cancel"),onConfirm:()=>s(l),onCancel:()=>o(),...h}),!1):!0};return e.jsxs(Li,{children:[e.jsx(Ii,{message:a}),n&&e.jsx(ne,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,params:n.params,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}Lt.propTypes={confirm:u.oneOfType([u.object,u.string,u.func])};Lt.defaultProps={confirm:null};const Li=V.div`
|
|
2
2
|
margin-bottom: 24px;
|
|
3
3
|
.top-btns-alert {
|
|
4
4
|
@media (max-width: ${t=>t.theme.breakpoints.values.sm}px) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{fg as H,g as L,fh as W}from"./index-
|
|
1
|
+
import{fg as H,g as L,fh as W}from"./index-CqcpZ8C3.js";var d={},A,I;function X(){if(I)return A;I=1;var y,r,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
2
2
|
`,r:"\r",t:" "},c;function s(t){throw{name:"SyntaxError",message:t,at:y,text:c}}function n(t){return t&&t!==r&&s("Expected '"+t+"' instead of '"+r+"'"),r=c.charAt(y),y+=1,r}function h(){var t,i="";for(r==="-"&&(i="-",n("-"));r>="0"&&r<="9";)i+=r,n();if(r===".")for(i+=".";n()&&r>="0"&&r<="9";)i+=r;if(r==="e"||r==="E")for(i+=r,n(),(r==="-"||r==="+")&&(i+=r,n());r>="0"&&r<="9";)i+=r,n();return t=Number(i),isFinite(t)||s("Bad number"),t}function v(){var t,i,f="",g;if(r==='"')for(;n();){if(r==='"')return n(),f;if(r==="\\")if(n(),r==="u"){for(g=0,i=0;i<4&&(t=parseInt(n(),16),!!isFinite(t));i+=1)g=g*16+t;f+=String.fromCharCode(g)}else if(typeof a[r]=="string")f+=a[r];else break;else f+=r}s("Bad string")}function u(){for(;r&&r<=" ";)n()}function o(){switch(r){case"t":return n("t"),n("r"),n("u"),n("e"),!0;case"f":return n("f"),n("a"),n("l"),n("s"),n("e"),!1;case"n":return n("n"),n("u"),n("l"),n("l"),null;default:s("Unexpected '"+r+"'")}}function p(){var t=[];if(r==="["){if(n("["),u(),r==="]")return n("]"),t;for(;r;){if(t.push(e()),u(),r==="]")return n("]"),t;n(","),u()}}s("Bad array")}function l(){var t,i={};if(r==="{"){if(n("{"),u(),r==="}")return n("}"),i;for(;r;){if(t=v(),u(),n(":"),Object.prototype.hasOwnProperty.call(i,t)&&s('Duplicate key "'+t+'"'),i[t]=e(),u(),r==="}")return n("}"),i;n(","),u()}}s("Bad object")}function e(){switch(u(),r){case"{":return l();case"[":return p();case'"':return v();case"-":return h();default:return r>="0"&&r<="9"?h():o()}}return A=function(t,i){var f;return c=t,y=0,r=" ",f=e(),u(),r&&s("Syntax error"),typeof i=="function"?function g(S,m){var b,O,w=S[m];if(w&&typeof w=="object")for(b in e)Object.prototype.hasOwnProperty.call(w,b)&&(O=g(w,b),typeof O>"u"?delete w[b]:w[b]=O);return i.call(S,m,w)}({"":f},""):f},A}var J,_;function Y(){if(_)return J;_=1;var y=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,a,c={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function n(v){return y.lastIndex=0,y.test(v)?'"'+v.replace(y,function(u){var o=c[u];return typeof o=="string"?o:"\\u"+("0000"+u.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+v+'"'}function h(v,u){var o,p,l,e,t=r,i,f=u[v];switch(f&&typeof f=="object"&&typeof f.toJSON=="function"&&(f=f.toJSON(v)),typeof s=="function"&&(f=s.call(u,v,f)),typeof f){case"string":return n(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(r+=a,i=[],Object.prototype.toString.apply(f)==="[object Array]"){for(e=f.length,o=0;o<e;o+=1)i[o]=h(o,f)||"null";return l=i.length===0?"[]":r?`[
|
|
3
3
|
`+r+i.join(`,
|
|
4
4
|
`+r)+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bL as vc,j as m,C as Z2,P as S,n as _0,r as _,eU as ib,cK as Vc,cP as tb,k as Ez,g as qb,H as Kz,cA as Cc,Z as Pc,eV as Fc,dw as jc,e7 as Yc,e8 as Ic,eW as Uc,eX as Hc,m as Kc,V as Qc,aK as Jc,aL as $c,eY as Zc,dz as gz,ba as MA,dv as bA,s as zA}from"./index-
|
|
1
|
+
import{bL as vc,j as m,C as Z2,P as S,n as _0,r as _,eU as ib,cK as Vc,cP as tb,k as Ez,g as qb,H as Kz,cA as Cc,Z as Pc,eV as Fc,dw as jc,e7 as Yc,e8 as Ic,eW as Uc,eX as Hc,m as Kc,V as Qc,aK as Jc,aL as $c,eY as Zc,dz as gz,ba as MA,dv as bA,s as zA}from"./index-CqcpZ8C3.js";import{j as pA}from"./url-join-DMIMYkEk.js";import{S as l2}from"./Skeleton-CQPjJHp3.js";import{C as OA}from"./Close-Cbaq-RRq.js";import{l as oA}from"./lottie-yeTV0Y2m.js";const cA=vc([m.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),m.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function rb({value:M,size:z,style:O,...o}){return m.jsxs(AA,{style:{width:z,height:z,...O},...o,children:[m.jsx(Z2,{variant:"determinate",role:"progressbar",value:100,size:z,"aria-label":"decorative progress bar",thickness:10,style:{color:"#dddddd"}}),m.jsx(Z2,{variant:"determinate",value:M,role:"progressbar",size:z,thickness:10,"aria-label":"main progress bar"})]})}rb.propTypes={value:S.number.isRequired,size:S.number,style:S.object};rb.defaultProps={size:10,style:{}};const AA=_0.span`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
position: relative;
|
|
4
4
|
> * {
|